@hot-updater/js 0.28.0 → 0.29.0

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.
@@ -1,15 +1,12 @@
1
- import { NIL_UUID } from "@hot-updater/core";
2
-
3
- //#region rolldown:runtime
1
+ import { NIL_UUID, isCohortEligibleForUpdate } from "@hot-updater/core";
2
+ //#region \0rolldown/runtime.js
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
7
  var __getProtoOf = Object.getPrototypeOf;
9
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __commonJS = (cb, mod) => function() {
11
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
- };
9
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
13
10
  var __copyProps = (to, from, except, desc) => {
14
11
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
15
12
  key = keys[i];
@@ -24,59 +21,52 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
21
  value: mod,
25
22
  enumerable: true
26
23
  }) : target, mod));
27
-
28
24
  //#endregion
29
25
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js
30
- var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js": ((exports, module) => {
26
+ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31
27
  const SEMVER_SPEC_VERSION = "2.0.0";
32
- const MAX_LENGTH$2 = 256;
33
- const MAX_SAFE_INTEGER$1 = Number.MAX_SAFE_INTEGER || 9007199254740991;
34
- const MAX_SAFE_COMPONENT_LENGTH$1 = 16;
35
- const MAX_SAFE_BUILD_LENGTH$1 = MAX_LENGTH$2 - 6;
36
- const RELEASE_TYPES = [
37
- "major",
38
- "premajor",
39
- "minor",
40
- "preminor",
41
- "patch",
42
- "prepatch",
43
- "prerelease"
44
- ];
28
+ const MAX_LENGTH = 256;
29
+ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
45
30
  module.exports = {
46
- MAX_LENGTH: MAX_LENGTH$2,
47
- MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH$1,
48
- MAX_SAFE_BUILD_LENGTH: MAX_SAFE_BUILD_LENGTH$1,
49
- MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$1,
50
- RELEASE_TYPES,
31
+ MAX_LENGTH,
32
+ MAX_SAFE_COMPONENT_LENGTH: 16,
33
+ MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
34
+ MAX_SAFE_INTEGER,
35
+ RELEASE_TYPES: [
36
+ "major",
37
+ "premajor",
38
+ "minor",
39
+ "preminor",
40
+ "patch",
41
+ "prepatch",
42
+ "prerelease"
43
+ ],
51
44
  SEMVER_SPEC_VERSION,
52
45
  FLAG_INCLUDE_PRERELEASE: 1,
53
46
  FLAG_LOOSE: 2
54
47
  };
55
- }) });
56
-
48
+ }));
57
49
  //#endregion
58
50
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js
59
- var require_debug = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js": ((exports, module) => {
60
- const debug$4 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
61
- module.exports = debug$4;
62
- }) });
63
-
51
+ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
52
+ module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
53
+ }));
64
54
  //#endregion
65
55
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js
66
- var require_re = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js": ((exports, module) => {
67
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH: MAX_LENGTH$1 } = require_constants();
68
- const debug$3 = require_debug();
56
+ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
57
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
58
+ const debug = require_debug();
69
59
  exports = module.exports = {};
70
- const re$4 = exports.re = [];
60
+ const re = exports.re = [];
71
61
  const safeRe = exports.safeRe = [];
72
62
  const src = exports.src = [];
73
63
  const safeSrc = exports.safeSrc = [];
74
- const t$4 = exports.t = {};
64
+ const t = exports.t = {};
75
65
  let R = 0;
76
66
  const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
77
67
  const safeRegexReplacements = [
78
68
  ["\\s", 1],
79
- ["\\d", MAX_LENGTH$1],
69
+ ["\\d", MAX_LENGTH],
80
70
  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
81
71
  ];
