@rspress/shared 2.0.7 → 2.0.9

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.
@@ -0,0 +1,2772 @@
1
+ /*! LICENSE: gray-matter.js.LICENSE.txt */
2
+ import { __webpack_require__ } from "./rslib-runtime.js";
3
+ import { createRequire as __rspack_createRequire } from "node:module";
4
+ const __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
5
+ __webpack_require__.add({
6
+ "../../node_modules/.pnpm/extend-shallow@2.0.1/node_modules/extend-shallow/index.js" (module, __unused_rspack_exports, __webpack_require__) {
7
+ var isObject = __webpack_require__("../../node_modules/.pnpm/is-extendable@0.1.1/node_modules/is-extendable/index.js");
8
+ module.exports = function(o) {
9
+ if (!isObject(o)) o = {};
10
+ var len = arguments.length;
11
+ for(var i = 1; i < len; i++){
12
+ var obj = arguments[i];
13
+ if (isObject(obj)) assign(o, obj);
14
+ }
15
+ return o;
16
+ };
17
+ function assign(a, b) {
18
+ for(var key in b)if (hasOwn(b, key)) a[key] = b[key];
19
+ }
20
+ function hasOwn(obj, key) {
21
+ return Object.prototype.hasOwnProperty.call(obj, key);
22
+ }
23
+ },
24
+ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.js" (module, __unused_rspack_exports, __webpack_require__) {
25
+ const fs = __webpack_require__("fs");
26
+ const sections = __webpack_require__("../../node_modules/.pnpm/section-matter@1.0.0/node_modules/section-matter/index.js");
27
+ const defaults = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/defaults.js");
28
+ const stringify = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/stringify.js");
29
+ const excerpt = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/excerpt.js");
30
+ const engines = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engines.js");
31
+ const toFile = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/to-file.js");
32
+ const parse = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/parse.js");
33
+ const utils = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/utils.js");
34
+ function matter(input, options) {
35
+ if ('' === input) return {
36
+ data: {},
37
+ content: input,
38
+ excerpt: '',
39
+ orig: input
40
+ };
41
+ let file = toFile(input);
42
+ const cached = matter.cache[file.content];
43
+ if (!options) {
44
+ if (cached) {
45
+ file = Object.assign({}, cached);
46
+ file.orig = cached.orig;
47
+ return file;
48
+ }
49
+ matter.cache[file.content] = file;
50
+ }
51
+ return parseMatter(file, options);
52
+ }
53
+ function parseMatter(file, options) {
54
+ const opts = defaults(options);
55
+ const open = opts.delimiters[0];
56
+ const close = '\n' + opts.delimiters[1];
57
+ let str = file.content;
58
+ if (opts.language) file.language = opts.language;
59
+ const openLen = open.length;
60
+ if (!utils.startsWith(str, open, openLen)) {
61
+ excerpt(file, opts);
62
+ return file;
63
+ }
64
+ if (str.charAt(openLen) === open.slice(-1)) return file;
65
+ str = str.slice(openLen);
66
+ const len = str.length;
67
+ const language = matter.language(str, opts);
68
+ if (language.name) {
69
+ file.language = language.name;
70
+ str = str.slice(language.raw.length);
71
+ }
72
+ let closeIndex = str.indexOf(close);
73
+ if (-1 === closeIndex) closeIndex = len;
74
+ file.matter = str.slice(0, closeIndex);
75
+ const block = file.matter.replace(/^\s*#[^\n]+/gm, '').trim();
76
+ if ('' === block) {
77
+ file.isEmpty = true;
78
+ file.empty = file.content;
79
+ file.data = {};
80
+ } else file.data = parse(file.language, file.matter, opts);
81
+ if (closeIndex === len) file.content = '';
82
+ else {
83
+ file.content = str.slice(closeIndex + close.length);
84
+ if ('\r' === file.content[0]) file.content = file.content.slice(1);
85
+ if ('\n' === file.content[0]) file.content = file.content.slice(1);
86
+ }
87
+ excerpt(file, opts);
88
+ if (true === opts.sections || 'function' == typeof opts.section) sections(file, opts.section);
89
+ return file;
90
+ }
91
+ matter.engines = engines;
92
+ matter.stringify = function(file, data, options) {
93
+ if ('string' == typeof file) file = matter(file, options);
94
+ return stringify(file, data, options);
95
+ };
96
+ matter.read = function(filepath, options) {
97
+ const str = fs.readFileSync(filepath, 'utf8');
98
+ const file = matter(str, options);
99
+ file.path = filepath;
100
+ return file;
101
+ };
102
+ matter.test = function(str, options) {
103
+ return utils.startsWith(str, defaults(options).delimiters[0]);
104
+ };
105
+ matter.language = function(str, options) {
106
+ const opts = defaults(options);
107
+ const open = opts.delimiters[0];
108
+ if (matter.test(str)) str = str.slice(open.length);
109
+ const language = str.slice(0, str.search(/\r?\n/));
110
+ return {
111
+ raw: language,
112
+ name: language ? language.trim() : ''
113
+ };
114
+ };
115
+ matter.cache = {};
116
+ matter.clearCache = function() {
117
+ matter.cache = {};
118
+ };
119
+ module.exports = matter;
120
+ },
121
+ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/defaults.js" (module, __unused_rspack_exports, __webpack_require__) {
122
+ const engines = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engines.js");
123
+ const utils = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/utils.js");
124
+ module.exports = function(options) {
125
+ const opts = Object.assign({}, options);
126
+ opts.delimiters = utils.arrayify(opts.delims || opts.delimiters || '---');
127
+ if (1 === opts.delimiters.length) opts.delimiters.push(opts.delimiters[0]);
128
+ opts.language = (opts.language || opts.lang || 'yaml').toLowerCase();
129
+ opts.engines = Object.assign({}, engines, opts.parsers, opts.engines);
130
+ return opts;
131
+ };
132
+ },
133
+ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engine.js" (module) {
134
+ module.exports = function(name, options) {
135
+ let engine = options.engines[name] || options.engines[aliase(name)];
136
+ if (void 0 === engine) throw new Error('gray-matter engine "' + name + '" is not registered');
137
+ if ('function' == typeof engine) engine = {
138
+ parse: engine
139
+ };
140
+ return engine;
141
+ };
142
+ function aliase(name) {
143
+ switch(name.toLowerCase()){
144
+ case 'js':
145
+ case "javascript":
146
+ return "javascript";
147
+ case 'coffee':
148
+ case "coffeescript":
149
+ case 'cson':
150
+ return 'coffee';
151
+ case 'yaml':
152
+ case 'yml':
153
+ return 'yaml';
154
+ default:
155
+ return name;
156
+ }
157
+ }
158
+ },
159
+ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engines.js" (module, exports, __webpack_require__) {
160
+ const yaml = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/index.js");
161
+ const engines = exports = module.exports;
162
+ engines.yaml = {
163
+ parse: yaml.safeLoad.bind(yaml),
164
+ stringify: yaml.safeDump.bind(yaml)
165
+ };
166
+ engines.json = {
167
+ parse: JSON.parse.bind(JSON),
168
+ stringify: function(obj, options) {
169
+ const opts = Object.assign({
170
+ replacer: null,
171
+ space: 2
172
+ }, options);
173
+ return JSON.stringify(obj, opts.replacer, opts.space);
174
+ }
175
+ };
176
+ engines.javascript = {
177
+ parse: function parse(str, options, wrap) {
178
+ try {
179
+ if (false !== wrap) str = '(function() {\nreturn ' + str.trim() + ';\n}());';
180
+ return eval(str) || {};
181
+ } catch (err) {
182
+ if (false !== wrap && /(unexpected|identifier)/i.test(err.message)) return parse(str, options, false);
183
+ throw new SyntaxError(err);
184
+ }
185
+ },
186
+ stringify: function() {
187
+ throw new Error('stringifying JavaScript is not supported');
188
+ }
189
+ };
190
+ },
191
+ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/excerpt.js" (module, __unused_rspack_exports, __webpack_require__) {
192
+ const defaults = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/defaults.js");
193
+ module.exports = function(file, options) {
194
+ const opts = defaults(options);
195
+ if (null == file.data) file.data = {};
196
+ if ('function' == typeof opts.excerpt) return opts.excerpt(file, opts);
197
+ const sep = file.data.excerpt_separator || opts.excerpt_separator;
198
+ if (null == sep && (false === opts.excerpt || null == opts.excerpt)) return file;
199
+ const delimiter = 'string' == typeof opts.excerpt ? opts.excerpt : sep || opts.delimiters[0];
200
+ const idx = file.content.indexOf(delimiter);
201
+ if (-1 !== idx) file.excerpt = file.content.slice(0, idx);
202
+ return file;
203
+ };
204
+ },
205
+ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
206
+ const getEngine = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engine.js");
207
+ const defaults = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/defaults.js");
208
+ module.exports = function(language, str, options) {
209
+ const opts = defaults(options);
210
+ const engine = getEngine(language, opts);
211
+ if ('function' != typeof engine.parse) throw new TypeError('expected "' + language + '.parse" to be a function');
212
+ return engine.parse(str, opts);
213
+ };
214
+ },
215
+ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/stringify.js" (module, __unused_rspack_exports, __webpack_require__) {
216
+ const typeOf = __webpack_require__("../../node_modules/.pnpm/kind-of@6.0.3/node_modules/kind-of/index.js");
217
+ const getEngine = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engine.js");
218
+ const defaults = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/defaults.js");
219
+ module.exports = function(file, data, options) {
220
+ if (null == data && null == options) switch(typeOf(file)){
221
+ case 'object':
222
+ data = file.data;
223
+ options = {};
224
+ break;
225
+ case 'string':
226
+ return file;
227
+ default:
228
+ throw new TypeError('expected file to be a string or object');
229
+ }
230
+ const str = file.content;
231
+ const opts = defaults(options);
232
+ if (null == data) {
233
+ if (!opts.data) return file;
234
+ data = opts.data;
235
+ }
236
+ const language = file.language || opts.language;
237
+ const engine = getEngine(language, opts);
238
+ if ('function' != typeof engine.stringify) throw new TypeError('expected "' + language + '.stringify" to be a function');
239
+ data = Object.assign({}, file.data, data);
240
+ const open = opts.delimiters[0];
241
+ const close = opts.delimiters[1];
242
+ const matter = engine.stringify(data, options).trim();
243
+ let buf = '';
244
+ if ('{}' !== matter) buf = newline(open) + newline(matter) + newline(close);
245
+ if ('string' == typeof file.excerpt && '' !== file.excerpt) {
246
+ if (-1 === str.indexOf(file.excerpt.trim())) buf += newline(file.excerpt) + newline(close);
247
+ }
248
+ return buf + newline(str);
249
+ };
250
+ function newline(str) {
251
+ return '\n' !== str.slice(-1) ? str + '\n' : str;
252
+ }
253
+ },
254
+ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/to-file.js" (module, __unused_rspack_exports, __webpack_require__) {
255
+ const typeOf = __webpack_require__("../../node_modules/.pnpm/kind-of@6.0.3/node_modules/kind-of/index.js");
256
+ const stringify = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/stringify.js");
257
+ const utils = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/utils.js");
258
+ module.exports = function(file) {
259
+ if ('object' !== typeOf(file)) file = {
260
+ content: file
261
+ };
262
+ if ('object' !== typeOf(file.data)) file.data = {};
263
+ if (file.contents && null == file.content) file.content = file.contents;
264
+ utils.define(file, 'orig', utils.toBuffer(file.content));
265
+ utils.define(file, 'language', file.language || '');
266
+ utils.define(file, 'matter', file.matter || '');
267
+ utils.define(file, 'stringify', function(data, options) {
268
+ if (options && options.language) file.language = options.language;
269
+ return stringify(file, data, options);
270
+ });
271
+ file.content = utils.toString(file.content);
272
+ file.isEmpty = false;
273
+ file.excerpt = '';
274
+ return file;
275
+ };
276
+ },
277
+ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/utils.js" (__unused_rspack_module, exports, __webpack_require__) {
278
+ const stripBom = __webpack_require__("../../node_modules/.pnpm/strip-bom-string@1.0.0/node_modules/strip-bom-string/index.js");
279
+ const typeOf = __webpack_require__("../../node_modules/.pnpm/kind-of@6.0.3/node_modules/kind-of/index.js");
280
+ exports.define = function(obj, key, val) {
281
+ Reflect.defineProperty(obj, key, {
282
+ enumerable: false,
283
+ configurable: true,
284
+ writable: true,
285
+ value: val
286
+ });
287
+ };
288
+ exports.isBuffer = function(val) {
289
+ return 'buffer' === typeOf(val);
290
+ };
291
+ exports.isObject = function(val) {
292
+ return 'object' === typeOf(val);
293
+ };
294
+ exports.toBuffer = function(input) {
295
+ return 'string' == typeof input ? Buffer.from(input) : input;
296
+ };
297
+ exports.toString = function(input) {
298
+ if (exports.isBuffer(input)) return stripBom(String(input));
299
+ if ('string' != typeof input) throw new TypeError('expected input to be a string or buffer');
300
+ return stripBom(input);
301
+ };
302
+ exports.arrayify = function(val) {
303
+ return val ? Array.isArray(val) ? val : [
304
+ val
305
+ ] : [];
306
+ };
307
+ exports.startsWith = function(str, substr, len) {
308
+ if ('number' != typeof len) len = substr.length;
309
+ return str.slice(0, len) === substr;
310
+ };
311
+ },
312
+ "../../node_modules/.pnpm/is-extendable@0.1.1/node_modules/is-extendable/index.js" (module) {
313
+ /*!
314
+ * is-extendable <https://github.com/jonschlinkert/is-extendable>
315
+ *
316
+ * Copyright (c) 2015, Jon Schlinkert.
317
+ * Licensed under the MIT License.
318
+ */ module.exports = function(val) {
319
+ return null != val && ('object' == typeof val || 'function' == typeof val);
320
+ };
321
+ },
322
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/index.js" (module, __unused_rspack_exports, __webpack_require__) {
323
+ var yaml = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml.js");
324
+ module.exports = yaml;
325
+ },
326
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml.js" (module, __unused_rspack_exports, __webpack_require__) {
327
+ var loader = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/loader.js");
328
+ var dumper = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/dumper.js");
329
+ function deprecated(name) {
330
+ return function() {
331
+ throw new Error('Function ' + name + ' is deprecated and cannot be used.');
332
+ };
333
+ }
334
+ module.exports.Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
335
+ module.exports.Schema = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.js");
336
+ module.exports.FAILSAFE_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js");
337
+ module.exports.JSON_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.js");
338
+ module.exports.CORE_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.js");
339
+ module.exports.DEFAULT_SAFE_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js");
340
+ module.exports.DEFAULT_FULL_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js");
341
+ module.exports.load = loader.load;
342
+ module.exports.loadAll = loader.loadAll;
343
+ module.exports.safeLoad = loader.safeLoad;
344
+ module.exports.safeLoadAll = loader.safeLoadAll;
345
+ module.exports.dump = dumper.dump;
346
+ module.exports.safeDump = dumper.safeDump;
347
+ module.exports.YAMLException = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.js");
348
+ module.exports.MINIMAL_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js");
349
+ module.exports.SAFE_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js");
350
+ module.exports.DEFAULT_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js");
351
+ module.exports.scan = deprecated('scan');
352
+ module.exports.parse = deprecated('parse');
353
+ module.exports.compose = deprecated('compose');
354
+ module.exports.addConstructor = deprecated('addConstructor');
355
+ },
356
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.js" (module) {
357
+ function isNothing(subject) {
358
+ return null == subject;
359
+ }
360
+ function isObject(subject) {
361
+ return 'object' == typeof subject && null !== subject;
362
+ }
363
+ function toArray(sequence) {
364
+ if (Array.isArray(sequence)) return sequence;
365
+ if (isNothing(sequence)) return [];
366
+ return [
367
+ sequence
368
+ ];
369
+ }
370
+ function extend(target, source) {
371
+ var index, length, key, sourceKeys;
372
+ if (source) {
373
+ sourceKeys = Object.keys(source);
374
+ for(index = 0, length = sourceKeys.length; index < length; index += 1){
375
+ key = sourceKeys[index];
376
+ target[key] = source[key];
377
+ }
378
+ }
379
+ return target;
380
+ }
381
+ function repeat(string, count) {
382
+ var result = '', cycle;
383
+ for(cycle = 0; cycle < count; cycle += 1)result += string;
384
+ return result;
385
+ }
386
+ function isNegativeZero(number) {
387
+ return 0 === number && -1 / 0 === 1 / number;
388
+ }
389
+ module.exports.isNothing = isNothing;
390
+ module.exports.isObject = isObject;
391
+ module.exports.toArray = toArray;
392
+ module.exports.repeat = repeat;
393
+ module.exports.isNegativeZero = isNegativeZero;
394
+ module.exports.extend = extend;
395
+ },
396
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/dumper.js" (module, __unused_rspack_exports, __webpack_require__) {
397
+ var common = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.js");
398
+ var YAMLException = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.js");
399
+ var DEFAULT_FULL_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js");
400
+ var DEFAULT_SAFE_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js");
401
+ var _toString = Object.prototype.toString;
402
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
403
+ var CHAR_TAB = 0x09;
404
+ var CHAR_LINE_FEED = 0x0A;
405
+ var CHAR_CARRIAGE_RETURN = 0x0D;
406
+ var CHAR_SPACE = 0x20;
407
+ var CHAR_EXCLAMATION = 0x21;
408
+ var CHAR_DOUBLE_QUOTE = 0x22;
409
+ var CHAR_SHARP = 0x23;
410
+ var CHAR_PERCENT = 0x25;
411
+ var CHAR_AMPERSAND = 0x26;
412
+ var CHAR_SINGLE_QUOTE = 0x27;
413
+ var CHAR_ASTERISK = 0x2A;
414
+ var CHAR_COMMA = 0x2C;
415
+ var CHAR_MINUS = 0x2D;
416
+ var CHAR_COLON = 0x3A;
417
+ var CHAR_EQUALS = 0x3D;
418
+ var CHAR_GREATER_THAN = 0x3E;
419
+ var CHAR_QUESTION = 0x3F;
420
+ var CHAR_COMMERCIAL_AT = 0x40;
421
+ var CHAR_LEFT_SQUARE_BRACKET = 0x5B;
422
+ var CHAR_RIGHT_SQUARE_BRACKET = 0x5D;
423
+ var CHAR_GRAVE_ACCENT = 0x60;
424
+ var CHAR_LEFT_CURLY_BRACKET = 0x7B;
425
+ var CHAR_VERTICAL_LINE = 0x7C;
426
+ var CHAR_RIGHT_CURLY_BRACKET = 0x7D;
427
+ var ESCAPE_SEQUENCES = {};
428
+ ESCAPE_SEQUENCES[0x00] = '\\0';
429
+ ESCAPE_SEQUENCES[0x07] = '\\a';
430
+ ESCAPE_SEQUENCES[0x08] = '\\b';
431
+ ESCAPE_SEQUENCES[0x09] = '\\t';
432
+ ESCAPE_SEQUENCES[0x0A] = '\\n';
433
+ ESCAPE_SEQUENCES[0x0B] = '\\v';
434
+ ESCAPE_SEQUENCES[0x0C] = '\\f';
435
+ ESCAPE_SEQUENCES[0x0D] = '\\r';
436
+ ESCAPE_SEQUENCES[0x1B] = '\\e';
437
+ ESCAPE_SEQUENCES[0x22] = '\\"';
438
+ ESCAPE_SEQUENCES[0x5C] = '\\\\';
439
+ ESCAPE_SEQUENCES[0x85] = '\\N';
440
+ ESCAPE_SEQUENCES[0xA0] = '\\_';
441
+ ESCAPE_SEQUENCES[0x2028] = '\\L';
442
+ ESCAPE_SEQUENCES[0x2029] = '\\P';
443
+ var DEPRECATED_BOOLEANS_SYNTAX = [
444
+ 'y',
445
+ 'Y',
446
+ 'yes',
447
+ 'Yes',
448
+ 'YES',
449
+ 'on',
450
+ 'On',
451
+ 'ON',
452
+ 'n',
453
+ 'N',
454
+ 'no',
455
+ 'No',
456
+ 'NO',
457
+ 'off',
458
+ 'Off',
459
+ 'OFF'
460
+ ];
461
+ function compileStyleMap(schema, map) {
462
+ var result, keys, index, length, tag, style, type;
463
+ if (null === map) return {};
464
+ result = {};
465
+ keys = Object.keys(map);
466
+ for(index = 0, length = keys.length; index < length; index += 1){
467
+ tag = keys[index];
468
+ style = String(map[tag]);
469
+ if ('!!' === tag.slice(0, 2)) tag = 'tag:yaml.org,2002:' + tag.slice(2);
470
+ type = schema.compiledTypeMap['fallback'][tag];
471
+ if (type && _hasOwnProperty.call(type.styleAliases, style)) style = type.styleAliases[style];
472
+ result[tag] = style;
473
+ }
474
+ return result;
475
+ }
476
+ function encodeHex(character) {
477
+ var string, handle, length;
478
+ string = character.toString(16).toUpperCase();
479
+ if (character <= 0xFF) {
480
+ handle = 'x';
481
+ length = 2;
482
+ } else if (character <= 0xFFFF) {
483
+ handle = 'u';
484
+ length = 4;
485
+ } else if (character <= 0xFFFFFFFF) {
486
+ handle = 'U';
487
+ length = 8;
488
+ } else throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');
489
+ return '\\' + handle + common.repeat('0', length - string.length) + string;
490
+ }
491
+ function State(options) {
492
+ this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
493
+ this.indent = Math.max(1, options['indent'] || 2);
494
+ this.noArrayIndent = options['noArrayIndent'] || false;
495
+ this.skipInvalid = options['skipInvalid'] || false;
496
+ this.flowLevel = common.isNothing(options['flowLevel']) ? -1 : options['flowLevel'];
497
+ this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
498
+ this.sortKeys = options['sortKeys'] || false;
499
+ this.lineWidth = options['lineWidth'] || 80;
500
+ this.noRefs = options['noRefs'] || false;
501
+ this.noCompatMode = options['noCompatMode'] || false;
502
+ this.condenseFlow = options['condenseFlow'] || false;
503
+ this.implicitTypes = this.schema.compiledImplicit;
504
+ this.explicitTypes = this.schema.compiledExplicit;
505
+ this.tag = null;
506
+ this.result = '';
507
+ this.duplicates = [];
508
+ this.usedDuplicates = null;
509
+ }
510
+ function indentString(string, spaces) {
511
+ var ind = common.repeat(' ', spaces), position = 0, next = -1, result = '', line, length = string.length;
512
+ while(position < length){
513
+ next = string.indexOf('\n', position);
514
+ if (-1 === next) {
515
+ line = string.slice(position);
516
+ position = length;
517
+ } else {
518
+ line = string.slice(position, next + 1);
519
+ position = next + 1;
520
+ }
521
+ if (line.length && '\n' !== line) result += ind;
522
+ result += line;
523
+ }
524
+ return result;
525
+ }
526
+ function generateNextLine(state, level) {
527
+ return '\n' + common.repeat(' ', state.indent * level);
528
+ }
529
+ function testImplicitResolving(state, str) {
530
+ var index, length, type;
531
+ for(index = 0, length = state.implicitTypes.length; index < length; index += 1){
532
+ type = state.implicitTypes[index];
533
+ if (type.resolve(str)) return true;
534
+ }
535
+ return false;
536
+ }
537
+ function isWhitespace(c) {
538
+ return c === CHAR_SPACE || c === CHAR_TAB;
539
+ }
540
+ function isPrintable(c) {
541
+ return 0x00020 <= c && c <= 0x00007E || 0x000A1 <= c && c <= 0x00D7FF && 0x2028 !== c && 0x2029 !== c || 0x0E000 <= c && c <= 0x00FFFD && 0xFEFF !== c || 0x10000 <= c && c <= 0x10FFFF;
542
+ }
543
+ function isNsChar(c) {
544
+ return isPrintable(c) && !isWhitespace(c) && 0xFEFF !== c && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
545
+ }
546
+ function isPlainSafe(c, prev) {
547
+ return isPrintable(c) && 0xFEFF !== c && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_COLON && (c !== CHAR_SHARP || prev && isNsChar(prev));
548
+ }
549
+ function isPlainSafeFirst(c) {
550
+ return isPrintable(c) && 0xFEFF !== c && !isWhitespace(c) && c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
551
+ }
552
+ function needIndentIndicator(string) {
553
+ var leadingSpaceRe = /^\n* /;
554
+ return leadingSpaceRe.test(string);
555
+ }
556
+ var STYLE_PLAIN = 1, STYLE_SINGLE = 2, STYLE_LITERAL = 3, STYLE_FOLDED = 4, STYLE_DOUBLE = 5;
557
+ function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
558
+ var i;
559
+ var char, prev_char;
560
+ var hasLineBreak = false;
561
+ var hasFoldableLine = false;
562
+ var shouldTrackWidth = -1 !== lineWidth;
563
+ var previousLineBreak = -1;
564
+ var plain = isPlainSafeFirst(string.charCodeAt(0)) && !isWhitespace(string.charCodeAt(string.length - 1));
565
+ if (singleLineOnly) for(i = 0; i < string.length; i++){
566
+ char = string.charCodeAt(i);
567
+ if (!isPrintable(char)) return STYLE_DOUBLE;
568
+ prev_char = i > 0 ? string.charCodeAt(i - 1) : null;
569
+ plain = plain && isPlainSafe(char, prev_char);
570
+ }
571
+ else {
572
+ for(i = 0; i < string.length; i++){
573
+ char = string.charCodeAt(i);
574
+ if (char === CHAR_LINE_FEED) {
575
+ hasLineBreak = true;
576
+ if (shouldTrackWidth) {
577
+ hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && ' ' !== string[previousLineBreak + 1];
578
+ previousLineBreak = i;
579
+ }
580
+ } else if (!isPrintable(char)) return STYLE_DOUBLE;
581
+ prev_char = i > 0 ? string.charCodeAt(i - 1) : null;
582
+ plain = plain && isPlainSafe(char, prev_char);
583
+ }
584
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && ' ' !== string[previousLineBreak + 1];
585
+ }
586
+ if (!hasLineBreak && !hasFoldableLine) return plain && !testAmbiguousType(string) ? STYLE_PLAIN : STYLE_SINGLE;
587
+ if (indentPerLevel > 9 && needIndentIndicator(string)) return STYLE_DOUBLE;
588
+ return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
589
+ }
590
+ function writeScalar(state, string, level, iskey) {
591
+ state.dump = function() {
592
+ if (0 === string.length) return "''";
593
+ if (!state.noCompatMode && -1 !== DEPRECATED_BOOLEANS_SYNTAX.indexOf(string)) return "'" + string + "'";
594
+ var indent = state.indent * Math.max(1, level);
595
+ var lineWidth = -1 === state.lineWidth ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
596
+ var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
597
+ function testAmbiguity(string) {
598
+ return testImplicitResolving(state, string);
599
+ }
600
+ switch(chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)){
601
+ case STYLE_PLAIN:
602
+ return string;
603
+ case STYLE_SINGLE:
604
+ return "'" + string.replace(/'/g, "''") + "'";
605
+ case STYLE_LITERAL:
606
+ return '|' + blockHeader(string, state.indent) + dropEndingNewline(indentString(string, indent));
607
+ case STYLE_FOLDED:
608
+ return '>' + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
609
+ case STYLE_DOUBLE:
610
+ return '"' + escapeString(string) + '"';
611
+ default:
612
+ throw new YAMLException('impossible error: invalid scalar style');
613
+ }
614
+ }();
615
+ }
616
+ function blockHeader(string, indentPerLevel) {
617
+ var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';
618
+ var clip = '\n' === string[string.length - 1];
619
+ var keep = clip && ('\n' === string[string.length - 2] || '\n' === string);
620
+ var chomp = keep ? '+' : clip ? '' : '-';
621
+ return indentIndicator + chomp + '\n';
622
+ }
623
+ function dropEndingNewline(string) {
624
+ return '\n' === string[string.length - 1] ? string.slice(0, -1) : string;
625
+ }
626
+ function foldString(string, width) {
627
+ var lineRe = /(\n+)([^\n]*)/g;
628
+ var result = function() {
629
+ var nextLF = string.indexOf('\n');
630
+ nextLF = -1 !== nextLF ? nextLF : string.length;
631
+ lineRe.lastIndex = nextLF;
632
+ return foldLine(string.slice(0, nextLF), width);
633
+ }();
634
+ var prevMoreIndented = '\n' === string[0] || ' ' === string[0];
635
+ var moreIndented;
636
+ var match;
637
+ while(match = lineRe.exec(string)){
638
+ var prefix = match[1], line = match[2];
639
+ moreIndented = ' ' === line[0];
640
+ result += prefix + (prevMoreIndented || moreIndented || '' === line ? '' : '\n') + foldLine(line, width);
641
+ prevMoreIndented = moreIndented;
642
+ }
643
+ return result;
644
+ }
645
+ function foldLine(line, width) {
646
+ if ('' === line || ' ' === line[0]) return line;
647
+ var breakRe = / [^ ]/g;
648
+ var match;
649
+ var start = 0, end, curr = 0, next = 0;
650
+ var result = '';
651
+ while(match = breakRe.exec(line)){
652
+ next = match.index;
653
+ if (next - start > width) {
654
+ end = curr > start ? curr : next;
655
+ result += '\n' + line.slice(start, end);
656
+ start = end + 1;
657
+ }
658
+ curr = next;
659
+ }
660
+ result += '\n';
661
+ if (line.length - start > width && curr > start) result += line.slice(start, curr) + '\n' + line.slice(curr + 1);
662
+ else result += line.slice(start);
663
+ return result.slice(1);
664
+ }
665
+ function escapeString(string) {
666
+ var result = '';
667
+ var char, nextChar;
668
+ var escapeSeq;
669
+ for(var i = 0; i < string.length; i++){
670
+ char = string.charCodeAt(i);
671
+ if (char >= 0xD800 && char <= 0xDBFF) {
672
+ nextChar = string.charCodeAt(i + 1);
673
+ if (nextChar >= 0xDC00 && nextChar <= 0xDFFF) {
674
+ result += encodeHex((char - 0xD800) * 0x400 + nextChar - 0xDC00 + 0x10000);
675
+ i++;
676
+ continue;
677
+ }
678
+ }
679
+ escapeSeq = ESCAPE_SEQUENCES[char];
680
+ result += !escapeSeq && isPrintable(char) ? string[i] : escapeSeq || encodeHex(char);
681
+ }
682
+ return result;
683
+ }
684
+ function writeFlowSequence(state, level, object) {
685
+ var _result = '', _tag = state.tag, index, length;
686
+ for(index = 0, length = object.length; index < length; index += 1)if (writeNode(state, level, object[index], false, false)) {
687
+ if (0 !== index) _result += ',' + (state.condenseFlow ? '' : ' ');
688
+ _result += state.dump;
689
+ }
690
+ state.tag = _tag;
691
+ state.dump = '[' + _result + ']';
692
+ }
693
+ function writeBlockSequence(state, level, object, compact) {
694
+ var _result = '', _tag = state.tag, index, length;
695
+ for(index = 0, length = object.length; index < length; index += 1)if (writeNode(state, level + 1, object[index], true, true)) {
696
+ if (!compact || 0 !== index) _result += generateNextLine(state, level);
697
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) _result += '-';
698
+ else _result += '- ';
699
+ _result += state.dump;
700
+ }
701
+ state.tag = _tag;
702
+ state.dump = _result || '[]';
703
+ }
704
+ function writeFlowMapping(state, level, object) {
705
+ var _result = '', _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, pairBuffer;
706
+ for(index = 0, length = objectKeyList.length; index < length; index += 1){
707
+ pairBuffer = '';
708
+ if (0 !== index) pairBuffer += ', ';
709
+ if (state.condenseFlow) pairBuffer += '"';
710
+ objectKey = objectKeyList[index];
711
+ objectValue = object[objectKey];
712
+ if (writeNode(state, level, objectKey, false, false)) {
713
+ if (state.dump.length > 1024) pairBuffer += '? ';
714
+ pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
715
+ if (writeNode(state, level, objectValue, false, false)) {
716
+ pairBuffer += state.dump;
717
+ _result += pairBuffer;
718
+ }
719
+ }
720
+ }
721
+ state.tag = _tag;
722
+ state.dump = '{' + _result + '}';
723
+ }
724
+ function writeBlockMapping(state, level, object, compact) {
725
+ var _result = '', _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, explicitPair, pairBuffer;
726
+ if (true === state.sortKeys) objectKeyList.sort();
727
+ else if ('function' == typeof state.sortKeys) objectKeyList.sort(state.sortKeys);
728
+ else if (state.sortKeys) throw new YAMLException('sortKeys must be a boolean or a function');
729
+ for(index = 0, length = objectKeyList.length; index < length; index += 1){
730
+ pairBuffer = '';
731
+ if (!compact || 0 !== index) pairBuffer += generateNextLine(state, level);
732
+ objectKey = objectKeyList[index];
733
+ objectValue = object[objectKey];
734
+ if (writeNode(state, level + 1, objectKey, true, true, true)) {
735
+ explicitPair = null !== state.tag && '?' !== state.tag || state.dump && state.dump.length > 1024;
736
+ if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += '?';
737
+ else pairBuffer += '? ';
738
+ pairBuffer += state.dump;
739
+ if (explicitPair) pairBuffer += generateNextLine(state, level);
740
+ if (writeNode(state, level + 1, objectValue, true, explicitPair)) {
741
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += ':';
742
+ else pairBuffer += ': ';
743
+ pairBuffer += state.dump;
744
+ _result += pairBuffer;
745
+ }
746
+ }
747
+ }
748
+ state.tag = _tag;
749
+ state.dump = _result || '{}';
750
+ }
751
+ function detectType(state, object, explicit) {
752
+ var _result, typeList, index, length, type, style;
753
+ typeList = explicit ? state.explicitTypes : state.implicitTypes;
754
+ for(index = 0, length = typeList.length; index < length; index += 1){
755
+ type = typeList[index];
756
+ if ((type.instanceOf || type.predicate) && (!type.instanceOf || 'object' == typeof object && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
757
+ state.tag = explicit ? type.tag : '?';
758
+ if (type.represent) {
759
+ style = state.styleMap[type.tag] || type.defaultStyle;
760
+ if ('[object Function]' === _toString.call(type.represent)) _result = type.represent(object, style);
761
+ else if (_hasOwnProperty.call(type.represent, style)) _result = type.represent[style](object, style);
762
+ else throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
763
+ state.dump = _result;
764
+ }
765
+ return true;
766
+ }
767
+ }
768
+ return false;
769
+ }
770
+ function writeNode(state, level, object, block, compact, iskey) {
771
+ state.tag = null;
772
+ state.dump = object;
773
+ if (!detectType(state, object, false)) detectType(state, object, true);
774
+ var type = _toString.call(state.dump);
775
+ if (block) block = state.flowLevel < 0 || state.flowLevel > level;
776
+ var objectOrArray = '[object Object]' === type || '[object Array]' === type, duplicateIndex, duplicate;
777
+ if (objectOrArray) {
778
+ duplicateIndex = state.duplicates.indexOf(object);
779
+ duplicate = -1 !== duplicateIndex;
780
+ }
781
+ if (null !== state.tag && '?' !== state.tag || duplicate || 2 !== state.indent && level > 0) compact = false;
782
+ if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = '*ref_' + duplicateIndex;
783
+ else {
784
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
785
+ if ('[object Object]' === type) if (block && 0 !== Object.keys(state.dump).length) {
786
+ writeBlockMapping(state, level, state.dump, compact);
787
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
788
+ } else {
789
+ writeFlowMapping(state, level, state.dump);
790
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
791
+ }
792
+ else if ('[object Array]' === type) {
793
+ var arrayLevel = state.noArrayIndent && level > 0 ? level - 1 : level;
794
+ if (block && 0 !== state.dump.length) {
795
+ writeBlockSequence(state, arrayLevel, state.dump, compact);
796
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
797
+ } else {
798
+ writeFlowSequence(state, arrayLevel, state.dump);
799
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
800
+ }
801
+ } else if ('[object String]' === type) {
802
+ if ('?' !== state.tag) writeScalar(state, state.dump, level, iskey);
803
+ } else {
804
+ if (state.skipInvalid) return false;
805
+ throw new YAMLException('unacceptable kind of an object to dump ' + type);
806
+ }
807
+ if (null !== state.tag && '?' !== state.tag) state.dump = '!<' + state.tag + '> ' + state.dump;
808
+ }
809
+ return true;
810
+ }
811
+ function getDuplicateReferences(object, state) {
812
+ var objects = [], duplicatesIndexes = [], index, length;
813
+ inspectNode(object, objects, duplicatesIndexes);
814
+ for(index = 0, length = duplicatesIndexes.length; index < length; index += 1)state.duplicates.push(objects[duplicatesIndexes[index]]);
815
+ state.usedDuplicates = new Array(length);
816
+ }
817
+ function inspectNode(object, objects, duplicatesIndexes) {
818
+ var objectKeyList, index, length;
819
+ if (null !== object && 'object' == typeof object) {
820
+ index = objects.indexOf(object);
821
+ if (-1 !== index) {
822
+ if (-1 === duplicatesIndexes.indexOf(index)) duplicatesIndexes.push(index);
823
+ } else {
824
+ objects.push(object);
825
+ if (Array.isArray(object)) for(index = 0, length = object.length; index < length; index += 1)inspectNode(object[index], objects, duplicatesIndexes);
826
+ else {
827
+ objectKeyList = Object.keys(object);
828
+ for(index = 0, length = objectKeyList.length; index < length; index += 1)inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
829
+ }
830
+ }
831
+ }
832
+ }
833
+ function dump(input, options) {
834
+ options = options || {};
835
+ var state = new State(options);
836
+ if (!state.noRefs) getDuplicateReferences(input, state);
837
+ if (writeNode(state, 0, input, true, true)) return state.dump + '\n';
838
+ return '';
839
+ }
840
+ function safeDump(input, options) {
841
+ return dump(input, common.extend({
842
+ schema: DEFAULT_SAFE_SCHEMA
843
+ }, options));
844
+ }
845
+ module.exports.dump = dump;
846
+ module.exports.safeDump = safeDump;
847
+ },
848
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.js" (module) {
849
+ function YAMLException(reason, mark) {
850
+ Error.call(this);
851
+ this.name = 'YAMLException';
852
+ this.reason = reason;
853
+ this.mark = mark;
854
+ this.message = (this.reason || '(unknown reason)') + (this.mark ? ' ' + this.mark.toString() : '');
855
+ if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
856
+ else this.stack = new Error().stack || '';
857
+ }
858
+ YAMLException.prototype = Object.create(Error.prototype);
859
+ YAMLException.prototype.constructor = YAMLException;
860
+ YAMLException.prototype.toString = function(compact) {
861
+ var result = this.name + ': ';
862
+ result += this.reason || '(unknown reason)';
863
+ if (!compact && this.mark) result += ' ' + this.mark.toString();
864
+ return result;
865
+ };
866
+ module.exports = YAMLException;
867
+ },
868
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/loader.js" (module, __unused_rspack_exports, __webpack_require__) {
869
+ var common = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.js");
870
+ var YAMLException = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.js");
871
+ var Mark = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/mark.js");
872
+ var DEFAULT_SAFE_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js");
873
+ var DEFAULT_FULL_SCHEMA = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js");
874
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
875
+ var CONTEXT_FLOW_IN = 1;
876
+ var CONTEXT_FLOW_OUT = 2;
877
+ var CONTEXT_BLOCK_IN = 3;
878
+ var CONTEXT_BLOCK_OUT = 4;
879
+ var CHOMPING_CLIP = 1;
880
+ var CHOMPING_STRIP = 2;
881
+ var CHOMPING_KEEP = 3;
882
+ var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
883
+ var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
884
+ var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
885
+ var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
886
+ var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
887
+ function _class(obj) {
888
+ return Object.prototype.toString.call(obj);
889
+ }
890
+ function is_EOL(c) {
891
+ return 0x0A === c || 0x0D === c;
892
+ }
893
+ function is_WHITE_SPACE(c) {
894
+ return 0x09 === c || 0x20 === c;
895
+ }
896
+ function is_WS_OR_EOL(c) {
897
+ return 0x09 === c || 0x20 === c || 0x0A === c || 0x0D === c;
898
+ }
899
+ function is_FLOW_INDICATOR(c) {
900
+ return 0x2C === c || 0x5B === c || 0x5D === c || 0x7B === c || 0x7D === c;
901
+ }
902
+ function fromHexCode(c) {
903
+ var lc;
904
+ if (0x30 <= c && c <= 0x39) return c - 0x30;
905
+ lc = 0x20 | c;
906
+ if (0x61 <= lc && lc <= 0x66) return lc - 0x61 + 10;
907
+ return -1;
908
+ }
909
+ function escapedHexLen(c) {
910
+ if (0x78 === c) return 2;
911
+ if (0x75 === c) return 4;
912
+ if (0x55 === c) return 8;
913
+ return 0;
914
+ }
915
+ function fromDecimalCode(c) {
916
+ if (0x30 <= c && c <= 0x39) return c - 0x30;
917
+ return -1;
918
+ }
919
+ function simpleEscapeSequence(c) {
920
+ return 0x30 === c ? '\x00' : 0x61 === c ? '\x07' : 0x62 === c ? '\x08' : 0x74 === c ? '\x09' : 0x09 === c ? '\x09' : 0x6E === c ? '\x0A' : 0x76 === c ? '\x0B' : 0x66 === c ? '\x0C' : 0x72 === c ? '\x0D' : 0x65 === c ? '\x1B' : 0x20 === c ? ' ' : 0x22 === c ? '\x22' : 0x2F === c ? '/' : 0x5C === c ? '\x5C' : 0x4E === c ? '\x85' : 0x5F === c ? '\xA0' : 0x4C === c ? '\u2028' : 0x50 === c ? '\u2029' : '';
921
+ }
922
+ function charFromCodepoint(c) {
923
+ if (c <= 0xFFFF) return String.fromCharCode(c);
924
+ return String.fromCharCode((c - 0x010000 >> 10) + 0xD800, (c - 0x010000 & 0x03FF) + 0xDC00);
925
+ }
926
+ function setProperty(object, key, value) {
927
+ if ('__proto__' === key) Object.defineProperty(object, key, {
928
+ configurable: true,
929
+ enumerable: true,
930
+ writable: true,
931
+ value: value
932
+ });
933
+ else object[key] = value;
934
+ }
935
+ var simpleEscapeCheck = new Array(256);
936
+ var simpleEscapeMap = new Array(256);
937
+ for(var i = 0; i < 256; i++){
938
+ simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
939
+ simpleEscapeMap[i] = simpleEscapeSequence(i);
940
+ }
941
+ function State(input, options) {
942
+ this.input = input;
943
+ this.filename = options['filename'] || null;
944
+ this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
945
+ this.onWarning = options['onWarning'] || null;
946
+ this.legacy = options['legacy'] || false;
947
+ this.json = options['json'] || false;
948
+ this.listener = options['listener'] || null;
949
+ this.implicitTypes = this.schema.compiledImplicit;
950
+ this.typeMap = this.schema.compiledTypeMap;
951
+ this.length = input.length;
952
+ this.position = 0;
953
+ this.line = 0;
954
+ this.lineStart = 0;
955
+ this.lineIndent = 0;
956
+ this.documents = [];
957
+ }
958
+ function generateError(state, message) {
959
+ return new YAMLException(message, new Mark(state.filename, state.input, state.position, state.line, state.position - state.lineStart));
960
+ }
961
+ function throwError(state, message) {
962
+ throw generateError(state, message);
963
+ }
964
+ function throwWarning(state, message) {
965
+ if (state.onWarning) state.onWarning.call(null, generateError(state, message));
966
+ }
967
+ var directiveHandlers = {
968
+ YAML: function(state, name, args) {
969
+ var match, major, minor;
970
+ if (null !== state.version) throwError(state, 'duplication of %YAML directive');
971
+ if (1 !== args.length) throwError(state, 'YAML directive accepts exactly one argument');
972
+ match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
973
+ if (null === match) throwError(state, 'ill-formed argument of the YAML directive');
974
+ major = parseInt(match[1], 10);
975
+ minor = parseInt(match[2], 10);
976
+ if (1 !== major) throwError(state, 'unacceptable YAML version of the document');
977
+ state.version = args[0];
978
+ state.checkLineBreaks = minor < 2;
979
+ if (1 !== minor && 2 !== minor) throwWarning(state, 'unsupported YAML version of the document');
980
+ },
981
+ TAG: function(state, name, args) {
982
+ var handle, prefix;
983
+ if (2 !== args.length) throwError(state, 'TAG directive accepts exactly two arguments');
984
+ handle = args[0];
985
+ prefix = args[1];
986
+ if (!PATTERN_TAG_HANDLE.test(handle)) throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');
987
+ if (_hasOwnProperty.call(state.tagMap, handle)) throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
988
+ if (!PATTERN_TAG_URI.test(prefix)) throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');
989
+ state.tagMap[handle] = prefix;
990
+ }
991
+ };
992
+ function captureSegment(state, start, end, checkJson) {
993
+ var _position, _length, _character, _result;
994
+ if (start < end) {
995
+ _result = state.input.slice(start, end);
996
+ if (checkJson) for(_position = 0, _length = _result.length; _position < _length; _position += 1){
997
+ _character = _result.charCodeAt(_position);
998
+ if (!(0x09 === _character || 0x20 <= _character && _character <= 0x10FFFF)) throwError(state, 'expected valid JSON character');
999
+ }
1000
+ else if (PATTERN_NON_PRINTABLE.test(_result)) throwError(state, 'the stream contains non-printable characters');
1001
+ state.result += _result;
1002
+ }
1003
+ }
1004
+ function mergeMappings(state, destination, source, overridableKeys) {
1005
+ var sourceKeys, key, index, quantity;
1006
+ if (!common.isObject(source)) throwError(state, 'cannot merge mappings; the provided source object is unacceptable');
1007
+ sourceKeys = Object.keys(source);
1008
+ for(index = 0, quantity = sourceKeys.length; index < quantity; index += 1){
1009
+ key = sourceKeys[index];
1010
+ if (!_hasOwnProperty.call(destination, key)) {
1011
+ setProperty(destination, key, source[key]);
1012
+ overridableKeys[key] = true;
1013
+ }
1014
+ }
1015
+ }
1016
+ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
1017
+ var index, quantity;
1018
+ if (Array.isArray(keyNode)) {
1019
+ keyNode = Array.prototype.slice.call(keyNode);
1020
+ for(index = 0, quantity = keyNode.length; index < quantity; index += 1){
1021
+ if (Array.isArray(keyNode[index])) throwError(state, 'nested arrays are not supported inside keys');
1022
+ if ('object' == typeof keyNode && '[object Object]' === _class(keyNode[index])) keyNode[index] = '[object Object]';
1023
+ }
1024
+ }
1025
+ if ('object' == typeof keyNode && '[object Object]' === _class(keyNode)) keyNode = '[object Object]';
1026
+ keyNode = String(keyNode);
1027
+ if (null === _result) _result = {};
1028
+ if ('tag:yaml.org,2002:merge' === keyTag) if (Array.isArray(valueNode)) for(index = 0, quantity = valueNode.length; index < quantity; index += 1)mergeMappings(state, _result, valueNode[index], overridableKeys);
1029
+ else mergeMappings(state, _result, valueNode, overridableKeys);
1030
+ else {
1031
+ if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
1032
+ state.line = startLine || state.line;
1033
+ state.position = startPos || state.position;
1034
+ throwError(state, 'duplicated mapping key');
1035
+ }
1036
+ setProperty(_result, keyNode, valueNode);
1037
+ delete overridableKeys[keyNode];
1038
+ }
1039
+ return _result;
1040
+ }
1041
+ function readLineBreak(state) {
1042
+ var ch;
1043
+ ch = state.input.charCodeAt(state.position);
1044
+ if (0x0A === ch) state.position++;
1045
+ else if (0x0D === ch) {
1046
+ state.position++;
1047
+ if (0x0A === state.input.charCodeAt(state.position)) state.position++;
1048
+ } else throwError(state, 'a line break is expected');
1049
+ state.line += 1;
1050
+ state.lineStart = state.position;
1051
+ }
1052
+ function skipSeparationSpace(state, allowComments, checkIndent) {
1053
+ var lineBreaks = 0, ch = state.input.charCodeAt(state.position);
1054
+ while(0 !== ch){
1055
+ while(is_WHITE_SPACE(ch))ch = state.input.charCodeAt(++state.position);
1056
+ if (allowComments && 0x23 === ch) do ch = state.input.charCodeAt(++state.position);
1057
+ while (0x0A !== ch && 0x0D !== ch && 0 !== ch);
1058
+ if (is_EOL(ch)) {
1059
+ readLineBreak(state);
1060
+ ch = state.input.charCodeAt(state.position);
1061
+ lineBreaks++;
1062
+ state.lineIndent = 0;
1063
+ while(0x20 === ch){
1064
+ state.lineIndent++;
1065
+ ch = state.input.charCodeAt(++state.position);
1066
+ }
1067
+ } else break;
1068
+ }
1069
+ if (-1 !== checkIndent && 0 !== lineBreaks && state.lineIndent < checkIndent) throwWarning(state, 'deficient indentation');
1070
+ return lineBreaks;
1071
+ }
1072
+ function testDocumentSeparator(state) {
1073
+ var _position = state.position, ch;
1074
+ ch = state.input.charCodeAt(_position);
1075
+ if ((0x2D === ch || 0x2E === ch) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
1076
+ _position += 3;
1077
+ ch = state.input.charCodeAt(_position);
1078
+ if (0 === ch || is_WS_OR_EOL(ch)) return true;
1079
+ }
1080
+ return false;
1081
+ }
1082
+ function writeFoldedLines(state, count) {
1083
+ if (1 === count) state.result += ' ';
1084
+ else if (count > 1) state.result += common.repeat('\n', count - 1);
1085
+ }
1086
+ function readPlainScalar(state, nodeIndent, withinFlowCollection) {
1087
+ var preceding, following, captureStart, captureEnd, hasPendingContent, _line, _lineStart, _lineIndent, _kind = state.kind, _result = state.result, ch;
1088
+ ch = state.input.charCodeAt(state.position);
1089
+ if (is_WS_OR_EOL(ch) || is_FLOW_INDICATOR(ch) || 0x23 === ch || 0x26 === ch || 0x2A === ch || 0x21 === ch || 0x7C === ch || 0x3E === ch || 0x27 === ch || 0x22 === ch || 0x25 === ch || 0x40 === ch || 0x60 === ch) return false;
1090
+ if (0x3F === ch || 0x2D === ch) {
1091
+ following = state.input.charCodeAt(state.position + 1);
1092
+ if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) return false;
1093
+ }
1094
+ state.kind = 'scalar';
1095
+ state.result = '';
1096
+ captureStart = captureEnd = state.position;
1097
+ hasPendingContent = false;
1098
+ while(0 !== ch){
1099
+ if (0x3A === ch) {
1100
+ following = state.input.charCodeAt(state.position + 1);
1101
+ if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) break;
1102
+ } else if (0x23 === ch) {
1103
+ preceding = state.input.charCodeAt(state.position - 1);
1104
+ if (is_WS_OR_EOL(preceding)) break;
1105
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && is_FLOW_INDICATOR(ch)) break;
1106
+ else if (is_EOL(ch)) {
1107
+ _line = state.line;
1108
+ _lineStart = state.lineStart;
1109
+ _lineIndent = state.lineIndent;
1110
+ skipSeparationSpace(state, false, -1);
1111
+ if (state.lineIndent >= nodeIndent) {
1112
+ hasPendingContent = true;
1113
+ ch = state.input.charCodeAt(state.position);
1114
+ continue;
1115
+ }
1116
+ state.position = captureEnd;
1117
+ state.line = _line;
1118
+ state.lineStart = _lineStart;
1119
+ state.lineIndent = _lineIndent;
1120
+ break;
1121
+ }
1122
+ if (hasPendingContent) {
1123
+ captureSegment(state, captureStart, captureEnd, false);
1124
+ writeFoldedLines(state, state.line - _line);
1125
+ captureStart = captureEnd = state.position;
1126
+ hasPendingContent = false;
1127
+ }
1128
+ if (!is_WHITE_SPACE(ch)) captureEnd = state.position + 1;
1129
+ ch = state.input.charCodeAt(++state.position);
1130
+ }
1131
+ captureSegment(state, captureStart, captureEnd, false);
1132
+ if (state.result) return true;
1133
+ state.kind = _kind;
1134
+ state.result = _result;
1135
+ return false;
1136
+ }
1137
+ function readSingleQuotedScalar(state, nodeIndent) {
1138
+ var ch, captureStart, captureEnd;
1139
+ ch = state.input.charCodeAt(state.position);
1140
+ if (0x27 !== ch) return false;
1141
+ state.kind = 'scalar';
1142
+ state.result = '';
1143
+ state.position++;
1144
+ captureStart = captureEnd = state.position;
1145
+ while(0 !== (ch = state.input.charCodeAt(state.position)))if (0x27 === ch) {
1146
+ captureSegment(state, captureStart, state.position, true);
1147
+ ch = state.input.charCodeAt(++state.position);
1148
+ if (0x27 !== ch) return true;
1149
+ captureStart = state.position;
1150
+ state.position++;
1151
+ captureEnd = state.position;
1152
+ } else if (is_EOL(ch)) {
1153
+ captureSegment(state, captureStart, captureEnd, true);
1154
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1155
+ captureStart = captureEnd = state.position;
1156
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, 'unexpected end of the document within a single quoted scalar');
1157
+ else {
1158
+ state.position++;
1159
+ captureEnd = state.position;
1160
+ }
1161
+ throwError(state, 'unexpected end of the stream within a single quoted scalar');
1162
+ }
1163
+ function readDoubleQuotedScalar(state, nodeIndent) {
1164
+ var captureStart, captureEnd, hexLength, hexResult, tmp, ch;
1165
+ ch = state.input.charCodeAt(state.position);
1166
+ if (0x22 !== ch) return false;
1167
+ state.kind = 'scalar';
1168
+ state.result = '';
1169
+ state.position++;
1170
+ captureStart = captureEnd = state.position;
1171
+ while(0 !== (ch = state.input.charCodeAt(state.position)))if (0x22 === ch) {
1172
+ captureSegment(state, captureStart, state.position, true);
1173
+ state.position++;
1174
+ return true;
1175
+ } else if (0x5C === ch) {
1176
+ captureSegment(state, captureStart, state.position, true);
1177
+ ch = state.input.charCodeAt(++state.position);
1178
+ if (is_EOL(ch)) skipSeparationSpace(state, false, nodeIndent);
1179
+ else if (ch < 256 && simpleEscapeCheck[ch]) {
1180
+ state.result += simpleEscapeMap[ch];
1181
+ state.position++;
1182
+ } else if ((tmp = escapedHexLen(ch)) > 0) {
1183
+ hexLength = tmp;
1184
+ hexResult = 0;
1185
+ for(; hexLength > 0; hexLength--){
1186
+ ch = state.input.charCodeAt(++state.position);
1187
+ if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
1188
+ else throwError(state, 'expected hexadecimal character');
1189
+ }
1190
+ state.result += charFromCodepoint(hexResult);
1191
+ state.position++;
1192
+ } else throwError(state, 'unknown escape sequence');
1193
+ captureStart = captureEnd = state.position;
1194
+ } else if (is_EOL(ch)) {
1195
+ captureSegment(state, captureStart, captureEnd, true);
1196
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1197
+ captureStart = captureEnd = state.position;
1198
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, 'unexpected end of the document within a double quoted scalar');
1199
+ else {
1200
+ state.position++;
1201
+ captureEnd = state.position;
1202
+ }
1203
+ throwError(state, 'unexpected end of the stream within a double quoted scalar');
1204
+ }
1205
+ function readFlowCollection(state, nodeIndent) {
1206
+ var readNext = true, _line, _tag = state.tag, _result, _anchor = state.anchor, following, terminator, isPair, isExplicitPair, isMapping, overridableKeys = {}, keyNode, keyTag, valueNode, ch;
1207
+ ch = state.input.charCodeAt(state.position);
1208
+ if (0x5B === ch) {
1209
+ terminator = 0x5D;
1210
+ isMapping = false;
1211
+ _result = [];
1212
+ } else {
1213
+ if (0x7B !== ch) return false;
1214
+ terminator = 0x7D;
1215
+ isMapping = true;
1216
+ _result = {};
1217
+ }
1218
+ if (null !== state.anchor) state.anchorMap[state.anchor] = _result;
1219
+ ch = state.input.charCodeAt(++state.position);
1220
+ while(0 !== ch){
1221
+ skipSeparationSpace(state, true, nodeIndent);
1222
+ ch = state.input.charCodeAt(state.position);
1223
+ if (ch === terminator) {
1224
+ state.position++;
1225
+ state.tag = _tag;
1226
+ state.anchor = _anchor;
1227
+ state.kind = isMapping ? 'mapping' : 'sequence';
1228
+ state.result = _result;
1229
+ return true;
1230
+ }
1231
+ if (!readNext) throwError(state, 'missed comma between flow collection entries');
1232
+ keyTag = keyNode = valueNode = null;
1233
+ isPair = isExplicitPair = false;
1234
+ if (0x3F === ch) {
1235
+ following = state.input.charCodeAt(state.position + 1);
1236
+ if (is_WS_OR_EOL(following)) {
1237
+ isPair = isExplicitPair = true;
1238
+ state.position++;
1239
+ skipSeparationSpace(state, true, nodeIndent);
1240
+ }
1241
+ }
1242
+ _line = state.line;
1243
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1244
+ keyTag = state.tag;
1245
+ keyNode = state.result;
1246
+ skipSeparationSpace(state, true, nodeIndent);
1247
+ ch = state.input.charCodeAt(state.position);
1248
+ if ((isExplicitPair || state.line === _line) && 0x3A === ch) {
1249
+ isPair = true;
1250
+ ch = state.input.charCodeAt(++state.position);
1251
+ skipSeparationSpace(state, true, nodeIndent);
1252
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1253
+ valueNode = state.result;
1254
+ }
1255
+ if (isMapping) storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);
1256
+ else if (isPair) _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));
1257
+ else _result.push(keyNode);
1258
+ skipSeparationSpace(state, true, nodeIndent);
1259
+ ch = state.input.charCodeAt(state.position);
1260
+ if (0x2C === ch) {
1261
+ readNext = true;
1262
+ ch = state.input.charCodeAt(++state.position);
1263
+ } else readNext = false;
1264
+ }
1265
+ throwError(state, 'unexpected end of the stream within a flow collection');
1266
+ }
1267
+ function readBlockScalar(state, nodeIndent) {
1268
+ var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp, ch;
1269
+ ch = state.input.charCodeAt(state.position);
1270
+ if (0x7C === ch) folding = false;
1271
+ else {
1272
+ if (0x3E !== ch) return false;
1273
+ folding = true;
1274
+ }
1275
+ state.kind = 'scalar';
1276
+ state.result = '';
1277
+ while(0 !== ch){
1278
+ ch = state.input.charCodeAt(++state.position);
1279
+ if (0x2B === ch || 0x2D === ch) if (CHOMPING_CLIP === chomping) chomping = 0x2B === ch ? CHOMPING_KEEP : CHOMPING_STRIP;
1280
+ else throwError(state, 'repeat of a chomping mode identifier');
1281
+ else if ((tmp = fromDecimalCode(ch)) >= 0) if (0 === tmp) throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
1282
+ else if (detectedIndent) throwError(state, 'repeat of an indentation width identifier');
1283
+ else {
1284
+ textIndent = nodeIndent + tmp - 1;
1285
+ detectedIndent = true;
1286
+ }
1287
+ else break;
1288
+ }
1289
+ if (is_WHITE_SPACE(ch)) {
1290
+ do ch = state.input.charCodeAt(++state.position);
1291
+ while (is_WHITE_SPACE(ch));
1292
+ if (0x23 === ch) do ch = state.input.charCodeAt(++state.position);
1293
+ while (!is_EOL(ch) && 0 !== ch);
1294
+ }
1295
+ while(0 !== ch){
1296
+ readLineBreak(state);
1297
+ state.lineIndent = 0;
1298
+ ch = state.input.charCodeAt(state.position);
1299
+ while((!detectedIndent || state.lineIndent < textIndent) && 0x20 === ch){
1300
+ state.lineIndent++;
1301
+ ch = state.input.charCodeAt(++state.position);
1302
+ }
1303
+ if (!detectedIndent && state.lineIndent > textIndent) textIndent = state.lineIndent;
1304
+ if (is_EOL(ch)) {
1305
+ emptyLines++;
1306
+ continue;
1307
+ }
1308
+ if (state.lineIndent < textIndent) {
1309
+ if (chomping === CHOMPING_KEEP) state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
1310
+ else if (chomping === CHOMPING_CLIP) {
1311
+ if (didReadContent) state.result += '\n';
1312
+ }
1313
+ break;
1314
+ }
1315
+ if (folding) if (is_WHITE_SPACE(ch)) {
1316
+ atMoreIndented = true;
1317
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
1318
+ } else if (atMoreIndented) {
1319
+ atMoreIndented = false;
1320
+ state.result += common.repeat('\n', emptyLines + 1);
1321
+ } else if (0 === emptyLines) {
1322
+ if (didReadContent) state.result += ' ';
1323
+ } else state.result += common.repeat('\n', emptyLines);
1324
+ else state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
1325
+ didReadContent = true;
1326
+ detectedIndent = true;
1327
+ emptyLines = 0;
1328
+ captureStart = state.position;
1329
+ while(!is_EOL(ch) && 0 !== ch)ch = state.input.charCodeAt(++state.position);
1330
+ captureSegment(state, captureStart, state.position, false);
1331
+ }
1332
+ return true;
1333
+ }
1334
+ function readBlockSequence(state, nodeIndent) {
1335
+ var _line, _tag = state.tag, _anchor = state.anchor, _result = [], following, detected = false, ch;
1336
+ if (null !== state.anchor) state.anchorMap[state.anchor] = _result;
1337
+ ch = state.input.charCodeAt(state.position);
1338
+ while(0 !== ch){
1339
+ if (0x2D !== ch) break;
1340
+ following = state.input.charCodeAt(state.position + 1);
1341
+ if (!is_WS_OR_EOL(following)) break;
1342
+ detected = true;
1343
+ state.position++;
1344
+ if (skipSeparationSpace(state, true, -1)) {
1345
+ if (state.lineIndent <= nodeIndent) {
1346
+ _result.push(null);
1347
+ ch = state.input.charCodeAt(state.position);
1348
+ continue;
1349
+ }
1350
+ }
1351
+ _line = state.line;
1352
+ composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
1353
+ _result.push(state.result);
1354
+ skipSeparationSpace(state, true, -1);
1355
+ ch = state.input.charCodeAt(state.position);
1356
+ if ((state.line === _line || state.lineIndent > nodeIndent) && 0 !== ch) throwError(state, 'bad indentation of a sequence entry');
1357
+ else if (state.lineIndent < nodeIndent) break;
1358
+ }
1359
+ if (detected) {
1360
+ state.tag = _tag;
1361
+ state.anchor = _anchor;
1362
+ state.kind = 'sequence';
1363
+ state.result = _result;
1364
+ return true;
1365
+ }
1366
+ return false;
1367
+ }
1368
+ function readBlockMapping(state, nodeIndent, flowIndent) {
1369
+ var following, allowCompact, _line, _pos, _tag = state.tag, _anchor = state.anchor, _result = {}, overridableKeys = {}, keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
1370
+ if (null !== state.anchor) state.anchorMap[state.anchor] = _result;
1371
+ ch = state.input.charCodeAt(state.position);
1372
+ while(0 !== ch){
1373
+ following = state.input.charCodeAt(state.position + 1);
1374
+ _line = state.line;
1375
+ _pos = state.position;
1376
+ if ((0x3F === ch || 0x3A === ch) && is_WS_OR_EOL(following)) {
1377
+ if (0x3F === ch) {
1378
+ if (atExplicitKey) {
1379
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
1380
+ keyTag = keyNode = valueNode = null;
1381
+ }
1382
+ detected = true;
1383
+ atExplicitKey = true;
1384
+ allowCompact = true;
1385
+ } else if (atExplicitKey) {
1386
+ atExplicitKey = false;
1387
+ allowCompact = true;
1388
+ } else throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');
1389
+ state.position += 1;
1390
+ ch = following;
1391
+ } else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) if (state.line === _line) {
1392
+ ch = state.input.charCodeAt(state.position);
1393
+ while(is_WHITE_SPACE(ch))ch = state.input.charCodeAt(++state.position);
1394
+ if (0x3A === ch) {
1395
+ ch = state.input.charCodeAt(++state.position);
1396
+ if (!is_WS_OR_EOL(ch)) throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');
1397
+ if (atExplicitKey) {
1398
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
1399
+ keyTag = keyNode = valueNode = null;
1400
+ }
1401
+ detected = true;
1402
+ atExplicitKey = false;
1403
+ allowCompact = false;
1404
+ keyTag = state.tag;
1405
+ keyNode = state.result;
1406
+ } else if (detected) throwError(state, 'can not read an implicit mapping pair; a colon is missed');
1407
+ else {
1408
+ state.tag = _tag;
1409
+ state.anchor = _anchor;
1410
+ return true;
1411
+ }
1412
+ } else if (detected) throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');
1413
+ else {
1414
+ state.tag = _tag;
1415
+ state.anchor = _anchor;
1416
+ return true;
1417
+ }
1418
+ else break;
1419
+ if (state.line === _line || state.lineIndent > nodeIndent) {
1420
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) if (atExplicitKey) keyNode = state.result;
1421
+ else valueNode = state.result;
1422
+ if (!atExplicitKey) {
1423
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _pos);
1424
+ keyTag = keyNode = valueNode = null;
1425
+ }
1426
+ skipSeparationSpace(state, true, -1);
1427
+ ch = state.input.charCodeAt(state.position);
1428
+ }
1429
+ if (state.lineIndent > nodeIndent && 0 !== ch) throwError(state, 'bad indentation of a mapping entry');
1430
+ else if (state.lineIndent < nodeIndent) break;
1431
+ }
1432
+ if (atExplicitKey) storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
1433
+ if (detected) {
1434
+ state.tag = _tag;
1435
+ state.anchor = _anchor;
1436
+ state.kind = 'mapping';
1437
+ state.result = _result;
1438
+ }
1439
+ return detected;
1440
+ }
1441
+ function readTagProperty(state) {
1442
+ var _position, isVerbatim = false, isNamed = false, tagHandle, tagName, ch;
1443
+ ch = state.input.charCodeAt(state.position);
1444
+ if (0x21 !== ch) return false;
1445
+ if (null !== state.tag) throwError(state, 'duplication of a tag property');
1446
+ ch = state.input.charCodeAt(++state.position);
1447
+ if (0x3C === ch) {
1448
+ isVerbatim = true;
1449
+ ch = state.input.charCodeAt(++state.position);
1450
+ } else if (0x21 === ch) {
1451
+ isNamed = true;
1452
+ tagHandle = '!!';
1453
+ ch = state.input.charCodeAt(++state.position);
1454
+ } else tagHandle = '!';
1455
+ _position = state.position;
1456
+ if (isVerbatim) {
1457
+ do ch = state.input.charCodeAt(++state.position);
1458
+ while (0 !== ch && 0x3E !== ch);
1459
+ if (state.position < state.length) {
1460
+ tagName = state.input.slice(_position, state.position);
1461
+ ch = state.input.charCodeAt(++state.position);
1462
+ } else throwError(state, 'unexpected end of the stream within a verbatim tag');
1463
+ } else {
1464
+ while(0 !== ch && !is_WS_OR_EOL(ch)){
1465
+ if (0x21 === ch) if (isNamed) throwError(state, 'tag suffix cannot contain exclamation marks');
1466
+ else {
1467
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
1468
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, 'named tag handle cannot contain such characters');
1469
+ isNamed = true;
1470
+ _position = state.position + 1;
1471
+ }
1472
+ ch = state.input.charCodeAt(++state.position);
1473
+ }
1474
+ tagName = state.input.slice(_position, state.position);
1475
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) throwError(state, 'tag suffix cannot contain flow indicator characters');
1476
+ }
1477
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) throwError(state, 'tag name cannot contain such characters: ' + tagName);
1478
+ if (isVerbatim) state.tag = tagName;
1479
+ else if (_hasOwnProperty.call(state.tagMap, tagHandle)) state.tag = state.tagMap[tagHandle] + tagName;
1480
+ else if ('!' === tagHandle) state.tag = '!' + tagName;
1481
+ else if ('!!' === tagHandle) state.tag = 'tag:yaml.org,2002:' + tagName;
1482
+ else throwError(state, 'undeclared tag handle "' + tagHandle + '"');
1483
+ return true;
1484
+ }
1485
+ function readAnchorProperty(state) {
1486
+ var _position, ch;
1487
+ ch = state.input.charCodeAt(state.position);
1488
+ if (0x26 !== ch) return false;
1489
+ if (null !== state.anchor) throwError(state, 'duplication of an anchor property');
1490
+ ch = state.input.charCodeAt(++state.position);
1491
+ _position = state.position;
1492
+ while(0 !== ch && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch))ch = state.input.charCodeAt(++state.position);
1493
+ if (state.position === _position) throwError(state, 'name of an anchor node must contain at least one character');
1494
+ state.anchor = state.input.slice(_position, state.position);
1495
+ return true;
1496
+ }
1497
+ function readAlias(state) {
1498
+ var _position, alias, ch;
1499
+ ch = state.input.charCodeAt(state.position);
1500
+ if (0x2A !== ch) return false;
1501
+ ch = state.input.charCodeAt(++state.position);
1502
+ _position = state.position;
1503
+ while(0 !== ch && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch))ch = state.input.charCodeAt(++state.position);
1504
+ if (state.position === _position) throwError(state, 'name of an alias node must contain at least one character');
1505
+ alias = state.input.slice(_position, state.position);
1506
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) throwError(state, 'unidentified alias "' + alias + '"');
1507
+ state.result = state.anchorMap[alias];
1508
+ skipSeparationSpace(state, true, -1);
1509
+ return true;
1510
+ }
1511
+ function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
1512
+ var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, type, flowIndent, blockIndent;
1513
+ if (null !== state.listener) state.listener('open', state);
1514
+ state.tag = null;
1515
+ state.anchor = null;
1516
+ state.kind = null;
1517
+ state.result = null;
1518
+ allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
1519
+ if (allowToSeek) {
1520
+ if (skipSeparationSpace(state, true, -1)) {
1521
+ atNewLine = true;
1522
+ if (state.lineIndent > parentIndent) indentStatus = 1;
1523
+ else if (state.lineIndent === parentIndent) indentStatus = 0;
1524
+ else if (state.lineIndent < parentIndent) indentStatus = -1;
1525
+ }
1526
+ }
1527
+ if (1 === indentStatus) while(readTagProperty(state) || readAnchorProperty(state))if (skipSeparationSpace(state, true, -1)) {
1528
+ atNewLine = true;
1529
+ allowBlockCollections = allowBlockStyles;
1530
+ if (state.lineIndent > parentIndent) indentStatus = 1;
1531
+ else if (state.lineIndent === parentIndent) indentStatus = 0;
1532
+ else if (state.lineIndent < parentIndent) indentStatus = -1;
1533
+ } else allowBlockCollections = false;
1534
+ if (allowBlockCollections) allowBlockCollections = atNewLine || allowCompact;
1535
+ if (1 === indentStatus || CONTEXT_BLOCK_OUT === nodeContext) {
1536
+ flowIndent = CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext ? parentIndent : parentIndent + 1;
1537
+ blockIndent = state.position - state.lineStart;
1538
+ if (1 === indentStatus) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
1539
+ else {
1540
+ if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
1541
+ else if (readAlias(state)) {
1542
+ hasContent = true;
1543
+ if (null !== state.tag || null !== state.anchor) throwError(state, 'alias node should not have any properties');
1544
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
1545
+ hasContent = true;
1546
+ if (null === state.tag) state.tag = '?';
1547
+ }
1548
+ if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
1549
+ }
1550
+ else if (0 === indentStatus) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
1551
+ }
1552
+ if (null !== state.tag && '!' !== state.tag) if ('?' === state.tag) {
1553
+ if (null !== state.result && 'scalar' !== state.kind) throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
1554
+ for(typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1){
1555
+ type = state.implicitTypes[typeIndex];
1556
+ if (type.resolve(state.result)) {
1557
+ state.result = type.construct(state.result);
1558
+ state.tag = type.tag;
1559
+ if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
1560
+ break;
1561
+ }
1562
+ }
1563
+ } else if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
1564
+ type = state.typeMap[state.kind || 'fallback'][state.tag];
1565
+ if (null !== state.result && type.kind !== state.kind) throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
1566
+ if (type.resolve(state.result)) {
1567
+ state.result = type.construct(state.result);
1568
+ if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
1569
+ } else throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');
1570
+ } else throwError(state, 'unknown tag !<' + state.tag + '>');
1571
+ if (null !== state.listener) state.listener('close', state);
1572
+ return null !== state.tag || null !== state.anchor || hasContent;
1573
+ }
1574
+ function readDocument(state) {
1575
+ var documentStart = state.position, _position, directiveName, directiveArgs, hasDirectives = false, ch;
1576
+ state.version = null;
1577
+ state.checkLineBreaks = state.legacy;
1578
+ state.tagMap = {};
1579
+ state.anchorMap = {};
1580
+ while(0 !== (ch = state.input.charCodeAt(state.position))){
1581
+ skipSeparationSpace(state, true, -1);
1582
+ ch = state.input.charCodeAt(state.position);
1583
+ if (state.lineIndent > 0 || 0x25 !== ch) break;
1584
+ hasDirectives = true;
1585
+ ch = state.input.charCodeAt(++state.position);
1586
+ _position = state.position;
1587
+ while(0 !== ch && !is_WS_OR_EOL(ch))ch = state.input.charCodeAt(++state.position);
1588
+ directiveName = state.input.slice(_position, state.position);
1589
+ directiveArgs = [];
1590
+ if (directiveName.length < 1) throwError(state, 'directive name must not be less than one character in length');
1591
+ while(0 !== ch){
1592
+ while(is_WHITE_SPACE(ch))ch = state.input.charCodeAt(++state.position);
1593
+ if (0x23 === ch) {
1594
+ do ch = state.input.charCodeAt(++state.position);
1595
+ while (0 !== ch && !is_EOL(ch));
1596
+ break;
1597
+ }
1598
+ if (is_EOL(ch)) break;
1599
+ _position = state.position;
1600
+ while(0 !== ch && !is_WS_OR_EOL(ch))ch = state.input.charCodeAt(++state.position);
1601
+ directiveArgs.push(state.input.slice(_position, state.position));
1602
+ }
1603
+ if (0 !== ch) readLineBreak(state);
1604
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) directiveHandlers[directiveName](state, directiveName, directiveArgs);
1605
+ else throwWarning(state, 'unknown document directive "' + directiveName + '"');
1606
+ }
1607
+ skipSeparationSpace(state, true, -1);
1608
+ if (0 === state.lineIndent && 0x2D === state.input.charCodeAt(state.position) && 0x2D === state.input.charCodeAt(state.position + 1) && 0x2D === state.input.charCodeAt(state.position + 2)) {
1609
+ state.position += 3;
1610
+ skipSeparationSpace(state, true, -1);
1611
+ } else if (hasDirectives) throwError(state, 'directives end mark is expected');
1612
+ composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
1613
+ skipSeparationSpace(state, true, -1);
1614
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) throwWarning(state, 'non-ASCII line breaks are interpreted as content');
1615
+ state.documents.push(state.result);
1616
+ if (state.position === state.lineStart && testDocumentSeparator(state)) {
1617
+ if (0x2E === state.input.charCodeAt(state.position)) {
1618
+ state.position += 3;
1619
+ skipSeparationSpace(state, true, -1);
1620
+ }
1621
+ return;
1622
+ }
1623
+ if (!(state.position < state.length - 1)) return;
1624
+ throwError(state, 'end of the stream or a document separator is expected');
1625
+ }
1626
+ function loadDocuments(input, options) {
1627
+ input = String(input);
1628
+ options = options || {};
1629
+ if (0 !== input.length) {
1630
+ if (0x0A !== input.charCodeAt(input.length - 1) && 0x0D !== input.charCodeAt(input.length - 1)) input += '\n';
1631
+ if (0xFEFF === input.charCodeAt(0)) input = input.slice(1);
1632
+ }
1633
+ var state = new State(input, options);
1634
+ var nullpos = input.indexOf('\0');
1635
+ if (-1 !== nullpos) {
1636
+ state.position = nullpos;
1637
+ throwError(state, 'null byte is not allowed in input');
1638
+ }
1639
+ state.input += '\0';
1640
+ while(0x20 === state.input.charCodeAt(state.position)){
1641
+ state.lineIndent += 1;
1642
+ state.position += 1;
1643
+ }
1644
+ while(state.position < state.length - 1)readDocument(state);
1645
+ return state.documents;
1646
+ }
1647
+ function loadAll(input, iterator, options) {
1648
+ if (null !== iterator && 'object' == typeof iterator && void 0 === options) {
1649
+ options = iterator;
1650
+ iterator = null;
1651
+ }
1652
+ var documents = loadDocuments(input, options);
1653
+ if ('function' != typeof iterator) return documents;
1654
+ for(var index = 0, length = documents.length; index < length; index += 1)iterator(documents[index]);
1655
+ }
1656
+ function load(input, options) {
1657
+ var documents = loadDocuments(input, options);
1658
+ if (0 === documents.length) return;
1659
+ if (1 === documents.length) return documents[0];
1660
+ throw new YAMLException('expected a single document in the stream, but found more');
1661
+ }
1662
+ function safeLoadAll(input, iterator, options) {
1663
+ if ('object' == typeof iterator && null !== iterator && void 0 === options) {
1664
+ options = iterator;
1665
+ iterator = null;
1666
+ }
1667
+ return loadAll(input, iterator, common.extend({
1668
+ schema: DEFAULT_SAFE_SCHEMA
1669
+ }, options));
1670
+ }
1671
+ function safeLoad(input, options) {
1672
+ return load(input, common.extend({
1673
+ schema: DEFAULT_SAFE_SCHEMA
1674
+ }, options));
1675
+ }
1676
+ module.exports.loadAll = loadAll;
1677
+ module.exports.load = load;
1678
+ module.exports.safeLoadAll = safeLoadAll;
1679
+ module.exports.safeLoad = safeLoad;
1680
+ },
1681
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/mark.js" (module, __unused_rspack_exports, __webpack_require__) {
1682
+ var common = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.js");
1683
+ function Mark(name, buffer, position, line, column) {
1684
+ this.name = name;
1685
+ this.buffer = buffer;
1686
+ this.position = position;
1687
+ this.line = line;
1688
+ this.column = column;
1689
+ }
1690
+ Mark.prototype.getSnippet = function(indent, maxLength) {
1691
+ var head, start, tail, end, snippet;
1692
+ if (!this.buffer) return null;
1693
+ indent = indent || 4;
1694
+ maxLength = maxLength || 75;
1695
+ head = '';
1696
+ start = this.position;
1697
+ while(start > 0 && -1 === '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(start - 1))){
1698
+ start -= 1;
1699
+ if (this.position - start > maxLength / 2 - 1) {
1700
+ head = ' ... ';
1701
+ start += 5;
1702
+ break;
1703
+ }
1704
+ }
1705
+ tail = '';
1706
+ end = this.position;
1707
+ while(end < this.buffer.length && -1 === '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(end))){
1708
+ end += 1;
1709
+ if (end - this.position > maxLength / 2 - 1) {
1710
+ tail = ' ... ';
1711
+ end -= 5;
1712
+ break;
1713
+ }
1714
+ }
1715
+ snippet = this.buffer.slice(start, end);
1716
+ return common.repeat(' ', indent) + head + snippet + tail + '\n' + common.repeat(' ', indent + this.position - start + head.length) + '^';
1717
+ };
1718
+ Mark.prototype.toString = function(compact) {
1719
+ var snippet, where = '';
1720
+ if (this.name) where += 'in "' + this.name + '" ';
1721
+ where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);
1722
+ if (!compact) {
1723
+ snippet = this.getSnippet();
1724
+ if (snippet) where += ':\n' + snippet;
1725
+ }
1726
+ return where;
1727
+ };
1728
+ module.exports = Mark;
1729
+ },
1730
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.js" (module, __unused_rspack_exports, __webpack_require__) {
1731
+ var common = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.js");
1732
+ var YAMLException = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.js");
1733
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
1734
+ function compileList(schema, name, result) {
1735
+ var exclude = [];
1736
+ schema.include.forEach(function(includedSchema) {
1737
+ result = compileList(includedSchema, name, result);
1738
+ });
1739
+ schema[name].forEach(function(currentType) {
1740
+ result.forEach(function(previousType, previousIndex) {
1741
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) exclude.push(previousIndex);
1742
+ });
1743
+ result.push(currentType);
1744
+ });
1745
+ return result.filter(function(type, index) {
1746
+ return -1 === exclude.indexOf(index);
1747
+ });
1748
+ }
1749
+ function compileMap() {
1750
+ var result = {
1751
+ scalar: {},
1752
+ sequence: {},
1753
+ mapping: {},
1754
+ fallback: {}
1755
+ }, index, length;
1756
+ function collectType(type) {
1757
+ result[type.kind][type.tag] = result['fallback'][type.tag] = type;
1758
+ }
1759
+ for(index = 0, length = arguments.length; index < length; index += 1)arguments[index].forEach(collectType);
1760
+ return result;
1761
+ }
1762
+ function Schema(definition) {
1763
+ this.include = definition.include || [];
1764
+ this.implicit = definition.implicit || [];
1765
+ this.explicit = definition.explicit || [];
1766
+ this.implicit.forEach(function(type) {
1767
+ if (type.loadKind && 'scalar' !== type.loadKind) throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
1768
+ });
1769
+ this.compiledImplicit = compileList(this, 'implicit', []);
1770
+ this.compiledExplicit = compileList(this, 'explicit', []);
1771
+ this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);
1772
+ }
1773
+ Schema.DEFAULT = null;
1774
+ Schema.create = function() {
1775
+ var schemas, types;
1776
+ switch(arguments.length){
1777
+ case 1:
1778
+ schemas = Schema.DEFAULT;
1779
+ types = arguments[0];
1780
+ break;
1781
+ case 2:
1782
+ schemas = arguments[0];
1783
+ types = arguments[1];
1784
+ break;
1785
+ default:
1786
+ throw new YAMLException('Wrong number of arguments for Schema.create function');
1787
+ }
1788
+ schemas = common.toArray(schemas);
1789
+ types = common.toArray(types);
1790
+ if (!schemas.every(function(schema) {
1791
+ return schema instanceof Schema;
1792
+ })) throw new YAMLException('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');
1793
+ if (!types.every(function(type) {
1794
+ return type instanceof Type;
1795
+ })) throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');
1796
+ return new Schema({
1797
+ include: schemas,
1798
+ explicit: types
1799
+ });
1800
+ };
1801
+ module.exports = Schema;
1802
+ },
1803
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.js" (module, __unused_rspack_exports, __webpack_require__) {
1804
+ var Schema = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.js");
1805
+ module.exports = new Schema({
1806
+ include: [
1807
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.js")
1808
+ ]
1809
+ });
1810
+ },
1811
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js" (module, __unused_rspack_exports, __webpack_require__) {
1812
+ var Schema = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.js");
1813
+ module.exports = Schema.DEFAULT = new Schema({
1814
+ include: [
1815
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js")
1816
+ ],
1817
+ explicit: [
1818
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js"),
1819
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js"),
1820
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/function.js")
1821
+ ]
1822
+ });
1823
+ },
1824
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js" (module, __unused_rspack_exports, __webpack_require__) {
1825
+ var Schema = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.js");
1826
+ module.exports = new Schema({
1827
+ include: [
1828
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.js")
1829
+ ],
1830
+ implicit: [
1831
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/timestamp.js"),
1832
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/merge.js")
1833
+ ],
1834
+ explicit: [
1835
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/binary.js"),
1836
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/omap.js"),
1837
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/pairs.js"),
1838
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/set.js")
1839
+ ]
1840
+ });
1841
+ },
1842
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js" (module, __unused_rspack_exports, __webpack_require__) {
1843
+ var Schema = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.js");
1844
+ module.exports = new Schema({
1845
+ explicit: [
1846
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/str.js"),
1847
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/seq.js"),
1848
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/map.js")
1849
+ ]
1850
+ });
1851
+ },
1852
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.js" (module, __unused_rspack_exports, __webpack_require__) {
1853
+ var Schema = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.js");
1854
+ module.exports = new Schema({
1855
+ include: [
1856
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js")
1857
+ ],
1858
+ implicit: [
1859
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/null.js"),
1860
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/bool.js"),
1861
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/int.js"),
1862
+ __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/float.js")
1863
+ ]
1864
+ });
1865
+ },
1866
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js" (module, __unused_rspack_exports, __webpack_require__) {
1867
+ var YAMLException = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.js");
1868
+ var TYPE_CONSTRUCTOR_OPTIONS = [
1869
+ 'kind',
1870
+ 'resolve',
1871
+ 'construct',
1872
+ 'instanceOf',
1873
+ 'predicate',
1874
+ 'represent',
1875
+ 'defaultStyle',
1876
+ 'styleAliases'
1877
+ ];
1878
+ var YAML_NODE_KINDS = [
1879
+ 'scalar',
1880
+ 'sequence',
1881
+ 'mapping'
1882
+ ];
1883
+ function compileStyleAliases(map) {
1884
+ var result = {};
1885
+ if (null !== map) Object.keys(map).forEach(function(style) {
1886
+ map[style].forEach(function(alias) {
1887
+ result[String(alias)] = style;
1888
+ });
1889
+ });
1890
+ return result;
1891
+ }
1892
+ function Type(tag, options) {
1893
+ options = options || {};
1894
+ Object.keys(options).forEach(function(name) {
1895
+ if (-1 === TYPE_CONSTRUCTOR_OPTIONS.indexOf(name)) throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
1896
+ });
1897
+ this.tag = tag;
1898
+ this.kind = options['kind'] || null;
1899
+ this.resolve = options['resolve'] || function() {
1900
+ return true;
1901
+ };
1902
+ this.construct = options['construct'] || function(data) {
1903
+ return data;
1904
+ };
1905
+ this.instanceOf = options['instanceOf'] || null;
1906
+ this.predicate = options['predicate'] || null;
1907
+ this.represent = options['represent'] || null;
1908
+ this.defaultStyle = options['defaultStyle'] || null;
1909
+ this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
1910
+ if (-1 === YAML_NODE_KINDS.indexOf(this.kind)) throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
1911
+ }
1912
+ module.exports = Type;
1913
+ },
1914
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/binary.js" (module, __unused_rspack_exports, __webpack_require__) {
1915
+ var NodeBuffer;
1916
+ try {
1917
+ var _require = require;
1918
+ NodeBuffer = _require('buffer').Buffer;
1919
+ } catch (__) {}
1920
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
1921
+ var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
1922
+ function resolveYamlBinary(data) {
1923
+ if (null === data) return false;
1924
+ var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
1925
+ for(idx = 0; idx < max; idx++){
1926
+ code = map.indexOf(data.charAt(idx));
1927
+ if (!(code > 64)) {
1928
+ if (code < 0) return false;
1929
+ bitlen += 6;
1930
+ }
1931
+ }
1932
+ return bitlen % 8 === 0;
1933
+ }
1934
+ function constructYamlBinary(data) {
1935
+ var idx, tailbits, input = data.replace(/[\r\n=]/g, ''), max = input.length, map = BASE64_MAP, bits = 0, result = [];
1936
+ for(idx = 0; idx < max; idx++){
1937
+ if (idx % 4 === 0 && idx) {
1938
+ result.push(bits >> 16 & 0xFF);
1939
+ result.push(bits >> 8 & 0xFF);
1940
+ result.push(0xFF & bits);
1941
+ }
1942
+ bits = bits << 6 | map.indexOf(input.charAt(idx));
1943
+ }
1944
+ tailbits = max % 4 * 6;
1945
+ if (0 === tailbits) {
1946
+ result.push(bits >> 16 & 0xFF);
1947
+ result.push(bits >> 8 & 0xFF);
1948
+ result.push(0xFF & bits);
1949
+ } else if (18 === tailbits) {
1950
+ result.push(bits >> 10 & 0xFF);
1951
+ result.push(bits >> 2 & 0xFF);
1952
+ } else if (12 === tailbits) result.push(bits >> 4 & 0xFF);
1953
+ if (NodeBuffer) return NodeBuffer.from ? NodeBuffer.from(result) : new NodeBuffer(result);
1954
+ return result;
1955
+ }
1956
+ function representYamlBinary(object) {
1957
+ var result = '', bits = 0, idx, tail, max = object.length, map = BASE64_MAP;
1958
+ for(idx = 0; idx < max; idx++){
1959
+ if (idx % 3 === 0 && idx) {
1960
+ result += map[bits >> 18 & 0x3F];
1961
+ result += map[bits >> 12 & 0x3F];
1962
+ result += map[bits >> 6 & 0x3F];
1963
+ result += map[0x3F & bits];
1964
+ }
1965
+ bits = (bits << 8) + object[idx];
1966
+ }
1967
+ tail = max % 3;
1968
+ if (0 === tail) {
1969
+ result += map[bits >> 18 & 0x3F];
1970
+ result += map[bits >> 12 & 0x3F];
1971
+ result += map[bits >> 6 & 0x3F];
1972
+ result += map[0x3F & bits];
1973
+ } else if (2 === tail) {
1974
+ result += map[bits >> 10 & 0x3F];
1975
+ result += map[bits >> 4 & 0x3F];
1976
+ result += map[bits << 2 & 0x3F];
1977
+ result += map[64];
1978
+ } else if (1 === tail) {
1979
+ result += map[bits >> 2 & 0x3F];
1980
+ result += map[bits << 4 & 0x3F];
1981
+ result += map[64];
1982
+ result += map[64];
1983
+ }
1984
+ return result;
1985
+ }
1986
+ function isBinary(object) {
1987
+ return NodeBuffer && NodeBuffer.isBuffer(object);
1988
+ }
1989
+ module.exports = new Type('tag:yaml.org,2002:binary', {
1990
+ kind: 'scalar',
1991
+ resolve: resolveYamlBinary,
1992
+ construct: constructYamlBinary,
1993
+ predicate: isBinary,
1994
+ represent: representYamlBinary
1995
+ });
1996
+ },
1997
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/bool.js" (module, __unused_rspack_exports, __webpack_require__) {
1998
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
1999
+ function resolveYamlBoolean(data) {
2000
+ if (null === data) return false;
2001
+ var max = data.length;
2002
+ return 4 === max && ('true' === data || 'True' === data || 'TRUE' === data) || 5 === max && ('false' === data || 'False' === data || 'FALSE' === data);
2003
+ }
2004
+ function constructYamlBoolean(data) {
2005
+ return 'true' === data || 'True' === data || 'TRUE' === data;
2006
+ }
2007
+ function isBoolean(object) {
2008
+ return '[object Boolean]' === Object.prototype.toString.call(object);
2009
+ }
2010
+ module.exports = new Type('tag:yaml.org,2002:bool', {
2011
+ kind: 'scalar',
2012
+ resolve: resolveYamlBoolean,
2013
+ construct: constructYamlBoolean,
2014
+ predicate: isBoolean,
2015
+ represent: {
2016
+ lowercase: function(object) {
2017
+ return object ? 'true' : 'false';
2018
+ },
2019
+ uppercase: function(object) {
2020
+ return object ? 'TRUE' : 'FALSE';
2021
+ },
2022
+ camelcase: function(object) {
2023
+ return object ? 'True' : 'False';
2024
+ }
2025
+ },
2026
+ defaultStyle: 'lowercase'
2027
+ });
2028
+ },
2029
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/float.js" (module, __unused_rspack_exports, __webpack_require__) {
2030
+ var common = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.js");
2031
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2032
+ var YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
2033
+ function resolveYamlFloat(data) {
2034
+ if (null === data) return false;
2035
+ if (!YAML_FLOAT_PATTERN.test(data) || '_' === data[data.length - 1]) return false;
2036
+ return true;
2037
+ }
2038
+ function constructYamlFloat(data) {
2039
+ var value, sign, base, digits;
2040
+ value = data.replace(/_/g, '').toLowerCase();
2041
+ sign = '-' === value[0] ? -1 : 1;
2042
+ digits = [];
2043
+ if ('+-'.indexOf(value[0]) >= 0) value = value.slice(1);
2044
+ if ('.inf' === value) return 1 === sign ? 1 / 0 : -1 / 0;
2045
+ if ('.nan' === value) return NaN;
2046
+ if (value.indexOf(':') >= 0) {
2047
+ value.split(':').forEach(function(v) {
2048
+ digits.unshift(parseFloat(v, 10));
2049
+ });
2050
+ value = 0.0;
2051
+ base = 1;
2052
+ digits.forEach(function(d) {
2053
+ value += d * base;
2054
+ base *= 60;
2055
+ });
2056
+ return sign * value;
2057
+ }
2058
+ return sign * parseFloat(value, 10);
2059
+ }
2060
+ var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
2061
+ function representYamlFloat(object, style) {
2062
+ var res;
2063
+ if (isNaN(object)) switch(style){
2064
+ case 'lowercase':
2065
+ return '.nan';
2066
+ case 'uppercase':
2067
+ return '.NAN';
2068
+ case 'camelcase':
2069
+ return '.NaN';
2070
+ }
2071
+ else if (1 / 0 === object) switch(style){
2072
+ case 'lowercase':
2073
+ return '.inf';
2074
+ case 'uppercase':
2075
+ return '.INF';
2076
+ case 'camelcase':
2077
+ return '.Inf';
2078
+ }
2079
+ else if (-1 / 0 === object) switch(style){
2080
+ case 'lowercase':
2081
+ return '-.inf';
2082
+ case 'uppercase':
2083
+ return '-.INF';
2084
+ case 'camelcase':
2085
+ return '-.Inf';
2086
+ }
2087
+ else if (common.isNegativeZero(object)) return '-0.0';
2088
+ res = object.toString(10);
2089
+ return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;
2090
+ }
2091
+ function isFloat(object) {
2092
+ return '[object Number]' === Object.prototype.toString.call(object) && (object % 1 !== 0 || common.isNegativeZero(object));
2093
+ }
2094
+ module.exports = new Type('tag:yaml.org,2002:float', {
2095
+ kind: 'scalar',
2096
+ resolve: resolveYamlFloat,
2097
+ construct: constructYamlFloat,
2098
+ predicate: isFloat,
2099
+ represent: representYamlFloat,
2100
+ defaultStyle: 'lowercase'
2101
+ });
2102
+ },
2103
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/int.js" (module, __unused_rspack_exports, __webpack_require__) {
2104
+ var common = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.js");
2105
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2106
+ function isHexCode(c) {
2107
+ return 0x30 <= c && c <= 0x39 || 0x41 <= c && c <= 0x46 || 0x61 <= c && c <= 0x66;
2108
+ }
2109
+ function isOctCode(c) {
2110
+ return 0x30 <= c && c <= 0x37;
2111
+ }
2112
+ function isDecCode(c) {
2113
+ return 0x30 <= c && c <= 0x39;
2114
+ }
2115
+ function resolveYamlInteger(data) {
2116
+ if (null === data) return false;
2117
+ var max = data.length, index = 0, hasDigits = false, ch;
2118
+ if (!max) return false;
2119
+ ch = data[index];
2120
+ if ('-' === ch || '+' === ch) ch = data[++index];
2121
+ if ('0' === ch) {
2122
+ if (index + 1 === max) return true;
2123
+ ch = data[++index];
2124
+ if ('b' === ch) {
2125
+ index++;
2126
+ for(; index < max; index++){
2127
+ ch = data[index];
2128
+ if ('_' !== ch) {
2129
+ if ('0' !== ch && '1' !== ch) return false;
2130
+ hasDigits = true;
2131
+ }
2132
+ }
2133
+ return hasDigits && '_' !== ch;
2134
+ }
2135
+ if ('x' === ch) {
2136
+ index++;
2137
+ for(; index < max; index++){
2138
+ ch = data[index];
2139
+ if ('_' !== ch) {
2140
+ if (!isHexCode(data.charCodeAt(index))) return false;
2141
+ hasDigits = true;
2142
+ }
2143
+ }
2144
+ return hasDigits && '_' !== ch;
2145
+ }
2146
+ for(; index < max; index++){
2147
+ ch = data[index];
2148
+ if ('_' !== ch) {
2149
+ if (!isOctCode(data.charCodeAt(index))) return false;
2150
+ hasDigits = true;
2151
+ }
2152
+ }
2153
+ return hasDigits && '_' !== ch;
2154
+ }
2155
+ if ('_' === ch) return false;
2156
+ for(; index < max; index++){
2157
+ ch = data[index];
2158
+ if ('_' !== ch) {
2159
+ if (':' === ch) break;
2160
+ if (!isDecCode(data.charCodeAt(index))) return false;
2161
+ hasDigits = true;
2162
+ }
2163
+ }
2164
+ if (!hasDigits || '_' === ch) return false;
2165
+ if (':' !== ch) return true;
2166
+ return /^(:[0-5]?[0-9])+$/.test(data.slice(index));
2167
+ }
2168
+ function constructYamlInteger(data) {
2169
+ var value = data, sign = 1, ch, base, digits = [];
2170
+ if (-1 !== value.indexOf('_')) value = value.replace(/_/g, '');
2171
+ ch = value[0];
2172
+ if ('-' === ch || '+' === ch) {
2173
+ if ('-' === ch) sign = -1;
2174
+ value = value.slice(1);
2175
+ ch = value[0];
2176
+ }
2177
+ if ('0' === value) return 0;
2178
+ if ('0' === ch) {
2179
+ if ('b' === value[1]) return sign * parseInt(value.slice(2), 2);
2180
+ if ('x' === value[1]) return sign * parseInt(value, 16);
2181
+ return sign * parseInt(value, 8);
2182
+ }
2183
+ if (-1 !== value.indexOf(':')) {
2184
+ value.split(':').forEach(function(v) {
2185
+ digits.unshift(parseInt(v, 10));
2186
+ });
2187
+ value = 0;
2188
+ base = 1;
2189
+ digits.forEach(function(d) {
2190
+ value += d * base;
2191
+ base *= 60;
2192
+ });
2193
+ return sign * value;
2194
+ }
2195
+ return sign * parseInt(value, 10);
2196
+ }
2197
+ function isInteger(object) {
2198
+ return '[object Number]' === Object.prototype.toString.call(object) && object % 1 === 0 && !common.isNegativeZero(object);
2199
+ }
2200
+ module.exports = new Type('tag:yaml.org,2002:int', {
2201
+ kind: 'scalar',
2202
+ resolve: resolveYamlInteger,
2203
+ construct: constructYamlInteger,
2204
+ predicate: isInteger,
2205
+ represent: {
2206
+ binary: function(obj) {
2207
+ return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1);
2208
+ },
2209
+ octal: function(obj) {
2210
+ return obj >= 0 ? '0' + obj.toString(8) : '-0' + obj.toString(8).slice(1);
2211
+ },
2212
+ decimal: function(obj) {
2213
+ return obj.toString(10);
2214
+ },
2215
+ hexadecimal: function(obj) {
2216
+ return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1);
2217
+ }
2218
+ },
2219
+ defaultStyle: 'decimal',
2220
+ styleAliases: {
2221
+ binary: [
2222
+ 2,
2223
+ 'bin'
2224
+ ],
2225
+ octal: [
2226
+ 8,
2227
+ 'oct'
2228
+ ],
2229
+ decimal: [
2230
+ 10,
2231
+ 'dec'
2232
+ ],
2233
+ hexadecimal: [
2234
+ 16,
2235
+ 'hex'
2236
+ ]
2237
+ }
2238
+ });
2239
+ },
2240
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/function.js" (module, __unused_rspack_exports, __webpack_require__) {
2241
+ var esprima;
2242
+ try {
2243
+ var _require = require;
2244
+ esprima = _require('esprima');
2245
+ } catch (_) {
2246
+ if ("u" > typeof window) esprima = window.esprima;
2247
+ }
2248
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2249
+ function resolveJavascriptFunction(data) {
2250
+ if (null === data) return false;
2251
+ try {
2252
+ var source = '(' + data + ')', ast = esprima.parse(source, {
2253
+ range: true
2254
+ });
2255
+ if ('Program' !== ast.type || 1 !== ast.body.length || 'ExpressionStatement' !== ast.body[0].type || 'ArrowFunctionExpression' !== ast.body[0].expression.type && 'FunctionExpression' !== ast.body[0].expression.type) return false;
2256
+ return true;
2257
+ } catch (err) {
2258
+ return false;
2259
+ }
2260
+ }
2261
+ function constructJavascriptFunction(data) {
2262
+ var source = '(' + data + ')', ast = esprima.parse(source, {
2263
+ range: true
2264
+ }), params = [], body;
2265
+ if ('Program' !== ast.type || 1 !== ast.body.length || 'ExpressionStatement' !== ast.body[0].type || 'ArrowFunctionExpression' !== ast.body[0].expression.type && 'FunctionExpression' !== ast.body[0].expression.type) throw new Error('Failed to resolve function');
2266
+ ast.body[0].expression.params.forEach(function(param) {
2267
+ params.push(param.name);
2268
+ });
2269
+ body = ast.body[0].expression.body.range;
2270
+ if ('BlockStatement' === ast.body[0].expression.body.type) return new Function(params, source.slice(body[0] + 1, body[1] - 1));
2271
+ return new Function(params, 'return ' + source.slice(body[0], body[1]));
2272
+ }
2273
+ function representJavascriptFunction(object) {
2274
+ return object.toString();
2275
+ }
2276
+ function isFunction(object) {
2277
+ return '[object Function]' === Object.prototype.toString.call(object);
2278
+ }
2279
+ module.exports = new Type('tag:yaml.org,2002:js/function', {
2280
+ kind: 'scalar',
2281
+ resolve: resolveJavascriptFunction,
2282
+ construct: constructJavascriptFunction,
2283
+ predicate: isFunction,
2284
+ represent: representJavascriptFunction
2285
+ });
2286
+ },
2287
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js" (module, __unused_rspack_exports, __webpack_require__) {
2288
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2289
+ function resolveJavascriptRegExp(data) {
2290
+ if (null === data) return false;
2291
+ if (0 === data.length) return false;
2292
+ var regexp = data, tail = /\/([gim]*)$/.exec(data), modifiers = '';
2293
+ if ('/' === regexp[0]) {
2294
+ if (tail) modifiers = tail[1];
2295
+ if (modifiers.length > 3) return false;
2296
+ if ('/' !== regexp[regexp.length - modifiers.length - 1]) return false;
2297
+ }
2298
+ return true;
2299
+ }
2300
+ function constructJavascriptRegExp(data) {
2301
+ var regexp = data, tail = /\/([gim]*)$/.exec(data), modifiers = '';
2302
+ if ('/' === regexp[0]) {
2303
+ if (tail) modifiers = tail[1];
2304
+ regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
2305
+ }
2306
+ return new RegExp(regexp, modifiers);
2307
+ }
2308
+ function representJavascriptRegExp(object) {
2309
+ var result = '/' + object.source + '/';
2310
+ if (object.global) result += 'g';
2311
+ if (object.multiline) result += 'm';
2312
+ if (object.ignoreCase) result += 'i';
2313
+ return result;
2314
+ }
2315
+ function isRegExp(object) {
2316
+ return '[object RegExp]' === Object.prototype.toString.call(object);
2317
+ }
2318
+ module.exports = new Type('tag:yaml.org,2002:js/regexp', {
2319
+ kind: 'scalar',
2320
+ resolve: resolveJavascriptRegExp,
2321
+ construct: constructJavascriptRegExp,
2322
+ predicate: isRegExp,
2323
+ represent: representJavascriptRegExp
2324
+ });
2325
+ },
2326
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js" (module, __unused_rspack_exports, __webpack_require__) {
2327
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2328
+ function resolveJavascriptUndefined() {
2329
+ return true;
2330
+ }
2331
+ function constructJavascriptUndefined() {}
2332
+ function representJavascriptUndefined() {
2333
+ return '';
2334
+ }
2335
+ function isUndefined(object) {
2336
+ return void 0 === object;
2337
+ }
2338
+ module.exports = new Type('tag:yaml.org,2002:js/undefined', {
2339
+ kind: 'scalar',
2340
+ resolve: resolveJavascriptUndefined,
2341
+ construct: constructJavascriptUndefined,
2342
+ predicate: isUndefined,
2343
+ represent: representJavascriptUndefined
2344
+ });
2345
+ },
2346
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/map.js" (module, __unused_rspack_exports, __webpack_require__) {
2347
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2348
+ module.exports = new Type('tag:yaml.org,2002:map', {
2349
+ kind: 'mapping',
2350
+ construct: function(data) {
2351
+ return null !== data ? data : {};
2352
+ }
2353
+ });
2354
+ },
2355
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/merge.js" (module, __unused_rspack_exports, __webpack_require__) {
2356
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2357
+ function resolveYamlMerge(data) {
2358
+ return '<<' === data || null === data;
2359
+ }
2360
+ module.exports = new Type('tag:yaml.org,2002:merge', {
2361
+ kind: 'scalar',
2362
+ resolve: resolveYamlMerge
2363
+ });
2364
+ },
2365
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/null.js" (module, __unused_rspack_exports, __webpack_require__) {
2366
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2367
+ function resolveYamlNull(data) {
2368
+ if (null === data) return true;
2369
+ var max = data.length;
2370
+ return 1 === max && '~' === data || 4 === max && ('null' === data || 'Null' === data || 'NULL' === data);
2371
+ }
2372
+ function constructYamlNull() {
2373
+ return null;
2374
+ }
2375
+ function isNull(object) {
2376
+ return null === object;
2377
+ }
2378
+ module.exports = new Type('tag:yaml.org,2002:null', {
2379
+ kind: 'scalar',
2380
+ resolve: resolveYamlNull,
2381
+ construct: constructYamlNull,
2382
+ predicate: isNull,
2383
+ represent: {
2384
+ canonical: function() {
2385
+ return '~';
2386
+ },
2387
+ lowercase: function() {
2388
+ return 'null';
2389
+ },
2390
+ uppercase: function() {
2391
+ return 'NULL';
2392
+ },
2393
+ camelcase: function() {
2394
+ return 'Null';
2395
+ }
2396
+ },
2397
+ defaultStyle: 'lowercase'
2398
+ });
2399
+ },
2400
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/omap.js" (module, __unused_rspack_exports, __webpack_require__) {
2401
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2402
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
2403
+ var _toString = Object.prototype.toString;
2404
+ function resolveYamlOmap(data) {
2405
+ if (null === data) return true;
2406
+ var objectKeys = [], index, length, pair, pairKey, pairHasKey, object = data;
2407
+ for(index = 0, length = object.length; index < length; index += 1){
2408
+ pair = object[index];
2409
+ pairHasKey = false;
2410
+ if ('[object Object]' !== _toString.call(pair)) return false;
2411
+ for(pairKey in pair)if (_hasOwnProperty.call(pair, pairKey)) if (pairHasKey) return false;
2412
+ else pairHasKey = true;
2413
+ if (!pairHasKey) return false;
2414
+ if (-1 !== objectKeys.indexOf(pairKey)) return false;
2415
+ objectKeys.push(pairKey);
2416
+ }
2417
+ return true;
2418
+ }
2419
+ function constructYamlOmap(data) {
2420
+ return null !== data ? data : [];
2421
+ }
2422
+ module.exports = new Type('tag:yaml.org,2002:omap', {
2423
+ kind: 'sequence',
2424
+ resolve: resolveYamlOmap,
2425
+ construct: constructYamlOmap
2426
+ });
2427
+ },
2428
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/pairs.js" (module, __unused_rspack_exports, __webpack_require__) {
2429
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2430
+ var _toString = Object.prototype.toString;
2431
+ function resolveYamlPairs(data) {
2432
+ if (null === data) return true;
2433
+ var index, length, pair, keys, result, object = data;
2434
+ result = new Array(object.length);
2435
+ for(index = 0, length = object.length; index < length; index += 1){
2436
+ pair = object[index];
2437
+ if ('[object Object]' !== _toString.call(pair)) return false;
2438
+ keys = Object.keys(pair);
2439
+ if (1 !== keys.length) return false;
2440
+ result[index] = [
2441
+ keys[0],
2442
+ pair[keys[0]]
2443
+ ];
2444
+ }
2445
+ return true;
2446
+ }
2447
+ function constructYamlPairs(data) {
2448
+ if (null === data) return [];
2449
+ var index, length, pair, keys, result, object = data;
2450
+ result = new Array(object.length);
2451
+ for(index = 0, length = object.length; index < length; index += 1){
2452
+ pair = object[index];
2453
+ keys = Object.keys(pair);
2454
+ result[index] = [
2455
+ keys[0],
2456
+ pair[keys[0]]
2457
+ ];
2458
+ }
2459
+ return result;
2460
+ }
2461
+ module.exports = new Type('tag:yaml.org,2002:pairs', {
2462
+ kind: 'sequence',
2463
+ resolve: resolveYamlPairs,
2464
+ construct: constructYamlPairs
2465
+ });
2466
+ },
2467
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/seq.js" (module, __unused_rspack_exports, __webpack_require__) {
2468
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2469
+ module.exports = new Type('tag:yaml.org,2002:seq', {
2470
+ kind: 'sequence',
2471
+ construct: function(data) {
2472
+ return null !== data ? data : [];
2473
+ }
2474
+ });
2475
+ },
2476
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/set.js" (module, __unused_rspack_exports, __webpack_require__) {
2477
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2478
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
2479
+ function resolveYamlSet(data) {
2480
+ if (null === data) return true;
2481
+ var key, object = data;
2482
+ for(key in object)if (_hasOwnProperty.call(object, key)) {
2483
+ if (null !== object[key]) return false;
2484
+ }
2485
+ return true;
2486
+ }
2487
+ function constructYamlSet(data) {
2488
+ return null !== data ? data : {};
2489
+ }
2490
+ module.exports = new Type('tag:yaml.org,2002:set', {
2491
+ kind: 'mapping',
2492
+ resolve: resolveYamlSet,
2493
+ construct: constructYamlSet
2494
+ });
2495
+ },
2496
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/str.js" (module, __unused_rspack_exports, __webpack_require__) {
2497
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2498
+ module.exports = new Type('tag:yaml.org,2002:str', {
2499
+ kind: 'scalar',
2500
+ construct: function(data) {
2501
+ return null !== data ? data : '';
2502
+ }
2503
+ });
2504
+ },
2505
+ "../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/timestamp.js" (module, __unused_rspack_exports, __webpack_require__) {
2506
+ var Type = __webpack_require__("../../node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.js");
2507
+ var YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
2508
+ var YAML_TIMESTAMP_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
2509
+ function resolveYamlTimestamp(data) {
2510
+ if (null === data) return false;
2511
+ if (null !== YAML_DATE_REGEXP.exec(data)) return true;
2512
+ if (null !== YAML_TIMESTAMP_REGEXP.exec(data)) return true;
2513
+ return false;
2514
+ }
2515
+ function constructYamlTimestamp(data) {
2516
+ var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
2517
+ match = YAML_DATE_REGEXP.exec(data);
2518
+ if (null === match) match = YAML_TIMESTAMP_REGEXP.exec(data);
2519
+ if (null === match) throw new Error('Date resolve error');
2520
+ year = +match[1];
2521
+ month = match[2] - 1;
2522
+ day = +match[3];
2523
+ if (!match[4]) return new Date(Date.UTC(year, month, day));
2524
+ hour = +match[4];
2525
+ minute = +match[5];
2526
+ second = +match[6];
2527
+ if (match[7]) {
2528
+ fraction = match[7].slice(0, 3);
2529
+ while(fraction.length < 3)fraction += '0';
2530
+ fraction *= 1;
2531
+ }
2532
+ if (match[9]) {
2533
+ tz_hour = +match[10];
2534
+ tz_minute = +(match[11] || 0);
2535
+ delta = (60 * tz_hour + tz_minute) * 60000;
2536
+ if ('-' === match[9]) delta = -delta;
2537
+ }
2538
+ date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
2539
+ if (delta) date.setTime(date.getTime() - delta);
2540
+ return date;
2541
+ }
2542
+ function representYamlTimestamp(object) {
2543
+ return object.toISOString();
2544
+ }
2545
+ module.exports = new Type('tag:yaml.org,2002:timestamp', {
2546
+ kind: 'scalar',
2547
+ resolve: resolveYamlTimestamp,
2548
+ construct: constructYamlTimestamp,
2549
+ instanceOf: Date,
2550
+ represent: representYamlTimestamp
2551
+ });
2552
+ },
2553
+ "../../node_modules/.pnpm/kind-of@6.0.3/node_modules/kind-of/index.js" (module) {
2554
+ var toString = Object.prototype.toString;
2555
+ module.exports = function(val) {
2556
+ if (void 0 === val) return 'undefined';
2557
+ if (null === val) return 'null';
2558
+ var type = typeof val;
2559
+ if ('boolean' === type) return 'boolean';
2560
+ if ('string' === type) return 'string';
2561
+ if ('number' === type) return 'number';
2562
+ if ('symbol' === type) return 'symbol';
2563
+ if ('function' === type) return isGeneratorFn(val) ? 'generatorfunction' : 'function';
2564
+ if (isArray(val)) return 'array';
2565
+ if (isBuffer(val)) return 'buffer';
2566
+ if (isArguments(val)) return 'arguments';
2567
+ if (isDate(val)) return 'date';
2568
+ if (isError(val)) return 'error';
2569
+ if (isRegexp(val)) return 'regexp';
2570
+ switch(ctorName(val)){
2571
+ case 'Symbol':
2572
+ return 'symbol';
2573
+ case 'Promise':
2574
+ return 'promise';
2575
+ case 'WeakMap':
2576
+ return 'weakmap';
2577
+ case 'WeakSet':
2578
+ return 'weakset';
2579
+ case 'Map':
2580
+ return 'map';
2581
+ case 'Set':
2582
+ return 'set';
2583
+ case 'Int8Array':
2584
+ return 'int8array';
2585
+ case 'Uint8Array':
2586
+ return 'uint8array';
2587
+ case 'Uint8ClampedArray':
2588
+ return 'uint8clampedarray';
2589
+ case 'Int16Array':
2590
+ return 'int16array';
2591
+ case 'Uint16Array':
2592
+ return 'uint16array';
2593
+ case 'Int32Array':
2594
+ return 'int32array';
2595
+ case 'Uint32Array':
2596
+ return 'uint32array';
2597
+ case 'Float32Array':
2598
+ return 'float32array';
2599
+ case 'Float64Array':
2600
+ return 'float64array';
2601
+ }
2602
+ if (isGeneratorObj(val)) return 'generator';
2603
+ type = toString.call(val);
2604
+ switch(type){
2605
+ case '[object Object]':
2606
+ return 'object';
2607
+ case '[object Map Iterator]':
2608
+ return 'mapiterator';
2609
+ case '[object Set Iterator]':
2610
+ return 'setiterator';
2611
+ case '[object String Iterator]':
2612
+ return 'stringiterator';
2613
+ case '[object Array Iterator]':
2614
+ return 'arrayiterator';
2615
+ }
2616
+ return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
2617
+ };
2618
+ function ctorName(val) {
2619
+ return 'function' == typeof val.constructor ? val.constructor.name : null;
2620
+ }
2621
+ function isArray(val) {
2622
+ if (Array.isArray) return Array.isArray(val);
2623
+ return val instanceof Array;
2624
+ }
2625
+ function isError(val) {
2626
+ return val instanceof Error || 'string' == typeof val.message && val.constructor && 'number' == typeof val.constructor.stackTraceLimit;
2627
+ }
2628
+ function isDate(val) {
2629
+ if (val instanceof Date) return true;
2630
+ return 'function' == typeof val.toDateString && 'function' == typeof val.getDate && 'function' == typeof val.setDate;
2631
+ }
2632
+ function isRegexp(val) {
2633
+ if (val instanceof RegExp) return true;
2634
+ return 'string' == typeof val.flags && 'boolean' == typeof val.ignoreCase && 'boolean' == typeof val.multiline && 'boolean' == typeof val.global;
2635
+ }
2636
+ function isGeneratorFn(name, val) {
2637
+ return 'GeneratorFunction' === ctorName(name);
2638
+ }
2639
+ function isGeneratorObj(val) {
2640
+ return 'function' == typeof val.throw && 'function' == typeof val.return && 'function' == typeof val.next;
2641
+ }
2642
+ function isArguments(val) {
2643
+ try {
2644
+ if ('number' == typeof val.length && 'function' == typeof val.callee) return true;
2645
+ } catch (err) {
2646
+ if (-1 !== err.message.indexOf('callee')) return true;
2647
+ }
2648
+ return false;
2649
+ }
2650
+ function isBuffer(val) {
2651
+ if (val.constructor && 'function' == typeof val.constructor.isBuffer) return val.constructor.isBuffer(val);
2652
+ return false;
2653
+ }
2654
+ },
2655
+ "../../node_modules/.pnpm/section-matter@1.0.0/node_modules/section-matter/index.js" (module, __unused_rspack_exports, __webpack_require__) {
2656
+ var typeOf = __webpack_require__("../../node_modules/.pnpm/kind-of@6.0.3/node_modules/kind-of/index.js");
2657
+ var extend = __webpack_require__("../../node_modules/.pnpm/extend-shallow@2.0.1/node_modules/extend-shallow/index.js");
2658
+ module.exports = function(input, options) {
2659
+ if ('function' == typeof options) options = {
2660
+ parse: options
2661
+ };
2662
+ var file = toObject(input);
2663
+ var defaults = {
2664
+ section_delimiter: '---',
2665
+ parse: identity
2666
+ };
2667
+ var opts = extend({}, defaults, options);
2668
+ var delim = opts.section_delimiter;
2669
+ var lines = file.content.split(/\r?\n/);
2670
+ var sections = null;
2671
+ var section = createSection();
2672
+ var content = [];
2673
+ var stack = [];
2674
+ function initSections(val) {
2675
+ file.content = val;
2676
+ sections = [];
2677
+ content = [];
2678
+ }
2679
+ function closeSection(val) {
2680
+ if (stack.length) {
2681
+ section.key = getKey(stack[0], delim);
2682
+ section.content = val;
2683
+ opts.parse(section, sections);
2684
+ sections.push(section);
2685
+ section = createSection();
2686
+ content = [];
2687
+ stack = [];
2688
+ }
2689
+ }
2690
+ for(var i = 0; i < lines.length; i++){
2691
+ var line = lines[i];
2692
+ var len = stack.length;
2693
+ var ln = line.trim();
2694
+ if (isDelimiter(ln, delim)) {
2695
+ if (3 === ln.length && 0 !== i) {
2696
+ if (0 === len || 2 === len) {
2697
+ content.push(line);
2698
+ continue;
2699
+ }
2700
+ stack.push(ln);
2701
+ section.data = content.join('\n');
2702
+ content = [];
2703
+ continue;
2704
+ }
2705
+ if (null === sections) initSections(content.join('\n'));
2706
+ if (2 === len) closeSection(content.join('\n'));
2707
+ stack.push(ln);
2708
+ continue;
2709
+ }
2710
+ content.push(line);
2711
+ }
2712
+ if (null === sections) initSections(content.join('\n'));
2713
+ else closeSection(content.join('\n'));
2714
+ file.sections = sections;
2715
+ return file;
2716
+ };
2717
+ function isDelimiter(line, delim) {
2718
+ if (line.slice(0, delim.length) !== delim) return false;
2719
+ if (line.charAt(delim.length + 1) === delim.slice(-1)) return false;
2720
+ return true;
2721
+ }
2722
+ function toObject(input) {
2723
+ if ('object' !== typeOf(input)) input = {
2724
+ content: input
2725
+ };
2726
+ if ('string' != typeof input.content && !isBuffer(input.content)) throw new TypeError('expected a buffer or string');
2727
+ input.content = input.content.toString();
2728
+ input.sections = [];
2729
+ return input;
2730
+ }
2731
+ function getKey(val, delim) {
2732
+ return val ? val.slice(delim.length).trim() : '';
2733
+ }
2734
+ function createSection() {
2735
+ return {
2736
+ key: '',
2737
+ data: '',
2738
+ content: ''
2739
+ };
2740
+ }
2741
+ function identity(val) {
2742
+ return val;
2743
+ }
2744
+ function isBuffer(val) {
2745
+ if (val && val.constructor && 'function' == typeof val.constructor.isBuffer) return val.constructor.isBuffer(val);
2746
+ return false;
2747
+ }
2748
+ },
2749
+ "../../node_modules/.pnpm/strip-bom-string@1.0.0/node_modules/strip-bom-string/index.js" (module) {
2750
+ /*!
2751
+ * strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
2752
+ *
2753
+ * Copyright (c) 2015, 2017, Jon Schlinkert.
2754
+ * Released under the MIT License.
2755
+ */ module.exports = function(str) {
2756
+ if ('string' == typeof str && '\ufeff' === str.charAt(0)) return str.slice(1);
2757
+ return str;
2758
+ };
2759
+ },
2760
+ fs (module) {
2761
+ module.exports = __rspack_createRequire_require("fs");
2762
+ }
2763
+ });
2764
+ const gray_matter = __webpack_require__("../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.js");
2765
+ var gray_matter_default = /*#__PURE__*/ __webpack_require__.n(gray_matter);
2766
+ function grayMatter(source, options) {
2767
+ const result = gray_matter_default()(source, options);
2768
+ return result;
2769
+ }
2770
+ const src_grayMatter = grayMatter;
2771
+ export default src_grayMatter;
2772
+ export { grayMatter };