@jsii/runtime 1.126.0 → 1.128.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.
- package/package.json +12 -9
- package/test/__snapshots__/kernel-host.test.js.snap +1 -1
- package/webpack/bin/jsii-runtime.js +1 -3506
- package/webpack/lib/program.js +1 -17703
- package/webpack.config.js +7 -3
|
@@ -1,3507 +1,2 @@
|
|
|
1
|
-
var __webpack_modules__ = {
|
|
2
|
-
268: (__unused_webpack_module, exports, __webpack_require__) => {
|
|
3
|
-
"use strict";
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.NodeRelease = void 0;
|
|
8
|
-
const process = __webpack_require__(932);
|
|
9
|
-
const semver_1 = __webpack_require__(5263);
|
|
10
|
-
const ONE_DAY_IN_MILLISECONDS = 864e5;
|
|
11
|
-
class NodeRelease {
|
|
12
|
-
static forThisRuntime() {
|
|
13
|
-
const semver = new semver_1.SemVer(process.version);
|
|
14
|
-
const majorVersion = semver.major;
|
|
15
|
-
for (const nodeRelease of this.ALL_RELEASES) {
|
|
16
|
-
if (nodeRelease.majorVersion === majorVersion) {
|
|
17
|
-
return {
|
|
18
|
-
nodeRelease,
|
|
19
|
-
knownBroken: !nodeRelease.supportedRange.test(semver)
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
nodeRelease: undefined,
|
|
25
|
-
knownBroken: false
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
constructor(majorVersion, opts) {
|
|
29
|
-
var _a, _b, _c;
|
|
30
|
-
this.untested = (_a = opts.untested) !== null && _a !== void 0 ? _a : false;
|
|
31
|
-
this.majorVersion = majorVersion;
|
|
32
|
-
this.supportedRange = new semver_1.Range((_b = opts.supportedRange) !== null && _b !== void 0 ? _b : `^${majorVersion}.0.0`);
|
|
33
|
-
this.endOfLifeDate = opts.endOfLife;
|
|
34
|
-
this.endOfLife = opts.endOfLife.getTime() + ONE_DAY_IN_MILLISECONDS <= Date.now();
|
|
35
|
-
this.endOfJsiiSupportDate = (_c = opts.endOfJsiiSupport) !== null && _c !== void 0 ? _c : new Date(this.endOfLifeDate.getFullYear(), this.endOfLifeDate.getMonth() + NodeRelease.DEFAULT_EXTENDED_SUPPORT_MONTHS, this.endOfLifeDate.getDate());
|
|
36
|
-
const endOfJsiiSupport = this.endOfJsiiSupportDate.getTime() + ONE_DAY_IN_MILLISECONDS <= Date.now();
|
|
37
|
-
this.deprecated = this.endOfLife && !endOfJsiiSupport;
|
|
38
|
-
this.supported = !this.untested && !endOfJsiiSupport;
|
|
39
|
-
}
|
|
40
|
-
toString() {
|
|
41
|
-
const eolInfo = this.endOfLifeDate ? ` (Planned end-of-life: ${this.endOfLifeDate.toISOString().slice(0, 10)})` : "";
|
|
42
|
-
return `${this.supportedRange.raw}${eolInfo}`;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.NodeRelease = NodeRelease;
|
|
46
|
-
NodeRelease.DEFAULT_EXTENDED_SUPPORT_MONTHS = 6;
|
|
47
|
-
NodeRelease.ALL_RELEASES = [ ...[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ].map(majorVersion => new NodeRelease(majorVersion, {
|
|
48
|
-
endOfLife: new Date("2018-01-01"),
|
|
49
|
-
untested: true
|
|
50
|
-
})), new NodeRelease(12, {
|
|
51
|
-
endOfLife: new Date("2022-04-30"),
|
|
52
|
-
supportedRange: "^12.7.0"
|
|
53
|
-
}), new NodeRelease(13, {
|
|
54
|
-
endOfLife: new Date("2020-06-01"),
|
|
55
|
-
untested: true
|
|
56
|
-
}), new NodeRelease(14, {
|
|
57
|
-
endOfLife: new Date("2023-04-30"),
|
|
58
|
-
supportedRange: "^14.17.0"
|
|
59
|
-
}), new NodeRelease(15, {
|
|
60
|
-
endOfLife: new Date("2021-06-01"),
|
|
61
|
-
untested: true
|
|
62
|
-
}), new NodeRelease(16, {
|
|
63
|
-
endOfLife: new Date("2023-09-11"),
|
|
64
|
-
supportedRange: "^16.3.0"
|
|
65
|
-
}), new NodeRelease(17, {
|
|
66
|
-
endOfLife: new Date("2022-06-01"),
|
|
67
|
-
supportedRange: "^17.3.0",
|
|
68
|
-
untested: true
|
|
69
|
-
}), new NodeRelease(19, {
|
|
70
|
-
endOfLife: new Date("2023-06-01"),
|
|
71
|
-
untested: true
|
|
72
|
-
}), new NodeRelease(21, {
|
|
73
|
-
endOfLife: new Date("2024-06-01"),
|
|
74
|
-
untested: true
|
|
75
|
-
}), new NodeRelease(23, {
|
|
76
|
-
endOfLife: new Date("2025-06-01"),
|
|
77
|
-
untested: true
|
|
78
|
-
}), new NodeRelease(18, {
|
|
79
|
-
endOfLife: new Date("2025-04-30"),
|
|
80
|
-
endOfJsiiSupport: new Date("2025-11-30")
|
|
81
|
-
}), new NodeRelease(20, {
|
|
82
|
-
endOfLife: new Date("2026-04-30")
|
|
83
|
-
}), new NodeRelease(22, {
|
|
84
|
-
endOfLife: new Date("2027-04-30")
|
|
85
|
-
}), new NodeRelease(24, {
|
|
86
|
-
endOfLife: new Date("2028-04-30")
|
|
87
|
-
}) ];
|
|
88
|
-
},
|
|
89
|
-
274: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
90
|
-
"use strict";
|
|
91
|
-
const SemVer = __webpack_require__(8038);
|
|
92
|
-
const Range = __webpack_require__(3597);
|
|
93
|
-
const maxSatisfying = (versions, range, options) => {
|
|
94
|
-
let max = null;
|
|
95
|
-
let maxSV = null;
|
|
96
|
-
let rangeObj = null;
|
|
97
|
-
try {
|
|
98
|
-
rangeObj = new Range(range, options);
|
|
99
|
-
} catch (er) {
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
versions.forEach(v => {
|
|
103
|
-
if (rangeObj.test(v)) {
|
|
104
|
-
if (!max || maxSV.compare(v) === -1) {
|
|
105
|
-
max = v;
|
|
106
|
-
maxSV = new SemVer(max, options);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
return max;
|
|
111
|
-
};
|
|
112
|
-
module.exports = maxSatisfying;
|
|
113
|
-
},
|
|
114
|
-
305: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
115
|
-
"use strict";
|
|
116
|
-
const SemVer = __webpack_require__(8038);
|
|
117
|
-
const inc = (version, release, options, identifier, identifierBase) => {
|
|
118
|
-
if (typeof options === "string") {
|
|
119
|
-
identifierBase = identifier;
|
|
120
|
-
identifier = options;
|
|
121
|
-
options = undefined;
|
|
122
|
-
}
|
|
123
|
-
try {
|
|
124
|
-
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
125
|
-
} catch (er) {
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
module.exports = inc;
|
|
130
|
-
},
|
|
131
|
-
821: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
132
|
-
"use strict";
|
|
133
|
-
module = __webpack_require__.nmd(module);
|
|
134
|
-
const wrapAnsi16 = (fn, offset) => (...args) => {
|
|
135
|
-
const code = fn(...args);
|
|
136
|
-
return `[${code + offset}m`;
|
|
137
|
-
};
|
|
138
|
-
const wrapAnsi256 = (fn, offset) => (...args) => {
|
|
139
|
-
const code = fn(...args);
|
|
140
|
-
return `[${38 + offset};5;${code}m`;
|
|
141
|
-
};
|
|
142
|
-
const wrapAnsi16m = (fn, offset) => (...args) => {
|
|
143
|
-
const rgb = fn(...args);
|
|
144
|
-
return `[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
145
|
-
};
|
|
146
|
-
const ansi2ansi = n => n;
|
|
147
|
-
const rgb2rgb = (r, g, b) => [ r, g, b ];
|
|
148
|
-
const setLazyProperty = (object, property, get) => {
|
|
149
|
-
Object.defineProperty(object, property, {
|
|
150
|
-
get: () => {
|
|
151
|
-
const value = get();
|
|
152
|
-
Object.defineProperty(object, property, {
|
|
153
|
-
value,
|
|
154
|
-
enumerable: true,
|
|
155
|
-
configurable: true
|
|
156
|
-
});
|
|
157
|
-
return value;
|
|
158
|
-
},
|
|
159
|
-
enumerable: true,
|
|
160
|
-
configurable: true
|
|
161
|
-
});
|
|
162
|
-
};
|
|
163
|
-
let colorConvert;
|
|
164
|
-
const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
165
|
-
if (colorConvert === undefined) {
|
|
166
|
-
colorConvert = __webpack_require__(2172);
|
|
167
|
-
}
|
|
168
|
-
const offset = isBackground ? 10 : 0;
|
|
169
|
-
const styles = {};
|
|
170
|
-
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
171
|
-
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
172
|
-
if (sourceSpace === targetSpace) {
|
|
173
|
-
styles[name] = wrap(identity, offset);
|
|
174
|
-
} else if (typeof suite === "object") {
|
|
175
|
-
styles[name] = wrap(suite[targetSpace], offset);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
return styles;
|
|
179
|
-
};
|
|
180
|
-
function assembleStyles() {
|
|
181
|
-
const codes = new Map;
|
|
182
|
-
const styles = {
|
|
183
|
-
modifier: {
|
|
184
|
-
reset: [ 0, 0 ],
|
|
185
|
-
bold: [ 1, 22 ],
|
|
186
|
-
dim: [ 2, 22 ],
|
|
187
|
-
italic: [ 3, 23 ],
|
|
188
|
-
underline: [ 4, 24 ],
|
|
189
|
-
inverse: [ 7, 27 ],
|
|
190
|
-
hidden: [ 8, 28 ],
|
|
191
|
-
strikethrough: [ 9, 29 ]
|
|
192
|
-
},
|
|
193
|
-
color: {
|
|
194
|
-
black: [ 30, 39 ],
|
|
195
|
-
red: [ 31, 39 ],
|
|
196
|
-
green: [ 32, 39 ],
|
|
197
|
-
yellow: [ 33, 39 ],
|
|
198
|
-
blue: [ 34, 39 ],
|
|
199
|
-
magenta: [ 35, 39 ],
|
|
200
|
-
cyan: [ 36, 39 ],
|
|
201
|
-
white: [ 37, 39 ],
|
|
202
|
-
blackBright: [ 90, 39 ],
|
|
203
|
-
redBright: [ 91, 39 ],
|
|
204
|
-
greenBright: [ 92, 39 ],
|
|
205
|
-
yellowBright: [ 93, 39 ],
|
|
206
|
-
blueBright: [ 94, 39 ],
|
|
207
|
-
magentaBright: [ 95, 39 ],
|
|
208
|
-
cyanBright: [ 96, 39 ],
|
|
209
|
-
whiteBright: [ 97, 39 ]
|
|
210
|
-
},
|
|
211
|
-
bgColor: {
|
|
212
|
-
bgBlack: [ 40, 49 ],
|
|
213
|
-
bgRed: [ 41, 49 ],
|
|
214
|
-
bgGreen: [ 42, 49 ],
|
|
215
|
-
bgYellow: [ 43, 49 ],
|
|
216
|
-
bgBlue: [ 44, 49 ],
|
|
217
|
-
bgMagenta: [ 45, 49 ],
|
|
218
|
-
bgCyan: [ 46, 49 ],
|
|
219
|
-
bgWhite: [ 47, 49 ],
|
|
220
|
-
bgBlackBright: [ 100, 49 ],
|
|
221
|
-
bgRedBright: [ 101, 49 ],
|
|
222
|
-
bgGreenBright: [ 102, 49 ],
|
|
223
|
-
bgYellowBright: [ 103, 49 ],
|
|
224
|
-
bgBlueBright: [ 104, 49 ],
|
|
225
|
-
bgMagentaBright: [ 105, 49 ],
|
|
226
|
-
bgCyanBright: [ 106, 49 ],
|
|
227
|
-
bgWhiteBright: [ 107, 49 ]
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
styles.color.gray = styles.color.blackBright;
|
|
231
|
-
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
232
|
-
styles.color.grey = styles.color.blackBright;
|
|
233
|
-
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
234
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
235
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
236
|
-
styles[styleName] = {
|
|
237
|
-
open: `[${style[0]}m`,
|
|
238
|
-
close: `[${style[1]}m`
|
|
239
|
-
};
|
|
240
|
-
group[styleName] = styles[styleName];
|
|
241
|
-
codes.set(style[0], style[1]);
|
|
242
|
-
}
|
|
243
|
-
Object.defineProperty(styles, groupName, {
|
|
244
|
-
value: group,
|
|
245
|
-
enumerable: false
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
Object.defineProperty(styles, "codes", {
|
|
249
|
-
value: codes,
|
|
250
|
-
enumerable: false
|
|
251
|
-
});
|
|
252
|
-
styles.color.close = "[39m";
|
|
253
|
-
styles.bgColor.close = "[49m";
|
|
254
|
-
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
255
|
-
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
256
|
-
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
257
|
-
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
258
|
-
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
259
|
-
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
260
|
-
return styles;
|
|
261
|
-
}
|
|
262
|
-
Object.defineProperty(module, "exports", {
|
|
263
|
-
enumerable: true,
|
|
264
|
-
get: assembleStyles
|
|
265
|
-
});
|
|
266
|
-
},
|
|
267
|
-
857: module => {
|
|
268
|
-
"use strict";
|
|
269
|
-
module.exports = require("os");
|
|
270
|
-
},
|
|
271
|
-
928: (module, exports, __webpack_require__) => {
|
|
272
|
-
"use strict";
|
|
273
|
-
const {MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH} = __webpack_require__(3932);
|
|
274
|
-
const debug = __webpack_require__(4122);
|
|
275
|
-
exports = module.exports = {};
|
|
276
|
-
const re = exports.re = [];
|
|
277
|
-
const safeRe = exports.safeRe = [];
|
|
278
|
-
const src = exports.src = [];
|
|
279
|
-
const safeSrc = exports.safeSrc = [];
|
|
280
|
-
const t = exports.t = {};
|
|
281
|
-
let R = 0;
|
|
282
|
-
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
283
|
-
const safeRegexReplacements = [ [ "\\s", 1 ], [ "\\d", MAX_LENGTH ], [ LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH ] ];
|
|
284
|
-
const makeSafeRegex = value => {
|
|
285
|
-
for (const [token, max] of safeRegexReplacements) {
|
|
286
|
-
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
287
|
-
}
|
|
288
|
-
return value;
|
|
289
|
-
};
|
|
290
|
-
const createToken = (name, value, isGlobal) => {
|
|
291
|
-
const safe = makeSafeRegex(value);
|
|
292
|
-
const index = R++;
|
|
293
|
-
debug(name, index, value);
|
|
294
|
-
t[name] = index;
|
|
295
|
-
src[index] = value;
|
|
296
|
-
safeSrc[index] = safe;
|
|
297
|
-
re[index] = new RegExp(value, isGlobal ? "g" : undefined);
|
|
298
|
-
safeRe[index] = new RegExp(safe, isGlobal ? "g" : undefined);
|
|
299
|
-
};
|
|
300
|
-
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
301
|
-
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
302
|
-
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
303
|
-
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.` + `(${src[t.NUMERICIDENTIFIER]})\\.` + `(${src[t.NUMERICIDENTIFIER]})`);
|
|
304
|
-
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
305
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
306
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
307
|
-
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
308
|
-
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
309
|
-
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
310
|
-
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
311
|
-
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
312
|
-
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
313
|
-
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
314
|
-
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
315
|
-
createToken("GTLT", "((?:<|>)?=?)");
|
|
316
|
-
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
317
|
-
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
318
|
-
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?` + `)?)?`);
|
|
319
|
-
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?` + `)?)?`);
|
|
320
|
-
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
321
|
-
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
322
|
-
createToken("COERCEPLAIN", `${"(^|[^\\d])" + "(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
323
|
-
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
324
|
-
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?` + `(?:${src[t.BUILD]})?` + `(?:$|[^\\d])`);
|
|
325
|
-
createToken("COERCERTL", src[t.COERCE], true);
|
|
326
|
-
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
327
|
-
createToken("LONETILDE", "(?:~>?)");
|
|
328
|
-
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
329
|
-
exports.tildeTrimReplace = "$1~";
|
|
330
|
-
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
331
|
-
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
332
|
-
createToken("LONECARET", "(?:\\^)");
|
|
333
|
-
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
334
|
-
exports.caretTrimReplace = "$1^";
|
|
335
|
-
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
336
|
-
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
337
|
-
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
338
|
-
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
339
|
-
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
340
|
-
exports.comparatorTrimReplace = "$1$2$3";
|
|
341
|
-
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})` + `\\s+-\\s+` + `(${src[t.XRANGEPLAIN]})` + `\\s*$`);
|
|
342
|
-
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})` + `\\s+-\\s+` + `(${src[t.XRANGEPLAINLOOSE]})` + `\\s*$`);
|
|
343
|
-
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
344
|
-
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
345
|
-
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
346
|
-
},
|
|
347
|
-
932: module => {
|
|
348
|
-
"use strict";
|
|
349
|
-
module.exports = require("process");
|
|
350
|
-
},
|
|
351
|
-
1005: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
352
|
-
"use strict";
|
|
353
|
-
const eq = __webpack_require__(8935);
|
|
354
|
-
const neq = __webpack_require__(8661);
|
|
355
|
-
const gt = __webpack_require__(6670);
|
|
356
|
-
const gte = __webpack_require__(6999);
|
|
357
|
-
const lt = __webpack_require__(5169);
|
|
358
|
-
const lte = __webpack_require__(9746);
|
|
359
|
-
const cmp = (a, op, b, loose) => {
|
|
360
|
-
switch (op) {
|
|
361
|
-
case "===":
|
|
362
|
-
if (typeof a === "object") {
|
|
363
|
-
a = a.version;
|
|
364
|
-
}
|
|
365
|
-
if (typeof b === "object") {
|
|
366
|
-
b = b.version;
|
|
367
|
-
}
|
|
368
|
-
return a === b;
|
|
369
|
-
|
|
370
|
-
case "!==":
|
|
371
|
-
if (typeof a === "object") {
|
|
372
|
-
a = a.version;
|
|
373
|
-
}
|
|
374
|
-
if (typeof b === "object") {
|
|
375
|
-
b = b.version;
|
|
376
|
-
}
|
|
377
|
-
return a !== b;
|
|
378
|
-
|
|
379
|
-
case "":
|
|
380
|
-
case "=":
|
|
381
|
-
case "==":
|
|
382
|
-
return eq(a, b, loose);
|
|
383
|
-
|
|
384
|
-
case "!=":
|
|
385
|
-
return neq(a, b, loose);
|
|
386
|
-
|
|
387
|
-
case ">":
|
|
388
|
-
return gt(a, b, loose);
|
|
389
|
-
|
|
390
|
-
case ">=":
|
|
391
|
-
return gte(a, b, loose);
|
|
392
|
-
|
|
393
|
-
case "<":
|
|
394
|
-
return lt(a, b, loose);
|
|
395
|
-
|
|
396
|
-
case "<=":
|
|
397
|
-
return lte(a, b, loose);
|
|
398
|
-
|
|
399
|
-
default:
|
|
400
|
-
throw new TypeError(`Invalid operator: ${op}`);
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
module.exports = cmp;
|
|
404
|
-
},
|
|
405
|
-
1380: module => {
|
|
406
|
-
"use strict";
|
|
407
|
-
class LRUCache {
|
|
408
|
-
constructor() {
|
|
409
|
-
this.max = 1e3;
|
|
410
|
-
this.map = new Map;
|
|
411
|
-
}
|
|
412
|
-
get(key) {
|
|
413
|
-
const value = this.map.get(key);
|
|
414
|
-
if (value === undefined) {
|
|
415
|
-
return undefined;
|
|
416
|
-
} else {
|
|
417
|
-
this.map.delete(key);
|
|
418
|
-
this.map.set(key, value);
|
|
419
|
-
return value;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
delete(key) {
|
|
423
|
-
return this.map.delete(key);
|
|
424
|
-
}
|
|
425
|
-
set(key, value) {
|
|
426
|
-
const deleted = this.delete(key);
|
|
427
|
-
if (!deleted && value !== undefined) {
|
|
428
|
-
if (this.map.size >= this.max) {
|
|
429
|
-
const firstKey = this.map.keys().next().value;
|
|
430
|
-
this.delete(firstKey);
|
|
431
|
-
}
|
|
432
|
-
this.map.set(key, value);
|
|
433
|
-
}
|
|
434
|
-
return this;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
module.exports = LRUCache;
|
|
438
|
-
},
|
|
439
|
-
1519: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
440
|
-
"use strict";
|
|
441
|
-
const parse = __webpack_require__(3770);
|
|
442
|
-
const valid = (version, options) => {
|
|
443
|
-
const v = parse(version, options);
|
|
444
|
-
return v ? v.version : null;
|
|
445
|
-
};
|
|
446
|
-
module.exports = valid;
|
|
447
|
-
},
|
|
448
|
-
1873: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
449
|
-
const cssKeywords = __webpack_require__(2694);
|
|
450
|
-
const reverseKeywords = {};
|
|
451
|
-
for (const key of Object.keys(cssKeywords)) {
|
|
452
|
-
reverseKeywords[cssKeywords[key]] = key;
|
|
453
|
-
}
|
|
454
|
-
const convert = {
|
|
455
|
-
rgb: {
|
|
456
|
-
channels: 3,
|
|
457
|
-
labels: "rgb"
|
|
458
|
-
},
|
|
459
|
-
hsl: {
|
|
460
|
-
channels: 3,
|
|
461
|
-
labels: "hsl"
|
|
462
|
-
},
|
|
463
|
-
hsv: {
|
|
464
|
-
channels: 3,
|
|
465
|
-
labels: "hsv"
|
|
466
|
-
},
|
|
467
|
-
hwb: {
|
|
468
|
-
channels: 3,
|
|
469
|
-
labels: "hwb"
|
|
470
|
-
},
|
|
471
|
-
cmyk: {
|
|
472
|
-
channels: 4,
|
|
473
|
-
labels: "cmyk"
|
|
474
|
-
},
|
|
475
|
-
xyz: {
|
|
476
|
-
channels: 3,
|
|
477
|
-
labels: "xyz"
|
|
478
|
-
},
|
|
479
|
-
lab: {
|
|
480
|
-
channels: 3,
|
|
481
|
-
labels: "lab"
|
|
482
|
-
},
|
|
483
|
-
lch: {
|
|
484
|
-
channels: 3,
|
|
485
|
-
labels: "lch"
|
|
486
|
-
},
|
|
487
|
-
hex: {
|
|
488
|
-
channels: 1,
|
|
489
|
-
labels: [ "hex" ]
|
|
490
|
-
},
|
|
491
|
-
keyword: {
|
|
492
|
-
channels: 1,
|
|
493
|
-
labels: [ "keyword" ]
|
|
494
|
-
},
|
|
495
|
-
ansi16: {
|
|
496
|
-
channels: 1,
|
|
497
|
-
labels: [ "ansi16" ]
|
|
498
|
-
},
|
|
499
|
-
ansi256: {
|
|
500
|
-
channels: 1,
|
|
501
|
-
labels: [ "ansi256" ]
|
|
502
|
-
},
|
|
503
|
-
hcg: {
|
|
504
|
-
channels: 3,
|
|
505
|
-
labels: [ "h", "c", "g" ]
|
|
506
|
-
},
|
|
507
|
-
apple: {
|
|
508
|
-
channels: 3,
|
|
509
|
-
labels: [ "r16", "g16", "b16" ]
|
|
510
|
-
},
|
|
511
|
-
gray: {
|
|
512
|
-
channels: 1,
|
|
513
|
-
labels: [ "gray" ]
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
|
-
module.exports = convert;
|
|
517
|
-
for (const model of Object.keys(convert)) {
|
|
518
|
-
if (!("channels" in convert[model])) {
|
|
519
|
-
throw new Error("missing channels property: " + model);
|
|
520
|
-
}
|
|
521
|
-
if (!("labels" in convert[model])) {
|
|
522
|
-
throw new Error("missing channel labels property: " + model);
|
|
523
|
-
}
|
|
524
|
-
if (convert[model].labels.length !== convert[model].channels) {
|
|
525
|
-
throw new Error("channel and label counts mismatch: " + model);
|
|
526
|
-
}
|
|
527
|
-
const {channels, labels} = convert[model];
|
|
528
|
-
delete convert[model].channels;
|
|
529
|
-
delete convert[model].labels;
|
|
530
|
-
Object.defineProperty(convert[model], "channels", {
|
|
531
|
-
value: channels
|
|
532
|
-
});
|
|
533
|
-
Object.defineProperty(convert[model], "labels", {
|
|
534
|
-
value: labels
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
|
-
convert.rgb.hsl = function(rgb) {
|
|
538
|
-
const r = rgb[0] / 255;
|
|
539
|
-
const g = rgb[1] / 255;
|
|
540
|
-
const b = rgb[2] / 255;
|
|
541
|
-
const min = Math.min(r, g, b);
|
|
542
|
-
const max = Math.max(r, g, b);
|
|
543
|
-
const delta = max - min;
|
|
544
|
-
let h;
|
|
545
|
-
let s;
|
|
546
|
-
if (max === min) {
|
|
547
|
-
h = 0;
|
|
548
|
-
} else if (r === max) {
|
|
549
|
-
h = (g - b) / delta;
|
|
550
|
-
} else if (g === max) {
|
|
551
|
-
h = 2 + (b - r) / delta;
|
|
552
|
-
} else if (b === max) {
|
|
553
|
-
h = 4 + (r - g) / delta;
|
|
554
|
-
}
|
|
555
|
-
h = Math.min(h * 60, 360);
|
|
556
|
-
if (h < 0) {
|
|
557
|
-
h += 360;
|
|
558
|
-
}
|
|
559
|
-
const l = (min + max) / 2;
|
|
560
|
-
if (max === min) {
|
|
561
|
-
s = 0;
|
|
562
|
-
} else if (l <= .5) {
|
|
563
|
-
s = delta / (max + min);
|
|
564
|
-
} else {
|
|
565
|
-
s = delta / (2 - max - min);
|
|
566
|
-
}
|
|
567
|
-
return [ h, s * 100, l * 100 ];
|
|
568
|
-
};
|
|
569
|
-
convert.rgb.hsv = function(rgb) {
|
|
570
|
-
let rdif;
|
|
571
|
-
let gdif;
|
|
572
|
-
let bdif;
|
|
573
|
-
let h;
|
|
574
|
-
let s;
|
|
575
|
-
const r = rgb[0] / 255;
|
|
576
|
-
const g = rgb[1] / 255;
|
|
577
|
-
const b = rgb[2] / 255;
|
|
578
|
-
const v = Math.max(r, g, b);
|
|
579
|
-
const diff = v - Math.min(r, g, b);
|
|
580
|
-
const diffc = function(c) {
|
|
581
|
-
return (v - c) / 6 / diff + 1 / 2;
|
|
582
|
-
};
|
|
583
|
-
if (diff === 0) {
|
|
584
|
-
h = 0;
|
|
585
|
-
s = 0;
|
|
586
|
-
} else {
|
|
587
|
-
s = diff / v;
|
|
588
|
-
rdif = diffc(r);
|
|
589
|
-
gdif = diffc(g);
|
|
590
|
-
bdif = diffc(b);
|
|
591
|
-
if (r === v) {
|
|
592
|
-
h = bdif - gdif;
|
|
593
|
-
} else if (g === v) {
|
|
594
|
-
h = 1 / 3 + rdif - bdif;
|
|
595
|
-
} else if (b === v) {
|
|
596
|
-
h = 2 / 3 + gdif - rdif;
|
|
597
|
-
}
|
|
598
|
-
if (h < 0) {
|
|
599
|
-
h += 1;
|
|
600
|
-
} else if (h > 1) {
|
|
601
|
-
h -= 1;
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
return [ h * 360, s * 100, v * 100 ];
|
|
605
|
-
};
|
|
606
|
-
convert.rgb.hwb = function(rgb) {
|
|
607
|
-
const r = rgb[0];
|
|
608
|
-
const g = rgb[1];
|
|
609
|
-
let b = rgb[2];
|
|
610
|
-
const h = convert.rgb.hsl(rgb)[0];
|
|
611
|
-
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
|
612
|
-
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
|
613
|
-
return [ h, w * 100, b * 100 ];
|
|
614
|
-
};
|
|
615
|
-
convert.rgb.cmyk = function(rgb) {
|
|
616
|
-
const r = rgb[0] / 255;
|
|
617
|
-
const g = rgb[1] / 255;
|
|
618
|
-
const b = rgb[2] / 255;
|
|
619
|
-
const k = Math.min(1 - r, 1 - g, 1 - b);
|
|
620
|
-
const c = (1 - r - k) / (1 - k) || 0;
|
|
621
|
-
const m = (1 - g - k) / (1 - k) || 0;
|
|
622
|
-
const y = (1 - b - k) / (1 - k) || 0;
|
|
623
|
-
return [ c * 100, m * 100, y * 100, k * 100 ];
|
|
624
|
-
};
|
|
625
|
-
function comparativeDistance(x, y) {
|
|
626
|
-
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
627
|
-
}
|
|
628
|
-
convert.rgb.keyword = function(rgb) {
|
|
629
|
-
const reversed = reverseKeywords[rgb];
|
|
630
|
-
if (reversed) {
|
|
631
|
-
return reversed;
|
|
632
|
-
}
|
|
633
|
-
let currentClosestDistance = Infinity;
|
|
634
|
-
let currentClosestKeyword;
|
|
635
|
-
for (const keyword of Object.keys(cssKeywords)) {
|
|
636
|
-
const value = cssKeywords[keyword];
|
|
637
|
-
const distance = comparativeDistance(rgb, value);
|
|
638
|
-
if (distance < currentClosestDistance) {
|
|
639
|
-
currentClosestDistance = distance;
|
|
640
|
-
currentClosestKeyword = keyword;
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
return currentClosestKeyword;
|
|
644
|
-
};
|
|
645
|
-
convert.keyword.rgb = function(keyword) {
|
|
646
|
-
return cssKeywords[keyword];
|
|
647
|
-
};
|
|
648
|
-
convert.rgb.xyz = function(rgb) {
|
|
649
|
-
let r = rgb[0] / 255;
|
|
650
|
-
let g = rgb[1] / 255;
|
|
651
|
-
let b = rgb[2] / 255;
|
|
652
|
-
r = r > .04045 ? ((r + .055) / 1.055) ** 2.4 : r / 12.92;
|
|
653
|
-
g = g > .04045 ? ((g + .055) / 1.055) ** 2.4 : g / 12.92;
|
|
654
|
-
b = b > .04045 ? ((b + .055) / 1.055) ** 2.4 : b / 12.92;
|
|
655
|
-
const x = r * .4124 + g * .3576 + b * .1805;
|
|
656
|
-
const y = r * .2126 + g * .7152 + b * .0722;
|
|
657
|
-
const z = r * .0193 + g * .1192 + b * .9505;
|
|
658
|
-
return [ x * 100, y * 100, z * 100 ];
|
|
659
|
-
};
|
|
660
|
-
convert.rgb.lab = function(rgb) {
|
|
661
|
-
const xyz = convert.rgb.xyz(rgb);
|
|
662
|
-
let x = xyz[0];
|
|
663
|
-
let y = xyz[1];
|
|
664
|
-
let z = xyz[2];
|
|
665
|
-
x /= 95.047;
|
|
666
|
-
y /= 100;
|
|
667
|
-
z /= 108.883;
|
|
668
|
-
x = x > .008856 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
669
|
-
y = y > .008856 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
670
|
-
z = z > .008856 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
671
|
-
const l = 116 * y - 16;
|
|
672
|
-
const a = 500 * (x - y);
|
|
673
|
-
const b = 200 * (y - z);
|
|
674
|
-
return [ l, a, b ];
|
|
675
|
-
};
|
|
676
|
-
convert.hsl.rgb = function(hsl) {
|
|
677
|
-
const h = hsl[0] / 360;
|
|
678
|
-
const s = hsl[1] / 100;
|
|
679
|
-
const l = hsl[2] / 100;
|
|
680
|
-
let t2;
|
|
681
|
-
let t3;
|
|
682
|
-
let val;
|
|
683
|
-
if (s === 0) {
|
|
684
|
-
val = l * 255;
|
|
685
|
-
return [ val, val, val ];
|
|
686
|
-
}
|
|
687
|
-
if (l < .5) {
|
|
688
|
-
t2 = l * (1 + s);
|
|
689
|
-
} else {
|
|
690
|
-
t2 = l + s - l * s;
|
|
691
|
-
}
|
|
692
|
-
const t1 = 2 * l - t2;
|
|
693
|
-
const rgb = [ 0, 0, 0 ];
|
|
694
|
-
for (let i = 0; i < 3; i++) {
|
|
695
|
-
t3 = h + 1 / 3 * -(i - 1);
|
|
696
|
-
if (t3 < 0) {
|
|
697
|
-
t3++;
|
|
698
|
-
}
|
|
699
|
-
if (t3 > 1) {
|
|
700
|
-
t3--;
|
|
701
|
-
}
|
|
702
|
-
if (6 * t3 < 1) {
|
|
703
|
-
val = t1 + (t2 - t1) * 6 * t3;
|
|
704
|
-
} else if (2 * t3 < 1) {
|
|
705
|
-
val = t2;
|
|
706
|
-
} else if (3 * t3 < 2) {
|
|
707
|
-
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
|
708
|
-
} else {
|
|
709
|
-
val = t1;
|
|
710
|
-
}
|
|
711
|
-
rgb[i] = val * 255;
|
|
712
|
-
}
|
|
713
|
-
return rgb;
|
|
714
|
-
};
|
|
715
|
-
convert.hsl.hsv = function(hsl) {
|
|
716
|
-
const h = hsl[0];
|
|
717
|
-
let s = hsl[1] / 100;
|
|
718
|
-
let l = hsl[2] / 100;
|
|
719
|
-
let smin = s;
|
|
720
|
-
const lmin = Math.max(l, .01);
|
|
721
|
-
l *= 2;
|
|
722
|
-
s *= l <= 1 ? l : 2 - l;
|
|
723
|
-
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
|
724
|
-
const v = (l + s) / 2;
|
|
725
|
-
const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
|
|
726
|
-
return [ h, sv * 100, v * 100 ];
|
|
727
|
-
};
|
|
728
|
-
convert.hsv.rgb = function(hsv) {
|
|
729
|
-
const h = hsv[0] / 60;
|
|
730
|
-
const s = hsv[1] / 100;
|
|
731
|
-
let v = hsv[2] / 100;
|
|
732
|
-
const hi = Math.floor(h) % 6;
|
|
733
|
-
const f = h - Math.floor(h);
|
|
734
|
-
const p = 255 * v * (1 - s);
|
|
735
|
-
const q = 255 * v * (1 - s * f);
|
|
736
|
-
const t = 255 * v * (1 - s * (1 - f));
|
|
737
|
-
v *= 255;
|
|
738
|
-
switch (hi) {
|
|
739
|
-
case 0:
|
|
740
|
-
return [ v, t, p ];
|
|
741
|
-
|
|
742
|
-
case 1:
|
|
743
|
-
return [ q, v, p ];
|
|
744
|
-
|
|
745
|
-
case 2:
|
|
746
|
-
return [ p, v, t ];
|
|
747
|
-
|
|
748
|
-
case 3:
|
|
749
|
-
return [ p, q, v ];
|
|
750
|
-
|
|
751
|
-
case 4:
|
|
752
|
-
return [ t, p, v ];
|
|
753
|
-
|
|
754
|
-
case 5:
|
|
755
|
-
return [ v, p, q ];
|
|
756
|
-
}
|
|
757
|
-
};
|
|
758
|
-
convert.hsv.hsl = function(hsv) {
|
|
759
|
-
const h = hsv[0];
|
|
760
|
-
const s = hsv[1] / 100;
|
|
761
|
-
const v = hsv[2] / 100;
|
|
762
|
-
const vmin = Math.max(v, .01);
|
|
763
|
-
let sl;
|
|
764
|
-
let l;
|
|
765
|
-
l = (2 - s) * v;
|
|
766
|
-
const lmin = (2 - s) * vmin;
|
|
767
|
-
sl = s * vmin;
|
|
768
|
-
sl /= lmin <= 1 ? lmin : 2 - lmin;
|
|
769
|
-
sl = sl || 0;
|
|
770
|
-
l /= 2;
|
|
771
|
-
return [ h, sl * 100, l * 100 ];
|
|
772
|
-
};
|
|
773
|
-
convert.hwb.rgb = function(hwb) {
|
|
774
|
-
const h = hwb[0] / 360;
|
|
775
|
-
let wh = hwb[1] / 100;
|
|
776
|
-
let bl = hwb[2] / 100;
|
|
777
|
-
const ratio = wh + bl;
|
|
778
|
-
let f;
|
|
779
|
-
if (ratio > 1) {
|
|
780
|
-
wh /= ratio;
|
|
781
|
-
bl /= ratio;
|
|
782
|
-
}
|
|
783
|
-
const i = Math.floor(6 * h);
|
|
784
|
-
const v = 1 - bl;
|
|
785
|
-
f = 6 * h - i;
|
|
786
|
-
if ((i & 1) !== 0) {
|
|
787
|
-
f = 1 - f;
|
|
788
|
-
}
|
|
789
|
-
const n = wh + f * (v - wh);
|
|
790
|
-
let r;
|
|
791
|
-
let g;
|
|
792
|
-
let b;
|
|
793
|
-
switch (i) {
|
|
794
|
-
default:
|
|
795
|
-
case 6:
|
|
796
|
-
case 0:
|
|
797
|
-
r = v;
|
|
798
|
-
g = n;
|
|
799
|
-
b = wh;
|
|
800
|
-
break;
|
|
801
|
-
|
|
802
|
-
case 1:
|
|
803
|
-
r = n;
|
|
804
|
-
g = v;
|
|
805
|
-
b = wh;
|
|
806
|
-
break;
|
|
807
|
-
|
|
808
|
-
case 2:
|
|
809
|
-
r = wh;
|
|
810
|
-
g = v;
|
|
811
|
-
b = n;
|
|
812
|
-
break;
|
|
813
|
-
|
|
814
|
-
case 3:
|
|
815
|
-
r = wh;
|
|
816
|
-
g = n;
|
|
817
|
-
b = v;
|
|
818
|
-
break;
|
|
819
|
-
|
|
820
|
-
case 4:
|
|
821
|
-
r = n;
|
|
822
|
-
g = wh;
|
|
823
|
-
b = v;
|
|
824
|
-
break;
|
|
825
|
-
|
|
826
|
-
case 5:
|
|
827
|
-
r = v;
|
|
828
|
-
g = wh;
|
|
829
|
-
b = n;
|
|
830
|
-
break;
|
|
831
|
-
}
|
|
832
|
-
return [ r * 255, g * 255, b * 255 ];
|
|
833
|
-
};
|
|
834
|
-
convert.cmyk.rgb = function(cmyk) {
|
|
835
|
-
const c = cmyk[0] / 100;
|
|
836
|
-
const m = cmyk[1] / 100;
|
|
837
|
-
const y = cmyk[2] / 100;
|
|
838
|
-
const k = cmyk[3] / 100;
|
|
839
|
-
const r = 1 - Math.min(1, c * (1 - k) + k);
|
|
840
|
-
const g = 1 - Math.min(1, m * (1 - k) + k);
|
|
841
|
-
const b = 1 - Math.min(1, y * (1 - k) + k);
|
|
842
|
-
return [ r * 255, g * 255, b * 255 ];
|
|
843
|
-
};
|
|
844
|
-
convert.xyz.rgb = function(xyz) {
|
|
845
|
-
const x = xyz[0] / 100;
|
|
846
|
-
const y = xyz[1] / 100;
|
|
847
|
-
const z = xyz[2] / 100;
|
|
848
|
-
let r;
|
|
849
|
-
let g;
|
|
850
|
-
let b;
|
|
851
|
-
r = x * 3.2406 + y * -1.5372 + z * -.4986;
|
|
852
|
-
g = x * -.9689 + y * 1.8758 + z * .0415;
|
|
853
|
-
b = x * .0557 + y * -.204 + z * 1.057;
|
|
854
|
-
r = r > .0031308 ? 1.055 * r ** (1 / 2.4) - .055 : r * 12.92;
|
|
855
|
-
g = g > .0031308 ? 1.055 * g ** (1 / 2.4) - .055 : g * 12.92;
|
|
856
|
-
b = b > .0031308 ? 1.055 * b ** (1 / 2.4) - .055 : b * 12.92;
|
|
857
|
-
r = Math.min(Math.max(0, r), 1);
|
|
858
|
-
g = Math.min(Math.max(0, g), 1);
|
|
859
|
-
b = Math.min(Math.max(0, b), 1);
|
|
860
|
-
return [ r * 255, g * 255, b * 255 ];
|
|
861
|
-
};
|
|
862
|
-
convert.xyz.lab = function(xyz) {
|
|
863
|
-
let x = xyz[0];
|
|
864
|
-
let y = xyz[1];
|
|
865
|
-
let z = xyz[2];
|
|
866
|
-
x /= 95.047;
|
|
867
|
-
y /= 100;
|
|
868
|
-
z /= 108.883;
|
|
869
|
-
x = x > .008856 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
870
|
-
y = y > .008856 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
871
|
-
z = z > .008856 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
872
|
-
const l = 116 * y - 16;
|
|
873
|
-
const a = 500 * (x - y);
|
|
874
|
-
const b = 200 * (y - z);
|
|
875
|
-
return [ l, a, b ];
|
|
876
|
-
};
|
|
877
|
-
convert.lab.xyz = function(lab) {
|
|
878
|
-
const l = lab[0];
|
|
879
|
-
const a = lab[1];
|
|
880
|
-
const b = lab[2];
|
|
881
|
-
let x;
|
|
882
|
-
let y;
|
|
883
|
-
let z;
|
|
884
|
-
y = (l + 16) / 116;
|
|
885
|
-
x = a / 500 + y;
|
|
886
|
-
z = y - b / 200;
|
|
887
|
-
const y2 = y ** 3;
|
|
888
|
-
const x2 = x ** 3;
|
|
889
|
-
const z2 = z ** 3;
|
|
890
|
-
y = y2 > .008856 ? y2 : (y - 16 / 116) / 7.787;
|
|
891
|
-
x = x2 > .008856 ? x2 : (x - 16 / 116) / 7.787;
|
|
892
|
-
z = z2 > .008856 ? z2 : (z - 16 / 116) / 7.787;
|
|
893
|
-
x *= 95.047;
|
|
894
|
-
y *= 100;
|
|
895
|
-
z *= 108.883;
|
|
896
|
-
return [ x, y, z ];
|
|
897
|
-
};
|
|
898
|
-
convert.lab.lch = function(lab) {
|
|
899
|
-
const l = lab[0];
|
|
900
|
-
const a = lab[1];
|
|
901
|
-
const b = lab[2];
|
|
902
|
-
let h;
|
|
903
|
-
const hr = Math.atan2(b, a);
|
|
904
|
-
h = hr * 360 / 2 / Math.PI;
|
|
905
|
-
if (h < 0) {
|
|
906
|
-
h += 360;
|
|
907
|
-
}
|
|
908
|
-
const c = Math.sqrt(a * a + b * b);
|
|
909
|
-
return [ l, c, h ];
|
|
910
|
-
};
|
|
911
|
-
convert.lch.lab = function(lch) {
|
|
912
|
-
const l = lch[0];
|
|
913
|
-
const c = lch[1];
|
|
914
|
-
const h = lch[2];
|
|
915
|
-
const hr = h / 360 * 2 * Math.PI;
|
|
916
|
-
const a = c * Math.cos(hr);
|
|
917
|
-
const b = c * Math.sin(hr);
|
|
918
|
-
return [ l, a, b ];
|
|
919
|
-
};
|
|
920
|
-
convert.rgb.ansi16 = function(args, saturation = null) {
|
|
921
|
-
const [r, g, b] = args;
|
|
922
|
-
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
|
|
923
|
-
value = Math.round(value / 50);
|
|
924
|
-
if (value === 0) {
|
|
925
|
-
return 30;
|
|
926
|
-
}
|
|
927
|
-
let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
|
|
928
|
-
if (value === 2) {
|
|
929
|
-
ansi += 60;
|
|
930
|
-
}
|
|
931
|
-
return ansi;
|
|
932
|
-
};
|
|
933
|
-
convert.hsv.ansi16 = function(args) {
|
|
934
|
-
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
|
935
|
-
};
|
|
936
|
-
convert.rgb.ansi256 = function(args) {
|
|
937
|
-
const r = args[0];
|
|
938
|
-
const g = args[1];
|
|
939
|
-
const b = args[2];
|
|
940
|
-
if (r === g && g === b) {
|
|
941
|
-
if (r < 8) {
|
|
942
|
-
return 16;
|
|
943
|
-
}
|
|
944
|
-
if (r > 248) {
|
|
945
|
-
return 231;
|
|
946
|
-
}
|
|
947
|
-
return Math.round((r - 8) / 247 * 24) + 232;
|
|
948
|
-
}
|
|
949
|
-
const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
|
|
950
|
-
return ansi;
|
|
951
|
-
};
|
|
952
|
-
convert.ansi16.rgb = function(args) {
|
|
953
|
-
let color = args % 10;
|
|
954
|
-
if (color === 0 || color === 7) {
|
|
955
|
-
if (args > 50) {
|
|
956
|
-
color += 3.5;
|
|
957
|
-
}
|
|
958
|
-
color = color / 10.5 * 255;
|
|
959
|
-
return [ color, color, color ];
|
|
960
|
-
}
|
|
961
|
-
const mult = (~~(args > 50) + 1) * .5;
|
|
962
|
-
const r = (color & 1) * mult * 255;
|
|
963
|
-
const g = (color >> 1 & 1) * mult * 255;
|
|
964
|
-
const b = (color >> 2 & 1) * mult * 255;
|
|
965
|
-
return [ r, g, b ];
|
|
966
|
-
};
|
|
967
|
-
convert.ansi256.rgb = function(args) {
|
|
968
|
-
if (args >= 232) {
|
|
969
|
-
const c = (args - 232) * 10 + 8;
|
|
970
|
-
return [ c, c, c ];
|
|
971
|
-
}
|
|
972
|
-
args -= 16;
|
|
973
|
-
let rem;
|
|
974
|
-
const r = Math.floor(args / 36) / 5 * 255;
|
|
975
|
-
const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
|
976
|
-
const b = rem % 6 / 5 * 255;
|
|
977
|
-
return [ r, g, b ];
|
|
978
|
-
};
|
|
979
|
-
convert.rgb.hex = function(args) {
|
|
980
|
-
const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
|
|
981
|
-
const string = integer.toString(16).toUpperCase();
|
|
982
|
-
return "000000".substring(string.length) + string;
|
|
983
|
-
};
|
|
984
|
-
convert.hex.rgb = function(args) {
|
|
985
|
-
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
986
|
-
if (!match) {
|
|
987
|
-
return [ 0, 0, 0 ];
|
|
988
|
-
}
|
|
989
|
-
let colorString = match[0];
|
|
990
|
-
if (match[0].length === 3) {
|
|
991
|
-
colorString = colorString.split("").map(char => char + char).join("");
|
|
992
|
-
}
|
|
993
|
-
const integer = parseInt(colorString, 16);
|
|
994
|
-
const r = integer >> 16 & 255;
|
|
995
|
-
const g = integer >> 8 & 255;
|
|
996
|
-
const b = integer & 255;
|
|
997
|
-
return [ r, g, b ];
|
|
998
|
-
};
|
|
999
|
-
convert.rgb.hcg = function(rgb) {
|
|
1000
|
-
const r = rgb[0] / 255;
|
|
1001
|
-
const g = rgb[1] / 255;
|
|
1002
|
-
const b = rgb[2] / 255;
|
|
1003
|
-
const max = Math.max(Math.max(r, g), b);
|
|
1004
|
-
const min = Math.min(Math.min(r, g), b);
|
|
1005
|
-
const chroma = max - min;
|
|
1006
|
-
let grayscale;
|
|
1007
|
-
let hue;
|
|
1008
|
-
if (chroma < 1) {
|
|
1009
|
-
grayscale = min / (1 - chroma);
|
|
1010
|
-
} else {
|
|
1011
|
-
grayscale = 0;
|
|
1012
|
-
}
|
|
1013
|
-
if (chroma <= 0) {
|
|
1014
|
-
hue = 0;
|
|
1015
|
-
} else if (max === r) {
|
|
1016
|
-
hue = (g - b) / chroma % 6;
|
|
1017
|
-
} else if (max === g) {
|
|
1018
|
-
hue = 2 + (b - r) / chroma;
|
|
1019
|
-
} else {
|
|
1020
|
-
hue = 4 + (r - g) / chroma;
|
|
1021
|
-
}
|
|
1022
|
-
hue /= 6;
|
|
1023
|
-
hue %= 1;
|
|
1024
|
-
return [ hue * 360, chroma * 100, grayscale * 100 ];
|
|
1025
|
-
};
|
|
1026
|
-
convert.hsl.hcg = function(hsl) {
|
|
1027
|
-
const s = hsl[1] / 100;
|
|
1028
|
-
const l = hsl[2] / 100;
|
|
1029
|
-
const c = l < .5 ? 2 * s * l : 2 * s * (1 - l);
|
|
1030
|
-
let f = 0;
|
|
1031
|
-
if (c < 1) {
|
|
1032
|
-
f = (l - .5 * c) / (1 - c);
|
|
1033
|
-
}
|
|
1034
|
-
return [ hsl[0], c * 100, f * 100 ];
|
|
1035
|
-
};
|
|
1036
|
-
convert.hsv.hcg = function(hsv) {
|
|
1037
|
-
const s = hsv[1] / 100;
|
|
1038
|
-
const v = hsv[2] / 100;
|
|
1039
|
-
const c = s * v;
|
|
1040
|
-
let f = 0;
|
|
1041
|
-
if (c < 1) {
|
|
1042
|
-
f = (v - c) / (1 - c);
|
|
1043
|
-
}
|
|
1044
|
-
return [ hsv[0], c * 100, f * 100 ];
|
|
1045
|
-
};
|
|
1046
|
-
convert.hcg.rgb = function(hcg) {
|
|
1047
|
-
const h = hcg[0] / 360;
|
|
1048
|
-
const c = hcg[1] / 100;
|
|
1049
|
-
const g = hcg[2] / 100;
|
|
1050
|
-
if (c === 0) {
|
|
1051
|
-
return [ g * 255, g * 255, g * 255 ];
|
|
1052
|
-
}
|
|
1053
|
-
const pure = [ 0, 0, 0 ];
|
|
1054
|
-
const hi = h % 1 * 6;
|
|
1055
|
-
const v = hi % 1;
|
|
1056
|
-
const w = 1 - v;
|
|
1057
|
-
let mg = 0;
|
|
1058
|
-
switch (Math.floor(hi)) {
|
|
1059
|
-
case 0:
|
|
1060
|
-
pure[0] = 1;
|
|
1061
|
-
pure[1] = v;
|
|
1062
|
-
pure[2] = 0;
|
|
1063
|
-
break;
|
|
1064
|
-
|
|
1065
|
-
case 1:
|
|
1066
|
-
pure[0] = w;
|
|
1067
|
-
pure[1] = 1;
|
|
1068
|
-
pure[2] = 0;
|
|
1069
|
-
break;
|
|
1070
|
-
|
|
1071
|
-
case 2:
|
|
1072
|
-
pure[0] = 0;
|
|
1073
|
-
pure[1] = 1;
|
|
1074
|
-
pure[2] = v;
|
|
1075
|
-
break;
|
|
1076
|
-
|
|
1077
|
-
case 3:
|
|
1078
|
-
pure[0] = 0;
|
|
1079
|
-
pure[1] = w;
|
|
1080
|
-
pure[2] = 1;
|
|
1081
|
-
break;
|
|
1082
|
-
|
|
1083
|
-
case 4:
|
|
1084
|
-
pure[0] = v;
|
|
1085
|
-
pure[1] = 0;
|
|
1086
|
-
pure[2] = 1;
|
|
1087
|
-
break;
|
|
1088
|
-
|
|
1089
|
-
default:
|
|
1090
|
-
pure[0] = 1;
|
|
1091
|
-
pure[1] = 0;
|
|
1092
|
-
pure[2] = w;
|
|
1093
|
-
}
|
|
1094
|
-
mg = (1 - c) * g;
|
|
1095
|
-
return [ (c * pure[0] + mg) * 255, (c * pure[1] + mg) * 255, (c * pure[2] + mg) * 255 ];
|
|
1096
|
-
};
|
|
1097
|
-
convert.hcg.hsv = function(hcg) {
|
|
1098
|
-
const c = hcg[1] / 100;
|
|
1099
|
-
const g = hcg[2] / 100;
|
|
1100
|
-
const v = c + g * (1 - c);
|
|
1101
|
-
let f = 0;
|
|
1102
|
-
if (v > 0) {
|
|
1103
|
-
f = c / v;
|
|
1104
|
-
}
|
|
1105
|
-
return [ hcg[0], f * 100, v * 100 ];
|
|
1106
|
-
};
|
|
1107
|
-
convert.hcg.hsl = function(hcg) {
|
|
1108
|
-
const c = hcg[1] / 100;
|
|
1109
|
-
const g = hcg[2] / 100;
|
|
1110
|
-
const l = g * (1 - c) + .5 * c;
|
|
1111
|
-
let s = 0;
|
|
1112
|
-
if (l > 0 && l < .5) {
|
|
1113
|
-
s = c / (2 * l);
|
|
1114
|
-
} else if (l >= .5 && l < 1) {
|
|
1115
|
-
s = c / (2 * (1 - l));
|
|
1116
|
-
}
|
|
1117
|
-
return [ hcg[0], s * 100, l * 100 ];
|
|
1118
|
-
};
|
|
1119
|
-
convert.hcg.hwb = function(hcg) {
|
|
1120
|
-
const c = hcg[1] / 100;
|
|
1121
|
-
const g = hcg[2] / 100;
|
|
1122
|
-
const v = c + g * (1 - c);
|
|
1123
|
-
return [ hcg[0], (v - c) * 100, (1 - v) * 100 ];
|
|
1124
|
-
};
|
|
1125
|
-
convert.hwb.hcg = function(hwb) {
|
|
1126
|
-
const w = hwb[1] / 100;
|
|
1127
|
-
const b = hwb[2] / 100;
|
|
1128
|
-
const v = 1 - b;
|
|
1129
|
-
const c = v - w;
|
|
1130
|
-
let g = 0;
|
|
1131
|
-
if (c < 1) {
|
|
1132
|
-
g = (v - c) / (1 - c);
|
|
1133
|
-
}
|
|
1134
|
-
return [ hwb[0], c * 100, g * 100 ];
|
|
1135
|
-
};
|
|
1136
|
-
convert.apple.rgb = function(apple) {
|
|
1137
|
-
return [ apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255 ];
|
|
1138
|
-
};
|
|
1139
|
-
convert.rgb.apple = function(rgb) {
|
|
1140
|
-
return [ rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535 ];
|
|
1141
|
-
};
|
|
1142
|
-
convert.gray.rgb = function(args) {
|
|
1143
|
-
return [ args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255 ];
|
|
1144
|
-
};
|
|
1145
|
-
convert.gray.hsl = function(args) {
|
|
1146
|
-
return [ 0, 0, args[0] ];
|
|
1147
|
-
};
|
|
1148
|
-
convert.gray.hsv = convert.gray.hsl;
|
|
1149
|
-
convert.gray.hwb = function(gray) {
|
|
1150
|
-
return [ 0, 100, gray[0] ];
|
|
1151
|
-
};
|
|
1152
|
-
convert.gray.cmyk = function(gray) {
|
|
1153
|
-
return [ 0, 0, 0, gray[0] ];
|
|
1154
|
-
};
|
|
1155
|
-
convert.gray.lab = function(gray) {
|
|
1156
|
-
return [ gray[0], 0, 0 ];
|
|
1157
|
-
};
|
|
1158
|
-
convert.gray.hex = function(gray) {
|
|
1159
|
-
const val = Math.round(gray[0] / 100 * 255) & 255;
|
|
1160
|
-
const integer = (val << 16) + (val << 8) + val;
|
|
1161
|
-
const string = integer.toString(16).toUpperCase();
|
|
1162
|
-
return "000000".substring(string.length) + string;
|
|
1163
|
-
};
|
|
1164
|
-
convert.rgb.gray = function(rgb) {
|
|
1165
|
-
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
|
1166
|
-
return [ val / 255 * 100 ];
|
|
1167
|
-
};
|
|
1168
|
-
},
|
|
1169
|
-
2018: module => {
|
|
1170
|
-
"use strict";
|
|
1171
|
-
module.exports = require("tty");
|
|
1172
|
-
},
|
|
1173
|
-
2172: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1174
|
-
const conversions = __webpack_require__(1873);
|
|
1175
|
-
const route = __webpack_require__(3701);
|
|
1176
|
-
const convert = {};
|
|
1177
|
-
const models = Object.keys(conversions);
|
|
1178
|
-
function wrapRaw(fn) {
|
|
1179
|
-
const wrappedFn = function(...args) {
|
|
1180
|
-
const arg0 = args[0];
|
|
1181
|
-
if (arg0 === undefined || arg0 === null) {
|
|
1182
|
-
return arg0;
|
|
1183
|
-
}
|
|
1184
|
-
if (arg0.length > 1) {
|
|
1185
|
-
args = arg0;
|
|
1186
|
-
}
|
|
1187
|
-
return fn(args);
|
|
1188
|
-
};
|
|
1189
|
-
if ("conversion" in fn) {
|
|
1190
|
-
wrappedFn.conversion = fn.conversion;
|
|
1191
|
-
}
|
|
1192
|
-
return wrappedFn;
|
|
1193
|
-
}
|
|
1194
|
-
function wrapRounded(fn) {
|
|
1195
|
-
const wrappedFn = function(...args) {
|
|
1196
|
-
const arg0 = args[0];
|
|
1197
|
-
if (arg0 === undefined || arg0 === null) {
|
|
1198
|
-
return arg0;
|
|
1199
|
-
}
|
|
1200
|
-
if (arg0.length > 1) {
|
|
1201
|
-
args = arg0;
|
|
1202
|
-
}
|
|
1203
|
-
const result = fn(args);
|
|
1204
|
-
if (typeof result === "object") {
|
|
1205
|
-
for (let len = result.length, i = 0; i < len; i++) {
|
|
1206
|
-
result[i] = Math.round(result[i]);
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
return result;
|
|
1210
|
-
};
|
|
1211
|
-
if ("conversion" in fn) {
|
|
1212
|
-
wrappedFn.conversion = fn.conversion;
|
|
1213
|
-
}
|
|
1214
|
-
return wrappedFn;
|
|
1215
|
-
}
|
|
1216
|
-
models.forEach(fromModel => {
|
|
1217
|
-
convert[fromModel] = {};
|
|
1218
|
-
Object.defineProperty(convert[fromModel], "channels", {
|
|
1219
|
-
value: conversions[fromModel].channels
|
|
1220
|
-
});
|
|
1221
|
-
Object.defineProperty(convert[fromModel], "labels", {
|
|
1222
|
-
value: conversions[fromModel].labels
|
|
1223
|
-
});
|
|
1224
|
-
const routes = route(fromModel);
|
|
1225
|
-
const routeModels = Object.keys(routes);
|
|
1226
|
-
routeModels.forEach(toModel => {
|
|
1227
|
-
const fn = routes[toModel];
|
|
1228
|
-
convert[fromModel][toModel] = wrapRounded(fn);
|
|
1229
|
-
convert[fromModel][toModel].raw = wrapRaw(fn);
|
|
1230
|
-
});
|
|
1231
|
-
});
|
|
1232
|
-
module.exports = convert;
|
|
1233
|
-
},
|
|
1234
|
-
2393: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1235
|
-
"use strict";
|
|
1236
|
-
const compareBuild = __webpack_require__(8471);
|
|
1237
|
-
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
1238
|
-
module.exports = sort;
|
|
1239
|
-
},
|
|
1240
|
-
2641: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1241
|
-
"use strict";
|
|
1242
|
-
const SemVer = __webpack_require__(8038);
|
|
1243
|
-
const Comparator = __webpack_require__(3114);
|
|
1244
|
-
const {ANY} = Comparator;
|
|
1245
|
-
const Range = __webpack_require__(3597);
|
|
1246
|
-
const satisfies = __webpack_require__(6336);
|
|
1247
|
-
const gt = __webpack_require__(6670);
|
|
1248
|
-
const lt = __webpack_require__(5169);
|
|
1249
|
-
const lte = __webpack_require__(9746);
|
|
1250
|
-
const gte = __webpack_require__(6999);
|
|
1251
|
-
const outside = (version, range, hilo, options) => {
|
|
1252
|
-
version = new SemVer(version, options);
|
|
1253
|
-
range = new Range(range, options);
|
|
1254
|
-
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
1255
|
-
switch (hilo) {
|
|
1256
|
-
case ">":
|
|
1257
|
-
gtfn = gt;
|
|
1258
|
-
ltefn = lte;
|
|
1259
|
-
ltfn = lt;
|
|
1260
|
-
comp = ">";
|
|
1261
|
-
ecomp = ">=";
|
|
1262
|
-
break;
|
|
1263
|
-
|
|
1264
|
-
case "<":
|
|
1265
|
-
gtfn = lt;
|
|
1266
|
-
ltefn = gte;
|
|
1267
|
-
ltfn = gt;
|
|
1268
|
-
comp = "<";
|
|
1269
|
-
ecomp = "<=";
|
|
1270
|
-
break;
|
|
1271
|
-
|
|
1272
|
-
default:
|
|
1273
|
-
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
1274
|
-
}
|
|
1275
|
-
if (satisfies(version, range, options)) {
|
|
1276
|
-
return false;
|
|
1277
|
-
}
|
|
1278
|
-
for (let i = 0; i < range.set.length; ++i) {
|
|
1279
|
-
const comparators = range.set[i];
|
|
1280
|
-
let high = null;
|
|
1281
|
-
let low = null;
|
|
1282
|
-
comparators.forEach(comparator => {
|
|
1283
|
-
if (comparator.semver === ANY) {
|
|
1284
|
-
comparator = new Comparator(">=0.0.0");
|
|
1285
|
-
}
|
|
1286
|
-
high = high || comparator;
|
|
1287
|
-
low = low || comparator;
|
|
1288
|
-
if (gtfn(comparator.semver, high.semver, options)) {
|
|
1289
|
-
high = comparator;
|
|
1290
|
-
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
1291
|
-
low = comparator;
|
|
1292
|
-
}
|
|
1293
|
-
});
|
|
1294
|
-
if (high.operator === comp || high.operator === ecomp) {
|
|
1295
|
-
return false;
|
|
1296
|
-
}
|
|
1297
|
-
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
|
|
1298
|
-
return false;
|
|
1299
|
-
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
|
1300
|
-
return false;
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
return true;
|
|
1304
|
-
};
|
|
1305
|
-
module.exports = outside;
|
|
1306
|
-
},
|
|
1307
|
-
2694: module => {
|
|
1308
|
-
"use strict";
|
|
1309
|
-
module.exports = {
|
|
1310
|
-
aliceblue: [ 240, 248, 255 ],
|
|
1311
|
-
antiquewhite: [ 250, 235, 215 ],
|
|
1312
|
-
aqua: [ 0, 255, 255 ],
|
|
1313
|
-
aquamarine: [ 127, 255, 212 ],
|
|
1314
|
-
azure: [ 240, 255, 255 ],
|
|
1315
|
-
beige: [ 245, 245, 220 ],
|
|
1316
|
-
bisque: [ 255, 228, 196 ],
|
|
1317
|
-
black: [ 0, 0, 0 ],
|
|
1318
|
-
blanchedalmond: [ 255, 235, 205 ],
|
|
1319
|
-
blue: [ 0, 0, 255 ],
|
|
1320
|
-
blueviolet: [ 138, 43, 226 ],
|
|
1321
|
-
brown: [ 165, 42, 42 ],
|
|
1322
|
-
burlywood: [ 222, 184, 135 ],
|
|
1323
|
-
cadetblue: [ 95, 158, 160 ],
|
|
1324
|
-
chartreuse: [ 127, 255, 0 ],
|
|
1325
|
-
chocolate: [ 210, 105, 30 ],
|
|
1326
|
-
coral: [ 255, 127, 80 ],
|
|
1327
|
-
cornflowerblue: [ 100, 149, 237 ],
|
|
1328
|
-
cornsilk: [ 255, 248, 220 ],
|
|
1329
|
-
crimson: [ 220, 20, 60 ],
|
|
1330
|
-
cyan: [ 0, 255, 255 ],
|
|
1331
|
-
darkblue: [ 0, 0, 139 ],
|
|
1332
|
-
darkcyan: [ 0, 139, 139 ],
|
|
1333
|
-
darkgoldenrod: [ 184, 134, 11 ],
|
|
1334
|
-
darkgray: [ 169, 169, 169 ],
|
|
1335
|
-
darkgreen: [ 0, 100, 0 ],
|
|
1336
|
-
darkgrey: [ 169, 169, 169 ],
|
|
1337
|
-
darkkhaki: [ 189, 183, 107 ],
|
|
1338
|
-
darkmagenta: [ 139, 0, 139 ],
|
|
1339
|
-
darkolivegreen: [ 85, 107, 47 ],
|
|
1340
|
-
darkorange: [ 255, 140, 0 ],
|
|
1341
|
-
darkorchid: [ 153, 50, 204 ],
|
|
1342
|
-
darkred: [ 139, 0, 0 ],
|
|
1343
|
-
darksalmon: [ 233, 150, 122 ],
|
|
1344
|
-
darkseagreen: [ 143, 188, 143 ],
|
|
1345
|
-
darkslateblue: [ 72, 61, 139 ],
|
|
1346
|
-
darkslategray: [ 47, 79, 79 ],
|
|
1347
|
-
darkslategrey: [ 47, 79, 79 ],
|
|
1348
|
-
darkturquoise: [ 0, 206, 209 ],
|
|
1349
|
-
darkviolet: [ 148, 0, 211 ],
|
|
1350
|
-
deeppink: [ 255, 20, 147 ],
|
|
1351
|
-
deepskyblue: [ 0, 191, 255 ],
|
|
1352
|
-
dimgray: [ 105, 105, 105 ],
|
|
1353
|
-
dimgrey: [ 105, 105, 105 ],
|
|
1354
|
-
dodgerblue: [ 30, 144, 255 ],
|
|
1355
|
-
firebrick: [ 178, 34, 34 ],
|
|
1356
|
-
floralwhite: [ 255, 250, 240 ],
|
|
1357
|
-
forestgreen: [ 34, 139, 34 ],
|
|
1358
|
-
fuchsia: [ 255, 0, 255 ],
|
|
1359
|
-
gainsboro: [ 220, 220, 220 ],
|
|
1360
|
-
ghostwhite: [ 248, 248, 255 ],
|
|
1361
|
-
gold: [ 255, 215, 0 ],
|
|
1362
|
-
goldenrod: [ 218, 165, 32 ],
|
|
1363
|
-
gray: [ 128, 128, 128 ],
|
|
1364
|
-
green: [ 0, 128, 0 ],
|
|
1365
|
-
greenyellow: [ 173, 255, 47 ],
|
|
1366
|
-
grey: [ 128, 128, 128 ],
|
|
1367
|
-
honeydew: [ 240, 255, 240 ],
|
|
1368
|
-
hotpink: [ 255, 105, 180 ],
|
|
1369
|
-
indianred: [ 205, 92, 92 ],
|
|
1370
|
-
indigo: [ 75, 0, 130 ],
|
|
1371
|
-
ivory: [ 255, 255, 240 ],
|
|
1372
|
-
khaki: [ 240, 230, 140 ],
|
|
1373
|
-
lavender: [ 230, 230, 250 ],
|
|
1374
|
-
lavenderblush: [ 255, 240, 245 ],
|
|
1375
|
-
lawngreen: [ 124, 252, 0 ],
|
|
1376
|
-
lemonchiffon: [ 255, 250, 205 ],
|
|
1377
|
-
lightblue: [ 173, 216, 230 ],
|
|
1378
|
-
lightcoral: [ 240, 128, 128 ],
|
|
1379
|
-
lightcyan: [ 224, 255, 255 ],
|
|
1380
|
-
lightgoldenrodyellow: [ 250, 250, 210 ],
|
|
1381
|
-
lightgray: [ 211, 211, 211 ],
|
|
1382
|
-
lightgreen: [ 144, 238, 144 ],
|
|
1383
|
-
lightgrey: [ 211, 211, 211 ],
|
|
1384
|
-
lightpink: [ 255, 182, 193 ],
|
|
1385
|
-
lightsalmon: [ 255, 160, 122 ],
|
|
1386
|
-
lightseagreen: [ 32, 178, 170 ],
|
|
1387
|
-
lightskyblue: [ 135, 206, 250 ],
|
|
1388
|
-
lightslategray: [ 119, 136, 153 ],
|
|
1389
|
-
lightslategrey: [ 119, 136, 153 ],
|
|
1390
|
-
lightsteelblue: [ 176, 196, 222 ],
|
|
1391
|
-
lightyellow: [ 255, 255, 224 ],
|
|
1392
|
-
lime: [ 0, 255, 0 ],
|
|
1393
|
-
limegreen: [ 50, 205, 50 ],
|
|
1394
|
-
linen: [ 250, 240, 230 ],
|
|
1395
|
-
magenta: [ 255, 0, 255 ],
|
|
1396
|
-
maroon: [ 128, 0, 0 ],
|
|
1397
|
-
mediumaquamarine: [ 102, 205, 170 ],
|
|
1398
|
-
mediumblue: [ 0, 0, 205 ],
|
|
1399
|
-
mediumorchid: [ 186, 85, 211 ],
|
|
1400
|
-
mediumpurple: [ 147, 112, 219 ],
|
|
1401
|
-
mediumseagreen: [ 60, 179, 113 ],
|
|
1402
|
-
mediumslateblue: [ 123, 104, 238 ],
|
|
1403
|
-
mediumspringgreen: [ 0, 250, 154 ],
|
|
1404
|
-
mediumturquoise: [ 72, 209, 204 ],
|
|
1405
|
-
mediumvioletred: [ 199, 21, 133 ],
|
|
1406
|
-
midnightblue: [ 25, 25, 112 ],
|
|
1407
|
-
mintcream: [ 245, 255, 250 ],
|
|
1408
|
-
mistyrose: [ 255, 228, 225 ],
|
|
1409
|
-
moccasin: [ 255, 228, 181 ],
|
|
1410
|
-
navajowhite: [ 255, 222, 173 ],
|
|
1411
|
-
navy: [ 0, 0, 128 ],
|
|
1412
|
-
oldlace: [ 253, 245, 230 ],
|
|
1413
|
-
olive: [ 128, 128, 0 ],
|
|
1414
|
-
olivedrab: [ 107, 142, 35 ],
|
|
1415
|
-
orange: [ 255, 165, 0 ],
|
|
1416
|
-
orangered: [ 255, 69, 0 ],
|
|
1417
|
-
orchid: [ 218, 112, 214 ],
|
|
1418
|
-
palegoldenrod: [ 238, 232, 170 ],
|
|
1419
|
-
palegreen: [ 152, 251, 152 ],
|
|
1420
|
-
paleturquoise: [ 175, 238, 238 ],
|
|
1421
|
-
palevioletred: [ 219, 112, 147 ],
|
|
1422
|
-
papayawhip: [ 255, 239, 213 ],
|
|
1423
|
-
peachpuff: [ 255, 218, 185 ],
|
|
1424
|
-
peru: [ 205, 133, 63 ],
|
|
1425
|
-
pink: [ 255, 192, 203 ],
|
|
1426
|
-
plum: [ 221, 160, 221 ],
|
|
1427
|
-
powderblue: [ 176, 224, 230 ],
|
|
1428
|
-
purple: [ 128, 0, 128 ],
|
|
1429
|
-
rebeccapurple: [ 102, 51, 153 ],
|
|
1430
|
-
red: [ 255, 0, 0 ],
|
|
1431
|
-
rosybrown: [ 188, 143, 143 ],
|
|
1432
|
-
royalblue: [ 65, 105, 225 ],
|
|
1433
|
-
saddlebrown: [ 139, 69, 19 ],
|
|
1434
|
-
salmon: [ 250, 128, 114 ],
|
|
1435
|
-
sandybrown: [ 244, 164, 96 ],
|
|
1436
|
-
seagreen: [ 46, 139, 87 ],
|
|
1437
|
-
seashell: [ 255, 245, 238 ],
|
|
1438
|
-
sienna: [ 160, 82, 45 ],
|
|
1439
|
-
silver: [ 192, 192, 192 ],
|
|
1440
|
-
skyblue: [ 135, 206, 235 ],
|
|
1441
|
-
slateblue: [ 106, 90, 205 ],
|
|
1442
|
-
slategray: [ 112, 128, 144 ],
|
|
1443
|
-
slategrey: [ 112, 128, 144 ],
|
|
1444
|
-
snow: [ 255, 250, 250 ],
|
|
1445
|
-
springgreen: [ 0, 255, 127 ],
|
|
1446
|
-
steelblue: [ 70, 130, 180 ],
|
|
1447
|
-
tan: [ 210, 180, 140 ],
|
|
1448
|
-
teal: [ 0, 128, 128 ],
|
|
1449
|
-
thistle: [ 216, 191, 216 ],
|
|
1450
|
-
tomato: [ 255, 99, 71 ],
|
|
1451
|
-
turquoise: [ 64, 224, 208 ],
|
|
1452
|
-
violet: [ 238, 130, 238 ],
|
|
1453
|
-
wheat: [ 245, 222, 179 ],
|
|
1454
|
-
white: [ 255, 255, 255 ],
|
|
1455
|
-
whitesmoke: [ 245, 245, 245 ],
|
|
1456
|
-
yellow: [ 255, 255, 0 ],
|
|
1457
|
-
yellowgreen: [ 154, 205, 50 ]
|
|
1458
|
-
};
|
|
1459
|
-
},
|
|
1460
|
-
3114: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1461
|
-
"use strict";
|
|
1462
|
-
const ANY = Symbol("SemVer ANY");
|
|
1463
|
-
class Comparator {
|
|
1464
|
-
static get ANY() {
|
|
1465
|
-
return ANY;
|
|
1466
|
-
}
|
|
1467
|
-
constructor(comp, options) {
|
|
1468
|
-
options = parseOptions(options);
|
|
1469
|
-
if (comp instanceof Comparator) {
|
|
1470
|
-
if (comp.loose === !!options.loose) {
|
|
1471
|
-
return comp;
|
|
1472
|
-
} else {
|
|
1473
|
-
comp = comp.value;
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
comp = comp.trim().split(/\s+/).join(" ");
|
|
1477
|
-
debug("comparator", comp, options);
|
|
1478
|
-
this.options = options;
|
|
1479
|
-
this.loose = !!options.loose;
|
|
1480
|
-
this.parse(comp);
|
|
1481
|
-
if (this.semver === ANY) {
|
|
1482
|
-
this.value = "";
|
|
1483
|
-
} else {
|
|
1484
|
-
this.value = this.operator + this.semver.version;
|
|
1485
|
-
}
|
|
1486
|
-
debug("comp", this);
|
|
1487
|
-
}
|
|
1488
|
-
parse(comp) {
|
|
1489
|
-
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
1490
|
-
const m = comp.match(r);
|
|
1491
|
-
if (!m) {
|
|
1492
|
-
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
1493
|
-
}
|
|
1494
|
-
this.operator = m[1] !== undefined ? m[1] : "";
|
|
1495
|
-
if (this.operator === "=") {
|
|
1496
|
-
this.operator = "";
|
|
1497
|
-
}
|
|
1498
|
-
if (!m[2]) {
|
|
1499
|
-
this.semver = ANY;
|
|
1500
|
-
} else {
|
|
1501
|
-
this.semver = new SemVer(m[2], this.options.loose);
|
|
1502
|
-
}
|
|
1503
|
-
}
|
|
1504
|
-
toString() {
|
|
1505
|
-
return this.value;
|
|
1506
|
-
}
|
|
1507
|
-
test(version) {
|
|
1508
|
-
debug("Comparator.test", version, this.options.loose);
|
|
1509
|
-
if (this.semver === ANY || version === ANY) {
|
|
1510
|
-
return true;
|
|
1511
|
-
}
|
|
1512
|
-
if (typeof version === "string") {
|
|
1513
|
-
try {
|
|
1514
|
-
version = new SemVer(version, this.options);
|
|
1515
|
-
} catch (er) {
|
|
1516
|
-
return false;
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1519
|
-
return cmp(version, this.operator, this.semver, this.options);
|
|
1520
|
-
}
|
|
1521
|
-
intersects(comp, options) {
|
|
1522
|
-
if (!(comp instanceof Comparator)) {
|
|
1523
|
-
throw new TypeError("a Comparator is required");
|
|
1524
|
-
}
|
|
1525
|
-
if (this.operator === "") {
|
|
1526
|
-
if (this.value === "") {
|
|
1527
|
-
return true;
|
|
1528
|
-
}
|
|
1529
|
-
return new Range(comp.value, options).test(this.value);
|
|
1530
|
-
} else if (comp.operator === "") {
|
|
1531
|
-
if (comp.value === "") {
|
|
1532
|
-
return true;
|
|
1533
|
-
}
|
|
1534
|
-
return new Range(this.value, options).test(comp.semver);
|
|
1535
|
-
}
|
|
1536
|
-
options = parseOptions(options);
|
|
1537
|
-
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
1538
|
-
return false;
|
|
1539
|
-
}
|
|
1540
|
-
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
1541
|
-
return false;
|
|
1542
|
-
}
|
|
1543
|
-
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
1544
|
-
return true;
|
|
1545
|
-
}
|
|
1546
|
-
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
1547
|
-
return true;
|
|
1548
|
-
}
|
|
1549
|
-
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
1550
|
-
return true;
|
|
1551
|
-
}
|
|
1552
|
-
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
1553
|
-
return true;
|
|
1554
|
-
}
|
|
1555
|
-
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
1556
|
-
return true;
|
|
1557
|
-
}
|
|
1558
|
-
return false;
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
module.exports = Comparator;
|
|
1562
|
-
const parseOptions = __webpack_require__(6837);
|
|
1563
|
-
const {safeRe: re, t} = __webpack_require__(928);
|
|
1564
|
-
const cmp = __webpack_require__(1005);
|
|
1565
|
-
const debug = __webpack_require__(4122);
|
|
1566
|
-
const SemVer = __webpack_require__(8038);
|
|
1567
|
-
const Range = __webpack_require__(3597);
|
|
1568
|
-
},
|
|
1569
|
-
3328: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1570
|
-
"use strict";
|
|
1571
|
-
const SemVer = __webpack_require__(8038);
|
|
1572
|
-
const parse = __webpack_require__(3770);
|
|
1573
|
-
const {safeRe: re, t} = __webpack_require__(928);
|
|
1574
|
-
const coerce = (version, options) => {
|
|
1575
|
-
if (version instanceof SemVer) {
|
|
1576
|
-
return version;
|
|
1577
|
-
}
|
|
1578
|
-
if (typeof version === "number") {
|
|
1579
|
-
version = String(version);
|
|
1580
|
-
}
|
|
1581
|
-
if (typeof version !== "string") {
|
|
1582
|
-
return null;
|
|
1583
|
-
}
|
|
1584
|
-
options = options || {};
|
|
1585
|
-
let match = null;
|
|
1586
|
-
if (!options.rtl) {
|
|
1587
|
-
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
1588
|
-
} else {
|
|
1589
|
-
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
1590
|
-
let next;
|
|
1591
|
-
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
1592
|
-
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
1593
|
-
match = next;
|
|
1594
|
-
}
|
|
1595
|
-
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
1596
|
-
}
|
|
1597
|
-
coerceRtlRegex.lastIndex = -1;
|
|
1598
|
-
}
|
|
1599
|
-
if (match === null) {
|
|
1600
|
-
return null;
|
|
1601
|
-
}
|
|
1602
|
-
const major = match[2];
|
|
1603
|
-
const minor = match[3] || "0";
|
|
1604
|
-
const patch = match[4] || "0";
|
|
1605
|
-
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
1606
|
-
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
1607
|
-
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
1608
|
-
};
|
|
1609
|
-
module.exports = coerce;
|
|
1610
|
-
},
|
|
1611
|
-
3360: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1612
|
-
"use strict";
|
|
1613
|
-
const compare = __webpack_require__(6278);
|
|
1614
|
-
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
1615
|
-
module.exports = rcompare;
|
|
1616
|
-
},
|
|
1617
|
-
3533: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1618
|
-
"use strict";
|
|
1619
|
-
const os = __webpack_require__(857);
|
|
1620
|
-
const tty = __webpack_require__(2018);
|
|
1621
|
-
const hasFlag = __webpack_require__(9614);
|
|
1622
|
-
const {env} = process;
|
|
1623
|
-
let forceColor;
|
|
1624
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
1625
|
-
forceColor = 0;
|
|
1626
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
1627
|
-
forceColor = 1;
|
|
1628
|
-
}
|
|
1629
|
-
if ("FORCE_COLOR" in env) {
|
|
1630
|
-
if (env.FORCE_COLOR === "true") {
|
|
1631
|
-
forceColor = 1;
|
|
1632
|
-
} else if (env.FORCE_COLOR === "false") {
|
|
1633
|
-
forceColor = 0;
|
|
1634
|
-
} else {
|
|
1635
|
-
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
function translateLevel(level) {
|
|
1639
|
-
if (level === 0) {
|
|
1640
|
-
return false;
|
|
1641
|
-
}
|
|
1642
|
-
return {
|
|
1643
|
-
level,
|
|
1644
|
-
hasBasic: true,
|
|
1645
|
-
has256: level >= 2,
|
|
1646
|
-
has16m: level >= 3
|
|
1647
|
-
};
|
|
1648
|
-
}
|
|
1649
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
1650
|
-
if (forceColor === 0) {
|
|
1651
|
-
return 0;
|
|
1652
|
-
}
|
|
1653
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
1654
|
-
return 3;
|
|
1655
|
-
}
|
|
1656
|
-
if (hasFlag("color=256")) {
|
|
1657
|
-
return 2;
|
|
1658
|
-
}
|
|
1659
|
-
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
1660
|
-
return 0;
|
|
1661
|
-
}
|
|
1662
|
-
const min = forceColor || 0;
|
|
1663
|
-
if (env.TERM === "dumb") {
|
|
1664
|
-
return min;
|
|
1665
|
-
}
|
|
1666
|
-
if (process.platform === "win32") {
|
|
1667
|
-
const osRelease = os.release().split(".");
|
|
1668
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
1669
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
1670
|
-
}
|
|
1671
|
-
return 1;
|
|
1672
|
-
}
|
|
1673
|
-
if ("CI" in env) {
|
|
1674
|
-
if ([ "TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE" ].some(sign => sign in env) || env.CI_NAME === "codeship") {
|
|
1675
|
-
return 1;
|
|
1676
|
-
}
|
|
1677
|
-
return min;
|
|
1678
|
-
}
|
|
1679
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
1680
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
1681
|
-
}
|
|
1682
|
-
if (env.COLORTERM === "truecolor") {
|
|
1683
|
-
return 3;
|
|
1684
|
-
}
|
|
1685
|
-
if ("TERM_PROGRAM" in env) {
|
|
1686
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
1687
|
-
switch (env.TERM_PROGRAM) {
|
|
1688
|
-
case "iTerm.app":
|
|
1689
|
-
return version >= 3 ? 3 : 2;
|
|
1690
|
-
|
|
1691
|
-
case "Apple_Terminal":
|
|
1692
|
-
return 2;
|
|
1693
|
-
}
|
|
1694
|
-
}
|
|
1695
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
1696
|
-
return 2;
|
|
1697
|
-
}
|
|
1698
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
1699
|
-
return 1;
|
|
1700
|
-
}
|
|
1701
|
-
if ("COLORTERM" in env) {
|
|
1702
|
-
return 1;
|
|
1703
|
-
}
|
|
1704
|
-
return min;
|
|
1705
|
-
}
|
|
1706
|
-
function getSupportLevel(stream) {
|
|
1707
|
-
const level = supportsColor(stream, stream && stream.isTTY);
|
|
1708
|
-
return translateLevel(level);
|
|
1709
|
-
}
|
|
1710
|
-
module.exports = {
|
|
1711
|
-
supportsColor: getSupportLevel,
|
|
1712
|
-
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
1713
|
-
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
1714
|
-
};
|
|
1715
|
-
},
|
|
1716
|
-
3597: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1717
|
-
"use strict";
|
|
1718
|
-
const SPACE_CHARACTERS = /\s+/g;
|
|
1719
|
-
class Range {
|
|
1720
|
-
constructor(range, options) {
|
|
1721
|
-
options = parseOptions(options);
|
|
1722
|
-
if (range instanceof Range) {
|
|
1723
|
-
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
|
|
1724
|
-
return range;
|
|
1725
|
-
} else {
|
|
1726
|
-
return new Range(range.raw, options);
|
|
1727
|
-
}
|
|
1728
|
-
}
|
|
1729
|
-
if (range instanceof Comparator) {
|
|
1730
|
-
this.raw = range.value;
|
|
1731
|
-
this.set = [ [ range ] ];
|
|
1732
|
-
this.formatted = undefined;
|
|
1733
|
-
return this;
|
|
1734
|
-
}
|
|
1735
|
-
this.options = options;
|
|
1736
|
-
this.loose = !!options.loose;
|
|
1737
|
-
this.includePrerelease = !!options.includePrerelease;
|
|
1738
|
-
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
1739
|
-
this.set = this.raw.split("||").map(r => this.parseRange(r.trim())).filter(c => c.length);
|
|
1740
|
-
if (!this.set.length) {
|
|
1741
|
-
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
1742
|
-
}
|
|
1743
|
-
if (this.set.length > 1) {
|
|
1744
|
-
const first = this.set[0];
|
|
1745
|
-
this.set = this.set.filter(c => !isNullSet(c[0]));
|
|
1746
|
-
if (this.set.length === 0) {
|
|
1747
|
-
this.set = [ first ];
|
|
1748
|
-
} else if (this.set.length > 1) {
|
|
1749
|
-
for (const c of this.set) {
|
|
1750
|
-
if (c.length === 1 && isAny(c[0])) {
|
|
1751
|
-
this.set = [ c ];
|
|
1752
|
-
break;
|
|
1753
|
-
}
|
|
1754
|
-
}
|
|
1755
|
-
}
|
|
1756
|
-
}
|
|
1757
|
-
this.formatted = undefined;
|
|
1758
|
-
}
|
|
1759
|
-
get range() {
|
|
1760
|
-
if (this.formatted === undefined) {
|
|
1761
|
-
this.formatted = "";
|
|
1762
|
-
for (let i = 0; i < this.set.length; i++) {
|
|
1763
|
-
if (i > 0) {
|
|
1764
|
-
this.formatted += "||";
|
|
1765
|
-
}
|
|
1766
|
-
const comps = this.set[i];
|
|
1767
|
-
for (let k = 0; k < comps.length; k++) {
|
|
1768
|
-
if (k > 0) {
|
|
1769
|
-
this.formatted += " ";
|
|
1770
|
-
}
|
|
1771
|
-
this.formatted += comps[k].toString().trim();
|
|
1772
|
-
}
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
return this.formatted;
|
|
1776
|
-
}
|
|
1777
|
-
format() {
|
|
1778
|
-
return this.range;
|
|
1779
|
-
}
|
|
1780
|
-
toString() {
|
|
1781
|
-
return this.range;
|
|
1782
|
-
}
|
|
1783
|
-
parseRange(range) {
|
|
1784
|
-
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
1785
|
-
const memoKey = memoOpts + ":" + range;
|
|
1786
|
-
const cached = cache.get(memoKey);
|
|
1787
|
-
if (cached) {
|
|
1788
|
-
return cached;
|
|
1789
|
-
}
|
|
1790
|
-
const loose = this.options.loose;
|
|
1791
|
-
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
1792
|
-
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
1793
|
-
debug("hyphen replace", range);
|
|
1794
|
-
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
1795
|
-
debug("comparator trim", range);
|
|
1796
|
-
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
1797
|
-
debug("tilde trim", range);
|
|
1798
|
-
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
1799
|
-
debug("caret trim", range);
|
|
1800
|
-
let rangeList = range.split(" ").map(comp => parseComparator(comp, this.options)).join(" ").split(/\s+/).map(comp => replaceGTE0(comp, this.options));
|
|
1801
|
-
if (loose) {
|
|
1802
|
-
rangeList = rangeList.filter(comp => {
|
|
1803
|
-
debug("loose invalid filter", comp, this.options);
|
|
1804
|
-
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
1805
|
-
});
|
|
1806
|
-
}
|
|
1807
|
-
debug("range list", rangeList);
|
|
1808
|
-
const rangeMap = new Map;
|
|
1809
|
-
const comparators = rangeList.map(comp => new Comparator(comp, this.options));
|
|
1810
|
-
for (const comp of comparators) {
|
|
1811
|
-
if (isNullSet(comp)) {
|
|
1812
|
-
return [ comp ];
|
|
1813
|
-
}
|
|
1814
|
-
rangeMap.set(comp.value, comp);
|
|
1815
|
-
}
|
|
1816
|
-
if (rangeMap.size > 1 && rangeMap.has("")) {
|
|
1817
|
-
rangeMap.delete("");
|
|
1818
|
-
}
|
|
1819
|
-
const result = [ ...rangeMap.values() ];
|
|
1820
|
-
cache.set(memoKey, result);
|
|
1821
|
-
return result;
|
|
1822
|
-
}
|
|
1823
|
-
intersects(range, options) {
|
|
1824
|
-
if (!(range instanceof Range)) {
|
|
1825
|
-
throw new TypeError("a Range is required");
|
|
1826
|
-
}
|
|
1827
|
-
return this.set.some(thisComparators => isSatisfiable(thisComparators, options) && range.set.some(rangeComparators => isSatisfiable(rangeComparators, options) && thisComparators.every(thisComparator => rangeComparators.every(rangeComparator => thisComparator.intersects(rangeComparator, options)))));
|
|
1828
|
-
}
|
|
1829
|
-
test(version) {
|
|
1830
|
-
if (!version) {
|
|
1831
|
-
return false;
|
|
1832
|
-
}
|
|
1833
|
-
if (typeof version === "string") {
|
|
1834
|
-
try {
|
|
1835
|
-
version = new SemVer(version, this.options);
|
|
1836
|
-
} catch (er) {
|
|
1837
|
-
return false;
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
1840
|
-
for (let i = 0; i < this.set.length; i++) {
|
|
1841
|
-
if (testSet(this.set[i], version, this.options)) {
|
|
1842
|
-
return true;
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
return false;
|
|
1846
|
-
}
|
|
1847
|
-
}
|
|
1848
|
-
module.exports = Range;
|
|
1849
|
-
const LRU = __webpack_require__(1380);
|
|
1850
|
-
const cache = new LRU;
|
|
1851
|
-
const parseOptions = __webpack_require__(6837);
|
|
1852
|
-
const Comparator = __webpack_require__(3114);
|
|
1853
|
-
const debug = __webpack_require__(4122);
|
|
1854
|
-
const SemVer = __webpack_require__(8038);
|
|
1855
|
-
const {safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace} = __webpack_require__(928);
|
|
1856
|
-
const {FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE} = __webpack_require__(3932);
|
|
1857
|
-
const isNullSet = c => c.value === "<0.0.0-0";
|
|
1858
|
-
const isAny = c => c.value === "";
|
|
1859
|
-
const isSatisfiable = (comparators, options) => {
|
|
1860
|
-
let result = true;
|
|
1861
|
-
const remainingComparators = comparators.slice();
|
|
1862
|
-
let testComparator = remainingComparators.pop();
|
|
1863
|
-
while (result && remainingComparators.length) {
|
|
1864
|
-
result = remainingComparators.every(otherComparator => testComparator.intersects(otherComparator, options));
|
|
1865
|
-
testComparator = remainingComparators.pop();
|
|
1866
|
-
}
|
|
1867
|
-
return result;
|
|
1868
|
-
};
|
|
1869
|
-
const parseComparator = (comp, options) => {
|
|
1870
|
-
debug("comp", comp, options);
|
|
1871
|
-
comp = replaceCarets(comp, options);
|
|
1872
|
-
debug("caret", comp);
|
|
1873
|
-
comp = replaceTildes(comp, options);
|
|
1874
|
-
debug("tildes", comp);
|
|
1875
|
-
comp = replaceXRanges(comp, options);
|
|
1876
|
-
debug("xrange", comp);
|
|
1877
|
-
comp = replaceStars(comp, options);
|
|
1878
|
-
debug("stars", comp);
|
|
1879
|
-
return comp;
|
|
1880
|
-
};
|
|
1881
|
-
const isX = id => !id || id.toLowerCase() === "x" || id === "*";
|
|
1882
|
-
const replaceTildes = (comp, options) => comp.trim().split(/\s+/).map(c => replaceTilde(c, options)).join(" ");
|
|
1883
|
-
const replaceTilde = (comp, options) => {
|
|
1884
|
-
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
1885
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
1886
|
-
debug("tilde", comp, _, M, m, p, pr);
|
|
1887
|
-
let ret;
|
|
1888
|
-
if (isX(M)) {
|
|
1889
|
-
ret = "";
|
|
1890
|
-
} else if (isX(m)) {
|
|
1891
|
-
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
1892
|
-
} else if (isX(p)) {
|
|
1893
|
-
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
1894
|
-
} else if (pr) {
|
|
1895
|
-
debug("replaceTilde pr", pr);
|
|
1896
|
-
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
1897
|
-
} else {
|
|
1898
|
-
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
1899
|
-
}
|
|
1900
|
-
debug("tilde return", ret);
|
|
1901
|
-
return ret;
|
|
1902
|
-
});
|
|
1903
|
-
};
|
|
1904
|
-
const replaceCarets = (comp, options) => comp.trim().split(/\s+/).map(c => replaceCaret(c, options)).join(" ");
|
|
1905
|
-
const replaceCaret = (comp, options) => {
|
|
1906
|
-
debug("caret", comp, options);
|
|
1907
|
-
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
1908
|
-
const z = options.includePrerelease ? "-0" : "";
|
|
1909
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
1910
|
-
debug("caret", comp, _, M, m, p, pr);
|
|
1911
|
-
let ret;
|
|
1912
|
-
if (isX(M)) {
|
|
1913
|
-
ret = "";
|
|
1914
|
-
} else if (isX(m)) {
|
|
1915
|
-
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
1916
|
-
} else if (isX(p)) {
|
|
1917
|
-
if (M === "0") {
|
|
1918
|
-
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
1919
|
-
} else {
|
|
1920
|
-
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
1921
|
-
}
|
|
1922
|
-
} else if (pr) {
|
|
1923
|
-
debug("replaceCaret pr", pr);
|
|
1924
|
-
if (M === "0") {
|
|
1925
|
-
if (m === "0") {
|
|
1926
|
-
ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
1927
|
-
} else {
|
|
1928
|
-
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
1929
|
-
}
|
|
1930
|
-
} else {
|
|
1931
|
-
ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
1932
|
-
}
|
|
1933
|
-
} else {
|
|
1934
|
-
debug("no pr");
|
|
1935
|
-
if (M === "0") {
|
|
1936
|
-
if (m === "0") {
|
|
1937
|
-
ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
1938
|
-
} else {
|
|
1939
|
-
ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
1940
|
-
}
|
|
1941
|
-
} else {
|
|
1942
|
-
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
1943
|
-
}
|
|
1944
|
-
}
|
|
1945
|
-
debug("caret return", ret);
|
|
1946
|
-
return ret;
|
|
1947
|
-
});
|
|
1948
|
-
};
|
|
1949
|
-
const replaceXRanges = (comp, options) => {
|
|
1950
|
-
debug("replaceXRanges", comp, options);
|
|
1951
|
-
return comp.split(/\s+/).map(c => replaceXRange(c, options)).join(" ");
|
|
1952
|
-
};
|
|
1953
|
-
const replaceXRange = (comp, options) => {
|
|
1954
|
-
comp = comp.trim();
|
|
1955
|
-
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
1956
|
-
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
1957
|
-
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
1958
|
-
const xM = isX(M);
|
|
1959
|
-
const xm = xM || isX(m);
|
|
1960
|
-
const xp = xm || isX(p);
|
|
1961
|
-
const anyX = xp;
|
|
1962
|
-
if (gtlt === "=" && anyX) {
|
|
1963
|
-
gtlt = "";
|
|
1964
|
-
}
|
|
1965
|
-
pr = options.includePrerelease ? "-0" : "";
|
|
1966
|
-
if (xM) {
|
|
1967
|
-
if (gtlt === ">" || gtlt === "<") {
|
|
1968
|
-
ret = "<0.0.0-0";
|
|
1969
|
-
} else {
|
|
1970
|
-
ret = "*";
|
|
1971
|
-
}
|
|
1972
|
-
} else if (gtlt && anyX) {
|
|
1973
|
-
if (xm) {
|
|
1974
|
-
m = 0;
|
|
1975
|
-
}
|
|
1976
|
-
p = 0;
|
|
1977
|
-
if (gtlt === ">") {
|
|
1978
|
-
gtlt = ">=";
|
|
1979
|
-
if (xm) {
|
|
1980
|
-
M = +M + 1;
|
|
1981
|
-
m = 0;
|
|
1982
|
-
p = 0;
|
|
1983
|
-
} else {
|
|
1984
|
-
m = +m + 1;
|
|
1985
|
-
p = 0;
|
|
1986
|
-
}
|
|
1987
|
-
} else if (gtlt === "<=") {
|
|
1988
|
-
gtlt = "<";
|
|
1989
|
-
if (xm) {
|
|
1990
|
-
M = +M + 1;
|
|
1991
|
-
} else {
|
|
1992
|
-
m = +m + 1;
|
|
1993
|
-
}
|
|
1994
|
-
}
|
|
1995
|
-
if (gtlt === "<") {
|
|
1996
|
-
pr = "-0";
|
|
1997
|
-
}
|
|
1998
|
-
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
1999
|
-
} else if (xm) {
|
|
2000
|
-
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
2001
|
-
} else if (xp) {
|
|
2002
|
-
ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
2003
|
-
}
|
|
2004
|
-
debug("xRange return", ret);
|
|
2005
|
-
return ret;
|
|
2006
|
-
});
|
|
2007
|
-
};
|
|
2008
|
-
const replaceStars = (comp, options) => {
|
|
2009
|
-
debug("replaceStars", comp, options);
|
|
2010
|
-
return comp.trim().replace(re[t.STAR], "");
|
|
2011
|
-
};
|
|
2012
|
-
const replaceGTE0 = (comp, options) => {
|
|
2013
|
-
debug("replaceGTE0", comp, options);
|
|
2014
|
-
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
2015
|
-
};
|
|
2016
|
-
const hyphenReplace = incPr => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
2017
|
-
if (isX(fM)) {
|
|
2018
|
-
from = "";
|
|
2019
|
-
} else if (isX(fm)) {
|
|
2020
|
-
from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
2021
|
-
} else if (isX(fp)) {
|
|
2022
|
-
from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
2023
|
-
} else if (fpr) {
|
|
2024
|
-
from = `>=${from}`;
|
|
2025
|
-
} else {
|
|
2026
|
-
from = `>=${from}${incPr ? "-0" : ""}`;
|
|
2027
|
-
}
|
|
2028
|
-
if (isX(tM)) {
|
|
2029
|
-
to = "";
|
|
2030
|
-
} else if (isX(tm)) {
|
|
2031
|
-
to = `<${+tM + 1}.0.0-0`;
|
|
2032
|
-
} else if (isX(tp)) {
|
|
2033
|
-
to = `<${tM}.${+tm + 1}.0-0`;
|
|
2034
|
-
} else if (tpr) {
|
|
2035
|
-
to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
2036
|
-
} else if (incPr) {
|
|
2037
|
-
to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
2038
|
-
} else {
|
|
2039
|
-
to = `<=${to}`;
|
|
2040
|
-
}
|
|
2041
|
-
return `${from} ${to}`.trim();
|
|
2042
|
-
};
|
|
2043
|
-
const testSet = (set, version, options) => {
|
|
2044
|
-
for (let i = 0; i < set.length; i++) {
|
|
2045
|
-
if (!set[i].test(version)) {
|
|
2046
|
-
return false;
|
|
2047
|
-
}
|
|
2048
|
-
}
|
|
2049
|
-
if (version.prerelease.length && !options.includePrerelease) {
|
|
2050
|
-
for (let i = 0; i < set.length; i++) {
|
|
2051
|
-
debug(set[i].semver);
|
|
2052
|
-
if (set[i].semver === Comparator.ANY) {
|
|
2053
|
-
continue;
|
|
2054
|
-
}
|
|
2055
|
-
if (set[i].semver.prerelease.length > 0) {
|
|
2056
|
-
const allowed = set[i].semver;
|
|
2057
|
-
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
|
|
2058
|
-
return true;
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
}
|
|
2062
|
-
return false;
|
|
2063
|
-
}
|
|
2064
|
-
return true;
|
|
2065
|
-
};
|
|
2066
|
-
},
|
|
2067
|
-
3701: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2068
|
-
const conversions = __webpack_require__(1873);
|
|
2069
|
-
function buildGraph() {
|
|
2070
|
-
const graph = {};
|
|
2071
|
-
const models = Object.keys(conversions);
|
|
2072
|
-
for (let len = models.length, i = 0; i < len; i++) {
|
|
2073
|
-
graph[models[i]] = {
|
|
2074
|
-
distance: -1,
|
|
2075
|
-
parent: null
|
|
2076
|
-
};
|
|
2077
|
-
}
|
|
2078
|
-
return graph;
|
|
2079
|
-
}
|
|
2080
|
-
function deriveBFS(fromModel) {
|
|
2081
|
-
const graph = buildGraph();
|
|
2082
|
-
const queue = [ fromModel ];
|
|
2083
|
-
graph[fromModel].distance = 0;
|
|
2084
|
-
while (queue.length) {
|
|
2085
|
-
const current = queue.pop();
|
|
2086
|
-
const adjacents = Object.keys(conversions[current]);
|
|
2087
|
-
for (let len = adjacents.length, i = 0; i < len; i++) {
|
|
2088
|
-
const adjacent = adjacents[i];
|
|
2089
|
-
const node = graph[adjacent];
|
|
2090
|
-
if (node.distance === -1) {
|
|
2091
|
-
node.distance = graph[current].distance + 1;
|
|
2092
|
-
node.parent = current;
|
|
2093
|
-
queue.unshift(adjacent);
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
}
|
|
2097
|
-
return graph;
|
|
2098
|
-
}
|
|
2099
|
-
function link(from, to) {
|
|
2100
|
-
return function(args) {
|
|
2101
|
-
return to(from(args));
|
|
2102
|
-
};
|
|
2103
|
-
}
|
|
2104
|
-
function wrapConversion(toModel, graph) {
|
|
2105
|
-
const path = [ graph[toModel].parent, toModel ];
|
|
2106
|
-
let fn = conversions[graph[toModel].parent][toModel];
|
|
2107
|
-
let cur = graph[toModel].parent;
|
|
2108
|
-
while (graph[cur].parent) {
|
|
2109
|
-
path.unshift(graph[cur].parent);
|
|
2110
|
-
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
2111
|
-
cur = graph[cur].parent;
|
|
2112
|
-
}
|
|
2113
|
-
fn.conversion = path;
|
|
2114
|
-
return fn;
|
|
2115
|
-
}
|
|
2116
|
-
module.exports = function(fromModel) {
|
|
2117
|
-
const graph = deriveBFS(fromModel);
|
|
2118
|
-
const conversion = {};
|
|
2119
|
-
const models = Object.keys(graph);
|
|
2120
|
-
for (let len = models.length, i = 0; i < len; i++) {
|
|
2121
|
-
const toModel = models[i];
|
|
2122
|
-
const node = graph[toModel];
|
|
2123
|
-
if (node.parent === null) {
|
|
2124
|
-
continue;
|
|
2125
|
-
}
|
|
2126
|
-
conversion[toModel] = wrapConversion(toModel, graph);
|
|
2127
|
-
}
|
|
2128
|
-
return conversion;
|
|
2129
|
-
};
|
|
2130
|
-
},
|
|
2131
|
-
3770: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2132
|
-
"use strict";
|
|
2133
|
-
const SemVer = __webpack_require__(8038);
|
|
2134
|
-
const parse = (version, options, throwErrors = false) => {
|
|
2135
|
-
if (version instanceof SemVer) {
|
|
2136
|
-
return version;
|
|
2137
|
-
}
|
|
2138
|
-
try {
|
|
2139
|
-
return new SemVer(version, options);
|
|
2140
|
-
} catch (er) {
|
|
2141
|
-
if (!throwErrors) {
|
|
2142
|
-
return null;
|
|
2143
|
-
}
|
|
2144
|
-
throw er;
|
|
2145
|
-
}
|
|
2146
|
-
};
|
|
2147
|
-
module.exports = parse;
|
|
2148
|
-
},
|
|
2149
|
-
3932: module => {
|
|
2150
|
-
"use strict";
|
|
2151
|
-
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
2152
|
-
const MAX_LENGTH = 256;
|
|
2153
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
2154
|
-
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
2155
|
-
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
2156
|
-
const RELEASE_TYPES = [ "major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease" ];
|
|
2157
|
-
module.exports = {
|
|
2158
|
-
MAX_LENGTH,
|
|
2159
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
2160
|
-
MAX_SAFE_BUILD_LENGTH,
|
|
2161
|
-
MAX_SAFE_INTEGER,
|
|
2162
|
-
RELEASE_TYPES,
|
|
2163
|
-
SEMVER_SPEC_VERSION,
|
|
2164
|
-
FLAG_INCLUDE_PRERELEASE: 1,
|
|
2165
|
-
FLAG_LOOSE: 2
|
|
2166
|
-
};
|
|
2167
|
-
},
|
|
2168
|
-
3949: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2169
|
-
"use strict";
|
|
2170
|
-
const compare = __webpack_require__(6278);
|
|
2171
|
-
const compareLoose = (a, b) => compare(a, b, true);
|
|
2172
|
-
module.exports = compareLoose;
|
|
2173
|
-
},
|
|
2174
|
-
4122: module => {
|
|
2175
|
-
"use strict";
|
|
2176
|
-
const debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
2177
|
-
module.exports = debug;
|
|
2178
|
-
},
|
|
2179
|
-
4236: module => {
|
|
2180
|
-
"use strict";
|
|
2181
|
-
module.exports = require("console");
|
|
2182
|
-
},
|
|
2183
|
-
4302: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2184
|
-
"use strict";
|
|
2185
|
-
const Range = __webpack_require__(3597);
|
|
2186
|
-
const Comparator = __webpack_require__(3114);
|
|
2187
|
-
const {ANY} = Comparator;
|
|
2188
|
-
const satisfies = __webpack_require__(6336);
|
|
2189
|
-
const compare = __webpack_require__(6278);
|
|
2190
|
-
const subset = (sub, dom, options = {}) => {
|
|
2191
|
-
if (sub === dom) {
|
|
2192
|
-
return true;
|
|
2193
|
-
}
|
|
2194
|
-
sub = new Range(sub, options);
|
|
2195
|
-
dom = new Range(dom, options);
|
|
2196
|
-
let sawNonNull = false;
|
|
2197
|
-
OUTER: for (const simpleSub of sub.set) {
|
|
2198
|
-
for (const simpleDom of dom.set) {
|
|
2199
|
-
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
2200
|
-
sawNonNull = sawNonNull || isSub !== null;
|
|
2201
|
-
if (isSub) {
|
|
2202
|
-
continue OUTER;
|
|
2203
|
-
}
|
|
2204
|
-
}
|
|
2205
|
-
if (sawNonNull) {
|
|
2206
|
-
return false;
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
return true;
|
|
2210
|
-
};
|
|
2211
|
-
const minimumVersionWithPreRelease = [ new Comparator(">=0.0.0-0") ];
|
|
2212
|
-
const minimumVersion = [ new Comparator(">=0.0.0") ];
|
|
2213
|
-
const simpleSubset = (sub, dom, options) => {
|
|
2214
|
-
if (sub === dom) {
|
|
2215
|
-
return true;
|
|
2216
|
-
}
|
|
2217
|
-
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
2218
|
-
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
2219
|
-
return true;
|
|
2220
|
-
} else if (options.includePrerelease) {
|
|
2221
|
-
sub = minimumVersionWithPreRelease;
|
|
2222
|
-
} else {
|
|
2223
|
-
sub = minimumVersion;
|
|
2224
|
-
}
|
|
2225
|
-
}
|
|
2226
|
-
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
2227
|
-
if (options.includePrerelease) {
|
|
2228
|
-
return true;
|
|
2229
|
-
} else {
|
|
2230
|
-
dom = minimumVersion;
|
|
2231
|
-
}
|
|
2232
|
-
}
|
|
2233
|
-
const eqSet = new Set;
|
|
2234
|
-
let gt, lt;
|
|
2235
|
-
for (const c of sub) {
|
|
2236
|
-
if (c.operator === ">" || c.operator === ">=") {
|
|
2237
|
-
gt = higherGT(gt, c, options);
|
|
2238
|
-
} else if (c.operator === "<" || c.operator === "<=") {
|
|
2239
|
-
lt = lowerLT(lt, c, options);
|
|
2240
|
-
} else {
|
|
2241
|
-
eqSet.add(c.semver);
|
|
2242
|
-
}
|
|
2243
|
-
}
|
|
2244
|
-
if (eqSet.size > 1) {
|
|
2245
|
-
return null;
|
|
2246
|
-
}
|
|
2247
|
-
let gtltComp;
|
|
2248
|
-
if (gt && lt) {
|
|
2249
|
-
gtltComp = compare(gt.semver, lt.semver, options);
|
|
2250
|
-
if (gtltComp > 0) {
|
|
2251
|
-
return null;
|
|
2252
|
-
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
|
2253
|
-
return null;
|
|
2254
|
-
}
|
|
2255
|
-
}
|
|
2256
|
-
for (const eq of eqSet) {
|
|
2257
|
-
if (gt && !satisfies(eq, String(gt), options)) {
|
|
2258
|
-
return null;
|
|
2259
|
-
}
|
|
2260
|
-
if (lt && !satisfies(eq, String(lt), options)) {
|
|
2261
|
-
return null;
|
|
2262
|
-
}
|
|
2263
|
-
for (const c of dom) {
|
|
2264
|
-
if (!satisfies(eq, String(c), options)) {
|
|
2265
|
-
return false;
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
return true;
|
|
2269
|
-
}
|
|
2270
|
-
let higher, lower;
|
|
2271
|
-
let hasDomLT, hasDomGT;
|
|
2272
|
-
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
2273
|
-
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
2274
|
-
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
2275
|
-
needDomLTPre = false;
|
|
2276
|
-
}
|
|
2277
|
-
for (const c of dom) {
|
|
2278
|
-
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
2279
|
-
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
2280
|
-
if (gt) {
|
|
2281
|
-
if (needDomGTPre) {
|
|
2282
|
-
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
|
|
2283
|
-
needDomGTPre = false;
|
|
2284
|
-
}
|
|
2285
|
-
}
|
|
2286
|
-
if (c.operator === ">" || c.operator === ">=") {
|
|
2287
|
-
higher = higherGT(gt, c, options);
|
|
2288
|
-
if (higher === c && higher !== gt) {
|
|
2289
|
-
return false;
|
|
2290
|
-
}
|
|
2291
|
-
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
|
|
2292
|
-
return false;
|
|
2293
|
-
}
|
|
2294
|
-
}
|
|
2295
|
-
if (lt) {
|
|
2296
|
-
if (needDomLTPre) {
|
|
2297
|
-
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
|
|
2298
|
-
needDomLTPre = false;
|
|
2299
|
-
}
|
|
2300
|
-
}
|
|
2301
|
-
if (c.operator === "<" || c.operator === "<=") {
|
|
2302
|
-
lower = lowerLT(lt, c, options);
|
|
2303
|
-
if (lower === c && lower !== lt) {
|
|
2304
|
-
return false;
|
|
2305
|
-
}
|
|
2306
|
-
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
|
|
2307
|
-
return false;
|
|
2308
|
-
}
|
|
2309
|
-
}
|
|
2310
|
-
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
|
2311
|
-
return false;
|
|
2312
|
-
}
|
|
2313
|
-
}
|
|
2314
|
-
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
|
2315
|
-
return false;
|
|
2316
|
-
}
|
|
2317
|
-
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
|
2318
|
-
return false;
|
|
2319
|
-
}
|
|
2320
|
-
if (needDomGTPre || needDomLTPre) {
|
|
2321
|
-
return false;
|
|
2322
|
-
}
|
|
2323
|
-
return true;
|
|
2324
|
-
};
|
|
2325
|
-
const higherGT = (a, b, options) => {
|
|
2326
|
-
if (!a) {
|
|
2327
|
-
return b;
|
|
2328
|
-
}
|
|
2329
|
-
const comp = compare(a.semver, b.semver, options);
|
|
2330
|
-
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
2331
|
-
};
|
|
2332
|
-
const lowerLT = (a, b, options) => {
|
|
2333
|
-
if (!a) {
|
|
2334
|
-
return b;
|
|
2335
|
-
}
|
|
2336
|
-
const comp = compare(a.semver, b.semver, options);
|
|
2337
|
-
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
2338
|
-
};
|
|
2339
|
-
module.exports = subset;
|
|
2340
|
-
},
|
|
2341
|
-
4592: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2342
|
-
"use strict";
|
|
2343
|
-
const parse = __webpack_require__(3770);
|
|
2344
|
-
const clean = (version, options) => {
|
|
2345
|
-
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
2346
|
-
return s ? s.version : null;
|
|
2347
|
-
};
|
|
2348
|
-
module.exports = clean;
|
|
2349
|
-
},
|
|
2350
|
-
4932: module => {
|
|
2351
|
-
"use strict";
|
|
2352
|
-
const stringReplaceAll = (string, substring, replacer) => {
|
|
2353
|
-
let index = string.indexOf(substring);
|
|
2354
|
-
if (index === -1) {
|
|
2355
|
-
return string;
|
|
2356
|
-
}
|
|
2357
|
-
const substringLength = substring.length;
|
|
2358
|
-
let endIndex = 0;
|
|
2359
|
-
let returnValue = "";
|
|
2360
|
-
do {
|
|
2361
|
-
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
|
2362
|
-
endIndex = index + substringLength;
|
|
2363
|
-
index = string.indexOf(substring, endIndex);
|
|
2364
|
-
} while (index !== -1);
|
|
2365
|
-
returnValue += string.substr(endIndex);
|
|
2366
|
-
return returnValue;
|
|
2367
|
-
};
|
|
2368
|
-
const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
|
|
2369
|
-
let endIndex = 0;
|
|
2370
|
-
let returnValue = "";
|
|
2371
|
-
do {
|
|
2372
|
-
const gotCR = string[index - 1] === "\r";
|
|
2373
|
-
returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
2374
|
-
endIndex = index + 1;
|
|
2375
|
-
index = string.indexOf("\n", endIndex);
|
|
2376
|
-
} while (index !== -1);
|
|
2377
|
-
returnValue += string.substr(endIndex);
|
|
2378
|
-
return returnValue;
|
|
2379
|
-
};
|
|
2380
|
-
module.exports = {
|
|
2381
|
-
stringReplaceAll,
|
|
2382
|
-
stringEncaseCRLFWithFirstIndex
|
|
2383
|
-
};
|
|
2384
|
-
},
|
|
2385
|
-
5003: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2386
|
-
"use strict";
|
|
2387
|
-
const parse = __webpack_require__(3770);
|
|
2388
|
-
const prerelease = (version, options) => {
|
|
2389
|
-
const parsed = parse(version, options);
|
|
2390
|
-
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
2391
|
-
};
|
|
2392
|
-
module.exports = prerelease;
|
|
2393
|
-
},
|
|
2394
|
-
5063: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2395
|
-
"use strict";
|
|
2396
|
-
const compareBuild = __webpack_require__(8471);
|
|
2397
|
-
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
2398
|
-
module.exports = rsort;
|
|
2399
|
-
},
|
|
2400
|
-
5169: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2401
|
-
"use strict";
|
|
2402
|
-
const compare = __webpack_require__(6278);
|
|
2403
|
-
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
2404
|
-
module.exports = lt;
|
|
2405
|
-
},
|
|
2406
|
-
5263: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2407
|
-
"use strict";
|
|
2408
|
-
const internalRe = __webpack_require__(928);
|
|
2409
|
-
const constants = __webpack_require__(3932);
|
|
2410
|
-
const SemVer = __webpack_require__(8038);
|
|
2411
|
-
const identifiers = __webpack_require__(6741);
|
|
2412
|
-
const parse = __webpack_require__(3770);
|
|
2413
|
-
const valid = __webpack_require__(1519);
|
|
2414
|
-
const clean = __webpack_require__(4592);
|
|
2415
|
-
const inc = __webpack_require__(305);
|
|
2416
|
-
const diff = __webpack_require__(5782);
|
|
2417
|
-
const major = __webpack_require__(6680);
|
|
2418
|
-
const minor = __webpack_require__(7748);
|
|
2419
|
-
const patch = __webpack_require__(6219);
|
|
2420
|
-
const prerelease = __webpack_require__(5003);
|
|
2421
|
-
const compare = __webpack_require__(6278);
|
|
2422
|
-
const rcompare = __webpack_require__(3360);
|
|
2423
|
-
const compareLoose = __webpack_require__(3949);
|
|
2424
|
-
const compareBuild = __webpack_require__(8471);
|
|
2425
|
-
const sort = __webpack_require__(2393);
|
|
2426
|
-
const rsort = __webpack_require__(5063);
|
|
2427
|
-
const gt = __webpack_require__(6670);
|
|
2428
|
-
const lt = __webpack_require__(5169);
|
|
2429
|
-
const eq = __webpack_require__(8935);
|
|
2430
|
-
const neq = __webpack_require__(8661);
|
|
2431
|
-
const gte = __webpack_require__(6999);
|
|
2432
|
-
const lte = __webpack_require__(9746);
|
|
2433
|
-
const cmp = __webpack_require__(1005);
|
|
2434
|
-
const coerce = __webpack_require__(3328);
|
|
2435
|
-
const Comparator = __webpack_require__(3114);
|
|
2436
|
-
const Range = __webpack_require__(3597);
|
|
2437
|
-
const satisfies = __webpack_require__(6336);
|
|
2438
|
-
const toComparators = __webpack_require__(9533);
|
|
2439
|
-
const maxSatisfying = __webpack_require__(274);
|
|
2440
|
-
const minSatisfying = __webpack_require__(9304);
|
|
2441
|
-
const minVersion = __webpack_require__(7955);
|
|
2442
|
-
const validRange = __webpack_require__(7348);
|
|
2443
|
-
const outside = __webpack_require__(2641);
|
|
2444
|
-
const gtr = __webpack_require__(7369);
|
|
2445
|
-
const ltr = __webpack_require__(9024);
|
|
2446
|
-
const intersects = __webpack_require__(8474);
|
|
2447
|
-
const simplifyRange = __webpack_require__(6927);
|
|
2448
|
-
const subset = __webpack_require__(4302);
|
|
2449
|
-
module.exports = {
|
|
2450
|
-
parse,
|
|
2451
|
-
valid,
|
|
2452
|
-
clean,
|
|
2453
|
-
inc,
|
|
2454
|
-
diff,
|
|
2455
|
-
major,
|
|
2456
|
-
minor,
|
|
2457
|
-
patch,
|
|
2458
|
-
prerelease,
|
|
2459
|
-
compare,
|
|
2460
|
-
rcompare,
|
|
2461
|
-
compareLoose,
|
|
2462
|
-
compareBuild,
|
|
2463
|
-
sort,
|
|
2464
|
-
rsort,
|
|
2465
|
-
gt,
|
|
2466
|
-
lt,
|
|
2467
|
-
eq,
|
|
2468
|
-
neq,
|
|
2469
|
-
gte,
|
|
2470
|
-
lte,
|
|
2471
|
-
cmp,
|
|
2472
|
-
coerce,
|
|
2473
|
-
Comparator,
|
|
2474
|
-
Range,
|
|
2475
|
-
satisfies,
|
|
2476
|
-
toComparators,
|
|
2477
|
-
maxSatisfying,
|
|
2478
|
-
minSatisfying,
|
|
2479
|
-
minVersion,
|
|
2480
|
-
validRange,
|
|
2481
|
-
outside,
|
|
2482
|
-
gtr,
|
|
2483
|
-
ltr,
|
|
2484
|
-
intersects,
|
|
2485
|
-
simplifyRange,
|
|
2486
|
-
subset,
|
|
2487
|
-
SemVer,
|
|
2488
|
-
re: internalRe.re,
|
|
2489
|
-
src: internalRe.src,
|
|
2490
|
-
tokens: internalRe.t,
|
|
2491
|
-
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
2492
|
-
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
2493
|
-
compareIdentifiers: identifiers.compareIdentifiers,
|
|
2494
|
-
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
2495
|
-
};
|
|
2496
|
-
},
|
|
2497
|
-
5276: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2498
|
-
"use strict";
|
|
2499
|
-
const index_1 = __webpack_require__(8261);
|
|
2500
|
-
(0, index_1.checkNode)();
|
|
2501
|
-
module.exports = {};
|
|
2502
|
-
},
|
|
2503
|
-
5317: module => {
|
|
2504
|
-
"use strict";
|
|
2505
|
-
module.exports = require("child_process");
|
|
2506
|
-
},
|
|
2507
|
-
5782: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2508
|
-
"use strict";
|
|
2509
|
-
const parse = __webpack_require__(3770);
|
|
2510
|
-
const diff = (version1, version2) => {
|
|
2511
|
-
const v1 = parse(version1, null, true);
|
|
2512
|
-
const v2 = parse(version2, null, true);
|
|
2513
|
-
const comparison = v1.compare(v2);
|
|
2514
|
-
if (comparison === 0) {
|
|
2515
|
-
return null;
|
|
2516
|
-
}
|
|
2517
|
-
const v1Higher = comparison > 0;
|
|
2518
|
-
const highVersion = v1Higher ? v1 : v2;
|
|
2519
|
-
const lowVersion = v1Higher ? v2 : v1;
|
|
2520
|
-
const highHasPre = !!highVersion.prerelease.length;
|
|
2521
|
-
const lowHasPre = !!lowVersion.prerelease.length;
|
|
2522
|
-
if (lowHasPre && !highHasPre) {
|
|
2523
|
-
if (!lowVersion.patch && !lowVersion.minor) {
|
|
2524
|
-
return "major";
|
|
2525
|
-
}
|
|
2526
|
-
if (lowVersion.compareMain(highVersion) === 0) {
|
|
2527
|
-
if (lowVersion.minor && !lowVersion.patch) {
|
|
2528
|
-
return "minor";
|
|
2529
|
-
}
|
|
2530
|
-
return "patch";
|
|
2531
|
-
}
|
|
2532
|
-
}
|
|
2533
|
-
const prefix = highHasPre ? "pre" : "";
|
|
2534
|
-
if (v1.major !== v2.major) {
|
|
2535
|
-
return prefix + "major";
|
|
2536
|
-
}
|
|
2537
|
-
if (v1.minor !== v2.minor) {
|
|
2538
|
-
return prefix + "minor";
|
|
2539
|
-
}
|
|
2540
|
-
if (v1.patch !== v2.patch) {
|
|
2541
|
-
return prefix + "patch";
|
|
2542
|
-
}
|
|
2543
|
-
return "prerelease";
|
|
2544
|
-
};
|
|
2545
|
-
module.exports = diff;
|
|
2546
|
-
},
|
|
2547
|
-
6042: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2548
|
-
"use strict";
|
|
2549
|
-
const ansiStyles = __webpack_require__(821);
|
|
2550
|
-
const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(3533);
|
|
2551
|
-
const {stringReplaceAll, stringEncaseCRLFWithFirstIndex} = __webpack_require__(4932);
|
|
2552
|
-
const {isArray} = Array;
|
|
2553
|
-
const levelMapping = [ "ansi", "ansi", "ansi256", "ansi16m" ];
|
|
2554
|
-
const styles = Object.create(null);
|
|
2555
|
-
const applyOptions = (object, options = {}) => {
|
|
2556
|
-
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
2557
|
-
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
2558
|
-
}
|
|
2559
|
-
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
2560
|
-
object.level = options.level === undefined ? colorLevel : options.level;
|
|
2561
|
-
};
|
|
2562
|
-
class ChalkClass {
|
|
2563
|
-
constructor(options) {
|
|
2564
|
-
return chalkFactory(options);
|
|
2565
|
-
}
|
|
2566
|
-
}
|
|
2567
|
-
const chalkFactory = options => {
|
|
2568
|
-
const chalk = {};
|
|
2569
|
-
applyOptions(chalk, options);
|
|
2570
|
-
chalk.template = (...arguments_) => chalkTag(chalk.template, ...arguments_);
|
|
2571
|
-
Object.setPrototypeOf(chalk, Chalk.prototype);
|
|
2572
|
-
Object.setPrototypeOf(chalk.template, chalk);
|
|
2573
|
-
chalk.template.constructor = () => {
|
|
2574
|
-
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
2575
|
-
};
|
|
2576
|
-
chalk.template.Instance = ChalkClass;
|
|
2577
|
-
return chalk.template;
|
|
2578
|
-
};
|
|
2579
|
-
function Chalk(options) {
|
|
2580
|
-
return chalkFactory(options);
|
|
2581
|
-
}
|
|
2582
|
-
for (const [styleName, style] of Object.entries(ansiStyles)) {
|
|
2583
|
-
styles[styleName] = {
|
|
2584
|
-
get() {
|
|
2585
|
-
const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
|
|
2586
|
-
Object.defineProperty(this, styleName, {
|
|
2587
|
-
value: builder
|
|
2588
|
-
});
|
|
2589
|
-
return builder;
|
|
2590
|
-
}
|
|
2591
|
-
};
|
|
2592
|
-
}
|
|
2593
|
-
styles.visible = {
|
|
2594
|
-
get() {
|
|
2595
|
-
const builder = createBuilder(this, this._styler, true);
|
|
2596
|
-
Object.defineProperty(this, "visible", {
|
|
2597
|
-
value: builder
|
|
2598
|
-
});
|
|
2599
|
-
return builder;
|
|
2600
|
-
}
|
|
2601
|
-
};
|
|
2602
|
-
const usedModels = [ "rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256" ];
|
|
2603
|
-
for (const model of usedModels) {
|
|
2604
|
-
styles[model] = {
|
|
2605
|
-
get() {
|
|
2606
|
-
const {level} = this;
|
|
2607
|
-
return function(...arguments_) {
|
|
2608
|
-
const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
|
|
2609
|
-
return createBuilder(this, styler, this._isEmpty);
|
|
2610
|
-
};
|
|
2611
|
-
}
|
|
2612
|
-
};
|
|
2613
|
-
}
|
|
2614
|
-
for (const model of usedModels) {
|
|
2615
|
-
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
2616
|
-
styles[bgModel] = {
|
|
2617
|
-
get() {
|
|
2618
|
-
const {level} = this;
|
|
2619
|
-
return function(...arguments_) {
|
|
2620
|
-
const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
|
|
2621
|
-
return createBuilder(this, styler, this._isEmpty);
|
|
2622
|
-
};
|
|
2623
|
-
}
|
|
2624
|
-
};
|
|
2625
|
-
}
|
|
2626
|
-
const proto = Object.defineProperties(() => {}, {
|
|
2627
|
-
...styles,
|
|
2628
|
-
level: {
|
|
2629
|
-
enumerable: true,
|
|
2630
|
-
get() {
|
|
2631
|
-
return this._generator.level;
|
|
2632
|
-
},
|
|
2633
|
-
set(level) {
|
|
2634
|
-
this._generator.level = level;
|
|
2635
|
-
}
|
|
2636
|
-
}
|
|
2637
|
-
});
|
|
2638
|
-
const createStyler = (open, close, parent) => {
|
|
2639
|
-
let openAll;
|
|
2640
|
-
let closeAll;
|
|
2641
|
-
if (parent === undefined) {
|
|
2642
|
-
openAll = open;
|
|
2643
|
-
closeAll = close;
|
|
2644
|
-
} else {
|
|
2645
|
-
openAll = parent.openAll + open;
|
|
2646
|
-
closeAll = close + parent.closeAll;
|
|
2647
|
-
}
|
|
2648
|
-
return {
|
|
2649
|
-
open,
|
|
2650
|
-
close,
|
|
2651
|
-
openAll,
|
|
2652
|
-
closeAll,
|
|
2653
|
-
parent
|
|
2654
|
-
};
|
|
2655
|
-
};
|
|
2656
|
-
const createBuilder = (self, _styler, _isEmpty) => {
|
|
2657
|
-
const builder = (...arguments_) => {
|
|
2658
|
-
if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
|
|
2659
|
-
return applyStyle(builder, chalkTag(builder, ...arguments_));
|
|
2660
|
-
}
|
|
2661
|
-
return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
2662
|
-
};
|
|
2663
|
-
Object.setPrototypeOf(builder, proto);
|
|
2664
|
-
builder._generator = self;
|
|
2665
|
-
builder._styler = _styler;
|
|
2666
|
-
builder._isEmpty = _isEmpty;
|
|
2667
|
-
return builder;
|
|
2668
|
-
};
|
|
2669
|
-
const applyStyle = (self, string) => {
|
|
2670
|
-
if (self.level <= 0 || !string) {
|
|
2671
|
-
return self._isEmpty ? "" : string;
|
|
2672
|
-
}
|
|
2673
|
-
let styler = self._styler;
|
|
2674
|
-
if (styler === undefined) {
|
|
2675
|
-
return string;
|
|
2676
|
-
}
|
|
2677
|
-
const {openAll, closeAll} = styler;
|
|
2678
|
-
if (string.indexOf("") !== -1) {
|
|
2679
|
-
while (styler !== undefined) {
|
|
2680
|
-
string = stringReplaceAll(string, styler.close, styler.open);
|
|
2681
|
-
styler = styler.parent;
|
|
2682
|
-
}
|
|
2683
|
-
}
|
|
2684
|
-
const lfIndex = string.indexOf("\n");
|
|
2685
|
-
if (lfIndex !== -1) {
|
|
2686
|
-
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
2687
|
-
}
|
|
2688
|
-
return openAll + string + closeAll;
|
|
2689
|
-
};
|
|
2690
|
-
let template;
|
|
2691
|
-
const chalkTag = (chalk, ...strings) => {
|
|
2692
|
-
const [firstString] = strings;
|
|
2693
|
-
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
2694
|
-
return strings.join(" ");
|
|
2695
|
-
}
|
|
2696
|
-
const arguments_ = strings.slice(1);
|
|
2697
|
-
const parts = [ firstString.raw[0] ];
|
|
2698
|
-
for (let i = 1; i < firstString.length; i++) {
|
|
2699
|
-
parts.push(String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"), String(firstString.raw[i]));
|
|
2700
|
-
}
|
|
2701
|
-
if (template === undefined) {
|
|
2702
|
-
template = __webpack_require__(8993);
|
|
2703
|
-
}
|
|
2704
|
-
return template(chalk, parts.join(""));
|
|
2705
|
-
};
|
|
2706
|
-
Object.defineProperties(Chalk.prototype, styles);
|
|
2707
|
-
const chalk = Chalk();
|
|
2708
|
-
chalk.supportsColor = stdoutColor;
|
|
2709
|
-
chalk.stderr = Chalk({
|
|
2710
|
-
level: stderrColor ? stderrColor.level : 0
|
|
2711
|
-
});
|
|
2712
|
-
chalk.stderr.supportsColor = stderrColor;
|
|
2713
|
-
module.exports = chalk;
|
|
2714
|
-
},
|
|
2715
|
-
6219: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2716
|
-
"use strict";
|
|
2717
|
-
const SemVer = __webpack_require__(8038);
|
|
2718
|
-
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
2719
|
-
module.exports = patch;
|
|
2720
|
-
},
|
|
2721
|
-
6278: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2722
|
-
"use strict";
|
|
2723
|
-
const SemVer = __webpack_require__(8038);
|
|
2724
|
-
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
2725
|
-
module.exports = compare;
|
|
2726
|
-
},
|
|
2727
|
-
6336: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2728
|
-
"use strict";
|
|
2729
|
-
const Range = __webpack_require__(3597);
|
|
2730
|
-
const satisfies = (version, range, options) => {
|
|
2731
|
-
try {
|
|
2732
|
-
range = new Range(range, options);
|
|
2733
|
-
} catch (er) {
|
|
2734
|
-
return false;
|
|
2735
|
-
}
|
|
2736
|
-
return range.test(version);
|
|
2737
|
-
};
|
|
2738
|
-
module.exports = satisfies;
|
|
2739
|
-
},
|
|
2740
|
-
6670: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2741
|
-
"use strict";
|
|
2742
|
-
const compare = __webpack_require__(6278);
|
|
2743
|
-
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
2744
|
-
module.exports = gt;
|
|
2745
|
-
},
|
|
2746
|
-
6680: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2747
|
-
"use strict";
|
|
2748
|
-
const SemVer = __webpack_require__(8038);
|
|
2749
|
-
const major = (a, loose) => new SemVer(a, loose).major;
|
|
2750
|
-
module.exports = major;
|
|
2751
|
-
},
|
|
2752
|
-
6741: module => {
|
|
2753
|
-
"use strict";
|
|
2754
|
-
const numeric = /^[0-9]+$/;
|
|
2755
|
-
const compareIdentifiers = (a, b) => {
|
|
2756
|
-
const anum = numeric.test(a);
|
|
2757
|
-
const bnum = numeric.test(b);
|
|
2758
|
-
if (anum && bnum) {
|
|
2759
|
-
a = +a;
|
|
2760
|
-
b = +b;
|
|
2761
|
-
}
|
|
2762
|
-
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
2763
|
-
};
|
|
2764
|
-
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
2765
|
-
module.exports = {
|
|
2766
|
-
compareIdentifiers,
|
|
2767
|
-
rcompareIdentifiers
|
|
2768
|
-
};
|
|
2769
|
-
},
|
|
2770
|
-
6837: module => {
|
|
2771
|
-
"use strict";
|
|
2772
|
-
const looseOption = Object.freeze({
|
|
2773
|
-
loose: true
|
|
2774
|
-
});
|
|
2775
|
-
const emptyOpts = Object.freeze({});
|
|
2776
|
-
const parseOptions = options => {
|
|
2777
|
-
if (!options) {
|
|
2778
|
-
return emptyOpts;
|
|
2779
|
-
}
|
|
2780
|
-
if (typeof options !== "object") {
|
|
2781
|
-
return looseOption;
|
|
2782
|
-
}
|
|
2783
|
-
return options;
|
|
2784
|
-
};
|
|
2785
|
-
module.exports = parseOptions;
|
|
2786
|
-
},
|
|
2787
|
-
6927: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2788
|
-
"use strict";
|
|
2789
|
-
const satisfies = __webpack_require__(6336);
|
|
2790
|
-
const compare = __webpack_require__(6278);
|
|
2791
|
-
module.exports = (versions, range, options) => {
|
|
2792
|
-
const set = [];
|
|
2793
|
-
let first = null;
|
|
2794
|
-
let prev = null;
|
|
2795
|
-
const v = versions.sort((a, b) => compare(a, b, options));
|
|
2796
|
-
for (const version of v) {
|
|
2797
|
-
const included = satisfies(version, range, options);
|
|
2798
|
-
if (included) {
|
|
2799
|
-
prev = version;
|
|
2800
|
-
if (!first) {
|
|
2801
|
-
first = version;
|
|
2802
|
-
}
|
|
2803
|
-
} else {
|
|
2804
|
-
if (prev) {
|
|
2805
|
-
set.push([ first, prev ]);
|
|
2806
|
-
}
|
|
2807
|
-
prev = null;
|
|
2808
|
-
first = null;
|
|
2809
|
-
}
|
|
2810
|
-
}
|
|
2811
|
-
if (first) {
|
|
2812
|
-
set.push([ first, null ]);
|
|
2813
|
-
}
|
|
2814
|
-
const ranges = [];
|
|
2815
|
-
for (const [min, max] of set) {
|
|
2816
|
-
if (min === max) {
|
|
2817
|
-
ranges.push(min);
|
|
2818
|
-
} else if (!max && min === v[0]) {
|
|
2819
|
-
ranges.push("*");
|
|
2820
|
-
} else if (!max) {
|
|
2821
|
-
ranges.push(`>=${min}`);
|
|
2822
|
-
} else if (min === v[0]) {
|
|
2823
|
-
ranges.push(`<=${max}`);
|
|
2824
|
-
} else {
|
|
2825
|
-
ranges.push(`${min} - ${max}`);
|
|
2826
|
-
}
|
|
2827
|
-
}
|
|
2828
|
-
const simplified = ranges.join(" || ");
|
|
2829
|
-
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
2830
|
-
return simplified.length < original.length ? simplified : range;
|
|
2831
|
-
};
|
|
2832
|
-
},
|
|
2833
|
-
6928: module => {
|
|
2834
|
-
"use strict";
|
|
2835
|
-
module.exports = require("path");
|
|
2836
|
-
},
|
|
2837
|
-
6999: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2838
|
-
"use strict";
|
|
2839
|
-
const compare = __webpack_require__(6278);
|
|
2840
|
-
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
2841
|
-
module.exports = gte;
|
|
2842
|
-
},
|
|
2843
|
-
7348: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2844
|
-
"use strict";
|
|
2845
|
-
const Range = __webpack_require__(3597);
|
|
2846
|
-
const validRange = (range, options) => {
|
|
2847
|
-
try {
|
|
2848
|
-
return new Range(range, options).range || "*";
|
|
2849
|
-
} catch (er) {
|
|
2850
|
-
return null;
|
|
2851
|
-
}
|
|
2852
|
-
};
|
|
2853
|
-
module.exports = validRange;
|
|
2854
|
-
},
|
|
2855
|
-
7369: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2856
|
-
"use strict";
|
|
2857
|
-
const outside = __webpack_require__(2641);
|
|
2858
|
-
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
2859
|
-
module.exports = gtr;
|
|
2860
|
-
},
|
|
2861
|
-
7748: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2862
|
-
"use strict";
|
|
2863
|
-
const SemVer = __webpack_require__(8038);
|
|
2864
|
-
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
2865
|
-
module.exports = minor;
|
|
2866
|
-
},
|
|
2867
|
-
7955: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2868
|
-
"use strict";
|
|
2869
|
-
const SemVer = __webpack_require__(8038);
|
|
2870
|
-
const Range = __webpack_require__(3597);
|
|
2871
|
-
const gt = __webpack_require__(6670);
|
|
2872
|
-
const minVersion = (range, loose) => {
|
|
2873
|
-
range = new Range(range, loose);
|
|
2874
|
-
let minver = new SemVer("0.0.0");
|
|
2875
|
-
if (range.test(minver)) {
|
|
2876
|
-
return minver;
|
|
2877
|
-
}
|
|
2878
|
-
minver = new SemVer("0.0.0-0");
|
|
2879
|
-
if (range.test(minver)) {
|
|
2880
|
-
return minver;
|
|
2881
|
-
}
|
|
2882
|
-
minver = null;
|
|
2883
|
-
for (let i = 0; i < range.set.length; ++i) {
|
|
2884
|
-
const comparators = range.set[i];
|
|
2885
|
-
let setMin = null;
|
|
2886
|
-
comparators.forEach(comparator => {
|
|
2887
|
-
const compver = new SemVer(comparator.semver.version);
|
|
2888
|
-
switch (comparator.operator) {
|
|
2889
|
-
case ">":
|
|
2890
|
-
if (compver.prerelease.length === 0) {
|
|
2891
|
-
compver.patch++;
|
|
2892
|
-
} else {
|
|
2893
|
-
compver.prerelease.push(0);
|
|
2894
|
-
}
|
|
2895
|
-
compver.raw = compver.format();
|
|
2896
|
-
|
|
2897
|
-
case "":
|
|
2898
|
-
case ">=":
|
|
2899
|
-
if (!setMin || gt(compver, setMin)) {
|
|
2900
|
-
setMin = compver;
|
|
2901
|
-
}
|
|
2902
|
-
break;
|
|
2903
|
-
|
|
2904
|
-
case "<":
|
|
2905
|
-
case "<=":
|
|
2906
|
-
break;
|
|
2907
|
-
|
|
2908
|
-
default:
|
|
2909
|
-
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
2910
|
-
}
|
|
2911
|
-
});
|
|
2912
|
-
if (setMin && (!minver || gt(minver, setMin))) {
|
|
2913
|
-
minver = setMin;
|
|
2914
|
-
}
|
|
2915
|
-
}
|
|
2916
|
-
if (minver && range.test(minver)) {
|
|
2917
|
-
return minver;
|
|
2918
|
-
}
|
|
2919
|
-
return null;
|
|
2920
|
-
};
|
|
2921
|
-
module.exports = minVersion;
|
|
2922
|
-
},
|
|
2923
|
-
8038: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2924
|
-
"use strict";
|
|
2925
|
-
const debug = __webpack_require__(4122);
|
|
2926
|
-
const {MAX_LENGTH, MAX_SAFE_INTEGER} = __webpack_require__(3932);
|
|
2927
|
-
const {safeRe: re, t} = __webpack_require__(928);
|
|
2928
|
-
const parseOptions = __webpack_require__(6837);
|
|
2929
|
-
const {compareIdentifiers} = __webpack_require__(6741);
|
|
2930
|
-
class SemVer {
|
|
2931
|
-
constructor(version, options) {
|
|
2932
|
-
options = parseOptions(options);
|
|
2933
|
-
if (version instanceof SemVer) {
|
|
2934
|
-
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
2935
|
-
return version;
|
|
2936
|
-
} else {
|
|
2937
|
-
version = version.version;
|
|
2938
|
-
}
|
|
2939
|
-
} else if (typeof version !== "string") {
|
|
2940
|
-
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
2941
|
-
}
|
|
2942
|
-
if (version.length > MAX_LENGTH) {
|
|
2943
|
-
throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
2944
|
-
}
|
|
2945
|
-
debug("SemVer", version, options);
|
|
2946
|
-
this.options = options;
|
|
2947
|
-
this.loose = !!options.loose;
|
|
2948
|
-
this.includePrerelease = !!options.includePrerelease;
|
|
2949
|
-
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
2950
|
-
if (!m) {
|
|
2951
|
-
throw new TypeError(`Invalid Version: ${version}`);
|
|
2952
|
-
}
|
|
2953
|
-
this.raw = version;
|
|
2954
|
-
this.major = +m[1];
|
|
2955
|
-
this.minor = +m[2];
|
|
2956
|
-
this.patch = +m[3];
|
|
2957
|
-
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
2958
|
-
throw new TypeError("Invalid major version");
|
|
2959
|
-
}
|
|
2960
|
-
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
2961
|
-
throw new TypeError("Invalid minor version");
|
|
2962
|
-
}
|
|
2963
|
-
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
2964
|
-
throw new TypeError("Invalid patch version");
|
|
2965
|
-
}
|
|
2966
|
-
if (!m[4]) {
|
|
2967
|
-
this.prerelease = [];
|
|
2968
|
-
} else {
|
|
2969
|
-
this.prerelease = m[4].split(".").map(id => {
|
|
2970
|
-
if (/^[0-9]+$/.test(id)) {
|
|
2971
|
-
const num = +id;
|
|
2972
|
-
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
2973
|
-
return num;
|
|
2974
|
-
}
|
|
2975
|
-
}
|
|
2976
|
-
return id;
|
|
2977
|
-
});
|
|
2978
|
-
}
|
|
2979
|
-
this.build = m[5] ? m[5].split(".") : [];
|
|
2980
|
-
this.format();
|
|
2981
|
-
}
|
|
2982
|
-
format() {
|
|
2983
|
-
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
2984
|
-
if (this.prerelease.length) {
|
|
2985
|
-
this.version += `-${this.prerelease.join(".")}`;
|
|
2986
|
-
}
|
|
2987
|
-
return this.version;
|
|
2988
|
-
}
|
|
2989
|
-
toString() {
|
|
2990
|
-
return this.version;
|
|
2991
|
-
}
|
|
2992
|
-
compare(other) {
|
|
2993
|
-
debug("SemVer.compare", this.version, this.options, other);
|
|
2994
|
-
if (!(other instanceof SemVer)) {
|
|
2995
|
-
if (typeof other === "string" && other === this.version) {
|
|
2996
|
-
return 0;
|
|
2997
|
-
}
|
|
2998
|
-
other = new SemVer(other, this.options);
|
|
2999
|
-
}
|
|
3000
|
-
if (other.version === this.version) {
|
|
3001
|
-
return 0;
|
|
3002
|
-
}
|
|
3003
|
-
return this.compareMain(other) || this.comparePre(other);
|
|
3004
|
-
}
|
|
3005
|
-
compareMain(other) {
|
|
3006
|
-
if (!(other instanceof SemVer)) {
|
|
3007
|
-
other = new SemVer(other, this.options);
|
|
3008
|
-
}
|
|
3009
|
-
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
3010
|
-
}
|
|
3011
|
-
comparePre(other) {
|
|
3012
|
-
if (!(other instanceof SemVer)) {
|
|
3013
|
-
other = new SemVer(other, this.options);
|
|
3014
|
-
}
|
|
3015
|
-
if (this.prerelease.length && !other.prerelease.length) {
|
|
3016
|
-
return -1;
|
|
3017
|
-
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
3018
|
-
return 1;
|
|
3019
|
-
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
3020
|
-
return 0;
|
|
3021
|
-
}
|
|
3022
|
-
let i = 0;
|
|
3023
|
-
do {
|
|
3024
|
-
const a = this.prerelease[i];
|
|
3025
|
-
const b = other.prerelease[i];
|
|
3026
|
-
debug("prerelease compare", i, a, b);
|
|
3027
|
-
if (a === undefined && b === undefined) {
|
|
3028
|
-
return 0;
|
|
3029
|
-
} else if (b === undefined) {
|
|
3030
|
-
return 1;
|
|
3031
|
-
} else if (a === undefined) {
|
|
3032
|
-
return -1;
|
|
3033
|
-
} else if (a === b) {
|
|
3034
|
-
continue;
|
|
3035
|
-
} else {
|
|
3036
|
-
return compareIdentifiers(a, b);
|
|
3037
|
-
}
|
|
3038
|
-
} while (++i);
|
|
3039
|
-
}
|
|
3040
|
-
compareBuild(other) {
|
|
3041
|
-
if (!(other instanceof SemVer)) {
|
|
3042
|
-
other = new SemVer(other, this.options);
|
|
3043
|
-
}
|
|
3044
|
-
let i = 0;
|
|
3045
|
-
do {
|
|
3046
|
-
const a = this.build[i];
|
|
3047
|
-
const b = other.build[i];
|
|
3048
|
-
debug("build compare", i, a, b);
|
|
3049
|
-
if (a === undefined && b === undefined) {
|
|
3050
|
-
return 0;
|
|
3051
|
-
} else if (b === undefined) {
|
|
3052
|
-
return 1;
|
|
3053
|
-
} else if (a === undefined) {
|
|
3054
|
-
return -1;
|
|
3055
|
-
} else if (a === b) {
|
|
3056
|
-
continue;
|
|
3057
|
-
} else {
|
|
3058
|
-
return compareIdentifiers(a, b);
|
|
3059
|
-
}
|
|
3060
|
-
} while (++i);
|
|
3061
|
-
}
|
|
3062
|
-
inc(release, identifier, identifierBase) {
|
|
3063
|
-
if (release.startsWith("pre")) {
|
|
3064
|
-
if (!identifier && identifierBase === false) {
|
|
3065
|
-
throw new Error("invalid increment argument: identifier is empty");
|
|
3066
|
-
}
|
|
3067
|
-
if (identifier) {
|
|
3068
|
-
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
3069
|
-
if (!match || match[1] !== identifier) {
|
|
3070
|
-
throw new Error(`invalid identifier: ${identifier}`);
|
|
3071
|
-
}
|
|
3072
|
-
}
|
|
3073
|
-
}
|
|
3074
|
-
switch (release) {
|
|
3075
|
-
case "premajor":
|
|
3076
|
-
this.prerelease.length = 0;
|
|
3077
|
-
this.patch = 0;
|
|
3078
|
-
this.minor = 0;
|
|
3079
|
-
this.major++;
|
|
3080
|
-
this.inc("pre", identifier, identifierBase);
|
|
3081
|
-
break;
|
|
3082
|
-
|
|
3083
|
-
case "preminor":
|
|
3084
|
-
this.prerelease.length = 0;
|
|
3085
|
-
this.patch = 0;
|
|
3086
|
-
this.minor++;
|
|
3087
|
-
this.inc("pre", identifier, identifierBase);
|
|
3088
|
-
break;
|
|
3089
|
-
|
|
3090
|
-
case "prepatch":
|
|
3091
|
-
this.prerelease.length = 0;
|
|
3092
|
-
this.inc("patch", identifier, identifierBase);
|
|
3093
|
-
this.inc("pre", identifier, identifierBase);
|
|
3094
|
-
break;
|
|
3095
|
-
|
|
3096
|
-
case "prerelease":
|
|
3097
|
-
if (this.prerelease.length === 0) {
|
|
3098
|
-
this.inc("patch", identifier, identifierBase);
|
|
3099
|
-
}
|
|
3100
|
-
this.inc("pre", identifier, identifierBase);
|
|
3101
|
-
break;
|
|
3102
|
-
|
|
3103
|
-
case "release":
|
|
3104
|
-
if (this.prerelease.length === 0) {
|
|
3105
|
-
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
3106
|
-
}
|
|
3107
|
-
this.prerelease.length = 0;
|
|
3108
|
-
break;
|
|
3109
|
-
|
|
3110
|
-
case "major":
|
|
3111
|
-
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
3112
|
-
this.major++;
|
|
3113
|
-
}
|
|
3114
|
-
this.minor = 0;
|
|
3115
|
-
this.patch = 0;
|
|
3116
|
-
this.prerelease = [];
|
|
3117
|
-
break;
|
|
3118
|
-
|
|
3119
|
-
case "minor":
|
|
3120
|
-
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
3121
|
-
this.minor++;
|
|
3122
|
-
}
|
|
3123
|
-
this.patch = 0;
|
|
3124
|
-
this.prerelease = [];
|
|
3125
|
-
break;
|
|
3126
|
-
|
|
3127
|
-
case "patch":
|
|
3128
|
-
if (this.prerelease.length === 0) {
|
|
3129
|
-
this.patch++;
|
|
3130
|
-
}
|
|
3131
|
-
this.prerelease = [];
|
|
3132
|
-
break;
|
|
3133
|
-
|
|
3134
|
-
case "pre":
|
|
3135
|
-
{
|
|
3136
|
-
const base = Number(identifierBase) ? 1 : 0;
|
|
3137
|
-
if (this.prerelease.length === 0) {
|
|
3138
|
-
this.prerelease = [ base ];
|
|
3139
|
-
} else {
|
|
3140
|
-
let i = this.prerelease.length;
|
|
3141
|
-
while (--i >= 0) {
|
|
3142
|
-
if (typeof this.prerelease[i] === "number") {
|
|
3143
|
-
this.prerelease[i]++;
|
|
3144
|
-
i = -2;
|
|
3145
|
-
}
|
|
3146
|
-
}
|
|
3147
|
-
if (i === -1) {
|
|
3148
|
-
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
3149
|
-
throw new Error("invalid increment argument: identifier already exists");
|
|
3150
|
-
}
|
|
3151
|
-
this.prerelease.push(base);
|
|
3152
|
-
}
|
|
3153
|
-
}
|
|
3154
|
-
if (identifier) {
|
|
3155
|
-
let prerelease = [ identifier, base ];
|
|
3156
|
-
if (identifierBase === false) {
|
|
3157
|
-
prerelease = [ identifier ];
|
|
3158
|
-
}
|
|
3159
|
-
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
3160
|
-
if (isNaN(this.prerelease[1])) {
|
|
3161
|
-
this.prerelease = prerelease;
|
|
3162
|
-
}
|
|
3163
|
-
} else {
|
|
3164
|
-
this.prerelease = prerelease;
|
|
3165
|
-
}
|
|
3166
|
-
}
|
|
3167
|
-
break;
|
|
3168
|
-
}
|
|
3169
|
-
|
|
3170
|
-
default:
|
|
3171
|
-
throw new Error(`invalid increment argument: ${release}`);
|
|
3172
|
-
}
|
|
3173
|
-
this.raw = this.format();
|
|
3174
|
-
if (this.build.length) {
|
|
3175
|
-
this.raw += `+${this.build.join(".")}`;
|
|
3176
|
-
}
|
|
3177
|
-
return this;
|
|
3178
|
-
}
|
|
3179
|
-
}
|
|
3180
|
-
module.exports = SemVer;
|
|
3181
|
-
},
|
|
3182
|
-
8261: (__unused_webpack_module, exports, __webpack_require__) => {
|
|
3183
|
-
"use strict";
|
|
3184
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3185
|
-
value: true
|
|
3186
|
-
});
|
|
3187
|
-
exports.NodeRelease = void 0;
|
|
3188
|
-
exports.checkNode = checkNode;
|
|
3189
|
-
const chalk_1 = __webpack_require__(6042);
|
|
3190
|
-
const console_1 = __webpack_require__(4236);
|
|
3191
|
-
const process_1 = __webpack_require__(932);
|
|
3192
|
-
const constants_1 = __webpack_require__(268);
|
|
3193
|
-
var constants_2 = __webpack_require__(268);
|
|
3194
|
-
Object.defineProperty(exports, "NodeRelease", {
|
|
3195
|
-
enumerable: true,
|
|
3196
|
-
get: function() {
|
|
3197
|
-
return constants_2.NodeRelease;
|
|
3198
|
-
}
|
|
3199
|
-
});
|
|
3200
|
-
function checkNode(envPrefix = "JSII") {
|
|
3201
|
-
var _a;
|
|
3202
|
-
const {nodeRelease, knownBroken} = constants_1.NodeRelease.forThisRuntime();
|
|
3203
|
-
const defaultCallToAction = "Should you encounter odd runtime issues, please try using one of the supported release before filing a bug report.";
|
|
3204
|
-
if ((nodeRelease === null || nodeRelease === void 0 ? void 0 : nodeRelease.supported) === false) {
|
|
3205
|
-
const silenceVariable = `${envPrefix}_SILENCE_WARNING_END_OF_LIFE_NODE_VERSION`;
|
|
3206
|
-
const silencedVersions = ((_a = process.env[silenceVariable]) !== null && _a !== void 0 ? _a : "").split(",").map(v => v.trim());
|
|
3207
|
-
if (!silencedVersions.includes(nodeRelease.majorVersion.toString())) {
|
|
3208
|
-
const eos = nodeRelease.endOfJsiiSupportDate.toISOString().slice(0, 10);
|
|
3209
|
-
veryVisibleMessage(chalk_1.bgRed.white.bold, `Node ${nodeRelease.majorVersion} is end-of-life and not supported anymore by this software since ${eos}.`, `Please upgrade to a supported node version as soon as possible.`);
|
|
3210
|
-
}
|
|
3211
|
-
} else if (knownBroken) {
|
|
3212
|
-
const silenceVariable = `${envPrefix}_SILENCE_WARNING_KNOWN_BROKEN_NODE_VERSION`;
|
|
3213
|
-
if (!process.env[silenceVariable]) veryVisibleMessage(chalk_1.bgRed.white.bold, `Node ${process_1.version} is unsupported and has known compatibility issues with this software.`, defaultCallToAction, silenceVariable);
|
|
3214
|
-
} else if (!nodeRelease || nodeRelease.untested) {
|
|
3215
|
-
const silenceVariable = `${envPrefix}_SILENCE_WARNING_UNTESTED_NODE_VERSION`;
|
|
3216
|
-
if (!process.env[silenceVariable]) {
|
|
3217
|
-
veryVisibleMessage(chalk_1.bgYellow.black, `This software has not been tested with node ${process_1.version}.`, defaultCallToAction, silenceVariable);
|
|
3218
|
-
}
|
|
3219
|
-
} else if (nodeRelease === null || nodeRelease === void 0 ? void 0 : nodeRelease.deprecated) {
|
|
3220
|
-
const silenceVariable = `${envPrefix}_SILENCE_WARNING_DEPRECATED_NODE_VERSION`;
|
|
3221
|
-
if (!process.env[silenceVariable]) {
|
|
3222
|
-
const eol = nodeRelease.endOfLifeDate.toISOString().slice(0, 10);
|
|
3223
|
-
const eos = nodeRelease.endOfJsiiSupportDate.toISOString().slice(0, 10);
|
|
3224
|
-
veryVisibleMessage(chalk_1.bgYellowBright.black, `Node ${nodeRelease.majorVersion} has reached end-of-life on ${eol} and will no longer be supported in new releases after ${eos}.`, `Please upgrade to a supported node version as soon as possible.`, silenceVariable);
|
|
3225
|
-
}
|
|
3226
|
-
}
|
|
3227
|
-
function veryVisibleMessage(chalk, message, callToAction, silenceVariable) {
|
|
3228
|
-
const lines = [ message, callToAction, "", `This software is currently running on node ${process_1.version}.`, "As of the current release of this software, supported node releases are:", ...constants_1.NodeRelease.ALL_RELEASES.filter(release => release.supported).sort((l, r) => {
|
|
3229
|
-
var _a, _b, _c, _d;
|
|
3230
|
-
return ((_b = (_a = r.endOfLifeDate) === null || _a === void 0 ? void 0 : _a.getTime()) !== null && _b !== void 0 ? _b : 0) - ((_d = (_c = l.endOfLifeDate) === null || _c === void 0 ? void 0 : _c.getTime()) !== null && _d !== void 0 ? _d : 0);
|
|
3231
|
-
}).map(release => `- ${release.toString()}${release.deprecated ? " [DEPRECATED]" : ""}`), ...silenceVariable ? [ "", `This warning can be silenced by setting the ${silenceVariable} environment variable.` ] : [] ];
|
|
3232
|
-
const len = Math.max(...lines.map(l => l.length));
|
|
3233
|
-
const border = chalk("!".repeat(len + 8));
|
|
3234
|
-
const spacer = chalk(`!! ${" ".repeat(len)} !!`);
|
|
3235
|
-
(0, console_1.error)(border);
|
|
3236
|
-
(0, console_1.error)(spacer);
|
|
3237
|
-
for (const line of lines) {
|
|
3238
|
-
(0, console_1.error)(chalk(`!! ${line.padEnd(len, " ")} !!`));
|
|
3239
|
-
}
|
|
3240
|
-
(0, console_1.error)(spacer);
|
|
3241
|
-
(0, console_1.error)(border);
|
|
3242
|
-
}
|
|
3243
|
-
}
|
|
3244
|
-
},
|
|
3245
|
-
8471: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3246
|
-
"use strict";
|
|
3247
|
-
const SemVer = __webpack_require__(8038);
|
|
3248
|
-
const compareBuild = (a, b, loose) => {
|
|
3249
|
-
const versionA = new SemVer(a, loose);
|
|
3250
|
-
const versionB = new SemVer(b, loose);
|
|
3251
|
-
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
3252
|
-
};
|
|
3253
|
-
module.exports = compareBuild;
|
|
3254
|
-
},
|
|
3255
|
-
8474: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3256
|
-
"use strict";
|
|
3257
|
-
const Range = __webpack_require__(3597);
|
|
3258
|
-
const intersects = (r1, r2, options) => {
|
|
3259
|
-
r1 = new Range(r1, options);
|
|
3260
|
-
r2 = new Range(r2, options);
|
|
3261
|
-
return r1.intersects(r2, options);
|
|
3262
|
-
};
|
|
3263
|
-
module.exports = intersects;
|
|
3264
|
-
},
|
|
3265
|
-
8661: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3266
|
-
"use strict";
|
|
3267
|
-
const compare = __webpack_require__(6278);
|
|
3268
|
-
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
3269
|
-
module.exports = neq;
|
|
3270
|
-
},
|
|
3271
|
-
8935: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3272
|
-
"use strict";
|
|
3273
|
-
const compare = __webpack_require__(6278);
|
|
3274
|
-
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
3275
|
-
module.exports = eq;
|
|
3276
|
-
},
|
|
3277
|
-
8993: module => {
|
|
3278
|
-
"use strict";
|
|
3279
|
-
const TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
3280
|
-
const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
3281
|
-
const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
|
3282
|
-
const ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
|
|
3283
|
-
const ESCAPES = new Map([ [ "n", "\n" ], [ "r", "\r" ], [ "t", "\t" ], [ "b", "\b" ], [ "f", "\f" ], [ "v", "\v" ], [ "0", "\0" ], [ "\\", "\\" ], [ "e", "" ], [ "a", "" ] ]);
|
|
3284
|
-
function unescape(c) {
|
|
3285
|
-
const u = c[0] === "u";
|
|
3286
|
-
const bracket = c[1] === "{";
|
|
3287
|
-
if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
|
|
3288
|
-
return String.fromCharCode(parseInt(c.slice(1), 16));
|
|
3289
|
-
}
|
|
3290
|
-
if (u && bracket) {
|
|
3291
|
-
return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
|
|
3292
|
-
}
|
|
3293
|
-
return ESCAPES.get(c) || c;
|
|
3294
|
-
}
|
|
3295
|
-
function parseArguments(name, arguments_) {
|
|
3296
|
-
const results = [];
|
|
3297
|
-
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
3298
|
-
let matches;
|
|
3299
|
-
for (const chunk of chunks) {
|
|
3300
|
-
const number = Number(chunk);
|
|
3301
|
-
if (!Number.isNaN(number)) {
|
|
3302
|
-
results.push(number);
|
|
3303
|
-
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
3304
|
-
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
|
|
3305
|
-
} else {
|
|
3306
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
3307
|
-
}
|
|
3308
|
-
}
|
|
3309
|
-
return results;
|
|
3310
|
-
}
|
|
3311
|
-
function parseStyle(style) {
|
|
3312
|
-
STYLE_REGEX.lastIndex = 0;
|
|
3313
|
-
const results = [];
|
|
3314
|
-
let matches;
|
|
3315
|
-
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
3316
|
-
const name = matches[1];
|
|
3317
|
-
if (matches[2]) {
|
|
3318
|
-
const args = parseArguments(name, matches[2]);
|
|
3319
|
-
results.push([ name ].concat(args));
|
|
3320
|
-
} else {
|
|
3321
|
-
results.push([ name ]);
|
|
3322
|
-
}
|
|
3323
|
-
}
|
|
3324
|
-
return results;
|
|
3325
|
-
}
|
|
3326
|
-
function buildStyle(chalk, styles) {
|
|
3327
|
-
const enabled = {};
|
|
3328
|
-
for (const layer of styles) {
|
|
3329
|
-
for (const style of layer.styles) {
|
|
3330
|
-
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
3331
|
-
}
|
|
3332
|
-
}
|
|
3333
|
-
let current = chalk;
|
|
3334
|
-
for (const [styleName, styles] of Object.entries(enabled)) {
|
|
3335
|
-
if (!Array.isArray(styles)) {
|
|
3336
|
-
continue;
|
|
3337
|
-
}
|
|
3338
|
-
if (!(styleName in current)) {
|
|
3339
|
-
throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
3340
|
-
}
|
|
3341
|
-
current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
|
|
3342
|
-
}
|
|
3343
|
-
return current;
|
|
3344
|
-
}
|
|
3345
|
-
module.exports = (chalk, temporary) => {
|
|
3346
|
-
const styles = [];
|
|
3347
|
-
const chunks = [];
|
|
3348
|
-
let chunk = [];
|
|
3349
|
-
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
3350
|
-
if (escapeCharacter) {
|
|
3351
|
-
chunk.push(unescape(escapeCharacter));
|
|
3352
|
-
} else if (style) {
|
|
3353
|
-
const string = chunk.join("");
|
|
3354
|
-
chunk = [];
|
|
3355
|
-
chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
|
|
3356
|
-
styles.push({
|
|
3357
|
-
inverse,
|
|
3358
|
-
styles: parseStyle(style)
|
|
3359
|
-
});
|
|
3360
|
-
} else if (close) {
|
|
3361
|
-
if (styles.length === 0) {
|
|
3362
|
-
throw new Error("Found extraneous } in Chalk template literal");
|
|
3363
|
-
}
|
|
3364
|
-
chunks.push(buildStyle(chalk, styles)(chunk.join("")));
|
|
3365
|
-
chunk = [];
|
|
3366
|
-
styles.pop();
|
|
3367
|
-
} else {
|
|
3368
|
-
chunk.push(character);
|
|
3369
|
-
}
|
|
3370
|
-
});
|
|
3371
|
-
chunks.push(chunk.join(""));
|
|
3372
|
-
if (styles.length > 0) {
|
|
3373
|
-
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
|
|
3374
|
-
throw new Error(errMessage);
|
|
3375
|
-
}
|
|
3376
|
-
return chunks.join("");
|
|
3377
|
-
};
|
|
3378
|
-
},
|
|
3379
|
-
9024: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3380
|
-
"use strict";
|
|
3381
|
-
const outside = __webpack_require__(2641);
|
|
3382
|
-
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
3383
|
-
module.exports = ltr;
|
|
3384
|
-
},
|
|
3385
|
-
9304: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3386
|
-
"use strict";
|
|
3387
|
-
const SemVer = __webpack_require__(8038);
|
|
3388
|
-
const Range = __webpack_require__(3597);
|
|
3389
|
-
const minSatisfying = (versions, range, options) => {
|
|
3390
|
-
let min = null;
|
|
3391
|
-
let minSV = null;
|
|
3392
|
-
let rangeObj = null;
|
|
3393
|
-
try {
|
|
3394
|
-
rangeObj = new Range(range, options);
|
|
3395
|
-
} catch (er) {
|
|
3396
|
-
return null;
|
|
3397
|
-
}
|
|
3398
|
-
versions.forEach(v => {
|
|
3399
|
-
if (rangeObj.test(v)) {
|
|
3400
|
-
if (!min || minSV.compare(v) === 1) {
|
|
3401
|
-
min = v;
|
|
3402
|
-
minSV = new SemVer(min, options);
|
|
3403
|
-
}
|
|
3404
|
-
}
|
|
3405
|
-
});
|
|
3406
|
-
return min;
|
|
3407
|
-
};
|
|
3408
|
-
module.exports = minSatisfying;
|
|
3409
|
-
},
|
|
3410
|
-
9533: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3411
|
-
"use strict";
|
|
3412
|
-
const Range = __webpack_require__(3597);
|
|
3413
|
-
const toComparators = (range, options) => new Range(range, options).set.map(comp => comp.map(c => c.value).join(" ").trim().split(" "));
|
|
3414
|
-
module.exports = toComparators;
|
|
3415
|
-
},
|
|
3416
|
-
9614: module => {
|
|
3417
|
-
"use strict";
|
|
3418
|
-
module.exports = (flag, argv = process.argv) => {
|
|
3419
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
3420
|
-
const position = argv.indexOf(prefix + flag);
|
|
3421
|
-
const terminatorPosition = argv.indexOf("--");
|
|
3422
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
3423
|
-
};
|
|
3424
|
-
},
|
|
3425
|
-
9746: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3426
|
-
"use strict";
|
|
3427
|
-
const compare = __webpack_require__(6278);
|
|
3428
|
-
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
3429
|
-
module.exports = lte;
|
|
3430
|
-
}
|
|
3431
|
-
};
|
|
3432
|
-
|
|
3433
|
-
var __webpack_module_cache__ = {};
|
|
3434
|
-
|
|
3435
|
-
function __webpack_require__(moduleId) {
|
|
3436
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
3437
|
-
if (cachedModule !== undefined) {
|
|
3438
|
-
return cachedModule.exports;
|
|
3439
|
-
}
|
|
3440
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
3441
|
-
id: moduleId,
|
|
3442
|
-
loaded: false,
|
|
3443
|
-
exports: {}
|
|
3444
|
-
};
|
|
3445
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
3446
|
-
module.loaded = true;
|
|
3447
|
-
return module.exports;
|
|
3448
|
-
}
|
|
3449
|
-
|
|
3450
|
-
(() => {
|
|
3451
|
-
__webpack_require__.nmd = module => {
|
|
3452
|
-
module.paths = [];
|
|
3453
|
-
if (!module.children) module.children = [];
|
|
3454
|
-
return module;
|
|
3455
|
-
};
|
|
3456
|
-
})();
|
|
3457
|
-
|
|
3458
|
-
var __webpack_exports__ = {};
|
|
3459
|
-
|
|
3460
|
-
(() => {
|
|
3461
|
-
"use strict";
|
|
3462
|
-
var exports = __webpack_exports__;
|
|
3463
|
-
var __webpack_unused_export__;
|
|
3464
|
-
__webpack_unused_export__ = {
|
|
3465
|
-
value: true
|
|
3466
|
-
};
|
|
3467
|
-
__webpack_require__(5276);
|
|
3468
|
-
const child_process_1 = __webpack_require__(5317);
|
|
3469
|
-
const console_1 = __webpack_require__(4236);
|
|
3470
|
-
const os_1 = __webpack_require__(857);
|
|
3471
|
-
const path_1 = __webpack_require__(6928);
|
|
3472
|
-
const child = (0, child_process_1.spawn)(process.execPath, [ ...process.execArgv, "--preserve-symlinks", (0,
|
|
3473
|
-
path_1.resolve)(__dirname, "..", "lib", "program.js") ], {
|
|
3474
|
-
stdio: [ "ignore", "pipe", "pipe", "pipe" ]
|
|
3475
|
-
});
|
|
3476
|
-
child.once("end", (code, signal) => {
|
|
3477
|
-
var _a;
|
|
3478
|
-
if (signal != null) {
|
|
3479
|
-
process.exit(128 + ((_a = os_1.constants.signals[signal]) !== null && _a !== void 0 ? _a : 0));
|
|
3480
|
-
}
|
|
3481
|
-
process.exit(code);
|
|
3482
|
-
});
|
|
3483
|
-
child.once("error", err => {
|
|
3484
|
-
console.error("Failed to spawn child process:", err.stack);
|
|
3485
|
-
process.exit(-1);
|
|
3486
|
-
});
|
|
3487
|
-
for (const signal of Object.keys(os_1.constants.signals)) {
|
|
3488
|
-
if (signal === "SIGKILL" || signal === "SIGSTOP") {
|
|
3489
|
-
continue;
|
|
3490
|
-
}
|
|
3491
|
-
process.on(signal, sig => child.kill(sig));
|
|
3492
|
-
}
|
|
3493
|
-
function makeHandler(tag) {
|
|
3494
|
-
return chunk => {
|
|
3495
|
-
const buffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
3496
|
-
(0, console_1.error)(JSON.stringify({
|
|
3497
|
-
[tag]: buffer.toString("base64")
|
|
3498
|
-
}));
|
|
3499
|
-
};
|
|
3500
|
-
}
|
|
3501
|
-
child.stdout.on("data", makeHandler("stdout"));
|
|
3502
|
-
child.stderr.on("data", makeHandler("stderr"));
|
|
3503
|
-
const commands = child.stdio[3];
|
|
3504
|
-
process.stdin.pipe(commands);
|
|
3505
|
-
commands.pipe(process.stdout);
|
|
3506
|
-
})();
|
|
1
|
+
var __webpack_modules__={821(e,t,r){"use strict";e=r.nmd(e);const wrapAnsi16=(e,t)=>(...r)=>`[${e(...r)+t}m`,wrapAnsi256=(e,t)=>(...r)=>{const s=e(...r);return`[${38+t};5;${s}m`},wrapAnsi16m=(e,t)=>(...r)=>{const s=e(...r);return`[${38+t};2;${s[0]};${s[1]};${s[2]}m`},ansi2ansi=e=>e,rgb2rgb=(e,t,r)=>[e,t,r],setLazyProperty=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const s=r();return Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0}),s},enumerable:!0,configurable:!0})};let s;const makeDynamicStyles=(e,t,n,o)=>{void 0===s&&(s=r(2172));const i=o?10:0,a={};for(const[r,o]of Object.entries(s)){const s="ansi16"===r?"ansi":r;r===t?a[s]=e(n,i):"object"==typeof o&&(a[s]=e(o[t],i))}return a};Object.defineProperty(e,"exports",{enumerable:!0,get:function assembleStyles(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,s]of Object.entries(t)){for(const[r,n]of Object.entries(s))t[r]={open:`[${n[0]}m`,close:`[${n[1]}m`},s[r]=t[r],e.set(n[0],n[1]);Object.defineProperty(t,r,{value:s,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="[39m",t.bgColor.close="[49m",setLazyProperty(t.color,"ansi",()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!1)),setLazyProperty(t.color,"ansi256",()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!1)),setLazyProperty(t.color,"ansi16m",()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!1)),setLazyProperty(t.bgColor,"ansi",()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!0)),setLazyProperty(t.bgColor,"ansi256",()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!0)),setLazyProperty(t.bgColor,"ansi16m",()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!0)),t}})},6042(e,t,r){"use strict";const s=r(821),{stdout:n,stderr:o}=r(3533),{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:a}=r(4932),{isArray:l}=Array,c=["ansi","ansi","ansi256","ansi16m"],u=Object.create(null);class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=n?n.level:0;e.level=void 0===t.level?r:t.level})(t,e),t.template=(...e)=>chalkTag(t.template,...e),Object.setPrototypeOf(t,Chalk.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=ChalkClass,t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(s))u[e]={get(){const r=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};u.visible={get(){const e=createBuilder(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const h=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of h)u[e]={get(){const{level:t}=this;return function(...r){const n=createStyler(s.color[c[t]][e](...r),s.color.close,this._styler);return createBuilder(this,n,this._isEmpty)}}};for(const e of h){u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const n=createStyler(s.bgColor[c[t]][e](...r),s.bgColor.close,this._styler);return createBuilder(this,n,this._isEmpty)}}}}const p=Object.defineProperties(()=>{},{...u,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),createStyler=(e,t,r)=>{let s,n;return void 0===r?(s=e,n=t):(s=r.openAll+e,n=t+r.closeAll),{open:e,close:t,openAll:s,closeAll:n,parent:r}},createBuilder=(e,t,r)=>{const builder=(...e)=>l(e[0])&&l(e[0].raw)?applyStyle(builder,chalkTag(builder,...e)):applyStyle(builder,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(builder,p),builder._generator=e,builder._styler=t,builder._isEmpty=r,builder},applyStyle=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(void 0===r)return t;const{openAll:s,closeAll:n}=r;if(-1!==t.indexOf(""))for(;void 0!==r;)t=i(t,r.close,r.open),r=r.parent;const o=t.indexOf("\n");return-1!==o&&(t=a(t,n,s,o)),s+t+n};let f;const chalkTag=(e,...t)=>{const[s]=t;if(!l(s)||!l(s.raw))return t.join(" ");const n=t.slice(1),o=[s.raw[0]];for(let e=1;e<s.length;e++)o.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&"),String(s.raw[e]));return void 0===f&&(f=r(8993)),f(e,o.join(""))};Object.defineProperties(Chalk.prototype,u);const d=Chalk();d.supportsColor=n,d.stderr=Chalk({level:o?o.level:0}),d.stderr.supportsColor=o,e.exports=d},8993(e){"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,n=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t="u"===e[0],r="{"===e[1];return t&&!r&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o.get(e)||e}function parseArguments(e,t){const r=[],o=t.trim().split(/\s*,\s*/g);let i;for(const t of o){const o=Number(t);if(Number.isNaN(o)){if(!(i=t.match(s)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(i[2].replace(n,(e,t,r)=>t?unescape(t):r))}else r.push(o)}return r}function parseStyle(e){r.lastIndex=0;const t=[];let s;for(;null!==(s=r.exec(e));){const e=s[1];if(s[2]){const r=parseArguments(e,s[2]);t.push([e].concat(r))}else t.push([e])}return t}function buildStyle(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let s=e;for(const[e,t]of Object.entries(r))if(Array.isArray(t)){if(!(e in s))throw new Error(`Unknown Chalk style: ${e}`);s=t.length>0?s[e](...t):s[e]}return s}e.exports=(e,r)=>{const s=[],n=[];let o=[];if(r.replace(t,(t,r,i,a,l,c)=>{if(r)o.push(unescape(r));else if(a){const t=o.join("");o=[],n.push(0===s.length?t:buildStyle(e,s)(t)),s.push({inverse:i,styles:parseStyle(a)})}else if(l){if(0===s.length)throw new Error("Found extraneous } in Chalk template literal");n.push(buildStyle(e,s)(o.join(""))),o=[],s.pop()}else o.push(c)}),n.push(o.join("")),s.length>0){const e=`Chalk template literal is missing ${s.length} closing bracket${1===s.length?"":"s"} (\`}\`)`;throw new Error(e)}return n.join("")}},4932(e){"use strict";e.exports={stringReplaceAll:(e,t,r)=>{let s=e.indexOf(t);if(-1===s)return e;const n=t.length;let o=0,i="";do{i+=e.substr(o,s-o)+t+r,o=s+n,s=e.indexOf(t,o)}while(-1!==s);return i+=e.substr(o),i},stringEncaseCRLFWithFirstIndex:(e,t,r,s)=>{let n=0,o="";do{const i="\r"===e[s-1];o+=e.substr(n,(i?s-1:s)-n)+t+(i?"\r\n":"\n")+r,n=s+1,s=e.indexOf("\n",n)}while(-1!==s);return o+=e.substr(n),o}}},1873(e,t,r){const s=r(2694),n={};for(const e of Object.keys(s))n[s[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:t}),Object.defineProperty(o[e],"labels",{value:r})}function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,s=e[2]/255,n=Math.min(t,r,s),o=Math.max(t,r,s),i=o-n;let a,l;o===n?a=0:t===o?a=(r-s)/i:r===o?a=2+(s-t)/i:s===o&&(a=4+(t-r)/i),a=Math.min(60*a,360),a<0&&(a+=360);const c=(n+o)/2;return l=o===n?0:c<=.5?i/(o+n):i/(2-o-n),[a,100*l,100*c]},o.rgb.hsv=function(e){let t,r,s,n,o;const i=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(i,a,l),u=c-Math.min(i,a,l),diffc=function(e){return(c-e)/6/u+.5};return 0===u?(n=0,o=0):(o=u/c,t=diffc(i),r=diffc(a),s=diffc(l),i===c?n=s-r:a===c?n=1/3+t-s:l===c&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*o,100*c]},o.rgb.hwb=function(e){const t=e[0],r=e[1];let s=e[2];const n=o.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,s));return s=1-1/255*Math.max(t,Math.max(r,s)),[n,100*i,100*s]},o.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,s=e[2]/255,n=Math.min(1-t,1-r,1-s);return[100*((1-t-n)/(1-n)||0),100*((1-r-n)/(1-n)||0),100*((1-s-n)/(1-n)||0),100*n]},o.rgb.keyword=function(e){const t=n[e];if(t)return t;let r,o=1/0;for(const t of Object.keys(s)){const n=comparativeDistance(e,s[t]);n<o&&(o=n,r=t)}return r},o.keyword.rgb=function(e){return s[e]},o.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,s=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;return[100*(.4124*t+.3576*r+.1805*s),100*(.2126*t+.7152*r+.0722*s),100*(.0193*t+.1192*r+.9505*s)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let r=t[0],s=t[1],n=t[2];r/=95.047,s/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*s-16,500*(r-s),200*(s-n)]},o.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,s=e[2]/100;let n,o,i;if(0===r)return i=255*s,[i,i,i];n=s<.5?s*(1+r):s+r-s*r;const a=2*s-n,l=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,i=6*o<1?a+6*(n-a)*o:2*o<1?n:3*o<2?a+(n-a)*(2/3-o)*6:a,l[e]=255*i;return l},o.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,s=e[2]/100,n=r;const o=Math.max(s,.01);s*=2,r*=s<=1?s:2-s,n*=o<=1?o:2-o;return[t,100*(0===s?2*n/(o+n):2*r/(s+r)),100*((s+r)/2)]},o.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let s=e[2]/100;const n=Math.floor(t)%6,o=t-Math.floor(t),i=255*s*(1-r),a=255*s*(1-r*o),l=255*s*(1-r*(1-o));switch(s*=255,n){case 0:return[s,l,i];case 1:return[a,s,i];case 2:return[i,s,l];case 3:return[i,a,s];case 4:return[l,i,s];case 5:return[s,i,a]}},o.hsv.hsl=function(e){const t=e[0],r=e[1]/100,s=e[2]/100,n=Math.max(s,.01);let o,i;i=(2-r)*s;const a=(2-r)*n;return o=r*n,o/=a<=1?a:2-a,o=o||0,i/=2,[t,100*o,100*i]},o.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,s=e[2]/100;const n=r+s;let o;n>1&&(r/=n,s/=n);const i=Math.floor(6*t),a=1-s;o=6*t-i,1&i&&(o=1-o);const l=r+o*(a-r);let c,u,h;switch(i){default:case 6:case 0:c=a,u=l,h=r;break;case 1:c=l,u=a,h=r;break;case 2:c=r,u=a,h=l;break;case 3:c=r,u=l,h=a;break;case 4:c=l,u=r,h=a;break;case 5:c=a,u=r,h=l}return[255*c,255*u,255*h]},o.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,s=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n)),255*(1-Math.min(1,s*(1-n)+n))]},o.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,s=e[2]/100;let n,o,i;return n=3.2406*t+-1.5372*r+-.4986*s,o=-.9689*t+1.8758*r+.0415*s,i=.0557*t+-.204*r+1.057*s,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,n=Math.min(Math.max(0,n),1),o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),[255*n,255*o,255*i]},o.xyz.lab=function(e){let t=e[0],r=e[1],s=e[2];t/=95.047,r/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;return[116*r-16,500*(t-r),200*(r-s)]},o.lab.xyz=function(e){let t,r,s;r=(e[0]+16)/116,t=e[1]/500+r,s=r-e[2]/200;const n=r**3,o=t**3,i=s**3;return r=n>.008856?n:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,t*=95.047,r*=100,s*=108.883,[t,r,s]},o.lab.lch=function(e){const t=e[0],r=e[1],s=e[2];let n;n=360*Math.atan2(s,r)/2/Math.PI,n<0&&(n+=360);return[t,Math.sqrt(r*r+s*s),n]},o.lch.lab=function(e){const t=e[0],r=e[1],s=e[2]/360*2*Math.PI;return[t,r*Math.cos(s),r*Math.sin(s)]},o.rgb.ansi16=function(e,t=null){const[r,s,n]=e;let i=null===t?o.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let a=30+(Math.round(n/255)<<2|Math.round(s/255)<<1|Math.round(r/255));return 2===i&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],r=e[1],s=e[2];if(t===r&&r===s)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(s/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map(e=>e+e).join(""));const s=parseInt(r,16);return[s>>16&255,s>>8&255,255&s]},o.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,s=e[2]/255,n=Math.max(Math.max(t,r),s),o=Math.min(Math.min(t,r),s),i=n-o;let a,l;return a=i<1?o/(1-i):0,l=i<=0?0:n===t?(r-s)/i%6:n===r?2+(s-t)/i:4+(t-r)/i,l/=6,l%=1,[360*l,100*i,100*a]},o.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,s=r<.5?2*t*r:2*t*(1-r);let n=0;return s<1&&(n=(r-.5*s)/(1-s)),[e[0],100*s,100*n]},o.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,s=t*r;let n=0;return s<1&&(n=(r-s)/(1-s)),[e[0],100*s,100*n]},o.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,s=e[2]/100;if(0===r)return[255*s,255*s,255*s];const n=[0,0,0],o=t%1*6,i=o%1,a=1-i;let l=0;switch(Math.floor(o)){case 0:n[0]=1,n[1]=i,n[2]=0;break;case 1:n[0]=a,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=i;break;case 3:n[0]=0,n[1]=a,n[2]=1;break;case 4:n[0]=i,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=a}return l=(1-r)*s,[255*(r*n[0]+l),255*(r*n[1]+l),255*(r*n[2]+l)]},o.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let s=0;return r>0&&(s=t/r),[e[0],100*s,100*r]},o.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let s=0;return r>0&&r<.5?s=t/(2*r):r>=.5&&r<1&&(s=t/(2*(1-r))),[e[0],100*s,100*r]},o.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},o.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,s=r-t;let n=0;return s<1&&(n=(r-s)/(1-s)),[e[0],100*s,100*n]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},2172(e,t,r){const s=r(1873),n=r(3701),o={};Object.keys(s).forEach(e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:s[e].channels}),Object.defineProperty(o[e],"labels",{value:s[e].labels});const t=n(e);Object.keys(t).forEach(r=>{const s=t[r];o[e][r]=function wrapRounded(e){const wrappedFn=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const s=e(t);if("object"==typeof s)for(let e=s.length,t=0;t<e;t++)s[t]=Math.round(s[t]);return s};return"conversion"in e&&(wrappedFn.conversion=e.conversion),wrappedFn}(s),o[e][r].raw=function wrapRaw(e){const wrappedFn=function(...t){const r=t[0];return null==r?r:(r.length>1&&(t=r),e(t))};return"conversion"in e&&(wrappedFn.conversion=e.conversion),wrappedFn}(s)})}),e.exports=o},3701(e,t,r){const s=r(1873);function deriveBFS(e){const t=function buildGraph(){const e={},t=Object.keys(s);for(let r=t.length,s=0;s<r;s++)e[t[s]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;){const e=r.pop(),n=Object.keys(s[e]);for(let s=n.length,o=0;o<s;o++){const s=n[o],i=t[s];-1===i.distance&&(i.distance=t[e].distance+1,i.parent=e,r.unshift(s))}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){const r=[t[e].parent,e];let n=s[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=link(s[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}e.exports=function(e){const t=deriveBFS(e),r={},s=Object.keys(t);for(let e=s.length,n=0;n<e;n++){const e=s[n];null!==t[e].parent&&(r[e]=wrapConversion(e,t))}return r}},2694(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},9614(e){"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",s=t.indexOf(r+e),n=t.indexOf("--");return-1!==s&&(-1===n||s<n)}},3114(e,t,r){"use strict";const s=Symbol("SemVer ANY");class Comparator{static get ANY(){return s}constructor(e,t){if(t=n(t),e instanceof Comparator){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===s?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?o[i.COMPARATORLOOSE]:o[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===s||e===s)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(e.value,t).test(this.value):""===e.operator?""===e.value||new u(this.value,t).test(e.semver):(!(t=n(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(a(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(a(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=Comparator;const n=r(6837),{safeRe:o,t:i}=r(928),a=r(1005),l=r(4122),c=r(8038),u=r(3597)},3597(e,t,r){"use strict";const s=/\s+/g;class Range{constructor(e,t){if(t=o(t),e instanceof Range)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Range(e.raw,t);if(e instanceof i)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(s," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!isNullSet(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&isAny(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&d)|(this.options.loose&&E))+":"+e,r=n.get(t);if(r)return r;const s=this.options.loose,o=s?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(o,hyphenReplace(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(c[u.COMPARATORTRIM],h),a("comparator trim",e),e=e.replace(c[u.TILDETRIM],p),a("tilde trim",e),e=e.replace(c[u.CARETTRIM],f),a("caret trim",e);let l=e.split(" ").map(e=>parseComparator(e,this.options)).join(" ").split(/\s+/).map(e=>replaceGTE0(e,this.options));s&&(l=l.filter(e=>(a("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),a("range list",l);const m=new Map,g=l.map(e=>new i(e,this.options));for(const e of g){if(isNullSet(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");const b=[...m.values()];return n.set(t,b),b}intersects(e,t){if(!(e instanceof Range))throw new TypeError("a Range is required");return this.set.some(r=>isSatisfiable(r,t)&&e.set.some(e=>isSatisfiable(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(testSet(this.set[t],e,this.options))return!0;return!1}}e.exports=Range;const n=new(r(1380)),o=r(6837),i=r(3114),a=r(4122),l=r(8038),{safeRe:c,t:u,comparatorTrimReplace:h,tildeTrimReplace:p,caretTrimReplace:f}=r(928),{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:E}=r(3932),isNullSet=e=>"<0.0.0-0"===e.value,isAny=e=>""===e.value,isSatisfiable=(e,t)=>{let r=!0;const s=e.slice();let n=s.pop();for(;r&&s.length;)r=s.every(e=>n.intersects(e,t)),n=s.pop();return r},parseComparator=(e,t)=>(e=e.replace(c[u.BUILD],""),a("comp",e,t),e=replaceCarets(e,t),a("caret",e),e=replaceTildes(e,t),a("tildes",e),e=replaceXRanges(e,t),a("xrange",e),e=replaceStars(e,t),a("stars",e),e),isX=e=>!e||"x"===e.toLowerCase()||"*"===e,replaceTildes=(e,t)=>e.trim().split(/\s+/).map(e=>replaceTilde(e,t)).join(" "),replaceTilde=(e,t)=>{const r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,(t,r,s,n,o)=>{let i;return a("tilde",e,t,r,s,n,o),isX(r)?i="":isX(s)?i=`>=${r}.0.0 <${+r+1}.0.0-0`:isX(n)?i=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:o?(a("replaceTilde pr",o),i=`>=${r}.${s}.${n}-${o} <${r}.${+s+1}.0-0`):i=`>=${r}.${s}.${n} <${r}.${+s+1}.0-0`,a("tilde return",i),i})},replaceCarets=(e,t)=>e.trim().split(/\s+/).map(e=>replaceCaret(e,t)).join(" "),replaceCaret=(e,t)=>{a("caret",e,t);const r=t.loose?c[u.CARETLOOSE]:c[u.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,(t,r,n,o,i)=>{let l;return a("caret",e,t,r,n,o,i),isX(r)?l="":isX(n)?l=`>=${r}.0.0${s} <${+r+1}.0.0-0`:isX(o)?l="0"===r?`>=${r}.${n}.0${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.0${s} <${+r+1}.0.0-0`:i?(a("replaceCaret pr",i),l="0"===r?"0"===n?`>=${r}.${n}.${o}-${i} <${r}.${n}.${+o+1}-0`:`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${o}-${i} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===n?`>=${r}.${n}.${o}${s} <${r}.${n}.${+o+1}-0`:`>=${r}.${n}.${o}${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${o} <${+r+1}.0.0-0`),a("caret return",l),l})},replaceXRanges=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map(e=>replaceXRange(e,t)).join(" ")),replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,(r,s,n,o,i,l)=>{a("xRange",e,r,s,n,o,i,l);const c=isX(n),u=c||isX(o),h=u||isX(i),p=h;return"="===s&&p&&(s=""),l=t.includePrerelease?"-0":"",c?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&p?(u&&(o=0),i=0,">"===s?(s=">=",u?(n=+n+1,o=0,i=0):(o=+o+1,i=0)):"<="===s&&(s="<",u?n=+n+1:o=+o+1),"<"===s&&(l="-0"),r=`${s+n}.${o}.${i}${l}`):u?r=`>=${n}.0.0${l} <${+n+1}.0.0-0`:h&&(r=`>=${n}.${o}.0${l} <${n}.${+o+1}.0-0`),a("xRange return",r),r})},replaceStars=(e,t)=>(a("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),replaceGTE0=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),hyphenReplace=e=>(t,r,s,n,o,i,a,l,c,u,h,p)=>`${r=isX(s)?"":isX(n)?`>=${s}.0.0${e?"-0":""}`:isX(o)?`>=${s}.${n}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=isX(c)?"":isX(u)?`<${+c+1}.0.0-0`:isX(h)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${h}-${p}`:e?`<${c}.${u}.${+h+1}-0`:`<=${l}`}`.trim(),testSet=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(a(e[r].semver),e[r].semver!==i.ANY&&e[r].semver.prerelease.length>0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}},8038(e,t,r){"use strict";const s=r(4122),{MAX_LENGTH:n,MAX_SAFE_INTEGER:o}=r(3932),{safeRe:i,t:a}=r(928),l=r(6837),{compareIdentifiers:c}=r(6741);class SemVer{constructor(e,t){if(t=l(t),e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);s("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(s("SemVer.compare",this.version,this.options,e),!(e instanceof SemVer)){if("string"==typeof e&&e===this.version)return 0;e=new SemVer(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof SemVer||(e=new SemVer(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof SemVer||(e=new SemVer(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(s("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return c(r,n)}while(++t)}compareBuild(e){e instanceof SemVer||(e=new SemVer(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(s("build compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return c(r,n)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[a.PRERELEASELOOSE]:i[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let s=[t,e];!1===r&&(s=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=SemVer},4592(e,t,r){"use strict";const s=r(3770);e.exports=(e,t)=>{const r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},1005(e,t,r){"use strict";const s=r(8935),n=r(8661),o=r(6670),i=r(6999),a=r(5169),l=r(9746);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return s(e,r,c);case"!=":return n(e,r,c);case">":return o(e,r,c);case">=":return i(e,r,c);case"<":return a(e,r,c);case"<=":return l(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},3328(e,t,r){"use strict";const s=r(8038),n=r(3770),{safeRe:o,t:i}=r(928);e.exports=(e,t)=>{if(e instanceof s)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const s=t.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];let n;for(;(n=s.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),s.lastIndex=n.index+n[1].length+n[2].length;s.lastIndex=-1}else r=e.match(t.includePrerelease?o[i.COERCEFULL]:o[i.COERCE]);if(null===r)return null;const a=r[2],l=r[3]||"0",c=r[4]||"0",u=t.includePrerelease&&r[5]?`-${r[5]}`:"",h=t.includePrerelease&&r[6]?`+${r[6]}`:"";return n(`${a}.${l}.${c}${u}${h}`,t)}},8471(e,t,r){"use strict";const s=r(8038);e.exports=(e,t,r)=>{const n=new s(e,r),o=new s(t,r);return n.compare(o)||n.compareBuild(o)}},3949(e,t,r){"use strict";const s=r(6278);e.exports=(e,t)=>s(e,t,!0)},6278(e,t,r){"use strict";const s=r(8038);e.exports=(e,t,r)=>new s(e,r).compare(new s(t,r))},5782(e,t,r){"use strict";const s=r(3770);e.exports=(e,t)=>{const r=s(e,null,!0),n=s(t,null,!0),o=r.compare(n);if(0===o)return null;const i=o>0,a=i?r:n,l=i?n:r,c=!!a.prerelease.length;if(!!l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(a))return l.minor&&!l.patch?"minor":"patch"}const u=c?"pre":"";return r.major!==n.major?u+"major":r.minor!==n.minor?u+"minor":r.patch!==n.patch?u+"patch":"prerelease"}},8935(e,t,r){"use strict";const s=r(6278);e.exports=(e,t,r)=>0===s(e,t,r)},6670(e,t,r){"use strict";const s=r(6278);e.exports=(e,t,r)=>s(e,t,r)>0},6999(e,t,r){"use strict";const s=r(6278);e.exports=(e,t,r)=>s(e,t,r)>=0},305(e,t,r){"use strict";const s=r(8038);e.exports=(e,t,r,n,o)=>{"string"==typeof r&&(o=n,n=r,r=void 0);try{return new s(e instanceof s?e.version:e,r).inc(t,n,o).version}catch(e){return null}}},5169(e,t,r){"use strict";const s=r(6278);e.exports=(e,t,r)=>s(e,t,r)<0},9746(e,t,r){"use strict";const s=r(6278);e.exports=(e,t,r)=>s(e,t,r)<=0},6680(e,t,r){"use strict";const s=r(8038);e.exports=(e,t)=>new s(e,t).major},7748(e,t,r){"use strict";const s=r(8038);e.exports=(e,t)=>new s(e,t).minor},8661(e,t,r){"use strict";const s=r(6278);e.exports=(e,t,r)=>0!==s(e,t,r)},3770(e,t,r){"use strict";const s=r(8038);e.exports=(e,t,r=!1)=>{if(e instanceof s)return e;try{return new s(e,t)}catch(e){if(!r)return null;throw e}}},6219(e,t,r){"use strict";const s=r(8038);e.exports=(e,t)=>new s(e,t).patch},5003(e,t,r){"use strict";const s=r(3770);e.exports=(e,t)=>{const r=s(e,t);return r&&r.prerelease.length?r.prerelease:null}},3360(e,t,r){"use strict";const s=r(6278);e.exports=(e,t,r)=>s(t,e,r)},5063(e,t,r){"use strict";const s=r(8471);e.exports=(e,t)=>e.sort((e,r)=>s(r,e,t))},6336(e,t,r){"use strict";const s=r(3597);e.exports=(e,t,r)=>{try{t=new s(t,r)}catch(e){return!1}return t.test(e)}},2393(e,t,r){"use strict";const s=r(8471);e.exports=(e,t)=>e.sort((e,r)=>s(e,r,t))},1519(e,t,r){"use strict";const s=r(3770);e.exports=(e,t)=>{const r=s(e,t);return r?r.version:null}},5263(e,t,r){"use strict";const s=r(928),n=r(3932),o=r(8038),i=r(6741),a=r(3770),l=r(1519),c=r(4592),u=r(305),h=r(5782),p=r(6680),f=r(7748),d=r(6219),E=r(5003),m=r(6278),g=r(3360),b=r(3949),R=r(8471),v=r(2393),O=r(5063),$=r(6670),w=r(5169),I=r(8935),N=r(8661),L=r(6999),y=r(9746),S=r(1005),_=r(3328),A=r(3114),T=r(3597),C=r(6336),k=r(9533),x=r(274),M=r(9304),P=r(7955),D=r(7348),j=r(2641),G=r(7369),F=r(9024),B=r(8474),U=r(6927),V=r(4302);e.exports={parse:a,valid:l,clean:c,inc:u,diff:h,major:p,minor:f,patch:d,prerelease:E,compare:m,rcompare:g,compareLoose:b,compareBuild:R,sort:v,rsort:O,gt:$,lt:w,eq:I,neq:N,gte:L,lte:y,cmp:S,coerce:_,Comparator:A,Range:T,satisfies:C,toComparators:k,maxSatisfying:x,minSatisfying:M,minVersion:P,validRange:D,outside:j,gtr:G,ltr:F,intersects:B,simplifyRange:U,subset:V,SemVer:o,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},3932(e){"use strict";const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},4122(e){"use strict";const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},6741(e){"use strict";const t=/^[0-9]+$/,compareIdentifiers=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;const s=t.test(e),n=t.test(r);return s&&n&&(e=+e,r=+r),e===r?0:s&&!n?-1:n&&!s?1:e<r?-1:1};e.exports={compareIdentifiers,rcompareIdentifiers:(e,t)=>compareIdentifiers(t,e)}},1380(e){"use strict";e.exports=class LRUCache{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},6837(e){"use strict";const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},928(e,t,r){"use strict";const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=r(3932),i=r(4122),a=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.safeSrc=[],h=t.t={};let p=0;const f="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",o],[f,n]],createToken=(e,t,r)=>{const s=(e=>{for(const[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),n=p++;i(e,n,t),h[e]=n,c[n]=t,u[n]=s,a[n]=new RegExp(t,r?"g":void 0),l[n]=new RegExp(s,r?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","\\d+"),createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),createToken("MAINVERSION",`(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${c[h.NONNUMERICIDENTIFIER]}|${c[h.NUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${c[h.NONNUMERICIDENTIFIER]}|${c[h.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASE",`(?:-(${c[h.PRERELEASEIDENTIFIER]}(?:\\.${c[h.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${c[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[h.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER",`${f}+`),createToken("BUILD",`(?:\\+(${c[h.BUILDIDENTIFIER]}(?:\\.${c[h.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${c[h.MAINVERSION]}${c[h.PRERELEASE]}?${c[h.BUILD]}?`),createToken("FULL",`^${c[h.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${c[h.MAINVERSIONLOOSE]}${c[h.PRERELEASELOOSE]}?${c[h.BUILD]}?`),createToken("LOOSE",`^${c[h.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${c[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${c[h.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:${c[h.PRERELEASE]})?${c[h.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:${c[h.PRERELEASELOOSE]})?${c[h.BUILD]}?)?)?`),createToken("XRANGE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAINLOOSE]}$`),createToken("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),createToken("COERCE",`${c[h.COERCEPLAIN]}(?:$|[^\\d])`),createToken("COERCEFULL",c[h.COERCEPLAIN]+`(?:${c[h.PRERELEASE]})?`+`(?:${c[h.BUILD]})?(?:$|[^\\d])`),createToken("COERCERTL",c[h.COERCE],!0),createToken("COERCERTLFULL",c[h.COERCEFULL],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${c[h.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",createToken("TILDE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${c[h.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",createToken("CARET",`^${c[h.LONECARET]}${c[h.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${c[h.LONECARET]}${c[h.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${c[h.GTLT]}\\s*(${c[h.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]}|${c[h.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${c[h.XRANGEPLAIN]})\\s+-\\s+(${c[h.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${c[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[h.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},7369(e,t,r){"use strict";const s=r(2641);e.exports=(e,t,r)=>s(e,t,">",r)},8474(e,t,r){"use strict";const s=r(3597);e.exports=(e,t,r)=>(e=new s(e,r),t=new s(t,r),e.intersects(t,r))},9024(e,t,r){"use strict";const s=r(2641);e.exports=(e,t,r)=>s(e,t,"<",r)},274(e,t,r){"use strict";const s=r(8038),n=r(3597);e.exports=(e,t,r)=>{let o=null,i=null,a=null;try{a=new n(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(o&&-1!==i.compare(e)||(o=e,i=new s(o,r)))}),o}},9304(e,t,r){"use strict";const s=r(8038),n=r(3597);e.exports=(e,t,r)=>{let o=null,i=null,a=null;try{a=new n(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(o&&1!==i.compare(e)||(o=e,i=new s(o,r)))}),o}},7955(e,t,r){"use strict";const s=r(8038),n=r(3597),o=r(6670);e.exports=(e,t)=>{e=new n(e,t);let r=new s("0.0.0");if(e.test(r))return r;if(r=new s("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const n=e.set[t];let i=null;n.forEach(e=>{const t=new s(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!o(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!i||r&&!o(r,i)||(r=i)}return r&&e.test(r)?r:null}},2641(e,t,r){"use strict";const s=r(8038),n=r(3114),{ANY:o}=n,i=r(3597),a=r(6336),l=r(6670),c=r(5169),u=r(9746),h=r(6999);e.exports=(e,t,r,p)=>{let f,d,E,m,g;switch(e=new s(e,p),t=new i(t,p),r){case">":f=l,d=u,E=c,m=">",g=">=";break;case"<":f=c,d=h,E=l,m="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p))return!1;for(let r=0;r<t.set.length;++r){const s=t.set[r];let i=null,a=null;if(s.forEach(e=>{e.semver===o&&(e=new n(">=0.0.0")),i=i||e,a=a||e,f(e.semver,i.semver,p)?i=e:E(e.semver,a.semver,p)&&(a=e)}),i.operator===m||i.operator===g)return!1;if((!a.operator||a.operator===m)&&d(e,a.semver))return!1;if(a.operator===g&&E(e,a.semver))return!1}return!0}},6927(e,t,r){"use strict";const s=r(6336),n=r(6278);e.exports=(e,t,r)=>{const o=[];let i=null,a=null;const l=e.sort((e,t)=>n(e,t,r));for(const e of l){s(e,t,r)?(a=e,i||(i=e)):(a&&o.push([i,a]),a=null,i=null)}i&&o.push([i,null]);const c=[];for(const[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),h="string"==typeof t.raw?t.raw:String(t);return u.length<h.length?u:t}},4302(e,t,r){"use strict";const s=r(3597),n=r(3114),{ANY:o}=n,i=r(6336),a=r(6278),l=[new n(">=0.0.0-0")],c=[new n(">=0.0.0")],simpleSubset=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?l:c}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=c}const s=new Set;let n,u,h,p,f,d,E;for(const t of e)">"===t.operator||">="===t.operator?n=higherGT(n,t,r):"<"===t.operator||"<="===t.operator?u=lowerLT(u,t,r):s.add(t.semver);if(s.size>1)return null;if(n&&u){if(h=a(n.semver,u.semver,r),h>0)return null;if(0===h&&(">="!==n.operator||"<="!==u.operator))return null}for(const e of s){if(n&&!i(e,String(n),r))return null;if(u&&!i(e,String(u),r))return null;for(const s of t)if(!i(e,String(s),r))return!1;return!0}let m=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver,g=!(!n||r.includePrerelease||!n.semver.prerelease.length)&&n.semver;m&&1===m.prerelease.length&&"<"===u.operator&&0===m.prerelease[0]&&(m=!1);for(const e of t){if(E=E||">"===e.operator||">="===e.operator,d=d||"<"===e.operator||"<="===e.operator,n)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),">"===e.operator||">="===e.operator){if(p=higherGT(n,e,r),p===e&&p!==n)return!1}else if(">="===n.operator&&!i(n.semver,String(e),r))return!1;if(u)if(m&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch&&(m=!1),"<"===e.operator||"<="===e.operator){if(f=lowerLT(u,e,r),f===e&&f!==u)return!1}else if("<="===u.operator&&!i(u.semver,String(e),r))return!1;if(!e.operator&&(u||n)&&0!==h)return!1}return!(n&&d&&!u&&0!==h)&&(!(u&&E&&!n&&0!==h)&&(!g&&!m))},higherGT=(e,t,r)=>{if(!e)return t;const s=a(e.semver,t.semver,r);return s>0?e:s<0||">"===t.operator&&">="===e.operator?t:e},lowerLT=(e,t,r)=>{if(!e)return t;const s=a(e.semver,t.semver,r);return s<0?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new s(e,r),t=new s(t,r);let n=!1;e:for(const s of e.set){for(const e of t.set){const t=simpleSubset(s,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}},9533(e,t,r){"use strict";const s=r(3597);e.exports=(e,t)=>new s(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},7348(e,t,r){"use strict";const s=r(3597);e.exports=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}}},3533(e,t,r){"use strict";const s=r(857),n=r(2018),o=r(9614),{env:i}=process;let a;function translateLevel(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(0===a)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const r=a||0;if("dumb"===i.TERM)return r;if("win32"===process.platform){const e=s.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in i)||"codeship"===i.CI_NAME?1:r;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:r}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?a=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=1),"FORCE_COLOR"in i&&(a="true"===i.FORCE_COLOR?1:"false"===i.FORCE_COLOR?0:0===i.FORCE_COLOR.length?1:Math.min(parseInt(i.FORCE_COLOR,10),3)),e.exports={supportsColor:function getSupportLevel(e){return translateLevel(supportsColor(e,e&&e.isTTY))},stdout:translateLevel(supportsColor(!0,n.isatty(1))),stderr:translateLevel(supportsColor(!0,n.isatty(2)))}},268(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRelease=void 0;const s=r(932),n=r(5263),o=864e5;class NodeRelease{static forThisRuntime(){const e=new n.SemVer(s.version),t=e.major;for(const r of this.ALL_RELEASES)if(r.majorVersion===t)return{nodeRelease:r,knownBroken:!r.supportedRange.test(e)};return{nodeRelease:void 0,knownBroken:!1}}constructor(e,t){var r,s,i;this.untested=null!==(r=t.untested)&&void 0!==r&&r,this.majorVersion=e,this.supportedRange=new n.Range(null!==(s=t.supportedRange)&&void 0!==s?s:`^${e}.0.0`),this.endOfLifeDate=t.endOfLife,this.endOfLife=t.endOfLife.getTime()+o<=Date.now(),this.endOfJsiiSupportDate=null!==(i=t.endOfJsiiSupport)&&void 0!==i?i:new Date(this.endOfLifeDate.getFullYear(),this.endOfLifeDate.getMonth()+NodeRelease.DEFAULT_EXTENDED_SUPPORT_MONTHS,this.endOfLifeDate.getDate());const a=this.endOfJsiiSupportDate.getTime()+o<=Date.now();this.deprecated=this.endOfLife&&!a,this.supported=!this.untested&&!a}toString(){const e=this.endOfLifeDate?` (Planned end-of-life: ${this.endOfLifeDate.toISOString().slice(0,10)})`:"";return`${this.supportedRange.raw}${e}`}}t.NodeRelease=NodeRelease,NodeRelease.DEFAULT_EXTENDED_SUPPORT_MONTHS=6,NodeRelease.ALL_RELEASES=[...[0,1,2,3,4,5,6,7,8,9,10,11].map(e=>new NodeRelease(e,{endOfLife:new Date("2018-01-01"),untested:!0})),new NodeRelease(12,{endOfLife:new Date("2022-04-30"),supportedRange:"^12.7.0"}),new NodeRelease(13,{endOfLife:new Date("2020-06-01"),untested:!0}),new NodeRelease(14,{endOfLife:new Date("2023-04-30"),supportedRange:"^14.17.0"}),new NodeRelease(15,{endOfLife:new Date("2021-06-01"),untested:!0}),new NodeRelease(16,{endOfLife:new Date("2023-09-11"),supportedRange:"^16.3.0"}),new NodeRelease(17,{endOfLife:new Date("2022-06-01"),supportedRange:"^17.3.0",untested:!0}),new NodeRelease(19,{endOfLife:new Date("2023-06-01"),untested:!0}),new NodeRelease(21,{endOfLife:new Date("2024-06-01"),untested:!0}),new NodeRelease(23,{endOfLife:new Date("2025-06-01"),untested:!0}),new NodeRelease(18,{endOfLife:new Date("2025-04-30"),endOfJsiiSupport:new Date("2025-11-30")}),new NodeRelease(20,{endOfLife:new Date("2026-04-30")}),new NodeRelease(22,{endOfLife:new Date("2027-04-30")}),new NodeRelease(24,{endOfLife:new Date("2028-04-30")})]},8261(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRelease=void 0,t.checkNode=function checkNode(e="JSII"){var t;const{nodeRelease:r,knownBroken:a}=i.NodeRelease.forThisRuntime(),l="Should you encounter odd runtime issues, please try using one of the supported release before filing a bug report.";if(!1===(null==r?void 0:r.supported)){const n=`${e}_SILENCE_WARNING_END_OF_LIFE_NODE_VERSION`;if(!(null!==(t=process.env[n])&&void 0!==t?t:"").split(",").map(e=>e.trim()).includes(r.majorVersion.toString())){const e=r.endOfJsiiSupportDate.toISOString().slice(0,10);veryVisibleMessage(s.bgRed.white.bold,`Node ${r.majorVersion} is end-of-life and not supported anymore by this software since ${e}.`,"Please upgrade to a supported node version as soon as possible.")}}else if(a){const t=`${e}_SILENCE_WARNING_KNOWN_BROKEN_NODE_VERSION`;process.env[t]||veryVisibleMessage(s.bgRed.white.bold,`Node ${o.version} is unsupported and has known compatibility issues with this software.`,l,t)}else if(!r||r.untested){const t=`${e}_SILENCE_WARNING_UNTESTED_NODE_VERSION`;process.env[t]||veryVisibleMessage(s.bgYellow.black,`This software has not been tested with node ${o.version}.`,l,t)}else if(null==r?void 0:r.deprecated){const t=`${e}_SILENCE_WARNING_DEPRECATED_NODE_VERSION`;if(!process.env[t]){const e=r.endOfLifeDate.toISOString().slice(0,10),n=r.endOfJsiiSupportDate.toISOString().slice(0,10);veryVisibleMessage(s.bgYellowBright.black,`Node ${r.majorVersion} has reached end-of-life on ${e} and will no longer be supported in new releases after ${n}.`,"Please upgrade to a supported node version as soon as possible.",t)}}function veryVisibleMessage(e,t,r,s){const a=[t,r,"",`This software is currently running on node ${o.version}.`,"As of the current release of this software, supported node releases are:",...i.NodeRelease.ALL_RELEASES.filter(e=>e.supported).sort((e,t)=>{var r,s,n,o;return(null!==(s=null===(r=t.endOfLifeDate)||void 0===r?void 0:r.getTime())&&void 0!==s?s:0)-(null!==(o=null===(n=e.endOfLifeDate)||void 0===n?void 0:n.getTime())&&void 0!==o?o:0)}).map(e=>`- ${e.toString()}${e.deprecated?" [DEPRECATED]":""}`),...s?["",`This warning can be silenced by setting the ${s} environment variable.`]:[]],l=Math.max(...a.map(e=>e.length)),c=e("!".repeat(l+8)),u=e(`!! ${" ".repeat(l)} !!`);(0,n.error)(c),(0,n.error)(u);for(const t of a)(0,n.error)(e(`!! ${t.padEnd(l," ")} !!`));(0,n.error)(u),(0,n.error)(c)}};const s=r(6042),n=r(4236),o=r(932),i=r(268);var a=r(268);Object.defineProperty(t,"NodeRelease",{enumerable:!0,get:function(){return a.NodeRelease}})},5276(e,t,r){"use strict";(0,r(8261).checkNode)(),e.exports={}},5317(e){"use strict";e.exports=require("child_process")},4236(e){"use strict";e.exports=require("console")},857(e){"use strict";e.exports=require("os")},6928(e){"use strict";e.exports=require("path")},932(e){"use strict";e.exports=require("process")},2018(e){"use strict";e.exports=require("tty")}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};(()=>{"use strict";__webpack_require__(5276);const e=__webpack_require__(5317),t=__webpack_require__(4236),r=__webpack_require__(857),s=__webpack_require__(6928),n=(0,e.spawn)(process.execPath,[...process.execArgv,"--preserve-symlinks",(0,s.resolve)(__dirname,"..","lib","program.js")],{stdio:["ignore","pipe","pipe","pipe"]});n.once("end",(e,t)=>{var s;null!=t&&process.exit(128+(null!==(s=r.constants.signals[t])&&void 0!==s?s:0)),process.exit(e)}),n.once("error",e=>{console.error("Failed to spawn child process:",e.stack),process.exit(-1)});for(const e of Object.keys(r.constants.signals))"SIGKILL"!==e&&"SIGSTOP"!==e&&process.on(e,e=>n.kill(e));function makeHandler(e){return r=>{const s=Buffer.isBuffer(r)?r:Buffer.from(r);(0,t.error)(JSON.stringify({[e]:s.toString("base64")}))}}n.stdout.on("data",makeHandler("stdout")),n.stderr.on("data",makeHandler("stderr"));const o=n.stdio[3];process.stdin.pipe(o),o.pipe(process.stdout)})();
|
|
3507
2
|
//# sourceMappingURL=jsii-runtime.js.map
|