82
72
  const makeSafeRegex = (value) => {
@@ -86,79 +76,77 @@ var require_re = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7
86
76
  const createToken = (name, value, isGlobal) => {
87
77
  const safe = makeSafeRegex(value);
88
78
  const index = R++;
89
- debug$3(name, index, value);
90
- t$4[name] = index;
79
+ debug(name, index, value);
80
+ t[name] = index;
91
81
  src[index] = value;
92
82
  safeSrc[index] = safe;
93
- re$4[index] = new RegExp(value, isGlobal ? "g" : void 0);
83
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
94
84
  safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
95
85
  };
96
86
  createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
97
87
  createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
98
88
  createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
99
- createToken("MAINVERSION", `(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})`);
100
- createToken("MAINVERSIONLOOSE", `(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})`);
101
- createToken("PRERELEASEIDENTIFIER", `(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIER]})`);
102
- createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIERLOOSE]})`);
103
- createToken("PRERELEASE", `(?:-(${src[t$4.PRERELEASEIDENTIFIER]}(?:\\.${src[t$4.PRERELEASEIDENTIFIER]})*))`);
104
- createToken("PRERELEASELOOSE", `(?:-?(${src[t$4.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t$4.PRERELEASEIDENTIFIERLOOSE]})*))`);
89
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
90
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
91
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
92
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
93
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
94
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
105
95
  createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
106
- createToken("BUILD", `(?:\\+(${src[t$4.BUILDIDENTIFIER]}(?:\\.${src[t$4.BUILDIDENTIFIER]})*))`);
107
- createToken("FULLPLAIN", `v?${src[t$4.MAINVERSION]}${src[t$4.PRERELEASE]}?${src[t$4.BUILD]}?`);
108
- createToken("FULL", `^${src[t$4.FULLPLAIN]}$`);
109
- createToken("LOOSEPLAIN", `[v=\\s]*${src[t$4.MAINVERSIONLOOSE]}${src[t$4.PRERELEASELOOSE]}?${src[t$4.BUILD]}?`);
110
- createToken("LOOSE", `^${src[t$4.LOOSEPLAIN]}$`);
96
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
97
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
98
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
99
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
100
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
111
101
  createToken("GTLT", "((?:<|>)?=?)");
112
- createToken("XRANGEIDENTIFIERLOOSE", `${src[t$4.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
113
- createToken("XRANGEIDENTIFIER", `${src[t$4.NUMERICIDENTIFIER]}|x|X|\\*`);
114
- createToken("XRANGEPLAIN", `[v=\\s]*(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:${src[t$4.PRERELEASE]})?${src[t$4.BUILD]}?)?)?`);
115
- createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:${src[t$4.PRERELEASELOOSE]})?${src[t$4.BUILD]}?)?)?`);
116
- createToken("XRANGE", `^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAIN]}$`);
117
- createToken("XRANGELOOSE", `^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAINLOOSE]}$`);
102
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
103
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
104
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
105
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
106
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
107
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
118
108
  createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
119
- createToken("COERCE", `${src[t$4.COERCEPLAIN]}(?:$|[^\\d])`);
120
- createToken("COERCEFULL", src[t$4.COERCEPLAIN] + `(?:${src[t$4.PRERELEASE]})?(?:${src[t$4.BUILD]})?(?:$|[^\\d])`);
121
- createToken("COERCERTL", src[t$4.COERCE], true);
122
- createToken("COERCERTLFULL", src[t$4.COERCEFULL], true);
109
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
110
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
111
+ createToken("COERCERTL", src[t.COERCE], true);
112
+ createToken("COERCERTLFULL", src[t.COERCEFULL], true);
123
113
  createToken("LONETILDE", "(?:~>?)");
124
- createToken("TILDETRIM", `(\\s*)${src[t$4.LONETILDE]}\\s+`, true);
114
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
125
115
  exports.tildeTrimReplace = "$1~";
126
- createToken("TILDE", `^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAIN]}$`);
127
- createToken("TILDELOOSE", `^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAINLOOSE]}$`);
116
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
117
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
128
118
  createToken("LONECARET", "(?:\\^)");
129
- createToken("CARETTRIM", `(\\s*)${src[t$4.LONECARET]}\\s+`, true);
119
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
130
120
  exports.caretTrimReplace = "$1^";
131
- createToken("CARET", `^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAIN]}$`);
132
- createToken("CARETLOOSE", `^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAINLOOSE]}$`);
133
- createToken("COMPARATORLOOSE", `^${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]})$|^$`);
134
- createToken("COMPARATOR", `^${src[t$4.GTLT]}\\s*(${src[t$4.FULLPLAIN]})$|^$`);
135
- createToken("COMPARATORTRIM", `(\\s*)${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]}|${src[t$4.XRANGEPLAIN]})`, true);
121
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
122
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
123
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
124
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
125
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
136
126
  exports.comparatorTrimReplace = "$1$2$3";
137
- createToken("HYPHENRANGE", `^\\s*(${src[t$4.XRANGEPLAIN]})\\s+-\\s+(${src[t$4.XRANGEPLAIN]})\\s*$`);
138
- createToken("HYPHENRANGELOOSE", `^\\s*(${src[t$4.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t$4.XRANGEPLAINLOOSE]})\\s*$`);
127
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
128
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
139
129
  createToken("STAR", "(<|>)?=?\\s*\\*");
140
130
  createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
141
131
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
142
- }) });
143
-
132
+ }));
144
133
  //#endregion
145
134
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js
146
- var require_parse_options = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js": ((exports, module) => {
135
+ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
147
136
  const looseOption = Object.freeze({ loose: true });
148
137
  const emptyOpts = Object.freeze({});
149
- const parseOptions$3 = (options) => {
138
+ const parseOptions = (options) => {
150
139
  if (!options) return emptyOpts;
151
140
  if (typeof options !== "object") return looseOption;
152
141
  return options;
153
142
  };
154
- module.exports = parseOptions$3;
155
- }) });
156
-
143
+ module.exports = parseOptions;
144
+ }));
157
145
  //#endregion
158
146
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js
159
- var require_identifiers = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js": ((exports, module) => {
147
+ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
160
148
  const numeric = /^[0-9]+$/;
161
- const compareIdentifiers$1 = (a, b) => {
149
+ const compareIdentifiers = (a, b) => {
162
150
  const anum = numeric.test(a);
163
151
  const bnum = numeric.test(b);
164
152
  if (anum && bnum) {
@@ -167,33 +155,32 @@ var require_identifiers = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
167
155
  }
168
156
  return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
169
157
  };
170
- const rcompareIdentifiers = (a, b) => compareIdentifiers$1(b, a);
158
+ const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
171
159
  module.exports = {
172
- compareIdentifiers: compareIdentifiers$1,
160
+ compareIdentifiers,
173
161
  rcompareIdentifiers
174
162
  };
175
- }) });
176
-
163
+ }));
177
164
  //#endregion
178
165
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js
179
- var require_semver$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js": ((exports, module) => {
180
- const debug$2 = require_debug();
166
+ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
167
+ const debug = require_debug();
181
168
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
182
- const { safeRe: re$3, t: t$3 } = require_re();
183
- const parseOptions$2 = require_parse_options();
169
+ const { safeRe: re, t } = require_re();
170
+ const parseOptions = require_parse_options();
184
171
  const { compareIdentifiers } = require_identifiers();
185
- var SemVer$15 = class SemVer$15 {
172
+ module.exports = class SemVer {
186
173
  constructor(version, options) {
187
- options = parseOptions$2(options);
188
- if (version instanceof SemVer$15) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
174
+ options = parseOptions(options);
175
+ if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
189
176
  else version = version.version;
190
177
  else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
191
178
  if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
192
- debug$2("SemVer", version, options);
179
+ debug("SemVer", version, options);
193
180
  this.options = options;
194
181
  this.loose = !!options.loose;
195
182
  this.includePrerelease = !!options.includePrerelease;
196
- const m = version.trim().match(options.loose ? re$3[t$3.LOOSE] : re$3[t$3.FULL]);
183
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
197
184
  if (!m) throw new TypeError(`Invalid Version: ${version}`);
198
185
  this.raw = version;
199
186
  this.major = +m[1];
@@ -222,20 +209,20 @@ var require_semver$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/se
222
209
  return this.version;
223
210
  }
224
211
  compare(other) {
225
- debug$2("SemVer.compare", this.version, this.options, other);
226
- if (!(other instanceof SemVer$15)) {
212
+ debug("SemVer.compare", this.version, this.options, other);
213
+ if (!(other instanceof SemVer)) {
227
214
  if (typeof other === "string" && other === this.version) return 0;
228
- other = new SemVer$15(other, this.options);
215
+ other = new SemVer(other, this.options);
229
216
  }
230
217
  if (other.version === this.version) return 0;
231
218
  return this.compareMain(other) || this.comparePre(other);
232
219
  }
233
220
  compareMain(other) {
234
- if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
221
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
235
222
  return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
236
223
  }
237
224
  comparePre(other) {
238
- if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
225
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
239
226
  if (this.prerelease.length && !other.prerelease.length) return -1;
240
227
  else if (!this.prerelease.length && other.prerelease.length) return 1;
241
228
  else if (!this.prerelease.length && !other.prerelease.length) return 0;
@@ -243,7 +230,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/se
243
230
  do {
244
231
  const a = this.prerelease[i];
245
232
  const b = other.prerelease[i];
246
- debug$2("prerelease compare", i, a, b);
233
+ debug("prerelease compare", i, a, b);
247
234
  if (a === void 0 && b === void 0) return 0;
248
235
  else if (b === void 0) return 1;
249
236
  else if (a === void 0) return -1;
@@ -252,12 +239,12 @@ var require_semver$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/se
252
239
  } while (++i);
253
240
  }
254
241
  compareBuild(other) {
255
- if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
242
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
256
243
  let i = 0;
257
244
  do {
258
245
  const a = this.build[i];
259
246
  const b = other.build[i];
260
- debug$2("build compare", i, a, b);
247
+ debug("build compare", i, a, b);
261
248
  if (a === void 0 && b === void 0) return 0;
262
249
  else if (b === void 0) return 1;
263
250
  else if (a === void 0) return -1;
@@ -269,7 +256,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/se
269
256
  if (release.startsWith("pre")) {
270
257
  if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
271
258
  if (identifier) {
272
- const match = `-${identifier}`.match(this.options.loose ? re$3[t$3.PRERELEASELOOSE] : re$3[t$3.PRERELEASE]);
259
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
273
260
  if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
274
261
  }
275
262
  }
@@ -330,11 +317,11 @@ var require_semver$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/se
330
317
  }
331
318
  }
332
319
  if (identifier) {
333
- let prerelease$2 = [identifier, base];
334
- if (identifierBase === false) prerelease$2 = [identifier];
320
+ let prerelease = [identifier, base];
321
+ if (identifierBase === false) prerelease = [identifier];
335
322
  if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
336
- if (isNaN(this.prerelease[1])) this.prerelease = prerelease$2;
337
- } else this.prerelease = prerelease$2;
323
+ if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
324
+ } else this.prerelease = prerelease;
338
325
  }
339
326
  break;
340
327
  }
@@ -345,73 +332,67 @@ var require_semver$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/se
345
332
  return this;
346
333
  }
347
334
  };
348
- module.exports = SemVer$15;
349
- }) });
350
-
335
+ }));
351
336
  //#endregion
352
337
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js
353
- var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js": ((exports, module) => {
354
- const SemVer$14 = require_semver$1();
355
- const parse$6 = (version, options, throwErrors = false) => {
356
- if (version instanceof SemVer$14) return version;
338
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
339
+ const SemVer = require_semver$1();
340
+ const parse = (version, options, throwErrors = false) => {
341
+ if (version instanceof SemVer) return version;
357
342
  try {
358
- return new SemVer$14(version, options);
343
+ return new SemVer(version, options);
359
344
  } catch (er) {
360
345
  if (!throwErrors) return null;
361
346
  throw er;
362
347
  }
363
348
  };
364
- module.exports = parse$6;
365
- }) });
366
-
349
+ module.exports = parse;
350
+ }));
367
351
  //#endregion
368
352
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js
369
- var require_valid$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js": ((exports, module) => {
370
- const parse$5 = require_parse();
371
- const valid$1 = (version, options) => {
372
- const v = parse$5(version, options);
353
+ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
354
+ const parse = require_parse();
355
+ const valid = (version, options) => {
356
+ const v = parse(version, options);
373
357
  return v ? v.version : null;
374
358
  };
375
- module.exports = valid$1;
376
- }) });
377
-
359
+ module.exports = valid;
360
+ }));
378
361
  //#endregion
379
362
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js
380
- var require_clean = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js": ((exports, module) => {
381
- const parse$4 = require_parse();
382
- const clean$1 = (version, options) => {
383
- const s = parse$4(version.trim().replace(/^[=v]+/, ""), options);
363
+ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
364
+ const parse = require_parse();
365
+ const clean = (version, options) => {
366
+ const s = parse(version.trim().replace(/^[=v]+/, ""), options);
384
367
  return s ? s.version : null;
385
368
  };
386
- module.exports = clean$1;
387
- }) });
388
-
369
+ module.exports = clean;
370
+ }));
389
371
  //#endregion
390
372
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js
391
- var require_inc = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js": ((exports, module) => {
392
- const SemVer$13 = require_semver$1();
393
- const inc$1 = (version, release, options, identifier, identifierBase) => {
373
+ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
374
+ const SemVer = require_semver$1();
375
+ const inc = (version, release, options, identifier, identifierBase) => {
394
376
  if (typeof options === "string") {
395
377
  identifierBase = identifier;
396
378
  identifier = options;
397
379
  options = void 0;
398
380
  }
399
381
  try {
400
- return new SemVer$13(version instanceof SemVer$13 ? version.version : version, options).inc(release, identifier, identifierBase).version;
382
+ return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
401
383
  } catch (er) {
402
384
  return null;
403
385
  }
404
386
  };
405
- module.exports = inc$1;
406
- }) });
407
-
387
+ module.exports = inc;
388
+ }));
408
389
  //#endregion
409
390
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js
410
- var require_diff = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js": ((exports, module) => {
411
- const parse$3 = require_parse();
412
- const diff$1 = (version1, version2) => {
413
- const v1 = parse$3(version1, null, true);
414
- const v2 = parse$3(version2, null, true);
391
+ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
392
+ const parse = require_parse();
393
+ const diff = (version1, version2) => {
394
+ const v1 = parse(version1, null, true);
395
+ const v2 = parse(version2, null, true);
415
396
  const comparison = v1.compare(v2);
416
397
  if (comparison === 0) return null;
417
398
  const v1Higher = comparison > 0;
@@ -431,154 +412,137 @@ var require_diff = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver
431
412
  if (v1.patch !== v2.patch) return prefix + "patch";
432
413
  return "prerelease";
433
414
  };
434
- module.exports = diff$1;
435
- }) });
436
-
415
+ module.exports = diff;
416
+ }));
437
417
  //#endregion
438
418
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js
439
- var require_major = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js": ((exports, module) => {
440
- const SemVer$12 = require_semver$1();
441
- const major$1 = (a, loose) => new SemVer$12(a, loose).major;
442
- module.exports = major$1;
443
- }) });
444
-
419
+ var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
420
+ const SemVer = require_semver$1();
421
+ const major = (a, loose) => new SemVer(a, loose).major;
422
+ module.exports = major;
423
+ }));
445
424
  //#endregion
446
425
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js
447
- var require_minor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js": ((exports, module) => {
448
- const SemVer$11 = require_semver$1();
449
- const minor$1 = (a, loose) => new SemVer$11(a, loose).minor;
450
- module.exports = minor$1;
451
- }) });
452
-
426
+ var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
427
+ const SemVer = require_semver$1();
428
+ const minor = (a, loose) => new SemVer(a, loose).minor;
429
+ module.exports = minor;
430
+ }));
453
431
  //#endregion
454
432
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js
455
- var require_patch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js": ((exports, module) => {
456
- const SemVer$10 = require_semver$1();
457
- const patch$1 = (a, loose) => new SemVer$10(a, loose).patch;
458
- module.exports = patch$1;
459
- }) });
460
-
433
+ var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
434
+ const SemVer = require_semver$1();
435
+ const patch = (a, loose) => new SemVer(a, loose).patch;
436
+ module.exports = patch;
437
+ }));
461
438
  //#endregion
462
439
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js
463
- var require_prerelease = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js": ((exports, module) => {
464
- const parse$2 = require_parse();
465
- const prerelease$1 = (version, options) => {
466
- const parsed = parse$2(version, options);
440
+ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
441
+ const parse = require_parse();
442
+ const prerelease = (version, options) => {
443
+ const parsed = parse(version, options);
467
444
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
468
445
  };
469
- module.exports = prerelease$1;
470
- }) });
471
-
446
+ module.exports = prerelease;
447
+ }));
472
448
  //#endregion
473
449
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js
474
- var require_compare = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js": ((exports, module) => {
475
- const SemVer$9 = require_semver$1();
476
- const compare$11 = (a, b, loose) => new SemVer$9(a, loose).compare(new SemVer$9(b, loose));
477
- module.exports = compare$11;
478
- }) });
479
-
450
+ var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
451
+ const SemVer = require_semver$1();
452
+ const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
453
+ module.exports = compare;
454
+ }));
480
455
  //#endregion
481
456
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js
482
- var require_rcompare = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js": ((exports, module) => {
483
- const compare$10 = require_compare();
484
- const rcompare$1 = (a, b, loose) => compare$10(b, a, loose);
485
- module.exports = rcompare$1;
486
- }) });
487
-
457
+ var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
458
+ const compare = require_compare();
459
+ const rcompare = (a, b, loose) => compare(b, a, loose);
460
+ module.exports = rcompare;
461
+ }));
488
462
  //#endregion
489
463
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js
490
- var require_compare_loose = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js": ((exports, module) => {
491
- const compare$9 = require_compare();
492
- const compareLoose$1 = (a, b) => compare$9(a, b, true);
493
- module.exports = compareLoose$1;
494
- }) });
495
-
464
+ var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
465
+ const compare = require_compare();
466
+ const compareLoose = (a, b) => compare(a, b, true);
467
+ module.exports = compareLoose;
468
+ }));
496
469
  //#endregion
497
470
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js
498
- var require_compare_build = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js": ((exports, module) => {
499
- const SemVer$8 = require_semver$1();
500
- const compareBuild$3 = (a, b, loose) => {
501
- const versionA = new SemVer$8(a, loose);
502
- const versionB = new SemVer$8(b, loose);
471
+ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
472
+ const SemVer = require_semver$1();
473
+ const compareBuild = (a, b, loose) => {
474
+ const versionA = new SemVer(a, loose);
475
+ const versionB = new SemVer(b, loose);
503
476
  return versionA.compare(versionB) || versionA.compareBuild(versionB);
504
477
  };
505
- module.exports = compareBuild$3;
506
- }) });
507
-
478
+ module.exports = compareBuild;
479
+ }));
508
480
  //#endregion
509
481
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js
510
- var require_sort = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js": ((exports, module) => {
511
- const compareBuild$2 = require_compare_build();
512
- const sort$1 = (list, loose) => list.sort((a, b) => compareBuild$2(a, b, loose));
513
- module.exports = sort$1;
514
- }) });
515
-
482
+ var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
483
+ const compareBuild = require_compare_build();
484
+ const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
485
+ module.exports = sort;
486
+ }));
516
487
  //#endregion
517
488
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js
518
- var require_rsort = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js": ((exports, module) => {
519
- const compareBuild$1 = require_compare_build();
520
- const rsort$1 = (list, loose) => list.sort((a, b) => compareBuild$1(b, a, loose));
521
- module.exports = rsort$1;
522
- }) });
523
-
489
+ var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
490
+ const compareBuild = require_compare_build();
491
+ const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
492
+ module.exports = rsort;
493
+ }));
524
494
  //#endregion
525
495
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js
526
- var require_gt = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js": ((exports, module) => {
527
- const compare$8 = require_compare();
528
- const gt$4 = (a, b, loose) => compare$8(a, b, loose) > 0;
529
- module.exports = gt$4;
530
- }) });
531
-
496
+ var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
497
+ const compare = require_compare();
498
+ const gt = (a, b, loose) => compare(a, b, loose) > 0;
499
+ module.exports = gt;
500
+ }));
532
501
  //#endregion
533
502
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js
534
- var require_lt = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js": ((exports, module) => {
535
- const compare$7 = require_compare();
536
- const lt$3 = (a, b, loose) => compare$7(a, b, loose) < 0;
537
- module.exports = lt$3;
538
- }) });
539
-
503
+ var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
504
+ const compare = require_compare();
505
+ const lt = (a, b, loose) => compare(a, b, loose) < 0;
506
+ module.exports = lt;
507
+ }));
540
508
  //#endregion
541
509
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js
542
- var require_eq = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js": ((exports, module) => {
543
- const compare$6 = require_compare();
544
- const eq$2 = (a, b, loose) => compare$6(a, b, loose) === 0;
545
- module.exports = eq$2;
546
- }) });
547
-
510
+ var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
511
+ const compare = require_compare();
512
+ const eq = (a, b, loose) => compare(a, b, loose) === 0;
513
+ module.exports = eq;
514
+ }));
548
515
  //#endregion
549
516
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js
550
- var require_neq = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js": ((exports, module) => {
551
- const compare$5 = require_compare();
552
- const neq$2 = (a, b, loose) => compare$5(a, b, loose) !== 0;
553
- module.exports = neq$2;
554
- }) });
555
-
517
+ var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
518
+ const compare = require_compare();
519
+ const neq = (a, b, loose) => compare(a, b, loose) !== 0;
520
+ module.exports = neq;
521
+ }));
556
522
  //#endregion
557
523
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js
558
- var require_gte = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js": ((exports, module) => {
559
- const compare$4 = require_compare();
560
- const gte$3 = (a, b, loose) => compare$4(a, b, loose) >= 0;
561
- module.exports = gte$3;
562
- }) });
563
-
524
+ var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
525
+ const compare = require_compare();
526
+ const gte = (a, b, loose) => compare(a, b, loose) >= 0;
527
+ module.exports = gte;
528
+ }));
564
529
  //#endregion
565
530
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js
566
- var require_lte = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js": ((exports, module) => {
567
- const compare$3 = require_compare();
568
- const lte$3 = (a, b, loose) => compare$3(a, b, loose) <= 0;
569
- module.exports = lte$3;
570
- }) });
571
-
531
+ var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
532
+ const compare = require_compare();
533
+ const lte = (a, b, loose) => compare(a, b, loose) <= 0;
534
+ module.exports = lte;
535
+ }));
572
536
  //#endregion
573
537
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js
574
- var require_cmp = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js": ((exports, module) => {
575
- const eq$1 = require_eq();
576
- const neq$1 = require_neq();
577
- const gt$3 = require_gt();
578
- const gte$2 = require_gte();
579
- const lt$2 = require_lt();
580
- const lte$2 = require_lte();
581
- const cmp$2 = (a, op, b, loose) => {
538
+ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
539
+ const eq = require_eq();
540
+ const neq = require_neq();
541
+ const gt = require_gt();
542
+ const gte = require_gte();
543
+ const lt = require_lt();
544
+ const lte = require_lte();
545
+ const cmp = (a, op, b, loose) => {
582
546
  switch (op) {
583
547
  case "===":
584
548
  if (typeof a === "object") a = a.version;
@@ -590,33 +554,32 @@ var require_cmp = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@
590
554
  return a !== b;
591
555
  case "":
592
556
  case "=":
593
- case "==": return eq$1(a, b, loose);
594
- case "!=": return neq$1(a, b, loose);
595
- case ">": return gt$3(a, b, loose);
596
- case ">=": return gte$2(a, b, loose);
597
- case "<": return lt$2(a, b, loose);
598
- case "<=": return lte$2(a, b, loose);
557
+ case "==": return eq(a, b, loose);
558
+ case "!=": return neq(a, b, loose);
559
+ case ">": return gt(a, b, loose);
560
+ case ">=": return gte(a, b, loose);
561
+ case "<": return lt(a, b, loose);
562
+ case "<=": return lte(a, b, loose);
599
563
  default: throw new TypeError(`Invalid operator: ${op}`);
600
564
  }
601
565
  };
602
- module.exports = cmp$2;
603
- }) });
604
-
566
+ module.exports = cmp;
567
+ }));
605
568
  //#endregion
606
569
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js
607
- var require_coerce = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js": ((exports, module) => {
608
- const SemVer$7 = require_semver$1();
609
- const parse$1 = require_parse();
610
- const { safeRe: re$2, t: t$2 } = require_re();
611
- const coerce$1 = (version, options) => {
612
- if (version instanceof SemVer$7) return version;
570
+ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
571
+ const SemVer = require_semver$1();
572
+ const parse = require_parse();
573
+ const { safeRe: re, t } = require_re();
574
+ const coerce = (version, options) => {
575
+ if (version instanceof SemVer) return version;
613
576
  if (typeof version === "number") version = String(version);
614
577
  if (typeof version !== "string") return null;
615
578
  options = options || {};
616
579
  let match = null;
617
- if (!options.rtl) match = version.match(options.includePrerelease ? re$2[t$2.COERCEFULL] : re$2[t$2.COERCE]);
580
+ if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
618
581
  else {
619
- const coerceRtlRegex = options.includePrerelease ? re$2[t$2.COERCERTLFULL] : re$2[t$2.COERCERTL];
582
+ const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
620
583
  let next;
621
584
  while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
622
585
  if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
@@ -625,15 +588,14 @@ var require_coerce = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semv
625
588
  coerceRtlRegex.lastIndex = -1;
626
589
  }
627
590
  if (match === null) return null;
628
- const major$2 = match[2];
629
- return parse$1(`${major$2}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
591
+ const major = match[2];
592
+ return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
630
593
  };
