keycloakify 10.0.0-rc.96 → 10.0.0-rc.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/pages/Applications.js +1 -1
- package/account/pages/Applications.js.map +1 -1
- package/bin/{456.index.js → 966.index.js} +3 -1971
- package/bin/main.js +1981 -7
- package/login/pages/Register.js +4 -3
- package/login/pages/Register.js.map +1 -1
- package/package.json +4 -2
- package/src/account/pages/Applications.tsx +0 -1
- package/src/bin/main.ts +3 -0
- package/src/bin/tools/assertNoPnpmDlx.ts +15 -0
- package/src/login/pages/Register.tsx +21 -4
- package/stories/account/pages/Applications.stories.tsx +80 -0
- package/stories/login/pages/Register.stories.tsx +13 -0
package/bin/main.js
CHANGED
@@ -345,6 +345,1802 @@ module.exports = ({onlyFirst = false} = {}) => {
|
|
345
345
|
};
|
346
346
|
|
347
347
|
|
348
|
+
/***/ }),
|
349
|
+
|
350
|
+
/***/ 52068:
|
351
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
352
|
+
|
353
|
+
"use strict";
|
354
|
+
/* module decorator */ module = __nccwpck_require__.nmd(module);
|
355
|
+
|
356
|
+
|
357
|
+
const wrapAnsi16 = (fn, offset) => (...args) => {
|
358
|
+
const code = fn(...args);
|
359
|
+
return `\u001B[${code + offset}m`;
|
360
|
+
};
|
361
|
+
|
362
|
+
const wrapAnsi256 = (fn, offset) => (...args) => {
|
363
|
+
const code = fn(...args);
|
364
|
+
return `\u001B[${38 + offset};5;${code}m`;
|
365
|
+
};
|
366
|
+
|
367
|
+
const wrapAnsi16m = (fn, offset) => (...args) => {
|
368
|
+
const rgb = fn(...args);
|
369
|
+
return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
370
|
+
};
|
371
|
+
|
372
|
+
const ansi2ansi = n => n;
|
373
|
+
const rgb2rgb = (r, g, b) => [r, g, b];
|
374
|
+
|
375
|
+
const setLazyProperty = (object, property, get) => {
|
376
|
+
Object.defineProperty(object, property, {
|
377
|
+
get: () => {
|
378
|
+
const value = get();
|
379
|
+
|
380
|
+
Object.defineProperty(object, property, {
|
381
|
+
value,
|
382
|
+
enumerable: true,
|
383
|
+
configurable: true
|
384
|
+
});
|
385
|
+
|
386
|
+
return value;
|
387
|
+
},
|
388
|
+
enumerable: true,
|
389
|
+
configurable: true
|
390
|
+
});
|
391
|
+
};
|
392
|
+
|
393
|
+
/** @type {typeof import('color-convert')} */
|
394
|
+
let colorConvert;
|
395
|
+
const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
396
|
+
if (colorConvert === undefined) {
|
397
|
+
colorConvert = __nccwpck_require__(86931);
|
398
|
+
}
|
399
|
+
|
400
|
+
const offset = isBackground ? 10 : 0;
|
401
|
+
const styles = {};
|
402
|
+
|
403
|
+
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
404
|
+
const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace;
|
405
|
+
if (sourceSpace === targetSpace) {
|
406
|
+
styles[name] = wrap(identity, offset);
|
407
|
+
} else if (typeof suite === 'object') {
|
408
|
+
styles[name] = wrap(suite[targetSpace], offset);
|
409
|
+
}
|
410
|
+
}
|
411
|
+
|
412
|
+
return styles;
|
413
|
+
};
|
414
|
+
|
415
|
+
function assembleStyles() {
|
416
|
+
const codes = new Map();
|
417
|
+
const styles = {
|
418
|
+
modifier: {
|
419
|
+
reset: [0, 0],
|
420
|
+
// 21 isn't widely supported and 22 does the same thing
|
421
|
+
bold: [1, 22],
|
422
|
+
dim: [2, 22],
|
423
|
+
italic: [3, 23],
|
424
|
+
underline: [4, 24],
|
425
|
+
inverse: [7, 27],
|
426
|
+
hidden: [8, 28],
|
427
|
+
strikethrough: [9, 29]
|
428
|
+
},
|
429
|
+
color: {
|
430
|
+
black: [30, 39],
|
431
|
+
red: [31, 39],
|
432
|
+
green: [32, 39],
|
433
|
+
yellow: [33, 39],
|
434
|
+
blue: [34, 39],
|
435
|
+
magenta: [35, 39],
|
436
|
+
cyan: [36, 39],
|
437
|
+
white: [37, 39],
|
438
|
+
|
439
|
+
// Bright color
|
440
|
+
blackBright: [90, 39],
|
441
|
+
redBright: [91, 39],
|
442
|
+
greenBright: [92, 39],
|
443
|
+
yellowBright: [93, 39],
|
444
|
+
blueBright: [94, 39],
|
445
|
+
magentaBright: [95, 39],
|
446
|
+
cyanBright: [96, 39],
|
447
|
+
whiteBright: [97, 39]
|
448
|
+
},
|
449
|
+
bgColor: {
|
450
|
+
bgBlack: [40, 49],
|
451
|
+
bgRed: [41, 49],
|
452
|
+
bgGreen: [42, 49],
|
453
|
+
bgYellow: [43, 49],
|
454
|
+
bgBlue: [44, 49],
|
455
|
+
bgMagenta: [45, 49],
|
456
|
+
bgCyan: [46, 49],
|
457
|
+
bgWhite: [47, 49],
|
458
|
+
|
459
|
+
// Bright color
|
460
|
+
bgBlackBright: [100, 49],
|
461
|
+
bgRedBright: [101, 49],
|
462
|
+
bgGreenBright: [102, 49],
|
463
|
+
bgYellowBright: [103, 49],
|
464
|
+
bgBlueBright: [104, 49],
|
465
|
+
bgMagentaBright: [105, 49],
|
466
|
+
bgCyanBright: [106, 49],
|
467
|
+
bgWhiteBright: [107, 49]
|
468
|
+
}
|
469
|
+
};
|
470
|
+
|
471
|
+
// Alias bright black as gray (and grey)
|
472
|
+
styles.color.gray = styles.color.blackBright;
|
473
|
+
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
474
|
+
styles.color.grey = styles.color.blackBright;
|
475
|
+
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
476
|
+
|
477
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
478
|
+
for (const [styleName, style] of Object.entries(group)) {
|
479
|
+
styles[styleName] = {
|
480
|
+
open: `\u001B[${style[0]}m`,
|
481
|
+
close: `\u001B[${style[1]}m`
|
482
|
+
};
|
483
|
+
|
484
|
+
group[styleName] = styles[styleName];
|
485
|
+
|
486
|
+
codes.set(style[0], style[1]);
|
487
|
+
}
|
488
|
+
|
489
|
+
Object.defineProperty(styles, groupName, {
|
490
|
+
value: group,
|
491
|
+
enumerable: false
|
492
|
+
});
|
493
|
+
}
|
494
|
+
|
495
|
+
Object.defineProperty(styles, 'codes', {
|
496
|
+
value: codes,
|
497
|
+
enumerable: false
|
498
|
+
});
|
499
|
+
|
500
|
+
styles.color.close = '\u001B[39m';
|
501
|
+
styles.bgColor.close = '\u001B[49m';
|
502
|
+
|
503
|
+
setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false));
|
504
|
+
setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false));
|
505
|
+
setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false));
|
506
|
+
setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true));
|
507
|
+
setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true));
|
508
|
+
setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true));
|
509
|
+
|
510
|
+
return styles;
|
511
|
+
}
|
512
|
+
|
513
|
+
// Make the export immutable
|
514
|
+
Object.defineProperty(module, 'exports', {
|
515
|
+
enumerable: true,
|
516
|
+
get: assembleStyles
|
517
|
+
});
|
518
|
+
|
519
|
+
|
520
|
+
/***/ }),
|
521
|
+
|
522
|
+
/***/ 78818:
|
523
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
524
|
+
|
525
|
+
"use strict";
|
526
|
+
|
527
|
+
const ansiStyles = __nccwpck_require__(52068);
|
528
|
+
const {stdout: stdoutColor, stderr: stderrColor} = __nccwpck_require__(59318);
|
529
|
+
const {
|
530
|
+
stringReplaceAll,
|
531
|
+
stringEncaseCRLFWithFirstIndex
|
532
|
+
} = __nccwpck_require__(82415);
|
533
|
+
|
534
|
+
const {isArray} = Array;
|
535
|
+
|
536
|
+
// `supportsColor.level` → `ansiStyles.color[name]` mapping
|
537
|
+
const levelMapping = [
|
538
|
+
'ansi',
|
539
|
+
'ansi',
|
540
|
+
'ansi256',
|
541
|
+
'ansi16m'
|
542
|
+
];
|
543
|
+
|
544
|
+
const styles = Object.create(null);
|
545
|
+
|
546
|
+
const applyOptions = (object, options = {}) => {
|
547
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
548
|
+
throw new Error('The `level` option should be an integer from 0 to 3');
|
549
|
+
}
|
550
|
+
|
551
|
+
// Detect level if not set manually
|
552
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
553
|
+
object.level = options.level === undefined ? colorLevel : options.level;
|
554
|
+
};
|
555
|
+
|
556
|
+
class ChalkClass {
|
557
|
+
constructor(options) {
|
558
|
+
// eslint-disable-next-line no-constructor-return
|
559
|
+
return chalkFactory(options);
|
560
|
+
}
|
561
|
+
}
|
562
|
+
|
563
|
+
const chalkFactory = options => {
|
564
|
+
const chalk = {};
|
565
|
+
applyOptions(chalk, options);
|
566
|
+
|
567
|
+
chalk.template = (...arguments_) => chalkTag(chalk.template, ...arguments_);
|
568
|
+
|
569
|
+
Object.setPrototypeOf(chalk, Chalk.prototype);
|
570
|
+
Object.setPrototypeOf(chalk.template, chalk);
|
571
|
+
|
572
|
+
chalk.template.constructor = () => {
|
573
|
+
throw new Error('`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.');
|
574
|
+
};
|
575
|
+
|
576
|
+
chalk.template.Instance = ChalkClass;
|
577
|
+
|
578
|
+
return chalk.template;
|
579
|
+
};
|
580
|
+
|
581
|
+
function Chalk(options) {
|
582
|
+
return chalkFactory(options);
|
583
|
+
}
|
584
|
+
|
585
|
+
for (const [styleName, style] of Object.entries(ansiStyles)) {
|
586
|
+
styles[styleName] = {
|
587
|
+
get() {
|
588
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
|
589
|
+
Object.defineProperty(this, styleName, {value: builder});
|
590
|
+
return builder;
|
591
|
+
}
|
592
|
+
};
|
593
|
+
}
|
594
|
+
|
595
|
+
styles.visible = {
|
596
|
+
get() {
|
597
|
+
const builder = createBuilder(this, this._styler, true);
|
598
|
+
Object.defineProperty(this, 'visible', {value: builder});
|
599
|
+
return builder;
|
600
|
+
}
|
601
|
+
};
|
602
|
+
|
603
|
+
const usedModels = ['rgb', 'hex', 'keyword', 'hsl', 'hsv', 'hwb', 'ansi', 'ansi256'];
|
604
|
+
|
605
|
+
for (const model of usedModels) {
|
606
|
+
styles[model] = {
|
607
|
+
get() {
|
608
|
+
const {level} = this;
|
609
|
+
return function (...arguments_) {
|
610
|
+
const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
|
611
|
+
return createBuilder(this, styler, this._isEmpty);
|
612
|
+
};
|
613
|
+
}
|
614
|
+
};
|
615
|
+
}
|
616
|
+
|
617
|
+
for (const model of usedModels) {
|
618
|
+
const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
|
619
|
+
styles[bgModel] = {
|
620
|
+
get() {
|
621
|
+
const {level} = this;
|
622
|
+
return function (...arguments_) {
|
623
|
+
const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
|
624
|
+
return createBuilder(this, styler, this._isEmpty);
|
625
|
+
};
|
626
|
+
}
|
627
|
+
};
|
628
|
+
}
|
629
|
+
|
630
|
+
const proto = Object.defineProperties(() => {}, {
|
631
|
+
...styles,
|
632
|
+
level: {
|
633
|
+
enumerable: true,
|
634
|
+
get() {
|
635
|
+
return this._generator.level;
|
636
|
+
},
|
637
|
+
set(level) {
|
638
|
+
this._generator.level = level;
|
639
|
+
}
|
640
|
+
}
|
641
|
+
});
|
642
|
+
|
643
|
+
const createStyler = (open, close, parent) => {
|
644
|
+
let openAll;
|
645
|
+
let closeAll;
|
646
|
+
if (parent === undefined) {
|
647
|
+
openAll = open;
|
648
|
+
closeAll = close;
|
649
|
+
} else {
|
650
|
+
openAll = parent.openAll + open;
|
651
|
+
closeAll = close + parent.closeAll;
|
652
|
+
}
|
653
|
+
|
654
|
+
return {
|
655
|
+
open,
|
656
|
+
close,
|
657
|
+
openAll,
|
658
|
+
closeAll,
|
659
|
+
parent
|
660
|
+
};
|
661
|
+
};
|
662
|
+
|
663
|
+
const createBuilder = (self, _styler, _isEmpty) => {
|
664
|
+
const builder = (...arguments_) => {
|
665
|
+
if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
|
666
|
+
// Called as a template literal, for example: chalk.red`2 + 3 = {bold ${2+3}}`
|
667
|
+
return applyStyle(builder, chalkTag(builder, ...arguments_));
|
668
|
+
}
|
669
|
+
|
670
|
+
// Single argument is hot path, implicit coercion is faster than anything
|
671
|
+
// eslint-disable-next-line no-implicit-coercion
|
672
|
+
return applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));
|
673
|
+
};
|
674
|
+
|
675
|
+
// We alter the prototype because we must return a function, but there is
|
676
|
+
// no way to create a function with a different prototype
|
677
|
+
Object.setPrototypeOf(builder, proto);
|
678
|
+
|
679
|
+
builder._generator = self;
|
680
|
+
builder._styler = _styler;
|
681
|
+
builder._isEmpty = _isEmpty;
|
682
|
+
|
683
|
+
return builder;
|
684
|
+
};
|
685
|
+
|
686
|
+
const applyStyle = (self, string) => {
|
687
|
+
if (self.level <= 0 || !string) {
|
688
|
+
return self._isEmpty ? '' : string;
|
689
|
+
}
|
690
|
+
|
691
|
+
let styler = self._styler;
|
692
|
+
|
693
|
+
if (styler === undefined) {
|
694
|
+
return string;
|
695
|
+
}
|
696
|
+
|
697
|
+
const {openAll, closeAll} = styler;
|
698
|
+
if (string.indexOf('\u001B') !== -1) {
|
699
|
+
while (styler !== undefined) {
|
700
|
+
// Replace any instances already present with a re-opening code
|
701
|
+
// otherwise only the part of the string until said closing code
|
702
|
+
// will be colored, and the rest will simply be 'plain'.
|
703
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
704
|
+
|
705
|
+
styler = styler.parent;
|
706
|
+
}
|
707
|
+
}
|
708
|
+
|
709
|
+
// We can move both next actions out of loop, because remaining actions in loop won't have
|
710
|
+
// any/visible effect on parts we add here. Close the styling before a linebreak and reopen
|
711
|
+
// after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92
|
712
|
+
const lfIndex = string.indexOf('\n');
|
713
|
+
if (lfIndex !== -1) {
|
714
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
715
|
+
}
|
716
|
+
|
717
|
+
return openAll + string + closeAll;
|
718
|
+
};
|
719
|
+
|
720
|
+
let template;
|
721
|
+
const chalkTag = (chalk, ...strings) => {
|
722
|
+
const [firstString] = strings;
|
723
|
+
|
724
|
+
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
725
|
+
// If chalk() was called by itself or with a string,
|
726
|
+
// return the string itself as a string.
|
727
|
+
return strings.join(' ');
|
728
|
+
}
|
729
|
+
|
730
|
+
const arguments_ = strings.slice(1);
|
731
|
+
const parts = [firstString.raw[0]];
|
732
|
+
|
733
|
+
for (let i = 1; i < firstString.length; i++) {
|
734
|
+
parts.push(
|
735
|
+
String(arguments_[i - 1]).replace(/[{}\\]/g, '\\$&'),
|
736
|
+
String(firstString.raw[i])
|
737
|
+
);
|
738
|
+
}
|
739
|
+
|
740
|
+
if (template === undefined) {
|
741
|
+
template = __nccwpck_require__(20500);
|
742
|
+
}
|
743
|
+
|
744
|
+
return template(chalk, parts.join(''));
|
745
|
+
};
|
746
|
+
|
747
|
+
Object.defineProperties(Chalk.prototype, styles);
|
748
|
+
|
749
|
+
const chalk = Chalk(); // eslint-disable-line new-cap
|
750
|
+
chalk.supportsColor = stdoutColor;
|
751
|
+
chalk.stderr = Chalk({level: stderrColor ? stderrColor.level : 0}); // eslint-disable-line new-cap
|
752
|
+
chalk.stderr.supportsColor = stderrColor;
|
753
|
+
|
754
|
+
module.exports = chalk;
|
755
|
+
|
756
|
+
|
757
|
+
/***/ }),
|
758
|
+
|
759
|
+
/***/ 20500:
|
760
|
+
/***/ ((module) => {
|
761
|
+
|
762
|
+
"use strict";
|
763
|
+
|
764
|
+
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;
|
765
|
+
const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
766
|
+
const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
767
|
+
const ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
|
768
|
+
|
769
|
+
const ESCAPES = new Map([
|
770
|
+
['n', '\n'],
|
771
|
+
['r', '\r'],
|
772
|
+
['t', '\t'],
|
773
|
+
['b', '\b'],
|
774
|
+
['f', '\f'],
|
775
|
+
['v', '\v'],
|
776
|
+
['0', '\0'],
|
777
|
+
['\\', '\\'],
|
778
|
+
['e', '\u001B'],
|
779
|
+
['a', '\u0007']
|
780
|
+
]);
|
781
|
+
|
782
|
+
function unescape(c) {
|
783
|
+
const u = c[0] === 'u';
|
784
|
+
const bracket = c[1] === '{';
|
785
|
+
|
786
|
+
if ((u && !bracket && c.length === 5) || (c[0] === 'x' && c.length === 3)) {
|
787
|
+
return String.fromCharCode(parseInt(c.slice(1), 16));
|
788
|
+
}
|
789
|
+
|
790
|
+
if (u && bracket) {
|
791
|
+
return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
|
792
|
+
}
|
793
|
+
|
794
|
+
return ESCAPES.get(c) || c;
|
795
|
+
}
|
796
|
+
|
797
|
+
function parseArguments(name, arguments_) {
|
798
|
+
const results = [];
|
799
|
+
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
800
|
+
let matches;
|
801
|
+
|
802
|
+
for (const chunk of chunks) {
|
803
|
+
const number = Number(chunk);
|
804
|
+
if (!Number.isNaN(number)) {
|
805
|
+
results.push(number);
|
806
|
+
} else if ((matches = chunk.match(STRING_REGEX))) {
|
807
|
+
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
|
808
|
+
} else {
|
809
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
810
|
+
}
|
811
|
+
}
|
812
|
+
|
813
|
+
return results;
|
814
|
+
}
|
815
|
+
|
816
|
+
function parseStyle(style) {
|
817
|
+
STYLE_REGEX.lastIndex = 0;
|
818
|
+
|
819
|
+
const results = [];
|
820
|
+
let matches;
|
821
|
+
|
822
|
+
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
823
|
+
const name = matches[1];
|
824
|
+
|
825
|
+
if (matches[2]) {
|
826
|
+
const args = parseArguments(name, matches[2]);
|
827
|
+
results.push([name].concat(args));
|
828
|
+
} else {
|
829
|
+
results.push([name]);
|
830
|
+
}
|
831
|
+
}
|
832
|
+
|
833
|
+
return results;
|
834
|
+
}
|
835
|
+
|
836
|
+
function buildStyle(chalk, styles) {
|
837
|
+
const enabled = {};
|
838
|
+
|
839
|
+
for (const layer of styles) {
|
840
|
+
for (const style of layer.styles) {
|
841
|
+
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
842
|
+
}
|
843
|
+
}
|
844
|
+
|
845
|
+
let current = chalk;
|
846
|
+
for (const [styleName, styles] of Object.entries(enabled)) {
|
847
|
+
if (!Array.isArray(styles)) {
|
848
|
+
continue;
|
849
|
+
}
|
850
|
+
|
851
|
+
if (!(styleName in current)) {
|
852
|
+
throw new Error(`Unknown Chalk style: ${styleName}`);
|
853
|
+
}
|
854
|
+
|
855
|
+
current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
|
856
|
+
}
|
857
|
+
|
858
|
+
return current;
|
859
|
+
}
|
860
|
+
|
861
|
+
module.exports = (chalk, temporary) => {
|
862
|
+
const styles = [];
|
863
|
+
const chunks = [];
|
864
|
+
let chunk = [];
|
865
|
+
|
866
|
+
// eslint-disable-next-line max-params
|
867
|
+
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
868
|
+
if (escapeCharacter) {
|
869
|
+
chunk.push(unescape(escapeCharacter));
|
870
|
+
} else if (style) {
|
871
|
+
const string = chunk.join('');
|
872
|
+
chunk = [];
|
873
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
|
874
|
+
styles.push({inverse, styles: parseStyle(style)});
|
875
|
+
} else if (close) {
|
876
|
+
if (styles.length === 0) {
|
877
|
+
throw new Error('Found extraneous } in Chalk template literal');
|
878
|
+
}
|
879
|
+
|
880
|
+
chunks.push(buildStyle(chalk, styles)(chunk.join('')));
|
881
|
+
chunk = [];
|
882
|
+
styles.pop();
|
883
|
+
} else {
|
884
|
+
chunk.push(character);
|
885
|
+
}
|
886
|
+
});
|
887
|
+
|
888
|
+
chunks.push(chunk.join(''));
|
889
|
+
|
890
|
+
if (styles.length > 0) {
|
891
|
+
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
|
892
|
+
throw new Error(errMessage);
|
893
|
+
}
|
894
|
+
|
895
|
+
return chunks.join('');
|
896
|
+
};
|
897
|
+
|
898
|
+
|
899
|
+
/***/ }),
|
900
|
+
|
901
|
+
/***/ 82415:
|
902
|
+
/***/ ((module) => {
|
903
|
+
|
904
|
+
"use strict";
|
905
|
+
|
906
|
+
|
907
|
+
const stringReplaceAll = (string, substring, replacer) => {
|
908
|
+
let index = string.indexOf(substring);
|
909
|
+
if (index === -1) {
|
910
|
+
return string;
|
911
|
+
}
|
912
|
+
|
913
|
+
const substringLength = substring.length;
|
914
|
+
let endIndex = 0;
|
915
|
+
let returnValue = '';
|
916
|
+
do {
|
917
|
+
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
918
|
+
endIndex = index + substringLength;
|
919
|
+
index = string.indexOf(substring, endIndex);
|
920
|
+
} while (index !== -1);
|
921
|
+
|
922
|
+
returnValue += string.substr(endIndex);
|
923
|
+
return returnValue;
|
924
|
+
};
|
925
|
+
|
926
|
+
const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
|
927
|
+
let endIndex = 0;
|
928
|
+
let returnValue = '';
|
929
|
+
do {
|
930
|
+
const gotCR = string[index - 1] === '\r';
|
931
|
+
returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? '\r\n' : '\n') + postfix;
|
932
|
+
endIndex = index + 1;
|
933
|
+
index = string.indexOf('\n', endIndex);
|
934
|
+
} while (index !== -1);
|
935
|
+
|
936
|
+
returnValue += string.substr(endIndex);
|
937
|
+
return returnValue;
|
938
|
+
};
|
939
|
+
|
940
|
+
module.exports = {
|
941
|
+
stringReplaceAll,
|
942
|
+
stringEncaseCRLFWithFirstIndex
|
943
|
+
};
|
944
|
+
|
945
|
+
|
946
|
+
/***/ }),
|
947
|
+
|
948
|
+
/***/ 97391:
|
949
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
950
|
+
|
951
|
+
/* MIT license */
|
952
|
+
/* eslint-disable no-mixed-operators */
|
953
|
+
const cssKeywords = __nccwpck_require__(78510);
|
954
|
+
|
955
|
+
// NOTE: conversions should only return primitive values (i.e. arrays, or
|
956
|
+
// values that give correct `typeof` results).
|
957
|
+
// do not use box values types (i.e. Number(), String(), etc.)
|
958
|
+
|
959
|
+
const reverseKeywords = {};
|
960
|
+
for (const key of Object.keys(cssKeywords)) {
|
961
|
+
reverseKeywords[cssKeywords[key]] = key;
|
962
|
+
}
|
963
|
+
|
964
|
+
const convert = {
|
965
|
+
rgb: {channels: 3, labels: 'rgb'},
|
966
|
+
hsl: {channels: 3, labels: 'hsl'},
|
967
|
+
hsv: {channels: 3, labels: 'hsv'},
|
968
|
+
hwb: {channels: 3, labels: 'hwb'},
|
969
|
+
cmyk: {channels: 4, labels: 'cmyk'},
|
970
|
+
xyz: {channels: 3, labels: 'xyz'},
|
971
|
+
lab: {channels: 3, labels: 'lab'},
|
972
|
+
lch: {channels: 3, labels: 'lch'},
|
973
|
+
hex: {channels: 1, labels: ['hex']},
|
974
|
+
keyword: {channels: 1, labels: ['keyword']},
|
975
|
+
ansi16: {channels: 1, labels: ['ansi16']},
|
976
|
+
ansi256: {channels: 1, labels: ['ansi256']},
|
977
|
+
hcg: {channels: 3, labels: ['h', 'c', 'g']},
|
978
|
+
apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
|
979
|
+
gray: {channels: 1, labels: ['gray']}
|
980
|
+
};
|
981
|
+
|
982
|
+
module.exports = convert;
|
983
|
+
|
984
|
+
// Hide .channels and .labels properties
|
985
|
+
for (const model of Object.keys(convert)) {
|
986
|
+
if (!('channels' in convert[model])) {
|
987
|
+
throw new Error('missing channels property: ' + model);
|
988
|
+
}
|
989
|
+
|
990
|
+
if (!('labels' in convert[model])) {
|
991
|
+
throw new Error('missing channel labels property: ' + model);
|
992
|
+
}
|
993
|
+
|
994
|
+
if (convert[model].labels.length !== convert[model].channels) {
|
995
|
+
throw new Error('channel and label counts mismatch: ' + model);
|
996
|
+
}
|
997
|
+
|
998
|
+
const {channels, labels} = convert[model];
|
999
|
+
delete convert[model].channels;
|
1000
|
+
delete convert[model].labels;
|
1001
|
+
Object.defineProperty(convert[model], 'channels', {value: channels});
|
1002
|
+
Object.defineProperty(convert[model], 'labels', {value: labels});
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
convert.rgb.hsl = function (rgb) {
|
1006
|
+
const r = rgb[0] / 255;
|
1007
|
+
const g = rgb[1] / 255;
|
1008
|
+
const b = rgb[2] / 255;
|
1009
|
+
const min = Math.min(r, g, b);
|
1010
|
+
const max = Math.max(r, g, b);
|
1011
|
+
const delta = max - min;
|
1012
|
+
let h;
|
1013
|
+
let s;
|
1014
|
+
|
1015
|
+
if (max === min) {
|
1016
|
+
h = 0;
|
1017
|
+
} else if (r === max) {
|
1018
|
+
h = (g - b) / delta;
|
1019
|
+
} else if (g === max) {
|
1020
|
+
h = 2 + (b - r) / delta;
|
1021
|
+
} else if (b === max) {
|
1022
|
+
h = 4 + (r - g) / delta;
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
h = Math.min(h * 60, 360);
|
1026
|
+
|
1027
|
+
if (h < 0) {
|
1028
|
+
h += 360;
|
1029
|
+
}
|
1030
|
+
|
1031
|
+
const l = (min + max) / 2;
|
1032
|
+
|
1033
|
+
if (max === min) {
|
1034
|
+
s = 0;
|
1035
|
+
} else if (l <= 0.5) {
|
1036
|
+
s = delta / (max + min);
|
1037
|
+
} else {
|
1038
|
+
s = delta / (2 - max - min);
|
1039
|
+
}
|
1040
|
+
|
1041
|
+
return [h, s * 100, l * 100];
|
1042
|
+
};
|
1043
|
+
|
1044
|
+
convert.rgb.hsv = function (rgb) {
|
1045
|
+
let rdif;
|
1046
|
+
let gdif;
|
1047
|
+
let bdif;
|
1048
|
+
let h;
|
1049
|
+
let s;
|
1050
|
+
|
1051
|
+
const r = rgb[0] / 255;
|
1052
|
+
const g = rgb[1] / 255;
|
1053
|
+
const b = rgb[2] / 255;
|
1054
|
+
const v = Math.max(r, g, b);
|
1055
|
+
const diff = v - Math.min(r, g, b);
|
1056
|
+
const diffc = function (c) {
|
1057
|
+
return (v - c) / 6 / diff + 1 / 2;
|
1058
|
+
};
|
1059
|
+
|
1060
|
+
if (diff === 0) {
|
1061
|
+
h = 0;
|
1062
|
+
s = 0;
|
1063
|
+
} else {
|
1064
|
+
s = diff / v;
|
1065
|
+
rdif = diffc(r);
|
1066
|
+
gdif = diffc(g);
|
1067
|
+
bdif = diffc(b);
|
1068
|
+
|
1069
|
+
if (r === v) {
|
1070
|
+
h = bdif - gdif;
|
1071
|
+
} else if (g === v) {
|
1072
|
+
h = (1 / 3) + rdif - bdif;
|
1073
|
+
} else if (b === v) {
|
1074
|
+
h = (2 / 3) + gdif - rdif;
|
1075
|
+
}
|
1076
|
+
|
1077
|
+
if (h < 0) {
|
1078
|
+
h += 1;
|
1079
|
+
} else if (h > 1) {
|
1080
|
+
h -= 1;
|
1081
|
+
}
|
1082
|
+
}
|
1083
|
+
|
1084
|
+
return [
|
1085
|
+
h * 360,
|
1086
|
+
s * 100,
|
1087
|
+
v * 100
|
1088
|
+
];
|
1089
|
+
};
|
1090
|
+
|
1091
|
+
convert.rgb.hwb = function (rgb) {
|
1092
|
+
const r = rgb[0];
|
1093
|
+
const g = rgb[1];
|
1094
|
+
let b = rgb[2];
|
1095
|
+
const h = convert.rgb.hsl(rgb)[0];
|
1096
|
+
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
1097
|
+
|
1098
|
+
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
1099
|
+
|
1100
|
+
return [h, w * 100, b * 100];
|
1101
|
+
};
|
1102
|
+
|
1103
|
+
convert.rgb.cmyk = function (rgb) {
|
1104
|
+
const r = rgb[0] / 255;
|
1105
|
+
const g = rgb[1] / 255;
|
1106
|
+
const b = rgb[2] / 255;
|
1107
|
+
|
1108
|
+
const k = Math.min(1 - r, 1 - g, 1 - b);
|
1109
|
+
const c = (1 - r - k) / (1 - k) || 0;
|
1110
|
+
const m = (1 - g - k) / (1 - k) || 0;
|
1111
|
+
const y = (1 - b - k) / (1 - k) || 0;
|
1112
|
+
|
1113
|
+
return [c * 100, m * 100, y * 100, k * 100];
|
1114
|
+
};
|
1115
|
+
|
1116
|
+
function comparativeDistance(x, y) {
|
1117
|
+
/*
|
1118
|
+
See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
|
1119
|
+
*/
|
1120
|
+
return (
|
1121
|
+
((x[0] - y[0]) ** 2) +
|
1122
|
+
((x[1] - y[1]) ** 2) +
|
1123
|
+
((x[2] - y[2]) ** 2)
|
1124
|
+
);
|
1125
|
+
}
|
1126
|
+
|
1127
|
+
convert.rgb.keyword = function (rgb) {
|
1128
|
+
const reversed = reverseKeywords[rgb];
|
1129
|
+
if (reversed) {
|
1130
|
+
return reversed;
|
1131
|
+
}
|
1132
|
+
|
1133
|
+
let currentClosestDistance = Infinity;
|
1134
|
+
let currentClosestKeyword;
|
1135
|
+
|
1136
|
+
for (const keyword of Object.keys(cssKeywords)) {
|
1137
|
+
const value = cssKeywords[keyword];
|
1138
|
+
|
1139
|
+
// Compute comparative distance
|
1140
|
+
const distance = comparativeDistance(rgb, value);
|
1141
|
+
|
1142
|
+
// Check if its less, if so set as closest
|
1143
|
+
if (distance < currentClosestDistance) {
|
1144
|
+
currentClosestDistance = distance;
|
1145
|
+
currentClosestKeyword = keyword;
|
1146
|
+
}
|
1147
|
+
}
|
1148
|
+
|
1149
|
+
return currentClosestKeyword;
|
1150
|
+
};
|
1151
|
+
|
1152
|
+
convert.keyword.rgb = function (keyword) {
|
1153
|
+
return cssKeywords[keyword];
|
1154
|
+
};
|
1155
|
+
|
1156
|
+
convert.rgb.xyz = function (rgb) {
|
1157
|
+
let r = rgb[0] / 255;
|
1158
|
+
let g = rgb[1] / 255;
|
1159
|
+
let b = rgb[2] / 255;
|
1160
|
+
|
1161
|
+
// Assume sRGB
|
1162
|
+
r = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);
|
1163
|
+
g = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);
|
1164
|
+
b = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);
|
1165
|
+
|
1166
|
+
const x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
|
1167
|
+
const y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
|
1168
|
+
const z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
|
1169
|
+
|
1170
|
+
return [x * 100, y * 100, z * 100];
|
1171
|
+
};
|
1172
|
+
|
1173
|
+
convert.rgb.lab = function (rgb) {
|
1174
|
+
const xyz = convert.rgb.xyz(rgb);
|
1175
|
+
let x = xyz[0];
|
1176
|
+
let y = xyz[1];
|
1177
|
+
let z = xyz[2];
|
1178
|
+
|
1179
|
+
x /= 95.047;
|
1180
|
+
y /= 100;
|
1181
|
+
z /= 108.883;
|
1182
|
+
|
1183
|
+
x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
|
1184
|
+
y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
|
1185
|
+
z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
|
1186
|
+
|
1187
|
+
const l = (116 * y) - 16;
|
1188
|
+
const a = 500 * (x - y);
|
1189
|
+
const b = 200 * (y - z);
|
1190
|
+
|
1191
|
+
return [l, a, b];
|
1192
|
+
};
|
1193
|
+
|
1194
|
+
convert.hsl.rgb = function (hsl) {
|
1195
|
+
const h = hsl[0] / 360;
|
1196
|
+
const s = hsl[1] / 100;
|
1197
|
+
const l = hsl[2] / 100;
|
1198
|
+
let t2;
|
1199
|
+
let t3;
|
1200
|
+
let val;
|
1201
|
+
|
1202
|
+
if (s === 0) {
|
1203
|
+
val = l * 255;
|
1204
|
+
return [val, val, val];
|
1205
|
+
}
|
1206
|
+
|
1207
|
+
if (l < 0.5) {
|
1208
|
+
t2 = l * (1 + s);
|
1209
|
+
} else {
|
1210
|
+
t2 = l + s - l * s;
|
1211
|
+
}
|
1212
|
+
|
1213
|
+
const t1 = 2 * l - t2;
|
1214
|
+
|
1215
|
+
const rgb = [0, 0, 0];
|
1216
|
+
for (let i = 0; i < 3; i++) {
|
1217
|
+
t3 = h + 1 / 3 * -(i - 1);
|
1218
|
+
if (t3 < 0) {
|
1219
|
+
t3++;
|
1220
|
+
}
|
1221
|
+
|
1222
|
+
if (t3 > 1) {
|
1223
|
+
t3--;
|
1224
|
+
}
|
1225
|
+
|
1226
|
+
if (6 * t3 < 1) {
|
1227
|
+
val = t1 + (t2 - t1) * 6 * t3;
|
1228
|
+
} else if (2 * t3 < 1) {
|
1229
|
+
val = t2;
|
1230
|
+
} else if (3 * t3 < 2) {
|
1231
|
+
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
1232
|
+
} else {
|
1233
|
+
val = t1;
|
1234
|
+
}
|
1235
|
+
|
1236
|
+
rgb[i] = val * 255;
|
1237
|
+
}
|
1238
|
+
|
1239
|
+
return rgb;
|
1240
|
+
};
|
1241
|
+
|
1242
|
+
convert.hsl.hsv = function (hsl) {
|
1243
|
+
const h = hsl[0];
|
1244
|
+
let s = hsl[1] / 100;
|
1245
|
+
let l = hsl[2] / 100;
|
1246
|
+
let smin = s;
|
1247
|
+
const lmin = Math.max(l, 0.01);
|
1248
|
+
|
1249
|
+
l *= 2;
|
1250
|
+
s *= (l <= 1) ? l : 2 - l;
|
1251
|
+
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
1252
|
+
const v = (l + s) / 2;
|
1253
|
+
const sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
|
1254
|
+
|
1255
|
+
return [h, sv * 100, v * 100];
|
1256
|
+
};
|
1257
|
+
|
1258
|
+
convert.hsv.rgb = function (hsv) {
|
1259
|
+
const h = hsv[0] / 60;
|
1260
|
+
const s = hsv[1] / 100;
|
1261
|
+
let v = hsv[2] / 100;
|
1262
|
+
const hi = Math.floor(h) % 6;
|
1263
|
+
|
1264
|
+
const f = h - Math.floor(h);
|
1265
|
+
const p = 255 * v * (1 - s);
|
1266
|
+
const q = 255 * v * (1 - (s * f));
|
1267
|
+
const t = 255 * v * (1 - (s * (1 - f)));
|
1268
|
+
v *= 255;
|
1269
|
+
|
1270
|
+
switch (hi) {
|
1271
|
+
case 0:
|
1272
|
+
return [v, t, p];
|
1273
|
+
case 1:
|
1274
|
+
return [q, v, p];
|
1275
|
+
case 2:
|
1276
|
+
return [p, v, t];
|
1277
|
+
case 3:
|
1278
|
+
return [p, q, v];
|
1279
|
+
case 4:
|
1280
|
+
return [t, p, v];
|
1281
|
+
case 5:
|
1282
|
+
return [v, p, q];
|
1283
|
+
}
|
1284
|
+
};
|
1285
|
+
|
1286
|
+
convert.hsv.hsl = function (hsv) {
|
1287
|
+
const h = hsv[0];
|
1288
|
+
const s = hsv[1] / 100;
|
1289
|
+
const v = hsv[2] / 100;
|
1290
|
+
const vmin = Math.max(v, 0.01);
|
1291
|
+
let sl;
|
1292
|
+
let l;
|
1293
|
+
|
1294
|
+
l = (2 - s) * v;
|
1295
|
+
const lmin = (2 - s) * vmin;
|
1296
|
+
sl = s * vmin;
|
1297
|
+
sl /= (lmin <= 1) ? lmin : 2 - lmin;
|
1298
|
+
sl = sl || 0;
|
1299
|
+
l /= 2;
|
1300
|
+
|
1301
|
+
return [h, sl * 100, l * 100];
|
1302
|
+
};
|
1303
|
+
|
1304
|
+
// http://dev.w3.org/csswg/css-color/#hwb-to-rgb
|
1305
|
+
convert.hwb.rgb = function (hwb) {
|
1306
|
+
const h = hwb[0] / 360;
|
1307
|
+
let wh = hwb[1] / 100;
|
1308
|
+
let bl = hwb[2] / 100;
|
1309
|
+
const ratio = wh + bl;
|
1310
|
+
let f;
|
1311
|
+
|
1312
|
+
// Wh + bl cant be > 1
|
1313
|
+
if (ratio > 1) {
|
1314
|
+
wh /= ratio;
|
1315
|
+
bl /= ratio;
|
1316
|
+
}
|
1317
|
+
|
1318
|
+
const i = Math.floor(6 * h);
|
1319
|
+
const v = 1 - bl;
|
1320
|
+
f = 6 * h - i;
|
1321
|
+
|
1322
|
+
if ((i & 0x01) !== 0) {
|
1323
|
+
f = 1 - f;
|
1324
|
+
}
|
1325
|
+
|
1326
|
+
const n = wh + f * (v - wh); // Linear interpolation
|
1327
|
+
|
1328
|
+
let r;
|
1329
|
+
let g;
|
1330
|
+
let b;
|
1331
|
+
/* eslint-disable max-statements-per-line,no-multi-spaces */
|
1332
|
+
switch (i) {
|
1333
|
+
default:
|
1334
|
+
case 6:
|
1335
|
+
case 0: r = v; g = n; b = wh; break;
|
1336
|
+
case 1: r = n; g = v; b = wh; break;
|
1337
|
+
case 2: r = wh; g = v; b = n; break;
|
1338
|
+
case 3: r = wh; g = n; b = v; break;
|
1339
|
+
case 4: r = n; g = wh; b = v; break;
|
1340
|
+
case 5: r = v; g = wh; b = n; break;
|
1341
|
+
}
|
1342
|
+
/* eslint-enable max-statements-per-line,no-multi-spaces */
|
1343
|
+
|
1344
|
+
return [r * 255, g * 255, b * 255];
|
1345
|
+
};
|
1346
|
+
|
1347
|
+
convert.cmyk.rgb = function (cmyk) {
|
1348
|
+
const c = cmyk[0] / 100;
|
1349
|
+
const m = cmyk[1] / 100;
|
1350
|
+
const y = cmyk[2] / 100;
|
1351
|
+
const k = cmyk[3] / 100;
|
1352
|
+
|
1353
|
+
const r = 1 - Math.min(1, c * (1 - k) + k);
|
1354
|
+
const g = 1 - Math.min(1, m * (1 - k) + k);
|
1355
|
+
const b = 1 - Math.min(1, y * (1 - k) + k);
|
1356
|
+
|
1357
|
+
return [r * 255, g * 255, b * 255];
|
1358
|
+
};
|
1359
|
+
|
1360
|
+
convert.xyz.rgb = function (xyz) {
|
1361
|
+
const x = xyz[0] / 100;
|
1362
|
+
const y = xyz[1] / 100;
|
1363
|
+
const z = xyz[2] / 100;
|
1364
|
+
let r;
|
1365
|
+
let g;
|
1366
|
+
let b;
|
1367
|
+
|
1368
|
+
r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
|
1369
|
+
g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
|
1370
|
+
b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
|
1371
|
+
|
1372
|
+
// Assume sRGB
|
1373
|
+
r = r > 0.0031308
|
1374
|
+
? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)
|
1375
|
+
: r * 12.92;
|
1376
|
+
|
1377
|
+
g = g > 0.0031308
|
1378
|
+
? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)
|
1379
|
+
: g * 12.92;
|
1380
|
+
|
1381
|
+
b = b > 0.0031308
|
1382
|
+
? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)
|
1383
|
+
: b * 12.92;
|
1384
|
+
|
1385
|
+
r = Math.min(Math.max(0, r), 1);
|
1386
|
+
g = Math.min(Math.max(0, g), 1);
|
1387
|
+
b = Math.min(Math.max(0, b), 1);
|
1388
|
+
|
1389
|
+
return [r * 255, g * 255, b * 255];
|
1390
|
+
};
|
1391
|
+
|
1392
|
+
convert.xyz.lab = function (xyz) {
|
1393
|
+
let x = xyz[0];
|
1394
|
+
let y = xyz[1];
|
1395
|
+
let z = xyz[2];
|
1396
|
+
|
1397
|
+
x /= 95.047;
|
1398
|
+
y /= 100;
|
1399
|
+
z /= 108.883;
|
1400
|
+
|
1401
|
+
x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
|
1402
|
+
y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
|
1403
|
+
z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
|
1404
|
+
|
1405
|
+
const l = (116 * y) - 16;
|
1406
|
+
const a = 500 * (x - y);
|
1407
|
+
const b = 200 * (y - z);
|
1408
|
+
|
1409
|
+
return [l, a, b];
|
1410
|
+
};
|
1411
|
+
|
1412
|
+
convert.lab.xyz = function (lab) {
|
1413
|
+
const l = lab[0];
|
1414
|
+
const a = lab[1];
|
1415
|
+
const b = lab[2];
|
1416
|
+
let x;
|
1417
|
+
let y;
|
1418
|
+
let z;
|
1419
|
+
|
1420
|
+
y = (l + 16) / 116;
|
1421
|
+
x = a / 500 + y;
|
1422
|
+
z = y - b / 200;
|
1423
|
+
|
1424
|
+
const y2 = y ** 3;
|
1425
|
+
const x2 = x ** 3;
|
1426
|
+
const z2 = z ** 3;
|
1427
|
+
y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
|
1428
|
+
x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
|
1429
|
+
z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
|
1430
|
+
|
1431
|
+
x *= 95.047;
|
1432
|
+
y *= 100;
|
1433
|
+
z *= 108.883;
|
1434
|
+
|
1435
|
+
return [x, y, z];
|
1436
|
+
};
|
1437
|
+
|
1438
|
+
convert.lab.lch = function (lab) {
|
1439
|
+
const l = lab[0];
|
1440
|
+
const a = lab[1];
|
1441
|
+
const b = lab[2];
|
1442
|
+
let h;
|
1443
|
+
|
1444
|
+
const hr = Math.atan2(b, a);
|
1445
|
+
h = hr * 360 / 2 / Math.PI;
|
1446
|
+
|
1447
|
+
if (h < 0) {
|
1448
|
+
h += 360;
|
1449
|
+
}
|
1450
|
+
|
1451
|
+
const c = Math.sqrt(a * a + b * b);
|
1452
|
+
|
1453
|
+
return [l, c, h];
|
1454
|
+
};
|
1455
|
+
|
1456
|
+
convert.lch.lab = function (lch) {
|
1457
|
+
const l = lch[0];
|
1458
|
+
const c = lch[1];
|
1459
|
+
const h = lch[2];
|
1460
|
+
|
1461
|
+
const hr = h / 360 * 2 * Math.PI;
|
1462
|
+
const a = c * Math.cos(hr);
|
1463
|
+
const b = c * Math.sin(hr);
|
1464
|
+
|
1465
|
+
return [l, a, b];
|
1466
|
+
};
|
1467
|
+
|
1468
|
+
convert.rgb.ansi16 = function (args, saturation = null) {
|
1469
|
+
const [r, g, b] = args;
|
1470
|
+
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization
|
1471
|
+
|
1472
|
+
value = Math.round(value / 50);
|
1473
|
+
|
1474
|
+
if (value === 0) {
|
1475
|
+
return 30;
|
1476
|
+
}
|
1477
|
+
|
1478
|
+
let ansi = 30
|
1479
|
+
+ ((Math.round(b / 255) << 2)
|
1480
|
+
| (Math.round(g / 255) << 1)
|
1481
|
+
| Math.round(r / 255));
|
1482
|
+
|
1483
|
+
if (value === 2) {
|
1484
|
+
ansi += 60;
|
1485
|
+
}
|
1486
|
+
|
1487
|
+
return ansi;
|
1488
|
+
};
|
1489
|
+
|
1490
|
+
convert.hsv.ansi16 = function (args) {
|
1491
|
+
// Optimization here; we already know the value and don't need to get
|
1492
|
+
// it converted for us.
|
1493
|
+
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
1494
|
+
};
|
1495
|
+
|
1496
|
+
convert.rgb.ansi256 = function (args) {
|
1497
|
+
const r = args[0];
|
1498
|
+
const g = args[1];
|
1499
|
+
const b = args[2];
|
1500
|
+
|
1501
|
+
// We use the extended greyscale palette here, with the exception of
|
1502
|
+
// black and white. normal palette only has 4 greyscale shades.
|
1503
|
+
if (r === g && g === b) {
|
1504
|
+
if (r < 8) {
|
1505
|
+
return 16;
|
1506
|
+
}
|
1507
|
+
|
1508
|
+
if (r > 248) {
|
1509
|
+
return 231;
|
1510
|
+
}
|
1511
|
+
|
1512
|
+
return Math.round(((r - 8) / 247) * 24) + 232;
|
1513
|
+
}
|
1514
|
+
|
1515
|
+
const ansi = 16
|
1516
|
+
+ (36 * Math.round(r / 255 * 5))
|
1517
|
+
+ (6 * Math.round(g / 255 * 5))
|
1518
|
+
+ Math.round(b / 255 * 5);
|
1519
|
+
|
1520
|
+
return ansi;
|
1521
|
+
};
|
1522
|
+
|
1523
|
+
convert.ansi16.rgb = function (args) {
|
1524
|
+
let color = args % 10;
|
1525
|
+
|
1526
|
+
// Handle greyscale
|
1527
|
+
if (color === 0 || color === 7) {
|
1528
|
+
if (args > 50) {
|
1529
|
+
color += 3.5;
|
1530
|
+
}
|
1531
|
+
|
1532
|
+
color = color / 10.5 * 255;
|
1533
|
+
|
1534
|
+
return [color, color, color];
|
1535
|
+
}
|
1536
|
+
|
1537
|
+
const mult = (~~(args > 50) + 1) * 0.5;
|
1538
|
+
const r = ((color & 1) * mult) * 255;
|
1539
|
+
const g = (((color >> 1) & 1) * mult) * 255;
|
1540
|
+
const b = (((color >> 2) & 1) * mult) * 255;
|
1541
|
+
|
1542
|
+
return [r, g, b];
|
1543
|
+
};
|
1544
|
+
|
1545
|
+
convert.ansi256.rgb = function (args) {
|
1546
|
+
// Handle greyscale
|
1547
|
+
if (args >= 232) {
|
1548
|
+
const c = (args - 232) * 10 + 8;
|
1549
|
+
return [c, c, c];
|
1550
|
+
}
|
1551
|
+
|
1552
|
+
args -= 16;
|
1553
|
+
|
1554
|
+
let rem;
|
1555
|
+
const r = Math.floor(args / 36) / 5 * 255;
|
1556
|
+
const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
1557
|
+
const b = (rem % 6) / 5 * 255;
|
1558
|
+
|
1559
|
+
return [r, g, b];
|
1560
|
+
};
|
1561
|
+
|
1562
|
+
convert.rgb.hex = function (args) {
|
1563
|
+
const integer = ((Math.round(args[0]) & 0xFF) << 16)
|
1564
|
+
+ ((Math.round(args[1]) & 0xFF) << 8)
|
1565
|
+
+ (Math.round(args[2]) & 0xFF);
|
1566
|
+
|
1567
|
+
const string = integer.toString(16).toUpperCase();
|
1568
|
+
return '000000'.substring(string.length) + string;
|
1569
|
+
};
|
1570
|
+
|
1571
|
+
convert.hex.rgb = function (args) {
|
1572
|
+
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
1573
|
+
if (!match) {
|
1574
|
+
return [0, 0, 0];
|
1575
|
+
}
|
1576
|
+
|
1577
|
+
let colorString = match[0];
|
1578
|
+
|
1579
|
+
if (match[0].length === 3) {
|
1580
|
+
colorString = colorString.split('').map(char => {
|
1581
|
+
return char + char;
|
1582
|
+
}).join('');
|
1583
|
+
}
|
1584
|
+
|
1585
|
+
const integer = parseInt(colorString, 16);
|
1586
|
+
const r = (integer >> 16) & 0xFF;
|
1587
|
+
const g = (integer >> 8) & 0xFF;
|
1588
|
+
const b = integer & 0xFF;
|
1589
|
+
|
1590
|
+
return [r, g, b];
|
1591
|
+
};
|
1592
|
+
|
1593
|
+
convert.rgb.hcg = function (rgb) {
|
1594
|
+
const r = rgb[0] / 255;
|
1595
|
+
const g = rgb[1] / 255;
|
1596
|
+
const b = rgb[2] / 255;
|
1597
|
+
const max = Math.max(Math.max(r, g), b);
|
1598
|
+
const min = Math.min(Math.min(r, g), b);
|
1599
|
+
const chroma = (max - min);
|
1600
|
+
let grayscale;
|
1601
|
+
let hue;
|
1602
|
+
|
1603
|
+
if (chroma < 1) {
|
1604
|
+
grayscale = min / (1 - chroma);
|
1605
|
+
} else {
|
1606
|
+
grayscale = 0;
|
1607
|
+
}
|
1608
|
+
|
1609
|
+
if (chroma <= 0) {
|
1610
|
+
hue = 0;
|
1611
|
+
} else
|
1612
|
+
if (max === r) {
|
1613
|
+
hue = ((g - b) / chroma) % 6;
|
1614
|
+
} else
|
1615
|
+
if (max === g) {
|
1616
|
+
hue = 2 + (b - r) / chroma;
|
1617
|
+
} else {
|
1618
|
+
hue = 4 + (r - g) / chroma;
|
1619
|
+
}
|
1620
|
+
|
1621
|
+
hue /= 6;
|
1622
|
+
hue %= 1;
|
1623
|
+
|
1624
|
+
return [hue * 360, chroma * 100, grayscale * 100];
|
1625
|
+
};
|
1626
|
+
|
1627
|
+
convert.hsl.hcg = function (hsl) {
|
1628
|
+
const s = hsl[1] / 100;
|
1629
|
+
const l = hsl[2] / 100;
|
1630
|
+
|
1631
|
+
const c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));
|
1632
|
+
|
1633
|
+
let f = 0;
|
1634
|
+
if (c < 1.0) {
|
1635
|
+
f = (l - 0.5 * c) / (1.0 - c);
|
1636
|
+
}
|
1637
|
+
|
1638
|
+
return [hsl[0], c * 100, f * 100];
|
1639
|
+
};
|
1640
|
+
|
1641
|
+
convert.hsv.hcg = function (hsv) {
|
1642
|
+
const s = hsv[1] / 100;
|
1643
|
+
const v = hsv[2] / 100;
|
1644
|
+
|
1645
|
+
const c = s * v;
|
1646
|
+
let f = 0;
|
1647
|
+
|
1648
|
+
if (c < 1.0) {
|
1649
|
+
f = (v - c) / (1 - c);
|
1650
|
+
}
|
1651
|
+
|
1652
|
+
return [hsv[0], c * 100, f * 100];
|
1653
|
+
};
|
1654
|
+
|
1655
|
+
convert.hcg.rgb = function (hcg) {
|
1656
|
+
const h = hcg[0] / 360;
|
1657
|
+
const c = hcg[1] / 100;
|
1658
|
+
const g = hcg[2] / 100;
|
1659
|
+
|
1660
|
+
if (c === 0.0) {
|
1661
|
+
return [g * 255, g * 255, g * 255];
|
1662
|
+
}
|
1663
|
+
|
1664
|
+
const pure = [0, 0, 0];
|
1665
|
+
const hi = (h % 1) * 6;
|
1666
|
+
const v = hi % 1;
|
1667
|
+
const w = 1 - v;
|
1668
|
+
let mg = 0;
|
1669
|
+
|
1670
|
+
/* eslint-disable max-statements-per-line */
|
1671
|
+
switch (Math.floor(hi)) {
|
1672
|
+
case 0:
|
1673
|
+
pure[0] = 1; pure[1] = v; pure[2] = 0; break;
|
1674
|
+
case 1:
|
1675
|
+
pure[0] = w; pure[1] = 1; pure[2] = 0; break;
|
1676
|
+
case 2:
|
1677
|
+
pure[0] = 0; pure[1] = 1; pure[2] = v; break;
|
1678
|
+
case 3:
|
1679
|
+
pure[0] = 0; pure[1] = w; pure[2] = 1; break;
|
1680
|
+
case 4:
|
1681
|
+
pure[0] = v; pure[1] = 0; pure[2] = 1; break;
|
1682
|
+
default:
|
1683
|
+
pure[0] = 1; pure[1] = 0; pure[2] = w;
|
1684
|
+
}
|
1685
|
+
/* eslint-enable max-statements-per-line */
|
1686
|
+
|
1687
|
+
mg = (1.0 - c) * g;
|
1688
|
+
|
1689
|
+
return [
|
1690
|
+
(c * pure[0] + mg) * 255,
|
1691
|
+
(c * pure[1] + mg) * 255,
|
1692
|
+
(c * pure[2] + mg) * 255
|
1693
|
+
];
|
1694
|
+
};
|
1695
|
+
|
1696
|
+
convert.hcg.hsv = function (hcg) {
|
1697
|
+
const c = hcg[1] / 100;
|
1698
|
+
const g = hcg[2] / 100;
|
1699
|
+
|
1700
|
+
const v = c + g * (1.0 - c);
|
1701
|
+
let f = 0;
|
1702
|
+
|
1703
|
+
if (v > 0.0) {
|
1704
|
+
f = c / v;
|
1705
|
+
}
|
1706
|
+
|
1707
|
+
return [hcg[0], f * 100, v * 100];
|
1708
|
+
};
|
1709
|
+
|
1710
|
+
convert.hcg.hsl = function (hcg) {
|
1711
|
+
const c = hcg[1] / 100;
|
1712
|
+
const g = hcg[2] / 100;
|
1713
|
+
|
1714
|
+
const l = g * (1.0 - c) + 0.5 * c;
|
1715
|
+
let s = 0;
|
1716
|
+
|
1717
|
+
if (l > 0.0 && l < 0.5) {
|
1718
|
+
s = c / (2 * l);
|
1719
|
+
} else
|
1720
|
+
if (l >= 0.5 && l < 1.0) {
|
1721
|
+
s = c / (2 * (1 - l));
|
1722
|
+
}
|
1723
|
+
|
1724
|
+
return [hcg[0], s * 100, l * 100];
|
1725
|
+
};
|
1726
|
+
|
1727
|
+
convert.hcg.hwb = function (hcg) {
|
1728
|
+
const c = hcg[1] / 100;
|
1729
|
+
const g = hcg[2] / 100;
|
1730
|
+
const v = c + g * (1.0 - c);
|
1731
|
+
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
1732
|
+
};
|
1733
|
+
|
1734
|
+
convert.hwb.hcg = function (hwb) {
|
1735
|
+
const w = hwb[1] / 100;
|
1736
|
+
const b = hwb[2] / 100;
|
1737
|
+
const v = 1 - b;
|
1738
|
+
const c = v - w;
|
1739
|
+
let g = 0;
|
1740
|
+
|
1741
|
+
if (c < 1) {
|
1742
|
+
g = (v - c) / (1 - c);
|
1743
|
+
}
|
1744
|
+
|
1745
|
+
return [hwb[0], c * 100, g * 100];
|
1746
|
+
};
|
1747
|
+
|
1748
|
+
convert.apple.rgb = function (apple) {
|
1749
|
+
return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
|
1750
|
+
};
|
1751
|
+
|
1752
|
+
convert.rgb.apple = function (rgb) {
|
1753
|
+
return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
|
1754
|
+
};
|
1755
|
+
|
1756
|
+
convert.gray.rgb = function (args) {
|
1757
|
+
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
1758
|
+
};
|
1759
|
+
|
1760
|
+
convert.gray.hsl = function (args) {
|
1761
|
+
return [0, 0, args[0]];
|
1762
|
+
};
|
1763
|
+
|
1764
|
+
convert.gray.hsv = convert.gray.hsl;
|
1765
|
+
|
1766
|
+
convert.gray.hwb = function (gray) {
|
1767
|
+
return [0, 100, gray[0]];
|
1768
|
+
};
|
1769
|
+
|
1770
|
+
convert.gray.cmyk = function (gray) {
|
1771
|
+
return [0, 0, 0, gray[0]];
|
1772
|
+
};
|
1773
|
+
|
1774
|
+
convert.gray.lab = function (gray) {
|
1775
|
+
return [gray[0], 0, 0];
|
1776
|
+
};
|
1777
|
+
|
1778
|
+
convert.gray.hex = function (gray) {
|
1779
|
+
const val = Math.round(gray[0] / 100 * 255) & 0xFF;
|
1780
|
+
const integer = (val << 16) + (val << 8) + val;
|
1781
|
+
|
1782
|
+
const string = integer.toString(16).toUpperCase();
|
1783
|
+
return '000000'.substring(string.length) + string;
|
1784
|
+
};
|
1785
|
+
|
1786
|
+
convert.rgb.gray = function (rgb) {
|
1787
|
+
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
1788
|
+
return [val / 255 * 100];
|
1789
|
+
};
|
1790
|
+
|
1791
|
+
|
1792
|
+
/***/ }),
|
1793
|
+
|
1794
|
+
/***/ 86931:
|
1795
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
1796
|
+
|
1797
|
+
const conversions = __nccwpck_require__(97391);
|
1798
|
+
const route = __nccwpck_require__(30880);
|
1799
|
+
|
1800
|
+
const convert = {};
|
1801
|
+
|
1802
|
+
const models = Object.keys(conversions);
|
1803
|
+
|
1804
|
+
function wrapRaw(fn) {
|
1805
|
+
const wrappedFn = function (...args) {
|
1806
|
+
const arg0 = args[0];
|
1807
|
+
if (arg0 === undefined || arg0 === null) {
|
1808
|
+
return arg0;
|
1809
|
+
}
|
1810
|
+
|
1811
|
+
if (arg0.length > 1) {
|
1812
|
+
args = arg0;
|
1813
|
+
}
|
1814
|
+
|
1815
|
+
return fn(args);
|
1816
|
+
};
|
1817
|
+
|
1818
|
+
// Preserve .conversion property if there is one
|
1819
|
+
if ('conversion' in fn) {
|
1820
|
+
wrappedFn.conversion = fn.conversion;
|
1821
|
+
}
|
1822
|
+
|
1823
|
+
return wrappedFn;
|
1824
|
+
}
|
1825
|
+
|
1826
|
+
function wrapRounded(fn) {
|
1827
|
+
const wrappedFn = function (...args) {
|
1828
|
+
const arg0 = args[0];
|
1829
|
+
|
1830
|
+
if (arg0 === undefined || arg0 === null) {
|
1831
|
+
return arg0;
|
1832
|
+
}
|
1833
|
+
|
1834
|
+
if (arg0.length > 1) {
|
1835
|
+
args = arg0;
|
1836
|
+
}
|
1837
|
+
|
1838
|
+
const result = fn(args);
|
1839
|
+
|
1840
|
+
// We're assuming the result is an array here.
|
1841
|
+
// see notice in conversions.js; don't use box types
|
1842
|
+
// in conversion functions.
|
1843
|
+
if (typeof result === 'object') {
|
1844
|
+
for (let len = result.length, i = 0; i < len; i++) {
|
1845
|
+
result[i] = Math.round(result[i]);
|
1846
|
+
}
|
1847
|
+
}
|
1848
|
+
|
1849
|
+
return result;
|
1850
|
+
};
|
1851
|
+
|
1852
|
+
// Preserve .conversion property if there is one
|
1853
|
+
if ('conversion' in fn) {
|
1854
|
+
wrappedFn.conversion = fn.conversion;
|
1855
|
+
}
|
1856
|
+
|
1857
|
+
return wrappedFn;
|
1858
|
+
}
|
1859
|
+
|
1860
|
+
models.forEach(fromModel => {
|
1861
|
+
convert[fromModel] = {};
|
1862
|
+
|
1863
|
+
Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
|
1864
|
+
Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});
|
1865
|
+
|
1866
|
+
const routes = route(fromModel);
|
1867
|
+
const routeModels = Object.keys(routes);
|
1868
|
+
|
1869
|
+
routeModels.forEach(toModel => {
|
1870
|
+
const fn = routes[toModel];
|
1871
|
+
|
1872
|
+
convert[fromModel][toModel] = wrapRounded(fn);
|
1873
|
+
convert[fromModel][toModel].raw = wrapRaw(fn);
|
1874
|
+
});
|
1875
|
+
});
|
1876
|
+
|
1877
|
+
module.exports = convert;
|
1878
|
+
|
1879
|
+
|
1880
|
+
/***/ }),
|
1881
|
+
|
1882
|
+
/***/ 30880:
|
1883
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
1884
|
+
|
1885
|
+
const conversions = __nccwpck_require__(97391);
|
1886
|
+
|
1887
|
+
/*
|
1888
|
+
This function routes a model to all other models.
|
1889
|
+
|
1890
|
+
all functions that are routed have a property `.conversion` attached
|
1891
|
+
to the returned synthetic function. This property is an array
|
1892
|
+
of strings, each with the steps in between the 'from' and 'to'
|
1893
|
+
color models (inclusive).
|
1894
|
+
|
1895
|
+
conversions that are not possible simply are not included.
|
1896
|
+
*/
|
1897
|
+
|
1898
|
+
function buildGraph() {
|
1899
|
+
const graph = {};
|
1900
|
+
// https://jsperf.com/object-keys-vs-for-in-with-closure/3
|
1901
|
+
const models = Object.keys(conversions);
|
1902
|
+
|
1903
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
1904
|
+
graph[models[i]] = {
|
1905
|
+
// http://jsperf.com/1-vs-infinity
|
1906
|
+
// micro-opt, but this is simple.
|
1907
|
+
distance: -1,
|
1908
|
+
parent: null
|
1909
|
+
};
|
1910
|
+
}
|
1911
|
+
|
1912
|
+
return graph;
|
1913
|
+
}
|
1914
|
+
|
1915
|
+
// https://en.wikipedia.org/wiki/Breadth-first_search
|
1916
|
+
function deriveBFS(fromModel) {
|
1917
|
+
const graph = buildGraph();
|
1918
|
+
const queue = [fromModel]; // Unshift -> queue -> pop
|
1919
|
+
|
1920
|
+
graph[fromModel].distance = 0;
|
1921
|
+
|
1922
|
+
while (queue.length) {
|
1923
|
+
const current = queue.pop();
|
1924
|
+
const adjacents = Object.keys(conversions[current]);
|
1925
|
+
|
1926
|
+
for (let len = adjacents.length, i = 0; i < len; i++) {
|
1927
|
+
const adjacent = adjacents[i];
|
1928
|
+
const node = graph[adjacent];
|
1929
|
+
|
1930
|
+
if (node.distance === -1) {
|
1931
|
+
node.distance = graph[current].distance + 1;
|
1932
|
+
node.parent = current;
|
1933
|
+
queue.unshift(adjacent);
|
1934
|
+
}
|
1935
|
+
}
|
1936
|
+
}
|
1937
|
+
|
1938
|
+
return graph;
|
1939
|
+
}
|
1940
|
+
|
1941
|
+
function link(from, to) {
|
1942
|
+
return function (args) {
|
1943
|
+
return to(from(args));
|
1944
|
+
};
|
1945
|
+
}
|
1946
|
+
|
1947
|
+
function wrapConversion(toModel, graph) {
|
1948
|
+
const path = [graph[toModel].parent, toModel];
|
1949
|
+
let fn = conversions[graph[toModel].parent][toModel];
|
1950
|
+
|
1951
|
+
let cur = graph[toModel].parent;
|
1952
|
+
while (graph[cur].parent) {
|
1953
|
+
path.unshift(graph[cur].parent);
|
1954
|
+
fn = link(conversions[graph[cur].parent][cur], fn);
|
1955
|
+
cur = graph[cur].parent;
|
1956
|
+
}
|
1957
|
+
|
1958
|
+
fn.conversion = path;
|
1959
|
+
return fn;
|
1960
|
+
}
|
1961
|
+
|
1962
|
+
module.exports = function (fromModel) {
|
1963
|
+
const graph = deriveBFS(fromModel);
|
1964
|
+
const conversion = {};
|
1965
|
+
|
1966
|
+
const models = Object.keys(graph);
|
1967
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
1968
|
+
const toModel = models[i];
|
1969
|
+
const node = graph[toModel];
|
1970
|
+
|
1971
|
+
if (node.parent === null) {
|
1972
|
+
// No possible conversion, or this node is the source model.
|
1973
|
+
continue;
|
1974
|
+
}
|
1975
|
+
|
1976
|
+
conversion[toModel] = wrapConversion(toModel, graph);
|
1977
|
+
}
|
1978
|
+
|
1979
|
+
return conversion;
|
1980
|
+
};
|
1981
|
+
|
1982
|
+
|
1983
|
+
|
1984
|
+
/***/ }),
|
1985
|
+
|
1986
|
+
/***/ 78510:
|
1987
|
+
/***/ ((module) => {
|
1988
|
+
|
1989
|
+
"use strict";
|
1990
|
+
|
1991
|
+
|
1992
|
+
module.exports = {
|
1993
|
+
"aliceblue": [240, 248, 255],
|
1994
|
+
"antiquewhite": [250, 235, 215],
|
1995
|
+
"aqua": [0, 255, 255],
|
1996
|
+
"aquamarine": [127, 255, 212],
|
1997
|
+
"azure": [240, 255, 255],
|
1998
|
+
"beige": [245, 245, 220],
|
1999
|
+
"bisque": [255, 228, 196],
|
2000
|
+
"black": [0, 0, 0],
|
2001
|
+
"blanchedalmond": [255, 235, 205],
|
2002
|
+
"blue": [0, 0, 255],
|
2003
|
+
"blueviolet": [138, 43, 226],
|
2004
|
+
"brown": [165, 42, 42],
|
2005
|
+
"burlywood": [222, 184, 135],
|
2006
|
+
"cadetblue": [95, 158, 160],
|
2007
|
+
"chartreuse": [127, 255, 0],
|
2008
|
+
"chocolate": [210, 105, 30],
|
2009
|
+
"coral": [255, 127, 80],
|
2010
|
+
"cornflowerblue": [100, 149, 237],
|
2011
|
+
"cornsilk": [255, 248, 220],
|
2012
|
+
"crimson": [220, 20, 60],
|
2013
|
+
"cyan": [0, 255, 255],
|
2014
|
+
"darkblue": [0, 0, 139],
|
2015
|
+
"darkcyan": [0, 139, 139],
|
2016
|
+
"darkgoldenrod": [184, 134, 11],
|
2017
|
+
"darkgray": [169, 169, 169],
|
2018
|
+
"darkgreen": [0, 100, 0],
|
2019
|
+
"darkgrey": [169, 169, 169],
|
2020
|
+
"darkkhaki": [189, 183, 107],
|
2021
|
+
"darkmagenta": [139, 0, 139],
|
2022
|
+
"darkolivegreen": [85, 107, 47],
|
2023
|
+
"darkorange": [255, 140, 0],
|
2024
|
+
"darkorchid": [153, 50, 204],
|
2025
|
+
"darkred": [139, 0, 0],
|
2026
|
+
"darksalmon": [233, 150, 122],
|
2027
|
+
"darkseagreen": [143, 188, 143],
|
2028
|
+
"darkslateblue": [72, 61, 139],
|
2029
|
+
"darkslategray": [47, 79, 79],
|
2030
|
+
"darkslategrey": [47, 79, 79],
|
2031
|
+
"darkturquoise": [0, 206, 209],
|
2032
|
+
"darkviolet": [148, 0, 211],
|
2033
|
+
"deeppink": [255, 20, 147],
|
2034
|
+
"deepskyblue": [0, 191, 255],
|
2035
|
+
"dimgray": [105, 105, 105],
|
2036
|
+
"dimgrey": [105, 105, 105],
|
2037
|
+
"dodgerblue": [30, 144, 255],
|
2038
|
+
"firebrick": [178, 34, 34],
|
2039
|
+
"floralwhite": [255, 250, 240],
|
2040
|
+
"forestgreen": [34, 139, 34],
|
2041
|
+
"fuchsia": [255, 0, 255],
|
2042
|
+
"gainsboro": [220, 220, 220],
|
2043
|
+
"ghostwhite": [248, 248, 255],
|
2044
|
+
"gold": [255, 215, 0],
|
2045
|
+
"goldenrod": [218, 165, 32],
|
2046
|
+
"gray": [128, 128, 128],
|
2047
|
+
"green": [0, 128, 0],
|
2048
|
+
"greenyellow": [173, 255, 47],
|
2049
|
+
"grey": [128, 128, 128],
|
2050
|
+
"honeydew": [240, 255, 240],
|
2051
|
+
"hotpink": [255, 105, 180],
|
2052
|
+
"indianred": [205, 92, 92],
|
2053
|
+
"indigo": [75, 0, 130],
|
2054
|
+
"ivory": [255, 255, 240],
|
2055
|
+
"khaki": [240, 230, 140],
|
2056
|
+
"lavender": [230, 230, 250],
|
2057
|
+
"lavenderblush": [255, 240, 245],
|
2058
|
+
"lawngreen": [124, 252, 0],
|
2059
|
+
"lemonchiffon": [255, 250, 205],
|
2060
|
+
"lightblue": [173, 216, 230],
|
2061
|
+
"lightcoral": [240, 128, 128],
|
2062
|
+
"lightcyan": [224, 255, 255],
|
2063
|
+
"lightgoldenrodyellow": [250, 250, 210],
|
2064
|
+
"lightgray": [211, 211, 211],
|
2065
|
+
"lightgreen": [144, 238, 144],
|
2066
|
+
"lightgrey": [211, 211, 211],
|
2067
|
+
"lightpink": [255, 182, 193],
|
2068
|
+
"lightsalmon": [255, 160, 122],
|
2069
|
+
"lightseagreen": [32, 178, 170],
|
2070
|
+
"lightskyblue": [135, 206, 250],
|
2071
|
+
"lightslategray": [119, 136, 153],
|
2072
|
+
"lightslategrey": [119, 136, 153],
|
2073
|
+
"lightsteelblue": [176, 196, 222],
|
2074
|
+
"lightyellow": [255, 255, 224],
|
2075
|
+
"lime": [0, 255, 0],
|
2076
|
+
"limegreen": [50, 205, 50],
|
2077
|
+
"linen": [250, 240, 230],
|
2078
|
+
"magenta": [255, 0, 255],
|
2079
|
+
"maroon": [128, 0, 0],
|
2080
|
+
"mediumaquamarine": [102, 205, 170],
|
2081
|
+
"mediumblue": [0, 0, 205],
|
2082
|
+
"mediumorchid": [186, 85, 211],
|
2083
|
+
"mediumpurple": [147, 112, 219],
|
2084
|
+
"mediumseagreen": [60, 179, 113],
|
2085
|
+
"mediumslateblue": [123, 104, 238],
|
2086
|
+
"mediumspringgreen": [0, 250, 154],
|
2087
|
+
"mediumturquoise": [72, 209, 204],
|
2088
|
+
"mediumvioletred": [199, 21, 133],
|
2089
|
+
"midnightblue": [25, 25, 112],
|
2090
|
+
"mintcream": [245, 255, 250],
|
2091
|
+
"mistyrose": [255, 228, 225],
|
2092
|
+
"moccasin": [255, 228, 181],
|
2093
|
+
"navajowhite": [255, 222, 173],
|
2094
|
+
"navy": [0, 0, 128],
|
2095
|
+
"oldlace": [253, 245, 230],
|
2096
|
+
"olive": [128, 128, 0],
|
2097
|
+
"olivedrab": [107, 142, 35],
|
2098
|
+
"orange": [255, 165, 0],
|
2099
|
+
"orangered": [255, 69, 0],
|
2100
|
+
"orchid": [218, 112, 214],
|
2101
|
+
"palegoldenrod": [238, 232, 170],
|
2102
|
+
"palegreen": [152, 251, 152],
|
2103
|
+
"paleturquoise": [175, 238, 238],
|
2104
|
+
"palevioletred": [219, 112, 147],
|
2105
|
+
"papayawhip": [255, 239, 213],
|
2106
|
+
"peachpuff": [255, 218, 185],
|
2107
|
+
"peru": [205, 133, 63],
|
2108
|
+
"pink": [255, 192, 203],
|
2109
|
+
"plum": [221, 160, 221],
|
2110
|
+
"powderblue": [176, 224, 230],
|
2111
|
+
"purple": [128, 0, 128],
|
2112
|
+
"rebeccapurple": [102, 51, 153],
|
2113
|
+
"red": [255, 0, 0],
|
2114
|
+
"rosybrown": [188, 143, 143],
|
2115
|
+
"royalblue": [65, 105, 225],
|
2116
|
+
"saddlebrown": [139, 69, 19],
|
2117
|
+
"salmon": [250, 128, 114],
|
2118
|
+
"sandybrown": [244, 164, 96],
|
2119
|
+
"seagreen": [46, 139, 87],
|
2120
|
+
"seashell": [255, 245, 238],
|
2121
|
+
"sienna": [160, 82, 45],
|
2122
|
+
"silver": [192, 192, 192],
|
2123
|
+
"skyblue": [135, 206, 235],
|
2124
|
+
"slateblue": [106, 90, 205],
|
2125
|
+
"slategray": [112, 128, 144],
|
2126
|
+
"slategrey": [112, 128, 144],
|
2127
|
+
"snow": [255, 250, 250],
|
2128
|
+
"springgreen": [0, 255, 127],
|
2129
|
+
"steelblue": [70, 130, 180],
|
2130
|
+
"tan": [210, 180, 140],
|
2131
|
+
"teal": [0, 128, 128],
|
2132
|
+
"thistle": [216, 191, 216],
|
2133
|
+
"tomato": [255, 99, 71],
|
2134
|
+
"turquoise": [64, 224, 208],
|
2135
|
+
"violet": [238, 130, 238],
|
2136
|
+
"wheat": [245, 222, 179],
|
2137
|
+
"white": [255, 255, 255],
|
2138
|
+
"whitesmoke": [245, 245, 245],
|
2139
|
+
"yellow": [255, 255, 0],
|
2140
|
+
"yellowgreen": [154, 205, 50]
|
2141
|
+
};
|
2142
|
+
|
2143
|
+
|
348
2144
|
/***/ }),
|
349
2145
|
|
350
2146
|
/***/ 11848:
|
@@ -689,6 +2485,22 @@ if (true) {
|
|
689
2485
|
}
|
690
2486
|
|
691
2487
|
|
2488
|
+
/***/ }),
|
2489
|
+
|
2490
|
+
/***/ 31621:
|
2491
|
+
/***/ ((module) => {
|
2492
|
+
|
2493
|
+
"use strict";
|
2494
|
+
|
2495
|
+
|
2496
|
+
module.exports = (flag, argv = process.argv) => {
|
2497
|
+
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
|
2498
|
+
const position = argv.indexOf(prefix + flag);
|
2499
|
+
const terminatorPosition = argv.indexOf('--');
|
2500
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
2501
|
+
};
|
2502
|
+
|
2503
|
+
|
692
2504
|
/***/ }),
|
693
2505
|
|
694
2506
|
/***/ 59120:
|
@@ -972,6 +2784,149 @@ const ansiRegex = __nccwpck_require__(65063);
|
|
972
2784
|
module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
|
973
2785
|
|
974
2786
|
|
2787
|
+
/***/ }),
|
2788
|
+
|
2789
|
+
/***/ 59318:
|
2790
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
2791
|
+
|
2792
|
+
"use strict";
|
2793
|
+
|
2794
|
+
const os = __nccwpck_require__(22037);
|
2795
|
+
const tty = __nccwpck_require__(76224);
|
2796
|
+
const hasFlag = __nccwpck_require__(31621);
|
2797
|
+
|
2798
|
+
const {env} = process;
|
2799
|
+
|
2800
|
+
let forceColor;
|
2801
|
+
if (hasFlag('no-color') ||
|
2802
|
+
hasFlag('no-colors') ||
|
2803
|
+
hasFlag('color=false') ||
|
2804
|
+
hasFlag('color=never')) {
|
2805
|
+
forceColor = 0;
|
2806
|
+
} else if (hasFlag('color') ||
|
2807
|
+
hasFlag('colors') ||
|
2808
|
+
hasFlag('color=true') ||
|
2809
|
+
hasFlag('color=always')) {
|
2810
|
+
forceColor = 1;
|
2811
|
+
}
|
2812
|
+
|
2813
|
+
if ('FORCE_COLOR' in env) {
|
2814
|
+
if (env.FORCE_COLOR === 'true') {
|
2815
|
+
forceColor = 1;
|
2816
|
+
} else if (env.FORCE_COLOR === 'false') {
|
2817
|
+
forceColor = 0;
|
2818
|
+
} else {
|
2819
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
2820
|
+
}
|
2821
|
+
}
|
2822
|
+
|
2823
|
+
function translateLevel(level) {
|
2824
|
+
if (level === 0) {
|
2825
|
+
return false;
|
2826
|
+
}
|
2827
|
+
|
2828
|
+
return {
|
2829
|
+
level,
|
2830
|
+
hasBasic: true,
|
2831
|
+
has256: level >= 2,
|
2832
|
+
has16m: level >= 3
|
2833
|
+
};
|
2834
|
+
}
|
2835
|
+
|
2836
|
+
function supportsColor(haveStream, streamIsTTY) {
|
2837
|
+
if (forceColor === 0) {
|
2838
|
+
return 0;
|
2839
|
+
}
|
2840
|
+
|
2841
|
+
if (hasFlag('color=16m') ||
|
2842
|
+
hasFlag('color=full') ||
|
2843
|
+
hasFlag('color=truecolor')) {
|
2844
|
+
return 3;
|
2845
|
+
}
|
2846
|
+
|
2847
|
+
if (hasFlag('color=256')) {
|
2848
|
+
return 2;
|
2849
|
+
}
|
2850
|
+
|
2851
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
2852
|
+
return 0;
|
2853
|
+
}
|
2854
|
+
|
2855
|
+
const min = forceColor || 0;
|
2856
|
+
|
2857
|
+
if (env.TERM === 'dumb') {
|
2858
|
+
return min;
|
2859
|
+
}
|
2860
|
+
|
2861
|
+
if (process.platform === 'win32') {
|
2862
|
+
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
2863
|
+
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
2864
|
+
const osRelease = os.release().split('.');
|
2865
|
+
if (
|
2866
|
+
Number(osRelease[0]) >= 10 &&
|
2867
|
+
Number(osRelease[2]) >= 10586
|
2868
|
+
) {
|
2869
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
2870
|
+
}
|
2871
|
+
|
2872
|
+
return 1;
|
2873
|
+
}
|
2874
|
+
|
2875
|
+
if ('CI' in env) {
|
2876
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
2877
|
+
return 1;
|
2878
|
+
}
|
2879
|
+
|
2880
|
+
return min;
|
2881
|
+
}
|
2882
|
+
|
2883
|
+
if ('TEAMCITY_VERSION' in env) {
|
2884
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
2885
|
+
}
|
2886
|
+
|
2887
|
+
if (env.COLORTERM === 'truecolor') {
|
2888
|
+
return 3;
|
2889
|
+
}
|
2890
|
+
|
2891
|
+
if ('TERM_PROGRAM' in env) {
|
2892
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
2893
|
+
|
2894
|
+
switch (env.TERM_PROGRAM) {
|
2895
|
+
case 'iTerm.app':
|
2896
|
+
return version >= 3 ? 3 : 2;
|
2897
|
+
case 'Apple_Terminal':
|
2898
|
+
return 2;
|
2899
|
+
// No default
|
2900
|
+
}
|
2901
|
+
}
|
2902
|
+
|
2903
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
2904
|
+
return 2;
|
2905
|
+
}
|
2906
|
+
|
2907
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
2908
|
+
return 1;
|
2909
|
+
}
|
2910
|
+
|
2911
|
+
if ('COLORTERM' in env) {
|
2912
|
+
return 1;
|
2913
|
+
}
|
2914
|
+
|
2915
|
+
return min;
|
2916
|
+
}
|
2917
|
+
|
2918
|
+
function getSupportLevel(stream) {
|
2919
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
2920
|
+
return translateLevel(level);
|
2921
|
+
}
|
2922
|
+
|
2923
|
+
module.exports = {
|
2924
|
+
supportsColor: getSupportLevel,
|
2925
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
2926
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
2927
|
+
};
|
2928
|
+
|
2929
|
+
|
975
2930
|
/***/ }),
|
976
2931
|
|
977
2932
|
/***/ 76876:
|
@@ -9292,10 +11247,29 @@ ${e}:`,{color:"yellow",modifiers:["bold","underline","uppercase"]})},w=(e,n,t)=>
|
|
9292
11247
|
|
9293
11248
|
// EXTERNAL MODULE: ./dist/bin/tools/readThisNpmPackageVersion.js
|
9294
11249
|
var readThisNpmPackageVersion = __nccwpck_require__(64795);
|
11250
|
+
// EXTERNAL MODULE: ./node_modules/chalk/source/index.js
|
11251
|
+
var source = __nccwpck_require__(78818);
|
11252
|
+
var source_default = /*#__PURE__*/__nccwpck_require__.n(source);
|
11253
|
+
;// CONCATENATED MODULE: ./dist/bin/tools/assertNoPnpmDlx.js
|
11254
|
+
|
11255
|
+
|
11256
|
+
function assertNoPnpmDlx() {
|
11257
|
+
if (__dirname.includes(`${external_path_.sep}pnpm${external_path_.sep}dlx${external_path_.sep}`)) {
|
11258
|
+
console.log([
|
11259
|
+
source_default().red("Please don't use `pnpm dlx keycloakify`"),
|
11260
|
+
"\nUse `npx keycloakify` or `pnpm exec keycloakify` instead since you want to use the keycloakify",
|
11261
|
+
"version that is installed in your project and not the latest version on NPM."
|
11262
|
+
].join(" "));
|
11263
|
+
process.exit(1);
|
11264
|
+
}
|
11265
|
+
}
|
11266
|
+
//# sourceMappingURL=assertNoPnpmDlx.js.map
|
9295
11267
|
;// CONCATENATED MODULE: ./dist/bin/main.js
|
9296
11268
|
|
9297
11269
|
|
9298
11270
|
|
11271
|
+
|
11272
|
+
assertNoPnpmDlx();
|
9299
11273
|
const program = Z({
|
9300
11274
|
name: "keycloakify",
|
9301
11275
|
description: "Keycloakify CLI",
|
@@ -9338,7 +11312,7 @@ program
|
|
9338
11312
|
.task({
|
9339
11313
|
skip,
|
9340
11314
|
handler: async (cliCommandOptions) => {
|
9341
|
-
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(
|
11315
|
+
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(966), __nccwpck_require__.e(430), __nccwpck_require__.e(525), __nccwpck_require__.e(490), __nccwpck_require__.e(31), __nccwpck_require__.e(893), __nccwpck_require__.e(440)]).then(__nccwpck_require__.bind(__nccwpck_require__, 46440));
|
9342
11316
|
await command({ cliCommandOptions });
|
9343
11317
|
}
|
9344
11318
|
});
|
@@ -9386,7 +11360,7 @@ program
|
|
9386
11360
|
.task({
|
9387
11361
|
skip,
|
9388
11362
|
handler: async (cliCommandOptions) => {
|
9389
|
-
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(
|
11363
|
+
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(966), __nccwpck_require__.e(430), __nccwpck_require__.e(180), __nccwpck_require__.e(36), __nccwpck_require__.e(31), __nccwpck_require__.e(526)]).then(__nccwpck_require__.bind(__nccwpck_require__, 80526));
|
9390
11364
|
await command({ cliCommandOptions });
|
9391
11365
|
}
|
9392
11366
|
});
|
@@ -9398,7 +11372,7 @@ program
|
|
9398
11372
|
.task({
|
9399
11373
|
skip,
|
9400
11374
|
handler: async (cliCommandOptions) => {
|
9401
|
-
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(
|
11375
|
+
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(966), __nccwpck_require__.e(31), __nccwpck_require__.e(453)]).then(__nccwpck_require__.bind(__nccwpck_require__, 93453));
|
9402
11376
|
await command({ cliCommandOptions });
|
9403
11377
|
}
|
9404
11378
|
});
|
@@ -9410,7 +11384,7 @@ program
|
|
9410
11384
|
.task({
|
9411
11385
|
skip,
|
9412
11386
|
handler: async (cliCommandOptions) => {
|
9413
|
-
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(
|
11387
|
+
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(966), __nccwpck_require__.e(31), __nccwpck_require__.e(97)]).then(__nccwpck_require__.bind(__nccwpck_require__, 98097));
|
9414
11388
|
await command({ cliCommandOptions });
|
9415
11389
|
}
|
9416
11390
|
});
|
@@ -9422,7 +11396,7 @@ program
|
|
9422
11396
|
.task({
|
9423
11397
|
skip,
|
9424
11398
|
handler: async (cliCommandOptions) => {
|
9425
|
-
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(
|
11399
|
+
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(966), __nccwpck_require__.e(430), __nccwpck_require__.e(525), __nccwpck_require__.e(180), __nccwpck_require__.e(31), __nccwpck_require__.e(893), __nccwpck_require__.e(932)]).then(__nccwpck_require__.bind(__nccwpck_require__, 16932));
|
9426
11400
|
await command({ cliCommandOptions });
|
9427
11401
|
}
|
9428
11402
|
});
|
@@ -9434,7 +11408,7 @@ program
|
|
9434
11408
|
.task({
|
9435
11409
|
skip,
|
9436
11410
|
handler: async (cliCommandOptions) => {
|
9437
|
-
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(
|
11411
|
+
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(966), __nccwpck_require__.e(430), __nccwpck_require__.e(525), __nccwpck_require__.e(31), __nccwpck_require__.e(893), __nccwpck_require__.e(193)]).then(__nccwpck_require__.bind(__nccwpck_require__, 23193));
|
9438
11412
|
await command({ cliCommandOptions });
|
9439
11413
|
}
|
9440
11414
|
});
|
@@ -9446,7 +11420,7 @@ program
|
|
9446
11420
|
.task({
|
9447
11421
|
skip,
|
9448
11422
|
handler: async (cliCommandOptions) => {
|
9449
|
-
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(
|
11423
|
+
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(966), __nccwpck_require__.e(31), __nccwpck_require__.e(538)]).then(__nccwpck_require__.bind(__nccwpck_require__, 1538));
|
9450
11424
|
await command({ cliCommandOptions });
|
9451
11425
|
}
|
9452
11426
|
});
|