@dpuse/dpuse-development 0.3.569 → 0.3.571
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/dpuse-development.es.js +794 -743
- package/dist/dpuse-development.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { promisify as r } from "node:util";
|
|
|
4
4
|
import { execFile as i, spawn as a } from "node:child_process";
|
|
5
5
|
import { fileURLToPath as o } from "node:url";
|
|
6
6
|
//#region \0rolldown/runtime.js
|
|
7
|
-
var s = Object.defineProperty, c = /* @__PURE__ */ ((e, t) => {
|
|
7
|
+
var s = Object.defineProperty, c = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), l = /* @__PURE__ */ ((e, t) => {
|
|
8
8
|
let n = {};
|
|
9
9
|
for (var r in e) s(n, r, {
|
|
10
10
|
get: e[r],
|
|
@@ -12,29 +12,29 @@ var s = Object.defineProperty, c = /* @__PURE__ */ ((e, t) => {
|
|
|
12
12
|
});
|
|
13
13
|
return t || s(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
14
14
|
})({
|
|
15
|
-
Node: () =>
|
|
15
|
+
Node: () => at,
|
|
16
16
|
Parser: () => k,
|
|
17
|
-
Position: () =>
|
|
18
|
-
SourceLocation: () =>
|
|
17
|
+
Position: () => ge,
|
|
18
|
+
SourceLocation: () => _e,
|
|
19
19
|
TokContext: () => P,
|
|
20
|
-
Token: () =>
|
|
21
|
-
TokenType: () =>
|
|
22
|
-
defaultOptions: () =>
|
|
23
|
-
getLineInfo: () =>
|
|
24
|
-
isIdentifierChar: () =>
|
|
25
|
-
isIdentifierStart: () =>
|
|
26
|
-
isNewLine: () =>
|
|
27
|
-
keywordTypes: () =>
|
|
20
|
+
Token: () => Jt,
|
|
21
|
+
TokenType: () => x,
|
|
22
|
+
defaultOptions: () => ye,
|
|
23
|
+
getLineInfo: () => ve,
|
|
24
|
+
isIdentifierChar: () => b,
|
|
25
|
+
isIdentifierStart: () => y,
|
|
26
|
+
isNewLine: () => ie,
|
|
27
|
+
keywordTypes: () => ne,
|
|
28
28
|
lineBreak: () => D,
|
|
29
|
-
lineBreakG: () =>
|
|
30
|
-
nonASCIIwhitespace: () =>
|
|
31
|
-
parse: () =>
|
|
32
|
-
parseExpressionAt: () =>
|
|
29
|
+
lineBreakG: () => re,
|
|
30
|
+
nonASCIIwhitespace: () => oe,
|
|
31
|
+
parse: () => $t,
|
|
32
|
+
parseExpressionAt: () => en,
|
|
33
33
|
tokContexts: () => F,
|
|
34
34
|
tokTypes: () => E,
|
|
35
|
-
tokenizer: () =>
|
|
36
|
-
version: () =>
|
|
37
|
-
}),
|
|
35
|
+
tokenizer: () => tn,
|
|
36
|
+
version: () => Qt
|
|
37
|
+
}), u = [
|
|
38
38
|
509,
|
|
39
39
|
0,
|
|
40
40
|
227,
|
|
@@ -365,7 +365,7 @@ var s = Object.defineProperty, c = /* @__PURE__ */ ((e, t) => {
|
|
|
365
365
|
9,
|
|
366
366
|
787719,
|
|
367
367
|
239
|
|
368
|
-
],
|
|
368
|
+
], d = [
|
|
369
369
|
0,
|
|
370
370
|
11,
|
|
371
371
|
2,
|
|
@@ -984,135 +984,135 @@ var s = Object.defineProperty, c = /* @__PURE__ */ ((e, t) => {
|
|
|
984
984
|
4938,
|
|
985
985
|
6,
|
|
986
986
|
8489
|
|
987
|
-
],
|
|
987
|
+
], f = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", p = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", m = {
|
|
988
988
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
989
989
|
5: "class enum extends super const export import",
|
|
990
990
|
6: "enum",
|
|
991
991
|
strict: "implements interface let package private protected public static yield",
|
|
992
992
|
strictBind: "eval arguments"
|
|
993
|
-
},
|
|
994
|
-
5:
|
|
995
|
-
"5module":
|
|
996
|
-
6:
|
|
997
|
-
},
|
|
998
|
-
function
|
|
993
|
+
}, h = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", g = {
|
|
994
|
+
5: h,
|
|
995
|
+
"5module": h + " export import",
|
|
996
|
+
6: h + " const class extends export import super"
|
|
997
|
+
}, _ = /^in(stanceof)?$/, ee = RegExp("[" + p + "]"), te = RegExp("[" + p + f + "]");
|
|
998
|
+
function v(e, t) {
|
|
999
999
|
for (var n = 65536, r = 0; r < t.length; r += 2) {
|
|
1000
1000
|
if (n += t[r], n > e) return !1;
|
|
1001
1001
|
if (n += t[r + 1], n >= e) return !0;
|
|
1002
1002
|
}
|
|
1003
1003
|
return !1;
|
|
1004
1004
|
}
|
|
1005
|
-
function v(e, t) {
|
|
1006
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && _.test(String.fromCharCode(e)) : t === !1 ? !1 : te(e, u);
|
|
1007
|
-
}
|
|
1008
1005
|
function y(e, t) {
|
|
1009
|
-
return e <
|
|
1006
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && ee.test(String.fromCharCode(e)) : t === !1 ? !1 : v(e, d);
|
|
1007
|
+
}
|
|
1008
|
+
function b(e, t) {
|
|
1009
|
+
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && te.test(String.fromCharCode(e)) : t === !1 ? !1 : v(e, d) || v(e, u);
|
|
1010
1010
|
}
|
|
1011
|
-
var
|
|
1011
|
+
var x = function(e, t) {
|
|
1012
1012
|
t === void 0 && (t = {}), this.label = e, this.keyword = t.keyword, this.beforeExpr = !!t.beforeExpr, this.startsExpr = !!t.startsExpr, this.isLoop = !!t.isLoop, this.isAssign = !!t.isAssign, this.prefix = !!t.prefix, this.postfix = !!t.postfix, this.binop = t.binop || null, this.updateContext = null;
|
|
1013
1013
|
};
|
|
1014
|
-
function
|
|
1015
|
-
return new
|
|
1014
|
+
function S(e, t) {
|
|
1015
|
+
return new x(e, {
|
|
1016
1016
|
beforeExpr: !0,
|
|
1017
1017
|
binop: t
|
|
1018
1018
|
});
|
|
1019
1019
|
}
|
|
1020
|
-
var
|
|
1020
|
+
var C = { beforeExpr: !0 }, w = { startsExpr: !0 }, ne = {};
|
|
1021
1021
|
function T(e, t) {
|
|
1022
|
-
return t === void 0 && (t = {}), t.keyword = e,
|
|
1022
|
+
return t === void 0 && (t = {}), t.keyword = e, ne[e] = new x(e, t);
|
|
1023
1023
|
}
|
|
1024
1024
|
var E = {
|
|
1025
|
-
num: new
|
|
1026
|
-
regexp: new
|
|
1027
|
-
string: new
|
|
1028
|
-
name: new
|
|
1029
|
-
privateId: new
|
|
1030
|
-
eof: new
|
|
1031
|
-
bracketL: new
|
|
1025
|
+
num: new x("num", w),
|
|
1026
|
+
regexp: new x("regexp", w),
|
|
1027
|
+
string: new x("string", w),
|
|
1028
|
+
name: new x("name", w),
|
|
1029
|
+
privateId: new x("privateId", w),
|
|
1030
|
+
eof: new x("eof"),
|
|
1031
|
+
bracketL: new x("[", {
|
|
1032
1032
|
beforeExpr: !0,
|
|
1033
1033
|
startsExpr: !0
|
|
1034
1034
|
}),
|
|
1035
|
-
bracketR: new
|
|
1036
|
-
braceL: new
|
|
1035
|
+
bracketR: new x("]"),
|
|
1036
|
+
braceL: new x("{", {
|
|
1037
1037
|
beforeExpr: !0,
|
|
1038
1038
|
startsExpr: !0
|
|
1039
1039
|
}),
|
|
1040
|
-
braceR: new
|
|
1041
|
-
parenL: new
|
|
1040
|
+
braceR: new x("}"),
|
|
1041
|
+
parenL: new x("(", {
|
|
1042
1042
|
beforeExpr: !0,
|
|
1043
1043
|
startsExpr: !0
|
|
1044
1044
|
}),
|
|
1045
|
-
parenR: new
|
|
1046
|
-
comma: new
|
|
1047
|
-
semi: new
|
|
1048
|
-
colon: new
|
|
1049
|
-
dot: new
|
|
1050
|
-
question: new
|
|
1051
|
-
questionDot: new
|
|
1052
|
-
arrow: new
|
|
1053
|
-
template: new
|
|
1054
|
-
invalidTemplate: new
|
|
1055
|
-
ellipsis: new
|
|
1056
|
-
backQuote: new
|
|
1057
|
-
dollarBraceL: new
|
|
1045
|
+
parenR: new x(")"),
|
|
1046
|
+
comma: new x(",", C),
|
|
1047
|
+
semi: new x(";", C),
|
|
1048
|
+
colon: new x(":", C),
|
|
1049
|
+
dot: new x("."),
|
|
1050
|
+
question: new x("?", C),
|
|
1051
|
+
questionDot: new x("?."),
|
|
1052
|
+
arrow: new x("=>", C),
|
|
1053
|
+
template: new x("template"),
|
|
1054
|
+
invalidTemplate: new x("invalidTemplate"),
|
|
1055
|
+
ellipsis: new x("...", C),
|
|
1056
|
+
backQuote: new x("`", w),
|
|
1057
|
+
dollarBraceL: new x("${", {
|
|
1058
1058
|
beforeExpr: !0,
|
|
1059
1059
|
startsExpr: !0
|
|
1060
1060
|
}),
|
|
1061
|
-
eq: new
|
|
1061
|
+
eq: new x("=", {
|
|
1062
1062
|
beforeExpr: !0,
|
|
1063
1063
|
isAssign: !0
|
|
1064
1064
|
}),
|
|
1065
|
-
assign: new
|
|
1065
|
+
assign: new x("_=", {
|
|
1066
1066
|
beforeExpr: !0,
|
|
1067
1067
|
isAssign: !0
|
|
1068
1068
|
}),
|
|
1069
|
-
incDec: new
|
|
1069
|
+
incDec: new x("++/--", {
|
|
1070
1070
|
prefix: !0,
|
|
1071
1071
|
postfix: !0,
|
|
1072
1072
|
startsExpr: !0
|
|
1073
1073
|
}),
|
|
1074
|
-
prefix: new
|
|
1074
|
+
prefix: new x("!/~", {
|
|
1075
1075
|
beforeExpr: !0,
|
|
1076
1076
|
prefix: !0,
|
|
1077
1077
|
startsExpr: !0
|
|
1078
1078
|
}),
|
|
1079
|
-
logicalOR:
|
|
1080
|
-
logicalAND:
|
|
1081
|
-
bitwiseOR:
|
|
1082
|
-
bitwiseXOR:
|
|
1083
|
-
bitwiseAND:
|
|
1084
|
-
equality:
|
|
1085
|
-
relational:
|
|
1086
|
-
bitShift:
|
|
1087
|
-
plusMin: new
|
|
1079
|
+
logicalOR: S("||", 1),
|
|
1080
|
+
logicalAND: S("&&", 2),
|
|
1081
|
+
bitwiseOR: S("|", 3),
|
|
1082
|
+
bitwiseXOR: S("^", 4),
|
|
1083
|
+
bitwiseAND: S("&", 5),
|
|
1084
|
+
equality: S("==/!=/===/!==", 6),
|
|
1085
|
+
relational: S("</>/<=/>=", 7),
|
|
1086
|
+
bitShift: S("<</>>/>>>", 8),
|
|
1087
|
+
plusMin: new x("+/-", {
|
|
1088
1088
|
beforeExpr: !0,
|
|
1089
1089
|
binop: 9,
|
|
1090
1090
|
prefix: !0,
|
|
1091
1091
|
startsExpr: !0
|
|
1092
1092
|
}),
|
|
1093
|
-
modulo:
|
|
1094
|
-
star:
|
|
1095
|
-
slash:
|
|
1096
|
-
starstar: new
|
|
1097
|
-
coalesce:
|
|
1093
|
+
modulo: S("%", 10),
|
|
1094
|
+
star: S("*", 10),
|
|
1095
|
+
slash: S("/", 10),
|
|
1096
|
+
starstar: new x("**", { beforeExpr: !0 }),
|
|
1097
|
+
coalesce: S("??", 1),
|
|
1098
1098
|
_break: T("break"),
|
|
1099
|
-
_case: T("case",
|
|
1099
|
+
_case: T("case", C),
|
|
1100
1100
|
_catch: T("catch"),
|
|
1101
1101
|
_continue: T("continue"),
|
|
1102
1102
|
_debugger: T("debugger"),
|
|
1103
|
-
_default: T("default",
|
|
1103
|
+
_default: T("default", C),
|
|
1104
1104
|
_do: T("do", {
|
|
1105
1105
|
isLoop: !0,
|
|
1106
1106
|
beforeExpr: !0
|
|
1107
1107
|
}),
|
|
1108
|
-
_else: T("else",
|
|
1108
|
+
_else: T("else", C),
|
|
1109
1109
|
_finally: T("finally"),
|
|
1110
1110
|
_for: T("for", { isLoop: !0 }),
|
|
1111
|
-
_function: T("function",
|
|
1111
|
+
_function: T("function", w),
|
|
1112
1112
|
_if: T("if"),
|
|
1113
|
-
_return: T("return",
|
|
1113
|
+
_return: T("return", C),
|
|
1114
1114
|
_switch: T("switch"),
|
|
1115
|
-
_throw: T("throw",
|
|
1115
|
+
_throw: T("throw", C),
|
|
1116
1116
|
_try: T("try"),
|
|
1117
1117
|
_var: T("var"),
|
|
1118
1118
|
_const: T("const"),
|
|
@@ -1122,15 +1122,15 @@ var E = {
|
|
|
1122
1122
|
beforeExpr: !0,
|
|
1123
1123
|
startsExpr: !0
|
|
1124
1124
|
}),
|
|
1125
|
-
_this: T("this",
|
|
1126
|
-
_super: T("super",
|
|
1127
|
-
_class: T("class",
|
|
1128
|
-
_extends: T("extends",
|
|
1125
|
+
_this: T("this", w),
|
|
1126
|
+
_super: T("super", w),
|
|
1127
|
+
_class: T("class", w),
|
|
1128
|
+
_extends: T("extends", C),
|
|
1129
1129
|
_export: T("export"),
|
|
1130
|
-
_import: T("import",
|
|
1131
|
-
_null: T("null",
|
|
1132
|
-
_true: T("true",
|
|
1133
|
-
_false: T("false",
|
|
1130
|
+
_import: T("import", w),
|
|
1131
|
+
_null: T("null", w),
|
|
1132
|
+
_true: T("true", w),
|
|
1133
|
+
_false: T("false", w),
|
|
1134
1134
|
_in: T("in", {
|
|
1135
1135
|
beforeExpr: !0,
|
|
1136
1136
|
binop: 7
|
|
@@ -1154,46 +1154,46 @@ var E = {
|
|
|
1154
1154
|
prefix: !0,
|
|
1155
1155
|
startsExpr: !0
|
|
1156
1156
|
})
|
|
1157
|
-
}, D = /\r\n?|\n|\u2028|\u2029/,
|
|
1158
|
-
function
|
|
1157
|
+
}, D = /\r\n?|\n|\u2028|\u2029/, re = new RegExp(D.source, "g");
|
|
1158
|
+
function ie(e) {
|
|
1159
1159
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function ae(e, t, n) {
|
|
1162
1162
|
n === void 0 && (n = e.length);
|
|
1163
1163
|
for (var r = t; r < n; r++) {
|
|
1164
1164
|
var i = e.charCodeAt(r);
|
|
1165
|
-
if (
|
|
1165
|
+
if (ie(i)) return r < n - 1 && i === 13 && e.charCodeAt(r + 1) === 10 ? r + 2 : r + 1;
|
|
1166
1166
|
}
|
|
1167
1167
|
return -1;
|
|
1168
1168
|
}
|
|
1169
|
-
var
|
|
1170
|
-
return
|
|
1171
|
-
}),
|
|
1172
|
-
return
|
|
1173
|
-
}),
|
|
1174
|
-
function fe(e) {
|
|
1175
|
-
return de[e] || (de[e] = RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
1176
|
-
}
|
|
1169
|
+
var oe = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, O = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, se = Object.prototype, ce = se.hasOwnProperty, le = se.toString, ue = Object.hasOwn || (function(e, t) {
|
|
1170
|
+
return ce.call(e, t);
|
|
1171
|
+
}), de = Array.isArray || (function(e) {
|
|
1172
|
+
return le.call(e) === "[object Array]";
|
|
1173
|
+
}), fe = Object.create(null);
|
|
1177
1174
|
function pe(e) {
|
|
1175
|
+
return fe[e] || (fe[e] = RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
1176
|
+
}
|
|
1177
|
+
function me(e) {
|
|
1178
1178
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
1179
1179
|
}
|
|
1180
|
-
var
|
|
1180
|
+
var he = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, ge = function(e, t) {
|
|
1181
1181
|
this.line = e, this.column = t;
|
|
1182
1182
|
};
|
|
1183
|
-
|
|
1184
|
-
return new
|
|
1183
|
+
ge.prototype.offset = function(e) {
|
|
1184
|
+
return new ge(this.line, this.column + e);
|
|
1185
1185
|
};
|
|
1186
|
-
var
|
|
1186
|
+
var _e = function(e, t, n) {
|
|
1187
1187
|
this.start = t, this.end = n, e.sourceFile !== null && (this.source = e.sourceFile);
|
|
1188
1188
|
};
|
|
1189
|
-
function
|
|
1189
|
+
function ve(e, t) {
|
|
1190
1190
|
for (var n = 1, r = 0;;) {
|
|
1191
|
-
var i =
|
|
1192
|
-
if (i < 0) return new
|
|
1191
|
+
var i = ae(e, r, t);
|
|
1192
|
+
if (i < 0) return new ge(n, t - r);
|
|
1193
1193
|
++n, r = i;
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
|
-
var
|
|
1196
|
+
var ye = {
|
|
1197
1197
|
ecmaVersion: null,
|
|
1198
1198
|
sourceType: "script",
|
|
1199
1199
|
strict: !1,
|
|
@@ -1214,20 +1214,20 @@ var ve = {
|
|
|
1214
1214
|
sourceFile: null,
|
|
1215
1215
|
directSourceFile: null,
|
|
1216
1216
|
preserveParens: !1
|
|
1217
|
-
},
|
|
1218
|
-
function
|
|
1217
|
+
}, be = !1;
|
|
1218
|
+
function xe(e) {
|
|
1219
1219
|
var t = {};
|
|
1220
|
-
for (var n in
|
|
1221
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
1220
|
+
for (var n in ye) t[n] = e && ue(e, n) ? e[n] : ye[n];
|
|
1221
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!be && typeof console == "object" && console.warn && (be = !0, console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved ??= t.ecmaVersion < 5, (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), de(t.onToken)) {
|
|
1222
1222
|
var r = t.onToken;
|
|
1223
1223
|
t.onToken = function(e) {
|
|
1224
1224
|
return r.push(e);
|
|
1225
1225
|
};
|
|
1226
1226
|
}
|
|
1227
|
-
if (
|
|
1227
|
+
if (de(t.onComment) && (t.onComment = Se(t, t.onComment)), t.sourceType === "commonjs" && t.allowAwaitOutsideFunction) throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");
|
|
1228
1228
|
return t;
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function Se(e, t) {
|
|
1231
1231
|
return function(n, r, i, a, o, s) {
|
|
1232
1232
|
var c = {
|
|
1233
1233
|
type: n ? "Block" : "Line",
|
|
@@ -1235,19 +1235,19 @@ function xe(e, t) {
|
|
|
1235
1235
|
start: i,
|
|
1236
1236
|
end: a
|
|
1237
1237
|
};
|
|
1238
|
-
e.locations && (c.loc = new
|
|
1238
|
+
e.locations && (c.loc = new _e(this, o, s)), e.ranges && (c.range = [i, a]), t.push(c);
|
|
1239
1239
|
};
|
|
1240
1240
|
}
|
|
1241
|
-
var
|
|
1242
|
-
function
|
|
1243
|
-
return
|
|
1241
|
+
var Ce = 1, we = 2, Te = 4, Ee = 8, De = 16, Oe = 32, ke = 64, Ae = 128, je = 256, Me = 512, Ne = 1024, Pe = Ce | we | je;
|
|
1242
|
+
function Fe(e, t) {
|
|
1243
|
+
return we | (e ? Te : 0) | (t ? Ee : 0);
|
|
1244
1244
|
}
|
|
1245
|
-
var
|
|
1246
|
-
this.options = e =
|
|
1245
|
+
var Ie = 0, Le = 1, Re = 2, ze = 3, Be = 4, Ve = 5, k = function(e, t, n) {
|
|
1246
|
+
this.options = e = xe(e), this.sourceFile = e.sourceFile, this.keywords = pe(g[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
|
|
1247
1247
|
var r = "";
|
|
1248
|
-
e.allowReserved !== !0 && (r =
|
|
1249
|
-
var i = (r ? r + " " : "") +
|
|
1250
|
-
this.reservedWordsStrict =
|
|
1248
|
+
e.allowReserved !== !0 && (r = m[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (r += " await")), this.reservedWords = pe(r);
|
|
1249
|
+
var i = (r ? r + " " : "") + m.strict;
|
|
1250
|
+
this.reservedWordsStrict = pe(i), this.reservedWordsStrictBind = pe(i + " " + m.strictBind), this.input = String(t), this.containsEsc = !1, n ? (this.pos = n, this.lineStart = this.input.lastIndexOf("\n", n - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(D).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = E.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = e.sourceType === "module", this.strict = this.inModule || e.strict === !0 || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = Object.create(null), this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(this.options.sourceType === "commonjs" ? we : Ce), this.regexpState = null, this.privateNameStack = [];
|
|
1251
1251
|
}, A = {
|
|
1252
1252
|
inFunction: { configurable: !0 },
|
|
1253
1253
|
inGenerator: { configurable: !0 },
|
|
@@ -1267,37 +1267,37 @@ k.prototype.parse = function() {
|
|
|
1267
1267
|
return e.parseTopLevel(t);
|
|
1268
1268
|
});
|
|
1269
1269
|
}, A.inFunction.get = function() {
|
|
1270
|
-
return (this.currentVarScope().flags &
|
|
1270
|
+
return (this.currentVarScope().flags & we) > 0;
|
|
1271
1271
|
}, A.inGenerator.get = function() {
|
|
1272
|
-
return (this.currentVarScope().flags &
|
|
1272
|
+
return (this.currentVarScope().flags & Ee) > 0;
|
|
1273
1273
|
}, A.inAsync.get = function() {
|
|
1274
|
-
return (this.currentVarScope().flags &
|
|
1274
|
+
return (this.currentVarScope().flags & Te) > 0;
|
|
1275
1275
|
}, A.canAwait.get = function() {
|
|
1276
1276
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
1277
1277
|
var t = this.scopeStack[e].flags;
|
|
1278
|
-
if (t & (
|
|
1279
|
-
if (t &
|
|
1278
|
+
if (t & (je | Me)) return !1;
|
|
1279
|
+
if (t & we) return (t & Te) > 0;
|
|
1280
1280
|
}
|
|
1281
1281
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
1282
1282
|
}, A.allowReturn.get = function() {
|
|
1283
|
-
return !!(this.inFunction || this.options.allowReturnOutsideFunction && this.currentVarScope().flags &
|
|
1283
|
+
return !!(this.inFunction || this.options.allowReturnOutsideFunction && this.currentVarScope().flags & Ce);
|
|
1284
1284
|
}, A.allowSuper.get = function() {
|
|
1285
|
-
return (this.currentThisScope().flags &
|
|
1285
|
+
return (this.currentThisScope().flags & ke) > 0 || this.options.allowSuperOutsideMethod;
|
|
1286
1286
|
}, A.allowDirectSuper.get = function() {
|
|
1287
|
-
return (this.currentThisScope().flags &
|
|
1287
|
+
return (this.currentThisScope().flags & Ae) > 0;
|
|
1288
1288
|
}, A.treatFunctionsAsVar.get = function() {
|
|
1289
1289
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
1290
1290
|
}, A.allowNewDotTarget.get = function() {
|
|
1291
1291
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
1292
1292
|
var t = this.scopeStack[e].flags;
|
|
1293
|
-
if (t & (
|
|
1293
|
+
if (t & (je | Me) || t & we && !(t & De)) return !0;
|
|
1294
1294
|
}
|
|
1295
1295
|
return !1;
|
|
1296
1296
|
}, A.allowUsing.get = function() {
|
|
1297
1297
|
var e = this.currentScope().flags;
|
|
1298
|
-
return !(e &
|
|
1298
|
+
return !(e & Ne || !this.inModule && e & Ce);
|
|
1299
1299
|
}, A.inClassStaticBlock.get = function() {
|
|
1300
|
-
return (this.currentVarScope().flags &
|
|
1300
|
+
return (this.currentVarScope().flags & je) > 0;
|
|
1301
1301
|
}, k.extend = function() {
|
|
1302
1302
|
for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
|
|
1303
1303
|
for (var n = this, r = 0; r < e.length; r++) n = e[r](n);
|
|
@@ -1310,12 +1310,12 @@ k.prototype.parse = function() {
|
|
|
1310
1310
|
}, k.tokenizer = function(e, t) {
|
|
1311
1311
|
return new this(t, e);
|
|
1312
1312
|
}, Object.defineProperties(k.prototype, A);
|
|
1313
|
-
var j = k.prototype,
|
|
1313
|
+
var j = k.prototype, He = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
1314
1314
|
j.strictDirective = function(e) {
|
|
1315
1315
|
if (this.options.ecmaVersion < 5) return !1;
|
|
1316
1316
|
for (;;) {
|
|
1317
1317
|
O.lastIndex = e, e += O.exec(this.input)[0].length;
|
|
1318
|
-
var t =
|
|
1318
|
+
var t = He.exec(this.input.slice(e));
|
|
1319
1319
|
if (!t) return !1;
|
|
1320
1320
|
if ((t[1] || t[2]) === "use strict") {
|
|
1321
1321
|
O.lastIndex = e + t[0].length;
|
|
@@ -1352,7 +1352,7 @@ j.strictDirective = function(e) {
|
|
|
1352
1352
|
}, j.unexpected = function(e) {
|
|
1353
1353
|
this.raise(e ?? this.start, "Unexpected token");
|
|
1354
1354
|
};
|
|
1355
|
-
var
|
|
1355
|
+
var Ue = function() {
|
|
1356
1356
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
1357
1357
|
};
|
|
1358
1358
|
j.checkPatternErrors = function(e, t) {
|
|
@@ -1384,7 +1384,7 @@ M.parseTopLevel = function(e) {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType === "commonjs" ? "script" : this.options.sourceType, this.finishNode(e, "Program");
|
|
1386
1386
|
};
|
|
1387
|
-
var
|
|
1387
|
+
var We = { kind: "loop" }, Ge = { kind: "switch" };
|
|
1388
1388
|
M.isLet = function(e) {
|
|
1389
1389
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return !1;
|
|
1390
1390
|
O.lastIndex = this.pos;
|
|
@@ -1392,21 +1392,21 @@ M.isLet = function(e) {
|
|
|
1392
1392
|
if (r === 91 || r === 92) return !0;
|
|
1393
1393
|
if (e) return !1;
|
|
1394
1394
|
if (r === 123) return !0;
|
|
1395
|
-
if (
|
|
1395
|
+
if (y(r)) {
|
|
1396
1396
|
var i = n;
|
|
1397
1397
|
do
|
|
1398
1398
|
n += r <= 65535 ? 1 : 2;
|
|
1399
|
-
while (
|
|
1399
|
+
while (b(r = this.fullCharCodeAt(n)));
|
|
1400
1400
|
if (r === 92) return !0;
|
|
1401
1401
|
var a = this.input.slice(i, n);
|
|
1402
|
-
if (!
|
|
1402
|
+
if (!_.test(a)) return !0;
|
|
1403
1403
|
}
|
|
1404
1404
|
return !1;
|
|
1405
1405
|
}, M.isAsyncFunction = function() {
|
|
1406
1406
|
if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return !1;
|
|
1407
1407
|
O.lastIndex = this.pos;
|
|
1408
1408
|
var e = O.exec(this.input), t = this.pos + e[0].length, n;
|
|
1409
|
-
return !D.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(
|
|
1409
|
+
return !D.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(b(n = this.fullCharCodeAt(t + 8)) || n === 92));
|
|
1410
1410
|
}, M.isUsingKeyword = function(e, t) {
|
|
1411
1411
|
if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using")) return !1;
|
|
1412
1412
|
O.lastIndex = this.pos;
|
|
@@ -1414,20 +1414,20 @@ M.isLet = function(e) {
|
|
|
1414
1414
|
if (D.test(this.input.slice(this.pos, r))) return !1;
|
|
1415
1415
|
if (e) {
|
|
1416
1416
|
var i = r + 5, a;
|
|
1417
|
-
if (this.input.slice(r, i) !== "using" || i === this.input.length ||
|
|
1417
|
+
if (this.input.slice(r, i) !== "using" || i === this.input.length || b(a = this.fullCharCodeAt(i)) || a === 92) return !1;
|
|
1418
1418
|
O.lastIndex = i;
|
|
1419
1419
|
var o = O.exec(this.input);
|
|
1420
1420
|
if (r = i + o[0].length, o && D.test(this.input.slice(i, r))) return !1;
|
|
1421
1421
|
}
|
|
1422
1422
|
var s = this.fullCharCodeAt(r);
|
|
1423
|
-
if (!
|
|
1423
|
+
if (!y(s) && s !== 92) return !1;
|
|
1424
1424
|
var c = r;
|
|
1425
1425
|
do
|
|
1426
1426
|
r += s <= 65535 ? 1 : 2;
|
|
1427
|
-
while (
|
|
1427
|
+
while (b(s = this.fullCharCodeAt(r)));
|
|
1428
1428
|
if (s === 92) return !0;
|
|
1429
1429
|
var l = this.input.slice(c, r);
|
|
1430
|
-
if (
|
|
1430
|
+
if (_.test(l)) return !1;
|
|
1431
1431
|
if (t && !e && l === "of") {
|
|
1432
1432
|
O.lastIndex = r;
|
|
1433
1433
|
var u = O.exec(this.input);
|
|
@@ -1485,11 +1485,11 @@ M.isLet = function(e) {
|
|
|
1485
1485
|
}, M.parseDebuggerStatement = function(e) {
|
|
1486
1486
|
return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
|
|
1487
1487
|
}, M.parseDoStatement = function(e) {
|
|
1488
|
-
return this.next(), this.labels.push(
|
|
1488
|
+
return this.next(), this.labels.push(We), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(E._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(E.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
|
|
1489
1489
|
}, M.parseForStatement = function(e) {
|
|
1490
1490
|
this.next();
|
|
1491
1491
|
var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
|
|
1492
|
-
if (this.labels.push(
|
|
1492
|
+
if (this.labels.push(We), this.enterScope(0), this.expect(E.parenL), this.type === E.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
|
|
1493
1493
|
var n = this.isLet();
|
|
1494
1494
|
if (this.type === E._var || this.type === E._const || n) {
|
|
1495
1495
|
var r = this.startNode(), i = n ? "let" : this.value;
|
|
@@ -1500,18 +1500,18 @@ M.isLet = function(e) {
|
|
|
1500
1500
|
var c = this.startNode();
|
|
1501
1501
|
return this.next(), s === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.parseVar(c, !0, s), this.finishNode(c, "VariableDeclaration"), this.parseForAfterInit(e, c, t);
|
|
1502
1502
|
}
|
|
1503
|
-
var l = this.containsEsc, u = new
|
|
1503
|
+
var l = this.containsEsc, u = new Ue(), d = this.start, f = t > -1 ? this.parseExprSubscripts(u, "await") : this.parseExpression(!0, u);
|
|
1504
1504
|
return this.type === E._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === E._in && this.unexpected(t), e.await = !0) : o && this.options.ecmaVersion >= 8 && (f.start === d && !l && f.type === "Identifier" && f.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), a && o && this.raise(f.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(f, !1, u), this.checkLValPattern(f), this.parseForIn(e, f)) : (this.checkExpressionErrors(u, !0), t > -1 && this.unexpected(t), this.parseFor(e, f));
|
|
1505
1505
|
}, M.parseForAfterInit = function(e, t, n) {
|
|
1506
1506
|
return (this.type === E._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.type === E._in ? ((t.kind === "using" || t.kind === "await using") && !t.declarations[0].init && this.raise(this.start, "Using declaration is not allowed in for-in loops"), this.options.ecmaVersion >= 9 && n > -1 && this.unexpected(n)) : this.options.ecmaVersion >= 9 && (e.await = n > -1), this.parseForIn(e, t)) : (n > -1 && this.unexpected(n), this.parseFor(e, t));
|
|
1507
1507
|
}, M.parseFunctionStatement = function(e, t, n) {
|
|
1508
|
-
return this.next(), this.parseFunction(e,
|
|
1508
|
+
return this.next(), this.parseFunction(e, qe | (n ? 0 : Je), !1, t);
|
|
1509
1509
|
}, M.parseIfStatement = function(e) {
|
|
1510
1510
|
return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(E._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
|
|
1511
1511
|
}, M.parseReturnStatement = function(e) {
|
|
1512
1512
|
return this.allowReturn || this.raise(this.start, "'return' outside of function"), this.next(), this.eat(E.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
|
|
1513
1513
|
}, M.parseSwitchStatement = function(e) {
|
|
1514
|
-
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(E.braceL), this.labels.push(
|
|
1514
|
+
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(E.braceL), this.labels.push(Ge), this.enterScope(Ne);
|
|
1515
1515
|
for (var t, n = !1; this.type !== E.braceR;) if (this.type === E._case || this.type === E._default) {
|
|
1516
1516
|
var r = this.type === E._case;
|
|
1517
1517
|
t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), r ? t.test = this.parseExpression() : (n && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), n = !0, t.test = null), this.expect(E.colon);
|
|
@@ -1520,10 +1520,10 @@ M.isLet = function(e) {
|
|
|
1520
1520
|
}, M.parseThrowStatement = function(e) {
|
|
1521
1521
|
return this.next(), D.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
|
|
1522
1522
|
};
|
|
1523
|
-
var
|
|
1523
|
+
var Ke = [];
|
|
1524
1524
|
M.parseCatchClauseParam = function() {
|
|
1525
1525
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
1526
|
-
return this.enterScope(t ?
|
|
1526
|
+
return this.enterScope(t ? Oe : 0), this.checkLValPattern(e, t ? Be : Re), this.expect(E.parenR), e;
|
|
1527
1527
|
}, M.parseTryStatement = function(e) {
|
|
1528
1528
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === E._catch) {
|
|
1529
1529
|
var t = this.startNode();
|
|
@@ -1533,7 +1533,7 @@ M.parseCatchClauseParam = function() {
|
|
|
1533
1533
|
}, M.parseVarStatement = function(e, t, n) {
|
|
1534
1534
|
return this.next(), this.parseVar(e, !1, t, n), this.semicolon(), this.finishNode(e, "VariableDeclaration");
|
|
1535
1535
|
}, M.parseWhileStatement = function(e) {
|
|
1536
|
-
return this.next(), e.test = this.parseParenExpression(), this.labels.push(
|
|
1536
|
+
return this.next(), e.test = this.parseParenExpression(), this.labels.push(We), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
|
|
1537
1537
|
}, M.parseWithStatement = function(e) {
|
|
1538
1538
|
return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
|
|
1539
1539
|
}, M.parseEmptyStatement = function(e) {
|
|
@@ -1570,13 +1570,13 @@ M.parseCatchClauseParam = function() {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
return e;
|
|
1572
1572
|
}, M.parseVarId = function(e, t) {
|
|
1573
|
-
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ?
|
|
1573
|
+
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Le : Re, !1);
|
|
1574
1574
|
};
|
|
1575
|
-
var
|
|
1575
|
+
var qe = 1, Je = 2, Ye = 4;
|
|
1576
1576
|
M.parseFunction = function(e, t, n, r, i) {
|
|
1577
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === E.star && t &
|
|
1577
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === E.star && t & Je && this.unexpected(), e.generator = this.eat(E.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & qe && (e.id = t & Ye && this.type !== E.name ? null : this.parseIdent(), e.id && !(t & Je) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Le : Re : ze));
|
|
1578
1578
|
var a = this.yieldPos, o = this.awaitPos, s = this.awaitIdentPos;
|
|
1579
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
1579
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Fe(e.async, e.generator)), t & qe || (e.id = this.type === E.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, n, !1, i), this.yieldPos = a, this.awaitPos = o, this.awaitIdentPos = s, this.finishNode(e, t & qe ? "FunctionDeclaration" : "FunctionExpression");
|
|
1580
1580
|
}, M.parseFunctionParams = function(e) {
|
|
1581
1581
|
this.expect(E.parenL), e.params = this.parseBindingList(E.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
1582
1582
|
}, M.parseClass = function(e, t) {
|
|
@@ -1586,7 +1586,7 @@ M.parseFunction = function(e, t, n, r, i) {
|
|
|
1586
1586
|
var r = this.enterClassBody(), i = this.startNode(), a = !1;
|
|
1587
1587
|
for (i.body = [], this.expect(E.braceL); this.type !== E.braceR;) {
|
|
1588
1588
|
var o = this.parseClassElement(e.superClass !== null);
|
|
1589
|
-
o && (i.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (a && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), a = !0) : o.key && o.key.type === "PrivateIdentifier" &&
|
|
1589
|
+
o && (i.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (a && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), a = !0) : o.key && o.key.type === "PrivateIdentifier" && Xe(r, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
|
|
1590
1590
|
}
|
|
1591
1591
|
return this.strict = n, this.next(), e.body = this.finishNode(i, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
|
|
1592
1592
|
}, M.parseClassElement = function(e) {
|
|
@@ -1601,7 +1601,7 @@ M.parseFunction = function(e, t, n, r, i) {
|
|
|
1601
1601
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = c : r = c);
|
|
1602
1602
|
}
|
|
1603
1603
|
if (r ? (n.computed = !1, n.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), n.key.name = r, this.finishNode(n.key, "Identifier")) : this.parseClassElementName(n), t < 13 || this.type === E.parenL || o !== "method" || i || a) {
|
|
1604
|
-
var l = !n.static &&
|
|
1604
|
+
var l = !n.static && Ze(n, "constructor"), u = l && e;
|
|
1605
1605
|
l && o !== "method" && this.raise(n.key.start, "Constructor can't have get/set modifier"), n.kind = l ? "constructor" : o, this.parseClassMethod(n, i, a, u);
|
|
1606
1606
|
} else this.parseClassField(n);
|
|
1607
1607
|
return n;
|
|
@@ -1611,21 +1611,21 @@ M.parseFunction = function(e, t, n, r, i) {
|
|
|
1611
1611
|
this.type === E.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), e.computed = !1, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
|
|
1612
1612
|
}, M.parseClassMethod = function(e, t, n, r) {
|
|
1613
1613
|
var i = e.key;
|
|
1614
|
-
e.kind === "constructor" ? (t && this.raise(i.start, "Constructor can't be a generator"), n && this.raise(i.start, "Constructor can't be an async method")) : e.static &&
|
|
1614
|
+
e.kind === "constructor" ? (t && this.raise(i.start, "Constructor can't be a generator"), n && this.raise(i.start, "Constructor can't be an async method")) : e.static && Ze(e, "prototype") && this.raise(i.start, "Classes may not have a static property named prototype");
|
|
1615
1615
|
var a = e.value = this.parseMethod(t, n, r);
|
|
1616
1616
|
return e.kind === "get" && a.params.length !== 0 && this.raiseRecoverable(a.start, "getter should have no params"), e.kind === "set" && a.params.length !== 1 && this.raiseRecoverable(a.start, "setter should have exactly one param"), e.kind === "set" && a.params[0].type === "RestElement" && this.raiseRecoverable(a.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
|
|
1617
1617
|
}, M.parseClassField = function(e) {
|
|
1618
|
-
return
|
|
1618
|
+
return Ze(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && Ze(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(E.eq) ? (this.enterScope(Me | ke), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
|
|
1619
1619
|
}, M.parseClassStaticBlock = function(e) {
|
|
1620
1620
|
e.body = [];
|
|
1621
1621
|
var t = this.labels;
|
|
1622
|
-
for (this.labels = [], this.enterScope(
|
|
1622
|
+
for (this.labels = [], this.enterScope(je | ke); this.type !== E.braceR;) {
|
|
1623
1623
|
var n = this.parseStatement(null);
|
|
1624
1624
|
e.body.push(n);
|
|
1625
1625
|
}
|
|
1626
1626
|
return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
|
|
1627
1627
|
}, M.parseClassId = function(e, t) {
|
|
1628
|
-
this.type === E.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id,
|
|
1628
|
+
this.type === E.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, Re, !1)) : (t === !0 && this.unexpected(), e.id = null);
|
|
1629
1629
|
}, M.parseClassSuper = function(e) {
|
|
1630
1630
|
e.superClass = this.eat(E._extends) ? this.parseExprSubscripts(null, !1) : null;
|
|
1631
1631
|
}, M.enterClassBody = function() {
|
|
@@ -1638,14 +1638,14 @@ M.parseFunction = function(e, t, n, r, i) {
|
|
|
1638
1638
|
var e = this.privateNameStack.pop(), t = e.declared, n = e.used;
|
|
1639
1639
|
if (this.options.checkPrivateFields) for (var r = this.privateNameStack.length, i = r === 0 ? null : this.privateNameStack[r - 1], a = 0; a < n.length; ++a) {
|
|
1640
1640
|
var o = n[a];
|
|
1641
|
-
|
|
1641
|
+
ue(t, o.name) || (i ? i.used.push(o) : this.raiseRecoverable(o.start, "Private field '#" + o.name + "' must be declared in an enclosing class"));
|
|
1642
1642
|
}
|
|
1643
1643
|
};
|
|
1644
|
-
function
|
|
1644
|
+
function Xe(e, t) {
|
|
1645
1645
|
var n = t.key.name, r = e[n], i = "true";
|
|
1646
1646
|
return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (i = (t.static ? "s" : "i") + t.kind), r === "iget" && i === "iset" || r === "iset" && i === "iget" || r === "sget" && i === "sset" || r === "sset" && i === "sget" ? (e[n] = "true", !1) : r ? !0 : (e[n] = i, !1);
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function Ze(e, t) {
|
|
1649
1649
|
var n = e.computed, r = e.key;
|
|
1650
1650
|
return !n && (r.type === "Identifier" && r.name === t || r.type === "Literal" && r.value === t);
|
|
1651
1651
|
}
|
|
@@ -1673,7 +1673,7 @@ M.parseExportAllDeclaration = function(e, t) {
|
|
|
1673
1673
|
var e;
|
|
1674
1674
|
if (this.type === E._function || (e = this.isAsyncFunction())) {
|
|
1675
1675
|
var t = this.startNode();
|
|
1676
|
-
return this.next(), e && this.next(), this.parseFunction(t,
|
|
1676
|
+
return this.next(), e && this.next(), this.parseFunction(t, qe | Ye, !1, e);
|
|
1677
1677
|
} else if (this.type === E._class) {
|
|
1678
1678
|
var n = this.startNode();
|
|
1679
1679
|
return this.parseClass(n, "nullableID");
|
|
@@ -1682,7 +1682,7 @@ M.parseExportAllDeclaration = function(e, t) {
|
|
|
1682
1682
|
return this.semicolon(), r;
|
|
1683
1683
|
}
|
|
1684
1684
|
}, M.checkExport = function(e, t, n) {
|
|
1685
|
-
e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value),
|
|
1685
|
+
e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), ue(e, t) && this.raiseRecoverable(n, "Duplicate export '" + t + "'"), e[t] = !0);
|
|
1686
1686
|
}, M.checkPatternExport = function(e, t) {
|
|
1687
1687
|
var n = t.type;
|
|
1688
1688
|
if (n === "Identifier") this.checkExport(e, t, t.start);
|
|
@@ -1714,16 +1714,16 @@ M.parseExportAllDeclaration = function(e, t) {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
return t;
|
|
1716
1716
|
}, M.parseImport = function(e) {
|
|
1717
|
-
return this.next(), this.type === E.string ? (e.specifiers =
|
|
1717
|
+
return this.next(), this.type === E.string ? (e.specifiers = Ke, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === E.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
|
|
1718
1718
|
}, M.parseImportSpecifier = function() {
|
|
1719
1719
|
var e = this.startNode();
|
|
1720
|
-
return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local,
|
|
1720
|
+
return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, Re), this.finishNode(e, "ImportSpecifier");
|
|
1721
1721
|
}, M.parseImportDefaultSpecifier = function() {
|
|
1722
1722
|
var e = this.startNode();
|
|
1723
|
-
return e.local = this.parseIdent(), this.checkLValSimple(e.local,
|
|
1723
|
+
return e.local = this.parseIdent(), this.checkLValSimple(e.local, Re), this.finishNode(e, "ImportDefaultSpecifier");
|
|
1724
1724
|
}, M.parseImportNamespaceSpecifier = function() {
|
|
1725
1725
|
var e = this.startNode();
|
|
1726
|
-
return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local,
|
|
1726
|
+
return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, Re), this.finishNode(e, "ImportNamespaceSpecifier");
|
|
1727
1727
|
}, M.parseImportSpecifiers = function() {
|
|
1728
1728
|
var e = [], t = !0;
|
|
1729
1729
|
if (this.type === E.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(E.comma))) return e;
|
|
@@ -1742,7 +1742,7 @@ M.parseExportAllDeclaration = function(e, t) {
|
|
|
1742
1742
|
if (n) n = !1;
|
|
1743
1743
|
else if (this.expect(E.comma), this.afterTrailingComma(E.braceR)) break;
|
|
1744
1744
|
var r = this.parseImportAttribute(), i = r.key.type === "Identifier" ? r.key.name : r.key.value;
|
|
1745
|
-
|
|
1745
|
+
ue(t, i) && this.raiseRecoverable(r.key.start, "Duplicate attribute key '" + i + "'"), t[i] = !0, e.push(r);
|
|
1746
1746
|
}
|
|
1747
1747
|
return e;
|
|
1748
1748
|
}, M.parseImportAttribute = function() {
|
|
@@ -1751,7 +1751,7 @@ M.parseExportAllDeclaration = function(e, t) {
|
|
|
1751
1751
|
}, M.parseModuleExportName = function() {
|
|
1752
1752
|
if (this.options.ecmaVersion >= 13 && this.type === E.string) {
|
|
1753
1753
|
var e = this.parseLiteral(this.value);
|
|
1754
|
-
return
|
|
1754
|
+
return he.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
|
|
1755
1755
|
}
|
|
1756
1756
|
return this.parseIdent(!0);
|
|
1757
1757
|
}, M.adaptDirectivePrologue = function(e) {
|
|
@@ -1842,11 +1842,11 @@ N.toAssignable = function(e, t, n) {
|
|
|
1842
1842
|
var r = this.startNodeAt(e, t);
|
|
1843
1843
|
return r.left = n, r.right = this.parseMaybeAssign(), this.finishNode(r, "AssignmentPattern");
|
|
1844
1844
|
}, N.checkLValSimple = function(e, t, n) {
|
|
1845
|
-
t === void 0 && (t =
|
|
1846
|
-
var r = t !==
|
|
1845
|
+
t === void 0 && (t = Ie);
|
|
1846
|
+
var r = t !== Ie;
|
|
1847
1847
|
switch (e.type) {
|
|
1848
1848
|
case "Identifier":
|
|
1849
|
-
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t ===
|
|
1849
|
+
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t === Re && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), n && (ue(n, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), n[e.name] = !0), t !== Ve && this.declareName(e.name, t, e.start));
|
|
1850
1850
|
break;
|
|
1851
1851
|
case "ChainExpression":
|
|
1852
1852
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -1858,7 +1858,7 @@ N.toAssignable = function(e, t, n) {
|
|
|
1858
1858
|
default: this.raise(e.start, (r ? "Binding" : "Assigning to") + " rvalue");
|
|
1859
1859
|
}
|
|
1860
1860
|
}, N.checkLValPattern = function(e, t, n) {
|
|
1861
|
-
switch (t === void 0 && (t =
|
|
1861
|
+
switch (t === void 0 && (t = Ie), e.type) {
|
|
1862
1862
|
case "ObjectPattern":
|
|
1863
1863
|
for (var r = 0, i = e.properties; r < i.length; r += 1) {
|
|
1864
1864
|
var a = i[r];
|
|
@@ -1874,7 +1874,7 @@ N.toAssignable = function(e, t, n) {
|
|
|
1874
1874
|
default: this.checkLValSimple(e, t, n);
|
|
1875
1875
|
}
|
|
1876
1876
|
}, N.checkLValInnerPattern = function(e, t, n) {
|
|
1877
|
-
switch (t === void 0 && (t =
|
|
1877
|
+
switch (t === void 0 && (t = Ie), e.type) {
|
|
1878
1878
|
case "Property":
|
|
1879
1879
|
this.checkLValInnerPattern(e.value, t, n);
|
|
1880
1880
|
break;
|
|
@@ -1902,24 +1902,24 @@ var P = function(e, t, n, r, i) {
|
|
|
1902
1902
|
f_expr: new P("function", !0),
|
|
1903
1903
|
f_expr_gen: new P("function", !0, !1, null, !0),
|
|
1904
1904
|
f_gen: new P("function", !1, !1, null, !0)
|
|
1905
|
-
},
|
|
1906
|
-
|
|
1905
|
+
}, Qe = k.prototype;
|
|
1906
|
+
Qe.initialContext = function() {
|
|
1907
1907
|
return [F.b_stat];
|
|
1908
|
-
},
|
|
1908
|
+
}, Qe.curContext = function() {
|
|
1909
1909
|
return this.context[this.context.length - 1];
|
|
1910
|
-
},
|
|
1910
|
+
}, Qe.braceIsBlock = function(e) {
|
|
1911
1911
|
var t = this.curContext();
|
|
1912
1912
|
return t === F.f_expr || t === F.f_stat ? !0 : e === E.colon && (t === F.b_stat || t === F.b_expr) ? !t.isExpr : e === E._return || e === E.name && this.exprAllowed ? D.test(this.input.slice(this.lastTokEnd, this.start)) : e === E._else || e === E.semi || e === E.eof || e === E.parenR || e === E.arrow ? !0 : e === E.braceL ? t === F.b_stat : e === E._var || e === E._const || e === E.name ? !1 : !this.exprAllowed;
|
|
1913
|
-
},
|
|
1913
|
+
}, Qe.inGeneratorContext = function() {
|
|
1914
1914
|
for (var e = this.context.length - 1; e >= 1; e--) {
|
|
1915
1915
|
var t = this.context[e];
|
|
1916
1916
|
if (t.token === "function") return t.generator;
|
|
1917
1917
|
}
|
|
1918
1918
|
return !1;
|
|
1919
|
-
},
|
|
1919
|
+
}, Qe.updateContext = function(e) {
|
|
1920
1920
|
var t, n = this.type;
|
|
1921
1921
|
n.keyword && e === E.dot ? this.exprAllowed = !1 : (t = n.updateContext) ? t.call(this, e) : this.exprAllowed = n.beforeExpr;
|
|
1922
|
-
},
|
|
1922
|
+
}, Qe.overrideContext = function(e) {
|
|
1923
1923
|
this.curContext() !== e && (this.context[this.context.length - 1] = e);
|
|
1924
1924
|
}, E.parenR.updateContext = E.braceR.updateContext = function() {
|
|
1925
1925
|
if (this.context.length === 1) {
|
|
@@ -1994,7 +1994,7 @@ I.checkPropClash = function(e, t, n) {
|
|
|
1994
1994
|
this.exprAllowed = !1;
|
|
1995
1995
|
}
|
|
1996
1996
|
var r = !1, i = -1, a = -1, o = -1;
|
|
1997
|
-
t ? (i = t.parenthesizedAssign, a = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new
|
|
1997
|
+
t ? (i = t.parenthesizedAssign, a = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Ue(), r = !0);
|
|
1998
1998
|
var s = this.start, c = this.startLoc;
|
|
1999
1999
|
(this.type === E.parenL || this.type === E.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
2000
2000
|
var l = this.parseMaybeConditional(e, t);
|
|
@@ -2034,7 +2034,7 @@ I.checkPropClash = function(e, t, n) {
|
|
|
2034
2034
|
if (this.isContextual("await") && this.canAwait) o = this.parseAwait(r), t = !0;
|
|
2035
2035
|
else if (this.type.prefix) {
|
|
2036
2036
|
var s = this.startNode(), c = this.type === E.incDec;
|
|
2037
|
-
s.operator = this.value, s.prefix = !0, this.next(), s.argument = this.parseMaybeUnary(null, !0, c, r), this.checkExpressionErrors(e, !0), c ? this.checkLValSimple(s.argument) : this.strict && s.operator === "delete" &&
|
|
2037
|
+
s.operator = this.value, s.prefix = !0, this.next(), s.argument = this.parseMaybeUnary(null, !0, c, r), this.checkExpressionErrors(e, !0), c ? this.checkLValSimple(s.argument) : this.strict && s.operator === "delete" && $e(s.argument) ? this.raiseRecoverable(s.start, "Deleting local variable in strict mode") : s.operator === "delete" && et(s.argument) ? this.raiseRecoverable(s.start, "Private fields can not be deleted") : t = !0, o = this.finishNode(s, c ? "UpdateExpression" : "UnaryExpression");
|
|
2038
2038
|
} else if (!t && this.type === E.privateId) (r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== E._in && this.unexpected();
|
|
2039
2039
|
else {
|
|
2040
2040
|
if (o = this.parseExprSubscripts(e, r), this.checkExpressionErrors(e)) return o;
|
|
@@ -2047,11 +2047,11 @@ I.checkPropClash = function(e, t, n) {
|
|
|
2047
2047
|
else return this.buildBinary(i, a, o, this.parseMaybeUnary(null, !1, !1, r), "**", !1);
|
|
2048
2048
|
else return o;
|
|
2049
2049
|
};
|
|
2050
|
-
function Qe(e) {
|
|
2051
|
-
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && Qe(e.expression);
|
|
2052
|
-
}
|
|
2053
2050
|
function $e(e) {
|
|
2054
|
-
return e.type === "
|
|
2051
|
+
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && $e(e.expression);
|
|
2052
|
+
}
|
|
2053
|
+
function et(e) {
|
|
2054
|
+
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && et(e.expression) || e.type === "ParenthesizedExpression" && et(e.expression);
|
|
2055
2055
|
}
|
|
2056
2056
|
I.parseExprSubscripts = function(e, t) {
|
|
2057
2057
|
var n = this.start, r = this.startLoc, i = this.parseExprAtom(e, t);
|
|
@@ -2082,7 +2082,7 @@ I.parseExprSubscripts = function(e, t) {
|
|
|
2082
2082
|
var u = this.startNodeAt(t, n);
|
|
2083
2083
|
u.object = e, l ? (u.property = this.parseExpression(), this.expect(E.bracketR)) : this.type === E.privateId && e.type !== "Super" ? u.property = this.parsePrivateIdent() : u.property = this.parseIdent(this.options.allowReserved !== "never"), u.computed = !!l, s && (u.optional = c), e = this.finishNode(u, "MemberExpression");
|
|
2084
2084
|
} else if (!r && this.eat(E.parenL)) {
|
|
2085
|
-
var d = new
|
|
2085
|
+
var d = new Ue(), f = this.yieldPos, p = this.awaitPos, m = this.awaitIdentPos;
|
|
2086
2086
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
2087
2087
|
var h = this.parseExprList(E.parenR, this.options.ecmaVersion >= 8, !1, d);
|
|
2088
2088
|
if (i && !c && this.shouldParseAsyncArrow()) return this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = f, this.awaitPos = p, this.awaitIdentPos = m, this.parseSubscriptAsyncArrow(t, n, h, o);
|
|
@@ -2165,7 +2165,7 @@ I.parseExprSubscripts = function(e, t) {
|
|
|
2165
2165
|
var n = this.start, r = this.startLoc, i, a = this.options.ecmaVersion >= 8;
|
|
2166
2166
|
if (this.options.ecmaVersion >= 6) {
|
|
2167
2167
|
this.next();
|
|
2168
|
-
var o = this.start, s = this.startLoc, c = [], l = !0, u = !1, d = new
|
|
2168
|
+
var o = this.start, s = this.startLoc, c = [], l = !0, u = !1, d = new Ue(), f = this.yieldPos, p = this.awaitPos, m;
|
|
2169
2169
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== E.parenR;) if (l ? l = !1 : this.expect(E.comma), a && this.afterTrailingComma(E.parenR, !0)) {
|
|
2170
2170
|
u = !0;
|
|
2171
2171
|
break;
|
|
@@ -2186,7 +2186,7 @@ I.parseExprSubscripts = function(e, t) {
|
|
|
2186
2186
|
}, I.parseParenArrowList = function(e, t, n, r) {
|
|
2187
2187
|
return this.parseArrowExpression(this.startNodeAt(e, t), n, !1, r);
|
|
2188
2188
|
};
|
|
2189
|
-
var
|
|
2189
|
+
var tt = [];
|
|
2190
2190
|
I.parseNew = function() {
|
|
2191
2191
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
2192
2192
|
var e = this.startNode();
|
|
@@ -2197,7 +2197,7 @@ I.parseNew = function() {
|
|
|
2197
2197
|
return e.property = this.parseIdent(!0), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), n && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
|
|
2198
2198
|
}
|
|
2199
2199
|
var r = this.start, i = this.startLoc;
|
|
2200
|
-
return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), r, i, !0, !1), e.callee.type === "Super" && this.raiseRecoverable(r, "Invalid use of 'super'"), this.eat(E.parenL) ? e.arguments = this.parseExprList(E.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments =
|
|
2200
|
+
return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), r, i, !0, !1), e.callee.type === "Super" && this.raiseRecoverable(r, "Invalid use of 'super'"), this.eat(E.parenL) ? e.arguments = this.parseExprList(E.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = tt, this.finishNode(e, "NewExpression");
|
|
2201
2201
|
}, I.parseTemplateElement = function(e) {
|
|
2202
2202
|
var t = e.isTagged, n = this.startNode();
|
|
2203
2203
|
return this.type === E.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), n.value = {
|
|
@@ -2253,10 +2253,10 @@ I.parseNew = function() {
|
|
|
2253
2253
|
e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
|
|
2254
2254
|
}, I.parseMethod = function(e, t, n) {
|
|
2255
2255
|
var r = this.startNode(), i = this.yieldPos, a = this.awaitPos, o = this.awaitIdentPos;
|
|
2256
|
-
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
2256
|
+
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Fe(t, r.generator) | ke | (n ? Ae : 0)), this.expect(E.parenL), r.params = this.parseBindingList(E.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(r, !1, !0, !1), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = o, this.finishNode(r, "FunctionExpression");
|
|
2257
2257
|
}, I.parseArrowExpression = function(e, t, n, r) {
|
|
2258
2258
|
var i = this.yieldPos, a = this.awaitPos, o = this.awaitIdentPos;
|
|
2259
|
-
return this.enterScope(
|
|
2259
|
+
return this.enterScope(Fe(n, !1) | De), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!n), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, r), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = o, this.finishNode(e, "ArrowFunctionExpression");
|
|
2260
2260
|
}, I.parseFunctionBody = function(e, t, n, r) {
|
|
2261
2261
|
var i = t && this.type !== E.braceL, a = this.strict, o = !1;
|
|
2262
2262
|
if (i) e.body = this.parseMaybeAssign(r), e.expression = !0, this.checkParams(e, !1);
|
|
@@ -2264,7 +2264,7 @@ I.parseNew = function() {
|
|
|
2264
2264
|
var s = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
|
|
2265
2265
|
(!a || s) && (o = this.strictDirective(this.end), o && s && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
2266
2266
|
var c = this.labels;
|
|
2267
|
-
this.labels = [], o && (this.strict = !0), this.checkParams(e, !a && !o && !t && !n && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id,
|
|
2267
|
+
this.labels = [], o && (this.strict = !0), this.checkParams(e, !a && !o && !t && !n && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, Ve), e.body = this.parseBlock(!1, void 0, o && !a), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = c;
|
|
2268
2268
|
}
|
|
2269
2269
|
this.exitScope();
|
|
2270
2270
|
}, I.isSimpleParamList = function(e) {
|
|
@@ -2273,7 +2273,7 @@ I.parseNew = function() {
|
|
|
2273
2273
|
}, I.checkParams = function(e, t) {
|
|
2274
2274
|
for (var n = Object.create(null), r = 0, i = e.params; r < i.length; r += 1) {
|
|
2275
2275
|
var a = i[r];
|
|
2276
|
-
this.checkLValInnerPattern(a,
|
|
2276
|
+
this.checkLValInnerPattern(a, Le, t ? null : n);
|
|
2277
2277
|
}
|
|
2278
2278
|
}, I.parseExprList = function(e, t, n, r) {
|
|
2279
2279
|
for (var i = [], a = !0; !this.eat(e);) {
|
|
@@ -2285,7 +2285,7 @@ I.parseNew = function() {
|
|
|
2285
2285
|
return i;
|
|
2286
2286
|
}, I.checkUnreserved = function(e) {
|
|
2287
2287
|
var t = e.start, n = e.end, r = e.name;
|
|
2288
|
-
this.inGenerator && r === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags &
|
|
2288
|
+
this.inGenerator && r === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & Pe) && r === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (r === "arguments" || r === "await") && this.raise(t, "Cannot use " + r + " in class static initialization block"), this.keywords.test(r) && this.raise(t, "Unexpected keyword '" + r + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, n).indexOf("\\") !== -1) && (this.strict ? this.reservedWordsStrict : this.reservedWords).test(r) && (!this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + r + "' is reserved"));
|
|
2289
2289
|
}, I.parseIdent = function(e) {
|
|
2290
2290
|
var t = this.parseIdentNode();
|
|
2291
2291
|
return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
|
|
@@ -2304,132 +2304,132 @@ I.parseNew = function() {
|
|
|
2304
2304
|
var t = this.startNode();
|
|
2305
2305
|
return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
|
|
2306
2306
|
};
|
|
2307
|
-
var
|
|
2308
|
-
|
|
2309
|
-
var n =
|
|
2307
|
+
var nt = k.prototype;
|
|
2308
|
+
nt.raise = function(e, t) {
|
|
2309
|
+
var n = ve(this.input, e);
|
|
2310
2310
|
t += " (" + n.line + ":" + n.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
|
|
2311
2311
|
var r = SyntaxError(t);
|
|
2312
2312
|
throw r.pos = e, r.loc = n, r.raisedAt = this.pos, r;
|
|
2313
|
-
},
|
|
2314
|
-
if (this.options.locations) return new
|
|
2313
|
+
}, nt.raiseRecoverable = nt.raise, nt.curPosition = function() {
|
|
2314
|
+
if (this.options.locations) return new ge(this.curLine, this.pos - this.lineStart);
|
|
2315
2315
|
};
|
|
2316
|
-
var
|
|
2316
|
+
var rt = k.prototype, it = function(e) {
|
|
2317
2317
|
this.flags = e, this.var = [], this.lexical = [], this.functions = [];
|
|
2318
2318
|
};
|
|
2319
|
-
|
|
2320
|
-
this.scopeStack.push(new
|
|
2321
|
-
},
|
|
2319
|
+
rt.enterScope = function(e) {
|
|
2320
|
+
this.scopeStack.push(new it(e));
|
|
2321
|
+
}, rt.exitScope = function() {
|
|
2322
2322
|
this.scopeStack.pop();
|
|
2323
|
-
},
|
|
2324
|
-
return e.flags &
|
|
2325
|
-
},
|
|
2323
|
+
}, rt.treatFunctionsAsVarInScope = function(e) {
|
|
2324
|
+
return e.flags & we || !this.inModule && e.flags & Ce;
|
|
2325
|
+
}, rt.declareName = function(e, t, n) {
|
|
2326
2326
|
var r = !1;
|
|
2327
|
-
if (t ===
|
|
2327
|
+
if (t === Re) {
|
|
2328
2328
|
var i = this.currentScope();
|
|
2329
|
-
r = i.lexical.indexOf(e) > -1 || i.functions.indexOf(e) > -1 || i.var.indexOf(e) > -1, i.lexical.push(e), this.inModule && i.flags &
|
|
2330
|
-
} else if (t ===
|
|
2331
|
-
else if (t ===
|
|
2329
|
+
r = i.lexical.indexOf(e) > -1 || i.functions.indexOf(e) > -1 || i.var.indexOf(e) > -1, i.lexical.push(e), this.inModule && i.flags & Ce && delete this.undefinedExports[e];
|
|
2330
|
+
} else if (t === Be) this.currentScope().lexical.push(e);
|
|
2331
|
+
else if (t === ze) {
|
|
2332
2332
|
var a = this.currentScope();
|
|
2333
2333
|
r = this.treatFunctionsAsVar ? a.lexical.indexOf(e) > -1 : a.lexical.indexOf(e) > -1 || a.var.indexOf(e) > -1, a.functions.push(e);
|
|
2334
2334
|
} else for (var o = this.scopeStack.length - 1; o >= 0; --o) {
|
|
2335
2335
|
var s = this.scopeStack[o];
|
|
2336
|
-
if (s.lexical.indexOf(e) > -1 && !(s.flags &
|
|
2336
|
+
if (s.lexical.indexOf(e) > -1 && !(s.flags & Oe && s.lexical[0] === e) || !this.treatFunctionsAsVarInScope(s) && s.functions.indexOf(e) > -1) {
|
|
2337
2337
|
r = !0;
|
|
2338
2338
|
break;
|
|
2339
2339
|
}
|
|
2340
|
-
if (s.var.push(e), this.inModule && s.flags &
|
|
2340
|
+
if (s.var.push(e), this.inModule && s.flags & Ce && delete this.undefinedExports[e], s.flags & Pe) break;
|
|
2341
2341
|
}
|
|
2342
2342
|
r && this.raiseRecoverable(n, "Identifier '" + e + "' has already been declared");
|
|
2343
|
-
},
|
|
2343
|
+
}, rt.checkLocalExport = function(e) {
|
|
2344
2344
|
this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
|
|
2345
|
-
},
|
|
2345
|
+
}, rt.currentScope = function() {
|
|
2346
2346
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
2347
|
-
},
|
|
2347
|
+
}, rt.currentVarScope = function() {
|
|
2348
2348
|
for (var e = this.scopeStack.length - 1;; e--) {
|
|
2349
2349
|
var t = this.scopeStack[e];
|
|
2350
|
-
if (t.flags & (
|
|
2350
|
+
if (t.flags & (Pe | Me | je)) return t;
|
|
2351
2351
|
}
|
|
2352
|
-
},
|
|
2352
|
+
}, rt.currentThisScope = function() {
|
|
2353
2353
|
for (var e = this.scopeStack.length - 1;; e--) {
|
|
2354
2354
|
var t = this.scopeStack[e];
|
|
2355
|
-
if (t.flags & (
|
|
2355
|
+
if (t.flags & (Pe | Me | je) && !(t.flags & De)) return t;
|
|
2356
2356
|
}
|
|
2357
2357
|
};
|
|
2358
|
-
var
|
|
2359
|
-
this.type = "", this.start = t, this.end = 0, e.options.locations && (this.loc = new
|
|
2360
|
-
},
|
|
2361
|
-
|
|
2362
|
-
return new
|
|
2363
|
-
},
|
|
2364
|
-
return new
|
|
2358
|
+
var at = function(e, t, n) {
|
|
2359
|
+
this.type = "", this.start = t, this.end = 0, e.options.locations && (this.loc = new _e(e, n)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [t, 0]);
|
|
2360
|
+
}, ot = k.prototype;
|
|
2361
|
+
ot.startNode = function() {
|
|
2362
|
+
return new at(this, this.start, this.startLoc);
|
|
2363
|
+
}, ot.startNodeAt = function(e, t) {
|
|
2364
|
+
return new at(this, e, t);
|
|
2365
2365
|
};
|
|
2366
|
-
function
|
|
2366
|
+
function st(e, t, n, r) {
|
|
2367
2367
|
return e.type = t, e.end = n, this.options.locations && (e.loc.end = r), this.options.ranges && (e.range[1] = n), e;
|
|
2368
2368
|
}
|
|
2369
|
-
|
|
2370
|
-
return
|
|
2371
|
-
},
|
|
2372
|
-
return
|
|
2373
|
-
},
|
|
2374
|
-
var t = new
|
|
2369
|
+
ot.finishNode = function(e, t) {
|
|
2370
|
+
return st.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
2371
|
+
}, ot.finishNodeAt = function(e, t, n, r) {
|
|
2372
|
+
return st.call(this, e, t, n, r);
|
|
2373
|
+
}, ot.copyNode = function(e) {
|
|
2374
|
+
var t = new at(this, e.start, this.startLoc);
|
|
2375
2375
|
for (var n in e) t[n] = e[n];
|
|
2376
2376
|
return t;
|
|
2377
2377
|
};
|
|
2378
|
-
var
|
|
2379
|
-
9:
|
|
2380
|
-
10:
|
|
2381
|
-
11:
|
|
2382
|
-
12:
|
|
2383
|
-
13:
|
|
2384
|
-
14:
|
|
2385
|
-
},
|
|
2378
|
+
var ct = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz", lt = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", ut = lt + " Extended_Pictographic", dt = ut, ft = dt + " EBase EComp EMod EPres ExtPict", pt = ft, mt = {
|
|
2379
|
+
9: lt,
|
|
2380
|
+
10: ut,
|
|
2381
|
+
11: dt,
|
|
2382
|
+
12: ft,
|
|
2383
|
+
13: pt,
|
|
2384
|
+
14: pt
|
|
2385
|
+
}, ht = {
|
|
2386
2386
|
9: "",
|
|
2387
2387
|
10: "",
|
|
2388
2388
|
11: "",
|
|
2389
2389
|
12: "",
|
|
2390
2390
|
13: "",
|
|
2391
2391
|
14: "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"
|
|
2392
|
-
},
|
|
2393
|
-
9:
|
|
2394
|
-
10:
|
|
2395
|
-
11:
|
|
2396
|
-
12:
|
|
2397
|
-
13:
|
|
2398
|
-
14:
|
|
2399
|
-
},
|
|
2400
|
-
function
|
|
2401
|
-
var t =
|
|
2402
|
-
binary:
|
|
2403
|
-
binaryOfStrings:
|
|
2392
|
+
}, gt = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", _t = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", vt = _t + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", yt = vt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", bt = yt + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", xt = bt + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", St = {
|
|
2393
|
+
9: _t,
|
|
2394
|
+
10: vt,
|
|
2395
|
+
11: yt,
|
|
2396
|
+
12: bt,
|
|
2397
|
+
13: xt,
|
|
2398
|
+
14: xt + " " + ct
|
|
2399
|
+
}, Ct = {};
|
|
2400
|
+
function wt(e) {
|
|
2401
|
+
var t = Ct[e] = {
|
|
2402
|
+
binary: pe(mt[e] + " " + gt),
|
|
2403
|
+
binaryOfStrings: pe(ht[e]),
|
|
2404
2404
|
nonBinary: {
|
|
2405
|
-
General_Category:
|
|
2406
|
-
Script:
|
|
2405
|
+
General_Category: pe(gt),
|
|
2406
|
+
Script: pe(St[e])
|
|
2407
2407
|
}
|
|
2408
2408
|
};
|
|
2409
2409
|
t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
|
|
2410
2410
|
}
|
|
2411
|
-
for (var
|
|
2411
|
+
for (var Tt = 0, Et = [
|
|
2412
2412
|
9,
|
|
2413
2413
|
10,
|
|
2414
2414
|
11,
|
|
2415
2415
|
12,
|
|
2416
2416
|
13,
|
|
2417
2417
|
14
|
|
2418
|
-
];
|
|
2419
|
-
var
|
|
2420
|
-
|
|
2418
|
+
]; Tt < Et.length; Tt += 1) {
|
|
2419
|
+
var Dt = Et[Tt];
|
|
2420
|
+
wt(Dt);
|
|
2421
2421
|
}
|
|
2422
|
-
var L = k.prototype,
|
|
2422
|
+
var L = k.prototype, Ot = function(e, t) {
|
|
2423
2423
|
this.parent = e, this.base = t || this;
|
|
2424
2424
|
};
|
|
2425
|
-
|
|
2425
|
+
Ot.prototype.separatedFrom = function(e) {
|
|
2426
2426
|
for (var t = this; t; t = t.parent) for (var n = e; n; n = n.parent) if (t.base === n.base && t !== n) return !0;
|
|
2427
2427
|
return !1;
|
|
2428
|
-
},
|
|
2429
|
-
return new
|
|
2428
|
+
}, Ot.prototype.sibling = function() {
|
|
2429
|
+
return new Ot(this.parent, this.base);
|
|
2430
2430
|
};
|
|
2431
2431
|
var R = function(e) {
|
|
2432
|
-
this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : "") + (e.options.ecmaVersion >= 13 ? "d" : "") + (e.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties =
|
|
2432
|
+
this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : "") + (e.options.ecmaVersion >= 13 ? "d" : "") + (e.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = Ct[e.options.ecmaVersion >= 14 ? 14 : e.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = Object.create(null), this.backReferenceNames = [], this.branchID = null;
|
|
2433
2433
|
};
|
|
2434
2434
|
R.prototype.reset = function(e, t, n) {
|
|
2435
2435
|
var r = n.indexOf("v") !== -1, i = n.indexOf("u") !== -1;
|
|
@@ -2473,12 +2473,12 @@ R.prototype.reset = function(e, t, n) {
|
|
|
2473
2473
|
}
|
|
2474
2474
|
this.options.ecmaVersion >= 15 && r && i && this.raise(e.start, "Invalid regular expression flag");
|
|
2475
2475
|
};
|
|
2476
|
-
function
|
|
2476
|
+
function kt(e) {
|
|
2477
2477
|
for (var t in e) return !0;
|
|
2478
2478
|
return !1;
|
|
2479
2479
|
}
|
|
2480
2480
|
L.validateRegExpPattern = function(e) {
|
|
2481
|
-
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 &&
|
|
2481
|
+
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && kt(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
|
|
2482
2482
|
}, L.regexp_pattern = function(e) {
|
|
2483
2483
|
e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(41) && e.raise("Unmatched ')'"), (e.eat(93) || e.eat(125)) && e.raise("Lone quantifier brackets")), e.maxBackReference > e.numCapturingParens && e.raise("Invalid escape");
|
|
2484
2484
|
for (var t = 0, n = e.backReferenceNames; t < n.length; t += 1) {
|
|
@@ -2487,7 +2487,7 @@ L.validateRegExpPattern = function(e) {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
}, L.regexp_disjunction = function(e) {
|
|
2489
2489
|
var t = this.options.ecmaVersion >= 16;
|
|
2490
|
-
for (t && (e.branchID = new
|
|
2490
|
+
for (t && (e.branchID = new Ot(e.branchID, null)), this.regexp_alternative(e); e.eat(124);) t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
|
|
2491
2491
|
t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, !0) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets");
|
|
2492
2492
|
}, L.regexp_alternative = function(e) {
|
|
2493
2493
|
for (; e.pos < e.source.length && this.regexp_eatTerm(e););
|
|
@@ -2562,10 +2562,10 @@ L.validateRegExpPattern = function(e) {
|
|
|
2562
2562
|
}
|
|
2563
2563
|
return !1;
|
|
2564
2564
|
}, L.regexp_eatModifiers = function(e) {
|
|
2565
|
-
for (var t = "", n = 0; (n = e.current()) !== -1 &&
|
|
2565
|
+
for (var t = "", n = 0; (n = e.current()) !== -1 && At(n);) t += me(n), e.advance();
|
|
2566
2566
|
return t;
|
|
2567
2567
|
};
|
|
2568
|
-
function
|
|
2568
|
+
function At(e) {
|
|
2569
2569
|
return e === 105 || e === 109 || e === 115;
|
|
2570
2570
|
}
|
|
2571
2571
|
L.regexp_eatExtendedAtom = function(e) {
|
|
@@ -2574,13 +2574,13 @@ L.regexp_eatExtendedAtom = function(e) {
|
|
|
2574
2574
|
return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
|
|
2575
2575
|
}, L.regexp_eatSyntaxCharacter = function(e) {
|
|
2576
2576
|
var t = e.current();
|
|
2577
|
-
return
|
|
2577
|
+
return jt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
2578
2578
|
};
|
|
2579
|
-
function
|
|
2579
|
+
function jt(e) {
|
|
2580
2580
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
2581
2581
|
}
|
|
2582
2582
|
L.regexp_eatPatternCharacters = function(e) {
|
|
2583
|
-
for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !
|
|
2583
|
+
for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !jt(n);) e.advance();
|
|
2584
2584
|
return e.pos !== t;
|
|
2585
2585
|
}, L.regexp_eatExtendedPatternCharacter = function(e) {
|
|
2586
2586
|
var t = e.current();
|
|
@@ -2601,23 +2601,23 @@ L.regexp_eatPatternCharacters = function(e) {
|
|
|
2601
2601
|
return !1;
|
|
2602
2602
|
}, L.regexp_eatRegExpIdentifierName = function(e) {
|
|
2603
2603
|
if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
|
|
2604
|
-
for (e.lastStringValue +=
|
|
2604
|
+
for (e.lastStringValue += me(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e);) e.lastStringValue += me(e.lastIntValue);
|
|
2605
2605
|
return !0;
|
|
2606
2606
|
}
|
|
2607
2607
|
return !1;
|
|
2608
2608
|
}, L.regexp_eatRegExpIdentifierStart = function(e) {
|
|
2609
2609
|
var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
|
|
2610
|
-
return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue),
|
|
2610
|
+
return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Mt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
|
|
2611
2611
|
};
|
|
2612
|
-
function
|
|
2613
|
-
return
|
|
2612
|
+
function Mt(e) {
|
|
2613
|
+
return y(e, !0) || e === 36 || e === 95;
|
|
2614
2614
|
}
|
|
2615
2615
|
L.regexp_eatRegExpIdentifierPart = function(e) {
|
|
2616
2616
|
var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
|
|
2617
|
-
return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue),
|
|
2617
|
+
return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Nt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
|
|
2618
2618
|
};
|
|
2619
|
-
function
|
|
2620
|
-
return
|
|
2619
|
+
function Nt(e) {
|
|
2620
|
+
return b(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
2621
2621
|
}
|
|
2622
2622
|
L.regexp_eatAtomEscape = function(e) {
|
|
2623
2623
|
return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
|
|
@@ -2646,15 +2646,15 @@ L.regexp_eatAtomEscape = function(e) {
|
|
|
2646
2646
|
}
|
|
2647
2647
|
return !1;
|
|
2648
2648
|
}, L.regexp_eatZero = function(e) {
|
|
2649
|
-
return e.current() === 48 && !
|
|
2649
|
+
return e.current() === 48 && !Wt(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
|
|
2650
2650
|
}, L.regexp_eatControlEscape = function(e) {
|
|
2651
2651
|
var t = e.current();
|
|
2652
2652
|
return t === 116 ? (e.lastIntValue = 9, e.advance(), !0) : t === 110 ? (e.lastIntValue = 10, e.advance(), !0) : t === 118 ? (e.lastIntValue = 11, e.advance(), !0) : t === 102 ? (e.lastIntValue = 12, e.advance(), !0) : t === 114 ? (e.lastIntValue = 13, e.advance(), !0) : !1;
|
|
2653
2653
|
}, L.regexp_eatControlLetter = function(e) {
|
|
2654
2654
|
var t = e.current();
|
|
2655
|
-
return
|
|
2655
|
+
return Pt(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
2656
2656
|
};
|
|
2657
|
-
function
|
|
2657
|
+
function Pt(e) {
|
|
2658
2658
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
2659
2659
|
}
|
|
2660
2660
|
L.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
@@ -2673,12 +2673,12 @@ L.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
|
2673
2673
|
}
|
|
2674
2674
|
return !0;
|
|
2675
2675
|
}
|
|
2676
|
-
if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) &&
|
|
2676
|
+
if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && Ft(e.lastIntValue)) return !0;
|
|
2677
2677
|
r && e.raise("Invalid unicode escape"), e.pos = n;
|
|
2678
2678
|
}
|
|
2679
2679
|
return !1;
|
|
2680
2680
|
};
|
|
2681
|
-
function
|
|
2681
|
+
function Ft(e) {
|
|
2682
2682
|
return e >= 0 && e <= 1114111;
|
|
2683
2683
|
}
|
|
2684
2684
|
L.regexp_eatIdentityEscape = function(e) {
|
|
@@ -2696,10 +2696,10 @@ L.regexp_eatIdentityEscape = function(e) {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
return !1;
|
|
2698
2698
|
};
|
|
2699
|
-
var
|
|
2699
|
+
var It = 0, Lt = 1, z = 2;
|
|
2700
2700
|
L.regexp_eatCharacterClassEscape = function(e) {
|
|
2701
2701
|
var t = e.current();
|
|
2702
|
-
if (
|
|
2702
|
+
if (Rt(t)) return e.lastIntValue = -1, e.advance(), Lt;
|
|
2703
2703
|
var n = !1;
|
|
2704
2704
|
if (e.switchU && this.options.ecmaVersion >= 9 && ((n = t === 80) || t === 112)) {
|
|
2705
2705
|
e.lastIntValue = -1, e.advance();
|
|
@@ -2707,9 +2707,9 @@ L.regexp_eatCharacterClassEscape = function(e) {
|
|
|
2707
2707
|
if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === z && e.raise("Invalid property name"), r;
|
|
2708
2708
|
e.raise("Invalid property name");
|
|
2709
2709
|
}
|
|
2710
|
-
return
|
|
2710
|
+
return It;
|
|
2711
2711
|
};
|
|
2712
|
-
function
|
|
2712
|
+
function Rt(e) {
|
|
2713
2713
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
2714
2714
|
}
|
|
2715
2715
|
L.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
@@ -2718,35 +2718,35 @@ L.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
2718
2718
|
var n = e.lastStringValue;
|
|
2719
2719
|
if (this.regexp_eatUnicodePropertyValue(e)) {
|
|
2720
2720
|
var r = e.lastStringValue;
|
|
2721
|
-
return this.regexp_validateUnicodePropertyNameAndValue(e, n, r),
|
|
2721
|
+
return this.regexp_validateUnicodePropertyNameAndValue(e, n, r), Lt;
|
|
2722
2722
|
}
|
|
2723
2723
|
}
|
|
2724
2724
|
if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
|
|
2725
2725
|
var i = e.lastStringValue;
|
|
2726
2726
|
return this.regexp_validateUnicodePropertyNameOrValue(e, i);
|
|
2727
2727
|
}
|
|
2728
|
-
return
|
|
2728
|
+
return It;
|
|
2729
2729
|
}, L.regexp_validateUnicodePropertyNameAndValue = function(e, t, n) {
|
|
2730
|
-
|
|
2730
|
+
ue(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(n) || e.raise("Invalid property value");
|
|
2731
2731
|
}, L.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
2732
|
-
if (e.unicodeProperties.binary.test(t)) return
|
|
2732
|
+
if (e.unicodeProperties.binary.test(t)) return Lt;
|
|
2733
2733
|
if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return z;
|
|
2734
2734
|
e.raise("Invalid property name");
|
|
2735
2735
|
}, L.regexp_eatUnicodePropertyName = function(e) {
|
|
2736
2736
|
var t = 0;
|
|
2737
|
-
for (e.lastStringValue = "";
|
|
2737
|
+
for (e.lastStringValue = ""; zt(t = e.current());) e.lastStringValue += me(t), e.advance();
|
|
2738
2738
|
return e.lastStringValue !== "";
|
|
2739
2739
|
};
|
|
2740
|
-
function
|
|
2741
|
-
return
|
|
2740
|
+
function zt(e) {
|
|
2741
|
+
return Pt(e) || e === 95;
|
|
2742
2742
|
}
|
|
2743
2743
|
L.regexp_eatUnicodePropertyValue = function(e) {
|
|
2744
2744
|
var t = 0;
|
|
2745
|
-
for (e.lastStringValue = "";
|
|
2745
|
+
for (e.lastStringValue = ""; Bt(t = e.current());) e.lastStringValue += me(t), e.advance();
|
|
2746
2746
|
return e.lastStringValue !== "";
|
|
2747
2747
|
};
|
|
2748
|
-
function
|
|
2749
|
-
return
|
|
2748
|
+
function Bt(e) {
|
|
2749
|
+
return zt(e) || Wt(e);
|
|
2750
2750
|
}
|
|
2751
2751
|
L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
2752
2752
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -2757,7 +2757,7 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
|
2757
2757
|
}
|
|
2758
2758
|
return !1;
|
|
2759
2759
|
}, L.regexp_classContents = function(e) {
|
|
2760
|
-
return e.current() === 93 ?
|
|
2760
|
+
return e.current() === 93 ? Lt : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), Lt);
|
|
2761
2761
|
}, L.regexp_nonEmptyClassRanges = function(e) {
|
|
2762
2762
|
for (; this.regexp_eatClassAtom(e);) {
|
|
2763
2763
|
var t = e.lastIntValue;
|
|
@@ -2772,7 +2772,7 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
|
2772
2772
|
if (this.regexp_eatClassEscape(e)) return !0;
|
|
2773
2773
|
if (e.switchU) {
|
|
2774
2774
|
var n = e.current();
|
|
2775
|
-
(n === 99 ||
|
|
2775
|
+
(n === 99 || qt(n)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
2776
2776
|
}
|
|
2777
2777
|
e.pos = t;
|
|
2778
2778
|
}
|
|
@@ -2788,12 +2788,12 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
|
2788
2788
|
}
|
|
2789
2789
|
return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
|
|
2790
2790
|
}, L.regexp_classSetExpression = function(e) {
|
|
2791
|
-
var t =
|
|
2791
|
+
var t = Lt, n;
|
|
2792
2792
|
if (!this.regexp_eatClassSetRange(e)) if (n = this.regexp_eatClassSetOperand(e)) {
|
|
2793
2793
|
n === z && (t = z);
|
|
2794
2794
|
for (var r = e.pos; e.eatChars([38, 38]);) {
|
|
2795
2795
|
if (e.current() !== 38 && (n = this.regexp_eatClassSetOperand(e))) {
|
|
2796
|
-
n !== z && (t =
|
|
2796
|
+
n !== z && (t = Lt);
|
|
2797
2797
|
continue;
|
|
2798
2798
|
}
|
|
2799
2799
|
e.raise("Invalid character in character class");
|
|
@@ -2818,7 +2818,7 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
|
2818
2818
|
}
|
|
2819
2819
|
return !1;
|
|
2820
2820
|
}, L.regexp_eatClassSetOperand = function(e) {
|
|
2821
|
-
return this.regexp_eatClassSetCharacter(e) ?
|
|
2821
|
+
return this.regexp_eatClassSetCharacter(e) ? Lt : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
|
|
2822
2822
|
}, L.regexp_eatNestedClass = function(e) {
|
|
2823
2823
|
var t = e.pos;
|
|
2824
2824
|
if (e.eat(91)) {
|
|
@@ -2847,29 +2847,29 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
|
2847
2847
|
return t;
|
|
2848
2848
|
}, L.regexp_classString = function(e) {
|
|
2849
2849
|
for (var t = 0; this.regexp_eatClassSetCharacter(e);) t++;
|
|
2850
|
-
return t === 1 ?
|
|
2850
|
+
return t === 1 ? Lt : z;
|
|
2851
2851
|
}, L.regexp_eatClassSetCharacter = function(e) {
|
|
2852
2852
|
var t = e.pos;
|
|
2853
2853
|
if (e.eat(92)) return this.regexp_eatCharacterEscape(e) || this.regexp_eatClassSetReservedPunctuator(e) ? !0 : e.eat(98) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
|
|
2854
2854
|
var n = e.current();
|
|
2855
|
-
return n < 0 || n === e.lookahead() &&
|
|
2855
|
+
return n < 0 || n === e.lookahead() && Vt(n) || Ht(n) ? !1 : (e.advance(), e.lastIntValue = n, !0);
|
|
2856
2856
|
};
|
|
2857
|
-
function
|
|
2857
|
+
function Vt(e) {
|
|
2858
2858
|
return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
|
|
2859
2859
|
}
|
|
2860
|
-
function
|
|
2860
|
+
function Ht(e) {
|
|
2861
2861
|
return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
|
|
2862
2862
|
}
|
|
2863
2863
|
L.regexp_eatClassSetReservedPunctuator = function(e) {
|
|
2864
2864
|
var t = e.current();
|
|
2865
|
-
return
|
|
2865
|
+
return Ut(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
2866
2866
|
};
|
|
2867
|
-
function
|
|
2867
|
+
function Ut(e) {
|
|
2868
2868
|
return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
|
|
2869
2869
|
}
|
|
2870
2870
|
L.regexp_eatClassControlLetter = function(e) {
|
|
2871
2871
|
var t = e.current();
|
|
2872
|
-
return
|
|
2872
|
+
return Wt(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
2873
2873
|
}, L.regexp_eatHexEscapeSequence = function(e) {
|
|
2874
2874
|
var t = e.pos;
|
|
2875
2875
|
if (e.eat(120)) {
|
|
@@ -2879,21 +2879,21 @@ L.regexp_eatClassControlLetter = function(e) {
|
|
|
2879
2879
|
return !1;
|
|
2880
2880
|
}, L.regexp_eatDecimalDigits = function(e) {
|
|
2881
2881
|
var t = e.pos, n = 0;
|
|
2882
|
-
for (e.lastIntValue = 0;
|
|
2882
|
+
for (e.lastIntValue = 0; Wt(n = e.current());) e.lastIntValue = 10 * e.lastIntValue + (n - 48), e.advance();
|
|
2883
2883
|
return e.pos !== t;
|
|
2884
2884
|
};
|
|
2885
|
-
function
|
|
2885
|
+
function Wt(e) {
|
|
2886
2886
|
return e >= 48 && e <= 57;
|
|
2887
2887
|
}
|
|
2888
2888
|
L.regexp_eatHexDigits = function(e) {
|
|
2889
2889
|
var t = e.pos, n = 0;
|
|
2890
|
-
for (e.lastIntValue = 0;
|
|
2890
|
+
for (e.lastIntValue = 0; Gt(n = e.current());) e.lastIntValue = 16 * e.lastIntValue + Kt(n), e.advance();
|
|
2891
2891
|
return e.pos !== t;
|
|
2892
2892
|
};
|
|
2893
|
-
function
|
|
2893
|
+
function Gt(e) {
|
|
2894
2894
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
2895
2895
|
}
|
|
2896
|
-
function
|
|
2896
|
+
function Kt(e) {
|
|
2897
2897
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
2898
2898
|
}
|
|
2899
2899
|
L.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
@@ -2908,9 +2908,9 @@ L.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
2908
2908
|
return !1;
|
|
2909
2909
|
}, L.regexp_eatOctalDigit = function(e) {
|
|
2910
2910
|
var t = e.current();
|
|
2911
|
-
return
|
|
2911
|
+
return qt(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
2912
2912
|
};
|
|
2913
|
-
function
|
|
2913
|
+
function qt(e) {
|
|
2914
2914
|
return e >= 48 && e <= 55;
|
|
2915
2915
|
}
|
|
2916
2916
|
L.regexp_eatFixedHexDigits = function(e, t) {
|
|
@@ -2918,18 +2918,18 @@ L.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
2918
2918
|
e.lastIntValue = 0;
|
|
2919
2919
|
for (var r = 0; r < t; ++r) {
|
|
2920
2920
|
var i = e.current();
|
|
2921
|
-
if (!
|
|
2922
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
2921
|
+
if (!Gt(i)) return e.pos = n, !1;
|
|
2922
|
+
e.lastIntValue = 16 * e.lastIntValue + Kt(i), e.advance();
|
|
2923
2923
|
}
|
|
2924
2924
|
return !0;
|
|
2925
2925
|
};
|
|
2926
|
-
var
|
|
2927
|
-
this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new
|
|
2926
|
+
var Jt = function(e) {
|
|
2927
|
+
this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new _e(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
|
|
2928
2928
|
}, B = k.prototype;
|
|
2929
2929
|
B.next = function(e) {
|
|
2930
|
-
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new
|
|
2930
|
+
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Jt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
2931
2931
|
}, B.getToken = function() {
|
|
2932
|
-
return this.next(), new
|
|
2932
|
+
return this.next(), new Jt(this);
|
|
2933
2933
|
}, typeof Symbol < "u" && (B[Symbol.iterator] = function() {
|
|
2934
2934
|
var e = this;
|
|
2935
2935
|
return { next: function() {
|
|
@@ -2945,7 +2945,7 @@ B.next = function(e) {
|
|
|
2945
2945
|
if (e.override) return e.override(this);
|
|
2946
2946
|
this.readToken(this.fullCharCodeAtPos());
|
|
2947
2947
|
}, B.readToken = function(e) {
|
|
2948
|
-
return
|
|
2948
|
+
return y(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
|
|
2949
2949
|
}, B.fullCharCodeAt = function(e) {
|
|
2950
2950
|
var t = this.input.charCodeAt(e);
|
|
2951
2951
|
if (t <= 55295 || t >= 56320) return t;
|
|
@@ -2955,10 +2955,10 @@ B.next = function(e) {
|
|
|
2955
2955
|
return this.fullCharCodeAt(this.pos);
|
|
2956
2956
|
}, B.skipBlockComment = function() {
|
|
2957
2957
|
var e = this.options.onComment && this.curPosition(), t = this.pos, n = this.input.indexOf("*/", this.pos += 2);
|
|
2958
|
-
if (n === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = n + 2, this.options.locations) for (var r = void 0, i = t; (r =
|
|
2958
|
+
if (n === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = n + 2, this.options.locations) for (var r = void 0, i = t; (r = ae(this.input, i, this.pos)) > -1;) ++this.curLine, i = this.lineStart = r;
|
|
2959
2959
|
this.options.onComment && this.options.onComment(!0, this.input.slice(t + 2, n), t, this.pos, e, this.curPosition());
|
|
2960
2960
|
}, B.skipLineComment = function(e) {
|
|
2961
|
-
for (var t = this.pos, n = this.options.onComment && this.curPosition(), r = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !
|
|
2961
|
+
for (var t = this.pos, n = this.options.onComment && this.curPosition(), r = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !ie(r);) r = this.input.charCodeAt(++this.pos);
|
|
2962
2962
|
this.options.onComment && this.options.onComment(!1, this.input.slice(t + e, this.pos), t, this.pos, n, this.curPosition());
|
|
2963
2963
|
}, B.skipSpace = function() {
|
|
2964
2964
|
loop: for (; this.pos < this.input.length;) {
|
|
@@ -2985,7 +2985,7 @@ B.next = function(e) {
|
|
|
2985
2985
|
default: break loop;
|
|
2986
2986
|
}
|
|
2987
2987
|
break;
|
|
2988
|
-
default: if (e > 8 && e < 14 || e >= 5760 &&
|
|
2988
|
+
default: if (e > 8 && e < 14 || e >= 5760 && oe.test(String.fromCharCode(e))) ++this.pos;
|
|
2989
2989
|
else break loop;
|
|
2990
2990
|
}
|
|
2991
2991
|
}
|
|
@@ -3031,8 +3031,8 @@ B.next = function(e) {
|
|
|
3031
3031
|
return this.finishOp(E.question, 1);
|
|
3032
3032
|
}, B.readToken_numberSign = function() {
|
|
3033
3033
|
var e = this.options.ecmaVersion, t = 35;
|
|
3034
|
-
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(),
|
|
3035
|
-
this.raise(this.pos, "Unexpected character '" +
|
|
3034
|
+
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), y(t, !0) || t === 92)) return this.finishToken(E.privateId, this.readWord1());
|
|
3035
|
+
this.raise(this.pos, "Unexpected character '" + me(t) + "'");
|
|
3036
3036
|
}, B.getTokenFromCode = function(e) {
|
|
3037
3037
|
switch (e) {
|
|
3038
3038
|
case 46: return this.readToken_dot();
|
|
@@ -3082,7 +3082,7 @@ B.next = function(e) {
|
|
|
3082
3082
|
case 126: return this.finishOp(E.prefix, 1);
|
|
3083
3083
|
case 35: return this.readToken_numberSign();
|
|
3084
3084
|
}
|
|
3085
|
-
this.raise(this.pos, "Unexpected character '" +
|
|
3085
|
+
this.raise(this.pos, "Unexpected character '" + me(e) + "'");
|
|
3086
3086
|
}, B.finishOp = function(e, t) {
|
|
3087
3087
|
var n = this.input.slice(this.pos, this.pos + t);
|
|
3088
3088
|
return this.pos += t, this.finishToken(e, n);
|
|
@@ -3126,17 +3126,17 @@ B.next = function(e) {
|
|
|
3126
3126
|
}
|
|
3127
3127
|
return r && s === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === a || t != null && this.pos - a !== t ? null : o;
|
|
3128
3128
|
};
|
|
3129
|
-
function
|
|
3129
|
+
function Yt(e, t) {
|
|
3130
3130
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
3131
3131
|
}
|
|
3132
|
-
function
|
|
3132
|
+
function Xt(e) {
|
|
3133
3133
|
return typeof BigInt == "function" ? BigInt(e.replace(/_/g, "")) : null;
|
|
3134
3134
|
}
|
|
3135
3135
|
B.readRadixNumber = function(e) {
|
|
3136
3136
|
var t = this.pos;
|
|
3137
3137
|
this.pos += 2;
|
|
3138
3138
|
var n = this.readInt(e);
|
|
3139
|
-
return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n =
|
|
3139
|
+
return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = Xt(this.input.slice(t, this.pos)), ++this.pos) : y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(E.num, n);
|
|
3140
3140
|
}, B.readNumber = function(e) {
|
|
3141
3141
|
var t = this.pos;
|
|
3142
3142
|
!e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
|
|
@@ -3144,11 +3144,11 @@ B.readRadixNumber = function(e) {
|
|
|
3144
3144
|
n && this.strict && this.raise(t, "Invalid number");
|
|
3145
3145
|
var r = this.input.charCodeAt(this.pos);
|
|
3146
3146
|
if (!n && !e && this.options.ecmaVersion >= 11 && r === 110) {
|
|
3147
|
-
var i =
|
|
3148
|
-
return ++this.pos,
|
|
3147
|
+
var i = Xt(this.input.slice(t, this.pos));
|
|
3148
|
+
return ++this.pos, y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(E.num, i);
|
|
3149
3149
|
}
|
|
3150
|
-
n && /[89]/.test(this.input.slice(t, this.pos)) && (n = !1), r === 46 && !n && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !n && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")),
|
|
3151
|
-
var a =
|
|
3150
|
+
n && /[89]/.test(this.input.slice(t, this.pos)) && (n = !1), r === 46 && !n && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !n && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
3151
|
+
var a = Yt(this.input.slice(t, this.pos), n);
|
|
3152
3152
|
return this.finishToken(E.num, a);
|
|
3153
3153
|
}, B.readCodePoint = function() {
|
|
3154
3154
|
var e = this.input.charCodeAt(this.pos), t;
|
|
@@ -3163,22 +3163,22 @@ B.readRadixNumber = function(e) {
|
|
|
3163
3163
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
|
|
3164
3164
|
var r = this.input.charCodeAt(this.pos);
|
|
3165
3165
|
if (r === e) break;
|
|
3166
|
-
r === 92 ? (t += this.input.slice(n, this.pos), t += this.readEscapedChar(!1), n = this.pos) : r === 8232 || r === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (
|
|
3166
|
+
r === 92 ? (t += this.input.slice(n, this.pos), t += this.readEscapedChar(!1), n = this.pos) : r === 8232 || r === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (ie(r) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
|
|
3167
3167
|
}
|
|
3168
3168
|
return t += this.input.slice(n, this.pos++), this.finishToken(E.string, t);
|
|
3169
3169
|
};
|
|
3170
|
-
var
|
|
3170
|
+
var Zt = {};
|
|
3171
3171
|
B.tryReadTemplateToken = function() {
|
|
3172
3172
|
this.inTemplateElement = !0;
|
|
3173
3173
|
try {
|
|
3174
3174
|
this.readTmplToken();
|
|
3175
3175
|
} catch (e) {
|
|
3176
|
-
if (e ===
|
|
3176
|
+
if (e === Zt) this.readInvalidTemplateToken();
|
|
3177
3177
|
else throw e;
|
|
3178
3178
|
}
|
|
3179
3179
|
this.inTemplateElement = !1;
|
|
3180
3180
|
}, B.invalidStringToken = function(e, t) {
|
|
3181
|
-
if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw
|
|
3181
|
+
if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Zt;
|
|
3182
3182
|
this.raise(e, t);
|
|
3183
3183
|
}, B.readTmplToken = function() {
|
|
3184
3184
|
for (var e = "", t = this.pos;;) {
|
|
@@ -3186,7 +3186,7 @@ B.tryReadTemplateToken = function() {
|
|
|
3186
3186
|
var n = this.input.charCodeAt(this.pos);
|
|
3187
3187
|
if (n === 96 || n === 36 && this.input.charCodeAt(this.pos + 1) === 123) return this.pos === this.start && (this.type === E.template || this.type === E.invalidTemplate) ? n === 36 ? (this.pos += 2, this.finishToken(E.dollarBraceL)) : (++this.pos, this.finishToken(E.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(E.template, e));
|
|
3188
3188
|
if (n === 92) e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
|
|
3189
|
-
else if (
|
|
3189
|
+
else if (ie(n)) {
|
|
3190
3190
|
switch (e += this.input.slice(t, this.pos), ++this.pos, n) {
|
|
3191
3191
|
case 13: this.input.charCodeAt(this.pos) === 10 && ++this.pos;
|
|
3192
3192
|
case 10:
|
|
@@ -3220,7 +3220,7 @@ B.tryReadTemplateToken = function() {
|
|
|
3220
3220
|
case 110: return "\n";
|
|
3221
3221
|
case 114: return "\r";
|
|
3222
3222
|
case 120: return String.fromCharCode(this.readHexChar(2));
|
|
3223
|
-
case 117: return
|
|
3223
|
+
case 117: return me(this.readCodePoint());
|
|
3224
3224
|
case 116: return " ";
|
|
3225
3225
|
case 98: return "\b";
|
|
3226
3226
|
case 118: return "\v";
|
|
@@ -3237,7 +3237,7 @@ B.tryReadTemplateToken = function() {
|
|
|
3237
3237
|
var r = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], i = parseInt(r, 8);
|
|
3238
3238
|
return i > 255 && (r = r.slice(0, -1), i = parseInt(r, 8)), this.pos += r.length - 1, t = this.input.charCodeAt(this.pos), (r !== "0" || t === 56 || t === 57) && (this.strict || e) && this.invalidStringToken(this.pos - 1 - r.length, e ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(i);
|
|
3239
3239
|
}
|
|
3240
|
-
return
|
|
3240
|
+
return ie(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
|
|
3241
3241
|
}
|
|
3242
3242
|
}, B.readHexChar = function(e) {
|
|
3243
3243
|
var t = this.pos, n = this.readInt(16, e);
|
|
@@ -3246,55 +3246,55 @@ B.tryReadTemplateToken = function() {
|
|
|
3246
3246
|
this.containsEsc = !1;
|
|
3247
3247
|
for (var e = "", t = !0, n = this.pos, r = this.options.ecmaVersion >= 6; this.pos < this.input.length;) {
|
|
3248
3248
|
var i = this.fullCharCodeAtPos();
|
|
3249
|
-
if (
|
|
3249
|
+
if (b(i, r)) this.pos += i <= 65535 ? 1 : 2;
|
|
3250
3250
|
else if (i === 92) {
|
|
3251
3251
|
this.containsEsc = !0, e += this.input.slice(n, this.pos);
|
|
3252
3252
|
var a = this.pos;
|
|
3253
3253
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
3254
3254
|
var o = this.readCodePoint();
|
|
3255
|
-
(t ?
|
|
3255
|
+
(t ? y : b)(o, r) || this.invalidStringToken(a, "Invalid Unicode escape"), e += me(o), n = this.pos;
|
|
3256
3256
|
} else break;
|
|
3257
3257
|
t = !1;
|
|
3258
3258
|
}
|
|
3259
3259
|
return e + this.input.slice(n, this.pos);
|
|
3260
3260
|
}, B.readWord = function() {
|
|
3261
3261
|
var e = this.readWord1(), t = E.name;
|
|
3262
|
-
return this.keywords.test(e) && (t =
|
|
3262
|
+
return this.keywords.test(e) && (t = ne[e]), this.finishToken(t, e);
|
|
3263
3263
|
};
|
|
3264
|
-
var
|
|
3264
|
+
var Qt = "8.17.0";
|
|
3265
3265
|
k.acorn = {
|
|
3266
3266
|
Parser: k,
|
|
3267
|
-
version:
|
|
3268
|
-
defaultOptions:
|
|
3269
|
-
Position:
|
|
3270
|
-
SourceLocation:
|
|
3271
|
-
getLineInfo:
|
|
3272
|
-
Node:
|
|
3273
|
-
TokenType:
|
|
3267
|
+
version: Qt,
|
|
3268
|
+
defaultOptions: ye,
|
|
3269
|
+
Position: ge,
|
|
3270
|
+
SourceLocation: _e,
|
|
3271
|
+
getLineInfo: ve,
|
|
3272
|
+
Node: at,
|
|
3273
|
+
TokenType: x,
|
|
3274
3274
|
tokTypes: E,
|
|
3275
|
-
keywordTypes:
|
|
3275
|
+
keywordTypes: ne,
|
|
3276
3276
|
TokContext: P,
|
|
3277
3277
|
tokContexts: F,
|
|
3278
|
-
isIdentifierChar:
|
|
3279
|
-
isIdentifierStart:
|
|
3280
|
-
Token:
|
|
3281
|
-
isNewLine:
|
|
3278
|
+
isIdentifierChar: b,
|
|
3279
|
+
isIdentifierStart: y,
|
|
3280
|
+
Token: Jt,
|
|
3281
|
+
isNewLine: ie,
|
|
3282
3282
|
lineBreak: D,
|
|
3283
|
-
lineBreakG:
|
|
3284
|
-
nonASCIIwhitespace:
|
|
3283
|
+
lineBreakG: re,
|
|
3284
|
+
nonASCIIwhitespace: oe
|
|
3285
3285
|
};
|
|
3286
|
-
function
|
|
3286
|
+
function $t(e, t) {
|
|
3287
3287
|
return k.parse(e, t);
|
|
3288
3288
|
}
|
|
3289
|
-
function
|
|
3289
|
+
function en(e, t, n) {
|
|
3290
3290
|
return k.parseExpressionAt(e, t, n);
|
|
3291
3291
|
}
|
|
3292
|
-
function
|
|
3292
|
+
function tn(e, t) {
|
|
3293
3293
|
return k.tokenizer(e, t);
|
|
3294
3294
|
}
|
|
3295
3295
|
//#endregion
|
|
3296
3296
|
//#region node_modules/acorn-typescript/lib/index.mjs
|
|
3297
|
-
function
|
|
3297
|
+
function nn(e, t) {
|
|
3298
3298
|
for (var n = 0; n < t.length; n++) {
|
|
3299
3299
|
var r = t[n];
|
|
3300
3300
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, typeof (i = function(e, t) {
|
|
@@ -3310,36 +3310,36 @@ function tn(e, t) {
|
|
|
3310
3310
|
}
|
|
3311
3311
|
var i;
|
|
3312
3312
|
}
|
|
3313
|
-
function
|
|
3314
|
-
return
|
|
3313
|
+
function rn() {
|
|
3314
|
+
return rn = Object.assign ? Object.assign.bind() : function(e) {
|
|
3315
3315
|
for (var t = 1; t < arguments.length; t++) {
|
|
3316
3316
|
var n = arguments[t];
|
|
3317
3317
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3318
3318
|
}
|
|
3319
3319
|
return e;
|
|
3320
|
-
},
|
|
3321
|
-
}
|
|
3322
|
-
function rn(e, t) {
|
|
3323
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, an(e, t);
|
|
3320
|
+
}, rn.apply(this, arguments);
|
|
3324
3321
|
}
|
|
3325
3322
|
function an(e, t) {
|
|
3326
|
-
|
|
3327
|
-
return e.__proto__ = t, e;
|
|
3328
|
-
}, an(e, t);
|
|
3323
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, on(e, t);
|
|
3329
3324
|
}
|
|
3330
3325
|
function on(e, t) {
|
|
3326
|
+
return on = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
3327
|
+
return e.__proto__ = t, e;
|
|
3328
|
+
}, on(e, t);
|
|
3329
|
+
}
|
|
3330
|
+
function sn(e, t) {
|
|
3331
3331
|
(t == null || t > e.length) && (t = e.length);
|
|
3332
3332
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
3333
3333
|
return r;
|
|
3334
3334
|
}
|
|
3335
|
-
function
|
|
3335
|
+
function cn(e, t) {
|
|
3336
3336
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3337
3337
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
3338
3338
|
if (Array.isArray(e) || (n = function(e, t) {
|
|
3339
3339
|
if (e) {
|
|
3340
|
-
if (typeof e == "string") return
|
|
3340
|
+
if (typeof e == "string") return sn(e, t);
|
|
3341
3341
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
3342
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
3342
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? sn(e, t) : void 0;
|
|
3343
3343
|
}
|
|
3344
3344
|
}(e)) || t && e && typeof e.length == "number") {
|
|
3345
3345
|
n && (e = n);
|
|
@@ -3355,11 +3355,11 @@ function sn(e, t) {
|
|
|
3355
3355
|
}
|
|
3356
3356
|
var V = !0;
|
|
3357
3357
|
function H(e, t) {
|
|
3358
|
-
return t === void 0 && (t = {}), new
|
|
3358
|
+
return t === void 0 && (t = {}), new x("name", t);
|
|
3359
3359
|
}
|
|
3360
|
-
var
|
|
3361
|
-
function
|
|
3362
|
-
var t =
|
|
3360
|
+
var ln = /* @__PURE__ */ new WeakMap();
|
|
3361
|
+
function un(e) {
|
|
3362
|
+
var t = ln.get(e.Parser.acorn || e);
|
|
3363
3363
|
if (!t) {
|
|
3364
3364
|
var n = {
|
|
3365
3365
|
assert: H(0, { startsExpr: V }),
|
|
@@ -3376,11 +3376,11 @@ function ln(e) {
|
|
|
3376
3376
|
interface: H(0, { startsExpr: V }),
|
|
3377
3377
|
type: H(0, { startsExpr: V })
|
|
3378
3378
|
}, r = {
|
|
3379
|
-
at: new
|
|
3380
|
-
jsxName: new
|
|
3381
|
-
jsxText: new
|
|
3382
|
-
jsxTagStart: new
|
|
3383
|
-
jsxTagEnd: new
|
|
3379
|
+
at: new x("@"),
|
|
3380
|
+
jsxName: new x("jsxName"),
|
|
3381
|
+
jsxText: new x("jsxText", { beforeExpr: !0 }),
|
|
3382
|
+
jsxTagStart: new x("jsxTagStart", { startsExpr: !0 }),
|
|
3383
|
+
jsxTagEnd: new x("jsxTagEnd")
|
|
3384
3384
|
}, i = {
|
|
3385
3385
|
tc_oTag: new P("<tag", !1, !1),
|
|
3386
3386
|
tc_cTag: new P("</tag", !1, !1),
|
|
@@ -3392,18 +3392,18 @@ function ln(e) {
|
|
|
3392
3392
|
var t = this.context.pop();
|
|
3393
3393
|
t === i.tc_oTag && e === E.slash || t === i.tc_cTag ? (this.context.pop(), this.exprAllowed = this.curContext() === i.tc_expr) : this.exprAllowed = !0;
|
|
3394
3394
|
}, t = {
|
|
3395
|
-
tokTypes:
|
|
3396
|
-
tokContexts:
|
|
3395
|
+
tokTypes: rn({}, n, r),
|
|
3396
|
+
tokContexts: rn({}, i),
|
|
3397
3397
|
keywordsRegExp: a,
|
|
3398
3398
|
tokenIsLiteralPropertyName: function(e) {
|
|
3399
3399
|
return [
|
|
3400
3400
|
E.name,
|
|
3401
3401
|
E.string,
|
|
3402
3402
|
E.num
|
|
3403
|
-
].concat(Object.values(
|
|
3403
|
+
].concat(Object.values(ne), Object.values(n)).includes(e);
|
|
3404
3404
|
},
|
|
3405
3405
|
tokenIsKeywordOrIdentifier: function(e) {
|
|
3406
|
-
return [E.name].concat(Object.values(
|
|
3406
|
+
return [E.name].concat(Object.values(ne), Object.values(n)).includes(e);
|
|
3407
3407
|
},
|
|
3408
3408
|
tokenIsIdentifier: function(e) {
|
|
3409
3409
|
return [].concat(Object.values(n), [E.name]).includes(e);
|
|
@@ -3433,14 +3433,14 @@ function ln(e) {
|
|
|
3433
3433
|
}
|
|
3434
3434
|
return t;
|
|
3435
3435
|
}
|
|
3436
|
-
var
|
|
3436
|
+
var dn = 1024, fn = RegExp("(?=(" + (/* @__PURE__ */ RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y")).source + "))\\1(?=[\\n\\r\\u2028\\u2029]|\\/\\*(?!.*?\\*\\/)|$)", "y"), pn = function() {
|
|
3437
3437
|
this.shorthandAssign = void 0, this.trailingComma = void 0, this.parenthesizedAssign = void 0, this.parenthesizedBind = void 0, this.doubleProto = void 0, this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
3438
3438
|
};
|
|
3439
|
-
function
|
|
3439
|
+
function mn(e, t) {
|
|
3440
3440
|
var n = t.key.name, r = e[n], i = "true";
|
|
3441
3441
|
return t.type !== "MethodDefinition" || t.kind !== "get" && t.kind !== "set" || (i = (t.static ? "s" : "i") + t.kind), r === "iget" && i === "iset" || r === "iset" && i === "iget" || r === "sget" && i === "sset" || r === "sset" && i === "sget" ? (e[n] = "true", !1) : !!r || (e[n] = i, !1);
|
|
3442
3442
|
}
|
|
3443
|
-
function
|
|
3443
|
+
function hn(e, t) {
|
|
3444
3444
|
var n = e.key;
|
|
3445
3445
|
return !e.computed && (n.type === "Identifier" && n.name === t || n.type === "Literal" && n.value === t);
|
|
3446
3446
|
}
|
|
@@ -3545,7 +3545,7 @@ var U = {
|
|
|
3545
3545
|
return "Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got " + e.type + ".";
|
|
3546
3546
|
},
|
|
3547
3547
|
LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations."
|
|
3548
|
-
},
|
|
3548
|
+
}, gn = {
|
|
3549
3549
|
quot: "\"",
|
|
3550
3550
|
amp: "&",
|
|
3551
3551
|
apos: "'",
|
|
@@ -3799,38 +3799,38 @@ var U = {
|
|
|
3799
3799
|
clubs: "♣",
|
|
3800
3800
|
hearts: "♥",
|
|
3801
3801
|
diams: "♦"
|
|
3802
|
-
},
|
|
3803
|
-
function
|
|
3804
|
-
return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ?
|
|
3802
|
+
}, _n = /^[\da-fA-F]+$/, vn = /^\d+$/;
|
|
3803
|
+
function yn(e) {
|
|
3804
|
+
return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? yn(e.object) + "." + yn(e.property) : void 0);
|
|
3805
3805
|
}
|
|
3806
|
-
var
|
|
3807
|
-
function
|
|
3806
|
+
var bn = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
3807
|
+
function xn(e) {
|
|
3808
3808
|
if (!e) throw Error("Assert fail");
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function Sn(e) {
|
|
3811
3811
|
return e === "accessor";
|
|
3812
3812
|
}
|
|
3813
|
-
function
|
|
3813
|
+
function Cn(e) {
|
|
3814
3814
|
return e === "in" || e === "out";
|
|
3815
3815
|
}
|
|
3816
|
-
function
|
|
3816
|
+
function wn(e, t) {
|
|
3817
3817
|
return 2 | (e ? 4 : 0) | (t ? 8 : 0);
|
|
3818
3818
|
}
|
|
3819
|
-
function
|
|
3819
|
+
function Tn(e) {
|
|
3820
3820
|
if (e.type !== "MemberExpression") return !1;
|
|
3821
3821
|
var t = e.property;
|
|
3822
|
-
return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) &&
|
|
3823
|
-
}
|
|
3824
|
-
function Tn(e) {
|
|
3825
|
-
return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && Tn(e.object);
|
|
3822
|
+
return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) && En(e.object);
|
|
3826
3823
|
}
|
|
3827
3824
|
function En(e) {
|
|
3828
|
-
return e === "
|
|
3825
|
+
return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && En(e.object);
|
|
3829
3826
|
}
|
|
3830
3827
|
function Dn(e) {
|
|
3828
|
+
return e === "private" || e === "public" || e === "protected";
|
|
3829
|
+
}
|
|
3830
|
+
function On(e) {
|
|
3831
3831
|
var t = e || {}, n = t.dts, r = n !== void 0 && n, i = t.allowSatisfies, a = i !== void 0 && i;
|
|
3832
3832
|
return function(t) {
|
|
3833
|
-
var n = t.acorn ||
|
|
3833
|
+
var n = t.acorn || l, i = un(n), o = n.tokTypes, s = n.keywordTypes, c = n.isIdentifierStart, u = n.lineBreak, d = n.isNewLine, f = n.tokContexts, p = n.isIdentifierChar, m = i.tokTypes, h = i.tokContexts, g = i.keywordsRegExp, _ = i.tokenIsLiteralPropertyName, ee = i.tokenIsTemplate, te = i.tokenIsTSDeclarationStart, v = i.tokenIsIdentifier, y = i.tokenIsKeywordOrIdentifier, b = i.tokenIsTSTypeOperator;
|
|
3834
3834
|
function x(e, t, n) {
|
|
3835
3835
|
n === void 0 && (n = e.length);
|
|
3836
3836
|
for (var r = t; r < n; r++) {
|
|
@@ -3845,7 +3845,7 @@ function Dn(e) {
|
|
|
3845
3845
|
function t() {
|
|
3846
3846
|
return e.apply(this, arguments) || this;
|
|
3847
3847
|
}
|
|
3848
|
-
|
|
3848
|
+
an(t, e);
|
|
3849
3849
|
var n = t.prototype;
|
|
3850
3850
|
return n.takeDecorators = function(e) {
|
|
3851
3851
|
var t = this.decoratorStack[this.decoratorStack.length - 1];
|
|
@@ -3888,7 +3888,7 @@ function Dn(e) {
|
|
|
3888
3888
|
function t() {
|
|
3889
3889
|
return e.apply(this, arguments) || this;
|
|
3890
3890
|
}
|
|
3891
|
-
|
|
3891
|
+
an(t, e);
|
|
3892
3892
|
var n = t.prototype;
|
|
3893
3893
|
return n.jsx_readToken = function() {
|
|
3894
3894
|
for (var e = "", t = this.pos;;) {
|
|
@@ -3921,7 +3921,7 @@ function Dn(e) {
|
|
|
3921
3921
|
r !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
|
|
3922
3922
|
for (var i = ++this.pos; this.pos < this.input.length && n++ < 10;) {
|
|
3923
3923
|
if ((r = this.input[this.pos++]) === ";") {
|
|
3924
|
-
t[0] === "#" ? t[1] === "x" ? (t = t.substr(2),
|
|
3924
|
+
t[0] === "#" ? t[1] === "x" ? (t = t.substr(2), _n.test(t) && (e = String.fromCharCode(parseInt(t, 16)))) : (t = t.substr(1), vn.test(t) && (e = String.fromCharCode(parseInt(t, 10)))) : e = gn[t];
|
|
3925
3925
|
break;
|
|
3926
3926
|
}
|
|
3927
3927
|
t += r;
|
|
@@ -3995,7 +3995,7 @@ function Dn(e) {
|
|
|
3995
3995
|
break;
|
|
3996
3996
|
default: this.unexpected();
|
|
3997
3997
|
}
|
|
3998
|
-
|
|
3998
|
+
yn(s.name) !== yn(o.name) && this.raise(s.start, "Expected corresponding JSX closing tag for <" + yn(o.name) + ">");
|
|
3999
3999
|
}
|
|
4000
4000
|
var c = o.name ? "Element" : "Fragment";
|
|
4001
4001
|
return n["opening" + c] = o, n["closing" + c] = s, n.children = r, this.type === i.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(n, "JSX" + c);
|
|
@@ -4013,7 +4013,7 @@ function Dn(e) {
|
|
|
4013
4013
|
function t() {
|
|
4014
4014
|
return e.apply(this, arguments) || this;
|
|
4015
4015
|
}
|
|
4016
|
-
|
|
4016
|
+
an(t, e);
|
|
4017
4017
|
var n = t.prototype;
|
|
4018
4018
|
return n.parseMaybeImportAttributes = function(e) {
|
|
4019
4019
|
if (this.type === i._with || this.type === r.assert) {
|
|
@@ -4047,8 +4047,8 @@ function Dn(e) {
|
|
|
4047
4047
|
errorTemplate: U.InvalidModifierOnTypeParameterPositions
|
|
4048
4048
|
}), i;
|
|
4049
4049
|
}
|
|
4050
|
-
|
|
4051
|
-
var
|
|
4050
|
+
an(t, e);
|
|
4051
|
+
var l, S, C, w = t.prototype;
|
|
4052
4052
|
return w.getTokenFromCodeInType = function(t) {
|
|
4053
4053
|
return t === 62 || t === 60 ? this.finishOp(o.relational, 1) : e.prototype.getTokenFromCode.call(this, t);
|
|
4054
4054
|
}, w.readToken = function(t) {
|
|
@@ -4056,7 +4056,7 @@ function Dn(e) {
|
|
|
4056
4056
|
var n = this.curContext();
|
|
4057
4057
|
if (n === h.tc_expr) return this.jsx_readToken();
|
|
4058
4058
|
if (n === h.tc_oTag || n === h.tc_cTag) {
|
|
4059
|
-
if (
|
|
4059
|
+
if (c(t)) return this.jsx_readWord();
|
|
4060
4060
|
if (t == 62) return ++this.pos, this.finishToken(m.jsxTagEnd);
|
|
4061
4061
|
if ((t === 34 || t === 39) && n == h.tc_oTag) return this.jsx_readString(t);
|
|
4062
4062
|
}
|
|
@@ -4115,7 +4115,7 @@ function Dn(e) {
|
|
|
4115
4115
|
return this.nextTokenStartSince(this.pos);
|
|
4116
4116
|
}, w.tsHasSomeModifiers = function(e, t) {
|
|
4117
4117
|
return t.some(function(t) {
|
|
4118
|
-
return
|
|
4118
|
+
return Dn(t) ? e.accessibility === t : !!e[t];
|
|
4119
4119
|
});
|
|
4120
4120
|
}, w.tsIsStartOfStaticBlocks = function() {
|
|
4121
4121
|
return this.isContextual("static") && this.lookaheadCharCode() === 123;
|
|
@@ -4163,7 +4163,7 @@ function Dn(e) {
|
|
|
4163
4163
|
}, w.isAbstractConstructorSignature = function() {
|
|
4164
4164
|
return this.ts_isContextual(m.abstract) && this.lookahead().type === o._new;
|
|
4165
4165
|
}, w.nextTokenStartSince = function(e) {
|
|
4166
|
-
return
|
|
4166
|
+
return bn.lastIndex = e, bn.test(this.input) ? bn.lastIndex : e;
|
|
4167
4167
|
}, w.lookaheadCharCode = function() {
|
|
4168
4168
|
return this.input.charCodeAt(this.nextTokenStart());
|
|
4169
4169
|
}, w.compareLookaheadState = function(e, t) {
|
|
@@ -4247,7 +4247,7 @@ function Dn(e) {
|
|
|
4247
4247
|
}, w.isLineTerminator = function() {
|
|
4248
4248
|
return this.eat(o.semi) || e.prototype.canInsertSemicolon.call(this);
|
|
4249
4249
|
}, w.hasFollowingLineBreak = function() {
|
|
4250
|
-
return
|
|
4250
|
+
return fn.lastIndex = this.end, fn.test(this.input);
|
|
4251
4251
|
}, w.addExtra = function(e, t, n, r) {
|
|
4252
4252
|
if (r === void 0 && (r = !0), e) {
|
|
4253
4253
|
var i = e.extra = e.extra || {};
|
|
@@ -4339,7 +4339,7 @@ function Dn(e) {
|
|
|
4339
4339
|
}
|
|
4340
4340
|
return this.next(), e.prototype.exitScope.call(this), this.finishNode(t, "TSModuleBlock");
|
|
4341
4341
|
}, w.tsParseAmbientExternalModuleDeclaration = function(t) {
|
|
4342
|
-
return this.ts_isContextual(m.global) ? (t.global = !0, t.id = this.parseIdent()) : this.match(o.string) ? t.id = this.parseLiteral(this.value) : this.unexpected(), this.match(o.braceL) ? (e.prototype.enterScope.call(this,
|
|
4342
|
+
return this.ts_isContextual(m.global) ? (t.global = !0, t.id = this.parseIdent()) : this.match(o.string) ? t.id = this.parseLiteral(this.value) : this.unexpected(), this.match(o.braceL) ? (e.prototype.enterScope.call(this, dn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this)) : e.prototype.semicolon.call(this), this.finishNode(t, "TSModuleDeclaration");
|
|
4343
4343
|
}, w.tsTryParseDeclare = function(e) {
|
|
4344
4344
|
var t = this;
|
|
4345
4345
|
if (!this.isLineTerminator()) {
|
|
@@ -4655,7 +4655,7 @@ function Dn(e) {
|
|
|
4655
4655
|
return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(o._new) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher();
|
|
4656
4656
|
}, w.tsParseType = function() {
|
|
4657
4657
|
var e = this;
|
|
4658
|
-
|
|
4658
|
+
xn(this.inType);
|
|
4659
4659
|
var t = this.tsParseNonConditionalType();
|
|
4660
4660
|
if (this.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(o._extends)) return t;
|
|
4661
4661
|
var n = this.startNodeAtNode(t);
|
|
@@ -4730,7 +4730,7 @@ function Dn(e) {
|
|
|
4730
4730
|
};;) {
|
|
4731
4731
|
var d = this.startLoc, f = this.tsParseModifier(r.concat(i ?? []), a);
|
|
4732
4732
|
if (!f) break;
|
|
4733
|
-
|
|
4733
|
+
Dn(f) ? n.accessibility ? this.raise(this.start, U.DuplicateAccessibilityModifier()) : (l(d, f, f, "override"), l(d, f, f, "static"), l(d, f, f, "readonly"), l(d, f, f, "accessor"), c.accessibility = f, n.accessibility = f) : Cn(f) ? n[f] ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (l(d, f, "in", "out"), c[f] = f, n[f] = !0) : Sn(f) ? n[f] ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (u(d, f, "accessor", "readonly"), u(d, f, "accessor", "static"), u(d, f, "accessor", "override"), c[f] = f, n[f] = !0) : Object.hasOwnProperty.call(n, f) ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (l(d, f, "static", "readonly"), l(d, f, "static", "override"), l(d, f, "override", "readonly"), l(d, f, "abstract", "override"), u(d, f, "declare", "override"), u(d, f, "static", "abstract"), c[f] = f, n[f] = !0), i != null && i.includes(f) && this.raise(this.start, s);
|
|
4734
4734
|
}
|
|
4735
4735
|
return c;
|
|
4736
4736
|
}, w.tsParseInOutModifiers = function(e) {
|
|
@@ -4840,7 +4840,7 @@ function Dn(e) {
|
|
|
4840
4840
|
break;
|
|
4841
4841
|
case "global":
|
|
4842
4842
|
if (this.match(o.braceL)) {
|
|
4843
|
-
e.prototype.enterScope.call(this,
|
|
4843
|
+
e.prototype.enterScope.call(this, dn);
|
|
4844
4844
|
var i = t;
|
|
4845
4845
|
return i.global = !0, i.id = n, i.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this), this.finishNode(i, "TSModuleDeclaration");
|
|
4846
4846
|
}
|
|
@@ -4879,7 +4879,7 @@ function Dn(e) {
|
|
|
4879
4879
|
if (n === void 0 && (n = !1), t.id = this.parseIdent(), n || this.checkLValSimple(t.id, 8), this.eat(o.dot)) {
|
|
4880
4880
|
var r = this.startNode();
|
|
4881
4881
|
this.tsParseModuleOrNamespaceDeclaration(r, !0), t.body = r;
|
|
4882
|
-
} else e.prototype.enterScope.call(this,
|
|
4882
|
+
} else e.prototype.enterScope.call(this, dn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this);
|
|
4883
4883
|
return this.finishNode(t, "TSModuleDeclaration");
|
|
4884
4884
|
}, w.checkLValSimple = function(t, n, r) {
|
|
4885
4885
|
return n === void 0 && (n = 0), e.prototype.checkLValSimple.call(this, t, n, r);
|
|
@@ -4940,7 +4940,7 @@ function Dn(e) {
|
|
|
4940
4940
|
}, w.parseFunction = function(e, t, n, r, i) {
|
|
4941
4941
|
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === o.star && 2 & t && this.unexpected(), e.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), 1 & t && (e.id = 4 & t && this.type !== o.name ? null : this.parseIdent());
|
|
4942
4942
|
var a = this.yieldPos, s = this.awaitPos, c = this.awaitIdentPos, l = this.maybeInArrowParameters;
|
|
4943
|
-
this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
4943
|
+
this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(wn(e.async, e.generator)), 1 & t || (e.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(e);
|
|
4944
4944
|
var u = 1 & t;
|
|
4945
4945
|
return this.parseFunctionBody(e, n, !1, i, { isFunctionDeclaration: u }), this.yieldPos = a, this.awaitPos = s, this.awaitIdentPos = c, 1 & t && e.id && !(2 & t) && this.checkLValSimple(e.id, e.body ? this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? 1 : 2 : 3 : 0), this.maybeInArrowParameters = l, this.finishNode(e, u ? "FunctionDeclaration" : "FunctionExpression");
|
|
4946
4946
|
}, w.parseFunctionBody = function(t, n, r, i, a) {
|
|
@@ -5027,7 +5027,7 @@ function Dn(e) {
|
|
|
5027
5027
|
else {
|
|
5028
5028
|
if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== o.string && this.unexpected(), e.source = this.parseExprAtom(), this.parseMaybeImportAttributes(e);
|
|
5029
5029
|
else {
|
|
5030
|
-
for (var s, c =
|
|
5030
|
+
for (var s, c = cn(e.specifiers); !(s = c()).done;) {
|
|
5031
5031
|
var l = s.value;
|
|
5032
5032
|
this.checkUnreserved(l.local), this.checkLocalExport(l.local), l.local.type === "Literal" && this.raise(l.local.start, "A string literal cannot be used as an exported binding without `from`.");
|
|
5033
5033
|
}
|
|
@@ -5089,9 +5089,9 @@ function Dn(e) {
|
|
|
5089
5089
|
this.next(), e.prototype.parseVar.call(this, t, !1, n, r || i), this.semicolon();
|
|
5090
5090
|
var a = this.finishNode(t, "VariableDeclaration");
|
|
5091
5091
|
if (!i) return a;
|
|
5092
|
-
for (var o, s =
|
|
5092
|
+
for (var o, s = cn(a.declarations); !(o = s()).done;) {
|
|
5093
5093
|
var c = o.value, l = c.init;
|
|
5094
|
-
l && (n !== "const" || c.id.typeAnnotation ? this.raise(l.start, U.InitializerNotAllowedInAmbientContext) : l.type !== "StringLiteral" && l.type !== "BooleanLiteral" && l.type !== "NumericLiteral" && l.type !== "BigIntLiteral" && (l.type !== "TemplateLiteral" || l.expressions.length > 0) && !
|
|
5094
|
+
l && (n !== "const" || c.id.typeAnnotation ? this.raise(l.start, U.InitializerNotAllowedInAmbientContext) : l.type !== "StringLiteral" && l.type !== "BooleanLiteral" && l.type !== "NumericLiteral" && l.type !== "BigIntLiteral" && (l.type !== "TemplateLiteral" || l.expressions.length > 0) && !Tn(l) && this.raise(l.start, U.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
|
|
5095
5095
|
}
|
|
5096
5096
|
return a;
|
|
5097
5097
|
}, w.parseStatement = function(t, n, r) {
|
|
@@ -5170,7 +5170,7 @@ function Dn(e) {
|
|
|
5170
5170
|
var s = e.declare, c = e.kind;
|
|
5171
5171
|
!(s !== void 0 && s) || c !== "get" && c !== "set" || this.raise(e.start, U.DeclareAccessor({ kind: c })), o && (e.typeParameters = o);
|
|
5172
5172
|
var l = e.key;
|
|
5173
|
-
e.kind === "constructor" ? (t && this.raise(l.start, "Constructor can't be a generator"), n && this.raise(l.start, "Constructor can't be an async method")) : e.static &&
|
|
5173
|
+
e.kind === "constructor" ? (t && this.raise(l.start, "Constructor can't be a generator"), n && this.raise(l.start, "Constructor can't be an async method")) : e.static && hn(e, "prototype") && this.raise(l.start, "Classes may not have a static property named prototype");
|
|
5174
5174
|
var u = e.value = this.parseMethod(t, n, r, !0, e);
|
|
5175
5175
|
return e.kind === "get" && u.params.length !== 0 && this.raiseRecoverable(u.start, "getter should have no params"), e.kind === "set" && u.params.length !== 1 && this.raiseRecoverable(u.start, "setter should have exactly one param"), e.kind === "set" && u.params[0].type === "RestElement" && this.raiseRecoverable(u.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
|
|
5176
5176
|
}, w.isClassMethod = function() {
|
|
@@ -5205,7 +5205,7 @@ function Dn(e) {
|
|
|
5205
5205
|
(n.eatContextual("get") || n.eatContextual("set")) && (n.isClassElementNameStart() ? u = p : s = p);
|
|
5206
5206
|
}
|
|
5207
5207
|
if (s ? (a.computed = !1, a.key = n.startNodeAt(n.lastTokStart, n.lastTokStartLoc), a.key.name = s, n.finishNode(a.key, "Identifier")) : n.parseClassElementName(a), n.parsePostMemberNameModifiers(a), n.isClassMethod() || i < 13 || n.type === o.parenL || u !== "method" || c || l) {
|
|
5208
|
-
var m = !a.static &&
|
|
5208
|
+
var m = !a.static && hn(a, "constructor"), h = m && t;
|
|
5209
5209
|
m && u !== "method" && n.raise(a.key.start, "Constructor can't have get/set modifier"), a.kind = m ? "constructor" : u, n.parseClassMethod(a, c, l, h);
|
|
5210
5210
|
} else n.parseClassField(a);
|
|
5211
5211
|
return a;
|
|
@@ -5227,7 +5227,7 @@ function Dn(e) {
|
|
|
5227
5227
|
}, w.parseArrowExpression = function(e, t, n, r) {
|
|
5228
5228
|
this.match(o.colon) && (e.returnType = this.tsParseTypeAnnotation());
|
|
5229
5229
|
var i = this.yieldPos, a = this.awaitPos, s = this.awaitIdentPos;
|
|
5230
|
-
this.enterScope(16 |
|
|
5230
|
+
this.enterScope(16 | wn(n, !1)), this.initFunction(e);
|
|
5231
5231
|
var c = this.maybeInArrowParameters;
|
|
5232
5232
|
return this.options.ecmaVersion >= 8 && (e.async = !!n), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.maybeInArrowParameters = !0, e.params = this.toAssignableList(t, !0), this.maybeInArrowParameters = !1, this.parseFunctionBody(e, !0, !1, r), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = s, this.maybeInArrowParameters = c, this.finishNode(e, "ArrowFunctionExpression");
|
|
5233
5233
|
}, w.parseMaybeAssignOrigin = function(e, t, n) {
|
|
@@ -5236,7 +5236,7 @@ function Dn(e) {
|
|
|
5236
5236
|
this.exprAllowed = !1;
|
|
5237
5237
|
}
|
|
5238
5238
|
var r = !1, i = -1, a = -1, s = -1;
|
|
5239
|
-
t ? (i = t.parenthesizedAssign, a = t.trailingComma, s = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new
|
|
5239
|
+
t ? (i = t.parenthesizedAssign, a = t.trailingComma, s = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new pn(), r = !0);
|
|
5240
5240
|
var c = this.start, l = this.startLoc;
|
|
5241
5241
|
(this.type === o.parenL || v(this.type)) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
5242
5242
|
var u = this.parseMaybeConditional(e, t);
|
|
@@ -5263,7 +5263,7 @@ function Dn(e) {
|
|
|
5263
5263
|
return (a.type !== "ArrowFunctionExpression" || (i = a.extra) != null && i.parenthesized) && r(), f?.params.length !== 0 && p.resetStartLocationFromNode(a, f), a.typeParameters = f, a;
|
|
5264
5264
|
}, l);
|
|
5265
5265
|
if (!g.error && !g.aborted) return f && this.reportReservedArrowTypeParam(f), g.node;
|
|
5266
|
-
if (!u && (
|
|
5266
|
+
if (!u && (xn(!0), !(d = this.tryParse(function() {
|
|
5267
5267
|
return p.parseMaybeAssignOrigin(e, t, n);
|
|
5268
5268
|
}, l)).error)) return d.node;
|
|
5269
5269
|
if ((a = u) != null && a.node) return this.setLookaheadState(u.failState), u.node;
|
|
@@ -5328,7 +5328,7 @@ function Dn(e) {
|
|
|
5328
5328
|
default: return !1;
|
|
5329
5329
|
}
|
|
5330
5330
|
}, w.toAssignable = function(t, n, r) {
|
|
5331
|
-
switch (n === void 0 && (n = !1), r === void 0 && (r = new
|
|
5331
|
+
switch (n === void 0 && (n = !1), r === void 0 && (r = new pn()), t.type) {
|
|
5332
5332
|
case "ParenthesizedExpression": return this.toAssignableParenthesizedExpression(t, n, r);
|
|
5333
5333
|
case "TSAsExpression":
|
|
5334
5334
|
case "TSSatisfiesExpression":
|
|
@@ -5385,7 +5385,7 @@ function Dn(e) {
|
|
|
5385
5385
|
if (this.options.ecmaVersion >= 6) {
|
|
5386
5386
|
var s = this.maybeInArrowParameters;
|
|
5387
5387
|
this.maybeInArrowParameters = !0, this.next();
|
|
5388
|
-
var c, l = this.start, u = this.startLoc, d = [], f = !0, p = !1, m = new
|
|
5388
|
+
var c, l = this.start, u = this.startLoc, d = [], f = !0, p = !1, m = new pn(), h = this.yieldPos, g = this.awaitPos;
|
|
5389
5389
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== o.parenR;) {
|
|
5390
5390
|
if (f ? f = !1 : this.expect(o.comma), a && this.afterTrailingComma(o.parenR, !0)) {
|
|
5391
5391
|
p = !0;
|
|
@@ -5454,7 +5454,7 @@ function Dn(e) {
|
|
|
5454
5454
|
return u.typeParameters = a, u;
|
|
5455
5455
|
}
|
|
5456
5456
|
if (!r && c.eat(o.parenL)) {
|
|
5457
|
-
var p = new
|
|
5457
|
+
var p = new pn(), m = c.startNodeAt(t, n);
|
|
5458
5458
|
return m.callee = e, m.arguments = c.parseExprList(o.parenR, c.options.ecmaVersion >= 8, !1, p), c.tsCheckForInvalidTypeCasts(m.arguments), m.typeParameters = a, l && (m.optional = d), c.checkExpressionErrors(p, !0), e = c.finishNode(m, "CallExpression");
|
|
5459
5459
|
}
|
|
5460
5460
|
var h = c.type;
|
|
@@ -5474,7 +5474,7 @@ function Dn(e) {
|
|
|
5474
5474
|
} else if (!r && this.eat(o.parenL)) {
|
|
5475
5475
|
var te = this.maybeInArrowParameters;
|
|
5476
5476
|
this.maybeInArrowParameters = !0;
|
|
5477
|
-
var v = new
|
|
5477
|
+
var v = new pn(), y = this.yieldPos, b = this.awaitPos, x = this.awaitIdentPos;
|
|
5478
5478
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
5479
5479
|
var S = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1, v);
|
|
5480
5480
|
if (i && !h && this.shouldParseAsyncArrow()) this.checkPatternErrors(v, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = y, this.awaitPos = b, this.awaitIdentPos = x, e = this.parseSubscriptAsyncArrow(t, n, S, s);
|
|
@@ -5520,7 +5520,7 @@ function Dn(e) {
|
|
|
5520
5520
|
for (this.expect(o.braceL); this.type !== o.braceR;) if (this.match(m.at)) c.push(this.parseDecorator());
|
|
5521
5521
|
else {
|
|
5522
5522
|
var l = this.parseClassElement(e.superClass !== null);
|
|
5523
|
-
c.length && (l.decorators = c, this.resetStartLocationFromNode(l, c[0]), c = []), l && (a.body.push(l), l.type === "MethodDefinition" && l.kind === "constructor" && l.value.type === "FunctionExpression" ? (s && this.raiseRecoverable(l.start, "Duplicate constructor in the same class"), s = !0, l.decorators && l.decorators.length > 0 && this.raise(l.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : l.key && l.key.type === "PrivateIdentifier" &&
|
|
5523
|
+
c.length && (l.decorators = c, this.resetStartLocationFromNode(l, c[0]), c = []), l && (a.body.push(l), l.type === "MethodDefinition" && l.kind === "constructor" && l.value.type === "FunctionExpression" ? (s && this.raiseRecoverable(l.start, "Duplicate constructor in the same class"), s = !0, l.decorators && l.decorators.length > 0 && this.raise(l.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : l.key && l.key.type === "PrivateIdentifier" && mn(i, l) && this.raiseRecoverable(l.key.start, "Identifier '#" + l.key.name + "' has already been declared"));
|
|
5524
5524
|
}
|
|
5525
5525
|
return this.strict = r, this.next(), c.length && this.raise(this.start, "Decorators must be attached to a class element."), e.body = this.finishNode(a, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
|
|
5526
5526
|
} finally {
|
|
@@ -5531,7 +5531,7 @@ function Dn(e) {
|
|
|
5531
5531
|
return e && (t.typeParameters = e), t;
|
|
5532
5532
|
}, w.parseMethod = function(e, t, n, r, i) {
|
|
5533
5533
|
var a = this.startNode(), s = this.yieldPos, c = this.awaitPos, l = this.awaitIdentPos;
|
|
5534
|
-
if (this.initFunction(a), this.options.ecmaVersion >= 6 && (a.generator = e), this.options.ecmaVersion >= 8 && (a.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 |
|
|
5534
|
+
if (this.initFunction(a), this.options.ecmaVersion >= 6 && (a.generator = e), this.options.ecmaVersion >= 8 && (a.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | wn(t, a.generator) | (n ? 128 : 0)), this.expect(o.parenL), a.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(a, !1, !0, !1, { isClassMethod: r }), this.yieldPos = s, this.awaitPos = c, this.awaitIdentPos = l, i && i.abstract && a.body) {
|
|
5535
5535
|
var u = i.key;
|
|
5536
5536
|
this.raise(i.start, U.AbstractMethodHasImplementation({ methodName: u.type !== "Identifier" || i.computed ? "[" + this.input.slice(u.start, u.end) + "]" : u.name }));
|
|
5537
5537
|
}
|
|
@@ -5597,11 +5597,11 @@ function Dn(e) {
|
|
|
5597
5597
|
for (r.attributes = []; this.type !== o.slash && this.type !== m.jsxTagEnd;) r.attributes.push(this.jsx_parseAttribute());
|
|
5598
5598
|
return r.selfClosing = this.eat(o.slash), this.expect(m.jsxTagEnd), this.finishNode(r, i ? "JSXOpeningElement" : "JSXOpeningFragment");
|
|
5599
5599
|
}, w.enterScope = function(t) {
|
|
5600
|
-
t ===
|
|
5600
|
+
t === dn && this.importsStack.push([]), e.prototype.enterScope.call(this, t);
|
|
5601
5601
|
var n = e.prototype.currentScope.call(this);
|
|
5602
5602
|
n.types = [], n.enums = [], n.constEnums = [], n.classes = [], n.exportOnlyBindings = [];
|
|
5603
5603
|
}, w.exitScope = function() {
|
|
5604
|
-
e.prototype.currentScope.call(this).flags ===
|
|
5604
|
+
e.prototype.currentScope.call(this).flags === dn && this.importsStack.pop(), e.prototype.exitScope.call(this);
|
|
5605
5605
|
}, w.hasImport = function(e, t) {
|
|
5606
5606
|
var n = this.importsStack.length;
|
|
5607
5607
|
if (this.importsStack[n - 1].indexOf(e) > -1) return !0;
|
|
@@ -5629,7 +5629,7 @@ function Dn(e) {
|
|
|
5629
5629
|
}
|
|
5630
5630
|
e.prototype.checkLocalExport.call(this, t);
|
|
5631
5631
|
}
|
|
5632
|
-
},
|
|
5632
|
+
}, l = t, C = [{
|
|
5633
5633
|
key: "acornTypeScript",
|
|
5634
5634
|
get: function() {
|
|
5635
5635
|
return i;
|
|
@@ -5639,13 +5639,13 @@ function Dn(e) {
|
|
|
5639
5639
|
get: function() {
|
|
5640
5640
|
return i;
|
|
5641
5641
|
}
|
|
5642
|
-
}]) &&
|
|
5642
|
+
}]) && nn(l.prototype, S), C && nn(l, C), Object.defineProperty(l, "prototype", { writable: !1 }), t;
|
|
5643
5643
|
}(t);
|
|
5644
5644
|
};
|
|
5645
5645
|
}
|
|
5646
5646
|
//#endregion
|
|
5647
5647
|
//#region src/utilities/index.ts
|
|
5648
|
-
var
|
|
5648
|
+
var kn = [
|
|
5649
5649
|
{
|
|
5650
5650
|
idPrefix: "dpuse-app",
|
|
5651
5651
|
typeId: "app",
|
|
@@ -5718,8 +5718,8 @@ var On = [
|
|
|
5718
5718
|
publishedTo: "npm",
|
|
5719
5719
|
uploadGroupName: "tools"
|
|
5720
5720
|
}
|
|
5721
|
-
],
|
|
5722
|
-
async function
|
|
5721
|
+
], An = r(i);
|
|
5722
|
+
async function jn(e, r) {
|
|
5723
5723
|
e !== void 0 && q(`${e} - clear(${r})`);
|
|
5724
5724
|
let i;
|
|
5725
5725
|
try {
|
|
@@ -5740,15 +5740,15 @@ async function An(e, r) {
|
|
|
5740
5740
|
}
|
|
5741
5741
|
}));
|
|
5742
5742
|
}
|
|
5743
|
-
async function
|
|
5743
|
+
async function Mn(e, n) {
|
|
5744
5744
|
return t.readdir(e, n);
|
|
5745
5745
|
}
|
|
5746
|
-
async function
|
|
5746
|
+
async function Nn(e, n, r = [], i) {
|
|
5747
5747
|
e !== void 0 && q(`${e} - exec(${n} ${r.join(" ")})`);
|
|
5748
|
-
let { stdout: a, stderr: o } = await
|
|
5748
|
+
let { stdout: a, stderr: o } = await An(n, r);
|
|
5749
5749
|
i === void 0 ? a.trim() && console.log(a.trim()) : await t.writeFile(i, a.trim(), "utf8"), o.trim() && console.error(o.trim());
|
|
5750
5750
|
}
|
|
5751
|
-
async function
|
|
5751
|
+
async function Pn(e, t, n = [], r = !1, i = !1) {
|
|
5752
5752
|
return q(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
|
|
5753
5753
|
a(t, n, {
|
|
5754
5754
|
shell: i,
|
|
@@ -5758,7 +5758,7 @@ async function Nn(e, t, n = [], r = !1, i = !1) {
|
|
|
5758
5758
|
});
|
|
5759
5759
|
});
|
|
5760
5760
|
}
|
|
5761
|
-
async function
|
|
5761
|
+
async function Fn(e, n, r = [], i, o = !1) {
|
|
5762
5762
|
return q(`${e} - spawn(${n} ${r.join(" ")}) > ${i}`), new Promise((e, s) => {
|
|
5763
5763
|
let c = a(n, r, {
|
|
5764
5764
|
shell: !1,
|
|
@@ -5784,20 +5784,20 @@ async function Pn(e, n, r = [], i, o = !1) {
|
|
|
5784
5784
|
async function W(e) {
|
|
5785
5785
|
return JSON.parse(await t.readFile(e, "utf8"));
|
|
5786
5786
|
}
|
|
5787
|
-
async function
|
|
5787
|
+
async function In(e) {
|
|
5788
5788
|
return await t.readFile(e, "utf8");
|
|
5789
5789
|
}
|
|
5790
|
-
async function
|
|
5790
|
+
async function Ln(e) {
|
|
5791
5791
|
try {
|
|
5792
5792
|
await t.unlink(e);
|
|
5793
5793
|
} catch (e) {
|
|
5794
5794
|
if (e.code !== "ENOENT") throw e;
|
|
5795
5795
|
}
|
|
5796
5796
|
}
|
|
5797
|
-
async function
|
|
5797
|
+
async function Rn(e, n) {
|
|
5798
5798
|
await t.writeFile(e, JSON.stringify(n, void 0, 4), "utf8");
|
|
5799
5799
|
}
|
|
5800
|
-
async function
|
|
5800
|
+
async function zn(e, n) {
|
|
5801
5801
|
await t.writeFile(e, n, "utf8");
|
|
5802
5802
|
}
|
|
5803
5803
|
function G(e) {
|
|
@@ -5810,21 +5810,21 @@ function K(e) {
|
|
|
5810
5810
|
function q(e) {
|
|
5811
5811
|
console.info(`\n${e}\n`);
|
|
5812
5812
|
}
|
|
5813
|
-
function
|
|
5814
|
-
let t =
|
|
5813
|
+
function Bn(e) {
|
|
5814
|
+
let t = kn.find((t) => e.startsWith(t.idPrefix));
|
|
5815
5815
|
if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
|
|
5816
5816
|
return t;
|
|
5817
5817
|
}
|
|
5818
|
-
async function
|
|
5818
|
+
async function Vn(e) {
|
|
5819
5819
|
return await t.stat(e);
|
|
5820
5820
|
}
|
|
5821
|
-
function
|
|
5822
|
-
let t = k.extend(
|
|
5821
|
+
function Hn(e) {
|
|
5822
|
+
let t = k.extend(On()).parse(e, {
|
|
5823
5823
|
ecmaVersion: "latest",
|
|
5824
5824
|
sourceType: "module",
|
|
5825
5825
|
locations: !0
|
|
5826
5826
|
}), n = [];
|
|
5827
|
-
return
|
|
5827
|
+
return Un(t, (e) => {
|
|
5828
5828
|
if (e.type !== "MethodDefinition") return;
|
|
5829
5829
|
let t = e, r = t.key;
|
|
5830
5830
|
if (r.type !== "Identifier") return;
|
|
@@ -5832,7 +5832,7 @@ function Vn(e) {
|
|
|
5832
5832
|
i && i !== "constructor" && t.accessibility !== "private" && n.push(i);
|
|
5833
5833
|
}), n;
|
|
5834
5834
|
}
|
|
5835
|
-
function
|
|
5835
|
+
function Un(e, t) {
|
|
5836
5836
|
t(e);
|
|
5837
5837
|
for (let [n, r] of Object.entries(e)) {
|
|
5838
5838
|
if ([
|
|
@@ -5845,40 +5845,40 @@ function Hn(e, t) {
|
|
|
5845
5845
|
let e = r;
|
|
5846
5846
|
if (Array.isArray(e)) for (let n of e) {
|
|
5847
5847
|
let e = n;
|
|
5848
|
-
e && typeof e.type == "string" &&
|
|
5848
|
+
e && typeof e.type == "string" && Un(e, t);
|
|
5849
5849
|
}
|
|
5850
|
-
else e && typeof e == "object" && typeof e.type == "string" &&
|
|
5850
|
+
else e && typeof e == "object" && typeof e.type == "string" && Un(e, t);
|
|
5851
5851
|
}
|
|
5852
5852
|
}
|
|
5853
|
-
function
|
|
5853
|
+
function Wn(e, t, n, r) {
|
|
5854
5854
|
let i = e.indexOf(n), a = e.indexOf(r);
|
|
5855
5855
|
if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
|
|
5856
5856
|
return `${e.slice(0, Math.max(0, i + n.length))}\n${t}\n${e.slice(Math.max(0, a))}`;
|
|
5857
5857
|
}
|
|
5858
5858
|
//#endregion
|
|
5859
5859
|
//#region src/actions/auditDependencies.ts
|
|
5860
|
-
async function
|
|
5860
|
+
async function Gn() {
|
|
5861
5861
|
try {
|
|
5862
|
-
G("Audit Dependencies"), await
|
|
5862
|
+
G("Audit Dependencies"), await Pn("1️⃣ Check using 'npm audit'", "npm", ["audit"]), K("Dependencies audited.");
|
|
5863
5863
|
} catch (e) {
|
|
5864
5864
|
console.error("❌ Error auditing dependencies.", e), process.exit(1);
|
|
5865
5865
|
}
|
|
5866
5866
|
}
|
|
5867
5867
|
//#endregion
|
|
5868
5868
|
//#region src/actions/checkConfigFiles.ts
|
|
5869
|
-
async function
|
|
5869
|
+
async function Kn() {
|
|
5870
5870
|
try {
|
|
5871
5871
|
G("Check configuration files.");
|
|
5872
|
-
let e =
|
|
5873
|
-
await
|
|
5872
|
+
let e = Bn((await W("config.json")).id), t = n.dirname(o(import.meta.url));
|
|
5873
|
+
await qn(t, "../", ".editorconfig"), await qn(t, "../", ".gitattributes"), await qn(t, "../", e.publishedTo === "npm" ? ".gitignore_published" : ".gitignore_unpublished"), await qn(t, "../", ".markdownlint.json"), await qn(t, "../", "LICENSE"), K("Configuration files checked..");
|
|
5874
5874
|
} catch (e) {
|
|
5875
5875
|
console.error("❌ Error checking configuration files.", e), process.exit(1);
|
|
5876
5876
|
}
|
|
5877
5877
|
}
|
|
5878
|
-
async function
|
|
5879
|
-
let i = await
|
|
5878
|
+
async function qn(e, t, r) {
|
|
5879
|
+
let i = await In(n.resolve(e, `${t}${r}`)), a = n.resolve(process.cwd(), r.split("_", 1)[0] ?? r), o;
|
|
5880
5880
|
try {
|
|
5881
|
-
o = await
|
|
5881
|
+
o = await In(a);
|
|
5882
5882
|
} catch (e) {
|
|
5883
5883
|
if (e.code !== "ENOENT") throw e;
|
|
5884
5884
|
}
|
|
@@ -5890,9 +5890,9 @@ async function Kn(e, t, r) {
|
|
|
5890
5890
|
}
|
|
5891
5891
|
//#endregion
|
|
5892
5892
|
//#region src/actions/checkDependencies.ts
|
|
5893
|
-
async function
|
|
5893
|
+
async function Jn() {
|
|
5894
5894
|
try {
|
|
5895
|
-
G("Check Dependencies"), await
|
|
5895
|
+
G("Check Dependencies"), await Pn("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), await Pn("2️⃣ Check using 'npm-check-updates'", "npm-check-updates", [
|
|
5896
5896
|
"-i",
|
|
5897
5897
|
"--dep",
|
|
5898
5898
|
"dev,prod,peer,optional"
|
|
@@ -5903,55 +5903,93 @@ async function qn() {
|
|
|
5903
5903
|
}
|
|
5904
5904
|
//#endregion
|
|
5905
5905
|
//#region src/actions/documentBundleSizes.ts
|
|
5906
|
-
var
|
|
5907
|
-
|
|
5906
|
+
var Yn = (/* @__PURE__ */ c(((e, t) => {
|
|
5907
|
+
t.exports = {};
|
|
5908
|
+
})))(), Xn = r(Yn.gzip), Zn = r(Yn.brotliCompress), Qn = "<!-- BUNDLE_ACTUAL_START -->", $n = "<!-- BUNDLE_ACTUAL_END -->", er = "<!-- BUNDLE_CHUNKS_START -->", tr = "<!-- BUNDLE_CHUNKS_END -->", nr = "<!-- BUNDLE_SIZES_START -->", rr = "<!-- BUNDLE_SIZES_END -->", ir = " ";
|
|
5909
|
+
async function ar() {
|
|
5908
5910
|
try {
|
|
5909
5911
|
G("Document Bundle Sizes"), q("1️⃣ Read bundle analysis report");
|
|
5910
5912
|
let e = await W("./bundle-analysis-reports/rollup-visualiser/index.json");
|
|
5911
5913
|
q("2️⃣ Insert tables into 'README.md'");
|
|
5912
|
-
let t
|
|
5913
|
-
|
|
5914
|
+
let [t, n, r] = await Promise.all([
|
|
5915
|
+
Promise.resolve(sr(e)),
|
|
5916
|
+
Promise.resolve(cr(e)),
|
|
5917
|
+
or()
|
|
5918
|
+
]);
|
|
5919
|
+
await zn("README.md", Wn(Wn(Wn(await In("./README.md"), `\n${r}\n`, Qn, $n), `\n${t}\n`, er, tr), `\n${n}\n`, nr, rr)), K("Bundle sizes documented.");
|
|
5914
5920
|
} catch (e) {
|
|
5915
5921
|
console.error("❌ Error documenting bundle sizes.", e), process.exit(1);
|
|
5916
5922
|
}
|
|
5917
5923
|
}
|
|
5918
|
-
function
|
|
5924
|
+
async function or() {
|
|
5925
|
+
let e = (await t.readdir("./dist")).filter((e) => e.endsWith(".js") && !e.endsWith(".map")), n = await Promise.all(e.map(async (e) => {
|
|
5926
|
+
let n = await t.readFile(`./dist/${e}`), [r, i] = await Promise.all([Xn(n), Zn(n)]);
|
|
5927
|
+
return [e, {
|
|
5928
|
+
rendered: n.length,
|
|
5929
|
+
gzip: r.length,
|
|
5930
|
+
brotli: i.length
|
|
5931
|
+
}];
|
|
5932
|
+
}));
|
|
5933
|
+
n.sort((e, t) => t[1].rendered - e[1].rendered);
|
|
5934
|
+
let r = n.reduce((e, [, t]) => (pr(e, t), e), fr());
|
|
5935
|
+
return [
|
|
5936
|
+
"| File | Size | Gzip | Brotli |",
|
|
5937
|
+
"| ---- | ---: | ---: | -----: |",
|
|
5938
|
+
...n.map(([e, t]) => `| \`${e}\` | ${hr(t.rendered)} | ${hr(t.gzip)} | ${hr(t.brotli)} |`),
|
|
5939
|
+
`| **Total** | **${hr(r.rendered)}** | **${hr(r.gzip)}** | **${hr(r.brotli)}** |`
|
|
5940
|
+
].join("\n");
|
|
5941
|
+
}
|
|
5942
|
+
function sr(e) {
|
|
5919
5943
|
let t = /* @__PURE__ */ new Map();
|
|
5920
|
-
for (let n of Object.values(e.nodeMetas))
|
|
5921
|
-
let
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5944
|
+
for (let n of Object.values(e.nodeMetas)) {
|
|
5945
|
+
let r = lr(n.id);
|
|
5946
|
+
for (let [i, a] of Object.entries(n.moduleParts)) {
|
|
5947
|
+
let n = e.nodeParts[a];
|
|
5948
|
+
if (!n) continue;
|
|
5949
|
+
let o = dr(n), s = t.get(i) ?? {
|
|
5950
|
+
sizes: fr(),
|
|
5951
|
+
groups: /* @__PURE__ */ new Map()
|
|
5952
|
+
};
|
|
5953
|
+
pr(s.sizes, o), pr(s.groups.get(r) ?? (() => {
|
|
5954
|
+
let e = fr();
|
|
5955
|
+
return s.groups.set(r, e), e;
|
|
5956
|
+
})(), o), t.set(i, s);
|
|
5957
|
+
}
|
|
5958
|
+
}
|
|
5959
|
+
let n = [...t.entries()].sort((e, t) => t[1].sizes.rendered - e[1].sizes.rendered), r = n.reduce((e, [, t]) => (pr(e, t.sizes), e), fr()), i = ["| Module | Rendered | Gzip | Brotli |", "| ------ | -------: | ---: | -----: |"];
|
|
5960
|
+
for (let [e, { sizes: t, groups: r }] of n) {
|
|
5961
|
+
i.push(mr(`\`${e}\``, t));
|
|
5962
|
+
let n = [...r.entries()].sort((e, t) => t[1].rendered - e[1].rendered);
|
|
5963
|
+
for (let [e, t] of n) i.push(mr(`${ir}\`${e}\``, t));
|
|
5933
5964
|
}
|
|
5934
|
-
return
|
|
5965
|
+
return i.push(mr("Total", r, !0)), i.join("\n");
|
|
5935
5966
|
}
|
|
5936
|
-
function
|
|
5967
|
+
function cr(e) {
|
|
5937
5968
|
let t = /* @__PURE__ */ new Map();
|
|
5938
|
-
for (let n of Object.values(e.nodeMetas))
|
|
5939
|
-
let i =
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5969
|
+
for (let n of Object.values(e.nodeMetas)) {
|
|
5970
|
+
let r = lr(n.id), i = ur(n.id);
|
|
5971
|
+
for (let a of Object.values(n.moduleParts)) {
|
|
5972
|
+
let n = e.nodeParts[a];
|
|
5973
|
+
if (!n) continue;
|
|
5974
|
+
let o = dr(n), s = t.get(r) ?? {
|
|
5975
|
+
sizes: fr(),
|
|
5976
|
+
files: /* @__PURE__ */ new Map()
|
|
5977
|
+
};
|
|
5978
|
+
pr(s.sizes, o), pr(s.files.get(i) ?? (() => {
|
|
5979
|
+
let e = fr();
|
|
5980
|
+
return s.files.set(i, e), e;
|
|
5981
|
+
})(), o), t.set(r, s);
|
|
5982
|
+
}
|
|
5983
|
+
}
|
|
5984
|
+
let n = [...t.entries()].sort((e, t) => t[1].sizes.rendered - e[1].sizes.rendered), r = n.reduce((e, [, t]) => (pr(e, t.sizes), e), fr()), i = ["| Module | Rendered | Gzip | Brotli |", "| ------ | -------: | ---: | -----: |"];
|
|
5985
|
+
for (let [e, { sizes: t, files: r }] of n) {
|
|
5986
|
+
i.push(mr(`\`${e}\``, t));
|
|
5987
|
+
let n = [...r.entries()].sort((e, t) => t[1].rendered - e[1].rendered);
|
|
5988
|
+
for (let [e, t] of n) i.push(mr(`${ir}\`${e}\``, t));
|
|
5951
5989
|
}
|
|
5952
|
-
return
|
|
5990
|
+
return i.push(mr("Total", r, !0)), i.join("\n");
|
|
5953
5991
|
}
|
|
5954
|
-
function
|
|
5992
|
+
function lr(e) {
|
|
5955
5993
|
let t = e.startsWith("/") ? e.slice(1) : e;
|
|
5956
5994
|
if (t.startsWith("\0")) return "(runtime)";
|
|
5957
5995
|
if (t.startsWith("node_modules/")) {
|
|
@@ -5964,32 +6002,45 @@ function tr(e) {
|
|
|
5964
6002
|
}
|
|
5965
6003
|
return t.startsWith("rust/") || t.startsWith("__vite-plugin-wasm") ? "wasm" : "src";
|
|
5966
6004
|
}
|
|
5967
|
-
function
|
|
5968
|
-
let t = e.
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
6005
|
+
function ur(e) {
|
|
6006
|
+
let t = e.startsWith("/") ? e.slice(1) : e;
|
|
6007
|
+
if (t.startsWith("\0")) return t.slice(1);
|
|
6008
|
+
if (t.startsWith("node_modules/")) {
|
|
6009
|
+
let e = t.slice(13);
|
|
6010
|
+
return (e.startsWith("@") ? e.split("/").slice(2) : e.split("/").slice(1)).join("/") || (e.split("/").at(-1) ?? e);
|
|
6011
|
+
}
|
|
6012
|
+
return t.split("/").at(-1) ?? t;
|
|
6013
|
+
}
|
|
6014
|
+
function dr(e) {
|
|
6015
|
+
return {
|
|
6016
|
+
rendered: e.renderedLength,
|
|
6017
|
+
gzip: e.gzipLength,
|
|
6018
|
+
brotli: e.brotliLength
|
|
6019
|
+
};
|
|
6020
|
+
}
|
|
6021
|
+
function fr() {
|
|
6022
|
+
return {
|
|
5973
6023
|
rendered: 0,
|
|
5974
6024
|
gzip: 0,
|
|
5975
6025
|
brotli: 0
|
|
5976
|
-
}
|
|
5977
|
-
return [
|
|
5978
|
-
"| Module | Rendered | Gzip | Brotli |",
|
|
5979
|
-
"| ------ | -------: | ---: | -----: |",
|
|
5980
|
-
...e.map(([e, t]) => `| \`${e}\` | ${rr(t.rendered)} | ${rr(t.gzip)} | ${rr(t.brotli)} |`),
|
|
5981
|
-
`| **Total** | **${rr(t.rendered)}** | **${rr(t.gzip)}** | **${rr(t.brotli)}** |`
|
|
5982
|
-
].join("\n");
|
|
6026
|
+
};
|
|
5983
6027
|
}
|
|
5984
|
-
function
|
|
6028
|
+
function pr(e, t) {
|
|
6029
|
+
e.rendered += t.rendered, e.gzip += t.gzip, e.brotli += t.brotli;
|
|
6030
|
+
}
|
|
6031
|
+
function mr(e, t, n = !1) {
|
|
6032
|
+
let r = (e) => n ? `**${e}**` : e;
|
|
6033
|
+
return `| ${r(e)} | ${r(hr(t.rendered))} | ${r(hr(t.gzip))} | ${r(hr(t.brotli))} |`;
|
|
6034
|
+
}
|
|
6035
|
+
function hr(e) {
|
|
5985
6036
|
return e < 1024 ? `${e} B` : `${(e / 1024).toFixed(1)} kB`;
|
|
5986
6037
|
}
|
|
5987
6038
|
//#endregion
|
|
5988
6039
|
//#region src/actions/documentDependencies.ts
|
|
5989
|
-
var
|
|
5990
|
-
async function
|
|
6040
|
+
var gr = "<!-- DEPENDENCY_LICENSES_START -->", _r = "<!-- DEPENDENCY_LICENSES_END -->", vr = "<!-- DEPENDENCY_TREE_START -->", yr = "<!-- DEPENDENCY_TREE_END -->";
|
|
6041
|
+
async function br(e = "MIT") {
|
|
5991
6042
|
try {
|
|
5992
|
-
G("Document Dependencies"), await
|
|
6043
|
+
G("Document Dependencies"), await jn("1️⃣ Clear downloaded licenses", "licenses/downloads"), await Nn("2️⃣ Identify production licenses", "license-checker-rseidelsohn", [
|
|
5993
6044
|
"--production",
|
|
5994
6045
|
"--json",
|
|
5995
6046
|
"--files",
|
|
@@ -6002,30 +6053,30 @@ async function cr(e = "MIT") {
|
|
|
6002
6053
|
(await W("package.json")).name ?? "",
|
|
6003
6054
|
"--out",
|
|
6004
6055
|
"licenses/licenses.json"
|
|
6005
|
-
]), await
|
|
6056
|
+
]), await Fn("3️⃣ Identify transitive dependencies", "npm", [
|
|
6006
6057
|
"ls",
|
|
6007
6058
|
"--all",
|
|
6008
6059
|
"--json",
|
|
6009
6060
|
"--omit=dev"
|
|
6010
|
-
], "licenses/licenseTree.json"), await
|
|
6061
|
+
], "licenses/licenseTree.json"), await xr("4️⃣ "), K("Dependencies documented.");
|
|
6011
6062
|
} catch (e) {
|
|
6012
6063
|
console.error("❌ Error documenting dependencies.", e), process.exit(1);
|
|
6013
6064
|
}
|
|
6014
6065
|
}
|
|
6015
|
-
async function
|
|
6066
|
+
async function xr(e) {
|
|
6016
6067
|
q(`${e} Insert licenses into 'README.md'`);
|
|
6017
6068
|
let [t, n] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), r = /* @__PURE__ */ new Map();
|
|
6018
|
-
for (let [e, n] of Object.entries(t)) r.set(e,
|
|
6069
|
+
for (let [e, n] of Object.entries(t)) r.set(e, Sr(e, n));
|
|
6019
6070
|
await Promise.all(r.values().map(async (e) => {
|
|
6020
|
-
let t = await
|
|
6071
|
+
let t = await Cr(e.name, e.installedVersion);
|
|
6021
6072
|
e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
|
|
6022
6073
|
}));
|
|
6023
6074
|
let i = "|Name|Version|License(s)|Document|\n|-|:-:|-|-|\n";
|
|
6024
|
-
for (let e of r.values()) i +=
|
|
6075
|
+
for (let e of r.values()) i += wr(e);
|
|
6025
6076
|
let a = [];
|
|
6026
|
-
n.dependencies != null &&
|
|
6077
|
+
n.dependencies != null && Tr(n.dependencies, r, a, 0), await zn("README.md", Wn(Wn(await In("./README.md"), i, gr, _r), a.join("\n"), vr, yr));
|
|
6027
6078
|
}
|
|
6028
|
-
function
|
|
6079
|
+
function Sr(e, t) {
|
|
6029
6080
|
let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
|
|
6030
6081
|
return {
|
|
6031
6082
|
name: r,
|
|
@@ -6039,7 +6090,7 @@ function ur(e, t) {
|
|
|
6039
6090
|
...t.licenseFile != null && { licenseFileLink: t.licenseFile }
|
|
6040
6091
|
};
|
|
6041
6092
|
}
|
|
6042
|
-
async function
|
|
6093
|
+
async function Cr(e, t) {
|
|
6043
6094
|
try {
|
|
6044
6095
|
let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
|
|
6045
6096
|
if (n.ok) {
|
|
@@ -6057,25 +6108,25 @@ async function dr(e, t) {
|
|
|
6057
6108
|
publishedDate: ""
|
|
6058
6109
|
};
|
|
6059
6110
|
}
|
|
6060
|
-
function
|
|
6111
|
+
function wr(e) {
|
|
6061
6112
|
let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
|
|
6062
6113
|
return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
|
|
6063
6114
|
}
|
|
6064
|
-
function
|
|
6115
|
+
function Tr(e, t, n, r) {
|
|
6065
6116
|
let i = " ".repeat(r);
|
|
6066
6117
|
for (let [a, o] of Object.entries(e)) {
|
|
6067
|
-
let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l =
|
|
6068
|
-
n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null &&
|
|
6118
|
+
let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Er(s);
|
|
6119
|
+
n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Tr(o.dependencies, t, n, r + 1);
|
|
6069
6120
|
}
|
|
6070
6121
|
}
|
|
6071
|
-
function
|
|
6122
|
+
function Er(e) {
|
|
6072
6123
|
if (e == null) return "";
|
|
6073
|
-
let t = e.publishedDate ?
|
|
6124
|
+
let t = e.publishedDate ? Dr(e.publishedDate.split("T", 1)[0]) : "";
|
|
6074
6125
|
if (!(e.latestVersion !== "" && e.latestVersion !== e.installedVersion)) return t === "" ? "" : ` — ${t}`;
|
|
6075
|
-
let n = e.latestPublishedDate ?
|
|
6126
|
+
let n = e.latestPublishedDate ? Dr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
|
|
6076
6127
|
return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
|
|
6077
6128
|
}
|
|
6078
|
-
function
|
|
6129
|
+
function Dr(e) {
|
|
6079
6130
|
if (e == null || e === "") return "n/a";
|
|
6080
6131
|
let t = e.split("T", 1)[0];
|
|
6081
6132
|
if (t == null || t === "") return "n/a";
|
|
@@ -6084,43 +6135,43 @@ function hr(e) {
|
|
|
6084
6135
|
}
|
|
6085
6136
|
//#endregion
|
|
6086
6137
|
//#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-B7kVKqVP.js
|
|
6087
|
-
var
|
|
6138
|
+
var Or, kr = {
|
|
6088
6139
|
lang: void 0,
|
|
6089
6140
|
message: void 0,
|
|
6090
6141
|
abortEarly: void 0,
|
|
6091
6142
|
abortPipeEarly: void 0
|
|
6092
6143
|
};
|
|
6093
6144
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6094
|
-
function
|
|
6095
|
-
return !e && !
|
|
6096
|
-
lang: e?.lang ??
|
|
6145
|
+
function Ar(e) {
|
|
6146
|
+
return !e && !Or ? kr : {
|
|
6147
|
+
lang: e?.lang ?? Or?.lang,
|
|
6097
6148
|
message: e?.message,
|
|
6098
|
-
abortEarly: e?.abortEarly ??
|
|
6099
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
6149
|
+
abortEarly: e?.abortEarly ?? Or?.abortEarly,
|
|
6150
|
+
abortPipeEarly: e?.abortPipeEarly ?? Or?.abortPipeEarly
|
|
6100
6151
|
};
|
|
6101
6152
|
}
|
|
6102
|
-
var
|
|
6153
|
+
var jr;
|
|
6103
6154
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6104
|
-
function
|
|
6105
|
-
return
|
|
6155
|
+
function Mr(e) {
|
|
6156
|
+
return jr?.get(e);
|
|
6106
6157
|
}
|
|
6107
|
-
var
|
|
6158
|
+
var Nr;
|
|
6108
6159
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6109
|
-
function
|
|
6110
|
-
return
|
|
6160
|
+
function Pr(e) {
|
|
6161
|
+
return Nr?.get(e);
|
|
6111
6162
|
}
|
|
6112
|
-
var
|
|
6163
|
+
var Fr;
|
|
6113
6164
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6114
|
-
function
|
|
6115
|
-
return
|
|
6165
|
+
function Ir(e, t) {
|
|
6166
|
+
return Fr?.get(e)?.get(t);
|
|
6116
6167
|
}
|
|
6117
6168
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6118
|
-
function
|
|
6169
|
+
function Lr(e) {
|
|
6119
6170
|
let t = typeof e;
|
|
6120
6171
|
return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
|
|
6121
6172
|
}
|
|
6122
6173
|
function J(e, t, n, r, i) {
|
|
6123
|
-
let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */
|
|
6174
|
+
let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Lr(a), c = {
|
|
6124
6175
|
kind: e.kind,
|
|
6125
6176
|
type: e.type,
|
|
6126
6177
|
input: a,
|
|
@@ -6133,36 +6184,36 @@ function J(e, t, n, r, i) {
|
|
|
6133
6184
|
lang: r.lang,
|
|
6134
6185
|
abortEarly: r.abortEarly,
|
|
6135
6186
|
abortPipeEarly: r.abortPipeEarly
|
|
6136
|
-
}, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */
|
|
6187
|
+
}, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Ir(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Pr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Mr(c.lang);
|
|
6137
6188
|
u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
|
|
6138
6189
|
}
|
|
6139
|
-
var
|
|
6190
|
+
var Rr = /* @__PURE__ */ new WeakMap();
|
|
6140
6191
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6141
6192
|
function Y(e) {
|
|
6142
|
-
let t =
|
|
6193
|
+
let t = Rr.get(e);
|
|
6143
6194
|
return t || (t = {
|
|
6144
6195
|
version: 1,
|
|
6145
6196
|
vendor: "valibot",
|
|
6146
6197
|
validate(t) {
|
|
6147
|
-
return e["~run"]({ value: t }, /* @__PURE__ */
|
|
6198
|
+
return e["~run"]({ value: t }, /* @__PURE__ */ Ar());
|
|
6148
6199
|
}
|
|
6149
|
-
},
|
|
6200
|
+
}, Rr.set(e, t)), t;
|
|
6150
6201
|
}
|
|
6151
6202
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6152
|
-
function
|
|
6203
|
+
function zr(e, t) {
|
|
6153
6204
|
return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
6154
6205
|
}
|
|
6155
6206
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6156
|
-
function
|
|
6207
|
+
function Br(e, t) {
|
|
6157
6208
|
let n = [...new Set(e)];
|
|
6158
6209
|
return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
|
|
6159
6210
|
}
|
|
6160
6211
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6161
|
-
function
|
|
6212
|
+
function Vr(e, t, n) {
|
|
6162
6213
|
return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
|
|
6163
6214
|
}
|
|
6164
6215
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6165
|
-
function
|
|
6216
|
+
function Hr(e, t, n) {
|
|
6166
6217
|
return typeof e.default == "function" ? e.default(t, n) : e.default;
|
|
6167
6218
|
}
|
|
6168
6219
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -6206,11 +6257,11 @@ function X(e, t) {
|
|
|
6206
6257
|
};
|
|
6207
6258
|
}
|
|
6208
6259
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6209
|
-
function
|
|
6260
|
+
function Ur(e) {
|
|
6210
6261
|
return {
|
|
6211
6262
|
kind: "schema",
|
|
6212
6263
|
type: "boolean",
|
|
6213
|
-
reference:
|
|
6264
|
+
reference: Ur,
|
|
6214
6265
|
expects: "boolean",
|
|
6215
6266
|
async: !1,
|
|
6216
6267
|
message: e,
|
|
@@ -6223,12 +6274,12 @@ function jr(e) {
|
|
|
6223
6274
|
};
|
|
6224
6275
|
}
|
|
6225
6276
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6226
|
-
function
|
|
6277
|
+
function Wr(e, t) {
|
|
6227
6278
|
return {
|
|
6228
6279
|
kind: "schema",
|
|
6229
6280
|
type: "literal",
|
|
6230
|
-
reference:
|
|
6231
|
-
expects: /* @__PURE__ */
|
|
6281
|
+
reference: Wr,
|
|
6282
|
+
expects: /* @__PURE__ */ Lr(e),
|
|
6232
6283
|
async: !1,
|
|
6233
6284
|
literal: e,
|
|
6234
6285
|
message: t,
|
|
@@ -6254,16 +6305,16 @@ function Z(e, t) {
|
|
|
6254
6305
|
return /* @__PURE__ */ Y(this);
|
|
6255
6306
|
},
|
|
6256
6307
|
"~run"(e, t) {
|
|
6257
|
-
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
6308
|
+
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Hr(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
6258
6309
|
}
|
|
6259
6310
|
};
|
|
6260
6311
|
}
|
|
6261
6312
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6262
|
-
function
|
|
6313
|
+
function Gr(e) {
|
|
6263
6314
|
return {
|
|
6264
6315
|
kind: "schema",
|
|
6265
6316
|
type: "number",
|
|
6266
|
-
reference:
|
|
6317
|
+
reference: Gr,
|
|
6267
6318
|
expects: "number",
|
|
6268
6319
|
async: !1,
|
|
6269
6320
|
message: e,
|
|
@@ -6295,7 +6346,7 @@ function Q(e, t) {
|
|
|
6295
6346
|
for (let r in this.entries) {
|
|
6296
6347
|
let i = this.entries[r];
|
|
6297
6348
|
if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
6298
|
-
let a = r in n ? n[r] : /* @__PURE__ */
|
|
6349
|
+
let a = r in n ? n[r] : /* @__PURE__ */ Hr(i), o = i["~run"]({ value: a }, t);
|
|
6299
6350
|
if (o.issues) {
|
|
6300
6351
|
let i = {
|
|
6301
6352
|
type: "object",
|
|
@@ -6311,7 +6362,7 @@ function Q(e, t) {
|
|
|
6311
6362
|
}
|
|
6312
6363
|
}
|
|
6313
6364
|
o.typed || (e.typed = !1), e.value[r] = o.value;
|
|
6314
|
-
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */
|
|
6365
|
+
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ Vr(i);
|
|
6315
6366
|
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (J(this, "key", e, t, {
|
|
6316
6367
|
input: void 0,
|
|
6317
6368
|
expected: `"${r}"`,
|
|
@@ -6330,11 +6381,11 @@ function Q(e, t) {
|
|
|
6330
6381
|
};
|
|
6331
6382
|
}
|
|
6332
6383
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6333
|
-
function
|
|
6384
|
+
function Kr(e, t) {
|
|
6334
6385
|
return {
|
|
6335
6386
|
kind: "schema",
|
|
6336
6387
|
type: "optional",
|
|
6337
|
-
reference:
|
|
6388
|
+
reference: Kr,
|
|
6338
6389
|
expects: `(${e.expects} | undefined)`,
|
|
6339
6390
|
async: !1,
|
|
6340
6391
|
wrapped: e,
|
|
@@ -6343,16 +6394,16 @@ function Pr(e, t) {
|
|
|
6343
6394
|
return /* @__PURE__ */ Y(this);
|
|
6344
6395
|
},
|
|
6345
6396
|
"~run"(e, t) {
|
|
6346
|
-
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
6397
|
+
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Hr(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
6347
6398
|
}
|
|
6348
6399
|
};
|
|
6349
6400
|
}
|
|
6350
6401
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6351
|
-
function
|
|
6402
|
+
function qr(e, t, n) {
|
|
6352
6403
|
return {
|
|
6353
6404
|
kind: "schema",
|
|
6354
6405
|
type: "record",
|
|
6355
|
-
reference:
|
|
6406
|
+
reference: qr,
|
|
6356
6407
|
expects: "Object",
|
|
6357
6408
|
async: !1,
|
|
6358
6409
|
key: e,
|
|
@@ -6365,7 +6416,7 @@ function Fr(e, t, n) {
|
|
|
6365
6416
|
let n = e.value;
|
|
6366
6417
|
if (n && typeof n == "object") {
|
|
6367
6418
|
e.typed = !0, e.value = {};
|
|
6368
|
-
for (let r in n) if (/* @__PURE__ */
|
|
6419
|
+
for (let r in n) if (/* @__PURE__ */ zr(n, r)) {
|
|
6369
6420
|
let i = n[r], a = this.key["~run"]({ value: r }, t);
|
|
6370
6421
|
if (a.issues) {
|
|
6371
6422
|
let o = {
|
|
@@ -6421,19 +6472,19 @@ function $(e) {
|
|
|
6421
6472
|
};
|
|
6422
6473
|
}
|
|
6423
6474
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6424
|
-
function
|
|
6475
|
+
function Jr(e) {
|
|
6425
6476
|
let t;
|
|
6426
6477
|
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
6427
6478
|
else t = n.issues;
|
|
6428
6479
|
return t;
|
|
6429
6480
|
}
|
|
6430
6481
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6431
|
-
function
|
|
6482
|
+
function Yr(e, t) {
|
|
6432
6483
|
return {
|
|
6433
6484
|
kind: "schema",
|
|
6434
6485
|
type: "union",
|
|
6435
|
-
reference:
|
|
6436
|
-
expects: /* @__PURE__ */
|
|
6486
|
+
reference: Yr,
|
|
6487
|
+
expects: /* @__PURE__ */ Br(e.map((e) => e.expects), "|"),
|
|
6437
6488
|
async: !1,
|
|
6438
6489
|
options: e,
|
|
6439
6490
|
message: t,
|
|
@@ -6454,24 +6505,24 @@ function Lr(e, t) {
|
|
|
6454
6505
|
if (n) return n;
|
|
6455
6506
|
if (r) {
|
|
6456
6507
|
if (r.length === 1) return r[0];
|
|
6457
|
-
J(this, "type", e, t, { issues: /* @__PURE__ */
|
|
6508
|
+
J(this, "type", e, t, { issues: /* @__PURE__ */ Jr(r) }), e.typed = !0;
|
|
6458
6509
|
} else if (i?.length === 1) return i[0];
|
|
6459
|
-
else J(this, "type", e, t, { issues: /* @__PURE__ */
|
|
6510
|
+
else J(this, "type", e, t, { issues: /* @__PURE__ */ Jr(i) });
|
|
6460
6511
|
return e;
|
|
6461
6512
|
}
|
|
6462
6513
|
};
|
|
6463
6514
|
}
|
|
6464
|
-
var
|
|
6515
|
+
var Xr = (e) => /* @__PURE__ */ Yr(e.map((e) => /* @__PURE__ */ Wr(e))), Zr = /* @__PURE__ */ Q({
|
|
6465
6516
|
en: /* @__PURE__ */ $(),
|
|
6466
6517
|
es: /* @__PURE__ */ $()
|
|
6467
|
-
}),
|
|
6468
|
-
en: /* @__PURE__ */
|
|
6469
|
-
es: /* @__PURE__ */
|
|
6470
|
-
}),
|
|
6471
|
-
en: /* @__PURE__ */
|
|
6472
|
-
es: /* @__PURE__ */
|
|
6518
|
+
}), Qr = /* @__PURE__ */ Q({
|
|
6519
|
+
en: /* @__PURE__ */ Kr(/* @__PURE__ */ X(/* @__PURE__ */ $())),
|
|
6520
|
+
es: /* @__PURE__ */ Kr(/* @__PURE__ */ X(/* @__PURE__ */ $()))
|
|
6521
|
+
}), $r = /* @__PURE__ */ Q({
|
|
6522
|
+
en: /* @__PURE__ */ Kr(/* @__PURE__ */ $()),
|
|
6523
|
+
es: /* @__PURE__ */ Kr(/* @__PURE__ */ $())
|
|
6473
6524
|
});
|
|
6474
|
-
|
|
6525
|
+
Xr([
|
|
6475
6526
|
"app",
|
|
6476
6527
|
"connector",
|
|
6477
6528
|
"connectorConnection",
|
|
@@ -6496,12 +6547,12 @@ Rr([
|
|
|
6496
6547
|
"presenterPresentation",
|
|
6497
6548
|
"tool"
|
|
6498
6549
|
]);
|
|
6499
|
-
var
|
|
6550
|
+
var ei = Xr([
|
|
6500
6551
|
"amber",
|
|
6501
6552
|
"green",
|
|
6502
6553
|
"red",
|
|
6503
6554
|
"other"
|
|
6504
|
-
]),
|
|
6555
|
+
]), ti = Xr([
|
|
6505
6556
|
"alpha",
|
|
6506
6557
|
"beta",
|
|
6507
6558
|
"generalAvailability",
|
|
@@ -6511,31 +6562,31 @@ var Hr = Rr([
|
|
|
6511
6562
|
"releaseCandidate",
|
|
6512
6563
|
"unavailable",
|
|
6513
6564
|
"underReview"
|
|
6514
|
-
]),
|
|
6515
|
-
color:
|
|
6565
|
+
]), ni = /* @__PURE__ */ Q({
|
|
6566
|
+
color: ei,
|
|
6516
6567
|
label: /* @__PURE__ */ $()
|
|
6517
|
-
}),
|
|
6568
|
+
}), ri = /* @__PURE__ */ Q({
|
|
6518
6569
|
id: /* @__PURE__ */ $(),
|
|
6519
|
-
label:
|
|
6520
|
-
description:
|
|
6570
|
+
label: $r,
|
|
6571
|
+
description: Qr,
|
|
6521
6572
|
icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6522
6573
|
iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6523
6574
|
iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6524
|
-
order: /* @__PURE__ */
|
|
6575
|
+
order: /* @__PURE__ */ Gr(),
|
|
6525
6576
|
path: /* @__PURE__ */ $()
|
|
6526
|
-
}),
|
|
6577
|
+
}), ii = {
|
|
6527
6578
|
id: /* @__PURE__ */ $(),
|
|
6528
|
-
label:
|
|
6529
|
-
description:
|
|
6530
|
-
firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */
|
|
6579
|
+
label: $r,
|
|
6580
|
+
description: Qr,
|
|
6581
|
+
firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Gr()),
|
|
6531
6582
|
icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6532
6583
|
iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6533
6584
|
iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6534
|
-
lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */
|
|
6535
|
-
status: /* @__PURE__ */ Z(
|
|
6536
|
-
statusId: /* @__PURE__ */ Z(
|
|
6585
|
+
lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Gr()),
|
|
6586
|
+
status: /* @__PURE__ */ Z(ni),
|
|
6587
|
+
statusId: /* @__PURE__ */ Z(ti)
|
|
6537
6588
|
};
|
|
6538
|
-
({ ...
|
|
6589
|
+
({ ...ii }), Xr([
|
|
6539
6590
|
"app",
|
|
6540
6591
|
"engine",
|
|
6541
6592
|
"connector",
|
|
@@ -6545,32 +6596,32 @@ var Hr = Rr([
|
|
|
6545
6596
|
]);
|
|
6546
6597
|
//#endregion
|
|
6547
6598
|
//#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-Cvc9QRvr.js
|
|
6548
|
-
var
|
|
6549
|
-
...
|
|
6599
|
+
var ai = {
|
|
6600
|
+
...ii,
|
|
6550
6601
|
version: /* @__PURE__ */ $()
|
|
6551
6602
|
};
|
|
6552
|
-
({ ...
|
|
6603
|
+
({ ...ai });
|
|
6553
6604
|
//#endregion
|
|
6554
6605
|
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
|
|
6555
|
-
var
|
|
6606
|
+
var oi = Xr([
|
|
6556
6607
|
"application",
|
|
6557
6608
|
"curatedDataset",
|
|
6558
6609
|
"database",
|
|
6559
6610
|
"fileStore"
|
|
6560
|
-
]),
|
|
6561
|
-
authMethodId:
|
|
6611
|
+
]), si = /* @__PURE__ */ Q({ label: Zr }), ci = /* @__PURE__ */ Q({
|
|
6612
|
+
authMethodId: Xr([
|
|
6562
6613
|
"apiKey",
|
|
6563
6614
|
"disabled",
|
|
6564
6615
|
"oAuth2",
|
|
6565
6616
|
"none"
|
|
6566
6617
|
]),
|
|
6567
|
-
activeConnectionCount: /* @__PURE__ */
|
|
6568
|
-
canDescribe: /* @__PURE__ */
|
|
6569
|
-
id: /* @__PURE__ */
|
|
6570
|
-
label: /* @__PURE__ */
|
|
6571
|
-
maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */
|
|
6572
|
-
params: /* @__PURE__ */
|
|
6573
|
-
}),
|
|
6618
|
+
activeConnectionCount: /* @__PURE__ */ Kr(/* @__PURE__ */ Gr()),
|
|
6619
|
+
canDescribe: /* @__PURE__ */ Kr(/* @__PURE__ */ Ur()),
|
|
6620
|
+
id: /* @__PURE__ */ Kr(/* @__PURE__ */ $()),
|
|
6621
|
+
label: /* @__PURE__ */ Kr(Zr),
|
|
6622
|
+
maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ Gr()),
|
|
6623
|
+
params: /* @__PURE__ */ Kr(/* @__PURE__ */ X(/* @__PURE__ */ qr(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
|
|
6624
|
+
}), li = Xr([
|
|
6574
6625
|
"abortOperation",
|
|
6575
6626
|
"auditObjectContent",
|
|
6576
6627
|
"createObject",
|
|
@@ -6585,17 +6636,17 @@ var Jr = Rr([
|
|
|
6585
6636
|
"retrieveChunks",
|
|
6586
6637
|
"retrieveRecords",
|
|
6587
6638
|
"upsertRecords"
|
|
6588
|
-
]),
|
|
6589
|
-
typeId: /* @__PURE__ */
|
|
6590
|
-
...
|
|
6591
|
-
actionNames: /* @__PURE__ */ X(
|
|
6592
|
-
category: /* @__PURE__ */ Z(
|
|
6593
|
-
categoryId:
|
|
6594
|
-
implementations: /* @__PURE__ */
|
|
6639
|
+
]), ui = /* @__PURE__ */ Q({
|
|
6640
|
+
typeId: /* @__PURE__ */ Wr("connector"),
|
|
6641
|
+
...ai,
|
|
6642
|
+
actionNames: /* @__PURE__ */ X(li),
|
|
6643
|
+
category: /* @__PURE__ */ Z(si),
|
|
6644
|
+
categoryId: oi,
|
|
6645
|
+
implementations: /* @__PURE__ */ qr(/* @__PURE__ */ $(), ci),
|
|
6595
6646
|
vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6596
6647
|
vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6597
6648
|
vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
|
|
6598
|
-
}),
|
|
6649
|
+
}), di = {
|
|
6599
6650
|
abortOperation: "Abort Operation",
|
|
6600
6651
|
auditObjectContent: "Audit Object Content",
|
|
6601
6652
|
createObject: "Create Object",
|
|
@@ -6611,29 +6662,29 @@ var Jr = Rr([
|
|
|
6611
6662
|
retrieveRecords: "Retrieve Records",
|
|
6612
6663
|
upsertRecords: "Upsert Records"
|
|
6613
6664
|
};
|
|
6614
|
-
function
|
|
6665
|
+
function fi(e) {
|
|
6615
6666
|
let t = new Set(e), n = "| Name | Supported |\n";
|
|
6616
6667
|
n += "| ---- | :-------: |\n";
|
|
6617
|
-
for (let e of Object.keys(
|
|
6668
|
+
for (let e of Object.keys(di)) n += `| ${di[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
6618
6669
|
return n;
|
|
6619
6670
|
}
|
|
6620
6671
|
//#endregion
|
|
6621
6672
|
//#region src/actions/documentOperations.ts
|
|
6622
|
-
var
|
|
6623
|
-
async function
|
|
6673
|
+
var pi = "<!-- CONNECTOR_OPERATIONS_START -->", mi = "<!-- CONNECTOR_OPERATIONS_END -->";
|
|
6674
|
+
async function hi() {
|
|
6624
6675
|
try {
|
|
6625
6676
|
G("Document Operations"), q("1️⃣ Insert operations table into 'README.md'");
|
|
6626
|
-
let e =
|
|
6627
|
-
await
|
|
6677
|
+
let e = fi((await W("config.json")).operations ?? []);
|
|
6678
|
+
await zn("README.md", Wn(await In("./README.md"), e, pi, mi)), K("Operations documented.");
|
|
6628
6679
|
} catch (e) {
|
|
6629
6680
|
console.error("❌ Error documenting operations.", e), process.exit(1);
|
|
6630
6681
|
}
|
|
6631
6682
|
}
|
|
6632
6683
|
//#endregion
|
|
6633
6684
|
//#region src/actions/formatCode.ts
|
|
6634
|
-
async function
|
|
6685
|
+
async function gi() {
|
|
6635
6686
|
try {
|
|
6636
|
-
G("Format Code"), await
|
|
6687
|
+
G("Format Code"), await Pn("1️⃣ Format", "prettier", [
|
|
6637
6688
|
"--write",
|
|
6638
6689
|
"*.json",
|
|
6639
6690
|
"*.md",
|
|
@@ -6646,16 +6697,16 @@ async function ii() {
|
|
|
6646
6697
|
}
|
|
6647
6698
|
//#endregion
|
|
6648
6699
|
//#region src/actions/lintCode.ts
|
|
6649
|
-
async function
|
|
6700
|
+
async function _i() {
|
|
6650
6701
|
try {
|
|
6651
|
-
G("Lint Code"), await
|
|
6702
|
+
G("Lint Code"), await Pn("1️⃣ Lint", "eslint", ["."]), K("Code linted.");
|
|
6652
6703
|
} catch (e) {
|
|
6653
6704
|
console.error("❌ Error linting code.", e), process.exit(1);
|
|
6654
6705
|
}
|
|
6655
6706
|
}
|
|
6656
6707
|
//#endregion
|
|
6657
6708
|
//#region src/utilities/cloudflare.ts
|
|
6658
|
-
async function
|
|
6709
|
+
async function vi() {
|
|
6659
6710
|
let e = await W("config.json"), t = {
|
|
6660
6711
|
body: JSON.stringify(e),
|
|
6661
6712
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6663,11 +6714,11 @@ async function oi() {
|
|
|
6663
6714
|
}, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
|
|
6664
6715
|
if (!n.ok) throw Error(await n.text());
|
|
6665
6716
|
}
|
|
6666
|
-
async function
|
|
6717
|
+
async function yi(e, t) {
|
|
6667
6718
|
async function n(e, t, r) {
|
|
6668
6719
|
for (let i of r) {
|
|
6669
6720
|
let r = `${e}/${i}`, a = `${t}/${i}`;
|
|
6670
|
-
(await
|
|
6721
|
+
(await Vn(r)).isDirectory() ? await n(r, a, await Mn(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await Nn(void 0, "wrangler", [
|
|
6671
6722
|
"r2",
|
|
6672
6723
|
"object",
|
|
6673
6724
|
"put",
|
|
@@ -6678,10 +6729,10 @@ async function si(e, t) {
|
|
|
6678
6729
|
]));
|
|
6679
6730
|
}
|
|
6680
6731
|
}
|
|
6681
|
-
let r = await
|
|
6732
|
+
let r = await Mn(`${e}/${t}/`);
|
|
6682
6733
|
await n(`${e}/${t}`, t, r);
|
|
6683
6734
|
}
|
|
6684
|
-
async function
|
|
6735
|
+
async function bi(e) {
|
|
6685
6736
|
let t = e.id, n = {
|
|
6686
6737
|
body: JSON.stringify(e),
|
|
6687
6738
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6689,14 +6740,14 @@ async function ci(e) {
|
|
|
6689
6740
|
}, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
|
|
6690
6741
|
if (!r.ok) throw Error(await r.text());
|
|
6691
6742
|
}
|
|
6692
|
-
async function
|
|
6743
|
+
async function xi(e, t) {
|
|
6693
6744
|
let n = `v${e.version ?? "unknown"}`;
|
|
6694
6745
|
async function r(e, r = "") {
|
|
6695
|
-
let i = await
|
|
6746
|
+
let i = await Mn(e, { withFileTypes: !0 });
|
|
6696
6747
|
for (let a of i) {
|
|
6697
6748
|
if (a.isDirectory()) continue;
|
|
6698
6749
|
let i = `${e}/${a.name}`, o = r ? `${r}/${a.name}` : a.name, s = `${t}_${n}/${o}`.replaceAll("\\", "/"), c = a.name.endsWith(".css") ? "text/css" : "application/octet-stream", l = a.name.endsWith(".js") ? "application/javascript" : c;
|
|
6699
|
-
console.info(`⚙️ Uploading '${o}' → '${s}'...`), await
|
|
6750
|
+
console.info(`⚙️ Uploading '${o}' → '${s}'...`), await Nn(void 0, "wrangler", [
|
|
6700
6751
|
"r2",
|
|
6701
6752
|
"object",
|
|
6702
6753
|
"put",
|
|
@@ -6713,24 +6764,24 @@ async function li(e, t) {
|
|
|
6713
6764
|
}
|
|
6714
6765
|
//#endregion
|
|
6715
6766
|
//#region node_modules/valibot/dist/index.mjs
|
|
6716
|
-
var
|
|
6767
|
+
var Si, Ci = {
|
|
6717
6768
|
lang: void 0,
|
|
6718
6769
|
message: void 0,
|
|
6719
6770
|
abortEarly: void 0,
|
|
6720
6771
|
abortPipeEarly: void 0
|
|
6721
6772
|
};
|
|
6722
6773
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6723
|
-
function
|
|
6724
|
-
return !e && !
|
|
6725
|
-
lang: e?.lang ??
|
|
6774
|
+
function wi(e) {
|
|
6775
|
+
return !e && !Si ? Ci : {
|
|
6776
|
+
lang: e?.lang ?? Si?.lang,
|
|
6726
6777
|
message: e?.message,
|
|
6727
|
-
abortEarly: e?.abortEarly ??
|
|
6728
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
6778
|
+
abortEarly: e?.abortEarly ?? Si?.abortEarly,
|
|
6779
|
+
abortPipeEarly: e?.abortPipeEarly ?? Si?.abortPipeEarly
|
|
6729
6780
|
};
|
|
6730
6781
|
}
|
|
6731
6782
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6732
|
-
function
|
|
6733
|
-
let r = e["~run"]({ value: t }, /* @__PURE__ */
|
|
6783
|
+
function Ti(e, t, n) {
|
|
6784
|
+
let r = e["~run"]({ value: t }, /* @__PURE__ */ wi(n));
|
|
6734
6785
|
return {
|
|
6735
6786
|
typed: r.typed,
|
|
6736
6787
|
success: !r.issues,
|
|
@@ -6740,31 +6791,31 @@ function pi(e, t, n) {
|
|
|
6740
6791
|
}
|
|
6741
6792
|
//#endregion
|
|
6742
6793
|
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
|
|
6743
|
-
var
|
|
6744
|
-
...
|
|
6745
|
-
typeId: /* @__PURE__ */
|
|
6746
|
-
modelRefs: /* @__PURE__ */ X(
|
|
6747
|
-
order: /* @__PURE__ */
|
|
6748
|
-
}),
|
|
6749
|
-
...
|
|
6750
|
-
typeId: /* @__PURE__ */
|
|
6751
|
-
models: /* @__PURE__ */ X(
|
|
6752
|
-
operations: /* @__PURE__ */ X(
|
|
6753
|
-
}),
|
|
6794
|
+
var Ei = /* @__PURE__ */ Q({
|
|
6795
|
+
...ii,
|
|
6796
|
+
typeId: /* @__PURE__ */ Wr("contextModelGroup"),
|
|
6797
|
+
modelRefs: /* @__PURE__ */ X(ri),
|
|
6798
|
+
order: /* @__PURE__ */ Gr()
|
|
6799
|
+
}), Di = Xr(["listContextFocuses"]), Oi = /* @__PURE__ */ Q({
|
|
6800
|
+
...ai,
|
|
6801
|
+
typeId: /* @__PURE__ */ Wr("context"),
|
|
6802
|
+
models: /* @__PURE__ */ X(Ei),
|
|
6803
|
+
operations: /* @__PURE__ */ X(Di)
|
|
6804
|
+
}), ki = Xr([
|
|
6754
6805
|
"list",
|
|
6755
6806
|
"render",
|
|
6756
6807
|
"setColorMode"
|
|
6757
|
-
]),
|
|
6758
|
-
typeId: /* @__PURE__ */
|
|
6759
|
-
...
|
|
6760
|
-
actionNames: /* @__PURE__ */ X(
|
|
6761
|
-
presentations: /* @__PURE__ */ X(
|
|
6762
|
-
}),
|
|
6808
|
+
]), Ai = /* @__PURE__ */ Q({
|
|
6809
|
+
typeId: /* @__PURE__ */ Wr("presenter"),
|
|
6810
|
+
...ai,
|
|
6811
|
+
actionNames: /* @__PURE__ */ X(ki),
|
|
6812
|
+
presentations: /* @__PURE__ */ X(ri)
|
|
6813
|
+
}), ji = /* @__PURE__ */ new Set([
|
|
6763
6814
|
"createObject",
|
|
6764
6815
|
"dropObject",
|
|
6765
6816
|
"removeRecords",
|
|
6766
6817
|
"upsertRecords"
|
|
6767
|
-
]),
|
|
6818
|
+
]), Mi = /* @__PURE__ */ new Set([
|
|
6768
6819
|
"auditObjectContent",
|
|
6769
6820
|
"findObjectFolderPath",
|
|
6770
6821
|
"getReadableStream",
|
|
@@ -6774,57 +6825,57 @@ var mi = /* @__PURE__ */ Q({
|
|
|
6774
6825
|
"retrieveChunks",
|
|
6775
6826
|
"retrieveRecords"
|
|
6776
6827
|
]);
|
|
6777
|
-
async function
|
|
6828
|
+
async function Ni() {
|
|
6778
6829
|
try {
|
|
6779
|
-
G("Build Project"), await
|
|
6830
|
+
G("Build Project"), await Pn("1️⃣ Bundle project", "vite", ["build"]), K("Project built.");
|
|
6780
6831
|
} catch (e) {
|
|
6781
6832
|
console.error("❌ Error building project.", e), process.exit(1);
|
|
6782
6833
|
}
|
|
6783
6834
|
}
|
|
6784
|
-
async function
|
|
6835
|
+
async function Pi() {
|
|
6785
6836
|
try {
|
|
6786
6837
|
G("Release Project");
|
|
6787
6838
|
let e = await W("package.json"), t = await W("config.json");
|
|
6788
|
-
await
|
|
6789
|
-
let n =
|
|
6839
|
+
await Wi("1️⃣ ", e);
|
|
6840
|
+
let n = Bn(t.id);
|
|
6790
6841
|
switch (n.typeId) {
|
|
6791
6842
|
case "connector":
|
|
6792
|
-
t = await
|
|
6843
|
+
t = await Ii("2️⃣ ", e);
|
|
6793
6844
|
break;
|
|
6794
6845
|
case "context":
|
|
6795
|
-
t = await
|
|
6846
|
+
t = await Li("2️⃣ ", e);
|
|
6796
6847
|
break;
|
|
6797
6848
|
case "presenter":
|
|
6798
|
-
t = await
|
|
6849
|
+
t = await Ri("2️⃣ ", e);
|
|
6799
6850
|
break;
|
|
6800
|
-
default: t = await
|
|
6851
|
+
default: t = await Fi("2️⃣ ", e);
|
|
6801
6852
|
}
|
|
6802
|
-
if (await
|
|
6853
|
+
if (await Pn("3️⃣ Bundle project", "vite", ["build"]), await Nn("4️⃣ Stage changes", "git", ["add", "."]), await Nn("5️⃣ Commit changes", "git", [
|
|
6803
6854
|
"commit",
|
|
6804
6855
|
"-m",
|
|
6805
6856
|
`"v${e.version ?? "unknown"}"`
|
|
6806
|
-
]), await
|
|
6857
|
+
]), await Nn("6️⃣ Push changes", "git", [
|
|
6807
6858
|
"push",
|
|
6808
6859
|
"origin",
|
|
6809
6860
|
"main:main"
|
|
6810
|
-
]), n.typeId === "app") q("7️⃣ Register module"), await
|
|
6811
|
-
else if (n.typeId === "engine") q("7️⃣ Register module"), await
|
|
6861
|
+
]), n.typeId === "app") q("7️⃣ Register module"), await vi();
|
|
6862
|
+
else if (n.typeId === "engine") q("7️⃣ Register module"), await xi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await bi(t);
|
|
6812
6863
|
else if (n.uploadGroupName === void 0) q("7️⃣ Registration NOT required.");
|
|
6813
6864
|
else {
|
|
6814
6865
|
q("7️⃣ Register module");
|
|
6815
6866
|
let r = t.id.split("-").slice(2).join("-");
|
|
6816
|
-
await
|
|
6867
|
+
await xi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await bi(t);
|
|
6817
6868
|
}
|
|
6818
6869
|
if (n.publishedTo === "npm") {
|
|
6819
6870
|
let e = ".npmrc";
|
|
6820
6871
|
try {
|
|
6821
|
-
await
|
|
6872
|
+
await zn(e, `registry=https://registry.npmjs.org/\n//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN ?? ""}`), await Pn("8️⃣ Publish to npm", "npm", [
|
|
6822
6873
|
"publish",
|
|
6823
6874
|
"--access",
|
|
6824
6875
|
"public"
|
|
6825
6876
|
]);
|
|
6826
6877
|
} finally {
|
|
6827
|
-
await
|
|
6878
|
+
await Ln(e);
|
|
6828
6879
|
}
|
|
6829
6880
|
} else q(`8️⃣ Publishing NOT required for package with type identifier of '${n.typeId}'.`);
|
|
6830
6881
|
K(`Project version '${e.version ?? "unknown"}' released.`);
|
|
@@ -6832,76 +6883,76 @@ async function Si() {
|
|
|
6832
6883
|
console.error("❌ Error releasing project.", e), process.exit(1);
|
|
6833
6884
|
}
|
|
6834
6885
|
}
|
|
6835
|
-
async function
|
|
6886
|
+
async function Fi(e, t) {
|
|
6836
6887
|
q(`${e} Build project configuration`);
|
|
6837
6888
|
let n = await W("config.json");
|
|
6838
|
-
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await
|
|
6889
|
+
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Rn("config.json", n), n;
|
|
6839
6890
|
}
|
|
6840
|
-
async function
|
|
6891
|
+
async function Ii(e, t) {
|
|
6841
6892
|
q(`${e} Build connector project configuration`);
|
|
6842
|
-
let [n, r] = await Promise.all([W("config.json"),
|
|
6893
|
+
let [n, r] = await Promise.all([W("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ Ti(ui, n);
|
|
6843
6894
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
|
|
6844
|
-
let a =
|
|
6845
|
-
return await
|
|
6895
|
+
let a = Hn(r);
|
|
6896
|
+
return await Bi(t, n, a, zi(a));
|
|
6846
6897
|
}
|
|
6847
|
-
async function
|
|
6898
|
+
async function Li(e, t) {
|
|
6848
6899
|
q(`${e} Build context project configuration`);
|
|
6849
|
-
let [n, r] = await Promise.all([W("config.json"),
|
|
6900
|
+
let [n, r] = await Promise.all([W("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ Ti(Oi, n);
|
|
6850
6901
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
|
|
6851
|
-
return await
|
|
6902
|
+
return await Bi(t, n, Hn(r));
|
|
6852
6903
|
}
|
|
6853
|
-
async function
|
|
6904
|
+
async function Ri(e, t) {
|
|
6854
6905
|
q(`${e} Build presenter project configuration`);
|
|
6855
|
-
let [n, r] = await Promise.all([W("config.json"),
|
|
6906
|
+
let [n, r] = await Promise.all([W("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ Ti(Ai, n);
|
|
6856
6907
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
|
|
6857
|
-
return await
|
|
6908
|
+
return await Bi(t, n, Hn(r));
|
|
6858
6909
|
}
|
|
6859
|
-
function
|
|
6910
|
+
function zi(e) {
|
|
6860
6911
|
let t = !1, n = !1;
|
|
6861
|
-
for (let r of e)
|
|
6912
|
+
for (let r of e) Mi.has(r) && (t = !0), ji.has(r) && (n = !0);
|
|
6862
6913
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
6863
6914
|
}
|
|
6864
|
-
async function
|
|
6865
|
-
return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations."), r === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${r ?? "unknown"}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.operations = n, t.usageId = r ?? "unknown", await
|
|
6915
|
+
async function Bi(e, t, n, r) {
|
|
6916
|
+
return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations."), r === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${r ?? "unknown"}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.operations = n, t.usageId = r ?? "unknown", await Rn("config.json", t), t;
|
|
6866
6917
|
}
|
|
6867
|
-
async function
|
|
6918
|
+
async function Vi() {
|
|
6868
6919
|
try {
|
|
6869
6920
|
G("Publish Project");
|
|
6870
|
-
let e = await W("package.json"), t = await W("config.json"), n =
|
|
6871
|
-
if (n.typeId === "app") q("1️⃣ Register module"), await
|
|
6872
|
-
else if (n.typeId === "engine") q("1️⃣ Register module"), await
|
|
6921
|
+
let e = await W("package.json"), t = await W("config.json"), n = Bn(t.id);
|
|
6922
|
+
if (n.typeId === "app") q("1️⃣ Register module"), await vi();
|
|
6923
|
+
else if (n.typeId === "engine") q("1️⃣ Register module"), await xi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await bi(t);
|
|
6873
6924
|
else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required.");
|
|
6874
6925
|
else {
|
|
6875
6926
|
q("1️⃣ Register module");
|
|
6876
6927
|
let r = t.id.split("-").slice(2).join("-");
|
|
6877
|
-
await
|
|
6928
|
+
await xi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await bi(t);
|
|
6878
6929
|
}
|
|
6879
6930
|
K(`Project version '${e.version ?? "unknown"}' published.`);
|
|
6880
6931
|
} catch (e) {
|
|
6881
6932
|
console.error("❌ Error publishing project.", e), process.exit(1);
|
|
6882
6933
|
}
|
|
6883
6934
|
}
|
|
6884
|
-
async function
|
|
6935
|
+
async function Hi() {
|
|
6885
6936
|
try {
|
|
6886
6937
|
G("Synchronise Project with GitHub");
|
|
6887
6938
|
let e = await W("package.json"), t = await W("config.json");
|
|
6888
|
-
switch (await
|
|
6939
|
+
switch (await Wi("1️⃣ ", e), Bn(t.id).typeId) {
|
|
6889
6940
|
case "connector":
|
|
6890
|
-
await
|
|
6941
|
+
await Ii("2️⃣ ", e);
|
|
6891
6942
|
break;
|
|
6892
6943
|
case "context":
|
|
6893
|
-
await
|
|
6944
|
+
await Li("2️⃣ ", e);
|
|
6894
6945
|
break;
|
|
6895
6946
|
case "presenter":
|
|
6896
|
-
await
|
|
6947
|
+
await Ri("2️⃣ ", e);
|
|
6897
6948
|
break;
|
|
6898
|
-
default: await
|
|
6949
|
+
default: await Fi("2️⃣ ", e);
|
|
6899
6950
|
}
|
|
6900
|
-
await
|
|
6951
|
+
await Nn("3️⃣ Stage changes", "git", ["add", "."]), await Nn("4️⃣ Commit changes", "git", [
|
|
6901
6952
|
"commit",
|
|
6902
6953
|
"-m",
|
|
6903
6954
|
`"v${e.version ?? "unknown"}"`
|
|
6904
|
-
]), await
|
|
6955
|
+
]), await Nn("5️⃣ Push changes", "git", [
|
|
6905
6956
|
"push",
|
|
6906
6957
|
"origin",
|
|
6907
6958
|
"main:main"
|
|
@@ -6910,22 +6961,22 @@ async function Ai() {
|
|
|
6910
6961
|
console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
|
|
6911
6962
|
}
|
|
6912
6963
|
}
|
|
6913
|
-
function
|
|
6964
|
+
function Ui() {
|
|
6914
6965
|
try {
|
|
6915
6966
|
G("Test Project"), console.error("\n❌ No tests implemented.\n");
|
|
6916
6967
|
} catch (e) {
|
|
6917
6968
|
console.error("❌ Error testing project.", e), process.exit(1);
|
|
6918
6969
|
}
|
|
6919
6970
|
}
|
|
6920
|
-
async function
|
|
6971
|
+
async function Wi(e, t, n = "./") {
|
|
6921
6972
|
if (q(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
6922
6973
|
else {
|
|
6923
6974
|
let e = t.version, n = t.version.split(".");
|
|
6924
6975
|
t.version = `${n[0] ?? "unknown"}.${n[1] ?? "unknown"}.${String(Number(n[2]) + 1)}`, console.info(`Project version bumped from '${e}' to '${t.version}'.`);
|
|
6925
6976
|
}
|
|
6926
|
-
await
|
|
6977
|
+
await Rn(`${n}package.json`, t);
|
|
6927
6978
|
}
|
|
6928
6979
|
//#endregion
|
|
6929
|
-
export {
|
|
6980
|
+
export { Gn as auditDependencies, Ni as buildProject, Kn as checkConfigFiles, Jn as checkDependencies, ar as documentBundleSizes, br as documentDependencies, hi as documentOperations, gi as formatCode, _i as lintCode, Vi as publishProject, Pi as releaseProject, Hi as syncProjectWithGitHub, Ui as testProject, yi as uploadDirectoryToR2 };
|
|
6930
6981
|
|
|
6931
6982
|
//# sourceMappingURL=dpuse-development.es.js.map
|