@pipelab/plugin-system 1.0.0-beta.12 → 1.0.0-beta.13

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.mjs CHANGED
@@ -4,7 +4,7 @@ import { normalize } from "path";
4
4
  import { formatWithOptions, types } from "util";
5
5
  import path, { dirname, join } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
- import { existsSync } from "node:fs";
7
+ import { existsSync, readFileSync, readdirSync } from "node:fs";
8
8
  import http from "node:http";
9
9
  import { webcrypto } from "node:crypto";
10
10
  //#region ../../packages/migration/src/models/createMigration.ts
@@ -22,8 +22,8 @@ const finalVersion = () => {
22
22
  throw new Error("Unable to go up on the final version!");
23
23
  };
24
24
  //#endregion
25
- //#region ../../node_modules/semver/internal/constants.js
26
- var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25
+ //#region ../../packages/migration/node_modules/semver/internal/constants.js
26
+ var require_constants$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
27
27
  const SEMVER_SPEC_VERSION = "2.0.0";
28
28
  const MAX_LENGTH = 256;
29
29
  const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
@@ -47,15 +47,15 @@ var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
47
47
  };
48
48
  }));
49
49
  //#endregion
50
- //#region ../../node_modules/semver/internal/debug.js
51
- var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50
+ //#region ../../packages/migration/node_modules/semver/internal/debug.js
51
+ var require_debug$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
52
52
  module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
53
53
  }));
54
54
  //#endregion
55
- //#region ../../node_modules/semver/internal/re.js
56
- var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
57
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$8();
58
- const debug = require_debug();
55
+ //#region ../../packages/migration/node_modules/semver/internal/re.js
56
+ var require_re$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
57
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$10();
58
+ const debug = require_debug$2();
59
59
  exports = module.exports = {};
60
60
  const re = exports.re = [];
61
61
  const safeRe = exports.safeRe = [];
@@ -131,8 +131,8 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
131
131
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
132
132
  }));
133
133
  //#endregion
134
- //#region ../../node_modules/semver/internal/parse-options.js
135
- var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
134
+ //#region ../../packages/migration/node_modules/semver/internal/parse-options.js
135
+ var require_parse_options$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136
136
  const looseOption = Object.freeze({ loose: true });
137
137
  const emptyOpts = Object.freeze({});
138
138
  const parseOptions = (options) => {
@@ -143,8 +143,8 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
143
143
  module.exports = parseOptions;
144
144
  }));
145
145
  //#endregion
146
- //#region ../../node_modules/semver/internal/identifiers.js
147
- var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
146
+ //#region ../../packages/migration/node_modules/semver/internal/identifiers.js
147
+ var require_identifiers$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
148
148
  const numeric = /^[0-9]+$/;
149
149
  const compareIdentifiers = (a, b) => {
150
150
  if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
@@ -163,13 +163,13 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
163
163
  };
164
164
  }));
165
165
  //#endregion
166
- //#region ../../node_modules/semver/classes/semver.js
167
- var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
168
- const debug = require_debug();
169
- const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$8();
170
- const { safeRe: re, t } = require_re();
171
- const parseOptions = require_parse_options();
172
- const { compareIdentifiers } = require_identifiers();
166
+ //#region ../../packages/migration/node_modules/semver/classes/semver.js
167
+ var require_semver$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
168
+ const debug = require_debug$2();
169
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$10();
170
+ const { safeRe: re, t } = require_re$2();
171
+ const parseOptions = require_parse_options$2();
172
+ const { compareIdentifiers } = require_identifiers$2();
173
173
  module.exports = class SemVer {
174
174
  constructor(version, options) {
175
175
  options = parseOptions(options);
@@ -341,9 +341,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
341
341
  };
342
342
  }));
343
343
  //#endregion
344
- //#region ../../node_modules/semver/functions/parse.js
345
- var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
346
- const SemVer = require_semver$1();
344
+ //#region ../../packages/migration/node_modules/semver/functions/parse.js
345
+ var require_parse$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
346
+ const SemVer = require_semver$5();
347
347
  const parse = (version, options, throwErrors = false) => {
348
348
  if (version instanceof SemVer) return version;
349
349
  try {
@@ -356,9 +356,9 @@ var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
356
356
  module.exports = parse;
357
357
  }));
358
358
  //#endregion
359
- //#region ../../node_modules/semver/functions/valid.js
360
- var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
361
- const parse = require_parse$3();
359
+ //#region ../../packages/migration/node_modules/semver/functions/valid.js
360
+ var require_valid$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
361
+ const parse = require_parse$5();
362
362
  const valid = (version, options) => {
363
363
  const v = parse(version, options);
364
364
  return v ? v.version : null;
@@ -366,9 +366,9 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
366
366
  module.exports = valid;
367
367
  }));
368
368
  //#endregion
369
- //#region ../../node_modules/semver/functions/clean.js
370
- var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
371
- const parse = require_parse$3();
369
+ //#region ../../packages/migration/node_modules/semver/functions/clean.js
370
+ var require_clean$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
371
+ const parse = require_parse$5();
372
372
  const clean = (version, options) => {
373
373
  const s = parse(version.trim().replace(/^[=v]+/, ""), options);
374
374
  return s ? s.version : null;
@@ -376,9 +376,9 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
376
376
  module.exports = clean;
377
377
  }));
378
378
  //#endregion
379
- //#region ../../node_modules/semver/functions/inc.js
380
- var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
381
- const SemVer = require_semver$1();
379
+ //#region ../../packages/migration/node_modules/semver/functions/inc.js
380
+ var require_inc$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
381
+ const SemVer = require_semver$5();
382
382
  const inc = (version, release, options, identifier, identifierBase) => {
383
383
  if (typeof options === "string") {
384
384
  identifierBase = identifier;
@@ -394,9 +394,9 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
394
394
  module.exports = inc;
395
395
  }));
396
396
  //#endregion
397
- //#region ../../node_modules/semver/functions/diff.js
398
- var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
399
- const parse = require_parse$3();
397
+ //#region ../../packages/migration/node_modules/semver/functions/diff.js
398
+ var require_diff$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
399
+ const parse = require_parse$5();
400
400
  const diff = (version1, version2) => {
401
401
  const v1 = parse(version1, null, true);
402
402
  const v2 = parse(version2, null, true);
@@ -422,30 +422,30 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
422
422
  module.exports = diff;
423
423
  }));
424
424
  //#endregion
425
- //#region ../../node_modules/semver/functions/major.js
426
- var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
427
- const SemVer = require_semver$1();
425
+ //#region ../../packages/migration/node_modules/semver/functions/major.js
426
+ var require_major$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
427
+ const SemVer = require_semver$5();
428
428
  const major = (a, loose) => new SemVer(a, loose).major;
429
429
  module.exports = major;
430
430
  }));
431
431
  //#endregion
432
- //#region ../../node_modules/semver/functions/minor.js
433
- var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
434
- const SemVer = require_semver$1();
432
+ //#region ../../packages/migration/node_modules/semver/functions/minor.js
433
+ var require_minor$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
434
+ const SemVer = require_semver$5();
435
435
  const minor = (a, loose) => new SemVer(a, loose).minor;
436
436
  module.exports = minor;
437
437
  }));
438
438
  //#endregion
439
- //#region ../../node_modules/semver/functions/patch.js
440
- var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
441
- const SemVer = require_semver$1();
439
+ //#region ../../packages/migration/node_modules/semver/functions/patch.js
440
+ var require_patch$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
441
+ const SemVer = require_semver$5();
442
442
  const patch = (a, loose) => new SemVer(a, loose).patch;
443
443
  module.exports = patch;
444
444
  }));
445
445
  //#endregion
446
- //#region ../../node_modules/semver/functions/prerelease.js
447
- var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
448
- const parse = require_parse$3();
446
+ //#region ../../packages/migration/node_modules/semver/functions/prerelease.js
447
+ var require_prerelease$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
448
+ const parse = require_parse$5();
449
449
  const prerelease = (version, options) => {
450
450
  const parsed = parse(version, options);
451
451
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
@@ -453,30 +453,30 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
453
453
  module.exports = prerelease;
454
454
  }));
455
455
  //#endregion
456
- //#region ../../node_modules/semver/functions/compare.js
457
- var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
458
- const SemVer = require_semver$1();
456
+ //#region ../../packages/migration/node_modules/semver/functions/compare.js
457
+ var require_compare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
458
+ const SemVer = require_semver$5();
459
459
  const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
460
460
  module.exports = compare;
461
461
  }));
462
462
  //#endregion
463
- //#region ../../node_modules/semver/functions/rcompare.js
464
- var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
465
- const compare = require_compare();
463
+ //#region ../../packages/migration/node_modules/semver/functions/rcompare.js
464
+ var require_rcompare$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
465
+ const compare = require_compare$2();
466
466
  const rcompare = (a, b, loose) => compare(b, a, loose);
467
467
  module.exports = rcompare;
468
468
  }));
469
469
  //#endregion
470
- //#region ../../node_modules/semver/functions/compare-loose.js
471
- var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
472
- const compare = require_compare();
470
+ //#region ../../packages/migration/node_modules/semver/functions/compare-loose.js
471
+ var require_compare_loose$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
472
+ const compare = require_compare$2();
473
473
  const compareLoose = (a, b) => compare(a, b, true);
474
474
  module.exports = compareLoose;
475
475
  }));
476
476
  //#endregion
477
- //#region ../../node_modules/semver/functions/compare-build.js
478
- var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
479
- const SemVer = require_semver$1();
477
+ //#region ../../packages/migration/node_modules/semver/functions/compare-build.js
478
+ var require_compare_build$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
479
+ const SemVer = require_semver$5();
480
480
  const compareBuild = (a, b, loose) => {
481
481
  const versionA = new SemVer(a, loose);
482
482
  const versionB = new SemVer(b, loose);
@@ -485,70 +485,70 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
485
485
  module.exports = compareBuild;
486
486
  }));
487
487
  //#endregion
488
- //#region ../../node_modules/semver/functions/sort.js
489
- var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
490
- const compareBuild = require_compare_build();
488
+ //#region ../../packages/migration/node_modules/semver/functions/sort.js
489
+ var require_sort$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
490
+ const compareBuild = require_compare_build$2();
491
491
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
492
492
  module.exports = sort;
493
493
  }));
494
494
  //#endregion
495
- //#region ../../node_modules/semver/functions/rsort.js
496
- var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
497
- const compareBuild = require_compare_build();
495
+ //#region ../../packages/migration/node_modules/semver/functions/rsort.js
496
+ var require_rsort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
497
+ const compareBuild = require_compare_build$2();
498
498
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
499
499
  module.exports = rsort;
500
500
  }));
501
501
  //#endregion
502
- //#region ../../node_modules/semver/functions/gt.js
503
- var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
504
- const compare = require_compare();
502
+ //#region ../../packages/migration/node_modules/semver/functions/gt.js
503
+ var require_gt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
504
+ const compare = require_compare$2();
505
505
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
506
506
  module.exports = gt;
507
507
  }));
508
508
  //#endregion
509
- //#region ../../node_modules/semver/functions/lt.js
510
- var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
511
- const compare = require_compare();
509
+ //#region ../../packages/migration/node_modules/semver/functions/lt.js
510
+ var require_lt$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
511
+ const compare = require_compare$2();
512
512
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
513
513
  module.exports = lt;
514
514
  }));
515
515
  //#endregion
516
- //#region ../../node_modules/semver/functions/eq.js
517
- var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
518
- const compare = require_compare();
516
+ //#region ../../packages/migration/node_modules/semver/functions/eq.js
517
+ var require_eq$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
518
+ const compare = require_compare$2();
519
519
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
520
520
  module.exports = eq;
521
521
  }));
522
522
  //#endregion
523
- //#region ../../node_modules/semver/functions/neq.js
524
- var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
525
- const compare = require_compare();
523
+ //#region ../../packages/migration/node_modules/semver/functions/neq.js
524
+ var require_neq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
525
+ const compare = require_compare$2();
526
526
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
527
527
  module.exports = neq;
528
528
  }));
529
529
  //#endregion
530
- //#region ../../node_modules/semver/functions/gte.js
531
- var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
532
- const compare = require_compare();
530
+ //#region ../../packages/migration/node_modules/semver/functions/gte.js
531
+ var require_gte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
532
+ const compare = require_compare$2();
533
533
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
534
534
  module.exports = gte;
535
535
  }));
536
536
  //#endregion
537
- //#region ../../node_modules/semver/functions/lte.js
538
- var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
539
- const compare = require_compare();
537
+ //#region ../../packages/migration/node_modules/semver/functions/lte.js
538
+ var require_lte$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
539
+ const compare = require_compare$2();
540
540
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
541
541
  module.exports = lte;
542
542
  }));
543
543
  //#endregion
544
- //#region ../../node_modules/semver/functions/cmp.js
545
- var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
546
- const eq = require_eq$1();
547
- const neq = require_neq();
548
- const gt = require_gt();
549
- const gte = require_gte();
550
- const lt = require_lt();
551
- const lte = require_lte();
544
+ //#region ../../packages/migration/node_modules/semver/functions/cmp.js
545
+ var require_cmp$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
546
+ const eq = require_eq$3();
547
+ const neq = require_neq$2();
548
+ const gt = require_gt$2();
549
+ const gte = require_gte$2();
550
+ const lt = require_lt$2();
551
+ const lte = require_lte$2();
552
552
  const cmp = (a, op, b, loose) => {
553
553
  switch (op) {
554
554
  case "===":
@@ -573,11 +573,11 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
573
573
  module.exports = cmp;
574
574
  }));
575
575
  //#endregion
576
- //#region ../../node_modules/semver/functions/coerce.js
577
- var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
578
- const SemVer = require_semver$1();
579
- const parse = require_parse$3();
580
- const { safeRe: re, t } = require_re();
576
+ //#region ../../packages/migration/node_modules/semver/functions/coerce.js
577
+ var require_coerce$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
578
+ const SemVer = require_semver$5();
579
+ const parse = require_parse$5();
580
+ const { safeRe: re, t } = require_re$2();
581
581
  const coerce = (version, options) => {
582
582
  if (version instanceof SemVer) return version;
583
583
  if (typeof version === "number") version = String(version);
@@ -601,8 +601,8 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
601
601
  module.exports = coerce;
602
602
  }));
603
603
  //#endregion
604
- //#region ../../node_modules/semver/internal/lrucache.js
605
- var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
604
+ //#region ../../packages/migration/node_modules/semver/internal/lrucache.js
605
+ var require_lrucache$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
606
606
  var LRUCache = class {
607
607
  constructor() {
608
608
  this.max = 1e3;
@@ -634,8 +634,8 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
634
634
  module.exports = LRUCache;
635
635
  }));
636
636
  //#endregion
637
- //#region ../../node_modules/semver/classes/range.js
638
- var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
637
+ //#region ../../packages/migration/node_modules/semver/classes/range.js
638
+ var require_range$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
639
639
  const SPACE_CHARACTERS = /\s+/g;
640
640
  module.exports = class Range {
641
641
  constructor(range, options) {
@@ -741,13 +741,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
741
741
  return false;
742
742
  }
743
743
  };
744
- const cache = new (require_lrucache())();
745
- const parseOptions = require_parse_options();
746
- const Comparator = require_comparator();
747
- const debug = require_debug();
748
- const SemVer = require_semver$1();
749
- const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
750
- const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$8();
744
+ const cache = new (require_lrucache$2())();
745
+ const parseOptions = require_parse_options$2();
746
+ const Comparator = require_comparator$2();
747
+ const debug = require_debug$2();
748
+ const SemVer = require_semver$5();
749
+ const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$2();
750
+ const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$10();
751
751
  const isNullSet = (c) => c.value === "<0.0.0-0";
752
752
  const isAny = (c) => c.value === "";
753
753
  const isSatisfiable = (comparators, options) => {
@@ -906,8 +906,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
906
906
  };
907
907
  }));
908
908
  //#endregion
909
- //#region ../../node_modules/semver/classes/comparator.js
910
- var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
909
+ //#region ../../packages/migration/node_modules/semver/classes/comparator.js
910
+ var require_comparator$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
911
911
  const ANY = Symbol("SemVer ANY");
912
912
  module.exports = class Comparator {
913
913
  static get ANY() {
@@ -968,17 +968,17 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
968
968
  return false;
969
969
  }
970
970
  };
971
- const parseOptions = require_parse_options();
972
- const { safeRe: re, t } = require_re();
973
- const cmp = require_cmp();
974
- const debug = require_debug();
975
- const SemVer = require_semver$1();
976
- const Range = require_range();
971
+ const parseOptions = require_parse_options$2();
972
+ const { safeRe: re, t } = require_re$2();
973
+ const cmp = require_cmp$2();
974
+ const debug = require_debug$2();
975
+ const SemVer = require_semver$5();
976
+ const Range = require_range$2();
977
977
  }));
978
978
  //#endregion
979
- //#region ../../node_modules/semver/functions/satisfies.js
980
- var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
981
- const Range = require_range();
979
+ //#region ../../packages/migration/node_modules/semver/functions/satisfies.js
980
+ var require_satisfies$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
981
+ const Range = require_range$2();
982
982
  const satisfies = (version, range, options) => {
983
983
  try {
984
984
  range = new Range(range, options);
@@ -990,17 +990,17 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
990
990
  module.exports = satisfies;
991
991
  }));
992
992
  //#endregion
993
- //#region ../../node_modules/semver/ranges/to-comparators.js
994
- var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
995
- const Range = require_range();
993
+ //#region ../../packages/migration/node_modules/semver/ranges/to-comparators.js
994
+ var require_to_comparators$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
995
+ const Range = require_range$2();
996
996
  const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
997
997
  module.exports = toComparators;
998
998
  }));
999
999
  //#endregion
1000
- //#region ../../node_modules/semver/ranges/max-satisfying.js
1001
- var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1002
- const SemVer = require_semver$1();
1003
- const Range = require_range();
1000
+ //#region ../../packages/migration/node_modules/semver/ranges/max-satisfying.js
1001
+ var require_max_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1002
+ const SemVer = require_semver$5();
1003
+ const Range = require_range$2();
1004
1004
  const maxSatisfying = (versions, range, options) => {
1005
1005
  let max = null;
1006
1006
  let maxSV = null;
@@ -1023,10 +1023,10 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1023
1023
  module.exports = maxSatisfying;
1024
1024
  }));
1025
1025
  //#endregion
1026
- //#region ../../node_modules/semver/ranges/min-satisfying.js
1027
- var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1028
- const SemVer = require_semver$1();
1029
- const Range = require_range();
1026
+ //#region ../../packages/migration/node_modules/semver/ranges/min-satisfying.js
1027
+ var require_min_satisfying$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1028
+ const SemVer = require_semver$5();
1029
+ const Range = require_range$2();
1030
1030
  const minSatisfying = (versions, range, options) => {
1031
1031
  let min = null;
1032
1032
  let minSV = null;
@@ -1049,11 +1049,11 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1049
1049
  module.exports = minSatisfying;
1050
1050
  }));
1051
1051
  //#endregion
1052
- //#region ../../node_modules/semver/ranges/min-version.js
1053
- var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1054
- const SemVer = require_semver$1();
1055
- const Range = require_range();
1056
- const gt = require_gt();
1052
+ //#region ../../packages/migration/node_modules/semver/ranges/min-version.js
1053
+ var require_min_version$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1054
+ const SemVer = require_semver$5();
1055
+ const Range = require_range$2();
1056
+ const gt = require_gt$2();
1057
1057
  const minVersion = (range, loose) => {
1058
1058
  range = new Range(range, loose);
1059
1059
  let minver = new SemVer("0.0.0");
@@ -1088,9 +1088,9 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1088
1088
  module.exports = minVersion;
1089
1089
  }));
1090
1090
  //#endregion
1091
- //#region ../../node_modules/semver/ranges/valid.js
1092
- var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1093
- const Range = require_range();
1091
+ //#region ../../packages/migration/node_modules/semver/ranges/valid.js
1092
+ var require_valid$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1093
+ const Range = require_range$2();
1094
1094
  const validRange = (range, options) => {
1095
1095
  try {
1096
1096
  return new Range(range, options).range || "*";
@@ -1101,17 +1101,17 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1101
1101
  module.exports = validRange;
1102
1102
  }));
1103
1103
  //#endregion
1104
- //#region ../../node_modules/semver/ranges/outside.js
1105
- var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1106
- const SemVer = require_semver$1();
1107
- const Comparator = require_comparator();
1104
+ //#region ../../packages/migration/node_modules/semver/ranges/outside.js
1105
+ var require_outside$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1106
+ const SemVer = require_semver$5();
1107
+ const Comparator = require_comparator$2();
1108
1108
  const { ANY } = Comparator;
1109
- const Range = require_range();
1110
- const satisfies = require_satisfies();
1111
- const gt = require_gt();
1112
- const lt = require_lt();
1113
- const lte = require_lte();
1114
- const gte = require_gte();
1109
+ const Range = require_range$2();
1110
+ const satisfies = require_satisfies$2();
1111
+ const gt = require_gt$2();
1112
+ const lt = require_lt$2();
1113
+ const lte = require_lte$2();
1114
+ const gte = require_gte$2();
1115
1115
  const outside = (version, range, hilo, options) => {
1116
1116
  version = new SemVer(version, options);
1117
1117
  range = new Range(range, options);
@@ -1154,23 +1154,23 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1154
1154
  module.exports = outside;
1155
1155
  }));
