@lithent/hmr-parser 0.2.1 → 0.2.2
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/lithentHmrParser.mjs +439 -399
- package/dist/lithentHmrParser.mjs.map +1 -1
- package/dist/lithentHmrParser.umd.js +65 -25
- package/dist/lithentHmrParser.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/strings.ts +50 -10
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var rn = 44, sn = 59,
|
|
2
|
-
for (let t = 0; t <
|
|
3
|
-
const e =
|
|
4
|
-
|
|
1
|
+
var rn = 44, sn = 59, _s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Mi = new Uint8Array(64), an = new Uint8Array(128);
|
|
2
|
+
for (let t = 0; t < _s.length; t++) {
|
|
3
|
+
const e = _s.charCodeAt(t);
|
|
4
|
+
Mi[t] = e, an[e] = t;
|
|
5
5
|
}
|
|
6
6
|
function We(t, e, r) {
|
|
7
7
|
let s = e - r;
|
|
8
8
|
s = s < 0 ? -s << 1 | 1 : s << 1;
|
|
9
9
|
do {
|
|
10
10
|
let i = s & 31;
|
|
11
|
-
s >>>= 5, s > 0 && (i |= 32), t.write(
|
|
11
|
+
s >>>= 5, s > 0 && (i |= 32), t.write(Mi[i]);
|
|
12
12
|
} while (s > 0);
|
|
13
13
|
return e;
|
|
14
14
|
}
|
|
15
|
-
var
|
|
15
|
+
var Ms = 1024 * 16, Bs = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? {
|
|
16
16
|
decode(t) {
|
|
17
17
|
return Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString();
|
|
18
18
|
}
|
|
@@ -25,11 +25,11 @@ var _s = 1024 * 16, Bs = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDeco
|
|
|
25
25
|
}
|
|
26
26
|
}, nn = class {
|
|
27
27
|
constructor() {
|
|
28
|
-
this.pos = 0, this.out = "", this.buffer = new Uint8Array(
|
|
28
|
+
this.pos = 0, this.out = "", this.buffer = new Uint8Array(Ms);
|
|
29
29
|
}
|
|
30
30
|
write(t) {
|
|
31
31
|
const { buffer: e } = this;
|
|
32
|
-
e[this.pos++] = t, this.pos ===
|
|
32
|
+
e[this.pos++] = t, this.pos === Ms && (this.out += Bs.decode(e), this.pos = 0);
|
|
33
33
|
}
|
|
34
34
|
flush() {
|
|
35
35
|
const { buffer: t, out: e, pos: r } = this;
|
|
@@ -50,9 +50,9 @@ function on(t) {
|
|
|
50
50
|
}
|
|
51
51
|
return e.flush();
|
|
52
52
|
}
|
|
53
|
-
class
|
|
53
|
+
class Mt {
|
|
54
54
|
constructor(e) {
|
|
55
|
-
this.bits = e instanceof
|
|
55
|
+
this.bits = e instanceof Mt ? e.bits.slice() : [];
|
|
56
56
|
}
|
|
57
57
|
add(e) {
|
|
58
58
|
this.bits[e >> 5] |= 1 << (e & 31);
|
|
@@ -256,7 +256,7 @@ class jt {
|
|
|
256
256
|
byEnd: { writable: !0, value: {} },
|
|
257
257
|
filename: { writable: !0, value: r.filename },
|
|
258
258
|
indentExclusionRanges: { writable: !0, value: r.indentExclusionRanges },
|
|
259
|
-
sourcemapLocations: { writable: !0, value: new
|
|
259
|
+
sourcemapLocations: { writable: !0, value: new Mt() },
|
|
260
260
|
storedNames: { writable: !0, value: {} },
|
|
261
261
|
indentStr: { writable: !0, value: void 0 },
|
|
262
262
|
ignoreList: { writable: !0, value: r.ignoreList },
|
|
@@ -290,7 +290,7 @@ class jt {
|
|
|
290
290
|
const i = r.next, a = i && i.clone();
|
|
291
291
|
a && (s.next = a, a.previous = s, s = a), r = i;
|
|
292
292
|
}
|
|
293
|
-
return e.lastChunk = s, this.indentExclusionRanges && (e.indentExclusionRanges = this.indentExclusionRanges.slice()), e.sourcemapLocations = new
|
|
293
|
+
return e.lastChunk = s, this.indentExclusionRanges && (e.indentExclusionRanges = this.indentExclusionRanges.slice()), e.sourcemapLocations = new Mt(this.sourcemapLocations), e.intro = this.intro, e.outro = this.outro, e;
|
|
294
294
|
}
|
|
295
295
|
generateDecodedMap(e) {
|
|
296
296
|
e = e || {};
|
|
@@ -665,6 +665,7 @@ const Bi = (t, e) => {
|
|
|
665
665
|
const __lithentModuleId = new URL(import.meta.url).pathname;
|
|
666
666
|
const __lithentBoundaryStoreKey = \`__lithent_hmr_boundary__\${__lithentModuleId}\`;
|
|
667
667
|
const __lithentDisposeStoreKey = \`__lithent_hmr_dispose__\${__lithentModuleId}\`;
|
|
668
|
+
const __lithentInvalidateCountKey = \`__lithent_hmr_invalidate_count__\${__lithentModuleId}\`;
|
|
668
669
|
const __lithentGlobalStore =
|
|
669
670
|
typeof globalThis === 'object'
|
|
670
671
|
? globalThis
|
|
@@ -738,6 +739,44 @@ const __lithentModuleHotStore =
|
|
|
738
739
|
|
|
739
740
|
const __lithentHmrTargets = ${JSON.stringify(Array.from(r))};
|
|
740
741
|
|
|
742
|
+
const __lithentGetInvalidateCount = () => {
|
|
743
|
+
return (__lithentGlobalStore && __lithentGlobalStore[__lithentInvalidateCountKey]) || 0;
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
const __lithentIncrementInvalidateCount = () => {
|
|
747
|
+
if (__lithentGlobalStore) {
|
|
748
|
+
const current = __lithentGetInvalidateCount();
|
|
749
|
+
__lithentGlobalStore[__lithentInvalidateCountKey] = current + 1;
|
|
750
|
+
return current + 1;
|
|
751
|
+
}
|
|
752
|
+
return 0;
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
const __lithentResetInvalidateCount = () => {
|
|
756
|
+
if (__lithentGlobalStore) {
|
|
757
|
+
__lithentGlobalStore[__lithentInvalidateCountKey] = 0;
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
const __lithentSafeInvalidate = (reason) => {
|
|
762
|
+
const MAX_INVALIDATE_ATTEMPTS = 3;
|
|
763
|
+
const count = __lithentIncrementInvalidateCount();
|
|
764
|
+
|
|
765
|
+
if (count >= MAX_INVALIDATE_ATTEMPTS) {
|
|
766
|
+
console.warn(
|
|
767
|
+
\`[Lithent HMR] 전체 리프레시를 \${count}번 시도했지만 계속 실패합니다. 컴포넌트가 마운트되지 않았거나 다른 문제가 있을 수 있습니다. 페이지를 수동으로 새로고침해주세요.\`,
|
|
768
|
+
reason
|
|
769
|
+
);
|
|
770
|
+
return;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
console.warn(
|
|
774
|
+
\`[Lithent HMR] 변경된 경계를 적용하지 못해 전체 리프레시합니다. (시도 \${count}/\${MAX_INVALIDATE_ATTEMPTS})\`,
|
|
775
|
+
reason
|
|
776
|
+
);
|
|
777
|
+
import.meta.hot?.invalidate?.();
|
|
778
|
+
};
|
|
779
|
+
|
|
741
780
|
const __lithentSetupHmrHooks = () => {
|
|
742
781
|
if (!import.meta.hot) {
|
|
743
782
|
return;
|
|
@@ -769,7 +808,9 @@ const __lithentSetupHmrHooks = () => {
|
|
|
769
808
|
}
|
|
770
809
|
}
|
|
771
810
|
|
|
772
|
-
if (
|
|
811
|
+
if (applied) {
|
|
812
|
+
__lithentResetInvalidateCount();
|
|
813
|
+
} else {
|
|
773
814
|
if (missing.length && __lithentModuleHotStore) {
|
|
774
815
|
queueMicrotask(() => {
|
|
775
816
|
let retried = false;
|
|
@@ -779,19 +820,15 @@ const __lithentSetupHmrHooks = () => {
|
|
|
779
820
|
retried = true;
|
|
780
821
|
}
|
|
781
822
|
}
|
|
782
|
-
if (
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
);
|
|
786
|
-
import.meta.hot?.invalidate?.();
|
|
823
|
+
if (retried) {
|
|
824
|
+
__lithentResetInvalidateCount();
|
|
825
|
+
} else {
|
|
826
|
+
__lithentSafeInvalidate(\`missing components: \${missing.join(', ')}\`);
|
|
787
827
|
}
|
|
788
828
|
});
|
|
789
829
|
return;
|
|
790
830
|
}
|
|
791
|
-
|
|
792
|
-
'[Lithent HMR] 변경된 경계를 적용하지 못해 전체 리프레시합니다.'
|
|
793
|
-
);
|
|
794
|
-
import.meta.hot?.invalidate?.();
|
|
831
|
+
__lithentSafeInvalidate('no components applied');
|
|
795
832
|
}
|
|
796
833
|
});
|
|
797
834
|
|
|
@@ -808,6 +845,9 @@ const __lithentSetupHmrHooks = () => {
|
|
|
808
845
|
if (disposeApp) {
|
|
809
846
|
__lithentGlobalStore[__lithentDisposeStoreKey] = disposeApp;
|
|
810
847
|
}
|
|
848
|
+
|
|
849
|
+
// Reset invalidate count on dispose to allow fresh attempts on next load
|
|
850
|
+
__lithentResetInvalidateCount();
|
|
811
851
|
}
|
|
812
852
|
});
|
|
813
853
|
};
|
|
@@ -1479,20 +1519,20 @@ class Fi {
|
|
|
1479
1519
|
}
|
|
1480
1520
|
}
|
|
1481
1521
|
const Rr = /* @__PURE__ */ new Map();
|
|
1482
|
-
function
|
|
1522
|
+
function Y(t, e = {}) {
|
|
1483
1523
|
e.keyword = t;
|
|
1484
|
-
const r =
|
|
1524
|
+
const r = _(t, e);
|
|
1485
1525
|
return Rr.set(t, r), r;
|
|
1486
1526
|
}
|
|
1487
1527
|
function se(t, e) {
|
|
1488
|
-
return
|
|
1528
|
+
return _(t, {
|
|
1489
1529
|
beforeExpr: $,
|
|
1490
1530
|
binop: e
|
|
1491
1531
|
});
|
|
1492
1532
|
}
|
|
1493
1533
|
let st = -1;
|
|
1494
1534
|
const me = [], jr = [], Kr = [], Ur = [], Vr = [], $r = [];
|
|
1495
|
-
function
|
|
1535
|
+
function _(t, e = {}) {
|
|
1496
1536
|
var r, s, i, a;
|
|
1497
1537
|
return ++st, jr.push(t), Kr.push((r = e.binop) != null ? r : -1), Ur.push((s = e.beforeExpr) != null ? s : !1), Vr.push((i = e.startsExpr) != null ? i : !1), $r.push((a = e.prefix) != null ? a : !1), me.push(new Fi(t, e)), st;
|
|
1498
1538
|
}
|
|
@@ -1501,121 +1541,121 @@ function V(t, e = {}) {
|
|
|
1501
1541
|
return ++st, Rr.set(t, st), jr.push(t), Kr.push((r = e.binop) != null ? r : -1), Ur.push((s = e.beforeExpr) != null ? s : !1), Vr.push((i = e.startsExpr) != null ? i : !1), $r.push((a = e.prefix) != null ? a : !1), me.push(new Fi("name", e)), st;
|
|
1502
1542
|
}
|
|
1503
1543
|
const On = {
|
|
1504
|
-
bracketL:
|
|
1544
|
+
bracketL: _("[", {
|
|
1505
1545
|
beforeExpr: $,
|
|
1506
1546
|
startsExpr: w
|
|
1507
1547
|
}),
|
|
1508
|
-
bracketHashL:
|
|
1548
|
+
bracketHashL: _("#[", {
|
|
1509
1549
|
beforeExpr: $,
|
|
1510
1550
|
startsExpr: w
|
|
1511
1551
|
}),
|
|
1512
|
-
bracketBarL:
|
|
1552
|
+
bracketBarL: _("[|", {
|
|
1513
1553
|
beforeExpr: $,
|
|
1514
1554
|
startsExpr: w
|
|
1515
1555
|
}),
|
|
1516
|
-
bracketR:
|
|
1517
|
-
bracketBarR:
|
|
1518
|
-
braceL:
|
|
1556
|
+
bracketR: _("]"),
|
|
1557
|
+
bracketBarR: _("|]"),
|
|
1558
|
+
braceL: _("{", {
|
|
1519
1559
|
beforeExpr: $,
|
|
1520
1560
|
startsExpr: w
|
|
1521
1561
|
}),
|
|
1522
|
-
braceBarL:
|
|
1562
|
+
braceBarL: _("{|", {
|
|
1523
1563
|
beforeExpr: $,
|
|
1524
1564
|
startsExpr: w
|
|
1525
1565
|
}),
|
|
1526
|
-
braceHashL:
|
|
1566
|
+
braceHashL: _("#{", {
|
|
1527
1567
|
beforeExpr: $,
|
|
1528
1568
|
startsExpr: w
|
|
1529
1569
|
}),
|
|
1530
|
-
braceR:
|
|
1531
|
-
braceBarR:
|
|
1532
|
-
parenL:
|
|
1570
|
+
braceR: _("}"),
|
|
1571
|
+
braceBarR: _("|}"),
|
|
1572
|
+
parenL: _("(", {
|
|
1533
1573
|
beforeExpr: $,
|
|
1534
1574
|
startsExpr: w
|
|
1535
1575
|
}),
|
|
1536
|
-
parenR:
|
|
1537
|
-
comma:
|
|
1576
|
+
parenR: _(")"),
|
|
1577
|
+
comma: _(",", {
|
|
1538
1578
|
beforeExpr: $
|
|
1539
1579
|
}),
|
|
1540
|
-
semi:
|
|
1580
|
+
semi: _(";", {
|
|
1541
1581
|
beforeExpr: $
|
|
1542
1582
|
}),
|
|
1543
|
-
colon:
|
|
1583
|
+
colon: _(":", {
|
|
1544
1584
|
beforeExpr: $
|
|
1545
1585
|
}),
|
|
1546
|
-
doubleColon:
|
|
1586
|
+
doubleColon: _("::", {
|
|
1547
1587
|
beforeExpr: $
|
|
1548
1588
|
}),
|
|
1549
|
-
dot:
|
|
1550
|
-
question:
|
|
1589
|
+
dot: _("."),
|
|
1590
|
+
question: _("?", {
|
|
1551
1591
|
beforeExpr: $
|
|
1552
1592
|
}),
|
|
1553
|
-
questionDot:
|
|
1554
|
-
arrow:
|
|
1593
|
+
questionDot: _("?."),
|
|
1594
|
+
arrow: _("=>", {
|
|
1555
1595
|
beforeExpr: $
|
|
1556
1596
|
}),
|
|
1557
|
-
template:
|
|
1558
|
-
ellipsis:
|
|
1597
|
+
template: _("template"),
|
|
1598
|
+
ellipsis: _("...", {
|
|
1559
1599
|
beforeExpr: $
|
|
1560
1600
|
}),
|
|
1561
|
-
backQuote:
|
|
1601
|
+
backQuote: _("`", {
|
|
1562
1602
|
startsExpr: w
|
|
1563
1603
|
}),
|
|
1564
|
-
dollarBraceL:
|
|
1604
|
+
dollarBraceL: _("${", {
|
|
1565
1605
|
beforeExpr: $,
|
|
1566
1606
|
startsExpr: w
|
|
1567
1607
|
}),
|
|
1568
|
-
templateTail:
|
|
1608
|
+
templateTail: _("...`", {
|
|
1569
1609
|
startsExpr: w
|
|
1570
1610
|
}),
|
|
1571
|
-
templateNonTail:
|
|
1611
|
+
templateNonTail: _("...${", {
|
|
1572
1612
|
beforeExpr: $,
|
|
1573
1613
|
startsExpr: w
|
|
1574
1614
|
}),
|
|
1575
|
-
at:
|
|
1576
|
-
hash:
|
|
1615
|
+
at: _("@"),
|
|
1616
|
+
hash: _("#", {
|
|
1577
1617
|
startsExpr: w
|
|
1578
1618
|
}),
|
|
1579
|
-
interpreterDirective:
|
|
1580
|
-
eq:
|
|
1619
|
+
interpreterDirective: _("#!..."),
|
|
1620
|
+
eq: _("=", {
|
|
1581
1621
|
beforeExpr: $,
|
|
1582
1622
|
isAssign: Ge
|
|
1583
1623
|
}),
|
|
1584
|
-
assign:
|
|
1624
|
+
assign: _("_=", {
|
|
1585
1625
|
beforeExpr: $,
|
|
1586
1626
|
isAssign: Ge
|
|
1587
1627
|
}),
|
|
1588
|
-
slashAssign:
|
|
1628
|
+
slashAssign: _("_=", {
|
|
1589
1629
|
beforeExpr: $,
|
|
1590
1630
|
isAssign: Ge
|
|
1591
1631
|
}),
|
|
1592
|
-
xorAssign:
|
|
1632
|
+
xorAssign: _("_=", {
|
|
1593
1633
|
beforeExpr: $,
|
|
1594
1634
|
isAssign: Ge
|
|
1595
1635
|
}),
|
|
1596
|
-
moduloAssign:
|
|
1636
|
+
moduloAssign: _("_=", {
|
|
1597
1637
|
beforeExpr: $,
|
|
1598
1638
|
isAssign: Ge
|
|
1599
1639
|
}),
|
|
1600
|
-
incDec:
|
|
1640
|
+
incDec: _("++/--", {
|
|
1601
1641
|
prefix: Ae,
|
|
1602
1642
|
postfix: wn,
|
|
1603
1643
|
startsExpr: w
|
|
1604
1644
|
}),
|
|
1605
|
-
bang:
|
|
1645
|
+
bang: _("!", {
|
|
1606
1646
|
beforeExpr: $,
|
|
1607
1647
|
prefix: Ae,
|
|
1608
1648
|
startsExpr: w
|
|
1609
1649
|
}),
|
|
1610
|
-
tilde:
|
|
1650
|
+
tilde: _("~", {
|
|
1611
1651
|
beforeExpr: $,
|
|
1612
1652
|
prefix: Ae,
|
|
1613
1653
|
startsExpr: w
|
|
1614
1654
|
}),
|
|
1615
|
-
doubleCaret:
|
|
1655
|
+
doubleCaret: _("^^", {
|
|
1616
1656
|
startsExpr: w
|
|
1617
1657
|
}),
|
|
1618
|
-
doubleAt:
|
|
1658
|
+
doubleAt: _("@@", {
|
|
1619
1659
|
startsExpr: w
|
|
1620
1660
|
}),
|
|
1621
1661
|
pipeline: se("|>", 0),
|
|
@@ -1632,116 +1672,116 @@ const On = {
|
|
|
1632
1672
|
bitShift: se("<</>>/>>>", 8),
|
|
1633
1673
|
bitShiftL: se("<</>>/>>>", 8),
|
|
1634
1674
|
bitShiftR: se("<</>>/>>>", 8),
|
|
1635
|
-
plusMin:
|
|
1675
|
+
plusMin: _("+/-", {
|
|
1636
1676
|
beforeExpr: $,
|
|
1637
1677
|
binop: 9,
|
|
1638
1678
|
prefix: Ae,
|
|
1639
1679
|
startsExpr: w
|
|
1640
1680
|
}),
|
|
1641
|
-
modulo:
|
|
1681
|
+
modulo: _("%", {
|
|
1642
1682
|
binop: 10,
|
|
1643
1683
|
startsExpr: w
|
|
1644
1684
|
}),
|
|
1645
|
-
star:
|
|
1685
|
+
star: _("*", {
|
|
1646
1686
|
binop: 10
|
|
1647
1687
|
}),
|
|
1648
1688
|
slash: se("/", 10),
|
|
1649
|
-
exponent:
|
|
1689
|
+
exponent: _("**", {
|
|
1650
1690
|
beforeExpr: $,
|
|
1651
1691
|
binop: 11,
|
|
1652
1692
|
rightAssociative: !0
|
|
1653
1693
|
}),
|
|
1654
|
-
_in:
|
|
1694
|
+
_in: Y("in", {
|
|
1655
1695
|
beforeExpr: $,
|
|
1656
1696
|
binop: 7
|
|
1657
1697
|
}),
|
|
1658
|
-
_instanceof:
|
|
1698
|
+
_instanceof: Y("instanceof", {
|
|
1659
1699
|
beforeExpr: $,
|
|
1660
1700
|
binop: 7
|
|
1661
1701
|
}),
|
|
1662
|
-
_break:
|
|
1663
|
-
_case:
|
|
1702
|
+
_break: Y("break"),
|
|
1703
|
+
_case: Y("case", {
|
|
1664
1704
|
beforeExpr: $
|
|
1665
1705
|
}),
|
|
1666
|
-
_catch:
|
|
1667
|
-
_continue:
|
|
1668
|
-
_debugger:
|
|
1669
|
-
_default:
|
|
1706
|
+
_catch: Y("catch"),
|
|
1707
|
+
_continue: Y("continue"),
|
|
1708
|
+
_debugger: Y("debugger"),
|
|
1709
|
+
_default: Y("default", {
|
|
1670
1710
|
beforeExpr: $
|
|
1671
1711
|
}),
|
|
1672
|
-
_else:
|
|
1712
|
+
_else: Y("else", {
|
|
1673
1713
|
beforeExpr: $
|
|
1674
1714
|
}),
|
|
1675
|
-
_finally:
|
|
1676
|
-
_function:
|
|
1715
|
+
_finally: Y("finally"),
|
|
1716
|
+
_function: Y("function", {
|
|
1677
1717
|
startsExpr: w
|
|
1678
1718
|
}),
|
|
1679
|
-
_if:
|
|
1680
|
-
_return:
|
|
1719
|
+
_if: Y("if"),
|
|
1720
|
+
_return: Y("return", {
|
|
1681
1721
|
beforeExpr: $
|
|
1682
1722
|
}),
|
|
1683
|
-
_switch:
|
|
1684
|
-
_throw:
|
|
1723
|
+
_switch: Y("switch"),
|
|
1724
|
+
_throw: Y("throw", {
|
|
1685
1725
|
beforeExpr: $,
|
|
1686
1726
|
prefix: Ae,
|
|
1687
1727
|
startsExpr: w
|
|
1688
1728
|
}),
|
|
1689
|
-
_try:
|
|
1690
|
-
_var:
|
|
1691
|
-
_const:
|
|
1692
|
-
_with:
|
|
1693
|
-
_new:
|
|
1729
|
+
_try: Y("try"),
|
|
1730
|
+
_var: Y("var"),
|
|
1731
|
+
_const: Y("const"),
|
|
1732
|
+
_with: Y("with"),
|
|
1733
|
+
_new: Y("new", {
|
|
1694
1734
|
beforeExpr: $,
|
|
1695
1735
|
startsExpr: w
|
|
1696
1736
|
}),
|
|
1697
|
-
_this:
|
|
1737
|
+
_this: Y("this", {
|
|
1698
1738
|
startsExpr: w
|
|
1699
1739
|
}),
|
|
1700
|
-
_super:
|
|
1740
|
+
_super: Y("super", {
|
|
1701
1741
|
startsExpr: w
|
|
1702
1742
|
}),
|
|
1703
|
-
_class:
|
|
1743
|
+
_class: Y("class", {
|
|
1704
1744
|
startsExpr: w
|
|
1705
1745
|
}),
|
|
1706
|
-
_extends:
|
|
1746
|
+
_extends: Y("extends", {
|
|
1707
1747
|
beforeExpr: $
|
|
1708
1748
|
}),
|
|
1709
|
-
_export:
|
|
1710
|
-
_import:
|
|
1749
|
+
_export: Y("export"),
|
|
1750
|
+
_import: Y("import", {
|
|
1711
1751
|
startsExpr: w
|
|
1712
1752
|
}),
|
|
1713
|
-
_null:
|
|
1753
|
+
_null: Y("null", {
|
|
1714
1754
|
startsExpr: w
|
|
1715
1755
|
}),
|
|
1716
|
-
_true:
|
|
1756
|
+
_true: Y("true", {
|
|
1717
1757
|
startsExpr: w
|
|
1718
1758
|
}),
|
|
1719
|
-
_false:
|
|
1759
|
+
_false: Y("false", {
|
|
1720
1760
|
startsExpr: w
|
|
1721
1761
|
}),
|
|
1722
|
-
_typeof:
|
|
1762
|
+
_typeof: Y("typeof", {
|
|
1723
1763
|
beforeExpr: $,
|
|
1724
1764
|
prefix: Ae,
|
|
1725
1765
|
startsExpr: w
|
|
1726
1766
|
}),
|
|
1727
|
-
_void:
|
|
1767
|
+
_void: Y("void", {
|
|
1728
1768
|
beforeExpr: $,
|
|
1729
1769
|
prefix: Ae,
|
|
1730
1770
|
startsExpr: w
|
|
1731
1771
|
}),
|
|
1732
|
-
_delete:
|
|
1772
|
+
_delete: Y("delete", {
|
|
1733
1773
|
beforeExpr: $,
|
|
1734
1774
|
prefix: Ae,
|
|
1735
1775
|
startsExpr: w
|
|
1736
1776
|
}),
|
|
1737
|
-
_do:
|
|
1777
|
+
_do: Y("do", {
|
|
1738
1778
|
isLoop: Sr,
|
|
1739
1779
|
beforeExpr: $
|
|
1740
1780
|
}),
|
|
1741
|
-
_for:
|
|
1781
|
+
_for: Y("for", {
|
|
1742
1782
|
isLoop: Sr
|
|
1743
1783
|
}),
|
|
1744
|
-
_while:
|
|
1784
|
+
_while: Y("while", {
|
|
1745
1785
|
isLoop: Sr
|
|
1746
1786
|
}),
|
|
1747
1787
|
_as: V("as", {
|
|
@@ -1861,39 +1901,39 @@ const On = {
|
|
|
1861
1901
|
_opaque: V("opaque", {
|
|
1862
1902
|
startsExpr: w
|
|
1863
1903
|
}),
|
|
1864
|
-
name:
|
|
1904
|
+
name: _("name", {
|
|
1865
1905
|
startsExpr: w
|
|
1866
1906
|
}),
|
|
1867
|
-
placeholder:
|
|
1907
|
+
placeholder: _("%%", {
|
|
1868
1908
|
startsExpr: !0
|
|
1869
1909
|
}),
|
|
1870
|
-
string:
|
|
1910
|
+
string: _("string", {
|
|
1871
1911
|
startsExpr: w
|
|
1872
1912
|
}),
|
|
1873
|
-
num:
|
|
1913
|
+
num: _("num", {
|
|
1874
1914
|
startsExpr: w
|
|
1875
1915
|
}),
|
|
1876
|
-
bigint:
|
|
1916
|
+
bigint: _("bigint", {
|
|
1877
1917
|
startsExpr: w
|
|
1878
1918
|
}),
|
|
1879
|
-
decimal:
|
|
1919
|
+
decimal: _("decimal", {
|
|
1880
1920
|
startsExpr: w
|
|
1881
1921
|
}),
|
|
1882
|
-
regexp:
|
|
1922
|
+
regexp: _("regexp", {
|
|
1883
1923
|
startsExpr: w
|
|
1884
1924
|
}),
|
|
1885
|
-
privateName:
|
|
1925
|
+
privateName: _("#name", {
|
|
1886
1926
|
startsExpr: w
|
|
1887
1927
|
}),
|
|
1888
|
-
eof:
|
|
1889
|
-
jsxName:
|
|
1890
|
-
jsxText:
|
|
1928
|
+
eof: _("eof"),
|
|
1929
|
+
jsxName: _("jsxName"),
|
|
1930
|
+
jsxText: _("jsxText", {
|
|
1891
1931
|
beforeExpr: !0
|
|
1892
1932
|
}),
|
|
1893
|
-
jsxTagStart:
|
|
1933
|
+
jsxTagStart: _("jsxTagStart", {
|
|
1894
1934
|
startsExpr: !0
|
|
1895
1935
|
}),
|
|
1896
|
-
jsxTagEnd:
|
|
1936
|
+
jsxTagEnd: _("jsxTagEnd")
|
|
1897
1937
|
};
|
|
1898
1938
|
function W(t) {
|
|
1899
1939
|
return t >= 93 && t <= 133;
|
|
@@ -1919,13 +1959,13 @@ function kn(t) {
|
|
|
1919
1959
|
function Vs(t) {
|
|
1920
1960
|
return t >= 129 && t <= 131;
|
|
1921
1961
|
}
|
|
1922
|
-
function
|
|
1962
|
+
function _n(t) {
|
|
1923
1963
|
return t >= 90 && t <= 92;
|
|
1924
1964
|
}
|
|
1925
|
-
function
|
|
1965
|
+
function Xr(t) {
|
|
1926
1966
|
return t >= 58 && t <= 92;
|
|
1927
1967
|
}
|
|
1928
|
-
function
|
|
1968
|
+
function Mn(t) {
|
|
1929
1969
|
return t >= 39 && t <= 59;
|
|
1930
1970
|
}
|
|
1931
1971
|
function Bn(t) {
|
|
@@ -1964,9 +2004,9 @@ me[8].updateContext = (t) => {
|
|
|
1964
2004
|
}, me[143].updateContext = (t) => {
|
|
1965
2005
|
t.push(q.j_expr, q.j_oTag);
|
|
1966
2006
|
};
|
|
1967
|
-
let
|
|
1968
|
-
const Un = new RegExp("[" +
|
|
1969
|
-
|
|
2007
|
+
let Yr = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ji = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
|
|
2008
|
+
const Un = new RegExp("[" + Yr + "]"), Vn = new RegExp("[" + Yr + ji + "]");
|
|
2009
|
+
Yr = ji = null;
|
|
1970
2010
|
const Ki = [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], $n = [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];
|
|
1971
2011
|
function Dr(t, e) {
|
|
1972
2012
|
let r = 65536;
|
|
@@ -1986,21 +2026,21 @@ const Jr = {
|
|
|
1986
2026
|
keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"],
|
|
1987
2027
|
strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
|
|
1988
2028
|
strictBind: ["eval", "arguments"]
|
|
1989
|
-
},
|
|
2029
|
+
}, Xn = new Set(Jr.keyword), Yn = new Set(Jr.strict), Jn = new Set(Jr.strictBind);
|
|
1990
2030
|
function Ui(t, e) {
|
|
1991
2031
|
return e && t === "await" || t === "enum";
|
|
1992
2032
|
}
|
|
1993
2033
|
function Vi(t, e) {
|
|
1994
|
-
return Ui(t, e) ||
|
|
2034
|
+
return Ui(t, e) || Yn.has(t);
|
|
1995
2035
|
}
|
|
1996
2036
|
function $i(t) {
|
|
1997
2037
|
return Jn.has(t);
|
|
1998
2038
|
}
|
|
1999
|
-
function
|
|
2039
|
+
function Xi(t, e) {
|
|
2000
2040
|
return Vi(t, e) || $i(t);
|
|
2001
2041
|
}
|
|
2002
2042
|
function qn(t) {
|
|
2003
|
-
return
|
|
2043
|
+
return Xn.has(t);
|
|
2004
2044
|
}
|
|
2005
2045
|
function Wn(t, e, r) {
|
|
2006
2046
|
return t === 64 && e === 64 && Te(r);
|
|
@@ -2178,7 +2218,7 @@ class Zn {
|
|
|
2178
2218
|
return (s = this.plugins.get(e)) == null ? void 0 : s[r];
|
|
2179
2219
|
}
|
|
2180
2220
|
}
|
|
2181
|
-
function
|
|
2221
|
+
function Yi(t, e) {
|
|
2182
2222
|
t.trailingComments === void 0 ? t.trailingComments = e : t.trailingComments.unshift(...e);
|
|
2183
2223
|
}
|
|
2184
2224
|
function eo(t, e) {
|
|
@@ -2191,7 +2231,7 @@ function we(t, e, r) {
|
|
|
2191
2231
|
let s = null, i = e.length;
|
|
2192
2232
|
for (; s === null && i > 0; )
|
|
2193
2233
|
s = e[--i];
|
|
2194
|
-
s === null || s.start > r.start ? at(t, r.comments) :
|
|
2234
|
+
s === null || s.start > r.start ? at(t, r.comments) : Yi(s, r.comments);
|
|
2195
2235
|
}
|
|
2196
2236
|
class to extends Zn {
|
|
2197
2237
|
addComment(e) {
|
|
@@ -2227,7 +2267,7 @@ class to extends Zn {
|
|
|
2227
2267
|
comments: r
|
|
2228
2268
|
} = e;
|
|
2229
2269
|
if (e.leadingNode !== null || e.trailingNode !== null)
|
|
2230
|
-
e.leadingNode !== null &&
|
|
2270
|
+
e.leadingNode !== null && Yi(e.leadingNode, r), e.trailingNode !== null && eo(e.trailingNode, r);
|
|
2231
2271
|
else {
|
|
2232
2272
|
const {
|
|
2233
2273
|
containingNode: s,
|
|
@@ -2469,7 +2509,7 @@ class Hr {
|
|
|
2469
2509
|
var io = function(e) {
|
|
2470
2510
|
return e >= 48 && e <= 57;
|
|
2471
2511
|
};
|
|
2472
|
-
const
|
|
2512
|
+
const Xs = {
|
|
2473
2513
|
decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]),
|
|
2474
2514
|
hex: /* @__PURE__ */ new Set([46, 88, 95, 120])
|
|
2475
2515
|
}, xt = {
|
|
@@ -2478,7 +2518,7 @@ const Ys = {
|
|
|
2478
2518
|
dec: (t) => t >= 48 && t <= 57,
|
|
2479
2519
|
hex: (t) => t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102
|
|
2480
2520
|
};
|
|
2481
|
-
function
|
|
2521
|
+
function Ys(t, e, r, s, i, a) {
|
|
2482
2522
|
const n = r, o = s, u = i;
|
|
2483
2523
|
let p = "", h = null, E = r;
|
|
2484
2524
|
const {
|
|
@@ -2598,7 +2638,7 @@ function Lr(t, e, r, s, i, a, n, o) {
|
|
|
2598
2638
|
};
|
|
2599
2639
|
}
|
|
2600
2640
|
function Ji(t, e, r, s, i, a, n, o, u, p) {
|
|
2601
|
-
const h = e, E = i === 16 ?
|
|
2641
|
+
const h = e, E = i === 16 ? Xs.hex : Xs.decBinOct, P = i === 16 ? xt.hex : i === 10 ? xt.dec : i === 8 ? xt.oct : xt.bin;
|
|
2602
2642
|
let g = !1, N = 0;
|
|
2603
2643
|
for (let A = 0, O = a ?? 1 / 0; A < O; ++A) {
|
|
2604
2644
|
const I = t.charCodeAt(e);
|
|
@@ -3278,7 +3318,7 @@ class lo extends to {
|
|
|
3278
3318
|
pos: s,
|
|
3279
3319
|
curLine: i,
|
|
3280
3320
|
lineStart: a
|
|
3281
|
-
} =
|
|
3321
|
+
} = Ys(e === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string);
|
|
3282
3322
|
this.state.pos = s + 1, this.state.lineStart = a, this.state.curLine = i, this.finishToken(134, r);
|
|
3283
3323
|
}
|
|
3284
3324
|
readTemplateContinuation() {
|
|
@@ -3291,7 +3331,7 @@ class lo extends to {
|
|
|
3291
3331
|
pos: i,
|
|
3292
3332
|
curLine: a,
|
|
3293
3333
|
lineStart: n
|
|
3294
|
-
} =
|
|
3334
|
+
} = Ys("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template);
|
|
3295
3335
|
this.state.pos = i + 1, this.state.lineStart = n, this.state.curLine = a, s && (this.state.firstInvalidTemplateEscapePos = new Ce(s.curLine, s.pos - s.lineStart, this.sourceToOffsetPos(s.pos))), this.input.codePointAt(i) === 96 ? this.finishToken(24, s ? null : e + r + "`") : (this.state.pos++, this.finishToken(25, s ? null : e + r + "${"));
|
|
3296
3336
|
}
|
|
3297
3337
|
recordStrictModeErrors(e, r) {
|
|
@@ -3330,7 +3370,7 @@ class lo extends to {
|
|
|
3330
3370
|
const {
|
|
3331
3371
|
type: e
|
|
3332
3372
|
} = this.state;
|
|
3333
|
-
|
|
3373
|
+
Xr(e) && this.state.containsEsc && this.raise(x.InvalidEscapedReservedWord, this.state.startLoc, {
|
|
3334
3374
|
reservedWord: Ne(e)
|
|
3335
3375
|
});
|
|
3336
3376
|
}
|
|
@@ -3780,7 +3820,7 @@ class bo extends To {
|
|
|
3780
3820
|
this.resetStartLocation(e, r.loc.start);
|
|
3781
3821
|
}
|
|
3782
3822
|
}
|
|
3783
|
-
const Eo = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "static", "string", "true", "typeof", "void"]),
|
|
3823
|
+
const Eo = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "static", "string", "true", "typeof", "void"]), M = Se`flow`({
|
|
3784
3824
|
AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",
|
|
3785
3825
|
AmbiguousDeclareModuleKind: "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",
|
|
3786
3826
|
AssignReservedType: ({
|
|
@@ -3925,7 +3965,7 @@ var vo = (t) => class extends t {
|
|
|
3925
3965
|
}
|
|
3926
3966
|
flowParsePredicate() {
|
|
3927
3967
|
const r = this.startNode(), s = this.state.startLoc;
|
|
3928
|
-
return this.next(), this.expectContextual(110), this.state.lastTokStartLoc.index > s.index + 1 && this.raise(
|
|
3968
|
+
return this.next(), this.expectContextual(110), this.state.lastTokStartLoc.index > s.index + 1 && this.raise(M.UnexpectedSpaceBetweenModuloChecks, s), this.eat(10) ? (r.value = super.parseExpression(), this.expect(11), this.finishNode(r, "DeclaredPredicate")) : this.finishNode(r, "InferredPredicate");
|
|
3929
3969
|
}
|
|
3930
3970
|
flowParseTypeAndPredicateInitialiser() {
|
|
3931
3971
|
const r = this.state.inType;
|
|
@@ -3951,7 +3991,7 @@ var vo = (t) => class extends t {
|
|
|
3951
3991
|
if (this.match(74))
|
|
3952
3992
|
return this.flowParseDeclareVariable(r);
|
|
3953
3993
|
if (this.eatContextual(127))
|
|
3954
|
-
return this.match(16) ? this.flowParseDeclareModuleExports(r) : (s && this.raise(
|
|
3994
|
+
return this.match(16) ? this.flowParseDeclareModuleExports(r) : (s && this.raise(M.NestedDeclareModule, this.state.lastTokStartLoc), this.flowParseDeclareModule(r));
|
|
3955
3995
|
if (this.isContextual(130))
|
|
3956
3996
|
return this.flowParseDeclareTypeAlias(r);
|
|
3957
3997
|
if (this.isContextual(131))
|
|
@@ -3970,12 +4010,12 @@ var vo = (t) => class extends t {
|
|
|
3970
4010
|
const s = r.body = this.startNode(), i = s.body = [];
|
|
3971
4011
|
for (this.expect(5); !this.match(8); ) {
|
|
3972
4012
|
let o = this.startNode();
|
|
3973
|
-
this.match(83) ? (this.next(), !this.isContextual(130) && !this.match(87) && this.raise(
|
|
4013
|
+
this.match(83) ? (this.next(), !this.isContextual(130) && !this.match(87) && this.raise(M.InvalidNonTypeImportInDeclareModule, this.state.lastTokStartLoc), super.parseImport(o)) : (this.expectContextual(125, M.UnsupportedStatementInDeclareModule), o = this.flowParseDeclare(o, !0)), i.push(o);
|
|
3974
4014
|
}
|
|
3975
4015
|
this.scope.exit(), this.expect(8), this.finishNode(s, "BlockStatement");
|
|
3976
4016
|
let a = null, n = !1;
|
|
3977
4017
|
return i.forEach((o) => {
|
|
3978
|
-
Po(o) ? (a === "CommonJS" && this.raise(
|
|
4018
|
+
Po(o) ? (a === "CommonJS" && this.raise(M.AmbiguousDeclareModuleKind, o), a = "ES") : o.type === "DeclareModuleExports" && (n && this.raise(M.DuplicateDeclareModuleExports, o), a === "ES" && this.raise(M.AmbiguousDeclareModuleKind, o), a = "CommonJS", n = !0);
|
|
3979
4019
|
}), r.kind = a || "CommonJS", this.finishNode(r, "DeclareModule");
|
|
3980
4020
|
}
|
|
3981
4021
|
flowParseDeclareExportDeclaration(r, s) {
|
|
@@ -3983,7 +4023,7 @@ var vo = (t) => class extends t {
|
|
|
3983
4023
|
return this.match(68) || this.match(80) ? r.declaration = this.flowParseDeclare(this.startNode()) : (r.declaration = this.flowParseType(), this.semicolon()), r.default = !0, this.finishNode(r, "DeclareExportDeclaration");
|
|
3984
4024
|
if (this.match(75) || this.isLet() || (this.isContextual(130) || this.isContextual(129)) && !s) {
|
|
3985
4025
|
const i = this.state.value;
|
|
3986
|
-
throw this.raise(
|
|
4026
|
+
throw this.raise(M.UnsupportedDeclareExportKind, this.state.startLoc, {
|
|
3987
4027
|
unsupportedExportKind: i,
|
|
3988
4028
|
suggestion: go[i]
|
|
3989
4029
|
});
|
|
@@ -4041,10 +4081,10 @@ var vo = (t) => class extends t {
|
|
|
4041
4081
|
return this.flowParseInterfaceish(r, !1), this.finishNode(r, "InterfaceDeclaration");
|
|
4042
4082
|
}
|
|
4043
4083
|
checkNotUnderscore(r) {
|
|
4044
|
-
r === "_" && this.raise(
|
|
4084
|
+
r === "_" && this.raise(M.UnexpectedReservedUnderscore, this.state.startLoc);
|
|
4045
4085
|
}
|
|
4046
4086
|
checkReservedType(r, s, i) {
|
|
4047
|
-
Eo.has(r) && this.raise(i ?
|
|
4087
|
+
Eo.has(r) && this.raise(i ? M.AssignReservedType : M.UnexpectedReservedType, s, {
|
|
4048
4088
|
reservedType: r
|
|
4049
4089
|
});
|
|
4050
4090
|
}
|
|
@@ -4059,7 +4099,7 @@ var vo = (t) => class extends t {
|
|
|
4059
4099
|
}
|
|
4060
4100
|
flowParseTypeParameter(r = !1) {
|
|
4061
4101
|
const s = this.state.startLoc, i = this.startNode(), a = this.flowParseVariance(), n = this.flowParseTypeAnnotatableIdentifier();
|
|
4062
|
-
return i.name = n.name, i.variance = a, i.bound = n.typeAnnotation, this.match(29) ? (this.eat(29), i.default = this.flowParseType()) : r && this.raise(
|
|
4102
|
+
return i.name = n.name, i.variance = a, i.bound = n.typeAnnotation, this.match(29) ? (this.eat(29), i.default = this.flowParseType()) : r && this.raise(M.MissingTypeParamDefault, s), this.finishNode(i, "TypeParameter");
|
|
4063
4103
|
}
|
|
4064
4104
|
flowParseTypeParameterDeclaration() {
|
|
4065
4105
|
const r = this.state.inType, s = this.startNode();
|
|
@@ -4173,7 +4213,7 @@ var vo = (t) => class extends t {
|
|
|
4173
4213
|
const B = this.flowParseObjectTypeProperty(O, g, N, I, C, i, n ?? !h);
|
|
4174
4214
|
B === null ? (E = !0, A = this.state.lastTokStartLoc) : u.properties.push(B);
|
|
4175
4215
|
}
|
|
4176
|
-
this.flowObjectTypeSemicolon(), A && !this.match(8) && !this.match(9) && this.raise(
|
|
4216
|
+
this.flowObjectTypeSemicolon(), A && !this.match(8) && !this.match(9) && this.raise(M.UnexpectedExplicitInexactInObject, A);
|
|
4177
4217
|
}
|
|
4178
4218
|
this.expect(p), i && (u.inexact = E);
|
|
4179
4219
|
const P = this.finishNode(u, "ObjectTypeAnnotation");
|
|
@@ -4181,16 +4221,16 @@ var vo = (t) => class extends t {
|
|
|
4181
4221
|
}
|
|
4182
4222
|
flowParseObjectTypeProperty(r, s, i, a, n, o, u) {
|
|
4183
4223
|
if (this.eat(21))
|
|
4184
|
-
return this.match(12) || this.match(13) || this.match(8) || this.match(9) ? (o ? u || this.raise(
|
|
4224
|
+
return this.match(12) || this.match(13) || this.match(8) || this.match(9) ? (o ? u || this.raise(M.InexactInsideExact, this.state.lastTokStartLoc) : this.raise(M.InexactInsideNonObject, this.state.lastTokStartLoc), a && this.raise(M.InexactVariance, a), null) : (o || this.raise(M.UnexpectedSpreadType, this.state.lastTokStartLoc), i != null && this.unexpected(i), a && this.raise(M.SpreadVariance, a), r.argument = this.flowParseType(), this.finishNode(r, "ObjectTypeSpreadProperty"));
|
|
4185
4225
|
{
|
|
4186
4226
|
r.key = this.flowParseObjectPropertyKey(), r.static = s, r.proto = i != null, r.kind = n;
|
|
4187
4227
|
let p = !1;
|
|
4188
|
-
return this.match(47) || this.match(10) ? (r.method = !0, i != null && this.unexpected(i), a && this.unexpected(a.loc.start), r.value = this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)), (n === "get" || n === "set") && this.flowCheckGetterSetterParams(r), !o && r.key.name === "constructor" && r.value.this && this.raise(
|
|
4228
|
+
return this.match(47) || this.match(10) ? (r.method = !0, i != null && this.unexpected(i), a && this.unexpected(a.loc.start), r.value = this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)), (n === "get" || n === "set") && this.flowCheckGetterSetterParams(r), !o && r.key.name === "constructor" && r.value.this && this.raise(M.ThisParamBannedInConstructor, r.value.this)) : (n !== "init" && this.unexpected(), r.method = !1, this.eat(17) && (p = !0), r.value = this.flowParseTypeInitialiser(), r.variance = a), r.optional = p, this.finishNode(r, "ObjectTypeProperty");
|
|
4189
4229
|
}
|
|
4190
4230
|
}
|
|
4191
4231
|
flowCheckGetterSetterParams(r) {
|
|
4192
4232
|
const s = r.kind === "get" ? 0 : 1, i = r.value.params.length + (r.value.rest ? 1 : 0);
|
|
4193
|
-
r.value.this && this.raise(r.kind === "get" ?
|
|
4233
|
+
r.value.this && this.raise(r.kind === "get" ? M.GetterMayNotHaveThisParam : M.SetterMayNotHaveThisParam, r.value.this), i !== s && this.raise(r.kind === "get" ? x.BadGetterArity : x.BadSetterArity, r), r.kind === "set" && r.value.rest && this.raise(x.BadSetterRestParameter, r);
|
|
4194
4234
|
}
|
|
4195
4235
|
flowObjectTypeSemicolon() {
|
|
4196
4236
|
!this.eat(13) && !this.eat(12) && !this.match(8) && !this.match(9) && this.unexpected();
|
|
@@ -4222,7 +4262,7 @@ var vo = (t) => class extends t {
|
|
|
4222
4262
|
flowParseFunctionTypeParam(r) {
|
|
4223
4263
|
let s = null, i = !1, a = null;
|
|
4224
4264
|
const n = this.startNode(), o = this.lookahead(), u = this.state.type === 78;
|
|
4225
|
-
return o.type === 14 || o.type === 17 ? (u && !r && this.raise(
|
|
4265
|
+
return o.type === 14 || o.type === 17 ? (u && !r && this.raise(M.ThisParamMustBeFirst, n), s = this.parseIdentifier(u), this.eat(17) && (i = !0, u && this.raise(M.ThisParamMayNotBeOptional, n)), a = this.flowParseTypeInitialiser()) : a = this.flowParseType(), n.name = s, n.optional = i, n.typeAnnotation = a, this.finishNode(n, "FunctionTypeParam");
|
|
4226
4266
|
}
|
|
4227
4267
|
reinterpretTypeAsFunctionTypeParam(r) {
|
|
4228
4268
|
const s = this.startNodeAt(r.loc.start);
|
|
@@ -4312,7 +4352,7 @@ var vo = (t) => class extends t {
|
|
|
4312
4352
|
return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", s);
|
|
4313
4353
|
if (this.match(136))
|
|
4314
4354
|
return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", s);
|
|
4315
|
-
throw this.raise(
|
|
4355
|
+
throw this.raise(M.UnexpectedSubtractionOperand, this.state.startLoc);
|
|
4316
4356
|
}
|
|
4317
4357
|
this.unexpected();
|
|
4318
4358
|
return;
|
|
@@ -4331,7 +4371,7 @@ var vo = (t) => class extends t {
|
|
|
4331
4371
|
case 87:
|
|
4332
4372
|
return this.flowParseTypeofType();
|
|
4333
4373
|
default:
|
|
4334
|
-
if (
|
|
4374
|
+
if (Xr(this.state.type)) {
|
|
4335
4375
|
const u = Ne(this.state.type);
|
|
4336
4376
|
return this.next(), super.createIdentifier(s, u);
|
|
4337
4377
|
} else if (W(this.state.type))
|
|
@@ -4491,7 +4531,7 @@ var vo = (t) => class extends t {
|
|
|
4491
4531
|
failed: p
|
|
4492
4532
|
} = this.tryParseConditionalConsequent()), [h, E] = this.getArrowLikeExpressions(u);
|
|
4493
4533
|
}
|
|
4494
|
-
p && h.length > 1 && this.raise(
|
|
4534
|
+
p && h.length > 1 && this.raise(M.AmbiguousConditionalArrow, a.startLoc), p && h.length === 1 && (this.state = a, P.push(h[0].start), this.state.noArrowAt = P, {
|
|
4495
4535
|
consequent: u,
|
|
4496
4536
|
failed: p
|
|
4497
4537
|
} = this.tryParseConditionalConsequent());
|
|
@@ -4574,7 +4614,7 @@ var vo = (t) => class extends t {
|
|
|
4574
4614
|
return;
|
|
4575
4615
|
s.declare = !0;
|
|
4576
4616
|
}
|
|
4577
|
-
super.parseClassMember(r, s, i), s.declare && (s.type !== "ClassProperty" && s.type !== "ClassPrivateProperty" && s.type !== "PropertyDefinition" ? this.raise(
|
|
4617
|
+
super.parseClassMember(r, s, i), s.declare && (s.type !== "ClassProperty" && s.type !== "ClassPrivateProperty" && s.type !== "PropertyDefinition" ? this.raise(M.DeclareClassElement, a) : s.value && this.raise(M.DeclareClassFieldInitializer, s.value));
|
|
4578
4618
|
}
|
|
4579
4619
|
isIterator(r) {
|
|
4580
4620
|
return r === "iterator" || r === "asyncIterator";
|
|
@@ -4606,7 +4646,7 @@ var vo = (t) => class extends t {
|
|
|
4606
4646
|
for (let a = 0; a < r.length; a++) {
|
|
4607
4647
|
var i;
|
|
4608
4648
|
const n = r[a];
|
|
4609
|
-
n && n.type === "TypeCastExpression" && !((i = n.extra) != null && i.parenthesized) && (r.length > 1 || !s) && this.raise(
|
|
4649
|
+
n && n.type === "TypeCastExpression" && !((i = n.extra) != null && i.parenthesized) && (r.length > 1 || !s) && this.raise(M.TypeCastInPattern, n.typeAnnotation);
|
|
4610
4650
|
}
|
|
4611
4651
|
return r;
|
|
4612
4652
|
}
|
|
@@ -4635,10 +4675,10 @@ var vo = (t) => class extends t {
|
|
|
4635
4675
|
pushClassMethod(r, s, i, a, n, o) {
|
|
4636
4676
|
if (s.variance && this.unexpected(s.variance.loc.start), delete s.variance, this.match(47) && (s.typeParameters = this.flowParseTypeParameterDeclaration()), super.pushClassMethod(r, s, i, a, n, o), s.params && n) {
|
|
4637
4677
|
const u = s.params;
|
|
4638
|
-
u.length > 0 && this.isThisParam(u[0]) && this.raise(
|
|
4678
|
+
u.length > 0 && this.isThisParam(u[0]) && this.raise(M.ThisParamBannedInConstructor, s);
|
|
4639
4679
|
} else if (s.type === "MethodDefinition" && n && s.value.params) {
|
|
4640
4680
|
const u = s.value.params;
|
|
4641
|
-
u.length > 0 && this.isThisParam(u[0]) && this.raise(
|
|
4681
|
+
u.length > 0 && this.isThisParam(u[0]) && this.raise(M.ThisParamBannedInConstructor, s);
|
|
4642
4682
|
}
|
|
4643
4683
|
}
|
|
4644
4684
|
pushClassPrivateMethod(r, s, i, a) {
|
|
@@ -4659,7 +4699,7 @@ var vo = (t) => class extends t {
|
|
|
4659
4699
|
const s = this.getObjectOrClassMethodParams(r);
|
|
4660
4700
|
if (s.length > 0) {
|
|
4661
4701
|
const i = s[0];
|
|
4662
|
-
this.isThisParam(i) && r.kind === "get" ? this.raise(
|
|
4702
|
+
this.isThisParam(i) && r.kind === "get" ? this.raise(M.GetterMayNotHaveThisParam, i) : this.isThisParam(i) && this.raise(M.SetterMayNotHaveThisParam, i);
|
|
4663
4703
|
}
|
|
4664
4704
|
}
|
|
4665
4705
|
parsePropertyNamePrefixOperator(r) {
|
|
@@ -4673,14 +4713,14 @@ var vo = (t) => class extends t {
|
|
|
4673
4713
|
return p && ((h.value || h).typeParameters = p), h;
|
|
4674
4714
|
}
|
|
4675
4715
|
parseFunctionParamType(r) {
|
|
4676
|
-
return this.eat(17) && (r.type !== "Identifier" && this.raise(
|
|
4716
|
+
return this.eat(17) && (r.type !== "Identifier" && this.raise(M.PatternIsOptional, r), this.isThisParam(r) && this.raise(M.ThisParamMayNotBeOptional, r), r.optional = !0), this.match(14) ? r.typeAnnotation = this.flowParseTypeAnnotation() : this.isThisParam(r) && this.raise(M.ThisParamAnnotationRequired, r), this.match(29) && this.isThisParam(r) && this.raise(M.ThisParamNoDefault, r), this.resetEndLocation(r), r;
|
|
4677
4717
|
}
|
|
4678
4718
|
parseMaybeDefault(r, s) {
|
|
4679
4719
|
const i = super.parseMaybeDefault(r, s);
|
|
4680
|
-
return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(
|
|
4720
|
+
return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(M.TypeBeforeInitializer, i.typeAnnotation), i;
|
|
4681
4721
|
}
|
|
4682
4722
|
checkImportReflection(r) {
|
|
4683
|
-
super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(
|
|
4723
|
+
super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(M.ImportReflectionHasImportType, r.specifiers[0].loc.start);
|
|
4684
4724
|
}
|
|
4685
4725
|
parseImportSpecifierLocal(r, s, i) {
|
|
4686
4726
|
s.local = Js(r) ? this.flowParseRestrictedIdentifier(!0, !0) : this.parseIdentifier(), r.specifiers.push(this.finishImportSpecifier(s, i));
|
|
@@ -4723,7 +4763,7 @@ var vo = (t) => class extends t {
|
|
|
4723
4763
|
this.eatContextual(93) ? r.local = this.parseIdentifier() : (p = !0, r.local = xe(r.imported));
|
|
4724
4764
|
}
|
|
4725
4765
|
const h = Js(r);
|
|
4726
|
-
return i && h && this.raise(
|
|
4766
|
+
return i && h && this.raise(M.ImportTypeShorthandOnlyInPureImport, r), (i || h) && this.checkReservedType(r.local.name, r.local.loc.start, !0), p && !i && !h && this.checkReservedWord(r.local.name, r.loc.start, !0, !0), this.finishImportSpecifier(r, "ImportSpecifier");
|
|
4727
4767
|
}
|
|
4728
4768
|
parseBindingAtom() {
|
|
4729
4769
|
switch (this.state.type) {
|
|
@@ -4778,14 +4818,14 @@ var vo = (t) => class extends t {
|
|
|
4778
4818
|
let E = null;
|
|
4779
4819
|
if (h.node && this.maybeUnwrapTypeCastExpression(h.node).type === "ArrowFunctionExpression") {
|
|
4780
4820
|
if (!h.error && !h.aborted)
|
|
4781
|
-
return h.node.async && this.raise(
|
|
4821
|
+
return h.node.async && this.raise(M.UnexpectedTypeParameterBeforeAsyncArrowFunction, p), h.node;
|
|
4782
4822
|
E = h.node;
|
|
4783
4823
|
}
|
|
4784
4824
|
if ((o = n) != null && o.node)
|
|
4785
4825
|
return this.state = n.failState, n.node;
|
|
4786
4826
|
if (E)
|
|
4787
4827
|
return this.state = h.failState, E;
|
|
4788
|
-
throw (u = n) != null && u.thrown ? n.error : h.thrown ? h.error : this.raise(
|
|
4828
|
+
throw (u = n) != null && u.thrown ? n.error : h.thrown ? h.error : this.raise(M.UnexpectedTokenAfterTypeParameter, p);
|
|
4789
4829
|
}
|
|
4790
4830
|
return super.parseMaybeAssign(r, s);
|
|
4791
4831
|
}
|
|
@@ -4811,7 +4851,7 @@ var vo = (t) => class extends t {
|
|
|
4811
4851
|
checkParams(r, s, i, a = !0) {
|
|
4812
4852
|
if (!(i && this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))) {
|
|
4813
4853
|
for (let n = 0; n < r.params.length; n++)
|
|
4814
|
-
this.isThisParam(r.params[n]) && n > 0 && this.raise(
|
|
4854
|
+
this.isThisParam(r.params[n]) && n > 0 && this.raise(M.ThisParamMustBeFirst, r.params[n]);
|
|
4815
4855
|
super.checkParams(r, s, i, a);
|
|
4816
4856
|
}
|
|
4817
4857
|
}
|
|
@@ -4880,12 +4920,12 @@ var vo = (t) => class extends t {
|
|
|
4880
4920
|
}
|
|
4881
4921
|
parseTopLevel(r, s) {
|
|
4882
4922
|
const i = super.parseTopLevel(r, s);
|
|
4883
|
-
return this.state.hasFlowComment && this.raise(
|
|
4923
|
+
return this.state.hasFlowComment && this.raise(M.UnterminatedFlowComment, this.state.curPosition()), i;
|
|
4884
4924
|
}
|
|
4885
4925
|
skipBlockComment() {
|
|
4886
4926
|
if (this.hasPlugin("flowComments") && this.skipFlowComment()) {
|
|
4887
4927
|
if (this.state.hasFlowComment)
|
|
4888
|
-
throw this.raise(
|
|
4928
|
+
throw this.raise(M.NestedFlowComment, this.state.startLoc);
|
|
4889
4929
|
this.hasFlowCommentCompletion();
|
|
4890
4930
|
const r = this.skipFlowComment();
|
|
4891
4931
|
r && (this.state.pos += r, this.state.hasFlowComment = !0);
|
|
@@ -4911,19 +4951,19 @@ var vo = (t) => class extends t {
|
|
|
4911
4951
|
enumName: s,
|
|
4912
4952
|
memberName: i
|
|
4913
4953
|
}) {
|
|
4914
|
-
this.raise(
|
|
4954
|
+
this.raise(M.EnumBooleanMemberNotInitialized, r, {
|
|
4915
4955
|
memberName: i,
|
|
4916
4956
|
enumName: s
|
|
4917
4957
|
});
|
|
4918
4958
|
}
|
|
4919
4959
|
flowEnumErrorInvalidMemberInitializer(r, s) {
|
|
4920
|
-
return this.raise(s.explicitType ? s.explicitType === "symbol" ?
|
|
4960
|
+
return this.raise(s.explicitType ? s.explicitType === "symbol" ? M.EnumInvalidMemberInitializerSymbolType : M.EnumInvalidMemberInitializerPrimaryType : M.EnumInvalidMemberInitializerUnknownType, r, s);
|
|
4921
4961
|
}
|
|
4922
4962
|
flowEnumErrorNumberMemberNotInitialized(r, s) {
|
|
4923
|
-
this.raise(
|
|
4963
|
+
this.raise(M.EnumNumberMemberNotInitialized, r, s);
|
|
4924
4964
|
}
|
|
4925
4965
|
flowEnumErrorStringMemberInconsistentlyInitialized(r, s) {
|
|
4926
|
-
this.raise(
|
|
4966
|
+
this.raise(M.EnumStringMemberInconsistentlyInitialized, r, s);
|
|
4927
4967
|
}
|
|
4928
4968
|
flowEnumMemberInit() {
|
|
4929
4969
|
const r = this.state.startLoc, s = () => this.match(12) || this.match(8);
|
|
@@ -5007,11 +5047,11 @@ var vo = (t) => class extends t {
|
|
|
5007
5047
|
} = this.flowEnumMemberRaw(), h = u.name;
|
|
5008
5048
|
if (h === "")
|
|
5009
5049
|
continue;
|
|
5010
|
-
/^[a-z]/.test(h) && this.raise(
|
|
5050
|
+
/^[a-z]/.test(h) && this.raise(M.EnumInvalidMemberName, u, {
|
|
5011
5051
|
memberName: h,
|
|
5012
5052
|
suggestion: h[0].toUpperCase() + h.slice(1),
|
|
5013
5053
|
enumName: r
|
|
5014
|
-
}), i.has(h) && this.raise(
|
|
5054
|
+
}), i.has(h) && this.raise(M.EnumDuplicateMemberName, u, {
|
|
5015
5055
|
memberName: h,
|
|
5016
5056
|
enumName: r
|
|
5017
5057
|
}), i.add(h);
|
|
@@ -5080,13 +5120,13 @@ var vo = (t) => class extends t {
|
|
|
5080
5120
|
}) {
|
|
5081
5121
|
if (!this.eatContextual(102)) return null;
|
|
5082
5122
|
if (!W(this.state.type))
|
|
5083
|
-
throw this.raise(
|
|
5123
|
+
throw this.raise(M.EnumInvalidExplicitTypeUnknownSupplied, this.state.startLoc, {
|
|
5084
5124
|
enumName: r
|
|
5085
5125
|
});
|
|
5086
5126
|
const {
|
|
5087
5127
|
value: s
|
|
5088
5128
|
} = this.state;
|
|
5089
|
-
return this.next(), s !== "boolean" && s !== "number" && s !== "string" && s !== "symbol" && this.raise(
|
|
5129
|
+
return this.next(), s !== "boolean" && s !== "number" && s !== "string" && s !== "symbol" && this.raise(M.EnumInvalidExplicitType, this.state.startLoc, {
|
|
5090
5130
|
enumName: r,
|
|
5091
5131
|
invalidEnumType: s
|
|
5092
5132
|
}), s;
|
|
@@ -5139,7 +5179,7 @@ var vo = (t) => class extends t {
|
|
|
5139
5179
|
});
|
|
5140
5180
|
return r.members = o.numberMembers, this.expect(8), this.finishNode(r, "EnumNumberBody");
|
|
5141
5181
|
} else
|
|
5142
|
-
return this.raise(
|
|
5182
|
+
return this.raise(M.EnumInconsistentMemberValues, a, {
|
|
5143
5183
|
enumName: i
|
|
5144
5184
|
}), p();
|
|
5145
5185
|
}
|
|
@@ -5533,7 +5573,7 @@ var No = (t) => class extends t {
|
|
|
5533
5573
|
}
|
|
5534
5574
|
jsxParseIdentifier() {
|
|
5535
5575
|
const r = this.startNode();
|
|
5536
|
-
return this.match(141) ? r.name = this.state.value :
|
|
5576
|
+
return this.match(141) ? r.name = this.state.value : Xr(this.state.type) ? r.name = Ne(this.state.type) : this.unexpected(), this.next(), this.finishNode(r, "JSXIdentifier");
|
|
5537
5577
|
}
|
|
5538
5578
|
jsxParseNamespacedName() {
|
|
5539
5579
|
const r = this.state.startLoc, s = this.jsxParseIdentifier();
|
|
@@ -5992,7 +6032,7 @@ class Do extends bo {
|
|
|
5992
6032
|
else N && this.checkLVal(N, g, s, i, a, P);
|
|
5993
6033
|
}
|
|
5994
6034
|
checkIdentifier(e, r, s = !1) {
|
|
5995
|
-
this.state.strict && (s ?
|
|
6035
|
+
this.state.strict && (s ? Xi(e.name, this.inModule) : $i(e.name)) && (r === 64 ? this.raise(x.StrictEvalArguments, e, {
|
|
5996
6036
|
referenceName: e.name
|
|
5997
6037
|
}) : this.raise(x.StrictEvalArgumentsBinding, e, {
|
|
5998
6038
|
bindingName: e.name
|
|
@@ -6151,10 +6191,10 @@ function ko(t) {
|
|
|
6151
6191
|
function Ws(t) {
|
|
6152
6192
|
return t === "private" || t === "public" || t === "protected";
|
|
6153
6193
|
}
|
|
6154
|
-
function
|
|
6194
|
+
function _o(t) {
|
|
6155
6195
|
return t === "in" || t === "out";
|
|
6156
6196
|
}
|
|
6157
|
-
var
|
|
6197
|
+
var Mo = (t) => class extends t {
|
|
6158
6198
|
constructor(...r) {
|
|
6159
6199
|
super(...r), this.tsParseInOutModifiers = this.tsParseModifiers.bind(this, {
|
|
6160
6200
|
allowedModifiers: ["in", "out"],
|
|
@@ -6218,7 +6258,7 @@ var _o = (t) => class extends t {
|
|
|
6218
6258
|
if (!h) break;
|
|
6219
6259
|
Ws(h) ? n.accessibility ? this.raise(k.DuplicateAccessibilityModifier, p, {
|
|
6220
6260
|
modifier: h
|
|
6221
|
-
}) : (o(p, h, h, "override"), o(p, h, h, "static"), o(p, h, h, "readonly"), n.accessibility = h) :
|
|
6261
|
+
}) : (o(p, h, h, "override"), o(p, h, h, "static"), o(p, h, h, "readonly"), n.accessibility = h) : _o(h) ? (n[h] && this.raise(k.DuplicateModifier, p, {
|
|
6222
6262
|
modifier: h
|
|
6223
6263
|
}), n[h] = !0, o(p, h, "in", "out")) : (hasOwnProperty.call(n, h) ? this.raise(k.DuplicateModifier, p, {
|
|
6224
6264
|
modifier: h
|
|
@@ -7793,7 +7833,7 @@ const Zi = {
|
|
|
7793
7833
|
estree: Nn,
|
|
7794
7834
|
jsx: No,
|
|
7795
7835
|
flow: vo,
|
|
7796
|
-
typescript:
|
|
7836
|
+
typescript: Mo,
|
|
7797
7837
|
v8intrinsic: Ko,
|
|
7798
7838
|
placeholders: jo
|
|
7799
7839
|
}, Vo = Object.keys(Zi);
|
|
@@ -7892,7 +7932,7 @@ class $o extends Do {
|
|
|
7892
7932
|
}), this.classScope.usePrivateName(a, e.loc.start);
|
|
7893
7933
|
}
|
|
7894
7934
|
const i = this.state.type;
|
|
7895
|
-
if (
|
|
7935
|
+
if (Mn(i) && (this.prodParam.hasIn || !this.match(58))) {
|
|
7896
7936
|
let a = Dt(i);
|
|
7897
7937
|
if (a > s) {
|
|
7898
7938
|
if (i === 39) {
|
|
@@ -8646,7 +8686,7 @@ class $o extends Do {
|
|
|
8646
8686
|
});
|
|
8647
8687
|
return;
|
|
8648
8688
|
}
|
|
8649
|
-
if ((this.state.strict ? i ?
|
|
8689
|
+
if ((this.state.strict ? i ? Xi : Vi : Ui)(e, this.inModule)) {
|
|
8650
8690
|
this.raise(x.UnexpectedReservedWord, r, {
|
|
8651
8691
|
reservedWord: e
|
|
8652
8692
|
});
|
|
@@ -8843,9 +8883,9 @@ class $o extends Do {
|
|
|
8843
8883
|
}
|
|
8844
8884
|
const Er = {
|
|
8845
8885
|
kind: 1
|
|
8846
|
-
},
|
|
8886
|
+
}, Xo = {
|
|
8847
8887
|
kind: 2
|
|
8848
|
-
},
|
|
8888
|
+
}, Yo = /[\uD800-\uDFFF]/u, Pr = /in(?:stanceof)?/y;
|
|
8849
8889
|
function Jo(t, e, r) {
|
|
8850
8890
|
for (let s = 0; s < t.length; s++) {
|
|
8851
8891
|
const i = t[s], {
|
|
@@ -9217,7 +9257,7 @@ class qo extends $o {
|
|
|
9217
9257
|
parseSwitchStatement(e) {
|
|
9218
9258
|
this.next(), e.discriminant = this.parseHeaderExpression();
|
|
9219
9259
|
const r = e.cases = [];
|
|
9220
|
-
this.expect(5), this.state.labels.push(
|
|
9260
|
+
this.expect(5), this.state.labels.push(Xo), this.scope.enter(0);
|
|
9221
9261
|
let s;
|
|
9222
9262
|
for (let i; !this.match(8); )
|
|
9223
9263
|
if (this.match(61) || this.match(65)) {
|
|
@@ -9260,7 +9300,7 @@ class qo extends $o {
|
|
|
9260
9300
|
n.name === r && this.raise(x.LabelRedeclaration, s, {
|
|
9261
9301
|
labelName: r
|
|
9262
9302
|
});
|
|
9263
|
-
const a =
|
|
9303
|
+
const a = _n(this.state.type) ? 1 : this.match(71) ? 2 : null;
|
|
9264
9304
|
for (let n = this.state.labels.length - 1; n >= 0; n--) {
|
|
9265
9305
|
const o = this.state.labels[n];
|
|
9266
9306
|
if (o.statementStart === e.start)
|
|
@@ -9725,7 +9765,7 @@ class qo extends $o {
|
|
|
9725
9765
|
}
|
|
9726
9766
|
parseModuleExportName() {
|
|
9727
9767
|
if (this.match(134)) {
|
|
9728
|
-
const e = this.parseStringLiteral(this.state.value), r =
|
|
9768
|
+
const e = this.parseStringLiteral(this.state.value), r = Yo.exec(e.value);
|
|
9729
9769
|
return r && this.raise(x.ModuleExportNameHasLoneSurrogate, e, {
|
|
9730
9770
|
surrogateCharCode: r[0].charCodeAt(0)
|
|
9731
9771
|
}), e;
|
|
@@ -10303,7 +10343,7 @@ if (__lithentModuleHotStore) {
|
|
|
10303
10343
|
}
|
|
10304
10344
|
return t.length;
|
|
10305
10345
|
};
|
|
10306
|
-
var gr = {}, Vt = {}, $t = {},
|
|
10346
|
+
var gr = {}, Vt = {}, $t = {}, Xt = {}, d = {}, ot = {};
|
|
10307
10347
|
Object.defineProperty(ot, "__esModule", {
|
|
10308
10348
|
value: !0
|
|
10309
10349
|
});
|
|
@@ -10315,11 +10355,11 @@ function ul(t, e) {
|
|
|
10315
10355
|
return !1;
|
|
10316
10356
|
return !0;
|
|
10317
10357
|
}
|
|
10318
|
-
var
|
|
10319
|
-
Object.defineProperty(
|
|
10358
|
+
var Xe = {};
|
|
10359
|
+
Object.defineProperty(Xe, "__esModule", {
|
|
10320
10360
|
value: !0
|
|
10321
10361
|
});
|
|
10322
|
-
|
|
10362
|
+
Xe.default = cl;
|
|
10323
10363
|
const ei = /* @__PURE__ */ new Set();
|
|
10324
10364
|
function cl(t, e, r = "", s = t) {
|
|
10325
10365
|
if (ei.has(s)) return;
|
|
@@ -10362,7 +10402,7 @@ d.isArrayTypeAnnotation = Wu;
|
|
|
10362
10402
|
d.isArrowFunctionExpression = pu;
|
|
10363
10403
|
d.isAssignmentExpression = dl;
|
|
10364
10404
|
d.isAssignmentPattern = uu;
|
|
10365
|
-
d.isAwaitExpression =
|
|
10405
|
+
d.isAwaitExpression = _u;
|
|
10366
10406
|
d.isBigIntLiteral = Bu;
|
|
10367
10407
|
d.isBinary = Qf;
|
|
10368
10408
|
d.isBinaryExpression = hl;
|
|
@@ -10435,8 +10475,8 @@ d.isExpressionStatement = Cl;
|
|
|
10435
10475
|
d.isExpressionWrapper = ld;
|
|
10436
10476
|
d.isFile = Nl;
|
|
10437
10477
|
d.isFlow = Ld;
|
|
10438
|
-
d.isFlowBaseAnnotation =
|
|
10439
|
-
d.isFlowDeclaration =
|
|
10478
|
+
d.isFlowBaseAnnotation = _d;
|
|
10479
|
+
d.isFlowDeclaration = Md;
|
|
10440
10480
|
d.isFlowPredicate = Bd;
|
|
10441
10481
|
d.isFlowType = kd;
|
|
10442
10482
|
d.isFor = ud;
|
|
@@ -10453,9 +10493,9 @@ d.isFunctionTypeAnnotation = pc;
|
|
|
10453
10493
|
d.isFunctionTypeParam = fc;
|
|
10454
10494
|
d.isGenericTypeAnnotation = dc;
|
|
10455
10495
|
d.isIdentifier = kl;
|
|
10456
|
-
d.isIfStatement =
|
|
10496
|
+
d.isIfStatement = _l;
|
|
10457
10497
|
d.isImmutable = bd;
|
|
10458
|
-
d.isImport =
|
|
10498
|
+
d.isImport = Mu;
|
|
10459
10499
|
d.isImportAttribute = Ju;
|
|
10460
10500
|
d.isImportDeclaration = bu;
|
|
10461
10501
|
d.isImportDefaultSpecifier = Eu;
|
|
@@ -10487,7 +10527,7 @@ d.isJSXSpreadAttribute = hp;
|
|
|
10487
10527
|
d.isJSXSpreadChild = up;
|
|
10488
10528
|
d.isJSXText = yp;
|
|
10489
10529
|
d.isLVal = Td;
|
|
10490
|
-
d.isLabeledStatement =
|
|
10530
|
+
d.isLabeledStatement = Ml;
|
|
10491
10531
|
d.isLiteral = xd;
|
|
10492
10532
|
d.isLogicalExpression = Ul;
|
|
10493
10533
|
d.isLoop = nd;
|
|
@@ -10504,11 +10544,11 @@ d.isNoop = xp;
|
|
|
10504
10544
|
d.isNullLiteral = Rl;
|
|
10505
10545
|
d.isNullLiteralTypeAnnotation = Gu;
|
|
10506
10546
|
d.isNullableTypeAnnotation = Ec;
|
|
10507
|
-
d.isNumberLiteral =
|
|
10547
|
+
d.isNumberLiteral = Yd;
|
|
10508
10548
|
d.isNumberLiteralTypeAnnotation = Pc;
|
|
10509
10549
|
d.isNumberTypeAnnotation = gc;
|
|
10510
10550
|
d.isNumericLiteral = Fl;
|
|
10511
|
-
d.isObjectExpression =
|
|
10551
|
+
d.isObjectExpression = Yl;
|
|
10512
10552
|
d.isObjectMember = gd;
|
|
10513
10553
|
d.isObjectMethod = Jl;
|
|
10514
10554
|
d.isObjectPattern = Cu;
|
|
@@ -10527,12 +10567,12 @@ d.isParenthesizedExpression = Gl;
|
|
|
10527
10567
|
d.isPattern = vd;
|
|
10528
10568
|
d.isPatternLike = md;
|
|
10529
10569
|
d.isPipelineBareFunction = kp;
|
|
10530
|
-
d.isPipelinePrimaryTopicReference =
|
|
10570
|
+
d.isPipelinePrimaryTopicReference = _p;
|
|
10531
10571
|
d.isPipelineTopicExpression = Lp;
|
|
10532
10572
|
d.isPlaceholder = bp;
|
|
10533
10573
|
d.isPrivate = Dd;
|
|
10534
|
-
d.isPrivateName =
|
|
10535
|
-
d.isProgram =
|
|
10574
|
+
d.isPrivateName = Xu;
|
|
10575
|
+
d.isProgram = Xl;
|
|
10536
10576
|
d.isProperty = Ad;
|
|
10537
10577
|
d.isPureish = dd;
|
|
10538
10578
|
d.isQualifiedTypeIdentifier = Dc;
|
|
@@ -10548,18 +10588,18 @@ d.isSpreadElement = Nu;
|
|
|
10548
10588
|
d.isSpreadProperty = Wd;
|
|
10549
10589
|
d.isStandardized = zf;
|
|
10550
10590
|
d.isStatement = rd;
|
|
10551
|
-
d.isStaticBlock =
|
|
10591
|
+
d.isStaticBlock = Yu;
|
|
10552
10592
|
d.isStringLiteral = Bl;
|
|
10553
10593
|
d.isStringLiteralTypeAnnotation = Lc;
|
|
10554
10594
|
d.isStringTypeAnnotation = kc;
|
|
10555
10595
|
d.isSuper = wu;
|
|
10556
10596
|
d.isSwitchCase = Ql;
|
|
10557
10597
|
d.isSwitchStatement = Zl;
|
|
10558
|
-
d.isSymbolTypeAnnotation =
|
|
10559
|
-
d.isTSAnyKeyword =
|
|
10598
|
+
d.isSymbolTypeAnnotation = _c;
|
|
10599
|
+
d.isTSAnyKeyword = Yp;
|
|
10560
10600
|
d.isTSArrayType = ff;
|
|
10561
10601
|
d.isTSAsExpression = Lf;
|
|
10562
|
-
d.isTSBaseType =
|
|
10602
|
+
d.isTSBaseType = Xd;
|
|
10563
10603
|
d.isTSBigIntKeyword = qp;
|
|
10564
10604
|
d.isTSBooleanKeyword = Jp;
|
|
10565
10605
|
d.isTSCallSignatureDeclaration = Kp;
|
|
@@ -10569,16 +10609,16 @@ d.isTSConstructorType = of;
|
|
|
10569
10609
|
d.isTSDeclareFunction = Fp;
|
|
10570
10610
|
d.isTSDeclareMethod = Rp;
|
|
10571
10611
|
d.isTSEntityName = Sd;
|
|
10572
|
-
d.isTSEnumBody =
|
|
10612
|
+
d.isTSEnumBody = Mf;
|
|
10573
10613
|
d.isTSEnumDeclaration = Bf;
|
|
10574
10614
|
d.isTSEnumMember = Ff;
|
|
10575
|
-
d.isTSExportAssignment =
|
|
10615
|
+
d.isTSExportAssignment = Xf;
|
|
10576
10616
|
d.isTSExpressionWithTypeArguments = Cf;
|
|
10577
10617
|
d.isTSExternalModuleReference = Vf;
|
|
10578
10618
|
d.isTSFunctionType = nf;
|
|
10579
10619
|
d.isTSImportEqualsDeclaration = Uf;
|
|
10580
10620
|
d.isTSImportType = Kf;
|
|
10581
|
-
d.isTSIndexSignature =
|
|
10621
|
+
d.isTSIndexSignature = Xp;
|
|
10582
10622
|
d.isTSIndexedAccessType = gf;
|
|
10583
10623
|
d.isTSInferType = bf;
|
|
10584
10624
|
d.isTSInstantiationExpression = Df;
|
|
@@ -10592,7 +10632,7 @@ d.isTSMethodSignature = $p;
|
|
|
10592
10632
|
d.isTSModuleBlock = jf;
|
|
10593
10633
|
d.isTSModuleDeclaration = Rf;
|
|
10594
10634
|
d.isTSNamedTupleMember = mf;
|
|
10595
|
-
d.isTSNamespaceExportDeclaration =
|
|
10635
|
+
d.isTSNamespaceExportDeclaration = Yf;
|
|
10596
10636
|
d.isTSNeverKeyword = Hp;
|
|
10597
10637
|
d.isTSNonNullExpression = $f;
|
|
10598
10638
|
d.isTSNullKeyword = zp;
|
|
@@ -10613,7 +10653,7 @@ d.isTSTupleType = df;
|
|
|
10613
10653
|
d.isTSType = $d;
|
|
10614
10654
|
d.isTSTypeAliasDeclaration = Of;
|
|
10615
10655
|
d.isTSTypeAnnotation = Jf;
|
|
10616
|
-
d.isTSTypeAssertion =
|
|
10656
|
+
d.isTSTypeAssertion = _f;
|
|
10617
10657
|
d.isTSTypeElement = Vd;
|
|
10618
10658
|
d.isTSTypeLiteral = pf;
|
|
10619
10659
|
d.isTSTypeOperator = Pf;
|
|
@@ -10632,7 +10672,7 @@ d.isTemplateElement = Du;
|
|
|
10632
10672
|
d.isTemplateLiteral = Lu;
|
|
10633
10673
|
d.isTerminatorless = sd;
|
|
10634
10674
|
d.isThisExpression = eu;
|
|
10635
|
-
d.isThisTypeAnnotation =
|
|
10675
|
+
d.isThisTypeAnnotation = Mc;
|
|
10636
10676
|
d.isThrowStatement = tu;
|
|
10637
10677
|
d.isTopicReference = Dp;
|
|
10638
10678
|
d.isTryStatement = ru;
|
|
@@ -10648,20 +10688,20 @@ d.isTypeScript = Ud;
|
|
|
10648
10688
|
d.isTypeofTypeAnnotation = Fc;
|
|
10649
10689
|
d.isUnaryExpression = su;
|
|
10650
10690
|
d.isUnaryLike = Id;
|
|
10651
|
-
d.isUnionTypeAnnotation =
|
|
10691
|
+
d.isUnionTypeAnnotation = Xc;
|
|
10652
10692
|
d.isUpdateExpression = iu;
|
|
10653
10693
|
d.isUserWhitespacable = Ed;
|
|
10654
10694
|
d.isV8IntrinsicIdentifier = Ep;
|
|
10655
10695
|
d.isVariableDeclaration = au;
|
|
10656
10696
|
d.isVariableDeclarator = nu;
|
|
10657
|
-
d.isVariance =
|
|
10658
|
-
d.isVoidPattern =
|
|
10697
|
+
d.isVariance = Yc;
|
|
10698
|
+
d.isVoidPattern = Mp;
|
|
10659
10699
|
d.isVoidTypeAnnotation = Jc;
|
|
10660
10700
|
d.isWhile = od;
|
|
10661
10701
|
d.isWhileStatement = ou;
|
|
10662
10702
|
d.isWithStatement = lu;
|
|
10663
10703
|
d.isYieldExpression = ku;
|
|
10664
|
-
var T = ot, lt =
|
|
10704
|
+
var T = ot, lt = Xe;
|
|
10665
10705
|
function fl(t, e) {
|
|
10666
10706
|
return !t || t.type !== "ArrayExpression" ? !1 : e == null || (0, T.default)(t, e);
|
|
10667
10707
|
}
|
|
@@ -10728,10 +10768,10 @@ function Ll(t, e) {
|
|
|
10728
10768
|
function kl(t, e) {
|
|
10729
10769
|
return !t || t.type !== "Identifier" ? !1 : e == null || (0, T.default)(t, e);
|
|
10730
10770
|
}
|
|
10731
|
-
function
|
|
10771
|
+
function _l(t, e) {
|
|
10732
10772
|
return !t || t.type !== "IfStatement" ? !1 : e == null || (0, T.default)(t, e);
|
|
10733
10773
|
}
|
|
10734
|
-
function
|
|
10774
|
+
function Ml(t, e) {
|
|
10735
10775
|
return !t || t.type !== "LabeledStatement" ? !1 : e == null || (0, T.default)(t, e);
|
|
10736
10776
|
}
|
|
10737
10777
|
function Bl(t, e) {
|
|
@@ -10758,10 +10798,10 @@ function Vl(t, e) {
|
|
|
10758
10798
|
function $l(t, e) {
|
|
10759
10799
|
return !t || t.type !== "NewExpression" ? !1 : e == null || (0, T.default)(t, e);
|
|
10760
10800
|
}
|
|
10761
|
-
function
|
|
10801
|
+
function Xl(t, e) {
|
|
10762
10802
|
return !t || t.type !== "Program" ? !1 : e == null || (0, T.default)(t, e);
|
|
10763
10803
|
}
|
|
10764
|
-
function
|
|
10804
|
+
function Yl(t, e) {
|
|
10765
10805
|
return !t || t.type !== "ObjectExpression" ? !1 : e == null || (0, T.default)(t, e);
|
|
10766
10806
|
}
|
|
10767
10807
|
function Jl(t, e) {
|
|
@@ -10890,10 +10930,10 @@ function Lu(t, e) {
|
|
|
10890
10930
|
function ku(t, e) {
|
|
10891
10931
|
return !t || t.type !== "YieldExpression" ? !1 : e == null || (0, T.default)(t, e);
|
|
10892
10932
|
}
|
|
10893
|
-
function
|
|
10933
|
+
function _u(t, e) {
|
|
10894
10934
|
return !t || t.type !== "AwaitExpression" ? !1 : e == null || (0, T.default)(t, e);
|
|
10895
10935
|
}
|
|
10896
|
-
function
|
|
10936
|
+
function Mu(t, e) {
|
|
10897
10937
|
return !t || t.type !== "Import" ? !1 : e == null || (0, T.default)(t, e);
|
|
10898
10938
|
}
|
|
10899
10939
|
function Bu(t, e) {
|
|
@@ -10920,10 +10960,10 @@ function Vu(t, e) {
|
|
|
10920
10960
|
function $u(t, e) {
|
|
10921
10961
|
return !t || t.type !== "ClassPrivateMethod" ? !1 : e == null || (0, T.default)(t, e);
|
|
10922
10962
|
}
|
|
10923
|
-
function
|
|
10963
|
+
function Xu(t, e) {
|
|
10924
10964
|
return !t || t.type !== "PrivateName" ? !1 : e == null || (0, T.default)(t, e);
|
|
10925
10965
|
}
|
|
10926
|
-
function
|
|
10966
|
+
function Yu(t, e) {
|
|
10927
10967
|
return !t || t.type !== "StaticBlock" ? !1 : e == null || (0, T.default)(t, e);
|
|
10928
10968
|
}
|
|
10929
10969
|
function Ju(t, e) {
|
|
@@ -11052,10 +11092,10 @@ function Lc(t, e) {
|
|
|
11052
11092
|
function kc(t, e) {
|
|
11053
11093
|
return !t || t.type !== "StringTypeAnnotation" ? !1 : e == null || (0, T.default)(t, e);
|
|
11054
11094
|
}
|
|
11055
|
-
function
|
|
11095
|
+
function _c(t, e) {
|
|
11056
11096
|
return !t || t.type !== "SymbolTypeAnnotation" ? !1 : e == null || (0, T.default)(t, e);
|
|
11057
11097
|
}
|
|
11058
|
-
function
|
|
11098
|
+
function Mc(t, e) {
|
|
11059
11099
|
return !t || t.type !== "ThisTypeAnnotation" ? !1 : e == null || (0, T.default)(t, e);
|
|
11060
11100
|
}
|
|
11061
11101
|
function Bc(t, e) {
|
|
@@ -11082,10 +11122,10 @@ function Vc(t, e) {
|
|
|
11082
11122
|
function $c(t, e) {
|
|
11083
11123
|
return !t || t.type !== "TypeParameterInstantiation" ? !1 : e == null || (0, T.default)(t, e);
|
|
11084
11124
|
}
|
|
11085
|
-
function
|
|
11125
|
+
function Xc(t, e) {
|
|
11086
11126
|
return !t || t.type !== "UnionTypeAnnotation" ? !1 : e == null || (0, T.default)(t, e);
|
|
11087
11127
|
}
|
|
11088
|
-
function
|
|
11128
|
+
function Yc(t, e) {
|
|
11089
11129
|
return !t || t.type !== "Variance" ? !1 : e == null || (0, T.default)(t, e);
|
|
11090
11130
|
}
|
|
11091
11131
|
function Jc(t, e) {
|
|
@@ -11214,10 +11254,10 @@ function Lp(t, e) {
|
|
|
11214
11254
|
function kp(t, e) {
|
|
11215
11255
|
return !t || t.type !== "PipelineBareFunction" ? !1 : e == null || (0, T.default)(t, e);
|
|
11216
11256
|
}
|
|
11217
|
-
function
|
|
11257
|
+
function _p(t, e) {
|
|
11218
11258
|
return !t || t.type !== "PipelinePrimaryTopicReference" ? !1 : e == null || (0, T.default)(t, e);
|
|
11219
11259
|
}
|
|
11220
|
-
function
|
|
11260
|
+
function Mp(t, e) {
|
|
11221
11261
|
return !t || t.type !== "VoidPattern" ? !1 : e == null || (0, T.default)(t, e);
|
|
11222
11262
|
}
|
|
11223
11263
|
function Bp(t, e) {
|
|
@@ -11244,10 +11284,10 @@ function Vp(t, e) {
|
|
|
11244
11284
|
function $p(t, e) {
|
|
11245
11285
|
return !t || t.type !== "TSMethodSignature" ? !1 : e == null || (0, T.default)(t, e);
|
|
11246
11286
|
}
|
|
11247
|
-
function
|
|
11287
|
+
function Xp(t, e) {
|
|
11248
11288
|
return !t || t.type !== "TSIndexSignature" ? !1 : e == null || (0, T.default)(t, e);
|
|
11249
11289
|
}
|
|
11250
|
-
function
|
|
11290
|
+
function Yp(t, e) {
|
|
11251
11291
|
return !t || t.type !== "TSAnyKeyword" ? !1 : e == null || (0, T.default)(t, e);
|
|
11252
11292
|
}
|
|
11253
11293
|
function Jp(t, e) {
|
|
@@ -11373,10 +11413,10 @@ function Lf(t, e) {
|
|
|
11373
11413
|
function kf(t, e) {
|
|
11374
11414
|
return !t || t.type !== "TSSatisfiesExpression" ? !1 : e == null || (0, T.default)(t, e);
|
|
11375
11415
|
}
|
|
11376
|
-
function
|
|
11416
|
+
function _f(t, e) {
|
|
11377
11417
|
return !t || t.type !== "TSTypeAssertion" ? !1 : e == null || (0, T.default)(t, e);
|
|
11378
11418
|
}
|
|
11379
|
-
function
|
|
11419
|
+
function Mf(t, e) {
|
|
11380
11420
|
return !t || t.type !== "TSEnumBody" ? !1 : e == null || (0, T.default)(t, e);
|
|
11381
11421
|
}
|
|
11382
11422
|
function Bf(t, e) {
|
|
@@ -11403,10 +11443,10 @@ function Vf(t, e) {
|
|
|
11403
11443
|
function $f(t, e) {
|
|
11404
11444
|
return !t || t.type !== "TSNonNullExpression" ? !1 : e == null || (0, T.default)(t, e);
|
|
11405
11445
|
}
|
|
11406
|
-
function
|
|
11446
|
+
function Xf(t, e) {
|
|
11407
11447
|
return !t || t.type !== "TSExportAssignment" ? !1 : e == null || (0, T.default)(t, e);
|
|
11408
11448
|
}
|
|
11409
|
-
function
|
|
11449
|
+
function Yf(t, e) {
|
|
11410
11450
|
return !t || t.type !== "TSNamespaceExportDeclaration" ? !1 : e == null || (0, T.default)(t, e);
|
|
11411
11451
|
}
|
|
11412
11452
|
function Jf(t, e) {
|
|
@@ -12334,7 +12374,7 @@ function kd(t, e) {
|
|
|
12334
12374
|
}
|
|
12335
12375
|
return e == null || (0, T.default)(t, e);
|
|
12336
12376
|
}
|
|
12337
|
-
function
|
|
12377
|
+
function _d(t, e) {
|
|
12338
12378
|
if (!t) return !1;
|
|
12339
12379
|
switch (t.type) {
|
|
12340
12380
|
case "AnyTypeAnnotation":
|
|
@@ -12353,7 +12393,7 @@ function Md(t, e) {
|
|
|
12353
12393
|
}
|
|
12354
12394
|
return e == null || (0, T.default)(t, e);
|
|
12355
12395
|
}
|
|
12356
|
-
function
|
|
12396
|
+
function Md(t, e) {
|
|
12357
12397
|
if (!t) return !1;
|
|
12358
12398
|
switch (t.type) {
|
|
12359
12399
|
case "DeclareClass":
|
|
@@ -12583,7 +12623,7 @@ function $d(t, e) {
|
|
|
12583
12623
|
}
|
|
12584
12624
|
return e == null || (0, T.default)(t, e);
|
|
12585
12625
|
}
|
|
12586
|
-
function
|
|
12626
|
+
function Xd(t, e) {
|
|
12587
12627
|
if (!t) return !1;
|
|
12588
12628
|
switch (t.type) {
|
|
12589
12629
|
case "TSAnyKeyword":
|
|
@@ -12608,7 +12648,7 @@ function Yd(t, e) {
|
|
|
12608
12648
|
}
|
|
12609
12649
|
return e == null || (0, T.default)(t, e);
|
|
12610
12650
|
}
|
|
12611
|
-
function
|
|
12651
|
+
function Yd(t, e) {
|
|
12612
12652
|
return (0, lt.default)("isNumberLiteral", "isNumericLiteral"), !t || t.type !== "NumberLiteral" ? !1 : e == null || (0, T.default)(t, e);
|
|
12613
12653
|
}
|
|
12614
12654
|
function Jd(t, e) {
|
|
@@ -12623,13 +12663,13 @@ function Wd(t, e) {
|
|
|
12623
12663
|
function Hd(t, e) {
|
|
12624
12664
|
return (0, lt.default)("isModuleDeclaration", "isImportOrExportDeclaration"), ia(t, e);
|
|
12625
12665
|
}
|
|
12626
|
-
Object.defineProperty(
|
|
12666
|
+
Object.defineProperty(Xt, "__esModule", {
|
|
12627
12667
|
value: !0
|
|
12628
12668
|
});
|
|
12629
|
-
|
|
12630
|
-
var
|
|
12669
|
+
Xt.default = zd;
|
|
12670
|
+
var _e = d;
|
|
12631
12671
|
function ti(t) {
|
|
12632
|
-
return (0,
|
|
12672
|
+
return (0, _e.isMemberExpression)(t) || (0, _e.isMetaProperty)(t);
|
|
12633
12673
|
}
|
|
12634
12674
|
function zd(t, e, r) {
|
|
12635
12675
|
if (!ti(t)) return !1;
|
|
@@ -12643,15 +12683,15 @@ function zd(t, e, r) {
|
|
|
12643
12683
|
for (let o = 0, u = i.length - 1; o < s.length; o++, u--) {
|
|
12644
12684
|
const p = i[u];
|
|
12645
12685
|
let h;
|
|
12646
|
-
if ((0,
|
|
12686
|
+
if ((0, _e.isIdentifier)(p))
|
|
12647
12687
|
h = p.name;
|
|
12648
|
-
else if ((0,
|
|
12688
|
+
else if ((0, _e.isStringLiteral)(p))
|
|
12649
12689
|
h = p.value;
|
|
12650
|
-
else if ((0,
|
|
12690
|
+
else if ((0, _e.isThisExpression)(p))
|
|
12651
12691
|
h = "this";
|
|
12652
|
-
else if ((0,
|
|
12692
|
+
else if ((0, _e.isSuper)(p))
|
|
12653
12693
|
h = "super";
|
|
12654
|
-
else if ((0,
|
|
12694
|
+
else if ((0, _e.isPrivateName)(p))
|
|
12655
12695
|
h = "#" + p.id.name;
|
|
12656
12696
|
else
|
|
12657
12697
|
return !1;
|
|
@@ -12663,7 +12703,7 @@ Object.defineProperty($t, "__esModule", {
|
|
|
12663
12703
|
value: !0
|
|
12664
12704
|
});
|
|
12665
12705
|
$t.default = Qd;
|
|
12666
|
-
var Gd =
|
|
12706
|
+
var Gd = Xt;
|
|
12667
12707
|
function Qd(t, e) {
|
|
12668
12708
|
const r = t.split(".");
|
|
12669
12709
|
return (s) => (0, Gd.default)(s, r, e);
|
|
@@ -12724,7 +12764,7 @@ function ut() {
|
|
|
12724
12764
|
}
|
|
12725
12765
|
return Pt;
|
|
12726
12766
|
}
|
|
12727
|
-
var Be = {},
|
|
12767
|
+
var Be = {}, Yt = {}, ct = {};
|
|
12728
12768
|
Object.defineProperty(ct, "__esModule", {
|
|
12729
12769
|
value: !0
|
|
12730
12770
|
});
|
|
@@ -12839,12 +12879,12 @@ function ch(t) {
|
|
|
12839
12879
|
}
|
|
12840
12880
|
});
|
|
12841
12881
|
var e = ct, r = Fe;
|
|
12842
|
-
})(
|
|
12882
|
+
})(Yt);
|
|
12843
12883
|
Object.defineProperty(Be, "__esModule", {
|
|
12844
12884
|
value: !0
|
|
12845
12885
|
});
|
|
12846
12886
|
Be.default = ph;
|
|
12847
|
-
var Ir =
|
|
12887
|
+
var Ir = Yt;
|
|
12848
12888
|
function ph(t, e = !0) {
|
|
12849
12889
|
return typeof t != "string" || e && ((0, Ir.isKeyword)(t) || (0, Ir.isStrictReservedWord)(t, !0)) ? !1 : (0, Ir.isIdentifierName)(t);
|
|
12850
12890
|
}
|
|
@@ -12930,7 +12970,7 @@ function yh(t, e, r, s, i, a) {
|
|
|
12930
12970
|
return {
|
|
12931
12971
|
code: p,
|
|
12932
12972
|
pos: e
|
|
12933
|
-
} =
|
|
12973
|
+
} = _r(t, e, r, s, 2, !1, n, a), o(p === null ? null : String.fromCharCode(p));
|
|
12934
12974
|
}
|
|
12935
12975
|
case 117: {
|
|
12936
12976
|
let p;
|
|
@@ -12975,7 +13015,7 @@ function yh(t, e, r, s, i, a) {
|
|
|
12975
13015
|
return o(String.fromCharCode(u));
|
|
12976
13016
|
}
|
|
12977
13017
|
}
|
|
12978
|
-
function
|
|
13018
|
+
function _r(t, e, r, s, i, a, n, o) {
|
|
12979
13019
|
const u = e;
|
|
12980
13020
|
let p;
|
|
12981
13021
|
return {
|
|
@@ -13042,7 +13082,7 @@ function ha(t, e, r, s, i, a) {
|
|
|
13042
13082
|
if (++e, {
|
|
13043
13083
|
code: o,
|
|
13044
13084
|
pos: e
|
|
13045
|
-
} =
|
|
13085
|
+
} = _r(t, e, r, s, t.indexOf("}", e) - e, !0, i, a), ++e, o !== null && o > 1114111)
|
|
13046
13086
|
if (i)
|
|
13047
13087
|
a.invalidCodePoint(e, r, s);
|
|
13048
13088
|
else
|
|
@@ -13054,7 +13094,7 @@ function ha(t, e, r, s, i, a) {
|
|
|
13054
13094
|
({
|
|
13055
13095
|
code: o,
|
|
13056
13096
|
pos: e
|
|
13057
|
-
} =
|
|
13097
|
+
} = _r(t, e, r, s, 4, !1, i, a));
|
|
13058
13098
|
return {
|
|
13059
13099
|
code: o,
|
|
13060
13100
|
pos: e
|
|
@@ -13081,14 +13121,14 @@ U.INHERIT_KEYS = {
|
|
|
13081
13121
|
force: ["start", "loc", "end"]
|
|
13082
13122
|
};
|
|
13083
13123
|
U.BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped"), U.NOT_LOCAL_BINDING = Symbol.for("should not be considered a local binding");
|
|
13084
|
-
var
|
|
13124
|
+
var X = {}, ni;
|
|
13085
13125
|
function be() {
|
|
13086
|
-
if (ni) return
|
|
13087
|
-
ni = 1, Object.defineProperty(
|
|
13126
|
+
if (ni) return X;
|
|
13127
|
+
ni = 1, Object.defineProperty(X, "__esModule", {
|
|
13088
13128
|
value: !0
|
|
13089
|
-
}),
|
|
13129
|
+
}), X.allExpandedTypes = X.VISITOR_KEYS = X.NODE_UNION_SHAPES__PRIVATE = X.NODE_PARENT_VALIDATIONS = X.NODE_FIELDS = X.FLIPPED_ALIAS_KEYS = X.DEPRECATED_KEYS = X.BUILDER_KEYS = X.ALIAS_KEYS = void 0, X.arrayOf = A, X.arrayOfType = O, X.assertEach = C, X.assertNodeOrValueType = Re, X.assertNodeType = re, X.assertOneOf = B, X.assertOptionalChainStart = Je, X.assertShape = ne, X.assertValueType = Pe, X.chain = yt, X.default = mt, X.defineAliasedType = mr, X.validate = E, X.validateArrayOfType = I, X.validateOptional = g, X.validateOptionalType = N, X.validateType = P;
|
|
13090
13130
|
var t = ut(), e = ts();
|
|
13091
|
-
const r =
|
|
13131
|
+
const r = X.VISITOR_KEYS = {}, s = X.ALIAS_KEYS = {}, i = X.FLIPPED_ALIAS_KEYS = {}, a = X.NODE_FIELDS = {}, n = X.BUILDER_KEYS = {}, o = X.DEPRECATED_KEYS = {}, u = X.NODE_PARENT_VALIDATIONS = {}, p = X.NODE_UNION_SHAPES__PRIVATE = {};
|
|
13092
13132
|
function h(L) {
|
|
13093
13133
|
return Array.isArray(L) ? "array" : L === null ? "null" : typeof L;
|
|
13094
13134
|
}
|
|
@@ -13146,7 +13186,7 @@ function be() {
|
|
|
13146
13186
|
}
|
|
13147
13187
|
return j.oneOf = L, j;
|
|
13148
13188
|
}
|
|
13149
|
-
const K =
|
|
13189
|
+
const K = X.allExpandedTypes = [];
|
|
13150
13190
|
function re(...L) {
|
|
13151
13191
|
const j = /* @__PURE__ */ new Set();
|
|
13152
13192
|
K.push({
|
|
@@ -13292,7 +13332,7 @@ ${G.join(`
|
|
|
13292
13332
|
i[z] = i[z] || [], i[z].push(L);
|
|
13293
13333
|
}), j.validate && (u[L] = j.validate), j.unionShape && (p[L] = j.unionShape), qe[L] = j;
|
|
13294
13334
|
}
|
|
13295
|
-
return
|
|
13335
|
+
return X;
|
|
13296
13336
|
}
|
|
13297
13337
|
var oi;
|
|
13298
13338
|
function Jt() {
|
|
@@ -13300,7 +13340,7 @@ function Jt() {
|
|
|
13300
13340
|
oi = 1, Object.defineProperty(te, "__esModule", {
|
|
13301
13341
|
value: !0
|
|
13302
13342
|
}), te.patternLikeCommon = te.importAttributes = te.functionTypeAnnotationCommon = te.functionDeclarationCommon = te.functionCommon = te.classMethodOrPropertyUnionShapeCommon = te.classMethodOrPropertyCommon = te.classMethodOrDeclareMethodCommon = void 0;
|
|
13303
|
-
var t = ut(), e = Be, r =
|
|
13343
|
+
var t = ut(), e = Be, r = Yt, s = pt, i = U, a = be();
|
|
13304
13344
|
const n = (A = !1) => ({
|
|
13305
13345
|
unionShape: {
|
|
13306
13346
|
discriminator: "computed",
|
|
@@ -16193,7 +16233,7 @@ f.assignmentExpression = kh;
|
|
|
16193
16233
|
f.assignmentPattern = vy;
|
|
16194
16234
|
f.awaitExpression = zy;
|
|
16195
16235
|
f.bigIntLiteral = Dh;
|
|
16196
|
-
f.binaryExpression =
|
|
16236
|
+
f.binaryExpression = _h;
|
|
16197
16237
|
f.bindExpression = RT;
|
|
16198
16238
|
f.blockStatement = Rh;
|
|
16199
16239
|
f.booleanLiteral = iy;
|
|
@@ -16213,8 +16253,8 @@ f.classPrivateProperty = sm;
|
|
|
16213
16253
|
f.classProperty = tm;
|
|
16214
16254
|
f.conditionalExpression = Vh;
|
|
16215
16255
|
f.continueStatement = $h;
|
|
16216
|
-
f.debuggerStatement =
|
|
16217
|
-
f.decimalLiteral =
|
|
16256
|
+
f.debuggerStatement = Xh;
|
|
16257
|
+
f.decimalLiteral = XT;
|
|
16218
16258
|
f.declareClass = hm;
|
|
16219
16259
|
f.declareExportAllDeclaration = gm;
|
|
16220
16260
|
f.declareExportDeclaration = Pm;
|
|
@@ -16230,9 +16270,9 @@ f.decorator = jT;
|
|
|
16230
16270
|
f.directive = Bh;
|
|
16231
16271
|
f.directiveLiteral = Fh;
|
|
16232
16272
|
f.doExpression = KT;
|
|
16233
|
-
f.doWhileStatement =
|
|
16273
|
+
f.doWhileStatement = Yh;
|
|
16234
16274
|
f.emptyStatement = Jh;
|
|
16235
|
-
f.emptyTypeAnnotation =
|
|
16275
|
+
f.emptyTypeAnnotation = Mm;
|
|
16236
16276
|
f.enumBooleanBody = uT;
|
|
16237
16277
|
f.enumBooleanMember = dT;
|
|
16238
16278
|
f.enumDeclaration = lT;
|
|
@@ -16246,9 +16286,9 @@ f.existsTypeAnnotation = Im;
|
|
|
16246
16286
|
f.exportAllDeclaration = Ly;
|
|
16247
16287
|
f.exportDefaultDeclaration = ky;
|
|
16248
16288
|
f.exportDefaultSpecifier = UT;
|
|
16249
|
-
f.exportNamedDeclaration =
|
|
16289
|
+
f.exportNamedDeclaration = _y;
|
|
16250
16290
|
f.exportNamespaceSpecifier = Qy;
|
|
16251
|
-
f.exportSpecifier =
|
|
16291
|
+
f.exportSpecifier = My;
|
|
16252
16292
|
f.expressionStatement = qh;
|
|
16253
16293
|
f.file = Wh;
|
|
16254
16294
|
f.forInStatement = Hh;
|
|
@@ -16273,7 +16313,7 @@ f.inferredPredicate = wm;
|
|
|
16273
16313
|
f.interfaceDeclaration = Dm;
|
|
16274
16314
|
f.interfaceExtends = Om;
|
|
16275
16315
|
f.interfaceTypeAnnotation = Lm;
|
|
16276
|
-
f.interpreterDirective =
|
|
16316
|
+
f.interpreterDirective = Mh;
|
|
16277
16317
|
f.intersectionTypeAnnotation = km;
|
|
16278
16318
|
f.jSXAttribute = f.jsxAttribute = xT;
|
|
16279
16319
|
f.jSXClosingElement = f.jsxClosingElement = bT;
|
|
@@ -16294,10 +16334,10 @@ f.labeledStatement = ty;
|
|
|
16294
16334
|
f.logicalExpression = ay;
|
|
16295
16335
|
f.memberExpression = ny;
|
|
16296
16336
|
f.metaProperty = Vy;
|
|
16297
|
-
f.mixedTypeAnnotation =
|
|
16298
|
-
f.moduleExpression =
|
|
16337
|
+
f.mixedTypeAnnotation = _m;
|
|
16338
|
+
f.moduleExpression = YT;
|
|
16299
16339
|
f.newExpression = oy;
|
|
16300
|
-
f.noop =
|
|
16340
|
+
f.noop = _T;
|
|
16301
16341
|
f.nullLiteral = sy;
|
|
16302
16342
|
f.nullLiteralTypeAnnotation = fm;
|
|
16303
16343
|
f.nullableTypeAnnotation = Bm;
|
|
@@ -16307,15 +16347,15 @@ f.numberTypeAnnotation = Rm;
|
|
|
16307
16347
|
f.numericLiteral = Ta;
|
|
16308
16348
|
f.objectExpression = uy;
|
|
16309
16349
|
f.objectMethod = cy;
|
|
16310
|
-
f.objectPattern =
|
|
16350
|
+
f.objectPattern = Xy;
|
|
16311
16351
|
f.objectProperty = py;
|
|
16312
16352
|
f.objectTypeAnnotation = jm;
|
|
16313
16353
|
f.objectTypeCallProperty = Um;
|
|
16314
16354
|
f.objectTypeIndexer = Vm;
|
|
16315
16355
|
f.objectTypeInternalSlot = Km;
|
|
16316
16356
|
f.objectTypeProperty = $m;
|
|
16317
|
-
f.objectTypeSpreadProperty =
|
|
16318
|
-
f.opaqueType =
|
|
16357
|
+
f.objectTypeSpreadProperty = Xm;
|
|
16358
|
+
f.opaqueType = Ym;
|
|
16319
16359
|
f.optionalCallExpression = em;
|
|
16320
16360
|
f.optionalIndexedAccessType = ST;
|
|
16321
16361
|
f.optionalMemberExpression = Zy;
|
|
@@ -16323,7 +16363,7 @@ f.parenthesizedExpression = hy;
|
|
|
16323
16363
|
f.pipelineBareFunction = WT;
|
|
16324
16364
|
f.pipelinePrimaryTopicReference = HT;
|
|
16325
16365
|
f.pipelineTopicExpression = qT;
|
|
16326
|
-
f.placeholder =
|
|
16366
|
+
f.placeholder = MT;
|
|
16327
16367
|
f.privateName = am;
|
|
16328
16368
|
f.program = ly;
|
|
16329
16369
|
f.qualifiedTypeIdentifier = Jm;
|
|
@@ -16340,7 +16380,7 @@ f.staticBlock = nm;
|
|
|
16340
16380
|
f.stringLiteral = ry;
|
|
16341
16381
|
f.stringLiteralTypeAnnotation = qm;
|
|
16342
16382
|
f.stringTypeAnnotation = Wm;
|
|
16343
|
-
f.super =
|
|
16383
|
+
f.super = Yy;
|
|
16344
16384
|
f.switchCase = yy;
|
|
16345
16385
|
f.switchStatement = my;
|
|
16346
16386
|
f.symbolTypeAnnotation = Hm;
|
|
@@ -16374,8 +16414,8 @@ f.tSImportEqualsDeclaration = f.tsImportEqualsDeclaration = t0;
|
|
|
16374
16414
|
f.tSImportType = f.tsImportType = e0;
|
|
16375
16415
|
f.tSIndexSignature = f.tsIndexSignature = aS;
|
|
16376
16416
|
f.tSIndexedAccessType = f.tsIndexedAccessType = FS;
|
|
16377
|
-
f.tSInferType = f.tsInferType =
|
|
16378
|
-
f.tSInstantiationExpression = f.tsInstantiationExpression =
|
|
16417
|
+
f.tSInferType = f.tsInferType = _S;
|
|
16418
|
+
f.tSInstantiationExpression = f.tsInstantiationExpression = YS;
|
|
16379
16419
|
f.tSInterfaceBody = f.tsInterfaceBody = $S;
|
|
16380
16420
|
f.tSInterfaceDeclaration = f.tsInterfaceDeclaration = VS;
|
|
16381
16421
|
f.tSIntersectionType = f.tsIntersectionType = LS;
|
|
@@ -16394,7 +16434,7 @@ f.tSNumberKeyword = f.tsNumberKeyword = fS;
|
|
|
16394
16434
|
f.tSObjectKeyword = f.tsObjectKeyword = dS;
|
|
16395
16435
|
f.tSOptionalType = f.tsOptionalType = NS;
|
|
16396
16436
|
f.tSParameterProperty = f.tsParameterProperty = GT;
|
|
16397
|
-
f.tSParenthesizedType = f.tsParenthesizedType =
|
|
16437
|
+
f.tSParenthesizedType = f.tsParenthesizedType = MS;
|
|
16398
16438
|
f.tSPropertySignature = f.tsPropertySignature = sS;
|
|
16399
16439
|
f.tSQualifiedName = f.tsQualifiedName = eS;
|
|
16400
16440
|
f.tSRestType = f.tsRestType = wS;
|
|
@@ -16404,7 +16444,7 @@ f.tSSymbolKeyword = f.tsSymbolKeyword = yS;
|
|
|
16404
16444
|
f.tSTemplateLiteralType = f.tsTemplateLiteralType = jS;
|
|
16405
16445
|
f.tSThisType = f.tsThisType = xS;
|
|
16406
16446
|
f.tSTupleType = f.tsTupleType = CS;
|
|
16407
|
-
f.tSTypeAliasDeclaration = f.tsTypeAliasDeclaration =
|
|
16447
|
+
f.tSTypeAliasDeclaration = f.tsTypeAliasDeclaration = XS;
|
|
16408
16448
|
f.tSTypeAnnotation = f.tsTypeAnnotation = n0;
|
|
16409
16449
|
f.tSTypeAssertion = f.tsTypeAssertion = WS;
|
|
16410
16450
|
f.tSTypeLiteral = f.tsTypeLiteral = IS;
|
|
@@ -16440,7 +16480,7 @@ f.voidTypeAnnotation = oT;
|
|
|
16440
16480
|
f.whileStatement = Ay;
|
|
16441
16481
|
f.withStatement = Iy;
|
|
16442
16482
|
f.yieldExpression = Hy;
|
|
16443
|
-
var wh = ts(), Wt =
|
|
16483
|
+
var wh = ts(), Wt = Xe, Oh = be();
|
|
16444
16484
|
const {
|
|
16445
16485
|
validateInternal: c
|
|
16446
16486
|
} = wh, {
|
|
@@ -16470,7 +16510,7 @@ function kh(t, e, r) {
|
|
|
16470
16510
|
}, i = b.AssignmentExpression;
|
|
16471
16511
|
return c(i.operator, s, "operator", t), c(i.left, s, "left", e, 1), c(i.right, s, "right", r, 1), s;
|
|
16472
16512
|
}
|
|
16473
|
-
function
|
|
16513
|
+
function _h(t, e, r) {
|
|
16474
16514
|
const s = {
|
|
16475
16515
|
type: "BinaryExpression",
|
|
16476
16516
|
operator: t,
|
|
@@ -16479,7 +16519,7 @@ function Mh(t, e, r) {
|
|
|
16479
16519
|
}, i = b.BinaryExpression;
|
|
16480
16520
|
return c(i.operator, s, "operator", t), c(i.left, s, "left", e, 1), c(i.right, s, "right", r, 1), s;
|
|
16481
16521
|
}
|
|
16482
|
-
function
|
|
16522
|
+
function Mh(t) {
|
|
16483
16523
|
const e = {
|
|
16484
16524
|
type: "InterpreterDirective",
|
|
16485
16525
|
value: t
|
|
@@ -16547,12 +16587,12 @@ function $h(t = null) {
|
|
|
16547
16587
|
}, r = b.ContinueStatement;
|
|
16548
16588
|
return c(r.label, e, "label", t, 1), e;
|
|
16549
16589
|
}
|
|
16550
|
-
function
|
|
16590
|
+
function Xh() {
|
|
16551
16591
|
return {
|
|
16552
16592
|
type: "DebuggerStatement"
|
|
16553
16593
|
};
|
|
16554
16594
|
}
|
|
16555
|
-
function
|
|
16595
|
+
function Yh(t, e) {
|
|
16556
16596
|
const r = {
|
|
16557
16597
|
type: "DoWhileStatement",
|
|
16558
16598
|
test: t,
|
|
@@ -16929,7 +16969,7 @@ function ky(t) {
|
|
|
16929
16969
|
}, r = b.ExportDefaultDeclaration;
|
|
16930
16970
|
return c(r.declaration, e, "declaration", t, 1), e;
|
|
16931
16971
|
}
|
|
16932
|
-
function
|
|
16972
|
+
function _y(t = null, e = [], r = null) {
|
|
16933
16973
|
const s = {
|
|
16934
16974
|
type: "ExportNamedDeclaration",
|
|
16935
16975
|
declaration: t,
|
|
@@ -16938,7 +16978,7 @@ function My(t = null, e = [], r = null) {
|
|
|
16938
16978
|
}, i = b.ExportNamedDeclaration;
|
|
16939
16979
|
return c(i.declaration, s, "declaration", t, 1), c(i.specifiers, s, "specifiers", e, 1), c(i.source, s, "source", r, 1), s;
|
|
16940
16980
|
}
|
|
16941
|
-
function
|
|
16981
|
+
function My(t, e) {
|
|
16942
16982
|
const r = {
|
|
16943
16983
|
type: "ExportSpecifier",
|
|
16944
16984
|
local: t,
|
|
@@ -17016,7 +17056,7 @@ function $y(t = "method", e, r, s, i = !1, a = !1, n = !1, o = !1) {
|
|
|
17016
17056
|
}, p = b.ClassMethod;
|
|
17017
17057
|
return c(p.kind, u, "kind", t), c(p.key, u, "key", e, 1), c(p.params, u, "params", r, 1), c(p.body, u, "body", s, 1), c(p.computed, u, "computed", i), c(p.static, u, "static", a), c(p.generator, u, "generator", n), c(p.async, u, "async", o), u;
|
|
17018
17058
|
}
|
|
17019
|
-
function
|
|
17059
|
+
function Xy(t) {
|
|
17020
17060
|
const e = {
|
|
17021
17061
|
type: "ObjectPattern",
|
|
17022
17062
|
properties: t
|
|
@@ -17030,7 +17070,7 @@ function ba(t) {
|
|
|
17030
17070
|
}, r = b.SpreadElement;
|
|
17031
17071
|
return c(r.argument, e, "argument", t, 1), e;
|
|
17032
17072
|
}
|
|
17033
|
-
function
|
|
17073
|
+
function Yy() {
|
|
17034
17074
|
return {
|
|
17035
17075
|
type: "Super"
|
|
17036
17076
|
};
|
|
@@ -17371,12 +17411,12 @@ function km(t) {
|
|
|
17371
17411
|
}, r = b.IntersectionTypeAnnotation;
|
|
17372
17412
|
return c(r.types, e, "types", t, 1), e;
|
|
17373
17413
|
}
|
|
17374
|
-
function
|
|
17414
|
+
function _m() {
|
|
17375
17415
|
return {
|
|
17376
17416
|
type: "MixedTypeAnnotation"
|
|
17377
17417
|
};
|
|
17378
17418
|
}
|
|
17379
|
-
function
|
|
17419
|
+
function Mm() {
|
|
17380
17420
|
return {
|
|
17381
17421
|
type: "EmptyTypeAnnotation"
|
|
17382
17422
|
};
|
|
@@ -17455,14 +17495,14 @@ function $m(t, e, r = null) {
|
|
|
17455
17495
|
}, i = b.ObjectTypeProperty;
|
|
17456
17496
|
return c(i.key, s, "key", t, 1), c(i.value, s, "value", e, 1), c(i.variance, s, "variance", r, 1), s;
|
|
17457
17497
|
}
|
|
17458
|
-
function
|
|
17498
|
+
function Xm(t) {
|
|
17459
17499
|
const e = {
|
|
17460
17500
|
type: "ObjectTypeSpreadProperty",
|
|
17461
17501
|
argument: t
|
|
17462
17502
|
}, r = b.ObjectTypeSpreadProperty;
|
|
17463
17503
|
return c(r.argument, e, "argument", t, 1), e;
|
|
17464
17504
|
}
|
|
17465
|
-
function
|
|
17505
|
+
function Ym(t, e = null, r = null, s) {
|
|
17466
17506
|
const i = {
|
|
17467
17507
|
type: "OpaqueType",
|
|
17468
17508
|
id: t,
|
|
@@ -17783,12 +17823,12 @@ function kT() {
|
|
|
17783
17823
|
type: "JSXClosingFragment"
|
|
17784
17824
|
};
|
|
17785
17825
|
}
|
|
17786
|
-
function
|
|
17826
|
+
function _T() {
|
|
17787
17827
|
return {
|
|
17788
17828
|
type: "Noop"
|
|
17789
17829
|
};
|
|
17790
17830
|
}
|
|
17791
|
-
function
|
|
17831
|
+
function MT(t, e) {
|
|
17792
17832
|
const r = {
|
|
17793
17833
|
type: "Placeholder",
|
|
17794
17834
|
expectedNode: t,
|
|
@@ -17852,14 +17892,14 @@ function $T(t = []) {
|
|
|
17852
17892
|
}, r = b.TupleExpression;
|
|
17853
17893
|
return c(r.elements, e, "elements", t, 1), e;
|
|
17854
17894
|
}
|
|
17855
|
-
function
|
|
17895
|
+
function XT(t) {
|
|
17856
17896
|
const e = {
|
|
17857
17897
|
type: "DecimalLiteral",
|
|
17858
17898
|
value: t
|
|
17859
17899
|
}, r = b.DecimalLiteral;
|
|
17860
17900
|
return c(r.value, e, "value", t), e;
|
|
17861
17901
|
}
|
|
17862
|
-
function
|
|
17902
|
+
function YT(t) {
|
|
17863
17903
|
const e = {
|
|
17864
17904
|
type: "ModuleExpression",
|
|
17865
17905
|
body: t
|
|
@@ -18157,14 +18197,14 @@ function kS(t, e, r, s) {
|
|
|
18157
18197
|
}, a = b.TSConditionalType;
|
|
18158
18198
|
return c(a.checkType, i, "checkType", t, 1), c(a.extendsType, i, "extendsType", e, 1), c(a.trueType, i, "trueType", r, 1), c(a.falseType, i, "falseType", s, 1), i;
|
|
18159
18199
|
}
|
|
18160
|
-
function
|
|
18200
|
+
function _S(t) {
|
|
18161
18201
|
const e = {
|
|
18162
18202
|
type: "TSInferType",
|
|
18163
18203
|
typeParameter: t
|
|
18164
18204
|
}, r = b.TSInferType;
|
|
18165
18205
|
return c(r.typeParameter, e, "typeParameter", t, 1), e;
|
|
18166
18206
|
}
|
|
18167
|
-
function
|
|
18207
|
+
function MS(t) {
|
|
18168
18208
|
const e = {
|
|
18169
18209
|
type: "TSParenthesizedType",
|
|
18170
18210
|
typeAnnotation: t
|
|
@@ -18236,7 +18276,7 @@ function $S(t) {
|
|
|
18236
18276
|
}, r = b.TSInterfaceBody;
|
|
18237
18277
|
return c(r.body, e, "body", t, 1), e;
|
|
18238
18278
|
}
|
|
18239
|
-
function
|
|
18279
|
+
function XS(t, e = null, r) {
|
|
18240
18280
|
const s = {
|
|
18241
18281
|
type: "TSTypeAliasDeclaration",
|
|
18242
18282
|
id: t,
|
|
@@ -18245,7 +18285,7 @@ function YS(t, e = null, r) {
|
|
|
18245
18285
|
}, i = b.TSTypeAliasDeclaration;
|
|
18246
18286
|
return c(i.id, s, "id", t, 1), c(i.typeParameters, s, "typeParameters", e, 1), c(i.typeAnnotation, s, "typeAnnotation", r, 1), s;
|
|
18247
18287
|
}
|
|
18248
|
-
function
|
|
18288
|
+
function YS(t, e = null) {
|
|
18249
18289
|
const r = {
|
|
18250
18290
|
type: "TSInstantiationExpression",
|
|
18251
18291
|
expression: t,
|
|
@@ -18773,7 +18813,7 @@ y.assertArrowFunctionExpression = bx;
|
|
|
18773
18813
|
y.assertAssignmentExpression = P0;
|
|
18774
18814
|
y.assertAssignmentPattern = Sx;
|
|
18775
18815
|
y.assertAwaitExpression = $x;
|
|
18776
|
-
y.assertBigIntLiteral =
|
|
18816
|
+
y.assertBigIntLiteral = Yx;
|
|
18777
18817
|
y.assertBinary = ng;
|
|
18778
18818
|
y.assertBinaryExpression = g0;
|
|
18779
18819
|
y.assertBindExpression = LE;
|
|
@@ -18786,13 +18826,13 @@ y.assertBooleanTypeAnnotation = ib;
|
|
|
18786
18826
|
y.assertBreakStatement = N0;
|
|
18787
18827
|
y.assertCallExpression = w0;
|
|
18788
18828
|
y.assertCatchClause = O0;
|
|
18789
|
-
y.assertClass =
|
|
18829
|
+
y.assertClass = Mg;
|
|
18790
18830
|
y.assertClassAccessorProperty = zx;
|
|
18791
18831
|
y.assertClassBody = Ex;
|
|
18792
18832
|
y.assertClassDeclaration = gx;
|
|
18793
18833
|
y.assertClassExpression = Px;
|
|
18794
18834
|
y.assertClassImplements = ob;
|
|
18795
|
-
y.assertClassMethod =
|
|
18835
|
+
y.assertClassMethod = Mx;
|
|
18796
18836
|
y.assertClassPrivateMethod = Qx;
|
|
18797
18837
|
y.assertClassPrivateProperty = Gx;
|
|
18798
18838
|
y.assertClassProperty = Hx;
|
|
@@ -18817,9 +18857,9 @@ y.assertDeclaredPredicate = Sb;
|
|
|
18817
18857
|
y.assertDecorator = kE;
|
|
18818
18858
|
y.assertDirective = I0;
|
|
18819
18859
|
y.assertDirectiveLiteral = v0;
|
|
18820
|
-
y.assertDoExpression =
|
|
18821
|
-
y.assertDoWhileStatement =
|
|
18822
|
-
y.assertEmptyStatement =
|
|
18860
|
+
y.assertDoExpression = _E;
|
|
18861
|
+
y.assertDoWhileStatement = _0;
|
|
18862
|
+
y.assertEmptyStatement = M0;
|
|
18823
18863
|
y.assertEmptyTypeAnnotation = wb;
|
|
18824
18864
|
y.assertEnumBody = Jg;
|
|
18825
18865
|
y.assertEnumBooleanBody = sE;
|
|
@@ -18836,7 +18876,7 @@ y.assertExistsTypeAnnotation = xb;
|
|
|
18836
18876
|
y.assertExportAllDeclaration = Ax;
|
|
18837
18877
|
y.assertExportDeclaration = Fg;
|
|
18838
18878
|
y.assertExportDefaultDeclaration = Ix;
|
|
18839
|
-
y.assertExportDefaultSpecifier =
|
|
18879
|
+
y.assertExportDefaultSpecifier = ME;
|
|
18840
18880
|
y.assertExportNamedDeclaration = vx;
|
|
18841
18881
|
y.assertExportNamespaceSpecifier = Jx;
|
|
18842
18882
|
y.assertExportSpecifier = Cx;
|
|
@@ -18846,8 +18886,8 @@ y.assertExpressionWrapper = mg;
|
|
|
18846
18886
|
y.assertFile = F0;
|
|
18847
18887
|
y.assertFlow = Ug;
|
|
18848
18888
|
y.assertFlowBaseAnnotation = $g;
|
|
18849
|
-
y.assertFlowDeclaration =
|
|
18850
|
-
y.assertFlowPredicate =
|
|
18889
|
+
y.assertFlowDeclaration = Xg;
|
|
18890
|
+
y.assertFlowPredicate = Yg;
|
|
18851
18891
|
y.assertFlowType = Vg;
|
|
18852
18892
|
y.assertFor = Tg;
|
|
18853
18893
|
y.assertForInStatement = R0;
|
|
@@ -18865,7 +18905,7 @@ y.assertGenericTypeAnnotation = Pb;
|
|
|
18865
18905
|
y.assertIdentifier = V0;
|
|
18866
18906
|
y.assertIfStatement = $0;
|
|
18867
18907
|
y.assertImmutable = Ng;
|
|
18868
|
-
y.assertImport =
|
|
18908
|
+
y.assertImport = Xx;
|
|
18869
18909
|
y.assertImportAttribute = tb;
|
|
18870
18910
|
y.assertImportDeclaration = wx;
|
|
18871
18911
|
y.assertImportDefaultSpecifier = Ox;
|
|
@@ -18897,12 +18937,12 @@ y.assertJSXSpreadAttribute = gE;
|
|
|
18897
18937
|
y.assertJSXSpreadChild = SE;
|
|
18898
18938
|
y.assertJSXText = AE;
|
|
18899
18939
|
y.assertLVal = Ig;
|
|
18900
|
-
y.assertLabeledStatement =
|
|
18940
|
+
y.assertLabeledStatement = X0;
|
|
18901
18941
|
y.assertLiteral = Cg;
|
|
18902
18942
|
y.assertLogicalExpression = z0;
|
|
18903
18943
|
y.assertLoop = hg;
|
|
18904
18944
|
y.assertMemberExpression = G0;
|
|
18905
|
-
y.assertMetaProperty =
|
|
18945
|
+
y.assertMetaProperty = _x;
|
|
18906
18946
|
y.assertMethod = Og;
|
|
18907
18947
|
y.assertMiscellaneous = Hg;
|
|
18908
18948
|
y.assertMixedTypeAnnotation = Nb;
|
|
@@ -18924,9 +18964,9 @@ y.assertObjectMethod = tx;
|
|
|
18924
18964
|
y.assertObjectPattern = Bx;
|
|
18925
18965
|
y.assertObjectProperty = rx;
|
|
18926
18966
|
y.assertObjectTypeAnnotation = kb;
|
|
18927
|
-
y.assertObjectTypeCallProperty =
|
|
18967
|
+
y.assertObjectTypeCallProperty = Mb;
|
|
18928
18968
|
y.assertObjectTypeIndexer = Bb;
|
|
18929
|
-
y.assertObjectTypeInternalSlot =
|
|
18969
|
+
y.assertObjectTypeInternalSlot = _b;
|
|
18930
18970
|
y.assertObjectTypeProperty = Fb;
|
|
18931
18971
|
y.assertObjectTypeSpreadProperty = Rb;
|
|
18932
18972
|
y.assertOpaqueType = jb;
|
|
@@ -18934,7 +18974,7 @@ y.assertOptionalCallExpression = Wx;
|
|
|
18934
18974
|
y.assertOptionalIndexedAccessType = fE;
|
|
18935
18975
|
y.assertOptionalMemberExpression = qx;
|
|
18936
18976
|
y.assertParenthesizedExpression = nx;
|
|
18937
|
-
y.assertPattern =
|
|
18977
|
+
y.assertPattern = _g;
|
|
18938
18978
|
y.assertPatternLike = Ag;
|
|
18939
18979
|
y.assertPipelineBareFunction = VE;
|
|
18940
18980
|
y.assertPipelinePrimaryTopicReference = $E;
|
|
@@ -18959,7 +18999,7 @@ y.assertSpreadProperty = sA;
|
|
|
18959
18999
|
y.assertStandardized = ig;
|
|
18960
19000
|
y.assertStatement = cg;
|
|
18961
19001
|
y.assertStaticBlock = eb;
|
|
18962
|
-
y.assertStringLiteral =
|
|
19002
|
+
y.assertStringLiteral = Y0;
|
|
18963
19003
|
y.assertStringLiteralTypeAnnotation = Ub;
|
|
18964
19004
|
y.assertStringTypeAnnotation = Vb;
|
|
18965
19005
|
y.assertSuper = Rx;
|
|
@@ -18980,10 +19020,10 @@ y.assertTSDeclareFunction = JE;
|
|
|
18980
19020
|
y.assertTSDeclareMethod = qE;
|
|
18981
19021
|
y.assertTSEntityName = vg;
|
|
18982
19022
|
y.assertTSEnumBody = $P;
|
|
18983
|
-
y.assertTSEnumDeclaration =
|
|
18984
|
-
y.assertTSEnumMember =
|
|
19023
|
+
y.assertTSEnumDeclaration = XP;
|
|
19024
|
+
y.assertTSEnumMember = YP;
|
|
18985
19025
|
y.assertTSExportAssignment = QP;
|
|
18986
|
-
y.assertTSExpressionWithTypeArguments =
|
|
19026
|
+
y.assertTSExpressionWithTypeArguments = MP;
|
|
18987
19027
|
y.assertTSExternalModuleReference = zP;
|
|
18988
19028
|
y.assertTSFunctionType = hP;
|
|
18989
19029
|
y.assertTSImportEqualsDeclaration = HP;
|
|
@@ -18996,7 +19036,7 @@ y.assertTSInterfaceBody = FP;
|
|
|
18996
19036
|
y.assertTSInterfaceDeclaration = BP;
|
|
18997
19037
|
y.assertTSIntersectionType = vP;
|
|
18998
19038
|
y.assertTSIntrinsicKeyword = sP;
|
|
18999
|
-
y.assertTSLiteralType =
|
|
19039
|
+
y.assertTSLiteralType = _P;
|
|
19000
19040
|
y.assertTSMappedType = LP;
|
|
19001
19041
|
y.assertTSMethodSignature = QE;
|
|
19002
19042
|
y.assertTSModuleBlock = qP;
|
|
@@ -19009,7 +19049,7 @@ y.assertTSNullKeyword = aP;
|
|
|
19009
19049
|
y.assertTSNumberKeyword = nP;
|
|
19010
19050
|
y.assertTSObjectKeyword = oP;
|
|
19011
19051
|
y.assertTSOptionalType = PP;
|
|
19012
|
-
y.assertTSParameterProperty =
|
|
19052
|
+
y.assertTSParameterProperty = YE;
|
|
19013
19053
|
y.assertTSParenthesizedType = wP;
|
|
19014
19054
|
y.assertTSPropertySignature = GE;
|
|
19015
19055
|
y.assertTSQualifiedName = WE;
|
|
@@ -19042,12 +19082,12 @@ y.assertTemplateElement = Kx;
|
|
|
19042
19082
|
y.assertTemplateLiteral = Ux;
|
|
19043
19083
|
y.assertTerminatorless = pg;
|
|
19044
19084
|
y.assertThisExpression = ux;
|
|
19045
|
-
y.assertThisTypeAnnotation =
|
|
19085
|
+
y.assertThisTypeAnnotation = Xb;
|
|
19046
19086
|
y.assertThrowStatement = cx;
|
|
19047
19087
|
y.assertTopicReference = KE;
|
|
19048
19088
|
y.assertTryStatement = px;
|
|
19049
19089
|
y.assertTupleExpression = FE;
|
|
19050
|
-
y.assertTupleTypeAnnotation =
|
|
19090
|
+
y.assertTupleTypeAnnotation = Yb;
|
|
19051
19091
|
y.assertTypeAlias = qb;
|
|
19052
19092
|
y.assertTypeAnnotation = Wb;
|
|
19053
19093
|
y.assertTypeCastExpression = Hb;
|
|
@@ -19065,13 +19105,13 @@ y.assertV8IntrinsicIdentifier = OE;
|
|
|
19065
19105
|
y.assertVariableDeclaration = hx;
|
|
19066
19106
|
y.assertVariableDeclarator = yx;
|
|
19067
19107
|
y.assertVariance = eE;
|
|
19068
|
-
y.assertVoidPattern =
|
|
19108
|
+
y.assertVoidPattern = XE;
|
|
19069
19109
|
y.assertVoidTypeAnnotation = tE;
|
|
19070
19110
|
y.assertWhile = yg;
|
|
19071
19111
|
y.assertWhileStatement = mx;
|
|
19072
19112
|
y.assertWithStatement = Tx;
|
|
19073
19113
|
y.assertYieldExpression = Vx;
|
|
19074
|
-
var b0 = ut(), dt =
|
|
19114
|
+
var b0 = ut(), dt = Xe;
|
|
19075
19115
|
function m(t, e, r) {
|
|
19076
19116
|
if (!(0, b0.default)(t, e, r))
|
|
19077
19117
|
throw new Error(`Expected type "${t}" with option ${JSON.stringify(r)}, but instead got "${e.type}".`);
|
|
@@ -19115,10 +19155,10 @@ function L0(t, e) {
|
|
|
19115
19155
|
function k0(t, e) {
|
|
19116
19156
|
m("DebuggerStatement", t, e);
|
|
19117
19157
|
}
|
|
19118
|
-
function
|
|
19158
|
+
function _0(t, e) {
|
|
19119
19159
|
m("DoWhileStatement", t, e);
|
|
19120
19160
|
}
|
|
19121
|
-
function
|
|
19161
|
+
function M0(t, e) {
|
|
19122
19162
|
m("EmptyStatement", t, e);
|
|
19123
19163
|
}
|
|
19124
19164
|
function B0(t, e) {
|
|
@@ -19145,10 +19185,10 @@ function V0(t, e) {
|
|
|
19145
19185
|
function $0(t, e) {
|
|
19146
19186
|
m("IfStatement", t, e);
|
|
19147
19187
|
}
|
|
19148
|
-
function
|
|
19188
|
+
function X0(t, e) {
|
|
19149
19189
|
m("LabeledStatement", t, e);
|
|
19150
19190
|
}
|
|
19151
|
-
function
|
|
19191
|
+
function Y0(t, e) {
|
|
19152
19192
|
m("StringLiteral", t, e);
|
|
19153
19193
|
}
|
|
19154
19194
|
function J0(t, e) {
|
|
@@ -19277,10 +19317,10 @@ function Lx(t, e) {
|
|
|
19277
19317
|
function kx(t, e) {
|
|
19278
19318
|
m("ImportExpression", t, e);
|
|
19279
19319
|
}
|
|
19280
|
-
function
|
|
19320
|
+
function _x(t, e) {
|
|
19281
19321
|
m("MetaProperty", t, e);
|
|
19282
19322
|
}
|
|
19283
|
-
function
|
|
19323
|
+
function Mx(t, e) {
|
|
19284
19324
|
m("ClassMethod", t, e);
|
|
19285
19325
|
}
|
|
19286
19326
|
function Bx(t, e) {
|
|
@@ -19307,10 +19347,10 @@ function Vx(t, e) {
|
|
|
19307
19347
|
function $x(t, e) {
|
|
19308
19348
|
m("AwaitExpression", t, e);
|
|
19309
19349
|
}
|
|
19310
|
-
function
|
|
19350
|
+
function Xx(t, e) {
|
|
19311
19351
|
m("Import", t, e);
|
|
19312
19352
|
}
|
|
19313
|
-
function
|
|
19353
|
+
function Yx(t, e) {
|
|
19314
19354
|
m("BigIntLiteral", t, e);
|
|
19315
19355
|
}
|
|
19316
19356
|
function Jx(t, e) {
|
|
@@ -19439,10 +19479,10 @@ function Lb(t, e) {
|
|
|
19439
19479
|
function kb(t, e) {
|
|
19440
19480
|
m("ObjectTypeAnnotation", t, e);
|
|
19441
19481
|
}
|
|
19442
|
-
function
|
|
19482
|
+
function _b(t, e) {
|
|
19443
19483
|
m("ObjectTypeInternalSlot", t, e);
|
|
19444
19484
|
}
|
|
19445
|
-
function
|
|
19485
|
+
function Mb(t, e) {
|
|
19446
19486
|
m("ObjectTypeCallProperty", t, e);
|
|
19447
19487
|
}
|
|
19448
19488
|
function Bb(t, e) {
|
|
@@ -19469,10 +19509,10 @@ function Vb(t, e) {
|
|
|
19469
19509
|
function $b(t, e) {
|
|
19470
19510
|
m("SymbolTypeAnnotation", t, e);
|
|
19471
19511
|
}
|
|
19472
|
-
function
|
|
19512
|
+
function Xb(t, e) {
|
|
19473
19513
|
m("ThisTypeAnnotation", t, e);
|
|
19474
19514
|
}
|
|
19475
|
-
function
|
|
19515
|
+
function Yb(t, e) {
|
|
19476
19516
|
m("TupleTypeAnnotation", t, e);
|
|
19477
19517
|
}
|
|
19478
19518
|
function Jb(t, e) {
|
|
@@ -19601,10 +19641,10 @@ function LE(t, e) {
|
|
|
19601
19641
|
function kE(t, e) {
|
|
19602
19642
|
m("Decorator", t, e);
|
|
19603
19643
|
}
|
|
19604
|
-
function
|
|
19644
|
+
function _E(t, e) {
|
|
19605
19645
|
m("DoExpression", t, e);
|
|
19606
19646
|
}
|
|
19607
|
-
function
|
|
19647
|
+
function ME(t, e) {
|
|
19608
19648
|
m("ExportDefaultSpecifier", t, e);
|
|
19609
19649
|
}
|
|
19610
19650
|
function BE(t, e) {
|
|
@@ -19631,10 +19671,10 @@ function VE(t, e) {
|
|
|
19631
19671
|
function $E(t, e) {
|
|
19632
19672
|
m("PipelinePrimaryTopicReference", t, e);
|
|
19633
19673
|
}
|
|
19634
|
-
function
|
|
19674
|
+
function XE(t, e) {
|
|
19635
19675
|
m("VoidPattern", t, e);
|
|
19636
19676
|
}
|
|
19637
|
-
function
|
|
19677
|
+
function YE(t, e) {
|
|
19638
19678
|
m("TSParameterProperty", t, e);
|
|
19639
19679
|
}
|
|
19640
19680
|
function JE(t, e) {
|
|
@@ -19763,10 +19803,10 @@ function LP(t, e) {
|
|
|
19763
19803
|
function kP(t, e) {
|
|
19764
19804
|
m("TSTemplateLiteralType", t, e);
|
|
19765
19805
|
}
|
|
19766
|
-
function
|
|
19806
|
+
function _P(t, e) {
|
|
19767
19807
|
m("TSLiteralType", t, e);
|
|
19768
19808
|
}
|
|
19769
|
-
function
|
|
19809
|
+
function MP(t, e) {
|
|
19770
19810
|
m("TSExpressionWithTypeArguments", t, e);
|
|
19771
19811
|
}
|
|
19772
19812
|
function BP(t, e) {
|
|
@@ -19793,10 +19833,10 @@ function VP(t, e) {
|
|
|
19793
19833
|
function $P(t, e) {
|
|
19794
19834
|
m("TSEnumBody", t, e);
|
|
19795
19835
|
}
|
|
19796
|
-
function
|
|
19836
|
+
function XP(t, e) {
|
|
19797
19837
|
m("TSEnumDeclaration", t, e);
|
|
19798
19838
|
}
|
|
19799
|
-
function
|
|
19839
|
+
function YP(t, e) {
|
|
19800
19840
|
m("TSEnumMember", t, e);
|
|
19801
19841
|
}
|
|
19802
19842
|
function JP(t, e) {
|
|
@@ -19925,10 +19965,10 @@ function Lg(t, e) {
|
|
|
19925
19965
|
function kg(t, e) {
|
|
19926
19966
|
m("UnaryLike", t, e);
|
|
19927
19967
|
}
|
|
19928
|
-
function
|
|
19968
|
+
function _g(t, e) {
|
|
19929
19969
|
m("Pattern", t, e);
|
|
19930
19970
|
}
|
|
19931
|
-
function
|
|
19971
|
+
function Mg(t, e) {
|
|
19932
19972
|
m("Class", t, e);
|
|
19933
19973
|
}
|
|
19934
19974
|
function Bg(t, e) {
|
|
@@ -19955,10 +19995,10 @@ function Vg(t, e) {
|
|
|
19955
19995
|
function $g(t, e) {
|
|
19956
19996
|
m("FlowBaseAnnotation", t, e);
|
|
19957
19997
|
}
|
|
19958
|
-
function
|
|
19998
|
+
function Xg(t, e) {
|
|
19959
19999
|
m("FlowDeclaration", t, e);
|
|
19960
20000
|
}
|
|
19961
|
-
function
|
|
20001
|
+
function Yg(t, e) {
|
|
19962
20002
|
m("FlowPredicate", t, e);
|
|
19963
20003
|
}
|
|
19964
20004
|
function Jg(t, e) {
|
|
@@ -20288,9 +20328,9 @@ Object.defineProperty(rr, "__esModule", {
|
|
|
20288
20328
|
value: !0
|
|
20289
20329
|
});
|
|
20290
20330
|
rr.default = BA;
|
|
20291
|
-
var kA = sr,
|
|
20331
|
+
var kA = sr, _A = tr, MA = er;
|
|
20292
20332
|
function BA(t, e) {
|
|
20293
|
-
return (0, kA.default)(t, e), (0,
|
|
20333
|
+
return (0, kA.default)(t, e), (0, _A.default)(t, e), (0, MA.default)(t, e), t;
|
|
20294
20334
|
}
|
|
20295
20335
|
var ps = {};
|
|
20296
20336
|
Object.defineProperty(ps, "__esModule", {
|
|
@@ -20385,13 +20425,13 @@ var ds = {}, ar = {};
|
|
|
20385
20425
|
Object.defineProperty(ar, "__esModule", {
|
|
20386
20426
|
value: !0
|
|
20387
20427
|
});
|
|
20388
|
-
ar.default =
|
|
20389
|
-
var $A = Be,
|
|
20390
|
-
function
|
|
20428
|
+
ar.default = YA;
|
|
20429
|
+
var $A = Be, XA = Yt;
|
|
20430
|
+
function YA(t) {
|
|
20391
20431
|
t = t + "";
|
|
20392
20432
|
let e = "";
|
|
20393
20433
|
for (const r of t)
|
|
20394
|
-
e += (0,
|
|
20434
|
+
e += (0, XA.isIdentifierChar)(r.codePointAt(0)) ? r : "-";
|
|
20395
20435
|
return e = e.replace(/^[-0-9]+/, ""), e = e.replace(/[-\s]+(.)?/g, function(r, s) {
|
|
20396
20436
|
return s ? s.toUpperCase() : "";
|
|
20397
20437
|
}), (0, $A.default)(e) || (e = `_${e}`), e || "_";
|
|
@@ -20488,15 +20528,15 @@ function i1(t, e) {
|
|
|
20488
20528
|
Object.defineProperty(ys, "__esModule", {
|
|
20489
20529
|
value: !0
|
|
20490
20530
|
});
|
|
20491
|
-
ys.default =
|
|
20531
|
+
ys.default = Me;
|
|
20492
20532
|
var Ci = d, a1 = Ee, n1 = or;
|
|
20493
|
-
function
|
|
20533
|
+
function Me(t, e = t.key) {
|
|
20494
20534
|
let r;
|
|
20495
|
-
return t.kind === "method" ?
|
|
20535
|
+
return t.kind === "method" ? Me.increment() + "" : ((0, Ci.isIdentifier)(e) ? r = e.name : (0, Ci.isStringLiteral)(e) ? r = JSON.stringify(e.value) : r = JSON.stringify((0, n1.default)((0, a1.default)(e))), t.computed && (r = `[${r}]`), t.static && (r = `static:${r}`), r);
|
|
20496
20536
|
}
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
return
|
|
20537
|
+
Me.uid = 0;
|
|
20538
|
+
Me.increment = function() {
|
|
20539
|
+
return Me.uid >= Number.MAX_SAFE_INTEGER ? Me.uid = 0 : Me.uid++;
|
|
20500
20540
|
};
|
|
20501
20541
|
var cr = {};
|
|
20502
20542
|
Object.defineProperty(cr, "__esModule", {
|
|
@@ -20528,7 +20568,7 @@ Object.defineProperty(pr, "__esModule", {
|
|
|
20528
20568
|
});
|
|
20529
20569
|
pr.default = void 0;
|
|
20530
20570
|
var u1 = Be, ee = ae;
|
|
20531
|
-
pr.default =
|
|
20571
|
+
pr.default = Mr;
|
|
20532
20572
|
const c1 = Function.call.bind(Object.prototype.toString);
|
|
20533
20573
|
function p1(t) {
|
|
20534
20574
|
return c1(t) === "[object RegExp]";
|
|
@@ -20539,7 +20579,7 @@ function f1(t) {
|
|
|
20539
20579
|
const e = Object.getPrototypeOf(t);
|
|
20540
20580
|
return e === null || Object.getPrototypeOf(e) === null;
|
|
20541
20581
|
}
|
|
20542
|
-
function
|
|
20582
|
+
function Mr(t) {
|
|
20543
20583
|
if (t === void 0)
|
|
20544
20584
|
return (0, ee.identifier)("undefined");
|
|
20545
20585
|
if (t === !0 || t === !1)
|
|
@@ -20565,12 +20605,12 @@ function _r(t) {
|
|
|
20565
20605
|
return (0, ee.regExpLiteral)(e, r);
|
|
20566
20606
|
}
|
|
20567
20607
|
if (Array.isArray(t))
|
|
20568
|
-
return (0, ee.arrayExpression)(t.map(
|
|
20608
|
+
return (0, ee.arrayExpression)(t.map(Mr));
|
|
20569
20609
|
if (f1(t)) {
|
|
20570
20610
|
const e = [];
|
|
20571
20611
|
for (const r of Object.keys(t)) {
|
|
20572
20612
|
let s, i = !1;
|
|
20573
|
-
(0, u1.default)(r) ? r === "__proto__" ? (i = !0, s = (0, ee.stringLiteral)(r)) : s = (0, ee.identifier)(r) : s = (0, ee.stringLiteral)(r), e.push((0, ee.objectProperty)(s,
|
|
20613
|
+
(0, u1.default)(r) ? r === "__proto__" ? (i = !0, s = (0, ee.stringLiteral)(r)) : s = (0, ee.identifier)(r) : s = (0, ee.stringLiteral)(r), e.push((0, ee.objectProperty)(s, Mr(t[r]), i));
|
|
20574
20614
|
}
|
|
20575
20615
|
return (0, ee.objectExpression)(e);
|
|
20576
20616
|
}
|
|
@@ -20655,11 +20695,11 @@ function S1(t) {
|
|
|
20655
20695
|
}
|
|
20656
20696
|
return r;
|
|
20657
20697
|
}
|
|
20658
|
-
var
|
|
20659
|
-
Object.defineProperty(
|
|
20698
|
+
var Ye = {};
|
|
20699
|
+
Object.defineProperty(Ye, "__esModule", {
|
|
20660
20700
|
value: !0
|
|
20661
20701
|
});
|
|
20662
|
-
|
|
20702
|
+
Ye.default = xs;
|
|
20663
20703
|
var he = d;
|
|
20664
20704
|
function xs(t, e, r, s) {
|
|
20665
20705
|
const i = [].concat(t), a = /* @__PURE__ */ Object.create(null);
|
|
@@ -20740,7 +20780,7 @@ Object.defineProperty(fr, "__esModule", {
|
|
|
20740
20780
|
value: !0
|
|
20741
20781
|
});
|
|
20742
20782
|
fr.default = void 0;
|
|
20743
|
-
var b1 =
|
|
20783
|
+
var b1 = Ye;
|
|
20744
20784
|
fr.default = E1;
|
|
20745
20785
|
function E1(t, e) {
|
|
20746
20786
|
return (0, b1.default)(t, e, !0);
|
|
@@ -20823,7 +20863,7 @@ Object.defineProperty(Ps, "__esModule", {
|
|
|
20823
20863
|
value: !0
|
|
20824
20864
|
});
|
|
20825
20865
|
Ps.default = C1;
|
|
20826
|
-
var v1 =
|
|
20866
|
+
var v1 = Ye;
|
|
20827
20867
|
function C1(t, e, r) {
|
|
20828
20868
|
if (r && t.type === "Identifier" && e.type === "ObjectProperty" && r.type === "ObjectExpression")
|
|
20829
20869
|
return !1;
|
|
@@ -20858,10 +20898,10 @@ var As = {};
|
|
|
20858
20898
|
Object.defineProperty(As, "__esModule", {
|
|
20859
20899
|
value: !0
|
|
20860
20900
|
});
|
|
20861
|
-
As.default =
|
|
20862
|
-
var k1 = Qr(),
|
|
20863
|
-
function
|
|
20864
|
-
return (0, k1.default)(t.type, "Immutable") ? !0 : (0,
|
|
20901
|
+
As.default = M1;
|
|
20902
|
+
var k1 = Qr(), _1 = d;
|
|
20903
|
+
function M1(t) {
|
|
20904
|
+
return (0, k1.default)(t.type, "Immutable") ? !0 : (0, _1.isIdentifier)(t) ? t.name === "undefined" : !1;
|
|
20865
20905
|
}
|
|
20866
20906
|
var Is = {};
|
|
20867
20907
|
Object.defineProperty(Is, "__esModule", {
|
|
@@ -21011,9 +21051,9 @@ var Os = {};
|
|
|
21011
21051
|
Object.defineProperty(Os, "__esModule", {
|
|
21012
21052
|
value: !0
|
|
21013
21053
|
});
|
|
21014
|
-
Os.default =
|
|
21054
|
+
Os.default = X1;
|
|
21015
21055
|
var V1 = d, $1 = Symbol.for("var used to be block scoped");
|
|
21016
|
-
function
|
|
21056
|
+
function X1(t) {
|
|
21017
21057
|
return (0, V1.isVariableDeclaration)(t, {
|
|
21018
21058
|
kind: "var"
|
|
21019
21059
|
}) && !t[$1];
|
|
@@ -21022,9 +21062,9 @@ var Ds = {}, Ls = {};
|
|
|
21022
21062
|
Object.defineProperty(Ls, "__esModule", {
|
|
21023
21063
|
value: !0
|
|
21024
21064
|
});
|
|
21025
|
-
Ls.default =
|
|
21026
|
-
var
|
|
21027
|
-
function
|
|
21065
|
+
Ls.default = _t;
|
|
21066
|
+
var Y1 = Ye, ke = d, Nr = ae, wr = Qt, J1 = Ee;
|
|
21067
|
+
function _t(t, e) {
|
|
21028
21068
|
const r = [];
|
|
21029
21069
|
let s = !0;
|
|
21030
21070
|
for (const i of t)
|
|
@@ -21035,7 +21075,7 @@ function Mt(t, e) {
|
|
|
21035
21075
|
else if ((0, ke.isVariableDeclaration)(i)) {
|
|
21036
21076
|
if (i.kind !== "var") return;
|
|
21037
21077
|
for (const a of i.declarations) {
|
|
21038
|
-
const n = (0,
|
|
21078
|
+
const n = (0, Y1.default)(a);
|
|
21039
21079
|
for (const o of Object.keys(n))
|
|
21040
21080
|
e.push({
|
|
21041
21081
|
kind: i.kind,
|
|
@@ -21045,11 +21085,11 @@ function Mt(t, e) {
|
|
|
21045
21085
|
}
|
|
21046
21086
|
s = !0;
|
|
21047
21087
|
} else if ((0, ke.isIfStatement)(i)) {
|
|
21048
|
-
const a = i.consequent ?
|
|
21088
|
+
const a = i.consequent ? _t([i.consequent], e) : (0, wr.buildUndefinedNode)(), n = i.alternate ? _t([i.alternate], e) : (0, wr.buildUndefinedNode)();
|
|
21049
21089
|
if (!a || !n) return;
|
|
21050
21090
|
r.push((0, Nr.conditionalExpression)(i.test, a, n));
|
|
21051
21091
|
} else if ((0, ke.isBlockStatement)(i)) {
|
|
21052
|
-
const a =
|
|
21092
|
+
const a = _t(i.body, e);
|
|
21053
21093
|
if (!a) return;
|
|
21054
21094
|
r.push(a);
|
|
21055
21095
|
} else if ((0, ke.isEmptyStatement)(i))
|
|
@@ -21072,9 +21112,9 @@ function W1(t, e) {
|
|
|
21072
21112
|
return s;
|
|
21073
21113
|
}
|
|
21074
21114
|
}
|
|
21075
|
-
var
|
|
21115
|
+
var _i;
|
|
21076
21116
|
function ks() {
|
|
21077
|
-
return
|
|
21117
|
+
return _i || (_i = 1, function(t) {
|
|
21078
21118
|
Object.defineProperty(t, "__esModule", {
|
|
21079
21119
|
value: !0
|
|
21080
21120
|
});
|
|
@@ -21307,12 +21347,12 @@ function ks() {
|
|
|
21307
21347
|
}), Object.defineProperty(t, "isReferenced", {
|
|
21308
21348
|
enumerable: !0,
|
|
21309
21349
|
get: function() {
|
|
21310
|
-
return
|
|
21350
|
+
return Xa.default;
|
|
21311
21351
|
}
|
|
21312
21352
|
}), Object.defineProperty(t, "isScope", {
|
|
21313
21353
|
enumerable: !0,
|
|
21314
21354
|
get: function() {
|
|
21315
|
-
return
|
|
21355
|
+
return Ya.default;
|
|
21316
21356
|
}
|
|
21317
21357
|
}), Object.defineProperty(t, "isSpecifierDefault", {
|
|
21318
21358
|
enumerable: !0,
|
|
@@ -21372,7 +21412,7 @@ function ks() {
|
|
|
21372
21412
|
}), Object.defineProperty(t, "shallowEqual", {
|
|
21373
21413
|
enumerable: !0,
|
|
21374
21414
|
get: function() {
|
|
21375
|
-
return
|
|
21415
|
+
return Ma.default;
|
|
21376
21416
|
}
|
|
21377
21417
|
}), Object.defineProperty(t, "toBindingIdentifierName", {
|
|
21378
21418
|
enumerable: !0,
|
|
@@ -21417,7 +21457,7 @@ function ks() {
|
|
|
21417
21457
|
}), Object.defineProperty(t, "traverseFast", {
|
|
21418
21458
|
enumerable: !0,
|
|
21419
21459
|
get: function() {
|
|
21420
|
-
return
|
|
21460
|
+
return _a.default;
|
|
21421
21461
|
}
|
|
21422
21462
|
}), Object.defineProperty(t, "validate", {
|
|
21423
21463
|
enumerable: !0,
|
|
@@ -21484,7 +21524,7 @@ function ks() {
|
|
|
21484
21524
|
}
|
|
21485
21525
|
});
|
|
21486
21526
|
});
|
|
21487
|
-
var H = ms, Z = Ts, G = T1(), z = ur, Q = or, fe = Gt, ge = Ss, Da =
|
|
21527
|
+
var H = ms, Z = Ts, G = T1(), z = ur, Q = or, fe = Gt, ge = Ss, Da = Ye, La = fr, ka = bs, Tt = Es;
|
|
21488
21528
|
Object.keys(Tt).forEach(function(D) {
|
|
21489
21529
|
D === "default" || D === "__esModule" || Object.prototype.hasOwnProperty.call(e, D) || D in t && t[D] === Tt[D] || Object.defineProperty(t, D, {
|
|
21490
21530
|
enumerable: !0,
|
|
@@ -21493,7 +21533,7 @@ function ks() {
|
|
|
21493
21533
|
}
|
|
21494
21534
|
});
|
|
21495
21535
|
});
|
|
21496
|
-
var
|
|
21536
|
+
var _a = lr, Ma = ot, Ba = ut(), Fa = Ps, Ra = gs, ja = As, Ka = dr, Ua = Ht, Va = Is, $a = aa(), Xa = vs, Ya = Cs, Ja = Ns, qa = Qr(), Wa = ws, Ha = Be, za = Os, Ga = Xt, Qa = ts(), Za = $t, Tr = d;
|
|
21497
21537
|
Object.keys(Tr).forEach(function(D) {
|
|
21498
21538
|
D === "default" || D === "__esModule" || Object.prototype.hasOwnProperty.call(e, D) || D in t && t[D] === Tr[D] || Object.defineProperty(t, D, {
|
|
21499
21539
|
enumerable: !0,
|
|
@@ -21502,7 +21542,7 @@ function ks() {
|
|
|
21502
21542
|
}
|
|
21503
21543
|
});
|
|
21504
21544
|
});
|
|
21505
|
-
var en =
|
|
21545
|
+
var en = Xe, tn = Ds;
|
|
21506
21546
|
t.react = {
|
|
21507
21547
|
isReactComponent: r.default,
|
|
21508
21548
|
isCompatTag: s.default,
|