@wix/create-app 0.0.203 → 0.0.205

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.
@@ -2479,6 +2479,1960 @@ var require_is_git_url = __commonJS({
2479
2479
  }
2480
2480
  });
2481
2481
 
2482
+ // ../../node_modules/semver/internal/constants.js
2483
+ var require_constants = __commonJS({
2484
+ "../../node_modules/semver/internal/constants.js"(exports, module) {
2485
+ "use strict";
2486
+ init_esm_shims();
2487
+ var SEMVER_SPEC_VERSION = "2.0.0";
2488
+ var MAX_LENGTH = 256;
2489
+ var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
2490
+ 9007199254740991;
2491
+ var MAX_SAFE_COMPONENT_LENGTH = 16;
2492
+ var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
2493
+ var RELEASE_TYPES = [
2494
+ "major",
2495
+ "premajor",
2496
+ "minor",
2497
+ "preminor",
2498
+ "patch",
2499
+ "prepatch",
2500
+ "prerelease"
2501
+ ];
2502
+ module.exports = {
2503
+ MAX_LENGTH,
2504
+ MAX_SAFE_COMPONENT_LENGTH,
2505
+ MAX_SAFE_BUILD_LENGTH,
2506
+ MAX_SAFE_INTEGER,
2507
+ RELEASE_TYPES,
2508
+ SEMVER_SPEC_VERSION,
2509
+ FLAG_INCLUDE_PRERELEASE: 1,
2510
+ FLAG_LOOSE: 2
2511
+ };
2512
+ }
2513
+ });
2514
+
2515
+ // ../../node_modules/semver/internal/debug.js
2516
+ var require_debug = __commonJS({
2517
+ "../../node_modules/semver/internal/debug.js"(exports, module) {
2518
+ "use strict";
2519
+ init_esm_shims();
2520
+ var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
2521
+ };
2522
+ module.exports = debug;
2523
+ }
2524
+ });
2525
+
2526
+ // ../../node_modules/semver/internal/re.js
2527
+ var require_re = __commonJS({
2528
+ "../../node_modules/semver/internal/re.js"(exports, module) {
2529
+ "use strict";
2530
+ init_esm_shims();
2531
+ var {
2532
+ MAX_SAFE_COMPONENT_LENGTH,
2533
+ MAX_SAFE_BUILD_LENGTH,
2534
+ MAX_LENGTH
2535
+ } = require_constants();
2536
+ var debug = require_debug();
2537
+ exports = module.exports = {};
2538
+ var re = exports.re = [];
2539
+ var safeRe = exports.safeRe = [];
2540
+ var src = exports.src = [];
2541
+ var safeSrc = exports.safeSrc = [];
2542
+ var t = exports.t = {};
2543
+ var R = 0;
2544
+ var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
2545
+ var safeRegexReplacements = [
2546
+ ["\\s", 1],
2547
+ ["\\d", MAX_LENGTH],
2548
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
2549
+ ];
2550
+ var makeSafeRegex = (value) => {
2551
+ for (const [token, max] of safeRegexReplacements) {
2552
+ value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
2553
+ }
2554
+ return value;
2555
+ };
2556
+ var createToken = (name, value, isGlobal) => {
2557
+ const safe = makeSafeRegex(value);
2558
+ const index = R++;
2559
+ debug(name, index, value);
2560
+ t[name] = index;
2561
+ src[index] = value;
2562
+ safeSrc[index] = safe;
2563
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
2564
+ safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
2565
+ };
2566
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
2567
+ createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
2568
+ createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
2569
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
2570
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
2571
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
2572
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
2573
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
2574
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
2575
+ createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
2576
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
2577
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
2578
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
2579
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
2580
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
2581
+ createToken("GTLT", "((?:<|>)?=?)");
2582
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
2583
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
2584
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
2585
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
2586
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
2587
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
2588
+ createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
2589
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
2590
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
2591
+ createToken("COERCERTL", src[t.COERCE], true);
2592
+ createToken("COERCERTLFULL", src[t.COERCEFULL], true);
2593
+ createToken("LONETILDE", "(?:~>?)");
2594
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
2595
+ exports.tildeTrimReplace = "$1~";
2596
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
2597
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
2598
+ createToken("LONECARET", "(?:\\^)");
2599
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
2600
+ exports.caretTrimReplace = "$1^";
2601
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
2602
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
2603
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
2604
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
2605
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
2606
+ exports.comparatorTrimReplace = "$1$2$3";
2607
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
2608
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
2609
+ createToken("STAR", "(<|>)?=?\\s*\\*");
2610
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
2611
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
2612
+ }
2613
+ });
2614
+
2615
+ // ../../node_modules/semver/internal/parse-options.js
2616
+ var require_parse_options = __commonJS({
2617
+ "../../node_modules/semver/internal/parse-options.js"(exports, module) {
2618
+ "use strict";
2619
+ init_esm_shims();
2620
+ var looseOption = Object.freeze({ loose: true });
2621
+ var emptyOpts = Object.freeze({});
2622
+ var parseOptions = (options) => {
2623
+ if (!options) {
2624
+ return emptyOpts;
2625
+ }
2626
+ if (typeof options !== "object") {
2627
+ return looseOption;
2628
+ }
2629
+ return options;
2630
+ };
2631
+ module.exports = parseOptions;
2632
+ }
2633
+ });
2634
+
2635
+ // ../../node_modules/semver/internal/identifiers.js
2636
+ var require_identifiers = __commonJS({
2637
+ "../../node_modules/semver/internal/identifiers.js"(exports, module) {
2638
+ "use strict";
2639
+ init_esm_shims();
2640
+ var numeric = /^[0-9]+$/;
2641
+ var compareIdentifiers = (a, b) => {
2642
+ const anum = numeric.test(a);
2643
+ const bnum = numeric.test(b);
2644
+ if (anum && bnum) {
2645
+ a = +a;
2646
+ b = +b;
2647
+ }
2648
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
2649
+ };
2650
+ var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
2651
+ module.exports = {
2652
+ compareIdentifiers,
2653
+ rcompareIdentifiers
2654
+ };
2655
+ }
2656
+ });
2657
+
2658
+ // ../../node_modules/semver/classes/semver.js
2659
+ var require_semver = __commonJS({
2660
+ "../../node_modules/semver/classes/semver.js"(exports, module) {
2661
+ "use strict";
2662
+ init_esm_shims();
2663
+ var debug = require_debug();
2664
+ var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
2665
+ var { safeRe: re, safeSrc: src, t } = require_re();
2666
+ var parseOptions = require_parse_options();
2667
+ var { compareIdentifiers } = require_identifiers();
2668
+ var SemVer = class _SemVer {
2669
+ constructor(version, options) {
2670
+ options = parseOptions(options);
2671
+ if (version instanceof _SemVer) {
2672
+ if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
2673
+ return version;
2674
+ } else {
2675
+ version = version.version;
2676
+ }
2677
+ } else if (typeof version !== "string") {
2678
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
2679
+ }
2680
+ if (version.length > MAX_LENGTH) {
2681
+ throw new TypeError(
2682
+ `version is longer than ${MAX_LENGTH} characters`
2683
+ );
2684
+ }
2685
+ debug("SemVer", version, options);
2686
+ this.options = options;
2687
+ this.loose = !!options.loose;
2688
+ this.includePrerelease = !!options.includePrerelease;
2689
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
2690
+ if (!m) {
2691
+ throw new TypeError(`Invalid Version: ${version}`);
2692
+ }
2693
+ this.raw = version;
2694
+ this.major = +m[1];
2695
+ this.minor = +m[2];
2696
+ this.patch = +m[3];
2697
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
2698
+ throw new TypeError("Invalid major version");
2699
+ }
2700
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
2701
+ throw new TypeError("Invalid minor version");
2702
+ }
2703
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
2704
+ throw new TypeError("Invalid patch version");
2705
+ }
2706
+ if (!m[4]) {
2707
+ this.prerelease = [];
2708
+ } else {
2709
+ this.prerelease = m[4].split(".").map((id) => {
2710
+ if (/^[0-9]+$/.test(id)) {
2711
+ const num = +id;
2712
+ if (num >= 0 && num < MAX_SAFE_INTEGER) {
2713
+ return num;
2714
+ }
2715
+ }
2716
+ return id;
2717
+ });
2718
+ }
2719
+ this.build = m[5] ? m[5].split(".") : [];
2720
+ this.format();
2721
+ }
2722
+ format() {
2723
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
2724
+ if (this.prerelease.length) {
2725
+ this.version += `-${this.prerelease.join(".")}`;
2726
+ }
2727
+ return this.version;
2728
+ }
2729
+ toString() {
2730
+ return this.version;
2731
+ }
2732
+ compare(other) {
2733
+ debug("SemVer.compare", this.version, this.options, other);
2734
+ if (!(other instanceof _SemVer)) {
2735
+ if (typeof other === "string" && other === this.version) {
2736
+ return 0;
2737
+ }
2738
+ other = new _SemVer(other, this.options);
2739
+ }
2740
+ if (other.version === this.version) {
2741
+ return 0;
2742
+ }
2743
+ return this.compareMain(other) || this.comparePre(other);
2744
+ }
2745
+ compareMain(other) {
2746
+ if (!(other instanceof _SemVer)) {
2747
+ other = new _SemVer(other, this.options);
2748
+ }
2749
+ return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
2750
+ }
2751
+ comparePre(other) {
2752
+ if (!(other instanceof _SemVer)) {
2753
+ other = new _SemVer(other, this.options);
2754
+ }
2755
+ if (this.prerelease.length && !other.prerelease.length) {
2756
+ return -1;
2757
+ } else if (!this.prerelease.length && other.prerelease.length) {
2758
+ return 1;
2759
+ } else if (!this.prerelease.length && !other.prerelease.length) {
2760
+ return 0;
2761
+ }
2762
+ let i = 0;
2763
+ do {
2764
+ const a = this.prerelease[i];
2765
+ const b = other.prerelease[i];
2766
+ debug("prerelease compare", i, a, b);
2767
+ if (a === void 0 && b === void 0) {
2768
+ return 0;
2769
+ } else if (b === void 0) {
2770
+ return 1;
2771
+ } else if (a === void 0) {
2772
+ return -1;
2773
+ } else if (a === b) {
2774
+ continue;
2775
+ } else {
2776
+ return compareIdentifiers(a, b);
2777
+ }
2778
+ } while (++i);
2779
+ }
2780
+ compareBuild(other) {
2781
+ if (!(other instanceof _SemVer)) {
2782
+ other = new _SemVer(other, this.options);
2783
+ }
2784
+ let i = 0;
2785
+ do {
2786
+ const a = this.build[i];
2787
+ const b = other.build[i];
2788
+ debug("build compare", i, a, b);
2789
+ if (a === void 0 && b === void 0) {
2790
+ return 0;
2791
+ } else if (b === void 0) {
2792
+ return 1;
2793
+ } else if (a === void 0) {
2794
+ return -1;
2795
+ } else if (a === b) {
2796
+ continue;
2797
+ } else {
2798
+ return compareIdentifiers(a, b);
2799
+ }
2800
+ } while (++i);
2801
+ }
2802
+ // preminor will bump the version up to the next minor release, and immediately
2803
+ // down to pre-release. premajor and prepatch work the same way.
2804
+ inc(release, identifier, identifierBase) {
2805
+ if (release.startsWith("pre")) {
2806
+ if (!identifier && identifierBase === false) {
2807
+ throw new Error("invalid increment argument: identifier is empty");
2808
+ }
2809
+ if (identifier) {
2810
+ const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
2811
+ const match = `-${identifier}`.match(r);
2812
+ if (!match || match[1] !== identifier) {
2813
+ throw new Error(`invalid identifier: ${identifier}`);
2814
+ }
2815
+ }
2816
+ }
2817
+ switch (release) {
2818
+ case "premajor":
2819
+ this.prerelease.length = 0;
2820
+ this.patch = 0;
2821
+ this.minor = 0;
2822
+ this.major++;
2823
+ this.inc("pre", identifier, identifierBase);
2824
+ break;
2825
+ case "preminor":
2826
+ this.prerelease.length = 0;
2827
+ this.patch = 0;
2828
+ this.minor++;
2829
+ this.inc("pre", identifier, identifierBase);
2830
+ break;
2831
+ case "prepatch":
2832
+ this.prerelease.length = 0;
2833
+ this.inc("patch", identifier, identifierBase);
2834
+ this.inc("pre", identifier, identifierBase);
2835
+ break;
2836
+ // If the input is a non-prerelease version, this acts the same as
2837
+ // prepatch.
2838
+ case "prerelease":
2839
+ if (this.prerelease.length === 0) {
2840
+ this.inc("patch", identifier, identifierBase);
2841
+ }
2842
+ this.inc("pre", identifier, identifierBase);
2843
+ break;
2844
+ case "release":
2845
+ if (this.prerelease.length === 0) {
2846
+ throw new Error(`version ${this.raw} is not a prerelease`);
2847
+ }
2848
+ this.prerelease.length = 0;
2849
+ break;
2850
+ case "major":
2851
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
2852
+ this.major++;
2853
+ }
2854
+ this.minor = 0;
2855
+ this.patch = 0;
2856
+ this.prerelease = [];
2857
+ break;
2858
+ case "minor":
2859
+ if (this.patch !== 0 || this.prerelease.length === 0) {
2860
+ this.minor++;
2861
+ }
2862
+ this.patch = 0;
2863
+ this.prerelease = [];
2864
+ break;
2865
+ case "patch":
2866
+ if (this.prerelease.length === 0) {
2867
+ this.patch++;
2868
+ }
2869
+ this.prerelease = [];
2870
+ break;
2871
+ // This probably shouldn't be used publicly.
2872
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
2873
+ case "pre": {
2874
+ const base = Number(identifierBase) ? 1 : 0;
2875
+ if (this.prerelease.length === 0) {
2876
+ this.prerelease = [base];
2877
+ } else {
2878
+ let i = this.prerelease.length;
2879
+ while (--i >= 0) {
2880
+ if (typeof this.prerelease[i] === "number") {
2881
+ this.prerelease[i]++;
2882
+ i = -2;
2883
+ }
2884
+ }
2885
+ if (i === -1) {
2886
+ if (identifier === this.prerelease.join(".") && identifierBase === false) {
2887
+ throw new Error("invalid increment argument: identifier already exists");
2888
+ }
2889
+ this.prerelease.push(base);
2890
+ }
2891
+ }
2892
+ if (identifier) {
2893
+ let prerelease = [identifier, base];
2894
+ if (identifierBase === false) {
2895
+ prerelease = [identifier];
2896
+ }
2897
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
2898
+ if (isNaN(this.prerelease[1])) {
2899
+ this.prerelease = prerelease;
2900
+ }
2901
+ } else {
2902
+ this.prerelease = prerelease;
2903
+ }
2904
+ }
2905
+ break;
2906
+ }
2907
+ default:
2908
+ throw new Error(`invalid increment argument: ${release}`);
2909
+ }
2910
+ this.raw = this.format();
2911
+ if (this.build.length) {
2912
+ this.raw += `+${this.build.join(".")}`;
2913
+ }
2914
+ return this;
2915
+ }
2916
+ };
2917
+ module.exports = SemVer;
2918
+ }
2919
+ });
2920
+
2921
+ // ../../node_modules/semver/functions/parse.js
2922
+ var require_parse2 = __commonJS({
2923
+ "../../node_modules/semver/functions/parse.js"(exports, module) {
2924
+ "use strict";
2925
+ init_esm_shims();
2926
+ var SemVer = require_semver();
2927
+ var parse = (version, options, throwErrors = false) => {
2928
+ if (version instanceof SemVer) {
2929
+ return version;
2930
+ }
2931
+ try {
2932
+ return new SemVer(version, options);
2933
+ } catch (er) {
2934
+ if (!throwErrors) {
2935
+ return null;
2936
+ }
2937
+ throw er;
2938
+ }
2939
+ };
2940
+ module.exports = parse;
2941
+ }
2942
+ });
2943
+
2944
+ // ../../node_modules/semver/functions/valid.js
2945
+ var require_valid = __commonJS({
2946
+ "../../node_modules/semver/functions/valid.js"(exports, module) {
2947
+ "use strict";
2948
+ init_esm_shims();
2949
+ var parse = require_parse2();
2950
+ var valid = (version, options) => {
2951
+ const v = parse(version, options);
2952
+ return v ? v.version : null;
2953
+ };
2954
+ module.exports = valid;
2955
+ }
2956
+ });
2957
+
2958
+ // ../../node_modules/semver/functions/clean.js
2959
+ var require_clean = __commonJS({
2960
+ "../../node_modules/semver/functions/clean.js"(exports, module) {
2961
+ "use strict";
2962
+ init_esm_shims();
2963
+ var parse = require_parse2();
2964
+ var clean = (version, options) => {
2965
+ const s = parse(version.trim().replace(/^[=v]+/, ""), options);
2966
+ return s ? s.version : null;
2967
+ };
2968
+ module.exports = clean;
2969
+ }
2970
+ });
2971
+
2972
+ // ../../node_modules/semver/functions/inc.js
2973
+ var require_inc = __commonJS({
2974
+ "../../node_modules/semver/functions/inc.js"(exports, module) {
2975
+ "use strict";
2976
+ init_esm_shims();
2977
+ var SemVer = require_semver();
2978
+ var inc = (version, release, options, identifier, identifierBase) => {
2979
+ if (typeof options === "string") {
2980
+ identifierBase = identifier;
2981
+ identifier = options;
2982
+ options = void 0;
2983
+ }
2984
+ try {
2985
+ return new SemVer(
2986
+ version instanceof SemVer ? version.version : version,
2987
+ options
2988
+ ).inc(release, identifier, identifierBase).version;
2989
+ } catch (er) {
2990
+ return null;
2991
+ }
2992
+ };
2993
+ module.exports = inc;
2994
+ }
2995
+ });
2996
+
2997
+ // ../../node_modules/semver/functions/diff.js
2998
+ var require_diff = __commonJS({
2999
+ "../../node_modules/semver/functions/diff.js"(exports, module) {
3000
+ "use strict";
3001
+ init_esm_shims();
3002
+ var parse = require_parse2();
3003
+ var diff = (version1, version2) => {
3004
+ const v1 = parse(version1, null, true);
3005
+ const v2 = parse(version2, null, true);
3006
+ const comparison = v1.compare(v2);
3007
+ if (comparison === 0) {
3008
+ return null;
3009
+ }
3010
+ const v1Higher = comparison > 0;
3011
+ const highVersion = v1Higher ? v1 : v2;
3012
+ const lowVersion = v1Higher ? v2 : v1;
3013
+ const highHasPre = !!highVersion.prerelease.length;
3014
+ const lowHasPre = !!lowVersion.prerelease.length;
3015
+ if (lowHasPre && !highHasPre) {
3016
+ if (!lowVersion.patch && !lowVersion.minor) {
3017
+ return "major";
3018
+ }
3019
+ if (lowVersion.compareMain(highVersion) === 0) {
3020
+ if (lowVersion.minor && !lowVersion.patch) {
3021
+ return "minor";
3022
+ }
3023
+ return "patch";
3024
+ }
3025
+ }
3026
+ const prefix = highHasPre ? "pre" : "";
3027
+ if (v1.major !== v2.major) {
3028
+ return prefix + "major";
3029
+ }
3030
+ if (v1.minor !== v2.minor) {
3031
+ return prefix + "minor";
3032
+ }
3033
+ if (v1.patch !== v2.patch) {
3034
+ return prefix + "patch";
3035
+ }
3036
+ return "prerelease";
3037
+ };
3038
+ module.exports = diff;
3039
+ }
3040
+ });
3041
+
3042
+ // ../../node_modules/semver/functions/major.js
3043
+ var require_major = __commonJS({
3044
+ "../../node_modules/semver/functions/major.js"(exports, module) {
3045
+ "use strict";
3046
+ init_esm_shims();
3047
+ var SemVer = require_semver();
3048
+ var major = (a, loose) => new SemVer(a, loose).major;
3049
+ module.exports = major;
3050
+ }
3051
+ });
3052
+
3053
+ // ../../node_modules/semver/functions/minor.js
3054
+ var require_minor = __commonJS({
3055
+ "../../node_modules/semver/functions/minor.js"(exports, module) {
3056
+ "use strict";
3057
+ init_esm_shims();
3058
+ var SemVer = require_semver();
3059
+ var minor = (a, loose) => new SemVer(a, loose).minor;
3060
+ module.exports = minor;
3061
+ }
3062
+ });
3063
+
3064
+ // ../../node_modules/semver/functions/patch.js
3065
+ var require_patch = __commonJS({
3066
+ "../../node_modules/semver/functions/patch.js"(exports, module) {
3067
+ "use strict";
3068
+ init_esm_shims();
3069
+ var SemVer = require_semver();
3070
+ var patch = (a, loose) => new SemVer(a, loose).patch;
3071
+ module.exports = patch;
3072
+ }
3073
+ });
3074
+
3075
+ // ../../node_modules/semver/functions/prerelease.js
3076
+ var require_prerelease = __commonJS({
3077
+ "../../node_modules/semver/functions/prerelease.js"(exports, module) {
3078
+ "use strict";
3079
+ init_esm_shims();
3080
+ var parse = require_parse2();
3081
+ var prerelease = (version, options) => {
3082
+ const parsed = parse(version, options);
3083
+ return parsed && parsed.prerelease.length ? parsed.prerelease : null;
3084
+ };
3085
+ module.exports = prerelease;
3086
+ }
3087
+ });
3088
+
3089
+ // ../../node_modules/semver/functions/compare.js
3090
+ var require_compare = __commonJS({
3091
+ "../../node_modules/semver/functions/compare.js"(exports, module) {
3092
+ "use strict";
3093
+ init_esm_shims();
3094
+ var SemVer = require_semver();
3095
+ var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
3096
+ module.exports = compare;
3097
+ }
3098
+ });
3099
+
3100
+ // ../../node_modules/semver/functions/rcompare.js
3101
+ var require_rcompare = __commonJS({
3102
+ "../../node_modules/semver/functions/rcompare.js"(exports, module) {
3103
+ "use strict";
3104
+ init_esm_shims();
3105
+ var compare = require_compare();
3106
+ var rcompare = (a, b, loose) => compare(b, a, loose);
3107
+ module.exports = rcompare;
3108
+ }
3109
+ });
3110
+
3111
+ // ../../node_modules/semver/functions/compare-loose.js
3112
+ var require_compare_loose = __commonJS({
3113
+ "../../node_modules/semver/functions/compare-loose.js"(exports, module) {
3114
+ "use strict";
3115
+ init_esm_shims();
3116
+ var compare = require_compare();
3117
+ var compareLoose = (a, b) => compare(a, b, true);
3118
+ module.exports = compareLoose;
3119
+ }
3120
+ });
3121
+
3122
+ // ../../node_modules/semver/functions/compare-build.js
3123
+ var require_compare_build = __commonJS({
3124
+ "../../node_modules/semver/functions/compare-build.js"(exports, module) {
3125
+ "use strict";
3126
+ init_esm_shims();
3127
+ var SemVer = require_semver();
3128
+ var compareBuild = (a, b, loose) => {
3129
+ const versionA = new SemVer(a, loose);
3130
+ const versionB = new SemVer(b, loose);
3131
+ return versionA.compare(versionB) || versionA.compareBuild(versionB);
3132
+ };
3133
+ module.exports = compareBuild;
3134
+ }
3135
+ });
3136
+
3137
+ // ../../node_modules/semver/functions/sort.js
3138
+ var require_sort = __commonJS({
3139
+ "../../node_modules/semver/functions/sort.js"(exports, module) {
3140
+ "use strict";
3141
+ init_esm_shims();
3142
+ var compareBuild = require_compare_build();
3143
+ var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
3144
+ module.exports = sort;
3145
+ }
3146
+ });
3147
+
3148
+ // ../../node_modules/semver/functions/rsort.js
3149
+ var require_rsort = __commonJS({
3150
+ "../../node_modules/semver/functions/rsort.js"(exports, module) {
3151
+ "use strict";
3152
+ init_esm_shims();
3153
+ var compareBuild = require_compare_build();
3154
+ var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
3155
+ module.exports = rsort;
3156
+ }
3157
+ });
3158
+
3159
+ // ../../node_modules/semver/functions/gt.js
3160
+ var require_gt = __commonJS({
3161
+ "../../node_modules/semver/functions/gt.js"(exports, module) {
3162
+ "use strict";
3163
+ init_esm_shims();
3164
+ var compare = require_compare();
3165
+ var gt = (a, b, loose) => compare(a, b, loose) > 0;
3166
+ module.exports = gt;
3167
+ }
3168
+ });
3169
+
3170
+ // ../../node_modules/semver/functions/lt.js
3171
+ var require_lt = __commonJS({
3172
+ "../../node_modules/semver/functions/lt.js"(exports, module) {
3173
+ "use strict";
3174
+ init_esm_shims();
3175
+ var compare = require_compare();
3176
+ var lt = (a, b, loose) => compare(a, b, loose) < 0;
3177
+ module.exports = lt;
3178
+ }
3179
+ });
3180
+
3181
+ // ../../node_modules/semver/functions/eq.js
3182
+ var require_eq = __commonJS({
3183
+ "../../node_modules/semver/functions/eq.js"(exports, module) {
3184
+ "use strict";
3185
+ init_esm_shims();
3186
+ var compare = require_compare();
3187
+ var eq = (a, b, loose) => compare(a, b, loose) === 0;
3188
+ module.exports = eq;
3189
+ }
3190
+ });
3191
+
3192
+ // ../../node_modules/semver/functions/neq.js
3193
+ var require_neq = __commonJS({
3194
+ "../../node_modules/semver/functions/neq.js"(exports, module) {
3195
+ "use strict";
3196
+ init_esm_shims();
3197
+ var compare = require_compare();
3198
+ var neq = (a, b, loose) => compare(a, b, loose) !== 0;
3199
+ module.exports = neq;
3200
+ }
3201
+ });
3202
+
3203
+ // ../../node_modules/semver/functions/gte.js
3204
+ var require_gte = __commonJS({
3205
+ "../../node_modules/semver/functions/gte.js"(exports, module) {
3206
+ "use strict";
3207
+ init_esm_shims();
3208
+ var compare = require_compare();
3209
+ var gte = (a, b, loose) => compare(a, b, loose) >= 0;
3210
+ module.exports = gte;
3211
+ }
3212
+ });
3213
+
3214
+ // ../../node_modules/semver/functions/lte.js
3215
+ var require_lte = __commonJS({
3216
+ "../../node_modules/semver/functions/lte.js"(exports, module) {
3217
+ "use strict";
3218
+ init_esm_shims();
3219
+ var compare = require_compare();
3220
+ var lte = (a, b, loose) => compare(a, b, loose) <= 0;
3221
+ module.exports = lte;
3222
+ }
3223
+ });
3224
+
3225
+ // ../../node_modules/semver/functions/cmp.js
3226
+ var require_cmp = __commonJS({
3227
+ "../../node_modules/semver/functions/cmp.js"(exports, module) {
3228
+ "use strict";
3229
+ init_esm_shims();
3230
+ var eq = require_eq();
3231
+ var neq = require_neq();
3232
+ var gt = require_gt();
3233
+ var gte = require_gte();
3234
+ var lt = require_lt();
3235
+ var lte = require_lte();
3236
+ var cmp = (a, op, b, loose) => {
3237
+ switch (op) {
3238
+ case "===":
3239
+ if (typeof a === "object") {
3240
+ a = a.version;
3241
+ }
3242
+ if (typeof b === "object") {
3243
+ b = b.version;
3244
+ }
3245
+ return a === b;
3246
+ case "!==":
3247
+ if (typeof a === "object") {
3248
+ a = a.version;
3249
+ }
3250
+ if (typeof b === "object") {
3251
+ b = b.version;
3252
+ }
3253
+ return a !== b;
3254
+ case "":
3255
+ case "=":
3256
+ case "==":
3257
+ return eq(a, b, loose);
3258
+ case "!=":
3259
+ return neq(a, b, loose);
3260
+ case ">":
3261
+ return gt(a, b, loose);
3262
+ case ">=":
3263
+ return gte(a, b, loose);
3264
+ case "<":
3265
+ return lt(a, b, loose);
3266
+ case "<=":
3267
+ return lte(a, b, loose);
3268
+ default:
3269
+ throw new TypeError(`Invalid operator: ${op}`);
3270
+ }
3271
+ };
3272
+ module.exports = cmp;
3273
+ }
3274
+ });
3275
+
3276
+ // ../../node_modules/semver/functions/coerce.js
3277
+ var require_coerce = __commonJS({
3278
+ "../../node_modules/semver/functions/coerce.js"(exports, module) {
3279
+ "use strict";
3280
+ init_esm_shims();
3281
+ var SemVer = require_semver();
3282
+ var parse = require_parse2();
3283
+ var { safeRe: re, t } = require_re();
3284
+ var coerce2 = (version, options) => {
3285
+ if (version instanceof SemVer) {
3286
+ return version;
3287
+ }
3288
+ if (typeof version === "number") {
3289
+ version = String(version);
3290
+ }
3291
+ if (typeof version !== "string") {
3292
+ return null;
3293
+ }
3294
+ options = options || {};
3295
+ let match = null;
3296
+ if (!options.rtl) {
3297
+ match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
3298
+ } else {
3299
+ const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
3300
+ let next;
3301
+ while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
3302
+ if (!match || next.index + next[0].length !== match.index + match[0].length) {
3303
+ match = next;
3304
+ }
3305
+ coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
3306
+ }
3307
+ coerceRtlRegex.lastIndex = -1;
3308
+ }
3309
+ if (match === null) {
3310
+ return null;
3311
+ }
3312
+ const major = match[2];
3313
+ const minor = match[3] || "0";
3314
+ const patch = match[4] || "0";
3315
+ const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
3316
+ const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
3317
+ return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
3318
+ };
3319
+ module.exports = coerce2;
3320
+ }
3321
+ });
3322
+
3323
+ // ../../node_modules/semver/internal/lrucache.js
3324
+ var require_lrucache = __commonJS({
3325
+ "../../node_modules/semver/internal/lrucache.js"(exports, module) {
3326
+ "use strict";
3327
+ init_esm_shims();
3328
+ var LRUCache = class {
3329
+ constructor() {
3330
+ this.max = 1e3;
3331
+ this.map = /* @__PURE__ */ new Map();
3332
+ }
3333
+ get(key) {
3334
+ const value = this.map.get(key);
3335
+ if (value === void 0) {
3336
+ return void 0;
3337
+ } else {
3338
+ this.map.delete(key);
3339
+ this.map.set(key, value);
3340
+ return value;
3341
+ }
3342
+ }
3343
+ delete(key) {
3344
+ return this.map.delete(key);
3345
+ }
3346
+ set(key, value) {
3347
+ const deleted = this.delete(key);
3348
+ if (!deleted && value !== void 0) {
3349
+ if (this.map.size >= this.max) {
3350
+ const firstKey = this.map.keys().next().value;
3351
+ this.delete(firstKey);
3352
+ }
3353
+ this.map.set(key, value);
3354
+ }
3355
+ return this;
3356
+ }
3357
+ };
3358
+ module.exports = LRUCache;
3359
+ }
3360
+ });
3361
+
3362
+ // ../../node_modules/semver/classes/range.js
3363
+ var require_range = __commonJS({
3364
+ "../../node_modules/semver/classes/range.js"(exports, module) {
3365
+ "use strict";
3366
+ init_esm_shims();
3367
+ var SPACE_CHARACTERS = /\s+/g;
3368
+ var Range = class _Range {
3369
+ constructor(range, options) {
3370
+ options = parseOptions(options);
3371
+ if (range instanceof _Range) {
3372
+ if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
3373
+ return range;
3374
+ } else {
3375
+ return new _Range(range.raw, options);
3376
+ }
3377
+ }
3378
+ if (range instanceof Comparator) {
3379
+ this.raw = range.value;
3380
+ this.set = [[range]];
3381
+ this.formatted = void 0;
3382
+ return this;
3383
+ }
3384
+ this.options = options;
3385
+ this.loose = !!options.loose;
3386
+ this.includePrerelease = !!options.includePrerelease;
3387
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
3388
+ this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
3389
+ if (!this.set.length) {
3390
+ throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
3391
+ }
3392
+ if (this.set.length > 1) {
3393
+ const first = this.set[0];
3394
+ this.set = this.set.filter((c) => !isNullSet(c[0]));
3395
+ if (this.set.length === 0) {
3396
+ this.set = [first];
3397
+ } else if (this.set.length > 1) {
3398
+ for (const c of this.set) {
3399
+ if (c.length === 1 && isAny(c[0])) {
3400
+ this.set = [c];
3401
+ break;
3402
+ }
3403
+ }
3404
+ }
3405
+ }
3406
+ this.formatted = void 0;
3407
+ }
3408
+ get range() {
3409
+ if (this.formatted === void 0) {
3410
+ this.formatted = "";
3411
+ for (let i = 0; i < this.set.length; i++) {
3412
+ if (i > 0) {
3413
+ this.formatted += "||";
3414
+ }
3415
+ const comps = this.set[i];
3416
+ for (let k = 0; k < comps.length; k++) {
3417
+ if (k > 0) {
3418
+ this.formatted += " ";
3419
+ }
3420
+ this.formatted += comps[k].toString().trim();
3421
+ }
3422
+ }
3423
+ }
3424
+ return this.formatted;
3425
+ }
3426
+ format() {
3427
+ return this.range;
3428
+ }
3429
+ toString() {
3430
+ return this.range;
3431
+ }
3432
+ parseRange(range) {
3433
+ const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
3434
+ const memoKey = memoOpts + ":" + range;
3435
+ const cached = cache.get(memoKey);
3436
+ if (cached) {
3437
+ return cached;
3438
+ }
3439
+ const loose = this.options.loose;
3440
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
3441
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
3442
+ debug("hyphen replace", range);
3443
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
3444
+ debug("comparator trim", range);
3445
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
3446
+ debug("tilde trim", range);
3447
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
3448
+ debug("caret trim", range);
3449
+ let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
3450
+ if (loose) {
3451
+ rangeList = rangeList.filter((comp) => {
3452
+ debug("loose invalid filter", comp, this.options);
3453
+ return !!comp.match(re[t.COMPARATORLOOSE]);
3454
+ });
3455
+ }
3456
+ debug("range list", rangeList);
3457
+ const rangeMap = /* @__PURE__ */ new Map();
3458
+ const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
3459
+ for (const comp of comparators) {
3460
+ if (isNullSet(comp)) {
3461
+ return [comp];
3462
+ }
3463
+ rangeMap.set(comp.value, comp);
3464
+ }
3465
+ if (rangeMap.size > 1 && rangeMap.has("")) {
3466
+ rangeMap.delete("");
3467
+ }
3468
+ const result = [...rangeMap.values()];
3469
+ cache.set(memoKey, result);
3470
+ return result;
3471
+ }
3472
+ intersects(range, options) {
3473
+ if (!(range instanceof _Range)) {
3474
+ throw new TypeError("a Range is required");
3475
+ }
3476
+ return this.set.some((thisComparators) => {
3477
+ return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
3478
+ return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
3479
+ return rangeComparators.every((rangeComparator) => {
3480
+ return thisComparator.intersects(rangeComparator, options);
3481
+ });
3482
+ });
3483
+ });
3484
+ });
3485
+ }
3486
+ // if ANY of the sets match ALL of its comparators, then pass
3487
+ test(version) {
3488
+ if (!version) {
3489
+ return false;
3490
+ }
3491
+ if (typeof version === "string") {
3492
+ try {
3493
+ version = new SemVer(version, this.options);
3494
+ } catch (er) {
3495
+ return false;
3496
+ }
3497
+ }
3498
+ for (let i = 0; i < this.set.length; i++) {
3499
+ if (testSet(this.set[i], version, this.options)) {
3500
+ return true;
3501
+ }
3502
+ }
3503
+ return false;
3504
+ }
3505
+ };
3506
+ module.exports = Range;
3507
+ var LRU = require_lrucache();
3508
+ var cache = new LRU();
3509
+ var parseOptions = require_parse_options();
3510
+ var Comparator = require_comparator();
3511
+ var debug = require_debug();
3512
+ var SemVer = require_semver();
3513
+ var {
3514
+ safeRe: re,
3515
+ t,
3516
+ comparatorTrimReplace,
3517
+ tildeTrimReplace,
3518
+ caretTrimReplace
3519
+ } = require_re();
3520
+ var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
3521
+ var isNullSet = (c) => c.value === "<0.0.0-0";
3522
+ var isAny = (c) => c.value === "";
3523
+ var isSatisfiable = (comparators, options) => {
3524
+ let result = true;
3525
+ const remainingComparators = comparators.slice();
3526
+ let testComparator = remainingComparators.pop();
3527
+ while (result && remainingComparators.length) {
3528
+ result = remainingComparators.every((otherComparator) => {
3529
+ return testComparator.intersects(otherComparator, options);
3530
+ });
3531
+ testComparator = remainingComparators.pop();
3532
+ }
3533
+ return result;
3534
+ };
3535
+ var parseComparator = (comp, options) => {
3536
+ debug("comp", comp, options);
3537
+ comp = replaceCarets(comp, options);
3538
+ debug("caret", comp);
3539
+ comp = replaceTildes(comp, options);
3540
+ debug("tildes", comp);
3541
+ comp = replaceXRanges(comp, options);
3542
+ debug("xrange", comp);
3543
+ comp = replaceStars(comp, options);
3544
+ debug("stars", comp);
3545
+ return comp;
3546
+ };
3547
+ var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
3548
+ var replaceTildes = (comp, options) => {
3549
+ return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
3550
+ };
3551
+ var replaceTilde = (comp, options) => {
3552
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
3553
+ return comp.replace(r, (_, M, m, p, pr) => {
3554
+ debug("tilde", comp, _, M, m, p, pr);
3555
+ let ret;
3556
+ if (isX(M)) {
3557
+ ret = "";
3558
+ } else if (isX(m)) {
3559
+ ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
3560
+ } else if (isX(p)) {
3561
+ ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
3562
+ } else if (pr) {
3563
+ debug("replaceTilde pr", pr);
3564
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
3565
+ } else {
3566
+ ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
3567
+ }
3568
+ debug("tilde return", ret);
3569
+ return ret;
3570
+ });
3571
+ };
3572
+ var replaceCarets = (comp, options) => {
3573
+ return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
3574
+ };
3575
+ var replaceCaret = (comp, options) => {
3576
+ debug("caret", comp, options);
3577
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
3578
+ const z = options.includePrerelease ? "-0" : "";
3579
+ return comp.replace(r, (_, M, m, p, pr) => {
3580
+ debug("caret", comp, _, M, m, p, pr);
3581
+ let ret;
3582
+ if (isX(M)) {
3583
+ ret = "";
3584
+ } else if (isX(m)) {
3585
+ ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
3586
+ } else if (isX(p)) {
3587
+ if (M === "0") {
3588
+ ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
3589
+ } else {
3590
+ ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
3591
+ }
3592
+ } else if (pr) {
3593
+ debug("replaceCaret pr", pr);
3594
+ if (M === "0") {
3595
+ if (m === "0") {
3596
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
3597
+ } else {
3598
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
3599
+ }
3600
+ } else {
3601
+ ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
3602
+ }
3603
+ } else {
3604
+ debug("no pr");
3605
+ if (M === "0") {
3606
+ if (m === "0") {
3607
+ ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
3608
+ } else {
3609
+ ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
3610
+ }
3611
+ } else {
3612
+ ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
3613
+ }
3614
+ }
3615
+ debug("caret return", ret);
3616
+ return ret;
3617
+ });
3618
+ };
3619
+ var replaceXRanges = (comp, options) => {
3620
+ debug("replaceXRanges", comp, options);
3621
+ return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
3622
+ };
3623
+ var replaceXRange = (comp, options) => {
3624
+ comp = comp.trim();
3625
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
3626
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
3627
+ debug("xRange", comp, ret, gtlt, M, m, p, pr);
3628
+ const xM = isX(M);
3629
+ const xm = xM || isX(m);
3630
+ const xp = xm || isX(p);
3631
+ const anyX = xp;
3632
+ if (gtlt === "=" && anyX) {
3633
+ gtlt = "";
3634
+ }
3635
+ pr = options.includePrerelease ? "-0" : "";
3636
+ if (xM) {
3637
+ if (gtlt === ">" || gtlt === "<") {
3638
+ ret = "<0.0.0-0";
3639
+ } else {
3640
+ ret = "*";
3641
+ }
3642
+ } else if (gtlt && anyX) {
3643
+ if (xm) {
3644
+ m = 0;
3645
+ }
3646
+ p = 0;
3647
+ if (gtlt === ">") {
3648
+ gtlt = ">=";
3649
+ if (xm) {
3650
+ M = +M + 1;
3651
+ m = 0;
3652
+ p = 0;
3653
+ } else {
3654
+ m = +m + 1;
3655
+ p = 0;
3656
+ }
3657
+ } else if (gtlt === "<=") {
3658
+ gtlt = "<";
3659
+ if (xm) {
3660
+ M = +M + 1;
3661
+ } else {
3662
+ m = +m + 1;
3663
+ }
3664
+ }
3665
+ if (gtlt === "<") {
3666
+ pr = "-0";
3667
+ }
3668
+ ret = `${gtlt + M}.${m}.${p}${pr}`;
3669
+ } else if (xm) {
3670
+ ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
3671
+ } else if (xp) {
3672
+ ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
3673
+ }
3674
+ debug("xRange return", ret);
3675
+ return ret;
3676
+ });
3677
+ };
3678
+ var replaceStars = (comp, options) => {
3679
+ debug("replaceStars", comp, options);
3680
+ return comp.trim().replace(re[t.STAR], "");
3681
+ };
3682
+ var replaceGTE0 = (comp, options) => {
3683
+ debug("replaceGTE0", comp, options);
3684
+ return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
3685
+ };
3686
+ var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
3687
+ if (isX(fM)) {
3688
+ from = "";
3689
+ } else if (isX(fm)) {
3690
+ from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
3691
+ } else if (isX(fp)) {
3692
+ from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
3693
+ } else if (fpr) {
3694
+ from = `>=${from}`;
3695
+ } else {
3696
+ from = `>=${from}${incPr ? "-0" : ""}`;
3697
+ }
3698
+ if (isX(tM)) {
3699
+ to = "";
3700
+ } else if (isX(tm)) {
3701
+ to = `<${+tM + 1}.0.0-0`;
3702
+ } else if (isX(tp)) {
3703
+ to = `<${tM}.${+tm + 1}.0-0`;
3704
+ } else if (tpr) {
3705
+ to = `<=${tM}.${tm}.${tp}-${tpr}`;
3706
+ } else if (incPr) {
3707
+ to = `<${tM}.${tm}.${+tp + 1}-0`;
3708
+ } else {
3709
+ to = `<=${to}`;
3710
+ }
3711
+ return `${from} ${to}`.trim();
3712
+ };
3713
+ var testSet = (set, version, options) => {
3714
+ for (let i = 0; i < set.length; i++) {
3715
+ if (!set[i].test(version)) {
3716
+ return false;
3717
+ }
3718
+ }
3719
+ if (version.prerelease.length && !options.includePrerelease) {
3720
+ for (let i = 0; i < set.length; i++) {
3721
+ debug(set[i].semver);
3722
+ if (set[i].semver === Comparator.ANY) {
3723
+ continue;
3724
+ }
3725
+ if (set[i].semver.prerelease.length > 0) {
3726
+ const allowed = set[i].semver;
3727
+ if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
3728
+ return true;
3729
+ }
3730
+ }
3731
+ }
3732
+ return false;
3733
+ }
3734
+ return true;
3735
+ };
3736
+ }
3737
+ });
3738
+
3739
+ // ../../node_modules/semver/classes/comparator.js
3740
+ var require_comparator = __commonJS({
3741
+ "../../node_modules/semver/classes/comparator.js"(exports, module) {
3742
+ "use strict";
3743
+ init_esm_shims();
3744
+ var ANY = Symbol("SemVer ANY");
3745
+ var Comparator = class _Comparator {
3746
+ static get ANY() {
3747
+ return ANY;
3748
+ }
3749
+ constructor(comp, options) {
3750
+ options = parseOptions(options);
3751
+ if (comp instanceof _Comparator) {
3752
+ if (comp.loose === !!options.loose) {
3753
+ return comp;
3754
+ } else {
3755
+ comp = comp.value;
3756
+ }
3757
+ }
3758
+ comp = comp.trim().split(/\s+/).join(" ");
3759
+ debug("comparator", comp, options);
3760
+ this.options = options;
3761
+ this.loose = !!options.loose;
3762
+ this.parse(comp);
3763
+ if (this.semver === ANY) {
3764
+ this.value = "";
3765
+ } else {
3766
+ this.value = this.operator + this.semver.version;
3767
+ }
3768
+ debug("comp", this);
3769
+ }
3770
+ parse(comp) {
3771
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
3772
+ const m = comp.match(r);
3773
+ if (!m) {
3774
+ throw new TypeError(`Invalid comparator: ${comp}`);
3775
+ }
3776
+ this.operator = m[1] !== void 0 ? m[1] : "";
3777
+ if (this.operator === "=") {
3778
+ this.operator = "";
3779
+ }
3780
+ if (!m[2]) {
3781
+ this.semver = ANY;
3782
+ } else {
3783
+ this.semver = new SemVer(m[2], this.options.loose);
3784
+ }
3785
+ }
3786
+ toString() {
3787
+ return this.value;
3788
+ }
3789
+ test(version) {
3790
+ debug("Comparator.test", version, this.options.loose);
3791
+ if (this.semver === ANY || version === ANY) {
3792
+ return true;
3793
+ }
3794
+ if (typeof version === "string") {
3795
+ try {
3796
+ version = new SemVer(version, this.options);
3797
+ } catch (er) {
3798
+ return false;
3799
+ }
3800
+ }
3801
+ return cmp(version, this.operator, this.semver, this.options);
3802
+ }
3803
+ intersects(comp, options) {
3804
+ if (!(comp instanceof _Comparator)) {
3805
+ throw new TypeError("a Comparator is required");
3806
+ }
3807
+ if (this.operator === "") {
3808
+ if (this.value === "") {
3809
+ return true;
3810
+ }
3811
+ return new Range(comp.value, options).test(this.value);
3812
+ } else if (comp.operator === "") {
3813
+ if (comp.value === "") {
3814
+ return true;
3815
+ }
3816
+ return new Range(this.value, options).test(comp.semver);
3817
+ }
3818
+ options = parseOptions(options);
3819
+ if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
3820
+ return false;
3821
+ }
3822
+ if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
3823
+ return false;
3824
+ }
3825
+ if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
3826
+ return true;
3827
+ }
3828
+ if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
3829
+ return true;
3830
+ }
3831
+ if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
3832
+ return true;
3833
+ }
3834
+ if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
3835
+ return true;
3836
+ }
3837
+ if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
3838
+ return true;
3839
+ }
3840
+ return false;
3841
+ }
3842
+ };
3843
+ module.exports = Comparator;
3844
+ var parseOptions = require_parse_options();
3845
+ var { safeRe: re, t } = require_re();
3846
+ var cmp = require_cmp();
3847
+ var debug = require_debug();
3848
+ var SemVer = require_semver();
3849
+ var Range = require_range();
3850
+ }
3851
+ });
3852
+
3853
+ // ../../node_modules/semver/functions/satisfies.js
3854
+ var require_satisfies = __commonJS({
3855
+ "../../node_modules/semver/functions/satisfies.js"(exports, module) {
3856
+ "use strict";
3857
+ init_esm_shims();
3858
+ var Range = require_range();
3859
+ var satisfies = (version, range, options) => {
3860
+ try {
3861
+ range = new Range(range, options);
3862
+ } catch (er) {
3863
+ return false;
3864
+ }
3865
+ return range.test(version);
3866
+ };
3867
+ module.exports = satisfies;
3868
+ }
3869
+ });
3870
+
3871
+ // ../../node_modules/semver/ranges/to-comparators.js
3872
+ var require_to_comparators = __commonJS({
3873
+ "../../node_modules/semver/ranges/to-comparators.js"(exports, module) {
3874
+ "use strict";
3875
+ init_esm_shims();
3876
+ var Range = require_range();
3877
+ var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
3878
+ module.exports = toComparators;
3879
+ }
3880
+ });
3881
+
3882
+ // ../../node_modules/semver/ranges/max-satisfying.js
3883
+ var require_max_satisfying = __commonJS({
3884
+ "../../node_modules/semver/ranges/max-satisfying.js"(exports, module) {
3885
+ "use strict";
3886
+ init_esm_shims();
3887
+ var SemVer = require_semver();
3888
+ var Range = require_range();
3889
+ var maxSatisfying = (versions, range, options) => {
3890
+ let max = null;
3891
+ let maxSV = null;
3892
+ let rangeObj = null;
3893
+ try {
3894
+ rangeObj = new Range(range, options);
3895
+ } catch (er) {
3896
+ return null;
3897
+ }
3898
+ versions.forEach((v) => {
3899
+ if (rangeObj.test(v)) {
3900
+ if (!max || maxSV.compare(v) === -1) {
3901
+ max = v;
3902
+ maxSV = new SemVer(max, options);
3903
+ }
3904
+ }
3905
+ });
3906
+ return max;
3907
+ };
3908
+ module.exports = maxSatisfying;
3909
+ }
3910
+ });
3911
+
3912
+ // ../../node_modules/semver/ranges/min-satisfying.js
3913
+ var require_min_satisfying = __commonJS({
3914
+ "../../node_modules/semver/ranges/min-satisfying.js"(exports, module) {
3915
+ "use strict";
3916
+ init_esm_shims();
3917
+ var SemVer = require_semver();
3918
+ var Range = require_range();
3919
+ var minSatisfying = (versions, range, options) => {
3920
+ let min = null;
3921
+ let minSV = null;
3922
+ let rangeObj = null;
3923
+ try {
3924
+ rangeObj = new Range(range, options);
3925
+ } catch (er) {
3926
+ return null;
3927
+ }
3928
+ versions.forEach((v) => {
3929
+ if (rangeObj.test(v)) {
3930
+ if (!min || minSV.compare(v) === 1) {
3931
+ min = v;
3932
+ minSV = new SemVer(min, options);
3933
+ }
3934
+ }
3935
+ });
3936
+ return min;
3937
+ };
3938
+ module.exports = minSatisfying;
3939
+ }
3940
+ });
3941
+
3942
+ // ../../node_modules/semver/ranges/min-version.js
3943
+ var require_min_version = __commonJS({
3944
+ "../../node_modules/semver/ranges/min-version.js"(exports, module) {
3945
+ "use strict";
3946
+ init_esm_shims();
3947
+ var SemVer = require_semver();
3948
+ var Range = require_range();
3949
+ var gt = require_gt();
3950
+ var minVersion = (range, loose) => {
3951
+ range = new Range(range, loose);
3952
+ let minver = new SemVer("0.0.0");
3953
+ if (range.test(minver)) {
3954
+ return minver;
3955
+ }
3956
+ minver = new SemVer("0.0.0-0");
3957
+ if (range.test(minver)) {
3958
+ return minver;
3959
+ }
3960
+ minver = null;
3961
+ for (let i = 0; i < range.set.length; ++i) {
3962
+ const comparators = range.set[i];
3963
+ let setMin = null;
3964
+ comparators.forEach((comparator) => {
3965
+ const compver = new SemVer(comparator.semver.version);
3966
+ switch (comparator.operator) {
3967
+ case ">":
3968
+ if (compver.prerelease.length === 0) {
3969
+ compver.patch++;
3970
+ } else {
3971
+ compver.prerelease.push(0);
3972
+ }
3973
+ compver.raw = compver.format();
3974
+ /* fallthrough */
3975
+ case "":
3976
+ case ">=":
3977
+ if (!setMin || gt(compver, setMin)) {
3978
+ setMin = compver;
3979
+ }
3980
+ break;
3981
+ case "<":
3982
+ case "<=":
3983
+ break;
3984
+ /* istanbul ignore next */
3985
+ default:
3986
+ throw new Error(`Unexpected operation: ${comparator.operator}`);
3987
+ }
3988
+ });
3989
+ if (setMin && (!minver || gt(minver, setMin))) {
3990
+ minver = setMin;
3991
+ }
3992
+ }
3993
+ if (minver && range.test(minver)) {
3994
+ return minver;
3995
+ }
3996
+ return null;
3997
+ };
3998
+ module.exports = minVersion;
3999
+ }
4000
+ });
4001
+
4002
+ // ../../node_modules/semver/ranges/valid.js
4003
+ var require_valid2 = __commonJS({
4004
+ "../../node_modules/semver/ranges/valid.js"(exports, module) {
4005
+ "use strict";
4006
+ init_esm_shims();
4007
+ var Range = require_range();
4008
+ var validRange = (range, options) => {
4009
+ try {
4010
+ return new Range(range, options).range || "*";
4011
+ } catch (er) {
4012
+ return null;
4013
+ }
4014
+ };
4015
+ module.exports = validRange;
4016
+ }
4017
+ });
4018
+
4019
+ // ../../node_modules/semver/ranges/outside.js
4020
+ var require_outside = __commonJS({
4021
+ "../../node_modules/semver/ranges/outside.js"(exports, module) {
4022
+ "use strict";
4023
+ init_esm_shims();
4024
+ var SemVer = require_semver();
4025
+ var Comparator = require_comparator();
4026
+ var { ANY } = Comparator;
4027
+ var Range = require_range();
4028
+ var satisfies = require_satisfies();
4029
+ var gt = require_gt();
4030
+ var lt = require_lt();
4031
+ var lte = require_lte();
4032
+ var gte = require_gte();
4033
+ var outside = (version, range, hilo, options) => {
4034
+ version = new SemVer(version, options);
4035
+ range = new Range(range, options);
4036
+ let gtfn, ltefn, ltfn, comp, ecomp;
4037
+ switch (hilo) {
4038
+ case ">":
4039
+ gtfn = gt;
4040
+ ltefn = lte;
4041
+ ltfn = lt;
4042
+ comp = ">";
4043
+ ecomp = ">=";
4044
+ break;
4045
+ case "<":
4046
+ gtfn = lt;
4047
+ ltefn = gte;
4048
+ ltfn = gt;
4049
+ comp = "<";
4050
+ ecomp = "<=";
4051
+ break;
4052
+ default:
4053
+ throw new TypeError('Must provide a hilo val of "<" or ">"');
4054
+ }
4055
+ if (satisfies(version, range, options)) {
4056
+ return false;
4057
+ }
4058
+ for (let i = 0; i < range.set.length; ++i) {
4059
+ const comparators = range.set[i];
4060
+ let high = null;
4061
+ let low = null;
4062
+ comparators.forEach((comparator) => {
4063
+ if (comparator.semver === ANY) {
4064
+ comparator = new Comparator(">=0.0.0");
4065
+ }
4066
+ high = high || comparator;
4067
+ low = low || comparator;
4068
+ if (gtfn(comparator.semver, high.semver, options)) {
4069
+ high = comparator;
4070
+ } else if (ltfn(comparator.semver, low.semver, options)) {
4071
+ low = comparator;
4072
+ }
4073
+ });
4074
+ if (high.operator === comp || high.operator === ecomp) {
4075
+ return false;
4076
+ }
4077
+ if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
4078
+ return false;
4079
+ } else if (low.operator === ecomp && ltfn(version, low.semver)) {
4080
+ return false;
4081
+ }
4082
+ }
4083
+ return true;
4084
+ };
4085
+ module.exports = outside;
4086
+ }
4087
+ });
4088
+
4089
+ // ../../node_modules/semver/ranges/gtr.js
4090
+ var require_gtr = __commonJS({
4091
+ "../../node_modules/semver/ranges/gtr.js"(exports, module) {
4092
+ "use strict";
4093
+ init_esm_shims();
4094
+ var outside = require_outside();
4095
+ var gtr = (version, range, options) => outside(version, range, ">", options);
4096
+ module.exports = gtr;
4097
+ }
4098
+ });
4099
+
4100
+ // ../../node_modules/semver/ranges/ltr.js
4101
+ var require_ltr = __commonJS({
4102
+ "../../node_modules/semver/ranges/ltr.js"(exports, module) {
4103
+ "use strict";
4104
+ init_esm_shims();
4105
+ var outside = require_outside();
4106
+ var ltr = (version, range, options) => outside(version, range, "<", options);
4107
+ module.exports = ltr;
4108
+ }
4109
+ });
4110
+
4111
+ // ../../node_modules/semver/ranges/intersects.js
4112
+ var require_intersects = __commonJS({
4113
+ "../../node_modules/semver/ranges/intersects.js"(exports, module) {
4114
+ "use strict";
4115
+ init_esm_shims();
4116
+ var Range = require_range();
4117
+ var intersects = (r1, r2, options) => {
4118
+ r1 = new Range(r1, options);
4119
+ r2 = new Range(r2, options);
4120
+ return r1.intersects(r2, options);
4121
+ };
4122
+ module.exports = intersects;
4123
+ }
4124
+ });
4125
+
4126
+ // ../../node_modules/semver/ranges/simplify.js
4127
+ var require_simplify = __commonJS({
4128
+ "../../node_modules/semver/ranges/simplify.js"(exports, module) {
4129
+ "use strict";
4130
+ init_esm_shims();
4131
+ var satisfies = require_satisfies();
4132
+ var compare = require_compare();
4133
+ module.exports = (versions, range, options) => {
4134
+ const set = [];
4135
+ let first = null;
4136
+ let prev = null;
4137
+ const v = versions.sort((a, b) => compare(a, b, options));
4138
+ for (const version of v) {
4139
+ const included = satisfies(version, range, options);
4140
+ if (included) {
4141
+ prev = version;
4142
+ if (!first) {
4143
+ first = version;
4144
+ }
4145
+ } else {
4146
+ if (prev) {
4147
+ set.push([first, prev]);
4148
+ }
4149
+ prev = null;
4150
+ first = null;
4151
+ }
4152
+ }
4153
+ if (first) {
4154
+ set.push([first, null]);
4155
+ }
4156
+ const ranges = [];
4157
+ for (const [min, max] of set) {
4158
+ if (min === max) {
4159
+ ranges.push(min);
4160
+ } else if (!max && min === v[0]) {
4161
+ ranges.push("*");
4162
+ } else if (!max) {
4163
+ ranges.push(`>=${min}`);
4164
+ } else if (min === v[0]) {
4165
+ ranges.push(`<=${max}`);
4166
+ } else {
4167
+ ranges.push(`${min} - ${max}`);
4168
+ }
4169
+ }
4170
+ const simplified = ranges.join(" || ");
4171
+ const original = typeof range.raw === "string" ? range.raw : String(range);
4172
+ return simplified.length < original.length ? simplified : range;
4173
+ };
4174
+ }
4175
+ });
4176
+
4177
+ // ../../node_modules/semver/ranges/subset.js
4178
+ var require_subset = __commonJS({
4179
+ "../../node_modules/semver/ranges/subset.js"(exports, module) {
4180
+ "use strict";
4181
+ init_esm_shims();
4182
+ var Range = require_range();
4183
+ var Comparator = require_comparator();
4184
+ var { ANY } = Comparator;
4185
+ var satisfies = require_satisfies();
4186
+ var compare = require_compare();
4187
+ var subset = (sub, dom, options = {}) => {
4188
+ if (sub === dom) {
4189
+ return true;
4190
+ }
4191
+ sub = new Range(sub, options);
4192
+ dom = new Range(dom, options);
4193
+ let sawNonNull = false;
4194
+ OUTER: for (const simpleSub of sub.set) {
4195
+ for (const simpleDom of dom.set) {
4196
+ const isSub = simpleSubset(simpleSub, simpleDom, options);
4197
+ sawNonNull = sawNonNull || isSub !== null;
4198
+ if (isSub) {
4199
+ continue OUTER;
4200
+ }
4201
+ }
4202
+ if (sawNonNull) {
4203
+ return false;
4204
+ }
4205
+ }
4206
+ return true;
4207
+ };
4208
+ var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
4209
+ var minimumVersion = [new Comparator(">=0.0.0")];
4210
+ var simpleSubset = (sub, dom, options) => {
4211
+ if (sub === dom) {
4212
+ return true;
4213
+ }
4214
+ if (sub.length === 1 && sub[0].semver === ANY) {
4215
+ if (dom.length === 1 && dom[0].semver === ANY) {
4216
+ return true;
4217
+ } else if (options.includePrerelease) {
4218
+ sub = minimumVersionWithPreRelease;
4219
+ } else {
4220
+ sub = minimumVersion;
4221
+ }
4222
+ }
4223
+ if (dom.length === 1 && dom[0].semver === ANY) {
4224
+ if (options.includePrerelease) {
4225
+ return true;
4226
+ } else {
4227
+ dom = minimumVersion;
4228
+ }
4229
+ }
4230
+ const eqSet = /* @__PURE__ */ new Set();
4231
+ let gt, lt;
4232
+ for (const c of sub) {
4233
+ if (c.operator === ">" || c.operator === ">=") {
4234
+ gt = higherGT(gt, c, options);
4235
+ } else if (c.operator === "<" || c.operator === "<=") {
4236
+ lt = lowerLT(lt, c, options);
4237
+ } else {
4238
+ eqSet.add(c.semver);
4239
+ }
4240
+ }
4241
+ if (eqSet.size > 1) {
4242
+ return null;
4243
+ }
4244
+ let gtltComp;
4245
+ if (gt && lt) {
4246
+ gtltComp = compare(gt.semver, lt.semver, options);
4247
+ if (gtltComp > 0) {
4248
+ return null;
4249
+ } else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
4250
+ return null;
4251
+ }
4252
+ }
4253
+ for (const eq of eqSet) {
4254
+ if (gt && !satisfies(eq, String(gt), options)) {
4255
+ return null;
4256
+ }
4257
+ if (lt && !satisfies(eq, String(lt), options)) {
4258
+ return null;
4259
+ }
4260
+ for (const c of dom) {
4261
+ if (!satisfies(eq, String(c), options)) {
4262
+ return false;
4263
+ }
4264
+ }
4265
+ return true;
4266
+ }
4267
+ let higher, lower;
4268
+ let hasDomLT, hasDomGT;
4269
+ let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
4270
+ let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
4271
+ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
4272
+ needDomLTPre = false;
4273
+ }
4274
+ for (const c of dom) {
4275
+ hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
4276
+ hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
4277
+ if (gt) {
4278
+ if (needDomGTPre) {
4279
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
4280
+ needDomGTPre = false;
4281
+ }
4282
+ }
4283
+ if (c.operator === ">" || c.operator === ">=") {
4284
+ higher = higherGT(gt, c, options);
4285
+ if (higher === c && higher !== gt) {
4286
+ return false;
4287
+ }
4288
+ } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
4289
+ return false;
4290
+ }
4291
+ }
4292
+ if (lt) {
4293
+ if (needDomLTPre) {
4294
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
4295
+ needDomLTPre = false;
4296
+ }
4297
+ }
4298
+ if (c.operator === "<" || c.operator === "<=") {
4299
+ lower = lowerLT(lt, c, options);
4300
+ if (lower === c && lower !== lt) {
4301
+ return false;
4302
+ }
4303
+ } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
4304
+ return false;
4305
+ }
4306
+ }
4307
+ if (!c.operator && (lt || gt) && gtltComp !== 0) {
4308
+ return false;
4309
+ }
4310
+ }
4311
+ if (gt && hasDomLT && !lt && gtltComp !== 0) {
4312
+ return false;
4313
+ }
4314
+ if (lt && hasDomGT && !gt && gtltComp !== 0) {
4315
+ return false;
4316
+ }
4317
+ if (needDomGTPre || needDomLTPre) {
4318
+ return false;
4319
+ }
4320
+ return true;
4321
+ };
4322
+ var higherGT = (a, b, options) => {
4323
+ if (!a) {
4324
+ return b;
4325
+ }
4326
+ const comp = compare(a.semver, b.semver, options);
4327
+ return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
4328
+ };
4329
+ var lowerLT = (a, b, options) => {
4330
+ if (!a) {
4331
+ return b;
4332
+ }
4333
+ const comp = compare(a.semver, b.semver, options);
4334
+ return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
4335
+ };
4336
+ module.exports = subset;
4337
+ }
4338
+ });
4339
+
4340
+ // ../../node_modules/semver/index.js
4341
+ var require_semver2 = __commonJS({
4342
+ "../../node_modules/semver/index.js"(exports, module) {
4343
+ "use strict";
4344
+ init_esm_shims();
4345
+ var internalRe = require_re();
4346
+ var constants3 = require_constants();
4347
+ var SemVer = require_semver();
4348
+ var identifiers = require_identifiers();
4349
+ var parse = require_parse2();
4350
+ var valid = require_valid();
4351
+ var clean = require_clean();
4352
+ var inc = require_inc();
4353
+ var diff = require_diff();
4354
+ var major = require_major();
4355
+ var minor = require_minor();
4356
+ var patch = require_patch();
4357
+ var prerelease = require_prerelease();
4358
+ var compare = require_compare();
4359
+ var rcompare = require_rcompare();
4360
+ var compareLoose = require_compare_loose();
4361
+ var compareBuild = require_compare_build();
4362
+ var sort = require_sort();
4363
+ var rsort = require_rsort();
4364
+ var gt = require_gt();
4365
+ var lt = require_lt();
4366
+ var eq = require_eq();
4367
+ var neq = require_neq();
4368
+ var gte = require_gte();
4369
+ var lte = require_lte();
4370
+ var cmp = require_cmp();
4371
+ var coerce2 = require_coerce();
4372
+ var Comparator = require_comparator();
4373
+ var Range = require_range();
4374
+ var satisfies = require_satisfies();
4375
+ var toComparators = require_to_comparators();
4376
+ var maxSatisfying = require_max_satisfying();
4377
+ var minSatisfying = require_min_satisfying();
4378
+ var minVersion = require_min_version();
4379
+ var validRange = require_valid2();
4380
+ var outside = require_outside();
4381
+ var gtr = require_gtr();
4382
+ var ltr = require_ltr();
4383
+ var intersects = require_intersects();
4384
+ var simplifyRange = require_simplify();
4385
+ var subset = require_subset();
4386
+ module.exports = {
4387
+ parse,
4388
+ valid,
4389
+ clean,
4390
+ inc,
4391
+ diff,
4392
+ major,
4393
+ minor,
4394
+ patch,
4395
+ prerelease,
4396
+ compare,
4397
+ rcompare,
4398
+ compareLoose,
4399
+ compareBuild,
4400
+ sort,
4401
+ rsort,
4402
+ gt,
4403
+ lt,
4404
+ eq,
4405
+ neq,
4406
+ gte,
4407
+ lte,
4408
+ cmp,
4409
+ coerce: coerce2,
4410
+ Comparator,
4411
+ Range,
4412
+ satisfies,
4413
+ toComparators,
4414
+ maxSatisfying,
4415
+ minSatisfying,
4416
+ minVersion,
4417
+ validRange,
4418
+ outside,
4419
+ gtr,
4420
+ ltr,
4421
+ intersects,
4422
+ simplifyRange,
4423
+ subset,
4424
+ SemVer,
4425
+ re: internalRe.re,
4426
+ src: internalRe.src,
4427
+ tokens: internalRe.t,
4428
+ SEMVER_SPEC_VERSION: constants3.SEMVER_SPEC_VERSION,
4429
+ RELEASE_TYPES: constants3.RELEASE_TYPES,
4430
+ compareIdentifiers: identifiers.compareIdentifiers,
4431
+ rcompareIdentifiers: identifiers.rcompareIdentifiers
4432
+ };
4433
+ }
4434
+ });
4435
+
2482
4436
  // ../../node_modules/fast-glob/out/utils/array.js