1156
1156
  //#endregion
1157
- //#region ../../node_modules/semver/ranges/gtr.js
1158
- var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1159
- const outside = require_outside();
1157
+ //#region ../../packages/migration/node_modules/semver/ranges/gtr.js
1158
+ var require_gtr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1159
+ const outside = require_outside$2();
1160
1160
  const gtr = (version, range, options) => outside(version, range, ">", options);
1161
1161
  module.exports = gtr;
1162
1162
  }));
1163
1163
  //#endregion
1164
- //#region ../../node_modules/semver/ranges/ltr.js
1165
- var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1166
- const outside = require_outside();
1164
+ //#region ../../packages/migration/node_modules/semver/ranges/ltr.js
1165
+ var require_ltr$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1166
+ const outside = require_outside$2();
1167
1167
  const ltr = (version, range, options) => outside(version, range, "<", options);
1168
1168
  module.exports = ltr;
1169
1169
  }));
1170
1170
  //#endregion
1171
- //#region ../../node_modules/semver/ranges/intersects.js
1172
- var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1173
- const Range = require_range();
1171
+ //#region ../../packages/migration/node_modules/semver/ranges/intersects.js
1172
+ var require_intersects$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1173
+ const Range = require_range$2();
1174
1174
  const intersects = (r1, r2, options) => {
1175
1175
  r1 = new Range(r1, options);
1176
1176
  r2 = new Range(r2, options);
@@ -1179,10 +1179,10 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1179
1179
  module.exports = intersects;
1180
1180
  }));
1181
1181
  //#endregion
1182
- //#region ../../node_modules/semver/ranges/simplify.js
1183
- var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1184
- const satisfies = require_satisfies();
1185
- const compare = require_compare();
1182
+ //#region ../../packages/migration/node_modules/semver/ranges/simplify.js
1183
+ var require_simplify$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1184
+ const satisfies = require_satisfies$2();
1185
+ const compare = require_compare$2();
1186
1186
  module.exports = (versions, range, options) => {
1187
1187
  const set = [];
1188
1188
  let first = null;
@@ -1209,13 +1209,13 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1209
1209
  };
1210
1210
  }));
1211
1211
  //#endregion
1212
- //#region ../../node_modules/semver/ranges/subset.js
1213
- var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1214
- const Range = require_range();
1215
- const Comparator = require_comparator();
1212
+ //#region ../../packages/migration/node_modules/semver/ranges/subset.js
1213
+ var require_subset$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1214
+ const Range = require_range$2();
1215
+ const Comparator = require_comparator$2();
1216
1216
  const { ANY } = Comparator;
1217
- const satisfies = require_satisfies();
1218
- const compare = require_compare();
1217
+ const satisfies = require_satisfies$2();
1218
+ const compare = require_compare$2();
1219
1219
  const subset = (sub, dom, options = {}) => {
1220
1220
  if (sub === dom) return true;
1221
1221
  sub = new Range(sub, options);
@@ -1304,50 +1304,50 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1304
1304
  module.exports = subset;
1305
1305
  }));
1306
1306
  //#endregion
1307
- //#region ../../node_modules/semver/index.js
1308
- var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1309
- const internalRe = require_re();
1310
- const constants = require_constants$8();
1311
- const SemVer = require_semver$1();
1312
- const identifiers = require_identifiers();
1307
+ //#region ../../packages/migration/src/utils/object-keys.ts
1308
+ var import_semver$1 = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
1309
+ const internalRe = require_re$2();
1310
+ const constants = require_constants$10();
1311
+ const SemVer = require_semver$5();
1312
+ const identifiers = require_identifiers$2();
1313
1313
  module.exports = {
1314
- parse: require_parse$3(),
1315
- valid: require_valid$1(),
1316
- clean: require_clean(),
1317
- inc: require_inc(),
1318
- diff: require_diff(),
1319
- major: require_major(),
1320
- minor: require_minor(),
1321
- patch: require_patch(),
1322
- prerelease: require_prerelease(),
1323
- compare: require_compare(),
1324
- rcompare: require_rcompare(),
1325
- compareLoose: require_compare_loose(),
1326
- compareBuild: require_compare_build(),
1327
- sort: require_sort$1(),
1328
- rsort: require_rsort(),
1329
- gt: require_gt(),
1330
- lt: require_lt(),
1331
- eq: require_eq$1(),
1332
- neq: require_neq(),
1333
- gte: require_gte(),
1334
- lte: require_lte(),
1335
- cmp: require_cmp(),
1336
- coerce: require_coerce(),
1337
- Comparator: require_comparator(),
1338
- Range: require_range(),
1339
- satisfies: require_satisfies(),
1340
- toComparators: require_to_comparators(),
1341
- maxSatisfying: require_max_satisfying(),
1342
- minSatisfying: require_min_satisfying(),
1343
- minVersion: require_min_version(),
1344
- validRange: require_valid(),
1345
- outside: require_outside(),
1346
- gtr: require_gtr(),
1347
- ltr: require_ltr(),
1348
- intersects: require_intersects(),
1349
- simplifyRange: require_simplify(),
1350
- subset: require_subset(),
1314
+ parse: require_parse$5(),
1315
+ valid: require_valid$5(),
1316
+ clean: require_clean$2(),
1317
+ inc: require_inc$2(),
1318
+ diff: require_diff$2(),
1319
+ major: require_major$2(),
1320
+ minor: require_minor$2(),
1321
+ patch: require_patch$2(),
1322
+ prerelease: require_prerelease$2(),
1323
+ compare: require_compare$2(),
1324
+ rcompare: require_rcompare$2(),
1325
+ compareLoose: require_compare_loose$2(),
1326
+ compareBuild: require_compare_build$2(),
1327
+ sort: require_sort$3(),
1328
+ rsort: require_rsort$2(),
1329
+ gt: require_gt$2(),
1330
+ lt: require_lt$2(),
1331
+ eq: require_eq$3(),
1332
+ neq: require_neq$2(),
1333
+ gte: require_gte$2(),
1334
+ lte: require_lte$2(),
1335
+ cmp: require_cmp$2(),
1336
+ coerce: require_coerce$2(),
1337
+ Comparator: require_comparator$2(),
1338
+ Range: require_range$2(),
1339
+ satisfies: require_satisfies$2(),
1340
+ toComparators: require_to_comparators$2(),
1341
+ maxSatisfying: require_max_satisfying$2(),
1342
+ minSatisfying: require_min_satisfying$2(),
1343
+ minVersion: require_min_version$2(),
1344
+ validRange: require_valid$4(),
1345
+ outside: require_outside$2(),
1346
+ gtr: require_gtr$2(),
1347
+ ltr: require_ltr$2(),
1348
+ intersects: require_intersects$2(),
1349
+ simplifyRange: require_simplify$2(),
1350
+ subset: require_subset$2(),
1351
1351
  SemVer,
1352
1352
  re: internalRe.re,
1353
1353
  src: internalRe.src,
@@ -1357,10 +1357,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1357
1357
  compareIdentifiers: identifiers.compareIdentifiers,
1358
1358
  rcompareIdentifiers: identifiers.rcompareIdentifiers
1359
1359
  };
1360
- }));
1361
- //#endregion
1362
- //#region ../../packages/migration/src/utils/object-keys.ts
1363
- var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
1360
+ })))(), 1);
1364
1361
  const objectKeys = Object.keys;
1365
1362
  //#endregion
1366
1363
  //#region ../../node_modules/klona/dist/index.mjs
@@ -1569,19 +1566,6 @@ function custom(check2, message) {
1569
1566
  }
1570
1567
  };
1571
1568
  }
1572
- function lazy(getter) {
1573
- return {
1574
- kind: "schema",
1575
- type: "lazy",
1576
- reference: lazy,
1577
- expects: "unknown",
1578
- async: false,
1579
- getter,
1580
- _run(dataset, config2) {
1581
- return this.getter(dataset.value)._run(dataset, config2);
1582
- }
1583
- };
1584
- }
1585
1569
  function literal(literal_, message) {
1586
1570
  return {
1587
1571
  kind: "schema",
@@ -1925,7 +1909,7 @@ var Migrator = class {
1925
1909
  }
1926
1910
  getVersions() {
1927
1911
  const keys = objectKeys(this.migrations);
1928
- return import_semver.sort(keys);
1912
+ return import_semver$1.sort(keys);
1929
1913
  }
1930
1914
  async migrate(_state, options) {
1931
1915
  const state = _state ?? this.defaultValue;
@@ -1957,11 +1941,11 @@ var Migrator = class {
1957
1941
  return finalState;
1958
1942
  }
1959
1943
  tryCoerce(version) {
1960
- return this.coerce ? (0, import_semver.coerce)(version)?.version ?? version : version;
1944
+ return this.coerce ? (0, import_semver$1.coerce)(version)?.version ?? version : version;
1961
1945
  }
1962
1946
  needMigration(version) {
1963
1947
  const newVersion = this.tryCoerce(version);
1964
- return import_semver.lt(newVersion, this.current);
1948
+ return import_semver$1.lt(newVersion, this.current);
1965
1949
  }
1966
1950
  };
1967
1951
  //#endregion
@@ -1978,12 +1962,74 @@ const createMigrator = () => {
1978
1962
  };
1979
1963
  //#endregion
1980
1964
  //#region ../../packages/shared/src/config/migrators.ts
1965
+ const DEFAULT_PLUGINS = [
1966
+ {
1967
+ name: "@pipelab/plugin-construct",
1968
+ enabled: true,
1969
+ description: "Construct 3 export & packaging"
1970
+ },
1971
+ {
1972
+ name: "@pipelab/plugin-filesystem",
1973
+ enabled: true,
1974
+ description: "Filesystem utilities"
1975
+ },
1976
+ {
1977
+ name: "@pipelab/plugin-system",
1978
+ enabled: true,
1979
+ description: "System & shell commands"
1980
+ },
1981
+ {
1982
+ name: "@pipelab/plugin-steam",
1983
+ enabled: true,
1984
+ description: "Steam publishing"
1985
+ },
1986
+ {
1987
+ name: "@pipelab/plugin-itch",
1988
+ enabled: true,
1989
+ description: "Itch.io publishing"
1990
+ },
1991
+ {
1992
+ name: "@pipelab/plugin-electron",
1993
+ enabled: true,
1994
+ description: "Electron packaging"
1995
+ },
1996
+ {
1997
+ name: "@pipelab/plugin-discord",
1998
+ enabled: true,
1999
+ description: "Discord Rich Presence"
2000
+ },
2001
+ {
2002
+ name: "@pipelab/plugin-poki",
2003
+ enabled: true,
2004
+ description: "Poki publishing"
2005
+ },
2006
+ {
2007
+ name: "@pipelab/plugin-nvpatch",
2008
+ enabled: true,
2009
+ description: "NW.js patching"
2010
+ },
2011
+ {
2012
+ name: "@pipelab/plugin-tauri",
2013
+ enabled: true,
2014
+ description: "Tauri packaging"
2015
+ },
2016
+ {
2017
+ name: "@pipelab/plugin-minify",
2018
+ enabled: true,
2019
+ description: "Asset minification"
2020
+ },
2021
+ {
2022
+ name: "@pipelab/plugin-netlify",
2023
+ enabled: true,
2024
+ description: "Netlify deployment"
2025
+ }
2026
+ ];
1981
2027
  const createMigration = (config) => createMigration$1(config);
1982
2028
  const settingsMigratorInternal = createMigrator();
1983
2029
  const defaultAppSettings = settingsMigratorInternal.createDefault({
1984
2030
  locale: "en-US",
1985
2031
  theme: "light",
1986
- version: "7.0.0",
2032
+ version: "8.0.0",
1987
2033
  autosave: true,
1988
2034
  agents: [],
1989
2035
  tours: {
@@ -2000,7 +2046,9 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
2000
2046
  enabled: false,
2001
2047
  maxEntries: 50,
2002
2048
  maxAge: 30
2003
- } }
2049
+ } },
2050
+ plugins: DEFAULT_PLUGINS,
2051
+ isInternalMigrationBannerClosed: false
2004
2052
  });
2005
2053
  settingsMigratorInternal.createMigrations({
2006
2054
  defaultValue: defaultAppSettings,
@@ -2051,19 +2099,22 @@ settingsMigratorInternal.createMigrations({
2051
2099
  createMigration({
2052
2100
  version: "6.0.0",
2053
2101
  up: (state) => {
2102
+ const { cacheFolder: _, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
2054
2103
  return {
2055
- ...state,
2104
+ ...rest,
2056
2105
  agents: [],
2057
2106
  buildHistory: { retentionPolicy: {
2058
2107
  enabled: false,
2059
2108
  maxEntries: 50,
2060
2109
  maxAge: 30
2061
- } }
2110
+ } },
2111
+ plugins: DEFAULT_PLUGINS,
2112
+ isInternalMigrationBannerClosed: false
2062
2113
  };
2063
2114
  }
2064
2115
  }),
2065
2116
  createMigration({
2066
- version: "7.0.0",
2117
+ version: "8.0.0",
2067
2118
  up: finalVersion
2068
2119
  })
2069
2120
  ]
@@ -2114,8 +2165,7 @@ const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
2114
2165
  description: "",
2115
2166
  name: "",
2116
2167
  variables: [],
2117
- type: "default",
2118
- version: "4.0.0"
2168
+ version: "5.0.0"
2119
2169
  });
2120
2170
  savedFileMigratorInternal.createMigrations({
2121
2171
  defaultValue: savedFileDefaultValue,
@@ -2178,10 +2228,63 @@ savedFileMigratorInternal.createMigrations({
2178
2228
  }),
2179
2229
  createMigration({
2180
2230
  version: "4.0.0",
2231
+ up: (_state) => {
2232
+ const state = _state;
2233
+ if (state.type === "simple") return {
2234
+ name: state.name,
2235
+ description: state.description,
2236
+ canvas: {
2237
+ blocks: [],
2238
+ triggers: []
2239
+ },
2240
+ variables: []
2241
+ };
2242
+ const migrateBlock = (block, pluginsMap) => {
2243
+ if (!block) return;
2244
+ if (block.origin?.pluginId) {
2245
+ block.origin.pluginId = getStrictPluginId(block.origin.pluginId);
2246
+ block.origin.version = pluginsMap[block.origin.pluginId] ?? "latest";
2247
+ }
2248
+ };
2249
+ const normalizedPlugins = {};
2250
+ if (state.plugins) for (const [key, val] of Object.entries(state.plugins)) normalizedPlugins[getStrictPluginId(key)] = val;
2251
+ if (state.canvas) {
2252
+ for (const block of state.canvas.blocks ?? []) migrateBlock(block, normalizedPlugins);
2253
+ for (const trigger of state.canvas.triggers ?? []) migrateBlock(trigger, normalizedPlugins);
2254
+ }
2255
+ const { plugins: _dropped, type: _type, ...rest } = state;
2256
+ return rest;
2257
+ }
2258
+ }),
2259
+ createMigration({
2260
+ version: "5.0.0",
2181
2261
  up: finalVersion
2182
2262
  })
2183
2263
  ]
2184
2264
  });
2265
+ const LEGACY_ID_MAP = {
2266
+ construct: "@pipelab/plugin-construct",
2267
+ filesystem: "@pipelab/plugin-filesystem",
2268
+ system: "@pipelab/plugin-system",
2269
+ steam: "@pipelab/plugin-steam",
2270
+ itch: "@pipelab/plugin-itch",
2271
+ electron: "@pipelab/plugin-electron",
2272
+ discord: "@pipelab/plugin-discord",
2273
+ dicord: "@pipelab/plugin-discord",
2274
+ "@pipelab/plugin-dicord": "@pipelab/plugin-discord",
2275
+ poki: "@pipelab/plugin-poki",
2276
+ nvpatch: "@pipelab/plugin-nvpatch",
2277
+ tauri: "@pipelab/plugin-tauri",
2278
+ minify: "@pipelab/plugin-minify",
2279
+ netlify: "@pipelab/plugin-netlify"
2280
+ };
2281
+ const getStrictPluginId = (pluginId) => {
2282
+ if (!pluginId) return pluginId;
2283
+ if (LEGACY_ID_MAP[pluginId]) return LEGACY_ID_MAP[pluginId];
2284
+ if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
2285
+ const prefixed = `@pipelab/plugin-${pluginId}`;
2286
+ return LEGACY_ID_MAP[prefixed] || prefixed;
2287
+ };
2185
2288
  object({
2186
2289
  cacheFolder: string(),
2187
2290
  theme: union([literal("light"), literal("dark")]),
@@ -2294,6 +2397,45 @@ object({
2294
2397
  maxAge: number()
2295
2398
  }) })
2296
2399
  });
2400
+ object({
2401
+ theme: union([literal("light"), literal("dark")]),
2402
+ version: literal("8.0.0"),
2403
+ locale: union([
2404
+ literal("en-US"),
2405
+ literal("fr-FR"),
2406
+ literal("pt-BR"),
2407
+ literal("zh-CN"),
2408
+ literal("es-ES"),
2409
+ literal("de-DE")
2410
+ ]),
2411
+ tours: object({
2412
+ dashboard: object({
2413
+ step: number(),
2414
+ completed: boolean()
2415
+ }),
2416
+ editor: object({
2417
+ step: number(),
2418
+ completed: boolean()
2419
+ })
2420
+ }),
2421
+ autosave: boolean(),
2422
+ agents: array(object({
2423
+ id: string(),
2424
+ name: string(),
2425
+ url: string()
2426
+ })),
2427
+ buildHistory: object({ retentionPolicy: object({
2428
+ enabled: boolean(),
2429
+ maxEntries: number(),
2430
+ maxAge: number()
2431
+ }) }),
2432
+ plugins: array(object({
2433
+ name: string(),
2434
+ enabled: boolean(),
2435
+ description: string()
2436
+ })),
2437
+ isInternalMigrationBannerClosed: optional(boolean(), false)
2438
+ });
2297
2439
  //#endregion
2298
2440
  //#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
