@gigadrive/network-config 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3102,92 +3102,62 @@
3102
3102
  }
3103
3103
  });
3104
3104
 
3105
- // ../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/lib/scopedChars.js
3106
- var require_scopedChars = __commonJS({
3107
- "../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/lib/scopedChars.js"(exports, module) {
3108
- "use strict";
3109
- var HEX = {
3110
- 0: 0,
3111
- 1: 1,
3112
- 2: 2,
3113
- 3: 3,
3114
- 4: 4,
3115
- 5: 5,
3116
- 6: 6,
3117
- 7: 7,
3118
- 8: 8,
3119
- 9: 9,
3120
- a: 10,
3121
- A: 10,
3122
- b: 11,
3123
- B: 11,
3124
- c: 12,
3125
- C: 12,
3126
- d: 13,
3127
- D: 13,
3128
- e: 14,
3129
- E: 14,
3130
- f: 15,
3131
- F: 15
3132
- };
3133
- module.exports = {
3134
- HEX
3135
- };
3136
- }
3137
- });
3138
-
3139
- // ../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/lib/utils.js
3105
+ // ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js
3140
3106
  var require_utils = __commonJS({
3141
- "../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/lib/utils.js"(exports, module) {
3107
+ "../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js"(exports, module) {
3142
3108
  "use strict";
3143
- var { HEX } = require_scopedChars();
3144
- var IPV4_REG = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;
3145
- function normalizeIPv4(host) {
3146
- if (findToken(host, ".") < 3) {
3147
- return { host, isIPV4: false };
3148
- }
3149
- const matches = host.match(IPV4_REG) || [];
3150
- const [address] = matches;
3151
- if (address) {
3152
- return { host: stripLeadingZeros(address, "."), isIPV4: true };
3153
- } else {
3154
- return { host, isIPV4: false };
3155
- }
3156
- }
3157
- function stringArrayToHexStripped(input, keepZero = false) {
3109
+ var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3110
+ var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
3111
+ function stringArrayToHexStripped(input) {
3158
3112
  let acc = "";
3159
- let strip = true;
3160
- for (const c of input) {
3161
- if (HEX[c] === void 0) return void 0;
3162
- if (c !== "0" && strip === true) strip = false;
3163
- if (!strip) acc += c;
3113
+ let code = 0;
3114
+ let i = 0;
3115
+ for (i = 0; i < input.length; i++) {
3116
+ code = input[i].charCodeAt(0);
3117
+ if (code === 48) {
3118
+ continue;
3119
+ }
3120
+ if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
3121
+ return "";
3122
+ }
3123
+ acc += input[i];
3124
+ break;
3125
+ }
3126
+ for (i += 1; i < input.length; i++) {
3127
+ code = input[i].charCodeAt(0);
3128
+ if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
3129
+ return "";
3130
+ }
3131
+ acc += input[i];
3164
3132
  }
3165
- if (keepZero && acc.length === 0) acc = "0";
3166
3133
  return acc;
3167
3134
  }
3135
+ var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
3136
+ function consumeIsZone(buffer) {
3137
+ buffer.length = 0;
3138
+ return true;
3139
+ }
3140
+ function consumeHextets(buffer, address, output) {
3141
+ if (buffer.length) {
3142
+ const hex = stringArrayToHexStripped(buffer);
3143
+ if (hex !== "") {
3144
+ address.push(hex);
3145
+ } else {
3146
+ output.error = true;
3147
+ return false;
3148
+ }
3149
+ buffer.length = 0;
3150
+ }
3151
+ return true;
3152
+ }
3168
3153
  function getIPV6(input) {
3169
3154
  let tokenCount = 0;
3170
3155
  const output = { error: false, address: "", zone: "" };
3171
3156
  const address = [];
3172
3157
  const buffer = [];
3173
- let isZone = false;
3174
3158
  let endipv6Encountered = false;
3175
3159
  let endIpv6 = false;
3176
- function consume() {
3177
- if (buffer.length) {
3178
- if (isZone === false) {
3179
- const hex = stringArrayToHexStripped(buffer);
3180
- if (hex !== void 0) {
3181
- address.push(hex);
3182
- } else {
3183
- output.error = true;
3184
- return false;
3185
- }
3186
- }
3187
- buffer.length = 0;
3188
- }
3189
- return true;
3190
- }
3160
+ let consume = consumeHextets;
3191
3161
  for (let i = 0; i < input.length; i++) {
3192
3162
  const cursor = input[i];
3193
3163
  if (cursor === "[" || cursor === "]") {
@@ -3197,31 +3167,30 @@
3197
3167
  if (endipv6Encountered === true) {
3198
3168
  endIpv6 = true;
3199
3169
  }
3200
- if (!consume()) {
3170
+ if (!consume(buffer, address, output)) {
3201
3171
  break;
3202
3172
  }
3203
- tokenCount++;
3204
- address.push(":");
3205
- if (tokenCount > 7) {
3173
+ if (++tokenCount > 7) {
3206
3174
  output.error = true;
3207
3175
  break;
3208
3176
  }
3209
- if (i - 1 >= 0 && input[i - 1] === ":") {
3177
+ if (i > 0 && input[i - 1] === ":") {
3210
3178
  endipv6Encountered = true;
3211
3179
  }
3180
+ address.push(":");
3212
3181
  continue;
3213
3182
  } else if (cursor === "%") {
3214
- if (!consume()) {
3183
+ if (!consume(buffer, address, output)) {
3215
3184
  break;
3216
3185
  }
3217
- isZone = true;
3186
+ consume = consumeIsZone;
3218
3187
  } else {
3219
3188
  buffer.push(cursor);
3220
3189
  continue;
3221
3190
  }
3222
3191
  }
3223
3192
  if (buffer.length) {
3224
- if (isZone) {
3193
+ if (consume === consumeIsZone) {
3225
3194
  output.zone = buffer.join("");
3226
3195
  } else if (endIpv6) {
3227
3196
  address.push(buffer.join(""));
@@ -3244,33 +3213,11 @@
3244
3213
  newHost += "%" + ipv6.zone;
3245
3214
  escapedHost += "%25" + ipv6.zone;
3246
3215
  }
3247
- return { host: newHost, escapedHost, isIPV6: true };
3216
+ return { host: newHost, isIPV6: true, escapedHost };
3248
3217
  } else {
3249
3218
  return { host, isIPV6: false };
3250
3219
  }
3251
3220
  }
3252
- function stripLeadingZeros(str, token) {
3253
- let out = "";
3254
- let skip = true;
3255
- const l = str.length;
3256
- for (let i = 0; i < l; i++) {
3257
- const c = str[i];
3258
- if (c === "0" && skip) {
3259
- if (i + 1 <= l && str[i + 1] === token || i + 1 === l) {
3260
- out += c;
3261
- skip = false;
3262
- }
3263
- } else {
3264
- if (c === token) {
3265
- skip = true;
3266
- } else {
3267
- skip = false;
3268
- }
3269
- out += c;
3270
- }
3271
- }
3272
- return out;
3273
- }
3274
3221
  function findToken(str, token) {
3275
3222
  let ind = 0;
3276
3223
  for (let i = 0; i < str.length; i++) {
@@ -3278,261 +3225,373 @@
3278
3225
  }
3279
3226
  return ind;
3280
3227
  }
3281
- var RDS1 = /^\.\.?\//u;
3282
- var RDS2 = /^\/\.(?:\/|$)/u;
3283
- var RDS3 = /^\/\.\.(?:\/|$)/u;
3284
- var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/u;
3285
- function removeDotSegments(input) {
3228
+ function removeDotSegments(path7) {
3229
+ let input = path7;
3286
3230
  const output = [];
3287
- while (input.length) {
3288
- if (input.match(RDS1)) {
3289
- input = input.replace(RDS1, "");
3290
- } else if (input.match(RDS2)) {
3291
- input = input.replace(RDS2, "/");
3292
- } else if (input.match(RDS3)) {
3293
- input = input.replace(RDS3, "/");
3294
- output.pop();
3295
- } else if (input === "." || input === "..") {
3296
- input = "";
3297
- } else {
3298
- const im = input.match(RDS5);
3299
- if (im) {
3300
- const s = im[0];
3301
- input = input.slice(s.length);
3302
- output.push(s);
3231
+ let nextSlash = -1;
3232
+ let len = 0;
3233
+ while (len = input.length) {
3234
+ if (len === 1) {
3235
+ if (input === ".") {
3236
+ break;
3237
+ } else if (input === "/") {
3238
+ output.push("/");
3239
+ break;
3303
3240
  } else {
3304
- throw new Error("Unexpected dot segment condition");
3241
+ output.push(input);
3242
+ break;
3243
+ }
3244
+ } else if (len === 2) {
3245
+ if (input[0] === ".") {
3246
+ if (input[1] === ".") {
3247
+ break;
3248
+ } else if (input[1] === "/") {
3249
+ input = input.slice(2);
3250
+ continue;
3251
+ }
3252
+ } else if (input[0] === "/") {
3253
+ if (input[1] === "." || input[1] === "/") {
3254
+ output.push("/");
3255
+ break;
3256
+ }
3257
+ }
3258
+ } else if (len === 3) {
3259
+ if (input === "/..") {
3260
+ if (output.length !== 0) {
3261
+ output.pop();
3262
+ }
3263
+ output.push("/");
3264
+ break;
3265
+ }
3266
+ }
3267
+ if (input[0] === ".") {
3268
+ if (input[1] === ".") {
3269
+ if (input[2] === "/") {
3270
+ input = input.slice(3);
3271
+ continue;
3272
+ }
3273
+ } else if (input[1] === "/") {
3274
+ input = input.slice(2);
3275
+ continue;
3276
+ }
3277
+ } else if (input[0] === "/") {
3278
+ if (input[1] === ".") {
3279
+ if (input[2] === "/") {
3280
+ input = input.slice(2);
3281
+ continue;
3282
+ } else if (input[2] === ".") {
3283
+ if (input[3] === "/") {
3284
+ input = input.slice(3);
3285
+ if (output.length !== 0) {
3286
+ output.pop();
3287
+ }
3288
+ continue;
3289
+ }
3290
+ }
3305
3291
  }
3306
3292
  }
3293
+ if ((nextSlash = input.indexOf("/", 1)) === -1) {
3294
+ output.push(input);
3295
+ break;
3296
+ } else {
3297
+ output.push(input.slice(0, nextSlash));
3298
+ input = input.slice(nextSlash);
3299
+ }
3307
3300
  }
3308
3301
  return output.join("");
3309
3302
  }
3310
- function normalizeComponentEncoding(components, esc) {
3303
+ function normalizeComponentEncoding(component, esc) {
3311
3304
  const func = esc !== true ? escape : unescape;
3312
- if (components.scheme !== void 0) {
3313
- components.scheme = func(components.scheme);
3305
+ if (component.scheme !== void 0) {
3306
+ component.scheme = func(component.scheme);
3314
3307
  }
3315
- if (components.userinfo !== void 0) {
3316
- components.userinfo = func(components.userinfo);
3308
+ if (component.userinfo !== void 0) {
3309
+ component.userinfo = func(component.userinfo);
3317
3310
  }
3318
- if (components.host !== void 0) {
3319
- components.host = func(components.host);
3311
+ if (component.host !== void 0) {
3312
+ component.host = func(component.host);
3320
3313
  }
3321
- if (components.path !== void 0) {
3322
- components.path = func(components.path);
3314
+ if (component.path !== void 0) {
3315
+ component.path = func(component.path);
3323
3316
  }
3324
- if (components.query !== void 0) {
3325
- components.query = func(components.query);
3317
+ if (component.query !== void 0) {
3318
+ component.query = func(component.query);
3326
3319
  }
3327
- if (components.fragment !== void 0) {
3328
- components.fragment = func(components.fragment);
3320
+ if (component.fragment !== void 0) {
3321
+ component.fragment = func(component.fragment);
3329
3322
  }
3330
- return components;
3323
+ return component;
3331
3324
  }
3332
- function recomposeAuthority(components) {
3325
+ function recomposeAuthority(component) {
3333
3326
  const uriTokens = [];
3334
- if (components.userinfo !== void 0) {
3335
- uriTokens.push(components.userinfo);
3327
+ if (component.userinfo !== void 0) {
3328
+ uriTokens.push(component.userinfo);
3336
3329
  uriTokens.push("@");
3337
3330
  }
3338
- if (components.host !== void 0) {
3339
- let host = unescape(components.host);
3340
- const ipV4res = normalizeIPv4(host);
3341
- if (ipV4res.isIPV4) {
3342
- host = ipV4res.host;
3343
- } else {
3344
- const ipV6res = normalizeIPv6(ipV4res.host);
3331
+ if (component.host !== void 0) {
3332
+ let host = unescape(component.host);
3333
+ if (!isIPv4(host)) {
3334
+ const ipV6res = normalizeIPv6(host);
3345
3335
  if (ipV6res.isIPV6 === true) {
3346
3336
  host = `[${ipV6res.escapedHost}]`;
3347
3337
  } else {
3348
- host = components.host;
3338
+ host = component.host;
3349
3339
  }
3350
3340
  }
3351
3341
  uriTokens.push(host);
3352
3342
  }
3353
- if (typeof components.port === "number" || typeof components.port === "string") {
3343
+ if (typeof component.port === "number" || typeof component.port === "string") {
3354
3344
  uriTokens.push(":");
3355
- uriTokens.push(String(components.port));
3345
+ uriTokens.push(String(component.port));
3356
3346
  }
3357
3347
  return uriTokens.length ? uriTokens.join("") : void 0;
3358
3348
  }
3359
3349
  module.exports = {
3350
+ nonSimpleDomain,
3360
3351
  recomposeAuthority,
3361
3352
  normalizeComponentEncoding,
3362
3353
  removeDotSegments,
3363
- normalizeIPv4,
3354
+ isIPv4,
3355
+ isUUID,
3364
3356
  normalizeIPv6,
3365
3357
  stringArrayToHexStripped
3366
3358
  };
3367
3359
  }
3368
3360
  });
3369
3361
 
3370
- // ../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/lib/schemes.js
3362
+ // ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js
3371
3363
  var require_schemes = __commonJS({
3372
- "../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/lib/schemes.js"(exports, module) {
3364
+ "../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js"(exports, module) {
3373
3365
  "use strict";
3374
- var UUID_REG = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu;
3366
+ var { isUUID } = require_utils();
3375
3367
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
3376
- function isSecure(wsComponents) {
3377
- return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
3368
+ var supportedSchemeNames = (
3369
+ /** @type {const} */
3370
+ [
3371
+ "http",
3372
+ "https",
3373
+ "ws",
3374
+ "wss",
3375
+ "urn",
3376
+ "urn:uuid"
3377
+ ]
3378
+ );
3379
+ function isValidSchemeName(name) {
3380
+ return supportedSchemeNames.indexOf(
3381
+ /** @type {*} */
3382
+ name
3383
+ ) !== -1;
3384
+ }
3385
+ function wsIsSecure(wsComponent) {
3386
+ if (wsComponent.secure === true) {
3387
+ return true;
3388
+ } else if (wsComponent.secure === false) {
3389
+ return false;
3390
+ } else if (wsComponent.scheme) {
3391
+ return wsComponent.scheme.length === 3 && (wsComponent.scheme[0] === "w" || wsComponent.scheme[0] === "W") && (wsComponent.scheme[1] === "s" || wsComponent.scheme[1] === "S") && (wsComponent.scheme[2] === "s" || wsComponent.scheme[2] === "S");
3392
+ } else {
3393
+ return false;
3394
+ }
3378
3395
  }
3379
- function httpParse(components) {
3380
- if (!components.host) {
3381
- components.error = components.error || "HTTP URIs must have a host.";
3396
+ function httpParse(component) {
3397
+ if (!component.host) {
3398
+ component.error = component.error || "HTTP URIs must have a host.";
3382
3399
  }
3383
- return components;
3400
+ return component;
3384
3401
  }
3385
- function httpSerialize(components) {
3386
- const secure = String(components.scheme).toLowerCase() === "https";
3387
- if (components.port === (secure ? 443 : 80) || components.port === "") {
3388
- components.port = void 0;
3402
+ function httpSerialize(component) {
3403
+ const secure = String(component.scheme).toLowerCase() === "https";
3404
+ if (component.port === (secure ? 443 : 80) || component.port === "") {
3405
+ component.port = void 0;
3389
3406
  }
3390
- if (!components.path) {
3391
- components.path = "/";
3407
+ if (!component.path) {
3408
+ component.path = "/";
3392
3409
  }
3393
- return components;
3410
+ return component;
3394
3411
  }
3395
- function wsParse(wsComponents) {
3396
- wsComponents.secure = isSecure(wsComponents);
3397
- wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
3398
- wsComponents.path = void 0;
3399
- wsComponents.query = void 0;
3400
- return wsComponents;
3412
+ function wsParse(wsComponent) {
3413
+ wsComponent.secure = wsIsSecure(wsComponent);
3414
+ wsComponent.resourceName = (wsComponent.path || "/") + (wsComponent.query ? "?" + wsComponent.query : "");
3415
+ wsComponent.path = void 0;
3416
+ wsComponent.query = void 0;
3417
+ return wsComponent;
3401
3418
  }
3402
- function wsSerialize(wsComponents) {
3403
- if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
3404
- wsComponents.port = void 0;
3419
+ function wsSerialize(wsComponent) {
3420
+ if (wsComponent.port === (wsIsSecure(wsComponent) ? 443 : 80) || wsComponent.port === "") {
3421
+ wsComponent.port = void 0;
3405
3422
  }
3406
- if (typeof wsComponents.secure === "boolean") {
3407
- wsComponents.scheme = wsComponents.secure ? "wss" : "ws";
3408
- wsComponents.secure = void 0;
3423
+ if (typeof wsComponent.secure === "boolean") {
3424
+ wsComponent.scheme = wsComponent.secure ? "wss" : "ws";
3425
+ wsComponent.secure = void 0;
3409
3426
  }
3410
- if (wsComponents.resourceName) {
3411
- const [path7, query] = wsComponents.resourceName.split("?");
3412
- wsComponents.path = path7 && path7 !== "/" ? path7 : void 0;
3413
- wsComponents.query = query;
3414
- wsComponents.resourceName = void 0;
3427
+ if (wsComponent.resourceName) {
3428
+ const [path7, query] = wsComponent.resourceName.split("?");
3429
+ wsComponent.path = path7 && path7 !== "/" ? path7 : void 0;
3430
+ wsComponent.query = query;
3431
+ wsComponent.resourceName = void 0;
3415
3432
  }
3416
- wsComponents.fragment = void 0;
3417
- return wsComponents;
3433
+ wsComponent.fragment = void 0;
3434
+ return wsComponent;
3418
3435
  }
3419
- function urnParse(urnComponents, options) {
3420
- if (!urnComponents.path) {
3421
- urnComponents.error = "URN can not be parsed";
3422
- return urnComponents;
3436
+ function urnParse(urnComponent, options) {
3437
+ if (!urnComponent.path) {
3438
+ urnComponent.error = "URN can not be parsed";
3439
+ return urnComponent;
3423
3440
  }
3424
- const matches = urnComponents.path.match(URN_REG);
3441
+ const matches = urnComponent.path.match(URN_REG);
3425
3442
  if (matches) {
3426
- const scheme = options.scheme || urnComponents.scheme || "urn";
3427
- urnComponents.nid = matches[1].toLowerCase();
3428
- urnComponents.nss = matches[2];
3429
- const urnScheme = `${scheme}:${options.nid || urnComponents.nid}`;
3430
- const schemeHandler = SCHEMES[urnScheme];
3431
- urnComponents.path = void 0;
3443
+ const scheme = options.scheme || urnComponent.scheme || "urn";
3444
+ urnComponent.nid = matches[1].toLowerCase();
3445
+ urnComponent.nss = matches[2];
3446
+ const urnScheme = `${scheme}:${options.nid || urnComponent.nid}`;
3447
+ const schemeHandler = getSchemeHandler(urnScheme);
3448
+ urnComponent.path = void 0;
3432
3449
  if (schemeHandler) {
3433
- urnComponents = schemeHandler.parse(urnComponents, options);
3450
+ urnComponent = schemeHandler.parse(urnComponent, options);
3434
3451
  }
3435
3452
  } else {
3436
- urnComponents.error = urnComponents.error || "URN can not be parsed.";
3453
+ urnComponent.error = urnComponent.error || "URN can not be parsed.";
3437
3454
  }
3438
- return urnComponents;
3455
+ return urnComponent;
3439
3456
  }
3440
- function urnSerialize(urnComponents, options) {
3441
- const scheme = options.scheme || urnComponents.scheme || "urn";
3442
- const nid = urnComponents.nid.toLowerCase();
3457
+ function urnSerialize(urnComponent, options) {
3458
+ if (urnComponent.nid === void 0) {
3459
+ throw new Error("URN without nid cannot be serialized");
3460
+ }
3461
+ const scheme = options.scheme || urnComponent.scheme || "urn";
3462
+ const nid = urnComponent.nid.toLowerCase();
3443
3463
  const urnScheme = `${scheme}:${options.nid || nid}`;
3444
- const schemeHandler = SCHEMES[urnScheme];
3464
+ const schemeHandler = getSchemeHandler(urnScheme);
3445
3465
  if (schemeHandler) {
3446
- urnComponents = schemeHandler.serialize(urnComponents, options);
3466
+ urnComponent = schemeHandler.serialize(urnComponent, options);
3447
3467
  }
3448
- const uriComponents = urnComponents;
3449
- const nss = urnComponents.nss;
3450
- uriComponents.path = `${nid || options.nid}:${nss}`;
3468
+ const uriComponent = urnComponent;
3469
+ const nss = urnComponent.nss;
3470
+ uriComponent.path = `${nid || options.nid}:${nss}`;
3451
3471
  options.skipEscape = true;
3452
- return uriComponents;
3453
- }
3454
- function urnuuidParse(urnComponents, options) {
3455
- const uuidComponents = urnComponents;
3456
- uuidComponents.uuid = uuidComponents.nss;
3457
- uuidComponents.nss = void 0;
3458
- if (!options.tolerant && (!uuidComponents.uuid || !UUID_REG.test(uuidComponents.uuid))) {
3459
- uuidComponents.error = uuidComponents.error || "UUID is not valid.";
3460
- }
3461
- return uuidComponents;
3462
- }
3463
- function urnuuidSerialize(uuidComponents) {
3464
- const urnComponents = uuidComponents;
3465
- urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
3466
- return urnComponents;
3467
- }
3468
- var http = {
3469
- scheme: "http",
3470
- domainHost: true,
3471
- parse: httpParse,
3472
- serialize: httpSerialize
3473
- };
3474
- var https = {
3475
- scheme: "https",
3476
- domainHost: http.domainHost,
3477
- parse: httpParse,
3478
- serialize: httpSerialize
3479
- };
3480
- var ws = {
3481
- scheme: "ws",
3482
- domainHost: true,
3483
- parse: wsParse,
3484
- serialize: wsSerialize
3485
- };
3486
- var wss = {
3487
- scheme: "wss",
3488
- domainHost: ws.domainHost,
3489
- parse: ws.parse,
3490
- serialize: ws.serialize
3491
- };
3492
- var urn = {
3493
- scheme: "urn",
3494
- parse: urnParse,
3495
- serialize: urnSerialize,
3496
- skipNormalize: true
3497
- };
3498
- var urnuuid = {
3499
- scheme: "urn:uuid",
3500
- parse: urnuuidParse,
3501
- serialize: urnuuidSerialize,
3502
- skipNormalize: true
3503
- };
3504
- var SCHEMES = {
3505
- http,
3506
- https,
3507
- ws,
3508
- wss,
3509
- urn,
3510
- "urn:uuid": urnuuid
3472
+ return uriComponent;
3473
+ }
3474
+ function urnuuidParse(urnComponent, options) {
3475
+ const uuidComponent = urnComponent;
3476
+ uuidComponent.uuid = uuidComponent.nss;
3477
+ uuidComponent.nss = void 0;
3478
+ if (!options.tolerant && (!uuidComponent.uuid || !isUUID(uuidComponent.uuid))) {
3479
+ uuidComponent.error = uuidComponent.error || "UUID is not valid.";
3480
+ }
3481
+ return uuidComponent;
3482
+ }
3483
+ function urnuuidSerialize(uuidComponent) {
3484
+ const urnComponent = uuidComponent;
3485
+ urnComponent.nss = (uuidComponent.uuid || "").toLowerCase();
3486
+ return urnComponent;
3487
+ }
3488
+ var http = (
3489
+ /** @type {SchemeHandler} */
3490
+ {
3491
+ scheme: "http",
3492
+ domainHost: true,
3493
+ parse: httpParse,
3494
+ serialize: httpSerialize
3495
+ }
3496
+ );
3497
+ var https = (
3498
+ /** @type {SchemeHandler} */
3499
+ {
3500
+ scheme: "https",
3501
+ domainHost: http.domainHost,
3502
+ parse: httpParse,
3503
+ serialize: httpSerialize
3504
+ }
3505
+ );
3506
+ var ws = (
3507
+ /** @type {SchemeHandler} */
3508
+ {
3509
+ scheme: "ws",
3510
+ domainHost: true,
3511
+ parse: wsParse,
3512
+ serialize: wsSerialize
3513
+ }
3514
+ );
3515
+ var wss = (
3516
+ /** @type {SchemeHandler} */
3517
+ {
3518
+ scheme: "wss",
3519
+ domainHost: ws.domainHost,
3520
+ parse: ws.parse,
3521
+ serialize: ws.serialize
3522
+ }
3523
+ );
3524
+ var urn = (
3525
+ /** @type {SchemeHandler} */
3526
+ {
3527
+ scheme: "urn",
3528
+ parse: urnParse,
3529
+ serialize: urnSerialize,
3530
+ skipNormalize: true
3531
+ }
3532
+ );
3533
+ var urnuuid = (
3534
+ /** @type {SchemeHandler} */
3535
+ {
3536
+ scheme: "urn:uuid",
3537
+ parse: urnuuidParse,
3538
+ serialize: urnuuidSerialize,
3539
+ skipNormalize: true
3540
+ }
3541
+ );
3542
+ var SCHEMES = (
3543
+ /** @type {Record<SchemeName, SchemeHandler>} */
3544
+ {
3545
+ http,
3546
+ https,
3547
+ ws,
3548
+ wss,
3549
+ urn,
3550
+ "urn:uuid": urnuuid
3551
+ }
3552
+ );
3553
+ Object.setPrototypeOf(SCHEMES, null);
3554
+ function getSchemeHandler(scheme) {
3555
+ return scheme && (SCHEMES[
3556
+ /** @type {SchemeName} */
3557
+ scheme
3558
+ ] || SCHEMES[
3559
+ /** @type {SchemeName} */
3560
+ scheme.toLowerCase()
3561
+ ]) || void 0;
3562
+ }
3563
+ module.exports = {
3564
+ wsIsSecure,
3565
+ SCHEMES,
3566
+ isValidSchemeName,
3567
+ getSchemeHandler
3511
3568
  };
3512
- module.exports = SCHEMES;
3513
3569
  }
3514
3570
  });
3515
3571
 
3516
- // ../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/index.js
3572
+ // ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js
3517
3573
  var require_fast_uri = __commonJS({
3518
- "../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/index.js"(exports, module) {
3574
+ "../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js"(exports, module) {
3519
3575
  "use strict";
3520
- var { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = require_utils();
3521
- var SCHEMES = require_schemes();
3576
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
3577
+ var { SCHEMES, getSchemeHandler } = require_schemes();
3522
3578
  function normalize(uri, options) {
3523
3579
  if (typeof uri === "string") {
3524
- uri = serialize(parse(uri, options), options);
3580
+ uri = /** @type {T} */
3581
+ serialize(parse(uri, options), options);
3525
3582
  } else if (typeof uri === "object") {
3526
- uri = parse(serialize(uri, options), options);
3583
+ uri = /** @type {T} */
3584
+ parse(serialize(uri, options), options);
3527
3585
  }
3528
3586
  return uri;
3529
3587
  }
3530
3588
  function resolve(baseURI, relativeURI, options) {
3531
- const schemelessOptions = Object.assign({ scheme: "null" }, options);
3532
- const resolved = resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true);
3533
- return serialize(resolved, { ...schemelessOptions, skipEscape: true });
3589
+ const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
3590
+ const resolved = resolveComponent(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true);
3591
+ schemelessOptions.skipEscape = true;
3592
+ return serialize(resolved, schemelessOptions);
3534
3593
  }
3535
- function resolveComponents(base, relative, options, skipNormalization) {
3594
+ function resolveComponent(base, relative, options, skipNormalization) {
3536
3595
  const target = {};
3537
3596
  if (!skipNormalization) {
3538
3597
  base = parse(serialize(base, options), options);
@@ -3562,7 +3621,7 @@
3562
3621
  target.query = base.query;
3563
3622
  }
3564
3623
  } else {
3565
- if (relative.path.charAt(0) === "/") {
3624
+ if (relative.path[0] === "/") {
3566
3625
  target.path = removeDotSegments(relative.path);
3567
3626
  } else {
3568
3627
  if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
@@ -3601,7 +3660,7 @@
3601
3660
  return uriA.toLowerCase() === uriB.toLowerCase();
3602
3661
  }
3603
3662
  function serialize(cmpts, opts) {
3604
- const components = {
3663
+ const component = {
3605
3664
  host: cmpts.host,
3606
3665
  scheme: cmpts.scheme,
3607
3666
  userinfo: cmpts.userinfo,
@@ -3619,60 +3678,49 @@
3619
3678
  };
3620
3679
  const options = Object.assign({}, opts);
3621
3680
  const uriTokens = [];
3622
- const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
3623
- if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
3624
- if (components.path !== void 0) {
3681
+ const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
3682
+ if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
3683
+ if (component.path !== void 0) {
3625
3684
  if (!options.skipEscape) {
3626
- components.path = escape(components.path);
3627
- if (components.scheme !== void 0) {
3628
- components.path = components.path.split("%3A").join(":");
3685
+ component.path = escape(component.path);
3686
+ if (component.scheme !== void 0) {
3687
+ component.path = component.path.split("%3A").join(":");
3629
3688
  }
3630
3689
  } else {
3631
- components.path = unescape(components.path);
3690
+ component.path = unescape(component.path);
3632
3691
  }
3633
3692
  }
3634
- if (options.reference !== "suffix" && components.scheme) {
3635
- uriTokens.push(components.scheme, ":");
3693
+ if (options.reference !== "suffix" && component.scheme) {
3694
+ uriTokens.push(component.scheme, ":");
3636
3695
  }
3637
- const authority = recomposeAuthority(components);
3696
+ const authority = recomposeAuthority(component);
3638
3697
  if (authority !== void 0) {
3639
3698
  if (options.reference !== "suffix") {
3640
3699
  uriTokens.push("//");
3641
3700
  }
3642
3701
  uriTokens.push(authority);
3643
- if (components.path && components.path.charAt(0) !== "/") {
3702
+ if (component.path && component.path[0] !== "/") {
3644
3703
  uriTokens.push("/");
3645
3704
  }
3646
3705
  }
3647
- if (components.path !== void 0) {
3648
- let s = components.path;
3706
+ if (component.path !== void 0) {
3707
+ let s = component.path;
3649
3708
  if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
3650
3709
  s = removeDotSegments(s);
3651
3710
  }
3652
- if (authority === void 0) {
3653
- s = s.replace(/^\/\//u, "/%2F");
3711
+ if (authority === void 0 && s[0] === "/" && s[1] === "/") {
3712
+ s = "/%2F" + s.slice(2);
3654
3713
  }
3655
3714
  uriTokens.push(s);
3656
3715
  }
3657
- if (components.query !== void 0) {
3658
- uriTokens.push("?", components.query);
3716
+ if (component.query !== void 0) {
3717
+ uriTokens.push("?", component.query);
3659
3718
  }
3660
- if (components.fragment !== void 0) {
3661
- uriTokens.push("#", components.fragment);
3719
+ if (component.fragment !== void 0) {
3720
+ uriTokens.push("#", component.fragment);
3662
3721
  }
3663
3722
  return uriTokens.join("");
3664
3723
  }
3665
- var hexLookUp = Array.from({ length: 127 }, (_v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)));
3666
- function nonSimpleDomain(value) {
3667
- let code = 0;
3668
- for (let i = 0, len = value.length; i < len; ++i) {
3669
- code = value.charCodeAt(i);
3670
- if (code > 126 || hexLookUp[code]) {
3671
- return true;
3672
- }
3673
- }
3674
- return false;
3675
- }
3676
3724
  var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
3677
3725
  function parse(uri, opts) {
3678
3726
  const options = Object.assign({}, opts);
@@ -3685,9 +3733,14 @@
3685
3733
  query: void 0,
3686
3734
  fragment: void 0
3687
3735
  };
3688
- const gotEncoding = uri.indexOf("%") !== -1;
3689
3736
  let isIP = false;
3690
- if (options.reference === "suffix") uri = (options.scheme ? options.scheme + ":" : "") + "//" + uri;
3737
+ if (options.reference === "suffix") {
3738
+ if (options.scheme) {
3739
+ uri = options.scheme + ":" + uri;
3740
+ } else {
3741
+ uri = "//" + uri;
3742
+ }
3743
+ }
3691
3744
  const matches = uri.match(URI_PARSE);
3692
3745
  if (matches) {
3693
3746
  parsed.scheme = matches[1];
@@ -3701,13 +3754,12 @@
3701
3754
  parsed.port = matches[5];
3702
3755
  }
3703
3756
  if (parsed.host) {
3704
- const ipv4result = normalizeIPv4(parsed.host);
3705
- if (ipv4result.isIPV4 === false) {
3706
- const ipv6result = normalizeIPv6(ipv4result.host);
3757
+ const ipv4result = isIPv4(parsed.host);
3758
+ if (ipv4result === false) {
3759
+ const ipv6result = normalizeIPv6(parsed.host);
3707
3760
  parsed.host = ipv6result.host.toLowerCase();
3708
3761
  isIP = ipv6result.isIPV6;
3709
3762
  } else {
3710
- parsed.host = ipv4result.host;
3711
3763
  isIP = true;
3712
3764
  }
3713
3765
  }
@@ -3723,7 +3775,7 @@
3723
3775
  if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) {
3724
3776
  parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
3725
3777
  }
3726
- const schemeHandler = SCHEMES[(options.scheme || parsed.scheme || "").toLowerCase()];
3778
+ const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
3727
3779
  if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
3728
3780
  if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
3729
3781
  try {
@@ -3734,11 +3786,13 @@
3734
3786
  }
3735
3787
  }
3736
3788
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
3737
- if (gotEncoding && parsed.scheme !== void 0) {
3738
- parsed.scheme = unescape(parsed.scheme);
3739
- }
3740
- if (gotEncoding && parsed.host !== void 0) {
3741
- parsed.host = unescape(parsed.host);
3789
+ if (uri.indexOf("%") !== -1) {
3790
+ if (parsed.scheme !== void 0) {
3791
+ parsed.scheme = unescape(parsed.scheme);
3792
+ }
3793
+ if (parsed.host !== void 0) {
3794
+ parsed.host = unescape(parsed.host);
3795
+ }
3742
3796
  }
3743
3797
  if (parsed.path) {
3744
3798
  parsed.path = escape(unescape(parsed.path));
@@ -3759,7 +3813,7 @@
3759
3813
  SCHEMES,
3760
3814
  normalize,
3761
3815
  resolve,
3762
- resolveComponents,
3816
+ resolveComponent,
3763
3817
  equal,
3764
3818
  serialize,
3765
3819
  parse
@@ -6738,218 +6792,9 @@
6738
6792
  }
6739
6793
  });
6740
6794
 
6741
- // ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
6742
- var require_balanced_match = __commonJS({
6743
- "../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module) {
6744
- "use strict";
6745
- module.exports = balanced;
6746
- function balanced(a, b, str) {
6747
- if (a instanceof RegExp) a = maybeMatch(a, str);
6748
- if (b instanceof RegExp) b = maybeMatch(b, str);
6749
- var r = range(a, b, str);
6750
- return r && {
6751
- start: r[0],
6752
- end: r[1],
6753
- pre: str.slice(0, r[0]),
6754
- body: str.slice(r[0] + a.length, r[1]),
6755
- post: str.slice(r[1] + b.length)
6756
- };
6757
- }
6758
- function maybeMatch(reg, str) {
6759
- var m = str.match(reg);
6760
- return m ? m[0] : null;
6761
- }
6762
- balanced.range = range;
6763
- function range(a, b, str) {
6764
- var begs, beg, left, right, result;
6765
- var ai = str.indexOf(a);
6766
- var bi = str.indexOf(b, ai + 1);
6767
- var i = ai;
6768
- if (ai >= 0 && bi > 0) {
6769
- if (a === b) {
6770
- return [ai, bi];
6771
- }
6772
- begs = [];
6773
- left = str.length;
6774
- while (i >= 0 && !result) {
6775
- if (i == ai) {
6776
- begs.push(i);
6777
- ai = str.indexOf(a, i + 1);
6778
- } else if (begs.length == 1) {
6779
- result = [begs.pop(), bi];
6780
- } else {
6781
- beg = begs.pop();
6782
- if (beg < left) {
6783
- left = beg;
6784
- right = bi;
6785
- }
6786
- bi = str.indexOf(b, i + 1);
6787
- }
6788
- i = ai < bi && ai >= 0 ? ai : bi;
6789
- }
6790
- if (begs.length) {
6791
- result = [left, right];
6792
- }
6793
- }
6794
- return result;
6795
- }
6796
- }
6797
- });
6798
-
6799
- // ../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js
6800
- var require_brace_expansion = __commonJS({
6801
- "../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module) {
6802
- "use strict";
6803
- var balanced = require_balanced_match();
6804
- module.exports = expandTop;
6805
- var escSlash = "\0SLASH" + Math.random() + "\0";
6806
- var escOpen = "\0OPEN" + Math.random() + "\0";
6807
- var escClose = "\0CLOSE" + Math.random() + "\0";
6808
- var escComma = "\0COMMA" + Math.random() + "\0";
6809
- var escPeriod = "\0PERIOD" + Math.random() + "\0";
6810
- function numeric(str) {
6811
- return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
6812
- }
6813
- function escapeBraces(str) {
6814
- return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
6815
- }
6816
- function unescapeBraces(str) {
6817
- return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
6818
- }
6819
- function parseCommaParts(str) {
6820
- if (!str)
6821
- return [""];
6822
- var parts = [];
6823
- var m = balanced("{", "}", str);
6824
- if (!m)
6825
- return str.split(",");
6826
- var pre = m.pre;
6827
- var body = m.body;
6828
- var post = m.post;
6829
- var p = pre.split(",");
6830
- p[p.length - 1] += "{" + body + "}";
6831
- var postParts = parseCommaParts(post);
6832
- if (post.length) {
6833
- p[p.length - 1] += postParts.shift();
6834
- p.push.apply(p, postParts);
6835
- }
6836
- parts.push.apply(parts, p);
6837
- return parts;
6838
- }
6839
- function expandTop(str) {
6840
- if (!str)
6841
- return [];
6842
- if (str.substr(0, 2) === "{}") {
6843
- str = "\\{\\}" + str.substr(2);
6844
- }
6845
- return expand2(escapeBraces(str), true).map(unescapeBraces);
6846
- }
6847
- function embrace(str) {
6848
- return "{" + str + "}";
6849
- }
6850
- function isPadded(el) {
6851
- return /^-?0\d/.test(el);
6852
- }
6853
- function lte(i, y) {
6854
- return i <= y;
6855
- }
6856
- function gte(i, y) {
6857
- return i >= y;
6858
- }
6859
- function expand2(str, isTop) {
6860
- var expansions = [];
6861
- var m = balanced("{", "}", str);
6862
- if (!m) return [str];
6863
- var pre = m.pre;
6864
- var post = m.post.length ? expand2(m.post, false) : [""];
6865
- if (/\$$/.test(m.pre)) {
6866
- for (var k = 0; k < post.length; k++) {
6867
- var expansion = pre + "{" + m.body + "}" + post[k];
6868
- expansions.push(expansion);
6869
- }
6870
- } else {
6871
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
6872
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
6873
- var isSequence = isNumericSequence || isAlphaSequence;
6874
- var isOptions = m.body.indexOf(",") >= 0;
6875
- if (!isSequence && !isOptions) {
6876
- if (m.post.match(/,.*\}/)) {
6877
- str = m.pre + "{" + m.body + escClose + m.post;
6878
- return expand2(str);
6879
- }
6880
- return [str];
6881
- }
6882
- var n;
6883
- if (isSequence) {
6884
- n = m.body.split(/\.\./);
6885
- } else {
6886
- n = parseCommaParts(m.body);
6887
- if (n.length === 1) {
6888
- n = expand2(n[0], false).map(embrace);
6889
- if (n.length === 1) {
6890
- return post.map(function(p) {
6891
- return m.pre + n[0] + p;
6892
- });
6893
- }
6894
- }
6895
- }
6896
- var N;
6897
- if (isSequence) {
6898
- var x = numeric(n[0]);
6899
- var y = numeric(n[1]);
6900
- var width = Math.max(n[0].length, n[1].length);
6901
- var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
6902
- var test = lte;
6903
- var reverse = y < x;
6904
- if (reverse) {
6905
- incr *= -1;
6906
- test = gte;
6907
- }
6908
- var pad = n.some(isPadded);
6909
- N = [];
6910
- for (var i = x; test(i, y); i += incr) {
6911
- var c;
6912
- if (isAlphaSequence) {
6913
- c = String.fromCharCode(i);
6914
- if (c === "\\")
6915
- c = "";
6916
- } else {
6917
- c = String(i);
6918
- if (pad) {
6919
- var need = width - c.length;
6920
- if (need > 0) {
6921
- var z = new Array(need + 1).join("0");
6922
- if (i < 0)
6923
- c = "-" + z + c.slice(1);
6924
- else
6925
- c = z + c;
6926
- }
6927
- }
6928
- }
6929
- N.push(c);
6930
- }
6931
- } else {
6932
- N = [];
6933
- for (var j = 0; j < n.length; j++) {
6934
- N.push.apply(N, expand2(n[j], false));
6935
- }
6936
- }
6937
- for (var j = 0; j < N.length; j++) {
6938
- for (var k = 0; k < post.length; k++) {
6939
- var expansion = pre + N[j] + post[k];
6940
- if (!isTop || isSequence || expansion)
6941
- expansions.push(expansion);
6942
- }
6943
- }
6944
- }
6945
- return expansions;
6946
- }
6947
- }
6948
- });
6949
-
6950
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/identity.js
6795
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/identity.js
6951
6796
  var require_identity = __commonJS({
6952
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/identity.js"(exports) {
6797
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/identity.js"(exports) {
6953
6798
  "use strict";
6954
6799
  var ALIAS = Symbol.for("yaml.alias");
6955
6800
  var DOC = Symbol.for("yaml.document");
@@ -7004,9 +6849,9 @@
7004
6849
  }
7005
6850
  });
7006
6851
 
7007
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/visit.js
6852
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/visit.js
7008
6853
  var require_visit = __commonJS({
7009
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/visit.js"(exports) {
6854
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/visit.js"(exports) {
7010
6855
  "use strict";
7011
6856
  var identity = require_identity();
7012
6857
  var BREAK = Symbol("break visit");
@@ -7162,9 +7007,9 @@
7162
7007
  }
7163
7008
  });
7164
7009
 
7165
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/directives.js
7010
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/doc/directives.js
7166
7011
  var require_directives = __commonJS({
7167
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/directives.js"(exports) {
7012
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/doc/directives.js"(exports) {
7168
7013
  "use strict";
7169
7014
  var identity = require_identity();
7170
7015
  var visit = require_visit();
@@ -7333,9 +7178,9 @@
7333
7178
  }
7334
7179
  });
7335
7180
 
7336
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/anchors.js
7181
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/doc/anchors.js
7337
7182
  var require_anchors = __commonJS({
7338
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/anchors.js"(exports) {
7183
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/doc/anchors.js"(exports) {
7339
7184
  "use strict";
7340
7185
  var identity = require_identity();
7341
7186
  var visit = require_visit();
@@ -7371,8 +7216,7 @@
7371
7216
  return {
7372
7217
  onAnchor: (source) => {
7373
7218
  aliasObjects.push(source);
7374
- if (!prevAnchors)
7375
- prevAnchors = anchorNames(doc);
7219
+ prevAnchors ?? (prevAnchors = anchorNames(doc));
7376
7220
  const anchor = findNewAnchor(prefix, prevAnchors);
7377
7221
  prevAnchors.add(anchor);
7378
7222
  return anchor;
@@ -7404,9 +7248,9 @@
7404
7248
  }
7405
7249
  });
7406
7250
 
7407
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/applyReviver.js
7251
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/doc/applyReviver.js
7408
7252
  var require_applyReviver = __commonJS({
7409
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
7253
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
7410
7254
  "use strict";
7411
7255
  function applyReviver(reviver, obj, key, val) {
7412
7256
  if (val && typeof val === "object") {
@@ -7454,9 +7298,9 @@
7454
7298
  }
7455
7299
  });
7456
7300
 
7457
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/toJS.js
7301
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/toJS.js
7458
7302
  var require_toJS = __commonJS({
7459
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/toJS.js"(exports) {
7303
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/toJS.js"(exports) {
7460
7304
  "use strict";
7461
7305
  var identity = require_identity();
7462
7306
  function toJS(value, arg, ctx) {
@@ -7484,9 +7328,9 @@
7484
7328
  }
7485
7329
  });
7486
7330
 
7487
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Node.js
7331
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/Node.js
7488
7332
  var require_Node = __commonJS({
7489
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Node.js"(exports) {
7333
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/Node.js"(exports) {
7490
7334
  "use strict";
7491
7335
  var applyReviver = require_applyReviver();
7492
7336
  var identity = require_identity();
@@ -7525,9 +7369,9 @@
7525
7369
  }
7526
7370
  });
7527
7371
 
7528
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Alias.js
7372
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/Alias.js
7529
7373
  var require_Alias = __commonJS({
7530
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Alias.js"(exports) {
7374
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/Alias.js"(exports) {
7531
7375
  "use strict";
7532
7376
  var anchors = require_anchors();
7533
7377
  var visit = require_visit();
@@ -7548,23 +7392,35 @@
7548
7392
  * Resolve the value of this alias within `doc`, finding the last
7549
7393
  * instance of the `source` anchor before this node.
7550
7394
  */
7551
- resolve(doc) {
7395
+ resolve(doc, ctx) {
7396
+ let nodes;
7397
+ if (ctx?.aliasResolveCache) {
7398
+ nodes = ctx.aliasResolveCache;
7399
+ } else {
7400
+ nodes = [];
7401
+ visit.visit(doc, {
7402
+ Node: (_key, node) => {
7403
+ if (identity.isAlias(node) || identity.hasAnchor(node))
7404
+ nodes.push(node);
7405
+ }
7406
+ });
7407
+ if (ctx)
7408
+ ctx.aliasResolveCache = nodes;
7409
+ }
7552
7410
  let found = void 0;
7553
- visit.visit(doc, {
7554
- Node: (_key, node) => {
7555
- if (node === this)
7556
- return visit.visit.BREAK;
7557
- if (node.anchor === this.source)
7558
- found = node;
7559
- }
7560
- });
7411
+ for (const node of nodes) {
7412
+ if (node === this)
7413
+ break;
7414
+ if (node.anchor === this.source)
7415
+ found = node;
7416
+ }
7561
7417
  return found;
7562
7418
  }
7563
7419
  toJSON(_arg, ctx) {
7564
7420
  if (!ctx)
7565
7421
  return { source: this.source };
7566
7422
  const { anchors: anchors2, doc, maxAliasCount } = ctx;
7567
- const source = this.resolve(doc);
7423
+ const source = this.resolve(doc, ctx);
7568
7424
  if (!source) {
7569
7425
  const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
7570
7426
  throw new ReferenceError(msg);
@@ -7627,9 +7483,9 @@
7627
7483
  }
7628
7484
  });
7629
7485
 
7630
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Scalar.js
7486
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/Scalar.js
7631
7487
  var require_Scalar = __commonJS({
7632
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
7488
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
7633
7489
  "use strict";
7634
7490
  var identity = require_identity();
7635
7491
  var Node = require_Node();
@@ -7657,9 +7513,9 @@
7657
7513
  }
7658
7514
  });
7659
7515
 
7660
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/createNode.js
7516
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/doc/createNode.js
7661
7517
  var require_createNode = __commonJS({
7662
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/createNode.js"(exports) {
7518
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/doc/createNode.js"(exports) {
7663
7519
  "use strict";
7664
7520
  var Alias = require_Alias();
7665
7521
  var identity = require_identity();
@@ -7693,8 +7549,7 @@
7693
7549
  if (aliasDuplicateObjects && value && typeof value === "object") {
7694
7550
  ref = sourceObjects.get(value);
7695
7551
  if (ref) {
7696
- if (!ref.anchor)
7697
- ref.anchor = onAnchor(value);
7552
+ ref.anchor ?? (ref.anchor = onAnchor(value));
7698
7553
  return new Alias.Alias(ref.anchor);
7699
7554
  } else {
7700
7555
  ref = { anchor: null, node: null };
@@ -7733,9 +7588,9 @@
7733
7588
  }
7734
7589
  });
7735
7590
 
7736
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Collection.js
7591
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/Collection.js
7737
7592
  var require_Collection = __commonJS({
7738
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Collection.js"(exports) {
7593
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/Collection.js"(exports) {
7739
7594
  "use strict";
7740
7595
  var createNode = require_createNode();
7741
7596
  var identity = require_identity();
@@ -7876,9 +7731,9 @@
7876
7731
  }
7877
7732
  });
7878
7733
 
7879
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyComment.js
7734
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyComment.js
7880
7735
  var require_stringifyComment = __commonJS({
7881
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
7736
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
7882
7737
  "use strict";
7883
7738
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
7884
7739
  function indentComment(comment, indent) {
@@ -7893,9 +7748,9 @@
7893
7748
  }
7894
7749
  });
7895
7750
 
7896
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/foldFlowLines.js
7751
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/foldFlowLines.js
7897
7752
  var require_foldFlowLines = __commonJS({
7898
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
7753
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
7899
7754
  "use strict";
7900
7755
  var FOLD_FLOW = "flow";
7901
7756
  var FOLD_BLOCK = "block";
@@ -8029,9 +7884,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
8029
7884
  }
8030
7885
  });
8031
7886
 
8032
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyString.js
7887
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyString.js
8033
7888
  var require_stringifyString = __commonJS({
8034
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
7889
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
8035
7890
  "use strict";
8036
7891
  var Scalar = require_Scalar();
8037
7892
  var foldFlowLines = require_foldFlowLines();
@@ -8172,7 +8027,7 @@ ${indent}`) + "'";
8172
8027
  }
8173
8028
  function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
8174
8029
  const { blockQuote, commentString, lineWidth } = ctx.options;
8175
- if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) {
8030
+ if (!blockQuote || /\n[\t ]+$/.test(value)) {
8176
8031
  return quotedString(value, ctx);
8177
8032
  }
8178
8033
  const indent = ctx.indent || (ctx.forceBlockIndent || containsDocumentMarker(value) ? " " : "");
@@ -8251,7 +8106,7 @@ ${indent}${start}${value}${end}`;
8251
8106
  if (implicitKey && value.includes("\n") || inFlow && /[[\]{},]/.test(value)) {
8252
8107
  return quotedString(value, ctx);
8253
8108
  }
8254
- if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
8109
+ if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
8255
8110
  return implicitKey || inFlow || !value.includes("\n") ? quotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep);
8256
8111
  }
8257
8112
  if (!implicitKey && !inFlow && type !== Scalar.Scalar.PLAIN && value.includes("\n")) {
@@ -8312,9 +8167,9 @@ ${indent}`);
8312
8167
  }
8313
8168
  });
8314
8169
 
8315
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringify.js
8170
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringify.js
8316
8171
  var require_stringify = __commonJS({
8317
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringify.js"(exports) {
8172
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringify.js"(exports) {
8318
8173
  "use strict";
8319
8174
  var anchors = require_anchors();
8320
8175
  var identity = require_identity();
@@ -8383,7 +8238,7 @@ ${indent}`);
8383
8238
  tagObj = tags.find((t) => t.nodeClass && obj instanceof t.nodeClass);
8384
8239
  }
8385
8240
  if (!tagObj) {
8386
- const name = obj?.constructor?.name ?? typeof obj;
8241
+ const name = obj?.constructor?.name ?? (obj === null ? "null" : typeof obj);
8387
8242
  throw new Error(`Tag not resolved for ${name} value`);
8388
8243
  }
8389
8244
  return tagObj;
@@ -8397,7 +8252,7 @@ ${indent}`);
8397
8252
  anchors$1.add(anchor);
8398
8253
  props.push(`&${anchor}`);
8399
8254
  }
8400
- const tag = node.tag ? node.tag : tagObj.default ? null : tagObj.tag;
8255
+ const tag = node.tag ?? (tagObj.default ? null : tagObj.tag);
8401
8256
  if (tag)
8402
8257
  props.push(doc.directives.tagString(tag));
8403
8258
  return props.join(" ");
@@ -8420,8 +8275,7 @@ ${indent}`);
8420
8275
  }
8421
8276
  let tagObj = void 0;
8422
8277
  const node = identity.isNode(item) ? item : ctx.doc.createNode(item, { onTagObj: (o) => tagObj = o });
8423
- if (!tagObj)
8424
- tagObj = getTagObject(ctx.doc.schema.tags, node);
8278
+ tagObj ?? (tagObj = getTagObject(ctx.doc.schema.tags, node));
8425
8279
  const props = stringifyProps(node, tagObj, ctx);
8426
8280
  if (props.length > 0)
8427
8281
  ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
@@ -8436,9 +8290,9 @@ ${ctx.indent}${str}`;
8436
8290
  }
8437
8291
  });
8438
8292
 
8439
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyPair.js
8293
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyPair.js
8440
8294
  var require_stringifyPair = __commonJS({
8441
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
8295
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
8442
8296
  "use strict";
8443
8297
  var identity = require_identity();
8444
8298
  var Scalar = require_Scalar();
@@ -8569,11 +8423,11 @@ ${ctx.indent}`;
8569
8423
  }
8570
8424
  });
8571
8425
 
8572
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/log.js
8426
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/log.js
8573
8427
  var require_log = __commonJS({
8574
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/log.js"(exports) {
8428
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/log.js"(exports) {
8575
8429
  "use strict";
8576
- var node_process = __require("node:process");
8430
+ var node_process = __require("process");
8577
8431
  function debug(logLevel, ...messages) {
8578
8432
  if (logLevel === "debug")
8579
8433
  console.log(...messages);
@@ -8591,9 +8445,9 @@ ${ctx.indent}`;
8591
8445
  }
8592
8446
  });
8593
8447
 
8594
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
8448
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
8595
8449
  var require_merge = __commonJS({
8596
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
8450
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
8597
8451
  "use strict";
8598
8452
  var identity = require_identity();
8599
8453
  var Scalar = require_Scalar();
@@ -8648,9 +8502,9 @@ ${ctx.indent}`;
8648
8502
  }
8649
8503
  });
8650
8504
 
8651
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
8505
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
8652
8506
  var require_addPairToJSMap = __commonJS({
8653
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
8507
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
8654
8508
  "use strict";
8655
8509
  var log = require_log();
8656
8510
  var merge = require_merge();
@@ -8712,9 +8566,9 @@ ${ctx.indent}`;
8712
8566
  }
8713
8567
  });
8714
8568
 
8715
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Pair.js
8569
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/Pair.js
8716
8570
  var require_Pair = __commonJS({
8717
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Pair.js"(exports) {
8571
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/Pair.js"(exports) {
8718
8572
  "use strict";
8719
8573
  var createNode = require_createNode();
8720
8574
  var stringifyPair = require_stringifyPair();
@@ -8752,9 +8606,9 @@ ${ctx.indent}`;
8752
8606
  }
8753
8607
  });
8754
8608
 
8755
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyCollection.js
8609
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyCollection.js
8756
8610
  var require_stringifyCollection = __commonJS({
8757
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
8611
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
8758
8612
  "use strict";
8759
8613
  var identity = require_identity();
8760
8614
  var stringify = require_stringify();
@@ -8896,9 +8750,9 @@ ${indent}${end}`;
8896
8750
  }
8897
8751
  });
8898
8752
 
8899
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/YAMLMap.js
8753
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/YAMLMap.js
8900
8754
  var require_YAMLMap = __commonJS({
8901
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
8755
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
8902
8756
  "use strict";
8903
8757
  var stringifyCollection = require_stringifyCollection();
8904
8758
  var addPairToJSMap = require_addPairToJSMap();
@@ -9040,9 +8894,9 @@ ${indent}${end}`;
9040
8894
  }
9041
8895
  });
9042
8896
 
9043
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/map.js
8897
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/common/map.js
9044
8898
  var require_map = __commonJS({
9045
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/map.js"(exports) {
8899
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/common/map.js"(exports) {
9046
8900
  "use strict";
9047
8901
  var identity = require_identity();
9048
8902
  var YAMLMap = require_YAMLMap();
@@ -9062,9 +8916,9 @@ ${indent}${end}`;
9062
8916
  }
9063
8917
  });
9064
8918
 
9065
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/YAMLSeq.js
8919
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/YAMLSeq.js
9066
8920
  var require_YAMLSeq = __commonJS({
9067
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
8921
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
9068
8922
  "use strict";
9069
8923
  var createNode = require_createNode();
9070
8924
  var stringifyCollection = require_stringifyCollection();
@@ -9178,9 +9032,9 @@ ${indent}${end}`;
9178
9032
  }
9179
9033
  });
9180
9034
 
9181
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/seq.js
9035
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/common/seq.js
9182
9036
  var require_seq = __commonJS({
9183
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/seq.js"(exports) {
9037
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/common/seq.js"(exports) {
9184
9038
  "use strict";
9185
9039
  var identity = require_identity();
9186
9040
  var YAMLSeq = require_YAMLSeq();
@@ -9200,9 +9054,9 @@ ${indent}${end}`;
9200
9054
  }
9201
9055
  });
9202
9056
 
9203
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/string.js
9057
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/common/string.js
9204
9058
  var require_string = __commonJS({
9205
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/string.js"(exports) {
9059
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/common/string.js"(exports) {
9206
9060
  "use strict";
9207
9061
  var stringifyString = require_stringifyString();
9208
9062
  var string = {
@@ -9219,9 +9073,9 @@ ${indent}${end}`;
9219
9073
  }
9220
9074
  });
9221
9075
 
9222
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/null.js
9076
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/common/null.js
9223
9077
  var require_null = __commonJS({
9224
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/null.js"(exports) {
9078
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/common/null.js"(exports) {
9225
9079
  "use strict";
9226
9080
  var Scalar = require_Scalar();
9227
9081
  var nullTag = {
@@ -9237,9 +9091,9 @@ ${indent}${end}`;
9237
9091
  }
9238
9092
  });
9239
9093
 
9240
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/bool.js
9094
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/core/bool.js
9241
9095
  var require_bool = __commonJS({
9242
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/bool.js"(exports) {
9096
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/core/bool.js"(exports) {
9243
9097
  "use strict";
9244
9098
  var Scalar = require_Scalar();
9245
9099
  var boolTag = {
@@ -9261,9 +9115,9 @@ ${indent}${end}`;
9261
9115
  }
9262
9116
  });
9263
9117
 
9264
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyNumber.js
9118
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyNumber.js
9265
9119
  var require_stringifyNumber = __commonJS({
9266
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
9120
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
9267
9121
  "use strict";
9268
9122
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
9269
9123
  if (typeof value === "bigint")
@@ -9288,9 +9142,9 @@ ${indent}${end}`;
9288
9142
  }
9289
9143
  });
9290
9144
 
9291
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/float.js
9145
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/core/float.js
9292
9146
  var require_float = __commonJS({
9293
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/float.js"(exports) {
9147
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/core/float.js"(exports) {
9294
9148
  "use strict";
9295
9149
  var Scalar = require_Scalar();
9296
9150
  var stringifyNumber = require_stringifyNumber();
@@ -9334,9 +9188,9 @@ ${indent}${end}`;
9334
9188
  }
9335
9189
  });
9336
9190
 
9337
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/int.js
9191
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/core/int.js
9338
9192
  var require_int = __commonJS({
9339
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/int.js"(exports) {
9193
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/core/int.js"(exports) {
9340
9194
  "use strict";
9341
9195
  var stringifyNumber = require_stringifyNumber();
9342
9196
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -9379,9 +9233,9 @@ ${indent}${end}`;
9379
9233
  }
9380
9234
  });
9381
9235
 
9382
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/schema.js
9236
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/core/schema.js
9383
9237
  var require_schema = __commonJS({
9384
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/schema.js"(exports) {
9238
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/core/schema.js"(exports) {
9385
9239
  "use strict";
9386
9240
  var map = require_map();
9387
9241
  var _null = require_null();
@@ -9407,9 +9261,9 @@ ${indent}${end}`;
9407
9261
  }
9408
9262
  });
9409
9263
 
9410
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/json/schema.js
9264
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/json/schema.js
9411
9265
  var require_schema2 = __commonJS({
9412
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/json/schema.js"(exports) {
9266
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/json/schema.js"(exports) {
9413
9267
  "use strict";
9414
9268
  var Scalar = require_Scalar();
9415
9269
  var map = require_map();
@@ -9474,11 +9328,11 @@ ${indent}${end}`;
9474
9328
  }
9475
9329
  });
9476
9330
 
9477
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
9331
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
9478
9332
  var require_binary = __commonJS({
9479
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
9333
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
9480
9334
  "use strict";
9481
- var node_buffer = __require("node:buffer");
9335
+ var node_buffer = __require("buffer");
9482
9336
  var Scalar = require_Scalar();
9483
9337
  var stringifyString = require_stringifyString();
9484
9338
  var binary = {
@@ -9523,8 +9377,7 @@ ${indent}${end}`;
9523
9377
  } else {
9524
9378
  throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
9525
9379
  }
9526
- if (!type)
9527
- type = Scalar.Scalar.BLOCK_LITERAL;
9380
+ type ?? (type = Scalar.Scalar.BLOCK_LITERAL);
9528
9381
  if (type !== Scalar.Scalar.QUOTE_DOUBLE) {
9529
9382
  const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth);
9530
9383
  const n = Math.ceil(str.length / lineWidth);
@@ -9541,9 +9394,9 @@ ${indent}${end}`;
9541
9394
  }
9542
9395
  });
9543
9396
 
9544
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
9397
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
9545
9398
  var require_pairs = __commonJS({
9546
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
9399
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
9547
9400
  "use strict";
9548
9401
  var identity = require_identity();
9549
9402
  var Pair = require_Pair();
@@ -9619,9 +9472,9 @@ ${cn.comment}` : item.comment;
9619
9472
  }
9620
9473
  });
9621
9474
 
9622
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
9475
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
9623
9476
  var require_omap = __commonJS({
9624
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
9477
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
9625
9478
  "use strict";
9626
9479
  var identity = require_identity();
9627
9480
  var toJS = require_toJS();
@@ -9697,9 +9550,9 @@ ${cn.comment}` : item.comment;
9697
9550
  }
9698
9551
  });
9699
9552
 
9700
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
9553
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
9701
9554
  var require_bool2 = __commonJS({
9702
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
9555
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
9703
9556
  "use strict";
9704
9557
  var Scalar = require_Scalar();
9705
9558
  function boolStringify({ value, source }, ctx) {
@@ -9729,9 +9582,9 @@ ${cn.comment}` : item.comment;
9729
9582
  }
9730
9583
  });
9731
9584
 
9732
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
9585
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
9733
9586
  var require_float2 = __commonJS({
9734
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
9587
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
9735
9588
  "use strict";
9736
9589
  var Scalar = require_Scalar();
9737
9590
  var stringifyNumber = require_stringifyNumber();
@@ -9778,9 +9631,9 @@ ${cn.comment}` : item.comment;
9778
9631
  }
9779
9632
  });
9780
9633
 
9781
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
9634
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
9782
9635
  var require_int2 = __commonJS({
9783
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
9636
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
9784
9637
  "use strict";
9785
9638
  var stringifyNumber = require_stringifyNumber();
9786
9639
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -9857,9 +9710,9 @@ ${cn.comment}` : item.comment;
9857
9710
  }
9858
9711
  });
9859
9712
 
9860
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
9713
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
9861
9714
  var require_set = __commonJS({
9862
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
9715
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
9863
9716
  "use strict";
9864
9717
  var identity = require_identity();
9865
9718
  var Pair = require_Pair();
@@ -9946,9 +9799,9 @@ ${cn.comment}` : item.comment;
9946
9799
  }
9947
9800
  });
9948
9801
 
9949
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
9802
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
9950
9803
  var require_timestamp = __commonJS({
9951
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
9804
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
9952
9805
  "use strict";
9953
9806
  var stringifyNumber = require_stringifyNumber();
9954
9807
  function parseSexagesimal(str, asBigInt) {
@@ -10034,9 +9887,9 @@ ${cn.comment}` : item.comment;
10034
9887
  }
10035
9888
  });
10036
9889
 
10037
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
9890
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
10038
9891
  var require_schema3 = __commonJS({
10039
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
9892
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
10040
9893
  "use strict";
10041
9894
  var map = require_map();
10042
9895
  var _null = require_null();
@@ -10078,9 +9931,9 @@ ${cn.comment}` : item.comment;
10078
9931
  }
10079
9932
  });
10080
9933
 
10081
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/tags.js
9934
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/tags.js
10082
9935
  var require_tags = __commonJS({
10083
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/tags.js"(exports) {
9936
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/tags.js"(exports) {
10084
9937
  "use strict";
10085
9938
  var map = require_map();
10086
9939
  var _null = require_null();
@@ -10172,9 +10025,9 @@ ${cn.comment}` : item.comment;
10172
10025
  }
10173
10026
  });
10174
10027
 
10175
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/Schema.js
10028
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/Schema.js
10176
10029
  var require_Schema = __commonJS({
10177
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/Schema.js"(exports) {
10030
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/schema/Schema.js"(exports) {
10178
10031
  "use strict";
10179
10032
  var identity = require_identity();
10180
10033
  var map = require_map();
@@ -10204,9 +10057,9 @@ ${cn.comment}` : item.comment;
10204
10057
  }
10205
10058
  });
10206
10059
 
10207
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyDocument.js
10060
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyDocument.js
10208
10061
  var require_stringifyDocument = __commonJS({
10209
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
10062
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
10210
10063
  "use strict";
10211
10064
  var identity = require_identity();
10212
10065
  var stringify = require_stringify();
@@ -10284,9 +10137,9 @@ ${cn.comment}` : item.comment;
10284
10137
  }
10285
10138
  });
10286
10139
 
10287
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/Document.js
10140
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/doc/Document.js
10288
10141
  var require_Document = __commonJS({
10289
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/Document.js"(exports) {
10142
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/doc/Document.js"(exports) {
10290
10143
  "use strict";
10291
10144
  var Alias = require_Alias();
10292
10145
  var Collection = require_Collection();
@@ -10593,9 +10446,9 @@ ${cn.comment}` : item.comment;
10593
10446
  }
10594
10447
  });
10595
10448
 
10596
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/errors.js
10449
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/errors.js
10597
10450
  var require_errors2 = __commonJS({
10598
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/errors.js"(exports) {
10451
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/errors.js"(exports) {
10599
10452
  "use strict";
10600
10453
  var YAMLError = class extends Error {
10601
10454
  constructor(name, pos, code, message) {
@@ -10658,9 +10511,9 @@ ${pointer}
10658
10511
  }
10659
10512
  });
10660
10513
 
10661
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-props.js
10514
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-props.js
10662
10515
  var require_resolve_props = __commonJS({
10663
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
10516
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
10664
10517
  "use strict";
10665
10518
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
10666
10519
  let spaceBefore = false;
@@ -10728,8 +10581,7 @@ ${pointer}
10728
10581
  if (token.source.endsWith(":"))
10729
10582
  onError(token.offset + token.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", true);
10730
10583
  anchor = token;
10731
- if (start === null)
10732
- start = token.offset;
10584
+ start ?? (start = token.offset);
10733
10585
  atNewline = false;
10734
10586
  hasSpace = false;
10735
10587
  reqSpace = true;
@@ -10738,8 +10590,7 @@ ${pointer}
10738
10590
  if (tag)
10739
10591
  onError(token, "MULTIPLE_TAGS", "A node can have at most one tag");
10740
10592
  tag = token;
10741
- if (start === null)
10742
- start = token.offset;
10593
+ start ?? (start = token.offset);
10743
10594
  atNewline = false;
10744
10595
  hasSpace = false;
10745
10596
  reqSpace = true;
@@ -10794,9 +10645,9 @@ ${pointer}
10794
10645
  }
10795
10646
  });
10796
10647
 
10797
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-contains-newline.js
10648
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/util-contains-newline.js
10798
10649
  var require_util_contains_newline = __commonJS({
10799
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
10650
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
10800
10651
  "use strict";
10801
10652
  function containsNewline(key) {
10802
10653
  if (!key)
@@ -10836,9 +10687,9 @@ ${pointer}
10836
10687
  }
10837
10688
  });
10838
10689
 
10839
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
10690
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
10840
10691
  var require_util_flow_indent_check = __commonJS({
10841
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
10692
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
10842
10693
  "use strict";
10843
10694
  var utilContainsNewline = require_util_contains_newline();
10844
10695
  function flowIndentCheck(indent, fc, onError) {
@@ -10854,9 +10705,9 @@ ${pointer}
10854
10705
  }
10855
10706
  });
10856
10707
 
10857
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-map-includes.js
10708
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/util-map-includes.js
10858
10709
  var require_util_map_includes = __commonJS({
10859
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
10710
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
10860
10711
  "use strict";
10861
10712
  var identity = require_identity();
10862
10713
  function mapIncludes(ctx, items, search) {
@@ -10870,9 +10721,9 @@ ${pointer}
10870
10721
  }
10871
10722
  });
10872
10723
 
10873
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-map.js
10724
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-block-map.js
10874
10725
  var require_resolve_block_map = __commonJS({
10875
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
10726
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
10876
10727
  "use strict";
10877
10728
  var Pair = require_Pair();
10878
10729
  var YAMLMap = require_YAMLMap();
@@ -10978,9 +10829,9 @@ ${pointer}
10978
10829
  }
10979
10830
  });
10980
10831
 
10981
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-seq.js
10832
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-block-seq.js
10982
10833
  var require_resolve_block_seq = __commonJS({
10983
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
10834
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
10984
10835
  "use strict";
10985
10836
  var YAMLSeq = require_YAMLSeq();
10986
10837
  var resolveProps = require_resolve_props();
@@ -11029,9 +10880,9 @@ ${pointer}
11029
10880
  }
11030
10881
  });
11031
10882
 
11032
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-end.js
10883
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-end.js
11033
10884
  var require_resolve_end = __commonJS({
11034
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
10885
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
11035
10886
  "use strict";
11036
10887
  function resolveEnd(end, offset, reqSpace, onError) {
11037
10888
  let comment = "";
@@ -11072,9 +10923,9 @@ ${pointer}
11072
10923
  }
11073
10924
  });
11074
10925
 
11075
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
10926
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
11076
10927
  var require_resolve_flow_collection = __commonJS({
11077
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
10928
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
11078
10929
  "use strict";
11079
10930
  var identity = require_identity();
11080
10931
  var Pair = require_Pair();
@@ -11266,9 +11117,9 @@ ${pointer}
11266
11117
  }
11267
11118
  });
11268
11119
 
11269
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-collection.js
11120
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/compose-collection.js
11270
11121
  var require_compose_collection = __commonJS({
11271
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
11122
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
11272
11123
  "use strict";
11273
11124
  var identity = require_identity();
11274
11125
  var Scalar = require_Scalar();
@@ -11331,9 +11182,9 @@ ${pointer}
11331
11182
  }
11332
11183
  });
11333
11184
 
11334
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
11185
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
11335
11186
  var require_resolve_block_scalar = __commonJS({
11336
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
11187
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
11337
11188
  "use strict";
11338
11189
  var Scalar = require_Scalar();
11339
11190
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -11514,9 +11365,9 @@ ${pointer}
11514
11365
  }
11515
11366
  });
11516
11367
 
11517
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
11368
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
11518
11369
  var require_resolve_flow_scalar = __commonJS({
11519
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
11370
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
11520
11371
  "use strict";
11521
11372
  var Scalar = require_Scalar();
11522
11373
  var resolveEnd = require_resolve_end();
@@ -11733,16 +11584,16 @@ ${pointer}
11733
11584
  }
11734
11585
  });
11735
11586
 
11736
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-scalar.js
11587
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/compose-scalar.js
11737
11588
  var require_compose_scalar = __commonJS({
11738
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
11589
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
11739
11590
  "use strict";
11740
11591
  var identity = require_identity();
11741
11592
  var Scalar = require_Scalar();
11742
11593
  var resolveBlockScalar = require_resolve_block_scalar();
11743
11594
  var resolveFlowScalar = require_resolve_flow_scalar();
11744
11595
  function composeScalar(ctx, token, tagToken, onError) {
11745
- const { value, type, comment, range } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
11596
+ const { value, type, comment, range: range2 } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
11746
11597
  const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
11747
11598
  let tag;
11748
11599
  if (ctx.options.stringKeys && ctx.atKey) {
@@ -11762,7 +11613,7 @@ ${pointer}
11762
11613
  onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
11763
11614
  scalar = new Scalar.Scalar(value);
11764
11615
  }
11765
- scalar.range = range;
11616
+ scalar.range = range2;
11766
11617
  scalar.source = value;
11767
11618
  if (type)
11768
11619
  scalar.type = type;
@@ -11814,14 +11665,13 @@ ${pointer}
11814
11665
  }
11815
11666
  });
11816
11667
 
11817
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
11668
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
11818
11669
  var require_util_empty_scalar_position = __commonJS({
11819
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
11670
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
11820
11671
  "use strict";
11821
11672
  function emptyScalarPosition(offset, before, pos) {
11822
11673
  if (before) {
11823
- if (pos === null)
11824
- pos = before.length;
11674
+ pos ?? (pos = before.length);
11825
11675
  for (let i = pos - 1; i >= 0; --i) {
11826
11676
  let st = before[i];
11827
11677
  switch (st.type) {
@@ -11845,9 +11695,9 @@ ${pointer}
11845
11695
  }
11846
11696
  });
11847
11697
 
11848
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-node.js
11698
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/compose-node.js
11849
11699
  var require_compose_node = __commonJS({
11850
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-node.js"(exports) {
11700
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/compose-node.js"(exports) {
11851
11701
  "use strict";
11852
11702
  var Alias = require_Alias();
11853
11703
  var identity = require_identity();
@@ -11946,9 +11796,9 @@ ${pointer}
11946
11796
  }
11947
11797
  });
11948
11798
 
11949
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-doc.js
11799
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/compose-doc.js
11950
11800
  var require_compose_doc = __commonJS({
11951
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
11801
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
11952
11802
  "use strict";
11953
11803
  var Document = require_Document();
11954
11804
  var composeNode = require_compose_node();
@@ -11989,11 +11839,11 @@ ${pointer}
11989
11839
  }
11990
11840
  });
11991
11841
 
11992
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/composer.js
11842
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/composer.js
11993
11843
  var require_composer = __commonJS({
11994
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/composer.js"(exports) {
11844
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/compose/composer.js"(exports) {
11995
11845
  "use strict";
11996
- var node_process = __require("node:process");
11846
+ var node_process = __require("process");
11997
11847
  var directives = require_directives();
11998
11848
  var Document = require_Document();
11999
11849
  var errors = require_errors2();
@@ -12195,9 +12045,9 @@ ${end.comment}` : end.comment;
12195
12045
  }
12196
12046
  });
12197
12047
 
12198
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-scalar.js
12048
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/cst-scalar.js
12199
12049
  var require_cst_scalar = __commonJS({
12200
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
12050
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
12201
12051
  "use strict";
12202
12052
  var resolveBlockScalar = require_resolve_block_scalar();
12203
12053
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -12380,9 +12230,9 @@ ${end.comment}` : end.comment;
12380
12230
  }
12381
12231
  });
12382
12232
 
12383
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-stringify.js
12233
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/cst-stringify.js
12384
12234
  var require_cst_stringify = __commonJS({
12385
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
12235
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
12386
12236
  "use strict";
12387
12237
  var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
12388
12238
  function stringifyToken(token) {
@@ -12441,9 +12291,9 @@ ${end.comment}` : end.comment;
12441
12291
  }
12442
12292
  });
12443
12293
 
12444
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-visit.js
12294
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/cst-visit.js
12445
12295
  var require_cst_visit = __commonJS({
12446
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
12296
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
12447
12297
  "use strict";
12448
12298
  var BREAK = Symbol("break visit");
12449
12299
  var SKIP = Symbol("skip children");
@@ -12503,9 +12353,9 @@ ${end.comment}` : end.comment;
12503
12353
  }
12504
12354
  });
12505
12355
 
12506
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst.js
12356
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/cst.js
12507
12357
  var require_cst = __commonJS({
12508
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst.js"(exports) {
12358
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/cst.js"(exports) {
12509
12359
  "use strict";
12510
12360
  var cstScalar = require_cst_scalar();
12511
12361
  var cstStringify = require_cst_stringify();
@@ -12605,9 +12455,9 @@ ${end.comment}` : end.comment;
12605
12455
  }
12606
12456
  });
12607
12457
 
12608
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/lexer.js
12458
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/lexer.js
12609
12459
  var require_lexer = __commonJS({
12610
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/lexer.js"(exports) {
12460
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/lexer.js"(exports) {
12611
12461
  "use strict";
12612
12462
  var cst = require_cst();
12613
12463
  function isEmpty(ch) {
@@ -13184,9 +13034,9 @@ ${end.comment}` : end.comment;
13184
13034
  }
13185
13035
  });
13186
13036
 
13187
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/line-counter.js
13037
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/line-counter.js
13188
13038
  var require_line_counter = __commonJS({
13189
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/line-counter.js"(exports) {
13039
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/line-counter.js"(exports) {
13190
13040
  "use strict";
13191
13041
  var LineCounter = class {
13192
13042
  constructor() {
@@ -13215,11 +13065,11 @@ ${end.comment}` : end.comment;
13215
13065
  }
13216
13066
  });
13217
13067
 
13218
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/parser.js
13068
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/parser.js
13219
13069
  var require_parser = __commonJS({
13220
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/parser.js"(exports) {
13070
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/parse/parser.js"(exports) {
13221
13071
  "use strict";
13222
- var node_process = __require("node:process");
13072
+ var node_process = __require("process");
13223
13073
  var cst = require_cst();
13224
13074
  var lexer = require_lexer();
13225
13075
  function includesToken(list, type) {
@@ -14082,9 +13932,9 @@ ${end.comment}` : end.comment;
14082
13932
  }
14083
13933
  });
14084
13934
 
14085
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/public-api.js
13935
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/public-api.js
14086
13936
  var require_public_api = __commonJS({
14087
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/public-api.js"(exports) {
13937
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/public-api.js"(exports) {
14088
13938
  "use strict";
14089
13939
  var composer = require_composer();
14090
13940
  var Document = require_Document();
@@ -14179,9 +14029,9 @@ ${end.comment}` : end.comment;
14179
14029
  }
14180
14030
  });
14181
14031
 
14182
- // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/index.js
14032
+ // ../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/index.js
14183
14033
  var require_dist2 = __commonJS({
14184
- "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/index.js"(exports) {
14034
+ "../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/dist/index.js"(exports) {
14185
14035
  "use strict";
14186
14036
  var composer = require_composer();
14187
14037
  var Document = require_Document();
@@ -14249,10 +14099,218 @@ ${end.comment}` : end.comment;
14249
14099
  var import_ajv = __toESM(require_ajv());
14250
14100
  var import_ajv_formats = __toESM(require_dist());
14251
14101
 
14252
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js
14253
- var import_brace_expansion = __toESM(require_brace_expansion(), 1);
14102
+ // ../../node_modules/.pnpm/@isaacs+balanced-match@4.0.1/node_modules/@isaacs/balanced-match/dist/esm/index.js
14103
+ var balanced = (a, b, str) => {
14104
+ const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
14105
+ const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
14106
+ const r = ma !== null && mb != null && range(ma, mb, str);
14107
+ return r && {
14108
+ start: r[0],
14109
+ end: r[1],
14110
+ pre: str.slice(0, r[0]),
14111
+ body: str.slice(r[0] + ma.length, r[1]),
14112
+ post: str.slice(r[1] + mb.length)
14113
+ };
14114
+ };
14115
+ var maybeMatch = (reg, str) => {
14116
+ const m = str.match(reg);
14117
+ return m ? m[0] : null;
14118
+ };
14119
+ var range = (a, b, str) => {
14120
+ let begs, beg, left, right = void 0, result;
14121
+ let ai = str.indexOf(a);
14122
+ let bi = str.indexOf(b, ai + 1);
14123
+ let i = ai;
14124
+ if (ai >= 0 && bi > 0) {
14125
+ if (a === b) {
14126
+ return [ai, bi];
14127
+ }
14128
+ begs = [];
14129
+ left = str.length;
14130
+ while (i >= 0 && !result) {
14131
+ if (i === ai) {
14132
+ begs.push(i);
14133
+ ai = str.indexOf(a, i + 1);
14134
+ } else if (begs.length === 1) {
14135
+ const r = begs.pop();
14136
+ if (r !== void 0)
14137
+ result = [r, bi];
14138
+ } else {
14139
+ beg = begs.pop();
14140
+ if (beg !== void 0 && beg < left) {
14141
+ left = beg;
14142
+ right = bi;
14143
+ }
14144
+ bi = str.indexOf(b, i + 1);
14145
+ }
14146
+ i = ai < bi && ai >= 0 ? ai : bi;
14147
+ }
14148
+ if (begs.length && right !== void 0) {
14149
+ result = [left, right];
14150
+ }
14151
+ }
14152
+ return result;
14153
+ };
14154
+
14155
+ // ../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.0/node_modules/@isaacs/brace-expansion/dist/esm/index.js
14156
+ var escSlash = "\0SLASH" + Math.random() + "\0";
14157
+ var escOpen = "\0OPEN" + Math.random() + "\0";
14158
+ var escClose = "\0CLOSE" + Math.random() + "\0";
14159
+ var escComma = "\0COMMA" + Math.random() + "\0";
14160
+ var escPeriod = "\0PERIOD" + Math.random() + "\0";
14161
+ var escSlashPattern = new RegExp(escSlash, "g");
14162
+ var escOpenPattern = new RegExp(escOpen, "g");
14163
+ var escClosePattern = new RegExp(escClose, "g");
14164
+ var escCommaPattern = new RegExp(escComma, "g");
14165
+ var escPeriodPattern = new RegExp(escPeriod, "g");
14166
+ var slashPattern = /\\\\/g;
14167
+ var openPattern = /\\{/g;
14168
+ var closePattern = /\\}/g;
14169
+ var commaPattern = /\\,/g;
14170
+ var periodPattern = /\\./g;
14171
+ function numeric(str) {
14172
+ return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
14173
+ }
14174
+ function escapeBraces(str) {
14175
+ return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
14176
+ }
14177
+ function unescapeBraces(str) {
14178
+ return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
14179
+ }
14180
+ function parseCommaParts(str) {
14181
+ if (!str) {
14182
+ return [""];
14183
+ }
14184
+ const parts = [];
14185
+ const m = balanced("{", "}", str);
14186
+ if (!m) {
14187
+ return str.split(",");
14188
+ }
14189
+ const { pre, body, post } = m;
14190
+ const p = pre.split(",");
14191
+ p[p.length - 1] += "{" + body + "}";
14192
+ const postParts = parseCommaParts(post);
14193
+ if (post.length) {
14194
+ ;
14195
+ p[p.length - 1] += postParts.shift();
14196
+ p.push.apply(p, postParts);
14197
+ }
14198
+ parts.push.apply(parts, p);
14199
+ return parts;
14200
+ }
14201
+ function expand(str) {
14202
+ if (!str) {
14203
+ return [];
14204
+ }
14205
+ if (str.slice(0, 2) === "{}") {
14206
+ str = "\\{\\}" + str.slice(2);
14207
+ }
14208
+ return expand_(escapeBraces(str), true).map(unescapeBraces);
14209
+ }
14210
+ function embrace(str) {
14211
+ return "{" + str + "}";
14212
+ }
14213
+ function isPadded(el) {
14214
+ return /^-?0\d/.test(el);
14215
+ }
14216
+ function lte(i, y) {
14217
+ return i <= y;
14218
+ }
14219
+ function gte(i, y) {
14220
+ return i >= y;
14221
+ }
14222
+ function expand_(str, isTop) {
14223
+ const expansions = [];
14224
+ const m = balanced("{", "}", str);
14225
+ if (!m)
14226
+ return [str];
14227
+ const pre = m.pre;
14228
+ const post = m.post.length ? expand_(m.post, false) : [""];
14229
+ if (/\$$/.test(m.pre)) {
14230
+ for (let k = 0; k < post.length; k++) {
14231
+ const expansion = pre + "{" + m.body + "}" + post[k];
14232
+ expansions.push(expansion);
14233
+ }
14234
+ } else {
14235
+ const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
14236
+ const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
14237
+ const isSequence = isNumericSequence || isAlphaSequence;
14238
+ const isOptions = m.body.indexOf(",") >= 0;
14239
+ if (!isSequence && !isOptions) {
14240
+ if (m.post.match(/,(?!,).*\}/)) {
14241
+ str = m.pre + "{" + m.body + escClose + m.post;
14242
+ return expand_(str);
14243
+ }
14244
+ return [str];
14245
+ }
14246
+ let n;
14247
+ if (isSequence) {
14248
+ n = m.body.split(/\.\./);
14249
+ } else {
14250
+ n = parseCommaParts(m.body);
14251
+ if (n.length === 1 && n[0] !== void 0) {
14252
+ n = expand_(n[0], false).map(embrace);
14253
+ if (n.length === 1) {
14254
+ return post.map((p) => m.pre + n[0] + p);
14255
+ }
14256
+ }
14257
+ }
14258
+ let N;
14259
+ if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
14260
+ const x = numeric(n[0]);
14261
+ const y = numeric(n[1]);
14262
+ const width = Math.max(n[0].length, n[1].length);
14263
+ let incr = n.length === 3 && n[2] !== void 0 ? Math.abs(numeric(n[2])) : 1;
14264
+ let test = lte;
14265
+ const reverse = y < x;
14266
+ if (reverse) {
14267
+ incr *= -1;
14268
+ test = gte;
14269
+ }
14270
+ const pad = n.some(isPadded);
14271
+ N = [];
14272
+ for (let i = x; test(i, y); i += incr) {
14273
+ let c;
14274
+ if (isAlphaSequence) {
14275
+ c = String.fromCharCode(i);
14276
+ if (c === "\\") {
14277
+ c = "";
14278
+ }
14279
+ } else {
14280
+ c = String(i);
14281
+ if (pad) {
14282
+ const need = width - c.length;
14283
+ if (need > 0) {
14284
+ const z = new Array(need + 1).join("0");
14285
+ if (i < 0) {
14286
+ c = "-" + z + c.slice(1);
14287
+ } else {
14288
+ c = z + c;
14289
+ }
14290
+ }
14291
+ }
14292
+ }
14293
+ N.push(c);
14294
+ }
14295
+ } else {
14296
+ N = [];
14297
+ for (let j = 0; j < n.length; j++) {
14298
+ N.push.apply(N, expand_(n[j], false));
14299
+ }
14300
+ }
14301
+ for (let j = 0; j < N.length; j++) {
14302
+ for (let k = 0; k < post.length; k++) {
14303
+ const expansion = pre + N[j] + post[k];
14304
+ if (!isTop || isSequence || expansion) {
14305
+ expansions.push(expansion);
14306
+ }
14307
+ }
14308
+ }
14309
+ }
14310
+ return expansions;
14311
+ }
14254
14312
 
14255
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js
14313
+ // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/assert-valid-pattern.js
14256
14314
  var MAX_PATTERN_LENGTH = 1024 * 64;
14257
14315
  var assertValidPattern = (pattern) => {
14258
14316
  if (typeof pattern !== "string") {
@@ -14263,7 +14321,7 @@ ${end.comment}` : end.comment;
14263
14321
  }
14264
14322
  };
14265
14323
 
14266
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.js
14324
+ // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/brace-expressions.js
14267
14325
  var posixClasses = {
14268
14326
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
14269
14327
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -14372,12 +14430,12 @@ ${end.comment}` : end.comment;
14372
14430
  return [comb, uflag, endPos - pos, true];
14373
14431
  };
14374
14432
 
14375
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.js
14433
+ // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/unescape.js
14376
14434
  var unescape2 = (s, { windowsPathsNoEscape = false } = {}) => {
14377
14435
  return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
14378
14436
  };
14379
14437
 
14380
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.js
14438
+ // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/ast.js
14381
14439
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
14382
14440
  var isExtglobType = (c) => types.has(c);
14383
14441
  var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
@@ -14856,12 +14914,12 @@ ${end.comment}` : end.comment;
14856
14914
  }
14857
14915
  };
14858
14916
 
14859
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.js
14917
+ // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/escape.js
14860
14918
  var escape2 = (s, { windowsPathsNoEscape = false } = {}) => {
14861
14919
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
14862
14920
  };
14863
14921
 
14864
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js
14922
+ // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/index.js
14865
14923
  var minimatch = (p, pattern, options = {}) => {
14866
14924
  assertValidPattern(pattern);
14867
14925
  if (!options.nocomment && pattern.charAt(0) === "#") {
@@ -14977,7 +15035,7 @@ ${end.comment}` : end.comment;
14977
15035
  if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
14978
15036
  return [pattern];
14979
15037
  }
14980
- return (0, import_brace_expansion.default)(pattern);
15038
+ return expand(pattern);
14981
15039
  };
14982
15040
  minimatch.braceExpand = braceExpand;
14983
15041
  var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
@@ -15580,14 +15638,14 @@ ${end.comment}` : end.comment;
15580
15638
  minimatch.unescape = unescape2;
15581
15639
 
15582
15640
  // ../build-utils/src/get-files-for-pattern.ts
15583
- var import_promises = __require("node:fs/promises");
15641
+ var import_promises = __require("fs/promises");
15584
15642
  var getFilesForPattern = async (pattern, projectFolder, excludeFiles = []) => {
15585
15643
  const files = [];
15586
15644
  const filesInFolder = await (0, import_promises.readdir)(projectFolder, { recursive: true });
15587
15645
  let regex = null;
15588
15646
  try {
15589
15647
  regex = new RegExp(pattern);
15590
- } catch (e) {
15648
+ } catch {
15591
15649
  }
15592
15650
  const finalExclusions = Array.isArray(excludeFiles) ? excludeFiles : [excludeFiles];
15593
15651
  for (const file of filesInFolder) {
@@ -15600,7 +15658,7 @@ ${end.comment}` : end.comment;
15600
15658
  }
15601
15659
  try {
15602
15660
  return new RegExp(excludeFile).test(file);
15603
- } catch (e) {
15661
+ } catch {
15604
15662
  return false;
15605
15663
  }
15606
15664
  })) {
@@ -15659,7 +15717,7 @@ ${end.comment}` : end.comment;
15659
15717
  }
15660
15718
  const pathParts = filePaths.map((p) => p.split(import_path2.default.sep));
15661
15719
  const firstPath = pathParts[0];
15662
- let commonParts = [];
15720
+ const commonParts = [];
15663
15721
  for (let i = 0; i < firstPath.length; i++) {
15664
15722
  const part = firstPath[i];
15665
15723
  if (pathParts.every((parts) => parts[i] === part)) {
@@ -15716,17 +15774,19 @@ ${end.comment}` : end.comment;
15716
15774
  }
15717
15775
 
15718
15776
  // src/build-output-v3/read-config-file.ts
15719
- var import_fs4 = __toESM(__require("fs"));
15777
+ var import_fs3 = __toESM(__require("fs"));
15720
15778
 
15721
15779
  // src/parse-raw-config.ts
15722
- var import_fs3 = __toESM(__require("fs"));
15780
+ var import_promises2 = __toESM(__require("fs/promises"));
15723
15781
  var import_path4 = __toESM(__require("path"));
15724
15782
  var import_yaml = __toESM(require_dist2());
15725
15783
  var parseRawConfig = async (filePath, { disableVersionCheck = false } = {}) => {
15726
- if (!import_fs3.default.existsSync(filePath)) {
15784
+ try {
15785
+ await import_promises2.default.access(filePath);
15786
+ } catch {
15727
15787
  throw new Error(`Config file not found at ${filePath}`);
15728
15788
  }
15729
- const fileContents = import_fs3.default.readFileSync(filePath, "utf8");
15789
+ const fileContents = await import_promises2.default.readFile(filePath, "utf8");
15730
15790
  if (fileContents.length === 0) {
15731
15791
  throw new Error(`Config file is empty at ${filePath}`);
15732
15792
  }
@@ -15756,7 +15816,7 @@ ${end.comment}` : end.comment;
15756
15816
 
15757
15817
  // src/build-output-v3/read-config-file.ts
15758
15818
  var readConfigFile = async (configFilePath) => {
15759
- if (!import_fs4.default.existsSync(configFilePath)) {
15819
+ if (!import_fs3.default.existsSync(configFilePath)) {
15760
15820
  return null;
15761
15821
  }
15762
15822
  const parsed = await parseRawConfig(configFilePath, { disableVersionCheck: true });
@@ -15814,10 +15874,10 @@ ${end.comment}` : end.comment;
15814
15874
  return parseResult;
15815
15875
  }
15816
15876
  const functionData = await loadFunctions(config, parseResult, projectFolder);
15817
- const assetOverrides = await loadAssetOverrides(config, parseResult);
15877
+ const assetOverrides = loadAssetOverrides(config, parseResult);
15818
15878
  return deepMerge(parseResult, functionData, assetOverrides);
15819
15879
  };
15820
- var loadAssetOverrides = async (config, parseResult) => {
15880
+ var loadAssetOverrides = (config, parseResult) => {
15821
15881
  return {
15822
15882
  assets: {
15823
15883
  overrides: {
@@ -15921,8 +15981,19 @@ ${end.comment}` : end.comment;
15921
15981
  };
15922
15982
  };
15923
15983
 
15984
+ // src/filter-functions-from-assets.ts
15985
+ var filterFunctionsFromAssets = (config) => {
15986
+ return {
15987
+ ...config,
15988
+ assets: {
15989
+ ...config.assets,
15990
+ paths: config.assets?.paths?.filter((path7) => !config.entrypoints.some((entrypoint) => entrypoint.path === path7))
15991
+ }
15992
+ };
15993
+ };
15994
+
15924
15995
  // src/v4/parse.ts
15925
- var import_fs5 = __toESM(__require("fs"));
15996
+ var import_fs4 = __toESM(__require("fs"));
15926
15997
 
15927
15998
  // src/regions.ts
15928
15999
  var REGION_DEFINITIONS = [
@@ -15983,11 +16054,11 @@ ${end.comment}` : end.comment;
15983
16054
  const assets = [];
15984
16055
  if (config.assets != null) {
15985
16056
  const assetsPath = `${projectFolder}/${config.assets}`;
15986
- if (import_fs5.default.existsSync(assetsPath) && import_fs5.default.statSync(assetsPath).isDirectory()) {
15987
- for (const asset of import_fs5.default.readdirSync(`${projectFolder}/${config.assets}`, {
16057
+ if (import_fs4.default.existsSync(assetsPath) && import_fs4.default.statSync(assetsPath).isDirectory()) {
16058
+ for (const asset of import_fs4.default.readdirSync(`${projectFolder}/${config.assets}`, {
15988
16059
  recursive: true
15989
16060
  })) {
15990
- if (import_fs5.default.statSync(`${projectFolder}/${config.assets}/${asset}`).isDirectory()) {
16061
+ if (import_fs4.default.statSync(`${projectFolder}/${config.assets}/${asset.toString()}`).isDirectory()) {
15991
16062
  continue;
15992
16063
  }
15993
16064
  const disallowedExtensions = [".htaccess", ".htpasswd"];
@@ -15995,6 +16066,9 @@ ${end.comment}` : end.comment;
15995
16066
  if (disallowedExtensions.some((ext2) => assetName.toLowerCase().endsWith(ext2.toLowerCase()))) {
15996
16067
  continue;
15997
16068
  }
16069
+ if (getFunctionSettings(`${config.assets}/${assetName}`, config) != null) {
16070
+ continue;
16071
+ }
15998
16072
  assets.push(`${config.assets}/${assetName}`);
15999
16073
  }
16000
16074
  }
@@ -16441,6 +16515,7 @@ ${end.comment}` : end.comment;
16441
16515
  "The current project config does not resolve to any functions, assets or routes and can not be deployed."
16442
16516
  );
16443
16517
  }
16518
+ parseResult = filterFunctionsFromAssets(parseResult);
16444
16519
  return parseResult;
16445
16520
  };
16446
16521