631
- module.exports = coerce$1;
632
- }) });
633
-
594
+ module.exports = coerce;
595
+ }));
634
596
  //#endregion
635
597
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js
636
- var require_lrucache = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js": ((exports, module) => {
598
+ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
637
599
  var LRUCache = class {
638
600
  constructor() {
639
601
  this.max = 1e3;
@@ -663,18 +625,17 @@ var require_lrucache = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/se
663
625
  }
664
626
  };
665
627
  module.exports = LRUCache;
666
- }) });
667
-
628
+ }));
668
629
  //#endregion
669
630
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js
670
- var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js": ((exports, module) => {
631
+ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
671
632
  const SPACE_CHARACTERS = /\s+/g;
672
- var Range$11 = class Range$11 {
633
+ module.exports = class Range {
673
634
  constructor(range, options) {
674
- options = parseOptions$1(options);
675
- if (range instanceof Range$11) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
676
- else return new Range$11(range.raw, options);
677
- if (range instanceof Comparator$4) {
635
+ options = parseOptions(options);
636
+ if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
637
+ else return new Range(range.raw, options);
638
+ if (range instanceof Comparator) {
678
639
  this.raw = range.value;
679
640
  this.set = [[range]];
680
641
  this.formatted = void 0;
@@ -721,37 +682,37 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
721
682
  }
722
683
  parseRange(range) {
723
684
  const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
724
- const cached = cache$1.get(memoKey);
685
+ const cached = cache.get(memoKey);
725
686
  if (cached) return cached;
726
687
  const loose = this.options.loose;
727
- const hr = loose ? re$1[t$1.HYPHENRANGELOOSE] : re$1[t$1.HYPHENRANGE];
688
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
728
689
  range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
729
- debug$1("hyphen replace", range);
730
- range = range.replace(re$1[t$1.COMPARATORTRIM], comparatorTrimReplace);
731
- debug$1("comparator trim", range);
732
- range = range.replace(re$1[t$1.TILDETRIM], tildeTrimReplace);
733
- debug$1("tilde trim", range);
734
- range = range.replace(re$1[t$1.CARETTRIM], caretTrimReplace);
735
- debug$1("caret trim", range);
690
+ debug("hyphen replace", range);
691
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
692
+ debug("comparator trim", range);
693
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
694
+ debug("tilde trim", range);
695
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
696
+ debug("caret trim", range);
736
697
  let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
737
698
  if (loose) rangeList = rangeList.filter((comp) => {
738
- debug$1("loose invalid filter", comp, this.options);
739
- return !!comp.match(re$1[t$1.COMPARATORLOOSE]);
699
+ debug("loose invalid filter", comp, this.options);
700
+ return !!comp.match(re[t.COMPARATORLOOSE]);
740
701
  });
741
- debug$1("range list", rangeList);
702
+ debug("range list", rangeList);
742
703
  const rangeMap = /* @__PURE__ */ new Map();
743
- const comparators = rangeList.map((comp) => new Comparator$4(comp, this.options));
704
+ const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
744
705
  for (const comp of comparators) {
745
706
  if (isNullSet(comp)) return [comp];
746
707
  rangeMap.set(comp.value, comp);
747
708
  }
748
709
  if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
749
710
  const result = [...rangeMap.values()];
750
- cache$1.set(memoKey, result);
711
+ cache.set(memoKey, result);
751
712
  return result;
752
713
  }
753
714
  intersects(range, options) {
754
- if (!(range instanceof Range$11)) throw new TypeError("a Range is required");
715
+ if (!(range instanceof Range)) throw new TypeError("a Range is required");
755
716
  return this.set.some((thisComparators) => {
756
717
  return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
757
718
  return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
@@ -765,7 +726,7 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
765
726
  test(version) {
766
727
  if (!version) return false;
767
728
  if (typeof version === "string") try {
768
- version = new SemVer$6(version, this.options);
729
+ version = new SemVer(version, this.options);
769
730
  } catch (er) {
770
731
  return false;
771
732
  }
@@ -773,13 +734,12 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
773
734
  return false;
774
735
  }
775
736
  };
776
- module.exports = Range$11;
777
- const cache$1 = new (require_lrucache())();
778
- const parseOptions$1 = require_parse_options();
779
- const Comparator$4 = require_comparator();
780
- const debug$1 = require_debug();
781
- const SemVer$6 = require_semver$1();
782
- const { safeRe: re$1, t: t$1, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
737
+ const cache = new (require_lrucache())();
738
+ const parseOptions = require_parse_options();
739
+ const Comparator = require_comparator();
740
+ const debug = require_debug();
741
+ const SemVer = require_semver$1();
742
+ const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
783
743
  const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
784
744
  const isNullSet = (c) => c.value === "<0.0.0-0";
785
745
  const isAny = (c) => c.value === "";
@@ -796,15 +756,15 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
796
756
  return result;
797
757
  };
798
758
  const parseComparator = (comp, options) => {
799
- debug$1("comp", comp, options);
759
+ debug("comp", comp, options);
800
760
  comp = replaceCarets(comp, options);
801
- debug$1("caret", comp);
761
+ debug("caret", comp);
802
762
  comp = replaceTildes(comp, options);
803
- debug$1("tildes", comp);
763
+ debug("tildes", comp);
804
764
  comp = replaceXRanges(comp, options);
805
- debug$1("xrange", comp);
765
+ debug("xrange", comp);
806
766
  comp = replaceStars(comp, options);
807
- debug$1("stars", comp);
767
+ debug("stars", comp);
808
768
  return comp;
809
769
  };
810
770
  const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
@@ -812,18 +772,18 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
812
772
  return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
813
773
  };
814
774
  const replaceTilde = (comp, options) => {
815
- const r = options.loose ? re$1[t$1.TILDELOOSE] : re$1[t$1.TILDE];
775
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
816
776
  return comp.replace(r, (_, M, m, p, pr) => {
817
- debug$1("tilde", comp, _, M, m, p, pr);
777
+ debug("tilde", comp, _, M, m, p, pr);
818
778
  let ret;
819
779
  if (isX(M)) ret = "";
820
780
  else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
821
781
  else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
822
782
  else if (pr) {
823
- debug$1("replaceTilde pr", pr);
783
+ debug("replaceTilde pr", pr);
824
784
  ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
825
785
  } else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
826
- debug$1("tilde return", ret);
786
+ debug("tilde return", ret);
827
787
  return ret;
828
788
  });
829
789
  };
@@ -831,40 +791,40 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
831
791
  return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
832
792
  };
833
793
  const replaceCaret = (comp, options) => {
834
- debug$1("caret", comp, options);
835
- const r = options.loose ? re$1[t$1.CARETLOOSE] : re$1[t$1.CARET];
794
+ debug("caret", comp, options);
795
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
836
796
  const z = options.includePrerelease ? "-0" : "";
837
797
  return comp.replace(r, (_, M, m, p, pr) => {
838
- debug$1("caret", comp, _, M, m, p, pr);
798
+ debug("caret", comp, _, M, m, p, pr);
839
799
  let ret;
840
800
  if (isX(M)) ret = "";
841
801
  else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
842
802
  else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
843
803
  else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
844
804
  else if (pr) {
845
- debug$1("replaceCaret pr", pr);
805
+ debug("replaceCaret pr", pr);
846
806
  if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
847
807
  else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
848
808
  else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
849
809
  } else {
850
- debug$1("no pr");
810
+ debug("no pr");
851
811
  if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
852
812
  else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
853
813
  else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
854
814
  }
855
- debug$1("caret return", ret);
815
+ debug("caret return", ret);
856
816
  return ret;
857
817
  });
858
818
  };
859
819
  const replaceXRanges = (comp, options) => {
860
- debug$1("replaceXRanges", comp, options);
820
+ debug("replaceXRanges", comp, options);
861
821
  return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
862
822
  };
863
823
  const replaceXRange = (comp, options) => {
864
824
  comp = comp.trim();
865
- const r = options.loose ? re$1[t$1.XRANGELOOSE] : re$1[t$1.XRANGE];
825
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
866
826
  return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
867
- debug$1("xRange", comp, ret, gtlt, M, m, p, pr);
827
+ debug("xRange", comp, ret, gtlt, M, m, p, pr);
868
828
  const xM = isX(M);
869
829
  const xm = xM || isX(m);
870
830
  const xp = xm || isX(p);
@@ -895,17 +855,17 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
895
855
  ret = `${gtlt + M}.${m}.${p}${pr}`;
896
856
  } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
897
857
  else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
898
- debug$1("xRange return", ret);
858
+ debug("xRange return", ret);
899
859
  return ret;
900
860
  });
901
861
  };
902
862
  const replaceStars = (comp, options) => {
903
- debug$1("replaceStars", comp, options);
904
- return comp.trim().replace(re$1[t$1.STAR], "");
863
+ debug("replaceStars", comp, options);
864
+ return comp.trim().replace(re[t.STAR], "");
905
865
  };
906
866
  const replaceGTE0 = (comp, options) => {
907
- debug$1("replaceGTE0", comp, options);
908
- return comp.trim().replace(re$1[options.includePrerelease ? t$1.GTE0PRE : t$1.GTE0], "");
867
+ debug("replaceGTE0", comp, options);
868
+ return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
909
869
  };
910
870
  const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
911
871
  if (isX(fM)) from = "";
@@ -925,8 +885,8 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
925
885
  for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
926
886
  if (version.prerelease.length && !options.includePrerelease) {
927
887
  for (let i = 0; i < set.length; i++) {
928
- debug$1(set[i].semver);
929
- if (set[i].semver === Comparator$4.ANY) continue;
888
+ debug(set[i].semver);
889
+ if (set[i].semver === Comparator.ANY) continue;
930
890
  if (set[i].semver.prerelease.length > 0) {
931
891
  const allowed = set[i].semver;
932
892
  if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
@@ -936,26 +896,25 @@ var require_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semve
936
896
  }
937
897
  return true;
938
898
  };
939
- }) });
940
-
899
+ }));
941
900
  //#endregion
