@powerlines/plugin-env 0.16.66 → 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 (142) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +0 -2
  2. package/dist/_virtual/_rolldown/runtime.mjs +2 -31
  3. package/dist/babel/plugin.cjs +83 -11
  4. package/dist/babel/plugin.mjs +83 -11
  5. package/dist/babel/plugin.mjs.map +1 -1
  6. package/dist/components/env-builtin.cjs +1 -1
  7. package/dist/components/env-builtin.mjs +1 -1
  8. package/dist/helpers/automd-generator.cjs +14 -4
  9. package/dist/helpers/automd-generator.d.mts +1 -1
  10. package/dist/helpers/automd-generator.mjs +14 -4
  11. package/dist/helpers/automd-generator.mjs.map +1 -1
  12. package/dist/helpers/create-reflection-resource.cjs +8 -0
  13. package/dist/helpers/create-reflection-resource.mjs +9 -0
  14. package/dist/helpers/create-reflection-resource.mjs.map +1 -1
  15. package/dist/helpers/docs-helper.cjs +8 -0
  16. package/dist/helpers/docs-helper.mjs +8 -0
  17. package/dist/helpers/docs-helper.mjs.map +1 -1
  18. package/dist/helpers/index.cjs +1 -0
  19. package/dist/helpers/index.mjs +2 -2
  20. package/dist/helpers/load.cjs +61 -10
  21. package/dist/helpers/load.mjs +60 -9
  22. package/dist/helpers/load.mjs.map +1 -1
  23. package/dist/helpers/persistence.cjs +108 -1
  24. package/dist/helpers/persistence.mjs +108 -1
  25. package/dist/helpers/persistence.mjs.map +1 -1
  26. package/dist/helpers/reflect.cjs +156 -3
  27. package/dist/helpers/reflect.mjs +156 -4
  28. package/dist/helpers/reflect.mjs.map +1 -1
  29. package/dist/helpers/source-file-env.cjs +34 -4
  30. package/dist/helpers/source-file-env.mjs +34 -4
  31. package/dist/helpers/source-file-env.mjs.map +1 -1
  32. package/dist/helpers/template-helpers.cjs +33 -5
  33. package/dist/helpers/template-helpers.mjs +33 -5
  34. package/dist/helpers/template-helpers.mjs.map +1 -1
  35. package/dist/types/index.cjs +11 -0
  36. package/dist/types/index.mjs +4 -1
  37. package/dist/types/plugin.cjs +137 -0
  38. package/dist/types/plugin.d.mts +4 -4
  39. package/dist/types/plugin.mjs +132 -1
  40. package/dist/types/plugin.mjs.map +1 -0
  41. package/dist/types/runtime.cjs +244 -0
  42. package/dist/types/runtime.mjs +242 -1
  43. package/dist/types/runtime.mjs.map +1 -0
  44. package/package.json +11 -26
  45. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.cjs +0 -346
  46. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs +0 -347
  47. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs.map +0 -1
  48. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.cjs +0 -23
  49. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs +0 -23
  50. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs.map +0 -1
  51. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.cjs +0 -10
  52. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs +0 -11
  53. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs.map +0 -1
  54. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.cjs +0 -1060
  55. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +0 -1060
  56. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs.map +0 -1
  57. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.cjs +0 -761
  58. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs +0 -761
  59. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs.map +0 -1
  60. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.cjs +0 -388
  61. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs +0 -388
  62. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs.map +0 -1
  63. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.cjs +0 -639
  64. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +0 -639
  65. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs.map +0 -1
  66. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.cjs +0 -17
  67. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +0 -15
  68. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs.map +0 -1
  69. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.cjs +0 -13
  70. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs +0 -14
  71. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs.map +0 -1
  72. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.cjs +0 -11
  73. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs +0 -12
  74. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs.map +0 -1
  75. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.cjs +0 -11
  76. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs +0 -12
  77. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs.map +0 -1
  78. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.cjs +0 -11
  79. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs +0 -12
  80. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs.map +0 -1
  81. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -46
  82. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +0 -46
  83. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +0 -1
  84. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.cjs +0 -285
  85. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs +0 -283
  86. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs.map +0 -1
  87. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.cjs +0 -71
  88. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs +0 -69
  89. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs.map +0 -1
  90. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +0 -1013
  91. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +0 -1008
  92. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +0 -1
  93. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +0 -23
  94. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +0 -10
  95. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs.map +0 -1
  96. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +0 -2695
  97. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -2682
  98. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +0 -1
  99. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +0 -4457
  100. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +0 -4455
  101. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +0 -1
  102. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +0 -29
  103. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +0 -30
  104. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs.map +0 -1
  105. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -181
  106. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -177
  107. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +0 -1
  108. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +0 -22
  109. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +0 -18
  110. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +0 -1
  111. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +0 -3967
  112. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +0 -3963
  113. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +0 -1
  114. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +0 -11766
  115. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +0 -11762
  116. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +0 -1
  117. 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
  118. 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
  119. 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
  120. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +0 -20
  121. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +0 -18
  122. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs.map +0 -1
  123. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.cjs +0 -178
  124. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs +0 -176
  125. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs.map +0 -1
  126. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +0 -13
  127. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +0 -13
  128. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map +0 -1
  129. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +0 -3
  130. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +0 -3
  131. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +0 -145
  132. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -139
  133. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +0 -1
  134. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +0 -128
  135. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +0 -127
  136. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +0 -1
  137. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +0 -138
  138. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +0 -137
  139. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +0 -1
  140. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +0 -629
  141. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +0 -628
  142. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +0 -1