2299
2441
  const prettyLogStyles = {
@@ -2813,7 +2955,8 @@ const useLogger = () => {
2813
2955
  //#region ../../packages/shared/src/model.ts
2814
2956
  const OriginValidator = object({
2815
2957
  pluginId: string(),
2816
- nodeId: string()
2958
+ nodeId: string(),
2959
+ version: pipe(optional(string()), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent."))
2817
2960
  });
2818
2961
  const BlockActionValidatorV1 = object({
2819
2962
  type: literal("action"),
@@ -2834,21 +2977,6 @@ const BlockActionValidatorV3 = object({
2834
2977
  })),
2835
2978
  origin: OriginValidator
2836
2979
  });
2837
- object({
2838
- type: literal("condition"),
2839
- uid: string(),
2840
- origin: OriginValidator,
2841
- params: record(string(), any()),
2842
- branchTrue: lazy(() => array(BlockValidator)),
2843
- branchFalse: lazy(() => array(BlockValidator))
2844
- });
2845
- object({
2846
- type: literal("loop"),
2847
- uid: string(),
2848
- origin: OriginValidator,
2849
- params: record(string(), any()),
2850
- children: lazy(() => array(BlockValidator))
2851
- });
2852
2980
  const BlockEventValidator = object({
2853
2981
  type: literal("event"),
2854
2982
  uid: string(),
@@ -2864,7 +2992,6 @@ object({
2864
2992
  const BlockValidatorV1 = variant("type", [BlockActionValidatorV1, BlockEventValidator]);
2865
2993
  const BlockValidatorV2 = variant("type", [BlockActionValidatorV1]);
2866
2994
  const BlockValidatorV3 = variant("type", [BlockActionValidatorV3]);
2867
- const BlockValidator = BlockValidatorV3;
2868
2995
  const CanvasValidatorV1 = object({ blocks: array(BlockValidatorV1) });
2869
2996
  const CanvasValidatorV2 = object({
2870
2997
  blocks: array(BlockValidatorV2),
@@ -2896,18 +3023,59 @@ object({
2896
3023
  canvas: CanvasValidatorV3,
2897
3024
  variables: array(VariableValidatorV1)
2898
3025
  });
2899
- union([object({
3026
+ const SavedFileDefaultValidatorV4 = object({
2900
3027
  version: literal("4.0.0"),
2901
3028
  type: literal("default"),
2902
3029
  name: string(),
2903
3030
  description: string(),
3031
+ plugins: optional(record(string(), string())),
2904
3032
  canvas: CanvasValidatorV3,
2905
3033
  variables: array(VariableValidatorV1)
2906
- }), object({
3034
+ });
3035
+ const SavedFileSimpleValidatorV4 = object({
2907
3036
  version: literal("4.0.0"),
2908
3037
  type: literal("simple"),
2909
3038
  name: string(),
2910
3039
  description: string(),
3040
+ plugins: optional(record(string(), string())),
3041
+ source: object({
3042
+ type: union([
3043
+ literal("c3-html"),
3044
+ literal("c3-nwjs"),
3045
+ literal("godot"),
3046
+ literal("html")
3047
+ ]),
3048
+ path: string()
3049
+ }),
3050
+ packaging: object({ enabled: boolean() }),
3051
+ publishing: object({
3052
+ steam: object({
3053
+ enabled: boolean(),
3054
+ appId: optional(string())
3055
+ }),
3056
+ itch: object({
3057
+ enabled: boolean(),
3058
+ project: optional(string())
3059
+ }),
3060
+ poki: object({
3061
+ enabled: boolean(),
3062
+ gameId: optional(string())
3063
+ })
3064
+ })
3065
+ });
3066
+ object({
3067
+ version: literal("5.0.0"),
3068
+ name: string(),
3069
+ description: string(),
3070
+ canvas: CanvasValidatorV3,
3071
+ variables: array(VariableValidatorV1)
3072
+ });
3073
+ object({
3074
+ version: literal("5.0.0"),
3075
+ type: literal("simple"),
3076
+ name: string(),
3077
+ description: string(),
3078
+ plugins: record(string(), string()),
2911
3079
  source: object({
2912
3080
  type: union([
2913
3081
  literal("c3-html"),
@@ -2932,7 +3100,8 @@ union([object({
2932
3100
  gameId: optional(string())
2933
3101
  })
2934
3102
  })
2935
- })]);
3103
+ });
3104
+ union([SavedFileDefaultValidatorV4, SavedFileSimpleValidatorV4]);
2936
3105
  //#endregion
2937
3106
  //#region ../../node_modules/vue/node_modules/@vue/shared/dist/shared.cjs.prod.js
2938
3107
  /**
@@ -45191,7 +45360,7 @@ var init_esm_shims = __esmMin((() => {
45191
45360
  //#region ../../packages/core-node/src/context.ts
45192
45361
  init_esm_shims();
45193
45362
  const _dirname = typeof __dirname !== "undefined" ? __dirname : typeof import.meta !== "undefined" && import.meta.url ? dirname(fileURLToPath(import.meta.url)) : process.cwd();
45194
- process.env.NODE_ENV;
45363
+ const isDev = process.env.NODE_ENV === "development";
45195
45364
  /**
45196
45365
  * Finds the monorepo root by looking for pnpm-workspace.yaml.
45197
45366
  */
@@ -45203,10 +45372,10 @@ function findProjectRoot(startDir) {
45203
45372
  }
45204
45373
  return null;
45205
45374
  }
45206
- findProjectRoot(_dirname);
45375
+ const projectRoot = findProjectRoot(_dirname);
45207
45376
  //#endregion
45208
45377
  //#region ../../packages/core-node/node_modules/ws/lib/constants.js
45209
- var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45378
+ var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45210
45379
  const BINARY_TYPES = [
45211
45380
  "nodebuffer",
45212
45381
  "arraybuffer",
@@ -45229,7 +45398,7 @@ var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45229
45398
  //#endregion
45230
45399
  //#region ../../packages/core-node/node_modules/ws/lib/buffer-util.js
45231
45400
  var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45232
- const { EMPTY_BUFFER } = require_constants$7();
45401
+ const { EMPTY_BUFFER } = require_constants$9();
45233
45402
  const FastBuffer = Buffer[Symbol.species];
45234
45403
  /**
45235
45404
  * Merges an array of buffers into a new buffer.
@@ -45383,7 +45552,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
45383
45552
  const zlib$2 = __require("zlib");
45384
45553
  const bufferUtil = require_buffer_util();
45385
45554
  const Limiter = require_limiter();
45386
- const { kStatusCode } = require_constants$7();
45555
+ const { kStatusCode } = require_constants$9();
45387
45556
  const FastBuffer = Buffer[Symbol.species];
45388
45557
  const TRAILER = Buffer.from([
45389
45558
  0,
@@ -45714,7 +45883,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
45714
45883
  //#region ../../packages/core-node/node_modules/ws/lib/validation.js
45715
45884
  var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45716
45885
  const { isUtf8 } = __require("buffer");
45717
- const { hasBlob } = require_constants$7();
45886
+ const { hasBlob } = require_constants$9();
45718
45887
  const tokenChars = [
45719
45888
  0,
45720
45889
  0,
@@ -45911,7 +46080,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45911
46080
  var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45912
46081
  const { Writable: Writable$1 } = __require("stream");
45913
46082
  const PerMessageDeflate = require_permessage_deflate();
45914
- const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$7();
46083
+ const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants$9();
45915
46084
  const { concat, toArrayBuffer, unmask } = require_buffer_util();
45916
46085
  const { isValidStatusCode, isValidUTF8 } = require_validation();
45917
46086
  const FastBuffer = Buffer[Symbol.species];
@@ -46359,7 +46528,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46359
46528
  const { Duplex: Duplex$3 } = __require("stream");
46360
46529
  const { randomFillSync } = __require("crypto");
46361
46530
  const PerMessageDeflate = require_permessage_deflate();
46362
- const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$7();
46531
+ const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants$9();
46363
46532
  const { isBlob, isValidStatusCode } = require_validation();
46364
46533
  const { mask: applyMask, toBuffer } = require_buffer_util();
46365
46534
  const kByteLength = Symbol("kByteLength");
@@ -46847,7 +47016,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46847
47016
  //#endregion
46848
47017
  //#region ../../packages/core-node/node_modules/ws/lib/event-target.js
46849
47018
  var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46850
- const { kForOnEventAttribute, kListener } = require_constants$7();
47019
+ const { kForOnEventAttribute, kListener } = require_constants$9();
46851
47020
  const kCode = Symbol("kCode");
46852
47021
  const kData = Symbol("kData");
46853
47022
  const kError = Symbol("kError");
@@ -47214,7 +47383,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
47214
47383
  const Receiver = require_receiver();
47215
47384
  const Sender = require_sender();
47216
47385
  const { isBlob } = require_validation();
47217
- const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$7();
47386
+ const { BINARY_TYPES, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = require_constants$9();
47218
47387
  const { EventTarget: { addEventListener, removeEventListener } } = require_event_target();
47219
47388
  const { format, parse } = require_extension();
47220
47389
  const { toBuffer } = require_buffer_util();
@@ -48330,7 +48499,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
48330
48499
  const PerMessageDeflate = require_permessage_deflate();
48331
48500
  const subprotocol = require_subprotocol();
48332
48501
  const WebSocket = require_websocket();
48333
- const { GUID, kWebSocket } = require_constants$7();
48502
+ const { GUID, kWebSocket } = require_constants$9();
48334
48503
  const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
48335
48504
  const RUNNING = 0;
48336
48505
  const CLOSING = 1;
@@ -49475,7 +49644,7 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
49475
49644
  }));
49476
49645
  //#endregion
49477
49646
  //#region ../../node_modules/tar/node_modules/minizlib/constants.js
49478
- var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49647
+ var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49479
49648
  const realZlibConstants$1 = __require("zlib").constants || (
49480
49649
  /* istanbul ignore next */ { ZLIB_VERNUM: 4736 });
49481
49650
  module.exports = Object.freeze(Object.assign(Object.create(null), {
@@ -50023,7 +50192,7 @@ var require_minizlib = /* @__PURE__ */ __commonJSMin(((exports) => {
50023
50192
  const assert$2 = __require("assert");
50024
50193
  const Buffer$7 = __require("buffer").Buffer;
50025
50194
  const realZlib$1 = __require("zlib");
50026
- const constants = exports.constants = require_constants$6();
50195
+ const constants = exports.constants = require_constants$8();
50027
50196
  const Minipass = require_minipass$3();
50028
50197
  const OriginalBufferConcat = Buffer$7.concat;
50029
50198
  const _superWrite = Symbol("_superWrite");
@@ -52480,7 +52649,7 @@ var require_fs_minipass = /* @__PURE__ */ __commonJSMin(((exports) => {
52480
52649
  }));
52481
52650
  //#endregion
52482
52651
  //#region ../../node_modules/tar/lib/parse.js
52483
- var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
52652
+ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
52484
52653
  const warner = require_warn_mixin();
52485
52654
  const Header = require_header();
52486
52655
  const EE$10 = __require("events");
@@ -52828,7 +52997,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
52828
52997
  //#region ../../node_modules/tar/lib/list.js
52829
52998
  var require_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
52830
52999
  const hlo = require_high_level_opt();
52831
- const Parser = require_parse$2();
53000
+ const Parser = require_parse$4();
52832
53001
  const fs$29 = __require("fs");
52833
53002
  const fsm = require_fs_minipass();
52834
53003
  const path$28 = __require("path");
@@ -53713,7 +53882,7 @@ var require_get_write_flag = /* @__PURE__ */ __commonJSMin(((exports, module) =>
53713
53882
  //#region ../../node_modules/tar/lib/unpack.js
53714
53883
  var require_unpack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
53715
53884
  const assert = __require("assert");
53716
- const Parser = require_parse$2();
53885
+ const Parser = require_parse$4();
53717
53886
  const fs$23 = __require("fs");
53718
53887
  const fsm = require_fs_minipass();
53719
53888
  const path$23 = __require("path");
@@ -54371,7 +54540,7 @@ var require_tar$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
54371
54540
  exports.x = exports.extract = require_extract$1();
54372
54541
  exports.Pack = require_pack$1();
54373
54542
  exports.Unpack = require_unpack();
54374
- exports.Parse = require_parse$2();
54543
+ exports.Parse = require_parse$4();
54375
54544
  exports.ReadEntry = require_read_entry();
54376
54545
  exports.WriteEntry = require_write_entry();
54377
54546
  exports.Header = require_header();
@@ -64871,7 +65040,7 @@ var require__baseRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
64871
65040
  }));
64872
65041
  //#endregion
64873
65042
  //#region ../../node_modules/lodash/eq.js
64874
- var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
65043
+ var require_eq$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
64875
65044
  /**
64876
65045
  * Performs a
64877
65046
  * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -65004,7 +65173,7 @@ var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
65004
65173
  //#endregion
65005
65174
  //#region ../../node_modules/lodash/_isIterateeCall.js
65006
65175
  var require__isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
65007
- var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
65176
+ var eq = require_eq$2(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject = require_isObject();
65008
65177
  /**
65009
65178
  * Checks if the given arguments are from an iteratee call.
65010
65179
  *
@@ -65325,7 +65494,7 @@ var require_keysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
65325
65494
  //#endregion
65326
65495
  //#region ../../node_modules/lodash/defaults.js
65327
65496
  var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
65328
- var baseRest = require__baseRest(), eq = require_eq(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
65497
+ var baseRest = require__baseRest(), eq = require_eq$2(), isIterateeCall = require__isIterateeCall(), keysIn = require_keysIn();
65329
65498
  /** Used for built-in method references. */
65330
65499
  var objectProto = Object.prototype;
65331
65500
  /** Used to check objects for own properties. */
@@ -70947,7 +71116,7 @@ var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) =
70947
71116
  //#endregion
70948
71117
  //#region ../../node_modules/lodash/_assocIndexOf.js
70949
71118
  var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
70950
- var eq = require_eq();
71119
+ var eq = require_eq$2();
70951
71120
  /**
70952
71121
  * Gets the index at which the `key` is found in `array` of key-value pairs.
70953
71122
  *
@@ -78879,7 +79048,7 @@ var require_unix_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
78879
79048
  }));
78880
79049
  //#endregion
78881
79050
  //#region ../../node_modules/compress-commons/lib/archivers/zip/constants.js
78882
- var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
79051
+ var require_constants$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
78883
79052
  /**
78884
79053
  * node-compress-commons
78885
79054
  *
@@ -78954,7 +79123,7 @@ var require_zip_archive_entry = /* @__PURE__ */ __commonJSMin(((exports, module)
78954
79123
  var ArchiveEntry = require_archive_entry();
78955
79124
  var GeneralPurposeBit = require_general_purpose_bit();
78956
79125
  var UnixStat = require_unix_stat();
78957
- var constants = require_constants$5();
79126
+ var constants = require_constants$7();
78958
79127
  var zipUtil = require_util$3();
78959
79128
  var ZipArchiveEntry = module.exports = function(name) {
78960
79129
  if (!(this instanceof ZipArchiveEntry)) return new ZipArchiveEntry(name);
@@ -79588,7 +79757,7 @@ var require_zip_archive_output_stream = /* @__PURE__ */ __commonJSMin(((exports,
79588
79757
  var ArchiveOutputStream = require_archive_output_stream();
79589
79758
  require_zip_archive_entry();
79590
79759
  require_general_purpose_bit();
79591
- var constants = require_constants$5();
79760
+ var constants = require_constants$7();
79592
79761
  require_util$2();
79593
79762
  var zipUtil = require_util$3();
79594
79763
  var ZipArchiveOutputStream = module.exports = function(options) {
@@ -82085,7 +82254,7 @@ var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82085
82254
  }));
82086
82255
  //#endregion
82087
82256
  //#region ../../node_modules/tar-stream/constants.js
82088
- var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82257
+ var require_constants$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82089
82258
  const constants = {
82090
82259
  S_IFMT: 61440,
82091
82260
  S_IFDIR: 16384,
@@ -82105,7 +82274,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82105
82274
  var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82106
82275
  const { Readable, Writable, getStreamError } = require_streamx();
82107
82276
  const b4a = require_b4a();
82108
- const constants = require_constants$4();
82277
+ const constants = require_constants$6();
82109
82278
  const headers = require_headers$1();
82110
82279
  const DMODE = 493;
82111
82280
  const FMODE = 420;
@@ -83070,6 +83239,360 @@ var require_update_workspaces = /* @__PURE__ */ __commonJSMin(((exports, module)
83070
83239
  module.exports = updateWorkspaces;
83071
83240
  }));
83072
83241
  //#endregion
83242
+ //#region ../../node_modules/semver/internal/debug.js
83243
+ var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83244
+ module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
83245
+ }));
83246
+ //#endregion
83247
+ //#region ../../node_modules/semver/internal/constants.js
83248
+ var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83249
+ const SEMVER_SPEC_VERSION = "2.0.0";
83250
+ const MAX_LENGTH = 256;
83251
+ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
83252
+ module.exports = {
83253
+ MAX_LENGTH,
83254
+ MAX_SAFE_COMPONENT_LENGTH: 16,
83255
+ MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
83256
+ MAX_SAFE_INTEGER,
83257
+ RELEASE_TYPES: [
83258
+ "major",
83259
+ "premajor",
83260
+ "minor",
83261
+ "preminor",
83262
+ "patch",
83263
+ "prepatch",
83264
+ "prerelease"
83265
+ ],
83266
+ SEMVER_SPEC_VERSION,
83267
+ FLAG_INCLUDE_PRERELEASE: 1,
83268
+ FLAG_LOOSE: 2
83269
+ };
83270
+ }));
83271
+ //#endregion
83272
+ //#region ../../node_modules/semver/internal/re.js
83273
+ var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83274
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$5();
83275
+ const debug = require_debug$1();
83276
+ exports = module.exports = {};
83277
+ const re = exports.re = [];
83278
+ const safeRe = exports.safeRe = [];
83279
+ const src = exports.src = [];
83280
+ const safeSrc = exports.safeSrc = [];
83281
+ const t = exports.t = {};
83282
+ let R = 0;
83283
+ const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
83284
+ const safeRegexReplacements = [
83285
+ ["\\s", 1],
83286
+ ["\\d", MAX_LENGTH],
83287
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
83288
+ ];
83289
+ const makeSafeRegex = (value) => {
83290
+ for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
83291
+ return value;
83292
+ };
83293
+ const createToken = (name, value, isGlobal) => {
83294
+ const safe = makeSafeRegex(value);
83295
+ const index = R++;
83296
+ debug(name, index, value);
83297
+ t[name] = index;
83298
+ src[index] = value;
83299
+ safeSrc[index] = safe;
83300
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
83301
+ safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
83302
+ };
83303
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
83304
+ createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
83305
+ createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
83306
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
83307
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
83308
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
83309
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
83310
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
83311
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
83312
+ createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
83313
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
83314
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
83315
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
83316
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
83317
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
83318
+ createToken("GTLT", "((?:<|>)?=?)");
83319
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
83320
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
83321
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
83322
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
83323
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
83324
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
83325
+ createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
83326
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
83327
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
83328
+ createToken("COERCERTL", src[t.COERCE], true);
83329
+ createToken("COERCERTLFULL", src[t.COERCEFULL], true);
83330
+ createToken("LONETILDE", "(?:~>?)");
83331
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
83332
+ exports.tildeTrimReplace = "$1~";
83333
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
83334
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
83335
+ createToken("LONECARET", "(?:\\^)");
83336
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
83337
+ exports.caretTrimReplace = "$1^";
83338
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
83339
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
83340
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
83341
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
83342
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
83343
+ exports.comparatorTrimReplace = "$1$2$3";
83344
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
83345
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
83346
+ createToken("STAR", "(<|>)?=?\\s*\\*");
83347
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
83348
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
83349
+ }));
83350
+ //#endregion
83351
+ //#region ../../node_modules/semver/internal/parse-options.js
83352
+ var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83353
+ const looseOption = Object.freeze({ loose: true });
83354
+ const emptyOpts = Object.freeze({});
83355
+ const parseOptions = (options) => {
83356
+ if (!options) return emptyOpts;
83357
+ if (typeof options !== "object") return looseOption;
83358
+ return options;
83359
+ };
83360
+ module.exports = parseOptions;
83361
+ }));
83362
+ //#endregion
83363
+ //#region ../../node_modules/semver/internal/identifiers.js
83364
+ var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83365
+ const numeric = /^[0-9]+$/;
83366
+ const compareIdentifiers = (a, b) => {
83367
+ if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
83368
+ const anum = numeric.test(a);
83369
+ const bnum = numeric.test(b);
83370
+ if (anum && bnum) {
83371
+ a = +a;
83372
+ b = +b;
83373
+ }
83374
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
83375
+ };
83376
+ const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
83377
+ module.exports = {
83378
+ compareIdentifiers,
83379
+ rcompareIdentifiers
83380
+ };
83381
+ }));
83382
+ //#endregion
83383
+ //#region ../../node_modules/semver/classes/semver.js
83384
+ var require_semver$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83385
+ const debug = require_debug$1();
83386
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$5();
83387
+ const { safeRe: re, t } = require_re$1();
83388
+ const parseOptions = require_parse_options$1();
83389
+ const { compareIdentifiers } = require_identifiers$1();
83390
+ module.exports = class SemVer {
83391
+ constructor(version, options) {
83392
+ options = parseOptions(options);
83393
+ if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
83394
+ else version = version.version;
83395
+ else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
83396
+ if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
83397
+ debug("SemVer", version, options);
83398
+ this.options = options;
83399
+ this.loose = !!options.loose;
83400
+ this.includePrerelease = !!options.includePrerelease;
83401
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
83402
+ if (!m) throw new TypeError(`Invalid Version: ${version}`);
83403
+ this.raw = version;
83404
+ this.major = +m[1];
83405
+ this.minor = +m[2];
83406
+ this.patch = +m[3];
83407
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
83408
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
83409
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
83410
+ if (!m[4]) this.prerelease = [];
83411
+ else this.prerelease = m[4].split(".").map((id) => {
83412
+ if (/^[0-9]+$/.test(id)) {
83413
+ const num = +id;
83414
+ if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
83415
+ }
83416
+ return id;
83417
+ });
83418
+ this.build = m[5] ? m[5].split(".") : [];
83419
+ this.format();
83420
+ }
83421
+ format() {
83422
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
83423
+ if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
83424
+ return this.version;
83425
+ }
83426
+ toString() {
83427
+ return this.version;
83428
+ }
83429
+ compare(other) {
83430
+ debug("SemVer.compare", this.version, this.options, other);
83431
+ if (!(other instanceof SemVer)) {
83432
+ if (typeof other === "string" && other === this.version) return 0;
83433
+ other = new SemVer(other, this.options);
83434
+ }
83435
+ if (other.version === this.version) return 0;
83436
+ return this.compareMain(other) || this.comparePre(other);
83437
+ }
83438
+ compareMain(other) {
83439
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
83440
+ if (this.major < other.major) return -1;
83441
+ if (this.major > other.major) return 1;
83442
+ if (this.minor < other.minor) return -1;
83443
+ if (this.minor > other.minor) return 1;
83444
+ if (this.patch < other.patch) return -1;
83445
+ if (this.patch > other.patch) return 1;
83446
+ return 0;
83447
+ }
83448
+ comparePre(other) {
83449
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
83450
+ if (this.prerelease.length && !other.prerelease.length) return -1;
83451
+ else if (!this.prerelease.length && other.prerelease.length) return 1;
83452
+ else if (!this.prerelease.length && !other.prerelease.length) return 0;
83453
+ let i = 0;
83454
+ do {
83455
+ const a = this.prerelease[i];
83456
+ const b = other.prerelease[i];
83457
+ debug("prerelease compare", i, a, b);
83458
+ if (a === void 0 && b === void 0) return 0;
83459
+ else if (b === void 0) return 1;
83460
+ else if (a === void 0) return -1;
83461
+ else if (a === b) continue;
83462
+ else return compareIdentifiers(a, b);
83463
+ } while (++i);
83464
+ }
83465
+ compareBuild(other) {
83466
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
83467
+ let i = 0;
83468
+ do {
83469
+ const a = this.build[i];
83470
+ const b = other.build[i];
83471
+ debug("build compare", i, a, b);
83472
+ if (a === void 0 && b === void 0) return 0;
83473
+ else if (b === void 0) return 1;
83474
+ else if (a === void 0) return -1;
83475
+ else if (a === b) continue;
83476
+ else return compareIdentifiers(a, b);
83477
+ } while (++i);
83478
+ }
83479
+ inc(release, identifier, identifierBase) {
83480
+ if (release.startsWith("pre")) {
83481
+ if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
83482
+ if (identifier) {
83483
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
83484
+ if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
83485
+ }
83486
+ }
83487
+ switch (release) {
83488
+ case "premajor":
83489
+ this.prerelease.length = 0;
83490
+ this.patch = 0;
83491
+ this.minor = 0;
83492
+ this.major++;
83493
+ this.inc("pre", identifier, identifierBase);
83494
+ break;
83495
+ case "preminor":
83496
+ this.prerelease.length = 0;
83497
+ this.patch = 0;
83498
+ this.minor++;
83499
+ this.inc("pre", identifier, identifierBase);
83500
+ break;
83501
+ case "prepatch":
83502
+ this.prerelease.length = 0;
83503
+ this.inc("patch", identifier, identifierBase);
83504
+ this.inc("pre", identifier, identifierBase);
83505
+ break;
83506
+ case "prerelease":
83507
+ if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
83508
+ this.inc("pre", identifier, identifierBase);
83509
+ break;
83510
+ case "release":
83511
+ if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
83512
+ this.prerelease.length = 0;
83513
+ break;
83514
+ case "major":
83515
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
83516
+ this.minor = 0;
83517
+ this.patch = 0;
83518
+ this.prerelease = [];
83519
+ break;
83520
+ case "minor":
83521
+ if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
83522
+ this.patch = 0;
83523
+ this.prerelease = [];
83524
+ break;
83525
+ case "patch":
83526
+ if (this.prerelease.length === 0) this.patch++;
83527
+ this.prerelease = [];
83528
+ break;
83529
+ case "pre": {
83530
+ const base = Number(identifierBase) ? 1 : 0;
83531
+ if (this.prerelease.length === 0) this.prerelease = [base];
83532
+ else {
83533
+ let i = this.prerelease.length;
83534
+ while (--i >= 0) if (typeof this.prerelease[i] === "number") {
83535
+ this.prerelease[i]++;
83536
+ i = -2;
83537
+ }
83538
+ if (i === -1) {
83539
+ if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
83540
+ this.prerelease.push(base);
83541
+ }
83542
+ }
83543
+ if (identifier) {
83544
+ let prerelease = [identifier, base];
83545
+ if (identifierBase === false) prerelease = [identifier];
83546
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
83547
+ if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
83548
+ } else this.prerelease = prerelease;
83549
+ }
83550
+ break;
83551
+ }
83552
+ default: throw new Error(`invalid increment argument: ${release}`);
83553
+ }
83554
+ this.raw = this.format();
83555
+ if (this.build.length) this.raw += `+${this.build.join(".")}`;
83556
+ return this;
83557
+ }
83558
+ };
83559
+ }));
83560
+ //#endregion
83561
+ //#region ../../node_modules/semver/functions/parse.js
83562
+ var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83563
+ const SemVer = require_semver$3();
83564
+ const parse = (version, options, throwErrors = false) => {
83565
+ if (version instanceof SemVer) return version;
83566
+ try {
83567
+ return new SemVer(version, options);
83568
+ } catch (er) {
83569
+ if (!throwErrors) return null;
83570
+ throw er;
83571
+ }
83572
+ };
83573
+ module.exports = parse;
83574
+ }));
83575
+ //#endregion
83576
+ //#region ../../node_modules/semver/functions/valid.js
83577
+ var require_valid$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83578
+ const parse = require_parse$3();
83579
+ const valid = (version, options) => {
83580
+ const v = parse(version, options);
83581
+ return v ? v.version : null;
83582
+ };
83583
+ module.exports = valid;
83584
+ }));
83585
+ //#endregion
83586
+ //#region ../../node_modules/semver/functions/clean.js
83587
+ var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83588
+ const parse = require_parse$3();
83589
+ const clean = (version, options) => {
83590
+ const s = parse(version.trim().replace(/^[=v]+/, ""), options);
83591
+ return s ? s.version : null;
83592
+ };
83593
+ module.exports = clean;
83594
+ }));
83595
+ //#endregion
83073
83596
  //#region ../../node_modules/proc-log/lib/index.js
