@samhammer/tiptob 2.3.21 → 2.3.22
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/extensions.js +111 -110
- package/dist/extensions.js.map +1 -1
- package/dist/web-components.js +768 -763
- package/dist/web-components.js.map +1 -1
- package/package.json +1 -1
package/dist/extensions.js
CHANGED
|
@@ -669,7 +669,7 @@ function tt(n, e) {
|
|
|
669
669
|
let t = e.length - 1;
|
|
670
670
|
t >= 0 && n.isText && n.sameMarkup(e[t]) ? e[t] = n.withText(e[t].text + n.text) : e.push(n);
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Lt(n, e, t, r) {
|
|
673
673
|
let i = (e || n).node(t), o = 0, s = e ? e.index(t) : i.childCount;
|
|
674
674
|
n && (o = n.index(t), n.depth > t ? o++ : n.textOffset && (tt(n.nodeAfter, r), o++));
|
|
675
675
|
for (let a = o; a < s; a++)
|
|
@@ -681,15 +681,15 @@ function nt(n, e) {
|
|
|
681
681
|
}
|
|
682
682
|
function ko(n, e, t, r, i) {
|
|
683
683
|
let o = n.depth > i && vr(n, e, i + 1), s = r.depth > i && vr(t, r, i + 1), a = [];
|
|
684
|
-
return
|
|
684
|
+
return Lt(null, n, i, a), o && s && e.index(i) == t.index(i) ? (xo(o, s), tt(nt(o, ko(n, e, t, r, i + 1)), a)) : (o && tt(nt(o, Bn(n, e, i + 1)), a), Lt(e, t, i, a), s && tt(nt(s, Bn(t, r, i + 1)), a)), Lt(r, null, i, a), new k(a);
|
|
685
685
|
}
|
|
686
686
|
function Bn(n, e, t) {
|
|
687
687
|
let r = [];
|
|
688
|
-
if (
|
|
688
|
+
if (Lt(null, n, t, r), n.depth > t) {
|
|
689
689
|
let i = vr(n, e, t + 1);
|
|
690
690
|
tt(nt(i, Bn(n, e, t + 1)), r);
|
|
691
691
|
}
|
|
692
|
-
return
|
|
692
|
+
return Lt(e, null, t, r), new k(r);
|
|
693
693
|
}
|
|
694
694
|
function ca(n, e) {
|
|
695
695
|
let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
|
|
@@ -1364,7 +1364,7 @@ let rt = class br {
|
|
|
1364
1364
|
}
|
|
1365
1365
|
};
|
|
1366
1366
|
rt.prototype.text = void 0;
|
|
1367
|
-
class
|
|
1367
|
+
class Fn extends rt {
|
|
1368
1368
|
/**
|
|
1369
1369
|
@internal
|
|
1370
1370
|
*/
|
|
@@ -1386,10 +1386,10 @@ class Ln extends rt {
|
|
|
1386
1386
|
return this.text.length;
|
|
1387
1387
|
}
|
|
1388
1388
|
mark(e) {
|
|
1389
|
-
return e == this.marks ? this : new
|
|
1389
|
+
return e == this.marks ? this : new Fn(this.type, this.attrs, this.text, e);
|
|
1390
1390
|
}
|
|
1391
1391
|
withText(e) {
|
|
1392
|
-
return e == this.text ? this : new
|
|
1392
|
+
return e == this.text ? this : new Fn(this.type, this.attrs, e, this.marks);
|
|
1393
1393
|
}
|
|
1394
1394
|
cut(e = 0, t = this.text.length) {
|
|
1395
1395
|
return e == 0 && t == this.text.length ? this : this.withText(this.text.slice(e, t));
|
|
@@ -2092,7 +2092,7 @@ class Ca {
|
|
|
2092
2092
|
*/
|
|
2093
2093
|
text(e, t) {
|
|
2094
2094
|
let r = this.nodes.text;
|
|
2095
|
-
return new
|
|
2095
|
+
return new Fn(r, r.defaultAttrs, e, z.setFrom(t));
|
|
2096
2096
|
}
|
|
2097
2097
|
/**
|
|
2098
2098
|
Create a mark with the given type and attributes.
|
|
@@ -3338,7 +3338,7 @@ function At(n) {
|
|
|
3338
3338
|
}
|
|
3339
3339
|
return null;
|
|
3340
3340
|
}
|
|
3341
|
-
function
|
|
3341
|
+
function Fo(n, e, t = null, r = n) {
|
|
3342
3342
|
let i = Ba(n, e), o = i && za(r, e);
|
|
3343
3343
|
return o ? i.map(Ci).concat({ type: e, attrs: t }).concat(o.map(Ci)) : null;
|
|
3344
3344
|
}
|
|
@@ -3380,9 +3380,9 @@ function Pe(n, e, t = 1, r) {
|
|
|
3380
3380
|
}
|
|
3381
3381
|
function ut(n, e) {
|
|
3382
3382
|
let t = n.resolve(e), r = t.index();
|
|
3383
|
-
return
|
|
3383
|
+
return Lo(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
|
|
3384
3384
|
}
|
|
3385
|
-
function
|
|
3385
|
+
function Fa(n, e) {
|
|
3386
3386
|
e.content.size || n.type.compatibleContent(e.type);
|
|
3387
3387
|
let t = n.contentMatchAt(n.childCount), { linebreakReplacement: r } = n.type.schema;
|
|
3388
3388
|
for (let i = 0; i < e.childCount; i++) {
|
|
@@ -3392,21 +3392,21 @@ function La(n, e) {
|
|
|
3392
3392
|
}
|
|
3393
3393
|
return t.validEnd;
|
|
3394
3394
|
}
|
|
3395
|
-
function
|
|
3396
|
-
return !!(n && e && !n.isLeaf &&
|
|
3395
|
+
function Lo(n, e) {
|
|
3396
|
+
return !!(n && e && !n.isLeaf && Fa(n, e));
|
|
3397
3397
|
}
|
|
3398
3398
|
function Gn(n, e, t = -1) {
|
|
3399
3399
|
let r = n.resolve(e);
|
|
3400
3400
|
for (let i = r.depth; ; i--) {
|
|
3401
3401
|
let o, s, a = r.index(i);
|
|
3402
|
-
if (i == r.depth ? (o = r.nodeBefore, s = r.nodeAfter) : t > 0 ? (o = r.node(i + 1), a++, s = r.node(i).maybeChild(a)) : (o = r.node(i).maybeChild(a - 1), s = r.node(i + 1)), o && !o.isTextblock &&
|
|
3402
|
+
if (i == r.depth ? (o = r.nodeBefore, s = r.nodeAfter) : t > 0 ? (o = r.node(i + 1), a++, s = r.node(i).maybeChild(a)) : (o = r.node(i).maybeChild(a - 1), s = r.node(i + 1)), o && !o.isTextblock && Lo(o, s) && r.node(i).canReplace(a, a + 1))
|
|
3403
3403
|
return e;
|
|
3404
3404
|
if (i == 0)
|
|
3405
3405
|
break;
|
|
3406
3406
|
e = t < 0 ? r.before(i) : r.after(i);
|
|
3407
3407
|
}
|
|
3408
3408
|
}
|
|
3409
|
-
function
|
|
3409
|
+
function La(n, e, t) {
|
|
3410
3410
|
let r = n.resolve(e);
|
|
3411
3411
|
if (!t.content.size)
|
|
3412
3412
|
return e;
|
|
@@ -3530,7 +3530,7 @@ class Va {
|
|
|
3530
3530
|
c++, (c > 1 || l == 0 || m.content.size) && (f = y, u.push($o(m.mark(p.allowedMarks(m.marks)), c == 1 ? l : 0, c == a.childCount ? d : -1)));
|
|
3531
3531
|
}
|
|
3532
3532
|
let g = c == a.childCount;
|
|
3533
|
-
g || (d = -1), this.placed =
|
|
3533
|
+
g || (d = -1), this.placed = Ft(this.placed, t, k.from(u)), this.frontier[t].match = f, g && d < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
3534
3534
|
for (let m = 0, y = a; m < d; m++) {
|
|
3535
3535
|
let b = y.lastChild;
|
|
3536
3536
|
this.frontier.push({ type: b.type, match: b.contentMatchAt(b.childCount) }), y = b.content;
|
|
@@ -3567,7 +3567,7 @@ class Va {
|
|
|
3567
3567
|
return null;
|
|
3568
3568
|
for (; this.depth > t.depth; )
|
|
3569
3569
|
this.closeFrontierNode();
|
|
3570
|
-
t.fit.childCount && (this.placed =
|
|
3570
|
+
t.fit.childCount && (this.placed = Ft(this.placed, t.depth, t.fit)), e = t.move;
|
|
3571
3571
|
for (let r = t.depth + 1; r <= e.depth; r++) {
|
|
3572
3572
|
let i = e.node(r), o = i.type.contentMatch.fillBefore(i.content, !0, e.index(r));
|
|
3573
3573
|
this.openFrontierNode(i.type, i.attrs, o);
|
|
@@ -3576,18 +3576,18 @@ class Va {
|
|
|
3576
3576
|
}
|
|
3577
3577
|
openFrontierNode(e, t = null, r) {
|
|
3578
3578
|
let i = this.frontier[this.depth];
|
|
3579
|
-
i.match = i.match.matchType(e), this.placed =
|
|
3579
|
+
i.match = i.match.matchType(e), this.placed = Ft(this.placed, this.depth, k.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
3580
3580
|
}
|
|
3581
3581
|
closeFrontierNode() {
|
|
3582
3582
|
let t = this.frontier.pop().match.fillBefore(k.empty, !0);
|
|
3583
|
-
t.childCount && (this.placed =
|
|
3583
|
+
t.childCount && (this.placed = Ft(this.placed, this.frontier.length, t));
|
|
3584
3584
|
}
|
|
3585
3585
|
}
|
|
3586
3586
|
function zt(n, e, t) {
|
|
3587
3587
|
return e == 0 ? n.cutByIndex(t, n.childCount) : n.replaceChild(0, n.firstChild.copy(zt(n.firstChild.content, e - 1, t)));
|
|
3588
3588
|
}
|
|
3589
|
-
function
|
|
3590
|
-
return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(
|
|
3589
|
+
function Ft(n, e, t) {
|
|
3590
|
+
return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(Ft(n.lastChild.content, e - 1, t)));
|
|
3591
3591
|
}
|
|
3592
3592
|
function or(n, e) {
|
|
3593
3593
|
for (let t = 0; t < e; t++)
|
|
@@ -3651,7 +3651,7 @@ class Vt extends Y {
|
|
|
3651
3651
|
}
|
|
3652
3652
|
}
|
|
3653
3653
|
Y.jsonID("attr", Vt);
|
|
3654
|
-
class
|
|
3654
|
+
class Ln extends Y {
|
|
3655
3655
|
/**
|
|
3656
3656
|
Construct an attribute step.
|
|
3657
3657
|
*/
|
|
@@ -3670,7 +3670,7 @@ class Fn extends Y {
|
|
|
3670
3670
|
return se.empty;
|
|
3671
3671
|
}
|
|
3672
3672
|
invert(e) {
|
|
3673
|
-
return new
|
|
3673
|
+
return new Ln(this.attr, e.attrs[this.attr]);
|
|
3674
3674
|
}
|
|
3675
3675
|
map(e) {
|
|
3676
3676
|
return this;
|
|
@@ -3681,10 +3681,10 @@ class Fn extends Y {
|
|
|
3681
3681
|
static fromJSON(e, t) {
|
|
3682
3682
|
if (typeof t.attr != "string")
|
|
3683
3683
|
throw new RangeError("Invalid input for DocAttrStep.fromJSON");
|
|
3684
|
-
return new
|
|
3684
|
+
return new Ln(t.attr, t.value);
|
|
3685
3685
|
}
|
|
3686
3686
|
}
|
|
3687
|
-
Y.jsonID("docAttr",
|
|
3687
|
+
Y.jsonID("docAttr", Ln);
|
|
3688
3688
|
let Gt = class extends Error {
|
|
3689
3689
|
};
|
|
3690
3690
|
Gt = function n(e) {
|
|
@@ -3978,7 +3978,7 @@ class O extends D {
|
|
|
3978
3978
|
return { type: "node", anchor: this.anchor };
|
|
3979
3979
|
}
|
|
3980
3980
|
getBookmark() {
|
|
3981
|
-
return new
|
|
3981
|
+
return new Fr(this.anchor);
|
|
3982
3982
|
}
|
|
3983
3983
|
/**
|
|
3984
3984
|
@internal
|
|
@@ -4004,13 +4004,13 @@ class O extends D {
|
|
|
4004
4004
|
}
|
|
4005
4005
|
O.prototype.visible = !1;
|
|
4006
4006
|
D.jsonID("node", O);
|
|
4007
|
-
class
|
|
4007
|
+
class Fr {
|
|
4008
4008
|
constructor(e) {
|
|
4009
4009
|
this.anchor = e;
|
|
4010
4010
|
}
|
|
4011
4011
|
map(e) {
|
|
4012
4012
|
let { deleted: t, pos: r } = e.mapResult(this.anchor);
|
|
4013
|
-
return t ? new Yn(r, r) : new
|
|
4013
|
+
return t ? new Yn(r, r) : new Fr(r);
|
|
4014
4014
|
}
|
|
4015
4015
|
resolve(e) {
|
|
4016
4016
|
let t = e.resolve(this.anchor), r = t.nodeAfter;
|
|
@@ -4185,7 +4185,7 @@ function Ai(n, e, t, r, i) {
|
|
|
4185
4185
|
return !0;
|
|
4186
4186
|
if (e == (i < 0 ? 0 : $n(n))) {
|
|
4187
4187
|
let s = n.parentNode;
|
|
4188
|
-
if (!s || s.nodeType != 1 ||
|
|
4188
|
+
if (!s || s.nodeType != 1 || Lr(n) || Ja.test(n.nodeName) || n.contentEditable == "false")
|
|
4189
4189
|
return !1;
|
|
4190
4190
|
e = ft(n) + (i < 0 ? 0 : 1), n = s;
|
|
4191
4191
|
} else if (n.nodeType == 1) {
|
|
@@ -4214,7 +4214,7 @@ function qa(n, e, t) {
|
|
|
4214
4214
|
r = r && o == 0, i = i && o == $n(n);
|
|
4215
4215
|
}
|
|
4216
4216
|
}
|
|
4217
|
-
function
|
|
4217
|
+
function Lr(n) {
|
|
4218
4218
|
let e;
|
|
4219
4219
|
for (let t = n; t && !(e = t.pmViewDesc); t = t.parentNode)
|
|
4220
4220
|
;
|
|
@@ -4352,7 +4352,7 @@ function Or(n, e) {
|
|
|
4352
4352
|
let { $anchor: t, $head: r } = n.selection, i = e > 0 ? t.max(r) : t.min(r), o = i.parent.inlineContent ? i.depth ? n.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
|
|
4353
4353
|
return o && D.findFrom(o, e);
|
|
4354
4354
|
}
|
|
4355
|
-
function
|
|
4355
|
+
function Le(n, e) {
|
|
4356
4356
|
return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()), !0;
|
|
4357
4357
|
}
|
|
4358
4358
|
function Bi(n, e, t) {
|
|
@@ -4363,25 +4363,25 @@ function Bi(n, e, t) {
|
|
|
4363
4363
|
if (!o || o.isText || !o.isLeaf)
|
|
4364
4364
|
return !1;
|
|
4365
4365
|
let s = n.state.doc.resolve(i.pos + o.nodeSize * (e < 0 ? -1 : 1));
|
|
4366
|
-
return
|
|
4366
|
+
return Le(n, new A(r.$anchor, s));
|
|
4367
4367
|
} else if (r.empty) {
|
|
4368
4368
|
if (n.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
4369
4369
|
let i = Or(n.state, e);
|
|
4370
|
-
return i && i instanceof O ?
|
|
4370
|
+
return i && i instanceof O ? Le(n, i) : !1;
|
|
4371
4371
|
} else if (!(de && t.indexOf("m") > -1)) {
|
|
4372
4372
|
let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, s;
|
|
4373
4373
|
if (!o || o.isText)
|
|
4374
4374
|
return !1;
|
|
4375
4375
|
let a = e < 0 ? i.pos - o.nodeSize : i.pos;
|
|
4376
|
-
return o.isAtom || (s = n.docView.descAt(a)) && !s.contentDOM ? O.isSelectable(o) ?
|
|
4376
|
+
return o.isAtom || (s = n.docView.descAt(a)) && !s.contentDOM ? O.isSelectable(o) ? Le(n, new O(e < 0 ? n.state.doc.resolve(i.pos - o.nodeSize) : i)) : Vr ? Le(n, new A(n.state.doc.resolve(e < 0 ? a : a + o.nodeSize))) : !1 : !1;
|
|
4377
4377
|
}
|
|
4378
4378
|
} else return !1;
|
|
4379
4379
|
else {
|
|
4380
4380
|
if (r instanceof O && r.node.isInline)
|
|
4381
|
-
return
|
|
4381
|
+
return Le(n, new A(e > 0 ? r.$to : r.$from));
|
|
4382
4382
|
{
|
|
4383
4383
|
let i = Or(n.state, e);
|
|
4384
|
-
return i ?
|
|
4384
|
+
return i ? Le(n, i) : !1;
|
|
4385
4385
|
}
|
|
4386
4386
|
}
|
|
4387
4387
|
}
|
|
@@ -4468,7 +4468,7 @@ function Xo(n) {
|
|
|
4468
4468
|
return e && e.node && e.node.isBlock;
|
|
4469
4469
|
}
|
|
4470
4470
|
function tl(n, e) {
|
|
4471
|
-
for (; n && e == n.childNodes.length && !
|
|
4471
|
+
for (; n && e == n.childNodes.length && !Lr(n); )
|
|
4472
4472
|
e = ft(n) + 1, n = n.parentNode;
|
|
4473
4473
|
for (; n && e < n.childNodes.length; ) {
|
|
4474
4474
|
let t = n.childNodes[e];
|
|
@@ -4480,7 +4480,7 @@ function tl(n, e) {
|
|
|
4480
4480
|
}
|
|
4481
4481
|
}
|
|
4482
4482
|
function nl(n, e) {
|
|
4483
|
-
for (; n && !e && !
|
|
4483
|
+
for (; n && !e && !Lr(n); )
|
|
4484
4484
|
e = ft(n), n = n.parentNode;
|
|
4485
4485
|
for (; n && e; ) {
|
|
4486
4486
|
let t = n.childNodes[e - 1];
|
|
@@ -4526,7 +4526,7 @@ function zi(n, e) {
|
|
|
4526
4526
|
}
|
|
4527
4527
|
return getComputedStyle(n.dom).direction == "rtl" ? "rtl" : "ltr";
|
|
4528
4528
|
}
|
|
4529
|
-
function
|
|
4529
|
+
function Fi(n, e, t) {
|
|
4530
4530
|
let r = n.state.selection;
|
|
4531
4531
|
if (r instanceof A && !r.empty || t.indexOf("s") > -1 || de && t.indexOf("m") > -1)
|
|
4532
4532
|
return !1;
|
|
@@ -4534,15 +4534,15 @@ function Li(n, e, t) {
|
|
|
4534
4534
|
if (!i.parent.inlineContent || n.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
4535
4535
|
let s = Or(n.state, e);
|
|
4536
4536
|
if (s && s instanceof O)
|
|
4537
|
-
return
|
|
4537
|
+
return Le(n, s);
|
|
4538
4538
|
}
|
|
4539
4539
|
if (!i.parent.inlineContent) {
|
|
4540
4540
|
let s = e < 0 ? i : o, a = r instanceof le ? D.near(s, e) : D.findFrom(s, e);
|
|
4541
|
-
return a ?
|
|
4541
|
+
return a ? Le(n, a) : !1;
|
|
4542
4542
|
}
|
|
4543
4543
|
return !1;
|
|
4544
4544
|
}
|
|
4545
|
-
function
|
|
4545
|
+
function Li(n, e) {
|
|
4546
4546
|
if (!(n.state.selection instanceof A))
|
|
4547
4547
|
return !0;
|
|
4548
4548
|
let { $head: t, $anchor: r, empty: i } = n.state.selection;
|
|
@@ -4579,9 +4579,9 @@ function il(n) {
|
|
|
4579
4579
|
function ol(n, e) {
|
|
4580
4580
|
let t = e.keyCode, r = il(e);
|
|
4581
4581
|
if (t == 8 || de && t == 72 && r == "c")
|
|
4582
|
-
return
|
|
4582
|
+
return Li(n, -1) || vt(n, -1);
|
|
4583
4583
|
if (t == 46 && !e.shiftKey || de && t == 68 && r == "c")
|
|
4584
|
-
return
|
|
4584
|
+
return Li(n, 1) || vt(n, 1);
|
|
4585
4585
|
if (t == 13 || t == 27)
|
|
4586
4586
|
return !0;
|
|
4587
4587
|
if (t == 37 || de && t == 66 && r == "c") {
|
|
@@ -4592,9 +4592,9 @@ function ol(n, e) {
|
|
|
4592
4592
|
return Bi(n, i, r) || vt(n, i);
|
|
4593
4593
|
} else {
|
|
4594
4594
|
if (t == 38 || de && t == 80 && r == "c")
|
|
4595
|
-
return
|
|
4595
|
+
return Fi(n, -1, r) || vt(n, -1);
|
|
4596
4596
|
if (t == 40 || de && t == 78 && r == "c")
|
|
4597
|
-
return rl(n) ||
|
|
4597
|
+
return rl(n) || Fi(n, 1, r) || vt(n, 1);
|
|
4598
4598
|
if (r == (de ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
|
|
4599
4599
|
return !0;
|
|
4600
4600
|
}
|
|
@@ -5113,7 +5113,7 @@ ce.drop = (n, e) => {
|
|
|
5113
5113
|
if (!s)
|
|
5114
5114
|
return;
|
|
5115
5115
|
t.preventDefault();
|
|
5116
|
-
let l = s ?
|
|
5116
|
+
let l = s ? La(n.state.doc, o.pos, s) : o.pos;
|
|
5117
5117
|
l == null && (l = o.pos);
|
|
5118
5118
|
let c = n.state.tr;
|
|
5119
5119
|
if (a) {
|
|
@@ -5910,7 +5910,7 @@ function zl(n) {
|
|
|
5910
5910
|
return t && t(u.scrollIntoView()), !0;
|
|
5911
5911
|
};
|
|
5912
5912
|
}
|
|
5913
|
-
const
|
|
5913
|
+
const Fl = zl(), Ll = (n, e) => {
|
|
5914
5914
|
let { $from: t, to: r } = n.selection, i, o = t.sharedDepth(r);
|
|
5915
5915
|
return o == 0 ? !1 : (i = t.before(o), e && e(n.tr.setSelection(O.create(n.doc, i))), !0);
|
|
5916
5916
|
};
|
|
@@ -5971,7 +5971,7 @@ function Cs(n) {
|
|
|
5971
5971
|
const Vl = Cs(-1), jl = Cs(1);
|
|
5972
5972
|
function Hl(n, e = null) {
|
|
5973
5973
|
return function(t, r) {
|
|
5974
|
-
let { $from: i, $to: o } = t.selection, s = i.blockRange(o), a = s &&
|
|
5974
|
+
let { $from: i, $to: o } = t.selection, s = i.blockRange(o), a = s && Fo(s, n, e);
|
|
5975
5975
|
return a ? (r && r(t.tr.wrap(s, a).scrollIntoView()), !0) : !1;
|
|
5976
5976
|
};
|
|
5977
5977
|
}
|
|
@@ -6015,7 +6015,7 @@ function Xr(...n) {
|
|
|
6015
6015
|
}
|
|
6016
6016
|
Xr(Kr, hs, gs);
|
|
6017
6017
|
Xr(Kr, vs, bs);
|
|
6018
|
-
Xr(xs, ks, ws,
|
|
6018
|
+
Xr(xs, ks, ws, Fl);
|
|
6019
6019
|
typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
|
|
6020
6020
|
function Wl(n, e = null) {
|
|
6021
6021
|
return function(t, r) {
|
|
@@ -6034,7 +6034,7 @@ function Jl(n, e, t, r = null) {
|
|
|
6034
6034
|
let l = s.resolve(e.start - 2);
|
|
6035
6035
|
o = new zn(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new zn(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), i = !0;
|
|
6036
6036
|
}
|
|
6037
|
-
let a =
|
|
6037
|
+
let a = Fo(o, t, r, e);
|
|
6038
6038
|
return a ? (n && ql(n, e, a, i, t), !0) : !1;
|
|
6039
6039
|
}
|
|
6040
6040
|
function ql(n, e, t, r, i) {
|
|
@@ -6756,7 +6756,7 @@ function ei(n, e, t = {}) {
|
|
|
6756
6756
|
const zc = (n, e = {}) => ({ state: t, dispatch: r }) => {
|
|
6757
6757
|
const i = G(n, t.schema);
|
|
6758
6758
|
return ei(t, i, e) ? Pl(t, r) : !1;
|
|
6759
|
-
},
|
|
6759
|
+
}, Fc = () => ({ state: n, dispatch: e }) => ws(n, e), Lc = (n) => ({ state: e, dispatch: t }) => {
|
|
6760
6760
|
const r = G(n, e.schema);
|
|
6761
6761
|
return Kl(r)(e, t);
|
|
6762
6762
|
}, $c = () => ({ state: n, dispatch: e }) => xs(n, e);
|
|
@@ -6783,7 +6783,7 @@ const Vc = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
6783
6783
|
n.setSelection(t);
|
|
6784
6784
|
}
|
|
6785
6785
|
return !0;
|
|
6786
|
-
}, Wc = () => ({ state: n, dispatch: e }) => gs(n, e), Jc = () => ({ state: n, dispatch: e }) => bs(n, e), qc = () => ({ state: n, dispatch: e }) =>
|
|
6786
|
+
}, Wc = () => ({ state: n, dispatch: e }) => gs(n, e), Jc = () => ({ state: n, dispatch: e }) => bs(n, e), qc = () => ({ state: n, dispatch: e }) => Ll(n, e), Kc = () => ({ state: n, dispatch: e }) => jl(n, e), Uc = () => ({ state: n, dispatch: e }) => Vl(n, e);
|
|
6787
6787
|
function Gc(n, e, t = {}, r = {}) {
|
|
6788
6788
|
return Zt(n, e, {
|
|
6789
6789
|
slice: !1,
|
|
@@ -7056,10 +7056,10 @@ const lu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
7056
7056
|
const x = l.before(l.depth - (C - 1));
|
|
7057
7057
|
t.replace(x, l.after(-T), new S(b, 4 - C, 0));
|
|
7058
7058
|
let N = -1;
|
|
7059
|
-
t.doc.nodesBetween(x, t.doc.content.size, (P,
|
|
7059
|
+
t.doc.nodesBetween(x, t.doc.content.size, (P, F) => {
|
|
7060
7060
|
if (N > -1)
|
|
7061
7061
|
return !1;
|
|
7062
|
-
P.isTextblock && P.content.size === 0 && (N =
|
|
7062
|
+
P.isTextblock && P.content.size === 0 && (N = F + 1);
|
|
7063
7063
|
}), N > -1 && t.setSelection(A.near(t.doc.resolve(N))), t.scrollIntoView();
|
|
7064
7064
|
}
|
|
7065
7065
|
return !0;
|
|
@@ -7236,8 +7236,8 @@ var xu = /* @__PURE__ */ Object.freeze({
|
|
|
7236
7236
|
joinUp: Ec,
|
|
7237
7237
|
keyboardShortcut: Bc,
|
|
7238
7238
|
lift: zc,
|
|
7239
|
-
liftEmptyBlock:
|
|
7240
|
-
liftListItem:
|
|
7239
|
+
liftEmptyBlock: Fc,
|
|
7240
|
+
liftListItem: Lc,
|
|
7241
7241
|
newlineInCode: $c,
|
|
7242
7242
|
resetAttributes: Vc,
|
|
7243
7243
|
scrollIntoView: jc,
|
|
@@ -7732,8 +7732,7 @@ function pd(n) {
|
|
|
7732
7732
|
key: new ge("imageUpload"),
|
|
7733
7733
|
props: {
|
|
7734
7734
|
handleDrop: (e, t, r, i) => {
|
|
7735
|
-
|
|
7736
|
-
if (console.log(e, t, r, i), !o || i)
|
|
7735
|
+
if (!(t.dataTransfer && t.dataTransfer.files && t.dataTransfer.files.length) || i)
|
|
7737
7736
|
return;
|
|
7738
7737
|
const s = Array.from(t.dataTransfer.files).filter(
|
|
7739
7738
|
(l) => l.type.includes("image/")
|
|
@@ -7749,15 +7748,16 @@ function pd(n) {
|
|
|
7749
7748
|
}), f = e.state.tr.insert(e.state.selection.from, u);
|
|
7750
7749
|
e.dispatch(f);
|
|
7751
7750
|
});
|
|
7751
|
+
return !0;
|
|
7752
7752
|
},
|
|
7753
7753
|
handlePaste: (e, t) => {
|
|
7754
7754
|
if (!(t.clipboardData && t.clipboardData.files && t.clipboardData.files.length))
|
|
7755
|
-
return;
|
|
7755
|
+
return !1;
|
|
7756
7756
|
const i = Array.from(t.clipboardData.files).filter(
|
|
7757
7757
|
(s) => s.type.includes("image/")
|
|
7758
7758
|
);
|
|
7759
7759
|
if (i.length === 0)
|
|
7760
|
-
return;
|
|
7760
|
+
return !1;
|
|
7761
7761
|
t.preventDefault();
|
|
7762
7762
|
const { schema: o } = e.state;
|
|
7763
7763
|
for (const s of i)
|
|
@@ -7767,6 +7767,7 @@ function pd(n) {
|
|
|
7767
7767
|
}), c = e.state.tr.insert(e.state.selection.from, l);
|
|
7768
7768
|
e.dispatch(c);
|
|
7769
7769
|
});
|
|
7770
|
+
return !0;
|
|
7770
7771
|
}
|
|
7771
7772
|
}
|
|
7772
7773
|
})
|
|
@@ -7800,7 +7801,7 @@ var ee = "top", he = "bottom", me = "right", te = "left", ni = "auto", ln = [ee,
|
|
|
7800
7801
|
return n.concat([e + "-" + Ot, e + "-" + en]);
|
|
7801
7802
|
}, []), Bs = /* @__PURE__ */ [].concat(ln, [ni]).reduce(function(n, e) {
|
|
7802
7803
|
return n.concat([e, e + "-" + Ot, e + "-" + en]);
|
|
7803
|
-
}, []), Au = "beforeRead", Nu = "read", Iu = "afterRead", Du = "beforeMain", Ru = "main", Pu = "afterMain", Bu = "beforeWrite", zu = "write",
|
|
7804
|
+
}, []), Au = "beforeRead", Nu = "read", Iu = "afterRead", Du = "beforeMain", Ru = "main", Pu = "afterMain", Bu = "beforeWrite", zu = "write", Fu = "afterWrite", Lu = [Au, Nu, Iu, Du, Ru, Pu, Bu, zu, Fu];
|
|
7804
7805
|
function Te(n) {
|
|
7805
7806
|
return n ? (n.nodeName || "").toLowerCase() : null;
|
|
7806
7807
|
}
|
|
@@ -7879,14 +7880,14 @@ function Ar() {
|
|
|
7879
7880
|
return e.brand + "/" + e.version;
|
|
7880
7881
|
}).join(" ") : navigator.userAgent;
|
|
7881
7882
|
}
|
|
7882
|
-
function
|
|
7883
|
+
function Fs() {
|
|
7883
7884
|
return !/^((?!chrome|android).)*safari/i.test(Ar());
|
|
7884
7885
|
}
|
|
7885
7886
|
function Tt(n, e, t) {
|
|
7886
7887
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
7887
7888
|
var r = n.getBoundingClientRect(), i = 1, o = 1;
|
|
7888
7889
|
e && pe(n) && (i = n.offsetWidth > 0 && Et(r.width) / n.offsetWidth || 1, o = n.offsetHeight > 0 && Et(r.height) / n.offsetHeight || 1);
|
|
7889
|
-
var s = ct(n) ? ue(n) : window, a = s.visualViewport, l = !
|
|
7890
|
+
var s = ct(n) ? ue(n) : window, a = s.visualViewport, l = !Fs() && t, c = (r.left + (l && a ? a.offsetLeft : 0)) / i, u = (r.top + (l && a ? a.offsetTop : 0)) / o, f = r.width / i, p = r.height / o;
|
|
7890
7891
|
return {
|
|
7891
7892
|
width: f,
|
|
7892
7893
|
height: p,
|
|
@@ -7907,7 +7908,7 @@ function ii(n) {
|
|
|
7907
7908
|
height: r
|
|
7908
7909
|
};
|
|
7909
7910
|
}
|
|
7910
|
-
function
|
|
7911
|
+
function Ls(n, e) {
|
|
7911
7912
|
var t = e.getRootNode && e.getRootNode();
|
|
7912
7913
|
if (n.contains(e))
|
|
7913
7914
|
return !0;
|
|
@@ -8010,7 +8011,7 @@ function qu(n) {
|
|
|
8010
8011
|
}
|
|
8011
8012
|
function Ku(n) {
|
|
8012
8013
|
var e = n.state, t = n.options, r = t.element, i = r === void 0 ? "[data-popper-arrow]" : r;
|
|
8013
|
-
i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) ||
|
|
8014
|
+
i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || Ls(e.elements.popper, i) && (e.elements.arrow = i));
|
|
8014
8015
|
}
|
|
8015
8016
|
const Uu = {
|
|
8016
8017
|
name: "arrow",
|
|
@@ -8051,19 +8052,19 @@ function Xi(n) {
|
|
|
8051
8052
|
var x = cn(t), N = "clientHeight", P = "clientWidth";
|
|
8052
8053
|
if (x === ue(t) && (x = Je(t), Be(x).position !== "static" && a === "absolute" && (N = "scrollHeight", P = "scrollWidth")), x = x, i === ee || (i === te || i === me) && o === en) {
|
|
8053
8054
|
h = he;
|
|
8054
|
-
var
|
|
8055
|
+
var F = f && x === M && M.visualViewport ? M.visualViewport.height : (
|
|
8055
8056
|
// $FlowFixMe[prop-missing]
|
|
8056
8057
|
x[N]
|
|
8057
8058
|
);
|
|
8058
|
-
m -=
|
|
8059
|
+
m -= F - r.height, m *= l ? 1 : -1;
|
|
8059
8060
|
}
|
|
8060
8061
|
if (i === te || (i === ee || i === he) && o === en) {
|
|
8061
8062
|
T = me;
|
|
8062
|
-
var
|
|
8063
|
+
var L = f && x === M && M.visualViewport ? M.visualViewport.width : (
|
|
8063
8064
|
// $FlowFixMe[prop-missing]
|
|
8064
8065
|
x[P]
|
|
8065
8066
|
);
|
|
8066
|
-
d -=
|
|
8067
|
+
d -= L - r.width, d *= l ? 1 : -1;
|
|
8067
8068
|
}
|
|
8068
8069
|
}
|
|
8069
8070
|
var H = Object.assign({
|
|
@@ -8167,7 +8168,7 @@ function nf(n, e) {
|
|
|
8167
8168
|
var t = ue(n), r = Je(n), i = t.visualViewport, o = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
8168
8169
|
if (i) {
|
|
8169
8170
|
o = i.width, s = i.height;
|
|
8170
|
-
var c =
|
|
8171
|
+
var c = Fs();
|
|
8171
8172
|
(c || !c && e === "fixed") && (a = i.offsetLeft, l = i.offsetTop);
|
|
8172
8173
|
}
|
|
8173
8174
|
return {
|
|
@@ -8220,7 +8221,7 @@ function Zi(n, e, t) {
|
|
|
8220
8221
|
function sf(n) {
|
|
8221
8222
|
var e = Wt(_n(n)), t = ["absolute", "fixed"].indexOf(Be(n).position) >= 0, r = t && pe(n) ? cn(n) : n;
|
|
8222
8223
|
return ct(r) ? e.filter(function(i) {
|
|
8223
|
-
return ct(i) &&
|
|
8224
|
+
return ct(i) && Ls(i, r) && Te(i) !== "body";
|
|
8224
8225
|
}) : [];
|
|
8225
8226
|
}
|
|
8226
8227
|
function af(n, e, t, r) {
|
|
@@ -8283,20 +8284,20 @@ function tn(n, e) {
|
|
|
8283
8284
|
reference: x,
|
|
8284
8285
|
element: T,
|
|
8285
8286
|
placement: i
|
|
8286
|
-
}), P = Nr(Object.assign({}, T, N)),
|
|
8287
|
-
top: M.top -
|
|
8288
|
-
bottom:
|
|
8289
|
-
left: M.left -
|
|
8290
|
-
right:
|
|
8287
|
+
}), P = Nr(Object.assign({}, T, N)), F = p === Bt ? P : x, L = {
|
|
8288
|
+
top: M.top - F.top + b.top,
|
|
8289
|
+
bottom: F.bottom - M.bottom + b.bottom,
|
|
8290
|
+
left: M.left - F.left + b.left,
|
|
8291
|
+
right: F.right - M.right + b.right
|
|
8291
8292
|
}, H = n.modifiersData.offset;
|
|
8292
8293
|
if (p === Bt && H) {
|
|
8293
8294
|
var $ = H[i];
|
|
8294
|
-
Object.keys(
|
|
8295
|
+
Object.keys(L).forEach(function(B) {
|
|
8295
8296
|
var re = [me, he].indexOf(B) >= 0 ? 1 : -1, ie = [ee, he].indexOf(B) >= 0 ? "y" : "x";
|
|
8296
|
-
|
|
8297
|
+
L[B] += $[ie] * re;
|
|
8297
8298
|
});
|
|
8298
8299
|
}
|
|
8299
|
-
return
|
|
8300
|
+
return L;
|
|
8300
8301
|
}
|
|
8301
8302
|
function lf(n, e) {
|
|
8302
8303
|
e === void 0 && (e = {});
|
|
@@ -8336,8 +8337,8 @@ function uf(n) {
|
|
|
8336
8337
|
flipVariations: g,
|
|
8337
8338
|
allowedAutoPlacements: m
|
|
8338
8339
|
}) : ye);
|
|
8339
|
-
}, []), M = e.rects.reference, x = e.rects.popper, N = /* @__PURE__ */ new Map(), P = !0,
|
|
8340
|
-
var H = h[
|
|
8340
|
+
}, []), M = e.rects.reference, x = e.rects.popper, N = /* @__PURE__ */ new Map(), P = !0, F = h[0], L = 0; L < h.length; L++) {
|
|
8341
|
+
var H = h[L], $ = Oe(H), B = Mt(H) === Ot, re = [ee, he].indexOf($) >= 0, ie = re ? "width" : "height", q = tn(e, {
|
|
8341
8342
|
placement: H,
|
|
8342
8343
|
boundary: u,
|
|
8343
8344
|
rootBoundary: f,
|
|
@@ -8349,7 +8350,7 @@ function uf(n) {
|
|
|
8349
8350
|
if (o && ke.push(q[$] <= 0), a && ke.push(q[K] <= 0, q[W] <= 0), ke.every(function(Me) {
|
|
8350
8351
|
return Me;
|
|
8351
8352
|
})) {
|
|
8352
|
-
|
|
8353
|
+
F = H, P = !1;
|
|
8353
8354
|
break;
|
|
8354
8355
|
}
|
|
8355
8356
|
N.set(H, ke);
|
|
@@ -8364,12 +8365,12 @@ function uf(n) {
|
|
|
8364
8365
|
});
|
|
8365
8366
|
});
|
|
8366
8367
|
if (Ae)
|
|
8367
|
-
return
|
|
8368
|
+
return F = Ae, "break";
|
|
8368
8369
|
}, Se = we; Se > 0; Se--) {
|
|
8369
8370
|
var Ke = qe(Se);
|
|
8370
8371
|
if (Ke === "break") break;
|
|
8371
8372
|
}
|
|
8372
|
-
e.placement !==
|
|
8373
|
+
e.placement !== F && (e.modifiersData[r]._skip = !0, e.placement = F, e.reset = !0);
|
|
8373
8374
|
}
|
|
8374
8375
|
}
|
|
8375
8376
|
const ff = {
|
|
@@ -8470,15 +8471,15 @@ function xf(n) {
|
|
|
8470
8471
|
rootBoundary: c,
|
|
8471
8472
|
padding: f,
|
|
8472
8473
|
altBoundary: u
|
|
8473
|
-
}), b = Oe(e.placement), C = Mt(e.placement), T = !C, h = oi(b), M = bf(h), x = e.modifiersData.popperOffsets, N = e.rects.reference, P = e.rects.popper,
|
|
8474
|
+
}), b = Oe(e.placement), C = Mt(e.placement), T = !C, h = oi(b), M = bf(h), x = e.modifiersData.popperOffsets, N = e.rects.reference, P = e.rects.popper, F = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
8474
8475
|
placement: e.placement
|
|
8475
|
-
})) : m,
|
|
8476
|
-
mainAxis:
|
|
8477
|
-
altAxis:
|
|
8476
|
+
})) : m, L = typeof F == "number" ? {
|
|
8477
|
+
mainAxis: F,
|
|
8478
|
+
altAxis: F
|
|
8478
8479
|
} : Object.assign({
|
|
8479
8480
|
mainAxis: 0,
|
|
8480
8481
|
altAxis: 0
|
|
8481
|
-
},
|
|
8482
|
+
}, F), H = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, $ = {
|
|
8482
8483
|
x: 0,
|
|
8483
8484
|
y: 0
|
|
8484
8485
|
};
|
|
@@ -8487,11 +8488,11 @@ function xf(n) {
|
|
|
8487
8488
|
var B, re = h === "y" ? ee : te, ie = h === "y" ? he : me, q = h === "y" ? "height" : "width", K = x[h], W = K + y[re], ke = K - y[ie], we = d ? -P[q] / 2 : 0, qe = C === Ot ? N[q] : P[q], Se = C === Ot ? -P[q] : -N[q], Ke = e.elements.arrow, Me = d && Ke ? ii(Ke) : {
|
|
8488
8489
|
width: 0,
|
|
8489
8490
|
height: 0
|
|
8490
|
-
}, ye = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $s(), Ae = ye[re], pt = ye[ie], Ne = Ht(0, N[q], Me[q]), ht = T ? N[q] / 2 - we - Ne - Ae -
|
|
8491
|
+
}, ye = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $s(), Ae = ye[re], pt = ye[ie], Ne = Ht(0, N[q], Me[q]), ht = T ? N[q] / 2 - we - Ne - Ae - L.mainAxis : qe - Ne - Ae - L.mainAxis, ze = T ? -N[q] / 2 + we + Ne + pt + L.mainAxis : Se + Ne + pt + L.mainAxis, mt = e.elements.arrow && cn(e.elements.arrow), fn = mt ? h === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, Nt = (B = H?.[h]) != null ? B : 0, dn = K + ht - Nt - fn, pn = K + ze - Nt, It = Ht(d ? qn(W, dn) : W, K, d ? at(ke, pn) : ke);
|
|
8491
8492
|
x[h] = It, $[h] = It - K;
|
|
8492
8493
|
}
|
|
8493
8494
|
if (a) {
|
|
8494
|
-
var Dt, hn = h === "x" ? ee : te, mn = h === "x" ? he : me, Ie = x[M],
|
|
8495
|
+
var Dt, hn = h === "x" ? ee : te, mn = h === "x" ? he : me, Ie = x[M], Fe = M === "y" ? "height" : "width", Rt = Ie + y[hn], Ue = Ie - y[mn], Pt = [ee, te].indexOf(b) !== -1, gn = (Dt = H?.[M]) != null ? Dt : 0, yn = Pt ? Rt : Ie - N[Fe] - P[Fe] - gn + L.altAxis, vn = Pt ? Ie + N[Fe] + P[Fe] - gn - L.altAxis : Ue, bn = d && Pt ? Wu(yn, Ie, vn) : Ht(d ? yn : Rt, Ie, d ? vn : Ue);
|
|
8495
8496
|
x[M] = bn, $[M] = bn - Ie;
|
|
8496
8497
|
}
|
|
8497
8498
|
e.modifiersData[r] = $;
|
|
@@ -8555,7 +8556,7 @@ function Ef(n) {
|
|
|
8555
8556
|
}
|
|
8556
8557
|
function Tf(n) {
|
|
8557
8558
|
var e = Ef(n);
|
|
8558
|
-
return
|
|
8559
|
+
return Lu.reduce(function(t, r) {
|
|
8559
8560
|
return t.concat(e.filter(function(i) {
|
|
8560
8561
|
return i.phase === r;
|
|
8561
8562
|
}));
|
|
@@ -8636,19 +8637,19 @@ function Nf(n) {
|
|
|
8636
8637
|
u.rects = {
|
|
8637
8638
|
reference: Of(C, cn(T), u.options.strategy === "fixed"),
|
|
8638
8639
|
popper: ii(T)
|
|
8639
|
-
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(
|
|
8640
|
-
return u.modifiersData[
|
|
8640
|
+
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(L) {
|
|
8641
|
+
return u.modifiersData[L.name] = Object.assign({}, L.data);
|
|
8641
8642
|
});
|
|
8642
8643
|
for (var h = 0; h < u.orderedModifiers.length; h++) {
|
|
8643
8644
|
if (u.reset === !0) {
|
|
8644
8645
|
u.reset = !1, h = -1;
|
|
8645
8646
|
continue;
|
|
8646
8647
|
}
|
|
8647
|
-
var M = u.orderedModifiers[h], x = M.fn, N = M.options, P = N === void 0 ? {} : N,
|
|
8648
|
+
var M = u.orderedModifiers[h], x = M.fn, N = M.options, P = N === void 0 ? {} : N, F = M.name;
|
|
8648
8649
|
typeof x == "function" && (u = x({
|
|
8649
8650
|
state: u,
|
|
8650
8651
|
options: P,
|
|
8651
|
-
name:
|
|
8652
|
+
name: F,
|
|
8652
8653
|
instance: d
|
|
8653
8654
|
}) || u);
|
|
8654
8655
|
}
|
|
@@ -8735,7 +8736,7 @@ function zf(n, e) {
|
|
|
8735
8736
|
delete t[r];
|
|
8736
8737
|
}), t;
|
|
8737
8738
|
}
|
|
8738
|
-
function
|
|
8739
|
+
function Ff(n) {
|
|
8739
8740
|
return n.split(/\s+/).filter(Boolean);
|
|
8740
8741
|
}
|
|
8741
8742
|
function wt(n) {
|
|
@@ -8744,7 +8745,7 @@ function wt(n) {
|
|
|
8744
8745
|
function io(n, e) {
|
|
8745
8746
|
n.indexOf(e) === -1 && n.push(e);
|
|
8746
8747
|
}
|
|
8747
|
-
function
|
|
8748
|
+
function Lf(n) {
|
|
8748
8749
|
return n.filter(function(e, t) {
|
|
8749
8750
|
return n.indexOf(e) === t;
|
|
8750
8751
|
});
|
|
@@ -9059,7 +9060,7 @@ function ea(n) {
|
|
|
9059
9060
|
ea.$$tippy = !0;
|
|
9060
9061
|
var od = 1, Mn = [], gr = [];
|
|
9061
9062
|
function sd(n, e) {
|
|
9062
|
-
var t = uo(n, Object.assign({}, ae, Zs(oo(e)))), r, i, o, s = !1, a = !1, l = !1, c = !1, u, f, p, d = [], g = ro(dn, t.interactiveDebounce), m, y = od++, b = null, C =
|
|
9063
|
+
var t = uo(n, Object.assign({}, ae, Zs(oo(e)))), r, i, o, s = !1, a = !1, l = !1, c = !1, u, f, p, d = [], g = ro(dn, t.interactiveDebounce), m, y = od++, b = null, C = Lf(t.plugins), T = {
|
|
9063
9064
|
// Is the instance currently enabled?
|
|
9064
9065
|
isEnabled: !0,
|
|
9065
9066
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -9097,18 +9098,18 @@ function sd(n, e) {
|
|
|
9097
9098
|
x.setAttribute("data-tippy-root", ""), x.id = "tippy-" + h.id, h.popper = x, n._tippy = h, x._tippy = h;
|
|
9098
9099
|
var P = C.map(function(v) {
|
|
9099
9100
|
return v.fn(h);
|
|
9100
|
-
}),
|
|
9101
|
+
}), F = n.hasAttribute("aria-expanded");
|
|
9101
9102
|
return mt(), we(), K(), W("onCreate", [h]), t.showOnCreate && Rt(), x.addEventListener("mouseenter", function() {
|
|
9102
9103
|
h.props.interactive && h.state.isVisible && h.clearDelayTimeouts();
|
|
9103
9104
|
}), x.addEventListener("mouseleave", function() {
|
|
9104
9105
|
h.props.interactive && h.props.trigger.indexOf("mouseenter") >= 0 && re().addEventListener("mousemove", g);
|
|
9105
9106
|
}), h;
|
|
9106
|
-
function
|
|
9107
|
+
function L() {
|
|
9107
9108
|
var v = h.props.touch;
|
|
9108
9109
|
return Array.isArray(v) ? v : [v, 0];
|
|
9109
9110
|
}
|
|
9110
9111
|
function H() {
|
|
9111
|
-
return
|
|
9112
|
+
return L()[0] === "hold";
|
|
9112
9113
|
}
|
|
9113
9114
|
function $() {
|
|
9114
9115
|
var v;
|
|
@@ -9154,7 +9155,7 @@ function sd(n, e) {
|
|
|
9154
9155
|
}
|
|
9155
9156
|
}
|
|
9156
9157
|
function we() {
|
|
9157
|
-
if (!(
|
|
9158
|
+
if (!(F || !h.props.aria.expanded)) {
|
|
9158
9159
|
var v = wt(h.props.triggerTarget || n);
|
|
9159
9160
|
v.forEach(function(w) {
|
|
9160
9161
|
h.props.interactive ? w.setAttribute("aria-expanded", h.state.isVisible && w === B() ? "true" : "false") : w.removeAttribute("aria-expanded");
|
|
@@ -9231,7 +9232,7 @@ function sd(n, e) {
|
|
|
9231
9232
|
passive: !0
|
|
9232
9233
|
}), ze("touchend", pn, {
|
|
9233
9234
|
passive: !0
|
|
9234
|
-
})),
|
|
9235
|
+
})), Ff(h.props.trigger).forEach(function(v) {
|
|
9235
9236
|
if (v !== "manual")
|
|
9236
9237
|
switch (ze(v, Nt), v) {
|
|
9237
9238
|
case "mouseenter":
|
|
@@ -9264,7 +9265,7 @@ function sd(n, e) {
|
|
|
9264
9265
|
function dn(v) {
|
|
9265
9266
|
var w = v.target, E = B().contains(w) || x.contains(w);
|
|
9266
9267
|
if (!(v.type === "mousemove" && E)) {
|
|
9267
|
-
var R =
|
|
9268
|
+
var R = Fe().concat(x).map(function(I) {
|
|
9268
9269
|
var X, fe = I._tippy, gt = (X = fe.popperInstance) == null ? void 0 : X.state;
|
|
9269
9270
|
return gt ? {
|
|
9270
9271
|
popperRect: I.getBoundingClientRect(),
|
|
@@ -9361,12 +9362,12 @@ function sd(n, e) {
|
|
|
9361
9362
|
|
|
9362
9363
|
`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
9363
9364
|
}
|
|
9364
|
-
function
|
|
9365
|
+
function Fe() {
|
|
9365
9366
|
return Kn(x.querySelectorAll("[data-tippy-root]"));
|
|
9366
9367
|
}
|
|
9367
9368
|
function Rt(v) {
|
|
9368
9369
|
h.clearDelayTimeouts(), v && W("onTrigger", [h, v]), ye();
|
|
9369
|
-
var w = q(!0), E =
|
|
9370
|
+
var w = q(!0), E = L(), R = E[0], I = E[1];
|
|
9370
9371
|
Ce.isTouch && R === "hold" && I && (w = I), w ? r = setTimeout(function() {
|
|
9371
9372
|
h.show();
|
|
9372
9373
|
}, w) : h.show();
|
|
@@ -9402,7 +9403,7 @@ function sd(n, e) {
|
|
|
9402
9403
|
}));
|
|
9403
9404
|
h.props = E, mt(), w.interactiveDebounce !== E.interactiveDebounce && (qe(), g = ro(dn, E.interactiveDebounce)), w.triggerTarget && !E.triggerTarget ? wt(w.triggerTarget).forEach(function(R) {
|
|
9404
9405
|
R.removeAttribute("aria-expanded");
|
|
9405
|
-
}) : E.triggerTarget && n.removeAttribute("aria-expanded"), we(), K(), N && N(w, E), h.popperInstance && (hn(),
|
|
9406
|
+
}) : E.triggerTarget && n.removeAttribute("aria-expanded"), we(), K(), N && N(w, E), h.popperInstance && (hn(), Fe().forEach(function(R) {
|
|
9406
9407
|
requestAnimationFrame(R._tippy.popperInstance.forceUpdate);
|
|
9407
9408
|
})), W("onAfterUpdate", [h, v]);
|
|
9408
9409
|
}
|
|
@@ -9449,7 +9450,7 @@ function sd(n, e) {
|
|
|
9449
9450
|
process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("hideWithInteractivity")), re().addEventListener("mousemove", g), io(Mn, g), g(v);
|
|
9450
9451
|
}
|
|
9451
9452
|
function oa() {
|
|
9452
|
-
process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("unmount")), h.state.isVisible && h.hide(), h.state.isMounted && (mn(),
|
|
9453
|
+
process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("unmount")), h.state.isVisible && h.hide(), h.state.isMounted && (mn(), Fe().forEach(function(v) {
|
|
9453
9454
|
v._tippy.unmount();
|
|
9454
9455
|
}), x.parentNode && x.parentNode.removeChild(x), gr = gr.filter(function(v) {
|
|
9455
9456
|
return v !== h;
|