@storybook/cli 10.1.0-alpha.10 → 10.1.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1160 @@
1
+ import CJS_COMPAT_NODE_URL_cnh1zw3akmi from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_cnh1zw3akmi from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_cnh1zw3akmi from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_cnh1zw3akmi.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_cnh1zw3akmi.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_cnh1zw3akmi.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ __commonJS
14
+ } from "./chunk-VFUI46B4.js";
15
+
16
+ // ../../node_modules/semver/internal/constants.js
17
+ var require_constants = __commonJS({
18
+ "../../node_modules/semver/internal/constants.js"(exports, module) {
19
+ "use strict";
20
+ var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
21
+ 9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = [
22
+ "major",
23
+ "premajor",
24
+ "minor",
25
+ "preminor",
26
+ "patch",
27
+ "prepatch",
28
+ "prerelease"
29
+ ];
30
+ module.exports = {
31
+ MAX_LENGTH: 256,
32
+ MAX_SAFE_COMPONENT_LENGTH,
33
+ MAX_SAFE_BUILD_LENGTH,
34
+ MAX_SAFE_INTEGER,
35
+ RELEASE_TYPES,
36
+ SEMVER_SPEC_VERSION,
37
+ FLAG_INCLUDE_PRERELEASE: 1,
38
+ FLAG_LOOSE: 2
39
+ };
40
+ }
41
+ });
42
+
43
+ // ../../node_modules/semver/internal/debug.js
44
+ var require_debug = __commonJS({
45
+ "../../node_modules/semver/internal/debug.js"(exports, module) {
46
+ "use strict";
47
+ var debug = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
48
+ };
49
+ module.exports = debug;
50
+ }
51
+ });
52
+
53
+ // ../../node_modules/semver/internal/re.js
54
+ var require_re = __commonJS({
55
+ "../../node_modules/semver/internal/re.js"(exports, module) {
56
+ "use strict";
57
+ var {
58
+ MAX_SAFE_COMPONENT_LENGTH,
59
+ MAX_SAFE_BUILD_LENGTH,
60
+ MAX_LENGTH
61
+ } = require_constants(), debug = require_debug();
62
+ exports = module.exports = {};
63
+ var re = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], safeSrc = exports.safeSrc = [], t = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [
64
+ ["\\s", 1],
65
+ ["\\d", MAX_LENGTH],
66
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
67
+ ], makeSafeRegex = (value) => {
68
+ for (let [token, max] of safeRegexReplacements)
69
+ value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
70
+ return value;
71
+ }, createToken = (name, value, isGlobal) => {
72
+ let safe = makeSafeRegex(value), index = R++;
73
+ debug(name, index, value), t[name] = index, src[index] = value, safeSrc[index] = safe, re[index] = new RegExp(value, isGlobal ? "g" : void 0), safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
74
+ };
75
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
76
+ createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
77
+ createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
78
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
79
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
80
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
81
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
82
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
83
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
84
+ createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
85
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
86
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
87
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
88
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
89
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
90
+ createToken("GTLT", "((?:<|>)?=?)");
91
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
92
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
93
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
94
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
95
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
96
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
97
+ createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
98
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
99
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
100
+ createToken("COERCERTL", src[t.COERCE], !0);
101
+ createToken("COERCERTLFULL", src[t.COERCEFULL], !0);
102
+ createToken("LONETILDE", "(?:~>?)");
103
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, !0);
104
+ exports.tildeTrimReplace = "$1~";
105
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
106
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
107
+ createToken("LONECARET", "(?:\\^)");
108
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, !0);
109
+ exports.caretTrimReplace = "$1^";
110
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
111
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
112
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
113
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
114
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, !0);
115
+ exports.comparatorTrimReplace = "$1$2$3";
116
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
117
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
118
+ createToken("STAR", "(<|>)?=?\\s*\\*");
119
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
120
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
121
+ }
122
+ });
123
+
124
+ // ../../node_modules/semver/internal/parse-options.js
125
+ var require_parse_options = __commonJS({
126
+ "../../node_modules/semver/internal/parse-options.js"(exports, module) {
127
+ "use strict";
128
+ var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
129
+ module.exports = parseOptions;
130
+ }
131
+ });
132
+
133
+ // ../../node_modules/semver/internal/identifiers.js
134
+ var require_identifiers = __commonJS({
135
+ "../../node_modules/semver/internal/identifiers.js"(exports, module) {
136
+ "use strict";
137
+ var numeric = /^[0-9]+$/, compareIdentifiers = (a, b) => {
138
+ if (typeof a == "number" && typeof b == "number")
139
+ return a === b ? 0 : a < b ? -1 : 1;
140
+ let anum = numeric.test(a), bnum = numeric.test(b);
141
+ return anum && bnum && (a = +a, b = +b), a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
142
+ }, rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
143
+ module.exports = {
144
+ compareIdentifiers,
145
+ rcompareIdentifiers
146
+ };
147
+ }
148
+ });
149
+
150
+ // ../../node_modules/semver/classes/semver.js
151
+ var require_semver = __commonJS({
152
+ "../../node_modules/semver/classes/semver.js"(exports, module) {
153
+ "use strict";
154
+ var debug = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(), { safeRe: re, t } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer = class _SemVer {
155
+ constructor(version, options) {
156
+ if (options = parseOptions(options), version instanceof _SemVer) {
157
+ if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease)
158
+ return version;
159
+ version = version.version;
160
+ } else if (typeof version != "string")
161
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
162
+ if (version.length > MAX_LENGTH)
163
+ throw new TypeError(
164
+ `version is longer than ${MAX_LENGTH} characters`
165
+ );
166
+ debug("SemVer", version, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
167
+ let m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
168
+ if (!m)
169
+ throw new TypeError(`Invalid Version: ${version}`);
170
+ if (this.raw = version, this.major = +m[1], this.minor = +m[2], this.patch = +m[3], this.major > MAX_SAFE_INTEGER || this.major < 0)
171
+ throw new TypeError("Invalid major version");
172
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
173
+ throw new TypeError("Invalid minor version");
174
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
175
+ throw new TypeError("Invalid patch version");
176
+ m[4] ? this.prerelease = m[4].split(".").map((id) => {
177
+ if (/^[0-9]+$/.test(id)) {
178
+ let num = +id;
179
+ if (num >= 0 && num < MAX_SAFE_INTEGER)
180
+ return num;
181
+ }
182
+ return id;
183
+ }) : this.prerelease = [], this.build = m[5] ? m[5].split(".") : [], this.format();
184
+ }
185
+ format() {
186
+ return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
187
+ }
188
+ toString() {
189
+ return this.version;
190
+ }
191
+ compare(other) {
192
+ if (debug("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) {
193
+ if (typeof other == "string" && other === this.version)
194
+ return 0;
195
+ other = new _SemVer(other, this.options);
196
+ }
197
+ return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
198
+ }
199
+ compareMain(other) {
200
+ return other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.major < other.major ? -1 : this.major > other.major ? 1 : this.minor < other.minor ? -1 : this.minor > other.minor ? 1 : this.patch < other.patch ? -1 : this.patch > other.patch ? 1 : 0;
201
+ }
202
+ comparePre(other) {
203
+ if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length)
204
+ return -1;
205
+ if (!this.prerelease.length && other.prerelease.length)
206
+ return 1;
207
+ if (!this.prerelease.length && !other.prerelease.length)
208
+ return 0;
209
+ let i = 0;
210
+ do {
211
+ let a = this.prerelease[i], b = other.prerelease[i];
212
+ if (debug("prerelease compare", i, a, b), a === void 0 && b === void 0)
213
+ return 0;
214
+ if (b === void 0)
215
+ return 1;
216
+ if (a === void 0)
217
+ return -1;
218
+ if (a === b)
219
+ continue;
220
+ return compareIdentifiers(a, b);
221
+ } while (++i);
222
+ }
223
+ compareBuild(other) {
224
+ other instanceof _SemVer || (other = new _SemVer(other, this.options));
225
+ let i = 0;
226
+ do {
227
+ let a = this.build[i], b = other.build[i];
228
+ if (debug("build compare", i, a, b), a === void 0 && b === void 0)
229
+ return 0;
230
+ if (b === void 0)
231
+ return 1;
232
+ if (a === void 0)
233
+ return -1;
234
+ if (a === b)
235
+ continue;
236
+ return compareIdentifiers(a, b);
237
+ } while (++i);
238
+ }
239
+ // preminor will bump the version up to the next minor release, and immediately
240
+ // down to pre-release. premajor and prepatch work the same way.
241
+ inc(release, identifier, identifierBase) {
242
+ if (release.startsWith("pre")) {
243
+ if (!identifier && identifierBase === !1)
244
+ throw new Error("invalid increment argument: identifier is empty");
245
+ if (identifier) {
246
+ let match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
247
+ if (!match || match[1] !== identifier)
248
+ throw new Error(`invalid identifier: ${identifier}`);
249
+ }
250
+ }
251
+ switch (release) {
252
+ case "premajor":
253
+ this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier, identifierBase);
254
+ break;
255
+ case "preminor":
256
+ this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier, identifierBase);
257
+ break;
258
+ case "prepatch":
259
+ this.prerelease.length = 0, this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
260
+ break;
261
+ // If the input is a non-prerelease version, this acts the same as
262
+ // prepatch.
263
+ case "prerelease":
264
+ this.prerelease.length === 0 && this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
265
+ break;
266
+ case "release":
267
+ if (this.prerelease.length === 0)
268
+ throw new Error(`version ${this.raw} is not a prerelease`);
269
+ this.prerelease.length = 0;
270
+ break;
271
+ case "major":
272
+ (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
273
+ break;
274
+ case "minor":
275
+ (this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
276
+ break;
277
+ case "patch":
278
+ this.prerelease.length === 0 && this.patch++, this.prerelease = [];
279
+ break;
280
+ // This probably shouldn't be used publicly.
281
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
282
+ case "pre": {
283
+ let base = Number(identifierBase) ? 1 : 0;
284
+ if (this.prerelease.length === 0)
285
+ this.prerelease = [base];
286
+ else {
287
+ let i = this.prerelease.length;
288
+ for (; --i >= 0; )
289
+ typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
290
+ if (i === -1) {
291
+ if (identifier === this.prerelease.join(".") && identifierBase === !1)
292
+ throw new Error("invalid increment argument: identifier already exists");
293
+ this.prerelease.push(base);
294
+ }
295
+ }
296
+ if (identifier) {
297
+ let prerelease = [identifier, base];
298
+ identifierBase === !1 && (prerelease = [identifier]), compareIdentifiers(this.prerelease[0], identifier) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
299
+ }
300
+ break;
301
+ }
302
+ default:
303
+ throw new Error(`invalid increment argument: ${release}`);
304
+ }
305
+ return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
306
+ }
307
+ };
308
+ module.exports = SemVer;
309
+ }
310
+ });
311
+
312
+ // ../../node_modules/semver/functions/parse.js
313
+ var require_parse = __commonJS({
314
+ "../../node_modules/semver/functions/parse.js"(exports, module) {
315
+ "use strict";
316
+ var SemVer = require_semver(), parse = (version, options, throwErrors = !1) => {
317
+ if (version instanceof SemVer)
318
+ return version;
319
+ try {
320
+ return new SemVer(version, options);
321
+ } catch (er) {
322
+ if (!throwErrors)
323
+ return null;
324
+ throw er;
325
+ }
326
+ };
327
+ module.exports = parse;
328
+ }
329
+ });
330
+
331
+ // ../../node_modules/semver/functions/valid.js
332
+ var require_valid = __commonJS({
333
+ "../../node_modules/semver/functions/valid.js"(exports, module) {
334
+ "use strict";
335
+ var parse = require_parse(), valid = (version, options) => {
336
+ let v = parse(version, options);
337
+ return v ? v.version : null;
338
+ };
339
+ module.exports = valid;
340
+ }
341
+ });
342
+
343
+ // ../../node_modules/semver/functions/clean.js
344
+ var require_clean = __commonJS({
345
+ "../../node_modules/semver/functions/clean.js"(exports, module) {
346
+ "use strict";
347
+ var parse = require_parse(), clean = (version, options) => {
348
+ let s = parse(version.trim().replace(/^[=v]+/, ""), options);
349
+ return s ? s.version : null;
350
+ };
351
+ module.exports = clean;
352
+ }
353
+ });
354
+
355
+ // ../../node_modules/semver/functions/inc.js
356
+ var require_inc = __commonJS({
357
+ "../../node_modules/semver/functions/inc.js"(exports, module) {
358
+ "use strict";
359
+ var SemVer = require_semver(), inc = (version, release, options, identifier, identifierBase) => {
360
+ typeof options == "string" && (identifierBase = identifier, identifier = options, options = void 0);
361
+ try {
362
+ return new SemVer(
363
+ version instanceof SemVer ? version.version : version,
364
+ options
365
+ ).inc(release, identifier, identifierBase).version;
366
+ } catch {
367
+ return null;
368
+ }
369
+ };
370
+ module.exports = inc;
371
+ }
372
+ });
373
+
374
+ // ../../node_modules/semver/functions/diff.js
375
+ var require_diff = __commonJS({
376
+ "../../node_modules/semver/functions/diff.js"(exports, module) {
377
+ "use strict";
378
+ var parse = require_parse(), diff = (version1, version2) => {
379
+ let v1 = parse(version1, null, !0), v2 = parse(version2, null, !0), comparison = v1.compare(v2);
380
+ if (comparison === 0)
381
+ return null;
382
+ let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length;
383
+ if (!!lowVersion.prerelease.length && !highHasPre) {
384
+ if (!lowVersion.patch && !lowVersion.minor)
385
+ return "major";
386
+ if (lowVersion.compareMain(highVersion) === 0)
387
+ return lowVersion.minor && !lowVersion.patch ? "minor" : "patch";
388
+ }
389
+ let prefix = highHasPre ? "pre" : "";
390
+ return v1.major !== v2.major ? prefix + "major" : v1.minor !== v2.minor ? prefix + "minor" : v1.patch !== v2.patch ? prefix + "patch" : "prerelease";
391
+ };
392
+ module.exports = diff;
393
+ }
394
+ });
395
+
396
+ // ../../node_modules/semver/functions/major.js
397
+ var require_major = __commonJS({
398
+ "../../node_modules/semver/functions/major.js"(exports, module) {
399
+ "use strict";
400
+ var SemVer = require_semver(), major = (a, loose) => new SemVer(a, loose).major;
401
+ module.exports = major;
402
+ }
403
+ });
404
+
405
+ // ../../node_modules/semver/functions/minor.js
406
+ var require_minor = __commonJS({
407
+ "../../node_modules/semver/functions/minor.js"(exports, module) {
408
+ "use strict";
409
+ var SemVer = require_semver(), minor = (a, loose) => new SemVer(a, loose).minor;
410
+ module.exports = minor;
411
+ }
412
+ });
413
+
414
+ // ../../node_modules/semver/functions/patch.js
415
+ var require_patch = __commonJS({
416
+ "../../node_modules/semver/functions/patch.js"(exports, module) {
417
+ "use strict";
418
+ var SemVer = require_semver(), patch = (a, loose) => new SemVer(a, loose).patch;
419
+ module.exports = patch;
420
+ }
421
+ });
422
+
423
+ // ../../node_modules/semver/functions/prerelease.js
424
+ var require_prerelease = __commonJS({
425
+ "../../node_modules/semver/functions/prerelease.js"(exports, module) {
426
+ "use strict";
427
+ var parse = require_parse(), prerelease = (version, options) => {
428
+ let parsed = parse(version, options);
429
+ return parsed && parsed.prerelease.length ? parsed.prerelease : null;
430
+ };
431
+ module.exports = prerelease;
432
+ }
433
+ });
434
+
435
+ // ../../node_modules/semver/functions/compare.js
436
+ var require_compare = __commonJS({
437
+ "../../node_modules/semver/functions/compare.js"(exports, module) {
438
+ "use strict";
439
+ var SemVer = require_semver(), compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
440
+ module.exports = compare;
441
+ }
442
+ });
443
+
444
+ // ../../node_modules/semver/functions/rcompare.js
445
+ var require_rcompare = __commonJS({
446
+ "../../node_modules/semver/functions/rcompare.js"(exports, module) {
447
+ "use strict";
448
+ var compare = require_compare(), rcompare = (a, b, loose) => compare(b, a, loose);
449
+ module.exports = rcompare;
450
+ }
451
+ });
452
+
453
+ // ../../node_modules/semver/functions/compare-loose.js
454
+ var require_compare_loose = __commonJS({
455
+ "../../node_modules/semver/functions/compare-loose.js"(exports, module) {
456
+ "use strict";
457
+ var compare = require_compare(), compareLoose = (a, b) => compare(a, b, !0);
458
+ module.exports = compareLoose;
459
+ }
460
+ });
461
+
462
+ // ../../node_modules/semver/functions/compare-build.js
463
+ var require_compare_build = __commonJS({
464
+ "../../node_modules/semver/functions/compare-build.js"(exports, module) {
465
+ "use strict";
466
+ var SemVer = require_semver(), compareBuild = (a, b, loose) => {
467
+ let versionA = new SemVer(a, loose), versionB = new SemVer(b, loose);
468
+ return versionA.compare(versionB) || versionA.compareBuild(versionB);
469
+ };
470
+ module.exports = compareBuild;
471
+ }
472
+ });
473
+
474
+ // ../../node_modules/semver/functions/sort.js
475
+ var require_sort = __commonJS({
476
+ "../../node_modules/semver/functions/sort.js"(exports, module) {
477
+ "use strict";
478
+ var compareBuild = require_compare_build(), sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
479
+ module.exports = sort;
480
+ }
481
+ });
482
+
483
+ // ../../node_modules/semver/functions/rsort.js
484
+ var require_rsort = __commonJS({
485
+ "../../node_modules/semver/functions/rsort.js"(exports, module) {
486
+ "use strict";
487
+ var compareBuild = require_compare_build(), rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
488
+ module.exports = rsort;
489
+ }
490
+ });
491
+
492
+ // ../../node_modules/semver/functions/gt.js
493
+ var require_gt = __commonJS({
494
+ "../../node_modules/semver/functions/gt.js"(exports, module) {
495
+ "use strict";
496
+ var compare = require_compare(), gt = (a, b, loose) => compare(a, b, loose) > 0;
497
+ module.exports = gt;
498
+ }
499
+ });
500
+
501
+ // ../../node_modules/semver/functions/lt.js
502
+ var require_lt = __commonJS({
503
+ "../../node_modules/semver/functions/lt.js"(exports, module) {
504
+ "use strict";
505
+ var compare = require_compare(), lt = (a, b, loose) => compare(a, b, loose) < 0;
506
+ module.exports = lt;
507
+ }
508
+ });
509
+
510
+ // ../../node_modules/semver/functions/eq.js
511
+ var require_eq = __commonJS({
512
+ "../../node_modules/semver/functions/eq.js"(exports, module) {
513
+ "use strict";
514
+ var compare = require_compare(), eq = (a, b, loose) => compare(a, b, loose) === 0;
515
+ module.exports = eq;
516
+ }
517
+ });
518
+
519
+ // ../../node_modules/semver/functions/neq.js
520
+ var require_neq = __commonJS({
521
+ "../../node_modules/semver/functions/neq.js"(exports, module) {
522
+ "use strict";
523
+ var compare = require_compare(), neq = (a, b, loose) => compare(a, b, loose) !== 0;
524
+ module.exports = neq;
525
+ }
526
+ });
527
+
528
+ // ../../node_modules/semver/functions/gte.js
529
+ var require_gte = __commonJS({
530
+ "../../node_modules/semver/functions/gte.js"(exports, module) {
531
+ "use strict";
532
+ var compare = require_compare(), gte = (a, b, loose) => compare(a, b, loose) >= 0;
533
+ module.exports = gte;
534
+ }
535
+ });
536
+
537
+ // ../../node_modules/semver/functions/lte.js
538
+ var require_lte = __commonJS({
539
+ "../../node_modules/semver/functions/lte.js"(exports, module) {
540
+ "use strict";
541
+ var compare = require_compare(), lte = (a, b, loose) => compare(a, b, loose) <= 0;
542
+ module.exports = lte;
543
+ }
544
+ });
545
+
546
+ // ../../node_modules/semver/functions/cmp.js
547
+ var require_cmp = __commonJS({
548
+ "../../node_modules/semver/functions/cmp.js"(exports, module) {
549
+ "use strict";
550
+ var eq = require_eq(), neq = require_neq(), gt = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a, op, b, loose) => {
551
+ switch (op) {
552
+ case "===":
553
+ return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a === b;
554
+ case "!==":
555
+ return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a !== b;
556
+ case "":
557
+ case "=":
558
+ case "==":
559
+ return eq(a, b, loose);
560
+ case "!=":
561
+ return neq(a, b, loose);
562
+ case ">":
563
+ return gt(a, b, loose);
564
+ case ">=":
565
+ return gte(a, b, loose);
566
+ case "<":
567
+ return lt(a, b, loose);
568
+ case "<=":
569
+ return lte(a, b, loose);
570
+ default:
571
+ throw new TypeError(`Invalid operator: ${op}`);
572
+ }
573
+ };
574
+ module.exports = cmp;
575
+ }
576
+ });
577
+
578
+ // ../../node_modules/semver/functions/coerce.js
579
+ var require_coerce = __commonJS({
580
+ "../../node_modules/semver/functions/coerce.js"(exports, module) {
581
+ "use strict";
582
+ var SemVer = require_semver(), parse = require_parse(), { safeRe: re, t } = require_re(), coerce = (version, options) => {
583
+ if (version instanceof SemVer)
584
+ return version;
585
+ if (typeof version == "number" && (version = String(version)), typeof version != "string")
586
+ return null;
587
+ options = options || {};
588
+ let match = null;
589
+ if (!options.rtl)
590
+ match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
591
+ else {
592
+ let coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL], next;
593
+ for (; (next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length); )
594
+ (!match || next.index + next[0].length !== match.index + match[0].length) && (match = next), coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
595
+ coerceRtlRegex.lastIndex = -1;
596
+ }
597
+ if (match === null)
598
+ return null;
599
+ let major = match[2], minor = match[3] || "0", patch = match[4] || "0", prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "", build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
600
+ return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
601
+ };
602
+ module.exports = coerce;
603
+ }
604
+ });
605
+
606
+ // ../../node_modules/semver/internal/lrucache.js
607
+ var require_lrucache = __commonJS({
608
+ "../../node_modules/semver/internal/lrucache.js"(exports, module) {
609
+ "use strict";
610
+ var LRUCache = class {
611
+ constructor() {
612
+ this.max = 1e3, this.map = /* @__PURE__ */ new Map();
613
+ }
614
+ get(key) {
615
+ let value = this.map.get(key);
616
+ if (value !== void 0)
617
+ return this.map.delete(key), this.map.set(key, value), value;
618
+ }
619
+ delete(key) {
620
+ return this.map.delete(key);
621
+ }
622
+ set(key, value) {
623
+ if (!this.delete(key) && value !== void 0) {
624
+ if (this.map.size >= this.max) {
625
+ let firstKey = this.map.keys().next().value;
626
+ this.delete(firstKey);
627
+ }
628
+ this.map.set(key, value);
629
+ }
630
+ return this;
631
+ }
632
+ };
633
+ module.exports = LRUCache;
634
+ }
635
+ });
636
+
637
+ // ../../node_modules/semver/classes/range.js
638
+ var require_range = __commonJS({
639
+ "../../node_modules/semver/classes/range.js"(exports, module) {
640
+ "use strict";
641
+ var SPACE_CHARACTERS = /\s+/g, Range = class _Range {
642
+ constructor(range, options) {
643
+ if (options = parseOptions(options), range instanceof _Range)
644
+ return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options);
645
+ if (range instanceof Comparator)
646
+ return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this;
647
+ if (this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease, this.raw = range.trim().replace(SPACE_CHARACTERS, " "), this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length), !this.set.length)
648
+ throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
649
+ if (this.set.length > 1) {
650
+ let first = this.set[0];
651
+ if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0)
652
+ this.set = [first];
653
+ else if (this.set.length > 1) {
654
+ for (let c of this.set)
655
+ if (c.length === 1 && isAny(c[0])) {
656
+ this.set = [c];
657
+ break;
658
+ }
659
+ }
660
+ }
661
+ this.formatted = void 0;
662
+ }
663
+ get range() {
664
+ if (this.formatted === void 0) {
665
+ this.formatted = "";
666
+ for (let i = 0; i < this.set.length; i++) {
667
+ i > 0 && (this.formatted += "||");
668
+ let comps = this.set[i];
669
+ for (let k = 0; k < comps.length; k++)
670
+ k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim();
671
+ }
672
+ }
673
+ return this.formatted;
674
+ }
675
+ format() {
676
+ return this.range;
677
+ }
678
+ toString() {
679
+ return this.range;
680
+ }
681
+ parseRange(range) {
682
+ let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache.get(memoKey);
683
+ if (cached)
684
+ return cached;
685
+ let loose = this.options.loose, hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
686
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease)), debug("hyphen replace", range), range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace), debug("comparator trim", range), range = range.replace(re[t.TILDETRIM], tildeTrimReplace), debug("tilde trim", range), range = range.replace(re[t.CARETTRIM], caretTrimReplace), debug("caret trim", range);
687
+ let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
688
+ loose && (rangeList = rangeList.filter((comp) => (debug("loose invalid filter", comp, this.options), !!comp.match(re[t.COMPARATORLOOSE])))), debug("range list", rangeList);
689
+ let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
690
+ for (let comp of comparators) {
691
+ if (isNullSet(comp))
692
+ return [comp];
693
+ rangeMap.set(comp.value, comp);
694
+ }
695
+ rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
696
+ let result = [...rangeMap.values()];
697
+ return cache.set(memoKey, result), result;
698
+ }
699
+ intersects(range, options) {
700
+ if (!(range instanceof _Range))
701
+ throw new TypeError("a Range is required");
702
+ return this.set.some((thisComparators) => isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options)))));
703
+ }
704
+ // if ANY of the sets match ALL of its comparators, then pass
705
+ test(version) {
706
+ if (!version)
707
+ return !1;
708
+ if (typeof version == "string")
709
+ try {
710
+ version = new SemVer(version, this.options);
711
+ } catch {
712
+ return !1;
713
+ }
714
+ for (let i = 0; i < this.set.length; i++)
715
+ if (testSet(this.set[i], version, this.options))
716
+ return !0;
717
+ return !1;
718
+ }
719
+ };
720
+ module.exports = Range;
721
+ var LRU = require_lrucache(), cache = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug = require_debug(), SemVer = require_semver(), {
722
+ safeRe: re,
723
+ t,
724
+ comparatorTrimReplace,
725
+ tildeTrimReplace,
726
+ caretTrimReplace
727
+ } = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => {
728
+ let result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop();
729
+ for (; result && remainingComparators.length; )
730
+ result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
731
+ return result;
732
+ }, parseComparator = (comp, options) => (comp = comp.replace(re[t.BUILD], ""), debug("comp", comp, options), comp = replaceCarets(comp, options), debug("caret", comp), comp = replaceTildes(comp, options), debug("tildes", comp), comp = replaceXRanges(comp, options), debug("xrange", comp), comp = replaceStars(comp, options), debug("stars", comp), comp), isX = (id) => !id || id.toLowerCase() === "x" || id === "*", replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" "), replaceTilde = (comp, options) => {
733
+ let r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
734
+ return comp.replace(r, (_, M, m, p, pr) => {
735
+ debug("tilde", comp, _, M, m, p, pr);
736
+ let ret;
737
+ return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0 <${+M + 1}.0.0-0` : isX(p) ? ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` : pr ? (debug("replaceTilde pr", pr), ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`) : ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`, debug("tilde return", ret), ret;
738
+ });
739
+ }, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
740
+ debug("caret", comp, options);
741
+ let r = options.loose ? re[t.CARETLOOSE] : re[t.CARET], z = options.includePrerelease ? "-0" : "";
742
+ return comp.replace(r, (_, M, m, p, pr) => {
743
+ debug("caret", comp, _, M, m, p, pr);
744
+ let ret;
745
+ return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` : isX(p) ? M === "0" ? ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0` : pr ? (debug("replaceCaret pr", pr), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`) : (debug("no pr"), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`), debug("caret return", ret), ret;
746
+ });
747
+ }, replaceXRanges = (comp, options) => (debug("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
748
+ comp = comp.trim();
749
+ let r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
750
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
751
+ debug("xRange", comp, ret, gtlt, M, m, p, pr);
752
+ let xM = isX(M), xm = xM || isX(m), xp = xm || isX(p), anyX = xp;
753
+ return gtlt === "=" && anyX && (gtlt = ""), pr = options.includePrerelease ? "-0" : "", xM ? gtlt === ">" || gtlt === "<" ? ret = "<0.0.0-0" : ret = "*" : gtlt && anyX ? (xm && (m = 0), p = 0, gtlt === ">" ? (gtlt = ">=", xm ? (M = +M + 1, m = 0, p = 0) : (m = +m + 1, p = 0)) : gtlt === "<=" && (gtlt = "<", xm ? M = +M + 1 : m = +m + 1), gtlt === "<" && (pr = "-0"), ret = `${gtlt + M}.${m}.${p}${pr}`) : xm ? ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` : xp && (ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`), debug("xRange return", ret), ret;
754
+ });
755
+ }, replaceStars = (comp, options) => (debug("replaceStars", comp, options), comp.trim().replace(re[t.STAR], "")), replaceGTE0 = (comp, options) => (debug("replaceGTE0", comp, options), comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "")), hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => (isX(fM) ? from = "" : isX(fm) ? from = `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp) ? from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? from = `>=${from}` : from = `>=${from}${incPr ? "-0" : ""}`, isX(tM) ? to = "" : isX(tm) ? to = `<${+tM + 1}.0.0-0` : isX(tp) ? to = `<${tM}.${+tm + 1}.0-0` : tpr ? to = `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? to = `<${tM}.${tm}.${+tp + 1}-0` : to = `<=${to}`, `${from} ${to}`.trim()), testSet = (set, version, options) => {
756
+ for (let i = 0; i < set.length; i++)
757
+ if (!set[i].test(version))
758
+ return !1;
759
+ if (version.prerelease.length && !options.includePrerelease) {
760
+ for (let i = 0; i < set.length; i++)
761
+ if (debug(set[i].semver), set[i].semver !== Comparator.ANY && set[i].semver.prerelease.length > 0) {
762
+ let allowed = set[i].semver;
763
+ if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch)
764
+ return !0;
765
+ }
766
+ return !1;
767
+ }
768
+ return !0;
769
+ };
770
+ }
771
+ });
772
+
773
+ // ../../node_modules/semver/classes/comparator.js
774
+ var require_comparator = __commonJS({
775
+ "../../node_modules/semver/classes/comparator.js"(exports, module) {
776
+ "use strict";
777
+ var ANY = Symbol("SemVer ANY"), Comparator = class _Comparator {
778
+ static get ANY() {
779
+ return ANY;
780
+ }
781
+ constructor(comp, options) {
782
+ if (options = parseOptions(options), comp instanceof _Comparator) {
783
+ if (comp.loose === !!options.loose)
784
+ return comp;
785
+ comp = comp.value;
786
+ }
787
+ comp = comp.trim().split(/\s+/).join(" "), debug("comparator", comp, options), this.options = options, this.loose = !!options.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug("comp", this);
788
+ }
789
+ parse(comp) {
790
+ let r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], m = comp.match(r);
791
+ if (!m)
792
+ throw new TypeError(`Invalid comparator: ${comp}`);
793
+ this.operator = m[1] !== void 0 ? m[1] : "", this.operator === "=" && (this.operator = ""), m[2] ? this.semver = new SemVer(m[2], this.options.loose) : this.semver = ANY;
794
+ }
795
+ toString() {
796
+ return this.value;
797
+ }
798
+ test(version) {
799
+ if (debug("Comparator.test", version, this.options.loose), this.semver === ANY || version === ANY)
800
+ return !0;
801
+ if (typeof version == "string")
802
+ try {
803
+ version = new SemVer(version, this.options);
804
+ } catch {
805
+ return !1;
806
+ }
807
+ return cmp(version, this.operator, this.semver, this.options);
808
+ }
809
+ intersects(comp, options) {
810
+ if (!(comp instanceof _Comparator))
811
+ throw new TypeError("a Comparator is required");
812
+ return this.operator === "" ? this.value === "" ? !0 : new Range(comp.value, options).test(this.value) : comp.operator === "" ? comp.value === "" ? !0 : new Range(this.value, options).test(comp.semver) : (options = parseOptions(options), options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0") || !options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && comp.operator.startsWith(">") || this.operator.startsWith("<") && comp.operator.startsWith("<") || this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=") || cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<") || cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")));
813
+ }
814
+ };
815
+ module.exports = Comparator;
816
+ var parseOptions = require_parse_options(), { safeRe: re, t } = require_re(), cmp = require_cmp(), debug = require_debug(), SemVer = require_semver(), Range = require_range();
817
+ }
818
+ });
819
+
820
+ // ../../node_modules/semver/functions/satisfies.js
821
+ var require_satisfies = __commonJS({
822
+ "../../node_modules/semver/functions/satisfies.js"(exports, module) {
823
+ "use strict";
824
+ var Range = require_range(), satisfies = (version, range, options) => {
825
+ try {
826
+ range = new Range(range, options);
827
+ } catch {
828
+ return !1;
829
+ }
830
+ return range.test(version);
831
+ };
832
+ module.exports = satisfies;
833
+ }
834
+ });
835
+
836
+ // ../../node_modules/semver/ranges/to-comparators.js
837
+ var require_to_comparators = __commonJS({
838
+ "../../node_modules/semver/ranges/to-comparators.js"(exports, module) {
839
+ "use strict";
840
+ var Range = require_range(), toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
841
+ module.exports = toComparators;
842
+ }
843
+ });
844
+
845
+ // ../../node_modules/semver/ranges/max-satisfying.js
846
+ var require_max_satisfying = __commonJS({
847
+ "../../node_modules/semver/ranges/max-satisfying.js"(exports, module) {
848
+ "use strict";
849
+ var SemVer = require_semver(), Range = require_range(), maxSatisfying = (versions, range, options) => {
850
+ let max = null, maxSV = null, rangeObj = null;
851
+ try {
852
+ rangeObj = new Range(range, options);
853
+ } catch {
854
+ return null;
855
+ }
856
+ return versions.forEach((v) => {
857
+ rangeObj.test(v) && (!max || maxSV.compare(v) === -1) && (max = v, maxSV = new SemVer(max, options));
858
+ }), max;
859
+ };
860
+ module.exports = maxSatisfying;
861
+ }
862
+ });
863
+
864
+ // ../../node_modules/semver/ranges/min-satisfying.js
865
+ var require_min_satisfying = __commonJS({
866
+ "../../node_modules/semver/ranges/min-satisfying.js"(exports, module) {
867
+ "use strict";
868
+ var SemVer = require_semver(), Range = require_range(), minSatisfying = (versions, range, options) => {
869
+ let min = null, minSV = null, rangeObj = null;
870
+ try {
871
+ rangeObj = new Range(range, options);
872
+ } catch {
873
+ return null;
874
+ }
875
+ return versions.forEach((v) => {
876
+ rangeObj.test(v) && (!min || minSV.compare(v) === 1) && (min = v, minSV = new SemVer(min, options));
877
+ }), min;
878
+ };
879
+ module.exports = minSatisfying;
880
+ }
881
+ });
882
+
883
+ // ../../node_modules/semver/ranges/min-version.js
884
+ var require_min_version = __commonJS({
885
+ "../../node_modules/semver/ranges/min-version.js"(exports, module) {
886
+ "use strict";
887
+ var SemVer = require_semver(), Range = require_range(), gt = require_gt(), minVersion = (range, loose) => {
888
+ range = new Range(range, loose);
889
+ let minver = new SemVer("0.0.0");
890
+ if (range.test(minver) || (minver = new SemVer("0.0.0-0"), range.test(minver)))
891
+ return minver;
892
+ minver = null;
893
+ for (let i = 0; i < range.set.length; ++i) {
894
+ let comparators = range.set[i], setMin = null;
895
+ comparators.forEach((comparator) => {
896
+ let compver = new SemVer(comparator.semver.version);
897
+ switch (comparator.operator) {
898
+ case ">":
899
+ compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
900
+ /* fallthrough */
901
+ case "":
902
+ case ">=":
903
+ (!setMin || gt(compver, setMin)) && (setMin = compver);
904
+ break;
905
+ case "<":
906
+ case "<=":
907
+ break;
908
+ /* istanbul ignore next */
909
+ default:
910
+ throw new Error(`Unexpected operation: ${comparator.operator}`);
911
+ }
912
+ }), setMin && (!minver || gt(minver, setMin)) && (minver = setMin);
913
+ }
914
+ return minver && range.test(minver) ? minver : null;
915
+ };
916
+ module.exports = minVersion;
917
+ }
918
+ });
919
+
920
+ // ../../node_modules/semver/ranges/valid.js
921
+ var require_valid2 = __commonJS({
922
+ "../../node_modules/semver/ranges/valid.js"(exports, module) {
923
+ "use strict";
924
+ var Range = require_range(), validRange = (range, options) => {
925
+ try {
926
+ return new Range(range, options).range || "*";
927
+ } catch {
928
+ return null;
929
+ }
930
+ };
931
+ module.exports = validRange;
932
+ }
933
+ });
934
+
935
+ // ../../node_modules/semver/ranges/outside.js
936
+ var require_outside = __commonJS({
937
+ "../../node_modules/semver/ranges/outside.js"(exports, module) {
938
+ "use strict";
939
+ var SemVer = require_semver(), Comparator = require_comparator(), { ANY } = Comparator, Range = require_range(), satisfies = require_satisfies(), gt = require_gt(), lt = require_lt(), lte = require_lte(), gte = require_gte(), outside = (version, range, hilo, options) => {
940
+ version = new SemVer(version, options), range = new Range(range, options);
941
+ let gtfn, ltefn, ltfn, comp, ecomp;
942
+ switch (hilo) {
943
+ case ">":
944
+ gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
945
+ break;
946
+ case "<":
947
+ gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
948
+ break;
949
+ default:
950
+ throw new TypeError('Must provide a hilo val of "<" or ">"');
951
+ }
952
+ if (satisfies(version, range, options))
953
+ return !1;
954
+ for (let i = 0; i < range.set.length; ++i) {
955
+ let comparators = range.set[i], high = null, low = null;
956
+ if (comparators.forEach((comparator) => {
957
+ comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options) ? high = comparator : ltfn(comparator.semver, low.semver, options) && (low = comparator);
958
+ }), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version, low.semver))
959
+ return !1;
960
+ if (low.operator === ecomp && ltfn(version, low.semver))
961
+ return !1;
962
+ }
963
+ return !0;
964
+ };
965
+ module.exports = outside;
966
+ }
967
+ });
968
+
969
+ // ../../node_modules/semver/ranges/gtr.js
970
+ var require_gtr = __commonJS({
971
+ "../../node_modules/semver/ranges/gtr.js"(exports, module) {
972
+ "use strict";
973
+ var outside = require_outside(), gtr = (version, range, options) => outside(version, range, ">", options);
974
+ module.exports = gtr;
975
+ }
976
+ });
977
+
978
+ // ../../node_modules/semver/ranges/ltr.js
979
+ var require_ltr = __commonJS({
980
+ "../../node_modules/semver/ranges/ltr.js"(exports, module) {
981
+ "use strict";
982
+ var outside = require_outside(), ltr = (version, range, options) => outside(version, range, "<", options);
983
+ module.exports = ltr;
984
+ }
985
+ });
986
+
987
+ // ../../node_modules/semver/ranges/intersects.js
988
+ var require_intersects = __commonJS({
989
+ "../../node_modules/semver/ranges/intersects.js"(exports, module) {
990
+ "use strict";
991
+ var Range = require_range(), intersects = (r1, r2, options) => (r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2, options));
992
+ module.exports = intersects;
993
+ }
994
+ });
995
+
996
+ // ../../node_modules/semver/ranges/simplify.js
997
+ var require_simplify = __commonJS({
998
+ "../../node_modules/semver/ranges/simplify.js"(exports, module) {
999
+ "use strict";
1000
+ var satisfies = require_satisfies(), compare = require_compare();
1001
+ module.exports = (versions, range, options) => {
1002
+ let set = [], first = null, prev = null, v = versions.sort((a, b) => compare(a, b, options));
1003
+ for (let version of v)
1004
+ satisfies(version, range, options) ? (prev = version, first || (first = version)) : (prev && set.push([first, prev]), prev = null, first = null);
1005
+ first && set.push([first, null]);
1006
+ let ranges = [];
1007
+ for (let [min, max] of set)
1008
+ min === max ? ranges.push(min) : !max && min === v[0] ? ranges.push("*") : max ? min === v[0] ? ranges.push(`<=${max}`) : ranges.push(`${min} - ${max}`) : ranges.push(`>=${min}`);
1009
+ let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range);
1010
+ return simplified.length < original.length ? simplified : range;
1011
+ };
1012
+ }
1013
+ });
1014
+
1015
+ // ../../node_modules/semver/ranges/subset.js
1016
+ var require_subset = __commonJS({
1017
+ "../../node_modules/semver/ranges/subset.js"(exports, module) {
1018
+ "use strict";
1019
+ var Range = require_range(), Comparator = require_comparator(), { ANY } = Comparator, satisfies = require_satisfies(), compare = require_compare(), subset = (sub, dom, options = {}) => {
1020
+ if (sub === dom)
1021
+ return !0;
1022
+ sub = new Range(sub, options), dom = new Range(dom, options);
1023
+ let sawNonNull = !1;
1024
+ OUTER: for (let simpleSub of sub.set) {
1025
+ for (let simpleDom of dom.set) {
1026
+ let isSub = simpleSubset(simpleSub, simpleDom, options);
1027
+ if (sawNonNull = sawNonNull || isSub !== null, isSub)
1028
+ continue OUTER;
1029
+ }
1030
+ if (sawNonNull)
1031
+ return !1;
1032
+ }
1033
+ return !0;
1034
+ }, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
1035
+ if (sub === dom)
1036
+ return !0;
1037
+ if (sub.length === 1 && sub[0].semver === ANY) {
1038
+ if (dom.length === 1 && dom[0].semver === ANY)
1039
+ return !0;
1040
+ options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion;
1041
+ }
1042
+ if (dom.length === 1 && dom[0].semver === ANY) {
1043
+ if (options.includePrerelease)
1044
+ return !0;
1045
+ dom = minimumVersion;
1046
+ }
1047
+ let eqSet = /* @__PURE__ */ new Set(), gt, lt;
1048
+ for (let c of sub)
1049
+ c.operator === ">" || c.operator === ">=" ? gt = higherGT(gt, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
1050
+ if (eqSet.size > 1)
1051
+ return null;
1052
+ let gtltComp;
1053
+ if (gt && lt) {
1054
+ if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0)
1055
+ return null;
1056
+ if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<="))
1057
+ return null;
1058
+ }
1059
+ for (let eq of eqSet) {
1060
+ if (gt && !satisfies(eq, String(gt), options) || lt && !satisfies(eq, String(lt), options))
1061
+ return null;
1062
+ for (let c of dom)
1063
+ if (!satisfies(eq, String(c), options))
1064
+ return !1;
1065
+ return !0;
1066
+ }
1067
+ let higher, lower, hasDomLT, hasDomGT, needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : !1, needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : !1;
1068
+ needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = !1);
1069
+ for (let c of dom) {
1070
+ if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt) {
1071
+ if (needDomGTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch && (needDomGTPre = !1), c.operator === ">" || c.operator === ">=") {
1072
+ if (higher = higherGT(gt, c, options), higher === c && higher !== gt)
1073
+ return !1;
1074
+ } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options))
1075
+ return !1;
1076
+ }
1077
+ if (lt) {
1078
+ if (needDomLTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch && (needDomLTPre = !1), c.operator === "<" || c.operator === "<=") {
1079
+ if (lower = lowerLT(lt, c, options), lower === c && lower !== lt)
1080
+ return !1;
1081
+ } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options))
1082
+ return !1;
1083
+ }
1084
+ if (!c.operator && (lt || gt) && gtltComp !== 0)
1085
+ return !1;
1086
+ }
1087
+ return !(gt && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt && gtltComp !== 0 || needDomGTPre || needDomLTPre);
1088
+ }, higherGT = (a, b, options) => {
1089
+ if (!a)
1090
+ return b;
1091
+ let comp = compare(a.semver, b.semver, options);
1092
+ return comp > 0 ? a : comp < 0 || b.operator === ">" && a.operator === ">=" ? b : a;
1093
+ }, lowerLT = (a, b, options) => {
1094
+ if (!a)
1095
+ return b;
1096
+ let comp = compare(a.semver, b.semver, options);
1097
+ return comp < 0 ? a : comp > 0 || b.operator === "<" && a.operator === "<=" ? b : a;
1098
+ };
1099
+ module.exports = subset;
1100
+ }
1101
+ });
1102
+
1103
+ // ../../node_modules/semver/index.js
1104
+ var require_semver2 = __commonJS({
1105
+ "../../node_modules/semver/index.js"(exports, module) {
1106
+ "use strict";
1107
+ var internalRe = require_re(), constants = require_constants(), SemVer = require_semver(), identifiers = require_identifiers(), parse = require_parse(), valid = require_valid(), clean = require_clean(), inc = require_inc(), diff = require_diff(), major = require_major(), minor = require_minor(), patch = require_patch(), prerelease = require_prerelease(), compare = require_compare(), rcompare = require_rcompare(), compareLoose = require_compare_loose(), compareBuild = require_compare_build(), sort = require_sort(), rsort = require_rsort(), gt = require_gt(), lt = require_lt(), eq = require_eq(), neq = require_neq(), gte = require_gte(), lte = require_lte(), cmp = require_cmp(), coerce = require_coerce(), Comparator = require_comparator(), Range = require_range(), satisfies = require_satisfies(), toComparators = require_to_comparators(), maxSatisfying = require_max_satisfying(), minSatisfying = require_min_satisfying(), minVersion = require_min_version(), validRange = require_valid2(), outside = require_outside(), gtr = require_gtr(), ltr = require_ltr(), intersects = require_intersects(), simplifyRange = require_simplify(), subset = require_subset();
1108
+ module.exports = {
1109
+ parse,
1110
+ valid,
1111
+ clean,
1112
+ inc,
1113
+ diff,
1114
+ major,
1115
+ minor,
1116
+ patch,
1117
+ prerelease,
1118
+ compare,
1119
+ rcompare,
1120
+ compareLoose,
1121
+ compareBuild,
1122
+ sort,
1123
+ rsort,
1124
+ gt,
1125
+ lt,
1126
+ eq,
1127
+ neq,
1128
+ gte,
1129
+ lte,
1130
+ cmp,
1131
+ coerce,
1132
+ Comparator,
1133
+ Range,
1134
+ satisfies,
1135
+ toComparators,
1136
+ maxSatisfying,
1137
+ minSatisfying,
1138
+ minVersion,
1139
+ validRange,
1140
+ outside,
1141
+ gtr,
1142
+ ltr,
1143
+ intersects,
1144
+ simplifyRange,
1145
+ subset,
1146
+ SemVer,
1147
+ re: internalRe.re,
1148
+ src: internalRe.src,
1149
+ tokens: internalRe.t,
1150
+ SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
1151
+ RELEASE_TYPES: constants.RELEASE_TYPES,
1152
+ compareIdentifiers: identifiers.compareIdentifiers,
1153
+ rcompareIdentifiers: identifiers.rcompareIdentifiers
1154
+ };
1155
+ }
1156
+ });
1157
+
1158
+ export {
1159
+ require_semver2 as require_semver
1160
+ };