snyk 1.795.0 → 1.796.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.
@@ -0,0 +1,4949 @@
1
+ exports.id = 395;
2
+ exports.ids = [395];
3
+ exports.modules = {
4
+
5
+ /***/ 14277:
6
+ /***/ ((module) => {
7
+
8
+ "use strict";
9
+
10
+
11
+ module.exports = ({onlyFirst = false} = {}) => {
12
+ const pattern = [
13
+ '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
14
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
15
+ ].join('|');
16
+
17
+ return new RegExp(pattern, onlyFirst ? undefined : 'g');
18
+ };
19
+
20
+
21
+ /***/ }),
22
+
23
+ /***/ 23909:
24
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
25
+
26
+ "use strict";
27
+
28
+ const restoreCursor = __webpack_require__(71354);
29
+
30
+ let isHidden = false;
31
+
32
+ exports.show = (writableStream = process.stderr) => {
33
+ if (!writableStream.isTTY) {
34
+ return;
35
+ }
36
+
37
+ isHidden = false;
38
+ writableStream.write('\u001B[?25h');
39
+ };
40
+
41
+ exports.hide = (writableStream = process.stderr) => {
42
+ if (!writableStream.isTTY) {
43
+ return;
44
+ }
45
+
46
+ restoreCursor();
47
+ isHidden = true;
48
+ writableStream.write('\u001B[?25l');
49
+ };
50
+
51
+ exports.toggle = (force, writableStream) => {
52
+ if (force !== undefined) {
53
+ isHidden = force;
54
+ }
55
+
56
+ if (isHidden) {
57
+ exports.show(writableStream);
58
+ } else {
59
+ exports.hide(writableStream);
60
+ }
61
+ };
62
+
63
+
64
+ /***/ }),
65
+
66
+ /***/ 54011:
67
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
68
+
69
+ "use strict";
70
+
71
+
72
+ const spinners = Object.assign({}, __webpack_require__(26374));
73
+
74
+ const spinnersList = Object.keys(spinners);
75
+
76
+ Object.defineProperty(spinners, 'random', {
77
+ get() {
78
+ const randomIndex = Math.floor(Math.random() * spinnersList.length);
79
+ const spinnerName = spinnersList[randomIndex];
80
+ return spinners[spinnerName];
81
+ }
82
+ });
83
+
84
+ module.exports = spinners;
85
+ // TODO: Remove this for the next major release
86
+ module.exports.default = spinners;
87
+
88
+
89
+ /***/ }),
90
+
91
+ /***/ 16313:
92
+ /***/ ((module) => {
93
+
94
+ var clone = (function() {
95
+ 'use strict';
96
+
97
+ /**
98
+ * Clones (copies) an Object using deep copying.
99
+ *
100
+ * This function supports circular references by default, but if you are certain
101
+ * there are no circular references in your object, you can save some CPU time
102
+ * by calling clone(obj, false).
103
+ *
104
+ * Caution: if `circular` is false and `parent` contains circular references,
105
+ * your program may enter an infinite loop and crash.
106
+ *
107
+ * @param `parent` - the object to be cloned
108
+ * @param `circular` - set to true if the object to be cloned may contain
109
+ * circular references. (optional - true by default)
110
+ * @param `depth` - set to a number if the object is only to be cloned to
111
+ * a particular depth. (optional - defaults to Infinity)
112
+ * @param `prototype` - sets the prototype to be used when cloning an object.
113
+ * (optional - defaults to parent prototype).
114
+ */
115
+ function clone(parent, circular, depth, prototype) {
116
+ var filter;
117
+ if (typeof circular === 'object') {
118
+ depth = circular.depth;
119
+ prototype = circular.prototype;
120
+ filter = circular.filter;
121
+ circular = circular.circular
122
+ }
123
+ // maintain two arrays for circular references, where corresponding parents
124
+ // and children have the same index
125
+ var allParents = [];
126
+ var allChildren = [];
127
+
128
+ var useBuffer = typeof Buffer != 'undefined';
129
+
130
+ if (typeof circular == 'undefined')
131
+ circular = true;
132
+
133
+ if (typeof depth == 'undefined')
134
+ depth = Infinity;
135
+
136
+ // recurse this function so we don't reset allParents and allChildren
137
+ function _clone(parent, depth) {
138
+ // cloning null always returns null
139
+ if (parent === null)
140
+ return null;
141
+
142
+ if (depth == 0)
143
+ return parent;
144
+
145
+ var child;
146
+ var proto;
147
+ if (typeof parent != 'object') {
148
+ return parent;
149
+ }
150
+
151
+ if (clone.__isArray(parent)) {
152
+ child = [];
153
+ } else if (clone.__isRegExp(parent)) {
154
+ child = new RegExp(parent.source, __getRegExpFlags(parent));
155
+ if (parent.lastIndex) child.lastIndex = parent.lastIndex;
156
+ } else if (clone.__isDate(parent)) {
157
+ child = new Date(parent.getTime());
158
+ } else if (useBuffer && Buffer.isBuffer(parent)) {
159
+ if (Buffer.allocUnsafe) {
160
+ // Node.js >= 4.5.0
161
+ child = Buffer.allocUnsafe(parent.length);
162
+ } else {
163
+ // Older Node.js versions
164
+ child = new Buffer(parent.length);
165
+ }
166
+ parent.copy(child);
167
+ return child;
168
+ } else {
169
+ if (typeof prototype == 'undefined') {
170
+ proto = Object.getPrototypeOf(parent);
171
+ child = Object.create(proto);
172
+ }
173
+ else {
174
+ child = Object.create(prototype);
175
+ proto = prototype;
176
+ }
177
+ }
178
+
179
+ if (circular) {
180
+ var index = allParents.indexOf(parent);
181
+
182
+ if (index != -1) {
183
+ return allChildren[index];
184
+ }
185
+ allParents.push(parent);
186
+ allChildren.push(child);
187
+ }
188
+
189
+ for (var i in parent) {
190
+ var attrs;
191
+ if (proto) {
192
+ attrs = Object.getOwnPropertyDescriptor(proto, i);
193
+ }
194
+
195
+ if (attrs && attrs.set == null) {
196
+ continue;
197
+ }
198
+ child[i] = _clone(parent[i], depth - 1);
199
+ }
200
+
201
+ return child;
202
+ }
203
+
204
+ return _clone(parent, depth);
205
+ }
206
+
207
+ /**
208
+ * Simple flat clone using prototype, accepts only objects, usefull for property
209
+ * override on FLAT configuration object (no nested props).
210
+ *
211
+ * USE WITH CAUTION! This may not behave as you wish if you do not know how this
212
+ * works.
213
+ */
214
+ clone.clonePrototype = function clonePrototype(parent) {
215
+ if (parent === null)
216
+ return null;
217
+
218
+ var c = function () {};
219
+ c.prototype = parent;
220
+ return new c();
221
+ };
222
+
223
+ // private utility functions
224
+
225
+ function __objToStr(o) {
226
+ return Object.prototype.toString.call(o);
227
+ };
228
+ clone.__objToStr = __objToStr;
229
+
230
+ function __isDate(o) {
231
+ return typeof o === 'object' && __objToStr(o) === '[object Date]';
232
+ };
233
+ clone.__isDate = __isDate;
234
+
235
+ function __isArray(o) {
236
+ return typeof o === 'object' && __objToStr(o) === '[object Array]';
237
+ };
238
+ clone.__isArray = __isArray;
239
+
240
+ function __isRegExp(o) {
241
+ return typeof o === 'object' && __objToStr(o) === '[object RegExp]';
242
+ };
243
+ clone.__isRegExp = __isRegExp;
244
+
245
+ function __getRegExpFlags(re) {
246
+ var flags = '';
247
+ if (re.global) flags += 'g';
248
+ if (re.ignoreCase) flags += 'i';
249
+ if (re.multiline) flags += 'm';
250
+ return flags;
251
+ };
252
+ clone.__getRegExpFlags = __getRegExpFlags;
253
+
254
+ return clone;
255
+ })();
256
+
257
+ if ( true && module.exports) {
258
+ module.exports = clone;
259
+ }
260
+
261
+
262
+ /***/ }),
263
+
264
+ /***/ 34575:
265
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
266
+
267
+ var clone = __webpack_require__(16313);
268
+
269
+ module.exports = function(options, defaults) {
270
+ options = options || {};
271
+
272
+ Object.keys(defaults).forEach(function(key) {
273
+ if (typeof options[key] === 'undefined') {
274
+ options[key] = clone(defaults[key]);
275
+ }
276
+ });
277
+
278
+ return options;
279
+ };
280
+
281
+ /***/ }),
282
+
283
+ /***/ 35131:
284
+ /***/ ((module) => {
285
+
286
+ "use strict";
287
+
288
+
289
+ module.exports = ({stream = process.stdout} = {}) => {
290
+ return Boolean(
291
+ stream && stream.isTTY &&
292
+ process.env.TERM !== 'dumb' &&
293
+ !('CI' in process.env)
294
+ );
295
+ };
296
+
297
+
298
+ /***/ }),
299
+
300
+ /***/ 4500:
301
+ /***/ ((module) => {
302
+
303
+ "use strict";
304
+
305
+
306
+ module.exports = () => {
307
+ if (process.platform !== 'win32') {
308
+ return true;
309
+ }
310
+
311
+ return Boolean(process.env.CI) ||
312
+ Boolean(process.env.WT_SESSION) || // Windows Terminal
313
+ process.env.TERM_PROGRAM === 'vscode' ||
314
+ process.env.TERM === 'xterm-256color' ||
315
+ process.env.TERM === 'alacritty';
316
+ };
317
+
318
+
319
+ /***/ }),
320
+
321
+ /***/ 9986:
322
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
323
+
324
+ "use strict";
325
+
326
+ const chalk = __webpack_require__(39803);
327
+ const isUnicodeSupported = __webpack_require__(4500);
328
+
329
+ const main = {
330
+ info: chalk.blue('ℹ'),
331
+ success: chalk.green('✔'),
332
+ warning: chalk.yellow('⚠'),
333
+ error: chalk.red('✖')
334
+ };
335
+
336
+ const fallback = {
337
+ info: chalk.blue('i'),
338
+ success: chalk.green('√'),
339
+ warning: chalk.yellow('‼'),
340
+ error: chalk.red('×')
341
+ };
342
+
343
+ module.exports = isUnicodeSupported() ? main : fallback;
344
+
345
+
346
+ /***/ }),
347
+
348
+ /***/ 26496:
349
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
350
+
351
+ "use strict";
352
+ /* module decorator */ module = __webpack_require__.nmd(module);
353
+
354
+
355
+ const wrapAnsi16 = (fn, offset) => (...args) => {
356
+ const code = fn(...args);
357
+ return `\u001B[${code + offset}m`;
358
+ };
359
+
360
+ const wrapAnsi256 = (fn, offset) => (...args) => {
361
+ const code = fn(...args);
362
+ return `\u001B[${38 + offset};5;${code}m`;
363
+ };
364
+
365
+ const wrapAnsi16m = (fn, offset) => (...args) => {
366
+ const rgb = fn(...args);
367
+ return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
368
+ };
369
+
370
+ const ansi2ansi = n => n;
371
+ const rgb2rgb = (r, g, b) => [r, g, b];
372
+
373
+ const setLazyProperty = (object, property, get) => {
374
+ Object.defineProperty(object, property, {
375
+ get: () => {
376
+ const value = get();
377
+
378
+ Object.defineProperty(object, property, {
379
+ value,
380
+ enumerable: true,
381
+ configurable: true
382
+ });
383
+
384
+ return value;
385
+ },
386
+ enumerable: true,
387
+ configurable: true
388
+ });
389
+ };
390
+
391
+ /** @type {typeof import('color-convert')} */
392
+ let colorConvert;
393
+ const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
394
+ if (colorConvert === undefined) {
395
+ colorConvert = __webpack_require__(36354);
396
+ }
397
+
398
+ const offset = isBackground ? 10 : 0;
399
+ const styles = {};
400
+
401
+ for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
402
+ const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace;
403
+ if (sourceSpace === targetSpace) {
404
+ styles[name] = wrap(identity, offset);
405
+ } else if (typeof suite === 'object') {
406
+ styles[name] = wrap(suite[targetSpace], offset);
407
+ }
408
+ }
409
+
410
+ return styles;
411
+ };
412
+
413
+ function assembleStyles() {
414
+ const codes = new Map();
415
+ const styles = {
416
+ modifier: {
417
+ reset: [0, 0],
418
+ // 21 isn't widely supported and 22 does the same thing
419
+ bold: [1, 22],
420
+ dim: [2, 22],
421
+ italic: [3, 23],
422
+ underline: [4, 24],
423
+ inverse: [7, 27],
424
+ hidden: [8, 28],
425
+ strikethrough: [9, 29]
426
+ },
427
+ color: {
428
+ black: [30, 39],
429
+ red: [31, 39],
430
+ green: [32, 39],
431
+ yellow: [33, 39],
432
+ blue: [34, 39],
433
+ magenta: [35, 39],
434
+ cyan: [36, 39],
435
+ white: [37, 39],
436
+
437
+ // Bright color
438
+ blackBright: [90, 39],
439
+ redBright: [91, 39],
440
+ greenBright: [92, 39],
441
+ yellowBright: [93, 39],
442
+ blueBright: [94, 39],
443
+ magentaBright: [95, 39],
444
+ cyanBright: [96, 39],
445
+ whiteBright: [97, 39]
446
+ },
447
+ bgColor: {
448
+ bgBlack: [40, 49],
449
+ bgRed: [41, 49],
450
+ bgGreen: [42, 49],
451
+ bgYellow: [43, 49],
452
+ bgBlue: [44, 49],
453
+ bgMagenta: [45, 49],
454
+ bgCyan: [46, 49],
455
+ bgWhite: [47, 49],
456
+
457
+ // Bright color
458
+ bgBlackBright: [100, 49],
459
+ bgRedBright: [101, 49],
460
+ bgGreenBright: [102, 49],
461
+ bgYellowBright: [103, 49],
462
+ bgBlueBright: [104, 49],
463
+ bgMagentaBright: [105, 49],
464
+ bgCyanBright: [106, 49],
465
+ bgWhiteBright: [107, 49]
466
+ }
467
+ };
468
+
469
+ // Alias bright black as gray (and grey)
470
+ styles.color.gray = styles.color.blackBright;
471
+ styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
472
+ styles.color.grey = styles.color.blackBright;
473
+ styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
474
+
475
+ for (const [groupName, group] of Object.entries(styles)) {
476
+ for (const [styleName, style] of Object.entries(group)) {
477
+ styles[styleName] = {
478
+ open: `\u001B[${style[0]}m`,
479
+ close: `\u001B[${style[1]}m`
480
+ };
481
+
482
+ group[styleName] = styles[styleName];
483
+
484
+ codes.set(style[0], style[1]);
485
+ }
486
+
487
+ Object.defineProperty(styles, groupName, {
488
+ value: group,
489
+ enumerable: false
490
+ });
491
+ }
492
+
493
+ Object.defineProperty(styles, 'codes', {
494
+ value: codes,
495
+ enumerable: false
496
+ });
497
+
498
+ styles.color.close = '\u001B[39m';
499
+ styles.bgColor.close = '\u001B[49m';
500
+
501
+ setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false));
502
+ setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false));
503
+ setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false));
504
+ setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true));
505
+ setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true));
506
+ setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true));
507
+
508
+ return styles;
509
+ }
510
+
511
+ // Make the export immutable
512
+ Object.defineProperty(module, 'exports', {
513
+ enumerable: true,
514
+ get: assembleStyles
515
+ });
516
+
517
+
518
+ /***/ }),
519
+
520
+ /***/ 39803:
521
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
522
+
523
+ "use strict";
524
+
525
+ const ansiStyles = __webpack_require__(26496);
526
+ const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(505);
527
+ const {
528
+ stringReplaceAll,
529
+ stringEncaseCRLFWithFirstIndex
530
+ } = __webpack_require__(59867);
531
+
532
+ const {isArray} = Array;
533
+
534
+ // `supportsColor.level` → `ansiStyles.color[name]` mapping
535
+ const levelMapping = [
536
+ 'ansi',
537
+ 'ansi',
538
+ 'ansi256',
539
+ 'ansi16m'
540
+ ];
541
+
542
+ const styles = Object.create(null);
543
+
544
+ const applyOptions = (object, options = {}) => {
545
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
546
+ throw new Error('The `level` option should be an integer from 0 to 3');
547
+ }
548
+
549
+ // Detect level if not set manually
550
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
551
+ object.level = options.level === undefined ? colorLevel : options.level;
552
+ };
553
+
554
+ class ChalkClass {
555
+ constructor(options) {
556
+ // eslint-disable-next-line no-constructor-return
557
+ return chalkFactory(options);
558
+ }
559
+ }
560
+
561
+ const chalkFactory = options => {
562
+ const chalk = {};
563
+ applyOptions(chalk, options);
564
+
565
+ chalk.template = (...arguments_) => chalkTag(chalk.template, ...arguments_);
566
+
567
+ Object.setPrototypeOf(chalk, Chalk.prototype);
568
+ Object.setPrototypeOf(chalk.template, chalk);
569
+
570
+ chalk.template.constructor = () => {
571
+ throw new Error('`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.');
572
+ };
573
+
574
+ chalk.template.Instance = ChalkClass;
575
+
576
+ return chalk.template;
577
+ };
578
+
579
+ function Chalk(options) {
580
+ return chalkFactory(options);
581
+ }
582
+
583
+ for (const [styleName, style] of Object.entries(ansiStyles)) {
584
+ styles[styleName] = {
585
+ get() {
586
+ const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
587
+ Object.defineProperty(this, styleName, {value: builder});
588
+ return builder;
589
+ }
590
+ };
591
+ }
592
+
593
+ styles.visible = {
594
+ get() {
595
+ const builder = createBuilder(this, this._styler, true);
596
+ Object.defineProperty(this, 'visible', {value: builder});
597
+ return builder;
598
+ }
599
+ };
600
+
601
+ const usedModels = ['rgb', 'hex', 'keyword', 'hsl', 'hsv', 'hwb', 'ansi', 'ansi256'];
602
+
603
+ for (const model of usedModels) {
604
+ styles[model] = {
605
+ get() {
606
+ const {level} = this;
607
+ return function (...arguments_) {
608
+ const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
609
+ return createBuilder(this, styler, this._isEmpty);
610
+ };
611
+ }
612
+ };
613
+ }
614
+
615
+ for (const model of usedModels) {
616
+ const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
617
+ styles[bgModel] = {
618
+ get() {
619
+ const {level} = this;
620
+ return function (...arguments_) {
621
+ const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
622
+ return createBuilder(this, styler, this._isEmpty);
623
+ };
624
+ }
625
+ };
626
+ }
627
+
628
+ const proto = Object.defineProperties(() => {}, {
629
+ ...styles,
630
+ level: {
631
+ enumerable: true,
632
+ get() {
633
+ return this._generator.level;
634
+ },
635
+ set(level) {
636
+ this._generator.level = level;
637
+ }
638
+ }
639
+ });
640
+
641
+ const createStyler = (open, close, parent) => {
642
+ let openAll;
643
+ let closeAll;
644
+ if (parent === undefined) {
645
+ openAll = open;
646
+ closeAll = close;
647
+ } else {
648
+ openAll = parent.openAll + open;
649
+ closeAll = close + parent.closeAll;
650
+ }
651
+
652
+ return {
653
+ open,
654
+ close,
655
+ openAll,
656
+ closeAll,
657
+ parent
658
+ };
659
+ };
660
+
661
+ const createBuilder = (self, _styler, _isEmpty) => {
662
+ const builder = (...arguments_) => {
663
+ if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
664
+ // Called as a template literal, for example: chalk.red`2 + 3 = {bold ${2+3}}`
665
+ return applyStyle(builder, chalkTag(builder, ...arguments_));
666
+ }
667
+
668
+ // Single argument is hot path, implicit coercion is faster than anything
669
+ // eslint-disable-next-line no-implicit-coercion
670
+ return applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));
671
+ };
672
+
673
+ // We alter the prototype because we must return a function, but there is
674
+ // no way to create a function with a different prototype
675
+ Object.setPrototypeOf(builder, proto);
676
+
677
+ builder._generator = self;
678
+ builder._styler = _styler;
679
+ builder._isEmpty = _isEmpty;
680
+
681
+ return builder;
682
+ };
683
+
684
+ const applyStyle = (self, string) => {
685
+ if (self.level <= 0 || !string) {
686
+ return self._isEmpty ? '' : string;
687
+ }
688
+
689
+ let styler = self._styler;
690
+
691
+ if (styler === undefined) {
692
+ return string;
693
+ }
694
+
695
+ const {openAll, closeAll} = styler;
696
+ if (string.indexOf('\u001B') !== -1) {
697
+ while (styler !== undefined) {
698
+ // Replace any instances already present with a re-opening code
699
+ // otherwise only the part of the string until said closing code
700
+ // will be colored, and the rest will simply be 'plain'.
701
+ string = stringReplaceAll(string, styler.close, styler.open);
702
+
703
+ styler = styler.parent;
704
+ }
705
+ }
706
+
707
+ // We can move both next actions out of loop, because remaining actions in loop won't have
708
+ // any/visible effect on parts we add here. Close the styling before a linebreak and reopen
709
+ // after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92
710
+ const lfIndex = string.indexOf('\n');
711
+ if (lfIndex !== -1) {
712
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
713
+ }
714
+
715
+ return openAll + string + closeAll;
716
+ };
717
+
718
+ let template;
719
+ const chalkTag = (chalk, ...strings) => {
720
+ const [firstString] = strings;
721
+
722
+ if (!isArray(firstString) || !isArray(firstString.raw)) {
723
+ // If chalk() was called by itself or with a string,
724
+ // return the string itself as a string.
725
+ return strings.join(' ');
726
+ }
727
+
728
+ const arguments_ = strings.slice(1);
729
+ const parts = [firstString.raw[0]];
730
+
731
+ for (let i = 1; i < firstString.length; i++) {
732
+ parts.push(
733
+ String(arguments_[i - 1]).replace(/[{}\\]/g, '\\$&'),
734
+ String(firstString.raw[i])
735
+ );
736
+ }
737
+
738
+ if (template === undefined) {
739
+ template = __webpack_require__(87568);
740
+ }
741
+
742
+ return template(chalk, parts.join(''));
743
+ };
744
+
745
+ Object.defineProperties(Chalk.prototype, styles);
746
+
747
+ const chalk = Chalk(); // eslint-disable-line new-cap
748
+ chalk.supportsColor = stdoutColor;
749
+ chalk.stderr = Chalk({level: stderrColor ? stderrColor.level : 0}); // eslint-disable-line new-cap
750
+ chalk.stderr.supportsColor = stderrColor;
751
+
752
+ module.exports = chalk;
753
+
754
+
755
+ /***/ }),
756
+
757
+ /***/ 87568:
758
+ /***/ ((module) => {
759
+
760
+ "use strict";
761
+
762
+ 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;
763
+ const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
764
+ const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
765
+ const ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
766
+
767
+ const ESCAPES = new Map([
768
+ ['n', '\n'],
769
+ ['r', '\r'],
770
+ ['t', '\t'],
771
+ ['b', '\b'],
772
+ ['f', '\f'],
773
+ ['v', '\v'],
774
+ ['0', '\0'],
775
+ ['\\', '\\'],
776
+ ['e', '\u001B'],
777
+ ['a', '\u0007']
778
+ ]);
779
+
780
+ function unescape(c) {
781
+ const u = c[0] === 'u';
782
+ const bracket = c[1] === '{';
783
+
784
+ if ((u && !bracket && c.length === 5) || (c[0] === 'x' && c.length === 3)) {
785
+ return String.fromCharCode(parseInt(c.slice(1), 16));
786
+ }
787
+
788
+ if (u && bracket) {
789
+ return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
790
+ }
791
+
792
+ return ESCAPES.get(c) || c;
793
+ }
794
+
795
+ function parseArguments(name, arguments_) {
796
+ const results = [];
797
+ const chunks = arguments_.trim().split(/\s*,\s*/g);
798
+ let matches;
799
+
800
+ for (const chunk of chunks) {
801
+ const number = Number(chunk);
802
+ if (!Number.isNaN(number)) {
803
+ results.push(number);
804
+ } else if ((matches = chunk.match(STRING_REGEX))) {
805
+ results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
806
+ } else {
807
+ throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
808
+ }
809
+ }
810
+
811
+ return results;
812
+ }
813
+
814
+ function parseStyle(style) {
815
+ STYLE_REGEX.lastIndex = 0;
816
+
817
+ const results = [];
818
+ let matches;
819
+
820
+ while ((matches = STYLE_REGEX.exec(style)) !== null) {
821
+ const name = matches[1];
822
+
823
+ if (matches[2]) {
824
+ const args = parseArguments(name, matches[2]);
825
+ results.push([name].concat(args));
826
+ } else {
827
+ results.push([name]);
828
+ }
829
+ }
830
+
831
+ return results;
832
+ }
833
+
834
+ function buildStyle(chalk, styles) {
835
+ const enabled = {};
836
+
837
+ for (const layer of styles) {
838
+ for (const style of layer.styles) {
839
+ enabled[style[0]] = layer.inverse ? null : style.slice(1);
840
+ }
841
+ }
842
+
843
+ let current = chalk;
844
+ for (const [styleName, styles] of Object.entries(enabled)) {
845
+ if (!Array.isArray(styles)) {
846
+ continue;
847
+ }
848
+
849
+ if (!(styleName in current)) {
850
+ throw new Error(`Unknown Chalk style: ${styleName}`);
851
+ }
852
+
853
+ current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
854
+ }
855
+
856
+ return current;
857
+ }
858
+
859
+ module.exports = (chalk, temporary) => {
860
+ const styles = [];
861
+ const chunks = [];
862
+ let chunk = [];
863
+
864
+ // eslint-disable-next-line max-params
865
+ temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
866
+ if (escapeCharacter) {
867
+ chunk.push(unescape(escapeCharacter));
868
+ } else if (style) {
869
+ const string = chunk.join('');
870
+ chunk = [];
871
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
872
+ styles.push({inverse, styles: parseStyle(style)});
873
+ } else if (close) {
874
+ if (styles.length === 0) {
875
+ throw new Error('Found extraneous } in Chalk template literal');
876
+ }
877
+
878
+ chunks.push(buildStyle(chalk, styles)(chunk.join('')));
879
+ chunk = [];
880
+ styles.pop();
881
+ } else {
882
+ chunk.push(character);
883
+ }
884
+ });
885
+
886
+ chunks.push(chunk.join(''));
887
+
888
+ if (styles.length > 0) {
889
+ const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
890
+ throw new Error(errMessage);
891
+ }
892
+
893
+ return chunks.join('');
894
+ };
895
+
896
+
897
+ /***/ }),
898
+
899
+ /***/ 59867:
900
+ /***/ ((module) => {
901
+
902
+ "use strict";
903
+
904
+
905
+ const stringReplaceAll = (string, substring, replacer) => {
906
+ let index = string.indexOf(substring);
907
+ if (index === -1) {
908
+ return string;
909
+ }
910
+
911
+ const substringLength = substring.length;
912
+ let endIndex = 0;
913
+ let returnValue = '';
914
+ do {
915
+ returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
916
+ endIndex = index + substringLength;
917
+ index = string.indexOf(substring, endIndex);
918
+ } while (index !== -1);
919
+
920
+ returnValue += string.substr(endIndex);
921
+ return returnValue;
922
+ };
923
+
924
+ const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
925
+ let endIndex = 0;
926
+ let returnValue = '';
927
+ do {
928
+ const gotCR = string[index - 1] === '\r';
929
+ returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? '\r\n' : '\n') + postfix;
930
+ endIndex = index + 1;
931
+ index = string.indexOf('\n', endIndex);
932
+ } while (index !== -1);
933
+
934
+ returnValue += string.substr(endIndex);
935
+ return returnValue;
936
+ };
937
+
938
+ module.exports = {
939
+ stringReplaceAll,
940
+ stringEncaseCRLFWithFirstIndex
941
+ };
942
+
943
+
944
+ /***/ }),
945
+
946
+ /***/ 22204:
947
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
948
+
949
+ /* MIT license */
950
+ /* eslint-disable no-mixed-operators */
951
+ const cssKeywords = __webpack_require__(30668);
952
+
953
+ // NOTE: conversions should only return primitive values (i.e. arrays, or
954
+ // values that give correct `typeof` results).
955
+ // do not use box values types (i.e. Number(), String(), etc.)
956
+
957
+ const reverseKeywords = {};
958
+ for (const key of Object.keys(cssKeywords)) {
959
+ reverseKeywords[cssKeywords[key]] = key;
960
+ }
961
+
962
+ const convert = {
963
+ rgb: {channels: 3, labels: 'rgb'},
964
+ hsl: {channels: 3, labels: 'hsl'},
965
+ hsv: {channels: 3, labels: 'hsv'},
966
+ hwb: {channels: 3, labels: 'hwb'},
967
+ cmyk: {channels: 4, labels: 'cmyk'},
968
+ xyz: {channels: 3, labels: 'xyz'},
969
+ lab: {channels: 3, labels: 'lab'},
970
+ lch: {channels: 3, labels: 'lch'},
971
+ hex: {channels: 1, labels: ['hex']},
972
+ keyword: {channels: 1, labels: ['keyword']},
973
+ ansi16: {channels: 1, labels: ['ansi16']},
974
+ ansi256: {channels: 1, labels: ['ansi256']},
975
+ hcg: {channels: 3, labels: ['h', 'c', 'g']},
976
+ apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
977
+ gray: {channels: 1, labels: ['gray']}
978
+ };
979
+
980
+ module.exports = convert;
981
+
982
+ // Hide .channels and .labels properties
983
+ for (const model of Object.keys(convert)) {
984
+ if (!('channels' in convert[model])) {
985
+ throw new Error('missing channels property: ' + model);
986
+ }
987
+
988
+ if (!('labels' in convert[model])) {
989
+ throw new Error('missing channel labels property: ' + model);
990
+ }
991
+
992
+ if (convert[model].labels.length !== convert[model].channels) {
993
+ throw new Error('channel and label counts mismatch: ' + model);
994
+ }
995
+
996
+ const {channels, labels} = convert[model];
997
+ delete convert[model].channels;
998
+ delete convert[model].labels;
999
+ Object.defineProperty(convert[model], 'channels', {value: channels});
1000
+ Object.defineProperty(convert[model], 'labels', {value: labels});
1001
+ }
1002
+
1003
+ convert.rgb.hsl = function (rgb) {
1004
+ const r = rgb[0] / 255;
1005
+ const g = rgb[1] / 255;
1006
+ const b = rgb[2] / 255;
1007
+ const min = Math.min(r, g, b);
1008
+ const max = Math.max(r, g, b);
1009
+ const delta = max - min;
1010
+ let h;
1011
+ let s;
1012
+
1013
+ if (max === min) {
1014
+ h = 0;
1015
+ } else if (r === max) {
1016
+ h = (g - b) / delta;
1017
+ } else if (g === max) {
1018
+ h = 2 + (b - r) / delta;
1019
+ } else if (b === max) {
1020
+ h = 4 + (r - g) / delta;
1021
+ }
1022
+
1023
+ h = Math.min(h * 60, 360);
1024
+
1025
+ if (h < 0) {
1026
+ h += 360;
1027
+ }
1028
+
1029
+ const l = (min + max) / 2;
1030
+
1031
+ if (max === min) {
1032
+ s = 0;
1033
+ } else if (l <= 0.5) {
1034
+ s = delta / (max + min);
1035
+ } else {
1036
+ s = delta / (2 - max - min);
1037
+ }
1038
+
1039
+ return [h, s * 100, l * 100];
1040
+ };
1041
+
1042
+ convert.rgb.hsv = function (rgb) {
1043
+ let rdif;
1044
+ let gdif;
1045
+ let bdif;
1046
+ let h;
1047
+ let s;
1048
+
1049
+ const r = rgb[0] / 255;
1050
+ const g = rgb[1] / 255;
1051
+ const b = rgb[2] / 255;
1052
+ const v = Math.max(r, g, b);
1053
+ const diff = v - Math.min(r, g, b);
1054
+ const diffc = function (c) {
1055
+ return (v - c) / 6 / diff + 1 / 2;
1056
+ };
1057
+
1058
+ if (diff === 0) {
1059
+ h = 0;
1060
+ s = 0;
1061
+ } else {
1062
+ s = diff / v;
1063
+ rdif = diffc(r);
1064
+ gdif = diffc(g);
1065
+ bdif = diffc(b);
1066
+
1067
+ if (r === v) {
1068
+ h = bdif - gdif;
1069
+ } else if (g === v) {
1070
+ h = (1 / 3) + rdif - bdif;
1071
+ } else if (b === v) {
1072
+ h = (2 / 3) + gdif - rdif;
1073
+ }
1074
+
1075
+ if (h < 0) {
1076
+ h += 1;
1077
+ } else if (h > 1) {
1078
+ h -= 1;
1079
+ }
1080
+ }
1081
+
1082
+ return [
1083
+ h * 360,
1084
+ s * 100,
1085
+ v * 100
1086
+ ];
1087
+ };
1088
+
1089
+ convert.rgb.hwb = function (rgb) {
1090
+ const r = rgb[0];
1091
+ const g = rgb[1];
1092
+ let b = rgb[2];
1093
+ const h = convert.rgb.hsl(rgb)[0];
1094
+ const w = 1 / 255 * Math.min(r, Math.min(g, b));
1095
+
1096
+ b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
1097
+
1098
+ return [h, w * 100, b * 100];
1099
+ };
1100
+
1101
+ convert.rgb.cmyk = function (rgb) {
1102
+ const r = rgb[0] / 255;
1103
+ const g = rgb[1] / 255;
1104
+ const b = rgb[2] / 255;
1105
+
1106
+ const k = Math.min(1 - r, 1 - g, 1 - b);
1107
+ const c = (1 - r - k) / (1 - k) || 0;
1108
+ const m = (1 - g - k) / (1 - k) || 0;
1109
+ const y = (1 - b - k) / (1 - k) || 0;
1110
+
1111
+ return [c * 100, m * 100, y * 100, k * 100];
1112
+ };
1113
+
1114
+ function comparativeDistance(x, y) {
1115
+ /*
1116
+ See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
1117
+ */
1118
+ return (
1119
+ ((x[0] - y[0]) ** 2) +
1120
+ ((x[1] - y[1]) ** 2) +
1121
+ ((x[2] - y[2]) ** 2)
1122
+ );
1123
+ }
1124
+
1125
+ convert.rgb.keyword = function (rgb) {
1126
+ const reversed = reverseKeywords[rgb];
1127
+ if (reversed) {
1128
+ return reversed;
1129
+ }
1130
+
1131
+ let currentClosestDistance = Infinity;
1132
+ let currentClosestKeyword;
1133
+
1134
+ for (const keyword of Object.keys(cssKeywords)) {
1135
+ const value = cssKeywords[keyword];
1136
+
1137
+ // Compute comparative distance
1138
+ const distance = comparativeDistance(rgb, value);
1139
+
1140
+ // Check if its less, if so set as closest
1141
+ if (distance < currentClosestDistance) {
1142
+ currentClosestDistance = distance;
1143
+ currentClosestKeyword = keyword;
1144
+ }
1145
+ }
1146
+
1147
+ return currentClosestKeyword;
1148
+ };
1149
+
1150
+ convert.keyword.rgb = function (keyword) {
1151
+ return cssKeywords[keyword];
1152
+ };
1153
+
1154
+ convert.rgb.xyz = function (rgb) {
1155
+ let r = rgb[0] / 255;
1156
+ let g = rgb[1] / 255;
1157
+ let b = rgb[2] / 255;
1158
+
1159
+ // Assume sRGB
1160
+ r = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);
1161
+ g = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);
1162
+ b = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);
1163
+
1164
+ const x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
1165
+ const y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
1166
+ const z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
1167
+
1168
+ return [x * 100, y * 100, z * 100];
1169
+ };
1170
+
1171
+ convert.rgb.lab = function (rgb) {
1172
+ const xyz = convert.rgb.xyz(rgb);
1173
+ let x = xyz[0];
1174
+ let y = xyz[1];
1175
+ let z = xyz[2];
1176
+
1177
+ x /= 95.047;
1178
+ y /= 100;
1179
+ z /= 108.883;
1180
+
1181
+ x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
1182
+ y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
1183
+ z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
1184
+
1185
+ const l = (116 * y) - 16;
1186
+ const a = 500 * (x - y);
1187
+ const b = 200 * (y - z);
1188
+
1189
+ return [l, a, b];
1190
+ };
1191
+
1192
+ convert.hsl.rgb = function (hsl) {
1193
+ const h = hsl[0] / 360;
1194
+ const s = hsl[1] / 100;
1195
+ const l = hsl[2] / 100;
1196
+ let t2;
1197
+ let t3;
1198
+ let val;
1199
+
1200
+ if (s === 0) {
1201
+ val = l * 255;
1202
+ return [val, val, val];
1203
+ }
1204
+
1205
+ if (l < 0.5) {
1206
+ t2 = l * (1 + s);
1207
+ } else {
1208
+ t2 = l + s - l * s;
1209
+ }
1210
+
1211
+ const t1 = 2 * l - t2;
1212
+
1213
+ const rgb = [0, 0, 0];
1214
+ for (let i = 0; i < 3; i++) {
1215
+ t3 = h + 1 / 3 * -(i - 1);
1216
+ if (t3 < 0) {
1217
+ t3++;
1218
+ }
1219
+
1220
+ if (t3 > 1) {
1221
+ t3--;
1222
+ }
1223
+
1224
+ if (6 * t3 < 1) {
1225
+ val = t1 + (t2 - t1) * 6 * t3;
1226
+ } else if (2 * t3 < 1) {
1227
+ val = t2;
1228
+ } else if (3 * t3 < 2) {
1229
+ val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
1230
+ } else {
1231
+ val = t1;
1232
+ }
1233
+
1234
+ rgb[i] = val * 255;
1235
+ }
1236
+
1237
+ return rgb;
1238
+ };
1239
+
1240
+ convert.hsl.hsv = function (hsl) {
1241
+ const h = hsl[0];
1242
+ let s = hsl[1] / 100;
1243
+ let l = hsl[2] / 100;
1244
+ let smin = s;
1245
+ const lmin = Math.max(l, 0.01);
1246
+
1247
+ l *= 2;
1248
+ s *= (l <= 1) ? l : 2 - l;
1249
+ smin *= lmin <= 1 ? lmin : 2 - lmin;
1250
+ const v = (l + s) / 2;
1251
+ const sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
1252
+
1253
+ return [h, sv * 100, v * 100];
1254
+ };
1255
+
1256
+ convert.hsv.rgb = function (hsv) {
1257
+ const h = hsv[0] / 60;
1258
+ const s = hsv[1] / 100;
1259
+ let v = hsv[2] / 100;
1260
+ const hi = Math.floor(h) % 6;
1261
+
1262
+ const f = h - Math.floor(h);
1263
+ const p = 255 * v * (1 - s);
1264
+ const q = 255 * v * (1 - (s * f));
1265
+ const t = 255 * v * (1 - (s * (1 - f)));
1266
+ v *= 255;
1267
+
1268
+ switch (hi) {
1269
+ case 0:
1270
+ return [v, t, p];
1271
+ case 1:
1272
+ return [q, v, p];
1273
+ case 2:
1274
+ return [p, v, t];
1275
+ case 3:
1276
+ return [p, q, v];
1277
+ case 4:
1278
+ return [t, p, v];
1279
+ case 5:
1280
+ return [v, p, q];
1281
+ }
1282
+ };
1283
+
1284
+ convert.hsv.hsl = function (hsv) {
1285
+ const h = hsv[0];
1286
+ const s = hsv[1] / 100;
1287
+ const v = hsv[2] / 100;
1288
+ const vmin = Math.max(v, 0.01);
1289
+ let sl;
1290
+ let l;
1291
+
1292
+ l = (2 - s) * v;
1293
+ const lmin = (2 - s) * vmin;
1294
+ sl = s * vmin;
1295
+ sl /= (lmin <= 1) ? lmin : 2 - lmin;
1296
+ sl = sl || 0;
1297
+ l /= 2;
1298
+
1299
+ return [h, sl * 100, l * 100];
1300
+ };
1301
+
1302
+ // http://dev.w3.org/csswg/css-color/#hwb-to-rgb
1303
+ convert.hwb.rgb = function (hwb) {
1304
+ const h = hwb[0] / 360;
1305
+ let wh = hwb[1] / 100;
1306
+ let bl = hwb[2] / 100;
1307
+ const ratio = wh + bl;
1308
+ let f;
1309
+
1310
+ // Wh + bl cant be > 1
1311
+ if (ratio > 1) {
1312
+ wh /= ratio;
1313
+ bl /= ratio;
1314
+ }
1315
+
1316
+ const i = Math.floor(6 * h);
1317
+ const v = 1 - bl;
1318
+ f = 6 * h - i;
1319
+
1320
+ if ((i & 0x01) !== 0) {
1321
+ f = 1 - f;
1322
+ }
1323
+
1324
+ const n = wh + f * (v - wh); // Linear interpolation
1325
+
1326
+ let r;
1327
+ let g;
1328
+ let b;
1329
+ /* eslint-disable max-statements-per-line,no-multi-spaces */
1330
+ switch (i) {
1331
+ default:
1332
+ case 6:
1333
+ case 0: r = v; g = n; b = wh; break;
1334
+ case 1: r = n; g = v; b = wh; break;
1335
+ case 2: r = wh; g = v; b = n; break;
1336
+ case 3: r = wh; g = n; b = v; break;
1337
+ case 4: r = n; g = wh; b = v; break;
1338
+ case 5: r = v; g = wh; b = n; break;
1339
+ }
1340
+ /* eslint-enable max-statements-per-line,no-multi-spaces */
1341
+
1342
+ return [r * 255, g * 255, b * 255];
1343
+ };
1344
+
1345
+ convert.cmyk.rgb = function (cmyk) {
1346
+ const c = cmyk[0] / 100;
1347
+ const m = cmyk[1] / 100;
1348
+ const y = cmyk[2] / 100;
1349
+ const k = cmyk[3] / 100;
1350
+
1351
+ const r = 1 - Math.min(1, c * (1 - k) + k);
1352
+ const g = 1 - Math.min(1, m * (1 - k) + k);
1353
+ const b = 1 - Math.min(1, y * (1 - k) + k);
1354
+
1355
+ return [r * 255, g * 255, b * 255];
1356
+ };
1357
+
1358
+ convert.xyz.rgb = function (xyz) {
1359
+ const x = xyz[0] / 100;
1360
+ const y = xyz[1] / 100;
1361
+ const z = xyz[2] / 100;
1362
+ let r;
1363
+ let g;
1364
+ let b;
1365
+
1366
+ r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
1367
+ g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
1368
+ b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
1369
+
1370
+ // Assume sRGB
1371
+ r = r > 0.0031308
1372
+ ? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)
1373
+ : r * 12.92;
1374
+
1375
+ g = g > 0.0031308
1376
+ ? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)
1377
+ : g * 12.92;
1378
+
1379
+ b = b > 0.0031308
1380
+ ? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)
1381
+ : b * 12.92;
1382
+
1383
+ r = Math.min(Math.max(0, r), 1);
1384
+ g = Math.min(Math.max(0, g), 1);
1385
+ b = Math.min(Math.max(0, b), 1);
1386
+
1387
+ return [r * 255, g * 255, b * 255];
1388
+ };
1389
+
1390
+ convert.xyz.lab = function (xyz) {
1391
+ let x = xyz[0];
1392
+ let y = xyz[1];
1393
+ let z = xyz[2];
1394
+
1395
+ x /= 95.047;
1396
+ y /= 100;
1397
+ z /= 108.883;
1398
+
1399
+ x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
1400
+ y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
1401
+ z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
1402
+
1403
+ const l = (116 * y) - 16;
1404
+ const a = 500 * (x - y);
1405
+ const b = 200 * (y - z);
1406
+
1407
+ return [l, a, b];
1408
+ };
1409
+
1410
+ convert.lab.xyz = function (lab) {
1411
+ const l = lab[0];
1412
+ const a = lab[1];
1413
+ const b = lab[2];
1414
+ let x;
1415
+ let y;
1416
+ let z;
1417
+
1418
+ y = (l + 16) / 116;
1419
+ x = a / 500 + y;
1420
+ z = y - b / 200;
1421
+
1422
+ const y2 = y ** 3;
1423
+ const x2 = x ** 3;
1424
+ const z2 = z ** 3;
1425
+ y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
1426
+ x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
1427
+ z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
1428
+
1429
+ x *= 95.047;
1430
+ y *= 100;
1431
+ z *= 108.883;
1432
+
1433
+ return [x, y, z];
1434
+ };
1435
+
1436
+ convert.lab.lch = function (lab) {
1437
+ const l = lab[0];
1438
+ const a = lab[1];
1439
+ const b = lab[2];
1440
+ let h;
1441
+
1442
+ const hr = Math.atan2(b, a);
1443
+ h = hr * 360 / 2 / Math.PI;
1444
+
1445
+ if (h < 0) {
1446
+ h += 360;
1447
+ }
1448
+
1449
+ const c = Math.sqrt(a * a + b * b);
1450
+
1451
+ return [l, c, h];
1452
+ };
1453
+
1454
+ convert.lch.lab = function (lch) {
1455
+ const l = lch[0];
1456
+ const c = lch[1];
1457
+ const h = lch[2];
1458
+
1459
+ const hr = h / 360 * 2 * Math.PI;
1460
+ const a = c * Math.cos(hr);
1461
+ const b = c * Math.sin(hr);
1462
+
1463
+ return [l, a, b];
1464
+ };
1465
+
1466
+ convert.rgb.ansi16 = function (args, saturation = null) {
1467
+ const [r, g, b] = args;
1468
+ let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization
1469
+
1470
+ value = Math.round(value / 50);
1471
+
1472
+ if (value === 0) {
1473
+ return 30;
1474
+ }
1475
+
1476
+ let ansi = 30
1477
+ + ((Math.round(b / 255) << 2)
1478
+ | (Math.round(g / 255) << 1)
1479
+ | Math.round(r / 255));
1480
+
1481
+ if (value === 2) {
1482
+ ansi += 60;
1483
+ }
1484
+
1485
+ return ansi;
1486
+ };
1487
+
1488
+ convert.hsv.ansi16 = function (args) {
1489
+ // Optimization here; we already know the value and don't need to get
1490
+ // it converted for us.
1491
+ return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
1492
+ };
1493
+
1494
+ convert.rgb.ansi256 = function (args) {
1495
+ const r = args[0];
1496
+ const g = args[1];
1497
+ const b = args[2];
1498
+
1499
+ // We use the extended greyscale palette here, with the exception of
1500
+ // black and white. normal palette only has 4 greyscale shades.
1501
+ if (r === g && g === b) {
1502
+ if (r < 8) {
1503
+ return 16;
1504
+ }
1505
+
1506
+ if (r > 248) {
1507
+ return 231;
1508
+ }
1509
+
1510
+ return Math.round(((r - 8) / 247) * 24) + 232;
1511
+ }
1512
+
1513
+ const ansi = 16
1514
+ + (36 * Math.round(r / 255 * 5))
1515
+ + (6 * Math.round(g / 255 * 5))
1516
+ + Math.round(b / 255 * 5);
1517
+
1518
+ return ansi;
1519
+ };
1520
+
1521
+ convert.ansi16.rgb = function (args) {
1522
+ let color = args % 10;
1523
+
1524
+ // Handle greyscale
1525
+ if (color === 0 || color === 7) {
1526
+ if (args > 50) {
1527
+ color += 3.5;
1528
+ }
1529
+
1530
+ color = color / 10.5 * 255;
1531
+
1532
+ return [color, color, color];
1533
+ }
1534
+
1535
+ const mult = (~~(args > 50) + 1) * 0.5;
1536
+ const r = ((color & 1) * mult) * 255;
1537
+ const g = (((color >> 1) & 1) * mult) * 255;
1538
+ const b = (((color >> 2) & 1) * mult) * 255;
1539
+
1540
+ return [r, g, b];
1541
+ };
1542
+
1543
+ convert.ansi256.rgb = function (args) {
1544
+ // Handle greyscale
1545
+ if (args >= 232) {
1546
+ const c = (args - 232) * 10 + 8;
1547
+ return [c, c, c];
1548
+ }
1549
+
1550
+ args -= 16;
1551
+
1552
+ let rem;
1553
+ const r = Math.floor(args / 36) / 5 * 255;
1554
+ const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
1555
+ const b = (rem % 6) / 5 * 255;
1556
+
1557
+ return [r, g, b];
1558
+ };
1559
+
1560
+ convert.rgb.hex = function (args) {
1561
+ const integer = ((Math.round(args[0]) & 0xFF) << 16)
1562
+ + ((Math.round(args[1]) & 0xFF) << 8)
1563
+ + (Math.round(args[2]) & 0xFF);
1564
+
1565
+ const string = integer.toString(16).toUpperCase();
1566
+ return '000000'.substring(string.length) + string;
1567
+ };
1568
+
1569
+ convert.hex.rgb = function (args) {
1570
+ const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
1571
+ if (!match) {
1572
+ return [0, 0, 0];
1573
+ }
1574
+
1575
+ let colorString = match[0];
1576
+
1577
+ if (match[0].length === 3) {
1578
+ colorString = colorString.split('').map(char => {
1579
+ return char + char;
1580
+ }).join('');
1581
+ }
1582
+
1583
+ const integer = parseInt(colorString, 16);
1584
+ const r = (integer >> 16) & 0xFF;
1585
+ const g = (integer >> 8) & 0xFF;
1586
+ const b = integer & 0xFF;
1587
+
1588
+ return [r, g, b];
1589
+ };
1590
+
1591
+ convert.rgb.hcg = function (rgb) {
1592
+ const r = rgb[0] / 255;
1593
+ const g = rgb[1] / 255;
1594
+ const b = rgb[2] / 255;
1595
+ const max = Math.max(Math.max(r, g), b);
1596
+ const min = Math.min(Math.min(r, g), b);
1597
+ const chroma = (max - min);
1598
+ let grayscale;
1599
+ let hue;
1600
+
1601
+ if (chroma < 1) {
1602
+ grayscale = min / (1 - chroma);
1603
+ } else {
1604
+ grayscale = 0;
1605
+ }
1606
+
1607
+ if (chroma <= 0) {
1608
+ hue = 0;
1609
+ } else
1610
+ if (max === r) {
1611
+ hue = ((g - b) / chroma) % 6;
1612
+ } else
1613
+ if (max === g) {
1614
+ hue = 2 + (b - r) / chroma;
1615
+ } else {
1616
+ hue = 4 + (r - g) / chroma;
1617
+ }
1618
+
1619
+ hue /= 6;
1620
+ hue %= 1;
1621
+
1622
+ return [hue * 360, chroma * 100, grayscale * 100];
1623
+ };
1624
+
1625
+ convert.hsl.hcg = function (hsl) {
1626
+ const s = hsl[1] / 100;
1627
+ const l = hsl[2] / 100;
1628
+
1629
+ const c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));
1630
+
1631
+ let f = 0;
1632
+ if (c < 1.0) {
1633
+ f = (l - 0.5 * c) / (1.0 - c);
1634
+ }
1635
+
1636
+ return [hsl[0], c * 100, f * 100];
1637
+ };
1638
+
1639
+ convert.hsv.hcg = function (hsv) {
1640
+ const s = hsv[1] / 100;
1641
+ const v = hsv[2] / 100;
1642
+
1643
+ const c = s * v;
1644
+ let f = 0;
1645
+
1646
+ if (c < 1.0) {
1647
+ f = (v - c) / (1 - c);
1648
+ }
1649
+
1650
+ return [hsv[0], c * 100, f * 100];
1651
+ };
1652
+
1653
+ convert.hcg.rgb = function (hcg) {
1654
+ const h = hcg[0] / 360;
1655
+ const c = hcg[1] / 100;
1656
+ const g = hcg[2] / 100;
1657
+
1658
+ if (c === 0.0) {
1659
+ return [g * 255, g * 255, g * 255];
1660
+ }
1661
+
1662
+ const pure = [0, 0, 0];
1663
+ const hi = (h % 1) * 6;
1664
+ const v = hi % 1;
1665
+ const w = 1 - v;
1666
+ let mg = 0;
1667
+
1668
+ /* eslint-disable max-statements-per-line */
1669
+ switch (Math.floor(hi)) {
1670
+ case 0:
1671
+ pure[0] = 1; pure[1] = v; pure[2] = 0; break;
1672
+ case 1:
1673
+ pure[0] = w; pure[1] = 1; pure[2] = 0; break;
1674
+ case 2:
1675
+ pure[0] = 0; pure[1] = 1; pure[2] = v; break;
1676
+ case 3:
1677
+ pure[0] = 0; pure[1] = w; pure[2] = 1; break;
1678
+ case 4:
1679
+ pure[0] = v; pure[1] = 0; pure[2] = 1; break;
1680
+ default:
1681
+ pure[0] = 1; pure[1] = 0; pure[2] = w;
1682
+ }
1683
+ /* eslint-enable max-statements-per-line */
1684
+
1685
+ mg = (1.0 - c) * g;
1686
+
1687
+ return [
1688
+ (c * pure[0] + mg) * 255,
1689
+ (c * pure[1] + mg) * 255,
1690
+ (c * pure[2] + mg) * 255
1691
+ ];
1692
+ };
1693
+
1694
+ convert.hcg.hsv = function (hcg) {
1695
+ const c = hcg[1] / 100;
1696
+ const g = hcg[2] / 100;
1697
+
1698
+ const v = c + g * (1.0 - c);
1699
+ let f = 0;
1700
+
1701
+ if (v > 0.0) {
1702
+ f = c / v;
1703
+ }
1704
+
1705
+ return [hcg[0], f * 100, v * 100];
1706
+ };
1707
+
1708
+ convert.hcg.hsl = function (hcg) {
1709
+ const c = hcg[1] / 100;
1710
+ const g = hcg[2] / 100;
1711
+
1712
+ const l = g * (1.0 - c) + 0.5 * c;
1713
+ let s = 0;
1714
+
1715
+ if (l > 0.0 && l < 0.5) {
1716
+ s = c / (2 * l);
1717
+ } else
1718
+ if (l >= 0.5 && l < 1.0) {
1719
+ s = c / (2 * (1 - l));
1720
+ }
1721
+
1722
+ return [hcg[0], s * 100, l * 100];
1723
+ };
1724
+
1725
+ convert.hcg.hwb = function (hcg) {
1726
+ const c = hcg[1] / 100;
1727
+ const g = hcg[2] / 100;
1728
+ const v = c + g * (1.0 - c);
1729
+ return [hcg[0], (v - c) * 100, (1 - v) * 100];
1730
+ };
1731
+
1732
+ convert.hwb.hcg = function (hwb) {
1733
+ const w = hwb[1] / 100;
1734
+ const b = hwb[2] / 100;
1735
+ const v = 1 - b;
1736
+ const c = v - w;
1737
+ let g = 0;
1738
+
1739
+ if (c < 1) {
1740
+ g = (v - c) / (1 - c);
1741
+ }
1742
+
1743
+ return [hwb[0], c * 100, g * 100];
1744
+ };
1745
+
1746
+ convert.apple.rgb = function (apple) {
1747
+ return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
1748
+ };
1749
+
1750
+ convert.rgb.apple = function (rgb) {
1751
+ return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
1752
+ };
1753
+
1754
+ convert.gray.rgb = function (args) {
1755
+ return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
1756
+ };
1757
+
1758
+ convert.gray.hsl = function (args) {
1759
+ return [0, 0, args[0]];
1760
+ };
1761
+
1762
+ convert.gray.hsv = convert.gray.hsl;
1763
+
1764
+ convert.gray.hwb = function (gray) {
1765
+ return [0, 100, gray[0]];
1766
+ };
1767
+
1768
+ convert.gray.cmyk = function (gray) {
1769
+ return [0, 0, 0, gray[0]];
1770
+ };
1771
+
1772
+ convert.gray.lab = function (gray) {
1773
+ return [gray[0], 0, 0];
1774
+ };
1775
+
1776
+ convert.gray.hex = function (gray) {
1777
+ const val = Math.round(gray[0] / 100 * 255) & 0xFF;
1778
+ const integer = (val << 16) + (val << 8) + val;
1779
+
1780
+ const string = integer.toString(16).toUpperCase();
1781
+ return '000000'.substring(string.length) + string;
1782
+ };
1783
+
1784
+ convert.rgb.gray = function (rgb) {
1785
+ const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
1786
+ return [val / 255 * 100];
1787
+ };
1788
+
1789
+
1790
+ /***/ }),
1791
+
1792
+ /***/ 36354:
1793
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1794
+
1795
+ const conversions = __webpack_require__(22204);
1796
+ const route = __webpack_require__(53303);
1797
+
1798
+ const convert = {};
1799
+
1800
+ const models = Object.keys(conversions);
1801
+
1802
+ function wrapRaw(fn) {
1803
+ const wrappedFn = function (...args) {
1804
+ const arg0 = args[0];
1805
+ if (arg0 === undefined || arg0 === null) {
1806
+ return arg0;
1807
+ }
1808
+
1809
+ if (arg0.length > 1) {
1810
+ args = arg0;
1811
+ }
1812
+
1813
+ return fn(args);
1814
+ };
1815
+
1816
+ // Preserve .conversion property if there is one
1817
+ if ('conversion' in fn) {
1818
+ wrappedFn.conversion = fn.conversion;
1819
+ }
1820
+
1821
+ return wrappedFn;
1822
+ }
1823
+
1824
+ function wrapRounded(fn) {
1825
+ const wrappedFn = function (...args) {
1826
+ const arg0 = args[0];
1827
+
1828
+ if (arg0 === undefined || arg0 === null) {
1829
+ return arg0;
1830
+ }
1831
+
1832
+ if (arg0.length > 1) {
1833
+ args = arg0;
1834
+ }
1835
+
1836
+ const result = fn(args);
1837
+
1838
+ // We're assuming the result is an array here.
1839
+ // see notice in conversions.js; don't use box types
1840
+ // in conversion functions.
1841
+ if (typeof result === 'object') {
1842
+ for (let len = result.length, i = 0; i < len; i++) {
1843
+ result[i] = Math.round(result[i]);
1844
+ }
1845
+ }
1846
+
1847
+ return result;
1848
+ };
1849
+
1850
+ // Preserve .conversion property if there is one
1851
+ if ('conversion' in fn) {
1852
+ wrappedFn.conversion = fn.conversion;
1853
+ }
1854
+
1855
+ return wrappedFn;
1856
+ }
1857
+
1858
+ models.forEach(fromModel => {
1859
+ convert[fromModel] = {};
1860
+
1861
+ Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
1862
+ Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});
1863
+
1864
+ const routes = route(fromModel);
1865
+ const routeModels = Object.keys(routes);
1866
+
1867
+ routeModels.forEach(toModel => {
1868
+ const fn = routes[toModel];
1869
+
1870
+ convert[fromModel][toModel] = wrapRounded(fn);
1871
+ convert[fromModel][toModel].raw = wrapRaw(fn);
1872
+ });
1873
+ });
1874
+
1875
+ module.exports = convert;
1876
+
1877
+
1878
+ /***/ }),
1879
+
1880
+ /***/ 53303:
1881
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1882
+
1883
+ const conversions = __webpack_require__(22204);
1884
+
1885
+ /*
1886
+ This function routes a model to all other models.
1887
+
1888
+ all functions that are routed have a property `.conversion` attached
1889
+ to the returned synthetic function. This property is an array
1890
+ of strings, each with the steps in between the 'from' and 'to'
1891
+ color models (inclusive).
1892
+
1893
+ conversions that are not possible simply are not included.
1894
+ */
1895
+
1896
+ function buildGraph() {
1897
+ const graph = {};
1898
+ // https://jsperf.com/object-keys-vs-for-in-with-closure/3
1899
+ const models = Object.keys(conversions);
1900
+
1901
+ for (let len = models.length, i = 0; i < len; i++) {
1902
+ graph[models[i]] = {
1903
+ // http://jsperf.com/1-vs-infinity
1904
+ // micro-opt, but this is simple.
1905
+ distance: -1,
1906
+ parent: null
1907
+ };
1908
+ }
1909
+
1910
+ return graph;
1911
+ }
1912
+
1913
+ // https://en.wikipedia.org/wiki/Breadth-first_search
1914
+ function deriveBFS(fromModel) {
1915
+ const graph = buildGraph();
1916
+ const queue = [fromModel]; // Unshift -> queue -> pop
1917
+
1918
+ graph[fromModel].distance = 0;
1919
+
1920
+ while (queue.length) {
1921
+ const current = queue.pop();
1922
+ const adjacents = Object.keys(conversions[current]);
1923
+
1924
+ for (let len = adjacents.length, i = 0; i < len; i++) {
1925
+ const adjacent = adjacents[i];
1926
+ const node = graph[adjacent];
1927
+
1928
+ if (node.distance === -1) {
1929
+ node.distance = graph[current].distance + 1;
1930
+ node.parent = current;
1931
+ queue.unshift(adjacent);
1932
+ }
1933
+ }
1934
+ }
1935
+
1936
+ return graph;
1937
+ }
1938
+
1939
+ function link(from, to) {
1940
+ return function (args) {
1941
+ return to(from(args));
1942
+ };
1943
+ }
1944
+
1945
+ function wrapConversion(toModel, graph) {
1946
+ const path = [graph[toModel].parent, toModel];
1947
+ let fn = conversions[graph[toModel].parent][toModel];
1948
+
1949
+ let cur = graph[toModel].parent;
1950
+ while (graph[cur].parent) {
1951
+ path.unshift(graph[cur].parent);
1952
+ fn = link(conversions[graph[cur].parent][cur], fn);
1953
+ cur = graph[cur].parent;
1954
+ }
1955
+
1956
+ fn.conversion = path;
1957
+ return fn;
1958
+ }
1959
+
1960
+ module.exports = function (fromModel) {
1961
+ const graph = deriveBFS(fromModel);
1962
+ const conversion = {};
1963
+
1964
+ const models = Object.keys(graph);
1965
+ for (let len = models.length, i = 0; i < len; i++) {
1966
+ const toModel = models[i];
1967
+ const node = graph[toModel];
1968
+
1969
+ if (node.parent === null) {
1970
+ // No possible conversion, or this node is the source model.
1971
+ continue;
1972
+ }
1973
+
1974
+ conversion[toModel] = wrapConversion(toModel, graph);
1975
+ }
1976
+
1977
+ return conversion;
1978
+ };
1979
+
1980
+
1981
+
1982
+ /***/ }),
1983
+
1984
+ /***/ 30668:
1985
+ /***/ ((module) => {
1986
+
1987
+ "use strict";
1988
+
1989
+
1990
+ module.exports = {
1991
+ "aliceblue": [240, 248, 255],
1992
+ "antiquewhite": [250, 235, 215],
1993
+ "aqua": [0, 255, 255],
1994
+ "aquamarine": [127, 255, 212],
1995
+ "azure": [240, 255, 255],
1996
+ "beige": [245, 245, 220],
1997
+ "bisque": [255, 228, 196],
1998
+ "black": [0, 0, 0],
1999
+ "blanchedalmond": [255, 235, 205],
2000
+ "blue": [0, 0, 255],
2001
+ "blueviolet": [138, 43, 226],
2002
+ "brown": [165, 42, 42],
2003
+ "burlywood": [222, 184, 135],
2004
+ "cadetblue": [95, 158, 160],
2005
+ "chartreuse": [127, 255, 0],
2006
+ "chocolate": [210, 105, 30],
2007
+ "coral": [255, 127, 80],
2008
+ "cornflowerblue": [100, 149, 237],
2009
+ "cornsilk": [255, 248, 220],
2010
+ "crimson": [220, 20, 60],
2011
+ "cyan": [0, 255, 255],
2012
+ "darkblue": [0, 0, 139],
2013
+ "darkcyan": [0, 139, 139],
2014
+ "darkgoldenrod": [184, 134, 11],
2015
+ "darkgray": [169, 169, 169],
2016
+ "darkgreen": [0, 100, 0],
2017
+ "darkgrey": [169, 169, 169],
2018
+ "darkkhaki": [189, 183, 107],
2019
+ "darkmagenta": [139, 0, 139],
2020
+ "darkolivegreen": [85, 107, 47],
2021
+ "darkorange": [255, 140, 0],
2022
+ "darkorchid": [153, 50, 204],
2023
+ "darkred": [139, 0, 0],
2024
+ "darksalmon": [233, 150, 122],
2025
+ "darkseagreen": [143, 188, 143],
2026
+ "darkslateblue": [72, 61, 139],
2027
+ "darkslategray": [47, 79, 79],
2028
+ "darkslategrey": [47, 79, 79],
2029
+ "darkturquoise": [0, 206, 209],
2030
+ "darkviolet": [148, 0, 211],
2031
+ "deeppink": [255, 20, 147],
2032
+ "deepskyblue": [0, 191, 255],
2033
+ "dimgray": [105, 105, 105],
2034
+ "dimgrey": [105, 105, 105],
2035
+ "dodgerblue": [30, 144, 255],
2036
+ "firebrick": [178, 34, 34],
2037
+ "floralwhite": [255, 250, 240],
2038
+ "forestgreen": [34, 139, 34],
2039
+ "fuchsia": [255, 0, 255],
2040
+ "gainsboro": [220, 220, 220],
2041
+ "ghostwhite": [248, 248, 255],
2042
+ "gold": [255, 215, 0],
2043
+ "goldenrod": [218, 165, 32],
2044
+ "gray": [128, 128, 128],
2045
+ "green": [0, 128, 0],
2046
+ "greenyellow": [173, 255, 47],
2047
+ "grey": [128, 128, 128],
2048
+ "honeydew": [240, 255, 240],
2049
+ "hotpink": [255, 105, 180],
2050
+ "indianred": [205, 92, 92],
2051
+ "indigo": [75, 0, 130],
2052
+ "ivory": [255, 255, 240],
2053
+ "khaki": [240, 230, 140],
2054
+ "lavender": [230, 230, 250],
2055
+ "lavenderblush": [255, 240, 245],
2056
+ "lawngreen": [124, 252, 0],
2057
+ "lemonchiffon": [255, 250, 205],
2058
+ "lightblue": [173, 216, 230],
2059
+ "lightcoral": [240, 128, 128],
2060
+ "lightcyan": [224, 255, 255],
2061
+ "lightgoldenrodyellow": [250, 250, 210],
2062
+ "lightgray": [211, 211, 211],
2063
+ "lightgreen": [144, 238, 144],
2064
+ "lightgrey": [211, 211, 211],
2065
+ "lightpink": [255, 182, 193],
2066
+ "lightsalmon": [255, 160, 122],
2067
+ "lightseagreen": [32, 178, 170],
2068
+ "lightskyblue": [135, 206, 250],
2069
+ "lightslategray": [119, 136, 153],
2070
+ "lightslategrey": [119, 136, 153],
2071
+ "lightsteelblue": [176, 196, 222],
2072
+ "lightyellow": [255, 255, 224],
2073
+ "lime": [0, 255, 0],
2074
+ "limegreen": [50, 205, 50],
2075
+ "linen": [250, 240, 230],
2076
+ "magenta": [255, 0, 255],
2077
+ "maroon": [128, 0, 0],
2078
+ "mediumaquamarine": [102, 205, 170],
2079
+ "mediumblue": [0, 0, 205],
2080
+ "mediumorchid": [186, 85, 211],
2081
+ "mediumpurple": [147, 112, 219],
2082
+ "mediumseagreen": [60, 179, 113],
2083
+ "mediumslateblue": [123, 104, 238],
2084
+ "mediumspringgreen": [0, 250, 154],
2085
+ "mediumturquoise": [72, 209, 204],
2086
+ "mediumvioletred": [199, 21, 133],
2087
+ "midnightblue": [25, 25, 112],
2088
+ "mintcream": [245, 255, 250],
2089
+ "mistyrose": [255, 228, 225],
2090
+ "moccasin": [255, 228, 181],
2091
+ "navajowhite": [255, 222, 173],
2092
+ "navy": [0, 0, 128],
2093
+ "oldlace": [253, 245, 230],
2094
+ "olive": [128, 128, 0],
2095
+ "olivedrab": [107, 142, 35],
2096
+ "orange": [255, 165, 0],
2097
+ "orangered": [255, 69, 0],
2098
+ "orchid": [218, 112, 214],
2099
+ "palegoldenrod": [238, 232, 170],
2100
+ "palegreen": [152, 251, 152],
2101
+ "paleturquoise": [175, 238, 238],
2102
+ "palevioletred": [219, 112, 147],
2103
+ "papayawhip": [255, 239, 213],
2104
+ "peachpuff": [255, 218, 185],
2105
+ "peru": [205, 133, 63],
2106
+ "pink": [255, 192, 203],
2107
+ "plum": [221, 160, 221],
2108
+ "powderblue": [176, 224, 230],
2109
+ "purple": [128, 0, 128],
2110
+ "rebeccapurple": [102, 51, 153],
2111
+ "red": [255, 0, 0],
2112
+ "rosybrown": [188, 143, 143],
2113
+ "royalblue": [65, 105, 225],
2114
+ "saddlebrown": [139, 69, 19],
2115
+ "salmon": [250, 128, 114],
2116
+ "sandybrown": [244, 164, 96],
2117
+ "seagreen": [46, 139, 87],
2118
+ "seashell": [255, 245, 238],
2119
+ "sienna": [160, 82, 45],
2120
+ "silver": [192, 192, 192],
2121
+ "skyblue": [135, 206, 235],
2122
+ "slateblue": [106, 90, 205],
2123
+ "slategray": [112, 128, 144],
2124
+ "slategrey": [112, 128, 144],
2125
+ "snow": [255, 250, 250],
2126
+ "springgreen": [0, 255, 127],
2127
+ "steelblue": [70, 130, 180],
2128
+ "tan": [210, 180, 140],
2129
+ "teal": [0, 128, 128],
2130
+ "thistle": [216, 191, 216],
2131
+ "tomato": [255, 99, 71],
2132
+ "turquoise": [64, 224, 208],
2133
+ "violet": [238, 130, 238],
2134
+ "wheat": [245, 222, 179],
2135
+ "white": [255, 255, 255],
2136
+ "whitesmoke": [245, 245, 245],
2137
+ "yellow": [255, 255, 0],
2138
+ "yellowgreen": [154, 205, 50]
2139
+ };
2140
+
2141
+
2142
+ /***/ }),
2143
+
2144
+ /***/ 16563:
2145
+ /***/ ((module) => {
2146
+
2147
+ "use strict";
2148
+
2149
+
2150
+ module.exports = (flag, argv = process.argv) => {
2151
+ const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
2152
+ const position = argv.indexOf(prefix + flag);
2153
+ const terminatorPosition = argv.indexOf('--');
2154
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
2155
+ };
2156
+
2157
+
2158
+ /***/ }),
2159
+
2160
+ /***/ 505:
2161
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2162
+
2163
+ "use strict";
2164
+
2165
+ const os = __webpack_require__(12087);
2166
+ const tty = __webpack_require__(33867);
2167
+ const hasFlag = __webpack_require__(16563);
2168
+
2169
+ const {env} = process;
2170
+
2171
+ let forceColor;
2172
+ if (hasFlag('no-color') ||
2173
+ hasFlag('no-colors') ||
2174
+ hasFlag('color=false') ||
2175
+ hasFlag('color=never')) {
2176
+ forceColor = 0;
2177
+ } else if (hasFlag('color') ||
2178
+ hasFlag('colors') ||
2179
+ hasFlag('color=true') ||
2180
+ hasFlag('color=always')) {
2181
+ forceColor = 1;
2182
+ }
2183
+
2184
+ if ('FORCE_COLOR' in env) {
2185
+ if (env.FORCE_COLOR === 'true') {
2186
+ forceColor = 1;
2187
+ } else if (env.FORCE_COLOR === 'false') {
2188
+ forceColor = 0;
2189
+ } else {
2190
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
2191
+ }
2192
+ }
2193
+
2194
+ function translateLevel(level) {
2195
+ if (level === 0) {
2196
+ return false;
2197
+ }
2198
+
2199
+ return {
2200
+ level,
2201
+ hasBasic: true,
2202
+ has256: level >= 2,
2203
+ has16m: level >= 3
2204
+ };
2205
+ }
2206
+
2207
+ function supportsColor(haveStream, streamIsTTY) {
2208
+ if (forceColor === 0) {
2209
+ return 0;
2210
+ }
2211
+
2212
+ if (hasFlag('color=16m') ||
2213
+ hasFlag('color=full') ||
2214
+ hasFlag('color=truecolor')) {
2215
+ return 3;
2216
+ }
2217
+
2218
+ if (hasFlag('color=256')) {
2219
+ return 2;
2220
+ }
2221
+
2222
+ if (haveStream && !streamIsTTY && forceColor === undefined) {
2223
+ return 0;
2224
+ }
2225
+
2226
+ const min = forceColor || 0;
2227
+
2228
+ if (env.TERM === 'dumb') {
2229
+ return min;
2230
+ }
2231
+
2232
+ if (process.platform === 'win32') {
2233
+ // Windows 10 build 10586 is the first Windows release that supports 256 colors.
2234
+ // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
2235
+ const osRelease = os.release().split('.');
2236
+ if (
2237
+ Number(osRelease[0]) >= 10 &&
2238
+ Number(osRelease[2]) >= 10586
2239
+ ) {
2240
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
2241
+ }
2242
+
2243
+ return 1;
2244
+ }
2245
+
2246
+ if ('CI' in env) {
2247
+ if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
2248
+ return 1;
2249
+ }
2250
+
2251
+ return min;
2252
+ }
2253
+
2254
+ if ('TEAMCITY_VERSION' in env) {
2255
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
2256
+ }
2257
+
2258
+ if (env.COLORTERM === 'truecolor') {
2259
+ return 3;
2260
+ }
2261
+
2262
+ if ('TERM_PROGRAM' in env) {
2263
+ const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
2264
+
2265
+ switch (env.TERM_PROGRAM) {
2266
+ case 'iTerm.app':
2267
+ return version >= 3 ? 3 : 2;
2268
+ case 'Apple_Terminal':
2269
+ return 2;
2270
+ // No default
2271
+ }
2272
+ }
2273
+
2274
+ if (/-256(color)?$/i.test(env.TERM)) {
2275
+ return 2;
2276
+ }
2277
+
2278
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
2279
+ return 1;
2280
+ }
2281
+
2282
+ if ('COLORTERM' in env) {
2283
+ return 1;
2284
+ }
2285
+
2286
+ return min;
2287
+ }
2288
+
2289
+ function getSupportLevel(stream) {
2290
+ const level = supportsColor(stream, stream && stream.isTTY);
2291
+ return translateLevel(level);
2292
+ }
2293
+
2294
+ module.exports = {
2295
+ supportsColor: getSupportLevel,
2296
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
2297
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
2298
+ };
2299
+
2300
+
2301
+ /***/ }),
2302
+
2303
+ /***/ 34341:
2304
+ /***/ ((module) => {
2305
+
2306
+ "use strict";
2307
+
2308
+
2309
+ const mimicFn = (to, from) => {
2310
+ for (const prop of Reflect.ownKeys(from)) {
2311
+ Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
2312
+ }
2313
+
2314
+ return to;
2315
+ };
2316
+
2317
+ module.exports = mimicFn;
2318
+ // TODO: Remove this for the next major release
2319
+ module.exports.default = mimicFn;
2320
+
2321
+
2322
+ /***/ }),
2323
+
2324
+ /***/ 31322:
2325
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2326
+
2327
+ "use strict";
2328
+
2329
+ const mimicFn = __webpack_require__(34341);
2330
+
2331
+ const calledFunctions = new WeakMap();
2332
+
2333
+ const onetime = (function_, options = {}) => {
2334
+ if (typeof function_ !== 'function') {
2335
+ throw new TypeError('Expected a function');
2336
+ }
2337
+
2338
+ let returnValue;
2339
+ let callCount = 0;
2340
+ const functionName = function_.displayName || function_.name || '<anonymous>';
2341
+
2342
+ const onetime = function (...arguments_) {
2343
+ calledFunctions.set(onetime, ++callCount);
2344
+
2345
+ if (callCount === 1) {
2346
+ returnValue = function_.apply(this, arguments_);
2347
+ function_ = null;
2348
+ } else if (options.throw === true) {
2349
+ throw new Error(`Function \`${functionName}\` can only be called once`);
2350
+ }
2351
+
2352
+ return returnValue;
2353
+ };
2354
+
2355
+ mimicFn(onetime, function_);
2356
+ calledFunctions.set(onetime, callCount);
2357
+
2358
+ return onetime;
2359
+ };
2360
+
2361
+ module.exports = onetime;
2362
+ // TODO: Remove this for the next major release
2363
+ module.exports.default = onetime;
2364
+
2365
+ module.exports.callCount = function_ => {
2366
+ if (!calledFunctions.has(function_)) {
2367
+ throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
2368
+ }
2369
+
2370
+ return calledFunctions.get(function_);
2371
+ };
2372
+
2373
+
2374
+ /***/ }),
2375
+
2376
+ /***/ 63395:
2377
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2378
+
2379
+ "use strict";
2380
+
2381
+ const readline = __webpack_require__(51058);
2382
+ const chalk = __webpack_require__(29970);
2383
+ const cliCursor = __webpack_require__(23909);
2384
+ const cliSpinners = __webpack_require__(54011);
2385
+ const logSymbols = __webpack_require__(9986);
2386
+ const stripAnsi = __webpack_require__(53217);
2387
+ const wcwidth = __webpack_require__(71011);
2388
+ const isInteractive = __webpack_require__(35131);
2389
+ const isUnicodeSupported = __webpack_require__(4500);
2390
+ const {BufferListStream} = __webpack_require__(10022);
2391
+
2392
+ const TEXT = Symbol('text');
2393
+ const PREFIX_TEXT = Symbol('prefixText');
2394
+ const ASCII_ETX_CODE = 0x03; // Ctrl+C emits this code
2395
+
2396
+ class StdinDiscarder {
2397
+ constructor() {
2398
+ this.requests = 0;
2399
+
2400
+ this.mutedStream = new BufferListStream();
2401
+ this.mutedStream.pipe(process.stdout);
2402
+
2403
+ const self = this; // eslint-disable-line unicorn/no-this-assignment
2404
+ this.ourEmit = function (event, data, ...args) {
2405
+ const {stdin} = process;
2406
+ if (self.requests > 0 || stdin.emit === self.ourEmit) {
2407
+ if (event === 'keypress') { // Fixes readline behavior
2408
+ return;
2409
+ }
2410
+
2411
+ if (event === 'data' && data.includes(ASCII_ETX_CODE)) {
2412
+ process.emit('SIGINT');
2413
+ }
2414
+
2415
+ Reflect.apply(self.oldEmit, this, [event, data, ...args]);
2416
+ } else {
2417
+ Reflect.apply(process.stdin.emit, this, [event, data, ...args]);
2418
+ }
2419
+ };
2420
+ }
2421
+
2422
+ start() {
2423
+ this.requests++;
2424
+
2425
+ if (this.requests === 1) {
2426
+ this.realStart();
2427
+ }
2428
+ }
2429
+
2430
+ stop() {
2431
+ if (this.requests <= 0) {
2432
+ throw new Error('`stop` called more times than `start`');
2433
+ }
2434
+
2435
+ this.requests--;
2436
+
2437
+ if (this.requests === 0) {
2438
+ this.realStop();
2439
+ }
2440
+ }
2441
+
2442
+ realStart() {
2443
+ // No known way to make it work reliably on Windows
2444
+ if (process.platform === 'win32') {
2445
+ return;
2446
+ }
2447
+
2448
+ this.rl = readline.createInterface({
2449
+ input: process.stdin,
2450
+ output: this.mutedStream
2451
+ });
2452
+
2453
+ this.rl.on('SIGINT', () => {
2454
+ if (process.listenerCount('SIGINT') === 0) {
2455
+ process.emit('SIGINT');
2456
+ } else {
2457
+ this.rl.close();
2458
+ process.kill(process.pid, 'SIGINT');
2459
+ }
2460
+ });
2461
+ }
2462
+
2463
+ realStop() {
2464
+ if (process.platform === 'win32') {
2465
+ return;
2466
+ }
2467
+
2468
+ this.rl.close();
2469
+ this.rl = undefined;
2470
+ }
2471
+ }
2472
+
2473
+ let stdinDiscarder;
2474
+
2475
+ class Ora {
2476
+ constructor(options) {
2477
+ if (!stdinDiscarder) {
2478
+ stdinDiscarder = new StdinDiscarder();
2479
+ }
2480
+
2481
+ if (typeof options === 'string') {
2482
+ options = {
2483
+ text: options
2484
+ };
2485
+ }
2486
+
2487
+ this.options = {
2488
+ text: '',
2489
+ color: 'cyan',
2490
+ stream: process.stderr,
2491
+ discardStdin: true,
2492
+ ...options
2493
+ };
2494
+
2495
+ this.spinner = this.options.spinner;
2496
+
2497
+ this.color = this.options.color;
2498
+ this.hideCursor = this.options.hideCursor !== false;
2499
+ this.interval = this.options.interval || this.spinner.interval || 100;
2500
+ this.stream = this.options.stream;
2501
+ this.id = undefined;
2502
+ this.isEnabled = typeof this.options.isEnabled === 'boolean' ? this.options.isEnabled : isInteractive({stream: this.stream});
2503
+ this.isSilent = typeof this.options.isSilent === 'boolean' ? this.options.isSilent : false;
2504
+
2505
+ // Set *after* `this.stream`
2506
+ this.text = this.options.text;
2507
+ this.prefixText = this.options.prefixText;
2508
+ this.linesToClear = 0;
2509
+ this.indent = this.options.indent;
2510
+ this.discardStdin = this.options.discardStdin;
2511
+ this.isDiscardingStdin = false;
2512
+ }
2513
+
2514
+ get indent() {
2515
+ return this._indent;
2516
+ }
2517
+
2518
+ set indent(indent = 0) {
2519
+ if (!(indent >= 0 && Number.isInteger(indent))) {
2520
+ throw new Error('The `indent` option must be an integer from 0 and up');
2521
+ }
2522
+
2523
+ this._indent = indent;
2524
+ }
2525
+
2526
+ _updateInterval(interval) {
2527
+ if (interval !== undefined) {
2528
+ this.interval = interval;
2529
+ }
2530
+ }
2531
+
2532
+ get spinner() {
2533
+ return this._spinner;
2534
+ }
2535
+
2536
+ set spinner(spinner) {
2537
+ this.frameIndex = 0;
2538
+
2539
+ if (typeof spinner === 'object') {
2540
+ if (spinner.frames === undefined) {
2541
+ throw new Error('The given spinner must have a `frames` property');
2542
+ }
2543
+
2544
+ this._spinner = spinner;
2545
+ } else if (!isUnicodeSupported()) {
2546
+ this._spinner = cliSpinners.line;
2547
+ } else if (spinner === undefined) {
2548
+ // Set default spinner
2549
+ this._spinner = cliSpinners.dots;
2550
+ } else if (cliSpinners[spinner]) {
2551
+ this._spinner = cliSpinners[spinner];
2552
+ } else {
2553
+ throw new Error(`There is no built-in spinner named '${spinner}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);
2554
+ }
2555
+
2556
+ this._updateInterval(this._spinner.interval);
2557
+ }
2558
+
2559
+ get text() {
2560
+ return this[TEXT];
2561
+ }
2562
+
2563
+ set text(value) {
2564
+ this[TEXT] = value;
2565
+ this.updateLineCount();
2566
+ }
2567
+
2568
+ get prefixText() {
2569
+ return this[PREFIX_TEXT];
2570
+ }
2571
+
2572
+ set prefixText(value) {
2573
+ this[PREFIX_TEXT] = value;
2574
+ this.updateLineCount();
2575
+ }
2576
+
2577
+ get isSpinning() {
2578
+ return this.id !== undefined;
2579
+ }
2580
+
2581
+ getFullPrefixText(prefixText = this[PREFIX_TEXT], postfix = ' ') {
2582
+ if (typeof prefixText === 'string') {
2583
+ return prefixText + postfix;
2584
+ }
2585
+
2586
+ if (typeof prefixText === 'function') {
2587
+ return prefixText() + postfix;
2588
+ }
2589
+
2590
+ return '';
2591
+ }
2592
+
2593
+ updateLineCount() {
2594
+ const columns = this.stream.columns || 80;
2595
+ const fullPrefixText = this.getFullPrefixText(this.prefixText, '-');
2596
+ this.lineCount = 0;
2597
+ for (const line of stripAnsi(fullPrefixText + '--' + this[TEXT]).split('\n')) {
2598
+ this.lineCount += Math.max(1, Math.ceil(wcwidth(line) / columns));
2599
+ }
2600
+ }
2601
+
2602
+ get isEnabled() {
2603
+ return this._isEnabled && !this.isSilent;
2604
+ }
2605
+
2606
+ set isEnabled(value) {
2607
+ if (typeof value !== 'boolean') {
2608
+ throw new TypeError('The `isEnabled` option must be a boolean');
2609
+ }
2610
+
2611
+ this._isEnabled = value;
2612
+ }
2613
+
2614
+ get isSilent() {
2615
+ return this._isSilent;
2616
+ }
2617
+
2618
+ set isSilent(value) {
2619
+ if (typeof value !== 'boolean') {
2620
+ throw new TypeError('The `isSilent` option must be a boolean');
2621
+ }
2622
+
2623
+ this._isSilent = value;
2624
+ }
2625
+
2626
+ frame() {
2627
+ const {frames} = this.spinner;
2628
+ let frame = frames[this.frameIndex];
2629
+
2630
+ if (this.color) {
2631
+ frame = chalk[this.color](frame);
2632
+ }
2633
+
2634
+ this.frameIndex = ++this.frameIndex % frames.length;
2635
+ const fullPrefixText = (typeof this.prefixText === 'string' && this.prefixText !== '') ? this.prefixText + ' ' : '';
2636
+ const fullText = typeof this.text === 'string' ? ' ' + this.text : '';
2637
+
2638
+ return fullPrefixText + frame + fullText;
2639
+ }
2640
+
2641
+ clear() {
2642
+ if (!this.isEnabled || !this.stream.isTTY) {
2643
+ return this;
2644
+ }
2645
+
2646
+ for (let i = 0; i < this.linesToClear; i++) {
2647
+ if (i > 0) {
2648
+ this.stream.moveCursor(0, -1);
2649
+ }
2650
+
2651
+ this.stream.clearLine();
2652
+ this.stream.cursorTo(this.indent);
2653
+ }
2654
+
2655
+ this.linesToClear = 0;
2656
+
2657
+ return this;
2658
+ }
2659
+
2660
+ render() {
2661
+ if (this.isSilent) {
2662
+ return this;
2663
+ }
2664
+
2665
+ this.clear();
2666
+ this.stream.write(this.frame());
2667
+ this.linesToClear = this.lineCount;
2668
+
2669
+ return this;
2670
+ }
2671
+
2672
+ start(text) {
2673
+ if (text) {
2674
+ this.text = text;
2675
+ }
2676
+
2677
+ if (this.isSilent) {
2678
+ return this;
2679
+ }
2680
+
2681
+ if (!this.isEnabled) {
2682
+ if (this.text) {
2683
+ this.stream.write(`- ${this.text}\n`);
2684
+ }
2685
+
2686
+ return this;
2687
+ }
2688
+
2689
+ if (this.isSpinning) {
2690
+ return this;
2691
+ }
2692
+
2693
+ if (this.hideCursor) {
2694
+ cliCursor.hide(this.stream);
2695
+ }
2696
+
2697
+ if (this.discardStdin && process.stdin.isTTY) {
2698
+ this.isDiscardingStdin = true;
2699
+ stdinDiscarder.start();
2700
+ }
2701
+
2702
+ this.render();
2703
+ this.id = setInterval(this.render.bind(this), this.interval);
2704
+
2705
+ return this;
2706
+ }
2707
+
2708
+ stop() {
2709
+ if (!this.isEnabled) {
2710
+ return this;
2711
+ }
2712
+
2713
+ clearInterval(this.id);
2714
+ this.id = undefined;
2715
+ this.frameIndex = 0;
2716
+ this.clear();
2717
+ if (this.hideCursor) {
2718
+ cliCursor.show(this.stream);
2719
+ }
2720
+
2721
+ if (this.discardStdin && process.stdin.isTTY && this.isDiscardingStdin) {
2722
+ stdinDiscarder.stop();
2723
+ this.isDiscardingStdin = false;
2724
+ }
2725
+
2726
+ return this;
2727
+ }
2728
+
2729
+ succeed(text) {
2730
+ return this.stopAndPersist({symbol: logSymbols.success, text});
2731
+ }
2732
+
2733
+ fail(text) {
2734
+ return this.stopAndPersist({symbol: logSymbols.error, text});
2735
+ }
2736
+
2737
+ warn(text) {
2738
+ return this.stopAndPersist({symbol: logSymbols.warning, text});
2739
+ }
2740
+
2741
+ info(text) {
2742
+ return this.stopAndPersist({symbol: logSymbols.info, text});
2743
+ }
2744
+
2745
+ stopAndPersist(options = {}) {
2746
+ if (this.isSilent) {
2747
+ return this;
2748
+ }
2749
+
2750
+ const prefixText = options.prefixText || this.prefixText;
2751
+ const text = options.text || this.text;
2752
+ const fullText = (typeof text === 'string') ? ' ' + text : '';
2753
+
2754
+ this.stop();
2755
+ this.stream.write(`${this.getFullPrefixText(prefixText, ' ')}${options.symbol || ' '}${fullText}\n`);
2756
+
2757
+ return this;
2758
+ }
2759
+ }
2760
+
2761
+ const oraFactory = function (options) {
2762
+ return new Ora(options);
2763
+ };
2764
+
2765
+ module.exports = oraFactory;
2766
+
2767
+ module.exports.promise = (action, options) => {
2768
+ // eslint-disable-next-line promise/prefer-await-to-then
2769
+ if (typeof action.then !== 'function') {
2770
+ throw new TypeError('Parameter `action` must be a Promise');
2771
+ }
2772
+
2773
+ const spinner = new Ora(options);
2774
+ spinner.start();
2775
+
2776
+ (async () => {
2777
+ try {
2778
+ await action;
2779
+ spinner.succeed();
2780
+ } catch {
2781
+ spinner.fail();
2782
+ }
2783
+ })();
2784
+
2785
+ return spinner;
2786
+ };
2787
+
2788
+
2789
+ /***/ }),
2790
+
2791
+ /***/ 93666:
2792
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2793
+
2794
+ "use strict";
2795
+ /* module decorator */ module = __webpack_require__.nmd(module);
2796
+
2797
+
2798
+ const wrapAnsi16 = (fn, offset) => (...args) => {
2799
+ const code = fn(...args);
2800
+ return `\u001B[${code + offset}m`;
2801
+ };
2802
+
2803
+ const wrapAnsi256 = (fn, offset) => (...args) => {
2804
+ const code = fn(...args);
2805
+ return `\u001B[${38 + offset};5;${code}m`;
2806
+ };
2807
+
2808
+ const wrapAnsi16m = (fn, offset) => (...args) => {
2809
+ const rgb = fn(...args);
2810
+ return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
2811
+ };
2812
+
2813
+ const ansi2ansi = n => n;
2814
+ const rgb2rgb = (r, g, b) => [r, g, b];
2815
+
2816
+ const setLazyProperty = (object, property, get) => {
2817
+ Object.defineProperty(object, property, {
2818
+ get: () => {
2819
+ const value = get();
2820
+
2821
+ Object.defineProperty(object, property, {
2822
+ value,
2823
+ enumerable: true,
2824
+ configurable: true
2825
+ });
2826
+
2827
+ return value;
2828
+ },
2829
+ enumerable: true,
2830
+ configurable: true
2831
+ });
2832
+ };
2833
+
2834
+ /** @type {typeof import('color-convert')} */
2835
+ let colorConvert;
2836
+ const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
2837
+ if (colorConvert === undefined) {
2838
+ colorConvert = __webpack_require__(63387);
2839
+ }
2840
+
2841
+ const offset = isBackground ? 10 : 0;
2842
+ const styles = {};
2843
+
2844
+ for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
2845
+ const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace;
2846
+ if (sourceSpace === targetSpace) {
2847
+ styles[name] = wrap(identity, offset);
2848
+ } else if (typeof suite === 'object') {
2849
+ styles[name] = wrap(suite[targetSpace], offset);
2850
+ }
2851
+ }
2852
+
2853
+ return styles;
2854
+ };
2855
+
2856
+ function assembleStyles() {
2857
+ const codes = new Map();
2858
+ const styles = {
2859
+ modifier: {
2860
+ reset: [0, 0],
2861
+ // 21 isn't widely supported and 22 does the same thing
2862
+ bold: [1, 22],
2863
+ dim: [2, 22],
2864
+ italic: [3, 23],
2865
+ underline: [4, 24],
2866
+ inverse: [7, 27],
2867
+ hidden: [8, 28],
2868
+ strikethrough: [9, 29]
2869
+ },
2870
+ color: {
2871
+ black: [30, 39],
2872
+ red: [31, 39],
2873
+ green: [32, 39],
2874
+ yellow: [33, 39],
2875
+ blue: [34, 39],
2876
+ magenta: [35, 39],
2877
+ cyan: [36, 39],
2878
+ white: [37, 39],
2879
+
2880
+ // Bright color
2881
+ blackBright: [90, 39],
2882
+ redBright: [91, 39],
2883
+ greenBright: [92, 39],
2884
+ yellowBright: [93, 39],
2885
+ blueBright: [94, 39],
2886
+ magentaBright: [95, 39],
2887
+ cyanBright: [96, 39],
2888
+ whiteBright: [97, 39]
2889
+ },
2890
+ bgColor: {
2891
+ bgBlack: [40, 49],
2892
+ bgRed: [41, 49],
2893
+ bgGreen: [42, 49],
2894
+ bgYellow: [43, 49],
2895
+ bgBlue: [44, 49],
2896
+ bgMagenta: [45, 49],
2897
+ bgCyan: [46, 49],
2898
+ bgWhite: [47, 49],
2899
+
2900
+ // Bright color
2901
+ bgBlackBright: [100, 49],
2902
+ bgRedBright: [101, 49],
2903
+ bgGreenBright: [102, 49],
2904
+ bgYellowBright: [103, 49],
2905
+ bgBlueBright: [104, 49],
2906
+ bgMagentaBright: [105, 49],
2907
+ bgCyanBright: [106, 49],
2908
+ bgWhiteBright: [107, 49]
2909
+ }
2910
+ };
2911
+
2912
+ // Alias bright black as gray (and grey)
2913
+ styles.color.gray = styles.color.blackBright;
2914
+ styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
2915
+ styles.color.grey = styles.color.blackBright;
2916
+ styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
2917
+
2918
+ for (const [groupName, group] of Object.entries(styles)) {
2919
+ for (const [styleName, style] of Object.entries(group)) {
2920
+ styles[styleName] = {
2921
+ open: `\u001B[${style[0]}m`,
2922
+ close: `\u001B[${style[1]}m`
2923
+ };
2924
+
2925
+ group[styleName] = styles[styleName];
2926
+
2927
+ codes.set(style[0], style[1]);
2928
+ }
2929
+
2930
+ Object.defineProperty(styles, groupName, {
2931
+ value: group,
2932
+ enumerable: false
2933
+ });
2934
+ }
2935
+
2936
+ Object.defineProperty(styles, 'codes', {
2937
+ value: codes,
2938
+ enumerable: false
2939
+ });
2940
+
2941
+ styles.color.close = '\u001B[39m';
2942
+ styles.bgColor.close = '\u001B[49m';
2943
+
2944
+ setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false));
2945
+ setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false));
2946
+ setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false));
2947
+ setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true));
2948
+ setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true));
2949
+ setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true));
2950
+
2951
+ return styles;
2952
+ }
2953
+
2954
+ // Make the export immutable
2955
+ Object.defineProperty(module, 'exports', {
2956
+ enumerable: true,
2957
+ get: assembleStyles
2958
+ });
2959
+
2960
+
2961
+ /***/ }),
2962
+
2963
+ /***/ 29970:
2964
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2965
+
2966
+ "use strict";
2967
+
2968
+ const ansiStyles = __webpack_require__(93666);
2969
+ const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(87342);
2970
+ const {
2971
+ stringReplaceAll,
2972
+ stringEncaseCRLFWithFirstIndex
2973
+ } = __webpack_require__(6720);
2974
+
2975
+ const {isArray} = Array;
2976
+
2977
+ // `supportsColor.level` → `ansiStyles.color[name]` mapping
2978
+ const levelMapping = [
2979
+ 'ansi',
2980
+ 'ansi',
2981
+ 'ansi256',
2982
+ 'ansi16m'
2983
+ ];
2984
+
2985
+ const styles = Object.create(null);
2986
+
2987
+ const applyOptions = (object, options = {}) => {
2988
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
2989
+ throw new Error('The `level` option should be an integer from 0 to 3');
2990
+ }
2991
+
2992
+ // Detect level if not set manually
2993
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
2994
+ object.level = options.level === undefined ? colorLevel : options.level;
2995
+ };
2996
+
2997
+ class ChalkClass {
2998
+ constructor(options) {
2999
+ // eslint-disable-next-line no-constructor-return
3000
+ return chalkFactory(options);
3001
+ }
3002
+ }
3003
+
3004
+ const chalkFactory = options => {
3005
+ const chalk = {};
3006
+ applyOptions(chalk, options);
3007
+
3008
+ chalk.template = (...arguments_) => chalkTag(chalk.template, ...arguments_);
3009
+
3010
+ Object.setPrototypeOf(chalk, Chalk.prototype);
3011
+ Object.setPrototypeOf(chalk.template, chalk);
3012
+
3013
+ chalk.template.constructor = () => {
3014
+ throw new Error('`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.');
3015
+ };
3016
+
3017
+ chalk.template.Instance = ChalkClass;
3018
+
3019
+ return chalk.template;
3020
+ };
3021
+
3022
+ function Chalk(options) {
3023
+ return chalkFactory(options);
3024
+ }
3025
+
3026
+ for (const [styleName, style] of Object.entries(ansiStyles)) {
3027
+ styles[styleName] = {
3028
+ get() {
3029
+ const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
3030
+ Object.defineProperty(this, styleName, {value: builder});
3031
+ return builder;
3032
+ }
3033
+ };
3034
+ }
3035
+
3036
+ styles.visible = {
3037
+ get() {
3038
+ const builder = createBuilder(this, this._styler, true);
3039
+ Object.defineProperty(this, 'visible', {value: builder});
3040
+ return builder;
3041
+ }
3042
+ };
3043
+
3044
+ const usedModels = ['rgb', 'hex', 'keyword', 'hsl', 'hsv', 'hwb', 'ansi', 'ansi256'];
3045
+
3046
+ for (const model of usedModels) {
3047
+ styles[model] = {
3048
+ get() {
3049
+ const {level} = this;
3050
+ return function (...arguments_) {
3051
+ const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
3052
+ return createBuilder(this, styler, this._isEmpty);
3053
+ };
3054
+ }
3055
+ };
3056
+ }
3057
+
3058
+ for (const model of usedModels) {
3059
+ const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
3060
+ styles[bgModel] = {
3061
+ get() {
3062
+ const {level} = this;
3063
+ return function (...arguments_) {
3064
+ const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
3065
+ return createBuilder(this, styler, this._isEmpty);
3066
+ };
3067
+ }
3068
+ };
3069
+ }
3070
+
3071
+ const proto = Object.defineProperties(() => {}, {
3072
+ ...styles,
3073
+ level: {
3074
+ enumerable: true,
3075
+ get() {
3076
+ return this._generator.level;
3077
+ },
3078
+ set(level) {
3079
+ this._generator.level = level;
3080
+ }
3081
+ }
3082
+ });
3083
+
3084
+ const createStyler = (open, close, parent) => {
3085
+ let openAll;
3086
+ let closeAll;
3087
+ if (parent === undefined) {
3088
+ openAll = open;
3089
+ closeAll = close;
3090
+ } else {
3091
+ openAll = parent.openAll + open;
3092
+ closeAll = close + parent.closeAll;
3093
+ }
3094
+
3095
+ return {
3096
+ open,
3097
+ close,
3098
+ openAll,
3099
+ closeAll,
3100
+ parent
3101
+ };
3102
+ };
3103
+
3104
+ const createBuilder = (self, _styler, _isEmpty) => {
3105
+ const builder = (...arguments_) => {
3106
+ if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
3107
+ // Called as a template literal, for example: chalk.red`2 + 3 = {bold ${2+3}}`
3108
+ return applyStyle(builder, chalkTag(builder, ...arguments_));
3109
+ }
3110
+
3111
+ // Single argument is hot path, implicit coercion is faster than anything
3112
+ // eslint-disable-next-line no-implicit-coercion
3113
+ return applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));
3114
+ };
3115
+
3116
+ // We alter the prototype because we must return a function, but there is
3117
+ // no way to create a function with a different prototype
3118
+ Object.setPrototypeOf(builder, proto);
3119
+
3120
+ builder._generator = self;
3121
+ builder._styler = _styler;
3122
+ builder._isEmpty = _isEmpty;
3123
+
3124
+ return builder;
3125
+ };
3126
+
3127
+ const applyStyle = (self, string) => {
3128
+ if (self.level <= 0 || !string) {
3129
+ return self._isEmpty ? '' : string;
3130
+ }
3131
+
3132
+ let styler = self._styler;
3133
+
3134
+ if (styler === undefined) {
3135
+ return string;
3136
+ }
3137
+
3138
+ const {openAll, closeAll} = styler;
3139
+ if (string.indexOf('\u001B') !== -1) {
3140
+ while (styler !== undefined) {
3141
+ // Replace any instances already present with a re-opening code
3142
+ // otherwise only the part of the string until said closing code
3143
+ // will be colored, and the rest will simply be 'plain'.
3144
+ string = stringReplaceAll(string, styler.close, styler.open);
3145
+
3146
+ styler = styler.parent;
3147
+ }
3148
+ }
3149
+
3150
+ // We can move both next actions out of loop, because remaining actions in loop won't have
3151
+ // any/visible effect on parts we add here. Close the styling before a linebreak and reopen
3152
+ // after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92
3153
+ const lfIndex = string.indexOf('\n');
3154
+ if (lfIndex !== -1) {
3155
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
3156
+ }
3157
+
3158
+ return openAll + string + closeAll;
3159
+ };
3160
+
3161
+ let template;
3162
+ const chalkTag = (chalk, ...strings) => {
3163
+ const [firstString] = strings;
3164
+
3165
+ if (!isArray(firstString) || !isArray(firstString.raw)) {
3166
+ // If chalk() was called by itself or with a string,
3167
+ // return the string itself as a string.
3168
+ return strings.join(' ');
3169
+ }
3170
+
3171
+ const arguments_ = strings.slice(1);
3172
+ const parts = [firstString.raw[0]];
3173
+
3174
+ for (let i = 1; i < firstString.length; i++) {
3175
+ parts.push(
3176
+ String(arguments_[i - 1]).replace(/[{}\\]/g, '\\$&'),
3177
+ String(firstString.raw[i])
3178
+ );
3179
+ }
3180
+
3181
+ if (template === undefined) {
3182
+ template = __webpack_require__(32938);
3183
+ }
3184
+
3185
+ return template(chalk, parts.join(''));
3186
+ };
3187
+
3188
+ Object.defineProperties(Chalk.prototype, styles);
3189
+
3190
+ const chalk = Chalk(); // eslint-disable-line new-cap
3191
+ chalk.supportsColor = stdoutColor;
3192
+ chalk.stderr = Chalk({level: stderrColor ? stderrColor.level : 0}); // eslint-disable-line new-cap
3193
+ chalk.stderr.supportsColor = stderrColor;
3194
+
3195
+ module.exports = chalk;
3196
+
3197
+
3198
+ /***/ }),
3199
+
3200
+ /***/ 32938:
3201
+ /***/ ((module) => {
3202
+
3203
+ "use strict";
3204
+
3205
+ 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;
3206
+ const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
3207
+ const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
3208
+ const ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
3209
+
3210
+ const ESCAPES = new Map([
3211
+ ['n', '\n'],
3212
+ ['r', '\r'],
3213
+ ['t', '\t'],
3214
+ ['b', '\b'],
3215
+ ['f', '\f'],
3216
+ ['v', '\v'],
3217
+ ['0', '\0'],
3218
+ ['\\', '\\'],
3219
+ ['e', '\u001B'],
3220
+ ['a', '\u0007']
3221
+ ]);
3222
+
3223
+ function unescape(c) {
3224
+ const u = c[0] === 'u';
3225
+ const bracket = c[1] === '{';
3226
+
3227
+ if ((u && !bracket && c.length === 5) || (c[0] === 'x' && c.length === 3)) {
3228
+ return String.fromCharCode(parseInt(c.slice(1), 16));
3229
+ }
3230
+
3231
+ if (u && bracket) {
3232
+ return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
3233
+ }
3234
+
3235
+ return ESCAPES.get(c) || c;
3236
+ }
3237
+
3238
+ function parseArguments(name, arguments_) {
3239
+ const results = [];
3240
+ const chunks = arguments_.trim().split(/\s*,\s*/g);
3241
+ let matches;
3242
+
3243
+ for (const chunk of chunks) {
3244
+ const number = Number(chunk);
3245
+ if (!Number.isNaN(number)) {
3246
+ results.push(number);
3247
+ } else if ((matches = chunk.match(STRING_REGEX))) {
3248
+ results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
3249
+ } else {
3250
+ throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
3251
+ }
3252
+ }
3253
+
3254
+ return results;
3255
+ }
3256
+
3257
+ function parseStyle(style) {
3258
+ STYLE_REGEX.lastIndex = 0;
3259
+
3260
+ const results = [];
3261
+ let matches;
3262
+
3263
+ while ((matches = STYLE_REGEX.exec(style)) !== null) {
3264
+ const name = matches[1];
3265
+
3266
+ if (matches[2]) {
3267
+ const args = parseArguments(name, matches[2]);
3268
+ results.push([name].concat(args));
3269
+ } else {
3270
+ results.push([name]);
3271
+ }
3272
+ }
3273
+
3274
+ return results;
3275
+ }
3276
+
3277
+ function buildStyle(chalk, styles) {
3278
+ const enabled = {};
3279
+
3280
+ for (const layer of styles) {
3281
+ for (const style of layer.styles) {
3282
+ enabled[style[0]] = layer.inverse ? null : style.slice(1);
3283
+ }
3284
+ }
3285
+
3286
+ let current = chalk;
3287
+ for (const [styleName, styles] of Object.entries(enabled)) {
3288
+ if (!Array.isArray(styles)) {
3289
+ continue;
3290
+ }
3291
+
3292
+ if (!(styleName in current)) {
3293
+ throw new Error(`Unknown Chalk style: ${styleName}`);
3294
+ }
3295
+
3296
+ current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
3297
+ }
3298
+
3299
+ return current;
3300
+ }
3301
+
3302
+ module.exports = (chalk, temporary) => {
3303
+ const styles = [];
3304
+ const chunks = [];
3305
+ let chunk = [];
3306
+
3307
+ // eslint-disable-next-line max-params
3308
+ temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
3309
+ if (escapeCharacter) {
3310
+ chunk.push(unescape(escapeCharacter));
3311
+ } else if (style) {
3312
+ const string = chunk.join('');
3313
+ chunk = [];
3314
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
3315
+ styles.push({inverse, styles: parseStyle(style)});
3316
+ } else if (close) {
3317
+ if (styles.length === 0) {
3318
+ throw new Error('Found extraneous } in Chalk template literal');
3319
+ }
3320
+
3321
+ chunks.push(buildStyle(chalk, styles)(chunk.join('')));
3322
+ chunk = [];
3323
+ styles.pop();
3324
+ } else {
3325
+ chunk.push(character);
3326
+ }
3327
+ });
3328
+
3329
+ chunks.push(chunk.join(''));
3330
+
3331
+ if (styles.length > 0) {
3332
+ const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
3333
+ throw new Error(errMessage);
3334
+ }
3335
+
3336
+ return chunks.join('');
3337
+ };
3338
+
3339
+
3340
+ /***/ }),
3341
+
3342
+ /***/ 6720:
3343
+ /***/ ((module) => {
3344
+
3345
+ "use strict";
3346
+
3347
+
3348
+ const stringReplaceAll = (string, substring, replacer) => {
3349
+ let index = string.indexOf(substring);
3350
+ if (index === -1) {
3351
+ return string;
3352
+ }
3353
+
3354
+ const substringLength = substring.length;
3355
+ let endIndex = 0;
3356
+ let returnValue = '';
3357
+ do {
3358
+ returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
3359
+ endIndex = index + substringLength;
3360
+ index = string.indexOf(substring, endIndex);
3361
+ } while (index !== -1);
3362
+
3363
+ returnValue += string.substr(endIndex);
3364
+ return returnValue;
3365
+ };
3366
+
3367
+ const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
3368
+ let endIndex = 0;
3369
+ let returnValue = '';
3370
+ do {
3371
+ const gotCR = string[index - 1] === '\r';
3372
+ returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? '\r\n' : '\n') + postfix;
3373
+ endIndex = index + 1;
3374
+ index = string.indexOf('\n', endIndex);
3375
+ } while (index !== -1);
3376
+
3377
+ returnValue += string.substr(endIndex);
3378
+ return returnValue;
3379
+ };
3380
+
3381
+ module.exports = {
3382
+ stringReplaceAll,
3383
+ stringEncaseCRLFWithFirstIndex
3384
+ };
3385
+
3386
+
3387
+ /***/ }),
3388
+
3389
+ /***/ 39626:
3390
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3391
+
3392
+ /* MIT license */
3393
+ /* eslint-disable no-mixed-operators */
3394
+ const cssKeywords = __webpack_require__(22735);
3395
+
3396
+ // NOTE: conversions should only return primitive values (i.e. arrays, or
3397
+ // values that give correct `typeof` results).
3398
+ // do not use box values types (i.e. Number(), String(), etc.)
3399
+
3400
+ const reverseKeywords = {};
3401
+ for (const key of Object.keys(cssKeywords)) {
3402
+ reverseKeywords[cssKeywords[key]] = key;
3403
+ }
3404
+
3405
+ const convert = {
3406
+ rgb: {channels: 3, labels: 'rgb'},
3407
+ hsl: {channels: 3, labels: 'hsl'},
3408
+ hsv: {channels: 3, labels: 'hsv'},
3409
+ hwb: {channels: 3, labels: 'hwb'},
3410
+ cmyk: {channels: 4, labels: 'cmyk'},
3411
+ xyz: {channels: 3, labels: 'xyz'},
3412
+ lab: {channels: 3, labels: 'lab'},
3413
+ lch: {channels: 3, labels: 'lch'},
3414
+ hex: {channels: 1, labels: ['hex']},
3415
+ keyword: {channels: 1, labels: ['keyword']},
3416
+ ansi16: {channels: 1, labels: ['ansi16']},
3417
+ ansi256: {channels: 1, labels: ['ansi256']},
3418
+ hcg: {channels: 3, labels: ['h', 'c', 'g']},
3419
+ apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
3420
+ gray: {channels: 1, labels: ['gray']}
3421
+ };
3422
+
3423
+ module.exports = convert;
3424
+
3425
+ // Hide .channels and .labels properties
3426
+ for (const model of Object.keys(convert)) {
3427
+ if (!('channels' in convert[model])) {
3428
+ throw new Error('missing channels property: ' + model);
3429
+ }
3430
+
3431
+ if (!('labels' in convert[model])) {
3432
+ throw new Error('missing channel labels property: ' + model);
3433
+ }
3434
+
3435
+ if (convert[model].labels.length !== convert[model].channels) {
3436
+ throw new Error('channel and label counts mismatch: ' + model);
3437
+ }
3438
+
3439
+ const {channels, labels} = convert[model];
3440
+ delete convert[model].channels;
3441
+ delete convert[model].labels;
3442
+ Object.defineProperty(convert[model], 'channels', {value: channels});
3443
+ Object.defineProperty(convert[model], 'labels', {value: labels});
3444
+ }
3445
+
3446
+ convert.rgb.hsl = function (rgb) {
3447
+ const r = rgb[0] / 255;
3448
+ const g = rgb[1] / 255;
3449
+ const b = rgb[2] / 255;
3450
+ const min = Math.min(r, g, b);
3451
+ const max = Math.max(r, g, b);
3452
+ const delta = max - min;
3453
+ let h;
3454
+ let s;
3455
+
3456
+ if (max === min) {
3457
+ h = 0;
3458
+ } else if (r === max) {
3459
+ h = (g - b) / delta;
3460
+ } else if (g === max) {
3461
+ h = 2 + (b - r) / delta;
3462
+ } else if (b === max) {
3463
+ h = 4 + (r - g) / delta;
3464
+ }
3465
+
3466
+ h = Math.min(h * 60, 360);
3467
+
3468
+ if (h < 0) {
3469
+ h += 360;
3470
+ }
3471
+
3472
+ const l = (min + max) / 2;
3473
+
3474
+ if (max === min) {
3475
+ s = 0;
3476
+ } else if (l <= 0.5) {
3477
+ s = delta / (max + min);
3478
+ } else {
3479
+ s = delta / (2 - max - min);
3480
+ }
3481
+
3482
+ return [h, s * 100, l * 100];
3483
+ };
3484
+
3485
+ convert.rgb.hsv = function (rgb) {
3486
+ let rdif;
3487
+ let gdif;
3488
+ let bdif;
3489
+ let h;
3490
+ let s;
3491
+
3492
+ const r = rgb[0] / 255;
3493
+ const g = rgb[1] / 255;
3494
+ const b = rgb[2] / 255;
3495
+ const v = Math.max(r, g, b);
3496
+ const diff = v - Math.min(r, g, b);
3497
+ const diffc = function (c) {
3498
+ return (v - c) / 6 / diff + 1 / 2;
3499
+ };
3500
+
3501
+ if (diff === 0) {
3502
+ h = 0;
3503
+ s = 0;
3504
+ } else {
3505
+ s = diff / v;
3506
+ rdif = diffc(r);
3507
+ gdif = diffc(g);
3508
+ bdif = diffc(b);
3509
+
3510
+ if (r === v) {
3511
+ h = bdif - gdif;
3512
+ } else if (g === v) {
3513
+ h = (1 / 3) + rdif - bdif;
3514
+ } else if (b === v) {
3515
+ h = (2 / 3) + gdif - rdif;
3516
+ }
3517
+
3518
+ if (h < 0) {
3519
+ h += 1;
3520
+ } else if (h > 1) {
3521
+ h -= 1;
3522
+ }
3523
+ }
3524
+
3525
+ return [
3526
+ h * 360,
3527
+ s * 100,
3528
+ v * 100
3529
+ ];
3530
+ };
3531
+
3532
+ convert.rgb.hwb = function (rgb) {
3533
+ const r = rgb[0];
3534
+ const g = rgb[1];
3535
+ let b = rgb[2];
3536
+ const h = convert.rgb.hsl(rgb)[0];
3537
+ const w = 1 / 255 * Math.min(r, Math.min(g, b));
3538
+
3539
+ b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
3540
+
3541
+ return [h, w * 100, b * 100];
3542
+ };
3543
+
3544
+ convert.rgb.cmyk = function (rgb) {
3545
+ const r = rgb[0] / 255;
3546
+ const g = rgb[1] / 255;
3547
+ const b = rgb[2] / 255;
3548
+
3549
+ const k = Math.min(1 - r, 1 - g, 1 - b);
3550
+ const c = (1 - r - k) / (1 - k) || 0;
3551
+ const m = (1 - g - k) / (1 - k) || 0;
3552
+ const y = (1 - b - k) / (1 - k) || 0;
3553
+
3554
+ return [c * 100, m * 100, y * 100, k * 100];
3555
+ };
3556
+
3557
+ function comparativeDistance(x, y) {
3558
+ /*
3559
+ See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
3560
+ */
3561
+ return (
3562
+ ((x[0] - y[0]) ** 2) +
3563
+ ((x[1] - y[1]) ** 2) +
3564
+ ((x[2] - y[2]) ** 2)
3565
+ );
3566
+ }
3567
+
3568
+ convert.rgb.keyword = function (rgb) {
3569
+ const reversed = reverseKeywords[rgb];
3570
+ if (reversed) {
3571
+ return reversed;
3572
+ }
3573
+
3574
+ let currentClosestDistance = Infinity;
3575
+ let currentClosestKeyword;
3576
+
3577
+ for (const keyword of Object.keys(cssKeywords)) {
3578
+ const value = cssKeywords[keyword];
3579
+
3580
+ // Compute comparative distance
3581
+ const distance = comparativeDistance(rgb, value);
3582
+
3583
+ // Check if its less, if so set as closest
3584
+ if (distance < currentClosestDistance) {
3585
+ currentClosestDistance = distance;
3586
+ currentClosestKeyword = keyword;
3587
+ }
3588
+ }
3589
+
3590
+ return currentClosestKeyword;
3591
+ };
3592
+
3593
+ convert.keyword.rgb = function (keyword) {
3594
+ return cssKeywords[keyword];
3595
+ };
3596
+
3597
+ convert.rgb.xyz = function (rgb) {
3598
+ let r = rgb[0] / 255;
3599
+ let g = rgb[1] / 255;
3600
+ let b = rgb[2] / 255;
3601
+
3602
+ // Assume sRGB
3603
+ r = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);
3604
+ g = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);
3605
+ b = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);
3606
+
3607
+ const x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
3608
+ const y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
3609
+ const z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
3610
+
3611
+ return [x * 100, y * 100, z * 100];
3612
+ };
3613
+
3614
+ convert.rgb.lab = function (rgb) {
3615
+ const xyz = convert.rgb.xyz(rgb);
3616
+ let x = xyz[0];
3617
+ let y = xyz[1];
3618
+ let z = xyz[2];
3619
+
3620
+ x /= 95.047;
3621
+ y /= 100;
3622
+ z /= 108.883;
3623
+
3624
+ x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
3625
+ y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
3626
+ z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
3627
+
3628
+ const l = (116 * y) - 16;
3629
+ const a = 500 * (x - y);
3630
+ const b = 200 * (y - z);
3631
+
3632
+ return [l, a, b];
3633
+ };
3634
+
3635
+ convert.hsl.rgb = function (hsl) {
3636
+ const h = hsl[0] / 360;
3637
+ const s = hsl[1] / 100;
3638
+ const l = hsl[2] / 100;
3639
+ let t2;
3640
+ let t3;
3641
+ let val;
3642
+
3643
+ if (s === 0) {
3644
+ val = l * 255;
3645
+ return [val, val, val];
3646
+ }
3647
+
3648
+ if (l < 0.5) {
3649
+ t2 = l * (1 + s);
3650
+ } else {
3651
+ t2 = l + s - l * s;
3652
+ }
3653
+
3654
+ const t1 = 2 * l - t2;
3655
+
3656
+ const rgb = [0, 0, 0];
3657
+ for (let i = 0; i < 3; i++) {
3658
+ t3 = h + 1 / 3 * -(i - 1);
3659
+ if (t3 < 0) {
3660
+ t3++;
3661
+ }
3662
+
3663
+ if (t3 > 1) {
3664
+ t3--;
3665
+ }
3666
+
3667
+ if (6 * t3 < 1) {
3668
+ val = t1 + (t2 - t1) * 6 * t3;
3669
+ } else if (2 * t3 < 1) {
3670
+ val = t2;
3671
+ } else if (3 * t3 < 2) {
3672
+ val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
3673
+ } else {
3674
+ val = t1;
3675
+ }
3676
+
3677
+ rgb[i] = val * 255;
3678
+ }
3679
+
3680
+ return rgb;
3681
+ };
3682
+
3683
+ convert.hsl.hsv = function (hsl) {
3684
+ const h = hsl[0];
3685
+ let s = hsl[1] / 100;
3686
+ let l = hsl[2] / 100;
3687
+ let smin = s;
3688
+ const lmin = Math.max(l, 0.01);
3689
+
3690
+ l *= 2;
3691
+ s *= (l <= 1) ? l : 2 - l;
3692
+ smin *= lmin <= 1 ? lmin : 2 - lmin;
3693
+ const v = (l + s) / 2;
3694
+ const sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
3695
+
3696
+ return [h, sv * 100, v * 100];
3697
+ };
3698
+
3699
+ convert.hsv.rgb = function (hsv) {
3700
+ const h = hsv[0] / 60;
3701
+ const s = hsv[1] / 100;
3702
+ let v = hsv[2] / 100;
3703
+ const hi = Math.floor(h) % 6;
3704
+
3705
+ const f = h - Math.floor(h);
3706
+ const p = 255 * v * (1 - s);
3707
+ const q = 255 * v * (1 - (s * f));
3708
+ const t = 255 * v * (1 - (s * (1 - f)));
3709
+ v *= 255;
3710
+
3711
+ switch (hi) {
3712
+ case 0:
3713
+ return [v, t, p];
3714
+ case 1:
3715
+ return [q, v, p];
3716
+ case 2:
3717
+ return [p, v, t];
3718
+ case 3:
3719
+ return [p, q, v];
3720
+ case 4:
3721
+ return [t, p, v];
3722
+ case 5:
3723
+ return [v, p, q];
3724
+ }
3725
+ };
3726
+
3727
+ convert.hsv.hsl = function (hsv) {
3728
+ const h = hsv[0];
3729
+ const s = hsv[1] / 100;
3730
+ const v = hsv[2] / 100;
3731
+ const vmin = Math.max(v, 0.01);
3732
+ let sl;
3733
+ let l;
3734
+
3735
+ l = (2 - s) * v;
3736
+ const lmin = (2 - s) * vmin;
3737
+ sl = s * vmin;
3738
+ sl /= (lmin <= 1) ? lmin : 2 - lmin;
3739
+ sl = sl || 0;
3740
+ l /= 2;
3741
+
3742
+ return [h, sl * 100, l * 100];
3743
+ };
3744
+
3745
+ // http://dev.w3.org/csswg/css-color/#hwb-to-rgb
3746
+ convert.hwb.rgb = function (hwb) {
3747
+ const h = hwb[0] / 360;
3748
+ let wh = hwb[1] / 100;
3749
+ let bl = hwb[2] / 100;
3750
+ const ratio = wh + bl;
3751
+ let f;
3752
+
3753
+ // Wh + bl cant be > 1
3754
+ if (ratio > 1) {
3755
+ wh /= ratio;
3756
+ bl /= ratio;
3757
+ }
3758
+
3759
+ const i = Math.floor(6 * h);
3760
+ const v = 1 - bl;
3761
+ f = 6 * h - i;
3762
+
3763
+ if ((i & 0x01) !== 0) {
3764
+ f = 1 - f;
3765
+ }
3766
+
3767
+ const n = wh + f * (v - wh); // Linear interpolation
3768
+
3769
+ let r;
3770
+ let g;
3771
+ let b;
3772
+ /* eslint-disable max-statements-per-line,no-multi-spaces */
3773
+ switch (i) {
3774
+ default:
3775
+ case 6:
3776
+ case 0: r = v; g = n; b = wh; break;
3777
+ case 1: r = n; g = v; b = wh; break;
3778
+ case 2: r = wh; g = v; b = n; break;
3779
+ case 3: r = wh; g = n; b = v; break;
3780
+ case 4: r = n; g = wh; b = v; break;
3781
+ case 5: r = v; g = wh; b = n; break;
3782
+ }
3783
+ /* eslint-enable max-statements-per-line,no-multi-spaces */
3784
+
3785
+ return [r * 255, g * 255, b * 255];
3786
+ };
3787
+
3788
+ convert.cmyk.rgb = function (cmyk) {
3789
+ const c = cmyk[0] / 100;
3790
+ const m = cmyk[1] / 100;
3791
+ const y = cmyk[2] / 100;
3792
+ const k = cmyk[3] / 100;
3793
+
3794
+ const r = 1 - Math.min(1, c * (1 - k) + k);
3795
+ const g = 1 - Math.min(1, m * (1 - k) + k);
3796
+ const b = 1 - Math.min(1, y * (1 - k) + k);
3797
+
3798
+ return [r * 255, g * 255, b * 255];
3799
+ };
3800
+
3801
+ convert.xyz.rgb = function (xyz) {
3802
+ const x = xyz[0] / 100;
3803
+ const y = xyz[1] / 100;
3804
+ const z = xyz[2] / 100;
3805
+ let r;
3806
+ let g;
3807
+ let b;
3808
+
3809
+ r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
3810
+ g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
3811
+ b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
3812
+
3813
+ // Assume sRGB
3814
+ r = r > 0.0031308
3815
+ ? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)
3816
+ : r * 12.92;
3817
+
3818
+ g = g > 0.0031308
3819
+ ? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)
3820
+ : g * 12.92;
3821
+
3822
+ b = b > 0.0031308
3823
+ ? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)
3824
+ : b * 12.92;
3825
+
3826
+ r = Math.min(Math.max(0, r), 1);
3827
+ g = Math.min(Math.max(0, g), 1);
3828
+ b = Math.min(Math.max(0, b), 1);
3829
+
3830
+ return [r * 255, g * 255, b * 255];
3831
+ };
3832
+
3833
+ convert.xyz.lab = function (xyz) {
3834
+ let x = xyz[0];
3835
+ let y = xyz[1];
3836
+ let z = xyz[2];
3837
+
3838
+ x /= 95.047;
3839
+ y /= 100;
3840
+ z /= 108.883;
3841
+
3842
+ x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
3843
+ y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
3844
+ z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
3845
+
3846
+ const l = (116 * y) - 16;
3847
+ const a = 500 * (x - y);
3848
+ const b = 200 * (y - z);
3849
+
3850
+ return [l, a, b];
3851
+ };
3852
+
3853
+ convert.lab.xyz = function (lab) {
3854
+ const l = lab[0];
3855
+ const a = lab[1];
3856
+ const b = lab[2];
3857
+ let x;
3858
+ let y;
3859
+ let z;
3860
+
3861
+ y = (l + 16) / 116;
3862
+ x = a / 500 + y;
3863
+ z = y - b / 200;
3864
+
3865
+ const y2 = y ** 3;
3866
+ const x2 = x ** 3;
3867
+ const z2 = z ** 3;
3868
+ y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
3869
+ x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
3870
+ z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
3871
+
3872
+ x *= 95.047;
3873
+ y *= 100;
3874
+ z *= 108.883;
3875
+
3876
+ return [x, y, z];
3877
+ };
3878
+
3879
+ convert.lab.lch = function (lab) {
3880
+ const l = lab[0];
3881
+ const a = lab[1];
3882
+ const b = lab[2];
3883
+ let h;
3884
+
3885
+ const hr = Math.atan2(b, a);
3886
+ h = hr * 360 / 2 / Math.PI;
3887
+
3888
+ if (h < 0) {
3889
+ h += 360;
3890
+ }
3891
+
3892
+ const c = Math.sqrt(a * a + b * b);
3893
+
3894
+ return [l, c, h];
3895
+ };
3896
+
3897
+ convert.lch.lab = function (lch) {
3898
+ const l = lch[0];
3899
+ const c = lch[1];
3900
+ const h = lch[2];
3901
+
3902
+ const hr = h / 360 * 2 * Math.PI;
3903
+ const a = c * Math.cos(hr);
3904
+ const b = c * Math.sin(hr);
3905
+
3906
+ return [l, a, b];
3907
+ };
3908
+
3909
+ convert.rgb.ansi16 = function (args, saturation = null) {
3910
+ const [r, g, b] = args;
3911
+ let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization
3912
+
3913
+ value = Math.round(value / 50);
3914
+
3915
+ if (value === 0) {
3916
+ return 30;
3917
+ }
3918
+
3919
+ let ansi = 30
3920
+ + ((Math.round(b / 255) << 2)
3921
+ | (Math.round(g / 255) << 1)
3922
+ | Math.round(r / 255));
3923
+
3924
+ if (value === 2) {
3925
+ ansi += 60;
3926
+ }
3927
+
3928
+ return ansi;
3929
+ };
3930
+
3931
+ convert.hsv.ansi16 = function (args) {
3932
+ // Optimization here; we already know the value and don't need to get
3933
+ // it converted for us.
3934
+ return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
3935
+ };
3936
+
3937
+ convert.rgb.ansi256 = function (args) {
3938
+ const r = args[0];
3939
+ const g = args[1];
3940
+ const b = args[2];
3941
+
3942
+ // We use the extended greyscale palette here, with the exception of
3943
+ // black and white. normal palette only has 4 greyscale shades.
3944
+ if (r === g && g === b) {
3945
+ if (r < 8) {
3946
+ return 16;
3947
+ }
3948
+
3949
+ if (r > 248) {
3950
+ return 231;
3951
+ }
3952
+
3953
+ return Math.round(((r - 8) / 247) * 24) + 232;
3954
+ }
3955
+
3956
+ const ansi = 16
3957
+ + (36 * Math.round(r / 255 * 5))
3958
+ + (6 * Math.round(g / 255 * 5))
3959
+ + Math.round(b / 255 * 5);
3960
+
3961
+ return ansi;
3962
+ };
3963
+
3964
+ convert.ansi16.rgb = function (args) {
3965
+ let color = args % 10;
3966
+
3967
+ // Handle greyscale
3968
+ if (color === 0 || color === 7) {
3969
+ if (args > 50) {
3970
+ color += 3.5;
3971
+ }
3972
+
3973
+ color = color / 10.5 * 255;
3974
+
3975
+ return [color, color, color];
3976
+ }
3977
+
3978
+ const mult = (~~(args > 50) + 1) * 0.5;
3979
+ const r = ((color & 1) * mult) * 255;
3980
+ const g = (((color >> 1) & 1) * mult) * 255;
3981
+ const b = (((color >> 2) & 1) * mult) * 255;
3982
+
3983
+ return [r, g, b];
3984
+ };
3985
+
3986
+ convert.ansi256.rgb = function (args) {
3987
+ // Handle greyscale
3988
+ if (args >= 232) {
3989
+ const c = (args - 232) * 10 + 8;
3990
+ return [c, c, c];
3991
+ }
3992
+
3993
+ args -= 16;
3994
+
3995
+ let rem;
3996
+ const r = Math.floor(args / 36) / 5 * 255;
3997
+ const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
3998
+ const b = (rem % 6) / 5 * 255;
3999
+
4000
+ return [r, g, b];
4001
+ };
4002
+
4003
+ convert.rgb.hex = function (args) {
4004
+ const integer = ((Math.round(args[0]) & 0xFF) << 16)
4005
+ + ((Math.round(args[1]) & 0xFF) << 8)
4006
+ + (Math.round(args[2]) & 0xFF);
4007
+
4008
+ const string = integer.toString(16).toUpperCase();
4009
+ return '000000'.substring(string.length) + string;
4010
+ };
4011
+
4012
+ convert.hex.rgb = function (args) {
4013
+ const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
4014
+ if (!match) {
4015
+ return [0, 0, 0];
4016
+ }
4017
+
4018
+ let colorString = match[0];
4019
+
4020
+ if (match[0].length === 3) {
4021
+ colorString = colorString.split('').map(char => {
4022
+ return char + char;
4023
+ }).join('');
4024
+ }
4025
+
4026
+ const integer = parseInt(colorString, 16);
4027
+ const r = (integer >> 16) & 0xFF;
4028
+ const g = (integer >> 8) & 0xFF;
4029
+ const b = integer & 0xFF;
4030
+
4031
+ return [r, g, b];
4032
+ };
4033
+
4034
+ convert.rgb.hcg = function (rgb) {
4035
+ const r = rgb[0] / 255;
4036
+ const g = rgb[1] / 255;
4037
+ const b = rgb[2] / 255;
4038
+ const max = Math.max(Math.max(r, g), b);
4039
+ const min = Math.min(Math.min(r, g), b);
4040
+ const chroma = (max - min);
4041
+ let grayscale;
4042
+ let hue;
4043
+
4044
+ if (chroma < 1) {
4045
+ grayscale = min / (1 - chroma);
4046
+ } else {
4047
+ grayscale = 0;
4048
+ }
4049
+
4050
+ if (chroma <= 0) {
4051
+ hue = 0;
4052
+ } else
4053
+ if (max === r) {
4054
+ hue = ((g - b) / chroma) % 6;
4055
+ } else
4056
+ if (max === g) {
4057
+ hue = 2 + (b - r) / chroma;
4058
+ } else {
4059
+ hue = 4 + (r - g) / chroma;
4060
+ }
4061
+
4062
+ hue /= 6;
4063
+ hue %= 1;
4064
+
4065
+ return [hue * 360, chroma * 100, grayscale * 100];
4066
+ };
4067
+
4068
+ convert.hsl.hcg = function (hsl) {
4069
+ const s = hsl[1] / 100;
4070
+ const l = hsl[2] / 100;
4071
+
4072
+ const c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));
4073
+
4074
+ let f = 0;
4075
+ if (c < 1.0) {
4076
+ f = (l - 0.5 * c) / (1.0 - c);
4077
+ }
4078
+
4079
+ return [hsl[0], c * 100, f * 100];
4080
+ };
4081
+
4082
+ convert.hsv.hcg = function (hsv) {
4083
+ const s = hsv[1] / 100;
4084
+ const v = hsv[2] / 100;
4085
+
4086
+ const c = s * v;
4087
+ let f = 0;
4088
+
4089
+ if (c < 1.0) {
4090
+ f = (v - c) / (1 - c);
4091
+ }
4092
+
4093
+ return [hsv[0], c * 100, f * 100];
4094
+ };
4095
+
4096
+ convert.hcg.rgb = function (hcg) {
4097
+ const h = hcg[0] / 360;
4098
+ const c = hcg[1] / 100;
4099
+ const g = hcg[2] / 100;
4100
+
4101
+ if (c === 0.0) {
4102
+ return [g * 255, g * 255, g * 255];
4103
+ }
4104
+
4105
+ const pure = [0, 0, 0];
4106
+ const hi = (h % 1) * 6;
4107
+ const v = hi % 1;
4108
+ const w = 1 - v;
4109
+ let mg = 0;
4110
+
4111
+ /* eslint-disable max-statements-per-line */
4112
+ switch (Math.floor(hi)) {
4113
+ case 0:
4114
+ pure[0] = 1; pure[1] = v; pure[2] = 0; break;
4115
+ case 1:
4116
+ pure[0] = w; pure[1] = 1; pure[2] = 0; break;
4117
+ case 2:
4118
+ pure[0] = 0; pure[1] = 1; pure[2] = v; break;
4119
+ case 3:
4120
+ pure[0] = 0; pure[1] = w; pure[2] = 1; break;
4121
+ case 4:
4122
+ pure[0] = v; pure[1] = 0; pure[2] = 1; break;
4123
+ default:
4124
+ pure[0] = 1; pure[1] = 0; pure[2] = w;
4125
+ }
4126
+ /* eslint-enable max-statements-per-line */
4127
+
4128
+ mg = (1.0 - c) * g;
4129
+
4130
+ return [
4131
+ (c * pure[0] + mg) * 255,
4132
+ (c * pure[1] + mg) * 255,
4133
+ (c * pure[2] + mg) * 255
4134
+ ];
4135
+ };
4136
+
4137
+ convert.hcg.hsv = function (hcg) {
4138
+ const c = hcg[1] / 100;
4139
+ const g = hcg[2] / 100;
4140
+
4141
+ const v = c + g * (1.0 - c);
4142
+ let f = 0;
4143
+
4144
+ if (v > 0.0) {
4145
+ f = c / v;
4146
+ }
4147
+
4148
+ return [hcg[0], f * 100, v * 100];
4149
+ };
4150
+
4151
+ convert.hcg.hsl = function (hcg) {
4152
+ const c = hcg[1] / 100;
4153
+ const g = hcg[2] / 100;
4154
+
4155
+ const l = g * (1.0 - c) + 0.5 * c;
4156
+ let s = 0;
4157
+
4158
+ if (l > 0.0 && l < 0.5) {
4159
+ s = c / (2 * l);
4160
+ } else
4161
+ if (l >= 0.5 && l < 1.0) {
4162
+ s = c / (2 * (1 - l));
4163
+ }
4164
+
4165
+ return [hcg[0], s * 100, l * 100];
4166
+ };
4167
+
4168
+ convert.hcg.hwb = function (hcg) {
4169
+ const c = hcg[1] / 100;
4170
+ const g = hcg[2] / 100;
4171
+ const v = c + g * (1.0 - c);
4172
+ return [hcg[0], (v - c) * 100, (1 - v) * 100];
4173
+ };
4174
+
4175
+ convert.hwb.hcg = function (hwb) {
4176
+ const w = hwb[1] / 100;
4177
+ const b = hwb[2] / 100;
4178
+ const v = 1 - b;
4179
+ const c = v - w;
4180
+ let g = 0;
4181
+
4182
+ if (c < 1) {
4183
+ g = (v - c) / (1 - c);
4184
+ }
4185
+
4186
+ return [hwb[0], c * 100, g * 100];
4187
+ };
4188
+
4189
+ convert.apple.rgb = function (apple) {
4190
+ return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
4191
+ };
4192
+
4193
+ convert.rgb.apple = function (rgb) {
4194
+ return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
4195
+ };
4196
+
4197
+ convert.gray.rgb = function (args) {
4198
+ return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
4199
+ };
4200
+
4201
+ convert.gray.hsl = function (args) {
4202
+ return [0, 0, args[0]];
4203
+ };
4204
+
4205
+ convert.gray.hsv = convert.gray.hsl;
4206
+
4207
+ convert.gray.hwb = function (gray) {
4208
+ return [0, 100, gray[0]];
4209
+ };
4210
+
4211
+ convert.gray.cmyk = function (gray) {
4212
+ return [0, 0, 0, gray[0]];
4213
+ };
4214
+
4215
+ convert.gray.lab = function (gray) {
4216
+ return [gray[0], 0, 0];
4217
+ };
4218
+
4219
+ convert.gray.hex = function (gray) {
4220
+ const val = Math.round(gray[0] / 100 * 255) & 0xFF;
4221
+ const integer = (val << 16) + (val << 8) + val;
4222
+
4223
+ const string = integer.toString(16).toUpperCase();
4224
+ return '000000'.substring(string.length) + string;
4225
+ };
4226
+
4227
+ convert.rgb.gray = function (rgb) {
4228
+ const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
4229
+ return [val / 255 * 100];
4230
+ };
4231
+
4232
+
4233
+ /***/ }),
4234
+
4235
+ /***/ 63387:
4236
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4237
+
4238
+ const conversions = __webpack_require__(39626);
4239
+ const route = __webpack_require__(28309);
4240
+
4241
+ const convert = {};
4242
+
4243
+ const models = Object.keys(conversions);
4244
+
4245
+ function wrapRaw(fn) {
4246
+ const wrappedFn = function (...args) {
4247
+ const arg0 = args[0];
4248
+ if (arg0 === undefined || arg0 === null) {
4249
+ return arg0;
4250
+ }
4251
+
4252
+ if (arg0.length > 1) {
4253
+ args = arg0;
4254
+ }
4255
+
4256
+ return fn(args);
4257
+ };
4258
+
4259
+ // Preserve .conversion property if there is one
4260
+ if ('conversion' in fn) {
4261
+ wrappedFn.conversion = fn.conversion;
4262
+ }
4263
+
4264
+ return wrappedFn;
4265
+ }
4266
+
4267
+ function wrapRounded(fn) {
4268
+ const wrappedFn = function (...args) {
4269
+ const arg0 = args[0];
4270
+
4271
+ if (arg0 === undefined || arg0 === null) {
4272
+ return arg0;
4273
+ }
4274
+
4275
+ if (arg0.length > 1) {
4276
+ args = arg0;
4277
+ }
4278
+
4279
+ const result = fn(args);
4280
+
4281
+ // We're assuming the result is an array here.
4282
+ // see notice in conversions.js; don't use box types
4283
+ // in conversion functions.
4284
+ if (typeof result === 'object') {
4285
+ for (let len = result.length, i = 0; i < len; i++) {
4286
+ result[i] = Math.round(result[i]);
4287
+ }
4288
+ }
4289
+
4290
+ return result;
4291
+ };
4292
+
4293
+ // Preserve .conversion property if there is one
4294
+ if ('conversion' in fn) {
4295
+ wrappedFn.conversion = fn.conversion;
4296
+ }
4297
+
4298
+ return wrappedFn;
4299
+ }
4300
+
4301
+ models.forEach(fromModel => {
4302
+ convert[fromModel] = {};
4303
+
4304
+ Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
4305
+ Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});
4306
+
4307
+ const routes = route(fromModel);
4308
+ const routeModels = Object.keys(routes);
4309
+
4310
+ routeModels.forEach(toModel => {
4311
+ const fn = routes[toModel];
4312
+
4313
+ convert[fromModel][toModel] = wrapRounded(fn);
4314
+ convert[fromModel][toModel].raw = wrapRaw(fn);
4315
+ });
4316
+ });
4317
+
4318
+ module.exports = convert;
4319
+
4320
+
4321
+ /***/ }),
4322
+
4323
+ /***/ 28309:
4324
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4325
+
4326
+ const conversions = __webpack_require__(39626);
4327
+
4328
+ /*
4329
+ This function routes a model to all other models.
4330
+
4331
+ all functions that are routed have a property `.conversion` attached
4332
+ to the returned synthetic function. This property is an array
4333
+ of strings, each with the steps in between the 'from' and 'to'
4334
+ color models (inclusive).
4335
+
4336
+ conversions that are not possible simply are not included.
4337
+ */
4338
+
4339
+ function buildGraph() {
4340
+ const graph = {};
4341
+ // https://jsperf.com/object-keys-vs-for-in-with-closure/3
4342
+ const models = Object.keys(conversions);
4343
+
4344
+ for (let len = models.length, i = 0; i < len; i++) {
4345
+ graph[models[i]] = {
4346
+ // http://jsperf.com/1-vs-infinity
4347
+ // micro-opt, but this is simple.
4348
+ distance: -1,
4349
+ parent: null
4350
+ };
4351
+ }
4352
+
4353
+ return graph;
4354
+ }
4355
+
4356
+ // https://en.wikipedia.org/wiki/Breadth-first_search
4357
+ function deriveBFS(fromModel) {
4358
+ const graph = buildGraph();
4359
+ const queue = [fromModel]; // Unshift -> queue -> pop
4360
+
4361
+ graph[fromModel].distance = 0;
4362
+
4363
+ while (queue.length) {
4364
+ const current = queue.pop();
4365
+ const adjacents = Object.keys(conversions[current]);
4366
+
4367
+ for (let len = adjacents.length, i = 0; i < len; i++) {
4368
+ const adjacent = adjacents[i];
4369
+ const node = graph[adjacent];
4370
+
4371
+ if (node.distance === -1) {
4372
+ node.distance = graph[current].distance + 1;
4373
+ node.parent = current;
4374
+ queue.unshift(adjacent);
4375
+ }
4376
+ }
4377
+ }
4378
+
4379
+ return graph;
4380
+ }
4381
+
4382
+ function link(from, to) {
4383
+ return function (args) {
4384
+ return to(from(args));
4385
+ };
4386
+ }
4387
+
4388
+ function wrapConversion(toModel, graph) {
4389
+ const path = [graph[toModel].parent, toModel];
4390
+ let fn = conversions[graph[toModel].parent][toModel];
4391
+
4392
+ let cur = graph[toModel].parent;
4393
+ while (graph[cur].parent) {
4394
+ path.unshift(graph[cur].parent);
4395
+ fn = link(conversions[graph[cur].parent][cur], fn);
4396
+ cur = graph[cur].parent;
4397
+ }
4398
+
4399
+ fn.conversion = path;
4400
+ return fn;
4401
+ }
4402
+
4403
+ module.exports = function (fromModel) {
4404
+ const graph = deriveBFS(fromModel);
4405
+ const conversion = {};
4406
+
4407
+ const models = Object.keys(graph);
4408
+ for (let len = models.length, i = 0; i < len; i++) {
4409
+ const toModel = models[i];
4410
+ const node = graph[toModel];
4411
+
4412
+ if (node.parent === null) {
4413
+ // No possible conversion, or this node is the source model.
4414
+ continue;
4415
+ }
4416
+
4417
+ conversion[toModel] = wrapConversion(toModel, graph);
4418
+ }
4419
+
4420
+ return conversion;
4421
+ };
4422
+
4423
+
4424
+
4425
+ /***/ }),
4426
+
4427
+ /***/ 22735:
4428
+ /***/ ((module) => {
4429
+
4430
+ "use strict";
4431
+
4432
+
4433
+ module.exports = {
4434
+ "aliceblue": [240, 248, 255],
4435
+ "antiquewhite": [250, 235, 215],
4436
+ "aqua": [0, 255, 255],
4437
+ "aquamarine": [127, 255, 212],
4438
+ "azure": [240, 255, 255],
4439
+ "beige": [245, 245, 220],
4440
+ "bisque": [255, 228, 196],
4441
+ "black": [0, 0, 0],
4442
+ "blanchedalmond": [255, 235, 205],
4443
+ "blue": [0, 0, 255],
4444
+ "blueviolet": [138, 43, 226],
4445
+ "brown": [165, 42, 42],
4446
+ "burlywood": [222, 184, 135],
4447
+ "cadetblue": [95, 158, 160],
4448
+ "chartreuse": [127, 255, 0],
4449
+ "chocolate": [210, 105, 30],
4450
+ "coral": [255, 127, 80],
4451
+ "cornflowerblue": [100, 149, 237],
4452
+ "cornsilk": [255, 248, 220],
4453
+ "crimson": [220, 20, 60],
4454
+ "cyan": [0, 255, 255],
4455
+ "darkblue": [0, 0, 139],
4456
+ "darkcyan": [0, 139, 139],
4457
+ "darkgoldenrod": [184, 134, 11],
4458
+ "darkgray": [169, 169, 169],
4459
+ "darkgreen": [0, 100, 0],
4460
+ "darkgrey": [169, 169, 169],
4461
+ "darkkhaki": [189, 183, 107],
4462
+ "darkmagenta": [139, 0, 139],
4463
+ "darkolivegreen": [85, 107, 47],
4464
+ "darkorange": [255, 140, 0],
4465
+ "darkorchid": [153, 50, 204],
4466
+ "darkred": [139, 0, 0],
4467
+ "darksalmon": [233, 150, 122],
4468
+ "darkseagreen": [143, 188, 143],
4469
+ "darkslateblue": [72, 61, 139],
4470
+ "darkslategray": [47, 79, 79],
4471
+ "darkslategrey": [47, 79, 79],
4472
+ "darkturquoise": [0, 206, 209],
4473
+ "darkviolet": [148, 0, 211],
4474
+ "deeppink": [255, 20, 147],
4475
+ "deepskyblue": [0, 191, 255],
4476
+ "dimgray": [105, 105, 105],
4477
+ "dimgrey": [105, 105, 105],
4478
+ "dodgerblue": [30, 144, 255],
4479
+ "firebrick": [178, 34, 34],
4480
+ "floralwhite": [255, 250, 240],
4481
+ "forestgreen": [34, 139, 34],
4482
+ "fuchsia": [255, 0, 255],
4483
+ "gainsboro": [220, 220, 220],
4484
+ "ghostwhite": [248, 248, 255],
4485
+ "gold": [255, 215, 0],
4486
+ "goldenrod": [218, 165, 32],
4487
+ "gray": [128, 128, 128],
4488
+ "green": [0, 128, 0],
4489
+ "greenyellow": [173, 255, 47],
4490
+ "grey": [128, 128, 128],
4491
+ "honeydew": [240, 255, 240],
4492
+ "hotpink": [255, 105, 180],
4493
+ "indianred": [205, 92, 92],
4494
+ "indigo": [75, 0, 130],
4495
+ "ivory": [255, 255, 240],
4496
+ "khaki": [240, 230, 140],
4497
+ "lavender": [230, 230, 250],
4498
+ "lavenderblush": [255, 240, 245],
4499
+ "lawngreen": [124, 252, 0],
4500
+ "lemonchiffon": [255, 250, 205],
4501
+ "lightblue": [173, 216, 230],
4502
+ "lightcoral": [240, 128, 128],
4503
+ "lightcyan": [224, 255, 255],
4504
+ "lightgoldenrodyellow": [250, 250, 210],
4505
+ "lightgray": [211, 211, 211],
4506
+ "lightgreen": [144, 238, 144],
4507
+ "lightgrey": [211, 211, 211],
4508
+ "lightpink": [255, 182, 193],
4509
+ "lightsalmon": [255, 160, 122],
4510
+ "lightseagreen": [32, 178, 170],
4511
+ "lightskyblue": [135, 206, 250],
4512
+ "lightslategray": [119, 136, 153],
4513
+ "lightslategrey": [119, 136, 153],
4514
+ "lightsteelblue": [176, 196, 222],
4515
+ "lightyellow": [255, 255, 224],
4516
+ "lime": [0, 255, 0],
4517
+ "limegreen": [50, 205, 50],
4518
+ "linen": [250, 240, 230],
4519
+ "magenta": [255, 0, 255],
4520
+ "maroon": [128, 0, 0],
4521
+ "mediumaquamarine": [102, 205, 170],
4522
+ "mediumblue": [0, 0, 205],
4523
+ "mediumorchid": [186, 85, 211],
4524
+ "mediumpurple": [147, 112, 219],
4525
+ "mediumseagreen": [60, 179, 113],
4526
+ "mediumslateblue": [123, 104, 238],
4527
+ "mediumspringgreen": [0, 250, 154],
4528
+ "mediumturquoise": [72, 209, 204],
4529
+ "mediumvioletred": [199, 21, 133],
4530
+ "midnightblue": [25, 25, 112],
4531
+ "mintcream": [245, 255, 250],
4532
+ "mistyrose": [255, 228, 225],
4533
+ "moccasin": [255, 228, 181],
4534
+ "navajowhite": [255, 222, 173],
4535
+ "navy": [0, 0, 128],
4536
+ "oldlace": [253, 245, 230],
4537
+ "olive": [128, 128, 0],
4538
+ "olivedrab": [107, 142, 35],
4539
+ "orange": [255, 165, 0],
4540
+ "orangered": [255, 69, 0],
4541
+ "orchid": [218, 112, 214],
4542
+ "palegoldenrod": [238, 232, 170],
4543
+ "palegreen": [152, 251, 152],
4544
+ "paleturquoise": [175, 238, 238],
4545
+ "palevioletred": [219, 112, 147],
4546
+ "papayawhip": [255, 239, 213],
4547
+ "peachpuff": [255, 218, 185],
4548
+ "peru": [205, 133, 63],
4549
+ "pink": [255, 192, 203],
4550
+ "plum": [221, 160, 221],
4551
+ "powderblue": [176, 224, 230],
4552
+ "purple": [128, 0, 128],
4553
+ "rebeccapurple": [102, 51, 153],
4554
+ "red": [255, 0, 0],
4555
+ "rosybrown": [188, 143, 143],
4556
+ "royalblue": [65, 105, 225],
4557
+ "saddlebrown": [139, 69, 19],
4558
+ "salmon": [250, 128, 114],
4559
+ "sandybrown": [244, 164, 96],
4560
+ "seagreen": [46, 139, 87],
4561
+ "seashell": [255, 245, 238],
4562
+ "sienna": [160, 82, 45],
4563
+ "silver": [192, 192, 192],
4564
+ "skyblue": [135, 206, 235],
4565
+ "slateblue": [106, 90, 205],
4566
+ "slategray": [112, 128, 144],
4567
+ "slategrey": [112, 128, 144],
4568
+ "snow": [255, 250, 250],
4569
+ "springgreen": [0, 255, 127],
4570
+ "steelblue": [70, 130, 180],
4571
+ "tan": [210, 180, 140],
4572
+ "teal": [0, 128, 128],
4573
+ "thistle": [216, 191, 216],
4574
+ "tomato": [255, 99, 71],
4575
+ "turquoise": [64, 224, 208],
4576
+ "violet": [238, 130, 238],
4577
+ "wheat": [245, 222, 179],
4578
+ "white": [255, 255, 255],
4579
+ "whitesmoke": [245, 245, 245],
4580
+ "yellow": [255, 255, 0],
4581
+ "yellowgreen": [154, 205, 50]
4582
+ };
4583
+
4584
+
4585
+ /***/ }),
4586
+
4587
+ /***/ 49780:
4588
+ /***/ ((module) => {
4589
+
4590
+ "use strict";
4591
+
4592
+
4593
+ module.exports = (flag, argv = process.argv) => {
4594
+ const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
4595
+ const position = argv.indexOf(prefix + flag);
4596
+ const terminatorPosition = argv.indexOf('--');
4597
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
4598
+ };
4599
+
4600
+
4601
+ /***/ }),
4602
+
4603
+ /***/ 53217:
4604
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4605
+
4606
+ "use strict";
4607
+
4608
+ const ansiRegex = __webpack_require__(14277);
4609
+
4610
+ module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
4611
+
4612
+
4613
+ /***/ }),
4614
+
4615
+ /***/ 87342:
4616
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4617
+
4618
+ "use strict";
4619
+
4620
+ const os = __webpack_require__(12087);
4621
+ const tty = __webpack_require__(33867);
4622
+ const hasFlag = __webpack_require__(49780);
4623
+
4624
+ const {env} = process;
4625
+
4626
+ let forceColor;
4627
+ if (hasFlag('no-color') ||
4628
+ hasFlag('no-colors') ||
4629
+ hasFlag('color=false') ||
4630
+ hasFlag('color=never')) {
4631
+ forceColor = 0;
4632
+ } else if (hasFlag('color') ||
4633
+ hasFlag('colors') ||
4634
+ hasFlag('color=true') ||
4635
+ hasFlag('color=always')) {
4636
+ forceColor = 1;
4637
+ }
4638
+
4639
+ if ('FORCE_COLOR' in env) {
4640
+ if (env.FORCE_COLOR === 'true') {
4641
+ forceColor = 1;
4642
+ } else if (env.FORCE_COLOR === 'false') {
4643
+ forceColor = 0;
4644
+ } else {
4645
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
4646
+ }
4647
+ }
4648
+
4649
+ function translateLevel(level) {
4650
+ if (level === 0) {
4651
+ return false;
4652
+ }
4653
+
4654
+ return {
4655
+ level,
4656
+ hasBasic: true,
4657
+ has256: level >= 2,
4658
+ has16m: level >= 3
4659
+ };
4660
+ }
4661
+
4662
+ function supportsColor(haveStream, streamIsTTY) {
4663
+ if (forceColor === 0) {
4664
+ return 0;
4665
+ }
4666
+
4667
+ if (hasFlag('color=16m') ||
4668
+ hasFlag('color=full') ||
4669
+ hasFlag('color=truecolor')) {
4670
+ return 3;
4671
+ }
4672
+
4673
+ if (hasFlag('color=256')) {
4674
+ return 2;
4675
+ }
4676
+
4677
+ if (haveStream && !streamIsTTY && forceColor === undefined) {
4678
+ return 0;
4679
+ }
4680
+
4681
+ const min = forceColor || 0;
4682
+
4683
+ if (env.TERM === 'dumb') {
4684
+ return min;
4685
+ }
4686
+
4687
+ if (process.platform === 'win32') {
4688
+ // Windows 10 build 10586 is the first Windows release that supports 256 colors.
4689
+ // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
4690
+ const osRelease = os.release().split('.');
4691
+ if (
4692
+ Number(osRelease[0]) >= 10 &&
4693
+ Number(osRelease[2]) >= 10586
4694
+ ) {
4695
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
4696
+ }
4697
+
4698
+ return 1;
4699
+ }
4700
+
4701
+ if ('CI' in env) {
4702
+ if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
4703
+ return 1;
4704
+ }
4705
+
4706
+ return min;
4707
+ }
4708
+
4709
+ if ('TEAMCITY_VERSION' in env) {
4710
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
4711
+ }
4712
+
4713
+ if (env.COLORTERM === 'truecolor') {
4714
+ return 3;
4715
+ }
4716
+
4717
+ if ('TERM_PROGRAM' in env) {
4718
+ const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
4719
+
4720
+ switch (env.TERM_PROGRAM) {
4721
+ case 'iTerm.app':
4722
+ return version >= 3 ? 3 : 2;
4723
+ case 'Apple_Terminal':
4724
+ return 2;
4725
+ // No default
4726
+ }
4727
+ }
4728
+
4729
+ if (/-256(color)?$/i.test(env.TERM)) {
4730
+ return 2;
4731
+ }
4732
+
4733
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
4734
+ return 1;
4735
+ }
4736
+
4737
+ if ('COLORTERM' in env) {
4738
+ return 1;
4739
+ }
4740
+
4741
+ return min;
4742
+ }
4743
+
4744
+ function getSupportLevel(stream) {
4745
+ const level = supportsColor(stream, stream && stream.isTTY);
4746
+ return translateLevel(level);
4747
+ }
4748
+
4749
+ module.exports = {
4750
+ supportsColor: getSupportLevel,
4751
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
4752
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
4753
+ };
4754
+
4755
+
4756
+ /***/ }),
4757
+
4758
+ /***/ 71354:
4759
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4760
+
4761
+ "use strict";
4762
+
4763
+ const onetime = __webpack_require__(31322);
4764
+ const signalExit = __webpack_require__(27908);
4765
+
4766
+ module.exports = onetime(() => {
4767
+ signalExit(() => {
4768
+ process.stderr.write('\u001B[?25h');
4769
+ }, {alwaysLast: true});
4770
+ });
4771
+
4772
+
4773
+ /***/ }),
4774
+
4775
+ /***/ 72653:
4776
+ /***/ ((module) => {
4777
+
4778
+ module.exports = [
4779
+ [ 0x0300, 0x036F ], [ 0x0483, 0x0486 ], [ 0x0488, 0x0489 ],
4780
+ [ 0x0591, 0x05BD ], [ 0x05BF, 0x05BF ], [ 0x05C1, 0x05C2 ],
4781
+ [ 0x05C4, 0x05C5 ], [ 0x05C7, 0x05C7 ], [ 0x0600, 0x0603 ],
4782
+ [ 0x0610, 0x0615 ], [ 0x064B, 0x065E ], [ 0x0670, 0x0670 ],
4783
+ [ 0x06D6, 0x06E4 ], [ 0x06E7, 0x06E8 ], [ 0x06EA, 0x06ED ],
4784
+ [ 0x070F, 0x070F ], [ 0x0711, 0x0711 ], [ 0x0730, 0x074A ],
4785
+ [ 0x07A6, 0x07B0 ], [ 0x07EB, 0x07F3 ], [ 0x0901, 0x0902 ],
4786
+ [ 0x093C, 0x093C ], [ 0x0941, 0x0948 ], [ 0x094D, 0x094D ],
4787
+ [ 0x0951, 0x0954 ], [ 0x0962, 0x0963 ], [ 0x0981, 0x0981 ],
4788
+ [ 0x09BC, 0x09BC ], [ 0x09C1, 0x09C4 ], [ 0x09CD, 0x09CD ],
4789
+ [ 0x09E2, 0x09E3 ], [ 0x0A01, 0x0A02 ], [ 0x0A3C, 0x0A3C ],
4790
+ [ 0x0A41, 0x0A42 ], [ 0x0A47, 0x0A48 ], [ 0x0A4B, 0x0A4D ],
4791
+ [ 0x0A70, 0x0A71 ], [ 0x0A81, 0x0A82 ], [ 0x0ABC, 0x0ABC ],
4792
+ [ 0x0AC1, 0x0AC5 ], [ 0x0AC7, 0x0AC8 ], [ 0x0ACD, 0x0ACD ],
4793
+ [ 0x0AE2, 0x0AE3 ], [ 0x0B01, 0x0B01 ], [ 0x0B3C, 0x0B3C ],
4794
+ [ 0x0B3F, 0x0B3F ], [ 0x0B41, 0x0B43 ], [ 0x0B4D, 0x0B4D ],
4795
+ [ 0x0B56, 0x0B56 ], [ 0x0B82, 0x0B82 ], [ 0x0BC0, 0x0BC0 ],
4796
+ [ 0x0BCD, 0x0BCD ], [ 0x0C3E, 0x0C40 ], [ 0x0C46, 0x0C48 ],
4797
+ [ 0x0C4A, 0x0C4D ], [ 0x0C55, 0x0C56 ], [ 0x0CBC, 0x0CBC ],
4798
+ [ 0x0CBF, 0x0CBF ], [ 0x0CC6, 0x0CC6 ], [ 0x0CCC, 0x0CCD ],
4799
+ [ 0x0CE2, 0x0CE3 ], [ 0x0D41, 0x0D43 ], [ 0x0D4D, 0x0D4D ],
4800
+ [ 0x0DCA, 0x0DCA ], [ 0x0DD2, 0x0DD4 ], [ 0x0DD6, 0x0DD6 ],
4801
+ [ 0x0E31, 0x0E31 ], [ 0x0E34, 0x0E3A ], [ 0x0E47, 0x0E4E ],
4802
+ [ 0x0EB1, 0x0EB1 ], [ 0x0EB4, 0x0EB9 ], [ 0x0EBB, 0x0EBC ],
4803
+ [ 0x0EC8, 0x0ECD ], [ 0x0F18, 0x0F19 ], [ 0x0F35, 0x0F35 ],
4804
+ [ 0x0F37, 0x0F37 ], [ 0x0F39, 0x0F39 ], [ 0x0F71, 0x0F7E ],
4805
+ [ 0x0F80, 0x0F84 ], [ 0x0F86, 0x0F87 ], [ 0x0F90, 0x0F97 ],
4806
+ [ 0x0F99, 0x0FBC ], [ 0x0FC6, 0x0FC6 ], [ 0x102D, 0x1030 ],
4807
+ [ 0x1032, 0x1032 ], [ 0x1036, 0x1037 ], [ 0x1039, 0x1039 ],
4808
+ [ 0x1058, 0x1059 ], [ 0x1160, 0x11FF ], [ 0x135F, 0x135F ],
4809
+ [ 0x1712, 0x1714 ], [ 0x1732, 0x1734 ], [ 0x1752, 0x1753 ],
4810
+ [ 0x1772, 0x1773 ], [ 0x17B4, 0x17B5 ], [ 0x17B7, 0x17BD ],
4811
+ [ 0x17C6, 0x17C6 ], [ 0x17C9, 0x17D3 ], [ 0x17DD, 0x17DD ],
4812
+ [ 0x180B, 0x180D ], [ 0x18A9, 0x18A9 ], [ 0x1920, 0x1922 ],
4813
+ [ 0x1927, 0x1928 ], [ 0x1932, 0x1932 ], [ 0x1939, 0x193B ],
4814
+ [ 0x1A17, 0x1A18 ], [ 0x1B00, 0x1B03 ], [ 0x1B34, 0x1B34 ],
4815
+ [ 0x1B36, 0x1B3A ], [ 0x1B3C, 0x1B3C ], [ 0x1B42, 0x1B42 ],
4816
+ [ 0x1B6B, 0x1B73 ], [ 0x1DC0, 0x1DCA ], [ 0x1DFE, 0x1DFF ],
4817
+ [ 0x200B, 0x200F ], [ 0x202A, 0x202E ], [ 0x2060, 0x2063 ],
4818
+ [ 0x206A, 0x206F ], [ 0x20D0, 0x20EF ], [ 0x302A, 0x302F ],
4819
+ [ 0x3099, 0x309A ], [ 0xA806, 0xA806 ], [ 0xA80B, 0xA80B ],
4820
+ [ 0xA825, 0xA826 ], [ 0xFB1E, 0xFB1E ], [ 0xFE00, 0xFE0F ],
4821
+ [ 0xFE20, 0xFE23 ], [ 0xFEFF, 0xFEFF ], [ 0xFFF9, 0xFFFB ],
4822
+ [ 0x10A01, 0x10A03 ], [ 0x10A05, 0x10A06 ], [ 0x10A0C, 0x10A0F ],
4823
+ [ 0x10A38, 0x10A3A ], [ 0x10A3F, 0x10A3F ], [ 0x1D167, 0x1D169 ],
4824
+ [ 0x1D173, 0x1D182 ], [ 0x1D185, 0x1D18B ], [ 0x1D1AA, 0x1D1AD ],
4825
+ [ 0x1D242, 0x1D244 ], [ 0xE0001, 0xE0001 ], [ 0xE0020, 0xE007F ],
4826
+ [ 0xE0100, 0xE01EF ]
4827
+ ]
4828
+
4829
+
4830
+ /***/ }),
4831
+
4832
+ /***/ 71011:
4833
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4834
+
4835
+ "use strict";
4836
+
4837
+
4838
+ var defaults = __webpack_require__(34575)
4839
+ var combining = __webpack_require__(72653)
4840
+
4841
+ var DEFAULTS = {
4842
+ nul: 0,
4843
+ control: 0
4844
+ }
4845
+
4846
+ module.exports = function wcwidth(str) {
4847
+ return wcswidth(str, DEFAULTS)
4848
+ }
4849
+
4850
+ module.exports.config = function(opts) {
4851
+ opts = defaults(opts || {}, DEFAULTS)
4852
+ return function wcwidth(str) {
4853
+ return wcswidth(str, opts)
4854
+ }
4855
+ }
4856
+
4857
+ /*
4858
+ * The following functions define the column width of an ISO 10646
4859
+ * character as follows:
4860
+ * - The null character (U+0000) has a column width of 0.
4861
+ * - Other C0/C1 control characters and DEL will lead to a return value
4862
+ * of -1.
4863
+ * - Non-spacing and enclosing combining characters (general category
4864
+ * code Mn or Me in the
4865
+ * Unicode database) have a column width of 0.
4866
+ * - SOFT HYPHEN (U+00AD) has a column width of 1.
4867
+ * - Other format characters (general category code Cf in the Unicode
4868
+ * database) and ZERO WIDTH
4869
+ * SPACE (U+200B) have a column width of 0.
4870
+ * - Hangul Jamo medial vowels and final consonants (U+1160-U+11FF)
4871
+ * have a column width of 0.
4872
+ * - Spacing characters in the East Asian Wide (W) or East Asian
4873
+ * Full-width (F) category as
4874
+ * defined in Unicode Technical Report #11 have a column width of 2.
4875
+ * - All remaining characters (including all printable ISO 8859-1 and
4876
+ * WGL4 characters, Unicode control characters, etc.) have a column
4877
+ * width of 1.
4878
+ * This implementation assumes that characters are encoded in ISO 10646.
4879
+ */
4880
+
4881
+ function wcswidth(str, opts) {
4882
+ if (typeof str !== 'string') return wcwidth(str, opts)
4883
+
4884
+ var s = 0
4885
+ for (var i = 0; i < str.length; i++) {
4886
+ var n = wcwidth(str.charCodeAt(i), opts)
4887
+ if (n < 0) return -1
4888
+ s += n
4889
+ }
4890
+
4891
+ return s
4892
+ }
4893
+
4894
+ function wcwidth(ucs, opts) {
4895
+ // test for 8-bit control characters
4896
+ if (ucs === 0) return opts.nul
4897
+ if (ucs < 32 || (ucs >= 0x7f && ucs < 0xa0)) return opts.control
4898
+
4899
+ // binary search in table of non-spacing characters
4900
+ if (bisearch(ucs)) return 0
4901
+
4902
+ // if we arrive here, ucs is not a combining or C0/C1 control character
4903
+ return 1 +
4904
+ (ucs >= 0x1100 &&
4905
+ (ucs <= 0x115f || // Hangul Jamo init. consonants
4906
+ ucs == 0x2329 || ucs == 0x232a ||
4907
+ (ucs >= 0x2e80 && ucs <= 0xa4cf &&
4908
+ ucs != 0x303f) || // CJK ... Yi
4909
+ (ucs >= 0xac00 && ucs <= 0xd7a3) || // Hangul Syllables
4910
+ (ucs >= 0xf900 && ucs <= 0xfaff) || // CJK Compatibility Ideographs
4911
+ (ucs >= 0xfe10 && ucs <= 0xfe19) || // Vertical forms
4912
+ (ucs >= 0xfe30 && ucs <= 0xfe6f) || // CJK Compatibility Forms
4913
+ (ucs >= 0xff00 && ucs <= 0xff60) || // Fullwidth Forms
4914
+ (ucs >= 0xffe0 && ucs <= 0xffe6) ||
4915
+ (ucs >= 0x20000 && ucs <= 0x2fffd) ||
4916
+ (ucs >= 0x30000 && ucs <= 0x3fffd)));
4917
+ }
4918
+
4919
+ function bisearch(ucs) {
4920
+ var min = 0
4921
+ var max = combining.length - 1
4922
+ var mid
4923
+
4924
+ if (ucs < combining[0][0] || ucs > combining[max][1]) return false
4925
+
4926
+ while (max >= min) {
4927
+ mid = Math.floor((min + max) / 2)
4928
+ if (ucs > combining[mid][1]) min = mid + 1
4929
+ else if (ucs < combining[mid][0]) max = mid - 1
4930
+ else return true
4931
+ }
4932
+
4933
+ return false
4934
+ }
4935
+
4936
+
4937
+ /***/ }),
4938
+
4939
+ /***/ 26374:
4940
+ /***/ ((module) => {
4941
+
4942
+ "use strict";
4943
+ module.exports = JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}');
4944
+
4945
+ /***/ })
4946
+
4947
+ };
4948
+ ;
4949
+ //# sourceMappingURL=395.index.js.map