@ng-atomic/schematics 20.76.1 → 20.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +252 -124
- package/lib/_utilities/index.js +252 -124
- package/lib/atomic-component/index.js +138 -78
- package/lib/ng-add/index.js +252 -124
- package/lib/page/index.js +252 -124
- package/lib/pages/index.js +113 -71
- package/lib/setup/index.js +252 -124
- package/package.json +1 -1
package/lib/setup/index.js
CHANGED
|
@@ -362,9 +362,11 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
362
362
|
decode: () => decode,
|
|
363
363
|
decodeGeneratedRanges: () => decodeGeneratedRanges,
|
|
364
364
|
decodeOriginalScopes: () => decodeOriginalScopes,
|
|
365
|
+
decodeRangeMappings: () => decodeRangeMappings,
|
|
365
366
|
encode: () => encode,
|
|
366
367
|
encodeGeneratedRanges: () => encodeGeneratedRanges,
|
|
367
|
-
encodeOriginalScopes: () => encodeOriginalScopes
|
|
368
|
+
encodeOriginalScopes: () => encodeOriginalScopes,
|
|
369
|
+
encodeRangeMappings: () => encodeRangeMappings
|
|
368
370
|
});
|
|
369
371
|
module3.exports = __toCommonJS2(sourcemap_codec_exports);
|
|
370
372
|
var comma = ",".charCodeAt(0);
|
|
@@ -377,7 +379,7 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
377
379
|
intToChar[i] = c;
|
|
378
380
|
charToInt[c] = i;
|
|
379
381
|
}
|
|
380
|
-
function decodeInteger(reader
|
|
382
|
+
function decodeInteger(reader) {
|
|
381
383
|
let value = 0;
|
|
382
384
|
let shift = 0;
|
|
383
385
|
let integer = 0;
|
|
@@ -387,23 +389,21 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
387
389
|
value |= (integer & 31) << shift;
|
|
388
390
|
shift += 5;
|
|
389
391
|
} while (integer & 32);
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}
|
|
395
|
-
return relative + value;
|
|
392
|
+
return value;
|
|
393
|
+
}
|
|
394
|
+
function decodeSign(num) {
|
|
395
|
+
return num & 1 ? -2147483648 | -(num >>> 1) : num >>> 1;
|
|
396
396
|
}
|
|
397
|
-
function encodeInteger(builder, num
|
|
398
|
-
let delta = num - relative;
|
|
399
|
-
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
397
|
+
function encodeInteger(builder, num) {
|
|
400
398
|
do {
|
|
401
|
-
let clamped =
|
|
402
|
-
|
|
403
|
-
if (
|
|
399
|
+
let clamped = num & 31;
|
|
400
|
+
num >>>= 5;
|
|
401
|
+
if (num > 0) clamped |= 32;
|
|
404
402
|
builder.write(intToChar[clamped]);
|
|
405
|
-
} while (
|
|
406
|
-
|
|
403
|
+
} while (num > 0);
|
|
404
|
+
}
|
|
405
|
+
function encodeSign(num) {
|
|
406
|
+
return num < 0 ? -num << 1 | 1 : num << 1;
|
|
407
407
|
}
|
|
408
408
|
function hasMoreVlq(reader, max) {
|
|
409
409
|
if (reader.pos >= max) return false;
|
|
@@ -468,23 +468,23 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
468
468
|
const stack = [];
|
|
469
469
|
let line = 0;
|
|
470
470
|
for (; reader.pos < length; reader.pos++) {
|
|
471
|
-
line
|
|
472
|
-
const column = decodeInteger(reader
|
|
471
|
+
line += decodeSign(decodeInteger(reader));
|
|
472
|
+
const column = decodeSign(decodeInteger(reader));
|
|
473
473
|
if (!hasMoreVlq(reader, length)) {
|
|
474
474
|
const last = stack.pop();
|
|
475
475
|
last[2] = line;
|
|
476
476
|
last[3] = column;
|
|
477
477
|
continue;
|
|
478
478
|
}
|
|
479
|
-
const kind = decodeInteger(reader
|
|
480
|
-
const fields = decodeInteger(reader
|
|
479
|
+
const kind = decodeSign(decodeInteger(reader));
|
|
480
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
481
481
|
const hasName = fields & 1;
|
|
482
|
-
const scope = hasName ? [line, column, 0, 0, kind, decodeInteger(reader
|
|
482
|
+
const scope = hasName ? [line, column, 0, 0, kind, decodeSign(decodeInteger(reader))] : [line, column, 0, 0, kind];
|
|
483
483
|
let vars = EMPTY;
|
|
484
484
|
if (hasMoreVlq(reader, length)) {
|
|
485
485
|
vars = [];
|
|
486
486
|
do {
|
|
487
|
-
const varsIndex = decodeInteger(reader
|
|
487
|
+
const varsIndex = decodeSign(decodeInteger(reader));
|
|
488
488
|
vars.push(varsIndex);
|
|
489
489
|
} while (hasMoreVlq(reader, length));
|
|
490
490
|
}
|
|
@@ -505,14 +505,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
505
505
|
const scope = scopes[index];
|
|
506
506
|
const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;
|
|
507
507
|
if (index > 0) writer.write(comma);
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
encodeInteger(writer,
|
|
508
|
+
encodeInteger(writer, encodeSign(startLine - state[0]));
|
|
509
|
+
state[0] = startLine;
|
|
510
|
+
encodeInteger(writer, encodeSign(startColumn));
|
|
511
|
+
encodeInteger(writer, encodeSign(kind));
|
|
511
512
|
const fields = scope.length === 6 ? 1 : 0;
|
|
512
|
-
encodeInteger(writer, fields
|
|
513
|
-
if (scope.length === 6) encodeInteger(writer, scope[5]
|
|
513
|
+
encodeInteger(writer, encodeSign(fields));
|
|
514
|
+
if (scope.length === 6) encodeInteger(writer, encodeSign(scope[5]));
|
|
514
515
|
for (const v of vars) {
|
|
515
|
-
encodeInteger(writer, v
|
|
516
|
+
encodeInteger(writer, encodeSign(v));
|
|
516
517
|
}
|
|
517
518
|
for (index++; index < scopes.length; ) {
|
|
518
519
|
const next = scopes[index];
|
|
@@ -523,8 +524,9 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
523
524
|
index = _encodeOriginalScopes(scopes, index, writer, state);
|
|
524
525
|
}
|
|
525
526
|
writer.write(comma);
|
|
526
|
-
|
|
527
|
-
|
|
527
|
+
encodeInteger(writer, encodeSign(endLine - state[0]));
|
|
528
|
+
state[0] = endLine;
|
|
529
|
+
encodeInteger(writer, encodeSign(endColumn));
|
|
528
530
|
return index;
|
|
529
531
|
}
|
|
530
532
|
function decodeGeneratedRanges(input) {
|
|
@@ -544,14 +546,14 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
544
546
|
const semi = reader.indexOf(";");
|
|
545
547
|
let genColumn = 0;
|
|
546
548
|
for (; reader.pos < semi; reader.pos++) {
|
|
547
|
-
genColumn
|
|
549
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
548
550
|
if (!hasMoreVlq(reader, semi)) {
|
|
549
551
|
const last = stack.pop();
|
|
550
552
|
last[2] = genLine;
|
|
551
553
|
last[3] = genColumn;
|
|
552
554
|
continue;
|
|
553
555
|
}
|
|
554
|
-
const fields = decodeInteger(reader
|
|
556
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
555
557
|
const hasDefinition = fields & 1;
|
|
556
558
|
const hasCallsite = fields & 2;
|
|
557
559
|
const hasScope = fields & 4;
|
|
@@ -559,11 +561,8 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
559
561
|
let bindings = EMPTY;
|
|
560
562
|
let range;
|
|
561
563
|
if (hasDefinition) {
|
|
562
|
-
const defSourcesIndex = decodeInteger(reader
|
|
563
|
-
definitionScopeIndex = decodeInteger(
|
|
564
|
-
reader,
|
|
565
|
-
definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0
|
|
566
|
-
);
|
|
564
|
+
const defSourcesIndex = definitionSourcesIndex + decodeSign(decodeInteger(reader));
|
|
565
|
+
definitionScopeIndex = decodeSign(decodeInteger(reader)) + (definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0);
|
|
567
566
|
definitionSourcesIndex = defSourcesIndex;
|
|
568
567
|
range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];
|
|
569
568
|
} else {
|
|
@@ -573,13 +572,10 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
573
572
|
if (hasCallsite) {
|
|
574
573
|
const prevCsi = callsiteSourcesIndex;
|
|
575
574
|
const prevLine = callsiteLine;
|
|
576
|
-
callsiteSourcesIndex
|
|
575
|
+
callsiteSourcesIndex += decodeSign(decodeInteger(reader));
|
|
577
576
|
const sameSource = prevCsi === callsiteSourcesIndex;
|
|
578
|
-
callsiteLine =
|
|
579
|
-
callsiteColumn = decodeInteger(
|
|
580
|
-
reader,
|
|
581
|
-
sameSource && prevLine === callsiteLine ? callsiteColumn : 0
|
|
582
|
-
);
|
|
577
|
+
callsiteLine = (sameSource ? callsiteLine : 0) + decodeSign(decodeInteger(reader));
|
|
578
|
+
callsiteColumn = (sameSource && prevLine === callsiteLine ? callsiteColumn : 0) + decodeSign(decodeInteger(reader));
|
|
583
579
|
callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];
|
|
584
580
|
}
|
|
585
581
|
range.callsite = callsite;
|
|
@@ -588,15 +584,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
588
584
|
do {
|
|
589
585
|
bindingLine = genLine;
|
|
590
586
|
bindingColumn = genColumn;
|
|
591
|
-
const expressionsCount = decodeInteger(reader
|
|
587
|
+
const expressionsCount = decodeSign(decodeInteger(reader));
|
|
592
588
|
let expressionRanges;
|
|
593
589
|
if (expressionsCount < -1) {
|
|
594
|
-
expressionRanges = [[decodeInteger(reader
|
|
590
|
+
expressionRanges = [[decodeSign(decodeInteger(reader))]];
|
|
595
591
|
for (let i = -1; i > expressionsCount; i--) {
|
|
596
592
|
const prevBl = bindingLine;
|
|
597
|
-
bindingLine
|
|
598
|
-
bindingColumn =
|
|
599
|
-
const expression = decodeInteger(reader
|
|
593
|
+
bindingLine += decodeSign(decodeInteger(reader));
|
|
594
|
+
bindingColumn = (bindingLine === prevBl ? bindingColumn : 0) + decodeSign(decodeInteger(reader));
|
|
595
|
+
const expression = decodeSign(decodeInteger(reader));
|
|
600
596
|
expressionRanges.push([expression, bindingLine, bindingColumn]);
|
|
601
597
|
}
|
|
602
598
|
} else {
|
|
@@ -640,16 +636,19 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
640
636
|
} else if (index > 0) {
|
|
641
637
|
writer.write(comma);
|
|
642
638
|
}
|
|
643
|
-
|
|
639
|
+
encodeInteger(writer, encodeSign(range[1] - state[1]));
|
|
640
|
+
state[1] = range[1];
|
|
644
641
|
const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
|
|
645
|
-
encodeInteger(writer, fields
|
|
642
|
+
encodeInteger(writer, encodeSign(fields));
|
|
646
643
|
if (range.length === 6) {
|
|
647
644
|
const { 4: sourcesIndex, 5: scopesIndex } = range;
|
|
648
645
|
if (sourcesIndex !== state[2]) {
|
|
649
646
|
state[3] = 0;
|
|
650
647
|
}
|
|
651
|
-
|
|
652
|
-
state[
|
|
648
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[2]));
|
|
649
|
+
state[2] = sourcesIndex;
|
|
650
|
+
encodeInteger(writer, encodeSign(scopesIndex - state[3]));
|
|
651
|
+
state[3] = scopesIndex;
|
|
653
652
|
}
|
|
654
653
|
if (callsite) {
|
|
655
654
|
const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;
|
|
@@ -659,22 +658,27 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
659
658
|
} else if (callLine !== state[5]) {
|
|
660
659
|
state[6] = 0;
|
|
661
660
|
}
|
|
662
|
-
|
|
663
|
-
state[
|
|
664
|
-
|
|
661
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[4]));
|
|
662
|
+
state[4] = sourcesIndex;
|
|
663
|
+
encodeInteger(writer, encodeSign(callLine - state[5]));
|
|
664
|
+
state[5] = callLine;
|
|
665
|
+
encodeInteger(writer, encodeSign(callColumn - state[6]));
|
|
666
|
+
state[6] = callColumn;
|
|
665
667
|
}
|
|
666
668
|
if (bindings) {
|
|
667
669
|
for (const binding of bindings) {
|
|
668
|
-
if (binding.length > 1) encodeInteger(writer, -binding.length
|
|
670
|
+
if (binding.length > 1) encodeInteger(writer, encodeSign(-binding.length));
|
|
669
671
|
const expression = binding[0][0];
|
|
670
|
-
encodeInteger(writer, expression
|
|
672
|
+
encodeInteger(writer, encodeSign(expression));
|
|
671
673
|
let bindingStartLine = startLine;
|
|
672
674
|
let bindingStartColumn = startColumn;
|
|
673
675
|
for (let i = 1; i < binding.length; i++) {
|
|
674
676
|
const expRange = binding[i];
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
encodeInteger(writer, expRange[
|
|
677
|
+
encodeInteger(writer, encodeSign(expRange[1] - bindingStartLine));
|
|
678
|
+
bindingStartLine = expRange[1];
|
|
679
|
+
encodeInteger(writer, encodeSign(expRange[2] - bindingStartColumn));
|
|
680
|
+
bindingStartColumn = expRange[2];
|
|
681
|
+
encodeInteger(writer, encodeSign(expRange[0]));
|
|
678
682
|
}
|
|
679
683
|
}
|
|
680
684
|
}
|
|
@@ -693,7 +697,8 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
693
697
|
} else {
|
|
694
698
|
writer.write(comma);
|
|
695
699
|
}
|
|
696
|
-
|
|
700
|
+
encodeInteger(writer, encodeSign(endColumn - state[1]));
|
|
701
|
+
state[1] = endColumn;
|
|
697
702
|
return index;
|
|
698
703
|
}
|
|
699
704
|
function catchupLine(writer, lastLine, line) {
|
|
@@ -701,6 +706,38 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
701
706
|
writer.write(semicolon);
|
|
702
707
|
} while (++lastLine < line);
|
|
703
708
|
}
|
|
709
|
+
function decodeRangeMappings(input) {
|
|
710
|
+
const { length } = input;
|
|
711
|
+
const reader = new StringReader(input);
|
|
712
|
+
const rangeMappings = [];
|
|
713
|
+
do {
|
|
714
|
+
const semi = reader.indexOf(";");
|
|
715
|
+
const indices = [];
|
|
716
|
+
let index = 0;
|
|
717
|
+
while (reader.pos < semi) {
|
|
718
|
+
index += decodeInteger(reader);
|
|
719
|
+
indices.push(index);
|
|
720
|
+
}
|
|
721
|
+
rangeMappings.push(indices);
|
|
722
|
+
reader.pos = semi + 1;
|
|
723
|
+
} while (reader.pos <= length);
|
|
724
|
+
return rangeMappings;
|
|
725
|
+
}
|
|
726
|
+
function encodeRangeMappings(decoded) {
|
|
727
|
+
if (decoded.length === 0) return "";
|
|
728
|
+
const writer = new StringWriter();
|
|
729
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
730
|
+
const indices = decoded[i];
|
|
731
|
+
if (i > 0) writer.write(semicolon);
|
|
732
|
+
let index = 0;
|
|
733
|
+
for (let j = 0; j < indices.length; j++) {
|
|
734
|
+
const offset = indices[j];
|
|
735
|
+
encodeInteger(writer, offset - index);
|
|
736
|
+
index = offset;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
return writer.flush();
|
|
740
|
+
}
|
|
704
741
|
function decode(mappings) {
|
|
705
742
|
const { length } = mappings;
|
|
706
743
|
const reader = new StringReader(mappings);
|
|
@@ -718,15 +755,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
718
755
|
genColumn = 0;
|
|
719
756
|
while (reader.pos < semi) {
|
|
720
757
|
let seg;
|
|
721
|
-
genColumn
|
|
758
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
722
759
|
if (genColumn < lastCol) sorted = false;
|
|
723
760
|
lastCol = genColumn;
|
|
724
761
|
if (hasMoreVlq(reader, semi)) {
|
|
725
|
-
sourcesIndex
|
|
726
|
-
sourceLine
|
|
727
|
-
sourceColumn
|
|
762
|
+
sourcesIndex += decodeSign(decodeInteger(reader));
|
|
763
|
+
sourceLine += decodeSign(decodeInteger(reader));
|
|
764
|
+
sourceColumn += decodeSign(decodeInteger(reader));
|
|
728
765
|
if (hasMoreVlq(reader, semi)) {
|
|
729
|
-
namesIndex
|
|
766
|
+
namesIndex += decodeSign(decodeInteger(reader));
|
|
730
767
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
|
|
731
768
|
} else {
|
|
732
769
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
|
|
@@ -763,13 +800,18 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
763
800
|
for (let j = 0; j < line.length; j++) {
|
|
764
801
|
const segment = line[j];
|
|
765
802
|
if (j > 0) writer.write(comma);
|
|
766
|
-
|
|
803
|
+
encodeInteger(writer, encodeSign(segment[0] - genColumn));
|
|
804
|
+
genColumn = segment[0];
|
|
767
805
|
if (segment.length === 1) continue;
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
806
|
+
encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
|
|
807
|
+
encodeInteger(writer, encodeSign(segment[2] - sourceLine));
|
|
808
|
+
encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
|
|
809
|
+
sourcesIndex = segment[1];
|
|
810
|
+
sourceLine = segment[2];
|
|
811
|
+
sourceColumn = segment[3];
|
|
771
812
|
if (segment.length === 4) continue;
|
|
772
|
-
|
|
813
|
+
encodeInteger(writer, encodeSign(segment[4] - namesIndex));
|
|
814
|
+
namesIndex = segment[4];
|
|
773
815
|
}
|
|
774
816
|
}
|
|
775
817
|
return writer.flush();
|
|
@@ -226813,9 +226855,9 @@ var require_lodash = __commonJS({
|
|
|
226813
226855
|
"use strict";
|
|
226814
226856
|
(function() {
|
|
226815
226857
|
var undefined2;
|
|
226816
|
-
var VERSION = "4.
|
|
226858
|
+
var VERSION = "4.18.1";
|
|
226817
226859
|
var LARGE_ARRAY_SIZE = 200;
|
|
226818
|
-
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT2 = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
|
|
226860
|
+
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT2 = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`", INVALID_TEMPL_IMPORTS_ERROR_TEXT = "Invalid `imports` option passed into `_.template`";
|
|
226819
226861
|
var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
|
|
226820
226862
|
var MAX_MEMOIZE_SIZE2 = 500;
|
|
226821
226863
|
var PLACEHOLDER = "__lodash_placeholder__";
|
|
@@ -228741,8 +228783,21 @@ var require_lodash = __commonJS({
|
|
|
228741
228783
|
}
|
|
228742
228784
|
function baseUnset(object, path) {
|
|
228743
228785
|
path = castPath2(path, object);
|
|
228744
|
-
|
|
228745
|
-
|
|
228786
|
+
var index = -1, length = path.length;
|
|
228787
|
+
if (!length) {
|
|
228788
|
+
return true;
|
|
228789
|
+
}
|
|
228790
|
+
while (++index < length) {
|
|
228791
|
+
var key = toKey2(path[index]);
|
|
228792
|
+
if (key === "__proto__" && !hasOwnProperty6.call(object, "__proto__")) {
|
|
228793
|
+
return false;
|
|
228794
|
+
}
|
|
228795
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) {
|
|
228796
|
+
return false;
|
|
228797
|
+
}
|
|
228798
|
+
}
|
|
228799
|
+
var obj = parent(object, path);
|
|
228800
|
+
return obj == null || delete obj[toKey2(last(path))];
|
|
228746
228801
|
}
|
|
228747
228802
|
function baseUpdate(object, path, updater, customizer) {
|
|
228748
228803
|
return baseSet2(object, path, updater(baseGet(object, path)), customizer);
|
|
@@ -230069,7 +230124,7 @@ var require_lodash = __commonJS({
|
|
|
230069
230124
|
var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
230070
230125
|
while (++index < length) {
|
|
230071
230126
|
var pair = pairs[index];
|
|
230072
|
-
result2
|
|
230127
|
+
baseAssignValue2(result2, pair[0], pair[1]);
|
|
230073
230128
|
}
|
|
230074
230129
|
return result2;
|
|
230075
230130
|
}
|
|
@@ -231453,8 +231508,13 @@ var require_lodash = __commonJS({
|
|
|
231453
231508
|
options = undefined2;
|
|
231454
231509
|
}
|
|
231455
231510
|
string = toString2(string);
|
|
231456
|
-
options =
|
|
231457
|
-
var imports =
|
|
231511
|
+
options = assignWith({}, options, settings, customDefaultsAssignIn);
|
|
231512
|
+
var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
231513
|
+
arrayEach(importsKeys, function(key) {
|
|
231514
|
+
if (reForbiddenIdentifierChars.test(key)) {
|
|
231515
|
+
throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
|
|
231516
|
+
}
|
|
231517
|
+
});
|
|
231458
231518
|
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
231459
231519
|
var reDelimiters = RegExp2(
|
|
231460
231520
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
@@ -454241,7 +454301,7 @@ var init_cli_spinners = __esm({
|
|
|
454241
454301
|
});
|
|
454242
454302
|
|
|
454243
454303
|
// node_modules/yoctocolors/base.js
|
|
454244
|
-
var import_node_tty2, hasColors, format, reset, bold, dim, italic, underline, overline, inverse, hidden, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright;
|
|
454304
|
+
var import_node_tty2, hasColors, format, reset, bold, dim, italic, underline, underlineDouble, underlineCurly, underlineDotted, underlineDashed, overline, inverse, hidden, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright, underlineBlack, underlineRed, underlineGreen, underlineYellow, underlineBlue, underlineMagenta, underlineCyan, underlineWhite, underlineGray, underlineRedBright, underlineGreenBright, underlineYellowBright, underlineBlueBright, underlineMagentaBright, underlineCyanBright, underlineWhiteBright;
|
|
454245
454305
|
var init_base = __esm({
|
|
454246
454306
|
"node_modules/yoctocolors/base.js"() {
|
|
454247
454307
|
"use strict";
|
|
@@ -454277,6 +454337,10 @@ var init_base = __esm({
|
|
|
454277
454337
|
dim = format(2, 22);
|
|
454278
454338
|
italic = format(3, 23);
|
|
454279
454339
|
underline = format(4, 24);
|
|
454340
|
+
underlineDouble = format("4:2", 24);
|
|
454341
|
+
underlineCurly = format("4:3", 24);
|
|
454342
|
+
underlineDotted = format("4:4", 24);
|
|
454343
|
+
underlineDashed = format("4:5", 24);
|
|
454280
454344
|
overline = format(53, 55);
|
|
454281
454345
|
inverse = format(7, 27);
|
|
454282
454346
|
hidden = format(8, 28);
|
|
@@ -454313,6 +454377,22 @@ var init_base = __esm({
|
|
|
454313
454377
|
bgMagentaBright = format(105, 49);
|
|
454314
454378
|
bgCyanBright = format(106, 49);
|
|
454315
454379
|
bgWhiteBright = format(107, 49);
|
|
454380
|
+
underlineBlack = format("58;5;0", 59);
|
|
454381
|
+
underlineRed = format("58;5;1", 59);
|
|
454382
|
+
underlineGreen = format("58;5;2", 59);
|
|
454383
|
+
underlineYellow = format("58;5;3", 59);
|
|
454384
|
+
underlineBlue = format("58;5;4", 59);
|
|
454385
|
+
underlineMagenta = format("58;5;5", 59);
|
|
454386
|
+
underlineCyan = format("58;5;6", 59);
|
|
454387
|
+
underlineWhite = format("58;5;7", 59);
|
|
454388
|
+
underlineGray = format("58;5;8", 59);
|
|
454389
|
+
underlineRedBright = format("58;5;9", 59);
|
|
454390
|
+
underlineGreenBright = format("58;5;10", 59);
|
|
454391
|
+
underlineYellowBright = format("58;5;11", 59);
|
|
454392
|
+
underlineBlueBright = format("58;5;12", 59);
|
|
454393
|
+
underlineMagentaBright = format("58;5;13", 59);
|
|
454394
|
+
underlineCyanBright = format("58;5;14", 59);
|
|
454395
|
+
underlineWhiteBright = format("58;5;15", 59);
|
|
454316
454396
|
}
|
|
454317
454397
|
});
|
|
454318
454398
|
|
|
@@ -454375,7 +454455,7 @@ var init_log_symbols = __esm({
|
|
|
454375
454455
|
// node_modules/ora/node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
|
|
454376
454456
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
454377
454457
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
454378
|
-
const osc = `(?:\\u001B\\][\\
|
|
454458
|
+
const osc = `(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*${ST})`;
|
|
454379
454459
|
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
454380
454460
|
const pattern = `${osc}|${csi}`;
|
|
454381
454461
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
@@ -454391,6 +454471,9 @@ function stripAnsi(string) {
|
|
|
454391
454471
|
if (typeof string !== "string") {
|
|
454392
454472
|
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
454393
454473
|
}
|
|
454474
|
+
if (!string.includes("\x1B") && !string.includes("\x9B")) {
|
|
454475
|
+
return string;
|
|
454476
|
+
}
|
|
454394
454477
|
return string.replace(regex, "");
|
|
454395
454478
|
}
|
|
454396
454479
|
var regex;
|
|
@@ -454402,23 +454485,27 @@ var init_strip_ansi = __esm({
|
|
|
454402
454485
|
}
|
|
454403
454486
|
});
|
|
454404
454487
|
|
|
454405
|
-
// node_modules/
|
|
454406
|
-
var ambiguousRanges, fullwidthRanges,
|
|
454488
|
+
// node_modules/get-east-asian-width/lookup-data.js
|
|
454489
|
+
var ambiguousMinimalCodePoint, ambiguousMaximumCodePoint, ambiguousRanges, fullwidthMinimalCodePoint, fullwidthMaximumCodePoint, fullwidthRanges, wideMinimalCodePoint, wideMaximumCodePoint, wideRanges;
|
|
454407
454490
|
var init_lookup_data = __esm({
|
|
454408
|
-
"node_modules/
|
|
454491
|
+
"node_modules/get-east-asian-width/lookup-data.js"() {
|
|
454409
454492
|
"use strict";
|
|
454493
|
+
ambiguousMinimalCodePoint = 161;
|
|
454494
|
+
ambiguousMaximumCodePoint = 1114109;
|
|
454410
454495
|
ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
454496
|
+
fullwidthMinimalCodePoint = 12288;
|
|
454497
|
+
fullwidthMaximumCodePoint = 65510;
|
|
454411
454498
|
fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
454412
|
-
|
|
454413
|
-
|
|
454414
|
-
wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208,
|
|
454499
|
+
wideMinimalCodePoint = 4352;
|
|
454500
|
+
wideMaximumCodePoint = 262141;
|
|
454501
|
+
wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101594, 101631, 101664, 101760, 101874, 101888, 102801, 102816, 102866, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110888, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110952, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127406, 127406, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128729, 128732, 128735, 128747, 128748, 128756, 128764, 128986, 128986, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129734, 129736, 129736, 129740, 129757, 129759, 129771, 129775, 129786, 131072, 196605, 196608, 262141];
|
|
454415
454502
|
}
|
|
454416
454503
|
});
|
|
454417
454504
|
|
|
454418
|
-
// node_modules/
|
|
454505
|
+
// node_modules/get-east-asian-width/utilities.js
|
|
454419
454506
|
var isInRange;
|
|
454420
454507
|
var init_utilities2 = __esm({
|
|
454421
|
-
"node_modules/
|
|
454508
|
+
"node_modules/get-east-asian-width/utilities.js"() {
|
|
454422
454509
|
"use strict";
|
|
454423
454510
|
isInRange = (ranges, codePoint) => {
|
|
454424
454511
|
let low = 0;
|
|
@@ -454439,7 +454526,7 @@ var init_utilities2 = __esm({
|
|
|
454439
454526
|
}
|
|
454440
454527
|
});
|
|
454441
454528
|
|
|
454442
|
-
// node_modules/
|
|
454529
|
+
// node_modules/get-east-asian-width/lookup.js
|
|
454443
454530
|
function findWideFastPathRange(ranges) {
|
|
454444
454531
|
let fastPathStart = ranges[0];
|
|
454445
454532
|
let fastPathEnd = ranges[1];
|
|
@@ -454456,32 +454543,22 @@ function findWideFastPathRange(ranges) {
|
|
|
454456
454543
|
}
|
|
454457
454544
|
return [fastPathStart, fastPathEnd];
|
|
454458
454545
|
}
|
|
454459
|
-
var
|
|
454546
|
+
var commonCjkCodePoint, wideFastPathStart, wideFastPathEnd, isAmbiguous, isFullwidth, isWide;
|
|
454460
454547
|
var init_lookup = __esm({
|
|
454461
|
-
"node_modules/
|
|
454548
|
+
"node_modules/get-east-asian-width/lookup.js"() {
|
|
454462
454549
|
"use strict";
|
|
454463
454550
|
init_lookup_data();
|
|
454464
454551
|
init_utilities2();
|
|
454465
|
-
minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
454466
|
-
maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
454467
|
-
minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
454468
|
-
maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
454469
|
-
minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
454470
|
-
maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
454471
|
-
minimumNarrowCodePoint = narrowRanges[0];
|
|
454472
|
-
maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
454473
|
-
minimumWideCodePoint = wideRanges[0];
|
|
454474
|
-
maximumWideCodePoint = wideRanges.at(-1);
|
|
454475
454552
|
commonCjkCodePoint = 19968;
|
|
454476
|
-
[wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
454553
|
+
[wideFastPathStart, wideFastPathEnd] = /* @__PURE__ */ findWideFastPathRange(wideRanges);
|
|
454477
454554
|
isAmbiguous = (codePoint) => {
|
|
454478
|
-
if (codePoint <
|
|
454555
|
+
if (codePoint < ambiguousMinimalCodePoint || codePoint > ambiguousMaximumCodePoint) {
|
|
454479
454556
|
return false;
|
|
454480
454557
|
}
|
|
454481
454558
|
return isInRange(ambiguousRanges, codePoint);
|
|
454482
454559
|
};
|
|
454483
|
-
|
|
454484
|
-
if (codePoint <
|
|
454560
|
+
isFullwidth = (codePoint) => {
|
|
454561
|
+
if (codePoint < fullwidthMinimalCodePoint || codePoint > fullwidthMaximumCodePoint) {
|
|
454485
454562
|
return false;
|
|
454486
454563
|
}
|
|
454487
454564
|
return isInRange(fullwidthRanges, codePoint);
|
|
@@ -454490,7 +454567,7 @@ var init_lookup = __esm({
|
|
|
454490
454567
|
if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
|
|
454491
454568
|
return true;
|
|
454492
454569
|
}
|
|
454493
|
-
if (codePoint <
|
|
454570
|
+
if (codePoint < wideMinimalCodePoint || codePoint > wideMaximumCodePoint) {
|
|
454494
454571
|
return false;
|
|
454495
454572
|
}
|
|
454496
454573
|
return isInRange(wideRanges, codePoint);
|
|
@@ -454498,7 +454575,7 @@ var init_lookup = __esm({
|
|
|
454498
454575
|
}
|
|
454499
454576
|
});
|
|
454500
454577
|
|
|
454501
|
-
// node_modules/
|
|
454578
|
+
// node_modules/get-east-asian-width/index.js
|
|
454502
454579
|
function validate(codePoint) {
|
|
454503
454580
|
if (!Number.isSafeInteger(codePoint)) {
|
|
454504
454581
|
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
@@ -454506,13 +454583,13 @@ function validate(codePoint) {
|
|
|
454506
454583
|
}
|
|
454507
454584
|
function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
454508
454585
|
validate(codePoint);
|
|
454509
|
-
if (
|
|
454586
|
+
if (isFullwidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
|
|
454510
454587
|
return 2;
|
|
454511
454588
|
}
|
|
454512
454589
|
return 1;
|
|
454513
454590
|
}
|
|
454514
454591
|
var init_get_east_asian_width = __esm({
|
|
454515
|
-
"node_modules/
|
|
454592
|
+
"node_modules/get-east-asian-width/index.js"() {
|
|
454516
454593
|
"use strict";
|
|
454517
454594
|
init_lookup();
|
|
454518
454595
|
}
|
|
@@ -454533,18 +454610,63 @@ function isDoubleWidthNonRgiEmojiSequence(segment) {
|
|
|
454533
454610
|
return false;
|
|
454534
454611
|
}
|
|
454535
454612
|
function baseVisible(segment) {
|
|
454536
|
-
|
|
454613
|
+
const index = segment.search(visibleCharacterRegex);
|
|
454614
|
+
return index === -1 ? void 0 : segment.slice(index);
|
|
454537
454615
|
}
|
|
454538
|
-
function
|
|
454539
|
-
return
|
|
454616
|
+
function isHangulLeadingJamo(codePoint) {
|
|
454617
|
+
return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
|
|
454540
454618
|
}
|
|
454541
|
-
function
|
|
454542
|
-
|
|
454543
|
-
|
|
454544
|
-
|
|
454545
|
-
|
|
454546
|
-
|
|
454619
|
+
function isHangulVowelJamo(codePoint) {
|
|
454620
|
+
return codePoint >= 4448 && codePoint <= 4519 || codePoint >= 55216 && codePoint <= 55238;
|
|
454621
|
+
}
|
|
454622
|
+
function isHangulTrailingJamo(codePoint) {
|
|
454623
|
+
return codePoint >= 4520 && codePoint <= 4607 || codePoint >= 55243 && codePoint <= 55291;
|
|
454624
|
+
}
|
|
454625
|
+
function isHangulJamo(codePoint) {
|
|
454626
|
+
return isHangulLeadingJamo(codePoint) || isHangulVowelJamo(codePoint) || isHangulTrailingJamo(codePoint);
|
|
454627
|
+
}
|
|
454628
|
+
function hangulClusterWidth(visibleSegment, eastAsianWidthOptions) {
|
|
454629
|
+
const codePoints = [];
|
|
454630
|
+
for (const character of visibleSegment) {
|
|
454631
|
+
if (!visibleCharacterRegex.test(character)) {
|
|
454632
|
+
continue;
|
|
454633
|
+
}
|
|
454634
|
+
codePoints.push(character.codePointAt(0));
|
|
454635
|
+
}
|
|
454636
|
+
if (codePoints.length === 0) {
|
|
454637
|
+
return void 0;
|
|
454638
|
+
}
|
|
454639
|
+
let width = 0;
|
|
454640
|
+
for (let index = 0; index < codePoints.length; index++) {
|
|
454641
|
+
const codePoint = codePoints[index];
|
|
454642
|
+
if (!isHangulJamo(codePoint)) {
|
|
454643
|
+
if (width === 0) {
|
|
454644
|
+
return void 0;
|
|
454645
|
+
}
|
|
454646
|
+
for (let remaining = index; remaining < codePoints.length; remaining++) {
|
|
454647
|
+
width += eastAsianWidth(codePoints[remaining], eastAsianWidthOptions);
|
|
454547
454648
|
}
|
|
454649
|
+
return width;
|
|
454650
|
+
}
|
|
454651
|
+
if (isHangulLeadingJamo(codePoint) && isHangulVowelJamo(codePoints[index + 1])) {
|
|
454652
|
+
width += 2;
|
|
454653
|
+
index += isHangulTrailingJamo(codePoints[index + 2]) ? 2 : 1;
|
|
454654
|
+
continue;
|
|
454655
|
+
}
|
|
454656
|
+
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
454657
|
+
}
|
|
454658
|
+
return width;
|
|
454659
|
+
}
|
|
454660
|
+
function trailingWidth(visibleSegment, eastAsianWidthOptions) {
|
|
454661
|
+
let extra = 0;
|
|
454662
|
+
let first = true;
|
|
454663
|
+
for (const character of visibleSegment) {
|
|
454664
|
+
if (first) {
|
|
454665
|
+
first = false;
|
|
454666
|
+
continue;
|
|
454667
|
+
}
|
|
454668
|
+
if (spacingMarkRegex.test(character) || character >= "\uFF00" && character <= "\uFFEF") {
|
|
454669
|
+
extra += eastAsianWidth(character.codePointAt(0), eastAsianWidthOptions);
|
|
454548
454670
|
}
|
|
454549
454671
|
}
|
|
454550
454672
|
return extra;
|
|
@@ -454570,28 +454692,34 @@ function stringWidth(input, options = {}) {
|
|
|
454570
454692
|
let width = 0;
|
|
454571
454693
|
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
454572
454694
|
for (const { segment } of segmenter.segment(string)) {
|
|
454573
|
-
|
|
454695
|
+
const visibleSegment = baseVisible(segment);
|
|
454696
|
+
if (visibleSegment === void 0) {
|
|
454574
454697
|
continue;
|
|
454575
454698
|
}
|
|
454576
454699
|
if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) {
|
|
454577
454700
|
width += 2;
|
|
454578
454701
|
continue;
|
|
454579
454702
|
}
|
|
454580
|
-
const
|
|
454703
|
+
const hangulWidth = hangulClusterWidth(visibleSegment, eastAsianWidthOptions);
|
|
454704
|
+
if (hangulWidth !== void 0) {
|
|
454705
|
+
width += hangulWidth;
|
|
454706
|
+
continue;
|
|
454707
|
+
}
|
|
454708
|
+
const codePoint = visibleSegment.codePointAt(0);
|
|
454581
454709
|
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
454582
|
-
width +=
|
|
454710
|
+
width += trailingWidth(visibleSegment, eastAsianWidthOptions);
|
|
454583
454711
|
}
|
|
454584
454712
|
return width;
|
|
454585
454713
|
}
|
|
454586
|
-
var segmenter,
|
|
454714
|
+
var segmenter, visibleCharacterRegex, spacingMarkRegex, rgiEmojiRegex, unqualifiedKeycapRegex, extendedPictographicRegex;
|
|
454587
454715
|
var init_string_width = __esm({
|
|
454588
454716
|
"node_modules/ora/node_modules/string-width/index.js"() {
|
|
454589
454717
|
"use strict";
|
|
454590
454718
|
init_strip_ansi();
|
|
454591
454719
|
init_get_east_asian_width();
|
|
454592
454720
|
segmenter = new Intl.Segmenter();
|
|
454593
|
-
|
|
454594
|
-
|
|
454721
|
+
visibleCharacterRegex = /[^\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Nonspacing_Mark}\p{Enclosing_Mark}\p{Surrogate}]/v;
|
|
454722
|
+
spacingMarkRegex = /\p{Spacing_Mark}/v;
|
|
454595
454723
|
rgiEmojiRegex = /^\p{RGI_Emoji}$/v;
|
|
454596
454724
|
unqualifiedKeycapRegex = /^[\d#*]\u20E3$/;
|
|
454597
454725
|
extendedPictographicRegex = /\p{Extended_Pictographic}/gu;
|