942
901
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js
943
- var require_comparator = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js": ((exports, module) => {
944
- const ANY$2 = Symbol("SemVer ANY");
945
- var Comparator$3 = class Comparator$3 {
902
+ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
903
+ const ANY = Symbol("SemVer ANY");
904
+ module.exports = class Comparator {
946
905
  static get ANY() {
947
- return ANY$2;
906
+ return ANY;
948
907
  }
949
908
  constructor(comp, options) {
950
909
  options = parseOptions(options);
951
- if (comp instanceof Comparator$3) if (comp.loose === !!options.loose) return comp;
910
+ if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
952
911
  else comp = comp.value;
953
912
  comp = comp.trim().split(/\s+/).join(" ");
954
913
  debug("comparator", comp, options);
955
914
  this.options = options;
956
915
  this.loose = !!options.loose;
957
916
  this.parse(comp);
958
- if (this.semver === ANY$2) this.value = "";
917
+ if (this.semver === ANY) this.value = "";
959
918
  else this.value = this.operator + this.semver.version;
960
919
  debug("comp", this);
961
920
  }
@@ -965,30 +924,30 @@ var require_comparator = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
965
924
  if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
966
925
  this.operator = m[1] !== void 0 ? m[1] : "";
967
926
  if (this.operator === "=") this.operator = "";
968
- if (!m[2]) this.semver = ANY$2;
969
- else this.semver = new SemVer$5(m[2], this.options.loose);
927
+ if (!m[2]) this.semver = ANY;
928
+ else this.semver = new SemVer(m[2], this.options.loose);
970
929
  }
971
930
  toString() {
972
931
  return this.value;
973
932
  }
974
933
  test(version) {
975
934
  debug("Comparator.test", version, this.options.loose);
976
- if (this.semver === ANY$2 || version === ANY$2) return true;
935
+ if (this.semver === ANY || version === ANY) return true;
977
936
  if (typeof version === "string") try {
978
- version = new SemVer$5(version, this.options);
937
+ version = new SemVer(version, this.options);
979
938
  } catch (er) {
980
939
  return false;
981
940
  }
982
- return cmp$1(version, this.operator, this.semver, this.options);
941
+ return cmp(version, this.operator, this.semver, this.options);
983
942
  }
984
943
  intersects(comp, options) {
985
- if (!(comp instanceof Comparator$3)) throw new TypeError("a Comparator is required");
944
+ if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
986
945
  if (this.operator === "") {
987
946
  if (this.value === "") return true;
988
- return new Range$10(comp.value, options).test(this.value);
947
+ return new Range(comp.value, options).test(this.value);
989
948
  } else if (comp.operator === "") {
990
949
  if (comp.value === "") return true;
991
- return new Range$10(this.value, options).test(comp.semver);
950
+ return new Range(this.value, options).test(comp.semver);
992
951
  }
993
952
  options = parseOptions(options);
994
953
  if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
@@ -996,54 +955,50 @@ var require_comparator = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
996
955
  if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
997
956
  if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
998
957
  if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
999
- if (cmp$1(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
1000
- if (cmp$1(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
958
+ if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
959
+ if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
1001
960
  return false;
1002
961
  }
1003
962
  };
1004
- module.exports = Comparator$3;
1005
963
  const parseOptions = require_parse_options();
1006
964
  const { safeRe: re, t } = require_re();
1007
- const cmp$1 = require_cmp();
965
+ const cmp = require_cmp();
1008
966
  const debug = require_debug();
1009
- const SemVer$5 = require_semver$1();
1010
- const Range$10 = require_range();
1011
- }) });
1012
-
967
+ const SemVer = require_semver$1();
968
+ const Range = require_range();
969
+ }));
1013
970
  //#endregion
1014
971
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js
1015
- var require_satisfies = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js": ((exports, module) => {
1016
- const Range$9 = require_range();
1017
- const satisfies$4 = (version, range, options) => {
972
+ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
973
+ const Range = require_range();
974
+ const satisfies = (version, range, options) => {
1018
975
  try {
1019
- range = new Range$9(range, options);
976
+ range = new Range(range, options);
1020
977
  } catch (er) {
1021
978
  return false;
1022
979
  }
1023
980
  return range.test(version);
1024
981
  };
1025
- module.exports = satisfies$4;
1026
- }) });
1027
-
982
+ module.exports = satisfies;
983
+ }));
1028
984
  //#endregion
1029
985
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js
1030
- var require_to_comparators = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js": ((exports, module) => {
1031
- const Range$8 = require_range();
1032
- const toComparators$1 = (range, options) => new Range$8(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
1033
- module.exports = toComparators$1;
1034
- }) });
1035
-
986
+ var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
987
+ const Range = require_range();
988
+ const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
989
+ module.exports = toComparators;
990
+ }));
1036
991
  //#endregion
1037
992
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js
1038
- var require_max_satisfying = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js": ((exports, module) => {
1039
- const SemVer$4 = require_semver$1();
1040
- const Range$7 = require_range();
1041
- const maxSatisfying$1 = (versions, range, options) => {
993
+ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
994
+ const SemVer = require_semver$1();
995
+ const Range = require_range();
996
+ const maxSatisfying = (versions, range, options) => {
1042
997
  let max = null;
1043
998
  let maxSV = null;
1044
999
  let rangeObj = null;
1045
1000
  try {
1046
- rangeObj = new Range$7(range, options);
1001
+ rangeObj = new Range(range, options);
1047
1002
  } catch (er) {
1048
1003
  return null;
1049
1004
  }
@@ -1051,26 +1006,25 @@ var require_max_satisfying = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
1051
1006
  if (rangeObj.test(v)) {
1052
1007
  if (!max || maxSV.compare(v) === -1) {
1053
1008
  max = v;
1054
- maxSV = new SemVer$4(max, options);
1009
+ maxSV = new SemVer(max, options);
1055
1010
  }
1056
1011
  }
1057
1012
  });
