zudoku 0.0.0-f471fb8 → 0.0.0-f52e8af
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/cli.js +8 -2
- package/dist/app/ZuploBuildConfig.d.ts +155 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -0
- package/dist/app/entry.client.js +36 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +5 -4
- package/dist/app/entry.server.js +2 -2
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +33 -0
- package/dist/app/env.js +29 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.js +16 -4
- package/dist/app/main.js.map +1 -1
- package/dist/cli/build/handler.js +2 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +12 -1
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/dev.js +1 -7
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +1 -0
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/dev/handler.js +2 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/config.d.ts +3 -1
- package/dist/config/loader.d.ts +2 -16
- package/dist/config/loader.js +10 -94
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +60 -0
- package/dist/config/validators/BuildSchema.js +31 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/common.d.ts +1487 -335
- package/dist/config/validators/common.js +59 -9
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +515 -128
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js +5 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +5 -2
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +4 -1
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +1 -1
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +15 -7
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +5 -6
- package/dist/lib/authentication/providers/openid.js +14 -20
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +2 -1
- package/dist/lib/components/Bootstrap.js +3 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +4 -0
- package/dist/lib/components/BuildCheck.js +38 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Header.js +3 -3
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +2 -2
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js +3 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.js +3 -2
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +3 -1
- package/dist/lib/components/Markdown.js +8 -14
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +6 -3
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Pagination.d.ts +2 -1
- package/dist/lib/components/Pagination.js +3 -3
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/Search.js +7 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -0
- package/dist/lib/components/TopNavigation.js +3 -3
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +2 -1
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.js +8 -9
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/context/ZudokuContext.js +2 -3
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +8 -2
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Sidebar.js +3 -10
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +9 -5
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +2 -3
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +2 -3
- package/dist/lib/components/navigation/SidebarWrapper.js +18 -2
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/components/navigation/Toc.js +2 -2
- package/dist/lib/components/navigation/Toc.js.map +1 -1
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/core/RouteGuard.d.ts +1 -0
- package/dist/lib/core/RouteGuard.js +9 -3
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +14 -2
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/oas/graphql/circular.js +23 -18
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +3 -0
- package/dist/lib/oas/parser/index.js +7 -1
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
- package/dist/lib/oas/parser/upgrade/index.js +77 -25
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +7 -5
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +4 -3
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +4 -1
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +9 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +6 -5
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +33 -3
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +9 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +10 -4
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
- package/dist/lib/plugins/openapi/index.d.ts +3 -4
- package/dist/lib/plugins/openapi/index.js +6 -4
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +4 -3
- package/dist/lib/plugins/openapi/playground/Headers.js +2 -2
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -3
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +2 -2
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +3 -3
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +26 -6
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +3 -1
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +53 -25
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +3 -1
- package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +1 -1
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +19 -13
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +34 -53
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -1
- package/dist/lib/plugins/openapi/schema/utils.js +14 -5
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +44 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +52 -15
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +9 -4
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +6 -12
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/index.d.ts +1 -3
- package/dist/lib/shiki.d.ts +35 -0
- package/dist/lib/shiki.js +103 -0
- package/dist/lib/shiki.js.map +1 -0
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +16 -0
- package/dist/lib/ui/CodeBlock.js +18 -0
- package/dist/lib/ui/CodeBlock.js.map +1 -0
- package/dist/lib/ui/Form.d.ts +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +10 -15
- package/dist/lib/ui/SyntaxHighlight.js +12 -60
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +10 -3
- package/dist/lib/util/MdxComponents.js +11 -10
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +1 -1
- package/dist/lib/util/traverse.js +6 -5
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/url.d.ts +4 -0
- package/dist/lib/util/url.js +13 -0
- package/dist/lib/util/url.js.map +1 -0
- package/dist/lib/util/url.test.js +26 -0
- package/dist/lib/util/url.test.js.map +1 -0
- package/dist/vite/api/SchemaManager.d.ts +36 -0
- package/dist/vite/api/SchemaManager.js +122 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +106 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/api/schema-codegen.js +10 -6
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/build.js +2 -9
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +56 -17
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.d.ts +0 -1
- package/dist/vite/dev-server.js +12 -12
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.d.ts +6 -2
- package/dist/vite/html.js +11 -8
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api.js +52 -106
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +6 -3
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-mdx.js +4 -11
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-search.js +1 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.d.ts +3 -0
- package/dist/vite/plugin-shiki-register.js +38 -0
- package/dist/vite/plugin-shiki-register.js.map +1 -0
- package/dist/vite/plugin-sidebar.d.ts +3 -1
- package/dist/vite/plugin-sidebar.js +9 -3
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +9 -5
- package/dist/vite/prerender/FileWritingResponse.js +5 -5
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +1 -0
- package/dist/vite/prerender/prerender.js +24 -5
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.js +36 -8
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
- package/dist/zuplo/enrich-with-zuplo.js +18 -17
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
- package/dist/zuplo/with-zuplo-processors.js +7 -7
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/dist/zuplo/with-zuplo.d.ts +4 -1
- package/dist/zuplo/with-zuplo.js +6 -5
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/AuthenticationPlugin-B9ZLD8dq.js +90 -0
- package/lib/AuthenticationPlugin-B9ZLD8dq.js.map +1 -0
- package/lib/{Button-Fp19CMUr.js → Button-Bdk_Ij3U.js} +4 -4
- package/lib/{Button-Fp19CMUr.js.map → Button-Bdk_Ij3U.js.map} +1 -1
- package/lib/{Callout-D5frCCJ0.js → Callout-hI9CHaoU.js} +20 -19
- package/lib/{Callout-D5frCCJ0.js.map → Callout-hI9CHaoU.js.map} +1 -1
- package/lib/Card-BlCYNw5W.js +61 -0
- package/lib/Card-BlCYNw5W.js.map +1 -0
- package/lib/{CategoryHeading-DpB47wvk.js → CategoryHeading-DZi-Szor.js} +3 -3
- package/lib/{CategoryHeading-DpB47wvk.js.map → CategoryHeading-DZi-Szor.js.map} +1 -1
- package/lib/{Dialog-Dv6WG8RN.js → Dialog-qJtc4-PZ.js} +8 -8
- package/lib/{Dialog-Dv6WG8RN.js.map → Dialog-qJtc4-PZ.js.map} +1 -1
- package/lib/{Drawer-kDAfOq_2.js → Drawer-BPBxzel2.js} +26 -26
- package/lib/Drawer-BPBxzel2.js.map +1 -0
- package/lib/Markdown-D3MUf20w.js +7691 -0
- package/lib/Markdown-D3MUf20w.js.map +1 -0
- package/lib/MdxPage-qSYniGrR.js +84 -0
- package/lib/MdxPage-qSYniGrR.js.map +1 -0
- package/lib/OasProvider-BHyIG4Ge.js +33 -0
- package/lib/{OasProvider-OlYb8W57.js.map → OasProvider-BHyIG4Ge.js.map} +1 -1
- package/lib/{OperationList-BvfIzVRx.js → OperationList-CfVK_S-T.js} +2055 -1978
- package/lib/OperationList-CfVK_S-T.js.map +1 -0
- package/lib/Pagination-CjsamWJW.js +48 -0
- package/lib/Pagination-CjsamWJW.js.map +1 -0
- package/lib/RouteGuard-ChX1tPqA.js +55 -0
- package/lib/RouteGuard-ChX1tPqA.js.map +1 -0
- package/lib/{SchemaList-Bi35O4XD.js → SchemaList-BZRVKC7J.js} +60 -48
- package/lib/SchemaList-BZRVKC7J.js.map +1 -0
- package/lib/SchemaView-Db5jA7z7.js +375 -0
- package/lib/SchemaView-Db5jA7z7.js.map +1 -0
- package/lib/Select-CaRC4cvg.js +211 -0
- package/lib/{Select-DVFRKf1R.js.map → Select-CaRC4cvg.js.map} +1 -1
- package/lib/SlotletProvider-ZhDNaV0q.js +257 -0
- package/lib/SlotletProvider-ZhDNaV0q.js.map +1 -0
- package/lib/{Spinner-CE68iCm0.js → Spinner-mNLZ6awP.js} +2 -2
- package/lib/{Spinner-CE68iCm0.js.map → Spinner-mNLZ6awP.js.map} +1 -1
- package/lib/SyntaxHighlight-IcJTpNbL.js +9107 -0
- package/lib/SyntaxHighlight-IcJTpNbL.js.map +1 -0
- package/lib/{Toc-YBsgI72s.js → Toc-B0gpT6e6.js} +19 -19
- package/lib/Toc-B0gpT6e6.js.map +1 -0
- package/lib/{chunk-HA7DTUK3-C4gP41vD.js → chunk-BAXFHI7N-C9WnHsLV.js} +715 -697
- package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
- package/lib/{circular-ByJI6Mci.js → circular-BGxf3iUW.js} +4224 -5172
- package/lib/circular-BGxf3iUW.js.map +1 -0
- package/lib/{cn-qaFjX9_3.js → cn-CwJPJKOE.js} +28 -29
- package/lib/{cn-qaFjX9_3.js.map → cn-CwJPJKOE.js.map} +1 -1
- package/lib/{createServer-mMau3eV_.js → createServer-C1kGUn7C.js} +4509 -4443
- package/lib/createServer-C1kGUn7C.js.map +1 -0
- package/lib/hook-CqYKERnR.js +1442 -0
- package/lib/hook-CqYKERnR.js.map +1 -0
- package/lib/{index-DwT-v3zK.js → index--oeBayMa.js} +2 -2
- package/lib/{index-DwT-v3zK.js.map → index--oeBayMa.js.map} +1 -1
- package/lib/{index-LNp6rxyU.js → index-BvvmIczU.js} +2 -2
- package/lib/{index-LNp6rxyU.js.map → index-BvvmIczU.js.map} +1 -1
- package/lib/index-CrcNWbel.js +316 -0
- package/lib/index-CrcNWbel.js.map +1 -0
- package/lib/index-D1LYvDiD.js +3158 -0
- package/lib/index-D1LYvDiD.js.map +1 -0
- package/lib/index-LSPm9Daf.js +4976 -0
- package/lib/index-LSPm9Daf.js.map +1 -0
- package/lib/{index-CPNSgwSb.js → index-Z13x6tPX.js} +5 -5
- package/lib/{index-CPNSgwSb.js.map → index-Z13x6tPX.js.map} +1 -1
- package/lib/{index-Dl3Yl0yb.js → index-zddirpDj.js} +621 -636
- package/lib/index-zddirpDj.js.map +1 -0
- package/lib/index.esm-BFcSKCe-.js +683 -0
- package/lib/index.esm-BFcSKCe-.js.map +1 -0
- package/lib/index.esm-D2ZUREQN.js +1216 -0
- package/lib/index.esm-D2ZUREQN.js.map +1 -0
- package/lib/invariant-DAFpPywt.js +48 -0
- package/lib/{invariant-Caa8-XvF.js.map → invariant-DAFpPywt.js.map} +1 -1
- package/lib/jsx-runtime-C5mzlN2N.js +285 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/lib/mutation-DpoXF3gn.js +196 -0
- package/lib/mutation-DpoXF3gn.js.map +1 -0
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.js.map +1 -0
- package/lib/{post-processors → processors}/removeExtensions.js +1 -1
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/processors/removeParameters.js +47 -0
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/processors/removePaths.js +28 -0
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/processors/traverse.js +17 -0
- package/lib/processors/traverse.js.map +1 -0
- package/lib/ui/Accordion.js +2 -2
- package/lib/ui/ActionButton.js +4 -4
- package/lib/ui/Alert.js +3 -3
- package/lib/ui/AlertDialog.js +2 -2
- package/lib/ui/Badge.js +3 -3
- package/lib/ui/Breadcrumb.js +2 -2
- package/lib/ui/Button.js +3 -3
- package/lib/ui/Callout.js +9 -8
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +2 -2
- package/lib/ui/Carousel.js +348 -348
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +2 -2
- package/lib/ui/CodeBlock.js +83 -0
- package/lib/ui/CodeBlock.js.map +1 -0
- package/lib/ui/Command.js +58 -58
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +2 -2
- package/lib/ui/Drawer.js +3 -3
- package/lib/ui/DropdownMenu.js +2 -2
- package/lib/ui/Form.js +3 -3
- package/lib/ui/HoverCard.js +2 -2
- package/lib/ui/Input.js +2 -2
- package/lib/ui/Label.js +3 -3
- package/lib/ui/Pagination.js +2 -2
- package/lib/ui/Popover.js +2 -2
- package/lib/ui/Progress.js +2 -2
- package/lib/ui/RadioGroup.js +2 -2
- package/lib/ui/ScrollArea.js +2 -2
- package/lib/ui/Select.js +2 -2
- package/lib/ui/Skeleton.js +2 -2
- package/lib/ui/Slider.js +2 -2
- package/lib/ui/Stepper.js +1 -1
- package/lib/ui/Switch.js +2 -2
- package/lib/ui/SyntaxHighlight.js +6 -7
- package/lib/ui/SyntaxHighlight.js.map +1 -1
- package/lib/ui/Tabs.js +11 -11
- package/lib/ui/Textarea.js +2 -2
- package/lib/ui/Toggle.js +3 -3
- package/lib/ui/ToggleGroup.js +2 -2
- package/lib/ui/Tooltip.js +2 -2
- package/lib/ui/util.js +1 -1
- package/lib/{useExposedProps-B9qXJedG.js → useExposedProps-DG8J6ewJ.js} +2 -2
- package/lib/{useExposedProps-B9qXJedG.js.map → useExposedProps-DG8J6ewJ.js.map} +1 -1
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +28 -31
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +66 -72
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +493 -494
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +31 -28
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +2 -2
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +59 -65
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +10 -10
- package/lib/zudoku.plugin-custom-pages.js +4 -4
- package/lib/zudoku.plugin-markdown.js +25 -28
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -6
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +26 -27
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +111 -119
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/package.json +81 -72
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/demo.html +1 -1
- package/src/app/entry.client.tsx +43 -0
- package/src/app/entry.server.tsx +6 -3
- package/src/app/env.ts +35 -0
- package/src/app/main.css +64 -7
- package/src/app/main.tsx +24 -1
- package/src/lib/authentication/components/CallbackHandler.tsx +11 -1
- package/src/lib/authentication/components/SignIn.tsx +35 -2
- package/src/lib/authentication/components/SignUp.tsx +35 -1
- package/src/lib/authentication/providers/auth0.tsx +1 -1
- package/src/lib/authentication/providers/clerk.tsx +16 -12
- package/src/lib/authentication/providers/openid.tsx +20 -27
- package/src/lib/components/Banner.tsx +1 -1
- package/src/lib/components/Bootstrap.tsx +13 -6
- package/src/lib/components/BuildCheck.tsx +75 -0
- package/src/lib/components/Footer.tsx +136 -0
- package/src/lib/components/Header.tsx +3 -3
- package/src/lib/components/Heading.tsx +3 -3
- package/src/lib/components/Layout.tsx +10 -4
- package/src/lib/components/Main.tsx +7 -5
- package/src/lib/components/Markdown.tsx +29 -24
- package/src/lib/components/MobileTopNavigation.tsx +29 -20
- package/src/lib/components/Pagination.tsx +7 -4
- package/src/lib/components/Search.tsx +14 -3
- package/src/lib/components/TopNavigation.tsx +3 -3
- package/src/lib/components/Zudoku.tsx +3 -3
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +8 -15
- package/src/lib/components/context/ZudokuContext.ts +2 -3
- package/src/lib/components/index.ts +2 -0
- package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
- package/src/lib/components/navigation/Sidebar.tsx +33 -38
- package/src/lib/components/navigation/SidebarCategory.tsx +9 -5
- package/src/lib/components/navigation/SidebarItem.tsx +2 -3
- package/src/lib/components/navigation/SidebarWrapper.tsx +37 -16
- package/src/lib/components/navigation/Toc.tsx +4 -4
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/core/RouteGuard.tsx +26 -4
- package/src/lib/core/ZudokuContext.ts +14 -2
- package/src/lib/errors/ErrorAlert.tsx +1 -1
- package/src/lib/oas/graphql/circular.ts +27 -19
- package/src/lib/oas/parser/index.ts +7 -1
- package/src/lib/oas/parser/upgrade/index.ts +98 -28
- package/src/lib/plugins/api-catalog/Catalog.tsx +1 -4
- package/src/lib/plugins/markdown/MdxPage.tsx +3 -2
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +7 -4
- package/src/lib/plugins/openapi/ColorizedParam.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +28 -17
- package/src/lib/plugins/openapi/OperationListItem.tsx +23 -42
- package/src/lib/plugins/openapi/ParamInfos.tsx +4 -1
- package/src/lib/plugins/openapi/ParameterListItem.tsx +32 -0
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
- package/src/lib/plugins/openapi/SchemaList.tsx +19 -7
- package/src/lib/plugins/openapi/Sidecar.tsx +36 -3
- package/src/lib/plugins/openapi/SidecarExamples.tsx +8 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +23 -4
- package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
- package/src/lib/plugins/openapi/index.tsx +8 -7
- package/src/lib/plugins/openapi/interfaces.ts +4 -3
- package/src/lib/plugins/openapi/playground/Headers.tsx +2 -2
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +22 -35
- package/src/lib/plugins/openapi/playground/Playground.tsx +5 -5
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +4 -4
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +2 -2
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +2 -2
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +1 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +1 -1
- package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +29 -9
- package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +5 -3
- package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +67 -33
- package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +5 -3
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
- package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +5 -3
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +45 -34
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +91 -143
- package/src/lib/plugins/openapi/schema/utils.ts +29 -6
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +51 -1
- package/src/lib/plugins/openapi/util/getRoutes.tsx +87 -15
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +11 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +5 -16
- package/src/lib/plugins/search-pagefind/index.tsx +1 -1
- package/src/lib/shiki.ts +133 -0
- package/src/lib/ui/Callout.tsx +2 -1
- package/src/lib/ui/CodeBlock.tsx +102 -0
- package/src/lib/ui/SyntaxHighlight.tsx +23 -182
- package/src/lib/util/MdxComponents.tsx +29 -14
- package/src/lib/util/detectOS.ts +9 -0
- package/src/lib/util/ensureArray.ts +3 -0
- package/src/lib/util/traverse.ts +8 -5
- package/src/lib/util/url.test.ts +51 -0
- package/src/lib/util/url.ts +18 -0
- package/src/shiki/langs/abap.js +1 -0
- package/src/shiki/langs/actionscript-3.js +1 -0
- package/src/shiki/langs/ada.js +1 -0
- package/src/shiki/langs/angular-expression.js +1 -0
- package/src/shiki/langs/angular-html.js +1 -0
- package/src/shiki/langs/angular-inline-style.js +1 -0
- package/src/shiki/langs/angular-inline-template.js +1 -0
- package/src/shiki/langs/angular-let-declaration.js +1 -0
- package/src/shiki/langs/angular-template-blocks.js +1 -0
- package/src/shiki/langs/angular-template.js +1 -0
- package/src/shiki/langs/angular-ts.js +1 -0
- package/src/shiki/langs/apache.js +1 -0
- package/src/shiki/langs/apex.js +1 -0
- package/src/shiki/langs/apl.js +1 -0
- package/src/shiki/langs/applescript.js +1 -0
- package/src/shiki/langs/ara.js +1 -0
- package/src/shiki/langs/asciidoc.js +1 -0
- package/src/shiki/langs/asm.js +1 -0
- package/src/shiki/langs/astro.js +1 -0
- package/src/shiki/langs/awk.js +1 -0
- package/src/shiki/langs/ballerina.js +1 -0
- package/src/shiki/langs/bat.js +1 -0
- package/src/shiki/langs/beancount.js +1 -0
- package/src/shiki/langs/berry.js +1 -0
- package/src/shiki/langs/bibtex.js +1 -0
- package/src/shiki/langs/bicep.js +1 -0
- package/src/shiki/langs/blade.js +1 -0
- package/src/shiki/langs/bsl.js +1 -0
- package/src/shiki/langs/c.js +1 -0
- package/src/shiki/langs/cadence.js +1 -0
- package/src/shiki/langs/cairo.js +1 -0
- package/src/shiki/langs/clarity.js +1 -0
- package/src/shiki/langs/clojure.js +1 -0
- package/src/shiki/langs/cmake.js +1 -0
- package/src/shiki/langs/cobol.js +1 -0
- package/src/shiki/langs/codeowners.js +1 -0
- package/src/shiki/langs/codeql.js +1 -0
- package/src/shiki/langs/coffee.js +1 -0
- package/src/shiki/langs/common-lisp.js +1 -0
- package/src/shiki/langs/coq.js +1 -0
- package/src/shiki/langs/cpp-macro.js +1 -0
- package/src/shiki/langs/cpp.js +1 -0
- package/src/shiki/langs/crystal.js +1 -0
- package/src/shiki/langs/csharp.js +1 -0
- package/src/shiki/langs/css.js +1 -0
- package/src/shiki/langs/csv.js +1 -0
- package/src/shiki/langs/cue.js +1 -0
- package/src/shiki/langs/cypher.js +1 -0
- package/src/shiki/langs/d.js +1 -0
- package/src/shiki/langs/dart.js +1 -0
- package/src/shiki/langs/dax.js +1 -0
- package/src/shiki/langs/desktop.js +1 -0
- package/src/shiki/langs/diff.js +1 -0
- package/src/shiki/langs/docker.js +1 -0
- package/src/shiki/langs/dotenv.js +1 -0
- package/src/shiki/langs/dream-maker.js +1 -0
- package/src/shiki/langs/edge.js +1 -0
- package/src/shiki/langs/elixir.js +1 -0
- package/src/shiki/langs/elm.js +1 -0
- package/src/shiki/langs/emacs-lisp.js +1 -0
- package/src/shiki/langs/erb.js +1 -0
- package/src/shiki/langs/erlang.js +1 -0
- package/src/shiki/langs/es-tag-css.js +1 -0
- package/src/shiki/langs/es-tag-glsl.js +1 -0
- package/src/shiki/langs/es-tag-html.js +1 -0
- package/src/shiki/langs/es-tag-sql.js +1 -0
- package/src/shiki/langs/es-tag-xml.js +1 -0
- package/src/shiki/langs/fennel.js +1 -0
- package/src/shiki/langs/fish.js +1 -0
- package/src/shiki/langs/fluent.js +1 -0
- package/src/shiki/langs/fortran-fixed-form.js +1 -0
- package/src/shiki/langs/fortran-free-form.js +1 -0
- package/src/shiki/langs/fsharp.js +1 -0
- package/src/shiki/langs/gdresource.js +1 -0
- package/src/shiki/langs/gdscript.js +1 -0
- package/src/shiki/langs/gdshader.js +1 -0
- package/src/shiki/langs/genie.js +1 -0
- package/src/shiki/langs/gherkin.js +1 -0
- package/src/shiki/langs/git-commit.js +1 -0
- package/src/shiki/langs/git-rebase.js +1 -0
- package/src/shiki/langs/gleam.js +1 -0
- package/src/shiki/langs/glimmer-js.js +1 -0
- package/src/shiki/langs/glimmer-ts.js +1 -0
- package/src/shiki/langs/glsl.js +1 -0
- package/src/shiki/langs/gnuplot.js +1 -0
- package/src/shiki/langs/go.js +1 -0
- package/src/shiki/langs/graphql.js +1 -0
- package/src/shiki/langs/groovy.js +1 -0
- package/src/shiki/langs/hack.js +1 -0
- package/src/shiki/langs/haml.js +1 -0
- package/src/shiki/langs/handlebars.js +1 -0
- package/src/shiki/langs/haskell.js +1 -0
- package/src/shiki/langs/haxe.js +1 -0
- package/src/shiki/langs/hcl.js +1 -0
- package/src/shiki/langs/hjson.js +1 -0
- package/src/shiki/langs/hlsl.js +1 -0
- package/src/shiki/langs/html-derivative.js +1 -0
- package/src/shiki/langs/html.js +1 -0
- package/src/shiki/langs/http.js +1 -0
- package/src/shiki/langs/hxml.js +1 -0
- package/src/shiki/langs/hy.js +1 -0
- package/src/shiki/langs/imba.js +1 -0
- package/src/shiki/langs/ini.js +1 -0
- package/src/shiki/langs/java.js +1 -0
- package/src/shiki/langs/javascript.js +1 -0
- package/src/shiki/langs/jinja-html.js +1 -0
- package/src/shiki/langs/jinja.js +1 -0
- package/src/shiki/langs/jison.js +1 -0
- package/src/shiki/langs/json.js +1 -0
- package/src/shiki/langs/json5.js +1 -0
- package/src/shiki/langs/jsonc.js +1 -0
- package/src/shiki/langs/jsonl.js +1 -0
- package/src/shiki/langs/jsonnet.js +1 -0
- package/src/shiki/langs/jssm.js +1 -0
- package/src/shiki/langs/jsx.js +1 -0
- package/src/shiki/langs/julia.js +1 -0
- package/src/shiki/langs/kotlin.js +1 -0
- package/src/shiki/langs/kusto.js +1 -0
- package/src/shiki/langs/latex.js +1 -0
- package/src/shiki/langs/lean.js +1 -0
- package/src/shiki/langs/less.js +1 -0
- package/src/shiki/langs/liquid.js +1 -0
- package/src/shiki/langs/llvm.js +1 -0
- package/src/shiki/langs/log.js +1 -0
- package/src/shiki/langs/logo.js +1 -0
- package/src/shiki/langs/lua.js +1 -0
- package/src/shiki/langs/luau.js +1 -0
- package/src/shiki/langs/make.js +1 -0
- package/src/shiki/langs/markdown-vue.js +1 -0
- package/src/shiki/langs/markdown.js +1 -0
- package/src/shiki/langs/marko.js +1 -0
- package/src/shiki/langs/matlab.js +1 -0
- package/src/shiki/langs/mdc.js +1 -0
- package/src/shiki/langs/mdx.js +1 -0
- package/src/shiki/langs/mermaid.js +1 -0
- package/src/shiki/langs/mipsasm.js +1 -0
- package/src/shiki/langs/mojo.js +1 -0
- package/src/shiki/langs/move.js +1 -0
- package/src/shiki/langs/narrat.js +1 -0
- package/src/shiki/langs/nextflow.js +1 -0
- package/src/shiki/langs/nginx.js +1 -0
- package/src/shiki/langs/nim.js +1 -0
- package/src/shiki/langs/nix.js +1 -0
- package/src/shiki/langs/nushell.js +1 -0
- package/src/shiki/langs/objective-c.js +1 -0
- package/src/shiki/langs/objective-cpp.js +1 -0
- package/src/shiki/langs/ocaml.js +1 -0
- package/src/shiki/langs/pascal.js +1 -0
- package/src/shiki/langs/perl.js +1 -0
- package/src/shiki/langs/php.js +1 -0
- package/src/shiki/langs/plsql.js +1 -0
- package/src/shiki/langs/po.js +1 -0
- package/src/shiki/langs/polar.js +1 -0
- package/src/shiki/langs/postcss.js +1 -0
- package/src/shiki/langs/powerquery.js +1 -0
- package/src/shiki/langs/powershell.js +1 -0
- package/src/shiki/langs/prisma.js +1 -0
- package/src/shiki/langs/prolog.js +1 -0
- package/src/shiki/langs/proto.js +1 -0
- package/src/shiki/langs/pug.js +1 -0
- package/src/shiki/langs/puppet.js +1 -0
- package/src/shiki/langs/purescript.js +1 -0
- package/src/shiki/langs/python.js +1 -0
- package/src/shiki/langs/qml.js +1 -0
- package/src/shiki/langs/qmldir.js +1 -0
- package/src/shiki/langs/qss.js +1 -0
- package/src/shiki/langs/r.js +1 -0
- package/src/shiki/langs/racket.js +1 -0
- package/src/shiki/langs/raku.js +1 -0
- package/src/shiki/langs/razor.js +1 -0
- package/src/shiki/langs/reg.js +1 -0
- package/src/shiki/langs/regexp.js +1 -0
- package/src/shiki/langs/rel.js +1 -0
- package/src/shiki/langs/riscv.js +1 -0
- package/src/shiki/langs/rst.js +1 -0
- package/src/shiki/langs/ruby.js +1 -0
- package/src/shiki/langs/rust.js +1 -0
- package/src/shiki/langs/sas.js +1 -0
- package/src/shiki/langs/sass.js +1 -0
- package/src/shiki/langs/scala.js +1 -0
- package/src/shiki/langs/scheme.js +1 -0
- package/src/shiki/langs/scss.js +1 -0
- package/src/shiki/langs/sdbl.js +1 -0
- package/src/shiki/langs/shaderlab.js +1 -0
- package/src/shiki/langs/shellscript.js +1 -0
- package/src/shiki/langs/shellsession.js +1 -0
- package/src/shiki/langs/smalltalk.js +1 -0
- package/src/shiki/langs/solidity.js +1 -0
- package/src/shiki/langs/soy.js +1 -0
- package/src/shiki/langs/sparql.js +1 -0
- package/src/shiki/langs/splunk.js +1 -0
- package/src/shiki/langs/sql.js +1 -0
- package/src/shiki/langs/ssh-config.js +1 -0
- package/src/shiki/langs/stata.js +1 -0
- package/src/shiki/langs/stylus.js +1 -0
- package/src/shiki/langs/svelte.js +1 -0
- package/src/shiki/langs/swift.js +1 -0
- package/src/shiki/langs/system-verilog.js +1 -0
- package/src/shiki/langs/systemd.js +1 -0
- package/src/shiki/langs/talonscript.js +1 -0
- package/src/shiki/langs/tasl.js +1 -0
- package/src/shiki/langs/tcl.js +1 -0
- package/src/shiki/langs/templ.js +1 -0
- package/src/shiki/langs/terraform.js +1 -0
- package/src/shiki/langs/tex.js +1 -0
- package/src/shiki/langs/toml.js +1 -0
- package/src/shiki/langs/ts-tags.js +1 -0
- package/src/shiki/langs/tsv.js +1 -0
- package/src/shiki/langs/tsx.js +1 -0
- package/src/shiki/langs/turtle.js +1 -0
- package/src/shiki/langs/twig.js +1 -0
- package/src/shiki/langs/typescript.js +1 -0
- package/src/shiki/langs/typespec.js +1 -0
- package/src/shiki/langs/typst.js +1 -0
- package/src/shiki/langs/v.js +1 -0
- package/src/shiki/langs/vala.js +1 -0
- package/src/shiki/langs/vb.js +1 -0
- package/src/shiki/langs/verilog.js +1 -0
- package/src/shiki/langs/vhdl.js +1 -0
- package/src/shiki/langs/viml.js +1 -0
- package/src/shiki/langs/vue-directives.js +1 -0
- package/src/shiki/langs/vue-html.js +1 -0
- package/src/shiki/langs/vue-interpolations.js +1 -0
- package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
- package/src/shiki/langs/vue.js +1 -0
- package/src/shiki/langs/vyper.js +1 -0
- package/src/shiki/langs/wasm.js +1 -0
- package/src/shiki/langs/wenyan.js +1 -0
- package/src/shiki/langs/wgsl.js +1 -0
- package/src/shiki/langs/wikitext.js +1 -0
- package/src/shiki/langs/wit.js +1 -0
- package/src/shiki/langs/wolfram.js +1 -0
- package/src/shiki/langs/xml.js +1 -0
- package/src/shiki/langs/xsl.js +1 -0
- package/src/shiki/langs/yaml.js +1 -0
- package/src/shiki/langs/zenscript.js +1 -0
- package/src/shiki/langs/zig.js +1 -0
- package/src/shiki/themes/andromeeda.js +1 -0
- package/src/shiki/themes/aurora-x.js +1 -0
- package/src/shiki/themes/ayu-dark.js +1 -0
- package/src/shiki/themes/catppuccin-frappe.js +1 -0
- package/src/shiki/themes/catppuccin-latte.js +1 -0
- package/src/shiki/themes/catppuccin-macchiato.js +1 -0
- package/src/shiki/themes/catppuccin-mocha.js +1 -0
- package/src/shiki/themes/dark-plus.js +1 -0
- package/src/shiki/themes/dracula-soft.js +1 -0
- package/src/shiki/themes/dracula.js +1 -0
- package/src/shiki/themes/everforest-dark.js +1 -0
- package/src/shiki/themes/everforest-light.js +1 -0
- package/src/shiki/themes/github-dark-default.js +1 -0
- package/src/shiki/themes/github-dark-dimmed.js +1 -0
- package/src/shiki/themes/github-dark-high-contrast.js +1 -0
- package/src/shiki/themes/github-dark.js +1 -0
- package/src/shiki/themes/github-light-default.js +1 -0
- package/src/shiki/themes/github-light-high-contrast.js +1 -0
- package/src/shiki/themes/github-light.js +1 -0
- package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
- package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
- package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
- package/src/shiki/themes/gruvbox-light-hard.js +1 -0
- package/src/shiki/themes/gruvbox-light-medium.js +1 -0
- package/src/shiki/themes/gruvbox-light-soft.js +1 -0
- package/src/shiki/themes/houston.js +1 -0
- package/src/shiki/themes/kanagawa-dragon.js +1 -0
- package/src/shiki/themes/kanagawa-lotus.js +1 -0
- package/src/shiki/themes/kanagawa-wave.js +1 -0
- package/src/shiki/themes/laserwave.js +1 -0
- package/src/shiki/themes/light-plus.js +1 -0
- package/src/shiki/themes/material-theme-darker.js +1 -0
- package/src/shiki/themes/material-theme-lighter.js +1 -0
- package/src/shiki/themes/material-theme-ocean.js +1 -0
- package/src/shiki/themes/material-theme-palenight.js +1 -0
- package/src/shiki/themes/material-theme.js +1 -0
- package/src/shiki/themes/min-dark.js +1 -0
- package/src/shiki/themes/min-light.js +1 -0
- package/src/shiki/themes/monokai.js +1 -0
- package/src/shiki/themes/night-owl.js +1 -0
- package/src/shiki/themes/nord.js +1 -0
- package/src/shiki/themes/one-dark-pro.js +1 -0
- package/src/shiki/themes/one-light.js +1 -0
- package/src/shiki/themes/plastic.js +1 -0
- package/src/shiki/themes/poimandres.js +1 -0
- package/src/shiki/themes/red.js +1 -0
- package/src/shiki/themes/rose-pine-dawn.js +1 -0
- package/src/shiki/themes/rose-pine-moon.js +1 -0
- package/src/shiki/themes/rose-pine.js +1 -0
- package/src/shiki/themes/slack-dark.js +1 -0
- package/src/shiki/themes/slack-ochin.js +1 -0
- package/src/shiki/themes/snazzy-light.js +1 -0
- package/src/shiki/themes/solarized-dark.js +1 -0
- package/src/shiki/themes/solarized-light.js +1 -0
- package/src/shiki/themes/synthwave-84.js +1 -0
- package/src/shiki/themes/tokyo-night.js +1 -0
- package/src/shiki/themes/vesper.js +1 -0
- package/src/shiki/themes/vitesse-black.js +1 -0
- package/src/shiki/themes/vitesse-dark.js +1 -0
- package/src/shiki/themes/vitesse-light.js +1 -0
- package/client.d.ts +0 -8
- package/dist/cli/dev/pagefind-command.d.ts +0 -3
- package/dist/cli/dev/pagefind-command.js +0 -59
- package/dist/cli/dev/pagefind-command.js.map +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
- package/dist/zuplo/env.d.ts +0 -7
- package/dist/zuplo/env.js +0 -12
- package/dist/zuplo/env.js.map +0 -1
- package/lib/AuthenticationPlugin-foqdvvkf.js +0 -58
- package/lib/AuthenticationPlugin-foqdvvkf.js.map +0 -1
- package/lib/Drawer-kDAfOq_2.js.map +0 -1
- package/lib/Markdown-aF5FdsNi.js +0 -16960
- package/lib/Markdown-aF5FdsNi.js.map +0 -1
- package/lib/MdxPage-ZW1StNhp.js +0 -83
- package/lib/MdxPage-ZW1StNhp.js.map +0 -1
- package/lib/OasProvider-OlYb8W57.js +0 -34
- package/lib/OperationList-BvfIzVRx.js.map +0 -1
- package/lib/Pagination-CYB3nVYx.js +0 -46
- package/lib/Pagination-CYB3nVYx.js.map +0 -1
- package/lib/SchemaList-Bi35O4XD.js.map +0 -1
- package/lib/SchemaView-D7MC5cjz.js +0 -356
- package/lib/SchemaView-D7MC5cjz.js.map +0 -1
- package/lib/Select-DVFRKf1R.js +0 -223
- package/lib/SlotletProvider-DXvc0aY6.js +0 -338
- package/lib/SlotletProvider-DXvc0aY6.js.map +0 -1
- package/lib/SyntaxHighlight-BEoSoPEo.js +0 -2890
- package/lib/SyntaxHighlight-BEoSoPEo.js.map +0 -1
- package/lib/Toc-YBsgI72s.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +0 -1
- package/lib/circular-ByJI6Mci.js.map +0 -1
- package/lib/context-DLCwaMXN.js +0 -22
- package/lib/context-DLCwaMXN.js.map +0 -1
- package/lib/createServer-mMau3eV_.js.map +0 -1
- package/lib/hook-CqpVYDqN.js +0 -1483
- package/lib/hook-CqpVYDqN.js.map +0 -1
- package/lib/index-Bt7MKhZq.js +0 -2514
- package/lib/index-Bt7MKhZq.js.map +0 -1
- package/lib/index-CXfEwK_7.js +0 -2226
- package/lib/index-CXfEwK_7.js.map +0 -1
- package/lib/index-Dl3Yl0yb.js.map +0 -1
- package/lib/index-gQD2h1wX.js +0 -447
- package/lib/index-gQD2h1wX.js.map +0 -1
- package/lib/index.esm--gIChbWs.js +0 -1207
- package/lib/index.esm--gIChbWs.js.map +0 -1
- package/lib/invariant-Caa8-XvF.js +0 -26
- package/lib/jsx-runtime-CYK1ROHF.js +0 -446
- package/lib/jsx-runtime-CYK1ROHF.js.map +0 -1
- package/lib/mutation-8LjrN7uz.js +0 -208
- package/lib/mutation-8LjrN7uz.js.map +0 -1
- package/lib/objectEntries-BS7aAgOm.js +0 -12
- package/lib/objectEntries-BS7aAgOm.js.map +0 -1
- package/lib/post-processors/removeExtensions.js.map +0 -1
- package/lib/post-processors/removeParameters.js +0 -48
- package/lib/post-processors/removeParameters.js.map +0 -1
- package/lib/post-processors/removePaths.js +0 -28
- package/lib/post-processors/removePaths.js.map +0 -1
- package/lib/post-processors/traverse.js +0 -15
- package/lib/post-processors/traverse.js.map +0 -1
- package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
- package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
- package/lib/prism-csharp.min-bQAo2pmx.js +0 -63
- package/lib/prism-csharp.min-bQAo2pmx.js.map +0 -1
- package/lib/prism-java.min-BpvsOuIa.js +0 -35
- package/lib/prism-java.min-BpvsOuIa.js.map +0 -1
- package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
- package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
- package/lib/prism-json.min-B1GJqK1k.js +0 -2
- package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
- package/lib/prism-jsstacktrace.min-BfobCF2F.js +0 -2
- package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +0 -1
- package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
- package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
- package/lib/prism-markup-BNGj0Tvm.js +0 -174
- package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
- package/lib/prism-ruby.min-Dx9KO9ds.js +0 -38
- package/lib/prism-ruby.min-Dx9KO9ds.js.map +0 -1
- package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
- package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
- package/src/lib/components/context/PluginSystem.ts +0 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
- /package/dist/lib/{components/context/PluginSystem.d.ts → util/url.test.d.ts} +0 -0
- /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"),
|
|
1
|
+
const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"), G = Symbol.for("yaml.map"), qt = Symbol.for("yaml.pair"), R = Symbol.for("yaml.scalar"), he = Symbol.for("yaml.seq"), P = Symbol.for("yaml.node.type"), Z = (s) => !!s && typeof s == "object" && s[P] === dt, ee = (s) => !!s && typeof s == "object" && s[P] === lt, de = (s) => !!s && typeof s == "object" && s[P] === G, T = (s) => !!s && typeof s == "object" && s[P] === qt, E = (s) => !!s && typeof s == "object" && s[P] === R, pe = (s) => !!s && typeof s == "object" && s[P] === he;
|
|
2
2
|
function L(s) {
|
|
3
3
|
if (s && typeof s == "object")
|
|
4
|
-
switch (s[
|
|
5
|
-
case
|
|
4
|
+
switch (s[P]) {
|
|
5
|
+
case G:
|
|
6
6
|
case he:
|
|
7
7
|
return !0;
|
|
8
8
|
}
|
|
@@ -10,9 +10,9 @@ function L(s) {
|
|
|
10
10
|
}
|
|
11
11
|
function $(s) {
|
|
12
12
|
if (s && typeof s == "object")
|
|
13
|
-
switch (s[
|
|
13
|
+
switch (s[P]) {
|
|
14
14
|
case dt:
|
|
15
|
-
case
|
|
15
|
+
case G:
|
|
16
16
|
case R:
|
|
17
17
|
case he:
|
|
18
18
|
return !0;
|
|
@@ -20,13 +20,13 @@ function $(s) {
|
|
|
20
20
|
return !1;
|
|
21
21
|
}
|
|
22
22
|
const vs = (s) => (E(s) || L(s)) && !!s.anchor, M = Symbol("break visit"), Ft = Symbol("skip children"), F = Symbol("remove node");
|
|
23
|
-
function
|
|
23
|
+
function Q(s, e) {
|
|
24
24
|
const t = Rt(e);
|
|
25
25
|
ee(s) ? ie(null, s.contents, t, Object.freeze([s])) === F && (s.contents = null) : ie(null, s, t, Object.freeze([]));
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
Q.BREAK = M;
|
|
28
|
+
Q.SKIP = Ft;
|
|
29
|
+
Q.REMOVE = F;
|
|
30
30
|
function ie(s, e, t, n) {
|
|
31
31
|
const i = Ut(s, e, t, n);
|
|
32
32
|
if ($(i) || T(i))
|
|
@@ -112,19 +112,18 @@ function Rt(s) {
|
|
|
112
112
|
}, s) : s;
|
|
113
113
|
}
|
|
114
114
|
function Ut(s, e, t, n) {
|
|
115
|
-
var i, r, o, l, a;
|
|
116
115
|
if (typeof t == "function")
|
|
117
116
|
return t(s, e, n);
|
|
118
117
|
if (de(e))
|
|
119
|
-
return
|
|
118
|
+
return t.Map?.(s, e, n);
|
|
120
119
|
if (pe(e))
|
|
121
|
-
return
|
|
120
|
+
return t.Seq?.(s, e, n);
|
|
122
121
|
if (T(e))
|
|
123
|
-
return
|
|
122
|
+
return t.Pair?.(s, e, n);
|
|
124
123
|
if (E(e))
|
|
125
|
-
return
|
|
126
|
-
if (
|
|
127
|
-
return
|
|
124
|
+
return t.Scalar?.(s, e, n);
|
|
125
|
+
if (Z(e))
|
|
126
|
+
return t.Alias?.(s, e, n);
|
|
128
127
|
}
|
|
129
128
|
function Vt(s, e, t) {
|
|
130
129
|
const n = e[e.length - 1];
|
|
@@ -135,7 +134,7 @@ function Vt(s, e, t) {
|
|
|
135
134
|
else if (ee(n))
|
|
136
135
|
n.contents = t;
|
|
137
136
|
else {
|
|
138
|
-
const i =
|
|
137
|
+
const i = Z(n) ? "alias" : "scalar";
|
|
139
138
|
throw new Error(`Cannot replace node with ${i} parent`);
|
|
140
139
|
}
|
|
141
140
|
}
|
|
@@ -244,7 +243,7 @@ class B {
|
|
|
244
243
|
let i;
|
|
245
244
|
if (e && n.length > 0 && $(e.contents)) {
|
|
246
245
|
const r = {};
|
|
247
|
-
|
|
246
|
+
Q(e.contents, (o, l) => {
|
|
248
247
|
$(l) && l.tag && (r[l.tag] = !0);
|
|
249
248
|
}), i = Object.keys(r);
|
|
250
249
|
} else
|
|
@@ -266,7 +265,7 @@ function Jt(s) {
|
|
|
266
265
|
}
|
|
267
266
|
function Yt(s) {
|
|
268
267
|
const e = /* @__PURE__ */ new Set();
|
|
269
|
-
return
|
|
268
|
+
return Q(s, {
|
|
270
269
|
Value(t, n) {
|
|
271
270
|
n.anchor && e.add(n.anchor);
|
|
272
271
|
}
|
|
@@ -331,9 +330,9 @@ function oe(s, e, t, n) {
|
|
|
331
330
|
}
|
|
332
331
|
return s.call(e, t, n);
|
|
333
332
|
}
|
|
334
|
-
function
|
|
333
|
+
function j(s, e, t) {
|
|
335
334
|
if (Array.isArray(s))
|
|
336
|
-
return s.map((n, i) =>
|
|
335
|
+
return s.map((n, i) => j(n, String(i), t));
|
|
337
336
|
if (s && typeof s.toJSON == "function") {
|
|
338
337
|
if (!t || !vs(s))
|
|
339
338
|
return s.toJSON(e, t);
|
|
@@ -344,11 +343,11 @@ function P(s, e, t) {
|
|
|
344
343
|
const i = s.toJSON(e, t);
|
|
345
344
|
return t.onCreate && t.onCreate(i), i;
|
|
346
345
|
}
|
|
347
|
-
return typeof s == "bigint" && !
|
|
346
|
+
return typeof s == "bigint" && !t?.keep ? Number(s) : s;
|
|
348
347
|
}
|
|
349
348
|
class pt {
|
|
350
349
|
constructor(e) {
|
|
351
|
-
Object.defineProperty(this,
|
|
350
|
+
Object.defineProperty(this, P, { value: e });
|
|
352
351
|
}
|
|
353
352
|
/** Create a copy of this node. */
|
|
354
353
|
clone() {
|
|
@@ -366,7 +365,7 @@ class pt {
|
|
|
366
365
|
mapAsMap: t === !0,
|
|
367
366
|
mapKeyWarned: !1,
|
|
368
367
|
maxAliasCount: typeof n == "number" ? n : 100
|
|
369
|
-
}, l =
|
|
368
|
+
}, l = j(this, "", o);
|
|
370
369
|
if (typeof i == "function")
|
|
371
370
|
for (const { count: a, res: c } of o.anchors.values())
|
|
372
371
|
i(c, a);
|
|
@@ -387,10 +386,10 @@ class Re extends pt {
|
|
|
387
386
|
*/
|
|
388
387
|
resolve(e) {
|
|
389
388
|
let t;
|
|
390
|
-
return
|
|
389
|
+
return Q(e, {
|
|
391
390
|
Node: (n, i) => {
|
|
392
391
|
if (i === this)
|
|
393
|
-
return
|
|
392
|
+
return Q.BREAK;
|
|
394
393
|
i.anchor === this.source && (t = i);
|
|
395
394
|
}
|
|
396
395
|
}), t;
|
|
@@ -404,7 +403,7 @@ class Re extends pt {
|
|
|
404
403
|
throw new ReferenceError(a);
|
|
405
404
|
}
|
|
406
405
|
let l = n.get(o);
|
|
407
|
-
if (l || (
|
|
406
|
+
if (l || (j(o, null, t), l = n.get(o)), !l || l.res === void 0) {
|
|
408
407
|
const a = "This should not happen: Alias anchor was not resolved?";
|
|
409
408
|
throw new ReferenceError(a);
|
|
410
409
|
}
|
|
@@ -428,7 +427,7 @@ class Re extends pt {
|
|
|
428
427
|
}
|
|
429
428
|
}
|
|
430
429
|
function ve(s, e, t) {
|
|
431
|
-
if (
|
|
430
|
+
if (Z(e)) {
|
|
432
431
|
const n = e.resolve(s), i = t && n && t.get(n);
|
|
433
432
|
return i ? i.count * i.aliasCount : 0;
|
|
434
433
|
} else if (L(e)) {
|
|
@@ -445,42 +444,38 @@ function ve(s, e, t) {
|
|
|
445
444
|
return 1;
|
|
446
445
|
}
|
|
447
446
|
const Qt = (s) => !s || typeof s != "function" && typeof s != "object";
|
|
448
|
-
class
|
|
447
|
+
class O extends pt {
|
|
449
448
|
constructor(e) {
|
|
450
449
|
super(R), this.value = e;
|
|
451
450
|
}
|
|
452
451
|
toJSON(e, t) {
|
|
453
|
-
return t
|
|
452
|
+
return t?.keep ? this.value : j(this.value, e, t);
|
|
454
453
|
}
|
|
455
454
|
toString() {
|
|
456
455
|
return String(this.value);
|
|
457
456
|
}
|
|
458
457
|
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
function
|
|
458
|
+
O.BLOCK_FOLDED = "BLOCK_FOLDED";
|
|
459
|
+
O.BLOCK_LITERAL = "BLOCK_LITERAL";
|
|
460
|
+
O.PLAIN = "PLAIN";
|
|
461
|
+
O.QUOTE_DOUBLE = "QUOTE_DOUBLE";
|
|
462
|
+
O.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
463
|
+
const js = "tag:yaml.org,2002:";
|
|
464
|
+
function Ps(s, e, t) {
|
|
466
465
|
if (e) {
|
|
467
466
|
const n = t.filter((r) => r.tag === e), i = n.find((r) => !r.format) ?? n[0];
|
|
468
467
|
if (!i)
|
|
469
468
|
throw new Error(`Tag ${e} not found`);
|
|
470
469
|
return i;
|
|
471
470
|
}
|
|
472
|
-
return t.find((n) =>
|
|
473
|
-
var i;
|
|
474
|
-
return ((i = n.identify) == null ? void 0 : i.call(n, s)) && !n.format;
|
|
475
|
-
});
|
|
471
|
+
return t.find((n) => n.identify?.(s) && !n.format);
|
|
476
472
|
}
|
|
477
473
|
function ke(s, e, t) {
|
|
478
|
-
var f, d, h;
|
|
479
474
|
if (ee(s) && (s = s.contents), $(s))
|
|
480
475
|
return s;
|
|
481
476
|
if (T(s)) {
|
|
482
|
-
const
|
|
483
|
-
return
|
|
477
|
+
const f = t.schema[G].createNode?.(t.schema, null, t);
|
|
478
|
+
return f.items.push(s), f;
|
|
484
479
|
}
|
|
485
480
|
(s instanceof String || s instanceof Number || s instanceof Boolean || typeof BigInt < "u" && s instanceof BigInt) && (s = s.valueOf());
|
|
486
481
|
const { aliasDuplicateObjects: n, onAnchor: i, onTagObj: r, schema: o, sourceObjects: l } = t;
|
|
@@ -490,20 +485,20 @@ function ke(s, e, t) {
|
|
|
490
485
|
return a.anchor || (a.anchor = i(s)), new Re(a.anchor);
|
|
491
486
|
a = { anchor: null, node: null }, l.set(s, a);
|
|
492
487
|
}
|
|
493
|
-
e
|
|
494
|
-
let c =
|
|
488
|
+
e?.startsWith("!!") && (e = js + e.slice(2));
|
|
489
|
+
let c = Ps(s, e, o.tags);
|
|
495
490
|
if (!c) {
|
|
496
491
|
if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
|
|
497
|
-
const
|
|
498
|
-
return a && (a.node =
|
|
492
|
+
const f = new O(s);
|
|
493
|
+
return a && (a.node = f), f;
|
|
499
494
|
}
|
|
500
|
-
c = s instanceof Map ? o[
|
|
495
|
+
c = s instanceof Map ? o[G] : Symbol.iterator in Object(s) ? o[he] : o[G];
|
|
501
496
|
}
|
|
502
497
|
r && (r(c), delete t.onTagObj);
|
|
503
|
-
const
|
|
504
|
-
return e ?
|
|
498
|
+
const d = c?.createNode ? c.createNode(t.schema, s, t) : typeof c?.nodeClass?.from == "function" ? c.nodeClass.from(t.schema, s, t) : new O(s);
|
|
499
|
+
return e ? d.tag = e : c.default || (d.tag = c.tag), a && (a.node = d), d;
|
|
505
500
|
}
|
|
506
|
-
function
|
|
501
|
+
function je(s, e, t) {
|
|
507
502
|
let n = t;
|
|
508
503
|
for (let i = e.length - 1; i >= 0; --i) {
|
|
509
504
|
const r = e[i];
|
|
@@ -555,7 +550,7 @@ class Wt extends pt {
|
|
|
555
550
|
if (L(r))
|
|
556
551
|
r.addIn(i, t);
|
|
557
552
|
else if (r === void 0 && this.schema)
|
|
558
|
-
this.set(n,
|
|
553
|
+
this.set(n, je(this.schema, i, t));
|
|
559
554
|
else
|
|
560
555
|
throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
|
|
561
556
|
}
|
|
@@ -613,7 +608,7 @@ class Wt extends pt {
|
|
|
613
608
|
if (L(r))
|
|
614
609
|
r.setIn(i, t);
|
|
615
610
|
else if (r === void 0 && this.schema)
|
|
616
|
-
this.set(n,
|
|
611
|
+
this.set(n, je(this.schema, i, t));
|
|
617
612
|
else
|
|
618
613
|
throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
|
|
619
614
|
}
|
|
@@ -634,64 +629,64 @@ function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
|
|
|
634
629
|
const a = Math.max(1 + r, 1 + i - e.length);
|
|
635
630
|
if (s.length <= a)
|
|
636
631
|
return s;
|
|
637
|
-
const c = [],
|
|
632
|
+
const c = [], d = {};
|
|
638
633
|
let f = i - e.length;
|
|
639
634
|
typeof n == "number" && (n > i - Math.max(2, r) ? c.push(0) : f = i - n);
|
|
640
|
-
let
|
|
641
|
-
t === at && (
|
|
642
|
-
for (let
|
|
643
|
-
if (t === Be &&
|
|
644
|
-
switch (
|
|
635
|
+
let u, m, y = !1, h = -1, p = -1, b = -1;
|
|
636
|
+
t === at && (h = $t(s, h, e.length), h !== -1 && (f = h + a));
|
|
637
|
+
for (let S; S = s[h += 1]; ) {
|
|
638
|
+
if (t === Be && S === "\\") {
|
|
639
|
+
switch (p = h, s[h + 1]) {
|
|
645
640
|
case "x":
|
|
646
|
-
|
|
641
|
+
h += 3;
|
|
647
642
|
break;
|
|
648
643
|
case "u":
|
|
649
|
-
|
|
644
|
+
h += 5;
|
|
650
645
|
break;
|
|
651
646
|
case "U":
|
|
652
|
-
|
|
647
|
+
h += 9;
|
|
653
648
|
break;
|
|
654
649
|
default:
|
|
655
|
-
|
|
650
|
+
h += 1;
|
|
656
651
|
}
|
|
657
|
-
b =
|
|
652
|
+
b = h;
|
|
658
653
|
}
|
|
659
|
-
if (
|
|
654
|
+
if (S === `
|
|
660
655
|
`)
|
|
661
|
-
t === at && (
|
|
656
|
+
t === at && (h = $t(s, h, e.length)), f = h + e.length + a, u = void 0;
|
|
662
657
|
else {
|
|
663
|
-
if (
|
|
664
|
-
` &&
|
|
665
|
-
const
|
|
666
|
-
|
|
667
|
-
` &&
|
|
658
|
+
if (S === " " && m && m !== " " && m !== `
|
|
659
|
+
` && m !== " ") {
|
|
660
|
+
const k = s[h + 1];
|
|
661
|
+
k && k !== " " && k !== `
|
|
662
|
+
` && k !== " " && (u = h);
|
|
668
663
|
}
|
|
669
|
-
if (
|
|
670
|
-
if (
|
|
671
|
-
c.push(
|
|
664
|
+
if (h >= f)
|
|
665
|
+
if (u)
|
|
666
|
+
c.push(u), f = u + a, u = void 0;
|
|
672
667
|
else if (t === Be) {
|
|
673
|
-
for (;
|
|
674
|
-
|
|
675
|
-
const
|
|
676
|
-
if (
|
|
668
|
+
for (; m === " " || m === " "; )
|
|
669
|
+
m = S, S = s[h += 1], y = !0;
|
|
670
|
+
const k = h > b + 1 ? h - 2 : p - 1;
|
|
671
|
+
if (d[k])
|
|
677
672
|
return s;
|
|
678
|
-
c.push(
|
|
673
|
+
c.push(k), d[k] = !0, f = k + a, u = void 0;
|
|
679
674
|
} else
|
|
680
675
|
y = !0;
|
|
681
676
|
}
|
|
682
|
-
|
|
677
|
+
m = S;
|
|
683
678
|
}
|
|
684
679
|
if (y && l && l(), c.length === 0)
|
|
685
680
|
return s;
|
|
686
681
|
o && o();
|
|
687
|
-
let
|
|
688
|
-
for (let
|
|
689
|
-
const
|
|
690
|
-
|
|
691
|
-
${e}${s.slice(0,
|
|
692
|
-
${e}${s.slice(
|
|
682
|
+
let w = s.slice(0, c[0]);
|
|
683
|
+
for (let S = 0; S < c.length; ++S) {
|
|
684
|
+
const k = c[S], N = c[S + 1] || s.length;
|
|
685
|
+
k === 0 ? w = `
|
|
686
|
+
${e}${s.slice(0, N)}` : (t === Be && d[k] && (w += `${s[k]}\\`), w += `
|
|
687
|
+
${e}${s.slice(k + 1, N)}`);
|
|
693
688
|
}
|
|
694
|
-
return
|
|
689
|
+
return w;
|
|
695
690
|
}
|
|
696
691
|
function $t(s, e, t) {
|
|
697
692
|
let n = e, i = e + 1, r = s[i];
|
|
@@ -740,8 +735,8 @@ function Se(s, e) {
|
|
|
740
735
|
case "u":
|
|
741
736
|
{
|
|
742
737
|
o += t.slice(l, a);
|
|
743
|
-
const
|
|
744
|
-
switch (
|
|
738
|
+
const d = t.substr(a + 2, 4);
|
|
739
|
+
switch (d) {
|
|
745
740
|
case "0000":
|
|
746
741
|
o += "\\0";
|
|
747
742
|
break;
|
|
@@ -767,7 +762,7 @@ function Se(s, e) {
|
|
|
767
762
|
o += "\\P";
|
|
768
763
|
break;
|
|
769
764
|
default:
|
|
770
|
-
|
|
765
|
+
d.substr(0, 2) === "00" ? o += "\\x" + d.substr(2) : o += t.substr(a, 6);
|
|
771
766
|
}
|
|
772
767
|
a += 5, l = a + 1;
|
|
773
768
|
}
|
|
@@ -821,62 +816,62 @@ function Me({ comment: s, type: e, value: t }, n, i, r) {
|
|
|
821
816
|
const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
|
|
822
817
|
if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
|
|
823
818
|
return le(t, n);
|
|
824
|
-
const c = n.indent || (n.forceBlockIndent || Je(t) ? " " : ""),
|
|
819
|
+
const c = n.indent || (n.forceBlockIndent || Je(t) ? " " : ""), d = o === "literal" ? !0 : o === "folded" || e === O.BLOCK_FOLDED ? !1 : e === O.BLOCK_LITERAL ? !0 : !qs(t, a, c.length);
|
|
825
820
|
if (!t)
|
|
826
|
-
return
|
|
821
|
+
return d ? `|
|
|
827
822
|
` : `>
|
|
828
823
|
`;
|
|
829
|
-
let f,
|
|
830
|
-
for (
|
|
831
|
-
const
|
|
832
|
-
if (
|
|
833
|
-
` &&
|
|
824
|
+
let f, u;
|
|
825
|
+
for (u = t.length; u > 0; --u) {
|
|
826
|
+
const N = t[u - 1];
|
|
827
|
+
if (N !== `
|
|
828
|
+
` && N !== " " && N !== " ")
|
|
834
829
|
break;
|
|
835
830
|
}
|
|
836
|
-
let
|
|
837
|
-
const y =
|
|
831
|
+
let m = t.substring(u);
|
|
832
|
+
const y = m.indexOf(`
|
|
838
833
|
`);
|
|
839
|
-
y === -1 ? f = "-" : t ===
|
|
840
|
-
` && (
|
|
841
|
-
let
|
|
842
|
-
for (
|
|
843
|
-
const
|
|
844
|
-
if (
|
|
845
|
-
|
|
846
|
-
else if (
|
|
834
|
+
y === -1 ? f = "-" : t === m || y !== m.length - 1 ? (f = "+", r && r()) : f = "", m && (t = t.slice(0, -m.length), m[m.length - 1] === `
|
|
835
|
+
` && (m = m.slice(0, -1)), m = m.replace(ft, `$&${c}`));
|
|
836
|
+
let h = !1, p, b = -1;
|
|
837
|
+
for (p = 0; p < t.length; ++p) {
|
|
838
|
+
const N = t[p];
|
|
839
|
+
if (N === " ")
|
|
840
|
+
h = !0;
|
|
841
|
+
else if (N === `
|
|
847
842
|
`)
|
|
848
|
-
b =
|
|
843
|
+
b = p;
|
|
849
844
|
else
|
|
850
845
|
break;
|
|
851
846
|
}
|
|
852
|
-
let
|
|
853
|
-
|
|
854
|
-
let
|
|
855
|
-
if (s && (
|
|
856
|
-
const
|
|
847
|
+
let w = t.substring(0, b < p ? b + 1 : p);
|
|
848
|
+
w && (t = t.substring(w.length), w = w.replace(/\n+/g, `$&${c}`));
|
|
849
|
+
let k = (h ? c ? "2" : "1" : "") + f;
|
|
850
|
+
if (s && (k += " " + l(s.replace(/ ?[\r\n]+/g, " ")), i && i()), !d) {
|
|
851
|
+
const N = t.replace(/\n+/g, `
|
|
857
852
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
|
|
858
|
-
let
|
|
853
|
+
let A = !1;
|
|
859
854
|
const I = Ve(n, !0);
|
|
860
|
-
o !== "folded" && e !==
|
|
861
|
-
|
|
855
|
+
o !== "folded" && e !== O.BLOCK_FOLDED && (I.onOverflow = () => {
|
|
856
|
+
A = !0;
|
|
862
857
|
});
|
|
863
|
-
const g = Ue(`${
|
|
864
|
-
if (!
|
|
865
|
-
return `>${
|
|
858
|
+
const g = Ue(`${w}${N}${m}`, c, at, I);
|
|
859
|
+
if (!A)
|
|
860
|
+
return `>${k}
|
|
866
861
|
${c}${g}`;
|
|
867
862
|
}
|
|
868
|
-
return t = t.replace(/\n+/g, `$&${c}`), `|${
|
|
869
|
-
${c}${
|
|
863
|
+
return t = t.replace(/\n+/g, `$&${c}`), `|${k}
|
|
864
|
+
${c}${w}${t}${m}`;
|
|
870
865
|
}
|
|
871
866
|
function Fs(s, e, t, n) {
|
|
872
|
-
const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow:
|
|
867
|
+
const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: d } = e;
|
|
873
868
|
if (l && r.includes(`
|
|
874
|
-
`) ||
|
|
869
|
+
`) || d && /[[\]{},]/.test(r))
|
|
875
870
|
return le(r, e);
|
|
876
871
|
if (!r || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
|
|
877
|
-
return l ||
|
|
872
|
+
return l || d || !r.includes(`
|
|
878
873
|
`) ? le(r, e) : Me(s, e, t, n);
|
|
879
|
-
if (!l && !
|
|
874
|
+
if (!l && !d && i !== O.PLAIN && r.includes(`
|
|
880
875
|
`))
|
|
881
876
|
return Me(s, e, t, n);
|
|
882
877
|
if (Je(r)) {
|
|
@@ -888,11 +883,8 @@ function Fs(s, e, t, n) {
|
|
|
888
883
|
const f = r.replace(/\n+/g, `$&
|
|
889
884
|
${a}`);
|
|
890
885
|
if (o) {
|
|
891
|
-
const
|
|
892
|
-
|
|
893
|
-
return u.default && u.tag !== "tag:yaml.org,2002:str" && ((m = u.test) == null ? void 0 : m.test(f));
|
|
894
|
-
}, { compat: h, tags: y } = e.doc.schema;
|
|
895
|
-
if (y.some(d) || h != null && h.some(d))
|
|
886
|
+
const u = (h) => h.default && h.tag !== "tag:yaml.org,2002:str" && h.test?.test(f), { compat: m, tags: y } = e.doc.schema;
|
|
887
|
+
if (y.some(u) || m?.some(u))
|
|
896
888
|
return le(r, e);
|
|
897
889
|
}
|
|
898
890
|
return l ? f : Ue(f, a, Ht, Ve(e, !1));
|
|
@@ -900,17 +892,17 @@ ${a}`);
|
|
|
900
892
|
function Ae(s, e, t, n) {
|
|
901
893
|
const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
|
|
902
894
|
let { type: l } = s;
|
|
903
|
-
l !==
|
|
904
|
-
const a = (
|
|
905
|
-
switch (
|
|
906
|
-
case
|
|
907
|
-
case
|
|
895
|
+
l !== O.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = O.QUOTE_DOUBLE);
|
|
896
|
+
const a = (d) => {
|
|
897
|
+
switch (d) {
|
|
898
|
+
case O.BLOCK_FOLDED:
|
|
899
|
+
case O.BLOCK_LITERAL:
|
|
908
900
|
return i || r ? le(o.value, e) : Me(o, e, t, n);
|
|
909
|
-
case
|
|
901
|
+
case O.QUOTE_DOUBLE:
|
|
910
902
|
return Se(o.value, e);
|
|
911
|
-
case
|
|
903
|
+
case O.QUOTE_SINGLE:
|
|
912
904
|
return ct(o.value, e);
|
|
913
|
-
case
|
|
905
|
+
case O.PLAIN:
|
|
914
906
|
return Fs(o, e, t, n);
|
|
915
907
|
default:
|
|
916
908
|
return null;
|
|
@@ -918,9 +910,9 @@ function Ae(s, e, t, n) {
|
|
|
918
910
|
};
|
|
919
911
|
let c = a(l);
|
|
920
912
|
if (c === null) {
|
|
921
|
-
const { defaultKeyType:
|
|
922
|
-
if (c = a(
|
|
923
|
-
throw new Error(`Unsupported default string type ${
|
|
913
|
+
const { defaultKeyType: d, defaultStringType: f } = e.options, u = i && d || f;
|
|
914
|
+
if (c = a(u), c === null)
|
|
915
|
+
throw new Error(`Unsupported default string type ${u}`);
|
|
924
916
|
}
|
|
925
917
|
return c;
|
|
926
918
|
}
|
|
@@ -966,29 +958,25 @@ function Xt(s, e) {
|
|
|
966
958
|
};
|
|
967
959
|
}
|
|
968
960
|
function Rs(s, e) {
|
|
969
|
-
var i;
|
|
970
961
|
if (e.tag) {
|
|
971
|
-
const
|
|
972
|
-
if (
|
|
973
|
-
return
|
|
962
|
+
const i = s.filter((r) => r.tag === e.tag);
|
|
963
|
+
if (i.length > 0)
|
|
964
|
+
return i.find((r) => r.format === e.format) ?? i[0];
|
|
974
965
|
}
|
|
975
966
|
let t, n;
|
|
976
967
|
if (E(e)) {
|
|
977
968
|
n = e.value;
|
|
978
|
-
let
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
if (r.length > 1) {
|
|
983
|
-
const o = r.filter((l) => l.test);
|
|
984
|
-
o.length > 0 && (r = o);
|
|
969
|
+
let i = s.filter((r) => r.identify?.(n));
|
|
970
|
+
if (i.length > 1) {
|
|
971
|
+
const r = i.filter((o) => o.test);
|
|
972
|
+
r.length > 0 && (i = r);
|
|
985
973
|
}
|
|
986
|
-
t =
|
|
974
|
+
t = i.find((r) => r.format === e.format) ?? i.find((r) => !r.format);
|
|
987
975
|
} else
|
|
988
|
-
n = e, t = s.find((
|
|
976
|
+
n = e, t = s.find((i) => i.nodeClass && n instanceof i.nodeClass);
|
|
989
977
|
if (!t) {
|
|
990
|
-
const
|
|
991
|
-
throw new Error(`Tag not resolved for ${
|
|
978
|
+
const i = n?.constructor?.name ?? typeof n;
|
|
979
|
+
throw new Error(`Tag not resolved for ${i} value`);
|
|
992
980
|
}
|
|
993
981
|
return t;
|
|
994
982
|
}
|
|
@@ -1001,18 +989,17 @@ function Us(s, e, { anchors: t, doc: n }) {
|
|
|
1001
989
|
return o && i.push(n.directives.tagString(o)), i.join(" ");
|
|
1002
990
|
}
|
|
1003
991
|
function fe(s, e, t, n) {
|
|
1004
|
-
var a;
|
|
1005
992
|
if (T(s))
|
|
1006
993
|
return s.toString(e, t, n);
|
|
1007
|
-
if (
|
|
994
|
+
if (Z(s)) {
|
|
1008
995
|
if (e.doc.directives)
|
|
1009
996
|
return s.toString(e);
|
|
1010
|
-
if (
|
|
997
|
+
if (e.resolvedAliases?.has(s))
|
|
1011
998
|
throw new TypeError("Cannot stringify circular structure without alias nodes");
|
|
1012
999
|
e.resolvedAliases ? e.resolvedAliases.add(s) : e.resolvedAliases = /* @__PURE__ */ new Set([s]), s = s.resolve(e.doc);
|
|
1013
1000
|
}
|
|
1014
1001
|
let i;
|
|
1015
|
-
const r = $(s) ? s : e.doc.createNode(s, { onTagObj: (
|
|
1002
|
+
const r = $(s) ? s : e.doc.createNode(s, { onTagObj: (a) => i = a });
|
|
1016
1003
|
i || (i = Rs(e.doc.schema.tags, r));
|
|
1017
1004
|
const o = Us(r, i, e);
|
|
1018
1005
|
o.length > 0 && (e.indentAtStart = (e.indentAtStart ?? 0) + o.length + 1);
|
|
@@ -1021,67 +1008,67 @@ function fe(s, e, t, n) {
|
|
|
1021
1008
|
${e.indent}${l}` : l;
|
|
1022
1009
|
}
|
|
1023
1010
|
function Vs({ key: s, value: e }, t, n, i) {
|
|
1024
|
-
const { allNullValues: r, doc: o, indent: l, indentStep: a, options: { commentString: c, indentSeq:
|
|
1025
|
-
let
|
|
1011
|
+
const { allNullValues: r, doc: o, indent: l, indentStep: a, options: { commentString: c, indentSeq: d, simpleKeys: f } } = t;
|
|
1012
|
+
let u = $(s) && s.comment || null;
|
|
1026
1013
|
if (f) {
|
|
1027
|
-
if (
|
|
1014
|
+
if (u)
|
|
1028
1015
|
throw new Error("With simple keys, key nodes cannot have comments");
|
|
1029
1016
|
if (L(s) || !$(s) && typeof s == "object") {
|
|
1030
1017
|
const I = "With simple keys, collection cannot be used as a key value";
|
|
1031
1018
|
throw new Error(I);
|
|
1032
1019
|
}
|
|
1033
1020
|
}
|
|
1034
|
-
let
|
|
1021
|
+
let m = !f && (!s || u && e == null && !t.inFlow || L(s) || (E(s) ? s.type === O.BLOCK_FOLDED || s.type === O.BLOCK_LITERAL : typeof s == "object"));
|
|
1035
1022
|
t = Object.assign({}, t, {
|
|
1036
1023
|
allNullValues: !1,
|
|
1037
|
-
implicitKey: !
|
|
1024
|
+
implicitKey: !m && (f || !r),
|
|
1038
1025
|
indent: l + a
|
|
1039
1026
|
});
|
|
1040
|
-
let y = !1,
|
|
1041
|
-
if (!
|
|
1027
|
+
let y = !1, h = !1, p = fe(s, t, () => y = !0, () => h = !0);
|
|
1028
|
+
if (!m && !t.inFlow && p.length > 1024) {
|
|
1042
1029
|
if (f)
|
|
1043
1030
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
1044
|
-
|
|
1031
|
+
m = !0;
|
|
1045
1032
|
}
|
|
1046
1033
|
if (t.inFlow) {
|
|
1047
1034
|
if (r || e == null)
|
|
1048
|
-
return y && n && n(),
|
|
1049
|
-
} else if (r && !f || e == null &&
|
|
1050
|
-
return
|
|
1051
|
-
y && (
|
|
1052
|
-
${l}:`) : (
|
|
1053
|
-
let b,
|
|
1054
|
-
$(e) ? (b = !!e.spaceBefore,
|
|
1055
|
-
let
|
|
1056
|
-
const
|
|
1057
|
-
let
|
|
1058
|
-
if (
|
|
1059
|
-
if (
|
|
1060
|
-
` : "",
|
|
1061
|
-
const I = c(
|
|
1062
|
-
|
|
1035
|
+
return y && n && n(), p === "" ? "?" : m ? `? ${p}` : p;
|
|
1036
|
+
} else if (r && !f || e == null && m)
|
|
1037
|
+
return p = `? ${p}`, u && !y ? p += H(p, t.indent, c(u)) : h && i && i(), p;
|
|
1038
|
+
y && (u = null), m ? (u && (p += H(p, t.indent, c(u))), p = `? ${p}
|
|
1039
|
+
${l}:`) : (p = `${p}:`, u && (p += H(p, t.indent, c(u))));
|
|
1040
|
+
let b, w, S;
|
|
1041
|
+
$(e) ? (b = !!e.spaceBefore, w = e.commentBefore, S = e.comment) : (b = !1, w = null, S = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !m && !u && E(e) && (t.indentAtStart = p.length + 1), h = !1, !d && a.length >= 2 && !t.inFlow && !m && pe(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
|
|
1042
|
+
let k = !1;
|
|
1043
|
+
const N = fe(e, t, () => k = !0, () => h = !0);
|
|
1044
|
+
let A = " ";
|
|
1045
|
+
if (u || b || w) {
|
|
1046
|
+
if (A = b ? `
|
|
1047
|
+
` : "", w) {
|
|
1048
|
+
const I = c(w);
|
|
1049
|
+
A += `
|
|
1063
1050
|
${U(I, t.indent)}`;
|
|
1064
1051
|
}
|
|
1065
|
-
|
|
1066
|
-
` && (
|
|
1052
|
+
N === "" && !t.inFlow ? A === `
|
|
1053
|
+
` && (A = `
|
|
1067
1054
|
|
|
1068
|
-
`) :
|
|
1055
|
+
`) : A += `
|
|
1069
1056
|
${t.indent}`;
|
|
1070
|
-
} else if (!
|
|
1071
|
-
const I =
|
|
1057
|
+
} else if (!m && L(e)) {
|
|
1058
|
+
const I = N[0], g = N.indexOf(`
|
|
1072
1059
|
`), _ = g !== -1, J = t.inFlow ?? e.flow ?? e.items.length === 0;
|
|
1073
1060
|
if (_ || !J) {
|
|
1074
1061
|
let te = !1;
|
|
1075
1062
|
if (_ && (I === "&" || I === "!")) {
|
|
1076
|
-
let C =
|
|
1077
|
-
I === "&" && C !== -1 && C < g &&
|
|
1063
|
+
let C = N.indexOf(" ");
|
|
1064
|
+
I === "&" && C !== -1 && C < g && N[C + 1] === "!" && (C = N.indexOf(" ", C + 1)), (C === -1 || g < C) && (te = !0);
|
|
1078
1065
|
}
|
|
1079
|
-
te || (
|
|
1066
|
+
te || (A = `
|
|
1080
1067
|
${t.indent}`);
|
|
1081
1068
|
}
|
|
1082
|
-
} else (
|
|
1083
|
-
`) && (
|
|
1084
|
-
return
|
|
1069
|
+
} else (N === "" || N[0] === `
|
|
1070
|
+
`) && (A = "");
|
|
1071
|
+
return p += A + N, t.inFlow ? k && n && n() : S && !k ? p += H(p, t.indent, c(S)) : h && i && i(), p;
|
|
1085
1072
|
}
|
|
1086
1073
|
function zt(s, e) {
|
|
1087
1074
|
(s === "debug" || s === "warn") && console.warn(e);
|
|
@@ -1091,13 +1078,13 @@ const Te = "<<", V = {
|
|
|
1091
1078
|
default: "key",
|
|
1092
1079
|
tag: "tag:yaml.org,2002:merge",
|
|
1093
1080
|
test: /^<<$/,
|
|
1094
|
-
resolve: () => Object.assign(new
|
|
1095
|
-
addToJSMap:
|
|
1081
|
+
resolve: () => Object.assign(new O(Symbol(Te)), {
|
|
1082
|
+
addToJSMap: xt
|
|
1096
1083
|
}),
|
|
1097
1084
|
stringify: () => Te
|
|
1098
|
-
}, Js = (s, e) => (V.identify(e) || E(e) && (!e.type || e.type ===
|
|
1099
|
-
function
|
|
1100
|
-
if (t = s &&
|
|
1085
|
+
}, Js = (s, e) => (V.identify(e) || E(e) && (!e.type || e.type === O.PLAIN) && V.identify(e.value)) && s?.doc.schema.tags.some((t) => t.tag === V.tag && t.default);
|
|
1086
|
+
function xt(s, e, t) {
|
|
1087
|
+
if (t = s && Z(t) ? t.resolve(s.doc) : t, pe(t))
|
|
1101
1088
|
for (const n of t.items)
|
|
1102
1089
|
et(s, e, n);
|
|
1103
1090
|
else if (Array.isArray(t))
|
|
@@ -1107,7 +1094,7 @@ function Zt(s, e, t) {
|
|
|
1107
1094
|
et(s, e, t);
|
|
1108
1095
|
}
|
|
1109
1096
|
function et(s, e, t) {
|
|
1110
|
-
const n = s &&
|
|
1097
|
+
const n = s && Z(t) ? t.resolve(s.doc) : t;
|
|
1111
1098
|
if (!de(n))
|
|
1112
1099
|
throw new Error("Merge sources must be maps or map aliases");
|
|
1113
1100
|
const i = n.toJSON(null, s, Map);
|
|
@@ -1120,19 +1107,19 @@ function et(s, e, t) {
|
|
|
1120
1107
|
});
|
|
1121
1108
|
return e;
|
|
1122
1109
|
}
|
|
1123
|
-
function
|
|
1110
|
+
function Zt(s, e, { key: t, value: n }) {
|
|
1124
1111
|
if ($(t) && t.addToJSMap)
|
|
1125
1112
|
t.addToJSMap(s, e, n);
|
|
1126
1113
|
else if (Js(s, t))
|
|
1127
|
-
|
|
1114
|
+
xt(s, e, n);
|
|
1128
1115
|
else {
|
|
1129
|
-
const i =
|
|
1116
|
+
const i = j(t, "", s);
|
|
1130
1117
|
if (e instanceof Map)
|
|
1131
|
-
e.set(i,
|
|
1118
|
+
e.set(i, j(n, i, s));
|
|
1132
1119
|
else if (e instanceof Set)
|
|
1133
1120
|
e.add(i);
|
|
1134
1121
|
else {
|
|
1135
|
-
const r = Ys(t, i, s), o =
|
|
1122
|
+
const r = Ys(t, i, s), o = j(n, r, s);
|
|
1136
1123
|
r in e ? Object.defineProperty(e, r, {
|
|
1137
1124
|
value: o,
|
|
1138
1125
|
writable: !0,
|
|
@@ -1148,7 +1135,7 @@ function Ys(s, e, t) {
|
|
|
1148
1135
|
return "";
|
|
1149
1136
|
if (typeof e != "object")
|
|
1150
1137
|
return String(e);
|
|
1151
|
-
if ($(s) &&
|
|
1138
|
+
if ($(s) && t?.doc) {
|
|
1152
1139
|
const n = Xt(t.doc, {});
|
|
1153
1140
|
n.anchors = /* @__PURE__ */ new Set();
|
|
1154
1141
|
for (const r of t.anchors.keys())
|
|
@@ -1169,54 +1156,54 @@ function mt(s, e, t) {
|
|
|
1169
1156
|
}
|
|
1170
1157
|
class v {
|
|
1171
1158
|
constructor(e, t = null) {
|
|
1172
|
-
Object.defineProperty(this,
|
|
1159
|
+
Object.defineProperty(this, P, { value: qt }), this.key = e, this.value = t;
|
|
1173
1160
|
}
|
|
1174
1161
|
clone(e) {
|
|
1175
1162
|
let { key: t, value: n } = this;
|
|
1176
1163
|
return $(t) && (t = t.clone(e)), $(n) && (n = n.clone(e)), new v(t, n);
|
|
1177
1164
|
}
|
|
1178
1165
|
toJSON(e, t) {
|
|
1179
|
-
const n = t
|
|
1180
|
-
return
|
|
1166
|
+
const n = t?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
1167
|
+
return Zt(t, n, this);
|
|
1181
1168
|
}
|
|
1182
1169
|
toString(e, t, n) {
|
|
1183
|
-
return e
|
|
1170
|
+
return e?.doc ? Vs(this, e, t, n) : JSON.stringify(this);
|
|
1184
1171
|
}
|
|
1185
1172
|
}
|
|
1186
1173
|
function es(s, e, t) {
|
|
1187
1174
|
return (e.inFlow ?? s.flow ? Qs : Gs)(s, e, t);
|
|
1188
1175
|
}
|
|
1189
1176
|
function Gs({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
|
|
1190
|
-
const { indent: a, options: { commentString: c } } = t,
|
|
1177
|
+
const { indent: a, options: { commentString: c } } = t, d = Object.assign({}, t, { indent: r, type: null });
|
|
1191
1178
|
let f = !1;
|
|
1192
|
-
const
|
|
1179
|
+
const u = [];
|
|
1193
1180
|
for (let y = 0; y < e.length; ++y) {
|
|
1194
|
-
const
|
|
1195
|
-
let
|
|
1196
|
-
if ($(
|
|
1197
|
-
!f &&
|
|
1198
|
-
else if (T(
|
|
1199
|
-
const
|
|
1200
|
-
|
|
1181
|
+
const h = e[y];
|
|
1182
|
+
let p = null;
|
|
1183
|
+
if ($(h))
|
|
1184
|
+
!f && h.spaceBefore && u.push(""), Pe(t, u, h.commentBefore, f), h.comment && (p = h.comment);
|
|
1185
|
+
else if (T(h)) {
|
|
1186
|
+
const w = $(h.key) ? h.key : null;
|
|
1187
|
+
w && (!f && w.spaceBefore && u.push(""), Pe(t, u, w.commentBefore, f));
|
|
1201
1188
|
}
|
|
1202
1189
|
f = !1;
|
|
1203
|
-
let b = fe(
|
|
1204
|
-
|
|
1190
|
+
let b = fe(h, d, () => p = null, () => f = !0);
|
|
1191
|
+
p && (b += H(b, r, c(p))), f && p && (f = !1), u.push(n + b);
|
|
1205
1192
|
}
|
|
1206
|
-
let
|
|
1207
|
-
if (
|
|
1208
|
-
|
|
1193
|
+
let m;
|
|
1194
|
+
if (u.length === 0)
|
|
1195
|
+
m = i.start + i.end;
|
|
1209
1196
|
else {
|
|
1210
|
-
|
|
1211
|
-
for (let y = 1; y <
|
|
1212
|
-
const
|
|
1213
|
-
|
|
1214
|
-
${a}${
|
|
1197
|
+
m = u[0];
|
|
1198
|
+
for (let y = 1; y < u.length; ++y) {
|
|
1199
|
+
const h = u[y];
|
|
1200
|
+
m += h ? `
|
|
1201
|
+
${a}${h}` : `
|
|
1215
1202
|
`;
|
|
1216
1203
|
}
|
|
1217
1204
|
}
|
|
1218
|
-
return s ? (
|
|
1219
|
-
` + U(c(s), a), l && l()) : f && o && o(),
|
|
1205
|
+
return s ? (m += `
|
|
1206
|
+
` + U(c(s), a), l && l()) : f && o && o(), m;
|
|
1220
1207
|
}
|
|
1221
1208
|
function Qs({ items: s }, e, { flowChars: t, itemIndent: n }) {
|
|
1222
1209
|
const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: l } } = e;
|
|
@@ -1226,43 +1213,43 @@ function Qs({ items: s }, e, { flowChars: t, itemIndent: n }) {
|
|
|
1226
1213
|
inFlow: !0,
|
|
1227
1214
|
type: null
|
|
1228
1215
|
});
|
|
1229
|
-
let c = !1,
|
|
1216
|
+
let c = !1, d = 0;
|
|
1230
1217
|
const f = [];
|
|
1231
1218
|
for (let y = 0; y < s.length; ++y) {
|
|
1232
|
-
const
|
|
1233
|
-
let
|
|
1234
|
-
if ($(
|
|
1235
|
-
|
|
1236
|
-
else if (T(
|
|
1237
|
-
const
|
|
1238
|
-
|
|
1239
|
-
const
|
|
1240
|
-
|
|
1219
|
+
const h = s[y];
|
|
1220
|
+
let p = null;
|
|
1221
|
+
if ($(h))
|
|
1222
|
+
h.spaceBefore && f.push(""), Pe(e, f, h.commentBefore, !1), h.comment && (p = h.comment);
|
|
1223
|
+
else if (T(h)) {
|
|
1224
|
+
const w = $(h.key) ? h.key : null;
|
|
1225
|
+
w && (w.spaceBefore && f.push(""), Pe(e, f, w.commentBefore, !1), w.comment && (c = !0));
|
|
1226
|
+
const S = $(h.value) ? h.value : null;
|
|
1227
|
+
S ? (S.comment && (p = S.comment), S.commentBefore && (c = !0)) : h.value == null && w?.comment && (p = w.comment);
|
|
1241
1228
|
}
|
|
1242
|
-
|
|
1243
|
-
let b = fe(
|
|
1244
|
-
y < s.length - 1 && (b += ","),
|
|
1245
|
-
`)) && (c = !0), f.push(b),
|
|
1229
|
+
p && (c = !0);
|
|
1230
|
+
let b = fe(h, a, () => p = null);
|
|
1231
|
+
y < s.length - 1 && (b += ","), p && (b += H(b, n, l(p))), !c && (f.length > d || b.includes(`
|
|
1232
|
+
`)) && (c = !0), f.push(b), d = f.length;
|
|
1246
1233
|
}
|
|
1247
|
-
const { start:
|
|
1234
|
+
const { start: u, end: m } = t;
|
|
1248
1235
|
if (f.length === 0)
|
|
1249
|
-
return
|
|
1236
|
+
return u + m;
|
|
1250
1237
|
if (!c) {
|
|
1251
|
-
const y = f.reduce((
|
|
1238
|
+
const y = f.reduce((h, p) => h + p.length + 2, 2);
|
|
1252
1239
|
c = e.options.lineWidth > 0 && y > e.options.lineWidth;
|
|
1253
1240
|
}
|
|
1254
1241
|
if (c) {
|
|
1255
|
-
let y =
|
|
1256
|
-
for (const
|
|
1257
|
-
y +=
|
|
1258
|
-
${r}${i}${
|
|
1242
|
+
let y = u;
|
|
1243
|
+
for (const h of f)
|
|
1244
|
+
y += h ? `
|
|
1245
|
+
${r}${i}${h}` : `
|
|
1259
1246
|
`;
|
|
1260
1247
|
return `${y}
|
|
1261
|
-
${i}${
|
|
1248
|
+
${i}${m}`;
|
|
1262
1249
|
} else
|
|
1263
|
-
return `${
|
|
1250
|
+
return `${u}${o}${f.join(" ")}${o}${m}`;
|
|
1264
1251
|
}
|
|
1265
|
-
function
|
|
1252
|
+
function Pe({ indent: s, options: { commentString: e } }, t, n, i) {
|
|
1266
1253
|
if (n && i && (n = n.replace(/^\n+/, "")), n) {
|
|
1267
1254
|
const r = U(e(n), s);
|
|
1268
1255
|
t.push(r.trimStart());
|
|
@@ -1279,7 +1266,7 @@ class K extends Wt {
|
|
|
1279
1266
|
return "tag:yaml.org,2002:map";
|
|
1280
1267
|
}
|
|
1281
1268
|
constructor(e) {
|
|
1282
|
-
super(
|
|
1269
|
+
super(G, e), this.items = [];
|
|
1283
1270
|
}
|
|
1284
1271
|
/**
|
|
1285
1272
|
* A generic collection parsing method that can be extended
|
|
@@ -1308,17 +1295,16 @@ class K extends Wt {
|
|
|
1308
1295
|
* collection will throw. Otherwise, overwrites the previous value.
|
|
1309
1296
|
*/
|
|
1310
1297
|
add(e, t) {
|
|
1311
|
-
var o;
|
|
1312
1298
|
let n;
|
|
1313
|
-
T(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new v(e, e
|
|
1314
|
-
const i = X(this.items, n.key), r =
|
|
1299
|
+
T(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new v(e, e?.value) : n = new v(e.key, e.value);
|
|
1300
|
+
const i = X(this.items, n.key), r = this.schema?.sortMapEntries;
|
|
1315
1301
|
if (i) {
|
|
1316
1302
|
if (!t)
|
|
1317
1303
|
throw new Error(`Key ${n.key} already set`);
|
|
1318
1304
|
E(i.value) && Qt(n.value) ? i.value.value = n.value : i.value = n.value;
|
|
1319
1305
|
} else if (r) {
|
|
1320
|
-
const
|
|
1321
|
-
|
|
1306
|
+
const o = this.items.findIndex((l) => r(n, l) < 0);
|
|
1307
|
+
o === -1 ? this.items.push(n) : this.items.splice(o, 0, n);
|
|
1322
1308
|
} else
|
|
1323
1309
|
this.items.push(n);
|
|
1324
1310
|
}
|
|
@@ -1327,7 +1313,7 @@ class K extends Wt {
|
|
|
1327
1313
|
return t ? this.items.splice(this.items.indexOf(t), 1).length > 0 : !1;
|
|
1328
1314
|
}
|
|
1329
1315
|
get(e, t) {
|
|
1330
|
-
const
|
|
1316
|
+
const i = X(this.items, e)?.value;
|
|
1331
1317
|
return (!t && E(i) ? i.value : i) ?? void 0;
|
|
1332
1318
|
}
|
|
1333
1319
|
has(e) {
|
|
@@ -1342,10 +1328,10 @@ class K extends Wt {
|
|
|
1342
1328
|
* @returns Instance of Type, Map, or Object
|
|
1343
1329
|
*/
|
|
1344
1330
|
toJSON(e, t, n) {
|
|
1345
|
-
const i = n ? new n() : t
|
|
1346
|
-
t
|
|
1331
|
+
const i = n ? new n() : t?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
1332
|
+
t?.onCreate && t.onCreate(i);
|
|
1347
1333
|
for (const r of this.items)
|
|
1348
|
-
|
|
1334
|
+
Zt(t, i, r);
|
|
1349
1335
|
return i;
|
|
1350
1336
|
}
|
|
1351
1337
|
toString(e, t, n) {
|
|
@@ -1373,7 +1359,7 @@ const me = {
|
|
|
1373
1359
|
},
|
|
1374
1360
|
createNode: (s, e, t) => K.from(s, e, t)
|
|
1375
1361
|
};
|
|
1376
|
-
class
|
|
1362
|
+
class W extends Wt {
|
|
1377
1363
|
static get tagName() {
|
|
1378
1364
|
return "tag:yaml.org,2002:seq";
|
|
1379
1365
|
}
|
|
@@ -1428,10 +1414,10 @@ class Q extends Wt {
|
|
|
1428
1414
|
}
|
|
1429
1415
|
toJSON(e, t) {
|
|
1430
1416
|
const n = [];
|
|
1431
|
-
t
|
|
1417
|
+
t?.onCreate && t.onCreate(n);
|
|
1432
1418
|
let i = 0;
|
|
1433
1419
|
for (const r of this.items)
|
|
1434
|
-
n.push(
|
|
1420
|
+
n.push(j(r, String(i++), t));
|
|
1435
1421
|
return n;
|
|
1436
1422
|
}
|
|
1437
1423
|
toString(e, t, n) {
|
|
@@ -1465,12 +1451,12 @@ function Le(s) {
|
|
|
1465
1451
|
const ye = {
|
|
1466
1452
|
collection: "seq",
|
|
1467
1453
|
default: !0,
|
|
1468
|
-
nodeClass:
|
|
1454
|
+
nodeClass: W,
|
|
1469
1455
|
tag: "tag:yaml.org,2002:seq",
|
|
1470
1456
|
resolve(s, e) {
|
|
1471
1457
|
return pe(s) || e("Expected a sequence for this tag"), s;
|
|
1472
1458
|
},
|
|
1473
|
-
createNode: (s, e, t) =>
|
|
1459
|
+
createNode: (s, e, t) => W.from(s, e, t)
|
|
1474
1460
|
}, Ye = {
|
|
1475
1461
|
identify: (s) => typeof s == "string",
|
|
1476
1462
|
default: !0,
|
|
@@ -1481,18 +1467,18 @@ const ye = {
|
|
|
1481
1467
|
}
|
|
1482
1468
|
}, Ge = {
|
|
1483
1469
|
identify: (s) => s == null,
|
|
1484
|
-
createNode: () => new
|
|
1470
|
+
createNode: () => new O(null),
|
|
1485
1471
|
default: !0,
|
|
1486
1472
|
tag: "tag:yaml.org,2002:null",
|
|
1487
1473
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
1488
|
-
resolve: () => new
|
|
1474
|
+
resolve: () => new O(null),
|
|
1489
1475
|
stringify: ({ source: s }, e) => typeof s == "string" && Ge.test.test(s) ? s : e.options.nullStr
|
|
1490
1476
|
}, yt = {
|
|
1491
1477
|
identify: (s) => typeof s == "boolean",
|
|
1492
1478
|
default: !0,
|
|
1493
1479
|
tag: "tag:yaml.org,2002:bool",
|
|
1494
1480
|
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
1495
|
-
resolve: (s) => new
|
|
1481
|
+
resolve: (s) => new O(s[0] === "t" || s[0] === "T"),
|
|
1496
1482
|
stringify({ source: s, value: e }, t) {
|
|
1497
1483
|
if (s && yt.test.test(s)) {
|
|
1498
1484
|
const n = s[0] === "t" || s[0] === "T";
|
|
@@ -1542,7 +1528,7 @@ const ts = {
|
|
|
1542
1528
|
tag: "tag:yaml.org,2002:float",
|
|
1543
1529
|
test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
|
|
1544
1530
|
resolve(s) {
|
|
1545
|
-
const e = new
|
|
1531
|
+
const e = new O(parseFloat(s)), t = s.indexOf(".");
|
|
1546
1532
|
return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
|
|
1547
1533
|
},
|
|
1548
1534
|
stringify: q
|
|
@@ -1600,7 +1586,7 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1600
1586
|
},
|
|
1601
1587
|
{
|
|
1602
1588
|
identify: (s) => s == null,
|
|
1603
|
-
createNode: () => new
|
|
1589
|
+
createNode: () => new O(null),
|
|
1604
1590
|
default: !0,
|
|
1605
1591
|
tag: "tag:yaml.org,2002:null",
|
|
1606
1592
|
test: /^null$/,
|
|
@@ -1661,6 +1647,8 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1661
1647
|
return e("This environment does not support reading binary tags; either Buffer or atob is required"), s;
|
|
1662
1648
|
},
|
|
1663
1649
|
stringify({ comment: s, type: e, value: t }, n, i, r) {
|
|
1650
|
+
if (!t)
|
|
1651
|
+
return "";
|
|
1664
1652
|
const o = t;
|
|
1665
1653
|
let l;
|
|
1666
1654
|
if (typeof btoa == "function") {
|
|
@@ -1670,11 +1658,11 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1670
1658
|
l = btoa(a);
|
|
1671
1659
|
} else
|
|
1672
1660
|
throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
|
|
1673
|
-
if (e || (e =
|
|
1674
|
-
const a = Math.max(n.options.lineWidth - n.indent.length, n.options.minContentWidth), c = Math.ceil(l.length / a),
|
|
1675
|
-
for (let f = 0,
|
|
1676
|
-
|
|
1677
|
-
l =
|
|
1661
|
+
if (e || (e = O.BLOCK_LITERAL), e !== O.QUOTE_DOUBLE) {
|
|
1662
|
+
const a = Math.max(n.options.lineWidth - n.indent.length, n.options.minContentWidth), c = Math.ceil(l.length / a), d = new Array(c);
|
|
1663
|
+
for (let f = 0, u = 0; f < c; ++f, u += a)
|
|
1664
|
+
d[f] = l.substr(u, a);
|
|
1665
|
+
l = d.join(e === O.BLOCK_LITERAL ? `
|
|
1678
1666
|
` : " ");
|
|
1679
1667
|
}
|
|
1680
1668
|
return Ae({ comment: s, type: e, value: l }, n, i, r);
|
|
@@ -1687,7 +1675,7 @@ function as(s, e) {
|
|
|
1687
1675
|
if (!T(n)) {
|
|
1688
1676
|
if (de(n)) {
|
|
1689
1677
|
n.items.length > 1 && e("Each pair must have its own sequence indicator");
|
|
1690
|
-
const i = n.items[0] || new v(new
|
|
1678
|
+
const i = n.items[0] || new v(new O(null));
|
|
1691
1679
|
if (n.commentBefore && (i.key.commentBefore = i.key.commentBefore ? `${n.commentBefore}
|
|
1692
1680
|
${i.key.commentBefore}` : n.commentBefore), n.comment) {
|
|
1693
1681
|
const r = i.value ?? i.key;
|
|
@@ -1704,7 +1692,7 @@ ${r.comment}` : n.comment;
|
|
|
1704
1692
|
return s;
|
|
1705
1693
|
}
|
|
1706
1694
|
function cs(s, e, t) {
|
|
1707
|
-
const { replacer: n } = t, i = new
|
|
1695
|
+
const { replacer: n } = t, i = new W(s);
|
|
1708
1696
|
i.tag = "tag:yaml.org,2002:pairs";
|
|
1709
1697
|
let r = 0;
|
|
1710
1698
|
if (e && Symbol.iterator in Object(e))
|
|
@@ -1735,7 +1723,7 @@ const wt = {
|
|
|
1735
1723
|
resolve: as,
|
|
1736
1724
|
createNode: cs
|
|
1737
1725
|
};
|
|
1738
|
-
class ae extends
|
|
1726
|
+
class ae extends W {
|
|
1739
1727
|
constructor() {
|
|
1740
1728
|
super(), this.add = K.prototype.add.bind(this), this.delete = K.prototype.delete.bind(this), this.get = K.prototype.get.bind(this), this.has = K.prototype.has.bind(this), this.set = K.prototype.set.bind(this), this.tag = ae.tag;
|
|
1741
1729
|
}
|
|
@@ -1747,10 +1735,10 @@ class ae extends Q {
|
|
|
1747
1735
|
if (!t)
|
|
1748
1736
|
return super.toJSON(e);
|
|
1749
1737
|
const n = /* @__PURE__ */ new Map();
|
|
1750
|
-
t
|
|
1738
|
+
t?.onCreate && t.onCreate(n);
|
|
1751
1739
|
for (const i of this.items) {
|
|
1752
1740
|
let r, o;
|
|
1753
|
-
if (T(i) ? (r =
|
|
1741
|
+
if (T(i) ? (r = j(i.key, "", t), o = j(i.value, r, t)) : r = j(i, "", t), n.has(r))
|
|
1754
1742
|
throw new Error("Ordered maps must not include duplicate keys");
|
|
1755
1743
|
n.set(r, o);
|
|
1756
1744
|
}
|
|
@@ -1784,23 +1772,23 @@ const us = {
|
|
|
1784
1772
|
default: !0,
|
|
1785
1773
|
tag: "tag:yaml.org,2002:bool",
|
|
1786
1774
|
test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
|
|
1787
|
-
resolve: () => new
|
|
1775
|
+
resolve: () => new O(!0),
|
|
1788
1776
|
stringify: fs
|
|
1789
1777
|
}, hs = {
|
|
1790
1778
|
identify: (s) => s === !1,
|
|
1791
1779
|
default: !0,
|
|
1792
1780
|
tag: "tag:yaml.org,2002:bool",
|
|
1793
1781
|
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
|
|
1794
|
-
resolve: () => new
|
|
1782
|
+
resolve: () => new O(!1),
|
|
1795
1783
|
stringify: fs
|
|
1796
|
-
},
|
|
1784
|
+
}, xs = {
|
|
1797
1785
|
identify: (s) => typeof s == "number",
|
|
1798
1786
|
default: !0,
|
|
1799
1787
|
tag: "tag:yaml.org,2002:float",
|
|
1800
1788
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
1801
1789
|
resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
1802
1790
|
stringify: q
|
|
1803
|
-
},
|
|
1791
|
+
}, Zs = {
|
|
1804
1792
|
identify: (s) => typeof s == "number",
|
|
1805
1793
|
default: !0,
|
|
1806
1794
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -1817,7 +1805,7 @@ const us = {
|
|
|
1817
1805
|
tag: "tag:yaml.org,2002:float",
|
|
1818
1806
|
test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,
|
|
1819
1807
|
resolve(s) {
|
|
1820
|
-
const e = new
|
|
1808
|
+
const e = new O(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
|
|
1821
1809
|
if (t !== -1) {
|
|
1822
1810
|
const n = s.substring(t + 1).replace(/_/g, "");
|
|
1823
1811
|
n[n.length - 1] === "0" && (e.minFractionDigits = n.length);
|
|
@@ -1989,14 +1977,14 @@ const ps = {
|
|
|
1989
1977
|
throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");
|
|
1990
1978
|
const [, t, n, i, r, o, l] = e.map(Number), a = e[7] ? Number((e[7] + "00").substr(1, 3)) : 0;
|
|
1991
1979
|
let c = Date.UTC(t, n - 1, i, r || 0, o || 0, l || 0, a);
|
|
1992
|
-
const
|
|
1993
|
-
if (
|
|
1994
|
-
let f = Ot(
|
|
1980
|
+
const d = e[8];
|
|
1981
|
+
if (d && d !== "Z") {
|
|
1982
|
+
let f = Ot(d, !1);
|
|
1995
1983
|
Math.abs(f) < 30 && (f *= 60), c -= 6e4 * f;
|
|
1996
1984
|
}
|
|
1997
1985
|
return new Date(c);
|
|
1998
1986
|
},
|
|
1999
|
-
stringify: ({ value: s }) => s
|
|
1987
|
+
stringify: ({ value: s }) => s?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
|
|
2000
1988
|
}, Ct = [
|
|
2001
1989
|
me,
|
|
2002
1990
|
ye,
|
|
@@ -2008,8 +1996,8 @@ const ps = {
|
|
|
2008
1996
|
sn,
|
|
2009
1997
|
nn,
|
|
2010
1998
|
rn,
|
|
2011
|
-
Zs,
|
|
2012
1999
|
xs,
|
|
2000
|
+
Zs,
|
|
2013
2001
|
en,
|
|
2014
2002
|
bt,
|
|
2015
2003
|
V,
|
|
@@ -2071,7 +2059,7 @@ function tt(s, e, t) {
|
|
|
2071
2059
|
return t && (i = i.concat(V)), i.reduce((r, o) => {
|
|
2072
2060
|
const l = typeof o == "string" ? Bt[o] : o;
|
|
2073
2061
|
if (!l) {
|
|
2074
|
-
const a = JSON.stringify(o), c = Object.keys(Bt).map((
|
|
2062
|
+
const a = JSON.stringify(o), c = Object.keys(Bt).map((d) => JSON.stringify(d)).join(", ");
|
|
2075
2063
|
throw new Error(`Unknown custom tag ${a}; use one of ${c}`);
|
|
2076
2064
|
}
|
|
2077
2065
|
return r.includes(l) || r.push(l), r;
|
|
@@ -2080,7 +2068,7 @@ function tt(s, e, t) {
|
|
|
2080
2068
|
const ln = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
|
|
2081
2069
|
class Xe {
|
|
2082
2070
|
constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
|
|
2083
|
-
this.compat = Array.isArray(e) ? tt(e, "compat") : e ? tt(null, e) : null, this.name = typeof r == "string" && r || "core", this.knownTags = i ? on : {}, this.tags = tt(t, this.name, n), this.toStringOptions = l ?? null, Object.defineProperty(this,
|
|
2071
|
+
this.compat = Array.isArray(e) ? tt(e, "compat") : e ? tt(null, e) : null, this.name = typeof r == "string" && r || "core", this.knownTags = i ? on : {}, this.tags = tt(t, this.name, n), this.toStringOptions = l ?? null, Object.defineProperty(this, G, { value: me }), Object.defineProperty(this, R, { value: Ye }), Object.defineProperty(this, he, { value: ye }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? ln : null;
|
|
2084
2072
|
}
|
|
2085
2073
|
clone() {
|
|
2086
2074
|
const e = Object.create(Xe.prototype, Object.getOwnPropertyDescriptors(this));
|
|
@@ -2088,44 +2076,43 @@ class Xe {
|
|
|
2088
2076
|
}
|
|
2089
2077
|
}
|
|
2090
2078
|
function an(s, e) {
|
|
2091
|
-
var a;
|
|
2092
2079
|
const t = [];
|
|
2093
2080
|
let n = e.directives === !0;
|
|
2094
2081
|
if (e.directives !== !1 && s.directives) {
|
|
2095
|
-
const
|
|
2096
|
-
|
|
2082
|
+
const a = s.directives.toString(s);
|
|
2083
|
+
a ? (t.push(a), n = !0) : s.directives.docStart && (n = !0);
|
|
2097
2084
|
}
|
|
2098
2085
|
n && t.push("---");
|
|
2099
2086
|
const i = Xt(s, e), { commentString: r } = i.options;
|
|
2100
2087
|
if (s.commentBefore) {
|
|
2101
2088
|
t.length !== 1 && t.unshift("");
|
|
2102
|
-
const
|
|
2103
|
-
t.unshift(U(
|
|
2089
|
+
const a = r(s.commentBefore);
|
|
2090
|
+
t.unshift(U(a, ""));
|
|
2104
2091
|
}
|
|
2105
2092
|
let o = !1, l = null;
|
|
2106
2093
|
if (s.contents) {
|
|
2107
2094
|
if ($(s.contents)) {
|
|
2108
2095
|
if (s.contents.spaceBefore && n && t.push(""), s.contents.commentBefore) {
|
|
2109
|
-
const
|
|
2110
|
-
t.push(U(
|
|
2096
|
+
const d = r(s.contents.commentBefore);
|
|
2097
|
+
t.push(U(d, ""));
|
|
2111
2098
|
}
|
|
2112
2099
|
i.forceBlockIndent = !!s.comment, l = s.contents.comment;
|
|
2113
2100
|
}
|
|
2114
|
-
const
|
|
2115
|
-
let
|
|
2116
|
-
l && (
|
|
2101
|
+
const a = l ? void 0 : () => o = !0;
|
|
2102
|
+
let c = fe(s.contents, i, () => l = null, a);
|
|
2103
|
+
l && (c += H(c, "", r(l))), (c[0] === "|" || c[0] === ">") && t[t.length - 1] === "---" ? t[t.length - 1] = `--- ${c}` : t.push(c);
|
|
2117
2104
|
} else
|
|
2118
2105
|
t.push(fe(s.contents, i));
|
|
2119
|
-
if (
|
|
2106
|
+
if (s.directives?.docEnd)
|
|
2120
2107
|
if (s.comment) {
|
|
2121
|
-
const
|
|
2122
|
-
|
|
2123
|
-
`) ? (t.push("..."), t.push(U(
|
|
2108
|
+
const a = r(s.comment);
|
|
2109
|
+
a.includes(`
|
|
2110
|
+
`) ? (t.push("..."), t.push(U(a, ""))) : t.push(`... ${a}`);
|
|
2124
2111
|
} else
|
|
2125
2112
|
t.push("...");
|
|
2126
2113
|
else {
|
|
2127
|
-
let
|
|
2128
|
-
|
|
2114
|
+
let a = s.comment;
|
|
2115
|
+
a && o && (a = a.replace(/^\n+/, "")), a && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(U(r(a), "")));
|
|
2129
2116
|
}
|
|
2130
2117
|
return t.join(`
|
|
2131
2118
|
`) + `
|
|
@@ -2133,7 +2120,7 @@ function an(s, e) {
|
|
|
2133
2120
|
}
|
|
2134
2121
|
class ge {
|
|
2135
2122
|
constructor(e, t, n) {
|
|
2136
|
-
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this,
|
|
2123
|
+
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, P, { value: lt });
|
|
2137
2124
|
let i = null;
|
|
2138
2125
|
typeof t == "function" || Array.isArray(t) ? i = t : n === void 0 && t && (n = t, t = void 0);
|
|
2139
2126
|
const r = Object.assign({
|
|
@@ -2148,7 +2135,7 @@ class ge {
|
|
|
2148
2135
|
}, n);
|
|
2149
2136
|
this.options = r;
|
|
2150
2137
|
let { version: o } = r;
|
|
2151
|
-
n
|
|
2138
|
+
n?._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (o = this.directives.yaml.version)) : this.directives = new B({ version: o }), this.setSchema(o, n), this.contents = e === void 0 ? null : this.createNode(e, i, n);
|
|
2152
2139
|
}
|
|
2153
2140
|
/**
|
|
2154
2141
|
* Create a deep copy of this Document and its contents.
|
|
@@ -2157,7 +2144,7 @@ class ge {
|
|
|
2157
2144
|
*/
|
|
2158
2145
|
clone() {
|
|
2159
2146
|
const e = Object.create(ge.prototype, {
|
|
2160
|
-
[
|
|
2147
|
+
[P]: { value: lt }
|
|
2161
2148
|
});
|
|
2162
2149
|
return e.commentBefore = this.commentBefore, e.comment = this.comment, e.errors = this.errors.slice(), e.warnings = this.warnings.slice(), e.options = Object.assign({}, this.options), this.directives && (e.directives = this.directives.clone()), e.schema = this.schema.clone(), e.contents = $(this.contents) ? this.contents.clone(e.schema) : this.contents, this.range && (e.range = this.range.slice()), e;
|
|
2163
2150
|
}
|
|
@@ -2191,10 +2178,10 @@ class ge {
|
|
|
2191
2178
|
if (typeof t == "function")
|
|
2192
2179
|
e = t.call({ "": e }, "", e), i = t;
|
|
2193
2180
|
else if (Array.isArray(t)) {
|
|
2194
|
-
const
|
|
2181
|
+
const p = (w) => typeof w == "number" || w instanceof String || w instanceof Number, b = t.filter(p).map(String);
|
|
2195
2182
|
b.length > 0 && (t = t.concat(b)), i = t;
|
|
2196
2183
|
} else n === void 0 && t && (n = t, t = void 0);
|
|
2197
|
-
const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag:
|
|
2184
|
+
const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: d } = n ?? {}, { onAnchor: f, setAnchors: u, sourceObjects: m } = Ks(
|
|
2198
2185
|
this,
|
|
2199
2186
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2200
2187
|
o || "a"
|
|
@@ -2205,9 +2192,9 @@ class ge {
|
|
|
2205
2192
|
onTagObj: c,
|
|
2206
2193
|
replacer: i,
|
|
2207
2194
|
schema: this.schema,
|
|
2208
|
-
sourceObjects:
|
|
2209
|
-
},
|
|
2210
|
-
return l && L(
|
|
2195
|
+
sourceObjects: m
|
|
2196
|
+
}, h = ke(e, d, y);
|
|
2197
|
+
return l && L(h) && (h.flow = !0), u(), h;
|
|
2211
2198
|
}
|
|
2212
2199
|
/**
|
|
2213
2200
|
* Convert a key and a value into a `Pair` using the current schema,
|
|
@@ -2264,14 +2251,14 @@ class ge {
|
|
|
2264
2251
|
* boolean to add/remove the item from the set.
|
|
2265
2252
|
*/
|
|
2266
2253
|
set(e, t) {
|
|
2267
|
-
this.contents == null ? this.contents =
|
|
2254
|
+
this.contents == null ? this.contents = je(this.schema, [e], t) : se(this.contents) && this.contents.set(e, t);
|
|
2268
2255
|
}
|
|
2269
2256
|
/**
|
|
2270
2257
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
2271
2258
|
* boolean to add/remove the item from the set.
|
|
2272
2259
|
*/
|
|
2273
2260
|
setIn(e, t) {
|
|
2274
|
-
we(e) ? this.contents = t : this.contents == null ? this.contents =
|
|
2261
|
+
we(e) ? this.contents = t : this.contents == null ? this.contents = je(this.schema, Array.from(e), t) : se(this.contents) && this.contents.setIn(e, t);
|
|
2275
2262
|
}
|
|
2276
2263
|
/**
|
|
2277
2264
|
* Change the YAML version and schema used by the document.
|
|
@@ -2315,10 +2302,10 @@ class ge {
|
|
|
2315
2302
|
mapAsMap: n === !0,
|
|
2316
2303
|
mapKeyWarned: !1,
|
|
2317
2304
|
maxAliasCount: typeof i == "number" ? i : 100
|
|
2318
|
-
}, a =
|
|
2305
|
+
}, a = j(this.contents, t ?? "", l);
|
|
2319
2306
|
if (typeof r == "function")
|
|
2320
|
-
for (const { count: c, res:
|
|
2321
|
-
r(
|
|
2307
|
+
for (const { count: c, res: d } of l.anchors.values())
|
|
2308
|
+
r(d, c);
|
|
2322
2309
|
return typeof o == "function" ? oe(o, { "": a }, "", a) : a;
|
|
2323
2310
|
}
|
|
2324
2311
|
/**
|
|
@@ -2390,52 +2377,52 @@ ${c}
|
|
|
2390
2377
|
}
|
|
2391
2378
|
};
|
|
2392
2379
|
function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIndent: o, startOnNewline: l }) {
|
|
2393
|
-
let a = !1, c = l,
|
|
2380
|
+
let a = !1, c = l, d = l, f = "", u = "", m = !1, y = !1, h = null, p = null, b = null, w = null, S = null, k = null, N = null;
|
|
2394
2381
|
for (const g of s)
|
|
2395
|
-
switch (y && (g.type !== "space" && g.type !== "newline" && g.type !== "comma" && r(g.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), y = !1),
|
|
2382
|
+
switch (y && (g.type !== "space" && g.type !== "newline" && g.type !== "comma" && r(g.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), y = !1), h && (c && g.type !== "comment" && g.type !== "newline" && r(h, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), h = null), g.type) {
|
|
2396
2383
|
case "space":
|
|
2397
|
-
!e && (t !== "doc-start" ||
|
|
2384
|
+
!e && (t !== "doc-start" || n?.type !== "flow-collection") && g.source.includes(" ") && (h = g), d = !0;
|
|
2398
2385
|
break;
|
|
2399
2386
|
case "comment": {
|
|
2400
|
-
|
|
2387
|
+
d || r(g, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
|
|
2401
2388
|
const _ = g.source.substring(1) || " ";
|
|
2402
|
-
f ? f +=
|
|
2389
|
+
f ? f += u + _ : f = _, u = "", c = !1;
|
|
2403
2390
|
break;
|
|
2404
2391
|
}
|
|
2405
2392
|
case "newline":
|
|
2406
|
-
c ? f ? f += g.source : (!
|
|
2393
|
+
c ? f ? f += g.source : (!k || t !== "seq-item-ind") && (a = !0) : u += g.source, c = !0, m = !0, (p || b) && (w = g), d = !0;
|
|
2407
2394
|
break;
|
|
2408
2395
|
case "anchor":
|
|
2409
|
-
|
|
2396
|
+
p && r(g, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), g.source.endsWith(":") && r(g.offset + g.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), p = g, N === null && (N = g.offset), c = !1, d = !1, y = !0;
|
|
2410
2397
|
break;
|
|
2411
2398
|
case "tag": {
|
|
2412
|
-
b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g,
|
|
2399
|
+
b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g, N === null && (N = g.offset), c = !1, d = !1, y = !0;
|
|
2413
2400
|
break;
|
|
2414
2401
|
}
|
|
2415
2402
|
case t:
|
|
2416
|
-
(
|
|
2403
|
+
(p || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`), k && r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.source} in ${e ?? "collection"}`), k = g, c = t === "seq-item-ind" || t === "explicit-key-ind", d = !1;
|
|
2417
2404
|
break;
|
|
2418
2405
|
case "comma":
|
|
2419
2406
|
if (e) {
|
|
2420
|
-
|
|
2407
|
+
S && r(g, "UNEXPECTED_TOKEN", `Unexpected , in ${e}`), S = g, c = !1, d = !1;
|
|
2421
2408
|
break;
|
|
2422
2409
|
}
|
|
2423
2410
|
// else fallthrough
|
|
2424
2411
|
default:
|
|
2425
|
-
r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.type} token`), c = !1,
|
|
2412
|
+
r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.type} token`), c = !1, d = !1;
|
|
2426
2413
|
}
|
|
2427
|
-
const
|
|
2428
|
-
return y && n && n.type !== "space" && n.type !== "newline" && n.type !== "comma" && (n.type !== "scalar" || n.source !== "") && r(n.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"),
|
|
2429
|
-
comma:
|
|
2430
|
-
found:
|
|
2414
|
+
const A = s[s.length - 1], I = A ? A.offset + A.source.length : i;
|
|
2415
|
+
return y && n && n.type !== "space" && n.type !== "newline" && n.type !== "comma" && (n.type !== "scalar" || n.source !== "") && r(n.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), h && (c && h.indent <= o || n?.type === "block-map" || n?.type === "block-seq") && r(h, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
|
|
2416
|
+
comma: S,
|
|
2417
|
+
found: k,
|
|
2431
2418
|
spaceBefore: a,
|
|
2432
2419
|
comment: f,
|
|
2433
|
-
hasNewline:
|
|
2434
|
-
anchor:
|
|
2420
|
+
hasNewline: m,
|
|
2421
|
+
anchor: p,
|
|
2435
2422
|
tag: b,
|
|
2436
|
-
newlineAfterProp:
|
|
2423
|
+
newlineAfterProp: w,
|
|
2437
2424
|
end: I,
|
|
2438
|
-
start:
|
|
2425
|
+
start: N ?? I
|
|
2439
2426
|
};
|
|
2440
2427
|
}
|
|
2441
2428
|
function Ne(s) {
|
|
@@ -2474,7 +2461,7 @@ function Ne(s) {
|
|
|
2474
2461
|
}
|
|
2475
2462
|
}
|
|
2476
2463
|
function ut(s, e, t) {
|
|
2477
|
-
if (
|
|
2464
|
+
if (e?.type === "flow-collection") {
|
|
2478
2465
|
const n = e.end[0];
|
|
2479
2466
|
n.indent === s && (n.source === "]" || n.source === "}") && Ne(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
|
|
2480
2467
|
}
|
|
@@ -2488,59 +2475,58 @@ function gs(s, e, t) {
|
|
|
2488
2475
|
}
|
|
2489
2476
|
const Mt = "All mapping items must start at the same column";
|
|
2490
2477
|
function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
2491
|
-
|
|
2492
|
-
const o = (r == null ? void 0 : r.nodeClass) ?? K, l = new o(t.schema);
|
|
2478
|
+
const o = r?.nodeClass ?? K, l = new o(t.schema);
|
|
2493
2479
|
t.atRoot && (t.atRoot = !1);
|
|
2494
2480
|
let a = n.offset, c = null;
|
|
2495
|
-
for (const
|
|
2496
|
-
const { start:
|
|
2481
|
+
for (const d of n.items) {
|
|
2482
|
+
const { start: f, key: u, sep: m, value: y } = d, h = ue(f, {
|
|
2497
2483
|
indicator: "explicit-key-ind",
|
|
2498
|
-
next:
|
|
2484
|
+
next: u ?? m?.[0],
|
|
2499
2485
|
offset: a,
|
|
2500
2486
|
onError: i,
|
|
2501
2487
|
parentIndent: n.indent,
|
|
2502
2488
|
startOnNewline: !0
|
|
2503
|
-
}),
|
|
2504
|
-
if (
|
|
2505
|
-
if (
|
|
2506
|
-
c =
|
|
2507
|
-
` +
|
|
2489
|
+
}), p = !h.found;
|
|
2490
|
+
if (p) {
|
|
2491
|
+
if (u && (u.type === "block-seq" ? i(a, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in u && u.indent !== n.indent && i(a, "BAD_INDENT", Mt)), !h.anchor && !h.tag && !m) {
|
|
2492
|
+
c = h.end, h.comment && (l.comment ? l.comment += `
|
|
2493
|
+
` + h.comment : l.comment = h.comment);
|
|
2508
2494
|
continue;
|
|
2509
2495
|
}
|
|
2510
|
-
(
|
|
2511
|
-
} else
|
|
2496
|
+
(h.newlineAfterProp || Ne(u)) && i(u ?? f[f.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
2497
|
+
} else h.found?.indent !== n.indent && i(a, "BAD_INDENT", Mt);
|
|
2512
2498
|
t.atKey = !0;
|
|
2513
|
-
const
|
|
2514
|
-
t.schema.compat && ut(n.indent,
|
|
2515
|
-
const
|
|
2499
|
+
const b = h.end, w = u ? s(t, u, h, i) : e(t, b, f, null, h, i);
|
|
2500
|
+
t.schema.compat && ut(n.indent, u, i), t.atKey = !1, gs(t, l.items, w) && i(b, "DUPLICATE_KEY", "Map keys must be unique");
|
|
2501
|
+
const S = ue(m ?? [], {
|
|
2516
2502
|
indicator: "map-value-ind",
|
|
2517
|
-
next:
|
|
2518
|
-
offset:
|
|
2503
|
+
next: y,
|
|
2504
|
+
offset: w.range[2],
|
|
2519
2505
|
onError: i,
|
|
2520
2506
|
parentIndent: n.indent,
|
|
2521
|
-
startOnNewline: !
|
|
2507
|
+
startOnNewline: !u || u.type === "block-scalar"
|
|
2522
2508
|
});
|
|
2523
|
-
if (a =
|
|
2524
|
-
|
|
2525
|
-
const k =
|
|
2526
|
-
t.schema.compat && ut(n.indent,
|
|
2527
|
-
const
|
|
2528
|
-
t.options.keepSourceTokens && (
|
|
2509
|
+
if (a = S.end, S.found) {
|
|
2510
|
+
p && (y?.type === "block-map" && !S.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && h.start < S.found.offset - 1024 && i(w.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
2511
|
+
const k = y ? s(t, y, S, i) : e(t, a, m, null, S, i);
|
|
2512
|
+
t.schema.compat && ut(n.indent, y, i), a = k.range[2];
|
|
2513
|
+
const N = new v(w, k);
|
|
2514
|
+
t.options.keepSourceTokens && (N.srcToken = d), l.items.push(N);
|
|
2529
2515
|
} else {
|
|
2530
|
-
|
|
2531
|
-
` +
|
|
2532
|
-
const k = new v(
|
|
2533
|
-
t.options.keepSourceTokens && (k.srcToken =
|
|
2516
|
+
p && i(w.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), S.comment && (w.comment ? w.comment += `
|
|
2517
|
+
` + S.comment : w.comment = S.comment);
|
|
2518
|
+
const k = new v(w);
|
|
2519
|
+
t.options.keepSourceTokens && (k.srcToken = d), l.items.push(k);
|
|
2534
2520
|
}
|
|
2535
2521
|
}
|
|
2536
2522
|
return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c ?? a], l;
|
|
2537
2523
|
}
|
|
2538
2524
|
function fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
2539
|
-
const o =
|
|
2525
|
+
const o = r?.nodeClass ?? W, l = new o(t.schema);
|
|
2540
2526
|
t.atRoot && (t.atRoot = !1), t.atKey && (t.atKey = !1);
|
|
2541
2527
|
let a = n.offset, c = null;
|
|
2542
|
-
for (const { start:
|
|
2543
|
-
const
|
|
2528
|
+
for (const { start: d, value: f } of n.items) {
|
|
2529
|
+
const u = ue(d, {
|
|
2544
2530
|
indicator: "seq-item-ind",
|
|
2545
2531
|
next: f,
|
|
2546
2532
|
offset: a,
|
|
@@ -2548,15 +2534,15 @@ function fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2548
2534
|
parentIndent: n.indent,
|
|
2549
2535
|
startOnNewline: !0
|
|
2550
2536
|
});
|
|
2551
|
-
if (!
|
|
2552
|
-
if (
|
|
2553
|
-
f && f.type === "block-seq" ? i(
|
|
2537
|
+
if (!u.found)
|
|
2538
|
+
if (u.anchor || u.tag || f)
|
|
2539
|
+
f && f.type === "block-seq" ? i(u.end, "BAD_INDENT", "All sequence items must start at the same column") : i(a, "MISSING_CHAR", "Sequence item without - indicator");
|
|
2554
2540
|
else {
|
|
2555
|
-
c =
|
|
2541
|
+
c = u.end, u.comment && (l.comment = u.comment);
|
|
2556
2542
|
continue;
|
|
2557
2543
|
}
|
|
2558
|
-
const
|
|
2559
|
-
t.schema.compat && ut(n.indent, f, i), a =
|
|
2544
|
+
const m = f ? s(t, f, u, i) : e(t, u.end, d, null, u, i);
|
|
2545
|
+
t.schema.compat && ut(n.indent, f, i), a = m.range[2], l.items.push(m);
|
|
2560
2546
|
}
|
|
2561
2547
|
return l.range = [n.offset, a, c ?? a], l;
|
|
2562
2548
|
}
|
|
@@ -2572,8 +2558,8 @@ function Ie(s, e, t, n) {
|
|
|
2572
2558
|
break;
|
|
2573
2559
|
case "comment": {
|
|
2574
2560
|
t && !r && n(l, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
|
|
2575
|
-
const
|
|
2576
|
-
i ? i += o +
|
|
2561
|
+
const d = a.substring(1) || " ";
|
|
2562
|
+
i ? i += o + d : i = d, o = "";
|
|
2577
2563
|
break;
|
|
2578
2564
|
}
|
|
2579
2565
|
case "newline":
|
|
@@ -2589,39 +2575,39 @@ function Ie(s, e, t, n) {
|
|
|
2589
2575
|
}
|
|
2590
2576
|
const st = "Block collections are not allowed within flow collections", nt = (s) => s && (s.type === "block-map" || s.type === "block-seq");
|
|
2591
2577
|
function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
2592
|
-
const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a =
|
|
2578
|
+
const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = r?.nodeClass ?? (o ? K : W), c = new a(t.schema);
|
|
2593
2579
|
c.flow = !0;
|
|
2594
|
-
const
|
|
2595
|
-
|
|
2580
|
+
const d = t.atRoot;
|
|
2581
|
+
d && (t.atRoot = !1), t.atKey && (t.atKey = !1);
|
|
2596
2582
|
let f = n.offset + n.start.source.length;
|
|
2597
|
-
for (let
|
|
2598
|
-
const b = n.items[
|
|
2583
|
+
for (let p = 0; p < n.items.length; ++p) {
|
|
2584
|
+
const b = n.items[p], { start: w, key: S, sep: k, value: N } = b, A = ue(w, {
|
|
2599
2585
|
flow: l,
|
|
2600
2586
|
indicator: "explicit-key-ind",
|
|
2601
|
-
next:
|
|
2587
|
+
next: S ?? k?.[0],
|
|
2602
2588
|
offset: f,
|
|
2603
2589
|
onError: i,
|
|
2604
2590
|
parentIndent: n.indent,
|
|
2605
2591
|
startOnNewline: !1
|
|
2606
2592
|
});
|
|
2607
|
-
if (!
|
|
2608
|
-
if (!
|
|
2609
|
-
|
|
2610
|
-
` +
|
|
2593
|
+
if (!A.found) {
|
|
2594
|
+
if (!A.anchor && !A.tag && !k && !N) {
|
|
2595
|
+
p === 0 && A.comma ? i(A.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`) : p < n.items.length - 1 && i(A.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${l}`), A.comment && (c.comment ? c.comment += `
|
|
2596
|
+
` + A.comment : c.comment = A.comment), f = A.end;
|
|
2611
2597
|
continue;
|
|
2612
2598
|
}
|
|
2613
|
-
!o && t.options.strict && Ne(
|
|
2614
|
-
|
|
2599
|
+
!o && t.options.strict && Ne(S) && i(
|
|
2600
|
+
S,
|
|
2615
2601
|
// checked by containsNewline()
|
|
2616
2602
|
"MULTILINE_IMPLICIT_KEY",
|
|
2617
2603
|
"Implicit keys of flow sequence pairs need to be on a single line"
|
|
2618
2604
|
);
|
|
2619
2605
|
}
|
|
2620
|
-
if (
|
|
2621
|
-
|
|
2622
|
-
else if (
|
|
2606
|
+
if (p === 0)
|
|
2607
|
+
A.comma && i(A.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
|
|
2608
|
+
else if (A.comma || i(A.start, "MISSING_CHAR", `Missing , between ${l} items`), A.comment) {
|
|
2623
2609
|
let I = "";
|
|
2624
|
-
e: for (const g of
|
|
2610
|
+
e: for (const g of w)
|
|
2625
2611
|
switch (g.type) {
|
|
2626
2612
|
case "comma":
|
|
2627
2613
|
case "space":
|
|
@@ -2635,29 +2621,29 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2635
2621
|
if (I) {
|
|
2636
2622
|
let g = c.items[c.items.length - 1];
|
|
2637
2623
|
T(g) && (g = g.value ?? g.key), g.comment ? g.comment += `
|
|
2638
|
-
` + I : g.comment = I,
|
|
2624
|
+
` + I : g.comment = I, A.comment = A.comment.substring(I.length + 1);
|
|
2639
2625
|
}
|
|
2640
2626
|
}
|
|
2641
|
-
if (!o && !
|
|
2642
|
-
const I =
|
|
2643
|
-
c.items.push(I), f = I.range[2], nt(
|
|
2627
|
+
if (!o && !k && !A.found) {
|
|
2628
|
+
const I = N ? s(t, N, A, i) : e(t, A.end, k, null, A, i);
|
|
2629
|
+
c.items.push(I), f = I.range[2], nt(N) && i(I.range, "BLOCK_IN_FLOW", st);
|
|
2644
2630
|
} else {
|
|
2645
2631
|
t.atKey = !0;
|
|
2646
|
-
const I =
|
|
2647
|
-
nt(
|
|
2648
|
-
const _ = ue(
|
|
2632
|
+
const I = A.end, g = S ? s(t, S, A, i) : e(t, I, w, null, A, i);
|
|
2633
|
+
nt(S) && i(g.range, "BLOCK_IN_FLOW", st), t.atKey = !1;
|
|
2634
|
+
const _ = ue(k ?? [], {
|
|
2649
2635
|
flow: l,
|
|
2650
2636
|
indicator: "map-value-ind",
|
|
2651
|
-
next:
|
|
2637
|
+
next: N,
|
|
2652
2638
|
offset: g.range[2],
|
|
2653
2639
|
onError: i,
|
|
2654
2640
|
parentIndent: n.indent,
|
|
2655
2641
|
startOnNewline: !1
|
|
2656
2642
|
});
|
|
2657
2643
|
if (_.found) {
|
|
2658
|
-
if (!o && !
|
|
2659
|
-
if (
|
|
2660
|
-
for (const C of
|
|
2644
|
+
if (!o && !A.found && t.options.strict) {
|
|
2645
|
+
if (k)
|
|
2646
|
+
for (const C of k) {
|
|
2661
2647
|
if (C === _.found)
|
|
2662
2648
|
break;
|
|
2663
2649
|
if (C.type === "newline") {
|
|
@@ -2665,11 +2651,11 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2665
2651
|
break;
|
|
2666
2652
|
}
|
|
2667
2653
|
}
|
|
2668
|
-
|
|
2654
|
+
A.start < _.found.offset - 1024 && i(_.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
|
|
2669
2655
|
}
|
|
2670
|
-
} else
|
|
2671
|
-
const J =
|
|
2672
|
-
J ? nt(
|
|
2656
|
+
} else N && ("source" in N && N.source && N.source[0] === ":" ? i(N, "MISSING_CHAR", `Missing space after : in ${l}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
|
|
2657
|
+
const J = N ? s(t, N, _, i) : _.found ? e(t, _.end, k, null, _, i) : null;
|
|
2658
|
+
J ? nt(N) && i(J.range, "BLOCK_IN_FLOW", st) : _.comment && (g.comment ? g.comment += `
|
|
2673
2659
|
` + _.comment : g.comment = _.comment);
|
|
2674
2660
|
const te = new v(g, J);
|
|
2675
2661
|
if (t.options.keepSourceTokens && (te.srcToken = b), o) {
|
|
@@ -2684,20 +2670,20 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2684
2670
|
f = J ? J.range[2] : _.end;
|
|
2685
2671
|
}
|
|
2686
2672
|
}
|
|
2687
|
-
const
|
|
2688
|
-
let
|
|
2689
|
-
if (
|
|
2690
|
-
|
|
2673
|
+
const u = o ? "}" : "]", [m, ...y] = n.end;
|
|
2674
|
+
let h = f;
|
|
2675
|
+
if (m && m.source === u)
|
|
2676
|
+
h = m.offset + m.source.length;
|
|
2691
2677
|
else {
|
|
2692
|
-
const
|
|
2693
|
-
i(f,
|
|
2678
|
+
const p = l[0].toUpperCase() + l.substring(1), b = d ? `${p} must end with a ${u}` : `${p} in block collection must be sufficiently indented and end with a ${u}`;
|
|
2679
|
+
i(f, d ? "MISSING_CHAR" : "BAD_INDENT", b), m && m.source.length !== 1 && y.unshift(m);
|
|
2694
2680
|
}
|
|
2695
2681
|
if (y.length > 0) {
|
|
2696
|
-
const
|
|
2697
|
-
|
|
2698
|
-
` +
|
|
2682
|
+
const p = Ie(y, h, t.options.strict, i);
|
|
2683
|
+
p.comment && (c.comment ? c.comment += `
|
|
2684
|
+
` + p.comment : c.comment = p.comment), c.range = [n.offset, h, p.offset];
|
|
2699
2685
|
} else
|
|
2700
|
-
c.range = [n.offset,
|
|
2686
|
+
c.range = [n.offset, h, h];
|
|
2701
2687
|
return c;
|
|
2702
2688
|
}
|
|
2703
2689
|
function it(s, e, t, n, i, r) {
|
|
@@ -2705,88 +2691,87 @@ function it(s, e, t, n, i, r) {
|
|
|
2705
2691
|
return i === "!" || i === l.tagName ? (o.tag = l.tagName, o) : (i && (o.tag = i), o);
|
|
2706
2692
|
}
|
|
2707
2693
|
function hn(s, e, t, n, i) {
|
|
2708
|
-
|
|
2709
|
-
const r = n.tag, o = r ? e.directives.tagName(r.source, (h) => i(r, "TAG_RESOLVE_FAILED", h)) : null;
|
|
2694
|
+
const r = n.tag, o = r ? e.directives.tagName(r.source, (u) => i(r, "TAG_RESOLVE_FAILED", u)) : null;
|
|
2710
2695
|
if (t.type === "block-seq") {
|
|
2711
|
-
const { anchor:
|
|
2712
|
-
|
|
2696
|
+
const { anchor: u, newlineAfterProp: m } = n, y = u && r ? u.offset > r.offset ? u : r : u ?? r;
|
|
2697
|
+
y && (!m || m.offset < y.offset) && i(y, "MISSING_CHAR", "Missing newline after block sequence props");
|
|
2713
2698
|
}
|
|
2714
2699
|
const l = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
|
|
2715
|
-
if (!r || !o || o === "!" || o === K.tagName && l === "map" || o ===
|
|
2700
|
+
if (!r || !o || o === "!" || o === K.tagName && l === "map" || o === W.tagName && l === "seq")
|
|
2716
2701
|
return it(s, e, t, i, o);
|
|
2717
|
-
let a = e.schema.tags.find((
|
|
2702
|
+
let a = e.schema.tags.find((u) => u.tag === o && u.collection === l);
|
|
2718
2703
|
if (!a) {
|
|
2719
|
-
const
|
|
2720
|
-
if (
|
|
2721
|
-
e.schema.tags.push(Object.assign({},
|
|
2704
|
+
const u = e.schema.knownTags[o];
|
|
2705
|
+
if (u && u.collection === l)
|
|
2706
|
+
e.schema.tags.push(Object.assign({}, u, { default: !1 })), a = u;
|
|
2722
2707
|
else
|
|
2723
|
-
return
|
|
2708
|
+
return u ? i(r, "BAD_COLLECTION_TYPE", `${u.tag} used for ${l} collection, but expects ${u.collection ?? "scalar"}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), it(s, e, t, i, o);
|
|
2724
2709
|
}
|
|
2725
|
-
const c = it(s, e, t, i, o, a),
|
|
2726
|
-
return f.range = c.range, f.tag = o, a
|
|
2710
|
+
const c = it(s, e, t, i, o, a), d = a.resolve?.(c, (u) => i(r, "TAG_RESOLVE_FAILED", u), e.options) ?? c, f = $(d) ? d : new O(d);
|
|
2711
|
+
return f.range = c.range, f.tag = o, a?.format && (f.format = a.format), f;
|
|
2727
2712
|
}
|
|
2728
2713
|
function bs(s, e, t) {
|
|
2729
2714
|
const n = e.offset, i = dn(e, s.options.strict, t);
|
|
2730
2715
|
if (!i)
|
|
2731
2716
|
return { value: "", type: null, comment: "", range: [n, n, n] };
|
|
2732
|
-
const r = i.mode === ">" ?
|
|
2717
|
+
const r = i.mode === ">" ? O.BLOCK_FOLDED : O.BLOCK_LITERAL, o = e.source ? pn(e.source) : [];
|
|
2733
2718
|
let l = o.length;
|
|
2734
|
-
for (let
|
|
2735
|
-
const
|
|
2736
|
-
if (
|
|
2737
|
-
l =
|
|
2719
|
+
for (let h = o.length - 1; h >= 0; --h) {
|
|
2720
|
+
const p = o[h][1];
|
|
2721
|
+
if (p === "" || p === "\r")
|
|
2722
|
+
l = h;
|
|
2738
2723
|
else
|
|
2739
2724
|
break;
|
|
2740
2725
|
}
|
|
2741
2726
|
if (l === 0) {
|
|
2742
|
-
const
|
|
2727
|
+
const h = i.chomp === "+" && o.length > 0 ? `
|
|
2743
2728
|
`.repeat(Math.max(1, o.length - 1)) : "";
|
|
2744
|
-
let
|
|
2745
|
-
return e.source && (
|
|
2729
|
+
let p = n + i.length;
|
|
2730
|
+
return e.source && (p += e.source.length), { value: h, type: r, comment: i.comment, range: [n, p, p] };
|
|
2746
2731
|
}
|
|
2747
|
-
let a = e.indent + i.indent, c = e.offset + i.length,
|
|
2748
|
-
for (let
|
|
2749
|
-
const [
|
|
2732
|
+
let a = e.indent + i.indent, c = e.offset + i.length, d = 0;
|
|
2733
|
+
for (let h = 0; h < l; ++h) {
|
|
2734
|
+
const [p, b] = o[h];
|
|
2750
2735
|
if (b === "" || b === "\r")
|
|
2751
|
-
i.indent === 0 &&
|
|
2736
|
+
i.indent === 0 && p.length > a && (a = p.length);
|
|
2752
2737
|
else {
|
|
2753
|
-
|
|
2738
|
+
p.length < a && t(c + p.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), i.indent === 0 && (a = p.length), d = h, a === 0 && !s.atRoot && t(c, "BAD_INDENT", "Block scalar values in collections must be indented");
|
|
2754
2739
|
break;
|
|
2755
2740
|
}
|
|
2756
|
-
c +=
|
|
2741
|
+
c += p.length + b.length + 1;
|
|
2757
2742
|
}
|
|
2758
|
-
for (let
|
|
2759
|
-
o[
|
|
2760
|
-
let f = "",
|
|
2761
|
-
for (let
|
|
2762
|
-
f += o[
|
|
2743
|
+
for (let h = o.length - 1; h >= l; --h)
|
|
2744
|
+
o[h][0].length > a && (l = h + 1);
|
|
2745
|
+
let f = "", u = "", m = !1;
|
|
2746
|
+
for (let h = 0; h < d; ++h)
|
|
2747
|
+
f += o[h][0].slice(a) + `
|
|
2763
2748
|
`;
|
|
2764
|
-
for (let
|
|
2765
|
-
let [
|
|
2766
|
-
c +=
|
|
2767
|
-
const
|
|
2768
|
-
if (
|
|
2769
|
-
const
|
|
2770
|
-
t(c - b.length - (
|
|
2749
|
+
for (let h = d; h < l; ++h) {
|
|
2750
|
+
let [p, b] = o[h];
|
|
2751
|
+
c += p.length + b.length + 1;
|
|
2752
|
+
const w = b[b.length - 1] === "\r";
|
|
2753
|
+
if (w && (b = b.slice(0, -1)), b && p.length < a) {
|
|
2754
|
+
const k = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
|
|
2755
|
+
t(c - b.length - (w ? 2 : 1), "BAD_INDENT", k), p = "";
|
|
2771
2756
|
}
|
|
2772
|
-
r ===
|
|
2773
|
-
`) :
|
|
2774
|
-
` : !
|
|
2775
|
-
` && (
|
|
2757
|
+
r === O.BLOCK_LITERAL ? (f += u + p.slice(a) + b, u = `
|
|
2758
|
+
`) : p.length > a || b[0] === " " ? (u === " " ? u = `
|
|
2759
|
+
` : !m && u === `
|
|
2760
|
+
` && (u = `
|
|
2776
2761
|
|
|
2777
|
-
`), f +=
|
|
2778
|
-
`,
|
|
2762
|
+
`), f += u + p.slice(a) + b, u = `
|
|
2763
|
+
`, m = !0) : b === "" ? u === `
|
|
2779
2764
|
` ? f += `
|
|
2780
|
-
` :
|
|
2781
|
-
` : (f +=
|
|
2765
|
+
` : u = `
|
|
2766
|
+
` : (f += u + b, u = " ", m = !1);
|
|
2782
2767
|
}
|
|
2783
2768
|
switch (i.chomp) {
|
|
2784
2769
|
case "-":
|
|
2785
2770
|
break;
|
|
2786
2771
|
case "+":
|
|
2787
|
-
for (let
|
|
2772
|
+
for (let h = l; h < o.length; ++h)
|
|
2788
2773
|
f += `
|
|
2789
|
-
` + o[
|
|
2774
|
+
` + o[h][0].slice(a);
|
|
2790
2775
|
f[f.length - 1] !== `
|
|
2791
2776
|
` && (f += `
|
|
2792
2777
|
`);
|
|
@@ -2803,45 +2788,45 @@ function dn({ offset: s, props: e }, t, n) {
|
|
|
2803
2788
|
return n(e[0], "IMPOSSIBLE", "Block scalar header not found"), null;
|
|
2804
2789
|
const { source: i } = e[0], r = i[0];
|
|
2805
2790
|
let o = 0, l = "", a = -1;
|
|
2806
|
-
for (let
|
|
2807
|
-
const
|
|
2808
|
-
if (!l && (
|
|
2809
|
-
l =
|
|
2791
|
+
for (let u = 1; u < i.length; ++u) {
|
|
2792
|
+
const m = i[u];
|
|
2793
|
+
if (!l && (m === "-" || m === "+"))
|
|
2794
|
+
l = m;
|
|
2810
2795
|
else {
|
|
2811
|
-
const y = Number(
|
|
2812
|
-
!o && y ? o = y : a === -1 && (a = s +
|
|
2796
|
+
const y = Number(m);
|
|
2797
|
+
!o && y ? o = y : a === -1 && (a = s + u);
|
|
2813
2798
|
}
|
|
2814
2799
|
}
|
|
2815
2800
|
a !== -1 && n(a, "UNEXPECTED_TOKEN", `Block scalar header includes extra characters: ${i}`);
|
|
2816
|
-
let c = !1,
|
|
2817
|
-
for (let
|
|
2818
|
-
const
|
|
2819
|
-
switch (
|
|
2801
|
+
let c = !1, d = "", f = i.length;
|
|
2802
|
+
for (let u = 1; u < e.length; ++u) {
|
|
2803
|
+
const m = e[u];
|
|
2804
|
+
switch (m.type) {
|
|
2820
2805
|
case "space":
|
|
2821
2806
|
c = !0;
|
|
2822
2807
|
// fallthrough
|
|
2823
2808
|
case "newline":
|
|
2824
|
-
f +=
|
|
2809
|
+
f += m.source.length;
|
|
2825
2810
|
break;
|
|
2826
2811
|
case "comment":
|
|
2827
|
-
t && !c && n(
|
|
2812
|
+
t && !c && n(m, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters"), f += m.source.length, d = m.source.substring(1);
|
|
2828
2813
|
break;
|
|
2829
2814
|
case "error":
|
|
2830
|
-
n(
|
|
2815
|
+
n(m, "UNEXPECTED_TOKEN", m.message), f += m.source.length;
|
|
2831
2816
|
break;
|
|
2832
2817
|
/* istanbul ignore next should not happen */
|
|
2833
2818
|
default: {
|
|
2834
|
-
const y = `Unexpected token in block scalar header: ${
|
|
2835
|
-
n(
|
|
2836
|
-
const
|
|
2837
|
-
|
|
2819
|
+
const y = `Unexpected token in block scalar header: ${m.type}`;
|
|
2820
|
+
n(m, "UNEXPECTED_TOKEN", y);
|
|
2821
|
+
const h = m.source;
|
|
2822
|
+
h && typeof h == "string" && (f += h.length);
|
|
2838
2823
|
}
|
|
2839
2824
|
}
|
|
2840
2825
|
}
|
|
2841
|
-
return { mode: r, indent: o, chomp: l, comment:
|
|
2826
|
+
return { mode: r, indent: o, chomp: l, comment: d, length: f };
|
|
2842
2827
|
}
|
|
2843
2828
|
function pn(s) {
|
|
2844
|
-
const e = s.split(/\n( *)/), t = e[0], n = t.match(/^( *)/), r = [n
|
|
2829
|
+
const e = s.split(/\n( *)/), t = e[0], n = t.match(/^( *)/), r = [n?.[1] ? [n[1], t.slice(n[1].length)] : ["", t]];
|
|
2845
2830
|
for (let o = 1; o < e.length; o += 2)
|
|
2846
2831
|
r.push([e[o], e[o + 1]]);
|
|
2847
2832
|
return r;
|
|
@@ -2849,16 +2834,16 @@ function pn(s) {
|
|
|
2849
2834
|
function ws(s, e, t) {
|
|
2850
2835
|
const { offset: n, type: i, source: r, end: o } = s;
|
|
2851
2836
|
let l, a;
|
|
2852
|
-
const c = (
|
|
2837
|
+
const c = (u, m, y) => t(n + u, m, y);
|
|
2853
2838
|
switch (i) {
|
|
2854
2839
|
case "scalar":
|
|
2855
|
-
l =
|
|
2840
|
+
l = O.PLAIN, a = mn(r, c);
|
|
2856
2841
|
break;
|
|
2857
2842
|
case "single-quoted-scalar":
|
|
2858
|
-
l =
|
|
2843
|
+
l = O.QUOTE_SINGLE, a = yn(r, c);
|
|
2859
2844
|
break;
|
|
2860
2845
|
case "double-quoted-scalar":
|
|
2861
|
-
l =
|
|
2846
|
+
l = O.QUOTE_DOUBLE, a = gn(r, c);
|
|
2862
2847
|
break;
|
|
2863
2848
|
/* istanbul ignore next should not happen */
|
|
2864
2849
|
default:
|
|
@@ -2869,12 +2854,12 @@ function ws(s, e, t) {
|
|
|
2869
2854
|
range: [n, n + r.length, n + r.length]
|
|
2870
2855
|
};
|
|
2871
2856
|
}
|
|
2872
|
-
const
|
|
2857
|
+
const d = n + r.length, f = Ie(o, d, e, t);
|
|
2873
2858
|
return {
|
|
2874
2859
|
value: a,
|
|
2875
2860
|
type: l,
|
|
2876
2861
|
comment: f.comment,
|
|
2877
|
-
range: [n,
|
|
2862
|
+
range: [n, d, f.offset]
|
|
2878
2863
|
};
|
|
2879
2864
|
}
|
|
2880
2865
|
function mn(s, e) {
|
|
@@ -2924,7 +2909,7 @@ function Ss(s) {
|
|
|
2924
2909
|
` ? i += r : r = `
|
|
2925
2910
|
` : (i += r + n[1], r = " "), o = t.lastIndex;
|
|
2926
2911
|
const l = /[ \t]*(.*)/sy;
|
|
2927
|
-
return l.lastIndex = o, n = l.exec(s), i + r + (
|
|
2912
|
+
return l.lastIndex = o, n = l.exec(s), i + r + (n?.[1] ?? "");
|
|
2928
2913
|
}
|
|
2929
2914
|
function gn(s, e) {
|
|
2930
2915
|
let t = "";
|
|
@@ -3025,46 +3010,39 @@ function ks(s, e, t, n) {
|
|
|
3025
3010
|
const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? bs(s, e, n) : ws(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null;
|
|
3026
3011
|
let c;
|
|
3027
3012
|
s.options.stringKeys && s.atKey ? c = s.schema[R] : a ? c = kn(s.schema, i, a, t, n) : e.type === "scalar" ? c = Nn(s, i, e, n) : c = s.schema[R];
|
|
3028
|
-
let
|
|
3013
|
+
let d;
|
|
3029
3014
|
try {
|
|
3030
|
-
const f = c.resolve(i, (
|
|
3031
|
-
|
|
3015
|
+
const f = c.resolve(i, (u) => n(t ?? e, "TAG_RESOLVE_FAILED", u), s.options);
|
|
3016
|
+
d = E(f) ? f : new O(f);
|
|
3032
3017
|
} catch (f) {
|
|
3033
|
-
const
|
|
3034
|
-
n(t ?? e, "TAG_RESOLVE_FAILED",
|
|
3018
|
+
const u = f instanceof Error ? f.message : String(f);
|
|
3019
|
+
n(t ?? e, "TAG_RESOLVE_FAILED", u), d = new O(i);
|
|
3035
3020
|
}
|
|
3036
|
-
return
|
|
3021
|
+
return d.range = l, d.source = i, r && (d.type = r), a && (d.tag = a), c.format && (d.format = c.format), o && (d.comment = o), d;
|
|
3037
3022
|
}
|
|
3038
3023
|
function kn(s, e, t, n, i) {
|
|
3039
|
-
var l;
|
|
3040
3024
|
if (t === "!")
|
|
3041
3025
|
return s[R];
|
|
3042
3026
|
const r = [];
|
|
3043
|
-
for (const
|
|
3044
|
-
if (!
|
|
3045
|
-
if (
|
|
3046
|
-
r.push(
|
|
3027
|
+
for (const l of s.tags)
|
|
3028
|
+
if (!l.collection && l.tag === t)
|
|
3029
|
+
if (l.default && l.test)
|
|
3030
|
+
r.push(l);
|
|
3047
3031
|
else
|
|
3048
|
-
return
|
|
3049
|
-
for (const
|
|
3050
|
-
if (
|
|
3051
|
-
return
|
|
3032
|
+
return l;
|
|
3033
|
+
for (const l of r)
|
|
3034
|
+
if (l.test?.test(e))
|
|
3035
|
+
return l;
|
|
3052
3036
|
const o = s.knownTags[t];
|
|
3053
3037
|
return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[R]);
|
|
3054
3038
|
}
|
|
3055
3039
|
function Nn({ atKey: s, directives: e, schema: t }, n, i, r) {
|
|
3056
|
-
const o = t.tags.find((l) =>
|
|
3057
|
-
var a;
|
|
3058
|
-
return (l.default === !0 || s && l.default === "key") && ((a = l.test) == null ? void 0 : a.test(n));
|
|
3059
|
-
}) || t[R];
|
|
3040
|
+
const o = t.tags.find((l) => (l.default === !0 || s && l.default === "key") && l.test?.test(n)) || t[R];
|
|
3060
3041
|
if (t.compat) {
|
|
3061
|
-
const l = t.compat.find((a) =>
|
|
3062
|
-
var c;
|
|
3063
|
-
return a.default && ((c = a.test) == null ? void 0 : c.test(n));
|
|
3064
|
-
}) ?? t[R];
|
|
3042
|
+
const l = t.compat.find((a) => a.default && a.test?.test(n)) ?? t[R];
|
|
3065
3043
|
if (o.tag !== l.tag) {
|
|
3066
|
-
const a = e.tagString(o.tag), c = e.tagString(l.tag),
|
|
3067
|
-
r(i, "TAG_RESOLVE_FAILED",
|
|
3044
|
+
const a = e.tagString(o.tag), c = e.tagString(l.tag), d = `Value may be parsed as either ${a} or ${c}`;
|
|
3045
|
+
r(i, "TAG_RESOLVE_FAILED", d, !0);
|
|
3068
3046
|
}
|
|
3069
3047
|
}
|
|
3070
3048
|
return o;
|
|
@@ -3081,7 +3059,7 @@ function On(s, e, t) {
|
|
|
3081
3059
|
s -= i.source.length;
|
|
3082
3060
|
continue;
|
|
3083
3061
|
}
|
|
3084
|
-
for (i = e[++n];
|
|
3062
|
+
for (i = e[++n]; i?.type === "space"; )
|
|
3085
3063
|
s += i.source.length, i = e[++n];
|
|
3086
3064
|
break;
|
|
3087
3065
|
}
|
|
@@ -3091,7 +3069,7 @@ function On(s, e, t) {
|
|
|
3091
3069
|
const An = { composeNode: Ns, composeEmptyNode: Et };
|
|
3092
3070
|
function Ns(s, e, t, n) {
|
|
3093
3071
|
const i = s.atKey, { spaceBefore: r, comment: o, anchor: l, tag: a } = t;
|
|
3094
|
-
let c,
|
|
3072
|
+
let c, d = !0;
|
|
3095
3073
|
switch (e.type) {
|
|
3096
3074
|
case "alias":
|
|
3097
3075
|
c = En(s, e, n), (l || a) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
|
|
@@ -3109,18 +3087,18 @@ function Ns(s, e, t, n) {
|
|
|
3109
3087
|
break;
|
|
3110
3088
|
default: {
|
|
3111
3089
|
const f = e.type === "error" ? e.message : `Unsupported token (type: ${e.type})`;
|
|
3112
|
-
n(e, "UNEXPECTED_TOKEN", f), c = Et(s, e.offset, void 0, null, t, n),
|
|
3090
|
+
n(e, "UNEXPECTED_TOKEN", f), c = Et(s, e.offset, void 0, null, t, n), d = !1;
|
|
3113
3091
|
}
|
|
3114
3092
|
}
|
|
3115
|
-
return l && c.anchor === "" && n(l, "BAD_ALIAS", "Anchor cannot be an empty string"), i && s.options.stringKeys && (!E(c) || typeof c.value != "string" || c.tag && c.tag !== "tag:yaml.org,2002:str") && n(a ?? e, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), r && (c.spaceBefore = !0), o && (e.type === "scalar" && e.source === "" ? c.comment = o : c.commentBefore = o), s.options.keepSourceTokens &&
|
|
3093
|
+
return l && c.anchor === "" && n(l, "BAD_ALIAS", "Anchor cannot be an empty string"), i && s.options.stringKeys && (!E(c) || typeof c.value != "string" || c.tag && c.tag !== "tag:yaml.org,2002:str") && n(a ?? e, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), r && (c.spaceBefore = !0), o && (e.type === "scalar" && e.source === "" ? c.comment = o : c.commentBefore = o), s.options.keepSourceTokens && d && (c.srcToken = e), c;
|
|
3116
3094
|
}
|
|
3117
3095
|
function Et(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a }, c) {
|
|
3118
|
-
const
|
|
3096
|
+
const d = {
|
|
3119
3097
|
type: "scalar",
|
|
3120
3098
|
offset: On(e, t, n),
|
|
3121
3099
|
indent: -1,
|
|
3122
3100
|
source: ""
|
|
3123
|
-
}, f = ks(s,
|
|
3101
|
+
}, f = ks(s, d, l, c);
|
|
3124
3102
|
return o && (f.anchor = o.source.substring(1), f.anchor === "" && c(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (f.spaceBefore = !0), r && (f.comment = r, f.range[2] = a), f;
|
|
3125
3103
|
}
|
|
3126
3104
|
function En({ options: s }, { offset: e, source: t, end: n }, i) {
|
|
@@ -3136,17 +3114,17 @@ function In(s, e, { offset: t, start: n, value: i, end: r }, o) {
|
|
|
3136
3114
|
directives: a.directives,
|
|
3137
3115
|
options: a.options,
|
|
3138
3116
|
schema: a.schema
|
|
3139
|
-
},
|
|
3117
|
+
}, d = ue(n, {
|
|
3140
3118
|
indicator: "doc-start",
|
|
3141
|
-
next: i ??
|
|
3119
|
+
next: i ?? r?.[0],
|
|
3142
3120
|
offset: t,
|
|
3143
3121
|
onError: o,
|
|
3144
3122
|
parentIndent: 0,
|
|
3145
3123
|
startOnNewline: !0
|
|
3146
3124
|
});
|
|
3147
|
-
|
|
3148
|
-
const f = a.contents.range[2],
|
|
3149
|
-
return
|
|
3125
|
+
d.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !d.hasNewline && o(d.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Ns(c, i, d, o) : Et(c, d.end, n, null, d, o);
|
|
3126
|
+
const f = a.contents.range[2], u = Ie(r, f, !1, o);
|
|
3127
|
+
return u.comment && (a.comment = u.comment), a.range = [t, f, u.offset], a;
|
|
3150
3128
|
}
|
|
3151
3129
|
function be(s) {
|
|
3152
3130
|
if (typeof s == "number")
|
|
@@ -3157,19 +3135,18 @@ function be(s) {
|
|
|
3157
3135
|
return [e, e + (typeof t == "string" ? t.length : 1)];
|
|
3158
3136
|
}
|
|
3159
3137
|
function Kt(s) {
|
|
3160
|
-
var i;
|
|
3161
3138
|
let e = "", t = !1, n = !1;
|
|
3162
|
-
for (let
|
|
3163
|
-
const
|
|
3164
|
-
switch (
|
|
3139
|
+
for (let i = 0; i < s.length; ++i) {
|
|
3140
|
+
const r = s[i];
|
|
3141
|
+
switch (r[0]) {
|
|
3165
3142
|
case "#":
|
|
3166
3143
|
e += (e === "" ? "" : n ? `
|
|
3167
3144
|
|
|
3168
3145
|
` : `
|
|
3169
|
-
`) + (
|
|
3146
|
+
`) + (r.substring(1) || " "), t = !0, n = !1;
|
|
3170
3147
|
break;
|
|
3171
3148
|
case "%":
|
|
3172
|
-
|
|
3149
|
+
s[i + 1]?.[0] !== "#" && (i += 1), t = !1;
|
|
3173
3150
|
break;
|
|
3174
3151
|
default:
|
|
3175
3152
|
t || (n = !0), t = !1;
|
|
@@ -3326,12 +3303,12 @@ function Ln(s, e) {
|
|
|
3326
3303
|
case "|":
|
|
3327
3304
|
case ">": {
|
|
3328
3305
|
const c = l.indexOf(`
|
|
3329
|
-
`),
|
|
3330
|
-
`,
|
|
3331
|
-
{ type: "block-scalar-header", offset: r, indent: n, source:
|
|
3306
|
+
`), d = l.substring(0, c), f = l.substring(c + 1) + `
|
|
3307
|
+
`, u = [
|
|
3308
|
+
{ type: "block-scalar-header", offset: r, indent: n, source: d }
|
|
3332
3309
|
];
|
|
3333
|
-
return Os(
|
|
3334
|
-
` }), { type: "block-scalar", offset: r, indent: n, props:
|
|
3310
|
+
return Os(u, a) || u.push({ type: "newline", offset: -1, indent: n, source: `
|
|
3311
|
+
` }), { type: "block-scalar", offset: r, indent: n, props: u, source: f };
|
|
3335
3312
|
}
|
|
3336
3313
|
case '"':
|
|
3337
3314
|
return { type: "double-quoted-scalar", offset: r, indent: n, source: l, end: a };
|
|
@@ -3496,16 +3473,16 @@ function Ke({ start: s, key: e, sep: t, value: n }) {
|
|
|
3496
3473
|
return n && (i += qe(n)), i;
|
|
3497
3474
|
}
|
|
3498
3475
|
const ht = Symbol("break visit"), vn = Symbol("skip children"), As = Symbol("remove item");
|
|
3499
|
-
function
|
|
3476
|
+
function x(s, e) {
|
|
3500
3477
|
"type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Es(Object.freeze([]), s, e);
|
|
3501
3478
|
}
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3479
|
+
x.BREAK = ht;
|
|
3480
|
+
x.SKIP = vn;
|
|
3481
|
+
x.REMOVE = As;
|
|
3482
|
+
x.itemAtPath = (s, e) => {
|
|
3506
3483
|
let t = s;
|
|
3507
3484
|
for (const [n, i] of e) {
|
|
3508
|
-
const r = t
|
|
3485
|
+
const r = t?.[n];
|
|
3509
3486
|
if (r && "items" in r)
|
|
3510
3487
|
t = r.items[i];
|
|
3511
3488
|
else
|
|
@@ -3513,8 +3490,8 @@ Z.itemAtPath = (s, e) => {
|
|
|
3513
3490
|
}
|
|
3514
3491
|
return t;
|
|
3515
3492
|
};
|
|
3516
|
-
|
|
3517
|
-
const t =
|
|
3493
|
+
x.parentCollection = (s, e) => {
|
|
3494
|
+
const t = x.itemAtPath(s, e.slice(0, -1)), n = e[e.length - 1][0], i = t?.[n];
|
|
3518
3495
|
if (i && "items" in i)
|
|
3519
3496
|
return i;
|
|
3520
3497
|
throw new Error("Parent collection not found");
|
|
@@ -3541,14 +3518,14 @@ function Es(s, e, t) {
|
|
|
3541
3518
|
}
|
|
3542
3519
|
return typeof n == "function" ? n(e, s) : n;
|
|
3543
3520
|
}
|
|
3544
|
-
const ze = "\uFEFF",
|
|
3521
|
+
const ze = "\uFEFF", xe = "", Ze = "", Oe = "", Bn = (s) => !!s && "items" in s, Mn = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
|
|
3545
3522
|
function Kn(s) {
|
|
3546
3523
|
switch (s) {
|
|
3547
3524
|
case ze:
|
|
3548
3525
|
return "<BOM>";
|
|
3549
|
-
case Ze:
|
|
3550
|
-
return "<DOC>";
|
|
3551
3526
|
case xe:
|
|
3527
|
+
return "<DOC>";
|
|
3528
|
+
case Ze:
|
|
3552
3529
|
return "<FLOW_END>";
|
|
3553
3530
|
case Oe:
|
|
3554
3531
|
return "<SCALAR>";
|
|
@@ -3560,9 +3537,9 @@ function Is(s) {
|
|
|
3560
3537
|
switch (s) {
|
|
3561
3538
|
case ze:
|
|
3562
3539
|
return "byte-order-mark";
|
|
3563
|
-
case Ze:
|
|
3564
|
-
return "doc-mode";
|
|
3565
3540
|
case xe:
|
|
3541
|
+
return "doc-mode";
|
|
3542
|
+
case Ze:
|
|
3566
3543
|
return "flow-error-end";
|
|
3567
3544
|
case Oe:
|
|
3568
3545
|
return "scalar";
|
|
@@ -3617,11 +3594,11 @@ function Is(s) {
|
|
|
3617
3594
|
}
|
|
3618
3595
|
return null;
|
|
3619
3596
|
}
|
|
3620
|
-
const
|
|
3597
|
+
const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3621
3598
|
__proto__: null,
|
|
3622
3599
|
BOM: ze,
|
|
3623
|
-
DOCUMENT:
|
|
3624
|
-
FLOW_END:
|
|
3600
|
+
DOCUMENT: xe,
|
|
3601
|
+
FLOW_END: Ze,
|
|
3625
3602
|
SCALAR: Oe,
|
|
3626
3603
|
createScalarToken: Ln,
|
|
3627
3604
|
isCollection: Bn,
|
|
@@ -3631,7 +3608,7 @@ const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3631
3608
|
setScalarValue: $n,
|
|
3632
3609
|
stringify: Cn,
|
|
3633
3610
|
tokenType: Is,
|
|
3634
|
-
visit:
|
|
3611
|
+
visit: x
|
|
3635
3612
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3636
3613
|
function D(s) {
|
|
3637
3614
|
switch (s) {
|
|
@@ -3646,7 +3623,7 @@ function D(s) {
|
|
|
3646
3623
|
return !1;
|
|
3647
3624
|
}
|
|
3648
3625
|
}
|
|
3649
|
-
const
|
|
3626
|
+
const jt = new Set("0123456789ABCDEFabcdef"), Pn = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), _e = new Set(",[]{}"), Dn = new Set(` ,[]{}
|
|
3650
3627
|
\r `), ot = (s) => !s || Dn.has(s);
|
|
3651
3628
|
class Ts {
|
|
3652
3629
|
constructor() {
|
|
@@ -3764,7 +3741,7 @@ class Ts {
|
|
|
3764
3741
|
const t = yield* this.pushSpaces(!0);
|
|
3765
3742
|
return yield* this.pushCount(e.length - t), yield* this.pushNewline(), "stream";
|
|
3766
3743
|
}
|
|
3767
|
-
return yield
|
|
3744
|
+
return yield xe, yield* this.parseLineStart();
|
|
3768
3745
|
}
|
|
3769
3746
|
*parseLineStart() {
|
|
3770
3747
|
const e = this.charAt(0);
|
|
@@ -3828,7 +3805,7 @@ class Ts {
|
|
|
3828
3805
|
if (i === null)
|
|
3829
3806
|
return this.setNext("flow");
|
|
3830
3807
|
if ((n !== -1 && n < this.indentNext && i[0] !== "#" || n === 0 && (i.startsWith("---") || i.startsWith("...")) && D(i[3])) && !(n === this.indentNext - 1 && this.flowLevel === 1 && (i[0] === "]" || i[0] === "}")))
|
|
3831
|
-
return this.flowLevel = 0, yield
|
|
3808
|
+
return this.flowLevel = 0, yield Ze, yield* this.parseLineStart();
|
|
3832
3809
|
let r = 0;
|
|
3833
3810
|
for (; i[r] === ","; )
|
|
3834
3811
|
r += yield* this.pushCount(1), r += yield* this.pushSpaces(!0), this.flowKey = !1;
|
|
@@ -4033,9 +4010,9 @@ class Ts {
|
|
|
4033
4010
|
} else {
|
|
4034
4011
|
let e = this.pos + 1, t = this.buffer[e];
|
|
4035
4012
|
for (; t; )
|
|
4036
|
-
if (
|
|
4013
|
+
if (Pn.has(t))
|
|
4037
4014
|
t = this.buffer[++e];
|
|
4038
|
-
else if (t === "%" &&
|
|
4015
|
+
else if (t === "%" && jt.has(this.buffer[e + 1]) && jt.has(this.buffer[e + 2]))
|
|
4039
4016
|
t = this.buffer[e += 3];
|
|
4040
4017
|
else
|
|
4041
4018
|
break;
|
|
@@ -4080,13 +4057,13 @@ class Ls {
|
|
|
4080
4057
|
};
|
|
4081
4058
|
}
|
|
4082
4059
|
}
|
|
4083
|
-
function
|
|
4060
|
+
function Y(s, e) {
|
|
4084
4061
|
for (let t = 0; t < s.length; ++t)
|
|
4085
4062
|
if (s[t].type === e)
|
|
4086
4063
|
return !0;
|
|
4087
4064
|
return !1;
|
|
4088
4065
|
}
|
|
4089
|
-
function
|
|
4066
|
+
function Pt(s) {
|
|
4090
4067
|
for (let e = 0; e < s.length; ++e)
|
|
4091
4068
|
switch (s[e].type) {
|
|
4092
4069
|
case "space":
|
|
@@ -4099,7 +4076,7 @@ function jt(s) {
|
|
|
4099
4076
|
return -1;
|
|
4100
4077
|
}
|
|
4101
4078
|
function $s(s) {
|
|
4102
|
-
switch (s
|
|
4079
|
+
switch (s?.type) {
|
|
4103
4080
|
case "alias":
|
|
4104
4081
|
case "scalar":
|
|
4105
4082
|
case "single-quoted-scalar":
|
|
@@ -4126,7 +4103,6 @@ function Ce(s) {
|
|
|
4126
4103
|
}
|
|
4127
4104
|
}
|
|
4128
4105
|
function ne(s) {
|
|
4129
|
-
var t;
|
|
4130
4106
|
if (s.length === 0)
|
|
4131
4107
|
return [];
|
|
4132
4108
|
let e = s.length;
|
|
@@ -4139,14 +4115,14 @@ function ne(s) {
|
|
|
4139
4115
|
case "newline":
|
|
4140
4116
|
break e;
|
|
4141
4117
|
}
|
|
4142
|
-
for (;
|
|
4118
|
+
for (; s[++e]?.type === "space"; )
|
|
4143
4119
|
;
|
|
4144
4120
|
return s.splice(e, s.length);
|
|
4145
4121
|
}
|
|
4146
4122
|
function Dt(s) {
|
|
4147
4123
|
if (s.start.type === "flow-seq-start")
|
|
4148
4124
|
for (const e of s.items)
|
|
4149
|
-
e.sep && !e.value && !
|
|
4125
|
+
e.sep && !e.value && !Y(e.start, "explicit-key-ind") && !Y(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, $s(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
|
|
4150
4126
|
}
|
|
4151
4127
|
class Tt {
|
|
4152
4128
|
/**
|
|
@@ -4303,7 +4279,7 @@ class Tt {
|
|
|
4303
4279
|
}
|
|
4304
4280
|
if ((n.type === "document" || n.type === "block-map" || n.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
|
|
4305
4281
|
const i = t.items[t.items.length - 1];
|
|
4306
|
-
i && !i.sep && !i.value && i.start.length > 0 &&
|
|
4282
|
+
i && !i.sep && !i.value && i.start.length > 0 && Pt(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
|
|
4307
4283
|
}
|
|
4308
4284
|
}
|
|
4309
4285
|
}
|
|
@@ -4341,7 +4317,7 @@ class Tt {
|
|
|
4341
4317
|
return yield* this.lineEnd(e);
|
|
4342
4318
|
switch (this.type) {
|
|
4343
4319
|
case "doc-start": {
|
|
4344
|
-
|
|
4320
|
+
Pt(e.start) !== -1 ? (yield* this.pop(), yield* this.step()) : e.start.push(this.sourceToken);
|
|
4345
4321
|
return;
|
|
4346
4322
|
}
|
|
4347
4323
|
case "anchor":
|
|
@@ -4398,13 +4374,12 @@ class Tt {
|
|
|
4398
4374
|
}
|
|
4399
4375
|
}
|
|
4400
4376
|
*blockMap(e) {
|
|
4401
|
-
var n;
|
|
4402
4377
|
const t = e.items[e.items.length - 1];
|
|
4403
4378
|
switch (this.type) {
|
|
4404
4379
|
case "newline":
|
|
4405
4380
|
if (this.onKeyLine = !1, t.value) {
|
|
4406
|
-
const
|
|
4407
|
-
(
|
|
4381
|
+
const n = "end" in t.value ? t.value.end : void 0;
|
|
4382
|
+
(Array.isArray(n) ? n[n.length - 1] : void 0)?.type === "comment" ? n?.push(this.sourceToken) : e.items.push({ start: [this.sourceToken] });
|
|
4408
4383
|
} else t.sep ? t.sep.push(this.sourceToken) : t.start.push(this.sourceToken);
|
|
4409
4384
|
return;
|
|
4410
4385
|
case "space":
|
|
@@ -4415,9 +4390,9 @@ class Tt {
|
|
|
4415
4390
|
t.sep.push(this.sourceToken);
|
|
4416
4391
|
else {
|
|
4417
4392
|
if (this.atIndentedComment(t.start, e.indent)) {
|
|
4418
|
-
const i = e.items[e.items.length - 2]
|
|
4419
|
-
if (Array.isArray(
|
|
4420
|
-
Array.prototype.push.apply(
|
|
4393
|
+
const i = e.items[e.items.length - 2]?.value?.end;
|
|
4394
|
+
if (Array.isArray(i)) {
|
|
4395
|
+
Array.prototype.push.apply(i, t.start), i.push(this.sourceToken), e.items.pop();
|
|
4421
4396
|
return;
|
|
4422
4397
|
}
|
|
4423
4398
|
}
|
|
@@ -4426,34 +4401,34 @@ class Tt {
|
|
|
4426
4401
|
return;
|
|
4427
4402
|
}
|
|
4428
4403
|
if (this.indent >= e.indent) {
|
|
4429
|
-
const
|
|
4430
|
-
let
|
|
4431
|
-
if (
|
|
4432
|
-
const
|
|
4433
|
-
for (let
|
|
4434
|
-
const
|
|
4435
|
-
switch (
|
|
4404
|
+
const n = !this.onKeyLine && this.indent === e.indent, i = n && (t.sep || t.explicitKey) && this.type !== "seq-item-ind";
|
|
4405
|
+
let r = [];
|
|
4406
|
+
if (i && t.sep && !t.value) {
|
|
4407
|
+
const o = [];
|
|
4408
|
+
for (let l = 0; l < t.sep.length; ++l) {
|
|
4409
|
+
const a = t.sep[l];
|
|
4410
|
+
switch (a.type) {
|
|
4436
4411
|
case "newline":
|
|
4437
|
-
|
|
4412
|
+
o.push(l);
|
|
4438
4413
|
break;
|
|
4439
4414
|
case "space":
|
|
4440
4415
|
break;
|
|
4441
4416
|
case "comment":
|
|
4442
|
-
|
|
4417
|
+
a.indent > e.indent && (o.length = 0);
|
|
4443
4418
|
break;
|
|
4444
4419
|
default:
|
|
4445
|
-
|
|
4420
|
+
o.length = 0;
|
|
4446
4421
|
}
|
|
4447
4422
|
}
|
|
4448
|
-
|
|
4423
|
+
o.length >= 2 && (r = t.sep.splice(o[1]));
|
|
4449
4424
|
}
|
|
4450
4425
|
switch (this.type) {
|
|
4451
4426
|
case "anchor":
|
|
4452
4427
|
case "tag":
|
|
4453
|
-
|
|
4428
|
+
i || t.value ? (r.push(this.sourceToken), e.items.push({ start: r }), this.onKeyLine = !0) : t.sep ? t.sep.push(this.sourceToken) : t.start.push(this.sourceToken);
|
|
4454
4429
|
return;
|
|
4455
4430
|
case "explicit-key-ind":
|
|
4456
|
-
!t.sep && !t.explicitKey ? (t.start.push(this.sourceToken), t.explicitKey = !0) :
|
|
4431
|
+
!t.sep && !t.explicitKey ? (t.start.push(this.sourceToken), t.explicitKey = !0) : i || t.value ? (r.push(this.sourceToken), e.items.push({ start: r, explicitKey: !0 })) : this.stack.push({
|
|
4457
4432
|
type: "block-map",
|
|
4458
4433
|
offset: this.offset,
|
|
4459
4434
|
indent: this.indent,
|
|
@@ -4465,35 +4440,35 @@ class Tt {
|
|
|
4465
4440
|
if (t.sep)
|
|
4466
4441
|
if (t.value)
|
|
4467
4442
|
e.items.push({ start: [], key: null, sep: [this.sourceToken] });
|
|
4468
|
-
else if (
|
|
4443
|
+
else if (Y(t.sep, "map-value-ind"))
|
|
4469
4444
|
this.stack.push({
|
|
4470
4445
|
type: "block-map",
|
|
4471
4446
|
offset: this.offset,
|
|
4472
4447
|
indent: this.indent,
|
|
4473
|
-
items: [{ start:
|
|
4448
|
+
items: [{ start: r, key: null, sep: [this.sourceToken] }]
|
|
4474
4449
|
});
|
|
4475
|
-
else if ($s(t.key) && !
|
|
4476
|
-
const
|
|
4477
|
-
|
|
4450
|
+
else if ($s(t.key) && !Y(t.sep, "newline")) {
|
|
4451
|
+
const o = ne(t.start), l = t.key, a = t.sep;
|
|
4452
|
+
a.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
|
|
4478
4453
|
type: "block-map",
|
|
4479
4454
|
offset: this.offset,
|
|
4480
4455
|
indent: this.indent,
|
|
4481
|
-
items: [{ start:
|
|
4456
|
+
items: [{ start: o, key: l, sep: a }]
|
|
4482
4457
|
});
|
|
4483
|
-
} else
|
|
4484
|
-
else if (
|
|
4458
|
+
} else r.length > 0 ? t.sep = t.sep.concat(r, this.sourceToken) : t.sep.push(this.sourceToken);
|
|
4459
|
+
else if (Y(t.start, "newline"))
|
|
4485
4460
|
Object.assign(t, { key: null, sep: [this.sourceToken] });
|
|
4486
4461
|
else {
|
|
4487
|
-
const
|
|
4462
|
+
const o = ne(t.start);
|
|
4488
4463
|
this.stack.push({
|
|
4489
4464
|
type: "block-map",
|
|
4490
4465
|
offset: this.offset,
|
|
4491
4466
|
indent: this.indent,
|
|
4492
|
-
items: [{ start:
|
|
4467
|
+
items: [{ start: o, key: null, sep: [this.sourceToken] }]
|
|
4493
4468
|
});
|
|
4494
4469
|
}
|
|
4495
4470
|
else
|
|
4496
|
-
t.sep ? t.value ||
|
|
4471
|
+
t.sep ? t.value || i ? e.items.push({ start: r, key: null, sep: [this.sourceToken] }) : Y(t.sep, "map-value-ind") ? this.stack.push({
|
|
4497
4472
|
type: "block-map",
|
|
4498
4473
|
offset: this.offset,
|
|
4499
4474
|
indent: this.indent,
|
|
@@ -4505,14 +4480,25 @@ class Tt {
|
|
|
4505
4480
|
case "scalar":
|
|
4506
4481
|
case "single-quoted-scalar":
|
|
4507
4482
|
case "double-quoted-scalar": {
|
|
4508
|
-
const
|
|
4509
|
-
|
|
4483
|
+
const o = this.flowScalar(this.type);
|
|
4484
|
+
i || t.value ? (e.items.push({ start: r, key: o, sep: [] }), this.onKeyLine = !0) : t.sep ? this.stack.push(o) : (Object.assign(t, { key: o, sep: [] }), this.onKeyLine = !0);
|
|
4510
4485
|
return;
|
|
4511
4486
|
}
|
|
4512
4487
|
default: {
|
|
4513
|
-
const
|
|
4514
|
-
if (
|
|
4515
|
-
|
|
4488
|
+
const o = this.startBlockValue(e);
|
|
4489
|
+
if (o) {
|
|
4490
|
+
if (o.type === "block-seq") {
|
|
4491
|
+
if (!t.explicitKey && t.sep && !Y(t.sep, "newline")) {
|
|
4492
|
+
yield* this.pop({
|
|
4493
|
+
type: "error",
|
|
4494
|
+
offset: this.offset,
|
|
4495
|
+
message: "Unexpected block-seq-ind on same line with key",
|
|
4496
|
+
source: this.source
|
|
4497
|
+
});
|
|
4498
|
+
return;
|
|
4499
|
+
}
|
|
4500
|
+
} else n && e.items.push({ start: r });
|
|
4501
|
+
this.stack.push(o);
|
|
4516
4502
|
return;
|
|
4517
4503
|
}
|
|
4518
4504
|
}
|
|
@@ -4521,13 +4507,12 @@ class Tt {
|
|
|
4521
4507
|
yield* this.pop(), yield* this.step();
|
|
4522
4508
|
}
|
|
4523
4509
|
*blockSequence(e) {
|
|
4524
|
-
var n;
|
|
4525
4510
|
const t = e.items[e.items.length - 1];
|
|
4526
4511
|
switch (this.type) {
|
|
4527
4512
|
case "newline":
|
|
4528
4513
|
if (t.value) {
|
|
4529
|
-
const
|
|
4530
|
-
(
|
|
4514
|
+
const n = "end" in t.value ? t.value.end : void 0;
|
|
4515
|
+
(Array.isArray(n) ? n[n.length - 1] : void 0)?.type === "comment" ? n?.push(this.sourceToken) : e.items.push({ start: [this.sourceToken] });
|
|
4531
4516
|
} else
|
|
4532
4517
|
t.start.push(this.sourceToken);
|
|
4533
4518
|
return;
|
|
@@ -4537,9 +4522,9 @@ class Tt {
|
|
|
4537
4522
|
e.items.push({ start: [this.sourceToken] });
|
|
4538
4523
|
else {
|
|
4539
4524
|
if (this.atIndentedComment(t.start, e.indent)) {
|
|
4540
|
-
const i = e.items[e.items.length - 2]
|
|
4541
|
-
if (Array.isArray(
|
|
4542
|
-
Array.prototype.push.apply(
|
|
4525
|
+
const i = e.items[e.items.length - 2]?.value?.end;
|
|
4526
|
+
if (Array.isArray(i)) {
|
|
4527
|
+
Array.prototype.push.apply(i, t.start), i.push(this.sourceToken), e.items.pop();
|
|
4543
4528
|
return;
|
|
4544
4529
|
}
|
|
4545
4530
|
}
|
|
@@ -4555,13 +4540,13 @@ class Tt {
|
|
|
4555
4540
|
case "seq-item-ind":
|
|
4556
4541
|
if (this.indent !== e.indent)
|
|
4557
4542
|
break;
|
|
4558
|
-
t.value ||
|
|
4543
|
+
t.value || Y(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
|
|
4559
4544
|
return;
|
|
4560
4545
|
}
|
|
4561
4546
|
if (this.indent > e.indent) {
|
|
4562
|
-
const
|
|
4563
|
-
if (
|
|
4564
|
-
this.stack.push(
|
|
4547
|
+
const n = this.startBlockValue(e);
|
|
4548
|
+
if (n) {
|
|
4549
|
+
this.stack.push(n);
|
|
4565
4550
|
return;
|
|
4566
4551
|
}
|
|
4567
4552
|
}
|
|
@@ -4726,14 +4711,14 @@ function _s(s) {
|
|
|
4726
4711
|
return { lineCounter: s.lineCounter || e && new Ls() || null, prettyErrors: e };
|
|
4727
4712
|
}
|
|
4728
4713
|
function qn(s, e = {}) {
|
|
4729
|
-
const { lineCounter: t, prettyErrors: n } = _s(e), i = new Tt(t
|
|
4714
|
+
const { lineCounter: t, prettyErrors: n } = _s(e), i = new Tt(t?.addNewLine), r = new It(e), o = Array.from(r.compose(i.parse(s)));
|
|
4730
4715
|
if (n && t)
|
|
4731
4716
|
for (const l of o)
|
|
4732
4717
|
l.errors.forEach(De(s, t)), l.warnings.forEach(De(s, t));
|
|
4733
4718
|
return o.length > 0 ? o : Object.assign([], { empty: !0 }, r.streamInfo());
|
|
4734
4719
|
}
|
|
4735
4720
|
function Cs(s, e = {}) {
|
|
4736
|
-
const { lineCounter: t, prettyErrors: n } = _s(e), i = new Tt(t
|
|
4721
|
+
const { lineCounter: t, prettyErrors: n } = _s(e), i = new Tt(t?.addNewLine), r = new It(e);
|
|
4737
4722
|
let o = null;
|
|
4738
4723
|
for (const l of r.compose(i.parse(s), !0, s.length))
|
|
4739
4724
|
if (!o)
|
|
@@ -4773,21 +4758,21 @@ function Rn(s, e, t) {
|
|
|
4773
4758
|
const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4774
4759
|
__proto__: null,
|
|
4775
4760
|
Alias: Re,
|
|
4776
|
-
CST:
|
|
4761
|
+
CST: jn,
|
|
4777
4762
|
Composer: It,
|
|
4778
4763
|
Document: ge,
|
|
4779
4764
|
Lexer: Ts,
|
|
4780
4765
|
LineCounter: Ls,
|
|
4781
4766
|
Pair: v,
|
|
4782
4767
|
Parser: Tt,
|
|
4783
|
-
Scalar:
|
|
4768
|
+
Scalar: O,
|
|
4784
4769
|
Schema: Xe,
|
|
4785
4770
|
YAMLError: At,
|
|
4786
4771
|
YAMLMap: K,
|
|
4787
4772
|
YAMLParseError: z,
|
|
4788
|
-
YAMLSeq:
|
|
4773
|
+
YAMLSeq: W,
|
|
4789
4774
|
YAMLWarning: ys,
|
|
4790
|
-
isAlias:
|
|
4775
|
+
isAlias: Z,
|
|
4791
4776
|
isCollection: L,
|
|
4792
4777
|
isDocument: ee,
|
|
4793
4778
|
isMap: de,
|
|
@@ -4799,27 +4784,27 @@ const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4799
4784
|
parseAllDocuments: qn,
|
|
4800
4785
|
parseDocument: Cs,
|
|
4801
4786
|
stringify: Rn,
|
|
4802
|
-
visit:
|
|
4787
|
+
visit: Q,
|
|
4803
4788
|
visitAsync: Fe
|
|
4804
4789
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4805
4790
|
export {
|
|
4806
4791
|
Re as Alias,
|
|
4807
|
-
|
|
4792
|
+
jn as CST,
|
|
4808
4793
|
It as Composer,
|
|
4809
4794
|
ge as Document,
|
|
4810
4795
|
Ts as Lexer,
|
|
4811
4796
|
Ls as LineCounter,
|
|
4812
4797
|
v as Pair,
|
|
4813
4798
|
Tt as Parser,
|
|
4814
|
-
|
|
4799
|
+
O as Scalar,
|
|
4815
4800
|
Xe as Schema,
|
|
4816
4801
|
At as YAMLError,
|
|
4817
4802
|
K as YAMLMap,
|
|
4818
4803
|
z as YAMLParseError,
|
|
4819
|
-
|
|
4804
|
+
W as YAMLSeq,
|
|
4820
4805
|
ys as YAMLWarning,
|
|
4821
4806
|
Un as default,
|
|
4822
|
-
|
|
4807
|
+
Z as isAlias,
|
|
4823
4808
|
L as isCollection,
|
|
4824
4809
|
ee as isDocument,
|
|
4825
4810
|
de as isMap,
|
|
@@ -4831,7 +4816,7 @@ export {
|
|
|
4831
4816
|
qn as parseAllDocuments,
|
|
4832
4817
|
Cs as parseDocument,
|
|
4833
4818
|
Rn as stringify,
|
|
4834
|
-
|
|
4819
|
+
Q as visit,
|
|
4835
4820
|
Fe as visitAsync
|
|
4836
4821
|
};
|
|
4837
|
-
//# sourceMappingURL=index-
|
|
4822
|
+
//# sourceMappingURL=index-zddirpDj.js.map
|