@plasmicapp/cli 0.1.302 → 0.1.304
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/dist/index.js +1 -1
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +384 -287
- package/package.json +2 -2
- package/src/actions/localization-strings.ts +1 -1
- package/src/lib.ts +4 -0
package/dist/lib.js
CHANGED
|
@@ -12274,14 +12274,14 @@ var require_templates = __commonJS({
|
|
|
12274
12274
|
}
|
|
12275
12275
|
return results;
|
|
12276
12276
|
}
|
|
12277
|
-
function buildStyle(
|
|
12277
|
+
function buildStyle(chalk8, styles) {
|
|
12278
12278
|
const enabled = {};
|
|
12279
12279
|
for (const layer of styles) {
|
|
12280
12280
|
for (const style of layer.styles) {
|
|
12281
12281
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
12282
12282
|
}
|
|
12283
12283
|
}
|
|
12284
|
-
let current =
|
|
12284
|
+
let current = chalk8;
|
|
12285
12285
|
for (const [styleName, styles2] of Object.entries(enabled)) {
|
|
12286
12286
|
if (!Array.isArray(styles2)) {
|
|
12287
12287
|
continue;
|
|
@@ -12293,7 +12293,7 @@ var require_templates = __commonJS({
|
|
|
12293
12293
|
}
|
|
12294
12294
|
return current;
|
|
12295
12295
|
}
|
|
12296
|
-
module2.exports = (
|
|
12296
|
+
module2.exports = (chalk8, temporary) => {
|
|
12297
12297
|
const styles = [];
|
|
12298
12298
|
const chunks = [];
|
|
12299
12299
|
let chunk = [];
|
|
@@ -12303,13 +12303,13 @@ var require_templates = __commonJS({
|
|
|
12303
12303
|
} else if (style) {
|
|
12304
12304
|
const string = chunk.join("");
|
|
12305
12305
|
chunk = [];
|
|
12306
|
-
chunks.push(styles.length === 0 ? string : buildStyle(
|
|
12306
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk8, styles)(string));
|
|
12307
12307
|
styles.push({ inverse, styles: parseStyle(style) });
|
|
12308
12308
|
} else if (close) {
|
|
12309
12309
|
if (styles.length === 0) {
|
|
12310
12310
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
12311
12311
|
}
|
|
12312
|
-
chunks.push(buildStyle(
|
|
12312
|
+
chunks.push(buildStyle(chalk8, styles)(chunk.join("")));
|
|
12313
12313
|
chunk = [];
|
|
12314
12314
|
styles.pop();
|
|
12315
12315
|
} else {
|
|
@@ -12357,16 +12357,16 @@ var require_source = __commonJS({
|
|
|
12357
12357
|
}
|
|
12358
12358
|
};
|
|
12359
12359
|
var chalkFactory = (options) => {
|
|
12360
|
-
const
|
|
12361
|
-
applyOptions(
|
|
12362
|
-
|
|
12363
|
-
Object.setPrototypeOf(
|
|
12364
|
-
Object.setPrototypeOf(
|
|
12365
|
-
|
|
12360
|
+
const chalk9 = {};
|
|
12361
|
+
applyOptions(chalk9, options);
|
|
12362
|
+
chalk9.template = (...arguments_) => chalkTag(chalk9.template, ...arguments_);
|
|
12363
|
+
Object.setPrototypeOf(chalk9, Chalk.prototype);
|
|
12364
|
+
Object.setPrototypeOf(chalk9.template, chalk9);
|
|
12365
|
+
chalk9.template.constructor = () => {
|
|
12366
12366
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
12367
12367
|
};
|
|
12368
|
-
|
|
12369
|
-
return
|
|
12368
|
+
chalk9.template.Instance = ChalkClass;
|
|
12369
|
+
return chalk9.template;
|
|
12370
12370
|
};
|
|
12371
12371
|
function Chalk(options) {
|
|
12372
12372
|
return chalkFactory(options);
|
|
@@ -12477,7 +12477,7 @@ var require_source = __commonJS({
|
|
|
12477
12477
|
return openAll + string + closeAll;
|
|
12478
12478
|
};
|
|
12479
12479
|
var template;
|
|
12480
|
-
var chalkTag = (
|
|
12480
|
+
var chalkTag = (chalk9, ...strings) => {
|
|
12481
12481
|
const [firstString] = strings;
|
|
12482
12482
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
12483
12483
|
return strings.join(" ");
|
|
@@ -12493,14 +12493,14 @@ var require_source = __commonJS({
|
|
|
12493
12493
|
if (template === void 0) {
|
|
12494
12494
|
template = require_templates();
|
|
12495
12495
|
}
|
|
12496
|
-
return template(
|
|
12496
|
+
return template(chalk9, parts.join(""));
|
|
12497
12497
|
};
|
|
12498
12498
|
Object.defineProperties(Chalk.prototype, styles);
|
|
12499
|
-
var
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
module2.exports =
|
|
12499
|
+
var chalk8 = Chalk();
|
|
12500
|
+
chalk8.supportsColor = stdoutColor;
|
|
12501
|
+
chalk8.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
12502
|
+
chalk8.stderr.supportsColor = stderrColor;
|
|
12503
|
+
module2.exports = chalk8;
|
|
12504
12504
|
}
|
|
12505
12505
|
});
|
|
12506
12506
|
|
|
@@ -12668,12 +12668,12 @@ var require_figures = __commonJS({
|
|
|
12668
12668
|
var require_separator = __commonJS({
|
|
12669
12669
|
"../../node_modules/inquirer/lib/objects/separator.js"(exports, module2) {
|
|
12670
12670
|
"use strict";
|
|
12671
|
-
var
|
|
12671
|
+
var chalk8 = require_source();
|
|
12672
12672
|
var figures = require_figures();
|
|
12673
12673
|
var Separator = class {
|
|
12674
12674
|
constructor(line) {
|
|
12675
12675
|
this.type = "separator";
|
|
12676
|
-
this.line =
|
|
12676
|
+
this.line = chalk8.dim(line || new Array(15).join(figures.line));
|
|
12677
12677
|
}
|
|
12678
12678
|
/**
|
|
12679
12679
|
* Stringify separator
|
|
@@ -29454,7 +29454,7 @@ var require_base = __commonJS({
|
|
|
29454
29454
|
defaults: require_defaults(),
|
|
29455
29455
|
clone: require_clone()
|
|
29456
29456
|
};
|
|
29457
|
-
var
|
|
29457
|
+
var chalk8 = require_source();
|
|
29458
29458
|
var runAsync = require_run_async();
|
|
29459
29459
|
var { filter, flatMap: flatMap2, share, take, takeUntil } = require_operators();
|
|
29460
29460
|
var Choices = require_choices();
|
|
@@ -29470,7 +29470,7 @@ var require_base = __commonJS({
|
|
|
29470
29470
|
filter: (val) => val,
|
|
29471
29471
|
when: () => true,
|
|
29472
29472
|
suffix: "",
|
|
29473
|
-
prefix:
|
|
29473
|
+
prefix: chalk8.green("?")
|
|
29474
29474
|
});
|
|
29475
29475
|
if (!this.opt.name) {
|
|
29476
29476
|
this.throwParamError("name");
|
|
@@ -29553,12 +29553,12 @@ var require_base = __commonJS({
|
|
|
29553
29553
|
* @return {String} prompt question string
|
|
29554
29554
|
*/
|
|
29555
29555
|
getQuestion() {
|
|
29556
|
-
var message = this.opt.prefix + " " +
|
|
29556
|
+
var message = this.opt.prefix + " " + chalk8.bold(this.opt.message) + this.opt.suffix + chalk8.reset(" ");
|
|
29557
29557
|
if (this.opt.default != null && this.status !== "answered") {
|
|
29558
29558
|
if (this.opt.type === "password") {
|
|
29559
|
-
message +=
|
|
29559
|
+
message += chalk8.italic.dim("[hidden] ");
|
|
29560
29560
|
} else {
|
|
29561
|
-
message +=
|
|
29561
|
+
message += chalk8.dim("(" + this.opt.default + ") ");
|
|
29562
29562
|
}
|
|
29563
29563
|
}
|
|
29564
29564
|
return message;
|
|
@@ -29653,7 +29653,7 @@ var require_paginator = __commonJS({
|
|
|
29653
29653
|
sum: require_sum(),
|
|
29654
29654
|
flatten: require_flatten()
|
|
29655
29655
|
};
|
|
29656
|
-
var
|
|
29656
|
+
var chalk8 = require_source();
|
|
29657
29657
|
var Paginator = class {
|
|
29658
29658
|
constructor(screen, options = {}) {
|
|
29659
29659
|
const { isInfinite = true } = options;
|
|
@@ -29674,7 +29674,7 @@ var require_paginator = __commonJS({
|
|
|
29674
29674
|
}
|
|
29675
29675
|
const visibleLines = this.isInfinite ? this.getInfiniteLines(lines, active, pageSize) : this.getFiniteLines(lines, active, pageSize);
|
|
29676
29676
|
this.lastIndex = active;
|
|
29677
|
-
return visibleLines.join("\n") + "\n" +
|
|
29677
|
+
return visibleLines.join("\n") + "\n" + chalk8.dim("(Move up and down to reveal more choices)");
|
|
29678
29678
|
}
|
|
29679
29679
|
getInfiniteLines(lines, active, pageSize) {
|
|
29680
29680
|
if (this.pointer === void 0) {
|
|
@@ -29735,7 +29735,7 @@ var require_list = __commonJS({
|
|
|
29735
29735
|
findIndex: require_findIndex2(),
|
|
29736
29736
|
isString: require_isString()
|
|
29737
29737
|
};
|
|
29738
|
-
var
|
|
29738
|
+
var chalk8 = require_source();
|
|
29739
29739
|
var figures = require_figures();
|
|
29740
29740
|
var cliCursor = require_cli_cursor();
|
|
29741
29741
|
var runAsync = require_run_async();
|
|
@@ -29791,10 +29791,10 @@ var require_list = __commonJS({
|
|
|
29791
29791
|
render() {
|
|
29792
29792
|
var message = this.getQuestion();
|
|
29793
29793
|
if (this.firstRender) {
|
|
29794
|
-
message +=
|
|
29794
|
+
message += chalk8.dim("(Use arrow keys)");
|
|
29795
29795
|
}
|
|
29796
29796
|
if (this.status === "answered") {
|
|
29797
|
-
message +=
|
|
29797
|
+
message += chalk8.cyan(this.opt.choices.getChoice(this.selected).short);
|
|
29798
29798
|
} else {
|
|
29799
29799
|
var choicesStr = listRender(this.opt.choices, this.selected);
|
|
29800
29800
|
var indexPosition = this.opt.choices.indexOf(
|
|
@@ -29869,7 +29869,7 @@ var require_list = __commonJS({
|
|
|
29869
29869
|
var isSelected = i - separatorOffset === pointer;
|
|
29870
29870
|
var line = (isSelected ? figures.pointer + " " : " ") + choice.name;
|
|
29871
29871
|
if (isSelected) {
|
|
29872
|
-
line =
|
|
29872
|
+
line = chalk8.cyan(line);
|
|
29873
29873
|
}
|
|
29874
29874
|
output += line + " \n";
|
|
29875
29875
|
});
|
|
@@ -29883,7 +29883,7 @@ var require_list = __commonJS({
|
|
|
29883
29883
|
var require_input = __commonJS({
|
|
29884
29884
|
"../../node_modules/inquirer/lib/prompts/input.js"(exports, module2) {
|
|
29885
29885
|
"use strict";
|
|
29886
|
-
var
|
|
29886
|
+
var chalk8 = require_source();
|
|
29887
29887
|
var { map, takeUntil } = require_operators();
|
|
29888
29888
|
var Base = require_base();
|
|
29889
29889
|
var observe = require_events();
|
|
@@ -29922,10 +29922,10 @@ var require_input = __commonJS({
|
|
|
29922
29922
|
if (transformer) {
|
|
29923
29923
|
message += transformer(appendContent, this.answers, { isFinal });
|
|
29924
29924
|
} else {
|
|
29925
|
-
message += isFinal ?
|
|
29925
|
+
message += isFinal ? chalk8.cyan(appendContent) : appendContent;
|
|
29926
29926
|
}
|
|
29927
29927
|
if (error) {
|
|
29928
|
-
bottomContent =
|
|
29928
|
+
bottomContent = chalk8.red(">> ") + error;
|
|
29929
29929
|
}
|
|
29930
29930
|
this.screen.render(message, bottomContent);
|
|
29931
29931
|
}
|
|
@@ -30006,7 +30006,7 @@ var require_confirm = __commonJS({
|
|
|
30006
30006
|
extend: require_extend(),
|
|
30007
30007
|
isBoolean: require_isBoolean()
|
|
30008
30008
|
};
|
|
30009
|
-
var
|
|
30009
|
+
var chalk8 = require_source();
|
|
30010
30010
|
var { take, takeUntil } = require_operators();
|
|
30011
30011
|
var Base = require_base();
|
|
30012
30012
|
var observe = require_events();
|
|
@@ -30048,7 +30048,7 @@ var require_confirm = __commonJS({
|
|
|
30048
30048
|
render(answer) {
|
|
30049
30049
|
var message = this.getQuestion();
|
|
30050
30050
|
if (typeof answer === "boolean") {
|
|
30051
|
-
message +=
|
|
30051
|
+
message += chalk8.cyan(answer ? "Yes" : "No");
|
|
30052
30052
|
} else {
|
|
30053
30053
|
message += this.rl.line;
|
|
30054
30054
|
}
|
|
@@ -30085,7 +30085,7 @@ var require_rawlist = __commonJS({
|
|
|
30085
30085
|
isNumber: require_isNumber(),
|
|
30086
30086
|
findIndex: require_findIndex2()
|
|
30087
30087
|
};
|
|
30088
|
-
var
|
|
30088
|
+
var chalk8 = require_source();
|
|
30089
30089
|
var { map, takeUntil } = require_operators();
|
|
30090
30090
|
var Base = require_base();
|
|
30091
30091
|
var Separator = require_separator();
|
|
@@ -30146,7 +30146,7 @@ var require_rawlist = __commonJS({
|
|
|
30146
30146
|
var message = this.getQuestion();
|
|
30147
30147
|
var bottomContent = "";
|
|
30148
30148
|
if (this.status === "answered") {
|
|
30149
|
-
message +=
|
|
30149
|
+
message += chalk8.cyan(this.answer);
|
|
30150
30150
|
} else {
|
|
30151
30151
|
var choicesStr = renderChoices(this.opt.choices, this.selected);
|
|
30152
30152
|
message += "\n" + this.paginator.paginate(choicesStr, this.selected, this.opt.pageSize);
|
|
@@ -30154,7 +30154,7 @@ var require_rawlist = __commonJS({
|
|
|
30154
30154
|
}
|
|
30155
30155
|
message += this.rl.line;
|
|
30156
30156
|
if (error) {
|
|
30157
|
-
bottomContent = "\n" +
|
|
30157
|
+
bottomContent = "\n" + chalk8.red(">> ") + error;
|
|
30158
30158
|
}
|
|
30159
30159
|
this.screen.render(message, bottomContent);
|
|
30160
30160
|
}
|
|
@@ -30228,7 +30228,7 @@ var require_rawlist = __commonJS({
|
|
|
30228
30228
|
var index = i - separatorOffset;
|
|
30229
30229
|
var display = index + 1 + ") " + choice.name;
|
|
30230
30230
|
if (index === pointer) {
|
|
30231
|
-
display =
|
|
30231
|
+
display = chalk8.cyan(display);
|
|
30232
30232
|
}
|
|
30233
30233
|
output += display;
|
|
30234
30234
|
});
|
|
@@ -30403,7 +30403,7 @@ var require_expand2 = __commonJS({
|
|
|
30403
30403
|
isNumber: require_isNumber(),
|
|
30404
30404
|
findIndex: require_findIndex2()
|
|
30405
30405
|
};
|
|
30406
|
-
var
|
|
30406
|
+
var chalk8 = require_source();
|
|
30407
30407
|
var { map, takeUntil } = require_operators();
|
|
30408
30408
|
var Base = require_base();
|
|
30409
30409
|
var Separator = require_separator();
|
|
@@ -30455,7 +30455,7 @@ var require_expand2 = __commonJS({
|
|
|
30455
30455
|
var message = this.getQuestion();
|
|
30456
30456
|
var bottomContent = "";
|
|
30457
30457
|
if (this.status === "answered") {
|
|
30458
|
-
message +=
|
|
30458
|
+
message += chalk8.cyan(this.answer);
|
|
30459
30459
|
} else if (this.status === "expanded") {
|
|
30460
30460
|
var choicesStr = renderChoices(this.opt.choices, this.selectedKey);
|
|
30461
30461
|
message += this.paginator.paginate(choicesStr, this.selectedKey, this.opt.pageSize);
|
|
@@ -30463,10 +30463,10 @@ var require_expand2 = __commonJS({
|
|
|
30463
30463
|
}
|
|
30464
30464
|
message += this.rl.line;
|
|
30465
30465
|
if (error) {
|
|
30466
|
-
bottomContent =
|
|
30466
|
+
bottomContent = chalk8.red(">> ") + error;
|
|
30467
30467
|
}
|
|
30468
30468
|
if (hint) {
|
|
30469
|
-
bottomContent =
|
|
30469
|
+
bottomContent = chalk8.cyan(">> ") + hint;
|
|
30470
30470
|
}
|
|
30471
30471
|
this.screen.render(message, bottomContent);
|
|
30472
30472
|
}
|
|
@@ -30494,7 +30494,7 @@ var require_expand2 = __commonJS({
|
|
|
30494
30494
|
}
|
|
30495
30495
|
var choiceStr = choice.key + ") " + choice.name;
|
|
30496
30496
|
if (this.selectedKey === choice.key) {
|
|
30497
|
-
choiceStr =
|
|
30497
|
+
choiceStr = chalk8.cyan(choiceStr);
|
|
30498
30498
|
}
|
|
30499
30499
|
output += choiceStr;
|
|
30500
30500
|
});
|
|
@@ -30599,7 +30599,7 @@ var require_expand2 = __commonJS({
|
|
|
30599
30599
|
}
|
|
30600
30600
|
var choiceStr = choice.key + ") " + choice.name;
|
|
30601
30601
|
if (pointer === choice.key) {
|
|
30602
|
-
choiceStr =
|
|
30602
|
+
choiceStr = chalk8.cyan(choiceStr);
|
|
30603
30603
|
}
|
|
30604
30604
|
output += choiceStr;
|
|
30605
30605
|
});
|
|
@@ -30618,7 +30618,7 @@ var require_checkbox = __commonJS({
|
|
|
30618
30618
|
map: require_map2(),
|
|
30619
30619
|
isString: require_isString()
|
|
30620
30620
|
};
|
|
30621
|
-
var
|
|
30621
|
+
var chalk8 = require_source();
|
|
30622
30622
|
var cliCursor = require_cli_cursor();
|
|
30623
30623
|
var figures = require_figures();
|
|
30624
30624
|
var { map, takeUntil } = require_operators();
|
|
@@ -30676,10 +30676,10 @@ var require_checkbox = __commonJS({
|
|
|
30676
30676
|
var message = this.getQuestion();
|
|
30677
30677
|
var bottomContent = "";
|
|
30678
30678
|
if (!this.spaceKeyPressed) {
|
|
30679
|
-
message += "(Press " +
|
|
30679
|
+
message += "(Press " + chalk8.cyan.bold("<space>") + " to select, " + chalk8.cyan.bold("<a>") + " to toggle all, " + chalk8.cyan.bold("<i>") + " to invert selection)";
|
|
30680
30680
|
}
|
|
30681
30681
|
if (this.status === "answered") {
|
|
30682
|
-
message +=
|
|
30682
|
+
message += chalk8.cyan(this.selection.join(", "));
|
|
30683
30683
|
} else {
|
|
30684
30684
|
var choicesStr = renderChoices(this.opt.choices, this.pointer);
|
|
30685
30685
|
var indexPosition = this.opt.choices.indexOf(
|
|
@@ -30702,7 +30702,7 @@ var require_checkbox = __commonJS({
|
|
|
30702
30702
|
message += "\n" + this.paginator.paginate(choicesStr, realIndexPosition, this.opt.pageSize);
|
|
30703
30703
|
}
|
|
30704
30704
|
if (error) {
|
|
30705
|
-
bottomContent =
|
|
30705
|
+
bottomContent = chalk8.red(">> ") + error;
|
|
30706
30706
|
}
|
|
30707
30707
|
this.screen.render(message, bottomContent);
|
|
30708
30708
|
}
|
|
@@ -30791,7 +30791,7 @@ var require_checkbox = __commonJS({
|
|
|
30791
30791
|
} else {
|
|
30792
30792
|
var line = getCheckbox(choice.checked) + " " + choice.name;
|
|
30793
30793
|
if (i - separatorOffset === pointer) {
|
|
30794
|
-
output +=
|
|
30794
|
+
output += chalk8.cyan(figures.pointer + line);
|
|
30795
30795
|
} else {
|
|
30796
30796
|
output += " " + line;
|
|
30797
30797
|
}
|
|
@@ -30801,7 +30801,7 @@ var require_checkbox = __commonJS({
|
|
|
30801
30801
|
return output.replace(/\n$/, "");
|
|
30802
30802
|
}
|
|
30803
30803
|
function getCheckbox(checked) {
|
|
30804
|
-
return checked ?
|
|
30804
|
+
return checked ? chalk8.green(figures.radioOn) : figures.radioOff;
|
|
30805
30805
|
}
|
|
30806
30806
|
module2.exports = CheckboxPrompt;
|
|
30807
30807
|
}
|
|
@@ -30811,7 +30811,7 @@ var require_checkbox = __commonJS({
|
|
|
30811
30811
|
var require_password = __commonJS({
|
|
30812
30812
|
"../../node_modules/inquirer/lib/prompts/password.js"(exports, module2) {
|
|
30813
30813
|
"use strict";
|
|
30814
|
-
var
|
|
30814
|
+
var chalk8 = require_source();
|
|
30815
30815
|
var { map, takeUntil } = require_operators();
|
|
30816
30816
|
var Base = require_base();
|
|
30817
30817
|
var observe = require_events();
|
|
@@ -30848,14 +30848,14 @@ var require_password = __commonJS({
|
|
|
30848
30848
|
var message = this.getQuestion();
|
|
30849
30849
|
var bottomContent = "";
|
|
30850
30850
|
if (this.status === "answered") {
|
|
30851
|
-
message += this.opt.mask ?
|
|
30851
|
+
message += this.opt.mask ? chalk8.cyan(mask(this.answer, this.opt.mask)) : chalk8.italic.dim("[hidden]");
|
|
30852
30852
|
} else if (this.opt.mask) {
|
|
30853
30853
|
message += mask(this.rl.line || "", this.opt.mask);
|
|
30854
30854
|
} else {
|
|
30855
|
-
message +=
|
|
30855
|
+
message += chalk8.italic.dim("[input is hidden] ");
|
|
30856
30856
|
}
|
|
30857
30857
|
if (error) {
|
|
30858
|
-
bottomContent = "\n" +
|
|
30858
|
+
bottomContent = "\n" + chalk8.red(">> ") + error;
|
|
30859
30859
|
}
|
|
30860
30860
|
this.screen.render(message, bottomContent);
|
|
30861
30861
|
}
|
|
@@ -40476,7 +40476,7 @@ var require_main = __commonJS({
|
|
|
40476
40476
|
var require_editor = __commonJS({
|
|
40477
40477
|
"../../node_modules/inquirer/lib/prompts/editor.js"(exports, module2) {
|
|
40478
40478
|
"use strict";
|
|
40479
|
-
var
|
|
40479
|
+
var chalk8 = require_source();
|
|
40480
40480
|
var editAsync = require_main().editAsync;
|
|
40481
40481
|
var Base = require_base();
|
|
40482
40482
|
var observe = require_events();
|
|
@@ -40508,12 +40508,12 @@ var require_editor = __commonJS({
|
|
|
40508
40508
|
var bottomContent = "";
|
|
40509
40509
|
var message = this.getQuestion();
|
|
40510
40510
|
if (this.status === "answered") {
|
|
40511
|
-
message +=
|
|
40511
|
+
message += chalk8.dim("Received");
|
|
40512
40512
|
} else {
|
|
40513
|
-
message +=
|
|
40513
|
+
message += chalk8.dim("Press <enter> to launch your preferred editor.");
|
|
40514
40514
|
}
|
|
40515
40515
|
if (error) {
|
|
40516
|
-
bottomContent =
|
|
40516
|
+
bottomContent = chalk8.red(">> ") + error;
|
|
40517
40517
|
}
|
|
40518
40518
|
this.screen.render(message, bottomContent);
|
|
40519
40519
|
}
|
|
@@ -42628,7 +42628,7 @@ var require_polling_xhr = __commonJS({
|
|
|
42628
42628
|
var XMLHttpRequest2 = require_XMLHttpRequest();
|
|
42629
42629
|
var Polling = require_polling();
|
|
42630
42630
|
var Emitter = require_component_emitter();
|
|
42631
|
-
var { pick } = require_util2();
|
|
42631
|
+
var { pick: pick2 } = require_util2();
|
|
42632
42632
|
var globalThis2 = require_globalThis();
|
|
42633
42633
|
var debug = require_src()("engine.io-client:polling-xhr");
|
|
42634
42634
|
function empty() {
|
|
@@ -42722,7 +42722,7 @@ var require_polling_xhr = __commonJS({
|
|
|
42722
42722
|
* @api private
|
|
42723
42723
|
*/
|
|
42724
42724
|
create() {
|
|
42725
|
-
const opts =
|
|
42725
|
+
const opts = pick2(
|
|
42726
42726
|
this.opts,
|
|
42727
42727
|
"agent",
|
|
42728
42728
|
"enablesXDR",
|
|
@@ -45988,7 +45988,7 @@ var require_websocket2 = __commonJS({
|
|
|
45988
45988
|
var parser2 = require_lib2();
|
|
45989
45989
|
var parseqs = require_parseqs();
|
|
45990
45990
|
var yeast = require_yeast();
|
|
45991
|
-
var { pick } = require_util2();
|
|
45991
|
+
var { pick: pick2 } = require_util2();
|
|
45992
45992
|
var {
|
|
45993
45993
|
WebSocket,
|
|
45994
45994
|
usingBrowserWebSocket,
|
|
@@ -46027,7 +46027,7 @@ var require_websocket2 = __commonJS({
|
|
|
46027
46027
|
}
|
|
46028
46028
|
const uri = this.uri();
|
|
46029
46029
|
const protocols = this.opts.protocols;
|
|
46030
|
-
const opts = isReactNative ? {} :
|
|
46030
|
+
const opts = isReactNative ? {} : pick2(
|
|
46031
46031
|
this.opts,
|
|
46032
46032
|
"agent",
|
|
46033
46033
|
"perMessageDeflate",
|
|
@@ -54495,7 +54495,7 @@ var require_lodash = __commonJS({
|
|
|
54495
54495
|
function omitBy(object, predicate) {
|
|
54496
54496
|
return pickBy(object, negate(getIteratee(predicate)));
|
|
54497
54497
|
}
|
|
54498
|
-
var
|
|
54498
|
+
var pick2 = flatRest(function(object, paths) {
|
|
54499
54499
|
return object == null ? {} : basePick(object, paths);
|
|
54500
54500
|
});
|
|
54501
54501
|
function pickBy(object, predicate) {
|
|
@@ -55173,7 +55173,7 @@ var require_lodash = __commonJS({
|
|
|
55173
55173
|
lodash.partial = partial;
|
|
55174
55174
|
lodash.partialRight = partialRight;
|
|
55175
55175
|
lodash.partition = partition;
|
|
55176
|
-
lodash.pick =
|
|
55176
|
+
lodash.pick = pick2;
|
|
55177
55177
|
lodash.pickBy = pickBy;
|
|
55178
55178
|
lodash.property = property;
|
|
55179
55179
|
lodash.propertyOf = propertyOf;
|
|
@@ -104942,14 +104942,14 @@ var require_templates2 = __commonJS({
|
|
|
104942
104942
|
}
|
|
104943
104943
|
return results;
|
|
104944
104944
|
}
|
|
104945
|
-
function buildStyle(
|
|
104945
|
+
function buildStyle(chalk8, styles) {
|
|
104946
104946
|
const enabled = {};
|
|
104947
104947
|
for (const layer of styles) {
|
|
104948
104948
|
for (const style of layer.styles) {
|
|
104949
104949
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
104950
104950
|
}
|
|
104951
104951
|
}
|
|
104952
|
-
let current =
|
|
104952
|
+
let current = chalk8;
|
|
104953
104953
|
for (const styleName of Object.keys(enabled)) {
|
|
104954
104954
|
if (Array.isArray(enabled[styleName])) {
|
|
104955
104955
|
if (!(styleName in current)) {
|
|
@@ -104964,7 +104964,7 @@ var require_templates2 = __commonJS({
|
|
|
104964
104964
|
}
|
|
104965
104965
|
return current;
|
|
104966
104966
|
}
|
|
104967
|
-
module2.exports = (
|
|
104967
|
+
module2.exports = (chalk8, tmp) => {
|
|
104968
104968
|
const styles = [];
|
|
104969
104969
|
const chunks = [];
|
|
104970
104970
|
let chunk = [];
|
|
@@ -104974,13 +104974,13 @@ var require_templates2 = __commonJS({
|
|
|
104974
104974
|
} else if (style) {
|
|
104975
104975
|
const str = chunk.join("");
|
|
104976
104976
|
chunk = [];
|
|
104977
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
|
104977
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk8, styles)(str));
|
|
104978
104978
|
styles.push({ inverse, styles: parseStyle(style) });
|
|
104979
104979
|
} else if (close) {
|
|
104980
104980
|
if (styles.length === 0) {
|
|
104981
104981
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
104982
104982
|
}
|
|
104983
|
-
chunks.push(buildStyle(
|
|
104983
|
+
chunks.push(buildStyle(chalk8, styles)(chunk.join("")));
|
|
104984
104984
|
chunk = [];
|
|
104985
104985
|
styles.pop();
|
|
104986
104986
|
} else {
|
|
@@ -105017,16 +105017,16 @@ var require_chalk = __commonJS({
|
|
|
105017
105017
|
}
|
|
105018
105018
|
function Chalk(options) {
|
|
105019
105019
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
105020
|
-
const
|
|
105021
|
-
applyOptions(
|
|
105022
|
-
|
|
105020
|
+
const chalk8 = {};
|
|
105021
|
+
applyOptions(chalk8, options);
|
|
105022
|
+
chalk8.template = function() {
|
|
105023
105023
|
const args = [].slice.call(arguments);
|
|
105024
|
-
return chalkTag.apply(null, [
|
|
105024
|
+
return chalkTag.apply(null, [chalk8.template].concat(args));
|
|
105025
105025
|
};
|
|
105026
|
-
Object.setPrototypeOf(
|
|
105027
|
-
Object.setPrototypeOf(
|
|
105028
|
-
|
|
105029
|
-
return
|
|
105026
|
+
Object.setPrototypeOf(chalk8, Chalk.prototype);
|
|
105027
|
+
Object.setPrototypeOf(chalk8.template, chalk8);
|
|
105028
|
+
chalk8.template.constructor = Chalk;
|
|
105029
|
+
return chalk8.template;
|
|
105030
105030
|
}
|
|
105031
105031
|
applyOptions(this, options);
|
|
105032
105032
|
}
|
|
@@ -105145,7 +105145,7 @@ var require_chalk = __commonJS({
|
|
|
105145
105145
|
ansiStyles.dim.open = originalDim;
|
|
105146
105146
|
return str;
|
|
105147
105147
|
}
|
|
105148
|
-
function chalkTag(
|
|
105148
|
+
function chalkTag(chalk8, strings) {
|
|
105149
105149
|
if (!Array.isArray(strings)) {
|
|
105150
105150
|
return [].slice.call(arguments, 1).join(" ");
|
|
105151
105151
|
}
|
|
@@ -105155,7 +105155,7 @@ var require_chalk = __commonJS({
|
|
|
105155
105155
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
105156
105156
|
parts.push(String(strings.raw[i]));
|
|
105157
105157
|
}
|
|
105158
|
-
return template(
|
|
105158
|
+
return template(chalk8, parts.join(""));
|
|
105159
105159
|
}
|
|
105160
105160
|
Object.defineProperties(Chalk.prototype, styles);
|
|
105161
105161
|
module2.exports = Chalk();
|
|
@@ -105178,17 +105178,17 @@ var require_lib11 = __commonJS({
|
|
|
105178
105178
|
var _helperValidatorIdentifier = require_lib4();
|
|
105179
105179
|
var _chalk = require_chalk();
|
|
105180
105180
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
105181
|
-
function getDefs(
|
|
105181
|
+
function getDefs(chalk8) {
|
|
105182
105182
|
return {
|
|
105183
|
-
keyword:
|
|
105184
|
-
capitalized:
|
|
105185
|
-
jsxIdentifier:
|
|
105186
|
-
punctuator:
|
|
105187
|
-
number:
|
|
105188
|
-
string:
|
|
105189
|
-
regex:
|
|
105190
|
-
comment:
|
|
105191
|
-
invalid:
|
|
105183
|
+
keyword: chalk8.cyan,
|
|
105184
|
+
capitalized: chalk8.yellow,
|
|
105185
|
+
jsxIdentifier: chalk8.yellow,
|
|
105186
|
+
punctuator: chalk8.yellow,
|
|
105187
|
+
number: chalk8.magenta,
|
|
105188
|
+
string: chalk8.green,
|
|
105189
|
+
regex: chalk8.magenta,
|
|
105190
|
+
comment: chalk8.grey,
|
|
105191
|
+
invalid: chalk8.white.bgRed.bold
|
|
105192
105192
|
};
|
|
105193
105193
|
}
|
|
105194
105194
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -105253,8 +105253,8 @@ var require_lib11 = __commonJS({
|
|
|
105253
105253
|
}
|
|
105254
105254
|
function highlight(code, options = {}) {
|
|
105255
105255
|
if (code !== "" && shouldHighlight(options)) {
|
|
105256
|
-
const
|
|
105257
|
-
const defs = getDefs(
|
|
105256
|
+
const chalk8 = getChalk(options);
|
|
105257
|
+
const defs = getDefs(chalk8);
|
|
105258
105258
|
return highlightTokens(defs, code);
|
|
105259
105259
|
} else {
|
|
105260
105260
|
return code;
|
|
@@ -105274,11 +105274,11 @@ var require_lib12 = __commonJS({
|
|
|
105274
105274
|
exports.default = _default;
|
|
105275
105275
|
var _highlight = require_lib11();
|
|
105276
105276
|
var deprecationWarningShown = false;
|
|
105277
|
-
function getDefs(
|
|
105277
|
+
function getDefs(chalk8) {
|
|
105278
105278
|
return {
|
|
105279
|
-
gutter:
|
|
105280
|
-
marker:
|
|
105281
|
-
message:
|
|
105279
|
+
gutter: chalk8.grey,
|
|
105280
|
+
marker: chalk8.red.bold,
|
|
105281
|
+
message: chalk8.red.bold
|
|
105282
105282
|
};
|
|
105283
105283
|
}
|
|
105284
105284
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -105340,8 +105340,8 @@ var require_lib12 = __commonJS({
|
|
|
105340
105340
|
}
|
|
105341
105341
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
105342
105342
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
105343
|
-
const
|
|
105344
|
-
const defs = getDefs(
|
|
105343
|
+
const chalk8 = (0, _highlight.getChalk)(opts);
|
|
105344
|
+
const defs = getDefs(chalk8);
|
|
105345
105345
|
const maybeHighlight = (chalkFn, string) => {
|
|
105346
105346
|
return highlighted ? chalkFn(string) : string;
|
|
105347
105347
|
};
|
|
@@ -105380,7 +105380,7 @@ var require_lib12 = __commonJS({
|
|
|
105380
105380
|
${frame}`;
|
|
105381
105381
|
}
|
|
105382
105382
|
if (highlighted) {
|
|
105383
|
-
return
|
|
105383
|
+
return chalk8.reset(frame);
|
|
105384
105384
|
} else {
|
|
105385
105385
|
return frame;
|
|
105386
105386
|
}
|
|
@@ -151207,14 +151207,14 @@ var require_templates3 = __commonJS({
|
|
|
151207
151207
|
}
|
|
151208
151208
|
return results;
|
|
151209
151209
|
}
|
|
151210
|
-
function buildStyle(
|
|
151210
|
+
function buildStyle(chalk8, styles) {
|
|
151211
151211
|
const enabled = {};
|
|
151212
151212
|
for (const layer of styles) {
|
|
151213
151213
|
for (const style of layer.styles) {
|
|
151214
151214
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
151215
151215
|
}
|
|
151216
151216
|
}
|
|
151217
|
-
let current =
|
|
151217
|
+
let current = chalk8;
|
|
151218
151218
|
for (const styleName of Object.keys(enabled)) {
|
|
151219
151219
|
if (Array.isArray(enabled[styleName])) {
|
|
151220
151220
|
if (!(styleName in current)) {
|
|
@@ -151229,7 +151229,7 @@ var require_templates3 = __commonJS({
|
|
|
151229
151229
|
}
|
|
151230
151230
|
return current;
|
|
151231
151231
|
}
|
|
151232
|
-
module2.exports = (
|
|
151232
|
+
module2.exports = (chalk8, tmp) => {
|
|
151233
151233
|
const styles = [];
|
|
151234
151234
|
const chunks = [];
|
|
151235
151235
|
let chunk = [];
|
|
@@ -151239,13 +151239,13 @@ var require_templates3 = __commonJS({
|
|
|
151239
151239
|
} else if (style) {
|
|
151240
151240
|
const str = chunk.join("");
|
|
151241
151241
|
chunk = [];
|
|
151242
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
|
151242
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk8, styles)(str));
|
|
151243
151243
|
styles.push({ inverse, styles: parseStyle(style) });
|
|
151244
151244
|
} else if (close) {
|
|
151245
151245
|
if (styles.length === 0) {
|
|
151246
151246
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
151247
151247
|
}
|
|
151248
|
-
chunks.push(buildStyle(
|
|
151248
|
+
chunks.push(buildStyle(chalk8, styles)(chunk.join("")));
|
|
151249
151249
|
chunk = [];
|
|
151250
151250
|
styles.pop();
|
|
151251
151251
|
} else {
|
|
@@ -151282,16 +151282,16 @@ var require_chalk2 = __commonJS({
|
|
|
151282
151282
|
}
|
|
151283
151283
|
function Chalk(options) {
|
|
151284
151284
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
151285
|
-
const
|
|
151286
|
-
applyOptions(
|
|
151287
|
-
|
|
151285
|
+
const chalk8 = {};
|
|
151286
|
+
applyOptions(chalk8, options);
|
|
151287
|
+
chalk8.template = function() {
|
|
151288
151288
|
const args = [].slice.call(arguments);
|
|
151289
|
-
return chalkTag.apply(null, [
|
|
151289
|
+
return chalkTag.apply(null, [chalk8.template].concat(args));
|
|
151290
151290
|
};
|
|
151291
|
-
Object.setPrototypeOf(
|
|
151292
|
-
Object.setPrototypeOf(
|
|
151293
|
-
|
|
151294
|
-
return
|
|
151291
|
+
Object.setPrototypeOf(chalk8, Chalk.prototype);
|
|
151292
|
+
Object.setPrototypeOf(chalk8.template, chalk8);
|
|
151293
|
+
chalk8.template.constructor = Chalk;
|
|
151294
|
+
return chalk8.template;
|
|
151295
151295
|
}
|
|
151296
151296
|
applyOptions(this, options);
|
|
151297
151297
|
}
|
|
@@ -151410,7 +151410,7 @@ var require_chalk2 = __commonJS({
|
|
|
151410
151410
|
ansiStyles.dim.open = originalDim;
|
|
151411
151411
|
return str;
|
|
151412
151412
|
}
|
|
151413
|
-
function chalkTag(
|
|
151413
|
+
function chalkTag(chalk8, strings) {
|
|
151414
151414
|
if (!Array.isArray(strings)) {
|
|
151415
151415
|
return [].slice.call(arguments, 1).join(" ");
|
|
151416
151416
|
}
|
|
@@ -151420,7 +151420,7 @@ var require_chalk2 = __commonJS({
|
|
|
151420
151420
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
151421
151421
|
parts.push(String(strings.raw[i]));
|
|
151422
151422
|
}
|
|
151423
|
-
return template(
|
|
151423
|
+
return template(chalk8, parts.join(""));
|
|
151424
151424
|
}
|
|
151425
151425
|
Object.defineProperties(Chalk.prototype, styles);
|
|
151426
151426
|
module2.exports = Chalk();
|
|
@@ -151443,17 +151443,17 @@ var require_lib17 = __commonJS({
|
|
|
151443
151443
|
var _helperValidatorIdentifier = require_lib4();
|
|
151444
151444
|
var _chalk = require_chalk2();
|
|
151445
151445
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
151446
|
-
function getDefs(
|
|
151446
|
+
function getDefs(chalk8) {
|
|
151447
151447
|
return {
|
|
151448
|
-
keyword:
|
|
151449
|
-
capitalized:
|
|
151450
|
-
jsxIdentifier:
|
|
151451
|
-
punctuator:
|
|
151452
|
-
number:
|
|
151453
|
-
string:
|
|
151454
|
-
regex:
|
|
151455
|
-
comment:
|
|
151456
|
-
invalid:
|
|
151448
|
+
keyword: chalk8.cyan,
|
|
151449
|
+
capitalized: chalk8.yellow,
|
|
151450
|
+
jsxIdentifier: chalk8.yellow,
|
|
151451
|
+
punctuator: chalk8.yellow,
|
|
151452
|
+
number: chalk8.magenta,
|
|
151453
|
+
string: chalk8.green,
|
|
151454
|
+
regex: chalk8.magenta,
|
|
151455
|
+
comment: chalk8.grey,
|
|
151456
|
+
invalid: chalk8.white.bgRed.bold
|
|
151457
151457
|
};
|
|
151458
151458
|
}
|
|
151459
151459
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -151518,8 +151518,8 @@ var require_lib17 = __commonJS({
|
|
|
151518
151518
|
}
|
|
151519
151519
|
function highlight(code, options = {}) {
|
|
151520
151520
|
if (code !== "" && shouldHighlight(options)) {
|
|
151521
|
-
const
|
|
151522
|
-
const defs = getDefs(
|
|
151521
|
+
const chalk8 = getChalk(options);
|
|
151522
|
+
const defs = getDefs(chalk8);
|
|
151523
151523
|
return highlightTokens(defs, code);
|
|
151524
151524
|
} else {
|
|
151525
151525
|
return code;
|
|
@@ -151539,11 +151539,11 @@ var require_lib18 = __commonJS({
|
|
|
151539
151539
|
exports.default = _default;
|
|
151540
151540
|
var _highlight = require_lib17();
|
|
151541
151541
|
var deprecationWarningShown = false;
|
|
151542
|
-
function getDefs(
|
|
151542
|
+
function getDefs(chalk8) {
|
|
151543
151543
|
return {
|
|
151544
|
-
gutter:
|
|
151545
|
-
marker:
|
|
151546
|
-
message:
|
|
151544
|
+
gutter: chalk8.grey,
|
|
151545
|
+
marker: chalk8.red.bold,
|
|
151546
|
+
message: chalk8.red.bold
|
|
151547
151547
|
};
|
|
151548
151548
|
}
|
|
151549
151549
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -151605,8 +151605,8 @@ var require_lib18 = __commonJS({
|
|
|
151605
151605
|
}
|
|
151606
151606
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
151607
151607
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
151608
|
-
const
|
|
151609
|
-
const defs = getDefs(
|
|
151608
|
+
const chalk8 = (0, _highlight.getChalk)(opts);
|
|
151609
|
+
const defs = getDefs(chalk8);
|
|
151610
151610
|
const maybeHighlight = (chalkFn, string) => {
|
|
151611
151611
|
return highlighted ? chalkFn(string) : string;
|
|
151612
151612
|
};
|
|
@@ -151645,7 +151645,7 @@ var require_lib18 = __commonJS({
|
|
|
151645
151645
|
${frame}`;
|
|
151646
151646
|
}
|
|
151647
151647
|
if (highlighted) {
|
|
151648
|
-
return
|
|
151648
|
+
return chalk8.reset(frame);
|
|
151649
151649
|
} else {
|
|
151650
151650
|
return frame;
|
|
151651
151651
|
}
|
|
@@ -185903,14 +185903,14 @@ var require_templates4 = __commonJS({
|
|
|
185903
185903
|
}
|
|
185904
185904
|
return results;
|
|
185905
185905
|
}
|
|
185906
|
-
function buildStyle(
|
|
185906
|
+
function buildStyle(chalk8, styles) {
|
|
185907
185907
|
const enabled = {};
|
|
185908
185908
|
for (const layer of styles) {
|
|
185909
185909
|
for (const style of layer.styles) {
|
|
185910
185910
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
185911
185911
|
}
|
|
185912
185912
|
}
|
|
185913
|
-
let current =
|
|
185913
|
+
let current = chalk8;
|
|
185914
185914
|
for (const styleName of Object.keys(enabled)) {
|
|
185915
185915
|
if (Array.isArray(enabled[styleName])) {
|
|
185916
185916
|
if (!(styleName in current)) {
|
|
@@ -185925,7 +185925,7 @@ var require_templates4 = __commonJS({
|
|
|
185925
185925
|
}
|
|
185926
185926
|
return current;
|
|
185927
185927
|
}
|
|
185928
|
-
module2.exports = (
|
|
185928
|
+
module2.exports = (chalk8, tmp) => {
|
|
185929
185929
|
const styles = [];
|
|
185930
185930
|
const chunks = [];
|
|
185931
185931
|
let chunk = [];
|
|
@@ -185935,13 +185935,13 @@ var require_templates4 = __commonJS({
|
|
|
185935
185935
|
} else if (style) {
|
|
185936
185936
|
const str = chunk.join("");
|
|
185937
185937
|
chunk = [];
|
|
185938
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
|
185938
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk8, styles)(str));
|
|
185939
185939
|
styles.push({ inverse, styles: parseStyle(style) });
|
|
185940
185940
|
} else if (close) {
|
|
185941
185941
|
if (styles.length === 0) {
|
|
185942
185942
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
185943
185943
|
}
|
|
185944
|
-
chunks.push(buildStyle(
|
|
185944
|
+
chunks.push(buildStyle(chalk8, styles)(chunk.join("")));
|
|
185945
185945
|
chunk = [];
|
|
185946
185946
|
styles.pop();
|
|
185947
185947
|
} else {
|
|
@@ -185978,16 +185978,16 @@ var require_chalk3 = __commonJS({
|
|
|
185978
185978
|
}
|
|
185979
185979
|
function Chalk(options) {
|
|
185980
185980
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
185981
|
-
const
|
|
185982
|
-
applyOptions(
|
|
185983
|
-
|
|
185981
|
+
const chalk8 = {};
|
|
185982
|
+
applyOptions(chalk8, options);
|
|
185983
|
+
chalk8.template = function() {
|
|
185984
185984
|
const args = [].slice.call(arguments);
|
|
185985
|
-
return chalkTag.apply(null, [
|
|
185985
|
+
return chalkTag.apply(null, [chalk8.template].concat(args));
|
|
185986
185986
|
};
|
|
185987
|
-
Object.setPrototypeOf(
|
|
185988
|
-
Object.setPrototypeOf(
|
|
185989
|
-
|
|
185990
|
-
return
|
|
185987
|
+
Object.setPrototypeOf(chalk8, Chalk.prototype);
|
|
185988
|
+
Object.setPrototypeOf(chalk8.template, chalk8);
|
|
185989
|
+
chalk8.template.constructor = Chalk;
|
|
185990
|
+
return chalk8.template;
|
|
185991
185991
|
}
|
|
185992
185992
|
applyOptions(this, options);
|
|
185993
185993
|
}
|
|
@@ -186106,7 +186106,7 @@ var require_chalk3 = __commonJS({
|
|
|
186106
186106
|
ansiStyles.dim.open = originalDim;
|
|
186107
186107
|
return str;
|
|
186108
186108
|
}
|
|
186109
|
-
function chalkTag(
|
|
186109
|
+
function chalkTag(chalk8, strings) {
|
|
186110
186110
|
if (!Array.isArray(strings)) {
|
|
186111
186111
|
return [].slice.call(arguments, 1).join(" ");
|
|
186112
186112
|
}
|
|
@@ -186116,7 +186116,7 @@ var require_chalk3 = __commonJS({
|
|
|
186116
186116
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
186117
186117
|
parts.push(String(strings.raw[i]));
|
|
186118
186118
|
}
|
|
186119
|
-
return template(
|
|
186119
|
+
return template(chalk8, parts.join(""));
|
|
186120
186120
|
}
|
|
186121
186121
|
Object.defineProperties(Chalk.prototype, styles);
|
|
186122
186122
|
module2.exports = Chalk();
|
|
@@ -186139,17 +186139,17 @@ var require_lib24 = __commonJS({
|
|
|
186139
186139
|
var _helperValidatorIdentifier = require_lib4();
|
|
186140
186140
|
var _chalk = require_chalk3();
|
|
186141
186141
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
186142
|
-
function getDefs(
|
|
186142
|
+
function getDefs(chalk8) {
|
|
186143
186143
|
return {
|
|
186144
|
-
keyword:
|
|
186145
|
-
capitalized:
|
|
186146
|
-
jsxIdentifier:
|
|
186147
|
-
punctuator:
|
|
186148
|
-
number:
|
|
186149
|
-
string:
|
|
186150
|
-
regex:
|
|
186151
|
-
comment:
|
|
186152
|
-
invalid:
|
|
186144
|
+
keyword: chalk8.cyan,
|
|
186145
|
+
capitalized: chalk8.yellow,
|
|
186146
|
+
jsxIdentifier: chalk8.yellow,
|
|
186147
|
+
punctuator: chalk8.yellow,
|
|
186148
|
+
number: chalk8.magenta,
|
|
186149
|
+
string: chalk8.green,
|
|
186150
|
+
regex: chalk8.magenta,
|
|
186151
|
+
comment: chalk8.grey,
|
|
186152
|
+
invalid: chalk8.white.bgRed.bold
|
|
186153
186153
|
};
|
|
186154
186154
|
}
|
|
186155
186155
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -186214,8 +186214,8 @@ var require_lib24 = __commonJS({
|
|
|
186214
186214
|
}
|
|
186215
186215
|
function highlight(code, options = {}) {
|
|
186216
186216
|
if (code !== "" && shouldHighlight(options)) {
|
|
186217
|
-
const
|
|
186218
|
-
const defs = getDefs(
|
|
186217
|
+
const chalk8 = getChalk(options);
|
|
186218
|
+
const defs = getDefs(chalk8);
|
|
186219
186219
|
return highlightTokens(defs, code);
|
|
186220
186220
|
} else {
|
|
186221
186221
|
return code;
|
|
@@ -186235,11 +186235,11 @@ var require_lib25 = __commonJS({
|
|
|
186235
186235
|
exports.default = _default;
|
|
186236
186236
|
var _highlight = require_lib24();
|
|
186237
186237
|
var deprecationWarningShown = false;
|
|
186238
|
-
function getDefs(
|
|
186238
|
+
function getDefs(chalk8) {
|
|
186239
186239
|
return {
|
|
186240
|
-
gutter:
|
|
186241
|
-
marker:
|
|
186242
|
-
message:
|
|
186240
|
+
gutter: chalk8.grey,
|
|
186241
|
+
marker: chalk8.red.bold,
|
|
186242
|
+
message: chalk8.red.bold
|
|
186243
186243
|
};
|
|
186244
186244
|
}
|
|
186245
186245
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -186301,8 +186301,8 @@ var require_lib25 = __commonJS({
|
|
|
186301
186301
|
}
|
|
186302
186302
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
186303
186303
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
186304
|
-
const
|
|
186305
|
-
const defs = getDefs(
|
|
186304
|
+
const chalk8 = (0, _highlight.getChalk)(opts);
|
|
186305
|
+
const defs = getDefs(chalk8);
|
|
186306
186306
|
const maybeHighlight = (chalkFn, string) => {
|
|
186307
186307
|
return highlighted ? chalkFn(string) : string;
|
|
186308
186308
|
};
|
|
@@ -186341,7 +186341,7 @@ var require_lib25 = __commonJS({
|
|
|
186341
186341
|
${frame}`;
|
|
186342
186342
|
}
|
|
186343
186343
|
if (highlighted) {
|
|
186344
|
-
return
|
|
186344
|
+
return chalk8.reset(frame);
|
|
186345
186345
|
} else {
|
|
186346
186346
|
return frame;
|
|
186347
186347
|
}
|
|
@@ -189274,14 +189274,14 @@ var require_templates5 = __commonJS({
|
|
|
189274
189274
|
}
|
|
189275
189275
|
return results;
|
|
189276
189276
|
}
|
|
189277
|
-
function buildStyle(
|
|
189277
|
+
function buildStyle(chalk8, styles) {
|
|
189278
189278
|
const enabled = {};
|
|
189279
189279
|
for (const layer of styles) {
|
|
189280
189280
|
for (const style of layer.styles) {
|
|
189281
189281
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
189282
189282
|
}
|
|
189283
189283
|
}
|
|
189284
|
-
let current =
|
|
189284
|
+
let current = chalk8;
|
|
189285
189285
|
for (const styleName of Object.keys(enabled)) {
|
|
189286
189286
|
if (Array.isArray(enabled[styleName])) {
|
|
189287
189287
|
if (!(styleName in current)) {
|
|
@@ -189296,7 +189296,7 @@ var require_templates5 = __commonJS({
|
|
|
189296
189296
|
}
|
|
189297
189297
|
return current;
|
|
189298
189298
|
}
|
|
189299
|
-
module2.exports = (
|
|
189299
|
+
module2.exports = (chalk8, tmp) => {
|
|
189300
189300
|
const styles = [];
|
|
189301
189301
|
const chunks = [];
|
|
189302
189302
|
let chunk = [];
|
|
@@ -189306,13 +189306,13 @@ var require_templates5 = __commonJS({
|
|
|
189306
189306
|
} else if (style) {
|
|
189307
189307
|
const str = chunk.join("");
|
|
189308
189308
|
chunk = [];
|
|
189309
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
|
189309
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk8, styles)(str));
|
|
189310
189310
|
styles.push({ inverse, styles: parseStyle(style) });
|
|
189311
189311
|
} else if (close) {
|
|
189312
189312
|
if (styles.length === 0) {
|
|
189313
189313
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
189314
189314
|
}
|
|
189315
|
-
chunks.push(buildStyle(
|
|
189315
|
+
chunks.push(buildStyle(chalk8, styles)(chunk.join("")));
|
|
189316
189316
|
chunk = [];
|
|
189317
189317
|
styles.pop();
|
|
189318
189318
|
} else {
|
|
@@ -189349,16 +189349,16 @@ var require_chalk4 = __commonJS({
|
|
|
189349
189349
|
}
|
|
189350
189350
|
function Chalk(options) {
|
|
189351
189351
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
189352
|
-
const
|
|
189353
|
-
applyOptions(
|
|
189354
|
-
|
|
189352
|
+
const chalk8 = {};
|
|
189353
|
+
applyOptions(chalk8, options);
|
|
189354
|
+
chalk8.template = function() {
|
|
189355
189355
|
const args = [].slice.call(arguments);
|
|
189356
|
-
return chalkTag.apply(null, [
|
|
189356
|
+
return chalkTag.apply(null, [chalk8.template].concat(args));
|
|
189357
189357
|
};
|
|
189358
|
-
Object.setPrototypeOf(
|
|
189359
|
-
Object.setPrototypeOf(
|
|
189360
|
-
|
|
189361
|
-
return
|
|
189358
|
+
Object.setPrototypeOf(chalk8, Chalk.prototype);
|
|
189359
|
+
Object.setPrototypeOf(chalk8.template, chalk8);
|
|
189360
|
+
chalk8.template.constructor = Chalk;
|
|
189361
|
+
return chalk8.template;
|
|
189362
189362
|
}
|
|
189363
189363
|
applyOptions(this, options);
|
|
189364
189364
|
}
|
|
@@ -189477,7 +189477,7 @@ var require_chalk4 = __commonJS({
|
|
|
189477
189477
|
ansiStyles.dim.open = originalDim;
|
|
189478
189478
|
return str;
|
|
189479
189479
|
}
|
|
189480
|
-
function chalkTag(
|
|
189480
|
+
function chalkTag(chalk8, strings) {
|
|
189481
189481
|
if (!Array.isArray(strings)) {
|
|
189482
189482
|
return [].slice.call(arguments, 1).join(" ");
|
|
189483
189483
|
}
|
|
@@ -189487,7 +189487,7 @@ var require_chalk4 = __commonJS({
|
|
|
189487
189487
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
189488
189488
|
parts.push(String(strings.raw[i]));
|
|
189489
189489
|
}
|
|
189490
|
-
return template(
|
|
189490
|
+
return template(chalk8, parts.join(""));
|
|
189491
189491
|
}
|
|
189492
189492
|
Object.defineProperties(Chalk.prototype, styles);
|
|
189493
189493
|
module2.exports = Chalk();
|
|
@@ -189510,17 +189510,17 @@ var require_lib28 = __commonJS({
|
|
|
189510
189510
|
var _helperValidatorIdentifier = require_lib4();
|
|
189511
189511
|
var _chalk = require_chalk4();
|
|
189512
189512
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
189513
|
-
function getDefs(
|
|
189513
|
+
function getDefs(chalk8) {
|
|
189514
189514
|
return {
|
|
189515
|
-
keyword:
|
|
189516
|
-
capitalized:
|
|
189517
|
-
jsxIdentifier:
|
|
189518
|
-
punctuator:
|
|
189519
|
-
number:
|
|
189520
|
-
string:
|
|
189521
|
-
regex:
|
|
189522
|
-
comment:
|
|
189523
|
-
invalid:
|
|
189515
|
+
keyword: chalk8.cyan,
|
|
189516
|
+
capitalized: chalk8.yellow,
|
|
189517
|
+
jsxIdentifier: chalk8.yellow,
|
|
189518
|
+
punctuator: chalk8.yellow,
|
|
189519
|
+
number: chalk8.magenta,
|
|
189520
|
+
string: chalk8.green,
|
|
189521
|
+
regex: chalk8.magenta,
|
|
189522
|
+
comment: chalk8.grey,
|
|
189523
|
+
invalid: chalk8.white.bgRed.bold
|
|
189524
189524
|
};
|
|
189525
189525
|
}
|
|
189526
189526
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -189585,8 +189585,8 @@ var require_lib28 = __commonJS({
|
|
|
189585
189585
|
}
|
|
189586
189586
|
function highlight(code, options = {}) {
|
|
189587
189587
|
if (code !== "" && shouldHighlight(options)) {
|
|
189588
|
-
const
|
|
189589
|
-
const defs = getDefs(
|
|
189588
|
+
const chalk8 = getChalk(options);
|
|
189589
|
+
const defs = getDefs(chalk8);
|
|
189590
189590
|
return highlightTokens(defs, code);
|
|
189591
189591
|
} else {
|
|
189592
189592
|
return code;
|
|
@@ -189606,11 +189606,11 @@ var require_lib29 = __commonJS({
|
|
|
189606
189606
|
exports.default = _default;
|
|
189607
189607
|
var _highlight = require_lib28();
|
|
189608
189608
|
var deprecationWarningShown = false;
|
|
189609
|
-
function getDefs(
|
|
189609
|
+
function getDefs(chalk8) {
|
|
189610
189610
|
return {
|
|
189611
|
-
gutter:
|
|
189612
|
-
marker:
|
|
189613
|
-
message:
|
|
189611
|
+
gutter: chalk8.grey,
|
|
189612
|
+
marker: chalk8.red.bold,
|
|
189613
|
+
message: chalk8.red.bold
|
|
189614
189614
|
};
|
|
189615
189615
|
}
|
|
189616
189616
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -189672,8 +189672,8 @@ var require_lib29 = __commonJS({
|
|
|
189672
189672
|
}
|
|
189673
189673
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
189674
189674
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
189675
|
-
const
|
|
189676
|
-
const defs = getDefs(
|
|
189675
|
+
const chalk8 = (0, _highlight.getChalk)(opts);
|
|
189676
|
+
const defs = getDefs(chalk8);
|
|
189677
189677
|
const maybeHighlight = (chalkFn, string) => {
|
|
189678
189678
|
return highlighted ? chalkFn(string) : string;
|
|
189679
189679
|
};
|
|
@@ -189712,7 +189712,7 @@ var require_lib29 = __commonJS({
|
|
|
189712
189712
|
${frame}`;
|
|
189713
189713
|
}
|
|
189714
189714
|
if (highlighted) {
|
|
189715
|
-
return
|
|
189715
|
+
return chalk8.reset(frame);
|
|
189716
189716
|
} else {
|
|
189717
189717
|
return frame;
|
|
189718
189718
|
}
|
|
@@ -307955,14 +307955,14 @@ var require_third_party = __commonJS({
|
|
|
307955
307955
|
}
|
|
307956
307956
|
return results;
|
|
307957
307957
|
}
|
|
307958
|
-
function buildStyle(
|
|
307958
|
+
function buildStyle(chalk8, styles) {
|
|
307959
307959
|
const enabled = {};
|
|
307960
307960
|
for (const layer of styles) {
|
|
307961
307961
|
for (const style of layer.styles) {
|
|
307962
307962
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
307963
307963
|
}
|
|
307964
307964
|
}
|
|
307965
|
-
let current =
|
|
307965
|
+
let current = chalk8;
|
|
307966
307966
|
for (const styleName of Object.keys(enabled)) {
|
|
307967
307967
|
if (Array.isArray(enabled[styleName])) {
|
|
307968
307968
|
if (!(styleName in current)) {
|
|
@@ -307977,7 +307977,7 @@ var require_third_party = __commonJS({
|
|
|
307977
307977
|
}
|
|
307978
307978
|
return current;
|
|
307979
307979
|
}
|
|
307980
|
-
module22.exports = (
|
|
307980
|
+
module22.exports = (chalk8, tmp) => {
|
|
307981
307981
|
const styles = [];
|
|
307982
307982
|
const chunks = [];
|
|
307983
307983
|
let chunk = [];
|
|
@@ -307987,7 +307987,7 @@ var require_third_party = __commonJS({
|
|
|
307987
307987
|
} else if (style) {
|
|
307988
307988
|
const str = chunk.join("");
|
|
307989
307989
|
chunk = [];
|
|
307990
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
|
307990
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk8, styles)(str));
|
|
307991
307991
|
styles.push({
|
|
307992
307992
|
inverse,
|
|
307993
307993
|
styles: parseStyle(style)
|
|
@@ -307996,7 +307996,7 @@ var require_third_party = __commonJS({
|
|
|
307996
307996
|
if (styles.length === 0) {
|
|
307997
307997
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
307998
307998
|
}
|
|
307999
|
-
chunks.push(buildStyle(
|
|
307999
|
+
chunks.push(buildStyle(chalk8, styles)(chunk.join("")));
|
|
308000
308000
|
chunk = [];
|
|
308001
308001
|
styles.pop();
|
|
308002
308002
|
} else {
|
|
@@ -308031,16 +308031,16 @@ var require_third_party = __commonJS({
|
|
|
308031
308031
|
}
|
|
308032
308032
|
function Chalk(options) {
|
|
308033
308033
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
308034
|
-
const
|
|
308035
|
-
applyOptions(
|
|
308036
|
-
|
|
308034
|
+
const chalk8 = {};
|
|
308035
|
+
applyOptions(chalk8, options);
|
|
308036
|
+
chalk8.template = function() {
|
|
308037
308037
|
const args = [].slice.call(arguments);
|
|
308038
|
-
return chalkTag.apply(null, [
|
|
308038
|
+
return chalkTag.apply(null, [chalk8.template].concat(args));
|
|
308039
308039
|
};
|
|
308040
|
-
Object.setPrototypeOf(
|
|
308041
|
-
Object.setPrototypeOf(
|
|
308042
|
-
|
|
308043
|
-
return
|
|
308040
|
+
Object.setPrototypeOf(chalk8, Chalk.prototype);
|
|
308041
|
+
Object.setPrototypeOf(chalk8.template, chalk8);
|
|
308042
|
+
chalk8.template.constructor = Chalk;
|
|
308043
|
+
return chalk8.template;
|
|
308044
308044
|
}
|
|
308045
308045
|
applyOptions(this, options);
|
|
308046
308046
|
}
|
|
@@ -308159,7 +308159,7 @@ var require_third_party = __commonJS({
|
|
|
308159
308159
|
ansiStyles.dim.open = originalDim;
|
|
308160
308160
|
return str;
|
|
308161
308161
|
}
|
|
308162
|
-
function chalkTag(
|
|
308162
|
+
function chalkTag(chalk8, strings) {
|
|
308163
308163
|
if (!Array.isArray(strings)) {
|
|
308164
308164
|
return [].slice.call(arguments, 1).join(" ");
|
|
308165
308165
|
}
|
|
@@ -308169,7 +308169,7 @@ var require_third_party = __commonJS({
|
|
|
308169
308169
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
308170
308170
|
parts.push(String(strings.raw[i]));
|
|
308171
308171
|
}
|
|
308172
|
-
return template(
|
|
308172
|
+
return template(chalk8, parts.join(""));
|
|
308173
308173
|
}
|
|
308174
308174
|
Object.defineProperties(Chalk.prototype, styles);
|
|
308175
308175
|
module22.exports = Chalk();
|
|
@@ -308190,17 +308190,17 @@ var require_third_party = __commonJS({
|
|
|
308190
308190
|
var _helperValidatorIdentifier = require_lib49();
|
|
308191
308191
|
var _chalk = require_chalk5();
|
|
308192
308192
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
308193
|
-
function getDefs(
|
|
308193
|
+
function getDefs(chalk8) {
|
|
308194
308194
|
return {
|
|
308195
|
-
keyword:
|
|
308196
|
-
capitalized:
|
|
308197
|
-
jsxIdentifier:
|
|
308198
|
-
punctuator:
|
|
308199
|
-
number:
|
|
308200
|
-
string:
|
|
308201
|
-
regex:
|
|
308202
|
-
comment:
|
|
308203
|
-
invalid:
|
|
308195
|
+
keyword: chalk8.cyan,
|
|
308196
|
+
capitalized: chalk8.yellow,
|
|
308197
|
+
jsxIdentifier: chalk8.yellow,
|
|
308198
|
+
punctuator: chalk8.yellow,
|
|
308199
|
+
number: chalk8.magenta,
|
|
308200
|
+
string: chalk8.green,
|
|
308201
|
+
regex: chalk8.magenta,
|
|
308202
|
+
comment: chalk8.grey,
|
|
308203
|
+
invalid: chalk8.white.bgRed.bold
|
|
308204
308204
|
};
|
|
308205
308205
|
}
|
|
308206
308206
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -308265,8 +308265,8 @@ var require_third_party = __commonJS({
|
|
|
308265
308265
|
}
|
|
308266
308266
|
function highlight(code, options = {}) {
|
|
308267
308267
|
if (code !== "" && shouldHighlight(options)) {
|
|
308268
|
-
const
|
|
308269
|
-
const defs = getDefs(
|
|
308268
|
+
const chalk8 = getChalk(options);
|
|
308269
|
+
const defs = getDefs(chalk8);
|
|
308270
308270
|
return highlightTokens(defs, code);
|
|
308271
308271
|
} else {
|
|
308272
308272
|
return code;
|
|
@@ -308284,11 +308284,11 @@ var require_third_party = __commonJS({
|
|
|
308284
308284
|
exports2.default = _default;
|
|
308285
308285
|
var _highlight = require_lib210();
|
|
308286
308286
|
var deprecationWarningShown = false;
|
|
308287
|
-
function getDefs(
|
|
308287
|
+
function getDefs(chalk8) {
|
|
308288
308288
|
return {
|
|
308289
|
-
gutter:
|
|
308290
|
-
marker:
|
|
308291
|
-
message:
|
|
308289
|
+
gutter: chalk8.grey,
|
|
308290
|
+
marker: chalk8.red.bold,
|
|
308291
|
+
message: chalk8.red.bold
|
|
308292
308292
|
};
|
|
308293
308293
|
}
|
|
308294
308294
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -308350,8 +308350,8 @@ var require_third_party = __commonJS({
|
|
|
308350
308350
|
}
|
|
308351
308351
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
308352
308352
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
308353
|
-
const
|
|
308354
|
-
const defs = getDefs(
|
|
308353
|
+
const chalk8 = (0, _highlight.getChalk)(opts);
|
|
308354
|
+
const defs = getDefs(chalk8);
|
|
308355
308355
|
const maybeHighlight = (chalkFn, string) => {
|
|
308356
308356
|
return highlighted ? chalkFn(string) : string;
|
|
308357
308357
|
};
|
|
@@ -308390,7 +308390,7 @@ var require_third_party = __commonJS({
|
|
|
308390
308390
|
${frame}`;
|
|
308391
308391
|
}
|
|
308392
308392
|
if (highlighted) {
|
|
308393
|
-
return
|
|
308393
|
+
return chalk8.reset(frame);
|
|
308394
308394
|
} else {
|
|
308395
308395
|
return frame;
|
|
308396
308396
|
}
|
|
@@ -495931,14 +495931,14 @@ var require_prettier = __commonJS({
|
|
|
495931
495931
|
}
|
|
495932
495932
|
return results;
|
|
495933
495933
|
}
|
|
495934
|
-
function buildStyle(
|
|
495934
|
+
function buildStyle(chalk8, styles) {
|
|
495935
495935
|
const enabled = {};
|
|
495936
495936
|
for (const layer of styles) {
|
|
495937
495937
|
for (const style of layer.styles) {
|
|
495938
495938
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
495939
495939
|
}
|
|
495940
495940
|
}
|
|
495941
|
-
let current =
|
|
495941
|
+
let current = chalk8;
|
|
495942
495942
|
for (const styleName of Object.keys(enabled)) {
|
|
495943
495943
|
if (Array.isArray(enabled[styleName])) {
|
|
495944
495944
|
if (!(styleName in current)) {
|
|
@@ -495953,7 +495953,7 @@ var require_prettier = __commonJS({
|
|
|
495953
495953
|
}
|
|
495954
495954
|
return current;
|
|
495955
495955
|
}
|
|
495956
|
-
module22.exports = (
|
|
495956
|
+
module22.exports = (chalk8, tmp) => {
|
|
495957
495957
|
const styles = [];
|
|
495958
495958
|
const chunks = [];
|
|
495959
495959
|
let chunk = [];
|
|
@@ -495963,7 +495963,7 @@ var require_prettier = __commonJS({
|
|
|
495963
495963
|
} else if (style) {
|
|
495964
495964
|
const str = chunk.join("");
|
|
495965
495965
|
chunk = [];
|
|
495966
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
|
495966
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk8, styles)(str));
|
|
495967
495967
|
styles.push({
|
|
495968
495968
|
inverse,
|
|
495969
495969
|
styles: parseStyle(style)
|
|
@@ -495972,7 +495972,7 @@ var require_prettier = __commonJS({
|
|
|
495972
495972
|
if (styles.length === 0) {
|
|
495973
495973
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
495974
495974
|
}
|
|
495975
|
-
chunks.push(buildStyle(
|
|
495975
|
+
chunks.push(buildStyle(chalk8, styles)(chunk.join("")));
|
|
495976
495976
|
chunk = [];
|
|
495977
495977
|
styles.pop();
|
|
495978
495978
|
} else {
|
|
@@ -496007,16 +496007,16 @@ var require_prettier = __commonJS({
|
|
|
496007
496007
|
}
|
|
496008
496008
|
function Chalk(options) {
|
|
496009
496009
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
496010
|
-
const
|
|
496011
|
-
applyOptions(
|
|
496012
|
-
|
|
496010
|
+
const chalk8 = {};
|
|
496011
|
+
applyOptions(chalk8, options);
|
|
496012
|
+
chalk8.template = function() {
|
|
496013
496013
|
const args = [].slice.call(arguments);
|
|
496014
|
-
return chalkTag.apply(null, [
|
|
496014
|
+
return chalkTag.apply(null, [chalk8.template].concat(args));
|
|
496015
496015
|
};
|
|
496016
|
-
Object.setPrototypeOf(
|
|
496017
|
-
Object.setPrototypeOf(
|
|
496018
|
-
|
|
496019
|
-
return
|
|
496016
|
+
Object.setPrototypeOf(chalk8, Chalk.prototype);
|
|
496017
|
+
Object.setPrototypeOf(chalk8.template, chalk8);
|
|
496018
|
+
chalk8.template.constructor = Chalk;
|
|
496019
|
+
return chalk8.template;
|
|
496020
496020
|
}
|
|
496021
496021
|
applyOptions(this, options);
|
|
496022
496022
|
}
|
|
@@ -496135,7 +496135,7 @@ var require_prettier = __commonJS({
|
|
|
496135
496135
|
ansiStyles.dim.open = originalDim;
|
|
496136
496136
|
return str;
|
|
496137
496137
|
}
|
|
496138
|
-
function chalkTag(
|
|
496138
|
+
function chalkTag(chalk8, strings) {
|
|
496139
496139
|
if (!Array.isArray(strings)) {
|
|
496140
496140
|
return [].slice.call(arguments, 1).join(" ");
|
|
496141
496141
|
}
|
|
@@ -496145,7 +496145,7 @@ var require_prettier = __commonJS({
|
|
|
496145
496145
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
496146
496146
|
parts.push(String(strings.raw[i]));
|
|
496147
496147
|
}
|
|
496148
|
-
return template(
|
|
496148
|
+
return template(chalk8, parts.join(""));
|
|
496149
496149
|
}
|
|
496150
496150
|
Object.defineProperties(Chalk.prototype, styles);
|
|
496151
496151
|
module22.exports = Chalk();
|
|
@@ -497624,14 +497624,14 @@ var require_prettier = __commonJS({
|
|
|
497624
497624
|
}
|
|
497625
497625
|
return results;
|
|
497626
497626
|
}
|
|
497627
|
-
function buildStyle(
|
|
497627
|
+
function buildStyle(chalk8, styles) {
|
|
497628
497628
|
const enabled = {};
|
|
497629
497629
|
for (const layer of styles) {
|
|
497630
497630
|
for (const style of layer.styles) {
|
|
497631
497631
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
497632
497632
|
}
|
|
497633
497633
|
}
|
|
497634
|
-
let current =
|
|
497634
|
+
let current = chalk8;
|
|
497635
497635
|
for (const styleName of Object.keys(enabled)) {
|
|
497636
497636
|
if (Array.isArray(enabled[styleName])) {
|
|
497637
497637
|
if (!(styleName in current)) {
|
|
@@ -497646,7 +497646,7 @@ var require_prettier = __commonJS({
|
|
|
497646
497646
|
}
|
|
497647
497647
|
return current;
|
|
497648
497648
|
}
|
|
497649
|
-
module22.exports = (
|
|
497649
|
+
module22.exports = (chalk8, tmp) => {
|
|
497650
497650
|
const styles = [];
|
|
497651
497651
|
const chunks = [];
|
|
497652
497652
|
let chunk = [];
|
|
@@ -497656,7 +497656,7 @@ var require_prettier = __commonJS({
|
|
|
497656
497656
|
} else if (style) {
|
|
497657
497657
|
const str = chunk.join("");
|
|
497658
497658
|
chunk = [];
|
|
497659
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
|
497659
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk8, styles)(str));
|
|
497660
497660
|
styles.push({
|
|
497661
497661
|
inverse,
|
|
497662
497662
|
styles: parseStyle(style)
|
|
@@ -497665,7 +497665,7 @@ var require_prettier = __commonJS({
|
|
|
497665
497665
|
if (styles.length === 0) {
|
|
497666
497666
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
497667
497667
|
}
|
|
497668
|
-
chunks.push(buildStyle(
|
|
497668
|
+
chunks.push(buildStyle(chalk8, styles)(chunk.join("")));
|
|
497669
497669
|
chunk = [];
|
|
497670
497670
|
styles.pop();
|
|
497671
497671
|
} else {
|
|
@@ -497700,16 +497700,16 @@ var require_prettier = __commonJS({
|
|
|
497700
497700
|
}
|
|
497701
497701
|
function Chalk(options) {
|
|
497702
497702
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
497703
|
-
const
|
|
497704
|
-
applyOptions(
|
|
497705
|
-
|
|
497703
|
+
const chalk8 = {};
|
|
497704
|
+
applyOptions(chalk8, options);
|
|
497705
|
+
chalk8.template = function() {
|
|
497706
497706
|
const args = [].slice.call(arguments);
|
|
497707
|
-
return chalkTag.apply(null, [
|
|
497707
|
+
return chalkTag.apply(null, [chalk8.template].concat(args));
|
|
497708
497708
|
};
|
|
497709
|
-
Object.setPrototypeOf(
|
|
497710
|
-
Object.setPrototypeOf(
|
|
497711
|
-
|
|
497712
|
-
return
|
|
497709
|
+
Object.setPrototypeOf(chalk8, Chalk.prototype);
|
|
497710
|
+
Object.setPrototypeOf(chalk8.template, chalk8);
|
|
497711
|
+
chalk8.template.constructor = Chalk;
|
|
497712
|
+
return chalk8.template;
|
|
497713
497713
|
}
|
|
497714
497714
|
applyOptions(this, options);
|
|
497715
497715
|
}
|
|
@@ -497828,7 +497828,7 @@ var require_prettier = __commonJS({
|
|
|
497828
497828
|
ansiStyles.dim.open = originalDim;
|
|
497829
497829
|
return str;
|
|
497830
497830
|
}
|
|
497831
|
-
function chalkTag(
|
|
497831
|
+
function chalkTag(chalk8, strings) {
|
|
497832
497832
|
if (!Array.isArray(strings)) {
|
|
497833
497833
|
return [].slice.call(arguments, 1).join(" ");
|
|
497834
497834
|
}
|
|
@@ -497838,7 +497838,7 @@ var require_prettier = __commonJS({
|
|
|
497838
497838
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
497839
497839
|
parts.push(String(strings.raw[i]));
|
|
497840
497840
|
}
|
|
497841
|
-
return template(
|
|
497841
|
+
return template(chalk8, parts.join(""));
|
|
497842
497842
|
}
|
|
497843
497843
|
Object.defineProperties(Chalk.prototype, styles);
|
|
497844
497844
|
module22.exports = Chalk();
|
|
@@ -497859,17 +497859,17 @@ var require_prettier = __commonJS({
|
|
|
497859
497859
|
var _helperValidatorIdentifier = require_lib310();
|
|
497860
497860
|
var _chalk = require_chalk22();
|
|
497861
497861
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
497862
|
-
function getDefs(
|
|
497862
|
+
function getDefs(chalk8) {
|
|
497863
497863
|
return {
|
|
497864
|
-
keyword:
|
|
497865
|
-
capitalized:
|
|
497866
|
-
jsxIdentifier:
|
|
497867
|
-
punctuator:
|
|
497868
|
-
number:
|
|
497869
|
-
string:
|
|
497870
|
-
regex:
|
|
497871
|
-
comment:
|
|
497872
|
-
invalid:
|
|
497864
|
+
keyword: chalk8.cyan,
|
|
497865
|
+
capitalized: chalk8.yellow,
|
|
497866
|
+
jsxIdentifier: chalk8.yellow,
|
|
497867
|
+
punctuator: chalk8.yellow,
|
|
497868
|
+
number: chalk8.magenta,
|
|
497869
|
+
string: chalk8.green,
|
|
497870
|
+
regex: chalk8.magenta,
|
|
497871
|
+
comment: chalk8.grey,
|
|
497872
|
+
invalid: chalk8.white.bgRed.bold
|
|
497873
497873
|
};
|
|
497874
497874
|
}
|
|
497875
497875
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -497934,8 +497934,8 @@ var require_prettier = __commonJS({
|
|
|
497934
497934
|
}
|
|
497935
497935
|
function highlight(code, options = {}) {
|
|
497936
497936
|
if (code !== "" && shouldHighlight(options)) {
|
|
497937
|
-
const
|
|
497938
|
-
const defs = getDefs(
|
|
497937
|
+
const chalk8 = getChalk(options);
|
|
497938
|
+
const defs = getDefs(chalk8);
|
|
497939
497939
|
return highlightTokens(defs, code);
|
|
497940
497940
|
} else {
|
|
497941
497941
|
return code;
|
|
@@ -497953,11 +497953,11 @@ var require_prettier = __commonJS({
|
|
|
497953
497953
|
exports2.default = _default;
|
|
497954
497954
|
var _highlight = require_lib410();
|
|
497955
497955
|
var deprecationWarningShown = false;
|
|
497956
|
-
function getDefs(
|
|
497956
|
+
function getDefs(chalk8) {
|
|
497957
497957
|
return {
|
|
497958
|
-
gutter:
|
|
497959
|
-
marker:
|
|
497960
|
-
message:
|
|
497958
|
+
gutter: chalk8.grey,
|
|
497959
|
+
marker: chalk8.red.bold,
|
|
497960
|
+
message: chalk8.red.bold
|
|
497961
497961
|
};
|
|
497962
497962
|
}
|
|
497963
497963
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -498019,8 +498019,8 @@ var require_prettier = __commonJS({
|
|
|
498019
498019
|
}
|
|
498020
498020
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
498021
498021
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
498022
|
-
const
|
|
498023
|
-
const defs = getDefs(
|
|
498022
|
+
const chalk8 = (0, _highlight.getChalk)(opts);
|
|
498023
|
+
const defs = getDefs(chalk8);
|
|
498024
498024
|
const maybeHighlight = (chalkFn, string) => {
|
|
498025
498025
|
return highlighted ? chalkFn(string) : string;
|
|
498026
498026
|
};
|
|
@@ -498059,7 +498059,7 @@ var require_prettier = __commonJS({
|
|
|
498059
498059
|
${frame}`;
|
|
498060
498060
|
}
|
|
498061
498061
|
if (highlighted) {
|
|
498062
|
-
return
|
|
498062
|
+
return chalk8.reset(frame);
|
|
498063
498063
|
} else {
|
|
498064
498064
|
return frame;
|
|
498065
498065
|
}
|
|
@@ -730078,6 +730078,7 @@ __export(lib_exports, {
|
|
|
730078
730078
|
getProjectApiToken: () => getProjectApiToken,
|
|
730079
730079
|
handleError: () => handleError,
|
|
730080
730080
|
initPlasmic: () => initPlasmic,
|
|
730081
|
+
localizationStrings: () => localizationStrings,
|
|
730081
730082
|
logger: () => logger,
|
|
730082
730083
|
setMetadataEnv: () => setMetadataEnv,
|
|
730083
730084
|
sync: () => sync,
|
|
@@ -734762,6 +734763,101 @@ function asyncOneAtATime(f, bounceValue) {
|
|
|
734762
734763
|
});
|
|
734763
734764
|
};
|
|
734764
734765
|
}
|
|
734766
|
+
|
|
734767
|
+
// src/actions/localization-strings.ts
|
|
734768
|
+
var import_chalk7 = __toESM(require_source());
|
|
734769
|
+
var import_lodash19 = __toESM(require_lodash());
|
|
734770
|
+
async function localizationStrings(opts) {
|
|
734771
|
+
var _a, _b, _c;
|
|
734772
|
+
if (!opts.baseDir) {
|
|
734773
|
+
opts.baseDir = process.cwd();
|
|
734774
|
+
}
|
|
734775
|
+
const maybeConfigFile = opts.config || findConfigFile(opts.baseDir, { traverseParents: true });
|
|
734776
|
+
let projectSpecs = opts.projects;
|
|
734777
|
+
let keyScheme = opts.keyScheme;
|
|
734778
|
+
let tagPrefix = opts.tagPrefix;
|
|
734779
|
+
const projectTokensFromConfig = [];
|
|
734780
|
+
if (maybeConfigFile) {
|
|
734781
|
+
logger.info(`Using settings from ${maybeConfigFile}...`);
|
|
734782
|
+
const context = await getContext(opts, { enableSkipAuth: true });
|
|
734783
|
+
context.config.projects.forEach((p) => {
|
|
734784
|
+
projectTokensFromConfig.push((0, import_lodash19.pick)(p, "projectId", "projectApiToken"));
|
|
734785
|
+
});
|
|
734786
|
+
if (!projectSpecs || projectSpecs.length === 0) {
|
|
734787
|
+
projectSpecs = context.config.projects.map(
|
|
734788
|
+
(p) => p.projectId + (p.version === "latest" ? "" : `@${p.version}`)
|
|
734789
|
+
);
|
|
734790
|
+
}
|
|
734791
|
+
if (!keyScheme) {
|
|
734792
|
+
keyScheme = (_a = context.config.i18n) == null ? void 0 : _a.keyScheme;
|
|
734793
|
+
}
|
|
734794
|
+
if (!tagPrefix) {
|
|
734795
|
+
tagPrefix = (_b = context.config.i18n) == null ? void 0 : _b.tagPrefix;
|
|
734796
|
+
}
|
|
734797
|
+
}
|
|
734798
|
+
if (!projectSpecs || projectSpecs.length === 0) {
|
|
734799
|
+
throw new HandledError(`Missing projects.`);
|
|
734800
|
+
}
|
|
734801
|
+
const parsedProjectTokens = ((_c = opts.projectTokens) != null ? _c : []).map((val) => {
|
|
734802
|
+
const [projectId, projectApiToken] = val.split(":");
|
|
734803
|
+
if (!projectId || !projectApiToken) {
|
|
734804
|
+
throw new Error(
|
|
734805
|
+
`Invalid value passed to '--project-tokens': ${val}
|
|
734806
|
+
Please provide the API tokens with the format PROJECT_ID:PROJECT_API_TOKEN`
|
|
734807
|
+
);
|
|
734808
|
+
}
|
|
734809
|
+
return {
|
|
734810
|
+
projectId: projectId.trim(),
|
|
734811
|
+
projectApiToken: projectApiToken.trim()
|
|
734812
|
+
};
|
|
734813
|
+
});
|
|
734814
|
+
const output = !opts.output ? opts.format === "po" ? "data.po" : "data.json" : opts.output;
|
|
734815
|
+
const auth2 = await getCurrentAuth(opts.auth);
|
|
734816
|
+
const projectIdsAndTokens = [
|
|
734817
|
+
...parsedProjectTokens,
|
|
734818
|
+
...projectTokensFromConfig
|
|
734819
|
+
].filter((v) => !!v && !!v.projectId && !!v.projectApiToken);
|
|
734820
|
+
if (auth2 || projectIdsAndTokens.length > 0) {
|
|
734821
|
+
const api = new PlasmicApi(
|
|
734822
|
+
auth2 != null ? auth2 : {
|
|
734823
|
+
host: DEFAULT_HOST,
|
|
734824
|
+
user: "",
|
|
734825
|
+
token: ""
|
|
734826
|
+
}
|
|
734827
|
+
);
|
|
734828
|
+
logger.info(
|
|
734829
|
+
`Generating localization strings for ${import_chalk7.default.bold(
|
|
734830
|
+
projectSpecs.join(", ")
|
|
734831
|
+
)}...`
|
|
734832
|
+
);
|
|
734833
|
+
const data = await api.genLocalizationStrings(
|
|
734834
|
+
projectSpecs,
|
|
734835
|
+
opts.format,
|
|
734836
|
+
keyScheme != null ? keyScheme : "content",
|
|
734837
|
+
tagPrefix,
|
|
734838
|
+
projectIdsAndTokens,
|
|
734839
|
+
opts.excludeDeps
|
|
734840
|
+
);
|
|
734841
|
+
if (existsBuffered(output)) {
|
|
734842
|
+
const overwrite = await confirmWithUser(
|
|
734843
|
+
`File ${output} already exists. Do you want to overwrite?`,
|
|
734844
|
+
opts.forceOverwrite || opts.yes
|
|
734845
|
+
);
|
|
734846
|
+
if (!overwrite) {
|
|
734847
|
+
throw new HandledError(
|
|
734848
|
+
`Cannot write to ${output}; file already exists.`
|
|
734849
|
+
);
|
|
734850
|
+
}
|
|
734851
|
+
}
|
|
734852
|
+
writeFileText(output, data);
|
|
734853
|
+
logger.info(`Localization strings have been written to ${output}`);
|
|
734854
|
+
} else {
|
|
734855
|
+
logger.error(`Missing auth information. You can follow any of the steps below to fix it:
|
|
734856
|
+
- Run 'plasmic auth'
|
|
734857
|
+
- Provide the project API token to 'plasmic.json'
|
|
734858
|
+
- Or provide the project API token through '--project-tokens' flag`);
|
|
734859
|
+
}
|
|
734860
|
+
}
|
|
734765
734861
|
// Annotate the CommonJS export names for ESM import in node:
|
|
734766
734862
|
0 && (module.exports = {
|
|
734767
734863
|
HandledError,
|
|
@@ -734770,6 +734866,7 @@ function asyncOneAtATime(f, bounceValue) {
|
|
|
734770
734866
|
getProjectApiToken,
|
|
734771
734867
|
handleError,
|
|
734772
734868
|
initPlasmic,
|
|
734869
|
+
localizationStrings,
|
|
734773
734870
|
logger,
|
|
734774
734871
|
setMetadataEnv,
|
|
734775
734872
|
sync,
|