@automattic/vip 4.1.3 → 4.1.4
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/.buildkite/build-macos-installer.sh +34 -0
- package/.buildkite/build-macos.sh +2 -3
- package/.buildkite/build-windows-installer.ps1 +65 -0
- package/.buildkite/build-windows.ps1 +2 -18
- package/.buildkite/pipeline.yml +32 -0
- package/.buildkite/sign-windows.ps1 +21 -0
- package/.buildkite/test-windows-installer-download.ps1 +54 -0
- package/.buildkite/test_pipeline.py +69 -0
- package/Gemfile.lock +44 -41
- package/cmd/installer-payload/main.go +19 -0
- package/cmd/installer-version/main.go +22 -0
- package/cmd/vip-next/commands/app_debug_test.go +89 -0
- package/cmd/vip-next/commands/app_deploy.go +4 -0
- package/cmd/vip-next/commands/app_deploy_validate.go +2 -0
- package/cmd/vip-next/commands/config_debug_test.go +137 -0
- package/cmd/vip-next/commands/config_envvar_delete.go +2 -0
- package/cmd/vip-next/commands/config_envvar_get.go +2 -0
- package/cmd/vip-next/commands/config_envvar_get_all.go +2 -0
- package/cmd/vip-next/commands/config_envvar_list.go +2 -0
- package/cmd/vip-next/commands/config_envvar_set.go +2 -0
- package/cmd/vip-next/commands/config_software_update.go +12 -1
- package/cmd/vip-next/commands/devenv_create_test.go +5 -5
- package/cmd/vip-next/commands/devenv_debug_test.go +34 -0
- package/cmd/vip-next/commands/devenv_envvar.go +6 -0
- package/cmd/vip-next/commands/devenv_lifecycle.go +30 -11
- package/cmd/vip-next/commands/devenv_update.go +1 -1
- package/cmd/vip-next/commands/devenv_update_test.go +28 -2
- package/cmd/vip-next/commands/import_debug_test.go +110 -0
- package/cmd/vip-next/commands/import_media.go +4 -0
- package/cmd/vip-next/commands/import_sql.go +9 -1
- package/cmd/vip-next/commands/logout.go +1 -1
- package/cmd/vip-next/commands/searchreplace.go +3 -1
- package/cmd/vip-next/commands/searchreplace_debug_test.go +82 -0
- package/cmd/vip-next/commands/whoami.go +10 -1
- package/cmd/vip-next/commands/whoami_debug_test.go +79 -0
- package/cmd/vip-next/commands/wp.go +2 -0
- package/cmd/vip-next/commands/wp_debug_test.go +32 -0
- package/cmd/vip-next/debug_args.go +63 -0
- package/cmd/vip-next/debug_test.go +122 -0
- package/cmd/vip-next/main.go +58 -2
- package/cmd/vip-next/pendo_wiring_test.go +148 -0
- package/cmd/vip-next/root.go +17 -0
- package/dist/bin/vip-dev-env-envvar-get.js +2 -2
- package/dist/bin/vip-dev-env-envvar-set.js +2 -2
- package/dist/bin/vip-dev-env-update.js +1 -1
- package/dist/lib/analytics/clients/pendo.js +19 -7
- package/dist/lib/constants/dev-environment.js +8 -7
- package/dist/lib/dev-environment/dev-environment-cli.js +10 -2
- package/dist/lib/dev-environment/dev-environment-core.js +1 -1
- package/docs/BUILD-SIGNING.md +147 -6
- package/docs/DEBUGGING.md +61 -0
- package/docs/GO-UPDATES.md +7 -1
- package/docs/RELEASING.md +3 -2
- package/docs/SETUP.md +2 -1
- package/fastlane/Fastfile +66 -3
- package/fastlane/test_signing.rb +83 -0
- package/internal/auth/logout.go +14 -1
- package/internal/auth/logout_test.go +46 -0
- package/internal/debuglog/debuglog.go +85 -0
- package/internal/debuglog/debuglog_test.go +44 -0
- package/internal/devenv/compose/view.go +6 -3
- package/internal/devenv/compose/view_test.go +1 -1
- package/internal/devenv/debug.go +4 -0
- package/internal/devenv/debug_test.go +103 -0
- package/internal/devenv/devenv.go +20 -2
- package/internal/devenv/devexec.go +3 -0
- package/internal/devenv/importdata.go +4 -1
- package/internal/devenv/list.go +9 -1
- package/internal/devenv/logs.go +2 -0
- package/internal/devenv/proxy/ca.go +9 -2
- package/internal/devenv/proxy/ca_test.go +1 -1
- package/internal/devenv/proxy/network.go +7 -3
- package/internal/devenv/proxy/network_test.go +6 -0
- package/internal/devenv/proxy/proxy.go +37 -8
- package/internal/devenv/proxy/proxy_test.go +61 -6
- package/internal/devenv/proxy/scripts/gen-certs.sh +20 -5
- package/internal/devenv/update.go +2 -0
- package/internal/gql/debug_test.go +79 -0
- package/internal/gql/error.go +27 -1
- package/internal/gql/rechallenge.go +9 -5
- package/internal/gql/retry.go +21 -2
- package/internal/gql/transport.go +9 -0
- package/internal/httpproxy/debug_test.go +32 -0
- package/internal/httpproxy/httpproxy.go +8 -1
- package/internal/installer/version.go +41 -0
- package/internal/installer/version_test.go +33 -0
- package/internal/parity/edge_workers_debug_test.go +87 -0
- package/internal/parity/pendo_test.go +122 -0
- package/internal/rechallenge/flow.go +8 -0
- package/internal/rechallenge/flow_test.go +15 -1
- package/internal/releasepromotion/buildkite.go +12 -1
- package/internal/releasepromotion/buildkite_test.go +31 -0
- package/internal/releasepromotion/contract.go +49 -1
- package/internal/releasepromotion/contract_test.go +38 -0
- package/internal/releasepromotion/github.go +4 -10
- package/internal/releasepromotion/optional_installers_test.go +87 -0
- package/internal/releasepromotion/verify.go +99 -2
- package/internal/releasepromotion/verify_test.go +99 -0
- package/internal/searchreplace/debug_test.go +71 -0
- package/internal/searchreplace/searchreplace.go +14 -0
- package/internal/siteimport/debug_test.go +34 -0
- package/internal/siteimport/status.go +11 -0
- package/internal/telemetry/pendo.go +41 -10
- package/internal/telemetry/pendo_auth_test.go +92 -0
- package/internal/telemetry/pendo_test.go +24 -5
- package/internal/telemetry/tracker.go +26 -0
- package/internal/update/github.go +36 -17
- package/internal/update/ownership.go +22 -0
- package/internal/update/ownership_test.go +44 -0
- package/internal/update/release_test.go +53 -13
- package/internal/update/service_test.go +39 -0
- package/internal/upload/debug_test.go +76 -0
- package/internal/upload/multipart.go +3 -0
- package/internal/upload/orchestrate.go +10 -0
- package/internal/upload/putobject.go +3 -0
- package/internal/wpssh/debug_test.go +67 -0
- package/internal/wpssh/wpssh.go +7 -0
- package/internal/wpstream/debug_test.go +116 -0
- package/internal/wpstream/run.go +10 -1
- package/node_modules/@apollo/client/CHANGELOG.md +1130 -0
- package/node_modules/@apollo/client/__cjs/cache/core/Scalar.cjs +36 -0
- package/node_modules/@apollo/client/__cjs/cache/core/Scalar.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/cache/core/Scalar.d.cts +56 -0
- package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs +32 -1
- package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/core/cache.d.cts +89 -6
- package/node_modules/@apollo/client/__cjs/cache/core/types/Cache.d.cts +30 -2
- package/node_modules/@apollo/client/__cjs/cache/index.cjs +3 -1
- package/node_modules/@apollo/client/__cjs/cache/index.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/index.d.cts +2 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.cjs +63 -5
- package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.d.cts +3 -0
- package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.cjs +12 -0
- package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.d.cts +11 -2
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs +95 -4
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.d.cts +44 -5
- package/node_modules/@apollo/client/__cjs/cache/inmemory/key-extractor.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs +34 -6
- package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.d.cts +3 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs +489 -45
- package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.d.cts +11 -2
- package/node_modules/@apollo/client/__cjs/cache/inmemory/types.d.cts +31 -4
- package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs +5 -9
- package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/core/ApolloClient.cjs +14 -14
- package/node_modules/@apollo/client/__cjs/core/ApolloClient.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/core/ApolloClient.d.cts +11 -11
- package/node_modules/@apollo/client/__cjs/core/ObservableQuery.cjs +186 -72
- package/node_modules/@apollo/client/__cjs/core/ObservableQuery.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/core/ObservableQuery.d.cts +4 -7
- package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs +164 -197
- package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/core/QueryInfo.d.cts +17 -21
- package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs +75 -48
- package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/core/QueryManager.d.cts +4 -4
- package/node_modules/@apollo/client/__cjs/core/RefetchEventManager.cjs +3 -3
- package/node_modules/@apollo/client/__cjs/core/dataStateErrorCache.cjs +12 -0
- package/node_modules/@apollo/client/__cjs/core/dataStateErrorCache.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/core/dataStateErrorCache.d.cts +3 -0
- package/node_modules/@apollo/client/__cjs/core/deprecated.d.cts +3 -3
- package/node_modules/@apollo/client/__cjs/core/index.cjs +2 -1
- package/node_modules/@apollo/client/__cjs/core/index.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/core/index.d.cts +4 -3
- package/node_modules/@apollo/client/__cjs/core/types.d.cts +11 -7
- package/node_modules/@apollo/client/__cjs/incremental/GraphQLCodegenIncremental.cjs +3 -0
- package/node_modules/@apollo/client/__cjs/incremental/GraphQLCodegenIncremental.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/incremental/GraphQLCodegenIncremental.d.cts +55 -0
- package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.d.cts +2 -4
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs +47 -16
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.d.cts +29 -6
- package/node_modules/@apollo/client/__cjs/incremental/handlers/notImplemented.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/index.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/index.d.cts +1 -0
- package/node_modules/@apollo/client/__cjs/{utilities/internal/types/NoInfer.cjs → incremental/internal/types.cjs} +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/internal/types.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/incremental/internal/types.d.cts +17 -0
- package/node_modules/@apollo/client/__cjs/incremental/types.d.cts +55 -4
- package/node_modules/@apollo/client/__cjs/invariantErrorCodes.cjs +164 -113
- package/node_modules/@apollo/client/__cjs/link/core/ApolloLink.cjs +3 -3
- package/node_modules/@apollo/client/__cjs/link/http/checkFetcher.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/link/persisted-queries/index.cjs +2 -2
- package/node_modules/@apollo/client/__cjs/link/ws/index.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/local-state/LocalState.cjs +11 -11
- package/node_modules/@apollo/client/__cjs/local-state/LocalState.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/local-state/LocalState.d.cts +1 -1
- package/node_modules/@apollo/client/__cjs/masking/internal/types.d.cts +1 -2
- package/node_modules/@apollo/client/__cjs/masking/maskDefinition.cjs +2 -2
- package/node_modules/@apollo/client/__cjs/masking/maskFragment.cjs +2 -2
- package/node_modules/@apollo/client/__cjs/masking/maskOperation.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/masking/utils.cjs +3 -3
- package/node_modules/@apollo/client/__cjs/react/context/ApolloContext.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/react/context/ApolloProvider.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs +2 -2
- package/node_modules/@apollo/client/__cjs/react/hooks/useApolloClient.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useBackgroundQuery.d.cts +3 -3
- package/node_modules/@apollo/client/__cjs/react/hooks/useFragment.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useFragment.d.cts +0 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.cjs +2 -2
- package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.d.cts +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useLoadableQuery.cjs +2 -2
- package/node_modules/@apollo/client/__cjs/react/hooks/useMutation.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useMutation.d.cts +14 -14
- package/node_modules/@apollo/client/__cjs/react/hooks/useQuery.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useQuery.d.cts +16 -3
- package/node_modules/@apollo/client/__cjs/react/hooks/useSubscription.cjs +7 -3
- package/node_modules/@apollo/client/__cjs/react/hooks/useSubscription.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useSubscription.d.cts +27 -5
- package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseFragment.d.cts +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseQuery.d.cts +30 -30
- package/node_modules/@apollo/client/__cjs/react/hooks/useSyncExternalStore.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/react/internal/cache/QueryReference.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/react/query-preloader/createQueryPreloader.d.cts +1 -1
- package/node_modules/@apollo/client/__cjs/react/ssr/prerenderStatic.cjs +2 -2
- package/node_modules/@apollo/client/__cjs/react/types/deprecated.d.cts +5 -4
- package/node_modules/@apollo/client/__cjs/react/types/types.documentation.d.cts +12 -1
- package/node_modules/@apollo/client/__cjs/testing/core/mocking/mockLink.cjs +25 -5
- package/node_modules/@apollo/client/__cjs/testing/core/mocking/mockLink.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/testing/core/mocking/mockLink.d.cts +1 -2
- package/node_modules/@apollo/client/__cjs/utilities/caching/sizes.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/caching/sizes.d.cts +39 -1
- package/node_modules/@apollo/client/__cjs/utilities/graphql/DocumentTransform.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/StreamArrayState.cjs +27 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/StreamArrayState.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/StreamArrayState.d.cts +12 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/addDeferFragmentLabels.cjs +33 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/addDeferFragmentLabels.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/addDeferFragmentLabels.d.cts +3 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/capitalize.cjs +12 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/capitalize.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/capitalize.d.cts +7 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/coerceScalarFieldsToParsed.cjs +102 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/coerceScalarFieldsToParsed.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/coerceScalarFieldsToParsed.d.cts +9 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/constants.cjs +20 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/constants.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/constants.d.cts +19 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/getDirectiveArgValue.cjs +19 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/getDirectiveArgValue.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/getDirectiveArgValue.d.cts +9 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs +3 -3
- package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentFromSelection.cjs +2 -2
- package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentFromSelection.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentQueryDocument.cjs +2 -2
- package/node_modules/@apollo/client/__cjs/utilities/internal/getMainDefinition.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/getMemoryInternals.cjs +6 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/getMemoryInternals.d.cts +4 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/getQueryDefinition.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/index.cjs +27 -2
- package/node_modules/@apollo/client/__cjs/utilities/internal/index.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/index.d.cts +17 -2
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs +38 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.d.cts +9 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs +37 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.d.cts +9 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/isTypenameField.cjs +7 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/isTypenameField.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/isTypenameField.d.cts +3 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/makeStreamInfoTrie.cjs +17 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/makeStreamInfoTrie.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/makeStreamInfoTrie.d.cts +8 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/matchScalarList.cjs +12 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/matchScalarList.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/matchScalarList.d.cts +8 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/removeDirectivesFromDocument.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/shouldInclude.cjs +4 -4
- package/node_modules/@apollo/client/__cjs/utilities/internal/toDiffWithDataState.cjs +20 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/toDiffWithDataState.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/toDiffWithDataState.d.cts +8 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs +3 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.d.cts +10 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/Exact.cjs +3 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/Exact.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/Exact.d.cts +2 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsLooselyEqual.cjs +3 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsLooselyEqual.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsLooselyEqual.d.cts +10 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsNeverish.cjs +3 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsNeverish.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsNeverish.d.cts +4 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/StreamInfoTrie.d.cts +2 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/unwrapScalarType.cjs +12 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/unwrapScalarType.cjs.map +1 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/unwrapScalarType.d.cts +10 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/valueToObjectRepresentation.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/version.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/version.cjs.map +1 -1
- package/node_modules/@apollo/client/cache/core/Scalar.d.ts +56 -0
- package/node_modules/@apollo/client/cache/core/Scalar.js +32 -0
- package/node_modules/@apollo/client/cache/core/Scalar.js.map +1 -0
- package/node_modules/@apollo/client/cache/core/cache.d.ts +89 -6
- package/node_modules/@apollo/client/cache/core/cache.js +33 -2
- package/node_modules/@apollo/client/cache/core/cache.js.map +1 -1
- package/node_modules/@apollo/client/cache/core/types/Cache.d.ts +30 -2
- package/node_modules/@apollo/client/cache/core/types/Cache.js.map +1 -1
- package/node_modules/@apollo/client/cache/index.d.ts +2 -1
- package/node_modules/@apollo/client/cache/index.js +1 -0
- package/node_modules/@apollo/client/cache/index.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/entityStore.d.ts +3 -0
- package/node_modules/@apollo/client/cache/inmemory/entityStore.js +64 -6
- package/node_modules/@apollo/client/cache/inmemory/entityStore.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/helpers.d.ts +11 -2
- package/node_modules/@apollo/client/cache/inmemory/helpers.js +11 -0
- package/node_modules/@apollo/client/cache/inmemory/helpers.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.d.ts +44 -5
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js +97 -6
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/key-extractor.js +1 -1
- package/node_modules/@apollo/client/cache/inmemory/policies.d.ts +3 -1
- package/node_modules/@apollo/client/cache/inmemory/policies.js +34 -6
- package/node_modules/@apollo/client/cache/inmemory/policies.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/readFromStore.d.ts +11 -2
- package/node_modules/@apollo/client/cache/inmemory/readFromStore.js +485 -45
- package/node_modules/@apollo/client/cache/inmemory/readFromStore.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/types.d.ts +32 -5
- package/node_modules/@apollo/client/cache/inmemory/types.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/writeToStore.js +6 -10
- package/node_modules/@apollo/client/cache/inmemory/writeToStore.js.map +1 -1
- package/node_modules/@apollo/client/core/ApolloClient.d.ts +11 -11
- package/node_modules/@apollo/client/core/ApolloClient.js +14 -14
- package/node_modules/@apollo/client/core/ApolloClient.js.map +1 -1
- package/node_modules/@apollo/client/core/ObservableQuery.d.ts +4 -7
- package/node_modules/@apollo/client/core/ObservableQuery.js +183 -73
- package/node_modules/@apollo/client/core/ObservableQuery.js.map +1 -1
- package/node_modules/@apollo/client/core/QueryInfo.d.ts +18 -22
- package/node_modules/@apollo/client/core/QueryInfo.js +165 -198
- package/node_modules/@apollo/client/core/QueryInfo.js.map +1 -1
- package/node_modules/@apollo/client/core/QueryManager.d.ts +4 -4
- package/node_modules/@apollo/client/core/QueryManager.js +76 -49
- package/node_modules/@apollo/client/core/QueryManager.js.map +1 -1
- package/node_modules/@apollo/client/core/RefetchEventManager.js +3 -3
- package/node_modules/@apollo/client/core/dataStateErrorCache.d.ts +3 -0
- package/node_modules/@apollo/client/core/dataStateErrorCache.js +9 -0
- package/node_modules/@apollo/client/core/dataStateErrorCache.js.map +1 -0
- package/node_modules/@apollo/client/core/deprecated.d.ts +3 -3
- package/node_modules/@apollo/client/core/deprecated.js.map +1 -1
- package/node_modules/@apollo/client/core/index.d.ts +4 -3
- package/node_modules/@apollo/client/core/index.js +1 -1
- package/node_modules/@apollo/client/core/index.js.map +1 -1
- package/node_modules/@apollo/client/core/types.d.ts +11 -7
- package/node_modules/@apollo/client/core/types.js.map +1 -1
- package/node_modules/@apollo/client/incremental/GraphQLCodegenIncremental.d.ts +55 -0
- package/node_modules/@apollo/client/incremental/GraphQLCodegenIncremental.js +2 -0
- package/node_modules/@apollo/client/incremental/GraphQLCodegenIncremental.js.map +1 -0
- package/node_modules/@apollo/client/incremental/handlers/defer20220824.d.ts +2 -4
- package/node_modules/@apollo/client/incremental/handlers/defer20220824.js.map +1 -1
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.d.ts +29 -6
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js +48 -17
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js.map +1 -1
- package/node_modules/@apollo/client/incremental/handlers/notImplemented.js +1 -1
- package/node_modules/@apollo/client/incremental/index.d.ts +1 -0
- package/node_modules/@apollo/client/incremental/index.js.map +1 -1
- package/node_modules/@apollo/client/incremental/internal/types.d.ts +17 -0
- package/node_modules/@apollo/client/incremental/internal/types.js +2 -0
- package/node_modules/@apollo/client/incremental/internal/types.js.map +1 -0
- package/node_modules/@apollo/client/incremental/types.d.ts +55 -4
- package/node_modules/@apollo/client/incremental/types.js.map +1 -1
- package/node_modules/@apollo/client/invariantErrorCodes.js +164 -113
- package/node_modules/@apollo/client/link/core/ApolloLink.js +3 -3
- package/node_modules/@apollo/client/link/http/checkFetcher.js +1 -1
- package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js +1 -1
- package/node_modules/@apollo/client/link/persisted-queries/index.js +2 -2
- package/node_modules/@apollo/client/link/ws/index.js +1 -1
- package/node_modules/@apollo/client/local-state/LocalState.d.ts +1 -1
- package/node_modules/@apollo/client/local-state/LocalState.js +11 -11
- package/node_modules/@apollo/client/local-state/LocalState.js.map +1 -1
- package/node_modules/@apollo/client/masking/internal/types.d.ts +1 -2
- package/node_modules/@apollo/client/masking/internal/types.js.map +1 -1
- package/node_modules/@apollo/client/masking/maskDefinition.js +2 -2
- package/node_modules/@apollo/client/masking/maskFragment.js +2 -2
- package/node_modules/@apollo/client/masking/maskOperation.js +1 -1
- package/node_modules/@apollo/client/masking/utils.js +3 -3
- package/node_modules/@apollo/client/package.json +1 -1
- package/node_modules/@apollo/client/react/context/ApolloContext.js +1 -1
- package/node_modules/@apollo/client/react/context/ApolloProvider.js +1 -1
- package/node_modules/@apollo/client/react/hooks/internal/validateSuspenseHookOptions.js +2 -2
- package/node_modules/@apollo/client/react/hooks/useApolloClient.js +1 -1
- package/node_modules/@apollo/client/react/hooks/useBackgroundQuery.d.ts +3 -3
- package/node_modules/@apollo/client/react/hooks/useBackgroundQuery.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks/useFragment.d.ts +0 -1
- package/node_modules/@apollo/client/react/hooks/useFragment.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks/useLazyQuery.d.ts +1 -1
- package/node_modules/@apollo/client/react/hooks/useLazyQuery.js +2 -2
- package/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks/useLoadableQuery.js +2 -2
- package/node_modules/@apollo/client/react/hooks/useMutation.d.ts +14 -14
- package/node_modules/@apollo/client/react/hooks/useMutation.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks/useQuery.d.ts +16 -3
- package/node_modules/@apollo/client/react/hooks/useQuery.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks/useSubscription.d.ts +27 -5
- package/node_modules/@apollo/client/react/hooks/useSubscription.js +7 -3
- package/node_modules/@apollo/client/react/hooks/useSubscription.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks/useSuspenseFragment.d.ts +1 -1
- package/node_modules/@apollo/client/react/hooks/useSuspenseFragment.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks/useSuspenseQuery.d.ts +30 -30
- package/node_modules/@apollo/client/react/hooks/useSuspenseQuery.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks/useSyncExternalStore.js +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/internal/validateSuspenseHookOptions.js +2 -2
- package/node_modules/@apollo/client/react/hooks-compiled/useApolloClient.js +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useBackgroundQuery.d.ts +3 -3
- package/node_modules/@apollo/client/react/hooks-compiled/useBackgroundQuery.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useFragment.d.ts +0 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useFragment.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.d.ts +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.js +2 -2
- package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useLoadableQuery.js +2 -2
- package/node_modules/@apollo/client/react/hooks-compiled/useMutation.d.ts +14 -14
- package/node_modules/@apollo/client/react/hooks-compiled/useMutation.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useQuery.d.ts +16 -3
- package/node_modules/@apollo/client/react/hooks-compiled/useQuery.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useSubscription.d.ts +27 -5
- package/node_modules/@apollo/client/react/hooks-compiled/useSubscription.js +107 -93
- package/node_modules/@apollo/client/react/hooks-compiled/useSubscription.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseFragment.d.ts +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseFragment.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseQuery.d.ts +30 -30
- package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseQuery.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useSyncExternalStore.js +1 -1
- package/node_modules/@apollo/client/react/internal/cache/QueryReference.js +1 -1
- package/node_modules/@apollo/client/react/query-preloader/createQueryPreloader.d.ts +1 -1
- package/node_modules/@apollo/client/react/query-preloader/createQueryPreloader.js.map +1 -1
- package/node_modules/@apollo/client/react/ssr/prerenderStatic.js +2 -2
- package/node_modules/@apollo/client/react/types/deprecated.d.ts +5 -4
- package/node_modules/@apollo/client/react/types/deprecated.js.map +1 -1
- package/node_modules/@apollo/client/react/types/types.documentation.d.ts +12 -1
- package/node_modules/@apollo/client/react/types/types.documentation.js.map +1 -1
- package/node_modules/@apollo/client/testing/core/mocking/mockLink.d.ts +1 -2
- package/node_modules/@apollo/client/testing/core/mocking/mockLink.js +25 -5
- package/node_modules/@apollo/client/testing/core/mocking/mockLink.js.map +1 -1
- package/node_modules/@apollo/client/utilities/caching/sizes.d.ts +39 -1
- package/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
- package/node_modules/@apollo/client/utilities/graphql/DocumentTransform.js +1 -1
- package/node_modules/@apollo/client/utilities/internal/StreamArrayState.d.ts +12 -0
- package/node_modules/@apollo/client/utilities/internal/StreamArrayState.js +23 -0
- package/node_modules/@apollo/client/utilities/internal/StreamArrayState.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/addDeferFragmentLabels.d.ts +3 -0
- package/node_modules/@apollo/client/utilities/internal/addDeferFragmentLabels.js +30 -0
- package/node_modules/@apollo/client/utilities/internal/addDeferFragmentLabels.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/capitalize.d.ts +7 -0
- package/node_modules/@apollo/client/utilities/internal/capitalize.js +9 -0
- package/node_modules/@apollo/client/utilities/internal/capitalize.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/coerceScalarFieldsToParsed.d.ts +9 -0
- package/node_modules/@apollo/client/utilities/internal/coerceScalarFieldsToParsed.js +95 -0
- package/node_modules/@apollo/client/utilities/internal/coerceScalarFieldsToParsed.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/constants.d.ts +19 -0
- package/node_modules/@apollo/client/utilities/internal/constants.js +19 -0
- package/node_modules/@apollo/client/utilities/internal/constants.js.map +1 -1
- package/node_modules/@apollo/client/utilities/internal/getDirectiveArgValue.d.ts +9 -0
- package/node_modules/@apollo/client/utilities/internal/getDirectiveArgValue.js +16 -0
- package/node_modules/@apollo/client/utilities/internal/getDirectiveArgValue.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/getFragmentDefinition.js +3 -3
- package/node_modules/@apollo/client/utilities/internal/getFragmentDefinition.js.map +1 -1
- package/node_modules/@apollo/client/utilities/internal/getFragmentFromSelection.js +2 -2
- package/node_modules/@apollo/client/utilities/internal/getFragmentFromSelection.js.map +1 -1
- package/node_modules/@apollo/client/utilities/internal/getFragmentQueryDocument.js +2 -2
- package/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +1 -1
- package/node_modules/@apollo/client/utilities/internal/getMemoryInternals.d.ts +4 -0
- package/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +6 -0
- package/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
- package/node_modules/@apollo/client/utilities/internal/getQueryDefinition.js +1 -1
- package/node_modules/@apollo/client/utilities/internal/index.d.ts +17 -2
- package/node_modules/@apollo/client/utilities/internal/index.js +13 -1
- package/node_modules/@apollo/client/utilities/internal/index.js.map +1 -1
- package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.d.ts +9 -0
- package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js +35 -0
- package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/isStreamField.d.ts +9 -0
- package/node_modules/@apollo/client/utilities/internal/isStreamField.js +34 -0
- package/node_modules/@apollo/client/utilities/internal/isStreamField.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/isTypenameField.d.ts +3 -0
- package/node_modules/@apollo/client/utilities/internal/isTypenameField.js +4 -0
- package/node_modules/@apollo/client/utilities/internal/isTypenameField.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/makeStreamInfoTrie.d.ts +8 -0
- package/node_modules/@apollo/client/utilities/internal/makeStreamInfoTrie.js +14 -0
- package/node_modules/@apollo/client/utilities/internal/makeStreamInfoTrie.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/matchScalarList.d.ts +8 -0
- package/node_modules/@apollo/client/utilities/internal/matchScalarList.js +9 -0
- package/node_modules/@apollo/client/utilities/internal/matchScalarList.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/removeDirectivesFromDocument.js +1 -1
- package/node_modules/@apollo/client/utilities/internal/shouldInclude.js +4 -4
- package/node_modules/@apollo/client/utilities/internal/toDiffWithDataState.d.ts +8 -0
- package/node_modules/@apollo/client/utilities/internal/toDiffWithDataState.js +17 -0
- package/node_modules/@apollo/client/utilities/internal/toDiffWithDataState.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.d.ts +10 -0
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js +2 -0
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/types/Exact.d.ts +2 -0
- package/node_modules/@apollo/client/utilities/internal/types/Exact.js +2 -0
- package/node_modules/@apollo/client/utilities/internal/types/Exact.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/types/IsLooselyEqual.d.ts +10 -0
- package/node_modules/@apollo/client/utilities/internal/types/IsLooselyEqual.js +2 -0
- package/node_modules/@apollo/client/utilities/internal/types/IsLooselyEqual.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/types/IsNeverish.d.ts +4 -0
- package/node_modules/@apollo/client/utilities/internal/types/IsNeverish.js +2 -0
- package/node_modules/@apollo/client/utilities/internal/types/IsNeverish.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/types/StreamInfoTrie.d.ts +2 -0
- package/node_modules/@apollo/client/utilities/internal/types/StreamInfoTrie.js.map +1 -1
- package/node_modules/@apollo/client/utilities/internal/unwrapScalarType.d.ts +10 -0
- package/node_modules/@apollo/client/utilities/internal/unwrapScalarType.js +9 -0
- package/node_modules/@apollo/client/utilities/internal/unwrapScalarType.js.map +1 -0
- package/node_modules/@apollo/client/utilities/internal/valueToObjectRepresentation.js +1 -1
- package/node_modules/@apollo/client/version.js +1 -1
- package/node_modules/@apollo/client/version.js.map +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/buffer.buffer.d.ts +10 -5
- package/node_modules/@types/node/buffer.d.ts +1 -0
- package/node_modules/@types/node/crypto.d.ts +2 -4
- package/node_modules/@types/node/dgram.d.ts +119 -4
- package/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/node/ffi.d.ts +1 -1
- package/node_modules/@types/node/fs/promises.d.ts +61 -65
- package/node_modules/@types/node/fs.d.ts +86 -76
- package/node_modules/@types/node/http.d.ts +18 -2
- package/node_modules/@types/node/http2.d.ts +12 -4
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/inspector.d.ts +2 -1
- package/node_modules/@types/node/net.d.ts +108 -16
- package/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/node/perf_hooks.d.ts +31 -19
- package/node_modules/@types/node/process.d.ts +52 -0
- package/node_modules/@types/node/quic.d.ts +252 -42
- package/node_modules/@types/node/sqlite.d.ts +6 -2
- package/node_modules/@types/node/stream/iter.d.ts +4 -4
- package/node_modules/@types/node/stream/web.d.ts +20 -0
- package/node_modules/@types/node/test.d.ts +36 -0
- package/node_modules/@types/node/tls.d.ts +50 -15
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +5 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
- package/node_modules/@types/node/tty.d.ts +4 -3
- package/node_modules/@types/node/vfs.d.ts +211 -0
- package/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/@types/node/web-globals/streams.d.ts +4 -0
- package/node_modules/@types/node/zlib.d.ts +17 -0
- package/node_modules/cpu-features/build/Makefile +2 -2
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpufeatures/src/binding.o.d +145 -145
- package/node_modules/cpu-features/build/config.gypi +8 -9
- package/node_modules/cpu-features/build/cpufeatures.target.mk +14 -14
- package/node_modules/cpu-features/build/deps/cpu_features/cpu_features.target.mk +14 -14
- package/node_modules/default-browser/package.json +1 -1
- package/node_modules/default-browser/windows.js +3 -1
- package/node_modules/js-yaml/README.md +0 -3
- package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs +822 -779
- package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs.map +1 -1
- package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js +29 -23
- package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.cjs.js +425 -397
- package/node_modules/js-yaml/dist/js-yaml.cjs.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.d.ts +101 -32
- package/node_modules/js-yaml/dist/js-yaml.mjs +429 -397
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
- package/node_modules/js-yaml/package.json +1 -1
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js +11 -3
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs +11 -3
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
- package/node_modules/lando/node_modules/js-yaml/lib/loader.js +16 -3
- package/node_modules/lando/node_modules/js-yaml/package.json +1 -1
- package/node_modules/open/index.js +15 -3
- package/node_modules/open/package.json +3 -3
- package/node_modules/{lando → path-scurry}/node_modules/lru-cache/README.md +96 -10
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/{lando/node_modules/lru-cache/dist/commonjs → path-scurry/node_modules/lru-cache/dist/commonjs/browser}/index.d.ts +109 -32
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js +1733 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/{lando/node_modules/lru-cache/dist/esm → path-scurry/node_modules/lru-cache/dist/commonjs}/index.d.ts +109 -32
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1733 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js +1733 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
- package/node_modules/{lando/node_modules/lru-cache/dist/esm → path-scurry/node_modules/lru-cache/dist/esm/browser}/index.js +315 -177
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/node_modules/{lando/node_modules/lru-cache/dist/commonjs → path-scurry/node_modules/lru-cache/dist/esm}/index.js +316 -182
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js +1729 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/package.json +154 -0
- package/node_modules/powershell-utils/index.d.ts +16 -2
- package/node_modules/powershell-utils/index.js +12 -9
- package/node_modules/powershell-utils/package.json +1 -1
- package/node_modules/powershell-utils/readme.md +7 -2
- package/node_modules/ssh2/lib/protocol/crypto/build/Makefile +2 -2
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src/binding.o.d +237 -237
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto.node +0 -0
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
- package/node_modules/ssh2/lib/protocol/crypto/build/sshcrypto.target.mk +14 -14
- package/node_modules/undici/docs/docs/api/Client.md +4 -0
- package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
- package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
- package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
- package/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
- package/node_modules/undici/lib/core/symbols.js +2 -0
- package/node_modules/undici/lib/dispatcher/agent.js +7 -2
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
- package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
- package/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
- package/node_modules/undici/lib/dispatcher/client.js +3 -2
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
- package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
- package/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
- package/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
- package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
- package/node_modules/undici/lib/handler/cache-handler.js +29 -5
- package/node_modules/undici/lib/handler/decorator-handler.js +7 -1
- package/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
- package/node_modules/undici/lib/handler/redirect-handler.js +21 -4
- package/node_modules/undici/lib/handler/retry-handler.js +148 -30
- package/node_modules/undici/lib/interceptor/cache.js +65 -12
- package/node_modules/undici/lib/interceptor/decompress.js +115 -13
- package/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
- package/node_modules/undici/lib/interceptor/dns.js +7 -0
- package/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/undici/lib/mock/mock-agent.js +13 -1
- package/node_modules/undici/lib/mock/mock-utils.js +11 -10
- package/node_modules/undici/lib/util/cache.js +45 -3
- package/node_modules/undici/lib/web/cookies/parse.js +150 -147
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
- package/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
- package/node_modules/undici/lib/web/fetch/index.js +6 -0
- package/node_modules/undici/lib/web/fetch/request.js +2 -3
- package/node_modules/undici/lib/web/fetch/util.js +6 -1
- package/node_modules/undici/lib/web/webidl/index.js +3 -3
- package/node_modules/undici/lib/web/websocket/connection.js +1 -1
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/undici/package.json +3 -3
- package/node_modules/undici/types/client.d.ts +10 -0
- package/node_modules/undici/types/interceptors.d.ts +2 -0
- package/node_modules/undici/types/mock-agent.d.ts +11 -10
- package/node_modules/undici/types/socks5-proxy-agent.d.ts +2 -0
- package/node_modules/undici-types/client.d.ts +8 -3
- package/node_modules/undici-types/connector.d.ts +1 -0
- package/node_modules/undici-types/cookies.d.ts +1 -1
- package/node_modules/undici-types/dispatcher.d.ts +3 -3
- package/node_modules/undici-types/errors.d.ts +10 -0
- package/node_modules/undici-types/fetch.d.ts +5 -1
- package/node_modules/undici-types/handlers.d.ts +2 -0
- package/node_modules/undici-types/interceptors.d.ts +1 -1
- package/node_modules/undici-types/mock-interceptor.d.ts +5 -1
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/proxy-agent.d.ts +7 -0
- package/package.json +2 -2
- package/packaging/macos/build-pkg.sh +53 -0
- package/packaging/macos/preinstall +33 -0
- package/packaging/macos/test-install.sh +51 -0
- package/packaging/macos/test_package.py +74 -0
- package/packaging/macos/uninstall.sh +24 -0
- package/packaging/macos/verify-pkg.py +61 -0
- package/packaging/windows/build-msi.ps1 +153 -0
- package/packaging/windows/test-msi.ps1 +225 -0
- package/packaging/windows/verify-msi.ps1 +74 -0
- package/packaging/windows/vip-next.wxs +79 -0
- package/testdata/installer-fixture/main.go +40 -0
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/NoInfer.cjs.map +0 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/NoInfer.d.cts +0 -35
- package/node_modules/@apollo/client/utilities/internal/types/NoInfer.d.ts +0 -35
- package/node_modules/@apollo/client/utilities/internal/types/NoInfer.js +0 -2
- package/node_modules/@apollo/client/utilities/internal/types/NoInfer.js.map +0 -1
- package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
- package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
- package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
- package/node_modules/lando/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
- package/node_modules/lando/node_modules/lru-cache/dist/esm/index.js.map +0 -1
- package/node_modules/lando/node_modules/lru-cache/dist/esm/index.min.js +0 -2
- package/node_modules/lando/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
- package/node_modules/lando/node_modules/lru-cache/package.json +0 -93
- /package/node_modules/{lando/node_modules/lru-cache → path-scurry}/LICENSE.md +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/README.md +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.d.ts +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.d.ts.map +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.js +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.js.map +0 -0
- /package/node_modules/{lando/node_modules/lru-cache → path-scurry}/dist/commonjs/package.json +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.d.ts +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.d.ts.map +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.js +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.js.map +0 -0
- /package/node_modules/{lando/node_modules/lru-cache → path-scurry}/dist/esm/package.json +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry/node_modules/lru-cache}/LICENSE.md +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry/node_modules/lru-cache}/dist/commonjs/package.json +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry/node_modules/lru-cache}/dist/esm/package.json +0 -0
- /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/package.json +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! js-yaml 5.
|
|
1
|
+
/*! js-yaml 5.4.2 https://github.com/nodeca/js-yaml @license MIT */
|
|
2
2
|
//#region src/tag.ts
|
|
3
3
|
var e = Symbol("NOT_RESOLVED");
|
|
4
4
|
function t(e, t) {
|
|
@@ -220,7 +220,7 @@ function he(t) {
|
|
|
220
220
|
let n = me(t);
|
|
221
221
|
return Number.isFinite(n) ? n : e;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var g = t("tag:yaml.org,2002:int", {
|
|
224
224
|
implicit: !0,
|
|
225
225
|
implicitFirstChars: [
|
|
226
226
|
"-",
|
|
@@ -230,16 +230,16 @@ var ge = t("tag:yaml.org,2002:int", {
|
|
|
230
230
|
resolve: he,
|
|
231
231
|
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
232
232
|
represent: (e) => e.toString(10)
|
|
233
|
-
}),
|
|
234
|
-
function
|
|
235
|
-
if (!
|
|
233
|
+
}), ge = /* @__PURE__ */ RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), _e = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
234
|
+
function ve(t) {
|
|
235
|
+
if (!ge.test(t)) return e;
|
|
236
236
|
let n = t.toLowerCase(), r = n[0] === "-" ? -1 : 1;
|
|
237
237
|
if ("+-".includes(n[0]) && (n = n.slice(1)), n === ".inf") return r === 1 ? Infinity : -Infinity;
|
|
238
238
|
if (n === ".nan") return NaN;
|
|
239
239
|
let i = r * parseFloat(n);
|
|
240
|
-
return Number.isFinite(i) ||
|
|
240
|
+
return Number.isFinite(i) || _e.test(t) ? i : e;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function ye(e) {
|
|
243
243
|
if (isNaN(e)) return ".nan";
|
|
244
244
|
if (e === Infinity) return ".inf";
|
|
245
245
|
if (e === -Infinity) return "-.inf";
|
|
@@ -247,7 +247,7 @@ function be(e) {
|
|
|
247
247
|
let t = e.toString(10);
|
|
248
248
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
249
249
|
}
|
|
250
|
-
var
|
|
250
|
+
var be = t("tag:yaml.org,2002:float", {
|
|
251
251
|
implicit: !0,
|
|
252
252
|
implicitFirstChars: [
|
|
253
253
|
"-",
|
|
@@ -255,24 +255,24 @@ var xe = t("tag:yaml.org,2002:float", {
|
|
|
255
255
|
".",
|
|
256
256
|
..."0123456789"
|
|
257
257
|
],
|
|
258
|
-
resolve:
|
|
258
|
+
resolve: ve,
|
|
259
259
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
260
|
-
represent:
|
|
261
|
-
}),
|
|
262
|
-
function
|
|
260
|
+
represent: ye
|
|
261
|
+
}), xe = /* @__PURE__ */ RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), Se = /* @__PURE__ */ RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
262
|
+
function Ce(t, n) {
|
|
263
263
|
if (n) {
|
|
264
|
-
if (!
|
|
264
|
+
if (!Se.test(t)) return e;
|
|
265
265
|
let n = t.toLowerCase(), r = n[0] === "-" ? -1 : 1;
|
|
266
266
|
if ("+-".includes(n[0]) && (n = n.slice(1)), n === ".inf") return r === 1 ? Infinity : -Infinity;
|
|
267
267
|
if (n === ".nan") return NaN;
|
|
268
268
|
let i = r * parseFloat(n);
|
|
269
269
|
return Number.isFinite(i) ? i : e;
|
|
270
270
|
}
|
|
271
|
-
if (!
|
|
271
|
+
if (!xe.test(t)) return e;
|
|
272
272
|
let r = Number(t);
|
|
273
273
|
return Number.isFinite(r) ? r : e;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function we(e) {
|
|
276
276
|
if (isNaN(e)) return ".nan";
|
|
277
277
|
if (e === Infinity) return ".inf";
|
|
278
278
|
if (e === -Infinity) return "-.inf";
|
|
@@ -280,15 +280,15 @@ function Te(e) {
|
|
|
280
280
|
let t = e.toString(10);
|
|
281
281
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
283
|
+
var Te = t("tag:yaml.org,2002:float", {
|
|
284
284
|
implicit: !0,
|
|
285
285
|
implicitFirstChars: ["-", ..."0123456789"],
|
|
286
|
-
resolve:
|
|
286
|
+
resolve: Ce,
|
|
287
287
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
288
|
-
represent:
|
|
289
|
-
}),
|
|
290
|
-
function
|
|
291
|
-
if (!
|
|
288
|
+
represent: we
|
|
289
|
+
}), Ee = /* @__PURE__ */ RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), De = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
290
|
+
function Oe(t) {
|
|
291
|
+
if (!Ee.test(t)) return e;
|
|
292
292
|
let n = t.toLowerCase().replace(/_/g, ""), r = n[0] === "-" ? -1 : 1;
|
|
293
293
|
if ("+-".includes(n[0]) && (n = n.slice(1)), n === ".inf") return r === 1 ? Infinity : -Infinity;
|
|
294
294
|
if (n === ".nan") return NaN;
|
|
@@ -297,9 +297,9 @@ function ke(t) {
|
|
|
297
297
|
for (let e of n.split(":")) i = i * 60 + Number(e);
|
|
298
298
|
i *= r;
|
|
299
299
|
} else i = r * parseFloat(n);
|
|
300
|
-
return Number.isFinite(i) ||
|
|
300
|
+
return Number.isFinite(i) || De.test(t) ? i : e;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function ke(e) {
|
|
303
303
|
if (isNaN(e)) return ".nan";
|
|
304
304
|
if (e === Infinity) return ".inf";
|
|
305
305
|
if (e === -Infinity) return "-.inf";
|
|
@@ -307,7 +307,7 @@ function Ae(e) {
|
|
|
307
307
|
let t = e.toString(10);
|
|
308
308
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
309
309
|
}
|
|
310
|
-
var
|
|
310
|
+
var _ = t("tag:yaml.org,2002:float", {
|
|
311
311
|
implicit: !0,
|
|
312
312
|
implicitFirstChars: [
|
|
313
313
|
"-",
|
|
@@ -315,42 +315,42 @@ var je = t("tag:yaml.org,2002:float", {
|
|
|
315
315
|
".",
|
|
316
316
|
..."0123456789"
|
|
317
317
|
],
|
|
318
|
-
resolve:
|
|
318
|
+
resolve: Oe,
|
|
319
319
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
320
|
-
represent:
|
|
321
|
-
}),
|
|
320
|
+
represent: ke
|
|
321
|
+
}), Ae = t("tag:yaml.org,2002:merge", {
|
|
322
322
|
implicit: !0,
|
|
323
323
|
implicitFirstChars: ["<"],
|
|
324
324
|
resolve: (t, n) => t === "<<" || n && t === "" ? "<<" : e,
|
|
325
325
|
identify: () => !1
|
|
326
|
-
}),
|
|
327
|
-
function
|
|
326
|
+
}), je = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
327
|
+
function Me(t) {
|
|
328
328
|
let n = t.replace(/\s/g, "");
|
|
329
|
-
if (n.length % 4 != 0 || !
|
|
329
|
+
if (n.length % 4 != 0 || !je.test(n)) return e;
|
|
330
330
|
let r = atob(n), i = new Uint8Array(r.length);
|
|
331
331
|
for (let e = 0; e < r.length; e++) i[e] = r.charCodeAt(e);
|
|
332
332
|
return i;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Ne(e) {
|
|
335
335
|
let t = "";
|
|
336
336
|
for (let n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
|
|
337
337
|
return btoa(t);
|
|
338
338
|
}
|
|
339
|
-
var
|
|
340
|
-
resolve:
|
|
339
|
+
var Pe = t("tag:yaml.org,2002:binary", {
|
|
340
|
+
resolve: Me,
|
|
341
341
|
identify: (e) => Object.prototype.toString.call(e) === "[object Uint8Array]",
|
|
342
|
-
represent:
|
|
343
|
-
}),
|
|
344
|
-
function
|
|
342
|
+
represent: Ne
|
|
343
|
+
}), Fe = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Ie = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
344
|
+
function Le(e, t, n, r = 0, i = 0, a = 0, o = 0) {
|
|
345
345
|
let s = new Date(Date.UTC(e, t, n, r, i, a, o));
|
|
346
346
|
return s.setUTCFullYear(e, t, n), s;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
let n =
|
|
350
|
-
if (n === null && (n =
|
|
348
|
+
function Re(t) {
|
|
349
|
+
let n = Fe.exec(t);
|
|
350
|
+
if (n === null && (n = Ie.exec(t)), n === null) return e;
|
|
351
351
|
let r = +n[1], i = n[2] - 1, a = +n[3];
|
|
352
352
|
if (!n[4]) {
|
|
353
|
-
let t =
|
|
353
|
+
let t = Le(r, i, a);
|
|
354
354
|
return t.getUTCFullYear() !== r || t.getUTCMonth() !== i || t.getUTCDate() !== a ? e : t;
|
|
355
355
|
}
|
|
356
356
|
let o = +n[4], s = +n[5], c = +n[6], l = 0;
|
|
@@ -360,7 +360,7 @@ function Be(t) {
|
|
|
360
360
|
for (; e.length < 3;) e += "0";
|
|
361
361
|
l = +e;
|
|
362
362
|
}
|
|
363
|
-
let u =
|
|
363
|
+
let u = Le(r, i, a, o, s, c, l);
|
|
364
364
|
if (u.getUTCFullYear() !== r || u.getUTCMonth() !== i || u.getUTCDate() !== a) return e;
|
|
365
365
|
if (n[9]) {
|
|
366
366
|
let t = +n[10], r = +(n[11] || 0);
|
|
@@ -370,13 +370,13 @@ function Be(t) {
|
|
|
370
370
|
}
|
|
371
371
|
return u;
|
|
372
372
|
}
|
|
373
|
-
var
|
|
373
|
+
var ze = t("tag:yaml.org,2002:timestamp", {
|
|
374
374
|
implicit: !0,
|
|
375
375
|
implicitFirstChars: [..."0123456789"],
|
|
376
|
-
resolve:
|
|
376
|
+
resolve: Re,
|
|
377
377
|
identify: (e) => e instanceof Date,
|
|
378
378
|
represent: (e) => e.toISOString()
|
|
379
|
-
}),
|
|
379
|
+
}), Be = n("tag:yaml.org,2002:seq", {
|
|
380
380
|
create: () => [],
|
|
381
381
|
addItem: (e, t) => {
|
|
382
382
|
e.push(t);
|
|
@@ -385,19 +385,19 @@ var Ve = t("tag:yaml.org,2002:timestamp", {
|
|
|
385
385
|
});
|
|
386
386
|
//#endregion
|
|
387
387
|
//#region src/common/object.ts
|
|
388
|
-
function
|
|
388
|
+
function v(e) {
|
|
389
389
|
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
390
390
|
let t = Object.getPrototypeOf(e);
|
|
391
391
|
return t === null || t === Object.prototype;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Ve(e, t) {
|
|
394
394
|
let n = {};
|
|
395
395
|
for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
|
|
396
396
|
return n;
|
|
397
397
|
}
|
|
398
398
|
//#endregion
|
|
399
399
|
//#region src/tag/sequence/omap.ts
|
|
400
|
-
var
|
|
400
|
+
var He = n("tag:yaml.org,2002:omap", {
|
|
401
401
|
create: () => ({
|
|
402
402
|
list: [],
|
|
403
403
|
seen: /* @__PURE__ */ new Set()
|
|
@@ -407,7 +407,7 @@ var Ge = n("tag:yaml.org,2002:omap", {
|
|
|
407
407
|
if (t instanceof Map) {
|
|
408
408
|
if (t.size !== 1) return "cannot resolve an ordered map item";
|
|
409
409
|
n = t.keys().next().value;
|
|
410
|
-
} else if (
|
|
410
|
+
} else if (v(t)) {
|
|
411
411
|
let e = Object.keys(t);
|
|
412
412
|
if (e.length !== 1) return "cannot resolve an ordered map item";
|
|
413
413
|
n = e[0];
|
|
@@ -416,7 +416,7 @@ var Ge = n("tag:yaml.org,2002:omap", {
|
|
|
416
416
|
},
|
|
417
417
|
finalize: (e) => e.list,
|
|
418
418
|
identify: () => !1
|
|
419
|
-
}),
|
|
419
|
+
}), Ue = n("tag:yaml.org,2002:pairs", {
|
|
420
420
|
create: () => [],
|
|
421
421
|
addItem: (e, t) => {
|
|
422
422
|
if (t instanceof Map) return t.size === 1 ? (e.push(t.entries().next().value), "") : "cannot resolve a pairs item";
|
|
@@ -425,9 +425,9 @@ var Ge = n("tag:yaml.org,2002:omap", {
|
|
|
425
425
|
return r.length === 1 ? (e.push([r[0], n[r[0]]]), "") : "cannot resolve a pairs item";
|
|
426
426
|
},
|
|
427
427
|
identify: () => !1
|
|
428
|
-
}),
|
|
428
|
+
}), We = r("tag:yaml.org,2002:map", {
|
|
429
429
|
create: () => ({}),
|
|
430
|
-
identify:
|
|
430
|
+
identify: v,
|
|
431
431
|
represent: (e) => {
|
|
432
432
|
let t = /* @__PURE__ */ new Map();
|
|
433
433
|
for (let n of Object.keys(e)) t.set(n, e[n]);
|
|
@@ -449,7 +449,7 @@ var Ge = n("tag:yaml.org,2002:omap", {
|
|
|
449
449
|
let n = String(t);
|
|
450
450
|
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
451
451
|
}
|
|
452
|
-
}),
|
|
452
|
+
}), Ge = r("tag:yaml.org,2002:set", {
|
|
453
453
|
create: () => /* @__PURE__ */ new Set(),
|
|
454
454
|
identify: (e) => e instanceof Set,
|
|
455
455
|
represent: (e) => {
|
|
@@ -464,36 +464,36 @@ var Ge = n("tag:yaml.org,2002:omap", {
|
|
|
464
464
|
});
|
|
465
465
|
//#endregion
|
|
466
466
|
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
|
|
467
|
-
function
|
|
467
|
+
function y(e) {
|
|
468
468
|
"@babel/helpers - typeof";
|
|
469
|
-
return
|
|
469
|
+
return y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
470
470
|
return typeof e;
|
|
471
471
|
} : function(e) {
|
|
472
472
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
473
|
-
},
|
|
473
|
+
}, y(e);
|
|
474
474
|
}
|
|
475
475
|
//#endregion
|
|
476
476
|
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
|
|
477
|
-
function
|
|
478
|
-
if (
|
|
477
|
+
function Ke(e, t) {
|
|
478
|
+
if (y(e) != "object" || !e) return e;
|
|
479
479
|
var n = e[Symbol.toPrimitive];
|
|
480
480
|
if (n !== void 0) {
|
|
481
481
|
var r = n.call(e, t || "default");
|
|
482
|
-
if (
|
|
482
|
+
if (y(r) != "object") return r;
|
|
483
483
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
484
484
|
}
|
|
485
485
|
return (t === "string" ? String : Number)(e);
|
|
486
486
|
}
|
|
487
487
|
//#endregion
|
|
488
488
|
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
|
|
489
|
-
function
|
|
490
|
-
var t =
|
|
491
|
-
return
|
|
489
|
+
function qe(e) {
|
|
490
|
+
var t = Ke(e, "string");
|
|
491
|
+
return y(t) == "symbol" ? t : t + "";
|
|
492
492
|
}
|
|
493
493
|
//#endregion
|
|
494
494
|
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
|
|
495
|
-
function
|
|
496
|
-
return (t =
|
|
495
|
+
function b(e, t, n) {
|
|
496
|
+
return (t = qe(t)) in e ? Object.defineProperty(e, t, {
|
|
497
497
|
value: n,
|
|
498
498
|
enumerable: !0,
|
|
499
499
|
configurable: !0,
|
|
@@ -502,7 +502,7 @@ function _(e, t, n) {
|
|
|
502
502
|
}
|
|
503
503
|
//#endregion
|
|
504
504
|
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/objectSpread2.js
|
|
505
|
-
function
|
|
505
|
+
function Je(e, t) {
|
|
506
506
|
var n = Object.keys(e);
|
|
507
507
|
if (Object.getOwnPropertySymbols) {
|
|
508
508
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -512,12 +512,12 @@ function Ze(e, t) {
|
|
|
512
512
|
}
|
|
513
513
|
return n;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function x(e) {
|
|
516
516
|
for (var t = 1; t < arguments.length; t++) {
|
|
517
517
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
518
|
-
t % 2 ?
|
|
519
|
-
|
|
520
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
518
|
+
t % 2 ? Je(Object(n), !0).forEach(function(t) {
|
|
519
|
+
b(e, t, n[t]);
|
|
520
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Je(Object(n)).forEach(function(t) {
|
|
521
521
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
522
522
|
});
|
|
523
523
|
}
|
|
@@ -525,21 +525,21 @@ function v(e) {
|
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
527
|
//#region src/schema.ts
|
|
528
|
-
function
|
|
528
|
+
function Ye() {
|
|
529
529
|
return {
|
|
530
530
|
scalar: Object.create(null),
|
|
531
531
|
sequence: Object.create(null),
|
|
532
532
|
mapping: Object.create(null)
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Xe() {
|
|
536
536
|
return {
|
|
537
537
|
scalar: [],
|
|
538
538
|
sequence: [],
|
|
539
539
|
mapping: []
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Ze(e) {
|
|
543
543
|
let t = [];
|
|
544
544
|
for (let n of e) {
|
|
545
545
|
let e = t.length;
|
|
@@ -554,10 +554,10 @@ function et(e) {
|
|
|
554
554
|
}
|
|
555
555
|
return t;
|
|
556
556
|
}
|
|
557
|
-
var
|
|
557
|
+
var S = class t {
|
|
558
558
|
constructor(e) {
|
|
559
|
-
|
|
560
|
-
let t =
|
|
559
|
+
b(this, "tags", void 0), b(this, "implicitScalarTags", void 0), b(this, "implicitScalarByFirstChar", void 0), b(this, "implicitScalarAnyFirstChar", void 0), b(this, "defaultScalarTag", void 0), b(this, "defaultSequenceTag", void 0), b(this, "defaultMappingTag", void 0), b(this, "exact", void 0), b(this, "prefix", void 0);
|
|
560
|
+
let t = Ze(e), n = [], r = Ye(), i = Xe();
|
|
561
561
|
for (let e of t) {
|
|
562
562
|
if (e.nodeKind === "scalar" && e.implicit) {
|
|
563
563
|
if (e.matchByTagPrefix) throw Error("Implicit scalar tags cannot match by tag prefix");
|
|
@@ -619,47 +619,47 @@ var y = class t {
|
|
|
619
619
|
for (let t of e) n = n.concat(t);
|
|
620
620
|
return new t([...this.tags, ...n]);
|
|
621
621
|
}
|
|
622
|
-
},
|
|
622
|
+
}, C = new S([
|
|
623
623
|
i,
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
]),
|
|
627
|
-
...
|
|
624
|
+
Be,
|
|
625
|
+
We
|
|
626
|
+
]), Qe = new S([
|
|
627
|
+
...C.tags,
|
|
628
628
|
s,
|
|
629
629
|
h,
|
|
630
630
|
fe,
|
|
631
|
-
|
|
632
|
-
]),
|
|
633
|
-
...
|
|
631
|
+
Te
|
|
632
|
+
]), $e = new S([
|
|
633
|
+
...C.tags,
|
|
634
634
|
o,
|
|
635
635
|
f,
|
|
636
636
|
se,
|
|
637
|
-
|
|
638
|
-
]),
|
|
639
|
-
...
|
|
637
|
+
be
|
|
638
|
+
]), et = new S([
|
|
639
|
+
...C.tags,
|
|
640
640
|
l,
|
|
641
641
|
ne,
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
]),
|
|
651
|
-
let i =
|
|
642
|
+
g,
|
|
643
|
+
_,
|
|
644
|
+
ze,
|
|
645
|
+
Ae,
|
|
646
|
+
Pe,
|
|
647
|
+
He,
|
|
648
|
+
Ue,
|
|
649
|
+
Ge
|
|
650
|
+
]), tt = et.withTags(x(x({}, g), {}, { resolve: (t, n, r) => {
|
|
651
|
+
let i = g.resolve(t, n, r);
|
|
652
652
|
return i === e ? se.resolve(t, n, r) : i;
|
|
653
|
-
} }),
|
|
654
|
-
let i =
|
|
655
|
-
return i === e ?
|
|
656
|
-
} })),
|
|
653
|
+
} }), x(x({}, _), {}, { resolve: (t, n, r) => {
|
|
654
|
+
let i = _.resolve(t, n, r);
|
|
655
|
+
return i === e ? be.resolve(t, n, r) : i;
|
|
656
|
+
} })), nt = r("tag:yaml.org,2002:map", {
|
|
657
657
|
create: () => /* @__PURE__ */ new Map(),
|
|
658
658
|
addPair: (e, t, n) => (e.set(t, n), ""),
|
|
659
659
|
has: (e, t) => e.has(t),
|
|
660
660
|
keys: (e) => e.keys(),
|
|
661
661
|
get: (e, t) => e.get(t),
|
|
662
|
-
identify: (e) => e instanceof Map ||
|
|
662
|
+
identify: (e) => e instanceof Map || v(e),
|
|
663
663
|
represent: (e) => {
|
|
664
664
|
if (e instanceof Map) return e;
|
|
665
665
|
let t = /* @__PURE__ */ new Map(), n = e;
|
|
@@ -669,7 +669,7 @@ var y = class t {
|
|
|
669
669
|
});
|
|
670
670
|
//#endregion
|
|
671
671
|
//#region src/tag/mapping/legacy_map.ts
|
|
672
|
-
function
|
|
672
|
+
function rt(e) {
|
|
673
673
|
if (Array.isArray(e)) {
|
|
674
674
|
let t = Array.prototype.slice.call(e);
|
|
675
675
|
for (let e = 0; e < t.length; e++) {
|
|
@@ -680,16 +680,16 @@ function st(e) {
|
|
|
680
680
|
}
|
|
681
681
|
return typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" ? "[object Object]" : String(e);
|
|
682
682
|
}
|
|
683
|
-
var
|
|
683
|
+
var it = r("tag:yaml.org,2002:map", {
|
|
684
684
|
create: () => ({}),
|
|
685
|
-
identify:
|
|
685
|
+
identify: v,
|
|
686
686
|
represent: (e) => {
|
|
687
687
|
let t = /* @__PURE__ */ new Map();
|
|
688
688
|
for (let n of Object.keys(e)) t.set(n, e[n]);
|
|
689
689
|
return t;
|
|
690
690
|
},
|
|
691
691
|
addPair: (e, t, n) => {
|
|
692
|
-
let r =
|
|
692
|
+
let r = rt(t);
|
|
693
693
|
return r === null ? "nested arrays are not supported inside keys" : (r === "__proto__" ? Object.defineProperty(e, r, {
|
|
694
694
|
value: n,
|
|
695
695
|
enumerable: !0,
|
|
@@ -698,7 +698,7 @@ var ct = r("tag:yaml.org,2002:map", {
|
|
|
698
698
|
}) : e[r] = n, "");
|
|
699
699
|
},
|
|
700
700
|
has: (e, t) => {
|
|
701
|
-
let n =
|
|
701
|
+
let n = rt(t);
|
|
702
702
|
return n !== null && Object.prototype.hasOwnProperty.call(e, n);
|
|
703
703
|
},
|
|
704
704
|
keys: (e) => Object.keys(e),
|
|
@@ -706,52 +706,52 @@ var ct = r("tag:yaml.org,2002:map", {
|
|
|
706
706
|
let n = String(t);
|
|
707
707
|
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
708
708
|
}
|
|
709
|
-
}),
|
|
709
|
+
}), at = {
|
|
710
710
|
maxLength: 79,
|
|
711
711
|
indent: 1,
|
|
712
712
|
linesBefore: 3,
|
|
713
713
|
linesAfter: 2
|
|
714
714
|
};
|
|
715
|
-
function
|
|
715
|
+
function ot(e, t, n, r, i) {
|
|
716
716
|
let a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
717
717
|
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
718
718
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
719
719
|
pos: r - t + a.length
|
|
720
720
|
};
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function st(e, t) {
|
|
723
723
|
return " ".repeat(Math.max(t - e.length, 0)) + e;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function ct(e, t) {
|
|
726
726
|
if (!e.buffer) return null;
|
|
727
|
-
let n =
|
|
727
|
+
let n = x(x({}, at), t), r = /\r?\n|\r|\0/g, i = [0], a = [], o, s = -1;
|
|
728
728
|
for (; o = r.exec(e.buffer);) a.push(o.index), i.push(o.index + o[0].length), e.position <= o.index && s < 0 && (s = i.length - 2);
|
|
729
729
|
s < 0 && (s = i.length - 1);
|
|
730
730
|
let c = "", l = Math.min(e.line + n.linesAfter, a.length).toString().length, u = n.maxLength - (n.indent + l + 3);
|
|
731
731
|
for (let t = 1; t <= n.linesBefore && !(s - t < 0); t++) {
|
|
732
|
-
let r =
|
|
733
|
-
c = `${" ".repeat(n.indent)}${
|
|
732
|
+
let r = ot(e.buffer, i[s - t], a[s - t], e.position - (i[s] - i[s - t]), u);
|
|
733
|
+
c = `${" ".repeat(n.indent)}${st((e.line - t + 1).toString(), l)} | ${r.str}\n${c}`;
|
|
734
734
|
}
|
|
735
|
-
let d =
|
|
736
|
-
c += `${" ".repeat(n.indent)}${
|
|
735
|
+
let d = ot(e.buffer, i[s], a[s], e.position, u);
|
|
736
|
+
c += `${" ".repeat(n.indent)}${st((e.line + 1).toString(), l)} | ${d.str}\n`, c += `${"-".repeat(n.indent + l + 3 + d.pos)}^\n`;
|
|
737
737
|
for (let t = 1; t <= n.linesAfter && !(s + t >= a.length); t++) {
|
|
738
|
-
let r =
|
|
739
|
-
c += `${" ".repeat(n.indent)}${
|
|
738
|
+
let r = ot(e.buffer, i[s + t], a[s + t], e.position - (i[s] - i[s + t]), u);
|
|
739
|
+
c += `${" ".repeat(n.indent)}${st((e.line + t + 1).toString(), l)} | ${r.str}\n`;
|
|
740
740
|
}
|
|
741
741
|
return c.replace(/\n$/, "");
|
|
742
742
|
}
|
|
743
743
|
//#endregion
|
|
744
744
|
//#region src/common/exception.ts
|
|
745
|
-
function
|
|
745
|
+
function lt(e, t) {
|
|
746
746
|
let n = "";
|
|
747
747
|
return e.mark ? (e.mark.name && (n += `in "${e.mark.name}" `), n += `(${e.mark.line + 1}:${e.mark.column + 1})`, !t && e.mark.snippet && (n += `\n\n${e.mark.snippet}`), `${e.reason} ${n}`) : e.reason;
|
|
748
748
|
}
|
|
749
|
-
var
|
|
749
|
+
var w = class e extends Error {
|
|
750
750
|
constructor(e, t) {
|
|
751
|
-
super(),
|
|
751
|
+
super(), b(this, "reason", void 0), b(this, "mark", void 0), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = lt(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
752
752
|
}
|
|
753
753
|
toString(e) {
|
|
754
|
-
return `${this.name}: ${
|
|
754
|
+
return `${this.name}: ${lt(this, e)}`;
|
|
755
755
|
}
|
|
756
756
|
static throwAt(t, n, r, i = "") {
|
|
757
757
|
let a = 0, o = 0;
|
|
@@ -766,30 +766,30 @@ var b = class e extends Error {
|
|
|
766
766
|
line: a,
|
|
767
767
|
column: n - o
|
|
768
768
|
};
|
|
769
|
-
throw s.snippet =
|
|
769
|
+
throw s.snippet = ct(s), new e(r, s);
|
|
770
770
|
}
|
|
771
|
-
},
|
|
771
|
+
}, T = {
|
|
772
772
|
DOCUMENT: 1,
|
|
773
773
|
SEQUENCE: 2,
|
|
774
774
|
MAPPING: 3,
|
|
775
775
|
SCALAR: 4,
|
|
776
776
|
ALIAS: 5,
|
|
777
777
|
POP: 6
|
|
778
|
-
},
|
|
778
|
+
}, E = {
|
|
779
779
|
PLAIN: 1,
|
|
780
780
|
SINGLE_QUOTED: 2,
|
|
781
781
|
DOUBLE_QUOTED: 3,
|
|
782
782
|
LITERAL_BLOCK: 4,
|
|
783
783
|
FOLDED_BLOCK: 5
|
|
784
|
-
},
|
|
784
|
+
}, D = {
|
|
785
785
|
BLOCK: 1,
|
|
786
786
|
FLOW: 2
|
|
787
|
-
},
|
|
787
|
+
}, O = {
|
|
788
788
|
CLIP: 1,
|
|
789
789
|
STRIP: 2,
|
|
790
790
|
KEEP: 3
|
|
791
|
-
},
|
|
792
|
-
function
|
|
791
|
+
}, ut = -1;
|
|
792
|
+
function dt(e) {
|
|
793
793
|
switch (e) {
|
|
794
794
|
case 48: return "\0";
|
|
795
795
|
case 97: return "\x07";
|
|
@@ -812,18 +812,18 @@ function ht(e) {
|
|
|
812
812
|
default: return "";
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
|
-
var
|
|
816
|
-
for (let e = 0; e < 256; e++)
|
|
817
|
-
function
|
|
815
|
+
var ft = Array(256), pt = Array(256);
|
|
816
|
+
for (let e = 0; e < 256; e++) ft[e] = +!!dt(e), pt[e] = dt(e);
|
|
817
|
+
function mt(e) {
|
|
818
818
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function ht(e) {
|
|
821
821
|
return e >= 48 && e <= 57 ? e - 48 : (e | 32) - 97 + 10;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function gt(e) {
|
|
824
824
|
return e === 120 ? 2 : e === 117 ? 4 : 8;
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function _t(e, t, n) {
|
|
827
827
|
let r = 0;
|
|
828
828
|
for (; t < n;) {
|
|
829
829
|
let n = e.charCodeAt(t);
|
|
@@ -837,62 +837,62 @@ function xt(e, t, n) {
|
|
|
837
837
|
breaks: r
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function vt(e) {
|
|
841
841
|
return e === 1 ? " " : "\n".repeat(e - 1);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function yt(e, t, n) {
|
|
844
844
|
let r = "", i = t, a = t, o = t;
|
|
845
845
|
for (; i < n;) {
|
|
846
846
|
let t = e.charCodeAt(i);
|
|
847
847
|
if (t === 10 || t === 13) {
|
|
848
848
|
r += e.slice(a, o);
|
|
849
|
-
let t =
|
|
850
|
-
r +=
|
|
849
|
+
let t = _t(e, i, n);
|
|
850
|
+
r += vt(t.breaks), i = a = o = t.position;
|
|
851
851
|
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
852
852
|
}
|
|
853
853
|
return r + e.slice(a, o);
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function bt(e, t, n) {
|
|
856
856
|
let r = "", i = t, a = t, o = t;
|
|
857
857
|
for (; i < n;) {
|
|
858
858
|
let t = e.charCodeAt(i);
|
|
859
859
|
if (t === 39) r += e.slice(a, i) + "'", i += 2, a = o = i;
|
|
860
860
|
else if (t === 10 || t === 13) {
|
|
861
861
|
r += e.slice(a, o);
|
|
862
|
-
let t =
|
|
863
|
-
r +=
|
|
862
|
+
let t = _t(e, i, n);
|
|
863
|
+
r += vt(t.breaks), i = a = o = t.position;
|
|
864
864
|
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
865
865
|
}
|
|
866
866
|
return r + e.slice(a, n);
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function xt(e, t, n) {
|
|
869
869
|
let r = "", i = t, a = t, o = t;
|
|
870
870
|
for (; i < n;) {
|
|
871
871
|
let t = e.charCodeAt(i);
|
|
872
872
|
if (t === 92) {
|
|
873
873
|
r += e.slice(a, i), i++;
|
|
874
874
|
let t = e.charCodeAt(i);
|
|
875
|
-
if (t === 10 || t === 13) i =
|
|
876
|
-
else if (t < 256 &&
|
|
875
|
+
if (t === 10 || t === 13) i = _t(e, i, n).position;
|
|
876
|
+
else if (t < 256 && ft[t]) r += pt[t], i++;
|
|
877
877
|
else {
|
|
878
|
-
let n =
|
|
878
|
+
let n = gt(t), a = 0;
|
|
879
879
|
for (; n > 0; n--) {
|
|
880
880
|
i++;
|
|
881
|
-
let t =
|
|
881
|
+
let t = ht(e.charCodeAt(i));
|
|
882
882
|
a = (a << 4) + t;
|
|
883
883
|
}
|
|
884
|
-
r +=
|
|
884
|
+
r += mt(a), i++;
|
|
885
885
|
}
|
|
886
886
|
a = o = i;
|
|
887
887
|
} else if (t === 10 || t === 13) {
|
|
888
888
|
r += e.slice(a, o);
|
|
889
|
-
let t =
|
|
890
|
-
r +=
|
|
889
|
+
let t = _t(e, i, n);
|
|
890
|
+
r += vt(t.breaks), i = a = o = t.position;
|
|
891
891
|
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
892
892
|
}
|
|
893
893
|
return r + e.slice(a, n);
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function St(e, t, n, r, i, a) {
|
|
896
896
|
let o = r < 0 ? 0 : r, s = e.slice(t, n).replace(/\r\n?/g, "\n"), c = s === "" ? [] : (s.endsWith("\n") ? s.slice(0, -1) : s).split("\n"), l = "", u = !1, d = 0, f = !1;
|
|
897
897
|
for (let e of c) {
|
|
898
898
|
let t = 0;
|
|
@@ -904,141 +904,146 @@ function Et(e, t, n, r, i, a) {
|
|
|
904
904
|
let n = e.slice(o), i = n.charCodeAt(0);
|
|
905
905
|
a ? i === 32 || i === 9 ? (f = !0, l += "\n".repeat(u ? 1 + d : d)) : f ? (f = !1, l += "\n".repeat(d + 1)) : d === 0 ? u && (l += " ") : l += "\n".repeat(d) : l += "\n".repeat(u ? 1 + d : d), l += n, u = !0, d = 0;
|
|
906
906
|
}
|
|
907
|
-
return i ===
|
|
907
|
+
return i === O.KEEP ? l += "\n".repeat(u ? 1 + d : d) : i !== O.STRIP && u && (l += "\n"), l;
|
|
908
908
|
}
|
|
909
|
-
function
|
|
910
|
-
if (t.valueStart ===
|
|
909
|
+
function Ct(e, t) {
|
|
910
|
+
if (t.valueStart === ut) return "";
|
|
911
911
|
let { valueStart: n, valueEnd: r } = t;
|
|
912
912
|
if (t.fast) return e.slice(n, r);
|
|
913
913
|
switch (t.style) {
|
|
914
|
-
case
|
|
915
|
-
case
|
|
916
|
-
case
|
|
917
|
-
case
|
|
918
|
-
default: return
|
|
914
|
+
case E.SINGLE_QUOTED: return bt(e, n, r);
|
|
915
|
+
case E.DOUBLE_QUOTED: return xt(e, n, r);
|
|
916
|
+
case E.LITERAL_BLOCK: return St(e, n, r, t.indent, t.chomping, !1);
|
|
917
|
+
case E.FOLDED_BLOCK: return St(e, n, r, t.indent, t.chomping, !0);
|
|
918
|
+
default: return yt(e, n, r);
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
//#endregion
|
|
922
922
|
//#region src/common/tagname.ts
|
|
923
|
-
var
|
|
923
|
+
var wt = Object.assign(Object.create(null), {
|
|
924
924
|
"!": "!",
|
|
925
925
|
"!!": "tag:yaml.org,2002:"
|
|
926
926
|
});
|
|
927
|
-
function
|
|
927
|
+
function Tt(e) {
|
|
928
928
|
return encodeURI(e).replace(/!/g, "%21");
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Et(e, t) {
|
|
931
931
|
var n, r;
|
|
932
932
|
if (e.startsWith("!<") && e.endsWith(">")) return decodeURIComponent(e.slice(2, -1));
|
|
933
|
-
let i = e.indexOf("!", 1), a = i === -1 ? "!" : e.slice(0, i + 1), o = (n = (r = t == null ? void 0 : t[a]) == null ?
|
|
933
|
+
let i = e.indexOf("!", 1), a = i === -1 ? "!" : e.slice(0, i + 1), o = (n = (r = t == null ? void 0 : t[a]) == null ? wt[a] : r) == null ? a : n;
|
|
934
934
|
return decodeURIComponent(o) + decodeURIComponent(e.slice(a.length));
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function Dt(e) {
|
|
937
937
|
let t = e;
|
|
938
|
-
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${
|
|
938
|
+
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${Tt(t)}`) : t.slice(0, 18) === "tag:yaml.org,2002:" ? `!!${Tt(t.slice(18))}` : `!<${Tt(t)}>`;
|
|
939
939
|
}
|
|
940
940
|
//#endregion
|
|
941
941
|
//#region src/parser/constructor.ts
|
|
942
|
-
var
|
|
942
|
+
var k = -1, Ot = "tag:yaml.org,2002:merge", kt = {
|
|
943
943
|
filename: "",
|
|
944
|
-
schema:
|
|
944
|
+
schema: $e,
|
|
945
945
|
json: !1,
|
|
946
946
|
maxTotalMergeKeys: 1e4,
|
|
947
947
|
maxAliases: -1
|
|
948
948
|
};
|
|
949
|
-
function
|
|
950
|
-
return "tagStart" in e && e.tagStart !==
|
|
949
|
+
function At(e) {
|
|
950
|
+
return "tagStart" in e && e.tagStart !== k ? e.tagStart : "anchorStart" in e && e.anchorStart !== k ? e.anchorStart : "valueStart" in e && e.valueStart !== k ? e.valueStart : "start" in e ? e.start : 0;
|
|
951
951
|
}
|
|
952
|
-
function
|
|
953
|
-
|
|
952
|
+
function A(e, t) {
|
|
953
|
+
w.throwAt(e.source, e.position, t, e.filename);
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function jt(e, t, n, r) {
|
|
956
956
|
try {
|
|
957
957
|
return n.finalize(r);
|
|
958
958
|
} catch (n) {
|
|
959
|
-
if (n instanceof
|
|
960
|
-
|
|
959
|
+
if (n instanceof w) throw n;
|
|
960
|
+
w.throwAt(e.source, t, n instanceof Error ? n.message : String(n), e.filename);
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
function
|
|
964
|
-
let r =
|
|
963
|
+
function Mt(t, n) {
|
|
964
|
+
let r = Ct(t.source, n), i = n.tagStart === k ? "" : t.source.slice(n.tagStart, n.tagEnd), a = t.schema.defaultScalarTag;
|
|
965
965
|
if (i !== "") {
|
|
966
966
|
var o;
|
|
967
967
|
if (i === "!") return {
|
|
968
968
|
value: r,
|
|
969
969
|
tag: a
|
|
970
970
|
};
|
|
971
|
-
let n =
|
|
971
|
+
let n = Et(i, t.tagHandlers), s = t.schema.lookupScalarTag(n);
|
|
972
972
|
if (s) {
|
|
973
973
|
let i = s.resolve(r, !0, n);
|
|
974
|
-
return i === e &&
|
|
974
|
+
return i === e && A(t, `cannot resolve a node with !<${n}> explicit tag`), {
|
|
975
975
|
value: i,
|
|
976
976
|
tag: s
|
|
977
977
|
};
|
|
978
978
|
}
|
|
979
979
|
let c = (o = t.schema.lookupMappingTag(n)) == null ? t.schema.lookupSequenceTag(n) : o;
|
|
980
980
|
if (c) {
|
|
981
|
-
r !== "" &&
|
|
981
|
+
r !== "" && A(t, `cannot resolve a node with !<${n}> explicit tag`);
|
|
982
982
|
let e = c.create(n);
|
|
983
983
|
return {
|
|
984
|
-
value: c.carrierIsResult ? e :
|
|
984
|
+
value: c.carrierIsResult ? e : jt(t, t.position, c, e),
|
|
985
985
|
tag: c
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
|
-
|
|
988
|
+
A(t, `unknown scalar tag !<${n}>`);
|
|
989
989
|
}
|
|
990
|
-
return n.style ===
|
|
990
|
+
return n.style === E.PLAIN ? t.schema.resolveImplicitScalarTag(r) : {
|
|
991
991
|
value: a.resolve(r, !1, a.tagName),
|
|
992
992
|
tag: a
|
|
993
993
|
};
|
|
994
994
|
}
|
|
995
|
-
function
|
|
996
|
-
let r = t.tagStart ===
|
|
997
|
-
return r === "" || r === "!" ? n :
|
|
995
|
+
function Nt(e, t, n) {
|
|
996
|
+
let r = t.tagStart === k ? "" : e.source.slice(t.tagStart, t.tagEnd);
|
|
997
|
+
return r === "" || r === "!" ? n : Et(r, e.tagHandlers);
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function Pt(e) {
|
|
1000
1000
|
return e.nodeKind === "mapping";
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1003
|
-
|
|
1004
|
-
var i;
|
|
1005
|
-
if (e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && E(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`), t.tag.has(t.value, a)) continue;
|
|
1006
|
-
let o = t.tag.addPair(t.value, a, r.get(n, a));
|
|
1007
|
-
o && E(e, o), ((i = t.overridable) == null ? t.overridable = /* @__PURE__ */ new Set() : i).add(a);
|
|
1008
|
-
}
|
|
1002
|
+
function Ft(e) {
|
|
1003
|
+
e.totalMergeKeys++, e.maxTotalMergeKeys !== -1 && e.totalMergeKeys > e.maxTotalMergeKeys && A(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`);
|
|
1009
1004
|
}
|
|
1010
|
-
function
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1005
|
+
function It(e, t, n, r) {
|
|
1006
|
+
Ft(e);
|
|
1007
|
+
for (let i of r.keys(n)) {
|
|
1008
|
+
if (Ft(e), t.tag.has(t.value, i)) continue;
|
|
1009
|
+
let a = t.tag.addPair(t.value, i, r.get(n, i));
|
|
1010
|
+
a && A(e, a), t.overridable != null || (t.overridable = /* @__PURE__ */ new Set()), t.overridable.add(i);
|
|
1015
1011
|
}
|
|
1016
|
-
else E(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
1017
1012
|
}
|
|
1018
|
-
function
|
|
1013
|
+
function Lt(e, t, n, r) {
|
|
1014
|
+
if (e.position = t.keyPosition, Pt(r)) It(e, t, n, r);
|
|
1015
|
+
else if (r.nodeKind === "sequence" && Array.isArray(n)) {
|
|
1016
|
+
n.length > 100 && A(e, "abnormal merge sequence size");
|
|
1017
|
+
for (let r of n) {
|
|
1018
|
+
let n = e.nodeTags.get(r);
|
|
1019
|
+
n || A(e, "cannot merge mappings; the provided source object is unacceptable"), It(e, t, r, n);
|
|
1020
|
+
}
|
|
1021
|
+
} else A(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
1022
|
+
}
|
|
1023
|
+
function Rt(e, t, n, r, i) {
|
|
1019
1024
|
var a, o;
|
|
1020
1025
|
if (e.position = t.keyPosition, t.keyIsMerge) {
|
|
1021
|
-
|
|
1026
|
+
Lt(e, t, r, i);
|
|
1022
1027
|
return;
|
|
1023
1028
|
}
|
|
1024
|
-
!e.json && t.tag.has(t.value, n) && !((a = t.overridable) != null && a.has(n)) &&
|
|
1029
|
+
!e.json && t.tag.has(t.value, n) && !((a = t.overridable) != null && a.has(n)) && A(e, "duplicated mapping key");
|
|
1025
1030
|
let s = t.tag.addPair(t.value, n, r);
|
|
1026
|
-
s &&
|
|
1031
|
+
s && A(e, s), (o = t.overridable) == null || o.delete(n);
|
|
1027
1032
|
}
|
|
1028
|
-
function
|
|
1033
|
+
function zt(e, t, n) {
|
|
1029
1034
|
let r = e.frames[e.frames.length - 1];
|
|
1030
1035
|
if (r.kind === "document") r.value = t, r.hasValue = !0;
|
|
1031
1036
|
else if (r.kind === "sequence") {
|
|
1032
|
-
|
|
1037
|
+
Pt(n) && e.nodeTags.set(t, n);
|
|
1033
1038
|
let i = r.tag.addItem(r.value, t, r.index++);
|
|
1034
|
-
i &&
|
|
1039
|
+
i && A(e, i);
|
|
1035
1040
|
} else if (r.hasKey) {
|
|
1036
1041
|
let i = r.key;
|
|
1037
|
-
r.key = void 0, r.hasKey = !1,
|
|
1038
|
-
} else r.key = t, r.keyPosition = e.position, r.hasKey = !0, r.keyIsMerge = n.tagName ===
|
|
1042
|
+
r.key = void 0, r.hasKey = !1, Rt(e, r, i, t, n);
|
|
1043
|
+
} else r.key = t, r.keyPosition = e.position, r.hasKey = !0, r.keyIsMerge = n.tagName === Ot;
|
|
1039
1044
|
}
|
|
1040
|
-
function
|
|
1041
|
-
if (t.anchorStart !==
|
|
1045
|
+
function Bt(e, t, n, r, i) {
|
|
1046
|
+
if (t.anchorStart !== k) {
|
|
1042
1047
|
let a = {
|
|
1043
1048
|
value: n,
|
|
1044
1049
|
tag: r,
|
|
@@ -1048,8 +1053,8 @@ function Ut(e, t, n, r, i) {
|
|
|
1048
1053
|
}
|
|
1049
1054
|
return null;
|
|
1050
1055
|
}
|
|
1051
|
-
function
|
|
1052
|
-
let n =
|
|
1056
|
+
function Vt(e, t) {
|
|
1057
|
+
let n = x(x(x({}, kt), t), {}, {
|
|
1053
1058
|
events: e,
|
|
1054
1059
|
documents: [],
|
|
1055
1060
|
eventIndex: 0,
|
|
@@ -1063,8 +1068,8 @@ function Wt(e, t) {
|
|
|
1063
1068
|
});
|
|
1064
1069
|
for (; n.eventIndex < n.events.length;) {
|
|
1065
1070
|
let e = n.events[n.eventIndex++];
|
|
1066
|
-
switch (n.position =
|
|
1067
|
-
case
|
|
1071
|
+
switch (n.position = At(e), e.type) {
|
|
1072
|
+
case T.DOCUMENT:
|
|
1068
1073
|
n.anchors = /* @__PURE__ */ new Map(), n.nodeTags = /* @__PURE__ */ new Map(), n.aliasCount = 0, n.tagHandlers = Object.create(null);
|
|
1069
1074
|
for (let t of e.directives) t.kind === "tag" && (n.tagHandlers[t.handle] = t.prefix);
|
|
1070
1075
|
n.frames.push({
|
|
@@ -1074,15 +1079,15 @@ function Wt(e, t) {
|
|
|
1074
1079
|
hasValue: !1
|
|
1075
1080
|
});
|
|
1076
1081
|
break;
|
|
1077
|
-
case
|
|
1078
|
-
let { value: t, tag: r } =
|
|
1079
|
-
|
|
1082
|
+
case T.SCALAR: {
|
|
1083
|
+
let { value: t, tag: r } = Mt(n, e);
|
|
1084
|
+
Bt(n, e, t, r, !0), zt(n, t, r);
|
|
1080
1085
|
break;
|
|
1081
1086
|
}
|
|
1082
|
-
case
|
|
1083
|
-
let t =
|
|
1084
|
-
r ||
|
|
1085
|
-
let i = r.create(t), a =
|
|
1087
|
+
case T.SEQUENCE: {
|
|
1088
|
+
let t = Nt(n, e, "tag:yaml.org,2002:seq"), r = n.schema.lookupSequenceTag(t);
|
|
1089
|
+
r || A(n, `unknown sequence tag !<${t}>`);
|
|
1090
|
+
let i = r.create(t), a = Bt(n, e, i, r, r.carrierIsResult);
|
|
1086
1091
|
n.frames.push({
|
|
1087
1092
|
kind: "sequence",
|
|
1088
1093
|
position: n.position,
|
|
@@ -1093,10 +1098,10 @@ function Wt(e, t) {
|
|
|
1093
1098
|
});
|
|
1094
1099
|
break;
|
|
1095
1100
|
}
|
|
1096
|
-
case
|
|
1097
|
-
let t =
|
|
1098
|
-
r ||
|
|
1099
|
-
let i = r.create(t), a =
|
|
1101
|
+
case T.MAPPING: {
|
|
1102
|
+
let t = Nt(n, e, "tag:yaml.org,2002:map"), r = n.schema.lookupMappingTag(t);
|
|
1103
|
+
r || A(n, `unknown mapping tag !<${t}>`);
|
|
1104
|
+
let i = r.create(t), a = Bt(n, e, i, r, r.carrierIsResult);
|
|
1100
1105
|
n.frames.push({
|
|
1101
1106
|
kind: "mapping",
|
|
1102
1107
|
position: n.position,
|
|
@@ -1111,18 +1116,18 @@ function Wt(e, t) {
|
|
|
1111
1116
|
});
|
|
1112
1117
|
break;
|
|
1113
1118
|
}
|
|
1114
|
-
case
|
|
1115
|
-
n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases &&
|
|
1119
|
+
case T.ALIAS: {
|
|
1120
|
+
n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases && A(n, `aliases exceeded maxAliases (${n.maxAliases})`);
|
|
1116
1121
|
let t = n.source.slice(e.anchorStart, e.anchorEnd), r = n.anchors.get(t);
|
|
1117
|
-
r ||
|
|
1122
|
+
r || A(n, `unidentified alias "${t}"`), r.isValueFinal || A(n, `recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`), zt(n, r.value, r.tag);
|
|
1118
1123
|
break;
|
|
1119
1124
|
}
|
|
1120
|
-
case
|
|
1125
|
+
case T.POP: {
|
|
1121
1126
|
let e = n.frames.pop();
|
|
1122
|
-
if (e.kind === "mapping" && e.hasKey && (n.position = e.keyPosition,
|
|
1127
|
+
if (e.kind === "mapping" && e.hasKey && (n.position = e.keyPosition, A(n, "incomplete mapping pair in event stream")), e.kind === "document") n.documents.push(e.value);
|
|
1123
1128
|
else {
|
|
1124
|
-
let t = e.tag.carrierIsResult ? e.value :
|
|
1125
|
-
e.anchor && (e.anchor.value = t, e.anchor.isValueFinal = !0),
|
|
1129
|
+
let t = e.tag.carrierIsResult ? e.value : jt(n, e.position, e.tag, e.value);
|
|
1130
|
+
e.anchor && (e.anchor.value = t, e.anchor.isValueFinal = !0), zt(n, t, e.tag);
|
|
1126
1131
|
}
|
|
1127
1132
|
break;
|
|
1128
1133
|
}
|
|
@@ -1132,21 +1137,21 @@ function Wt(e, t) {
|
|
|
1132
1137
|
}
|
|
1133
1138
|
//#endregion
|
|
1134
1139
|
//#region src/parser/parser.ts
|
|
1135
|
-
var
|
|
1140
|
+
var j = -1, Ht = Object.prototype.hasOwnProperty, M = 1, Ut = 2, Wt = 3, Gt = 4, Kt = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, qt = /[,\[\]{}]/, Jt = /^(?:!|!!|![0-9A-Za-z-]+!)$/, Yt = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, Xt = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, Zt = RegExp(`^(?:${Yt})*$`), Qt = RegExp(`^(?:${Xt})+$`), $t = RegExp(`^(?:!(?:${Yt})*|${Xt}(?:${Yt})*)$`), en = {
|
|
1136
1141
|
filename: "",
|
|
1137
1142
|
maxDepth: 100
|
|
1138
1143
|
};
|
|
1139
|
-
function
|
|
1144
|
+
function tn(e, t, n) {
|
|
1140
1145
|
e.events.push({
|
|
1141
|
-
type:
|
|
1146
|
+
type: T.DOCUMENT,
|
|
1142
1147
|
explicitStart: t,
|
|
1143
1148
|
explicitEnd: n,
|
|
1144
1149
|
directives: e.directives
|
|
1145
1150
|
});
|
|
1146
1151
|
}
|
|
1147
|
-
function
|
|
1152
|
+
function nn(e, t, n, r, i, a, o) {
|
|
1148
1153
|
e.events.push({
|
|
1149
|
-
type:
|
|
1154
|
+
type: T.SEQUENCE,
|
|
1150
1155
|
start: t,
|
|
1151
1156
|
anchorStart: n,
|
|
1152
1157
|
anchorEnd: r,
|
|
@@ -1155,9 +1160,9 @@ function on(e, t, n, r, i, a, o) {
|
|
|
1155
1160
|
style: o
|
|
1156
1161
|
});
|
|
1157
1162
|
}
|
|
1158
|
-
function
|
|
1163
|
+
function rn(e, t, n, r, i, a, o) {
|
|
1159
1164
|
e.events.push({
|
|
1160
|
-
type:
|
|
1165
|
+
type: T.MAPPING,
|
|
1161
1166
|
start: t,
|
|
1162
1167
|
anchorStart: n,
|
|
1163
1168
|
anchorEnd: r,
|
|
@@ -1166,20 +1171,20 @@ function sn(e, t, n, r, i, a, o) {
|
|
|
1166
1171
|
style: o
|
|
1167
1172
|
});
|
|
1168
1173
|
}
|
|
1169
|
-
function
|
|
1174
|
+
function an(e, t) {
|
|
1170
1175
|
e.events.splice(t.eventsLength, 0, {
|
|
1171
|
-
type:
|
|
1176
|
+
type: T.MAPPING,
|
|
1172
1177
|
start: t.position,
|
|
1173
|
-
anchorStart:
|
|
1174
|
-
anchorEnd:
|
|
1175
|
-
tagStart:
|
|
1176
|
-
tagEnd:
|
|
1177
|
-
style:
|
|
1178
|
+
anchorStart: j,
|
|
1179
|
+
anchorEnd: j,
|
|
1180
|
+
tagStart: j,
|
|
1181
|
+
tagEnd: j,
|
|
1182
|
+
style: D.FLOW
|
|
1178
1183
|
});
|
|
1179
1184
|
}
|
|
1180
|
-
function
|
|
1185
|
+
function N(e, t, n, r, i, a, o, s, c = O.CLIP, l = -1, u = !1) {
|
|
1181
1186
|
e.events.push({
|
|
1182
|
-
type:
|
|
1187
|
+
type: T.SCALAR,
|
|
1183
1188
|
valueStart: t,
|
|
1184
1189
|
valueEnd: n,
|
|
1185
1190
|
anchorStart: r,
|
|
@@ -1192,28 +1197,28 @@ function k(e, t, n, r, i, a, o, s, c = w.CLIP, l = -1, u = !1) {
|
|
|
1192
1197
|
fast: u
|
|
1193
1198
|
});
|
|
1194
1199
|
}
|
|
1195
|
-
function
|
|
1200
|
+
function on(e, t, n) {
|
|
1196
1201
|
e.events.push({
|
|
1197
|
-
type:
|
|
1202
|
+
type: T.ALIAS,
|
|
1198
1203
|
anchorStart: t,
|
|
1199
1204
|
anchorEnd: n
|
|
1200
1205
|
});
|
|
1201
1206
|
}
|
|
1202
|
-
function
|
|
1203
|
-
e.events.push({ type:
|
|
1207
|
+
function P(e) {
|
|
1208
|
+
e.events.push({ type: T.POP });
|
|
1204
1209
|
}
|
|
1205
|
-
function
|
|
1206
|
-
|
|
1210
|
+
function F(e) {
|
|
1211
|
+
N(e, j, j, j, j, j, j, E.PLAIN);
|
|
1207
1212
|
}
|
|
1208
|
-
function
|
|
1213
|
+
function sn() {
|
|
1209
1214
|
return {
|
|
1210
|
-
anchorStart:
|
|
1211
|
-
anchorEnd:
|
|
1212
|
-
tagStart:
|
|
1213
|
-
tagEnd:
|
|
1215
|
+
anchorStart: j,
|
|
1216
|
+
anchorEnd: j,
|
|
1217
|
+
tagStart: j,
|
|
1218
|
+
tagEnd: j
|
|
1214
1219
|
};
|
|
1215
1220
|
}
|
|
1216
|
-
function
|
|
1221
|
+
function I(e) {
|
|
1217
1222
|
return {
|
|
1218
1223
|
position: e.position,
|
|
1219
1224
|
line: e.line,
|
|
@@ -1223,104 +1228,116 @@ function M(e) {
|
|
|
1223
1228
|
eventsLength: e.events.length
|
|
1224
1229
|
};
|
|
1225
1230
|
}
|
|
1226
|
-
function
|
|
1231
|
+
function L(e, t) {
|
|
1227
1232
|
e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.events.length = t.eventsLength;
|
|
1228
1233
|
}
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1234
|
+
function R(e, t) {
|
|
1235
|
+
w.throwAt(e.input.slice(0, e.length), e.position, t, e.filename);
|
|
1231
1236
|
}
|
|
1232
|
-
function
|
|
1237
|
+
function z(e) {
|
|
1233
1238
|
return e === 10 || e === 13;
|
|
1234
1239
|
}
|
|
1235
|
-
function
|
|
1240
|
+
function B(e) {
|
|
1236
1241
|
return e === 9 || e === 32;
|
|
1237
1242
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return
|
|
1243
|
+
function V(e) {
|
|
1244
|
+
return B(e) || z(e);
|
|
1240
1245
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return e === 0 ||
|
|
1246
|
+
function H(e) {
|
|
1247
|
+
return e === 0 || V(e);
|
|
1243
1248
|
}
|
|
1244
|
-
function
|
|
1249
|
+
function U(e) {
|
|
1245
1250
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1246
1251
|
}
|
|
1247
|
-
function
|
|
1252
|
+
function cn(e) {
|
|
1248
1253
|
return e >= 48 && e <= 57 ? e - 48 : -1;
|
|
1249
1254
|
}
|
|
1250
|
-
function
|
|
1255
|
+
function ln(e) {
|
|
1251
1256
|
if (e >= 48 && e <= 57) return e - 48;
|
|
1252
1257
|
let t = e | 32;
|
|
1253
1258
|
return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
|
|
1254
1259
|
}
|
|
1255
|
-
function
|
|
1260
|
+
function un(e) {
|
|
1256
1261
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1257
1262
|
}
|
|
1258
|
-
function
|
|
1263
|
+
function dn(e) {
|
|
1259
1264
|
return e === 48 || e === 97 || e === 98 || e === 116 || e === 9 || e === 110 || e === 118 || e === 102 || e === 114 || e === 101 || e === 32 || e === 34 || e === 47 || e === 92 || e === 78 || e === 95 || e === 76 || e === 80;
|
|
1260
1265
|
}
|
|
1261
|
-
function
|
|
1266
|
+
function fn(e) {
|
|
1262
1267
|
e.input.charCodeAt(e.position) === 10 ? e.position++ : (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++), e.line++, e.lineStart = e.position, e.lineIndent = 0, e.firstTabInLine = -1;
|
|
1263
1268
|
}
|
|
1264
|
-
function
|
|
1265
|
-
let n = 0, r = e.input.charCodeAt(e.position), i = e.position === e.lineStart ||
|
|
1269
|
+
function W(e, t) {
|
|
1270
|
+
let n = 0, r = e.input.charCodeAt(e.position), i = e.position === e.lineStart || V(e.input.charCodeAt(e.position - 1));
|
|
1266
1271
|
for (; r !== 0;) {
|
|
1267
|
-
for (;
|
|
1272
|
+
for (; B(r);) i = !0, r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
1268
1273
|
if (t && i && r === 35) do
|
|
1269
1274
|
r = e.input.charCodeAt(++e.position);
|
|
1270
|
-
while (!
|
|
1271
|
-
if (!
|
|
1272
|
-
for (
|
|
1275
|
+
while (!z(r) && r !== 0);
|
|
1276
|
+
if (!z(r)) break;
|
|
1277
|
+
for (fn(e), n++, i = !0, r = e.input.charCodeAt(e.position); r === 32;) e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1273
1278
|
}
|
|
1274
1279
|
return n;
|
|
1275
1280
|
}
|
|
1276
|
-
function
|
|
1281
|
+
function G(e, t = e.position) {
|
|
1277
1282
|
let n = e.input.charCodeAt(t);
|
|
1278
1283
|
if ((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2)) {
|
|
1279
1284
|
let n = e.input.charCodeAt(t + 3);
|
|
1280
|
-
return n === 0 ||
|
|
1285
|
+
return n === 0 || V(n);
|
|
1281
1286
|
}
|
|
1282
1287
|
return !1;
|
|
1283
1288
|
}
|
|
1284
|
-
function
|
|
1289
|
+
function pn(e) {
|
|
1290
|
+
e.position === e.lineStart && e.input.charCodeAt(e.position) === 65279 && (e.position++, e.lineStart = e.position);
|
|
1291
|
+
}
|
|
1292
|
+
function mn(e) {
|
|
1293
|
+
if (e.position !== e.lineStart) return !1;
|
|
1294
|
+
if (G(e)) return !0;
|
|
1295
|
+
if (e.input.charCodeAt(e.position) !== 65279) return !1;
|
|
1296
|
+
let t = I(e);
|
|
1297
|
+
pn(e), W(e, !0);
|
|
1298
|
+
let n = e.input.charCodeAt(e.position), r = e.position === e.lineStart && (n === 37 || n === 45 && G(e));
|
|
1299
|
+
return L(e, t), r;
|
|
1300
|
+
}
|
|
1301
|
+
function hn(e) {
|
|
1285
1302
|
let t = e.input.charCodeAt(e.position);
|
|
1286
|
-
for (; t !== 0 && !
|
|
1303
|
+
for (; t !== 0 && !z(t);) t = e.input.charCodeAt(++e.position);
|
|
1287
1304
|
}
|
|
1288
|
-
function
|
|
1289
|
-
|
|
1305
|
+
function gn(e, t, n) {
|
|
1306
|
+
Kt.test(e.input.slice(t, n)) && R(e, "the stream contains non-printable characters");
|
|
1290
1307
|
}
|
|
1291
|
-
function
|
|
1308
|
+
function _n(e, t, n) {
|
|
1292
1309
|
if (e.input.charCodeAt(e.position) !== 33) return !1;
|
|
1293
|
-
t.tagStart !==
|
|
1310
|
+
t.tagStart !== j && R(e, "duplication of a tag property");
|
|
1294
1311
|
let r = e.position, i = !1, a = !1, o = "!", s = e.input.charCodeAt(++e.position);
|
|
1295
1312
|
s === 60 ? (i = !0, s = e.input.charCodeAt(++e.position)) : s === 33 && (a = !0, o = "!!", s = e.input.charCodeAt(++e.position));
|
|
1296
1313
|
let c = e.position, l;
|
|
1297
1314
|
if (i) {
|
|
1298
1315
|
for (; s !== 0 && s !== 62;) s = e.input.charCodeAt(++e.position);
|
|
1299
|
-
s !== 62 &&
|
|
1316
|
+
s !== 62 && R(e, "unexpected end of the stream within a verbatim tag"), l = e.input.slice(c, e.position), e.position++;
|
|
1300
1317
|
} else {
|
|
1301
|
-
for (; s !== 0 && !
|
|
1302
|
-
l = e.input.slice(c, e.position),
|
|
1318
|
+
for (; s !== 0 && !V(s) && !(n && U(s));) s === 33 && (a ? R(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(c - 1, e.position + 1), Jt.test(o) || R(e, "named tag handle cannot contain such characters"), a = !0, c = e.position + 1)), s = e.input.charCodeAt(++e.position);
|
|
1319
|
+
l = e.input.slice(c, e.position), qt.test(l) && R(e, "tag suffix cannot contain flow indicator characters");
|
|
1303
1320
|
}
|
|
1304
|
-
return l && !(i ?
|
|
1321
|
+
return l && !(i ? Zt.test(l) : Qt.test(l)) && R(e, `tag name cannot contain such characters: ${l}`), !i && o !== "!" && o !== "!!" && !Ht.call(e.tagHandlers, o) && R(e, `undeclared tag handle "${o}"`), t.tagStart = r, t.tagEnd = e.position, !0;
|
|
1305
1322
|
}
|
|
1306
|
-
function
|
|
1323
|
+
function vn(e, t) {
|
|
1307
1324
|
if (e.input.charCodeAt(e.position) !== 38) return !1;
|
|
1308
|
-
t.anchorStart !==
|
|
1325
|
+
t.anchorStart !== j && R(e, "duplication of an anchor property"), e.position++;
|
|
1309
1326
|
let n = e.position;
|
|
1310
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !
|
|
1311
|
-
return e.position === n &&
|
|
1327
|
+
for (; e.input.charCodeAt(e.position) !== 0 && !V(e.input.charCodeAt(e.position)) && !U(e.input.charCodeAt(e.position));) e.position++;
|
|
1328
|
+
return e.position === n && R(e, "name of an anchor node must contain at least one character"), t.anchorStart = n, t.anchorEnd = e.position, !0;
|
|
1312
1329
|
}
|
|
1313
|
-
function
|
|
1330
|
+
function yn(e, t) {
|
|
1314
1331
|
if (e.input.charCodeAt(e.position) !== 42) return !1;
|
|
1315
|
-
(t.anchorStart !==
|
|
1332
|
+
(t.anchorStart !== j || t.tagStart !== j) && R(e, "alias node should not have any properties"), e.position++;
|
|
1316
1333
|
let n = e.position;
|
|
1317
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !
|
|
1318
|
-
return e.position === n &&
|
|
1334
|
+
for (; e.input.charCodeAt(e.position) !== 0 && !V(e.input.charCodeAt(e.position)) && !U(e.input.charCodeAt(e.position));) e.position++;
|
|
1335
|
+
return e.position === n && R(e, "name of an alias node must contain at least one character"), on(e, n, e.position), !0;
|
|
1319
1336
|
}
|
|
1320
|
-
function
|
|
1321
|
-
|
|
1337
|
+
function bn(e, t) {
|
|
1338
|
+
W(e, !1), e.lineIndent < t && R(e, "deficient indentation");
|
|
1322
1339
|
}
|
|
1323
|
-
function
|
|
1340
|
+
function xn(e, t, n) {
|
|
1324
1341
|
if (e.input.charCodeAt(e.position) !== 39) return !1;
|
|
1325
1342
|
e.position++;
|
|
1326
1343
|
let r = e.position, i = !0;
|
|
@@ -1332,13 +1349,13 @@ function Sn(e, t, n) {
|
|
|
1332
1349
|
continue;
|
|
1333
1350
|
}
|
|
1334
1351
|
let t = e.position;
|
|
1335
|
-
return e.position++,
|
|
1352
|
+
return e.position++, N(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, E.SINGLE_QUOTED, O.CLIP, -1, i), !0;
|
|
1336
1353
|
}
|
|
1337
|
-
|
|
1354
|
+
z(a) ? (i = !1, bn(e, t)) : e.position === e.lineStart && G(e) ? R(e, "unexpected end of the document within a single quoted scalar") : a !== 9 && a < 32 ? R(e, "expected valid JSON character") : e.position++;
|
|
1338
1355
|
}
|
|
1339
|
-
|
|
1356
|
+
R(e, "unexpected end of the stream within a single quoted scalar");
|
|
1340
1357
|
}
|
|
1341
|
-
function
|
|
1358
|
+
function Sn(e, t, n) {
|
|
1342
1359
|
if (e.input.charCodeAt(e.position) !== 34) return !1;
|
|
1343
1360
|
e.position++;
|
|
1344
1361
|
let r = e.position, i = !0;
|
|
@@ -1346,35 +1363,35 @@ function Cn(e, t, n) {
|
|
|
1346
1363
|
let a = e.input.charCodeAt(e.position);
|
|
1347
1364
|
if (a === 34) {
|
|
1348
1365
|
let t = e.position;
|
|
1349
|
-
return e.position++,
|
|
1366
|
+
return e.position++, N(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, E.DOUBLE_QUOTED, O.CLIP, -1, i), !0;
|
|
1350
1367
|
}
|
|
1351
1368
|
if (a === 92) {
|
|
1352
1369
|
i = !1;
|
|
1353
1370
|
let n = e.input.charCodeAt(++e.position);
|
|
1354
|
-
if (
|
|
1355
|
-
else if (
|
|
1371
|
+
if (z(n)) bn(e, t);
|
|
1372
|
+
else if (dn(n)) e.position++;
|
|
1356
1373
|
else {
|
|
1357
|
-
let t =
|
|
1358
|
-
for (t === 0 &&
|
|
1374
|
+
let t = un(n);
|
|
1375
|
+
for (t === 0 && R(e, "unknown escape sequence"); t-- > 0;) e.position++, ln(e.input.charCodeAt(e.position)) < 0 && R(e, "expected hexadecimal character");
|
|
1359
1376
|
e.position++;
|
|
1360
1377
|
}
|
|
1361
|
-
} else
|
|
1378
|
+
} else z(a) ? (i = !1, bn(e, t)) : e.position === e.lineStart && G(e) ? R(e, "unexpected end of the document within a double quoted scalar") : a !== 9 && a < 32 ? R(e, "expected valid JSON character") : e.position++;
|
|
1362
1379
|
}
|
|
1363
|
-
|
|
1380
|
+
R(e, "unexpected end of the stream within a double quoted scalar");
|
|
1364
1381
|
}
|
|
1365
|
-
function
|
|
1366
|
-
let r = e.input.charCodeAt(e.position), i =
|
|
1382
|
+
function Cn(e, t, n) {
|
|
1383
|
+
let r = e.input.charCodeAt(e.position), i = O.CLIP, a = -1, o = !1;
|
|
1367
1384
|
if (r !== 124 && r !== 62) return !1;
|
|
1368
|
-
let s = r === 124 ?
|
|
1385
|
+
let s = r === 124 ? E.LITERAL_BLOCK : E.FOLDED_BLOCK;
|
|
1369
1386
|
for (e.position++; e.input.charCodeAt(e.position) !== 0;) {
|
|
1370
|
-
let n = e.input.charCodeAt(e.position), r =
|
|
1371
|
-
if (n === 43 || n === 45) i !==
|
|
1372
|
-
else if (r >= 0) r === 0 &&
|
|
1387
|
+
let n = e.input.charCodeAt(e.position), r = cn(n);
|
|
1388
|
+
if (n === 43 || n === 45) i !== O.CLIP && R(e, "repeat of a chomping mode identifier"), i = n === 43 ? O.KEEP : O.STRIP, e.position++;
|
|
1389
|
+
else if (r >= 0) r === 0 && R(e, "bad explicit indentation width of a block scalar; it cannot be less than one"), o && R(e, "repeat of an indentation width identifier"), a = t + r - 1, o = !0, e.position++;
|
|
1373
1390
|
else break;
|
|
1374
1391
|
}
|
|
1375
1392
|
let c = !1;
|
|
1376
|
-
for (;
|
|
1377
|
-
c && e.input.charCodeAt(e.position) === 35 &&
|
|
1393
|
+
for (; B(e.input.charCodeAt(e.position));) c = !0, e.position++;
|
|
1394
|
+
c && e.input.charCodeAt(e.position) === 35 && hn(e), z(e.input.charCodeAt(e.position)) ? fn(e) : e.input.charCodeAt(e.position) !== 0 && R(e, "a line break is expected");
|
|
1378
1395
|
let l = o ? a : -1, u = 0, d = e.position, f = e.position;
|
|
1379
1396
|
for (; e.input.charCodeAt(e.position) !== 0;) {
|
|
1380
1397
|
let n = e.position, r = 0;
|
|
@@ -1384,170 +1401,170 @@ function wn(e, t, n) {
|
|
|
1384
1401
|
l >= 0 ? r > l && (f = n + r) : r > 0 && (f = n + r);
|
|
1385
1402
|
break;
|
|
1386
1403
|
}
|
|
1387
|
-
if (
|
|
1388
|
-
if (!o && l === -1 &&
|
|
1404
|
+
if (mn(e)) break;
|
|
1405
|
+
if (!o && l === -1 && z(i) && (u = Math.max(u, r)), !o && l === -1 && !z(i) && (i === 9 && r < t && (e.position = n + r, R(e, "tab characters must not be used in indentation")), r < u && (e.position = n + r, R(e, "bad indentation of a mapping entry"))), l === -1 && i !== 0 && !z(i) && r < t) {
|
|
1389
1406
|
e.lineIndent = r, e.position = n + r;
|
|
1390
1407
|
break;
|
|
1391
1408
|
}
|
|
1392
|
-
!o && i !== 0 && !
|
|
1409
|
+
!o && i !== 0 && !z(i) && l === -1 && (l = r);
|
|
1393
1410
|
let a = l === -1 ? t + 1 : l;
|
|
1394
|
-
if (i !== 0 && !
|
|
1411
|
+
if (i !== 0 && !z(i) && r < a) {
|
|
1395
1412
|
e.lineIndent = r, e.position = n + r;
|
|
1396
1413
|
break;
|
|
1397
1414
|
}
|
|
1398
|
-
|
|
1415
|
+
hn(e), f = e.position, z(e.input.charCodeAt(e.position)) && (fn(e), f = e.position);
|
|
1399
1416
|
}
|
|
1400
|
-
return
|
|
1417
|
+
return gn(e, d, f), N(e, d, f, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, s, i, l), !0;
|
|
1401
1418
|
}
|
|
1402
|
-
function
|
|
1403
|
-
let n = e.input.charCodeAt(e.position), r = t ===
|
|
1404
|
-
if (n === 0 ||
|
|
1419
|
+
function wn(e, t) {
|
|
1420
|
+
let n = e.input.charCodeAt(e.position), r = t === M;
|
|
1421
|
+
if (n === 0 || V(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 || r && U(n)) return !1;
|
|
1405
1422
|
if (n === 63 || n === 45) {
|
|
1406
1423
|
let t = e.input.charCodeAt(e.position + 1);
|
|
1407
|
-
if (
|
|
1424
|
+
if (H(t) || r && U(t)) return !1;
|
|
1408
1425
|
}
|
|
1409
1426
|
return !0;
|
|
1410
1427
|
}
|
|
1411
|
-
function
|
|
1412
|
-
if (!
|
|
1413
|
-
let i = e.position, a = e.position, o = e.input.charCodeAt(e.position), s = n ===
|
|
1414
|
-
for (; o !== 0 && !(e
|
|
1428
|
+
function Tn(e, t, n, r) {
|
|
1429
|
+
if (!wn(e, n)) return !1;
|
|
1430
|
+
let i = e.position, a = e.position, o = e.input.charCodeAt(e.position), s = n === M, c = !1;
|
|
1431
|
+
for (; o !== 0 && !mn(e);) {
|
|
1415
1432
|
if (o === 58) {
|
|
1416
1433
|
let t = e.input.charCodeAt(e.position + 1);
|
|
1417
|
-
if (
|
|
1434
|
+
if (H(t) || s && U(t)) break;
|
|
1418
1435
|
} else if (o === 35) {
|
|
1419
|
-
if (
|
|
1420
|
-
} else if (s &&
|
|
1421
|
-
else if (
|
|
1436
|
+
if (V(e.input.charCodeAt(e.position - 1))) break;
|
|
1437
|
+
} else if (s && U(o)) break;
|
|
1438
|
+
else if (z(o)) {
|
|
1422
1439
|
let n = e.position, r = e.line, i = e.lineStart, a = e.lineIndent;
|
|
1423
|
-
if (
|
|
1440
|
+
if (W(e, !1), e.lineIndent >= t) {
|
|
1424
1441
|
c = !0, o = e.input.charCodeAt(e.position);
|
|
1425
1442
|
continue;
|
|
1426
1443
|
}
|
|
1427
1444
|
e.position = n, e.line = r, e.lineStart = i, e.lineIndent = a;
|
|
1428
1445
|
break;
|
|
1429
1446
|
}
|
|
1430
|
-
|
|
1447
|
+
B(o) || (a = e.position + 1), o = e.input.charCodeAt(++e.position);
|
|
1431
1448
|
}
|
|
1432
|
-
return a === i ? !1 : (
|
|
1449
|
+
return a === i ? !1 : (gn(e, i, a), N(e, i, a, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, E.PLAIN, O.CLIP, -1, !c), !0);
|
|
1433
1450
|
}
|
|
1434
|
-
function
|
|
1451
|
+
function K(e, t) {
|
|
1435
1452
|
let n = e.line;
|
|
1436
|
-
|
|
1453
|
+
W(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && R(e, "deficient indentation");
|
|
1437
1454
|
}
|
|
1438
|
-
function
|
|
1455
|
+
function En(e, t, n) {
|
|
1439
1456
|
let r = e.input.charCodeAt(e.position), i = r === 123, a = e.position, o = !0;
|
|
1440
1457
|
if (r !== 91 && r !== 123) return !1;
|
|
1441
1458
|
let s = i ? 125 : 93;
|
|
1442
|
-
for (i ?
|
|
1443
|
-
|
|
1459
|
+
for (i ? rn(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, D.FLOW) : nn(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, D.FLOW), e.position++; e.input.charCodeAt(e.position) !== 0;) {
|
|
1460
|
+
K(e, t);
|
|
1444
1461
|
let n = e.input.charCodeAt(e.position);
|
|
1445
|
-
if (n === s) return e.position++,
|
|
1446
|
-
o ? n === 44 &&
|
|
1462
|
+
if (n === s) return e.position++, P(e), !0;
|
|
1463
|
+
o ? n === 44 && R(e, "expected the node content, but found ','") : R(e, "missed comma between flow collection entries");
|
|
1447
1464
|
let r = !1, a = !1;
|
|
1448
|
-
n === 63 &&
|
|
1449
|
-
let c = e.line, l =
|
|
1450
|
-
|
|
1465
|
+
n === 63 && V(e.input.charCodeAt(e.position + 1)) && (r = a = !0, e.position += 1, K(e, t));
|
|
1466
|
+
let c = e.line, l = I(e), u = q(e, t, M, !1, !0);
|
|
1467
|
+
K(e, t), n = e.input.charCodeAt(e.position), (i || a || e.line === c) && n === 58 ? (r = !0, e.position++, K(e, t), i || an(e, l), u || F(e), q(e, t, M, !1, !0) || F(e), K(e, t), i || P(e)) : i && r ? (u || F(e), F(e)) : i ? F(e) : r && (an(e, l), u || F(e), F(e), P(e)), n = e.input.charCodeAt(e.position), n === 44 ? (o = !0, e.position++) : o = !1;
|
|
1451
1468
|
}
|
|
1452
|
-
|
|
1469
|
+
R(e, "unexpected end of the stream within a flow collection");
|
|
1453
1470
|
}
|
|
1454
|
-
function
|
|
1455
|
-
if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !
|
|
1456
|
-
for (
|
|
1457
|
-
e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1471
|
+
function Dn(e, t, n) {
|
|
1472
|
+
if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !H(e.input.charCodeAt(e.position + 1))) return !1;
|
|
1473
|
+
for (nn(e, e.position, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, D.BLOCK); e.input.charCodeAt(e.position) === 45 && H(e.input.charCodeAt(e.position + 1));) {
|
|
1474
|
+
e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, R(e, "tab characters must not be used in indentation"));
|
|
1458
1475
|
let n = e.line;
|
|
1459
1476
|
e.position++;
|
|
1460
|
-
let r =
|
|
1461
|
-
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 &&
|
|
1462
|
-
e.lineIndent > t &&
|
|
1477
|
+
let r = W(e, !0) > 0;
|
|
1478
|
+
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && H(e.input.charCodeAt(e.position + 1)) && R(e, "bad indentation of a sequence entry"), r && e.lineIndent <= t ? F(e) : q(e, t, Wt, !1, !0), W(e, !0), e.lineIndent < t || e.position >= e.length) break;
|
|
1479
|
+
e.lineIndent > t && R(e, "bad indentation of a sequence entry"), e.line === n && e.input.charCodeAt(e.position) === 45 && H(e.input.charCodeAt(e.position + 1)) && R(e, "bad indentation of a sequence entry");
|
|
1463
1480
|
}
|
|
1464
|
-
return
|
|
1481
|
+
return P(e), !0;
|
|
1465
1482
|
}
|
|
1466
|
-
function
|
|
1483
|
+
function On(e, t, n, r) {
|
|
1467
1484
|
let i = !1, a = !1, o = !1, s = !1;
|
|
1468
1485
|
if (e.firstTabInLine !== -1) return !1;
|
|
1469
1486
|
let c = e.input.charCodeAt(e.position);
|
|
1470
1487
|
for (; c !== 0;) {
|
|
1471
|
-
!i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1488
|
+
!i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, R(e, "tab characters must not be used in indentation"));
|
|
1472
1489
|
let l = e.input.charCodeAt(e.position + 1), u = e.line;
|
|
1473
|
-
if ((c === 63 || c === 58) &&
|
|
1490
|
+
if ((c === 63 || c === 58) && H(l)) o || (rn(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, D.BLOCK), o = !0), c === 63 ? (i && F(e), a = !0, i = !0) : i ? i = !1 : (F(e), a = !0, i = !1), e.position += 1, s = !0;
|
|
1474
1491
|
else {
|
|
1475
|
-
i && (
|
|
1476
|
-
let t =
|
|
1477
|
-
if (!
|
|
1492
|
+
i && (F(e), i = !1);
|
|
1493
|
+
let t = I(e);
|
|
1494
|
+
if (!q(e, n, Ut, !1, !0)) break;
|
|
1478
1495
|
if (e.line === u) {
|
|
1479
|
-
for (c = e.input.charCodeAt(e.position);
|
|
1496
|
+
for (c = e.input.charCodeAt(e.position); B(c);) c = e.input.charCodeAt(++e.position);
|
|
1480
1497
|
if (c === 58) {
|
|
1481
|
-
if (c = e.input.charCodeAt(++e.position),
|
|
1482
|
-
for (
|
|
1498
|
+
if (c = e.input.charCodeAt(++e.position), H(c) || R(e, "a whitespace character is expected after the key-value separator within a block mapping"), !o) {
|
|
1499
|
+
for (L(e, t), rn(e, t.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, D.BLOCK), o = !0, q(e, n, Ut, !1, !0), c = e.input.charCodeAt(e.position); B(c);) c = e.input.charCodeAt(++e.position);
|
|
1483
1500
|
e.position++;
|
|
1484
1501
|
}
|
|
1485
1502
|
a = !0, i = !1, s = !1;
|
|
1486
|
-
} else if (a)
|
|
1487
|
-
else return r.anchorStart !==
|
|
1488
|
-
} else if (a)
|
|
1489
|
-
else return r.anchorStart !==
|
|
1503
|
+
} else if (a) R(e, "expected ':' after a mapping key");
|
|
1504
|
+
else return r.anchorStart !== j || r.tagStart !== j ? (L(e, t), !1) : !0;
|
|
1505
|
+
} else if (a) R(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1506
|
+
else return r.anchorStart !== j || r.tagStart !== j ? (L(e, t), !1) : !0;
|
|
1490
1507
|
}
|
|
1491
|
-
if (
|
|
1508
|
+
if (q(e, t, Gt, !0, s) && (s = !1), i || s && (F(e), s = !1), W(e, !0), c = e.input.charCodeAt(e.position), (e.line === u || e.lineIndent > t) && c !== 0) R(e, "bad indentation of a mapping entry");
|
|
1492
1509
|
else if (e.lineIndent < t) break;
|
|
1493
1510
|
}
|
|
1494
|
-
return a ? (i &&
|
|
1511
|
+
return a ? (i && F(e), o && P(e), !0) : !1;
|
|
1495
1512
|
}
|
|
1496
|
-
function
|
|
1497
|
-
e.depth >= e.maxDepth &&
|
|
1498
|
-
let o = 1, s = !1, c = !1, l = null, u =
|
|
1499
|
-
if (r &&
|
|
1500
|
-
let r = e.input.charCodeAt(e.position), i =
|
|
1513
|
+
function q(e, t, n, r, i, a = !0) {
|
|
1514
|
+
e.depth >= e.maxDepth && R(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
|
|
1515
|
+
let o = 1, s = !1, c = !1, l = null, u = sn(), d = n === Gt || n === Wt, f = d, p = d;
|
|
1516
|
+
if (r && W(e, !0) && (s = !0, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1), o === 1) for (;;) {
|
|
1517
|
+
let r = e.input.charCodeAt(e.position), i = I(e);
|
|
1501
1518
|
if (s && o !== 1 && (r === 33 || r === 38)) break;
|
|
1502
|
-
if (s && p && (u.tagStart !==
|
|
1519
|
+
if (s && p && (u.tagStart !== j || u.anchorStart !== j) && (r === 33 || r === 38)) {
|
|
1503
1520
|
var m;
|
|
1504
|
-
let n =
|
|
1505
|
-
if (
|
|
1506
|
-
|
|
1521
|
+
let n = I(e), r = t + 1;
|
|
1522
|
+
if (On(e, e.position - e.lineStart, r, u) && ((m = e.events[n.eventsLength]) == null ? void 0 : m.type) === T.MAPPING) return e.depth--, !0;
|
|
1523
|
+
L(e, n);
|
|
1507
1524
|
}
|
|
1508
|
-
if (s && (r === 33 && u.tagStart !==
|
|
1509
|
-
l === null && (l = i),
|
|
1525
|
+
if (s && (r === 33 && u.tagStart !== j || r === 38 && u.anchorStart !== j) || !_n(e, u, n === M) && !vn(e, u)) break;
|
|
1526
|
+
l === null && (l = i), W(e, !0) ? (s = !0, f = p, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1) : f = !1;
|
|
1510
1527
|
}
|
|
1511
|
-
if (f && (f = s || i), o === 1 || n ===
|
|
1512
|
-
let r = n ===
|
|
1513
|
-
if (o === 1) if (f && (
|
|
1528
|
+
if (f && (f = s || i), o === 1 || n === Gt) {
|
|
1529
|
+
let r = n === M || n === Ut ? t : t + 1, i = e.position - e.lineStart;
|
|
1530
|
+
if (o === 1) if (f && (Dn(e, i, u) || On(e, i, r, u)) || En(e, r, u)) c = !0;
|
|
1514
1531
|
else {
|
|
1515
1532
|
let t = e.input.charCodeAt(e.position);
|
|
1516
1533
|
if (l !== null && a && p && !f && t !== 124 && t !== 62) {
|
|
1517
1534
|
var h;
|
|
1518
|
-
let t =
|
|
1519
|
-
|
|
1535
|
+
let t = I(e), n = l.position - l.lineStart;
|
|
1536
|
+
L(e, l), On(e, n, r, sn()) && ((h = e.events[t.eventsLength]) == null ? void 0 : h.type) === T.MAPPING ? c = !0 : L(e, t);
|
|
1520
1537
|
}
|
|
1521
|
-
!c && (d &&
|
|
1538
|
+
!c && (d && Cn(e, r, u) || xn(e, r, u) || Sn(e, r, u) || yn(e, u) || Tn(e, r, n, u)) && (c = !0);
|
|
1522
1539
|
}
|
|
1523
|
-
else o === 0 && (c = f &&
|
|
1540
|
+
else o === 0 && (c = f && Dn(e, i, u));
|
|
1524
1541
|
}
|
|
1525
|
-
return d = d && !c, !c && (u.anchorStart !==
|
|
1542
|
+
return d = d && !c, !c && (u.anchorStart !== j || u.tagStart !== j || d) && (N(e, j, j, u.anchorStart, u.anchorEnd, u.tagStart, u.tagEnd, E.PLAIN), c = !0), e.depth--, c || u.anchorStart !== j || u.tagStart !== j;
|
|
1526
1543
|
}
|
|
1527
|
-
function
|
|
1544
|
+
function kn(e) {
|
|
1528
1545
|
if (e.lineIndent > 0 || e.input.charCodeAt(e.position) !== 37) return !1;
|
|
1529
1546
|
e.position++;
|
|
1530
1547
|
let t = e.position;
|
|
1531
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !
|
|
1548
|
+
for (; e.input.charCodeAt(e.position) !== 0 && !V(e.input.charCodeAt(e.position));) e.position++;
|
|
1532
1549
|
let n = e.input.slice(t, e.position), r = [];
|
|
1533
|
-
for (n.length === 0 &&
|
|
1534
|
-
for (;
|
|
1535
|
-
if (e.input.charCodeAt(e.position) === 35 ||
|
|
1550
|
+
for (n.length === 0 && R(e, "directive name must not be less than one character in length"); e.input.charCodeAt(e.position) !== 0 && !z(e.input.charCodeAt(e.position));) {
|
|
1551
|
+
for (; B(e.input.charCodeAt(e.position));) e.position++;
|
|
1552
|
+
if (e.input.charCodeAt(e.position) === 35 || z(e.input.charCodeAt(e.position)) || e.input.charCodeAt(e.position) === 0) break;
|
|
1536
1553
|
let t = e.position;
|
|
1537
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !
|
|
1554
|
+
for (; e.input.charCodeAt(e.position) !== 0 && !V(e.input.charCodeAt(e.position));) e.position++;
|
|
1538
1555
|
r.push(e.input.slice(t, e.position));
|
|
1539
1556
|
}
|
|
1540
|
-
if (
|
|
1541
|
-
e.directives.some((e) => e.kind === "yaml") &&
|
|
1557
|
+
if (z(e.input.charCodeAt(e.position)) && fn(e), n === "YAML") {
|
|
1558
|
+
e.directives.some((e) => e.kind === "yaml") && R(e, "duplication of %YAML directive"), r.length !== 1 && R(e, "YAML directive accepts exactly one argument");
|
|
1542
1559
|
let t = /^([0-9]+)\.([0-9]+)$/.exec(r[0]);
|
|
1543
|
-
t === null &&
|
|
1560
|
+
t === null && R(e, "ill-formed argument of the YAML directive"), parseInt(t[1], 10) !== 1 && R(e, "unacceptable YAML version of the document"), e.directives.push({
|
|
1544
1561
|
kind: "yaml",
|
|
1545
1562
|
version: r[0]
|
|
1546
1563
|
});
|
|
1547
1564
|
} else if (n === "TAG") {
|
|
1548
|
-
r.length !== 2 &&
|
|
1565
|
+
r.length !== 2 && R(e, "TAG directive accepts exactly two arguments");
|
|
1549
1566
|
let [t, n] = r;
|
|
1550
|
-
|
|
1567
|
+
Jt.test(t) || R(e, "ill-formed tag handle (first argument) of the TAG directive"), Ht.call(e.tagHandlers, t) && R(e, `there is a previously declared suffix for "${t}" tag handle`), $t.test(n) || R(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[t] = n, e.directives.push({
|
|
1551
1568
|
kind: "tag",
|
|
1552
1569
|
handle: t,
|
|
1553
1570
|
prefix: n
|
|
@@ -1555,30 +1572,30 @@ function An(e) {
|
|
|
1555
1572
|
}
|
|
1556
1573
|
return !0;
|
|
1557
1574
|
}
|
|
1558
|
-
function
|
|
1575
|
+
function An(e) {
|
|
1559
1576
|
e.directives = [], e.tagHandlers = Object.create(null);
|
|
1560
1577
|
let t = !1;
|
|
1561
|
-
for (
|
|
1578
|
+
for (W(e, !0); kn(e);) t = !0, W(e, !0);
|
|
1562
1579
|
let n = !1, r = !1, i = !0;
|
|
1563
|
-
if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 &&
|
|
1580
|
+
if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && H(e.input.charCodeAt(e.position + 3))) {
|
|
1564
1581
|
n = !0;
|
|
1565
1582
|
let t = e.line;
|
|
1566
|
-
e.position += 3,
|
|
1567
|
-
} else t &&
|
|
1583
|
+
e.position += 3, W(e, !0), i = e.line > t;
|
|
1584
|
+
} else t && R(e, "directives end mark is expected");
|
|
1568
1585
|
let a = e.events.length;
|
|
1569
|
-
if (!n && e.position === e.lineStart && e.input.charCodeAt(e.position) === 46 &&
|
|
1570
|
-
e.position += 3,
|
|
1586
|
+
if (!n && e.position === e.lineStart && e.input.charCodeAt(e.position) === 46 && G(e)) {
|
|
1587
|
+
e.position += 3, W(e, !0);
|
|
1571
1588
|
return;
|
|
1572
1589
|
}
|
|
1573
|
-
if (
|
|
1590
|
+
if (tn(e, n, !1), q(e, e.lineIndent - 1, Gt, !1, i, i) || F(e), W(e, !0), e.position === e.lineStart && G(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
|
|
1574
1591
|
let t = e.line;
|
|
1575
|
-
e.position += 3,
|
|
1592
|
+
e.position += 3, W(e, !0), e.line === t && e.position < e.length && R(e, "end of the stream or a document separator is expected");
|
|
1576
1593
|
}
|
|
1577
1594
|
let o = e.events[a];
|
|
1578
|
-
(o == null ? void 0 : o.type) ===
|
|
1595
|
+
(o == null ? void 0 : o.type) === T.DOCUMENT && (o.explicitEnd = r), P(e), !r && e.position < e.length && !mn(e) && R(e, "end of the stream or a document separator is expected");
|
|
1579
1596
|
}
|
|
1580
|
-
function
|
|
1581
|
-
let n = e.length, r =
|
|
1597
|
+
function jn(e, t) {
|
|
1598
|
+
let n = e.length, r = x(x(x({}, en), t), {}, {
|
|
1582
1599
|
input: `${e}\0`,
|
|
1583
1600
|
length: n,
|
|
1584
1601
|
position: 0,
|
|
@@ -1591,40 +1608,36 @@ function Mn(e, t) {
|
|
|
1591
1608
|
tagHandlers: Object.create(null),
|
|
1592
1609
|
events: []
|
|
1593
1610
|
}), i = e.indexOf("\0");
|
|
1594
|
-
for (i !== -1 &&
|
|
1611
|
+
for (i !== -1 && w.throwAt(e, i, "null byte is not allowed in input", r.filename); r.position < r.length && (pn(r), W(r, !0), !(r.position >= r.length));) {
|
|
1595
1612
|
let e = r.position;
|
|
1596
|
-
|
|
1613
|
+
An(r), r.position === e && R(r, "can not read a document");
|
|
1597
1614
|
}
|
|
1598
1615
|
return r.events;
|
|
1599
1616
|
}
|
|
1600
1617
|
//#endregion
|
|
1601
1618
|
//#region src/load.ts
|
|
1602
|
-
var
|
|
1603
|
-
function
|
|
1604
|
-
let n =
|
|
1605
|
-
return
|
|
1619
|
+
var Mn = x(x({}, en), kt);
|
|
1620
|
+
function Nn(e, t = {}) {
|
|
1621
|
+
let n = x(x({}, Mn), t), r = String(e), i = Object.keys(en), a = Object.keys(kt);
|
|
1622
|
+
return Vt(jn(r, Ve(n, i)), x(x({}, Ve(n, a)), {}, { source: r }));
|
|
1606
1623
|
}
|
|
1607
|
-
function
|
|
1624
|
+
function Pn(e, t, n) {
|
|
1608
1625
|
let r = null;
|
|
1609
1626
|
typeof t == "function" ? r = t : typeof t == "object" && t && (n = t);
|
|
1610
|
-
let i =
|
|
1627
|
+
let i = Nn(e, n);
|
|
1611
1628
|
if (r === null) return i;
|
|
1612
1629
|
for (let e of i) r(e);
|
|
1613
1630
|
}
|
|
1614
|
-
function
|
|
1615
|
-
let n =
|
|
1616
|
-
if (n.length === 0) throw new
|
|
1631
|
+
function Fn(e, t) {
|
|
1632
|
+
let n = Nn(e, t);
|
|
1633
|
+
if (n.length === 0) throw new w("expected a document, but the input is empty");
|
|
1617
1634
|
if (n.length === 1) return n[0];
|
|
1618
|
-
throw new
|
|
1635
|
+
throw new w("expected a single document in the stream, but found more");
|
|
1619
1636
|
}
|
|
1620
1637
|
//#endregion
|
|
1621
|
-
//#region src/ast/
|
|
1622
|
-
var
|
|
1623
|
-
|
|
1624
|
-
_(this, "tagged", !1), _(this, "flow", !1), _(this, "singleQuoted", !1), _(this, "doubleQuoted", !1), _(this, "literal", !1), _(this, "folded", !1);
|
|
1625
|
-
}
|
|
1626
|
-
}, G = Symbol("INVALID");
|
|
1627
|
-
function Ln(e) {
|
|
1638
|
+
//#region src/ast/from_js.ts
|
|
1639
|
+
var J = Symbol("INVALID");
|
|
1640
|
+
function In(e) {
|
|
1628
1641
|
let t = new Set([
|
|
1629
1642
|
e.defaultScalarTag,
|
|
1630
1643
|
e.defaultSequenceTag,
|
|
@@ -1645,7 +1658,7 @@ function Ln(e) {
|
|
|
1645
1658
|
}))
|
|
1646
1659
|
];
|
|
1647
1660
|
}
|
|
1648
|
-
function
|
|
1661
|
+
function Ln(e, t) {
|
|
1649
1662
|
for (let n = 0, r = e.representTypes.length; n < r; n += 1) {
|
|
1650
1663
|
let { tag: r, implicitTag: i } = e.representTypes[n];
|
|
1651
1664
|
if (r.identify(t)) {
|
|
@@ -1659,103 +1672,97 @@ function Rn(e, t) {
|
|
|
1659
1672
|
}
|
|
1660
1673
|
return null;
|
|
1661
1674
|
}
|
|
1662
|
-
function
|
|
1675
|
+
function Y(e, t) {
|
|
1663
1676
|
if (!e.noRefs && typeof t == "object" && t) {
|
|
1664
1677
|
let n = e.refs.get(t);
|
|
1665
1678
|
if (n) return n.anchor === void 0 && (n.anchor = `ref_${e.refCounter++}`), {
|
|
1666
1679
|
kind: "alias",
|
|
1667
|
-
tag: "",
|
|
1668
|
-
style: new W(),
|
|
1669
1680
|
anchor: n.anchor
|
|
1670
1681
|
};
|
|
1671
1682
|
}
|
|
1672
|
-
let n =
|
|
1683
|
+
let n = Ln(e, t);
|
|
1673
1684
|
if (!n) {
|
|
1674
|
-
if (t === void 0 || e.skipInvalid) return
|
|
1675
|
-
throw new
|
|
1676
|
-
}
|
|
1677
|
-
let { tag: r, tagName: i, implicitTag: a } = n, o = a ? i : jt(i);
|
|
1678
|
-
if (r.nodeKind === "scalar") {
|
|
1679
|
-
let e = new W();
|
|
1680
|
-
return e.tagged = !a, {
|
|
1681
|
-
kind: "scalar",
|
|
1682
|
-
tag: o,
|
|
1683
|
-
style: e,
|
|
1684
|
-
value: r.represent(t)
|
|
1685
|
-
};
|
|
1685
|
+
if (t === void 0 || e.skipInvalid) return J;
|
|
1686
|
+
throw new w(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`);
|
|
1686
1687
|
}
|
|
1688
|
+
let { tag: r, tagName: i, implicitTag: a } = n, o = a ? i : Dt(i);
|
|
1689
|
+
if (r.nodeKind === "scalar") return {
|
|
1690
|
+
kind: "scalar",
|
|
1691
|
+
tag: o,
|
|
1692
|
+
tagged: !a,
|
|
1693
|
+
style: E.PLAIN,
|
|
1694
|
+
value: r.represent(t)
|
|
1695
|
+
};
|
|
1687
1696
|
if (r.nodeKind === "sequence") {
|
|
1688
|
-
let n = r.represent(t), i =
|
|
1689
|
-
i.tagged = !a;
|
|
1690
|
-
let s = {
|
|
1697
|
+
let n = r.represent(t), i = {
|
|
1691
1698
|
kind: "sequence",
|
|
1692
1699
|
tag: o,
|
|
1693
|
-
|
|
1700
|
+
tagged: !a,
|
|
1701
|
+
style: D.BLOCK,
|
|
1694
1702
|
items: []
|
|
1695
1703
|
};
|
|
1696
|
-
e.noRefs || e.refs.set(t,
|
|
1704
|
+
e.noRefs || e.refs.set(t, i);
|
|
1697
1705
|
for (let t = 0, r = n.length; t < r; t += 1) {
|
|
1698
|
-
let r =
|
|
1699
|
-
r ===
|
|
1706
|
+
let r = Y(e, n[t]);
|
|
1707
|
+
r === J && n[t] === void 0 && (r = Y(e, null)), r !== J && i.items.push(r);
|
|
1700
1708
|
}
|
|
1701
|
-
return
|
|
1709
|
+
return i;
|
|
1702
1710
|
}
|
|
1703
|
-
let s = r.represent(t), c =
|
|
1704
|
-
c.tagged = !a;
|
|
1705
|
-
let l = {
|
|
1711
|
+
let s = r.represent(t), c = {
|
|
1706
1712
|
kind: "mapping",
|
|
1707
1713
|
tag: o,
|
|
1708
|
-
|
|
1714
|
+
tagged: !a,
|
|
1715
|
+
style: D.BLOCK,
|
|
1709
1716
|
items: []
|
|
1710
1717
|
};
|
|
1711
|
-
e.noRefs || e.refs.set(t,
|
|
1718
|
+
e.noRefs || e.refs.set(t, c);
|
|
1712
1719
|
for (let [t, n] of s) {
|
|
1713
|
-
let r =
|
|
1714
|
-
if (r ===
|
|
1715
|
-
let i =
|
|
1716
|
-
i !==
|
|
1720
|
+
let r = Y(e, t);
|
|
1721
|
+
if (r === J) continue;
|
|
1722
|
+
let i = Y(e, n);
|
|
1723
|
+
i !== J && c.items.push({
|
|
1717
1724
|
key: r,
|
|
1718
1725
|
value: i
|
|
1719
1726
|
});
|
|
1720
1727
|
}
|
|
1721
|
-
return
|
|
1728
|
+
return c;
|
|
1722
1729
|
}
|
|
1723
|
-
function
|
|
1730
|
+
function Rn(e, t, n = {}) {
|
|
1724
1731
|
var r, i;
|
|
1725
|
-
let a =
|
|
1726
|
-
representTypes:
|
|
1732
|
+
let a = Y({
|
|
1733
|
+
representTypes: In(t),
|
|
1727
1734
|
noRefs: (r = n.noRefs) == null ? !1 : r,
|
|
1728
1735
|
skipInvalid: (i = n.skipInvalid) == null ? !1 : i,
|
|
1729
1736
|
refs: /* @__PURE__ */ new Map(),
|
|
1730
1737
|
refCounter: 0
|
|
1731
1738
|
}, e);
|
|
1732
1739
|
return [{
|
|
1733
|
-
contents: a ===
|
|
1740
|
+
contents: a === J ? null : a,
|
|
1734
1741
|
directives: []
|
|
1735
1742
|
}];
|
|
1736
1743
|
}
|
|
1737
1744
|
//#endregion
|
|
1738
1745
|
//#region src/ast/visit.ts
|
|
1739
|
-
var
|
|
1740
|
-
function
|
|
1746
|
+
var zn = Symbol("visit:break"), Bn = Symbol("visit:skip");
|
|
1747
|
+
function Vn(e, t, n) {
|
|
1741
1748
|
let r = t(e, n);
|
|
1742
|
-
if (r ===
|
|
1743
|
-
if (r ===
|
|
1749
|
+
if (r === zn) return !0;
|
|
1750
|
+
if (r === Bn) return !1;
|
|
1744
1751
|
let i = n.depth + 1;
|
|
1745
1752
|
switch (e.kind) {
|
|
1746
1753
|
case "sequence":
|
|
1747
|
-
for (let n of e.items) if (
|
|
1754
|
+
for (let n of e.items) if (Vn(n, t, {
|
|
1748
1755
|
depth: i,
|
|
1749
1756
|
parent: e,
|
|
1750
1757
|
isKey: !1
|
|
1751
1758
|
})) return !0;
|
|
1752
1759
|
break;
|
|
1753
1760
|
case "mapping":
|
|
1754
|
-
for (let { key: n, value: r } of e.items) if (
|
|
1761
|
+
for (let { key: n, value: r } of e.items) if (Vn(n, t, {
|
|
1755
1762
|
depth: i,
|
|
1756
1763
|
parent: e,
|
|
1757
1764
|
isKey: !0
|
|
1758
|
-
}) ||
|
|
1765
|
+
}) || Vn(r, t, {
|
|
1759
1766
|
depth: i,
|
|
1760
1767
|
parent: e,
|
|
1761
1768
|
isKey: !1
|
|
@@ -1764,148 +1771,136 @@ function Un(e, t, n) {
|
|
|
1764
1771
|
}
|
|
1765
1772
|
return !1;
|
|
1766
1773
|
}
|
|
1767
|
-
function
|
|
1768
|
-
for (let n of e) if (n.contents &&
|
|
1774
|
+
function Hn(e, t) {
|
|
1775
|
+
for (let n of e) if (n.contents && Vn(n.contents, t, {
|
|
1769
1776
|
depth: 0,
|
|
1770
1777
|
parent: null,
|
|
1771
1778
|
isKey: !1
|
|
1772
1779
|
})) return;
|
|
1773
1780
|
}
|
|
1774
1781
|
//#endregion
|
|
1775
|
-
//#region src/ast/
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
quoteFlowKeys: !1,
|
|
1788
|
-
quoteStyle: "single",
|
|
1789
|
-
forceQuotes: !1,
|
|
1790
|
-
tagBeforeAnchor: !1
|
|
1782
|
+
//#region src/ast/styler_defaults.ts
|
|
1783
|
+
function Un(e, t) {
|
|
1784
|
+
return (e & 1 << t) != 0;
|
|
1785
|
+
}
|
|
1786
|
+
var Wn = {
|
|
1787
|
+
applyQuoteFlowKeysOption: Kn,
|
|
1788
|
+
doubleQuoteForInvisibles: qn,
|
|
1789
|
+
doubleQuoteWhitespaceOnly: Jn,
|
|
1790
|
+
applyForceQuotesOption: Yn,
|
|
1791
|
+
tryLongOrMultilineAsBlock: Xn,
|
|
1792
|
+
quoteInvalidPlain: Zn,
|
|
1793
|
+
fallbackToDoubleQuoted: Qn
|
|
1791
1794
|
};
|
|
1792
|
-
function
|
|
1793
|
-
return e.
|
|
1795
|
+
function Gn(e) {
|
|
1796
|
+
return e.presenterOptions.quoteStyle === "single" && Un(e.allowedStylesMask, E.SINGLE_QUOTED) ? E.SINGLE_QUOTED : E.DOUBLE_QUOTED;
|
|
1794
1797
|
}
|
|
1795
|
-
function
|
|
1796
|
-
|
|
1797
|
-
return v(v({}, t), {}, { defaultScalarTagName: t.schema.defaultScalarTag.tagName });
|
|
1798
|
+
function Kn(e) {
|
|
1799
|
+
e.presenterOptions.quoteFlowKeys && (!e.isKey || !e.flowOnly || e.style !== E.PLAIN || (e.style = E.DOUBLE_QUOTED));
|
|
1798
1800
|
}
|
|
1799
|
-
function
|
|
1800
|
-
|
|
1801
|
-
return `\\${n}${"0".repeat(r - t.length)}${t}`;
|
|
1801
|
+
function qn(e) {
|
|
1802
|
+
e.style === E.PLAIN && /[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value) && (e.style = E.DOUBLE_QUOTED);
|
|
1802
1803
|
}
|
|
1803
|
-
function
|
|
1804
|
-
|
|
1805
|
-
for (; r < a;) {
|
|
1806
|
-
let t, o = e.indexOf("\n", r);
|
|
1807
|
-
o === -1 ? (t = e.slice(r), r = a) : (t = e.slice(r, o + 1), r = o + 1), t.length && t !== "\n" && (i += n), i += t;
|
|
1808
|
-
}
|
|
1809
|
-
return i;
|
|
1804
|
+
function Jn(e) {
|
|
1805
|
+
e.style === E.PLAIN && /^\s+$/.test(e.node.value) && (e.style = E.DOUBLE_QUOTED);
|
|
1810
1806
|
}
|
|
1811
|
-
function
|
|
1812
|
-
|
|
1807
|
+
function Yn(e) {
|
|
1808
|
+
e.presenterOptions.forceQuotes && (e.isKey || e.style !== E.PLAIN || e.node.tag === e.presenterOptions.schema.defaultScalarTag.tagName && (e.style = e.node.value.includes("\n") ? E.DOUBLE_QUOTED : Gn(e)));
|
|
1813
1809
|
}
|
|
1814
|
-
function
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
}
|
|
1810
|
+
function Xn(e) {
|
|
1811
|
+
if (e.style !== E.PLAIN || e.isKey) return;
|
|
1812
|
+
let t = e.node.value, n = t.indexOf("\n") !== -1;
|
|
1813
|
+
if (!Un(e.allowedStylesMask, E.LITERAL_BLOCK)) {
|
|
1814
|
+
n && (e.style = E.DOUBLE_QUOTED);
|
|
1815
|
+
return;
|
|
1816
|
+
}
|
|
1817
|
+
let r = e.presenterOptions.lineWidth;
|
|
1818
|
+
if (r === -1) {
|
|
1819
|
+
n && (e.style = E.LITERAL_BLOCK);
|
|
1820
|
+
return;
|
|
1821
|
+
}
|
|
1822
|
+
let i = Math.max(Math.min(r, 40), r - e.shiftOfContent), a = 0, o = !1;
|
|
1823
|
+
for (; a <= t.length;) {
|
|
1824
|
+
let e = t.length, n = t.indexOf("\n", a);
|
|
1825
|
+
n !== -1 && (e = n);
|
|
1826
|
+
let r = t.slice(a, e);
|
|
1827
|
+
if (r.length > i && r[0] !== " " && / [^ \t]/.test(r) && (o = !0), n === -1) break;
|
|
1828
|
+
a = n + 1;
|
|
1829
|
+
}
|
|
1830
|
+
o ? e.style = E.FOLDED_BLOCK : n && (e.style = E.LITERAL_BLOCK);
|
|
1821
1831
|
}
|
|
1822
|
-
function
|
|
1823
|
-
|
|
1832
|
+
function Zn(e) {
|
|
1833
|
+
e.style === E.PLAIN && !Un(e.allowedStylesMask, E.PLAIN) && (e.style = Gn(e));
|
|
1824
1834
|
}
|
|
1825
|
-
function
|
|
1826
|
-
|
|
1827
|
-
if (t !== rr && t !== 46 || e.charCodeAt(1) !== t || e.charCodeAt(2) !== t) return !1;
|
|
1828
|
-
if (e.length === 3) return !0;
|
|
1829
|
-
let n = e.charCodeAt(3);
|
|
1830
|
-
return J(n) || n === qn || n === K;
|
|
1835
|
+
function Qn(e) {
|
|
1836
|
+
Un(e.allowedStylesMask, e.style) || (e.style = E.DOUBLE_QUOTED);
|
|
1831
1837
|
}
|
|
1832
|
-
|
|
1833
|
-
|
|
1838
|
+
//#endregion
|
|
1839
|
+
//#region src/ast/scalar_styler.ts
|
|
1840
|
+
function X(e, t) {
|
|
1841
|
+
return e | 1 << t;
|
|
1842
|
+
}
|
|
1843
|
+
var $n = "[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]", er = "[\\n\\r]", tr = "\\uFEFF", nr = "[ \\t]", rr = `(?:(?!(?:${er}|${tr}))${$n})`, ir = `(?:(?!${nr})${rr})`, ar = "[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]", or = "[-?:,\\[\\]{}#&*!|>'\"%@`]", sr = "[,\\[\\]{}]", cr = ir, lr = `(?:(?!${sr})${ir})`, ur = `(?:(?:(?!${or})${ir})|[?:-](?=${cr}))`, dr = `(?:(?:(?!${or})${ir})|[?:-](?=${lr}))`, fr = `(?:(?:(?![:#])${cr})|:(?=${cr}))#*`, pr = `(?:(?:(?![:#])${lr})|:(?=${lr}))#*`, mr = `(?:${nr}*${fr})*`, hr = `(?:${nr}*${pr})*`, gr = `${ur}#*${mr}`, _r = `${dr}#*${hr}`, vr = gr, yr = _r, br = `\\n+${fr}${mr}`, xr = `\\n+${pr}${hr}`, Sr = `${gr}(?:${br})*`, Cr = `${_r}(?:${xr})*`, wr = RegExp(`^(?:${Sr})$`, "u"), Tr = RegExp(`^(?:${Cr})$`, "u"), Er = RegExp(`^(?:${vr})$`, "u"), Dr = RegExp(`^(?:${yr})$`, "u"), Or = RegExp(`^(?:${ar})*$`, "u"), kr = RegExp(`^(?:${ar}|\\n)*$`, "u"), Ar = RegExp(`^(?:${rr}|\\n)*$`, "u"), jr = /^(?:---|\.\.\.)(?=$|[ \t\n\r])/, Mr = /^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;
|
|
1844
|
+
function Nr(e) {
|
|
1845
|
+
let t = e.node.value;
|
|
1846
|
+
if (t !== "") {
|
|
1847
|
+
if (!(e.isKey ? e.flowOnly ? Dr : Er : e.flowOnly ? Tr : wr).test(t) || e.shiftOfFirstLine === 0 && jr.test(t)) return !1;
|
|
1848
|
+
if (e.shiftOfContent === 0) {
|
|
1849
|
+
let e = t.indexOf("\n");
|
|
1850
|
+
if (e !== -1) {
|
|
1851
|
+
let n = t.slice(e + 1);
|
|
1852
|
+
if (Mr.test(n)) return !1;
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
let n = e.presenterOptions.schema.resolveImplicitScalarTag(t).tag.tagName;
|
|
1857
|
+
return !(!e.node.tagged && n !== e.node.tag || !e.node.tagged && t === "=" && n === e.presenterOptions.schema.defaultScalarTag.tagName);
|
|
1834
1858
|
}
|
|
1835
|
-
function
|
|
1836
|
-
|
|
1859
|
+
function Pr(e) {
|
|
1860
|
+
let t = e.node.value;
|
|
1861
|
+
if (!(e.isKey ? Or : kr).test(t) || /[ \t]\n|\n[ \t]/.test(t)) return !1;
|
|
1862
|
+
if (!e.isKey && e.shiftOfContent === 0) {
|
|
1863
|
+
let e = t.indexOf("\n");
|
|
1864
|
+
if (e !== -1 && Mr.test(t.slice(e + 1))) return !1;
|
|
1865
|
+
}
|
|
1866
|
+
return !0;
|
|
1837
1867
|
}
|
|
1838
|
-
function
|
|
1839
|
-
|
|
1840
|
-
|
|
1868
|
+
function Fr(e) {
|
|
1869
|
+
if (e.flowOnly || !Ar.test(e.node.value)) return !1;
|
|
1870
|
+
let t = e.shiftOfContent - e.shiftOfParent;
|
|
1871
|
+
return !(t < 1 || t > 9 && /^\n* /.test(e.node.value) || e.shiftOfContent === 0 && Mr.test(e.node.value));
|
|
1841
1872
|
}
|
|
1842
|
-
function
|
|
1843
|
-
|
|
1873
|
+
function Ir(e) {
|
|
1874
|
+
let t = X(0, E.DOUBLE_QUOTED);
|
|
1875
|
+
Nr(e) && (t = X(t, E.PLAIN)), Pr(e) && (t = X(t, E.SINGLE_QUOTED)), Fr(e) && (t = X(X(t, E.LITERAL_BLOCK), E.FOLDED_BLOCK)), e.allowedStylesMask = t;
|
|
1844
1876
|
}
|
|
1845
|
-
function
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1877
|
+
function Lr(e) {
|
|
1878
|
+
switch (e.style) {
|
|
1879
|
+
case E.PLAIN: return Rr(e);
|
|
1880
|
+
case E.SINGLE_QUOTED: return zr(e);
|
|
1881
|
+
case E.LITERAL_BLOCK: return Br(e);
|
|
1882
|
+
case E.FOLDED_BLOCK: return Vr(e);
|
|
1883
|
+
case E.DOUBLE_QUOTED: return Hr(e);
|
|
1851
1884
|
}
|
|
1852
|
-
return !1;
|
|
1853
1885
|
}
|
|
1854
|
-
function
|
|
1855
|
-
return
|
|
1886
|
+
function Rr(e) {
|
|
1887
|
+
return Ur(e.node.value, e.shiftOfContent);
|
|
1856
1888
|
}
|
|
1857
|
-
function
|
|
1858
|
-
|
|
1859
|
-
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
1889
|
+
function zr(e) {
|
|
1890
|
+
return `'${Ur(e.node.value, e.shiftOfContent).replace(/'/g, "''")}'`;
|
|
1860
1891
|
}
|
|
1861
|
-
function
|
|
1862
|
-
|
|
1892
|
+
function Br(e) {
|
|
1893
|
+
let t = e.node.value;
|
|
1894
|
+
return "|" + Kr(t, e.shiftOfParent, e.shiftOfContent) + qr(Wr(t, e.shiftOfContent));
|
|
1863
1895
|
}
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
for (c = 0; c < t.length; l >= 65536 ? c += 2 : c++) {
|
|
1873
|
-
if (l = Y(t, c), l === K) d = !0, p && (f = f || c - m - 1 > s && !Z(t[m + 1]), m = c);
|
|
1874
|
-
else if (!Cr(l)) return X;
|
|
1875
|
-
h = h && Tr(l, u, a), u = l;
|
|
1876
|
-
}
|
|
1877
|
-
f = f || p && c - m - 1 > s && !Z(t[m + 1]);
|
|
1878
|
-
}
|
|
1879
|
-
return !d && !f ? h && !i ? Ar : e.quoteStyle === "double" ? X : jr : o > 9 && kr(t) ? X : f ? Nr : Mr;
|
|
1880
|
-
}
|
|
1881
|
-
function Fr(e, t, n) {
|
|
1882
|
-
let { indent: r, blockIndent: i, lineWidth: a } = n;
|
|
1883
|
-
switch (t) {
|
|
1884
|
-
case Ar: return Rr(e, r);
|
|
1885
|
-
case jr: return `'${Rr(e, r).replace(/'/g, "''")}'`;
|
|
1886
|
-
case Mr: return "|" + Lr(e, i) + zr(yr(e, r));
|
|
1887
|
-
case Nr: return ">" + Lr(e, i) + zr(yr(Br(e, a), r));
|
|
1888
|
-
case X: return `"${Hr(e)}"`;
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
function Ir(e, t, n, r, i) {
|
|
1892
|
-
let a = r || !i;
|
|
1893
|
-
if (t.style.singleQuoted) return jr;
|
|
1894
|
-
if (t.style.doubleQuoted) return X;
|
|
1895
|
-
if (!a) {
|
|
1896
|
-
if (t.style.literal) return Mr;
|
|
1897
|
-
if (t.style.folded) return Nr;
|
|
1898
|
-
}
|
|
1899
|
-
let o = t.value;
|
|
1900
|
-
if (o.length === 0) return t.style.tagged || e.schema.resolveImplicitScalarTag(o).tag.tagName === t.tag ? Ar : e.quoteStyle === "double" ? X : jr;
|
|
1901
|
-
let s = Pr(e, o, n, a, e.forceQuotes && !r, i);
|
|
1902
|
-
return s === Ar && !t.style.tagged && e.schema.resolveImplicitScalarTag(o).tag.tagName !== t.tag ? e.quoteStyle === "double" ? X : jr : s;
|
|
1903
|
-
}
|
|
1904
|
-
function Lr(e, t) {
|
|
1905
|
-
let n = kr(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
1906
|
-
return `${n}${r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-"}\n`;
|
|
1907
|
-
}
|
|
1908
|
-
function Rr(e, t) {
|
|
1896
|
+
function Vr(e) {
|
|
1897
|
+
let t = e.node.value, n = e.presenterOptions.lineWidth, r = Infinity;
|
|
1898
|
+
return n !== -1 && (r = Math.max(Math.min(n, 40), n - e.shiftOfContent)), ">" + Kr(t, e.shiftOfParent, e.shiftOfContent) + qr(Wr(Xr(t, r), e.shiftOfContent));
|
|
1899
|
+
}
|
|
1900
|
+
function Hr(e) {
|
|
1901
|
+
return `"${$r(e.node.value)}"`;
|
|
1902
|
+
}
|
|
1903
|
+
function Ur(e, t) {
|
|
1909
1904
|
let n = e.indexOf("\n");
|
|
1910
1905
|
if (n === -1) return e;
|
|
1911
1906
|
let r = " ".repeat(t), i = e.slice(0, n), a = /(\n+)([^\n]*)/g;
|
|
@@ -1917,153 +1912,205 @@ function Rr(e, t) {
|
|
|
1917
1912
|
}
|
|
1918
1913
|
return i;
|
|
1919
1914
|
}
|
|
1920
|
-
function
|
|
1915
|
+
function Wr(e, t) {
|
|
1916
|
+
let n = " ".repeat(t), r = 0, i = "", a = e.length;
|
|
1917
|
+
for (; r < a;) {
|
|
1918
|
+
let t, o = e.indexOf("\n", r);
|
|
1919
|
+
o === -1 ? (t = e.slice(r), r = a) : (t = e.slice(r, o + 1), r = o + 1), t.length && t !== "\n" && (i += n), i += t;
|
|
1920
|
+
}
|
|
1921
|
+
return i;
|
|
1922
|
+
}
|
|
1923
|
+
function Gr(e) {
|
|
1924
|
+
return /^\n* /.test(e);
|
|
1925
|
+
}
|
|
1926
|
+
function Kr(e, t, n) {
|
|
1927
|
+
let r = Gr(e) ? String(n - t) : "", i = e[e.length - 1] === "\n";
|
|
1928
|
+
return `${r}${i && (e[e.length - 2] === "\n" || e === "\n") ? "+" : i ? "" : "-"}\n`;
|
|
1929
|
+
}
|
|
1930
|
+
function qr(e) {
|
|
1921
1931
|
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
1922
1932
|
}
|
|
1923
|
-
function
|
|
1933
|
+
function Jr(e) {
|
|
1924
1934
|
return e === " " || e === " ";
|
|
1925
1935
|
}
|
|
1926
|
-
function
|
|
1936
|
+
function Yr(e, t) {
|
|
1937
|
+
if (e === "" || Jr(e[0])) return e;
|
|
1938
|
+
let n = / [^ \t]/g, r, i = 0, a, o = 0, s = 0, c = "";
|
|
1939
|
+
for (; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += `\n${e.slice(i, a)}`, i = a + 1), o = s;
|
|
1940
|
+
return c += "\n", e.length - i > t && o > i ? c += `${e.slice(i, o)}\n${e.slice(o + 1)}` : c += e.slice(i), c.slice(1);
|
|
1941
|
+
}
|
|
1942
|
+
function Xr(e, t) {
|
|
1927
1943
|
let n = /(\n+)([^\n]*)/g, r = e.indexOf("\n");
|
|
1928
1944
|
r === -1 && (r = e.length), n.lastIndex = r;
|
|
1929
|
-
let i =
|
|
1945
|
+
let i = Yr(e.slice(0, r), t), a = e[0] === "\n" || Jr(e[0]), o, s;
|
|
1930
1946
|
for (; s = n.exec(e);) {
|
|
1931
1947
|
let e = s[1], n = s[2];
|
|
1932
|
-
o = n !== "" &&
|
|
1948
|
+
o = n !== "" && Jr(n[0]), i += e + (!a && !o && n !== "" ? "\n" : "") + Yr(n, t), a = o;
|
|
1933
1949
|
}
|
|
1934
1950
|
return i;
|
|
1935
1951
|
}
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1952
|
+
var Zr = /["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;
|
|
1953
|
+
function Qr(e) {
|
|
1954
|
+
switch (e) {
|
|
1955
|
+
case "\0": return "\\0";
|
|
1956
|
+
case "\x07": return "\\a";
|
|
1957
|
+
case "\b": return "\\b";
|
|
1958
|
+
case " ": return "\\t";
|
|
1959
|
+
case "\n": return "\\n";
|
|
1960
|
+
case "\v": return "\\v";
|
|
1961
|
+
case "\f": return "\\f";
|
|
1962
|
+
case "\r": return "\\r";
|
|
1963
|
+
case "\x1B": return "\\e";
|
|
1964
|
+
case "\"": return "\\\"";
|
|
1965
|
+
case "\\": return "\\\\";
|
|
1966
|
+
case "
": return "\\N";
|
|
1967
|
+
case "\xA0": return "\\_";
|
|
1968
|
+
case "\u2028": return "\\L";
|
|
1969
|
+
case "\u2029": return "\\P";
|
|
1970
|
+
}
|
|
1971
|
+
let t = e.charCodeAt(0), n = t.toString(16).toUpperCase();
|
|
1972
|
+
return t <= 255 ? `\\x${"0".repeat(2 - n.length)}${n}` : `\\u${"0".repeat(4 - n.length)}${n}`;
|
|
1973
|
+
}
|
|
1974
|
+
function $r(e) {
|
|
1975
|
+
return e.replace(Zr, Qr);
|
|
1941
1976
|
}
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1977
|
+
//#endregion
|
|
1978
|
+
//#region src/ast/presenter.ts
|
|
1979
|
+
var Z = 10, ei = {
|
|
1980
|
+
indent: 2,
|
|
1981
|
+
seqNoIndent: !1,
|
|
1982
|
+
seqInlineFirst: !0,
|
|
1983
|
+
lineWidth: 80,
|
|
1984
|
+
flowBracketPadding: !1,
|
|
1985
|
+
flowSkipCommaSpace: !1,
|
|
1986
|
+
flowSkipColonSpace: !1,
|
|
1987
|
+
quoteFlowKeys: !1,
|
|
1988
|
+
quoteStyle: "single",
|
|
1989
|
+
forceQuotes: !1,
|
|
1990
|
+
scalarStyleRules: Object.keys(Wn).map((e) => Reflect.get(Wn, e)),
|
|
1991
|
+
tagBeforeAnchor: !1
|
|
1992
|
+
};
|
|
1993
|
+
function ti(e) {
|
|
1994
|
+
return e.tagged ? e.tag : Dt(e.tag);
|
|
1995
|
+
}
|
|
1996
|
+
function ni(e) {
|
|
1997
|
+
let t = x(x({}, ei), e);
|
|
1998
|
+
return t.flowSkipColonSpace && (t.quoteFlowKeys = !0), x(x({}, t), {}, {
|
|
1999
|
+
defaultScalarTagName: t.schema.defaultScalarTag.tagName,
|
|
2000
|
+
openEnded: !1
|
|
2001
|
+
});
|
|
2002
|
+
}
|
|
2003
|
+
function ri(e, t) {
|
|
2004
|
+
return `\n${" ".repeat(e.indent * t)}`;
|
|
2005
|
+
}
|
|
2006
|
+
function ii(e, t, n, r, i, a) {
|
|
2007
|
+
return {
|
|
2008
|
+
node: t,
|
|
2009
|
+
parent: n,
|
|
2010
|
+
level: r,
|
|
2011
|
+
isKey: i,
|
|
2012
|
+
flowOnly: a,
|
|
2013
|
+
shiftOfParent: r === 0 ? -1 : e.indent * (r - 1),
|
|
2014
|
+
shiftOfContent: e.indent * Math.max(1, r),
|
|
2015
|
+
shiftOfFirstLine: r === 0 ? 0 : e.indent * r,
|
|
2016
|
+
presenterOptions: e,
|
|
2017
|
+
allowedStylesMask: 0,
|
|
2018
|
+
style: t.style
|
|
2019
|
+
};
|
|
1958
2020
|
}
|
|
1959
|
-
function
|
|
2021
|
+
function ai(e, t, n) {
|
|
1960
2022
|
let r = "";
|
|
1961
2023
|
for (let i = 0, a = n.items.length; i < a; i += 1) {
|
|
1962
|
-
let a = Q(e, t, n.items[i], {});
|
|
1963
|
-
|
|
2024
|
+
let a = Q(e, t, n.items[i], n, {}).text;
|
|
2025
|
+
i > 0 && (r += `,${e.flowSkipCommaSpace ? "" : " "}`), r += a;
|
|
1964
2026
|
}
|
|
1965
|
-
let i = e.flowBracketPadding &&
|
|
2027
|
+
let i = e.flowBracketPadding && n.items.length > 0 ? " " : "";
|
|
1966
2028
|
return `[${i}${r}${i}]`;
|
|
1967
2029
|
}
|
|
1968
|
-
function
|
|
2030
|
+
function oi(e, t, n, r) {
|
|
1969
2031
|
let i = "";
|
|
1970
2032
|
for (let a = 0, o = n.items.length; a < o; a += 1) {
|
|
1971
|
-
let o = Q(e, t + 1, n.items[a], {
|
|
2033
|
+
let o = Q(e, t + 1, n.items[a], n, {
|
|
1972
2034
|
block: !0,
|
|
1973
2035
|
compact: e.seqInlineFirst,
|
|
1974
2036
|
isblockseq: !0
|
|
1975
|
-
});
|
|
1976
|
-
(!r || i !== "") && (i +=
|
|
2037
|
+
}).text;
|
|
2038
|
+
(!r || i !== "") && (i += ri(e, t)), o === "" || Z === o.charCodeAt(0) ? i += "-" : i += "- ", i += o;
|
|
1977
2039
|
}
|
|
1978
2040
|
return i;
|
|
1979
2041
|
}
|
|
1980
|
-
function
|
|
1981
|
-
let r = ""
|
|
1982
|
-
for (let { key:
|
|
1983
|
-
let
|
|
1984
|
-
r !== "" && (
|
|
1985
|
-
let
|
|
1986
|
-
|
|
1987
|
-
let c = Q(e, t, a, {}), l = e.flowSkipColonSpace || c === "" ? "" : " ";
|
|
1988
|
-
i += `${o}${e.quoteFlowKeys && !s ? "\"" : ""}:${l}${c}`, r += i;
|
|
1989
|
-
}
|
|
1990
|
-
let a = e.flowBracketPadding && r !== "" ? " " : "";
|
|
1991
|
-
return `{${a}${r}${a}}`;
|
|
1992
|
-
}
|
|
1993
|
-
function Kr(e) {
|
|
1994
|
-
return e.kind === "scalar" ? e.value : e;
|
|
1995
|
-
}
|
|
1996
|
-
function qr(e, t) {
|
|
1997
|
-
if (!e.sortKeys) return t;
|
|
1998
|
-
let n = t.slice();
|
|
1999
|
-
if (e.sortKeys === !0) n.sort((e, t) => {
|
|
2000
|
-
let n = Kr(e.key), r = Kr(t.key);
|
|
2001
|
-
return n < r ? -1 : +(n > r);
|
|
2002
|
-
});
|
|
2003
|
-
else {
|
|
2004
|
-
let t = e.sortKeys;
|
|
2005
|
-
n.sort((e, n) => t(Kr(e.key), Kr(n.key)));
|
|
2042
|
+
function si(e, t, n) {
|
|
2043
|
+
let r = "";
|
|
2044
|
+
for (let { key: i, value: a } of n.items) {
|
|
2045
|
+
let o = "";
|
|
2046
|
+
r !== "" && (o += `,${e.flowSkipCommaSpace ? "" : " "}`);
|
|
2047
|
+
let s = Q(e, t, i, n, { iskey: !0 }), c = s.text, l = Q(e, t, a, n, {}).text, u = e.flowSkipColonSpace || l === "" ? "" : " ", d = i.kind === "scalar" && s.noBody && (i.tagged || i.anchor !== void 0), f = i.kind === "alias" || d ? " " : "";
|
|
2048
|
+
o += `${c}${f}:${u}${l}`, r += o;
|
|
2006
2049
|
}
|
|
2007
|
-
|
|
2050
|
+
let i = e.flowBracketPadding && r !== "" ? " " : "";
|
|
2051
|
+
return `{${i}${r}${i}}`;
|
|
2008
2052
|
}
|
|
2009
|
-
function
|
|
2010
|
-
let i = ""
|
|
2011
|
-
for (let
|
|
2053
|
+
function ci(e, t, n, r) {
|
|
2054
|
+
let i = "";
|
|
2055
|
+
for (let a = 0, o = n.items.length; a < o; a += 1) {
|
|
2012
2056
|
let o = "";
|
|
2013
|
-
(!r || i !== "") && (o +=
|
|
2014
|
-
let { key: s, value: c } = a
|
|
2057
|
+
(!r || i !== "") && (o += ri(e, t));
|
|
2058
|
+
let { key: s, value: c } = n.items[a], l = (s.kind === "mapping" || s.kind === "sequence") && s.style === D.BLOCK && s.items.length !== 0 || s.kind === "scalar" && (s.style === E.LITERAL_BLOCK || s.style === E.FOLDED_BLOCK), u = l ? Q(e, t + 1, s, n, {
|
|
2015
2059
|
block: !0,
|
|
2016
2060
|
compact: !0,
|
|
2017
|
-
isblockseq: !
|
|
2018
|
-
}) : Q(e, t + 1, s, {
|
|
2061
|
+
isblockseq: !li(e, s, t + 1)
|
|
2062
|
+
}) : Q(e, t + 1, s, n, {
|
|
2019
2063
|
block: !0,
|
|
2020
2064
|
compact: !0,
|
|
2021
2065
|
iskey: !0
|
|
2022
|
-
}), d = s.kind === "scalar" && s.value.indexOf("\n") !== -1,
|
|
2023
|
-
|
|
2024
|
-
let
|
|
2066
|
+
}), d = u.text, f = s.kind === "scalar" && s.value.indexOf("\n") !== -1, p = d.length > 1024 && /^[\s\S]{1025}/u.test(d), m = l || f || p;
|
|
2067
|
+
m && (d && Z === d.charCodeAt(0) ? o += "?" : o += "? "), o += d, m && (o += ri(e, t));
|
|
2068
|
+
let h = Q(e, t + 1, c, n, {
|
|
2025
2069
|
block: !0,
|
|
2026
|
-
compact:
|
|
2027
|
-
isblockseq:
|
|
2028
|
-
}),
|
|
2029
|
-
|
|
2070
|
+
compact: m,
|
|
2071
|
+
isblockseq: m && !li(e, c, t + 1)
|
|
2072
|
+
}).text, ee = s.kind === "scalar" && u.noBody && (s.tagged || s.anchor !== void 0), te = !m && (s.kind === "alias" || ee) ? " " : "";
|
|
2073
|
+
h === "" || Z === h.charCodeAt(0) ? o += `${te}:` : o += `${te}: `, o += h, i += o;
|
|
2030
2074
|
}
|
|
2031
2075
|
return i;
|
|
2032
2076
|
}
|
|
2033
|
-
function
|
|
2034
|
-
return t.
|
|
2035
|
-
}
|
|
2036
|
-
function Q(e, t, n, r) {
|
|
2037
|
-
var
|
|
2038
|
-
if (n.kind === "alias") return
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2077
|
+
function li(e, t, n) {
|
|
2078
|
+
return t.kind === "alias" ? !0 : t.tagged || t.anchor !== void 0 || e.indent < 2 && n > 0;
|
|
2079
|
+
}
|
|
2080
|
+
function Q(e, t, n, r, i) {
|
|
2081
|
+
var a;
|
|
2082
|
+
if (n.kind === "alias") return e.openEnded = !1, {
|
|
2083
|
+
text: `*${n.anchor}`,
|
|
2084
|
+
noBody: !1
|
|
2085
|
+
};
|
|
2086
|
+
let { block: o = !1, iskey: s = !1, isblockseq: c = !1 } = i, l = (a = i.compact) == null ? !1 : a, u = n.anchor !== void 0;
|
|
2087
|
+
li(e, n, t) && (l = !1);
|
|
2088
|
+
let d, f = n.tagged, p = o && (n.kind === "mapping" || n.kind === "sequence") && n.style === D.BLOCK && n.items.length !== 0;
|
|
2089
|
+
if (n.kind === "mapping") d = p ? ci(e, t, n, l) : si(e, t, n);
|
|
2090
|
+
else if (n.kind === "sequence") d = p ? e.seqNoIndent && !c && t > 0 ? oi(e, t - 1, n, l) : oi(e, t, n, l) : ai(e, t, n);
|
|
2044
2091
|
else {
|
|
2045
|
-
let
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2092
|
+
let i = ii(e, n, r, t, s, !o);
|
|
2093
|
+
Ir(i);
|
|
2094
|
+
for (let t of e.scalarStyleRules) t(i);
|
|
2095
|
+
d = Lr(i), e.openEnded = (i.style === E.LITERAL_BLOCK || i.style === E.FOLDED_BLOCK) && (n.value === "\n" || n.value.endsWith("\n\n")), f = n.tagged || d === "" && i.flowOnly && (r == null ? void 0 : r.kind) === "sequence" && !u || i.style !== E.PLAIN && n.tag !== e.defaultScalarTagName;
|
|
2096
|
+
}
|
|
2097
|
+
(n.kind === "mapping" || n.kind === "sequence") && !p && (e.openEnded = !1), p && l && t > 0 && e.indent > 2 && (d = `${" ".repeat(e.indent - 2)}${d}`);
|
|
2098
|
+
let m = d === "", h = d;
|
|
2099
|
+
if (f || u) {
|
|
2100
|
+
let t = [], r = f ? ti(n) : null, i = u ? `&${n.anchor}` : null;
|
|
2050
2101
|
e.tagBeforeAnchor ? (r !== null && t.push(r), i !== null && t.push(i)) : (i !== null && t.push(i), r !== null && t.push(r));
|
|
2051
|
-
let a =
|
|
2052
|
-
|
|
2102
|
+
let a = d === "" || d.charCodeAt(0) === Z ? "" : " ";
|
|
2103
|
+
h = `${t.join(" ")}${a}${d}`;
|
|
2053
2104
|
}
|
|
2054
|
-
return
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2105
|
+
return {
|
|
2106
|
+
text: h,
|
|
2107
|
+
noBody: m
|
|
2108
|
+
};
|
|
2058
2109
|
}
|
|
2059
|
-
function
|
|
2060
|
-
|
|
2061
|
-
for (; (t.kind === "sequence" || t.kind === "mapping") && !t.style.flow && t.items.length !== 0;) t = t.kind === "sequence" ? t.items[t.items.length - 1] : t.items[t.items.length - 1].value;
|
|
2062
|
-
if (t.kind !== "scalar" || !(t.style.literal || t.style.folded)) return !1;
|
|
2063
|
-
let { value: n } = t;
|
|
2064
|
-
return n.endsWith("\n\n") || n === "\n";
|
|
2110
|
+
function ui(e) {
|
|
2111
|
+
return (e.kind === "sequence" || e.kind === "mapping") && e.style === D.BLOCK && e.items.length !== 0 && !e.tagged && e.anchor === void 0;
|
|
2065
2112
|
}
|
|
2066
|
-
function
|
|
2113
|
+
function di(e) {
|
|
2067
2114
|
let t = "";
|
|
2068
2115
|
for (let n of e.directives) {
|
|
2069
2116
|
if (n.kind === "yaml") {
|
|
@@ -2075,98 +2122,96 @@ function Qr(e) {
|
|
|
2075
2122
|
}
|
|
2076
2123
|
return t;
|
|
2077
2124
|
}
|
|
2078
|
-
function
|
|
2079
|
-
let n =
|
|
2125
|
+
function fi(e, t) {
|
|
2126
|
+
let n = ni(t), r = "", i = !1;
|
|
2080
2127
|
for (let t = 0; t < e.length; t += 1) {
|
|
2081
|
-
let a = e[t]
|
|
2128
|
+
let a = e[t];
|
|
2129
|
+
n.openEnded = !1;
|
|
2130
|
+
let o = di(a), s = o !== "", c = a.explicitStart || s || t > 0 && !i;
|
|
2082
2131
|
if (r += o, a.contents === null) c && (r += "---\n");
|
|
2083
2132
|
else if (c) {
|
|
2084
|
-
let e = Q(n, 0, a.contents, {
|
|
2133
|
+
let e = Q(n, 0, a.contents, null, {
|
|
2085
2134
|
block: !0,
|
|
2086
2135
|
compact: !0
|
|
2087
|
-
}), t = e === "" ? "" : s ||
|
|
2136
|
+
}).text, t = e === "" ? "" : s || ui(a.contents) ? "\n" : " ";
|
|
2088
2137
|
r += `---${t}${e}\n`;
|
|
2089
|
-
} else r += Q(n, 0, a.contents, {
|
|
2138
|
+
} else r += Q(n, 0, a.contents, null, {
|
|
2090
2139
|
block: !0,
|
|
2091
2140
|
compact: !0
|
|
2092
|
-
}) + "\n";
|
|
2093
|
-
i = a.explicitEnd ||
|
|
2141
|
+
}).text + "\n";
|
|
2142
|
+
i = a.explicitEnd || n.openEnded, i && (r += "...\n");
|
|
2094
2143
|
}
|
|
2095
2144
|
return r;
|
|
2096
2145
|
}
|
|
2097
2146
|
//#endregion
|
|
2098
2147
|
//#region src/dump.ts
|
|
2099
|
-
var
|
|
2100
|
-
schema:
|
|
2148
|
+
var pi = x(x({}, ei), {}, {
|
|
2149
|
+
schema: tt,
|
|
2101
2150
|
skipInvalid: !1,
|
|
2102
2151
|
noRefs: !1,
|
|
2103
2152
|
flowLevel: -1,
|
|
2153
|
+
sortKeys: !1,
|
|
2104
2154
|
transform: () => {}
|
|
2105
2155
|
});
|
|
2106
|
-
function
|
|
2107
|
-
let n =
|
|
2156
|
+
function mi(e, t) {
|
|
2157
|
+
let n = String(e), r = String(t);
|
|
2158
|
+
return n < r ? -1 : +(n > r);
|
|
2159
|
+
}
|
|
2160
|
+
function hi(e, t = {}) {
|
|
2161
|
+
let n = x(x({}, pi), t), r = Rn(e, n.schema, {
|
|
2108
2162
|
noRefs: n.noRefs,
|
|
2109
2163
|
skipInvalid: n.skipInvalid
|
|
2110
2164
|
});
|
|
2111
|
-
|
|
2112
|
-
if (!(t.depth < n.flowLevel)) return e.
|
|
2113
|
-
}), n.
|
|
2165
|
+
if (n.flowLevel >= 0 && Hn(r, (e, t) => {
|
|
2166
|
+
if (!(t.depth < n.flowLevel)) return (e.kind === "sequence" || e.kind === "mapping") && (e.style = D.FLOW), Bn;
|
|
2167
|
+
}), n.sortKeys) {
|
|
2168
|
+
let e = n.sortKeys === !0 ? mi : n.sortKeys;
|
|
2169
|
+
Hn(r, (t) => {
|
|
2170
|
+
t.kind === "mapping" && t.items.sort((t, n) => e(t.key.kind === "scalar" ? t.key.value : "", n.key.kind === "scalar" ? n.key.value : ""));
|
|
2171
|
+
});
|
|
2172
|
+
}
|
|
2173
|
+
return n.transform(r), fi(r, x(x({}, Ve(n, Object.keys(ei))), {}, { schema: n.schema }));
|
|
2114
2174
|
}
|
|
2115
2175
|
//#endregion
|
|
2116
2176
|
//#region src/ast/from_events.ts
|
|
2117
2177
|
var $ = -1;
|
|
2118
|
-
function
|
|
2178
|
+
function gi(e) {
|
|
2119
2179
|
return "tagStart" in e && e.tagStart !== $ ? e.tagStart : "anchorStart" in e && e.anchorStart !== $ ? e.anchorStart : "valueStart" in e && e.valueStart !== $ ? e.valueStart : "start" in e ? e.start : 0;
|
|
2120
2180
|
}
|
|
2121
|
-
function
|
|
2181
|
+
function _i(e, t) {
|
|
2122
2182
|
return t.tagStart === $ ? "" : e.source.slice(t.tagStart, t.tagEnd);
|
|
2123
2183
|
}
|
|
2124
|
-
function
|
|
2184
|
+
function vi(e, t) {
|
|
2125
2185
|
return t.anchorStart === $ ? void 0 : e.source.slice(t.anchorStart, t.anchorEnd);
|
|
2126
2186
|
}
|
|
2127
|
-
function
|
|
2128
|
-
let n =
|
|
2129
|
-
|
|
2130
|
-
case S.SINGLE_QUOTED:
|
|
2131
|
-
i.singleQuoted = !0;
|
|
2132
|
-
break;
|
|
2133
|
-
case S.DOUBLE_QUOTED:
|
|
2134
|
-
i.doubleQuoted = !0;
|
|
2135
|
-
break;
|
|
2136
|
-
case S.LITERAL_BLOCK:
|
|
2137
|
-
i.literal = !0;
|
|
2138
|
-
break;
|
|
2139
|
-
case S.FOLDED_BLOCK:
|
|
2140
|
-
i.folded = !0;
|
|
2141
|
-
break;
|
|
2142
|
-
}
|
|
2143
|
-
let a;
|
|
2144
|
-
return r === "" ? a = t.style === S.PLAIN ? e.schema.resolveImplicitScalarTag(n).tag.tagName : e.schema.defaultScalarTag.tagName : (i.tagged = !0, a = r), {
|
|
2187
|
+
function yi(e, t) {
|
|
2188
|
+
let n = Ct(e.source, t), r = _i(e, t), i, a = !1;
|
|
2189
|
+
return r === "" ? i = t.style === E.PLAIN ? e.schema.resolveImplicitScalarTag(n).tag.tagName : e.schema.defaultScalarTag.tagName : (a = !0, i = r), {
|
|
2145
2190
|
kind: "scalar",
|
|
2146
|
-
tag:
|
|
2147
|
-
|
|
2148
|
-
|
|
2191
|
+
tag: i,
|
|
2192
|
+
tagged: a,
|
|
2193
|
+
style: t.style,
|
|
2194
|
+
anchor: vi(e, t),
|
|
2149
2195
|
value: n
|
|
2150
2196
|
};
|
|
2151
2197
|
}
|
|
2152
|
-
function
|
|
2153
|
-
let r =
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
anchor: ii(e, t)
|
|
2198
|
+
function bi(e, t, n) {
|
|
2199
|
+
let r = _i(e, t), i, a = !1;
|
|
2200
|
+
return r === "" ? i = n : (i = r, a = !0), {
|
|
2201
|
+
tag: i,
|
|
2202
|
+
tagged: a,
|
|
2203
|
+
style: t.style,
|
|
2204
|
+
anchor: vi(e, t)
|
|
2160
2205
|
};
|
|
2161
2206
|
}
|
|
2162
|
-
function
|
|
2207
|
+
function xi(e, t) {
|
|
2163
2208
|
let n = e.frames[e.frames.length - 1];
|
|
2164
2209
|
n.kind === "document" ? n.doc.contents = t : n.kind === "sequence" ? n.node.items.push(t) : n.key ? (n.node.items.push({
|
|
2165
2210
|
key: n.key,
|
|
2166
2211
|
value: t
|
|
2167
2212
|
}), n.key = null) : n.key = t;
|
|
2168
2213
|
}
|
|
2169
|
-
function
|
|
2214
|
+
function Si(e, t) {
|
|
2170
2215
|
let n = {
|
|
2171
2216
|
source: t.source,
|
|
2172
2217
|
schema: t.schema,
|
|
@@ -2177,8 +2222,8 @@ function ci(e, t) {
|
|
|
2177
2222
|
};
|
|
2178
2223
|
for (; n.eventIndex < e.length;) {
|
|
2179
2224
|
let t = e[n.eventIndex++];
|
|
2180
|
-
switch (n.position =
|
|
2181
|
-
case
|
|
2225
|
+
switch (n.position = gi(t), t.type) {
|
|
2226
|
+
case T.DOCUMENT: {
|
|
2182
2227
|
let e = {
|
|
2183
2228
|
contents: null,
|
|
2184
2229
|
explicitStart: t.explicitStart,
|
|
@@ -2191,52 +2236,50 @@ function ci(e, t) {
|
|
|
2191
2236
|
});
|
|
2192
2237
|
break;
|
|
2193
2238
|
}
|
|
2194
|
-
case
|
|
2195
|
-
|
|
2239
|
+
case T.SCALAR:
|
|
2240
|
+
xi(n, yi(n, t));
|
|
2196
2241
|
break;
|
|
2197
|
-
case
|
|
2198
|
-
let { tag: e,
|
|
2242
|
+
case T.SEQUENCE: {
|
|
2243
|
+
let { tag: e, tagged: r, style: i, anchor: a } = bi(n, t, "tag:yaml.org,2002:seq"), o = {
|
|
2199
2244
|
kind: "sequence",
|
|
2200
2245
|
tag: e,
|
|
2201
|
-
|
|
2202
|
-
|
|
2246
|
+
tagged: r,
|
|
2247
|
+
style: i,
|
|
2248
|
+
anchor: a,
|
|
2203
2249
|
items: []
|
|
2204
2250
|
};
|
|
2205
2251
|
n.frames.push({
|
|
2206
2252
|
kind: "sequence",
|
|
2207
|
-
node:
|
|
2253
|
+
node: o
|
|
2208
2254
|
});
|
|
2209
2255
|
break;
|
|
2210
2256
|
}
|
|
2211
|
-
case
|
|
2212
|
-
let { tag: e,
|
|
2257
|
+
case T.MAPPING: {
|
|
2258
|
+
let { tag: e, tagged: r, style: i, anchor: a } = bi(n, t, "tag:yaml.org,2002:map"), o = {
|
|
2213
2259
|
kind: "mapping",
|
|
2214
2260
|
tag: e,
|
|
2215
|
-
|
|
2216
|
-
|
|
2261
|
+
tagged: r,
|
|
2262
|
+
style: i,
|
|
2263
|
+
anchor: a,
|
|
2217
2264
|
items: []
|
|
2218
2265
|
};
|
|
2219
2266
|
n.frames.push({
|
|
2220
2267
|
kind: "mapping",
|
|
2221
|
-
node:
|
|
2268
|
+
node: o,
|
|
2222
2269
|
key: null
|
|
2223
2270
|
});
|
|
2224
2271
|
break;
|
|
2225
2272
|
}
|
|
2226
|
-
case
|
|
2227
|
-
|
|
2228
|
-
si(n, {
|
|
2273
|
+
case T.ALIAS:
|
|
2274
|
+
xi(n, {
|
|
2229
2275
|
kind: "alias",
|
|
2230
|
-
|
|
2231
|
-
style: new W(),
|
|
2232
|
-
anchor: e
|
|
2276
|
+
anchor: n.source.slice(t.anchorStart, t.anchorEnd)
|
|
2233
2277
|
});
|
|
2234
2278
|
break;
|
|
2235
|
-
|
|
2236
|
-
case x.POP: {
|
|
2279
|
+
case T.POP: {
|
|
2237
2280
|
let e = n.frames.pop();
|
|
2238
2281
|
if (e.kind === "mapping" && e.key) throw Error("incomplete mapping pair in event stream");
|
|
2239
|
-
e.kind === "document" ? n.documents.push(e.doc) :
|
|
2282
|
+
e.kind === "document" ? n.documents.push(e.doc) : xi(n, e.node);
|
|
2240
2283
|
break;
|
|
2241
2284
|
}
|
|
2242
2285
|
}
|
|
@@ -2245,8 +2288,8 @@ function ci(e, t) {
|
|
|
2245
2288
|
}
|
|
2246
2289
|
//#endregion
|
|
2247
2290
|
//#region src/index.ts
|
|
2248
|
-
var
|
|
2291
|
+
var Ci = T.DOCUMENT, wi = T.SEQUENCE, Ti = T.MAPPING, Ei = T.SCALAR, Di = T.ALIAS, Oi = T.POP, ki = E.PLAIN, Ai = E.SINGLE_QUOTED, ji = E.DOUBLE_QUOTED, Mi = E.LITERAL_BLOCK, Ni = E.FOLDED_BLOCK, Pi = D.BLOCK, Fi = D.FLOW, Ii = O.CLIP, Li = O.STRIP, Ri = O.KEEP;
|
|
2249
2292
|
//#endregion
|
|
2250
|
-
export {
|
|
2293
|
+
export { Ii as CHOMPING_CLIP, Ri as CHOMPING_KEEP, O as CHOMPING_MODE, Li as CHOMPING_STRIP, D as COLLECTION_STYLE, Pi as COLLECTION_STYLE_BLOCK, Fi as COLLECTION_STYLE_FLOW, $e as CORE_SCHEMA, Wn as DEFAULT_SCALAR_STYLE_RULES, tt as DUMP_SCHEMA, Di as EVENT_ALIAS, Ci as EVENT_DOCUMENT, T as EVENT_ID, Ti as EVENT_MAPPING, Oi as EVENT_POP, Ei as EVENT_SCALAR, wi as EVENT_SEQUENCE, C as FAILSAFE_SCHEMA, Qe as JSON_SCHEMA, e as NOT_RESOLVED, E as SCALAR_STYLE, ji as SCALAR_STYLE_DOUBLE_QUOTED, Ni as SCALAR_STYLE_FOLDED_BLOCK, Mi as SCALAR_STYLE_LITERAL_BLOCK, ki as SCALAR_STYLE_PLAIN, Ai as SCALAR_STYLE_SINGLE_QUOTED, S as Schema, zn as VISIT_BREAK, Bn as VISIT_SKIP, et as YAML11_SCHEMA, w as YAMLException, Pe as binaryTag, f as boolCoreTag, h as boolJsonTag, ne as boolYaml11Tag, Vt as constructFromEvents, r as defineMappingTag, t as defineScalarTag, n as defineSequenceTag, hi as dump, Si as eventsToAst, be as floatCoreTag, Te as floatJsonTag, _ as floatYaml11Tag, Ct as getScalarValue, se as intCoreTag, fe as intJsonTag, g as intYaml11Tag, Rn as jsToAst, it as legacyMapTag, Fn as load, Pn as loadAll, We as mapTag, Ae as mergeTag, o as nullCoreTag, s as nullJsonTag, l as nullYaml11Tag, He as omapTag, Ue as pairsTag, jn as parseEvents, fi as present, nt as realMapTag, Be as seqTag, Ge as setTag, i as strTag, ze as timestampTag, Hn as visit };
|
|
2251
2294
|
|
|
2252
2295
|
//# sourceMappingURL=js-yaml.esm.min.mjs.map
|