1058
1013
  return max;
1059
1014
  };
1060
- module.exports = maxSatisfying$1;
1061
- }) });
1062
-
1015
+ module.exports = maxSatisfying;
1016
+ }));
1063
1017
  //#endregion
1064
1018
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js
1065
- var require_min_satisfying = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js": ((exports, module) => {
1066
- const SemVer$3 = require_semver$1();
1067
- const Range$6 = require_range();
1068
- const minSatisfying$1 = (versions, range, options) => {
1019
+ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1020
+ const SemVer = require_semver$1();
1021
+ const Range = require_range();
1022
+ const minSatisfying = (versions, range, options) => {
1069
1023
  let min = null;
1070
1024
  let minSV = null;
1071
1025
  let rangeObj = null;
1072
1026
  try {
1073
- rangeObj = new Range$6(range, options);
1027
+ rangeObj = new Range(range, options);
1074
1028
  } catch (er) {
1075
1029
  return null;
1076
1030
  }
@@ -1078,33 +1032,32 @@ var require_min_satisfying = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
1078
1032
  if (rangeObj.test(v)) {
1079
1033
  if (!min || minSV.compare(v) === 1) {
1080
1034
  min = v;
1081
- minSV = new SemVer$3(min, options);
1035
+ minSV = new SemVer(min, options);
1082
1036
  }
1083
1037
  }
1084
1038
  });
1085
1039
  return min;
1086
1040
  };
1087
- module.exports = minSatisfying$1;
1088
- }) });
1089
-
1041
+ module.exports = minSatisfying;
1042
+ }));
1090
1043
  //#endregion
1091
1044
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js
1092
- var require_min_version = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js": ((exports, module) => {
1093
- const SemVer$2 = require_semver$1();
1094
- const Range$5 = require_range();
1095
- const gt$2 = require_gt();
1096
- const minVersion$1 = (range, loose) => {
1097
- range = new Range$5(range, loose);
1098
- let minver = new SemVer$2("0.0.0");
1045
+ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1046
+ const SemVer = require_semver$1();
1047
+ const Range = require_range();
1048
+ const gt = require_gt();
1049
+ const minVersion = (range, loose) => {
1050
+ range = new Range(range, loose);
1051
+ let minver = new SemVer("0.0.0");
1099
1052
  if (range.test(minver)) return minver;
1100
- minver = new SemVer$2("0.0.0-0");
1053
+ minver = new SemVer("0.0.0-0");
1101
1054
  if (range.test(minver)) return minver;
1102
1055
  minver = null;
1103
1056
  for (let i = 0; i < range.set.length; ++i) {
1104
1057
  const comparators = range.set[i];
1105
1058
  let setMin = null;
1106
1059
  comparators.forEach((comparator) => {
1107
- const compver = new SemVer$2(comparator.semver.version);
1060
+ const compver = new SemVer(comparator.semver.version);
1108
1061
  switch (comparator.operator) {
1109
1062
  case ">":
1110
1063
  if (compver.prerelease.length === 0) compver.patch++;
@@ -1112,75 +1065,73 @@ var require_min_version = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
1112
1065
  compver.raw = compver.format();
1113
1066
  case "":
1114
1067
  case ">=":
1115
- if (!setMin || gt$2(compver, setMin)) setMin = compver;
1068
+ if (!setMin || gt(compver, setMin)) setMin = compver;
1116
1069
  break;
1117
1070
  case "<":
1118
1071
  case "<=": break;
1119
1072
  default: throw new Error(`Unexpected operation: ${comparator.operator}`);
1120
1073
  }
1121
1074
  });
1122
- if (setMin && (!minver || gt$2(minver, setMin))) minver = setMin;
1075
+ if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
1123
1076
  }
1124
1077
  if (minver && range.test(minver)) return minver;
1125
1078
  return null;
1126
1079
  };
1127
- module.exports = minVersion$1;
1128
- }) });
1129
-
1080
+ module.exports = minVersion;
1081
+ }));
1130
1082
  //#endregion
1131
1083
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js
1132
- var require_valid = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js": ((exports, module) => {
1133
- const Range$4 = require_range();
1134
- const validRange$1 = (range, options) => {
1084
+ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1085
+ const Range = require_range();
1086
+ const validRange = (range, options) => {
1135
1087
  try {
1136
- return new Range$4(range, options).range || "*";
1088
+ return new Range(range, options).range || "*";
1137
1089
  } catch (er) {
1138
1090
  return null;
1139
1091
  }
1140
1092
  };
1141
- module.exports = validRange$1;
1142
- }) });
1143
-
1093
+ module.exports = validRange;
1094
+ }));
1144
1095
  //#endregion
1145
1096
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js
1146
- var require_outside = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js": ((exports, module) => {
1147
- const SemVer$1 = require_semver$1();
1148
- const Comparator$2 = require_comparator();
1149
- const { ANY: ANY$1 } = Comparator$2;
1150
- const Range$3 = require_range();
1151
- const satisfies$3 = require_satisfies();
1152
- const gt$1 = require_gt();
1153
- const lt$1 = require_lt();
1154
- const lte$1 = require_lte();
1155
- const gte$1 = require_gte();
1156
- const outside$3 = (version, range, hilo, options) => {
1157
- version = new SemVer$1(version, options);
1158
- range = new Range$3(range, options);
1097
+ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1098
+ const SemVer = require_semver$1();
1099
+ const Comparator = require_comparator();
1100
+ const { ANY } = Comparator;
1101
+ const Range = require_range();
1102
+ const satisfies = require_satisfies();
1103
+ const gt = require_gt();
1104
+ const lt = require_lt();
1105
+ const lte = require_lte();
1106
+ const gte = require_gte();
1107
+ const outside = (version, range, hilo, options) => {
1108
+ version = new SemVer(version, options);
1109
+ range = new Range(range, options);
1159
1110
  let gtfn, ltefn, ltfn, comp, ecomp;
1160
1111
  switch (hilo) {
1161
1112
  case ">":
1162
- gtfn = gt$1;
1163
- ltefn = lte$1;
1164
- ltfn = lt$1;
1113
+ gtfn = gt;
1114
+ ltefn = lte;
1115
+ ltfn = lt;
1165
1116
  comp = ">";
1166
1117
  ecomp = ">=";
1167
1118
  break;
1168
1119
  case "<":
1169
- gtfn = lt$1;
1170
- ltefn = gte$1;
1171
- ltfn = gt$1;
1120
+ gtfn = lt;
1121
+ ltefn = gte;
1122
+ ltfn = gt;
1172
1123
  comp = "<";
1173
1124
  ecomp = "<=";
1174
1125
  break;
1175
1126
  default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
1176
1127
  }
1177
- if (satisfies$3(version, range, options)) return false;
1128
+ if (satisfies(version, range, options)) return false;
1178
1129
  for (let i = 0; i < range.set.length; ++i) {
1179
1130
  const comparators = range.set[i];
1180
1131
  let high = null;
1181
1132
  let low = null;
1182
1133
  comparators.forEach((comparator) => {
1183
- if (comparator.semver === ANY$1) comparator = new Comparator$2(">=0.0.0");
1134
+ if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
1184
1135
  high = high || comparator;
1185
1136
  low = low || comparator;
1186
1137
  if (gtfn(comparator.semver, high.semver, options)) high = comparator;
@@ -1192,48 +1143,44 @@ var require_outside = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/sem
1192
1143
  }
1193
1144
  return true;
1194
1145
  };
1195
- module.exports = outside$3;
1196
- }) });
1197
-
1146
+ module.exports = outside;
1147
+ }));
1198
1148
  //#endregion
1199
1149
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js
1200
- var require_gtr = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js": ((exports, module) => {
1201
- const outside$2 = require_outside();
1202
- const gtr$1 = (version, range, options) => outside$2(version, range, ">", options);
1203
- module.exports = gtr$1;
1204
- }) });
1205
-
1150
+ var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1151
+ const outside = require_outside();
1152
+ const gtr = (version, range, options) => outside(version, range, ">", options);
1153
+ module.exports = gtr;
1154
+ }));
1206
1155
  //#endregion
1207
1156
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js
1208
- var require_ltr = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js": ((exports, module) => {
1209
- const outside$1 = require_outside();
1210
- const ltr$1 = (version, range, options) => outside$1(version, range, "<", options);
1211
- module.exports = ltr$1;
1212
- }) });
1213
-
1157
+ var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1158
+ const outside = require_outside();
1159
+ const ltr = (version, range, options) => outside(version, range, "<", options);
1160
+ module.exports = ltr;
1161
+ }));
1214
1162
  //#endregion
1215
1163
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js
1216
- var require_intersects = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js": ((exports, module) => {
1217
- const Range$2 = require_range();
1218
- const intersects$1 = (r1, r2, options) => {
1219
- r1 = new Range$2(r1, options);
1220
- r2 = new Range$2(r2, options);
1164
+ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1165
+ const Range = require_range();
1166
+ const intersects = (r1, r2, options) => {
1167
+ r1 = new Range(r1, options);
1168
+ r2 = new Range(r2, options);
1221
1169
  return r1.intersects(r2, options);
1222
1170
  };
1223
- module.exports = intersects$1;
1224
- }) });
1225
-
1171
+ module.exports = intersects;
1172
+ }));
1226
1173
  //#endregion
1227
1174
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js
1228
- var require_simplify = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js": ((exports, module) => {
1229
- const satisfies$2 = require_satisfies();
1230
- const compare$2 = require_compare();
1175
+ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1176
+ const satisfies = require_satisfies();
1177
+ const compare = require_compare();
1231
1178
  module.exports = (versions, range, options) => {
1232
1179
  const set = [];
1233
1180
  let first = null;
1234
1181
  let prev = null;
1235
- const v = versions.sort((a, b) => compare$2(a, b, options));
1236
- for (const version of v) if (satisfies$2(version, range, options)) {
1182
+ const v = versions.sort((a, b) => compare(a, b, options));
1183
+ for (const version of v) if (satisfies(version, range, options)) {
1237
1184
  prev = version;
1238
1185
  if (!first) first = version;
1239
1186
  } else {
@@ -1252,20 +1199,19 @@ var require_simplify = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/se
1252
1199
  const original = typeof range.raw === "string" ? range.raw : String(range);
1253
1200
  return simplified.length < original.length ? simplified : range;
1254
1201
  };
1255
- }) });
1256
-
1202
+ }));
1257
1203
  //#endregion
1258
1204
  //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js
