@powerlines/plugin-env 0.16.67 → 0.16.68

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