@powerlines/plugin-env 0.15.13 → 0.15.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.cjs +4 -0
- package/dist/_virtual/rolldown_runtime.mjs +33 -0
- package/dist/babel/plugin.cjs +16 -16
- package/dist/babel/plugin.d.mts +2 -2
- package/dist/babel/plugin.mjs +7 -7
- package/dist/components/docs.cjs +8 -8
- package/dist/components/docs.mjs +5 -5
- package/dist/components/env.cjs +38 -39
- package/dist/components/env.d.mts +2 -2
- package/dist/components/env.mjs +11 -11
- package/dist/helpers/automd-generator.cjs +4 -4
- package/dist/helpers/automd-generator.d.mts +1 -1
- package/dist/helpers/automd-generator.mjs +3 -3
- package/dist/helpers/load.cjs +12 -13
- package/dist/helpers/load.d.mts +2 -2
- package/dist/helpers/load.mjs +10 -10
- package/dist/helpers/persistence.cjs +23 -23
- package/dist/helpers/persistence.d.mts +1 -1
- package/dist/helpers/persistence.mjs +7 -7
- package/dist/helpers/reflect.cjs +9 -9
- package/dist/helpers/reflect.mjs +5 -5
- package/dist/helpers/source-file-env.cjs +1 -1
- package/dist/helpers/source-file-env.mjs +1 -1
- package/dist/index.cjs +28 -26
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +25 -25
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.cjs +31 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.mjs +31 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.cjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.mjs +7 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.cjs +10 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.mjs +10 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.cjs +49 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.mjs +49 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.cjs +9 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.cjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.mjs +7 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +346 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +346 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs +786 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs +786 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +23 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +22 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +405 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +404 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs +657 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs +657 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs +1054 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs +1054 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +43 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +42 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +45 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +288 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +285 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +71 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +68 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1007 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +23 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +13 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +2698 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +2685 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +4457 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +4454 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +29 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +29 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +181 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +176 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +22 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +17 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +3967 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +3962 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +11768 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +11763 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +25 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +17 -0
- package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.cjs +174 -0
- package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.mjs +172 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +13 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +12 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +3 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +3 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +145 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +138 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +127 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +125 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +138 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +136 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +629 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +627 -0
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/components.d.mts +1 -1
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-file.d.mts +1 -1
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-interface.d.mts +1 -1
- package/dist/{powerlines → packages/powerlines}/src/types/build.d.mts +6 -6
- package/dist/{powerlines → packages/powerlines}/src/types/config.d.mts +1 -2
- package/dist/{powerlines → packages/powerlines}/src/types/tsconfig.d.mts +1 -1
- package/dist/types/plugin.cjs +19 -18
- package/dist/types/plugin.d.mts +6 -6
- package/dist/types/plugin.mjs +4 -4
- package/dist/types/runtime.cjs +3 -2
- package/dist/types/runtime.d.mts +1 -1
- package/dist/types/runtime.mjs +1 -1
- package/package.json +10 -10
- package/dist/deepkit/schemas/reflection.cjs +0 -5368
- package/dist/deepkit/schemas/reflection.mjs +0 -5365
- package/dist/deepkit/schemas/reflection2.cjs +0 -4112
- package/dist/deepkit/schemas/reflection2.mjs +0 -4110
- package/dist/deepkit/src/capnp.cjs +0 -1692
- package/dist/deepkit/src/capnp.mjs +0 -1690
- package/dist/deepkit/src/esbuild-plugin.cjs +0 -99
- package/dist/deepkit/src/esbuild-plugin.mjs +0 -98
- package/dist/deepkit/src/reflect-type.cjs +0 -40
- package/dist/deepkit/src/reflect-type.mjs +0 -38
- package/dist/deepkit/src/resolve-reflections.cjs +0 -23
- package/dist/deepkit/src/resolve-reflections.mjs +0 -22
- package/dist/deepkit/src/transformer.cjs +0 -92
- package/dist/deepkit/src/transformer.mjs +0 -89
- package/dist/deepkit/src/transpile.cjs +0 -39
- package/dist/deepkit/src/transpile.mjs +0 -37
- package/dist/deepkit/src/types.cjs +0 -22
- package/dist/deepkit/src/types.mjs +0 -21
- package/dist/deepkit/src/utilities.cjs +0 -182
- package/dist/deepkit/src/utilities.mjs +0 -181
- package/dist/plugin-alloy/src/core/components/output.cjs +0 -45
- package/dist/plugin-alloy/src/core/components/output.mjs +0 -44
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
- package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
- package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
- package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -136
- package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -128
- package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
- package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -110
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -101
- package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -23
- package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -22
- package/dist/plugin-alloy/src/index.cjs +0 -106
- package/dist/plugin-alloy/src/index.mjs +0 -104
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -115
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -114
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -39
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -38
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -72
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -71
- package/dist/plugin-alloy/src/types/components.cjs +0 -22
- package/dist/plugin-alloy/src/types/components.mjs +0 -21
- package/dist/plugin-alloy/src/types/plugin.cjs +0 -55
- package/dist/plugin-alloy/src/types/plugin.mjs +0 -52
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -57
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -56
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -126
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -442
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -433
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -212
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -209
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -68
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -67
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
- package/dist/plugin-automd/src/index.cjs +0 -127
- package/dist/plugin-automd/src/index.mjs +0 -124
- package/dist/plugin-automd/src/types/plugin.cjs +0 -47
- package/dist/plugin-automd/src/types/plugin.mjs +0 -47
- package/dist/plugin-automd/src/types/toc.cjs +0 -26
- package/dist/plugin-automd/src/types/toc.mjs +0 -25
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -74
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -70
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -71
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -69
- package/dist/plugin-babel/src/helpers/filters.cjs +0 -158
- package/dist/plugin-babel/src/helpers/filters.mjs +0 -154
- package/dist/plugin-babel/src/helpers/index.cjs +0 -5
- package/dist/plugin-babel/src/helpers/index.mjs +0 -7
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -200
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -192
- package/dist/plugin-babel/src/helpers/options.cjs +0 -74
- package/dist/plugin-babel/src/helpers/options.mjs +0 -71
- package/dist/plugin-babel/src/index.cjs +0 -131
- package/dist/plugin-babel/src/index.mjs +0 -129
- package/dist/plugin-babel/src/types/plugin.cjs +0 -42
- package/dist/plugin-babel/src/types/plugin.mjs +0 -39
- package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -137
- package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -135
- package/dist/powerlines/src/lib/build/esbuild.cjs +0 -161
- package/dist/powerlines/src/lib/build/esbuild.mjs +0 -159
- package/dist/powerlines/src/lib/entry.cjs +0 -203
- package/dist/powerlines/src/lib/entry.mjs +0 -201
- package/dist/powerlines/src/lib/logger.cjs +0 -108
- package/dist/powerlines/src/lib/logger.mjs +0 -106
- package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -67
- package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -66
- package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -49
- package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -48
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -46
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -45
- package/dist/powerlines/src/types/api.cjs +0 -62
- package/dist/powerlines/src/types/api.mjs +0 -62
- package/dist/powerlines/src/types/babel.cjs +0 -156
- package/dist/powerlines/src/types/babel.mjs +0 -147
- package/dist/powerlines/src/types/build.cjs +0 -127
- package/dist/powerlines/src/types/build.mjs +0 -121
- package/dist/powerlines/src/types/commands.cjs +0 -16
- package/dist/powerlines/src/types/commands.mjs +0 -15
- package/dist/powerlines/src/types/config.cjs +0 -413
- package/dist/powerlines/src/types/config.mjs +0 -391
- package/dist/powerlines/src/types/context.cjs +0 -381
- package/dist/powerlines/src/types/context.mjs +0 -364
- package/dist/powerlines/src/types/fs.cjs +0 -78
- package/dist/powerlines/src/types/fs.mjs +0 -75
- package/dist/powerlines/src/types/hooks.cjs +0 -71
- package/dist/powerlines/src/types/hooks.mjs +0 -68
- package/dist/powerlines/src/types/index.cjs +0 -11
- package/dist/powerlines/src/types/index.mjs +0 -13
- package/dist/powerlines/src/types/plugin.cjs +0 -184
- package/dist/powerlines/src/types/plugin.mjs +0 -178
- package/dist/powerlines/src/types/resolved.cjs +0 -153
- package/dist/powerlines/src/types/resolved.mjs +0 -148
- package/dist/powerlines/src/types/unplugin.cjs +0 -47
- package/dist/powerlines/src/types/unplugin.mjs +0 -46
- /package/dist/{deepkit → packages/deepkit}/schemas/reflection.d.mts +0 -0
- /package/dist/{deepkit → packages/deepkit}/src/types.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/core/components/source-file.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/index.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/plugin.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/builtin-file.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/tsdoc.d.mts +0 -0
- /package/dist/{plugin-automd → packages/plugin-automd}/src/types/plugin.d.mts +0 -0
- /package/dist/{plugin-automd → packages/plugin-automd}/src/types/toc.d.mts +0 -0
- /package/dist/{plugin-babel → packages/plugin-babel}/src/types/index.d.mts +0 -0
- /package/dist/{plugin-babel → packages/plugin-babel}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/internal/helpers/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/api.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/babel.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/commands.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/context.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/fs.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/index.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/resolved.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/unplugin.d.mts +0 -0
|
@@ -0,0 +1,1054 @@
|
|
|
1
|
+
import { N } from "./shared/confbox.DA7CpUDY.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs
|
|
4
|
+
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ function oe(e) {
|
|
5
|
+
return typeof e > "u" || e === null;
|
|
6
|
+
}
|
|
7
|
+
function Ge(e) {
|
|
8
|
+
return typeof e == "object" && e !== null;
|
|
9
|
+
}
|
|
10
|
+
function We(e) {
|
|
11
|
+
return Array.isArray(e) ? e : oe(e) ? [] : [e];
|
|
12
|
+
}
|
|
13
|
+
function $e(e, n) {
|
|
14
|
+
var i, l, r, u;
|
|
15
|
+
if (n) for (u = Object.keys(n), i = 0, l = u.length; i < l; i += 1) r = u[i], e[r] = n[r];
|
|
16
|
+
return e;
|
|
17
|
+
}
|
|
18
|
+
function Qe(e, n) {
|
|
19
|
+
var i = "", l;
|
|
20
|
+
for (l = 0; l < n; l += 1) i += e;
|
|
21
|
+
return i;
|
|
22
|
+
}
|
|
23
|
+
function Ve(e) {
|
|
24
|
+
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
25
|
+
}
|
|
26
|
+
var y = {
|
|
27
|
+
isNothing: oe,
|
|
28
|
+
isObject: Ge,
|
|
29
|
+
toArray: We,
|
|
30
|
+
repeat: Qe,
|
|
31
|
+
isNegativeZero: Ve,
|
|
32
|
+
extend: $e
|
|
33
|
+
};
|
|
34
|
+
function ue(e, n) {
|
|
35
|
+
var i = "", l = e.reason || "(unknown reason)";
|
|
36
|
+
return e.mark ? (e.mark.name && (i += "in \"" + e.mark.name + "\" "), i += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (i += `
|
|
37
|
+
|
|
38
|
+
` + e.mark.snippet), l + " " + i) : l;
|
|
39
|
+
}
|
|
40
|
+
function M(e, n) {
|
|
41
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = ue(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ new Error()).stack || "";
|
|
42
|
+
}
|
|
43
|
+
M.prototype = Object.create(Error.prototype), M.prototype.constructor = M, M.prototype.toString = function(n) {
|
|
44
|
+
return this.name + ": " + ue(this, n);
|
|
45
|
+
};
|
|
46
|
+
var w = M;
|
|
47
|
+
function $(e, n, i, l, r) {
|
|
48
|
+
var u = "", o = "", f = Math.floor(r / 2) - 1;
|
|
49
|
+
return l - n > f && (u = " ... ", n = l - f + u.length), i - l > f && (o = " ...", i = l + f - o.length), {
|
|
50
|
+
str: u + e.slice(n, i).replace(/\t/g, "→") + o,
|
|
51
|
+
pos: l - n + u.length
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function Q(e, n) {
|
|
55
|
+
return y.repeat(" ", n - e.length) + e;
|
|
56
|
+
}
|
|
57
|
+
function rn(e, n) {
|
|
58
|
+
if (n = Object.create(n || null), !e.buffer) return null;
|
|
59
|
+
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
60
|
+
for (var i = /\r?\n|\r|\0/g, l = [0], r = [], u, o = -1; u = i.exec(e.buffer);) r.push(u.index), l.push(u.index + u[0].length), e.position <= u.index && o < 0 && (o = l.length - 2);
|
|
61
|
+
o < 0 && (o = l.length - 1);
|
|
62
|
+
var f = "", c, a, t = Math.min(e.line + n.linesAfter, r.length).toString().length, p = n.maxLength - (n.indent + t + 3);
|
|
63
|
+
for (c = 1; c <= n.linesBefore && !(o - c < 0); c++) a = $(e.buffer, l[o - c], r[o - c], e.position - (l[o] - l[o - c]), p), f = y.repeat(" ", n.indent) + Q((e.line - c + 1).toString(), t) + " | " + a.str + `
|
|
64
|
+
` + f;
|
|
65
|
+
for (a = $(e.buffer, l[o], r[o], e.position, p), f += y.repeat(" ", n.indent) + Q((e.line + 1).toString(), t) + " | " + a.str + `
|
|
66
|
+
`, f += y.repeat("-", n.indent + t + 3 + a.pos) + `^
|
|
67
|
+
`, c = 1; c <= n.linesAfter && !(o + c >= r.length); c++) a = $(e.buffer, l[o + c], r[o + c], e.position - (l[o] - l[o + c]), p), f += y.repeat(" ", n.indent) + Q((e.line + c + 1).toString(), t) + " | " + a.str + `
|
|
68
|
+
`;
|
|
69
|
+
return f.replace(/\n$/, "");
|
|
70
|
+
}
|
|
71
|
+
var ln = rn, on = [
|
|
72
|
+
"kind",
|
|
73
|
+
"multi",
|
|
74
|
+
"resolve",
|
|
75
|
+
"construct",
|
|
76
|
+
"instanceOf",
|
|
77
|
+
"predicate",
|
|
78
|
+
"represent",
|
|
79
|
+
"representName",
|
|
80
|
+
"defaultStyle",
|
|
81
|
+
"styleAliases"
|
|
82
|
+
], un = [
|
|
83
|
+
"scalar",
|
|
84
|
+
"sequence",
|
|
85
|
+
"mapping"
|
|
86
|
+
];
|
|
87
|
+
function fn(e) {
|
|
88
|
+
var n = {};
|
|
89
|
+
return e !== null && Object.keys(e).forEach(function(i) {
|
|
90
|
+
e[i].forEach(function(l) {
|
|
91
|
+
n[String(l)] = i;
|
|
92
|
+
});
|
|
93
|
+
}), n;
|
|
94
|
+
}
|
|
95
|
+
function cn(e, n) {
|
|
96
|
+
if (n = n || {}, Object.keys(n).forEach(function(i) {
|
|
97
|
+
if (on.indexOf(i) === -1) throw new w("Unknown option \"" + i + "\" is met in definition of \"" + e + "\" YAML type.");
|
|
98
|
+
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
99
|
+
return !0;
|
|
100
|
+
}, this.construct = n.construct || function(i) {
|
|
101
|
+
return i;
|
|
102
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = fn(n.styleAliases || null), un.indexOf(this.kind) === -1) throw new w("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
|
|
103
|
+
}
|
|
104
|
+
var C$1 = cn;
|
|
105
|
+
function fe(e, n) {
|
|
106
|
+
var i = [];
|
|
107
|
+
return e[n].forEach(function(l) {
|
|
108
|
+
var r = i.length;
|
|
109
|
+
i.forEach(function(u, o) {
|
|
110
|
+
u.tag === l.tag && u.kind === l.kind && u.multi === l.multi && (r = o);
|
|
111
|
+
}), i[r] = l;
|
|
112
|
+
}), i;
|
|
113
|
+
}
|
|
114
|
+
function an() {
|
|
115
|
+
var e = {
|
|
116
|
+
scalar: {},
|
|
117
|
+
sequence: {},
|
|
118
|
+
mapping: {},
|
|
119
|
+
fallback: {},
|
|
120
|
+
multi: {
|
|
121
|
+
scalar: [],
|
|
122
|
+
sequence: [],
|
|
123
|
+
mapping: [],
|
|
124
|
+
fallback: []
|
|
125
|
+
}
|
|
126
|
+
}, n, i;
|
|
127
|
+
function l(r) {
|
|
128
|
+
r.multi ? (e.multi[r.kind].push(r), e.multi.fallback.push(r)) : e[r.kind][r.tag] = e.fallback[r.tag] = r;
|
|
129
|
+
}
|
|
130
|
+
for (n = 0, i = arguments.length; n < i; n += 1) arguments[n].forEach(l);
|
|
131
|
+
return e;
|
|
132
|
+
}
|
|
133
|
+
function V(e) {
|
|
134
|
+
return this.extend(e);
|
|
135
|
+
}
|
|
136
|
+
V.prototype.extend = function(n) {
|
|
137
|
+
var i = [], l = [];
|
|
138
|
+
if (n instanceof C$1) l.push(n);
|
|
139
|
+
else if (Array.isArray(n)) l = l.concat(n);
|
|
140
|
+
else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit))) n.implicit && (i = i.concat(n.implicit)), n.explicit && (l = l.concat(n.explicit));
|
|
141
|
+
else throw new w("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
142
|
+
i.forEach(function(u) {
|
|
143
|
+
if (!(u instanceof C$1)) throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
144
|
+
if (u.loadKind && u.loadKind !== "scalar") throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
145
|
+
if (u.multi) throw new w("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
146
|
+
}), l.forEach(function(u) {
|
|
147
|
+
if (!(u instanceof C$1)) throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
148
|
+
});
|
|
149
|
+
var r = Object.create(V.prototype);
|
|
150
|
+
return r.implicit = (this.implicit || []).concat(i), r.explicit = (this.explicit || []).concat(l), r.compiledImplicit = fe(r, "implicit"), r.compiledExplicit = fe(r, "explicit"), r.compiledTypeMap = an(r.compiledImplicit, r.compiledExplicit), r;
|
|
151
|
+
};
|
|
152
|
+
var sn = new V({ explicit: [
|
|
153
|
+
new C$1("tag:yaml.org,2002:str", {
|
|
154
|
+
kind: "scalar",
|
|
155
|
+
construct: function(e) {
|
|
156
|
+
return e !== null ? e : "";
|
|
157
|
+
}
|
|
158
|
+
}),
|
|
159
|
+
new C$1("tag:yaml.org,2002:seq", {
|
|
160
|
+
kind: "sequence",
|
|
161
|
+
construct: function(e) {
|
|
162
|
+
return e !== null ? e : [];
|
|
163
|
+
}
|
|
164
|
+
}),
|
|
165
|
+
new C$1("tag:yaml.org,2002:map", {
|
|
166
|
+
kind: "mapping",
|
|
167
|
+
construct: function(e) {
|
|
168
|
+
return e !== null ? e : {};
|
|
169
|
+
}
|
|
170
|
+
})
|
|
171
|
+
] });
|
|
172
|
+
function xn(e) {
|
|
173
|
+
if (e === null) return !0;
|
|
174
|
+
var n = e.length;
|
|
175
|
+
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
176
|
+
}
|
|
177
|
+
function mn() {
|
|
178
|
+
return null;
|
|
179
|
+
}
|
|
180
|
+
function gn(e) {
|
|
181
|
+
return e === null;
|
|
182
|
+
}
|
|
183
|
+
var An = new C$1("tag:yaml.org,2002:null", {
|
|
184
|
+
kind: "scalar",
|
|
185
|
+
resolve: xn,
|
|
186
|
+
construct: mn,
|
|
187
|
+
predicate: gn,
|
|
188
|
+
represent: {
|
|
189
|
+
canonical: function() {
|
|
190
|
+
return "~";
|
|
191
|
+
},
|
|
192
|
+
lowercase: function() {
|
|
193
|
+
return "null";
|
|
194
|
+
},
|
|
195
|
+
uppercase: function() {
|
|
196
|
+
return "NULL";
|
|
197
|
+
},
|
|
198
|
+
camelcase: function() {
|
|
199
|
+
return "Null";
|
|
200
|
+
},
|
|
201
|
+
empty: function() {
|
|
202
|
+
return "";
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
defaultStyle: "lowercase"
|
|
206
|
+
});
|
|
207
|
+
function vn(e) {
|
|
208
|
+
if (e === null) return !1;
|
|
209
|
+
var n = e.length;
|
|
210
|
+
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
211
|
+
}
|
|
212
|
+
function yn(e) {
|
|
213
|
+
return e === "true" || e === "True" || e === "TRUE";
|
|
214
|
+
}
|
|
215
|
+
function Cn(e) {
|
|
216
|
+
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
217
|
+
}
|
|
218
|
+
var _n = new C$1("tag:yaml.org,2002:bool", {
|
|
219
|
+
kind: "scalar",
|
|
220
|
+
resolve: vn,
|
|
221
|
+
construct: yn,
|
|
222
|
+
predicate: Cn,
|
|
223
|
+
represent: {
|
|
224
|
+
lowercase: function(e) {
|
|
225
|
+
return e ? "true" : "false";
|
|
226
|
+
},
|
|
227
|
+
uppercase: function(e) {
|
|
228
|
+
return e ? "TRUE" : "FALSE";
|
|
229
|
+
},
|
|
230
|
+
camelcase: function(e) {
|
|
231
|
+
return e ? "True" : "False";
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
defaultStyle: "lowercase"
|
|
235
|
+
});
|
|
236
|
+
function wn(e) {
|
|
237
|
+
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
238
|
+
}
|
|
239
|
+
function Fn(e) {
|
|
240
|
+
return 48 <= e && e <= 55;
|
|
241
|
+
}
|
|
242
|
+
function bn(e) {
|
|
243
|
+
return 48 <= e && e <= 57;
|
|
244
|
+
}
|
|
245
|
+
function Sn(e) {
|
|
246
|
+
if (e === null) return !1;
|
|
247
|
+
var n = e.length, i = 0, l = !1, r;
|
|
248
|
+
if (!n) return !1;
|
|
249
|
+
if (r = e[i], (r === "-" || r === "+") && (r = e[++i]), r === "0") {
|
|
250
|
+
if (i + 1 === n) return !0;
|
|
251
|
+
if (r = e[++i], r === "b") {
|
|
252
|
+
for (i++; i < n; i++) if (r = e[i], r !== "_") {
|
|
253
|
+
if (r !== "0" && r !== "1") return !1;
|
|
254
|
+
l = !0;
|
|
255
|
+
}
|
|
256
|
+
return l && r !== "_";
|
|
257
|
+
}
|
|
258
|
+
if (r === "x") {
|
|
259
|
+
for (i++; i < n; i++) if (r = e[i], r !== "_") {
|
|
260
|
+
if (!wn(e.charCodeAt(i))) return !1;
|
|
261
|
+
l = !0;
|
|
262
|
+
}
|
|
263
|
+
return l && r !== "_";
|
|
264
|
+
}
|
|
265
|
+
if (r === "o") {
|
|
266
|
+
for (i++; i < n; i++) if (r = e[i], r !== "_") {
|
|
267
|
+
if (!Fn(e.charCodeAt(i))) return !1;
|
|
268
|
+
l = !0;
|
|
269
|
+
}
|
|
270
|
+
return l && r !== "_";
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
if (r === "_") return !1;
|
|
274
|
+
for (; i < n; i++) if (r = e[i], r !== "_") {
|
|
275
|
+
if (!bn(e.charCodeAt(i))) return !1;
|
|
276
|
+
l = !0;
|
|
277
|
+
}
|
|
278
|
+
return !(!l || r === "_");
|
|
279
|
+
}
|
|
280
|
+
function En(e) {
|
|
281
|
+
var n = e, i = 1, l;
|
|
282
|
+
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), l = n[0], (l === "-" || l === "+") && (l === "-" && (i = -1), n = n.slice(1), l = n[0]), n === "0") return 0;
|
|
283
|
+
if (l === "0") {
|
|
284
|
+
if (n[1] === "b") return i * parseInt(n.slice(2), 2);
|
|
285
|
+
if (n[1] === "x") return i * parseInt(n.slice(2), 16);
|
|
286
|
+
if (n[1] === "o") return i * parseInt(n.slice(2), 8);
|
|
287
|
+
}
|
|
288
|
+
return i * parseInt(n, 10);
|
|
289
|
+
}
|
|
290
|
+
function Tn(e) {
|
|
291
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !y.isNegativeZero(e);
|
|
292
|
+
}
|
|
293
|
+
var On = new C$1("tag:yaml.org,2002:int", {
|
|
294
|
+
kind: "scalar",
|
|
295
|
+
resolve: Sn,
|
|
296
|
+
construct: En,
|
|
297
|
+
predicate: Tn,
|
|
298
|
+
represent: {
|
|
299
|
+
binary: function(e) {
|
|
300
|
+
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
301
|
+
},
|
|
302
|
+
octal: function(e) {
|
|
303
|
+
return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
|
|
304
|
+
},
|
|
305
|
+
decimal: function(e) {
|
|
306
|
+
return e.toString(10);
|
|
307
|
+
},
|
|
308
|
+
hexadecimal: function(e) {
|
|
309
|
+
return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
defaultStyle: "decimal",
|
|
313
|
+
styleAliases: {
|
|
314
|
+
binary: [2, "bin"],
|
|
315
|
+
octal: [8, "oct"],
|
|
316
|
+
decimal: [10, "dec"],
|
|
317
|
+
hexadecimal: [16, "hex"]
|
|
318
|
+
}
|
|
319
|
+
}), In = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
320
|
+
function kn(e) {
|
|
321
|
+
return !(e === null || !In.test(e) || e[e.length - 1] === "_");
|
|
322
|
+
}
|
|
323
|
+
function Ln(e) {
|
|
324
|
+
var n, i;
|
|
325
|
+
return n = e.replace(/_/g, "").toLowerCase(), i = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : i * parseFloat(n, 10);
|
|
326
|
+
}
|
|
327
|
+
var Nn = /^[-+]?[0-9]+e/;
|
|
328
|
+
function Rn(e, n) {
|
|
329
|
+
var i;
|
|
330
|
+
if (isNaN(e)) switch (n) {
|
|
331
|
+
case "lowercase": return ".nan";
|
|
332
|
+
case "uppercase": return ".NAN";
|
|
333
|
+
case "camelcase": return ".NaN";
|
|
334
|
+
}
|
|
335
|
+
else if (Number.POSITIVE_INFINITY === e) switch (n) {
|
|
336
|
+
case "lowercase": return ".inf";
|
|
337
|
+
case "uppercase": return ".INF";
|
|
338
|
+
case "camelcase": return ".Inf";
|
|
339
|
+
}
|
|
340
|
+
else if (Number.NEGATIVE_INFINITY === e) switch (n) {
|
|
341
|
+
case "lowercase": return "-.inf";
|
|
342
|
+
case "uppercase": return "-.INF";
|
|
343
|
+
case "camelcase": return "-.Inf";
|
|
344
|
+
}
|
|
345
|
+
else if (y.isNegativeZero(e)) return "-0.0";
|
|
346
|
+
return i = e.toString(10), Nn.test(i) ? i.replace("e", ".e") : i;
|
|
347
|
+
}
|
|
348
|
+
function Dn(e) {
|
|
349
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || y.isNegativeZero(e));
|
|
350
|
+
}
|
|
351
|
+
var Mn = new C$1("tag:yaml.org,2002:float", {
|
|
352
|
+
kind: "scalar",
|
|
353
|
+
resolve: kn,
|
|
354
|
+
construct: Ln,
|
|
355
|
+
predicate: Dn,
|
|
356
|
+
represent: Rn,
|
|
357
|
+
defaultStyle: "lowercase"
|
|
358
|
+
}), Bn = sn.extend({ implicit: [
|
|
359
|
+
An,
|
|
360
|
+
_n,
|
|
361
|
+
On,
|
|
362
|
+
Mn
|
|
363
|
+
] }), ce = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), ae = /* @__PURE__ */ new 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]))?))?$");
|
|
364
|
+
function Pn(e) {
|
|
365
|
+
return e === null ? !1 : ce.exec(e) !== null || ae.exec(e) !== null;
|
|
366
|
+
}
|
|
367
|
+
function jn(e) {
|
|
368
|
+
var n, i, l, r, u, o, f, c = 0, a = null, t, p, d;
|
|
369
|
+
if (n = ce.exec(e), n === null && (n = ae.exec(e)), n === null) throw new Error("Date resolve error");
|
|
370
|
+
if (i = +n[1], l = +n[2] - 1, r = +n[3], !n[4]) return new Date(Date.UTC(i, l, r));
|
|
371
|
+
if (u = +n[4], o = +n[5], f = +n[6], n[7]) {
|
|
372
|
+
for (c = n[7].slice(0, 3); c.length < 3;) c += "0";
|
|
373
|
+
c = +c;
|
|
374
|
+
}
|
|
375
|
+
return n[9] && (t = +n[10], p = +(n[11] || 0), a = (t * 60 + p) * 6e4, n[9] === "-" && (a = -a)), d = new Date(Date.UTC(i, l, r, u, o, f, c)), a && d.setTime(d.getTime() - a), d;
|
|
376
|
+
}
|
|
377
|
+
function Hn(e) {
|
|
378
|
+
return e.toISOString();
|
|
379
|
+
}
|
|
380
|
+
var Un = new C$1("tag:yaml.org,2002:timestamp", {
|
|
381
|
+
kind: "scalar",
|
|
382
|
+
resolve: Pn,
|
|
383
|
+
construct: jn,
|
|
384
|
+
instanceOf: Date,
|
|
385
|
+
represent: Hn
|
|
386
|
+
});
|
|
387
|
+
function Kn(e) {
|
|
388
|
+
return e === "<<" || e === null;
|
|
389
|
+
}
|
|
390
|
+
var qn = new C$1("tag:yaml.org,2002:merge", {
|
|
391
|
+
kind: "scalar",
|
|
392
|
+
resolve: Kn
|
|
393
|
+
}), X = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
394
|
+
\r`;
|
|
395
|
+
function Gn(e) {
|
|
396
|
+
if (e === null) return !1;
|
|
397
|
+
var n, i, l = 0, r = e.length, u = X;
|
|
398
|
+
for (i = 0; i < r; i++) if (n = u.indexOf(e.charAt(i)), !(n > 64)) {
|
|
399
|
+
if (n < 0) return !1;
|
|
400
|
+
l += 6;
|
|
401
|
+
}
|
|
402
|
+
return l % 8 === 0;
|
|
403
|
+
}
|
|
404
|
+
function Wn(e) {
|
|
405
|
+
var n, i, l = e.replace(/[\r\n=]/g, ""), r = l.length, u = X, o = 0, f = [];
|
|
406
|
+
for (n = 0; n < r; n++) n % 4 === 0 && n && (f.push(o >> 16 & 255), f.push(o >> 8 & 255), f.push(o & 255)), o = o << 6 | u.indexOf(l.charAt(n));
|
|
407
|
+
return i = r % 4 * 6, i === 0 ? (f.push(o >> 16 & 255), f.push(o >> 8 & 255), f.push(o & 255)) : i === 18 ? (f.push(o >> 10 & 255), f.push(o >> 2 & 255)) : i === 12 && f.push(o >> 4 & 255), new Uint8Array(f);
|
|
408
|
+
}
|
|
409
|
+
function $n(e) {
|
|
410
|
+
var n = "", i = 0, l, r, u = e.length, o = X;
|
|
411
|
+
for (l = 0; l < u; l++) l % 3 === 0 && l && (n += o[i >> 18 & 63], n += o[i >> 12 & 63], n += o[i >> 6 & 63], n += o[i & 63]), i = (i << 8) + e[l];
|
|
412
|
+
return r = u % 3, r === 0 ? (n += o[i >> 18 & 63], n += o[i >> 12 & 63], n += o[i >> 6 & 63], n += o[i & 63]) : r === 2 ? (n += o[i >> 10 & 63], n += o[i >> 4 & 63], n += o[i << 2 & 63], n += o[64]) : r === 1 && (n += o[i >> 2 & 63], n += o[i << 4 & 63], n += o[64], n += o[64]), n;
|
|
413
|
+
}
|
|
414
|
+
function Qn(e) {
|
|
415
|
+
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
416
|
+
}
|
|
417
|
+
var Vn = new C$1("tag:yaml.org,2002:binary", {
|
|
418
|
+
kind: "scalar",
|
|
419
|
+
resolve: Gn,
|
|
420
|
+
construct: Wn,
|
|
421
|
+
predicate: Qn,
|
|
422
|
+
represent: $n
|
|
423
|
+
}), Xn = Object.prototype.hasOwnProperty, Zn = Object.prototype.toString;
|
|
424
|
+
function zn(e) {
|
|
425
|
+
if (e === null) return !0;
|
|
426
|
+
var n = [], i, l, r, u, o, f = e;
|
|
427
|
+
for (i = 0, l = f.length; i < l; i += 1) {
|
|
428
|
+
if (r = f[i], o = !1, Zn.call(r) !== "[object Object]") return !1;
|
|
429
|
+
for (u in r) if (Xn.call(r, u)) if (!o) o = !0;
|
|
430
|
+
else return !1;
|
|
431
|
+
if (!o) return !1;
|
|
432
|
+
if (n.indexOf(u) === -1) n.push(u);
|
|
433
|
+
else return !1;
|
|
434
|
+
}
|
|
435
|
+
return !0;
|
|
436
|
+
}
|
|
437
|
+
function Jn(e) {
|
|
438
|
+
return e !== null ? e : [];
|
|
439
|
+
}
|
|
440
|
+
var ei = new C$1("tag:yaml.org,2002:omap", {
|
|
441
|
+
kind: "sequence",
|
|
442
|
+
resolve: zn,
|
|
443
|
+
construct: Jn
|
|
444
|
+
}), ni = Object.prototype.toString;
|
|
445
|
+
function ii(e) {
|
|
446
|
+
if (e === null) return !0;
|
|
447
|
+
var n, i, l, r, u, o = e;
|
|
448
|
+
for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) {
|
|
449
|
+
if (l = o[n], ni.call(l) !== "[object Object]" || (r = Object.keys(l), r.length !== 1)) return !1;
|
|
450
|
+
u[n] = [r[0], l[r[0]]];
|
|
451
|
+
}
|
|
452
|
+
return !0;
|
|
453
|
+
}
|
|
454
|
+
function ri(e) {
|
|
455
|
+
if (e === null) return [];
|
|
456
|
+
var n, i, l, r, u, o = e;
|
|
457
|
+
for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) l = o[n], r = Object.keys(l), u[n] = [r[0], l[r[0]]];
|
|
458
|
+
return u;
|
|
459
|
+
}
|
|
460
|
+
var li = new C$1("tag:yaml.org,2002:pairs", {
|
|
461
|
+
kind: "sequence",
|
|
462
|
+
resolve: ii,
|
|
463
|
+
construct: ri
|
|
464
|
+
}), oi = Object.prototype.hasOwnProperty;
|
|
465
|
+
function ui(e) {
|
|
466
|
+
if (e === null) return !0;
|
|
467
|
+
var n, i = e;
|
|
468
|
+
for (n in i) if (oi.call(i, n) && i[n] !== null) return !1;
|
|
469
|
+
return !0;
|
|
470
|
+
}
|
|
471
|
+
function fi(e) {
|
|
472
|
+
return e !== null ? e : {};
|
|
473
|
+
}
|
|
474
|
+
var ci = new C$1("tag:yaml.org,2002:set", {
|
|
475
|
+
kind: "mapping",
|
|
476
|
+
resolve: ui,
|
|
477
|
+
construct: fi
|
|
478
|
+
}), pe = Bn.extend({
|
|
479
|
+
implicit: [Un, qn],
|
|
480
|
+
explicit: [
|
|
481
|
+
Vn,
|
|
482
|
+
ei,
|
|
483
|
+
li,
|
|
484
|
+
ci
|
|
485
|
+
]
|
|
486
|
+
}), T = Object.prototype.hasOwnProperty, H = 1, te = 2, he = 3, U = 4, Z = 1, ai = 2, de = 3, pi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ti = /[\x85\u2028\u2029]/, hi = /[,\[\]\{\}]/, se = /^(?:!|!!|![a-z\-]+!)$/i, xe = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
487
|
+
function me(e) {
|
|
488
|
+
return Object.prototype.toString.call(e);
|
|
489
|
+
}
|
|
490
|
+
function S(e) {
|
|
491
|
+
return e === 10 || e === 13;
|
|
492
|
+
}
|
|
493
|
+
function I(e) {
|
|
494
|
+
return e === 9 || e === 32;
|
|
495
|
+
}
|
|
496
|
+
function F(e) {
|
|
497
|
+
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
498
|
+
}
|
|
499
|
+
function k(e) {
|
|
500
|
+
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
501
|
+
}
|
|
502
|
+
function di(e) {
|
|
503
|
+
var n;
|
|
504
|
+
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
505
|
+
}
|
|
506
|
+
function si(e) {
|
|
507
|
+
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
508
|
+
}
|
|
509
|
+
function xi(e) {
|
|
510
|
+
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
511
|
+
}
|
|
512
|
+
function ge(e) {
|
|
513
|
+
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
514
|
+
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
515
|
+
}
|
|
516
|
+
function mi(e) {
|
|
517
|
+
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
518
|
+
}
|
|
519
|
+
for (var Ae = new Array(256), ve = new Array(256), L = 0; L < 256; L++) Ae[L] = ge(L) ? 1 : 0, ve[L] = ge(L);
|
|
520
|
+
function gi(e, n) {
|
|
521
|
+
this.input = e, this.filename = n.filename || null, this.schema = n.schema || pe, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
522
|
+
}
|
|
523
|
+
function ye(e, n) {
|
|
524
|
+
var i = {
|
|
525
|
+
name: e.filename,
|
|
526
|
+
buffer: e.input.slice(0, -1),
|
|
527
|
+
position: e.position,
|
|
528
|
+
line: e.line,
|
|
529
|
+
column: e.position - e.lineStart
|
|
530
|
+
};
|
|
531
|
+
return i.snippet = ln(i), new w(n, i);
|
|
532
|
+
}
|
|
533
|
+
function h(e, n) {
|
|
534
|
+
throw ye(e, n);
|
|
535
|
+
}
|
|
536
|
+
function K(e, n) {
|
|
537
|
+
e.onWarning && e.onWarning.call(null, ye(e, n));
|
|
538
|
+
}
|
|
539
|
+
var Ce = {
|
|
540
|
+
YAML: function(n, i, l) {
|
|
541
|
+
var r, u, o;
|
|
542
|
+
n.version !== null && h(n, "duplication of %YAML directive"), l.length !== 1 && h(n, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(l[0]), r === null && h(n, "ill-formed argument of the YAML directive"), u = parseInt(r[1], 10), o = parseInt(r[2], 10), u !== 1 && h(n, "unacceptable YAML version of the document"), n.version = l[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && K(n, "unsupported YAML version of the document");
|
|
543
|
+
},
|
|
544
|
+
TAG: function(n, i, l) {
|
|
545
|
+
var r, u;
|
|
546
|
+
l.length !== 2 && h(n, "TAG directive accepts exactly two arguments"), r = l[0], u = l[1], se.test(r) || h(n, "ill-formed tag handle (first argument) of the TAG directive"), T.call(n.tagMap, r) && h(n, "there is a previously declared suffix for \"" + r + "\" tag handle"), xe.test(u) || h(n, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
547
|
+
try {
|
|
548
|
+
u = decodeURIComponent(u);
|
|
549
|
+
} catch {
|
|
550
|
+
h(n, "tag prefix is malformed: " + u);
|
|
551
|
+
}
|
|
552
|
+
n.tagMap[r] = u;
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
function O(e, n, i, l) {
|
|
556
|
+
var r, u, o, f;
|
|
557
|
+
if (n < i) {
|
|
558
|
+
if (f = e.input.slice(n, i), l) for (r = 0, u = f.length; r < u; r += 1) o = f.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || h(e, "expected valid JSON character");
|
|
559
|
+
else pi.test(f) && h(e, "the stream contains non-printable characters");
|
|
560
|
+
e.result += f;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
function _e(e, n, i, l) {
|
|
564
|
+
var r, u, o, f;
|
|
565
|
+
for (y.isObject(i) || h(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(i), o = 0, f = r.length; o < f; o += 1) u = r[o], T.call(n, u) || (n[u] = i[u], l[u] = !0);
|
|
566
|
+
}
|
|
567
|
+
function N$1(e, n, i, l, r, u, o, f, c) {
|
|
568
|
+
var a, t;
|
|
569
|
+
if (Array.isArray(r)) for (r = Array.prototype.slice.call(r), a = 0, t = r.length; a < t; a += 1) Array.isArray(r[a]) && h(e, "nested arrays are not supported inside keys"), typeof r == "object" && me(r[a]) === "[object Object]" && (r[a] = "[object Object]");
|
|
570
|
+
if (typeof r == "object" && me(r) === "[object Object]" && (r = "[object Object]"), r = String(r), n === null && (n = {}), l === "tag:yaml.org,2002:merge") if (Array.isArray(u)) for (a = 0, t = u.length; a < t; a += 1) _e(e, n, u[a], i);
|
|
571
|
+
else _e(e, n, u, i);
|
|
572
|
+
else !e.json && !T.call(i, r) && T.call(n, r) && (e.line = o || e.line, e.lineStart = f || e.lineStart, e.position = c || e.position, h(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(n, r, {
|
|
573
|
+
configurable: !0,
|
|
574
|
+
enumerable: !0,
|
|
575
|
+
writable: !0,
|
|
576
|
+
value: u
|
|
577
|
+
}) : n[r] = u, delete i[r];
|
|
578
|
+
return n;
|
|
579
|
+
}
|
|
580
|
+
function z(e) {
|
|
581
|
+
var n = e.input.charCodeAt(e.position);
|
|
582
|
+
n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : h(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
583
|
+
}
|
|
584
|
+
function v(e, n, i) {
|
|
585
|
+
for (var l = 0, r = e.input.charCodeAt(e.position); r !== 0;) {
|
|
586
|
+
for (; I(r);) r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
587
|
+
if (n && r === 35) do
|
|
588
|
+
r = e.input.charCodeAt(++e.position);
|
|
589
|
+
while (r !== 10 && r !== 13 && r !== 0);
|
|
590
|
+
if (S(r)) for (z(e), r = e.input.charCodeAt(e.position), l++, e.lineIndent = 0; r === 32;) e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
591
|
+
else break;
|
|
592
|
+
}
|
|
593
|
+
return i !== -1 && l !== 0 && e.lineIndent < i && K(e, "deficient indentation"), l;
|
|
594
|
+
}
|
|
595
|
+
function q(e) {
|
|
596
|
+
var n = e.position, i;
|
|
597
|
+
return i = e.input.charCodeAt(n), !!((i === 45 || i === 46) && i === e.input.charCodeAt(n + 1) && i === e.input.charCodeAt(n + 2) && (n += 3, i = e.input.charCodeAt(n), i === 0 || F(i)));
|
|
598
|
+
}
|
|
599
|
+
function J(e, n) {
|
|
600
|
+
n === 1 ? e.result += " " : n > 1 && (e.result += y.repeat(`
|
|
601
|
+
`, n - 1));
|
|
602
|
+
}
|
|
603
|
+
function Ai(e, n, i) {
|
|
604
|
+
var l, r, u, o, f, c, a, t, p = e.kind, d = e.result, s;
|
|
605
|
+
if (s = e.input.charCodeAt(e.position), F(s) || k(s) || s === 35 || s === 38 || s === 42 || s === 33 || s === 124 || s === 62 || s === 39 || s === 34 || s === 37 || s === 64 || s === 96 || (s === 63 || s === 45) && (r = e.input.charCodeAt(e.position + 1), F(r) || i && k(r))) return !1;
|
|
606
|
+
for (e.kind = "scalar", e.result = "", u = o = e.position, f = !1; s !== 0;) {
|
|
607
|
+
if (s === 58) {
|
|
608
|
+
if (r = e.input.charCodeAt(e.position + 1), F(r) || i && k(r)) break;
|
|
609
|
+
} else if (s === 35) {
|
|
610
|
+
if (l = e.input.charCodeAt(e.position - 1), F(l)) break;
|
|
611
|
+
} else {
|
|
612
|
+
if (e.position === e.lineStart && q(e) || i && k(s)) break;
|
|
613
|
+
if (S(s)) if (c = e.line, a = e.lineStart, t = e.lineIndent, v(e, !1, -1), e.lineIndent >= n) {
|
|
614
|
+
f = !0, s = e.input.charCodeAt(e.position);
|
|
615
|
+
continue;
|
|
616
|
+
} else {
|
|
617
|
+
e.position = o, e.line = c, e.lineStart = a, e.lineIndent = t;
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
f && (O(e, u, o, !1), J(e, e.line - c), u = o = e.position, f = !1), I(s) || (o = e.position + 1), s = e.input.charCodeAt(++e.position);
|
|
622
|
+
}
|
|
623
|
+
return O(e, u, o, !1), e.result ? !0 : (e.kind = p, e.result = d, !1);
|
|
624
|
+
}
|
|
625
|
+
function vi(e, n) {
|
|
626
|
+
var i, l, r;
|
|
627
|
+
if (i = e.input.charCodeAt(e.position), i !== 39) return !1;
|
|
628
|
+
for (e.kind = "scalar", e.result = "", e.position++, l = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0;) if (i === 39) if (O(e, l, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) l = e.position, e.position++, r = e.position;
|
|
629
|
+
else return !0;
|
|
630
|
+
else S(i) ? (O(e, l, r, !0), J(e, v(e, !1, n)), l = r = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
631
|
+
h(e, "unexpected end of the stream within a single quoted scalar");
|
|
632
|
+
}
|
|
633
|
+
function yi(e, n) {
|
|
634
|
+
var i, l, r, u, o, f;
|
|
635
|
+
if (f = e.input.charCodeAt(e.position), f !== 34) return !1;
|
|
636
|
+
for (e.kind = "scalar", e.result = "", e.position++, i = l = e.position; (f = e.input.charCodeAt(e.position)) !== 0;) {
|
|
637
|
+
if (f === 34) return O(e, i, e.position, !0), e.position++, !0;
|
|
638
|
+
if (f === 92) {
|
|
639
|
+
if (O(e, i, e.position, !0), f = e.input.charCodeAt(++e.position), S(f)) v(e, !1, n);
|
|
640
|
+
else if (f < 256 && Ae[f]) e.result += ve[f], e.position++;
|
|
641
|
+
else if ((o = si(f)) > 0) {
|
|
642
|
+
for (r = o, u = 0; r > 0; r--) f = e.input.charCodeAt(++e.position), (o = di(f)) >= 0 ? u = (u << 4) + o : h(e, "expected hexadecimal character");
|
|
643
|
+
e.result += mi(u), e.position++;
|
|
644
|
+
} else h(e, "unknown escape sequence");
|
|
645
|
+
i = l = e.position;
|
|
646
|
+
} else S(f) ? (O(e, i, l, !0), J(e, v(e, !1, n)), i = l = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a double quoted scalar") : (e.position++, l = e.position);
|
|
647
|
+
}
|
|
648
|
+
h(e, "unexpected end of the stream within a double quoted scalar");
|
|
649
|
+
}
|
|
650
|
+
function Ci(e, n) {
|
|
651
|
+
var i = !0, l, r, u, o = e.tag, f, c = e.anchor, a, t, p, d, s, x = Object.create(null), g, A, b, m;
|
|
652
|
+
if (m = e.input.charCodeAt(e.position), m === 91) t = 93, s = !1, f = [];
|
|
653
|
+
else if (m === 123) t = 125, s = !0, f = {};
|
|
654
|
+
else return !1;
|
|
655
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = f), m = e.input.charCodeAt(++e.position); m !== 0;) {
|
|
656
|
+
if (v(e, !0, n), m = e.input.charCodeAt(e.position), m === t) return e.position++, e.tag = o, e.anchor = c, e.kind = s ? "mapping" : "sequence", e.result = f, !0;
|
|
657
|
+
i ? m === 44 && h(e, "expected the node content, but found ','") : h(e, "missed comma between flow collection entries"), A = g = b = null, p = d = !1, m === 63 && (a = e.input.charCodeAt(e.position + 1), F(a) && (p = d = !0, e.position++, v(e, !0, n))), l = e.line, r = e.lineStart, u = e.position, R(e, n, H, !1, !0), A = e.tag, g = e.result, v(e, !0, n), m = e.input.charCodeAt(e.position), (d || e.line === l) && m === 58 && (p = !0, m = e.input.charCodeAt(++e.position), v(e, !0, n), R(e, n, H, !1, !0), b = e.result), s ? N$1(e, f, x, A, g, b, l, r, u) : p ? f.push(N$1(e, null, x, A, g, b, l, r, u)) : f.push(g), v(e, !0, n), m = e.input.charCodeAt(e.position), m === 44 ? (i = !0, m = e.input.charCodeAt(++e.position)) : i = !1;
|
|
658
|
+
}
|
|
659
|
+
h(e, "unexpected end of the stream within a flow collection");
|
|
660
|
+
}
|
|
661
|
+
function _i(e, n) {
|
|
662
|
+
var i, l, r = Z, u = !1, o = !1, f = n, c = 0, a = !1, t, p;
|
|
663
|
+
if (p = e.input.charCodeAt(e.position), p === 124) l = !1;
|
|
664
|
+
else if (p === 62) l = !0;
|
|
665
|
+
else return !1;
|
|
666
|
+
for (e.kind = "scalar", e.result = ""; p !== 0;) if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45) Z === r ? r = p === 43 ? de : ai : h(e, "repeat of a chomping mode identifier");
|
|
667
|
+
else if ((t = xi(p)) >= 0) t === 0 ? h(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? h(e, "repeat of an indentation width identifier") : (f = n + t - 1, o = !0);
|
|
668
|
+
else break;
|
|
669
|
+
if (I(p)) {
|
|
670
|
+
do
|
|
671
|
+
p = e.input.charCodeAt(++e.position);
|
|
672
|
+
while (I(p));
|
|
673
|
+
if (p === 35) do
|
|
674
|
+
p = e.input.charCodeAt(++e.position);
|
|
675
|
+
while (!S(p) && p !== 0);
|
|
676
|
+
}
|
|
677
|
+
for (; p !== 0;) {
|
|
678
|
+
for (z(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!o || e.lineIndent < f) && p === 32;) e.lineIndent++, p = e.input.charCodeAt(++e.position);
|
|
679
|
+
if (!o && e.lineIndent > f && (f = e.lineIndent), S(p)) {
|
|
680
|
+
c++;
|
|
681
|
+
continue;
|
|
682
|
+
}
|
|
683
|
+
if (e.lineIndent < f) {
|
|
684
|
+
r === de ? e.result += y.repeat(`
|
|
685
|
+
`, u ? 1 + c : c) : r === Z && u && (e.result += `
|
|
686
|
+
`);
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
for (l ? I(p) ? (a = !0, e.result += y.repeat(`
|
|
690
|
+
`, u ? 1 + c : c)) : a ? (a = !1, e.result += y.repeat(`
|
|
691
|
+
`, c + 1)) : c === 0 ? u && (e.result += " ") : e.result += y.repeat(`
|
|
692
|
+
`, c) : e.result += y.repeat(`
|
|
693
|
+
`, u ? 1 + c : c), u = !0, o = !0, c = 0, i = e.position; !S(p) && p !== 0;) p = e.input.charCodeAt(++e.position);
|
|
694
|
+
O(e, i, e.position, !1);
|
|
695
|
+
}
|
|
696
|
+
return !0;
|
|
697
|
+
}
|
|
698
|
+
function we(e, n) {
|
|
699
|
+
var i, l = e.tag, r = e.anchor, u = [], o, f = !1, c;
|
|
700
|
+
if (e.firstTabInLine !== -1) return !1;
|
|
701
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !F(o))));) {
|
|
702
|
+
if (f = !0, e.position++, v(e, !0, -1) && e.lineIndent <= n) {
|
|
703
|
+
u.push(null), c = e.input.charCodeAt(e.position);
|
|
704
|
+
continue;
|
|
705
|
+
}
|
|
706
|
+
if (i = e.line, R(e, n, he, !1, !0), u.push(e.result), v(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > n) && c !== 0) h(e, "bad indentation of a sequence entry");
|
|
707
|
+
else if (e.lineIndent < n) break;
|
|
708
|
+
}
|
|
709
|
+
return f ? (e.tag = l, e.anchor = r, e.kind = "sequence", e.result = u, !0) : !1;
|
|
710
|
+
}
|
|
711
|
+
function wi(e, n, i) {
|
|
712
|
+
var l, r, u, o, f, c, a = e.tag, t = e.anchor, p = {}, d = Object.create(null), s = null, x = null, g = null, A = !1, b = !1, m;
|
|
713
|
+
if (e.firstTabInLine !== -1) return !1;
|
|
714
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), m = e.input.charCodeAt(e.position); m !== 0;) {
|
|
715
|
+
if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), l = e.input.charCodeAt(e.position + 1), u = e.line, (m === 63 || m === 58) && F(l)) m === 63 ? (A && (N$1(e, p, d, s, x, null, o, f, c), s = x = g = null), b = !0, A = !0, r = !0) : A ? (A = !1, r = !0) : h(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, m = l;
|
|
716
|
+
else {
|
|
717
|
+
if (o = e.line, f = e.lineStart, c = e.position, !R(e, i, te, !1, !0)) break;
|
|
718
|
+
if (e.line === u) {
|
|
719
|
+
for (m = e.input.charCodeAt(e.position); I(m);) m = e.input.charCodeAt(++e.position);
|
|
720
|
+
if (m === 58) m = e.input.charCodeAt(++e.position), F(m) || h(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (N$1(e, p, d, s, x, null, o, f, c), s = x = g = null), b = !0, A = !1, r = !1, s = e.tag, x = e.result;
|
|
721
|
+
else if (b) h(e, "can not read an implicit mapping pair; a colon is missed");
|
|
722
|
+
else return e.tag = a, e.anchor = t, !0;
|
|
723
|
+
} else if (b) h(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
724
|
+
else return e.tag = a, e.anchor = t, !0;
|
|
725
|
+
}
|
|
726
|
+
if ((e.line === u || e.lineIndent > n) && (A && (o = e.line, f = e.lineStart, c = e.position), R(e, n, U, !0, r) && (A ? x = e.result : g = e.result), A || (N$1(e, p, d, s, x, g, o, f, c), s = x = g = null), v(e, !0, -1), m = e.input.charCodeAt(e.position)), (e.line === u || e.lineIndent > n) && m !== 0) h(e, "bad indentation of a mapping entry");
|
|
727
|
+
else if (e.lineIndent < n) break;
|
|
728
|
+
}
|
|
729
|
+
return A && N$1(e, p, d, s, x, null, o, f, c), b && (e.tag = a, e.anchor = t, e.kind = "mapping", e.result = p), b;
|
|
730
|
+
}
|
|
731
|
+
function Fi(e) {
|
|
732
|
+
var n, i = !1, l = !1, r, u, o;
|
|
733
|
+
if (o = e.input.charCodeAt(e.position), o !== 33) return !1;
|
|
734
|
+
if (e.tag !== null && h(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (i = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (l = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!", n = e.position, i) {
|
|
735
|
+
do
|
|
736
|
+
o = e.input.charCodeAt(++e.position);
|
|
737
|
+
while (o !== 0 && o !== 62);
|
|
738
|
+
e.position < e.length ? (u = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : h(e, "unexpected end of the stream within a verbatim tag");
|
|
739
|
+
} else {
|
|
740
|
+
for (; o !== 0 && !F(o);) o === 33 && (l ? h(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), se.test(r) || h(e, "named tag handle cannot contain such characters"), l = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
741
|
+
u = e.input.slice(n, e.position), hi.test(u) && h(e, "tag suffix cannot contain flow indicator characters");
|
|
742
|
+
}
|
|
743
|
+
u && !xe.test(u) && h(e, "tag name cannot contain such characters: " + u);
|
|
744
|
+
try {
|
|
745
|
+
u = decodeURIComponent(u);
|
|
746
|
+
} catch {
|
|
747
|
+
h(e, "tag name is malformed: " + u);
|
|
748
|
+
}
|
|
749
|
+
return i ? e.tag = u : T.call(e.tagMap, r) ? e.tag = e.tagMap[r] + u : r === "!" ? e.tag = "!" + u : r === "!!" ? e.tag = "tag:yaml.org,2002:" + u : h(e, "undeclared tag handle \"" + r + "\""), !0;
|
|
750
|
+
}
|
|
751
|
+
function bi(e) {
|
|
752
|
+
var n, i;
|
|
753
|
+
if (i = e.input.charCodeAt(e.position), i !== 38) return !1;
|
|
754
|
+
for (e.anchor !== null && h(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !F(i) && !k(i);) i = e.input.charCodeAt(++e.position);
|
|
755
|
+
return e.position === n && h(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
756
|
+
}
|
|
757
|
+
function Si(e) {
|
|
758
|
+
var n, i, l;
|
|
759
|
+
if (l = e.input.charCodeAt(e.position), l !== 42) return !1;
|
|
760
|
+
for (l = e.input.charCodeAt(++e.position), n = e.position; l !== 0 && !F(l) && !k(l);) l = e.input.charCodeAt(++e.position);
|
|
761
|
+
return e.position === n && h(e, "name of an alias node must contain at least one character"), i = e.input.slice(n, e.position), T.call(e.anchorMap, i) || h(e, "unidentified alias \"" + i + "\""), e.result = e.anchorMap[i], v(e, !0, -1), !0;
|
|
762
|
+
}
|
|
763
|
+
function R(e, n, i, l, r) {
|
|
764
|
+
var u, o, f, c = 1, a = !1, t = !1, p, d, s, x, g, A;
|
|
765
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, u = o = f = U === i || he === i, l && v(e, !0, -1) && (a = !0, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)), c === 1) for (; Fi(e) || bi(e);) v(e, !0, -1) ? (a = !0, f = u, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)) : f = !1;
|
|
766
|
+
if (f && (f = a || r), (c === 1 || U === i) && (H === i || te === i ? g = n : g = n + 1, A = e.position - e.lineStart, c === 1 ? f && (we(e, A) || wi(e, A, g)) || Ci(e, g) ? t = !0 : (o && _i(e, g) || vi(e, g) || yi(e, g) ? t = !0 : Si(e) ? (t = !0, (e.tag !== null || e.anchor !== null) && h(e, "alias node should not have any properties")) : Ai(e, g, H === i) && (t = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (t = f && we(e, A))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
767
|
+
else if (e.tag === "?") {
|
|
768
|
+
for (e.result !== null && e.kind !== "scalar" && h(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), p = 0, d = e.implicitTypes.length; p < d; p += 1) if (x = e.implicitTypes[p], x.resolve(e.result)) {
|
|
769
|
+
e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
770
|
+
break;
|
|
771
|
+
}
|
|
772
|
+
} else if (e.tag !== "!") {
|
|
773
|
+
if (T.call(e.typeMap[e.kind || "fallback"], e.tag)) x = e.typeMap[e.kind || "fallback"][e.tag];
|
|
774
|
+
else for (x = null, s = e.typeMap.multi[e.kind || "fallback"], p = 0, d = s.length; p < d; p += 1) if (e.tag.slice(0, s[p].tag.length) === s[p].tag) {
|
|
775
|
+
x = s[p];
|
|
776
|
+
break;
|
|
777
|
+
}
|
|
778
|
+
x || h(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && h(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + x.kind + "\", not \"" + e.kind + "\""), x.resolve(e.result, e.tag) ? (e.result = x.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : h(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
779
|
+
}
|
|
780
|
+
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || t;
|
|
781
|
+
}
|
|
782
|
+
function Ei(e) {
|
|
783
|
+
var n = e.position, i, l, r, u = !1, o;
|
|
784
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (v(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
|
|
785
|
+
for (u = !0, o = e.input.charCodeAt(++e.position), i = e.position; o !== 0 && !F(o);) o = e.input.charCodeAt(++e.position);
|
|
786
|
+
for (l = e.input.slice(i, e.position), r = [], l.length < 1 && h(e, "directive name must not be less than one character in length"); o !== 0;) {
|
|
787
|
+
for (; I(o);) o = e.input.charCodeAt(++e.position);
|
|
788
|
+
if (o === 35) {
|
|
789
|
+
do
|
|
790
|
+
o = e.input.charCodeAt(++e.position);
|
|
791
|
+
while (o !== 0 && !S(o));
|
|
792
|
+
break;
|
|
793
|
+
}
|
|
794
|
+
if (S(o)) break;
|
|
795
|
+
for (i = e.position; o !== 0 && !F(o);) o = e.input.charCodeAt(++e.position);
|
|
796
|
+
r.push(e.input.slice(i, e.position));
|
|
797
|
+
}
|
|
798
|
+
o !== 0 && z(e), T.call(Ce, l) ? Ce[l](e, l, r) : K(e, "unknown document directive \"" + l + "\"");
|
|
799
|
+
}
|
|
800
|
+
if (v(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, v(e, !0, -1)) : u && h(e, "directives end mark is expected"), R(e, e.lineIndent - 1, U, !1, !0), v(e, !0, -1), e.checkLineBreaks && ti.test(e.input.slice(n, e.position)) && K(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && q(e)) {
|
|
801
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, v(e, !0, -1));
|
|
802
|
+
return;
|
|
803
|
+
}
|
|
804
|
+
if (e.position < e.length - 1) h(e, "end of the stream or a document separator is expected");
|
|
805
|
+
else return;
|
|
806
|
+
}
|
|
807
|
+
function Ti(e, n) {
|
|
808
|
+
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
809
|
+
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
810
|
+
var i = new gi(e, n), l = e.indexOf("\0");
|
|
811
|
+
for (l !== -1 && (i.position = l, h(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32;) i.lineIndent += 1, i.position += 1;
|
|
812
|
+
for (; i.position < i.length - 1;) Ei(i);
|
|
813
|
+
return i.documents;
|
|
814
|
+
}
|
|
815
|
+
function Oi(e, n) {
|
|
816
|
+
var i = Ti(e, n);
|
|
817
|
+
if (i.length !== 0) {
|
|
818
|
+
if (i.length === 1) return i[0];
|
|
819
|
+
throw new w("expected a single document in the stream, but found more");
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
var ki = { load: Oi }, Fe = Object.prototype.toString, be = Object.prototype.hasOwnProperty, ee = 65279, Li = 9, Y = 10, Ni = 13, Ri = 32, Di = 33, Mi = 34, ne = 35, Yi = 37, Bi = 38, Pi = 39, ji = 42, Se = 44, Hi = 45, G = 58, Ui = 61, Ki = 62, qi = 63, Gi = 64, Ee = 91, Te = 93, Wi = 96, Oe = 123, $i = 124, Ie = 125, _ = {};
|
|
823
|
+
_[0] = "\\0", _[7] = "\\a", _[8] = "\\b", _[9] = "\\t", _[10] = "\\n", _[11] = "\\v", _[12] = "\\f", _[13] = "\\r", _[27] = "\\e", _[34] = "\\\"", _[92] = "\\\\", _[133] = "\\N", _[160] = "\\_", _[8232] = "\\L", _[8233] = "\\P";
|
|
824
|
+
var Qi = [
|
|
825
|
+
"y",
|
|
826
|
+
"Y",
|
|
827
|
+
"yes",
|
|
828
|
+
"Yes",
|
|
829
|
+
"YES",
|
|
830
|
+
"on",
|
|
831
|
+
"On",
|
|
832
|
+
"ON",
|
|
833
|
+
"n",
|
|
834
|
+
"N",
|
|
835
|
+
"no",
|
|
836
|
+
"No",
|
|
837
|
+
"NO",
|
|
838
|
+
"off",
|
|
839
|
+
"Off",
|
|
840
|
+
"OFF"
|
|
841
|
+
], Vi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
842
|
+
function Xi(e, n) {
|
|
843
|
+
var i, l, r, u, o, f, c;
|
|
844
|
+
if (n === null) return {};
|
|
845
|
+
for (i = {}, l = Object.keys(n), r = 0, u = l.length; r < u; r += 1) o = l[r], f = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && be.call(c.styleAliases, f) && (f = c.styleAliases[f]), i[o] = f;
|
|
846
|
+
return i;
|
|
847
|
+
}
|
|
848
|
+
function Zi(e) {
|
|
849
|
+
var n, i, l;
|
|
850
|
+
if (n = e.toString(16).toUpperCase(), e <= 255) i = "x", l = 2;
|
|
851
|
+
else if (e <= 65535) i = "u", l = 4;
|
|
852
|
+
else if (e <= 4294967295) i = "U", l = 8;
|
|
853
|
+
else throw new w("code point within a string may not be greater than 0xFFFFFFFF");
|
|
854
|
+
return "\\" + i + y.repeat("0", l - n.length) + n;
|
|
855
|
+
}
|
|
856
|
+
var zi = 1, B = 2;
|
|
857
|
+
function Ji(e) {
|
|
858
|
+
this.schema = e.schema || pe, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = y.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Xi(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? B : zi, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
859
|
+
}
|
|
860
|
+
function ke(e, n) {
|
|
861
|
+
for (var i = y.repeat(" ", n), l = 0, r = -1, u = "", o, f = e.length; l < f;) r = e.indexOf(`
|
|
862
|
+
`, l), r === -1 ? (o = e.slice(l), l = f) : (o = e.slice(l, r + 1), l = r + 1), o.length && o !== `
|
|
863
|
+
` && (u += i), u += o;
|
|
864
|
+
return u;
|
|
865
|
+
}
|
|
866
|
+
function ie(e, n) {
|
|
867
|
+
return `
|
|
868
|
+
` + y.repeat(" ", e.indent * n);
|
|
869
|
+
}
|
|
870
|
+
function er(e, n) {
|
|
871
|
+
var i, l, r;
|
|
872
|
+
for (i = 0, l = e.implicitTypes.length; i < l; i += 1) if (r = e.implicitTypes[i], r.resolve(n)) return !0;
|
|
873
|
+
return !1;
|
|
874
|
+
}
|
|
875
|
+
function W(e) {
|
|
876
|
+
return e === Ri || e === Li;
|
|
877
|
+
}
|
|
878
|
+
function P(e) {
|
|
879
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ee || 65536 <= e && e <= 1114111;
|
|
880
|
+
}
|
|
881
|
+
function Le(e) {
|
|
882
|
+
return P(e) && e !== ee && e !== Ni && e !== Y;
|
|
883
|
+
}
|
|
884
|
+
function Ne(e, n, i) {
|
|
885
|
+
var l = Le(e), r = l && !W(e);
|
|
886
|
+
return (i ? l : l && e !== Se && e !== Ee && e !== Te && e !== Oe && e !== Ie) && e !== ne && !(n === G && !r) || Le(n) && !W(n) && e === ne || n === G && r;
|
|
887
|
+
}
|
|
888
|
+
function nr(e) {
|
|
889
|
+
return P(e) && e !== ee && !W(e) && e !== Hi && e !== qi && e !== G && e !== Se && e !== Ee && e !== Te && e !== Oe && e !== Ie && e !== ne && e !== Bi && e !== ji && e !== Di && e !== $i && e !== Ui && e !== Ki && e !== Pi && e !== Mi && e !== Yi && e !== Gi && e !== Wi;
|
|
890
|
+
}
|
|
891
|
+
function ir(e) {
|
|
892
|
+
return !W(e) && e !== G;
|
|
893
|
+
}
|
|
894
|
+
function j(e, n) {
|
|
895
|
+
var i = e.charCodeAt(n), l;
|
|
896
|
+
return i >= 55296 && i <= 56319 && n + 1 < e.length && (l = e.charCodeAt(n + 1), l >= 56320 && l <= 57343) ? (i - 55296) * 1024 + l - 56320 + 65536 : i;
|
|
897
|
+
}
|
|
898
|
+
function Re(e) {
|
|
899
|
+
return /^\n* /.test(e);
|
|
900
|
+
}
|
|
901
|
+
var De = 1, re = 2, Me = 3, Ye = 4, D = 5;
|
|
902
|
+
function rr(e, n, i, l, r, u, o, f) {
|
|
903
|
+
var c, a = 0, t = null, p = !1, d = !1, s = l !== -1, x = -1, g = nr(j(e, 0)) && ir(j(e, e.length - 1));
|
|
904
|
+
if (n || o) for (c = 0; c < e.length; a >= 65536 ? c += 2 : c++) {
|
|
905
|
+
if (a = j(e, c), !P(a)) return D;
|
|
906
|
+
g = g && Ne(a, t, f), t = a;
|
|
907
|
+
}
|
|
908
|
+
else {
|
|
909
|
+
for (c = 0; c < e.length; a >= 65536 ? c += 2 : c++) {
|
|
910
|
+
if (a = j(e, c), a === Y) p = !0, s && (d = d || c - x - 1 > l && e[x + 1] !== " ", x = c);
|
|
911
|
+
else if (!P(a)) return D;
|
|
912
|
+
g = g && Ne(a, t, f), t = a;
|
|
913
|
+
}
|
|
914
|
+
d = d || s && c - x - 1 > l && e[x + 1] !== " ";
|
|
915
|
+
}
|
|
916
|
+
return !p && !d ? g && !o && !r(e) ? De : u === B ? D : re : i > 9 && Re(e) ? D : o ? u === B ? D : re : d ? Ye : Me;
|
|
917
|
+
}
|
|
918
|
+
function lr(e, n, i, l, r) {
|
|
919
|
+
e.dump = function() {
|
|
920
|
+
if (n.length === 0) return e.quotingType === B ? "\"\"" : "''";
|
|
921
|
+
if (!e.noCompatMode && (Qi.indexOf(n) !== -1 || Vi.test(n))) return e.quotingType === B ? "\"" + n + "\"" : "'" + n + "'";
|
|
922
|
+
var u = e.indent * Math.max(1, i), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - u), f = l || e.flowLevel > -1 && i >= e.flowLevel;
|
|
923
|
+
function c(a) {
|
|
924
|
+
return er(e, a);
|
|
925
|
+
}
|
|
926
|
+
switch (rr(n, f, e.indent, o, c, e.quotingType, e.forceQuotes && !l, r)) {
|
|
927
|
+
case De: return n;
|
|
928
|
+
case re: return "'" + n.replace(/'/g, "''") + "'";
|
|
929
|
+
case Me: return "|" + Be(n, e.indent) + Pe(ke(n, u));
|
|
930
|
+
case Ye: return ">" + Be(n, e.indent) + Pe(ke(or(n, o), u));
|
|
931
|
+
case D: return "\"" + ur(n) + "\"";
|
|
932
|
+
default: throw new w("impossible error: invalid scalar style");
|
|
933
|
+
}
|
|
934
|
+
}();
|
|
935
|
+
}
|
|
936
|
+
function Be(e, n) {
|
|
937
|
+
var i = Re(e) ? String(n) : "", l = e[e.length - 1] === `
|
|
938
|
+
`;
|
|
939
|
+
return i + (l && (e[e.length - 2] === `
|
|
940
|
+
` || e === `
|
|
941
|
+
`) ? "+" : l ? "" : "-") + `
|
|
942
|
+
`;
|
|
943
|
+
}
|
|
944
|
+
function Pe(e) {
|
|
945
|
+
return e[e.length - 1] === `
|
|
946
|
+
` ? e.slice(0, -1) : e;
|
|
947
|
+
}
|
|
948
|
+
function or(e, n) {
|
|
949
|
+
for (var i = /(\n+)([^\n]*)/g, l = function() {
|
|
950
|
+
var a = e.indexOf(`
|
|
951
|
+
`);
|
|
952
|
+
return a = a !== -1 ? a : e.length, i.lastIndex = a, je(e.slice(0, a), n);
|
|
953
|
+
}(), r = e[0] === `
|
|
954
|
+
` || e[0] === " ", u, o; o = i.exec(e);) {
|
|
955
|
+
var f = o[1], c = o[2];
|
|
956
|
+
u = c[0] === " ", l += f + (!r && !u && c !== "" ? `
|
|
957
|
+
` : "") + je(c, n), r = u;
|
|
958
|
+
}
|
|
959
|
+
return l;
|
|
960
|
+
}
|
|
961
|
+
function je(e, n) {
|
|
962
|
+
if (e === "" || e[0] === " ") return e;
|
|
963
|
+
for (var i = / [^ ]/g, l, r = 0, u, o = 0, f = 0, c = ""; l = i.exec(e);) f = l.index, f - r > n && (u = o > r ? o : f, c += `
|
|
964
|
+
` + e.slice(r, u), r = u + 1), o = f;
|
|
965
|
+
return c += `
|
|
966
|
+
`, e.length - r > n && o > r ? c += e.slice(r, o) + `
|
|
967
|
+
` + e.slice(o + 1) : c += e.slice(r), c.slice(1);
|
|
968
|
+
}
|
|
969
|
+
function ur(e) {
|
|
970
|
+
for (var n = "", i = 0, l, r = 0; r < e.length; i >= 65536 ? r += 2 : r++) i = j(e, r), l = _[i], !l && P(i) ? (n += e[r], i >= 65536 && (n += e[r + 1])) : n += l || Zi(i);
|
|
971
|
+
return n;
|
|
972
|
+
}
|
|
973
|
+
function fr(e, n, i) {
|
|
974
|
+
var l = "", r = e.tag, u, o, f;
|
|
975
|
+
for (u = 0, o = i.length; u < o; u += 1) f = i[u], e.replacer && (f = e.replacer.call(i, String(u), f)), (E(e, n, f, !1, !1) || typeof f > "u" && E(e, n, null, !1, !1)) && (l !== "" && (l += "," + (e.condenseFlow ? "" : " ")), l += e.dump);
|
|
976
|
+
e.tag = r, e.dump = "[" + l + "]";
|
|
977
|
+
}
|
|
978
|
+
function He(e, n, i, l) {
|
|
979
|
+
var r = "", u = e.tag, o, f, c;
|
|
980
|
+
for (o = 0, f = i.length; o < f; o += 1) c = i[o], e.replacer && (c = e.replacer.call(i, String(o), c)), (E(e, n + 1, c, !0, !0, !1, !0) || typeof c > "u" && E(e, n + 1, null, !0, !0, !1, !0)) && ((!l || r !== "") && (r += ie(e, n)), e.dump && Y === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
981
|
+
e.tag = u, e.dump = r || "[]";
|
|
982
|
+
}
|
|
983
|
+
function cr(e, n, i) {
|
|
984
|
+
var l = "", r = e.tag, u = Object.keys(i), o, f, c, a, t;
|
|
985
|
+
for (o = 0, f = u.length; o < f; o += 1) t = "", l !== "" && (t += ", "), e.condenseFlow && (t += "\""), c = u[o], a = i[c], e.replacer && (a = e.replacer.call(i, c, a)), E(e, n, c, !1, !1) && (e.dump.length > 1024 && (t += "? "), t += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), E(e, n, a, !1, !1) && (t += e.dump, l += t));
|
|
986
|
+
e.tag = r, e.dump = "{" + l + "}";
|
|
987
|
+
}
|
|
988
|
+
function ar(e, n, i, l) {
|
|
989
|
+
var r = "", u = e.tag, o = Object.keys(i), f, c, a, t, p, d;
|
|
990
|
+
if (e.sortKeys === !0) o.sort();
|
|
991
|
+
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
992
|
+
else if (e.sortKeys) throw new w("sortKeys must be a boolean or a function");
|
|
993
|
+
for (f = 0, c = o.length; f < c; f += 1) d = "", (!l || r !== "") && (d += ie(e, n)), a = o[f], t = i[a], e.replacer && (t = e.replacer.call(i, a, t)), E(e, n + 1, a, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Y === e.dump.charCodeAt(0) ? d += "?" : d += "? "), d += e.dump, p && (d += ie(e, n)), E(e, n + 1, t, !0, p) && (e.dump && Y === e.dump.charCodeAt(0) ? d += ":" : d += ": ", d += e.dump, r += d));
|
|
994
|
+
e.tag = u, e.dump = r || "{}";
|
|
995
|
+
}
|
|
996
|
+
function Ue(e, n, i) {
|
|
997
|
+
var l, r, u, o, f, c;
|
|
998
|
+
for (r = i ? e.explicitTypes : e.implicitTypes, u = 0, o = r.length; u < o; u += 1) if (f = r[u], (f.instanceOf || f.predicate) && (!f.instanceOf || typeof n == "object" && n instanceof f.instanceOf) && (!f.predicate || f.predicate(n))) {
|
|
999
|
+
if (i ? f.multi && f.representName ? e.tag = f.representName(n) : e.tag = f.tag : e.tag = "?", f.represent) {
|
|
1000
|
+
if (c = e.styleMap[f.tag] || f.defaultStyle, Fe.call(f.represent) === "[object Function]") l = f.represent(n, c);
|
|
1001
|
+
else if (be.call(f.represent, c)) l = f.represent[c](n, c);
|
|
1002
|
+
else throw new w("!<" + f.tag + "> tag resolver accepts not \"" + c + "\" style");
|
|
1003
|
+
e.dump = l;
|
|
1004
|
+
}
|
|
1005
|
+
return !0;
|
|
1006
|
+
}
|
|
1007
|
+
return !1;
|
|
1008
|
+
}
|
|
1009
|
+
function E(e, n, i, l, r, u, o) {
|
|
1010
|
+
e.tag = null, e.dump = i, Ue(e, i, !1) || Ue(e, i, !0);
|
|
1011
|
+
var f = Fe.call(e.dump), c = l, a;
|
|
1012
|
+
l && (l = e.flowLevel < 0 || e.flowLevel > n);
|
|
1013
|
+
var t = f === "[object Object]" || f === "[object Array]", p, d;
|
|
1014
|
+
if (t && (p = e.duplicates.indexOf(i), d = p !== -1), (e.tag !== null && e.tag !== "?" || d || e.indent !== 2 && n > 0) && (r = !1), d && e.usedDuplicates[p]) e.dump = "*ref_" + p;
|
|
1015
|
+
else {
|
|
1016
|
+
if (t && d && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), f === "[object Object]") l && Object.keys(e.dump).length !== 0 ? (ar(e, n, e.dump, r), d && (e.dump = "&ref_" + p + e.dump)) : (cr(e, n, e.dump), d && (e.dump = "&ref_" + p + " " + e.dump));
|
|
1017
|
+
else if (f === "[object Array]") l && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? He(e, n - 1, e.dump, r) : He(e, n, e.dump, r), d && (e.dump = "&ref_" + p + e.dump)) : (fr(e, n, e.dump), d && (e.dump = "&ref_" + p + " " + e.dump));
|
|
1018
|
+
else if (f === "[object String]") e.tag !== "?" && lr(e, e.dump, n, u, c);
|
|
1019
|
+
else {
|
|
1020
|
+
if (f === "[object Undefined]") return !1;
|
|
1021
|
+
if (e.skipInvalid) return !1;
|
|
1022
|
+
throw new w("unacceptable kind of an object to dump " + f);
|
|
1023
|
+
}
|
|
1024
|
+
e.tag !== null && e.tag !== "?" && (a = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), e.tag[0] === "!" ? a = "!" + a : a.slice(0, 18) === "tag:yaml.org,2002:" ? a = "!!" + a.slice(18) : a = "!<" + a + ">", e.dump = a + " " + e.dump);
|
|
1025
|
+
}
|
|
1026
|
+
return !0;
|
|
1027
|
+
}
|
|
1028
|
+
function pr(e, n) {
|
|
1029
|
+
var i = [], l = [], r, u;
|
|
1030
|
+
for (le(e, i, l), r = 0, u = l.length; r < u; r += 1) n.duplicates.push(i[l[r]]);
|
|
1031
|
+
n.usedDuplicates = new Array(u);
|
|
1032
|
+
}
|
|
1033
|
+
function le(e, n, i) {
|
|
1034
|
+
var l, r, u;
|
|
1035
|
+
if (e !== null && typeof e == "object") if (r = n.indexOf(e), r !== -1) i.indexOf(r) === -1 && i.push(r);
|
|
1036
|
+
else if (n.push(e), Array.isArray(e)) for (r = 0, u = e.length; r < u; r += 1) le(e[r], n, i);
|
|
1037
|
+
else for (l = Object.keys(e), r = 0, u = l.length; r < u; r += 1) le(e[l[r]], n, i);
|
|
1038
|
+
}
|
|
1039
|
+
function tr(e, n) {
|
|
1040
|
+
n = n || {};
|
|
1041
|
+
var i = new Ji(n);
|
|
1042
|
+
i.noRefs || pr(e, i);
|
|
1043
|
+
var l = e;
|
|
1044
|
+
return i.replacer && (l = i.replacer.call({ "": l }, "", l)), E(i, 0, l, !0, !0) ? i.dump + `
|
|
1045
|
+
` : "";
|
|
1046
|
+
}
|
|
1047
|
+
var dr = { dump: tr }, sr = ki.load, xr = dr.dump;
|
|
1048
|
+
function mr(e, n) {
|
|
1049
|
+
const i = sr(e, n);
|
|
1050
|
+
return N(e, i, n), i;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
//#endregion
|
|
1054
|
+
export { mr as parseYAML };
|