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