83074
83597
  var require_lib$29 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83075
83598
  module.exports = {
@@ -88568,7 +89091,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88568
89091
  }));
88569
89092
  //#endregion
88570
89093
  //#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/parse.js
88571
- var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89094
+ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88572
89095
  module.exports = function(tokens) {
88573
89096
  var index = 0;
88574
89097
  function hasMore() {
@@ -88659,7 +89182,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88659
89182
  //#region ../../node_modules/@npmcli/package-json/node_modules/spdx-expression-parse/index.js
88660
89183
  var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88661
89184
  var scan = require_scan();
88662
- var parse = require_parse$1();
89185
+ var parse = require_parse$2();
88663
89186
  module.exports = function(source) {
88664
89187
  return parse(scan(source));
88665
89188
  };
@@ -89867,9 +90390,1026 @@ var require_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89867
90390
  };
89868
90391
  }));
89869
90392
  //#endregion
90393
+ //#region ../../node_modules/semver/functions/inc.js
90394
+ var require_inc$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90395
+ const SemVer = require_semver$3();
90396
+ const inc = (version, release, options, identifier, identifierBase) => {
90397
+ if (typeof options === "string") {
90398
+ identifierBase = identifier;
90399
+ identifier = options;
90400
+ options = void 0;
90401
+ }
90402
+ try {
90403
+ return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
90404
+ } catch (er) {
90405
+ return null;
90406
+ }
90407
+ };
90408
+ module.exports = inc;
90409
+ }));
90410
+ //#endregion
90411
+ //#region ../../node_modules/semver/functions/diff.js
90412
+ var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90413
+ const parse = require_parse$3();
90414
+ const diff = (version1, version2) => {
90415
+ const v1 = parse(version1, null, true);
90416
+ const v2 = parse(version2, null, true);
90417
+ const comparison = v1.compare(v2);
90418
+ if (comparison === 0) return null;
90419
+ const v1Higher = comparison > 0;
90420
+ const highVersion = v1Higher ? v1 : v2;
90421
+ const lowVersion = v1Higher ? v2 : v1;
90422
+ const highHasPre = !!highVersion.prerelease.length;
90423
+ if (!!lowVersion.prerelease.length && !highHasPre) {
90424
+ if (!lowVersion.patch && !lowVersion.minor) return "major";
90425
+ if (lowVersion.compareMain(highVersion) === 0) {
90426
+ if (lowVersion.minor && !lowVersion.patch) return "minor";
90427
+ return "patch";
90428
+ }
90429
+ }
90430
+ const prefix = highHasPre ? "pre" : "";
90431
+ if (v1.major !== v2.major) return prefix + "major";
90432
+ if (v1.minor !== v2.minor) return prefix + "minor";
90433
+ if (v1.patch !== v2.patch) return prefix + "patch";
90434
+ return "prerelease";
90435
+ };
90436
+ module.exports = diff;
90437
+ }));
90438
+ //#endregion
90439
+ //#region ../../node_modules/semver/functions/major.js
90440
+ var require_major$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90441
+ const SemVer = require_semver$3();
90442
+ const major = (a, loose) => new SemVer(a, loose).major;
90443
+ module.exports = major;
90444
+ }));
90445
+ //#endregion
90446
+ //#region ../../node_modules/semver/functions/minor.js
90447
+ var require_minor$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90448
+ const SemVer = require_semver$3();
90449
+ const minor = (a, loose) => new SemVer(a, loose).minor;
90450
+ module.exports = minor;
90451
+ }));
90452
+ //#endregion
90453
+ //#region ../../node_modules/semver/functions/patch.js
90454
+ var require_patch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90455
+ const SemVer = require_semver$3();
90456
+ const patch = (a, loose) => new SemVer(a, loose).patch;
90457
+ module.exports = patch;
90458
+ }));
90459
+ //#endregion
90460
+ //#region ../../node_modules/semver/functions/prerelease.js
90461
+ var require_prerelease$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90462
+ const parse = require_parse$3();
90463
+ const prerelease = (version, options) => {
90464
+ const parsed = parse(version, options);
90465
+ return parsed && parsed.prerelease.length ? parsed.prerelease : null;
90466
+ };
90467
+ module.exports = prerelease;
90468
+ }));
90469
+ //#endregion
90470
+ //#region ../../node_modules/semver/functions/compare.js
90471
+ var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90472
+ const SemVer = require_semver$3();
90473
+ const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
90474
+ module.exports = compare;
90475
+ }));
90476
+ //#endregion
90477
+ //#region ../../node_modules/semver/functions/rcompare.js
90478
+ var require_rcompare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90479
+ const compare = require_compare$1();
90480
+ const rcompare = (a, b, loose) => compare(b, a, loose);
90481
+ module.exports = rcompare;
90482
+ }));
90483
+ //#endregion
90484
+ //#region ../../node_modules/semver/functions/compare-loose.js
90485
+ var require_compare_loose$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90486
+ const compare = require_compare$1();
90487
+ const compareLoose = (a, b) => compare(a, b, true);
90488
+ module.exports = compareLoose;
90489
+ }));
90490
+ //#endregion
90491
+ //#region ../../node_modules/semver/functions/compare-build.js
90492
+ var require_compare_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90493
+ const SemVer = require_semver$3();
90494
+ const compareBuild = (a, b, loose) => {
90495
+ const versionA = new SemVer(a, loose);
90496
+ const versionB = new SemVer(b, loose);
90497
+ return versionA.compare(versionB) || versionA.compareBuild(versionB);
90498
+ };
90499
+ module.exports = compareBuild;
90500
+ }));
90501
+ //#endregion
90502
+ //#region ../../node_modules/semver/functions/sort.js
90503
+ var require_sort$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90504
+ const compareBuild = require_compare_build$1();
90505
+ const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
90506
+ module.exports = sort;
90507
+ }));
90508
+ //#endregion
90509
+ //#region ../../node_modules/semver/functions/rsort.js
90510
+ var require_rsort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90511
+ const compareBuild = require_compare_build$1();
90512
+ const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
90513
+ module.exports = rsort;
90514
+ }));
90515
+ //#endregion
90516
+ //#region ../../node_modules/semver/functions/gt.js
90517
+ var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90518
+ const compare = require_compare$1();
90519
+ const gt = (a, b, loose) => compare(a, b, loose) > 0;
90520
+ module.exports = gt;
90521
+ }));
90522
+ //#endregion
90523
+ //#region ../../node_modules/semver/functions/lt.js
90524
+ var require_lt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90525
+ const compare = require_compare$1();
90526
+ const lt = (a, b, loose) => compare(a, b, loose) < 0;
90527
+ module.exports = lt;
90528
+ }));
90529
+ //#endregion
90530
+ //#region ../../node_modules/semver/functions/eq.js
90531
+ var require_eq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90532
+ const compare = require_compare$1();
90533
+ const eq = (a, b, loose) => compare(a, b, loose) === 0;
90534
+ module.exports = eq;
90535
+ }));
90536
+ //#endregion
90537
+ //#region ../../node_modules/semver/functions/neq.js
90538
+ var require_neq$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90539
+ const compare = require_compare$1();
90540
+ const neq = (a, b, loose) => compare(a, b, loose) !== 0;
90541
+ module.exports = neq;
90542
+ }));
90543
+ //#endregion
90544
+ //#region ../../node_modules/semver/functions/gte.js
90545
+ var require_gte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90546
+ const compare = require_compare$1();
90547
+ const gte = (a, b, loose) => compare(a, b, loose) >= 0;
90548
+ module.exports = gte;
90549
+ }));
90550
+ //#endregion
90551
+ //#region ../../node_modules/semver/functions/lte.js
90552
+ var require_lte$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90553
+ const compare = require_compare$1();
90554
+ const lte = (a, b, loose) => compare(a, b, loose) <= 0;
90555
+ module.exports = lte;
90556
+ }));
90557
+ //#endregion
90558
+ //#region ../../node_modules/semver/functions/cmp.js
90559
+ var require_cmp$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90560
+ const eq = require_eq$1();
90561
+ const neq = require_neq$1();
90562
+ const gt = require_gt$1();
90563
+ const gte = require_gte$1();
90564
+ const lt = require_lt$1();
90565
+ const lte = require_lte$1();
90566
+ const cmp = (a, op, b, loose) => {
90567
+ switch (op) {
90568
+ case "===":
90569
+ if (typeof a === "object") a = a.version;
90570
+ if (typeof b === "object") b = b.version;
90571
+ return a === b;
90572
+ case "!==":
90573
+ if (typeof a === "object") a = a.version;
90574
+ if (typeof b === "object") b = b.version;
90575
+ return a !== b;
90576
+ case "":
90577
+ case "=":
90578
+ case "==": return eq(a, b, loose);
90579
+ case "!=": return neq(a, b, loose);
90580
+ case ">": return gt(a, b, loose);
90581
+ case ">=": return gte(a, b, loose);
90582
+ case "<": return lt(a, b, loose);
90583
+ case "<=": return lte(a, b, loose);
90584
+ default: throw new TypeError(`Invalid operator: ${op}`);
90585
+ }
90586
+ };
90587
+ module.exports = cmp;
90588
+ }));
90589
+ //#endregion
90590
+ //#region ../../node_modules/semver/functions/coerce.js
90591
+ var require_coerce$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90592
+ const SemVer = require_semver$3();
90593
+ const parse = require_parse$3();
90594
+ const { safeRe: re, t } = require_re$1();
90595
+ const coerce = (version, options) => {
90596
+ if (version instanceof SemVer) return version;
90597
+ if (typeof version === "number") version = String(version);
90598
+ if (typeof version !== "string") return null;
90599
+ options = options || {};
90600
+ let match = null;
90601
+ if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
90602
+ else {
90603
+ const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
90604
+ let next;
90605
+ while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
90606
+ if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
90607
+ coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
90608
+ }
90609
+ coerceRtlRegex.lastIndex = -1;
90610
+ }
90611
+ if (match === null) return null;
90612
+ const major = match[2];
90613
+ return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
90614
+ };
90615
+ module.exports = coerce;
90616
+ }));
90617
+ //#endregion
90618
+ //#region ../../node_modules/semver/functions/truncate.js
90619
+ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90620
+ const parse = require_parse$3();
90621
+ const constants = require_constants$5();
90622
+ const SemVer = require_semver$3();
90623
+ const truncate = (version, truncation, options) => {
90624
+ if (!constants.RELEASE_TYPES.includes(truncation)) return null;
90625
+ const clonedVersion = cloneInputVersion(version, options);
90626
+ return clonedVersion && doTruncation(clonedVersion, truncation);
90627
+ };
90628
+ const cloneInputVersion = (version, options) => {
90629
+ return parse(version instanceof SemVer ? version.version : version, options);
90630
+ };
90631
+ const doTruncation = (version, truncation) => {
90632
+ if (isPrerelease(truncation)) return version.version;
90633
+ version.prerelease = [];
90634
+ switch (truncation) {
90635
+ case "major":
90636
+ version.minor = 0;
90637
+ version.patch = 0;
90638
+ break;
90639
+ case "minor":
90640
+ version.patch = 0;
90641
+ break;
90642
+ }
90643
+ return version.format();
90644
+ };
90645
+ const isPrerelease = (type) => {
90646
+ return type.startsWith("pre");
90647
+ };
90648
+ module.exports = truncate;
90649
+ }));
90650
+ //#endregion
90651
+ //#region ../../node_modules/semver/internal/lrucache.js
90652
+ var require_lrucache$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90653
+ var LRUCache = class {
90654
+ constructor() {
90655
+ this.max = 1e3;
90656
+ this.map = /* @__PURE__ */ new Map();
90657
+ }
90658
+ get(key) {
90659
+ const value = this.map.get(key);
90660
+ if (value === void 0) return;
90661
+ else {
90662
+ this.map.delete(key);
90663
+ this.map.set(key, value);
90664
+ return value;
90665
+ }
90666
+ }
90667
+ delete(key) {
90668
+ return this.map.delete(key);
90669
+ }
90670
+ set(key, value) {
90671
+ if (!this.delete(key) && value !== void 0) {
90672
+ if (this.map.size >= this.max) {
90673
+ const firstKey = this.map.keys().next().value;
90674
+ this.delete(firstKey);
90675
+ }
90676
+ this.map.set(key, value);
90677
+ }
90678
+ return this;
90679
+ }
90680
+ };
90681
+ module.exports = LRUCache;
90682
+ }));
90683
+ //#endregion
90684
+ //#region ../../node_modules/semver/classes/range.js
90685
+ var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90686
+ const SPACE_CHARACTERS = /\s+/g;
90687
+ module.exports = class Range {
90688
+ constructor(range, options) {
90689
+ options = parseOptions(options);
90690
+ if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
90691
+ else return new Range(range.raw, options);
90692
+ if (range instanceof Comparator) {
90693
+ this.raw = range.value;
90694
+ this.set = [[range]];
90695
+ this.formatted = void 0;
90696
+ return this;
90697
+ }
90698
+ this.options = options;
90699
+ this.loose = !!options.loose;
90700
+ this.includePrerelease = !!options.includePrerelease;
90701
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
90702
+ this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
90703
+ if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
90704
+ if (this.set.length > 1) {
90705
+ const first = this.set[0];
90706
+ this.set = this.set.filter((c) => !isNullSet(c[0]));
90707
+ if (this.set.length === 0) this.set = [first];
90708
+ else if (this.set.length > 1) {
90709
+ for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
90710
+ this.set = [c];
90711
+ break;
90712
+ }
90713
+ }
90714
+ }
90715
+ this.formatted = void 0;
90716
+ }
90717
+ get range() {
90718
+ if (this.formatted === void 0) {
90719
+ this.formatted = "";
90720
+ for (let i = 0; i < this.set.length; i++) {
90721
+ if (i > 0) this.formatted += "||";
90722
+ const comps = this.set[i];
90723
+ for (let k = 0; k < comps.length; k++) {
90724
+ if (k > 0) this.formatted += " ";
90725
+ this.formatted += comps[k].toString().trim();
90726
+ }
90727
+ }
90728
+ }
90729
+ return this.formatted;
90730
+ }
90731
+ format() {
90732
+ return this.range;
90733
+ }
90734
+ toString() {
90735
+ return this.range;
90736
+ }
90737
+ parseRange(range) {
90738
+ const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
90739
+ const cached = cache.get(memoKey);
90740
+ if (cached) return cached;
90741
+ const loose = this.options.loose;
90742
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
90743
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
90744
+ debug("hyphen replace", range);
90745
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
90746
+ debug("comparator trim", range);
90747
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
90748
+ debug("tilde trim", range);
90749
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
90750
+ debug("caret trim", range);
90751
+ let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
90752
+ if (loose) rangeList = rangeList.filter((comp) => {
90753
+ debug("loose invalid filter", comp, this.options);
90754
+ return !!comp.match(re[t.COMPARATORLOOSE]);
90755
+ });
90756
+ debug("range list", rangeList);
90757
+ const rangeMap = /* @__PURE__ */ new Map();
90758
+ const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
90759
+ for (const comp of comparators) {
90760
+ if (isNullSet(comp)) return [comp];
90761
+ rangeMap.set(comp.value, comp);
90762
+ }
90763
+ if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
90764
+ const result = [...rangeMap.values()];
90765
+ cache.set(memoKey, result);
90766
+ return result;
90767
+ }
90768
+ intersects(range, options) {
90769
+ if (!(range instanceof Range)) throw new TypeError("a Range is required");
90770
+ return this.set.some((thisComparators) => {
90771
+ return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
90772
+ return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
90773
+ return rangeComparators.every((rangeComparator) => {
90774
+ return thisComparator.intersects(rangeComparator, options);
90775
+ });
90776
+ });
90777
+ });
90778
+ });
90779
+ }
90780
+ test(version) {
90781
+ if (!version) return false;
90782
+ if (typeof version === "string") try {
90783
+ version = new SemVer(version, this.options);
90784
+ } catch (er) {
90785
+ return false;
90786
+ }
90787
+ for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
90788
+ return false;
90789
+ }
90790
+ };
90791
+ const cache = new (require_lrucache$1())();
90792
+ const parseOptions = require_parse_options$1();
90793
+ const Comparator = require_comparator$1();
90794
+ const debug = require_debug$1();
90795
+ const SemVer = require_semver$3();
90796
+ const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re$1();
90797
+ const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$5();
90798
+ const isNullSet = (c) => c.value === "<0.0.0-0";
90799
+ const isAny = (c) => c.value === "";
90800
+ const isSatisfiable = (comparators, options) => {
90801
+ let result = true;
90802
+ const remainingComparators = comparators.slice();
90803
+ let testComparator = remainingComparators.pop();
90804
+ while (result && remainingComparators.length) {
90805
+ result = remainingComparators.every((otherComparator) => {
90806
+ return testComparator.intersects(otherComparator, options);
90807
+ });
90808
+ testComparator = remainingComparators.pop();
90809
+ }
90810
+ return result;
90811
+ };
90812
+ const parseComparator = (comp, options) => {
90813
+ comp = comp.replace(re[t.BUILD], "");
90814
+ debug("comp", comp, options);
90815
+ comp = replaceCarets(comp, options);
90816
+ debug("caret", comp);
90817
+ comp = replaceTildes(comp, options);
90818
+ debug("tildes", comp);
90819
+ comp = replaceXRanges(comp, options);
90820
+ debug("xrange", comp);
90821
+ comp = replaceStars(comp, options);
90822
+ debug("stars", comp);
90823
+ return comp;
90824
+ };
90825
+ const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
90826
+ const replaceTildes = (comp, options) => {
90827
+ return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
90828
+ };
90829
+ const replaceTilde = (comp, options) => {
90830
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
90831
+ return comp.replace(r, (_, M, m, p, pr) => {
90832
+ debug("tilde", comp, _, M, m, p, pr);
90833
+ let ret;
90834
+ if (isX(M)) ret = "";
90835
+ else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
90836
+ else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
90837
+ else if (pr) {
90838
+ debug("replaceTilde pr", pr);
90839
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
90840
+ } else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
90841
+ debug("tilde return", ret);
90842
+ return ret;
90843
+ });
90844
+ };
90845
+ const replaceCarets = (comp, options) => {
90846
+ return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
90847
+ };
90848
+ const replaceCaret = (comp, options) => {
90849
+ debug("caret", comp, options);
90850
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
90851
+ const z = options.includePrerelease ? "-0" : "";
90852
+ return comp.replace(r, (_, M, m, p, pr) => {
90853
+ debug("caret", comp, _, M, m, p, pr);
90854
+ let ret;
90855
+ if (isX(M)) ret = "";
90856
+ else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
90857
+ else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
90858
+ else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
90859
+ else if (pr) {
90860
+ debug("replaceCaret pr", pr);
90861
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
90862
+ else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
90863
+ else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
90864
+ } else {
90865
+ debug("no pr");
90866
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
90867
+ else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
90868
+ else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
90869
+ }
90870
+ debug("caret return", ret);
90871
+ return ret;
90872
+ });
90873
+ };
90874
+ const replaceXRanges = (comp, options) => {
90875
+ debug("replaceXRanges", comp, options);
90876
+ return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
90877
+ };
90878
+ const replaceXRange = (comp, options) => {
90879
+ comp = comp.trim();
90880
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
90881
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
90882
+ debug("xRange", comp, ret, gtlt, M, m, p, pr);
90883
+ const xM = isX(M);
90884
+ const xm = xM || isX(m);
90885
+ const xp = xm || isX(p);
90886
+ const anyX = xp;
90887
+ if (gtlt === "=" && anyX) gtlt = "";
90888
+ pr = options.includePrerelease ? "-0" : "";
90889
+ if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
90890
+ else ret = "*";
90891
+ else if (gtlt && anyX) {
90892
+ if (xm) m = 0;
90893
+ p = 0;
90894
+ if (gtlt === ">") {
90895
+ gtlt = ">=";
90896
+ if (xm) {
90897
+ M = +M + 1;
90898
+ m = 0;
90899
+ p = 0;
90900
+ } else {
90901
+ m = +m + 1;
90902
+ p = 0;
90903
+ }
90904
+ } else if (gtlt === "<=") {
90905
+ gtlt = "<";
90906
+ if (xm) M = +M + 1;
90907
+ else m = +m + 1;
90908
+ }
90909
+ if (gtlt === "<") pr = "-0";
90910
+ ret = `${gtlt + M}.${m}.${p}${pr}`;
90911
+ } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
90912
+ else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
90913
+ debug("xRange return", ret);
90914
+ return ret;
90915
+ });
90916
+ };
90917
+ const replaceStars = (comp, options) => {
90918
+ debug("replaceStars", comp, options);
90919
+ return comp.trim().replace(re[t.STAR], "");
90920
+ };
90921
+ const replaceGTE0 = (comp, options) => {
90922
+ debug("replaceGTE0", comp, options);
90923
+ return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
90924
+ };
90925
+ const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
90926
+ if (isX(fM)) from = "";
90927
+ else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
90928
+ else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
90929
+ else if (fpr) from = `>=${from}`;
90930
+ else from = `>=${from}${incPr ? "-0" : ""}`;
90931
+ if (isX(tM)) to = "";
90932
+ else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
90933
+ else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
90934
+ else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
90935
+ else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
90936
+ else to = `<=${to}`;
90937
+ return `${from} ${to}`.trim();
90938
+ };
90939
+ const testSet = (set, version, options) => {
90940
+ for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
90941
+ if (version.prerelease.length && !options.includePrerelease) {
90942
+ for (let i = 0; i < set.length; i++) {
90943
+ debug(set[i].semver);
90944
+ if (set[i].semver === Comparator.ANY) continue;
90945
+ if (set[i].semver.prerelease.length > 0) {
90946
+ const allowed = set[i].semver;
90947
+ if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
90948
+ }
90949
+ }
90950
+ return false;
90951
+ }
90952
+ return true;
90953
+ };
90954
+ }));
90955
+ //#endregion
90956
+ //#region ../../node_modules/semver/classes/comparator.js
90957
+ var require_comparator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90958
+ const ANY = Symbol("SemVer ANY");
90959
+ module.exports = class Comparator {
90960
+ static get ANY() {
90961
+ return ANY;
90962
+ }
90963
+ constructor(comp, options) {
90964
+ options = parseOptions(options);
90965
+ if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
90966
+ else comp = comp.value;
90967
+ comp = comp.trim().split(/\s+/).join(" ");
90968
+ debug("comparator", comp, options);
90969
+ this.options = options;
90970
+ this.loose = !!options.loose;
90971
+ this.parse(comp);
90972
+ if (this.semver === ANY) this.value = "";
90973
+ else this.value = this.operator + this.semver.version;
90974
+ debug("comp", this);
90975
+ }
90976
+ parse(comp) {
90977
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
90978
+ const m = comp.match(r);
90979
+ if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
90980
+ this.operator = m[1] !== void 0 ? m[1] : "";
90981
+ if (this.operator === "=") this.operator = "";
90982
+ if (!m[2]) this.semver = ANY;
90983
+ else this.semver = new SemVer(m[2], this.options.loose);
90984
+ }
90985
+ toString() {
90986
+ return this.value;
90987
+ }
90988
+ test(version) {
90989
+ debug("Comparator.test", version, this.options.loose);
90990
+ if (this.semver === ANY || version === ANY) return true;
90991
+ if (typeof version === "string") try {
90992
+ version = new SemVer(version, this.options);
90993
+ } catch (er) {
90994
+ return false;
90995
+ }
90996
+ return cmp(version, this.operator, this.semver, this.options);
90997
+ }
90998
+ intersects(comp, options) {
90999
+ if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
91000
+ if (this.operator === "") {
91001
+ if (this.value === "") return true;
91002
+ return new Range(comp.value, options).test(this.value);
91003
+ } else if (comp.operator === "") {
91004
+ if (comp.value === "") return true;
91005
+ return new Range(this.value, options).test(comp.semver);
91006
+ }
91007
+ options = parseOptions(options);
91008
+ if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
91009
+ if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
91010
+ if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
91011
+ if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
91012
+ if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
91013
+ if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
91014
+ if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
91015
+ return false;
91016
+ }
91017
+ };
91018
+ const parseOptions = require_parse_options$1();
91019
+ const { safeRe: re, t } = require_re$1();
91020
+ const cmp = require_cmp$1();
91021
+ const debug = require_debug$1();
91022
+ const SemVer = require_semver$3();
91023
+ const Range = require_range$1();
91024
+ }));
91025
+ //#endregion
91026
+ //#region ../../node_modules/semver/functions/satisfies.js
91027
+ var require_satisfies$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91028
+ const Range = require_range$1();
91029
+ const satisfies = (version, range, options) => {
91030
+ try {
91031
+ range = new Range(range, options);
91032
+ } catch (er) {
91033
+ return false;
91034
+ }
91035
+ return range.test(version);
91036
+ };
91037
+ module.exports = satisfies;
91038
+ }));
91039
+ //#endregion
91040
+ //#region ../../node_modules/semver/ranges/to-comparators.js
91041
+ var require_to_comparators$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91042
+ const Range = require_range$1();
91043
+ const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
91044
+ module.exports = toComparators;
91045
+ }));
91046
+ //#endregion
91047
+ //#region ../../node_modules/semver/ranges/max-satisfying.js
91048
+ var require_max_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91049
+ const SemVer = require_semver$3();
91050
+ const Range = require_range$1();
91051
+ const maxSatisfying = (versions, range, options) => {
91052
+ let max = null;
91053
+ let maxSV = null;
91054
+ let rangeObj = null;
91055
+ try {
91056
+ rangeObj = new Range(range, options);
91057
+ } catch (er) {
91058
+ return null;
91059
+ }
91060
+ versions.forEach((v) => {
91061
+ if (rangeObj.test(v)) {
91062
+ if (!max || maxSV.compare(v) === -1) {
91063
+ max = v;
91064
+ maxSV = new SemVer(max, options);
91065
+ }
91066
+ }
91067
+ });
91068
+ return max;
91069
+ };
91070
+ module.exports = maxSatisfying;
91071
+ }));
91072
+ //#endregion
91073
+ //#region ../../node_modules/semver/ranges/min-satisfying.js
91074
+ var require_min_satisfying$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91075
+ const SemVer = require_semver$3();
91076
+ const Range = require_range$1();
91077
+ const minSatisfying = (versions, range, options) => {
91078
+ let min = null;
91079
+ let minSV = null;
91080
+ let rangeObj = null;
91081
+ try {
91082
+ rangeObj = new Range(range, options);
91083
+ } catch (er) {
91084
+ return null;
91085
+ }
91086
+ versions.forEach((v) => {
91087
+ if (rangeObj.test(v)) {
91088
+ if (!min || minSV.compare(v) === 1) {
91089
+ min = v;
91090
+ minSV = new SemVer(min, options);
91091
+ }
91092
+ }
91093
+ });
91094
+ return min;
91095
+ };
91096
+ module.exports = minSatisfying;
91097
+ }));
91098
+ //#endregion
91099
+ //#region ../../node_modules/semver/ranges/min-version.js
91100
+ var require_min_version$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91101
+ const SemVer = require_semver$3();
91102
+ const Range = require_range$1();
91103
+ const gt = require_gt$1();
91104
+ const minVersion = (range, loose) => {
91105
+ range = new Range(range, loose);
91106
+ let minver = new SemVer("0.0.0");
91107
+ if (range.test(minver)) return minver;
91108
+ minver = new SemVer("0.0.0-0");
91109
+ if (range.test(minver)) return minver;
91110
+ minver = null;
91111
+ for (let i = 0; i < range.set.length; ++i) {
91112
+ const comparators = range.set[i];
91113
+ let setMin = null;
91114
+ comparators.forEach((comparator) => {
91115
+ const compver = new SemVer(comparator.semver.version);
91116
+ switch (comparator.operator) {
91117
+ case ">":
91118
+ if (compver.prerelease.length === 0) compver.patch++;
91119
+ else compver.prerelease.push(0);
91120
+ compver.raw = compver.format();
91121
+ case "":
91122
+ case ">=":
91123
+ if (!setMin || gt(compver, setMin)) setMin = compver;
91124
+ break;
91125
+ case "<":
91126
+ case "<=": break;
91127
+ default: throw new Error(`Unexpected operation: ${comparator.operator}`);
91128
+ }
91129
+ });
91130
+ if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
91131
+ }
91132
+ if (minver && range.test(minver)) return minver;
91133
+ return null;
91134
+ };
91135
+ module.exports = minVersion;
91136
+ }));
91137
+ //#endregion
91138
+ //#region ../../node_modules/semver/ranges/valid.js
91139
+ var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91140
+ const Range = require_range$1();
91141
+ const validRange = (range, options) => {
91142
+ try {
91143
+ return new Range(range, options).range || "*";
91144
+ } catch (er) {
91145
+ return null;
91146
+ }
91147
+ };
91148
+ module.exports = validRange;
91149
+ }));
91150
+ //#endregion
91151
+ //#region ../../node_modules/semver/ranges/outside.js
91152
+ var require_outside$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91153
+ const SemVer = require_semver$3();
91154
+ const Comparator = require_comparator$1();
91155
+ const { ANY } = Comparator;
91156
+ const Range = require_range$1();
91157
+ const satisfies = require_satisfies$1();
91158
+ const gt = require_gt$1();
91159
+ const lt = require_lt$1();
91160
+ const lte = require_lte$1();
91161
+ const gte = require_gte$1();
91162
+ const outside = (version, range, hilo, options) => {
91163
+ version = new SemVer(version, options);
91164
+ range = new Range(range, options);
91165
+ let gtfn, ltefn, ltfn, comp, ecomp;
91166
+ switch (hilo) {
91167
+ case ">":
91168
+ gtfn = gt;
91169
+ ltefn = lte;
91170
+ ltfn = lt;
91171
+ comp = ">";
91172
+ ecomp = ">=";
91173
+ break;
91174
+ case "<":
91175
+ gtfn = lt;
91176
+ ltefn = gte;
91177
+ ltfn = gt;
91178
+ comp = "<";
91179
+ ecomp = "<=";
91180
+ break;
91181
+ default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
91182
+ }
91183
+ if (satisfies(version, range, options)) return false;
91184
+ for (let i = 0; i < range.set.length; ++i) {
91185
+ const comparators = range.set[i];
91186
+ let high = null;
91187
+ let low = null;
91188
+ comparators.forEach((comparator) => {
91189
+ if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
91190
+ high = high || comparator;
91191
+ low = low || comparator;
91192
+ if (gtfn(comparator.semver, high.semver, options)) high = comparator;
91193
+ else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
91194
+ });
91195
+ if (high.operator === comp || high.operator === ecomp) return false;
91196
+ if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
91197
+ else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
91198
+ }
91199
+ return true;
91200
+ };
91201
+ module.exports = outside;
91202
+ }));
91203
+ //#endregion
91204
+ //#region ../../node_modules/semver/ranges/gtr.js
91205
+ var require_gtr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91206
+ const outside = require_outside$1();
91207
+ const gtr = (version, range, options) => outside(version, range, ">", options);
91208
+ module.exports = gtr;
91209
+ }));
91210
+ //#endregion
91211
+ //#region ../../node_modules/semver/ranges/ltr.js
91212
+ var require_ltr$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91213
+ const outside = require_outside$1();
91214
+ const ltr = (version, range, options) => outside(version, range, "<", options);
91215
+ module.exports = ltr;
91216
+ }));
91217
+ //#endregion
91218
+ //#region ../../node_modules/semver/ranges/intersects.js
91219
+ var require_intersects$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91220
+ const Range = require_range$1();
91221
+ const intersects = (r1, r2, options) => {
91222
+ r1 = new Range(r1, options);
91223
+ r2 = new Range(r2, options);
91224
+ return r1.intersects(r2, options);
91225
+ };
91226
+ module.exports = intersects;
91227
+ }));
91228
+ //#endregion
91229
+ //#region ../../node_modules/semver/ranges/simplify.js
91230
+ var require_simplify$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91231
+ const satisfies = require_satisfies$1();
91232
+ const compare = require_compare$1();
91233
+ module.exports = (versions, range, options) => {
91234
+ const set = [];
91235
+ let first = null;
91236
+ let prev = null;
91237
+ const v = versions.sort((a, b) => compare(a, b, options));
91238
+ for (const version of v) if (satisfies(version, range, options)) {
91239
+ prev = version;
91240
+ if (!first) first = version;
91241
+ } else {
91242
+ if (prev) set.push([first, prev]);
91243
+ prev = null;
91244
+ first = null;
91245
+ }
91246
+ if (first) set.push([first, null]);
91247
+ const ranges = [];
91248
+ for (const [min, max] of set) if (min === max) ranges.push(min);
91249
+ else if (!max && min === v[0]) ranges.push("*");
91250
+ else if (!max) ranges.push(`>=${min}`);
91251
+ else if (min === v[0]) ranges.push(`<=${max}`);
91252
+ else ranges.push(`${min} - ${max}`);
91253
+ const simplified = ranges.join(" || ");
91254
+ const original = typeof range.raw === "string" ? range.raw : String(range);
91255
+ return simplified.length < original.length ? simplified : range;
91256
+ };
91257
+ }));
91258
+ //#endregion
91259
+ //#region ../../node_modules/semver/ranges/subset.js
91260
+ var require_subset$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91261
+ const Range = require_range$1();
91262
+ const Comparator = require_comparator$1();
91263
+ const { ANY } = Comparator;
91264
+ const satisfies = require_satisfies$1();
91265
+ const compare = require_compare$1();
91266
+ const subset = (sub, dom, options = {}) => {
91267
+ if (sub === dom) return true;
91268
+ sub = new Range(sub, options);
91269
+ dom = new Range(dom, options);
91270
+ let sawNonNull = false;
91271
+ OUTER: for (const simpleSub of sub.set) {
91272
+ for (const simpleDom of dom.set) {
91273
+ const isSub = simpleSubset(simpleSub, simpleDom, options);
91274
+ sawNonNull = sawNonNull || isSub !== null;
91275
+ if (isSub) continue OUTER;
91276
+ }
91277
+ if (sawNonNull) return false;
91278
+ }
91279
+ return true;
91280
+ };
91281
+ const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
91282
+ const minimumVersion = [new Comparator(">=0.0.0")];
91283
+ const simpleSubset = (sub, dom, options) => {
91284
+ if (sub === dom) return true;
91285
+ if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
91286
+ else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
91287
+ else sub = minimumVersion;
91288
+ if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
91289
+ else dom = minimumVersion;
91290
+ const eqSet = /* @__PURE__ */ new Set();
91291
+ let gt, lt;
91292
+ for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
91293
+ else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
91294
+ else eqSet.add(c.semver);
91295
+ if (eqSet.size > 1) return null;
91296
+ let gtltComp;
91297
+ if (gt && lt) {
91298
+ gtltComp = compare(gt.semver, lt.semver, options);
91299
+ if (gtltComp > 0) return null;
91300
+ else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
91301
+ }
91302
+ for (const eq of eqSet) {
91303
+ if (gt && !satisfies(eq, String(gt), options)) return null;
91304
+ if (lt && !satisfies(eq, String(lt), options)) return null;
91305
+ for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
91306
+ return true;
91307
+ }
91308
+ let higher, lower;
91309
+ let hasDomLT, hasDomGT;
91310
+ let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
91311
+ let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
91312
+ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
91313
+ for (const c of dom) {
91314
+ hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
91315
+ hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
91316
+ if (gt) {
91317
+ if (needDomGTPre) {
91318
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
91319
+ }
91320
+ if (c.operator === ">" || c.operator === ">=") {
91321
+ higher = higherGT(gt, c, options);
91322
+ if (higher === c && higher !== gt) return false;
91323
+ } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
91324
+ }
91325
+ if (lt) {
91326
+ if (needDomLTPre) {
91327
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
91328
+ }
91329
+ if (c.operator === "<" || c.operator === "<=") {
91330
+ lower = lowerLT(lt, c, options);
91331
+ if (lower === c && lower !== lt) return false;
91332
+ } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
91333
+ }
91334
+ if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
91335
+ }
91336
+ if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
91337
+ if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
91338
+ if (needDomGTPre || needDomLTPre) return false;
91339
+ return true;
91340
+ };
91341
+ const higherGT = (a, b, options) => {
91342
+ if (!a) return b;
91343
+ const comp = compare(a.semver, b.semver, options);
91344
+ return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
91345
+ };
91346
+ const lowerLT = (a, b, options) => {
91347
+ if (!a) return b;
91348
+ const comp = compare(a.semver, b.semver, options);
91349
+ return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
91350
+ };
91351
+ module.exports = subset;
91352
+ }));
91353
+ //#endregion
91354
+ //#region ../../node_modules/semver/index.js
91355
+ var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91356
+ const internalRe = require_re$1();
91357
+ const constants = require_constants$5();
91358
+ const SemVer = require_semver$3();
91359
+ const identifiers = require_identifiers$1();
91360
+ module.exports = {
91361
+ parse: require_parse$3(),
91362
+ valid: require_valid$3(),
91363
+ clean: require_clean$1(),
91364
+ inc: require_inc$1(),
91365
+ diff: require_diff$1(),
91366
+ major: require_major$1(),
91367
+ minor: require_minor$1(),
91368
+ patch: require_patch$1(),
91369
+ prerelease: require_prerelease$1(),
91370
+ compare: require_compare$1(),
91371
+ rcompare: require_rcompare$1(),
91372
+ compareLoose: require_compare_loose$1(),
91373
+ compareBuild: require_compare_build$1(),
91374
+ sort: require_sort$2(),
91375
+ rsort: require_rsort$1(),
91376
+ gt: require_gt$1(),
91377
+ lt: require_lt$1(),
91378
+ eq: require_eq$1(),
91379
+ neq: require_neq$1(),
91380
+ gte: require_gte$1(),
91381
+ lte: require_lte$1(),
91382
+ cmp: require_cmp$1(),
91383
+ coerce: require_coerce$1(),
91384
+ truncate: require_truncate(),
91385
+ Comparator: require_comparator$1(),
91386
+ Range: require_range$1(),
91387
+ satisfies: require_satisfies$1(),
91388
+ toComparators: require_to_comparators$1(),
91389
+ maxSatisfying: require_max_satisfying$1(),
91390
+ minSatisfying: require_min_satisfying$1(),
91391
+ minVersion: require_min_version$1(),
91392
+ validRange: require_valid$2(),
91393
+ outside: require_outside$1(),
91394
+ gtr: require_gtr$1(),
91395
+ ltr: require_ltr$1(),
91396
+ intersects: require_intersects$1(),
91397
+ simplifyRange: require_simplify$1(),
91398
+ subset: require_subset$1(),
91399
+ SemVer,
91400
+ re: internalRe.re,
91401
+ src: internalRe.src,
91402
+ tokens: internalRe.t,
91403
+ SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
91404
+ RELEASE_TYPES: constants.RELEASE_TYPES,
91405
+ compareIdentifiers: identifiers.compareIdentifiers,
91406
+ rcompareIdentifiers: identifiers.rcompareIdentifiers
91407
+ };
91408
+ }));
91409
+ //#endregion
89870
91410
  //#region ../../node_modules/@npmcli/git/lib/lines-to-revs.js
