ghost 6.1.0 → 6.2.0
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/components/{tryghost-i18n-6.1.0.tgz → tryghost-i18n-6.2.0.tgz} +0 -0
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-Bu9qXr9c.mjs → CodeEditorView-UxqLGRTu.mjs} +3 -3
- package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +1 -1
- package/core/built/admin/assets/admin-x-settings/{index-o4Q9MNrB.mjs → index-8WxO2QXI.mjs} +3017 -2827
- package/core/built/admin/assets/admin-x-settings/{index-qEdfz2hd.mjs → index-B5r0jdJS.mjs} +5 -5
- package/core/built/admin/assets/admin-x-settings/{index-BEpRBH9g.mjs → index-Co907MFn.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-BgCSf8S1.mjs → index-DD3HKlR3.mjs} +306 -315
- package/core/built/admin/assets/admin-x-settings/{modals-BtQORnS4.mjs → modals-B7j9sxR4.mjs} +8799 -8807
- package/core/built/admin/assets/{chunk.397.e5d027e53a68dff31d76.js → chunk.397.d5e25bb9baf088f52499.js} +2 -2
- package/core/built/admin/assets/{chunk.524.2aa0847042f20c9a2a00.js → chunk.524.70595796c7b8c6003a2d.js} +5 -5
- package/core/built/admin/assets/{chunk.582.9182c19afab95991771e.js → chunk.582.d9b970b71da671ac1b7b.js} +8 -8
- package/core/built/admin/assets/{ghost-9c47d152972b304cab0fb982dc3fccc1.js → ghost-2066304fd0b166e1c16d397dd73ef7b2.js} +4 -4
- package/core/built/admin/assets/{ghost-791574a9e2efe65c88412947d2e80170.css → ghost-49475952d56ffe89bd47ab9d9c64ada8.css} +1 -1
- package/core/built/admin/assets/{ghost-dark-1a7d101d525c0fdcf406ac0abd98540f.css → ghost-dark-27877727751b91f03261d449d74e33b9.css} +1 -1
- package/core/built/admin/assets/posts/posts.js +71 -62
- package/core/built/admin/assets/stats/stats.js +2 -2
- package/core/built/admin/index.html +5 -5
- package/core/server/data/migrations/utils/schema.js +11 -6
- package/core/server/data/migrations/versions/6.2/2025-09-30-14-28-09-add-utm-fields.js +24 -0
- package/core/server/data/schema/commands.js +21 -6
- package/core/server/data/schema/schema.js +24 -0
- package/core/server/services/email-service/EmailRenderer.js +1 -1
- package/core/server/services/lib/MailgunClient.js +4 -3
- package/core/server/services/lib/magic-link/MagicLink.js +9 -9
- package/core/server/services/mail/GhostMailer.js +4 -1
- package/core/server/services/members/MembersConfigProvider.js +0 -15
- package/core/server/services/members/SingleUseTokenProvider.js +8 -8
- package/core/shared/config/defaults.json +1 -1
- package/package.json +6 -6
- package/tsconfig.tsbuildinfo +1 -1
- package/yarn.lock +195 -197
- /package/core/built/admin/assets/{chunk.397.e5d027e53a68dff31d76.js.LICENSE.txt → chunk.397.d5e25bb9baf088f52499.js.LICENSE.txt} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as
|
|
1
|
+
import { P as ye, N as Ye, a as Te, D as Ue, b as sO, T as q, I as lO, p as Ve, s as nO, t as o, L as oO, i as QO, f as cO, c as j, d as DO, e as uO, g as _, h as JO, j as Re, k as ve, l as MO, m as _e, E as LO, n as We, o as qe, q as C, r as X, u as je } from "./index-8WxO2QXI.mjs";
|
|
2
2
|
class A {
|
|
3
3
|
/// @internal
|
|
4
|
-
constructor(O, t, a, i, s, r, l, n, Q,
|
|
5
|
-
this.p = O, this.stack = t, this.state = a, this.reducePos = i, this.pos = s, this.score = r, this.buffer = l, this.bufferBase = n, this.curContext = Q, this.lookAhead =
|
|
4
|
+
constructor(O, t, a, i, s, r, l, n, Q, $ = 0, c) {
|
|
5
|
+
this.p = O, this.stack = t, this.state = a, this.reducePos = i, this.pos = s, this.score = r, this.buffer = l, this.bufferBase = n, this.curContext = Q, this.lookAhead = $, this.parent = c;
|
|
6
6
|
}
|
|
7
7
|
/// @internal
|
|
8
8
|
toString() {
|
|
@@ -38,20 +38,20 @@ class A {
|
|
|
38
38
|
}
|
|
39
39
|
let l = this.stack.length - (a - 1) * 3 - (O & 262144 ? 6 : 0), n = l ? this.stack[l - 2] : this.p.ranges[0].from, Q = this.reducePos - n;
|
|
40
40
|
Q >= 2e3 && !(!((t = this.p.parser.nodeSet.types[i]) === null || t === void 0) && t.isAnonymous) && (n == this.p.lastBigReductionStart ? (this.p.bigReductionCount++, this.p.lastBigReductionSize = Q) : this.p.lastBigReductionSize < Q && (this.p.bigReductionCount = 1, this.p.lastBigReductionStart = n, this.p.lastBigReductionSize = Q));
|
|
41
|
-
let
|
|
41
|
+
let $ = l ? this.stack[l - 1] : 0, c = this.bufferBase + this.buffer.length - $;
|
|
42
42
|
if (i < s.minRepeatTerm || O & 131072) {
|
|
43
|
-
let
|
|
43
|
+
let h = s.stateFlag(
|
|
44
44
|
this.state,
|
|
45
45
|
1
|
|
46
46
|
/* StateFlag.Skipped */
|
|
47
47
|
) ? this.pos : this.reducePos;
|
|
48
|
-
this.storeNode(i, n,
|
|
48
|
+
this.storeNode(i, n, h, c + 4, !0);
|
|
49
49
|
}
|
|
50
50
|
if (O & 262144)
|
|
51
51
|
this.state = this.stack[l];
|
|
52
52
|
else {
|
|
53
|
-
let
|
|
54
|
-
this.state = s.getGoto(
|
|
53
|
+
let h = this.stack[l - 3];
|
|
54
|
+
this.state = s.getGoto(h, i, !0);
|
|
55
55
|
}
|
|
56
56
|
for (; this.stack.length > l; )
|
|
57
57
|
this.stack.pop();
|
|
@@ -141,7 +141,7 @@ class A {
|
|
|
141
141
|
/// external tokenizers that want to make sure they only provide a
|
|
142
142
|
/// given token when it applies.
|
|
143
143
|
canShift(O) {
|
|
144
|
-
for (let t = new
|
|
144
|
+
for (let t = new Ce(this); ; ) {
|
|
145
145
|
let a = this.p.parser.stateSlot(
|
|
146
146
|
t.state,
|
|
147
147
|
4
|
|
@@ -322,7 +322,7 @@ var dO;
|
|
|
322
322
|
(function(e) {
|
|
323
323
|
e[e.Insert = 200] = "Insert", e[e.Delete = 190] = "Delete", e[e.Reduce = 100] = "Reduce", e[e.MaxNext = 4] = "MaxNext", e[e.MaxInsertStackDepth = 300] = "MaxInsertStackDepth", e[e.DampenInsertStackDepth = 120] = "DampenInsertStackDepth", e[e.MinBigReduction = 2e3] = "MinBigReduction";
|
|
324
324
|
})(dO || (dO = {}));
|
|
325
|
-
class
|
|
325
|
+
class Ce {
|
|
326
326
|
constructor(O) {
|
|
327
327
|
this.start = O, this.state = O.state, this.stack = O.stack, this.base = this.stack.length;
|
|
328
328
|
}
|
|
@@ -391,7 +391,7 @@ class z {
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
const gO = new z();
|
|
394
|
-
class
|
|
394
|
+
class ze {
|
|
395
395
|
/// @internal
|
|
396
396
|
constructor(O, t) {
|
|
397
397
|
this.input = O, this.ranges = t, this.chunk = "", this.chunkOff = 0, this.chunk2 = "", this.chunk2Pos = 0, this.next = -1, this.token = gO, this.rangeIndex = 0, this.pos = this.chunkPos = t[0].from, this.range = t[0], this.end = t[t.length - 1].to, this.readNext();
|
|
@@ -515,7 +515,7 @@ class Ge {
|
|
|
515
515
|
return a;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
class
|
|
518
|
+
class k {
|
|
519
519
|
constructor(O, t) {
|
|
520
520
|
this.data = O, this.id = t;
|
|
521
521
|
}
|
|
@@ -524,7 +524,7 @@ class w {
|
|
|
524
524
|
FO(this.data, O, t, this.id, a.data, a.tokenPrecTable);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
|
|
527
|
+
k.prototype.contextual = k.prototype.fallback = k.prototype.extend = !1;
|
|
528
528
|
class N {
|
|
529
529
|
constructor(O, t, a) {
|
|
530
530
|
this.precTable = t, this.elseToken = a, this.data = typeof O == "string" ? R(O) : O;
|
|
@@ -544,7 +544,7 @@ class N {
|
|
|
544
544
|
i && (O.reset(a, O.token), O.acceptToken(this.elseToken, i));
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
N.prototype.contextual =
|
|
547
|
+
N.prototype.contextual = k.prototype.fallback = k.prototype.extend = !1;
|
|
548
548
|
class Z {
|
|
549
549
|
/// Create a tokenizer. The first argument is the function that,
|
|
550
550
|
/// given an input stream, scans for the types of tokens it
|
|
@@ -562,21 +562,21 @@ function FO(e, O, t, a, i, s) {
|
|
|
562
562
|
for (let p = r + 3; p < Q; p += 2)
|
|
563
563
|
if ((e[p + 1] & l) > 0) {
|
|
564
564
|
let f = e[p];
|
|
565
|
-
if (n.allows(f) && (O.token.value == -1 || O.token.value == f ||
|
|
565
|
+
if (n.allows(f) && (O.token.value == -1 || O.token.value == f || Ge(f, O.token.value, i, s))) {
|
|
566
566
|
O.acceptToken(f);
|
|
567
567
|
break;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
let
|
|
571
|
-
if (O.next < 0 &&
|
|
572
|
-
r = e[Q +
|
|
570
|
+
let $ = O.next, c = 0, h = e[r + 2];
|
|
571
|
+
if (O.next < 0 && h > c && e[Q + h * 3 - 3] == 65535 && e[Q + h * 3 - 3] == 65535) {
|
|
572
|
+
r = e[Q + h * 3 - 1];
|
|
573
573
|
continue O;
|
|
574
574
|
}
|
|
575
|
-
for (; c <
|
|
576
|
-
let p = c +
|
|
577
|
-
if (
|
|
578
|
-
|
|
579
|
-
else if (
|
|
575
|
+
for (; c < h; ) {
|
|
576
|
+
let p = c + h >> 1, f = Q + p + (p << 1), S = e[f], d = e[f + 1] || 65536;
|
|
577
|
+
if ($ < S)
|
|
578
|
+
h = p;
|
|
579
|
+
else if ($ >= d)
|
|
580
580
|
c = p + 1;
|
|
581
581
|
else {
|
|
582
582
|
r = e[f + 2], O.advance();
|
|
@@ -592,18 +592,18 @@ function XO(e, O, t) {
|
|
|
592
592
|
return a - O;
|
|
593
593
|
return -1;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Ge(e, O, t, a) {
|
|
596
596
|
let i = XO(t, a, O);
|
|
597
597
|
return i < 0 || XO(t, a, e) < i;
|
|
598
598
|
}
|
|
599
|
-
const
|
|
600
|
-
let
|
|
599
|
+
const P = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
|
|
600
|
+
let M = null;
|
|
601
601
|
var PO;
|
|
602
602
|
(function(e) {
|
|
603
603
|
e[e.Margin = 25] = "Margin";
|
|
604
604
|
})(PO || (PO = {}));
|
|
605
605
|
function mO(e, O, t) {
|
|
606
|
-
let a = e.cursor(
|
|
606
|
+
let a = e.cursor(lO.IncludeAnonymous);
|
|
607
607
|
for (a.moveTo(O); ; )
|
|
608
608
|
if (!(t < 0 ? a.childBefore(O) : a.childAfter(O)))
|
|
609
609
|
for (; ; ) {
|
|
@@ -623,7 +623,7 @@ function mO(e, O, t) {
|
|
|
623
623
|
return t < 0 ? 0 : e.length;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
class
|
|
626
|
+
class Ie {
|
|
627
627
|
constructor(O, t) {
|
|
628
628
|
this.fragments = O, this.nodeSet = t, this.i = 0, this.fragment = null, this.safeFrom = -1, this.safeTo = -1, this.trees = [], this.start = [], this.index = [], this.nextFragment();
|
|
629
629
|
}
|
|
@@ -662,7 +662,7 @@ class Ae {
|
|
|
662
662
|
return null;
|
|
663
663
|
let l = r + s.length;
|
|
664
664
|
if (l <= this.safeTo) {
|
|
665
|
-
let n = s.prop(
|
|
665
|
+
let n = s.prop(sO.lookAhead);
|
|
666
666
|
if (!n || l + n < this.fragment.to)
|
|
667
667
|
return s;
|
|
668
668
|
}
|
|
@@ -673,7 +673,7 @@ class Ae {
|
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
class
|
|
676
|
+
class Ae {
|
|
677
677
|
constructor(O, t) {
|
|
678
678
|
this.stream = t, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = O.tokenizers.map((a) => new z());
|
|
679
679
|
}
|
|
@@ -686,10 +686,10 @@ class Ee {
|
|
|
686
686
|
for (let Q = 0; Q < s.length; Q++) {
|
|
687
687
|
if (!(1 << Q & r))
|
|
688
688
|
continue;
|
|
689
|
-
let
|
|
690
|
-
if (!(a &&
|
|
691
|
-
let
|
|
692
|
-
if (c.extended > -1 && (t = this.addActions(O, c.extended, c.end, t)), t = this.addActions(O, c.value, c.end, t),
|
|
689
|
+
let $ = s[Q], c = this.tokens[Q];
|
|
690
|
+
if (!(a && !$.fallback) && (($.contextual || c.start != O.pos || c.mask != r || c.context != l) && (this.updateCachedToken(c, $, O), c.mask = r, c.context = l), c.lookAhead > c.end + 25 && (n = Math.max(c.lookAhead, n)), c.value != 0)) {
|
|
691
|
+
let h = t;
|
|
692
|
+
if (c.extended > -1 && (t = this.addActions(O, c.extended, c.end, t)), t = this.addActions(O, c.value, c.end, t), !$.extend && (a = c, t > h))
|
|
693
693
|
break;
|
|
694
694
|
}
|
|
695
695
|
}
|
|
@@ -748,11 +748,11 @@ var ZO;
|
|
|
748
748
|
(function(e) {
|
|
749
749
|
e[e.Distance = 5] = "Distance", e[e.MaxRemainingPerStep = 3] = "MaxRemainingPerStep", e[e.MinBufferLengthPrune = 500] = "MinBufferLengthPrune", e[e.ForceReduceLimit = 10] = "ForceReduceLimit", e[e.CutDepth = 15e3] = "CutDepth", e[e.CutTo = 9e3] = "CutTo", e[e.MaxLeftAssociativeReductionCount = 300] = "MaxLeftAssociativeReductionCount", e[e.MaxStackCount = 12] = "MaxStackCount";
|
|
750
750
|
})(ZO || (ZO = {}));
|
|
751
|
-
class
|
|
751
|
+
class Ee {
|
|
752
752
|
constructor(O, t, a, i) {
|
|
753
|
-
this.parser = O, this.input = t, this.ranges = i, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new
|
|
753
|
+
this.parser = O, this.input = t, this.ranges = i, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new ze(t, i), this.tokens = new Ae(O, this.stream), this.topTerm = O.top[1];
|
|
754
754
|
let { from: s } = i[0];
|
|
755
|
-
this.stacks = [A.start(this, O.top[0], s)], this.fragments = a.length && this.stream.end - s > O.bufferLength * 4 ? new
|
|
755
|
+
this.stacks = [A.start(this, O.top[0], s)], this.fragments = a.length && this.stream.end - s > O.bufferLength * 4 ? new Ie(a, O.nodeSet) : null;
|
|
756
756
|
}
|
|
757
757
|
get parsedPos() {
|
|
758
758
|
return this.minStackPos;
|
|
@@ -789,11 +789,11 @@ class Ne {
|
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
if (!a.length) {
|
|
792
|
-
let r = i &&
|
|
792
|
+
let r = i && Be(i);
|
|
793
793
|
if (r)
|
|
794
794
|
return this.stackToTree(r);
|
|
795
795
|
if (this.parser.strict)
|
|
796
|
-
throw
|
|
796
|
+
throw P && i && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + t);
|
|
797
797
|
this.recovering || (this.recovering = 5);
|
|
798
798
|
}
|
|
799
799
|
if (this.recovering && i) {
|
|
@@ -842,15 +842,15 @@ class Ne {
|
|
|
842
842
|
// given, stacks split off by ambiguous operations will be pushed to
|
|
843
843
|
// `split`, or added to `stacks` if they move `pos` forward.
|
|
844
844
|
advanceStack(O, t, a) {
|
|
845
|
-
let i = O.pos, { parser: s } = this, r =
|
|
845
|
+
let i = O.pos, { parser: s } = this, r = P ? this.stackID(O) + " -> " : "";
|
|
846
846
|
if (this.stoppedAt != null && i > this.stoppedAt)
|
|
847
847
|
return O.forceReduce() ? O : null;
|
|
848
848
|
if (this.fragments) {
|
|
849
|
-
let Q = O.curContext && O.curContext.tracker.strict,
|
|
849
|
+
let Q = O.curContext && O.curContext.tracker.strict, $ = Q ? O.curContext.hash : 0;
|
|
850
850
|
for (let c = this.fragments.nodeAt(i); c; ) {
|
|
851
|
-
let
|
|
852
|
-
if (
|
|
853
|
-
return O.useNode(c,
|
|
851
|
+
let h = this.parser.nodeSet.types[c.type.id] == c.type ? s.getGoto(O.state, c.type.id) : -1;
|
|
852
|
+
if (h > -1 && c.length && (!Q || (c.prop(sO.contextHash) || 0) == $))
|
|
853
|
+
return O.useNode(c, h), P && console.log(r + this.stackID(O) + ` (via reuse of ${s.getName(c.type.id)})`), !0;
|
|
854
854
|
if (!(c instanceof q) || c.children.length == 0 || c.positions[0] > 0)
|
|
855
855
|
break;
|
|
856
856
|
let p = c.children[0];
|
|
@@ -866,7 +866,7 @@ class Ne {
|
|
|
866
866
|
/* ParseState.DefaultReduce */
|
|
867
867
|
);
|
|
868
868
|
if (l > 0)
|
|
869
|
-
return O.reduce(l),
|
|
869
|
+
return O.reduce(l), P && console.log(r + this.stackID(O) + ` (via always-reduce ${s.getName(
|
|
870
870
|
l & 65535
|
|
871
871
|
/* Action.ValueMask */
|
|
872
872
|
)})`), !0;
|
|
@@ -875,9 +875,9 @@ class Ne {
|
|
|
875
875
|
;
|
|
876
876
|
let n = this.tokens.getActions(O);
|
|
877
877
|
for (let Q = 0; Q < n.length; ) {
|
|
878
|
-
let
|
|
879
|
-
if (f.apply(
|
|
880
|
-
|
|
878
|
+
let $ = n[Q++], c = n[Q++], h = n[Q++], p = Q == n.length || !a, f = p ? O : O.split();
|
|
879
|
+
if (f.apply($, c, h), P && console.log(r + this.stackID(f) + ` (via ${$ & 65536 ? `reduce of ${s.getName(
|
|
880
|
+
$ & 65535
|
|
881
881
|
/* Action.ValueMask */
|
|
882
882
|
)}` : "shift"} for ${s.getName(c)} @ ${i}${f == O ? "" : ", split"})`), p)
|
|
883
883
|
return !0;
|
|
@@ -900,15 +900,15 @@ class Ne {
|
|
|
900
900
|
runRecovery(O, t, a) {
|
|
901
901
|
let i = null, s = !1;
|
|
902
902
|
for (let r = 0; r < O.length; r++) {
|
|
903
|
-
let l = O[r], n = t[r << 1], Q = t[(r << 1) + 1],
|
|
904
|
-
if (l.deadEnd && (s || (s = !0, l.restart(),
|
|
903
|
+
let l = O[r], n = t[r << 1], Q = t[(r << 1) + 1], $ = P ? this.stackID(l) + " -> " : "";
|
|
904
|
+
if (l.deadEnd && (s || (s = !0, l.restart(), P && console.log($ + this.stackID(l) + " (restarted)"), this.advanceFully(l, a))))
|
|
905
905
|
continue;
|
|
906
|
-
let c = l.split(),
|
|
907
|
-
for (let p = 0; c.forceReduce() && p < 10 && (
|
|
908
|
-
|
|
906
|
+
let c = l.split(), h = $;
|
|
907
|
+
for (let p = 0; c.forceReduce() && p < 10 && (P && console.log(h + this.stackID(c) + " (via force-reduce)"), !this.advanceFully(c, a)); p++)
|
|
908
|
+
P && (h = this.stackID(c) + " -> ");
|
|
909
909
|
for (let p of l.recoverByInsert(n))
|
|
910
|
-
|
|
911
|
-
this.stream.end > l.pos ? (Q == l.pos && (Q++, n = 0), l.recoverByDelete(n, Q),
|
|
910
|
+
P && console.log($ + this.stackID(p) + " (via recover-insert)"), this.advanceFully(p, a);
|
|
911
|
+
this.stream.end > l.pos ? (Q == l.pos && (Q++, n = 0), l.recoverByDelete(n, Q), P && console.log($ + this.stackID(l) + ` (via recover-delete ${this.parser.getName(n)})`), bO(l, a)) : (!i || i.score < l.score) && (i = l);
|
|
912
912
|
}
|
|
913
913
|
return i;
|
|
914
914
|
}
|
|
@@ -926,8 +926,8 @@ class Ne {
|
|
|
926
926
|
});
|
|
927
927
|
}
|
|
928
928
|
stackID(O) {
|
|
929
|
-
let t = (
|
|
930
|
-
return t ||
|
|
929
|
+
let t = (M || (M = /* @__PURE__ */ new WeakMap())).get(O);
|
|
930
|
+
return t || M.set(O, t = String.fromCodePoint(this.nextStackID++)), t + O;
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
933
|
function bO(e, O) {
|
|
@@ -940,7 +940,7 @@ function bO(e, O) {
|
|
|
940
940
|
}
|
|
941
941
|
O.push(e);
|
|
942
942
|
}
|
|
943
|
-
class
|
|
943
|
+
class Ne {
|
|
944
944
|
constructor(O, t, a) {
|
|
945
945
|
this.source = O, this.flags = t, this.disabled = a;
|
|
946
946
|
}
|
|
@@ -948,14 +948,14 @@ class Be {
|
|
|
948
948
|
return !this.disabled || this.disabled[O] == 0;
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
const
|
|
951
|
+
const L = (e) => e;
|
|
952
952
|
class KO {
|
|
953
953
|
/// Define a context tracker.
|
|
954
954
|
constructor(O) {
|
|
955
|
-
this.start = O.start, this.shift = O.shift ||
|
|
955
|
+
this.start = O.start, this.shift = O.shift || L, this.reduce = O.reduce || L, this.reuse = O.reuse || L, this.hash = O.hash || (() => 0), this.strict = O.strict !== !1;
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
class y extends
|
|
958
|
+
class y extends ye {
|
|
959
959
|
/// @internal
|
|
960
960
|
constructor(O) {
|
|
961
961
|
if (super(), this.wrappers = [], O.version != 14)
|
|
@@ -973,35 +973,35 @@ class y extends Ye {
|
|
|
973
973
|
if (O.nodeProps)
|
|
974
974
|
for (let l of O.nodeProps) {
|
|
975
975
|
let n = l[0];
|
|
976
|
-
typeof n == "string" && (n =
|
|
976
|
+
typeof n == "string" && (n = sO[n]);
|
|
977
977
|
for (let Q = 1; Q < l.length; ) {
|
|
978
|
-
let
|
|
979
|
-
if (
|
|
980
|
-
s(
|
|
978
|
+
let $ = l[Q++];
|
|
979
|
+
if ($ >= 0)
|
|
980
|
+
s($, n, l[Q++]);
|
|
981
981
|
else {
|
|
982
|
-
let c = l[Q +
|
|
983
|
-
for (let
|
|
982
|
+
let c = l[Q + -$];
|
|
983
|
+
for (let h = -$; h > 0; h--)
|
|
984
984
|
s(l[Q++], n, c);
|
|
985
985
|
Q++;
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
-
this.nodeSet = new
|
|
989
|
+
this.nodeSet = new Ye(t.map((l, n) => Te.define({
|
|
990
990
|
name: n >= this.minRepeatTerm ? void 0 : l,
|
|
991
991
|
id: n,
|
|
992
992
|
props: i[n],
|
|
993
993
|
top: a.indexOf(n) > -1,
|
|
994
994
|
error: n == 0,
|
|
995
995
|
skipped: O.skippedNodes && O.skippedNodes.indexOf(n) > -1
|
|
996
|
-
}))), O.propSources && (this.nodeSet = this.nodeSet.extend(...O.propSources)), this.strict = !1, this.bufferLength =
|
|
996
|
+
}))), O.propSources && (this.nodeSet = this.nodeSet.extend(...O.propSources)), this.strict = !1, this.bufferLength = Ue;
|
|
997
997
|
let r = R(O.tokenData);
|
|
998
998
|
this.context = O.context, this.specializerSpecs = O.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
|
|
999
999
|
for (let l = 0; l < this.specializerSpecs.length; l++)
|
|
1000
1000
|
this.specialized[l] = this.specializerSpecs[l].term;
|
|
1001
|
-
this.specializers = this.specializerSpecs.map(xO), this.states = R(O.states, Uint32Array), this.data = R(O.stateData), this.goto = R(O.goto), this.maxTerm = O.maxTerm, this.tokenizers = O.tokenizers.map((l) => typeof l == "number" ? new
|
|
1001
|
+
this.specializers = this.specializerSpecs.map(xO), this.states = R(O.states, Uint32Array), this.data = R(O.stateData), this.goto = R(O.goto), this.maxTerm = O.maxTerm, this.tokenizers = O.tokenizers.map((l) => typeof l == "number" ? new k(r, l) : l), this.topRules = O.topRules, this.dialects = O.dialects || {}, this.dynamicPrecedences = O.dynamicPrecedences || null, this.tokenPrecTable = O.tokenPrec, this.termNames = O.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
|
|
1002
1002
|
}
|
|
1003
1003
|
createParse(O, t, a) {
|
|
1004
|
-
let i = new
|
|
1004
|
+
let i = new Ee(this, O, t, a);
|
|
1005
1005
|
for (let s of this.wrappers)
|
|
1006
1006
|
i = s(i, O, t, a);
|
|
1007
1007
|
return i;
|
|
@@ -1163,7 +1163,7 @@ class y extends Ye {
|
|
|
1163
1163
|
if (!a[s])
|
|
1164
1164
|
for (let r = this.dialects[t[s]], l; (l = this.data[r++]) != 65535; )
|
|
1165
1165
|
(i || (i = new Uint8Array(this.maxTerm + 1)))[l] = 1;
|
|
1166
|
-
return new
|
|
1166
|
+
return new Ne(O, a, i);
|
|
1167
1167
|
}
|
|
1168
1168
|
/// Used by the output of the parser generator. Not available to
|
|
1169
1169
|
/// user code. @hide
|
|
@@ -1174,7 +1174,7 @@ class y extends Ye {
|
|
|
1174
1174
|
function b(e, O) {
|
|
1175
1175
|
return e[O] | e[O + 1] << 16;
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function Be(e) {
|
|
1178
1178
|
let O = null;
|
|
1179
1179
|
for (let t of e) {
|
|
1180
1180
|
let a = t.p.stoppedAt;
|
|
@@ -1193,7 +1193,7 @@ function xO(e) {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
return e.get;
|
|
1195
1195
|
}
|
|
1196
|
-
const
|
|
1196
|
+
const De = 55, Je = 1, Me = 56, Le = 2, Fe = 57, Ke = 3, wO = 4, He = 5, pO = 6, HO = 7, Oe = 8, ee = 9, te = 10, Ot = 11, et = 12, tt = 13, F = 58, at = 14, it = 15, kO = 59, ae = 21, rt = 23, ie = 24, st = 25, iO = 27, re = 28, lt = 29, nt = 32, ot = 35, Qt = 37, ct = 38, ut = 0, pt = 1, $t = {
|
|
1197
1197
|
area: !0,
|
|
1198
1198
|
base: !0,
|
|
1199
1199
|
br: !0,
|
|
@@ -1212,7 +1212,7 @@ const Je = 54, Me = 1, Le = 55, Fe = 2, Ke = 56, He = 3, kO = 4, Ot = 5, B = 6,
|
|
|
1212
1212
|
track: !0,
|
|
1213
1213
|
wbr: !0,
|
|
1214
1214
|
menuitem: !0
|
|
1215
|
-
},
|
|
1215
|
+
}, ht = {
|
|
1216
1216
|
dd: !0,
|
|
1217
1217
|
li: !0,
|
|
1218
1218
|
optgroup: !0,
|
|
@@ -1272,76 +1272,67 @@ const Je = 54, Me = 1, Le = 55, Fe = 2, Ke = 56, He = 3, kO = 4, Ot = 5, B = 6,
|
|
|
1272
1272
|
function ft(e) {
|
|
1273
1273
|
return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
|
|
1274
1274
|
}
|
|
1275
|
-
function se(e) {
|
|
1276
|
-
return e == 9 || e == 10 || e == 13 || e == 32;
|
|
1277
|
-
}
|
|
1278
1275
|
let YO = null, TO = null, UO = 0;
|
|
1279
|
-
function
|
|
1276
|
+
function rO(e, O) {
|
|
1280
1277
|
let t = e.pos + O;
|
|
1281
1278
|
if (UO == t && TO == e) return YO;
|
|
1282
|
-
let a = e.peek(O);
|
|
1283
|
-
for (; se(a); ) a = e.peek(++O);
|
|
1284
|
-
let i = "";
|
|
1279
|
+
let a = e.peek(O), i = "";
|
|
1285
1280
|
for (; ft(a); )
|
|
1286
1281
|
i += String.fromCharCode(a), a = e.peek(++O);
|
|
1287
1282
|
return TO = e, UO = t, YO = i ? i.toLowerCase() : a == St || a == dt ? void 0 : null;
|
|
1288
1283
|
}
|
|
1289
|
-
const
|
|
1284
|
+
const se = 60, B = 62, $O = 47, St = 63, dt = 33, gt = 45;
|
|
1290
1285
|
function VO(e, O) {
|
|
1291
|
-
this.name = e, this.parent = O
|
|
1292
|
-
for (let t = 0; t < e.length; t++) this.hash += (this.hash << 4) + e.charCodeAt(t) + (e.charCodeAt(t) << 8);
|
|
1286
|
+
this.name = e, this.parent = O;
|
|
1293
1287
|
}
|
|
1294
|
-
const Xt = [
|
|
1288
|
+
const Xt = [pO, te, HO, Oe, ee], Pt = new KO({
|
|
1295
1289
|
start: null,
|
|
1296
1290
|
shift(e, O, t, a) {
|
|
1297
|
-
return Xt.indexOf(O) > -1 ? new VO(
|
|
1291
|
+
return Xt.indexOf(O) > -1 ? new VO(rO(a, 1) || "", e) : e;
|
|
1298
1292
|
},
|
|
1299
1293
|
reduce(e, O) {
|
|
1300
1294
|
return O == ae && e ? e.parent : e;
|
|
1301
1295
|
},
|
|
1302
1296
|
reuse(e, O, t, a) {
|
|
1303
1297
|
let i = O.type.id;
|
|
1304
|
-
return i ==
|
|
1305
|
-
},
|
|
1306
|
-
hash(e) {
|
|
1307
|
-
return e ? e.hash : 0;
|
|
1298
|
+
return i == pO || i == Qt ? new VO(rO(a, 1) || "", e) : e;
|
|
1308
1299
|
},
|
|
1309
1300
|
strict: !1
|
|
1310
1301
|
}), mt = new Z((e, O) => {
|
|
1311
|
-
if (e.next !=
|
|
1312
|
-
e.next < 0 && O.context && e.acceptToken(
|
|
1302
|
+
if (e.next != se) {
|
|
1303
|
+
e.next < 0 && O.context && e.acceptToken(F);
|
|
1313
1304
|
return;
|
|
1314
1305
|
}
|
|
1315
1306
|
e.advance();
|
|
1316
|
-
let t = e.next ==
|
|
1307
|
+
let t = e.next == $O;
|
|
1317
1308
|
t && e.advance();
|
|
1318
|
-
let a =
|
|
1309
|
+
let a = rO(e, 0);
|
|
1319
1310
|
if (a === void 0) return;
|
|
1320
|
-
if (!a) return e.acceptToken(t ? it :
|
|
1311
|
+
if (!a) return e.acceptToken(t ? it : at);
|
|
1321
1312
|
let i = O.context ? O.context.name : null;
|
|
1322
1313
|
if (t) {
|
|
1323
|
-
if (a == i) return e.acceptToken(
|
|
1324
|
-
if (i &&
|
|
1325
|
-
if (O.dialectEnabled(ut)) return e.acceptToken(
|
|
1314
|
+
if (a == i) return e.acceptToken(Ot);
|
|
1315
|
+
if (i && ht[i]) return e.acceptToken(F, -2);
|
|
1316
|
+
if (O.dialectEnabled(ut)) return e.acceptToken(et);
|
|
1326
1317
|
for (let s = O.context; s; s = s.parent) if (s.name == a) return;
|
|
1327
|
-
e.acceptToken(
|
|
1318
|
+
e.acceptToken(tt);
|
|
1328
1319
|
} else {
|
|
1329
1320
|
if (a == "script") return e.acceptToken(HO);
|
|
1330
1321
|
if (a == "style") return e.acceptToken(Oe);
|
|
1331
1322
|
if (a == "textarea") return e.acceptToken(ee);
|
|
1332
|
-
if (
|
|
1333
|
-
i && yO[i] && yO[i][a] ? e.acceptToken(
|
|
1323
|
+
if ($t.hasOwnProperty(a)) return e.acceptToken(te);
|
|
1324
|
+
i && yO[i] && yO[i][a] ? e.acceptToken(F, -1) : e.acceptToken(pO);
|
|
1334
1325
|
}
|
|
1335
1326
|
}, { contextual: !0 }), Zt = new Z((e) => {
|
|
1336
1327
|
for (let O = 0, t = 0; ; t++) {
|
|
1337
1328
|
if (e.next < 0) {
|
|
1338
|
-
t && e.acceptToken(
|
|
1329
|
+
t && e.acceptToken(kO);
|
|
1339
1330
|
break;
|
|
1340
1331
|
}
|
|
1341
1332
|
if (e.next == gt)
|
|
1342
1333
|
O++;
|
|
1343
|
-
else if (e.next ==
|
|
1344
|
-
t
|
|
1334
|
+
else if (e.next == B && O >= 2) {
|
|
1335
|
+
t >= 3 && e.acceptToken(kO, -2);
|
|
1345
1336
|
break;
|
|
1346
1337
|
} else
|
|
1347
1338
|
O = 0;
|
|
@@ -1354,12 +1345,12 @@ function bt(e) {
|
|
|
1354
1345
|
return !1;
|
|
1355
1346
|
}
|
|
1356
1347
|
const xt = new Z((e, O) => {
|
|
1357
|
-
if (e.next ==
|
|
1358
|
-
let t = O.dialectEnabled(
|
|
1359
|
-
e.acceptToken(t ?
|
|
1360
|
-
} else e.next ==
|
|
1348
|
+
if (e.next == $O && e.peek(1) == B) {
|
|
1349
|
+
let t = O.dialectEnabled(pt) || bt(O.context);
|
|
1350
|
+
e.acceptToken(t ? He : wO, 2);
|
|
1351
|
+
} else e.next == B && e.acceptToken(wO, 1);
|
|
1361
1352
|
});
|
|
1362
|
-
function
|
|
1353
|
+
function hO(e, O, t) {
|
|
1363
1354
|
let a = 2 + e.length;
|
|
1364
1355
|
return new Z((i) => {
|
|
1365
1356
|
for (let s = 0, r = 0, l = 0; ; l++) {
|
|
@@ -1367,11 +1358,9 @@ function $O(e, O, t) {
|
|
|
1367
1358
|
l && i.acceptToken(O);
|
|
1368
1359
|
break;
|
|
1369
1360
|
}
|
|
1370
|
-
if (s == 0 && i.next ==
|
|
1361
|
+
if (s == 0 && i.next == se || s == 1 && i.next == $O || s >= 2 && s < a && i.next == e.charCodeAt(s - 2))
|
|
1371
1362
|
s++, r++;
|
|
1372
|
-
else if (
|
|
1373
|
-
r++;
|
|
1374
|
-
else if (s == a && i.next == D) {
|
|
1363
|
+
else if (s == a && i.next == B) {
|
|
1375
1364
|
l > r ? i.acceptToken(O, -r) : i.acceptToken(t, -(r - 2));
|
|
1376
1365
|
break;
|
|
1377
1366
|
} else if ((i.next == 10 || i.next == 13) && l) {
|
|
@@ -1383,8 +1372,8 @@ function $O(e, O, t) {
|
|
|
1383
1372
|
}
|
|
1384
1373
|
});
|
|
1385
1374
|
}
|
|
1386
|
-
const
|
|
1387
|
-
"Text RawText": o.content,
|
|
1375
|
+
const wt = hO("script", De, Je), kt = hO("style", Me, Le), yt = hO("textarea", Fe, Ke), Yt = nO({
|
|
1376
|
+
"Text RawText IncompleteTag IncompleteCloseTag": o.content,
|
|
1388
1377
|
"StartTag StartCloseTag SelfClosingEndTag EndTag": o.angleBracket,
|
|
1389
1378
|
TagName: o.tagName,
|
|
1390
1379
|
"MismatchedCloseTag/TagName": [o.tagName, o.invalid],
|
|
@@ -1397,31 +1386,32 @@ const kt = $O("script", Je, Me), wt = $O("style", Le, Fe), yt = $O("textarea", K
|
|
|
1397
1386
|
DoctypeDecl: o.documentMeta
|
|
1398
1387
|
}), Tt = y.deserialize({
|
|
1399
1388
|
version: 14,
|
|
1400
|
-
states: ",xOVO!rOOO!
|
|
1401
|
-
stateData: "
|
|
1402
|
-
goto: "%
|
|
1403
|
-
nodeNames: "⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseT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 StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",
|
|
1393
|
+
maxTerm: 68,
|
|
1405
1394
|
context: Pt,
|
|
1406
1395
|
nodeProps: [
|
|
1407
|
-
["closedBy", -10, 1, 2, 3, 7, 8, 9, 10, 11, 12, 13, "EndTag", 6, "EndTag SelfClosingEndTag", -4,
|
|
1408
|
-
["openedBy", 4, "StartTag StartCloseTag", 5, "StartTag", -4,
|
|
1409
|
-
["group", -
|
|
1396
|
+
["closedBy", -10, 1, 2, 3, 7, 8, 9, 10, 11, 12, 13, "EndTag", 6, "EndTag SelfClosingEndTag", -4, 22, 31, 34, 37, "CloseTag"],
|
|
1397
|
+
["openedBy", 4, "StartTag StartCloseTag", 5, "StartTag", -4, 30, 33, 36, 38, "OpenTag"],
|
|
1398
|
+
["group", -10, 14, 15, 18, 19, 20, 21, 40, 41, 42, 43, "Entity", 17, "Entity TextContent", -3, 29, 32, 35, "TextContent Entity"],
|
|
1399
|
+
["isolate", -11, 22, 30, 31, 33, 34, 36, 37, 38, 39, 42, 43, "ltr", -3, 27, 28, 40, ""]
|
|
1410
1400
|
],
|
|
1411
1401
|
propSources: [Yt],
|
|
1412
1402
|
skippedNodes: [0],
|
|
1413
1403
|
repeatNodeCount: 9,
|
|
1414
|
-
tokenData: "!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#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!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",
|
|
1405
|
+
tokenizers: [wt, kt, yt, xt, mt, Zt, 0, 1, 2, 3, 4, 5],
|
|
1406
|
+
topRules: { Document: [0, 16] },
|
|
1407
|
+
dialects: { noMatch: 0, selfClosing: 515 },
|
|
1408
|
+
tokenPrec: 517
|
|
1419
1409
|
});
|
|
1420
|
-
function
|
|
1410
|
+
function le(e, O) {
|
|
1421
1411
|
let t = /* @__PURE__ */ Object.create(null);
|
|
1422
1412
|
for (let a of e.getChildren(ie)) {
|
|
1423
|
-
let i = a.getChild(st), s = a.getChild(
|
|
1424
|
-
i && (t[O.read(i.from, i.to)] = s ? s.type.id ==
|
|
1413
|
+
let i = a.getChild(st), s = a.getChild(iO) || a.getChild(re);
|
|
1414
|
+
i && (t[O.read(i.from, i.to)] = s ? s.type.id == iO ? O.read(s.from + 1, s.to - 1) : O.read(s.from, s.to) : "");
|
|
1425
1415
|
}
|
|
1426
1416
|
return t;
|
|
1427
1417
|
}
|
|
@@ -1429,44 +1419,45 @@ function RO(e, O) {
|
|
|
1429
1419
|
let t = e.getChild(rt);
|
|
1430
1420
|
return t ? O.read(t.from, t.to) : " ";
|
|
1431
1421
|
}
|
|
1432
|
-
function
|
|
1422
|
+
function K(e, O, t) {
|
|
1433
1423
|
let a;
|
|
1434
1424
|
for (let i of t)
|
|
1435
|
-
if (!i.attrs || i.attrs(a || (a =
|
|
1425
|
+
if (!i.attrs || i.attrs(a || (a = le(e.node.parent.firstChild, O))))
|
|
1436
1426
|
return { parser: i.parser };
|
|
1437
1427
|
return null;
|
|
1438
1428
|
}
|
|
1439
|
-
function
|
|
1429
|
+
function ne(e = [], O = []) {
|
|
1440
1430
|
let t = [], a = [], i = [], s = [];
|
|
1441
1431
|
for (let l of e)
|
|
1442
1432
|
(l.tag == "script" ? t : l.tag == "style" ? a : l.tag == "textarea" ? i : s).push(l);
|
|
1443
1433
|
let r = O.length ? /* @__PURE__ */ Object.create(null) : null;
|
|
1444
1434
|
for (let l of O) (r[l.name] || (r[l.name] = [])).push(l);
|
|
1445
|
-
return
|
|
1435
|
+
return Ve((l, n) => {
|
|
1446
1436
|
let Q = l.type.id;
|
|
1447
|
-
if (Q == lt) return
|
|
1448
|
-
if (Q == nt) return
|
|
1449
|
-
if (Q == ot) return
|
|
1437
|
+
if (Q == lt) return K(l, n, t);
|
|
1438
|
+
if (Q == nt) return K(l, n, a);
|
|
1439
|
+
if (Q == ot) return K(l, n, i);
|
|
1450
1440
|
if (Q == ae && s.length) {
|
|
1451
|
-
let
|
|
1452
|
-
if (
|
|
1441
|
+
let $ = l.node, c = $.firstChild, h = c && RO(c, n), p;
|
|
1442
|
+
if (h) {
|
|
1453
1443
|
for (let f of s)
|
|
1454
|
-
if (f.tag ==
|
|
1455
|
-
let S =
|
|
1456
|
-
|
|
1444
|
+
if (f.tag == h && (!f.attrs || f.attrs(p || (p = le(c, n))))) {
|
|
1445
|
+
let S = $.lastChild, d = S.type.id == ct ? S.from : $.to;
|
|
1446
|
+
if (d > c.to)
|
|
1447
|
+
return { parser: f.parser, overlay: [{ from: c.to, to: d }] };
|
|
1457
1448
|
}
|
|
1458
1449
|
}
|
|
1459
1450
|
}
|
|
1460
1451
|
if (r && Q == ie) {
|
|
1461
|
-
let
|
|
1462
|
-
if (c =
|
|
1463
|
-
let
|
|
1464
|
-
if (
|
|
1465
|
-
if (p.tagName && p.tagName != RO(
|
|
1466
|
-
let f =
|
|
1467
|
-
if (f.type.id ==
|
|
1468
|
-
let S = f.from + 1,
|
|
1469
|
-
if (
|
|
1452
|
+
let $ = l.node, c;
|
|
1453
|
+
if (c = $.firstChild) {
|
|
1454
|
+
let h = r[n.read(c.from, c.to)];
|
|
1455
|
+
if (h) for (let p of h) {
|
|
1456
|
+
if (p.tagName && p.tagName != RO($.parent, n)) continue;
|
|
1457
|
+
let f = $.lastChild;
|
|
1458
|
+
if (f.type.id == iO) {
|
|
1459
|
+
let S = f.from + 1, d = f.lastChild, w = f.to - (d && d.isError ? 0 : 1);
|
|
1460
|
+
if (w > S) return { parser: p.parser, overlay: [{ from: S, to: w }] };
|
|
1470
1461
|
} else if (f.type.id == re)
|
|
1471
1462
|
return { parser: p.parser, overlay: [{ from: f.from, to: f.to }] };
|
|
1472
1463
|
}
|
|
@@ -1475,7 +1466,7 @@ function oe(e = [], O = []) {
|
|
|
1475
1466
|
return null;
|
|
1476
1467
|
});
|
|
1477
1468
|
}
|
|
1478
|
-
const Ut = 96, vO = 1, Vt = 97, Rt = 98, _O = 2,
|
|
1469
|
+
const Ut = 96, vO = 1, Vt = 97, Rt = 98, _O = 2, oe = [
|
|
1479
1470
|
9,
|
|
1480
1471
|
10,
|
|
1481
1472
|
11,
|
|
@@ -1501,8 +1492,8 @@ const Ut = 96, vO = 1, Vt = 97, Rt = 98, _O = 2, Qe = [
|
|
|
1501
1492
|
8239,
|
|
1502
1493
|
8287,
|
|
1503
1494
|
12288
|
|
1504
|
-
], vt = 58, _t = 40,
|
|
1505
|
-
function
|
|
1495
|
+
], vt = 58, _t = 40, Qe = 95, Wt = 91, G = 45, qt = 46, jt = 35, Ct = 37;
|
|
1496
|
+
function D(e) {
|
|
1506
1497
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 161;
|
|
1507
1498
|
}
|
|
1508
1499
|
function zt(e) {
|
|
@@ -1511,7 +1502,7 @@ function zt(e) {
|
|
|
1511
1502
|
const Gt = new Z((e, O) => {
|
|
1512
1503
|
for (let t = !1, a = 0, i = 0; ; i++) {
|
|
1513
1504
|
let { next: s } = e;
|
|
1514
|
-
if (
|
|
1505
|
+
if (D(s) || s == G || s == Qe || t && zt(s))
|
|
1515
1506
|
!t && (s != G || i > 0) && (t = !0), a === i && s == G && a++, e.advance();
|
|
1516
1507
|
else {
|
|
1517
1508
|
t && e.acceptToken(s == _t ? Vt : a == 2 && O.canShift(_O) ? _O : Rt);
|
|
@@ -1519,21 +1510,21 @@ const Gt = new Z((e, O) => {
|
|
|
1519
1510
|
}
|
|
1520
1511
|
}
|
|
1521
1512
|
}), It = new Z((e) => {
|
|
1522
|
-
if (
|
|
1513
|
+
if (oe.includes(e.peek(-1))) {
|
|
1523
1514
|
let { next: O } = e;
|
|
1524
|
-
(
|
|
1515
|
+
(D(O) || O == Qe || O == jt || O == qt || O == Wt || O == vt || O == G) && e.acceptToken(Ut);
|
|
1525
1516
|
}
|
|
1526
1517
|
}), At = new Z((e) => {
|
|
1527
|
-
if (!
|
|
1518
|
+
if (!oe.includes(e.peek(-1))) {
|
|
1528
1519
|
let { next: O } = e;
|
|
1529
|
-
if (O ==
|
|
1520
|
+
if (O == Ct && (e.advance(), e.acceptToken(vO)), D(O)) {
|
|
1530
1521
|
do
|
|
1531
1522
|
e.advance();
|
|
1532
|
-
while (
|
|
1523
|
+
while (D(e.next));
|
|
1533
1524
|
e.acceptToken(vO);
|
|
1534
1525
|
}
|
|
1535
1526
|
}
|
|
1536
|
-
}), Et =
|
|
1527
|
+
}), Et = nO({
|
|
1537
1528
|
"AtKeyword import charset namespace keyframes media supports": o.definitionKeyword,
|
|
1538
1529
|
"from to selector": o.keyword,
|
|
1539
1530
|
NamespaceName: o.namespace,
|
|
@@ -1586,15 +1577,15 @@ const Gt = new Z((e, O) => {
|
|
|
1586
1577
|
specialized: [{ term: 97, get: (e) => Nt[e] || -1 }, { term: 56, get: (e) => Bt[e] || -1 }, { term: 98, get: (e) => Dt[e] || -1 }],
|
|
1587
1578
|
tokenPrec: 1169
|
|
1588
1579
|
});
|
|
1589
|
-
let
|
|
1590
|
-
function
|
|
1591
|
-
if (!
|
|
1580
|
+
let H = null;
|
|
1581
|
+
function OO() {
|
|
1582
|
+
if (!H && typeof document == "object" && document.body) {
|
|
1592
1583
|
let { style: e } = document.body, O = [], t = /* @__PURE__ */ new Set();
|
|
1593
1584
|
for (let a in e)
|
|
1594
1585
|
a != "cssText" && a != "cssFloat" && typeof e[a] == "string" && (/[A-Z]/.test(a) && (a = a.replace(/[A-Z]/g, (i) => "-" + i.toLowerCase())), t.has(a) || (O.push(a), t.add(a)));
|
|
1595
|
-
|
|
1586
|
+
H = O.sort().map((a) => ({ type: "property", label: a }));
|
|
1596
1587
|
}
|
|
1597
|
-
return
|
|
1588
|
+
return H || [];
|
|
1598
1589
|
}
|
|
1599
1590
|
const WO = /* @__PURE__ */ [
|
|
1600
1591
|
"active",
|
|
@@ -2310,7 +2301,7 @@ function Ft(e, O) {
|
|
|
2310
2301
|
let a = (t = e.parent) === null || t === void 0 ? void 0 : t.firstChild;
|
|
2311
2302
|
return (a == null ? void 0 : a.name) != "Callee" ? !1 : O.sliceString(a.from, a.to) == "var";
|
|
2312
2303
|
}
|
|
2313
|
-
const
|
|
2304
|
+
const jO = /* @__PURE__ */ new JO(), Kt = ["Declaration"];
|
|
2314
2305
|
function Ht(e) {
|
|
2315
2306
|
for (let O = e; ; ) {
|
|
2316
2307
|
if (O.type.isTop)
|
|
@@ -2319,18 +2310,18 @@ function Ht(e) {
|
|
|
2319
2310
|
return e;
|
|
2320
2311
|
}
|
|
2321
2312
|
}
|
|
2322
|
-
function
|
|
2313
|
+
function ce(e, O, t) {
|
|
2323
2314
|
if (O.to - O.from > 4096) {
|
|
2324
|
-
let a =
|
|
2315
|
+
let a = jO.get(O);
|
|
2325
2316
|
if (a)
|
|
2326
2317
|
return a;
|
|
2327
|
-
let i = [], s = /* @__PURE__ */ new Set(), r = O.cursor(
|
|
2318
|
+
let i = [], s = /* @__PURE__ */ new Set(), r = O.cursor(lO.IncludeAnonymous);
|
|
2328
2319
|
if (r.firstChild())
|
|
2329
2320
|
do
|
|
2330
|
-
for (let l of
|
|
2321
|
+
for (let l of ce(e, r.node, t))
|
|
2331
2322
|
s.has(l.label) || (s.add(l.label), i.push(l));
|
|
2332
2323
|
while (r.nextSibling());
|
|
2333
|
-
return
|
|
2324
|
+
return jO.set(O, i), i;
|
|
2334
2325
|
} else {
|
|
2335
2326
|
let a = [], i = /* @__PURE__ */ new Set();
|
|
2336
2327
|
return O.cursor().iterate((s) => {
|
|
@@ -2345,7 +2336,7 @@ function ue(e, O, t) {
|
|
|
2345
2336
|
const Oa = (e) => (O) => {
|
|
2346
2337
|
let { state: t, pos: a } = O, i = _(t).resolveInner(a, -1), s = i.type.isError && i.from == i.to - 1 && t.doc.sliceString(i.from, i.to) == "-";
|
|
2347
2338
|
if (i.name == "PropertyName" || (s || i.name == "TagName") && /^(Block|Styles)$/.test(i.resolve(i.to).name))
|
|
2348
|
-
return { from: i.from, options:
|
|
2339
|
+
return { from: i.from, options: OO(), validFor: x };
|
|
2349
2340
|
if (i.name == "ValueName")
|
|
2350
2341
|
return { from: i.from, options: qO, validFor: x };
|
|
2351
2342
|
if (i.name == "PseudoClassName")
|
|
@@ -2353,27 +2344,27 @@ const Oa = (e) => (O) => {
|
|
|
2353
2344
|
if (e(i) || (O.explicit || s) && Ft(i, t.doc))
|
|
2354
2345
|
return {
|
|
2355
2346
|
from: e(i) || s ? i.from : a,
|
|
2356
|
-
options:
|
|
2347
|
+
options: ce(t.doc, Ht(i), e),
|
|
2357
2348
|
validFor: Lt
|
|
2358
2349
|
};
|
|
2359
2350
|
if (i.name == "TagName") {
|
|
2360
2351
|
for (let { parent: n } = i; n; n = n.parent)
|
|
2361
2352
|
if (n.name == "Block")
|
|
2362
|
-
return { from: i.from, options:
|
|
2353
|
+
return { from: i.from, options: OO(), validFor: x };
|
|
2363
2354
|
return { from: i.from, options: Mt, validFor: x };
|
|
2364
2355
|
}
|
|
2365
2356
|
if (!O.explicit)
|
|
2366
2357
|
return null;
|
|
2367
2358
|
let r = i.resolve(a), l = r.childBefore(a);
|
|
2368
|
-
return l && l.name == ":" && r.name == "PseudoClassSelector" ? { from: a, options: WO, validFor: x } : l && l.name == ":" && r.name == "Declaration" || r.name == "ArgList" ? { from: a, options: qO, validFor: x } : r.name == "Block" || r.name == "Styles" ? { from: a, options:
|
|
2369
|
-
}, ea = /* @__PURE__ */ Oa((e) => e.name == "VariableName"),
|
|
2359
|
+
return l && l.name == ":" && r.name == "PseudoClassSelector" ? { from: a, options: WO, validFor: x } : l && l.name == ":" && r.name == "Declaration" || r.name == "ArgList" ? { from: a, options: qO, validFor: x } : r.name == "Block" || r.name == "Styles" ? { from: a, options: OO(), validFor: x } : null;
|
|
2360
|
+
}, ea = /* @__PURE__ */ Oa((e) => e.name == "VariableName"), J = /* @__PURE__ */ oO.define({
|
|
2370
2361
|
name: "css",
|
|
2371
2362
|
parser: /* @__PURE__ */ Jt.configure({
|
|
2372
2363
|
props: [
|
|
2373
|
-
/* @__PURE__ */
|
|
2374
|
-
Declaration: /* @__PURE__ */
|
|
2364
|
+
/* @__PURE__ */ QO.add({
|
|
2365
|
+
Declaration: /* @__PURE__ */ j()
|
|
2375
2366
|
}),
|
|
2376
|
-
/* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ cO.add({
|
|
2377
2368
|
"Block KeyframeList": DO
|
|
2378
2369
|
})
|
|
2379
2370
|
]
|
|
@@ -2385,9 +2376,9 @@ const Oa = (e) => (O) => {
|
|
|
2385
2376
|
}
|
|
2386
2377
|
});
|
|
2387
2378
|
function ta() {
|
|
2388
|
-
return new
|
|
2379
|
+
return new uO(J, J.data.of({ autocomplete: ea }));
|
|
2389
2380
|
}
|
|
2390
|
-
const aa = 303,
|
|
2381
|
+
const aa = 303, CO = 1, ia = 2, ra = 304, sa = 306, la = 307, na = 3, oa = 4, Qa = [
|
|
2391
2382
|
9,
|
|
2392
2383
|
10,
|
|
2393
2384
|
11,
|
|
@@ -2413,7 +2404,7 @@ const aa = 303, jO = 1, ia = 2, ra = 304, sa = 306, la = 307, na = 3, oa = 4, Qa
|
|
|
2413
2404
|
8239,
|
|
2414
2405
|
8287,
|
|
2415
2406
|
12288
|
|
2416
|
-
],
|
|
2407
|
+
], ue = 125, ca = 59, zO = 47, ua = 42, pa = 43, $a = 45, ha = new KO({
|
|
2417
2408
|
start: !1,
|
|
2418
2409
|
shift(e, O) {
|
|
2419
2410
|
return O == na || O == oa || O == sa ? e : O == la;
|
|
@@ -2421,18 +2412,18 @@ const aa = 303, jO = 1, ia = 2, ra = 304, sa = 306, la = 307, na = 3, oa = 4, Qa
|
|
|
2421
2412
|
strict: !1
|
|
2422
2413
|
}), fa = new Z((e, O) => {
|
|
2423
2414
|
let { next: t } = e;
|
|
2424
|
-
(t ==
|
|
2415
|
+
(t == ue || t == -1 || O.context) && e.acceptToken(ra);
|
|
2425
2416
|
}, { contextual: !0, fallback: !0 }), Sa = new Z((e, O) => {
|
|
2426
2417
|
let { next: t } = e, a;
|
|
2427
|
-
Qa.indexOf(t) > -1 || t == zO && ((a = e.peek(1)) == zO || a == ua) || t !=
|
|
2418
|
+
Qa.indexOf(t) > -1 || t == zO && ((a = e.peek(1)) == zO || a == ua) || t != ue && t != ca && t != -1 && !O.context && e.acceptToken(aa);
|
|
2428
2419
|
}, { contextual: !0 }), da = new Z((e, O) => {
|
|
2429
2420
|
let { next: t } = e;
|
|
2430
|
-
if ((t ==
|
|
2421
|
+
if ((t == pa || t == $a) && (e.advance(), t == e.next)) {
|
|
2431
2422
|
e.advance();
|
|
2432
|
-
let a = !O.context && O.canShift(
|
|
2433
|
-
e.acceptToken(a ?
|
|
2423
|
+
let a = !O.context && O.canShift(CO);
|
|
2424
|
+
e.acceptToken(a ? CO : ia);
|
|
2434
2425
|
}
|
|
2435
|
-
}, { contextual: !0 }), ga =
|
|
2426
|
+
}, { contextual: !0 }), ga = nO({
|
|
2436
2427
|
"get set async static": o.modifier,
|
|
2437
2428
|
"for while do if else switch try catch finally return throw break continue default case": o.controlKeyword,
|
|
2438
2429
|
"in of await yield void typeof delete instanceof": o.operatorKeyword,
|
|
@@ -2495,7 +2486,7 @@ const aa = 303, jO = 1, ia = 2, ra = 304, sa = 306, la = 307, na = 3, oa = 4, Qa
|
|
|
2495
2486
|
goto: "$&a(}PPPP)OP)RP)cP*r.uPPPP5UPP5kP;f>mP?QP?QPPP?QP@rP?QP?QP?QP@vPP@{PAfPF]PPPFaPPPPFaIaPPPIgJbPFaPLoPPPPN}FaPPPFaPFaP!#]FaP!&p!'r!'{P!(n!(r!(nPPPPP!+|!'rPP!,j!-dP!0WFaFa!0]!3f!7z!7z!;oPPP!;vFaPPPPPPPPPPP!?SP!@ePPFa!ArPFaPFaFaFaFaPFa!CUPP!F]P!I`P!Id!In!Ir!IrP!FYP!Iv!IvP!LyP!L}FaFa!MT#!V?QP?QP?Q?QP##a?Q?Q#%]?Q#'l?Q#)b?Q?Q#*O#+|#+|#,Q#,Y#+|#,bP#+|P?Q#,z?Q#.T?Q?Q5UPPP#/aPPP#/y#/yP#/yP#0`#/yPP#0fP#0]P#0]#0x#0]#1d#1j5R)R#1m)RP#1t#1t#1tP)RP)RP)RP)RPP)RP#1z#1}P#1})RP#2RP#2UP)RP)RP)RP)R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iT&g!V&iT1h,f1i",
|
|
2496
2487
|
nodeNames: "⚠ ArithOp ArithOp LineComment BlockComment Script ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",
|
|
2497
2488
|
maxTerm: 366,
|
|
2498
|
-
context:
|
|
2489
|
+
context: ha,
|
|
2499
2490
|
nodeProps: [
|
|
2500
2491
|
["group", -26, 6, 14, 16, 62, 199, 203, 207, 208, 210, 213, 216, 226, 228, 234, 236, 238, 240, 243, 249, 255, 257, 259, 261, 263, 265, 266, "Statement", -32, 10, 11, 25, 28, 29, 35, 45, 48, 49, 51, 56, 64, 72, 76, 78, 80, 81, 103, 104, 113, 114, 131, 134, 136, 137, 138, 139, 141, 142, 162, 163, 165, "Expression", -23, 24, 26, 30, 34, 36, 38, 166, 168, 170, 171, 173, 174, 175, 177, 178, 179, 181, 182, 183, 193, 195, 197, 198, "Type", -3, 84, 96, 102, "ClassItem"],
|
|
2501
2492
|
["openedBy", 31, "InterpolationStart", 50, "[", 54, "{", 69, "(", 143, "JSXStartTag", 155, "JSXStartTag JSXStartCloseTag"],
|
|
@@ -2512,32 +2503,32 @@ const aa = 303, jO = 1, ia = 2, ra = 304, sa = 306, la = 307, na = 3, oa = 4, Qa
|
|
|
2512
2503
|
specialized: [{ term: 313, get: (e) => Xa[e] || -1 }, { term: 329, get: (e) => Pa[e] || -1 }, { term: 67, get: (e) => ma[e] || -1 }],
|
|
2513
2504
|
tokenPrec: 12820
|
|
2514
2505
|
}), ba = [
|
|
2515
|
-
/* @__PURE__ */
|
|
2506
|
+
/* @__PURE__ */ X("function ${name}(${params}) {\n ${}\n}", {
|
|
2516
2507
|
label: "function",
|
|
2517
2508
|
detail: "definition",
|
|
2518
2509
|
type: "keyword"
|
|
2519
2510
|
}),
|
|
2520
|
-
/* @__PURE__ */
|
|
2511
|
+
/* @__PURE__ */ X("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}", {
|
|
2521
2512
|
label: "for",
|
|
2522
2513
|
detail: "loop",
|
|
2523
2514
|
type: "keyword"
|
|
2524
2515
|
}),
|
|
2525
|
-
/* @__PURE__ */
|
|
2516
|
+
/* @__PURE__ */ X("for (let ${name} of ${collection}) {\n ${}\n}", {
|
|
2526
2517
|
label: "for",
|
|
2527
2518
|
detail: "of loop",
|
|
2528
2519
|
type: "keyword"
|
|
2529
2520
|
}),
|
|
2530
|
-
/* @__PURE__ */
|
|
2521
|
+
/* @__PURE__ */ X("do {\n ${}\n} while (${})", {
|
|
2531
2522
|
label: "do",
|
|
2532
2523
|
detail: "loop",
|
|
2533
2524
|
type: "keyword"
|
|
2534
2525
|
}),
|
|
2535
|
-
/* @__PURE__ */
|
|
2526
|
+
/* @__PURE__ */ X("while (${}) {\n ${}\n}", {
|
|
2536
2527
|
label: "while",
|
|
2537
2528
|
detail: "loop",
|
|
2538
2529
|
type: "keyword"
|
|
2539
2530
|
}),
|
|
2540
|
-
/* @__PURE__ */
|
|
2531
|
+
/* @__PURE__ */ X(`try {
|
|
2541
2532
|
\${}
|
|
2542
2533
|
} catch (\${error}) {
|
|
2543
2534
|
\${}
|
|
@@ -2546,12 +2537,12 @@ const aa = 303, jO = 1, ia = 2, ra = 304, sa = 306, la = 307, na = 3, oa = 4, Qa
|
|
|
2546
2537
|
detail: "/ catch block",
|
|
2547
2538
|
type: "keyword"
|
|
2548
2539
|
}),
|
|
2549
|
-
/* @__PURE__ */
|
|
2540
|
+
/* @__PURE__ */ X("if (${}) {\n ${}\n}", {
|
|
2550
2541
|
label: "if",
|
|
2551
2542
|
detail: "block",
|
|
2552
2543
|
type: "keyword"
|
|
2553
2544
|
}),
|
|
2554
|
-
/* @__PURE__ */
|
|
2545
|
+
/* @__PURE__ */ X(`if (\${}) {
|
|
2555
2546
|
\${}
|
|
2556
2547
|
} else {
|
|
2557
2548
|
\${}
|
|
@@ -2560,7 +2551,7 @@ const aa = 303, jO = 1, ia = 2, ra = 304, sa = 306, la = 307, na = 3, oa = 4, Qa
|
|
|
2560
2551
|
detail: "/ else block",
|
|
2561
2552
|
type: "keyword"
|
|
2562
2553
|
}),
|
|
2563
|
-
/* @__PURE__ */
|
|
2554
|
+
/* @__PURE__ */ X(`class \${name} {
|
|
2564
2555
|
constructor(\${params}) {
|
|
2565
2556
|
\${}
|
|
2566
2557
|
}
|
|
@@ -2569,12 +2560,12 @@ const aa = 303, jO = 1, ia = 2, ra = 304, sa = 306, la = 307, na = 3, oa = 4, Qa
|
|
|
2569
2560
|
detail: "definition",
|
|
2570
2561
|
type: "keyword"
|
|
2571
2562
|
}),
|
|
2572
|
-
/* @__PURE__ */
|
|
2563
|
+
/* @__PURE__ */ X('import {${names}} from "${module}"\n${}', {
|
|
2573
2564
|
label: "import",
|
|
2574
2565
|
detail: "named",
|
|
2575
2566
|
type: "keyword"
|
|
2576
2567
|
}),
|
|
2577
|
-
/* @__PURE__ */
|
|
2568
|
+
/* @__PURE__ */ X('import ${name} from "${module}"\n${}', {
|
|
2578
2569
|
label: "import",
|
|
2579
2570
|
detail: "default",
|
|
2580
2571
|
type: "keyword"
|
|
@@ -2594,7 +2585,7 @@ function U(e) {
|
|
|
2594
2585
|
return a && t(a, e), !0;
|
|
2595
2586
|
};
|
|
2596
2587
|
}
|
|
2597
|
-
const xa = ["FunctionDeclaration"],
|
|
2588
|
+
const xa = ["FunctionDeclaration"], wa = {
|
|
2598
2589
|
FunctionDeclaration: /* @__PURE__ */ U("function"),
|
|
2599
2590
|
ClassDeclaration: /* @__PURE__ */ U("class"),
|
|
2600
2591
|
ClassExpression: () => !0,
|
|
@@ -2618,11 +2609,11 @@ function $e(e, O) {
|
|
|
2618
2609
|
let n = e.sliceString(r.from, r.to);
|
|
2619
2610
|
a.push({ label: n, type: l });
|
|
2620
2611
|
}
|
|
2621
|
-
return O.cursor(
|
|
2612
|
+
return O.cursor(lO.IncludeAnonymous).iterate((r) => {
|
|
2622
2613
|
if (i)
|
|
2623
2614
|
i = !1;
|
|
2624
2615
|
else if (r.name) {
|
|
2625
|
-
let l =
|
|
2616
|
+
let l = wa[r.name];
|
|
2626
2617
|
if (l && l(r, s) || pe.has(r.name))
|
|
2627
2618
|
return !1;
|
|
2628
2619
|
} else if (r.to - r.from > 8192) {
|
|
@@ -2632,7 +2623,7 @@ function $e(e, O) {
|
|
|
2632
2623
|
}
|
|
2633
2624
|
}), GO.set(O, a), a;
|
|
2634
2625
|
}
|
|
2635
|
-
const IO = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,
|
|
2626
|
+
const IO = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, he = [
|
|
2636
2627
|
"TemplateString",
|
|
2637
2628
|
"String",
|
|
2638
2629
|
"RegExp",
|
|
@@ -2648,9 +2639,9 @@ const IO = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, fe = [
|
|
|
2648
2639
|
".",
|
|
2649
2640
|
"?."
|
|
2650
2641
|
];
|
|
2651
|
-
function
|
|
2642
|
+
function ka(e) {
|
|
2652
2643
|
let O = _(e.state).resolveInner(e.pos, -1);
|
|
2653
|
-
if (
|
|
2644
|
+
if (he.indexOf(O.name) > -1)
|
|
2654
2645
|
return null;
|
|
2655
2646
|
let t = O.name == "VariableName" || O.to - O.from < 20 && IO.test(e.state.sliceDoc(O.from, O.to));
|
|
2656
2647
|
if (!t && !e.explicit)
|
|
@@ -2664,22 +2655,22 @@ function wa(e) {
|
|
|
2664
2655
|
validFor: IO
|
|
2665
2656
|
};
|
|
2666
2657
|
}
|
|
2667
|
-
const m = /* @__PURE__ */
|
|
2658
|
+
const m = /* @__PURE__ */ oO.define({
|
|
2668
2659
|
name: "javascript",
|
|
2669
2660
|
parser: /* @__PURE__ */ Za.configure({
|
|
2670
2661
|
props: [
|
|
2671
|
-
/* @__PURE__ */
|
|
2672
|
-
IfStatement: /* @__PURE__ */
|
|
2673
|
-
TryStatement: /* @__PURE__ */
|
|
2674
|
-
LabeledStatement:
|
|
2662
|
+
/* @__PURE__ */ QO.add({
|
|
2663
|
+
IfStatement: /* @__PURE__ */ j({ except: /^\s*({|else\b)/ }),
|
|
2664
|
+
TryStatement: /* @__PURE__ */ j({ except: /^\s*({|catch\b|finally\b)/ }),
|
|
2665
|
+
LabeledStatement: ve,
|
|
2675
2666
|
SwitchBody: (e) => {
|
|
2676
2667
|
let O = e.textAfter, t = /^\s*\}/.test(O), a = /^\s*(case|default)\b/.test(O);
|
|
2677
2668
|
return e.baseIndent + (t ? 0 : a ? 1 : 2) * e.unit;
|
|
2678
2669
|
},
|
|
2679
|
-
Block: /* @__PURE__ */
|
|
2670
|
+
Block: /* @__PURE__ */ Re({ closing: "}" }),
|
|
2680
2671
|
ArrowFunction: (e) => e.baseIndent + e.unit,
|
|
2681
2672
|
"TemplateString BlockComment": () => null,
|
|
2682
|
-
"Statement Property": /* @__PURE__ */
|
|
2673
|
+
"Statement Property": /* @__PURE__ */ j({ except: /^{/ }),
|
|
2683
2674
|
JSXElement(e) {
|
|
2684
2675
|
let O = /^\s*<\//.test(e.textAfter);
|
|
2685
2676
|
return e.lineIndent(e.node.from) + (O ? 0 : e.unit);
|
|
@@ -2692,7 +2683,7 @@ const m = /* @__PURE__ */ QO.define({
|
|
|
2692
2683
|
return e.column(e.node.from) + e.unit;
|
|
2693
2684
|
}
|
|
2694
2685
|
}),
|
|
2695
|
-
/* @__PURE__ */
|
|
2686
|
+
/* @__PURE__ */ cO.add({
|
|
2696
2687
|
"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": DO,
|
|
2697
2688
|
BlockComment(e) {
|
|
2698
2689
|
return { from: e.from + 2, to: e.to - 2 };
|
|
@@ -2706,24 +2697,24 @@ const m = /* @__PURE__ */ QO.define({
|
|
|
2706
2697
|
indentOnInput: /^\s*(?:case |default:|\{|\}|<\/)$/,
|
|
2707
2698
|
wordChars: "$"
|
|
2708
2699
|
}
|
|
2709
|
-
}),
|
|
2700
|
+
}), fe = {
|
|
2710
2701
|
test: (e) => /^JSX/.test(e.name),
|
|
2711
|
-
facet: /* @__PURE__ */
|
|
2712
|
-
},
|
|
2702
|
+
facet: /* @__PURE__ */ _e({ commentTokens: { block: { open: "{/*", close: "*/}" } } })
|
|
2703
|
+
}, Se = /* @__PURE__ */ m.configure({ dialect: "ts" }, "typescript"), de = /* @__PURE__ */ m.configure({
|
|
2713
2704
|
dialect: "jsx",
|
|
2714
|
-
props: [/* @__PURE__ */ MO.add((e) => e.isTop ? [
|
|
2715
|
-
}),
|
|
2705
|
+
props: [/* @__PURE__ */ MO.add((e) => e.isTop ? [fe] : void 0)]
|
|
2706
|
+
}), ge = /* @__PURE__ */ m.configure({
|
|
2716
2707
|
dialect: "jsx ts",
|
|
2717
|
-
props: [/* @__PURE__ */ MO.add((e) => e.isTop ? [
|
|
2708
|
+
props: [/* @__PURE__ */ MO.add((e) => e.isTop ? [fe] : void 0)]
|
|
2718
2709
|
}, "typescript"), ya = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map((e) => ({ label: e, type: "keyword" }));
|
|
2719
2710
|
function Ya(e = {}) {
|
|
2720
|
-
let O = e.jsx ? e.typescript ?
|
|
2721
|
-
return new
|
|
2711
|
+
let O = e.jsx ? e.typescript ? ge : de : e.typescript ? Se : m;
|
|
2712
|
+
return new uO(O, [
|
|
2722
2713
|
m.data.of({
|
|
2723
|
-
autocomplete:
|
|
2714
|
+
autocomplete: We(he, qe(ba.concat(ya)))
|
|
2724
2715
|
}),
|
|
2725
2716
|
m.data.of({
|
|
2726
|
-
autocomplete:
|
|
2717
|
+
autocomplete: ka
|
|
2727
2718
|
}),
|
|
2728
2719
|
e.jsx ? Ra : []
|
|
2729
2720
|
]);
|
|
@@ -2751,26 +2742,26 @@ const Va = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
2751
2742
|
return !1;
|
|
2752
2743
|
let { state: i } = e, s = i.changeByRange((r) => {
|
|
2753
2744
|
var l;
|
|
2754
|
-
let { head: n } = r, Q = _(i).resolveInner(n, -1),
|
|
2745
|
+
let { head: n } = r, Q = _(i).resolveInner(n, -1), $;
|
|
2755
2746
|
if (Q.name == "JSXStartTag" && (Q = Q.parent), !(Q.name == "JSXAttributeValue" && Q.to > n)) {
|
|
2756
2747
|
if (a == ">" && Q.name == "JSXFragmentTag")
|
|
2757
|
-
return { range:
|
|
2748
|
+
return { range: C.cursor(n + 1), changes: { from: n, insert: "></>" } };
|
|
2758
2749
|
if (a == "/" && Q.name == "JSXFragmentTag") {
|
|
2759
|
-
let c = Q.parent,
|
|
2760
|
-
if (c.from == n - 1 && ((l =
|
|
2761
|
-
let p = `/${
|
|
2762
|
-
return { range:
|
|
2750
|
+
let c = Q.parent, h = c == null ? void 0 : c.parent;
|
|
2751
|
+
if (c.from == n - 1 && ((l = h.lastChild) === null || l === void 0 ? void 0 : l.name) != "JSXEndTag" && ($ = AO(i.doc, h == null ? void 0 : h.firstChild, n))) {
|
|
2752
|
+
let p = `/${$}>`;
|
|
2753
|
+
return { range: C.cursor(n + p.length), changes: { from: n, insert: p } };
|
|
2763
2754
|
}
|
|
2764
2755
|
} else if (a == ">") {
|
|
2765
2756
|
let c = Ta(Q);
|
|
2766
|
-
if (c && !Ua(c.lastChild) && i.sliceDoc(n, n + 2) != "</" && (
|
|
2767
|
-
return { range:
|
|
2757
|
+
if (c && !Ua(c.lastChild) && i.sliceDoc(n, n + 2) != "</" && ($ = AO(i.doc, c, n)))
|
|
2758
|
+
return { range: C.cursor(n + 1), changes: { from: n, insert: `></${$}>` } };
|
|
2768
2759
|
}
|
|
2769
2760
|
}
|
|
2770
2761
|
return { range: r };
|
|
2771
2762
|
});
|
|
2772
2763
|
return s.changes.empty ? !1 : (e.dispatch(s, { userEvent: "input.type", scrollIntoView: !0 }), !0);
|
|
2773
|
-
}), V = ["_blank", "_self", "_top", "_parent"],
|
|
2764
|
+
}), V = ["_blank", "_self", "_top", "_parent"], eO = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], tO = ["get", "post", "put", "delete"], aO = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], g = ["true", "false"], u = {}, va = {
|
|
2774
2765
|
a: {
|
|
2775
2766
|
attrs: {
|
|
2776
2767
|
href: null,
|
|
@@ -2824,8 +2815,8 @@ const Va = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
2824
2815
|
value: null,
|
|
2825
2816
|
autofocus: ["autofocus"],
|
|
2826
2817
|
disabled: ["autofocus"],
|
|
2827
|
-
formenctype:
|
|
2828
|
-
formmethod:
|
|
2818
|
+
formenctype: aO,
|
|
2819
|
+
formmethod: tO,
|
|
2829
2820
|
formnovalidate: ["novalidate"],
|
|
2830
2821
|
formtarget: V,
|
|
2831
2822
|
type: ["submit", "reset", "button"]
|
|
@@ -2871,10 +2862,10 @@ const Va = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
2871
2862
|
attrs: {
|
|
2872
2863
|
action: null,
|
|
2873
2864
|
name: null,
|
|
2874
|
-
"accept-charset":
|
|
2865
|
+
"accept-charset": eO,
|
|
2875
2866
|
autocomplete: ["on", "off"],
|
|
2876
|
-
enctype:
|
|
2877
|
-
method:
|
|
2867
|
+
enctype: aO,
|
|
2868
|
+
method: tO,
|
|
2878
2869
|
novalidate: ["novalidate"],
|
|
2879
2870
|
target: V
|
|
2880
2871
|
}
|
|
@@ -2941,8 +2932,8 @@ const Va = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
2941
2932
|
autofocus: ["autofocus"],
|
|
2942
2933
|
checked: ["checked"],
|
|
2943
2934
|
disabled: ["disabled"],
|
|
2944
|
-
formenctype:
|
|
2945
|
-
formmethod:
|
|
2935
|
+
formenctype: aO,
|
|
2936
|
+
formmethod: tO,
|
|
2946
2937
|
formnovalidate: ["novalidate"],
|
|
2947
2938
|
formtarget: V,
|
|
2948
2939
|
multiple: ["multiple"],
|
|
@@ -3005,7 +2996,7 @@ const Va = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
3005
2996
|
meta: {
|
|
3006
2997
|
attrs: {
|
|
3007
2998
|
content: null,
|
|
3008
|
-
charset:
|
|
2999
|
+
charset: eO,
|
|
3009
3000
|
name: ["viewport", "application-name", "author", "description", "generator", "keywords"],
|
|
3010
3001
|
"http-equiv": ["content-language", "content-type", "default-style", "refresh"]
|
|
3011
3002
|
}
|
|
@@ -3047,7 +3038,7 @@ const Va = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
3047
3038
|
src: null,
|
|
3048
3039
|
async: ["async"],
|
|
3049
3040
|
defer: ["defer"],
|
|
3050
|
-
charset:
|
|
3041
|
+
charset: eO
|
|
3051
3042
|
}
|
|
3052
3043
|
},
|
|
3053
3044
|
section: u,
|
|
@@ -3128,10 +3119,10 @@ const Va = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
3128
3119
|
}
|
|
3129
3120
|
},
|
|
3130
3121
|
wbr: u
|
|
3131
|
-
},
|
|
3122
|
+
}, Xe = {
|
|
3132
3123
|
accesskey: null,
|
|
3133
3124
|
class: null,
|
|
3134
|
-
contenteditable:
|
|
3125
|
+
contenteditable: g,
|
|
3135
3126
|
contextmenu: null,
|
|
3136
3127
|
dir: ["ltr", "rtl", "auto"],
|
|
3137
3128
|
draggable: ["true", "false", "auto"],
|
|
@@ -3145,9 +3136,9 @@ const Va = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
3145
3136
|
itemscope: ["itemscope"],
|
|
3146
3137
|
itemtype: null,
|
|
3147
3138
|
lang: ["ar", "bn", "de", "en-GB", "en-US", "es", "fr", "hi", "id", "ja", "pa", "pt", "ru", "tr", "zh"],
|
|
3148
|
-
spellcheck:
|
|
3149
|
-
autocorrect:
|
|
3150
|
-
autocapitalize:
|
|
3139
|
+
spellcheck: g,
|
|
3140
|
+
autocorrect: g,
|
|
3141
|
+
autocapitalize: g,
|
|
3151
3142
|
style: null,
|
|
3152
3143
|
tabindex: null,
|
|
3153
3144
|
title: null,
|
|
@@ -3155,32 +3146,32 @@ const Va = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
3155
3146
|
rel: ["stylesheet", "alternate", "author", "bookmark", "help", "license", "next", "nofollow", "noreferrer", "prefetch", "prev", "search", "tag"],
|
|
3156
3147
|
role: /* @__PURE__ */ "alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
|
|
3157
3148
|
"aria-activedescendant": null,
|
|
3158
|
-
"aria-atomic":
|
|
3149
|
+
"aria-atomic": g,
|
|
3159
3150
|
"aria-autocomplete": ["inline", "list", "both", "none"],
|
|
3160
|
-
"aria-busy":
|
|
3151
|
+
"aria-busy": g,
|
|
3161
3152
|
"aria-checked": ["true", "false", "mixed", "undefined"],
|
|
3162
3153
|
"aria-controls": null,
|
|
3163
3154
|
"aria-describedby": null,
|
|
3164
|
-
"aria-disabled":
|
|
3155
|
+
"aria-disabled": g,
|
|
3165
3156
|
"aria-dropeffect": null,
|
|
3166
3157
|
"aria-expanded": ["true", "false", "undefined"],
|
|
3167
3158
|
"aria-flowto": null,
|
|
3168
3159
|
"aria-grabbed": ["true", "false", "undefined"],
|
|
3169
|
-
"aria-haspopup":
|
|
3170
|
-
"aria-hidden":
|
|
3160
|
+
"aria-haspopup": g,
|
|
3161
|
+
"aria-hidden": g,
|
|
3171
3162
|
"aria-invalid": ["true", "false", "grammar", "spelling"],
|
|
3172
3163
|
"aria-label": null,
|
|
3173
3164
|
"aria-labelledby": null,
|
|
3174
3165
|
"aria-level": null,
|
|
3175
3166
|
"aria-live": ["off", "polite", "assertive"],
|
|
3176
|
-
"aria-multiline":
|
|
3177
|
-
"aria-multiselectable":
|
|
3167
|
+
"aria-multiline": g,
|
|
3168
|
+
"aria-multiselectable": g,
|
|
3178
3169
|
"aria-owns": null,
|
|
3179
3170
|
"aria-posinset": null,
|
|
3180
3171
|
"aria-pressed": ["true", "false", "mixed", "undefined"],
|
|
3181
|
-
"aria-readonly":
|
|
3172
|
+
"aria-readonly": g,
|
|
3182
3173
|
"aria-relevant": null,
|
|
3183
|
-
"aria-required":
|
|
3174
|
+
"aria-required": g,
|
|
3184
3175
|
"aria-selected": ["true", "false", "undefined"],
|
|
3185
3176
|
"aria-setsize": null,
|
|
3186
3177
|
"aria-sort": ["ascending", "descending", "none", "other"],
|
|
@@ -3188,12 +3179,12 @@ const Va = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
3188
3179
|
"aria-valuemin": null,
|
|
3189
3180
|
"aria-valuenow": null,
|
|
3190
3181
|
"aria-valuetext": null
|
|
3191
|
-
},
|
|
3192
|
-
for (let e of
|
|
3193
|
-
|
|
3182
|
+
}, Pe = /* @__PURE__ */ "beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e) => "on" + e);
|
|
3183
|
+
for (let e of Pe)
|
|
3184
|
+
Xe[e] = null;
|
|
3194
3185
|
class v {
|
|
3195
3186
|
constructor(O, t) {
|
|
3196
|
-
this.tags = { ...va, ...O }, this.globalAttrs = { ...
|
|
3187
|
+
this.tags = { ...va, ...O }, this.globalAttrs = { ...Xe, ...t }, this.allTags = Object.keys(this.tags), this.globalAttrNames = Object.keys(this.globalAttrs);
|
|
3197
3188
|
}
|
|
3198
3189
|
}
|
|
3199
3190
|
v.default = /* @__PURE__ */ new v();
|
|
@@ -3212,7 +3203,7 @@ function T(e, O = !1) {
|
|
|
3212
3203
|
return e;
|
|
3213
3204
|
return null;
|
|
3214
3205
|
}
|
|
3215
|
-
function
|
|
3206
|
+
function me(e, O, t) {
|
|
3216
3207
|
let a = t.tags[Y(e, T(O))];
|
|
3217
3208
|
return (a == null ? void 0 : a.children) || t.allTags;
|
|
3218
3209
|
}
|
|
@@ -3226,13 +3217,13 @@ function fO(e, O) {
|
|
|
3226
3217
|
}
|
|
3227
3218
|
return t;
|
|
3228
3219
|
}
|
|
3229
|
-
const
|
|
3220
|
+
const Ze = /^[:\-\.\w\u00b7-\uffff]*$/;
|
|
3230
3221
|
function EO(e, O, t, a, i) {
|
|
3231
|
-
let s = /\s*>/.test(e.sliceDoc(i, i + 5)) ? "" : ">", r = T(t,
|
|
3222
|
+
let s = /\s*>/.test(e.sliceDoc(i, i + 5)) ? "" : ">", r = T(t, t.name == "StartTag" || t.name == "TagName");
|
|
3232
3223
|
return {
|
|
3233
3224
|
from: a,
|
|
3234
3225
|
to: i,
|
|
3235
|
-
options:
|
|
3226
|
+
options: me(e.doc, r, O).map((l) => ({ label: l, type: "type" })).concat(fO(e.doc, t).map((l, n) => ({
|
|
3236
3227
|
label: "/" + l,
|
|
3237
3228
|
apply: "/" + l + s,
|
|
3238
3229
|
type: "type",
|
|
@@ -3247,12 +3238,12 @@ function NO(e, O, t, a) {
|
|
|
3247
3238
|
from: t,
|
|
3248
3239
|
to: a,
|
|
3249
3240
|
options: fO(e.doc, O).map((s, r) => ({ label: s, apply: s + i, type: "type", boost: 99 - r })),
|
|
3250
|
-
validFor:
|
|
3241
|
+
validFor: Ze
|
|
3251
3242
|
};
|
|
3252
3243
|
}
|
|
3253
3244
|
function _a(e, O, t, a) {
|
|
3254
3245
|
let i = [], s = 0;
|
|
3255
|
-
for (let r of
|
|
3246
|
+
for (let r of me(e.doc, t, O))
|
|
3256
3247
|
i.push({ label: "<" + r, type: "type" });
|
|
3257
3248
|
for (let r of fO(e.doc, t))
|
|
3258
3249
|
i.push({ label: "</" + r + ">", type: "type", boost: 99 - s++ });
|
|
@@ -3264,28 +3255,28 @@ function Wa(e, O, t, a, i) {
|
|
|
3264
3255
|
from: a,
|
|
3265
3256
|
to: i,
|
|
3266
3257
|
options: n.map((Q) => ({ label: Q, type: "property" })),
|
|
3267
|
-
validFor:
|
|
3258
|
+
validFor: Ze
|
|
3268
3259
|
};
|
|
3269
3260
|
}
|
|
3270
3261
|
function qa(e, O, t, a, i) {
|
|
3271
3262
|
var s;
|
|
3272
3263
|
let r = (s = t.parent) === null || s === void 0 ? void 0 : s.getChild("AttributeName"), l = [], n;
|
|
3273
3264
|
if (r) {
|
|
3274
|
-
let Q = e.sliceDoc(r.from, r.to),
|
|
3275
|
-
if (
|
|
3276
|
-
let c = T(t),
|
|
3277
|
-
|
|
3265
|
+
let Q = e.sliceDoc(r.from, r.to), $ = O.globalAttrs[Q];
|
|
3266
|
+
if (!$) {
|
|
3267
|
+
let c = T(t), h = c ? O.tags[Y(e.doc, c)] : null;
|
|
3268
|
+
$ = (h == null ? void 0 : h.attrs) && h.attrs[Q];
|
|
3278
3269
|
}
|
|
3279
|
-
if (
|
|
3280
|
-
let c = e.sliceDoc(a, i).toLowerCase(),
|
|
3281
|
-
/^['"]/.test(c) ? (n = c[0] == '"' ? /^[^"]*$/ : /^[^']*$/,
|
|
3282
|
-
for (let f of
|
|
3283
|
-
l.push({ label: f, apply:
|
|
3270
|
+
if ($) {
|
|
3271
|
+
let c = e.sliceDoc(a, i).toLowerCase(), h = '"', p = '"';
|
|
3272
|
+
/^['"]/.test(c) ? (n = c[0] == '"' ? /^[^"]*$/ : /^[^']*$/, h = "", p = e.sliceDoc(i, i + 1) == c[0] ? "" : c[0], c = c.slice(1), a++) : n = /^[^\s<>='"]*$/;
|
|
3273
|
+
for (let f of $)
|
|
3274
|
+
l.push({ label: f, apply: h + f + p, type: "constant" });
|
|
3284
3275
|
}
|
|
3285
3276
|
}
|
|
3286
3277
|
return { from: a, to: i, options: l, validFor: n };
|
|
3287
3278
|
}
|
|
3288
|
-
function
|
|
3279
|
+
function be(e, O) {
|
|
3289
3280
|
let { state: t, pos: a } = O, i = _(t).resolveInner(a, -1), s = i.resolve(a);
|
|
3290
3281
|
for (let r = a, l; s == i && (l = i.childBefore(r)); ) {
|
|
3291
3282
|
let n = l.lastChild;
|
|
@@ -3293,37 +3284,37 @@ function xe(e, O) {
|
|
|
3293
3284
|
break;
|
|
3294
3285
|
s = i = l, r = n.from;
|
|
3295
3286
|
}
|
|
3296
|
-
return i.name == "TagName" ? i.parent && /CloseTag$/.test(i.parent.name) ? NO(t, i, i.from, a) : EO(t, e, i, i.from, a) : i.name == "StartTag" ? EO(t, e, i, a, a) : i.name == "StartCloseTag" || i.name == "IncompleteCloseTag" ? NO(t, i, a, a) : i.name == "OpenTag" || i.name == "SelfClosingTag" || i.name == "AttributeName" ? Wa(t, e, i, i.name == "AttributeName" ? i.from : a, a) : i.name == "Is" || i.name == "AttributeValue" || i.name == "UnquotedAttributeValue" ? qa(t, e, i, i.name == "Is" ? a : i.from, a) : O.explicit && (s.name == "Element" || s.name == "Text" || s.name == "Document") ? _a(t, e, i, a) : null;
|
|
3287
|
+
return i.name == "TagName" ? i.parent && /CloseTag$/.test(i.parent.name) ? NO(t, i, i.from, a) : EO(t, e, i, i.from, a) : i.name == "StartTag" || i.name == "IncompleteTag" ? EO(t, e, i, a, a) : i.name == "StartCloseTag" || i.name == "IncompleteCloseTag" ? NO(t, i, a, a) : i.name == "OpenTag" || i.name == "SelfClosingTag" || i.name == "AttributeName" ? Wa(t, e, i, i.name == "AttributeName" ? i.from : a, a) : i.name == "Is" || i.name == "AttributeValue" || i.name == "UnquotedAttributeValue" ? qa(t, e, i, i.name == "Is" ? a : i.from, a) : O.explicit && (s.name == "Element" || s.name == "Text" || s.name == "Document") ? _a(t, e, i, a) : null;
|
|
3297
3288
|
}
|
|
3298
3289
|
function Ia(e) {
|
|
3299
|
-
return
|
|
3290
|
+
return be(v.default, e);
|
|
3300
3291
|
}
|
|
3301
|
-
function
|
|
3292
|
+
function ja(e) {
|
|
3302
3293
|
let { extraTags: O, extraGlobalAttributes: t } = e, a = t || O ? new v(O, t) : v.default;
|
|
3303
|
-
return (i) =>
|
|
3294
|
+
return (i) => be(a, i);
|
|
3304
3295
|
}
|
|
3305
|
-
const
|
|
3296
|
+
const Ca = /* @__PURE__ */ m.parser.configure({ top: "SingleExpression" }), xe = [
|
|
3306
3297
|
{
|
|
3307
3298
|
tag: "script",
|
|
3308
3299
|
attrs: (e) => e.type == "text/typescript" || e.lang == "ts",
|
|
3309
|
-
parser:
|
|
3300
|
+
parser: Se.parser
|
|
3310
3301
|
},
|
|
3311
3302
|
{
|
|
3312
3303
|
tag: "script",
|
|
3313
3304
|
attrs: (e) => e.type == "text/babel" || e.type == "text/jsx",
|
|
3314
|
-
parser:
|
|
3305
|
+
parser: de.parser
|
|
3315
3306
|
},
|
|
3316
3307
|
{
|
|
3317
3308
|
tag: "script",
|
|
3318
3309
|
attrs: (e) => e.type == "text/typescript-jsx",
|
|
3319
|
-
parser:
|
|
3310
|
+
parser: ge.parser
|
|
3320
3311
|
},
|
|
3321
3312
|
{
|
|
3322
3313
|
tag: "script",
|
|
3323
3314
|
attrs(e) {
|
|
3324
3315
|
return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type);
|
|
3325
3316
|
},
|
|
3326
|
-
parser:
|
|
3317
|
+
parser: Ca
|
|
3327
3318
|
},
|
|
3328
3319
|
{
|
|
3329
3320
|
tag: "script",
|
|
@@ -3337,18 +3328,18 @@ const ja = /* @__PURE__ */ m.parser.configure({ top: "SingleExpression" }), ke =
|
|
|
3337
3328
|
attrs(e) {
|
|
3338
3329
|
return (!e.lang || e.lang == "css") && (!e.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type));
|
|
3339
3330
|
},
|
|
3340
|
-
parser:
|
|
3331
|
+
parser: J.parser
|
|
3341
3332
|
}
|
|
3342
3333
|
], we = /* @__PURE__ */ [
|
|
3343
3334
|
{
|
|
3344
3335
|
name: "style",
|
|
3345
|
-
parser: /* @__PURE__ */
|
|
3336
|
+
parser: /* @__PURE__ */ J.parser.configure({ top: "Styles" })
|
|
3346
3337
|
}
|
|
3347
|
-
].concat(/* @__PURE__ */
|
|
3338
|
+
].concat(/* @__PURE__ */ Pe.map((e) => ({ name: e, parser: m.parser }))), ke = /* @__PURE__ */ oO.define({
|
|
3348
3339
|
name: "html",
|
|
3349
3340
|
parser: /* @__PURE__ */ Tt.configure({
|
|
3350
3341
|
props: [
|
|
3351
|
-
/* @__PURE__ */
|
|
3342
|
+
/* @__PURE__ */ QO.add({
|
|
3352
3343
|
Element(e) {
|
|
3353
3344
|
let O = /^(\s*)(<\/)?/.exec(e.textAfter);
|
|
3354
3345
|
return e.node.to <= e.pos + O[0].length ? e.continue() : e.lineIndent(e.node.from) + (O[2] ? 0 : e.unit);
|
|
@@ -3369,7 +3360,7 @@ const ja = /* @__PURE__ */ m.parser.configure({ top: "SingleExpression" }), ke =
|
|
|
3369
3360
|
return O && !((t = O.lastChild) && (t.name == "CloseTag" || t.name == "SelfClosingTag")) ? e.lineIndent(O.from) + e.unit : null;
|
|
3370
3361
|
}
|
|
3371
3362
|
}),
|
|
3372
|
-
/* @__PURE__ */
|
|
3363
|
+
/* @__PURE__ */ cO.add({
|
|
3373
3364
|
Element(e) {
|
|
3374
3365
|
let O = e.firstChild, t = e.lastChild;
|
|
3375
3366
|
return !O || O.name != "OpenTag" ? null : { from: O.to, to: t.name == "CloseTag" ? t.from : e.to };
|
|
@@ -3385,15 +3376,15 @@ const ja = /* @__PURE__ */ m.parser.configure({ top: "SingleExpression" }), ke =
|
|
|
3385
3376
|
indentOnInput: /^\s*<\/\w+\W$/,
|
|
3386
3377
|
wordChars: "-_"
|
|
3387
3378
|
}
|
|
3388
|
-
}), I = /* @__PURE__ */
|
|
3389
|
-
wrap: /* @__PURE__ */
|
|
3379
|
+
}), I = /* @__PURE__ */ ke.configure({
|
|
3380
|
+
wrap: /* @__PURE__ */ ne(xe, we)
|
|
3390
3381
|
});
|
|
3391
3382
|
function Aa(e = {}) {
|
|
3392
3383
|
let O = "", t;
|
|
3393
|
-
e.matchClosingTags === !1 && (O = "noMatch"), e.selfClosingTags === !0 && (O = (O ? O + " " : "") + "selfClosing"), (e.nestedLanguages && e.nestedLanguages.length || e.nestedAttributes && e.nestedAttributes.length) && (t =
|
|
3394
|
-
let a = t ?
|
|
3395
|
-
return new
|
|
3396
|
-
I.data.of({ autocomplete:
|
|
3384
|
+
e.matchClosingTags === !1 && (O = "noMatch"), e.selfClosingTags === !0 && (O = (O ? O + " " : "") + "selfClosing"), (e.nestedLanguages && e.nestedLanguages.length || e.nestedAttributes && e.nestedAttributes.length) && (t = ne((e.nestedLanguages || []).concat(xe), (e.nestedAttributes || []).concat(we)));
|
|
3385
|
+
let a = t ? ke.configure({ wrap: t, dialect: O }) : O ? I.configure({ dialect: O }) : I;
|
|
3386
|
+
return new uO(a, [
|
|
3387
|
+
I.data.of({ autocomplete: ja(e) }),
|
|
3397
3388
|
e.autoCloseTags !== !1 ? za : [],
|
|
3398
3389
|
Ya().support,
|
|
3399
3390
|
ta().support
|
|
@@ -3403,21 +3394,21 @@ const BO = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command emb
|
|
|
3403
3394
|
if (e.composing || e.state.readOnly || O != t || a != ">" && a != "/" || !I.isActiveAt(e.state, O, -1))
|
|
3404
3395
|
return !1;
|
|
3405
3396
|
let s = i(), { state: r } = s, l = r.changeByRange((n) => {
|
|
3406
|
-
var Q,
|
|
3407
|
-
let
|
|
3408
|
-
if (
|
|
3409
|
-
let
|
|
3410
|
-
if (((
|
|
3411
|
-
let
|
|
3412
|
-
return { range: n, changes: { from: p, to:
|
|
3397
|
+
var Q, $, c;
|
|
3398
|
+
let h = r.doc.sliceString(n.from - 1, n.to) == a, { head: p } = n, f = _(r).resolveInner(p, -1), S;
|
|
3399
|
+
if (h && a == ">" && f.name == "EndTag") {
|
|
3400
|
+
let d = f.parent;
|
|
3401
|
+
if ((($ = (Q = d.parent) === null || Q === void 0 ? void 0 : Q.lastChild) === null || $ === void 0 ? void 0 : $.name) != "CloseTag" && (S = Y(r.doc, d.parent, p)) && !BO.has(S)) {
|
|
3402
|
+
let w = p + (r.doc.sliceString(p, p + 1) === ">" ? 1 : 0), W = `</${S}>`;
|
|
3403
|
+
return { range: n, changes: { from: p, to: w, insert: W } };
|
|
3413
3404
|
}
|
|
3414
|
-
} else if (
|
|
3415
|
-
let
|
|
3416
|
-
if (f.from == p - 2 && ((c =
|
|
3417
|
-
let
|
|
3405
|
+
} else if (h && a == "/" && f.name == "IncompleteCloseTag") {
|
|
3406
|
+
let d = f.parent;
|
|
3407
|
+
if (f.from == p - 2 && ((c = d.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (S = Y(r.doc, d, p)) && !BO.has(S)) {
|
|
3408
|
+
let w = p + (r.doc.sliceString(p, p + 1) === ">" ? 1 : 0), W = `${S}>`;
|
|
3418
3409
|
return {
|
|
3419
|
-
range:
|
|
3420
|
-
changes: { from: p, to:
|
|
3410
|
+
range: C.cursor(p + W.length, -1),
|
|
3411
|
+
changes: { from: p, to: w, insert: W }
|
|
3421
3412
|
};
|
|
3422
3413
|
}
|
|
3423
3414
|
}
|
|
@@ -3435,7 +3426,7 @@ export {
|
|
|
3435
3426
|
za as autoCloseTags,
|
|
3436
3427
|
Aa as html,
|
|
3437
3428
|
Ia as htmlCompletionSource,
|
|
3438
|
-
|
|
3429
|
+
ja as htmlCompletionSourceWith,
|
|
3439
3430
|
I as htmlLanguage
|
|
3440
3431
|
};
|
|
3441
|
-
//# sourceMappingURL=index-
|
|
3432
|
+
//# sourceMappingURL=index-DD3HKlR3.mjs.map
|