@@ -1,1060 +0,0 @@
1
- //#region ../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs
2
- /*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
3
- function e(e) {
4
- return e == null;
5
- }
6
- function t(e) {
7
- return typeof e == `object` && !!e;
8
- }
9
- function n(t) {
10
- return Array.isArray(t) ? t : e(t) ? [] : [t];
11
- }
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
- }
17
- function i(e, t) {
18
- var n = ``, r;
19
- for (r = 0; r < t; r += 1) n += e;
20
- return n;
21
- }
22
- function a(e) {
23
- return e === 0 && 1 / e == -Infinity;
24
- }
25
- var o = {
26
- isNothing: e,
27
- isObject: t,
28
- toArray: n,
29
- repeat: i,
30
- isNegativeZero: a,
31
- extend: r
32
- };
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
-
37
- ` + e.mark.snippet), r + ` ` + n) : r;
38
- }
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
- }
42
- c.prototype = Object.create(Error.prototype), c.prototype.constructor = c, c.prototype.toString = function(e) {
43
- return this.name + `: ` + s(this, e);
44
- };
45
- var l = c;
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
- };
52
- }
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
- `;
68
- return c.replace(/\n$/, ``);
69
- }
70
- var p = f, m = [
71
- `kind`,
72
- `multi`,
73
- `resolve`,
74
- `construct`,
75
- `instanceOf`,
76
- `predicate`,
77
- `represent`,
78
- `representName`,
79
- `defaultStyle`,
80
- `styleAliases`
81
- ], h = [
82
- `scalar`,
83
- `sequence`,
84
- `mapping`
85
- ];
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
- });
92
- }), t;
93
- }
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
- return !0;
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
- }
103
- var v = _;
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
- }
113
- function te() {
114
- var e = {
115
- scalar: {},
116
- sequence: {},
117
- mapping: {},
118
- fallback: {},
119
- multi: {
120
- scalar: [],
121
- sequence: [],
122
- mapping: [],
123
- fallback: []
124
- }
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
- }
129
- for (t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
130
- return e;
131
- }
132
- function y(e) {
133
- return this.extend(e);
134
- }
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
- else throw new l(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);
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
- });
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
- };
151
- var ne = new y({ explicit: [
152
- new v(`tag:yaml.org,2002:str`, {
153
- kind: `scalar`,
154
- construct: function(e) {
155
- return e === null ? `` : e;
156
- }
157
- }),
158
- new v(`tag:yaml.org,2002:seq`, {
159
- kind: `sequence`,
160
- construct: function(e) {
161
- return e === null ? [] : e;
162
- }
163
- }),
164
- new v(`tag:yaml.org,2002:map`, {
165
- kind: `mapping`,
166
- construct: function(e) {
167
- return e === null ? {} : e;
168
- }
169
- })
170
- ] });
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
- }
176
- function ie() {
177
- return null;
178
- }
179
- function ae(e) {
180
- return e === null;
181
- }
182
- var oe = new v(`tag:yaml.org,2002:null`, {
183
- kind: `scalar`,
184
- resolve: re,
185
- construct: ie,
186
- predicate: ae,
187
- represent: {
188
- canonical: function() {
189
- return `~`;
190
- },
191
- lowercase: function() {
192
- return `null`;
193
- },
194
- uppercase: function() {
195
- return `NULL`;
196
- },
197
- camelcase: function() {
198
- return `Null`;
199
- },
200
- empty: function() {
201
- return ``;
202
- }
203
- },
204
- defaultStyle: `lowercase`
205
- });
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
- }
211
- function ce(e) {
212
- return e === `true` || e === `True` || e === `TRUE`;
213
- }
214
- function le(e) {
215
- return Object.prototype.toString.call(e) === `[object Boolean]`;
216
- }
217
- var ue = new v(`tag:yaml.org,2002:bool`, {
218
- kind: `scalar`,
219
- resolve: se,
220
- construct: ce,
221
- predicate: le,
222
- represent: {
223
- lowercase: function(e) {
224
- return e ? `true` : `false`;
225
- },
226
- uppercase: function(e) {
227
- return e ? `TRUE` : `FALSE`;
228
- },
229
- camelcase: function(e) {
230
- return e ? `True` : `False`;
231
- }
232
- },
233
- defaultStyle: `lowercase`
234
- });
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
- }
255
- return r && i !== `_`;
256
- }
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
- }
262
- return r && i !== `_`;
263
- }
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
- }
269
- return r && i !== `_`;
270
- }
271
- }
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
- }
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
- }
287
- return n * parseInt(t, 10);
288
- }
289
- function ge(e) {
290
- return Object.prototype.toString.call(e) === `[object Number]` && e % 1 == 0 && !o.isNegativeZero(e);
291
- }
292
- var _e = new v(`tag:yaml.org,2002:int`, {
293
- kind: `scalar`,
294
- resolve: me,
295
- construct: he,
296
- predicate: ge,
297
- represent: {
298
- binary: function(e) {
299
- return e >= 0 ? `0b` + e.toString(2) : `-0b` + e.toString(2).slice(1);
300
- },
301
- octal: function(e) {
302
- return e >= 0 ? `0o` + e.toString(8) : `-0o` + e.toString(8).slice(1);
303
- },
304
- decimal: function(e) {
305
- return e.toString(10);
306
- },
307
- hexadecimal: function(e) {
308
- return e >= 0 ? `0x` + e.toString(16).toUpperCase() : `-0x` + e.toString(16).toUpperCase().slice(1);
309
- }
310
- },
311
- defaultStyle: `decimal`,
312
- styleAliases: {
313
- binary: [2, `bin`],
314
- octal: [8, `oct`],
315
- decimal: [10, `dec`],
316
- hexadecimal: [16, `hex`]
317
- }
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 === null || !ve.test(e) || e[e.length - 1] === `_`);
321
- }
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
- }
326
- var xe = /^[-+]?[0-9]+e/;
327
- function Se(e, t) {
328
- var n;
329
- if (isNaN(e)) switch (t) {
330
- case `lowercase`: return `.nan`;
331
- case `uppercase`: return `.NAN`;
332
- case `camelcase`: return `.NaN`;
333
- }
334
- else if (e === Infinity) switch (t) {
335
- case `lowercase`: return `.inf`;
336
- case `uppercase`: return `.INF`;
337
- case `camelcase`: return `.Inf`;
338
- }
339
- else if (e === -Infinity) switch (t) {
340
- case `lowercase`: return `-.inf`;
341
- case `uppercase`: return `-.INF`;
342
- case `camelcase`: return `-.Inf`;
343
- }
344
- else if (o.isNegativeZero(e)) return `-0.0`;
345
- return n = e.toString(10), xe.test(n) ? n.replace(`e`, `.e`) : n;
346
- }
347
- function Ce(e) {
348
- return Object.prototype.toString.call(e) === `[object Number]` && (e % 1 != 0 || o.isNegativeZero(e));
349
- }
350
- var we = new v(`tag:yaml.org,2002:float`, {
351
- kind: `scalar`,
352
- resolve: ye,
353
- construct: be,
354
- predicate: Ce,
355
- represent: Se,
356
- defaultStyle: `lowercase`
357
- }), Te = ne.extend({ implicit: [
358
- oe,
359
- ue,
360
- _e,
361
- we
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 === 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
- }
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
- }
376
- function Ae(e) {
377
- return e.toISOString();
378
- }
379
- var je = new v(`tag:yaml.org,2002:timestamp`, {
380
- kind: `scalar`,
381
- resolve: Oe,
382
- construct: ke,
383
- instanceOf: Date,
384
- represent: Ae
385
- });
386
- function Me(e) {
387
- return e === `<<` || e === null;
388
- }
389
- var Ne = new v(`tag:yaml.org,2002:merge`, {
390
- kind: `scalar`,
391
- resolve: Me
392
- }), b = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
393
- \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
- }
401
- return r % 8 == 0;
402
- }
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
- }
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
- }
413
- function Le(e) {
414
- return Object.prototype.toString.call(e) === `[object Uint8Array]`;
415
- }
416
- var Re = new v(`tag:yaml.org,2002:binary`, {
417
- kind: `scalar`,
418
- resolve: Pe,
419
- construct: Fe,
420
- predicate: Le,
421
- represent: Ie
422
- }), ze = Object.prototype.hasOwnProperty, Be = Object.prototype.toString;
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
- else return !1;
430
- if (!o) return !1;
431
- if (t.indexOf(a) === -1) t.push(a);
432
- else return !1;
433
- }
434
- return !0;
435
- }
436
- function He(e) {
437
- return e === null ? [] : e;
438
- }
439
- var Ue = new v(`tag:yaml.org,2002:omap`, {
440
- kind: `sequence`,
441
- resolve: Ve,
442
- construct: He
443
- }), We = Object.prototype.toString;
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
- }
451
- return !0;
452
- }
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
- }
459
- var qe = new v(`tag:yaml.org,2002:pairs`, {
460
- kind: `sequence`,
461
- resolve: Ge,
462
- construct: Ke
463
- }), Je = Object.prototype.hasOwnProperty;
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
- return !0;
469
- }
470
- function Xe(e) {
471
- return e === null ? {} : e;
472
- }
473
- var Ze = new v(`tag:yaml.org,2002:set`, {
474
- kind: `mapping`,
475
- resolve: Ye,
476
- construct: Xe
477
- }), Qe = Te.extend({
478
- implicit: [je, Ne],
479
- explicit: [
480
- Re,
481
- Ue,
482
- qe,
483
- Ze
484
- ]
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);
488
- }
489
- function T(e) {
490
- return e === 10 || e === 13;
491
- }
492
- function E(e) {
493
- return e === 9 || e === 32;
494
- }
495
- function D(e) {
496
- return e === 9 || e === 32 || e === 10 || e === 13;
497
- }
498
- function O(e) {
499
- return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
500
- }
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
- }
505
- function ut(e) {
506
- return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
507
- }
508
- function dt(e) {
509
- return 48 <= e && e <= 57 ? e - 48 : -1;
510
- }
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
- }
515
- function pt(e) {
516
- return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
517
- }
518
- function mt(e, t, n) {
519
- t === `__proto__` ? Object.defineProperty(e, t, {
520
- configurable: !0,
521
- enumerable: !0,
522
- writable: !0,
523
- value: n
524
- }) : e[t] = n;
525
- }
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, 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
- };
538
- return n.snippet = p(n), new l(t, n);
539
- }
540
- function A(e, t) {
541
- throw vt(e, t);
542
- }
543
- function j(e, t) {
544
- e.onWarning && e.onWarning.call(null, vt(e, t));
545
- }
546
- var yt = {
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
- },
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
- try {
555
- i = decodeURIComponent(i);
556
- } catch {
557
- A(e, `tag prefix is malformed: ` + i);
558
- }
559
- e.tagMap[r] = i;
560
- }
561
- };
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
- }
569
- }
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
- else break;
594
- }
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
- continue;
617
- } else {
618
- e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
619
- break;
620
- }
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
- }
623
- return M(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
624
- }
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
- else return !0;
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
- else return !1;
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
- }
657
- A(e, `unexpected end of the stream within a flow collection`);
658
- }
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
- else return !1;
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
- else break;
667
- if (E(f)) {
668
- do
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
- }
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
- continue;
680
- }
681
- if (e.lineIndent < c) {
682
- i === nt ? e.result += o.repeat(`
683
- `, a ? 1 + l : l) : i === w && a && (e.result += `
684
- `);
685
- break;
686
- }
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
- }
694
- return !0;
695
- }
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
- continue;
703
- }
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
- }
707
- return s ? (e.tag = r, e.anchor = i, e.kind = `sequence`, e.result = a, !0) : !1;
708
- }
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
- else {
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
- }
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
- }
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
- }
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
- do
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
- } else {
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
- }
741
- a && !st.test(a) && A(e, `tag name cannot contain such characters: ` + a);
742
- try {
743
- a = decodeURIComponent(a);
744
- } catch {
745
- A(e, `tag name is malformed: ` + a);
746
- }
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
- break;
769
- }
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
- break;
775
- }
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
- }
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
- do
788
- o = e.input.charCodeAt(++e.position);
789
- while (o !== 0 && !T(o));
790
- break;
791
- }
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
- }
796
- o !== 0 && P(e), x.call(yt, r) ? yt[r](e, r, i) : j(e, `unknown document directive "` + r + `"`);
797
- }
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
- return;
801
- }
802
- if (e.position < e.length - 1) A(e, `end of the stream or a document separator is expected`);
803
- else return;
804
- }
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
- throw new l(`expected a single document in the stream, but found more`);
824
- }
825
- }
826
- var Ft = {
827
- loadAll: Nt,
828
- load: Pt
829
- }, 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 = {};
830
- 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`;
831
- var on = [
832
- `y`,
833
- `Y`,
834
- `yes`,
835
- `Yes`,
836
- `YES`,
837
- `on`,
838
- `On`,
839
- `ON`,
840
- `n`,
841
- `N`,
842
- `no`,
843
- `No`,
844
- `NO`,
845
- `off`,
846
- `Off`,
847
- `OFF`
848
- ], sn = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
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
- else throw new l(`code point within a string may not be greater than 0xFFFFFFFF`);
861
- return `\\` + n + o.repeat(`0`, r - t.length) + t;
862
- }
863
- var un = 1, W = 2;
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
- }
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
- }
873
- function G(e, t) {
874
- return `
875
- ` + o.repeat(` `, e.indent * t);
876
- }
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
- return !1;
881
- }
882
- function K(e) {
883
- return e === Bt || e === Rt;
884
- }
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
- }
888
- function mn(e) {
889
- return q(e) && e !== z && e !== zt && e !== B;
890
- }
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
- }
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
- }
898
- function _n(e) {
899
- return !K(e) && e !== H;
900
- }
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
- }
905
- function vn(e) {
906
- return /^\n* /.test(e);
907
- }
908
- var yn = 1, Y = 2, bn = 3, xn = 4, X = 5;
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
- }
915
- else {
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
- }
921
- f ||= p && c - m - 1 > r && e[m + 1] !== ` `;
922
- }
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
- }
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
- default: throw new l(`impossible error: invalid scalar style`);
940
- }
941
- }();
942
- }
943
- function wn(e, t) {
944
- var n = vn(e) ? String(t) : ``, r = e[e.length - 1] === `
945
- `;
946
- return n + (r && (e[e.length - 2] === `
947
- ` || e === `
948
- `) ? `+` : r ? `` : `-`) + `
949
- `;
950
- }
951
- function Tn(e) {
952
- return e[e.length - 1] === `
953
- ` ? e.slice(0, -1) : e;
954
- }
955
- function En(e, t) {
956
- for (var n = /(\n+)([^\n]*)/g, r = function() {
957
- var r = e.indexOf(`
958
- `);
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
- }
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
- }
1012
- return !0;
1013
- }
1014
- return !1;
1015
- }
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
- else {
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
- else {
1028
- if (e.skipInvalid) return !1;
1029
- throw new l(`unacceptable kind of an object to dump ` + s);
1030
- }
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
- }
1033
- return !0;
1034
- }
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
- ` : ``;
1053
- }
1054
- var Fn = { dump: Pn }, In = Ft.load;
1055
- Ft.loadAll;
1056
- var Ln = Fn.dump;
1057
-
1058
- //#endregion
1059
- export { In };
1060
- //# sourceMappingURL=js-yaml.mjs.map