89871
91411
  var require_lines_to_revs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89872
- const semver = require_semver();
91412
+ const semver = require_semver$2();
89873
91413
  module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
89874
91414
  versions: {},
89875
91415
  "dist-tags": {},
@@ -90136,7 +91676,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90136
91676
  const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
90137
91677
  const { homedir: homedir$1 } = __require("node:os");
90138
91678
  const HostedGit = require_lib$28();
90139
- const semver = require_semver();
91679
+ const semver = require_semver$2();
90140
91680
  const validatePackageName = require_lib$23();
90141
91681
  const { log } = require_lib$29();
90142
91682
  const hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
@@ -90509,8 +92049,8 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90509
92049
  //#endregion
90510
92050
  //#region ../../node_modules/npm-install-checks/lib/dev-engines.js
90511
92051
  var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90512
- const satisfies = require_satisfies();
90513
- const validRange = require_valid();
92052
+ const satisfies = require_satisfies$1();
92053
+ const validRange = require_valid$2();
90514
92054
  const recognizedOnFail = [
90515
92055
  "ignore",
90516
92056
  "warn",
@@ -90590,7 +92130,7 @@ var require_dev_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90590
92130
  //#endregion
90591
92131
  //#region ../../node_modules/npm-install-checks/lib/index.js
90592
92132
  var require_lib$22 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90593
- const semver = require_semver();
92133
+ const semver = require_semver$2();
90594
92134
  const currentEnv = require_current_env();
90595
92135
  const { checkDevEngines } = require_dev_engines();
90596
92136
  const checkEngine = (target, npmVer, nodeVer, force = false) => {
@@ -90699,7 +92239,7 @@ var require_lib$21 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90699
92239
  //#region ../../node_modules/npm-pick-manifest/lib/index.js
90700
92240
  var require_lib$20 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90701
92241
  const npa = require_npa();
90702
- const semver = require_semver();
92242
+ const semver = require_semver$2();
90703
92243
  const { checkEngine } = require_lib$22();
90704
92244
  const normalizeBin = require_lib$21();
90705
92245
  const engineOk = (manifest, npmVersion, nodeVersion) => {
@@ -90993,8 +92533,8 @@ var require_lib$19 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90993
92533
  //#endregion
90994
92534
  //#region ../../node_modules/@npmcli/package-json/lib/normalize.js
90995
92535
  var require_normalize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90996
- const valid = require_valid$1();
90997
- const clean = require_clean();
92536
+ const valid = require_valid$3();
92537
+ const clean = require_clean$1();
90998
92538
  const fs$13 = __require("node:fs/promises");
90999
92539
  const path$15 = __require("node:path");
91000
92540
  const { log } = require_lib$29();
@@ -91425,7 +92965,7 @@ var require_read_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91425
92965
  }));
