lt-ppt 1.0.26 → 1.0.28
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/{InnerApp-D8mU98_u.js → InnerApp-BkVsQnm2.js} +9113 -9077
- package/dist/{index-CQot7iN3.js → index-e8Js74-o.js} +1 -1
- package/dist/{index-D5u0ETgN.js → index-vmpIx8K7.js} +1 -1
- package/dist/index.browser-Wq18ov6h.js +24 -0
- package/dist/{lib-B0z78_t3.js → lib-9k4fJaGf.js} +191 -98
- package/dist/lt-ppt.css +1 -1
- package/dist/lt-ppt.es.js +1 -1
- package/dist/lt-ppt.umd.js +128 -128
- package/dist/{screen-CacUF2YF.js → screen-Brvtzttu.js} +558 -575
- package/dist/types/src/LtPPT.vue.d.ts +10 -3
- package/dist/types/src/lib.d.ts +2 -2
- package/dist/types/src/types/lt-ppt.d.ts +57 -1
- package/package.json +1 -1
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { defineStore as Js } from "./pinia-CVat9nJz.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
let Gy = (u) => crypto.getRandomValues(new Uint8Array(u)), Hy = (u, t, n) => {
|
|
5
|
-
let i = (2 << Math.log2(u.length - 1)) - 1, a = -~(1.6 * i * t / u.length);
|
|
6
|
-
return (f = t) => {
|
|
7
|
-
let h = "";
|
|
8
|
-
for (; ; ) {
|
|
9
|
-
let y = n(a), b = a | 0;
|
|
10
|
-
for (; b--; )
|
|
11
|
-
if (h += u[y[b] & i] || "", h.length >= f) return h;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
}, $y = (u, t = 21) => Hy(u, t | 0, Gy), A0 = (u = 21) => {
|
|
15
|
-
let t = "", n = crypto.getRandomValues(new Uint8Array(u |= 0));
|
|
16
|
-
for (; u--; )
|
|
17
|
-
t += Jy[n[u] & 63];
|
|
18
|
-
return t;
|
|
19
|
-
};
|
|
2
|
+
import { customAlphabet as Uy } from "./index.browser-Wq18ov6h.js";
|
|
3
|
+
import { c as Jy } from "./lib-9k4fJaGf.js";
|
|
20
4
|
var Yf = /* @__PURE__ */ ((u) => (u.EL_ANIMATION = "elAnimation", u.EL_STYLE = "elStyle", u.EL_POSITION = "elPosition", u.SLIDE_DESIGN = "slideDesign", u.SLIDE_ANIMATION = "slideAnimation", u.MULTI_STYLE = "multiStyle", u.MULTI_POSITION = "multiPosition", u))(Yf || {});
|
|
21
5
|
function it(u) {
|
|
22
6
|
this.content = u;
|
|
@@ -154,8 +138,8 @@ function Zf(u, t, n, i) {
|
|
|
154
138
|
if (!h.sameMarkup(y))
|
|
155
139
|
return { a: n, b: i };
|
|
156
140
|
if (h.isText && h.text != y.text) {
|
|
157
|
-
let M = 0,
|
|
158
|
-
for (; M <
|
|
141
|
+
let M = 0, z = Math.min(h.text.length, y.text.length);
|
|
142
|
+
for (; M < z && h.text[h.text.length - M - 1] == y.text[y.text.length - M - 1]; )
|
|
159
143
|
M++, n--, i--;
|
|
160
144
|
return { a: n, b: i };
|
|
161
145
|
}
|
|
@@ -185,8 +169,8 @@ class ie {
|
|
|
185
169
|
for (let h = 0, y = 0; y < n; h++) {
|
|
186
170
|
let b = this.content[h], M = y + b.nodeSize;
|
|
187
171
|
if (M > t && i(b, a + y, f || null, h) !== !1 && b.content.size) {
|
|
188
|
-
let
|
|
189
|
-
b.nodesBetween(Math.max(0, t -
|
|
172
|
+
let z = y + 1;
|
|
173
|
+
b.nodesBetween(Math.max(0, t - z), Math.min(b.content.size, n - z), i, a + z);
|
|
190
174
|
}
|
|
191
175
|
y = M;
|
|
192
176
|
}
|
|
@@ -655,7 +639,7 @@ function ec(u, t, n, i) {
|
|
|
655
639
|
let y = ec(h.content, t - f - 1, n, h);
|
|
656
640
|
return y && u.replaceChild(a, h.copy(y));
|
|
657
641
|
}
|
|
658
|
-
function
|
|
642
|
+
function Gy(u, t, n) {
|
|
659
643
|
if (n.openStart > u.depth)
|
|
660
644
|
throw new ta("Inserted content deeper than insertion position");
|
|
661
645
|
if (u.depth - n.openStart != t.depth - n.openEnd)
|
|
@@ -672,7 +656,7 @@ function tc(u, t, n, i) {
|
|
|
672
656
|
let h = u.parent, y = h.content;
|
|
673
657
|
return ai(h, y.cut(0, u.parentOffset).append(n.content).append(y.cut(t.parentOffset)));
|
|
674
658
|
} else {
|
|
675
|
-
let { start: h, end: y } =
|
|
659
|
+
let { start: h, end: y } = Hy(n, u);
|
|
676
660
|
return ai(f, rc(u, h, y, t, i));
|
|
677
661
|
}
|
|
678
662
|
else return ai(f, na(u, t, i));
|
|
@@ -689,7 +673,7 @@ function oi(u, t) {
|
|
|
689
673
|
let n = t.length - 1;
|
|
690
674
|
n >= 0 && u.isText && u.sameMarkup(t[n]) ? t[n] = u.withText(t[n].text + u.text) : t.push(u);
|
|
691
675
|
}
|
|
692
|
-
function
|
|
676
|
+
function zs(u, t, n, i) {
|
|
693
677
|
let a = (t || u).node(n), f = 0, h = t ? t.index(n) : a.childCount;
|
|
694
678
|
u && (f = u.index(n), u.depth > n ? f++ : u.textOffset && (oi(u.nodeAfter, i), f++));
|
|
695
679
|
for (let y = f; y < h; y++)
|
|
@@ -701,17 +685,17 @@ function ai(u, t) {
|
|
|
701
685
|
}
|
|
702
686
|
function rc(u, t, n, i, a) {
|
|
703
687
|
let f = u.depth > a && Tu(u, t, a + 1), h = i.depth > a && Tu(n, i, a + 1), y = [];
|
|
704
|
-
return
|
|
688
|
+
return zs(null, u, a, y), f && h && t.index(a) == n.index(a) ? (nc(f, h), oi(ai(f, rc(u, t, n, i, a + 1)), y)) : (f && oi(ai(f, na(u, t, a + 1)), y), zs(t, n, a, y), h && oi(ai(h, na(n, i, a + 1)), y)), zs(i, null, a, y), new ie(y);
|
|
705
689
|
}
|
|
706
690
|
function na(u, t, n) {
|
|
707
691
|
let i = [];
|
|
708
|
-
if (
|
|
692
|
+
if (zs(null, u, n, i), u.depth > n) {
|
|
709
693
|
let a = Tu(u, t, n + 1);
|
|
710
694
|
oi(ai(a, na(u, t, n + 1)), i);
|
|
711
695
|
}
|
|
712
|
-
return
|
|
696
|
+
return zs(t, null, n, i), new ie(i);
|
|
713
697
|
}
|
|
714
|
-
function
|
|
698
|
+
function Hy(u, t) {
|
|
715
699
|
let n = t.depth - u.openStart, a = t.node(n).copy(u.content);
|
|
716
700
|
for (let f = n - 1; f >= 0; f--)
|
|
717
701
|
a = t.node(f).copy(ie.from(a));
|
|
@@ -905,7 +889,7 @@ class qs {
|
|
|
905
889
|
return t.blockRange(this);
|
|
906
890
|
for (let i = this.depth - (this.parent.inlineContent || this.pos == t.pos ? 1 : 0); i >= 0; i--)
|
|
907
891
|
if (t.pos <= this.end(i) && (!n || n(this.node(i))))
|
|
908
|
-
return new
|
|
892
|
+
return new Vy(this, t, i);
|
|
909
893
|
return null;
|
|
910
894
|
}
|
|
911
895
|
/**
|
|
@@ -962,18 +946,18 @@ class qs {
|
|
|
962
946
|
return h;
|
|
963
947
|
}
|
|
964
948
|
else
|
|
965
|
-
If.set(t, i = new
|
|
949
|
+
If.set(t, i = new $y());
|
|
966
950
|
let a = i.elts[i.i] = qs.resolve(t, n);
|
|
967
|
-
return i.i = (i.i + 1) %
|
|
951
|
+
return i.i = (i.i + 1) % jy, a;
|
|
968
952
|
}
|
|
969
953
|
}
|
|
970
|
-
class
|
|
954
|
+
class $y {
|
|
971
955
|
constructor() {
|
|
972
956
|
this.elts = [], this.i = 0;
|
|
973
957
|
}
|
|
974
958
|
}
|
|
975
|
-
const
|
|
976
|
-
class
|
|
959
|
+
const jy = 12, If = /* @__PURE__ */ new WeakMap();
|
|
960
|
+
class Vy {
|
|
977
961
|
/**
|
|
978
962
|
Construct a node range. `$from` and `$to` should point into the
|
|
979
963
|
same node until at least the given `depth`, since a node range
|
|
@@ -1013,7 +997,7 @@ class Zy {
|
|
|
1013
997
|
return this.$to.indexAfter(this.depth);
|
|
1014
998
|
}
|
|
1015
999
|
}
|
|
1016
|
-
const
|
|
1000
|
+
const Yy = /* @__PURE__ */ Object.create(null);
|
|
1017
1001
|
class En {
|
|
1018
1002
|
/**
|
|
1019
1003
|
@internal
|
|
@@ -1132,7 +1116,7 @@ class En {
|
|
|
1132
1116
|
attributes, and marks.
|
|
1133
1117
|
*/
|
|
1134
1118
|
hasMarkup(t, n, i) {
|
|
1135
|
-
return this.type == t && ea(this.attrs, n || t.defaultAttrs ||
|
|
1119
|
+
return this.type == t && ea(this.attrs, n || t.defaultAttrs || Yy) && Pe.sameSet(this.marks, i || Pe.none);
|
|
1136
1120
|
}
|
|
1137
1121
|
/**
|
|
1138
1122
|
Create a new node with the same markup as this node, containing
|
|
@@ -1175,7 +1159,7 @@ class En {
|
|
|
1175
1159
|
[`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.
|
|
1176
1160
|
*/
|
|
1177
1161
|
replace(t, n, i) {
|
|
1178
|
-
return
|
|
1162
|
+
return Gy(this.resolve(t), this.resolve(n), i);
|
|
1179
1163
|
}
|
|
1180
1164
|
/**
|
|
1181
1165
|
Find the node directly after the given position.
|
|
@@ -1438,13 +1422,13 @@ class ui {
|
|
|
1438
1422
|
@internal
|
|
1439
1423
|
*/
|
|
1440
1424
|
static parse(t, n) {
|
|
1441
|
-
let i = new
|
|
1425
|
+
let i = new Xy(t, n);
|
|
1442
1426
|
if (i.next == null)
|
|
1443
1427
|
return ui.empty;
|
|
1444
1428
|
let a = sc(i);
|
|
1445
1429
|
i.next && i.err("Unexpected trailing text");
|
|
1446
|
-
let f =
|
|
1447
|
-
return
|
|
1430
|
+
let f = iv(rv(a));
|
|
1431
|
+
return sv(f, i), f;
|
|
1448
1432
|
}
|
|
1449
1433
|
/**
|
|
1450
1434
|
Match a node type, returning a match after that node if
|
|
@@ -1509,10 +1493,10 @@ class ui {
|
|
|
1509
1493
|
if (b && (!n || b.validEnd))
|
|
1510
1494
|
return ie.from(y.map((M) => M.createAndFill()));
|
|
1511
1495
|
for (let M = 0; M < h.next.length; M++) {
|
|
1512
|
-
let { type:
|
|
1513
|
-
if (!(
|
|
1496
|
+
let { type: z, next: W } = h.next[M];
|
|
1497
|
+
if (!(z.isText || z.hasRequiredAttrs()) && a.indexOf(W) == -1) {
|
|
1514
1498
|
a.push(W);
|
|
1515
|
-
let G = f(W, y.concat(
|
|
1499
|
+
let G = f(W, y.concat(z));
|
|
1516
1500
|
if (G)
|
|
1517
1501
|
return G;
|
|
1518
1502
|
}
|
|
@@ -1590,7 +1574,7 @@ class ui {
|
|
|
1590
1574
|
}
|
|
1591
1575
|
}
|
|
1592
1576
|
ui.empty = new ui(!0);
|
|
1593
|
-
class
|
|
1577
|
+
class Xy {
|
|
1594
1578
|
constructor(t, n) {
|
|
1595
1579
|
this.string = t, this.nodeTypes = n, this.inline = null, this.pos = 0, this.tokens = t.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
|
|
1596
1580
|
}
|
|
@@ -1607,19 +1591,19 @@ class ev {
|
|
|
1607
1591
|
function sc(u) {
|
|
1608
1592
|
let t = [];
|
|
1609
1593
|
do
|
|
1610
|
-
t.push(
|
|
1594
|
+
t.push(Zy(u));
|
|
1611
1595
|
while (u.eat("|"));
|
|
1612
1596
|
return t.length == 1 ? t[0] : { type: "choice", exprs: t };
|
|
1613
1597
|
}
|
|
1614
|
-
function
|
|
1598
|
+
function Zy(u) {
|
|
1615
1599
|
let t = [];
|
|
1616
1600
|
do
|
|
1617
|
-
t.push(
|
|
1601
|
+
t.push(Qy(u));
|
|
1618
1602
|
while (u.next && u.next != ")" && u.next != "|");
|
|
1619
1603
|
return t.length == 1 ? t[0] : { type: "seq", exprs: t };
|
|
1620
1604
|
}
|
|
1621
|
-
function
|
|
1622
|
-
let t =
|
|
1605
|
+
function Qy(u) {
|
|
1606
|
+
let t = nv(u);
|
|
1623
1607
|
for (; ; )
|
|
1624
1608
|
if (u.eat("+"))
|
|
1625
1609
|
t = { type: "plus", expr: t };
|
|
@@ -1628,7 +1612,7 @@ function nv(u) {
|
|
|
1628
1612
|
else if (u.eat("?"))
|
|
1629
1613
|
t = { type: "opt", expr: t };
|
|
1630
1614
|
else if (u.eat("{"))
|
|
1631
|
-
t =
|
|
1615
|
+
t = ev(u, t);
|
|
1632
1616
|
else
|
|
1633
1617
|
break;
|
|
1634
1618
|
return t;
|
|
@@ -1638,11 +1622,11 @@ function Cf(u) {
|
|
|
1638
1622
|
let t = Number(u.next);
|
|
1639
1623
|
return u.pos++, t;
|
|
1640
1624
|
}
|
|
1641
|
-
function
|
|
1625
|
+
function ev(u, t) {
|
|
1642
1626
|
let n = Cf(u), i = n;
|
|
1643
1627
|
return u.eat(",") && (u.next != "}" ? i = Cf(u) : i = -1), u.eat("}") || u.err("Unclosed braced range"), { type: "range", min: n, max: i, expr: t };
|
|
1644
1628
|
}
|
|
1645
|
-
function
|
|
1629
|
+
function tv(u, t) {
|
|
1646
1630
|
let n = u.nodeTypes, i = n[t];
|
|
1647
1631
|
if (i)
|
|
1648
1632
|
return [i];
|
|
@@ -1653,18 +1637,18 @@ function iv(u, t) {
|
|
|
1653
1637
|
}
|
|
1654
1638
|
return a.length == 0 && u.err("No node type or group '" + t + "' found"), a;
|
|
1655
1639
|
}
|
|
1656
|
-
function
|
|
1640
|
+
function nv(u) {
|
|
1657
1641
|
if (u.eat("(")) {
|
|
1658
1642
|
let t = sc(u);
|
|
1659
1643
|
return u.eat(")") || u.err("Missing closing paren"), t;
|
|
1660
1644
|
} else if (/\W/.test(u.next))
|
|
1661
1645
|
u.err("Unexpected token '" + u.next + "'");
|
|
1662
1646
|
else {
|
|
1663
|
-
let t =
|
|
1647
|
+
let t = tv(u, u.next).map((n) => (u.inline == null ? u.inline = n.isInline : u.inline != n.isInline && u.err("Mixing inline and block content"), { type: "name", value: n }));
|
|
1664
1648
|
return u.pos++, t.length == 1 ? t[0] : { type: "choice", exprs: t };
|
|
1665
1649
|
}
|
|
1666
1650
|
}
|
|
1667
|
-
function
|
|
1651
|
+
function rv(u) {
|
|
1668
1652
|
let t = [[]];
|
|
1669
1653
|
return a(f(u, 0), n()), t;
|
|
1670
1654
|
function n() {
|
|
@@ -1699,15 +1683,15 @@ function ov(u) {
|
|
|
1699
1683
|
if (h.type == "range") {
|
|
1700
1684
|
let b = y;
|
|
1701
1685
|
for (let M = 0; M < h.min; M++) {
|
|
1702
|
-
let
|
|
1703
|
-
a(f(h.expr, b),
|
|
1686
|
+
let z = n();
|
|
1687
|
+
a(f(h.expr, b), z), b = z;
|
|
1704
1688
|
}
|
|
1705
1689
|
if (h.max == -1)
|
|
1706
1690
|
a(f(h.expr, b), b);
|
|
1707
1691
|
else
|
|
1708
1692
|
for (let M = h.min; M < h.max; M++) {
|
|
1709
|
-
let
|
|
1710
|
-
i(b,
|
|
1693
|
+
let z = n();
|
|
1694
|
+
i(b, z), a(f(h.expr, b), z), b = z;
|
|
1711
1695
|
}
|
|
1712
1696
|
return [i(b)];
|
|
1713
1697
|
} else {
|
|
@@ -1735,7 +1719,7 @@ function Tf(u, t) {
|
|
|
1735
1719
|
}
|
|
1736
1720
|
}
|
|
1737
1721
|
}
|
|
1738
|
-
function
|
|
1722
|
+
function iv(u) {
|
|
1739
1723
|
let t = /* @__PURE__ */ Object.create(null);
|
|
1740
1724
|
return n(Tf(u, 0));
|
|
1741
1725
|
function n(i) {
|
|
@@ -1745,10 +1729,10 @@ function av(u) {
|
|
|
1745
1729
|
if (!y)
|
|
1746
1730
|
return;
|
|
1747
1731
|
let M;
|
|
1748
|
-
for (let
|
|
1749
|
-
a[
|
|
1750
|
-
Tf(u, b).forEach((
|
|
1751
|
-
M || a.push([y, M = []]), M.indexOf(
|
|
1732
|
+
for (let z = 0; z < a.length; z++)
|
|
1733
|
+
a[z][0] == y && (M = a[z][1]);
|
|
1734
|
+
Tf(u, b).forEach((z) => {
|
|
1735
|
+
M || a.push([y, M = []]), M.indexOf(z) == -1 && M.push(z);
|
|
1752
1736
|
});
|
|
1753
1737
|
});
|
|
1754
1738
|
});
|
|
@@ -1760,7 +1744,7 @@ function av(u) {
|
|
|
1760
1744
|
return f;
|
|
1761
1745
|
}
|
|
1762
1746
|
}
|
|
1763
|
-
function
|
|
1747
|
+
function sv(u, t) {
|
|
1764
1748
|
for (let n = 0, i = [u]; n < i.length; n++) {
|
|
1765
1749
|
let a = i[n], f = !a.validEnd, h = [];
|
|
1766
1750
|
for (let y = 0; y < a.next.length; y++) {
|
|
@@ -1808,7 +1792,7 @@ function fc(u, t) {
|
|
|
1808
1792
|
let n = /* @__PURE__ */ Object.create(null);
|
|
1809
1793
|
if (t)
|
|
1810
1794
|
for (let i in t)
|
|
1811
|
-
n[i] = new
|
|
1795
|
+
n[i] = new av(u, i, t[i]);
|
|
1812
1796
|
return n;
|
|
1813
1797
|
}
|
|
1814
1798
|
class ia {
|
|
@@ -1990,7 +1974,7 @@ class ia {
|
|
|
1990
1974
|
return i;
|
|
1991
1975
|
}
|
|
1992
1976
|
}
|
|
1993
|
-
function
|
|
1977
|
+
function ov(u, t, n) {
|
|
1994
1978
|
let i = n.split("|");
|
|
1995
1979
|
return (a) => {
|
|
1996
1980
|
let f = a === null ? "null" : typeof a;
|
|
@@ -1998,9 +1982,9 @@ function lv(u, t, n) {
|
|
|
1998
1982
|
throw new RangeError(`Expected value of type ${i} for attribute ${t} on type ${u}, got ${f}`);
|
|
1999
1983
|
};
|
|
2000
1984
|
}
|
|
2001
|
-
class
|
|
1985
|
+
class av {
|
|
2002
1986
|
constructor(t, n, i) {
|
|
2003
|
-
this.hasDefault = Object.prototype.hasOwnProperty.call(i, "default"), this.default = i.default, this.validate = typeof i.validate == "string" ?
|
|
1987
|
+
this.hasDefault = Object.prototype.hasOwnProperty.call(i, "default"), this.default = i.default, this.validate = typeof i.validate == "string" ? ov(t, n, i.validate) : i.validate;
|
|
2004
1988
|
}
|
|
2005
1989
|
get isRequired() {
|
|
2006
1990
|
return !this.hasDefault;
|
|
@@ -2061,7 +2045,7 @@ class ua {
|
|
|
2061
2045
|
return this.excluded.indexOf(t) > -1;
|
|
2062
2046
|
}
|
|
2063
2047
|
}
|
|
2064
|
-
class
|
|
2048
|
+
class k0 {
|
|
2065
2049
|
/**
|
|
2066
2050
|
Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
|
|
2067
2051
|
*/
|
|
@@ -2146,10 +2130,10 @@ function Rf(u, t) {
|
|
|
2146
2130
|
}
|
|
2147
2131
|
return n;
|
|
2148
2132
|
}
|
|
2149
|
-
function
|
|
2133
|
+
function uv(u) {
|
|
2150
2134
|
return u.tag != null;
|
|
2151
2135
|
}
|
|
2152
|
-
function
|
|
2136
|
+
function lv(u) {
|
|
2153
2137
|
return u.style != null;
|
|
2154
2138
|
}
|
|
2155
2139
|
class Ru {
|
|
@@ -2161,9 +2145,9 @@ class Ru {
|
|
|
2161
2145
|
this.schema = t, this.rules = n, this.tags = [], this.styles = [];
|
|
2162
2146
|
let i = this.matchedStyles = [];
|
|
2163
2147
|
n.forEach((a) => {
|
|
2164
|
-
if (
|
|
2148
|
+
if (uv(a))
|
|
2165
2149
|
this.tags.push(a);
|
|
2166
|
-
else if (
|
|
2150
|
+
else if (lv(a)) {
|
|
2167
2151
|
let f = /[^=]*/.exec(a.style)[0];
|
|
2168
2152
|
i.indexOf(f) < 0 && i.push(f), this.styles.push(a);
|
|
2169
2153
|
}
|
|
@@ -2199,7 +2183,7 @@ class Ru {
|
|
|
2199
2183
|
matchTag(t, n, i) {
|
|
2200
2184
|
for (let a = i ? this.tags.indexOf(i) + 1 : 0; a < this.tags.length; a++) {
|
|
2201
2185
|
let f = this.tags[a];
|
|
2202
|
-
if (
|
|
2186
|
+
if (hv(t, f.tag) && (f.namespace === void 0 || t.namespaceURI == f.namespace) && (!f.context || n.matchesContext(f.context))) {
|
|
2203
2187
|
if (f.getAttrs) {
|
|
2204
2188
|
let h = f.getAttrs(t);
|
|
2205
2189
|
if (h === !1)
|
|
@@ -2300,20 +2284,20 @@ const cc = {
|
|
|
2300
2284
|
table: !0,
|
|
2301
2285
|
tfoot: !0,
|
|
2302
2286
|
ul: !0
|
|
2303
|
-
},
|
|
2287
|
+
}, fv = {
|
|
2304
2288
|
head: !0,
|
|
2305
2289
|
noscript: !0,
|
|
2306
2290
|
object: !0,
|
|
2307
2291
|
script: !0,
|
|
2308
2292
|
style: !0,
|
|
2309
2293
|
title: !0
|
|
2310
|
-
}, hc = { ol: !0, ul: !0 }, Ws = 1, Mu = 2,
|
|
2294
|
+
}, hc = { ol: !0, ul: !0 }, Ws = 1, Mu = 2, Ks = 4;
|
|
2311
2295
|
function Mf(u, t, n) {
|
|
2312
|
-
return t != null ? (t ? Ws : 0) | (t === "full" ? Mu : 0) : u && u.whitespace == "pre" ? Ws | Mu : n & ~
|
|
2296
|
+
return t != null ? (t ? Ws : 0) | (t === "full" ? Mu : 0) : u && u.whitespace == "pre" ? Ws | Mu : n & ~Ks;
|
|
2313
2297
|
}
|
|
2314
2298
|
class Vo {
|
|
2315
2299
|
constructor(t, n, i, a, f, h) {
|
|
2316
|
-
this.type = t, this.attrs = n, this.marks = i, this.solid = a, this.options = h, this.content = [], this.activeMarks = Pe.none, this.match = f || (h &
|
|
2300
|
+
this.type = t, this.attrs = n, this.marks = i, this.solid = a, this.options = h, this.content = [], this.activeMarks = Pe.none, this.match = f || (h & Ks ? null : t.contentMatch);
|
|
2317
2301
|
}
|
|
2318
2302
|
findWrapping(t) {
|
|
2319
2303
|
if (!this.match) {
|
|
@@ -2347,7 +2331,7 @@ class Vo {
|
|
|
2347
2331
|
class Pf {
|
|
2348
2332
|
constructor(t, n, i) {
|
|
2349
2333
|
this.parser = t, this.options = n, this.isOpen = i, this.open = 0, this.localPreserveWS = !1;
|
|
2350
|
-
let a = n.topNode, f, h = Mf(null, n.preserveWhitespace, 0) | (i ?
|
|
2334
|
+
let a = n.topNode, f, h = Mf(null, n.preserveWhitespace, 0) | (i ? Ks : 0);
|
|
2351
2335
|
a ? f = new Vo(a.type, a.attrs, Pe.none, !0, n.topMatch || a.type.contentMatch, h) : i ? f = new Vo(null, null, Pe.none, !0, null, h) : f = new Vo(t.schema.topNodeType, null, Pe.none, !0, null, h), this.nodes = [f], this.find = n.findPositions, this.needsBlock = !1;
|
|
2352
2336
|
}
|
|
2353
2337
|
get top() {
|
|
@@ -2387,13 +2371,13 @@ class Pf {
|
|
|
2387
2371
|
let a = this.localPreserveWS, f = this.top;
|
|
2388
2372
|
(t.tagName == "PRE" || /pre/.test(t.style && t.style.whiteSpace)) && (this.localPreserveWS = !0);
|
|
2389
2373
|
let h = t.nodeName.toLowerCase(), y;
|
|
2390
|
-
hc.hasOwnProperty(h) && this.parser.normalizeLists &&
|
|
2374
|
+
hc.hasOwnProperty(h) && this.parser.normalizeLists && cv(t);
|
|
2391
2375
|
let b = this.options.ruleFromNode && this.options.ruleFromNode(t) || (y = this.parser.matchTag(t, this, i));
|
|
2392
|
-
e: if (b ? b.ignore :
|
|
2376
|
+
e: if (b ? b.ignore : fv.hasOwnProperty(h))
|
|
2393
2377
|
this.findInside(t), this.ignoreFallback(t, n);
|
|
2394
2378
|
else if (!b || b.skip || b.closeParent) {
|
|
2395
2379
|
b && b.closeParent ? this.open = Math.max(0, this.open - 1) : b && b.skip.nodeType && (t = b.skip);
|
|
2396
|
-
let M,
|
|
2380
|
+
let M, z = this.needsBlock;
|
|
2397
2381
|
if (cc.hasOwnProperty(h))
|
|
2398
2382
|
f.content.length && f.content[0].isInline && this.open && (this.open--, f = this.top), M = !0, f.type || (this.needsBlock = !0);
|
|
2399
2383
|
else if (!t.firstChild) {
|
|
@@ -2401,7 +2385,7 @@ class Pf {
|
|
|
2401
2385
|
break e;
|
|
2402
2386
|
}
|
|
2403
2387
|
let W = b && b.skip ? n : this.readStyles(t, n);
|
|
2404
|
-
W && this.addAll(t, W), M && this.sync(f), this.needsBlock =
|
|
2388
|
+
W && this.addAll(t, W), M && this.sync(f), this.needsBlock = z;
|
|
2405
2389
|
} else {
|
|
2406
2390
|
let M = this.readStyles(t, n);
|
|
2407
2391
|
M && this.addElementByRule(t, b, M, b.consuming === !1 ? y : void 0);
|
|
@@ -2530,7 +2514,7 @@ class Pf {
|
|
|
2530
2514
|
let h = this.top;
|
|
2531
2515
|
h.match = h.match && h.match.matchType(t);
|
|
2532
2516
|
let y = Mf(t, f, h.options);
|
|
2533
|
-
h.options &
|
|
2517
|
+
h.options & Ks && h.content.length == 0 && (y |= Ks);
|
|
2534
2518
|
let b = Pe.none;
|
|
2535
2519
|
return i = i.filter((M) => (h.type ? h.type.allowsMarkType(M.type) : Df(M.type, t)) ? (b = M.addToSet(b), !1) : !0), this.nodes.push(new Vo(t, n, b, a, null, y)), this.open++, i;
|
|
2536
2520
|
}
|
|
@@ -2601,8 +2585,8 @@ class Pf {
|
|
|
2601
2585
|
return !0;
|
|
2602
2586
|
return !1;
|
|
2603
2587
|
} else {
|
|
2604
|
-
let
|
|
2605
|
-
if (!
|
|
2588
|
+
let z = b > 0 || b == 0 && a ? this.nodes[b].type : i && b >= f ? i.node(b - f).type : null;
|
|
2589
|
+
if (!z || z.name != M && !z.isInGroup(M))
|
|
2606
2590
|
return !1;
|
|
2607
2591
|
b--;
|
|
2608
2592
|
}
|
|
@@ -2626,13 +2610,13 @@ class Pf {
|
|
|
2626
2610
|
}
|
|
2627
2611
|
}
|
|
2628
2612
|
}
|
|
2629
|
-
function
|
|
2613
|
+
function cv(u) {
|
|
2630
2614
|
for (let t = u.firstChild, n = null; t; t = t.nextSibling) {
|
|
2631
2615
|
let i = t.nodeType == 1 ? t.nodeName.toLowerCase() : null;
|
|
2632
2616
|
i && hc.hasOwnProperty(i) && n ? (n.appendChild(t), t = n) : i == "li" ? n = t : i && (n = null);
|
|
2633
2617
|
}
|
|
2634
2618
|
}
|
|
2635
|
-
function
|
|
2619
|
+
function hv(u, t) {
|
|
2636
2620
|
return (u.matches || u.msMatchesSelector || u.webkitMatchesSelector || u.mozMatchesSelector).call(u, t);
|
|
2637
2621
|
}
|
|
2638
2622
|
function Nf(u) {
|
|
@@ -2650,8 +2634,8 @@ function Df(u, t) {
|
|
|
2650
2634
|
let f = [], h = (y) => {
|
|
2651
2635
|
f.push(y);
|
|
2652
2636
|
for (let b = 0; b < y.edgeCount; b++) {
|
|
2653
|
-
let { type: M, next:
|
|
2654
|
-
if (M == t || f.indexOf(
|
|
2637
|
+
let { type: M, next: z } = y.edge(b);
|
|
2638
|
+
if (M == t || f.indexOf(z) < 0 && h(z))
|
|
2655
2639
|
return !0;
|
|
2656
2640
|
}
|
|
2657
2641
|
};
|
|
@@ -2697,8 +2681,8 @@ class pc {
|
|
|
2697
2681
|
for (; y < f.length; )
|
|
2698
2682
|
a = f.pop()[1];
|
|
2699
2683
|
for (; b < h.marks.length; ) {
|
|
2700
|
-
let M = h.marks[b++],
|
|
2701
|
-
|
|
2684
|
+
let M = h.marks[b++], z = this.serializeMark(M, h.isInline, n);
|
|
2685
|
+
z && (f.push([M, a]), a.appendChild(z.dom), a = z.contentDOM || z.dom);
|
|
2702
2686
|
}
|
|
2703
2687
|
}
|
|
2704
2688
|
a.appendChild(this.serializeNodeInner(h, n));
|
|
@@ -2775,11 +2759,11 @@ function xu(u) {
|
|
|
2775
2759
|
return u.document || window.document;
|
|
2776
2760
|
}
|
|
2777
2761
|
const Ff = /* @__PURE__ */ new WeakMap();
|
|
2778
|
-
function
|
|
2762
|
+
function pv(u) {
|
|
2779
2763
|
let t = Ff.get(u);
|
|
2780
|
-
return t === void 0 && Ff.set(u, t =
|
|
2764
|
+
return t === void 0 && Ff.set(u, t = dv(u)), t;
|
|
2781
2765
|
}
|
|
2782
|
-
function
|
|
2766
|
+
function dv(u) {
|
|
2783
2767
|
let t = null;
|
|
2784
2768
|
function n(i) {
|
|
2785
2769
|
if (i && typeof i == "object")
|
|
@@ -2805,23 +2789,23 @@ function Xo(u, t, n, i) {
|
|
|
2805
2789
|
let a = t[0], f;
|
|
2806
2790
|
if (typeof a != "string")
|
|
2807
2791
|
throw new RangeError("Invalid array passed to renderSpec");
|
|
2808
|
-
if (i && (f =
|
|
2792
|
+
if (i && (f = pv(i)) && f.indexOf(t) > -1)
|
|
2809
2793
|
throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
|
|
2810
2794
|
let h = a.indexOf(" ");
|
|
2811
2795
|
h > 0 && (n = a.slice(0, h), a = a.slice(h + 1));
|
|
2812
|
-
let y, b = n ? u.createElementNS(n, a) : u.createElement(a), M = t[1],
|
|
2796
|
+
let y, b = n ? u.createElementNS(n, a) : u.createElement(a), M = t[1], z = 1;
|
|
2813
2797
|
if (M && typeof M == "object" && M.nodeType == null && !Array.isArray(M)) {
|
|
2814
|
-
|
|
2798
|
+
z = 2;
|
|
2815
2799
|
for (let W in M)
|
|
2816
2800
|
if (M[W] != null) {
|
|
2817
2801
|
let G = W.indexOf(" ");
|
|
2818
2802
|
G > 0 ? b.setAttributeNS(W.slice(0, G), W.slice(G + 1), M[W]) : W == "style" && b.style ? b.style.cssText = M[W] : b.setAttribute(W, M[W]);
|
|
2819
2803
|
}
|
|
2820
2804
|
}
|
|
2821
|
-
for (let W =
|
|
2805
|
+
for (let W = z; W < t.length; W++) {
|
|
2822
2806
|
let G = t[W];
|
|
2823
2807
|
if (G === 0) {
|
|
2824
|
-
if (W < t.length - 1 || W >
|
|
2808
|
+
if (W < t.length - 1 || W > z)
|
|
2825
2809
|
throw new RangeError("Content hole must be the only child of its parent node");
|
|
2826
2810
|
return { dom: b, contentDOM: b };
|
|
2827
2811
|
} else {
|
|
@@ -2836,13 +2820,13 @@ function Xo(u, t, n, i) {
|
|
|
2836
2820
|
return { dom: b, contentDOM: y };
|
|
2837
2821
|
}
|
|
2838
2822
|
const dc = 65535, gc = Math.pow(2, 16);
|
|
2839
|
-
function
|
|
2823
|
+
function gv(u, t) {
|
|
2840
2824
|
return u + t * gc;
|
|
2841
2825
|
}
|
|
2842
2826
|
function Lf(u) {
|
|
2843
2827
|
return u & dc;
|
|
2844
2828
|
}
|
|
2845
|
-
function
|
|
2829
|
+
function mv(u) {
|
|
2846
2830
|
return (u - (u & dc)) / gc;
|
|
2847
2831
|
}
|
|
2848
2832
|
const mc = 1, yc = 2, Zo = 4, vc = 8;
|
|
@@ -2882,15 +2866,15 @@ class Pu {
|
|
|
2882
2866
|
return (this.delInfo & Zo) > 0;
|
|
2883
2867
|
}
|
|
2884
2868
|
}
|
|
2885
|
-
class
|
|
2869
|
+
class zt {
|
|
2886
2870
|
/**
|
|
2887
2871
|
Create a position map. The modifications to the document are
|
|
2888
2872
|
represented as an array of numbers, in which each group of three
|
|
2889
2873
|
represents a modified chunk as `[start, oldSize, newSize]`.
|
|
2890
2874
|
*/
|
|
2891
2875
|
constructor(t, n = !1) {
|
|
2892
|
-
if (this.ranges = t, this.inverted = n, !t.length &&
|
|
2893
|
-
return
|
|
2876
|
+
if (this.ranges = t, this.inverted = n, !t.length && zt.empty)
|
|
2877
|
+
return zt.empty;
|
|
2894
2878
|
}
|
|
2895
2879
|
/**
|
|
2896
2880
|
@internal
|
|
@@ -2900,7 +2884,7 @@ class Kt {
|
|
|
2900
2884
|
if (!this.inverted)
|
|
2901
2885
|
for (let a = 0; a < i; a++)
|
|
2902
2886
|
n += this.ranges[a * 3 + 2] - this.ranges[a * 3 + 1];
|
|
2903
|
-
return this.ranges[i * 3] + n +
|
|
2887
|
+
return this.ranges[i * 3] + n + mv(t);
|
|
2904
2888
|
}
|
|
2905
2889
|
mapResult(t, n = 1) {
|
|
2906
2890
|
return this._map(t, n, !1);
|
|
@@ -2917,15 +2901,15 @@ class Kt {
|
|
|
2917
2901
|
let b = this.ranges[y] - (this.inverted ? a : 0);
|
|
2918
2902
|
if (b > t)
|
|
2919
2903
|
break;
|
|
2920
|
-
let M = this.ranges[y + f],
|
|
2904
|
+
let M = this.ranges[y + f], z = this.ranges[y + h], W = b + M;
|
|
2921
2905
|
if (t <= W) {
|
|
2922
|
-
let G = M ? t == b ? -1 : t == W ? 1 : n : n, j = b + a + (G < 0 ? 0 :
|
|
2906
|
+
let G = M ? t == b ? -1 : t == W ? 1 : n : n, j = b + a + (G < 0 ? 0 : z);
|
|
2923
2907
|
if (i)
|
|
2924
2908
|
return j;
|
|
2925
|
-
let Y = t == (n < 0 ? b : W) ? null :
|
|
2909
|
+
let Y = t == (n < 0 ? b : W) ? null : gv(y / 3, t - b), se = t == b ? yc : t == W ? mc : Zo;
|
|
2926
2910
|
return (n < 0 ? t != b : t != W) && (se |= vc), new Pu(j, se, Y);
|
|
2927
2911
|
}
|
|
2928
|
-
a +=
|
|
2912
|
+
a += z - M;
|
|
2929
2913
|
}
|
|
2930
2914
|
return i ? t + a : new Pu(t + a, 0, null);
|
|
2931
2915
|
}
|
|
@@ -2938,8 +2922,8 @@ class Kt {
|
|
|
2938
2922
|
let b = this.ranges[y] - (this.inverted ? i : 0);
|
|
2939
2923
|
if (b > t)
|
|
2940
2924
|
break;
|
|
2941
|
-
let M = this.ranges[y + f],
|
|
2942
|
-
if (t <=
|
|
2925
|
+
let M = this.ranges[y + f], z = b + M;
|
|
2926
|
+
if (t <= z && y == a * 3)
|
|
2943
2927
|
return !0;
|
|
2944
2928
|
i += this.ranges[y + h] - M;
|
|
2945
2929
|
}
|
|
@@ -2952,8 +2936,8 @@ class Kt {
|
|
|
2952
2936
|
forEach(t) {
|
|
2953
2937
|
let n = this.inverted ? 2 : 1, i = this.inverted ? 1 : 2;
|
|
2954
2938
|
for (let a = 0, f = 0; a < this.ranges.length; a += 3) {
|
|
2955
|
-
let h = this.ranges[a], y = h - (this.inverted ? f : 0), b = h + (this.inverted ? 0 : f), M = this.ranges[a + n],
|
|
2956
|
-
t(y, y + M, b, b +
|
|
2939
|
+
let h = this.ranges[a], y = h - (this.inverted ? f : 0), b = h + (this.inverted ? 0 : f), M = this.ranges[a + n], z = this.ranges[a + i];
|
|
2940
|
+
t(y, y + M, b, b + z), f += z - M;
|
|
2957
2941
|
}
|
|
2958
2942
|
}
|
|
2959
2943
|
/**
|
|
@@ -2961,7 +2945,7 @@ class Kt {
|
|
|
2961
2945
|
map positions in the post-step document to the pre-step document.
|
|
2962
2946
|
*/
|
|
2963
2947
|
invert() {
|
|
2964
|
-
return new
|
|
2948
|
+
return new zt(this.ranges, !this.inverted);
|
|
2965
2949
|
}
|
|
2966
2950
|
/**
|
|
2967
2951
|
@internal
|
|
@@ -2975,10 +2959,10 @@ class Kt {
|
|
|
2975
2959
|
sub-document to a larger document, or vice-versa.
|
|
2976
2960
|
*/
|
|
2977
2961
|
static offset(t) {
|
|
2978
|
-
return t == 0 ?
|
|
2962
|
+
return t == 0 ? zt.empty : new zt(t < 0 ? [0, -t, 0] : [0, 0, t]);
|
|
2979
2963
|
}
|
|
2980
2964
|
}
|
|
2981
|
-
|
|
2965
|
+
zt.empty = new zt([]);
|
|
2982
2966
|
class sa {
|
|
2983
2967
|
/**
|
|
2984
2968
|
Create a new mapping with the given position maps.
|
|
@@ -3094,7 +3078,7 @@ class dt {
|
|
|
3094
3078
|
and the new document.
|
|
3095
3079
|
*/
|
|
3096
3080
|
getMap() {
|
|
3097
|
-
return
|
|
3081
|
+
return zt.empty;
|
|
3098
3082
|
}
|
|
3099
3083
|
/**
|
|
3100
3084
|
Try to merge this step with another one, to be applied directly
|
|
@@ -3344,7 +3328,7 @@ class pt extends dt {
|
|
|
3344
3328
|
return this.structure && Nu(t, this.from, this.to) ? et.fail("Structure replace would overwrite content") : et.fromReplace(t, this.from, this.to, this.slice);
|
|
3345
3329
|
}
|
|
3346
3330
|
getMap() {
|
|
3347
|
-
return new
|
|
3331
|
+
return new zt([this.from, this.to - this.from, this.slice.size]);
|
|
3348
3332
|
}
|
|
3349
3333
|
invert(t) {
|
|
3350
3334
|
return new pt(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
|
|
@@ -3399,7 +3383,7 @@ class qt extends dt {
|
|
|
3399
3383
|
return i ? et.fromReplace(t, this.from, this.to, i) : et.fail("Content does not fit in gap");
|
|
3400
3384
|
}
|
|
3401
3385
|
getMap() {
|
|
3402
|
-
return new
|
|
3386
|
+
return new zt([
|
|
3403
3387
|
this.from,
|
|
3404
3388
|
this.gapFrom - this.from,
|
|
3405
3389
|
this.insert,
|
|
@@ -3451,13 +3435,13 @@ function Nu(u, t, n) {
|
|
|
3451
3435
|
}
|
|
3452
3436
|
return !1;
|
|
3453
3437
|
}
|
|
3454
|
-
function
|
|
3438
|
+
function yv(u, t, n, i) {
|
|
3455
3439
|
let a = [], f = [], h, y;
|
|
3456
|
-
u.doc.nodesBetween(t, n, (b, M,
|
|
3440
|
+
u.doc.nodesBetween(t, n, (b, M, z) => {
|
|
3457
3441
|
if (!b.isInline)
|
|
3458
3442
|
return;
|
|
3459
3443
|
let W = b.marks;
|
|
3460
|
-
if (!i.isInSet(W) &&
|
|
3444
|
+
if (!i.isInSet(W) && z.type.allowsMarkType(i.type)) {
|
|
3461
3445
|
let G = Math.max(M, t), j = Math.min(M + b.nodeSize, n), Y = i.addToSet(W);
|
|
3462
3446
|
for (let se = 0; se < W.length; se++)
|
|
3463
3447
|
W[se].isInSet(Y) || (h && h.to == G && h.mark.eq(W[se]) ? h.to = j : a.push(h = new kn(G, j, W[se])));
|
|
@@ -3465,7 +3449,7 @@ function bv(u, t, n, i) {
|
|
|
3465
3449
|
}
|
|
3466
3450
|
}), a.forEach((b) => u.step(b)), f.forEach((b) => u.step(b));
|
|
3467
3451
|
}
|
|
3468
|
-
function
|
|
3452
|
+
function vv(u, t, n, i) {
|
|
3469
3453
|
let a = [], f = 0;
|
|
3470
3454
|
u.doc.nodesBetween(t, n, (h, y) => {
|
|
3471
3455
|
if (!h.isInline)
|
|
@@ -3473,14 +3457,14 @@ function xv(u, t, n, i) {
|
|
|
3473
3457
|
f++;
|
|
3474
3458
|
let b = null;
|
|
3475
3459
|
if (i instanceof ua) {
|
|
3476
|
-
let M = h.marks,
|
|
3477
|
-
for (;
|
|
3478
|
-
(b || (b = [])).push(
|
|
3460
|
+
let M = h.marks, z;
|
|
3461
|
+
for (; z = i.isInSet(M); )
|
|
3462
|
+
(b || (b = [])).push(z), M = z.removeFromSet(M);
|
|
3479
3463
|
} else i ? i.isInSet(h.marks) && (b = [i]) : b = h.marks;
|
|
3480
3464
|
if (b && b.length) {
|
|
3481
3465
|
let M = Math.min(y + h.nodeSize, n);
|
|
3482
|
-
for (let
|
|
3483
|
-
let W = b[
|
|
3466
|
+
for (let z = 0; z < b.length; z++) {
|
|
3467
|
+
let W = b[z], G;
|
|
3484
3468
|
for (let j = 0; j < a.length; j++) {
|
|
3485
3469
|
let Y = a[j];
|
|
3486
3470
|
Y.step == f - 1 && W.eq(a[j].style) && (G = Y);
|
|
@@ -3493,20 +3477,20 @@ function xv(u, t, n, i) {
|
|
|
3493
3477
|
function Fu(u, t, n, i = n.contentMatch, a = !0) {
|
|
3494
3478
|
let f = u.doc.nodeAt(t), h = [], y = t + 1;
|
|
3495
3479
|
for (let b = 0; b < f.childCount; b++) {
|
|
3496
|
-
let M = f.child(b),
|
|
3480
|
+
let M = f.child(b), z = y + M.nodeSize, W = i.matchType(M.type);
|
|
3497
3481
|
if (!W)
|
|
3498
|
-
h.push(new pt(y,
|
|
3482
|
+
h.push(new pt(y, z, fe.empty));
|
|
3499
3483
|
else {
|
|
3500
3484
|
i = W;
|
|
3501
3485
|
for (let G = 0; G < M.marks.length; G++)
|
|
3502
|
-
n.allowsMarkType(M.marks[G].type) || u.step(new kn(y,
|
|
3486
|
+
n.allowsMarkType(M.marks[G].type) || u.step(new kn(y, z, M.marks[G]));
|
|
3503
3487
|
if (a && M.isText && n.whitespace != "pre") {
|
|
3504
3488
|
let G, j = /\r?\n|\r/g, Y;
|
|
3505
3489
|
for (; G = j.exec(M.text); )
|
|
3506
3490
|
Y || (Y = new fe(ie.from(n.schema.text(" ", n.allowedMarks(M.marks))), 0, 0)), h.push(new pt(y + G.index, y + G.index + G[0].length, Y));
|
|
3507
3491
|
}
|
|
3508
3492
|
}
|
|
3509
|
-
y =
|
|
3493
|
+
y = z;
|
|
3510
3494
|
}
|
|
3511
3495
|
if (!i.validEnd) {
|
|
3512
3496
|
let b = i.fillBefore(ie.empty, !0);
|
|
@@ -3515,7 +3499,7 @@ function Fu(u, t, n, i = n.contentMatch, a = !0) {
|
|
|
3515
3499
|
for (let b = h.length - 1; b >= 0; b--)
|
|
3516
3500
|
u.step(h[b]);
|
|
3517
3501
|
}
|
|
3518
|
-
function
|
|
3502
|
+
function wv(u, t, n) {
|
|
3519
3503
|
return (t == 0 || u.canReplace(t, u.childCount)) && (n == u.childCount || u.canReplace(0, n));
|
|
3520
3504
|
}
|
|
3521
3505
|
function la(u) {
|
|
@@ -3524,36 +3508,36 @@ function la(u) {
|
|
|
3524
3508
|
let h = u.$from.node(i), y = u.$from.index(i) + a, b = u.$to.indexAfter(i) - f;
|
|
3525
3509
|
if (i < u.depth && h.canReplace(y, b, n))
|
|
3526
3510
|
return i;
|
|
3527
|
-
if (i == 0 || h.type.spec.isolating || !
|
|
3511
|
+
if (i == 0 || h.type.spec.isolating || !wv(h, y, b))
|
|
3528
3512
|
break;
|
|
3529
3513
|
y && (a = 1), b < h.childCount && (f = 1);
|
|
3530
3514
|
}
|
|
3531
3515
|
return null;
|
|
3532
3516
|
}
|
|
3533
|
-
function
|
|
3534
|
-
let { $from: i, $to: a, depth: f } = t, h = i.before(f + 1), y = a.after(f + 1), b = h, M = y,
|
|
3517
|
+
function bv(u, t, n) {
|
|
3518
|
+
let { $from: i, $to: a, depth: f } = t, h = i.before(f + 1), y = a.after(f + 1), b = h, M = y, z = ie.empty, W = 0;
|
|
3535
3519
|
for (let Y = f, se = !1; Y > n; Y--)
|
|
3536
|
-
se || i.index(Y) > 0 ? (se = !0,
|
|
3520
|
+
se || i.index(Y) > 0 ? (se = !0, z = ie.from(i.node(Y).copy(z)), W++) : b--;
|
|
3537
3521
|
let G = ie.empty, j = 0;
|
|
3538
3522
|
for (let Y = f, se = !1; Y > n; Y--)
|
|
3539
3523
|
se || a.after(Y + 1) < a.end(Y) ? (se = !0, G = ie.from(a.node(Y).copy(G)), j++) : M++;
|
|
3540
|
-
u.step(new qt(b, M, h, y, new fe(
|
|
3524
|
+
u.step(new qt(b, M, h, y, new fe(z.append(G), W, j), z.size - W, !0));
|
|
3541
3525
|
}
|
|
3542
|
-
function
|
|
3543
|
-
let a =
|
|
3544
|
-
return f ? a.map(
|
|
3526
|
+
function xv(u, t, n = null, i = u) {
|
|
3527
|
+
let a = _v(u, t), f = a && Sv(i, t);
|
|
3528
|
+
return f ? a.map(zf).concat({ type: t, attrs: n }).concat(f.map(zf)) : null;
|
|
3545
3529
|
}
|
|
3546
|
-
function
|
|
3530
|
+
function zf(u) {
|
|
3547
3531
|
return { type: u, attrs: null };
|
|
3548
3532
|
}
|
|
3549
|
-
function
|
|
3533
|
+
function _v(u, t) {
|
|
3550
3534
|
let { parent: n, startIndex: i, endIndex: a } = u, f = n.contentMatchAt(i).findWrapping(t);
|
|
3551
3535
|
if (!f)
|
|
3552
3536
|
return null;
|
|
3553
3537
|
let h = f.length ? f[0] : t;
|
|
3554
3538
|
return n.canReplaceWith(i, a, h) ? f : null;
|
|
3555
3539
|
}
|
|
3556
|
-
function
|
|
3540
|
+
function Sv(u, t) {
|
|
3557
3541
|
let { parent: n, startIndex: i, endIndex: a } = u, f = n.child(i), h = t.contentMatch.findWrapping(f.type);
|
|
3558
3542
|
if (!h)
|
|
3559
3543
|
return null;
|
|
@@ -3562,7 +3546,7 @@ function Av(u, t) {
|
|
|
3562
3546
|
b = b.matchType(n.child(M).type);
|
|
3563
3547
|
return !b || !b.validEnd ? null : h;
|
|
3564
3548
|
}
|
|
3565
|
-
function
|
|
3549
|
+
function kv(u, t, n) {
|
|
3566
3550
|
let i = ie.empty;
|
|
3567
3551
|
for (let h = n.length - 1; h >= 0; h--) {
|
|
3568
3552
|
if (i.size) {
|
|
@@ -3575,20 +3559,20 @@ function Ov(u, t, n) {
|
|
|
3575
3559
|
let a = t.start, f = t.end;
|
|
3576
3560
|
u.step(new qt(a, f, a, f, new fe(i, 0, 0), n.length, !0));
|
|
3577
3561
|
}
|
|
3578
|
-
function
|
|
3562
|
+
function Ev(u, t, n, i, a) {
|
|
3579
3563
|
if (!i.isTextblock)
|
|
3580
3564
|
throw new RangeError("Type given to setBlockType should be a textblock");
|
|
3581
3565
|
let f = u.steps.length;
|
|
3582
3566
|
u.doc.nodesBetween(t, n, (h, y) => {
|
|
3583
3567
|
let b = typeof a == "function" ? a(h) : a;
|
|
3584
|
-
if (h.isTextblock && !h.hasMarkup(i, b) &&
|
|
3568
|
+
if (h.isTextblock && !h.hasMarkup(i, b) && Av(u.doc, u.mapping.slice(f).map(y), i)) {
|
|
3585
3569
|
let M = null;
|
|
3586
3570
|
if (i.schema.linebreakReplacement) {
|
|
3587
3571
|
let j = i.whitespace == "pre", Y = !!i.contentMatch.matchType(i.schema.linebreakReplacement);
|
|
3588
3572
|
j && !Y ? M = !1 : !j && Y && (M = !0);
|
|
3589
3573
|
}
|
|
3590
3574
|
M === !1 && bc(u, h, y, f), Fu(u, u.mapping.slice(f).map(y, 1), i, void 0, M === null);
|
|
3591
|
-
let
|
|
3575
|
+
let z = u.mapping.slice(f), W = z.map(y, 1), G = z.map(y + h.nodeSize, 1);
|
|
3592
3576
|
return u.step(new qt(W, G, W + 1, G - 1, new fe(ie.from(i.create(b, null, h.marks)), 0, 0), 1, !0)), M === !0 && wc(u, h, y, f), !1;
|
|
3593
3577
|
}
|
|
3594
3578
|
});
|
|
@@ -3613,11 +3597,11 @@ function bc(u, t, n, i) {
|
|
|
3613
3597
|
}
|
|
3614
3598
|
});
|
|
3615
3599
|
}
|
|
3616
|
-
function
|
|
3600
|
+
function Av(u, t, n) {
|
|
3617
3601
|
let i = u.resolve(t), a = i.index();
|
|
3618
3602
|
return i.parent.canReplaceWith(a, a + 1, n);
|
|
3619
3603
|
}
|
|
3620
|
-
function
|
|
3604
|
+
function Ov(u, t, n, i, a) {
|
|
3621
3605
|
let f = u.doc.nodeAt(t);
|
|
3622
3606
|
if (!f)
|
|
3623
3607
|
throw new RangeError("No node at given position");
|
|
@@ -3633,25 +3617,25 @@ function Qo(u, t, n = 1, i) {
|
|
|
3633
3617
|
let a = u.resolve(t), f = a.depth - n, h = i && i[i.length - 1] || a.parent;
|
|
3634
3618
|
if (f < 0 || a.parent.type.spec.isolating || !a.parent.canReplace(a.index(), a.parent.childCount) || !h.type.validContent(a.parent.content.cutByIndex(a.index(), a.parent.childCount)))
|
|
3635
3619
|
return !1;
|
|
3636
|
-
for (let M = a.depth - 1,
|
|
3620
|
+
for (let M = a.depth - 1, z = n - 2; M > f; M--, z--) {
|
|
3637
3621
|
let W = a.node(M), G = a.index(M);
|
|
3638
3622
|
if (W.type.spec.isolating)
|
|
3639
3623
|
return !1;
|
|
3640
|
-
let j = W.content.cutByIndex(G, W.childCount), Y = i && i[
|
|
3624
|
+
let j = W.content.cutByIndex(G, W.childCount), Y = i && i[z + 1];
|
|
3641
3625
|
Y && (j = j.replaceChild(0, Y.type.create(Y.attrs)));
|
|
3642
|
-
let se = i && i[
|
|
3626
|
+
let se = i && i[z] || W;
|
|
3643
3627
|
if (!W.canReplace(G + 1, W.childCount) || !se.type.validContent(j))
|
|
3644
3628
|
return !1;
|
|
3645
3629
|
}
|
|
3646
3630
|
let y = a.indexAfter(f), b = i && i[0];
|
|
3647
3631
|
return a.node(f).canReplaceWith(y, y, b ? b.type : a.node(f + 1).type);
|
|
3648
3632
|
}
|
|
3649
|
-
function
|
|
3633
|
+
function Iv(u, t, n = 1, i) {
|
|
3650
3634
|
let a = u.doc.resolve(t), f = ie.empty, h = ie.empty;
|
|
3651
3635
|
for (let y = a.depth, b = a.depth - n, M = n - 1; y > b; y--, M--) {
|
|
3652
3636
|
f = ie.from(a.node(y).copy(f));
|
|
3653
|
-
let
|
|
3654
|
-
h = ie.from(
|
|
3637
|
+
let z = i && i[M];
|
|
3638
|
+
h = ie.from(z ? z.type.create(z.attrs, h) : a.node(y).copy(h));
|
|
3655
3639
|
}
|
|
3656
3640
|
u.step(new pt(t, t, new fe(f.append(h), n, n), !0));
|
|
3657
3641
|
}
|
|
@@ -3659,7 +3643,7 @@ function fa(u, t) {
|
|
|
3659
3643
|
let n = u.resolve(t), i = n.index();
|
|
3660
3644
|
return xc(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(i, i + 1);
|
|
3661
3645
|
}
|
|
3662
|
-
function
|
|
3646
|
+
function Cv(u, t) {
|
|
3663
3647
|
t.content.size || u.type.compatibleContent(t.type);
|
|
3664
3648
|
let n = u.contentMatchAt(u.childCount), { linebreakReplacement: i } = u.type.schema;
|
|
3665
3649
|
for (let a = 0; a < t.childCount; a++) {
|
|
@@ -3670,7 +3654,7 @@ function Mv(u, t) {
|
|
|
3670
3654
|
return n.validEnd;
|
|
3671
3655
|
}
|
|
3672
3656
|
function xc(u, t) {
|
|
3673
|
-
return !!(u && t && !u.isLeaf &&
|
|
3657
|
+
return !!(u && t && !u.isLeaf && Cv(u, t));
|
|
3674
3658
|
}
|
|
3675
3659
|
function _c(u, t, n = -1) {
|
|
3676
3660
|
let i = u.resolve(t);
|
|
@@ -3683,26 +3667,26 @@ function _c(u, t, n = -1) {
|
|
|
3683
3667
|
t = n < 0 ? i.before(a) : i.after(a);
|
|
3684
3668
|
}
|
|
3685
3669
|
}
|
|
3686
|
-
function
|
|
3670
|
+
function Tv(u, t, n) {
|
|
3687
3671
|
let i = null, { linebreakReplacement: a } = u.doc.type.schema, f = u.doc.resolve(t - n), h = f.node().type;
|
|
3688
3672
|
if (a && h.inlineContent) {
|
|
3689
|
-
let
|
|
3690
|
-
|
|
3673
|
+
let z = h.whitespace == "pre", W = !!h.contentMatch.matchType(a);
|
|
3674
|
+
z && !W ? i = !1 : !z && W && (i = !0);
|
|
3691
3675
|
}
|
|
3692
3676
|
let y = u.steps.length;
|
|
3693
3677
|
if (i === !1) {
|
|
3694
|
-
let
|
|
3695
|
-
bc(u,
|
|
3678
|
+
let z = u.doc.resolve(t + n);
|
|
3679
|
+
bc(u, z.node(), z.before(), y);
|
|
3696
3680
|
}
|
|
3697
3681
|
h.inlineContent && Fu(u, t + n - 1, h, f.node().contentMatchAt(f.index()), i == null);
|
|
3698
3682
|
let b = u.mapping.slice(y), M = b.map(t - n);
|
|
3699
3683
|
if (u.step(new pt(M, b.map(t + n, -1), fe.empty, !0)), i === !0) {
|
|
3700
|
-
let
|
|
3701
|
-
wc(u,
|
|
3684
|
+
let z = u.doc.resolve(M);
|
|
3685
|
+
wc(u, z.node(), z.before(), u.steps.length);
|
|
3702
3686
|
}
|
|
3703
3687
|
return u;
|
|
3704
3688
|
}
|
|
3705
|
-
function
|
|
3689
|
+
function Rv(u, t, n) {
|
|
3706
3690
|
let i = u.resolve(t);
|
|
3707
3691
|
if (i.parent.canReplaceWith(i.index(), i.index(), n))
|
|
3708
3692
|
return t;
|
|
@@ -3724,7 +3708,7 @@ function Nv(u, t, n) {
|
|
|
3724
3708
|
}
|
|
3725
3709
|
return null;
|
|
3726
3710
|
}
|
|
3727
|
-
function
|
|
3711
|
+
function E0(u, t, n) {
|
|
3728
3712
|
let i = u.resolve(t);
|
|
3729
3713
|
if (!n.content.size)
|
|
3730
3714
|
return t;
|
|
@@ -3733,14 +3717,14 @@ function I0(u, t, n) {
|
|
|
3733
3717
|
a = a.firstChild.content;
|
|
3734
3718
|
for (let f = 1; f <= (n.openStart == 0 && n.size ? 2 : 1); f++)
|
|
3735
3719
|
for (let h = i.depth; h >= 0; h--) {
|
|
3736
|
-
let y = h == i.depth ? 0 : i.pos <= (i.start(h + 1) + i.end(h + 1)) / 2 ? -1 : 1, b = i.index(h) + (y > 0 ? 1 : 0), M = i.node(h),
|
|
3720
|
+
let y = h == i.depth ? 0 : i.pos <= (i.start(h + 1) + i.end(h + 1)) / 2 ? -1 : 1, b = i.index(h) + (y > 0 ? 1 : 0), M = i.node(h), z = !1;
|
|
3737
3721
|
if (f == 1)
|
|
3738
|
-
|
|
3722
|
+
z = M.canReplace(b, b, a);
|
|
3739
3723
|
else {
|
|
3740
3724
|
let W = M.contentMatchAt(b).findWrapping(a.firstChild.type);
|
|
3741
|
-
|
|
3725
|
+
z = W && M.canReplaceWith(b, b, W[0]);
|
|
3742
3726
|
}
|
|
3743
|
-
if (
|
|
3727
|
+
if (z)
|
|
3744
3728
|
return y == 0 ? i.pos : y < 0 ? i.before(h + 1) : i.after(h + 1);
|
|
3745
3729
|
}
|
|
3746
3730
|
return null;
|
|
@@ -3749,12 +3733,12 @@ function Lu(u, t, n = t, i = fe.empty) {
|
|
|
3749
3733
|
if (t == n && !i.size)
|
|
3750
3734
|
return null;
|
|
3751
3735
|
let a = u.resolve(t), f = u.resolve(n);
|
|
3752
|
-
return Sc(a, f, i) ? new pt(t, n, i) : new
|
|
3736
|
+
return Sc(a, f, i) ? new pt(t, n, i) : new Mv(a, f, i).fit();
|
|
3753
3737
|
}
|
|
3754
3738
|
function Sc(u, t, n) {
|
|
3755
3739
|
return !n.openStart && !n.openEnd && u.start() == t.start() && u.parent.canReplace(u.index(), t.index(), n.content);
|
|
3756
3740
|
}
|
|
3757
|
-
class
|
|
3741
|
+
class Mv {
|
|
3758
3742
|
constructor(t, n, i) {
|
|
3759
3743
|
this.$from = t, this.$to = n, this.unplaced = i, this.frontier = [], this.placed = ie.empty;
|
|
3760
3744
|
for (let a = 0; a <= t.depth; a++) {
|
|
@@ -3803,11 +3787,11 @@ class Dv {
|
|
|
3803
3787
|
i ? (f = Su(this.unplaced.content, i - 1).firstChild, a = f.content) : a = this.unplaced.content;
|
|
3804
3788
|
let h = a.firstChild;
|
|
3805
3789
|
for (let y = this.depth; y >= 0; y--) {
|
|
3806
|
-
let { type: b, match: M } = this.frontier[y],
|
|
3790
|
+
let { type: b, match: M } = this.frontier[y], z, W = null;
|
|
3807
3791
|
if (n == 1 && (h ? M.matchType(h.type) || (W = M.fillBefore(ie.from(h), !1)) : f && b.compatibleContent(f.type)))
|
|
3808
3792
|
return { sliceDepth: i, frontierDepth: y, parent: f, inject: W };
|
|
3809
|
-
if (n == 2 && h && (
|
|
3810
|
-
return { sliceDepth: i, frontierDepth: y, parent: f, wrap:
|
|
3793
|
+
if (n == 2 && h && (z = M.findWrapping(h.type)))
|
|
3794
|
+
return { sliceDepth: i, frontierDepth: y, parent: f, wrap: z };
|
|
3811
3795
|
if (f && M.matchType(f.type))
|
|
3812
3796
|
break;
|
|
3813
3797
|
}
|
|
@@ -3834,10 +3818,10 @@ class Dv {
|
|
|
3834
3818
|
if (f)
|
|
3835
3819
|
for (let se = 0; se < f.length; se++)
|
|
3836
3820
|
this.openFrontierNode(f[se]);
|
|
3837
|
-
let h = this.unplaced, y = i ? i.content : h.content, b = h.openStart - t, M = 0,
|
|
3821
|
+
let h = this.unplaced, y = i ? i.content : h.content, b = h.openStart - t, M = 0, z = [], { match: W, type: G } = this.frontier[n];
|
|
3838
3822
|
if (a) {
|
|
3839
3823
|
for (let se = 0; se < a.childCount; se++)
|
|
3840
|
-
|
|
3824
|
+
z.push(a.child(se));
|
|
3841
3825
|
W = W.matchFragment(a);
|
|
3842
3826
|
}
|
|
3843
3827
|
let j = y.size + t - (h.content.size - h.openEnd);
|
|
@@ -3845,10 +3829,10 @@ class Dv {
|
|
|
3845
3829
|
let se = y.child(M), me = W.matchType(se.type);
|
|
3846
3830
|
if (!me)
|
|
3847
3831
|
break;
|
|
3848
|
-
M++, (M > 1 || b == 0 || se.content.size) && (W = me,
|
|
3832
|
+
M++, (M > 1 || b == 0 || se.content.size) && (W = me, z.push(kc(se.mark(G.allowedMarks(se.marks)), M == 1 ? b : 0, M == y.childCount ? j : -1)));
|
|
3849
3833
|
}
|
|
3850
3834
|
let Y = M == y.childCount;
|
|
3851
|
-
Y || (j = -1), this.placed = Bs(this.placed, n, ie.from(
|
|
3835
|
+
Y || (j = -1), this.placed = Bs(this.placed, n, ie.from(z)), this.frontier[n].match = W, Y && j < 0 && i && i.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
3852
3836
|
for (let se = 0, me = y; se < j; se++) {
|
|
3853
3837
|
let Te = me.lastChild;
|
|
3854
3838
|
this.frontier.push({ type: Te.type, match: Te.contentMatchAt(Te.childCount) }), me = Te.content;
|
|
@@ -3871,8 +3855,8 @@ class Dv {
|
|
|
3871
3855
|
let { match: i, type: a } = this.frontier[n], f = n < t.depth && t.end(n + 1) == t.pos + (t.depth - (n + 1)), h = ku(t, n, a, i, f);
|
|
3872
3856
|
if (h) {
|
|
3873
3857
|
for (let y = n - 1; y >= 0; y--) {
|
|
3874
|
-
let { match: b, type: M } = this.frontier[y],
|
|
3875
|
-
if (!
|
|
3858
|
+
let { match: b, type: M } = this.frontier[y], z = ku(t, y, M, b, !0);
|
|
3859
|
+
if (!z || z.childCount)
|
|
3876
3860
|
continue e;
|
|
3877
3861
|
}
|
|
3878
3862
|
return { depth: n, fit: h, move: f ? t.doc.resolve(t.after(n + 1)) : t };
|
|
@@ -3923,18 +3907,18 @@ function ku(u, t, n, i, a) {
|
|
|
3923
3907
|
if (h == f.childCount && !n.compatibleContent(f.type))
|
|
3924
3908
|
return null;
|
|
3925
3909
|
let y = i.fillBefore(f.content, !0, h);
|
|
3926
|
-
return y && !
|
|
3910
|
+
return y && !Pv(n, f.content, h) ? y : null;
|
|
3927
3911
|
}
|
|
3928
|
-
function
|
|
3912
|
+
function Pv(u, t, n) {
|
|
3929
3913
|
for (let i = n; i < t.childCount; i++)
|
|
3930
3914
|
if (!u.allowsMarks(t.child(i).marks))
|
|
3931
3915
|
return !0;
|
|
3932
3916
|
return !1;
|
|
3933
3917
|
}
|
|
3934
|
-
function
|
|
3918
|
+
function Nv(u) {
|
|
3935
3919
|
return u.spec.defining || u.spec.definingForContent;
|
|
3936
3920
|
}
|
|
3937
|
-
function
|
|
3921
|
+
function Dv(u, t, n, i) {
|
|
3938
3922
|
if (!i.size)
|
|
3939
3923
|
return u.deleteRange(t, n);
|
|
3940
3924
|
let a = u.doc.resolve(t), f = u.doc.resolve(n);
|
|
@@ -3950,22 +3934,22 @@ function Lv(u, t, n, i) {
|
|
|
3950
3934
|
break;
|
|
3951
3935
|
h.indexOf(G) > -1 ? y = G : a.before(G) == j && h.splice(1, 0, -G);
|
|
3952
3936
|
}
|
|
3953
|
-
let b = h.indexOf(y), M = [],
|
|
3937
|
+
let b = h.indexOf(y), M = [], z = i.openStart;
|
|
3954
3938
|
for (let G = i.content, j = 0; ; j++) {
|
|
3955
3939
|
let Y = G.firstChild;
|
|
3956
3940
|
if (M.push(Y), j == i.openStart)
|
|
3957
3941
|
break;
|
|
3958
3942
|
G = Y.content;
|
|
3959
3943
|
}
|
|
3960
|
-
for (let G =
|
|
3961
|
-
let j = M[G], Y =
|
|
3944
|
+
for (let G = z - 1; G >= 0; G--) {
|
|
3945
|
+
let j = M[G], Y = Nv(j.type);
|
|
3962
3946
|
if (Y && !j.sameMarkup(a.node(Math.abs(y) - 1)))
|
|
3963
|
-
|
|
3947
|
+
z = G;
|
|
3964
3948
|
else if (Y || !j.type.isTextblock)
|
|
3965
3949
|
break;
|
|
3966
3950
|
}
|
|
3967
3951
|
for (let G = i.openStart; G >= 0; G--) {
|
|
3968
|
-
let j = (G +
|
|
3952
|
+
let j = (G + z + 1) % (i.openStart + 1), Y = M[j];
|
|
3969
3953
|
if (Y)
|
|
3970
3954
|
for (let se = 0; se < h.length; se++) {
|
|
3971
3955
|
let me = h[(se + b) % h.length], Te = !0;
|
|
@@ -3992,14 +3976,14 @@ function Ec(u, t, n, i, a) {
|
|
|
3992
3976
|
}
|
|
3993
3977
|
return u;
|
|
3994
3978
|
}
|
|
3995
|
-
function
|
|
3979
|
+
function Bv(u, t, n, i) {
|
|
3996
3980
|
if (!i.isInline && t == n && u.doc.resolve(t).parent.content.size) {
|
|
3997
|
-
let a =
|
|
3981
|
+
let a = Rv(u.doc, t, i.type);
|
|
3998
3982
|
a != null && (t = n = a);
|
|
3999
3983
|
}
|
|
4000
3984
|
u.replaceRange(t, n, new fe(ie.from(i), 0, 0));
|
|
4001
3985
|
}
|
|
4002
|
-
function
|
|
3986
|
+
function Fv(u, t, n) {
|
|
4003
3987
|
let i = u.doc.resolve(t), a = u.doc.resolve(n), f = Ac(i, a);
|
|
4004
3988
|
for (let h = 0; h < f.length; h++) {
|
|
4005
3989
|
let y = f[h], b = h == f.length - 1;
|
|
@@ -4042,7 +4026,7 @@ class Wi extends dt {
|
|
|
4042
4026
|
return et.fromReplace(t, this.pos, this.pos + 1, new fe(ie.from(a), 0, n.isLeaf ? 0 : 1));
|
|
4043
4027
|
}
|
|
4044
4028
|
getMap() {
|
|
4045
|
-
return
|
|
4029
|
+
return zt.empty;
|
|
4046
4030
|
}
|
|
4047
4031
|
invert(t) {
|
|
4048
4032
|
return new Wi(this.pos, this.attr, t.nodeAt(this.pos).attrs[this.attr]);
|
|
@@ -4077,7 +4061,7 @@ class Us extends dt {
|
|
|
4077
4061
|
return et.ok(i);
|
|
4078
4062
|
}
|
|
4079
4063
|
getMap() {
|
|
4080
|
-
return
|
|
4064
|
+
return zt.empty;
|
|
4081
4065
|
}
|
|
4082
4066
|
invert(t) {
|
|
4083
4067
|
return new Us(this.attr, t.attrs[this.attr]);
|
|
@@ -4104,7 +4088,7 @@ Ui = function u(t) {
|
|
|
4104
4088
|
Ui.prototype = Object.create(Error.prototype);
|
|
4105
4089
|
Ui.prototype.constructor = Ui;
|
|
4106
4090
|
Ui.prototype.name = "TransformError";
|
|
4107
|
-
class
|
|
4091
|
+
class Lv {
|
|
4108
4092
|
/**
|
|
4109
4093
|
Create a transform that starts with the given document.
|
|
4110
4094
|
*/
|
|
@@ -4211,7 +4195,7 @@ class qv {
|
|
|
4211
4195
|
control over what happens.
|
|
4212
4196
|
*/
|
|
4213
4197
|
replaceRange(t, n, i) {
|
|
4214
|
-
return
|
|
4198
|
+
return Dv(this, t, n, i), this;
|
|
4215
4199
|
}
|
|
4216
4200
|
/**
|
|
4217
4201
|
Replace the given range with a node, but use `from` and `to` as
|
|
@@ -4223,14 +4207,14 @@ class qv {
|
|
|
4223
4207
|
that parent node.
|
|
4224
4208
|
*/
|
|
4225
4209
|
replaceRangeWith(t, n, i) {
|
|
4226
|
-
return
|
|
4210
|
+
return Bv(this, t, n, i), this;
|
|
4227
4211
|
}
|
|
4228
4212
|
/**
|
|
4229
4213
|
Delete the given range, expanding it to cover fully covered
|
|
4230
4214
|
parent nodes until a valid replace is found.
|
|
4231
4215
|
*/
|
|
4232
4216
|
deleteRange(t, n) {
|
|
4233
|
-
return
|
|
4217
|
+
return Fv(this, t, n), this;
|
|
4234
4218
|
}
|
|
4235
4219
|
/**
|
|
4236
4220
|
Split the content in the given range off from its parent, if there
|
|
@@ -4240,14 +4224,14 @@ class qv {
|
|
|
4240
4224
|
sure the lift is valid.
|
|
4241
4225
|
*/
|
|
4242
4226
|
lift(t, n) {
|
|
4243
|
-
return
|
|
4227
|
+
return bv(this, t, n), this;
|
|
4244
4228
|
}
|
|
4245
4229
|
/**
|
|
4246
4230
|
Join the blocks around the given position. If depth is 2, their
|
|
4247
4231
|
last and first siblings are also joined, and so on.
|
|
4248
4232
|
*/
|
|
4249
4233
|
join(t, n = 1) {
|
|
4250
|
-
return
|
|
4234
|
+
return Tv(this, t, n), this;
|
|
4251
4235
|
}
|
|
4252
4236
|
/**
|
|
4253
4237
|
Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
|
|
@@ -4255,21 +4239,21 @@ class qv {
|
|
|
4255
4239
|
probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping).
|
|
4256
4240
|
*/
|
|
4257
4241
|
wrap(t, n) {
|
|
4258
|
-
return
|
|
4242
|
+
return kv(this, t, n), this;
|
|
4259
4243
|
}
|
|
4260
4244
|
/**
|
|
4261
4245
|
Set the type of all textblocks (partly) between `from` and `to` to
|
|
4262
4246
|
the given node type with the given attributes.
|
|
4263
4247
|
*/
|
|
4264
4248
|
setBlockType(t, n = t, i, a = null) {
|
|
4265
|
-
return
|
|
4249
|
+
return Ev(this, t, n, i, a), this;
|
|
4266
4250
|
}
|
|
4267
4251
|
/**
|
|
4268
4252
|
Change the type, attributes, and/or marks of the node at `pos`.
|
|
4269
4253
|
When `type` isn't given, the existing node type is preserved,
|
|
4270
4254
|
*/
|
|
4271
4255
|
setNodeMarkup(t, n, i = null, a) {
|
|
4272
|
-
return
|
|
4256
|
+
return Ov(this, t, n, i, a), this;
|
|
4273
4257
|
}
|
|
4274
4258
|
/**
|
|
4275
4259
|
Set a single attribute on a given node to a new value.
|
|
@@ -4318,13 +4302,13 @@ class qv {
|
|
|
4318
4302
|
use after the split (with the outermost nodes coming first).
|
|
4319
4303
|
*/
|
|
4320
4304
|
split(t, n = 1, i) {
|
|
4321
|
-
return
|
|
4305
|
+
return Iv(this, t, n, i), this;
|
|
4322
4306
|
}
|
|
4323
4307
|
/**
|
|
4324
4308
|
Add the given mark to the inline content between `from` and `to`.
|
|
4325
4309
|
*/
|
|
4326
4310
|
addMark(t, n, i) {
|
|
4327
|
-
return
|
|
4311
|
+
return yv(this, t, n, i), this;
|
|
4328
4312
|
}
|
|
4329
4313
|
/**
|
|
4330
4314
|
Remove marks from inline nodes between `from` and `to`. When
|
|
@@ -4333,7 +4317,7 @@ class qv {
|
|
|
4333
4317
|
remove all marks of any type.
|
|
4334
4318
|
*/
|
|
4335
4319
|
removeMark(t, n, i) {
|
|
4336
|
-
return
|
|
4320
|
+
return vv(this, t, n, i), this;
|
|
4337
4321
|
}
|
|
4338
4322
|
/**
|
|
4339
4323
|
Removes all marks and nodes from the content of the node at
|
|
@@ -4353,7 +4337,7 @@ class qe {
|
|
|
4353
4337
|
`$head`.
|
|
4354
4338
|
*/
|
|
4355
4339
|
constructor(t, n, i) {
|
|
4356
|
-
this.$anchor = t, this.$head = n, this.ranges = i || [new
|
|
4340
|
+
this.$anchor = t, this.$head = n, this.ranges = i || [new zv(t.min(n), t.max(n))];
|
|
4357
4341
|
}
|
|
4358
4342
|
/**
|
|
4359
4343
|
The selection's anchor, as an unresolved position.
|
|
@@ -4417,8 +4401,8 @@ class qe {
|
|
|
4417
4401
|
a = i, i = i.lastChild;
|
|
4418
4402
|
let f = t.steps.length, h = this.ranges;
|
|
4419
4403
|
for (let y = 0; y < h.length; y++) {
|
|
4420
|
-
let { $from: b, $to: M } = h[y],
|
|
4421
|
-
t.replaceRange(
|
|
4404
|
+
let { $from: b, $to: M } = h[y], z = t.mapping.slice(f);
|
|
4405
|
+
t.replaceRange(z.map(b.pos), z.map(M.pos), y ? fe.empty : n), y == 0 && Wf(t, f, (i ? i.isInline : a && a.isTextblock) ? -1 : 1);
|
|
4422
4406
|
}
|
|
4423
4407
|
}
|
|
4424
4408
|
/**
|
|
@@ -4428,8 +4412,8 @@ class qe {
|
|
|
4428
4412
|
replaceWith(t, n) {
|
|
4429
4413
|
let i = t.steps.length, a = this.ranges;
|
|
4430
4414
|
for (let f = 0; f < a.length; f++) {
|
|
4431
|
-
let { $from: h, $to: y } = a[f], b = t.mapping.slice(i), M = b.map(h.pos),
|
|
4432
|
-
f ? t.deleteRange(M,
|
|
4415
|
+
let { $from: h, $to: y } = a[f], b = t.mapping.slice(i), M = b.map(h.pos), z = b.map(y.pos);
|
|
4416
|
+
f ? t.deleteRange(M, z) : (t.replaceRangeWith(M, z, n), Wf(t, i, n.isInline ? -1 : 1));
|
|
4433
4417
|
}
|
|
4434
4418
|
}
|
|
4435
4419
|
/**
|
|
@@ -4440,11 +4424,11 @@ class qe {
|
|
|
4440
4424
|
found.
|
|
4441
4425
|
*/
|
|
4442
4426
|
static findFrom(t, n, i = !1) {
|
|
4443
|
-
let a = t.parent.inlineContent ? new
|
|
4427
|
+
let a = t.parent.inlineContent ? new Kt(t) : Ki(t.node(0), t.parent, t.pos, t.index(), n, i);
|
|
4444
4428
|
if (a)
|
|
4445
4429
|
return a;
|
|
4446
4430
|
for (let f = t.depth - 1; f >= 0; f--) {
|
|
4447
|
-
let h = n < 0 ?
|
|
4431
|
+
let h = n < 0 ? Ki(t.node(0), t.node(f), t.before(f + 1), t.index(f), n, i) : Ki(t.node(0), t.node(f), t.after(f + 1), t.index(f) + 1, n, i);
|
|
4448
4432
|
if (h)
|
|
4449
4433
|
return h;
|
|
4450
4434
|
}
|
|
@@ -4465,14 +4449,14 @@ class qe {
|
|
|
4465
4449
|
exists.
|
|
4466
4450
|
*/
|
|
4467
4451
|
static atStart(t) {
|
|
4468
|
-
return
|
|
4452
|
+
return Ki(t, t, 0, 0, 1) || new Zt(t);
|
|
4469
4453
|
}
|
|
4470
4454
|
/**
|
|
4471
4455
|
Find the cursor or leaf node selection closest to the end of the
|
|
4472
4456
|
given document.
|
|
4473
4457
|
*/
|
|
4474
4458
|
static atEnd(t) {
|
|
4475
|
-
return
|
|
4459
|
+
return Ki(t, t, t.content.size, t.childCount, -1) || new Zt(t);
|
|
4476
4460
|
}
|
|
4477
4461
|
/**
|
|
4478
4462
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -4507,11 +4491,11 @@ class qe {
|
|
|
4507
4491
|
returns the bookmark for that.
|
|
4508
4492
|
*/
|
|
4509
4493
|
getBookmark() {
|
|
4510
|
-
return
|
|
4494
|
+
return Kt.between(this.$anchor, this.$head).getBookmark();
|
|
4511
4495
|
}
|
|
4512
4496
|
}
|
|
4513
4497
|
qe.prototype.visible = !0;
|
|
4514
|
-
class
|
|
4498
|
+
class zv {
|
|
4515
4499
|
/**
|
|
4516
4500
|
Create a range.
|
|
4517
4501
|
*/
|
|
@@ -4519,11 +4503,11 @@ class Wv {
|
|
|
4519
4503
|
this.$from = t, this.$to = n;
|
|
4520
4504
|
}
|
|
4521
4505
|
}
|
|
4522
|
-
let
|
|
4506
|
+
let Kf = !1;
|
|
4523
4507
|
function qf(u) {
|
|
4524
|
-
!
|
|
4508
|
+
!Kf && !u.parent.inlineContent && (Kf = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + u.parent.type.name + ")"));
|
|
4525
4509
|
}
|
|
4526
|
-
class
|
|
4510
|
+
class Kt extends qe {
|
|
4527
4511
|
/**
|
|
4528
4512
|
Construct a text selection between the given points.
|
|
4529
4513
|
*/
|
|
@@ -4542,7 +4526,7 @@ class zt extends qe {
|
|
|
4542
4526
|
if (!i.parent.inlineContent)
|
|
4543
4527
|
return qe.near(i);
|
|
4544
4528
|
let a = t.resolve(n.map(this.anchor));
|
|
4545
|
-
return new
|
|
4529
|
+
return new Kt(a.parent.inlineContent ? a : i, i);
|
|
4546
4530
|
}
|
|
4547
4531
|
replace(t, n = fe.empty) {
|
|
4548
4532
|
if (super.replace(t, n), n == fe.empty) {
|
|
@@ -4551,7 +4535,7 @@ class zt extends qe {
|
|
|
4551
4535
|
}
|
|
4552
4536
|
}
|
|
4553
4537
|
eq(t) {
|
|
4554
|
-
return t instanceof
|
|
4538
|
+
return t instanceof Kt && t.anchor == this.anchor && t.head == this.head;
|
|
4555
4539
|
}
|
|
4556
4540
|
getBookmark() {
|
|
4557
4541
|
return new ca(this.anchor, this.head);
|
|
@@ -4565,7 +4549,7 @@ class zt extends qe {
|
|
|
4565
4549
|
static fromJSON(t, n) {
|
|
4566
4550
|
if (typeof n.anchor != "number" || typeof n.head != "number")
|
|
4567
4551
|
throw new RangeError("Invalid input for TextSelection.fromJSON");
|
|
4568
|
-
return new
|
|
4552
|
+
return new Kt(t.resolve(n.anchor), t.resolve(n.head));
|
|
4569
4553
|
}
|
|
4570
4554
|
/**
|
|
4571
4555
|
Create a text selection from non-resolved positions.
|
|
@@ -4591,10 +4575,10 @@ class zt extends qe {
|
|
|
4591
4575
|
else
|
|
4592
4576
|
return qe.near(n, i);
|
|
4593
4577
|
}
|
|
4594
|
-
return t.parent.inlineContent || (a == 0 ? t = n : (t = (qe.findFrom(t, -i, !0) || qe.findFrom(t, i, !0)).$anchor, t.pos < n.pos != a < 0 && (t = n))), new
|
|
4578
|
+
return t.parent.inlineContent || (a == 0 ? t = n : (t = (qe.findFrom(t, -i, !0) || qe.findFrom(t, i, !0)).$anchor, t.pos < n.pos != a < 0 && (t = n))), new Kt(t, n);
|
|
4595
4579
|
}
|
|
4596
4580
|
}
|
|
4597
|
-
qe.jsonID("text",
|
|
4581
|
+
qe.jsonID("text", Kt);
|
|
4598
4582
|
class ca {
|
|
4599
4583
|
constructor(t, n) {
|
|
4600
4584
|
this.anchor = t, this.head = n;
|
|
@@ -4603,7 +4587,7 @@ class ca {
|
|
|
4603
4587
|
return new ca(t.map(this.anchor), t.map(this.head));
|
|
4604
4588
|
}
|
|
4605
4589
|
resolve(t) {
|
|
4606
|
-
return
|
|
4590
|
+
return Kt.between(t.resolve(this.anchor), t.resolve(this.head));
|
|
4607
4591
|
}
|
|
4608
4592
|
}
|
|
4609
4593
|
class We extends qe {
|
|
@@ -4629,7 +4613,7 @@ class We extends qe {
|
|
|
4629
4613
|
return { type: "node", anchor: this.anchor };
|
|
4630
4614
|
}
|
|
4631
4615
|
getBookmark() {
|
|
4632
|
-
return new
|
|
4616
|
+
return new zu(this.anchor);
|
|
4633
4617
|
}
|
|
4634
4618
|
/**
|
|
4635
4619
|
@internal
|
|
@@ -4655,13 +4639,13 @@ class We extends qe {
|
|
|
4655
4639
|
}
|
|
4656
4640
|
We.prototype.visible = !1;
|
|
4657
4641
|
qe.jsonID("node", We);
|
|
4658
|
-
class
|
|
4642
|
+
class zu {
|
|
4659
4643
|
constructor(t) {
|
|
4660
4644
|
this.anchor = t;
|
|
4661
4645
|
}
|
|
4662
4646
|
map(t) {
|
|
4663
4647
|
let { deleted: n, pos: i } = t.mapResult(this.anchor);
|
|
4664
|
-
return n ? new ca(i, i) : new
|
|
4648
|
+
return n ? new ca(i, i) : new zu(i);
|
|
4665
4649
|
}
|
|
4666
4650
|
resolve(t) {
|
|
4667
4651
|
let n = t.resolve(this.anchor), i = n.nodeAfter;
|
|
@@ -4699,11 +4683,11 @@ class Zt extends qe {
|
|
|
4699
4683
|
return t instanceof Zt;
|
|
4700
4684
|
}
|
|
4701
4685
|
getBookmark() {
|
|
4702
|
-
return
|
|
4686
|
+
return Kv;
|
|
4703
4687
|
}
|
|
4704
4688
|
}
|
|
4705
4689
|
qe.jsonID("all", Zt);
|
|
4706
|
-
const
|
|
4690
|
+
const Kv = {
|
|
4707
4691
|
map() {
|
|
4708
4692
|
return this;
|
|
4709
4693
|
},
|
|
@@ -4711,16 +4695,16 @@ const Uv = {
|
|
|
4711
4695
|
return new Zt(u);
|
|
4712
4696
|
}
|
|
4713
4697
|
};
|
|
4714
|
-
function
|
|
4698
|
+
function Ki(u, t, n, i, a, f = !1) {
|
|
4715
4699
|
if (t.inlineContent)
|
|
4716
|
-
return
|
|
4700
|
+
return Kt.create(u, n);
|
|
4717
4701
|
for (let h = i - (a > 0 ? 0 : 1); a > 0 ? h < t.childCount : h >= 0; h += a) {
|
|
4718
4702
|
let y = t.child(h);
|
|
4719
4703
|
if (y.isAtom) {
|
|
4720
4704
|
if (!f && We.isSelectable(y))
|
|
4721
4705
|
return We.create(u, n - (a < 0 ? y.nodeSize : 0));
|
|
4722
4706
|
} else {
|
|
4723
|
-
let b =
|
|
4707
|
+
let b = Ki(u, y, n + a, a < 0 ? y.childCount : 0, a, f);
|
|
4724
4708
|
if (b)
|
|
4725
4709
|
return b;
|
|
4726
4710
|
}
|
|
@@ -4736,12 +4720,12 @@ function Wf(u, t, n) {
|
|
|
4736
4720
|
if (!(a instanceof pt || a instanceof qt))
|
|
4737
4721
|
return;
|
|
4738
4722
|
let f = u.mapping.maps[i], h;
|
|
4739
|
-
f.forEach((y, b, M,
|
|
4740
|
-
h == null && (h =
|
|
4723
|
+
f.forEach((y, b, M, z) => {
|
|
4724
|
+
h == null && (h = z);
|
|
4741
4725
|
}), u.setSelection(qe.near(u.doc.resolve(h), n));
|
|
4742
4726
|
}
|
|
4743
4727
|
const Uf = 1, Yo = 2, Jf = 4;
|
|
4744
|
-
class
|
|
4728
|
+
class qv extends Lv {
|
|
4745
4729
|
/**
|
|
4746
4730
|
@internal
|
|
4747
4731
|
*/
|
|
@@ -4900,7 +4884,7 @@ class Fs {
|
|
|
4900
4884
|
this.name = t, this.init = Gf(n.init, i), this.apply = Gf(n.apply, i);
|
|
4901
4885
|
}
|
|
4902
4886
|
}
|
|
4903
|
-
const
|
|
4887
|
+
const Wv = [
|
|
4904
4888
|
new Fs("doc", {
|
|
4905
4889
|
init(u) {
|
|
4906
4890
|
return u.doc || u.schema.topNodeType.createAndFill();
|
|
@@ -4936,7 +4920,7 @@ const Gv = [
|
|
|
4936
4920
|
];
|
|
4937
4921
|
class Au {
|
|
4938
4922
|
constructor(t, n) {
|
|
4939
|
-
this.schema = t, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields =
|
|
4923
|
+
this.schema = t, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Wv.slice(), n && n.forEach((i) => {
|
|
4940
4924
|
if (this.pluginsByKey[i.key])
|
|
4941
4925
|
throw new RangeError("Adding different instances of a keyed plugin (" + i.key + ")");
|
|
4942
4926
|
this.plugins.push(i), this.pluginsByKey[i.key] = i, i.spec.state && this.fields.push(new Fs(i.key, i.spec.state, i));
|
|
@@ -4996,14 +4980,14 @@ class Ls {
|
|
|
4996
4980
|
for (let h = 0; h < this.config.plugins.length; h++) {
|
|
4997
4981
|
let y = this.config.plugins[h];
|
|
4998
4982
|
if (y.spec.appendTransaction) {
|
|
4999
|
-
let b = a ? a[h].n : 0, M = a ? a[h].state : this,
|
|
5000
|
-
if (
|
|
5001
|
-
if (
|
|
4983
|
+
let b = a ? a[h].n : 0, M = a ? a[h].state : this, z = b < n.length && y.spec.appendTransaction.call(y, b ? n.slice(b) : n, M, i);
|
|
4984
|
+
if (z && i.filterTransaction(z, h)) {
|
|
4985
|
+
if (z.setMeta("appendedTransaction", t), !a) {
|
|
5002
4986
|
a = [];
|
|
5003
4987
|
for (let W = 0; W < this.config.plugins.length; W++)
|
|
5004
4988
|
a.push(W < h ? { state: i, n: n.length } : { state: this, n: 0 });
|
|
5005
4989
|
}
|
|
5006
|
-
n.push(
|
|
4990
|
+
n.push(z), i = i.applyInner(z), f = !0;
|
|
5007
4991
|
}
|
|
5008
4992
|
a && (a[h] = { state: i, n: n.length });
|
|
5009
4993
|
}
|
|
@@ -5029,7 +5013,7 @@ class Ls {
|
|
|
5029
5013
|
Accessor that constructs and returns a new [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state.
|
|
5030
5014
|
*/
|
|
5031
5015
|
get tr() {
|
|
5032
|
-
return new
|
|
5016
|
+
return new qv(this);
|
|
5033
5017
|
}
|
|
5034
5018
|
/**
|
|
5035
5019
|
Create a new state.
|
|
@@ -5115,7 +5099,7 @@ function Oc(u, t, n) {
|
|
|
5115
5099
|
}
|
|
5116
5100
|
return n;
|
|
5117
5101
|
}
|
|
5118
|
-
class
|
|
5102
|
+
class A0 {
|
|
5119
5103
|
/**
|
|
5120
5104
|
Create a plugin.
|
|
5121
5105
|
*/
|
|
@@ -5133,7 +5117,7 @@ const Ou = /* @__PURE__ */ Object.create(null);
|
|
|
5133
5117
|
function Ic(u) {
|
|
5134
5118
|
return u in Ou ? u + "$" + ++Ou[u] : (Ou[u] = 0, u + "$");
|
|
5135
5119
|
}
|
|
5136
|
-
class
|
|
5120
|
+
class O0 {
|
|
5137
5121
|
/**
|
|
5138
5122
|
Create a plugin key.
|
|
5139
5123
|
*/
|
|
@@ -5155,12 +5139,12 @@ class T0 {
|
|
|
5155
5139
|
}
|
|
5156
5140
|
}
|
|
5157
5141
|
const Cc = (u, t) => u.selection.empty ? !1 : (t && t(u.tr.deleteSelection().scrollIntoView()), !0);
|
|
5158
|
-
function
|
|
5142
|
+
function Uv(u, t) {
|
|
5159
5143
|
let { $cursor: n } = u.selection;
|
|
5160
5144
|
return !n || (t ? !t.endOfTextblock("backward", u) : n.parentOffset > 0) ? null : n;
|
|
5161
5145
|
}
|
|
5162
|
-
const
|
|
5163
|
-
let i =
|
|
5146
|
+
const Jv = (u, t, n) => {
|
|
5147
|
+
let i = Uv(u, n);
|
|
5164
5148
|
if (!i)
|
|
5165
5149
|
return !1;
|
|
5166
5150
|
let a = Tc(i);
|
|
@@ -5195,7 +5179,7 @@ function Ji(u, t, n = !1) {
|
|
|
5195
5179
|
}
|
|
5196
5180
|
return !1;
|
|
5197
5181
|
}
|
|
5198
|
-
const
|
|
5182
|
+
const Gv = (u, t, n) => {
|
|
5199
5183
|
let { $head: i, empty: a } = u.selection, f = i;
|
|
5200
5184
|
if (!a)
|
|
5201
5185
|
return !1;
|
|
@@ -5217,12 +5201,12 @@ function Tc(u) {
|
|
|
5217
5201
|
}
|
|
5218
5202
|
return null;
|
|
5219
5203
|
}
|
|
5220
|
-
function
|
|
5204
|
+
function Hv(u, t) {
|
|
5221
5205
|
let { $cursor: n } = u.selection;
|
|
5222
5206
|
return !n || (t ? !t.endOfTextblock("forward", u) : n.parentOffset < n.parent.content.size) ? null : n;
|
|
5223
5207
|
}
|
|
5224
|
-
const
|
|
5225
|
-
let i =
|
|
5208
|
+
const $v = (u, t, n) => {
|
|
5209
|
+
let i = Hv(u, n);
|
|
5226
5210
|
if (!i)
|
|
5227
5211
|
return !1;
|
|
5228
5212
|
let a = Rc(i);
|
|
@@ -5242,7 +5226,7 @@ const Yv = (u, t, n) => {
|
|
|
5242
5226
|
}
|
|
5243
5227
|
}
|
|
5244
5228
|
return f.isAtom && a.depth == i.depth - 1 ? (t && t(u.tr.delete(a.pos, a.pos + f.nodeSize).scrollIntoView()), !0) : !1;
|
|
5245
|
-
},
|
|
5229
|
+
}, jv = (u, t, n) => {
|
|
5246
5230
|
let { $head: i, empty: a } = u.selection, f = i;
|
|
5247
5231
|
if (!a)
|
|
5248
5232
|
return !1;
|
|
@@ -5265,7 +5249,7 @@ function Rc(u) {
|
|
|
5265
5249
|
}
|
|
5266
5250
|
return null;
|
|
5267
5251
|
}
|
|
5268
|
-
const
|
|
5252
|
+
const I0 = (u, t) => {
|
|
5269
5253
|
let n = u.selection, i = n instanceof We, a;
|
|
5270
5254
|
if (i) {
|
|
5271
5255
|
if (n.node.isTextblock || !fa(u.doc, n.from))
|
|
@@ -5278,7 +5262,7 @@ const R0 = (u, t) => {
|
|
|
5278
5262
|
i && f.setSelection(We.create(f.doc, a - u.doc.resolve(a).nodeBefore.nodeSize)), t(f.scrollIntoView());
|
|
5279
5263
|
}
|
|
5280
5264
|
return !0;
|
|
5281
|
-
},
|
|
5265
|
+
}, C0 = (u, t) => {
|
|
5282
5266
|
let n = u.selection, i;
|
|
5283
5267
|
if (n instanceof We) {
|
|
5284
5268
|
if (n.node.isTextblock || !fa(u.doc, n.to))
|
|
@@ -5287,15 +5271,15 @@ const R0 = (u, t) => {
|
|
|
5287
5271
|
} else if (i = _c(u.doc, n.to, 1), i == null)
|
|
5288
5272
|
return !1;
|
|
5289
5273
|
return t && t(u.tr.join(i).scrollIntoView()), !0;
|
|
5290
|
-
},
|
|
5274
|
+
}, T0 = (u, t) => {
|
|
5291
5275
|
let { $from: n, $to: i } = u.selection, a = n.blockRange(i), f = a && la(a);
|
|
5292
5276
|
return f == null ? !1 : (t && t(u.tr.lift(a, f).scrollIntoView()), !0);
|
|
5293
|
-
},
|
|
5277
|
+
}, Vv = (u, t) => {
|
|
5294
5278
|
let { $head: n, $anchor: i } = u.selection;
|
|
5295
5279
|
return !n.parent.type.spec.code || !n.sameParent(i) ? !1 : (t && t(u.tr.insertText(`
|
|
5296
5280
|
`).scrollIntoView()), !0);
|
|
5297
5281
|
};
|
|
5298
|
-
function
|
|
5282
|
+
function Ku(u) {
|
|
5299
5283
|
for (let t = 0; t < u.edgeCount; t++) {
|
|
5300
5284
|
let { type: n } = u.edge(t);
|
|
5301
5285
|
if (n.isTextblock && !n.hasRequiredAttrs())
|
|
@@ -5303,11 +5287,11 @@ function zu(u) {
|
|
|
5303
5287
|
}
|
|
5304
5288
|
return null;
|
|
5305
5289
|
}
|
|
5306
|
-
const
|
|
5290
|
+
const Yv = (u, t) => {
|
|
5307
5291
|
let { $head: n, $anchor: i } = u.selection;
|
|
5308
5292
|
if (!n.parent.type.spec.code || !n.sameParent(i))
|
|
5309
5293
|
return !1;
|
|
5310
|
-
let a = n.node(-1), f = n.indexAfter(-1), h =
|
|
5294
|
+
let a = n.node(-1), f = n.indexAfter(-1), h = Ku(a.contentMatchAt(f));
|
|
5311
5295
|
if (!h || !a.canReplaceWith(f, f, h))
|
|
5312
5296
|
return !1;
|
|
5313
5297
|
if (t) {
|
|
@@ -5315,19 +5299,19 @@ const Qv = (u, t) => {
|
|
|
5315
5299
|
b.setSelection(qe.near(b.doc.resolve(y), 1)), t(b.scrollIntoView());
|
|
5316
5300
|
}
|
|
5317
5301
|
return !0;
|
|
5318
|
-
},
|
|
5302
|
+
}, Xv = (u, t) => {
|
|
5319
5303
|
let n = u.selection, { $from: i, $to: a } = n;
|
|
5320
5304
|
if (n instanceof Zt || i.parent.inlineContent || a.parent.inlineContent)
|
|
5321
5305
|
return !1;
|
|
5322
|
-
let f =
|
|
5306
|
+
let f = Ku(a.parent.contentMatchAt(a.indexAfter()));
|
|
5323
5307
|
if (!f || !f.isTextblock)
|
|
5324
5308
|
return !1;
|
|
5325
5309
|
if (t) {
|
|
5326
5310
|
let h = (!i.parentOffset && a.index() < a.parent.childCount ? i : a).pos, y = u.tr.insert(h, f.createAndFill());
|
|
5327
|
-
y.setSelection(
|
|
5311
|
+
y.setSelection(Kt.create(y.doc, h + 1)), t(y.scrollIntoView());
|
|
5328
5312
|
}
|
|
5329
5313
|
return !0;
|
|
5330
|
-
},
|
|
5314
|
+
}, Zv = (u, t) => {
|
|
5331
5315
|
let { $cursor: n } = u.selection;
|
|
5332
5316
|
if (!n || n.parent.content.size)
|
|
5333
5317
|
return !1;
|
|
@@ -5339,7 +5323,7 @@ const Qv = (u, t) => {
|
|
|
5339
5323
|
let i = n.blockRange(), a = i && la(i);
|
|
5340
5324
|
return a == null ? !1 : (t && t(u.tr.lift(i, a).scrollIntoView()), !0);
|
|
5341
5325
|
};
|
|
5342
|
-
function
|
|
5326
|
+
function Qv(u) {
|
|
5343
5327
|
return (t, n) => {
|
|
5344
5328
|
let { $from: i, $to: a } = t.selection;
|
|
5345
5329
|
if (t.selection instanceof We && t.selection.node.isBlock)
|
|
@@ -5349,39 +5333,39 @@ function n0(u) {
|
|
|
5349
5333
|
let f = [], h, y, b = !1, M = !1;
|
|
5350
5334
|
for (let j = i.depth; ; j--)
|
|
5351
5335
|
if (i.node(j).isBlock) {
|
|
5352
|
-
b = i.end(j) == i.pos + (i.depth - j), M = i.start(j) == i.pos - (i.depth - j), y =
|
|
5336
|
+
b = i.end(j) == i.pos + (i.depth - j), M = i.start(j) == i.pos - (i.depth - j), y = Ku(i.node(j - 1).contentMatchAt(i.indexAfter(j - 1))), f.unshift(b && y ? { type: y } : null), h = j;
|
|
5353
5337
|
break;
|
|
5354
5338
|
} else {
|
|
5355
5339
|
if (j == 1)
|
|
5356
5340
|
return !1;
|
|
5357
5341
|
f.unshift(null);
|
|
5358
5342
|
}
|
|
5359
|
-
let
|
|
5360
|
-
(t.selection instanceof
|
|
5361
|
-
let W =
|
|
5362
|
-
if (G || (f[0] = y ? { type: y } : null, G = Qo(
|
|
5343
|
+
let z = t.tr;
|
|
5344
|
+
(t.selection instanceof Kt || t.selection instanceof Zt) && z.deleteSelection();
|
|
5345
|
+
let W = z.mapping.map(i.pos), G = Qo(z.doc, W, f.length, f);
|
|
5346
|
+
if (G || (f[0] = y ? { type: y } : null, G = Qo(z.doc, W, f.length, f)), !G)
|
|
5363
5347
|
return !1;
|
|
5364
|
-
if (
|
|
5365
|
-
let j =
|
|
5366
|
-
y && i.node(h - 1).canReplaceWith(Y.index(), Y.index() + 1, y) &&
|
|
5348
|
+
if (z.split(W, f.length, f), !b && M && i.node(h).type != y) {
|
|
5349
|
+
let j = z.mapping.map(i.before(h)), Y = z.doc.resolve(j);
|
|
5350
|
+
y && i.node(h - 1).canReplaceWith(Y.index(), Y.index() + 1, y) && z.setNodeMarkup(z.mapping.map(i.before(h)), y);
|
|
5367
5351
|
}
|
|
5368
|
-
return n && n(
|
|
5352
|
+
return n && n(z.scrollIntoView()), !0;
|
|
5369
5353
|
};
|
|
5370
5354
|
}
|
|
5371
|
-
const Mc =
|
|
5355
|
+
const Mc = Qv(), R0 = (u, t) => Mc(u, t && ((n) => {
|
|
5372
5356
|
let i = u.storedMarks || u.selection.$to.parentOffset && u.selection.$from.marks();
|
|
5373
5357
|
i && n.ensureMarks(i), t(n);
|
|
5374
|
-
})),
|
|
5358
|
+
})), M0 = (u, t) => {
|
|
5375
5359
|
let { $from: n, to: i } = u.selection, a, f = n.sharedDepth(i);
|
|
5376
5360
|
return f == 0 ? !1 : (a = n.before(f), t && t(u.tr.setSelection(We.create(u.doc, a))), !0);
|
|
5377
5361
|
}, Pc = (u, t) => (t && t(u.tr.setSelection(new Zt(u.doc))), !0);
|
|
5378
|
-
function
|
|
5362
|
+
function e0(u, t, n) {
|
|
5379
5363
|
let i = t.nodeBefore, a = t.nodeAfter, f = t.index();
|
|
5380
5364
|
return !i || !a || !i.type.compatibleContent(a.type) ? !1 : !i.content.size && t.parent.canReplace(f - 1, f) ? (n && n(u.tr.delete(t.pos - i.nodeSize, t.pos).scrollIntoView()), !0) : !t.parent.canReplace(f, f + 1) || !(a.isTextblock || fa(u.doc, t.pos)) ? !1 : (n && n(u.tr.join(t.pos).scrollIntoView()), !0);
|
|
5381
5365
|
}
|
|
5382
5366
|
function Nc(u, t, n, i) {
|
|
5383
5367
|
let a = t.nodeBefore, f = t.nodeAfter, h, y, b = a.type.spec.isolating || f.type.spec.isolating;
|
|
5384
|
-
if (!b &&
|
|
5368
|
+
if (!b && e0(u, t, n))
|
|
5385
5369
|
return !0;
|
|
5386
5370
|
let M = !b && t.parent.canReplace(t.index(), t.index() + 1);
|
|
5387
5371
|
if (M && (h = (y = a.contentMatchAt(a.childCount)).findWrapping(f.type)) && y.matchType(h[0] || f.type).validEnd) {
|
|
@@ -5395,7 +5379,7 @@ function Nc(u, t, n, i) {
|
|
|
5395
5379
|
}
|
|
5396
5380
|
return !0;
|
|
5397
5381
|
}
|
|
5398
|
-
let
|
|
5382
|
+
let z = f.type.spec.isolating || i > 0 && b ? null : qe.findFrom(t, 1), W = z && z.$from.blockRange(z.$to), G = W && la(W);
|
|
5399
5383
|
if (G != null && G >= t.depth)
|
|
5400
5384
|
return n && n(u.tr.lift(W, G).scrollIntoView()), !0;
|
|
5401
5385
|
if (M && Ji(f, "start", !0) && Ji(a, "end")) {
|
|
@@ -5426,17 +5410,17 @@ function Dc(u) {
|
|
|
5426
5410
|
return !1;
|
|
5427
5411
|
f--;
|
|
5428
5412
|
}
|
|
5429
|
-
return a.node(f).isTextblock ? (n && n(t.tr.setSelection(
|
|
5413
|
+
return a.node(f).isTextblock ? (n && n(t.tr.setSelection(Kt.create(t.doc, u < 0 ? a.start(f) : a.end(f)))), !0) : !1;
|
|
5430
5414
|
};
|
|
5431
5415
|
}
|
|
5432
|
-
const
|
|
5433
|
-
function
|
|
5416
|
+
const t0 = Dc(-1), n0 = Dc(1);
|
|
5417
|
+
function P0(u, t = null) {
|
|
5434
5418
|
return function(n, i) {
|
|
5435
|
-
let { $from: a, $to: f } = n.selection, h = a.blockRange(f), y = h &&
|
|
5419
|
+
let { $from: a, $to: f } = n.selection, h = a.blockRange(f), y = h && xv(h, u, t);
|
|
5436
5420
|
return y ? (i && i(n.tr.wrap(h, y).scrollIntoView()), !0) : !1;
|
|
5437
5421
|
};
|
|
5438
5422
|
}
|
|
5439
|
-
function
|
|
5423
|
+
function r0(u, t, n, i) {
|
|
5440
5424
|
for (let a = 0; a < t.length; a++) {
|
|
5441
5425
|
let { $from: f, $to: h } = t[a], y = f.depth == 0 ? u.inlineContent && u.type.allowsMarkType(n) : !1;
|
|
5442
5426
|
if (u.nodesBetween(f.pos, h.pos, (b, M) => {
|
|
@@ -5448,19 +5432,19 @@ function o0(u, t, n, i) {
|
|
|
5448
5432
|
}
|
|
5449
5433
|
return !1;
|
|
5450
5434
|
}
|
|
5451
|
-
function
|
|
5435
|
+
function N0(u, t = null, n) {
|
|
5452
5436
|
return function(i, a) {
|
|
5453
5437
|
let { empty: f, $cursor: h, ranges: y } = i.selection;
|
|
5454
|
-
if (f && !h || !
|
|
5438
|
+
if (f && !h || !r0(i.doc, y, u))
|
|
5455
5439
|
return !1;
|
|
5456
5440
|
if (a)
|
|
5457
5441
|
if (h)
|
|
5458
5442
|
u.isInSet(i.storedMarks || h.marks()) ? a(i.tr.removeStoredMark(u)) : a(i.tr.addStoredMark(u.create(t)));
|
|
5459
5443
|
else {
|
|
5460
5444
|
let b, M = i.tr;
|
|
5461
|
-
b = !y.some((
|
|
5462
|
-
for (let
|
|
5463
|
-
let { $from: W, $to: G } = y[
|
|
5445
|
+
b = !y.some((z) => i.doc.rangeHasMark(z.$from.pos, z.$to.pos, u));
|
|
5446
|
+
for (let z = 0; z < y.length; z++) {
|
|
5447
|
+
let { $from: W, $to: G } = y[z];
|
|
5464
5448
|
if (!b)
|
|
5465
5449
|
M.removeMark(W.pos, G.pos, u);
|
|
5466
5450
|
else {
|
|
@@ -5481,10 +5465,10 @@ function qu(...u) {
|
|
|
5481
5465
|
return !1;
|
|
5482
5466
|
};
|
|
5483
5467
|
}
|
|
5484
|
-
let Iu = qu(Cc,
|
|
5468
|
+
let Iu = qu(Cc, Jv, Gv), Hf = qu(Cc, $v, jv);
|
|
5485
5469
|
const tr = {
|
|
5486
|
-
Enter: qu(
|
|
5487
|
-
"Mod-Enter":
|
|
5470
|
+
Enter: qu(Vv, Xv, Zv, Mc),
|
|
5471
|
+
"Mod-Enter": Yv,
|
|
5488
5472
|
Backspace: Iu,
|
|
5489
5473
|
"Mod-Backspace": Iu,
|
|
5490
5474
|
"Shift-Backspace": Iu,
|
|
@@ -5498,22 +5482,22 @@ const tr = {
|
|
|
5498
5482
|
"Ctrl-Alt-Backspace": tr["Mod-Delete"],
|
|
5499
5483
|
"Alt-Delete": tr["Mod-Delete"],
|
|
5500
5484
|
"Alt-d": tr["Mod-Delete"],
|
|
5501
|
-
"Ctrl-a":
|
|
5502
|
-
"Ctrl-e":
|
|
5485
|
+
"Ctrl-a": t0,
|
|
5486
|
+
"Ctrl-e": n0
|
|
5503
5487
|
};
|
|
5504
5488
|
for (let u in tr)
|
|
5505
5489
|
Bc[u] = tr[u];
|
|
5506
|
-
const
|
|
5490
|
+
const i0 = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform ? os.platform() == "darwin" : !1, D0 = i0 ? Bc : tr, B0 = (u, t) => u.type === t.nodes.bullet_list || u.type === t.nodes.ordered_list, F0 = (u) => {
|
|
5507
5491
|
const { empty: t } = u.state.selection;
|
|
5508
5492
|
t && Pc(u.state, u.dispatch);
|
|
5509
|
-
},
|
|
5493
|
+
}, L0 = (u, t, n) => {
|
|
5510
5494
|
if (n)
|
|
5511
5495
|
u.dispatch(u.state.tr.addMark(n.from, n.to, t));
|
|
5512
5496
|
else {
|
|
5513
5497
|
const { $from: i, $to: a } = u.state.selection;
|
|
5514
5498
|
u.dispatch(u.state.tr.addMark(i.pos, a.pos, t));
|
|
5515
5499
|
}
|
|
5516
|
-
},
|
|
5500
|
+
}, z0 = (u, t, n, i) => {
|
|
5517
5501
|
let a = t;
|
|
5518
5502
|
const f = (G) => G.type === i;
|
|
5519
5503
|
let h = null, y = null, b = null;
|
|
@@ -5524,7 +5508,7 @@ const a0 = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform
|
|
|
5524
5508
|
if (!j || h && j !== h) return null;
|
|
5525
5509
|
y = y || G, h = h || j, b = G, a++;
|
|
5526
5510
|
}
|
|
5527
|
-
let M = t,
|
|
5511
|
+
let M = t, z = n, W = 0;
|
|
5528
5512
|
for (a = t - 1; a > W; ) {
|
|
5529
5513
|
const G = u.nodeAt(a), j = G && G.marks.find(f);
|
|
5530
5514
|
if (!j || j !== h) break;
|
|
@@ -5533,7 +5517,7 @@ const a0 = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform
|
|
|
5533
5517
|
for (a = n + 1, W = u.nodeSize - 2; a < W; ) {
|
|
5534
5518
|
const G = u.nodeAt(a), j = G && G.marks.find(f);
|
|
5535
5519
|
if (!j || j !== h) break;
|
|
5536
|
-
|
|
5520
|
+
z = a, b = G, a++;
|
|
5537
5521
|
}
|
|
5538
5522
|
return {
|
|
5539
5523
|
mark: h,
|
|
@@ -5543,10 +5527,10 @@ const a0 = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform
|
|
|
5543
5527
|
},
|
|
5544
5528
|
to: {
|
|
5545
5529
|
node: b,
|
|
5546
|
-
pos:
|
|
5530
|
+
pos: z
|
|
5547
5531
|
}
|
|
5548
5532
|
};
|
|
5549
|
-
},
|
|
5533
|
+
}, s0 = (u, t) => Array.isArray(u) && u.indexOf(t.type) > -1 || t.type === u, o0 = (u, t) => {
|
|
5550
5534
|
for (let n = u.depth; n > 0; n--) {
|
|
5551
5535
|
const i = u.node(n);
|
|
5552
5536
|
if (t(i))
|
|
@@ -5557,9 +5541,9 @@ const a0 = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform
|
|
|
5557
5541
|
node: i
|
|
5558
5542
|
};
|
|
5559
5543
|
}
|
|
5560
|
-
},
|
|
5544
|
+
}, a0 = (u) => (t) => o0(t.$from, u), u0 = (u) => (t) => a0((n) => s0(u, n))(t), Cu = (u, t) => {
|
|
5561
5545
|
const n = t.schema.nodes[u];
|
|
5562
|
-
return !!
|
|
5546
|
+
return !!u0(n)(t.selection);
|
|
5563
5547
|
}, Fc = (u) => u ? u.type.name === "text" ? u : u.lastChild ? Fc(u.lastChild) : null : null, Lc = (u) => {
|
|
5564
5548
|
const { selection: t, doc: n } = u.state, { from: i } = t;
|
|
5565
5549
|
let a = n.nodeAt(i) || n.nodeAt(i - 1);
|
|
@@ -5572,21 +5556,21 @@ const a0 = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform
|
|
|
5572
5556
|
for (const n of u)
|
|
5573
5557
|
if (n.type.name === t) return !0;
|
|
5574
5558
|
return !1;
|
|
5575
|
-
},
|
|
5559
|
+
}, K0 = (u, t) => {
|
|
5576
5560
|
const { from: n, $from: i, to: a, empty: f } = u.selection;
|
|
5577
5561
|
return f ? t.isInSet(u.storedMarks || i.marks()) : u.doc.rangeHasMark(n, a, t);
|
|
5578
|
-
},
|
|
5562
|
+
}, l0 = (u, t) => {
|
|
5579
5563
|
const { selection: n, doc: i } = u.state, { from: a, to: f } = n;
|
|
5580
5564
|
let h = !0, y = "";
|
|
5581
5565
|
return i.nodesBetween(a, f, (b) => (h && b.attrs[t] && (h = !1, y = b.attrs[t]), h)), y;
|
|
5582
|
-
},
|
|
5566
|
+
}, zc = {
|
|
5583
5567
|
color: "#000000",
|
|
5584
5568
|
backcolor: "",
|
|
5585
5569
|
fontsize: "16px",
|
|
5586
5570
|
fontname: "",
|
|
5587
5571
|
align: "left"
|
|
5588
|
-
},
|
|
5589
|
-
const n = { ...
|
|
5572
|
+
}, q0 = (u, t = {}) => {
|
|
5573
|
+
const n = { ...zc, ...t }, i = Lc(u), a = ri(i, "strong"), f = ri(i, "em"), h = ri(i, "underline"), y = ri(i, "strikethrough"), b = ri(i, "superscript"), M = ri(i, "subscript"), z = ri(i, "code"), W = qi(i, "forecolor", "color") || n.color, G = qi(i, "backcolor", "backcolor") || n.backcolor, j = qi(i, "fontsize", "fontsize") || n.fontsize, Y = qi(i, "fontname", "fontname") || n.fontname, se = qi(i, "link", "href") || "", me = l0(u, "align") || n.align, Te = Cu("bullet_list", u.state), gt = Cu("ordered_list", u.state), je = Cu("blockquote", u.state);
|
|
5590
5574
|
return {
|
|
5591
5575
|
bold: a,
|
|
5592
5576
|
em: f,
|
|
@@ -5594,7 +5578,7 @@ const a0 = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform
|
|
|
5594
5578
|
strikethrough: y,
|
|
5595
5579
|
superscript: b,
|
|
5596
5580
|
subscript: M,
|
|
5597
|
-
code:
|
|
5581
|
+
code: z,
|
|
5598
5582
|
color: W,
|
|
5599
5583
|
backcolor: G,
|
|
5600
5584
|
fontsize: j,
|
|
@@ -5605,10 +5589,10 @@ const a0 = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform
|
|
|
5605
5589
|
orderedList: gt,
|
|
5606
5590
|
blockquote: je
|
|
5607
5591
|
};
|
|
5608
|
-
},
|
|
5609
|
-
const t = Lc(u), n = qi(t, "fontsize", "fontsize") ||
|
|
5592
|
+
}, W0 = (u) => {
|
|
5593
|
+
const t = Lc(u), n = qi(t, "fontsize", "fontsize") || zc.fontsize;
|
|
5610
5594
|
return parseInt(n);
|
|
5611
|
-
},
|
|
5595
|
+
}, f0 = {
|
|
5612
5596
|
bold: !1,
|
|
5613
5597
|
em: !1,
|
|
5614
5598
|
underline: !1,
|
|
@@ -5627,10 +5611,10 @@ const a0 = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform
|
|
|
5627
5611
|
blockquote: !1
|
|
5628
5612
|
};
|
|
5629
5613
|
var ii = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5630
|
-
function
|
|
5614
|
+
function c0(u) {
|
|
5631
5615
|
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
5632
5616
|
}
|
|
5633
|
-
function
|
|
5617
|
+
function U0(u) {
|
|
5634
5618
|
if (u.__esModule) return u;
|
|
5635
5619
|
var t = u.default;
|
|
5636
5620
|
if (typeof t == "function") {
|
|
@@ -5661,8 +5645,8 @@ var oa = { exports: {} };
|
|
|
5661
5645
|
oa.exports;
|
|
5662
5646
|
(function(u, t) {
|
|
5663
5647
|
(function() {
|
|
5664
|
-
var n, i = "4.17.23", a = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", h = "Expected a function", y = "Invalid `variable` option passed into `_.template`", b = "__lodash_hash_undefined__", M = 500,
|
|
5665
|
-
["ary",
|
|
5648
|
+
var n, i = "4.17.23", a = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", h = "Expected a function", y = "Invalid `variable` option passed into `_.template`", b = "__lodash_hash_undefined__", M = 500, z = "__lodash_placeholder__", W = 1, G = 2, j = 4, Y = 1, se = 2, me = 1, Te = 2, gt = 4, je = 8, Qt = 16, Wt = 32, mt = 64, Ke = 128, nr = 256, Gi = 512, Gs = 30, Hs = "...", Ir = 800, An = 16, $s = 1, Hi = 2, $i = 3, On = 1 / 0, st = 9007199254740991, rr = 17976931348623157e292, St = NaN, kt = 4294967295, en = kt - 1, ha = kt >>> 1, ir = [
|
|
5649
|
+
["ary", Ke],
|
|
5666
5650
|
["bind", me],
|
|
5667
5651
|
["bindKey", Te],
|
|
5668
5652
|
["curry", je],
|
|
@@ -5671,11 +5655,11 @@ oa.exports;
|
|
|
5671
5655
|
["partial", Wt],
|
|
5672
5656
|
["partialRight", mt],
|
|
5673
5657
|
["rearg", nr]
|
|
5674
|
-
], In = "[object Arguments]", Cn = "[object Array]", sr = "[object AsyncFunction]", Tn = "[object Boolean]", Cr = "[object Date]", le = "[object DOMException]", Tr = "[object Error]", Oe = "[object Function]", or = "[object GeneratorFunction]", Rt = "[object Map]", Mt = "[object Number]", pa = "[object Null]", tn = "[object Object]", js = "[object Promise]", da = "[object Proxy]", Rn = "[object RegExp]", Ge = "[object Set]", ar = "[object String]", un = "[object Symbol]", Vs = "[object Undefined]", nn = "[object WeakMap]", yt = "[object WeakSet]", Pt = "[object ArrayBuffer]", ln = "[object DataView]", Mn = "[object Float32Array]", Rr = "[object Float64Array]", ur = "[object Int8Array]", rn = "[object Int16Array]", lr = "[object Int32Array]", Mr = "[object Uint8Array]", Ut = "[object Uint8ClampedArray]", oe = "[object Uint16Array]", Pn = "[object Uint32Array]", Nn = /\b__p \+= '';/g, fi = /\b(__p \+=) '' \+/g, Q = /(__e\(.*?\)|\b__t\)) \+\n'';/g, ci = /&(?:amp|lt|gt|quot|#39);/g, ji = /[&<>"']/g, Vi = RegExp(ci.source), Ys = RegExp(ji.source), Yi = /<%-([\s\S]+?)%>/g, ga = /<%([\s\S]+?)%>/g, Xs = /<%=([\s\S]+?)%>/g, fr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, cr = /^\w*$/, Xi = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, hr = /[\\^$.*+?()[\]{}|]/g, Fe = RegExp(hr.source), He = /^\s+/, ma = /\s/, hi = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, pi = /\{\n\/\* \[wrapped with (.+)\] \*/, di = /,? & /, ya = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, fn = /[()=,{}\[\]\/\s]/, pr = /\\(\\)?/g, cn = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Pr = /\w*$/, va = /^[-+]0x[0-9a-f]+$/i, hn = /^0b[01]+$/i, Zs = /^\[object .+?Constructor\]$/, Dn = /^0o[0-7]+$/i, Qs = /^(?:0|[1-9]\d*)$/, Zi = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Le = /($^)/, Bn = /['\n\r\u2028\u2029\\]/g, Et = "\\ud800-\\udfff", eo = "\\u0300-\\u036f", dr = "\\ufe20-\\ufe2f", gi = "\\u20d0-\\u20ff", mi = eo + dr + gi, yi = "\\u2700-\\u27bf", pn = "a-z\\xdf-\\xf6\\xf8-\\xff", to = "\\xac\\xb1\\xd7\\xf7", vi = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", no = "\\u2000-\\u206f", be = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Qi = "A-Z\\xc0-\\xd6\\xd8-\\xde", es = "\\ufe0e\\ufe0f", Nr = to + vi + no + be, Fn = "['’]", ro = "[" + Et + "]", ts = "[" + Nr + "]", Dr = "[" + mi + "]", Re = "\\d+", Br = "[" + yi + "]", gr = "[" + pn + "]", Ln = "[^" + Et + Nr + Re + yi + pn + Qi + "]", Fr = "\\ud83c[\\udffb-\\udfff]", ns = "(?:" + Dr + "|" + Fr + ")", Lr = "[^" + Et + "]", wi = "(?:\\ud83c[\\udde6-\\uddff]){2}", mr = "[\\ud800-\\udbff][\\udc00-\\udfff]",
|
|
5675
|
-
|
|
5676
|
-
so + "+" + ao + "(?=" + [ts,
|
|
5677
|
-
|
|
5678
|
-
|
|
5658
|
+
], In = "[object Arguments]", Cn = "[object Array]", sr = "[object AsyncFunction]", Tn = "[object Boolean]", Cr = "[object Date]", le = "[object DOMException]", Tr = "[object Error]", Oe = "[object Function]", or = "[object GeneratorFunction]", Rt = "[object Map]", Mt = "[object Number]", pa = "[object Null]", tn = "[object Object]", js = "[object Promise]", da = "[object Proxy]", Rn = "[object RegExp]", Ge = "[object Set]", ar = "[object String]", un = "[object Symbol]", Vs = "[object Undefined]", nn = "[object WeakMap]", yt = "[object WeakSet]", Pt = "[object ArrayBuffer]", ln = "[object DataView]", Mn = "[object Float32Array]", Rr = "[object Float64Array]", ur = "[object Int8Array]", rn = "[object Int16Array]", lr = "[object Int32Array]", Mr = "[object Uint8Array]", Ut = "[object Uint8ClampedArray]", oe = "[object Uint16Array]", Pn = "[object Uint32Array]", Nn = /\b__p \+= '';/g, fi = /\b(__p \+=) '' \+/g, Q = /(__e\(.*?\)|\b__t\)) \+\n'';/g, ci = /&(?:amp|lt|gt|quot|#39);/g, ji = /[&<>"']/g, Vi = RegExp(ci.source), Ys = RegExp(ji.source), Yi = /<%-([\s\S]+?)%>/g, ga = /<%([\s\S]+?)%>/g, Xs = /<%=([\s\S]+?)%>/g, fr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, cr = /^\w*$/, Xi = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, hr = /[\\^$.*+?()[\]{}|]/g, Fe = RegExp(hr.source), He = /^\s+/, ma = /\s/, hi = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, pi = /\{\n\/\* \[wrapped with (.+)\] \*/, di = /,? & /, ya = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, fn = /[()=,{}\[\]\/\s]/, pr = /\\(\\)?/g, cn = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Pr = /\w*$/, va = /^[-+]0x[0-9a-f]+$/i, hn = /^0b[01]+$/i, Zs = /^\[object .+?Constructor\]$/, Dn = /^0o[0-7]+$/i, Qs = /^(?:0|[1-9]\d*)$/, Zi = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Le = /($^)/, Bn = /['\n\r\u2028\u2029\\]/g, Et = "\\ud800-\\udfff", eo = "\\u0300-\\u036f", dr = "\\ufe20-\\ufe2f", gi = "\\u20d0-\\u20ff", mi = eo + dr + gi, yi = "\\u2700-\\u27bf", pn = "a-z\\xdf-\\xf6\\xf8-\\xff", to = "\\xac\\xb1\\xd7\\xf7", vi = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", no = "\\u2000-\\u206f", be = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Qi = "A-Z\\xc0-\\xd6\\xd8-\\xde", es = "\\ufe0e\\ufe0f", Nr = to + vi + no + be, Fn = "['’]", ro = "[" + Et + "]", ts = "[" + Nr + "]", Dr = "[" + mi + "]", Re = "\\d+", Br = "[" + yi + "]", gr = "[" + pn + "]", Ln = "[^" + Et + Nr + Re + yi + pn + Qi + "]", Fr = "\\ud83c[\\udffb-\\udfff]", ns = "(?:" + Dr + "|" + Fr + ")", Lr = "[^" + Et + "]", wi = "(?:\\ud83c[\\udde6-\\uddff]){2}", mr = "[\\ud800-\\udbff][\\udc00-\\udfff]", zn = "[" + Qi + "]", io = "\\u200d", ke = "(?:" + gr + "|" + Ln + ")", so = "(?:" + zn + "|" + Ln + ")", oo = "(?:" + Fn + "(?:d|ll|m|re|s|t|ve))?", ao = "(?:" + Fn + "(?:D|LL|M|RE|S|T|VE))?", ot = ns + "?", Kn = "[" + es + "]?", bi = "(?:" + io + "(?:" + [Lr, wi, mr].join("|") + ")" + Kn + ot + ")*", dn = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", uo = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", rs = Kn + ot + bi, Ze = "(?:" + [Br, wi, mr].join("|") + ")" + rs, Jt = "(?:" + [Lr + Dr + "?", Dr, wi, mr, ro].join("|") + ")", zr = RegExp(Fn, "g"), Kr = RegExp(Dr, "g"), qr = RegExp(Fr + "(?=" + Fr + ")|" + Jt + rs, "g"), gn = RegExp([
|
|
5659
|
+
zn + "?" + gr + "+" + oo + "(?=" + [ts, zn, "$"].join("|") + ")",
|
|
5660
|
+
so + "+" + ao + "(?=" + [ts, zn + ke, "$"].join("|") + ")",
|
|
5661
|
+
zn + "?" + ke + "+" + oo,
|
|
5662
|
+
zn + "+" + ao,
|
|
5679
5663
|
uo,
|
|
5680
5664
|
dn,
|
|
5681
5665
|
Re,
|
|
@@ -5970,7 +5954,7 @@ oa.exports;
|
|
|
5970
5954
|
return !1;
|
|
5971
5955
|
return !0;
|
|
5972
5956
|
}
|
|
5973
|
-
function
|
|
5957
|
+
function ze(g, _) {
|
|
5974
5958
|
for (var E = -1, A = g == null ? 0 : g.length, O = 0, T = []; ++E < A; ) {
|
|
5975
5959
|
var R = g[E];
|
|
5976
5960
|
_(R, E, g) && (T[O++] = R);
|
|
@@ -6152,7 +6136,7 @@ oa.exports;
|
|
|
6152
6136
|
function Ht(g, _) {
|
|
6153
6137
|
for (var E = -1, A = g.length, O = 0, T = []; ++E < A; ) {
|
|
6154
6138
|
var R = g[E];
|
|
6155
|
-
(R === _ || R ===
|
|
6139
|
+
(R === _ || R === z) && (g[E] = z, T[O++] = E);
|
|
6156
6140
|
}
|
|
6157
6141
|
return T;
|
|
6158
6142
|
}
|
|
@@ -6205,11 +6189,11 @@ oa.exports;
|
|
|
6205
6189
|
}
|
|
6206
6190
|
var w = function g(_) {
|
|
6207
6191
|
_ = _ == null ? Ve : k.defaults(Ve.Object(), _, k.pick(Ve, is));
|
|
6208
|
-
var E = _.Array, A = _.Date, O = _.Error, T = _.Function, R = _.Math, C = _.Object, N = _.RegExp, L = _.String, F = _.TypeError, B = E.prototype, q = T.prototype, H = C.prototype, X = _["__core-js_shared__"], Z = q.toString,
|
|
6192
|
+
var E = _.Array, A = _.Date, O = _.Error, T = _.Function, R = _.Math, C = _.Object, N = _.RegExp, L = _.String, F = _.TypeError, B = E.prototype, q = T.prototype, H = C.prototype, X = _["__core-js_shared__"], Z = q.toString, K = H.hasOwnProperty, ne = 0, ee = function() {
|
|
6209
6193
|
var e = /[^.]+$/.exec(X && X.keys && X.keys.IE_PROTO || "");
|
|
6210
6194
|
return e ? "Symbol(src)_1." + e : "";
|
|
6211
6195
|
}(), V = H.toString, re = Z.call(C), _e = Ve._, Ae = N(
|
|
6212
|
-
"^" + Z.call(
|
|
6196
|
+
"^" + Z.call(K).replace(hr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
6213
6197
|
), ue = co ? _.Buffer : n, de = _.Symbol, Ne = _.Uint8Array, wt = ue ? ue.allocUnsafe : n, Be = vo(C.getPrototypeOf, C), wn = C.create, Ri = H.propertyIsEnumerable, wo = B.splice, Wu = de ? de.isConcatSpreadable : n, xs = de ? de.iterator : n, Vr = de ? de.toStringTag : n, bo = function() {
|
|
6214
6198
|
try {
|
|
6215
6199
|
var e = ei(C, "defineProperty");
|
|
@@ -6221,7 +6205,7 @@ oa.exports;
|
|
|
6221
6205
|
if ($e(e) && !ge(e) && !(e instanceof Se)) {
|
|
6222
6206
|
if (e instanceof $t)
|
|
6223
6207
|
return e;
|
|
6224
|
-
if (
|
|
6208
|
+
if (K.call(e, "__wrapped__"))
|
|
6225
6209
|
return Hl(e);
|
|
6226
6210
|
}
|
|
6227
6211
|
return new $t(e);
|
|
@@ -6347,11 +6331,11 @@ oa.exports;
|
|
|
6347
6331
|
var o = r[e];
|
|
6348
6332
|
return o === b ? n : o;
|
|
6349
6333
|
}
|
|
6350
|
-
return
|
|
6334
|
+
return K.call(r, e) ? r[e] : n;
|
|
6351
6335
|
}
|
|
6352
6336
|
function uh(e) {
|
|
6353
6337
|
var r = this.__data__;
|
|
6354
|
-
return ks ? r[e] !== n :
|
|
6338
|
+
return ks ? r[e] !== n : K.call(r, e);
|
|
6355
6339
|
}
|
|
6356
6340
|
function lh(e, r) {
|
|
6357
6341
|
var o = this.__data__;
|
|
@@ -6459,7 +6443,7 @@ oa.exports;
|
|
|
6459
6443
|
function Hu(e, r) {
|
|
6460
6444
|
var o = ge(e), p = !o && ni(e), v = !o && !p && Er(e), S = !o && !p && !v && Li(e), I = o || p || v || S, P = I ? Oi(e.length, L) : [], D = P.length;
|
|
6461
6445
|
for (var U in e)
|
|
6462
|
-
(r ||
|
|
6446
|
+
(r || K.call(e, U)) && !(I && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6463
6447
|
(U == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6464
6448
|
v && (U == "offset" || U == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6465
6449
|
S && (U == "buffer" || U == "byteLength" || U == "byteOffset") || // Skip index properties.
|
|
@@ -6468,20 +6452,20 @@ oa.exports;
|
|
|
6468
6452
|
}
|
|
6469
6453
|
function $u(e) {
|
|
6470
6454
|
var r = e.length;
|
|
6471
|
-
return r ? e[
|
|
6455
|
+
return r ? e[Ka(0, r - 1)] : n;
|
|
6472
6456
|
}
|
|
6473
6457
|
function Oh(e, r) {
|
|
6474
|
-
return
|
|
6458
|
+
return zo(Ot(e), Zr(r, 0, e.length));
|
|
6475
6459
|
}
|
|
6476
6460
|
function Ih(e) {
|
|
6477
|
-
return
|
|
6461
|
+
return zo(Ot(e));
|
|
6478
6462
|
}
|
|
6479
6463
|
function Ta(e, r, o) {
|
|
6480
6464
|
(o !== n && !on(e[r], o) || o === n && !(r in e)) && jn(e, r, o);
|
|
6481
6465
|
}
|
|
6482
6466
|
function As(e, r, o) {
|
|
6483
6467
|
var p = e[r];
|
|
6484
|
-
(!(
|
|
6468
|
+
(!(K.call(e, r) && on(p, o)) || o === n && !(r in e)) && jn(e, r, o);
|
|
6485
6469
|
}
|
|
6486
6470
|
function Ao(e, r) {
|
|
6487
6471
|
for (var o = e.length; o--; )
|
|
@@ -6637,7 +6621,7 @@ oa.exports;
|
|
|
6637
6621
|
return e && Qu(e, r, nt);
|
|
6638
6622
|
}
|
|
6639
6623
|
function Io(e, r) {
|
|
6640
|
-
return
|
|
6624
|
+
return ze(r, function(o) {
|
|
6641
6625
|
return Zn(e[o]);
|
|
6642
6626
|
});
|
|
6643
6627
|
}
|
|
@@ -6658,7 +6642,7 @@ oa.exports;
|
|
|
6658
6642
|
return e > r;
|
|
6659
6643
|
}
|
|
6660
6644
|
function Nh(e, r) {
|
|
6661
|
-
return e != null &&
|
|
6645
|
+
return e != null && K.call(e, r);
|
|
6662
6646
|
}
|
|
6663
6647
|
function Dh(e, r) {
|
|
6664
6648
|
return e != null && r in C(e);
|
|
@@ -6703,13 +6687,13 @@ oa.exports;
|
|
|
6703
6687
|
function Lh(e) {
|
|
6704
6688
|
return $e(e) && bt(e) == Pt;
|
|
6705
6689
|
}
|
|
6706
|
-
function
|
|
6690
|
+
function zh(e) {
|
|
6707
6691
|
return $e(e) && bt(e) == Cr;
|
|
6708
6692
|
}
|
|
6709
6693
|
function Cs(e, r, o, p, v) {
|
|
6710
|
-
return e === r ? !0 : e == null || r == null || !$e(e) && !$e(r) ? e !== e && r !== r :
|
|
6694
|
+
return e === r ? !0 : e == null || r == null || !$e(e) && !$e(r) ? e !== e && r !== r : Kh(e, r, o, p, Cs, v);
|
|
6711
6695
|
}
|
|
6712
|
-
function
|
|
6696
|
+
function Kh(e, r, o, p, v, S) {
|
|
6713
6697
|
var I = ge(e), P = ge(r), D = I ? Cn : ht(e), U = P ? Cn : ht(r);
|
|
6714
6698
|
D = D == In ? tn : D, U = U == In ? tn : U;
|
|
6715
6699
|
var J = D == tn, $ = U == tn, te = D == U;
|
|
@@ -6721,7 +6705,7 @@ oa.exports;
|
|
|
6721
6705
|
if (te && !J)
|
|
6722
6706
|
return S || (S = new sn()), I || Li(e) ? Nl(e, r, o, p, v, S) : pp(e, r, D, o, p, v, S);
|
|
6723
6707
|
if (!(o & Y)) {
|
|
6724
|
-
var ae = J &&
|
|
6708
|
+
var ae = J && K.call(e, "__wrapped__"), he = $ && K.call(r, "__wrapped__");
|
|
6725
6709
|
if (ae || he) {
|
|
6726
6710
|
var ve = ae ? e.value() : e, pe = he ? r.value() : r;
|
|
6727
6711
|
return S || (S = new sn()), v(ve, pe, o, p, S);
|
|
@@ -6780,7 +6764,7 @@ oa.exports;
|
|
|
6780
6764
|
return $c(e);
|
|
6781
6765
|
var r = [];
|
|
6782
6766
|
for (var o in C(e))
|
|
6783
|
-
|
|
6767
|
+
K.call(e, o) && o != "constructor" && r.push(o);
|
|
6784
6768
|
return r;
|
|
6785
6769
|
}
|
|
6786
6770
|
function Gh(e) {
|
|
@@ -6788,7 +6772,7 @@ oa.exports;
|
|
|
6788
6772
|
return Op(e);
|
|
6789
6773
|
var r = Ms(e), o = [];
|
|
6790
6774
|
for (var p in e)
|
|
6791
|
-
p == "constructor" && (r || !
|
|
6775
|
+
p == "constructor" && (r || !K.call(e, p)) || o.push(p);
|
|
6792
6776
|
return o;
|
|
6793
6777
|
}
|
|
6794
6778
|
function La(e, r) {
|
|
@@ -6802,12 +6786,12 @@ oa.exports;
|
|
|
6802
6786
|
}
|
|
6803
6787
|
function sl(e) {
|
|
6804
6788
|
var r = Qa(e);
|
|
6805
|
-
return r.length == 1 && r[0][2] ?
|
|
6789
|
+
return r.length == 1 && r[0][2] ? zl(r[0][0], r[0][1]) : function(o) {
|
|
6806
6790
|
return o === e || Ba(o, e, r);
|
|
6807
6791
|
};
|
|
6808
6792
|
}
|
|
6809
6793
|
function ol(e, r) {
|
|
6810
|
-
return tu(e) && Ll(r) ?
|
|
6794
|
+
return tu(e) && Ll(r) ? zl(_n(e), r) : function(o) {
|
|
6811
6795
|
var p = cu(o, e);
|
|
6812
6796
|
return p === n && p === r ? hu(o, e) : Cs(r, p, Y | se);
|
|
6813
6797
|
};
|
|
@@ -6875,7 +6859,7 @@ oa.exports;
|
|
|
6875
6859
|
return Qr(r, e);
|
|
6876
6860
|
};
|
|
6877
6861
|
}
|
|
6878
|
-
function
|
|
6862
|
+
function za(e, r, o, p) {
|
|
6879
6863
|
var v = p ? go : yn, S = -1, I = r.length, P = e;
|
|
6880
6864
|
for (e === r && (r = Ot(r)), o && (P = De(e, lt(o))); ++S < I; )
|
|
6881
6865
|
for (var D = 0, U = r[S], J = o ? o(U) : U; (D = v(P, J, D, p)) > -1; )
|
|
@@ -6892,7 +6876,7 @@ oa.exports;
|
|
|
6892
6876
|
}
|
|
6893
6877
|
return e;
|
|
6894
6878
|
}
|
|
6895
|
-
function
|
|
6879
|
+
function Ka(e, r) {
|
|
6896
6880
|
return e + _o(Ju() * (r - e + 1));
|
|
6897
6881
|
}
|
|
6898
6882
|
function Vh(e, r, o, p) {
|
|
@@ -6910,14 +6894,14 @@ oa.exports;
|
|
|
6910
6894
|
return o;
|
|
6911
6895
|
}
|
|
6912
6896
|
function we(e, r) {
|
|
6913
|
-
return iu(
|
|
6897
|
+
return iu(Kl(e, r, Tt), e + "");
|
|
6914
6898
|
}
|
|
6915
6899
|
function Yh(e) {
|
|
6916
|
-
return $u(
|
|
6900
|
+
return $u(zi(e));
|
|
6917
6901
|
}
|
|
6918
6902
|
function Xh(e, r) {
|
|
6919
|
-
var o =
|
|
6920
|
-
return
|
|
6903
|
+
var o = zi(e);
|
|
6904
|
+
return zo(o, Zr(r, 0, o.length));
|
|
6921
6905
|
}
|
|
6922
6906
|
function Ts(e, r, o, p) {
|
|
6923
6907
|
if (!Je(e))
|
|
@@ -6946,7 +6930,7 @@ oa.exports;
|
|
|
6946
6930
|
});
|
|
6947
6931
|
} : Tt;
|
|
6948
6932
|
function Qh(e) {
|
|
6949
|
-
return
|
|
6933
|
+
return zo(zi(e));
|
|
6950
6934
|
}
|
|
6951
6935
|
function Vt(e, r, o) {
|
|
6952
6936
|
var p = -1, v = e.length;
|
|
@@ -7040,7 +7024,7 @@ oa.exports;
|
|
|
7040
7024
|
for (var v = e == null || typeof e != "object" && typeof e != "function"; ++o < p; ) {
|
|
7041
7025
|
var S = r[o];
|
|
7042
7026
|
if (typeof S == "string") {
|
|
7043
|
-
if (S === "__proto__" && !
|
|
7027
|
+
if (S === "__proto__" && !K.call(e, "__proto__"))
|
|
7044
7028
|
return !1;
|
|
7045
7029
|
if (S === "constructor" && o + 1 < p && typeof r[o + 1] == "string" && r[o + 1] === "prototype") {
|
|
7046
7030
|
if (v && o === 0)
|
|
@@ -7239,7 +7223,7 @@ oa.exports;
|
|
|
7239
7223
|
}
|
|
7240
7224
|
function Bi(e) {
|
|
7241
7225
|
return function(r) {
|
|
7242
|
-
return Si(kf(Sf(r).replace(
|
|
7226
|
+
return Si(kf(Sf(r).replace(zr, "")), e, "");
|
|
7243
7227
|
};
|
|
7244
7228
|
}
|
|
7245
7229
|
function Rs(e) {
|
|
@@ -7317,7 +7301,7 @@ oa.exports;
|
|
|
7317
7301
|
for (p = I ? p : o; ++p < o; ) {
|
|
7318
7302
|
S = r[p];
|
|
7319
7303
|
var P = Fo(S), D = P == "wrapper" ? Za(S) : n;
|
|
7320
|
-
D && nu(D[0]) && D[1] == (
|
|
7304
|
+
D && nu(D[0]) && D[1] == (Ke | je | Wt | nr) && !D[4].length && D[9] == 1 ? I = I[Fo(D[0])].apply(I, D[3]) : I = S.length == 1 && nu(S) ? I[P]() : I.thru(S);
|
|
7321
7305
|
}
|
|
7322
7306
|
return function() {
|
|
7323
7307
|
var U = arguments, J = U[0];
|
|
@@ -7330,7 +7314,7 @@ oa.exports;
|
|
|
7330
7314
|
});
|
|
7331
7315
|
}
|
|
7332
7316
|
function Po(e, r, o, p, v, S, I, P, D, U) {
|
|
7333
|
-
var J = r &
|
|
7317
|
+
var J = r & Ke, $ = r & me, te = r & Te, ae = r & (je | Qt), he = r & Gi, ve = te ? n : Rs(e);
|
|
7334
7318
|
function pe() {
|
|
7335
7319
|
for (var xe = arguments.length, Ee = E(xe), Ft = xe; Ft--; )
|
|
7336
7320
|
Ee[Ft] = arguments[Ft];
|
|
@@ -7477,7 +7461,7 @@ oa.exports;
|
|
|
7477
7461
|
return Ul(ve(he, ae), e, r);
|
|
7478
7462
|
}
|
|
7479
7463
|
function Ml(e, r, o, p) {
|
|
7480
|
-
return e === n || on(e, H[o]) && !
|
|
7464
|
+
return e === n || on(e, H[o]) && !K.call(p, o) ? r : e;
|
|
7481
7465
|
}
|
|
7482
7466
|
function Pl(e, r, o, p, v, S) {
|
|
7483
7467
|
return Je(e) && Je(r) && (S.set(r, e), Co(e, r, n, Pl, S), S.delete(r)), e;
|
|
@@ -7559,7 +7543,7 @@ oa.exports;
|
|
|
7559
7543
|
return !1;
|
|
7560
7544
|
for (var $ = D; $--; ) {
|
|
7561
7545
|
var te = P[$];
|
|
7562
|
-
if (!(I ? te in r :
|
|
7546
|
+
if (!(I ? te in r : K.call(r, te)))
|
|
7563
7547
|
return !1;
|
|
7564
7548
|
}
|
|
7565
7549
|
var ae = S.get(e), he = S.get(r);
|
|
@@ -7585,7 +7569,7 @@ oa.exports;
|
|
|
7585
7569
|
return S.delete(e), S.delete(r), ve;
|
|
7586
7570
|
}
|
|
7587
7571
|
function Yn(e) {
|
|
7588
|
-
return iu(
|
|
7572
|
+
return iu(Kl(e, n, Vl), e + "");
|
|
7589
7573
|
}
|
|
7590
7574
|
function Ya(e) {
|
|
7591
7575
|
return el(e, nt, eu);
|
|
@@ -7597,7 +7581,7 @@ oa.exports;
|
|
|
7597
7581
|
return So.get(e);
|
|
7598
7582
|
} : yu;
|
|
7599
7583
|
function Fo(e) {
|
|
7600
|
-
for (var r = e.name + "", o = Pi[r], p =
|
|
7584
|
+
for (var r = e.name + "", o = Pi[r], p = K.call(Pi, r) ? o.length : 0; p--; ) {
|
|
7601
7585
|
var v = o[p], S = v.func;
|
|
7602
7586
|
if (S == null || S == e)
|
|
7603
7587
|
return v.name;
|
|
@@ -7605,7 +7589,7 @@ oa.exports;
|
|
|
7605
7589
|
return r;
|
|
7606
7590
|
}
|
|
7607
7591
|
function Fi(e) {
|
|
7608
|
-
var r =
|
|
7592
|
+
var r = K.call(x, "placeholder") ? x : e;
|
|
7609
7593
|
return r.placeholder;
|
|
7610
7594
|
}
|
|
7611
7595
|
function ce() {
|
|
@@ -7628,7 +7612,7 @@ oa.exports;
|
|
|
7628
7612
|
return nl(o) ? o : n;
|
|
7629
7613
|
}
|
|
7630
7614
|
function gp(e) {
|
|
7631
|
-
var r =
|
|
7615
|
+
var r = K.call(e, Vr), o = e[Vr];
|
|
7632
7616
|
try {
|
|
7633
7617
|
e[Vr] = n;
|
|
7634
7618
|
var p = !0;
|
|
@@ -7638,7 +7622,7 @@ oa.exports;
|
|
|
7638
7622
|
return p && (r ? e[Vr] = o : delete e[Vr]), v;
|
|
7639
7623
|
}
|
|
7640
7624
|
var eu = Oa ? function(e) {
|
|
7641
|
-
return e == null ? [] : (e = C(e),
|
|
7625
|
+
return e == null ? [] : (e = C(e), ze(Oa(e), function(r) {
|
|
7642
7626
|
return Ri.call(e, r);
|
|
7643
7627
|
}));
|
|
7644
7628
|
} : vu, Dl = Oa ? function(e) {
|
|
@@ -7699,7 +7683,7 @@ oa.exports;
|
|
|
7699
7683
|
}
|
|
7700
7684
|
function vp(e) {
|
|
7701
7685
|
var r = e.length, o = new e.constructor(r);
|
|
7702
|
-
return r && typeof e[0] == "string" &&
|
|
7686
|
+
return r && typeof e[0] == "string" && K.call(e, "index") && (o.index = e.index, o.input = e.input), o;
|
|
7703
7687
|
}
|
|
7704
7688
|
function Fl(e) {
|
|
7705
7689
|
return typeof e.constructor == "function" && !Ms(e) ? Ni(Be(e)) : {};
|
|
@@ -7789,7 +7773,7 @@ oa.exports;
|
|
|
7789
7773
|
function Ll(e) {
|
|
7790
7774
|
return e === e && !Je(e);
|
|
7791
7775
|
}
|
|
7792
|
-
function
|
|
7776
|
+
function zl(e, r) {
|
|
7793
7777
|
return function(o) {
|
|
7794
7778
|
return o == null ? !1 : o[e] === r && (r !== n || e in C(o));
|
|
7795
7779
|
};
|
|
@@ -7801,16 +7785,16 @@ oa.exports;
|
|
|
7801
7785
|
return r;
|
|
7802
7786
|
}
|
|
7803
7787
|
function Ap(e, r) {
|
|
7804
|
-
var o = e[1], p = r[1], v = o | p, S = v < (me | Te |
|
|
7788
|
+
var o = e[1], p = r[1], v = o | p, S = v < (me | Te | Ke), I = p == Ke && o == je || p == Ke && o == nr && e[7].length <= r[8] || p == (Ke | nr) && r[7].length <= r[8] && o == je;
|
|
7805
7789
|
if (!(S || I))
|
|
7806
7790
|
return e;
|
|
7807
7791
|
p & me && (e[2] = r[2], v |= o & me ? 0 : gt);
|
|
7808
7792
|
var P = r[3];
|
|
7809
7793
|
if (P) {
|
|
7810
7794
|
var D = e[3];
|
|
7811
|
-
e[3] = D ? xl(D, P, r[4]) : P, e[4] = D ? Ht(e[3],
|
|
7795
|
+
e[3] = D ? xl(D, P, r[4]) : P, e[4] = D ? Ht(e[3], z) : r[4];
|
|
7812
7796
|
}
|
|
7813
|
-
return P = r[5], P && (D = e[5], e[5] = D ? _l(D, P, r[6]) : P, e[6] = D ? Ht(e[5],
|
|
7797
|
+
return P = r[5], P && (D = e[5], e[5] = D ? _l(D, P, r[6]) : P, e[6] = D ? Ht(e[5], z) : r[6]), P = r[7], P && (e[7] = P), p & Ke && (e[8] = e[8] == null ? r[8] : ct(e[8], r[8])), e[9] == null && (e[9] = r[9]), e[0] = r[0], e[1] = v, e;
|
|
7814
7798
|
}
|
|
7815
7799
|
function Op(e) {
|
|
7816
7800
|
var r = [];
|
|
@@ -7822,7 +7806,7 @@ oa.exports;
|
|
|
7822
7806
|
function Ip(e) {
|
|
7823
7807
|
return V.call(e);
|
|
7824
7808
|
}
|
|
7825
|
-
function
|
|
7809
|
+
function Kl(e, r, o) {
|
|
7826
7810
|
return r = tt(r === n ? e.length - 1 : r, 0), function() {
|
|
7827
7811
|
for (var p = arguments, v = -1, S = tt(p.length - r, 0), I = E(S); ++v < S; )
|
|
7828
7812
|
I[v] = p[r + v];
|
|
@@ -7865,10 +7849,10 @@ oa.exports;
|
|
|
7865
7849
|
return e.apply(n, arguments);
|
|
7866
7850
|
};
|
|
7867
7851
|
}
|
|
7868
|
-
function
|
|
7852
|
+
function zo(e, r) {
|
|
7869
7853
|
var o = -1, p = e.length, v = p - 1;
|
|
7870
7854
|
for (r = r === n ? p : r; ++o < r; ) {
|
|
7871
|
-
var S =
|
|
7855
|
+
var S = Ka(o, v), I = e[S];
|
|
7872
7856
|
e[S] = e[o], e[o] = I;
|
|
7873
7857
|
}
|
|
7874
7858
|
return e.length = r, e;
|
|
@@ -7951,10 +7935,10 @@ oa.exports;
|
|
|
7951
7935
|
var p = e == null ? 0 : e.length;
|
|
7952
7936
|
return p ? (r = o || r === n ? 1 : ye(r), r = p - r, Vt(e, 0, r < 0 ? 0 : r)) : [];
|
|
7953
7937
|
}
|
|
7954
|
-
function
|
|
7938
|
+
function zp(e, r) {
|
|
7955
7939
|
return e && e.length ? Ro(e, ce(r, 3), !0, !0) : [];
|
|
7956
7940
|
}
|
|
7957
|
-
function
|
|
7941
|
+
function Kp(e, r) {
|
|
7958
7942
|
return e && e.length ? Ro(e, ce(r, 3), !0) : [];
|
|
7959
7943
|
}
|
|
7960
7944
|
function qp(e, r, o, p) {
|
|
@@ -8037,13 +8021,13 @@ oa.exports;
|
|
|
8037
8021
|
}
|
|
8038
8022
|
var Qp = we(Xl);
|
|
8039
8023
|
function Xl(e, r) {
|
|
8040
|
-
return e && e.length && r && r.length ?
|
|
8024
|
+
return e && e.length && r && r.length ? za(e, r) : e;
|
|
8041
8025
|
}
|
|
8042
8026
|
function ed(e, r, o) {
|
|
8043
|
-
return e && e.length && r && r.length ?
|
|
8027
|
+
return e && e.length && r && r.length ? za(e, r, ce(o, 2)) : e;
|
|
8044
8028
|
}
|
|
8045
8029
|
function td(e, r, o) {
|
|
8046
|
-
return e && e.length && r && r.length ?
|
|
8030
|
+
return e && e.length && r && r.length ? za(e, r, n, o) : e;
|
|
8047
8031
|
}
|
|
8048
8032
|
var nd = Yn(function(e, r) {
|
|
8049
8033
|
var o = e == null ? 0 : e.length, p = Ra(e, r);
|
|
@@ -8144,7 +8128,7 @@ oa.exports;
|
|
|
8144
8128
|
if (!(e && e.length))
|
|
8145
8129
|
return [];
|
|
8146
8130
|
var r = 0;
|
|
8147
|
-
return e =
|
|
8131
|
+
return e = ze(e, function(o) {
|
|
8148
8132
|
if (Ye(o))
|
|
8149
8133
|
return r = tt(o.length, r), !0;
|
|
8150
8134
|
}), Oi(r, function(o) {
|
|
@@ -8162,13 +8146,13 @@ oa.exports;
|
|
|
8162
8146
|
var kd = we(function(e, r) {
|
|
8163
8147
|
return Ye(e) ? Os(e, r) : [];
|
|
8164
8148
|
}), Ed = we(function(e) {
|
|
8165
|
-
return Ja(
|
|
8149
|
+
return Ja(ze(e, Ye));
|
|
8166
8150
|
}), Ad = we(function(e) {
|
|
8167
8151
|
var r = Yt(e);
|
|
8168
|
-
return Ye(r) && (r = n), Ja(
|
|
8152
|
+
return Ye(r) && (r = n), Ja(ze(e, Ye), ce(r, 2));
|
|
8169
8153
|
}), Od = we(function(e) {
|
|
8170
8154
|
var r = Yt(e);
|
|
8171
|
-
return r = typeof r == "function" ? r : n, Ja(
|
|
8155
|
+
return r = typeof r == "function" ? r : n, Ja(ze(e, Ye), n, r);
|
|
8172
8156
|
}), Id = we(ou);
|
|
8173
8157
|
function Cd(e, r) {
|
|
8174
8158
|
return ml(e || [], r || [], As);
|
|
@@ -8187,7 +8171,7 @@ oa.exports;
|
|
|
8187
8171
|
function Md(e, r) {
|
|
8188
8172
|
return r(e), e;
|
|
8189
8173
|
}
|
|
8190
|
-
function
|
|
8174
|
+
function Ko(e, r) {
|
|
8191
8175
|
return r(e);
|
|
8192
8176
|
}
|
|
8193
8177
|
var Pd = Yn(function(e) {
|
|
@@ -8195,7 +8179,7 @@ oa.exports;
|
|
|
8195
8179
|
return Ra(S, e);
|
|
8196
8180
|
};
|
|
8197
8181
|
return r > 1 || this.__actions__.length || !(p instanceof Se) || !Xn(o) ? this.thru(v) : (p = p.slice(o, +o + (r ? 1 : 0)), p.__actions__.push({
|
|
8198
|
-
func:
|
|
8182
|
+
func: Ko,
|
|
8199
8183
|
args: [v],
|
|
8200
8184
|
thisArg: n
|
|
8201
8185
|
}), new $t(p, this.__chain__).thru(function(S) {
|
|
@@ -8225,30 +8209,30 @@ oa.exports;
|
|
|
8225
8209
|
}
|
|
8226
8210
|
return v.__wrapped__ = e, r;
|
|
8227
8211
|
}
|
|
8228
|
-
function
|
|
8212
|
+
function zd() {
|
|
8229
8213
|
var e = this.__wrapped__;
|
|
8230
8214
|
if (e instanceof Se) {
|
|
8231
8215
|
var r = e;
|
|
8232
8216
|
return this.__actions__.length && (r = new Se(this)), r = r.reverse(), r.__actions__.push({
|
|
8233
|
-
func:
|
|
8217
|
+
func: Ko,
|
|
8234
8218
|
args: [su],
|
|
8235
8219
|
thisArg: n
|
|
8236
8220
|
}), new $t(r, this.__chain__);
|
|
8237
8221
|
}
|
|
8238
8222
|
return this.thru(su);
|
|
8239
8223
|
}
|
|
8240
|
-
function
|
|
8224
|
+
function Kd() {
|
|
8241
8225
|
return gl(this.__wrapped__, this.__actions__);
|
|
8242
8226
|
}
|
|
8243
8227
|
var qd = Mo(function(e, r, o) {
|
|
8244
|
-
|
|
8228
|
+
K.call(e, o) ? ++e[o] : jn(e, o, 1);
|
|
8245
8229
|
});
|
|
8246
8230
|
function Wd(e, r, o) {
|
|
8247
8231
|
var p = ge(e) ? _i : Mh;
|
|
8248
8232
|
return o && xt(e, r, o) && (r = n), p(e, ce(r, 3));
|
|
8249
8233
|
}
|
|
8250
8234
|
function Ud(e, r) {
|
|
8251
|
-
var o = ge(e) ?
|
|
8235
|
+
var o = ge(e) ? ze : Zu;
|
|
8252
8236
|
return o(e, ce(r, 3));
|
|
8253
8237
|
}
|
|
8254
8238
|
var Jd = Al($l), Gd = Al(jl);
|
|
@@ -8270,10 +8254,10 @@ oa.exports;
|
|
|
8270
8254
|
return o(e, ce(r, 3));
|
|
8271
8255
|
}
|
|
8272
8256
|
var Vd = Mo(function(e, r, o) {
|
|
8273
|
-
|
|
8257
|
+
K.call(e, o) ? e[o].push(r) : jn(e, o, [r]);
|
|
8274
8258
|
});
|
|
8275
8259
|
function Yd(e, r, o, p) {
|
|
8276
|
-
e = It(e) ? e :
|
|
8260
|
+
e = It(e) ? e : zi(e), o = o && !p ? ye(o) : 0;
|
|
8277
8261
|
var v = e.length;
|
|
8278
8262
|
return o < 0 && (o = tt(v + o, 0)), Ho(e) ? o <= v && e.indexOf(r, o) > -1 : !!v && yn(e, r, o) > -1;
|
|
8279
8263
|
}
|
|
@@ -8306,7 +8290,7 @@ oa.exports;
|
|
|
8306
8290
|
return p(e, ce(r, 4), o, v, Xu);
|
|
8307
8291
|
}
|
|
8308
8292
|
function rg(e, r) {
|
|
8309
|
-
var o = ge(e) ?
|
|
8293
|
+
var o = ge(e) ? ze : Zu;
|
|
8310
8294
|
return o(e, Jo(ce(r, 3)));
|
|
8311
8295
|
}
|
|
8312
8296
|
function ig(e) {
|
|
@@ -8351,7 +8335,7 @@ oa.exports;
|
|
|
8351
8335
|
};
|
|
8352
8336
|
}
|
|
8353
8337
|
function nf(e, r, o) {
|
|
8354
|
-
return r = o ? n : r, r = e && r == null ? e.length : r, Vn(e,
|
|
8338
|
+
return r = o ? n : r, r = e && r == null ? e.length : r, Vn(e, Ke, n, n, n, n, r);
|
|
8355
8339
|
}
|
|
8356
8340
|
function rf(e, r) {
|
|
8357
8341
|
var o;
|
|
@@ -8550,7 +8534,7 @@ oa.exports;
|
|
|
8550
8534
|
}), ni = tl(/* @__PURE__ */ function() {
|
|
8551
8535
|
return arguments;
|
|
8552
8536
|
}()) ? tl : function(e) {
|
|
8553
|
-
return $e(e) &&
|
|
8537
|
+
return $e(e) && K.call(e, "callee") && !Ri.call(e, "callee");
|
|
8554
8538
|
}, ge = E.isArray, Tg = us ? lt(us) : Lh;
|
|
8555
8539
|
function It(e) {
|
|
8556
8540
|
return e != null && Go(e.length) && !Zn(e);
|
|
@@ -8561,7 +8545,7 @@ oa.exports;
|
|
|
8561
8545
|
function Rg(e) {
|
|
8562
8546
|
return e === !0 || e === !1 || $e(e) && bt(e) == Tn;
|
|
8563
8547
|
}
|
|
8564
|
-
var Er = Gc || wu, Mg = Gr ? lt(Gr) :
|
|
8548
|
+
var Er = Gc || wu, Mg = Gr ? lt(Gr) : zh;
|
|
8565
8549
|
function Pg(e) {
|
|
8566
8550
|
return $e(e) && e.nodeType === 1 && !Ns(e);
|
|
8567
8551
|
}
|
|
@@ -8576,7 +8560,7 @@ oa.exports;
|
|
|
8576
8560
|
if (Ms(e))
|
|
8577
8561
|
return !Fa(e).length;
|
|
8578
8562
|
for (var o in e)
|
|
8579
|
-
if (
|
|
8563
|
+
if (K.call(e, o))
|
|
8580
8564
|
return !1;
|
|
8581
8565
|
return !0;
|
|
8582
8566
|
}
|
|
@@ -8620,10 +8604,10 @@ oa.exports;
|
|
|
8620
8604
|
function Lg(e, r) {
|
|
8621
8605
|
return e === r || Ba(e, r, Qa(r));
|
|
8622
8606
|
}
|
|
8623
|
-
function
|
|
8607
|
+
function zg(e, r, o) {
|
|
8624
8608
|
return o = typeof o == "function" ? o : n, Ba(e, r, Qa(r), o);
|
|
8625
8609
|
}
|
|
8626
|
-
function
|
|
8610
|
+
function Kg(e) {
|
|
8627
8611
|
return hf(e) && e != +e;
|
|
8628
8612
|
}
|
|
8629
8613
|
function qg(e) {
|
|
@@ -8646,7 +8630,7 @@ oa.exports;
|
|
|
8646
8630
|
var r = Be(e);
|
|
8647
8631
|
if (r === null)
|
|
8648
8632
|
return !0;
|
|
8649
|
-
var o =
|
|
8633
|
+
var o = K.call(r, "constructor") && r.constructor;
|
|
8650
8634
|
return typeof o == "function" && o instanceof o && Z.call(o) == re;
|
|
8651
8635
|
}
|
|
8652
8636
|
var fu = $r ? lt($r) : Wh;
|
|
@@ -8680,7 +8664,7 @@ oa.exports;
|
|
|
8680
8664
|
return Ho(e) ? At(e) : Ot(e);
|
|
8681
8665
|
if (xs && e[xs])
|
|
8682
8666
|
return Ti(e[xs]());
|
|
8683
|
-
var r = ht(e), o = r == Rt ? vn : r == Ge ? jr :
|
|
8667
|
+
var r = ht(e), o = r == Rt ? vn : r == Ge ? jr : zi;
|
|
8684
8668
|
return o(e);
|
|
8685
8669
|
}
|
|
8686
8670
|
function Qn(e) {
|
|
@@ -8729,7 +8713,7 @@ oa.exports;
|
|
|
8729
8713
|
return;
|
|
8730
8714
|
}
|
|
8731
8715
|
for (var o in r)
|
|
8732
|
-
|
|
8716
|
+
K.call(r, o) && As(e, o, r[o]);
|
|
8733
8717
|
}), yf = Di(function(e, r) {
|
|
8734
8718
|
xn(r, Ct(r), e);
|
|
8735
8719
|
}), $o = Di(function(e, r, o, p) {
|
|
@@ -8747,7 +8731,7 @@ oa.exports;
|
|
|
8747
8731
|
for (v && xt(r[0], r[1], v) && (p = 1); ++o < p; )
|
|
8748
8732
|
for (var S = r[o], I = Ct(S), P = -1, D = I.length; ++P < D; ) {
|
|
8749
8733
|
var U = I[P], J = e[U];
|
|
8750
|
-
(J === n || on(J, H[U]) && !
|
|
8734
|
+
(J === n || on(J, H[U]) && !K.call(e, U)) && (e[U] = S[U]);
|
|
8751
8735
|
}
|
|
8752
8736
|
return e;
|
|
8753
8737
|
}), nm = we(function(e) {
|
|
@@ -8790,7 +8774,7 @@ oa.exports;
|
|
|
8790
8774
|
var hm = Il(function(e, r, o) {
|
|
8791
8775
|
r != null && typeof r.toString != "function" && (r = V.call(r)), e[r] = o;
|
|
8792
8776
|
}, du(Tt)), pm = Il(function(e, r, o) {
|
|
8793
|
-
r != null && typeof r.toString != "function" && (r = V.call(r)),
|
|
8777
|
+
r != null && typeof r.toString != "function" && (r = V.call(r)), K.call(e, r) ? e[r].push(o) : e[r] = [o];
|
|
8794
8778
|
}, ce), dm = we(Is);
|
|
8795
8779
|
function nt(e) {
|
|
8796
8780
|
return It(e) ? Hu(e) : Fa(e);
|
|
@@ -8877,7 +8861,7 @@ oa.exports;
|
|
|
8877
8861
|
function Om(e, r, o, p) {
|
|
8878
8862
|
return p = typeof p == "function" ? p : n, e == null ? e : dl(e, r, Ha(o), p);
|
|
8879
8863
|
}
|
|
8880
|
-
function
|
|
8864
|
+
function zi(e) {
|
|
8881
8865
|
return e == null ? [] : vs(e, nt(e));
|
|
8882
8866
|
}
|
|
8883
8867
|
function Im(e) {
|
|
@@ -8898,7 +8882,7 @@ oa.exports;
|
|
|
8898
8882
|
var v = Ju();
|
|
8899
8883
|
return ct(e + v * (r - e + xa("1e-" + ((v + "").length - 1))), r);
|
|
8900
8884
|
}
|
|
8901
|
-
return
|
|
8885
|
+
return Ka(e, r);
|
|
8902
8886
|
}
|
|
8903
8887
|
var Mm = Bi(function(e, r, o) {
|
|
8904
8888
|
return r = r.toLowerCase(), e + (o ? _f(r) : r);
|
|
@@ -8907,7 +8891,7 @@ oa.exports;
|
|
|
8907
8891
|
return pu(Ce(e).toLowerCase());
|
|
8908
8892
|
}
|
|
8909
8893
|
function Sf(e) {
|
|
8910
|
-
return e = Ce(e), e && e.replace(Zi, ka).replace(
|
|
8894
|
+
return e = Ce(e), e && e.replace(Zi, ka).replace(Kr, "");
|
|
8911
8895
|
}
|
|
8912
8896
|
function Pm(e, r, o) {
|
|
8913
8897
|
e = Ce(e), r = Dt(r);
|
|
@@ -8927,7 +8911,7 @@ oa.exports;
|
|
|
8927
8911
|
}), Fm = Bi(function(e, r, o) {
|
|
8928
8912
|
return e + (o ? " " : "") + r.toLowerCase();
|
|
8929
8913
|
}), Lm = El("toLowerCase");
|
|
8930
|
-
function
|
|
8914
|
+
function zm(e, r, o) {
|
|
8931
8915
|
e = Ce(e), r = ye(r);
|
|
8932
8916
|
var p = r ? vt(e) : 0;
|
|
8933
8917
|
if (!r || p >= r)
|
|
@@ -8935,7 +8919,7 @@ oa.exports;
|
|
|
8935
8919
|
var v = (r - p) / 2;
|
|
8936
8920
|
return Do(_o(v), o) + e + Do(xo(v), o);
|
|
8937
8921
|
}
|
|
8938
|
-
function
|
|
8922
|
+
function Km(e, r, o) {
|
|
8939
8923
|
e = Ce(e), r = ye(r);
|
|
8940
8924
|
var p = r ? vt(e) : 0;
|
|
8941
8925
|
return r && p < r ? e + Do(r - p, o) : e;
|
|
@@ -8973,7 +8957,7 @@ oa.exports;
|
|
|
8973
8957
|
var v = $o({}, r.imports, p.imports, Ml), S = nt(v), I = vs(v, S), P, D, U = 0, J = r.interpolate || Le, $ = "__p += '", te = N(
|
|
8974
8958
|
(r.escape || Le).source + "|" + J.source + "|" + (J === Xs ? cn : Le).source + "|" + (r.evaluate || Le).source + "|$",
|
|
8975
8959
|
"g"
|
|
8976
|
-
), ae = "//# sourceURL=" + (
|
|
8960
|
+
), ae = "//# sourceURL=" + (K.call(r, "sourceURL") ? (r.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++lo + "]") + `
|
|
8977
8961
|
`;
|
|
8978
8962
|
e.replace(te, function(pe, xe, Ee, Ft, _t, Lt) {
|
|
8979
8963
|
return Ee || (Ee = Ft), $ += e.slice(U, Lt).replace(Bn, Aa), xe && (P = !0, $ += `' +
|
|
@@ -8985,7 +8969,7 @@ __p += '`), Ee && ($ += `' +
|
|
|
8985
8969
|
'`), U = Lt + pe.length, pe;
|
|
8986
8970
|
}), $ += `';
|
|
8987
8971
|
`;
|
|
8988
|
-
var he =
|
|
8972
|
+
var he = K.call(r, "variable") && r.variable;
|
|
8989
8973
|
if (!he)
|
|
8990
8974
|
$ = `with (obj) {
|
|
8991
8975
|
` + $ + `
|
|
@@ -9229,7 +9213,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
9229
9213
|
}
|
|
9230
9214
|
var Ly = No(function(e, r) {
|
|
9231
9215
|
return e * r;
|
|
9232
|
-
}, 1),
|
|
9216
|
+
}, 1), zy = Va("round"), Ky = No(function(e, r) {
|
|
9233
9217
|
return e - r;
|
|
9234
9218
|
}, 0);
|
|
9235
9219
|
function qy(e) {
|
|
@@ -9238,10 +9222,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
9238
9222
|
function Wy(e, r) {
|
|
9239
9223
|
return e && e.length ? ms(e, ce(r, 2)) : 0;
|
|
9240
9224
|
}
|
|
9241
|
-
return x.after = fg, x.ary = nf, x.assign = Xg, x.assignIn = yf, x.assignInWith = $o, x.assignWith = Zg, x.at = Qg, x.before = rf, x.bind = au, x.bindAll = iy, x.bindKey = sf, x.castArray = _g, x.chain = Ql, x.chunk = Rp, x.compact = Mp, x.concat = Pp, x.cond = sy, x.conforms = oy, x.constant = du, x.countBy = qd, x.create = em, x.curry = of, x.curryRight = af, x.debounce = uf, x.defaults = tm, x.defaultsDeep = nm, x.defer = cg, x.delay = hg, x.difference = Np, x.differenceBy = Dp, x.differenceWith = Bp, x.drop = Fp, x.dropRight = Lp, x.dropRightWhile =
|
|
9225
|
+
return x.after = fg, x.ary = nf, x.assign = Xg, x.assignIn = yf, x.assignInWith = $o, x.assignWith = Zg, x.at = Qg, x.before = rf, x.bind = au, x.bindAll = iy, x.bindKey = sf, x.castArray = _g, x.chain = Ql, x.chunk = Rp, x.compact = Mp, x.concat = Pp, x.cond = sy, x.conforms = oy, x.constant = du, x.countBy = qd, x.create = em, x.curry = of, x.curryRight = af, x.debounce = uf, x.defaults = tm, x.defaultsDeep = nm, x.defer = cg, x.delay = hg, x.difference = Np, x.differenceBy = Dp, x.differenceWith = Bp, x.drop = Fp, x.dropRight = Lp, x.dropRightWhile = zp, x.dropWhile = Kp, x.fill = qp, x.filter = Ud, x.flatMap = Hd, x.flatMapDeep = $d, x.flatMapDepth = jd, x.flatten = Vl, x.flattenDeep = Wp, x.flattenDepth = Up, x.flip = pg, x.flow = uy, x.flowRight = ly, x.fromPairs = Jp, x.functions = lm, x.functionsIn = fm, x.groupBy = Vd, x.initial = Hp, x.intersection = $p, x.intersectionBy = jp, x.intersectionWith = Vp, x.invert = hm, x.invertBy = pm, x.invokeMap = Xd, x.iteratee = gu, x.keyBy = Zd, x.keys = nt, x.keysIn = Ct, x.map = qo, x.mapKeys = gm, x.mapValues = mm, x.matches = fy, x.matchesProperty = cy, x.memoize = Uo, x.merge = ym, x.mergeWith = vf, x.method = hy, x.methodOf = py, x.mixin = mu, x.negate = Jo, x.nthArg = gy, x.omit = vm, x.omitBy = wm, x.once = dg, x.orderBy = Qd, x.over = my, x.overArgs = gg, x.overEvery = yy, x.overSome = vy, x.partial = uu, x.partialRight = lf, x.partition = eg, x.pick = bm, x.pickBy = wf, x.property = Af, x.propertyOf = wy, x.pull = Qp, x.pullAll = Xl, x.pullAllBy = ed, x.pullAllWith = td, x.pullAt = nd, x.range = by, x.rangeRight = xy, x.rearg = mg, x.reject = rg, x.remove = rd, x.rest = yg, x.reverse = su, x.sampleSize = sg, x.set = _m, x.setWith = Sm, x.shuffle = og, x.slice = id, x.sortBy = lg, x.sortedUniq = cd, x.sortedUniqBy = hd, x.split = Hm, x.spread = vg, x.tail = pd, x.take = dd, x.takeRight = gd, x.takeRightWhile = md, x.takeWhile = yd, x.tap = Md, x.throttle = wg, x.thru = Ko, x.toArray = df, x.toPairs = bf, x.toPairsIn = xf, x.toPath = Ay, x.toPlainObject = mf, x.transform = km, x.unary = bg, x.union = vd, x.unionBy = wd, x.unionWith = bd, x.uniq = xd, x.uniqBy = _d, x.uniqWith = Sd, x.unset = Em, x.unzip = ou, x.unzipWith = Zl, x.update = Am, x.updateWith = Om, x.values = zi, x.valuesIn = Im, x.without = kd, x.words = kf, x.wrap = xg, x.xor = Ed, x.xorBy = Ad, x.xorWith = Od, x.zip = Id, x.zipObject = Cd, x.zipObjectDeep = Td, x.zipWith = Rd, x.entries = bf, x.entriesIn = xf, x.extend = yf, x.extendWith = $o, mu(x, x), x.add = Iy, x.attempt = Ef, x.camelCase = Mm, x.capitalize = _f, x.ceil = Cy, x.clamp = Cm, x.clone = Sg, x.cloneDeep = Eg, x.cloneDeepWith = Ag, x.cloneWith = kg, x.conformsTo = Og, x.deburr = Sf, x.defaultTo = ay, x.divide = Ty, x.endsWith = Pm, x.eq = on, x.escape = Nm, x.escapeRegExp = Dm, x.every = Wd, x.find = Jd, x.findIndex = $l, x.findKey = rm, x.findLast = Gd, x.findLastIndex = jl, x.findLastKey = im, x.floor = Ry, x.forEach = ef, x.forEachRight = tf, x.forIn = sm, x.forInRight = om, x.forOwn = am, x.forOwnRight = um, x.get = cu, x.gt = Ig, x.gte = Cg, x.has = cm, x.hasIn = hu, x.head = Yl, x.identity = Tt, x.includes = Yd, x.indexOf = Gp, x.inRange = Tm, x.invoke = dm, x.isArguments = ni, x.isArray = ge, x.isArrayBuffer = Tg, x.isArrayLike = It, x.isArrayLikeObject = Ye, x.isBoolean = Rg, x.isBuffer = Er, x.isDate = Mg, x.isElement = Pg, x.isEmpty = Ng, x.isEqual = Dg, x.isEqualWith = Bg, x.isError = lu, x.isFinite = Fg, x.isFunction = Zn, x.isInteger = ff, x.isLength = Go, x.isMap = cf, x.isMatch = Lg, x.isMatchWith = zg, x.isNaN = Kg, x.isNative = qg, x.isNil = Ug, x.isNull = Wg, x.isNumber = hf, x.isObject = Je, x.isObjectLike = $e, x.isPlainObject = Ns, x.isRegExp = fu, x.isSafeInteger = Jg, x.isSet = pf, x.isString = Ho, x.isSymbol = Bt, x.isTypedArray = Li, x.isUndefined = Gg, x.isWeakMap = Hg, x.isWeakSet = $g, x.join = Yp, x.kebabCase = Bm, x.last = Yt, x.lastIndexOf = Xp, x.lowerCase = Fm, x.lowerFirst = Lm, x.lt = jg, x.lte = Vg, x.max = My, x.maxBy = Py, x.mean = Ny, x.meanBy = Dy, x.min = By, x.minBy = Fy, x.stubArray = vu, x.stubFalse = wu, x.stubObject = _y, x.stubString = Sy, x.stubTrue = ky, x.multiply = Ly, x.nth = Zp, x.noConflict = dy, x.noop = yu, x.now = Wo, x.pad = zm, x.padEnd = Km, x.padStart = qm, x.parseInt = Wm, x.random = Rm, x.reduce = tg, x.reduceRight = ng, x.repeat = Um, x.replace = Jm, x.result = xm, x.round = zy, x.runInContext = g, x.sample = ig, x.size = ag, x.snakeCase = Gm, x.some = ug, x.sortedIndex = sd, x.sortedIndexBy = od, x.sortedIndexOf = ad, x.sortedLastIndex = ud, x.sortedLastIndexBy = ld, x.sortedLastIndexOf = fd, x.startCase = $m, x.startsWith = jm, x.subtract = Ky, x.sum = qy, x.sumBy = Wy, x.template = Vm, x.times = Ey, x.toFinite = Qn, x.toInteger = ye, x.toLength = gf, x.toLower = Ym, x.toNumber = Xt, x.toSafeInteger = Yg, x.toString = Ce, x.toUpper = Xm, x.trim = Zm, x.trimEnd = Qm, x.trimStart = ey, x.truncate = ty, x.unescape = ny, x.uniqueId = Oy, x.upperCase = ry, x.upperFirst = pu, x.each = ef, x.eachRight = tf, x.first = Yl, mu(x, function() {
|
|
9242
9226
|
var e = {};
|
|
9243
9227
|
return bn(x, function(r, o) {
|
|
9244
|
-
|
|
9228
|
+
K.call(x.prototype, o) || (e[o] = r);
|
|
9245
9229
|
}), e;
|
|
9246
9230
|
}(), { chain: !1 }), x.VERSION = i, ut(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(e) {
|
|
9247
9231
|
x[e].placeholder = x;
|
|
@@ -9307,7 +9291,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
9307
9291
|
if (!S && J) {
|
|
9308
9292
|
I = ve ? I : new Se(this);
|
|
9309
9293
|
var pe = e.apply(I, P);
|
|
9310
|
-
return pe.__actions__.push({ func:
|
|
9294
|
+
return pe.__actions__.push({ func: Ko, args: [$], thisArg: n }), new $t(pe, te);
|
|
9311
9295
|
}
|
|
9312
9296
|
return he && ve ? e.apply(this, P) : (pe = this.thru($), he ? p ? pe.value()[0] : pe.value() : pe);
|
|
9313
9297
|
});
|
|
@@ -9327,26 +9311,26 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
9327
9311
|
var o = x[r];
|
|
9328
9312
|
if (o) {
|
|
9329
9313
|
var p = o.name + "";
|
|
9330
|
-
|
|
9314
|
+
K.call(Pi, p) || (Pi[p] = []), Pi[p].push({ name: r, func: o });
|
|
9331
9315
|
}
|
|
9332
9316
|
}), Pi[Po(n, Te).name] = [{
|
|
9333
9317
|
name: "wrapper",
|
|
9334
9318
|
func: n
|
|
9335
|
-
}], Se.prototype.clone = nh, Se.prototype.reverse = rh, Se.prototype.value = ih, x.prototype.at = Pd, x.prototype.chain = Nd, x.prototype.commit = Dd, x.prototype.next = Bd, x.prototype.plant = Ld, x.prototype.reverse =
|
|
9319
|
+
}], Se.prototype.clone = nh, Se.prototype.reverse = rh, Se.prototype.value = ih, x.prototype.at = Pd, x.prototype.chain = Nd, x.prototype.commit = Dd, x.prototype.next = Bd, x.prototype.plant = Ld, x.prototype.reverse = zd, x.prototype.toJSON = x.prototype.valueOf = x.prototype.value = Kd, x.prototype.first = x.prototype.head, xs && (x.prototype[xs] = Fd), x;
|
|
9336
9320
|
}, k = w();
|
|
9337
9321
|
qn ? ((qn.exports = k)._ = k, as._ = k) : Ve._ = k;
|
|
9338
9322
|
}).call(ii);
|
|
9339
9323
|
})(oa, oa.exports);
|
|
9340
9324
|
var $f = oa.exports;
|
|
9341
|
-
const
|
|
9325
|
+
const h0 = () => navigator.language.toLowerCase().startsWith("zh") ? "zh-CN" : "en", p0 = () => {
|
|
9342
9326
|
const t = new URLSearchParams(window.location.search).get("lang");
|
|
9343
9327
|
return t === "zh-CN" || t === "en" ? t : null;
|
|
9344
|
-
},
|
|
9328
|
+
}, d0 = () => {
|
|
9345
9329
|
const u = localStorage.getItem("pptist-language");
|
|
9346
9330
|
return u === "zh-CN" || u === "en" ? u : null;
|
|
9347
|
-
},
|
|
9348
|
-
locale:
|
|
9349
|
-
}),
|
|
9331
|
+
}, g0 = () => p0() || d0() || h0(), m0 = Jy({
|
|
9332
|
+
locale: g0()
|
|
9333
|
+
}), y0 = (u) => m0.global.t(u), si = Js("slides", {
|
|
9350
9334
|
state: () => ({
|
|
9351
9335
|
title: "",
|
|
9352
9336
|
// 幻灯片标题
|
|
@@ -9420,7 +9404,7 @@ const g0 = () => navigator.language.toLowerCase().startsWith("zh") ? "zh-CN" : "
|
|
|
9420
9404
|
},
|
|
9421
9405
|
actions: {
|
|
9422
9406
|
setTitle(u) {
|
|
9423
|
-
u ? this.title = u : this.title =
|
|
9407
|
+
u ? this.title = u : this.title = y0("common.untitledPresentation");
|
|
9424
9408
|
},
|
|
9425
9409
|
setTheme(u) {
|
|
9426
9410
|
this.theme = { ...this.theme, ...u };
|
|
@@ -9488,7 +9472,7 @@ const g0 = () => navigator.language.toLowerCase().startsWith("zh") ? "zh-CN" : "
|
|
|
9488
9472
|
this.slides[a].elements = h;
|
|
9489
9473
|
}
|
|
9490
9474
|
}
|
|
9491
|
-
}),
|
|
9475
|
+
}), v0 = Uy("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"), Kc = v0(10), jf = Js("main", {
|
|
9492
9476
|
state: () => ({
|
|
9493
9477
|
activeElementIdList: [],
|
|
9494
9478
|
// 被选中的元素ID集合,包含 handleElementId
|
|
@@ -9526,7 +9510,7 @@ const g0 = () => navigator.language.toLowerCase().startsWith("zh") ? "zh-CN" : "
|
|
|
9526
9510
|
// pptId
|
|
9527
9511
|
originalPPTUrl: "",
|
|
9528
9512
|
// 原始ppturl
|
|
9529
|
-
richTextAttrs:
|
|
9513
|
+
richTextAttrs: f0,
|
|
9530
9514
|
// 富文本状态
|
|
9531
9515
|
selectedTableCells: [],
|
|
9532
9516
|
// 选中的表格单元格
|
|
@@ -9536,7 +9520,7 @@ const g0 = () => navigator.language.toLowerCase().startsWith("zh") ? "zh-CN" : "
|
|
|
9536
9520
|
// 当前被选中的页面索引集合
|
|
9537
9521
|
dialogForExport: "",
|
|
9538
9522
|
// 导出面板
|
|
9539
|
-
databaseId:
|
|
9523
|
+
databaseId: Kc,
|
|
9540
9524
|
// 标识当前应用的indexedDB数据库ID
|
|
9541
9525
|
textFormatPainter: null,
|
|
9542
9526
|
// 文字格式刷
|
|
@@ -9694,9 +9678,9 @@ var qc = { exports: {} };
|
|
|
9694
9678
|
}), s;
|
|
9695
9679
|
}
|
|
9696
9680
|
typeof Promise > "u" || f.Promise || (f.Promise = Promise);
|
|
9697
|
-
var M = Object.getPrototypeOf,
|
|
9681
|
+
var M = Object.getPrototypeOf, z = {}.hasOwnProperty;
|
|
9698
9682
|
function W(s, l) {
|
|
9699
|
-
return
|
|
9683
|
+
return z.call(s, l);
|
|
9700
9684
|
}
|
|
9701
9685
|
function G(s, l) {
|
|
9702
9686
|
typeof l == "function" && (l = l(M(s))), (typeof Reflect > "u" ? h : Reflect.ownKeys)(l).forEach(function(c) {
|
|
@@ -9738,13 +9722,13 @@ var qc = { exports: {} };
|
|
|
9738
9722
|
var k, g = l.indexOf(".");
|
|
9739
9723
|
return g === -1 || (k = s[l.substr(0, g)]) == null ? void 0 : mt(k, l.substr(g + 1));
|
|
9740
9724
|
}
|
|
9741
|
-
function
|
|
9725
|
+
function Ke(s, l, c) {
|
|
9742
9726
|
if (s && l !== void 0 && !("isFrozen" in Object && Object.isFrozen(s))) if (typeof l != "string" && "length" in l) {
|
|
9743
9727
|
Qt(typeof c != "string" && "length" in c);
|
|
9744
|
-
for (var d = 0, m = l.length; d < m; ++d)
|
|
9728
|
+
for (var d = 0, m = l.length; d < m; ++d) Ke(s, l[d], c[d]);
|
|
9745
9729
|
} else {
|
|
9746
9730
|
var w, k, g = l.indexOf(".");
|
|
9747
|
-
g !== -1 ? (w = l.substr(0, g), (g = l.substr(g + 1)) === "" ? c === void 0 ? y(s) && !isNaN(parseInt(w)) ? s.splice(w, 1) : delete s[w] : s[w] = c :
|
|
9731
|
+
g !== -1 ? (w = l.substr(0, g), (g = l.substr(g + 1)) === "" ? c === void 0 ? y(s) && !isNaN(parseInt(w)) ? s.splice(w, 1) : delete s[w] : s[w] = c : Ke(k = (k = s[w]) && W(s, w) ? k : s[w] = {}, g, c)) : c === void 0 ? y(s) && !isNaN(parseInt(l)) ? s.splice(l, 1) : delete s[l] : s[l] = c;
|
|
9748
9732
|
}
|
|
9749
9733
|
}
|
|
9750
9734
|
function nr(s) {
|
|
@@ -10284,7 +10268,7 @@ var qc = { exports: {} };
|
|
|
10284
10268
|
function ts(s, l) {
|
|
10285
10269
|
for (var c = h(l), d = c.length, m = !1, w = 0; w < d; ++w) {
|
|
10286
10270
|
var k = c[w], g = l[k], _ = mt(s, k);
|
|
10287
|
-
g instanceof Fn ? (
|
|
10271
|
+
g instanceof Fn ? (Ke(s, k, g.execute(_)), m = !0) : _ !== g && (Ke(s, k, g), m = !0);
|
|
10288
10272
|
}
|
|
10289
10273
|
return m;
|
|
10290
10274
|
}
|
|
@@ -10437,7 +10421,7 @@ var qc = { exports: {} };
|
|
|
10437
10421
|
return g.numFailures ? Q.reject(g.failures[0]) : g.lastResult;
|
|
10438
10422
|
}).then(function(g) {
|
|
10439
10423
|
if (w) try {
|
|
10440
|
-
|
|
10424
|
+
Ke(s, w, g);
|
|
10441
10425
|
} catch {
|
|
10442
10426
|
}
|
|
10443
10427
|
return g;
|
|
@@ -10447,7 +10431,7 @@ var qc = { exports: {} };
|
|
|
10447
10431
|
return this._trans("readwrite", function(m) {
|
|
10448
10432
|
return c.core.get({ trans: m, key: s }).then(function(w) {
|
|
10449
10433
|
var k = w ?? {};
|
|
10450
|
-
return ts(k, l), d &&
|
|
10434
|
+
return ts(k, l), d && Ke(k, d, s), c.core.mutate({ trans: m, type: "put", values: [k], keys: [s], upsert: !0, updates: { keys: [s], changeSpecs: [l] } }).then(function(g) {
|
|
10451
10435
|
return g.numFailures ? Q.reject(g.failures[0]) : !!w;
|
|
10452
10436
|
});
|
|
10453
10437
|
});
|
|
@@ -10462,7 +10446,7 @@ var qc = { exports: {} };
|
|
|
10462
10446
|
return g.numFailures ? Q.reject(g.failures[0]) : g.lastResult;
|
|
10463
10447
|
}).then(function(g) {
|
|
10464
10448
|
if (w) try {
|
|
10465
|
-
|
|
10449
|
+
Ke(s, w, g);
|
|
10466
10450
|
} catch {
|
|
10467
10451
|
}
|
|
10468
10452
|
return g;
|
|
@@ -10535,7 +10519,7 @@ var qc = { exports: {} };
|
|
|
10535
10519
|
var B = F[L], q = C[B];
|
|
10536
10520
|
if (B === l.schema.primKey.keyPath) {
|
|
10537
10521
|
if (be(q, R) !== 0) throw new le.Constraint("Cannot update primary key in bulkUpdate()");
|
|
10538
|
-
} else
|
|
10522
|
+
} else Ke(N, B, q);
|
|
10539
10523
|
}
|
|
10540
10524
|
w.push(T), _.push(R), E.push(N);
|
|
10541
10525
|
}
|
|
@@ -10638,9 +10622,9 @@ var qc = { exports: {} };
|
|
|
10638
10622
|
}, function(T) {
|
|
10639
10623
|
return _.fail(T);
|
|
10640
10624
|
}) || ((O = "" + (A = _.primaryKey)) == "[object ArrayBuffer]" && (O = "" + new Uint8Array(A)), W(m, O)) || (m[O] = !0, l(g, _, E));
|
|
10641
|
-
}, Promise.all([s.or._iterate(w, c),
|
|
10625
|
+
}, Promise.all([s.or._iterate(w, c), zn(wi(s, d, c), s.algorithm, w, !s.keysOnly && s.valueMapper)])) : zn(wi(s, d, c), pn(s.algorithm, k), l, !s.keysOnly && s.valueMapper);
|
|
10642
10626
|
}
|
|
10643
|
-
function
|
|
10627
|
+
function zn(s, l, c, d) {
|
|
10644
10628
|
var m = Fe(d ? function(w, k, g) {
|
|
10645
10629
|
return c(d(w), k, g);
|
|
10646
10630
|
} : c);
|
|
@@ -10829,17 +10813,17 @@ var qc = { exports: {} };
|
|
|
10829
10813
|
function L(B) {
|
|
10830
10814
|
var q = Math.min(E, N.length - B), H = N.slice(B, B + q);
|
|
10831
10815
|
return (C ? Promise.resolve([]) : k.getMany({ trans: d, keys: H, cache: "immutable" })).then(function(X) {
|
|
10832
|
-
var Z = [],
|
|
10816
|
+
var Z = [], K = [], ne = g ? [] : null, ee = C ? H : [];
|
|
10833
10817
|
if (!C) for (var V = 0; V < q; ++V) {
|
|
10834
10818
|
var re = X[V], _e = { value: An(re), primKey: N[B + V] };
|
|
10835
|
-
w.call(_e, _e.value, _e) !== !1 && (_e.value == null ? ee.push(N[B + V]) : g || be(_(re), _(_e.value)) === 0 ? (
|
|
10819
|
+
w.call(_e, _e.value, _e) !== !1 && (_e.value == null ? ee.push(N[B + V]) : g || be(_(re), _(_e.value)) === 0 ? (K.push(_e.value), g && ne.push(N[B + V])) : (ee.push(N[B + V]), Z.push(_e.value)));
|
|
10836
10820
|
}
|
|
10837
10821
|
return Promise.resolve(0 < Z.length && k.mutate({ trans: d, type: "add", values: Z }).then(function(Ae) {
|
|
10838
10822
|
for (var ue in Ae.failures) ee.splice(parseInt(ue), 1);
|
|
10839
10823
|
m(Z.length, Ae);
|
|
10840
10824
|
})).then(function() {
|
|
10841
|
-
return (0 <
|
|
10842
|
-
return m(
|
|
10825
|
+
return (0 < K.length || F && typeof s == "object") && k.mutate({ trans: d, type: "put", keys: ne, values: K, criteria: F, changeSpec: typeof s != "function" && s, isAdditionalChunk: 0 < B }).then(function(Ae) {
|
|
10826
|
+
return m(K.length, Ae);
|
|
10843
10827
|
});
|
|
10844
10828
|
}).then(function() {
|
|
10845
10829
|
return (0 < ee.length || F && C) && k.mutate({ trans: d, type: "delete", keys: ee, criteria: F, isAdditionalChunk: 0 < B }).then(function(Ae) {
|
|
@@ -10889,7 +10873,7 @@ var qc = { exports: {} };
|
|
|
10889
10873
|
function ot(s, l, c) {
|
|
10890
10874
|
return s = s instanceof rs ? new s.Collection(s) : s, s._ctx.error = new (c || TypeError)(l), s;
|
|
10891
10875
|
}
|
|
10892
|
-
function
|
|
10876
|
+
function Kn(s) {
|
|
10893
10877
|
return new s.Collection(s, function() {
|
|
10894
10878
|
return uo("");
|
|
10895
10879
|
}).limit(0);
|
|
@@ -10932,13 +10916,13 @@ var qc = { exports: {} };
|
|
|
10932
10916
|
var q = w(B);
|
|
10933
10917
|
if (l(q, _, C)) return !0;
|
|
10934
10918
|
for (var H = null, X = C; X < O; ++X) {
|
|
10935
|
-
var Z = ((
|
|
10936
|
-
for (var Ae = Math.min(
|
|
10919
|
+
var Z = ((K, ne, ee, V, re, _e) => {
|
|
10920
|
+
for (var Ae = Math.min(K.length, V.length), ue = -1, de = 0; de < Ae; ++de) {
|
|
10937
10921
|
var Ne = ne[de];
|
|
10938
|
-
if (Ne !== V[de]) return re(
|
|
10939
|
-
re(
|
|
10922
|
+
if (Ne !== V[de]) return re(K[de], ee[de]) < 0 ? K.substr(0, de) + ee[de] + ee.substr(de + 1) : re(K[de], V[de]) < 0 ? K.substr(0, de) + V[de] + ee.substr(de + 1) : 0 <= ue ? K.substr(0, ue) + ne[ue] + ee.substr(ue + 1) : null;
|
|
10923
|
+
re(K[de], Ne) < 0 && (ue = de);
|
|
10940
10924
|
}
|
|
10941
|
-
return Ae < V.length && _e === "next" ?
|
|
10925
|
+
return Ae < V.length && _e === "next" ? K + ee.substr(K.length) : Ae < K.length && _e === "prev" ? K.substr(0, ee.length) : ue < 0 ? null : K.substr(0, ue) + V[ue] + ee.substr(ue + 1);
|
|
10942
10926
|
})(B, q, g[X], _[X], k, E);
|
|
10943
10927
|
Z === null && H === null ? C = X + 1 : (H === null || 0 < k(H, Z)) && (H = Z);
|
|
10944
10928
|
}
|
|
@@ -10960,7 +10944,7 @@ var qc = { exports: {} };
|
|
|
10960
10944
|
}, enumerable: !1, configurable: !0 }), Ze.prototype.between = function(s, l, c, d) {
|
|
10961
10945
|
c = c !== !1, d = d === !0;
|
|
10962
10946
|
try {
|
|
10963
|
-
return 0 < this._cmp(s, l) || this._cmp(s, l) === 0 && (c || d) && (!c || !d) ?
|
|
10947
|
+
return 0 < this._cmp(s, l) || this._cmp(s, l) === 0 && (c || d) && (!c || !d) ? Kn(this) : new this.Collection(this, function() {
|
|
10964
10948
|
return dn(s, l, !c, !d);
|
|
10965
10949
|
});
|
|
10966
10950
|
} catch {
|
|
@@ -10998,12 +10982,12 @@ var qc = { exports: {} };
|
|
|
10998
10982
|
}, [s], "");
|
|
10999
10983
|
}, Ze.prototype.anyOfIgnoreCase = function() {
|
|
11000
10984
|
var s = St.apply(rr, arguments);
|
|
11001
|
-
return s.length === 0 ?
|
|
10985
|
+
return s.length === 0 ? Kn(this) : bi(this, function(l, c) {
|
|
11002
10986
|
return c.indexOf(l) !== -1;
|
|
11003
10987
|
}, s, "");
|
|
11004
10988
|
}, Ze.prototype.startsWithAnyOfIgnoreCase = function() {
|
|
11005
10989
|
var s = St.apply(rr, arguments);
|
|
11006
|
-
return s.length === 0 ?
|
|
10990
|
+
return s.length === 0 ? Kn(this) : bi(this, function(l, c) {
|
|
11007
10991
|
return c.some(function(d) {
|
|
11008
10992
|
return l.indexOf(d) === 0;
|
|
11009
10993
|
});
|
|
@@ -11015,7 +10999,7 @@ var qc = { exports: {} };
|
|
|
11015
10999
|
} catch {
|
|
11016
11000
|
return ot(this, Et);
|
|
11017
11001
|
}
|
|
11018
|
-
return d.length === 0 ?
|
|
11002
|
+
return d.length === 0 ? Kn(this) : ((s = new this.Collection(this, function() {
|
|
11019
11003
|
return dn(d[0], d[d.length - 1]);
|
|
11020
11004
|
}))._ondirectionchange = function(w) {
|
|
11021
11005
|
m = w === "next" ? c._ascending : c._descending, d.sort(m);
|
|
@@ -11041,7 +11025,7 @@ var qc = { exports: {} };
|
|
|
11041
11025
|
return l.push([s[s.length - 1], this.db._maxKey]), this.inAnyRange(l, { includeLowers: !1, includeUppers: !1 });
|
|
11042
11026
|
}, Ze.prototype.inAnyRange = function(s, F) {
|
|
11043
11027
|
var c = this, d = this._cmp, m = this._ascending, w = this._descending, k = this._min, g = this._max;
|
|
11044
|
-
if (s.length === 0) return
|
|
11028
|
+
if (s.length === 0) return Kn(this);
|
|
11045
11029
|
if (!s.every(function(B) {
|
|
11046
11030
|
return B[0] !== void 0 && B[1] !== void 0 && m(B[0], B[1]) <= 0;
|
|
11047
11031
|
})) return ot(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", le.InvalidArgument);
|
|
@@ -11086,7 +11070,7 @@ var qc = { exports: {} };
|
|
|
11086
11070
|
var s = St.apply(rr, arguments);
|
|
11087
11071
|
return s.every(function(l) {
|
|
11088
11072
|
return typeof l == "string";
|
|
11089
|
-
}) ? s.length === 0 ?
|
|
11073
|
+
}) ? s.length === 0 ? Kn(this) : this.inAnyRange(s.map(function(l) {
|
|
11090
11074
|
return [l, l + Bn];
|
|
11091
11075
|
})) : ot(this, "startsWithAnyOf() only works with strings");
|
|
11092
11076
|
};
|
|
@@ -11095,13 +11079,13 @@ var qc = { exports: {} };
|
|
|
11095
11079
|
}
|
|
11096
11080
|
function Jt(s) {
|
|
11097
11081
|
return Fe(function(l) {
|
|
11098
|
-
return
|
|
11082
|
+
return zr(l), s(l.target.error), !1;
|
|
11099
11083
|
});
|
|
11100
11084
|
}
|
|
11101
|
-
function
|
|
11085
|
+
function zr(s) {
|
|
11102
11086
|
s.stopPropagation && s.stopPropagation(), s.preventDefault && s.preventDefault();
|
|
11103
11087
|
}
|
|
11104
|
-
var
|
|
11088
|
+
var Kr = "storagemutated", qr = "x-storagemutated-1", gn = Br(null, Kr), wa = (Gt.prototype._lock = function() {
|
|
11105
11089
|
return Qt(!oe.global), ++this._reculock, this._reculock !== 1 || oe.global || (oe.lockOwnerFor = this), this;
|
|
11106
11090
|
}, Gt.prototype._unlock = function() {
|
|
11107
11091
|
if (Qt(!oe.global), --this._reculock == 0) for (oe.global || (oe.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
|
|
@@ -11128,9 +11112,9 @@ var qc = { exports: {} };
|
|
|
11128
11112
|
}
|
|
11129
11113
|
if (!this.active) throw new le.TransactionInactive();
|
|
11130
11114
|
Qt(this._completion._state === null), (s = this.idbtrans = s || (this.db.core || c).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = Fe(function(m) {
|
|
11131
|
-
|
|
11115
|
+
zr(m), l._reject(s.error);
|
|
11132
11116
|
}), s.onabort = Fe(function(m) {
|
|
11133
|
-
|
|
11117
|
+
zr(m), l.active && l._reject(new le.Abort(s.error)), l.active = !1, l.on("abort").fire(m);
|
|
11134
11118
|
}), s.oncomplete = Fe(function() {
|
|
11135
11119
|
l.active = !1, l._resolve(), "mutatedParts" in s && gn.storagemutated.fire(s.mutatedParts);
|
|
11136
11120
|
});
|
|
@@ -11240,21 +11224,21 @@ var qc = { exports: {} };
|
|
|
11240
11224
|
var C = R.trans, N = R.type, L = R.keys, F = R.values, B = R.range;
|
|
11241
11225
|
return new Promise(function(q, H) {
|
|
11242
11226
|
q = Fe(q);
|
|
11243
|
-
var X = C.objectStore(T), Z = X.keyPath == null,
|
|
11244
|
-
if (!
|
|
11227
|
+
var X = C.objectStore(T), Z = X.keyPath == null, K = N === "put" || N === "add";
|
|
11228
|
+
if (!K && N !== "delete" && N !== "deleteRange") throw new Error("Invalid operation type: " + N);
|
|
11245
11229
|
var ne, ee = (L || F || { length: 1 }).length;
|
|
11246
11230
|
if (L && F && L.length !== F.length) throw new Error("Given keys array must have same length as given values array.");
|
|
11247
11231
|
if (ee === 0) return q({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
|
|
11248
11232
|
function V(Be) {
|
|
11249
|
-
++Ae,
|
|
11233
|
+
++Ae, zr(Be);
|
|
11250
11234
|
}
|
|
11251
11235
|
var re = [], _e = [], Ae = 0;
|
|
11252
11236
|
if (N === "deleteRange") {
|
|
11253
11237
|
if (B.type === 4) return q({ numFailures: Ae, failures: _e, results: [], lastResult: void 0 });
|
|
11254
11238
|
B.type === 3 ? re.push(ne = X.clear()) : re.push(ne = X.delete(d(B)));
|
|
11255
11239
|
} else {
|
|
11256
|
-
var Z =
|
|
11257
|
-
if (
|
|
11240
|
+
var Z = K ? Z ? [F, L] : [F, null] : [L, null], ue = Z[0], de = Z[1];
|
|
11241
|
+
if (K) for (var Ne = 0; Ne < ee; ++Ne) re.push(ne = de && de[Ne] !== void 0 ? X[N](ue[Ne], de[Ne]) : X[N](ue[Ne])), ne.onerror = V;
|
|
11258
11242
|
else for (Ne = 0; Ne < ee; ++Ne) re.push(ne = X[N](ue[Ne])), ne.onerror = V;
|
|
11259
11243
|
}
|
|
11260
11244
|
function wt(Be) {
|
|
@@ -11272,8 +11256,8 @@ var qc = { exports: {} };
|
|
|
11272
11256
|
var C = R.trans, N = R.keys;
|
|
11273
11257
|
return new Promise(function(L, F) {
|
|
11274
11258
|
L = Fe(L);
|
|
11275
|
-
for (var B, q = C.objectStore(T), H = N.length, X = new Array(H), Z = 0,
|
|
11276
|
-
re = re.target, X[re._pos] = re.result, ++
|
|
11259
|
+
for (var B, q = C.objectStore(T), H = N.length, X = new Array(H), Z = 0, K = 0, ne = function(re) {
|
|
11260
|
+
re = re.target, X[re._pos] = re.result, ++K === Z && L(X);
|
|
11277
11261
|
}, ee = Jt(F), V = 0; V < H; ++V) N[V] != null && ((B = q.get(N[V]))._pos = V, B.onsuccess = ne, B.onerror = ee, ++Z);
|
|
11278
11262
|
Z === 0 && L(X);
|
|
11279
11263
|
});
|
|
@@ -11289,11 +11273,11 @@ var qc = { exports: {} };
|
|
|
11289
11273
|
}, query: (O = g, function(R) {
|
|
11290
11274
|
return new Promise(function(C, N) {
|
|
11291
11275
|
C = Fe(C);
|
|
11292
|
-
var L, F, B,
|
|
11276
|
+
var L, F, B, K = R.trans, q = R.values, H = R.limit, Z = R.query, X = H === 1 / 0 ? void 0 : H, ne = Z.index, Z = Z.range, K = K.objectStore(T), K = ne.isPrimaryKey ? K : K.index(ne.name), ne = d(Z);
|
|
11293
11277
|
if (H === 0) return C({ result: [] });
|
|
11294
|
-
O ? ((Z = q ?
|
|
11278
|
+
O ? ((Z = q ? K.getAll(ne, X) : K.getAllKeys(ne, X)).onsuccess = function(ee) {
|
|
11295
11279
|
return C({ result: ee.target.result });
|
|
11296
|
-
}, Z.onerror = Jt(N)) : (L = 0, F = !q && "openKeyCursor" in
|
|
11280
|
+
}, Z.onerror = Jt(N)) : (L = 0, F = !q && "openKeyCursor" in K ? K.openKeyCursor(ne) : K.openCursor(ne), B = [], F.onsuccess = function(ee) {
|
|
11297
11281
|
var V = F.result;
|
|
11298
11282
|
return !V || (B.push(q ? V.value : V.primaryKey), ++L === H) ? C({ result: B }) : void V.continue();
|
|
11299
11283
|
}, F.onerror = Jt(N));
|
|
@@ -11302,7 +11286,7 @@ var qc = { exports: {} };
|
|
|
11302
11286
|
var C = R.trans, N = R.values, L = R.query, F = R.reverse, B = R.unique;
|
|
11303
11287
|
return new Promise(function(q, H) {
|
|
11304
11288
|
q = Fe(q);
|
|
11305
|
-
var
|
|
11289
|
+
var K = L.index, X = L.range, Z = C.objectStore(T), Z = K.isPrimaryKey ? Z : Z.index(K.name), K = F ? B ? "prevunique" : "prev" : B ? "nextunique" : "next", ne = !N && "openKeyCursor" in Z ? Z.openKeyCursor(d(X), K) : Z.openCursor(d(X), K);
|
|
11306
11290
|
ne.onerror = Jt(H), ne.onsuccess = Fe(function(ee) {
|
|
11307
11291
|
var V, re, _e, Ae, ue = ne.result;
|
|
11308
11292
|
ue ? (ue.___id = ++ba, ue.done = !1, V = ue.continue.bind(ue), re = (re = ue.continuePrimaryKey) && re.bind(ue), _e = ue.advance.bind(ue), Ae = function() {
|
|
@@ -11417,7 +11401,7 @@ var qc = { exports: {} };
|
|
|
11417
11401
|
return B._cfg.version >= T;
|
|
11418
11402
|
})).length === 0 ? Q.resolve() : (L.forEach(function(B) {
|
|
11419
11403
|
N.push(function() {
|
|
11420
|
-
var q, H, X, Z = F,
|
|
11404
|
+
var q, H, X, Z = F, K = B._cfg.dbschema, ne = ($r(O, Z, C), $r(O, K, C), F = O._dbSchema = K, Jr(Z, K)), ee = (ne.add.forEach(function(V) {
|
|
11421
11405
|
at(C, V[0], V[1].primKey, V[1].indexes);
|
|
11422
11406
|
}), ne.change.forEach(function(V) {
|
|
11423
11407
|
if (V.recreate) throw new le.Upgrade("Not yet support for changing primary key");
|
|
@@ -11430,18 +11414,18 @@ var qc = { exports: {} };
|
|
|
11430
11414
|
return re.deleteIndex(_e);
|
|
11431
11415
|
});
|
|
11432
11416
|
}), B._cfg.contentUpgrade);
|
|
11433
|
-
if (ee && B._cfg.version > T) return Ur(O, C), R._memoizedTables = {}, q = nr(
|
|
11417
|
+
if (ee && B._cfg.version > T) return Ur(O, C), R._memoizedTables = {}, q = nr(K), ne.del.forEach(function(V) {
|
|
11434
11418
|
q[V] = Z[V];
|
|
11435
|
-
}), Ve(O, [O.Transaction.prototype]), xi(O, [O.Transaction.prototype], h(q), q), R.schema = q, (H = kt(ee)) && pr(),
|
|
11419
|
+
}), Ve(O, [O.Transaction.prototype]), xi(O, [O.Transaction.prototype], h(q), q), R.schema = q, (H = kt(ee)) && pr(), K = Q.follow(function() {
|
|
11436
11420
|
var V;
|
|
11437
11421
|
(X = ee(R)) && H && (V = cn.bind(null, null), X.then(V, V));
|
|
11438
|
-
}), X && typeof X.then == "function" ? Q.resolve(X) :
|
|
11422
|
+
}), X && typeof X.then == "function" ? Q.resolve(X) : K.then(function() {
|
|
11439
11423
|
return X;
|
|
11440
11424
|
});
|
|
11441
11425
|
}), N.push(function(q) {
|
|
11442
11426
|
var H, X, Z = B._cfg.dbschema;
|
|
11443
|
-
H = Z, X = q, [].slice.call(X.db.objectStoreNames).forEach(function(
|
|
11444
|
-
return H[
|
|
11427
|
+
H = Z, X = q, [].slice.call(X.db.objectStoreNames).forEach(function(K) {
|
|
11428
|
+
return H[K] == null && X.db.deleteObjectStore(K);
|
|
11445
11429
|
}), Ve(O, [O.Transaction.prototype]), xi(O, [O.Transaction.prototype], O._storeNames, O._dbSchema), R.schema = O._dbSchema;
|
|
11446
11430
|
}), N.push(function(q) {
|
|
11447
11431
|
O.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(O.idbdb.version / 10) === B._cfg.version ? (O.idbdb.deleteObjectStore("$meta"), delete O._dbSchema.$meta, O._storeNames = O._storeNames.filter(function(H) {
|
|
@@ -11578,9 +11562,9 @@ var qc = { exports: {} };
|
|
|
11578
11562
|
function _i(s) {
|
|
11579
11563
|
return !("from" in s);
|
|
11580
11564
|
}
|
|
11581
|
-
var
|
|
11565
|
+
var ze = function(s, l) {
|
|
11582
11566
|
var c;
|
|
11583
|
-
if (!this) return c = new
|
|
11567
|
+
if (!this) return c = new ze(), s && "d" in s && b(c, s), c;
|
|
11584
11568
|
b(this, arguments.length ? { d: 1, from: s, to: 1 < arguments.length ? l : s } : { d: 0 });
|
|
11585
11569
|
};
|
|
11586
11570
|
function mn(s, l, c) {
|
|
@@ -11650,7 +11634,7 @@ var qc = { exports: {} };
|
|
|
11650
11634
|
return l[c] && De(l[c], s[c]);
|
|
11651
11635
|
});
|
|
11652
11636
|
}
|
|
11653
|
-
G(
|
|
11637
|
+
G(ze.prototype, ((yt = { add: function(s) {
|
|
11654
11638
|
return Wn(this, s), this;
|
|
11655
11639
|
}, addKey: function(s) {
|
|
11656
11640
|
return mn(this, s, s), this;
|
|
@@ -11715,14 +11699,14 @@ var qc = { exports: {} };
|
|
|
11715
11699
|
if (!N) throw new le.MissingAPI();
|
|
11716
11700
|
N.onerror = Jt(R), N.onblocked = Fe(s._fireOnBlocked), N.onupgradeneeded = Fe(function(L) {
|
|
11717
11701
|
var F;
|
|
11718
|
-
A = N.transaction, l.autoSchema && !s._options.allowEmptyDB ? (N.onerror =
|
|
11702
|
+
A = N.transaction, l.autoSchema && !s._options.allowEmptyDB ? (N.onerror = zr, A.abort(), N.result.close(), (F = c.deleteDatabase(C)).onsuccess = F.onerror = Fe(function() {
|
|
11719
11703
|
R(new le.NoSuchDatabase("Database ".concat(C, " doesnt exist")));
|
|
11720
11704
|
})) : (A.onerror = Jt(R), F = L.oldVersion > Math.pow(2, 62) ? 0 : L.oldVersion, O = F < 1, s.idbdb = N.result, w && co(s, A), qn(s, F / 10, A, R));
|
|
11721
11705
|
}, R), N.onsuccess = Fe(function() {
|
|
11722
11706
|
A = null;
|
|
11723
|
-
var L, F, B, q, H, X, Z = s.idbdb = N.result,
|
|
11724
|
-
if (0 <
|
|
11725
|
-
var ne = Z.transaction((H =
|
|
11707
|
+
var L, F, B, q, H, X, Z = s.idbdb = N.result, K = gt(Z.objectStoreNames);
|
|
11708
|
+
if (0 < K.length) try {
|
|
11709
|
+
var ne = Z.transaction((H = K).length === 1 ? H[0] : H, "readonly");
|
|
11726
11710
|
if (l.autoSchema) X = Z, q = ne, (B = s).verno = X.version / 10, q = B._dbSchema = Hr(0, X, q), B._storeNames = gt(X.objectStoreNames, 0), xi(B, [B._allTables], h(q), q);
|
|
11727
11711
|
else if ($r(s, s._dbSchema, ne), F = ne, ((F = Jr(Hr(0, (L = s).idbdb, F), L._dbSchema)).add.length || F.change.some(function(ee) {
|
|
11728
11712
|
return ee.add.length || ee.change.length;
|
|
@@ -11734,7 +11718,7 @@ var qc = { exports: {} };
|
|
|
11734
11718
|
l.vcFired = !0, s.on("versionchange").fire(ee);
|
|
11735
11719
|
}), Z.onclose = Fe(function() {
|
|
11736
11720
|
s.close({ disableAutoOpen: !1 });
|
|
11737
|
-
}), O && (
|
|
11721
|
+
}), O && (K = s._deps, H = C, ut(X = K.indexedDB) || H === gi || fs(X, K.IDBKeyRange).put({ name: H }).catch(Oe)), T();
|
|
11738
11722
|
}, R);
|
|
11739
11723
|
}).catch(function(T) {
|
|
11740
11724
|
switch (T == null ? void 0 : T.name) {
|
|
@@ -11779,9 +11763,9 @@ var qc = { exports: {} };
|
|
|
11779
11763
|
var T;
|
|
11780
11764
|
return O && (T = {}, s.tables.forEach(function(R) {
|
|
11781
11765
|
R.schema.indexes.forEach(function(C) {
|
|
11782
|
-
C.name && (T["idb://".concat(s.name, "/").concat(R.name, "/").concat(C.name)] = new
|
|
11783
|
-
}), T["idb://".concat(s.name, "/").concat(R.name, "/")] = T["idb://".concat(s.name, "/").concat(R.name, "/:dels")] = new
|
|
11784
|
-
}), gn(
|
|
11766
|
+
C.name && (T["idb://".concat(s.name, "/").concat(R.name, "/").concat(C.name)] = new ze(-1 / 0, [[[]]]));
|
|
11767
|
+
}), T["idb://".concat(s.name, "/").concat(R.name, "/")] = T["idb://".concat(s.name, "/").concat(R.name, "/:dels")] = new ze(-1 / 0, [[[]]]);
|
|
11768
|
+
}), gn(Kr).fire(T), yn(T, !0)), s;
|
|
11785
11769
|
});
|
|
11786
11770
|
}
|
|
11787
11771
|
function Ei(s) {
|
|
@@ -11900,15 +11884,15 @@ var qc = { exports: {} };
|
|
|
11900
11884
|
var T, R, C, N = oe.trans, L = O.keys || gs(d, O);
|
|
11901
11885
|
if (L) return (O = O.type === "add" || O.type === "put" ? i(i({}, O), { keys: L }) : i({}, O)).type !== "delete" && (O.values = a([], O.values)), O.keys && (O.keys = a([], O.keys)), T = c, C = L, ((R = O).type === "add" ? Promise.resolve([]) : T.getMany({ trans: R.trans, keys: C, cache: "immutable" })).then(function(F) {
|
|
11902
11886
|
var B = L.map(function(q, H) {
|
|
11903
|
-
var X, Z,
|
|
11904
|
-
return O.type === "delete" ? g.fire.call(ee, q, ne, N) : O.type === "add" || ne === void 0 ? (X = _.fire.call(ee, q, O.values[H], N), q == null && X != null && (O.keys[H] = q = X, d.outbound ||
|
|
11905
|
-
W(
|
|
11887
|
+
var X, Z, K, ne = F[H], ee = { onerror: null, onsuccess: null };
|
|
11888
|
+
return O.type === "delete" ? g.fire.call(ee, q, ne, N) : O.type === "add" || ne === void 0 ? (X = _.fire.call(ee, q, O.values[H], N), q == null && X != null && (O.keys[H] = q = X, d.outbound || Ke(O.values[H], d.keyPath, q))) : (X = Ai(ne, O.values[H]), (Z = E.fire.call(ee, X, q, ne, N)) && (K = O.values[H], Object.keys(Z).forEach(function(V) {
|
|
11889
|
+
W(K, V) ? K[V] = Z[V] : Ke(K, V, Z[V]);
|
|
11906
11890
|
}))), ee;
|
|
11907
11891
|
});
|
|
11908
11892
|
return c.mutate(O).then(function(q) {
|
|
11909
|
-
for (var H = q.failures, X = q.results, Z = q.numFailures, q = q.lastResult,
|
|
11910
|
-
var ne = (X || L)[
|
|
11911
|
-
ne == null ? ee.onerror && ee.onerror(H[
|
|
11893
|
+
for (var H = q.failures, X = q.results, Z = q.numFailures, q = q.lastResult, K = 0; K < L.length; ++K) {
|
|
11894
|
+
var ne = (X || L)[K], ee = B[K];
|
|
11895
|
+
ne == null ? ee.onerror && ee.onerror(H[K]) : ee.onsuccess && ee.onsuccess(O.type === "put" && F[K] ? O.values[K] : ne);
|
|
11912
11896
|
}
|
|
11913
11897
|
return { failures: H, results: X, numFailures: Z, lastResult: q };
|
|
11914
11898
|
}).catch(function(q) {
|
|
@@ -11959,25 +11943,25 @@ var qc = { exports: {} };
|
|
|
11959
11943
|
}
|
|
11960
11944
|
}
|
|
11961
11945
|
var vs = { stack: "dbcore", level: 0, name: "Observability", create: function(s) {
|
|
11962
|
-
var l = s.schema.name, c = new
|
|
11946
|
+
var l = s.schema.name, c = new ze(s.MIN_KEY, s.MAX_KEY);
|
|
11963
11947
|
return i(i({}, s), { transaction: function(d, m, w) {
|
|
11964
11948
|
if (oe.subscr && m !== "readonly") throw new le.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(oe.querier));
|
|
11965
11949
|
return s.transaction(d, m, w);
|
|
11966
11950
|
}, table: function(d) {
|
|
11967
11951
|
function m(L) {
|
|
11968
11952
|
var N, L = L.query;
|
|
11969
|
-
return [N = L.index, new
|
|
11953
|
+
return [N = L.index, new ze((N = (L = L.range).lower) != null ? N : s.MIN_KEY, (N = L.upper) != null ? N : s.MAX_KEY)];
|
|
11970
11954
|
}
|
|
11971
11955
|
var w = s.table(d), k = w.schema, g = k.primaryKey, _ = k.indexes, E = g.extractKey, A = g.outbound, O = g.autoIncrement && _.filter(function(C) {
|
|
11972
11956
|
return C.compound && C.keyPath.includes(g.keyPath);
|
|
11973
11957
|
}), T = i(i({}, w), { mutate: function(C) {
|
|
11974
11958
|
function N(re) {
|
|
11975
|
-
return re = "idb://".concat(l, "/").concat(d, "/").concat(re), H[re] || (H[re] = new
|
|
11959
|
+
return re = "idb://".concat(l, "/").concat(d, "/").concat(re), H[re] || (H[re] = new ze());
|
|
11976
11960
|
}
|
|
11977
|
-
var L, F, B, q = C.trans, H = C.mutatedParts || (C.mutatedParts = {}), X = N(""), Z = N(":dels"),
|
|
11961
|
+
var L, F, B, q = C.trans, H = C.mutatedParts || (C.mutatedParts = {}), X = N(""), Z = N(":dels"), K = C.type, ee = C.type === "deleteRange" ? [C.range] : C.type === "delete" ? [C.keys] : C.values.length < 50 ? [gs(g, C).filter(function(re) {
|
|
11978
11962
|
return re;
|
|
11979
11963
|
}), C.values] : [], ne = ee[0], ee = ee[1], V = C.trans._cache;
|
|
11980
|
-
return y(ne) ? (X.addKeys(ne), (
|
|
11964
|
+
return y(ne) ? (X.addKeys(ne), (K = K === "delete" || ne.length === ee.length ? Oi(ne, V) : null) || Z.addKeys(ne), (K || ee) && (L = N, F = K, B = ee, k.indexes.forEach(function(re) {
|
|
11981
11965
|
var _e = L(re.name || "");
|
|
11982
11966
|
function Ae(de) {
|
|
11983
11967
|
return de != null ? re.extractKey(de) : null;
|
|
@@ -11991,7 +11975,7 @@ var qc = { exports: {} };
|
|
|
11991
11975
|
var wt = F && Ae(F[Be]), Be = B && Ae(B[Be]);
|
|
11992
11976
|
be(wt, Be) !== 0 && (wt != null && ue(wt), Be != null) && ue(Be);
|
|
11993
11977
|
});
|
|
11994
|
-
}))) : ne ? (ee = { from: (V = ne.lower) != null ? V : s.MIN_KEY, to: (
|
|
11978
|
+
}))) : ne ? (ee = { from: (V = ne.lower) != null ? V : s.MIN_KEY, to: (K = ne.upper) != null ? K : s.MAX_KEY }, Z.add(ee), X.add(ee)) : (X.add(c), Z.add(c), k.indexes.forEach(function(re) {
|
|
11995
11979
|
return N(re.name).add(c);
|
|
11996
11980
|
})), w.mutate(C).then(function(re) {
|
|
11997
11981
|
return !ne || C.type !== "add" && C.type !== "put" || (X.addKeys(re.results), O && O.forEach(function(_e) {
|
|
@@ -12004,16 +11988,16 @@ var qc = { exports: {} };
|
|
|
12004
11988
|
})), q.mutatedParts = yr(q.mutatedParts || {}, H), re;
|
|
12005
11989
|
});
|
|
12006
11990
|
} }), R = { get: function(C) {
|
|
12007
|
-
return [g, new
|
|
11991
|
+
return [g, new ze(C.key)];
|
|
12008
11992
|
}, getMany: function(C) {
|
|
12009
|
-
return [g, new
|
|
11993
|
+
return [g, new ze().addKeys(C.keys)];
|
|
12010
11994
|
}, count: m, query: m, openCursor: m };
|
|
12011
11995
|
return h(R).forEach(function(C) {
|
|
12012
11996
|
T[C] = function(N) {
|
|
12013
11997
|
var L = oe.subscr, F = !!L, B = ys(oe, w) && lt(C, N) ? N.obsSet = {} : L;
|
|
12014
11998
|
if (F) {
|
|
12015
11999
|
var q, L = function(ee) {
|
|
12016
|
-
return ee = "idb://".concat(l, "/").concat(d, "/").concat(ee), B[ee] || (B[ee] = new
|
|
12000
|
+
return ee = "idb://".concat(l, "/").concat(d, "/").concat(ee), B[ee] || (B[ee] = new ze());
|
|
12017
12001
|
}, H = L(""), X = L(":dels"), F = R[C](N), Z = F[0], F = F[1];
|
|
12018
12002
|
if ((C === "query" && Z.isPrimaryKey && !N.values ? X : L(Z.name || "")).add(F), !Z.isPrimaryKey) {
|
|
12019
12003
|
if (C !== "count") return q = C === "query" && A && N.values && w.query(i(i({}, N), { values: !1 })), w[C].apply(this, arguments).then(function(ee) {
|
|
@@ -12060,7 +12044,7 @@ var qc = { exports: {} };
|
|
|
12060
12044
|
var k, g, _, E, A, O;
|
|
12061
12045
|
return !c || c.length === 0 || (k = l.query.index, g = k.multiEntry, _ = l.query.range, E = d.schema.primaryKey.extractKey, A = k.extractKey, O = (k.lowLevelIndex || k).extractKey, (d = c.reduce(function(T, R) {
|
|
12062
12046
|
var C = T, N = [];
|
|
12063
|
-
if (R.type === "add" || R.type === "put") for (var L = new
|
|
12047
|
+
if (R.type === "add" || R.type === "put") for (var L = new ze(), F = R.values.length - 1; 0 <= F; --F) {
|
|
12064
12048
|
var B, q = R.values[F], H = E(q);
|
|
12065
12049
|
!L.hasKey(H) && (B = A(q), g && y(B) ? B.some(function(ee) {
|
|
12066
12050
|
return Ii(ee, _);
|
|
@@ -12068,7 +12052,7 @@ var qc = { exports: {} };
|
|
|
12068
12052
|
}
|
|
12069
12053
|
switch (R.type) {
|
|
12070
12054
|
case "add":
|
|
12071
|
-
var X = new
|
|
12055
|
+
var X = new ze().addKeys(l.values ? T.map(function(V) {
|
|
12072
12056
|
return E(V);
|
|
12073
12057
|
}) : T), C = T.concat(l.values ? N.filter(function(V) {
|
|
12074
12058
|
return V = E(V), !X.hasKey(V) && (X.addKey(V), !0);
|
|
@@ -12079,7 +12063,7 @@ var qc = { exports: {} };
|
|
|
12079
12063
|
}));
|
|
12080
12064
|
break;
|
|
12081
12065
|
case "put":
|
|
12082
|
-
var Z = new
|
|
12066
|
+
var Z = new ze().addKeys(R.values.map(function(V) {
|
|
12083
12067
|
return E(V);
|
|
12084
12068
|
}));
|
|
12085
12069
|
C = T.filter(function(V) {
|
|
@@ -12089,9 +12073,9 @@ var qc = { exports: {} };
|
|
|
12089
12073
|
}));
|
|
12090
12074
|
break;
|
|
12091
12075
|
case "delete":
|
|
12092
|
-
var
|
|
12076
|
+
var K = new ze().addKeys(R.keys);
|
|
12093
12077
|
C = T.filter(function(V) {
|
|
12094
|
-
return !
|
|
12078
|
+
return !K.hasKey(l.values ? E(V) : V);
|
|
12095
12079
|
});
|
|
12096
12080
|
break;
|
|
12097
12081
|
case "deleteRange":
|
|
@@ -12150,16 +12134,16 @@ var qc = { exports: {} };
|
|
|
12150
12134
|
var C = s.table(T), N = R.optimisticOps.filter(function(re) {
|
|
12151
12135
|
return re.trans === g;
|
|
12152
12136
|
});
|
|
12153
|
-
if (g._explicit && _ && g.mutatedParts) for (var L = 0, F = Object.values(R.queries.query); L < F.length; L++) for (var B = 0, q = (Z = F[L]).slice(); B < q.length; B++) hs((
|
|
12137
|
+
if (g._explicit && _ && g.mutatedParts) for (var L = 0, F = Object.values(R.queries.query); L < F.length; L++) for (var B = 0, q = (Z = F[L]).slice(); B < q.length; B++) hs((K = q[B]).obsSet, g.mutatedParts) && (st(Z, K), K.subscribers.forEach(function(re) {
|
|
12154
12138
|
return E.add(re);
|
|
12155
12139
|
}));
|
|
12156
12140
|
else if (0 < N.length) {
|
|
12157
12141
|
R.optimisticOps = R.optimisticOps.filter(function(re) {
|
|
12158
12142
|
return re.trans !== g;
|
|
12159
12143
|
});
|
|
12160
|
-
for (var H = 0, X = Object.values(R.queries.query); H < X.length; H++) for (var Z,
|
|
12144
|
+
for (var H = 0, X = Object.values(R.queries.query); H < X.length; H++) for (var Z, K, ne, ee = 0, V = (Z = X[H]).slice(); ee < V.length; ee++) (K = V[ee]).res != null && g.mutatedParts && (_ && !K.dirty ? (ne = Object.isFrozen(K.res), ne = ws(K.res, K.req, N, C, K, ne), K.dirty ? (st(Z, K), K.subscribers.forEach(function(re) {
|
|
12161
12145
|
return E.add(re);
|
|
12162
|
-
})) : ne !==
|
|
12146
|
+
})) : ne !== K.res && (K.res = ne, K.promise = Q.resolve({ result: ne }))) : (K.dirty && st(Z, K), K.subscribers.forEach(function(re) {
|
|
12163
12147
|
return E.add(re);
|
|
12164
12148
|
})));
|
|
12165
12149
|
}
|
|
@@ -12184,7 +12168,7 @@ var qc = { exports: {} };
|
|
|
12184
12168
|
})) : g.then(function(_) {
|
|
12185
12169
|
var E = wr(0, i(i({}, w), { values: w.values.map(function(A, O) {
|
|
12186
12170
|
var T;
|
|
12187
|
-
return _.failures[O] ? A : (
|
|
12171
|
+
return _.failures[O] ? A : (Ke(T = (T = m.keyPath) != null && T.includes(".") ? An(A) : i({}, A), m.keyPath, _.results[O]), T);
|
|
12188
12172
|
}) }), _);
|
|
12189
12173
|
k.optimisticOps.push(E), queueMicrotask(function() {
|
|
12190
12174
|
return w.mutatedParts && Jn(w.mutatedParts);
|
|
@@ -12505,7 +12489,7 @@ var qc = { exports: {} };
|
|
|
12505
12489
|
c = !0, l = B, g || L.signal.aborted || (_ = {}, ((q) => {
|
|
12506
12490
|
for (var H in q) if (W(q, H)) return;
|
|
12507
12491
|
return 1;
|
|
12508
|
-
})(E = N) || O || (gn(
|
|
12492
|
+
})(E = N) || O || (gn(Kr, R), O = !0), Zi(function() {
|
|
12509
12493
|
return !g && m.next && m.next(B);
|
|
12510
12494
|
}));
|
|
12511
12495
|
}, function(B) {
|
|
@@ -12582,15 +12566,15 @@ var qc = { exports: {} };
|
|
|
12582
12566
|
return Ge;
|
|
12583
12567
|
}, set: function(s) {
|
|
12584
12568
|
ar(s);
|
|
12585
|
-
} }, derive: se, extend: b, props: G, override: je, Events: Br, on: gn, liveQuery: jr, extendObservabilitySet: yr, getByKeyPath: mt, setByKeyPath:
|
|
12586
|
-
typeof l == "string" ?
|
|
12587
|
-
|
|
12569
|
+
} }, derive: se, extend: b, props: G, override: je, Events: Br, on: gn, liveQuery: jr, extendObservabilitySet: yr, getByKeyPath: mt, setByKeyPath: Ke, delByKeyPath: function(s, l) {
|
|
12570
|
+
typeof l == "string" ? Ke(s, l, void 0) : "length" in l && [].map.call(l, function(c) {
|
|
12571
|
+
Ke(s, c, void 0);
|
|
12588
12572
|
});
|
|
12589
12573
|
}, shallowClone: nr, deepClone: An, getObjectDiff: Ai, cmp: be, asap: Wt, minKey: -1 / 0, addons: [], connections: dr, errnames: Tn, dependencies: Ti, cache: Un, semVer: "4.3.0", version: "4.3.0".split(".").map(function(s) {
|
|
12590
12574
|
return parseInt(s);
|
|
12591
12575
|
}).reduce(function(s, l, c) {
|
|
12592
12576
|
return s + l / Math.pow(10, 2 * c);
|
|
12593
|
-
}) })), Gn.maxKey = Ie(Gn.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (gn(
|
|
12577
|
+
}) })), Gn.maxKey = Ie(Gn.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (gn(Kr, function(s) {
|
|
12594
12578
|
vt || (s = new CustomEvent(qr, { detail: s }), vt = !0, dispatchEvent(s), vt = !1);
|
|
12595
12579
|
}), addEventListener(qr, function(s) {
|
|
12596
12580
|
s = s.detail, vt || bs(s);
|
|
@@ -12601,7 +12585,7 @@ var qc = { exports: {} };
|
|
|
12601
12585
|
(br = new BroadcastChannel(qr)).onmessage = function(s) {
|
|
12602
12586
|
return s.data && bs(s.data);
|
|
12603
12587
|
};
|
|
12604
|
-
})(), typeof br.unref == "function" && br.unref(), gn(
|
|
12588
|
+
})(), typeof br.unref == "function" && br.unref(), gn(Kr, function(s) {
|
|
12605
12589
|
vt || br.postMessage(s);
|
|
12606
12590
|
})), typeof addEventListener < "u" && (addEventListener("pagehide", function(s) {
|
|
12607
12591
|
if (!ft.disableBfCache && s.persisted) {
|
|
@@ -12609,12 +12593,12 @@ var qc = { exports: {} };
|
|
|
12609
12593
|
for (var l = 0, c = dr; l < c.length; l++) c[l].close({ disableAutoOpen: !1 });
|
|
12610
12594
|
}
|
|
12611
12595
|
}), addEventListener("pageshow", function(s) {
|
|
12612
|
-
!ft.disableBfCache && s.persisted && (Ge && console.debug("Dexie: handling persisted pageshow"), At(), bs({ all: new
|
|
12596
|
+
!ft.disableBfCache && s.persisted && (Ge && console.debug("Dexie: handling persisted pageshow"), At(), bs({ all: new ze(-1 / 0, [[]]) }));
|
|
12613
12597
|
})), Q.rejectionMapper = function(s, l) {
|
|
12614
12598
|
return !s || s instanceof ir || s instanceof TypeError || s instanceof SyntaxError || !s.name || !Tr[s.name] ? s : (l = new Tr[s.name](l || s.message, s), "stack" in s && Y(l, "stack", { get: function() {
|
|
12615
12599
|
return this.inner.stack;
|
|
12616
12600
|
} }), l);
|
|
12617
|
-
}, ar(Ge), i(ft, Object.freeze({ __proto__: null, Dexie: ft, Entity: no, PropModification: Fn, RangeSet:
|
|
12601
|
+
}, ar(Ge), i(ft, Object.freeze({ __proto__: null, Dexie: ft, Entity: no, PropModification: Fn, RangeSet: ze, add: function(s) {
|
|
12618
12602
|
return new Fn({ add: s });
|
|
12619
12603
|
}, cmp: be, default: ft, liveQuery: jr, mergeRanges: Wn, rangesOverlap: De, remove: function(s) {
|
|
12620
12604
|
return new Fn({ remove: s });
|
|
@@ -12623,28 +12607,28 @@ var qc = { exports: {} };
|
|
|
12623
12607
|
} }), { default: ft }), ft;
|
|
12624
12608
|
});
|
|
12625
12609
|
})(qc);
|
|
12626
|
-
var
|
|
12627
|
-
const Du = /* @__PURE__ */
|
|
12610
|
+
var w0 = qc.exports;
|
|
12611
|
+
const Du = /* @__PURE__ */ c0(w0), Vf = Symbol.for("Dexie"), aa = globalThis[Vf] || (globalThis[Vf] = Du);
|
|
12628
12612
|
if (Du.semVer !== aa.semVer)
|
|
12629
12613
|
throw new Error(`Two different versions of Dexie loaded in the same app: ${Du.semVer} and ${aa.semVer}`);
|
|
12630
12614
|
const {
|
|
12631
|
-
liveQuery:
|
|
12632
|
-
mergeRanges:
|
|
12633
|
-
rangesOverlap:
|
|
12634
|
-
RangeSet:
|
|
12635
|
-
cmp:
|
|
12636
|
-
Entity:
|
|
12637
|
-
PropModification:
|
|
12638
|
-
replacePrefix:
|
|
12639
|
-
add:
|
|
12640
|
-
remove:
|
|
12641
|
-
DexieYProvider:
|
|
12642
|
-
} = aa,
|
|
12615
|
+
liveQuery: J0,
|
|
12616
|
+
mergeRanges: G0,
|
|
12617
|
+
rangesOverlap: H0,
|
|
12618
|
+
RangeSet: $0,
|
|
12619
|
+
cmp: j0,
|
|
12620
|
+
Entity: V0,
|
|
12621
|
+
PropModification: Y0,
|
|
12622
|
+
replacePrefix: X0,
|
|
12623
|
+
add: Z0,
|
|
12624
|
+
remove: Q0,
|
|
12625
|
+
DexieYProvider: ew
|
|
12626
|
+
} = aa, b0 = "PPTist", Sn = new aa(`${b0}_${Kc}_${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
12643
12627
|
Sn.version(1).stores({
|
|
12644
12628
|
snapshots: "++id",
|
|
12645
12629
|
writingBoardImgs: "id"
|
|
12646
12630
|
});
|
|
12647
|
-
const
|
|
12631
|
+
const tw = Js("snapshot", {
|
|
12648
12632
|
state: () => ({
|
|
12649
12633
|
snapshotCursor: -1,
|
|
12650
12634
|
// 历史快照指针
|
|
@@ -12705,7 +12689,7 @@ const iw = Js("snapshot", {
|
|
|
12705
12689
|
u.setSlides(h), u.updateSlideIndex(y), this.setSnapshotCursor(n), t.setActiveElementIdList([]);
|
|
12706
12690
|
}
|
|
12707
12691
|
}
|
|
12708
|
-
}),
|
|
12692
|
+
}), nw = Js("keyboard", {
|
|
12709
12693
|
state: () => ({
|
|
12710
12694
|
ctrlKeyState: !1,
|
|
12711
12695
|
// ctrl键按下状态
|
|
@@ -12730,7 +12714,7 @@ const iw = Js("snapshot", {
|
|
|
12730
12714
|
this.spaceKeyState = u;
|
|
12731
12715
|
}
|
|
12732
12716
|
}
|
|
12733
|
-
}),
|
|
12717
|
+
}), rw = Js("screen", {
|
|
12734
12718
|
state: () => ({
|
|
12735
12719
|
screening: !1
|
|
12736
12720
|
// 是否进入放映状态
|
|
@@ -12742,58 +12726,57 @@ const iw = Js("snapshot", {
|
|
|
12742
12726
|
}
|
|
12743
12727
|
});
|
|
12744
12728
|
export {
|
|
12745
|
-
Sn as $,
|
|
12746
12729
|
Zt as A,
|
|
12747
|
-
|
|
12748
|
-
|
|
12730
|
+
Xv as B,
|
|
12731
|
+
Vv as C,
|
|
12749
12732
|
pc as D,
|
|
12750
|
-
|
|
12733
|
+
D0 as E,
|
|
12751
12734
|
ie as F,
|
|
12752
|
-
|
|
12753
|
-
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
-
|
|
12757
|
-
|
|
12735
|
+
k0 as G,
|
|
12736
|
+
Ls as H,
|
|
12737
|
+
B0 as I,
|
|
12738
|
+
a0 as J,
|
|
12739
|
+
q0 as K,
|
|
12740
|
+
F0 as L,
|
|
12758
12741
|
Pe as M,
|
|
12759
12742
|
We as N,
|
|
12760
|
-
|
|
12761
|
-
|
|
12762
|
-
|
|
12743
|
+
L0 as O,
|
|
12744
|
+
A0 as P,
|
|
12745
|
+
W0 as Q,
|
|
12763
12746
|
qt as R,
|
|
12764
12747
|
qe as S,
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12748
|
+
Kt as T,
|
|
12749
|
+
Cu as U,
|
|
12750
|
+
T0 as V,
|
|
12768
12751
|
P0 as W,
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12752
|
+
z0 as X,
|
|
12753
|
+
K0 as Y,
|
|
12754
|
+
Yf as Z,
|
|
12755
|
+
Sn as _,
|
|
12773
12756
|
jf as a,
|
|
12774
|
-
|
|
12757
|
+
rw as b,
|
|
12775
12758
|
si as c,
|
|
12776
|
-
|
|
12759
|
+
tw as d,
|
|
12777
12760
|
ii as e,
|
|
12778
|
-
|
|
12779
|
-
|
|
12761
|
+
c0 as f,
|
|
12762
|
+
U0 as g,
|
|
12780
12763
|
fe as h,
|
|
12781
12764
|
Ru as i,
|
|
12782
|
-
|
|
12783
|
-
|
|
12765
|
+
E0 as j,
|
|
12766
|
+
O0 as k,
|
|
12784
12767
|
$f as l,
|
|
12785
12768
|
sa as m,
|
|
12786
|
-
|
|
12787
|
-
|
|
12788
|
-
|
|
12789
|
-
|
|
12790
|
-
|
|
12791
|
-
|
|
12792
|
-
|
|
12793
|
-
|
|
12794
|
-
|
|
12795
|
-
|
|
12769
|
+
Vy as n,
|
|
12770
|
+
la as o,
|
|
12771
|
+
fa as p,
|
|
12772
|
+
xv as q,
|
|
12773
|
+
Qo as r,
|
|
12774
|
+
qu as s,
|
|
12775
|
+
N0 as t,
|
|
12776
|
+
nw as u,
|
|
12777
|
+
I0 as v,
|
|
12778
|
+
C0 as w,
|
|
12796
12779
|
M0 as x,
|
|
12797
|
-
|
|
12798
|
-
|
|
12780
|
+
R0 as y,
|
|
12781
|
+
Zv as z
|
|
12799
12782
|
};
|