@vc-shell/framework 2.0.0-alpha.33 → 2.0.0-alpha.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 +258 -207
- package/dist/ai-agent/index.js +4 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D0kWIlz3.js +4485 -0
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-D71wkuIU.js +22109 -0
- package/dist/chunks/{index-HNCQdWHc.js → index-CDUdOax4.js} +2 -2
- package/dist/chunks/{vendor-boolbase-Cyd7_957.js → vendor-boolbase-DYkUBG-P.js} +1 -1
- package/dist/chunks/{vendor-cheerio-DKt5ox2U.js → vendor-cheerio-DE71XQ9x.js} +1 -1
- package/dist/chunks/{vendor-cheerio-select-B8BTSEdK.js → vendor-cheerio-select-D-qK1Cpo.js} +2 -2
- package/dist/chunks/{vendor-css-select-C4b9igDP.js → vendor-css-select-DqoO1-RK.js} +2 -2
- package/dist/chunks/{vendor-dompurify-BIuh5IAZ.js → vendor-dompurify-DpIUMBYC.js} +228 -221
- package/dist/chunks/{vendor-gridstack-Dkfw452e.js → vendor-gridstack-Beau2jQ7.js} +230 -160
- package/dist/chunks/{vendor-intlify-core-base-BfDxYEHM.js → vendor-intlify-core-base-Cf8V01l9.js} +260 -260
- package/dist/chunks/{vendor-intlify-message-compiler-B2Y3gZDu.js → vendor-intlify-message-compiler-h1txdYa8.js} +2 -2
- package/dist/chunks/{vendor-intlify-shared-Drx6AmQ9.js → vendor-intlify-shared-D4BJYR57.js} +3 -3
- package/dist/chunks/{vendor-iso-639-1-ig8i9Svg.js → vendor-iso-639-1-BEjYyfKo.js} +17 -14
- package/dist/chunks/{vendor-lodash-es-BB-IQCna.js → vendor-lodash-es-CfnUOh0o.js} +364 -371
- package/dist/chunks/vendor-markdown-it-task-lists-CHKeJZfk.js +69 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-analytics-js-ufpnHxNR.js +1142 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-cfgsync-js-BmGq5cEx.js +247 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-channel-js-BdtUi1l8.js +1907 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-core-js-CR3vyuZc.js +8406 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-dependencies-js-DXmYt4tG.js +1441 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-properties-js-CLbNzgkN.js +610 -0
- package/dist/chunks/{vendor-microsoft-applicationinsights-shims-Ds7KyOsR.js → vendor-microsoft-applicationinsights-shims-CGX8KXgN.js} +13 -12
- package/dist/chunks/vendor-microsoft-applicationinsights-web-DzgnK2Mn.js +970 -0
- package/dist/chunks/{vendor-microsoft-dynamicproto-js-CMXJqDx1.js → vendor-microsoft-dynamicproto-js-D7567TLZ.js} +15 -15
- package/dist/chunks/vendor-nevware21-ts-async-BxN_lmkD.js +271 -0
- package/dist/chunks/vendor-nevware21-ts-utils-Dr-hD3q9.js +973 -0
- package/dist/chunks/{vendor-nth-check-CuyQT_ny.js → vendor-nth-check-D0N1qpsw.js} +1 -1
- package/dist/chunks/{vendor-prettier-B0zlh-ye.js → vendor-prettier-2Sf6a5jB.js} +876 -782
- package/dist/chunks/{vendor-prosemirror-commands-Bv4ChObl.js → vendor-prosemirror-commands-BaRVaTVO.js} +2 -2
- package/dist/chunks/{vendor-prosemirror-dropcursor-kF5UKNFM.js → vendor-prosemirror-dropcursor-PuLxL9JM.js} +2 -2
- package/dist/chunks/{vendor-prosemirror-gapcursor-D3tpkzBp.js → vendor-prosemirror-gapcursor-C7MEx13L.js} +3 -3
- package/dist/chunks/{vendor-prosemirror-history-CQYKHz3u.js → vendor-prosemirror-history-_AfZxoMt.js} +2 -2
- package/dist/chunks/{vendor-prosemirror-keymap-CAfQyvJ7.js → vendor-prosemirror-keymap-tvZqK1zZ.js} +1 -1
- package/dist/chunks/{vendor-prosemirror-schema-list-BNJkECdS.js → vendor-prosemirror-schema-list-qDgvFydE.js} +1 -1
- package/dist/chunks/{vendor-prosemirror-state-IeimrELV.js → vendor-prosemirror-state-BvFA7AjG.js} +1 -1
- package/dist/chunks/{vendor-prosemirror-tables-DIAkeGRL.js → vendor-prosemirror-tables-CbmHRq4G.js} +4 -4
- package/dist/chunks/{vendor-prosemirror-transform-BUjWd5Tb.js → vendor-prosemirror-transform-DVGD47fI.js} +118 -102
- package/dist/chunks/{vendor-prosemirror-view-Chu67Jpw.js → vendor-prosemirror-view-BW4UqvjQ.js} +7 -5
- package/dist/chunks/{vendor-striptags--4dtoP3u.js → vendor-striptags-DtlgQudQ.js} +1 -1
- package/dist/chunks/{vendor-tiptap-core-BWgKs47g.js → vendor-tiptap-core-CZbeo7XQ.js} +722 -703
- package/dist/chunks/{vendor-tiptap-extension-blockquote-B1RV9c0W.js → vendor-tiptap-extension-blockquote-B8uwrgnZ.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-bold-BdAf6fWQ.js → vendor-tiptap-extension-bold-Ch9pbrZY.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-code-_cv4EOBy.js → vendor-tiptap-extension-code-CVh_mZgz.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-code-block-CT5P4x0D.js → vendor-tiptap-extension-code-block-CfoUSR2N.js} +2 -2
- package/dist/chunks/{vendor-tiptap-extension-document-C41wXth1.js → vendor-tiptap-extension-document-C4tn-v0L.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-hard-break-Ds2hA4at.js → vendor-tiptap-extension-hard-break-CbK1eM89.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-heading-DvnqoCO-.js → vendor-tiptap-extension-heading-BlkYF-RD.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-horizontal-rule-BceRNOIu.js → vendor-tiptap-extension-horizontal-rule-DjMOsQCA.js} +2 -2
- package/dist/chunks/{vendor-tiptap-extension-image-DLERQS1u.js → vendor-tiptap-extension-image-BpqLcXdw.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-italic-BGv0ktjJ.js → vendor-tiptap-extension-italic-YDdh6jEW.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-link-BAzgztbX.js → vendor-tiptap-extension-link-CETrc0Mo.js} +2 -2
- package/dist/chunks/{vendor-tiptap-extension-list-rFRwhCY_.js → vendor-tiptap-extension-list-DsiDvJxK.js} +209 -180
- package/dist/chunks/vendor-tiptap-extension-paragraph-Bcss4jc0.js +49 -0
- package/dist/chunks/vendor-tiptap-extension-placeholder-ClNjQXk_.js +1 -0
- package/dist/chunks/{vendor-tiptap-extension-strike-Cqq1i9pe.js → vendor-tiptap-extension-strike-BZiBed9b.js} +1 -1
- package/dist/chunks/vendor-tiptap-extension-table-QVjcLO_H.js +409 -0
- package/dist/chunks/vendor-tiptap-extension-table-cell-CuXZTKj8.js +1 -0
- package/dist/chunks/vendor-tiptap-extension-table-header-CuXZTKj8.js +1 -0
- package/dist/chunks/vendor-tiptap-extension-table-row-CuXZTKj8.js +1 -0
- package/dist/chunks/{vendor-tiptap-extension-text-BaLQc3hC.js → vendor-tiptap-extension-text-Wofhchrp.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-text-style-BDbT1PMb.js → vendor-tiptap-extension-text-style-Bc6nvmn0.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-underline-CiUEdG6D.js → vendor-tiptap-extension-underline-Bo1pXXDN.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extensions-pwHVUzkb.js → vendor-tiptap-extensions-D7eaegpB.js} +6 -6
- package/dist/chunks/{vendor-tiptap-markdown-D0feGfKk.js → vendor-tiptap-markdown-18K1hcU0.js} +3 -3
- package/dist/chunks/vendor-tiptap-pm-yqZPZQMU.js +1 -0
- package/dist/chunks/{vendor-tiptap-starter-kit-BEsLVJ4Q.js → vendor-tiptap-starter-kit-ny-AoaO_.js} +17 -17
- package/dist/chunks/{vendor-tiptap-vue-3-CdIBiRMV.js → vendor-tiptap-vue-3-BNAw8onj.js} +1 -1
- package/dist/chunks/{vendor-truncate-html-DDVwXwPl.js → vendor-truncate-html-ChA1T5zy.js} +1 -1
- package/dist/chunks/{vendor-unovis-ts-D3MmJ11i.js → vendor-unovis-ts-stSsHr9j.js} +1 -1
- package/dist/chunks/{vendor-unovis-vue-CMGNLXsC.js → vendor-unovis-vue-CZWGT3-0.js} +1 -1
- package/dist/chunks/{vendor-vue-i18n-BSCeQYoP.js → vendor-vue-i18n-LO-EJStU.js} +27 -27
- package/dist/chunks/{vendor-vue3-application-insights-Cq46Q3rj.js → vendor-vue3-application-insights-CAgbt8pk.js} +2 -2
- package/dist/chunks/{vendor-vueuse-components-DRdTsx6e.js → vendor-vueuse-components-BW7i7Uhb.js} +1 -1
- package/dist/chunks/{vendor-vueuse-core-D4-2M4AW.js → vendor-vueuse-core-CEdpDfzx.js} +9 -9
- package/dist/chunks/{vendor-vueuse-shared-PQ04AyOW.js → vendor-vueuse-shared-BlCOXw5g.js} +8 -8
- package/dist/core/api/platform.d.ts +5 -5
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/blade-navigation/types/index.d.ts +1 -1
- package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/core/composables/useAppInsights/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeRegistry/index.d.ts.map +1 -1
- package/dist/core/composables/usePlatformLocaleSync/index.d.ts +17 -0
- package/dist/core/composables/usePlatformLocaleSync/index.d.ts.map +1 -0
- package/dist/core/composables/useTheme/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +1 -0
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/core/directives/index.d.ts +2 -0
- package/dist/core/directives/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts +2 -2
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgentContext.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +1 -1
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/core/services/widget-service.d.ts.map +1 -1
- package/dist/core/types/menu-types.d.ts.map +1 -1
- package/dist/framework.js +3188 -3934
- package/dist/index.css +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/modules/assets/index.d.ts +0 -5
- package/dist/modules/assets/index.d.ts.map +1 -1
- package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/modules/assets-manager/index.d.ts +0 -6
- package/dist/modules/assets-manager/index.d.ts.map +1 -1
- package/dist/scripts/check-locales.cjs +3 -0
- package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts +0 -6
- package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts.map +1 -1
- package/dist/shell/_internal/notifications/components/notification-container/index.d.ts +2 -2
- package/dist/shell/_internal/notifications/composables/useInstance/index.d.ts.map +1 -1
- package/dist/shell/_internal/popup/common/vc-popup-base.vue.d.ts +1 -1
- package/dist/shell/_internal/popup/common/vc-popup-base.vue.d.ts.map +1 -1
- package/dist/shell/_internal/popup/index.d.ts +0 -4
- package/dist/shell/_internal/popup/index.d.ts.map +1 -1
- package/dist/shell/auth/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -1
- package/dist/shell/auth/ForgotPasswordPage/components/forgot-password/ForgotPassword.vue.d.ts.map +1 -1
- package/dist/shell/auth/InvitePage/components/invite/Invite.vue.d.ts +2 -2
- package/dist/shell/auth/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shell/auth/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shell/auth/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +2 -2
- package/dist/shell/auth/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/shell/auth/_test-utils/shared-dependency-mocks.d.ts +8 -0
- package/dist/shell/auth/_test-utils/shared-dependency-mocks.d.ts.map +1 -0
- package/dist/shell/auth/_test-utils/shared-mock-factories.d.ts +13 -0
- package/dist/shell/auth/_test-utils/shared-mock-factories.d.ts.map +1 -0
- package/dist/shell/auth/_test-utils/shared-stubs.d.ts +33 -0
- package/dist/shell/auth/_test-utils/shared-stubs.d.ts.map +1 -0
- package/dist/shell/auth/utils.d.ts +25 -0
- package/dist/shell/auth/utils.d.ts.map +1 -0
- package/dist/shell/components/change-password/change-password.vue.d.ts.map +1 -1
- package/dist/shell/components/change-password/index.d.ts +0 -5
- package/dist/shell/components/change-password/index.d.ts.map +1 -1
- package/dist/shell/components/error-interceptor/index.d.ts +0 -5
- package/dist/shell/components/error-interceptor/index.d.ts.map +1 -1
- package/dist/shell/components/language-selector/index.d.ts +0 -5
- package/dist/shell/components/language-selector/index.d.ts.map +1 -1
- package/dist/shell/components/notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
- package/dist/shell/components/notification-dropdown/index.d.ts +0 -5
- package/dist/shell/components/notification-dropdown/index.d.ts.map +1 -1
- package/dist/shell/components/notification-template/index.d.ts +0 -5
- package/dist/shell/components/notification-template/index.d.ts.map +1 -1
- package/dist/shell/components/sidebar/index.d.ts +3 -3
- package/dist/shell/components/sidebar/sidebar.vue.d.ts +1 -1
- package/dist/shell/components/sidebar/sidebar.vue.d.ts.map +1 -1
- package/dist/shell/components/user-dropdown-button/index.d.ts +0 -5
- package/dist/shell/components/user-dropdown-button/index.d.ts.map +1 -1
- package/dist/shell/dashboard/dashboard-widget-card/dashboard-widget-card.vue.d.ts.map +1 -1
- package/dist/test-helpers.d.ts +6 -18
- package/dist/test-helpers.d.ts.map +1 -1
- package/dist/test-mock-factories.d.ts +48 -0
- package/dist/test-mock-factories.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +3 -3
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/index.d.ts +1 -0
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/multilanguage-selector/multilanguage-selector.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu-group.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu-item.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/_internal/SelectTrigger.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +10 -27
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarWidgetItem.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useToggleableContent.d.ts +3 -3
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useToggleableContent.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts +19 -17
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcTableAdapter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcTableAdapter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/ColumnFilter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/ColumnFilter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/DataTableBody.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/GlobalFiltersPanel.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/GlobalFiltersPanel.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableCell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableCheckbox.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/TableHead.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableRow.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableRowActions.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableRowActions.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileCard.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileCard.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileView.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileView.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileActionSheet.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/mobile/PullToRefresh.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useColumnWidthEngine.d.ts +46 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useColumnWidthEngine.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts +6 -5
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts +6 -6
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts +24 -11
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsReorder.d.ts +6 -9
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsReorder.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts +18 -13
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableEditing.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableSort.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/keys.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/keys.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/types.d.ts +26 -0
- package/dist/ui/components/organisms/vc-data-table/types.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/utils/ColumnCollector.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/utils/columnHelpers.d.ts +30 -0
- package/dist/ui/components/organisms/vc-data-table/utils/columnHelpers.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-data-table/utils/index.d.ts +1 -0
- package/dist/ui/components/organisms/vc-data-table/utils/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +2 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +8 -8
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/composables/useCollapsible.d.ts.map +1 -1
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +87 -81
- package/dist/vitest-axe.setup.d.ts.map +1 -1
- package/dist/vitest-mocks.setup.d.ts +2 -0
- package/dist/vitest-mocks.setup.d.ts.map +1 -0
- package/package.json +8 -6
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CrmX4_5C.js +0 -4256
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-D9BrIj43.js +0 -21552
- package/dist/chunks/vendor-markdown-it-task-lists-xwqUBSah.js +0 -72
- package/dist/chunks/vendor-microsoft-applicationinsights-analytics-js-Dvbvo5Dl.js +0 -1207
- package/dist/chunks/vendor-microsoft-applicationinsights-cfgsync-js-9wxxo7yB.js +0 -261
- package/dist/chunks/vendor-microsoft-applicationinsights-channel-js-c-UYe0ly.js +0 -1822
- package/dist/chunks/vendor-microsoft-applicationinsights-common-DgFOCv6a.js +0 -1921
- package/dist/chunks/vendor-microsoft-applicationinsights-core-js-DYtaESwI.js +0 -4276
- package/dist/chunks/vendor-microsoft-applicationinsights-dependencies-js-BoRkSVPF.js +0 -1407
- package/dist/chunks/vendor-microsoft-applicationinsights-properties-js-Ymy9TFDL.js +0 -572
- package/dist/chunks/vendor-microsoft-applicationinsights-web-gIbMmGYP.js +0 -487
- package/dist/chunks/vendor-nevware21-ts-async-CP171WHM.js +0 -261
- package/dist/chunks/vendor-nevware21-ts-utils-Dl8msUu_.js +0 -853
- package/dist/chunks/vendor-tiptap-extension-paragraph-EwqudBl5.js +0 -49
- package/dist/chunks/vendor-tiptap-extension-placeholder-D1_k7Sra.js +0 -1
- package/dist/chunks/vendor-tiptap-extension-table-cell-odWoHoTv.js +0 -1
- package/dist/chunks/vendor-tiptap-extension-table-header-odWoHoTv.js +0 -1
- package/dist/chunks/vendor-tiptap-extension-table-row-odWoHoTv.js +0 -1
- package/dist/chunks/vendor-tiptap-extension-table-tNWQInwa.js +0 -374
- package/dist/chunks/vendor-tiptap-pm-CG4ksPkF.js +0 -1
- package/dist/ui/types/global-components.d.ts +0 -10
- package/dist/ui/types/global-components.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
function
|
|
1
|
+
import { g as Xc } from "./vendor-iso-639-1-BEjYyfKo.js";
|
|
2
|
+
function Gc(t, n) {
|
|
3
3
|
for (var i = 0; i < n.length; i++) {
|
|
4
4
|
const s = n[i];
|
|
5
5
|
if (typeof s != "string" && !Array.isArray(s)) {
|
|
@@ -15,113 +15,113 @@ function Kc(t, n) {
|
|
|
15
15
|
}
|
|
16
16
|
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var Kc = Object.create, hn = Object.defineProperty, Jc = Object.getOwnPropertyDescriptor, Yc = Object.getOwnPropertyNames, Qc = Object.getPrototypeOf, Zc = Object.prototype.hasOwnProperty, ep = (t, n) => () => (n || t((n = { exports: {} }).exports, n), n.exports), Dn = (t, n) => {
|
|
19
19
|
for (var i in n) hn(t, i, { get: n[i], enumerable: !0 });
|
|
20
|
-
},
|
|
21
|
-
if (n && typeof n == "object" || typeof n == "function") for (let l of
|
|
20
|
+
}, tp = (t, n, i, s) => {
|
|
21
|
+
if (n && typeof n == "object" || typeof n == "function") for (let l of Yc(n)) !Zc.call(t, l) && l !== i && hn(t, l, { get: () => n[l], enumerable: !(s = Jc(n, l)) || s.enumerable });
|
|
22
22
|
return t;
|
|
23
|
-
},
|
|
23
|
+
}, rp = (t, n, i) => (i = t != null ? Kc(Qc(t)) : {}, tp(hn(i, "default", { value: t, enumerable: !0 }), t)), np = ep((t, n) => {
|
|
24
24
|
var i, s, l, c, d, h, D, m, E, v, _, F, A, b, x, B, N, L, w;
|
|
25
|
-
A = /\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu, F = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y, i = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu, x = /(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y, _ = /(?: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, B = /[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y, w = /[\t\v\f\ufeff\p{Zs}]+/yu, m = /\r?\n|[\r\u2028\u2029]/y, E = /\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y, b = /\/\/.*/y, l = /[<>.:={}]|\/(?![\/*])/y, s = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu, c = /(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y, d = /[^<>{}]+/y, L = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/, N = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/, h = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/, D = /^(?:return|throw|yield)$/, v = RegExp(m.source), n.exports = function* (I, { jsx:
|
|
26
|
-
var K, oe, ue, O, R, me, k, ne, ge,
|
|
27
|
-
for ({ length: me } = I, O = 0, R = "",
|
|
28
|
-
switch (ne =
|
|
25
|
+
A = /\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu, F = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y, i = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu, x = /(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y, _ = /(?: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, B = /[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y, w = /[\t\v\f\ufeff\p{Zs}]+/yu, m = /\r?\n|[\r\u2028\u2029]/y, E = /\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y, b = /\/\/.*/y, l = /[<>.:={}]|\/(?![\/*])/y, s = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu, c = /(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y, d = /[^<>{}]+/y, L = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/, N = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/, h = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/, D = /^(?:return|throw|yield)$/, v = RegExp(m.source), n.exports = function* (I, { jsx: H = !1 } = {}) {
|
|
26
|
+
var K, oe, ue, O, R, me, k, ne, ge, ee, fe, j, Me, z;
|
|
27
|
+
for ({ length: me } = I, O = 0, R = "", z = [{ tag: "JS" }], K = [], fe = 0, j = !1; O < me; ) {
|
|
28
|
+
switch (ne = z[z.length - 1], ne.tag) {
|
|
29
29
|
case "JS":
|
|
30
30
|
case "JSNonExpressionParen":
|
|
31
31
|
case "InterpolationInTemplate":
|
|
32
32
|
case "InterpolationInJSX":
|
|
33
33
|
if (I[O] === "/" && (L.test(R) || h.test(R)) && (A.lastIndex = O, k = A.exec(I))) {
|
|
34
|
-
O = A.lastIndex, R = k[0],
|
|
34
|
+
O = A.lastIndex, R = k[0], j = !0, yield { type: "RegularExpressionLiteral", value: k[0], closed: k[1] !== void 0 && k[1] !== "\\" };
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
37
|
if (F.lastIndex = O, k = F.exec(I)) {
|
|
38
|
-
switch (
|
|
38
|
+
switch (Me = k[0], ge = F.lastIndex, ee = Me, Me) {
|
|
39
39
|
case "(":
|
|
40
|
-
R === "?NonExpressionParenKeyword" &&
|
|
40
|
+
R === "?NonExpressionParenKeyword" && z.push({ tag: "JSNonExpressionParen", nesting: fe }), fe++, j = !1;
|
|
41
41
|
break;
|
|
42
42
|
case ")":
|
|
43
|
-
fe--,
|
|
43
|
+
fe--, j = !0, ne.tag === "JSNonExpressionParen" && fe === ne.nesting && (z.pop(), ee = "?NonExpressionParenEnd", j = !1);
|
|
44
44
|
break;
|
|
45
45
|
case "{":
|
|
46
|
-
F.lastIndex = 0, ue = !N.test(R) && (L.test(R) || h.test(R)), K.push(ue),
|
|
46
|
+
F.lastIndex = 0, ue = !N.test(R) && (L.test(R) || h.test(R)), K.push(ue), j = !1;
|
|
47
47
|
break;
|
|
48
48
|
case "}":
|
|
49
49
|
switch (ne.tag) {
|
|
50
50
|
case "InterpolationInTemplate":
|
|
51
51
|
if (K.length === ne.nesting) {
|
|
52
|
-
B.lastIndex = O, k = B.exec(I), O = B.lastIndex, R = k[0], k[1] === "${" ? (R = "?InterpolationInTemplate",
|
|
52
|
+
B.lastIndex = O, k = B.exec(I), O = B.lastIndex, R = k[0], k[1] === "${" ? (R = "?InterpolationInTemplate", j = !1, yield { type: "TemplateMiddle", value: k[0] }) : (z.pop(), j = !0, yield { type: "TemplateTail", value: k[0], closed: k[1] === "`" });
|
|
53
53
|
continue;
|
|
54
54
|
}
|
|
55
55
|
break;
|
|
56
56
|
case "InterpolationInJSX":
|
|
57
57
|
if (K.length === ne.nesting) {
|
|
58
|
-
|
|
58
|
+
z.pop(), O += 1, R = "}", yield { type: "JSXPunctuator", value: "}" };
|
|
59
59
|
continue;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
j = K.pop(), ee = j ? "?ExpressionBraceEnd" : "}";
|
|
63
63
|
break;
|
|
64
64
|
case "]":
|
|
65
|
-
|
|
65
|
+
j = !0;
|
|
66
66
|
break;
|
|
67
67
|
case "++":
|
|
68
68
|
case "--":
|
|
69
|
-
|
|
69
|
+
ee = j ? "?PostfixIncDec" : "?UnaryIncDec";
|
|
70
70
|
break;
|
|
71
71
|
case "<":
|
|
72
|
-
if (
|
|
73
|
-
|
|
72
|
+
if (H && (L.test(R) || h.test(R))) {
|
|
73
|
+
z.push({ tag: "JSXTag" }), O += 1, R = "<", yield { type: "JSXPunctuator", value: Me };
|
|
74
74
|
continue;
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
j = !1;
|
|
77
77
|
break;
|
|
78
78
|
default:
|
|
79
|
-
|
|
79
|
+
j = !1;
|
|
80
80
|
}
|
|
81
|
-
O = ge, R =
|
|
81
|
+
O = ge, R = ee, yield { type: "Punctuator", value: Me };
|
|
82
82
|
continue;
|
|
83
83
|
}
|
|
84
84
|
if (i.lastIndex = O, k = i.exec(I)) {
|
|
85
|
-
switch (O = i.lastIndex,
|
|
85
|
+
switch (O = i.lastIndex, ee = k[0], k[0]) {
|
|
86
86
|
case "for":
|
|
87
87
|
case "if":
|
|
88
88
|
case "while":
|
|
89
89
|
case "with":
|
|
90
|
-
R !== "." && R !== "?." && (
|
|
90
|
+
R !== "." && R !== "?." && (ee = "?NonExpressionParenKeyword");
|
|
91
91
|
}
|
|
92
|
-
R =
|
|
92
|
+
R = ee, j = !h.test(k[0]), yield { type: k[1] === "#" ? "PrivateIdentifier" : "IdentifierName", value: k[0] };
|
|
93
93
|
continue;
|
|
94
94
|
}
|
|
95
95
|
if (x.lastIndex = O, k = x.exec(I)) {
|
|
96
|
-
O = x.lastIndex, R = k[0],
|
|
96
|
+
O = x.lastIndex, R = k[0], j = !0, yield { type: "StringLiteral", value: k[0], closed: k[2] !== void 0 };
|
|
97
97
|
continue;
|
|
98
98
|
}
|
|
99
99
|
if (_.lastIndex = O, k = _.exec(I)) {
|
|
100
|
-
O = _.lastIndex, R = k[0],
|
|
100
|
+
O = _.lastIndex, R = k[0], j = !0, yield { type: "NumericLiteral", value: k[0] };
|
|
101
101
|
continue;
|
|
102
102
|
}
|
|
103
103
|
if (B.lastIndex = O, k = B.exec(I)) {
|
|
104
|
-
O = B.lastIndex, R = k[0], k[1] === "${" ? (R = "?InterpolationInTemplate",
|
|
104
|
+
O = B.lastIndex, R = k[0], k[1] === "${" ? (R = "?InterpolationInTemplate", z.push({ tag: "InterpolationInTemplate", nesting: K.length }), j = !1, yield { type: "TemplateHead", value: k[0] }) : (j = !0, yield { type: "NoSubstitutionTemplate", value: k[0], closed: k[1] === "`" });
|
|
105
105
|
continue;
|
|
106
106
|
}
|
|
107
107
|
break;
|
|
108
108
|
case "JSXTag":
|
|
109
109
|
case "JSXTagEnd":
|
|
110
110
|
if (l.lastIndex = O, k = l.exec(I)) {
|
|
111
|
-
switch (O = l.lastIndex,
|
|
111
|
+
switch (O = l.lastIndex, ee = k[0], k[0]) {
|
|
112
112
|
case "<":
|
|
113
|
-
|
|
113
|
+
z.push({ tag: "JSXTag" });
|
|
114
114
|
break;
|
|
115
115
|
case ">":
|
|
116
|
-
|
|
116
|
+
z.pop(), R === "/" || ne.tag === "JSXTagEnd" ? (ee = "?JSX", j = !0) : z.push({ tag: "JSXChildren" });
|
|
117
117
|
break;
|
|
118
118
|
case "{":
|
|
119
|
-
|
|
119
|
+
z.push({ tag: "InterpolationInJSX", nesting: K.length }), ee = "?InterpolationInJSX", j = !1;
|
|
120
120
|
break;
|
|
121
121
|
case "/":
|
|
122
|
-
R === "<" && (
|
|
122
|
+
R === "<" && (z.pop(), z[z.length - 1].tag === "JSXChildren" && z.pop(), z.push({ tag: "JSXTagEnd" }));
|
|
123
123
|
}
|
|
124
|
-
R =
|
|
124
|
+
R = ee, yield { type: "JSXPunctuator", value: k[0] };
|
|
125
125
|
continue;
|
|
126
126
|
}
|
|
127
127
|
if (s.lastIndex = O, k = s.exec(I)) {
|
|
@@ -140,10 +140,10 @@ var Jc = Object.create, hn = Object.defineProperty, Yc = Object.getOwnPropertyDe
|
|
|
140
140
|
}
|
|
141
141
|
switch (I[O]) {
|
|
142
142
|
case "<":
|
|
143
|
-
|
|
143
|
+
z.push({ tag: "JSXTag" }), O++, R = "<", yield { type: "JSXPunctuator", value: "<" };
|
|
144
144
|
continue;
|
|
145
145
|
case "{":
|
|
146
|
-
|
|
146
|
+
z.push({ tag: "InterpolationInJSX", nesting: K.length }), O++, R = "?InterpolationInJSX", j = !1, yield { type: "JSXPunctuator", value: "{" };
|
|
147
147
|
continue;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -152,27 +152,27 @@ var Jc = Object.create, hn = Object.defineProperty, Yc = Object.getOwnPropertyDe
|
|
|
152
152
|
continue;
|
|
153
153
|
}
|
|
154
154
|
if (m.lastIndex = O, k = m.exec(I)) {
|
|
155
|
-
O = m.lastIndex,
|
|
155
|
+
O = m.lastIndex, j = !1, D.test(R) && (R = "?NoLineTerminatorHere"), yield { type: "LineTerminatorSequence", value: k[0] };
|
|
156
156
|
continue;
|
|
157
157
|
}
|
|
158
158
|
if (E.lastIndex = O, k = E.exec(I)) {
|
|
159
|
-
O = E.lastIndex, v.test(k[0]) && (
|
|
159
|
+
O = E.lastIndex, v.test(k[0]) && (j = !1, D.test(R) && (R = "?NoLineTerminatorHere")), yield { type: "MultiLineComment", value: k[0], closed: k[1] !== void 0 };
|
|
160
160
|
continue;
|
|
161
161
|
}
|
|
162
162
|
if (b.lastIndex = O, k = b.exec(I)) {
|
|
163
|
-
O = b.lastIndex,
|
|
163
|
+
O = b.lastIndex, j = !1, yield { type: "SingleLineComment", value: k[0] };
|
|
164
164
|
continue;
|
|
165
165
|
}
|
|
166
|
-
oe = String.fromCodePoint(I.codePointAt(O)), O += oe.length, R = oe,
|
|
166
|
+
oe = String.fromCodePoint(I.codePointAt(O)), O += oe.length, R = oe, j = !1, yield { type: ne.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid", value: oe };
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
|
-
}),
|
|
170
|
-
Dn(
|
|
171
|
-
var
|
|
169
|
+
}), up = {};
|
|
170
|
+
Dn(up, { __debug: () => X2, check: () => W2, doc: () => mi, format: () => vi, formatWithCursor: () => Fi, getSupportInfo: () => z2, util: () => gi, version: () => C2 });
|
|
171
|
+
var Kt = (t, n) => (i, s, ...l) => i | 1 && s == null ? void 0 : (n.call(s) ?? s[t]).apply(s, l), ap = String.prototype.replaceAll ?? function(t, n) {
|
|
172
172
|
return t.global ? this.replace(t, n) : this.split(t).join(n);
|
|
173
|
-
},
|
|
174
|
-
if (typeof this == "string") return
|
|
175
|
-
}), Cr =
|
|
173
|
+
}, ip = Kt("replaceAll", function() {
|
|
174
|
+
if (typeof this == "string") return ap;
|
|
175
|
+
}), Cr = ip, sp = class {
|
|
176
176
|
diff(t, n, i = {}) {
|
|
177
177
|
let s;
|
|
178
178
|
typeof i == "function" ? (s = i, i = {}) : "callback" in i && (s = i.callback);
|
|
@@ -201,12 +201,12 @@ var Xt = (t, n) => (i, s, ...l) => i | 1 && s == null ? void 0 : (n.call(s) ?? s
|
|
|
201
201
|
let K = w.oldPos - B;
|
|
202
202
|
I = w && 0 <= K && K < d;
|
|
203
203
|
}
|
|
204
|
-
let
|
|
205
|
-
if (!I &&
|
|
204
|
+
let H = L && L.oldPos + 1 < h;
|
|
205
|
+
if (!I && !H) {
|
|
206
206
|
_[B] = void 0;
|
|
207
207
|
continue;
|
|
208
208
|
}
|
|
209
|
-
if (
|
|
209
|
+
if (!H || I && L.oldPos < w.oldPos ? N = this.addToPath(w, !0, !1, 0, i) : N = this.addToPath(L, !1, !0, 1, i), F = this.extractCommon(N, n, t, B, i), N.oldPos + 1 >= h && F + 1 >= d) return c(this.buildValues(N.lastComponent, n, t)) || !0;
|
|
210
210
|
_[B] = N, N.oldPos + 1 >= h && (b = Math.min(b, B - 1)), F + 1 >= d && (A = Math.max(A, B + 1));
|
|
211
211
|
}
|
|
212
212
|
D++;
|
|
@@ -275,7 +275,7 @@ var Xt = (t, n) => (i, s, ...l) => i | 1 && s == null ? void 0 : (n.call(s) ?? s
|
|
|
275
275
|
}
|
|
276
276
|
return s;
|
|
277
277
|
}
|
|
278
|
-
},
|
|
278
|
+
}, op = class extends sp {
|
|
279
279
|
tokenize(t) {
|
|
280
280
|
return t.slice();
|
|
281
281
|
}
|
|
@@ -285,68 +285,68 @@ var Xt = (t, n) => (i, s, ...l) => i | 1 && s == null ? void 0 : (n.call(s) ?? s
|
|
|
285
285
|
removeEmpty(t) {
|
|
286
286
|
return t;
|
|
287
287
|
}
|
|
288
|
-
},
|
|
289
|
-
function
|
|
290
|
-
return
|
|
288
|
+
}, lp = new op();
|
|
289
|
+
function cp(t, n, i) {
|
|
290
|
+
return lp.diff(t, n, i);
|
|
291
291
|
}
|
|
292
|
-
var
|
|
293
|
-
},
|
|
292
|
+
var pp = () => {
|
|
293
|
+
}, dp = pp, _a = "cr", ya = "crlf", hp = "lf", Dp = hp, fn = "\r", Aa = `\r
|
|
294
294
|
`, Er = `
|
|
295
|
-
`,
|
|
296
|
-
function
|
|
295
|
+
`, fp = Er;
|
|
296
|
+
function mp(t) {
|
|
297
297
|
let n = t.indexOf(fn);
|
|
298
|
-
return n !== -1 ? t.charAt(n + 1) === Er ? ya : _a :
|
|
298
|
+
return n !== -1 ? t.charAt(n + 1) === Er ? ya : _a : Dp;
|
|
299
299
|
}
|
|
300
300
|
function mn(t) {
|
|
301
|
-
return t === _a ? fn : t === ya ? Aa :
|
|
301
|
+
return t === _a ? fn : t === ya ? Aa : fp;
|
|
302
302
|
}
|
|
303
|
-
var
|
|
303
|
+
var gp = /* @__PURE__ */ new Map([[Er, /\n/gu], [fn, /\r/gu], [Aa, /\r\n/gu]]);
|
|
304
304
|
function Sa(t, n) {
|
|
305
|
-
let i =
|
|
305
|
+
let i = gp.get(n);
|
|
306
306
|
return t.match(i)?.length ?? 0;
|
|
307
307
|
}
|
|
308
|
-
var
|
|
309
|
-
function
|
|
310
|
-
return Cr(0, t,
|
|
308
|
+
var Cp = /\r\n?/gu;
|
|
309
|
+
function Ep(t) {
|
|
310
|
+
return Cr(0, t, Cp, Er);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Fp(t) {
|
|
313
313
|
return this[t < 0 ? this.length + t : t];
|
|
314
314
|
}
|
|
315
|
-
var
|
|
316
|
-
if (Array.isArray(this) || typeof this == "string") return
|
|
317
|
-
}),
|
|
318
|
-
function
|
|
315
|
+
var vp = Kt("at", function() {
|
|
316
|
+
if (Array.isArray(this) || typeof this == "string") return Fp;
|
|
317
|
+
}), Z = vp, rt = "string", Be = "array", He = "cursor", Ne = "indent", Le = "align", Oe = "trim", se = "group", ye = "fill", ce = "if-break", Ie = "indent-if-break", Pe = "line-suffix", Re = "line-suffix-boundary", te = "line", Ae = "label", De = "break-parent", ba = /* @__PURE__ */ new Set([He, Ne, Le, Oe, se, ye, ce, Ie, Pe, Re, te, Ae, De]);
|
|
318
|
+
function _p(t) {
|
|
319
319
|
let n = t.length;
|
|
320
320
|
for (; n > 0 && (t[n - 1] === "\r" || t[n - 1] === `
|
|
321
321
|
`); ) n--;
|
|
322
322
|
return n < t.length ? t.slice(0, n) : t;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function yp(t) {
|
|
325
325
|
if (typeof t == "string") return rt;
|
|
326
|
-
if (Array.isArray(t)) return
|
|
326
|
+
if (Array.isArray(t)) return Be;
|
|
327
327
|
if (!t) return;
|
|
328
328
|
let { type: n } = t;
|
|
329
329
|
if (ba.has(n)) return n;
|
|
330
330
|
}
|
|
331
|
-
var nt =
|
|
332
|
-
function
|
|
331
|
+
var nt = yp, Ap = (t) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(t);
|
|
332
|
+
function Sp(t) {
|
|
333
333
|
let n = t === null ? "null" : typeof t;
|
|
334
334
|
if (n !== "string" && n !== "object") return `Unexpected doc '${n}',
|
|
335
335
|
Expected it to be 'string' or 'object'.`;
|
|
336
336
|
if (nt(t)) throw new Error("doc is valid.");
|
|
337
337
|
let i = Object.prototype.toString.call(t);
|
|
338
338
|
if (i !== "[object Object]") return `Unexpected doc '${i}'.`;
|
|
339
|
-
let s =
|
|
339
|
+
let s = Ap([...ba].map((l) => `'${l}'`));
|
|
340
340
|
return `Unexpected doc.type '${t.type}'.
|
|
341
341
|
Expected it to be ${s}.`;
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var bp = class extends Error {
|
|
344
344
|
name = "InvalidDocError";
|
|
345
345
|
constructor(t) {
|
|
346
|
-
super(
|
|
346
|
+
super(Sp(t)), this.doc = t;
|
|
347
347
|
}
|
|
348
|
-
}, gt =
|
|
349
|
-
function
|
|
348
|
+
}, gt = bp, Ku = {};
|
|
349
|
+
function kp(t, n, i, s) {
|
|
350
350
|
let l = [t];
|
|
351
351
|
for (; l.length > 0; ) {
|
|
352
352
|
let c = l.pop();
|
|
@@ -358,9 +358,9 @@ function wp(t, n, i, s) {
|
|
|
358
358
|
let d = nt(c);
|
|
359
359
|
if (!d) throw new gt(c);
|
|
360
360
|
if (n?.(c) !== !1) switch (d) {
|
|
361
|
-
case
|
|
361
|
+
case Be:
|
|
362
362
|
case ye: {
|
|
363
|
-
let h = d ===
|
|
363
|
+
let h = d === Be ? c : c.parts;
|
|
364
364
|
for (let D = h.length, m = D - 1; m >= 0; --m) l.push(h[m]);
|
|
365
365
|
break;
|
|
366
366
|
}
|
|
@@ -371,17 +371,17 @@ function wp(t, n, i, s) {
|
|
|
371
371
|
if (s && c.expandedStates) for (let h = c.expandedStates.length, D = h - 1; D >= 0; --D) l.push(c.expandedStates[D]);
|
|
372
372
|
else l.push(c.contents);
|
|
373
373
|
break;
|
|
374
|
+
case Le:
|
|
374
375
|
case Ne:
|
|
375
|
-
case
|
|
376
|
-
case Oe:
|
|
376
|
+
case Ie:
|
|
377
377
|
case Ae:
|
|
378
378
|
case Pe:
|
|
379
379
|
l.push(c.contents);
|
|
380
380
|
break;
|
|
381
381
|
case rt:
|
|
382
382
|
case He:
|
|
383
|
-
case
|
|
384
|
-
case
|
|
383
|
+
case Oe:
|
|
384
|
+
case Re:
|
|
385
385
|
case te:
|
|
386
386
|
case De:
|
|
387
387
|
break;
|
|
@@ -390,7 +390,7 @@ function wp(t, n, i, s) {
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
var gn =
|
|
393
|
+
var gn = kp;
|
|
394
394
|
function Fr(t, n) {
|
|
395
395
|
if (typeof t == "string") return n(t);
|
|
396
396
|
let i = /* @__PURE__ */ new Map();
|
|
@@ -402,7 +402,7 @@ function Fr(t, n) {
|
|
|
402
402
|
}
|
|
403
403
|
function l(c) {
|
|
404
404
|
switch (nt(c)) {
|
|
405
|
-
case
|
|
405
|
+
case Be:
|
|
406
406
|
return n(c.map(s));
|
|
407
407
|
case ye:
|
|
408
408
|
return n({ ...c, parts: c.parts.map(s) });
|
|
@@ -412,16 +412,16 @@ function Fr(t, n) {
|
|
|
412
412
|
let { expandedStates: d, contents: h } = c;
|
|
413
413
|
return d ? (d = d.map(s), h = d[0]) : h = s(h), n({ ...c, contents: h, expandedStates: d });
|
|
414
414
|
}
|
|
415
|
+
case Le:
|
|
415
416
|
case Ne:
|
|
416
|
-
case
|
|
417
|
-
case Oe:
|
|
417
|
+
case Ie:
|
|
418
418
|
case Ae:
|
|
419
419
|
case Pe:
|
|
420
420
|
return n({ ...c, contents: s(c.contents) });
|
|
421
421
|
case rt:
|
|
422
422
|
case He:
|
|
423
|
-
case
|
|
424
|
-
case
|
|
423
|
+
case Oe:
|
|
424
|
+
case Re:
|
|
425
425
|
case te:
|
|
426
426
|
case De:
|
|
427
427
|
return n(c);
|
|
@@ -439,20 +439,20 @@ function Cn(t, n, i) {
|
|
|
439
439
|
}
|
|
440
440
|
return gn(t, c), s;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function wp(t) {
|
|
443
443
|
if (t.type === se && t.break || t.type === te && t.hard || t.type === De) return !0;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
return Cn(t,
|
|
445
|
+
function Tp(t) {
|
|
446
|
+
return Cn(t, wp, !1);
|
|
447
447
|
}
|
|
448
448
|
function Ju(t) {
|
|
449
449
|
if (t.length > 0) {
|
|
450
|
-
let n =
|
|
450
|
+
let n = Z(0, t, -1);
|
|
451
451
|
!n.expandedStates && !n.break && (n.break = "propagated");
|
|
452
452
|
}
|
|
453
453
|
return null;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function xp(t) {
|
|
456
456
|
let n = /* @__PURE__ */ new Set(), i = [];
|
|
457
457
|
function s(c) {
|
|
458
458
|
if (c.type === De && Ju(i), c.type === se) {
|
|
@@ -465,42 +465,42 @@ function Bp(t) {
|
|
|
465
465
|
}
|
|
466
466
|
gn(t, s, l, !0);
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function Bp(t) {
|
|
469
469
|
return t.type === te && !t.hard ? t.soft ? "" : " " : t.type === ce ? t.flatContents : t;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
return Fr(t,
|
|
471
|
+
function Np(t) {
|
|
472
|
+
return Fr(t, Bp);
|
|
473
473
|
}
|
|
474
474
|
function Yu(t) {
|
|
475
|
-
for (t = [...t]; t.length >= 2 &&
|
|
475
|
+
for (t = [...t]; t.length >= 2 && Z(0, t, -2).type === te && Z(0, t, -1).type === De; ) t.length -= 2;
|
|
476
476
|
if (t.length > 0) {
|
|
477
|
-
let n =
|
|
477
|
+
let n = zt(Z(0, t, -1));
|
|
478
478
|
t[t.length - 1] = n;
|
|
479
479
|
}
|
|
480
480
|
return t;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function zt(t) {
|
|
483
483
|
switch (nt(t)) {
|
|
484
|
-
case
|
|
485
|
-
case
|
|
484
|
+
case Ne:
|
|
485
|
+
case Ie:
|
|
486
486
|
case se:
|
|
487
487
|
case Pe:
|
|
488
488
|
case Ae: {
|
|
489
|
-
let n =
|
|
489
|
+
let n = zt(t.contents);
|
|
490
490
|
return { ...t, contents: n };
|
|
491
491
|
}
|
|
492
492
|
case ce:
|
|
493
|
-
return { ...t, breakContents:
|
|
493
|
+
return { ...t, breakContents: zt(t.breakContents), flatContents: zt(t.flatContents) };
|
|
494
494
|
case ye:
|
|
495
495
|
return { ...t, parts: Yu(t.parts) };
|
|
496
|
-
case
|
|
496
|
+
case Be:
|
|
497
497
|
return Yu(t);
|
|
498
498
|
case rt:
|
|
499
|
-
return
|
|
500
|
-
case Ne:
|
|
501
|
-
case He:
|
|
499
|
+
return _p(t);
|
|
502
500
|
case Le:
|
|
503
|
-
case
|
|
501
|
+
case He:
|
|
502
|
+
case Oe:
|
|
503
|
+
case Re:
|
|
504
504
|
case te:
|
|
505
505
|
case De:
|
|
506
506
|
break;
|
|
@@ -510,9 +510,9 @@ function Ut(t) {
|
|
|
510
510
|
return t;
|
|
511
511
|
}
|
|
512
512
|
function ka(t) {
|
|
513
|
-
return
|
|
513
|
+
return zt(Op(t));
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Lp(t) {
|
|
516
516
|
switch (nt(t)) {
|
|
517
517
|
case ye:
|
|
518
518
|
if (t.parts.every((n) => n === "")) return "";
|
|
@@ -521,28 +521,28 @@ function Op(t) {
|
|
|
521
521
|
if (!t.contents && !t.id && !t.break && !t.expandedStates) return "";
|
|
522
522
|
if (t.contents.type === se && t.contents.id === t.id && t.contents.break === t.break && t.contents.expandedStates === t.expandedStates) return t.contents;
|
|
523
523
|
break;
|
|
524
|
+
case Le:
|
|
524
525
|
case Ne:
|
|
525
|
-
case
|
|
526
|
-
case Oe:
|
|
526
|
+
case Ie:
|
|
527
527
|
case Pe:
|
|
528
528
|
if (!t.contents) return "";
|
|
529
529
|
break;
|
|
530
530
|
case ce:
|
|
531
531
|
if (!t.flatContents && !t.breakContents) return "";
|
|
532
532
|
break;
|
|
533
|
-
case
|
|
533
|
+
case Be: {
|
|
534
534
|
let n = [];
|
|
535
535
|
for (let i of t) {
|
|
536
536
|
if (!i) continue;
|
|
537
537
|
let [s, ...l] = Array.isArray(i) ? i : [i];
|
|
538
|
-
typeof s == "string" && typeof
|
|
538
|
+
typeof s == "string" && typeof Z(0, n, -1) == "string" ? n[n.length - 1] += s : n.push(s), n.push(...l);
|
|
539
539
|
}
|
|
540
540
|
return n.length === 0 ? "" : n.length === 1 ? n[0] : n;
|
|
541
541
|
}
|
|
542
542
|
case rt:
|
|
543
543
|
case He:
|
|
544
|
-
case
|
|
545
|
-
case
|
|
544
|
+
case Oe:
|
|
545
|
+
case Re:
|
|
546
546
|
case te:
|
|
547
547
|
case Ae:
|
|
548
548
|
case De:
|
|
@@ -552,36 +552,36 @@ function Op(t) {
|
|
|
552
552
|
}
|
|
553
553
|
return t;
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return Fr(t, (n) =>
|
|
555
|
+
function Op(t) {
|
|
556
|
+
return Fr(t, (n) => Lp(n));
|
|
557
557
|
}
|
|
558
558
|
function Ip(t, n = Oa) {
|
|
559
559
|
return Fr(t, (i) => typeof i == "string" ? Ba(n, i.split(`
|
|
560
560
|
`)) : i);
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Pp(t) {
|
|
563
563
|
if (t.type === te) return !0;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
return Cn(t,
|
|
565
|
+
function Rp(t) {
|
|
566
|
+
return Cn(t, Pp, !1);
|
|
567
567
|
}
|
|
568
568
|
function fr(t, n) {
|
|
569
569
|
return t.type === Ae ? { ...t, contents: n(t.contents) } : n(t);
|
|
570
570
|
}
|
|
571
|
-
var
|
|
571
|
+
var Mp = dp;
|
|
572
572
|
function gr(t) {
|
|
573
|
-
return { type:
|
|
573
|
+
return { type: Ne, contents: t };
|
|
574
574
|
}
|
|
575
575
|
function Ct(t, n) {
|
|
576
|
-
return { type:
|
|
576
|
+
return { type: Le, contents: n, n: t };
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function qp(t) {
|
|
579
579
|
return Ct(Number.NEGATIVE_INFINITY, t);
|
|
580
580
|
}
|
|
581
581
|
function wa(t) {
|
|
582
582
|
return Ct({ type: "root" }, t);
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function Vp(t) {
|
|
585
585
|
return Ct(-1, t);
|
|
586
586
|
}
|
|
587
587
|
function Ta(t, n, i) {
|
|
@@ -593,50 +593,50 @@ function Ta(t, n, i) {
|
|
|
593
593
|
return s;
|
|
594
594
|
}
|
|
595
595
|
var vr = { type: De }, et = { type: He };
|
|
596
|
-
function
|
|
596
|
+
function jp(t) {
|
|
597
597
|
return { type: ye, parts: t };
|
|
598
598
|
}
|
|
599
599
|
function xa(t, n = {}) {
|
|
600
|
-
return
|
|
600
|
+
return Mp(n.expandedStates), { type: se, id: n.id, contents: t, break: !!n.shouldBreak, expandedStates: n.expandedStates };
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Hp(t, n) {
|
|
603
603
|
return xa(t[0], { ...n, expandedStates: t });
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function $p(t, n = "", i = {}) {
|
|
606
606
|
return { type: ce, breakContents: t, flatContents: n, groupId: i.groupId };
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return { type:
|
|
608
|
+
function Up(t, n) {
|
|
609
|
+
return { type: Ie, contents: t, groupId: n.groupId, negate: n.negate };
|
|
610
610
|
}
|
|
611
611
|
function Ba(t, n) {
|
|
612
612
|
let i = [];
|
|
613
613
|
for (let s = 0; s < n.length; s++) s !== 0 && i.push(t), i.push(n[s]);
|
|
614
614
|
return i;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Wp(t, n) {
|
|
617
617
|
return t ? { type: Ae, label: t, contents: n } : n;
|
|
618
618
|
}
|
|
619
|
-
var Na = { type: te },
|
|
619
|
+
var Na = { type: te }, zp = { type: te, soft: !0 }, En = { type: te, hard: !0 }, xe = [En, vr], La = { type: te, hard: !0, literal: !0 }, Oa = [La, vr];
|
|
620
620
|
function sn(t) {
|
|
621
621
|
return { type: Pe, contents: t };
|
|
622
622
|
}
|
|
623
|
-
var
|
|
624
|
-
function
|
|
623
|
+
var Xp = { type: Re }, Gp = { type: Oe };
|
|
624
|
+
function Te(t) {
|
|
625
625
|
if (!t) return "";
|
|
626
626
|
if (Array.isArray(t)) {
|
|
627
627
|
let n = [];
|
|
628
|
-
for (let i of t) if (Array.isArray(i)) n.push(...
|
|
628
|
+
for (let i of t) if (Array.isArray(i)) n.push(...Te(i));
|
|
629
629
|
else {
|
|
630
|
-
let s =
|
|
630
|
+
let s = Te(i);
|
|
631
631
|
s !== "" && n.push(s);
|
|
632
632
|
}
|
|
633
633
|
return n;
|
|
634
634
|
}
|
|
635
|
-
return t.type === ce ? { ...t, breakContents:
|
|
635
|
+
return t.type === ce ? { ...t, breakContents: Te(t.breakContents), flatContents: Te(t.flatContents) } : t.type === se ? { ...t, contents: Te(t.contents), expandedStates: t.expandedStates?.map(Te) } : t.type === ye ? { type: "fill", parts: t.parts.map(Te) } : t.contents ? { ...t, contents: Te(t.contents) } : t;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Kp(t) {
|
|
638
638
|
let n = /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ new Set();
|
|
639
|
-
return s(
|
|
639
|
+
return s(Te(t));
|
|
640
640
|
function s(c, d, h) {
|
|
641
641
|
if (typeof c == "string") return JSON.stringify(c);
|
|
642
642
|
if (Array.isArray(c)) {
|
|
@@ -648,11 +648,11 @@ function Jp(t) {
|
|
|
648
648
|
return c.literal ? D ? "literalline" : "literallineWithoutBreakParent" : c.hard ? D ? "hardline" : "hardlineWithoutBreakParent" : c.soft ? "softline" : "line";
|
|
649
649
|
}
|
|
650
650
|
if (c.type === De) return h?.[d - 1]?.type === te && h[d - 1].hard ? void 0 : "breakParent";
|
|
651
|
-
if (c.type ===
|
|
652
|
-
if (c.type ===
|
|
653
|
-
if (c.type ===
|
|
651
|
+
if (c.type === Oe) return "trim";
|
|
652
|
+
if (c.type === Ne) return "indent(" + s(c.contents) + ")";
|
|
653
|
+
if (c.type === Le) return c.n === Number.NEGATIVE_INFINITY ? "dedentToRoot(" + s(c.contents) + ")" : c.n < 0 ? "dedent(" + s(c.contents) + ")" : c.n.type === "root" ? "markAsRoot(" + s(c.contents) + ")" : "align(" + JSON.stringify(c.n) + ", " + s(c.contents) + ")";
|
|
654
654
|
if (c.type === ce) return "ifBreak(" + s(c.breakContents) + (c.flatContents ? ", " + s(c.flatContents) : "") + (c.groupId ? (c.flatContents ? "" : ', ""') + `, { groupId: ${l(c.groupId)} }` : "") + ")";
|
|
655
|
-
if (c.type ===
|
|
655
|
+
if (c.type === Ie) {
|
|
656
656
|
let D = [];
|
|
657
657
|
c.negate && D.push("negate: true"), c.groupId && D.push(`groupId: ${l(c.groupId)}`);
|
|
658
658
|
let m = D.length > 0 ? `, { ${D.join(", ")} }` : "";
|
|
@@ -666,7 +666,7 @@ function Jp(t) {
|
|
|
666
666
|
}
|
|
667
667
|
if (c.type === ye) return `fill([${c.parts.map((D) => s(D)).join(", ")}])`;
|
|
668
668
|
if (c.type === Pe) return "lineSuffix(" + s(c.contents) + ")";
|
|
669
|
-
if (c.type ===
|
|
669
|
+
if (c.type === Re) return "lineSuffixBoundary";
|
|
670
670
|
if (c.type === Ae) return `label(${JSON.stringify(c.label)}, ${s(c.contents)})`;
|
|
671
671
|
if (c.type === He) return "cursor";
|
|
672
672
|
throw new Error("Unknown doc type " + c.type);
|
|
@@ -681,29 +681,29 @@ function Jp(t) {
|
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
|
-
var Yp = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
685
|
-
function
|
|
684
|
+
var Jp = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
685
|
+
function Yp(t) {
|
|
686
686
|
return t === 12288 || t >= 65281 && t <= 65376 || t >= 65504 && t <= 65510;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function Qp(t) {
|
|
689
689
|
return t >= 4352 && t <= 4447 || t === 8986 || t === 8987 || t === 9001 || t === 9002 || t >= 9193 && t <= 9196 || t === 9200 || t === 9203 || t === 9725 || t === 9726 || t === 9748 || t === 9749 || t >= 9776 && t <= 9783 || t >= 9800 && t <= 9811 || t === 9855 || t >= 9866 && t <= 9871 || t === 9875 || t === 9889 || t === 9898 || t === 9899 || t === 9917 || t === 9918 || t === 9924 || t === 9925 || t === 9934 || t === 9940 || t === 9962 || t === 9970 || t === 9971 || t === 9973 || t === 9978 || t === 9981 || t === 9989 || t === 9994 || t === 9995 || t === 10024 || t === 10060 || t === 10062 || t >= 10067 && t <= 10069 || t === 10071 || t >= 10133 && t <= 10135 || t === 10160 || t === 10175 || t === 11035 || t === 11036 || t === 11088 || t === 11093 || t >= 11904 && t <= 11929 || t >= 11931 && t <= 12019 || t >= 12032 && t <= 12245 || t >= 12272 && t <= 12287 || t >= 12289 && t <= 12350 || t >= 12353 && t <= 12438 || t >= 12441 && t <= 12543 || t >= 12549 && t <= 12591 || t >= 12593 && t <= 12686 || t >= 12688 && t <= 12773 || t >= 12783 && t <= 12830 || t >= 12832 && t <= 12871 || t >= 12880 && t <= 42124 || t >= 42128 && t <= 42182 || t >= 43360 && t <= 43388 || t >= 44032 && t <= 55203 || t >= 63744 && t <= 64255 || t >= 65040 && t <= 65049 || t >= 65072 && t <= 65106 || t >= 65108 && t <= 65126 || t >= 65128 && t <= 65131 || t >= 94176 && t <= 94180 || t >= 94192 && t <= 94198 || t >= 94208 && t <= 101589 || t >= 101631 && t <= 101662 || t >= 101760 && t <= 101874 || t >= 110576 && t <= 110579 || t >= 110581 && t <= 110587 || t === 110589 || t === 110590 || t >= 110592 && t <= 110882 || t === 110898 || t >= 110928 && t <= 110930 || t === 110933 || t >= 110948 && t <= 110951 || t >= 110960 && t <= 111355 || t >= 119552 && t <= 119638 || t >= 119648 && t <= 119670 || t === 126980 || t === 127183 || t === 127374 || t >= 127377 && t <= 127386 || t >= 127488 && t <= 127490 || t >= 127504 && t <= 127547 || t >= 127552 && t <= 127560 || t === 127568 || t === 127569 || t >= 127584 && t <= 127589 || t >= 127744 && t <= 127776 || t >= 127789 && t <= 127797 || t >= 127799 && t <= 127868 || t >= 127870 && t <= 127891 || t >= 127904 && t <= 127946 || t >= 127951 && t <= 127955 || t >= 127968 && t <= 127984 || t === 127988 || t >= 127992 && t <= 128062 || t === 128064 || t >= 128066 && t <= 128252 || t >= 128255 && t <= 128317 || t >= 128331 && t <= 128334 || t >= 128336 && t <= 128359 || t === 128378 || t === 128405 || t === 128406 || t === 128420 || t >= 128507 && t <= 128591 || t >= 128640 && t <= 128709 || t === 128716 || t >= 128720 && t <= 128722 || t >= 128725 && t <= 128728 || t >= 128732 && t <= 128735 || t === 128747 || t === 128748 || t >= 128756 && t <= 128764 || t >= 128992 && t <= 129003 || t === 129008 || t >= 129292 && t <= 129338 || t >= 129340 && t <= 129349 || t >= 129351 && t <= 129535 || t >= 129648 && t <= 129660 || t >= 129664 && t <= 129674 || t >= 129678 && t <= 129734 || t === 129736 || t >= 129741 && t <= 129756 || t >= 129759 && t <= 129770 || t >= 129775 && t <= 129784 || t >= 131072 && t <= 196605 || t >= 196608 && t <= 262141;
|
|
690
690
|
}
|
|
691
|
-
var
|
|
692
|
-
function
|
|
691
|
+
var Zp = "©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇", ed = /[^\x20-\x7F]/u, td = new Set(Zp);
|
|
692
|
+
function rd(t) {
|
|
693
693
|
if (!t) return 0;
|
|
694
|
-
if (!
|
|
695
|
-
t = t.replace(
|
|
694
|
+
if (!ed.test(t)) return t.length;
|
|
695
|
+
t = t.replace(Jp(), (i) => td.has(i) ? " " : " ");
|
|
696
696
|
let n = 0;
|
|
697
697
|
for (let i of t) {
|
|
698
698
|
let s = i.codePointAt(0);
|
|
699
|
-
s <= 31 || s >= 127 && s <= 159 || s >= 768 && s <= 879 || s >= 65024 && s <= 65039 || (n +=
|
|
699
|
+
s <= 31 || s >= 127 && s <= 159 || s >= 768 && s <= 879 || s >= 65024 && s <= 65039 || (n += Yp(s) || Qp(s) ? 2 : 1);
|
|
700
700
|
}
|
|
701
701
|
return n;
|
|
702
702
|
}
|
|
703
|
-
var Fn =
|
|
704
|
-
return
|
|
703
|
+
var Fn = rd, nd = { type: 0 }, ud = { type: 1 }, Ia = { value: "", length: 0, queue: [], get root() {
|
|
704
|
+
return Ia;
|
|
705
705
|
} };
|
|
706
|
-
function
|
|
706
|
+
function Pa(t, n, i) {
|
|
707
707
|
let s = n.type === 1 ? t.queue.slice(0, -1) : [...t.queue, n], l = "", c = 0, d = 0, h = 0;
|
|
708
708
|
for (let A of s) switch (A.type) {
|
|
709
709
|
case 0:
|
|
@@ -742,17 +742,17 @@ function Ia(t, n, i) {
|
|
|
742
742
|
d = 0, h = 0;
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function ad(t, n, i) {
|
|
746
746
|
if (!n) return t;
|
|
747
747
|
if (n.type === "root") return { ...t, root: t };
|
|
748
748
|
if (n === Number.NEGATIVE_INFINITY) return t.root;
|
|
749
749
|
let s;
|
|
750
|
-
return typeof n == "number" ? n < 0 ? s =
|
|
750
|
+
return typeof n == "number" ? n < 0 ? s = ud : s = { type: 2, width: n } : s = { type: 3, string: n }, Pa(t, s, i);
|
|
751
751
|
}
|
|
752
|
-
function
|
|
753
|
-
return
|
|
752
|
+
function id(t, n) {
|
|
753
|
+
return Pa(t, nd, n);
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function sd(t) {
|
|
756
756
|
let n = 0;
|
|
757
757
|
for (let i = t.length - 1; i >= 0; i--) {
|
|
758
758
|
let s = t[i];
|
|
@@ -762,7 +762,7 @@ function od(t) {
|
|
|
762
762
|
return n;
|
|
763
763
|
}
|
|
764
764
|
function Ra(t) {
|
|
765
|
-
let n =
|
|
765
|
+
let n = sd(t);
|
|
766
766
|
return { text: n === 0 ? t : t.slice(0, t.length - n), count: n };
|
|
767
767
|
}
|
|
768
768
|
var ie = Symbol("MODE_BREAK"), ve = Symbol("MODE_FLAT"), on = Symbol("DOC_FILL_PRINTED_LENGTH");
|
|
@@ -780,26 +780,26 @@ function hr(t, n, i, s, l, c) {
|
|
|
780
780
|
case rt:
|
|
781
781
|
v && (h && (m += " ", i -= 1, h = !1), m += v, i -= Fn(v));
|
|
782
782
|
break;
|
|
783
|
-
case
|
|
783
|
+
case Be:
|
|
784
784
|
case ye: {
|
|
785
|
-
let F = _ ===
|
|
785
|
+
let F = _ === Be ? v : v.parts, A = v[on] ?? 0;
|
|
786
786
|
for (let b = F.length - 1; b >= A; b--) D.push({ mode: E, doc: F[b] });
|
|
787
787
|
break;
|
|
788
788
|
}
|
|
789
|
-
case Be:
|
|
790
789
|
case Ne:
|
|
791
|
-
case
|
|
790
|
+
case Le:
|
|
791
|
+
case Ie:
|
|
792
792
|
case Ae:
|
|
793
793
|
D.push({ mode: E, doc: v.contents });
|
|
794
794
|
break;
|
|
795
|
-
case
|
|
795
|
+
case Oe: {
|
|
796
796
|
let { text: F, count: A } = Ra(m);
|
|
797
797
|
m = F, i += A;
|
|
798
798
|
break;
|
|
799
799
|
}
|
|
800
800
|
case se: {
|
|
801
801
|
if (c && v.break) return !1;
|
|
802
|
-
let F = v.break ? ie : E, A = v.expandedStates && F === ie ?
|
|
802
|
+
let F = v.break ? ie : E, A = v.expandedStates && F === ie ? Z(0, v.expandedStates, -1) : v.contents;
|
|
803
803
|
D.push({ mode: F, doc: A });
|
|
804
804
|
break;
|
|
805
805
|
}
|
|
@@ -815,7 +815,7 @@ function hr(t, n, i, s, l, c) {
|
|
|
815
815
|
case Pe:
|
|
816
816
|
s = !0;
|
|
817
817
|
break;
|
|
818
|
-
case
|
|
818
|
+
case Re:
|
|
819
819
|
if (s) return !1;
|
|
820
820
|
break;
|
|
821
821
|
}
|
|
@@ -823,8 +823,8 @@ function hr(t, n, i, s, l, c) {
|
|
|
823
823
|
return !1;
|
|
824
824
|
}
|
|
825
825
|
function _r(t, n) {
|
|
826
|
-
let i = /* @__PURE__ */ Object.create(null), s = n.printWidth, l = mn(n.endOfLine), c = 0, d = [{ indent:
|
|
827
|
-
for (
|
|
826
|
+
let i = /* @__PURE__ */ Object.create(null), s = n.printWidth, l = mn(n.endOfLine), c = 0, d = [{ indent: Ia, mode: ie, doc: t }], h = "", D = !1, m = [], E = [], v = [], _ = [], F = 0;
|
|
827
|
+
for (xp(t); d.length > 0; ) {
|
|
828
828
|
let { indent: N, mode: L, doc: w } = d.pop();
|
|
829
829
|
switch (nt(w)) {
|
|
830
830
|
case rt: {
|
|
@@ -834,20 +834,20 @@ function _r(t, n) {
|
|
|
834
834
|
I && (h += I, d.length > 0 && (c += Fn(I)));
|
|
835
835
|
break;
|
|
836
836
|
}
|
|
837
|
-
case
|
|
837
|
+
case Be:
|
|
838
838
|
for (let I = w.length - 1; I >= 0; I--) d.push({ indent: N, mode: L, doc: w[I] });
|
|
839
839
|
break;
|
|
840
840
|
case He:
|
|
841
841
|
if (E.length >= 2) throw new Error("There are too many 'cursor' in doc.");
|
|
842
842
|
E.push(F + h.length);
|
|
843
843
|
break;
|
|
844
|
-
case Be:
|
|
845
|
-
d.push({ indent: sd(N, n), mode: L, doc: w.contents });
|
|
846
|
-
break;
|
|
847
844
|
case Ne:
|
|
848
|
-
d.push({ indent: id(N,
|
|
845
|
+
d.push({ indent: id(N, n), mode: L, doc: w.contents });
|
|
849
846
|
break;
|
|
850
847
|
case Le:
|
|
848
|
+
d.push({ indent: ad(N, w.n, n), mode: L, doc: w.contents });
|
|
849
|
+
break;
|
|
850
|
+
case Oe:
|
|
851
851
|
B();
|
|
852
852
|
break;
|
|
853
853
|
case se:
|
|
@@ -859,10 +859,10 @@ function _r(t, n) {
|
|
|
859
859
|
}
|
|
860
860
|
case ie: {
|
|
861
861
|
D = !1;
|
|
862
|
-
let I = { indent: N, mode: ve, doc: w.contents },
|
|
863
|
-
if (!w.break && hr(I, d,
|
|
862
|
+
let I = { indent: N, mode: ve, doc: w.contents }, H = s - c, K = m.length > 0;
|
|
863
|
+
if (!w.break && hr(I, d, H, K, i)) d.push(I);
|
|
864
864
|
else if (w.expandedStates) {
|
|
865
|
-
let oe =
|
|
865
|
+
let oe = Z(0, w.expandedStates, -1);
|
|
866
866
|
if (w.break) {
|
|
867
867
|
d.push({ indent: N, mode: ie, doc: oe });
|
|
868
868
|
break;
|
|
@@ -871,7 +871,7 @@ function _r(t, n) {
|
|
|
871
871
|
break;
|
|
872
872
|
} else {
|
|
873
873
|
let O = w.expandedStates[ue], R = { indent: N, mode: ve, doc: O };
|
|
874
|
-
if (hr(R, d,
|
|
874
|
+
if (hr(R, d, H, K, i)) {
|
|
875
875
|
d.push(R);
|
|
876
876
|
break;
|
|
877
877
|
}
|
|
@@ -880,12 +880,12 @@ function _r(t, n) {
|
|
|
880
880
|
break;
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
w.id && (i[w.id] =
|
|
883
|
+
w.id && (i[w.id] = Z(0, d, -1).mode);
|
|
884
884
|
break;
|
|
885
885
|
case ye: {
|
|
886
|
-
let I = s - c,
|
|
886
|
+
let I = s - c, H = w[on] ?? 0, { parts: K } = w, oe = K.length - H;
|
|
887
887
|
if (oe === 0) break;
|
|
888
|
-
let ue = K[
|
|
888
|
+
let ue = K[H + 0], O = K[H + 1], R = { indent: N, mode: ve, doc: ue }, me = { indent: N, mode: ie, doc: ue }, k = hr(R, [], I, m.length > 0, i, !0);
|
|
889
889
|
if (oe === 1) {
|
|
890
890
|
k ? d.push(R) : d.push(me);
|
|
891
891
|
break;
|
|
@@ -895,27 +895,27 @@ function _r(t, n) {
|
|
|
895
895
|
k ? d.push(ne, R) : d.push(ge, me);
|
|
896
896
|
break;
|
|
897
897
|
}
|
|
898
|
-
let
|
|
899
|
-
d.push(fe),
|
|
898
|
+
let ee = K[H + 2], fe = { indent: N, mode: L, doc: { ...w, [on]: H + 2 } }, j = hr({ indent: N, mode: ve, doc: [ue, O, ee] }, [], I, m.length > 0, i, !0);
|
|
899
|
+
d.push(fe), j ? d.push(ne, R) : k ? d.push(ge, R) : d.push(ge, me);
|
|
900
900
|
break;
|
|
901
901
|
}
|
|
902
902
|
case ce:
|
|
903
|
-
case
|
|
903
|
+
case Ie: {
|
|
904
904
|
let I = w.groupId ? i[w.groupId] : L;
|
|
905
905
|
if (I === ie) {
|
|
906
|
-
let
|
|
907
|
-
|
|
906
|
+
let H = w.type === ce ? w.breakContents : w.negate ? w.contents : gr(w.contents);
|
|
907
|
+
H && d.push({ indent: N, mode: L, doc: H });
|
|
908
908
|
}
|
|
909
909
|
if (I === ve) {
|
|
910
|
-
let
|
|
911
|
-
|
|
910
|
+
let H = w.type === ce ? w.flatContents : w.negate ? gr(w.contents) : w.contents;
|
|
911
|
+
H && d.push({ indent: N, mode: L, doc: H });
|
|
912
912
|
}
|
|
913
913
|
break;
|
|
914
914
|
}
|
|
915
915
|
case Pe:
|
|
916
916
|
m.push({ indent: N, mode: L, doc: w.contents });
|
|
917
917
|
break;
|
|
918
|
-
case
|
|
918
|
+
case Re:
|
|
919
919
|
m.length > 0 && d.push({ indent: N, mode: L, doc: En });
|
|
920
920
|
break;
|
|
921
921
|
case te:
|
|
@@ -948,30 +948,30 @@ function _r(t, n) {
|
|
|
948
948
|
let A = v.join("") + h, b = [..._, ...E];
|
|
949
949
|
if (b.length !== 2) return { formatted: A };
|
|
950
950
|
let x = b[0];
|
|
951
|
-
return { formatted: A, cursorNodeStart: x, cursorNodeText: A.slice(x,
|
|
951
|
+
return { formatted: A, cursorNodeStart: x, cursorNodeText: A.slice(x, Z(0, b, -1)) };
|
|
952
952
|
function B() {
|
|
953
953
|
let { text: N, count: L } = Ra(h);
|
|
954
954
|
N && (v.push(N), F += N.length), h = "", c -= L, E.length > 0 && (_.push(...E.map((w) => Math.min(w, F))), E.length = 0);
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function od(t, n, i = 0) {
|
|
958
958
|
let s = 0;
|
|
959
959
|
for (let l = i; l < t.length; ++l) t[l] === " " ? s = s + n - s % n : s++;
|
|
960
960
|
return s;
|
|
961
961
|
}
|
|
962
|
-
var vn =
|
|
962
|
+
var vn = od, ld = class {
|
|
963
963
|
constructor(t) {
|
|
964
964
|
this.stack = [t];
|
|
965
965
|
}
|
|
966
966
|
get key() {
|
|
967
967
|
let { stack: t, siblings: n } = this;
|
|
968
|
-
return
|
|
968
|
+
return Z(0, t, n === null ? -2 : -4) ?? null;
|
|
969
969
|
}
|
|
970
970
|
get index() {
|
|
971
|
-
return this.siblings === null ? null :
|
|
971
|
+
return this.siblings === null ? null : Z(0, this.stack, -2);
|
|
972
972
|
}
|
|
973
973
|
get node() {
|
|
974
|
-
return
|
|
974
|
+
return Z(0, this.stack, -1);
|
|
975
975
|
}
|
|
976
976
|
get parent() {
|
|
977
977
|
return this.getNode(1);
|
|
@@ -983,7 +983,7 @@ var vn = ld, cd = class {
|
|
|
983
983
|
return this.siblings !== null;
|
|
984
984
|
}
|
|
985
985
|
get siblings() {
|
|
986
|
-
let { stack: t } = this, n =
|
|
986
|
+
let { stack: t } = this, n = Z(0, t, -3);
|
|
987
987
|
return Array.isArray(n) ? n : null;
|
|
988
988
|
}
|
|
989
989
|
get next() {
|
|
@@ -1012,10 +1012,10 @@ var vn = ld, cd = class {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
getName() {
|
|
1014
1014
|
let { stack: t } = this, { length: n } = t;
|
|
1015
|
-
return n > 1 ?
|
|
1015
|
+
return n > 1 ? Z(0, t, -2) : null;
|
|
1016
1016
|
}
|
|
1017
1017
|
getValue() {
|
|
1018
|
-
return
|
|
1018
|
+
return Z(0, this.stack, -1);
|
|
1019
1019
|
}
|
|
1020
1020
|
getNode(t = 0) {
|
|
1021
1021
|
let n = this.#e(t);
|
|
@@ -1030,7 +1030,7 @@ var vn = ld, cd = class {
|
|
|
1030
1030
|
return -1;
|
|
1031
1031
|
}
|
|
1032
1032
|
call(t, ...n) {
|
|
1033
|
-
let { stack: i } = this, { length: s } = i, l =
|
|
1033
|
+
let { stack: i } = this, { length: s } = i, l = Z(0, i, -1);
|
|
1034
1034
|
for (let c of n) l = l?.[c], i.push(c, l);
|
|
1035
1035
|
try {
|
|
1036
1036
|
return t(this);
|
|
@@ -1047,7 +1047,7 @@ var vn = ld, cd = class {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
each(t, ...n) {
|
|
1050
|
-
let { stack: i } = this, { length: s } = i, l =
|
|
1050
|
+
let { stack: i } = this, { length: s } = i, l = Z(0, i, -1);
|
|
1051
1051
|
for (let c of n) l = l[c], i.push(c, l);
|
|
1052
1052
|
try {
|
|
1053
1053
|
for (let c = 0; c < l.length; ++c) i.push(c, l[c]), t(this, c, l), i.length -= 2;
|
|
@@ -1085,12 +1085,12 @@ var vn = ld, cd = class {
|
|
|
1085
1085
|
Array.isArray(i) || (yield i);
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
|
-
},
|
|
1089
|
-
function
|
|
1088
|
+
}, cd = ld;
|
|
1089
|
+
function pd(t) {
|
|
1090
1090
|
return t !== null && typeof t == "object";
|
|
1091
1091
|
}
|
|
1092
|
-
var _n =
|
|
1093
|
-
function
|
|
1092
|
+
var _n = pd;
|
|
1093
|
+
function Jt(t) {
|
|
1094
1094
|
return (n, i, s) => {
|
|
1095
1095
|
let l = !!s?.backwards;
|
|
1096
1096
|
if (i === !1) return !1;
|
|
@@ -1105,9 +1105,9 @@ function Gt(t) {
|
|
|
1105
1105
|
return d === -1 || d === c ? d : !1;
|
|
1106
1106
|
};
|
|
1107
1107
|
}
|
|
1108
|
-
var
|
|
1108
|
+
var dd = Jt(/\s/u), je = Jt(" "), Ma = Jt(",; "), qa = Jt(/[^\n\r]/u), Qu = (t) => t === `
|
|
1109
1109
|
` || t === "\r" || t === "\u2028" || t === "\u2029";
|
|
1110
|
-
function
|
|
1110
|
+
function hd(t, n, i) {
|
|
1111
1111
|
let s = !!i?.backwards;
|
|
1112
1112
|
if (n === !1) return !1;
|
|
1113
1113
|
let l = t.charAt(n);
|
|
@@ -1122,16 +1122,16 @@ function Dd(t, n, i) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
return n;
|
|
1124
1124
|
}
|
|
1125
|
-
var tt =
|
|
1126
|
-
function
|
|
1125
|
+
var tt = hd;
|
|
1126
|
+
function Dd(t, n, i = {}) {
|
|
1127
1127
|
let s = je(t, i.backwards ? n - 1 : n, i), l = tt(t, s, i);
|
|
1128
1128
|
return s !== l;
|
|
1129
1129
|
}
|
|
1130
|
-
var Ve =
|
|
1131
|
-
function
|
|
1130
|
+
var Ve = Dd;
|
|
1131
|
+
function fd(t) {
|
|
1132
1132
|
return Array.isArray(t) && t.length > 0;
|
|
1133
1133
|
}
|
|
1134
|
-
var
|
|
1134
|
+
var md = fd;
|
|
1135
1135
|
function* yr(t, n) {
|
|
1136
1136
|
let { getVisitorKeys: i, filter: s = () => !0 } = n, l = (c) => _n(c) && s(c);
|
|
1137
1137
|
for (let c of i(t)) {
|
|
@@ -1140,14 +1140,14 @@ function* yr(t, n) {
|
|
|
1140
1140
|
else l(d) && (yield d);
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
|
-
function*
|
|
1143
|
+
function* gd(t, n) {
|
|
1144
1144
|
let i = [t];
|
|
1145
1145
|
for (let s = 0; s < i.length; s++) {
|
|
1146
1146
|
let l = i[s];
|
|
1147
1147
|
for (let c of yr(l, n)) yield c, i.push(c);
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Cd(t, n) {
|
|
1151
1151
|
return yr(t, n).next().done;
|
|
1152
1152
|
}
|
|
1153
1153
|
function Va(t, n, i) {
|
|
@@ -1159,20 +1159,20 @@ function Va(t, n, i) {
|
|
|
1159
1159
|
return d.sort((m, E) => h(m) - h(E) || D(m) - D(E)), s.set(t, d), d;
|
|
1160
1160
|
}
|
|
1161
1161
|
var ja = Va;
|
|
1162
|
-
function
|
|
1162
|
+
function Ed(t) {
|
|
1163
1163
|
let n = t.type || t.kind || "(unknown type)", i = String(t.name || t.id && (typeof t.id == "object" ? t.id.name : t.id) || t.key && (typeof t.key == "object" ? t.key.name : t.key) || t.value && (typeof t.value == "object" ? "" : String(t.value)) || t.operator || "");
|
|
1164
1164
|
return i.length > 20 && (i = i.slice(0, 19) + "…"), n + (i ? " " + i : "");
|
|
1165
1165
|
}
|
|
1166
1166
|
function yn(t, n) {
|
|
1167
|
-
(t.comments ?? (t.comments = [])).push(n), n.printed = !1, n.nodeDescription =
|
|
1167
|
+
(t.comments ?? (t.comments = [])).push(n), n.printed = !1, n.nodeDescription = Ed(t);
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function Xt(t, n) {
|
|
1170
1170
|
n.leading = !0, n.trailing = !1, yn(t, n);
|
|
1171
1171
|
}
|
|
1172
1172
|
function Qe(t, n, i) {
|
|
1173
1173
|
n.leading = !1, n.trailing = !1, i && (n.marker = i), yn(t, n);
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function Gt(t, n) {
|
|
1176
1176
|
n.leading = !1, n.trailing = !0, yn(t, n);
|
|
1177
1177
|
}
|
|
1178
1178
|
var Ha = /* @__PURE__ */ new WeakMap();
|
|
@@ -1198,23 +1198,23 @@ function $a(t, n, i, s, l = []) {
|
|
|
1198
1198
|
return { enclosingNode: s, precedingNode: E, followingNode: v };
|
|
1199
1199
|
}
|
|
1200
1200
|
var Qr = () => !1;
|
|
1201
|
-
function
|
|
1201
|
+
function Fd(t, n) {
|
|
1202
1202
|
let { comments: i } = t;
|
|
1203
|
-
if (delete t.comments, !
|
|
1203
|
+
if (delete t.comments, !md(i) || !n.printer.canAttachComment) return;
|
|
1204
1204
|
let s = [], { printer: { features: { experimental_avoidAstMutation: l }, handleComments: c = {} }, originalText: d } = n, { ownLine: h = Qr, endOfLine: D = Qr, remaining: m = Qr } = c, E = i.map((v, _) => ({ ...$a(t, v, n), comment: v, text: d, options: n, ast: t, isLastComment: i.length - 1 === _ }));
|
|
1205
1205
|
for (let [v, _] of E.entries()) {
|
|
1206
1206
|
let { comment: F, precedingNode: A, enclosingNode: b, followingNode: x, text: B, options: N, ast: L, isLastComment: w } = _, I;
|
|
1207
|
-
if (l ? I = [_] : (F.enclosingNode = b, F.precedingNode = A, F.followingNode = x, I = [F, B, N, L, w]),
|
|
1208
|
-
else if (
|
|
1207
|
+
if (l ? I = [_] : (F.enclosingNode = b, F.precedingNode = A, F.followingNode = x, I = [F, B, N, L, w]), vd(B, N, E, v)) F.placement = "ownLine", h(...I) || (x ? Xt(x, F) : A ? Gt(A, F) : Qe(b || L, F));
|
|
1208
|
+
else if (_d(B, N, E, v)) F.placement = "endOfLine", D(...I) || (A ? Gt(A, F) : x ? Xt(x, F) : Qe(b || L, F));
|
|
1209
1209
|
else if (F.placement = "remaining", !m(...I)) if (A && x) {
|
|
1210
|
-
let
|
|
1211
|
-
|
|
1212
|
-
} else A ?
|
|
1210
|
+
let H = s.length;
|
|
1211
|
+
H > 0 && s[H - 1].followingNode !== x && Zu(s, N), s.push(_);
|
|
1212
|
+
} else A ? Gt(A, F) : x ? Xt(x, F) : Qe(b || L, F);
|
|
1213
1213
|
}
|
|
1214
1214
|
if (Zu(s, n), !l) for (let v of i) delete v.precedingNode, delete v.enclosingNode, delete v.followingNode;
|
|
1215
1215
|
}
|
|
1216
1216
|
var Ua = (t) => !/[\S\n\u2028\u2029]/u.test(t);
|
|
1217
|
-
function
|
|
1217
|
+
function vd(t, n, i, s) {
|
|
1218
1218
|
let { comment: l, precedingNode: c } = i[s], { locStart: d, locEnd: h } = n, D = d(l);
|
|
1219
1219
|
if (c) for (let m = s - 1; m >= 0; m--) {
|
|
1220
1220
|
let { comment: E, precedingNode: v } = i[m];
|
|
@@ -1223,7 +1223,7 @@ function _d(t, n, i, s) {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
return Ve(t, D, { backwards: !0 });
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function _d(t, n, i, s) {
|
|
1227
1227
|
let { comment: l, followingNode: c } = i[s], { locStart: d, locEnd: h } = n, D = h(l);
|
|
1228
1228
|
if (c) for (let m = s + 1; m < i.length; m++) {
|
|
1229
1229
|
let { comment: E, followingNode: v } = i[m];
|
|
@@ -1241,7 +1241,7 @@ function Zu(t, n) {
|
|
|
1241
1241
|
if (n.printer.isGap?.(E, n) ?? /^[\s(]*$/u.test(E)) c = n.locStart(h);
|
|
1242
1242
|
else break;
|
|
1243
1243
|
}
|
|
1244
|
-
for (let [h, { comment: D }] of t.entries()) h < d ?
|
|
1244
|
+
for (let [h, { comment: D }] of t.entries()) h < d ? Gt(s, D) : Xt(l, D);
|
|
1245
1245
|
for (let h of [s, l]) h.comments && h.comments.length > 1 && h.comments.sort((D, m) => n.locStart(D) - n.locStart(m));
|
|
1246
1246
|
t.length = 0;
|
|
1247
1247
|
}
|
|
@@ -1250,35 +1250,35 @@ function Zr(t, n, i) {
|
|
|
1250
1250
|
for (let l = 1; l < t.length; ++l) if (s < i.locStart(t[l])) return l - 1;
|
|
1251
1251
|
return 0;
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function yd(t, n) {
|
|
1254
1254
|
let i = n - 1;
|
|
1255
1255
|
i = je(t, i, { backwards: !0 }), i = tt(t, i, { backwards: !0 }), i = je(t, i, { backwards: !0 });
|
|
1256
1256
|
let s = tt(t, i, { backwards: !0 });
|
|
1257
1257
|
return i !== s;
|
|
1258
1258
|
}
|
|
1259
|
-
var An =
|
|
1259
|
+
var An = yd;
|
|
1260
1260
|
function Wa(t, n) {
|
|
1261
1261
|
let i = t.node;
|
|
1262
1262
|
return i.printed = !0, n.printer.printComment(t, n);
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Ad(t, n) {
|
|
1265
1265
|
let i = t.node, s = [Wa(t, n)], { printer: l, originalText: c, locStart: d, locEnd: h } = n;
|
|
1266
1266
|
if (l.isBlockComment?.(i)) {
|
|
1267
|
-
let m = Ve(c, h(i)) ? Ve(c, d(i), { backwards: !0 }) ?
|
|
1267
|
+
let m = Ve(c, h(i)) ? Ve(c, d(i), { backwards: !0 }) ? xe : Na : " ";
|
|
1268
1268
|
s.push(m);
|
|
1269
|
-
} else s.push(
|
|
1269
|
+
} else s.push(xe);
|
|
1270
1270
|
let D = tt(c, je(c, h(i)));
|
|
1271
|
-
return D !== !1 && Ve(c, D) && s.push(
|
|
1271
|
+
return D !== !1 && Ve(c, D) && s.push(xe), s;
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function Sd(t, n, i) {
|
|
1274
1274
|
let s = t.node, l = Wa(t, n), { printer: c, originalText: d, locStart: h } = n, D = c.isBlockComment?.(s);
|
|
1275
1275
|
if (i?.hasLineSuffix && !i?.isBlock || Ve(d, h(s), { backwards: !0 })) {
|
|
1276
1276
|
let m = An(d, h(s));
|
|
1277
|
-
return { doc: sn([
|
|
1277
|
+
return { doc: sn([xe, m ? xe : "", l]), isBlock: D, hasLineSuffix: !0 };
|
|
1278
1278
|
}
|
|
1279
1279
|
return !D || i?.hasLineSuffix ? { doc: [sn([" ", l]), vr], isBlock: D, hasLineSuffix: !0 } : { doc: [" ", l], isBlock: D, hasLineSuffix: !1 };
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function bd(t, n) {
|
|
1282
1282
|
let i = t.node;
|
|
1283
1283
|
if (!i) return {};
|
|
1284
1284
|
let s = n[Symbol.for("printedComments")];
|
|
@@ -1288,14 +1288,14 @@ function kd(t, n) {
|
|
|
1288
1288
|
let h = t.node;
|
|
1289
1289
|
if (s?.has(h)) return;
|
|
1290
1290
|
let { leading: D, trailing: m } = h;
|
|
1291
|
-
D ? l.push(
|
|
1291
|
+
D ? l.push(Ad(t, n)) : m && (d = Sd(t, n, d), c.push(d.doc));
|
|
1292
1292
|
}, "comments"), { leading: l, trailing: c };
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1295
|
-
let { leading: s, trailing: l } =
|
|
1294
|
+
function kd(t, n, i) {
|
|
1295
|
+
let { leading: s, trailing: l } = bd(t, i);
|
|
1296
1296
|
return !s && !l ? n : fr(n, (c) => [s, c, l]);
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function wd(t) {
|
|
1299
1299
|
let { [Symbol.for("comments")]: n, [Symbol.for("printedComments")]: i } = t;
|
|
1300
1300
|
for (let s of n) {
|
|
1301
1301
|
if (!s.printed && !i.has(s)) throw new Error('Comment "' + s.value.trim() + '" was not printed. Please report this error!');
|
|
@@ -1306,16 +1306,16 @@ var za = class extends Error {
|
|
|
1306
1306
|
name = "ConfigError";
|
|
1307
1307
|
}, ea = class extends Error {
|
|
1308
1308
|
name = "UndefinedParserError";
|
|
1309
|
-
},
|
|
1309
|
+
}, Td = { checkIgnorePragma: { category: "Special", type: "boolean", default: !1, description: "Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.", cliCategory: "Other" }, cursorOffset: { category: "Special", type: "int", default: -1, range: { start: -1, end: 1 / 0, step: 1 }, description: "Print (to stderr) where a cursor at the given position would move to after formatting.", cliCategory: "Editor" }, endOfLine: { category: "Global", type: "choice", default: "lf", description: "Which end of line characters to apply.", choices: [{ value: "lf", description: "Line Feed only (\\n), common on Linux and macOS as well as inside git repos" }, { value: "crlf", description: "Carriage Return + Line Feed characters (\\r\\n), common on Windows" }, { value: "cr", description: "Carriage Return character only (\\r), used very rarely" }, { value: "auto", description: `Maintain existing
|
|
1310
1310
|
(mixed values within one file are normalised by looking at what's used after the first line)` }] }, filepath: { category: "Special", type: "path", description: "Specify the input filepath. This will be used to do parser inference.", cliName: "stdin-filepath", cliCategory: "Other", cliDescription: "Path to the file to pretend that stdin comes from." }, insertPragma: { category: "Special", type: "boolean", default: !1, description: "Insert @format pragma into file's first docblock comment.", cliCategory: "Other" }, parser: { category: "Global", type: "choice", default: void 0, description: "Which parser to use.", exception: (t) => typeof t == "string" || typeof t == "function", choices: [{ value: "flow", description: "Flow" }, { value: "babel", description: "JavaScript" }, { value: "babel-flow", description: "Flow" }, { value: "babel-ts", description: "TypeScript" }, { value: "typescript", description: "TypeScript" }, { value: "acorn", description: "JavaScript" }, { value: "espree", description: "JavaScript" }, { value: "meriyah", description: "JavaScript" }, { value: "css", description: "CSS" }, { value: "less", description: "Less" }, { value: "scss", description: "SCSS" }, { value: "json", description: "JSON" }, { value: "json5", description: "JSON5" }, { value: "jsonc", description: "JSON with Comments" }, { value: "json-stringify", description: "JSON.stringify" }, { value: "graphql", description: "GraphQL" }, { value: "markdown", description: "Markdown" }, { value: "mdx", description: "MDX" }, { value: "vue", description: "Vue" }, { value: "yaml", description: "YAML" }, { value: "glimmer", description: "Ember / Handlebars" }, { value: "html", description: "HTML" }, { value: "angular", description: "Angular" }, { value: "lwc", description: "Lightning Web Components" }, { value: "mjml", description: "MJML" }] }, plugins: { type: "path", array: !0, default: [{ value: [] }], category: "Global", description: "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.", exception: (t) => typeof t == "string" || typeof t == "object", cliName: "plugin", cliCategory: "Config" }, printWidth: { category: "Global", type: "int", default: 80, description: "The line length where Prettier will try wrap.", range: { start: 0, end: 1 / 0, step: 1 } }, rangeEnd: { category: "Special", type: "int", default: 1 / 0, range: { start: 0, end: 1 / 0, step: 1 }, description: `Format code ending at a given character offset (exclusive).
|
|
1311
1311
|
The range will extend forwards to the end of the selected statement.`, cliCategory: "Editor" }, rangeStart: { category: "Special", type: "int", default: 0, range: { start: 0, end: 1 / 0, step: 1 }, description: `Format code starting at a given character offset.
|
|
1312
1312
|
The range will extend backwards to the start of the first line containing the selected statement.`, cliCategory: "Editor" }, requirePragma: { category: "Special", type: "boolean", default: !1, description: "Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.", cliCategory: "Other" }, tabWidth: { type: "int", category: "Global", default: 2, description: "Number of spaces per indentation level.", range: { start: 0, end: 1 / 0, step: 1 } }, useTabs: { category: "Global", type: "boolean", default: !1, description: "Indent with tabs instead of spaces." }, embeddedLanguageFormatting: { category: "Global", type: "choice", default: "auto", description: "Control how Prettier formats quoted code embedded in the file.", choices: [{ value: "auto", description: "Format embedded code if Prettier can automatically identify it." }, { value: "off", description: "Never automatically format embedded code." }] } };
|
|
1313
1313
|
function Xa({ plugins: t = [], showDeprecated: n = !1 } = {}) {
|
|
1314
1314
|
let i = t.flatMap((l) => l.languages ?? []), s = [];
|
|
1315
|
-
for (let l of
|
|
1315
|
+
for (let l of Bd(Object.assign({}, ...t.map(({ options: c }) => c), Td))) !n && l.deprecated || (Array.isArray(l.choices) && (n || (l.choices = l.choices.filter((c) => !c.deprecated)), l.name === "parser" && (l.choices = [...l.choices, ...xd(l.choices, i, t)])), l.pluginDefaults = Object.fromEntries(t.filter((c) => c.defaultOptions?.[l.name] !== void 0).map((c) => [c.name, c.defaultOptions[l.name]])), s.push(l));
|
|
1316
1316
|
return { languages: i, options: s };
|
|
1317
1317
|
}
|
|
1318
|
-
function*
|
|
1318
|
+
function* xd(t, n, i) {
|
|
1319
1319
|
let s = new Set(t.map((l) => l.value));
|
|
1320
1320
|
for (let l of n) if (l.parsers) {
|
|
1321
1321
|
for (let c of l.parsers) if (!s.has(c)) {
|
|
@@ -1325,72 +1325,72 @@ function* Bd(t, n, i) {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function Bd(t) {
|
|
1329
1329
|
let n = [];
|
|
1330
1330
|
for (let [i, s] of Object.entries(t)) {
|
|
1331
1331
|
let l = { name: i, ...s };
|
|
1332
|
-
Array.isArray(l.default) && (l.default =
|
|
1332
|
+
Array.isArray(l.default) && (l.default = Z(0, l.default, -1).value), n.push(l);
|
|
1333
1333
|
}
|
|
1334
1334
|
return n;
|
|
1335
1335
|
}
|
|
1336
|
-
var
|
|
1336
|
+
var Nd = Array.prototype.toReversed ?? function() {
|
|
1337
1337
|
return [...this].reverse();
|
|
1338
|
-
},
|
|
1339
|
-
if (Array.isArray(this)) return
|
|
1340
|
-
}),
|
|
1338
|
+
}, Ld = Kt("toReversed", function() {
|
|
1339
|
+
if (Array.isArray(this)) return Nd;
|
|
1340
|
+
}), Od = Ld;
|
|
1341
1341
|
function Id() {
|
|
1342
1342
|
let t = globalThis, n = t.Deno?.build?.os;
|
|
1343
1343
|
return typeof n == "string" ? n === "windows" : t.navigator?.platform?.startsWith("Win") ?? t.process?.platform?.startsWith("win") ?? !1;
|
|
1344
1344
|
}
|
|
1345
|
-
var
|
|
1345
|
+
var Pd = Id();
|
|
1346
1346
|
function Ga(t) {
|
|
1347
1347
|
if (t = t instanceof URL ? t : new URL(t), t.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);
|
|
1348
1348
|
return t;
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function Rd(t) {
|
|
1351
1351
|
return t = Ga(t), decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Md(t) {
|
|
1354
1354
|
t = Ga(t);
|
|
1355
1355
|
let n = decodeURIComponent(t.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
|
|
1356
1356
|
return t.hostname !== "" && (n = `\\\\${t.hostname}${n}`), n;
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return
|
|
1358
|
+
function qd(t) {
|
|
1359
|
+
return Pd ? Md(t) : Rd(t);
|
|
1360
1360
|
}
|
|
1361
|
-
var
|
|
1361
|
+
var Vd = (t) => String(t).split(/[/\\]/u).pop(), jd = (t) => String(t).startsWith("file:");
|
|
1362
1362
|
function ta(t, n) {
|
|
1363
1363
|
if (!n) return;
|
|
1364
|
-
let i =
|
|
1364
|
+
let i = Vd(n).toLowerCase();
|
|
1365
1365
|
return t.find(({ filenames: s }) => s?.some((l) => l.toLowerCase() === i)) ?? t.find(({ extensions: s }) => s?.some((l) => i.endsWith(l)));
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function Hd(t, n) {
|
|
1368
1368
|
if (n) return t.find(({ name: i }) => i.toLowerCase() === n) ?? t.find(({ aliases: i }) => i?.includes(n)) ?? t.find(({ extensions: i }) => i?.includes(`.${n}`));
|
|
1369
1369
|
}
|
|
1370
|
-
var
|
|
1370
|
+
var $d = void 0;
|
|
1371
1371
|
function ra(t, n) {
|
|
1372
1372
|
if (n) {
|
|
1373
|
-
if (
|
|
1374
|
-
n =
|
|
1373
|
+
if (jd(n)) try {
|
|
1374
|
+
n = qd(n);
|
|
1375
1375
|
} catch {
|
|
1376
1376
|
return;
|
|
1377
1377
|
}
|
|
1378
1378
|
if (typeof n == "string") return t.find(({ isSupported: i }) => i?.({ filepath: n }));
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1382
|
-
let i =
|
|
1383
|
-
return (
|
|
1381
|
+
function Ud(t, n) {
|
|
1382
|
+
let i = Od(0, t.plugins).flatMap((s) => s.languages ?? []);
|
|
1383
|
+
return (Hd(i, n.language) ?? ta(i, n.physicalFile) ?? ta(i, n.file) ?? ra(i, n.physicalFile) ?? ra(i, n.file) ?? $d?.(i, n.physicalFile))?.parsers[0];
|
|
1384
1384
|
}
|
|
1385
|
-
var Ka =
|
|
1385
|
+
var Ka = Ud, mt = { key: (t) => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t) ? t : JSON.stringify(t), value(t) {
|
|
1386
1386
|
if (t === null || typeof t != "object") return JSON.stringify(t);
|
|
1387
1387
|
if (Array.isArray(t)) return `[${t.map((i) => mt.value(i)).join(", ")}]`;
|
|
1388
1388
|
let n = Object.keys(t);
|
|
1389
1389
|
return n.length === 0 ? "{}" : `{ ${n.map((i) => `${mt.key(i)}: ${mt.value(t[i])}`).join(", ")} }`;
|
|
1390
|
-
}, pair: ({ key: t, value: n }) => mt.value({ [t]: n }) }, Sn = new Proxy(String, { get: () => Sn }), _e = Sn, Ja = () => Sn,
|
|
1390
|
+
}, pair: ({ key: t, value: n }) => mt.value({ [t]: n }) }, Sn = new Proxy(String, { get: () => Sn }), _e = Sn, Ja = () => Sn, Wd = (t, n, { descriptor: i }) => {
|
|
1391
1391
|
let s = [`${_e.yellow(typeof t == "string" ? i.key(t) : i.pair(t))} is deprecated`];
|
|
1392
1392
|
return n && s.push(`we now treat it as ${_e.blue(typeof n == "string" ? i.key(n) : i.pair(n))}`), s.join("; ") + ".";
|
|
1393
|
-
}, Ya = Symbol.for("vnopts.VALUE_NOT_EXIST"), mr = Symbol.for("vnopts.VALUE_UNCHANGED"), na = " ".repeat(2),
|
|
1393
|
+
}, Ya = Symbol.for("vnopts.VALUE_NOT_EXIST"), mr = Symbol.for("vnopts.VALUE_UNCHANGED"), na = " ".repeat(2), zd = (t, n, i) => {
|
|
1394
1394
|
let { text: s, list: l } = i.normalizeExpectedResult(i.schemas[t].expected(i)), c = [];
|
|
1395
1395
|
return s && c.push(ua(t, n, s, i.descriptor)), l && c.push([ua(t, n, l.title, i.descriptor)].concat(l.values.map((d) => Qa(d, i.loggerPrintWidth))).join(`
|
|
1396
1396
|
`)), Za(c, i.loggerPrintWidth);
|
|
@@ -1432,7 +1432,7 @@ function tn(t, n, i) {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
return ft.length = c, en.length = c, s !== void 0 && m > s ? s : m;
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function Xd(t, n, i) {
|
|
1436
1436
|
if (!Array.isArray(n) || n.length === 0) return;
|
|
1437
1437
|
let s = i?.maxDistance, l = t.length;
|
|
1438
1438
|
for (let D of n) if (D === t) return D;
|
|
@@ -1450,17 +1450,17 @@ function Gd(t, n, i) {
|
|
|
1450
1450
|
if (!(d > s)) return c;
|
|
1451
1451
|
}
|
|
1452
1452
|
var ei = (t, n, { descriptor: i, logger: s, schemas: l }) => {
|
|
1453
|
-
let c = [`Ignored unknown option ${_e.yellow(i.pair({ key: t, value: n }))}.`], d =
|
|
1453
|
+
let c = [`Ignored unknown option ${_e.yellow(i.pair({ key: t, value: n }))}.`], d = Xd(t, Object.keys(l), { maxDistance: 3 });
|
|
1454
1454
|
d && c.push(`Did you mean ${_e.blue(i.key(d))}?`), s.warn(c.join(" "));
|
|
1455
|
-
},
|
|
1456
|
-
function
|
|
1455
|
+
}, Gd = ["default", "expected", "validate", "deprecated", "forward", "redirect", "overlap", "preprocess", "postprocess"];
|
|
1456
|
+
function Kd(t, n) {
|
|
1457
1457
|
let i = new t(n), s = Object.create(i);
|
|
1458
|
-
for (let l of
|
|
1458
|
+
for (let l of Gd) l in n && (s[l] = Jd(n[l], i, $e.prototype[l].length));
|
|
1459
1459
|
return s;
|
|
1460
1460
|
}
|
|
1461
1461
|
var $e = class {
|
|
1462
1462
|
static create(t) {
|
|
1463
|
-
return
|
|
1463
|
+
return Kd(this, t);
|
|
1464
1464
|
}
|
|
1465
1465
|
constructor(t) {
|
|
1466
1466
|
this.name = t.name;
|
|
@@ -1490,10 +1490,10 @@ var $e = class {
|
|
|
1490
1490
|
return mr;
|
|
1491
1491
|
}
|
|
1492
1492
|
};
|
|
1493
|
-
function
|
|
1493
|
+
function Jd(t, n, i) {
|
|
1494
1494
|
return typeof t == "function" ? (...s) => t(...s.slice(0, i - 1), n, ...s.slice(i - 1)) : () => t;
|
|
1495
1495
|
}
|
|
1496
|
-
var
|
|
1496
|
+
var Yd = class extends $e {
|
|
1497
1497
|
constructor(t) {
|
|
1498
1498
|
super(t), this._sourceName = t.sourceName;
|
|
1499
1499
|
}
|
|
@@ -1506,14 +1506,14 @@ var Qd = class extends $e {
|
|
|
1506
1506
|
redirect(t, n) {
|
|
1507
1507
|
return this._sourceName;
|
|
1508
1508
|
}
|
|
1509
|
-
},
|
|
1509
|
+
}, Qd = class extends $e {
|
|
1510
1510
|
expected() {
|
|
1511
1511
|
return "anything";
|
|
1512
1512
|
}
|
|
1513
1513
|
validate() {
|
|
1514
1514
|
return !0;
|
|
1515
1515
|
}
|
|
1516
|
-
},
|
|
1516
|
+
}, Zd = class extends $e {
|
|
1517
1517
|
constructor({ valueSchema: t, name: n = t.name, ...i }) {
|
|
1518
1518
|
super({ ...i, name: n }), this._valueSchema = t;
|
|
1519
1519
|
}
|
|
@@ -1561,7 +1561,7 @@ var Qd = class extends $e {
|
|
|
1561
1561
|
function aa({ from: t, to: n }) {
|
|
1562
1562
|
return { from: [t], to: n };
|
|
1563
1563
|
}
|
|
1564
|
-
var
|
|
1564
|
+
var eh = class extends $e {
|
|
1565
1565
|
expected() {
|
|
1566
1566
|
return "true or false";
|
|
1567
1567
|
}
|
|
@@ -1569,7 +1569,7 @@ var th = class extends $e {
|
|
|
1569
1569
|
return typeof t == "boolean";
|
|
1570
1570
|
}
|
|
1571
1571
|
};
|
|
1572
|
-
function
|
|
1572
|
+
function th(t, n) {
|
|
1573
1573
|
let i = /* @__PURE__ */ Object.create(null);
|
|
1574
1574
|
for (let s of t) {
|
|
1575
1575
|
let l = s[n];
|
|
@@ -1578,7 +1578,7 @@ function rh(t, n) {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
return i;
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function rh(t, n) {
|
|
1582
1582
|
let i = /* @__PURE__ */ new Map();
|
|
1583
1583
|
for (let s of t) {
|
|
1584
1584
|
let l = s[n];
|
|
@@ -1587,27 +1587,27 @@ function nh(t, n) {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
return i;
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1590
|
+
function nh() {
|
|
1591
1591
|
let t = /* @__PURE__ */ Object.create(null);
|
|
1592
1592
|
return (n) => {
|
|
1593
1593
|
let i = JSON.stringify(n);
|
|
1594
1594
|
return t[i] ? !0 : (t[i] = !0, !1);
|
|
1595
1595
|
};
|
|
1596
1596
|
}
|
|
1597
|
-
function
|
|
1597
|
+
function uh(t, n) {
|
|
1598
1598
|
let i = [], s = [];
|
|
1599
1599
|
for (let l of t) n(l) ? i.push(l) : s.push(l);
|
|
1600
1600
|
return [i, s];
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1602
|
+
function ah(t) {
|
|
1603
1603
|
return t === Math.floor(t);
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function ih(t, n) {
|
|
1606
1606
|
if (t === n) return 0;
|
|
1607
1607
|
let i = typeof t, s = typeof n, l = ["undefined", "object", "boolean", "number", "string"];
|
|
1608
1608
|
return i !== s ? l.indexOf(i) - l.indexOf(s) : i !== "string" ? Number(t) - Number(n) : t.localeCompare(n);
|
|
1609
1609
|
}
|
|
1610
|
-
function
|
|
1610
|
+
function sh(t) {
|
|
1611
1611
|
return (...n) => {
|
|
1612
1612
|
let i = t(...n);
|
|
1613
1613
|
return typeof i == "string" ? new Error(i) : i;
|
|
@@ -1619,7 +1619,7 @@ function ia(t) {
|
|
|
1619
1619
|
function ti(t) {
|
|
1620
1620
|
if (typeof t == "string") return { text: t };
|
|
1621
1621
|
let { text: n, list: i } = t;
|
|
1622
|
-
return
|
|
1622
|
+
return oh((n || i) !== void 0, "Unexpected `expected` result, there should be at least one field."), i ? { text: n, list: { title: i.title, values: i.values.map(ti) } } : { text: n };
|
|
1623
1623
|
}
|
|
1624
1624
|
function sa(t, n) {
|
|
1625
1625
|
return t === !0 ? !0 : t === !1 ? { value: n } : t;
|
|
@@ -1637,15 +1637,15 @@ function ca(t, n) {
|
|
|
1637
1637
|
let i = ln(typeof t == "object" && "redirect" in t ? t.redirect : t, n);
|
|
1638
1638
|
return i.length === 0 ? { remain: n, redirect: i } : typeof t == "object" && "remain" in t ? { remain: t.remain, redirect: i } : { redirect: i };
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function oh(t, n) {
|
|
1641
1641
|
if (!t) throw new Error(n);
|
|
1642
1642
|
}
|
|
1643
|
-
var
|
|
1643
|
+
var lh = class extends $e {
|
|
1644
1644
|
constructor(t) {
|
|
1645
|
-
super(t), this._choices =
|
|
1645
|
+
super(t), this._choices = rh(t.choices.map((n) => n && typeof n == "object" ? n : { value: n }), "value");
|
|
1646
1646
|
}
|
|
1647
1647
|
expected({ descriptor: t }) {
|
|
1648
|
-
let n = Array.from(this._choices.keys()).map((l) => this._choices.get(l)).filter(({ hidden: l }) => !l).map((l) => l.value).sort(
|
|
1648
|
+
let n = Array.from(this._choices.keys()).map((l) => this._choices.get(l)).filter(({ hidden: l }) => !l).map((l) => l.value).sort(ih).map(t.value), i = n.slice(0, -2), s = n.slice(-2);
|
|
1649
1649
|
return { text: i.concat(s.join(" or ")).join(", "), list: { title: "one of the following values", values: n } };
|
|
1650
1650
|
}
|
|
1651
1651
|
validate(t) {
|
|
@@ -1663,19 +1663,19 @@ var ch = class extends $e {
|
|
|
1663
1663
|
let n = this._choices.get(t);
|
|
1664
1664
|
return n ? n.redirect : void 0;
|
|
1665
1665
|
}
|
|
1666
|
-
},
|
|
1666
|
+
}, ch = class extends $e {
|
|
1667
1667
|
expected() {
|
|
1668
1668
|
return "a number";
|
|
1669
1669
|
}
|
|
1670
1670
|
validate(t, n) {
|
|
1671
1671
|
return typeof t == "number";
|
|
1672
1672
|
}
|
|
1673
|
-
},
|
|
1673
|
+
}, ph = class extends ch {
|
|
1674
1674
|
expected() {
|
|
1675
1675
|
return "an integer";
|
|
1676
1676
|
}
|
|
1677
1677
|
validate(t, n) {
|
|
1678
|
-
return n.normalizeValidateResult(super.validate(t, n), t) === !0 &&
|
|
1678
|
+
return n.normalizeValidateResult(super.validate(t, n), t) === !0 && ah(t);
|
|
1679
1679
|
}
|
|
1680
1680
|
}, pa = class extends $e {
|
|
1681
1681
|
expected() {
|
|
@@ -1684,14 +1684,14 @@ var ch = class extends $e {
|
|
|
1684
1684
|
validate(t) {
|
|
1685
1685
|
return typeof t == "string";
|
|
1686
1686
|
}
|
|
1687
|
-
},
|
|
1687
|
+
}, dh = mt, hh = ei, Dh = zd, fh = Wd, mh = class {
|
|
1688
1688
|
constructor(t, n) {
|
|
1689
|
-
let { logger: i = console, loggerPrintWidth: s = 80, descriptor: l =
|
|
1689
|
+
let { logger: i = console, loggerPrintWidth: s = 80, descriptor: l = dh, unknown: c = hh, invalid: d = Dh, deprecated: h = fh, missing: D = () => !1, required: m = () => !1, preprocess: E = (_) => _, postprocess: v = () => mr } = n || {};
|
|
1690
1690
|
this._utils = { descriptor: l, logger: i || { warn: () => {
|
|
1691
|
-
} }, loggerPrintWidth: s, schemas:
|
|
1691
|
+
} }, loggerPrintWidth: s, schemas: th(t, "name"), normalizeDefaultResult: ia, normalizeExpectedResult: ti, normalizeDeprecatedResult: oa, normalizeForwardResult: ln, normalizeRedirectResult: ca, normalizeValidateResult: sa }, this._unknownHandler = c, this._invalidHandler = sh(d), this._deprecatedHandler = h, this._identifyMissing = (_, F) => !(_ in F) || D(_, F), this._identifyRequired = m, this._preprocess = E, this._postprocess = v, this.cleanHistory();
|
|
1692
1692
|
}
|
|
1693
1693
|
cleanHistory() {
|
|
1694
|
-
this._hasDeprecationWarned =
|
|
1694
|
+
this._hasDeprecationWarned = nh();
|
|
1695
1695
|
}
|
|
1696
1696
|
normalize(t) {
|
|
1697
1697
|
let n = {}, i = [this._preprocess(t, this._utils)], s = () => {
|
|
@@ -1754,7 +1754,7 @@ var ch = class extends $e {
|
|
|
1754
1754
|
for (let n of Object.keys(this._utils.schemas)) if (this._identifyMissing(n, t) && this._identifyRequired(n)) throw this._invalidHandler(n, Ya, this._utils);
|
|
1755
1755
|
}
|
|
1756
1756
|
_partitionOptionKeys(t) {
|
|
1757
|
-
let [n, i] =
|
|
1757
|
+
let [n, i] = uh(Object.keys(t).filter((s) => !this._identifyMissing(s, t)), (s) => s in this._utils.schemas);
|
|
1758
1758
|
return { knownKeys: n, unknownKeys: i };
|
|
1759
1759
|
}
|
|
1760
1760
|
_applyValidation(t, n, i) {
|
|
@@ -1790,7 +1790,7 @@ var ch = class extends $e {
|
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
1792
|
}, rn;
|
|
1793
|
-
function
|
|
1793
|
+
function gh(t, n, { logger: i = !1, isCLI: s = !1, passThrough: l = !1, FlagSchema: c, descriptor: d } = {}) {
|
|
1794
1794
|
if (s) {
|
|
1795
1795
|
if (!c) throw new Error("'FlagSchema' option is required.");
|
|
1796
1796
|
if (!d) throw new Error("'descriptor' option is required.");
|
|
@@ -1798,31 +1798,31 @@ function Ch(t, n, { logger: i = !1, isCLI: s = !1, passThrough: l = !1, FlagSche
|
|
|
1798
1798
|
let h = l ? Array.isArray(l) ? (_, F) => l.includes(_) ? { [_]: F } : void 0 : (_, F) => ({ [_]: F }) : (_, F, A) => {
|
|
1799
1799
|
let { _: b, ...x } = A.schemas;
|
|
1800
1800
|
return ei(_, F, { ...A, schemas: x });
|
|
1801
|
-
}, D =
|
|
1801
|
+
}, D = Ch(n, { isCLI: s, FlagSchema: c }), m = new mh(D, { logger: i, unknown: h, descriptor: d }), E = i !== !1;
|
|
1802
1802
|
E && rn && (m._hasDeprecationWarned = rn);
|
|
1803
1803
|
let v = m.normalize(t);
|
|
1804
1804
|
return E && (rn = m._hasDeprecationWarned), v;
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function Ch(t, { isCLI: n, FlagSchema: i }) {
|
|
1807
1807
|
let s = [];
|
|
1808
|
-
n && s.push(
|
|
1809
|
-
for (let l of t) s.push(
|
|
1808
|
+
n && s.push(Qd.create({ name: "_" }));
|
|
1809
|
+
for (let l of t) s.push(Eh(l, { isCLI: n, optionInfos: t, FlagSchema: i })), l.alias && n && s.push(Yd.create({ name: l.alias, sourceName: l.name }));
|
|
1810
1810
|
return s;
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function Eh(t, { isCLI: n, optionInfos: i, FlagSchema: s }) {
|
|
1813
1813
|
let { name: l } = t, c = { name: l }, d, h = {};
|
|
1814
1814
|
switch (t.type) {
|
|
1815
1815
|
case "int":
|
|
1816
|
-
d =
|
|
1816
|
+
d = ph, n && (c.preprocess = Number);
|
|
1817
1817
|
break;
|
|
1818
1818
|
case "string":
|
|
1819
1819
|
d = pa;
|
|
1820
1820
|
break;
|
|
1821
1821
|
case "choice":
|
|
1822
|
-
d =
|
|
1822
|
+
d = lh, c.choices = t.choices.map((D) => D?.redirect ? { ...D, redirect: { to: { key: t.name, value: D.redirect } } } : D);
|
|
1823
1823
|
break;
|
|
1824
1824
|
case "boolean":
|
|
1825
|
-
d =
|
|
1825
|
+
d = eh;
|
|
1826
1826
|
break;
|
|
1827
1827
|
case "flag":
|
|
1828
1828
|
d = s, c.flags = i.flatMap((D) => [D.alias, D.description && D.name, D.oppositeDescription && `no-${D.name}`].filter(Boolean));
|
|
@@ -1835,23 +1835,23 @@ function Fh(t, { isCLI: n, optionInfos: i, FlagSchema: s }) {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
if (t.exception ? c.validate = (D, m, E) => t.exception(D) || m.validate(D, E) : c.validate = (D, m, E) => D === void 0 || m.validate(D, E), t.redirect && (h.redirect = (D) => D ? { to: typeof t.redirect == "string" ? t.redirect : { key: t.redirect.option, value: t.redirect.value } } : void 0), t.deprecated && (h.deprecated = !0), n && !t.array) {
|
|
1837
1837
|
let D = c.preprocess || ((m) => m);
|
|
1838
|
-
c.preprocess = (m, E, v) => E.preprocess(D(Array.isArray(m) ?
|
|
1838
|
+
c.preprocess = (m, E, v) => E.preprocess(D(Array.isArray(m) ? Z(0, m, -1) : m), v);
|
|
1839
1839
|
}
|
|
1840
|
-
return t.array ?
|
|
1840
|
+
return t.array ? Zd.create({ ...n ? { preprocess: (D) => Array.isArray(D) ? D : [D] } : {}, ...h, valueSchema: d.create(c) }) : d.create({ ...c, ...h });
|
|
1841
1841
|
}
|
|
1842
|
-
var
|
|
1842
|
+
var Fh = gh, vh = Array.prototype.findLast ?? function(t) {
|
|
1843
1843
|
for (let n = this.length - 1; n >= 0; n--) {
|
|
1844
1844
|
let i = this[n];
|
|
1845
1845
|
if (t(i, n, this)) return i;
|
|
1846
1846
|
}
|
|
1847
|
-
},
|
|
1848
|
-
if (Array.isArray(this)) return
|
|
1849
|
-
}), ri =
|
|
1850
|
-
function
|
|
1851
|
-
return !!t?.[
|
|
1847
|
+
}, _h = Kt("findLast", function() {
|
|
1848
|
+
if (Array.isArray(this)) return vh;
|
|
1849
|
+
}), ri = _h, yh = Symbol.for("PRETTIER_IS_FRONT_MATTER"), Ah = [];
|
|
1850
|
+
function Sh(t) {
|
|
1851
|
+
return !!t?.[yh];
|
|
1852
1852
|
}
|
|
1853
|
-
var bn =
|
|
1854
|
-
async function
|
|
1853
|
+
var bn = Sh, ni = /* @__PURE__ */ new Set(["yaml", "toml"]), ui = ({ node: t }) => bn(t) && ni.has(t.language);
|
|
1854
|
+
async function bh(t, n, i, s) {
|
|
1855
1855
|
let { node: l } = i, { language: c } = l;
|
|
1856
1856
|
if (!ni.has(c)) return;
|
|
1857
1857
|
let d = l.value.trim(), h;
|
|
@@ -1860,21 +1860,21 @@ async function kh(t, n, i, s) {
|
|
|
1860
1860
|
if (!D) return;
|
|
1861
1861
|
h = d ? await t(d, { parser: D }) : "";
|
|
1862
1862
|
} else h = d;
|
|
1863
|
-
return wa([l.startDelimiter, l.explicitLanguage ?? "",
|
|
1863
|
+
return wa([l.startDelimiter, l.explicitLanguage ?? "", xe, h, h ? xe : "", l.endDelimiter]);
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1865
|
+
function kh(t, n) {
|
|
1866
1866
|
return ui({ node: t }) && (delete n.end, delete n.raw, delete n.value), n;
|
|
1867
1867
|
}
|
|
1868
|
-
var
|
|
1869
|
-
function
|
|
1868
|
+
var wh = kh;
|
|
1869
|
+
function Th({ node: t }) {
|
|
1870
1870
|
return t.raw;
|
|
1871
1871
|
}
|
|
1872
|
-
var
|
|
1873
|
-
function
|
|
1874
|
-
let i = t ? (s) => t(s, ai) :
|
|
1875
|
-
return n ? new Proxy(i, { apply: (s, l, c) => bn(c[0]) ?
|
|
1872
|
+
var xh = Th, ai = /* @__PURE__ */ new Set(["tokens", "comments", "parent", "enclosingNode", "precedingNode", "followingNode"]), Bh = (t) => Object.keys(t).filter((n) => !ai.has(n));
|
|
1873
|
+
function Nh(t, n) {
|
|
1874
|
+
let i = t ? (s) => t(s, ai) : Bh;
|
|
1875
|
+
return n ? new Proxy(i, { apply: (s, l, c) => bn(c[0]) ? Ah : Reflect.apply(s, l, c) }) : i;
|
|
1876
1876
|
}
|
|
1877
|
-
var da =
|
|
1877
|
+
var da = Nh;
|
|
1878
1878
|
function ii(t, n) {
|
|
1879
1879
|
if (!n) throw new Error("parserName is required.");
|
|
1880
1880
|
let i = ri(0, t, (l) => l.parsers && Object.prototype.hasOwnProperty.call(l.parsers, n));
|
|
@@ -1882,7 +1882,7 @@ function ii(t, n) {
|
|
|
1882
1882
|
let s = `Couldn't resolve parser "${n}".`;
|
|
1883
1883
|
throw s += " Plugins must be explicitly added to the standalone bundle.", new za(s);
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function Lh(t, n) {
|
|
1886
1886
|
if (!n) throw new Error("astFormat is required.");
|
|
1887
1887
|
let i = ri(0, t, (l) => l.printers && Object.prototype.hasOwnProperty.call(l.printers, n));
|
|
1888
1888
|
if (i) return i;
|
|
@@ -1897,7 +1897,7 @@ function si(t, n) {
|
|
|
1897
1897
|
let i = t.parsers[n];
|
|
1898
1898
|
return typeof i == "function" ? i() : i;
|
|
1899
1899
|
}
|
|
1900
|
-
async function
|
|
1900
|
+
async function Oh(t, n) {
|
|
1901
1901
|
let i = t.printers[n], s = typeof i == "function" ? await i() : i;
|
|
1902
1902
|
return Ih(s);
|
|
1903
1903
|
}
|
|
@@ -1905,51 +1905,51 @@ var nn = /* @__PURE__ */ new WeakMap();
|
|
|
1905
1905
|
function Ih(t) {
|
|
1906
1906
|
if (nn.has(t)) return nn.get(t);
|
|
1907
1907
|
let { features: n, getVisitorKeys: i, embed: s, massageAstNode: l, print: c, ...d } = t;
|
|
1908
|
-
n =
|
|
1908
|
+
n = qh(n);
|
|
1909
1909
|
let h = n.experimental_frontMatterSupport;
|
|
1910
1910
|
i = da(i, h.massageAstNode || h.embed || h.print);
|
|
1911
1911
|
let D = l;
|
|
1912
1912
|
l && h.massageAstNode && (D = new Proxy(l, { apply(_, F, A) {
|
|
1913
|
-
return
|
|
1913
|
+
return wh(...A), Reflect.apply(_, F, A);
|
|
1914
1914
|
} }));
|
|
1915
1915
|
let m = s;
|
|
1916
1916
|
if (s) {
|
|
1917
1917
|
let _;
|
|
1918
1918
|
m = new Proxy(s, { get(F, A, b) {
|
|
1919
1919
|
return A === "getVisitorKeys" ? (_ ?? (_ = s.getVisitorKeys ? da(s.getVisitorKeys, h.massageAstNode || h.embed) : i), _) : Reflect.get(F, A, b);
|
|
1920
|
-
}, apply: (F, A, b) => h.embed && ui(...b) ?
|
|
1920
|
+
}, apply: (F, A, b) => h.embed && ui(...b) ? bh : Reflect.apply(F, A, b) });
|
|
1921
1921
|
}
|
|
1922
1922
|
let E = c;
|
|
1923
1923
|
h.print && (E = new Proxy(c, { apply(_, F, A) {
|
|
1924
1924
|
let [b] = A;
|
|
1925
|
-
return bn(b.node) ?
|
|
1925
|
+
return bn(b.node) ? xh(b) : Reflect.apply(_, F, A);
|
|
1926
1926
|
} }));
|
|
1927
1927
|
let v = { features: n, getVisitorKeys: i, embed: m, massageAstNode: D, print: E, ...d };
|
|
1928
1928
|
return nn.set(t, v), v;
|
|
1929
1929
|
}
|
|
1930
|
-
var
|
|
1931
|
-
function
|
|
1932
|
-
return { ...
|
|
1930
|
+
var Ph = ["clean", "embed", "print"], Rh = Object.fromEntries(Ph.map((t) => [t, !1]));
|
|
1931
|
+
function Mh(t) {
|
|
1932
|
+
return { ...Rh, ...t };
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1935
|
-
return { experimental_avoidAstMutation: !1, ...t, experimental_frontMatterSupport:
|
|
1934
|
+
function qh(t) {
|
|
1935
|
+
return { experimental_avoidAstMutation: !1, ...t, experimental_frontMatterSupport: Mh(t?.experimental_frontMatterSupport) };
|
|
1936
1936
|
}
|
|
1937
1937
|
var ha = { astFormat: "estree", printer: {}, originalText: void 0, locStart: null, locEnd: null, getVisitorKeys: null };
|
|
1938
|
-
async function
|
|
1938
|
+
async function Vh(t, n = {}) {
|
|
1939
1939
|
let i = { ...t };
|
|
1940
1940
|
if (!i.parser) if (i.filepath) {
|
|
1941
1941
|
if (i.parser = Ka(i, { physicalFile: i.filepath }), !i.parser) throw new ea(`No parser could be inferred for file "${i.filepath}".`);
|
|
1942
1942
|
} else throw new ea("No parser and no file path given, couldn't infer a parser.");
|
|
1943
1943
|
let s = Xa({ plugins: t.plugins, showDeprecated: !0 }).options, l = { ...ha, ...Object.fromEntries(s.filter((v) => v.default !== void 0).map((v) => [v.name, v.default])) }, c = ii(i.plugins, i.parser), d = await si(c, i.parser);
|
|
1944
1944
|
i.astFormat = d.astFormat, i.locEnd = d.locEnd, i.locStart = d.locStart;
|
|
1945
|
-
let h = c.printers?.[d.astFormat] ? c :
|
|
1945
|
+
let h = c.printers?.[d.astFormat] ? c : Lh(i.plugins, d.astFormat), D = await Oh(h, d.astFormat);
|
|
1946
1946
|
i.printer = D, i.getVisitorKeys = D.getVisitorKeys;
|
|
1947
1947
|
let m = h.defaultOptions ? Object.fromEntries(Object.entries(h.defaultOptions).filter(([, v]) => v !== void 0)) : {}, E = { ...l, ...m };
|
|
1948
1948
|
for (let [v, _] of Object.entries(E)) (i[v] === null || i[v] === void 0) && (i[v] = _);
|
|
1949
|
-
return i.parser === "json" && (i.trailingComma = "none"),
|
|
1949
|
+
return i.parser === "json" && (i.trailingComma = "none"), Fh(i, s, { passThrough: Object.keys(ha), ...n });
|
|
1950
1950
|
}
|
|
1951
|
-
var Et =
|
|
1952
|
-
np(
|
|
1951
|
+
var Et = Vh;
|
|
1952
|
+
rp(np());
|
|
1953
1953
|
var wn = { 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"], strictBind: ["eval", "arguments"] };
|
|
1954
1954
|
new Set(wn.keyword);
|
|
1955
1955
|
new Set(wn.strict);
|
|
@@ -1960,11 +1960,11 @@ function oi(t) {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
oi(Ja());
|
|
1962
1962
|
oi(Ja());
|
|
1963
|
-
function
|
|
1963
|
+
function jh() {
|
|
1964
1964
|
return new Proxy({}, { get: () => (t) => t });
|
|
1965
1965
|
}
|
|
1966
1966
|
var Da = /\r\n|[\n\r\u2028\u2029]/;
|
|
1967
|
-
function
|
|
1967
|
+
function Hh(t, n, i) {
|
|
1968
1968
|
let s = Object.assign({ column: 0, line: -1 }, t.start), l = Object.assign({}, s, t.end), { linesAbove: c = 2, linesBelow: d = 3 } = i || {}, h = s.line, D = s.column, m = l.line, E = l.column, v = Math.max(h - (c + 1), 0), _ = Math.min(n.length, m + d);
|
|
1969
1969
|
h === -1 && (v = 0), m === -1 && (_ = n.length);
|
|
1970
1970
|
let F = m - h, A = {};
|
|
@@ -1983,8 +1983,8 @@ function $h(t, n, i) {
|
|
|
1983
1983
|
else D === E ? D ? A[h] = [D, 0] : A[h] = !0 : A[h] = [D, E - D];
|
|
1984
1984
|
return { start: v, end: _, markerLines: A };
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1987
|
-
let s =
|
|
1986
|
+
function $h(t, n, i = {}) {
|
|
1987
|
+
let s = jh(), l = t.split(Da), { start: c, end: d, markerLines: h } = Hh(n, l, i), D = n.start && typeof n.start.column == "number", m = String(d).length, E = t.split(Da, d).slice(c, d).map((v, _) => {
|
|
1988
1988
|
let F = c + 1 + _, A = ` ${` ${F}`.slice(-m)} |`, b = h[F], x = !h[F + 1];
|
|
1989
1989
|
if (b) {
|
|
1990
1990
|
let B = "";
|
|
@@ -2000,28 +2000,28 @@ function Uh(t, n, i = {}) {
|
|
|
2000
2000
|
return i.message && !D && (E = `${" ".repeat(m + 1)}${i.message}
|
|
2001
2001
|
${E}`), E;
|
|
2002
2002
|
}
|
|
2003
|
-
async function
|
|
2003
|
+
async function Uh(t, n) {
|
|
2004
2004
|
let i = await kn(n), s = i.preprocess ? await i.preprocess(t, n) : t;
|
|
2005
2005
|
n.originalText = s;
|
|
2006
2006
|
let l;
|
|
2007
2007
|
try {
|
|
2008
2008
|
l = await i.parse(s, n, n);
|
|
2009
2009
|
} catch (c) {
|
|
2010
|
-
|
|
2010
|
+
Wh(c, t);
|
|
2011
2011
|
}
|
|
2012
2012
|
return { text: s, ast: l };
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2014
|
+
function Wh(t, n) {
|
|
2015
2015
|
let { loc: i } = t;
|
|
2016
2016
|
if (i) {
|
|
2017
|
-
let s =
|
|
2017
|
+
let s = $h(n, i, {});
|
|
2018
2018
|
throw t.message += `
|
|
2019
2019
|
` + s, t.codeFrame = s, t;
|
|
2020
2020
|
}
|
|
2021
2021
|
throw t;
|
|
2022
2022
|
}
|
|
2023
|
-
var
|
|
2024
|
-
async function
|
|
2023
|
+
var Yt = Uh;
|
|
2024
|
+
async function zh(t, n, i, s, l) {
|
|
2025
2025
|
if (i.embeddedLanguageFormatting !== "auto") return;
|
|
2026
2026
|
let { printer: c } = i, { embed: d } = c;
|
|
2027
2027
|
if (!d) return;
|
|
@@ -2038,7 +2038,7 @@ async function Xh(t, n, i, s, l) {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
t.stack = E;
|
|
2040
2040
|
function v(F, A) {
|
|
2041
|
-
return
|
|
2041
|
+
return Xh(F, A, i, s);
|
|
2042
2042
|
}
|
|
2043
2043
|
function _() {
|
|
2044
2044
|
let { node: F } = t;
|
|
@@ -2054,23 +2054,23 @@ async function Xh(t, n, i, s, l) {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
2056
|
}
|
|
2057
|
-
async function
|
|
2058
|
-
let l = await Et({ ...i, ...n, parentParser: i.parser, originalText: t, cursorOffset: void 0, rangeStart: void 0, rangeEnd: void 0 }, { passThrough: !0 }), { ast: c } = await
|
|
2057
|
+
async function Xh(t, n, i, s) {
|
|
2058
|
+
let l = await Et({ ...i, ...n, parentParser: i.parser, originalText: t, cursorOffset: void 0, rangeStart: void 0, rangeEnd: void 0 }, { passThrough: !0 }), { ast: c } = await Yt(t, l), d = await s(c, l);
|
|
2059
2059
|
return ka(d);
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function Gh(t, n, i, s) {
|
|
2062
2062
|
let { originalText: l, [Symbol.for("comments")]: c, locStart: d, locEnd: h, [Symbol.for("printedComments")]: D } = n, { node: m } = t, E = d(m), v = h(m);
|
|
2063
2063
|
for (let F of c) d(F) >= E && h(F) <= v && D.add(F);
|
|
2064
2064
|
let { printPrettierIgnored: _ } = n.printer;
|
|
2065
2065
|
return _ ? _(t, n, i, s) : l.slice(E, v);
|
|
2066
2066
|
}
|
|
2067
|
-
var
|
|
2067
|
+
var Kh = Gh;
|
|
2068
2068
|
async function Ar(t, n) {
|
|
2069
2069
|
({ ast: t } = await li(t, n));
|
|
2070
|
-
let i = /* @__PURE__ */ new Map(), s = new
|
|
2071
|
-
await
|
|
2070
|
+
let i = /* @__PURE__ */ new Map(), s = new cd(t), l = /* @__PURE__ */ new Map();
|
|
2071
|
+
await zh(s, d, n, Ar, l);
|
|
2072
2072
|
let c = await fa(s, n, d, void 0, l);
|
|
2073
|
-
if (
|
|
2073
|
+
if (wd(n), n.cursorOffset >= 0) {
|
|
2074
2074
|
if (n.nodeAfterCursor && !n.nodeBeforeCursor) return [et, c];
|
|
2075
2075
|
if (n.nodeBeforeCursor && !n.nodeAfterCursor) return [c, et];
|
|
2076
2076
|
}
|
|
@@ -2089,7 +2089,7 @@ async function Ar(t, n) {
|
|
|
2089
2089
|
}
|
|
2090
2090
|
function fa(t, n, i, s, l) {
|
|
2091
2091
|
let { node: c } = t, { printer: d } = n, h;
|
|
2092
|
-
switch (d.hasPrettierIgnore?.(t) ? h =
|
|
2092
|
+
switch (d.hasPrettierIgnore?.(t) ? h = Kh(t, n, i, s) : l.has(c) ? h = l.get(c) : h = d.print(t, n, i, s), c) {
|
|
2093
2093
|
case n.cursorNode:
|
|
2094
2094
|
h = fr(h, (D) => [et, D, et]);
|
|
2095
2095
|
break;
|
|
@@ -2100,18 +2100,18 @@ function fa(t, n, i, s, l) {
|
|
|
2100
2100
|
h = fr(h, (D) => [et, D]);
|
|
2101
2101
|
break;
|
|
2102
2102
|
}
|
|
2103
|
-
return d.printComment && !d.willPrintOwnComments?.(t, n) && (h =
|
|
2103
|
+
return d.printComment && !d.willPrintOwnComments?.(t, n) && (h = kd(t, h, n)), h;
|
|
2104
2104
|
}
|
|
2105
2105
|
async function li(t, n) {
|
|
2106
2106
|
let i = t.comments ?? [];
|
|
2107
|
-
n[Symbol.for("comments")] = i, n[Symbol.for("printedComments")] = /* @__PURE__ */ new Set(),
|
|
2107
|
+
n[Symbol.for("comments")] = i, n[Symbol.for("printedComments")] = /* @__PURE__ */ new Set(), Fd(t, n);
|
|
2108
2108
|
let { printer: { preprocess: s } } = n;
|
|
2109
2109
|
return t = s ? await s(t, n) : t, { ast: t, comments: i };
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function Jh(t, n) {
|
|
2112
2112
|
let { cursorOffset: i, locStart: s, locEnd: l, getVisitorKeys: c } = n, d = (F) => s(F) <= i && l(F) >= i, h = t, D = [t];
|
|
2113
|
-
for (let F of
|
|
2114
|
-
if (
|
|
2113
|
+
for (let F of gd(t, { getVisitorKeys: c, filter: d })) D.push(F), h = F;
|
|
2114
|
+
if (Cd(h, { getVisitorKeys: c })) return { cursorNode: h };
|
|
2115
2115
|
let m, E, v = -1, _ = Number.POSITIVE_INFINITY;
|
|
2116
2116
|
for (; D.length > 0 && (m === void 0 || E === void 0); ) {
|
|
2117
2117
|
h = D.pop();
|
|
@@ -2129,8 +2129,8 @@ function Yh(t, n) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
return { nodeBeforeCursor: m, nodeAfterCursor: E };
|
|
2131
2131
|
}
|
|
2132
|
-
var ci =
|
|
2133
|
-
function
|
|
2132
|
+
var ci = Jh;
|
|
2133
|
+
function Yh(t, n) {
|
|
2134
2134
|
let { printer: i } = n, s = i.massageAstNode;
|
|
2135
2135
|
if (!s) return t;
|
|
2136
2136
|
let { getVisitorKeys: l } = i, { ignoredProperties: c } = s;
|
|
@@ -2144,23 +2144,23 @@ function Qh(t, n) {
|
|
|
2144
2144
|
if (v !== null) return v ?? m;
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
|
-
var
|
|
2147
|
+
var Qh = Yh, Zh = Array.prototype.findLastIndex ?? function(t) {
|
|
2148
2148
|
for (let n = this.length - 1; n >= 0; n--) {
|
|
2149
2149
|
let i = this[n];
|
|
2150
2150
|
if (t(i, n, this)) return n;
|
|
2151
2151
|
}
|
|
2152
2152
|
return -1;
|
|
2153
|
-
},
|
|
2154
|
-
if (Array.isArray(this)) return
|
|
2155
|
-
}),
|
|
2156
|
-
function
|
|
2153
|
+
}, e2 = Kt("findLastIndex", function() {
|
|
2154
|
+
if (Array.isArray(this)) return Zh;
|
|
2155
|
+
}), t2 = e2, r2 = ({ parser: t }) => t === "json" || t === "json5" || t === "jsonc" || t === "json-stringify";
|
|
2156
|
+
function n2(t, n) {
|
|
2157
2157
|
return n = new Set(n), t.find((i) => pi.has(i.type) && n.has(i));
|
|
2158
2158
|
}
|
|
2159
2159
|
function ma(t) {
|
|
2160
|
-
let n =
|
|
2160
|
+
let n = t2(0, t, (i) => i.type !== "Program" && i.type !== "File");
|
|
2161
2161
|
return n === -1 ? t : t.slice(0, n + 1);
|
|
2162
2162
|
}
|
|
2163
|
-
function
|
|
2163
|
+
function u2(t, n, { locStart: i, locEnd: s }) {
|
|
2164
2164
|
let [l, ...c] = t, [d, ...h] = n;
|
|
2165
2165
|
if (l === d) return [l, d];
|
|
2166
2166
|
let D = i(l);
|
|
@@ -2184,10 +2184,10 @@ function cn(t, n, i, s, l = [], c) {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
if (s(t, l[0])) return E;
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function a2(t, n) {
|
|
2188
2188
|
return n !== "DeclareExportDeclaration" && t !== "TypeParameterDeclaration" && (t === "Directive" || t === "TypeAlias" || t === "TSExportAssignment" || t.startsWith("Declare") || t.startsWith("TSDeclare") || t.endsWith("Statement") || t.endsWith("Declaration"));
|
|
2189
2189
|
}
|
|
2190
|
-
var pi = /* @__PURE__ */ new Set(["JsonRoot", "ObjectExpression", "ArrayExpression", "StringLiteral", "NumericLiteral", "BooleanLiteral", "NullLiteral", "UnaryExpression", "TemplateLiteral"]),
|
|
2190
|
+
var pi = /* @__PURE__ */ new Set(["JsonRoot", "ObjectExpression", "ArrayExpression", "StringLiteral", "NumericLiteral", "BooleanLiteral", "NullLiteral", "UnaryExpression", "TemplateLiteral"]), i2 = /* @__PURE__ */ new Set(["OperationDefinition", "FragmentDefinition", "VariableDefinition", "TypeExtensionDefinition", "ObjectTypeDefinition", "FieldDefinition", "DirectiveDefinition", "EnumTypeDefinition", "EnumValueDefinition", "InputValueDefinition", "InputObjectTypeDefinition", "SchemaDefinition", "OperationTypeDefinition", "InterfaceTypeDefinition", "UnionTypeDefinition", "ScalarTypeDefinition"]);
|
|
2191
2191
|
function ga(t, n, i) {
|
|
2192
2192
|
if (!n) return !1;
|
|
2193
2193
|
switch (t.parser) {
|
|
@@ -2203,20 +2203,20 @@ function ga(t, n, i) {
|
|
|
2203
2203
|
case "oxc":
|
|
2204
2204
|
case "oxc-ts":
|
|
2205
2205
|
case "__babel_estree":
|
|
2206
|
-
return
|
|
2206
|
+
return a2(n.type, i?.type);
|
|
2207
2207
|
case "json":
|
|
2208
2208
|
case "json5":
|
|
2209
2209
|
case "jsonc":
|
|
2210
2210
|
case "json-stringify":
|
|
2211
2211
|
return pi.has(n.type);
|
|
2212
2212
|
case "graphql":
|
|
2213
|
-
return
|
|
2213
|
+
return i2.has(n.kind);
|
|
2214
2214
|
case "vue":
|
|
2215
2215
|
return n.tag !== "root";
|
|
2216
2216
|
}
|
|
2217
2217
|
return !1;
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2219
|
+
function s2(t, n, i) {
|
|
2220
2220
|
let { rangeStart: s, rangeEnd: l, locStart: c, locEnd: d } = n, h = t.slice(s, l).search(/\S/u), D = h === -1;
|
|
2221
2221
|
if (!D) for (s += h; l > s && !/\S/u.test(t[l - 1]); --l) ;
|
|
2222
2222
|
let m = cn(i, s, n, (F, A) => ga(n, F, A), [], "rangeStart");
|
|
@@ -2224,19 +2224,19 @@ function o2(t, n, i) {
|
|
|
2224
2224
|
let E = D ? m : cn(i, l, n, (F) => ga(n, F), [], "rangeEnd");
|
|
2225
2225
|
if (!E) return;
|
|
2226
2226
|
let v, _;
|
|
2227
|
-
if (
|
|
2228
|
-
let F =
|
|
2227
|
+
if (r2(n)) {
|
|
2228
|
+
let F = n2(m, E);
|
|
2229
2229
|
v = F, _ = F;
|
|
2230
|
-
} else [v, _] =
|
|
2230
|
+
} else [v, _] = u2(m, E, n);
|
|
2231
2231
|
return [Math.min(c(v), c(_)), Math.max(d(v), d(_))];
|
|
2232
2232
|
}
|
|
2233
2233
|
var di = "\uFEFF", Ca = Symbol("cursor");
|
|
2234
2234
|
async function hi(t, n, i = 0) {
|
|
2235
2235
|
if (!t || t.trim().length === 0) return { formatted: "", cursorOffset: -1, comments: [] };
|
|
2236
|
-
let { ast: s, text: l } = await
|
|
2236
|
+
let { ast: s, text: l } = await Yt(t, n);
|
|
2237
2237
|
n.cursorOffset >= 0 && (n = { ...n, ...ci(s, n) });
|
|
2238
2238
|
let c = await Ar(s, n);
|
|
2239
|
-
i > 0 && (c = Ta([
|
|
2239
|
+
i > 0 && (c = Ta([xe, c], i, n.tabWidth));
|
|
2240
2240
|
let d = _r(c, n);
|
|
2241
2241
|
if (i > 0) {
|
|
2242
2242
|
let D = d.formatted.trim();
|
|
@@ -2257,7 +2257,7 @@ async function hi(t, n, i = 0) {
|
|
|
2257
2257
|
if (m === v) return { formatted: d.formatted, cursorOffset: E + _, comments: h };
|
|
2258
2258
|
let F = m.split("");
|
|
2259
2259
|
F.splice(_, 0, Ca);
|
|
2260
|
-
let A = v.split(""), b =
|
|
2260
|
+
let A = v.split(""), b = cp(F, A), x = E;
|
|
2261
2261
|
for (let B of b) if (B.removed) {
|
|
2262
2262
|
if (B.value.includes(Ca)) break;
|
|
2263
2263
|
} else x += B.count;
|
|
@@ -2265,8 +2265,8 @@ async function hi(t, n, i = 0) {
|
|
|
2265
2265
|
}
|
|
2266
2266
|
return { formatted: d.formatted, cursorOffset: -1, comments: h };
|
|
2267
2267
|
}
|
|
2268
|
-
async function
|
|
2269
|
-
let { ast: i, text: s } = await
|
|
2268
|
+
async function o2(t, n) {
|
|
2269
|
+
let { ast: i, text: s } = await Yt(t, n), [l, c] = s2(s, n, i) ?? [0, 0], d = s.slice(l, c), h = Math.min(l, s.lastIndexOf(`
|
|
2270
2270
|
`, l) + 1), D = s.slice(h, l).match(/^\s*/u)[0], m = vn(D, n.tabWidth), E = await hi(d, { ...n, rangeStart: 0, rangeEnd: Number.POSITIVE_INFINITY, cursorOffset: n.cursorOffset > l && n.cursorOffset <= c ? n.cursorOffset - l : -1, endOfLine: "lf" }, m), v = E.formatted.trimEnd(), { cursorOffset: _ } = n;
|
|
2271
2271
|
_ > c ? _ += v.length - d.length : E.cursorOffset >= 0 && (_ = E.cursorOffset + l);
|
|
2272
2272
|
let F = s.slice(0, l) + v + s.slice(c);
|
|
@@ -2288,10 +2288,10 @@ function Ea(t, n) {
|
|
|
2288
2288
|
}
|
|
2289
2289
|
function Di(t, n) {
|
|
2290
2290
|
let { cursorOffset: i, rangeStart: s, rangeEnd: l, endOfLine: c } = Ea(t, n), d = t.charAt(0) === di;
|
|
2291
|
-
if (d && (t = t.slice(1), i--, s--, l--), c === "auto" && (c =
|
|
2291
|
+
if (d && (t = t.slice(1), i--, s--, l--), c === "auto" && (c = mp(t)), t.includes("\r")) {
|
|
2292
2292
|
let h = (D) => Sa(t.slice(0, Math.max(D, 0)), `\r
|
|
2293
2293
|
`);
|
|
2294
|
-
i -= h(i), s -= h(s), l -= h(l), t =
|
|
2294
|
+
i -= h(i), s -= h(s), l -= h(l), t = Ep(t);
|
|
2295
2295
|
}
|
|
2296
2296
|
return { hasBOM: d, text: t, options: Ea(t, { ...n, cursorOffset: i, rangeStart: s, rangeEnd: l, endOfLine: c }) };
|
|
2297
2297
|
}
|
|
@@ -2299,124 +2299,124 @@ async function Fa(t, n) {
|
|
|
2299
2299
|
let i = await kn(n);
|
|
2300
2300
|
return !i.hasPragma || i.hasPragma(t);
|
|
2301
2301
|
}
|
|
2302
|
-
async function
|
|
2302
|
+
async function l2(t, n) {
|
|
2303
2303
|
return (await kn(n)).hasIgnorePragma?.(t);
|
|
2304
2304
|
}
|
|
2305
2305
|
async function fi(t, n) {
|
|
2306
2306
|
let { hasBOM: i, text: s, options: l } = Di(t, await Et(n));
|
|
2307
|
-
if (l.rangeStart >= l.rangeEnd && s !== "" || l.requirePragma && !await Fa(s, l) || l.checkIgnorePragma && await
|
|
2307
|
+
if (l.rangeStart >= l.rangeEnd && s !== "" || l.requirePragma && !await Fa(s, l) || l.checkIgnorePragma && await l2(s, l)) return { formatted: t, cursorOffset: n.cursorOffset, comments: [] };
|
|
2308
2308
|
let c;
|
|
2309
|
-
return l.rangeStart > 0 || l.rangeEnd < s.length ? c = await
|
|
2309
|
+
return l.rangeStart > 0 || l.rangeEnd < s.length ? c = await o2(s, l) : (!l.requirePragma && l.insertPragma && l.printer.insertPragma && !await Fa(s, l) && (s = l.printer.insertPragma(s)), c = await hi(s, l)), i && (c.formatted = di + c.formatted, c.cursorOffset >= 0 && c.cursorOffset++), c;
|
|
2310
2310
|
}
|
|
2311
|
-
async function
|
|
2312
|
-
let { text: s, options: l } = Di(t, await Et(n)), c = await
|
|
2313
|
-
return i && (i.preprocessForPrint && (c.ast = await li(c.ast, l)), i.massage && (c.ast =
|
|
2311
|
+
async function c2(t, n, i) {
|
|
2312
|
+
let { text: s, options: l } = Di(t, await Et(n)), c = await Yt(s, l);
|
|
2313
|
+
return i && (i.preprocessForPrint && (c.ast = await li(c.ast, l)), i.massage && (c.ast = Qh(c.ast, l))), c;
|
|
2314
2314
|
}
|
|
2315
|
-
async function
|
|
2315
|
+
async function p2(t, n) {
|
|
2316
2316
|
n = await Et(n);
|
|
2317
2317
|
let i = await Ar(t, n);
|
|
2318
2318
|
return _r(i, n);
|
|
2319
2319
|
}
|
|
2320
|
-
async function
|
|
2321
|
-
let i =
|
|
2320
|
+
async function d2(t, n) {
|
|
2321
|
+
let i = Kp(t), { formatted: s } = await fi(i, { ...n, parser: "__js_expression" });
|
|
2322
2322
|
return s;
|
|
2323
2323
|
}
|
|
2324
|
-
async function
|
|
2324
|
+
async function h2(t, n) {
|
|
2325
2325
|
n = await Et(n);
|
|
2326
|
-
let { ast: i } = await
|
|
2326
|
+
let { ast: i } = await Yt(t, n);
|
|
2327
2327
|
return n.cursorOffset >= 0 && (n = { ...n, ...ci(i, n) }), Ar(i, n);
|
|
2328
2328
|
}
|
|
2329
|
-
async function
|
|
2329
|
+
async function D2(t, n) {
|
|
2330
2330
|
return _r(t, await Et(n));
|
|
2331
2331
|
}
|
|
2332
2332
|
var mi = {};
|
|
2333
|
-
Dn(mi, { builders: () =>
|
|
2334
|
-
var
|
|
2335
|
-
Dn(gi, { addDanglingComment: () => Qe, addLeadingComment: () =>
|
|
2336
|
-
function
|
|
2333
|
+
Dn(mi, { builders: () => f2, printer: () => m2, utils: () => g2 });
|
|
2334
|
+
var f2 = { join: Ba, line: Na, softline: zp, hardline: xe, literalline: Oa, group: xa, conditionalGroup: Hp, fill: jp, lineSuffix: sn, lineSuffixBoundary: Xp, cursor: et, breakParent: vr, ifBreak: $p, trim: Gp, indent: gr, indentIfBreak: Up, align: Ct, addAlignmentToDoc: Ta, markAsRoot: wa, dedentToRoot: qp, dedent: Vp, hardlineWithoutBreakParent: En, literallineWithoutBreakParent: La, label: Wp, concat: (t) => t }, m2 = { printDocToString: _r }, g2 = { willBreak: Tp, traverseDoc: gn, findInDoc: Cn, mapDoc: Fr, removeLines: Np, stripTrailingHardline: ka, replaceEndOfLine: Ip, canBreak: Rp }, C2 = "3.8.3", gi = {};
|
|
2335
|
+
Dn(gi, { addDanglingComment: () => Qe, addLeadingComment: () => Xt, addTrailingComment: () => Gt, getAlignmentSize: () => vn, getIndentSize: () => A2, getMaxContinuousCount: () => k2, getNextNonSpaceNonCommentCharacter: () => T2, getNextNonSpaceNonCommentCharacterIndex: () => q2, getPreferredQuote: () => L2, getStringWidth: () => Fn, hasNewline: () => Ve, hasNewlineInRange: () => I2, hasSpaces: () => R2, isNextLineEmpty: () => U2, isNextLineEmptyAfterIndex: () => Nn, isPreviousLineEmpty: () => j2, makeString: () => $2, skip: () => Jt, skipEverythingButNewLine: () => qa, skipInlineComment: () => Tn, skipNewline: () => tt, skipSpaces: () => je, skipToLineEnd: () => Ma, skipTrailingComment: () => xn, skipWhitespace: () => dd });
|
|
2336
|
+
function E2(t, n) {
|
|
2337
2337
|
if (n === !1) return !1;
|
|
2338
2338
|
if (t.charAt(n) === "/" && t.charAt(n + 1) === "*") {
|
|
2339
2339
|
for (let i = n + 2; i < t.length; ++i) if (t.charAt(i) === "*" && t.charAt(i + 1) === "/") return i + 2;
|
|
2340
2340
|
}
|
|
2341
2341
|
return n;
|
|
2342
2342
|
}
|
|
2343
|
-
var Tn =
|
|
2344
|
-
function
|
|
2343
|
+
var Tn = E2;
|
|
2344
|
+
function F2(t, n) {
|
|
2345
2345
|
return n === !1 ? !1 : t.charAt(n) === "/" && t.charAt(n + 1) === "/" ? qa(t, n) : n;
|
|
2346
2346
|
}
|
|
2347
|
-
var xn =
|
|
2348
|
-
function
|
|
2347
|
+
var xn = F2;
|
|
2348
|
+
function v2(t, n) {
|
|
2349
2349
|
let i = null, s = n;
|
|
2350
2350
|
for (; s !== i; ) i = s, s = je(t, s), s = Tn(t, s), s = xn(t, s), s = tt(t, s);
|
|
2351
2351
|
return s;
|
|
2352
2352
|
}
|
|
2353
|
-
var Bn =
|
|
2354
|
-
function
|
|
2353
|
+
var Bn = v2;
|
|
2354
|
+
function _2(t, n) {
|
|
2355
2355
|
let i = null, s = n;
|
|
2356
2356
|
for (; s !== i; ) i = s, s = Ma(t, s), s = Tn(t, s), s = je(t, s);
|
|
2357
2357
|
return s = xn(t, s), s = tt(t, s), s !== !1 && Ve(t, s);
|
|
2358
2358
|
}
|
|
2359
|
-
var Nn =
|
|
2360
|
-
function
|
|
2359
|
+
var Nn = _2;
|
|
2360
|
+
function y2(t, n) {
|
|
2361
2361
|
let i = t.lastIndexOf(`
|
|
2362
2362
|
`);
|
|
2363
2363
|
return i === -1 ? 0 : vn(t.slice(i + 1).match(/^[\t ]*/u)[0], n);
|
|
2364
2364
|
}
|
|
2365
|
-
var
|
|
2366
|
-
function
|
|
2365
|
+
var A2 = y2;
|
|
2366
|
+
function S2(t) {
|
|
2367
2367
|
if (typeof t != "string") throw new TypeError("Expected a string");
|
|
2368
2368
|
return t.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
2369
2369
|
}
|
|
2370
|
-
function
|
|
2371
|
-
let i = t.matchAll(new RegExp(`(?:${
|
|
2370
|
+
function b2(t, n) {
|
|
2371
|
+
let i = t.matchAll(new RegExp(`(?:${S2(n)})+`, "gu"));
|
|
2372
2372
|
return i.reduce || (i = [...i]), i.reduce((s, [l]) => Math.max(s, l.length), 0) / n.length;
|
|
2373
2373
|
}
|
|
2374
|
-
var
|
|
2375
|
-
function
|
|
2374
|
+
var k2 = b2;
|
|
2375
|
+
function w2(t, n) {
|
|
2376
2376
|
let i = Bn(t, n);
|
|
2377
2377
|
return i === !1 ? "" : t.charAt(i);
|
|
2378
2378
|
}
|
|
2379
|
-
var
|
|
2380
|
-
function
|
|
2381
|
-
let { preferred: i, alternate: s } = n === !0 || n === "'" ?
|
|
2379
|
+
var T2 = w2, Ci = Object.freeze({ character: "'", codePoint: 39 }), Ei = Object.freeze({ character: '"', codePoint: 34 }), x2 = Object.freeze({ preferred: Ci, alternate: Ei }), B2 = Object.freeze({ preferred: Ei, alternate: Ci });
|
|
2380
|
+
function N2(t, n) {
|
|
2381
|
+
let { preferred: i, alternate: s } = n === !0 || n === "'" ? x2 : B2, { length: l } = t, c = 0, d = 0;
|
|
2382
2382
|
for (let h = 0; h < l; h++) {
|
|
2383
2383
|
let D = t.charCodeAt(h);
|
|
2384
2384
|
D === i.codePoint ? c++ : D === s.codePoint && d++;
|
|
2385
2385
|
}
|
|
2386
2386
|
return (c > d ? s : i).character;
|
|
2387
2387
|
}
|
|
2388
|
-
var
|
|
2389
|
-
function
|
|
2388
|
+
var L2 = N2;
|
|
2389
|
+
function O2(t, n, i) {
|
|
2390
2390
|
for (let s = n; s < i; ++s) if (t.charAt(s) === `
|
|
2391
2391
|
`) return !0;
|
|
2392
2392
|
return !1;
|
|
2393
2393
|
}
|
|
2394
|
-
var I2 =
|
|
2395
|
-
function
|
|
2394
|
+
var I2 = O2;
|
|
2395
|
+
function P2(t, n, i = {}) {
|
|
2396
2396
|
return je(t, i.backwards ? n - 1 : n, i) !== n;
|
|
2397
2397
|
}
|
|
2398
|
-
var
|
|
2399
|
-
function
|
|
2398
|
+
var R2 = P2;
|
|
2399
|
+
function M2(t, n, i) {
|
|
2400
2400
|
return Bn(t, i(n));
|
|
2401
2401
|
}
|
|
2402
|
-
function
|
|
2403
|
-
return arguments.length === 2 || typeof n == "number" ? Bn(t, n) :
|
|
2402
|
+
function q2(t, n) {
|
|
2403
|
+
return arguments.length === 2 || typeof n == "number" ? Bn(t, n) : M2(...arguments);
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2405
|
+
function V2(t, n, i) {
|
|
2406
2406
|
return An(t, i(n));
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2409
|
-
return arguments.length === 2 || typeof n == "number" ? An(t, n) :
|
|
2408
|
+
function j2(t, n) {
|
|
2409
|
+
return arguments.length === 2 || typeof n == "number" ? An(t, n) : V2(...arguments);
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function H2(t, n, i) {
|
|
2412
2412
|
return Nn(t, i(n));
|
|
2413
2413
|
}
|
|
2414
|
-
function
|
|
2414
|
+
function $2(t, n, i) {
|
|
2415
2415
|
let s = n === '"' ? "'" : '"', l = Cr(0, t, /\\(.)|(["'])/gsu, (c, d, h) => d === s ? d : h === n ? "\\" + h : h || (i && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(d) ? d : "\\" + d));
|
|
2416
2416
|
return n + l + n;
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2419
|
-
return arguments.length === 2 || typeof n == "number" ? Nn(t, n) :
|
|
2418
|
+
function U2(t, n) {
|
|
2419
|
+
return arguments.length === 2 || typeof n == "number" ? Nn(t, n) : H2(...arguments);
|
|
2420
2420
|
}
|
|
2421
2421
|
function Ze(t, n = 1) {
|
|
2422
2422
|
return async (...i) => {
|
|
@@ -2429,11 +2429,11 @@ async function vi(t, n) {
|
|
|
2429
2429
|
let { formatted: i } = await Fi(t, { ...n, cursorOffset: -1 });
|
|
2430
2430
|
return i;
|
|
2431
2431
|
}
|
|
2432
|
-
async function
|
|
2432
|
+
async function W2(t, n) {
|
|
2433
2433
|
return await vi(t, n) === t;
|
|
2434
2434
|
}
|
|
2435
|
-
var
|
|
2436
|
-
function
|
|
2435
|
+
var z2 = Ze(Xa, 0), X2 = { parse: Ze(c2), formatAST: Ze(p2), formatDoc: Ze(d2), printToDoc: Ze(h2), printDocToString: Ze(D2) }, an = { exports: {} }, va;
|
|
2436
|
+
function G2() {
|
|
2437
2437
|
return va || (va = 1, (function(t, n) {
|
|
2438
2438
|
(function(i) {
|
|
2439
2439
|
function s() {
|
|
@@ -2450,7 +2450,7 @@ function K2() {
|
|
|
2450
2450
|
if (r && typeof r == "object" || typeof r == "function") for (let o of l(r)) !c.call(e, o) && o !== u && i(e, o, { get: () => r[o], enumerable: !(a = s(r, o)) || a.enumerable });
|
|
2451
2451
|
return e;
|
|
2452
2452
|
}, E = (e) => m(i({}, "__esModule", { value: !0 }), e), v = (e, r, u) => h(e, typeof r != "symbol" ? r + "" : r, u), _ = (e, r, u) => r.has(e) || d("Cannot " + u), F = (e, r, u) => (_(e, r, "read from private field"), u ? u.call(e) : r.get(e)), A = (e, r, u) => r.has(e) ? d("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, u), b = {};
|
|
2453
|
-
D(b, { languages: () =>
|
|
2453
|
+
D(b, { languages: () => hc, options: () => fc, parsers: () => ju, printers: () => zc });
|
|
2454
2454
|
var x = (e, r) => (u, a, ...o) => u | 1 && a == null ? void 0 : (r.call(a) ?? a[e]).apply(a, o), B = String.prototype.replaceAll ?? function(e, r) {
|
|
2455
2455
|
return e.global ? this.replace(e, r) : this.split(e).join(r);
|
|
2456
2456
|
}, N = x("replaceAll", function() {
|
|
@@ -2461,8 +2461,8 @@ function K2() {
|
|
|
2461
2461
|
}
|
|
2462
2462
|
var I = x("at", function() {
|
|
2463
2463
|
if (Array.isArray(this) || typeof this == "string") return w;
|
|
2464
|
-
}),
|
|
2465
|
-
}, oe = K, ue = "string", O = "array", R = "cursor", me = "indent", k = "align", ne = "trim", ge = "group",
|
|
2464
|
+
}), H = I, K = () => {
|
|
2465
|
+
}, oe = K, ue = "string", O = "array", R = "cursor", me = "indent", k = "align", ne = "trim", ge = "group", ee = "fill", fe = "if-break", j = "indent-if-break", Me = "line-suffix", z = "line-suffix-boundary", ut = "line", Ln = "label", Sr = "break-parent", On = /* @__PURE__ */ new Set([R, me, k, ne, ge, ee, fe, j, Me, z, ut, Ln, Sr]);
|
|
2466
2466
|
function bi(e) {
|
|
2467
2467
|
if (typeof e == "string") return ue;
|
|
2468
2468
|
if (Array.isArray(e)) return O;
|
|
@@ -2470,12 +2470,12 @@ function K2() {
|
|
|
2470
2470
|
let { type: r } = e;
|
|
2471
2471
|
if (On.has(r)) return r;
|
|
2472
2472
|
}
|
|
2473
|
-
var
|
|
2473
|
+
var In = bi, ki = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
|
|
2474
2474
|
function wi(e) {
|
|
2475
2475
|
let r = e === null ? "null" : typeof e;
|
|
2476
2476
|
if (r !== "string" && r !== "object") return `Unexpected doc '${r}',
|
|
2477
2477
|
Expected it to be 'string' or 'object'.`;
|
|
2478
|
-
if (
|
|
2478
|
+
if (In(e)) throw new Error("doc is valid.");
|
|
2479
2479
|
let u = Object.prototype.toString.call(e);
|
|
2480
2480
|
if (u !== "[object Object]") return `Unexpected doc '${u}'.`;
|
|
2481
2481
|
let a = ki([...On].map((o) => `'${o}'`));
|
|
@@ -2488,7 +2488,7 @@ Expected it to be ${a}.`;
|
|
|
2488
2488
|
super(wi(e)), this.doc = e;
|
|
2489
2489
|
}
|
|
2490
2490
|
}, xi = Ti;
|
|
2491
|
-
function
|
|
2491
|
+
function Pn(e, r) {
|
|
2492
2492
|
if (typeof e == "string") return r(e);
|
|
2493
2493
|
let u = /* @__PURE__ */ new Map();
|
|
2494
2494
|
return a(e);
|
|
@@ -2498,10 +2498,10 @@ Expected it to be ${a}.`;
|
|
|
2498
2498
|
return u.set(p, f), f;
|
|
2499
2499
|
}
|
|
2500
2500
|
function o(p) {
|
|
2501
|
-
switch (
|
|
2501
|
+
switch (In(p)) {
|
|
2502
2502
|
case O:
|
|
2503
2503
|
return r(p.map(a));
|
|
2504
|
-
case
|
|
2504
|
+
case ee:
|
|
2505
2505
|
return r({ ...p, parts: p.parts.map(a) });
|
|
2506
2506
|
case fe:
|
|
2507
2507
|
return r({ ...p, breakContents: a(p.breakContents), flatContents: a(p.flatContents) });
|
|
@@ -2511,14 +2511,14 @@ Expected it to be ${a}.`;
|
|
|
2511
2511
|
}
|
|
2512
2512
|
case k:
|
|
2513
2513
|
case me:
|
|
2514
|
-
case
|
|
2514
|
+
case j:
|
|
2515
2515
|
case Ln:
|
|
2516
|
-
case
|
|
2516
|
+
case Me:
|
|
2517
2517
|
return r({ ...p, contents: a(p.contents) });
|
|
2518
2518
|
case ue:
|
|
2519
2519
|
case R:
|
|
2520
2520
|
case ne:
|
|
2521
|
-
case
|
|
2521
|
+
case z:
|
|
2522
2522
|
case ut:
|
|
2523
2523
|
case Sr:
|
|
2524
2524
|
return r(p);
|
|
@@ -2528,7 +2528,7 @@ Expected it to be ${a}.`;
|
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
2530
|
function Ce(e, r = Ri) {
|
|
2531
|
-
return
|
|
2531
|
+
return Pn(e, (u) => typeof u == "string" ? at(r, u.split(`
|
|
2532
2532
|
`)) : u);
|
|
2533
2533
|
}
|
|
2534
2534
|
var Bi = oe;
|
|
@@ -2543,7 +2543,7 @@ Expected it to be ${a}.`;
|
|
|
2543
2543
|
}
|
|
2544
2544
|
var Ft = { type: Sr };
|
|
2545
2545
|
function Rn(e) {
|
|
2546
|
-
return { type:
|
|
2546
|
+
return { type: ee, parts: e };
|
|
2547
2547
|
}
|
|
2548
2548
|
function Y(e, r = {}) {
|
|
2549
2549
|
return Bi(r.expandedStates), { type: ge, id: r.id, contents: e, break: !!r.shouldBreak, expandedStates: r.expandedStates };
|
|
@@ -2552,14 +2552,14 @@ Expected it to be ${a}.`;
|
|
|
2552
2552
|
return { type: fe, breakContents: e, flatContents: r, groupId: u.groupId };
|
|
2553
2553
|
}
|
|
2554
2554
|
function Oi(e, r) {
|
|
2555
|
-
return { type:
|
|
2555
|
+
return { type: j, contents: e, groupId: r.groupId, negate: r.negate };
|
|
2556
2556
|
}
|
|
2557
2557
|
function at(e, r) {
|
|
2558
2558
|
let u = [];
|
|
2559
2559
|
for (let a = 0; a < r.length; a++) a !== 0 && u.push(e), u.push(r[a]);
|
|
2560
2560
|
return u;
|
|
2561
2561
|
}
|
|
2562
|
-
var J = { type: ut }, re = { type: ut, soft: !0 },
|
|
2562
|
+
var J = { type: ut }, re = { type: ut, soft: !0 }, Ii = { type: ut, hard: !0 }, G = [Ii, Ft], Pi = { type: ut, hard: !0, literal: !0 }, Ri = [Pi, Ft], Mn = Object.freeze({ character: "'", codePoint: 39 }), qn = Object.freeze({ character: '"', codePoint: 34 }), Mi = Object.freeze({ preferred: Mn, alternate: qn }), qi = Object.freeze({ preferred: qn, alternate: Mn });
|
|
2563
2563
|
function Vi(e, r) {
|
|
2564
2564
|
let { preferred: u, alternate: a } = r === !0 || r === "'" ? Mi : qi, { length: o } = e, p = 0, f = 0;
|
|
2565
2565
|
for (let g = 0; g < o; g++) {
|
|
@@ -2600,7 +2600,7 @@ Expected it to be ${a}.`;
|
|
|
2600
2600
|
return this.#e.has(e.charAt(0));
|
|
2601
2601
|
}
|
|
2602
2602
|
hasTrailingWhitespace(e) {
|
|
2603
|
-
return this.#e.has(
|
|
2603
|
+
return this.#e.has(H(0, e, -1));
|
|
2604
2604
|
}
|
|
2605
2605
|
trimStart(e) {
|
|
2606
2606
|
let r = this.getLeadingWhitespaceCount(e);
|
|
@@ -2741,7 +2741,7 @@ Expected it to be ${a}.`;
|
|
|
2741
2741
|
function Ds(e) {
|
|
2742
2742
|
return !!e?.[Un];
|
|
2743
2743
|
}
|
|
2744
|
-
var
|
|
2744
|
+
var Qt = Ds, yt = 3;
|
|
2745
2745
|
function fs(e) {
|
|
2746
2746
|
let r = e.slice(0, yt);
|
|
2747
2747
|
if (r !== "---" && r !== "+++") return;
|
|
@@ -2760,7 +2760,7 @@ ${r}`, u), p = a;
|
|
|
2760
2760
|
`)), S.length;
|
|
2761
2761
|
}, get column() {
|
|
2762
2762
|
return S ?? (S = y.split(`
|
|
2763
|
-
`)),
|
|
2763
|
+
`)), H(0, S, -1).length;
|
|
2764
2764
|
} }, [Un]: !0 };
|
|
2765
2765
|
}
|
|
2766
2766
|
function ms(e) {
|
|
@@ -2783,7 +2783,7 @@ ${r}`, u), p = a;
|
|
|
2783
2783
|
function Gn(e, r) {
|
|
2784
2784
|
return !!(e.kind === "ieConditionalComment" && e.lastChild && !e.lastChild.isSelfClosing && !e.lastChild.endSourceSpan || e.kind === "ieConditionalComment" && !e.complete || st(e) && e.children.some((u) => u.kind !== "text" && u.kind !== "interpolation") || xr(e, r) && !Se(e, r) && e.kind !== "interpolation");
|
|
2785
2785
|
}
|
|
2786
|
-
function
|
|
2786
|
+
function Zt(e) {
|
|
2787
2787
|
return e.kind === "attribute" || !e.parent || !e.prev ? !1 : ys(e.prev);
|
|
2788
2788
|
}
|
|
2789
2789
|
function ys(e) {
|
|
@@ -2809,17 +2809,17 @@ ${r}`, u), p = a;
|
|
|
2809
2809
|
if (u && !e.prev && e.parent?.tagDefinition?.ignoreFirstLf) return e.kind === "interpolation";
|
|
2810
2810
|
return u;
|
|
2811
2811
|
function a() {
|
|
2812
|
-
return
|
|
2812
|
+
return Qt(e) || e.kind === "angularControlFlowBlock" ? !1 : (e.kind === "text" || e.kind === "interpolation") && e.prev && (e.prev.kind === "text" || e.prev.kind === "interpolation") ? !0 : !e.parent || e.parent.cssDisplay === "none" ? !1 : st(e.parent) ? !0 : !(!e.prev && (e.parent.kind === "root" || st(e) && e.parent || Se(e.parent, r) || tr(e.parent, r) || !Is(e.parent.cssDisplay)) || e.prev && !Ms(e.prev.cssDisplay));
|
|
2813
2813
|
}
|
|
2814
2814
|
}
|
|
2815
2815
|
function ks(e, r) {
|
|
2816
|
-
return
|
|
2816
|
+
return Qt(e) || e.kind === "angularControlFlowBlock" ? !1 : (e.kind === "text" || e.kind === "interpolation") && e.next && (e.next.kind === "text" || e.next.kind === "interpolation") ? !0 : !e.parent || e.parent.cssDisplay === "none" ? !1 : st(e.parent) ? !0 : !(!e.next && (e.parent.kind === "root" || st(e) && e.parent || Se(e.parent, r) || tr(e.parent, r) || !Ps(e.parent.cssDisplay)) || e.next && !Rs(e.next.cssDisplay));
|
|
2817
2817
|
}
|
|
2818
2818
|
function ws(e, r) {
|
|
2819
2819
|
return qs(e.cssDisplay) && !Se(e, r);
|
|
2820
2820
|
}
|
|
2821
|
-
function
|
|
2822
|
-
return
|
|
2821
|
+
function er(e) {
|
|
2822
|
+
return Qt(e) || e.next && e.sourceSpan.end && e.sourceSpan.end.line + 1 < e.next.sourceSpan.start.line;
|
|
2823
2823
|
}
|
|
2824
2824
|
function Ts(e) {
|
|
2825
2825
|
return Jn(e) || e.kind === "element" && e.children.length > 0 && (["body", "script", "style"].includes(e.name) || e.children.some((r) => Bs(r))) || e.firstChild && e.firstChild === e.lastChild && e.firstChild.kind !== "text" && Qn(e.firstChild) && (!e.lastChild.isTrailingSpaceSensitive || Zn(e.lastChild));
|
|
@@ -2905,10 +2905,10 @@ ${r}`, u), p = a;
|
|
|
2905
2905
|
function St(e) {
|
|
2906
2906
|
return e === "block" || e === "list-item" || e.startsWith("table");
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function Is(e) {
|
|
2909
2909
|
return !St(e) && e !== "inline-block";
|
|
2910
2910
|
}
|
|
2911
|
-
function
|
|
2911
|
+
function Ps(e) {
|
|
2912
2912
|
return !St(e) && e !== "inline-block";
|
|
2913
2913
|
}
|
|
2914
2914
|
function Rs(e) {
|
|
@@ -2960,14 +2960,14 @@ ${r}`, u), p = a;
|
|
|
2960
2960
|
return uu(e.value);
|
|
2961
2961
|
}
|
|
2962
2962
|
var Hs = /* @__PURE__ */ new Set(["template", "style", "script"]);
|
|
2963
|
-
function
|
|
2963
|
+
function tr(e, r) {
|
|
2964
2964
|
return ot(e, r) && !Hs.has(e.fullName);
|
|
2965
2965
|
}
|
|
2966
2966
|
function ot(e, r) {
|
|
2967
2967
|
return r.parser === "vue" && e.kind === "element" && e.parent.kind === "root" && e.fullName.toLowerCase() !== "html";
|
|
2968
2968
|
}
|
|
2969
2969
|
function xr(e, r) {
|
|
2970
|
-
return ot(e, r) && (
|
|
2970
|
+
return ot(e, r) && (tr(e, r) || e.attrMap.lang && e.attrMap.lang !== "html");
|
|
2971
2971
|
}
|
|
2972
2972
|
function $s(e) {
|
|
2973
2973
|
let r = e.fullName;
|
|
@@ -3039,8 +3039,8 @@ ${r}`, u), p = a;
|
|
|
3039
3039
|
function ho(e) {
|
|
3040
3040
|
let r = e.length, u, a, o, p, f, g = 0, y;
|
|
3041
3041
|
function S(P) {
|
|
3042
|
-
let
|
|
3043
|
-
if (
|
|
3042
|
+
let $, X = P.exec(e.substring(g));
|
|
3043
|
+
if (X) return [$] = X, g += $.length, $;
|
|
3044
3044
|
}
|
|
3045
3045
|
let T = [];
|
|
3046
3046
|
for (; ; ) {
|
|
@@ -3048,53 +3048,53 @@ ${r}`, u), p = a;
|
|
|
3048
3048
|
if (T.length === 0) throw new Error("Must contain one or more image candidate strings.");
|
|
3049
3049
|
return T;
|
|
3050
3050
|
}
|
|
3051
|
-
y = g, u = S(lo), a = [], u.slice(-1) === "," ? (u = u.replace(co, ""),
|
|
3051
|
+
y = g, u = S(lo), a = [], u.slice(-1) === "," ? (u = u.replace(co, ""), V()) : W();
|
|
3052
3052
|
}
|
|
3053
3053
|
function W() {
|
|
3054
3054
|
for (S(so), o = "", p = "in descriptor"; ; ) {
|
|
3055
3055
|
if (f = e.charAt(g), p === "in descriptor") if (lu(f)) o && (a.push(o), o = "", p = "after descriptor");
|
|
3056
3056
|
else if (f === ",") {
|
|
3057
|
-
g += 1, o && a.push(o),
|
|
3057
|
+
g += 1, o && a.push(o), V();
|
|
3058
3058
|
return;
|
|
3059
3059
|
} else if (f === "(") o += f, p = "in parens";
|
|
3060
3060
|
else if (f === "") {
|
|
3061
|
-
o && a.push(o),
|
|
3061
|
+
o && a.push(o), V();
|
|
3062
3062
|
return;
|
|
3063
3063
|
} else o += f;
|
|
3064
3064
|
else if (p === "in parens") if (f === ")") o += f, p = "in descriptor";
|
|
3065
3065
|
else if (f === "") {
|
|
3066
|
-
a.push(o),
|
|
3066
|
+
a.push(o), V();
|
|
3067
3067
|
return;
|
|
3068
3068
|
} else o += f;
|
|
3069
3069
|
else if (p === "after descriptor" && !lu(f)) if (f === "") {
|
|
3070
|
-
|
|
3070
|
+
V();
|
|
3071
3071
|
return;
|
|
3072
3072
|
} else p = "in descriptor", g -= 1;
|
|
3073
3073
|
g += 1;
|
|
3074
3074
|
}
|
|
3075
3075
|
}
|
|
3076
|
-
function
|
|
3077
|
-
let P = !1,
|
|
3078
|
-
for (
|
|
3079
|
-
if (!P) Ye.source = { value: u, startOffset: y },
|
|
3076
|
+
function V() {
|
|
3077
|
+
let P = !1, $, X, Fe, we, Ye = {}, qe, dr, Dt, Ut, Yr;
|
|
3078
|
+
for (we = 0; we < a.length; we++) qe = a[we], dr = qe[qe.length - 1], Dt = qe.substring(0, qe.length - 1), Ut = parseInt(Dt, 10), Yr = parseFloat(Dt), cu.test(Dt) && dr === "w" ? (($ || X) && (P = !0), Ut === 0 ? P = !0 : $ = Ut) : po.test(Dt) && dr === "x" ? (($ || X || Fe) && (P = !0), Yr < 0 ? P = !0 : X = Yr) : cu.test(Dt) && dr === "h" ? ((Fe || X) && (P = !0), Ut === 0 ? P = !0 : Fe = Ut) : P = !0;
|
|
3079
|
+
if (!P) Ye.source = { value: u, startOffset: y }, $ && (Ye.width = { value: $ }), X && (Ye.density = { value: X }), Fe && (Ye.height = { value: Fe }), T.push(Ye);
|
|
3080
3080
|
else throw new Error(`Invalid srcset descriptor found in "${e}" at "${qe}".`);
|
|
3081
3081
|
}
|
|
3082
3082
|
}
|
|
3083
3083
|
var Do = ho, fo = (e) => e.node.fullName === "srcset" && (e.parent.fullName === "img" || e.parent.fullName === "source"), pu = { width: "w", height: "h", density: "x" }, mo = Object.keys(pu);
|
|
3084
3084
|
function go(e, r, u) {
|
|
3085
|
-
let a = ae(u.node), o = Do(a), p = mo.filter((P) => o.some((
|
|
3085
|
+
let a = ae(u.node), o = Do(a), p = mo.filter((P) => o.some(($) => Object.prototype.hasOwnProperty.call($, P)));
|
|
3086
3086
|
if (p.length > 1) throw new Error("Mixed descriptor in srcset is not supported");
|
|
3087
3087
|
let [f] = p, g = pu[f], y = o.map((P) => P.source.value), S = Math.max(...y.map((P) => P.length)), T = o.map((P) => P[f] ? String(P[f].value) : ""), W = T.map((P) => {
|
|
3088
|
-
let
|
|
3089
|
-
return
|
|
3090
|
-
}),
|
|
3091
|
-
return _t(at([",", J], y.map((P,
|
|
3092
|
-
let
|
|
3088
|
+
let $ = P.indexOf(".");
|
|
3089
|
+
return $ === -1 ? P.length : $;
|
|
3090
|
+
}), V = Math.max(...W);
|
|
3091
|
+
return _t(at([",", J], y.map((P, $) => {
|
|
3092
|
+
let X = [P], Fe = T[$];
|
|
3093
3093
|
if (Fe) {
|
|
3094
|
-
let
|
|
3095
|
-
|
|
3094
|
+
let we = S - P.length + 1, Ye = V - W[$], qe = " ".repeat(we + Ye);
|
|
3095
|
+
X.push(vt(qe, " "), Fe + g);
|
|
3096
3096
|
}
|
|
3097
|
-
return
|
|
3097
|
+
return X;
|
|
3098
3098
|
})));
|
|
3099
3099
|
}
|
|
3100
3100
|
var Co = ({ node: e }, r) => e.fullName === "style" && !r.parentParser && !e.value.includes("{{"), Eo = async (e, r, u) => _t(await e(ae(u.node), { parser: "css", __isHTMLStyleAttribute: !0 })), Nr = /* @__PURE__ */ new WeakMap();
|
|
@@ -3157,10 +3157,10 @@ ${r}`, u), p = a;
|
|
|
3157
3157
|
function Bo(e) {
|
|
3158
3158
|
return async (r, u, a, o) => {
|
|
3159
3159
|
let p = await e(r, u, a, o);
|
|
3160
|
-
if (p) return p =
|
|
3160
|
+
if (p) return p = Pn(p, (f) => typeof f == "string" ? L(0, f, '"', """) : f), [a.node.rawName, '="', Y(p), '"'];
|
|
3161
3161
|
};
|
|
3162
3162
|
}
|
|
3163
|
-
var No = xo, bt = (e) => e.sourceSpan.start.offset,
|
|
3163
|
+
var No = xo, bt = (e) => e.sourceSpan.start.offset, rr = (e) => e.sourceSpan.end.offset;
|
|
3164
3164
|
function Lr(e, r) {
|
|
3165
3165
|
return [e.isSelfClosing ? "" : Lo(e, r), kt(e, r)];
|
|
3166
3166
|
}
|
|
@@ -3174,7 +3174,7 @@ ${r}`, u), p = a;
|
|
|
3174
3174
|
return Tt(e) ? wt(e.lastChild, r) : "";
|
|
3175
3175
|
}
|
|
3176
3176
|
function Ue(e, r) {
|
|
3177
|
-
return xt(e) ? Or(e.parent, r) :
|
|
3177
|
+
return xt(e) ? Or(e.parent, r) : nr(e) ? Pr(e.next, r) : "";
|
|
3178
3178
|
}
|
|
3179
3179
|
function Or(e, r) {
|
|
3180
3180
|
if (hu(e, r)) return "";
|
|
@@ -3206,7 +3206,7 @@ ${r}`, u), p = a;
|
|
|
3206
3206
|
}
|
|
3207
3207
|
}
|
|
3208
3208
|
function hu(e, r) {
|
|
3209
|
-
return !e.isSelfClosing && !e.endSourceSpan && (
|
|
3209
|
+
return !e.isSelfClosing && !e.endSourceSpan && (Zt(e) || Gn(e.parent, r));
|
|
3210
3210
|
}
|
|
3211
3211
|
function We(e) {
|
|
3212
3212
|
return e.prev && e.prev.kind !== "docType" && e.kind !== "angularControlFlowBlock" && !he(e.prev) && e.isLeadingSpaceSensitive && !e.hasLeadingSpaces;
|
|
@@ -3217,37 +3217,37 @@ ${r}`, u), p = a;
|
|
|
3217
3217
|
function xt(e) {
|
|
3218
3218
|
return !e.next && !e.hasTrailingSpaces && e.isTrailingSpaceSensitive && he(Tr(e));
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function nr(e) {
|
|
3221
3221
|
return e.next && !he(e.next) && he(e) && e.isTrailingSpaceSensitive && !e.hasTrailingSpaces;
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function Io(e) {
|
|
3224
3224
|
let r = e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);
|
|
3225
3225
|
return r ? r[1] ? r[1].split(/\s+/u) : !0 : !1;
|
|
3226
3226
|
}
|
|
3227
|
-
function
|
|
3227
|
+
function ur(e) {
|
|
3228
3228
|
return !e.prev && e.isLeadingSpaceSensitive && !e.hasLeadingSpaces;
|
|
3229
3229
|
}
|
|
3230
|
-
function
|
|
3230
|
+
function Po(e, r, u) {
|
|
3231
3231
|
let { node: a } = e;
|
|
3232
3232
|
if (!br(a.attrs)) return a.isSelfClosing ? " " : "";
|
|
3233
|
-
let o = a.prev?.kind === "comment" &&
|
|
3234
|
-
return a.firstChild &&
|
|
3233
|
+
let o = a.prev?.kind === "comment" && Io(a.prev.value), p = typeof o == "boolean" ? () => o : Array.isArray(o) ? (T) => o.includes(T.rawName) : () => !1, f = e.map(({ node: T }) => p(T) ? Ce(r.originalText.slice(bt(T), rr(T))) : u(), "attrs"), g = a.kind === "element" && a.fullName === "script" && a.attrs.length === 1 && a.attrs[0].fullName === "src" && a.children.length === 0, y = r.singleAttributePerLine && a.attrs.length > 1 && !ot(a, r) ? G : J, S = [Ee([g ? " " : J, at(y, f)])];
|
|
3234
|
+
return a.firstChild && ur(a.firstChild) || a.isSelfClosing && Tt(a.parent) || g ? S.push(a.isSelfClosing ? " " : "") : S.push(r.bracketSameLine ? a.isSelfClosing ? " " : "" : a.isSelfClosing ? J : re), S;
|
|
3235
3235
|
}
|
|
3236
3236
|
function Ro(e) {
|
|
3237
|
-
return e.firstChild &&
|
|
3237
|
+
return e.firstChild && ur(e.firstChild) ? "" : Rr(e);
|
|
3238
3238
|
}
|
|
3239
|
-
function
|
|
3239
|
+
function Ir(e, r, u) {
|
|
3240
3240
|
let { node: a } = e;
|
|
3241
|
-
return [Bt(a, r),
|
|
3241
|
+
return [Bt(a, r), Po(e, r, u), a.isSelfClosing ? "" : Ro(a)];
|
|
3242
3242
|
}
|
|
3243
3243
|
function Bt(e, r) {
|
|
3244
|
-
return e.prev &&
|
|
3244
|
+
return e.prev && nr(e.prev) ? "" : [ze(e, r), Pr(e, r)];
|
|
3245
3245
|
}
|
|
3246
3246
|
function ze(e, r) {
|
|
3247
|
-
return
|
|
3247
|
+
return ur(e) ? Rr(e.parent) : We(e) ? wt(e.prev, r) : "";
|
|
3248
3248
|
}
|
|
3249
3249
|
var Du = "<!doctype";
|
|
3250
|
-
function
|
|
3250
|
+
function Pr(e, r) {
|
|
3251
3251
|
switch (e.kind) {
|
|
3252
3252
|
case "ieConditionalComment":
|
|
3253
3253
|
case "ieConditionalStartComment":
|
|
@@ -3285,7 +3285,7 @@ ${r}`, u), p = a;
|
|
|
3285
3285
|
function Mo(e, r) {
|
|
3286
3286
|
if (!e.endSourceSpan) return "";
|
|
3287
3287
|
let u = e.startSourceSpan.end.offset;
|
|
3288
|
-
e.firstChild &&
|
|
3288
|
+
e.firstChild && ur(e.firstChild) && (u -= Rr(e).length);
|
|
3289
3289
|
let a = e.endSourceSpan.start.offset;
|
|
3290
3290
|
return e.lastChild && xt(e.lastChild) ? a += Or(e, r).length : Tt(e) && (a -= wt(e.lastChild, r).length), r.originalText.slice(u, a);
|
|
3291
3291
|
}
|
|
@@ -3299,7 +3299,7 @@ ${r}`, u), p = a;
|
|
|
3299
3299
|
let a = ru(u, r);
|
|
3300
3300
|
return a ? async (o, p) => {
|
|
3301
3301
|
let f = fu(u, r), g = /^\s*$/u.test(f), y = "";
|
|
3302
|
-
return g || (y = await o(Xn(f), { parser: a, __embeddedInHtml: !0 }), g = y === ""), [ze(u, r), Y(
|
|
3302
|
+
return g || (y = await o(Xn(f), { parser: a, __embeddedInHtml: !0 }), g = y === ""), [ze(u, r), Y(Ir(e, r, p)), g ? "" : G, y, g ? "" : G, Lr(u, r), Ue(u, r)];
|
|
3303
3303
|
} : void 0;
|
|
3304
3304
|
}
|
|
3305
3305
|
break;
|
|
@@ -3353,42 +3353,43 @@ ${r}`, u), p = a;
|
|
|
3353
3353
|
|
|
3354
3354
|
${e}`, tl = /* @__PURE__ */ new Map([["if", /* @__PURE__ */ new Set(["else if", "else"])], ["else if", /* @__PURE__ */ new Set(["else if", "else"])], ["for", /* @__PURE__ */ new Set(["empty"])], ["defer", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["placeholder", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["error", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["loading", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])]]);
|
|
3355
3355
|
function mu(e) {
|
|
3356
|
-
let r =
|
|
3357
|
-
return e.kind === "element" && !e.endSourceSpan && br(e.children) ? Math.max(r, mu(
|
|
3356
|
+
let r = rr(e);
|
|
3357
|
+
return e.kind === "element" && !e.endSourceSpan && br(e.children) ? Math.max(r, mu(H(0, e.children, -1))) : r;
|
|
3358
3358
|
}
|
|
3359
3359
|
function Ot(e, r, u) {
|
|
3360
3360
|
let a = e.node;
|
|
3361
|
-
if (
|
|
3361
|
+
if (Zt(a)) {
|
|
3362
3362
|
let o = mu(a);
|
|
3363
|
-
return [ze(a, r), Ce(pe.trimEnd(r.originalText.slice(bt(a) + (a.prev &&
|
|
3363
|
+
return [ze(a, r), Ce(pe.trimEnd(r.originalText.slice(bt(a) + (a.prev && nr(a.prev) ? Pr(a).length : 0), o - (a.next && We(a.next) ? wt(a, r).length : 0)))), Ue(a, r)];
|
|
3364
3364
|
}
|
|
3365
3365
|
return u();
|
|
3366
3366
|
}
|
|
3367
|
-
function
|
|
3368
|
-
return he(e) && he(r) ? e.isTrailingSpaceSensitive ? e.hasTrailingSpaces ? wr(r) ? G : J : "" : wr(r) ? G : re :
|
|
3367
|
+
function ar(e, r) {
|
|
3368
|
+
return he(e) && he(r) ? e.isTrailingSpaceSensitive ? e.hasTrailingSpaces ? wr(r) ? G : J : "" : wr(r) ? G : re : nr(e) && (Zt(r) || r.firstChild || r.isSelfClosing || r.kind === "element" && r.attrs.length > 0) || e.kind === "element" && e.isSelfClosing && We(r) ? "" : !r.isLeadingSpaceSensitive || wr(r) || We(r) && e.lastChild && xt(e.lastChild) && e.lastChild.lastChild && xt(e.lastChild.lastChild) ? G : r.hasLeadingSpaces ? J : re;
|
|
3369
3369
|
}
|
|
3370
3370
|
function Mr(e, r, u) {
|
|
3371
3371
|
let { node: a } = e;
|
|
3372
3372
|
if (Jn(a)) return [Ft, ...e.map(() => {
|
|
3373
|
-
let p = e.node, f = p.prev ?
|
|
3374
|
-
return [f ? [f,
|
|
3373
|
+
let p = e.node, f = p.prev ? ar(p.prev, p) : "";
|
|
3374
|
+
return [f ? [f, er(p.prev) ? G : ""] : "", Ot(e, r, u)];
|
|
3375
3375
|
}, "children")];
|
|
3376
3376
|
let o = a.children.map(() => Symbol(""));
|
|
3377
3377
|
return e.map(({ node: p, index: f }) => {
|
|
3378
3378
|
if (he(p)) {
|
|
3379
3379
|
if (p.prev && he(p.prev)) {
|
|
3380
|
-
let P =
|
|
3381
|
-
if (P) return
|
|
3380
|
+
let P = ar(p.prev, p);
|
|
3381
|
+
if (P) return er(p.prev) ? [G, G, Ot(e, r, u)] : [P, Ot(e, r, u)];
|
|
3382
3382
|
}
|
|
3383
3383
|
return Ot(e, r, u);
|
|
3384
3384
|
}
|
|
3385
|
-
let g = [], y = [], S = [], T = [], W = p.prev ?
|
|
3386
|
-
return W && (
|
|
3385
|
+
let g = [], y = [], S = [], T = [], W = p.prev ? ar(p.prev, p) : "", V = p.next ? ar(p, p.next) : "";
|
|
3386
|
+
return W && (er(p.prev) ? g.push(G, G) : W === G ? g.push(G) : he(p.prev) ? y.push(W) : y.push(vt("", re, { groupId: o[f - 1] }))), V && (er(p) ? he(p.next) && T.push(G, G) : V === G ? he(p.next) && T.push(G) : S.push(V)), [...g, Y([...y, Y([Ot(e, r, u), ...S], { id: o[f] })]), ...T];
|
|
3387
3387
|
}, "children");
|
|
3388
3388
|
}
|
|
3389
3389
|
function rl(e, r, u) {
|
|
3390
3390
|
let { node: a } = e, o = [];
|
|
3391
|
-
if (
|
|
3391
|
+
if (il(e) && o.push("} "), o.push("@", a.name), ul(a)) return o.push(";"), o;
|
|
3392
|
+
if (a.parameters && o.push(" (", Y(u("parameters")), ")"), !al(a)) {
|
|
3392
3393
|
o.push(" {");
|
|
3393
3394
|
let p = gu(a);
|
|
3394
3395
|
a.children.length > 0 ? (a.firstChild.hasLeadingSpaces = !0, a.lastChild.hasTrailingSpaces = !0, o.push(Ee([G, Mr(e, r, u)])), p && o.push(G, "}")) : p && o.push("}");
|
|
@@ -3398,38 +3399,38 @@ ${e}`, tl = /* @__PURE__ */ new Map([["if", /* @__PURE__ */ new Set(["else if",
|
|
|
3398
3399
|
function gu(e) {
|
|
3399
3400
|
return !(e.next?.kind === "angularControlFlowBlock" && tl.get(e.name)?.has(e.next.name));
|
|
3400
3401
|
}
|
|
3401
|
-
var nl = (e) => e?.kind === "angularControlFlowBlock" && (e.name === "case" || e.name === "default");
|
|
3402
|
-
function
|
|
3402
|
+
var nl = (e) => e?.kind === "angularControlFlowBlock" && (e.name === "case" || e.name === "default"), ul = (e) => e?.kind === "angularControlFlowBlock" && e.name === "default never";
|
|
3403
|
+
function al(e) {
|
|
3403
3404
|
return nl(e) && e.endSourceSpan && e.endSourceSpan.start.offset === e.endSourceSpan.end.offset;
|
|
3404
3405
|
}
|
|
3405
|
-
function
|
|
3406
|
+
function il(e) {
|
|
3406
3407
|
let { previous: r } = e;
|
|
3407
|
-
return r?.kind === "angularControlFlowBlock" && !
|
|
3408
|
+
return r?.kind === "angularControlFlowBlock" && !Zt(r) && !gu(r);
|
|
3408
3409
|
}
|
|
3409
|
-
function
|
|
3410
|
+
function sl(e, r, u) {
|
|
3410
3411
|
return [Ee([re, at([";", J], e.map(u, "children"))]), re];
|
|
3411
3412
|
}
|
|
3412
|
-
function
|
|
3413
|
+
function ol(e, r, u) {
|
|
3413
3414
|
let { node: a } = e;
|
|
3414
3415
|
return [Bt(a, r), Y([a.switchValue.trim(), ", ", a.type, a.cases.length > 0 ? [",", Ee([J, at(J, e.map(u, "cases"))])] : "", re]), kt(a, r)];
|
|
3415
3416
|
}
|
|
3416
|
-
function
|
|
3417
|
+
function ll(e, r, u) {
|
|
3417
3418
|
let { node: a } = e;
|
|
3418
3419
|
return [a.value, " {", Y([Ee([re, e.map(({ node: o, isLast: p }) => {
|
|
3419
3420
|
let f = [u()];
|
|
3420
3421
|
return o.kind === "text" && (o.hasLeadingSpaces && f.unshift(J), o.hasTrailingSpaces && !p && f.push(J)), f;
|
|
3421
3422
|
}, "expression")]), re]), "}"];
|
|
3422
3423
|
}
|
|
3423
|
-
function
|
|
3424
|
+
function cl(e, r, u) {
|
|
3424
3425
|
let { node: a } = e;
|
|
3425
|
-
if (Gn(a, r)) return [ze(a, r), Y(
|
|
3426
|
-
let o = a.children.length === 1 && (a.firstChild.kind === "interpolation" || a.firstChild.kind === "angularIcuExpression") && a.firstChild.isLeadingSpaceSensitive && !a.firstChild.hasLeadingSpaces && a.lastChild.isTrailingSpaceSensitive && !a.lastChild.hasTrailingSpaces, p = Symbol("element-attr-group-id"), f = (T) => Y([Y(
|
|
3426
|
+
if (Gn(a, r)) return [ze(a, r), Y(Ir(e, r, u)), Ce(fu(a, r)), ...Lr(a, r), Ue(a, r)];
|
|
3427
|
+
let o = a.children.length === 1 && (a.firstChild.kind === "interpolation" || a.firstChild.kind === "angularIcuExpression") && a.firstChild.isLeadingSpaceSensitive && !a.firstChild.hasLeadingSpaces && a.lastChild.isTrailingSpaceSensitive && !a.lastChild.hasTrailingSpaces, p = Symbol("element-attr-group-id"), f = (T) => Y([Y(Ir(e, r, u), { id: p }), T, Lr(a, r)]), g = (T) => o ? Oi(T, { groupId: p }) : (Se(a, r) || tr(a, r)) && a.parent.kind === "root" && r.parser === "vue" && !r.vueIndentScriptAndStyle ? T : Ee(T), y = () => o ? vt(re, "", { groupId: p }) : a.firstChild.hasLeadingSpaces && a.firstChild.isLeadingSpaceSensitive ? J : a.firstChild.kind === "text" && a.isWhitespaceSensitive && a.isIndentationSensitive ? Li(re) : re, S = () => (a.next ? We(a.next) : Tt(a.parent)) ? a.lastChild.hasTrailingSpaces && a.lastChild.isTrailingSpaceSensitive ? " " : "" : o ? vt(re, "", { groupId: p }) : a.lastChild.hasTrailingSpaces && a.lastChild.isTrailingSpaceSensitive ? J : (a.lastChild.kind === "comment" || a.lastChild.kind === "text" && a.isWhitespaceSensitive && a.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${r.tabWidth * (e.ancestors.length - 1)}}$`, "u").test(a.lastChild.value) ? "" : re;
|
|
3427
3428
|
return a.children.length === 0 ? f(a.hasDanglingSpaces && a.isDanglingSpaceSensitive ? J : "") : f([Ts(a) ? Ft : "", g([y(), Mr(e, r, u)]), S()]);
|
|
3428
3429
|
}
|
|
3429
3430
|
var be = (function(e) {
|
|
3430
3431
|
return e[e.RAW_TEXT = 0] = "RAW_TEXT", e[e.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", e[e.PARSABLE_DATA = 2] = "PARSABLE_DATA", e;
|
|
3431
3432
|
})({});
|
|
3432
|
-
function
|
|
3433
|
+
function ir(e, r = !0) {
|
|
3433
3434
|
if (e[0] != ":") return [null, e];
|
|
3434
3435
|
let u = e.indexOf(":", 1);
|
|
3435
3436
|
if (u === -1) {
|
|
@@ -3439,34 +3440,36 @@ ${e}`, tl = /* @__PURE__ */ new Map([["if", /* @__PURE__ */ new Set(["else if",
|
|
|
3439
3440
|
return [e.slice(1, u), e.slice(u + 1)];
|
|
3440
3441
|
}
|
|
3441
3442
|
function Cu(e) {
|
|
3442
|
-
return
|
|
3443
|
+
return ir(e)[1] === "ng-container";
|
|
3443
3444
|
}
|
|
3444
3445
|
function Eu(e) {
|
|
3445
|
-
return
|
|
3446
|
+
return ir(e)[1] === "ng-content";
|
|
3446
3447
|
}
|
|
3447
|
-
function
|
|
3448
|
-
return e === null ? null :
|
|
3448
|
+
function sr(e) {
|
|
3449
|
+
return e === null ? null : ir(e)[0];
|
|
3449
3450
|
}
|
|
3450
|
-
function
|
|
3451
|
+
function It(e, r) {
|
|
3451
3452
|
return e ? `:${e}:${r}` : r;
|
|
3452
3453
|
}
|
|
3453
3454
|
var Fu = { name: "custom-elements" }, vu = { name: "no-errors-schema" }, ct = (function(e) {
|
|
3454
3455
|
return e[e.NONE = 0] = "NONE", e[e.HTML = 1] = "HTML", e[e.STYLE = 2] = "STYLE", e[e.SCRIPT = 3] = "SCRIPT", e[e.URL = 4] = "URL", e[e.RESOURCE_URL = 5] = "RESOURCE_URL", e[e.ATTRIBUTE_NO_BINDING = 6] = "ATTRIBUTE_NO_BINDING", e;
|
|
3455
|
-
})({}),
|
|
3456
|
-
function
|
|
3457
|
-
return e.replace(
|
|
3456
|
+
})({}), pl = /-+([a-z0-9])/g;
|
|
3457
|
+
function dl(e) {
|
|
3458
|
+
return e.replace(pl, (...r) => r[1].toUpperCase());
|
|
3458
3459
|
}
|
|
3459
|
-
var
|
|
3460
|
+
var or;
|
|
3460
3461
|
function _u() {
|
|
3461
|
-
return
|
|
3462
|
+
return or || (or = {}, Pt(ct.HTML, ["iframe|srcdoc", "*|innerHTML", "*|outerHTML"]), Pt(ct.STYLE, ["*|style"]), Pt(ct.URL, ["*|formAction", "area|href", "a|href", "a|xlink:href", "form|action", "annotation|href", "annotation|xlink:href", "annotation-xml|href", "annotation-xml|xlink:href", "maction|href", "maction|xlink:href", "malignmark|href", "malignmark|xlink:href", "math|href", "math|xlink:href", "mroot|href", "mroot|xlink:href", "msqrt|href", "msqrt|xlink:href", "merror|href", "merror|xlink:href", "mfrac|href", "mfrac|xlink:href", "mglyph|href", "mglyph|xlink:href", "msub|href", "msub|xlink:href", "msup|href", "msup|xlink:href", "msubsup|href", "msubsup|xlink:href", "mmultiscripts|href", "mmultiscripts|xlink:href", "mprescripts|href", "mprescripts|xlink:href", "mi|href", "mi|xlink:href", "mn|href", "mn|xlink:href", "mo|href", "mo|xlink:href", "mpadded|href", "mpadded|xlink:href", "mphantom|href", "mphantom|xlink:href", "mrow|href", "mrow|xlink:href", "ms|href", "ms|xlink:href", "mspace|href", "mspace|xlink:href", "mstyle|href", "mstyle|xlink:href", "mtable|href", "mtable|xlink:href", "mtd|href", "mtd|xlink:href", "mtr|href", "mtr|xlink:href", "mtext|href", "mtext|xlink:href", "mover|href", "mover|xlink:href", "munder|href", "munder|xlink:href", "munderover|href", "munderover|xlink:href", "semantics|href", "semantics|xlink:href", "none|href", "none|xlink:href", "img|src", "video|src"]), Pt(ct.RESOURCE_URL, ["base|href", "embed|src", "frame|src", "iframe|src", "link|href", "object|codebase", "object|data", "script|src", "script|href", "script|xlink:href"]), Pt(ct.ATTRIBUTE_NO_BINDING, ["animate|attributeName", "animate|values", "animate|to", "animate|from", "set|to", "set|attributeName", "animateMotion|attributeName", "animateTransform|attributeName", "unknown|attributeName", "unknown|values", "unknown|to", "unknown|from", "iframe|sandbox", "iframe|allow", "iframe|allowFullscreen", "iframe|referrerPolicy", "iframe|csp", "iframe|fetchPriority", "unknown|sandbox", "unknown|allow", "unknown|allowFullscreen", "unknown|referrerPolicy", "unknown|csp", "unknown|fetchPriority"])), or;
|
|
3462
3463
|
}
|
|
3463
|
-
function
|
|
3464
|
-
for (let u of r)
|
|
3464
|
+
function Pt(e, r) {
|
|
3465
|
+
for (let u of r) or[u.toLowerCase()] = e;
|
|
3465
3466
|
}
|
|
3466
|
-
var
|
|
3467
|
-
}, hl = "boolean", Dl = "number", fl = "string", ml = "object", gl = ["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored", "[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume", ":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":svg:graphics^:svg:|", ":svg:animation^:svg:|*begin,*end,*repeat", ":svg:geometry^:svg:|", ":svg:componentTransferFunction^:svg:|", ":svg:gradient^:svg:|", ":svg:textContent^:svg:graphics|", ":svg:textPositioning^:svg:textContent|", "a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username", "area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username", "audio^media|", "br^[HTMLElement]|clear", "base^[HTMLElement]|href,target", "body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink", "button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value", "canvas^[HTMLElement]|#height,#width", "content^[HTMLElement]|select", "dl^[HTMLElement]|!compact", "data^[HTMLElement]|value", "datalist^[HTMLElement]|", "details^[HTMLElement]|!open", "dialog^[HTMLElement]|!open,returnValue", "dir^[HTMLElement]|!compact", "div^[HTMLElement]|align", "embed^[HTMLElement]|align,height,name,src,type,width", "fieldset^[HTMLElement]|!disabled,name", "font^[HTMLElement]|color,face,size", "form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target", "frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src", "frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows", "hr^[HTMLElement]|align,color,!noShade,size,width", "head^[HTMLElement]|", "h1,h2,h3,h4,h5,h6^[HTMLElement]|align", "html^[HTMLElement]|version", "iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width", "img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width", "input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width", "li^[HTMLElement]|type,#value", "label^[HTMLElement]|htmlFor", "legend^[HTMLElement]|align", "link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type", "map^[HTMLElement]|name", "marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width", "menu^[HTMLElement]|!compact", "meta^[HTMLElement]|content,httpEquiv,media,name,scheme", "meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value", "ins,del^[HTMLElement]|cite,dateTime", "ol^[HTMLElement]|!compact,!reversed,#start,type", "object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width", "optgroup^[HTMLElement]|!disabled,label", "option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value", "output^[HTMLElement]|defaultValue,%htmlFor,name,value", "p^[HTMLElement]|align", "param^[HTMLElement]|name,type,value,valueType", "picture^[HTMLElement]|", "pre^[HTMLElement]|#width", "progress^[HTMLElement]|#max,#value", "q,blockquote,cite^[HTMLElement]|", "script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type", "select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value", "selectedcontent^[HTMLElement]|", "slot^[HTMLElement]|name", "source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width", "span^[HTMLElement]|", "style^[HTMLElement]|!disabled,media,type", "search^[HTMLELement]|", "caption^[HTMLElement]|align", "th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width", "col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width", "table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width", "tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign", "tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign", "template^[HTMLElement]|", "textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap", "time^[HTMLElement]|dateTime", "title^[HTMLElement]|text", "track^[HTMLElement]|!default,kind,label,src,srclang", "ul^[HTMLElement]|!compact,type", "unknown^[HTMLElement]|", "video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width", ":svg:a^:svg:graphics|", ":svg:animate^:svg:animation|", ":svg:animateMotion^:svg:animation|", ":svg:animateTransform^:svg:animation|", ":svg:circle^:svg:geometry|", ":svg:clipPath^:svg:graphics|", ":svg:defs^:svg:graphics|", ":svg:desc^:svg:|", ":svg:discard^:svg:|", ":svg:ellipse^:svg:geometry|", ":svg:feBlend^:svg:|", ":svg:feColorMatrix^:svg:|", ":svg:feComponentTransfer^:svg:|", ":svg:feComposite^:svg:|", ":svg:feConvolveMatrix^:svg:|", ":svg:feDiffuseLighting^:svg:|", ":svg:feDisplacementMap^:svg:|", ":svg:feDistantLight^:svg:|", ":svg:feDropShadow^:svg:|", ":svg:feFlood^:svg:|", ":svg:feFuncA^:svg:componentTransferFunction|", ":svg:feFuncB^:svg:componentTransferFunction|", ":svg:feFuncG^:svg:componentTransferFunction|", ":svg:feFuncR^:svg:componentTransferFunction|", ":svg:feGaussianBlur^:svg:|", ":svg:feImage^:svg:|", ":svg:feMerge^:svg:|", ":svg:feMergeNode^:svg:|", ":svg:feMorphology^:svg:|", ":svg:feOffset^:svg:|", ":svg:fePointLight^:svg:|", ":svg:feSpecularLighting^:svg:|", ":svg:feSpotLight^:svg:|", ":svg:feTile^:svg:|", ":svg:feTurbulence^:svg:|", ":svg:filter^:svg:|", ":svg:foreignObject^:svg:graphics|", ":svg:g^:svg:graphics|", ":svg:image^:svg:graphics|decoding", ":svg:line^:svg:geometry|", ":svg:linearGradient^:svg:gradient|", ":svg:mpath^:svg:|", ":svg:marker^:svg:|", ":svg:mask^:svg:|", ":svg:metadata^:svg:|", ":svg:path^:svg:geometry|", ":svg:pattern^:svg:|", ":svg:polygon^:svg:geometry|", ":svg:polyline^:svg:geometry|", ":svg:radialGradient^:svg:gradient|", ":svg:rect^:svg:geometry|", ":svg:svg^:svg:graphics|#currentScale,#zoomAndPan", ":svg:script^:svg:|type", ":svg:set^:svg:animation|", ":svg:stop^:svg:|", ":svg:style^:svg:|!disabled,media,title,type", ":svg:switch^:svg:graphics|", ":svg:symbol^:svg:|", ":svg:tspan^:svg:textPositioning|", ":svg:text^:svg:textPositioning|", ":svg:textPath^:svg:textContent|", ":svg:title^:svg:|", ":svg:use^:svg:graphics|", ":svg:view^:svg:|#zoomAndPan", "data^[HTMLElement]|value", "keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name", "menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default", "summary^[HTMLElement]|", "time^[HTMLElement]|dateTime", ":svg:cursor^:svg:|", ":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":math:math^:math:|", ":math:maction^:math:|", ":math:menclose^:math:|", ":math:merror^:math:|", ":math:mfenced^:math:|", ":math:mfrac^:math:|", ":math:mi^:math:|", ":math:mmultiscripts^:math:|", ":math:mn^:math:|", ":math:mo^:math:|", ":math:mover^:math:|", ":math:mpadded^:math:|", ":math:mphantom^:math:|", ":math:mroot^:math:|", ":math:mrow^:math:|", ":math:ms^:math:|", ":math:mspace^:math:|", ":math:msqrt^:math:|", ":math:mstyle^:math:|", ":math:msub^:math:|", ":math:msubsup^:math:|", ":math:msup^:math:|", ":math:mtable^:math:|", ":math:mtd^:math:|", ":math:mtext^:math:|", ":math:mtr^:math:|", ":math:munder^:math:|", ":math:munderover^:math:|", ":math:semantics^:math:|"], yu = new Map(Object.entries({ class: "className", for: "htmlFor", formaction: "formAction", innerHtml: "innerHTML", readonly: "readOnly", tabindex: "tabIndex", "aria-activedescendant": "ariaActiveDescendantElement", "aria-atomic": "ariaAtomic", "aria-autocomplete": "ariaAutoComplete", "aria-busy": "ariaBusy", "aria-checked": "ariaChecked", "aria-colcount": "ariaColCount", "aria-colindex": "ariaColIndex", "aria-colindextext": "ariaColIndexText", "aria-colspan": "ariaColSpan", "aria-controls": "ariaControlsElements", "aria-current": "ariaCurrent", "aria-describedby": "ariaDescribedByElements", "aria-description": "ariaDescription", "aria-details": "ariaDetailsElements", "aria-disabled": "ariaDisabled", "aria-errormessage": "ariaErrorMessageElements", "aria-expanded": "ariaExpanded", "aria-flowto": "ariaFlowToElements", "aria-haspopup": "ariaHasPopup", "aria-hidden": "ariaHidden", "aria-invalid": "ariaInvalid", "aria-keyshortcuts": "ariaKeyShortcuts", "aria-label": "ariaLabel", "aria-labelledby": "ariaLabelledByElements", "aria-level": "ariaLevel", "aria-live": "ariaLive", "aria-modal": "ariaModal", "aria-multiline": "ariaMultiLine", "aria-multiselectable": "ariaMultiSelectable", "aria-orientation": "ariaOrientation", "aria-owns": "ariaOwnsElements", "aria-placeholder": "ariaPlaceholder", "aria-posinset": "ariaPosInSet", "aria-pressed": "ariaPressed", "aria-readonly": "ariaReadOnly", "aria-required": "ariaRequired", "aria-roledescription": "ariaRoleDescription", "aria-rowcount": "ariaRowCount", "aria-rowindex": "ariaRowIndex", "aria-rowindextext": "ariaRowIndexText", "aria-rowspan": "ariaRowSpan", "aria-selected": "ariaSelected", "aria-setsize": "ariaSetSize", "aria-sort": "ariaSort", "aria-valuemax": "ariaValueMax", "aria-valuemin": "ariaValueMin", "aria-valuenow": "ariaValueNow", "aria-valuetext": "ariaValueText" })), Cl = Array.from(yu).reduce((e, [r, u]) => (e.set(r, u), e), /* @__PURE__ */ new Map()), El = class extends dl {
|
|
3467
|
+
var hl = class {
|
|
3468
|
+
}, Dl = "boolean", fl = "number", ml = "string", gl = "object", Cl = ["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored", "[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume", ":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":svg:graphics^:svg:|", ":svg:animation^:svg:|*begin,*end,*repeat", ":svg:geometry^:svg:|", ":svg:componentTransferFunction^:svg:|", ":svg:gradient^:svg:|", ":svg:textContent^:svg:graphics|", ":svg:textPositioning^:svg:textContent|", "a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username", "area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username", "audio^media|", "br^[HTMLElement]|clear", "base^[HTMLElement]|href,target", "body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink", "button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value", "canvas^[HTMLElement]|#height,#width", "content^[HTMLElement]|select", "dl^[HTMLElement]|!compact", "data^[HTMLElement]|value", "datalist^[HTMLElement]|", "details^[HTMLElement]|!open", "dialog^[HTMLElement]|!open,returnValue", "dir^[HTMLElement]|!compact", "div^[HTMLElement]|align", "embed^[HTMLElement]|align,height,name,src,type,width", "fieldset^[HTMLElement]|!disabled,name", "font^[HTMLElement]|color,face,size", "form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target", "frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src", "frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows", "geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch", "hr^[HTMLElement]|align,color,!noShade,size,width", "head^[HTMLElement]|", "h1,h2,h3,h4,h5,h6^[HTMLElement]|align", "html^[HTMLElement]|version", "iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width", "img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width", "input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width", "li^[HTMLElement]|type,#value", "label^[HTMLElement]|htmlFor", "legend^[HTMLElement]|align", "link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type", "map^[HTMLElement]|name", "marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width", "menu^[HTMLElement]|!compact", "meta^[HTMLElement]|content,httpEquiv,media,name,scheme", "meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value", "ins,del^[HTMLElement]|cite,dateTime", "ol^[HTMLElement]|!compact,!reversed,#start,type", "object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width", "optgroup^[HTMLElement]|!disabled,label", "option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value", "output^[HTMLElement]|defaultValue,%htmlFor,name,value", "p^[HTMLElement]|align", "param^[HTMLElement]|name,type,value,valueType", "picture^[HTMLElement]|", "pre^[HTMLElement]|#width", "progress^[HTMLElement]|#max,#value", "q,blockquote,cite^[HTMLElement]|", "script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type", "select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value", "selectedcontent^[HTMLElement]|", "slot^[HTMLElement]|name", "source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width", "span^[HTMLElement]|", "style^[HTMLElement]|!disabled,media,type", "search^[HTMLELement]|", "caption^[HTMLElement]|align", "th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width", "col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width", "table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width", "tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign", "tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign", "template^[HTMLElement]|", "textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap", "time^[HTMLElement]|dateTime", "title^[HTMLElement]|text", "track^[HTMLElement]|!default,kind,label,src,srclang", "ul^[HTMLElement]|!compact,type", "unknown^[HTMLElement]|", "video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width", ":svg:a^:svg:graphics|", ":svg:animate^:svg:animation|", ":svg:animateMotion^:svg:animation|", ":svg:animateTransform^:svg:animation|", ":svg:circle^:svg:geometry|", ":svg:clipPath^:svg:graphics|", ":svg:defs^:svg:graphics|", ":svg:desc^:svg:|", ":svg:discard^:svg:|", ":svg:ellipse^:svg:geometry|", ":svg:feBlend^:svg:|", ":svg:feColorMatrix^:svg:|", ":svg:feComponentTransfer^:svg:|", ":svg:feComposite^:svg:|", ":svg:feConvolveMatrix^:svg:|", ":svg:feDiffuseLighting^:svg:|", ":svg:feDisplacementMap^:svg:|", ":svg:feDistantLight^:svg:|", ":svg:feDropShadow^:svg:|", ":svg:feFlood^:svg:|", ":svg:feFuncA^:svg:componentTransferFunction|", ":svg:feFuncB^:svg:componentTransferFunction|", ":svg:feFuncG^:svg:componentTransferFunction|", ":svg:feFuncR^:svg:componentTransferFunction|", ":svg:feGaussianBlur^:svg:|", ":svg:feImage^:svg:|", ":svg:feMerge^:svg:|", ":svg:feMergeNode^:svg:|", ":svg:feMorphology^:svg:|", ":svg:feOffset^:svg:|", ":svg:fePointLight^:svg:|", ":svg:feSpecularLighting^:svg:|", ":svg:feSpotLight^:svg:|", ":svg:feTile^:svg:|", ":svg:feTurbulence^:svg:|", ":svg:filter^:svg:|", ":svg:foreignObject^:svg:graphics|", ":svg:g^:svg:graphics|", ":svg:image^:svg:graphics|decoding", ":svg:line^:svg:geometry|", ":svg:linearGradient^:svg:gradient|", ":svg:mpath^:svg:|", ":svg:marker^:svg:|", ":svg:mask^:svg:|", ":svg:metadata^:svg:|", ":svg:path^:svg:geometry|", ":svg:pattern^:svg:|", ":svg:polygon^:svg:geometry|", ":svg:polyline^:svg:geometry|", ":svg:radialGradient^:svg:gradient|", ":svg:rect^:svg:geometry|", ":svg:svg^:svg:graphics|#currentScale,#zoomAndPan", ":svg:script^:svg:|type", ":svg:set^:svg:animation|", ":svg:stop^:svg:|", ":svg:style^:svg:|!disabled,media,title,type", ":svg:switch^:svg:graphics|", ":svg:symbol^:svg:|", ":svg:tspan^:svg:textPositioning|", ":svg:text^:svg:textPositioning|", ":svg:textPath^:svg:textContent|", ":svg:title^:svg:|", ":svg:use^:svg:graphics|", ":svg:view^:svg:|#zoomAndPan", "data^[HTMLElement]|value", "keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name", "menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default", "summary^[HTMLElement]|", "time^[HTMLElement]|dateTime", ":svg:cursor^:svg:|", ":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":math:math^:math:|", ":math:maction^:math:|", ":math:menclose^:math:|", ":math:merror^:math:|", ":math:mfenced^:math:|", ":math:mfrac^:math:|", ":math:mi^:math:|", ":math:mmultiscripts^:math:|", ":math:mn^:math:|", ":math:mo^:math:|", ":math:mover^:math:|", ":math:mpadded^:math:|", ":math:mphantom^:math:|", ":math:mroot^:math:|", ":math:mrow^:math:|", ":math:ms^:math:|", ":math:mspace^:math:|", ":math:msqrt^:math:|", ":math:mstyle^:math:|", ":math:msub^:math:|", ":math:msubsup^:math:|", ":math:msup^:math:|", ":math:mtable^:math:|", ":math:mtd^:math:|", ":math:mtext^:math:|", ":math:mtr^:math:|", ":math:munder^:math:|", ":math:munderover^:math:|", ":math:semantics^:math:|"], yu = new Map(Object.entries({ class: "className", for: "htmlFor", formaction: "formAction", innerHtml: "innerHTML", readonly: "readOnly", tabindex: "tabIndex", "aria-activedescendant": "ariaActiveDescendantElement", "aria-atomic": "ariaAtomic", "aria-autocomplete": "ariaAutoComplete", "aria-busy": "ariaBusy", "aria-checked": "ariaChecked", "aria-colcount": "ariaColCount", "aria-colindex": "ariaColIndex", "aria-colindextext": "ariaColIndexText", "aria-colspan": "ariaColSpan", "aria-controls": "ariaControlsElements", "aria-current": "ariaCurrent", "aria-describedby": "ariaDescribedByElements", "aria-description": "ariaDescription", "aria-details": "ariaDetailsElements", "aria-disabled": "ariaDisabled", "aria-errormessage": "ariaErrorMessageElements", "aria-expanded": "ariaExpanded", "aria-flowto": "ariaFlowToElements", "aria-haspopup": "ariaHasPopup", "aria-hidden": "ariaHidden", "aria-invalid": "ariaInvalid", "aria-keyshortcuts": "ariaKeyShortcuts", "aria-label": "ariaLabel", "aria-labelledby": "ariaLabelledByElements", "aria-level": "ariaLevel", "aria-live": "ariaLive", "aria-modal": "ariaModal", "aria-multiline": "ariaMultiLine", "aria-multiselectable": "ariaMultiSelectable", "aria-orientation": "ariaOrientation", "aria-owns": "ariaOwnsElements", "aria-placeholder": "ariaPlaceholder", "aria-posinset": "ariaPosInSet", "aria-pressed": "ariaPressed", "aria-readonly": "ariaReadOnly", "aria-required": "ariaRequired", "aria-roledescription": "ariaRoleDescription", "aria-rowcount": "ariaRowCount", "aria-rowindex": "ariaRowIndex", "aria-rowindextext": "ariaRowIndexText", "aria-rowspan": "ariaRowSpan", "aria-selected": "ariaSelected", "aria-setsize": "ariaSetSize", "aria-sort": "ariaSort", "aria-valuemax": "ariaValueMax", "aria-valuemin": "ariaValueMin", "aria-valuenow": "ariaValueNow", "aria-valuetext": "ariaValueText" })), El = Array.from(yu).reduce((e, [r, u]) => (e.set(r, u), e), /* @__PURE__ */ new Map()), Fl = class extends hl {
|
|
3469
|
+
_schema = /* @__PURE__ */ new Map();
|
|
3470
|
+
_eventSchema = /* @__PURE__ */ new Map();
|
|
3468
3471
|
constructor() {
|
|
3469
|
-
super(),
|
|
3472
|
+
super(), Cl.forEach((e) => {
|
|
3470
3473
|
let r = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set(), [a, o] = e.split("|"), p = o.split(","), [f, g] = a.split("^");
|
|
3471
3474
|
f.split(",").forEach((S) => {
|
|
3472
3475
|
this._schema.set(S.toLowerCase(), r), this._eventSchema.set(S.toLowerCase(), u);
|
|
@@ -3482,16 +3485,16 @@ ${e}`, tl = /* @__PURE__ */ new Map([["if", /* @__PURE__ */ new Set(["else if",
|
|
|
3482
3485
|
u.add(S.substring(1));
|
|
3483
3486
|
break;
|
|
3484
3487
|
case "!":
|
|
3485
|
-
r.set(S.substring(1),
|
|
3488
|
+
r.set(S.substring(1), Dl);
|
|
3486
3489
|
break;
|
|
3487
3490
|
case "#":
|
|
3488
|
-
r.set(S.substring(1),
|
|
3491
|
+
r.set(S.substring(1), fl);
|
|
3489
3492
|
break;
|
|
3490
3493
|
case "%":
|
|
3491
|
-
r.set(S.substring(1),
|
|
3494
|
+
r.set(S.substring(1), gl);
|
|
3492
3495
|
break;
|
|
3493
3496
|
default:
|
|
3494
|
-
r.set(S,
|
|
3497
|
+
r.set(S, ml);
|
|
3495
3498
|
}
|
|
3496
3499
|
});
|
|
3497
3500
|
});
|
|
@@ -3530,17 +3533,17 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3530
3533
|
}
|
|
3531
3534
|
allKnownAttributesOfElement(e) {
|
|
3532
3535
|
let r = this._schema.get(e.toLowerCase()) || this._schema.get("unknown");
|
|
3533
|
-
return Array.from(r.keys()).map((u) =>
|
|
3536
|
+
return Array.from(r.keys()).map((u) => El.get(u) ?? u);
|
|
3534
3537
|
}
|
|
3535
3538
|
allKnownEventsOfElement(e) {
|
|
3536
3539
|
return Array.from(this._eventSchema.get(e.toLowerCase()) ?? []);
|
|
3537
3540
|
}
|
|
3538
3541
|
normalizeAnimationStyleProperty(e) {
|
|
3539
|
-
return
|
|
3542
|
+
return dl(e);
|
|
3540
3543
|
}
|
|
3541
3544
|
normalizeAnimationStyleValue(e, r, u) {
|
|
3542
3545
|
let a = "", o = u.toString().trim(), p = null;
|
|
3543
|
-
if (
|
|
3546
|
+
if (vl(e) && u !== 0 && u !== "0") if (typeof u == "number") a = "px";
|
|
3544
3547
|
else {
|
|
3545
3548
|
let f = u.match(/^[+-]?[\d\.]+([a-z]*)$/);
|
|
3546
3549
|
f && f[1].length == 0 && (p = `Please provide a CSS unit value for ${r}:${u}`);
|
|
@@ -3548,7 +3551,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3548
3551
|
return { error: p, value: o + a };
|
|
3549
3552
|
}
|
|
3550
3553
|
};
|
|
3551
|
-
function
|
|
3554
|
+
function vl(e) {
|
|
3552
3555
|
switch (e) {
|
|
3553
3556
|
case "width":
|
|
3554
3557
|
case "height":
|
|
@@ -3584,8 +3587,16 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3584
3587
|
}
|
|
3585
3588
|
}
|
|
3586
3589
|
var q = class {
|
|
3590
|
+
closedByChildren = {};
|
|
3591
|
+
contentType;
|
|
3592
|
+
closedByParent = !1;
|
|
3593
|
+
implicitNamespacePrefix;
|
|
3594
|
+
isVoid;
|
|
3595
|
+
ignoreFirstLf;
|
|
3596
|
+
canSelfClose;
|
|
3597
|
+
preventNamespaceInheritance;
|
|
3587
3598
|
constructor({ closedByChildren: e, implicitNamespacePrefix: r, contentType: u = be.PARSABLE_DATA, closedByParent: a = !1, isVoid: o = !1, ignoreFirstLf: p = !1, preventNamespaceInheritance: f = !1, canSelfClose: g = !1 } = {}) {
|
|
3588
|
-
|
|
3599
|
+
e && e.length > 0 && e.forEach((y) => this.closedByChildren[y] = !0), this.isVoid = o, this.closedByParent = a || o, this.implicitNamespacePrefix = r || null, this.contentType = u, this.ignoreFirstLf = p, this.preventNamespaceInheritance = f, this.canSelfClose = g ?? o;
|
|
3589
3600
|
}
|
|
3590
3601
|
isClosedByChild(e) {
|
|
3591
3602
|
return this.isVoid || e.toLowerCase() in this.closedByChildren;
|
|
@@ -3595,32 +3606,11 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3595
3606
|
}
|
|
3596
3607
|
}, Au, Rt;
|
|
3597
3608
|
function qr(e) {
|
|
3598
|
-
return Rt || (Au = new q({ canSelfClose: !0 }), Rt = Object.assign(/* @__PURE__ */ Object.create(null), { base: new q({ isVoid: !0 }), meta: new q({ isVoid: !0 }), area: new q({ isVoid: !0 }), embed: new q({ isVoid: !0 }), link: new q({ isVoid: !0 }), img: new q({ isVoid: !0 }), input: new q({ isVoid: !0 }), param: new q({ isVoid: !0 }), hr: new q({ isVoid: !0 }), br: new q({ isVoid: !0 }), source: new q({ isVoid: !0 }), track: new q({ isVoid: !0 }), wbr: new q({ isVoid: !0 }), p: new q({ closedByChildren: ["address", "article", "aside", "blockquote", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "main", "nav", "ol", "p", "pre", "section", "table", "ul"], closedByParent: !0 }), thead: new q({ closedByChildren: ["tbody", "tfoot"] }), tbody: new q({ closedByChildren: ["tbody", "tfoot"], closedByParent: !0 }), tfoot: new q({ closedByChildren: ["tbody"], closedByParent: !0 }), tr: new q({ closedByChildren: ["tr"], closedByParent: !0 }), td: new q({ closedByChildren: ["td", "th"], closedByParent: !0 }), th: new q({ closedByChildren: ["td", "th"], closedByParent: !0 }), col: new q({ isVoid: !0 }), svg: new q({ implicitNamespacePrefix: "svg" }), foreignObject: new q({ implicitNamespacePrefix: "svg", preventNamespaceInheritance: !0 }), math: new q({ implicitNamespacePrefix: "math" }), li: new q({ closedByChildren: ["li"], closedByParent: !0 }), dt: new q({ closedByChildren: ["dt", "dd"] }), dd: new q({ closedByChildren: ["dt", "dd"], closedByParent: !0 }), rb: new q({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rt: new q({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rtc: new q({ closedByChildren: ["rb", "rtc", "rp"], closedByParent: !0 }), rp: new q({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), optgroup: new q({ closedByChildren: ["optgroup"], closedByParent: !0 }), option: new q({ closedByChildren: ["option", "optgroup"], closedByParent: !0 }), pre: new q({ ignoreFirstLf: !0 }), listing: new q({ ignoreFirstLf: !0 }), style: new q({ contentType: be.RAW_TEXT }), script: new q({ contentType: be.RAW_TEXT }), title: new q({ contentType: { default: be.ESCAPABLE_RAW_TEXT, svg: be.PARSABLE_DATA } }), textarea: new q({ contentType: be.ESCAPABLE_RAW_TEXT, ignoreFirstLf: !0 }) }), new
|
|
3599
|
-
!Rt[r] &&
|
|
3609
|
+
return Rt || (Au = new q({ canSelfClose: !0 }), Rt = Object.assign(/* @__PURE__ */ Object.create(null), { base: new q({ isVoid: !0 }), meta: new q({ isVoid: !0 }), area: new q({ isVoid: !0 }), embed: new q({ isVoid: !0 }), link: new q({ isVoid: !0 }), img: new q({ isVoid: !0 }), input: new q({ isVoid: !0 }), param: new q({ isVoid: !0 }), hr: new q({ isVoid: !0 }), br: new q({ isVoid: !0 }), source: new q({ isVoid: !0 }), track: new q({ isVoid: !0 }), wbr: new q({ isVoid: !0 }), p: new q({ closedByChildren: ["address", "article", "aside", "blockquote", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "main", "nav", "ol", "p", "pre", "section", "table", "ul"], closedByParent: !0 }), thead: new q({ closedByChildren: ["tbody", "tfoot"] }), tbody: new q({ closedByChildren: ["tbody", "tfoot"], closedByParent: !0 }), tfoot: new q({ closedByChildren: ["tbody"], closedByParent: !0 }), tr: new q({ closedByChildren: ["tr"], closedByParent: !0 }), td: new q({ closedByChildren: ["td", "th"], closedByParent: !0 }), th: new q({ closedByChildren: ["td", "th"], closedByParent: !0 }), col: new q({ isVoid: !0 }), svg: new q({ implicitNamespacePrefix: "svg" }), foreignObject: new q({ implicitNamespacePrefix: "svg", preventNamespaceInheritance: !0 }), math: new q({ implicitNamespacePrefix: "math" }), li: new q({ closedByChildren: ["li"], closedByParent: !0 }), dt: new q({ closedByChildren: ["dt", "dd"] }), dd: new q({ closedByChildren: ["dt", "dd"], closedByParent: !0 }), rb: new q({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rt: new q({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rtc: new q({ closedByChildren: ["rb", "rtc", "rp"], closedByParent: !0 }), rp: new q({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), optgroup: new q({ closedByChildren: ["optgroup"], closedByParent: !0 }), option: new q({ closedByChildren: ["option", "optgroup"], closedByParent: !0 }), pre: new q({ ignoreFirstLf: !0 }), listing: new q({ ignoreFirstLf: !0 }), style: new q({ contentType: be.RAW_TEXT }), script: new q({ contentType: be.RAW_TEXT }), title: new q({ contentType: { default: be.ESCAPABLE_RAW_TEXT, svg: be.PARSABLE_DATA } }), textarea: new q({ contentType: be.ESCAPABLE_RAW_TEXT, ignoreFirstLf: !0 }) }), new Fl().allKnownElementNames().forEach((r) => {
|
|
3610
|
+
!Rt[r] && sr(r) === null && (Rt[r] = new q({ canSelfClose: !1 }));
|
|
3600
3611
|
})), Rt[e] ?? Au;
|
|
3601
3612
|
}
|
|
3602
|
-
|
|
3603
|
-
return e >= 9 && e <= 32 || e == 160;
|
|
3604
|
-
}
|
|
3605
|
-
function or(e) {
|
|
3606
|
-
return 48 <= e && e <= 57;
|
|
3607
|
-
}
|
|
3608
|
-
function Mt(e) {
|
|
3609
|
-
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3610
|
-
}
|
|
3611
|
-
function vl(e) {
|
|
3612
|
-
return e >= 97 && e <= 102 || e >= 65 && e <= 70 || or(e);
|
|
3613
|
-
}
|
|
3614
|
-
function lr(e) {
|
|
3615
|
-
return e === 10 || e === 13;
|
|
3616
|
-
}
|
|
3617
|
-
function Su(e) {
|
|
3618
|
-
return 48 <= e && e <= 55;
|
|
3619
|
-
}
|
|
3620
|
-
function Vr(e) {
|
|
3621
|
-
return e === 39 || e === 34 || e === 96;
|
|
3622
|
-
}
|
|
3623
|
-
var jr = class _i {
|
|
3613
|
+
var Vr = class _i {
|
|
3624
3614
|
constructor(r, u, a, o) {
|
|
3625
3615
|
this.file = r, this.offset = u, this.line = a, this.col = o;
|
|
3626
3616
|
}
|
|
@@ -3654,7 +3644,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3654
3644
|
}
|
|
3655
3645
|
return null;
|
|
3656
3646
|
}
|
|
3657
|
-
},
|
|
3647
|
+
}, Su = class {
|
|
3658
3648
|
constructor(e, r) {
|
|
3659
3649
|
this.content = e, this.url = r;
|
|
3660
3650
|
}
|
|
@@ -3665,15 +3655,15 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3665
3655
|
toString() {
|
|
3666
3656
|
return this.start.file.content.substring(this.start.offset, this.end.offset);
|
|
3667
3657
|
}
|
|
3668
|
-
},
|
|
3658
|
+
}, bu = (function(e) {
|
|
3669
3659
|
return e[e.WARNING = 0] = "WARNING", e[e.ERROR = 1] = "ERROR", e;
|
|
3670
3660
|
})({}), pt = class extends Error {
|
|
3671
|
-
constructor(e, r, u =
|
|
3661
|
+
constructor(e, r, u = bu.ERROR, a) {
|
|
3672
3662
|
super(r), this.span = e, this.msg = r, this.level = u, this.relatedError = a, Object.setPrototypeOf(this, new.target.prototype);
|
|
3673
3663
|
}
|
|
3674
3664
|
contextualMessage() {
|
|
3675
3665
|
let e = this.span.start.getContext(100, 3);
|
|
3676
|
-
return e ? `${this.msg} ("${e.before}[${
|
|
3666
|
+
return e ? `${this.msg} ("${e.before}[${bu[this.level]} ->]${e.after}")` : this.msg;
|
|
3677
3667
|
}
|
|
3678
3668
|
toString() {
|
|
3679
3669
|
let e = this.span.details ? `, ${this.span.details}` : "";
|
|
@@ -3685,100 +3675,117 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3685
3675
|
}
|
|
3686
3676
|
}, _l = class extends Xe {
|
|
3687
3677
|
constructor(e, r, u, a) {
|
|
3688
|
-
super(r, a), this.value = e, this.tokens = u
|
|
3678
|
+
super(r, a), this.value = e, this.tokens = u;
|
|
3689
3679
|
}
|
|
3690
3680
|
visit(e, r) {
|
|
3691
3681
|
return e.visitText(this, r);
|
|
3692
3682
|
}
|
|
3683
|
+
kind = "text";
|
|
3693
3684
|
}, yl = class extends Xe {
|
|
3694
3685
|
constructor(e, r, u, a) {
|
|
3695
|
-
super(r, a), this.value = e, this.tokens = u
|
|
3686
|
+
super(r, a), this.value = e, this.tokens = u;
|
|
3696
3687
|
}
|
|
3697
3688
|
visit(e, r) {
|
|
3698
3689
|
return e.visitCdata(this, r);
|
|
3699
3690
|
}
|
|
3691
|
+
kind = "cdata";
|
|
3700
3692
|
}, Al = class extends Xe {
|
|
3701
3693
|
constructor(e, r, u, a, o, p) {
|
|
3702
|
-
super(a, p), this.switchValue = e, this.type = r, this.cases = u, this.switchValueSourceSpan = o
|
|
3694
|
+
super(a, p), this.switchValue = e, this.type = r, this.cases = u, this.switchValueSourceSpan = o;
|
|
3703
3695
|
}
|
|
3704
3696
|
visit(e, r) {
|
|
3705
3697
|
return e.visitExpansion(this, r);
|
|
3706
3698
|
}
|
|
3699
|
+
kind = "expansion";
|
|
3707
3700
|
}, Sl = class {
|
|
3708
3701
|
constructor(e, r, u, a, o) {
|
|
3709
|
-
this.value = e, this.expression = r, this.sourceSpan = u, this.valueSourceSpan = a, this.expSourceSpan = o
|
|
3702
|
+
this.value = e, this.expression = r, this.sourceSpan = u, this.valueSourceSpan = a, this.expSourceSpan = o;
|
|
3710
3703
|
}
|
|
3711
3704
|
visit(e, r) {
|
|
3712
3705
|
return e.visitExpansionCase(this, r);
|
|
3713
3706
|
}
|
|
3707
|
+
kind = "expansionCase";
|
|
3714
3708
|
}, bl = class extends Xe {
|
|
3715
3709
|
constructor(e, r, u, a, o, p, f) {
|
|
3716
|
-
super(u, f), this.name = e, this.value = r, this.keySpan = a, this.valueSpan = o, this.valueTokens = p
|
|
3710
|
+
super(u, f), this.name = e, this.value = r, this.keySpan = a, this.valueSpan = o, this.valueTokens = p;
|
|
3717
3711
|
}
|
|
3718
3712
|
visit(e, r) {
|
|
3719
3713
|
return e.visitAttribute(this, r);
|
|
3720
3714
|
}
|
|
3715
|
+
kind = "attribute";
|
|
3721
3716
|
get nameSpan() {
|
|
3722
3717
|
return this.keySpan;
|
|
3723
3718
|
}
|
|
3724
3719
|
}, Ge = class extends Xe {
|
|
3725
3720
|
constructor(e, r, u, a, o, p, f, g = null, y = null, S, T) {
|
|
3726
|
-
super(p, T), this.name = e, this.attrs = r, this.directives = u, this.children = a, this.isSelfClosing = o, this.startSourceSpan = f, this.endSourceSpan = g, this.nameSpan = y, this.isVoid = S
|
|
3721
|
+
super(p, T), this.name = e, this.attrs = r, this.directives = u, this.children = a, this.isSelfClosing = o, this.startSourceSpan = f, this.endSourceSpan = g, this.nameSpan = y, this.isVoid = S;
|
|
3727
3722
|
}
|
|
3728
3723
|
visit(e, r) {
|
|
3729
3724
|
return e.visitElement(this, r);
|
|
3730
3725
|
}
|
|
3726
|
+
kind = "element";
|
|
3731
3727
|
}, kl = class {
|
|
3732
3728
|
constructor(e, r) {
|
|
3733
|
-
this.value = e, this.sourceSpan = r
|
|
3729
|
+
this.value = e, this.sourceSpan = r;
|
|
3734
3730
|
}
|
|
3735
3731
|
visit(e, r) {
|
|
3736
3732
|
return e.visitComment(this, r);
|
|
3737
3733
|
}
|
|
3734
|
+
kind = "comment";
|
|
3738
3735
|
}, wl = class {
|
|
3739
3736
|
constructor(e, r) {
|
|
3740
|
-
this.value = e, this.sourceSpan = r
|
|
3737
|
+
this.value = e, this.sourceSpan = r;
|
|
3741
3738
|
}
|
|
3742
3739
|
visit(e, r) {
|
|
3743
3740
|
return e.visitDocType(this, r);
|
|
3744
3741
|
}
|
|
3742
|
+
kind = "docType";
|
|
3745
3743
|
}, dt = class extends Xe {
|
|
3746
3744
|
constructor(e, r, u, a, o, p, f = null, g) {
|
|
3747
|
-
super(a, g), this.name = e, this.parameters = r, this.children = u, this.nameSpan = o, this.startSourceSpan = p, this.endSourceSpan = f
|
|
3745
|
+
super(a, g), this.name = e, this.parameters = r, this.children = u, this.nameSpan = o, this.startSourceSpan = p, this.endSourceSpan = f;
|
|
3748
3746
|
}
|
|
3749
3747
|
visit(e, r) {
|
|
3750
3748
|
return e.visitBlock(this, r);
|
|
3751
3749
|
}
|
|
3752
|
-
|
|
3750
|
+
kind = "block";
|
|
3751
|
+
}, ke = class extends Xe {
|
|
3753
3752
|
constructor(e, r, u, a, o, p, f, g, y, S = null, T) {
|
|
3754
|
-
super(g, T), this.componentName = e, this.tagName = r, this.fullName = u, this.attrs = a, this.directives = o, this.children = p, this.isSelfClosing = f, this.startSourceSpan = y, this.endSourceSpan = S
|
|
3753
|
+
super(g, T), this.componentName = e, this.tagName = r, this.fullName = u, this.attrs = a, this.directives = o, this.children = p, this.isSelfClosing = f, this.startSourceSpan = y, this.endSourceSpan = S;
|
|
3755
3754
|
}
|
|
3756
3755
|
visit(e, r) {
|
|
3757
3756
|
return e.visitComponent(this, r);
|
|
3758
3757
|
}
|
|
3758
|
+
kind = "component";
|
|
3759
3759
|
}, Tl = class {
|
|
3760
3760
|
constructor(e, r, u, a, o = null) {
|
|
3761
|
-
this.name = e, this.attrs = r, this.sourceSpan = u, this.startSourceSpan = a, this.endSourceSpan = o
|
|
3761
|
+
this.name = e, this.attrs = r, this.sourceSpan = u, this.startSourceSpan = a, this.endSourceSpan = o;
|
|
3762
3762
|
}
|
|
3763
3763
|
visit(e, r) {
|
|
3764
3764
|
return e.visitDirective(this, r);
|
|
3765
3765
|
}
|
|
3766
|
-
|
|
3766
|
+
kind = "directive";
|
|
3767
|
+
}, ku = class {
|
|
3767
3768
|
constructor(e, r) {
|
|
3768
|
-
this.expression = e, this.sourceSpan = r
|
|
3769
|
+
this.expression = e, this.sourceSpan = r;
|
|
3769
3770
|
}
|
|
3770
3771
|
visit(e, r) {
|
|
3771
3772
|
return e.visitBlockParameter(this, r);
|
|
3772
3773
|
}
|
|
3773
|
-
|
|
3774
|
+
kind = "blockParameter";
|
|
3775
|
+
startSourceSpan = null;
|
|
3776
|
+
endSourceSpan = null;
|
|
3777
|
+
}, wu = class {
|
|
3774
3778
|
constructor(e, r, u, a, o) {
|
|
3775
|
-
this.name = e, this.value = r, this.sourceSpan = u, this.nameSpan = a, this.valueSpan = o
|
|
3779
|
+
this.name = e, this.value = r, this.sourceSpan = u, this.nameSpan = a, this.valueSpan = o;
|
|
3776
3780
|
}
|
|
3777
3781
|
visit(e, r) {
|
|
3778
3782
|
return e.visitLetDeclaration(this, r);
|
|
3779
3783
|
}
|
|
3784
|
+
kind = "letDeclaration";
|
|
3785
|
+
startSourceSpan = null;
|
|
3786
|
+
endSourceSpan = null;
|
|
3780
3787
|
};
|
|
3781
|
-
function
|
|
3788
|
+
function Tu(e, r, u = null) {
|
|
3782
3789
|
let a = [], o = e.visit ? (p) => e.visit(p, u) || p.visit(e, u) : (p) => p.visit(e, u);
|
|
3783
3790
|
return r.forEach((p) => {
|
|
3784
3791
|
let f = o(p);
|
|
@@ -3832,22 +3839,44 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3832
3839
|
visitChildren(e, r) {
|
|
3833
3840
|
let u = [], a = this;
|
|
3834
3841
|
function o(p) {
|
|
3835
|
-
p && u.push(
|
|
3842
|
+
p && u.push(Tu(a, p, e));
|
|
3836
3843
|
}
|
|
3837
3844
|
return r(o), Array.prototype.concat.apply([], u);
|
|
3838
3845
|
}
|
|
3839
|
-
},
|
|
3840
|
-
`, Nfr: "𝔑", NoBreak: "", NonBreakingSpace: " ", nbsp: " ", Nopf: "ℕ", naturals: "ℕ", Not: "⫬", NotCongruent: "≢", nequiv: "≢", NotCupCap: "≭", NotDoubleVerticalBar: "∦", npar: "∦", nparallel: "∦", nshortparallel: "∦", nspar: "∦", NotElement: "∉", notin: "∉", notinva: "∉", NotEqual: "≠", ne: "≠", NotEqualTilde: "≂̸", nesim: "≂̸", NotExists: "∄", nexist: "∄", nexists: "∄", NotGreater: "≯", ngt: "≯", ngtr: "≯", NotGreaterEqual: "≱", nge: "≱", ngeq: "≱", NotGreaterFullEqual: "≧̸", ngE: "≧̸", ngeqq: "≧̸", NotGreaterGreater: "≫̸", nGtv: "≫̸", NotGreaterLess: "≹", ntgl: "≹", NotGreaterSlantEqual: "⩾̸", ngeqslant: "⩾̸", nges: "⩾̸", NotGreaterTilde: "≵", ngsim: "≵", NotHumpDownHump: "≎̸", nbump: "≎̸", NotHumpEqual: "≏̸", nbumpe: "≏̸", NotLeftTriangle: "⋪", nltri: "⋪", ntriangleleft: "⋪", NotLeftTriangleBar: "⧏̸", NotLeftTriangleEqual: "⋬", nltrie: "⋬", ntrianglelefteq: "⋬", NotLess: "≮", nless: "≮", nlt: "≮", NotLessEqual: "≰", nle: "≰", nleq: "≰", NotLessGreater: "≸", ntlg: "≸", NotLessLess: "≪̸", nLtv: "≪̸", NotLessSlantEqual: "⩽̸", nleqslant: "⩽̸", nles: "⩽̸", NotLessTilde: "≴", nlsim: "≴", NotNestedGreaterGreater: "⪢̸", NotNestedLessLess: "⪡̸", NotPrecedes: "⊀", npr: "⊀", nprec: "⊀", NotPrecedesEqual: "⪯̸", npre: "⪯̸", npreceq: "⪯̸", NotPrecedesSlantEqual: "⋠", nprcue: "⋠", NotReverseElement: "∌", notni: "∌", notniva: "∌", NotRightTriangle: "⋫", nrtri: "⋫", ntriangleright: "⋫", NotRightTriangleBar: "⧐̸", NotRightTriangleEqual: "⋭", nrtrie: "⋭", ntrianglerighteq: "⋭", NotSquareSubset: "⊏̸", NotSquareSubsetEqual: "⋢", nsqsube: "⋢", NotSquareSuperset: "⊐̸", NotSquareSupersetEqual: "⋣", nsqsupe: "⋣", NotSubset: "⊂⃒", nsubset: "⊂⃒", vnsub: "⊂⃒", NotSubsetEqual: "⊈", nsube: "⊈", nsubseteq: "⊈", NotSucceeds: "⊁", nsc: "⊁", nsucc: "⊁", NotSucceedsEqual: "⪰̸", nsce: "⪰̸", nsucceq: "⪰̸", NotSucceedsSlantEqual: "⋡", nsccue: "⋡", NotSucceedsTilde: "≿̸", NotSuperset: "⊃⃒", nsupset: "⊃⃒", vnsup: "⊃⃒", NotSupersetEqual: "⊉", nsupe: "⊉", nsupseteq: "⊉", NotTilde: "≁", nsim: "≁", NotTildeEqual: "≄", nsime: "≄", nsimeq: "≄", NotTildeFullEqual: "≇", ncong: "≇", NotTildeTilde: "≉", nap: "≉", napprox: "≉", NotVerticalBar: "∤", nmid: "∤", nshortmid: "∤", nsmid: "∤", Nscr: "𝒩", Ntilde: "Ñ", Nu: "Ν", OElig: "Œ", Oacute: "Ó", Ocirc: "Ô", Ocy: "О", Odblac: "Ő", Ofr: "𝔒", Ograve: "Ò", Omacr: "Ō", Omega: "Ω", ohm: "Ω", Omicron: "Ο", Oopf: "𝕆", OpenCurlyDoubleQuote: "“", ldquo: "“", OpenCurlyQuote: "‘", lsquo: "‘", Or: "⩔", Oscr: "𝒪", Oslash: "Ø", Otilde: "Õ", Otimes: "⨷", Ouml: "Ö", OverBar: "‾", oline: "‾", OverBrace: "⏞", OverBracket: "⎴", tbrk: "⎴", OverParenthesis: "⏜", PartialD: "∂", part: "∂", Pcy: "П", Pfr: "𝔓", Phi: "Φ", Pi: "Π", PlusMinus: "±", plusmn: "±", pm: "±", Popf: "ℙ", primes: "ℙ", Pr: "⪻", Precedes: "≺", pr: "≺", prec: "≺", PrecedesEqual: "⪯", pre: "⪯", preceq: "⪯", PrecedesSlantEqual: "≼", prcue: "≼", preccurlyeq: "≼", PrecedesTilde: "≾", precsim: "≾", prsim: "≾", Prime: "″", Product: "∏", prod: "∏", Proportional: "∝", prop: "∝", propto: "∝", varpropto: "∝", vprop: "∝", Pscr: "𝒫", Psi: "Ψ", QUOT: '"', quot: '"', Qfr: "𝔔", Qopf: "ℚ", rationals: "ℚ", Qscr: "𝒬", RBarr: "⤐", drbkarow: "⤐", REG: "®", circledR: "®", reg: "®", Racute: "Ŕ", Rang: "⟫", Rarr: "↠", twoheadrightarrow: "↠", Rarrtl: "⤖", Rcaron: "Ř", Rcedil: "Ŗ", Rcy: "Р", Re: "ℜ", Rfr: "ℜ", real: "ℜ", realpart: "ℜ", ReverseElement: "∋", SuchThat: "∋", ni: "∋", niv: "∋", ReverseEquilibrium: "⇋", leftrightharpoons: "⇋", lrhar: "⇋", ReverseUpEquilibrium: "⥯", duhar: "⥯", Rho: "Ρ", RightAngleBracket: "⟩", rang: "⟩", rangle: "⟩", RightArrow: "→", ShortRightArrow: "→", rarr: "→", rightarrow: "→", srarr: "→", RightArrowBar: "⇥", rarrb: "⇥", RightArrowLeftArrow: "⇄", rightleftarrows: "⇄", rlarr: "⇄", RightCeiling: "⌉", rceil: "⌉", RightDoubleBracket: "⟧", robrk: "⟧", RightDownTeeVector: "⥝", RightDownVector: "⇂", dharr: "⇂", downharpoonright: "⇂", RightDownVectorBar: "⥕", RightFloor: "⌋", rfloor: "⌋", RightTee: "⊢", vdash: "⊢", RightTeeArrow: "↦", map: "↦", mapsto: "↦", RightTeeVector: "⥛", RightTriangle: "⊳", vartriangleright: "⊳", vrtri: "⊳", RightTriangleBar: "⧐", RightTriangleEqual: "⊵", rtrie: "⊵", trianglerighteq: "⊵", RightUpDownVector: "⥏", RightUpTeeVector: "⥜", RightUpVector: "↾", uharr: "↾", upharpoonright: "↾", RightUpVectorBar: "⥔", RightVector: "⇀", rharu: "⇀", rightharpoonup: "⇀", RightVectorBar: "⥓", Ropf: "ℝ", reals: "ℝ", RoundImplies: "⥰", Rrightarrow: "⇛", rAarr: "⇛", Rscr: "ℛ", realine: "ℛ", Rsh: "↱", rsh: "↱", RuleDelayed: "⧴", SHCHcy: "Щ", SHcy: "Ш", SOFTcy: "Ь", Sacute: "Ś", Sc: "⪼", Scaron: "Š", Scedil: "Ş", Scirc: "Ŝ", Scy: "С", Sfr: "𝔖", ShortUpArrow: "↑", UpArrow: "↑", uarr: "↑", uparrow: "↑", Sigma: "Σ", SmallCircle: "∘", compfn: "∘", Sopf: "𝕊", Sqrt: "√", radic: "√", Square: "□", squ: "□", square: "□", SquareIntersection: "⊓", sqcap: "⊓", SquareSubset: "⊏", sqsub: "⊏", sqsubset: "⊏", SquareSubsetEqual: "⊑", sqsube: "⊑", sqsubseteq: "⊑", SquareSuperset: "⊐", sqsup: "⊐", sqsupset: "⊐", SquareSupersetEqual: "⊒", sqsupe: "⊒", sqsupseteq: "⊒", SquareUnion: "⊔", sqcup: "⊔", Sscr: "𝒮", Star: "⋆", sstarf: "⋆", Sub: "⋐", Subset: "⋐", SubsetEqual: "⊆", sube: "⊆", subseteq: "⊆", Succeeds: "≻", sc: "≻", succ: "≻", SucceedsEqual: "⪰", sce: "⪰", succeq: "⪰", SucceedsSlantEqual: "≽", sccue: "≽", succcurlyeq: "≽", SucceedsTilde: "≿", scsim: "≿", succsim: "≿", Sum: "∑", sum: "∑", Sup: "⋑", Supset: "⋑", Superset: "⊃", sup: "⊃", supset: "⊃", SupersetEqual: "⊇", supe: "⊇", supseteq: "⊇", THORN: "Þ", TRADE: "™", trade: "™", TSHcy: "Ћ", TScy: "Ц", Tab: " ", Tau: "Τ", Tcaron: "Ť", Tcedil: "Ţ", Tcy: "Т", Tfr: "𝔗", Therefore: "∴", there4: "∴", therefore: "∴", Theta: "Θ", ThickSpace: " ", ThinSpace: " ", thinsp: " ", Tilde: "∼", sim: "∼", thicksim: "∼", thksim: "∼", TildeEqual: "≃", sime: "≃", simeq: "≃", TildeFullEqual: "≅", cong: "≅", TildeTilde: "≈", ap: "≈", approx: "≈", asymp: "≈", thickapprox: "≈", thkap: "≈", Topf: "𝕋", TripleDot: "⃛", tdot: "⃛", Tscr: "𝒯", Tstrok: "Ŧ", Uacute: "Ú", Uarr: "↟", Uarrocir: "⥉", Ubrcy: "Ў", Ubreve: "Ŭ", Ucirc: "Û", Ucy: "У", Udblac: "Ű", Ufr: "𝔘", Ugrave: "Ù", Umacr: "Ū", UnderBar: "_", lowbar: "_", UnderBrace: "⏟", UnderBracket: "⎵", bbrk: "⎵", UnderParenthesis: "⏝", Union: "⋃", bigcup: "⋃", xcup: "⋃", UnionPlus: "⊎", uplus: "⊎", Uogon: "Ų", Uopf: "𝕌", UpArrowBar: "⤒", UpArrowDownArrow: "⇅", udarr: "⇅", UpDownArrow: "↕", updownarrow: "↕", varr: "↕", UpEquilibrium: "⥮", udhar: "⥮", UpTee: "⊥", bot: "⊥", bottom: "⊥", perp: "⊥", UpTeeArrow: "↥", mapstoup: "↥", UpperLeftArrow: "↖", nwarr: "↖", nwarrow: "↖", UpperRightArrow: "↗", nearr: "↗", nearrow: "↗", Upsi: "ϒ", upsih: "ϒ", Upsilon: "Υ", Uring: "Ů", Uscr: "𝒰", Utilde: "Ũ", Uuml: "Ü", VDash: "⊫", Vbar: "⫫", Vcy: "В", Vdash: "⊩", Vdashl: "⫦", Vee: "⋁", bigvee: "⋁", xvee: "⋁", Verbar: "‖", Vert: "‖", VerticalBar: "∣", mid: "∣", shortmid: "∣", smid: "∣", VerticalLine: "|", verbar: "|", vert: "|", VerticalSeparator: "❘", VerticalTilde: "≀", wr: "≀", wreath: "≀", VeryThinSpace: " ", hairsp: " ", Vfr: "𝔙", Vopf: "𝕍", Vscr: "𝒱", Vvdash: "⊪", Wcirc: "Ŵ", Wedge: "⋀", bigwedge: "⋀", xwedge: "⋀", Wfr: "𝔚", Wopf: "𝕎", Wscr: "𝒲", Xfr: "𝔛", Xi: "Ξ", Xopf: "𝕏", Xscr: "𝒳", YAcy: "Я", YIcy: "Ї", YUcy: "Ю", Yacute: "Ý", Ycirc: "Ŷ", Ycy: "Ы", Yfr: "𝔜", Yopf: "𝕐", Yscr: "𝒴", Yuml: "Ÿ", ZHcy: "Ж", Zacute: "Ź", Zcaron: "Ž", Zcy: "З", Zdot: "Ż", Zeta: "Ζ", Zfr: "ℨ", zeetrf: "ℨ", Zopf: "ℤ", integers: "ℤ", Zscr: "𝒵", aacute: "á", abreve: "ă", ac: "∾", mstpos: "∾", acE: "∾̳", acd: "∿", acirc: "â", acy: "а", aelig: "æ", afr: "𝔞", agrave: "à", alefsym: "ℵ", aleph: "ℵ", alpha: "α", amacr: "ā", amalg: "⨿", and: "∧", wedge: "∧", andand: "⩕", andd: "⩜", andslope: "⩘", andv: "⩚", ang: "∠", angle: "∠", ange: "⦤", angmsd: "∡", measuredangle: "∡", angmsdaa: "⦨", angmsdab: "⦩", angmsdac: "⦪", angmsdad: "⦫", angmsdae: "⦬", angmsdaf: "⦭", angmsdag: "⦮", angmsdah: "⦯", angrt: "∟", angrtvb: "⊾", angrtvbd: "⦝", angsph: "∢", angzarr: "⍼", aogon: "ą", aopf: "𝕒", apE: "⩰", apacir: "⩯", ape: "≊", approxeq: "≊", apid: "≋", apos: "'", aring: "å", ascr: "𝒶", ast: "*", midast: "*", atilde: "ã", auml: "ä", awint: "⨑", bNot: "⫭", backcong: "≌", bcong: "≌", backepsilon: "϶", bepsi: "϶", backprime: "‵", bprime: "‵", backsim: "∽", bsim: "∽", backsimeq: "⋍", bsime: "⋍", barvee: "⊽", barwed: "⌅", barwedge: "⌅", bbrktbrk: "⎶", bcy: "б", bdquo: "„", ldquor: "„", bemptyv: "⦰", beta: "β", beth: "ℶ", between: "≬", twixt: "≬", bfr: "𝔟", bigcirc: "◯", xcirc: "◯", bigodot: "⨀", xodot: "⨀", bigoplus: "⨁", xoplus: "⨁", bigotimes: "⨂", xotime: "⨂", bigsqcup: "⨆", xsqcup: "⨆", bigstar: "★", starf: "★", bigtriangledown: "▽", xdtri: "▽", bigtriangleup: "△", xutri: "△", biguplus: "⨄", xuplus: "⨄", bkarow: "⤍", rbarr: "⤍", blacklozenge: "⧫", lozf: "⧫", blacktriangle: "▴", utrif: "▴", blacktriangledown: "▾", dtrif: "▾", blacktriangleleft: "◂", ltrif: "◂", blacktriangleright: "▸", rtrif: "▸", blank: "␣", blk12: "▒", blk14: "░", blk34: "▓", block: "█", bne: "=⃥", bnequiv: "≡⃥", bnot: "⌐", bopf: "𝕓", bowtie: "⋈", boxDL: "╗", boxDR: "╔", boxDl: "╖", boxDr: "╓", boxH: "═", boxHD: "╦", boxHU: "╩", boxHd: "╤", boxHu: "╧", boxUL: "╝", boxUR: "╚", boxUl: "╜", boxUr: "╙", boxV: "║", boxVH: "╬", boxVL: "╣", boxVR: "╠", boxVh: "╫", boxVl: "╢", boxVr: "╟", boxbox: "⧉", boxdL: "╕", boxdR: "╒", boxdl: "┐", boxdr: "┌", boxhD: "╥", boxhU: "╨", boxhd: "┬", boxhu: "┴", boxminus: "⊟", minusb: "⊟", boxplus: "⊞", plusb: "⊞", boxtimes: "⊠", timesb: "⊠", boxuL: "╛", boxuR: "╘", boxul: "┘", boxur: "└", boxv: "│", boxvH: "╪", boxvL: "╡", boxvR: "╞", boxvh: "┼", boxvl: "┤", boxvr: "├", brvbar: "¦", bscr: "𝒷", bsemi: "⁏", bsol: "\\", bsolb: "⧅", bsolhsub: "⟈", bull: "•", bullet: "•", bumpE: "⪮", cacute: "ć", cap: "∩", capand: "⩄", capbrcup: "⩉", capcap: "⩋", capcup: "⩇", capdot: "⩀", caps: "∩︀", caret: "⁁", ccaps: "⩍", ccaron: "č", ccedil: "ç", ccirc: "ĉ", ccups: "⩌", ccupssm: "⩐", cdot: "ċ", cemptyv: "⦲", cent: "¢", cfr: "𝔠", chcy: "ч", check: "✓", checkmark: "✓", chi: "χ", cir: "○", cirE: "⧃", circ: "ˆ", circeq: "≗", cire: "≗", circlearrowleft: "↺", olarr: "↺", circlearrowright: "↻", orarr: "↻", circledS: "Ⓢ", oS: "Ⓢ", circledast: "⊛", oast: "⊛", circledcirc: "⊚", ocir: "⊚", circleddash: "⊝", odash: "⊝", cirfnint: "⨐", cirmid: "⫯", cirscir: "⧂", clubs: "♣", clubsuit: "♣", colon: ":", comma: ",", commat: "@", comp: "∁", complement: "∁", congdot: "⩭", copf: "𝕔", copysr: "℗", crarr: "↵", cross: "✗", cscr: "𝒸", csub: "⫏", csube: "⫑", csup: "⫐", csupe: "⫒", ctdot: "⋯", cudarrl: "⤸", cudarrr: "⤵", cuepr: "⋞", curlyeqprec: "⋞", cuesc: "⋟", curlyeqsucc: "⋟", cularr: "↶", curvearrowleft: "↶", cularrp: "⤽", cup: "∪", cupbrcap: "⩈", cupcap: "⩆", cupcup: "⩊", cupdot: "⊍", cupor: "⩅", cups: "∪︀", curarr: "↷", curvearrowright: "↷", curarrm: "⤼", curlyvee: "⋎", cuvee: "⋎", curlywedge: "⋏", cuwed: "⋏", curren: "¤", cwint: "∱", cylcty: "⌭", dHar: "⥥", dagger: "†", daleth: "ℸ", dash: "‐", hyphen: "‐", dbkarow: "⤏", rBarr: "⤏", dcaron: "ď", dcy: "д", ddarr: "⇊", downdownarrows: "⇊", ddotseq: "⩷", eDDot: "⩷", deg: "°", delta: "δ", demptyv: "⦱", dfisht: "⥿", dfr: "𝔡", diamondsuit: "♦", diams: "♦", digamma: "ϝ", gammad: "ϝ", disin: "⋲", div: "÷", divide: "÷", divideontimes: "⋇", divonx: "⋇", djcy: "ђ", dlcorn: "⌞", llcorner: "⌞", dlcrop: "⌍", dollar: "$", dopf: "𝕕", doteqdot: "≑", eDot: "≑", dotminus: "∸", minusd: "∸", dotplus: "∔", plusdo: "∔", dotsquare: "⊡", sdotb: "⊡", drcorn: "⌟", lrcorner: "⌟", drcrop: "⌌", dscr: "𝒹", dscy: "ѕ", dsol: "⧶", dstrok: "đ", dtdot: "⋱", dtri: "▿", triangledown: "▿", dwangle: "⦦", dzcy: "џ", dzigrarr: "⟿", eacute: "é", easter: "⩮", ecaron: "ě", ecir: "≖", eqcirc: "≖", ecirc: "ê", ecolon: "≕", eqcolon: "≕", ecy: "э", edot: "ė", efDot: "≒", fallingdotseq: "≒", efr: "𝔢", eg: "⪚", egrave: "è", egs: "⪖", eqslantgtr: "⪖", egsdot: "⪘", el: "⪙", elinters: "⏧", ell: "ℓ", els: "⪕", eqslantless: "⪕", elsdot: "⪗", emacr: "ē", empty: "∅", emptyset: "∅", emptyv: "∅", varnothing: "∅", emsp13: " ", emsp14: " ", emsp: " ", eng: "ŋ", ensp: " ", eogon: "ę", eopf: "𝕖", epar: "⋕", eparsl: "⧣", eplus: "⩱", epsi: "ε", epsilon: "ε", epsiv: "ϵ", straightepsilon: "ϵ", varepsilon: "ϵ", equals: "=", equest: "≟", questeq: "≟", equivDD: "⩸", eqvparsl: "⧥", erDot: "≓", risingdotseq: "≓", erarr: "⥱", escr: "ℯ", eta: "η", eth: "ð", euml: "ë", euro: "€", excl: "!", fcy: "ф", female: "♀", ffilig: "ffi", fflig: "ff", ffllig: "ffl", ffr: "𝔣", filig: "fi", fjlig: "fj", flat: "♭", fllig: "fl", fltns: "▱", fnof: "ƒ", fopf: "𝕗", fork: "⋔", pitchfork: "⋔", forkv: "⫙", fpartint: "⨍", frac12: "½", half: "½", frac13: "⅓", frac14: "¼", frac15: "⅕", frac16: "⅙", frac18: "⅛", frac23: "⅔", frac25: "⅖", frac34: "¾", frac35: "⅗", frac38: "⅜", frac45: "⅘", frac56: "⅚", frac58: "⅝", frac78: "⅞", frasl: "⁄", frown: "⌢", sfrown: "⌢", fscr: "𝒻", gEl: "⪌", gtreqqless: "⪌", gacute: "ǵ", gamma: "γ", gap: "⪆", gtrapprox: "⪆", gbreve: "ğ", gcirc: "ĝ", gcy: "г", gdot: "ġ", gescc: "⪩", gesdot: "⪀", gesdoto: "⪂", gesdotol: "⪄", gesl: "⋛︀", gesles: "⪔", gfr: "𝔤", gimel: "ℷ", gjcy: "ѓ", glE: "⪒", gla: "⪥", glj: "⪤", gnE: "≩", gneqq: "≩", gnap: "⪊", gnapprox: "⪊", gne: "⪈", gneq: "⪈", gnsim: "⋧", gopf: "𝕘", gscr: "ℊ", gsime: "⪎", gsiml: "⪐", gtcc: "⪧", gtcir: "⩺", gtdot: "⋗", gtrdot: "⋗", gtlPar: "⦕", gtquest: "⩼", gtrarr: "⥸", gvertneqq: "≩︀", gvnE: "≩︀", hardcy: "ъ", harrcir: "⥈", harrw: "↭", leftrightsquigarrow: "↭", hbar: "ℏ", hslash: "ℏ", planck: "ℏ", plankv: "ℏ", hcirc: "ĥ", hearts: "♥", heartsuit: "♥", hellip: "…", mldr: "…", hercon: "⊹", hfr: "𝔥", hksearow: "⤥", searhk: "⤥", hkswarow: "⤦", swarhk: "⤦", hoarr: "⇿", homtht: "∻", hookleftarrow: "↩", larrhk: "↩", hookrightarrow: "↪", rarrhk: "↪", hopf: "𝕙", horbar: "―", hscr: "𝒽", hstrok: "ħ", hybull: "⁃", iacute: "í", icirc: "î", icy: "и", iecy: "е", iexcl: "¡", ifr: "𝔦", igrave: "ì", iiiint: "⨌", qint: "⨌", iiint: "∭", tint: "∭", iinfin: "⧜", iiota: "℩", ijlig: "ij", imacr: "ī", imath: "ı", inodot: "ı", imof: "⊷", imped: "Ƶ", incare: "℅", infin: "∞", infintie: "⧝", intcal: "⊺", intercal: "⊺", intlarhk: "⨗", intprod: "⨼", iprod: "⨼", iocy: "ё", iogon: "į", iopf: "𝕚", iota: "ι", iquest: "¿", iscr: "𝒾", isinE: "⋹", isindot: "⋵", isins: "⋴", isinsv: "⋳", itilde: "ĩ", iukcy: "і", iuml: "ï", jcirc: "ĵ", jcy: "й", jfr: "𝔧", jmath: "ȷ", jopf: "𝕛", jscr: "𝒿", jsercy: "ј", jukcy: "є", kappa: "κ", kappav: "ϰ", varkappa: "ϰ", kcedil: "ķ", kcy: "к", kfr: "𝔨", kgreen: "ĸ", khcy: "х", kjcy: "ќ", kopf: "𝕜", kscr: "𝓀", lAtail: "⤛", lBarr: "⤎", lEg: "⪋", lesseqqgtr: "⪋", lHar: "⥢", lacute: "ĺ", laemptyv: "⦴", lambda: "λ", langd: "⦑", lap: "⪅", lessapprox: "⪅", laquo: "«", larrbfs: "⤟", larrfs: "⤝", larrlp: "↫", looparrowleft: "↫", larrpl: "⤹", larrsim: "⥳", larrtl: "↢", leftarrowtail: "↢", lat: "⪫", latail: "⤙", late: "⪭", lates: "⪭︀", lbarr: "⤌", lbbrk: "❲", lbrace: "{", lcub: "{", lbrack: "[", lsqb: "[", lbrke: "⦋", lbrksld: "⦏", lbrkslu: "⦍", lcaron: "ľ", lcedil: "ļ", lcy: "л", ldca: "⤶", ldrdhar: "⥧", ldrushar: "⥋", ldsh: "↲", le: "≤", leq: "≤", leftleftarrows: "⇇", llarr: "⇇", leftthreetimes: "⋋", lthree: "⋋", lescc: "⪨", lesdot: "⩿", lesdoto: "⪁", lesdotor: "⪃", lesg: "⋚︀", lesges: "⪓", lessdot: "⋖", ltdot: "⋖", lfisht: "⥼", lfr: "𝔩", lgE: "⪑", lharul: "⥪", lhblk: "▄", ljcy: "љ", llhard: "⥫", lltri: "◺", lmidot: "ŀ", lmoust: "⎰", lmoustache: "⎰", lnE: "≨", lneqq: "≨", lnap: "⪉", lnapprox: "⪉", lne: "⪇", lneq: "⪇", lnsim: "⋦", loang: "⟬", loarr: "⇽", longmapsto: "⟼", xmap: "⟼", looparrowright: "↬", rarrlp: "↬", lopar: "⦅", lopf: "𝕝", loplus: "⨭", lotimes: "⨴", lowast: "∗", loz: "◊", lozenge: "◊", lpar: "(", lparlt: "⦓", lrhard: "⥭", lrm: "", lrtri: "⊿", lsaquo: "‹", lscr: "𝓁", lsime: "⪍", lsimg: "⪏", lsquor: "‚", sbquo: "‚", lstrok: "ł", ltcc: "⪦", ltcir: "⩹", ltimes: "⋉", ltlarr: "⥶", ltquest: "⩻", ltrPar: "⦖", ltri: "◃", triangleleft: "◃", lurdshar: "⥊", luruhar: "⥦", lvertneqq: "≨︀", lvnE: "≨︀", mDDot: "∺", macr: "¯", strns: "¯", male: "♂", malt: "✠", maltese: "✠", marker: "▮", mcomma: "⨩", mcy: "м", mdash: "—", mfr: "𝔪", mho: "℧", micro: "µ", midcir: "⫰", minus: "−", minusdu: "⨪", mlcp: "⫛", models: "⊧", mopf: "𝕞", mscr: "𝓂", mu: "μ", multimap: "⊸", mumap: "⊸", nGg: "⋙̸", nGt: "≫⃒", nLeftarrow: "⇍", nlArr: "⇍", nLeftrightarrow: "⇎", nhArr: "⇎", nLl: "⋘̸", nLt: "≪⃒", nRightarrow: "⇏", nrArr: "⇏", nVDash: "⊯", nVdash: "⊮", nacute: "ń", nang: "∠⃒", napE: "⩰̸", napid: "≋̸", napos: "ʼn", natur: "♮", natural: "♮", ncap: "⩃", ncaron: "ň", ncedil: "ņ", ncongdot: "⩭̸", ncup: "⩂", ncy: "н", ndash: "–", neArr: "⇗", nearhk: "⤤", nedot: "≐̸", nesear: "⤨", toea: "⤨", nfr: "𝔫", nharr: "↮", nleftrightarrow: "↮", nhpar: "⫲", nis: "⋼", nisd: "⋺", njcy: "њ", nlE: "≦̸", nleqq: "≦̸", nlarr: "↚", nleftarrow: "↚", nldr: "‥", nopf: "𝕟", not: "¬", notinE: "⋹̸", notindot: "⋵̸", notinvb: "⋷", notinvc: "⋶", notnivb: "⋾", notnivc: "⋽", nparsl: "⫽⃥", npart: "∂̸", npolint: "⨔", nrarr: "↛", nrightarrow: "↛", nrarrc: "⤳̸", nrarrw: "↝̸", nscr: "𝓃", nsub: "⊄", nsubE: "⫅̸", nsubseteqq: "⫅̸", nsup: "⊅", nsupE: "⫆̸", nsupseteqq: "⫆̸", ntilde: "ñ", nu: "ν", num: "#", numero: "№", numsp: " ", nvDash: "⊭", nvHarr: "⤄", nvap: "≍⃒", nvdash: "⊬", nvge: "≥⃒", nvgt: ">⃒", nvinfin: "⧞", nvlArr: "⤂", nvle: "≤⃒", nvlt: "<⃒", nvltrie: "⊴⃒", nvrArr: "⤃", nvrtrie: "⊵⃒", nvsim: "∼⃒", nwArr: "⇖", nwarhk: "⤣", nwnear: "⤧", oacute: "ó", ocirc: "ô", ocy: "о", odblac: "ő", odiv: "⨸", odsold: "⦼", oelig: "œ", ofcir: "⦿", ofr: "𝔬", ogon: "˛", ograve: "ò", ogt: "⧁", ohbar: "⦵", olcir: "⦾", olcross: "⦻", olt: "⧀", omacr: "ō", omega: "ω", omicron: "ο", omid: "⦶", oopf: "𝕠", opar: "⦷", operp: "⦹", or: "∨", vee: "∨", ord: "⩝", order: "ℴ", orderof: "ℴ", oscr: "ℴ", ordf: "ª", ordm: "º", origof: "⊶", oror: "⩖", orslope: "⩗", orv: "⩛", oslash: "ø", osol: "⊘", otilde: "õ", otimesas: "⨶", ouml: "ö", ovbar: "⌽", para: "¶", parsim: "⫳", parsl: "⫽", pcy: "п", percnt: "%", period: ".", permil: "‰", pertenk: "‱", pfr: "𝔭", phi: "φ", phiv: "ϕ", straightphi: "ϕ", varphi: "ϕ", phone: "☎", pi: "π", piv: "ϖ", varpi: "ϖ", planckh: "ℎ", plus: "+", plusacir: "⨣", pluscir: "⨢", plusdu: "⨥", pluse: "⩲", plussim: "⨦", plustwo: "⨧", pointint: "⨕", popf: "𝕡", pound: "£", prE: "⪳", prap: "⪷", precapprox: "⪷", precnapprox: "⪹", prnap: "⪹", precneqq: "⪵", prnE: "⪵", precnsim: "⋨", prnsim: "⋨", prime: "′", profalar: "⌮", profline: "⌒", profsurf: "⌓", prurel: "⊰", pscr: "𝓅", psi: "ψ", puncsp: " ", qfr: "𝔮", qopf: "𝕢", qprime: "⁗", qscr: "𝓆", quatint: "⨖", quest: "?", rAtail: "⤜", rHar: "⥤", race: "∽̱", racute: "ŕ", raemptyv: "⦳", rangd: "⦒", range: "⦥", raquo: "»", rarrap: "⥵", rarrbfs: "⤠", rarrc: "⤳", rarrfs: "⤞", rarrpl: "⥅", rarrsim: "⥴", rarrtl: "↣", rightarrowtail: "↣", rarrw: "↝", rightsquigarrow: "↝", ratail: "⤚", ratio: "∶", rbbrk: "❳", rbrace: "}", rcub: "}", rbrack: "]", rsqb: "]", rbrke: "⦌", rbrksld: "⦎", rbrkslu: "⦐", rcaron: "ř", rcedil: "ŗ", rcy: "р", rdca: "⤷", rdldhar: "⥩", rdsh: "↳", rect: "▭", rfisht: "⥽", rfr: "𝔯", rharul: "⥬", rho: "ρ", rhov: "ϱ", varrho: "ϱ", rightrightarrows: "⇉", rrarr: "⇉", rightthreetimes: "⋌", rthree: "⋌", ring: "˚", rlm: "", rmoust: "⎱", rmoustache: "⎱", rnmid: "⫮", roang: "⟭", roarr: "⇾", ropar: "⦆", ropf: "𝕣", roplus: "⨮", rotimes: "⨵", rpar: ")", rpargt: "⦔", rppolint: "⨒", rsaquo: "›", rscr: "𝓇", rtimes: "⋊", rtri: "▹", triangleright: "▹", rtriltri: "⧎", ruluhar: "⥨", rx: "℞", sacute: "ś", scE: "⪴", scap: "⪸", succapprox: "⪸", scaron: "š", scedil: "ş", scirc: "ŝ", scnE: "⪶", succneqq: "⪶", scnap: "⪺", succnapprox: "⪺", scnsim: "⋩", succnsim: "⋩", scpolint: "⨓", scy: "с", sdot: "⋅", sdote: "⩦", seArr: "⇘", sect: "§", semi: ";", seswar: "⤩", tosa: "⤩", sext: "✶", sfr: "𝔰", sharp: "♯", shchcy: "щ", shcy: "ш", shy: "", sigma: "σ", sigmaf: "ς", sigmav: "ς", varsigma: "ς", simdot: "⩪", simg: "⪞", simgE: "⪠", siml: "⪝", simlE: "⪟", simne: "≆", simplus: "⨤", simrarr: "⥲", smashp: "⨳", smeparsl: "⧤", smile: "⌣", ssmile: "⌣", smt: "⪪", smte: "⪬", smtes: "⪬︀", softcy: "ь", sol: "/", solb: "⧄", solbar: "⌿", sopf: "𝕤", spades: "♠", spadesuit: "♠", sqcaps: "⊓︀", sqcups: "⊔︀", sscr: "𝓈", star: "☆", sub: "⊂", subset: "⊂", subE: "⫅", subseteqq: "⫅", subdot: "⪽", subedot: "⫃", submult: "⫁", subnE: "⫋", subsetneqq: "⫋", subne: "⊊", subsetneq: "⊊", subplus: "⪿", subrarr: "⥹", subsim: "⫇", subsub: "⫕", subsup: "⫓", sung: "♪", sup1: "¹", sup2: "²", sup3: "³", supE: "⫆", supseteqq: "⫆", supdot: "⪾", supdsub: "⫘", supedot: "⫄", suphsol: "⟉", suphsub: "⫗", suplarr: "⥻", supmult: "⫂", supnE: "⫌", supsetneqq: "⫌", supne: "⊋", supsetneq: "⊋", supplus: "⫀", supsim: "⫈", supsub: "⫔", supsup: "⫖", swArr: "⇙", swnwar: "⤪", szlig: "ß", target: "⌖", tau: "τ", tcaron: "ť", tcedil: "ţ", tcy: "т", telrec: "⌕", tfr: "𝔱", theta: "θ", thetasym: "ϑ", thetav: "ϑ", vartheta: "ϑ", thorn: "þ", times: "×", timesbar: "⨱", timesd: "⨰", topbot: "⌶", topcir: "⫱", topf: "𝕥", topfork: "⫚", tprime: "‴", triangle: "▵", utri: "▵", triangleq: "≜", trie: "≜", tridot: "◬", triminus: "⨺", triplus: "⨹", trisb: "⧍", tritime: "⨻", trpezium: "⏢", tscr: "𝓉", tscy: "ц", tshcy: "ћ", tstrok: "ŧ", uHar: "⥣", uacute: "ú", ubrcy: "ў", ubreve: "ŭ", ucirc: "û", ucy: "у", udblac: "ű", ufisht: "⥾", ufr: "𝔲", ugrave: "ù", uhblk: "▀", ulcorn: "⌜", ulcorner: "⌜", ulcrop: "⌏", ultri: "◸", umacr: "ū", uogon: "ų", uopf: "𝕦", upsi: "υ", upsilon: "υ", upuparrows: "⇈", uuarr: "⇈", urcorn: "⌝", urcorner: "⌝", urcrop: "⌎", uring: "ů", urtri: "◹", uscr: "𝓊", utdot: "⋰", utilde: "ũ", uuml: "ü", uwangle: "⦧", vBar: "⫨", vBarv: "⫩", vangrt: "⦜", varsubsetneq: "⊊︀", vsubne: "⊊︀", varsubsetneqq: "⫋︀", vsubnE: "⫋︀", varsupsetneq: "⊋︀", vsupne: "⊋︀", varsupsetneqq: "⫌︀", vsupnE: "⫌︀", vcy: "в", veebar: "⊻", veeeq: "≚", vellip: "⋮", vfr: "𝔳", vopf: "𝕧", vscr: "𝓋", vzigzag: "⦚", wcirc: "ŵ", wedbar: "⩟", wedgeq: "≙", weierp: "℘", wp: "℘", wfr: "𝔴", wopf: "𝕨", wscr: "𝓌", xfr: "𝔵", xi: "ξ", xnis: "⋻", xopf: "𝕩", xscr: "𝓍", yacute: "ý", yacy: "я", ycirc: "ŷ", ycy: "ы", yen: "¥", yfr: "𝔶", yicy: "ї", yopf: "𝕪", yscr: "𝓎", yucy: "ю", yuml: "ÿ", zacute: "ź", zcaron: "ž", zcy: "з", zdot: "ż", zeta: "ζ", zfr: "𝔷", zhcy: "ж", zigrarr: "⇝", zopf: "𝕫", zscr: "𝓏", zwj: "", zwnj: "" }, Bl = "";
|
|
3841
|
-
|
|
3846
|
+
}, Mt = { AElig: "Æ", AMP: "&", amp: "&", Aacute: "Á", Abreve: "Ă", Acirc: "Â", Acy: "А", Afr: "𝔄", Agrave: "À", Alpha: "Α", Amacr: "Ā", And: "⩓", Aogon: "Ą", Aopf: "𝔸", ApplyFunction: "", af: "", Aring: "Å", angst: "Å", Ascr: "𝒜", Assign: "≔", colone: "≔", coloneq: "≔", Atilde: "Ã", Auml: "Ä", Backslash: "∖", setminus: "∖", setmn: "∖", smallsetminus: "∖", ssetmn: "∖", Barv: "⫧", Barwed: "⌆", doublebarwedge: "⌆", Bcy: "Б", Because: "∵", becaus: "∵", because: "∵", Bernoullis: "ℬ", Bscr: "ℬ", bernou: "ℬ", Beta: "Β", Bfr: "𝔅", Bopf: "𝔹", Breve: "˘", breve: "˘", Bumpeq: "≎", HumpDownHump: "≎", bump: "≎", CHcy: "Ч", COPY: "©", copy: "©", Cacute: "Ć", Cap: "⋒", CapitalDifferentialD: "ⅅ", DD: "ⅅ", Cayleys: "ℭ", Cfr: "ℭ", Ccaron: "Č", Ccedil: "Ç", Ccirc: "Ĉ", Cconint: "∰", Cdot: "Ċ", Cedilla: "¸", cedil: "¸", CenterDot: "·", centerdot: "·", middot: "·", Chi: "Χ", CircleDot: "⊙", odot: "⊙", CircleMinus: "⊖", ominus: "⊖", CirclePlus: "⊕", oplus: "⊕", CircleTimes: "⊗", otimes: "⊗", ClockwiseContourIntegral: "∲", cwconint: "∲", CloseCurlyDoubleQuote: "”", rdquo: "”", rdquor: "”", CloseCurlyQuote: "’", rsquo: "’", rsquor: "’", Colon: "∷", Proportion: "∷", Colone: "⩴", Congruent: "≡", equiv: "≡", Conint: "∯", DoubleContourIntegral: "∯", ContourIntegral: "∮", conint: "∮", oint: "∮", Copf: "ℂ", complexes: "ℂ", Coproduct: "∐", coprod: "∐", CounterClockwiseContourIntegral: "∳", awconint: "∳", Cross: "⨯", Cscr: "𝒞", Cup: "⋓", CupCap: "≍", asympeq: "≍", DDotrahd: "⤑", DJcy: "Ђ", DScy: "Ѕ", DZcy: "Џ", Dagger: "‡", ddagger: "‡", Darr: "↡", Dashv: "⫤", DoubleLeftTee: "⫤", Dcaron: "Ď", Dcy: "Д", Del: "∇", nabla: "∇", Delta: "Δ", Dfr: "𝔇", DiacriticalAcute: "´", acute: "´", DiacriticalDot: "˙", dot: "˙", DiacriticalDoubleAcute: "˝", dblac: "˝", DiacriticalGrave: "`", grave: "`", DiacriticalTilde: "˜", tilde: "˜", Diamond: "⋄", diam: "⋄", diamond: "⋄", DifferentialD: "ⅆ", dd: "ⅆ", Dopf: "𝔻", Dot: "¨", DoubleDot: "¨", die: "¨", uml: "¨", DotDot: "⃜", DotEqual: "≐", doteq: "≐", esdot: "≐", DoubleDownArrow: "⇓", Downarrow: "⇓", dArr: "⇓", DoubleLeftArrow: "⇐", Leftarrow: "⇐", lArr: "⇐", DoubleLeftRightArrow: "⇔", Leftrightarrow: "⇔", hArr: "⇔", iff: "⇔", DoubleLongLeftArrow: "⟸", Longleftarrow: "⟸", xlArr: "⟸", DoubleLongLeftRightArrow: "⟺", Longleftrightarrow: "⟺", xhArr: "⟺", DoubleLongRightArrow: "⟹", Longrightarrow: "⟹", xrArr: "⟹", DoubleRightArrow: "⇒", Implies: "⇒", Rightarrow: "⇒", rArr: "⇒", DoubleRightTee: "⊨", vDash: "⊨", DoubleUpArrow: "⇑", Uparrow: "⇑", uArr: "⇑", DoubleUpDownArrow: "⇕", Updownarrow: "⇕", vArr: "⇕", DoubleVerticalBar: "∥", par: "∥", parallel: "∥", shortparallel: "∥", spar: "∥", DownArrow: "↓", ShortDownArrow: "↓", darr: "↓", downarrow: "↓", DownArrowBar: "⤓", DownArrowUpArrow: "⇵", duarr: "⇵", DownBreve: "̑", DownLeftRightVector: "⥐", DownLeftTeeVector: "⥞", DownLeftVector: "↽", leftharpoondown: "↽", lhard: "↽", DownLeftVectorBar: "⥖", DownRightTeeVector: "⥟", DownRightVector: "⇁", rhard: "⇁", rightharpoondown: "⇁", DownRightVectorBar: "⥗", DownTee: "⊤", top: "⊤", DownTeeArrow: "↧", mapstodown: "↧", Dscr: "𝒟", Dstrok: "Đ", ENG: "Ŋ", ETH: "Ð", Eacute: "É", Ecaron: "Ě", Ecirc: "Ê", Ecy: "Э", Edot: "Ė", Efr: "𝔈", Egrave: "È", Element: "∈", in: "∈", isin: "∈", isinv: "∈", Emacr: "Ē", EmptySmallSquare: "◻", EmptyVerySmallSquare: "▫", Eogon: "Ę", Eopf: "𝔼", Epsilon: "Ε", Equal: "⩵", EqualTilde: "≂", eqsim: "≂", esim: "≂", Equilibrium: "⇌", rightleftharpoons: "⇌", rlhar: "⇌", Escr: "ℰ", expectation: "ℰ", Esim: "⩳", Eta: "Η", Euml: "Ë", Exists: "∃", exist: "∃", ExponentialE: "ⅇ", ee: "ⅇ", exponentiale: "ⅇ", Fcy: "Ф", Ffr: "𝔉", FilledSmallSquare: "◼", FilledVerySmallSquare: "▪", blacksquare: "▪", squarf: "▪", squf: "▪", Fopf: "𝔽", ForAll: "∀", forall: "∀", Fouriertrf: "ℱ", Fscr: "ℱ", GJcy: "Ѓ", GT: ">", gt: ">", Gamma: "Γ", Gammad: "Ϝ", Gbreve: "Ğ", Gcedil: "Ģ", Gcirc: "Ĝ", Gcy: "Г", Gdot: "Ġ", Gfr: "𝔊", Gg: "⋙", ggg: "⋙", Gopf: "𝔾", GreaterEqual: "≥", ge: "≥", geq: "≥", GreaterEqualLess: "⋛", gel: "⋛", gtreqless: "⋛", GreaterFullEqual: "≧", gE: "≧", geqq: "≧", GreaterGreater: "⪢", GreaterLess: "≷", gl: "≷", gtrless: "≷", GreaterSlantEqual: "⩾", geqslant: "⩾", ges: "⩾", GreaterTilde: "≳", gsim: "≳", gtrsim: "≳", Gscr: "𝒢", Gt: "≫", NestedGreaterGreater: "≫", gg: "≫", HARDcy: "Ъ", Hacek: "ˇ", caron: "ˇ", Hat: "^", Hcirc: "Ĥ", Hfr: "ℌ", Poincareplane: "ℌ", HilbertSpace: "ℋ", Hscr: "ℋ", hamilt: "ℋ", Hopf: "ℍ", quaternions: "ℍ", HorizontalLine: "─", boxh: "─", Hstrok: "Ħ", HumpEqual: "≏", bumpe: "≏", bumpeq: "≏", IEcy: "Е", IJlig: "IJ", IOcy: "Ё", Iacute: "Í", Icirc: "Î", Icy: "И", Idot: "İ", Ifr: "ℑ", Im: "ℑ", image: "ℑ", imagpart: "ℑ", Igrave: "Ì", Imacr: "Ī", ImaginaryI: "ⅈ", ii: "ⅈ", Int: "∬", Integral: "∫", int: "∫", Intersection: "⋂", bigcap: "⋂", xcap: "⋂", InvisibleComma: "", ic: "", InvisibleTimes: "", it: "", Iogon: "Į", Iopf: "𝕀", Iota: "Ι", Iscr: "ℐ", imagline: "ℐ", Itilde: "Ĩ", Iukcy: "І", Iuml: "Ï", Jcirc: "Ĵ", Jcy: "Й", Jfr: "𝔍", Jopf: "𝕁", Jscr: "𝒥", Jsercy: "Ј", Jukcy: "Є", KHcy: "Х", KJcy: "Ќ", Kappa: "Κ", Kcedil: "Ķ", Kcy: "К", Kfr: "𝔎", Kopf: "𝕂", Kscr: "𝒦", LJcy: "Љ", LT: "<", lt: "<", Lacute: "Ĺ", Lambda: "Λ", Lang: "⟪", Laplacetrf: "ℒ", Lscr: "ℒ", lagran: "ℒ", Larr: "↞", twoheadleftarrow: "↞", Lcaron: "Ľ", Lcedil: "Ļ", Lcy: "Л", LeftAngleBracket: "⟨", lang: "⟨", langle: "⟨", LeftArrow: "←", ShortLeftArrow: "←", larr: "←", leftarrow: "←", slarr: "←", LeftArrowBar: "⇤", larrb: "⇤", LeftArrowRightArrow: "⇆", leftrightarrows: "⇆", lrarr: "⇆", LeftCeiling: "⌈", lceil: "⌈", LeftDoubleBracket: "⟦", lobrk: "⟦", LeftDownTeeVector: "⥡", LeftDownVector: "⇃", dharl: "⇃", downharpoonleft: "⇃", LeftDownVectorBar: "⥙", LeftFloor: "⌊", lfloor: "⌊", LeftRightArrow: "↔", harr: "↔", leftrightarrow: "↔", LeftRightVector: "⥎", LeftTee: "⊣", dashv: "⊣", LeftTeeArrow: "↤", mapstoleft: "↤", LeftTeeVector: "⥚", LeftTriangle: "⊲", vartriangleleft: "⊲", vltri: "⊲", LeftTriangleBar: "⧏", LeftTriangleEqual: "⊴", ltrie: "⊴", trianglelefteq: "⊴", LeftUpDownVector: "⥑", LeftUpTeeVector: "⥠", LeftUpVector: "↿", uharl: "↿", upharpoonleft: "↿", LeftUpVectorBar: "⥘", LeftVector: "↼", leftharpoonup: "↼", lharu: "↼", LeftVectorBar: "⥒", LessEqualGreater: "⋚", leg: "⋚", lesseqgtr: "⋚", LessFullEqual: "≦", lE: "≦", leqq: "≦", LessGreater: "≶", lessgtr: "≶", lg: "≶", LessLess: "⪡", LessSlantEqual: "⩽", leqslant: "⩽", les: "⩽", LessTilde: "≲", lesssim: "≲", lsim: "≲", Lfr: "𝔏", Ll: "⋘", Lleftarrow: "⇚", lAarr: "⇚", Lmidot: "Ŀ", LongLeftArrow: "⟵", longleftarrow: "⟵", xlarr: "⟵", LongLeftRightArrow: "⟷", longleftrightarrow: "⟷", xharr: "⟷", LongRightArrow: "⟶", longrightarrow: "⟶", xrarr: "⟶", Lopf: "𝕃", LowerLeftArrow: "↙", swarr: "↙", swarrow: "↙", LowerRightArrow: "↘", searr: "↘", searrow: "↘", Lsh: "↰", lsh: "↰", Lstrok: "Ł", Lt: "≪", NestedLessLess: "≪", ll: "≪", Map: "⤅", Mcy: "М", MediumSpace: " ", Mellintrf: "ℳ", Mscr: "ℳ", phmmat: "ℳ", Mfr: "𝔐", MinusPlus: "∓", mnplus: "∓", mp: "∓", Mopf: "𝕄", Mu: "Μ", NJcy: "Њ", Nacute: "Ń", Ncaron: "Ň", Ncedil: "Ņ", Ncy: "Н", NegativeMediumSpace: "", NegativeThickSpace: "", NegativeThinSpace: "", NegativeVeryThinSpace: "", ZeroWidthSpace: "", NewLine: `
|
|
3847
|
+
`, Nfr: "𝔑", NoBreak: "", NonBreakingSpace: " ", nbsp: " ", Nopf: "ℕ", naturals: "ℕ", Not: "⫬", NotCongruent: "≢", nequiv: "≢", NotCupCap: "≭", NotDoubleVerticalBar: "∦", npar: "∦", nparallel: "∦", nshortparallel: "∦", nspar: "∦", NotElement: "∉", notin: "∉", notinva: "∉", NotEqual: "≠", ne: "≠", NotEqualTilde: "≂̸", nesim: "≂̸", NotExists: "∄", nexist: "∄", nexists: "∄", NotGreater: "≯", ngt: "≯", ngtr: "≯", NotGreaterEqual: "≱", nge: "≱", ngeq: "≱", NotGreaterFullEqual: "≧̸", ngE: "≧̸", ngeqq: "≧̸", NotGreaterGreater: "≫̸", nGtv: "≫̸", NotGreaterLess: "≹", ntgl: "≹", NotGreaterSlantEqual: "⩾̸", ngeqslant: "⩾̸", nges: "⩾̸", NotGreaterTilde: "≵", ngsim: "≵", NotHumpDownHump: "≎̸", nbump: "≎̸", NotHumpEqual: "≏̸", nbumpe: "≏̸", NotLeftTriangle: "⋪", nltri: "⋪", ntriangleleft: "⋪", NotLeftTriangleBar: "⧏̸", NotLeftTriangleEqual: "⋬", nltrie: "⋬", ntrianglelefteq: "⋬", NotLess: "≮", nless: "≮", nlt: "≮", NotLessEqual: "≰", nle: "≰", nleq: "≰", NotLessGreater: "≸", ntlg: "≸", NotLessLess: "≪̸", nLtv: "≪̸", NotLessSlantEqual: "⩽̸", nleqslant: "⩽̸", nles: "⩽̸", NotLessTilde: "≴", nlsim: "≴", NotNestedGreaterGreater: "⪢̸", NotNestedLessLess: "⪡̸", NotPrecedes: "⊀", npr: "⊀", nprec: "⊀", NotPrecedesEqual: "⪯̸", npre: "⪯̸", npreceq: "⪯̸", NotPrecedesSlantEqual: "⋠", nprcue: "⋠", NotReverseElement: "∌", notni: "∌", notniva: "∌", NotRightTriangle: "⋫", nrtri: "⋫", ntriangleright: "⋫", NotRightTriangleBar: "⧐̸", NotRightTriangleEqual: "⋭", nrtrie: "⋭", ntrianglerighteq: "⋭", NotSquareSubset: "⊏̸", NotSquareSubsetEqual: "⋢", nsqsube: "⋢", NotSquareSuperset: "⊐̸", NotSquareSupersetEqual: "⋣", nsqsupe: "⋣", NotSubset: "⊂⃒", nsubset: "⊂⃒", vnsub: "⊂⃒", NotSubsetEqual: "⊈", nsube: "⊈", nsubseteq: "⊈", NotSucceeds: "⊁", nsc: "⊁", nsucc: "⊁", NotSucceedsEqual: "⪰̸", nsce: "⪰̸", nsucceq: "⪰̸", NotSucceedsSlantEqual: "⋡", nsccue: "⋡", NotSucceedsTilde: "≿̸", NotSuperset: "⊃⃒", nsupset: "⊃⃒", vnsup: "⊃⃒", NotSupersetEqual: "⊉", nsupe: "⊉", nsupseteq: "⊉", NotTilde: "≁", nsim: "≁", NotTildeEqual: "≄", nsime: "≄", nsimeq: "≄", NotTildeFullEqual: "≇", ncong: "≇", NotTildeTilde: "≉", nap: "≉", napprox: "≉", NotVerticalBar: "∤", nmid: "∤", nshortmid: "∤", nsmid: "∤", Nscr: "𝒩", Ntilde: "Ñ", Nu: "Ν", OElig: "Œ", Oacute: "Ó", Ocirc: "Ô", Ocy: "О", Odblac: "Ő", Ofr: "𝔒", Ograve: "Ò", Omacr: "Ō", Omega: "Ω", ohm: "Ω", Omicron: "Ο", Oopf: "𝕆", OpenCurlyDoubleQuote: "“", ldquo: "“", OpenCurlyQuote: "‘", lsquo: "‘", Or: "⩔", Oscr: "𝒪", Oslash: "Ø", Otilde: "Õ", Otimes: "⨷", Ouml: "Ö", OverBar: "‾", oline: "‾", OverBrace: "⏞", OverBracket: "⎴", tbrk: "⎴", OverParenthesis: "⏜", PartialD: "∂", part: "∂", Pcy: "П", Pfr: "𝔓", Phi: "Φ", Pi: "Π", PlusMinus: "±", plusmn: "±", pm: "±", Popf: "ℙ", primes: "ℙ", Pr: "⪻", Precedes: "≺", pr: "≺", prec: "≺", PrecedesEqual: "⪯", pre: "⪯", preceq: "⪯", PrecedesSlantEqual: "≼", prcue: "≼", preccurlyeq: "≼", PrecedesTilde: "≾", precsim: "≾", prsim: "≾", Prime: "″", Product: "∏", prod: "∏", Proportional: "∝", prop: "∝", propto: "∝", varpropto: "∝", vprop: "∝", Pscr: "𝒫", Psi: "Ψ", QUOT: '"', quot: '"', Qfr: "𝔔", Qopf: "ℚ", rationals: "ℚ", Qscr: "𝒬", RBarr: "⤐", drbkarow: "⤐", REG: "®", circledR: "®", reg: "®", Racute: "Ŕ", Rang: "⟫", Rarr: "↠", twoheadrightarrow: "↠", Rarrtl: "⤖", Rcaron: "Ř", Rcedil: "Ŗ", Rcy: "Р", Re: "ℜ", Rfr: "ℜ", real: "ℜ", realpart: "ℜ", ReverseElement: "∋", SuchThat: "∋", ni: "∋", niv: "∋", ReverseEquilibrium: "⇋", leftrightharpoons: "⇋", lrhar: "⇋", ReverseUpEquilibrium: "⥯", duhar: "⥯", Rho: "Ρ", RightAngleBracket: "⟩", rang: "⟩", rangle: "⟩", RightArrow: "→", ShortRightArrow: "→", rarr: "→", rightarrow: "→", srarr: "→", RightArrowBar: "⇥", rarrb: "⇥", RightArrowLeftArrow: "⇄", rightleftarrows: "⇄", rlarr: "⇄", RightCeiling: "⌉", rceil: "⌉", RightDoubleBracket: "⟧", robrk: "⟧", RightDownTeeVector: "⥝", RightDownVector: "⇂", dharr: "⇂", downharpoonright: "⇂", RightDownVectorBar: "⥕", RightFloor: "⌋", rfloor: "⌋", RightTee: "⊢", vdash: "⊢", RightTeeArrow: "↦", map: "↦", mapsto: "↦", RightTeeVector: "⥛", RightTriangle: "⊳", vartriangleright: "⊳", vrtri: "⊳", RightTriangleBar: "⧐", RightTriangleEqual: "⊵", rtrie: "⊵", trianglerighteq: "⊵", RightUpDownVector: "⥏", RightUpTeeVector: "⥜", RightUpVector: "↾", uharr: "↾", upharpoonright: "↾", RightUpVectorBar: "⥔", RightVector: "⇀", rharu: "⇀", rightharpoonup: "⇀", RightVectorBar: "⥓", Ropf: "ℝ", reals: "ℝ", RoundImplies: "⥰", Rrightarrow: "⇛", rAarr: "⇛", Rscr: "ℛ", realine: "ℛ", Rsh: "↱", rsh: "↱", RuleDelayed: "⧴", SHCHcy: "Щ", SHcy: "Ш", SOFTcy: "Ь", Sacute: "Ś", Sc: "⪼", Scaron: "Š", Scedil: "Ş", Scirc: "Ŝ", Scy: "С", Sfr: "𝔖", ShortUpArrow: "↑", UpArrow: "↑", uarr: "↑", uparrow: "↑", Sigma: "Σ", SmallCircle: "∘", compfn: "∘", Sopf: "𝕊", Sqrt: "√", radic: "√", Square: "□", squ: "□", square: "□", SquareIntersection: "⊓", sqcap: "⊓", SquareSubset: "⊏", sqsub: "⊏", sqsubset: "⊏", SquareSubsetEqual: "⊑", sqsube: "⊑", sqsubseteq: "⊑", SquareSuperset: "⊐", sqsup: "⊐", sqsupset: "⊐", SquareSupersetEqual: "⊒", sqsupe: "⊒", sqsupseteq: "⊒", SquareUnion: "⊔", sqcup: "⊔", Sscr: "𝒮", Star: "⋆", sstarf: "⋆", Sub: "⋐", Subset: "⋐", SubsetEqual: "⊆", sube: "⊆", subseteq: "⊆", Succeeds: "≻", sc: "≻", succ: "≻", SucceedsEqual: "⪰", sce: "⪰", succeq: "⪰", SucceedsSlantEqual: "≽", sccue: "≽", succcurlyeq: "≽", SucceedsTilde: "≿", scsim: "≿", succsim: "≿", Sum: "∑", sum: "∑", Sup: "⋑", Supset: "⋑", Superset: "⊃", sup: "⊃", supset: "⊃", SupersetEqual: "⊇", supe: "⊇", supseteq: "⊇", THORN: "Þ", TRADE: "™", trade: "™", TSHcy: "Ћ", TScy: "Ц", Tab: " ", Tau: "Τ", Tcaron: "Ť", Tcedil: "Ţ", Tcy: "Т", Tfr: "𝔗", Therefore: "∴", there4: "∴", therefore: "∴", Theta: "Θ", ThickSpace: " ", ThinSpace: " ", thinsp: " ", Tilde: "∼", sim: "∼", thicksim: "∼", thksim: "∼", TildeEqual: "≃", sime: "≃", simeq: "≃", TildeFullEqual: "≅", cong: "≅", TildeTilde: "≈", ap: "≈", approx: "≈", asymp: "≈", thickapprox: "≈", thkap: "≈", Topf: "𝕋", TripleDot: "⃛", tdot: "⃛", Tscr: "𝒯", Tstrok: "Ŧ", Uacute: "Ú", Uarr: "↟", Uarrocir: "⥉", Ubrcy: "Ў", Ubreve: "Ŭ", Ucirc: "Û", Ucy: "У", Udblac: "Ű", Ufr: "𝔘", Ugrave: "Ù", Umacr: "Ū", UnderBar: "_", lowbar: "_", UnderBrace: "⏟", UnderBracket: "⎵", bbrk: "⎵", UnderParenthesis: "⏝", Union: "⋃", bigcup: "⋃", xcup: "⋃", UnionPlus: "⊎", uplus: "⊎", Uogon: "Ų", Uopf: "𝕌", UpArrowBar: "⤒", UpArrowDownArrow: "⇅", udarr: "⇅", UpDownArrow: "↕", updownarrow: "↕", varr: "↕", UpEquilibrium: "⥮", udhar: "⥮", UpTee: "⊥", bot: "⊥", bottom: "⊥", perp: "⊥", UpTeeArrow: "↥", mapstoup: "↥", UpperLeftArrow: "↖", nwarr: "↖", nwarrow: "↖", UpperRightArrow: "↗", nearr: "↗", nearrow: "↗", Upsi: "ϒ", upsih: "ϒ", Upsilon: "Υ", Uring: "Ů", Uscr: "𝒰", Utilde: "Ũ", Uuml: "Ü", VDash: "⊫", Vbar: "⫫", Vcy: "В", Vdash: "⊩", Vdashl: "⫦", Vee: "⋁", bigvee: "⋁", xvee: "⋁", Verbar: "‖", Vert: "‖", VerticalBar: "∣", mid: "∣", shortmid: "∣", smid: "∣", VerticalLine: "|", verbar: "|", vert: "|", VerticalSeparator: "❘", VerticalTilde: "≀", wr: "≀", wreath: "≀", VeryThinSpace: " ", hairsp: " ", Vfr: "𝔙", Vopf: "𝕍", Vscr: "𝒱", Vvdash: "⊪", Wcirc: "Ŵ", Wedge: "⋀", bigwedge: "⋀", xwedge: "⋀", Wfr: "𝔚", Wopf: "𝕎", Wscr: "𝒲", Xfr: "𝔛", Xi: "Ξ", Xopf: "𝕏", Xscr: "𝒳", YAcy: "Я", YIcy: "Ї", YUcy: "Ю", Yacute: "Ý", Ycirc: "Ŷ", Ycy: "Ы", Yfr: "𝔜", Yopf: "𝕐", Yscr: "𝒴", Yuml: "Ÿ", ZHcy: "Ж", Zacute: "Ź", Zcaron: "Ž", Zcy: "З", Zdot: "Ż", Zeta: "Ζ", Zfr: "ℨ", zeetrf: "ℨ", Zopf: "ℤ", integers: "ℤ", Zscr: "𝒵", aacute: "á", abreve: "ă", ac: "∾", mstpos: "∾", acE: "∾̳", acd: "∿", acirc: "â", acy: "а", aelig: "æ", afr: "𝔞", agrave: "à", alefsym: "ℵ", aleph: "ℵ", alpha: "α", amacr: "ā", amalg: "⨿", and: "∧", wedge: "∧", andand: "⩕", andd: "⩜", andslope: "⩘", andv: "⩚", ang: "∠", angle: "∠", ange: "⦤", angmsd: "∡", measuredangle: "∡", angmsdaa: "⦨", angmsdab: "⦩", angmsdac: "⦪", angmsdad: "⦫", angmsdae: "⦬", angmsdaf: "⦭", angmsdag: "⦮", angmsdah: "⦯", angrt: "∟", angrtvb: "⊾", angrtvbd: "⦝", angsph: "∢", angzarr: "⍼", aogon: "ą", aopf: "𝕒", apE: "⩰", apacir: "⩯", ape: "≊", approxeq: "≊", apid: "≋", apos: "'", aring: "å", ascr: "𝒶", ast: "*", midast: "*", atilde: "ã", auml: "ä", awint: "⨑", bNot: "⫭", backcong: "≌", bcong: "≌", backepsilon: "϶", bepsi: "϶", backprime: "‵", bprime: "‵", backsim: "∽", bsim: "∽", backsimeq: "⋍", bsime: "⋍", barvee: "⊽", barwed: "⌅", barwedge: "⌅", bbrktbrk: "⎶", bcy: "б", bdquo: "„", ldquor: "„", bemptyv: "⦰", beta: "β", beth: "ℶ", between: "≬", twixt: "≬", bfr: "𝔟", bigcirc: "◯", xcirc: "◯", bigodot: "⨀", xodot: "⨀", bigoplus: "⨁", xoplus: "⨁", bigotimes: "⨂", xotime: "⨂", bigsqcup: "⨆", xsqcup: "⨆", bigstar: "★", starf: "★", bigtriangledown: "▽", xdtri: "▽", bigtriangleup: "△", xutri: "△", biguplus: "⨄", xuplus: "⨄", bkarow: "⤍", rbarr: "⤍", blacklozenge: "⧫", lozf: "⧫", blacktriangle: "▴", utrif: "▴", blacktriangledown: "▾", dtrif: "▾", blacktriangleleft: "◂", ltrif: "◂", blacktriangleright: "▸", rtrif: "▸", blank: "␣", blk12: "▒", blk14: "░", blk34: "▓", block: "█", bne: "=⃥", bnequiv: "≡⃥", bnot: "⌐", bopf: "𝕓", bowtie: "⋈", boxDL: "╗", boxDR: "╔", boxDl: "╖", boxDr: "╓", boxH: "═", boxHD: "╦", boxHU: "╩", boxHd: "╤", boxHu: "╧", boxUL: "╝", boxUR: "╚", boxUl: "╜", boxUr: "╙", boxV: "║", boxVH: "╬", boxVL: "╣", boxVR: "╠", boxVh: "╫", boxVl: "╢", boxVr: "╟", boxbox: "⧉", boxdL: "╕", boxdR: "╒", boxdl: "┐", boxdr: "┌", boxhD: "╥", boxhU: "╨", boxhd: "┬", boxhu: "┴", boxminus: "⊟", minusb: "⊟", boxplus: "⊞", plusb: "⊞", boxtimes: "⊠", timesb: "⊠", boxuL: "╛", boxuR: "╘", boxul: "┘", boxur: "└", boxv: "│", boxvH: "╪", boxvL: "╡", boxvR: "╞", boxvh: "┼", boxvl: "┤", boxvr: "├", brvbar: "¦", bscr: "𝒷", bsemi: "⁏", bsol: "\\", bsolb: "⧅", bsolhsub: "⟈", bull: "•", bullet: "•", bumpE: "⪮", cacute: "ć", cap: "∩", capand: "⩄", capbrcup: "⩉", capcap: "⩋", capcup: "⩇", capdot: "⩀", caps: "∩︀", caret: "⁁", ccaps: "⩍", ccaron: "č", ccedil: "ç", ccirc: "ĉ", ccups: "⩌", ccupssm: "⩐", cdot: "ċ", cemptyv: "⦲", cent: "¢", cfr: "𝔠", chcy: "ч", check: "✓", checkmark: "✓", chi: "χ", cir: "○", cirE: "⧃", circ: "ˆ", circeq: "≗", cire: "≗", circlearrowleft: "↺", olarr: "↺", circlearrowright: "↻", orarr: "↻", circledS: "Ⓢ", oS: "Ⓢ", circledast: "⊛", oast: "⊛", circledcirc: "⊚", ocir: "⊚", circleddash: "⊝", odash: "⊝", cirfnint: "⨐", cirmid: "⫯", cirscir: "⧂", clubs: "♣", clubsuit: "♣", colon: ":", comma: ",", commat: "@", comp: "∁", complement: "∁", congdot: "⩭", copf: "𝕔", copysr: "℗", crarr: "↵", cross: "✗", cscr: "𝒸", csub: "⫏", csube: "⫑", csup: "⫐", csupe: "⫒", ctdot: "⋯", cudarrl: "⤸", cudarrr: "⤵", cuepr: "⋞", curlyeqprec: "⋞", cuesc: "⋟", curlyeqsucc: "⋟", cularr: "↶", curvearrowleft: "↶", cularrp: "⤽", cup: "∪", cupbrcap: "⩈", cupcap: "⩆", cupcup: "⩊", cupdot: "⊍", cupor: "⩅", cups: "∪︀", curarr: "↷", curvearrowright: "↷", curarrm: "⤼", curlyvee: "⋎", cuvee: "⋎", curlywedge: "⋏", cuwed: "⋏", curren: "¤", cwint: "∱", cylcty: "⌭", dHar: "⥥", dagger: "†", daleth: "ℸ", dash: "‐", hyphen: "‐", dbkarow: "⤏", rBarr: "⤏", dcaron: "ď", dcy: "д", ddarr: "⇊", downdownarrows: "⇊", ddotseq: "⩷", eDDot: "⩷", deg: "°", delta: "δ", demptyv: "⦱", dfisht: "⥿", dfr: "𝔡", diamondsuit: "♦", diams: "♦", digamma: "ϝ", gammad: "ϝ", disin: "⋲", div: "÷", divide: "÷", divideontimes: "⋇", divonx: "⋇", djcy: "ђ", dlcorn: "⌞", llcorner: "⌞", dlcrop: "⌍", dollar: "$", dopf: "𝕕", doteqdot: "≑", eDot: "≑", dotminus: "∸", minusd: "∸", dotplus: "∔", plusdo: "∔", dotsquare: "⊡", sdotb: "⊡", drcorn: "⌟", lrcorner: "⌟", drcrop: "⌌", dscr: "𝒹", dscy: "ѕ", dsol: "⧶", dstrok: "đ", dtdot: "⋱", dtri: "▿", triangledown: "▿", dwangle: "⦦", dzcy: "џ", dzigrarr: "⟿", eacute: "é", easter: "⩮", ecaron: "ě", ecir: "≖", eqcirc: "≖", ecirc: "ê", ecolon: "≕", eqcolon: "≕", ecy: "э", edot: "ė", efDot: "≒", fallingdotseq: "≒", efr: "𝔢", eg: "⪚", egrave: "è", egs: "⪖", eqslantgtr: "⪖", egsdot: "⪘", el: "⪙", elinters: "⏧", ell: "ℓ", els: "⪕", eqslantless: "⪕", elsdot: "⪗", emacr: "ē", empty: "∅", emptyset: "∅", emptyv: "∅", varnothing: "∅", emsp13: " ", emsp14: " ", emsp: " ", eng: "ŋ", ensp: " ", eogon: "ę", eopf: "𝕖", epar: "⋕", eparsl: "⧣", eplus: "⩱", epsi: "ε", epsilon: "ε", epsiv: "ϵ", straightepsilon: "ϵ", varepsilon: "ϵ", equals: "=", equest: "≟", questeq: "≟", equivDD: "⩸", eqvparsl: "⧥", erDot: "≓", risingdotseq: "≓", erarr: "⥱", escr: "ℯ", eta: "η", eth: "ð", euml: "ë", euro: "€", excl: "!", fcy: "ф", female: "♀", ffilig: "ffi", fflig: "ff", ffllig: "ffl", ffr: "𝔣", filig: "fi", fjlig: "fj", flat: "♭", fllig: "fl", fltns: "▱", fnof: "ƒ", fopf: "𝕗", fork: "⋔", pitchfork: "⋔", forkv: "⫙", fpartint: "⨍", frac12: "½", half: "½", frac13: "⅓", frac14: "¼", frac15: "⅕", frac16: "⅙", frac18: "⅛", frac23: "⅔", frac25: "⅖", frac34: "¾", frac35: "⅗", frac38: "⅜", frac45: "⅘", frac56: "⅚", frac58: "⅝", frac78: "⅞", frasl: "⁄", frown: "⌢", sfrown: "⌢", fscr: "𝒻", gEl: "⪌", gtreqqless: "⪌", gacute: "ǵ", gamma: "γ", gap: "⪆", gtrapprox: "⪆", gbreve: "ğ", gcirc: "ĝ", gcy: "г", gdot: "ġ", gescc: "⪩", gesdot: "⪀", gesdoto: "⪂", gesdotol: "⪄", gesl: "⋛︀", gesles: "⪔", gfr: "𝔤", gimel: "ℷ", gjcy: "ѓ", glE: "⪒", gla: "⪥", glj: "⪤", gnE: "≩", gneqq: "≩", gnap: "⪊", gnapprox: "⪊", gne: "⪈", gneq: "⪈", gnsim: "⋧", gopf: "𝕘", gscr: "ℊ", gsime: "⪎", gsiml: "⪐", gtcc: "⪧", gtcir: "⩺", gtdot: "⋗", gtrdot: "⋗", gtlPar: "⦕", gtquest: "⩼", gtrarr: "⥸", gvertneqq: "≩︀", gvnE: "≩︀", hardcy: "ъ", harrcir: "⥈", harrw: "↭", leftrightsquigarrow: "↭", hbar: "ℏ", hslash: "ℏ", planck: "ℏ", plankv: "ℏ", hcirc: "ĥ", hearts: "♥", heartsuit: "♥", hellip: "…", mldr: "…", hercon: "⊹", hfr: "𝔥", hksearow: "⤥", searhk: "⤥", hkswarow: "⤦", swarhk: "⤦", hoarr: "⇿", homtht: "∻", hookleftarrow: "↩", larrhk: "↩", hookrightarrow: "↪", rarrhk: "↪", hopf: "𝕙", horbar: "―", hscr: "𝒽", hstrok: "ħ", hybull: "⁃", iacute: "í", icirc: "î", icy: "и", iecy: "е", iexcl: "¡", ifr: "𝔦", igrave: "ì", iiiint: "⨌", qint: "⨌", iiint: "∭", tint: "∭", iinfin: "⧜", iiota: "℩", ijlig: "ij", imacr: "ī", imath: "ı", inodot: "ı", imof: "⊷", imped: "Ƶ", incare: "℅", infin: "∞", infintie: "⧝", intcal: "⊺", intercal: "⊺", intlarhk: "⨗", intprod: "⨼", iprod: "⨼", iocy: "ё", iogon: "į", iopf: "𝕚", iota: "ι", iquest: "¿", iscr: "𝒾", isinE: "⋹", isindot: "⋵", isins: "⋴", isinsv: "⋳", itilde: "ĩ", iukcy: "і", iuml: "ï", jcirc: "ĵ", jcy: "й", jfr: "𝔧", jmath: "ȷ", jopf: "𝕛", jscr: "𝒿", jsercy: "ј", jukcy: "є", kappa: "κ", kappav: "ϰ", varkappa: "ϰ", kcedil: "ķ", kcy: "к", kfr: "𝔨", kgreen: "ĸ", khcy: "х", kjcy: "ќ", kopf: "𝕜", kscr: "𝓀", lAtail: "⤛", lBarr: "⤎", lEg: "⪋", lesseqqgtr: "⪋", lHar: "⥢", lacute: "ĺ", laemptyv: "⦴", lambda: "λ", langd: "⦑", lap: "⪅", lessapprox: "⪅", laquo: "«", larrbfs: "⤟", larrfs: "⤝", larrlp: "↫", looparrowleft: "↫", larrpl: "⤹", larrsim: "⥳", larrtl: "↢", leftarrowtail: "↢", lat: "⪫", latail: "⤙", late: "⪭", lates: "⪭︀", lbarr: "⤌", lbbrk: "❲", lbrace: "{", lcub: "{", lbrack: "[", lsqb: "[", lbrke: "⦋", lbrksld: "⦏", lbrkslu: "⦍", lcaron: "ľ", lcedil: "ļ", lcy: "л", ldca: "⤶", ldrdhar: "⥧", ldrushar: "⥋", ldsh: "↲", le: "≤", leq: "≤", leftleftarrows: "⇇", llarr: "⇇", leftthreetimes: "⋋", lthree: "⋋", lescc: "⪨", lesdot: "⩿", lesdoto: "⪁", lesdotor: "⪃", lesg: "⋚︀", lesges: "⪓", lessdot: "⋖", ltdot: "⋖", lfisht: "⥼", lfr: "𝔩", lgE: "⪑", lharul: "⥪", lhblk: "▄", ljcy: "љ", llhard: "⥫", lltri: "◺", lmidot: "ŀ", lmoust: "⎰", lmoustache: "⎰", lnE: "≨", lneqq: "≨", lnap: "⪉", lnapprox: "⪉", lne: "⪇", lneq: "⪇", lnsim: "⋦", loang: "⟬", loarr: "⇽", longmapsto: "⟼", xmap: "⟼", looparrowright: "↬", rarrlp: "↬", lopar: "⦅", lopf: "𝕝", loplus: "⨭", lotimes: "⨴", lowast: "∗", loz: "◊", lozenge: "◊", lpar: "(", lparlt: "⦓", lrhard: "⥭", lrm: "", lrtri: "⊿", lsaquo: "‹", lscr: "𝓁", lsime: "⪍", lsimg: "⪏", lsquor: "‚", sbquo: "‚", lstrok: "ł", ltcc: "⪦", ltcir: "⩹", ltimes: "⋉", ltlarr: "⥶", ltquest: "⩻", ltrPar: "⦖", ltri: "◃", triangleleft: "◃", lurdshar: "⥊", luruhar: "⥦", lvertneqq: "≨︀", lvnE: "≨︀", mDDot: "∺", macr: "¯", strns: "¯", male: "♂", malt: "✠", maltese: "✠", marker: "▮", mcomma: "⨩", mcy: "м", mdash: "—", mfr: "𝔪", mho: "℧", micro: "µ", midcir: "⫰", minus: "−", minusdu: "⨪", mlcp: "⫛", models: "⊧", mopf: "𝕞", mscr: "𝓂", mu: "μ", multimap: "⊸", mumap: "⊸", nGg: "⋙̸", nGt: "≫⃒", nLeftarrow: "⇍", nlArr: "⇍", nLeftrightarrow: "⇎", nhArr: "⇎", nLl: "⋘̸", nLt: "≪⃒", nRightarrow: "⇏", nrArr: "⇏", nVDash: "⊯", nVdash: "⊮", nacute: "ń", nang: "∠⃒", napE: "⩰̸", napid: "≋̸", napos: "ʼn", natur: "♮", natural: "♮", ncap: "⩃", ncaron: "ň", ncedil: "ņ", ncongdot: "⩭̸", ncup: "⩂", ncy: "н", ndash: "–", neArr: "⇗", nearhk: "⤤", nedot: "≐̸", nesear: "⤨", toea: "⤨", nfr: "𝔫", nharr: "↮", nleftrightarrow: "↮", nhpar: "⫲", nis: "⋼", nisd: "⋺", njcy: "њ", nlE: "≦̸", nleqq: "≦̸", nlarr: "↚", nleftarrow: "↚", nldr: "‥", nopf: "𝕟", not: "¬", notinE: "⋹̸", notindot: "⋵̸", notinvb: "⋷", notinvc: "⋶", notnivb: "⋾", notnivc: "⋽", nparsl: "⫽⃥", npart: "∂̸", npolint: "⨔", nrarr: "↛", nrightarrow: "↛", nrarrc: "⤳̸", nrarrw: "↝̸", nscr: "𝓃", nsub: "⊄", nsubE: "⫅̸", nsubseteqq: "⫅̸", nsup: "⊅", nsupE: "⫆̸", nsupseteqq: "⫆̸", ntilde: "ñ", nu: "ν", num: "#", numero: "№", numsp: " ", nvDash: "⊭", nvHarr: "⤄", nvap: "≍⃒", nvdash: "⊬", nvge: "≥⃒", nvgt: ">⃒", nvinfin: "⧞", nvlArr: "⤂", nvle: "≤⃒", nvlt: "<⃒", nvltrie: "⊴⃒", nvrArr: "⤃", nvrtrie: "⊵⃒", nvsim: "∼⃒", nwArr: "⇖", nwarhk: "⤣", nwnear: "⤧", oacute: "ó", ocirc: "ô", ocy: "о", odblac: "ő", odiv: "⨸", odsold: "⦼", oelig: "œ", ofcir: "⦿", ofr: "𝔬", ogon: "˛", ograve: "ò", ogt: "⧁", ohbar: "⦵", olcir: "⦾", olcross: "⦻", olt: "⧀", omacr: "ō", omega: "ω", omicron: "ο", omid: "⦶", oopf: "𝕠", opar: "⦷", operp: "⦹", or: "∨", vee: "∨", ord: "⩝", order: "ℴ", orderof: "ℴ", oscr: "ℴ", ordf: "ª", ordm: "º", origof: "⊶", oror: "⩖", orslope: "⩗", orv: "⩛", oslash: "ø", osol: "⊘", otilde: "õ", otimesas: "⨶", ouml: "ö", ovbar: "⌽", para: "¶", parsim: "⫳", parsl: "⫽", pcy: "п", percnt: "%", period: ".", permil: "‰", pertenk: "‱", pfr: "𝔭", phi: "φ", phiv: "ϕ", straightphi: "ϕ", varphi: "ϕ", phone: "☎", pi: "π", piv: "ϖ", varpi: "ϖ", planckh: "ℎ", plus: "+", plusacir: "⨣", pluscir: "⨢", plusdu: "⨥", pluse: "⩲", plussim: "⨦", plustwo: "⨧", pointint: "⨕", popf: "𝕡", pound: "£", prE: "⪳", prap: "⪷", precapprox: "⪷", precnapprox: "⪹", prnap: "⪹", precneqq: "⪵", prnE: "⪵", precnsim: "⋨", prnsim: "⋨", prime: "′", profalar: "⌮", profline: "⌒", profsurf: "⌓", prurel: "⊰", pscr: "𝓅", psi: "ψ", puncsp: " ", qfr: "𝔮", qopf: "𝕢", qprime: "⁗", qscr: "𝓆", quatint: "⨖", quest: "?", rAtail: "⤜", rHar: "⥤", race: "∽̱", racute: "ŕ", raemptyv: "⦳", rangd: "⦒", range: "⦥", raquo: "»", rarrap: "⥵", rarrbfs: "⤠", rarrc: "⤳", rarrfs: "⤞", rarrpl: "⥅", rarrsim: "⥴", rarrtl: "↣", rightarrowtail: "↣", rarrw: "↝", rightsquigarrow: "↝", ratail: "⤚", ratio: "∶", rbbrk: "❳", rbrace: "}", rcub: "}", rbrack: "]", rsqb: "]", rbrke: "⦌", rbrksld: "⦎", rbrkslu: "⦐", rcaron: "ř", rcedil: "ŗ", rcy: "р", rdca: "⤷", rdldhar: "⥩", rdsh: "↳", rect: "▭", rfisht: "⥽", rfr: "𝔯", rharul: "⥬", rho: "ρ", rhov: "ϱ", varrho: "ϱ", rightrightarrows: "⇉", rrarr: "⇉", rightthreetimes: "⋌", rthree: "⋌", ring: "˚", rlm: "", rmoust: "⎱", rmoustache: "⎱", rnmid: "⫮", roang: "⟭", roarr: "⇾", ropar: "⦆", ropf: "𝕣", roplus: "⨮", rotimes: "⨵", rpar: ")", rpargt: "⦔", rppolint: "⨒", rsaquo: "›", rscr: "𝓇", rtimes: "⋊", rtri: "▹", triangleright: "▹", rtriltri: "⧎", ruluhar: "⥨", rx: "℞", sacute: "ś", scE: "⪴", scap: "⪸", succapprox: "⪸", scaron: "š", scedil: "ş", scirc: "ŝ", scnE: "⪶", succneqq: "⪶", scnap: "⪺", succnapprox: "⪺", scnsim: "⋩", succnsim: "⋩", scpolint: "⨓", scy: "с", sdot: "⋅", sdote: "⩦", seArr: "⇘", sect: "§", semi: ";", seswar: "⤩", tosa: "⤩", sext: "✶", sfr: "𝔰", sharp: "♯", shchcy: "щ", shcy: "ш", shy: "", sigma: "σ", sigmaf: "ς", sigmav: "ς", varsigma: "ς", simdot: "⩪", simg: "⪞", simgE: "⪠", siml: "⪝", simlE: "⪟", simne: "≆", simplus: "⨤", simrarr: "⥲", smashp: "⨳", smeparsl: "⧤", smile: "⌣", ssmile: "⌣", smt: "⪪", smte: "⪬", smtes: "⪬︀", softcy: "ь", sol: "/", solb: "⧄", solbar: "⌿", sopf: "𝕤", spades: "♠", spadesuit: "♠", sqcaps: "⊓︀", sqcups: "⊔︀", sscr: "𝓈", star: "☆", sub: "⊂", subset: "⊂", subE: "⫅", subseteqq: "⫅", subdot: "⪽", subedot: "⫃", submult: "⫁", subnE: "⫋", subsetneqq: "⫋", subne: "⊊", subsetneq: "⊊", subplus: "⪿", subrarr: "⥹", subsim: "⫇", subsub: "⫕", subsup: "⫓", sung: "♪", sup1: "¹", sup2: "²", sup3: "³", supE: "⫆", supseteqq: "⫆", supdot: "⪾", supdsub: "⫘", supedot: "⫄", suphsol: "⟉", suphsub: "⫗", suplarr: "⥻", supmult: "⫂", supnE: "⫌", supsetneqq: "⫌", supne: "⊋", supsetneq: "⊋", supplus: "⫀", supsim: "⫈", supsub: "⫔", supsup: "⫖", swArr: "⇙", swnwar: "⤪", szlig: "ß", target: "⌖", tau: "τ", tcaron: "ť", tcedil: "ţ", tcy: "т", telrec: "⌕", tfr: "𝔱", theta: "θ", thetasym: "ϑ", thetav: "ϑ", vartheta: "ϑ", thorn: "þ", times: "×", timesbar: "⨱", timesd: "⨰", topbot: "⌶", topcir: "⫱", topf: "𝕥", topfork: "⫚", tprime: "‴", triangle: "▵", utri: "▵", triangleq: "≜", trie: "≜", tridot: "◬", triminus: "⨺", triplus: "⨹", trisb: "⧍", tritime: "⨻", trpezium: "⏢", tscr: "𝓉", tscy: "ц", tshcy: "ћ", tstrok: "ŧ", uHar: "⥣", uacute: "ú", ubrcy: "ў", ubreve: "ŭ", ucirc: "û", ucy: "у", udblac: "ű", ufisht: "⥾", ufr: "𝔲", ugrave: "ù", uhblk: "▀", ulcorn: "⌜", ulcorner: "⌜", ulcrop: "⌏", ultri: "◸", umacr: "ū", uogon: "ų", uopf: "𝕦", upsi: "υ", upsilon: "υ", upuparrows: "⇈", uuarr: "⇈", urcorn: "⌝", urcorner: "⌝", urcrop: "⌎", uring: "ů", urtri: "◹", uscr: "𝓊", utdot: "⋰", utilde: "ũ", uuml: "ü", uwangle: "⦧", vBar: "⫨", vBarv: "⫩", vangrt: "⦜", varsubsetneq: "⊊︀", vsubne: "⊊︀", varsubsetneqq: "⫋︀", vsubnE: "⫋︀", varsupsetneq: "⊋︀", vsupne: "⊋︀", varsupsetneqq: "⫌︀", vsupnE: "⫌︀", vcy: "в", veebar: "⊻", veeeq: "≚", vellip: "⋮", vfr: "𝔳", vopf: "𝕧", vscr: "𝓋", vzigzag: "⦚", wcirc: "ŵ", wedbar: "⩟", wedgeq: "≙", weierp: "℘", wp: "℘", wfr: "𝔴", wopf: "𝕨", wscr: "𝓌", xfr: "𝔵", xi: "ξ", xnis: "⋻", xopf: "𝕩", xscr: "𝓍", yacute: "ý", yacy: "я", ycirc: "ŷ", ycy: "ы", yen: "¥", yfr: "𝔶", yicy: "ї", yopf: "𝕪", yscr: "𝓎", yucy: "ю", yuml: "ÿ", zacute: "ź", zcaron: "ž", zcy: "з", zdot: "ż", zeta: "ζ", zfr: "𝔷", zhcy: "ж", zigrarr: "⇝", zopf: "𝕫", zscr: "𝓏", zwj: "", zwnj: "" };
|
|
3848
|
+
Mt.ngsp = "";
|
|
3842
3849
|
var C = (function(e) {
|
|
3843
3850
|
return e[e.TAG_OPEN_START = 0] = "TAG_OPEN_START", e[e.TAG_OPEN_END = 1] = "TAG_OPEN_END", e[e.TAG_OPEN_END_VOID = 2] = "TAG_OPEN_END_VOID", e[e.TAG_CLOSE = 3] = "TAG_CLOSE", e[e.INCOMPLETE_TAG_OPEN = 4] = "INCOMPLETE_TAG_OPEN", e[e.TEXT = 5] = "TEXT", e[e.ESCAPABLE_RAW_TEXT = 6] = "ESCAPABLE_RAW_TEXT", e[e.RAW_TEXT = 7] = "RAW_TEXT", e[e.INTERPOLATION = 8] = "INTERPOLATION", e[e.ENCODED_ENTITY = 9] = "ENCODED_ENTITY", e[e.COMMENT_START = 10] = "COMMENT_START", e[e.COMMENT_END = 11] = "COMMENT_END", e[e.CDATA_START = 12] = "CDATA_START", e[e.CDATA_END = 13] = "CDATA_END", e[e.ATTR_NAME = 14] = "ATTR_NAME", e[e.ATTR_QUOTE = 15] = "ATTR_QUOTE", e[e.ATTR_VALUE_TEXT = 16] = "ATTR_VALUE_TEXT", e[e.ATTR_VALUE_INTERPOLATION = 17] = "ATTR_VALUE_INTERPOLATION", e[e.DOC_TYPE_START = 18] = "DOC_TYPE_START", e[e.DOC_TYPE_END = 19] = "DOC_TYPE_END", e[e.EXPANSION_FORM_START = 20] = "EXPANSION_FORM_START", e[e.EXPANSION_CASE_VALUE = 21] = "EXPANSION_CASE_VALUE", e[e.EXPANSION_CASE_EXP_START = 22] = "EXPANSION_CASE_EXP_START", e[e.EXPANSION_CASE_EXP_END = 23] = "EXPANSION_CASE_EXP_END", e[e.EXPANSION_FORM_END = 24] = "EXPANSION_FORM_END", e[e.BLOCK_OPEN_START = 25] = "BLOCK_OPEN_START", e[e.BLOCK_OPEN_END = 26] = "BLOCK_OPEN_END", e[e.BLOCK_CLOSE = 27] = "BLOCK_CLOSE", e[e.BLOCK_PARAMETER = 28] = "BLOCK_PARAMETER", e[e.INCOMPLETE_BLOCK_OPEN = 29] = "INCOMPLETE_BLOCK_OPEN", e[e.LET_START = 30] = "LET_START", e[e.LET_VALUE = 31] = "LET_VALUE", e[e.LET_END = 32] = "LET_END", e[e.INCOMPLETE_LET = 33] = "INCOMPLETE_LET", e[e.COMPONENT_OPEN_START = 34] = "COMPONENT_OPEN_START", e[e.COMPONENT_OPEN_END = 35] = "COMPONENT_OPEN_END", e[e.COMPONENT_OPEN_END_VOID = 36] = "COMPONENT_OPEN_END_VOID", e[e.COMPONENT_CLOSE = 37] = "COMPONENT_CLOSE", e[e.INCOMPLETE_COMPONENT_OPEN = 38] = "INCOMPLETE_COMPONENT_OPEN", e[e.DIRECTIVE_NAME = 39] = "DIRECTIVE_NAME", e[e.DIRECTIVE_OPEN = 40] = "DIRECTIVE_OPEN", e[e.DIRECTIVE_CLOSE = 41] = "DIRECTIVE_CLOSE", e[e.EOF = 42] = "EOF", e;
|
|
3844
|
-
})({})
|
|
3851
|
+
})({});
|
|
3852
|
+
function lr(e) {
|
|
3853
|
+
return e >= 9 && e <= 32 || e == 160;
|
|
3854
|
+
}
|
|
3855
|
+
function qt(e) {
|
|
3856
|
+
return 48 <= e && e <= 57;
|
|
3857
|
+
}
|
|
3858
|
+
function Vt(e) {
|
|
3859
|
+
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3860
|
+
}
|
|
3861
|
+
function Bl(e) {
|
|
3862
|
+
return e >= 97 && e <= 102 || e >= 65 && e <= 70 || qt(e);
|
|
3863
|
+
}
|
|
3864
|
+
function jt(e) {
|
|
3865
|
+
return e === 10 || e === 13;
|
|
3866
|
+
}
|
|
3867
|
+
function xu(e) {
|
|
3868
|
+
return 48 <= e && e <= 55;
|
|
3869
|
+
}
|
|
3870
|
+
function jr(e) {
|
|
3871
|
+
return e === 39 || e === 34 || e === 96;
|
|
3872
|
+
}
|
|
3873
|
+
var Nl = class {
|
|
3845
3874
|
constructor(e, r, u) {
|
|
3846
3875
|
this.tokens = e, this.errors = r, this.nonNormalizedIcuExpressions = u;
|
|
3847
3876
|
}
|
|
3848
3877
|
};
|
|
3849
3878
|
function Ll(e, r, u, a = {}) {
|
|
3850
|
-
let o = new Rl(new
|
|
3879
|
+
let o = new Rl(new Su(e, r), u, a);
|
|
3851
3880
|
return o.tokenize(), new Nl(Ul(o.tokens), o.errors, o.nonNormalizedIcuExpressions);
|
|
3852
3881
|
}
|
|
3853
3882
|
var Ol = /\r\n?/g;
|
|
@@ -3857,16 +3886,35 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3857
3886
|
function Bu(e) {
|
|
3858
3887
|
return `Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`;
|
|
3859
3888
|
}
|
|
3860
|
-
function
|
|
3889
|
+
function Il(e, r) {
|
|
3861
3890
|
return `Unable to parse entity "${r}" - ${e} character reference entities must end with ";"`;
|
|
3862
3891
|
}
|
|
3863
3892
|
var Hr = (function(e) {
|
|
3864
3893
|
return e.HEX = "hexadecimal", e.DEC = "decimal", e;
|
|
3865
|
-
})(Hr || {}),
|
|
3894
|
+
})(Hr || {}), Pl = ["@if", "@else", "@for", "@switch", "@case", "@default", "@empty", "@defer", "@placeholder", "@loading", "@error"], Ht = { start: "{{", end: "}}" }, Rl = class {
|
|
3895
|
+
_cursor;
|
|
3896
|
+
_tokenizeIcu;
|
|
3897
|
+
_leadingTriviaCodePoints;
|
|
3898
|
+
_canSelfClose;
|
|
3899
|
+
_allowHtmComponentClosingTags;
|
|
3900
|
+
_currentTokenStart = null;
|
|
3901
|
+
_currentTokenType = null;
|
|
3902
|
+
_expansionCaseStack = [];
|
|
3903
|
+
_openDirectiveCount = 0;
|
|
3904
|
+
_inInterpolation = !1;
|
|
3905
|
+
_preserveLineEndings;
|
|
3906
|
+
_i18nNormalizeLineEndingsInICUs;
|
|
3907
|
+
_fullNameStack = [];
|
|
3908
|
+
_tokenizeBlocks;
|
|
3909
|
+
_tokenizeLet;
|
|
3910
|
+
_selectorlessEnabled;
|
|
3911
|
+
tokens = [];
|
|
3912
|
+
errors = [];
|
|
3913
|
+
nonNormalizedIcuExpressions = [];
|
|
3866
3914
|
constructor(e, r, u) {
|
|
3867
|
-
this._getTagContentType = r, this.
|
|
3915
|
+
this._getTagContentType = r, this._tokenizeIcu = u.tokenizeExpansionForms || !1, this._leadingTriviaCodePoints = u.leadingTriviaChars && u.leadingTriviaChars.map((o) => o.codePointAt(0) || 0), this._canSelfClose = u.canSelfClose || !1, this._allowHtmComponentClosingTags = u.allowHtmComponentClosingTags || !1;
|
|
3868
3916
|
let a = u.range || { endPos: e.content.length, startPos: 0, startLine: 0, startCol: 0 };
|
|
3869
|
-
this._cursor = u.escapedString ? new Wl(e, a) : new
|
|
3917
|
+
this._cursor = u.escapedString ? new Wl(e, a) : new Pu(e, a), this._preserveLineEndings = u.preserveLineEndings || !1, this._i18nNormalizeLineEndingsInICUs = u.i18nNormalizeLineEndingsInICUs || !1, this._tokenizeBlocks = u.tokenizeBlocks ?? !0, this._tokenizeLet = u.tokenizeLet ?? !0, this._selectorlessEnabled = u.selectorlessEnabled ?? !1;
|
|
3870
3918
|
try {
|
|
3871
3919
|
this._cursor.init();
|
|
3872
3920
|
} catch (o) {
|
|
@@ -3896,7 +3944,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3896
3944
|
}
|
|
3897
3945
|
_getBlockName() {
|
|
3898
3946
|
let e = !1, r = this._cursor.clone();
|
|
3899
|
-
return this._attemptCharCodeUntilFn((u) =>
|
|
3947
|
+
return this._attemptCharCodeUntilFn((u) => lr(u) ? !e : $l(u) ? (e = !0, !1) : !0), this._cursor.getChars(r).trim();
|
|
3900
3948
|
}
|
|
3901
3949
|
_consumeBlockStart(e) {
|
|
3902
3950
|
this._requireCharCode(64), this._beginToken(C.BLOCK_OPEN_START, e);
|
|
@@ -3906,6 +3954,10 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3906
3954
|
r.type = C.INCOMPLETE_BLOCK_OPEN;
|
|
3907
3955
|
return;
|
|
3908
3956
|
}
|
|
3957
|
+
if (r.parts[0] === "default never" && this._attemptCharCode(59)) {
|
|
3958
|
+
this._beginToken(C.BLOCK_OPEN_END), this._endToken([]), this._beginToken(C.BLOCK_CLOSE), this._endToken([]);
|
|
3959
|
+
return;
|
|
3960
|
+
}
|
|
3909
3961
|
this._attemptCharCode(123) ? (this._beginToken(C.BLOCK_OPEN_END), this._endToken([])) : this._isBlockStart() && (r.parts[0] === "case" || r.parts[0] === "default") ? (this._beginToken(C.BLOCK_OPEN_END), this._endToken([]), this._beginToken(C.BLOCK_CLOSE), this._endToken([])) : r.type = C.INCOMPLETE_BLOCK_OPEN;
|
|
3910
3962
|
}
|
|
3911
3963
|
_consumeBlockEnd(e) {
|
|
@@ -3919,7 +3971,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3919
3971
|
let a = this._cursor.peek();
|
|
3920
3972
|
if (a === 92) this._cursor.advance();
|
|
3921
3973
|
else if (a === r) r = null;
|
|
3922
|
-
else if (r === null &&
|
|
3974
|
+
else if (r === null && jr(a)) r = a;
|
|
3923
3975
|
else if (a === 40 && r === null) u++;
|
|
3924
3976
|
else if (a === 41 && r === null) {
|
|
3925
3977
|
if (u === 0) break;
|
|
@@ -3931,7 +3983,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3931
3983
|
}
|
|
3932
3984
|
}
|
|
3933
3985
|
_consumeLetDeclaration(e) {
|
|
3934
|
-
if (this._requireStr("@let"), this._beginToken(C.LET_START, e),
|
|
3986
|
+
if (this._requireStr("@let"), this._beginToken(C.LET_START, e), lr(this._cursor.peek())) this._attemptCharCodeUntilFn(U);
|
|
3935
3987
|
else {
|
|
3936
3988
|
let u = this._endToken([this._cursor.getChars(e)]);
|
|
3937
3989
|
u.type = C.INCOMPLETE_LET;
|
|
@@ -3942,18 +3994,18 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
3942
3994
|
r.type = C.INCOMPLETE_LET;
|
|
3943
3995
|
return;
|
|
3944
3996
|
}
|
|
3945
|
-
this._attemptCharCodeUntilFn((u) => U(u) && !
|
|
3997
|
+
this._attemptCharCodeUntilFn((u) => U(u) && !jt(u)), this._consumeLetDeclarationValue(), this._cursor.peek() === 59 ? (this._beginToken(C.LET_END), this._endToken([]), this._cursor.advance()) : (r.type = C.INCOMPLETE_LET, r.sourceSpan = this._cursor.getSpan(e));
|
|
3946
3998
|
}
|
|
3947
3999
|
_getLetDeclarationName() {
|
|
3948
4000
|
let e = this._cursor.clone(), r = !1;
|
|
3949
|
-
return this._attemptCharCodeUntilFn((u) =>
|
|
4001
|
+
return this._attemptCharCodeUntilFn((u) => Vt(u) || u === 36 || u === 95 || r && qt(u) ? (r = !0, !1) : !0), this._cursor.getChars(e).trim();
|
|
3950
4002
|
}
|
|
3951
4003
|
_consumeLetDeclarationValue() {
|
|
3952
4004
|
let e = this._cursor.clone();
|
|
3953
4005
|
for (this._beginToken(C.LET_VALUE, e); this._cursor.peek() !== 0; ) {
|
|
3954
4006
|
let r = this._cursor.peek();
|
|
3955
4007
|
if (r === 59) break;
|
|
3956
|
-
|
|
4008
|
+
jr(r) && (this._cursor.advance(), this._attemptCharCodeUntilFn((u) => u === 92 ? (this._cursor.advance(), !1) : u === r)), this._cursor.advance();
|
|
3957
4009
|
}
|
|
3958
4010
|
this._endToken([this._cursor.getChars(e)]);
|
|
3959
4011
|
}
|
|
@@ -4038,7 +4090,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4038
4090
|
return !0;
|
|
4039
4091
|
}
|
|
4040
4092
|
_isBlockStart() {
|
|
4041
|
-
return this._cursor.peek() === 64 &&
|
|
4093
|
+
return this._cursor.peek() === 64 && Pl.some((e) => this._peekStr(e));
|
|
4042
4094
|
}
|
|
4043
4095
|
_isLetStart() {
|
|
4044
4096
|
return this._cursor.peek() === 64 && this._peekStr("@let");
|
|
@@ -4051,7 +4103,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4051
4103
|
if (this._attemptCharCodeUntilFn(ql), this._cursor.peek() != 59) {
|
|
4052
4104
|
this._cursor.advance();
|
|
4053
4105
|
let p = u ? Hr.HEX : Hr.DEC;
|
|
4054
|
-
throw this._createError(
|
|
4106
|
+
throw this._createError(Il(p, this._cursor.getChars(r)), this._cursor.getSpan());
|
|
4055
4107
|
}
|
|
4056
4108
|
let o = this._cursor.getChars(a);
|
|
4057
4109
|
this._cursor.advance();
|
|
@@ -4067,7 +4119,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4067
4119
|
else {
|
|
4068
4120
|
let a = this._cursor.getChars(u);
|
|
4069
4121
|
this._cursor.advance();
|
|
4070
|
-
let o =
|
|
4122
|
+
let o = Mt.hasOwnProperty(a) && Mt[a];
|
|
4071
4123
|
if (!o) throw this._createError(Bu(a), this._cursor.getSpan(r));
|
|
4072
4124
|
this._endToken([o, `&${a};`]);
|
|
4073
4125
|
}
|
|
@@ -4103,20 +4155,44 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4103
4155
|
let o = this._cursor.getChars(a);
|
|
4104
4156
|
return [u, o];
|
|
4105
4157
|
}
|
|
4158
|
+
_consumeSingleLineComment() {
|
|
4159
|
+
this._attemptCharCodeUntilFn((e) => jt(e) || e === 0), this._attemptCharCodeUntilFn(U);
|
|
4160
|
+
}
|
|
4161
|
+
_consumeMultiLineComment() {
|
|
4162
|
+
this._attemptCharCodeUntilFn((e) => {
|
|
4163
|
+
if (e === 0) return !0;
|
|
4164
|
+
if (e === 42) {
|
|
4165
|
+
let r = this._cursor.clone();
|
|
4166
|
+
return r.advance(), r.peek() === 47;
|
|
4167
|
+
}
|
|
4168
|
+
return !1;
|
|
4169
|
+
}), this._attemptStr("*/") && this._attemptCharCodeUntilFn(U);
|
|
4170
|
+
}
|
|
4106
4171
|
_consumeTagOpen(e) {
|
|
4107
4172
|
let r, u, a, o, p = [];
|
|
4108
4173
|
try {
|
|
4109
4174
|
if (this._selectorlessEnabled && cr(this._cursor.peek())) o = this._consumeComponentOpenStart(e), [a, u, r] = o.parts, u && (a += `:${u}`), r && (a += `:${r}`), this._attemptCharCodeUntilFn(U);
|
|
4110
4175
|
else {
|
|
4111
|
-
if (!
|
|
4176
|
+
if (!Vt(this._cursor.peek())) throw this._createError(Ke(this._cursor.peek()), this._cursor.getSpan(e));
|
|
4112
4177
|
o = this._consumeTagOpenStart(e), u = o.parts[0], r = a = o.parts[1], this._attemptCharCodeUntilFn(U);
|
|
4113
4178
|
}
|
|
4114
|
-
for (;
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4179
|
+
for (; ; ) {
|
|
4180
|
+
if (this._attemptStr("//")) {
|
|
4181
|
+
this._consumeSingleLineComment();
|
|
4182
|
+
continue;
|
|
4183
|
+
}
|
|
4184
|
+
if (this._attemptStr("/*")) {
|
|
4185
|
+
this._consumeMultiLineComment();
|
|
4186
|
+
continue;
|
|
4187
|
+
}
|
|
4188
|
+
if (Iu(this._cursor.peek())) break;
|
|
4189
|
+
if (this._selectorlessEnabled && this._cursor.peek() === 64) {
|
|
4190
|
+
let g = this._cursor.clone(), y = g.clone();
|
|
4191
|
+
y.advance(), cr(y.peek()) && this._consumeDirective(g, y);
|
|
4192
|
+
} else {
|
|
4193
|
+
let g = this._consumeAttribute();
|
|
4194
|
+
p.push(g);
|
|
4195
|
+
}
|
|
4120
4196
|
}
|
|
4121
4197
|
o.type === C.COMPONENT_OPEN_START ? this._consumeComponentOpenEnd() : this._consumeTagOpenEnd();
|
|
4122
4198
|
} catch (g) {
|
|
@@ -4172,7 +4248,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4172
4248
|
};
|
|
4173
4249
|
} else if (e === 91) {
|
|
4174
4250
|
let a = 0;
|
|
4175
|
-
r = (o) => (o === 91 ? a++ : o === 93 && a--, a <= 0 ? Je(o) :
|
|
4251
|
+
r = (o) => (o === 91 ? a++ : o === 93 && a--, a <= 0 ? Je(o) : jt(o));
|
|
4176
4252
|
} else r = Je;
|
|
4177
4253
|
let u = this._consumePrefixAndName(r);
|
|
4178
4254
|
return this._endToken(u), u;
|
|
@@ -4246,7 +4322,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4246
4322
|
let o = [];
|
|
4247
4323
|
for (; !u(); ) {
|
|
4248
4324
|
let f = this._cursor.clone();
|
|
4249
|
-
this._attemptStr(
|
|
4325
|
+
this._attemptStr(Ht.start) ? (this._endToken([this._processCarriageReturns(o.join(""))], f), o.length = 0, this._consumeInterpolation(r, f, a), this._beginToken(e)) : this._cursor.peek() === 38 ? (this._endToken([this._processCarriageReturns(o.join(""))]), o.length = 0, this._consumeEntity(e), this._beginToken(e)) : o.push(this._readChar());
|
|
4250
4326
|
}
|
|
4251
4327
|
this._inInterpolation = !1;
|
|
4252
4328
|
let p = this._processCarriageReturns(o.join(""));
|
|
@@ -4254,7 +4330,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4254
4330
|
}
|
|
4255
4331
|
_consumeInterpolation(e, r, u) {
|
|
4256
4332
|
let a = [];
|
|
4257
|
-
this._beginToken(e, r), a.push(
|
|
4333
|
+
this._beginToken(e, r), a.push(Ht.start);
|
|
4258
4334
|
let o = this._cursor.clone(), p = null, f = !1;
|
|
4259
4335
|
for (; this._cursor.peek() !== 0 && (u === null || !u()); ) {
|
|
4260
4336
|
let g = this._cursor.clone();
|
|
@@ -4262,12 +4338,12 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4262
4338
|
this._cursor = g, a.push(this._getProcessedChars(o, g)), this._endToken(a);
|
|
4263
4339
|
return;
|
|
4264
4340
|
}
|
|
4265
|
-
if (p === null) if (this._attemptStr(
|
|
4266
|
-
a.push(this._getProcessedChars(o, g)), a.push(
|
|
4341
|
+
if (p === null) if (this._attemptStr(Ht.end)) {
|
|
4342
|
+
a.push(this._getProcessedChars(o, g)), a.push(Ht.end), this._endToken(a);
|
|
4267
4343
|
return;
|
|
4268
4344
|
} else this._attemptStr("//") && (f = !0);
|
|
4269
4345
|
let y = this._cursor.peek();
|
|
4270
|
-
this._cursor.advance(), y === 92 ? this._cursor.advance() : y === p ? p = null : !f && p === null &&
|
|
4346
|
+
this._cursor.advance(), y === 92 ? this._cursor.advance() : y === p ? p = null : !f && p === null && jr(y) && (p = y);
|
|
4271
4347
|
}
|
|
4272
4348
|
a.push(this._getProcessedChars(o, this._cursor)), this._endToken(a);
|
|
4273
4349
|
}
|
|
@@ -4276,7 +4352,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4276
4352
|
this._beginToken(C.DIRECTIVE_NAME, e);
|
|
4277
4353
|
let u = this._cursor.getChars(r);
|
|
4278
4354
|
if (this._endToken([u]), this._attemptCharCodeUntilFn(U), this._cursor.peek() === 40) {
|
|
4279
|
-
for (this._openDirectiveCount++, this._beginToken(C.DIRECTIVE_OPEN), this._cursor.advance(), this._endToken([]), this._attemptCharCodeUntilFn(U); !
|
|
4355
|
+
for (this._openDirectiveCount++, this._beginToken(C.DIRECTIVE_OPEN), this._cursor.advance(), this._endToken([]), this._attemptCharCodeUntilFn(U); !Iu(this._cursor.peek()) && this._cursor.peek() !== 41; ) this._consumeAttribute();
|
|
4280
4356
|
if (this._attemptCharCodeUntilFn(U), this._openDirectiveCount--, this._cursor.peek() !== 41) {
|
|
4281
4357
|
if (this._cursor.peek() === 62 || this._cursor.peek() === 47) return;
|
|
4282
4358
|
throw this._createError(Ke(this._cursor.peek()), this._cursor.getSpan(e));
|
|
@@ -4314,32 +4390,32 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4314
4390
|
}
|
|
4315
4391
|
isExpansionFormStart() {
|
|
4316
4392
|
if (this._cursor.peek() !== 123) return !1;
|
|
4317
|
-
let e = this._cursor.clone(), r = this._attemptStr(
|
|
4393
|
+
let e = this._cursor.clone(), r = this._attemptStr(Ht.start);
|
|
4318
4394
|
return this._cursor = e, !r;
|
|
4319
4395
|
}
|
|
4320
4396
|
_handleFullNameStackForTagOpen(e, r) {
|
|
4321
|
-
let u =
|
|
4397
|
+
let u = It(e, r);
|
|
4322
4398
|
(this._fullNameStack.length === 0 || this._fullNameStack[this._fullNameStack.length - 1] === u) && this._fullNameStack.push(u);
|
|
4323
4399
|
}
|
|
4324
4400
|
_handleFullNameStackForTagClose(e, r) {
|
|
4325
|
-
let u =
|
|
4401
|
+
let u = It(e, r);
|
|
4326
4402
|
this._fullNameStack.length !== 0 && this._fullNameStack[this._fullNameStack.length - 1] === u && this._fullNameStack.pop();
|
|
4327
4403
|
}
|
|
4328
4404
|
};
|
|
4329
4405
|
function U(e) {
|
|
4330
|
-
return !
|
|
4406
|
+
return !lr(e) || e === 0;
|
|
4331
4407
|
}
|
|
4332
4408
|
function Je(e) {
|
|
4333
|
-
return
|
|
4409
|
+
return lr(e) || e === 62 || e === 60 || e === 47 || e === 39 || e === 34 || e === 61 || e === 0;
|
|
4334
4410
|
}
|
|
4335
4411
|
function Ml(e) {
|
|
4336
4412
|
return (e < 97 || 122 < e) && (e < 65 || 90 < e) && (e < 48 || e > 57);
|
|
4337
4413
|
}
|
|
4338
4414
|
function ql(e) {
|
|
4339
|
-
return e === 59 || e === 0 || !
|
|
4415
|
+
return e === 59 || e === 0 || !Bl(e);
|
|
4340
4416
|
}
|
|
4341
4417
|
function Vl(e) {
|
|
4342
|
-
return e === 59 || e === 0 || !
|
|
4418
|
+
return e === 59 || e === 0 || !(Vt(e) || qt(e));
|
|
4343
4419
|
}
|
|
4344
4420
|
function jl(e) {
|
|
4345
4421
|
return e !== 125;
|
|
@@ -4351,7 +4427,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4351
4427
|
return e >= 97 && e <= 122 ? e - 97 + 65 : e;
|
|
4352
4428
|
}
|
|
4353
4429
|
function $l(e) {
|
|
4354
|
-
return
|
|
4430
|
+
return Vt(e) || qt(e) || e === 95;
|
|
4355
4431
|
}
|
|
4356
4432
|
function Lu(e) {
|
|
4357
4433
|
return e !== 59 && U(e);
|
|
@@ -4360,9 +4436,9 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4360
4436
|
return e === 95 || e >= 65 && e <= 90;
|
|
4361
4437
|
}
|
|
4362
4438
|
function Ou(e) {
|
|
4363
|
-
return
|
|
4439
|
+
return Vt(e) || qt(e) || e === 95;
|
|
4364
4440
|
}
|
|
4365
|
-
function
|
|
4441
|
+
function Iu(e) {
|
|
4366
4442
|
return e === 47 || e === 62 || e === 60 || e === 0;
|
|
4367
4443
|
}
|
|
4368
4444
|
function Ul(e) {
|
|
@@ -4373,7 +4449,11 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4373
4449
|
}
|
|
4374
4450
|
return r;
|
|
4375
4451
|
}
|
|
4376
|
-
var
|
|
4452
|
+
var Pu = class pn {
|
|
4453
|
+
state;
|
|
4454
|
+
file;
|
|
4455
|
+
input;
|
|
4456
|
+
end;
|
|
4377
4457
|
constructor(r, u) {
|
|
4378
4458
|
if (r instanceof pn) {
|
|
4379
4459
|
this.file = r.file, this.input = r.input, this.end = r.end;
|
|
@@ -4418,15 +4498,16 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4418
4498
|
advanceState(r) {
|
|
4419
4499
|
if (r.offset >= this.end) throw this.state = r, new $r('Unexpected character "EOF"', this);
|
|
4420
4500
|
let u = this.charAt(r.offset);
|
|
4421
|
-
u === 10 ? (r.line++, r.column = 0) :
|
|
4501
|
+
u === 10 ? (r.line++, r.column = 0) : jt(u) || r.column++, r.offset++, this.updatePeek(r);
|
|
4422
4502
|
}
|
|
4423
4503
|
updatePeek(r) {
|
|
4424
4504
|
r.peek = r.offset >= this.end ? 0 : this.charAt(r.offset);
|
|
4425
4505
|
}
|
|
4426
4506
|
locationFromCursor(r) {
|
|
4427
|
-
return new
|
|
4507
|
+
return new Vr(r.file, r.state.offset, r.state.line, r.state.column);
|
|
4428
4508
|
}
|
|
4429
|
-
}, Wl = class dn extends
|
|
4509
|
+
}, Wl = class dn extends Pu {
|
|
4510
|
+
internalState;
|
|
4430
4511
|
constructor(r, u) {
|
|
4431
4512
|
r instanceof dn ? (super(r), this.internalState = { ...r.internalState }) : (super(r, u), this.internalState = this.state);
|
|
4432
4513
|
}
|
|
@@ -4465,11 +4546,11 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4465
4546
|
this.advanceState(this.internalState);
|
|
4466
4547
|
let u = this.clone();
|
|
4467
4548
|
this.advanceState(this.internalState), this.state.peek = this.decodeHexDigits(u, 2);
|
|
4468
|
-
} else if (
|
|
4549
|
+
} else if (xu(r())) {
|
|
4469
4550
|
let u = "", a = 0, o = this.clone();
|
|
4470
|
-
for (;
|
|
4551
|
+
for (; xu(r()) && a < 3; ) o = this.clone(), u += String.fromCodePoint(r()), this.advanceState(this.internalState), a++;
|
|
4471
4552
|
this.state.peek = parseInt(u, 8), this.internalState = o.internalState;
|
|
4472
|
-
} else
|
|
4553
|
+
} else jt(this.internalState.peek) ? (this.advanceState(this.internalState), this.state = this.internalState) : this.state.peek = this.internalState.peek;
|
|
4473
4554
|
}
|
|
4474
4555
|
decodeHexDigits(r, u) {
|
|
4475
4556
|
let a = this.input.slice(r.internalState.offset, r.internalState.offset + u), o = parseInt(a, 16);
|
|
@@ -4480,7 +4561,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4480
4561
|
constructor(e, r) {
|
|
4481
4562
|
super(e), this.msg = e, this.cursor = r, Object.setPrototypeOf(this, new.target.prototype);
|
|
4482
4563
|
}
|
|
4483
|
-
},
|
|
4564
|
+
}, Q = class yi extends pt {
|
|
4484
4565
|
static create(r, u, a) {
|
|
4485
4566
|
return new yi(r, u, a);
|
|
4486
4567
|
}
|
|
@@ -4496,19 +4577,24 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4496
4577
|
this.getTagDefinition = e;
|
|
4497
4578
|
}
|
|
4498
4579
|
parse(e, r, u, a = !1, o) {
|
|
4499
|
-
let p = (P) => (
|
|
4500
|
-
let
|
|
4501
|
-
return
|
|
4502
|
-
} : g, u), T = u && u.canSelfClose || !1, W = u && u.allowHtmComponentClosingTags || !1,
|
|
4503
|
-
return
|
|
4580
|
+
let p = (P) => ($, ...X) => P($.toLowerCase(), ...X), f = a ? this.getTagDefinition : p(this.getTagDefinition), g = (P) => f(P).getContentType(), y = a ? o : p(o), S = Ll(e, r, o ? (P, $, X, Fe) => {
|
|
4581
|
+
let we = y(P, $, X, Fe);
|
|
4582
|
+
return we !== void 0 ? we : g(P);
|
|
4583
|
+
} : g, u), T = u && u.canSelfClose || !1, W = u && u.allowHtmComponentClosingTags || !1, V = new Gl(S.tokens, f, T, W, a);
|
|
4584
|
+
return V.build(), new zl(V.rootNodes, [...S.errors, ...V.errors]);
|
|
4504
4585
|
}
|
|
4505
4586
|
}, Gl = class Ai {
|
|
4587
|
+
_index = -1;
|
|
4588
|
+
_peek;
|
|
4589
|
+
_containerStack = [];
|
|
4590
|
+
rootNodes = [];
|
|
4591
|
+
errors = [];
|
|
4506
4592
|
constructor(r, u, a, o, p) {
|
|
4507
|
-
this.tokens = r, this.tagDefinitionResolver = u, this.canSelfClose = a, this.allowHtmComponentClosingTags = o, this.isTagNameCaseSensitive = p, this.
|
|
4593
|
+
this.tokens = r, this.tagDefinitionResolver = u, this.canSelfClose = a, this.allowHtmComponentClosingTags = o, this.isTagNameCaseSensitive = p, this._advance();
|
|
4508
4594
|
}
|
|
4509
4595
|
build() {
|
|
4510
4596
|
for (; this._peek.type !== C.EOF; ) this._peek.type === C.TAG_OPEN_START || this._peek.type === C.INCOMPLETE_TAG_OPEN ? this._consumeElementStartTag(this._advance()) : this._peek.type === C.TAG_CLOSE ? (this._closeVoidElement(), this._consumeElementEndTag(this._advance())) : this._peek.type === C.CDATA_START ? (this._closeVoidElement(), this._consumeCdata(this._advance())) : this._peek.type === C.COMMENT_START ? (this._closeVoidElement(), this._consumeComment(this._advance())) : this._peek.type === C.TEXT || this._peek.type === C.RAW_TEXT || this._peek.type === C.ESCAPABLE_RAW_TEXT ? (this._closeVoidElement(), this._consumeText(this._advance())) : this._peek.type === C.EXPANSION_FORM_START ? this._consumeExpansion(this._advance()) : this._peek.type === C.BLOCK_OPEN_START ? (this._closeVoidElement(), this._consumeBlockOpen(this._advance())) : this._peek.type === C.BLOCK_CLOSE ? (this._closeVoidElement(), this._consumeBlockClose(this._advance())) : this._peek.type === C.INCOMPLETE_BLOCK_OPEN ? (this._closeVoidElement(), this._consumeIncompleteBlock(this._advance())) : this._peek.type === C.LET_START ? (this._closeVoidElement(), this._consumeLet(this._advance())) : this._peek.type === C.DOC_TYPE_START ? this._consumeDocType(this._advance()) : this._peek.type === C.INCOMPLETE_LET ? (this._closeVoidElement(), this._consumeIncompleteLet(this._advance())) : this._peek.type === C.COMPONENT_OPEN_START || this._peek.type === C.INCOMPLETE_COMPONENT_OPEN ? this._consumeComponentStartTag(this._advance()) : this._peek.type === C.COMPONENT_CLOSE ? this._consumeComponentEndTag(this._advance()) : this._advance();
|
|
4511
|
-
for (let r of this._containerStack) r instanceof dt && this.errors.push(
|
|
4597
|
+
for (let r of this._containerStack) r instanceof dt && this.errors.push(Q.create(r.name, r.sourceSpan, `Unclosed block "${r.name}"`));
|
|
4512
4598
|
}
|
|
4513
4599
|
_advance() {
|
|
4514
4600
|
let r = this._peek;
|
|
@@ -4537,7 +4623,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4537
4623
|
o.push(f);
|
|
4538
4624
|
}
|
|
4539
4625
|
if (this._peek.type !== C.EXPANSION_FORM_END) {
|
|
4540
|
-
this.errors.push(
|
|
4626
|
+
this.errors.push(Q.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '}'."));
|
|
4541
4627
|
return;
|
|
4542
4628
|
}
|
|
4543
4629
|
let p = new M(r.sourceSpan.start, this._peek.sourceSpan.end, r.sourceSpan.fullStart);
|
|
@@ -4545,7 +4631,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4545
4631
|
}
|
|
4546
4632
|
_parseExpansionCase() {
|
|
4547
4633
|
let r = this._advance();
|
|
4548
|
-
if (this._peek.type !== C.EXPANSION_CASE_EXP_START) return this.errors.push(
|
|
4634
|
+
if (this._peek.type !== C.EXPANSION_CASE_EXP_START) return this.errors.push(Q.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '{'.")), null;
|
|
4549
4635
|
let u = this._advance(), a = this._collectExpansionExpTokens(u);
|
|
4550
4636
|
if (!a) return null;
|
|
4551
4637
|
let o = this._advance();
|
|
@@ -4560,10 +4646,10 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4560
4646
|
for (; ; ) {
|
|
4561
4647
|
if ((this._peek.type === C.EXPANSION_FORM_START || this._peek.type === C.EXPANSION_CASE_EXP_START) && a.push(this._peek.type), this._peek.type === C.EXPANSION_CASE_EXP_END) if (Ru(a, C.EXPANSION_CASE_EXP_START)) {
|
|
4562
4648
|
if (a.pop(), a.length === 0) return u;
|
|
4563
|
-
} else return this.errors.push(
|
|
4649
|
+
} else return this.errors.push(Q.create(null, r.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
|
|
4564
4650
|
if (this._peek.type === C.EXPANSION_FORM_END) if (Ru(a, C.EXPANSION_FORM_START)) a.pop();
|
|
4565
|
-
else return this.errors.push(
|
|
4566
|
-
if (this._peek.type === C.EOF) return this.errors.push(
|
|
4651
|
+
else return this.errors.push(Q.create(null, r.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
|
|
4652
|
+
if (this._peek.type === C.EOF) return this.errors.push(Q.create(null, r.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
|
|
4567
4653
|
u.push(this._advance());
|
|
4568
4654
|
}
|
|
4569
4655
|
}
|
|
@@ -4603,11 +4689,11 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4603
4689
|
let p = this._getElementFullName(r, this._getClosestElementLikeParent()), f = this._getTagDefinition(p), g = !1;
|
|
4604
4690
|
if (this._peek.type === C.TAG_OPEN_END_VOID) {
|
|
4605
4691
|
this._advance(), g = !0;
|
|
4606
|
-
let
|
|
4607
|
-
this.canSelfClose ||
|
|
4692
|
+
let X = this._getTagDefinition(p);
|
|
4693
|
+
this.canSelfClose || X?.canSelfClose || sr(p) !== null || X?.isVoid || this.errors.push(Q.create(p, r.sourceSpan, `Only void, custom and foreign elements can be self closed "${r.parts[1]}"`));
|
|
4608
4694
|
} else this._peek.type === C.TAG_OPEN_END && (this._advance(), g = !1);
|
|
4609
|
-
let y = this._peek.sourceSpan.fullStart, S = new M(r.sourceSpan.start, y, r.sourceSpan.fullStart), T = new M(r.sourceSpan.start, y, r.sourceSpan.fullStart), W = new M(r.sourceSpan.start.moveBy(1), r.sourceSpan.end),
|
|
4610
|
-
this._pushContainer(
|
|
4695
|
+
let y = this._peek.sourceSpan.fullStart, S = new M(r.sourceSpan.start, y, r.sourceSpan.fullStart), T = new M(r.sourceSpan.start, y, r.sourceSpan.fullStart), W = new M(r.sourceSpan.start.moveBy(1), r.sourceSpan.end), V = new Ge(p, a, o, [], g, S, T, void 0, W, f?.isVoid ?? !1), P = this._getContainer(), $ = P !== null && !!(!((u = this._getTagDefinition(P)) === null || u === void 0) && u.isClosedByChild(V.name));
|
|
4696
|
+
this._pushContainer(V, $), g ? this._popContainer(p, Ge, S) : r.type === C.INCOMPLETE_TAG_OPEN && (this._popContainer(p, Ge, null), this.errors.push(Q.create(p, S, `Opening tag "${p}" not terminated.`)));
|
|
4611
4697
|
}
|
|
4612
4698
|
_consumeComponentStartTag(r) {
|
|
4613
4699
|
var u;
|
|
@@ -4615,23 +4701,23 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4615
4701
|
this._consumeAttributesAndDirectives(o, p);
|
|
4616
4702
|
let f = this._getClosestElementLikeParent(), g = this._getComponentTagName(r, f), y = this._getComponentFullName(r, f), S = this._peek.type === C.COMPONENT_OPEN_END_VOID;
|
|
4617
4703
|
this._advance();
|
|
4618
|
-
let T = this._peek.sourceSpan.fullStart, W = new M(r.sourceSpan.start, T, r.sourceSpan.fullStart),
|
|
4619
|
-
this._pushContainer(
|
|
4704
|
+
let T = this._peek.sourceSpan.fullStart, W = new M(r.sourceSpan.start, T, r.sourceSpan.fullStart), V = new ke(a, g, y, o, p, [], S, W, new M(r.sourceSpan.start, T, r.sourceSpan.fullStart), void 0), P = this._getContainer(), $ = P !== null && V.tagName !== null && !!(!((u = this._getTagDefinition(P)) === null || u === void 0) && u.isClosedByChild(V.tagName));
|
|
4705
|
+
this._pushContainer(V, $), S ? this._popContainer(y, ke, W) : r.type === C.INCOMPLETE_COMPONENT_OPEN && (this._popContainer(y, ke, null), this.errors.push(Q.create(y, W, `Opening tag "${y}" not terminated.`)));
|
|
4620
4706
|
}
|
|
4621
4707
|
_consumeAttributesAndDirectives(r, u) {
|
|
4622
4708
|
for (; this._peek.type === C.ATTR_NAME || this._peek.type === C.DIRECTIVE_NAME; ) this._peek.type === C.DIRECTIVE_NAME ? u.push(this._consumeDirective(this._peek)) : r.push(this._consumeAttr(this._advance()));
|
|
4623
4709
|
}
|
|
4624
4710
|
_consumeComponentEndTag(r) {
|
|
4625
4711
|
let u = this._getComponentFullName(r, this._getClosestElementLikeParent());
|
|
4626
|
-
if (!this._popContainer(u,
|
|
4712
|
+
if (!this._popContainer(u, ke, r.sourceSpan)) {
|
|
4627
4713
|
let a = this._containerStack[this._containerStack.length - 1], o;
|
|
4628
|
-
a instanceof
|
|
4714
|
+
a instanceof ke && a.componentName === r.parts[0] ? o = `, did you mean "${a.fullName}"?` : o = ". It may happen when the tag has already been closed by another tag.";
|
|
4629
4715
|
let p = `Unexpected closing tag "${u}"${o}`;
|
|
4630
|
-
this.errors.push(
|
|
4716
|
+
this.errors.push(Q.create(u, r.sourceSpan, p));
|
|
4631
4717
|
}
|
|
4632
4718
|
}
|
|
4633
4719
|
_getTagDefinition(r) {
|
|
4634
|
-
return typeof r == "string" ? this.tagDefinitionResolver(r) : r instanceof Ge ? this.tagDefinitionResolver(r.name) : r instanceof
|
|
4720
|
+
return typeof r == "string" ? this.tagDefinitionResolver(r) : r instanceof Ge ? this.tagDefinitionResolver(r.name) : r instanceof ke && r.tagName !== null ? this.tagDefinitionResolver(r.tagName) : null;
|
|
4635
4721
|
}
|
|
4636
4722
|
_pushContainer(r, u) {
|
|
4637
4723
|
u && this._containerStack.pop(), this._addToParent(r), this._containerStack.push(r);
|
|
@@ -4639,24 +4725,24 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4639
4725
|
_consumeElementEndTag(r) {
|
|
4640
4726
|
var u;
|
|
4641
4727
|
let a = this.allowHtmComponentClosingTags && r.parts.length === 0 ? null : this._getElementFullName(r, this._getClosestElementLikeParent());
|
|
4642
|
-
if (a && !((u = this._getTagDefinition(a)) === null || u === void 0) && u.isVoid) this.errors.push(
|
|
4728
|
+
if (a && !((u = this._getTagDefinition(a)) === null || u === void 0) && u.isVoid) this.errors.push(Q.create(a, r.sourceSpan, `Void elements do not have end tags "${r.parts[1]}"`));
|
|
4643
4729
|
else if (!this._popContainer(a, Ge, r.sourceSpan)) {
|
|
4644
4730
|
let o = `Unexpected closing tag "${a}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;
|
|
4645
|
-
this.errors.push(
|
|
4731
|
+
this.errors.push(Q.create(a, r.sourceSpan, o));
|
|
4646
4732
|
}
|
|
4647
4733
|
}
|
|
4648
4734
|
_popContainer(r, u, a) {
|
|
4649
4735
|
let o = !1;
|
|
4650
4736
|
for (let f = this._containerStack.length - 1; f >= 0; f--) {
|
|
4651
4737
|
var p;
|
|
4652
|
-
let g = this._containerStack[f], y = g instanceof
|
|
4653
|
-
if (
|
|
4738
|
+
let g = this._containerStack[f], y = g instanceof ke ? g.fullName : g.name;
|
|
4739
|
+
if (sr(y) ? y === r : (y === r || r === null) && g instanceof u) return g.endSourceSpan = a, g.sourceSpan.end = a !== null ? a.end : g.sourceSpan.end, this._containerStack.splice(f, this._containerStack.length - f), !o;
|
|
4654
4740
|
(g instanceof dt || !(!((p = this._getTagDefinition(g)) === null || p === void 0) && p.closedByParent)) && (o = !0);
|
|
4655
4741
|
}
|
|
4656
4742
|
return !1;
|
|
4657
4743
|
}
|
|
4658
4744
|
_consumeAttr(r) {
|
|
4659
|
-
let u =
|
|
4745
|
+
let u = It(r.parts[0], r.parts[1]), a = r.sourceSpan.end, o;
|
|
4660
4746
|
this._peek.type === C.ATTR_QUOTE && (o = this._advance());
|
|
4661
4747
|
let p = "", f = [], g, y;
|
|
4662
4748
|
if (this._peek.type === C.ATTR_VALUE_TEXT) for (g = this._peek.sourceSpan, y = this._peek.sourceSpan.end; this._peek.type === C.ATTR_VALUE_TEXT || this._peek.type === C.ATTR_VALUE_INTERPOLATION || this._peek.type === C.ENCODED_ENTITY; ) {
|
|
@@ -4671,7 +4757,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4671
4757
|
let u = [], a = r.sourceSpan.end, o = null;
|
|
4672
4758
|
if (this._advance(), this._peek.type === C.DIRECTIVE_OPEN) {
|
|
4673
4759
|
for (a = this._peek.sourceSpan.end, this._advance(); this._peek.type === C.ATTR_NAME; ) u.push(this._consumeAttr(this._advance()));
|
|
4674
|
-
this._peek.type === C.DIRECTIVE_CLOSE ? (o = this._peek.sourceSpan, this._advance()) : this.errors.push(
|
|
4760
|
+
this._peek.type === C.DIRECTIVE_CLOSE ? (o = this._peek.sourceSpan, this._advance()) : this.errors.push(Q.create(null, r.sourceSpan, "Unterminated directive definition"));
|
|
4675
4761
|
}
|
|
4676
4762
|
let p = new M(r.sourceSpan.start, a, r.sourceSpan.fullStart), f = new M(p.start, o === null ? r.sourceSpan.end : o.end, p.fullStart);
|
|
4677
4763
|
return new Tl(r.parts[0], u, f, p, o);
|
|
@@ -4680,44 +4766,52 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4680
4766
|
let u = [];
|
|
4681
4767
|
for (; this._peek.type === C.BLOCK_PARAMETER; ) {
|
|
4682
4768
|
let g = this._advance();
|
|
4683
|
-
u.push(new
|
|
4769
|
+
u.push(new ku(g.parts[0], g.sourceSpan));
|
|
4684
4770
|
}
|
|
4685
4771
|
this._peek.type === C.BLOCK_OPEN_END && this._advance();
|
|
4686
4772
|
let a = this._peek.sourceSpan.fullStart, o = new M(r.sourceSpan.start, a, r.sourceSpan.fullStart), p = new M(r.sourceSpan.start, a, r.sourceSpan.fullStart), f = new dt(r.parts[0], u, [], o, r.sourceSpan, p);
|
|
4687
4773
|
this._pushContainer(f, !1);
|
|
4688
4774
|
}
|
|
4689
4775
|
_consumeBlockClose(r) {
|
|
4690
|
-
|
|
4776
|
+
let u = this._containerStack.length, a = this._containerStack[u - 1];
|
|
4777
|
+
if (!this._popContainer(null, dt, r.sourceSpan)) {
|
|
4778
|
+
if (this._containerStack.length < u) {
|
|
4779
|
+
let o = a instanceof ke ? a.fullName : a.name;
|
|
4780
|
+
this.errors.push(Q.create(null, r.sourceSpan, `Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${o}> element? If you meant to write the \`}\` character, you should use the "}" HTML entity instead.`));
|
|
4781
|
+
return;
|
|
4782
|
+
}
|
|
4783
|
+
this.errors.push(Q.create(null, r.sourceSpan, 'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "}" HTML entity instead.'));
|
|
4784
|
+
}
|
|
4691
4785
|
}
|
|
4692
4786
|
_consumeIncompleteBlock(r) {
|
|
4693
4787
|
let u = [];
|
|
4694
4788
|
for (; this._peek.type === C.BLOCK_PARAMETER; ) {
|
|
4695
4789
|
let g = this._advance();
|
|
4696
|
-
u.push(new
|
|
4790
|
+
u.push(new ku(g.parts[0], g.sourceSpan));
|
|
4697
4791
|
}
|
|
4698
4792
|
let a = this._peek.sourceSpan.fullStart, o = new M(r.sourceSpan.start, a, r.sourceSpan.fullStart), p = new M(r.sourceSpan.start, a, r.sourceSpan.fullStart), f = new dt(r.parts[0], u, [], o, r.sourceSpan, p);
|
|
4699
|
-
this._pushContainer(f, !1), this._popContainer(null, dt, null), this.errors.push(
|
|
4793
|
+
this._pushContainer(f, !1), this._popContainer(null, dt, null), this.errors.push(Q.create(r.parts[0], o, `Incomplete block "${r.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`));
|
|
4700
4794
|
}
|
|
4701
4795
|
_consumeLet(r) {
|
|
4702
4796
|
let u = r.parts[0], a, o;
|
|
4703
4797
|
if (this._peek.type !== C.LET_VALUE) {
|
|
4704
|
-
this.errors.push(
|
|
4798
|
+
this.errors.push(Q.create(r.parts[0], r.sourceSpan, `Invalid @let declaration "${u}". Declaration must have a value.`));
|
|
4705
4799
|
return;
|
|
4706
4800
|
} else a = this._advance();
|
|
4707
4801
|
if (this._peek.type !== C.LET_END) {
|
|
4708
|
-
this.errors.push(
|
|
4802
|
+
this.errors.push(Q.create(r.parts[0], r.sourceSpan, `Unterminated @let declaration "${u}". Declaration must be terminated with a semicolon.`));
|
|
4709
4803
|
return;
|
|
4710
4804
|
} else o = this._advance();
|
|
4711
|
-
let p = o.sourceSpan.fullStart, f = new M(r.sourceSpan.start, p, r.sourceSpan.fullStart), g = r.sourceSpan.toString().lastIndexOf(u), y = new M(r.sourceSpan.start.moveBy(g), r.sourceSpan.end), S = new
|
|
4805
|
+
let p = o.sourceSpan.fullStart, f = new M(r.sourceSpan.start, p, r.sourceSpan.fullStart), g = r.sourceSpan.toString().lastIndexOf(u), y = new M(r.sourceSpan.start.moveBy(g), r.sourceSpan.end), S = new wu(u, a.parts[0], f, y, a.sourceSpan);
|
|
4712
4806
|
this._addToParent(S);
|
|
4713
4807
|
}
|
|
4714
4808
|
_consumeIncompleteLet(r) {
|
|
4715
4809
|
let u = r.parts[0] ?? "", a = u ? ` "${u}"` : "";
|
|
4716
4810
|
if (u.length > 0) {
|
|
4717
|
-
let o = r.sourceSpan.toString().lastIndexOf(u), p = new M(r.sourceSpan.start.moveBy(o), r.sourceSpan.end), f = new M(r.sourceSpan.start, r.sourceSpan.start.moveBy(0)), g = new
|
|
4811
|
+
let o = r.sourceSpan.toString().lastIndexOf(u), p = new M(r.sourceSpan.start.moveBy(o), r.sourceSpan.end), f = new M(r.sourceSpan.start, r.sourceSpan.start.moveBy(0)), g = new wu(u, "", r.sourceSpan, p, f);
|
|
4718
4812
|
this._addToParent(g);
|
|
4719
4813
|
}
|
|
4720
|
-
this.errors.push(
|
|
4814
|
+
this.errors.push(Q.create(r.parts[0], r.sourceSpan, `Incomplete @let declaration${a}. @let declarations must be written as \`@let <name> = <value>;\``));
|
|
4721
4815
|
}
|
|
4722
4816
|
_getContainer() {
|
|
4723
4817
|
return this._containerStack.length > 0 ? this._containerStack[this._containerStack.length - 1] : null;
|
|
@@ -4725,7 +4819,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4725
4819
|
_getClosestElementLikeParent() {
|
|
4726
4820
|
for (let r = this._containerStack.length - 1; r > -1; r--) {
|
|
4727
4821
|
let u = this._containerStack[r];
|
|
4728
|
-
if (u instanceof Ge || u instanceof
|
|
4822
|
+
if (u instanceof Ge || u instanceof ke) return u;
|
|
4729
4823
|
}
|
|
4730
4824
|
return null;
|
|
4731
4825
|
}
|
|
@@ -4734,7 +4828,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4734
4828
|
u === null ? this.rootNodes.push(r) : u.children.push(r);
|
|
4735
4829
|
}
|
|
4736
4830
|
_getElementFullName(r, u) {
|
|
4737
|
-
return
|
|
4831
|
+
return It(this._getPrefix(r, u), r.parts[1]);
|
|
4738
4832
|
}
|
|
4739
4833
|
_getComponentFullName(r, u) {
|
|
4740
4834
|
let a = r.parts[0], o = this._getComponentTagName(r, u);
|
|
@@ -4742,7 +4836,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4742
4836
|
}
|
|
4743
4837
|
_getComponentTagName(r, u) {
|
|
4744
4838
|
let a = this._getPrefix(r, u), o = r.parts[2];
|
|
4745
|
-
return !a && !o ? null : !a && o ? o :
|
|
4839
|
+
return !a && !o ? null : !a && o ? o : It(a, o || "ng-component");
|
|
4746
4840
|
}
|
|
4747
4841
|
_getPrefix(r, u) {
|
|
4748
4842
|
var a;
|
|
@@ -4750,8 +4844,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4750
4844
|
if (r.type === C.COMPONENT_OPEN_START || r.type === C.INCOMPLETE_COMPONENT_OPEN || r.type === C.COMPONENT_CLOSE ? (o = r.parts[1], p = r.parts[2]) : (o = r.parts[0], p = r.parts[1]), o = o || ((a = this._getTagDefinition(p)) === null || a === void 0 ? void 0 : a.implicitNamespacePrefix) || "", !o && u) {
|
|
4751
4845
|
let f = u instanceof Ge ? u.name : u.tagName;
|
|
4752
4846
|
if (f !== null) {
|
|
4753
|
-
let g =
|
|
4754
|
-
y !== null && !y.preventNamespaceInheritance && (o =
|
|
4847
|
+
let g = ir(f)[1], y = this._getTagDefinition(g);
|
|
4848
|
+
y !== null && !y.preventNamespaceInheritance && (o = sr(f));
|
|
4755
4849
|
}
|
|
4756
4850
|
}
|
|
4757
4851
|
return o;
|
|
@@ -4761,7 +4855,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4761
4855
|
return e.length > 0 && e[e.length - 1] === r;
|
|
4762
4856
|
}
|
|
4763
4857
|
function Mu(e, r) {
|
|
4764
|
-
return
|
|
4858
|
+
return Mt[r] !== void 0 ? Mt[r] || e : /^#x[a-f0-9]+$/i.test(r) ? String.fromCodePoint(parseInt(r.slice(2), 16)) : /^#\d+$/.test(r) ? String.fromCodePoint(parseInt(r.slice(1), 10)) : e;
|
|
4765
4859
|
}
|
|
4766
4860
|
var Kl = class extends Xl {
|
|
4767
4861
|
constructor() {
|
|
@@ -4770,17 +4864,17 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4770
4864
|
parse(e, r, u, a = !1, o) {
|
|
4771
4865
|
return super.parse(e, r, u, a, o);
|
|
4772
4866
|
}
|
|
4773
|
-
}, Ur
|
|
4867
|
+
}, Ur;
|
|
4774
4868
|
function Wr(e, r = {}) {
|
|
4775
4869
|
let { canSelfClose: u = !1, allowHtmComponentClosingTags: a = !1, isTagNameCaseSensitive: o = !1, getTagContentType: p, tokenizeAngularBlocks: f = !1, tokenizeAngularLetDeclaration: g = !1, enableAngularSelectorlessSyntax: y = !1 } = r;
|
|
4776
|
-
return
|
|
4870
|
+
return Ur ?? (Ur = new Kl()), Ur.parse(e, "angular-html-parser", { tokenizeExpansionForms: f, canSelfClose: u, allowHtmComponentClosingTags: a, tokenizeBlocks: f, tokenizeLet: g, selectorlessEnabled: y }, o, p);
|
|
4777
4871
|
}
|
|
4778
|
-
var
|
|
4779
|
-
function
|
|
4780
|
-
for (let u of
|
|
4872
|
+
var Jl = [Ql, Zl, tc, nc, uc, sc, ac, ic, oc, rc];
|
|
4873
|
+
function Yl(e, r) {
|
|
4874
|
+
for (let u of Jl) u(e, r);
|
|
4781
4875
|
return e;
|
|
4782
4876
|
}
|
|
4783
|
-
function
|
|
4877
|
+
function Ql(e) {
|
|
4784
4878
|
e.walk((r) => {
|
|
4785
4879
|
if (r.kind === "element" && r.tagDefinition.ignoreFirstLf && r.children.length > 0 && r.children[0].kind === "text" && r.children[0].value[0] === `
|
|
4786
4880
|
`) {
|
|
@@ -4789,7 +4883,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4789
4883
|
}
|
|
4790
4884
|
});
|
|
4791
4885
|
}
|
|
4792
|
-
function
|
|
4886
|
+
function Zl(e) {
|
|
4793
4887
|
let r = (u) => u.kind === "element" && u.prev?.kind === "ieConditionalStartComment" && u.prev.sourceSpan.end.offset === u.startSourceSpan.start.offset && u.firstChild?.kind === "ieConditionalEndComment" && u.firstChild.sourceSpan.start.offset === u.startSourceSpan.end.offset;
|
|
4794
4888
|
e.walk((u) => {
|
|
4795
4889
|
if (u.children) for (let a = 0; a < u.children.length; a++) {
|
|
@@ -4802,7 +4896,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4802
4896
|
}
|
|
4803
4897
|
});
|
|
4804
4898
|
}
|
|
4805
|
-
function
|
|
4899
|
+
function ec(e, r, u) {
|
|
4806
4900
|
e.walk((a) => {
|
|
4807
4901
|
if (a.children) for (let o = 0; o < a.children.length; o++) {
|
|
4808
4902
|
let p = a.children[o];
|
|
@@ -4813,10 +4907,10 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4813
4907
|
}
|
|
4814
4908
|
});
|
|
4815
4909
|
}
|
|
4816
|
-
function
|
|
4817
|
-
return
|
|
4910
|
+
function tc(e) {
|
|
4911
|
+
return ec(e, (r) => r.kind === "cdata", (r) => `<![CDATA[${r.value}]]>`);
|
|
4818
4912
|
}
|
|
4819
|
-
function
|
|
4913
|
+
function rc(e) {
|
|
4820
4914
|
let r = (u) => u.kind === "element" && u.attrs.length === 0 && u.children.length === 1 && u.firstChild.kind === "text" && !pe.hasWhitespaceCharacter(u.children[0].value) && !u.firstChild.hasLeadingSpaces && !u.firstChild.hasTrailingSpaces && u.isLeadingSpaceSensitive && !u.hasLeadingSpaces && u.isTrailingSpaceSensitive && !u.hasTrailingSpaces && u.prev?.kind === "text" && u.next?.kind === "text";
|
|
4821
4915
|
e.walk((u) => {
|
|
4822
4916
|
if (u.children) for (let a = 0; a < u.children.length; a++) {
|
|
@@ -4827,7 +4921,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4827
4921
|
}
|
|
4828
4922
|
});
|
|
4829
4923
|
}
|
|
4830
|
-
function
|
|
4924
|
+
function nc(e, r) {
|
|
4831
4925
|
if (r.parser === "html") return;
|
|
4832
4926
|
let u = /\{\{(.+?)\}\}/su;
|
|
4833
4927
|
e.walk((a) => {
|
|
@@ -4846,7 +4940,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4846
4940
|
}
|
|
4847
4941
|
});
|
|
4848
4942
|
}
|
|
4849
|
-
function
|
|
4943
|
+
function uc(e, r) {
|
|
4850
4944
|
e.walk((u) => {
|
|
4851
4945
|
let a = u.$children;
|
|
4852
4946
|
if (!a) return;
|
|
@@ -4858,28 +4952,28 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4858
4952
|
if (!o) for (let f = 0; f < a.length; f++) {
|
|
4859
4953
|
let g = a[f];
|
|
4860
4954
|
if (g.kind !== "text") continue;
|
|
4861
|
-
let { leadingWhitespace: y, text: S, trailingWhitespace: T } = _s(g.value), W = g.prev,
|
|
4862
|
-
S ? (g.value = S, g.sourceSpan = new M(g.sourceSpan.start.moveBy(y.length), g.sourceSpan.end.moveBy(-T.length)), y && (W && (W.hasTrailingSpaces = !0), g.hasLeadingSpaces = !0), T && (g.hasTrailingSpaces = !0,
|
|
4955
|
+
let { leadingWhitespace: y, text: S, trailingWhitespace: T } = _s(g.value), W = g.prev, V = g.next;
|
|
4956
|
+
S ? (g.value = S, g.sourceSpan = new M(g.sourceSpan.start.moveBy(y.length), g.sourceSpan.end.moveBy(-T.length)), y && (W && (W.hasTrailingSpaces = !0), g.hasLeadingSpaces = !0), T && (g.hasTrailingSpaces = !0, V && (V.hasLeadingSpaces = !0))) : (u.removeChild(g), f--, (y || T) && (W && (W.hasTrailingSpaces = !0), V && (V.hasLeadingSpaces = !0)));
|
|
4863
4957
|
}
|
|
4864
4958
|
u.isWhitespaceSensitive = o, u.isIndentationSensitive = p;
|
|
4865
4959
|
});
|
|
4866
4960
|
}
|
|
4867
|
-
function
|
|
4961
|
+
function ac(e) {
|
|
4868
4962
|
e.walk((r) => {
|
|
4869
4963
|
r.isSelfClosing = !r.children || r.kind === "element" && (r.tagDefinition.isVoid || r.endSourceSpan && r.startSourceSpan.start === r.endSourceSpan.start && r.startSourceSpan.end === r.endSourceSpan.end);
|
|
4870
4964
|
});
|
|
4871
4965
|
}
|
|
4872
|
-
function
|
|
4966
|
+
function ic(e, r) {
|
|
4873
4967
|
e.walk((u) => {
|
|
4874
4968
|
u.kind === "element" && (u.hasHtmComponentClosingTag = u.endSourceSpan && /^<\s*\/\s*\/\s*>$/u.test(r.originalText.slice(u.endSourceSpan.start.offset, u.endSourceSpan.end.offset)));
|
|
4875
4969
|
});
|
|
4876
4970
|
}
|
|
4877
|
-
function
|
|
4971
|
+
function sc(e, r) {
|
|
4878
4972
|
e.walk((u) => {
|
|
4879
4973
|
u.cssDisplay = js(u, r);
|
|
4880
4974
|
});
|
|
4881
4975
|
}
|
|
4882
|
-
function
|
|
4976
|
+
function oc(e, r) {
|
|
4883
4977
|
e.walk((u) => {
|
|
4884
4978
|
let { children: a } = u;
|
|
4885
4979
|
if (a) {
|
|
@@ -4895,19 +4989,19 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4895
4989
|
}
|
|
4896
4990
|
});
|
|
4897
4991
|
}
|
|
4898
|
-
var
|
|
4899
|
-
function
|
|
4992
|
+
var lc = Yl;
|
|
4993
|
+
function cc(e, r, u) {
|
|
4900
4994
|
let { node: a } = e;
|
|
4901
4995
|
switch (a.kind) {
|
|
4902
4996
|
case "root":
|
|
4903
4997
|
return r.__onHtmlRoot && r.__onHtmlRoot(a), [Y(Mr(e, r, u)), G];
|
|
4904
4998
|
case "element":
|
|
4905
4999
|
case "ieConditionalComment":
|
|
4906
|
-
return
|
|
5000
|
+
return cl(e, r, u);
|
|
4907
5001
|
case "angularControlFlowBlock":
|
|
4908
5002
|
return rl(e, r, u);
|
|
4909
5003
|
case "angularControlFlowBlockParameters":
|
|
4910
|
-
return
|
|
5004
|
+
return sl(e, r, u);
|
|
4911
5005
|
case "angularControlFlowBlockParameter":
|
|
4912
5006
|
return pe.trim(a.expression);
|
|
4913
5007
|
case "angularLetDeclaration":
|
|
@@ -4915,9 +5009,9 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4915
5009
|
case "angularLetDeclarationInitializer":
|
|
4916
5010
|
return a.value;
|
|
4917
5011
|
case "angularIcuExpression":
|
|
4918
|
-
return sl(e, r, u);
|
|
4919
|
-
case "angularIcuCase":
|
|
4920
5012
|
return ol(e, r, u);
|
|
5013
|
+
case "angularIcuCase":
|
|
5014
|
+
return ll(e, r, u);
|
|
4921
5015
|
case "ieConditionalStartComment":
|
|
4922
5016
|
case "ieConditionalEndComment":
|
|
4923
5017
|
return [Bt(a), kt(a)];
|
|
@@ -4934,7 +5028,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4934
5028
|
case "docType":
|
|
4935
5029
|
return [Y([Bt(a, r), " ", L(0, a.value.replace(/^html\b/iu, "html"), /\s+/gu, " ")]), kt(a, r)];
|
|
4936
5030
|
case "comment":
|
|
4937
|
-
return [ze(a, r), Ce(r.originalText.slice(bt(a),
|
|
5031
|
+
return [ze(a, r), Ce(r.originalText.slice(bt(a), rr(a))), Ue(a, r)];
|
|
4938
5032
|
case "attribute": {
|
|
4939
5033
|
if (a.value === null) return a.rawName;
|
|
4940
5034
|
let o = uu(a.value), p = su(a, r) ? "" : ji(o, '"');
|
|
@@ -4946,25 +5040,25 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4946
5040
|
throw new Gi(a, "HTML");
|
|
4947
5041
|
}
|
|
4948
5042
|
}
|
|
4949
|
-
var
|
|
4950
|
-
D(ju, { angular: () =>
|
|
4951
|
-
function
|
|
5043
|
+
var pc = { features: { experimental_frontMatterSupport: { massageAstNode: !0, embed: !0, print: !0 } }, preprocess: lc, print: cc, insertPragma: el, massageAstNode: Yi, embed: jo, getVisitorKeys: Go }, dc = pc, hc = [{ name: "Angular", type: "markup", aceMode: "html", extensions: [".component.html"], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["angular"], vscodeLanguageIds: ["html"], filenames: [], linguistLanguageId: 146 }, { name: "HTML", type: "markup", aceMode: "html", extensions: [".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["html"], vscodeLanguageIds: ["html"], linguistLanguageId: 146 }, { name: "Lightning Web Components", type: "markup", aceMode: "html", extensions: [], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["lwc"], vscodeLanguageIds: ["html"], filenames: [], linguistLanguageId: 146 }, { name: "MJML", type: "markup", aceMode: "html", extensions: [".mjml"], tmScope: "text.mjml.basic", aliases: ["MJML", "mjml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["mjml"], filenames: [], vscodeLanguageIds: ["mjml"], linguistLanguageId: 146 }, { name: "Vue", type: "markup", aceMode: "vue", extensions: [".vue"], tmScope: "source.vue", codemirrorMode: "vue", codemirrorMimeType: "text/x-vue", parsers: ["vue"], vscodeLanguageIds: ["vue"], linguistLanguageId: 391 }], qu = { bracketSameLine: { category: "Common", type: "boolean", default: !1, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: !1, description: "Enforce single attribute per line in HTML, Vue and JSX." } }, Vu = "HTML", Dc = { bracketSameLine: qu.bracketSameLine, htmlWhitespaceSensitivity: { category: Vu, type: "choice", default: "css", description: "How to handle whitespaces in HTML.", choices: [{ value: "css", description: "Respect the default value of CSS display property." }, { value: "strict", description: "Whitespaces are considered sensitive." }, { value: "ignore", description: "Whitespaces are considered insensitive." }] }, singleAttributePerLine: qu.singleAttributePerLine, vueIndentScriptAndStyle: { category: Vu, type: "boolean", default: !1, description: "Indent script and style tags in Vue files." } }, fc = Dc, ju = {};
|
|
5044
|
+
D(ju, { angular: () => $c, html: () => Vc, lwc: () => Wc, mjml: () => Hc, vue: () => Uc });
|
|
5045
|
+
function mc(e, r) {
|
|
4952
5046
|
let u = new SyntaxError(e + " (" + r.loc.start.line + ":" + r.loc.start.column + ")");
|
|
4953
5047
|
return Object.assign(u, r);
|
|
4954
5048
|
}
|
|
4955
|
-
var
|
|
5049
|
+
var gc = mc, Cc = { canSelfClose: !0, normalizeTagName: !1, normalizeAttributeName: !1, allowHtmComponentClosingTags: !1, isTagNameCaseSensitive: !1, shouldParseFrontMatter: !0 };
|
|
4956
5050
|
function Hu(e) {
|
|
4957
|
-
return { ...
|
|
5051
|
+
return { ...Cc, ...e };
|
|
4958
5052
|
}
|
|
4959
5053
|
function $u(e) {
|
|
4960
5054
|
let { canSelfClose: r, allowHtmComponentClosingTags: u, isTagNameCaseSensitive: a, shouldParseAsRawText: o, tokenizeAngularBlocks: p, tokenizeAngularLetDeclaration: f } = e;
|
|
4961
5055
|
return { canSelfClose: r, allowHtmComponentClosingTags: u, isTagNameCaseSensitive: a, getTagContentType: o ? (...g) => o(...g) ? be.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: p, tokenizeAngularLetDeclaration: f };
|
|
4962
5056
|
}
|
|
4963
|
-
var zr = /* @__PURE__ */ new Map([["*", /* @__PURE__ */ new Set(["accesskey", "autocapitalize", "autocorrect", "autofocus", "class", "contenteditable", "dir", "draggable", "enterkeyhint", "exportparts", "hidden", "id", "inert", "inputmode", "is", "itemid", "itemprop", "itemref", "itemscope", "itemtype", "lang", "nonce", "part", "popover", "slot", "spellcheck", "style", "tabindex", "title", "translate", "writingsuggestions"])], ["a", /* @__PURE__ */ new Set(["charset", "coords", "download", "href", "hreflang", "name", "ping", "referrerpolicy", "rel", "rev", "shape", "target", "type"])], ["applet", /* @__PURE__ */ new Set(["align", "alt", "archive", "code", "codebase", "height", "hspace", "name", "object", "vspace", "width"])], ["area", /* @__PURE__ */ new Set(["alt", "coords", "download", "href", "hreflang", "nohref", "ping", "referrerpolicy", "rel", "shape", "target", "type"])], ["audio", /* @__PURE__ */ new Set(["autoplay", "controls", "crossorigin", "loop", "muted", "preload", "src"])], ["base", /* @__PURE__ */ new Set(["href", "target"])], ["basefont", /* @__PURE__ */ new Set(["color", "face", "size"])], ["blockquote", /* @__PURE__ */ new Set(["cite"])], ["body", /* @__PURE__ */ new Set(["alink", "background", "bgcolor", "link", "text", "vlink"])], ["br", /* @__PURE__ */ new Set(["clear"])], ["button", /* @__PURE__ */ new Set(["command", "commandfor", "disabled", "form", "formaction", "formenctype", "formmethod", "formnovalidate", "formtarget", "name", "popovertarget", "popovertargetaction", "type", "value"])], ["canvas", /* @__PURE__ */ new Set(["height", "width"])], ["caption", /* @__PURE__ */ new Set(["align"])], ["col", /* @__PURE__ */ new Set(["align", "char", "charoff", "span", "valign", "width"])], ["colgroup", /* @__PURE__ */ new Set(["align", "char", "charoff", "span", "valign", "width"])], ["data", /* @__PURE__ */ new Set(["value"])], ["del", /* @__PURE__ */ new Set(["cite", "datetime"])], ["details", /* @__PURE__ */ new Set(["name", "open"])], ["dialog", /* @__PURE__ */ new Set(["closedby", "open"])], ["dir", /* @__PURE__ */ new Set(["compact"])], ["div", /* @__PURE__ */ new Set(["align"])], ["dl", /* @__PURE__ */ new Set(["compact"])], ["embed", /* @__PURE__ */ new Set(["height", "src", "type", "width"])], ["fieldset", /* @__PURE__ */ new Set(["disabled", "form", "name"])], ["font", /* @__PURE__ */ new Set(["color", "face", "size"])], ["form", /* @__PURE__ */ new Set(["accept", "accept-charset", "action", "autocomplete", "enctype", "method", "name", "novalidate", "target"])], ["frame", /* @__PURE__ */ new Set(["frameborder", "longdesc", "marginheight", "marginwidth", "name", "noresize", "scrolling", "src"])], ["frameset", /* @__PURE__ */ new Set(["cols", "rows"])], ["h1", /* @__PURE__ */ new Set(["align"])], ["h2", /* @__PURE__ */ new Set(["align"])], ["h3", /* @__PURE__ */ new Set(["align"])], ["h4", /* @__PURE__ */ new Set(["align"])], ["h5", /* @__PURE__ */ new Set(["align"])], ["h6", /* @__PURE__ */ new Set(["align"])], ["head", /* @__PURE__ */ new Set(["profile"])], ["hr", /* @__PURE__ */ new Set(["align", "noshade", "size", "width"])], ["html", /* @__PURE__ */ new Set(["manifest", "version"])], ["iframe", /* @__PURE__ */ new Set(["align", "allow", "allowfullscreen", "allowpaymentrequest", "allowusermedia", "frameborder", "height", "loading", "longdesc", "marginheight", "marginwidth", "name", "referrerpolicy", "sandbox", "scrolling", "src", "srcdoc", "width"])], ["img", /* @__PURE__ */ new Set(["align", "alt", "border", "crossorigin", "decoding", "fetchpriority", "height", "hspace", "ismap", "loading", "longdesc", "name", "referrerpolicy", "sizes", "src", "srcset", "usemap", "vspace", "width"])], ["input", /* @__PURE__ */ new Set(["accept", "align", "alpha", "alt", "autocomplete", "checked", "colorspace", "dirname", "disabled", "form", "formaction", "formenctype", "formmethod", "formnovalidate", "formtarget", "height", "ismap", "list", "max", "maxlength", "min", "minlength", "multiple", "name", "pattern", "placeholder", "popovertarget", "popovertargetaction", "readonly", "required", "size", "src", "step", "type", "usemap", "value", "width"])], ["ins", /* @__PURE__ */ new Set(["cite", "datetime"])], ["isindex", /* @__PURE__ */ new Set(["prompt"])], ["label", /* @__PURE__ */ new Set(["for", "form"])], ["legend", /* @__PURE__ */ new Set(["align"])], ["li", /* @__PURE__ */ new Set(["type", "value"])], ["link", /* @__PURE__ */ new Set(["as", "blocking", "charset", "color", "crossorigin", "disabled", "fetchpriority", "href", "hreflang", "imagesizes", "imagesrcset", "integrity", "media", "referrerpolicy", "rel", "rev", "sizes", "target", "type"])], ["map", /* @__PURE__ */ new Set(["name"])], ["menu", /* @__PURE__ */ new Set(["compact"])], ["meta", /* @__PURE__ */ new Set(["charset", "content", "http-equiv", "media", "name", "scheme"])], ["meter", /* @__PURE__ */ new Set(["high", "low", "max", "min", "optimum", "value"])], ["object", /* @__PURE__ */ new Set(["align", "archive", "border", "classid", "codebase", "codetype", "data", "declare", "form", "height", "hspace", "name", "standby", "type", "typemustmatch", "usemap", "vspace", "width"])], ["ol", /* @__PURE__ */ new Set(["compact", "reversed", "start", "type"])], ["optgroup", /* @__PURE__ */ new Set(["disabled", "label"])], ["option", /* @__PURE__ */ new Set(["disabled", "label", "selected", "value"])], ["output", /* @__PURE__ */ new Set(["for", "form", "name"])], ["p", /* @__PURE__ */ new Set(["align"])], ["param", /* @__PURE__ */ new Set(["name", "type", "value", "valuetype"])], ["pre", /* @__PURE__ */ new Set(["width"])], ["progress", /* @__PURE__ */ new Set(["max", "value"])], ["q", /* @__PURE__ */ new Set(["cite"])], ["script", /* @__PURE__ */ new Set(["async", "blocking", "charset", "crossorigin", "defer", "fetchpriority", "integrity", "language", "nomodule", "referrerpolicy", "src", "type"])], ["select", /* @__PURE__ */ new Set(["autocomplete", "disabled", "form", "multiple", "name", "required", "size"])], ["slot", /* @__PURE__ */ new Set(["name"])], ["source", /* @__PURE__ */ new Set(["height", "media", "sizes", "src", "srcset", "type", "width"])], ["style", /* @__PURE__ */ new Set(["blocking", "media", "type"])], ["table", /* @__PURE__ */ new Set(["align", "bgcolor", "border", "cellpadding", "cellspacing", "frame", "rules", "summary", "width"])], ["tbody", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["td", /* @__PURE__ */ new Set(["abbr", "align", "axis", "bgcolor", "char", "charoff", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "valign", "width"])], ["template", /* @__PURE__ */ new Set(["shadowrootclonable", "shadowrootcustomelementregistry", "shadowrootdelegatesfocus", "shadowrootmode", "shadowrootserializable"])], ["textarea", /* @__PURE__ */ new Set(["autocomplete", "cols", "dirname", "disabled", "form", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows", "wrap"])], ["tfoot", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["th", /* @__PURE__ */ new Set(["abbr", "align", "axis", "bgcolor", "char", "charoff", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "valign", "width"])], ["thead", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["time", /* @__PURE__ */ new Set(["datetime"])], ["tr", /* @__PURE__ */ new Set(["align", "bgcolor", "char", "charoff", "valign"])], ["track", /* @__PURE__ */ new Set(["default", "kind", "label", "src", "srclang"])], ["ul", /* @__PURE__ */ new Set(["compact", "type"])], ["video", /* @__PURE__ */ new Set(["autoplay", "controls", "crossorigin", "height", "loop", "muted", "playsinline", "poster", "preload", "src", "width"])]]),
|
|
5057
|
+
var zr = /* @__PURE__ */ new Map([["*", /* @__PURE__ */ new Set(["accesskey", "autocapitalize", "autocorrect", "autofocus", "class", "contenteditable", "dir", "draggable", "enterkeyhint", "exportparts", "hidden", "id", "inert", "inputmode", "is", "itemid", "itemprop", "itemref", "itemscope", "itemtype", "lang", "nonce", "part", "popover", "slot", "spellcheck", "style", "tabindex", "title", "translate", "writingsuggestions"])], ["a", /* @__PURE__ */ new Set(["charset", "coords", "download", "href", "hreflang", "name", "ping", "referrerpolicy", "rel", "rev", "shape", "target", "type"])], ["applet", /* @__PURE__ */ new Set(["align", "alt", "archive", "code", "codebase", "height", "hspace", "name", "object", "vspace", "width"])], ["area", /* @__PURE__ */ new Set(["alt", "coords", "download", "href", "hreflang", "nohref", "ping", "referrerpolicy", "rel", "shape", "target", "type"])], ["audio", /* @__PURE__ */ new Set(["autoplay", "controls", "crossorigin", "loop", "muted", "preload", "src"])], ["base", /* @__PURE__ */ new Set(["href", "target"])], ["basefont", /* @__PURE__ */ new Set(["color", "face", "size"])], ["blockquote", /* @__PURE__ */ new Set(["cite"])], ["body", /* @__PURE__ */ new Set(["alink", "background", "bgcolor", "link", "text", "vlink"])], ["br", /* @__PURE__ */ new Set(["clear"])], ["button", /* @__PURE__ */ new Set(["command", "commandfor", "disabled", "form", "formaction", "formenctype", "formmethod", "formnovalidate", "formtarget", "name", "popovertarget", "popovertargetaction", "type", "value"])], ["canvas", /* @__PURE__ */ new Set(["height", "width"])], ["caption", /* @__PURE__ */ new Set(["align"])], ["col", /* @__PURE__ */ new Set(["align", "char", "charoff", "span", "valign", "width"])], ["colgroup", /* @__PURE__ */ new Set(["align", "char", "charoff", "span", "valign", "width"])], ["data", /* @__PURE__ */ new Set(["value"])], ["del", /* @__PURE__ */ new Set(["cite", "datetime"])], ["details", /* @__PURE__ */ new Set(["name", "open"])], ["dialog", /* @__PURE__ */ new Set(["closedby", "open"])], ["dir", /* @__PURE__ */ new Set(["compact"])], ["div", /* @__PURE__ */ new Set(["align"])], ["dl", /* @__PURE__ */ new Set(["compact"])], ["embed", /* @__PURE__ */ new Set(["height", "src", "type", "width"])], ["fieldset", /* @__PURE__ */ new Set(["disabled", "form", "name"])], ["font", /* @__PURE__ */ new Set(["color", "face", "size"])], ["form", /* @__PURE__ */ new Set(["accept", "accept-charset", "action", "autocomplete", "enctype", "method", "name", "novalidate", "target"])], ["frame", /* @__PURE__ */ new Set(["frameborder", "longdesc", "marginheight", "marginwidth", "name", "noresize", "scrolling", "src"])], ["frameset", /* @__PURE__ */ new Set(["cols", "rows"])], ["h1", /* @__PURE__ */ new Set(["align"])], ["h2", /* @__PURE__ */ new Set(["align"])], ["h3", /* @__PURE__ */ new Set(["align"])], ["h4", /* @__PURE__ */ new Set(["align"])], ["h5", /* @__PURE__ */ new Set(["align"])], ["h6", /* @__PURE__ */ new Set(["align"])], ["head", /* @__PURE__ */ new Set(["profile"])], ["hr", /* @__PURE__ */ new Set(["align", "noshade", "size", "width"])], ["html", /* @__PURE__ */ new Set(["manifest", "version"])], ["iframe", /* @__PURE__ */ new Set(["align", "allow", "allowfullscreen", "allowpaymentrequest", "allowusermedia", "frameborder", "height", "loading", "longdesc", "marginheight", "marginwidth", "name", "referrerpolicy", "sandbox", "scrolling", "src", "srcdoc", "width"])], ["img", /* @__PURE__ */ new Set(["align", "alt", "border", "crossorigin", "decoding", "fetchpriority", "height", "hspace", "ismap", "loading", "longdesc", "name", "referrerpolicy", "sizes", "src", "srcset", "usemap", "vspace", "width"])], ["input", /* @__PURE__ */ new Set(["accept", "align", "alpha", "alt", "autocomplete", "checked", "colorspace", "dirname", "disabled", "form", "formaction", "formenctype", "formmethod", "formnovalidate", "formtarget", "height", "ismap", "list", "max", "maxlength", "min", "minlength", "multiple", "name", "pattern", "placeholder", "popovertarget", "popovertargetaction", "readonly", "required", "size", "src", "step", "type", "usemap", "value", "width"])], ["ins", /* @__PURE__ */ new Set(["cite", "datetime"])], ["isindex", /* @__PURE__ */ new Set(["prompt"])], ["label", /* @__PURE__ */ new Set(["for", "form"])], ["legend", /* @__PURE__ */ new Set(["align"])], ["li", /* @__PURE__ */ new Set(["type", "value"])], ["link", /* @__PURE__ */ new Set(["as", "blocking", "charset", "color", "crossorigin", "disabled", "fetchpriority", "href", "hreflang", "imagesizes", "imagesrcset", "integrity", "media", "referrerpolicy", "rel", "rev", "sizes", "target", "type"])], ["map", /* @__PURE__ */ new Set(["name"])], ["menu", /* @__PURE__ */ new Set(["compact"])], ["meta", /* @__PURE__ */ new Set(["charset", "content", "http-equiv", "media", "name", "scheme"])], ["meter", /* @__PURE__ */ new Set(["high", "low", "max", "min", "optimum", "value"])], ["object", /* @__PURE__ */ new Set(["align", "archive", "border", "classid", "codebase", "codetype", "data", "declare", "form", "height", "hspace", "name", "standby", "type", "typemustmatch", "usemap", "vspace", "width"])], ["ol", /* @__PURE__ */ new Set(["compact", "reversed", "start", "type"])], ["optgroup", /* @__PURE__ */ new Set(["disabled", "label"])], ["option", /* @__PURE__ */ new Set(["disabled", "label", "selected", "value"])], ["output", /* @__PURE__ */ new Set(["for", "form", "name"])], ["p", /* @__PURE__ */ new Set(["align"])], ["param", /* @__PURE__ */ new Set(["name", "type", "value", "valuetype"])], ["pre", /* @__PURE__ */ new Set(["width"])], ["progress", /* @__PURE__ */ new Set(["max", "value"])], ["q", /* @__PURE__ */ new Set(["cite"])], ["script", /* @__PURE__ */ new Set(["async", "blocking", "charset", "crossorigin", "defer", "fetchpriority", "integrity", "language", "nomodule", "referrerpolicy", "src", "type"])], ["select", /* @__PURE__ */ new Set(["autocomplete", "disabled", "form", "multiple", "name", "required", "size"])], ["slot", /* @__PURE__ */ new Set(["name"])], ["source", /* @__PURE__ */ new Set(["height", "media", "sizes", "src", "srcset", "type", "width"])], ["style", /* @__PURE__ */ new Set(["blocking", "media", "type"])], ["table", /* @__PURE__ */ new Set(["align", "bgcolor", "border", "cellpadding", "cellspacing", "frame", "rules", "summary", "width"])], ["tbody", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["td", /* @__PURE__ */ new Set(["abbr", "align", "axis", "bgcolor", "char", "charoff", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "valign", "width"])], ["template", /* @__PURE__ */ new Set(["shadowrootclonable", "shadowrootcustomelementregistry", "shadowrootdelegatesfocus", "shadowrootmode", "shadowrootserializable"])], ["textarea", /* @__PURE__ */ new Set(["autocomplete", "cols", "dirname", "disabled", "form", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows", "wrap"])], ["tfoot", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["th", /* @__PURE__ */ new Set(["abbr", "align", "axis", "bgcolor", "char", "charoff", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "valign", "width"])], ["thead", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["time", /* @__PURE__ */ new Set(["datetime"])], ["tr", /* @__PURE__ */ new Set(["align", "bgcolor", "char", "charoff", "valign"])], ["track", /* @__PURE__ */ new Set(["default", "kind", "label", "src", "srclang"])], ["ul", /* @__PURE__ */ new Set(["compact", "type"])], ["video", /* @__PURE__ */ new Set(["autoplay", "controls", "crossorigin", "height", "loop", "muted", "playsinline", "poster", "preload", "src", "width"])]]), Ec = /* @__PURE__ */ new Set(["a", "abbr", "acronym", "address", "applet", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "bgsound", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "command", "content", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "em", "embed", "fencedframe", "fieldset", "figcaption", "figure", "font", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins", "isindex", "kbd", "keygen", "label", "legend", "li", "link", "listing", "main", "map", "mark", "marquee", "math", "menu", "menuitem", "meta", "meter", "multicol", "nav", "nextid", "nobr", "noembed", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "plaintext", "pre", "progress", "q", "rb", "rbc", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "search", "section", "select", "selectedcontent", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "tt", "u", "ul", "var", "video", "wbr", "xmp"]), pr = { attrs: !0, children: !0, cases: !0, expression: !0 }, Uu = /* @__PURE__ */ new Set(["parent"]), ht, Xr, Gr, Fc = class Wt {
|
|
4964
5058
|
constructor(r = {}) {
|
|
4965
5059
|
A(this, ht), v(this, "kind"), v(this, "parent");
|
|
4966
5060
|
for (let u of /* @__PURE__ */ new Set([...Uu, ...Object.keys(r)])) this.setProperty(u, r[u]);
|
|
4967
|
-
if (
|
|
5061
|
+
if (Qt(r)) for (let u of Object.getOwnPropertySymbols(r)) this.setProperty(u, r[u]);
|
|
4968
5062
|
}
|
|
4969
5063
|
setProperty(r, u) {
|
|
4970
5064
|
if (this[r] !== u) {
|
|
@@ -4980,8 +5074,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4980
5074
|
for (let a in pr) {
|
|
4981
5075
|
let o = this[a];
|
|
4982
5076
|
if (o) {
|
|
4983
|
-
let p =
|
|
4984
|
-
u !== o && (u || (u = new
|
|
5077
|
+
let p = _c(o, (f) => f.map(r));
|
|
5078
|
+
u !== o && (u || (u = new Wt({ parent: this.parent })), u.setProperty(a, p));
|
|
4985
5079
|
}
|
|
4986
5080
|
}
|
|
4987
5081
|
if (u) for (let a in this) a in pr || (u[a] = this[a]);
|
|
@@ -4995,7 +5089,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
4995
5089
|
r(this);
|
|
4996
5090
|
}
|
|
4997
5091
|
createChild(r) {
|
|
4998
|
-
let u = r instanceof
|
|
5092
|
+
let u = r instanceof Wt ? r.clone() : new Wt(r);
|
|
4999
5093
|
return u.setProperty("parent", this), u;
|
|
5000
5094
|
}
|
|
5001
5095
|
insertChildBefore(r, u) {
|
|
@@ -5011,7 +5105,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
5011
5105
|
a[a.indexOf(r)] = this.createChild(u);
|
|
5012
5106
|
}
|
|
5013
5107
|
clone() {
|
|
5014
|
-
return new
|
|
5108
|
+
return new Wt(this);
|
|
5015
5109
|
}
|
|
5016
5110
|
get $children() {
|
|
5017
5111
|
return this[F(this, ht, Xr)];
|
|
@@ -5023,7 +5117,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
5023
5117
|
return this.$children?.[0];
|
|
5024
5118
|
}
|
|
5025
5119
|
get lastChild() {
|
|
5026
|
-
return
|
|
5120
|
+
return H(1, this.$children, -1);
|
|
5027
5121
|
}
|
|
5028
5122
|
get prev() {
|
|
5029
5123
|
let r = F(this, ht, Gr);
|
|
@@ -5048,20 +5142,20 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
5048
5142
|
}, Gr = function() {
|
|
5049
5143
|
return this.parent?.$children ?? [];
|
|
5050
5144
|
};
|
|
5051
|
-
var
|
|
5052
|
-
function
|
|
5145
|
+
var vc = Fc;
|
|
5146
|
+
function _c(e, r) {
|
|
5053
5147
|
let u = e.map(r);
|
|
5054
5148
|
return u.some((a, o) => a !== e[o]) ? u : e;
|
|
5055
5149
|
}
|
|
5056
|
-
var
|
|
5057
|
-
function
|
|
5058
|
-
if (e.value) for (let { regex: u, parse: a } of
|
|
5150
|
+
var yc = [{ regex: /^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/su, parse: Sc }, { regex: /^\[if(?<condition>[^\]]*)\]><!$/u, parse: bc }, { regex: /^<!\s*\[endif\]$/u, parse: kc }];
|
|
5151
|
+
function Ac(e, r) {
|
|
5152
|
+
if (e.value) for (let { regex: u, parse: a } of yc) {
|
|
5059
5153
|
let o = e.value.match(u);
|
|
5060
5154
|
if (o) return a(e, o, r);
|
|
5061
5155
|
}
|
|
5062
5156
|
return null;
|
|
5063
5157
|
}
|
|
5064
|
-
function
|
|
5158
|
+
function Sc(e, r, u) {
|
|
5065
5159
|
let { openingTagSuffix: a, condition: o, data: p } = r.groups, f = 4 + a.length, g = e.sourceSpan.start.moveBy(f), y = g.moveBy(p.length), [S, T] = (() => {
|
|
5066
5160
|
try {
|
|
5067
5161
|
return [!0, u(p, g).children];
|
|
@@ -5071,48 +5165,48 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
5071
5165
|
})();
|
|
5072
5166
|
return { kind: "ieConditionalComment", complete: S, children: T, condition: L(0, o.trim(), /\s+/gu, " "), sourceSpan: e.sourceSpan, startSourceSpan: new M(e.sourceSpan.start, g), endSourceSpan: new M(y, e.sourceSpan.end) };
|
|
5073
5167
|
}
|
|
5074
|
-
function
|
|
5168
|
+
function bc(e, r) {
|
|
5075
5169
|
let { condition: u } = r.groups;
|
|
5076
5170
|
return { kind: "ieConditionalStartComment", condition: L(0, u.trim(), /\s+/gu, " "), sourceSpan: e.sourceSpan };
|
|
5077
5171
|
}
|
|
5078
|
-
function
|
|
5172
|
+
function kc(e) {
|
|
5079
5173
|
return { kind: "ieConditionalEndComment", sourceSpan: e.sourceSpan };
|
|
5080
5174
|
}
|
|
5081
|
-
var
|
|
5175
|
+
var wc = class extends xl {
|
|
5082
5176
|
visitExpansionCase(e, r) {
|
|
5083
5177
|
r.parseOptions.name === "angular" && this.visitChildren(r, (u) => {
|
|
5084
5178
|
u(e.expression);
|
|
5085
5179
|
});
|
|
5086
5180
|
}
|
|
5087
5181
|
visit(e, { parseOptions: r }) {
|
|
5088
|
-
|
|
5182
|
+
Lc(e), Oc(e, r), Pc(e, r), Ic(e);
|
|
5089
5183
|
}
|
|
5090
5184
|
};
|
|
5091
|
-
function
|
|
5092
|
-
|
|
5093
|
-
let o = new
|
|
5185
|
+
function Tc(e, r, u, a) {
|
|
5186
|
+
Tu(new wc(), e.children, { parseOptions: u }), r && e.children.unshift(r);
|
|
5187
|
+
let o = new vc(e);
|
|
5094
5188
|
return o.walk((p) => {
|
|
5095
5189
|
if (p.kind === "comment") {
|
|
5096
|
-
let f =
|
|
5190
|
+
let f = Ac(p, a);
|
|
5097
5191
|
f && p.parent.replaceChild(p, f);
|
|
5098
5192
|
}
|
|
5099
|
-
|
|
5193
|
+
xc(p), Bc(p), Nc(p);
|
|
5100
5194
|
}), o;
|
|
5101
5195
|
}
|
|
5102
|
-
function
|
|
5196
|
+
function xc(e) {
|
|
5103
5197
|
if (e.kind === "block") {
|
|
5104
5198
|
if (e.name = L(0, e.name.toLowerCase(), /\s+/gu, " ").trim(), e.kind = "angularControlFlowBlock", !br(e.parameters)) {
|
|
5105
5199
|
delete e.parameters;
|
|
5106
5200
|
return;
|
|
5107
5201
|
}
|
|
5108
5202
|
for (let r of e.parameters) r.kind = "angularControlFlowBlockParameter";
|
|
5109
|
-
e.parameters = { kind: "angularControlFlowBlockParameters", children: e.parameters, sourceSpan: new M(e.parameters[0].sourceSpan.start,
|
|
5203
|
+
e.parameters = { kind: "angularControlFlowBlockParameters", children: e.parameters, sourceSpan: new M(e.parameters[0].sourceSpan.start, H(0, e.parameters, -1).sourceSpan.end) };
|
|
5110
5204
|
}
|
|
5111
5205
|
}
|
|
5112
|
-
function
|
|
5206
|
+
function Bc(e) {
|
|
5113
5207
|
e.kind === "letDeclaration" && (e.kind = "angularLetDeclaration", e.id = e.name, e.init = { kind: "angularLetDeclarationInitializer", sourceSpan: new M(e.valueSpan.start, e.valueSpan.end), value: e.value }, delete e.name, delete e.value);
|
|
5114
5208
|
}
|
|
5115
|
-
function
|
|
5209
|
+
function Nc(e) {
|
|
5116
5210
|
e.kind === "expansion" && (e.kind = "angularIcuExpression"), e.kind === "expansionCase" && (e.kind = "angularIcuCase");
|
|
5117
5211
|
}
|
|
5118
5212
|
function Wu(e, r) {
|
|
@@ -5123,7 +5217,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
5123
5217
|
let r = e.name.startsWith(":") ? e.name.slice(1).split(":")[0] : null, u = e.nameSpan.toString(), a = r !== null && u.startsWith(`${r}:`), o = a ? u.slice(r.length + 1) : u;
|
|
5124
5218
|
e.name = o, e.namespace = r, e.hasExplicitNamespace = a;
|
|
5125
5219
|
}
|
|
5126
|
-
function
|
|
5220
|
+
function Lc(e) {
|
|
5127
5221
|
switch (e.kind) {
|
|
5128
5222
|
case "element":
|
|
5129
5223
|
zu(e);
|
|
@@ -5137,7 +5231,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
5137
5231
|
break;
|
|
5138
5232
|
}
|
|
5139
5233
|
}
|
|
5140
|
-
function
|
|
5234
|
+
function Oc(e, r) {
|
|
5141
5235
|
if (e.kind === "element") {
|
|
5142
5236
|
let u = qr(r.isTagNameCaseSensitive ? e.name : e.name.toLowerCase());
|
|
5143
5237
|
!e.namespace || e.namespace === u.implicitNamespacePrefix || At(e) ? e.tagDefinition = u : e.tagDefinition = qr("");
|
|
@@ -5146,14 +5240,14 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
5146
5240
|
function Ic(e) {
|
|
5147
5241
|
e.sourceSpan && e.endSourceSpan && (e.sourceSpan = new M(e.sourceSpan.start, e.endSourceSpan.end));
|
|
5148
5242
|
}
|
|
5149
|
-
function
|
|
5150
|
-
if (e.kind === "element" && (r.normalizeTagName && (!e.namespace || e.namespace === e.tagDefinition.implicitNamespacePrefix || At(e)) && (e.name = Wu(e.name, (u) =>
|
|
5243
|
+
function Pc(e, r) {
|
|
5244
|
+
if (e.kind === "element" && (r.normalizeTagName && (!e.namespace || e.namespace === e.tagDefinition.implicitNamespacePrefix || At(e)) && (e.name = Wu(e.name, (u) => Ec.has(u))), r.normalizeAttributeName)) for (let u of e.attrs) u.namespace || (u.name = Wu(u.name, (a) => zr.has(e.name) && (zr.get("*").has(a) || zr.get(e.name).has(a))));
|
|
5151
5245
|
}
|
|
5152
5246
|
function Xu(e, r) {
|
|
5153
5247
|
let { rootNodes: u, errors: a } = Wr(e, $u(r));
|
|
5154
5248
|
return a.length > 0 && Kr(a[0]), { parseOptions: r, rootNodes: u };
|
|
5155
5249
|
}
|
|
5156
|
-
function
|
|
5250
|
+
function Rc(e, r) {
|
|
5157
5251
|
let u = $u(r), { rootNodes: a, errors: o } = Wr(e, u);
|
|
5158
5252
|
if (a.some((y) => y.kind === "docType" && y.value === "html" || y.kind === "element" && y.name.toLowerCase() === "html")) return Xu(e, Jr);
|
|
5159
5253
|
let p, f = () => p ?? (p = Wr(e, { ...u, getTagContentType: void 0 })), g = (y) => {
|
|
@@ -5162,54 +5256,54 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
5162
5256
|
};
|
|
5163
5257
|
for (let [y, S] of a.entries()) if (S.kind === "element") {
|
|
5164
5258
|
if (S.isVoid) o = f().errors, a[y] = g(S);
|
|
5165
|
-
else if (
|
|
5166
|
-
let { endSourceSpan: T, startSourceSpan: W } = S,
|
|
5167
|
-
|
|
5259
|
+
else if (Mc(S)) {
|
|
5260
|
+
let { endSourceSpan: T, startSourceSpan: W } = S, V = f().errors.find((P) => P.span.start.offset > W.start.offset && P.span.start.offset < T.end.offset);
|
|
5261
|
+
V && Kr(V), a[y] = g(S);
|
|
5168
5262
|
}
|
|
5169
5263
|
}
|
|
5170
5264
|
return o.length > 0 && Kr(o[0]), { parseOptions: r, rootNodes: a };
|
|
5171
5265
|
}
|
|
5172
|
-
function
|
|
5266
|
+
function Mc(e) {
|
|
5173
5267
|
if (e.kind !== "element" || e.name !== "template") return !1;
|
|
5174
5268
|
let r = e.attrs.find((u) => u.name === "lang")?.value;
|
|
5175
5269
|
return !r || r === "html";
|
|
5176
5270
|
}
|
|
5177
5271
|
function Kr(e) {
|
|
5178
5272
|
let { msg: r, span: { start: u, end: a } } = e;
|
|
5179
|
-
throw
|
|
5273
|
+
throw gc(r, { loc: { start: { line: u.line + 1, column: u.col + 1 }, end: { line: a.line + 1, column: a.col + 1 } }, cause: e });
|
|
5180
5274
|
}
|
|
5181
|
-
function
|
|
5275
|
+
function qc(e, r, u, a, o, p) {
|
|
5182
5276
|
let { offset: f } = a, g = L(0, r.slice(0, f), /[^\n]/gu, " ") + u, y = Gu(g, e, { ...o, shouldParseFrontMatter: !1 }, p);
|
|
5183
|
-
y.sourceSpan = new M(a,
|
|
5277
|
+
y.sourceSpan = new M(a, H(0, y.children, -1).sourceSpan.end);
|
|
5184
5278
|
let S = y.children[0];
|
|
5185
5279
|
return S.length === f ? y.children.shift() : (S.sourceSpan = new M(S.sourceSpan.start.moveBy(f), S.sourceSpan.end), S.value = S.value.slice(f)), y;
|
|
5186
5280
|
}
|
|
5187
5281
|
function Gu(e, r, u, a = {}) {
|
|
5188
|
-
let { frontMatter: o, content: p } = u.shouldParseFrontMatter ? gs(e) : { content: e }, f = new
|
|
5282
|
+
let { frontMatter: o, content: p } = u.shouldParseFrontMatter ? gs(e) : { content: e }, f = new Su(e, a.filepath), g = new Vr(f, 0, 0, 0), y = g.moveBy(e.length), { parseOptions: S, rootNodes: T } = r(p, u), W = { kind: "root", sourceSpan: new M(g, y), children: T }, V;
|
|
5189
5283
|
if (o) {
|
|
5190
|
-
let [P,
|
|
5191
|
-
|
|
5284
|
+
let [P, $] = [o.start, o.end].map((X) => new Vr(f, X.index, X.line - 1, X.column));
|
|
5285
|
+
V = { ...o, kind: "frontMatter", sourceSpan: new M(P, $) };
|
|
5192
5286
|
}
|
|
5193
|
-
return
|
|
5287
|
+
return Tc(W, V, S, (P, $) => qc(r, e, P, $, S, a));
|
|
5194
5288
|
}
|
|
5195
5289
|
var Jr = Hu({ name: "html", normalizeTagName: !0, normalizeAttributeName: !0, allowHtmComponentClosingTags: !0 });
|
|
5196
|
-
function
|
|
5197
|
-
let r = Hu(e), u = r.name === "vue" ?
|
|
5198
|
-
return { parse: (a, o) => Gu(a, u, r, o), hasPragma: Qo, hasIgnorePragma: Zo, astFormat: "html", locStart: bt, locEnd:
|
|
5290
|
+
function $t(e) {
|
|
5291
|
+
let r = Hu(e), u = r.name === "vue" ? Rc : Xu;
|
|
5292
|
+
return { parse: (a, o) => Gu(a, u, r, o), hasPragma: Qo, hasIgnorePragma: Zo, astFormat: "html", locStart: bt, locEnd: rr };
|
|
5199
5293
|
}
|
|
5200
|
-
var
|
|
5294
|
+
var Vc = $t(Jr), jc = /* @__PURE__ */ new Set(["mj-style", "mj-raw"]), Hc = $t({ ...Jr, name: "mjml", shouldParseAsRawText: (e) => jc.has(e) }), $c = $t({ name: "angular", tokenizeAngularBlocks: !0, tokenizeAngularLetDeclaration: !0 }), Uc = $t({ name: "vue", isTagNameCaseSensitive: !0, shouldParseAsRawText(e, r, u, a) {
|
|
5201
5295
|
return e.toLowerCase() !== "html" && !u && (e !== "template" || a.some(({ name: o, value: p }) => o === "lang" && p !== "html" && p !== "" && p !== void 0));
|
|
5202
|
-
} }),
|
|
5296
|
+
} }), Wc = $t({ name: "lwc", canSelfClose: !1 }), zc = { html: dc };
|
|
5203
5297
|
return E(b);
|
|
5204
5298
|
});
|
|
5205
5299
|
})(an)), an.exports;
|
|
5206
5300
|
}
|
|
5207
|
-
var Si = /* @__PURE__ */
|
|
5208
|
-
const
|
|
5301
|
+
var Si = /* @__PURE__ */ G2();
|
|
5302
|
+
const K2 = /* @__PURE__ */ Xc(Si), Y2 = /* @__PURE__ */ Gc({
|
|
5209
5303
|
__proto__: null,
|
|
5210
|
-
default:
|
|
5304
|
+
default: K2
|
|
5211
5305
|
}, [Si]);
|
|
5212
5306
|
export {
|
|
5213
5307
|
vi as J,
|
|
5214
|
-
|
|
5308
|
+
Y2 as p
|
|
5215
5309
|
};
|