@fileverse-dev/ddoc 3.0.62-collabName-1 → 3.0.62-patch-1
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/index.es.js +377 -377
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -3942,7 +3942,7 @@ class Eu extends ko {
|
|
|
3942
3942
|
return Fr.fromReplace(t, this.from, this.to, i);
|
|
3943
3943
|
}
|
|
3944
3944
|
invert() {
|
|
3945
|
-
return new
|
|
3945
|
+
return new Es(this.from, this.to, this.mark);
|
|
3946
3946
|
}
|
|
3947
3947
|
map(t) {
|
|
3948
3948
|
let n = t.mapResult(this.from, 1), r = t.mapResult(this.to, -1);
|
|
@@ -3969,7 +3969,7 @@ class Eu extends ko {
|
|
|
3969
3969
|
}
|
|
3970
3970
|
}
|
|
3971
3971
|
ko.jsonID("addMark", Eu);
|
|
3972
|
-
class
|
|
3972
|
+
class Es extends ko {
|
|
3973
3973
|
/**
|
|
3974
3974
|
Create a mark-removing step.
|
|
3975
3975
|
*/
|
|
@@ -3985,10 +3985,10 @@ class Cs extends ko {
|
|
|
3985
3985
|
}
|
|
3986
3986
|
map(t) {
|
|
3987
3987
|
let n = t.mapResult(this.from, 1), r = t.mapResult(this.to, -1);
|
|
3988
|
-
return n.deleted && r.deleted || n.pos >= r.pos ? null : new
|
|
3988
|
+
return n.deleted && r.deleted || n.pos >= r.pos ? null : new Es(n.pos, r.pos, this.mark);
|
|
3989
3989
|
}
|
|
3990
3990
|
merge(t) {
|
|
3991
|
-
return t instanceof
|
|
3991
|
+
return t instanceof Es && t.mark.eq(this.mark) && this.from <= t.to && this.to >= t.from ? new Es(Math.min(this.from, t.from), Math.max(this.to, t.to), this.mark) : null;
|
|
3992
3992
|
}
|
|
3993
3993
|
toJSON() {
|
|
3994
3994
|
return {
|
|
@@ -4004,10 +4004,10 @@ class Cs extends ko {
|
|
|
4004
4004
|
static fromJSON(t, n) {
|
|
4005
4005
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
4006
4006
|
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
4007
|
-
return new
|
|
4007
|
+
return new Es(n.from, n.to, t.markFromJSON(n.mark));
|
|
4008
4008
|
}
|
|
4009
4009
|
}
|
|
4010
|
-
ko.jsonID("removeMark",
|
|
4010
|
+
ko.jsonID("removeMark", Es);
|
|
4011
4011
|
class Cu extends ko {
|
|
4012
4012
|
/**
|
|
4013
4013
|
Create a node mark step.
|
|
@@ -4220,7 +4220,7 @@ function Xee(e, t, n, r) {
|
|
|
4220
4220
|
if (!r.isInSet(d) && c.type.allowsMarkType(r.type)) {
|
|
4221
4221
|
let p = Math.max(u, t), h = Math.min(u + l.nodeSize, n), f = r.addToSet(d);
|
|
4222
4222
|
for (let g = 0; g < d.length; g++)
|
|
4223
|
-
d[g].isInSet(f) || (s && s.to == p && s.mark.eq(d[g]) ? s.to = h : o.push(s = new
|
|
4223
|
+
d[g].isInSet(f) || (s && s.to == p && s.mark.eq(d[g]) ? s.to = h : o.push(s = new Es(p, h, d[g])));
|
|
4224
4224
|
a && a.to == p ? a.to = h : i.push(a = new Eu(p, h, r));
|
|
4225
4225
|
}
|
|
4226
4226
|
}), o.forEach((l) => e.step(l)), i.forEach((l) => e.step(l));
|
|
@@ -4248,7 +4248,7 @@ function Zee(e, t, n, r) {
|
|
|
4248
4248
|
p ? (p.to = u, p.step = i) : o.push({ style: d, from: Math.max(a, t), to: u, step: i });
|
|
4249
4249
|
}
|
|
4250
4250
|
}
|
|
4251
|
-
}), o.forEach((s) => e.step(new
|
|
4251
|
+
}), o.forEach((s) => e.step(new Es(s.from, s.to, s.style)));
|
|
4252
4252
|
}
|
|
4253
4253
|
function Rk(e, t, n, r = n.contentMatch, o = !0) {
|
|
4254
4254
|
let i = e.doc.nodeAt(t), s = [], a = t + 1;
|
|
@@ -4259,7 +4259,7 @@ function Rk(e, t, n, r = n.contentMatch, o = !0) {
|
|
|
4259
4259
|
else {
|
|
4260
4260
|
r = d;
|
|
4261
4261
|
for (let p = 0; p < u.marks.length; p++)
|
|
4262
|
-
n.allowsMarkType(u.marks[p].type) || e.step(new
|
|
4262
|
+
n.allowsMarkType(u.marks[p].type) || e.step(new Es(a, c, u.marks[p]));
|
|
4263
4263
|
if (o && u.isText && n.whitespace != "pre") {
|
|
4264
4264
|
let p, h = /\r?\n|\r/g, f;
|
|
4265
4265
|
for (; p = h.exec(u.text); )
|
|
@@ -12368,7 +12368,7 @@ var wt = class eU extends l8 {
|
|
|
12368
12368
|
const p = c.mapping;
|
|
12369
12369
|
c.steps.forEach((h, f) => {
|
|
12370
12370
|
var g, m;
|
|
12371
|
-
if (h instanceof
|
|
12371
|
+
if (h instanceof Es) {
|
|
12372
12372
|
const b = p.slice(f).map(h.from, -1), y = p.slice(f).map(h.to), x = p.invert().map(b, -1), v = p.invert().map(y), D = (g = c.doc.nodeAt(b - 1)) == null ? void 0 : g.marks.some((k) => k.eq(h.mark)), w = (m = c.doc.nodeAt(y)) == null ? void 0 : m.marks.some((k) => k.eq(h.mark));
|
|
12373
12373
|
this.editor.emit("delete", {
|
|
12374
12374
|
type: "mark",
|
|
@@ -14636,7 +14636,7 @@ var Iie = class extends vie {
|
|
|
14636
14636
|
}
|
|
14637
14637
|
}
|
|
14638
14638
|
};
|
|
14639
|
-
function
|
|
14639
|
+
function zs(e, t) {
|
|
14640
14640
|
return (n) => n.editor.contentComponent ? new Iie(e, n, t) : {};
|
|
14641
14641
|
}
|
|
14642
14642
|
const vU = ["top", "right", "bottom", "left"], dA = ["start", "end"], pA = /* @__PURE__ */ vU.reduce((e, t) => e.concat(t, t + "-" + dA[0], t + "-" + dA[1]), []), _a = Math.min, Mo = Math.max, yb = Math.round, ya = (e) => ({
|
|
@@ -14660,7 +14660,7 @@ function Pl(e, t) {
|
|
|
14660
14660
|
function ls(e) {
|
|
14661
14661
|
return e.split("-")[0];
|
|
14662
14662
|
}
|
|
14663
|
-
function
|
|
14663
|
+
function Ss(e) {
|
|
14664
14664
|
return e.split("-")[1];
|
|
14665
14665
|
}
|
|
14666
14666
|
function FU(e) {
|
|
@@ -14678,7 +14678,7 @@ function f8(e) {
|
|
|
14678
14678
|
}
|
|
14679
14679
|
function wU(e, t, n) {
|
|
14680
14680
|
n === void 0 && (n = !1);
|
|
14681
|
-
const r =
|
|
14681
|
+
const r = Ss(e), o = f8(e), i = h8(o);
|
|
14682
14682
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
14683
14683
|
return t.reference[i] > t.floating[i] && (s = vb(s)), [s, vb(s)];
|
|
14684
14684
|
}
|
|
@@ -14703,7 +14703,7 @@ function Wie(e, t, n) {
|
|
|
14703
14703
|
}
|
|
14704
14704
|
}
|
|
14705
14705
|
function qie(e, t, n, r) {
|
|
14706
|
-
const o =
|
|
14706
|
+
const o = Ss(e);
|
|
14707
14707
|
let i = Wie(ls(e), n === "start", r);
|
|
14708
14708
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(xb)))), i;
|
|
14709
14709
|
}
|
|
@@ -14783,7 +14783,7 @@ function gA(e, t, n) {
|
|
|
14783
14783
|
y: r.y
|
|
14784
14784
|
};
|
|
14785
14785
|
}
|
|
14786
|
-
switch (
|
|
14786
|
+
switch (Ss(t)) {
|
|
14787
14787
|
case "start":
|
|
14788
14788
|
h[s] -= p * (n && u ? -1 : 1);
|
|
14789
14789
|
break;
|
|
@@ -14923,7 +14923,7 @@ const Kie = (e) => ({
|
|
|
14923
14923
|
}, h = f8(o), f = h8(h), g = await s.getDimensions(u), m = h === "y", b = m ? "top" : "left", y = m ? "bottom" : "right", x = m ? "clientHeight" : "clientWidth", v = i.reference[f] + i.reference[h] - p[h] - i.floating[f], D = p[h] - i.reference[h], w = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
14924
14924
|
let k = w ? w[x] : 0;
|
|
14925
14925
|
(!k || !await (s.isElement == null ? void 0 : s.isElement(w))) && (k = a.floating[x] || i.floating[f]);
|
|
14926
|
-
const C = v / 2 - D / 2, A = k / 2 - g[f] / 2 - 1, N = _a(d[b], A), O = _a(d[y], A), _ = N, M = k - g[f] - O, E = k / 2 - g[f] / 2 + C, S = sw(_, E, M), T = !l.arrow &&
|
|
14926
|
+
const C = v / 2 - D / 2, A = k / 2 - g[f] / 2 - 1, N = _a(d[b], A), O = _a(d[y], A), _ = N, M = k - g[f] - O, E = k / 2 - g[f] / 2 + C, S = sw(_, E, M), T = !l.arrow && Ss(o) != null && E !== S && i.reference[f] / 2 - (E < _ ? N : O) - g[f] / 2 < 0, L = T ? E < _ ? E - _ : E - M : 0;
|
|
14927
14927
|
return {
|
|
14928
14928
|
[h]: p[h] + L,
|
|
14929
14929
|
data: {
|
|
@@ -14938,7 +14938,7 @@ const Kie = (e) => ({
|
|
|
14938
14938
|
}
|
|
14939
14939
|
});
|
|
14940
14940
|
function Yie(e, t, n) {
|
|
14941
|
-
return (e ? [...n.filter((o) =>
|
|
14941
|
+
return (e ? [...n.filter((o) => Ss(o) === e), ...n.filter((o) => Ss(o) !== e)] : n.filter((o) => ls(o) === o)).filter((o) => e ? Ss(o) === e || (t ? xb(o) !== o : !1) : !0);
|
|
14942
14942
|
}
|
|
14943
14943
|
const Xie = function(e) {
|
|
14944
14944
|
return e === void 0 && (e = {}), {
|
|
@@ -14983,7 +14983,7 @@ const Xie = function(e) {
|
|
|
14983
14983
|
}
|
|
14984
14984
|
};
|
|
14985
14985
|
const k = D.map((N) => {
|
|
14986
|
-
const O =
|
|
14986
|
+
const O = Ss(N.placement);
|
|
14987
14987
|
return [N.placement, O && c ? (
|
|
14988
14988
|
// Check along the mainAxis and main crossAxis side.
|
|
14989
14989
|
N.overflows.slice(0, 2).reduce((_, M) => _ + M, 0)
|
|
@@ -14995,7 +14995,7 @@ const Xie = function(e) {
|
|
|
14995
14995
|
0,
|
|
14996
14996
|
// Aligned placements should not check their opposite crossAxis
|
|
14997
14997
|
// side.
|
|
14998
|
-
|
|
14998
|
+
Ss(N[0]) ? 2 : 3
|
|
14999
14999
|
).every((O) => O <= 0))[0]) == null ? void 0 : o[0]) || k[0][0];
|
|
15000
15000
|
return A !== a ? {
|
|
15001
15001
|
data: {
|
|
@@ -15228,7 +15228,7 @@ async function nse(e, t) {
|
|
|
15228
15228
|
placement: n,
|
|
15229
15229
|
platform: r,
|
|
15230
15230
|
elements: o
|
|
15231
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = ls(n), a =
|
|
15231
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = ls(n), a = Ss(n), l = ua(n) === "y", u = tse.has(s) ? -1 : 1, c = i && l ? -1 : 1, d = Pl(t, e);
|
|
15232
15232
|
let {
|
|
15233
15233
|
mainAxis: p,
|
|
15234
15234
|
crossAxis: h,
|
|
@@ -15343,7 +15343,7 @@ const rse = function(e) {
|
|
|
15343
15343
|
apply: l = () => {
|
|
15344
15344
|
},
|
|
15345
15345
|
...u
|
|
15346
|
-
} = Pl(e, t), c = await lh(t, u), d = ls(o), p =
|
|
15346
|
+
} = Pl(e, t), c = await lh(t, u), d = ls(o), p = Ss(o), h = ua(o) === "y", {
|
|
15347
15347
|
width: f,
|
|
15348
15348
|
height: g
|
|
15349
15349
|
} = i.floating;
|
|
@@ -15386,7 +15386,7 @@ function zl(e) {
|
|
|
15386
15386
|
function kU(e) {
|
|
15387
15387
|
return Rx() ? e instanceof Node || e instanceof Ni(e).Node : !1;
|
|
15388
15388
|
}
|
|
15389
|
-
function
|
|
15389
|
+
function Bs(e) {
|
|
15390
15390
|
return Rx() ? e instanceof Element || e instanceof Ni(e).Element : !1;
|
|
15391
15391
|
}
|
|
15392
15392
|
function Aa(e) {
|
|
@@ -15402,7 +15402,7 @@ function lg(e) {
|
|
|
15402
15402
|
overflowX: n,
|
|
15403
15403
|
overflowY: r,
|
|
15404
15404
|
display: o
|
|
15405
|
-
} =
|
|
15405
|
+
} = Ms(e);
|
|
15406
15406
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !sse.has(o);
|
|
15407
15407
|
}
|
|
15408
15408
|
const ase = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
@@ -15421,7 +15421,7 @@ function Ix(e) {
|
|
|
15421
15421
|
}
|
|
15422
15422
|
const cse = ["transform", "translate", "scale", "rotate", "perspective"], dse = ["transform", "translate", "scale", "rotate", "perspective", "filter"], pse = ["paint", "layout", "strict", "content"];
|
|
15423
15423
|
function m8(e) {
|
|
15424
|
-
const t = b8(), n =
|
|
15424
|
+
const t = b8(), n = Bs(e) ? Ms(e) : e;
|
|
15425
15425
|
return cse.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || dse.some((r) => (n.willChange || "").includes(r)) || pse.some((r) => (n.contain || "").includes(r));
|
|
15426
15426
|
}
|
|
15427
15427
|
function hse(e) {
|
|
@@ -15442,11 +15442,11 @@ const fse = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
|
15442
15442
|
function uh(e) {
|
|
15443
15443
|
return fse.has(Uh(e));
|
|
15444
15444
|
}
|
|
15445
|
-
function
|
|
15445
|
+
function Ms(e) {
|
|
15446
15446
|
return Ni(e).getComputedStyle(e);
|
|
15447
15447
|
}
|
|
15448
15448
|
function Lx(e) {
|
|
15449
|
-
return
|
|
15449
|
+
return Bs(e) ? {
|
|
15450
15450
|
scrollLeft: e.scrollLeft,
|
|
15451
15451
|
scrollTop: e.scrollTop
|
|
15452
15452
|
} : {
|
|
@@ -15480,7 +15480,7 @@ function aw(e) {
|
|
|
15480
15480
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
15481
15481
|
}
|
|
15482
15482
|
function _U(e) {
|
|
15483
|
-
const t =
|
|
15483
|
+
const t = Ms(e);
|
|
15484
15484
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
15485
15485
|
const o = Aa(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = yb(n) !== i || yb(r) !== s;
|
|
15486
15486
|
return a && (n = i, r = s), {
|
|
@@ -15490,7 +15490,7 @@ function _U(e) {
|
|
|
15490
15490
|
};
|
|
15491
15491
|
}
|
|
15492
15492
|
function AU(e) {
|
|
15493
|
-
return
|
|
15493
|
+
return Bs(e) ? e : e.contextElement;
|
|
15494
15494
|
}
|
|
15495
15495
|
function Pp(e) {
|
|
15496
15496
|
const t = AU(e);
|
|
@@ -15522,14 +15522,14 @@ function e1(e, t, n, r) {
|
|
|
15522
15522
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
15523
15523
|
const o = e.getBoundingClientRect(), i = AU(e);
|
|
15524
15524
|
let s = ya(1);
|
|
15525
|
-
t && (r ?
|
|
15525
|
+
t && (r ? Bs(r) && (s = Pp(r)) : s = Pp(e));
|
|
15526
15526
|
const a = mse(i, n, r) ? SU(i) : ya(0);
|
|
15527
15527
|
let l = (o.left + a.x) / s.x, u = (o.top + a.y) / s.y, c = o.width / s.x, d = o.height / s.y;
|
|
15528
15528
|
if (i) {
|
|
15529
|
-
const p = Ni(i), h = r &&
|
|
15529
|
+
const p = Ni(i), h = r && Bs(r) ? Ni(r) : r;
|
|
15530
15530
|
let f = p, g = aw(f);
|
|
15531
15531
|
for (; g && r && h !== f; ) {
|
|
15532
|
-
const m = Pp(g), b = g.getBoundingClientRect(), y =
|
|
15532
|
+
const m = Pp(g), b = g.getBoundingClientRect(), y = Ms(g), x = b.left + (g.clientLeft + parseFloat(y.paddingLeft)) * m.x, v = b.top + (g.clientTop + parseFloat(y.paddingTop)) * m.y;
|
|
15533
15533
|
l *= m.x, u *= m.y, c *= m.x, d *= m.y, l += x, u += v, f = Ni(g), g = aw(f);
|
|
15534
15534
|
}
|
|
15535
15535
|
}
|
|
@@ -15585,7 +15585,7 @@ function xse(e) {
|
|
|
15585
15585
|
const t = zl(e), n = Lx(e), r = e.ownerDocument.body, o = Mo(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Mo(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
15586
15586
|
let s = -n.scrollLeft + Ux(e);
|
|
15587
15587
|
const a = -n.scrollTop;
|
|
15588
|
-
return
|
|
15588
|
+
return Ms(r).direction === "rtl" && (s += Mo(t.clientWidth, r.clientWidth) - o), {
|
|
15589
15589
|
width: o,
|
|
15590
15590
|
height: i,
|
|
15591
15591
|
x: s,
|
|
@@ -15629,7 +15629,7 @@ function vA(e, t, n) {
|
|
|
15629
15629
|
r = vse(e, n);
|
|
15630
15630
|
else if (t === "document")
|
|
15631
15631
|
r = xse(zl(e));
|
|
15632
|
-
else if (
|
|
15632
|
+
else if (Bs(t))
|
|
15633
15633
|
r = wse(t, n);
|
|
15634
15634
|
else {
|
|
15635
15635
|
const o = SU(e);
|
|
@@ -15644,17 +15644,17 @@ function vA(e, t, n) {
|
|
|
15644
15644
|
}
|
|
15645
15645
|
function jU(e, t) {
|
|
15646
15646
|
const n = Vu(e);
|
|
15647
|
-
return n === t || !
|
|
15647
|
+
return n === t || !Bs(n) || uh(n) ? !1 : Ms(n).position === "fixed" || jU(n, t);
|
|
15648
15648
|
}
|
|
15649
15649
|
function Dse(e, t) {
|
|
15650
15650
|
const n = t.get(e);
|
|
15651
15651
|
if (n)
|
|
15652
15652
|
return n;
|
|
15653
|
-
let r = CU(e, []).filter((a) =>
|
|
15654
|
-
const i =
|
|
15653
|
+
let r = CU(e, []).filter((a) => Bs(a) && Uh(a) !== "body"), o = null;
|
|
15654
|
+
const i = Ms(e).position === "fixed";
|
|
15655
15655
|
let s = i ? Vu(e) : e;
|
|
15656
|
-
for (;
|
|
15657
|
-
const a =
|
|
15656
|
+
for (; Bs(s) && !uh(s); ) {
|
|
15657
|
+
const a = Ms(s), l = m8(s);
|
|
15658
15658
|
!l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && Fse.has(o.position) || lg(s) && !l && jU(e, s)) ? r = r.filter((c) => c !== s) : o = a, s = Vu(s);
|
|
15659
15659
|
}
|
|
15660
15660
|
return t.set(e, r), r;
|
|
@@ -15712,10 +15712,10 @@ function Cse(e, t, n) {
|
|
|
15712
15712
|
};
|
|
15713
15713
|
}
|
|
15714
15714
|
function i4(e) {
|
|
15715
|
-
return
|
|
15715
|
+
return Ms(e).position === "static";
|
|
15716
15716
|
}
|
|
15717
15717
|
function FA(e, t) {
|
|
15718
|
-
if (!Aa(e) ||
|
|
15718
|
+
if (!Aa(e) || Ms(e).position === "fixed")
|
|
15719
15719
|
return null;
|
|
15720
15720
|
if (t)
|
|
15721
15721
|
return t(e);
|
|
@@ -15729,7 +15729,7 @@ function NU(e, t) {
|
|
|
15729
15729
|
if (!Aa(e)) {
|
|
15730
15730
|
let o = Vu(e);
|
|
15731
15731
|
for (; o && !uh(o); ) {
|
|
15732
|
-
if (
|
|
15732
|
+
if (Bs(o) && !i4(o))
|
|
15733
15733
|
return o;
|
|
15734
15734
|
o = Vu(o);
|
|
15735
15735
|
}
|
|
@@ -15753,7 +15753,7 @@ const _se = async function(e) {
|
|
|
15753
15753
|
};
|
|
15754
15754
|
};
|
|
15755
15755
|
function Ase(e) {
|
|
15756
|
-
return
|
|
15756
|
+
return Ms(e).direction === "rtl";
|
|
15757
15757
|
}
|
|
15758
15758
|
const Sse = {
|
|
15759
15759
|
convertOffsetParentRelativeRectToViewportRelativeRect: bse,
|
|
@@ -15764,7 +15764,7 @@ const Sse = {
|
|
|
15764
15764
|
getClientRects: yse,
|
|
15765
15765
|
getDimensions: Ese,
|
|
15766
15766
|
getScale: Pp,
|
|
15767
|
-
isElement:
|
|
15767
|
+
isElement: Bs,
|
|
15768
15768
|
isRTL: Ase
|
|
15769
15769
|
}, BU = rse, MU = Xie, OU = ose, RU = Zie, IU = ise, LU = Jie, UU = Kie, PU = ese, zU = (e, t, n) => {
|
|
15770
15770
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
@@ -16000,7 +16000,7 @@ function Mse(e) {
|
|
|
16000
16000
|
}
|
|
16001
16001
|
return null;
|
|
16002
16002
|
}
|
|
16003
|
-
function
|
|
16003
|
+
function $s(e) {
|
|
16004
16004
|
const t = e.selection.$head;
|
|
16005
16005
|
for (let n = t.depth; n > 0; n--)
|
|
16006
16006
|
if (t.node(n).type.spec.tableRole == "row") return !0;
|
|
@@ -16396,7 +16396,7 @@ function GU(e, { map: t, tableStart: n, table: r }, o) {
|
|
|
16396
16396
|
return e;
|
|
16397
16397
|
}
|
|
16398
16398
|
function qse(e, t) {
|
|
16399
|
-
if (
|
|
16399
|
+
if (!$s(e)) return !1;
|
|
16400
16400
|
if (t) {
|
|
16401
16401
|
const n = Oa(e);
|
|
16402
16402
|
t(GU(e.tr, n, n.left));
|
|
@@ -16404,7 +16404,7 @@ function qse(e, t) {
|
|
|
16404
16404
|
return !0;
|
|
16405
16405
|
}
|
|
16406
16406
|
function Vse(e, t) {
|
|
16407
|
-
if (
|
|
16407
|
+
if (!$s(e)) return !1;
|
|
16408
16408
|
if (t) {
|
|
16409
16409
|
const n = Oa(e);
|
|
16410
16410
|
t(GU(e.tr, n, n.right));
|
|
@@ -16429,7 +16429,7 @@ function Gse(e, { map: t, table: n, tableStart: r }, o) {
|
|
|
16429
16429
|
}
|
|
16430
16430
|
}
|
|
16431
16431
|
function Kse(e, t) {
|
|
16432
|
-
if (
|
|
16432
|
+
if (!$s(e)) return !1;
|
|
16433
16433
|
if (t) {
|
|
16434
16434
|
const n = Oa(e), r = e.tr;
|
|
16435
16435
|
if (n.left == 0 && n.right == n.map.width) return !1;
|
|
@@ -16472,7 +16472,7 @@ function KU(e, { map: t, tableStart: n, table: r }, o) {
|
|
|
16472
16472
|
return e.insert(s, wo(r.type.schema).row.create(null, a)), e;
|
|
16473
16473
|
}
|
|
16474
16474
|
function Xse(e, t) {
|
|
16475
|
-
if (
|
|
16475
|
+
if (!$s(e)) return !1;
|
|
16476
16476
|
if (t) {
|
|
16477
16477
|
const n = Oa(e);
|
|
16478
16478
|
t(KU(e.tr, n, n.top));
|
|
@@ -16480,7 +16480,7 @@ function Xse(e, t) {
|
|
|
16480
16480
|
return !0;
|
|
16481
16481
|
}
|
|
16482
16482
|
function Zse(e, t) {
|
|
16483
|
-
if (
|
|
16483
|
+
if (!$s(e)) return !1;
|
|
16484
16484
|
if (t) {
|
|
16485
16485
|
const n = Oa(e);
|
|
16486
16486
|
t(KU(e.tr, n, n.bottom));
|
|
@@ -16513,7 +16513,7 @@ function Jse(e, { map: t, table: n, tableStart: r }, o) {
|
|
|
16513
16513
|
}
|
|
16514
16514
|
}
|
|
16515
16515
|
function Qse(e, t) {
|
|
16516
|
-
if (
|
|
16516
|
+
if (!$s(e)) return !1;
|
|
16517
16517
|
if (t) {
|
|
16518
16518
|
const n = Oa(e), r = e.tr;
|
|
16519
16519
|
if (n.top == 0 && n.bottom == n.map.height) return !1;
|
|
@@ -16641,7 +16641,7 @@ function tae(e) {
|
|
|
16641
16641
|
}
|
|
16642
16642
|
function nae(e, t) {
|
|
16643
16643
|
return function(n, r) {
|
|
16644
|
-
if (
|
|
16644
|
+
if (!$s(n)) return !1;
|
|
16645
16645
|
const o = Px(n);
|
|
16646
16646
|
if (o.nodeAfter.attrs[e] === t) return !1;
|
|
16647
16647
|
if (r) {
|
|
@@ -16661,7 +16661,7 @@ function nae(e, t) {
|
|
|
16661
16661
|
}
|
|
16662
16662
|
function rae(e) {
|
|
16663
16663
|
return function(t, n) {
|
|
16664
|
-
if (
|
|
16664
|
+
if (!$s(t)) return !1;
|
|
16665
16665
|
if (n) {
|
|
16666
16666
|
const r = wo(t.schema), o = Oa(t), i = t.tr, s = o.map.cellsInRect(
|
|
16667
16667
|
e == "column" ? {
|
|
@@ -16710,7 +16710,7 @@ function EA(e, t, n) {
|
|
|
16710
16710
|
}
|
|
16711
16711
|
function t1(e, t) {
|
|
16712
16712
|
return t = t || { useDeprecatedLogic: !1 }, t.useDeprecatedLogic ? rae(e) : function(n, r) {
|
|
16713
|
-
if (
|
|
16713
|
+
if (!$s(n)) return !1;
|
|
16714
16714
|
if (r) {
|
|
16715
16715
|
const o = wo(n.schema), i = Oa(n), s = n.tr, a = EA("row", i, o), l = EA(
|
|
16716
16716
|
"column",
|
|
@@ -16768,7 +16768,7 @@ function iae(e, t) {
|
|
|
16768
16768
|
}
|
|
16769
16769
|
function CA(e) {
|
|
16770
16770
|
return function(t, n) {
|
|
16771
|
-
if (
|
|
16771
|
+
if (!$s(t)) return !1;
|
|
16772
16772
|
const r = iae(Px(t), e);
|
|
16773
16773
|
if (r == null) return !1;
|
|
16774
16774
|
if (n) {
|
|
@@ -17068,7 +17068,7 @@ function pae(e, t) {
|
|
|
17068
17068
|
return r ? (e.dispatch(e.state.tr.setSelection(new On(r))), !0) : !1;
|
|
17069
17069
|
}
|
|
17070
17070
|
function hae(e, t, n) {
|
|
17071
|
-
if (
|
|
17071
|
+
if (!$s(e.state)) return !1;
|
|
17072
17072
|
let r = aae(n);
|
|
17073
17073
|
const o = e.state.selection;
|
|
17074
17074
|
if (o instanceof On) {
|
|
@@ -18199,7 +18199,7 @@ function Yae(e) {
|
|
|
18199
18199
|
function r1(e) {
|
|
18200
18200
|
return o1(e).map(Number);
|
|
18201
18201
|
}
|
|
18202
|
-
function
|
|
18202
|
+
function Ts(e) {
|
|
18203
18203
|
return e[ug(e)];
|
|
18204
18204
|
}
|
|
18205
18205
|
function ug(e) {
|
|
@@ -18620,7 +18620,7 @@ function sle(e, t, n, r, o) {
|
|
|
18620
18620
|
return cf(f, g) <= 1;
|
|
18621
18621
|
}
|
|
18622
18622
|
function c() {
|
|
18623
|
-
const f = s[0], g =
|
|
18623
|
+
const f = s[0], g = Ts(s), m = s.lastIndexOf(f), b = s.indexOf(g) + 1;
|
|
18624
18624
|
return bd(m, b);
|
|
18625
18625
|
}
|
|
18626
18626
|
function d() {
|
|
@@ -18647,7 +18647,7 @@ function sle(e, t, n, r, o) {
|
|
|
18647
18647
|
};
|
|
18648
18648
|
}
|
|
18649
18649
|
function ale(e, t, n) {
|
|
18650
|
-
const r = t[0], o = n ? r - e :
|
|
18650
|
+
const r = t[0], o = n ? r - e : Ts(t);
|
|
18651
18651
|
return {
|
|
18652
18652
|
limit: bd(o, r)
|
|
18653
18653
|
};
|
|
@@ -18690,7 +18690,7 @@ function cle(e, t, n, r, o) {
|
|
|
18690
18690
|
groupSlides: a
|
|
18691
18691
|
} = o, l = d().map(t.measure), u = p(), c = h();
|
|
18692
18692
|
function d() {
|
|
18693
|
-
return a(r).map((g) =>
|
|
18693
|
+
return a(r).map((g) => Ts(g)[s] - g[0][i]).map(nr);
|
|
18694
18694
|
}
|
|
18695
18695
|
function p() {
|
|
18696
18696
|
return r.map((g) => n[i] - g[i]).map((g) => -nr(g));
|
|
@@ -18715,12 +18715,12 @@ function dle(e, t, n, r, o, i) {
|
|
|
18715
18715
|
return n.length === 1 ? [i] : h ? p : p.slice(a, l).map((f, g, m) => {
|
|
18716
18716
|
const b = !g, y = D8(m, g);
|
|
18717
18717
|
if (b) {
|
|
18718
|
-
const x =
|
|
18718
|
+
const x = Ts(m[0]) + 1;
|
|
18719
18719
|
return LA(x);
|
|
18720
18720
|
}
|
|
18721
18721
|
if (y) {
|
|
18722
|
-
const x = ug(i) -
|
|
18723
|
-
return LA(x,
|
|
18722
|
+
const x = ug(i) - Ts(m)[0] + 1;
|
|
18723
|
+
return LA(x, Ts(m)[0]);
|
|
18724
18724
|
}
|
|
18725
18725
|
return f;
|
|
18726
18726
|
});
|
|
@@ -18755,7 +18755,7 @@ function ple(e, t, n, r, o) {
|
|
|
18755
18755
|
if (!e) return f;
|
|
18756
18756
|
if (!g) return l(m);
|
|
18757
18757
|
const b = m.filter((y) => w8(y) === g);
|
|
18758
|
-
return b.length ? l(b) :
|
|
18758
|
+
return b.length ? l(b) : Ts(m) - n;
|
|
18759
18759
|
}
|
|
18760
18760
|
function d(f, g) {
|
|
18761
18761
|
const m = t[f] - o.get(), b = c(m, g);
|
|
@@ -19018,7 +19018,7 @@ function yle(e, t, n, r, o, i) {
|
|
|
19018
19018
|
}
|
|
19019
19019
|
function g() {
|
|
19020
19020
|
if (!u) return 0;
|
|
19021
|
-
const y = i.getComputedStyle(
|
|
19021
|
+
const y = i.getComputedStyle(Ts(r));
|
|
19022
19022
|
return parseFloat(y.getPropertyValue(`margin-${l}`));
|
|
19023
19023
|
}
|
|
19024
19024
|
function m() {
|
|
@@ -19045,7 +19045,7 @@ function xle(e, t, n, r, o, i, s, a, l) {
|
|
|
19045
19045
|
}
|
|
19046
19046
|
function f(b) {
|
|
19047
19047
|
return b.length ? r1(b).reduce((y, x, v) => {
|
|
19048
|
-
const D =
|
|
19048
|
+
const D = Ts(y) || 0, w = D === 0, k = x === ug(b), C = o[u] - i[D][u], A = o[u] - i[x][c], N = !r && w ? d(s) : 0, O = !r && k ? d(a) : 0, _ = nr(A - O - (C + N));
|
|
19049
19049
|
return v && _ > t + l && y.push(x), k && y.push(b.length), y;
|
|
19050
19050
|
}, []).map((y, x, v) => {
|
|
19051
19051
|
const D = Math.max(v[x - 1] || 0);
|
|
@@ -19085,7 +19085,7 @@ function vle(e, t, n, r, o, i, s) {
|
|
|
19085
19085
|
} = yle(O, A, N, n, T, o), U = xle(O, _, m, d, A, N, $, q, k), {
|
|
19086
19086
|
snaps: P,
|
|
19087
19087
|
snapsAligned: Y
|
|
19088
|
-
} = cle(O, E, A, N, U), ie = -
|
|
19088
|
+
} = cle(O, E, A, N, U), ie = -Ts(P) + Ts(z), {
|
|
19089
19089
|
snapsContained: ne,
|
|
19090
19090
|
scrollContainLimit: X
|
|
19091
19091
|
} = sle(_, ie, Y, y, k), oe = S ? ne : Y, {
|
|
@@ -21961,7 +21961,7 @@ const Ro = () => /* @__PURE__ */ new Map(), ww = (e) => {
|
|
|
21961
21961
|
return e.forEach((n, r) => {
|
|
21962
21962
|
t.set(r, n);
|
|
21963
21963
|
}), t;
|
|
21964
|
-
},
|
|
21964
|
+
}, Hs = (e, t, n) => {
|
|
21965
21965
|
let r = e.get(t);
|
|
21966
21966
|
return r === void 0 && e.set(t, r = n()), r;
|
|
21967
21967
|
}, Xle = (e, t) => {
|
|
@@ -21993,7 +21993,7 @@ class bP {
|
|
|
21993
21993
|
* @param {EVENTS[NAME]} f
|
|
21994
21994
|
*/
|
|
21995
21995
|
on(t, n) {
|
|
21996
|
-
return
|
|
21996
|
+
return Hs(
|
|
21997
21997
|
this._observers,
|
|
21998
21998
|
/** @type {string} */
|
|
21999
21999
|
t,
|
|
@@ -22054,7 +22054,7 @@ class yP {
|
|
|
22054
22054
|
* @param {function} f
|
|
22055
22055
|
*/
|
|
22056
22056
|
on(t, n) {
|
|
22057
|
-
|
|
22057
|
+
Hs(this._observers, t, Gu).add(n);
|
|
22058
22058
|
}
|
|
22059
22059
|
/**
|
|
22060
22060
|
* @param {N} name
|
|
@@ -22090,7 +22090,7 @@ class yP {
|
|
|
22090
22090
|
this._observers = Ro();
|
|
22091
22091
|
}
|
|
22092
22092
|
}
|
|
22093
|
-
const Sa = Math.floor, j2 = Math.abs, xl = (e, t) => e < t ? e : t,
|
|
22093
|
+
const Sa = Math.floor, j2 = Math.abs, xl = (e, t) => e < t ? e : t, Os = (e, t) => e > t ? e : t, xP = (e) => e !== 0 ? e < 0 : 1 / e < 0, UA = 1, PA = 2, u4 = 4, c4 = 8, l1 = 32, vl = 64, Io = 128, eue = 1 << 29, qx = 31, kw = 63, rd = 127, tue = 2147483647, vP = Number.MAX_SAFE_INTEGER, nue = Number.isInteger || ((e) => typeof e == "number" && isFinite(e) && Sa(e) === e), rue = String.fromCharCode, oue = (e) => e.toLowerCase(), iue = /^\s*/g, sue = (e) => e.replace(iue, ""), aue = /([A-Z])/g, zA = (e, t) => sue(e.replace(aue, (n) => `${t}${oue(n)}`)), lue = (e) => {
|
|
22094
22094
|
const t = unescape(encodeURIComponent(e)), n = t.length, r = new Uint8Array(n);
|
|
22095
22095
|
for (let o = 0; o < n; o++)
|
|
22096
22096
|
r[o] = /** @type {number} */
|
|
@@ -22125,7 +22125,7 @@ const zh = () => new pg(), due = (e) => {
|
|
|
22125
22125
|
return t.set(new Uint8Array(e.cbuf.buffer, 0, e.cpos), n), t;
|
|
22126
22126
|
}, hue = (e, t) => {
|
|
22127
22127
|
const n = e.cbuf.length;
|
|
22128
|
-
n - e.cpos < t && (e.bufs.push(new Uint8Array(e.cbuf.buffer, 0, e.cpos)), e.cbuf = new Uint8Array(
|
|
22128
|
+
n - e.cpos < t && (e.bufs.push(new Uint8Array(e.cbuf.buffer, 0, e.cpos)), e.cbuf = new Uint8Array(Os(n, t) * 2), e.cpos = 0);
|
|
22129
22129
|
}, Lr = (e, t) => {
|
|
22130
22130
|
const n = e.cbuf.length;
|
|
22131
22131
|
e.cpos === n && (e.bufs.push(e.cbuf), e.cbuf = new Uint8Array(n * 2), e.cpos = 0), e.cbuf[e.cpos++] = t;
|
|
@@ -22157,7 +22157,7 @@ const zh = () => new pg(), due = (e) => {
|
|
|
22157
22157
|
}, od = u1 && /** @type {any} */
|
|
22158
22158
|
u1.encodeInto ? gue : mue, Vx = (e, t) => {
|
|
22159
22159
|
const n = e.cbuf.length, r = e.cpos, o = xl(n - r, t.length), i = t.length - o;
|
|
22160
|
-
e.cbuf.set(t.subarray(0, o), r), e.cpos += o, i > 0 && (e.bufs.push(e.cbuf), e.cbuf = new Uint8Array(
|
|
22160
|
+
e.cbuf.set(t.subarray(0, o), r), e.cpos += o, i > 0 && (e.bufs.push(e.cbuf), e.cbuf = new Uint8Array(Os(n * 2, i)), e.cbuf.set(t.subarray(o)), e.cpos = i);
|
|
22161
22161
|
}, wi = (e, t) => {
|
|
22162
22162
|
Wt(e, t.byteLength), Vx(e, t);
|
|
22163
22163
|
}, _8 = (e, t) => {
|
|
@@ -22280,7 +22280,7 @@ class Fue {
|
|
|
22280
22280
|
return this.sarr.push(this.s), this.s = "", od(t, this.sarr.join("")), Vx(t, this.lensE.toUint8Array()), es(t);
|
|
22281
22281
|
}
|
|
22282
22282
|
}
|
|
22283
|
-
const _l = (e) => new Error(e),
|
|
22283
|
+
const _l = (e) => new Error(e), js = () => {
|
|
22284
22284
|
throw _l("Method unimplemented");
|
|
22285
22285
|
}, $o = () => {
|
|
22286
22286
|
throw _l("Unexpected case");
|
|
@@ -22741,7 +22741,7 @@ const Ku = (e, t, n) => t.clients.forEach((r, o) => {
|
|
|
22741
22741
|
let n, r;
|
|
22742
22742
|
for (n = 1, r = 1; n < t.length; n++) {
|
|
22743
22743
|
const o = t[r - 1], i = t[n];
|
|
22744
|
-
o.clock + o.len >= i.clock ? o.len =
|
|
22744
|
+
o.clock + o.len >= i.clock ? o.len = Os(o.len, i.clock + i.len - o.clock) : (r < n && (t[r] = i), r++);
|
|
22745
22745
|
}
|
|
22746
22746
|
t.length = r;
|
|
22747
22747
|
});
|
|
@@ -22758,7 +22758,7 @@ const Ku = (e, t, n) => t.clients.forEach((r, o) => {
|
|
|
22758
22758
|
});
|
|
22759
22759
|
return O8(t), t;
|
|
22760
22760
|
}, p1 = (e, t, n, r) => {
|
|
22761
|
-
|
|
22761
|
+
Hs(e.clients, t, () => (
|
|
22762
22762
|
/** @type {Array<DeleteItem>} */
|
|
22763
22763
|
[]
|
|
22764
22764
|
)).push(new M8(n, r));
|
|
@@ -22795,7 +22795,7 @@ const Ku = (e, t, n) => t.clients.forEach((r, o) => {
|
|
|
22795
22795
|
e.resetDsCurVal();
|
|
22796
22796
|
const o = Bt(e.restDecoder), i = Bt(e.restDecoder);
|
|
22797
22797
|
if (i > 0) {
|
|
22798
|
-
const s =
|
|
22798
|
+
const s = Hs(t.clients, o, () => (
|
|
22799
22799
|
/** @type {Array<DeleteItem>} */
|
|
22800
22800
|
[]
|
|
22801
22801
|
));
|
|
@@ -22813,7 +22813,7 @@ const Ku = (e, t, n) => t.clients.forEach((r, o) => {
|
|
|
22813
22813
|
const d = e.readDsClock(), p = d + e.readDsLen();
|
|
22814
22814
|
if (d < u) {
|
|
22815
22815
|
u < p && p1(r, s, u, p - u);
|
|
22816
|
-
let h =
|
|
22816
|
+
let h = Rs(l, d), f = l[h];
|
|
22817
22817
|
for (!f.deleted && f.id.clock < d && (l.splice(h + 1, 0, Sb(t, f, d - f.id.clock)), h++); h < l.length && (f = l[h++], f.id.clock < p); )
|
|
22818
22818
|
f.deleted || (p < f.id.clock + f.length && l.splice(h, 0, Sb(t, f, p - f.id.clock)), f.delete(t));
|
|
22819
22819
|
} else
|
|
@@ -22918,7 +22918,7 @@ class Ra extends bP {
|
|
|
22918
22918
|
/** @type {any} */
|
|
22919
22919
|
Gr
|
|
22920
22920
|
)) {
|
|
22921
|
-
const r =
|
|
22921
|
+
const r = Hs(this.share, t, () => {
|
|
22922
22922
|
const i = new n();
|
|
22923
22923
|
return i._integrate(this, null), i;
|
|
22924
22924
|
}), o = r.constructor;
|
|
@@ -23477,8 +23477,8 @@ class yd extends HP {
|
|
|
23477
23477
|
}
|
|
23478
23478
|
}
|
|
23479
23479
|
const yce = (e, t, n, r) => {
|
|
23480
|
-
r =
|
|
23481
|
-
const o =
|
|
23480
|
+
r = Os(r, t[0].id.clock);
|
|
23481
|
+
const o = Rs(t, r);
|
|
23482
23482
|
Wt(e.restEncoder, t.length - o), e.writeClient(n), Wt(e.restEncoder, r);
|
|
23483
23483
|
const i = t[o];
|
|
23484
23484
|
i.write(e, r - i.id.clock);
|
|
@@ -23585,7 +23585,7 @@ const yce = (e, t, n, r) => {
|
|
|
23585
23585
|
};
|
|
23586
23586
|
for (; ; ) {
|
|
23587
23587
|
if (c.constructor !== Ji) {
|
|
23588
|
-
const f =
|
|
23588
|
+
const f = Hs(d, c.id.client, () => gr(t, c.id.client)) - c.id.clock;
|
|
23589
23589
|
if (f < 0)
|
|
23590
23590
|
r.push(c), u(c.id.client, c.id.clock - 1), p();
|
|
23591
23591
|
else {
|
|
@@ -23791,7 +23791,7 @@ const jce = (e, t, n = 0) => new Tce(e, t, n), fm = (e, t, n) => {
|
|
|
23791
23791
|
if (gr(r, i.client) <= i.clock)
|
|
23792
23792
|
return null;
|
|
23793
23793
|
const { item: c } = n ? Nw(r, i) : { item: Wp(r, i) };
|
|
23794
|
-
if (c instanceof Ln && c.content instanceof
|
|
23794
|
+
if (c instanceof Ln && c.content instanceof Ws)
|
|
23795
23795
|
l = c.content.type;
|
|
23796
23796
|
else
|
|
23797
23797
|
return null;
|
|
@@ -23811,7 +23811,7 @@ class L8 {
|
|
|
23811
23811
|
}
|
|
23812
23812
|
}
|
|
23813
23813
|
const GP = (e, t) => new L8(e, t), g4 = (e) => GP(LP(e.store), fg(e.store)), Ic = (e, t) => t === void 0 ? !e.deleted : t.sv.has(e.id.client) && (t.sv.get(e.id.client) || 0) > e.id.clock && !Hh(t.ds, e.id), Sw = (e, t) => {
|
|
23814
|
-
const n =
|
|
23814
|
+
const n = Hs(e.meta, Sw, Gu), r = e.doc.store;
|
|
23815
23815
|
n.has(t) || (t.sv.forEach((o, i) => {
|
|
23816
23816
|
o < gr(r, i) && ri(e, Rt(i, o));
|
|
23817
23817
|
}), Ku(e, t.ds, (o) => {
|
|
@@ -23844,7 +23844,7 @@ const fg = (e) => {
|
|
|
23844
23844
|
throw $o();
|
|
23845
23845
|
}
|
|
23846
23846
|
n.push(t);
|
|
23847
|
-
},
|
|
23847
|
+
}, Rs = (e, t) => {
|
|
23848
23848
|
let n = 0, r = e.length - 1, o = e[r], i = o.id.clock;
|
|
23849
23849
|
if (i === t)
|
|
23850
23850
|
return r;
|
|
@@ -23861,12 +23861,12 @@ const fg = (e) => {
|
|
|
23861
23861
|
throw $o();
|
|
23862
23862
|
}, Mce = (e, t) => {
|
|
23863
23863
|
const n = e.clients.get(t.client);
|
|
23864
|
-
return n[
|
|
23864
|
+
return n[Rs(n, t.clock)];
|
|
23865
23865
|
}, Wp = (
|
|
23866
23866
|
/** @type {function(StructStore,ID):Item} */
|
|
23867
23867
|
Mce
|
|
23868
23868
|
), Tw = (e, t, n) => {
|
|
23869
|
-
const r =
|
|
23869
|
+
const r = Rs(t, n), o = t[r];
|
|
23870
23870
|
return o.id.clock < n && o instanceof Ln ? (t.splice(r + 1, 0, Sb(e, o, n - o.id.clock)), r + 1) : r;
|
|
23871
23871
|
}, ri = (e, t) => {
|
|
23872
23872
|
const n = (
|
|
@@ -23875,14 +23875,14 @@ const fg = (e) => {
|
|
|
23875
23875
|
);
|
|
23876
23876
|
return n[Tw(e, n, t.clock)];
|
|
23877
23877
|
}, nS = (e, t, n) => {
|
|
23878
|
-
const r = t.clients.get(n.client), o =
|
|
23878
|
+
const r = t.clients.get(n.client), o = Rs(r, n.clock), i = r[o];
|
|
23879
23879
|
return n.clock !== i.id.clock + i.length - 1 && i.constructor !== Zi && r.splice(o + 1, 0, Sb(e, i, n.clock - i.id.clock + 1)), i;
|
|
23880
23880
|
}, Oce = (e, t, n) => {
|
|
23881
23881
|
const r = (
|
|
23882
23882
|
/** @type {Array<GC|Item>} */
|
|
23883
23883
|
e.clients.get(t.id.client)
|
|
23884
23884
|
);
|
|
23885
|
-
r[
|
|
23885
|
+
r[Rs(r, t.id.clock)] = n;
|
|
23886
23886
|
}, XP = (e, t, n, r, o) => {
|
|
23887
23887
|
if (r === 0)
|
|
23888
23888
|
return;
|
|
@@ -23904,7 +23904,7 @@ class Rce {
|
|
|
23904
23904
|
}
|
|
23905
23905
|
const rS = (e, t) => t.deleteSet.clients.size === 0 && !Zle(t.afterState, (n, r) => t.beforeState.get(r) !== n) ? !1 : (O8(t.deleteSet), Fce(e, t), Wh(e, t.deleteSet), !0), oS = (e, t, n) => {
|
|
23906
23906
|
const r = t._item;
|
|
23907
|
-
(r === null || r.id.clock < (e.beforeState.get(r.id.client) || 0) && !r.deleted) &&
|
|
23907
|
+
(r === null || r.id.clock < (e.beforeState.get(r.id.client) || 0) && !r.deleted) && Hs(e.changed, t, Gu).add(n);
|
|
23908
23908
|
}, M2 = (e, t) => {
|
|
23909
23909
|
let n = e[t], r = e[t - 1], o = t;
|
|
23910
23910
|
for (; o > 0; n = r, r = e[--o - 1]) {
|
|
@@ -23929,7 +23929,7 @@ const rS = (e, t) => t.deleteSet.clients.size === 0 && !Zle(t.afterState, (n, r)
|
|
|
23929
23929
|
);
|
|
23930
23930
|
for (let s = o.length - 1; s >= 0; s--) {
|
|
23931
23931
|
const a = o[s], l = a.clock + a.len;
|
|
23932
|
-
for (let u =
|
|
23932
|
+
for (let u = Rs(i, a.clock), c = i[u]; u < i.length && c.id.clock < l; c = i[++u]) {
|
|
23933
23933
|
const d = i[u];
|
|
23934
23934
|
if (a.clock + a.len <= d.id.clock)
|
|
23935
23935
|
break;
|
|
@@ -23944,7 +23944,7 @@ const rS = (e, t) => t.deleteSet.clients.size === 0 && !Zle(t.afterState, (n, r)
|
|
|
23944
23944
|
t.clients.get(r)
|
|
23945
23945
|
);
|
|
23946
23946
|
for (let i = n.length - 1; i >= 0; i--) {
|
|
23947
|
-
const s = n[i], a = xl(o.length - 1, 1 +
|
|
23947
|
+
const s = n[i], a = xl(o.length - 1, 1 + Rs(o, s.clock + s.len - 1));
|
|
23948
23948
|
for (let l = a, u = o[l]; l > 0 && u.id.clock >= s.clock; u = o[l])
|
|
23949
23949
|
l -= 1 + M2(o, l);
|
|
23950
23950
|
}
|
|
@@ -23975,7 +23975,7 @@ const rS = (e, t) => t.deleteSet.clients.size === 0 && !Zle(t.afterState, (n, r)
|
|
|
23975
23975
|
const h = (
|
|
23976
23976
|
/** @type {Array<GC|Item>} */
|
|
23977
23977
|
o.clients.get(d)
|
|
23978
|
-
), f = Rs(
|
|
23978
|
+
), f = Os(Rs(h, p), 1);
|
|
23979
23979
|
for (let g = h.length - 1; g >= f; )
|
|
23980
23980
|
g -= 1 + M2(h, g);
|
|
23981
23981
|
}
|
|
@@ -23984,7 +23984,7 @@ const rS = (e, t) => t.deleteSet.clients.size === 0 && !Zle(t.afterState, (n, r)
|
|
|
23984
23984
|
const { client: d, clock: p } = s[c].id, h = (
|
|
23985
23985
|
/** @type {Array<GC|Item>} */
|
|
23986
23986
|
o.clients.get(d)
|
|
23987
|
-
), f =
|
|
23987
|
+
), f = Rs(h, p);
|
|
23988
23988
|
f + 1 < h.length && M2(h, f + 1) > 1 || f > 0 && M2(h, f);
|
|
23989
23989
|
}
|
|
23990
23990
|
if (!n.local && n.afterState.get(r.clientID) !== n.beforeState.get(r.clientID) && (fce(B8, TP, "[yjs] ", jP, NP, "Changed the client-id because another client seems to be using it."), r.clientID = UP()), r.emit("afterTransactionCleanup", [n, r]), r._observers.has("update")) {
|
|
@@ -24391,7 +24391,7 @@ const ca = (e) => kb(e, zP, hg), zce = (e, t) => {
|
|
|
24391
24391
|
continue;
|
|
24392
24392
|
}
|
|
24393
24393
|
if (c.id.clock + c.length > p)
|
|
24394
|
-
for (xu(s, c,
|
|
24394
|
+
for (xu(s, c, Os(p - c.id.clock, 0)), l.next(); l.curr && l.curr.id.client === d; )
|
|
24395
24395
|
xu(s, l.curr, 0), l.next();
|
|
24396
24396
|
else
|
|
24397
24397
|
for (; l.curr && l.curr.id.client === d && l.curr.id.clock + l.curr.length <= p; )
|
|
@@ -24629,11 +24629,11 @@ const Gce = (e) => {
|
|
|
24629
24629
|
}
|
|
24630
24630
|
o.p = i, i.marker = !0;
|
|
24631
24631
|
}
|
|
24632
|
-
(t < o.index || n > 0 && t === o.index) && (o.index =
|
|
24632
|
+
(t < o.index || n > 0 && t === o.index) && (o.index = Os(t, o.index + n));
|
|
24633
24633
|
}
|
|
24634
24634
|
}, Xx = (e, t, n) => {
|
|
24635
24635
|
const r = e, o = t.changedParentTypes;
|
|
24636
|
-
for (;
|
|
24636
|
+
for (; Hs(o, e, () => []).push(n), e._item !== null; )
|
|
24637
24637
|
e = /** @type {AbstractType<any>} */
|
|
24638
24638
|
e._item.parent;
|
|
24639
24639
|
VP(r._eH, n, t);
|
|
@@ -24668,7 +24668,7 @@ class Gr {
|
|
|
24668
24668
|
* @return {AbstractType<EventType>}
|
|
24669
24669
|
*/
|
|
24670
24670
|
_copy() {
|
|
24671
|
-
throw
|
|
24671
|
+
throw js();
|
|
24672
24672
|
}
|
|
24673
24673
|
/**
|
|
24674
24674
|
* Makes a copy of this data type that can be included somewhere else.
|
|
@@ -24678,7 +24678,7 @@ class Gr {
|
|
|
24678
24678
|
* @return {AbstractType<EventType>}
|
|
24679
24679
|
*/
|
|
24680
24680
|
clone() {
|
|
24681
|
-
throw
|
|
24681
|
+
throw js();
|
|
24682
24682
|
}
|
|
24683
24683
|
/**
|
|
24684
24684
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} _encoder
|
|
@@ -24872,7 +24872,7 @@ const nz = (e, t, n) => {
|
|
|
24872
24872
|
break;
|
|
24873
24873
|
default:
|
|
24874
24874
|
if (d instanceof Gr)
|
|
24875
|
-
o = new Ln(Rt(s, gr(a, s)), o, o && o.lastId, l, l && l.id, t, null, new
|
|
24875
|
+
o = new Ln(Rt(s, gr(a, s)), o, o && o.lastId, l, l && l.id, t, null, new Ws(d)), o.integrate(e, 0);
|
|
24876
24876
|
else
|
|
24877
24877
|
throw new Error("Unexpected content type in insert operation");
|
|
24878
24878
|
}
|
|
@@ -24950,7 +24950,7 @@ const nz = (e, t, n) => {
|
|
|
24950
24950
|
break;
|
|
24951
24951
|
default:
|
|
24952
24952
|
if (r instanceof Gr)
|
|
24953
|
-
a = new
|
|
24953
|
+
a = new Ws(r);
|
|
24954
24954
|
else
|
|
24955
24955
|
throw new Error("Unexpected content type");
|
|
24956
24956
|
}
|
|
@@ -25502,10 +25502,10 @@ const lS = (e, t, n) => {
|
|
|
25502
25502
|
});
|
|
25503
25503
|
const i = e.doc, s = i.clientID;
|
|
25504
25504
|
hz(n, o);
|
|
25505
|
-
const a = fz(e, t, n, o), l = r.constructor === String ? new
|
|
25505
|
+
const a = fz(e, t, n, o), l = r.constructor === String ? new Is(
|
|
25506
25506
|
/** @type {string} */
|
|
25507
25507
|
r
|
|
25508
|
-
) : r instanceof Gr ? new
|
|
25508
|
+
) : r instanceof Gr ? new Ws(r) : new Id(r);
|
|
25509
25509
|
let { left: u, right: c, index: d } = n;
|
|
25510
25510
|
t._searchMarker && m1(t._searchMarker, n.index, l.getLength()), c = new Ln(Rt(s, gr(i.store, s)), u, u && u.lastId, c, c && c.id, t, null, l), c.integrate(e, 0), n.right = c, n.index = d, n.forward(), pz(e, t, n, a);
|
|
25511
25511
|
}, uS = (e, t, n, r, o) => {
|
|
@@ -25544,7 +25544,7 @@ const lS = (e, t, n) => {
|
|
|
25544
25544
|
for (; r > 0; r--)
|
|
25545
25545
|
l += `
|
|
25546
25546
|
`;
|
|
25547
|
-
n.right = new Ln(Rt(s, gr(i.store, s)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new
|
|
25547
|
+
n.right = new Ln(Rt(s, gr(i.store, s)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new Is(l)), n.right.integrate(e, 0), n.forward();
|
|
25548
25548
|
}
|
|
25549
25549
|
pz(e, t, n, a);
|
|
25550
25550
|
}, gz = (e, t, n, r, o) => {
|
|
@@ -25667,9 +25667,9 @@ const lS = (e, t, n) => {
|
|
|
25667
25667
|
for (; n > 0 && t.right !== null; ) {
|
|
25668
25668
|
if (t.right.deleted === !1)
|
|
25669
25669
|
switch (t.right.content.constructor) {
|
|
25670
|
-
case
|
|
25670
|
+
case Ws:
|
|
25671
25671
|
case Id:
|
|
25672
|
-
case
|
|
25672
|
+
case Is:
|
|
25673
25673
|
n < t.right.length && ri(e, Rt(t.right.id.client, t.right.id.clock + n)), n -= t.right.length, t.right.delete(e);
|
|
25674
25674
|
break;
|
|
25675
25675
|
}
|
|
@@ -25752,11 +25752,11 @@ class ide extends Kx {
|
|
|
25752
25752
|
};
|
|
25753
25753
|
for (; s !== null; ) {
|
|
25754
25754
|
switch (s.content.constructor) {
|
|
25755
|
-
case
|
|
25755
|
+
case Ws:
|
|
25756
25756
|
case Id:
|
|
25757
25757
|
this.adds(s) ? this.deletes(s) || (p(), a = "insert", u = s.content.getContent()[0], p()) : this.deletes(s) ? (a !== "delete" && (p(), a = "delete"), d += 1) : s.deleted || (a !== "retain" && (p(), a = "retain"), c += 1);
|
|
25758
25758
|
break;
|
|
25759
|
-
case
|
|
25759
|
+
case Is:
|
|
25760
25760
|
this.adds(s) ? this.deletes(s) || (a !== "insert" && (p(), a = "insert"), u += /** @type {ContentString} */
|
|
25761
25761
|
s.content.str) : this.deletes(s) ? (a !== "delete" && (p(), a = "delete"), d += s.length) : s.deleted || (a !== "retain" && (p(), a = "retain"), c += s.length);
|
|
25762
25762
|
break;
|
|
@@ -25866,7 +25866,7 @@ class oi extends Gr {
|
|
|
25866
25866
|
this.doc ?? vo();
|
|
25867
25867
|
let t = "", n = this._start;
|
|
25868
25868
|
for (; n !== null; )
|
|
25869
|
-
!n.deleted && n.countable && n.content.constructor ===
|
|
25869
|
+
!n.deleted && n.countable && n.content.constructor === Is && (t += /** @type {ContentString} */
|
|
25870
25870
|
n.content.str), n = n.right;
|
|
25871
25871
|
return t;
|
|
25872
25872
|
}
|
|
@@ -25934,13 +25934,13 @@ class oi extends Gr {
|
|
|
25934
25934
|
for (; l !== null; ) {
|
|
25935
25935
|
if (Ic(l, t) || n !== void 0 && Ic(l, n))
|
|
25936
25936
|
switch (l.content.constructor) {
|
|
25937
|
-
case
|
|
25937
|
+
case Is: {
|
|
25938
25938
|
const d = i.get("ychange");
|
|
25939
25939
|
t !== void 0 && !Ic(l, t) ? (d === void 0 || d.user !== l.id.client || d.type !== "removed") && (u(), i.set("ychange", r ? r("removed", l.id) : { type: "removed" })) : n !== void 0 && !Ic(l, n) ? (d === void 0 || d.user !== l.id.client || d.type !== "added") && (u(), i.set("ychange", r ? r("added", l.id) : { type: "added" })) : d !== void 0 && (u(), i.delete("ychange")), a += /** @type {ContentString} */
|
|
25940
25940
|
l.content.str;
|
|
25941
25941
|
break;
|
|
25942
25942
|
}
|
|
25943
|
-
case
|
|
25943
|
+
case Ws:
|
|
25944
25944
|
case Id: {
|
|
25945
25945
|
u();
|
|
25946
25946
|
const d = {
|
|
@@ -26795,7 +26795,7 @@ class q8 {
|
|
|
26795
26795
|
* @type {boolean}
|
|
26796
26796
|
*/
|
|
26797
26797
|
get deleted() {
|
|
26798
|
-
throw
|
|
26798
|
+
throw js();
|
|
26799
26799
|
}
|
|
26800
26800
|
/**
|
|
26801
26801
|
* Merge this struct with the item to the right.
|
|
@@ -26813,14 +26813,14 @@ class q8 {
|
|
|
26813
26813
|
* @param {number} encodingRef
|
|
26814
26814
|
*/
|
|
26815
26815
|
write(t, n, r) {
|
|
26816
|
-
throw
|
|
26816
|
+
throw js();
|
|
26817
26817
|
}
|
|
26818
26818
|
/**
|
|
26819
26819
|
* @param {Transaction} transaction
|
|
26820
26820
|
* @param {number} offset
|
|
26821
26821
|
*/
|
|
26822
26822
|
integrate(t, n) {
|
|
26823
|
-
throw
|
|
26823
|
+
throw js();
|
|
26824
26824
|
}
|
|
26825
26825
|
}
|
|
26826
26826
|
const pde = 0;
|
|
@@ -26896,7 +26896,7 @@ class gg {
|
|
|
26896
26896
|
* @return {ContentBinary}
|
|
26897
26897
|
*/
|
|
26898
26898
|
splice(t) {
|
|
26899
|
-
throw
|
|
26899
|
+
throw js();
|
|
26900
26900
|
}
|
|
26901
26901
|
/**
|
|
26902
26902
|
* @param {ContentBinary} right
|
|
@@ -27052,7 +27052,7 @@ class mg {
|
|
|
27052
27052
|
* @return {ContentDoc}
|
|
27053
27053
|
*/
|
|
27054
27054
|
splice(t) {
|
|
27055
|
-
throw
|
|
27055
|
+
throw js();
|
|
27056
27056
|
}
|
|
27057
27057
|
/**
|
|
27058
27058
|
* @param {ContentDoc} right
|
|
@@ -27130,7 +27130,7 @@ class Id {
|
|
|
27130
27130
|
* @return {ContentEmbed}
|
|
27131
27131
|
*/
|
|
27132
27132
|
splice(t) {
|
|
27133
|
-
throw
|
|
27133
|
+
throw js();
|
|
27134
27134
|
}
|
|
27135
27135
|
/**
|
|
27136
27136
|
* @param {ContentEmbed} right
|
|
@@ -27207,7 +27207,7 @@ class Er {
|
|
|
27207
27207
|
* @return {ContentFormat}
|
|
27208
27208
|
*/
|
|
27209
27209
|
splice(t) {
|
|
27210
|
-
throw
|
|
27210
|
+
throw js();
|
|
27211
27211
|
}
|
|
27212
27212
|
/**
|
|
27213
27213
|
* @param {ContentFormat} _right
|
|
@@ -27428,7 +27428,7 @@ const vde = (e) => {
|
|
|
27428
27428
|
n.push(e.readAny());
|
|
27429
27429
|
return new vd(n);
|
|
27430
27430
|
};
|
|
27431
|
-
class
|
|
27431
|
+
class Is {
|
|
27432
27432
|
/**
|
|
27433
27433
|
* @param {string} str
|
|
27434
27434
|
*/
|
|
@@ -27457,14 +27457,14 @@ class Ls {
|
|
|
27457
27457
|
* @return {ContentString}
|
|
27458
27458
|
*/
|
|
27459
27459
|
copy() {
|
|
27460
|
-
return new
|
|
27460
|
+
return new Is(this.str);
|
|
27461
27461
|
}
|
|
27462
27462
|
/**
|
|
27463
27463
|
* @param {number} offset
|
|
27464
27464
|
* @return {ContentString}
|
|
27465
27465
|
*/
|
|
27466
27466
|
splice(t) {
|
|
27467
|
-
const n = new
|
|
27467
|
+
const n = new Is(this.str.slice(t));
|
|
27468
27468
|
this.str = this.str.slice(0, t);
|
|
27469
27469
|
const r = this.str.charCodeAt(t - 1);
|
|
27470
27470
|
return r >= 55296 && r <= 56319 && (this.str = this.str.slice(0, t - 1) + "�", n.str = "�" + n.str.slice(1)), n;
|
|
@@ -27506,7 +27506,7 @@ class Ls {
|
|
|
27506
27506
|
return 4;
|
|
27507
27507
|
}
|
|
27508
27508
|
}
|
|
27509
|
-
const Fde = (e) => new
|
|
27509
|
+
const Fde = (e) => new Is(e.readString()), wde = [
|
|
27510
27510
|
Qce,
|
|
27511
27511
|
tde,
|
|
27512
27512
|
sde,
|
|
@@ -27515,7 +27515,7 @@ const Fde = (e) => new Ls(e.readString()), wde = [
|
|
|
27515
27515
|
cde,
|
|
27516
27516
|
dde
|
|
27517
27517
|
], Dde = 0, kde = 1, Ede = 2, Cde = 3, _de = 4, Ade = 5, Sde = 6;
|
|
27518
|
-
class
|
|
27518
|
+
class Ws {
|
|
27519
27519
|
/**
|
|
27520
27520
|
* @param {AbstractType<any>} type
|
|
27521
27521
|
*/
|
|
@@ -27544,14 +27544,14 @@ class qs {
|
|
|
27544
27544
|
* @return {ContentType}
|
|
27545
27545
|
*/
|
|
27546
27546
|
copy() {
|
|
27547
|
-
return new
|
|
27547
|
+
return new Ws(this.type._copy());
|
|
27548
27548
|
}
|
|
27549
27549
|
/**
|
|
27550
27550
|
* @param {number} offset
|
|
27551
27551
|
* @return {ContentType}
|
|
27552
27552
|
*/
|
|
27553
27553
|
splice(t) {
|
|
27554
|
-
throw
|
|
27554
|
+
throw js();
|
|
27555
27555
|
}
|
|
27556
27556
|
/**
|
|
27557
27557
|
* @param {ContentType} right
|
|
@@ -27607,7 +27607,7 @@ class qs {
|
|
|
27607
27607
|
return 7;
|
|
27608
27608
|
}
|
|
27609
27609
|
}
|
|
27610
|
-
const Tde = (e) => new
|
|
27610
|
+
const Tde = (e) => new Ws(wde[e.readTypeRef()](e)), Nw = (e, t) => {
|
|
27611
27611
|
let n = t, r = 0, o;
|
|
27612
27612
|
do
|
|
27613
27613
|
r > 0 && (n = Rt(n.client, n.clock + r)), o = Wp(e, n), r = n.clock - o.id.clock, n = o.redone;
|
|
@@ -29488,10 +29488,10 @@ ci.prototype.disable = function(e, t) {
|
|
|
29488
29488
|
ci.prototype.getRules = function(e) {
|
|
29489
29489
|
return this.__cache__ === null && this.__compile__(), this.__cache__[e] || [];
|
|
29490
29490
|
};
|
|
29491
|
-
function
|
|
29491
|
+
function qs(e, t, n) {
|
|
29492
29492
|
this.type = e, this.tag = t, this.attrs = null, this.map = null, this.nesting = n, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
29493
29493
|
}
|
|
29494
|
-
|
|
29494
|
+
qs.prototype.attrIndex = function(t) {
|
|
29495
29495
|
if (!this.attrs)
|
|
29496
29496
|
return -1;
|
|
29497
29497
|
const n = this.attrs;
|
|
@@ -29500,26 +29500,26 @@ Vs.prototype.attrIndex = function(t) {
|
|
|
29500
29500
|
return r;
|
|
29501
29501
|
return -1;
|
|
29502
29502
|
};
|
|
29503
|
-
|
|
29503
|
+
qs.prototype.attrPush = function(t) {
|
|
29504
29504
|
this.attrs ? this.attrs.push(t) : this.attrs = [t];
|
|
29505
29505
|
};
|
|
29506
|
-
|
|
29506
|
+
qs.prototype.attrSet = function(t, n) {
|
|
29507
29507
|
const r = this.attrIndex(t), o = [t, n];
|
|
29508
29508
|
r < 0 ? this.attrPush(o) : this.attrs[r] = o;
|
|
29509
29509
|
};
|
|
29510
|
-
|
|
29510
|
+
qs.prototype.attrGet = function(t) {
|
|
29511
29511
|
const n = this.attrIndex(t);
|
|
29512
29512
|
let r = null;
|
|
29513
29513
|
return n >= 0 && (r = this.attrs[n][1]), r;
|
|
29514
29514
|
};
|
|
29515
|
-
|
|
29515
|
+
qs.prototype.attrJoin = function(t, n) {
|
|
29516
29516
|
const r = this.attrIndex(t);
|
|
29517
29517
|
r < 0 ? this.attrPush([t, n]) : this.attrs[r][1] = this.attrs[r][1] + " " + n;
|
|
29518
29518
|
};
|
|
29519
29519
|
function jz(e, t, n) {
|
|
29520
29520
|
this.src = e, this.env = n, this.tokens = [], this.inlineMode = !1, this.md = t;
|
|
29521
29521
|
}
|
|
29522
|
-
jz.prototype.Token =
|
|
29522
|
+
jz.prototype.Token = qs;
|
|
29523
29523
|
const Lpe = /\r\n?|\n/g, Upe = /\0/g;
|
|
29524
29524
|
function Ppe(e) {
|
|
29525
29525
|
let t;
|
|
@@ -29745,7 +29745,7 @@ function La(e, t, n, r) {
|
|
|
29745
29745
|
this.bMarks.push(o.length), this.eMarks.push(o.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
29746
29746
|
}
|
|
29747
29747
|
La.prototype.push = function(e, t, n) {
|
|
29748
|
-
const r = new
|
|
29748
|
+
const r = new qs(e, t, n);
|
|
29749
29749
|
return r.block = !0, n < 0 && this.level--, r.level = this.level, n > 0 && this.level++, this.tokens.push(r), r;
|
|
29750
29750
|
};
|
|
29751
29751
|
La.prototype.isEmpty = function(t) {
|
|
@@ -29807,7 +29807,7 @@ La.prototype.getLines = function(t, n, r, o) {
|
|
|
29807
29807
|
}
|
|
29808
29808
|
return i.join("");
|
|
29809
29809
|
};
|
|
29810
|
-
La.prototype.Token =
|
|
29810
|
+
La.prototype.Token = qs;
|
|
29811
29811
|
const rhe = 65536;
|
|
29812
29812
|
function v4(e, t) {
|
|
29813
29813
|
const n = e.bMarks[t] + e.tShift[t], r = e.eMarks[t];
|
|
@@ -30457,12 +30457,12 @@ function yg(e, t, n, r) {
|
|
|
30457
30457
|
this.src = e, this.env = n, this.md = t, this.tokens = r, this.tokens_meta = Array(r.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
30458
30458
|
}
|
|
30459
30459
|
yg.prototype.pushPending = function() {
|
|
30460
|
-
const e = new
|
|
30460
|
+
const e = new qs("text", "", 0);
|
|
30461
30461
|
return e.content = this.pending, e.level = this.pendingLevel, this.tokens.push(e), this.pending = "", e;
|
|
30462
30462
|
};
|
|
30463
30463
|
yg.prototype.push = function(e, t, n) {
|
|
30464
30464
|
this.pending && this.pushPending();
|
|
30465
|
-
const r = new
|
|
30465
|
+
const r = new qs(e, t, n);
|
|
30466
30466
|
let o = null;
|
|
30467
30467
|
return n < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), r.level = this.level, n > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], o = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(r), this.tokens_meta.push(o), r;
|
|
30468
30468
|
};
|
|
@@ -30474,7 +30474,7 @@ yg.prototype.scanDelims = function(e, t) {
|
|
|
30474
30474
|
const s = i - e, a = i < n ? this.src.charCodeAt(i) : 32, l = F1(o) || v1(String.fromCharCode(o)), u = F1(a) || v1(String.fromCharCode(a)), c = x1(o), d = x1(a), p = !d && (!u || c || l), h = !c && (!l || d || u);
|
|
30475
30475
|
return { can_open: p && (t || !h || l), can_close: h && (t || !p || u), length: s };
|
|
30476
30476
|
};
|
|
30477
|
-
yg.prototype.Token =
|
|
30477
|
+
yg.prototype.Token = qs;
|
|
30478
30478
|
function She(e) {
|
|
30479
30479
|
switch (e) {
|
|
30480
30480
|
case 10:
|
|
@@ -31624,7 +31624,7 @@ Uw || (Uw = function(t) {
|
|
|
31624
31624
|
r[o - 1] = arguments[o];
|
|
31625
31625
|
return new t(...r);
|
|
31626
31626
|
});
|
|
31627
|
-
const vm = Wo(Array.prototype.forEach), O0e = Wo(Array.prototype.lastIndexOf), BS = Wo(Array.prototype.pop), f0 = Wo(Array.prototype.push), R0e = Wo(Array.prototype.splice), R2 = Wo(String.prototype.toLowerCase), E4 = Wo(String.prototype.toString), C4 = Wo(String.prototype.match), g0 = Wo(String.prototype.replace), I0e = Wo(String.prototype.indexOf), L0e = Wo(String.prototype.trim),
|
|
31627
|
+
const vm = Wo(Array.prototype.forEach), O0e = Wo(Array.prototype.lastIndexOf), BS = Wo(Array.prototype.pop), f0 = Wo(Array.prototype.push), R0e = Wo(Array.prototype.splice), R2 = Wo(String.prototype.toLowerCase), E4 = Wo(String.prototype.toString), C4 = Wo(String.prototype.match), g0 = Wo(String.prototype.replace), I0e = Wo(String.prototype.indexOf), L0e = Wo(String.prototype.trim), bs = Wo(Object.prototype.hasOwnProperty), Ao = Wo(RegExp.prototype.test), m0 = U0e(TypeError);
|
|
31628
31628
|
function Wo(e) {
|
|
31629
31629
|
return function(t) {
|
|
31630
31630
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -31656,13 +31656,13 @@ function Gt(e, t) {
|
|
|
31656
31656
|
}
|
|
31657
31657
|
function P0e(e) {
|
|
31658
31658
|
for (let t = 0; t < e.length; t++)
|
|
31659
|
-
|
|
31659
|
+
bs(e, t) || (e[t] = null);
|
|
31660
31660
|
return e;
|
|
31661
31661
|
}
|
|
31662
31662
|
function rl(e) {
|
|
31663
31663
|
const t = Iw(null);
|
|
31664
31664
|
for (const [n, r] of Kz(e))
|
|
31665
|
-
|
|
31665
|
+
bs(e, n) && (Array.isArray(r) ? t[n] = P0e(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = rl(r) : t[n] = r);
|
|
31666
31666
|
return t;
|
|
31667
31667
|
}
|
|
31668
31668
|
function b0(e, t) {
|
|
@@ -31847,7 +31847,7 @@ function Zz() {
|
|
|
31847
31847
|
let we = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
31848
31848
|
if (!(bt && bt === we)) {
|
|
31849
31849
|
if ((!we || typeof we != "object") && (we = {}), we = rl(we), He = // eslint-disable-next-line unicorn/prefer-includes
|
|
31850
|
-
ut.indexOf(we.PARSER_MEDIA_TYPE) === -1 ? nt : we.PARSER_MEDIA_TYPE, Le = He === "application/xhtml+xml" ? E4 : R2, U =
|
|
31850
|
+
ut.indexOf(we.PARSER_MEDIA_TYPE) === -1 ? nt : we.PARSER_MEDIA_TYPE, Le = He === "application/xhtml+xml" ? E4 : R2, U = bs(we, "ALLOWED_TAGS") ? Gt({}, we.ALLOWED_TAGS, Le) : P, Y = bs(we, "ALLOWED_ATTR") ? Gt({}, we.ALLOWED_ATTR, Le) : ie, Be = bs(we, "ALLOWED_NAMESPACES") ? Gt({}, we.ALLOWED_NAMESPACES, E4) : at, me = bs(we, "ADD_URI_SAFE_ATTR") ? Gt(rl(Ee), we.ADD_URI_SAFE_ATTR, Le) : Ee, pe = bs(we, "ADD_DATA_URI_TAGS") ? Gt(rl(ye), we.ADD_DATA_URI_TAGS, Le) : ye, W = bs(we, "FORBID_CONTENTS") ? Gt({}, we.FORBID_CONTENTS, Le) : re, X = bs(we, "FORBID_TAGS") ? Gt({}, we.FORBID_TAGS, Le) : rl({}), oe = bs(we, "FORBID_ATTR") ? Gt({}, we.FORBID_ATTR, Le) : rl({}), R = bs(we, "USE_PROFILES") ? we.USE_PROFILES : !1, ae = we.ALLOW_ARIA_ATTR !== !1, j = we.ALLOW_DATA_ATTR !== !1, K = we.ALLOW_UNKNOWN_PROTOCOLS || !1, ee = we.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = we.SAFE_FOR_TEMPLATES || !1, B = we.SAFE_FOR_XML !== !1, te = we.WHOLE_DOCUMENT || !1, V = we.RETURN_DOM || !1, Q = we.RETURN_DOM_FRAGMENT || !1, Fe = we.RETURN_TRUSTED_TYPE || !1, G = we.FORCE_BODY || !1, De = we.SANITIZE_DOM !== !1, ge = we.SANITIZE_NAMED_PROPS || !1, de = we.KEEP_CONTENT !== !1, he = we.IN_PLACE || !1, q = we.ALLOWED_URI_REGEXP || Yz, _e = we.NAMESPACE || Se, dt = we.MATHML_TEXT_INTEGRATION_POINTS || dt, mt = we.HTML_INTEGRATION_POINTS || mt, ne = we.CUSTOM_ELEMENT_HANDLING || {}, we.CUSTOM_ELEMENT_HANDLING && tn(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ne.tagNameCheck = we.CUSTOM_ELEMENT_HANDLING.tagNameCheck), we.CUSTOM_ELEMENT_HANDLING && tn(we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ne.attributeNameCheck = we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), we.CUSTOM_ELEMENT_HANDLING && typeof we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ne.allowCustomizedBuiltInElements = we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ue && (j = !1), Q && (V = !0), R && (U = Gt({}, OS), Y = [], R.html === !0 && (Gt(U, MS), Gt(Y, RS)), R.svg === !0 && (Gt(U, _4), Gt(Y, T4), Gt(Y, Fm)), R.svgFilters === !0 && (Gt(U, A4), Gt(Y, T4), Gt(Y, Fm)), R.mathMl === !0 && (Gt(U, S4), Gt(Y, IS), Gt(Y, Fm))), we.ADD_TAGS && (typeof we.ADD_TAGS == "function" ? Z.tagCheck = we.ADD_TAGS : (U === P && (U = rl(U)), Gt(U, we.ADD_TAGS, Le))), we.ADD_ATTR && (typeof we.ADD_ATTR == "function" ? Z.attributeCheck = we.ADD_ATTR : (Y === ie && (Y = rl(Y)), Gt(Y, we.ADD_ATTR, Le))), we.ADD_URI_SAFE_ATTR && Gt(me, we.ADD_URI_SAFE_ATTR, Le), we.FORBID_CONTENTS && (W === re && (W = rl(W)), Gt(W, we.FORBID_CONTENTS, Le)), de && (U["#text"] = !0), te && Gt(U, ["html", "head", "body"]), U.table && (Gt(U, ["tbody"]), delete X.tbody), we.TRUSTED_TYPES_POLICY) {
|
|
31851
31851
|
if (typeof we.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
31852
31852
|
throw m0('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
31853
31853
|
if (typeof we.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -32020,13 +32020,13 @@ function Zz() {
|
|
|
32020
32020
|
name: mn,
|
|
32021
32021
|
namespaceURI: dr,
|
|
32022
32022
|
value: Or
|
|
32023
|
-
} = et,
|
|
32023
|
+
} = et, Ys = Le(mn), c0 = Or;
|
|
32024
32024
|
let rr = mn === "value" ? c0 : L0e(c0);
|
|
32025
|
-
if (lt.attrName =
|
|
32025
|
+
if (lt.attrName = Ys, lt.attrValue = rr, lt.keepAttr = !0, lt.forceKeepAttr = void 0, ft(O.uponSanitizeAttribute, we, lt), rr = lt.attrValue, ge && (Ys === "id" || Ys === "name") && (Dn(mn, we), rr = ce + rr), B && Ao(/((--!?|])>)|<\/(style|title|textarea)/i, rr)) {
|
|
32026
32026
|
Dn(mn, we);
|
|
32027
32027
|
continue;
|
|
32028
32028
|
}
|
|
32029
|
-
if (
|
|
32029
|
+
if (Ys === "attributename" && C4(rr, "href")) {
|
|
32030
32030
|
Dn(mn, we);
|
|
32031
32031
|
continue;
|
|
32032
32032
|
}
|
|
@@ -32044,12 +32044,12 @@ function Zz() {
|
|
|
32044
32044
|
rr = g0(rr, tm, " ");
|
|
32045
32045
|
});
|
|
32046
32046
|
const em = Le(we.nodeName);
|
|
32047
|
-
if (!an(em,
|
|
32047
|
+
if (!an(em, Ys, rr)) {
|
|
32048
32048
|
Dn(mn, we);
|
|
32049
32049
|
continue;
|
|
32050
32050
|
}
|
|
32051
32051
|
if (v && typeof h == "object" && typeof h.getAttributeType == "function" && !dr)
|
|
32052
|
-
switch (h.getAttributeType(em,
|
|
32052
|
+
switch (h.getAttributeType(em, Ys)) {
|
|
32053
32053
|
case "TrustedHTML": {
|
|
32054
32054
|
rr = v.createHTML(rr);
|
|
32055
32055
|
break;
|
|
@@ -36064,12 +36064,12 @@ const L2 = (e) => {
|
|
|
36064
36064
|
title: "List",
|
|
36065
36065
|
onClick: () => {
|
|
36066
36066
|
if (!e) return;
|
|
36067
|
-
const { from: N, to: O, state: _, hasMultipleLists: M } =
|
|
36067
|
+
const { from: N, to: O, state: _, hasMultipleLists: M } = Cs(e);
|
|
36068
36068
|
if (M)
|
|
36069
36069
|
return;
|
|
36070
36070
|
if (e.isActive("bulletList")) {
|
|
36071
36071
|
const S = e.chain().focus().command(
|
|
36072
|
-
(T) =>
|
|
36072
|
+
(T) => _s({ ...T, state: _, from: N, to: O })
|
|
36073
36073
|
).setTextSelection({ from: N, to: O }).focus().run();
|
|
36074
36074
|
return h(Ye.NONE), S;
|
|
36075
36075
|
}
|
|
@@ -36096,12 +36096,12 @@ const L2 = (e) => {
|
|
|
36096
36096
|
title: "Ordered List",
|
|
36097
36097
|
onClick: () => {
|
|
36098
36098
|
if (!e) return;
|
|
36099
|
-
const { from: N, to: O, state: _, hasMultipleLists: M } =
|
|
36099
|
+
const { from: N, to: O, state: _, hasMultipleLists: M } = Cs(e);
|
|
36100
36100
|
if (M)
|
|
36101
36101
|
return;
|
|
36102
36102
|
if (e.isActive("orderedList")) {
|
|
36103
36103
|
const S = e.chain().focus().command(
|
|
36104
|
-
(T) =>
|
|
36104
|
+
(T) => _s({ ...T, state: _, from: N, to: O })
|
|
36105
36105
|
).setTextSelection({ from: N, to: O }).focus().run();
|
|
36106
36106
|
return h(Ye.NONE), S;
|
|
36107
36107
|
}
|
|
@@ -36128,12 +36128,12 @@ const L2 = (e) => {
|
|
|
36128
36128
|
title: "To-do List",
|
|
36129
36129
|
onClick: () => {
|
|
36130
36130
|
if (!e) return;
|
|
36131
|
-
const { from: N, to: O, state: _, hasMultipleLists: M } =
|
|
36131
|
+
const { from: N, to: O, state: _, hasMultipleLists: M } = Cs(e);
|
|
36132
36132
|
if (M)
|
|
36133
36133
|
return;
|
|
36134
36134
|
if (e.isActive("taskList")) {
|
|
36135
36135
|
const S = e.chain().focus().command(
|
|
36136
|
-
(T) =>
|
|
36136
|
+
(T) => _s({ ...T, state: _, from: N, to: O })
|
|
36137
36137
|
).setTextSelection({ from: N, to: O }).focus().run();
|
|
36138
36138
|
return h(Ye.NONE), S;
|
|
36139
36139
|
}
|
|
@@ -36406,12 +36406,12 @@ const L2 = (e) => {
|
|
|
36406
36406
|
title: "To-do list",
|
|
36407
36407
|
onClick: () => {
|
|
36408
36408
|
if (!e) return;
|
|
36409
|
-
const { from: N, to: O, state: _, hasMultipleLists: M } =
|
|
36409
|
+
const { from: N, to: O, state: _, hasMultipleLists: M } = Cs(e);
|
|
36410
36410
|
if (M)
|
|
36411
36411
|
return;
|
|
36412
36412
|
if (e.isActive("taskList")) {
|
|
36413
36413
|
const S = e.chain().focus().command(
|
|
36414
|
-
(T) =>
|
|
36414
|
+
(T) => _s({ ...T, state: _, from: N, to: O })
|
|
36415
36415
|
).setTextSelection({ from: N, to: O }).focus().run();
|
|
36416
36416
|
return h(Ye.NONE), S;
|
|
36417
36417
|
}
|
|
@@ -36955,12 +36955,12 @@ const L2 = (e) => {
|
|
|
36955
36955
|
description: "Normal",
|
|
36956
36956
|
icon: "Type",
|
|
36957
36957
|
command: (u) => {
|
|
36958
|
-
const { from: c, to: d, state: p, hasMultipleLists: h } =
|
|
36958
|
+
const { from: c, to: d, state: p, hasMultipleLists: h } = Cs(u);
|
|
36959
36959
|
if (h)
|
|
36960
36960
|
return;
|
|
36961
36961
|
if (u.isActive("bulletList") || u.isActive("orderedList") || u.isActive("taskList")) {
|
|
36962
36962
|
const g = u.chain().focus().command(
|
|
36963
|
-
(m) =>
|
|
36963
|
+
(m) => _s({ ...m, state: p, from: c, to: d })
|
|
36964
36964
|
).setTextSelection({ from: c, to: d }).focus().run();
|
|
36965
36965
|
return r(Ye.NONE), g;
|
|
36966
36966
|
}
|
|
@@ -37095,12 +37095,12 @@ const L2 = (e) => {
|
|
|
37095
37095
|
description: "Bullet list",
|
|
37096
37096
|
icon: "List",
|
|
37097
37097
|
command: (u) => {
|
|
37098
|
-
const { from: c, to: d, state: p, hasMultipleLists: h } =
|
|
37098
|
+
const { from: c, to: d, state: p, hasMultipleLists: h } = Cs(u);
|
|
37099
37099
|
if (h)
|
|
37100
37100
|
return;
|
|
37101
37101
|
if (u.isActive("bulletList")) {
|
|
37102
37102
|
const g = u.chain().focus().command(
|
|
37103
|
-
(m) =>
|
|
37103
|
+
(m) => _s({ ...m, state: p, from: c, to: d })
|
|
37104
37104
|
).setTextSelection({ from: c, to: d }).focus().run();
|
|
37105
37105
|
return r(Ye.NONE), g;
|
|
37106
37106
|
}
|
|
@@ -37125,12 +37125,12 @@ const L2 = (e) => {
|
|
|
37125
37125
|
description: "Ordered list",
|
|
37126
37126
|
icon: "ListOrdered",
|
|
37127
37127
|
command: (u) => {
|
|
37128
|
-
const { from: c, to: d, state: p, hasMultipleLists: h } =
|
|
37128
|
+
const { from: c, to: d, state: p, hasMultipleLists: h } = Cs(u);
|
|
37129
37129
|
if (h)
|
|
37130
37130
|
return;
|
|
37131
37131
|
if (u.isActive("orderedList")) {
|
|
37132
37132
|
const g = u.chain().focus().command(
|
|
37133
|
-
(m) =>
|
|
37133
|
+
(m) => _s({ ...m, state: p, from: c, to: d })
|
|
37134
37134
|
).setTextSelection({ from: c, to: d }).focus().run();
|
|
37135
37135
|
return r(Ye.NONE), g;
|
|
37136
37136
|
}
|
|
@@ -37336,7 +37336,7 @@ const L2 = (e) => {
|
|
|
37336
37336
|
] })
|
|
37337
37337
|
}
|
|
37338
37338
|
);
|
|
37339
|
-
},
|
|
37339
|
+
}, Cs = (e) => {
|
|
37340
37340
|
const { state: t } = e, { from: n, to: r } = t.selection, o = ["bulletList", "orderedList", "taskList"].filter(
|
|
37341
37341
|
(l) => e.isActive(l)
|
|
37342
37342
|
), i = [], s = [];
|
|
@@ -37409,7 +37409,7 @@ const L2 = (e) => {
|
|
|
37409
37409
|
}), a;
|
|
37410
37410
|
};
|
|
37411
37411
|
return e.content.flatMap((i) => o(i, 0));
|
|
37412
|
-
},
|
|
37412
|
+
}, _s = ({
|
|
37413
37413
|
tr: e,
|
|
37414
37414
|
dispatch: t,
|
|
37415
37415
|
state: n,
|
|
@@ -37539,10 +37539,10 @@ const L2 = (e) => {
|
|
|
37539
37539
|
name: "Text",
|
|
37540
37540
|
icon: "Type",
|
|
37541
37541
|
command: () => {
|
|
37542
|
-
const { from: o, to: i, state: s, hasMultipleLists: a } =
|
|
37542
|
+
const { from: o, to: i, state: s, hasMultipleLists: a } = Cs(e);
|
|
37543
37543
|
if (!a)
|
|
37544
37544
|
return e.isActive("bulletList") || e.isActive("orderedList") || e.isActive("taskList") ? e.chain().focus().command(
|
|
37545
|
-
(l) =>
|
|
37545
|
+
(l) => _s({ ...l, state: s, from: o, to: i })
|
|
37546
37546
|
).setTextSelection({ from: o, to: i }).focus().run() : e.chain().focus().toggleNode("paragraph", "paragraph").setTextSelection({ from: o, to: i }).focus().run();
|
|
37547
37547
|
},
|
|
37548
37548
|
isActive: () => e.isActive("paragraph") && !e.isActive("bulletList") && !e.isActive("orderedList") && !e.isActive("taskList")
|
|
@@ -37569,10 +37569,10 @@ const L2 = (e) => {
|
|
|
37569
37569
|
name: "To-do List",
|
|
37570
37570
|
icon: "ListChecks",
|
|
37571
37571
|
command: () => {
|
|
37572
|
-
const { from: o, to: i, state: s, hasMultipleLists: a } =
|
|
37572
|
+
const { from: o, to: i, state: s, hasMultipleLists: a } = Cs(e);
|
|
37573
37573
|
if (!a)
|
|
37574
37574
|
return e.isActive("taskList") ? e.chain().focus().command(
|
|
37575
|
-
(l) =>
|
|
37575
|
+
(l) => _s({ ...l, state: s, from: o, to: i })
|
|
37576
37576
|
).setTextSelection({ from: o, to: i }).focus().run() : e.chain().focus().command(
|
|
37577
37577
|
(l) => hl({
|
|
37578
37578
|
...l,
|
|
@@ -37593,10 +37593,10 @@ const L2 = (e) => {
|
|
|
37593
37593
|
name: "Bullet List",
|
|
37594
37594
|
icon: "ListOrdered",
|
|
37595
37595
|
command: () => {
|
|
37596
|
-
const { from: o, to: i, state: s, hasMultipleLists: a } =
|
|
37596
|
+
const { from: o, to: i, state: s, hasMultipleLists: a } = Cs(e);
|
|
37597
37597
|
if (!a)
|
|
37598
37598
|
return e.isActive("bulletList") ? e.chain().focus().command(
|
|
37599
|
-
(l) =>
|
|
37599
|
+
(l) => _s({ ...l, state: s, from: o, to: i })
|
|
37600
37600
|
).setTextSelection({ from: o, to: i }).focus().run() : e.chain().focus().command(
|
|
37601
37601
|
(l) => hl({
|
|
37602
37602
|
...l,
|
|
@@ -37616,10 +37616,10 @@ const L2 = (e) => {
|
|
|
37616
37616
|
name: "Numbered List",
|
|
37617
37617
|
icon: "ListOrdered",
|
|
37618
37618
|
command: () => {
|
|
37619
|
-
const { from: o, to: i, state: s, hasMultipleLists: a } =
|
|
37619
|
+
const { from: o, to: i, state: s, hasMultipleLists: a } = Cs(e);
|
|
37620
37620
|
if (!a)
|
|
37621
37621
|
return e.isActive("orderedList") ? e.chain().focus().command(
|
|
37622
|
-
(l) =>
|
|
37622
|
+
(l) => _s({ ...l, state: s, from: o, to: i })
|
|
37623
37623
|
).setTextSelection({ from: o, to: i }).focus().run() : e.chain().focus().command(
|
|
37624
37624
|
(l) => hl({
|
|
37625
37625
|
...l,
|
|
@@ -41354,7 +41354,7 @@ class zme {
|
|
|
41354
41354
|
new Je(Re.from(n), 0, 0)
|
|
41355
41355
|
);
|
|
41356
41356
|
if (t) {
|
|
41357
|
-
const o = xl(
|
|
41357
|
+
const o = xl(Os(t.anchor, 0), r.doc.content.size), i = xl(Os(t.head, 0), r.doc.content.size);
|
|
41358
41358
|
r.setSelection(pt.create(r.doc, o, i));
|
|
41359
41359
|
}
|
|
41360
41360
|
this.prosemirrorView.dispatch(
|
|
@@ -41376,7 +41376,7 @@ class zme {
|
|
|
41376
41376
|
);
|
|
41377
41377
|
i = o.getXmlFragment(s);
|
|
41378
41378
|
} else {
|
|
41379
|
-
const s = o.store.clients.get(i._item.id.client) ?? [], a =
|
|
41379
|
+
const s = o.store.clients.get(i._item.id.client) ?? [], a = Rs(
|
|
41380
41380
|
s,
|
|
41381
41381
|
i._item.id.clock
|
|
41382
41382
|
);
|
|
@@ -41504,7 +41504,7 @@ const V$ = (e, t, n, r, o, i) => {
|
|
|
41504
41504
|
o,
|
|
41505
41505
|
i
|
|
41506
41506
|
);
|
|
41507
|
-
throw
|
|
41507
|
+
throw js();
|
|
41508
41508
|
}
|
|
41509
41509
|
return s;
|
|
41510
41510
|
}, U2 = (e, t, n, r, o, i) => {
|
|
@@ -41676,7 +41676,7 @@ const V$ = (e, t, n, r, o, i) => {
|
|
|
41676
41676
|
let t = "", n = e._start;
|
|
41677
41677
|
const r = {};
|
|
41678
41678
|
for (; n !== null; )
|
|
41679
|
-
n.deleted || (n.countable && n.content instanceof
|
|
41679
|
+
n.deleted || (n.countable && n.content instanceof Is ? t += n.content.str : n.content instanceof Er && (r[n.content.key] = null)), n = n.right;
|
|
41680
41680
|
return {
|
|
41681
41681
|
str: t,
|
|
41682
41682
|
nAttrs: r
|
|
@@ -41708,7 +41708,7 @@ const V$ = (e, t, n, r, o, i) => {
|
|
|
41708
41708
|
const n = {};
|
|
41709
41709
|
return e.forEach((r) => {
|
|
41710
41710
|
if (r.type.name !== "ychange") {
|
|
41711
|
-
const o =
|
|
41711
|
+
const o = Hs(t.isOMark, r.type, () => !r.type.excludes(r.type));
|
|
41712
41712
|
n[o ? `${r.type.name}--${Ome(r.toJSON())}` : r.type.name] = r.attrs;
|
|
41713
41713
|
}
|
|
41714
41714
|
}), n;
|
|
@@ -41804,7 +41804,7 @@ const Yme = () => {
|
|
|
41804
41804
|
}), n.dispatch(r));
|
|
41805
41805
|
});
|
|
41806
41806
|
}, Xme = (e, t, n) => {
|
|
41807
|
-
mf || (mf = /* @__PURE__ */ new Map(), N8(0, Yme)),
|
|
41807
|
+
mf || (mf = /* @__PURE__ */ new Map(), N8(0, Yme)), Hs(mf, e, Ro).set(t, n);
|
|
41808
41808
|
}, Gb = (e, t, n) => {
|
|
41809
41809
|
if (e === 0)
|
|
41810
41810
|
return f4(t, 0, -1);
|
|
@@ -41978,14 +41978,14 @@ const Qme = (e, t, n) => e !== t, e2e = (e) => {
|
|
|
41978
41978
|
i.binding.mapping
|
|
41979
41979
|
);
|
|
41980
41980
|
if (d !== null && p !== null) {
|
|
41981
|
-
const h =
|
|
41981
|
+
const h = Os(e.doc.content.size - 1, 0);
|
|
41982
41982
|
d = xl(d, h), p = xl(p, h), a.push(
|
|
41983
41983
|
Gn.widget(p, () => r(c, u), {
|
|
41984
41984
|
key: u + "",
|
|
41985
41985
|
side: 10
|
|
41986
41986
|
})
|
|
41987
41987
|
);
|
|
41988
|
-
const f = xl(d, p), g =
|
|
41988
|
+
const f = xl(d, p), g = Os(d, p);
|
|
41989
41989
|
a.push(
|
|
41990
41990
|
Gn.inline(f, g, o(c, u), {
|
|
41991
41991
|
inclusiveEnd: !0,
|
|
@@ -42073,7 +42073,7 @@ const Qme = (e, t, n) => e !== t, e2e = (e) => {
|
|
|
42073
42073
|
const t = va.getState(e).undoManager;
|
|
42074
42074
|
if (t != null)
|
|
42075
42075
|
return t.redo(), !0;
|
|
42076
|
-
}, s2e = /* @__PURE__ */ new Set(["paragraph"]), a2e = (e, t) => !(e instanceof Ln) || !(e.content instanceof
|
|
42076
|
+
}, s2e = /* @__PURE__ */ new Set(["paragraph"]), a2e = (e, t) => !(e instanceof Ln) || !(e.content instanceof Ws) || !(e.content.type instanceof oi || e.content.type instanceof Wr && t.has(e.content.type.nodeName)) || e.content.type._length === 0, l2e = ({ protectedNodes: e = s2e, trackedOrigins: t = [], undoManager: n = null } = {}) => new At({
|
|
42077
42077
|
key: va,
|
|
42078
42078
|
state: {
|
|
42079
42079
|
init: (r, o) => {
|
|
@@ -45051,7 +45051,7 @@ var _be = /* @__PURE__ */ function(e) {
|
|
|
45051
45051
|
}, t;
|
|
45052
45052
|
}(Kr);
|
|
45053
45053
|
const Abe = 500;
|
|
45054
|
-
class
|
|
45054
|
+
class Fs {
|
|
45055
45055
|
constructor(t, n) {
|
|
45056
45056
|
this.items = t, this.eventCount = n;
|
|
45057
45057
|
}
|
|
@@ -45081,7 +45081,7 @@ class ws {
|
|
|
45081
45081
|
} else
|
|
45082
45082
|
s.maybeStep(d.step);
|
|
45083
45083
|
if (d.selection)
|
|
45084
|
-
return a = o ? d.selection.map(o.slice(i)) : d.selection, l = new
|
|
45084
|
+
return a = o ? d.selection.map(o.slice(i)) : d.selection, l = new Fs(this.items.slice(0, r).append(c.reverse().concat(u)), this.eventCount - 1), !1;
|
|
45085
45085
|
}, this.items.length, 0), { remaining: l, transform: s, selection: a };
|
|
45086
45086
|
}
|
|
45087
45087
|
// Create a new branch with the given transform added.
|
|
@@ -45092,7 +45092,7 @@ class ws {
|
|
|
45092
45092
|
(h = l && l.merge(p)) && (p = h, c ? i.pop() : a = a.slice(0, a.length - 1)), i.push(p), n && (s++, n = void 0), o || (l = p);
|
|
45093
45093
|
}
|
|
45094
45094
|
let u = s - r.depth;
|
|
45095
|
-
return u > Tbe && (a = Sbe(a, u), s -= u), new
|
|
45095
|
+
return u > Tbe && (a = Sbe(a, u), s -= u), new Fs(a.append(i), s);
|
|
45096
45096
|
}
|
|
45097
45097
|
remapping(t, n) {
|
|
45098
45098
|
let r = new Gf();
|
|
@@ -45102,7 +45102,7 @@ class ws {
|
|
|
45102
45102
|
}, t, n), r;
|
|
45103
45103
|
}
|
|
45104
45104
|
addMaps(t) {
|
|
45105
|
-
return this.eventCount == 0 ? this : new
|
|
45105
|
+
return this.eventCount == 0 ? this : new Fs(this.items.append(t.map((n) => new oa(n))), this.eventCount);
|
|
45106
45106
|
}
|
|
45107
45107
|
// When the collab module receives remote changes, the history has
|
|
45108
45108
|
// to know about those, so that it can adjust the steps that were
|
|
@@ -45131,7 +45131,7 @@ class ws {
|
|
|
45131
45131
|
let u = [];
|
|
45132
45132
|
for (let p = n; p < s; p++)
|
|
45133
45133
|
u.push(new oa(i.maps[p]));
|
|
45134
|
-
let c = this.items.slice(0, o).append(u).append(r), d = new
|
|
45134
|
+
let c = this.items.slice(0, o).append(u).append(r), d = new Fs(c, a);
|
|
45135
45135
|
return d.emptyItemCount() > Abe && (d = d.compress(this.items.length - r.length)), d;
|
|
45136
45136
|
}
|
|
45137
45137
|
emptyItemCount() {
|
|
@@ -45160,10 +45160,10 @@ class ws {
|
|
|
45160
45160
|
(p = o.length && o[h].merge(d)) ? o[h] = p : o.push(d);
|
|
45161
45161
|
}
|
|
45162
45162
|
} else s.map && r--;
|
|
45163
|
-
}, this.items.length, 0), new
|
|
45163
|
+
}, this.items.length, 0), new Fs(Kr.from(o.reverse()), i);
|
|
45164
45164
|
}
|
|
45165
45165
|
}
|
|
45166
|
-
|
|
45166
|
+
Fs.empty = new Fs(Kr.empty, 0);
|
|
45167
45167
|
function Sbe(e, t) {
|
|
45168
45168
|
let n;
|
|
45169
45169
|
return e.forEach((r, o) => {
|
|
@@ -45201,7 +45201,7 @@ function jbe(e, t, n, r) {
|
|
|
45201
45201
|
return s.getMeta(sd).redo ? new gu(e.done.addTransform(n, void 0, r, z2(t)), e.undone, vT(n.mapping.maps), e.prevTime, e.prevComposition) : new gu(e.done, e.undone.addTransform(n, void 0, r, z2(t)), null, e.prevTime, e.prevComposition);
|
|
45202
45202
|
if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
45203
45203
|
let a = n.getMeta("composition"), l = e.prevTime == 0 || !s && e.prevComposition != a && (e.prevTime < (n.time || 0) - r.newGroupDelay || !Nbe(n, e.prevRanges)), u = s ? q4(e.prevRanges, n.mapping) : vT(n.mapping.maps);
|
|
45204
|
-
return new gu(e.done.addTransform(n, l ? t.selection.getBookmark() : void 0, r, z2(t)),
|
|
45204
|
+
return new gu(e.done.addTransform(n, l ? t.selection.getBookmark() : void 0, r, z2(t)), Fs.empty, u, n.time, a ?? e.prevComposition);
|
|
45205
45205
|
} else return (i = n.getMeta("rebased")) ? new gu(e.done.rebased(n, i), e.undone.rebased(n, i), q4(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new gu(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), q4(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
|
|
45206
45206
|
}
|
|
45207
45207
|
function Nbe(e, t) {
|
|
@@ -45260,7 +45260,7 @@ function Obe(e = {}) {
|
|
|
45260
45260
|
key: sd,
|
|
45261
45261
|
state: {
|
|
45262
45262
|
init() {
|
|
45263
|
-
return new gu(
|
|
45263
|
+
return new gu(Fs.empty, Fs.empty, null, 0, -1);
|
|
45264
45264
|
},
|
|
45265
45265
|
apply(t, n, r) {
|
|
45266
45266
|
return jbe(n, r, t, e);
|
|
@@ -46738,7 +46738,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46738
46738
|
};
|
|
46739
46739
|
},
|
|
46740
46740
|
addNodeView() {
|
|
46741
|
-
return
|
|
46741
|
+
return zs(
|
|
46742
46742
|
MH(
|
|
46743
46743
|
this.options.ipfsImageFetchFn,
|
|
46744
46744
|
this.options.fetchV1ImageFn
|
|
@@ -48324,7 +48324,7 @@ const X3e = (e, t, n) => {
|
|
|
48324
48324
|
];
|
|
48325
48325
|
},
|
|
48326
48326
|
addNodeView() {
|
|
48327
|
-
return
|
|
48327
|
+
return zs(J3e);
|
|
48328
48328
|
},
|
|
48329
48329
|
addCommands() {
|
|
48330
48330
|
return {
|
|
@@ -52701,7 +52701,7 @@ const rW = St.create({
|
|
|
52701
52701
|
};
|
|
52702
52702
|
},
|
|
52703
52703
|
addNodeView() {
|
|
52704
|
-
return
|
|
52704
|
+
return zs(nW);
|
|
52705
52705
|
},
|
|
52706
52706
|
addProseMirrorPlugins() {
|
|
52707
52707
|
return this.options.hasAvailableModels ? [
|
|
@@ -55109,7 +55109,7 @@ const jFe = [
|
|
|
55109
55109
|
];
|
|
55110
55110
|
},
|
|
55111
55111
|
addNodeView() {
|
|
55112
|
-
return
|
|
55112
|
+
return zs(AW, {
|
|
55113
55113
|
as: "td",
|
|
55114
55114
|
className: "relative"
|
|
55115
55115
|
});
|
|
@@ -55152,7 +55152,7 @@ const jFe = [
|
|
|
55152
55152
|
];
|
|
55153
55153
|
},
|
|
55154
55154
|
addNodeView() {
|
|
55155
|
-
return
|
|
55155
|
+
return zs(AW, {
|
|
55156
55156
|
as: "th",
|
|
55157
55157
|
className: "relative"
|
|
55158
55158
|
});
|
|
@@ -55582,7 +55582,7 @@ const IFe = wt.create({
|
|
|
55582
55582
|
};
|
|
55583
55583
|
},
|
|
55584
55584
|
addNodeView() {
|
|
55585
|
-
return
|
|
55585
|
+
return zs(LFe(this.options.onError));
|
|
55586
55586
|
},
|
|
55587
55587
|
parseHTML() {
|
|
55588
55588
|
return [
|
|
@@ -59508,7 +59508,7 @@ function $q(e, t) {
|
|
|
59508
59508
|
}
|
|
59509
59509
|
}
|
|
59510
59510
|
}
|
|
59511
|
-
function
|
|
59511
|
+
function As(e, t = v8e) {
|
|
59512
59512
|
return $q(e, (n) => typeof n == "string" ? Yh(t, n.split(`
|
|
59513
59513
|
`)) : n);
|
|
59514
59514
|
}
|
|
@@ -59555,17 +59555,17 @@ function D8e(e) {
|
|
|
59555
59555
|
if (typeof e != "string") throw new TypeError("Expected a string");
|
|
59556
59556
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
59557
59557
|
}
|
|
59558
|
-
var
|
|
59558
|
+
var gs, k8e = class {
|
|
59559
59559
|
constructor(e) {
|
|
59560
|
-
jq(this,
|
|
59560
|
+
jq(this, gs), i8e(this, gs, new Set(e));
|
|
59561
59561
|
}
|
|
59562
59562
|
getLeadingWhitespaceCount(e) {
|
|
59563
|
-
let t = Vi(this,
|
|
59563
|
+
let t = Vi(this, gs), n = 0;
|
|
59564
59564
|
for (let r = 0; r < e.length && t.has(e.charAt(r)); r++) n++;
|
|
59565
59565
|
return n;
|
|
59566
59566
|
}
|
|
59567
59567
|
getTrailingWhitespaceCount(e) {
|
|
59568
|
-
let t = Vi(this,
|
|
59568
|
+
let t = Vi(this, gs), n = 0;
|
|
59569
59569
|
for (let r = e.length - 1; r >= 0 && t.has(e.charAt(r)); r--) n++;
|
|
59570
59570
|
return n;
|
|
59571
59571
|
}
|
|
@@ -59578,10 +59578,10 @@ var ms, k8e = class {
|
|
|
59578
59578
|
return e.slice(e.length - t);
|
|
59579
59579
|
}
|
|
59580
59580
|
hasLeadingWhitespace(e) {
|
|
59581
|
-
return Vi(this,
|
|
59581
|
+
return Vi(this, gs).has(e.charAt(0));
|
|
59582
59582
|
}
|
|
59583
59583
|
hasTrailingWhitespace(e) {
|
|
59584
|
-
return Vi(this,
|
|
59584
|
+
return Vi(this, gs).has(Tg(!1, e, -1));
|
|
59585
59585
|
}
|
|
59586
59586
|
trimStart(e) {
|
|
59587
59587
|
let t = this.getLeadingWhitespaceCount(e);
|
|
@@ -59595,23 +59595,23 @@ var ms, k8e = class {
|
|
|
59595
59595
|
return this.trimEnd(this.trimStart(e));
|
|
59596
59596
|
}
|
|
59597
59597
|
split(e, t = !1) {
|
|
59598
|
-
let n = `[${D8e([...Vi(this,
|
|
59598
|
+
let n = `[${D8e([...Vi(this, gs)].join(""))}]+`, r = new RegExp(t ? `(${n})` : n, "u");
|
|
59599
59599
|
return e.split(r);
|
|
59600
59600
|
}
|
|
59601
59601
|
hasWhitespaceCharacter(e) {
|
|
59602
|
-
let t = Vi(this,
|
|
59602
|
+
let t = Vi(this, gs);
|
|
59603
59603
|
return Array.prototype.some.call(e, (n) => t.has(n));
|
|
59604
59604
|
}
|
|
59605
59605
|
hasNonWhitespaceCharacter(e) {
|
|
59606
|
-
let t = Vi(this,
|
|
59606
|
+
let t = Vi(this, gs);
|
|
59607
59607
|
return Array.prototype.some.call(e, (n) => !t.has(n));
|
|
59608
59608
|
}
|
|
59609
59609
|
isWhitespaceOnly(e) {
|
|
59610
|
-
let t = Vi(this,
|
|
59610
|
+
let t = Vi(this, gs);
|
|
59611
59611
|
return Array.prototype.every.call(e, (n) => t.has(n));
|
|
59612
59612
|
}
|
|
59613
59613
|
};
|
|
59614
|
-
|
|
59614
|
+
gs = /* @__PURE__ */ new WeakMap();
|
|
59615
59615
|
var E8e = k8e, C8e = [" ", `
|
|
59616
59616
|
`, "\f", "\r", " "], _8e = new E8e(C8e), jl = _8e, A8e = class extends Error {
|
|
59617
59617
|
constructor(t, n, r = "type") {
|
|
@@ -59646,7 +59646,7 @@ function Xh(e, t) {
|
|
|
59646
59646
|
let n = e.type === "NGRoot" ? e.node.type === "NGMicrosyntax" && e.node.body.length === 1 && e.node.body[0].type === "NGMicrosyntaxExpression" ? e.node.body[0].expression : e.node : e.type === "JsExpressionRoot" ? e.node : e;
|
|
59647
59647
|
return n && (n.type === "ObjectExpression" || n.type === "ArrayExpression" || (t.parser === "__vue_expression" || t.parser === "__vue_ts_expression") && (n.type === "TemplateLiteral" || n.type === "StringLiteral"));
|
|
59648
59648
|
}
|
|
59649
|
-
async function
|
|
59649
|
+
async function Ls(e, t, n, r) {
|
|
59650
59650
|
n = { __isInHtmlAttribute: !0, __embeddedInHtml: !0, ...n };
|
|
59651
59651
|
let o = !0;
|
|
59652
59652
|
r && (n.__onHtmlBindingRoot = (s, a) => {
|
|
@@ -59657,7 +59657,7 @@ async function Us(e, t, n, r) {
|
|
|
59657
59657
|
}
|
|
59658
59658
|
function R8e(e, t, n, r) {
|
|
59659
59659
|
let { node: o } = n, i = r.originalText.slice(o.sourceSpan.start.offset, o.sourceSpan.end.offset);
|
|
59660
|
-
return /^\s*$/u.test(i) ? "" :
|
|
59660
|
+
return /^\s*$/u.test(i) ? "" : Ls(i, e, { parser: "__ng_directive", __isInHtmlAttribute: !1 }, Xh);
|
|
59661
59661
|
}
|
|
59662
59662
|
var I8e = R8e, L8e = (e, t) => {
|
|
59663
59663
|
if (!(e && t == null)) return t.toReversed || !Array.isArray(t) ? t.toReversed() : [...t].reverse();
|
|
@@ -59933,7 +59933,7 @@ function w9e(e, t) {
|
|
|
59933
59933
|
return r === "script" && o === "setup" || r === "style" && o === "vars";
|
|
59934
59934
|
}
|
|
59935
59935
|
function iV(e, t = e.value) {
|
|
59936
|
-
return e.parent.isWhitespaceSensitive ? e.parent.isIndentationSensitive ?
|
|
59936
|
+
return e.parent.isWhitespaceSensitive ? e.parent.isIndentationSensitive ? As(t) : As(rV(Gq(t)), Yn) : Yh(Dr, jl.split(t));
|
|
59937
59937
|
}
|
|
59938
59938
|
function sV(e, t) {
|
|
59939
59939
|
return Zh(e, t) && e.name === "script";
|
|
@@ -59941,16 +59941,16 @@ function sV(e, t) {
|
|
|
59941
59941
|
var aV = /\{\{(.+?)\}\}/su;
|
|
59942
59942
|
async function D9e(e, t) {
|
|
59943
59943
|
let n = [];
|
|
59944
|
-
for (let [r, o] of e.split(aV).entries()) if (r % 2 === 0) n.push(
|
|
59944
|
+
for (let [r, o] of e.split(aV).entries()) if (r % 2 === 0) n.push(As(o));
|
|
59945
59945
|
else try {
|
|
59946
|
-
n.push(jr(["{{", $a([Dr, await
|
|
59946
|
+
n.push(jr(["{{", $a([Dr, await Ls(o, t, { parser: "__ng_interpolation", __isInHtmlInterpolation: !0 })]), Dr, "}}"]));
|
|
59947
59947
|
} catch {
|
|
59948
|
-
n.push("{{",
|
|
59948
|
+
n.push("{{", As(o), "}}");
|
|
59949
59949
|
}
|
|
59950
59950
|
return n;
|
|
59951
59951
|
}
|
|
59952
59952
|
function dE({ parser: e }) {
|
|
59953
|
-
return (t, n, r) =>
|
|
59953
|
+
return (t, n, r) => Ls(hc(r.node), t, { parser: e }, Xh);
|
|
59954
59954
|
}
|
|
59955
59955
|
var k9e = dE({ parser: "__ng_action" }), E9e = dE({ parser: "__ng_binding" }), C9e = dE({ parser: "__ng_directive" });
|
|
59956
59956
|
function _9e(e, t) {
|
|
@@ -60052,14 +60052,14 @@ function H9e(e, t) {
|
|
|
60052
60052
|
var pE = H9e;
|
|
60053
60053
|
function W9e(e, t, n) {
|
|
60054
60054
|
let { node: r } = n, o = hc(r);
|
|
60055
|
-
return
|
|
60055
|
+
return Ls(`type T<${o}> = any`, e, { parser: "babel-ts", __isEmbeddedTypescriptGenericParameters: !0 }, Xh);
|
|
60056
60056
|
}
|
|
60057
60057
|
function q9e(e, t, { parseWithTs: n }) {
|
|
60058
|
-
return
|
|
60058
|
+
return Ls(`function _(${e}) {}`, t, { parser: n ? "babel-ts" : "babel", __isVueBindings: !0 });
|
|
60059
60059
|
}
|
|
60060
60060
|
async function V9e(e, t, n, r) {
|
|
60061
60061
|
let o = hc(n.node), { left: i, operator: s, right: a } = G9e(o), l = pE(n, r);
|
|
60062
|
-
return [jr(await
|
|
60062
|
+
return [jr(await Ls(`function _(${i}) {}`, e, { parser: l ? "babel-ts" : "babel", __isVueForBindingLeft: !0 })), " ", s, " ", await Ls(a, e, { parser: l ? "__ts_expression" : "__js_expression" })];
|
|
60063
60063
|
}
|
|
60064
60064
|
function G9e(e) {
|
|
60065
60065
|
let t = /(.*?)\s+(in|of)\s+(.*)/su, n = /,([^,\]}]*)(?:,([^,\]}]*))?$/u, r = /^\(|\)$/gu, o = e.match(t);
|
|
@@ -60089,13 +60089,13 @@ async function Y9e(e, t, { parseWithTs: n }) {
|
|
|
60089
60089
|
} catch (o) {
|
|
60090
60090
|
if (((r = o.cause) == null ? void 0 : r.code) !== "BABEL_PARSER_SYNTAX_ERROR") throw o;
|
|
60091
60091
|
}
|
|
60092
|
-
return
|
|
60092
|
+
return Ls(e, t, { parser: n ? "__vue_ts_event_binding" : "__vue_event_binding" }, Xh);
|
|
60093
60093
|
}
|
|
60094
60094
|
function X9e(e, t, { parseWithTs: n }) {
|
|
60095
|
-
return
|
|
60095
|
+
return Ls(e, t, { parser: n ? "__vue_ts_expression" : "__vue_expression" }, Xh);
|
|
60096
60096
|
}
|
|
60097
60097
|
function uV(e, t, { parseWithTs: n }) {
|
|
60098
|
-
return
|
|
60098
|
+
return Ls(e, t, { parser: n ? "__ts_expression" : "__js_expression" }, Xh);
|
|
60099
60099
|
}
|
|
60100
60100
|
var Z9e = K9e;
|
|
60101
60101
|
function J9e(e, t) {
|
|
@@ -60193,7 +60193,7 @@ function iEe(e, t, n) {
|
|
|
60193
60193
|
var r;
|
|
60194
60194
|
let { node: o } = e;
|
|
60195
60195
|
if (!lE(o.attrs)) return o.isSelfClosing ? " " : "";
|
|
60196
|
-
let i = ((r = o.prev) == null ? void 0 : r.type) === "comment" && oEe(o.prev.value), s = typeof i == "boolean" ? () => i : Array.isArray(i) ? (d) => i.includes(d.rawName) : () => !1, a = e.map(({ node: d }) => s(d) ?
|
|
60196
|
+
let i = ((r = o.prev) == null ? void 0 : r.type) === "comment" && oEe(o.prev.value), s = typeof i == "boolean" ? () => i : Array.isArray(i) ? (d) => i.includes(d.rawName) : () => !1, a = e.map(({ node: d }) => s(d) ? As(t.originalText.slice(Bg(d), D3(d))) : n(), "attrs"), l = o.type === "element" && o.fullName === "script" && o.attrs.length === 1 && o.attrs[0].fullName === "src" && o.children.length === 0, u = t.singleAttributePerLine && o.attrs.length > 1 && !Zh(o, t) ? Yn : Dr, c = [$a([l ? " " : Dr, Yh(u, a)])];
|
|
60197
60197
|
return o.firstChild && E3(o.firstChild) || o.isSelfClosing && Og(o.parent) || l ? c.push(o.isSelfClosing ? " " : "") : c.push(t.bracketSameLine ? o.isSelfClosing ? " " : "" : o.isSelfClosing ? Dr : bo), c;
|
|
60198
60198
|
}
|
|
60199
60199
|
function sEe(e) {
|
|
@@ -60289,7 +60289,7 @@ function uEe(e, t) {
|
|
|
60289
60289
|
case "angularControlFlowBlockParameters":
|
|
60290
60290
|
return lEe.has(e.parent.name) ? I8e : void 0;
|
|
60291
60291
|
case "angularLetDeclarationInitializer":
|
|
60292
|
-
return (r) =>
|
|
60292
|
+
return (r) => Ls(n.value, r, { parser: "__ng_binding", __isInHtmlAttribute: !1 });
|
|
60293
60293
|
}
|
|
60294
60294
|
}
|
|
60295
60295
|
var cEe = uEe, A0 = null;
|
|
@@ -60335,7 +60335,7 @@ function S0(e, t, n) {
|
|
|
60335
60335
|
let r = e.node;
|
|
60336
60336
|
if (F3(r)) {
|
|
60337
60337
|
let o = pV(r);
|
|
60338
|
-
return [Cd(r, t),
|
|
60338
|
+
return [Cd(r, t), As(jl.trimEnd(t.originalText.slice(Bg(r) + (r.prev && k3(r.prev) ? fE(r).length : 0), o - (r.next && Ed(r.next) ? Mg(r, t).length : 0)))), kd(r, t)];
|
|
60339
60339
|
}
|
|
60340
60340
|
return n();
|
|
60341
60341
|
}
|
|
@@ -60392,7 +60392,7 @@ function TEe(e, t, n) {
|
|
|
60392
60392
|
}
|
|
60393
60393
|
function jEe(e, t, n) {
|
|
60394
60394
|
let { node: r } = e;
|
|
60395
|
-
if (Kq(r, t)) return [Cd(r, t), jr(ND(e, t, n)),
|
|
60395
|
+
if (Kq(r, t)) return [Cd(r, t), jr(ND(e, t, n)), As(dV(r, t)), ...jD(r, t), kd(r, t)];
|
|
60396
60396
|
let o = r.children.length === 1 && (r.firstChild.type === "interpolation" || r.firstChild.type === "angularIcuExpression") && r.firstChild.isLeadingSpaceSensitive && !r.firstChild.hasLeadingSpaces && r.lastChild.isTrailingSpaceSensitive && !r.lastChild.hasTrailingSpaces, i = Symbol("element-attr-group-id"), s = (c) => jr([jr(ND(e, t, n), { id: i }), c, jD(r, t)]), a = (c) => o ? b8e(c, { groupId: i }) : (Nl(r, t) || w3(r, t)) && r.parent.type === "root" && t.parser === "vue" && !t.vueIndentScriptAndStyle ? c : $a(c), l = () => o ? Sy(bo, "", { groupId: i }) : r.firstChild.hasLeadingSpaces && r.firstChild.isLeadingSpaceSensitive ? Dr : r.firstChild.type === "text" && r.isWhitespaceSensitive && r.isIndentationSensitive ? g8e(bo) : bo, u = () => (r.next ? Ed(r.next) : Og(r.parent)) ? r.lastChild.hasTrailingSpaces && r.lastChild.isTrailingSpaceSensitive ? " " : "" : o ? Sy(bo, "", { groupId: i }) : r.lastChild.hasTrailingSpaces && r.lastChild.isTrailingSpaceSensitive ? Dr : (r.lastChild.type === "comment" || r.lastChild.type === "text" && r.isWhitespaceSensitive && r.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${t.tabWidth * (e.ancestors.length - 1)}}$`, "u").test(r.lastChild.value) ? "" : bo;
|
|
60397
60397
|
return r.children.length === 0 ? s(r.hasDanglingSpaces && r.isDanglingSpaceSensitive ? Dr : "") : s([s9e(r) ? jg : "", a([l(), mE(e, t, n)]), u()]);
|
|
60398
60398
|
}
|
|
@@ -60613,7 +60613,7 @@ function YEe(e, t, n) {
|
|
|
60613
60613
|
let { node: r } = e;
|
|
60614
60614
|
switch (r.type) {
|
|
60615
60615
|
case "front-matter":
|
|
60616
|
-
return
|
|
60616
|
+
return As(r.raw);
|
|
60617
60617
|
case "root":
|
|
60618
60618
|
return t.__onHtmlRoot && t.__onHtmlRoot(r), [jr(mE(e, t, n)), Yn];
|
|
60619
60619
|
case "element":
|
|
@@ -60641,7 +60641,7 @@ function YEe(e, t, n) {
|
|
|
60641
60641
|
case "text": {
|
|
60642
60642
|
if (r.parent.type === "interpolation") {
|
|
60643
60643
|
let a = /\n[^\S\n]*$/u, l = a.test(r.value), u = l ? r.value.replace(a, "") : r.value;
|
|
60644
|
-
return [
|
|
60644
|
+
return [As(u), l ? Yn : ""];
|
|
60645
60645
|
}
|
|
60646
60646
|
let o = Cd(r, t), i = iV(r), s = kd(r, t);
|
|
60647
60647
|
return i[0] = [o, i[0]], i.push([i.pop(), s]), Wq(i);
|
|
@@ -60649,11 +60649,11 @@ function YEe(e, t, n) {
|
|
|
60649
60649
|
case "docType":
|
|
60650
60650
|
return [jr([Tf(r, t), " ", Oi(!1, r.value.replace(/^html\b/iu, "html"), /\s+/gu, " ")]), Sf(r, t)];
|
|
60651
60651
|
case "comment":
|
|
60652
|
-
return [Cd(r, t),
|
|
60652
|
+
return [Cd(r, t), As(t.originalText.slice(Bg(r), D3(r))), kd(r, t)];
|
|
60653
60653
|
case "attribute": {
|
|
60654
60654
|
if (r.value === null) return r.rawName;
|
|
60655
60655
|
let o = oV(r.value), i = w8e(o, '"');
|
|
60656
|
-
return [r.rawName, "=", i,
|
|
60656
|
+
return [r.rawName, "=", i, As(i === '"' ? Oi(!1, o, '"', """) : Oi(!1, o, "'", "'")), i];
|
|
60657
60657
|
}
|
|
60658
60658
|
case "cdata":
|
|
60659
60659
|
default:
|
|
@@ -60682,10 +60682,10 @@ var EN;
|
|
|
60682
60682
|
(function(e) {
|
|
60683
60683
|
e[e.Error = 0] = "Error", e[e.Warning = 1] = "Warning", e[e.Ignore = 2] = "Ignore";
|
|
60684
60684
|
})(EN || (EN = {}));
|
|
60685
|
-
var
|
|
60685
|
+
var ws;
|
|
60686
60686
|
(function(e) {
|
|
60687
60687
|
e[e.RAW_TEXT = 0] = "RAW_TEXT", e[e.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", e[e.PARSABLE_DATA = 2] = "PARSABLE_DATA";
|
|
60688
|
-
})(
|
|
60688
|
+
})(ws || (ws = {}));
|
|
60689
60689
|
function C3(e, t = !0) {
|
|
60690
60690
|
if (e[0] != ":") return [null, e];
|
|
60691
60691
|
let n = e.indexOf(":", 1);
|
|
@@ -60835,7 +60835,7 @@ function u7e(e) {
|
|
|
60835
60835
|
}
|
|
60836
60836
|
}
|
|
60837
60837
|
var Ut = class {
|
|
60838
|
-
constructor({ closedByChildren: e, implicitNamespacePrefix: t, contentType: n =
|
|
60838
|
+
constructor({ closedByChildren: e, implicitNamespacePrefix: t, contentType: n = ws.PARSABLE_DATA, closedByParent: r = !1, isVoid: o = !1, ignoreFirstLf: i = !1, preventNamespaceInheritance: s = !1, canSelfClose: a = !1 } = {}) {
|
|
60839
60839
|
this.closedByChildren = {}, this.closedByParent = !1, e && e.length > 0 && e.forEach((l) => this.closedByChildren[l] = !0), this.isVoid = o, this.closedByParent = r || o, this.implicitNamespacePrefix = t || null, this.contentType = n, this.ignoreFirstLf = i, this.preventNamespaceInheritance = s, this.canSelfClose = a ?? o;
|
|
60840
60840
|
}
|
|
60841
60841
|
isClosedByChild(e) {
|
|
@@ -60846,7 +60846,7 @@ var Ut = class {
|
|
|
60846
60846
|
}
|
|
60847
60847
|
}, SN, T0;
|
|
60848
60848
|
function MD(e) {
|
|
60849
|
-
return T0 || (SN = new Ut({ canSelfClose: !0 }), T0 = Object.assign(/* @__PURE__ */ Object.create(null), { base: new Ut({ isVoid: !0 }), meta: new Ut({ isVoid: !0 }), area: new Ut({ isVoid: !0 }), embed: new Ut({ isVoid: !0 }), link: new Ut({ isVoid: !0 }), img: new Ut({ isVoid: !0 }), input: new Ut({ isVoid: !0 }), param: new Ut({ isVoid: !0 }), hr: new Ut({ isVoid: !0 }), br: new Ut({ isVoid: !0 }), source: new Ut({ isVoid: !0 }), track: new Ut({ isVoid: !0 }), wbr: new Ut({ isVoid: !0 }), p: new Ut({ closedByChildren: ["address", "article", "aside", "blockquote", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "main", "nav", "ol", "p", "pre", "section", "table", "ul"], closedByParent: !0 }), thead: new Ut({ closedByChildren: ["tbody", "tfoot"] }), tbody: new Ut({ closedByChildren: ["tbody", "tfoot"], closedByParent: !0 }), tfoot: new Ut({ closedByChildren: ["tbody"], closedByParent: !0 }), tr: new Ut({ closedByChildren: ["tr"], closedByParent: !0 }), td: new Ut({ closedByChildren: ["td", "th"], closedByParent: !0 }), th: new Ut({ closedByChildren: ["td", "th"], closedByParent: !0 }), col: new Ut({ isVoid: !0 }), svg: new Ut({ implicitNamespacePrefix: "svg" }), foreignObject: new Ut({ implicitNamespacePrefix: "svg", preventNamespaceInheritance: !0 }), math: new Ut({ implicitNamespacePrefix: "math" }), li: new Ut({ closedByChildren: ["li"], closedByParent: !0 }), dt: new Ut({ closedByChildren: ["dt", "dd"] }), dd: new Ut({ closedByChildren: ["dt", "dd"], closedByParent: !0 }), rb: new Ut({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rt: new Ut({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rtc: new Ut({ closedByChildren: ["rb", "rtc", "rp"], closedByParent: !0 }), rp: new Ut({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), optgroup: new Ut({ closedByChildren: ["optgroup"], closedByParent: !0 }), option: new Ut({ closedByChildren: ["option", "optgroup"], closedByParent: !0 }), pre: new Ut({ ignoreFirstLf: !0 }), listing: new Ut({ ignoreFirstLf: !0 }), style: new Ut({ contentType:
|
|
60849
|
+
return T0 || (SN = new Ut({ canSelfClose: !0 }), T0 = Object.assign(/* @__PURE__ */ Object.create(null), { base: new Ut({ isVoid: !0 }), meta: new Ut({ isVoid: !0 }), area: new Ut({ isVoid: !0 }), embed: new Ut({ isVoid: !0 }), link: new Ut({ isVoid: !0 }), img: new Ut({ isVoid: !0 }), input: new Ut({ isVoid: !0 }), param: new Ut({ isVoid: !0 }), hr: new Ut({ isVoid: !0 }), br: new Ut({ isVoid: !0 }), source: new Ut({ isVoid: !0 }), track: new Ut({ isVoid: !0 }), wbr: new Ut({ isVoid: !0 }), p: new Ut({ closedByChildren: ["address", "article", "aside", "blockquote", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "main", "nav", "ol", "p", "pre", "section", "table", "ul"], closedByParent: !0 }), thead: new Ut({ closedByChildren: ["tbody", "tfoot"] }), tbody: new Ut({ closedByChildren: ["tbody", "tfoot"], closedByParent: !0 }), tfoot: new Ut({ closedByChildren: ["tbody"], closedByParent: !0 }), tr: new Ut({ closedByChildren: ["tr"], closedByParent: !0 }), td: new Ut({ closedByChildren: ["td", "th"], closedByParent: !0 }), th: new Ut({ closedByChildren: ["td", "th"], closedByParent: !0 }), col: new Ut({ isVoid: !0 }), svg: new Ut({ implicitNamespacePrefix: "svg" }), foreignObject: new Ut({ implicitNamespacePrefix: "svg", preventNamespaceInheritance: !0 }), math: new Ut({ implicitNamespacePrefix: "math" }), li: new Ut({ closedByChildren: ["li"], closedByParent: !0 }), dt: new Ut({ closedByChildren: ["dt", "dd"] }), dd: new Ut({ closedByChildren: ["dt", "dd"], closedByParent: !0 }), rb: new Ut({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rt: new Ut({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rtc: new Ut({ closedByChildren: ["rb", "rtc", "rp"], closedByParent: !0 }), rp: new Ut({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), optgroup: new Ut({ closedByChildren: ["optgroup"], closedByParent: !0 }), option: new Ut({ closedByChildren: ["option", "optgroup"], closedByParent: !0 }), pre: new Ut({ ignoreFirstLf: !0 }), listing: new Ut({ ignoreFirstLf: !0 }), style: new Ut({ contentType: ws.RAW_TEXT }), script: new Ut({ contentType: ws.RAW_TEXT }), title: new Ut({ contentType: { default: ws.ESCAPABLE_RAW_TEXT, svg: ws.PARSABLE_DATA } }), textarea: new Ut({ contentType: ws.ESCAPABLE_RAW_TEXT, ignoreFirstLf: !0 }) }), new l7e().allKnownElementNames().forEach((t) => {
|
|
60850
60850
|
!T0[t] && V2(t) === null && (T0[t] = new Ut({ canSelfClose: !1 }));
|
|
60851
60851
|
})), T0[e] ?? SN;
|
|
60852
60852
|
}
|
|
@@ -61282,7 +61282,7 @@ var jF = class {
|
|
|
61282
61282
|
}
|
|
61283
61283
|
if (this._canSelfClose && this.tokens[this.tokens.length - 1].type === 2) return;
|
|
61284
61284
|
let i = this._getTagContentType(t, n, this._fullNameStack.length > 0, o);
|
|
61285
|
-
this._handleFullNameStackForTagOpen(n, t), i ===
|
|
61285
|
+
this._handleFullNameStackForTagOpen(n, t), i === ws.RAW_TEXT ? this._consumeRawTextWithTagClose(n, t, !1) : i === ws.ESCAPABLE_RAW_TEXT && this._consumeRawTextWithTagClose(n, t, !0);
|
|
61286
61286
|
}
|
|
61287
61287
|
_consumeRawTextWithTagClose(e, t, n) {
|
|
61288
61288
|
this._consumeRawText(n, () => !this._attemptCharCode(60) || !this._attemptCharCode(47) || (this._attemptCharCodeUntilFn(vr), !this._attemptStrCaseInsensitive(e ? `${e}:${t}` : t)) ? !1 : (this._attemptCharCodeUntilFn(vr), this._attemptCharCode(62))), this._beginToken(3), this._requireCharCodeUntilFn((r) => r === 62, 3), this._cursor.advance(), this._endToken([e, t]), this._handleFullNameStackForTagClose(e, t);
|
|
@@ -61976,7 +61976,7 @@ function tCe(e) {
|
|
|
61976
61976
|
(e.type === "plural" || e.type === "select") && (e.clause = e.type, e.type = "angularIcuExpression"), e.type === "expansionCase" && (e.type = "angularIcuCase");
|
|
61977
61977
|
}
|
|
61978
61978
|
function EV(e, t, n) {
|
|
61979
|
-
let { name: r, canSelfClose: o = !0, normalizeTagName: i = !1, normalizeAttributeName: s = !1, allowHtmComponentClosingTags: a = !1, isTagNameCaseSensitive: l = !1, shouldParseAsRawText: u } = t, { rootNodes: c, errors: d } = UN(e, { canSelfClose: o, allowHtmComponentClosingTags: a, isTagNameCaseSensitive: l, getTagContentType: u ? (...y) => u(...y) ?
|
|
61979
|
+
let { name: r, canSelfClose: o = !0, normalizeTagName: i = !1, normalizeAttributeName: s = !1, allowHtmComponentClosingTags: a = !1, isTagNameCaseSensitive: l = !1, shouldParseAsRawText: u } = t, { rootNodes: c, errors: d } = UN(e, { canSelfClose: o, allowHtmComponentClosingTags: a, isTagNameCaseSensitive: l, getTagContentType: u ? (...y) => u(...y) ? ws.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: r === "angular" ? !0 : void 0, tokenizeAngularLetDeclaration: r === "angular" ? !0 : void 0 });
|
|
61980
61980
|
if (r === "vue") {
|
|
61981
61981
|
if (c.some((D) => D.type === "docType" && D.value === "html" || D.type === "element" && D.name.toLowerCase() === "html")) return EV(e, vE, n);
|
|
61982
61982
|
let y, x = () => y ?? (y = UN(e, { canSelfClose: o, allowHtmComponentClosingTags: a, isTagNameCaseSensitive: l })), v = (D) => x().rootNodes.find(({ startSourceSpan: w }) => w && w.start.offset === D.startSourceSpan.start.offset) ?? D;
|
|
@@ -62801,7 +62801,7 @@ function L1(e, t, n) {
|
|
|
62801
62801
|
function SG(e, t) {
|
|
62802
62802
|
return L1(e, _d(t));
|
|
62803
62803
|
}
|
|
62804
|
-
function
|
|
62804
|
+
function Us(e, t, n) {
|
|
62805
62805
|
t = Ug(t, n);
|
|
62806
62806
|
var r, o;
|
|
62807
62807
|
if (Li(e))
|
|
@@ -62839,7 +62839,7 @@ function TG(e) {
|
|
|
62839
62839
|
const Kp = TG(1), Ly = TG(-1);
|
|
62840
62840
|
function Qu(e, t, n) {
|
|
62841
62841
|
var r = [];
|
|
62842
|
-
return t = gi(t, n),
|
|
62842
|
+
return t = gi(t, n), Us(e, function(o, i, s) {
|
|
62843
62843
|
t(o, i, s) && r.push(o);
|
|
62844
62844
|
}), r;
|
|
62845
62845
|
}
|
|
@@ -62889,7 +62889,7 @@ function ZE(e, t, n) {
|
|
|
62889
62889
|
for (var a = 0, l = e.length; a < l; a++)
|
|
62890
62890
|
i = e[a], i != null && i > r && (r = i);
|
|
62891
62891
|
} else
|
|
62892
|
-
t = gi(t, n),
|
|
62892
|
+
t = gi(t, n), Us(e, function(u, c, d) {
|
|
62893
62893
|
s = t(u, c, d), (s > o || s === -1 / 0 && r === -1 / 0) && (r = u, o = s);
|
|
62894
62894
|
});
|
|
62895
62895
|
return r;
|
|
@@ -62901,7 +62901,7 @@ function MG(e, t, n) {
|
|
|
62901
62901
|
for (var a = 0, l = e.length; a < l; a++)
|
|
62902
62902
|
i = e[a], i != null && i < r && (r = i);
|
|
62903
62903
|
} else
|
|
62904
|
-
t = gi(t, n),
|
|
62904
|
+
t = gi(t, n), Us(e, function(u, c, d) {
|
|
62905
62905
|
s = t(u, c, d), (s < o || s === 1 / 0 && r === 1 / 0) && (r = u, o = s);
|
|
62906
62906
|
});
|
|
62907
62907
|
return r;
|
|
@@ -62944,7 +62944,7 @@ function RG(e, t, n) {
|
|
|
62944
62944
|
function R3(e, t) {
|
|
62945
62945
|
return function(n, r, o) {
|
|
62946
62946
|
var i = t ? [[], []] : {};
|
|
62947
|
-
return r = gi(r, o),
|
|
62947
|
+
return r = gi(r, o), Us(n, function(s, a) {
|
|
62948
62948
|
var l = r(s, a, n);
|
|
62949
62949
|
e(i, s, l);
|
|
62950
62950
|
}), i;
|
|
@@ -63055,7 +63055,7 @@ function r7(e, t) {
|
|
|
63055
63055
|
return e._chain ? Fn(t).chain() : t;
|
|
63056
63056
|
}
|
|
63057
63057
|
function o7(e) {
|
|
63058
|
-
return
|
|
63058
|
+
return Us(I1(e), function(t) {
|
|
63059
63059
|
var n = Fn[t] = e[t];
|
|
63060
63060
|
Fn.prototype[t] = function() {
|
|
63061
63061
|
var r = [this._wrapped];
|
|
@@ -63063,14 +63063,14 @@ function o7(e) {
|
|
|
63063
63063
|
};
|
|
63064
63064
|
}), Fn;
|
|
63065
63065
|
}
|
|
63066
|
-
|
|
63066
|
+
Us(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function(e) {
|
|
63067
63067
|
var t = _3[e];
|
|
63068
63068
|
Fn.prototype[e] = function() {
|
|
63069
63069
|
var n = this._wrapped;
|
|
63070
63070
|
return n != null && (t.apply(n, arguments), (e === "shift" || e === "splice") && n.length === 0 && delete n[0]), r7(this, n);
|
|
63071
63071
|
};
|
|
63072
63072
|
});
|
|
63073
|
-
|
|
63073
|
+
Us(["concat", "join", "slice"], function(e) {
|
|
63074
63074
|
var t = _3[e];
|
|
63075
63075
|
Fn.prototype[e] = function() {
|
|
63076
63076
|
var n = this._wrapped;
|
|
@@ -63106,7 +63106,7 @@ const UCe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
63106
63106
|
detect: L1,
|
|
63107
63107
|
difference: n7,
|
|
63108
63108
|
drop: ud,
|
|
63109
|
-
each:
|
|
63109
|
+
each: Us,
|
|
63110
63110
|
escape: uG,
|
|
63111
63111
|
every: Uy,
|
|
63112
63112
|
extend: LE,
|
|
@@ -63121,7 +63121,7 @@ const UCe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
63121
63121
|
flatten: qG,
|
|
63122
63122
|
foldl: Kp,
|
|
63123
63123
|
foldr: Ly,
|
|
63124
|
-
forEach:
|
|
63124
|
+
forEach: Us,
|
|
63125
63125
|
functions: I1,
|
|
63126
63126
|
get: $E,
|
|
63127
63127
|
groupBy: IG,
|
|
@@ -63257,7 +63257,7 @@ const PCe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
63257
63257
|
detect: L1,
|
|
63258
63258
|
difference: n7,
|
|
63259
63259
|
drop: ud,
|
|
63260
|
-
each:
|
|
63260
|
+
each: Us,
|
|
63261
63261
|
escape: uG,
|
|
63262
63262
|
every: Uy,
|
|
63263
63263
|
extend: LE,
|
|
@@ -63272,7 +63272,7 @@ const PCe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
63272
63272
|
flatten: qG,
|
|
63273
63273
|
foldl: Kp,
|
|
63274
63274
|
foldr: Ly,
|
|
63275
|
-
forEach:
|
|
63275
|
+
forEach: Us,
|
|
63276
63276
|
functions: I1,
|
|
63277
63277
|
get: $E,
|
|
63278
63278
|
groupBy: IG,
|
|
@@ -77362,7 +77362,7 @@ function yY(e) {
|
|
|
77362
77362
|
return (e.children || []).map(yY).join("") + t;
|
|
77363
77363
|
}
|
|
77364
77364
|
bY.convertElementToRawText = yY;
|
|
77365
|
-
var lv = {},
|
|
77365
|
+
var lv = {}, Vs = {}, xY = {}, vY = { exports: {} }, Th = vY.exports = function(e, t) {
|
|
77366
77366
|
this._tokens = e, this._startIndex = t || 0;
|
|
77367
77367
|
};
|
|
77368
77368
|
Th.prototype.head = function() {
|
|
@@ -77976,15 +77976,15 @@ function fTe(e) {
|
|
|
77976
77976
|
tokenise: t
|
|
77977
77977
|
};
|
|
77978
77978
|
}
|
|
77979
|
-
|
|
77980
|
-
|
|
77981
|
-
|
|
77982
|
-
|
|
77983
|
-
|
|
77984
|
-
|
|
77985
|
-
|
|
77986
|
-
|
|
77987
|
-
|
|
77979
|
+
Vs.Parser = xY.Parser;
|
|
77980
|
+
Vs.rules = M7;
|
|
77981
|
+
Vs.errors = R7;
|
|
77982
|
+
Vs.results = O7;
|
|
77983
|
+
Vs.StringSource = kY;
|
|
77984
|
+
Vs.Token = EY;
|
|
77985
|
+
Vs.bottomUp = CY;
|
|
77986
|
+
Vs.RegexTokeniser = _Y.RegexTokeniser;
|
|
77987
|
+
Vs.rule = function(e) {
|
|
77988
77988
|
var t;
|
|
77989
77989
|
return function(n) {
|
|
77990
77990
|
return t || (t = e()), t(n);
|
|
@@ -77994,35 +77994,35 @@ var po = {};
|
|
|
77994
77994
|
po.paragraph = gTe;
|
|
77995
77995
|
po.run = mTe;
|
|
77996
77996
|
po.table = bTe;
|
|
77997
|
-
po.bold = new
|
|
77998
|
-
po.italic = new
|
|
77999
|
-
po.underline = new
|
|
78000
|
-
po.strikethrough = new
|
|
78001
|
-
po.allCaps = new
|
|
78002
|
-
po.smallCaps = new
|
|
77997
|
+
po.bold = new Gs("bold");
|
|
77998
|
+
po.italic = new Gs("italic");
|
|
77999
|
+
po.underline = new Gs("underline");
|
|
78000
|
+
po.strikethrough = new Gs("strikethrough");
|
|
78001
|
+
po.allCaps = new Gs("allCaps");
|
|
78002
|
+
po.smallCaps = new Gs("smallCaps");
|
|
78003
78003
|
po.highlight = yTe;
|
|
78004
|
-
po.commentReference = new
|
|
78004
|
+
po.commentReference = new Gs("commentReference");
|
|
78005
78005
|
po.lineBreak = new cv({ breakType: "line" });
|
|
78006
78006
|
po.pageBreak = new cv({ breakType: "page" });
|
|
78007
78007
|
po.columnBreak = new cv({ breakType: "column" });
|
|
78008
78008
|
po.equalTo = vTe;
|
|
78009
78009
|
po.startsWith = FTe;
|
|
78010
78010
|
function gTe(e) {
|
|
78011
|
-
return new
|
|
78011
|
+
return new Gs("paragraph", e);
|
|
78012
78012
|
}
|
|
78013
78013
|
function mTe(e) {
|
|
78014
|
-
return new
|
|
78014
|
+
return new Gs("run", e);
|
|
78015
78015
|
}
|
|
78016
78016
|
function bTe(e) {
|
|
78017
|
-
return new
|
|
78017
|
+
return new Gs("table", e);
|
|
78018
78018
|
}
|
|
78019
78019
|
function yTe(e) {
|
|
78020
78020
|
return new AY(e);
|
|
78021
78021
|
}
|
|
78022
|
-
function
|
|
78022
|
+
function Gs(e, t) {
|
|
78023
78023
|
t = t || {}, this._elementType = e, this._styleId = t.styleId, this._styleName = t.styleName, t.list && (this._listIndex = t.list.levelIndex, this._listIsOrdered = t.list.isOrdered);
|
|
78024
78024
|
}
|
|
78025
|
-
|
|
78025
|
+
Gs.prototype.matches = function(e) {
|
|
78026
78026
|
return e.type === this._elementType && (this._styleId === void 0 || e.styleId === this._styleId) && (this._styleName === void 0 || e.styleName && this._styleName.operator(this._styleName.operand, e.styleName)) && (this._listIndex === void 0 || xTe(e, this._listIndex, this._listIsOrdered)) && (this._breakType === void 0 || this._breakType === e.breakType);
|
|
78027
78027
|
};
|
|
78028
78028
|
function AY(e) {
|
|
@@ -78058,7 +78058,7 @@ function wTe(e, t) {
|
|
|
78058
78058
|
function DTe(e, t) {
|
|
78059
78059
|
return t.toUpperCase().indexOf(e.toUpperCase()) === 0;
|
|
78060
78060
|
}
|
|
78061
|
-
var SY = {}, kTe =
|
|
78061
|
+
var SY = {}, kTe = Vs, ETe = kTe.RegexTokeniser;
|
|
78062
78062
|
SY.tokenise = CTe;
|
|
78063
78063
|
var RM = "'((?:\\\\.|[^'])*)";
|
|
78064
78064
|
function CTe(e) {
|
|
@@ -78083,7 +78083,7 @@ function CTe(e) {
|
|
|
78083
78083
|
]);
|
|
78084
78084
|
return n.tokenise(e);
|
|
78085
78085
|
}
|
|
78086
|
-
var _Te = xr, ze =
|
|
78086
|
+
var _Te = xr, ze = Vs, fo = po, Y2 = av(), ATe = SY.tokenise, $6 = Ui;
|
|
78087
78087
|
lv.readHtmlPath = NTe;
|
|
78088
78088
|
lv.readDocumentMatcher = jTe;
|
|
78089
78089
|
lv.readStyle = STe;
|
|
@@ -78595,7 +78595,7 @@ class ei {
|
|
|
78595
78595
|
return n ? !t || !t.loc || !n.loc || t.loc.lexer !== n.loc.lexer ? null : new ei(t.loc.lexer, t.loc.start, n.loc.end) : t && t.loc;
|
|
78596
78596
|
}
|
|
78597
78597
|
}
|
|
78598
|
-
let
|
|
78598
|
+
let Ns = class IY {
|
|
78599
78599
|
// don't expand the token
|
|
78600
78600
|
// used in \noexpand
|
|
78601
78601
|
constructor(t, n) {
|
|
@@ -82889,7 +82889,7 @@ var e2 = [
|
|
|
82889
82889
|
value: t,
|
|
82890
82890
|
metrics: $7(t, n, r)
|
|
82891
82891
|
};
|
|
82892
|
-
},
|
|
82892
|
+
}, vs = function(t, n, r, o, i) {
|
|
82893
82893
|
var s = gv(t, n, r), a = s.metrics;
|
|
82894
82894
|
t = s.value;
|
|
82895
82895
|
var l;
|
|
@@ -82905,7 +82905,7 @@ var e2 = [
|
|
|
82905
82905
|
}
|
|
82906
82906
|
return l;
|
|
82907
82907
|
}, Kje = function(t, n, r, o) {
|
|
82908
|
-
return o === void 0 && (o = []), r.font === "boldsymbol" && gv(t, "Main-Bold", n).metrics ?
|
|
82908
|
+
return o === void 0 && (o = []), r.font === "boldsymbol" && gv(t, "Main-Bold", n).metrics ? vs(t, "Main-Bold", n, r, o.concat(["mathbf"])) : t === "\\" || Pn[n][t].font === "main" ? vs(t, "Main-Regular", n, r, o) : vs(t, "AMS-Regular", n, r, o.concat(["amsrm"]));
|
|
82909
82909
|
}, Yje = function(t, n, r, o, i) {
|
|
82910
82910
|
return i !== "textord" && gv(t, "Math-BoldItalic", n).metrics ? {
|
|
82911
82911
|
fontName: "Math-BoldItalic",
|
|
@@ -82917,7 +82917,7 @@ var e2 = [
|
|
|
82917
82917
|
}, Xje = function(t, n, r) {
|
|
82918
82918
|
var o = t.mode, i = t.text, s = ["mord"], a = o === "math" || o === "text" && n.font, l = a ? n.font : n.fontFamily, u = "", c = "";
|
|
82919
82919
|
if (i.charCodeAt(0) === 55349 && ([u, c] = Gje(i, o)), u.length > 0)
|
|
82920
|
-
return
|
|
82920
|
+
return vs(i, u, o, n, s.concat(c));
|
|
82921
82921
|
if (l) {
|
|
82922
82922
|
var d, p;
|
|
82923
82923
|
if (l === "boldsymbol") {
|
|
@@ -82925,26 +82925,26 @@ var e2 = [
|
|
|
82925
82925
|
d = h.fontName, p = [h.fontClass];
|
|
82926
82926
|
} else a ? (d = GY[l].fontName, p = [l]) : (d = t2(l, n.fontWeight, n.fontShape), p = [l, n.fontWeight, n.fontShape]);
|
|
82927
82927
|
if (gv(i, d, o).metrics)
|
|
82928
|
-
return
|
|
82928
|
+
return vs(i, d, o, n, s.concat(p));
|
|
82929
82929
|
if (WY.hasOwnProperty(i) && d.slice(0, 10) === "Typewriter") {
|
|
82930
82930
|
for (var f = [], g = 0; g < i.length; g++)
|
|
82931
|
-
f.push(
|
|
82931
|
+
f.push(vs(i[g], d, o, n, s.concat(p)));
|
|
82932
82932
|
return VY(f);
|
|
82933
82933
|
}
|
|
82934
82934
|
}
|
|
82935
82935
|
if (r === "mathord")
|
|
82936
|
-
return
|
|
82936
|
+
return vs(i, "Math-Italic", o, n, s.concat(["mathnormal"]));
|
|
82937
82937
|
if (r === "textord") {
|
|
82938
82938
|
var m = Pn[o][i] && Pn[o][i].font;
|
|
82939
82939
|
if (m === "ams") {
|
|
82940
82940
|
var b = t2("amsrm", n.fontWeight, n.fontShape);
|
|
82941
|
-
return
|
|
82941
|
+
return vs(i, b, o, n, s.concat("amsrm", n.fontWeight, n.fontShape));
|
|
82942
82942
|
} else if (m === "main" || !m) {
|
|
82943
82943
|
var y = t2("textrm", n.fontWeight, n.fontShape);
|
|
82944
|
-
return
|
|
82944
|
+
return vs(i, y, o, n, s.concat(n.fontWeight, n.fontShape));
|
|
82945
82945
|
} else {
|
|
82946
82946
|
var x = t2(m, n.fontWeight, n.fontShape);
|
|
82947
|
-
return
|
|
82947
|
+
return vs(i, x, o, n, s.concat(x, n.fontWeight, n.fontShape));
|
|
82948
82948
|
}
|
|
82949
82949
|
} else
|
|
82950
82950
|
throw new Error("unexpected type: " + r + " in makeOrd");
|
|
@@ -83161,7 +83161,7 @@ var e2 = [
|
|
|
83161
83161
|
return l.height = i, l.style.height = Ze(i), l.style.width = Ze(o), l;
|
|
83162
83162
|
}, Ae = {
|
|
83163
83163
|
fontMap: GY,
|
|
83164
|
-
makeSymbol:
|
|
83164
|
+
makeSymbol: vs,
|
|
83165
83165
|
mathsym: Kje,
|
|
83166
83166
|
makeSpan: Yo,
|
|
83167
83167
|
makeSvgSpan: qY,
|
|
@@ -85396,7 +85396,7 @@ function xc(e, t, n) {
|
|
|
85396
85396
|
l && e.gullet.macros.set("\\@eqnsw", "1", !0);
|
|
85397
85397
|
}
|
|
85398
85398
|
function v() {
|
|
85399
|
-
y && (e.gullet.macros.get("\\df@tag") ? (y.push(e.subparse([new
|
|
85399
|
+
y && (e.gullet.macros.get("\\df@tag") ? (y.push(e.subparse([new Ns("\\df@tag")])), e.gullet.macros.set("\\df@tag", void 0, !0)) : y.push(!!l && e.gullet.macros.get("\\@eqnsw") === "1"));
|
|
85400
85400
|
}
|
|
85401
85401
|
for (x(), b.push(tO(e)); ; ) {
|
|
85402
85402
|
var D = e.parseExpression(!1, u ? "\\end" : "\\\\");
|
|
@@ -88073,17 +88073,17 @@ let fO = class {
|
|
|
88073
88073
|
lex() {
|
|
88074
88074
|
var t = this.input, n = this.tokenRegex.lastIndex;
|
|
88075
88075
|
if (n === t.length)
|
|
88076
|
-
return new
|
|
88076
|
+
return new Ns("EOF", new ei(this, n, n));
|
|
88077
88077
|
var r = this.tokenRegex.exec(t);
|
|
88078
88078
|
if (r === null || r.index !== n)
|
|
88079
|
-
throw new Ve("Unexpected character: '" + t[n] + "'", new
|
|
88079
|
+
throw new Ve("Unexpected character: '" + t[n] + "'", new Ns(t[n], new ei(this, n, n + 1)));
|
|
88080
88080
|
var o = r[6] || r[3] || (r[2] ? "\\ " : " ");
|
|
88081
88081
|
if (this.catcodes[o] === 14) {
|
|
88082
88082
|
var i = t.indexOf(`
|
|
88083
88083
|
`, this.tokenRegex.lastIndex);
|
|
88084
88084
|
return i === -1 ? (this.tokenRegex.lastIndex = t.length, this.settings.reportNonstrict("commentAtEnd", "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")) : this.tokenRegex.lastIndex = i + 1, this.lex();
|
|
88085
88085
|
}
|
|
88086
|
-
return new
|
|
88086
|
+
return new Ns(o, new ei(this, n, this.tokenRegex.lastIndex));
|
|
88087
88087
|
}
|
|
88088
88088
|
};
|
|
88089
88089
|
class tBe {
|
|
@@ -88829,7 +88829,7 @@ class rBe {
|
|
|
88829
88829
|
start: n,
|
|
88830
88830
|
end: r
|
|
88831
88831
|
} = this.consumeArg());
|
|
88832
|
-
return this.pushToken(new
|
|
88832
|
+
return this.pushToken(new Ns("EOF", r.loc)), this.pushTokens(o), new Ns("", ei.range(n, r));
|
|
88833
88833
|
}
|
|
88834
88834
|
/**
|
|
88835
88835
|
* Consume all following space tokens, without expansion.
|
|
@@ -88971,7 +88971,7 @@ class rBe {
|
|
|
88971
88971
|
* tokens, or return `undefined` if no such macro is defined.
|
|
88972
88972
|
*/
|
|
88973
88973
|
expandMacro(t) {
|
|
88974
|
-
return this.macros.has(t) ? this.expandTokens([new
|
|
88974
|
+
return this.macros.has(t) ? this.expandTokens([new Ns(t)]) : void 0;
|
|
88975
88975
|
}
|
|
88976
88976
|
/**
|
|
88977
88977
|
* Fully expand the given token stream and return the resulting list of
|
|
@@ -89589,7 +89589,7 @@ let jX = class NX {
|
|
|
89589
89589
|
*/
|
|
89590
89590
|
subparse(t) {
|
|
89591
89591
|
var n = this.nextToken;
|
|
89592
|
-
this.consume(), this.gullet.pushToken(new
|
|
89592
|
+
this.consume(), this.gullet.pushToken(new Ns("}")), this.gullet.pushTokens(t);
|
|
89593
89593
|
var r = this.parseExpression(!1);
|
|
89594
89594
|
return this.expect("}"), this.nextToken = n, r;
|
|
89595
89595
|
}
|
|
@@ -89731,11 +89731,11 @@ let jX = class NX {
|
|
|
89731
89731
|
};
|
|
89732
89732
|
} else if (i2[i.text]) {
|
|
89733
89733
|
var u = bO.test(i.text), c = [];
|
|
89734
|
-
for (c.push(new
|
|
89734
|
+
for (c.push(new Ns(i2[i.text])), this.consume(); ; ) {
|
|
89735
89735
|
var d = this.fetch().text;
|
|
89736
89736
|
if (!i2[d] || bO.test(d) !== u)
|
|
89737
89737
|
break;
|
|
89738
|
-
c.unshift(new
|
|
89738
|
+
c.unshift(new Ns(i2[d])), this.consume();
|
|
89739
89739
|
}
|
|
89740
89740
|
var p = this.subparse(c);
|
|
89741
89741
|
u ? o = {
|
|
@@ -90122,7 +90122,7 @@ var oC = function(t, n) {
|
|
|
90122
90122
|
type: "tag",
|
|
90123
90123
|
mode: "text",
|
|
90124
90124
|
body: o,
|
|
90125
|
-
tag: r.subparse([new
|
|
90125
|
+
tag: r.subparse([new Ns("\\df@tag")])
|
|
90126
90126
|
}];
|
|
90127
90127
|
}
|
|
90128
90128
|
return o;
|
|
@@ -90338,11 +90338,11 @@ vv.default = {
|
|
|
90338
90338
|
acsc: 1,
|
|
90339
90339
|
acot: 1
|
|
90340
90340
|
};
|
|
90341
|
-
var
|
|
90342
|
-
Object.defineProperty(
|
|
90341
|
+
var Ks = {};
|
|
90342
|
+
Object.defineProperty(Ks, "__esModule", {
|
|
90343
90343
|
value: !0
|
|
90344
90344
|
});
|
|
90345
|
-
var hBe =
|
|
90345
|
+
var hBe = Ks.fact = function(t) {
|
|
90346
90346
|
t = Math.round(t);
|
|
90347
90347
|
var n = 1;
|
|
90348
90348
|
if (t < 0)
|
|
@@ -90350,17 +90350,17 @@ var hBe = Ys.fact = function(t) {
|
|
|
90350
90350
|
for (t; t > 1; t--)
|
|
90351
90351
|
n *= t;
|
|
90352
90352
|
return n;
|
|
90353
|
-
}, fBe =
|
|
90353
|
+
}, fBe = Ks.frac = function(t, n) {
|
|
90354
90354
|
return t / n;
|
|
90355
|
-
}, gBe =
|
|
90355
|
+
}, gBe = Ks.logn = function(t, n) {
|
|
90356
90356
|
return Math.log(t) / Math.log(n);
|
|
90357
|
-
}, mBe =
|
|
90357
|
+
}, mBe = Ks.rootn = function(t, n) {
|
|
90358
90358
|
return Math.pow(t, 1 / n);
|
|
90359
|
-
}, bBe =
|
|
90359
|
+
}, bBe = Ks.sec = function(t) {
|
|
90360
90360
|
return 1 / Math.cos(t);
|
|
90361
|
-
}, yBe =
|
|
90361
|
+
}, yBe = Ks.csc = function(t) {
|
|
90362
90362
|
return 1 / Math.sin(t);
|
|
90363
|
-
}, xBe =
|
|
90363
|
+
}, xBe = Ks.cot = function(t) {
|
|
90364
90364
|
return 1 / Math.tan(t);
|
|
90365
90365
|
}, RX = { fact: hBe, frac: fBe, logn: gBe, rootn: mBe, sec: bBe, csc: yBe, cot: xBe }, o5 = !0, xO = !1, vO = void 0;
|
|
90366
90366
|
try {
|
|
@@ -90378,7 +90378,7 @@ try {
|
|
|
90378
90378
|
throw vO;
|
|
90379
90379
|
}
|
|
90380
90380
|
}
|
|
90381
|
-
|
|
90381
|
+
Ks.default = RX;
|
|
90382
90382
|
var aC = {};
|
|
90383
90383
|
Object.defineProperty(aC, "__esModule", {
|
|
90384
90384
|
value: !0
|
|
@@ -90430,7 +90430,7 @@ var DBe = /* @__PURE__ */ function() {
|
|
|
90430
90430
|
};
|
|
90431
90431
|
}();
|
|
90432
90432
|
sC.default = OBe;
|
|
90433
|
-
var EBe = Kg, ki = Fv(EBe), CBe = vv, _Be = Fv(CBe), ABe =
|
|
90433
|
+
var EBe = Kg, ki = Fv(EBe), CBe = vv, _Be = Fv(CBe), ABe = Ks, SBe = Fv(ABe), TBe = aC, jBe = Fv(TBe);
|
|
90434
90434
|
function Fv(e) {
|
|
90435
90435
|
return e && e.__esModule ? e : { default: e };
|
|
90436
90436
|
}
|
|
@@ -90747,7 +90747,7 @@ var HBe = /* @__PURE__ */ function() {
|
|
|
90747
90747
|
};
|
|
90748
90748
|
}();
|
|
90749
90749
|
lC.default = XBe;
|
|
90750
|
-
var WBe = uC, Kn = cC(WBe), qBe = Kg, ar = cC(qBe), VBe = vv, GBe = cC(VBe), KBe =
|
|
90750
|
+
var WBe = uC, Kn = cC(WBe), qBe = Kg, ar = cC(qBe), VBe = vv, GBe = cC(VBe), KBe = Ks;
|
|
90751
90751
|
function cC(e) {
|
|
90752
90752
|
return e && e.__esModule ? e : { default: e };
|
|
90753
90753
|
}
|
|
@@ -91543,7 +91543,7 @@ const fMe = (e, t) => new At({
|
|
|
91543
91543
|
};
|
|
91544
91544
|
},
|
|
91545
91545
|
addNodeView() {
|
|
91546
|
-
return
|
|
91546
|
+
return zs(
|
|
91547
91547
|
MH(
|
|
91548
91548
|
this.options.ipfsImageFetchFn,
|
|
91549
91549
|
this.options.fetchV1ImageFn
|
|
@@ -93371,7 +93371,7 @@ function wOe({
|
|
|
93371
93371
|
}
|
|
93372
93372
|
const DOe = xOe.extend({
|
|
93373
93373
|
addNodeView() {
|
|
93374
|
-
return
|
|
93374
|
+
return zs(wOe);
|
|
93375
93375
|
},
|
|
93376
93376
|
addAttributes() {
|
|
93377
93377
|
return {
|
|
@@ -167781,7 +167781,7 @@ const dIe = ({
|
|
|
167781
167781
|
];
|
|
167782
167782
|
},
|
|
167783
167783
|
addNodeView() {
|
|
167784
|
-
return
|
|
167784
|
+
return zs(vIe);
|
|
167785
167785
|
}
|
|
167786
167786
|
});
|
|
167787
167787
|
function EZ(e) {
|
|
@@ -169440,7 +169440,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
169440
169440
|
];
|
|
169441
169441
|
},
|
|
169442
169442
|
addNodeView() {
|
|
169443
|
-
return
|
|
169443
|
+
return zs(YIe);
|
|
169444
169444
|
},
|
|
169445
169445
|
addCommands() {
|
|
169446
169446
|
return {
|
|
@@ -170727,7 +170727,7 @@ function Jn(e) {
|
|
|
170727
170727
|
function WZ(e) {
|
|
170728
170728
|
return a0(e) ? e : [e];
|
|
170729
170729
|
}
|
|
170730
|
-
function
|
|
170730
|
+
function ys(e) {
|
|
170731
170731
|
return e === void 0 ? [] : WZ(e);
|
|
170732
170732
|
}
|
|
170733
170733
|
function rx(e, t, n) {
|
|
@@ -170911,7 +170911,7 @@ function pp(e, t) {
|
|
|
170911
170911
|
}
|
|
170912
170912
|
function ILe(e) {
|
|
170913
170913
|
if (!(e === void 0 || e === _Le))
|
|
170914
|
-
return
|
|
170914
|
+
return ys(e);
|
|
170915
170915
|
}
|
|
170916
170916
|
function LLe(e, t, n) {
|
|
170917
170917
|
if (!hr) {
|
|
@@ -171195,7 +171195,7 @@ function ox(e, t, n, r, o, i, s) {
|
|
|
171195
171195
|
return [];
|
|
171196
171196
|
var k = un(ox(e, t, l, r, [{
|
|
171197
171197
|
type: f,
|
|
171198
|
-
actions: Du(
|
|
171198
|
+
actions: Du(ys(w), e.options.actions)
|
|
171199
171199
|
}], i, s), 2), C = k[0], A = k[1];
|
|
171200
171200
|
return l = A, u == null || u.push(l), C;
|
|
171201
171201
|
}
|
|
@@ -171205,7 +171205,7 @@ function ox(e, t, n, r, o, i, s) {
|
|
|
171205
171205
|
return [];
|
|
171206
171206
|
var N = un(ox(e, t, l, r, [{
|
|
171207
171207
|
type: f,
|
|
171208
|
-
actions: Du(
|
|
171208
|
+
actions: Du(ys(w), e.options.actions)
|
|
171209
171209
|
}], i, s), 2), O = N[0], _ = N[1];
|
|
171210
171210
|
return l = _, u == null || u.push(l), O;
|
|
171211
171211
|
}
|
|
@@ -172592,11 +172592,11 @@ var Cp = "", dk = "#", L0 = "*", hp = {}, fp = function(e) {
|
|
|
172592
172592
|
l(this), this.history = this.config.history === !0 ? "shallow" : this.config.history || !1, this._transient = !!this.config.always || (this.config.on ? Array.isArray(this.config.on) ? this.config.on.some(function(u) {
|
|
172593
172593
|
var c = u.event;
|
|
172594
172594
|
return c === Cp;
|
|
172595
|
-
}) : Cp in this.config.on : !1), this.strict = !!this.config.strict, this.onEntry =
|
|
172595
|
+
}) : Cp in this.config.on : !1), this.strict = !!this.config.strict, this.onEntry = ys(this.config.entry || this.config.onEntry).map(function(u) {
|
|
172596
172596
|
return J1(u);
|
|
172597
|
-
}), this.onExit =
|
|
172597
|
+
}), this.onExit = ys(this.config.exit || this.config.onExit).map(function(u) {
|
|
172598
172598
|
return J1(u);
|
|
172599
|
-
}), this.meta = this.config.meta, this.doneData = this.type === "final" ? this.config.data : void 0, this.invoke =
|
|
172599
|
+
}), this.meta = this.config.meta, this.doneData = this.type === "final" ? this.config.data : void 0, this.invoke = ys(this.config.invoke).map(function(u, c) {
|
|
172600
172600
|
var d, p;
|
|
172601
172601
|
if (Nd(u)) {
|
|
172602
172602
|
var h = b2(i.id, c);
|
|
@@ -172625,9 +172625,9 @@ var Cp = "", dk = "#", L0 = "*", hp = {}, fp = function(e) {
|
|
|
172625
172625
|
src: f
|
|
172626
172626
|
}));
|
|
172627
172627
|
}
|
|
172628
|
-
}), this.activities =
|
|
172628
|
+
}), this.activities = ys(this.config.activities).concat(this.invoke).map(function(u) {
|
|
172629
172629
|
return _C(u);
|
|
172630
|
-
}), this.transition = this.transition.bind(this), this.tags =
|
|
172630
|
+
}), this.transition = this.transition.bind(this), this.tags = ys(this.config.tags);
|
|
172631
172631
|
}
|
|
172632
172632
|
return e.prototype._init = function() {
|
|
172633
172633
|
this.__cache.transitions || JZ(this).forEach(function(t) {
|
|
@@ -172738,7 +172738,7 @@ var Cp = "", dk = "#", L0 = "*", hp = {}, fp = function(e) {
|
|
|
172738
172738
|
var a = n[i], l = cn(a) ? {
|
|
172739
172739
|
target: a
|
|
172740
172740
|
} : a, u = isNaN(+i) ? i : +i, c = r(u, s);
|
|
172741
|
-
return
|
|
172741
|
+
return ys(l).map(function(d) {
|
|
172742
172742
|
return tt(tt({}, d), {
|
|
172743
172743
|
event: c,
|
|
172744
172744
|
delay: u
|
|
@@ -173359,7 +173359,7 @@ var Cp = "", dk = "#", L0 = "*", hp = {}, fp = function(e) {
|
|
|
173359
173359
|
var n = this, r = ILe(t.target), o = "internal" in t ? t.internal : r ? r.some(function(l) {
|
|
173360
173360
|
return cn(l) && l[0] === n.delimiter;
|
|
173361
173361
|
}) : !0, i = this.machine.options.guards, s = this.resolveTarget(r), a = tt(tt({}, t), {
|
|
173362
|
-
actions: Du(
|
|
173362
|
+
actions: Du(ys(t.actions)),
|
|
173363
173363
|
cond: VZ(t.cond, i),
|
|
173364
173364
|
target: s,
|
|
173365
173365
|
source: this,
|
|
@@ -173395,7 +173395,7 @@ var Cp = "", dk = "#", L0 = "*", hp = {}, fp = function(e) {
|
|
|
173395
173395
|
var x = [];
|
|
173396
173396
|
return y.onDone && x.push.apply(x, Wn([], un(pp(String(eb(y.id)), y.onDone)), !1)), y.onError && x.push.apply(x, Wn([], un(pp(String(nf(y.id)), y.onError)), !1)), x;
|
|
173397
173397
|
})), h = this.after, f = Jn(Wn(Wn(Wn(Wn([], un(d), !1), un(p), !1), un(o), !1), un(c), !1).map(function(y) {
|
|
173398
|
-
return
|
|
173398
|
+
return ys(y).map(function(x) {
|
|
173399
173399
|
return r.formatTransition(x);
|
|
173400
173400
|
});
|
|
173401
173401
|
}));
|
|
@@ -173906,7 +173906,7 @@ function rR(e) {
|
|
|
173906
173906
|
}
|
|
173907
173907
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
173908
173908
|
const ii = BigInt(0), Lo = BigInt(1), Kc = /* @__PURE__ */ BigInt(2), fJ = /* @__PURE__ */ BigInt(3), gJ = /* @__PURE__ */ BigInt(4), mJ = /* @__PURE__ */ BigInt(5), jUe = /* @__PURE__ */ BigInt(7), bJ = /* @__PURE__ */ BigInt(8), NUe = /* @__PURE__ */ BigInt(9), yJ = /* @__PURE__ */ BigInt(16);
|
|
173909
|
-
function
|
|
173909
|
+
function xs(e, t) {
|
|
173910
173910
|
const n = e % t;
|
|
173911
173911
|
return n >= ii ? n : t + n;
|
|
173912
173912
|
}
|
|
@@ -173921,14 +173921,14 @@ function oR(e, t) {
|
|
|
173921
173921
|
throw new Error("invert: expected non-zero number");
|
|
173922
173922
|
if (t <= ii)
|
|
173923
173923
|
throw new Error("invert: expected positive modulus, got " + t);
|
|
173924
|
-
let n =
|
|
173924
|
+
let n = xs(e, t), r = t, o = ii, i = Lo;
|
|
173925
173925
|
for (; n !== ii; ) {
|
|
173926
173926
|
const a = r / n, l = r % n, u = o - i * a;
|
|
173927
173927
|
r = n, n = l, o = i, i = u;
|
|
173928
173928
|
}
|
|
173929
173929
|
if (r !== Lo)
|
|
173930
173930
|
throw new Error("invert: does not exist");
|
|
173931
|
-
return
|
|
173931
|
+
return xs(o, t);
|
|
173932
173932
|
}
|
|
173933
173933
|
function BC(e, t, n) {
|
|
173934
173934
|
if (!e.eql(e.sqr(t), n))
|
|
@@ -174068,7 +174068,7 @@ function Zg(e, t, n = !1, r = {}) {
|
|
|
174068
174068
|
ZERO: ii,
|
|
174069
174069
|
ONE: Lo,
|
|
174070
174070
|
allowedLengths: a,
|
|
174071
|
-
create: (p) =>
|
|
174071
|
+
create: (p) => xs(p, e),
|
|
174072
174072
|
isValid: (p) => {
|
|
174073
174073
|
if (typeof p != "bigint")
|
|
174074
174074
|
throw new Error("invalid field element: expected bigint, got " + typeof p);
|
|
@@ -174078,14 +174078,14 @@ function Zg(e, t, n = !1, r = {}) {
|
|
|
174078
174078
|
// is valid and invertible
|
|
174079
174079
|
isValidNot0: (p) => !d.is0(p) && d.isValid(p),
|
|
174080
174080
|
isOdd: (p) => (p & Lo) === Lo,
|
|
174081
|
-
neg: (p) =>
|
|
174081
|
+
neg: (p) => xs(-p, e),
|
|
174082
174082
|
eql: (p, h) => p === h,
|
|
174083
|
-
sqr: (p) =>
|
|
174084
|
-
add: (p, h) =>
|
|
174085
|
-
sub: (p, h) =>
|
|
174086
|
-
mul: (p, h) =>
|
|
174083
|
+
sqr: (p) => xs(p * p, e),
|
|
174084
|
+
add: (p, h) => xs(p + h, e),
|
|
174085
|
+
sub: (p, h) => xs(p - h, e),
|
|
174086
|
+
mul: (p, h) => xs(p * h, e),
|
|
174087
174087
|
pow: (p, h) => LUe(d, p, h),
|
|
174088
|
-
div: (p, h) =>
|
|
174088
|
+
div: (p, h) => xs(p * oR(h, e), e),
|
|
174089
174089
|
// Same as above, but doesn't normalize
|
|
174090
174090
|
sqrN: (p) => p * p,
|
|
174091
174091
|
addN: (p, h) => p + h,
|
|
@@ -174104,7 +174104,7 @@ function Zg(e, t, n = !1, r = {}) {
|
|
|
174104
174104
|
if (p.length !== u)
|
|
174105
174105
|
throw new Error("Field.fromBytes: expected " + u + " bytes, got " + p.length);
|
|
174106
174106
|
let f = n ? dJ(p) : Cv(p);
|
|
174107
|
-
if (s && (f =
|
|
174107
|
+
if (s && (f = xs(f, e)), !h && !d.isValid(f))
|
|
174108
174108
|
throw new Error("invalid field element: outside of range 0..ORDER");
|
|
174109
174109
|
return f;
|
|
174110
174110
|
},
|
|
@@ -174130,7 +174130,7 @@ function UUe(e, t, n = !1) {
|
|
|
174130
174130
|
const r = e.length, o = DJ(t), i = kJ(t);
|
|
174131
174131
|
if (r < 16 || r < i || r > 1024)
|
|
174132
174132
|
throw new Error("expected " + i + "-1024 bytes of input, got " + r);
|
|
174133
|
-
const s = n ? dJ(e) : Cv(e), a =
|
|
174133
|
+
const s = n ? dJ(e) : Cv(e), a = xs(s, t - Lo) + Lo;
|
|
174134
174134
|
return n ? pJ(a, o) : jC(a, o);
|
|
174135
174135
|
}
|
|
174136
174136
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
@@ -175913,7 +175913,7 @@ const fR = MJ("utf8", "u", (e) => "u" + new TextDecoder("utf8").decode(e), (e) =
|
|
|
175913
175913
|
binary: E5,
|
|
175914
175914
|
...hR
|
|
175915
175915
|
};
|
|
175916
|
-
function
|
|
175916
|
+
function Ps(e, t = "utf8") {
|
|
175917
175917
|
const n = OJ[t];
|
|
175918
175918
|
if (!n)
|
|
175919
175919
|
throw new Error(`Unsupported encoding "${t}"`);
|
|
@@ -176842,7 +176842,7 @@ const RC = new Uint8Array([237, 1]), WJ = new Uint8Array([128, 36]), qJ = new Ui
|
|
|
176842
176842
|
function jv(e, t) {
|
|
176843
176843
|
if (!e.startsWith(vk))
|
|
176844
176844
|
throw new Error("Please use a base58-encoded DID formatted `did:key:z...`");
|
|
176845
|
-
const n = e.slice(vk.length), r =
|
|
176845
|
+
const n = e.slice(vk.length), r = Ps(n, "base58btc");
|
|
176846
176846
|
if (!Uze(r, t))
|
|
176847
176847
|
throw new Error(`Expected prefix: ${t}`);
|
|
176848
176848
|
return r.slice(t.length);
|
|
@@ -176890,7 +176890,7 @@ class eg {
|
|
|
176890
176890
|
});
|
|
176891
176891
|
}
|
|
176892
176892
|
static fromSecretKey(t, n) {
|
|
176893
|
-
const { format: r = "base64pad", exportable: o = !1 } = n || {}, i =
|
|
176893
|
+
const { format: r = "base64pad", exportable: o = !1 } = n || {}, i = Ps(t, r), s = Mf.extractPublicKeyFromSecretKey(i);
|
|
176894
176894
|
return new eg(i, s, o);
|
|
176895
176895
|
}
|
|
176896
176896
|
did() {
|
|
@@ -177725,7 +177725,7 @@ const JJ = "ECDSA", Jze = "P-256", Qze = "SHA-256", e$e = (e) => ZJ(void 0, void
|
|
|
177725
177725
|
const t = D2(2), n = t.pow(256).subtract(t.pow(224)).add(t.pow(192)).add(t.pow(96)).subtract(1), r = D2("41058363725152142129326129780047268409114441015993725554835256314039467401291"), o = n.add(1).divide(4), i = D2(e[0] - 2), s = e.slice(1), a = D2(oc(s, "base10")), l = a.pow(3).subtract(a.multiply(3)).add(r).modPow(o, n);
|
|
177726
177726
|
let u;
|
|
177727
177727
|
l.mod(2).equals(i) ? u = l : u = n.subtract(l);
|
|
177728
|
-
const c =
|
|
177728
|
+
const c = Ps(u.toString(10), "base10"), d = 32 - c.length, p = new Uint8Array(32);
|
|
177729
177729
|
return p.set(c, d), dx([[4], s, p]);
|
|
177730
177730
|
};
|
|
177731
177731
|
var o$e = function(e, t, n, r) {
|
|
@@ -178190,7 +178190,7 @@ const oQ = (e) => (t, n, r) => nQ(void 0, void 0, void 0, function* () {
|
|
|
178190
178190
|
};
|
|
178191
178191
|
if (!e.verifyIssuerAlg(t.iss, n))
|
|
178192
178192
|
throw new Error("The issuer's key type must match the given key type.");
|
|
178193
|
-
const i = H$e(o), s = W$e(t), a = `${i}.${s}`, l =
|
|
178193
|
+
const i = H$e(o), s = W$e(t), a = `${i}.${s}`, l = Ps(a, "utf8"), u = yield r(l);
|
|
178194
178194
|
return Object.freeze({
|
|
178195
178195
|
header: o,
|
|
178196
178196
|
payload: t,
|
|
@@ -178203,11 +178203,11 @@ function ji(e) {
|
|
|
178203
178203
|
}
|
|
178204
178204
|
function H$e(e) {
|
|
178205
178205
|
const t = Object.assign(Object.assign({}, e), { ucv: x$e(e.ucv) });
|
|
178206
|
-
return oc(
|
|
178206
|
+
return oc(Ps(JSON.stringify(t), "utf8"), "base64url");
|
|
178207
178207
|
}
|
|
178208
178208
|
function W$e(e) {
|
|
178209
178209
|
const t = Object.assign(Object.assign({}, e), { att: e.att.map(j$e) });
|
|
178210
|
-
return oc(
|
|
178210
|
+
return oc(Ps(JSON.stringify(t), "utf8"), "base64url");
|
|
178211
178211
|
}
|
|
178212
178212
|
function q$e(e) {
|
|
178213
178213
|
const [t, n, r] = e.split(".");
|
|
@@ -178215,7 +178215,7 @@ function q$e(e) {
|
|
|
178215
178215
|
throw new Error(`Can't parse UCAN: ${e}: Expected JWT format: 3 dot-separated base64url-encoded values.`);
|
|
178216
178216
|
let o, i;
|
|
178217
178217
|
try {
|
|
178218
|
-
o = oc(
|
|
178218
|
+
o = oc(Ps(t, "base64url"), "utf8");
|
|
178219
178219
|
} catch {
|
|
178220
178220
|
throw new Error(`Can't parse UCAN header: ${t}: Can't parse as base64url.`);
|
|
178221
178221
|
}
|
|
@@ -178226,7 +178226,7 @@ function q$e(e) {
|
|
|
178226
178226
|
}
|
|
178227
178227
|
let s, a;
|
|
178228
178228
|
try {
|
|
178229
|
-
s = oc(
|
|
178229
|
+
s = oc(Ps(n, "base64url"), "utf8");
|
|
178230
178230
|
} catch {
|
|
178231
178231
|
throw new Error(`Can't parse UCAN payload: ${n}: Can't parse as base64url.`);
|
|
178232
178232
|
}
|
|
@@ -178246,7 +178246,7 @@ const Bv = (e) => (t, n) => nQ(void 0, void 0, void 0, function* () {
|
|
|
178246
178246
|
if (r && !e.verifyIssuerAlg(l.iss, a.alg))
|
|
178247
178247
|
throw new Error(`Invalid UCAN: ${t}: Issuer key type does not match UCAN's \`alg\` property.`);
|
|
178248
178248
|
if (o) {
|
|
178249
|
-
const f =
|
|
178249
|
+
const f = Ps(d, "base64url"), g = Ps(`${u}.${c}`, "utf8");
|
|
178250
178250
|
if (!(yield e.verifySignature(l.iss, g, f)))
|
|
178251
178251
|
throw new Error(`Invalid UCAN: ${t}: Signature invalid.`);
|
|
178252
178252
|
}
|
|
@@ -178686,7 +178686,7 @@ function wR(e) {
|
|
|
178686
178686
|
function aHe(e) {
|
|
178687
178687
|
return uo(e) && Mt(e, "issuer") && LC(e.issuer) && Mt(e, "expiration") && typeof e.expiration == "number";
|
|
178688
178688
|
}
|
|
178689
|
-
const lHe = (e) => class
|
|
178689
|
+
const lHe = (e) => class ms {
|
|
178690
178690
|
constructor(n, r) {
|
|
178691
178691
|
this.state = n, this.defaultable = r;
|
|
178692
178692
|
}
|
|
@@ -178699,7 +178699,7 @@ const lHe = (e) => class bs {
|
|
|
178699
178699
|
* To finalise the builder, call its `build` or `buildPayload` method.
|
|
178700
178700
|
*/
|
|
178701
178701
|
static create() {
|
|
178702
|
-
return new
|
|
178702
|
+
return new ms({}, { capabilities: [], facts: [], proofs: [], addNonce: !1 });
|
|
178703
178703
|
}
|
|
178704
178704
|
/**
|
|
178705
178705
|
* @param issuer The issuer as a DID string ("did:key:...").
|
|
@@ -178709,7 +178709,7 @@ const lHe = (e) => class bs {
|
|
|
178709
178709
|
issuedBy(n) {
|
|
178710
178710
|
if (!LC(n))
|
|
178711
178711
|
throw new TypeError(`Expected a Keypair, but got ${n}`);
|
|
178712
|
-
return new
|
|
178712
|
+
return new ms(Object.assign(Object.assign({}, this.state), { issuer: n }), this.defaultable);
|
|
178713
178713
|
}
|
|
178714
178714
|
/**
|
|
178715
178715
|
* @param audience The audience as a DID string ("did:key:...").
|
|
@@ -178722,7 +178722,7 @@ const lHe = (e) => class bs {
|
|
|
178722
178722
|
toAudience(n) {
|
|
178723
178723
|
if (typeof n != "string")
|
|
178724
178724
|
throw new TypeError(`Expected audience DID as string, but got ${n}`);
|
|
178725
|
-
return new
|
|
178725
|
+
return new ms(Object.assign(Object.assign({}, this.state), { audience: n }), this.defaultable);
|
|
178726
178726
|
}
|
|
178727
178727
|
/**
|
|
178728
178728
|
* @param seconds The number of seconds from the calltime of this function
|
|
@@ -178743,7 +178743,7 @@ const lHe = (e) => class bs {
|
|
|
178743
178743
|
throw new TypeError(`Expected expiration as number, but got ${n}`);
|
|
178744
178744
|
if (this.defaultable.notBefore != null && n < this.defaultable.notBefore)
|
|
178745
178745
|
throw new Error(`Can't set expiration to ${n} which is before 'notBefore': ${this.defaultable.notBefore}`);
|
|
178746
|
-
return new
|
|
178746
|
+
return new ms(Object.assign(Object.assign({}, this.state), { expiration: n }), this.defaultable);
|
|
178747
178747
|
}
|
|
178748
178748
|
/**
|
|
178749
178749
|
* @param notBeforeTimestamp The UTCTime timestamp (in seconds) of when the UCAN becomes active.
|
|
@@ -178753,23 +178753,23 @@ const lHe = (e) => class bs {
|
|
|
178753
178753
|
throw new TypeError(`Expected notBeforeTimestamp as number, but got ${n}`);
|
|
178754
178754
|
if (Mt(this.state, "expiration") && typeof this.state.expiration == "number" && this.state.expiration < n)
|
|
178755
178755
|
throw new Error(`Can't set 'notBefore' to ${n} which is after expiration: ${this.state.expiration}`);
|
|
178756
|
-
return new
|
|
178756
|
+
return new ms(this.state, Object.assign(Object.assign({}, this.defaultable), { notBefore: n }));
|
|
178757
178757
|
}
|
|
178758
178758
|
withFact(n, ...r) {
|
|
178759
178759
|
if (!uo(n) || r.some((o) => !uo(o)))
|
|
178760
178760
|
throw new TypeError(`Expected fact(s) to be a record, but got ${n}`);
|
|
178761
|
-
return new
|
|
178761
|
+
return new ms(this.state, Object.assign(Object.assign({}, this.defaultable), { facts: [...this.defaultable.facts, n, ...r] }));
|
|
178762
178762
|
}
|
|
178763
178763
|
/**
|
|
178764
178764
|
* Will ensure that the built UCAN includes a number used once.
|
|
178765
178765
|
*/
|
|
178766
178766
|
withNonce() {
|
|
178767
|
-
return new
|
|
178767
|
+
return new ms(this.state, Object.assign(Object.assign({}, this.defaultable), { addNonce: !0 }));
|
|
178768
178768
|
}
|
|
178769
178769
|
claimCapability(n, ...r) {
|
|
178770
178770
|
if (!tg(n))
|
|
178771
178771
|
throw new TypeError(`Expected capability, but got ${JSON.stringify(n, null, " ")}`);
|
|
178772
|
-
return new
|
|
178772
|
+
return new ms(this.state, Object.assign(Object.assign({}, this.defaultable), { capabilities: [...this.defaultable.capabilities, n, ...r] }));
|
|
178773
178773
|
}
|
|
178774
178774
|
delegateCapability(n, r, o) {
|
|
178775
178775
|
if (!tg(n))
|
|
@@ -178785,12 +178785,12 @@ const lHe = (e) => class bs {
|
|
|
178785
178785
|
const s = r, a = s.ucan;
|
|
178786
178786
|
if (!Mv(o, n, s))
|
|
178787
178787
|
throw new Error("Can't add capability to UCAN: Given proof doesn't give required rights to delegate.");
|
|
178788
|
-
return new
|
|
178788
|
+
return new ms(this.state, Object.assign(Object.assign({}, this.defaultable), { capabilities: [...this.defaultable.capabilities, n], proofs: this.defaultable.proofs.find((l) => ji(l) === ji(a)) == null ? [...this.defaultable.proofs, a] : this.defaultable.proofs }));
|
|
178789
178789
|
} else {
|
|
178790
178790
|
const s = r, a = this.state.issuer.did(), l = g$e(s.findWithCapability(a, n, a));
|
|
178791
178791
|
if (l != null) {
|
|
178792
178792
|
const u = l.ucan, c = ji(u);
|
|
178793
|
-
return new
|
|
178793
|
+
return new ms(this.state, Object.assign(Object.assign({}, this.defaultable), { capabilities: [...this.defaultable.capabilities, n], proofs: this.defaultable.proofs.find((d) => ji(d) === c) == null ? [...this.defaultable.proofs, u] : this.defaultable.proofs }));
|
|
178794
178794
|
} else
|
|
178795
178795
|
throw new Error("Couldn't add capability to UCAN. Couldn't find anything providing this capability in given store.");
|
|
178796
178796
|
}
|
|
@@ -179003,7 +179003,7 @@ class dHe {
|
|
|
179003
179003
|
const ER = (e, t) => jJ(t, e.subarray(0, t.byteLength)), CR = "did:key:z", _R = (e) => {
|
|
179004
179004
|
if (!e.startsWith(CR))
|
|
179005
179005
|
throw new Error(`Not a valid base58 formatted did:key: ${e}`);
|
|
179006
|
-
return
|
|
179006
|
+
return Ps(e.slice(CR.length), "base58btc");
|
|
179007
179007
|
}, AR = (e) => {
|
|
179008
179008
|
const t = e.split(":");
|
|
179009
179009
|
if (t[0] !== "did")
|
|
@@ -180678,14 +180678,14 @@ function P0(e, t, n, r) {
|
|
|
180678
180678
|
}, [e, r]), a = p8.useSyncExternalStoreWithSelector(i, s, s, t, n);
|
|
180679
180679
|
return a;
|
|
180680
180680
|
}
|
|
180681
|
-
var xWe = Object.defineProperty, vWe = (e, t, n) => t in e ? xWe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ma = (e, t, n) => (vWe(e, typeof t != "symbol" ? t + "" : t, n), n),
|
|
180681
|
+
var xWe = Object.defineProperty, vWe = (e, t, n) => t in e ? xWe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ma = (e, t, n) => (vWe(e, typeof t != "symbol" ? t + "" : t, n), n), Ds = /* @__PURE__ */ ((e) => (e[e.unknown = 0] = "unknown", e[e.machine = 1] = "machine", e[e.callback = 2] = "callback", e[e.promise = 3] = "promise", e[e.observable = 4] = "observable", e))(Ds || {}), _p = /* @__PURE__ */ ((e) => (e[e.unknown = 0] = "unknown", e[e.missing = 1] = "missing", e[e.forbidden = 2] = "forbidden", e[e.guardedAndNoChange = 3] = "guardedAndNoChange", e[e.taken = 4] = "taken", e))(_p || {});
|
|
180682
180682
|
function $R(e) {
|
|
180683
180683
|
return e.target != null || e.actions != null;
|
|
180684
180684
|
}
|
|
180685
180685
|
function lQ(e) {
|
|
180686
180686
|
return Array.isArray(e);
|
|
180687
180687
|
}
|
|
180688
|
-
function
|
|
180688
|
+
function ks(e) {
|
|
180689
180689
|
return e.machine !== void 0;
|
|
180690
180690
|
}
|
|
180691
180691
|
function FWe(e) {
|
|
@@ -180839,14 +180839,14 @@ function NWe(e) {
|
|
|
180839
180839
|
function BWe(e) {
|
|
180840
180840
|
try {
|
|
180841
180841
|
const t = NWe(e.subscribe);
|
|
180842
|
-
return t.length === 1 && t[0] === "next" ?
|
|
180842
|
+
return t.length === 1 && t[0] === "next" ? Ds.callback : t.length === 3 && t[0] === "next" && t[1] === "handleError" && t[2] === "complete" ? e.subscribe.toString().length > 150 ? Ds.promise : Ds.observable : Ds.unknown;
|
|
180843
180843
|
} catch {
|
|
180844
|
-
return console.error("Failed to introspect the subscribe method on an actor", e),
|
|
180844
|
+
return console.error("Failed to introspect the subscribe method on an actor", e), Ds.unknown;
|
|
180845
180845
|
}
|
|
180846
180846
|
}
|
|
180847
180847
|
function MWe(e, t) {
|
|
180848
180848
|
var n, r, o, i;
|
|
180849
|
-
const s =
|
|
180849
|
+
const s = ks(e), a = {
|
|
180850
180850
|
actorRef: e,
|
|
180851
180851
|
sessionId: "",
|
|
180852
180852
|
parent: void 0,
|
|
@@ -180857,10 +180857,10 @@ function MWe(e, t) {
|
|
|
180857
180857
|
updatedAt: Date.now(),
|
|
180858
180858
|
status: void 0,
|
|
180859
180859
|
history: [],
|
|
180860
|
-
type:
|
|
180861
|
-
dead:
|
|
180860
|
+
type: Ds.unknown,
|
|
180861
|
+
dead: ks(e) ? e.initialized && (((n = e.getSnapshot) == null ? void 0 : n.call(e).done) || e.status === Qn.Stopped) : !1
|
|
180862
180862
|
};
|
|
180863
|
-
return a.parent = e.parent ? (r = e.parent) == null ? void 0 : r.sessionId : t == null ? void 0 : t.sessionId,
|
|
180863
|
+
return a.parent = e.parent ? (r = e.parent) == null ? void 0 : r.sessionId : t == null ? void 0 : t.sessionId, ks(e) ? (a.sessionId = e.sessionId, a.status = e.status, a.machine = e.machine.definition, a.type = Ds.machine) : (a.sessionId = (i = (o = globalThis.crypto) == null ? void 0 : o.randomUUID()) != null ? i : String(Math.round(Math.random() * 1e6)), a.type = BWe(e)), a;
|
|
180864
180864
|
}
|
|
180865
180865
|
function OWe(e, t) {
|
|
180866
180866
|
return {
|
|
@@ -180872,7 +180872,7 @@ function OWe(e, t) {
|
|
|
180872
180872
|
};
|
|
180873
180873
|
}
|
|
180874
180874
|
function RWe(e) {
|
|
180875
|
-
if (
|
|
180875
|
+
if (ks(e)) {
|
|
180876
180876
|
const { configuration: t, event: n } = e.state, r = IWe(t);
|
|
180877
180877
|
switch (!0) {
|
|
180878
180878
|
case e.state.changed:
|
|
@@ -180960,7 +180960,7 @@ class zWe extends CustomEvent {
|
|
|
180960
180960
|
actorId: t.actorRef.id,
|
|
180961
180961
|
snapshot: Ov(t.actorRef.getSnapshot()),
|
|
180962
180962
|
createdAt: Date.now(),
|
|
180963
|
-
status:
|
|
180963
|
+
status: ks(t.actorRef) ? t.actorRef.status : 0,
|
|
180964
180964
|
event: OWe(n, t.actorRef)
|
|
180965
180965
|
}
|
|
180966
180966
|
}), ma(this, "type", "@xstate/inspect.update");
|
|
@@ -180974,7 +180974,7 @@ class $We extends CustomEvent {
|
|
|
180974
180974
|
sessionId: t.sessionId,
|
|
180975
180975
|
snapshot: Ov(t.actorRef.getSnapshot()),
|
|
180976
180976
|
createdAt: Date.now(),
|
|
180977
|
-
status:
|
|
180977
|
+
status: ks(t.actorRef) ? t.actorRef.status : 0,
|
|
180978
180978
|
dead: t.dead,
|
|
180979
180979
|
diedAt: t.diedAt
|
|
180980
180980
|
}
|
|
@@ -181019,9 +181019,9 @@ class qWe extends CustomEvent {
|
|
|
181019
181019
|
class VWe {
|
|
181020
181020
|
constructor({ logLevel: t, enabled: n } = {}) {
|
|
181021
181021
|
ma(this, "actors"), ma(this, "logLevel", 0), ma(this, "enabled", !0), ma(this, "trackedActorTypes", [
|
|
181022
|
-
|
|
181023
|
-
|
|
181024
|
-
|
|
181022
|
+
Ds.machine,
|
|
181023
|
+
Ds.callback,
|
|
181024
|
+
Ds.observable
|
|
181025
181025
|
]), this.actors = {}, this.register = this.register.bind(this), this.unregister = this.unregister.bind(this), this.onRegister = this.onRegister.bind(this), this.onUpdate = this.onUpdate.bind(this), this.onConnect = this.onConnect.bind(this), this.onRead = this.onRead.bind(this), this.onSend = this.onSend.bind(this), this.onDeadActorsCleared = this.onDeadActorsCleared.bind(this), this.forgetAllChildren = this.forgetAllChildren.bind(this), this.isActorTypeTracked = this.isActorTypeTracked.bind(this), this.onSettingsChanged = this.onSettingsChanged.bind(this), t !== void 0 && this.setLogLevel(t), n === void 0 && (this.enabled = !!(globalThis != null && globalThis.__xstate_ninja__)), globalThis.addEventListener(Ap.connect, this.onConnect), globalThis.addEventListener(Ap.read, this.onRead), globalThis.addEventListener(Ap.send, this.onSend), globalThis.addEventListener(Ap.deadActorsCleared, this.onDeadActorsCleared), globalThis.addEventListener(Ap.settingsChanged, this.onSettingsChanged), globalThis.dispatchEvent(new qWe());
|
|
181026
181026
|
}
|
|
181027
181027
|
onSettingsChanged(t) {
|
|
@@ -181049,12 +181049,12 @@ class VWe {
|
|
|
181049
181049
|
}
|
|
181050
181050
|
const o = new PWe(r);
|
|
181051
181051
|
globalThis.dispatchEvent(o);
|
|
181052
|
-
const i = (s) =>
|
|
181052
|
+
const i = (s) => ks(s) ? this.actors[s.sessionId] === void 0 : Object.values(this.actors).every((a) => a.actorRef.id !== s.id || a.parent !== r.sessionId || ks(a.actorRef));
|
|
181053
181053
|
r.subscription = t.subscribe((s) => {
|
|
181054
181054
|
var a;
|
|
181055
181055
|
this.log(`----- actor updated (${r.actorRef.id}) -----`, s), r.updatedAt = Date.now(), s != null && s.done && !r.dead && (r.dead = !0, r.diedAt = Date.now()), r.snapshot = r.actorRef.getSnapshot();
|
|
181056
181056
|
let l;
|
|
181057
|
-
if (
|
|
181057
|
+
if (ks(r.actorRef)) {
|
|
181058
181058
|
if (l = r.actorRef.state._event, l.origin != null && l.origin.match(/^x:\d/)) {
|
|
181059
181059
|
const c = (a = SWe(r.actorRef, l.origin)) == null ? void 0 : a.id;
|
|
181060
181060
|
c != null && (l.origin = `${c} (${l.origin})`);
|
|
@@ -181088,7 +181088,7 @@ class VWe {
|
|
|
181088
181088
|
});
|
|
181089
181089
|
const u = new zWe(r, l);
|
|
181090
181090
|
r.history.push(u.detail), r.events.push(u.detail.event), globalThis.dispatchEvent(u), s != null && s.done && this.unregister(t);
|
|
181091
|
-
}),
|
|
181091
|
+
}), ks(t) && t.onStop(() => {
|
|
181092
181092
|
var s;
|
|
181093
181093
|
r.status = t.status, r.dead = !0, r.diedAt = Date.now(), this.unregister(t), ((s = t.children) == null ? void 0 : s.size) > 0 && this.forgetAllChildren(r.sessionId);
|
|
181094
181094
|
}), this.actors[r.sessionId] = r;
|
|
@@ -181108,7 +181108,7 @@ class VWe {
|
|
|
181108
181108
|
forgetAllChildren(t) {
|
|
181109
181109
|
!this.enabled || Object.values(this.actors).forEach((n) => {
|
|
181110
181110
|
var r;
|
|
181111
|
-
n.parent === t && (n.dead = !0, n.diedAt = Date.now(), this.unregister(n.actorRef),
|
|
181111
|
+
n.parent === t && (n.dead = !0, n.diedAt = Date.now(), this.unregister(n.actorRef), ks(n.actorRef) && ((r = n.actorRef.children) == null ? void 0 : r.size) > 0 && this.forgetAllChildren(n.sessionId));
|
|
181112
181112
|
});
|
|
181113
181113
|
}
|
|
181114
181114
|
onRegister(t) {
|
|
@@ -184163,7 +184163,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184163
184163
|
{
|
|
184164
184164
|
"data-testid": "tab-sidebar",
|
|
184165
184165
|
className: it(
|
|
184166
|
-
"flex flex-col items-start w-full h-full overflow-y-auto justify-start left-0 px-4
|
|
184166
|
+
"flex flex-col items-start w-full h-full overflow-y-auto justify-start left-0 px-4",
|
|
184167
184167
|
// Keep landscape TOC responsive: it can shrink to 182px on tighter widths
|
|
184168
184168
|
// and grow up to the original 263px when space allows.
|
|
184169
184169
|
c === "landscape" ? "!w-[clamp(182px,calc((100vw-1190px)/2),263px)] min-w-[182px] max-w-[263px]" : "max-w-[263px]",
|
|
@@ -185246,7 +185246,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185246
185246
|
ref: mn,
|
|
185247
185247
|
isContentLoading: dr,
|
|
185248
185248
|
ydoc: Or,
|
|
185249
|
-
awareness:
|
|
185249
|
+
awareness: Ys,
|
|
185250
185250
|
refreshYjsIndexedDbProvider: c0,
|
|
185251
185251
|
activeCommentId: rr,
|
|
185252
185252
|
setActiveCommentId: em,
|
|
@@ -185356,16 +185356,16 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185356
185356
|
});
|
|
185357
185357
|
},
|
|
185358
185358
|
updateCollaboratorName: (Tt) => {
|
|
185359
|
-
if (!et || !
|
|
185359
|
+
if (!et || !Ys) {
|
|
185360
185360
|
console.debug("collab: cannot find editor or awareness");
|
|
185361
185361
|
return;
|
|
185362
185362
|
}
|
|
185363
|
-
const kt =
|
|
185363
|
+
const kt = Ys.getLocalState(), Ct = kt == null ? void 0 : kt.user, nn = {
|
|
185364
185364
|
name: Tt,
|
|
185365
185365
|
color: Ct == null ? void 0 : Ct.color,
|
|
185366
185366
|
isEns: Ct == null ? void 0 : Ct.isEns
|
|
185367
185367
|
};
|
|
185368
|
-
|
|
185368
|
+
Ys.setLocalStateField("user", nn), et.setEditable(!0);
|
|
185369
185369
|
},
|
|
185370
185370
|
exportCurrentTabOrOpenExportModal: (Tt = "pdf", kt) => {
|
|
185371
185371
|
var Ct;
|
|
@@ -185374,7 +185374,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185374
185374
|
terminateSession: CQ
|
|
185375
185375
|
}),
|
|
185376
185376
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
185377
|
-
[et
|
|
185377
|
+
[et]
|
|
185378
185378
|
);
|
|
185379
185379
|
const MQ = (Tt) => {
|
|
185380
185380
|
w == null || w((kt) => {
|
|
@@ -186518,7 +186518,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
186518
186518
|
];
|
|
186519
186519
|
},
|
|
186520
186520
|
addNodeView() {
|
|
186521
|
-
return
|
|
186521
|
+
return zs(Qqe);
|
|
186522
186522
|
},
|
|
186523
186523
|
addCommands() {
|
|
186524
186524
|
return {
|