@ng-atomic/schematics 20.76.0 → 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/_utilities/index.js
CHANGED
|
@@ -213096,9 +213096,9 @@ var require_lodash = __commonJS({
|
|
|
213096
213096
|
"use strict";
|
|
213097
213097
|
(function() {
|
|
213098
213098
|
var undefined2;
|
|
213099
|
-
var VERSION = "4.
|
|
213099
|
+
var VERSION = "4.18.1";
|
|
213100
213100
|
var LARGE_ARRAY_SIZE = 200;
|
|
213101
|
-
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`";
|
|
213101
|
+
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`";
|
|
213102
213102
|
var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
|
|
213103
213103
|
var MAX_MEMOIZE_SIZE2 = 500;
|
|
213104
213104
|
var PLACEHOLDER = "__lodash_placeholder__";
|
|
@@ -215024,8 +215024,21 @@ var require_lodash = __commonJS({
|
|
|
215024
215024
|
}
|
|
215025
215025
|
function baseUnset(object, path) {
|
|
215026
215026
|
path = castPath2(path, object);
|
|
215027
|
-
|
|
215028
|
-
|
|
215027
|
+
var index = -1, length = path.length;
|
|
215028
|
+
if (!length) {
|
|
215029
|
+
return true;
|
|
215030
|
+
}
|
|
215031
|
+
while (++index < length) {
|
|
215032
|
+
var key = toKey2(path[index]);
|
|
215033
|
+
if (key === "__proto__" && !hasOwnProperty6.call(object, "__proto__")) {
|
|
215034
|
+
return false;
|
|
215035
|
+
}
|
|
215036
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) {
|
|
215037
|
+
return false;
|
|
215038
|
+
}
|
|
215039
|
+
}
|
|
215040
|
+
var obj = parent(object, path);
|
|
215041
|
+
return obj == null || delete obj[toKey2(last(path))];
|
|
215029
215042
|
}
|
|
215030
215043
|
function baseUpdate(object, path, updater, customizer) {
|
|
215031
215044
|
return baseSet2(object, path, updater(baseGet(object, path)), customizer);
|
|
@@ -216352,7 +216365,7 @@ var require_lodash = __commonJS({
|
|
|
216352
216365
|
var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
216353
216366
|
while (++index < length) {
|
|
216354
216367
|
var pair = pairs[index];
|
|
216355
|
-
result2
|
|
216368
|
+
baseAssignValue2(result2, pair[0], pair[1]);
|
|
216356
216369
|
}
|
|
216357
216370
|
return result2;
|
|
216358
216371
|
}
|
|
@@ -217736,8 +217749,13 @@ var require_lodash = __commonJS({
|
|
|
217736
217749
|
options = undefined2;
|
|
217737
217750
|
}
|
|
217738
217751
|
string = toString2(string);
|
|
217739
|
-
options =
|
|
217740
|
-
var imports =
|
|
217752
|
+
options = assignWith({}, options, settings, customDefaultsAssignIn);
|
|
217753
|
+
var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
217754
|
+
arrayEach(importsKeys, function(key) {
|
|
217755
|
+
if (reForbiddenIdentifierChars.test(key)) {
|
|
217756
|
+
throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
|
|
217757
|
+
}
|
|
217758
|
+
});
|
|
217741
217759
|
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
217742
217760
|
var reDelimiters = RegExp2(
|
|
217743
217761
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
@@ -447597,9 +447615,11 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447597
447615
|
decode: () => decode,
|
|
447598
447616
|
decodeGeneratedRanges: () => decodeGeneratedRanges,
|
|
447599
447617
|
decodeOriginalScopes: () => decodeOriginalScopes,
|
|
447618
|
+
decodeRangeMappings: () => decodeRangeMappings,
|
|
447600
447619
|
encode: () => encode,
|
|
447601
447620
|
encodeGeneratedRanges: () => encodeGeneratedRanges,
|
|
447602
|
-
encodeOriginalScopes: () => encodeOriginalScopes
|
|
447621
|
+
encodeOriginalScopes: () => encodeOriginalScopes,
|
|
447622
|
+
encodeRangeMappings: () => encodeRangeMappings
|
|
447603
447623
|
});
|
|
447604
447624
|
module3.exports = __toCommonJS2(sourcemap_codec_exports);
|
|
447605
447625
|
var comma = ",".charCodeAt(0);
|
|
@@ -447612,7 +447632,7 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447612
447632
|
intToChar[i] = c;
|
|
447613
447633
|
charToInt[c] = i;
|
|
447614
447634
|
}
|
|
447615
|
-
function decodeInteger(reader
|
|
447635
|
+
function decodeInteger(reader) {
|
|
447616
447636
|
let value = 0;
|
|
447617
447637
|
let shift = 0;
|
|
447618
447638
|
let integer = 0;
|
|
@@ -447622,23 +447642,21 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447622
447642
|
value |= (integer & 31) << shift;
|
|
447623
447643
|
shift += 5;
|
|
447624
447644
|
} while (integer & 32);
|
|
447625
|
-
|
|
447626
|
-
|
|
447627
|
-
|
|
447628
|
-
|
|
447629
|
-
}
|
|
447630
|
-
return relative + value;
|
|
447645
|
+
return value;
|
|
447646
|
+
}
|
|
447647
|
+
function decodeSign(num) {
|
|
447648
|
+
return num & 1 ? -2147483648 | -(num >>> 1) : num >>> 1;
|
|
447631
447649
|
}
|
|
447632
|
-
function encodeInteger(builder, num
|
|
447633
|
-
let delta = num - relative;
|
|
447634
|
-
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
447650
|
+
function encodeInteger(builder, num) {
|
|
447635
447651
|
do {
|
|
447636
|
-
let clamped =
|
|
447637
|
-
|
|
447638
|
-
if (
|
|
447652
|
+
let clamped = num & 31;
|
|
447653
|
+
num >>>= 5;
|
|
447654
|
+
if (num > 0) clamped |= 32;
|
|
447639
447655
|
builder.write(intToChar[clamped]);
|
|
447640
|
-
} while (
|
|
447641
|
-
|
|
447656
|
+
} while (num > 0);
|
|
447657
|
+
}
|
|
447658
|
+
function encodeSign(num) {
|
|
447659
|
+
return num < 0 ? -num << 1 | 1 : num << 1;
|
|
447642
447660
|
}
|
|
447643
447661
|
function hasMoreVlq(reader, max) {
|
|
447644
447662
|
if (reader.pos >= max) return false;
|
|
@@ -447703,23 +447721,23 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447703
447721
|
const stack = [];
|
|
447704
447722
|
let line = 0;
|
|
447705
447723
|
for (; reader.pos < length; reader.pos++) {
|
|
447706
|
-
line
|
|
447707
|
-
const column = decodeInteger(reader
|
|
447724
|
+
line += decodeSign(decodeInteger(reader));
|
|
447725
|
+
const column = decodeSign(decodeInteger(reader));
|
|
447708
447726
|
if (!hasMoreVlq(reader, length)) {
|
|
447709
447727
|
const last = stack.pop();
|
|
447710
447728
|
last[2] = line;
|
|
447711
447729
|
last[3] = column;
|
|
447712
447730
|
continue;
|
|
447713
447731
|
}
|
|
447714
|
-
const kind = decodeInteger(reader
|
|
447715
|
-
const fields = decodeInteger(reader
|
|
447732
|
+
const kind = decodeSign(decodeInteger(reader));
|
|
447733
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
447716
447734
|
const hasName = fields & 1;
|
|
447717
|
-
const scope = hasName ? [line, column, 0, 0, kind, decodeInteger(reader
|
|
447735
|
+
const scope = hasName ? [line, column, 0, 0, kind, decodeSign(decodeInteger(reader))] : [line, column, 0, 0, kind];
|
|
447718
447736
|
let vars = EMPTY;
|
|
447719
447737
|
if (hasMoreVlq(reader, length)) {
|
|
447720
447738
|
vars = [];
|
|
447721
447739
|
do {
|
|
447722
|
-
const varsIndex = decodeInteger(reader
|
|
447740
|
+
const varsIndex = decodeSign(decodeInteger(reader));
|
|
447723
447741
|
vars.push(varsIndex);
|
|
447724
447742
|
} while (hasMoreVlq(reader, length));
|
|
447725
447743
|
}
|
|
@@ -447740,14 +447758,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447740
447758
|
const scope = scopes[index];
|
|
447741
447759
|
const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;
|
|
447742
447760
|
if (index > 0) writer.write(comma);
|
|
447743
|
-
|
|
447744
|
-
|
|
447745
|
-
encodeInteger(writer,
|
|
447761
|
+
encodeInteger(writer, encodeSign(startLine - state[0]));
|
|
447762
|
+
state[0] = startLine;
|
|
447763
|
+
encodeInteger(writer, encodeSign(startColumn));
|
|
447764
|
+
encodeInteger(writer, encodeSign(kind));
|
|
447746
447765
|
const fields = scope.length === 6 ? 1 : 0;
|
|
447747
|
-
encodeInteger(writer, fields
|
|
447748
|
-
if (scope.length === 6) encodeInteger(writer, scope[5]
|
|
447766
|
+
encodeInteger(writer, encodeSign(fields));
|
|
447767
|
+
if (scope.length === 6) encodeInteger(writer, encodeSign(scope[5]));
|
|
447749
447768
|
for (const v of vars) {
|
|
447750
|
-
encodeInteger(writer, v
|
|
447769
|
+
encodeInteger(writer, encodeSign(v));
|
|
447751
447770
|
}
|
|
447752
447771
|
for (index++; index < scopes.length; ) {
|
|
447753
447772
|
const next = scopes[index];
|
|
@@ -447758,8 +447777,9 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447758
447777
|
index = _encodeOriginalScopes(scopes, index, writer, state);
|
|
447759
447778
|
}
|
|
447760
447779
|
writer.write(comma);
|
|
447761
|
-
|
|
447762
|
-
|
|
447780
|
+
encodeInteger(writer, encodeSign(endLine - state[0]));
|
|
447781
|
+
state[0] = endLine;
|
|
447782
|
+
encodeInteger(writer, encodeSign(endColumn));
|
|
447763
447783
|
return index;
|
|
447764
447784
|
}
|
|
447765
447785
|
function decodeGeneratedRanges(input) {
|
|
@@ -447779,14 +447799,14 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447779
447799
|
const semi = reader.indexOf(";");
|
|
447780
447800
|
let genColumn = 0;
|
|
447781
447801
|
for (; reader.pos < semi; reader.pos++) {
|
|
447782
|
-
genColumn
|
|
447802
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
447783
447803
|
if (!hasMoreVlq(reader, semi)) {
|
|
447784
447804
|
const last = stack.pop();
|
|
447785
447805
|
last[2] = genLine;
|
|
447786
447806
|
last[3] = genColumn;
|
|
447787
447807
|
continue;
|
|
447788
447808
|
}
|
|
447789
|
-
const fields = decodeInteger(reader
|
|
447809
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
447790
447810
|
const hasDefinition = fields & 1;
|
|
447791
447811
|
const hasCallsite = fields & 2;
|
|
447792
447812
|
const hasScope = fields & 4;
|
|
@@ -447794,11 +447814,8 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447794
447814
|
let bindings = EMPTY;
|
|
447795
447815
|
let range;
|
|
447796
447816
|
if (hasDefinition) {
|
|
447797
|
-
const defSourcesIndex = decodeInteger(reader
|
|
447798
|
-
definitionScopeIndex = decodeInteger(
|
|
447799
|
-
reader,
|
|
447800
|
-
definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0
|
|
447801
|
-
);
|
|
447817
|
+
const defSourcesIndex = definitionSourcesIndex + decodeSign(decodeInteger(reader));
|
|
447818
|
+
definitionScopeIndex = decodeSign(decodeInteger(reader)) + (definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0);
|
|
447802
447819
|
definitionSourcesIndex = defSourcesIndex;
|
|
447803
447820
|
range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];
|
|
447804
447821
|
} else {
|
|
@@ -447808,13 +447825,10 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447808
447825
|
if (hasCallsite) {
|
|
447809
447826
|
const prevCsi = callsiteSourcesIndex;
|
|
447810
447827
|
const prevLine = callsiteLine;
|
|
447811
|
-
callsiteSourcesIndex
|
|
447828
|
+
callsiteSourcesIndex += decodeSign(decodeInteger(reader));
|
|
447812
447829
|
const sameSource = prevCsi === callsiteSourcesIndex;
|
|
447813
|
-
callsiteLine =
|
|
447814
|
-
callsiteColumn = decodeInteger(
|
|
447815
|
-
reader,
|
|
447816
|
-
sameSource && prevLine === callsiteLine ? callsiteColumn : 0
|
|
447817
|
-
);
|
|
447830
|
+
callsiteLine = (sameSource ? callsiteLine : 0) + decodeSign(decodeInteger(reader));
|
|
447831
|
+
callsiteColumn = (sameSource && prevLine === callsiteLine ? callsiteColumn : 0) + decodeSign(decodeInteger(reader));
|
|
447818
447832
|
callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];
|
|
447819
447833
|
}
|
|
447820
447834
|
range.callsite = callsite;
|
|
@@ -447823,15 +447837,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447823
447837
|
do {
|
|
447824
447838
|
bindingLine = genLine;
|
|
447825
447839
|
bindingColumn = genColumn;
|
|
447826
|
-
const expressionsCount = decodeInteger(reader
|
|
447840
|
+
const expressionsCount = decodeSign(decodeInteger(reader));
|
|
447827
447841
|
let expressionRanges;
|
|
447828
447842
|
if (expressionsCount < -1) {
|
|
447829
|
-
expressionRanges = [[decodeInteger(reader
|
|
447843
|
+
expressionRanges = [[decodeSign(decodeInteger(reader))]];
|
|
447830
447844
|
for (let i = -1; i > expressionsCount; i--) {
|
|
447831
447845
|
const prevBl = bindingLine;
|
|
447832
|
-
bindingLine
|
|
447833
|
-
bindingColumn =
|
|
447834
|
-
const expression = decodeInteger(reader
|
|
447846
|
+
bindingLine += decodeSign(decodeInteger(reader));
|
|
447847
|
+
bindingColumn = (bindingLine === prevBl ? bindingColumn : 0) + decodeSign(decodeInteger(reader));
|
|
447848
|
+
const expression = decodeSign(decodeInteger(reader));
|
|
447835
447849
|
expressionRanges.push([expression, bindingLine, bindingColumn]);
|
|
447836
447850
|
}
|
|
447837
447851
|
} else {
|
|
@@ -447875,16 +447889,19 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447875
447889
|
} else if (index > 0) {
|
|
447876
447890
|
writer.write(comma);
|
|
447877
447891
|
}
|
|
447878
|
-
|
|
447892
|
+
encodeInteger(writer, encodeSign(range[1] - state[1]));
|
|
447893
|
+
state[1] = range[1];
|
|
447879
447894
|
const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
|
|
447880
|
-
encodeInteger(writer, fields
|
|
447895
|
+
encodeInteger(writer, encodeSign(fields));
|
|
447881
447896
|
if (range.length === 6) {
|
|
447882
447897
|
const { 4: sourcesIndex, 5: scopesIndex } = range;
|
|
447883
447898
|
if (sourcesIndex !== state[2]) {
|
|
447884
447899
|
state[3] = 0;
|
|
447885
447900
|
}
|
|
447886
|
-
|
|
447887
|
-
state[
|
|
447901
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[2]));
|
|
447902
|
+
state[2] = sourcesIndex;
|
|
447903
|
+
encodeInteger(writer, encodeSign(scopesIndex - state[3]));
|
|
447904
|
+
state[3] = scopesIndex;
|
|
447888
447905
|
}
|
|
447889
447906
|
if (callsite) {
|
|
447890
447907
|
const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;
|
|
@@ -447894,22 +447911,27 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447894
447911
|
} else if (callLine !== state[5]) {
|
|
447895
447912
|
state[6] = 0;
|
|
447896
447913
|
}
|
|
447897
|
-
|
|
447898
|
-
state[
|
|
447899
|
-
|
|
447914
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[4]));
|
|
447915
|
+
state[4] = sourcesIndex;
|
|
447916
|
+
encodeInteger(writer, encodeSign(callLine - state[5]));
|
|
447917
|
+
state[5] = callLine;
|
|
447918
|
+
encodeInteger(writer, encodeSign(callColumn - state[6]));
|
|
447919
|
+
state[6] = callColumn;
|
|
447900
447920
|
}
|
|
447901
447921
|
if (bindings) {
|
|
447902
447922
|
for (const binding of bindings) {
|
|
447903
|
-
if (binding.length > 1) encodeInteger(writer, -binding.length
|
|
447923
|
+
if (binding.length > 1) encodeInteger(writer, encodeSign(-binding.length));
|
|
447904
447924
|
const expression = binding[0][0];
|
|
447905
|
-
encodeInteger(writer, expression
|
|
447925
|
+
encodeInteger(writer, encodeSign(expression));
|
|
447906
447926
|
let bindingStartLine = startLine;
|
|
447907
447927
|
let bindingStartColumn = startColumn;
|
|
447908
447928
|
for (let i = 1; i < binding.length; i++) {
|
|
447909
447929
|
const expRange = binding[i];
|
|
447910
|
-
|
|
447911
|
-
|
|
447912
|
-
encodeInteger(writer, expRange[
|
|
447930
|
+
encodeInteger(writer, encodeSign(expRange[1] - bindingStartLine));
|
|
447931
|
+
bindingStartLine = expRange[1];
|
|
447932
|
+
encodeInteger(writer, encodeSign(expRange[2] - bindingStartColumn));
|
|
447933
|
+
bindingStartColumn = expRange[2];
|
|
447934
|
+
encodeInteger(writer, encodeSign(expRange[0]));
|
|
447913
447935
|
}
|
|
447914
447936
|
}
|
|
447915
447937
|
}
|
|
@@ -447928,7 +447950,8 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447928
447950
|
} else {
|
|
447929
447951
|
writer.write(comma);
|
|
447930
447952
|
}
|
|
447931
|
-
|
|
447953
|
+
encodeInteger(writer, encodeSign(endColumn - state[1]));
|
|
447954
|
+
state[1] = endColumn;
|
|
447932
447955
|
return index;
|
|
447933
447956
|
}
|
|
447934
447957
|
function catchupLine(writer, lastLine, line) {
|
|
@@ -447936,6 +447959,38 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447936
447959
|
writer.write(semicolon);
|
|
447937
447960
|
} while (++lastLine < line);
|
|
447938
447961
|
}
|
|
447962
|
+
function decodeRangeMappings(input) {
|
|
447963
|
+
const { length } = input;
|
|
447964
|
+
const reader = new StringReader(input);
|
|
447965
|
+
const rangeMappings = [];
|
|
447966
|
+
do {
|
|
447967
|
+
const semi = reader.indexOf(";");
|
|
447968
|
+
const indices = [];
|
|
447969
|
+
let index = 0;
|
|
447970
|
+
while (reader.pos < semi) {
|
|
447971
|
+
index += decodeInteger(reader);
|
|
447972
|
+
indices.push(index);
|
|
447973
|
+
}
|
|
447974
|
+
rangeMappings.push(indices);
|
|
447975
|
+
reader.pos = semi + 1;
|
|
447976
|
+
} while (reader.pos <= length);
|
|
447977
|
+
return rangeMappings;
|
|
447978
|
+
}
|
|
447979
|
+
function encodeRangeMappings(decoded) {
|
|
447980
|
+
if (decoded.length === 0) return "";
|
|
447981
|
+
const writer = new StringWriter();
|
|
447982
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
447983
|
+
const indices = decoded[i];
|
|
447984
|
+
if (i > 0) writer.write(semicolon);
|
|
447985
|
+
let index = 0;
|
|
447986
|
+
for (let j = 0; j < indices.length; j++) {
|
|
447987
|
+
const offset = indices[j];
|
|
447988
|
+
encodeInteger(writer, offset - index);
|
|
447989
|
+
index = offset;
|
|
447990
|
+
}
|
|
447991
|
+
}
|
|
447992
|
+
return writer.flush();
|
|
447993
|
+
}
|
|
447939
447994
|
function decode(mappings) {
|
|
447940
447995
|
const { length } = mappings;
|
|
447941
447996
|
const reader = new StringReader(mappings);
|
|
@@ -447953,15 +448008,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447953
448008
|
genColumn = 0;
|
|
447954
448009
|
while (reader.pos < semi) {
|
|
447955
448010
|
let seg;
|
|
447956
|
-
genColumn
|
|
448011
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
447957
448012
|
if (genColumn < lastCol) sorted = false;
|
|
447958
448013
|
lastCol = genColumn;
|
|
447959
448014
|
if (hasMoreVlq(reader, semi)) {
|
|
447960
|
-
sourcesIndex
|
|
447961
|
-
sourceLine
|
|
447962
|
-
sourceColumn
|
|
448015
|
+
sourcesIndex += decodeSign(decodeInteger(reader));
|
|
448016
|
+
sourceLine += decodeSign(decodeInteger(reader));
|
|
448017
|
+
sourceColumn += decodeSign(decodeInteger(reader));
|
|
447963
448018
|
if (hasMoreVlq(reader, semi)) {
|
|
447964
|
-
namesIndex
|
|
448019
|
+
namesIndex += decodeSign(decodeInteger(reader));
|
|
447965
448020
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
|
|
447966
448021
|
} else {
|
|
447967
448022
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
|
|
@@ -447998,13 +448053,18 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447998
448053
|
for (let j = 0; j < line.length; j++) {
|
|
447999
448054
|
const segment = line[j];
|
|
448000
448055
|
if (j > 0) writer.write(comma);
|
|
448001
|
-
|
|
448056
|
+
encodeInteger(writer, encodeSign(segment[0] - genColumn));
|
|
448057
|
+
genColumn = segment[0];
|
|
448002
448058
|
if (segment.length === 1) continue;
|
|
448003
|
-
|
|
448004
|
-
|
|
448005
|
-
|
|
448059
|
+
encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
|
|
448060
|
+
encodeInteger(writer, encodeSign(segment[2] - sourceLine));
|
|
448061
|
+
encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
|
|
448062
|
+
sourcesIndex = segment[1];
|
|
448063
|
+
sourceLine = segment[2];
|
|
448064
|
+
sourceColumn = segment[3];
|
|
448006
448065
|
if (segment.length === 4) continue;
|
|
448007
|
-
|
|
448066
|
+
encodeInteger(writer, encodeSign(segment[4] - namesIndex));
|
|
448067
|
+
namesIndex = segment[4];
|
|
448008
448068
|
}
|
|
448009
448069
|
}
|
|
448010
448070
|
return writer.flush();
|
|
@@ -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;
|