91426
92966
  //#endregion
91427
92967
  //#region ../../node_modules/@npmcli/package-json/lib/sort.js
91428
- var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
92968
+ var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91429
92969
  /**
91430
92970
  * arbitrary sort order for package.json largely pulled from:
91431
92971
  * https://github.com/keithamus/sort-package-json/blob/main/defaultRules.md
@@ -91493,7 +93033,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91493
93033
  const updateWorkspaces = require_update_workspaces();
91494
93034
  const { normalize, syncNormalize } = require_normalize();
91495
93035
  const { read, parse } = require_read_package();
91496
- const { packageSort } = require_sort();
93036
+ const { packageSort } = require_sort$1();
91497
93037
  const knownSteps = new Set([
91498
93038
  updateDeps,
91499
93039
  updateScripts,
@@ -92639,7 +94179,7 @@ var require_get_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
92639
94179
  //#endregion
92640
94180
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/common/node.js
92641
94181
  var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
92642
- const semver = require_semver();
94182
+ const semver = require_semver$2();
92643
94183
  const satisfies = (range) => {
92644
94184
  return semver.satisfies(process.version, range, { includePrerelease: true });
92645
94185
  };
@@ -105173,7 +106713,7 @@ var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
105173
106713
  }));
105174
106714
  //#endregion
105175
106715
  //#region ../../node_modules/minizlib/dist/commonjs/constants.js
105176
- var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
106716
+ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
105177
106717
  var __importDefault = exports && exports.__importDefault || function(mod) {
105178
106718
  return mod && mod.__esModule ? mod : { "default": mod };
105179
106719
  };
@@ -105344,8 +106884,8 @@ var require_commonjs$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
105344
106884
  const buffer_1$1 = __require("buffer");
105345
106885
  const minipass_1 = require_commonjs$10();
105346
106886
  const realZlib = __importStar(__require("zlib"));
105347
- const constants_js_1 = require_constants$3();
105348
- var constants_js_2 = require_constants$3();
106887
+ const constants_js_1 = require_constants$4();
106888
+ var constants_js_2 = require_constants$4();
105349
106889
  Object.defineProperty(exports, "constants", {
105350
106890
  enumerable: true,
105351
106891
  get: function() {
@@ -119987,7 +121527,7 @@ var require_smartbuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
119987
121527
  }));
119988
121528
  //#endregion
119989
121529
  //#region ../../node_modules/socks/build/common/constants.js
119990
- var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
121530
+ var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
119991
121531
  Object.defineProperty(exports, "__esModule", { value: true });
119992
121532
  exports.SOCKS5_NO_ACCEPTABLE_AUTH = exports.SOCKS5_CUSTOM_AUTH_END = exports.SOCKS5_CUSTOM_AUTH_START = exports.SOCKS_INCOMING_PACKET_SIZES = exports.SocksClientState = exports.Socks5Response = exports.Socks5HostType = exports.Socks5Auth = exports.Socks4Response = exports.SocksCommand = exports.ERRORS = exports.DEFAULT_TIMEOUT = void 0;
119993
121533
  exports.DEFAULT_TIMEOUT = 3e4;
@@ -120153,7 +121693,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
120153
121693
  }));
120154
121694
  //#endregion
120155
121695
  //#region ../../node_modules/ip-address/dist/v4/constants.js
120156
- var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
121696
+ var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
120157
121697
  Object.defineProperty(exports, "__esModule", { value: true });
120158
121698
  exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
120159
121699
  exports.BITS = 32;
@@ -120212,7 +121752,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
120212
121752
  Object.defineProperty(exports, "__esModule", { value: true });
120213
121753
  exports.Address4 = void 0;
120214
121754
  const common = __importStar(require_common());
120215
- const constants = __importStar(require_constants$1());
121755
+ const constants = __importStar(require_constants$2());
120216
121756
  const address_error_1 = require_address_error();
120217
121757
  exports.Address4 = class Address4 {
120218
121758
  constructor(address) {
@@ -120506,7 +122046,7 @@ var require_ipv4 = /* @__PURE__ */ __commonJSMin(((exports) => {
120506
122046
  }));
120507
122047
  //#endregion
120508
122048
  //#region ../../node_modules/ip-address/dist/v6/constants.js
120509
- var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
122049
+ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
120510
122050
  Object.defineProperty(exports, "__esModule", { value: true });
120511
122051
  exports.RE_URL_WITH_PORT = exports.RE_URL = exports.RE_ZONE_STRING = exports.RE_SUBNET_STRING = exports.RE_BAD_ADDRESS = exports.RE_BAD_CHARACTERS = exports.TYPES = exports.SCOPES = exports.GROUPS = exports.BITS = void 0;
120512
122052
  exports.BITS = 128;
@@ -120662,7 +122202,7 @@ var require_regular_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
120662
122202
  exports.padGroup = padGroup;
120663
122203
  exports.simpleRegularExpression = simpleRegularExpression;
120664
122204
  exports.possibleElisions = possibleElisions;
120665
- const v6 = __importStar(require_constants());
122205
+ const v6 = __importStar(require_constants$1());
120666
122206
  function groupPossibilities(possibilities) {
120667
122207
  return `(${possibilities.join("|")})`;
120668
122208
  }