2483
4437
  var require_array = __commonJS({
2484
4438
  "../../node_modules/fast-glob/out/utils/array.js"(exports) {
@@ -3471,7 +5425,7 @@ var require_expand = __commonJS({
3471
5425
  });
3472
5426
 
3473
5427
  // ../../node_modules/braces/lib/constants.js
3474
- var require_constants = __commonJS({
5428
+ var require_constants2 = __commonJS({
3475
5429
  "../../node_modules/braces/lib/constants.js"(exports, module) {
3476
5430
  "use strict";
3477
5431
  init_esm_shims();
@@ -3573,7 +5527,7 @@ var require_constants = __commonJS({
3573
5527
  });
3574
5528
 
3575
5529
  // ../../node_modules/braces/lib/parse.js
3576
- var require_parse2 = __commonJS({
5530
+ var require_parse3 = __commonJS({
3577
5531
  "../../node_modules/braces/lib/parse.js"(exports, module) {
3578
5532
  "use strict";
3579
5533
  init_esm_shims();
@@ -3606,7 +5560,7 @@ var require_parse2 = __commonJS({
3606
5560
  /* ' */
3607
5561
  CHAR_NO_BREAK_SPACE,
3608
5562
  CHAR_ZERO_WIDTH_NOBREAK_SPACE
3609
- } = require_constants();
5563
+ } = require_constants2();
3610
5564
  var parse = (input, options = {}) => {
3611
5565
  if (typeof input !== "string") {
3612
5566
  throw new TypeError("Expected a string");
@@ -3819,7 +5773,7 @@ var require_braces = __commonJS({
3819
5773
  var stringify = require_stringify();
3820
5774
  var compile = require_compile();
3821
5775
  var expand = require_expand();
3822
- var parse = require_parse2();
5776
+ var parse = require_parse3();
3823
5777
  var braces = (input, options = {}) => {
3824
5778
  let output = [];
3825
5779
  if (Array.isArray(input)) {
@@ -3876,7 +5830,7 @@ var require_braces = __commonJS({
3876
5830
  });
3877
5831
 
3878
5832
  // ../../node_modules/picomatch/lib/constants.js
3879
- var require_constants2 = __commonJS({
5833
+ var require_constants3 = __commonJS({
3880
5834
  "../../node_modules/picomatch/lib/constants.js"(exports, module) {
3881
5835
  "use strict";
3882
5836
  init_esm_shims();
@@ -4085,7 +6039,7 @@ var require_utils2 = __commonJS({
4085
6039
  REGEX_REMOVE_BACKSLASH,
4086
6040
  REGEX_SPECIAL_CHARS,
4087
6041
  REGEX_SPECIAL_CHARS_GLOBAL
4088
- } = require_constants2();
6042
+ } = require_constants3();
4089
6043
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
4090
6044
  exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
4091
6045
  exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
@@ -4172,7 +6126,7 @@ var require_scan = __commonJS({
4172
6126
  /* ) */
4173
6127
  CHAR_RIGHT_SQUARE_BRACKET
4174
6128
  /* ] */
4175
- } = require_constants2();
6129
+ } = require_constants3();
4176
6130
  var isPathSeparator = (code) => {
4177
6131
  return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
4178
6132
  };
@@ -4467,11 +6421,11 @@ var require_scan = __commonJS({
4467
6421
  });
4468
6422
 
4469
6423
  // ../../node_modules/picomatch/lib/parse.js
4470
- var require_parse3 = __commonJS({
6424
+ var require_parse4 = __commonJS({
4471
6425
  "../../node_modules/picomatch/lib/parse.js"(exports, module) {
4472
6426
  "use strict";
4473
6427
  init_esm_shims();
4474
- var constants3 = require_constants2();
6428
+ var constants3 = require_constants3();
4475
6429
  var utils = require_utils2();
4476
6430
  var {
4477
6431
  MAX_LENGTH,
@@ -5247,9 +7201,9 @@ var require_picomatch = __commonJS({
5247
7201
  init_esm_shims();
5248
7202
  var path4 = __require("path");
5249
7203
  var scan = require_scan();
5250
- var parse = require_parse3();
7204
+ var parse = require_parse4();
5251
7205
  var utils = require_utils2();
5252
- var constants3 = require_constants2();
7206
+ var constants3 = require_constants3();
5253
7207
  var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
5254
7208
  var picomatch = (glob, options, returnState = false) => {
5255
7209
  if (Array.isArray(glob)) {
@@ -6219,7 +8173,7 @@ var require_run_parallel = __commonJS({
6219
8173
  });
6220
8174
 
6221
8175
  // ../../node_modules/@nodelib/fs.scandir/out/constants.js
6222
- var require_constants3 = __commonJS({
8176
+ var require_constants4 = __commonJS({
6223
8177
  "../../node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
6224
8178
  "use strict";
6225
8179
  init_esm_shims();
@@ -6303,7 +8257,7 @@ var require_async2 = __commonJS({
6303
8257
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
6304
8258
  var fsStat = require_out();
6305
8259
  var rpl = require_run_parallel();
6306
- var constants_1 = require_constants3();
8260
+ var constants_1 = require_constants4();
6307
8261
  var utils = require_utils4();
6308
8262
  var common = require_common();
6309
8263
  function read(directory, settings, callback) {
@@ -6413,7 +8367,7 @@ var require_sync2 = __commonJS({
6413
8367
  Object.defineProperty(exports, "__esModule", { value: true });
6414
8368
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
6415
8369
  var fsStat = require_out();
6416
- var constants_1 = require_constants3();
8370
+ var constants_1 = require_constants4();
6417
8371
  var utils = require_utils4();
6418
8372
  var common = require_common();
6419
8373
  function read(directory, settings) {
@@ -15568,6 +17522,7 @@ export {
15568
17522
  pathExists,
15569
17523
  outputFile,
15570
17524
  outputDir,
17525
+ require_semver2 as require_semver,
15571
17526
  runCommand,
15572
17527
  gitInit,
15573
17528
  gitCommit,
@@ -15634,4 +17589,4 @@ queue-microtask/index.js:
15634
17589
  run-parallel/index.js:
15635
17590
  (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
15636
17591
  */
15637
- //# sourceMappingURL=chunk-K4POCV53.js.map
17592
+ //# sourceMappingURL=chunk-WTXRYBKF.js.map