@promakeai/inspector 1.7.3 → 1.7.5
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/App.d.ts.map +1 -1
- package/dist/components/ControlBox/index.d.ts +2 -1
- package/dist/components/ControlBox/index.d.ts.map +1 -1
- package/dist/components/CustomEditor/CustomEditor.d.ts.map +1 -1
- package/dist/components/DatabaseEditor/DatabaseEditor.d.ts.map +1 -1
- package/dist/components/ImageEditor/index.d.ts.map +1 -1
- package/dist/inspector.cdn.js +8 -8
- package/dist/inspector.js +7912 -7888
- package/dist/plugin.js +238 -252
- package/dist/store/useInspectorStore.d.ts +3 -1
- package/dist/store/useInspectorStore.d.ts.map +1 -1
- package/dist/utils/imageDetection.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/plugin.js
CHANGED
|
@@ -334,47 +334,43 @@ function zi() {
|
|
|
334
334
|
value: t
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Y({
|
|
338
338
|
toMessage: a,
|
|
339
339
|
code: e,
|
|
340
340
|
reasonCode: t,
|
|
341
341
|
syntaxPlugin: s
|
|
342
342
|
}) {
|
|
343
|
-
const i = t === "MissingPlugin" || t === "MissingOneOfPlugins"
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
return function r(n, o) {
|
|
356
|
-
const l = new SyntaxError();
|
|
357
|
-
return l.code = e, l.reasonCode = t, l.loc = n, l.pos = n.index, l.syntaxPlugin = s, i && (l.missingPlugin = o.missingPlugin), H(l, "clone", function(d = {}) {
|
|
358
|
-
var y;
|
|
343
|
+
const i = t === "MissingPlugin" || t === "MissingOneOfPlugins", r = {
|
|
344
|
+
AccessorCannotDeclareThisParameter: "AccesorCannotDeclareThisParameter",
|
|
345
|
+
AccessorCannotHaveTypeParameters: "AccesorCannotHaveTypeParameters",
|
|
346
|
+
ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",
|
|
347
|
+
SetAccessorCannotHaveOptionalParameter: "SetAccesorCannotHaveOptionalParameter",
|
|
348
|
+
SetAccessorCannotHaveRestParameter: "SetAccesorCannotHaveRestParameter",
|
|
349
|
+
SetAccessorCannotHaveReturnType: "SetAccesorCannotHaveReturnType"
|
|
350
|
+
};
|
|
351
|
+
return r[t] && (t = r[t]), function n(o, l) {
|
|
352
|
+
const u = new SyntaxError();
|
|
353
|
+
return u.code = e, u.reasonCode = t, u.loc = o, u.pos = o.index, u.syntaxPlugin = s, i && (u.missingPlugin = l.missingPlugin), H(u, "clone", function(y = {}) {
|
|
354
|
+
var b;
|
|
359
355
|
const {
|
|
360
|
-
line:
|
|
361
|
-
column:
|
|
362
|
-
index:
|
|
363
|
-
} = (
|
|
364
|
-
return
|
|
365
|
-
}), H(
|
|
356
|
+
line: T,
|
|
357
|
+
column: E,
|
|
358
|
+
index: F
|
|
359
|
+
} = (b = y.loc) != null ? b : o;
|
|
360
|
+
return n(new h(T, E, F), Object.assign({}, l, y.details));
|
|
361
|
+
}), H(u, "details", l), Object.defineProperty(u, "message", {
|
|
366
362
|
configurable: !0,
|
|
367
363
|
get() {
|
|
368
|
-
const
|
|
369
|
-
return this.message =
|
|
364
|
+
const d = `${a(l)} (${o.line}:${o.column})`;
|
|
365
|
+
return this.message = d, d;
|
|
370
366
|
},
|
|
371
|
-
set(
|
|
367
|
+
set(d) {
|
|
372
368
|
Object.defineProperty(this, "message", {
|
|
373
|
-
value:
|
|
369
|
+
value: d,
|
|
374
370
|
writable: !0
|
|
375
371
|
});
|
|
376
372
|
}
|
|
377
|
-
}),
|
|
373
|
+
}), u;
|
|
378
374
|
};
|
|
379
375
|
}
|
|
380
376
|
function _(a, e) {
|
|
@@ -389,7 +385,7 @@ function zi() {
|
|
|
389
385
|
} : i, {
|
|
390
386
|
message: n
|
|
391
387
|
} = r, o = g(r, z), l = typeof n == "string" ? () => n : n;
|
|
392
|
-
t[s] =
|
|
388
|
+
t[s] = Y(Object.assign({
|
|
393
389
|
code: "BABEL_PARSER_SYNTAX_ERROR",
|
|
394
390
|
reasonCode: s,
|
|
395
391
|
toMessage: l
|
|
@@ -623,13 +619,8 @@ function zi() {
|
|
|
623
619
|
finishCallExpression(t, s) {
|
|
624
620
|
const i = super.finishCallExpression(t, s);
|
|
625
621
|
if (i.callee.type === "Import") {
|
|
626
|
-
var r;
|
|
627
|
-
this.castNodeTo(i, "ImportExpression"), i.source = i.arguments[0], i.options = (r = i.arguments[1]) != null ? r : null;
|
|
628
|
-
{
|
|
629
|
-
var n;
|
|
630
|
-
i.attributes = (n = i.arguments[1]) != null ? n : null;
|
|
631
|
-
}
|
|
632
|
-
delete i.arguments, delete i.callee;
|
|
622
|
+
var r, n;
|
|
623
|
+
this.castNodeTo(i, "ImportExpression"), i.source = i.arguments[0], i.options = (r = i.arguments[1]) != null ? r : null, i.attributes = (n = i.arguments[1]) != null ? n : null, delete i.arguments, delete i.callee;
|
|
633
624
|
} else i.type === "OptionalCallExpression" ? this.castNodeTo(i, "CallExpression") : i.optional = !1;
|
|
634
625
|
return i;
|
|
635
626
|
}
|
|
@@ -706,14 +697,14 @@ function zi() {
|
|
|
706
697
|
this.token = void 0, this.preserveSpace = void 0, this.token = e, this.preserveSpace = !!t;
|
|
707
698
|
}
|
|
708
699
|
}
|
|
709
|
-
const
|
|
700
|
+
const B = {
|
|
710
701
|
brace: new yt("{"),
|
|
711
702
|
j_oTag: new yt("<tag"),
|
|
712
703
|
j_cTag: new yt("</tag"),
|
|
713
704
|
j_expr: new yt("<tag>...</tag>", !0)
|
|
714
705
|
};
|
|
715
|
-
|
|
716
|
-
const L = !0, S = !0, Rt = !0, xt = !0,
|
|
706
|
+
B.template = new yt("`", !0);
|
|
707
|
+
const L = !0, S = !0, Rt = !0, xt = !0, tt = !0, Ts = !0;
|
|
717
708
|
class oe {
|
|
718
709
|
constructor(e, t = {}) {
|
|
719
710
|
this.label = void 0, this.keyword = void 0, this.beforeExpr = void 0, this.startsExpr = void 0, this.rightAssociative = void 0, this.isLoop = void 0, this.isAssign = void 0, this.prefix = void 0, this.postfix = void 0, this.binop = void 0, this.label = e, this.keyword = t.keyword, this.beforeExpr = !!t.beforeExpr, this.startsExpr = !!t.startsExpr, this.rightAssociative = !!t.rightAssociative, this.isLoop = !!t.isLoop, this.isAssign = !!t.isAssign, this.prefix = !!t.prefix, this.postfix = !!t.postfix, this.binop = t.binop != null ? t.binop : null, this.updateContext = null;
|
|
@@ -732,14 +723,14 @@ function zi() {
|
|
|
732
723
|
});
|
|
733
724
|
}
|
|
734
725
|
let gt = -1;
|
|
735
|
-
const
|
|
726
|
+
const Q = [], Ut = [], jt = [], $t = [], Vt = [], zt = [];
|
|
736
727
|
function N(a, e = {}) {
|
|
737
728
|
var t, s, i, r;
|
|
738
|
-
return ++gt, Ut.push(a), jt.push((t = e.binop) != null ? t : -1), $t.push((s = e.beforeExpr) != null ? s : !1), Vt.push((i = e.startsExpr) != null ? i : !1), zt.push((r = e.prefix) != null ? r : !1),
|
|
729
|
+
return ++gt, Ut.push(a), jt.push((t = e.binop) != null ? t : -1), $t.push((s = e.beforeExpr) != null ? s : !1), Vt.push((i = e.startsExpr) != null ? i : !1), zt.push((r = e.prefix) != null ? r : !1), Q.push(new oe(a, e)), gt;
|
|
739
730
|
}
|
|
740
731
|
function D(a, e = {}) {
|
|
741
732
|
var t, s, i, r;
|
|
742
|
-
return ++gt, _t.set(a, gt), Ut.push(a), jt.push((t = e.binop) != null ? t : -1), $t.push((s = e.beforeExpr) != null ? s : !1), Vt.push((i = e.startsExpr) != null ? i : !1), zt.push((r = e.prefix) != null ? r : !1),
|
|
733
|
+
return ++gt, _t.set(a, gt), Ut.push(a), jt.push((t = e.binop) != null ? t : -1), $t.push((s = e.beforeExpr) != null ? s : !1), Vt.push((i = e.startsExpr) != null ? i : !1), zt.push((r = e.prefix) != null ? r : !1), Q.push(new oe("name", e)), gt;
|
|
743
734
|
}
|
|
744
735
|
const As = {
|
|
745
736
|
bracketL: N("[", {
|
|
@@ -839,18 +830,18 @@ function zi() {
|
|
|
839
830
|
isAssign: xt
|
|
840
831
|
}),
|
|
841
832
|
incDec: N("++/--", {
|
|
842
|
-
prefix:
|
|
833
|
+
prefix: tt,
|
|
843
834
|
postfix: Ts,
|
|
844
835
|
startsExpr: S
|
|
845
836
|
}),
|
|
846
837
|
bang: N("!", {
|
|
847
838
|
beforeExpr: L,
|
|
848
|
-
prefix:
|
|
839
|
+
prefix: tt,
|
|
849
840
|
startsExpr: S
|
|
850
841
|
}),
|
|
851
842
|
tilde: N("~", {
|
|
852
843
|
beforeExpr: L,
|
|
853
|
-
prefix:
|
|
844
|
+
prefix: tt,
|
|
854
845
|
startsExpr: S
|
|
855
846
|
}),
|
|
856
847
|
doubleCaret: N("^^", {
|
|
@@ -876,7 +867,7 @@ function zi() {
|
|
|
876
867
|
plusMin: N("+/-", {
|
|
877
868
|
beforeExpr: L,
|
|
878
869
|
binop: 9,
|
|
879
|
-
prefix:
|
|
870
|
+
prefix: tt,
|
|
880
871
|
startsExpr: S
|
|
881
872
|
}),
|
|
882
873
|
modulo: N("%", {
|
|
@@ -924,7 +915,7 @@ function zi() {
|
|
|
924
915
|
_switch: O("switch"),
|
|
925
916
|
_throw: O("throw", {
|
|
926
917
|
beforeExpr: L,
|
|
927
|
-
prefix:
|
|
918
|
+
prefix: tt,
|
|
928
919
|
startsExpr: S
|
|
929
920
|
}),
|
|
930
921
|
_try: O("try"),
|
|
@@ -962,17 +953,17 @@ function zi() {
|
|
|
962
953
|
}),
|
|
963
954
|
_typeof: O("typeof", {
|
|
964
955
|
beforeExpr: L,
|
|
965
|
-
prefix:
|
|
956
|
+
prefix: tt,
|
|
966
957
|
startsExpr: S
|
|
967
958
|
}),
|
|
968
959
|
_void: O("void", {
|
|
969
960
|
beforeExpr: L,
|
|
970
|
-
prefix:
|
|
961
|
+
prefix: tt,
|
|
971
962
|
startsExpr: S
|
|
972
963
|
}),
|
|
973
964
|
_delete: O("delete", {
|
|
974
965
|
beforeExpr: L,
|
|
975
|
-
prefix:
|
|
966
|
+
prefix: tt,
|
|
976
967
|
startsExpr: S
|
|
977
968
|
}),
|
|
978
969
|
_do: O("do", {
|
|
@@ -1181,7 +1172,7 @@ function zi() {
|
|
|
1181
1172
|
function Ls(a) {
|
|
1182
1173
|
return a >= 124 && a <= 130;
|
|
1183
1174
|
}
|
|
1184
|
-
function
|
|
1175
|
+
function et(a) {
|
|
1185
1176
|
return Ut[a];
|
|
1186
1177
|
}
|
|
1187
1178
|
function Et(a) {
|
|
@@ -1193,17 +1184,17 @@ function zi() {
|
|
|
1193
1184
|
function Nt(a) {
|
|
1194
1185
|
return a >= 24 && a <= 25;
|
|
1195
1186
|
}
|
|
1196
|
-
function
|
|
1197
|
-
return
|
|
1187
|
+
function Z(a) {
|
|
1188
|
+
return Q[a];
|
|
1198
1189
|
}
|
|
1199
|
-
|
|
1190
|
+
Q[8].updateContext = (a) => {
|
|
1200
1191
|
a.pop();
|
|
1201
|
-
},
|
|
1202
|
-
a.push(
|
|
1203
|
-
},
|
|
1204
|
-
a[a.length - 1] ===
|
|
1205
|
-
},
|
|
1206
|
-
a.push(
|
|
1192
|
+
}, Q[5].updateContext = Q[7].updateContext = Q[23].updateContext = (a) => {
|
|
1193
|
+
a.push(B.brace);
|
|
1194
|
+
}, Q[22].updateContext = (a) => {
|
|
1195
|
+
a[a.length - 1] === B.template ? a.pop() : a.push(B.template);
|
|
1196
|
+
}, Q[143].updateContext = (a) => {
|
|
1197
|
+
a.push(B.j_expr, B.j_oTag);
|
|
1207
1198
|
};
|
|
1208
1199
|
let Ht = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ce = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
|
|
1209
1200
|
const Os = new RegExp("[" + Ht + "]"), Ms = new RegExp("[" + Ht + ce + "]");
|
|
@@ -1688,7 +1679,7 @@ function zi() {
|
|
|
1688
1679
|
return this.expect(48), this.state.inType = t, this.finishNode(s, "TypeParameterDeclaration");
|
|
1689
1680
|
}
|
|
1690
1681
|
flowInTopLevelContext(t) {
|
|
1691
|
-
if (this.curContext() !==
|
|
1682
|
+
if (this.curContext() !== B.brace) {
|
|
1692
1683
|
const s = this.state.context;
|
|
1693
1684
|
this.state.context = [s[0]];
|
|
1694
1685
|
try {
|
|
@@ -1711,7 +1702,7 @@ function zi() {
|
|
|
1711
1702
|
for (this.state.noAnonFunctionType = !1; !this.match(48); )
|
|
1712
1703
|
t.params.push(this.flowParseType()), this.match(48) || this.expect(12);
|
|
1713
1704
|
this.state.noAnonFunctionType = i;
|
|
1714
|
-
}), this.state.inType = s, !this.state.inType && this.curContext() ===
|
|
1705
|
+
}), this.state.inType = s, !this.state.inType && this.curContext() === B.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(t, "TypeParameterInstantiation");
|
|
1715
1706
|
}
|
|
1716
1707
|
flowParseTypeParameterInstantiationCallOrNew() {
|
|
1717
1708
|
if (this.reScan_lt() !== 47) return null;
|
|
@@ -1765,7 +1756,7 @@ function zi() {
|
|
|
1765
1756
|
l.callProperties = [], l.properties = [], l.indexers = [], l.internalSlots = [];
|
|
1766
1757
|
let u, d, y = !1;
|
|
1767
1758
|
for (s && this.match(6) ? (this.expect(6), u = 9, d = !0) : (this.expect(5), u = 8, d = !1), l.exact = d; !this.match(u); ) {
|
|
1768
|
-
let T = !1, E = null,
|
|
1759
|
+
let T = !1, E = null, F = null;
|
|
1769
1760
|
const j = this.startNode();
|
|
1770
1761
|
if (r && this.isContextual(118)) {
|
|
1771
1762
|
const U = this.lookahead();
|
|
@@ -1787,9 +1778,9 @@ function zi() {
|
|
|
1787
1778
|
he(rt.type) && (U = this.state.value, this.next());
|
|
1788
1779
|
}
|
|
1789
1780
|
const ot = this.flowParseObjectTypeProperty(j, T, E, v, U, i, n ?? !d);
|
|
1790
|
-
ot === null ? (y = !0,
|
|
1781
|
+
ot === null ? (y = !0, F = this.state.lastTokStartLoc) : l.properties.push(ot);
|
|
1791
1782
|
}
|
|
1792
|
-
this.flowObjectTypeSemicolon(),
|
|
1783
|
+
this.flowObjectTypeSemicolon(), F && !this.match(8) && !this.match(9) && this.raise(k.UnexpectedExplicitInexactInObject, F);
|
|
1793
1784
|
}
|
|
1794
1785
|
this.expect(u), i && (l.inexact = y);
|
|
1795
1786
|
const b = this.finishNode(l, "ObjectTypeAnnotation");
|
|
@@ -1946,7 +1937,7 @@ function zi() {
|
|
|
1946
1937
|
return this.flowParseTypeofType();
|
|
1947
1938
|
default:
|
|
1948
1939
|
if (qt(this.state.type)) {
|
|
1949
|
-
const l =
|
|
1940
|
+
const l = et(this.state.type);
|
|
1950
1941
|
return this.next(), super.createIdentifier(s, l);
|
|
1951
1942
|
} else if (R(this.state.type))
|
|
1952
1943
|
return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(t, s, this.parseIdentifier());
|
|
@@ -2340,12 +2331,7 @@ function zi() {
|
|
|
2340
2331
|
return i && d && this.raise(k.ImportTypeShorthandOnlyInPureImport, t), (i || d) && this.checkReservedType(t.local.name, t.local.loc.start, !0), u && !i && !d && this.checkReservedWord(t.local.name, t.loc.start, !0, !0), this.finishImportSpecifier(t, "ImportSpecifier");
|
|
2341
2332
|
}
|
|
2342
2333
|
parseBindingAtom() {
|
|
2343
|
-
|
|
2344
|
-
case 78:
|
|
2345
|
-
return this.parseIdentifier(!0);
|
|
2346
|
-
default:
|
|
2347
|
-
return super.parseBindingAtom();
|
|
2348
|
-
}
|
|
2334
|
+
return this.state.type === 78 ? this.parseIdentifier(!0) : super.parseBindingAtom();
|
|
2349
2335
|
}
|
|
2350
2336
|
parseFunctionParams(t, s) {
|
|
2351
2337
|
const i = t.kind;
|
|
@@ -2372,7 +2358,7 @@ function zi() {
|
|
|
2372
2358
|
const {
|
|
2373
2359
|
context: u
|
|
2374
2360
|
} = this.state, d = u[u.length - 1];
|
|
2375
|
-
(d ===
|
|
2361
|
+
(d === B.j_oTag || d === B.j_expr) && u.pop();
|
|
2376
2362
|
}
|
|
2377
2363
|
if ((i = n) != null && i.error || this.match(47)) {
|
|
2378
2364
|
var o, l;
|
|
@@ -2386,8 +2372,8 @@ function zi() {
|
|
|
2386
2372
|
return this.resetStartLocationFromNode(j, u), j;
|
|
2387
2373
|
});
|
|
2388
2374
|
(T = E.extra) != null && T.parenthesized && b();
|
|
2389
|
-
const
|
|
2390
|
-
return
|
|
2375
|
+
const F = this.maybeUnwrapTypeCastExpression(E);
|
|
2376
|
+
return F.type !== "ArrowFunctionExpression" && b(), F.typeParameters = u, this.resetStartLocationFromNode(F, u), E;
|
|
2391
2377
|
}, r);
|
|
2392
2378
|
let y = null;
|
|
2393
2379
|
if (d.node && this.maybeUnwrapTypeCastExpression(d.node).type === "ArrowFunctionExpression") {
|
|
@@ -3107,7 +3093,7 @@ function zi() {
|
|
|
3107
3093
|
UnterminatedJsxContent: "Unterminated JSX contents.",
|
|
3108
3094
|
UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"
|
|
3109
3095
|
});
|
|
3110
|
-
function
|
|
3096
|
+
function st(a) {
|
|
3111
3097
|
return a ? a.type === "JSXOpeningFragment" || a.type === "JSXClosingFragment" : !1;
|
|
3112
3098
|
}
|
|
3113
3099
|
function ct(a) {
|
|
@@ -3138,8 +3124,6 @@ function zi() {
|
|
|
3138
3124
|
case 38:
|
|
3139
3125
|
t += this.input.slice(s, this.state.pos), t += this.jsxReadEntity(), s = this.state.pos;
|
|
3140
3126
|
break;
|
|
3141
|
-
case 62:
|
|
3142
|
-
case 125:
|
|
3143
3127
|
default:
|
|
3144
3128
|
lt(i) ? (t += this.input.slice(s, this.state.pos), t += this.jsxReadNewLine(!0), s = this.state.pos) : ++this.state.pos;
|
|
3145
3129
|
}
|
|
@@ -3194,7 +3178,7 @@ function zi() {
|
|
|
3194
3178
|
}
|
|
3195
3179
|
jsxParseIdentifier() {
|
|
3196
3180
|
const t = this.startNode();
|
|
3197
|
-
return this.match(141) ? t.name = this.state.value : qt(this.state.type) ? t.name =
|
|
3181
|
+
return this.match(141) ? t.name = this.state.value : qt(this.state.type) ? t.name = et(this.state.type) : this.unexpected(), this.next(), this.finishNode(t, "JSXIdentifier");
|
|
3198
3182
|
}
|
|
3199
3183
|
jsxParseNamespacedName() {
|
|
3200
3184
|
const t = this.state.startLoc, s = this.jsxParseIdentifier();
|
|
@@ -3217,7 +3201,7 @@ function zi() {
|
|
|
3217
3201
|
let t;
|
|
3218
3202
|
switch (this.state.type) {
|
|
3219
3203
|
case 5:
|
|
3220
|
-
return t = this.startNode(), this.setContext(
|
|
3204
|
+
return t = this.startNode(), this.setContext(B.brace), this.next(), t = this.jsxParseExpressionContainer(t, B.j_oTag), t.expression.type === "JSXEmptyExpression" && this.raise(nt.AttributeIsEmpty, t), t;
|
|
3221
3205
|
case 143:
|
|
3222
3206
|
case 134:
|
|
3223
3207
|
return this.parseExprAtom();
|
|
@@ -3230,7 +3214,7 @@ function zi() {
|
|
|
3230
3214
|
return this.finishNodeAt(t, "JSXEmptyExpression", this.state.startLoc);
|
|
3231
3215
|
}
|
|
3232
3216
|
jsxParseSpreadChild(t) {
|
|
3233
|
-
return this.next(), t.expression = this.parseExpression(), this.setContext(
|
|
3217
|
+
return this.next(), t.expression = this.parseExpression(), this.setContext(B.j_expr), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(t, "JSXSpreadChild");
|
|
3234
3218
|
}
|
|
3235
3219
|
jsxParseExpressionContainer(t, s) {
|
|
3236
3220
|
if (this.match(8))
|
|
@@ -3243,7 +3227,7 @@ function zi() {
|
|
|
3243
3227
|
}
|
|
3244
3228
|
jsxParseAttribute() {
|
|
3245
3229
|
const t = this.startNode();
|
|
3246
|
-
return this.match(5) ? (this.setContext(
|
|
3230
|
+
return this.match(5) ? (this.setContext(B.brace), this.next(), this.expect(21), t.argument = this.parseMaybeAssignAllowIn(), this.setContext(B.j_oTag), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(t, "JSXSpreadAttribute")) : (t.name = this.jsxParseNamespacedName(), t.value = this.eat(29) ? this.jsxParseAttributeValue() : null, this.finishNode(t, "JSXAttribute"));
|
|
3247
3231
|
}
|
|
3248
3232
|
jsxParseOpeningElementAt(t) {
|
|
3249
3233
|
const s = this.startNodeAt(t);
|
|
@@ -3277,21 +3261,21 @@ function zi() {
|
|
|
3277
3261
|
break;
|
|
3278
3262
|
case 5: {
|
|
3279
3263
|
const o = this.startNode();
|
|
3280
|
-
this.setContext(
|
|
3264
|
+
this.setContext(B.brace), this.next(), this.match(21) ? i.push(this.jsxParseSpreadChild(o)) : i.push(this.jsxParseExpressionContainer(o, B.j_expr));
|
|
3281
3265
|
break;
|
|
3282
3266
|
}
|
|
3283
3267
|
default:
|
|
3284
3268
|
this.unexpected();
|
|
3285
3269
|
}
|
|
3286
|
-
|
|
3270
|
+
st(r) && !st(n) && n !== null ? this.raise(nt.MissingClosingTagFragment, n) : !st(r) && st(n) ? this.raise(nt.MissingClosingTagElement, n, {
|
|
3287
3271
|
openingTagName: ct(r.name)
|
|
3288
|
-
}) : !
|
|
3272
|
+
}) : !st(r) && !st(n) && ct(n.name) !== ct(r.name) && this.raise(nt.MissingClosingTagElement, n, {
|
|
3289
3273
|
openingTagName: ct(r.name)
|
|
3290
3274
|
});
|
|
3291
3275
|
}
|
|
3292
|
-
if (
|
|
3276
|
+
if (st(r) ? (s.openingFragment = r, s.closingFragment = n) : (s.openingElement = r, s.closingElement = n), s.children = i, this.match(47))
|
|
3293
3277
|
throw this.raise(nt.UnwrappedAdjacentJSXElements, this.state.startLoc);
|
|
3294
|
-
return
|
|
3278
|
+
return st(r) ? this.finishNode(s, "JSXFragment") : this.finishNode(s, "JSXElement");
|
|
3295
3279
|
}
|
|
3296
3280
|
jsxParseElement() {
|
|
3297
3281
|
const t = this.state.startLoc;
|
|
@@ -3311,11 +3295,11 @@ function zi() {
|
|
|
3311
3295
|
}
|
|
3312
3296
|
getTokenFromCode(t) {
|
|
3313
3297
|
const s = this.curContext();
|
|
3314
|
-
if (s ===
|
|
3298
|
+
if (s === B.j_expr) {
|
|
3315
3299
|
this.jsxReadToken();
|
|
3316
3300
|
return;
|
|
3317
3301
|
}
|
|
3318
|
-
if (s ===
|
|
3302
|
+
if (s === B.j_oTag || s === B.j_cTag) {
|
|
3319
3303
|
if (W(t)) {
|
|
3320
3304
|
this.jsxReadWord();
|
|
3321
3305
|
return;
|
|
@@ -3324,7 +3308,7 @@ function zi() {
|
|
|
3324
3308
|
++this.state.pos, this.finishToken(144);
|
|
3325
3309
|
return;
|
|
3326
3310
|
}
|
|
3327
|
-
if ((t === 34 || t === 39) && s ===
|
|
3311
|
+
if ((t === 34 || t === 39) && s === B.j_oTag) {
|
|
3328
3312
|
this.jsxReadString(t);
|
|
3329
3313
|
return;
|
|
3330
3314
|
}
|
|
@@ -3341,12 +3325,12 @@ function zi() {
|
|
|
3341
3325
|
type: i
|
|
3342
3326
|
} = this.state;
|
|
3343
3327
|
if (i === 56 && t === 143)
|
|
3344
|
-
s.splice(-2, 2,
|
|
3328
|
+
s.splice(-2, 2, B.j_cTag), this.state.canStartJSXElement = !1;
|
|
3345
3329
|
else if (i === 143)
|
|
3346
|
-
s.push(
|
|
3330
|
+
s.push(B.j_oTag);
|
|
3347
3331
|
else if (i === 144) {
|
|
3348
3332
|
const r = s[s.length - 1];
|
|
3349
|
-
r ===
|
|
3333
|
+
r === B.j_oTag && t === 56 || r === B.j_cTag ? (s.pop(), this.state.canStartJSXElement = s[s.length - 1] === B.j_expr) : (this.setContext(B.j_expr), this.state.canStartJSXElement = !0);
|
|
3350
3334
|
} else
|
|
3351
3335
|
this.state.canStartJSXElement = Ss(i);
|
|
3352
3336
|
}
|
|
@@ -3487,7 +3471,7 @@ function zi() {
|
|
|
3487
3471
|
function bt(a, e) {
|
|
3488
3472
|
a.innerComments === void 0 ? a.innerComments = e : a.innerComments.unshift(...e);
|
|
3489
3473
|
}
|
|
3490
|
-
function
|
|
3474
|
+
function X(a, e, t) {
|
|
3491
3475
|
let s = null, i = e.length;
|
|
3492
3476
|
for (; s === null && i > 0; )
|
|
3493
3477
|
s = e[--i];
|
|
@@ -3535,15 +3519,14 @@ function zi() {
|
|
|
3535
3519
|
switch (i.type) {
|
|
3536
3520
|
case "ObjectExpression":
|
|
3537
3521
|
case "ObjectPattern":
|
|
3538
|
-
|
|
3539
|
-
st(i, i.properties, e);
|
|
3522
|
+
X(i, i.properties, e);
|
|
3540
3523
|
break;
|
|
3541
3524
|
case "CallExpression":
|
|
3542
3525
|
case "OptionalCallExpression":
|
|
3543
|
-
|
|
3526
|
+
X(i, i.arguments, e);
|
|
3544
3527
|
break;
|
|
3545
3528
|
case "ImportExpression":
|
|
3546
|
-
|
|
3529
|
+
X(i, [i.source, (t = i.options) != null ? t : null], e);
|
|
3547
3530
|
break;
|
|
3548
3531
|
case "FunctionDeclaration":
|
|
3549
3532
|
case "FunctionExpression":
|
|
@@ -3551,25 +3534,33 @@ function zi() {
|
|
|
3551
3534
|
case "ObjectMethod":
|
|
3552
3535
|
case "ClassMethod":
|
|
3553
3536
|
case "ClassPrivateMethod":
|
|
3554
|
-
|
|
3537
|
+
X(i, i.params, e);
|
|
3555
3538
|
break;
|
|
3556
3539
|
case "ArrayExpression":
|
|
3557
3540
|
case "ArrayPattern":
|
|
3558
|
-
|
|
3559
|
-
st(i, i.elements, e);
|
|
3541
|
+
X(i, i.elements, e);
|
|
3560
3542
|
break;
|
|
3561
3543
|
case "ExportNamedDeclaration":
|
|
3562
3544
|
case "ImportDeclaration":
|
|
3563
|
-
|
|
3545
|
+
X(i, i.specifiers, e);
|
|
3564
3546
|
break;
|
|
3565
3547
|
case "TSEnumDeclaration":
|
|
3566
|
-
|
|
3548
|
+
X(i, i.members, e);
|
|
3567
3549
|
break;
|
|
3568
3550
|
case "TSEnumBody":
|
|
3569
|
-
|
|
3551
|
+
X(i, i.members, e);
|
|
3570
3552
|
break;
|
|
3571
|
-
default:
|
|
3553
|
+
default: {
|
|
3554
|
+
if (i.type === "RecordExpression") {
|
|
3555
|
+
X(i, i.properties, e);
|
|
3556
|
+
break;
|
|
3557
|
+
}
|
|
3558
|
+
if (i.type === "TupleExpression") {
|
|
3559
|
+
X(i, i.elements, e);
|
|
3560
|
+
break;
|
|
3561
|
+
}
|
|
3572
3562
|
bt(i, s);
|
|
3563
|
+
}
|
|
3573
3564
|
}
|
|
3574
3565
|
else
|
|
3575
3566
|
bt(i, s);
|
|
@@ -3615,7 +3606,7 @@ function zi() {
|
|
|
3615
3606
|
this.flags = 1024, this.startIndex = void 0, this.curLine = void 0, this.lineStart = void 0, this.startLoc = void 0, this.endLoc = void 0, this.errors = [], this.potentialArrowAt = -1, this.noArrowAt = [], this.noArrowParamsConversionAt = [], this.topicContext = {
|
|
3616
3607
|
maxNumOfResolvableTopics: 0,
|
|
3617
3608
|
maxTopicIndex: null
|
|
3618
|
-
}, this.labels = [], this.commentsLen = 0, this.commentStack = [], this.pos = 0, this.type = 140, this.value = null, this.start = 0, this.end = 0, this.lastTokEndLoc = null, this.lastTokStartLoc = null, this.context = [
|
|
3609
|
+
}, this.labels = [], this.commentsLen = 0, this.commentStack = [], this.pos = 0, this.type = 140, this.value = null, this.start = 0, this.end = 0, this.lastTokEndLoc = null, this.lastTokStartLoc = null, this.context = [B.brace], this.firstInvalidTemplateEscapePos = null, this.strictErrors = /* @__PURE__ */ new Map(), this.tokensLength = 0;
|
|
3619
3610
|
}
|
|
3620
3611
|
get strict() {
|
|
3621
3612
|
return (this.flags & 1) > 0;
|
|
@@ -3846,7 +3837,7 @@ function zi() {
|
|
|
3846
3837
|
function Te(a, e, t, s, i, r, n, o, l, u) {
|
|
3847
3838
|
const d = e, y = i === 16 ? Pe.hex : Pe.decBinOct, b = i === 16 ? Lt.hex : i === 10 ? Lt.dec : i === 8 ? Lt.oct : Lt.bin;
|
|
3848
3839
|
let T = !1, E = 0;
|
|
3849
|
-
for (let
|
|
3840
|
+
for (let F = 0, j = r ?? 1 / 0; F < j; ++F) {
|
|
3850
3841
|
const v = a.charCodeAt(e);
|
|
3851
3842
|
let U;
|
|
3852
3843
|
if (v === 95 && o !== "bail") {
|
|
@@ -4573,14 +4564,14 @@ function zi() {
|
|
|
4573
4564
|
}
|
|
4574
4565
|
readWord(e) {
|
|
4575
4566
|
const t = this.readWord1(e), s = _t.get(t);
|
|
4576
|
-
s !== void 0 ? this.finishToken(s,
|
|
4567
|
+
s !== void 0 ? this.finishToken(s, et(s)) : this.finishToken(132, t);
|
|
4577
4568
|
}
|
|
4578
4569
|
checkKeywordEscapes() {
|
|
4579
4570
|
const {
|
|
4580
4571
|
type: e
|
|
4581
4572
|
} = this.state;
|
|
4582
4573
|
qt(e) && this.state.containsEsc && this.raise(f.InvalidEscapedReservedWord, this.state.startLoc, {
|
|
4583
|
-
reservedWord:
|
|
4574
|
+
reservedWord: et(e)
|
|
4584
4575
|
});
|
|
4585
4576
|
}
|
|
4586
4577
|
raise(e, t, s = {}) {
|
|
@@ -4602,7 +4593,7 @@ function zi() {
|
|
|
4602
4593
|
}
|
|
4603
4594
|
unexpected(e, t) {
|
|
4604
4595
|
throw this.raise(f.UnexpectedToken, e ?? this.state.startLoc, {
|
|
4605
|
-
expected: t ?
|
|
4596
|
+
expected: t ? et(t) : null
|
|
4606
4597
|
});
|
|
4607
4598
|
}
|
|
4608
4599
|
expectPlugin(e, t) {
|
|
@@ -5236,13 +5227,13 @@ function zi() {
|
|
|
5236
5227
|
}
|
|
5237
5228
|
let T, E;
|
|
5238
5229
|
typeof b == "string" ? (T = b, E = u === "ParenthesizedExpression") : [T, E] = b;
|
|
5239
|
-
const
|
|
5230
|
+
const F = u === "ArrayPattern" || u === "ObjectPattern" ? {
|
|
5240
5231
|
type: u
|
|
5241
5232
|
} : t, j = e[T];
|
|
5242
5233
|
if (Array.isArray(j))
|
|
5243
5234
|
for (const v of j)
|
|
5244
|
-
v && this.checkLVal(v,
|
|
5245
|
-
else j && this.checkLVal(j,
|
|
5235
|
+
v && this.checkLVal(v, F, s, i, r, E, !0);
|
|
5236
|
+
else j && this.checkLVal(j, F, s, i, r, E, o);
|
|
5246
5237
|
}
|
|
5247
5238
|
checkIdentifier(e, t, s = !1) {
|
|
5248
5239
|
this.state.strict && (s ? me(e.name, this.inModule) : de(e.name)) && (t === 64 ? this.raise(f.StrictEvalArguments, e, {
|
|
@@ -5691,11 +5682,8 @@ function zi() {
|
|
|
5691
5682
|
tsParseMappedType() {
|
|
5692
5683
|
const t = this.startNode();
|
|
5693
5684
|
this.expect(5), this.match(53) ? (t.readonly = this.state.value, this.next(), this.expectContextual(122)) : this.eatContextual(122) && (t.readonly = !0), this.expect(0);
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
s.name = this.tsParseTypeParameterName(), s.constraint = this.tsExpectThenParseType(58), t.typeParameter = this.finishNode(s, "TSTypeParameter");
|
|
5697
|
-
}
|
|
5698
|
-
return t.nameType = this.eatContextual(93) ? this.tsParseType() : null, this.expect(3), this.match(53) ? (t.optional = this.state.value, this.next(), this.expect(17)) : this.eat(17) && (t.optional = !0), t.typeAnnotation = this.tsTryParseType(), this.semicolon(), this.expect(8), this.finishNode(t, "TSMappedType");
|
|
5685
|
+
const s = this.startNode();
|
|
5686
|
+
return s.name = this.tsParseTypeParameterName(), s.constraint = this.tsExpectThenParseType(58), t.typeParameter = this.finishNode(s, "TSTypeParameter"), t.nameType = this.eatContextual(93) ? this.tsParseType() : null, this.expect(3), this.match(53) ? (t.optional = this.state.value, this.next(), this.expect(17)) : this.eat(17) && (t.optional = !0), t.typeAnnotation = this.tsTryParseType(), this.semicolon(), this.expect(8), this.finishNode(t, "TSMappedType");
|
|
5699
5687
|
}
|
|
5700
5688
|
tsParseTupleType() {
|
|
5701
5689
|
const t = this.startNode();
|
|
@@ -5759,10 +5747,8 @@ function zi() {
|
|
|
5759
5747
|
return this.finishNode(t, "TSLiteralType");
|
|
5760
5748
|
}
|
|
5761
5749
|
tsParseTemplateLiteralType() {
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
return t.literal = super.parseTemplate(!1), this.finishNode(t, "TSLiteralType");
|
|
5765
|
-
}
|
|
5750
|
+
const t = this.startNode();
|
|
5751
|
+
return t.literal = super.parseTemplate(!1), this.finishNode(t, "TSLiteralType");
|
|
5766
5752
|
}
|
|
5767
5753
|
parseTemplateSubstitution() {
|
|
5768
5754
|
return this.state.inType ? this.tsParseType() : super.parseTemplateSubstitution();
|
|
@@ -5971,10 +5957,8 @@ function zi() {
|
|
|
5971
5957
|
}
|
|
5972
5958
|
tsParseHeritageClause(t) {
|
|
5973
5959
|
const s = this.state.startLoc, i = this.tsParseDelimitedList("HeritageClauseElement", () => {
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
return r.expression = this.tsParseEntityName(3), this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSExpressionWithTypeArguments");
|
|
5977
|
-
}
|
|
5960
|
+
const r = this.startNode();
|
|
5961
|
+
return r.expression = this.tsParseEntityName(3), this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSExpressionWithTypeArguments");
|
|
5978
5962
|
});
|
|
5979
5963
|
return i.length || this.raise(I.EmptyHeritageClauseType, s, {
|
|
5980
5964
|
token: t
|
|
@@ -5996,7 +5980,7 @@ function zi() {
|
|
|
5996
5980
|
}), this.semicolon(), this.finishNode(t, "TSTypeAliasDeclaration");
|
|
5997
5981
|
}
|
|
5998
5982
|
tsInTopLevelContext(t) {
|
|
5999
|
-
if (this.curContext() !==
|
|
5983
|
+
if (this.curContext() !== B.brace) {
|
|
6000
5984
|
const s = this.state.context;
|
|
6001
5985
|
this.state.context = [s[0]];
|
|
6002
5986
|
try {
|
|
@@ -6192,7 +6176,7 @@ function zi() {
|
|
|
6192
6176
|
}
|
|
6193
6177
|
tsParseTypeArguments() {
|
|
6194
6178
|
const t = this.startNode();
|
|
6195
|
-
return t.params = this.tsInType(() => this.tsInTopLevelContext(() => (this.expect(47), this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this))))), t.params.length === 0 ? this.raise(I.EmptyTypeArguments, t) : !this.state.inType && this.curContext() ===
|
|
6179
|
+
return t.params = this.tsInType(() => this.tsInTopLevelContext(() => (this.expect(47), this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this))))), t.params.length === 0 ? this.raise(I.EmptyTypeArguments, t) : !this.state.inType && this.curContext() === B.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(t, "TSTypeParameterInstantiation");
|
|
6196
6180
|
}
|
|
6197
6181
|
tsIsDeclarationStart() {
|
|
6198
6182
|
return Ls(this.state.type);
|
|
@@ -6281,7 +6265,7 @@ function zi() {
|
|
|
6281
6265
|
return b.callee = t, b.arguments = this.parseCallExpressionArguments(), this.tsCheckForInvalidTypeCasts(b.arguments), b.typeParameters = u, r.optionalChainMember && (b.optional = n), this.finishCallExpression(b, r.optionalChainMember);
|
|
6282
6266
|
}
|
|
6283
6267
|
const d = this.state.type;
|
|
6284
|
-
if (d === 48 || d === 52 || d !== 10 && Pt(d) && !this.hasPrecedingLineBreak())
|
|
6268
|
+
if (d === 48 || d === 52 || d !== 10 && d !== 93 && d !== 120 && Pt(d) && !this.hasPrecedingLineBreak())
|
|
6285
6269
|
return;
|
|
6286
6270
|
const y = this.startNodeAt(s);
|
|
6287
6271
|
return y.expression = t, y.typeParameters = u, this.finishNode(y, "TSInstantiationExpression");
|
|
@@ -6560,7 +6544,14 @@ function zi() {
|
|
|
6560
6544
|
t.type !== "TSDeclareMethod" && (t.type === "MethodDefinition" && t.value.body == null || super.declareClassPrivateMethodInScope(t, s));
|
|
6561
6545
|
}
|
|
6562
6546
|
parseClassSuper(t) {
|
|
6563
|
-
super.parseClassSuper(t), t.superClass
|
|
6547
|
+
if (super.parseClassSuper(t), t.superClass)
|
|
6548
|
+
if (t.superClass.type === "TSInstantiationExpression") {
|
|
6549
|
+
const s = t.superClass, i = s.expression;
|
|
6550
|
+
this.takeSurroundingComments(i, i.start, i.end);
|
|
6551
|
+
const r = s.typeParameters;
|
|
6552
|
+
this.takeSurroundingComments(r, r.start, r.end), t.superClass = i, t.superTypeParameters = r;
|
|
6553
|
+
} else (this.match(47) || this.match(51)) && (t.superTypeParameters = this.tsParseTypeArgumentsInExpression());
|
|
6554
|
+
this.eatContextual(113) && (t.implements = this.tsParseHeritageClause("implements"));
|
|
6564
6555
|
}
|
|
6565
6556
|
parseObjPropValue(t, s, i, r, n, o, l) {
|
|
6566
6557
|
const u = this.tsTryParseTypeParameters(this.tsParseConstModifier);
|
|
@@ -6585,18 +6576,18 @@ function zi() {
|
|
|
6585
6576
|
if (u = this.state.clone(), d = this.tryParse(() => super.parseMaybeAssign(t, s), u), !d.error) return d.node;
|
|
6586
6577
|
const {
|
|
6587
6578
|
context: E
|
|
6588
|
-
} = this.state,
|
|
6589
|
-
(
|
|
6579
|
+
} = this.state, F = E[E.length - 1];
|
|
6580
|
+
(F === B.j_oTag || F === B.j_expr) && E.pop();
|
|
6590
6581
|
}
|
|
6591
6582
|
if (!((i = d) != null && i.error) && !this.match(47))
|
|
6592
6583
|
return super.parseMaybeAssign(t, s);
|
|
6593
6584
|
(!u || u === this.state) && (u = this.state.clone());
|
|
6594
6585
|
let b;
|
|
6595
6586
|
const T = this.tryParse((E) => {
|
|
6596
|
-
var
|
|
6587
|
+
var F, j;
|
|
6597
6588
|
b = this.tsParseTypeParameters(this.tsParseConstModifier);
|
|
6598
6589
|
const v = super.parseMaybeAssign(t, s);
|
|
6599
|
-
return (v.type !== "ArrowFunctionExpression" || (
|
|
6590
|
+
return (v.type !== "ArrowFunctionExpression" || (F = v.extra) != null && F.parenthesized) && E(), ((j = b) == null ? void 0 : j.params.length) !== 0 && this.resetStartLocationFromNode(v, b), v.typeParameters = b, v;
|
|
6600
6591
|
}, u);
|
|
6601
6592
|
if (!T.error && !T.aborted)
|
|
6602
6593
|
return b && this.reportReservedArrowTypeParam(b), T.node;
|
|
@@ -6858,7 +6849,7 @@ function zi() {
|
|
|
6858
6849
|
t[b] = u ? "type" : "value", d && this.eatContextual(93) && (t[n] = s ? this.parseIdentifier() : this.parseModuleExportName()), t[n] || (t[n] = this.cloneIdentifier(t[r])), s && this.checkIdentifier(t[n], u ? 4098 : 4096);
|
|
6859
6850
|
}
|
|
6860
6851
|
fillOptionalPropertiesForTSESLint(t) {
|
|
6861
|
-
var s, i, r, n, o, l, u, d, y, b, T, E,
|
|
6852
|
+
var s, i, r, n, o, l, u, d, y, b, T, E, F, j, v, U, ot, rt, Fe, Be, Re, _e, Ue, je, $e, Ve, ze, qe, He, Ke, Je, We, Xe, Ge, Ye, Qe, Ze, ts, es, ss, is, rs, as, ns, os, hs, ls, cs;
|
|
6862
6853
|
switch (t.type) {
|
|
6863
6854
|
case "ExpressionStatement":
|
|
6864
6855
|
(s = t.directive) != null || (t.directive = void 0);
|
|
@@ -6884,7 +6875,7 @@ function zi() {
|
|
|
6884
6875
|
(b = t.declare) != null || (t.declare = !1), (T = t.returnType) != null || (t.returnType = void 0), (E = t.typeParameters) != null || (t.typeParameters = void 0);
|
|
6885
6876
|
return;
|
|
6886
6877
|
case "Property":
|
|
6887
|
-
(
|
|
6878
|
+
(F = t.optional) != null || (t.optional = !1);
|
|
6888
6879
|
return;
|
|
6889
6880
|
case "TSMethodSignature":
|
|
6890
6881
|
case "TSPropertySignature":
|
|
@@ -7049,7 +7040,8 @@ function zi() {
|
|
|
7049
7040
|
return this.input.charCodeAt(i) === 37 && this.input.charCodeAt(i + 1) === 37;
|
|
7050
7041
|
}
|
|
7051
7042
|
verifyBreakContinue(t, s) {
|
|
7052
|
-
|
|
7043
|
+
var i;
|
|
7044
|
+
((i = t.label) == null ? void 0 : i.type) !== "Placeholder" && super.verifyBreakContinue(t, s);
|
|
7053
7045
|
}
|
|
7054
7046
|
parseExpressionStatement(t, s) {
|
|
7055
7047
|
var i;
|
|
@@ -7098,7 +7090,7 @@ function zi() {
|
|
|
7098
7090
|
isExportDefaultSpecifier() {
|
|
7099
7091
|
if (this.match(65)) {
|
|
7100
7092
|
const t = this.nextTokenStart();
|
|
7101
|
-
if (this.isUnparsedContextual(t, "from") && this.input.startsWith(
|
|
7093
|
+
if (this.isUnparsedContextual(t, "from") && this.input.startsWith(et(133), this.nextTokenStartSince(t + 4)))
|
|
7102
7094
|
return !0;
|
|
7103
7095
|
}
|
|
7104
7096
|
return super.isExportDefaultSpecifier();
|
|
@@ -7167,6 +7159,7 @@ function zi() {
|
|
|
7167
7159
|
throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`);
|
|
7168
7160
|
}
|
|
7169
7161
|
if (s === "hack") {
|
|
7162
|
+
var t;
|
|
7170
7163
|
if (a.has("placeholders"))
|
|
7171
7164
|
throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");
|
|
7172
7165
|
if (a.has("v8intrinsic"))
|
|
@@ -7176,11 +7169,8 @@ function zi() {
|
|
|
7176
7169
|
const r = Le.map((n) => `"${n}"`).join(", ");
|
|
7177
7170
|
throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${r}.`);
|
|
7178
7171
|
}
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
if (i === "#" && ((t = a.get("recordAndTuple")) == null ? void 0 : t.syntaxType) === "hash")
|
|
7182
|
-
throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple", a.get("recordAndTuple")])}\`.`);
|
|
7183
|
-
}
|
|
7172
|
+
if (i === "#" && ((t = a.get("recordAndTuple")) == null ? void 0 : t.syntaxType) === "hash")
|
|
7173
|
+
throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple", a.get("recordAndTuple")])}\`.`);
|
|
7184
7174
|
} else if (s === "smart" && ((e = a.get("recordAndTuple")) == null ? void 0 : e.syntaxType) === "hash")
|
|
7185
7175
|
throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple", a.get("recordAndTuple")])}\`.`);
|
|
7186
7176
|
}
|
|
@@ -7192,7 +7182,7 @@ function zi() {
|
|
|
7192
7182
|
}
|
|
7193
7183
|
if (a.has("importAssertions") && a.has("deprecatedImportAssert"))
|
|
7194
7184
|
throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");
|
|
7195
|
-
if (
|
|
7185
|
+
if (a.has("deprecatedImportAssert") || a.has("importAttributes") && a.get("importAttributes").deprecatedAssertSyntax && a.set("deprecatedImportAssert", {}), a.has("recordAndTuple")) {
|
|
7196
7186
|
const s = a.get("recordAndTuple").syntaxType;
|
|
7197
7187
|
if (s != null) {
|
|
7198
7188
|
const i = ["hash", "bar"];
|
|
@@ -7605,14 +7595,12 @@ function zi() {
|
|
|
7605
7595
|
throw W(r) || r === 62 ? this.expectOnePlugin(["jsx", "flow", "typescript"]) : this.unexpected();
|
|
7606
7596
|
}
|
|
7607
7597
|
default:
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
return this.parseObjectLike(this.state.type === 6 ? 9 : 8, !1, !0);
|
|
7615
|
-
}
|
|
7598
|
+
if (i === 137)
|
|
7599
|
+
return this.parseDecimalLiteral(this.state.value);
|
|
7600
|
+
if (i === 2 || i === 1)
|
|
7601
|
+
return this.parseArrayLike(this.state.type === 2 ? 4 : 3, !0);
|
|
7602
|
+
if (i === 6 || i === 7)
|
|
7603
|
+
return this.parseObjectLike(this.state.type === 6 ? 9 : 8, !1, !0);
|
|
7616
7604
|
if (R(i)) {
|
|
7617
7605
|
if (this.isContextual(127) && this.lookaheadInLineCharCode() === 123)
|
|
7618
7606
|
return this.parseModuleExpression();
|
|
@@ -7647,14 +7635,14 @@ function zi() {
|
|
|
7647
7635
|
if (this.testTopicReferenceConfiguration(s, t, i))
|
|
7648
7636
|
return s === "hack" ? (this.topicReferenceIsAllowedInCurrentContext() || this.raise(f.PipeTopicUnbound, t), this.registerTopicReference(), this.finishNode(e, "TopicReference")) : (this.topicReferenceIsAllowedInCurrentContext() || this.raise(f.PrimaryTopicNotAllowed, t), this.registerTopicReference(), this.finishNode(e, "PipelinePrimaryTopicReference"));
|
|
7649
7637
|
throw this.raise(f.PipeTopicUnconfiguredToken, t, {
|
|
7650
|
-
token:
|
|
7638
|
+
token: et(i)
|
|
7651
7639
|
});
|
|
7652
7640
|
}
|
|
7653
7641
|
testTopicReferenceConfiguration(e, t, s) {
|
|
7654
7642
|
switch (e) {
|
|
7655
7643
|
case "hack":
|
|
7656
7644
|
return this.hasPlugin(["pipelineOperator", {
|
|
7657
|
-
topicToken:
|
|
7645
|
+
topicToken: et(s)
|
|
7658
7646
|
}]);
|
|
7659
7647
|
case "smart":
|
|
7660
7648
|
return s === 27;
|
|
@@ -8296,81 +8284,79 @@ function zi() {
|
|
|
8296
8284
|
type: r
|
|
8297
8285
|
} = i;
|
|
8298
8286
|
if (typeof r == "number") {
|
|
8299
|
-
{
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
continue;
|
|
8371
|
-
}
|
|
8287
|
+
if (r === 139) {
|
|
8288
|
+
const {
|
|
8289
|
+
loc: n,
|
|
8290
|
+
start: o,
|
|
8291
|
+
value: l,
|
|
8292
|
+
end: u
|
|
8293
|
+
} = i, d = o + 1, y = p(n.start, 1);
|
|
8294
|
+
a.splice(s, 1, new it({
|
|
8295
|
+
type: Z(27),
|
|
8296
|
+
value: "#",
|
|
8297
|
+
start: o,
|
|
8298
|
+
end: d,
|
|
8299
|
+
startLoc: n.start,
|
|
8300
|
+
endLoc: y
|
|
8301
|
+
}), new it({
|
|
8302
|
+
type: Z(132),
|
|
8303
|
+
value: l,
|
|
8304
|
+
start: d,
|
|
8305
|
+
end: u,
|
|
8306
|
+
startLoc: y,
|
|
8307
|
+
endLoc: n.end
|
|
8308
|
+
})), s++;
|
|
8309
|
+
continue;
|
|
8310
|
+
}
|
|
8311
|
+
if (Nt(r)) {
|
|
8312
|
+
const {
|
|
8313
|
+
loc: n,
|
|
8314
|
+
start: o,
|
|
8315
|
+
value: l,
|
|
8316
|
+
end: u
|
|
8317
|
+
} = i, d = o + 1, y = p(n.start, 1);
|
|
8318
|
+
let b;
|
|
8319
|
+
e.charCodeAt(o - t) === 96 ? b = new it({
|
|
8320
|
+
type: Z(22),
|
|
8321
|
+
value: "`",
|
|
8322
|
+
start: o,
|
|
8323
|
+
end: d,
|
|
8324
|
+
startLoc: n.start,
|
|
8325
|
+
endLoc: y
|
|
8326
|
+
}) : b = new it({
|
|
8327
|
+
type: Z(8),
|
|
8328
|
+
value: "}",
|
|
8329
|
+
start: o,
|
|
8330
|
+
end: d,
|
|
8331
|
+
startLoc: n.start,
|
|
8332
|
+
endLoc: y
|
|
8333
|
+
});
|
|
8334
|
+
let T, E, F, j;
|
|
8335
|
+
r === 24 ? (E = u - 1, F = p(n.end, -1), T = l === null ? null : l.slice(1, -1), j = new it({
|
|
8336
|
+
type: Z(22),
|
|
8337
|
+
value: "`",
|
|
8338
|
+
start: E,
|
|
8339
|
+
end: u,
|
|
8340
|
+
startLoc: F,
|
|
8341
|
+
endLoc: n.end
|
|
8342
|
+
})) : (E = u - 2, F = p(n.end, -2), T = l === null ? null : l.slice(1, -2), j = new it({
|
|
8343
|
+
type: Z(23),
|
|
8344
|
+
value: "${",
|
|
8345
|
+
start: E,
|
|
8346
|
+
end: u,
|
|
8347
|
+
startLoc: F,
|
|
8348
|
+
endLoc: n.end
|
|
8349
|
+
})), a.splice(s, 1, b, new it({
|
|
8350
|
+
type: Z(20),
|
|
8351
|
+
value: T,
|
|
8352
|
+
start: d,
|
|
8353
|
+
end: E,
|
|
8354
|
+
startLoc: y,
|
|
8355
|
+
endLoc: F
|
|
8356
|
+
}), j), s += 2;
|
|
8357
|
+
continue;
|
|
8372
8358
|
}
|
|
8373
|
-
i.type =
|
|
8359
|
+
i.type = Z(r);
|
|
8374
8360
|
}
|
|
8375
8361
|
}
|
|
8376
8362
|
return a;
|
|
@@ -8889,9 +8875,9 @@ function zi() {
|
|
|
8889
8875
|
this.isNonstaticConstructor(r) && this.raise(f.ConstructorIsGenerator, r.key), this.pushClassMethod(e, r, !0, !1, !1, !1);
|
|
8890
8876
|
return;
|
|
8891
8877
|
}
|
|
8892
|
-
const b = !this.state.containsEsc && R(this.state.type), T = this.parseClassElementName(t), E = b ? T.name : null,
|
|
8878
|
+
const b = !this.state.containsEsc && R(this.state.type), T = this.parseClassElementName(t), E = b ? T.name : null, F = this.isPrivateName(T), j = this.state.startLoc;
|
|
8893
8879
|
if (this.parsePostMemberNameModifiers(y), this.isClassMethod()) {
|
|
8894
|
-
if (d.kind = "method",
|
|
8880
|
+
if (d.kind = "method", F) {
|
|
8895
8881
|
this.pushClassPrivateMethod(e, n, !1, !1);
|
|
8896
8882
|
return;
|
|
8897
8883
|
}
|
|
@@ -8899,7 +8885,7 @@ function zi() {
|
|
|
8899
8885
|
let U = !1;
|
|
8900
8886
|
v && (r.kind = "constructor", s.hadConstructor && !this.hasPlugin("typescript") && this.raise(f.DuplicateConstructor, T), v && this.hasPlugin("typescript") && t.override && this.raise(f.OverrideOnConstructor, T), s.hadConstructor = !0, U = s.hadSuperClass), this.pushClassMethod(e, r, !1, !1, v, U);
|
|
8901
8887
|
} else if (this.isClassProperty())
|
|
8902
|
-
|
|
8888
|
+
F ? this.pushClassPrivateProperty(e, l) : this.pushClassProperty(e, o);
|
|
8903
8889
|
else if (E === "async" && !this.isLineTerminator()) {
|
|
8904
8890
|
this.resetPreviousNodeTrailingComments(T);
|
|
8905
8891
|
const v = this.eat(55);
|
|
@@ -8914,7 +8900,7 @@ function zi() {
|
|
|
8914
8900
|
this.expectPlugin("decoratorAutoAccessors"), this.resetPreviousNodeTrailingComments(T);
|
|
8915
8901
|
const v = this.match(139);
|
|
8916
8902
|
this.parseClassElementName(o), this.pushClassAccessorProperty(e, u, v);
|
|
8917
|
-
} else this.isLineTerminator() ?
|
|
8903
|
+
} else this.isLineTerminator() ? F ? this.pushClassPrivateProperty(e, l) : this.pushClassProperty(e, o) : this.unexpected();
|
|
8918
8904
|
}
|
|
8919
8905
|
parseClassElementName(e) {
|
|
8920
8906
|
const {
|
|
@@ -9401,7 +9387,7 @@ function zi() {
|
|
|
9401
9387
|
function Ui(a) {
|
|
9402
9388
|
const e = {};
|
|
9403
9389
|
for (const t of Object.keys(a))
|
|
9404
|
-
e[t] =
|
|
9390
|
+
e[t] = Z(a[t]);
|
|
9405
9391
|
return e;
|
|
9406
9392
|
}
|
|
9407
9393
|
const ji = Ui(As);
|
|
@@ -10179,7 +10165,7 @@ class nr extends ar {
|
|
|
10179
10165
|
function ys(g) {
|
|
10180
10166
|
return g !== null && typeof g == "object" && "type" in g && typeof g.type == "string";
|
|
10181
10167
|
}
|
|
10182
|
-
function
|
|
10168
|
+
function G(g, { enter: h, leave: c }) {
|
|
10183
10169
|
return new nr(h, c).visit(g, null);
|
|
10184
10170
|
}
|
|
10185
10171
|
function It(g) {
|
|
@@ -10213,7 +10199,7 @@ function or(g) {
|
|
|
10213
10199
|
}
|
|
10214
10200
|
function hr(g, h) {
|
|
10215
10201
|
let c = !1;
|
|
10216
|
-
return
|
|
10202
|
+
return G(g, {
|
|
10217
10203
|
enter(p) {
|
|
10218
10204
|
if (!c) {
|
|
10219
10205
|
if (p.type === "MemberExpression" && p.property?.type === "Identifier" && p.property?.name === "id") {
|
|
@@ -10230,7 +10216,7 @@ function gs(g) {
|
|
|
10230
10216
|
}
|
|
10231
10217
|
function lr(g) {
|
|
10232
10218
|
const h = [];
|
|
10233
|
-
return
|
|
10219
|
+
return G(g, {
|
|
10234
10220
|
enter(c) {
|
|
10235
10221
|
if (c.type === "VariableDeclarator" && c.init?.type === "CallExpression" && c.init.callee?.type === "Identifier" && c.init.callee.name === "useStaticText") {
|
|
10236
10222
|
const p = c.init.arguments;
|
|
@@ -10258,7 +10244,7 @@ function cr(g) {
|
|
|
10258
10244
|
getContact: "contact",
|
|
10259
10245
|
getForm: "forms"
|
|
10260
10246
|
};
|
|
10261
|
-
return
|
|
10247
|
+
return G(g, {
|
|
10262
10248
|
enter(p) {
|
|
10263
10249
|
if (p.type === "VariableDeclarator" && p.init?.type === "CallExpression" && p.init.callee?.type === "Identifier" && p.init.callee.name === "useSiteConfig" && p.id?.type === "ObjectPattern") {
|
|
10264
10250
|
for (const m of p.id.properties || [])
|
|
@@ -10276,7 +10262,7 @@ function cr(g) {
|
|
|
10276
10262
|
}
|
|
10277
10263
|
function ur(g) {
|
|
10278
10264
|
const h = /* @__PURE__ */ new Set();
|
|
10279
|
-
return
|
|
10265
|
+
return G(g, {
|
|
10280
10266
|
enter(c) {
|
|
10281
10267
|
c.type === "VariableDeclarator" && c.id?.type === "Identifier" && c.init?.type === "ArrayExpression" && h.add(c.id.name);
|
|
10282
10268
|
}
|
|
@@ -10284,7 +10270,7 @@ function ur(g) {
|
|
|
10284
10270
|
}
|
|
10285
10271
|
function pr(g) {
|
|
10286
10272
|
const h = [];
|
|
10287
|
-
return
|
|
10273
|
+
return G(g, {
|
|
10288
10274
|
enter(c) {
|
|
10289
10275
|
c.type === "JSXElement" && h.push(c);
|
|
10290
10276
|
}
|
|
@@ -10292,7 +10278,7 @@ function pr(g) {
|
|
|
10292
10278
|
}
|
|
10293
10279
|
function fr(g, h, c) {
|
|
10294
10280
|
const p = ur(g);
|
|
10295
|
-
|
|
10281
|
+
G(g, {
|
|
10296
10282
|
enter(m) {
|
|
10297
10283
|
if (m.type === "CallExpression" && m.callee?.type === "MemberExpression" && m.callee.property?.type === "Identifier" && m.callee.property.name === "map") {
|
|
10298
10284
|
const x = or(m.callee.object);
|
|
@@ -10321,13 +10307,13 @@ function fr(g, h, c) {
|
|
|
10321
10307
|
z = _[0];
|
|
10322
10308
|
}
|
|
10323
10309
|
if (z.type !== "JSXElement") return;
|
|
10324
|
-
const H = pr(z),
|
|
10310
|
+
const H = pr(z), Y = It(x);
|
|
10325
10311
|
for (const _ of H) {
|
|
10326
10312
|
const f = _.openingElement;
|
|
10327
10313
|
if (!f) continue;
|
|
10328
10314
|
const K = Bt(f, h);
|
|
10329
10315
|
if (K === null) continue;
|
|
10330
|
-
const dt = _ === z ? ` data-source-table="${
|
|
10316
|
+
const dt = _ === z ? ` data-source-table="${Y}" data-source-id={${M}.id}` : ` data-source-id={${M}.id}`;
|
|
10331
10317
|
c.has(K) || c.set(K, []), c.get(K).push(dt);
|
|
10332
10318
|
}
|
|
10333
10319
|
}
|
|
@@ -10338,7 +10324,7 @@ function dr(g, h, c, p) {
|
|
|
10338
10324
|
const m = c.filter((C) => C.type === "lang");
|
|
10339
10325
|
if (m.length === 0) return;
|
|
10340
10326
|
const x = m[0].file, P = It(x), w = /* @__PURE__ */ new Set();
|
|
10341
|
-
|
|
10327
|
+
G(g, {
|
|
10342
10328
|
enter(C) {
|
|
10343
10329
|
if (C.type === "JSXElement" && C.openingElement) {
|
|
10344
10330
|
const M = C.openingElement, V = Bt(M, h);
|
|
@@ -10352,16 +10338,16 @@ function dr(g, h, c, p) {
|
|
|
10352
10338
|
const A = /* @__PURE__ */ new Map();
|
|
10353
10339
|
for (const C of m)
|
|
10354
10340
|
A.set(C.name, C);
|
|
10355
|
-
|
|
10341
|
+
G(g, {
|
|
10356
10342
|
enter(C, M) {
|
|
10357
10343
|
if (C.type === "JSXExpressionContainer" && M?.type === "JSXElement") {
|
|
10358
10344
|
const V = C.expression, $ = Ps(V, A);
|
|
10359
10345
|
if ($.length === 0 || (M.children || []).some(
|
|
10360
10346
|
(K) => K.type === "JSXElement" || K.type === "JSXFragment"
|
|
10361
10347
|
)) return;
|
|
10362
|
-
const
|
|
10363
|
-
if (!
|
|
10364
|
-
const _ = Bt(
|
|
10348
|
+
const Y = M.openingElement;
|
|
10349
|
+
if (!Y) return;
|
|
10350
|
+
const _ = Bt(Y, h);
|
|
10365
10351
|
if (_ === null) return;
|
|
10366
10352
|
const f = $[0];
|
|
10367
10353
|
if (f) {
|
|
@@ -10379,7 +10365,7 @@ function mr(g, h, c, p) {
|
|
|
10379
10365
|
for (const w of m)
|
|
10380
10366
|
x.set(w.name, w);
|
|
10381
10367
|
const P = /* @__PURE__ */ new Map();
|
|
10382
|
-
|
|
10368
|
+
G(g, {
|
|
10383
10369
|
enter(w, A) {
|
|
10384
10370
|
if (w.type === "JSXExpressionContainer" && A?.type === "JSXElement") {
|
|
10385
10371
|
const C = w.expression, M = Ps(C, x);
|
|
@@ -10391,11 +10377,11 @@ function mr(g, h, c, p) {
|
|
|
10391
10377
|
const H = Bt(z, h);
|
|
10392
10378
|
if (H === null) return;
|
|
10393
10379
|
P.has(H) || P.set(H, /* @__PURE__ */ new Set());
|
|
10394
|
-
const
|
|
10380
|
+
const Y = P.get(H);
|
|
10395
10381
|
for (const _ of M) {
|
|
10396
10382
|
const f = `${_.binding.file}:${_.key}`;
|
|
10397
|
-
if (
|
|
10398
|
-
|
|
10383
|
+
if (Y.has(f)) continue;
|
|
10384
|
+
Y.add(f);
|
|
10399
10385
|
const K = It(_.binding.file), ht = It(_.key), dt = ` data-content-file="${K}" data-content-key="${ht}"`;
|
|
10400
10386
|
p.has(H) || p.set(H, []), p.get(H).push(dt);
|
|
10401
10387
|
}
|
|
@@ -10405,7 +10391,7 @@ function mr(g, h, c, p) {
|
|
|
10405
10391
|
}
|
|
10406
10392
|
function Ps(g, h) {
|
|
10407
10393
|
const c = [];
|
|
10408
|
-
return
|
|
10394
|
+
return G(g, {
|
|
10409
10395
|
enter(p) {
|
|
10410
10396
|
if (p.type === "CallExpression" && p.callee?.type === "Identifier") {
|
|
10411
10397
|
const m = p.callee.name, x = h.get(m);
|