@@ -120737,8 +122277,8 @@ var require_ipv6 = /* @__PURE__ */ __commonJSMin(((exports) => {
120737
122277
  Object.defineProperty(exports, "__esModule", { value: true });
120738
122278
  exports.Address6 = void 0;
120739
122279
  const common = __importStar(require_common());
120740
- const constants4 = __importStar(require_constants$1());
120741
- const constants6 = __importStar(require_constants());
122280
+ const constants4 = __importStar(require_constants$2());
122281
+ const constants6 = __importStar(require_constants$1());
120742
122282
  const helpers = __importStar(require_helpers$1());
120743
122283
  const ipv4_1 = require_ipv4();
120744
122284
  const regular_expressions_1 = require_regular_expressions();
@@ -121558,7 +123098,7 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
121558
123098
  Object.defineProperty(exports, "__esModule", { value: true });
121559
123099
  exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
121560
123100
  const util_1 = require_util$1();
121561
- const constants_1 = require_constants$2();
123101
+ const constants_1 = require_constants$3();
121562
123102
  const stream = __require("stream");
121563
123103
  const ip_address_1 = require_ip_address();
121564
123104
  const net$3 = __require("net");
@@ -121723,7 +123263,7 @@ var require_socksclient = /* @__PURE__ */ __commonJSMin(((exports) => {
121723
123263
  const events_1 = __require("events");
121724
123264
  const net$2 = __require("net");
121725
123265
  const smart_buffer_1 = require_smartbuffer();
121726
- const constants_1 = require_constants$2();
123266
+ const constants_1 = require_constants$3();
121727
123267
  const helpers_1 = require_helpers();
121728
123268
  const receivebuffer_1 = require_receivebuffer();
121729
123269
  const util_1 = require_util$1();
@@ -125972,7 +127512,7 @@ var require_length = /* @__PURE__ */ __commonJSMin(((exports) => {
125972
127512
  }));
125973
127513
  //#endregion
125974
127514
  //#region ../../node_modules/@sigstore/core/dist/asn1/parse.js
125975
- var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
127515
+ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
125976
127516
  Object.defineProperty(exports, "__esModule", { value: true });
125977
127517
  exports.parseInteger = parseInteger;
125978
127518
  exports.parseStringASCII = parseStringASCII;
@@ -126118,7 +127658,7 @@ var require_obj = /* @__PURE__ */ __commonJSMin(((exports) => {
126118
127658
  const stream_1 = require_stream();
126119
127659
  const error_1 = require_error$8();
126120
127660
  const length_1 = require_length();
126121
- const parse_1 = require_parse();
127661
+ const parse_1 = require_parse$1();
126122
127662
  const tag_1 = require_tag();
126123
127663
  var ASN1Obj = class {
126124
127664
  tag;
@@ -134434,6 +135974,1343 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
134434
135974
  };
134435
135975
  }));
134436
135976
  //#endregion
135977
+ //#region ../../packages/core-node/node_modules/semver/internal/constants.js
135978
+ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
135979
+ const SEMVER_SPEC_VERSION = "2.0.0";
135980
+ const MAX_LENGTH = 256;
135981
+ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
135982
+ module.exports = {
135983
+ MAX_LENGTH,
135984
+ MAX_SAFE_COMPONENT_LENGTH: 16,
135985
+ MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
135986
+ MAX_SAFE_INTEGER,
135987
+ RELEASE_TYPES: [
135988
+ "major",
135989
+ "premajor",
135990
+ "minor",
135991
+ "preminor",
135992
+ "patch",
135993
+ "prepatch",
135994
+ "prerelease"
135995
+ ],
135996
+ SEMVER_SPEC_VERSION,
135997
+ FLAG_INCLUDE_PRERELEASE: 1,
135998
+ FLAG_LOOSE: 2
135999
+ };
136000
+ }));
136001
+ //#endregion
136002
+ //#region ../../packages/core-node/node_modules/semver/internal/debug.js
136003
+ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136004
+ module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
136005
+ }));
136006
+ //#endregion
136007
+ //#region ../../packages/core-node/node_modules/semver/internal/re.js
136008
+ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136009
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
136010
+ const debug = require_debug();
136011
+ exports = module.exports = {};
136012
+ const re = exports.re = [];
136013
+ const safeRe = exports.safeRe = [];
136014
+ const src = exports.src = [];
136015
+ const safeSrc = exports.safeSrc = [];
136016
+ const t = exports.t = {};
136017
+ let R = 0;
136018
+ const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
136019
+ const safeRegexReplacements = [
136020
+ ["\\s", 1],
136021
+ ["\\d", MAX_LENGTH],
136022
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
136023
+ ];
136024
+ const makeSafeRegex = (value) => {
136025
+ for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
136026
+ return value;
136027
+ };
136028
+ const createToken = (name, value, isGlobal) => {
136029
+ const safe = makeSafeRegex(value);
136030
+ const index = R++;
136031
+ debug(name, index, value);
136032
+ t[name] = index;
136033
+ src[index] = value;
136034
+ safeSrc[index] = safe;
136035
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
136036
+ safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
136037
+ };
136038
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
136039
+ createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
136040
+ createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
136041
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
136042
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
136043
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
136044
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
136045
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
136046
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
136047
+ createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
136048
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
136049
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
136050
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
136051
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
136052
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
136053
+ createToken("GTLT", "((?:<|>)?=?)");
136054
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
136055
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
136056
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
136057
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
136058
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
136059
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
136060
+ createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
136061
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
136062
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
136063
+ createToken("COERCERTL", src[t.COERCE], true);
136064
+ createToken("COERCERTLFULL", src[t.COERCEFULL], true);
136065
+ createToken("LONETILDE", "(?:~>?)");
136066
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
136067
+ exports.tildeTrimReplace = "$1~";
136068
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
136069
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
136070
+ createToken("LONECARET", "(?:\\^)");
136071
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
136072
+ exports.caretTrimReplace = "$1^";
136073
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
136074
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
136075
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
136076
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
136077
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
136078
+ exports.comparatorTrimReplace = "$1$2$3";
136079
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
136080
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
136081
+ createToken("STAR", "(<|>)?=?\\s*\\*");
136082
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
136083
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
136084
+ }));
136085
+ //#endregion
136086
+ //#region ../../packages/core-node/node_modules/semver/internal/parse-options.js
136087
+ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136088
+ const looseOption = Object.freeze({ loose: true });
136089
+ const emptyOpts = Object.freeze({});
136090
+ const parseOptions = (options) => {
136091
+ if (!options) return emptyOpts;
136092
+ if (typeof options !== "object") return looseOption;
136093
+ return options;
136094
+ };
136095
+ module.exports = parseOptions;
136096
+ }));
136097
+ //#endregion
136098
+ //#region ../../packages/core-node/node_modules/semver/internal/identifiers.js
136099
+ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136100
+ const numeric = /^[0-9]+$/;
136101
+ const compareIdentifiers = (a, b) => {
136102
+ if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
136103
+ const anum = numeric.test(a);
136104
+ const bnum = numeric.test(b);
136105
+ if (anum && bnum) {
136106
+ a = +a;
136107
+ b = +b;
136108
+ }
136109
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
136110
+ };
136111
+ const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
136112
+ module.exports = {
136113
+ compareIdentifiers,
136114
+ rcompareIdentifiers
136115
+ };
136116
+ }));
136117
+ //#endregion
136118
+ //#region ../../packages/core-node/node_modules/semver/classes/semver.js
136119
+ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136120
+ const debug = require_debug();
136121
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
136122
+ const { safeRe: re, t } = require_re();
136123
+ const parseOptions = require_parse_options();
136124
+ const { compareIdentifiers } = require_identifiers();
136125
+ module.exports = class SemVer {
136126
+ constructor(version, options) {
136127
+ options = parseOptions(options);
136128
+ if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
136129
+ else version = version.version;
136130
+ else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
136131
+ if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
136132
+ debug("SemVer", version, options);
136133
+ this.options = options;
136134
+ this.loose = !!options.loose;
136135
+ this.includePrerelease = !!options.includePrerelease;
136136
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
136137
+ if (!m) throw new TypeError(`Invalid Version: ${version}`);
136138
+ this.raw = version;
136139
+ this.major = +m[1];
136140
+ this.minor = +m[2];
136141
+ this.patch = +m[3];
136142
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
136143
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
136144
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
136145
+ if (!m[4]) this.prerelease = [];
136146
+ else this.prerelease = m[4].split(".").map((id) => {
136147
+ if (/^[0-9]+$/.test(id)) {
136148
+ const num = +id;
136149
+ if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
136150
+ }
136151
+ return id;
136152
+ });
136153
+ this.build = m[5] ? m[5].split(".") : [];
136154
+ this.format();
136155
+ }
136156
+ format() {
136157
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
136158
+ if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
136159
+ return this.version;
136160
+ }
136161
+ toString() {
136162
+ return this.version;
136163
+ }
136164
+ compare(other) {
136165
+ debug("SemVer.compare", this.version, this.options, other);
136166
+ if (!(other instanceof SemVer)) {
136167
+ if (typeof other === "string" && other === this.version) return 0;
136168
+ other = new SemVer(other, this.options);
136169
+ }
136170
+ if (other.version === this.version) return 0;
136171
+ return this.compareMain(other) || this.comparePre(other);
136172
+ }
136173
+ compareMain(other) {
136174
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
136175
+ if (this.major < other.major) return -1;
136176
+ if (this.major > other.major) return 1;
136177
+ if (this.minor < other.minor) return -1;
136178
+ if (this.minor > other.minor) return 1;
136179
+ if (this.patch < other.patch) return -1;
136180
+ if (this.patch > other.patch) return 1;
136181
+ return 0;
136182
+ }
136183
+ comparePre(other) {
136184
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
136185
+ if (this.prerelease.length && !other.prerelease.length) return -1;
136186
+ else if (!this.prerelease.length && other.prerelease.length) return 1;
136187
+ else if (!this.prerelease.length && !other.prerelease.length) return 0;
136188
+ let i = 0;
136189
+ do {
136190
+ const a = this.prerelease[i];
136191
+ const b = other.prerelease[i];
136192
+ debug("prerelease compare", i, a, b);
136193
+ if (a === void 0 && b === void 0) return 0;
136194
+ else if (b === void 0) return 1;
136195
+ else if (a === void 0) return -1;
136196
+ else if (a === b) continue;
136197
+ else return compareIdentifiers(a, b);
136198
+ } while (++i);
136199
+ }
136200
+ compareBuild(other) {
136201
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
136202
+ let i = 0;
136203
+ do {
136204
+ const a = this.build[i];
136205
+ const b = other.build[i];
136206
+ debug("build compare", i, a, b);
136207
+ if (a === void 0 && b === void 0) return 0;
136208
+ else if (b === void 0) return 1;
136209
+ else if (a === void 0) return -1;
136210
+ else if (a === b) continue;
136211
+ else return compareIdentifiers(a, b);
136212
+ } while (++i);
136213
+ }
136214
+ inc(release, identifier, identifierBase) {
136215
+ if (release.startsWith("pre")) {
136216
+ if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
136217
+ if (identifier) {
136218
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
136219
+ if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
136220
+ }
136221
+ }
136222
+ switch (release) {
136223
+ case "premajor":
136224
+ this.prerelease.length = 0;
136225
+ this.patch = 0;
136226
+ this.minor = 0;
136227
+ this.major++;
136228
+ this.inc("pre", identifier, identifierBase);
136229
+ break;
136230
+ case "preminor":
136231
+ this.prerelease.length = 0;
136232
+ this.patch = 0;
136233
+ this.minor++;
136234
+ this.inc("pre", identifier, identifierBase);
136235
+ break;
136236
+ case "prepatch":
136237
+ this.prerelease.length = 0;
136238
+ this.inc("patch", identifier, identifierBase);
136239
+ this.inc("pre", identifier, identifierBase);
136240
+ break;
136241
+ case "prerelease":
136242
+ if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
136243
+ this.inc("pre", identifier, identifierBase);
136244
+ break;
136245
+ case "release":
136246
+ if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
136247
+ this.prerelease.length = 0;
136248
+ break;
136249
+ case "major":
136250
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
136251
+ this.minor = 0;
136252
+ this.patch = 0;
136253
+ this.prerelease = [];
136254
+ break;
136255
+ case "minor":
136256
+ if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
136257
+ this.patch = 0;
136258
+ this.prerelease = [];
136259
+ break;
136260
+ case "patch":
136261
+ if (this.prerelease.length === 0) this.patch++;
136262
+ this.prerelease = [];
136263
+ break;
136264
+ case "pre": {
136265
+ const base = Number(identifierBase) ? 1 : 0;
136266
+ if (this.prerelease.length === 0) this.prerelease = [base];
136267
+ else {
136268
+ let i = this.prerelease.length;
136269
+ while (--i >= 0) if (typeof this.prerelease[i] === "number") {
136270
+ this.prerelease[i]++;
136271
+ i = -2;
136272
+ }
136273
+ if (i === -1) {
136274
+ if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
136275
+ this.prerelease.push(base);
136276
+ }
136277
+ }
136278
+ if (identifier) {
136279
+ let prerelease = [identifier, base];
136280
+ if (identifierBase === false) prerelease = [identifier];
136281
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
136282
+ if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
136283
+ } else this.prerelease = prerelease;
136284
+ }
136285
+ break;
136286
+ }
136287
+ default: throw new Error(`invalid increment argument: ${release}`);
136288
+ }
136289
+ this.raw = this.format();
136290
+ if (this.build.length) this.raw += `+${this.build.join(".")}`;
136291
+ return this;
136292
+ }
136293
+ };
136294
+ }));
136295
+ //#endregion
136296
+ //#region ../../packages/core-node/node_modules/semver/functions/parse.js
136297
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136298
+ const SemVer = require_semver$1();
136299
+ const parse = (version, options, throwErrors = false) => {
136300
+ if (version instanceof SemVer) return version;
136301
+ try {
136302
+ return new SemVer(version, options);
136303
+ } catch (er) {
136304
+ if (!throwErrors) return null;
136305
+ throw er;
136306
+ }
136307
+ };
136308
+ module.exports = parse;
136309
+ }));
136310
+ //#endregion
136311
+ //#region ../../packages/core-node/node_modules/semver/functions/valid.js
136312
+ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136313
+ const parse = require_parse();
136314
+ const valid = (version, options) => {
136315
+ const v = parse(version, options);
136316
+ return v ? v.version : null;
136317
+ };
136318
+ module.exports = valid;
136319
+ }));
136320
+ //#endregion
136321
+ //#region ../../packages/core-node/node_modules/semver/functions/clean.js
136322
+ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136323
+ const parse = require_parse();
136324
+ const clean = (version, options) => {
136325
+ const s = parse(version.trim().replace(/^[=v]+/, ""), options);
136326
+ return s ? s.version : null;
136327
+ };
136328
+ module.exports = clean;
136329
+ }));
136330
+ //#endregion
136331
+ //#region ../../packages/core-node/node_modules/semver/functions/inc.js
136332
+ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136333
+ const SemVer = require_semver$1();
136334
+ const inc = (version, release, options, identifier, identifierBase) => {
136335
+ if (typeof options === "string") {
136336
+ identifierBase = identifier;
136337
+ identifier = options;
136338
+ options = void 0;
136339
+ }
136340
+ try {
136341
+ return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
136342
+ } catch (er) {
136343
+ return null;
136344
+ }
136345
+ };
136346
+ module.exports = inc;
136347
+ }));
136348
+ //#endregion
136349
+ //#region ../../packages/core-node/node_modules/semver/functions/diff.js
136350
+ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136351
+ const parse = require_parse();
136352
+ const diff = (version1, version2) => {
136353
+ const v1 = parse(version1, null, true);
136354
+ const v2 = parse(version2, null, true);
136355
+ const comparison = v1.compare(v2);
136356
+ if (comparison === 0) return null;
136357
+ const v1Higher = comparison > 0;
136358
+ const highVersion = v1Higher ? v1 : v2;
136359
+ const lowVersion = v1Higher ? v2 : v1;
136360
+ const highHasPre = !!highVersion.prerelease.length;
136361
+ if (!!lowVersion.prerelease.length && !highHasPre) {
136362
+ if (!lowVersion.patch && !lowVersion.minor) return "major";
136363
+ if (lowVersion.compareMain(highVersion) === 0) {
136364
+ if (lowVersion.minor && !lowVersion.patch) return "minor";
136365
+ return "patch";
136366
+ }
136367
+ }
136368
+ const prefix = highHasPre ? "pre" : "";
136369
+ if (v1.major !== v2.major) return prefix + "major";
136370
+ if (v1.minor !== v2.minor) return prefix + "minor";
136371
+ if (v1.patch !== v2.patch) return prefix + "patch";
136372
+ return "prerelease";
136373
+ };
136374
+ module.exports = diff;
136375
+ }));
136376
+ //#endregion
136377
+ //#region ../../packages/core-node/node_modules/semver/functions/major.js
136378
+ var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136379
+ const SemVer = require_semver$1();
136380
+ const major = (a, loose) => new SemVer(a, loose).major;
136381
+ module.exports = major;
136382
+ }));
136383
+ //#endregion
136384
+ //#region ../../packages/core-node/node_modules/semver/functions/minor.js
136385
+ var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136386
+ const SemVer = require_semver$1();
136387
+ const minor = (a, loose) => new SemVer(a, loose).minor;
136388
+ module.exports = minor;
136389
+ }));
136390
+ //#endregion
136391
+ //#region ../../packages/core-node/node_modules/semver/functions/patch.js
136392
+ var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136393
+ const SemVer = require_semver$1();
136394
+ const patch = (a, loose) => new SemVer(a, loose).patch;
136395
+ module.exports = patch;
136396
+ }));
136397
+ //#endregion
136398
+ //#region ../../packages/core-node/node_modules/semver/functions/prerelease.js
136399
+ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136400
+ const parse = require_parse();
136401
+ const prerelease = (version, options) => {
136402
+ const parsed = parse(version, options);
136403
+ return parsed && parsed.prerelease.length ? parsed.prerelease : null;
136404
+ };
136405
+ module.exports = prerelease;
136406
+ }));
136407
+ //#endregion
136408
+ //#region ../../packages/core-node/node_modules/semver/functions/compare.js
136409
+ var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136410
+ const SemVer = require_semver$1();
136411
+ const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
136412
+ module.exports = compare;
136413
+ }));
136414
+ //#endregion
136415
+ //#region ../../packages/core-node/node_modules/semver/functions/rcompare.js
136416
+ var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136417
+ const compare = require_compare();
136418
+ const rcompare = (a, b, loose) => compare(b, a, loose);
136419
+ module.exports = rcompare;
136420
+ }));
136421
+ //#endregion
136422
+ //#region ../../packages/core-node/node_modules/semver/functions/compare-loose.js
136423
+ var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136424
+ const compare = require_compare();
136425
+ const compareLoose = (a, b) => compare(a, b, true);
136426
+ module.exports = compareLoose;
136427
+ }));
136428
+ //#endregion
136429
+ //#region ../../packages/core-node/node_modules/semver/functions/compare-build.js
136430
+ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136431
+ const SemVer = require_semver$1();
136432
+ const compareBuild = (a, b, loose) => {
136433
+ const versionA = new SemVer(a, loose);
136434
+ const versionB = new SemVer(b, loose);
136435
+ return versionA.compare(versionB) || versionA.compareBuild(versionB);
136436
+ };
136437
+ module.exports = compareBuild;
136438
+ }));
136439
+ //#endregion
136440
+ //#region ../../packages/core-node/node_modules/semver/functions/sort.js
136441
+ var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136442
+ const compareBuild = require_compare_build();
136443
+ const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
136444
+ module.exports = sort;
136445
+ }));
136446
+ //#endregion
136447
+ //#region ../../packages/core-node/node_modules/semver/functions/rsort.js
136448
+ var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136449
+ const compareBuild = require_compare_build();
136450
+ const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
136451
+ module.exports = rsort;
136452
+ }));
136453
+ //#endregion
136454
+ //#region ../../packages/core-node/node_modules/semver/functions/gt.js
136455
+ var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136456
+ const compare = require_compare();
136457
+ const gt = (a, b, loose) => compare(a, b, loose) > 0;
136458
+ module.exports = gt;
136459
+ }));
136460
+ //#endregion
136461
+ //#region ../../packages/core-node/node_modules/semver/functions/lt.js
136462
+ var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136463
+ const compare = require_compare();
136464
+ const lt = (a, b, loose) => compare(a, b, loose) < 0;
136465
+ module.exports = lt;
136466
+ }));
136467
+ //#endregion
136468
+ //#region ../../packages/core-node/node_modules/semver/functions/eq.js
136469
+ var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136470
+ const compare = require_compare();
136471
+ const eq = (a, b, loose) => compare(a, b, loose) === 0;
136472
+ module.exports = eq;
136473
+ }));
136474
+ //#endregion
136475
+ //#region ../../packages/core-node/node_modules/semver/functions/neq.js
136476
+ var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136477
+ const compare = require_compare();
136478
+ const neq = (a, b, loose) => compare(a, b, loose) !== 0;
136479
+ module.exports = neq;
136480
+ }));
136481
+ //#endregion
136482
+ //#region ../../packages/core-node/node_modules/semver/functions/gte.js
136483
+ var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136484
+ const compare = require_compare();
136485
+ const gte = (a, b, loose) => compare(a, b, loose) >= 0;
136486
+ module.exports = gte;
136487
+ }));
136488
+ //#endregion
136489
+ //#region ../../packages/core-node/node_modules/semver/functions/lte.js
136490
+ var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136491
+ const compare = require_compare();
136492
+ const lte = (a, b, loose) => compare(a, b, loose) <= 0;
136493
+ module.exports = lte;
136494
+ }));
136495
+ //#endregion
136496
+ //#region ../../packages/core-node/node_modules/semver/functions/cmp.js
136497
+ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136498
+ const eq = require_eq();
136499
+ const neq = require_neq();
136500
+ const gt = require_gt();
136501
+ const gte = require_gte();
136502
+ const lt = require_lt();
136503
+ const lte = require_lte();
136504
+ const cmp = (a, op, b, loose) => {
136505
+ switch (op) {
136506
+ case "===":
136507
+ if (typeof a === "object") a = a.version;
136508
+ if (typeof b === "object") b = b.version;
136509
+ return a === b;
136510
+ case "!==":
136511
+ if (typeof a === "object") a = a.version;
136512
+ if (typeof b === "object") b = b.version;
136513
+ return a !== b;
136514
+ case "":
136515
+ case "=":
136516
+ case "==": return eq(a, b, loose);
136517
+ case "!=": return neq(a, b, loose);
136518
+ case ">": return gt(a, b, loose);
136519
+ case ">=": return gte(a, b, loose);
136520
+ case "<": return lt(a, b, loose);
136521
+ case "<=": return lte(a, b, loose);
136522
+ default: throw new TypeError(`Invalid operator: ${op}`);
136523
+ }
136524
+ };
136525
+ module.exports = cmp;
136526
+ }));
136527
+ //#endregion
136528
+ //#region ../../packages/core-node/node_modules/semver/functions/coerce.js
136529
+ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136530
+ const SemVer = require_semver$1();
136531
+ const parse = require_parse();
136532
+ const { safeRe: re, t } = require_re();
136533
+ const coerce = (version, options) => {
136534
+ if (version instanceof SemVer) return version;
136535
+ if (typeof version === "number") version = String(version);
136536
+ if (typeof version !== "string") return null;
136537
+ options = options || {};
136538
+ let match = null;
136539
+ if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
136540
+ else {
136541
+ const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
136542
+ let next;
136543
+ while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
136544
+ if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
136545
+ coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
136546
+ }
136547
+ coerceRtlRegex.lastIndex = -1;
136548
+ }
136549
+ if (match === null) return null;
136550
+ const major = match[2];
136551
+ return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
136552
+ };
136553
+ module.exports = coerce;
136554
+ }));
136555
+ //#endregion
136556
+ //#region ../../packages/core-node/node_modules/semver/internal/lrucache.js
136557
+ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136558
+ var LRUCache = class {
136559
+ constructor() {
136560
+ this.max = 1e3;
136561
+ this.map = /* @__PURE__ */ new Map();
136562
+ }
136563
+ get(key) {
136564
+ const value = this.map.get(key);
136565
+ if (value === void 0) return;
136566
+ else {
136567
+ this.map.delete(key);
136568
+ this.map.set(key, value);
136569
+ return value;
136570
+ }
136571
+ }
136572
+ delete(key) {
136573
+ return this.map.delete(key);
136574
+ }
136575
+ set(key, value) {
136576
+ if (!this.delete(key) && value !== void 0) {
136577
+ if (this.map.size >= this.max) {
136578
+ const firstKey = this.map.keys().next().value;
136579
+ this.delete(firstKey);
136580
+ }
136581
+ this.map.set(key, value);
136582
+ }
136583
+ return this;
136584
+ }
136585
+ };
136586
+ module.exports = LRUCache;
136587
+ }));
136588
+ //#endregion
136589
+ //#region ../../packages/core-node/node_modules/semver/classes/range.js
136590
+ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136591
+ const SPACE_CHARACTERS = /\s+/g;
136592
+ module.exports = class Range {
136593
+ constructor(range, options) {
136594
+ options = parseOptions(options);
136595
+ if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
136596
+ else return new Range(range.raw, options);
136597
+ if (range instanceof Comparator) {
136598
+ this.raw = range.value;
136599
+ this.set = [[range]];
136600
+ this.formatted = void 0;
136601
+ return this;
136602
+ }
136603
+ this.options = options;
136604
+ this.loose = !!options.loose;
136605
+ this.includePrerelease = !!options.includePrerelease;
136606
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
136607
+ this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
136608
+ if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
136609
+ if (this.set.length > 1) {
136610
+ const first = this.set[0];
136611
+ this.set = this.set.filter((c) => !isNullSet(c[0]));
136612
+ if (this.set.length === 0) this.set = [first];
136613
+ else if (this.set.length > 1) {
136614
+ for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
136615
+ this.set = [c];
136616
+ break;
136617
+ }
136618
+ }
136619
+ }
136620
+ this.formatted = void 0;
136621
+ }
136622
+ get range() {
136623
+ if (this.formatted === void 0) {
136624
+ this.formatted = "";
136625
+ for (let i = 0; i < this.set.length; i++) {
136626
+ if (i > 0) this.formatted += "||";
136627
+ const comps = this.set[i];
136628
+ for (let k = 0; k < comps.length; k++) {
136629
+ if (k > 0) this.formatted += " ";
136630
+ this.formatted += comps[k].toString().trim();
136631
+ }
136632
+ }
136633
+ }
136634
+ return this.formatted;
136635
+ }
136636
+ format() {
136637
+ return this.range;
136638
+ }
136639
+ toString() {
136640
+ return this.range;
136641
+ }
136642
+ parseRange(range) {
136643
+ const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
136644
+ const cached = cache.get(memoKey);
136645
+ if (cached) return cached;
136646
+ const loose = this.options.loose;
136647
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
136648
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
136649
+ debug("hyphen replace", range);
136650
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
136651
+ debug("comparator trim", range);
136652
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
136653
+ debug("tilde trim", range);
136654
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
136655
+ debug("caret trim", range);
136656
+ let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
136657
+ if (loose) rangeList = rangeList.filter((comp) => {
136658
+ debug("loose invalid filter", comp, this.options);
136659
+ return !!comp.match(re[t.COMPARATORLOOSE]);
136660
+ });
136661
+ debug("range list", rangeList);
136662
+ const rangeMap = /* @__PURE__ */ new Map();
136663
+ const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
136664
+ for (const comp of comparators) {
136665
+ if (isNullSet(comp)) return [comp];
136666
+ rangeMap.set(comp.value, comp);
136667
+ }
136668
+ if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
136669
+ const result = [...rangeMap.values()];
136670
+ cache.set(memoKey, result);
136671
+ return result;
136672
+ }
136673
+ intersects(range, options) {
136674
+ if (!(range instanceof Range)) throw new TypeError("a Range is required");
136675
+ return this.set.some((thisComparators) => {
136676
+ return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
136677
+ return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
136678
+ return rangeComparators.every((rangeComparator) => {
136679
+ return thisComparator.intersects(rangeComparator, options);
136680
+ });
136681
+ });
136682
+ });
136683
+ });
136684
+ }
136685
+ test(version) {
136686
+ if (!version) return false;
136687
+ if (typeof version === "string") try {
136688
+ version = new SemVer(version, this.options);
136689
+ } catch (er) {
136690
+ return false;
136691
+ }
136692
+ for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
136693
+ return false;
136694
+ }
136695
+ };
136696
+ const cache = new (require_lrucache())();
136697
+ const parseOptions = require_parse_options();
136698
+ const Comparator = require_comparator();
136699
+ const debug = require_debug();
136700
+ const SemVer = require_semver$1();
136701
+ const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
136702
+ const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
136703
+ const isNullSet = (c) => c.value === "<0.0.0-0";
136704
+ const isAny = (c) => c.value === "";
136705
+ const isSatisfiable = (comparators, options) => {
136706
+ let result = true;
136707
+ const remainingComparators = comparators.slice();
136708
+ let testComparator = remainingComparators.pop();
136709
+ while (result && remainingComparators.length) {
136710
+ result = remainingComparators.every((otherComparator) => {
136711
+ return testComparator.intersects(otherComparator, options);
136712
+ });
136713
+ testComparator = remainingComparators.pop();
136714
+ }
136715
+ return result;
136716
+ };
136717
+ const parseComparator = (comp, options) => {
136718
+ comp = comp.replace(re[t.BUILD], "");
136719
+ debug("comp", comp, options);
136720
+ comp = replaceCarets(comp, options);
136721
+ debug("caret", comp);
136722
+ comp = replaceTildes(comp, options);
136723
+ debug("tildes", comp);
136724
+ comp = replaceXRanges(comp, options);
136725
+ debug("xrange", comp);
136726
+ comp = replaceStars(comp, options);
136727
+ debug("stars", comp);
136728
+ return comp;
136729
+ };
136730
+ const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
136731
+ const replaceTildes = (comp, options) => {
136732
+ return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
136733
+ };
136734
+ const replaceTilde = (comp, options) => {
136735
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
136736
+ return comp.replace(r, (_, M, m, p, pr) => {
136737
+ debug("tilde", comp, _, M, m, p, pr);
136738
+ let ret;
136739
+ if (isX(M)) ret = "";
136740
+ else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
136741
+ else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
136742
+ else if (pr) {
136743
+ debug("replaceTilde pr", pr);
136744
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
136745
+ } else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
136746
+ debug("tilde return", ret);
136747
+ return ret;
136748
+ });
136749
+ };
136750
+ const replaceCarets = (comp, options) => {
136751
+ return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
136752
+ };
136753
+ const replaceCaret = (comp, options) => {
136754
+ debug("caret", comp, options);
136755
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
136756
+ const z = options.includePrerelease ? "-0" : "";
136757
+ return comp.replace(r, (_, M, m, p, pr) => {
136758
+ debug("caret", comp, _, M, m, p, pr);
136759
+ let ret;
136760
+ if (isX(M)) ret = "";
136761
+ else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
136762
+ else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
136763
+ else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
136764
+ else if (pr) {
136765
+ debug("replaceCaret pr", pr);
136766
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
136767
+ else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
136768
+ else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
136769
+ } else {
136770
+ debug("no pr");
136771
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
136772
+ else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
136773
+ else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
136774
+ }
136775
+ debug("caret return", ret);
136776
+ return ret;
136777
+ });
136778
+ };
136779
+ const replaceXRanges = (comp, options) => {
136780
+ debug("replaceXRanges", comp, options);
136781
+ return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
136782
+ };
136783
+ const replaceXRange = (comp, options) => {
136784
+ comp = comp.trim();
136785
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
136786
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
136787
+ debug("xRange", comp, ret, gtlt, M, m, p, pr);
136788
+ const xM = isX(M);
136789
+ const xm = xM || isX(m);
136790
+ const xp = xm || isX(p);
136791
+ const anyX = xp;
136792
+ if (gtlt === "=" && anyX) gtlt = "";
136793
+ pr = options.includePrerelease ? "-0" : "";
136794
+ if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
136795
+ else ret = "*";
136796
+ else if (gtlt && anyX) {
136797
+ if (xm) m = 0;
136798
+ p = 0;
136799
+ if (gtlt === ">") {
136800
+ gtlt = ">=";
136801
+ if (xm) {
136802
+ M = +M + 1;
136803
+ m = 0;
136804
+ p = 0;
136805
+ } else {
136806
+ m = +m + 1;
136807
+ p = 0;
136808
+ }
136809
+ } else if (gtlt === "<=") {
136810
+ gtlt = "<";
136811
+ if (xm) M = +M + 1;
136812
+ else m = +m + 1;
136813
+ }
136814
+ if (gtlt === "<") pr = "-0";
136815
+ ret = `${gtlt + M}.${m}.${p}${pr}`;
136816
+ } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
136817
+ else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
136818
+ debug("xRange return", ret);
136819
+ return ret;
136820
+ });
136821
+ };
136822
+ const replaceStars = (comp, options) => {
136823
+ debug("replaceStars", comp, options);
136824
+ return comp.trim().replace(re[t.STAR], "");
136825
+ };
136826
+ const replaceGTE0 = (comp, options) => {
136827
+ debug("replaceGTE0", comp, options);
136828
+ return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
136829
+ };
136830
+ const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
136831
+ if (isX(fM)) from = "";
136832
+ else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
136833
+ else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
136834
+ else if (fpr) from = `>=${from}`;
136835
+ else from = `>=${from}${incPr ? "-0" : ""}`;
136836
+ if (isX(tM)) to = "";
136837
+ else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
136838
+ else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
136839
+ else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
136840
+ else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
136841
+ else to = `<=${to}`;
136842
+ return `${from} ${to}`.trim();
136843
+ };
136844
+ const testSet = (set, version, options) => {
136845
+ for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
136846
+ if (version.prerelease.length && !options.includePrerelease) {
136847
+ for (let i = 0; i < set.length; i++) {
136848
+ debug(set[i].semver);
136849
+ if (set[i].semver === Comparator.ANY) continue;
136850
+ if (set[i].semver.prerelease.length > 0) {
136851
+ const allowed = set[i].semver;
136852
+ if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
136853
+ }
136854
+ }
136855
+ return false;
136856
+ }
136857
+ return true;
136858
+ };
136859
+ }));
136860
+ //#endregion
136861
+ //#region ../../packages/core-node/node_modules/semver/classes/comparator.js
136862
+ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136863
+ const ANY = Symbol("SemVer ANY");
136864
+ module.exports = class Comparator {
136865
+ static get ANY() {
136866
+ return ANY;
136867
+ }
136868
+ constructor(comp, options) {
136869
+ options = parseOptions(options);
136870
+ if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
136871
+ else comp = comp.value;
136872
+ comp = comp.trim().split(/\s+/).join(" ");
136873
+ debug("comparator", comp, options);
136874
+ this.options = options;
136875
+ this.loose = !!options.loose;
136876
+ this.parse(comp);
136877
+ if (this.semver === ANY) this.value = "";
136878
+ else this.value = this.operator + this.semver.version;
136879
+ debug("comp", this);
136880
+ }
136881
+ parse(comp) {
136882
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
136883
+ const m = comp.match(r);
136884
+ if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
136885
+ this.operator = m[1] !== void 0 ? m[1] : "";
136886
+ if (this.operator === "=") this.operator = "";
136887
+ if (!m[2]) this.semver = ANY;
136888
+ else this.semver = new SemVer(m[2], this.options.loose);
136889
+ }
136890
+ toString() {
136891
+ return this.value;
136892
+ }
136893
+ test(version) {
136894
+ debug("Comparator.test", version, this.options.loose);
136895
+ if (this.semver === ANY || version === ANY) return true;
136896
+ if (typeof version === "string") try {
136897
+ version = new SemVer(version, this.options);
136898
+ } catch (er) {
136899
+ return false;
136900
+ }
136901
+ return cmp(version, this.operator, this.semver, this.options);
136902
+ }
136903
+ intersects(comp, options) {
136904
+ if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
136905
+ if (this.operator === "") {
136906
+ if (this.value === "") return true;
136907
+ return new Range(comp.value, options).test(this.value);
136908
+ } else if (comp.operator === "") {
136909
+ if (comp.value === "") return true;
136910
+ return new Range(this.value, options).test(comp.semver);
136911
+ }
136912
+ options = parseOptions(options);
136913
+ if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
136914
+ if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
136915
+ if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
136916
+ if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
136917
+ if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
136918
+ if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
136919
+ if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
136920
+ return false;
136921
+ }
136922
+ };
136923
+ const parseOptions = require_parse_options();
136924
+ const { safeRe: re, t } = require_re();
136925
+ const cmp = require_cmp();
136926
+ const debug = require_debug();
136927
+ const SemVer = require_semver$1();
136928
+ const Range = require_range();
136929
+ }));
136930
+ //#endregion
136931
+ //#region ../../packages/core-node/node_modules/semver/functions/satisfies.js
136932
+ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136933
+ const Range = require_range();
136934
+ const satisfies = (version, range, options) => {
136935
+ try {
136936
+ range = new Range(range, options);
136937
+ } catch (er) {
136938
+ return false;
136939
+ }
136940
+ return range.test(version);
136941
+ };
136942
+ module.exports = satisfies;
136943
+ }));
136944
+ //#endregion
136945
+ //#region ../../packages/core-node/node_modules/semver/ranges/to-comparators.js
136946
+ var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136947
+ const Range = require_range();
136948
+ const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
136949
+ module.exports = toComparators;
136950
+ }));
136951
+ //#endregion
136952
+ //#region ../../packages/core-node/node_modules/semver/ranges/max-satisfying.js
136953
+ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136954
+ const SemVer = require_semver$1();
136955
+ const Range = require_range();
136956
+ const maxSatisfying = (versions, range, options) => {
136957
+ let max = null;
136958
+ let maxSV = null;
136959
+ let rangeObj = null;
136960
+ try {
136961
+ rangeObj = new Range(range, options);
136962
+ } catch (er) {
136963
+ return null;
136964
+ }
136965
+ versions.forEach((v) => {
136966
+ if (rangeObj.test(v)) {
136967
+ if (!max || maxSV.compare(v) === -1) {
136968
+ max = v;
136969
+ maxSV = new SemVer(max, options);
136970
+ }
136971
+ }
136972
+ });
136973
+ return max;
136974
+ };
136975
+ module.exports = maxSatisfying;
136976
+ }));
136977
+ //#endregion
136978
+ //#region ../../packages/core-node/node_modules/semver/ranges/min-satisfying.js
136979
+ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136980
+ const SemVer = require_semver$1();
136981
+ const Range = require_range();
136982
+ const minSatisfying = (versions, range, options) => {
136983
+ let min = null;
136984
+ let minSV = null;
136985
+ let rangeObj = null;
136986
+ try {
136987
+ rangeObj = new Range(range, options);
136988
+ } catch (er) {
136989
+ return null;
136990
+ }
136991
+ versions.forEach((v) => {
136992
+ if (rangeObj.test(v)) {
136993
+ if (!min || minSV.compare(v) === 1) {
136994
+ min = v;
136995
+ minSV = new SemVer(min, options);
136996
+ }
136997
+ }
136998
+ });
136999
+ return min;
137000
+ };
137001
+ module.exports = minSatisfying;
137002
+ }));
137003
+ //#endregion
137004
+ //#region ../../packages/core-node/node_modules/semver/ranges/min-version.js
137005
+ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137006
+ const SemVer = require_semver$1();
137007
+ const Range = require_range();
137008
+ const gt = require_gt();
137009
+ const minVersion = (range, loose) => {
137010
+ range = new Range(range, loose);
137011
+ let minver = new SemVer("0.0.0");
137012
+ if (range.test(minver)) return minver;
137013
+ minver = new SemVer("0.0.0-0");
137014
+ if (range.test(minver)) return minver;
137015
+ minver = null;
137016
+ for (let i = 0; i < range.set.length; ++i) {
137017
+ const comparators = range.set[i];
137018
+ let setMin = null;
137019
+ comparators.forEach((comparator) => {
137020
+ const compver = new SemVer(comparator.semver.version);
137021
+ switch (comparator.operator) {
137022
+ case ">":
137023
+ if (compver.prerelease.length === 0) compver.patch++;
137024
+ else compver.prerelease.push(0);
137025
+ compver.raw = compver.format();
137026
+ case "":
137027
+ case ">=":
137028
+ if (!setMin || gt(compver, setMin)) setMin = compver;
137029
+ break;
137030
+ case "<":
137031
+ case "<=": break;
137032
+ default: throw new Error(`Unexpected operation: ${comparator.operator}`);
137033
+ }
137034
+ });
137035
+ if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
137036
+ }
137037
+ if (minver && range.test(minver)) return minver;
137038
+ return null;
137039
+ };
137040
+ module.exports = minVersion;
137041
+ }));
137042
+ //#endregion
137043
+ //#region ../../packages/core-node/node_modules/semver/ranges/valid.js
137044
+ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137045
+ const Range = require_range();
137046
+ const validRange = (range, options) => {
137047
+ try {
137048
+ return new Range(range, options).range || "*";
137049
+ } catch (er) {
137050
+ return null;
137051
+ }
137052
+ };
137053
+ module.exports = validRange;
137054
+ }));
137055
+ //#endregion
137056
+ //#region ../../packages/core-node/node_modules/semver/ranges/outside.js
137057
+ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137058
+ const SemVer = require_semver$1();
137059
+ const Comparator = require_comparator();
137060
+ const { ANY } = Comparator;
137061
+ const Range = require_range();
137062
+ const satisfies = require_satisfies();
137063
+ const gt = require_gt();
137064
+ const lt = require_lt();
137065
+ const lte = require_lte();
137066
+ const gte = require_gte();
137067
+ const outside = (version, range, hilo, options) => {
137068
+ version = new SemVer(version, options);
137069
+ range = new Range(range, options);
137070
+ let gtfn, ltefn, ltfn, comp, ecomp;
137071
+ switch (hilo) {
137072
+ case ">":
137073
+ gtfn = gt;
137074
+ ltefn = lte;
137075
+ ltfn = lt;
137076
+ comp = ">";
137077
+ ecomp = ">=";
137078
+ break;
137079
+ case "<":
137080
+ gtfn = lt;
137081
+ ltefn = gte;
137082
+ ltfn = gt;
137083
+ comp = "<";
137084
+ ecomp = "<=";
137085
+ break;
137086
+ default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
137087
+ }
137088
+ if (satisfies(version, range, options)) return false;
137089
+ for (let i = 0; i < range.set.length; ++i) {
137090
+ const comparators = range.set[i];
137091
+ let high = null;
137092
+ let low = null;
137093
+ comparators.forEach((comparator) => {
137094
+ if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
137095
+ high = high || comparator;
137096
+ low = low || comparator;
137097
+ if (gtfn(comparator.semver, high.semver, options)) high = comparator;
137098
+ else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
137099
+ });
137100
+ if (high.operator === comp || high.operator === ecomp) return false;
137101
+ if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
137102
+ else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
137103
+ }
137104
+ return true;
137105
+ };
137106
+ module.exports = outside;
137107
+ }));
137108
+ //#endregion
137109
+ //#region ../../packages/core-node/node_modules/semver/ranges/gtr.js
137110
+ var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137111
+ const outside = require_outside();
137112
+ const gtr = (version, range, options) => outside(version, range, ">", options);
137113
+ module.exports = gtr;
137114
+ }));
137115
+ //#endregion
137116
+ //#region ../../packages/core-node/node_modules/semver/ranges/ltr.js
137117
+ var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137118
+ const outside = require_outside();
137119
+ const ltr = (version, range, options) => outside(version, range, "<", options);
137120
+ module.exports = ltr;
137121
+ }));
137122
+ //#endregion
137123
+ //#region ../../packages/core-node/node_modules/semver/ranges/intersects.js
137124
+ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137125
+ const Range = require_range();
137126
+ const intersects = (r1, r2, options) => {
137127
+ r1 = new Range(r1, options);
137128
+ r2 = new Range(r2, options);
137129
+ return r1.intersects(r2, options);
137130
+ };
137131
+ module.exports = intersects;
137132
+ }));
137133
+ //#endregion
137134
+ //#region ../../packages/core-node/node_modules/semver/ranges/simplify.js
137135
+ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137136
+ const satisfies = require_satisfies();
137137
+ const compare = require_compare();
137138
+ module.exports = (versions, range, options) => {
137139
+ const set = [];
137140
+ let first = null;
137141
+ let prev = null;
137142
+ const v = versions.sort((a, b) => compare(a, b, options));
137143
+ for (const version of v) if (satisfies(version, range, options)) {
137144
+ prev = version;
137145
+ if (!first) first = version;
137146
+ } else {
137147
+ if (prev) set.push([first, prev]);
137148
+ prev = null;
137149
+ first = null;
137150
+ }
137151
+ if (first) set.push([first, null]);
137152
+ const ranges = [];
137153
+ for (const [min, max] of set) if (min === max) ranges.push(min);
137154
+ else if (!max && min === v[0]) ranges.push("*");
137155
+ else if (!max) ranges.push(`>=${min}`);
137156
+ else if (min === v[0]) ranges.push(`<=${max}`);
137157
+ else ranges.push(`${min} - ${max}`);
137158
+ const simplified = ranges.join(" || ");
137159
+ const original = typeof range.raw === "string" ? range.raw : String(range);
137160
+ return simplified.length < original.length ? simplified : range;
137161
+ };
137162
+ }));
137163
+ //#endregion
137164
+ //#region ../../packages/core-node/node_modules/semver/ranges/subset.js
137165
+ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137166
+ const Range = require_range();
137167
+ const Comparator = require_comparator();
137168
+ const { ANY } = Comparator;
137169
+ const satisfies = require_satisfies();
137170
+ const compare = require_compare();
137171
+ const subset = (sub, dom, options = {}) => {
137172
+ if (sub === dom) return true;
137173
+ sub = new Range(sub, options);
137174
+ dom = new Range(dom, options);
137175
+ let sawNonNull = false;
137176
+ OUTER: for (const simpleSub of sub.set) {
137177
+ for (const simpleDom of dom.set) {
137178
+ const isSub = simpleSubset(simpleSub, simpleDom, options);
137179
+ sawNonNull = sawNonNull || isSub !== null;
137180
+ if (isSub) continue OUTER;
137181
+ }
137182
+ if (sawNonNull) return false;
137183
+ }
137184
+ return true;
137185
+ };
137186
+ const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
137187
+ const minimumVersion = [new Comparator(">=0.0.0")];
137188
+ const simpleSubset = (sub, dom, options) => {
137189
+ if (sub === dom) return true;
137190
+ if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
137191
+ else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
137192
+ else sub = minimumVersion;
137193
+ if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
137194
+ else dom = minimumVersion;
137195
+ const eqSet = /* @__PURE__ */ new Set();
137196
+ let gt, lt;
137197
+ for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
137198
+ else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
137199
+ else eqSet.add(c.semver);
137200
+ if (eqSet.size > 1) return null;
137201
+ let gtltComp;
137202
+ if (gt && lt) {
137203
+ gtltComp = compare(gt.semver, lt.semver, options);
137204
+ if (gtltComp > 0) return null;
137205
+ else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
137206
+ }
137207
+ for (const eq of eqSet) {
137208
+ if (gt && !satisfies(eq, String(gt), options)) return null;
137209
+ if (lt && !satisfies(eq, String(lt), options)) return null;
137210
+ for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
137211
+ return true;
137212
+ }
137213
+ let higher, lower;
137214
+ let hasDomLT, hasDomGT;
137215
+ let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
137216
+ let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
137217
+ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
137218
+ for (const c of dom) {
137219
+ hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
137220
+ hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
137221
+ if (gt) {
137222
+ if (needDomGTPre) {
137223
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
137224
+ }
137225
+ if (c.operator === ">" || c.operator === ">=") {
137226
+ higher = higherGT(gt, c, options);
137227
+ if (higher === c && higher !== gt) return false;
137228
+ } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
137229
+ }
137230
+ if (lt) {
137231
+ if (needDomLTPre) {
137232
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
137233
+ }
137234
+ if (c.operator === "<" || c.operator === "<=") {
137235
+ lower = lowerLT(lt, c, options);
137236
+ if (lower === c && lower !== lt) return false;
137237
+ } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
137238
+ }
137239
+ if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
137240
+ }
137241
+ if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
137242
+ if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
137243
+ if (needDomGTPre || needDomLTPre) return false;
137244
+ return true;
137245
+ };
137246
+ const higherGT = (a, b, options) => {
137247
+ if (!a) return b;
137248
+ const comp = compare(a.semver, b.semver, options);
137249
+ return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
137250
+ };
137251
+ const lowerLT = (a, b, options) => {
137252
+ if (!a) return b;
137253
+ const comp = compare(a.semver, b.semver, options);
137254
+ return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
137255
+ };
137256
+ module.exports = subset;
137257
+ }));
137258
+ //#endregion
137259
+ //#region ../../packages/core-node/node_modules/semver/index.js
137260
+ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137261
+ const internalRe = require_re();
137262
+ const constants = require_constants();
137263
+ const SemVer = require_semver$1();
137264
+ const identifiers = require_identifiers();
137265
+ module.exports = {
137266
+ parse: require_parse(),
137267
+ valid: require_valid$1(),
137268
+ clean: require_clean(),
137269
+ inc: require_inc(),
137270
+ diff: require_diff(),
137271
+ major: require_major(),
137272
+ minor: require_minor(),
137273
+ patch: require_patch(),
137274
+ prerelease: require_prerelease(),
137275
+ compare: require_compare(),
137276
+ rcompare: require_rcompare(),
137277
+ compareLoose: require_compare_loose(),
137278
+ compareBuild: require_compare_build(),
137279
+ sort: require_sort(),
137280
+ rsort: require_rsort(),
137281
+ gt: require_gt(),
137282
+ lt: require_lt(),
137283
+ eq: require_eq(),
137284
+ neq: require_neq(),
137285
+ gte: require_gte(),
137286
+ lte: require_lte(),
137287
+ cmp: require_cmp(),
137288
+ coerce: require_coerce(),
137289
+ Comparator: require_comparator(),
137290
+ Range: require_range(),
137291
+ satisfies: require_satisfies(),
137292
+ toComparators: require_to_comparators(),
137293
+ maxSatisfying: require_max_satisfying(),
137294
+ minSatisfying: require_min_satisfying(),
137295
+ minVersion: require_min_version(),
137296
+ validRange: require_valid(),
137297
+ outside: require_outside(),
137298
+ gtr: require_gtr(),
137299
+ ltr: require_ltr(),
137300
+ intersects: require_intersects(),
137301
+ simplifyRange: require_simplify(),
137302
+ subset: require_subset(),
137303
+ SemVer,
137304
+ re: internalRe.re,
137305
+ src: internalRe.src,
137306
+ tokens: internalRe.t,
137307
+ SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
137308
+ RELEASE_TYPES: constants.RELEASE_TYPES,
137309
+ compareIdentifiers: identifiers.compareIdentifiers,
137310
+ rcompareIdentifiers: identifiers.rcompareIdentifiers
137311
+ };
137312
+ }));
137313
+ //#endregion
134437
137314
  //#region ../../node_modules/serve-handler/src/glob-slash.js