1259
- var require_subset = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js": ((exports, module) => {
1260
- const Range$1 = require_range();
1261
- const Comparator$1 = require_comparator();
1262
- const { ANY } = Comparator$1;
1263
- const satisfies$1 = require_satisfies();
1264
- const compare$1 = require_compare();
1265
- const subset$1 = (sub, dom, options = {}) => {
1205
+ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1206
+ const Range = require_range();
1207
+ const Comparator = require_comparator();
1208
+ const { ANY } = Comparator;
1209
+ const satisfies = require_satisfies();
1210
+ const compare = require_compare();
1211
+ const subset = (sub, dom, options = {}) => {
1266
1212
  if (sub === dom) return true;
1267
- sub = new Range$1(sub, options);
1268
- dom = new Range$1(dom, options);
1213
+ sub = new Range(sub, options);
1214
+ dom = new Range(dom, options);
1269
1215
  let sawNonNull = false;
1270
1216
  OUTER: for (const simpleSub of sub.set) {
1271
1217
  for (const simpleDom of dom.set) {
@@ -1277,8 +1223,8 @@ var require_subset = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semv
1277
1223
  }
1278
1224
  return true;
1279
1225
  };
1280
- const minimumVersionWithPreRelease = [new Comparator$1(">=0.0.0-0")];
1281
- const minimumVersion = [new Comparator$1(">=0.0.0")];
1226
+ const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
1227
+ const minimumVersion = [new Comparator(">=0.0.0")];
1282
1228
  const simpleSubset = (sub, dom, options) => {
1283
1229
  if (sub === dom) return true;
1284
1230
  if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
@@ -1287,151 +1233,113 @@ var require_subset = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semv
1287
1233
  if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
1288
1234
  else dom = minimumVersion;
1289
1235
  const eqSet = /* @__PURE__ */ new Set();
1290
- let gt$5, lt$4;
1291
- for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt$5 = higherGT(gt$5, c, options);
1292
- else if (c.operator === "<" || c.operator === "<=") lt$4 = lowerLT(lt$4, c, options);
1236
+ let gt, lt;
1237
+ for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
1238
+ else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
1293
1239
  else eqSet.add(c.semver);
1294
1240
  if (eqSet.size > 1) return null;
1295
1241
  let gtltComp;
1296
- if (gt$5 && lt$4) {
1297
- gtltComp = compare$1(gt$5.semver, lt$4.semver, options);
1242
+ if (gt && lt) {
1243
+ gtltComp = compare(gt.semver, lt.semver, options);
1298
1244
  if (gtltComp > 0) return null;
1299
- else if (gtltComp === 0 && (gt$5.operator !== ">=" || lt$4.operator !== "<=")) return null;
1245
+ else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
1300
1246
  }
1301
- for (const eq$3 of eqSet) {
1302
- if (gt$5 && !satisfies$1(eq$3, String(gt$5), options)) return null;
1303
- if (lt$4 && !satisfies$1(eq$3, String(lt$4), options)) return null;
1304
- for (const c of dom) if (!satisfies$1(eq$3, String(c), options)) return false;
1247
+ for (const eq of eqSet) {
1248
+ if (gt && !satisfies(eq, String(gt), options)) return null;
1249
+ if (lt && !satisfies(eq, String(lt), options)) return null;
1250
+ for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
1305
1251
  return true;
1306
1252
  }
1307
1253
  let higher, lower;
1308
1254
  let hasDomLT, hasDomGT;
1309
- let needDomLTPre = lt$4 && !options.includePrerelease && lt$4.semver.prerelease.length ? lt$4.semver : false;
1310
- let needDomGTPre = gt$5 && !options.includePrerelease && gt$5.semver.prerelease.length ? gt$5.semver : false;
1311
- if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt$4.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
1255
+ let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
1256
+ let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
1257
+ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
1312
1258
  for (const c of dom) {
1313
1259
  hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
1314
1260
  hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
1315
- if (gt$5) {
1261
+ if (gt) {
1316
1262
  if (needDomGTPre) {
1317
1263
  if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
1318
1264
  }
1319
1265
  if (c.operator === ">" || c.operator === ">=") {
1320
- higher = higherGT(gt$5, c, options);
1321
- if (higher === c && higher !== gt$5) return false;
1322
- } else if (gt$5.operator === ">=" && !satisfies$1(gt$5.semver, String(c), options)) return false;
1266
+ higher = higherGT(gt, c, options);
1267
+ if (higher === c && higher !== gt) return false;
1268
+ } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
1323
1269
  }
1324
- if (lt$4) {
1270
+ if (lt) {
1325
1271
  if (needDomLTPre) {
1326
1272
  if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
1327
1273
  }
1328
1274
  if (c.operator === "<" || c.operator === "<=") {
1329
- lower = lowerLT(lt$4, c, options);
1330
- if (lower === c && lower !== lt$4) return false;
1331
- } else if (lt$4.operator === "<=" && !satisfies$1(lt$4.semver, String(c), options)) return false;
1275
+ lower = lowerLT(lt, c, options);
1276
+ if (lower === c && lower !== lt) return false;
1277
+ } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
1332
1278
  }
1333
- if (!c.operator && (lt$4 || gt$5) && gtltComp !== 0) return false;
1279
+ if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
1334
1280
  }
1335
- if (gt$5 && hasDomLT && !lt$4 && gtltComp !== 0) return false;
1336
- if (lt$4 && hasDomGT && !gt$5 && gtltComp !== 0) return false;
1281
+ if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
1282
+ if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
1337
1283
  if (needDomGTPre || needDomLTPre) return false;
1338
1284
  return true;
1339
1285
  };
1340
1286
  const higherGT = (a, b, options) => {
1341
1287
  if (!a) return b;
1342
- const comp = compare$1(a.semver, b.semver, options);
1288
+ const comp = compare(a.semver, b.semver, options);
1343
1289
  return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
1344
1290
  };
1345
1291
  const lowerLT = (a, b, options) => {
1346
1292
  if (!a) return b;
1347
- const comp = compare$1(a.semver, b.semver, options);
1293
+ const comp = compare(a.semver, b.semver, options);
1348
1294
  return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
1349
1295
  };
1350
- module.exports = subset$1;
1351
- }) });
1352
-
1296
+ module.exports = subset;
1297
+ }));
1353
1298
  //#endregion
1354
- //#region ../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js
1355
- var require_semver = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js": ((exports, module) => {
1299
+ //#region src/semverSatisfies.ts
1300
+ var import_semver = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
1356
1301
  const internalRe = require_re();
1357
1302
  const constants = require_constants();
1358
1303
  const SemVer = require_semver$1();
1359
1304
  const identifiers = require_identifiers();
1360
- const parse = require_parse();
1361
- const valid = require_valid$1();
1362
- const clean = require_clean();
1363
- const inc = require_inc();
1364
- const diff = require_diff();
1365
- const major = require_major();
1366
- const minor = require_minor();
1367
- const patch = require_patch();
1368
- const prerelease = require_prerelease();
1369
- const compare = require_compare();
1370
- const rcompare = require_rcompare();
1371
- const compareLoose = require_compare_loose();
1372
- const compareBuild = require_compare_build();
1373
- const sort = require_sort();
1374
- const rsort = require_rsort();
1375
- const gt = require_gt();
1376
- const lt = require_lt();
1377
- const eq = require_eq();
1378
- const neq = require_neq();
1379
- const gte = require_gte();
1380
- const lte = require_lte();
1381
- const cmp = require_cmp();
1382
- const coerce = require_coerce();
1383
- const Comparator = require_comparator();
1384
- const Range = require_range();
1385
- const satisfies = require_satisfies();
1386
- const toComparators = require_to_comparators();
1387
- const maxSatisfying = require_max_satisfying();
1388
- const minSatisfying = require_min_satisfying();
1389
- const minVersion = require_min_version();
1390
- const validRange = require_valid();
1391
- const outside = require_outside();
1392
- const gtr = require_gtr();
1393
- const ltr = require_ltr();
1394
- const intersects = require_intersects();
1395
- const simplifyRange = require_simplify();
1396
- const subset = require_subset();
1397
1305
  module.exports = {
1398
- parse,
1399
- valid,
1400
- clean,
1401
- inc,
1402
- diff,
1403
- major,
1404
- minor,
1405
- patch,
1406
- prerelease,
1407
- compare,
1408
- rcompare,
1409
- compareLoose,
1410
- compareBuild,
1411
- sort,
1412
- rsort,
1413
- gt,
1414
- lt,
1415
- eq,
1416
- neq,
1417
- gte,
1418
- lte,
1419
- cmp,
1420
- coerce,
1421
- Comparator,
1422
- Range,
1423
- satisfies,
1424
- toComparators,
1425
- maxSatisfying,
1426
- minSatisfying,
1427
- minVersion,
1428
- validRange,
1429
- outside,
1430
- gtr,
1431
- ltr,
1432
- intersects,
1433
- simplifyRange,
1434
- subset,
1306
+ parse: require_parse(),
1307
+ valid: require_valid$1(),
1308
+ clean: require_clean(),
1309
+ inc: require_inc(),
1310
+ diff: require_diff(),
1311
+ major: require_major(),
1312
+ minor: require_minor(),
1313
+ patch: require_patch(),
1314
+ prerelease: require_prerelease(),
1315
+ compare: require_compare(),
1316
+ rcompare: require_rcompare(),
1317
+ compareLoose: require_compare_loose(),
1318
+ compareBuild: require_compare_build(),
1319
+ sort: require_sort(),
1320
+ rsort: require_rsort(),
1321
+ gt: require_gt(),
1322
+ lt: require_lt(),
1323
+ eq: require_eq(),
1324
+ neq: require_neq(),
1325
+ gte: require_gte(),
1326
+ lte: require_lte(),
1327
+ cmp: require_cmp(),
1328
+ coerce: require_coerce(),
1329
+ Comparator: require_comparator(),
1330
+ Range: require_range(),
1331
+ satisfies: require_satisfies(),
1332
+ toComparators: require_to_comparators(),
1333
+ maxSatisfying: require_max_satisfying(),
1334
+ minSatisfying: require_min_satisfying(),
1335
+ minVersion: require_min_version(),
1336
+ validRange: require_valid(),
1337
+ outside: require_outside(),
1338
+ gtr: require_gtr(),
1339
+ ltr: require_ltr(),
1340
+ intersects: require_intersects(),
1341
+ simplifyRange: require_simplify(),
1342
+ subset: require_subset(),
1435
1343
  SemVer,
1436
1344
  re: internalRe.re,
1437
1345
  src: internalRe.src,
@@ -1441,17 +1349,12 @@ var require_semver = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/semv
1441
1349
  compareIdentifiers: identifiers.compareIdentifiers,
1442
1350
  rcompareIdentifiers: identifiers.rcompareIdentifiers
1443
1351
  };
1444
- }) });
1445
-
1446
- //#endregion
1447
- //#region src/semverSatisfies.ts
1448
- var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
1352
+ })))(), 1);
1449
1353
  const semverSatisfies = (targetAppVersion, currentVersion) => {
1450
1354
  const currentCoerce = import_semver.default.coerce(currentVersion);
1451
1355
  if (!currentCoerce) return false;
1452
1356
  return import_semver.default.satisfies(currentCoerce.version, targetAppVersion);
1453
1357
  };
1454
-
1455
1358
  //#endregion
1456
1359
  //#region src/filterCompatibleAppVersions.ts
