@datapos/datapos-development 0.3.432 → 0.3.433
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { promises as at, existsSync as Qi } from "node:fs";
|
|
2
2
|
import { nanoid as Ji } from "nanoid";
|
|
3
|
-
import { contextConfigSchema as Yi, connectorConfigSchema as Zi,
|
|
3
|
+
import { contextConfigSchema as Yi, connectorConfigSchema as Zi, presenterConfigSchema as ts } from "@datapos/datapos-shared";
|
|
4
4
|
import qt from "node:path";
|
|
5
|
-
import { promisify as
|
|
6
|
-
import { exec as
|
|
7
|
-
import { fileURLToPath as ri, URL as
|
|
5
|
+
import { promisify as es } from "node:util";
|
|
6
|
+
import { exec as is, spawn as ss } from "node:child_process";
|
|
7
|
+
import { fileURLToPath as ri, URL as rs } from "node:url";
|
|
8
8
|
let xe;
|
|
9
9
|
// @__NO_SIDE_EFFECTS__
|
|
10
|
-
function
|
|
10
|
+
function as(t) {
|
|
11
11
|
return {
|
|
12
12
|
lang: t?.lang ?? xe?.lang,
|
|
13
13
|
message: t?.message,
|
|
@@ -17,7 +17,7 @@ function os(t) {
|
|
|
17
17
|
}
|
|
18
18
|
// @__NO_SIDE_EFFECTS__
|
|
19
19
|
function Ee(t, e, s) {
|
|
20
|
-
const a = t["~run"]({ value: e }, /* @__PURE__ */
|
|
20
|
+
const a = t["~run"]({ value: e }, /* @__PURE__ */ as(s));
|
|
21
21
|
return {
|
|
22
22
|
typed: a.typed,
|
|
23
23
|
success: !a.issues,
|
|
@@ -25,17 +25,17 @@ function Ee(t, e, s) {
|
|
|
25
25
|
issues: a.issues
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var ns = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], ai = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], os = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", ni = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ve = {
|
|
29
29
|
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",
|
|
30
30
|
5: "class enum extends super const export import",
|
|
31
31
|
6: "enum",
|
|
32
32
|
strict: "implements interface let package private protected public static yield",
|
|
33
33
|
strictBind: "eval arguments"
|
|
34
|
-
}, ge = "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",
|
|
34
|
+
}, ge = "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", hs = {
|
|
35
35
|
5: ge,
|
|
36
36
|
"5module": ge + " export import",
|
|
37
37
|
6: ge + " const class extends export import super"
|
|
38
|
-
},
|
|
38
|
+
}, us = /^in(stanceof)?$/, cs = new RegExp("[" + ni + "]"), ps = new RegExp("[" + ni + os + "]");
|
|
39
39
|
function Pe(t, e) {
|
|
40
40
|
for (var s = 65536, a = 0; a < e.length; a += 2) {
|
|
41
41
|
if (s += e[a], s > t)
|
|
@@ -46,10 +46,10 @@ function Pe(t, e) {
|
|
|
46
46
|
return !1;
|
|
47
47
|
}
|
|
48
48
|
function ft(t, e) {
|
|
49
|
-
return t < 65 ? t === 36 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 &&
|
|
49
|
+
return t < 65 ? t === 36 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && cs.test(String.fromCharCode(t)) : e === !1 ? !1 : Pe(t, ai);
|
|
50
50
|
}
|
|
51
51
|
function gt(t, e) {
|
|
52
|
-
return t < 48 ? t === 36 : t < 58 ? !0 : t < 65 ? !1 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 &&
|
|
52
|
+
return t < 48 ? t === 36 : t < 58 ? !0 : t < 65 ? !1 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && ps.test(String.fromCharCode(t)) : e === !1 ? !1 : Pe(t, ai) || Pe(t, ns);
|
|
53
53
|
}
|
|
54
54
|
var O = function(e, s) {
|
|
55
55
|
s === void 0 && (s = {}), this.label = e, this.keyword = s.keyword, this.beforeExpr = !!s.beforeExpr, this.startsExpr = !!s.startsExpr, this.isLoop = !!s.isLoop, this.isAssign = !!s.isAssign, this.prefix = !!s.prefix, this.postfix = !!s.postfix, this.binop = s.binop || null, this.updateContext = null;
|
|
@@ -167,10 +167,10 @@ function hi(t, e, s) {
|
|
|
167
167
|
}
|
|
168
168
|
return -1;
|
|
169
169
|
}
|
|
170
|
-
var Ie = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, K = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ui = Object.prototype,
|
|
171
|
-
return
|
|
170
|
+
var Ie = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, K = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ui = Object.prototype, ls = ui.hasOwnProperty, fs = ui.toString, Mt = Object.hasOwn || (function(t, e) {
|
|
171
|
+
return ls.call(t, e);
|
|
172
172
|
}), $e = Array.isArray || (function(t) {
|
|
173
|
-
return
|
|
173
|
+
return fs.call(t) === "[object Array]";
|
|
174
174
|
}), Ge = /* @__PURE__ */ Object.create(null);
|
|
175
175
|
function kt(t) {
|
|
176
176
|
return Ge[t] || (Ge[t] = new RegExp("^(?:" + t.replace(/ /g, "|") + ")$"));
|
|
@@ -178,7 +178,7 @@ function kt(t) {
|
|
|
178
178
|
function bt(t) {
|
|
179
179
|
return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320));
|
|
180
180
|
}
|
|
181
|
-
var
|
|
181
|
+
var ds = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Rt = function(e, s) {
|
|
182
182
|
this.line = e, this.column = s;
|
|
183
183
|
};
|
|
184
184
|
Rt.prototype.offset = function(e) {
|
|
@@ -292,7 +292,7 @@ var ee = {
|
|
|
292
292
|
// (non-standard) ParenthesizedExpression nodes
|
|
293
293
|
preserveParens: !1
|
|
294
294
|
}, We = !1;
|
|
295
|
-
function
|
|
295
|
+
function ms(t) {
|
|
296
296
|
var e = {};
|
|
297
297
|
for (var s in ee)
|
|
298
298
|
e[s] = t && Mt(t, s) ? t[s] : ee[s];
|
|
@@ -303,9 +303,9 @@ Defaulting to 2020, but this will stop working in the future.`)), e.ecmaVersion
|
|
|
303
303
|
return a.push(h);
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
|
-
return $e(e.onComment) && (e.onComment =
|
|
306
|
+
return $e(e.onComment) && (e.onComment = ys(e, e.onComment)), e;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function ys(t, e) {
|
|
309
309
|
return function(s, a, h, l, d, v) {
|
|
310
310
|
var g = {
|
|
311
311
|
type: s ? "Block" : "Line",
|
|
@@ -321,7 +321,7 @@ function Oe(t, e) {
|
|
|
321
321
|
return Dt | (t ? Ne : 0) | (e ? ci : 0);
|
|
322
322
|
}
|
|
323
323
|
var ie = 0, Re = 1, St = 2, fi = 3, di = 4, mi = 5, H = function(e, s, a) {
|
|
324
|
-
this.options = e =
|
|
324
|
+
this.options = e = ms(e), this.sourceFile = e.sourceFile, this.keywords = kt(hs[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
|
|
325
325
|
var h = "";
|
|
326
326
|
e.allowReserved !== !0 && (h = ve[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (h += " await")), this.reservedWords = kt(h);
|
|
327
327
|
var l = (h ? h + " " : "") + ve.strict;
|
|
@@ -389,13 +389,13 @@ H.tokenizer = function(e, s) {
|
|
|
389
389
|
return new this(s, e);
|
|
390
390
|
};
|
|
391
391
|
Object.defineProperties(H.prototype, yt);
|
|
392
|
-
var Y = H.prototype,
|
|
392
|
+
var Y = H.prototype, xs = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
393
393
|
Y.strictDirective = function(t) {
|
|
394
394
|
if (this.options.ecmaVersion < 5)
|
|
395
395
|
return !1;
|
|
396
396
|
for (; ; ) {
|
|
397
397
|
K.lastIndex = t, t += K.exec(this.input)[0].length;
|
|
398
|
-
var e =
|
|
398
|
+
var e = xs.exec(this.input.slice(t));
|
|
399
399
|
if (!e)
|
|
400
400
|
return !1;
|
|
401
401
|
if ((e[1] || e[2]) === "use strict") {
|
|
@@ -476,7 +476,7 @@ k.parseTopLevel = function(t) {
|
|
|
476
476
|
}
|
|
477
477
|
return this.adaptDirectivePrologue(t.body), this.next(), t.sourceType = this.options.sourceType, this.finishNode(t, "Program");
|
|
478
478
|
};
|
|
479
|
-
var Me = { kind: "loop" },
|
|
479
|
+
var Me = { kind: "loop" }, vs = { kind: "switch" };
|
|
480
480
|
k.isLet = function(t) {
|
|
481
481
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
482
482
|
return !1;
|
|
@@ -494,7 +494,7 @@ k.isLet = function(t) {
|
|
|
494
494
|
if (a === 92 || a > 55295 && a < 56320)
|
|
495
495
|
return !0;
|
|
496
496
|
var l = this.input.slice(s, h);
|
|
497
|
-
if (!
|
|
497
|
+
if (!us.test(l))
|
|
498
498
|
return !0;
|
|
499
499
|
}
|
|
500
500
|
return !1;
|
|
@@ -644,7 +644,7 @@ k.parseReturnStatement = function(t) {
|
|
|
644
644
|
return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(u.semi) || this.insertSemicolon() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement");
|
|
645
645
|
};
|
|
646
646
|
k.parseSwitchStatement = function(t) {
|
|
647
|
-
this.next(), t.discriminant = this.parseParenExpression(), t.cases = [], this.expect(u.braceL), this.labels.push(
|
|
647
|
+
this.next(), t.discriminant = this.parseParenExpression(), t.cases = [], this.expect(u.braceL), this.labels.push(vs), this.enterScope(0);
|
|
648
648
|
for (var e, s = !1; this.type !== u.braceR; )
|
|
649
649
|
if (this.type === u._case || this.type === u._default) {
|
|
650
650
|
var a = this.type === u._case;
|
|
@@ -656,7 +656,7 @@ k.parseSwitchStatement = function(t) {
|
|
|
656
656
|
k.parseThrowStatement = function(t) {
|
|
657
657
|
return this.next(), J.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement");
|
|
658
658
|
};
|
|
659
|
-
var
|
|
659
|
+
var gs = [];
|
|
660
660
|
k.parseCatchClauseParam = function() {
|
|
661
661
|
var t = this.parseBindingAtom(), e = t.type === "Identifier";
|
|
662
662
|
return this.enterScope(e ? pi : 0), this.checkLValPattern(t, e ? di : St), this.expect(u.parenR), t;
|
|
@@ -741,7 +741,7 @@ k.parseClass = function(t, e) {
|
|
|
741
741
|
var a = this.enterClassBody(), h = this.startNode(), l = !1;
|
|
742
742
|
for (h.body = [], this.expect(u.braceL); this.type !== u.braceR; ) {
|
|
743
743
|
var d = this.parseClassElement(t.superClass !== null);
|
|
744
|
-
d && (h.body.push(d), d.type === "MethodDefinition" && d.kind === "constructor" ? (l && this.raiseRecoverable(d.start, "Duplicate constructor in the same class"), l = !0) : d.key && d.key.type === "PrivateIdentifier" &&
|
|
744
|
+
d && (h.body.push(d), d.type === "MethodDefinition" && d.kind === "constructor" ? (l && this.raiseRecoverable(d.start, "Duplicate constructor in the same class"), l = !0) : d.key && d.key.type === "PrivateIdentifier" && bs(a, d) && this.raiseRecoverable(d.key.start, "Identifier '#" + d.key.name + "' has already been declared"));
|
|
745
745
|
}
|
|
746
746
|
return this.strict = s, this.next(), t.body = this.finishNode(h, "ClassBody"), this.exitClassBody(), this.finishNode(t, e ? "ClassDeclaration" : "ClassExpression");
|
|
747
747
|
};
|
|
@@ -807,7 +807,7 @@ k.exitClassBody = function() {
|
|
|
807
807
|
Mt(e, d.name) || (h ? h.used.push(d) : this.raiseRecoverable(d.start, "Private field '#" + d.name + "' must be declared in an enclosing class"));
|
|
808
808
|
}
|
|
809
809
|
};
|
|
810
|
-
function
|
|
810
|
+
function bs(t, e) {
|
|
811
811
|
var s = e.key.name, a = t[s], h = "true";
|
|
812
812
|
return e.type === "MethodDefinition" && (e.kind === "get" || e.kind === "set") && (h = (e.static ? "s" : "i") + e.kind), a === "iget" && h === "iset" || a === "iset" && h === "iget" || a === "sget" && h === "sset" || a === "sset" && h === "sget" ? (t[s] = "true", !1) : a ? !0 : (t[s] = h, !1);
|
|
813
813
|
}
|
|
@@ -904,7 +904,7 @@ k.parseExportSpecifiers = function(t) {
|
|
|
904
904
|
return e;
|
|
905
905
|
};
|
|
906
906
|
k.parseImport = function(t) {
|
|
907
|
-
return this.next(), this.type === u.string ? (t.specifiers =
|
|
907
|
+
return this.next(), this.type === u.string ? (t.specifiers = gs, t.source = this.parseExprAtom()) : (t.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), t.source = this.type === u.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (t.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(t, "ImportDeclaration");
|
|
908
908
|
};
|
|
909
909
|
k.parseImportSpecifier = function() {
|
|
910
910
|
var t = this.startNode();
|
|
@@ -955,7 +955,7 @@ k.parseImportAttribute = function() {
|
|
|
955
955
|
k.parseModuleExportName = function() {
|
|
956
956
|
if (this.options.ecmaVersion >= 13 && this.type === u.string) {
|
|
957
957
|
var t = this.parseLiteral(this.value);
|
|
958
|
-
return
|
|
958
|
+
return ds.test(t.value) && this.raise(t.start, "An export name cannot include a lone surrogate."), t;
|
|
959
959
|
}
|
|
960
960
|
return this.parseIdent(!0);
|
|
961
961
|
};
|
|
@@ -1501,7 +1501,7 @@ _.parseParenItem = function(t) {
|
|
|
1501
1501
|
_.parseParenArrowList = function(t, e, s, a) {
|
|
1502
1502
|
return this.parseArrowExpression(this.startNodeAt(t, e), s, !1, a);
|
|
1503
1503
|
};
|
|
1504
|
-
var
|
|
1504
|
+
var Ts = [];
|
|
1505
1505
|
_.parseNew = function() {
|
|
1506
1506
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
1507
1507
|
var t = this.startNode();
|
|
@@ -1512,7 +1512,7 @@ _.parseNew = function() {
|
|
|
1512
1512
|
return t.property = this.parseIdent(!0), t.property.name !== "target" && this.raiseRecoverable(t.property.start, "The only valid meta property for new is 'new.target'"), s && this.raiseRecoverable(t.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(t.start, "'new.target' can only be used in functions and class static block"), this.finishNode(t, "MetaProperty");
|
|
1513
1513
|
}
|
|
1514
1514
|
var a = this.start, h = this.startLoc;
|
|
1515
|
-
return t.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), a, h, !0, !1), this.eat(u.parenL) ? t.arguments = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1) : t.arguments =
|
|
1515
|
+
return t.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), a, h, !0, !1), this.eat(u.parenL) ? t.arguments = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1) : t.arguments = Ts, this.finishNode(t, "NewExpression");
|
|
1516
1516
|
};
|
|
1517
1517
|
_.parseTemplateElement = function(t) {
|
|
1518
1518
|
var e = t.isTagged, s = this.startNode();
|
|
@@ -1670,11 +1670,11 @@ re.curPosition = function() {
|
|
|
1670
1670
|
if (this.options.locations)
|
|
1671
1671
|
return new Rt(this.curLine, this.pos - this.lineStart);
|
|
1672
1672
|
};
|
|
1673
|
-
var At = H.prototype,
|
|
1673
|
+
var At = H.prototype, Ss = function(e) {
|
|
1674
1674
|
this.flags = e, this.var = [], this.lexical = [], this.functions = [];
|
|
1675
1675
|
};
|
|
1676
1676
|
At.enterScope = function(t) {
|
|
1677
|
-
this.scopeStack.push(new
|
|
1677
|
+
this.scopeStack.push(new Ss(t));
|
|
1678
1678
|
};
|
|
1679
1679
|
At.exitScope = function() {
|
|
1680
1680
|
this.scopeStack.pop();
|
|
@@ -1749,42 +1749,42 @@ Qt.copyNode = function(t) {
|
|
|
1749
1749
|
e[s] = t[s];
|
|
1750
1750
|
return e;
|
|
1751
1751
|
};
|
|
1752
|
-
var
|
|
1752
|
+
var Ps = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", gi = "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", bi = gi + " Extended_Pictographic", Ti = bi, Si = Ti + " EBase EComp EMod EPres ExtPict", Pi = Si, Cs = Pi, ws = {
|
|
1753
1753
|
9: gi,
|
|
1754
1754
|
10: bi,
|
|
1755
1755
|
11: Ti,
|
|
1756
1756
|
12: Si,
|
|
1757
1757
|
13: Pi,
|
|
1758
|
-
14:
|
|
1759
|
-
},
|
|
1758
|
+
14: Cs
|
|
1759
|
+
}, ks = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", As = {
|
|
1760
1760
|
9: "",
|
|
1761
1761
|
10: "",
|
|
1762
1762
|
11: "",
|
|
1763
1763
|
12: "",
|
|
1764
1764
|
13: "",
|
|
1765
|
-
14:
|
|
1766
|
-
}, Ke = "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", Ci = "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", wi = Ci + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", ki = wi + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Ai = ki + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Ei = Ai + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",
|
|
1765
|
+
14: ks
|
|
1766
|
+
}, Ke = "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", Ci = "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", wi = Ci + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", ki = wi + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Ai = ki + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Ei = Ai + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Es = Ei + " " + Ps, Is = {
|
|
1767
1767
|
9: Ci,
|
|
1768
1768
|
10: wi,
|
|
1769
1769
|
11: ki,
|
|
1770
1770
|
12: Ai,
|
|
1771
1771
|
13: Ei,
|
|
1772
|
-
14:
|
|
1772
|
+
14: Es
|
|
1773
1773
|
}, Ii = {};
|
|
1774
|
-
function
|
|
1774
|
+
function _s(t) {
|
|
1775
1775
|
var e = Ii[t] = {
|
|
1776
|
-
binary: kt(
|
|
1777
|
-
binaryOfStrings: kt(
|
|
1776
|
+
binary: kt(ws[t] + " " + Ke),
|
|
1777
|
+
binaryOfStrings: kt(As[t]),
|
|
1778
1778
|
nonBinary: {
|
|
1779
1779
|
General_Category: kt(Ke),
|
|
1780
|
-
Script: kt(
|
|
1780
|
+
Script: kt(Is[t])
|
|
1781
1781
|
}
|
|
1782
1782
|
};
|
|
1783
1783
|
e.nonBinary.Script_Extensions = e.nonBinary.Script, e.nonBinary.gc = e.nonBinary.General_Category, e.nonBinary.sc = e.nonBinary.Script, e.nonBinary.scx = e.nonBinary.Script_Extensions;
|
|
1784
1784
|
}
|
|
1785
1785
|
for (var be = 0, ze = [9, 10, 11, 12, 13, 14]; be < ze.length; be += 1) {
|
|
1786
|
-
var
|
|
1787
|
-
|
|
1786
|
+
var Ns = ze[be];
|
|
1787
|
+
_s(Ns);
|
|
1788
1788
|
}
|
|
1789
1789
|
var C = H.prototype, ae = function(e, s) {
|
|
1790
1790
|
this.parent = e, this.base = s || this;
|
|
@@ -1857,13 +1857,13 @@ C.validateRegExpFlags = function(t) {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
this.options.ecmaVersion >= 15 && a && h && this.raise(t.start, "Invalid regular expression flag");
|
|
1859
1859
|
};
|
|
1860
|
-
function
|
|
1860
|
+
function Ls(t) {
|
|
1861
1861
|
for (var e in t)
|
|
1862
1862
|
return !0;
|
|
1863
1863
|
return !1;
|
|
1864
1864
|
}
|
|
1865
1865
|
C.validateRegExpPattern = function(t) {
|
|
1866
|
-
this.regexp_pattern(t), !t.switchN && this.options.ecmaVersion >= 9 &&
|
|
1866
|
+
this.regexp_pattern(t), !t.switchN && this.options.ecmaVersion >= 9 && Ls(t.groupNames) && (t.switchN = !0, this.regexp_pattern(t));
|
|
1867
1867
|
};
|
|
1868
1868
|
C.regexp_pattern = function(t) {
|
|
1869
1869
|
t.pos = 0, t.lastIntValue = 0, t.lastStringValue = "", t.lastAssertionIsQuantifiable = !1, t.numCapturingParens = 0, t.maxBackReference = 0, t.groupNames = /* @__PURE__ */ Object.create(null), t.backReferenceNames.length = 0, t.branchID = null, this.regexp_disjunction(t), t.pos !== t.source.length && (t.eat(
|
|
@@ -2065,11 +2065,11 @@ C.regexp_eatCapturingGroup = function(t) {
|
|
|
2065
2065
|
return !1;
|
|
2066
2066
|
};
|
|
2067
2067
|
C.regexp_eatModifiers = function(t) {
|
|
2068
|
-
for (var e = "", s = 0; (s = t.current()) !== -1 &&
|
|
2068
|
+
for (var e = "", s = 0; (s = t.current()) !== -1 && Os(s); )
|
|
2069
2069
|
e += bt(s), t.advance();
|
|
2070
2070
|
return e;
|
|
2071
2071
|
};
|
|
2072
|
-
function
|
|
2072
|
+
function Os(t) {
|
|
2073
2073
|
return t === 105 || t === 109 || t === 115;
|
|
2074
2074
|
}
|
|
2075
2075
|
C.regexp_eatExtendedAtom = function(t) {
|
|
@@ -2139,16 +2139,16 @@ C.regexp_eatRegExpIdentifierName = function(t) {
|
|
|
2139
2139
|
};
|
|
2140
2140
|
C.regexp_eatRegExpIdentifierStart = function(t) {
|
|
2141
2141
|
var e = t.pos, s = this.options.ecmaVersion >= 11, a = t.current(s);
|
|
2142
|
-
return t.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (a = t.lastIntValue),
|
|
2142
|
+
return t.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (a = t.lastIntValue), Rs(a) ? (t.lastIntValue = a, !0) : (t.pos = e, !1);
|
|
2143
2143
|
};
|
|
2144
|
-
function
|
|
2144
|
+
function Rs(t) {
|
|
2145
2145
|
return ft(t, !0) || t === 36 || t === 95;
|
|
2146
2146
|
}
|
|
2147
2147
|
C.regexp_eatRegExpIdentifierPart = function(t) {
|
|
2148
2148
|
var e = t.pos, s = this.options.ecmaVersion >= 11, a = t.current(s);
|
|
2149
|
-
return t.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (a = t.lastIntValue),
|
|
2149
|
+
return t.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (a = t.lastIntValue), Ms(a) ? (t.lastIntValue = a, !0) : (t.pos = e, !1);
|
|
2150
2150
|
};
|
|
2151
|
-
function
|
|
2151
|
+
function Ms(t) {
|
|
2152
2152
|
return gt(t, !0) || t === 36 || t === 95 || t === 8204 || t === 8205;
|
|
2153
2153
|
}
|
|
2154
2154
|
C.regexp_eatAtomEscape = function(t) {
|
|
@@ -2238,13 +2238,13 @@ C.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
|
|
|
2238
2238
|
) && this.regexp_eatHexDigits(t) && t.eat(
|
|
2239
2239
|
125
|
|
2240
2240
|
/* } */
|
|
2241
|
-
) &&
|
|
2241
|
+
) && Ds(t.lastIntValue))
|
|
2242
2242
|
return !0;
|
|
2243
2243
|
a && t.raise("Invalid unicode escape"), t.pos = s;
|
|
2244
2244
|
}
|
|
2245
2245
|
return !1;
|
|
2246
2246
|
};
|
|
2247
|
-
function
|
|
2247
|
+
function Ds(t) {
|
|
2248
2248
|
return t >= 0 && t <= 1114111;
|
|
2249
2249
|
}
|
|
2250
2250
|
C.regexp_eatIdentityEscape = function(t) {
|
|
@@ -2270,7 +2270,7 @@ C.regexp_eatDecimalEscape = function(t) {
|
|
|
2270
2270
|
var Li = 0, Tt = 1, ut = 2;
|
|
2271
2271
|
C.regexp_eatCharacterClassEscape = function(t) {
|
|
2272
2272
|
var e = t.current();
|
|
2273
|
-
if (
|
|
2273
|
+
if (Vs(e))
|
|
2274
2274
|
return t.lastIntValue = -1, t.advance(), Tt;
|
|
2275
2275
|
var s = !1;
|
|
2276
2276
|
if (t.switchU && this.options.ecmaVersion >= 9 && ((s = e === 80) || e === 112)) {
|
|
@@ -2288,7 +2288,7 @@ C.regexp_eatCharacterClassEscape = function(t) {
|
|
|
2288
2288
|
}
|
|
2289
2289
|
return Li;
|
|
2290
2290
|
};
|
|
2291
|
-
function
|
|
2291
|
+
function Vs(t) {
|
|
2292
2292
|
return t === 100 || t === 68 || t === 115 || t === 83 || t === 119 || t === 87;
|
|
2293
2293
|
}
|
|
2294
2294
|
C.regexp_eatUnicodePropertyValueExpression = function(t) {
|
|
@@ -2330,11 +2330,11 @@ function Oi(t) {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
C.regexp_eatUnicodePropertyValue = function(t) {
|
|
2332
2332
|
var e = 0;
|
|
2333
|
-
for (t.lastStringValue = "";
|
|
2333
|
+
for (t.lastStringValue = ""; Fs(e = t.current()); )
|
|
2334
2334
|
t.lastStringValue += bt(e), t.advance();
|
|
2335
2335
|
return t.lastStringValue !== "";
|
|
2336
2336
|
};
|
|
2337
|
-
function
|
|
2337
|
+
function Fs(t) {
|
|
2338
2338
|
return Oi(t) || pe(t);
|
|
2339
2339
|
}
|
|
2340
2340
|
C.regexp_eatLoneUnicodePropertyNameOrValue = function(t) {
|
|
@@ -2534,19 +2534,19 @@ C.regexp_eatClassSetCharacter = function(t) {
|
|
|
2534
2534
|
/* b */
|
|
2535
2535
|
) ? (t.lastIntValue = 8, !0) : (t.pos = e, !1);
|
|
2536
2536
|
var s = t.current();
|
|
2537
|
-
return s < 0 || s === t.lookahead() &&
|
|
2537
|
+
return s < 0 || s === t.lookahead() && js(s) || Bs(s) ? !1 : (t.advance(), t.lastIntValue = s, !0);
|
|
2538
2538
|
};
|
|
2539
|
-
function
|
|
2539
|
+
function js(t) {
|
|
2540
2540
|
return t === 33 || t >= 35 && t <= 38 || t >= 42 && t <= 44 || t === 46 || t >= 58 && t <= 64 || t === 94 || t === 96 || t === 126;
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function Bs(t) {
|
|
2543
2543
|
return t === 40 || t === 41 || t === 45 || t === 47 || t >= 91 && t <= 93 || t >= 123 && t <= 125;
|
|
2544
2544
|
}
|
|
2545
2545
|
C.regexp_eatClassSetReservedPunctuator = function(t) {
|
|
2546
2546
|
var e = t.current();
|
|
2547
|
-
return
|
|
2547
|
+
return Us(e) ? (t.lastIntValue = e, t.advance(), !0) : !1;
|
|
2548
2548
|
};
|
|
2549
|
-
function
|
|
2549
|
+
function Us(t) {
|
|
2550
2550
|
return t === 33 || t === 35 || t === 37 || t === 38 || t === 44 || t === 45 || t >= 58 && t <= 62 || t === 64 || t === 96 || t === 126;
|
|
2551
2551
|
}
|
|
2552
2552
|
C.regexp_eatClassControlLetter = function(t) {
|
|
@@ -2924,7 +2924,7 @@ R.readInt = function(t, e, s) {
|
|
|
2924
2924
|
}
|
|
2925
2925
|
return a && v === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === l || e != null && this.pos - l !== e ? null : d;
|
|
2926
2926
|
};
|
|
2927
|
-
function
|
|
2927
|
+
function qs(t, e) {
|
|
2928
2928
|
return e ? parseInt(t, 8) : parseFloat(t.replace(/_/g, ""));
|
|
2929
2929
|
}
|
|
2930
2930
|
function Vi(t) {
|
|
@@ -2947,7 +2947,7 @@ R.readNumber = function(t) {
|
|
|
2947
2947
|
return ++this.pos, ft(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(u.num, h);
|
|
2948
2948
|
}
|
|
2949
2949
|
s && /[89]/.test(this.input.slice(e, this.pos)) && (s = !1), a === 46 && !s && (++this.pos, this.readInt(10), a = this.input.charCodeAt(this.pos)), (a === 69 || a === 101) && !s && (a = this.input.charCodeAt(++this.pos), (a === 43 || a === 45) && ++this.pos, this.readInt(10) === null && this.raise(e, "Invalid number")), ft(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
2950
|
-
var l =
|
|
2950
|
+
var l = qs(this.input.slice(e, this.pos), s);
|
|
2951
2951
|
return this.finishToken(u.num, l);
|
|
2952
2952
|
};
|
|
2953
2953
|
R.readCodePoint = function() {
|
|
@@ -3142,16 +3142,16 @@ H.acorn = {
|
|
|
3142
3142
|
lineBreakG: oi,
|
|
3143
3143
|
nonASCIIwhitespace: Ie
|
|
3144
3144
|
};
|
|
3145
|
-
function
|
|
3145
|
+
function Hs(t, e) {
|
|
3146
3146
|
return H.parse(t, e);
|
|
3147
3147
|
}
|
|
3148
|
-
function
|
|
3148
|
+
function $s(t, e, s) {
|
|
3149
3149
|
return H.parseExpressionAt(t, e, s);
|
|
3150
3150
|
}
|
|
3151
|
-
function
|
|
3151
|
+
function Gs(t, e) {
|
|
3152
3152
|
return H.tokenizer(t, e);
|
|
3153
3153
|
}
|
|
3154
|
-
const
|
|
3154
|
+
const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3155
3155
|
__proto__: null,
|
|
3156
3156
|
Node: Xt,
|
|
3157
3157
|
Parser: H,
|
|
@@ -3169,11 +3169,11 @@ const zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3169
3169
|
lineBreak: J,
|
|
3170
3170
|
lineBreakG: oi,
|
|
3171
3171
|
nonASCIIwhitespace: Ie,
|
|
3172
|
-
parse:
|
|
3173
|
-
parseExpressionAt:
|
|
3172
|
+
parse: Hs,
|
|
3173
|
+
parseExpressionAt: $s,
|
|
3174
3174
|
tokContexts: F,
|
|
3175
3175
|
tokTypes: u,
|
|
3176
|
-
tokenizer:
|
|
3176
|
+
tokenizer: Gs,
|
|
3177
3177
|
version: ji
|
|
3178
3178
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3179
3179
|
function Xe(t, e) {
|
|
@@ -3237,9 +3237,9 @@ var st = !0;
|
|
|
3237
3237
|
function rt(t, e) {
|
|
3238
3238
|
return e === void 0 && (e = {}), new O("name", e);
|
|
3239
3239
|
}
|
|
3240
|
-
var
|
|
3241
|
-
function
|
|
3242
|
-
var e =
|
|
3240
|
+
var Ks = /* @__PURE__ */ new WeakMap();
|
|
3241
|
+
function zs(t) {
|
|
3242
|
+
var e = Ks.get(t.Parser.acorn || t);
|
|
3243
3243
|
if (!e) {
|
|
3244
3244
|
var s = { assert: rt(0, { startsExpr: st }), asserts: rt(0, { startsExpr: st }), global: rt(0, { startsExpr: st }), keyof: rt(0, { startsExpr: st }), readonly: rt(0, { startsExpr: st }), unique: rt(0, { startsExpr: st }), abstract: rt(0, { startsExpr: st }), declare: rt(0, { startsExpr: st }), enum: rt(0, { startsExpr: st }), module: rt(0, { startsExpr: st }), namespace: rt(0, { startsExpr: st }), interface: rt(0, { startsExpr: st }), type: rt(0, { startsExpr: st }) }, a = { at: new O("@"), jsxName: new O("jsxName"), jsxText: new O("jsxText", { beforeExpr: !0 }), jsxTagStart: new O("jsxTagStart", { startsExpr: !0 }), jsxTagEnd: new O("jsxTagEnd") }, h = { tc_oTag: new X("<tag", !1, !1), tc_cTag: new X("</tag", !1, !1), tc_expr: new X("<tag>...</tag>", !0, !0) }, l = new RegExp("^(?:" + Object.keys(s).join("|") + ")$");
|
|
3245
3245
|
a.jsxTagStart.updateContext = function() {
|
|
@@ -3263,10 +3263,10 @@ function Qs(t) {
|
|
|
3263
3263
|
}
|
|
3264
3264
|
return e;
|
|
3265
3265
|
}
|
|
3266
|
-
var Bt = 1024,
|
|
3266
|
+
var Bt = 1024, Xs = new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y"), Ye = new RegExp("(?=(" + Xs.source + "))\\1" + /(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source, "y"), Ut = function() {
|
|
3267
3267
|
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;
|
|
3268
3268
|
};
|
|
3269
|
-
function
|
|
3269
|
+
function Qs(t, e) {
|
|
3270
3270
|
var s = e.key.name, a = t[s], h = "true";
|
|
3271
3271
|
return e.type !== "MethodDefinition" || e.kind !== "get" && e.kind !== "set" || (h = (e.static ? "s" : "i") + e.kind), a === "iget" && h === "iset" || a === "iset" && h === "iget" || a === "sget" && h === "sset" || a === "sset" && h === "sget" ? (t[s] = "true", !1) : !!a || (t[s] = h, !1);
|
|
3272
3272
|
}
|
|
@@ -3311,7 +3311,7 @@ var A = { AbstractMethodHasImplementation: function(t) {
|
|
|
3311
3311
|
return "Single type parameter " + e + " should have a trailing comma. Example usage: <" + e + ",>.";
|
|
3312
3312
|
}, StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.", TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.", UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", GenericsEndWithComma: "Trailing comma is not allowed at the end of generics.", UnexpectedTypeAnnotation: "Did not expect a type annotation here.", UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", UnsupportedSignatureParameterKind: function(t) {
|
|
3313
3313
|
return "Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got " + t.type + ".";
|
|
3314
|
-
}, LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations." },
|
|
3314
|
+
}, LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations." }, Js = { quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: " ", iexcl: "¡", cent: "¢", pound: "£", curren: "¤", yen: "¥", brvbar: "¦", sect: "§", uml: "¨", copy: "©", ordf: "ª", laquo: "«", not: "¬", shy: "", reg: "®", macr: "¯", deg: "°", plusmn: "±", sup2: "²", sup3: "³", acute: "´", micro: "µ", para: "¶", middot: "·", cedil: "¸", sup1: "¹", ordm: "º", raquo: "»", frac14: "¼", frac12: "½", frac34: "¾", iquest: "¿", Agrave: "À", Aacute: "Á", Acirc: "Â", Atilde: "Ã", Auml: "Ä", Aring: "Å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", Eacute: "É", Ecirc: "Ê", Euml: "Ë", Igrave: "Ì", Iacute: "Í", Icirc: "Î", Iuml: "Ï", ETH: "Ð", Ntilde: "Ñ", Ograve: "Ò", Oacute: "Ó", Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", times: "×", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", Ucirc: "Û", Uuml: "Ü", Yacute: "Ý", THORN: "Þ", szlig: "ß", agrave: "à", aacute: "á", acirc: "â", atilde: "ã", auml: "ä", aring: "å", aelig: "æ", ccedil: "ç", egrave: "è", eacute: "é", ecirc: "ê", euml: "ë", igrave: "ì", iacute: "í", icirc: "î", iuml: "ï", eth: "ð", ntilde: "ñ", ograve: "ò", oacute: "ó", ocirc: "ô", otilde: "õ", ouml: "ö", divide: "÷", oslash: "ø", ugrave: "ù", uacute: "ú", ucirc: "û", uuml: "ü", yacute: "ý", thorn: "þ", yuml: "ÿ", OElig: "Œ", oelig: "œ", Scaron: "Š", scaron: "š", Yuml: "Ÿ", fnof: "ƒ", circ: "ˆ", tilde: "˜", Alpha: "Α", Beta: "Β", Gamma: "Γ", Delta: "Δ", Epsilon: "Ε", Zeta: "Ζ", Eta: "Η", Theta: "Θ", Iota: "Ι", Kappa: "Κ", Lambda: "Λ", Mu: "Μ", Nu: "Ν", Xi: "Ξ", Omicron: "Ο", Pi: "Π", Rho: "Ρ", Sigma: "Σ", Tau: "Τ", Upsilon: "Υ", Phi: "Φ", Chi: "Χ", Psi: "Ψ", Omega: "Ω", alpha: "α", beta: "β", gamma: "γ", delta: "δ", epsilon: "ε", zeta: "ζ", eta: "η", theta: "θ", iota: "ι", kappa: "κ", lambda: "λ", mu: "μ", nu: "ν", xi: "ξ", omicron: "ο", pi: "π", rho: "ρ", sigmaf: "ς", sigma: "σ", tau: "τ", upsilon: "υ", phi: "φ", chi: "χ", psi: "ψ", omega: "ω", thetasym: "ϑ", upsih: "ϒ", piv: "ϖ", ensp: " ", emsp: " ", thinsp: " ", zwnj: "", zwj: "", lrm: "", rlm: "", ndash: "–", mdash: "—", lsquo: "‘", rsquo: "’", sbquo: "‚", ldquo: "“", rdquo: "”", bdquo: "„", dagger: "†", Dagger: "‡", bull: "•", hellip: "…", permil: "‰", prime: "′", Prime: "″", lsaquo: "‹", rsaquo: "›", oline: "‾", frasl: "⁄", euro: "€", image: "ℑ", weierp: "℘", real: "ℜ", trade: "™", alefsym: "ℵ", larr: "←", uarr: "↑", rarr: "→", darr: "↓", harr: "↔", crarr: "↵", lArr: "⇐", uArr: "⇑", rArr: "⇒", dArr: "⇓", hArr: "⇔", forall: "∀", part: "∂", exist: "∃", empty: "∅", nabla: "∇", isin: "∈", notin: "∉", ni: "∋", prod: "∏", sum: "∑", minus: "−", lowast: "∗", radic: "√", prop: "∝", infin: "∞", ang: "∠", and: "∧", or: "∨", cap: "∩", cup: "∪", int: "∫", there4: "∴", sim: "∼", cong: "≅", asymp: "≈", ne: "≠", equiv: "≡", le: "≤", ge: "≥", sub: "⊂", sup: "⊃", nsub: "⊄", sube: "⊆", supe: "⊇", oplus: "⊕", otimes: "⊗", perp: "⊥", sdot: "⋅", lceil: "⌈", rceil: "⌉", lfloor: "⌊", rfloor: "⌋", lang: "〈", rang: "〉", loz: "◊", spades: "♠", clubs: "♣", hearts: "♥", diams: "♦" }, Ys = /^[\da-fA-F]+$/, Zs = /^\d+$/;
|
|
3315
3315
|
function $t(t) {
|
|
3316
3316
|
return t && (t.type === "JSXIdentifier" ? t.name : t.type === "JSXNamespacedName" ? t.namespace.name + ":" + t.name.name : t.type === "JSXMemberExpression" ? $t(t.object) + "." + $t(t.property) : void 0);
|
|
3317
3317
|
}
|
|
@@ -3319,16 +3319,16 @@ var Te = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
|
3319
3319
|
function ti(t) {
|
|
3320
3320
|
if (!t) throw new Error("Assert fail");
|
|
3321
3321
|
}
|
|
3322
|
-
function
|
|
3322
|
+
function tr(t) {
|
|
3323
3323
|
return t === "accessor";
|
|
3324
3324
|
}
|
|
3325
|
-
function
|
|
3325
|
+
function er(t) {
|
|
3326
3326
|
return t === "in" || t === "out";
|
|
3327
3327
|
}
|
|
3328
3328
|
function Se(t, e) {
|
|
3329
3329
|
return 2 | (t ? 4 : 0) | (e ? 8 : 0);
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function ir(t) {
|
|
3332
3332
|
if (t.type !== "MemberExpression") return !1;
|
|
3333
3333
|
var e = t.property;
|
|
3334
3334
|
return (!t.computed || !(e.type !== "TemplateLiteral" || e.expressions.length > 0)) && Bi(t.object);
|
|
@@ -3339,10 +3339,10 @@ function Bi(t) {
|
|
|
3339
3339
|
function ei(t) {
|
|
3340
3340
|
return t === "private" || t === "public" || t === "protected";
|
|
3341
3341
|
}
|
|
3342
|
-
function
|
|
3342
|
+
function sr(t) {
|
|
3343
3343
|
var e = {}, s = e.dts, a = s !== void 0 && s, h = e.allowSatisfies, l = h !== void 0 && h;
|
|
3344
3344
|
return function(d) {
|
|
3345
|
-
var v = d.acorn ||
|
|
3345
|
+
var v = d.acorn || Ws, g = zs(v), o = v.tokTypes, P = v.keywordTypes, N = v.isIdentifierStart, j = v.lineBreak, nt = v.isNewLine, lt = v.tokContexts, Nt = v.isIdentifierChar, I = g.tokTypes, Z = g.tokContexts, fe = g.keywordsRegExp, $i = g.tokenIsLiteralPropertyName, Gi = g.tokenIsTemplate, Wi = g.tokenIsTSDeclarationStart, V = g.tokenIsIdentifier, Jt = g.tokenIsKeywordOrIdentifier, Ki = g.tokenIsTSTypeOperator;
|
|
3346
3346
|
function zi(S, tt, z) {
|
|
3347
3347
|
z === void 0 && (z = S.length);
|
|
3348
3348
|
for (var $ = tt; $ < z; $++) {
|
|
@@ -3435,7 +3435,7 @@ function ar(t) {
|
|
|
3435
3435
|
T !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
|
|
3436
3436
|
for (var E = ++this.pos; this.pos < this.input.length && b++ < 10; ) {
|
|
3437
3437
|
if ((T = this.input[this.pos++]) === ";") {
|
|
3438
|
-
x[0] === "#" ? x[1] === "x" ? (x = x.substr(2),
|
|
3438
|
+
x[0] === "#" ? x[1] === "x" ? (x = x.substr(2), Ys.test(x) && (y = String.fromCharCode(parseInt(x, 16)))) : (x = x.substr(1), Zs.test(x) && (y = String.fromCharCode(parseInt(x, 10)))) : y = Js[x];
|
|
3439
3439
|
break;
|
|
3440
3440
|
}
|
|
3441
3441
|
x += T;
|
|
@@ -4208,7 +4208,7 @@ function ar(t) {
|
|
|
4208
4208
|
}; ; ) {
|
|
4209
4209
|
var L = this.startLoc, w = this.tsParseModifier(c.concat(f ?? []), m);
|
|
4210
4210
|
if (!w) break;
|
|
4211
|
-
ei(w) ? n.accessibility ? this.raise(this.start, A.DuplicateAccessibilityModifier()) : (T(L, w, w, "override"), T(L, w, w, "static"), T(L, w, w, "readonly"), T(L, w, w, "accessor"), b.accessibility = w, n.accessibility = w) :
|
|
4211
|
+
ei(w) ? n.accessibility ? this.raise(this.start, A.DuplicateAccessibilityModifier()) : (T(L, w, w, "override"), T(L, w, w, "static"), T(L, w, w, "readonly"), T(L, w, w, "accessor"), b.accessibility = w, n.accessibility = w) : er(w) ? n[w] ? this.raise(this.start, A.DuplicateModifier({ modifier: w })) : (T(L, w, "in", "out"), b[w] = w, n[w] = !0) : tr(w) ? n[w] ? this.raise(this.start, A.DuplicateModifier({ modifier: w })) : (E(L, w, "accessor", "readonly"), E(L, w, "accessor", "static"), E(L, w, "accessor", "override"), b[w] = w, n[w] = !0) : Object.hasOwnProperty.call(n, w) ? this.raise(this.start, A.DuplicateModifier({ modifier: w })) : (T(L, w, "static", "readonly"), T(L, w, "static", "override"), T(L, w, "override", "readonly"), T(L, w, "abstract", "override"), E(L, w, "declare", "override"), E(L, w, "static", "abstract"), b[w] = w, n[w] = !0), f != null && f.includes(w) && this.raise(this.start, x);
|
|
4212
4212
|
}
|
|
4213
4213
|
return b;
|
|
4214
4214
|
}, p.tsParseInOutModifiers = function(i) {
|
|
@@ -4553,7 +4553,7 @@ function ar(t) {
|
|
|
4553
4553
|
if (!c) return f;
|
|
4554
4554
|
for (var m, y = Je(f.declarations); !(m = y()).done; ) {
|
|
4555
4555
|
var x = m.value, b = x.init;
|
|
4556
|
-
b && (r !== "const" || x.id.typeAnnotation ? this.raise(b.start, A.InitializerNotAllowedInAmbientContext) : b.type !== "StringLiteral" && b.type !== "BooleanLiteral" && b.type !== "NumericLiteral" && b.type !== "BigIntLiteral" && (b.type !== "TemplateLiteral" || b.expressions.length > 0) && !
|
|
4556
|
+
b && (r !== "const" || x.id.typeAnnotation ? this.raise(b.start, A.InitializerNotAllowedInAmbientContext) : b.type !== "StringLiteral" && b.type !== "BooleanLiteral" && b.type !== "NumericLiteral" && b.type !== "BigIntLiteral" && (b.type !== "TemplateLiteral" || b.expressions.length > 0) && !ir(b) && this.raise(b.start, A.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
|
|
4557
4557
|
}
|
|
4558
4558
|
return f;
|
|
4559
4559
|
}, p.parseStatement = function(i, r, n) {
|
|
@@ -4970,7 +4970,7 @@ function ar(t) {
|
|
|
4970
4970
|
for (this.expect(o.braceL); this.type !== o.braceR; ) if (this.match(I.at)) x.push(this.parseDecorator());
|
|
4971
4971
|
else {
|
|
4972
4972
|
var b = this.parseClassElement(i.superClass !== null);
|
|
4973
|
-
x.length && (b.decorators = x, this.resetStartLocationFromNode(b, x[0]), x = []), b && (m.body.push(b), b.type === "MethodDefinition" && b.kind === "constructor" && b.value.type === "FunctionExpression" ? (y && this.raiseRecoverable(b.start, "Duplicate constructor in the same class"), y = !0, b.decorators && b.decorators.length > 0 && this.raise(b.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : b.key && b.key.type === "PrivateIdentifier" &&
|
|
4973
|
+
x.length && (b.decorators = x, this.resetStartLocationFromNode(b, x[0]), x = []), b && (m.body.push(b), b.type === "MethodDefinition" && b.kind === "constructor" && b.value.type === "FunctionExpression" ? (y && this.raiseRecoverable(b.start, "Duplicate constructor in the same class"), y = !0, b.decorators && b.decorators.length > 0 && this.raise(b.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : b.key && b.key.type === "PrivateIdentifier" && Qs(f, b) && this.raiseRecoverable(b.key.start, "Identifier '#" + b.key.name + "' has already been declared"));
|
|
4974
4974
|
}
|
|
4975
4975
|
return this.strict = c, this.next(), x.length && this.raise(this.start, "Decorators must be attached to a class element."), i.body = this.finishNode(m, "ClassBody"), this.exitClassBody(), this.finishNode(i, r ? "ClassDeclaration" : "ClassExpression");
|
|
4976
4976
|
} finally {
|
|
@@ -5088,7 +5088,7 @@ function ar(t) {
|
|
|
5088
5088
|
return Xi;
|
|
5089
5089
|
};
|
|
5090
5090
|
}
|
|
5091
|
-
const
|
|
5091
|
+
const rr = [
|
|
5092
5092
|
{ idPrefix: "datapos-app-nuxt", typeId: "app", isPublish: !1, uploadGroupName: void 0 },
|
|
5093
5093
|
{ idPrefix: "datapos-api", typeId: "api", isPublish: !1, uploadGroupName: void 0 },
|
|
5094
5094
|
{ idPrefix: "datapos-connector", typeId: "connector", isPublish: !0, uploadGroupName: "connectors" },
|
|
@@ -5100,8 +5100,8 @@ const nr = [
|
|
|
5100
5100
|
{ idPrefix: "datapos-shared", typeId: "shared", isPublish: !0, uploadGroupName: void 0 },
|
|
5101
5101
|
{ idPrefix: "datapos-tool", typeId: "tool", isPublish: !0, uploadGroupName: "tools" },
|
|
5102
5102
|
{ idPrefix: "eslint-config-datapos", typeId: "eslint", isPublish: !0, uploadGroupName: void 0 }
|
|
5103
|
-
],
|
|
5104
|
-
async function
|
|
5103
|
+
], ar = es(is);
|
|
5104
|
+
async function nr(t) {
|
|
5105
5105
|
let e;
|
|
5106
5106
|
try {
|
|
5107
5107
|
e = await at.readdir(t, { withFileTypes: !0 });
|
|
@@ -5121,7 +5121,7 @@ async function hr(t) {
|
|
|
5121
5121
|
);
|
|
5122
5122
|
}
|
|
5123
5123
|
function De(t) {
|
|
5124
|
-
const s = H.extend(
|
|
5124
|
+
const s = H.extend(sr()).parse(t, {
|
|
5125
5125
|
ecmaVersion: "latest",
|
|
5126
5126
|
sourceType: "module",
|
|
5127
5127
|
locations: !0
|
|
@@ -5137,14 +5137,14 @@ function De(t) {
|
|
|
5137
5137
|
async function ct(t, e, s = [], a) {
|
|
5138
5138
|
const h = `${e} ${s.join(" ")}`;
|
|
5139
5139
|
t !== void 0 && W(`${t} - exec(${h})`);
|
|
5140
|
-
const { stdout: l, stderr: d } = await
|
|
5140
|
+
const { stdout: l, stderr: d } = await ar(h);
|
|
5141
5141
|
a === void 0 ? l.trim() && console.log(l.trim()) : await at.writeFile(a, l.trim(), "utf8"), d.trim() && console.error(d.trim());
|
|
5142
5142
|
}
|
|
5143
|
-
async function
|
|
5143
|
+
async function or(t, e) {
|
|
5144
5144
|
return at.readdir(t, e);
|
|
5145
5145
|
}
|
|
5146
5146
|
function Ui(t) {
|
|
5147
|
-
const e =
|
|
5147
|
+
const e = rr.find((s) => t.startsWith(s.idPrefix));
|
|
5148
5148
|
if (!e) throw new Error(`Failed to locate module type configuration for identifier '${t}'.`);
|
|
5149
5149
|
return e;
|
|
5150
5150
|
}
|
|
@@ -5171,7 +5171,7 @@ async function Q(t) {
|
|
|
5171
5171
|
async function Et(t) {
|
|
5172
5172
|
return await at.readFile(t, "utf8");
|
|
5173
5173
|
}
|
|
5174
|
-
async function
|
|
5174
|
+
async function hr(t) {
|
|
5175
5175
|
try {
|
|
5176
5176
|
await at.unlink(t);
|
|
5177
5177
|
} catch (e) {
|
|
@@ -5180,7 +5180,7 @@ async function cr(t) {
|
|
|
5180
5180
|
}
|
|
5181
5181
|
async function dt(t, e, s = [], a = !1) {
|
|
5182
5182
|
return W(`${t} - spawn(${e} ${s.join(" ")})`), new Promise((h, l) => {
|
|
5183
|
-
|
|
5183
|
+
ss(e, s, { stdio: "inherit" }).on("close", (v) => {
|
|
5184
5184
|
v === 0 || a ? h() : l(new Error(`${e} exited with code ${v}`));
|
|
5185
5185
|
});
|
|
5186
5186
|
});
|
|
@@ -5211,7 +5211,7 @@ function Ae(t, e) {
|
|
|
5211
5211
|
else h && typeof h == "object" && typeof h.type == "string" && Ae(h, e);
|
|
5212
5212
|
}
|
|
5213
5213
|
}
|
|
5214
|
-
async function
|
|
5214
|
+
async function ur() {
|
|
5215
5215
|
const t = await Q("config.json"), e = {
|
|
5216
5216
|
body: JSON.stringify(t),
|
|
5217
5217
|
headers: { "Content-Type": "application/json" },
|
|
@@ -5230,7 +5230,7 @@ async function ii(t) {
|
|
|
5230
5230
|
async function si(t, e) {
|
|
5231
5231
|
const s = `v${t.version}`;
|
|
5232
5232
|
async function a(h, l = "") {
|
|
5233
|
-
const d = await
|
|
5233
|
+
const d = await or(h, { withFileTypes: !0 });
|
|
5234
5234
|
for (const v of d) {
|
|
5235
5235
|
const g = `${h}/${v.name}`, o = l ? `${l}/${v.name}` : v.name;
|
|
5236
5236
|
if (v.isDirectory()) continue;
|
|
@@ -5240,6 +5240,7 @@ async function si(t, e) {
|
|
|
5240
5240
|
}
|
|
5241
5241
|
await a("dist");
|
|
5242
5242
|
}
|
|
5243
|
+
const cr = /* @__PURE__ */ new Set(["createObject", "dropObject", "removeRecords", "upsertRecords"]), pr = /* @__PURE__ */ new Set(["findObject", "getReadableStream", "getRecord", "listNodes", "previewObject", "retrieveChunks", "retrieveRecords"]);
|
|
5243
5244
|
async function Mr() {
|
|
5244
5245
|
try {
|
|
5245
5246
|
vt("Build Project"), await dt("1️⃣ Bundle project", "vite", ["build"]), Pt("Project built.");
|
|
@@ -5268,7 +5269,7 @@ async function Dr() {
|
|
|
5268
5269
|
e = await lr("2️⃣", t);
|
|
5269
5270
|
}
|
|
5270
5271
|
if (await dt("3️⃣ Bundle project", "vite", ["build"]), await ct("4️⃣ Stage changes", "git", ["add", "."]), await ct("5️⃣ Commit changes", "git", ["commit", "-m", `"v${t.version}"`]), await ct("6️⃣ Push changes", "git", ["push", "origin", "main:main"]), s.typeId === "app")
|
|
5271
|
-
W("7️⃣ Register module"), await
|
|
5272
|
+
W("7️⃣ Register module"), await ur();
|
|
5272
5273
|
else if (s.typeId === "engine")
|
|
5273
5274
|
W("7️⃣ Register module"), await si(t, `datapos-engine-eu/${s.uploadGroupName}`), await ii(e);
|
|
5274
5275
|
else if (s.uploadGroupName === void 0)
|
|
@@ -5284,7 +5285,7 @@ async function Dr() {
|
|
|
5284
5285
|
await Wt(a, `registry=https://registry.npmjs.org/
|
|
5285
5286
|
//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN ?? ""}`), await dt("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]);
|
|
5286
5287
|
} finally {
|
|
5287
|
-
await
|
|
5288
|
+
await hr(a);
|
|
5288
5289
|
}
|
|
5289
5290
|
} else
|
|
5290
5291
|
W(`8️⃣ Publishing NOT required for package with type identifier of '${s.typeId}'.`);
|
|
@@ -5325,7 +5326,7 @@ async function fr(t, e) {
|
|
|
5325
5326
|
return await Fe(e, s, l, d);
|
|
5326
5327
|
}
|
|
5327
5328
|
async function Fe(t, e, s, a) {
|
|
5328
|
-
return s.length > 0 ? (console.info(`ℹ️ Implements ${s.length} operations:`), console.table(s)) : console.warn("⚠️ Implements no operations."), a === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${a}' usage.`), t.name != null && (e.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (e.version = t.version), e.operations = s, e.usageId = a, await oe("config.json", e), e;
|
|
5329
|
+
return s.length > 0 ? (console.info(`ℹ️ Implements ${s.length} operations:`), console.table(s)) : console.warn("⚠️ Implements no operations."), a === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${a}' usage.`), t.name != null && (e.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (e.version = t.version), e.operations = s, e.usageId = a ?? "unknown", await oe("config.json", e), e;
|
|
5329
5330
|
}
|
|
5330
5331
|
async function dr(t, e) {
|
|
5331
5332
|
W(`${t} Build context project configuration`);
|
|
@@ -5337,7 +5338,7 @@ async function dr(t, e) {
|
|
|
5337
5338
|
}
|
|
5338
5339
|
async function mr(t, e) {
|
|
5339
5340
|
W(`${t} Build presenter project configuration`);
|
|
5340
|
-
const [s, a] = await Promise.all([Q("config.json"), Et("src/index.ts")]), h = /* @__PURE__ */ Ee(
|
|
5341
|
+
const [s, a] = await Promise.all([Q("config.json"), Et("src/index.ts")]), h = /* @__PURE__ */ Ee(ts, s);
|
|
5341
5342
|
if (!h.success)
|
|
5342
5343
|
throw console.error("❌ Configuration is invalid:"), console.table(h.issues), new Error("Configuration is invalid.");
|
|
5343
5344
|
const l = De(a);
|
|
@@ -5354,7 +5355,7 @@ async function Hi(t, e, s = "./") {
|
|
|
5354
5355
|
function yr(t) {
|
|
5355
5356
|
let e = !1, s = !1;
|
|
5356
5357
|
for (const a of t)
|
|
5357
|
-
|
|
5358
|
+
pr.has(a) && (e = !0), cr.has(a) && (s = !0);
|
|
5358
5359
|
return e && s ? "bidirectional" : e ? "source" : s ? "destination" : "unknown";
|
|
5359
5360
|
}
|
|
5360
5361
|
const xr = {
|
|
@@ -5419,7 +5420,7 @@ const Sr = "<!-- DEPENDENCY_LICENSES_START -->", Pr = "<!-- DEPENDENCY_LICENSES_
|
|
|
5419
5420
|
async function Ur(t = [], e = !0) {
|
|
5420
5421
|
try {
|
|
5421
5422
|
vt("Document Dependencies"), await Ve();
|
|
5422
|
-
const s = t.flatMap((h) => ["--allowed", `'${h}'`]), a = ri(new
|
|
5423
|
+
const s = t.flatMap((h) => ["--allowed", `'${h}'`]), a = ri(new rs(import.meta.resolve("@datapos/datapos-development/license-report-config")));
|
|
5423
5424
|
await ct(
|
|
5424
5425
|
"1️⃣ Generate 'licenses.json' file",
|
|
5425
5426
|
"license-report",
|
|
@@ -5430,7 +5431,7 @@ async function Ur(t = [], e = !0) {
|
|
|
5430
5431
|
"license-report-recursive",
|
|
5431
5432
|
["--only=prod,peer", "--output=tree", "--recurse", "--department.value=n/a", "--licensePeriod.value=n/a", "--material.value=n/a", "--relatedTo.value=n/a"],
|
|
5432
5433
|
"licenses/licenseTree.json"
|
|
5433
|
-
), await ct("4️⃣ Check 'licenseTree.json' file", "license-report-check", ["--source", "licenses/licenseTree.json", "--output=table", ...s])) : (W("3️⃣ Skip 'licenses/licenseTree.json' file generate"), W("4️⃣ Skip 'licenses/licenseTree.json' file check")), await
|
|
5434
|
+
), await ct("4️⃣ Check 'licenseTree.json' file", "license-report-check", ["--source", "licenses/licenseTree.json", "--output=table", ...s])) : (W("3️⃣ Skip 'licenses/licenseTree.json' file generate"), W("4️⃣ Skip 'licenses/licenseTree.json' file check")), await nr("licenses/downloads"), await ct("5️⃣ Download license files", "license-downloader", [
|
|
5434
5435
|
"--source",
|
|
5435
5436
|
"licenses/licenses.json",
|
|
5436
5437
|
"--licDir",
|