134438
137315
  var require_glob_slash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
134439
137316
  const path$4 = __require("path");
@@ -141823,11 +144700,32 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
141823
144700
  stream.pipe(response);
141824
144701
  };
141825
144702
  })))();
144703
+ require_semver();
141826
144704
  require_lib();
141827
144705
  //#endregion
141828
144706
  //#region ../../packages/core-node/src/handler-func.ts
141829
144707
  const { join: join$1 } = path;
141830
144708
  //#endregion
144709
+ //#region ../../packages/core-node/src/handlers/plugins.ts
144710
+ const localPluginsMap = /* @__PURE__ */ new Map();
144711
+ if (isDev && projectRoot) {
144712
+ const pluginsDir = join(projectRoot, "plugins");
144713
+ if (existsSync(pluginsDir)) try {
144714
+ const entries = readdirSync(pluginsDir, { withFileTypes: true });
144715
+ for (const entry of entries) if (entry.isDirectory()) {
144716
+ const pkgPath = join(pluginsDir, entry.name, "package.json");
144717
+ if (existsSync(pkgPath)) try {
144718
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
144719
+ if (pkg.name) localPluginsMap.set(pkg.name, join(pluginsDir, entry.name));
144720
+ } catch (e) {
144721
+ console.error(`[Plugins] Failed to parse package.json for ${entry.name}:`, e);
144722
+ }
144723
+ }
144724
+ } catch (e) {
144725
+ console.error(`[Plugins] Failed to scan local workspace plugins directory:`, e);
144726
+ }
144727
+ }
144728
+ //#endregion
141831
144729
  //#region ../plugin-core/src/pipelab.ts
141832
144730
  const createActionRunner = (runner) => runner;
141833
144731
  const createEventRunner = (runner) => runner;
@@ -141922,37 +144820,28 @@ const sleepActionRunner = createActionRunner(async ({ inputs }) => {
141922
144820
  });
141923
144821
  //#endregion
141924
144822
  //#region src/index.ts
141925
- var src_default = createNodeDefinition({
141926
- id: "system",
141927
- description: "System",
141928
- name: "System",
141929
- icon: {
141930
- type: "icon",
141931
- icon: "mdi-cog-outline"
144823
+ var src_default = createNodeDefinition({ nodes: [
144824
+ {
144825
+ node: logAction,
144826
+ runner: logActionRunner
141932
144827
  },
141933
- nodes: [
141934
- {
141935
- node: logAction,
141936
- runner: logActionRunner
141937
- },
141938
- {
141939
- node: manualEvent,
141940
- runner: manualEvaluator
141941
- },
141942
- {
141943
- node: alertAction,
141944
- runner: alertActionRunner
141945
- },
141946
- {
141947
- node: promptAction,
141948
- runner: promptActionRunner
141949
- },
141950
- {
141951
- node: sleepAction,
141952
- runner: sleepActionRunner
141953
- }
141954
- ]
141955
- });
144828
+ {
144829
+ node: manualEvent,
144830
+ runner: manualEvaluator
144831
+ },
144832
+ {
144833
+ node: alertAction,
144834
+ runner: alertActionRunner
144835
+ },
144836
+ {
144837
+ node: promptAction,
144838
+ runner: promptActionRunner
144839
+ },
144840
+ {
144841
+ node: sleepAction,
144842
+ runner: sleepActionRunner
144843
+ }
144844
+ ] });
141956
144845
  //#endregion
141957
144846
  export { src_default as default };
141958
144847