1457
1360
  /**
@@ -1465,7 +1368,6 @@ const semverSatisfies = (targetAppVersion, currentVersion) => {
1465
1368
  const filterCompatibleAppVersions = (targetAppVersionList, currentVersion) => {
1466
1369
  return targetAppVersionList.filter((version) => semverSatisfies(version, currentVersion)).sort((a, b) => b.localeCompare(a));
1467
1370
  };
1468
-
1469
1371
  //#endregion
1470
1372
  //#region src/getUpdateInfo.ts
1471
1373
  const INIT_BUNDLE_ROLLBACK_UPDATE_INFO = {
@@ -1484,6 +1386,14 @@ const makeResponse = (bundle, status) => ({
1484
1386
  storageUri: bundle.storageUri,
1485
1387
  fileHash: bundle.fileHash
1486
1388
  });
1389
+ const isEligibleUpdateCandidate = (bundle, cohort) => {
1390
+ return isCohortEligibleForUpdate(bundle.id, cohort, bundle.rolloutCohortCount, bundle.targetCohorts);
1391
+ };
1392
+ const findLatestEligibleUpdateCandidate = (bundles, bundleId, cohort) => {
1393
+ let updateCandidate = null;
1394
+ for (const bundle of bundles) if (bundle.id.localeCompare(bundleId) > 0 && isEligibleUpdateCandidate(bundle, cohort) && (!updateCandidate || bundle.id.localeCompare(updateCandidate.id) > 0)) updateCandidate = bundle;
1395
+ return updateCandidate;
1396
+ };
1487
1397
  const getUpdateInfo = async (bundles, args) => {
1488
1398
  switch (args._updateStrategy) {
1489
1399
  case "appVersion": return appVersionStrategy(bundles, args);
@@ -1491,7 +1401,7 @@ const getUpdateInfo = async (bundles, args) => {
1491
1401
  default: return null;
1492
1402
  }
1493
1403
  };
1494
- const appVersionStrategy = async (bundles, { channel = "production", minBundleId = NIL_UUID, platform, appVersion, bundleId }) => {
1404
+ const appVersionStrategy = async (bundles, { channel = "production", minBundleId = NIL_UUID, platform, appVersion, bundleId, cohort }) => {
1495
1405
  const candidateBundles = [];
1496
1406
  for (const b of bundles) {
1497
1407
  if (b.platform !== platform || b.channel !== channel || !b.targetAppVersion || !semverSatisfies(b.targetAppVersion, appVersion) || !b.enabled || minBundleId && b.id.localeCompare(minBundleId) < 0) continue;
@@ -1501,27 +1411,20 @@ const appVersionStrategy = async (bundles, { channel = "production", minBundleId
1501
1411
  if (bundleId === NIL_UUID || minBundleId && bundleId.localeCompare(minBundleId) <= 0) return null;
1502
1412
  return INIT_BUNDLE_ROLLBACK_UPDATE_INFO;
1503
1413
  }
1504
- let latestCandidate = null;
1505
- let updateCandidate = null;
1506
1414
  let rollbackCandidate = null;
1507
1415
  let currentBundle;
1508
- for (const b of candidateBundles) {
1509
- if (!latestCandidate || b.id.localeCompare(latestCandidate.id) > 0) latestCandidate = b;
1510
- if (b.id === bundleId) currentBundle = b;
1511
- else if (bundleId !== NIL_UUID) {
1512
- if (b.id.localeCompare(bundleId) > 0) {
1513
- if (!updateCandidate || b.id.localeCompare(updateCandidate.id) > 0) updateCandidate = b;
1514
- } else if (b.id.localeCompare(bundleId) < 0) {
1515
- if (!rollbackCandidate || b.id.localeCompare(rollbackCandidate.id) > 0) rollbackCandidate = b;
1516
- }
1517
- }
1416
+ for (const b of candidateBundles) if (b.id === bundleId) currentBundle = b;
1417
+ else if (bundleId !== NIL_UUID && b.id.localeCompare(bundleId) < 0) {
1418
+ if (!rollbackCandidate || b.id.localeCompare(rollbackCandidate.id) > 0) rollbackCandidate = b;
1518
1419
  }
1420
+ const updateCandidate = findLatestEligibleUpdateCandidate(candidateBundles, bundleId, cohort);
1421
+ const currentBundleEligible = currentBundle ? isEligibleUpdateCandidate(currentBundle, cohort) : false;
1519
1422
  if (bundleId === NIL_UUID) {
1520
- if (latestCandidate && latestCandidate.id.localeCompare(bundleId) > 0) return makeResponse(latestCandidate, "UPDATE");
1423
+ if (updateCandidate) return makeResponse(updateCandidate, "UPDATE");
1521
1424
  return null;
1522
1425
  }
1523
- if (currentBundle) {
1524
- if (latestCandidate && latestCandidate.id.localeCompare(currentBundle.id) > 0) return makeResponse(latestCandidate, "UPDATE");
1426
+ if (currentBundleEligible) {
1427
+ if (updateCandidate) return makeResponse(updateCandidate, "UPDATE");
1525
1428
  return null;
1526
1429
  }
1527
1430
  if (updateCandidate) return makeResponse(updateCandidate, "UPDATE");
@@ -1529,7 +1432,7 @@ const appVersionStrategy = async (bundles, { channel = "production", minBundleId
1529
1432
  if (minBundleId && bundleId.localeCompare(minBundleId) <= 0) return null;
1530
1433
  return INIT_BUNDLE_ROLLBACK_UPDATE_INFO;
1531
1434
  };
1532
- const fingerprintStrategy = async (bundles, { channel = "production", minBundleId = NIL_UUID, platform, fingerprintHash, bundleId }) => {
1435
+ const fingerprintStrategy = async (bundles, { channel = "production", minBundleId = NIL_UUID, platform, fingerprintHash, bundleId, cohort }) => {
1533
1436
  const candidateBundles = [];
1534
1437
  for (const b of bundles) {
1535
1438
  if (b.platform !== platform || b.channel !== channel || !b.fingerprintHash || b.fingerprintHash !== fingerprintHash || !b.enabled || minBundleId && b.id.localeCompare(minBundleId) < 0) continue;
@@ -1539,27 +1442,20 @@ const fingerprintStrategy = async (bundles, { channel = "production", minBundleI
1539
1442
  if (bundleId === NIL_UUID || minBundleId && bundleId.localeCompare(minBundleId) <= 0) return null;
1540
1443
  return INIT_BUNDLE_ROLLBACK_UPDATE_INFO;
1541
1444
  }
1542
- let latestCandidate = null;
1543
- let updateCandidate = null;
1544
1445
  let rollbackCandidate = null;
1545
1446
  let currentBundle;
1546
- for (const b of candidateBundles) {
1547
- if (!latestCandidate || b.id.localeCompare(latestCandidate.id) > 0) latestCandidate = b;
1548
- if (b.id === bundleId) currentBundle = b;
1549
- else if (bundleId !== NIL_UUID) {
1550
- if (b.id.localeCompare(bundleId) > 0) {
1551
- if (!updateCandidate || b.id.localeCompare(updateCandidate.id) > 0) updateCandidate = b;
1552
- } else if (b.id.localeCompare(bundleId) < 0) {
1553
- if (!rollbackCandidate || b.id.localeCompare(rollbackCandidate.id) > 0) rollbackCandidate = b;
1554
- }
1555
- }
1447
+ for (const b of candidateBundles) if (b.id === bundleId) currentBundle = b;
1448
+ else if (bundleId !== NIL_UUID && b.id.localeCompare(bundleId) < 0) {
1449
+ if (!rollbackCandidate || b.id.localeCompare(rollbackCandidate.id) > 0) rollbackCandidate = b;
1556
1450
  }
1451
+ const updateCandidate = findLatestEligibleUpdateCandidate(candidateBundles, bundleId, cohort);
1452
+ const currentBundleEligible = currentBundle ? isEligibleUpdateCandidate(currentBundle, cohort) : false;
1557
1453
  if (bundleId === NIL_UUID) {
1558
- if (latestCandidate && latestCandidate.id.localeCompare(bundleId) > 0) return makeResponse(latestCandidate, "UPDATE");
1454
+ if (updateCandidate) return makeResponse(updateCandidate, "UPDATE");
1559
1455
  return null;
1560
1456
  }
1561
- if (currentBundle) {
1562
- if (latestCandidate && latestCandidate.id.localeCompare(currentBundle.id) > 0) return makeResponse(latestCandidate, "UPDATE");
1457
+ if (currentBundleEligible) {
1458
+ if (updateCandidate) return makeResponse(updateCandidate, "UPDATE");
1563
1459
  return null;
1564
1460
  }
1565
1461
  if (updateCandidate) return makeResponse(updateCandidate, "UPDATE");
@@ -1567,12 +1463,10 @@ const fingerprintStrategy = async (bundles, { channel = "production", minBundleI
1567
1463
  if (minBundleId && bundleId.localeCompare(minBundleId) <= 0) return null;
1568
1464
  return INIT_BUNDLE_ROLLBACK_UPDATE_INFO;
1569
1465
  };
1570
-
1571
1466
  //#endregion
1572
1467
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/buffer_utils.js
1573
1468
  const encoder = new TextEncoder();
1574
1469
  const decoder = new TextDecoder();
1575
- const MAX_INT32 = 2 ** 32;
1576
1470
  function concat(...buffers) {
1577
1471
  const size = buffers.reduce((acc, { length }) => acc + length, 0);
1578
1472
  const buf = new Uint8Array(size);
@@ -1583,7 +1477,6 @@ function concat(...buffers) {
1583
1477
  }
1584
1478
  return buf;
1585
1479
  }
1586
-
1587
1480
  //#endregion
1588
1481
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/base64.js
1589
1482
  function encodeBase64(input) {
@@ -1600,7 +1493,6 @@ function decodeBase64(encoded) {
1600
1493
  for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
1601
1494
  return bytes;
1602
1495
  }
1603
-
1604
1496
  //#endregion
1605
1497
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/util/base64url.js
1606
1498
  function decode(input) {
@@ -1623,14 +1515,13 @@ function encode(input) {
1623
1515
  });
1624
1516
  return encodeBase64(unencoded).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
1625
1517
  }
1626
-
1627
1518
  //#endregion
1628
1519
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/util/errors.js
1629
1520
  var JOSEError = class extends Error {
1630
1521
  static code = "ERR_JOSE_GENERIC";
1631
1522
  code = "ERR_JOSE_GENERIC";
1632
- constructor(message$1, options) {
1633
- super(message$1, options);
1523
+ constructor(message, options) {
1524
+ super(message, options);
1634
1525
  this.name = this.constructor.name;
1635
1526
  Error.captureStackTrace?.(this, this.constructor);
1636
1527
  }
@@ -1641,8 +1532,8 @@ var JWTClaimValidationFailed = class extends JOSEError {
1641
1532
  claim;
1642
1533
  reason;
1643
1534
  payload;
1644
- constructor(message$1, payload, claim = "unspecified", reason = "unspecified") {
1645
- super(message$1, { cause: {
1535
+ constructor(message, payload, claim = "unspecified", reason = "unspecified") {
1536
+ super(message, { cause: {
1646
1537
  claim,
1647
1538
  reason,
1648
1539
  payload
@@ -1658,8 +1549,8 @@ var JWTExpired = class extends JOSEError {
1658
1549
  claim;
1659
1550
  reason;
1660
1551
  payload;
1661
- constructor(message$1, payload, claim = "unspecified", reason = "unspecified") {
1662
- super(message$1, { cause: {
1552
+ constructor(message, payload, claim = "unspecified", reason = "unspecified") {
1553
+ super(message, { cause: {
1663
1554
  claim,
1664
1555
  reason,
1665
1556
  payload
@@ -1685,22 +1576,13 @@ var JWTInvalid = class extends JOSEError {
1685
1576
  static code = "ERR_JWT_INVALID";
1686
1577
  code = "ERR_JWT_INVALID";
1687
1578
  };
1688
- var JWKSMultipleMatchingKeys = class extends JOSEError {
1689
- [Symbol.asyncIterator];
1690
- static code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
1691
- code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
1692
- constructor(message$1 = "multiple matching keys found in the JSON Web Key Set", options) {
1693
- super(message$1, options);
1694
- }
1695
- };
1696
1579
  var JWSSignatureVerificationFailed = class extends JOSEError {
1697
1580
  static code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
1698
1581
  code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
1699
- constructor(message$1 = "signature verification failed", options) {
1700
- super(message$1, options);
1582
+ constructor(message = "signature verification failed", options) {
1583
+ super(message, options);
1701
1584
  }
1702
1585
  };
1703
-
1704
1586
  //#endregion
1705
1587
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/crypto_key.js
1706
1588
  function unusable(name, prop = "algorithm.name") {
@@ -1765,7 +1647,6 @@ function checkSigCryptoKey(key, alg, usage) {
1765
1647
  }
1766
1648
  checkUsage(key, usage);
1767
1649
  }
1768
-
1769
1650
  //#endregion
1770
1651
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/invalid_key_input.js
1771
1652
  function message(msg, actual, ...types) {
@@ -1788,7 +1669,6 @@ var invalid_key_input_default = (actual, ...types) => {
1788
1669
  function withAlg(alg, actual, ...types) {
1789
1670
  return message(`Key for the ${alg} algorithm must be `, actual, ...types);
1790
1671
  }
1791
-
1792
1672
  //#endregion
1793
1673
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/is_key_like.js
1794
1674
  function isCryptoKey(key) {
@@ -1800,7 +1680,6 @@ function isKeyObject(key) {
1800
1680
  var is_key_like_default = (key) => {
1801
1681
  return isCryptoKey(key) || isKeyObject(key);
1802
1682
  };
1803
-
1804
1683
  //#endregion
1805
1684
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/is_disjoint.js
1806
1685
  var is_disjoint_default = (...headers) => {
@@ -1820,7 +1699,6 @@ var is_disjoint_default = (...headers) => {
1820
1699
  }
1821
1700
  return true;
1822
1701
  };
1823
-
1824
1702
  //#endregion
1825
1703
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/is_object.js
1826
1704
  function isObjectLike(value) {
@@ -1833,7 +1711,6 @@ var is_object_default = (input) => {
1833
1711
  while (Object.getPrototypeOf(proto) !== null) proto = Object.getPrototypeOf(proto);
1834
1712
  return Object.getPrototypeOf(input) === proto;
1835
1713
  };
1836
-
1837
1714
  //#endregion
1838
1715
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/check_key_length.js
1839
1716
  var check_key_length_default = (alg, key) => {
@@ -1842,7 +1719,6 @@ var check_key_length_default = (alg, key) => {
1842
1719
  if (typeof modulusLength !== "number" || modulusLength < 2048) throw new TypeError(`${alg} requires key modulusLength to be 2048 bits or larger`);
1843
1720
  }
1844
1721
  };
1845
-
1846
1722
  //#endregion
1847
1723
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/jwk_to_key.js
1848
1724
  function subtleMapping(jwk) {
@@ -1950,7 +1826,6 @@ var jwk_to_key_default = async (jwk) => {
1950
1826
  delete keyData.use;
1951
1827
  return crypto.subtle.importKey("jwk", keyData, algorithm, jwk.ext ?? (jwk.d ? false : true), jwk.key_ops ?? keyUsages);
1952
1828
  };
1953
-
1954
1829
  //#endregion
1955
1830
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/validate_crit.js
1956
1831
  var validate_crit_default = (Err, recognizedDefault, recognizedOption, protectedHeader, joseHeader) => {
@@ -1967,7 +1842,6 @@ var validate_crit_default = (Err, recognizedDefault, recognizedOption, protected
1967
1842
  }
1968
1843
  return new Set(protectedHeader.crit);
1969
1844
  };
1970
-
1971
1845
  //#endregion
1972
1846
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/validate_algorithms.js
1973
1847
  var validate_algorithms_default = (option, algorithms) => {
@@ -1975,7 +1849,6 @@ var validate_algorithms_default = (option, algorithms) => {
1975
1849
  if (!algorithms) return;
1976
1850
  return new Set(algorithms);
1977
1851
  };
1978
-
1979
1852
  //#endregion
1980
1853
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/is_jwk.js
1981
1854
  function isJWK(key) {
@@ -1990,7 +1863,6 @@ function isPublicJWK(key) {
1990
1863
  function isSecretJWK(key) {
1991
1864
  return key.kty === "oct" && typeof key.k === "string";
1992
1865
  }
1993
-
1994
1866
  //#endregion
1995
1867
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/normalize_key.js
1996
1868
  let cache;
@@ -2107,7 +1979,6 @@ var normalize_key_default = async (key, alg) => {
2107
1979
  }
2108
1980
  throw new Error("unreachable");
2109
1981
  };
2110
-
2111
1982
  //#endregion
2112
1983
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/check_key_type.js
2113
1984
  const tag = (key) => key?.[Symbol.toStringTag];
@@ -2190,7 +2061,6 @@ var check_key_type_default = (alg, key, usage) => {
2190
2061
  if (alg.startsWith("HS") || alg === "dir" || alg.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(alg) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(alg)) symmetricTypeCheck(alg, key, usage);
2191
2062
  else asymmetricTypeCheck(alg, key, usage);
2192
2063
  };
2193
-
2194
2064
  //#endregion
2195
2065
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/subtle_dsa.js
2196
2066
  var subtle_dsa_default = (alg, algorithm) => {
@@ -2227,7 +2097,6 @@ var subtle_dsa_default = (alg, algorithm) => {
2227
2097
  default: throw new JOSENotSupported(`alg ${alg} is not supported either by JOSE or your javascript runtime`);
2228
2098
  }
2229
2099
  };
2230
-
2231
2100
  //#endregion
2232
2101
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js
2233
2102
  var get_sign_verify_key_default = async (alg, key, usage) => {
@@ -2241,7 +2110,6 @@ var get_sign_verify_key_default = async (alg, key, usage) => {
2241
2110
  checkSigCryptoKey(key, alg, usage);
2242
2111
  return key;
2243
2112
  };
2244
-
2245
2113
  //#endregion
2246
2114
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/verify.js
2247
2115
  var verify_default = async (alg, key, signature, data) => {
@@ -2254,7 +2122,6 @@ var verify_default = async (alg, key, signature, data) => {
2254
2122
  return false;
2255
2123
  }
2256
2124
  };
2257
-
2258
2125
  //#endregion
2259
2126
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/jws/flattened/verify.js
2260
2127
  async function flattenedVerify(jws, key, options) {
@@ -2321,7 +2188,6 @@ async function flattenedVerify(jws, key, options) {
2321
2188
  };
2322
2189
  return result;
2323
2190
  }
2324
-
2325
2191
  //#endregion
2326
2192
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/jws/compact/verify.js
2327
2193
  async function compactVerify(jws, key, options) {
@@ -2344,11 +2210,9 @@ async function compactVerify(jws, key, options) {
2344
2210
  };
2345
2211
  return result;
2346
2212
  }
2347
-
2348
2213
  //#endregion
2349
2214
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/epoch.js
2350
2215
  var epoch_default = (date) => Math.floor(date.getTime() / 1e3);
2351
-
2352
2216
  //#endregion
2353
2217
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/secs.js
2354
2218
  const minute = 60;
@@ -2402,7 +2266,6 @@ var secs_default = (str) => {
2402
2266
  if (matched[1] === "-" || matched[4] === "ago") return -numericDate;
2403
2267
  return numericDate;
2404
2268
  };
2405
-
2406
2269
  //#endregion
2407
2270
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/jwt_claims_set.js
2408
2271
  function validateInput(label, input) {
@@ -2512,7 +2375,6 @@ var JWTClaimsBuilder = class {
2512
2375
  else this.#payload.iat = validateInput("setIssuedAt", value);
2513
2376
  }
2514
2377
  };
2515
-
2516
2378
  //#endregion
2517
2379
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/jwt/verify.js
2518
2380
  async function jwtVerify(jwt, key, options) {
@@ -2528,7 +2390,6 @@ async function jwtVerify(jwt, key, options) {
2528
2390
  };
2529
2391
  return result;
2530
2392
  }
2531
-
2532
2393
  //#endregion
2533
2394
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/lib/sign.js
2534
2395
  var sign_default = async (alg, key, data) => {
@@ -2537,7 +2398,6 @@ var sign_default = async (alg, key, data) => {
2537
2398
  const signature = await crypto.subtle.sign(subtle_dsa_default(alg, cryptoKey.algorithm), cryptoKey, data);
2538
2399
  return new Uint8Array(signature);
2539
2400
  };
2540
-
2541
2401
  //#endregion
2542
2402
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/jws/flattened/sign.js
2543
2403
  var FlattenedSign = class {
@@ -2590,7 +2450,6 @@ var FlattenedSign = class {
2590
2450
  return jws;
2591
2451
  }
2592
2452
  };
2593
-
2594
2453
  //#endregion
2595
2454
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/jws/compact/sign.js
2596
2455
  var CompactSign = class {
@@ -2608,7 +2467,6 @@ var CompactSign = class {
2608
2467
  return `${jws.protected}.${jws.payload}.${jws.signature}`;
2609
2468
  }
2610
2469
  };
2611
-
2612
2470
  //#endregion
2613
2471
  //#region ../../node_modules/.pnpm/jose@6.0.10/node_modules/jose/dist/webapi/jwt/sign.js
2614
2472
  var SignJWT = class {
@@ -2656,7 +2514,6 @@ var SignJWT = class {
2656
2514
  return sig.sign(key, options);
2657
2515
  }
2658
2516
  };
2659
-
2660
2517
  //#endregion
2661
2518
  //#region src/verifyJwtSignedUrl.ts
2662
2519
  /**
@@ -2731,7 +2588,6 @@ const verifyJwtSignedUrl = async ({ path, token, jwtSecret, handler }) => {
2731
2588
  handler
2732
2589
  });
2733
2590
  };
2734
-
2735
2591
  //#endregion
2736
2592
  //#region src/withJwtSignedUrl.ts
2737
2593
  /**
@@ -2745,7 +2601,7 @@ const verifyJwtSignedUrl = async ({ path, token, jwtSecret, handler }) => {
2745
2601
  */
2746
2602
  const withJwtSignedUrl = async ({ data, reqUrl, jwtSecret }) => {
2747
2603
  if (!data) return null;
2748
- const { storageUri,...rest } = data;
2604
+ const { storageUri, ...rest } = data;
2749
2605
  if (data.id === NIL_UUID || !storageUri) return {
2750
2606
  ...rest,
2751
2607
  fileUrl: null
@@ -2765,6 +2621,5 @@ const signToken = async (key, jwtSecret) => {
2765
2621
  const secretKey = new TextEncoder().encode(jwtSecret);
2766
2622
  return await new SignJWT({ key }).setProtectedHeader({ alg: "HS256" }).setExpirationTime("60s").sign(secretKey);
2767
2623
  };
2768
-
2769
2624
  //#endregion
2770
- export { filterCompatibleAppVersions, getUpdateInfo, semverSatisfies, signToken, verifyJwtSignedUrl, verifyJwtToken, withJwtSignedUrl };
2625
+ export { filterCompatibleAppVersions, getUpdateInfo, semverSatisfies, signToken, verifyJwtSignedUrl, verifyJwtToken, withJwtSignedUrl };