@ahzoo/sus 1.7.1 → 1.7.3
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/index.js +709 -694
- package/index.umd.cjs +21 -21
- package/package.json +1 -1
- package/style.css +1 -1
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Ru = Object.defineProperty;
|
|
2
2
|
var Lu = (o, e, t) => e in o ? Ru(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var dt = (o, e, t) => Lu(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { defineComponent as je, shallowRef as Pu, onMounted as la, onBeforeUnmount as Vs, h as wn, ref as
|
|
5
|
-
function
|
|
4
|
+
import { defineComponent as je, shallowRef as Pu, onMounted as la, onBeforeUnmount as Vs, h as wn, ref as Ce, getCurrentInstance as zu, watchEffect as $u, nextTick as Hu, unref as We, markRaw as Tc, reactive as Nc, render as Cl, customRef as Vu, createElementBlock as J, openBlock as W, Fragment as mn, renderList as pa, createElementVNode as x, watch as qu, normalizeClass as So, createTextVNode as Vn, toDisplayString as Le, createBlock as Na, Teleport as Wu, createCommentVNode as Ue, withDirectives as Ee, createStaticVNode as qs, vModelCheckbox as Bc, renderSlot as Vo, vModelRadio as Uu, toRefs as Rc, computed as Lc, normalizeStyle as Pc, pushScopeId as ca, popScopeId as ma, vShow as ft, vModelText as mi, createVNode as Ba, withCtx as Ku } from "vue";
|
|
5
|
+
function Te(o) {
|
|
6
6
|
this.content = o;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
constructor:
|
|
8
|
+
Te.prototype = {
|
|
9
|
+
constructor: Te,
|
|
10
10
|
find: function(o) {
|
|
11
11
|
for (var e = 0; e < this.content.length; e += 2)
|
|
12
12
|
if (this.content[e] === o) return e;
|
|
@@ -25,7 +25,7 @@ Ae.prototype = {
|
|
|
25
25
|
// given, the key of the binding will be replaced with that key.
|
|
26
26
|
update: function(o, e, t) {
|
|
27
27
|
var n = t && t != o ? this.remove(t) : this, a = n.find(o), s = n.content.slice();
|
|
28
|
-
return a == -1 ? s.push(t || o, e) : (s[a + 1] = e, t && (s[a] = t)), new
|
|
28
|
+
return a == -1 ? s.push(t || o, e) : (s[a + 1] = e, t && (s[a] = t)), new Te(s);
|
|
29
29
|
},
|
|
30
30
|
// :: (string) → OrderedMap
|
|
31
31
|
// Return a map with the given key removed, if it existed.
|
|
@@ -33,25 +33,25 @@ Ae.prototype = {
|
|
|
33
33
|
var e = this.find(o);
|
|
34
34
|
if (e == -1) return this;
|
|
35
35
|
var t = this.content.slice();
|
|
36
|
-
return t.splice(e, 2), new
|
|
36
|
+
return t.splice(e, 2), new Te(t);
|
|
37
37
|
},
|
|
38
38
|
// :: (string, any) → OrderedMap
|
|
39
39
|
// Add a new key to the start of the map.
|
|
40
40
|
addToStart: function(o, e) {
|
|
41
|
-
return new
|
|
41
|
+
return new Te([o, e].concat(this.remove(o).content));
|
|
42
42
|
},
|
|
43
43
|
// :: (string, any) → OrderedMap
|
|
44
44
|
// Add a new key to the end of the map.
|
|
45
45
|
addToEnd: function(o, e) {
|
|
46
46
|
var t = this.remove(o).content.slice();
|
|
47
|
-
return t.push(o, e), new
|
|
47
|
+
return t.push(o, e), new Te(t);
|
|
48
48
|
},
|
|
49
49
|
// :: (string, string, any) → OrderedMap
|
|
50
50
|
// Add a key after the given key. If `place` is not found, the new
|
|
51
51
|
// key is added to the end.
|
|
52
52
|
addBefore: function(o, e, t) {
|
|
53
53
|
var n = this.remove(e), a = n.content.slice(), s = n.find(o);
|
|
54
|
-
return a.splice(s == -1 ? a.length : s, 0, e, t), new
|
|
54
|
+
return a.splice(s == -1 ? a.length : s, 0, e, t), new Te(a);
|
|
55
55
|
},
|
|
56
56
|
// :: ((key: string, value: any))
|
|
57
57
|
// Call the given function for each key/value pair in the map, in
|
|
@@ -64,20 +64,20 @@ Ae.prototype = {
|
|
|
64
64
|
// Create a new map by prepending the keys in this map that don't
|
|
65
65
|
// appear in `map` before the keys in `map`.
|
|
66
66
|
prepend: function(o) {
|
|
67
|
-
return o =
|
|
67
|
+
return o = Te.from(o), o.size ? new Te(o.content.concat(this.subtract(o).content)) : this;
|
|
68
68
|
},
|
|
69
69
|
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
70
70
|
// Create a new map by appending the keys in this map that don't
|
|
71
71
|
// appear in `map` after the keys in `map`.
|
|
72
72
|
append: function(o) {
|
|
73
|
-
return o =
|
|
73
|
+
return o = Te.from(o), o.size ? new Te(this.subtract(o).content.concat(o.content)) : this;
|
|
74
74
|
},
|
|
75
75
|
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
76
76
|
// Create a map containing all the keys in this map that don't
|
|
77
77
|
// appear in `map`.
|
|
78
78
|
subtract: function(o) {
|
|
79
79
|
var e = this;
|
|
80
|
-
o =
|
|
80
|
+
o = Te.from(o);
|
|
81
81
|
for (var t = 0; t < o.content.length; t += 2)
|
|
82
82
|
e = e.remove(o.content[t]);
|
|
83
83
|
return e;
|
|
@@ -96,11 +96,11 @@ Ae.prototype = {
|
|
|
96
96
|
return this.content.length >> 1;
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
-
|
|
100
|
-
if (o instanceof
|
|
99
|
+
Te.from = function(o) {
|
|
100
|
+
if (o instanceof Te) return o;
|
|
101
101
|
var e = [];
|
|
102
102
|
if (o) for (var t in o) e.push(t, o[t]);
|
|
103
|
-
return new
|
|
103
|
+
return new Te(e);
|
|
104
104
|
};
|
|
105
105
|
function zc(o, e, t) {
|
|
106
106
|
for (let n = 0; ; n++) {
|
|
@@ -2041,7 +2041,7 @@ class tm {
|
|
|
2041
2041
|
let t = this.spec = {};
|
|
2042
2042
|
for (let a in e)
|
|
2043
2043
|
t[a] = e[a];
|
|
2044
|
-
t.nodes =
|
|
2044
|
+
t.nodes = Te.from(e.nodes), t.marks = Te.from(e.marks || {}), this.nodes = Fl.compile(this.spec.nodes, this), this.marks = Ws.compile(this.spec.marks, this);
|
|
2045
2045
|
let n = /* @__PURE__ */ Object.create(null);
|
|
2046
2046
|
for (let a in this.nodes) {
|
|
2047
2047
|
if (a in this.marks)
|
|
@@ -3294,7 +3294,7 @@ class dn extends $e {
|
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
3296
3296
|
$e.jsonID("removeNodeMark", dn);
|
|
3297
|
-
class
|
|
3297
|
+
class xe extends $e {
|
|
3298
3298
|
/**
|
|
3299
3299
|
The given `slice` should fit the 'gap' between `from` and
|
|
3300
3300
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -3314,21 +3314,21 @@ class Ce extends $e {
|
|
|
3314
3314
|
return new ot([this.from, this.to - this.from, this.slice.size]);
|
|
3315
3315
|
}
|
|
3316
3316
|
invert(e) {
|
|
3317
|
-
return new
|
|
3317
|
+
return new xe(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
|
|
3318
3318
|
}
|
|
3319
3319
|
map(e) {
|
|
3320
3320
|
let t = e.mapResult(this.from, 1), n = e.mapResult(this.to, -1);
|
|
3321
|
-
return t.deletedAcross && n.deletedAcross ? null : new
|
|
3321
|
+
return t.deletedAcross && n.deletedAcross ? null : new xe(t.pos, Math.max(t.pos, n.pos), this.slice);
|
|
3322
3322
|
}
|
|
3323
3323
|
merge(e) {
|
|
3324
|
-
if (!(e instanceof
|
|
3324
|
+
if (!(e instanceof xe) || e.structure || this.structure)
|
|
3325
3325
|
return null;
|
|
3326
3326
|
if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
|
|
3327
3327
|
let t = this.slice.size + e.slice.size == 0 ? N.empty : new N(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
|
|
3328
|
-
return new
|
|
3328
|
+
return new xe(this.from, this.to + (e.to - e.from), t, this.structure);
|
|
3329
3329
|
} else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
|
|
3330
3330
|
let t = this.slice.size + e.slice.size == 0 ? N.empty : new N(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
|
|
3331
|
-
return new
|
|
3331
|
+
return new xe(e.from, this.to, t, this.structure);
|
|
3332
3332
|
} else
|
|
3333
3333
|
return null;
|
|
3334
3334
|
}
|
|
@@ -3342,11 +3342,11 @@ class Ce extends $e {
|
|
|
3342
3342
|
static fromJSON(e, t) {
|
|
3343
3343
|
if (typeof t.from != "number" || typeof t.to != "number")
|
|
3344
3344
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
3345
|
-
return new
|
|
3345
|
+
return new xe(t.from, t.to, N.fromJSON(e, t.slice), !!t.structure);
|
|
3346
3346
|
}
|
|
3347
3347
|
}
|
|
3348
|
-
$e.jsonID("replace",
|
|
3349
|
-
class
|
|
3348
|
+
$e.jsonID("replace", xe);
|
|
3349
|
+
class Se extends $e {
|
|
3350
3350
|
/**
|
|
3351
3351
|
Create a replace-around step with the given range and gap.
|
|
3352
3352
|
`insert` should be the point in the slice into which the content
|
|
@@ -3377,11 +3377,11 @@ class xe extends $e {
|
|
|
3377
3377
|
}
|
|
3378
3378
|
invert(e) {
|
|
3379
3379
|
let t = this.gapTo - this.gapFrom;
|
|
3380
|
-
return new
|
|
3380
|
+
return new Se(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
|
|
3381
3381
|
}
|
|
3382
3382
|
map(e) {
|
|
3383
3383
|
let t = e.mapResult(this.from, 1), n = e.mapResult(this.to, -1), a = this.from == this.gapFrom ? t.pos : e.map(this.gapFrom, -1), s = this.to == this.gapTo ? n.pos : e.map(this.gapTo, 1);
|
|
3384
|
-
return t.deletedAcross && n.deletedAcross || a < t.pos || s > n.pos ? null : new
|
|
3384
|
+
return t.deletedAcross && n.deletedAcross || a < t.pos || s > n.pos ? null : new Se(t.pos, n.pos, a, s, this.slice, this.insert, this.structure);
|
|
3385
3385
|
}
|
|
3386
3386
|
toJSON() {
|
|
3387
3387
|
let e = {
|
|
@@ -3400,10 +3400,10 @@ class xe extends $e {
|
|
|
3400
3400
|
static fromJSON(e, t) {
|
|
3401
3401
|
if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
|
|
3402
3402
|
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
|
3403
|
-
return new
|
|
3403
|
+
return new Se(t.from, t.to, t.gapFrom, t.gapTo, N.fromJSON(e, t.slice), t.insert, !!t.structure);
|
|
3404
3404
|
}
|
|
3405
3405
|
}
|
|
3406
|
-
$e.jsonID("replaceAround",
|
|
3406
|
+
$e.jsonID("replaceAround", Se);
|
|
3407
3407
|
function tr(o, e, t) {
|
|
3408
3408
|
let n = o.resolve(e), a = t - e, s = n.depth;
|
|
3409
3409
|
for (; a > 0 && s > 0 && n.indexAfter(s) == n.node(s).childCount; )
|
|
@@ -3462,7 +3462,7 @@ function pm(o, e, t, n = t.contentMatch, a = !0) {
|
|
|
3462
3462
|
for (let l = 0; l < s.childCount; l++) {
|
|
3463
3463
|
let p = s.child(l), c = r + p.nodeSize, m = n.matchType(p.type);
|
|
3464
3464
|
if (!m)
|
|
3465
|
-
i.push(new
|
|
3465
|
+
i.push(new xe(r, c, N.empty));
|
|
3466
3466
|
else {
|
|
3467
3467
|
n = m;
|
|
3468
3468
|
for (let d = 0; d < p.marks.length; d++)
|
|
@@ -3470,7 +3470,7 @@ function pm(o, e, t, n = t.contentMatch, a = !0) {
|
|
|
3470
3470
|
if (a && p.isText && t.whitespace != "pre") {
|
|
3471
3471
|
let d, u = /\r?\n|\r/g, g;
|
|
3472
3472
|
for (; d = u.exec(p.text); )
|
|
3473
|
-
g || (g = new N(C.from(t.schema.text(" ", t.allowedMarks(p.marks))), 0, 0)), i.push(new
|
|
3473
|
+
g || (g = new N(C.from(t.schema.text(" ", t.allowedMarks(p.marks))), 0, 0)), i.push(new xe(r + d.index, r + d.index + d[0].length, g));
|
|
3474
3474
|
}
|
|
3475
3475
|
}
|
|
3476
3476
|
r = c;
|
|
@@ -3503,7 +3503,7 @@ function _g(o, e, t) {
|
|
|
3503
3503
|
let d = C.empty, u = 0;
|
|
3504
3504
|
for (let g = s, f = !1; g > t; g--)
|
|
3505
3505
|
f || a.after(g + 1) < a.end(g) ? (f = !0, d = C.from(a.node(g).copy(d)), u++) : p++;
|
|
3506
|
-
o.step(new
|
|
3506
|
+
o.step(new Se(l, p, i, r, new N(c.append(d), m, u), c.size - m, !0));
|
|
3507
3507
|
}
|
|
3508
3508
|
function Mr(o, e, t = null, n = o) {
|
|
3509
3509
|
let a = Dg(o, e), s = a && wg(n, e);
|
|
@@ -3539,7 +3539,7 @@ function Ig(o, e, t) {
|
|
|
3539
3539
|
n = C.from(t[i].type.create(t[i].attrs, n));
|
|
3540
3540
|
}
|
|
3541
3541
|
let a = e.start, s = e.end;
|
|
3542
|
-
o.step(new
|
|
3542
|
+
o.step(new Se(a, s, a, s, new N(n, 0, 0), t.length, !0));
|
|
3543
3543
|
}
|
|
3544
3544
|
function Eg(o, e, t, n, a) {
|
|
3545
3545
|
if (!n.isTextblock)
|
|
@@ -3555,7 +3555,7 @@ function Eg(o, e, t, n, a) {
|
|
|
3555
3555
|
}
|
|
3556
3556
|
p === !1 && xg(o, i, r, s), pm(o, o.mapping.slice(s).map(r, 1), n, void 0, p === null);
|
|
3557
3557
|
let c = o.mapping.slice(s), m = c.map(r, 1), d = c.map(r + i.nodeSize, 1);
|
|
3558
|
-
return o.step(new
|
|
3558
|
+
return o.step(new Se(m, d, m + 1, d - 1, new N(C.from(n.create(l, null, i.marks)), 0, 0), 1, !0)), p === !0 && Cg(o, i, r, s), !1;
|
|
3559
3559
|
}
|
|
3560
3560
|
});
|
|
3561
3561
|
}
|
|
@@ -3593,7 +3593,7 @@ function Mg(o, e, t, n, a) {
|
|
|
3593
3593
|
return o.replaceWith(e, e + s.nodeSize, i);
|
|
3594
3594
|
if (!t.validContent(s.content))
|
|
3595
3595
|
throw new RangeError("Invalid content for node type " + t.name);
|
|
3596
|
-
o.step(new
|
|
3596
|
+
o.step(new Se(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new N(C.from(i), 0, 0), 1, !0));
|
|
3597
3597
|
}
|
|
3598
3598
|
function Kt(o, e, t = 1, n) {
|
|
3599
3599
|
let a = o.resolve(e), s = a.depth - t, i = n && n[n.length - 1] || a.parent;
|
|
@@ -3619,7 +3619,7 @@ function Fg(o, e, t = 1, n) {
|
|
|
3619
3619
|
let c = n && n[p];
|
|
3620
3620
|
i = C.from(c ? c.type.create(c.attrs, i) : a.node(r).copy(i));
|
|
3621
3621
|
}
|
|
3622
|
-
o.step(new
|
|
3622
|
+
o.step(new xe(e, e, new N(s.append(i), t, t), !0));
|
|
3623
3623
|
}
|
|
3624
3624
|
function vo(o, e) {
|
|
3625
3625
|
let t = o.resolve(e), n = t.index();
|
|
@@ -3640,7 +3640,7 @@ function Us(o, e, t = -1) {
|
|
|
3640
3640
|
}
|
|
3641
3641
|
}
|
|
3642
3642
|
function Og(o, e, t) {
|
|
3643
|
-
let n = new
|
|
3643
|
+
let n = new xe(e - t, e + t, N.empty, !0);
|
|
3644
3644
|
o.step(n);
|
|
3645
3645
|
}
|
|
3646
3646
|
function Ag(o, e, t) {
|
|
@@ -3690,7 +3690,7 @@ function Ks(o, e, t = e, n = N.empty) {
|
|
|
3690
3690
|
if (e == t && !n.size)
|
|
3691
3691
|
return null;
|
|
3692
3692
|
let a = o.resolve(e), s = o.resolve(t);
|
|
3693
|
-
return dm(a, s, n) ? new
|
|
3693
|
+
return dm(a, s, n) ? new xe(e, t, n) : new Tg(a, s, n).fit();
|
|
3694
3694
|
}
|
|
3695
3695
|
function dm(o, e, t) {
|
|
3696
3696
|
return !t.openStart && !t.openEnd && o.start() == e.start() && o.parent.canReplace(o.index(), e.index(), t.content);
|
|
@@ -3723,7 +3723,7 @@ class Tg {
|
|
|
3723
3723
|
for (; i && r && s.childCount == 1; )
|
|
3724
3724
|
s = s.firstChild.content, i--, r--;
|
|
3725
3725
|
let l = new N(s, i, r);
|
|
3726
|
-
return e > -1 ? new
|
|
3726
|
+
return e > -1 ? new Se(n.pos, e, this.$to.pos, this.$to.end(), l, t) : l.size || n.pos != this.$to.pos ? new xe(n.pos, a.pos, l) : null;
|
|
3727
3727
|
}
|
|
3728
3728
|
// Find a position on the start spine of `this.unplaced` that has
|
|
3729
3729
|
// content that can be moved somewhere on the frontier. Returns two
|
|
@@ -3880,7 +3880,7 @@ function Rg(o, e, t, n) {
|
|
|
3880
3880
|
return o.deleteRange(e, t);
|
|
3881
3881
|
let a = o.doc.resolve(e), s = o.doc.resolve(t);
|
|
3882
3882
|
if (dm(a, s, n))
|
|
3883
|
-
return o.step(new
|
|
3883
|
+
return o.step(new xe(e, t, n));
|
|
3884
3884
|
let i = fm(a, o.doc.resolve(t));
|
|
3885
3885
|
i[i.length - 1] == 0 && i.pop();
|
|
3886
3886
|
let r = -(a.depth + 1);
|
|
@@ -4266,7 +4266,7 @@ class hm {
|
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
4268
|
const bi = /* @__PURE__ */ Object.create(null);
|
|
4269
|
-
class
|
|
4269
|
+
class ee {
|
|
4270
4270
|
/**
|
|
4271
4271
|
Initialize a selection with the head and anchor and ranges. If no
|
|
4272
4272
|
ranges are given, constructs a single range across `$anchor` and
|
|
@@ -4376,7 +4376,7 @@ class te {
|
|
|
4376
4376
|
negative, it will search backwards first.
|
|
4377
4377
|
*/
|
|
4378
4378
|
static near(e, t = 1) {
|
|
4379
|
-
return this.findFrom(e, t) || this.findFrom(e, -t) || new
|
|
4379
|
+
return this.findFrom(e, t) || this.findFrom(e, -t) || new vt(e.node(0));
|
|
4380
4380
|
}
|
|
4381
4381
|
/**
|
|
4382
4382
|
Find the cursor or leaf node selection closest to the start of
|
|
@@ -4385,14 +4385,14 @@ class te {
|
|
|
4385
4385
|
exists.
|
|
4386
4386
|
*/
|
|
4387
4387
|
static atStart(e) {
|
|
4388
|
-
return tn(e, e, 0, 0, 1) || new
|
|
4388
|
+
return tn(e, e, 0, 0, 1) || new vt(e);
|
|
4389
4389
|
}
|
|
4390
4390
|
/**
|
|
4391
4391
|
Find the cursor or leaf node selection closest to the end of the
|
|
4392
4392
|
given document.
|
|
4393
4393
|
*/
|
|
4394
4394
|
static atEnd(e) {
|
|
4395
|
-
return tn(e, e, e.content.size, e.childCount, -1) || new
|
|
4395
|
+
return tn(e, e, e.content.size, e.childCount, -1) || new vt(e);
|
|
4396
4396
|
}
|
|
4397
4397
|
/**
|
|
4398
4398
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -4430,7 +4430,7 @@ class te {
|
|
|
4430
4430
|
return X.between(this.$anchor, this.$head).getBookmark();
|
|
4431
4431
|
}
|
|
4432
4432
|
}
|
|
4433
|
-
|
|
4433
|
+
ee.prototype.visible = !0;
|
|
4434
4434
|
class zg {
|
|
4435
4435
|
/**
|
|
4436
4436
|
Create a range.
|
|
@@ -4443,7 +4443,7 @@ let $l = !1;
|
|
|
4443
4443
|
function Hl(o) {
|
|
4444
4444
|
!$l && !o.parent.inlineContent && ($l = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + o.parent.type.name + ")"));
|
|
4445
4445
|
}
|
|
4446
|
-
class X extends
|
|
4446
|
+
class X extends ee {
|
|
4447
4447
|
/**
|
|
4448
4448
|
Construct a text selection between the given points.
|
|
4449
4449
|
*/
|
|
@@ -4460,7 +4460,7 @@ class X extends te {
|
|
|
4460
4460
|
map(e, t) {
|
|
4461
4461
|
let n = e.resolve(t.map(this.head));
|
|
4462
4462
|
if (!n.parent.inlineContent)
|
|
4463
|
-
return
|
|
4463
|
+
return ee.near(n);
|
|
4464
4464
|
let a = e.resolve(t.map(this.anchor));
|
|
4465
4465
|
return new X(a.parent.inlineContent ? a : n, n);
|
|
4466
4466
|
}
|
|
@@ -4505,16 +4505,16 @@ class X extends te {
|
|
|
4505
4505
|
static between(e, t, n) {
|
|
4506
4506
|
let a = e.pos - t.pos;
|
|
4507
4507
|
if ((!n || a) && (n = a >= 0 ? 1 : -1), !t.parent.inlineContent) {
|
|
4508
|
-
let s =
|
|
4508
|
+
let s = ee.findFrom(t, n, !0) || ee.findFrom(t, -n, !0);
|
|
4509
4509
|
if (s)
|
|
4510
4510
|
t = s.$head;
|
|
4511
4511
|
else
|
|
4512
|
-
return
|
|
4512
|
+
return ee.near(t, n);
|
|
4513
4513
|
}
|
|
4514
|
-
return e.parent.inlineContent || (a == 0 ? e = t : (e = (
|
|
4514
|
+
return e.parent.inlineContent || (a == 0 ? e = t : (e = (ee.findFrom(e, -n, !0) || ee.findFrom(e, n, !0)).$anchor, e.pos < t.pos != a < 0 && (e = t))), new X(e, t);
|
|
4515
4515
|
}
|
|
4516
4516
|
}
|
|
4517
|
-
|
|
4517
|
+
ee.jsonID("text", X);
|
|
4518
4518
|
class Gs {
|
|
4519
4519
|
constructor(e, t) {
|
|
4520
4520
|
this.anchor = e, this.head = t;
|
|
@@ -4526,7 +4526,7 @@ class Gs {
|
|
|
4526
4526
|
return X.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
4527
4527
|
}
|
|
4528
4528
|
}
|
|
4529
|
-
class U extends
|
|
4529
|
+
class U extends ee {
|
|
4530
4530
|
/**
|
|
4531
4531
|
Create a node selection. Does not verify the validity of its
|
|
4532
4532
|
argument.
|
|
@@ -4537,7 +4537,7 @@ class U extends te {
|
|
|
4537
4537
|
}
|
|
4538
4538
|
map(e, t) {
|
|
4539
4539
|
let { deleted: n, pos: a } = t.mapResult(this.anchor), s = e.resolve(a);
|
|
4540
|
-
return n ?
|
|
4540
|
+
return n ? ee.near(s) : new U(s);
|
|
4541
4541
|
}
|
|
4542
4542
|
content() {
|
|
4543
4543
|
return new N(C.from(this.node), 0, 0);
|
|
@@ -4574,7 +4574,7 @@ class U extends te {
|
|
|
4574
4574
|
}
|
|
4575
4575
|
}
|
|
4576
4576
|
U.prototype.visible = !1;
|
|
4577
|
-
|
|
4577
|
+
ee.jsonID("node", U);
|
|
4578
4578
|
class Fr {
|
|
4579
4579
|
constructor(e) {
|
|
4580
4580
|
this.anchor = e;
|
|
@@ -4585,10 +4585,10 @@ class Fr {
|
|
|
4585
4585
|
}
|
|
4586
4586
|
resolve(e) {
|
|
4587
4587
|
let t = e.resolve(this.anchor), n = t.nodeAfter;
|
|
4588
|
-
return n && U.isSelectable(n) ? new U(t) :
|
|
4588
|
+
return n && U.isSelectable(n) ? new U(t) : ee.near(t);
|
|
4589
4589
|
}
|
|
4590
4590
|
}
|
|
4591
|
-
class
|
|
4591
|
+
class vt extends ee {
|
|
4592
4592
|
/**
|
|
4593
4593
|
Create an all-selection over the given document.
|
|
4594
4594
|
*/
|
|
@@ -4598,7 +4598,7 @@ class bt extends te {
|
|
|
4598
4598
|
replace(e, t = N.empty) {
|
|
4599
4599
|
if (t == N.empty) {
|
|
4600
4600
|
e.delete(0, e.doc.content.size);
|
|
4601
|
-
let n =
|
|
4601
|
+
let n = ee.atStart(e.doc);
|
|
4602
4602
|
n.eq(e.selection) || e.setSelection(n);
|
|
4603
4603
|
} else
|
|
4604
4604
|
super.replace(e, t);
|
|
@@ -4610,25 +4610,25 @@ class bt extends te {
|
|
|
4610
4610
|
@internal
|
|
4611
4611
|
*/
|
|
4612
4612
|
static fromJSON(e) {
|
|
4613
|
-
return new
|
|
4613
|
+
return new vt(e);
|
|
4614
4614
|
}
|
|
4615
4615
|
map(e) {
|
|
4616
|
-
return new
|
|
4616
|
+
return new vt(e);
|
|
4617
4617
|
}
|
|
4618
4618
|
eq(e) {
|
|
4619
|
-
return e instanceof
|
|
4619
|
+
return e instanceof vt;
|
|
4620
4620
|
}
|
|
4621
4621
|
getBookmark() {
|
|
4622
4622
|
return $g;
|
|
4623
4623
|
}
|
|
4624
4624
|
}
|
|
4625
|
-
|
|
4625
|
+
ee.jsonID("all", vt);
|
|
4626
4626
|
const $g = {
|
|
4627
4627
|
map() {
|
|
4628
4628
|
return this;
|
|
4629
4629
|
},
|
|
4630
4630
|
resolve(o) {
|
|
4631
|
-
return new
|
|
4631
|
+
return new vt(o);
|
|
4632
4632
|
}
|
|
4633
4633
|
};
|
|
4634
4634
|
function tn(o, e, t, n, a, s = !1) {
|
|
@@ -4653,12 +4653,12 @@ function Vl(o, e, t) {
|
|
|
4653
4653
|
if (n < e)
|
|
4654
4654
|
return;
|
|
4655
4655
|
let a = o.steps[n];
|
|
4656
|
-
if (!(a instanceof
|
|
4656
|
+
if (!(a instanceof xe || a instanceof Se))
|
|
4657
4657
|
return;
|
|
4658
4658
|
let s = o.mapping.maps[n], i;
|
|
4659
4659
|
s.forEach((r, l, p, c) => {
|
|
4660
4660
|
i == null && (i = c);
|
|
4661
|
-
}), o.setSelection(
|
|
4661
|
+
}), o.setSelection(ee.near(o.doc.resolve(i), t));
|
|
4662
4662
|
}
|
|
4663
4663
|
const ql = 1, Wl = 2, Ul = 4;
|
|
4664
4664
|
class Hg extends hm {
|
|
@@ -4773,7 +4773,7 @@ class Hg extends hm {
|
|
|
4773
4773
|
let i = this.doc.resolve(t);
|
|
4774
4774
|
s = n == t ? i.marks() : i.marksAcross(this.doc.resolve(n));
|
|
4775
4775
|
}
|
|
4776
|
-
return this.replaceRangeWith(t, n, a.text(e, s)), this.selection.empty || this.setSelection(
|
|
4776
|
+
return this.replaceRangeWith(t, n, a.text(e, s)), this.selection.empty || this.setSelection(ee.near(this.selection.$to)), this;
|
|
4777
4777
|
}
|
|
4778
4778
|
}
|
|
4779
4779
|
/**
|
|
@@ -4831,7 +4831,7 @@ const Vg = [
|
|
|
4831
4831
|
}),
|
|
4832
4832
|
new An("selection", {
|
|
4833
4833
|
init(o, e) {
|
|
4834
|
-
return o.selection ||
|
|
4834
|
+
return o.selection || ee.atStart(e.doc);
|
|
4835
4835
|
},
|
|
4836
4836
|
apply(o) {
|
|
4837
4837
|
return o.selection;
|
|
@@ -5011,7 +5011,7 @@ class sn {
|
|
|
5011
5011
|
if (i.name == "doc")
|
|
5012
5012
|
s.doc = mo.fromJSON(e.schema, t.doc);
|
|
5013
5013
|
else if (i.name == "selection")
|
|
5014
|
-
s.selection =
|
|
5014
|
+
s.selection = ee.fromJSON(s.doc, t.selection);
|
|
5015
5015
|
else if (i.name == "storedMarks")
|
|
5016
5016
|
t.storedMarks && (s.storedMarks = t.storedMarks.map(e.schema.markFromJSON));
|
|
5017
5017
|
else {
|
|
@@ -5095,7 +5095,7 @@ function Gl(o, e, t, n, a) {
|
|
|
5095
5095
|
for (; ; ) {
|
|
5096
5096
|
if (o == t && e == n)
|
|
5097
5097
|
return !0;
|
|
5098
|
-
if (e == (a < 0 ? 0 :
|
|
5098
|
+
if (e == (a < 0 ? 0 : bt(o))) {
|
|
5099
5099
|
let s = o.parentNode;
|
|
5100
5100
|
if (!s || s.nodeType != 1 || da(o) || Wg.test(o.nodeName) || o.contentEditable == "false")
|
|
5101
5101
|
return !1;
|
|
@@ -5103,12 +5103,12 @@ function Gl(o, e, t, n, a) {
|
|
|
5103
5103
|
} else if (o.nodeType == 1) {
|
|
5104
5104
|
if (o = o.childNodes[e + (a < 0 ? -1 : 0)], o.contentEditable == "false")
|
|
5105
5105
|
return !1;
|
|
5106
|
-
e = a < 0 ?
|
|
5106
|
+
e = a < 0 ? bt(o) : 0;
|
|
5107
5107
|
} else
|
|
5108
5108
|
return !1;
|
|
5109
5109
|
}
|
|
5110
5110
|
}
|
|
5111
|
-
function
|
|
5111
|
+
function bt(o) {
|
|
5112
5112
|
return o.nodeType == 3 ? o.nodeValue.length : o.childNodes.length;
|
|
5113
5113
|
}
|
|
5114
5114
|
function Ug(o, e) {
|
|
@@ -5118,7 +5118,7 @@ function Ug(o, e) {
|
|
|
5118
5118
|
if (o.nodeType == 1 && e > 0) {
|
|
5119
5119
|
if (o.contentEditable == "false")
|
|
5120
5120
|
return null;
|
|
5121
|
-
o = o.childNodes[e - 1], e =
|
|
5121
|
+
o = o.childNodes[e - 1], e = bt(o);
|
|
5122
5122
|
} else if (o.parentNode && !da(o))
|
|
5123
5123
|
e = Ne(o), o = o.parentNode;
|
|
5124
5124
|
else
|
|
@@ -5140,13 +5140,13 @@ function Kg(o, e) {
|
|
|
5140
5140
|
}
|
|
5141
5141
|
}
|
|
5142
5142
|
function Gg(o, e, t) {
|
|
5143
|
-
for (let n = e == 0, a = e ==
|
|
5143
|
+
for (let n = e == 0, a = e == bt(o); n || a; ) {
|
|
5144
5144
|
if (o == t)
|
|
5145
5145
|
return !0;
|
|
5146
5146
|
let s = Ne(o);
|
|
5147
5147
|
if (o = o.parentNode, !o)
|
|
5148
5148
|
return !1;
|
|
5149
|
-
n = n && s == 0, a = a && s ==
|
|
5149
|
+
n = n && s == 0, a = a && s == bt(o);
|
|
5150
5150
|
}
|
|
5151
5151
|
}
|
|
5152
5152
|
function da(o) {
|
|
@@ -5173,18 +5173,18 @@ function Yg(o, e, t) {
|
|
|
5173
5173
|
try {
|
|
5174
5174
|
let n = o.caretPositionFromPoint(e, t);
|
|
5175
5175
|
if (n)
|
|
5176
|
-
return { node: n.offsetNode, offset: Math.min(
|
|
5176
|
+
return { node: n.offsetNode, offset: Math.min(bt(n.offsetNode), n.offset) };
|
|
5177
5177
|
} catch {
|
|
5178
5178
|
}
|
|
5179
5179
|
if (o.caretRangeFromPoint) {
|
|
5180
5180
|
let n = o.caretRangeFromPoint(e, t);
|
|
5181
5181
|
if (n)
|
|
5182
|
-
return { node: n.startContainer, offset: Math.min(
|
|
5182
|
+
return { node: n.startContainer, offset: Math.min(bt(n.startContainer), n.startOffset) };
|
|
5183
5183
|
}
|
|
5184
5184
|
}
|
|
5185
5185
|
const Nt = typeof navigator < "u" ? navigator : null, Jl = typeof document < "u" ? document : null, jo = Nt && Nt.userAgent || "", nr = /Edge\/(\d+)/.exec(jo), jm = /MSIE \d/.exec(jo), ar = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jo), Qe = !!(jm || ar || nr), go = jm ? document.documentMode : ar ? +ar[1] : nr ? +nr[1] : 0, It = !Qe && /gecko\/(\d+)/i.test(jo);
|
|
5186
5186
|
It && +(/Firefox\/(\d+)/.exec(jo) || [0, 0])[1];
|
|
5187
|
-
const sr = !Qe && /Chrome\/(\d+)/.exec(jo), Pe = !!sr, km = sr ? +sr[1] : 0,
|
|
5187
|
+
const sr = !Qe && /Chrome\/(\d+)/.exec(jo), Pe = !!sr, km = sr ? +sr[1] : 0, Ge = !Qe && !!Nt && /Apple Computer/.test(Nt.vendor), gn = Ge && (/Mobile\/\w+/.test(jo) || !!Nt && Nt.maxTouchPoints > 2), ht = gn || (Nt ? /Mac/.test(Nt.platform) : !1), Xg = Nt ? /Win/.test(Nt.platform) : !1, Dt = /Android \d/.test(jo), ua = !!Jl && "webkitFontSmoothing" in Jl.documentElement.style, Zg = ua ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5188
5188
|
function Qg(o) {
|
|
5189
5189
|
let e = o.defaultView && o.defaultView.visualViewport;
|
|
5190
5190
|
return e ? {
|
|
@@ -5368,7 +5368,7 @@ function pf(o, e) {
|
|
|
5368
5368
|
if (!Or(e, p) || (i = wm(o.dom, e, p), !i))
|
|
5369
5369
|
return null;
|
|
5370
5370
|
}
|
|
5371
|
-
if (
|
|
5371
|
+
if (Ge)
|
|
5372
5372
|
for (let p = i; n && p; p = Un(p))
|
|
5373
5373
|
p.draggable && (n = void 0);
|
|
5374
5374
|
if (i = sf(i, e), n) {
|
|
@@ -5415,24 +5415,24 @@ function Im(o, e, t) {
|
|
|
5415
5415
|
return t < 0 && !a ? (p++, c = -1) : t >= 0 && a == n.nodeValue.length ? (l--, c = 1) : t < 0 ? l-- : p++, xn(eo(qt(n, l, p), c), c < 0);
|
|
5416
5416
|
}
|
|
5417
5417
|
if (!o.state.doc.resolve(e - (s || 0)).parent.inlineContent) {
|
|
5418
|
-
if (s == null && a && (t < 0 || a ==
|
|
5418
|
+
if (s == null && a && (t < 0 || a == bt(n))) {
|
|
5419
5419
|
let l = n.childNodes[a - 1];
|
|
5420
5420
|
if (l.nodeType == 1)
|
|
5421
5421
|
return ki(l.getBoundingClientRect(), !1);
|
|
5422
5422
|
}
|
|
5423
|
-
if (s == null && a <
|
|
5423
|
+
if (s == null && a < bt(n)) {
|
|
5424
5424
|
let l = n.childNodes[a];
|
|
5425
5425
|
if (l.nodeType == 1)
|
|
5426
5426
|
return ki(l.getBoundingClientRect(), !0);
|
|
5427
5427
|
}
|
|
5428
5428
|
return ki(n.getBoundingClientRect(), t >= 0);
|
|
5429
5429
|
}
|
|
5430
|
-
if (s == null && a && (t < 0 || a ==
|
|
5431
|
-
let l = n.childNodes[a - 1], p = l.nodeType == 3 ? qt(l,
|
|
5430
|
+
if (s == null && a && (t < 0 || a == bt(n))) {
|
|
5431
|
+
let l = n.childNodes[a - 1], p = l.nodeType == 3 ? qt(l, bt(l) - (i ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
5432
5432
|
if (p)
|
|
5433
5433
|
return xn(eo(p, 1), !1);
|
|
5434
5434
|
}
|
|
5435
|
-
if (s == null && a <
|
|
5435
|
+
if (s == null && a < bt(n)) {
|
|
5436
5436
|
let l = n.childNodes[a];
|
|
5437
5437
|
for (; l.pmViewDesc && l.pmViewDesc.ignoreForCoords; )
|
|
5438
5438
|
l = l.nextSibling;
|
|
@@ -5516,10 +5516,10 @@ let Zl = null, Ql = null, ep = !1;
|
|
|
5516
5516
|
function gf(o, e, t) {
|
|
5517
5517
|
return Zl == e && Ql == t ? ep : (Zl = e, Ql = t, ep = t == "up" || t == "down" ? mf(o, e, t) : uf(o, e, t));
|
|
5518
5518
|
}
|
|
5519
|
-
const
|
|
5519
|
+
const jt = 0, tp = 1, Eo = 2, Bt = 3;
|
|
5520
5520
|
class ga {
|
|
5521
5521
|
constructor(e, t, n, a) {
|
|
5522
|
-
this.parent = e, this.children = t, this.dom = n, this.contentDOM = a, this.dirty =
|
|
5522
|
+
this.parent = e, this.children = t, this.dom = n, this.contentDOM = a, this.dirty = jt, n.pmViewDesc = this;
|
|
5523
5523
|
}
|
|
5524
5524
|
// Used to check whether a given description corresponds to a
|
|
5525
5525
|
// widget/mark/node.
|
|
@@ -5770,7 +5770,7 @@ class ga {
|
|
|
5770
5770
|
u = f;
|
|
5771
5771
|
}
|
|
5772
5772
|
let r = this.domFromPos(e, e ? -1 : 1), l = t == e ? r : this.domFromPos(t, t ? -1 : 1), p = n.getSelection(), c = !1;
|
|
5773
|
-
if ((It ||
|
|
5773
|
+
if ((It || Ge) && e == t) {
|
|
5774
5774
|
let { node: d, offset: u } = r;
|
|
5775
5775
|
if (d.nodeType == 3) {
|
|
5776
5776
|
if (c = !!(u && d.nodeValue[u - 1] == `
|
|
@@ -5793,7 +5793,7 @@ class ga {
|
|
|
5793
5793
|
let d = p.focusNode.childNodes[p.focusOffset];
|
|
5794
5794
|
d && d.contentEditable == "false" && (a = !0);
|
|
5795
5795
|
}
|
|
5796
|
-
if (!(a || c &&
|
|
5796
|
+
if (!(a || c && Ge) && Po(r.node, r.offset, p.anchorNode, p.anchorOffset) && Po(l.node, l.offset, p.focusNode, p.focusOffset))
|
|
5797
5797
|
return;
|
|
5798
5798
|
let m = !1;
|
|
5799
5799
|
if ((p.extend || e == t) && !c) {
|
|
@@ -5870,7 +5870,7 @@ class Cm extends ga {
|
|
|
5870
5870
|
super(e, [], i, null), this.widget = t, this.widget = t, s = this;
|
|
5871
5871
|
}
|
|
5872
5872
|
matchesWidget(e) {
|
|
5873
|
-
return this.dirty ==
|
|
5873
|
+
return this.dirty == jt && e.type.eq(this.widget.type);
|
|
5874
5874
|
}
|
|
5875
5875
|
parseRule() {
|
|
5876
5876
|
return { ignore: !0 };
|
|
@@ -5924,11 +5924,11 @@ class zo extends ga {
|
|
|
5924
5924
|
return this.dirty != Bt && this.mark.eq(e);
|
|
5925
5925
|
}
|
|
5926
5926
|
markDirty(e, t) {
|
|
5927
|
-
if (super.markDirty(e, t), this.dirty !=
|
|
5927
|
+
if (super.markDirty(e, t), this.dirty != jt) {
|
|
5928
5928
|
let n = this.parent;
|
|
5929
5929
|
for (; !n.node; )
|
|
5930
5930
|
n = n.parent;
|
|
5931
|
-
n.dirty < this.dirty && (n.dirty = this.dirty), this.dirty =
|
|
5931
|
+
n.dirty < this.dirty && (n.dirty = this.dirty), this.dirty = jt;
|
|
5932
5932
|
}
|
|
5933
5933
|
}
|
|
5934
5934
|
slice(e, t, n) {
|
|
@@ -5990,7 +5990,7 @@ class fo extends ga {
|
|
|
5990
5990
|
return e;
|
|
5991
5991
|
}
|
|
5992
5992
|
matchesNode(e, t, n) {
|
|
5993
|
-
return this.dirty ==
|
|
5993
|
+
return this.dirty == jt && e.eq(this.node) && Qa(t, this.outerDeco) && n.eq(this.innerDeco);
|
|
5994
5994
|
}
|
|
5995
5995
|
get size() {
|
|
5996
5996
|
return this.node.nodeSize;
|
|
@@ -6045,7 +6045,7 @@ class fo extends ga {
|
|
|
6045
6045
|
return this.dirty == Bt || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, n, a), !0);
|
|
6046
6046
|
}
|
|
6047
6047
|
updateInner(e, t, n, a) {
|
|
6048
|
-
this.updateOuterDeco(t), this.node = e, this.innerDeco = n, this.contentDOM && this.updateChildren(a, this.posAtStart), this.dirty =
|
|
6048
|
+
this.updateOuterDeco(t), this.node = e, this.innerDeco = n, this.contentDOM && this.updateChildren(a, this.posAtStart), this.dirty = jt;
|
|
6049
6049
|
}
|
|
6050
6050
|
updateOuterDeco(e) {
|
|
6051
6051
|
if (Qa(e, this.outerDeco))
|
|
@@ -6081,7 +6081,7 @@ class Ys extends fo {
|
|
|
6081
6081
|
return { skip: e || !0 };
|
|
6082
6082
|
}
|
|
6083
6083
|
update(e, t, n, a) {
|
|
6084
|
-
return this.dirty == Bt || this.dirty !=
|
|
6084
|
+
return this.dirty == Bt || this.dirty != jt && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != jt || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, a.trackWrites == this.nodeDOM && (a.trackWrites = null)), this.node = e, this.dirty = jt, !0);
|
|
6085
6085
|
}
|
|
6086
6086
|
inParent() {
|
|
6087
6087
|
let e = this.parent.contentDOM;
|
|
@@ -6118,7 +6118,7 @@ class xm extends ga {
|
|
|
6118
6118
|
return { ignore: !0 };
|
|
6119
6119
|
}
|
|
6120
6120
|
matchesHack(e) {
|
|
6121
|
-
return this.dirty ==
|
|
6121
|
+
return this.dirty == jt && this.dom.nodeName == e;
|
|
6122
6122
|
}
|
|
6123
6123
|
get domAtom() {
|
|
6124
6124
|
return !0;
|
|
@@ -6276,7 +6276,7 @@ class vf {
|
|
|
6276
6276
|
for (; a < i && (a == s - 1 ? this.top : this.stack[a + 1 << 1]).matchesMark(e[a]) && e[a].type.spec.spanning !== !1; )
|
|
6277
6277
|
a++;
|
|
6278
6278
|
for (; a < s; )
|
|
6279
|
-
this.destroyRest(), this.top.dirty =
|
|
6279
|
+
this.destroyRest(), this.top.dirty = jt, this.index = this.stack.pop(), this.top = this.stack.pop(), s--;
|
|
6280
6280
|
for (; s < e.length; ) {
|
|
6281
6281
|
this.stack.push(this.top, this.index + 1);
|
|
6282
6282
|
let r = -1;
|
|
@@ -6346,7 +6346,7 @@ class vf {
|
|
|
6346
6346
|
if (!d && l.update(e, t, n, a))
|
|
6347
6347
|
return this.destroyBetween(this.index, r), l.dom != c && (this.changed = !0), this.index++, !0;
|
|
6348
6348
|
if (!d && (m = this.recreateWrapper(l, e, t, n, a, i)))
|
|
6349
|
-
return this.destroyBetween(this.index, r), this.top.children[this.index] = m, m.contentDOM && (m.dirty = Eo, m.updateChildren(a, i + 1), m.dirty =
|
|
6349
|
+
return this.destroyBetween(this.index, r), this.top.children[this.index] = m, m.contentDOM && (m.dirty = Eo, m.updateChildren(a, i + 1), m.dirty = jt), this.changed = !0, this.index++, !0;
|
|
6350
6350
|
break;
|
|
6351
6351
|
}
|
|
6352
6352
|
}
|
|
@@ -6386,7 +6386,7 @@ class vf {
|
|
|
6386
6386
|
for (; e instanceof zo; )
|
|
6387
6387
|
t = e, e = t.children[t.children.length - 1];
|
|
6388
6388
|
(!e || // Empty textblock
|
|
6389
|
-
!(e instanceof Ys) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((
|
|
6389
|
+
!(e instanceof Ys) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Ge || Pe) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
|
|
6390
6390
|
}
|
|
6391
6391
|
addHackNode(e, t) {
|
|
6392
6392
|
if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
|
|
@@ -6578,10 +6578,10 @@ function Gt(o, e = !1) {
|
|
|
6578
6578
|
o.domObserver.setCurSelection(), o.domObserver.connectSelection();
|
|
6579
6579
|
}
|
|
6580
6580
|
}
|
|
6581
|
-
const ap =
|
|
6581
|
+
const ap = Ge || Pe && km < 63;
|
|
6582
6582
|
function sp(o, e) {
|
|
6583
6583
|
let { node: t, offset: n } = o.docView.domFromPos(e, 0), a = n < t.childNodes.length ? t.childNodes[n] : null, s = n ? t.childNodes[n - 1] : null;
|
|
6584
|
-
if (
|
|
6584
|
+
if (Ge && a && a.contentEditable == "false")
|
|
6585
6585
|
return yi(a);
|
|
6586
6586
|
if ((!a || a.contentEditable == "false") && (!s || s.contentEditable == "false")) {
|
|
6587
6587
|
if (a)
|
|
@@ -6591,7 +6591,7 @@ function sp(o, e) {
|
|
|
6591
6591
|
}
|
|
6592
6592
|
}
|
|
6593
6593
|
function yi(o) {
|
|
6594
|
-
return o.contentEditable = "true",
|
|
6594
|
+
return o.contentEditable = "true", Ge && o.draggable && (o.draggable = !1, o.wasDraggable = !0), o;
|
|
6595
6595
|
}
|
|
6596
6596
|
function ip(o) {
|
|
6597
6597
|
o.contentEditable = "false", o.wasDraggable && (o.draggable = !0, o.wasDraggable = null);
|
|
@@ -6645,7 +6645,7 @@ function Ef(o) {
|
|
|
6645
6645
|
}
|
|
6646
6646
|
function lr(o, e) {
|
|
6647
6647
|
let { $anchor: t, $head: n } = o.selection, a = e > 0 ? t.max(n) : t.min(n), s = a.parent.inlineContent ? a.depth ? o.doc.resolve(e > 0 ? a.after() : a.before()) : null : a;
|
|
6648
|
-
return s &&
|
|
6648
|
+
return s && ee.findFrom(s, e);
|
|
6649
6649
|
}
|
|
6650
6650
|
function to(o, e) {
|
|
6651
6651
|
return o.dispatch(o.state.tr.setSelection(e).scrollIntoView()), !0;
|
|
@@ -6663,7 +6663,7 @@ function pp(o, e, t) {
|
|
|
6663
6663
|
if (o.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
6664
6664
|
let a = lr(o.state, e);
|
|
6665
6665
|
return a && a instanceof U ? to(o, a) : !1;
|
|
6666
|
-
} else if (!(
|
|
6666
|
+
} else if (!(ht && t.indexOf("m") > -1)) {
|
|
6667
6667
|
let a = n.$head, s = a.textOffset ? null : e < 0 ? a.nodeBefore : a.nodeAfter, i;
|
|
6668
6668
|
if (!s || s.isText)
|
|
6669
6669
|
return !1;
|
|
@@ -6823,7 +6823,7 @@ function cp(o, e) {
|
|
|
6823
6823
|
}
|
|
6824
6824
|
function mp(o, e, t) {
|
|
6825
6825
|
let n = o.state.selection;
|
|
6826
|
-
if (n instanceof X && !n.empty || t.indexOf("s") > -1 ||
|
|
6826
|
+
if (n instanceof X && !n.empty || t.indexOf("s") > -1 || ht && t.indexOf("m") > -1)
|
|
6827
6827
|
return !1;
|
|
6828
6828
|
let { $from: a, $to: s } = n;
|
|
6829
6829
|
if (!a.parent.inlineContent || o.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
@@ -6832,7 +6832,7 @@ function mp(o, e, t) {
|
|
|
6832
6832
|
return to(o, i);
|
|
6833
6833
|
}
|
|
6834
6834
|
if (!a.parent.inlineContent) {
|
|
6835
|
-
let i = e < 0 ? a : s, r = n instanceof
|
|
6835
|
+
let i = e < 0 ? a : s, r = n instanceof vt ? ee.near(i, e) : ee.findFrom(i, e);
|
|
6836
6836
|
return r ? to(o, r) : !1;
|
|
6837
6837
|
}
|
|
6838
6838
|
return !1;
|
|
@@ -6858,7 +6858,7 @@ function up(o, e, t) {
|
|
|
6858
6858
|
o.domObserver.stop(), e.contentEditable = t, o.domObserver.start();
|
|
6859
6859
|
}
|
|
6860
6860
|
function Ff(o) {
|
|
6861
|
-
if (!
|
|
6861
|
+
if (!Ge || o.state.selection.$head.parentOffset > 0)
|
|
6862
6862
|
return !1;
|
|
6863
6863
|
let { focusNode: e, focusOffset: t } = o.domSelectionRange();
|
|
6864
6864
|
if (e && e.nodeType == 1 && t == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
|
|
@@ -6873,24 +6873,24 @@ function Of(o) {
|
|
|
6873
6873
|
}
|
|
6874
6874
|
function Af(o, e) {
|
|
6875
6875
|
let t = e.keyCode, n = Of(e);
|
|
6876
|
-
if (t == 8 ||
|
|
6876
|
+
if (t == 8 || ht && t == 72 && n == "c")
|
|
6877
6877
|
return dp(o, -1) || Yo(o, -1);
|
|
6878
|
-
if (t == 46 && !e.shiftKey ||
|
|
6878
|
+
if (t == 46 && !e.shiftKey || ht && t == 68 && n == "c")
|
|
6879
6879
|
return dp(o, 1) || Yo(o, 1);
|
|
6880
6880
|
if (t == 13 || t == 27)
|
|
6881
6881
|
return !0;
|
|
6882
|
-
if (t == 37 ||
|
|
6882
|
+
if (t == 37 || ht && t == 66 && n == "c") {
|
|
6883
6883
|
let a = t == 37 ? cp(o, o.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
6884
6884
|
return pp(o, a, n) || Yo(o, a);
|
|
6885
|
-
} else if (t == 39 ||
|
|
6885
|
+
} else if (t == 39 || ht && t == 70 && n == "c") {
|
|
6886
6886
|
let a = t == 39 ? cp(o, o.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
6887
6887
|
return pp(o, a, n) || Yo(o, a);
|
|
6888
6888
|
} else {
|
|
6889
|
-
if (t == 38 ||
|
|
6889
|
+
if (t == 38 || ht && t == 80 && n == "c")
|
|
6890
6890
|
return mp(o, -1, n) || Yo(o, -1);
|
|
6891
|
-
if (t == 40 ||
|
|
6891
|
+
if (t == 40 || ht && t == 78 && n == "c")
|
|
6892
6892
|
return Ff(o) || mp(o, 1, n) || Yo(o, 1);
|
|
6893
|
-
if (n == (
|
|
6893
|
+
if (n == (ht ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
|
|
6894
6894
|
return !0;
|
|
6895
6895
|
}
|
|
6896
6896
|
return !1;
|
|
@@ -7082,20 +7082,20 @@ function Pf(o, e) {
|
|
|
7082
7082
|
}
|
|
7083
7083
|
return new N(a, s, i);
|
|
7084
7084
|
}
|
|
7085
|
-
const
|
|
7085
|
+
const Je = {}, Ye = {}, zf = { touchstart: !0, touchmove: !0 };
|
|
7086
7086
|
class $f {
|
|
7087
7087
|
constructor() {
|
|
7088
7088
|
this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "" }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastAndroidDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
|
|
7089
7089
|
}
|
|
7090
7090
|
}
|
|
7091
7091
|
function Hf(o) {
|
|
7092
|
-
for (let e in
|
|
7093
|
-
let t =
|
|
7092
|
+
for (let e in Je) {
|
|
7093
|
+
let t = Je[e];
|
|
7094
7094
|
o.dom.addEventListener(e, o.input.eventHandlers[e] = (n) => {
|
|
7095
|
-
qf(o, n) && !Nr(o, n) && (o.editable || !(n.type in
|
|
7095
|
+
qf(o, n) && !Nr(o, n) && (o.editable || !(n.type in Ye)) && t(o, n);
|
|
7096
7096
|
}, zf[e] ? { passive: !0 } : void 0);
|
|
7097
7097
|
}
|
|
7098
|
-
|
|
7098
|
+
Ge && o.dom.addEventListener("input", () => null), mr(o);
|
|
7099
7099
|
}
|
|
7100
7100
|
function lo(o, e) {
|
|
7101
7101
|
o.input.lastSelectionOrigin = e, o.input.lastSelectionTime = Date.now();
|
|
@@ -7129,9 +7129,9 @@ function qf(o, e) {
|
|
|
7129
7129
|
return !0;
|
|
7130
7130
|
}
|
|
7131
7131
|
function Wf(o, e) {
|
|
7132
|
-
!Nr(o, e) &&
|
|
7132
|
+
!Nr(o, e) && Je[e.type] && (o.editable || !(e.type in Ye)) && Je[e.type](o, e);
|
|
7133
7133
|
}
|
|
7134
|
-
|
|
7134
|
+
Ye.keydown = (o, e) => {
|
|
7135
7135
|
let t = e;
|
|
7136
7136
|
if (o.input.shiftKey = t.keyCode == 16 || t.shiftKey, !qm(o, t) && (o.input.lastKeyCode = t.keyCode, o.input.lastKeyCodeTime = Date.now(), !(Dt && Pe && t.keyCode == 13)))
|
|
7137
7137
|
if (o.domObserver.selectionChanged(o.domSelectionRange()) ? o.domObserver.flush() : t.keyCode != 229 && o.domObserver.forceFlush(), gn && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
|
|
@@ -7141,12 +7141,12 @@ Je.keydown = (o, e) => {
|
|
|
7141
7141
|
}, 200);
|
|
7142
7142
|
} else o.someProp("handleKeyDown", (n) => n(o, t)) || Af(o, t) ? t.preventDefault() : lo(o, "key");
|
|
7143
7143
|
};
|
|
7144
|
-
|
|
7144
|
+
Ye.keyup = (o, e) => {
|
|
7145
7145
|
e.keyCode == 16 && (o.input.shiftKey = !1);
|
|
7146
7146
|
};
|
|
7147
|
-
|
|
7147
|
+
Ye.keypress = (o, e) => {
|
|
7148
7148
|
let t = e;
|
|
7149
|
-
if (qm(o, t) || !t.charCode || t.ctrlKey && !t.altKey ||
|
|
7149
|
+
if (qm(o, t) || !t.charCode || t.ctrlKey && !t.altKey || ht && t.metaKey)
|
|
7150
7150
|
return;
|
|
7151
7151
|
if (o.someProp("handleKeyPress", (a) => a(o, t))) {
|
|
7152
7152
|
t.preventDefault();
|
|
@@ -7231,8 +7231,8 @@ function Zf(o, e, t) {
|
|
|
7231
7231
|
function Rr(o) {
|
|
7232
7232
|
return ts(o);
|
|
7233
7233
|
}
|
|
7234
|
-
const Vm =
|
|
7235
|
-
|
|
7234
|
+
const Vm = ht ? "metaKey" : "ctrlKey";
|
|
7235
|
+
Je.mousedown = (o, e) => {
|
|
7236
7236
|
let t = e;
|
|
7237
7237
|
o.input.shiftKey = t.shiftKey;
|
|
7238
7238
|
let n = Rr(o), a = Date.now(), s = "singleClick";
|
|
@@ -7270,14 +7270,14 @@ class Qf {
|
|
|
7270
7270
|
return;
|
|
7271
7271
|
let t = this.pos;
|
|
7272
7272
|
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Xs(e))), this.updateAllowDefault(e), this.allowDefault || !t ? lo(this.view, "pointer") : Jf(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
7273
|
-
|
|
7273
|
+
Ge && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
7274
7274
|
// cursor, but still report that the node is selected
|
|
7275
7275
|
// when asked through getSelection. You'll then get a
|
|
7276
7276
|
// situation where clicking at the point where that
|
|
7277
7277
|
// (hidden) cursor is doesn't change the selection, and
|
|
7278
7278
|
// thus doesn't get a reaction from ProseMirror. This
|
|
7279
7279
|
// works around that.
|
|
7280
|
-
Pe && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (cn(this.view,
|
|
7280
|
+
Pe && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (cn(this.view, ee.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : lo(this.view, "pointer");
|
|
7281
7281
|
}
|
|
7282
7282
|
move(e) {
|
|
7283
7283
|
this.updateAllowDefault(e), lo(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -7286,18 +7286,18 @@ class Qf {
|
|
|
7286
7286
|
!this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
|
|
7287
7287
|
}
|
|
7288
7288
|
}
|
|
7289
|
-
|
|
7289
|
+
Je.touchstart = (o) => {
|
|
7290
7290
|
o.input.lastTouch = Date.now(), Rr(o), lo(o, "pointer");
|
|
7291
7291
|
};
|
|
7292
|
-
|
|
7292
|
+
Je.touchmove = (o) => {
|
|
7293
7293
|
o.input.lastTouch = Date.now(), lo(o, "pointer");
|
|
7294
7294
|
};
|
|
7295
|
-
|
|
7295
|
+
Je.contextmenu = (o) => Rr(o);
|
|
7296
7296
|
function qm(o, e) {
|
|
7297
|
-
return o.composing ? !0 :
|
|
7297
|
+
return o.composing ? !0 : Ge && Math.abs(e.timeStamp - o.input.compositionEndedAt) < 500 ? (o.input.compositionEndedAt = -2e8, !0) : !1;
|
|
7298
7298
|
}
|
|
7299
7299
|
const eh = Dt ? 5e3 : -1;
|
|
7300
|
-
|
|
7300
|
+
Ye.compositionstart = Ye.compositionupdate = (o) => {
|
|
7301
7301
|
if (!o.composing) {
|
|
7302
7302
|
o.domObserver.flush();
|
|
7303
7303
|
let { state: e } = o, t = e.selection.$to;
|
|
@@ -7321,7 +7321,7 @@ Je.compositionstart = Je.compositionupdate = (o) => {
|
|
|
7321
7321
|
}
|
|
7322
7322
|
Wm(o, eh);
|
|
7323
7323
|
};
|
|
7324
|
-
|
|
7324
|
+
Ye.compositionend = (o, e) => {
|
|
7325
7325
|
o.composing && (o.input.composing = !1, o.input.compositionEndedAt = e.timeStamp, o.input.compositionPendingChanges = o.domObserver.pendingRecords().length ? o.input.compositionID : 0, o.input.compositionNode = null, o.input.compositionPendingChanges && Promise.resolve().then(() => o.domObserver.flush()), o.input.compositionID++, Wm(o, 20));
|
|
7326
7326
|
};
|
|
7327
7327
|
function Wm(o, e) {
|
|
@@ -7374,7 +7374,7 @@ function nh(o, e) {
|
|
|
7374
7374
|
}, 50);
|
|
7375
7375
|
}
|
|
7376
7376
|
const Kn = Qe && go < 15 || gn && Zg < 604;
|
|
7377
|
-
|
|
7377
|
+
Je.copy = Ye.cut = (o, e) => {
|
|
7378
7378
|
let t = e, n = o.state.selection, a = t.type == "cut";
|
|
7379
7379
|
if (n.empty)
|
|
7380
7380
|
return;
|
|
@@ -7410,7 +7410,7 @@ function Km(o) {
|
|
|
7410
7410
|
let t = o.getData("text/uri-list");
|
|
7411
7411
|
return t ? t.replace(/\r?\n/g, " ") : "";
|
|
7412
7412
|
}
|
|
7413
|
-
|
|
7413
|
+
Ye.paste = (o, e) => {
|
|
7414
7414
|
let t = e;
|
|
7415
7415
|
if (o.composing && !Dt)
|
|
7416
7416
|
return;
|
|
@@ -7422,8 +7422,8 @@ class Gm {
|
|
|
7422
7422
|
this.slice = e, this.move = t, this.node = n;
|
|
7423
7423
|
}
|
|
7424
7424
|
}
|
|
7425
|
-
const Jm =
|
|
7426
|
-
|
|
7425
|
+
const Jm = ht ? "altKey" : "ctrlKey";
|
|
7426
|
+
Je.dragstart = (o, e) => {
|
|
7427
7427
|
let t = e, n = o.input.mouseDown;
|
|
7428
7428
|
if (n && n.done(), !t.dataTransfer)
|
|
7429
7429
|
return;
|
|
@@ -7439,14 +7439,14 @@ Ge.dragstart = (o, e) => {
|
|
|
7439
7439
|
let r = (i || o.state.selection).content(), { dom: l, text: p, slice: c } = Bm(o, r);
|
|
7440
7440
|
(!t.dataTransfer.files.length || !Pe || km > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Kn ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Kn || t.dataTransfer.setData("text/plain", p), o.dragging = new Gm(c, !t[Jm], i);
|
|
7441
7441
|
};
|
|
7442
|
-
|
|
7442
|
+
Je.dragend = (o) => {
|
|
7443
7443
|
let e = o.dragging;
|
|
7444
7444
|
window.setTimeout(() => {
|
|
7445
7445
|
o.dragging == e && (o.dragging = null);
|
|
7446
7446
|
}, 50);
|
|
7447
7447
|
};
|
|
7448
|
-
|
|
7449
|
-
|
|
7448
|
+
Ye.dragover = Ye.dragenter = (o, e) => e.preventDefault();
|
|
7449
|
+
Ye.drop = (o, e) => {
|
|
7450
7450
|
let t = e, n = o.dragging;
|
|
7451
7451
|
if (o.dragging = null, !t.dataTransfer)
|
|
7452
7452
|
return;
|
|
@@ -7484,16 +7484,16 @@ Je.drop = (o, e) => {
|
|
|
7484
7484
|
}
|
|
7485
7485
|
o.focus(), o.dispatch(p.setMeta("uiEvent", "drop"));
|
|
7486
7486
|
};
|
|
7487
|
-
|
|
7487
|
+
Je.focus = (o) => {
|
|
7488
7488
|
o.input.lastFocus = Date.now(), o.focused || (o.domObserver.stop(), o.dom.classList.add("ProseMirror-focused"), o.domObserver.start(), o.focused = !0, setTimeout(() => {
|
|
7489
7489
|
o.docView && o.hasFocus() && !o.domObserver.currentSelection.eq(o.domSelectionRange()) && Gt(o);
|
|
7490
7490
|
}, 20));
|
|
7491
7491
|
};
|
|
7492
|
-
|
|
7492
|
+
Je.blur = (o, e) => {
|
|
7493
7493
|
let t = e;
|
|
7494
7494
|
o.focused && (o.domObserver.stop(), o.dom.classList.remove("ProseMirror-focused"), o.domObserver.start(), t.relatedTarget && o.dom.contains(t.relatedTarget) && o.domObserver.currentSelection.clear(), o.focused = !1);
|
|
7495
7495
|
};
|
|
7496
|
-
|
|
7496
|
+
Je.beforeinput = (o, e) => {
|
|
7497
7497
|
if (Pe && Dt && e.inputType == "deleteContentBackward") {
|
|
7498
7498
|
o.domObserver.flushSoon();
|
|
7499
7499
|
let { domChangeCount: n } = o.input;
|
|
@@ -7505,8 +7505,8 @@ Ge.beforeinput = (o, e) => {
|
|
|
7505
7505
|
}, 50);
|
|
7506
7506
|
}
|
|
7507
7507
|
};
|
|
7508
|
-
for (let o in
|
|
7509
|
-
|
|
7508
|
+
for (let o in Ye)
|
|
7509
|
+
Je[o] = Ye[o];
|
|
7510
7510
|
function Jn(o, e) {
|
|
7511
7511
|
if (o == e)
|
|
7512
7512
|
return !0;
|
|
@@ -7524,7 +7524,7 @@ class ns {
|
|
|
7524
7524
|
}
|
|
7525
7525
|
map(e, t, n, a) {
|
|
7526
7526
|
let { pos: s, deleted: i } = e.mapResult(t.from + a, this.side < 0 ? -1 : 1);
|
|
7527
|
-
return i ? null : new
|
|
7527
|
+
return i ? null : new Ke(s - n, s - n, this);
|
|
7528
7528
|
}
|
|
7529
7529
|
valid() {
|
|
7530
7530
|
return !0;
|
|
@@ -7542,7 +7542,7 @@ class ho {
|
|
|
7542
7542
|
}
|
|
7543
7543
|
map(e, t, n, a) {
|
|
7544
7544
|
let s = e.map(t.from + a, this.spec.inclusiveStart ? -1 : 1) - n, i = e.map(t.to + a, this.spec.inclusiveEnd ? 1 : -1) - n;
|
|
7545
|
-
return s >= i ? null : new
|
|
7545
|
+
return s >= i ? null : new Ke(s, i, this);
|
|
7546
7546
|
}
|
|
7547
7547
|
valid(e, t) {
|
|
7548
7548
|
return t.from < t.to;
|
|
@@ -7565,7 +7565,7 @@ class Lr {
|
|
|
7565
7565
|
if (s.deleted)
|
|
7566
7566
|
return null;
|
|
7567
7567
|
let i = e.mapResult(t.to + a, -1);
|
|
7568
|
-
return i.deleted || i.pos <= s.pos ? null : new
|
|
7568
|
+
return i.deleted || i.pos <= s.pos ? null : new Ke(s.pos - n, i.pos - n, this);
|
|
7569
7569
|
}
|
|
7570
7570
|
valid(e, t) {
|
|
7571
7571
|
let { index: n, offset: a } = e.content.findIndex(t.from), s;
|
|
@@ -7577,7 +7577,7 @@ class Lr {
|
|
|
7577
7577
|
destroy() {
|
|
7578
7578
|
}
|
|
7579
7579
|
}
|
|
7580
|
-
class
|
|
7580
|
+
class Ke {
|
|
7581
7581
|
/**
|
|
7582
7582
|
@internal
|
|
7583
7583
|
*/
|
|
@@ -7588,7 +7588,7 @@ class Ue {
|
|
|
7588
7588
|
@internal
|
|
7589
7589
|
*/
|
|
7590
7590
|
copy(e, t) {
|
|
7591
|
-
return new
|
|
7591
|
+
return new Ke(e, t, this.type);
|
|
7592
7592
|
}
|
|
7593
7593
|
/**
|
|
7594
7594
|
@internal
|
|
@@ -7611,14 +7611,14 @@ class Ue {
|
|
|
7611
7611
|
widget's current document position.
|
|
7612
7612
|
*/
|
|
7613
7613
|
static widget(e, t, n) {
|
|
7614
|
-
return new
|
|
7614
|
+
return new Ke(e, e, new ns(t, n));
|
|
7615
7615
|
}
|
|
7616
7616
|
/**
|
|
7617
7617
|
Creates an inline decoration, which adds the given attributes to
|
|
7618
7618
|
each inline node between `from` and `to`.
|
|
7619
7619
|
*/
|
|
7620
7620
|
static inline(e, t, n, a) {
|
|
7621
|
-
return new
|
|
7621
|
+
return new Ke(e, t, new ho(n, a));
|
|
7622
7622
|
}
|
|
7623
7623
|
/**
|
|
7624
7624
|
Creates a node decoration. `from` and `to` should point precisely
|
|
@@ -7626,7 +7626,7 @@ class Ue {
|
|
|
7626
7626
|
node, will receive the given attributes.
|
|
7627
7627
|
*/
|
|
7628
7628
|
static node(e, t, n, a) {
|
|
7629
|
-
return new
|
|
7629
|
+
return new Ke(e, t, new Lr(n, a));
|
|
7630
7630
|
}
|
|
7631
7631
|
/**
|
|
7632
7632
|
The spec provided when creating this decoration. Can be useful
|
|
@@ -7936,7 +7936,7 @@ function Ym(o, e) {
|
|
|
7936
7936
|
let t = [];
|
|
7937
7937
|
for (let n = 0; n < o.length; n++) {
|
|
7938
7938
|
let a = o[n];
|
|
7939
|
-
t.push(new
|
|
7939
|
+
t.push(new Ke(a.from + e, a.to + e, a.type));
|
|
7940
7940
|
}
|
|
7941
7941
|
return t;
|
|
7942
7942
|
}
|
|
@@ -8147,7 +8147,7 @@ class mh {
|
|
|
8147
8147
|
}
|
|
8148
8148
|
}
|
|
8149
8149
|
let p = null;
|
|
8150
|
-
s < 0 && a && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Js(n) && (p = Ar(e)) && p.eq(
|
|
8150
|
+
s < 0 && a && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Js(n) && (p = Ar(e)) && p.eq(ee.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Gt(e), this.currentSelection.set(n), e.scrollToSelection()) : (s > -1 || a) && (s > -1 && (e.docView.markDirty(s, i), dh(e)), this.handleDOMChange(s, i, r, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(n) || Gt(e), this.currentSelection.set(n));
|
|
8151
8151
|
}
|
|
8152
8152
|
registerMutation(e, t) {
|
|
8153
8153
|
if (t.indexOf(e.target) > -1)
|
|
@@ -8248,10 +8248,10 @@ function hh(o) {
|
|
|
8248
8248
|
if (e)
|
|
8249
8249
|
return e.parseRule();
|
|
8250
8250
|
if (o.nodeName == "BR" && o.parentNode) {
|
|
8251
|
-
if (
|
|
8251
|
+
if (Ge && /^(ul|ol)$/i.test(o.parentNode.nodeName)) {
|
|
8252
8252
|
let t = document.createElement("div");
|
|
8253
8253
|
return t.appendChild(document.createElement("li")), { skip: t };
|
|
8254
|
-
} else if (o.parentNode.lastChild == o ||
|
|
8254
|
+
} else if (o.parentNode.lastChild == o || Ge && /^(tr|table)$/i.test(o.parentNode.nodeName))
|
|
8255
8255
|
return { ignore: !0 };
|
|
8256
8256
|
} else if (o.nodeName == "IMG" && o.getAttribute("mark-placeholder"))
|
|
8257
8257
|
return { ignore: !0 };
|
|
@@ -8263,7 +8263,7 @@ function vh(o, e, t, n, a) {
|
|
|
8263
8263
|
if (o.input.compositionPendingChanges = 0, e < 0) {
|
|
8264
8264
|
let E = o.input.lastSelectionTime > Date.now() - 50 ? o.input.lastSelectionOrigin : null, q = Ar(o, E);
|
|
8265
8265
|
if (q && !o.state.selection.eq(q)) {
|
|
8266
|
-
if (Pe && Dt && o.input.lastKeyCode === 13 && Date.now() - 100 < o.input.lastKeyCodeTime && o.someProp("handleKeyDown", (
|
|
8266
|
+
if (Pe && Dt && o.input.lastKeyCode === 13 && Date.now() - 100 < o.input.lastKeyCodeTime && o.someProp("handleKeyDown", (ie) => ie(o, wo(13, "Enter"))))
|
|
8267
8267
|
return;
|
|
8268
8268
|
let Q = o.state.tr.setSelection(q);
|
|
8269
8269
|
E == "pointer" ? Q.setMeta("pointer", !0) : E == "key" && Q.scrollIntoView(), s && Q.setMeta("composition", s), o.dispatch(Q);
|
|
@@ -8294,7 +8294,7 @@ function vh(o, e, t, n, a) {
|
|
|
8294
8294
|
}
|
|
8295
8295
|
o.state.selection.from < o.state.selection.to && g.start == g.endB && o.state.selection instanceof X && (g.start > o.state.selection.from && g.start <= o.state.selection.from + 2 && o.state.selection.from >= p.from ? g.start = o.state.selection.from : g.endA < o.state.selection.to && g.endA >= o.state.selection.to - 2 && o.state.selection.to <= p.to && (g.endB += o.state.selection.to - g.endA, g.endA = o.state.selection.to)), Qe && go <= 11 && g.endB == g.start + 1 && g.endA == g.start && g.start > p.from && p.doc.textBetween(g.start - p.from - 1, g.start - p.from + 1) == " " && (g.start--, g.endA--, g.endB--);
|
|
8296
8296
|
let f = p.doc.resolveNoCache(g.start - p.from), h = p.doc.resolveNoCache(g.endB - p.from), j = c.resolve(g.start), w = f.sameParent(h) && f.parent.inlineContent && j.end() >= g.endA, S;
|
|
8297
|
-
if ((gn && o.input.lastIOSEnter > Date.now() - 225 && (!w || a.some((E) => E.nodeName == "DIV" || E.nodeName == "P")) || !w && f.pos < p.doc.content.size && !f.sameParent(h) && (S =
|
|
8297
|
+
if ((gn && o.input.lastIOSEnter > Date.now() - 225 && (!w || a.some((E) => E.nodeName == "DIV" || E.nodeName == "P")) || !w && f.pos < p.doc.content.size && !f.sameParent(h) && (S = ee.findFrom(p.doc.resolve(f.pos + 1), 1, !0)) && S.head == h.pos) && o.someProp("handleKeyDown", (E) => E(o, wo(13, "Enter")))) {
|
|
8298
8298
|
o.input.lastIOSEnter = 0;
|
|
8299
8299
|
return;
|
|
8300
8300
|
}
|
|
@@ -8725,7 +8725,7 @@ class _h {
|
|
|
8725
8725
|
*/
|
|
8726
8726
|
domSelectionRange() {
|
|
8727
8727
|
let e = this.domSelection();
|
|
8728
|
-
return e ?
|
|
8728
|
+
return e ? Ge && this.root.nodeType === 11 && Jg(this.dom.ownerDocument) == this.dom && uh(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
|
|
8729
8729
|
}
|
|
8730
8730
|
/**
|
|
8731
8731
|
@internal
|
|
@@ -8740,12 +8740,12 @@ function _p(o) {
|
|
|
8740
8740
|
if (typeof t == "function" && (t = t(o.state)), t)
|
|
8741
8741
|
for (let n in t)
|
|
8742
8742
|
n == "class" ? e.class += " " + t[n] : n == "style" ? e.style = (e.style ? e.style + ";" : "") + t[n] : !e[n] && n != "contenteditable" && n != "nodeName" && (e[n] = String(t[n]));
|
|
8743
|
-
}), e.translate || (e.translate = "no"), [
|
|
8743
|
+
}), e.translate || (e.translate = "no"), [Ke.node(0, o.state.doc.content.size, e)];
|
|
8744
8744
|
}
|
|
8745
8745
|
function Dp(o) {
|
|
8746
8746
|
if (o.markCursor) {
|
|
8747
8747
|
let e = document.createElement("img");
|
|
8748
|
-
e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), o.cursorWrapper = { dom: e, deco:
|
|
8748
|
+
e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), o.cursorWrapper = { dom: e, deco: Ke.widget(o.state.selection.from, e, { raw: !0, marks: o.markCursor }) };
|
|
8749
8749
|
} else
|
|
8750
8750
|
o.cursorWrapper = null;
|
|
8751
8751
|
}
|
|
@@ -8945,7 +8945,7 @@ const td = (o, e, t) => {
|
|
|
8945
8945
|
if (r && r.slice.size < r.to - r.from) {
|
|
8946
8946
|
if (e) {
|
|
8947
8947
|
let l = o.tr.step(r);
|
|
8948
|
-
l.setSelection(fn(s, "end") ?
|
|
8948
|
+
l.setSelection(fn(s, "end") ? ee.findFrom(l.doc.resolve(l.mapping.map(a.pos, -1)), -1) : U.create(l.doc, a.pos - s.nodeSize)), e(l.scrollIntoView());
|
|
8949
8949
|
}
|
|
8950
8950
|
return !0;
|
|
8951
8951
|
}
|
|
@@ -8986,7 +8986,7 @@ function od(o, e, t) {
|
|
|
8986
8986
|
r = c;
|
|
8987
8987
|
}
|
|
8988
8988
|
let p = Ks(o.doc, s, l, N.empty);
|
|
8989
|
-
if (!p || p.from != s || p instanceof
|
|
8989
|
+
if (!p || p.from != s || p instanceof xe && p.slice.size >= l - s)
|
|
8990
8990
|
return !1;
|
|
8991
8991
|
if (t) {
|
|
8992
8992
|
let c = o.tr.step(p);
|
|
@@ -9044,7 +9044,7 @@ const sd = (o, e, t) => {
|
|
|
9044
9044
|
if (i && i.slice.size < i.to - i.from) {
|
|
9045
9045
|
if (e) {
|
|
9046
9046
|
let r = o.tr.step(i);
|
|
9047
|
-
r.setSelection(fn(s, "start") ?
|
|
9047
|
+
r.setSelection(fn(s, "start") ? ee.findFrom(r.doc.resolve(r.mapping.map(a.pos)), 1) : U.create(r.doc, r.mapping.map(a.pos))), e(r.scrollIntoView());
|
|
9048
9048
|
}
|
|
9049
9049
|
return !0;
|
|
9050
9050
|
}
|
|
@@ -9120,12 +9120,12 @@ const Rh = (o, e) => {
|
|
|
9120
9120
|
return !1;
|
|
9121
9121
|
if (e) {
|
|
9122
9122
|
let r = t.after(), l = o.tr.replaceWith(r, r, i.createAndFill());
|
|
9123
|
-
l.setSelection(
|
|
9123
|
+
l.setSelection(ee.near(l.doc.resolve(r), 1)), e(l.scrollIntoView());
|
|
9124
9124
|
}
|
|
9125
9125
|
return !0;
|
|
9126
9126
|
}, ld = (o, e) => {
|
|
9127
9127
|
let t = o.selection, { $from: n, $to: a } = t;
|
|
9128
|
-
if (t instanceof
|
|
9128
|
+
if (t instanceof vt || n.parent.inlineContent || a.parent.inlineContent)
|
|
9129
9129
|
return !1;
|
|
9130
9130
|
let s = Vr(a.parent.contentMatchAt(a.indexAfter()));
|
|
9131
9131
|
if (!s || !s.isTextblock)
|
|
@@ -9156,7 +9156,7 @@ function Lh(o) {
|
|
|
9156
9156
|
return !1;
|
|
9157
9157
|
if (t) {
|
|
9158
9158
|
let s = a.parentOffset == a.parent.content.size, i = e.tr;
|
|
9159
|
-
(e.selection instanceof X || e.selection instanceof
|
|
9159
|
+
(e.selection instanceof X || e.selection instanceof vt) && i.deleteSelection();
|
|
9160
9160
|
let r = n.depth == 0 ? null : Vr(n.node(-1).contentMatchAt(n.indexAfter(-1))), l = s && r ? [{ type: r }] : void 0, p = Kt(i.doc, i.mapping.map(n.pos), 1, l);
|
|
9161
9161
|
if (!l && !p && Kt(i.doc, i.mapping.map(n.pos), 1, r ? [{ type: r }] : void 0) && (r && (l = [{ type: r }]), p = !0), p && (i.split(i.mapping.map(n.pos), 1, l), !s && !n.parentOffset && n.parent.type != r)) {
|
|
9162
9162
|
let c = i.mapping.map(n.before()), m = i.doc.resolve(c);
|
|
@@ -9186,12 +9186,12 @@ function cd(o, e, t, n) {
|
|
|
9186
9186
|
for (let j = i.length - 1; j >= 0; j--)
|
|
9187
9187
|
g = C.from(i[j].create(null, g));
|
|
9188
9188
|
g = C.from(a.copy(g));
|
|
9189
|
-
let f = o.tr.step(new
|
|
9189
|
+
let f = o.tr.step(new Se(e.pos - 1, u, e.pos, u, new N(g, 1, 0), i.length, !0)), h = u + 2 * i.length;
|
|
9190
9190
|
vo(f.doc, h) && f.join(h), t(f.scrollIntoView());
|
|
9191
9191
|
}
|
|
9192
9192
|
return !0;
|
|
9193
9193
|
}
|
|
9194
|
-
let c = s.type.spec.isolating || n > 0 && l ? null :
|
|
9194
|
+
let c = s.type.spec.isolating || n > 0 && l ? null : ee.findFrom(e, 1), m = c && c.$from.blockRange(c.$to), d = m && In(m);
|
|
9195
9195
|
if (d != null && d >= e.depth)
|
|
9196
9196
|
return t && t(o.tr.lift(m, d).scrollIntoView()), !0;
|
|
9197
9197
|
if (p && fn(s, "start", !0) && fn(a, "end")) {
|
|
@@ -9206,7 +9206,7 @@ function cd(o, e, t, n) {
|
|
|
9206
9206
|
let j = C.empty;
|
|
9207
9207
|
for (let S = g.length - 1; S >= 0; S--)
|
|
9208
9208
|
j = C.from(g[S].copy(j));
|
|
9209
|
-
let w = o.tr.step(new
|
|
9209
|
+
let w = o.tr.step(new Se(e.pos - g.length, e.pos + s.nodeSize, e.pos + h, e.pos + s.nodeSize - h, new N(j, g.length, 0), 0, !0));
|
|
9210
9210
|
t(w.scrollIntoView());
|
|
9211
9211
|
}
|
|
9212
9212
|
return !0;
|
|
@@ -9293,7 +9293,7 @@ function Uh(o, e, t, n, a) {
|
|
|
9293
9293
|
let s = C.empty;
|
|
9294
9294
|
for (let c = t.length - 1; c >= 0; c--)
|
|
9295
9295
|
s = C.from(t[c].type.create(t[c].attrs, s));
|
|
9296
|
-
o.step(new
|
|
9296
|
+
o.step(new Se(e.start - (n ? 2 : 0), e.end, e.start, e.end, new N(s, 0, 0), t.length, !0));
|
|
9297
9297
|
let i = 0;
|
|
9298
9298
|
for (let c = 0; c < t.length; c++)
|
|
9299
9299
|
t[c].type == a && (i = c + 1);
|
|
@@ -9310,7 +9310,7 @@ function Kh(o) {
|
|
|
9310
9310
|
}
|
|
9311
9311
|
function Gh(o, e, t, n) {
|
|
9312
9312
|
let a = o.tr, s = n.end, i = n.$to.end(n.depth);
|
|
9313
|
-
s < i && (a.step(new
|
|
9313
|
+
s < i && (a.step(new Se(s - 1, i, s, i, new N(C.from(t.create(null, n.parent.copy())), 1, 0), 1, !0)), n = new Ja(a.doc.resolve(n.$from.pos), a.doc.resolve(i), n.depth));
|
|
9314
9314
|
const r = In(n);
|
|
9315
9315
|
if (r == null)
|
|
9316
9316
|
return !1;
|
|
@@ -9329,7 +9329,7 @@ function Jh(o, e, t) {
|
|
|
9329
9329
|
if (!p.canReplace(c + (r ? 0 : 1), c + 1, i.content.append(l ? C.empty : C.from(a))))
|
|
9330
9330
|
return !1;
|
|
9331
9331
|
let m = s.pos, d = m + i.nodeSize;
|
|
9332
|
-
return n.step(new
|
|
9332
|
+
return n.step(new Se(m - (r ? 1 : 0), d + (l ? 1 : 0), m + 1, d - 1, new N((r ? C.empty : C.from(a.copy(C.empty))).append(l ? C.empty : C.from(a.copy(C.empty))), r ? 0 : 1, l ? 0 : 1), r ? 0 : 1)), e(n.scrollIntoView()), !0;
|
|
9333
9333
|
}
|
|
9334
9334
|
function Yh(o) {
|
|
9335
9335
|
return function(e, t) {
|
|
@@ -9344,7 +9344,7 @@ function Yh(o) {
|
|
|
9344
9344
|
return !1;
|
|
9345
9345
|
if (t) {
|
|
9346
9346
|
let p = l.lastChild && l.lastChild.type == r.type, c = C.from(p ? o.create() : null), m = new N(C.from(o.create(null, C.from(r.type.create(null, c)))), p ? 3 : 1, 0), d = s.start, u = s.end;
|
|
9347
|
-
t(e.tr.step(new
|
|
9347
|
+
t(e.tr.step(new Se(d - (p ? 3 : 1), u, d, u, m, 1, !0)).scrollIntoView());
|
|
9348
9348
|
}
|
|
9349
9349
|
return !0;
|
|
9350
9350
|
};
|
|
@@ -9527,7 +9527,7 @@ function dd(o) {
|
|
|
9527
9527
|
});
|
|
9528
9528
|
}), e;
|
|
9529
9529
|
}
|
|
9530
|
-
function
|
|
9530
|
+
function Fe(o, e) {
|
|
9531
9531
|
if (typeof o == "string") {
|
|
9532
9532
|
if (!e.nodes[o])
|
|
9533
9533
|
throw Error(`There is no node type named '${o}'. Maybe you forgot to add the extension?`);
|
|
@@ -9568,7 +9568,7 @@ function dr(o, e) {
|
|
|
9568
9568
|
function ud(o) {
|
|
9569
9569
|
return typeof o == "function";
|
|
9570
9570
|
}
|
|
9571
|
-
function
|
|
9571
|
+
function ne(o, e = void 0, ...t) {
|
|
9572
9572
|
return ud(o) ? e ? o.bind(e)(...t) : o(...t) : o;
|
|
9573
9573
|
}
|
|
9574
9574
|
function Zh(o = {}) {
|
|
@@ -9617,23 +9617,23 @@ function eb(o, e) {
|
|
|
9617
9617
|
};
|
|
9618
9618
|
}, {}), u = Sp({
|
|
9619
9619
|
...d,
|
|
9620
|
-
content:
|
|
9621
|
-
marks:
|
|
9622
|
-
group:
|
|
9623
|
-
inline:
|
|
9624
|
-
atom:
|
|
9625
|
-
selectable:
|
|
9626
|
-
draggable:
|
|
9627
|
-
code:
|
|
9628
|
-
whitespace:
|
|
9629
|
-
linebreakReplacement:
|
|
9630
|
-
defining:
|
|
9631
|
-
isolating:
|
|
9620
|
+
content: ne(L(p, "content", m)),
|
|
9621
|
+
marks: ne(L(p, "marks", m)),
|
|
9622
|
+
group: ne(L(p, "group", m)),
|
|
9623
|
+
inline: ne(L(p, "inline", m)),
|
|
9624
|
+
atom: ne(L(p, "atom", m)),
|
|
9625
|
+
selectable: ne(L(p, "selectable", m)),
|
|
9626
|
+
draggable: ne(L(p, "draggable", m)),
|
|
9627
|
+
code: ne(L(p, "code", m)),
|
|
9628
|
+
whitespace: ne(L(p, "whitespace", m)),
|
|
9629
|
+
linebreakReplacement: ne(L(p, "linebreakReplacement", m)),
|
|
9630
|
+
defining: ne(L(p, "defining", m)),
|
|
9631
|
+
isolating: ne(L(p, "isolating", m)),
|
|
9632
9632
|
attrs: Object.fromEntries(c.map((j) => {
|
|
9633
9633
|
var w;
|
|
9634
9634
|
return [j.name, { default: (w = j == null ? void 0 : j.attribute) === null || w === void 0 ? void 0 : w.default }];
|
|
9635
9635
|
}))
|
|
9636
|
-
}), g =
|
|
9636
|
+
}), g = ne(L(p, "parseHTML", m));
|
|
9637
9637
|
g && (u.parseDOM = g.map((j) => xp(j, c)));
|
|
9638
9638
|
const f = L(p, "renderHTML", m);
|
|
9639
9639
|
f && (u.toDOM = (j) => f({
|
|
@@ -9656,16 +9656,16 @@ function eb(o, e) {
|
|
|
9656
9656
|
};
|
|
9657
9657
|
}, {}), u = Sp({
|
|
9658
9658
|
...d,
|
|
9659
|
-
inclusive:
|
|
9660
|
-
excludes:
|
|
9661
|
-
group:
|
|
9662
|
-
spanning:
|
|
9663
|
-
code:
|
|
9659
|
+
inclusive: ne(L(p, "inclusive", m)),
|
|
9660
|
+
excludes: ne(L(p, "excludes", m)),
|
|
9661
|
+
group: ne(L(p, "group", m)),
|
|
9662
|
+
spanning: ne(L(p, "spanning", m)),
|
|
9663
|
+
code: ne(L(p, "code", m)),
|
|
9664
9664
|
attrs: Object.fromEntries(c.map((h) => {
|
|
9665
9665
|
var j;
|
|
9666
9666
|
return [h.name, { default: (j = h == null ? void 0 : h.attribute) === null || j === void 0 ? void 0 : j.default }];
|
|
9667
9667
|
}))
|
|
9668
|
-
}), g =
|
|
9668
|
+
}), g = ne(L(p, "parseHTML", m));
|
|
9669
9669
|
g && (u.parseDOM = g.map((h) => xp(h, c)));
|
|
9670
9670
|
const f = L(p, "renderHTML", m);
|
|
9671
9671
|
return f && (u.toDOM = (h) => f({
|
|
@@ -9856,9 +9856,9 @@ class Rt {
|
|
|
9856
9856
|
}, this.config = {
|
|
9857
9857
|
...this.config,
|
|
9858
9858
|
...e
|
|
9859
|
-
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
9859
|
+
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = ne(L(this, "addOptions", {
|
|
9860
9860
|
name: this.name
|
|
9861
|
-
}))), this.storage =
|
|
9861
|
+
}))), this.storage = ne(L(this, "addStorage", {
|
|
9862
9862
|
name: this.name,
|
|
9863
9863
|
options: this.options
|
|
9864
9864
|
})) || {};
|
|
@@ -9875,9 +9875,9 @@ class Rt {
|
|
|
9875
9875
|
}
|
|
9876
9876
|
extend(e = {}) {
|
|
9877
9877
|
const t = new Rt(e);
|
|
9878
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options =
|
|
9878
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = ne(L(t, "addOptions", {
|
|
9879
9879
|
name: t.name
|
|
9880
|
-
})), t.storage =
|
|
9880
|
+
})), t.storage = ne(L(t, "addStorage", {
|
|
9881
9881
|
name: t.name,
|
|
9882
9882
|
options: t.options
|
|
9883
9883
|
})), t;
|
|
@@ -10153,7 +10153,7 @@ class rn {
|
|
|
10153
10153
|
options: n.options,
|
|
10154
10154
|
storage: n.storage,
|
|
10155
10155
|
editor: e,
|
|
10156
|
-
type:
|
|
10156
|
+
type: Fe(n.name, this.schema)
|
|
10157
10157
|
}, i = L(n, "addNodeView", s);
|
|
10158
10158
|
if (!i)
|
|
10159
10159
|
return [];
|
|
@@ -10190,13 +10190,13 @@ class rn {
|
|
|
10190
10190
|
editor: this.editor,
|
|
10191
10191
|
type: Ei(e.name, this.schema)
|
|
10192
10192
|
};
|
|
10193
|
-
e.type === "mark" && (!((t =
|
|
10193
|
+
e.type === "mark" && (!((t = ne(L(e, "keepOnSplit", n))) !== null && t !== void 0) || t) && this.splittableMarks.push(e.name);
|
|
10194
10194
|
const a = L(e, "onBeforeCreate", n), s = L(e, "onCreate", n), i = L(e, "onUpdate", n), r = L(e, "onSelectionUpdate", n), l = L(e, "onTransaction", n), p = L(e, "onFocus", n), c = L(e, "onBlur", n), m = L(e, "onDestroy", n);
|
|
10195
10195
|
a && this.editor.on("beforeCreate", a), s && this.editor.on("create", s), i && this.editor.on("update", i), r && this.editor.on("selectionUpdate", r), l && this.editor.on("transaction", l), p && this.editor.on("focus", p), c && this.editor.on("blur", c), m && this.editor.on("destroy", m);
|
|
10196
10196
|
});
|
|
10197
10197
|
}
|
|
10198
10198
|
}
|
|
10199
|
-
class
|
|
10199
|
+
class Oe {
|
|
10200
10200
|
constructor(e = {}) {
|
|
10201
10201
|
this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
|
|
10202
10202
|
name: this.name,
|
|
@@ -10204,15 +10204,15 @@ class Fe {
|
|
|
10204
10204
|
}, this.config = {
|
|
10205
10205
|
...this.config,
|
|
10206
10206
|
...e
|
|
10207
|
-
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
10207
|
+
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = ne(L(this, "addOptions", {
|
|
10208
10208
|
name: this.name
|
|
10209
|
-
}))), this.storage =
|
|
10209
|
+
}))), this.storage = ne(L(this, "addStorage", {
|
|
10210
10210
|
name: this.name,
|
|
10211
10211
|
options: this.options
|
|
10212
10212
|
})) || {};
|
|
10213
10213
|
}
|
|
10214
10214
|
static create(e = {}) {
|
|
10215
|
-
return new
|
|
10215
|
+
return new Oe(e);
|
|
10216
10216
|
}
|
|
10217
10217
|
configure(e = {}) {
|
|
10218
10218
|
const t = this.extend({
|
|
@@ -10222,10 +10222,10 @@ class Fe {
|
|
|
10222
10222
|
return t.name = this.name, t.parent = this.parent, t;
|
|
10223
10223
|
}
|
|
10224
10224
|
extend(e = {}) {
|
|
10225
|
-
const t = new
|
|
10226
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options =
|
|
10225
|
+
const t = new Oe({ ...this.config, ...e });
|
|
10226
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = ne(L(t, "addOptions", {
|
|
10227
10227
|
name: t.name
|
|
10228
|
-
})), t.storage =
|
|
10228
|
+
})), t.storage = ne(L(t, "addStorage", {
|
|
10229
10229
|
name: t.name,
|
|
10230
10230
|
options: t.options
|
|
10231
10231
|
})), t;
|
|
@@ -10254,7 +10254,7 @@ function fd(o, e, t) {
|
|
|
10254
10254
|
function hd(o) {
|
|
10255
10255
|
return Object.fromEntries(Object.entries(o.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText]));
|
|
10256
10256
|
}
|
|
10257
|
-
const mb =
|
|
10257
|
+
const mb = Oe.create({
|
|
10258
10258
|
name: "clipboardTextSerializer",
|
|
10259
10259
|
addOptions() {
|
|
10260
10260
|
return {
|
|
@@ -10317,7 +10317,7 @@ const mb = Fe.create({
|
|
|
10317
10317
|
}
|
|
10318
10318
|
return !1;
|
|
10319
10319
|
}, jb = (o) => ({ tr: e, state: t, dispatch: n }) => {
|
|
10320
|
-
const a =
|
|
10320
|
+
const a = Fe(o, t.schema), s = e.selection.$anchor;
|
|
10321
10321
|
for (let i = s.depth; i > 0; i -= 1)
|
|
10322
10322
|
if (s.node(i).type === a) {
|
|
10323
10323
|
if (n) {
|
|
@@ -10396,7 +10396,7 @@ function Ut(o = 0, e = 0, t = 0) {
|
|
|
10396
10396
|
function vd(o, e = null) {
|
|
10397
10397
|
if (!e)
|
|
10398
10398
|
return null;
|
|
10399
|
-
const t =
|
|
10399
|
+
const t = ee.atStart(o), n = ee.atEnd(o);
|
|
10400
10400
|
if (e === "start" || e === !0)
|
|
10401
10401
|
return t;
|
|
10402
10402
|
if (e === "end")
|
|
@@ -10496,13 +10496,13 @@ function Sb(o, e, t) {
|
|
|
10496
10496
|
if (n < e)
|
|
10497
10497
|
return;
|
|
10498
10498
|
const a = o.steps[n];
|
|
10499
|
-
if (!(a instanceof
|
|
10499
|
+
if (!(a instanceof xe || a instanceof Se))
|
|
10500
10500
|
return;
|
|
10501
10501
|
const s = o.mapping.maps[n];
|
|
10502
10502
|
let i = 0;
|
|
10503
10503
|
s.forEach((r, l, p, c) => {
|
|
10504
10504
|
i === 0 && (i = c);
|
|
10505
|
-
}), o.setSelection(
|
|
10505
|
+
}), o.setSelection(ee.near(o.doc.resolve(i), t));
|
|
10506
10506
|
}
|
|
10507
10507
|
const Mb = (o) => !("type" in o), Fb = (o, e, t) => ({ tr: n, dispatch: a, editor: s }) => {
|
|
10508
10508
|
var i;
|
|
@@ -10613,7 +10613,7 @@ const $b = (o) => ({ editor: e, view: t, tr: n, dispatch: a }) => {
|
|
|
10613
10613
|
}), !0;
|
|
10614
10614
|
};
|
|
10615
10615
|
function Yn(o, e, t = {}) {
|
|
10616
|
-
const { from: n, to: a, empty: s } = o.selection, i = e ?
|
|
10616
|
+
const { from: n, to: a, empty: s } = o.selection, i = e ? Fe(e, o.schema) : null, r = [];
|
|
10617
10617
|
o.doc.nodesBetween(n, a, (m, d) => {
|
|
10618
10618
|
if (m.isText)
|
|
10619
10619
|
return;
|
|
@@ -10628,10 +10628,10 @@ function Yn(o, e, t = {}) {
|
|
|
10628
10628
|
return s ? !!p.length : p.reduce((m, d) => m + d.to - d.from, 0) >= l;
|
|
10629
10629
|
}
|
|
10630
10630
|
const Hb = (o, e = {}) => ({ state: t, dispatch: n }) => {
|
|
10631
|
-
const a =
|
|
10631
|
+
const a = Fe(o, t.schema);
|
|
10632
10632
|
return Yn(t, a, e) ? Bh(t, n) : !1;
|
|
10633
10633
|
}, Vb = () => ({ state: o, dispatch: e }) => pd(o, e), qb = (o) => ({ state: e, dispatch: t }) => {
|
|
10634
|
-
const n =
|
|
10634
|
+
const n = Fe(o, e.schema);
|
|
10635
10635
|
return Kh(n)(e, t);
|
|
10636
10636
|
}, Wb = () => ({ state: o, dispatch: e }) => rd(o, e);
|
|
10637
10637
|
function ni(o, e) {
|
|
@@ -10644,7 +10644,7 @@ function Op(o, e) {
|
|
|
10644
10644
|
const Ub = (o, e) => ({ tr: t, state: n, dispatch: a }) => {
|
|
10645
10645
|
let s = null, i = null;
|
|
10646
10646
|
const r = ni(typeof o == "string" ? o : o.name, n.schema);
|
|
10647
|
-
return r ? (r === "node" && (s =
|
|
10647
|
+
return r ? (r === "node" && (s = Fe(o, n.schema)), r === "mark" && (i = ko(o, n.schema)), a && t.selection.ranges.forEach((l) => {
|
|
10648
10648
|
n.doc.nodesBetween(l.$from.pos, l.$to.pos, (p, c) => {
|
|
10649
10649
|
s && s === p.type && t.setNodeMarkup(c, void 0, Op(p.attrs, e)), i && p.marks.length && p.marks.forEach((m) => {
|
|
10650
10650
|
i === m.type && t.addMark(c, c + p.nodeSize, i.create(Op(m.attrs, e)));
|
|
@@ -10741,7 +10741,7 @@ function nv(o, e) {
|
|
|
10741
10741
|
return fd(o, t, e);
|
|
10742
10742
|
}
|
|
10743
10743
|
function av(o, e) {
|
|
10744
|
-
const t =
|
|
10744
|
+
const t = Fe(e, o.schema), { from: n, to: a } = o.selection, s = [];
|
|
10745
10745
|
o.doc.nodesBetween(n, a, (r) => {
|
|
10746
10746
|
s.push(r);
|
|
10747
10747
|
});
|
|
@@ -10851,7 +10851,7 @@ function Ap(o, e) {
|
|
|
10851
10851
|
name: n.name,
|
|
10852
10852
|
options: n.options,
|
|
10853
10853
|
storage: n.storage
|
|
10854
|
-
}, s =
|
|
10854
|
+
}, s = ne(L(n, "group", a));
|
|
10855
10855
|
return typeof s != "string" ? !1 : s.split(" ").includes("list");
|
|
10856
10856
|
}
|
|
10857
10857
|
function ai(o, { checkChildren: e = !0, ignoreWhitespace: t = !1 } = {}) {
|
|
@@ -10941,7 +10941,7 @@ const pv = (o, e = {}) => ({ tr: t, state: n, dispatch: a }) => {
|
|
|
10941
10941
|
});
|
|
10942
10942
|
return lv(n, t, l);
|
|
10943
10943
|
}, cv = (o, e) => ({ tr: t }) => (t.setMeta(o, e), !0), mv = (o, e = {}) => ({ state: t, dispatch: n, chain: a }) => {
|
|
10944
|
-
const s =
|
|
10944
|
+
const s = Fe(o, t.schema);
|
|
10945
10945
|
let i;
|
|
10946
10946
|
return t.selection.$anchor.sameParent(t.selection.$head) && (i = t.selection.$anchor.parent.attrs), s.isTextblock ? a().command(({ commands: r }) => Cp(s, { ...i, ...e })(t) ? !0 : r.clearNodes()).command(({ state: r }) => Cp(s, { ...i, ...e })(r, n)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
10947
10947
|
}, dv = (o) => ({ tr: e, dispatch: t }) => {
|
|
@@ -10957,7 +10957,7 @@ const pv = (o, e = {}) => ({ tr: t, state: n, dispatch: a }) => {
|
|
|
10957
10957
|
}
|
|
10958
10958
|
return !0;
|
|
10959
10959
|
}, gv = (o) => ({ state: e, dispatch: t }) => {
|
|
10960
|
-
const n =
|
|
10960
|
+
const n = Fe(o, e.schema);
|
|
10961
10961
|
return Yh(n)(e, t);
|
|
10962
10962
|
};
|
|
10963
10963
|
function Tp(o, e) {
|
|
@@ -10995,7 +10995,7 @@ const fv = ({ keepMarks: o = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
10995
10995
|
return g;
|
|
10996
10996
|
}, hv = (o, e = {}) => ({ tr: t, state: n, dispatch: a, editor: s }) => {
|
|
10997
10997
|
var i;
|
|
10998
|
-
const r =
|
|
10998
|
+
const r = Fe(o, n.schema), { $from: l, $to: p } = n.selection, c = n.selection.node;
|
|
10999
10999
|
if (c && c.isBlock || l.depth < 2 || !l.sameParent(p))
|
|
11000
11000
|
return !1;
|
|
11001
11001
|
const m = l.node(-1);
|
|
@@ -11067,7 +11067,7 @@ const fv = ({ keepMarks: o = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
11067
11067
|
const a = o.doc.nodeAt(n);
|
|
11068
11068
|
return t.node.type === (a == null ? void 0 : a.type) && vo(o.doc, n) && o.join(n), !0;
|
|
11069
11069
|
}, bv = (o, e, t, n = {}) => ({ editor: a, tr: s, state: i, dispatch: r, chain: l, commands: p, can: c }) => {
|
|
11070
|
-
const { extensions: m, splittableMarks: d } = a.extensionManager, u =
|
|
11070
|
+
const { extensions: m, splittableMarks: d } = a.extensionManager, u = Fe(o, i.schema), g = Fe(e, i.schema), { selection: f, storedMarks: h } = i, { $from: j, $to: w } = f, S = j.blockRange(w), b = h || f.$to.parentOffset && f.$from.marks();
|
|
11071
11071
|
if (!S)
|
|
11072
11072
|
return !1;
|
|
11073
11073
|
const T = Yr((_) => Ap(_.type.name, m))(f);
|
|
@@ -11085,11 +11085,11 @@ const fv = ({ keepMarks: o = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
11085
11085
|
const { extendEmptyMarkRange: s = !1 } = t, i = ko(o, n.schema);
|
|
11086
11086
|
return fr(n, i, e) ? a.unsetMark(i, { extendEmptyMarkRange: s }) : a.setMark(i, e);
|
|
11087
11087
|
}, jv = (o, e, t = {}) => ({ state: n, commands: a }) => {
|
|
11088
|
-
const s =
|
|
11088
|
+
const s = Fe(o, n.schema), i = Fe(e, n.schema), r = Yn(n, s, t);
|
|
11089
11089
|
let l;
|
|
11090
11090
|
return n.selection.$anchor.sameParent(n.selection.$head) && (l = n.selection.$anchor.parent.attrs), r ? a.setNode(i, l) : a.setNode(s, { ...l, ...t });
|
|
11091
11091
|
}, kv = (o, e = {}) => ({ state: t, commands: n }) => {
|
|
11092
|
-
const a =
|
|
11092
|
+
const a = Fe(o, t.schema);
|
|
11093
11093
|
return Yn(t, a, e) ? n.lift(a) : n.wrapIn(a, e);
|
|
11094
11094
|
}, yv = () => ({ state: o, dispatch: e }) => {
|
|
11095
11095
|
const t = o.plugins;
|
|
@@ -11133,7 +11133,7 @@ const fv = ({ keepMarks: o = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
11133
11133
|
}, wv = (o, e = {}) => ({ tr: t, state: n, dispatch: a }) => {
|
|
11134
11134
|
let s = null, i = null;
|
|
11135
11135
|
const r = ni(typeof o == "string" ? o : o.name, n.schema);
|
|
11136
|
-
return r ? (r === "node" && (s =
|
|
11136
|
+
return r ? (r === "node" && (s = Fe(o, n.schema)), r === "mark" && (i = ko(o, n.schema)), a && t.selection.ranges.forEach((l) => {
|
|
11137
11137
|
const p = l.$from.pos, c = l.$to.pos;
|
|
11138
11138
|
let m, d, u, g;
|
|
11139
11139
|
t.selection.empty ? n.doc.nodesBetween(p, c, (f, h) => {
|
|
@@ -11162,10 +11162,10 @@ const fv = ({ keepMarks: o = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
11162
11162
|
}));
|
|
11163
11163
|
}), !0) : !1;
|
|
11164
11164
|
}, Iv = (o, e = {}) => ({ state: t, dispatch: n }) => {
|
|
11165
|
-
const a =
|
|
11165
|
+
const a = Fe(o, t.schema);
|
|
11166
11166
|
return qh(a, e)(t, n);
|
|
11167
11167
|
}, Ev = (o, e = {}) => ({ state: t, dispatch: n }) => {
|
|
11168
|
-
const a =
|
|
11168
|
+
const a = Fe(o, t.schema);
|
|
11169
11169
|
return Wh(a, e)(t, n);
|
|
11170
11170
|
};
|
|
11171
11171
|
var Cv = /* @__PURE__ */ Object.freeze({
|
|
@@ -11229,14 +11229,14 @@ var Cv = /* @__PURE__ */ Object.freeze({
|
|
|
11229
11229
|
wrapIn: Iv,
|
|
11230
11230
|
wrapInList: Ev
|
|
11231
11231
|
});
|
|
11232
|
-
const xv =
|
|
11232
|
+
const xv = Oe.create({
|
|
11233
11233
|
name: "commands",
|
|
11234
11234
|
addCommands() {
|
|
11235
11235
|
return {
|
|
11236
11236
|
...Cv
|
|
11237
11237
|
};
|
|
11238
11238
|
}
|
|
11239
|
-
}), Sv =
|
|
11239
|
+
}), Sv = Oe.create({
|
|
11240
11240
|
name: "drop",
|
|
11241
11241
|
addProseMirrorPlugins() {
|
|
11242
11242
|
return [
|
|
@@ -11255,7 +11255,7 @@ const xv = Fe.create({
|
|
|
11255
11255
|
})
|
|
11256
11256
|
];
|
|
11257
11257
|
}
|
|
11258
|
-
}), Mv =
|
|
11258
|
+
}), Mv = Oe.create({
|
|
11259
11259
|
name: "editable",
|
|
11260
11260
|
addProseMirrorPlugins() {
|
|
11261
11261
|
return [
|
|
@@ -11267,7 +11267,7 @@ const xv = Fe.create({
|
|
|
11267
11267
|
})
|
|
11268
11268
|
];
|
|
11269
11269
|
}
|
|
11270
|
-
}), Fv =
|
|
11270
|
+
}), Fv = Oe.create({
|
|
11271
11271
|
name: "focusEvents",
|
|
11272
11272
|
addProseMirrorPlugins() {
|
|
11273
11273
|
const { editor: o } = this;
|
|
@@ -11291,14 +11291,14 @@ const xv = Fe.create({
|
|
|
11291
11291
|
})
|
|
11292
11292
|
];
|
|
11293
11293
|
}
|
|
11294
|
-
}), Ov =
|
|
11294
|
+
}), Ov = Oe.create({
|
|
11295
11295
|
name: "keymap",
|
|
11296
11296
|
addKeyboardShortcuts() {
|
|
11297
11297
|
const o = () => this.editor.commands.first(({ commands: i }) => [
|
|
11298
11298
|
() => i.undoInputRule(),
|
|
11299
11299
|
// maybe convert first text block node to default node
|
|
11300
11300
|
() => i.command(({ tr: r }) => {
|
|
11301
|
-
const { selection: l, doc: p } = r, { empty: c, $anchor: m } = l, { pos: d, parent: u } = m, g = m.parent.isTextblock && d > 0 ? r.doc.resolve(d - 1) : m, f = g.parent.type.spec.isolating, h = m.pos - m.parentOffset, j = f && g.parent.childCount === 1 ? h === m.pos :
|
|
11301
|
+
const { selection: l, doc: p } = r, { empty: c, $anchor: m } = l, { pos: d, parent: u } = m, g = m.parent.isTextblock && d > 0 ? r.doc.resolve(d - 1) : m, f = g.parent.type.spec.isolating, h = m.pos - m.parentOffset, j = f && g.parent.childCount === 1 ? h === m.pos : ee.atStart(p).from === d;
|
|
11302
11302
|
return !c || !u.type.isTextblock || u.textContent.length || !j || j && m.parent.type.name === "paragraph" ? !1 : i.clearNodes();
|
|
11303
11303
|
}),
|
|
11304
11304
|
() => i.deleteSelection(),
|
|
@@ -11351,7 +11351,7 @@ const xv = Fe.create({
|
|
|
11351
11351
|
const n = o.some((f) => f.docChanged) && !e.doc.eq(t.doc), a = o.some((f) => f.getMeta("preventClearDocument"));
|
|
11352
11352
|
if (!n || a)
|
|
11353
11353
|
return;
|
|
11354
|
-
const { empty: s, from: i, to: r } = e.selection, l =
|
|
11354
|
+
const { empty: s, from: i, to: r } = e.selection, l = ee.atStart(e.doc).from, p = ee.atEnd(e.doc).to;
|
|
11355
11355
|
if (s || !(i === l && r === p) || !ai(t.doc))
|
|
11356
11356
|
return;
|
|
11357
11357
|
const d = t.tr, u = Zs({
|
|
@@ -11367,7 +11367,7 @@ const xv = Fe.create({
|
|
|
11367
11367
|
})
|
|
11368
11368
|
];
|
|
11369
11369
|
}
|
|
11370
|
-
}), Av =
|
|
11370
|
+
}), Av = Oe.create({
|
|
11371
11371
|
name: "paste",
|
|
11372
11372
|
addProseMirrorPlugins() {
|
|
11373
11373
|
return [
|
|
@@ -11385,7 +11385,7 @@ const xv = Fe.create({
|
|
|
11385
11385
|
})
|
|
11386
11386
|
];
|
|
11387
11387
|
}
|
|
11388
|
-
}), Tv =
|
|
11388
|
+
}), Tv = Oe.create({
|
|
11389
11389
|
name: "tabindex",
|
|
11390
11390
|
addProseMirrorPlugins() {
|
|
11391
11391
|
return [
|
|
@@ -11953,7 +11953,7 @@ function hn(o) {
|
|
|
11953
11953
|
return new fa({
|
|
11954
11954
|
find: o.find,
|
|
11955
11955
|
handler: ({ state: e, range: t, match: n }) => {
|
|
11956
|
-
const a =
|
|
11956
|
+
const a = ne(o.getAttributes, void 0, n);
|
|
11957
11957
|
if (a === !1 || a === null)
|
|
11958
11958
|
return null;
|
|
11959
11959
|
const { tr: s } = e, i = n[n.length - 1], r = n[0];
|
|
@@ -11972,7 +11972,7 @@ function Qr(o) {
|
|
|
11972
11972
|
return new fa({
|
|
11973
11973
|
find: o.find,
|
|
11974
11974
|
handler: ({ state: e, range: t, match: n }) => {
|
|
11975
|
-
const a =
|
|
11975
|
+
const a = ne(o.getAttributes, void 0, n) || {}, { tr: s } = e, i = t.from;
|
|
11976
11976
|
let r = t.to;
|
|
11977
11977
|
const l = o.type.create(a);
|
|
11978
11978
|
if (n[1]) {
|
|
@@ -11993,7 +11993,7 @@ function hr(o) {
|
|
|
11993
11993
|
return new fa({
|
|
11994
11994
|
find: o.find,
|
|
11995
11995
|
handler: ({ state: e, range: t, match: n }) => {
|
|
11996
|
-
const a = e.doc.resolve(t.from), s =
|
|
11996
|
+
const a = e.doc.resolve(t.from), s = ne(o.getAttributes, void 0, n) || {};
|
|
11997
11997
|
if (!a.node(-1).canReplaceWith(a.index(-1), a.indexAfter(-1), o.type))
|
|
11998
11998
|
return null;
|
|
11999
11999
|
e.tr.delete(t.from, t.to).setBlockType(t.from, t.from, o.type, s);
|
|
@@ -12004,7 +12004,7 @@ function Xn(o) {
|
|
|
12004
12004
|
return new fa({
|
|
12005
12005
|
find: o.find,
|
|
12006
12006
|
handler: ({ state: e, range: t, match: n, chain: a }) => {
|
|
12007
|
-
const s =
|
|
12007
|
+
const s = ne(o.getAttributes, void 0, n) || {}, i = e.tr.delete(t.from, t.to), l = i.doc.resolve(t.from).blockRange(), p = l && Mr(l, o.type, s);
|
|
12008
12008
|
if (!p)
|
|
12009
12009
|
return null;
|
|
12010
12010
|
if (i.wrap(l, p), o.keepMarks && o.editor) {
|
|
@@ -12031,9 +12031,9 @@ class ze {
|
|
|
12031
12031
|
}, this.config = {
|
|
12032
12032
|
...this.config,
|
|
12033
12033
|
...e
|
|
12034
|
-
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
12034
|
+
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = ne(L(this, "addOptions", {
|
|
12035
12035
|
name: this.name
|
|
12036
|
-
}))), this.storage =
|
|
12036
|
+
}))), this.storage = ne(L(this, "addStorage", {
|
|
12037
12037
|
name: this.name,
|
|
12038
12038
|
options: this.options
|
|
12039
12039
|
})) || {};
|
|
@@ -12050,9 +12050,9 @@ class ze {
|
|
|
12050
12050
|
}
|
|
12051
12051
|
extend(e = {}) {
|
|
12052
12052
|
const t = new ze(e);
|
|
12053
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options =
|
|
12053
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = ne(L(t, "addOptions", {
|
|
12054
12054
|
name: t.name
|
|
12055
|
-
})), t.storage =
|
|
12055
|
+
})), t.storage = ne(L(t, "addStorage", {
|
|
12056
12056
|
name: t.name,
|
|
12057
12057
|
options: t.options
|
|
12058
12058
|
})), t;
|
|
@@ -12062,7 +12062,7 @@ function $o(o) {
|
|
|
12062
12062
|
return new gd({
|
|
12063
12063
|
find: o.find,
|
|
12064
12064
|
handler: ({ state: e, range: t, match: n, pasteEvent: a }) => {
|
|
12065
|
-
const s =
|
|
12065
|
+
const s = ne(o.getAttributes, void 0, n, a);
|
|
12066
12066
|
if (s === !1 || s === null)
|
|
12067
12067
|
return null;
|
|
12068
12068
|
const { tr: i } = e, r = n[n.length - 1], l = n[0];
|
|
@@ -12079,7 +12079,7 @@ function $o(o) {
|
|
|
12079
12079
|
function Ed(o) {
|
|
12080
12080
|
return o.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
12081
12081
|
}
|
|
12082
|
-
var et = "top",
|
|
12082
|
+
var et = "top", yt = "bottom", _t = "right", tt = "left", el = "auto", ha = [et, yt, _t, tt], bn = "start", Zn = "end", Lv = "clippingParents", Cd = "viewport", Sn = "popper", Pv = "reference", Np = /* @__PURE__ */ ha.reduce(function(o, e) {
|
|
12083
12083
|
return o.concat([e + "-" + bn, e + "-" + Zn]);
|
|
12084
12084
|
}, []), xd = /* @__PURE__ */ [].concat(ha, [el]).reduce(function(o, e) {
|
|
12085
12085
|
return o.concat([e, e + "-" + bn, e + "-" + Zn]);
|
|
@@ -12100,7 +12100,7 @@ function Ho(o) {
|
|
|
12100
12100
|
var e = at(o).Element;
|
|
12101
12101
|
return o instanceof e || o instanceof Element;
|
|
12102
12102
|
}
|
|
12103
|
-
function
|
|
12103
|
+
function kt(o) {
|
|
12104
12104
|
var e = at(o).HTMLElement;
|
|
12105
12105
|
return o instanceof e || o instanceof HTMLElement;
|
|
12106
12106
|
}
|
|
@@ -12114,7 +12114,7 @@ function Yv(o) {
|
|
|
12114
12114
|
var e = o.state;
|
|
12115
12115
|
Object.keys(e.elements).forEach(function(t) {
|
|
12116
12116
|
var n = e.styles[t] || {}, a = e.attributes[t] || {}, s = e.elements[t];
|
|
12117
|
-
!
|
|
12117
|
+
!kt(s) || !Lt(s) || (Object.assign(s.style, n), Object.keys(a).forEach(function(i) {
|
|
12118
12118
|
var r = a[i];
|
|
12119
12119
|
r === !1 ? s.removeAttribute(i) : s.setAttribute(i, r === !0 ? "" : r);
|
|
12120
12120
|
}));
|
|
@@ -12138,7 +12138,7 @@ function Xv(o) {
|
|
|
12138
12138
|
var a = e.elements[n], s = e.attributes[n] || {}, i = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : t[n]), r = i.reduce(function(l, p) {
|
|
12139
12139
|
return l[p] = "", l;
|
|
12140
12140
|
}, {});
|
|
12141
|
-
!
|
|
12141
|
+
!kt(a) || !Lt(a) || (Object.assign(a.style, r), Object.keys(s).forEach(function(l) {
|
|
12142
12142
|
a.removeAttribute(l);
|
|
12143
12143
|
}));
|
|
12144
12144
|
});
|
|
@@ -12168,7 +12168,7 @@ function Md() {
|
|
|
12168
12168
|
function jn(o, e, t) {
|
|
12169
12169
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
12170
12170
|
var n = o.getBoundingClientRect(), a = 1, s = 1;
|
|
12171
|
-
e &&
|
|
12171
|
+
e && kt(o) && (a = o.offsetWidth > 0 && vn(n.width) / o.offsetWidth || 1, s = o.offsetHeight > 0 && vn(n.height) / o.offsetHeight || 1);
|
|
12172
12172
|
var i = Ho(o) ? at(o) : window, r = i.visualViewport, l = !Md() && t, p = (n.left + (l && r ? r.offsetLeft : 0)) / a, c = (n.top + (l && r ? r.offsetTop : 0)) / s, m = n.width / a, d = n.height / s;
|
|
12173
12173
|
return {
|
|
12174
12174
|
width: m,
|
|
@@ -12229,18 +12229,18 @@ function si(o) {
|
|
|
12229
12229
|
);
|
|
12230
12230
|
}
|
|
12231
12231
|
function Bp(o) {
|
|
12232
|
-
return !
|
|
12232
|
+
return !kt(o) || // https://github.com/popperjs/popper-core/issues/837
|
|
12233
12233
|
Jt(o).position === "fixed" ? null : o.offsetParent;
|
|
12234
12234
|
}
|
|
12235
12235
|
function Qv(o) {
|
|
12236
12236
|
var e = /firefox/i.test(br()), t = /Trident/i.test(br());
|
|
12237
|
-
if (t &&
|
|
12237
|
+
if (t && kt(o)) {
|
|
12238
12238
|
var n = Jt(o);
|
|
12239
12239
|
if (n.position === "fixed")
|
|
12240
12240
|
return null;
|
|
12241
12241
|
}
|
|
12242
12242
|
var a = si(o);
|
|
12243
|
-
for (tl(a) && (a = a.host);
|
|
12243
|
+
for (tl(a) && (a = a.host); kt(a) && ["html", "body"].indexOf(Lt(a)) < 0; ) {
|
|
12244
12244
|
var s = Jt(a);
|
|
12245
12245
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
|
|
12246
12246
|
return a;
|
|
@@ -12285,9 +12285,9 @@ var tj = function(e, t) {
|
|
|
12285
12285
|
})) : e, Ad(typeof e != "number" ? e : Td(e, ha));
|
|
12286
12286
|
};
|
|
12287
12287
|
function oj(o) {
|
|
12288
|
-
var e, t = o.state, n = o.name, a = o.options, s = t.elements.arrow, i = t.modifiersData.popperOffsets, r = Tt(t.placement), l = nl(r), p = [tt,
|
|
12288
|
+
var e, t = o.state, n = o.name, a = o.options, s = t.elements.arrow, i = t.modifiersData.popperOffsets, r = Tt(t.placement), l = nl(r), p = [tt, _t].indexOf(r) >= 0, c = p ? "height" : "width";
|
|
12289
12289
|
if (!(!s || !i)) {
|
|
12290
|
-
var m = tj(a.padding, t), d = ol(s), u = l === "y" ? et : tt, g = l === "y" ?
|
|
12290
|
+
var m = tj(a.padding, t), d = ol(s), u = l === "y" ? et : tt, g = l === "y" ? yt : _t, f = t.rects.reference[c] + t.rects.reference[l] - i[l] - t.rects.popper[c], h = i[l] - t.rects.reference[l], j = ba(s), w = j ? l === "y" ? j.clientHeight || 0 : j.clientWidth || 0 : 0, S = f / 2 - h / 2, b = m[u], T = w - d[c] - m[g], _ = w / 2 - d[c] / 2 + S, P = Rn(b, _, T), K = l;
|
|
12291
12291
|
t.modifiersData[n] = (e = {}, e[K] = P, e.centerOffset = P - _, e);
|
|
12292
12292
|
}
|
|
12293
12293
|
}
|
|
@@ -12332,16 +12332,16 @@ function Rp(o) {
|
|
|
12332
12332
|
var j = i.hasOwnProperty("x"), w = i.hasOwnProperty("y"), S = tt, b = et, T = window;
|
|
12333
12333
|
if (p) {
|
|
12334
12334
|
var _ = ba(t), P = "clientHeight", K = "clientWidth";
|
|
12335
|
-
if (_ === at(t) && (_ = yo(t), Jt(_).position !== "static" && r === "absolute" && (P = "scrollHeight", K = "scrollWidth")), _ = _, a === et || (a === tt || a ===
|
|
12336
|
-
b =
|
|
12335
|
+
if (_ === at(t) && (_ = yo(t), Jt(_).position !== "static" && r === "absolute" && (P = "scrollHeight", K = "scrollWidth")), _ = _, a === et || (a === tt || a === _t) && s === Zn) {
|
|
12336
|
+
b = yt;
|
|
12337
12337
|
var E = m && _ === T && T.visualViewport ? T.visualViewport.height : (
|
|
12338
12338
|
// $FlowFixMe[prop-missing]
|
|
12339
12339
|
_[P]
|
|
12340
12340
|
);
|
|
12341
12341
|
f -= E - n.height, f *= l ? 1 : -1;
|
|
12342
12342
|
}
|
|
12343
|
-
if (a === tt || (a === et || a ===
|
|
12344
|
-
S =
|
|
12343
|
+
if (a === tt || (a === et || a === yt) && s === Zn) {
|
|
12344
|
+
S = _t;
|
|
12345
12345
|
var q = m && _ === T && T.visualViewport ? T.visualViewport.width : (
|
|
12346
12346
|
// $FlowFixMe[prop-missing]
|
|
12347
12347
|
_[K]
|
|
@@ -12351,16 +12351,16 @@ function Rp(o) {
|
|
|
12351
12351
|
}
|
|
12352
12352
|
var Q = Object.assign({
|
|
12353
12353
|
position: r
|
|
12354
|
-
}, p && sj),
|
|
12354
|
+
}, p && sj), ie = c === !0 ? ij({
|
|
12355
12355
|
x: u,
|
|
12356
12356
|
y: f
|
|
12357
12357
|
}, at(t)) : {
|
|
12358
12358
|
x: u,
|
|
12359
12359
|
y: f
|
|
12360
12360
|
};
|
|
12361
|
-
if (u =
|
|
12362
|
-
var
|
|
12363
|
-
return Object.assign({}, Q, (
|
|
12361
|
+
if (u = ie.x, f = ie.y, l) {
|
|
12362
|
+
var se;
|
|
12363
|
+
return Object.assign({}, Q, (se = {}, se[b] = w ? "0" : "", se[S] = j ? "0" : "", se.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + f + "px)" : "translate3d(" + u + "px, " + f + "px, 0)", se));
|
|
12364
12364
|
}
|
|
12365
12365
|
return Object.assign({}, Q, (e = {}, e[b] = w ? f + "px" : "", e[S] = j ? u + "px" : "", e.transform = "", e));
|
|
12366
12366
|
}
|
|
@@ -12474,7 +12474,7 @@ function il(o) {
|
|
|
12474
12474
|
return /auto|scroll|overlay|hidden/.test(t + a + n);
|
|
12475
12475
|
}
|
|
12476
12476
|
function Nd(o) {
|
|
12477
|
-
return ["html", "body", "#document"].indexOf(Lt(o)) >= 0 ? o.ownerDocument.body :
|
|
12477
|
+
return ["html", "body", "#document"].indexOf(Lt(o)) >= 0 ? o.ownerDocument.body : kt(o) && il(o) ? o : Nd(si(o));
|
|
12478
12478
|
}
|
|
12479
12479
|
function Ln(o, e) {
|
|
12480
12480
|
var t;
|
|
@@ -12501,7 +12501,7 @@ function Pp(o, e, t) {
|
|
|
12501
12501
|
return e === Cd ? vr(uj(o, t)) : Ho(e) ? fj(e, t) : vr(gj(yo(o)));
|
|
12502
12502
|
}
|
|
12503
12503
|
function hj(o) {
|
|
12504
|
-
var e = Ln(si(o)), t = ["absolute", "fixed"].indexOf(Jt(o).position) >= 0, n = t &&
|
|
12504
|
+
var e = Ln(si(o)), t = ["absolute", "fixed"].indexOf(Jt(o).position) >= 0, n = t && kt(o) ? ba(o) : o;
|
|
12505
12505
|
return Ho(n) ? e.filter(function(a) {
|
|
12506
12506
|
return Ho(a) && Fd(a, n) && Lt(a) !== "body";
|
|
12507
12507
|
}) : [];
|
|
@@ -12522,13 +12522,13 @@ function Bd(o) {
|
|
|
12522
12522
|
y: e.y - t.height
|
|
12523
12523
|
};
|
|
12524
12524
|
break;
|
|
12525
|
-
case
|
|
12525
|
+
case yt:
|
|
12526
12526
|
l = {
|
|
12527
12527
|
x: i,
|
|
12528
12528
|
y: e.y + e.height
|
|
12529
12529
|
};
|
|
12530
12530
|
break;
|
|
12531
|
-
case
|
|
12531
|
+
case _t:
|
|
12532
12532
|
l = {
|
|
12533
12533
|
x: e.x + e.width,
|
|
12534
12534
|
y: r
|
|
@@ -12573,10 +12573,10 @@ function Qn(o, e) {
|
|
|
12573
12573
|
right: E.right - T.right + j.right
|
|
12574
12574
|
}, Q = o.modifiersData.offset;
|
|
12575
12575
|
if (d === Sn && Q) {
|
|
12576
|
-
var
|
|
12577
|
-
Object.keys(q).forEach(function(
|
|
12578
|
-
var
|
|
12579
|
-
q[
|
|
12576
|
+
var ie = Q[a];
|
|
12577
|
+
Object.keys(q).forEach(function(se) {
|
|
12578
|
+
var me = [_t, yt].indexOf(se) >= 0 ? 1 : -1, R = [et, yt].indexOf(se) >= 0 ? "y" : "x";
|
|
12579
|
+
q[se] += ie[R] * me;
|
|
12580
12580
|
});
|
|
12581
12581
|
}
|
|
12582
12582
|
return q;
|
|
@@ -12610,26 +12610,26 @@ function jj(o) {
|
|
|
12610
12610
|
function kj(o) {
|
|
12611
12611
|
var e = o.state, t = o.options, n = o.name;
|
|
12612
12612
|
if (!e.modifiersData[n]._skip) {
|
|
12613
|
-
for (var a = t.mainAxis, s = a === void 0 ? !0 : a, i = t.altAxis, r = i === void 0 ? !0 : i, l = t.fallbackPlacements, p = t.padding, c = t.boundary, m = t.rootBoundary, d = t.altBoundary, u = t.flipVariations, g = u === void 0 ? !0 : u, f = t.allowedAutoPlacements, h = e.options.placement, j = Tt(h), w = j === h, S = l || (w || !g ? [$a(h)] : jj(h)), b = [h].concat(S).reduce(function(Ie,
|
|
12614
|
-
return Ie.concat(Tt(
|
|
12615
|
-
placement:
|
|
12613
|
+
for (var a = t.mainAxis, s = a === void 0 ? !0 : a, i = t.altAxis, r = i === void 0 ? !0 : i, l = t.fallbackPlacements, p = t.padding, c = t.boundary, m = t.rootBoundary, d = t.altBoundary, u = t.flipVariations, g = u === void 0 ? !0 : u, f = t.allowedAutoPlacements, h = e.options.placement, j = Tt(h), w = j === h, S = l || (w || !g ? [$a(h)] : jj(h)), b = [h].concat(S).reduce(function(Ie, oe) {
|
|
12614
|
+
return Ie.concat(Tt(oe) === el ? vj(e, {
|
|
12615
|
+
placement: oe,
|
|
12616
12616
|
boundary: c,
|
|
12617
12617
|
rootBoundary: m,
|
|
12618
12618
|
padding: p,
|
|
12619
12619
|
flipVariations: g,
|
|
12620
12620
|
allowedAutoPlacements: f
|
|
12621
|
-
}) :
|
|
12621
|
+
}) : oe);
|
|
12622
12622
|
}, []), T = e.rects.reference, _ = e.rects.popper, P = /* @__PURE__ */ new Map(), K = !0, E = b[0], q = 0; q < b.length; q++) {
|
|
12623
|
-
var Q = b[q],
|
|
12623
|
+
var Q = b[q], ie = Tt(Q), se = kn(Q) === bn, me = [et, yt].indexOf(ie) >= 0, R = me ? "width" : "height", H = Qn(e, {
|
|
12624
12624
|
placement: Q,
|
|
12625
12625
|
boundary: c,
|
|
12626
12626
|
rootBoundary: m,
|
|
12627
12627
|
altBoundary: d,
|
|
12628
12628
|
padding: p
|
|
12629
|
-
}), v =
|
|
12630
|
-
T[
|
|
12629
|
+
}), v = me ? se ? _t : tt : se ? yt : et;
|
|
12630
|
+
T[R] > _[R] && (v = $a(v));
|
|
12631
12631
|
var y = $a(v), F = [];
|
|
12632
|
-
if (s && F.push(
|
|
12632
|
+
if (s && F.push(H[ie] <= 0), r && F.push(H[v] <= 0, H[y] <= 0), F.every(function(Ie) {
|
|
12633
12633
|
return Ie;
|
|
12634
12634
|
})) {
|
|
12635
12635
|
E = Q, K = !1;
|
|
@@ -12638,18 +12638,18 @@ function kj(o) {
|
|
|
12638
12638
|
P.set(Q, F);
|
|
12639
12639
|
}
|
|
12640
12640
|
if (K)
|
|
12641
|
-
for (var B = g ? 3 : 1, G = function(
|
|
12642
|
-
var
|
|
12641
|
+
for (var B = g ? 3 : 1, G = function(oe) {
|
|
12642
|
+
var pe = b.find(function(st) {
|
|
12643
12643
|
var He = P.get(st);
|
|
12644
12644
|
if (He)
|
|
12645
|
-
return He.slice(0,
|
|
12645
|
+
return He.slice(0, oe).every(function(it) {
|
|
12646
12646
|
return it;
|
|
12647
12647
|
});
|
|
12648
12648
|
});
|
|
12649
|
-
if (
|
|
12650
|
-
return E =
|
|
12651
|
-
},
|
|
12652
|
-
var ge = G(
|
|
12649
|
+
if (pe)
|
|
12650
|
+
return E = pe, "break";
|
|
12651
|
+
}, ae = B; ae > 0; ae--) {
|
|
12652
|
+
var ge = G(ae);
|
|
12653
12653
|
if (ge === "break") break;
|
|
12654
12654
|
}
|
|
12655
12655
|
e.placement !== E && (e.modifiersData[n]._skip = !0, e.placement = E, e.reset = !0);
|
|
@@ -12677,7 +12677,7 @@ function zp(o, e, t) {
|
|
|
12677
12677
|
};
|
|
12678
12678
|
}
|
|
12679
12679
|
function $p(o) {
|
|
12680
|
-
return [et,
|
|
12680
|
+
return [et, _t, yt, tt].some(function(e) {
|
|
12681
12681
|
return o[e] >= 0;
|
|
12682
12682
|
});
|
|
12683
12683
|
}
|
|
@@ -12708,7 +12708,7 @@ function wj(o, e, t) {
|
|
|
12708
12708
|
var n = Tt(o), a = [tt, et].indexOf(n) >= 0 ? -1 : 1, s = typeof t == "function" ? t(Object.assign({}, e, {
|
|
12709
12709
|
placement: o
|
|
12710
12710
|
})) : t, i = s[0], r = s[1];
|
|
12711
|
-
return i = i || 0, r = (r || 0) * a, [tt,
|
|
12711
|
+
return i = i || 0, r = (r || 0) * a, [tt, _t].indexOf(n) >= 0 ? {
|
|
12712
12712
|
x: r,
|
|
12713
12713
|
y: i
|
|
12714
12714
|
} : {
|
|
@@ -12761,23 +12761,23 @@ function Mj(o) {
|
|
|
12761
12761
|
} : Object.assign({
|
|
12762
12762
|
mainAxis: 0,
|
|
12763
12763
|
altAxis: 0
|
|
12764
|
-
}, E), Q = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null,
|
|
12764
|
+
}, E), Q = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, ie = {
|
|
12765
12765
|
x: 0,
|
|
12766
12766
|
y: 0
|
|
12767
12767
|
};
|
|
12768
12768
|
if (_) {
|
|
12769
12769
|
if (s) {
|
|
12770
|
-
var
|
|
12770
|
+
var se, me = b === "y" ? et : tt, R = b === "y" ? yt : _t, H = b === "y" ? "height" : "width", v = _[b], y = v + h[me], F = v - h[R], B = u ? -K[H] / 2 : 0, G = w === bn ? P[H] : K[H], ae = w === bn ? -K[H] : -P[H], ge = e.elements.arrow, Ie = u && ge ? ol(ge) : {
|
|
12771
12771
|
width: 0,
|
|
12772
12772
|
height: 0
|
|
12773
|
-
},
|
|
12774
|
-
_[b] = de,
|
|
12773
|
+
}, oe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Od(), pe = oe[me], st = oe[R], He = Rn(0, P[H], Ie[H]), it = S ? P[H] / 2 - B - He - pe - q.mainAxis : G - He - pe - q.mainAxis, rt = S ? -P[H] / 2 + B + He + st + q.mainAxis : ae + He + st + q.mainAxis, Et = e.elements.arrow && ba(e.elements.arrow), Zt = Et ? b === "y" ? Et.clientTop || 0 : Et.clientLeft || 0 : 0, zt = (se = Q == null ? void 0 : Q[b]) != null ? se : 0, Xe = v + it - zt - Zt, Ct = v + rt - zt, de = Rn(u ? ls(y, Xe) : y, v, u ? To(F, Ct) : F);
|
|
12774
|
+
_[b] = de, ie[b] = de - v;
|
|
12775
12775
|
}
|
|
12776
12776
|
if (r) {
|
|
12777
|
-
var $t, lt = b === "x" ? et : tt, M = b === "x" ?
|
|
12778
|
-
_[T] = I,
|
|
12777
|
+
var $t, lt = b === "x" ? et : tt, M = b === "x" ? yt : _t, Ve = _[T], Z = T === "y" ? "height" : "width", V = Ve + h[lt], Ae = Ve - h[M], ke = [et, tt].indexOf(j) !== -1, pt = ($t = Q == null ? void 0 : Q[T]) != null ? $t : 0, ct = ke ? V : Ve - P[Z] - K[Z] - pt + q.altAxis, k = ke ? Ve + P[Z] + K[Z] - pt - q.altAxis : Ae, I = u && ke ? ej(ct, Ve, k) : Rn(u ? ct : V, Ve, u ? k : Ae);
|
|
12778
|
+
_[T] = I, ie[T] = I - Ve;
|
|
12779
12779
|
}
|
|
12780
|
-
e.modifiersData[n] =
|
|
12780
|
+
e.modifiersData[n] = ie;
|
|
12781
12781
|
}
|
|
12782
12782
|
}
|
|
12783
12783
|
const Fj = {
|
|
@@ -12794,7 +12794,7 @@ function Oj(o) {
|
|
|
12794
12794
|
};
|
|
12795
12795
|
}
|
|
12796
12796
|
function Aj(o) {
|
|
12797
|
-
return o === at(o) || !
|
|
12797
|
+
return o === at(o) || !kt(o) ? al(o) : Oj(o);
|
|
12798
12798
|
}
|
|
12799
12799
|
function Tj(o) {
|
|
12800
12800
|
var e = o.getBoundingClientRect(), t = vn(e.width) / o.offsetWidth || 1, n = vn(e.height) / o.offsetHeight || 1;
|
|
@@ -12802,7 +12802,7 @@ function Tj(o) {
|
|
|
12802
12802
|
}
|
|
12803
12803
|
function Nj(o, e, t) {
|
|
12804
12804
|
t === void 0 && (t = !1);
|
|
12805
|
-
var n =
|
|
12805
|
+
var n = kt(e), a = kt(e) && Tj(e), s = yo(e), i = jn(o, a, t), r = {
|
|
12806
12806
|
scrollLeft: 0,
|
|
12807
12807
|
scrollTop: 0
|
|
12808
12808
|
}, l = {
|
|
@@ -12810,7 +12810,7 @@ function Nj(o, e, t) {
|
|
|
12810
12810
|
y: 0
|
|
12811
12811
|
};
|
|
12812
12812
|
return (n || !n && !t) && ((Lt(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
12813
|
-
il(s)) && (r = Aj(e)),
|
|
12813
|
+
il(s)) && (r = Aj(e)), kt(e) ? (l = jn(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : s && (l.x = sl(s))), {
|
|
12814
12814
|
x: i.left + r.scrollLeft - l.x,
|
|
12815
12815
|
y: i.top + r.scrollTop - l.y,
|
|
12816
12816
|
width: i.width,
|
|
@@ -13342,7 +13342,7 @@ function Kd(o) {
|
|
|
13342
13342
|
Kd.$$tippy = !0;
|
|
13343
13343
|
var f1 = 1, Ea = [], Oi = [];
|
|
13344
13344
|
function h1(o, e) {
|
|
13345
|
-
var t = Xp(o, Object.assign({}, nt, Wd(Up(e)))), n, a, s, i = !1, r = !1, l = !1, p = !1, c, m, d, u = [], g = qp(
|
|
13345
|
+
var t = Xp(o, Object.assign({}, nt, Wd(Up(e)))), n, a, s, i = !1, r = !1, l = !1, p = !1, c, m, d, u = [], g = qp(Xe, t.interactiveDebounce), f, h = f1++, j = null, w = Gj(t.plugins), S = {
|
|
13346
13346
|
// Is the instance currently enabled?
|
|
13347
13347
|
isEnabled: !0,
|
|
13348
13348
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -13384,7 +13384,7 @@ function h1(o, e) {
|
|
|
13384
13384
|
return Et(), B(), v(), y("onCreate", [b]), t.showOnCreate && V(), _.addEventListener("mouseenter", function() {
|
|
13385
13385
|
b.props.interactive && b.state.isVisible && b.clearDelayTimeouts();
|
|
13386
13386
|
}), _.addEventListener("mouseleave", function() {
|
|
13387
|
-
b.props.interactive && b.props.trigger.indexOf("mouseenter") >= 0 &&
|
|
13387
|
+
b.props.interactive && b.props.trigger.indexOf("mouseenter") >= 0 && me().addEventListener("mousemove", g);
|
|
13388
13388
|
}), b;
|
|
13389
13389
|
function q() {
|
|
13390
13390
|
var D = b.props.touch;
|
|
@@ -13393,21 +13393,21 @@ function h1(o, e) {
|
|
|
13393
13393
|
function Q() {
|
|
13394
13394
|
return q()[0] === "hold";
|
|
13395
13395
|
}
|
|
13396
|
-
function
|
|
13396
|
+
function ie() {
|
|
13397
13397
|
var D;
|
|
13398
13398
|
return !!((D = b.props.render) != null && D.$$tippy);
|
|
13399
13399
|
}
|
|
13400
|
-
function
|
|
13400
|
+
function se() {
|
|
13401
13401
|
return f || o;
|
|
13402
13402
|
}
|
|
13403
|
-
function
|
|
13404
|
-
var D =
|
|
13403
|
+
function me() {
|
|
13404
|
+
var D = se().parentNode;
|
|
13405
13405
|
return D ? e1(D) : document;
|
|
13406
13406
|
}
|
|
13407
|
-
function
|
|
13407
|
+
function R() {
|
|
13408
13408
|
return yr(_);
|
|
13409
13409
|
}
|
|
13410
|
-
function
|
|
13410
|
+
function H(D) {
|
|
13411
13411
|
return b.state.isMounted && !b.state.isVisible || Ot.isTouch || c && c.type === "focus" ? 0 : Si(b.props.delay, D ? 0 : 1, nt.delay);
|
|
13412
13412
|
}
|
|
13413
13413
|
function v(D) {
|
|
@@ -13417,15 +13417,15 @@ function h1(o, e) {
|
|
|
13417
13417
|
if (Y === void 0 && (Y = !0), K.forEach(function(le) {
|
|
13418
13418
|
le[D] && le[D].apply(le, $);
|
|
13419
13419
|
}), Y) {
|
|
13420
|
-
var
|
|
13421
|
-
(
|
|
13420
|
+
var ce;
|
|
13421
|
+
(ce = b.props)[D].apply(ce, $);
|
|
13422
13422
|
}
|
|
13423
13423
|
}
|
|
13424
13424
|
function F() {
|
|
13425
13425
|
var D = b.props.aria;
|
|
13426
13426
|
if (D.content) {
|
|
13427
|
-
var $ = "aria-" + D.content, Y = _.id,
|
|
13428
|
-
|
|
13427
|
+
var $ = "aria-" + D.content, Y = _.id, ce = nn(b.props.triggerTarget || o);
|
|
13428
|
+
ce.forEach(function(le) {
|
|
13429
13429
|
var qe = le.getAttribute($);
|
|
13430
13430
|
if (b.state.isVisible)
|
|
13431
13431
|
le.setAttribute($, qe ? qe + " " + Y : Y);
|
|
@@ -13440,16 +13440,16 @@ function h1(o, e) {
|
|
|
13440
13440
|
if (!(E || !b.props.aria.expanded)) {
|
|
13441
13441
|
var D = nn(b.props.triggerTarget || o);
|
|
13442
13442
|
D.forEach(function($) {
|
|
13443
|
-
b.props.interactive ? $.setAttribute("aria-expanded", b.state.isVisible && $ ===
|
|
13443
|
+
b.props.interactive ? $.setAttribute("aria-expanded", b.state.isVisible && $ === se() ? "true" : "false") : $.removeAttribute("aria-expanded");
|
|
13444
13444
|
});
|
|
13445
13445
|
}
|
|
13446
13446
|
}
|
|
13447
13447
|
function G() {
|
|
13448
|
-
|
|
13448
|
+
me().removeEventListener("mousemove", g), Ea = Ea.filter(function(D) {
|
|
13449
13449
|
return D !== g;
|
|
13450
13450
|
});
|
|
13451
13451
|
}
|
|
13452
|
-
function
|
|
13452
|
+
function ae(D) {
|
|
13453
13453
|
if (!(Ot.isTouch && (l || D.type === "mousedown"))) {
|
|
13454
13454
|
var $ = D.composedPath && D.composedPath()[0] || D.target;
|
|
13455
13455
|
if (!(b.props.interactive && Gp(_, $))) {
|
|
@@ -13462,7 +13462,7 @@ function h1(o, e) {
|
|
|
13462
13462
|
y("onClickOutside", [b, D]);
|
|
13463
13463
|
b.props.hideOnClick === !0 && (b.clearDelayTimeouts(), b.hide(), r = !0, setTimeout(function() {
|
|
13464
13464
|
r = !1;
|
|
13465
|
-
}), b.state.isMounted ||
|
|
13465
|
+
}), b.state.isMounted || pe());
|
|
13466
13466
|
}
|
|
13467
13467
|
}
|
|
13468
13468
|
}
|
|
@@ -13472,13 +13472,13 @@ function h1(o, e) {
|
|
|
13472
13472
|
function Ie() {
|
|
13473
13473
|
l = !1;
|
|
13474
13474
|
}
|
|
13475
|
-
function
|
|
13476
|
-
var D =
|
|
13477
|
-
D.addEventListener("mousedown",
|
|
13475
|
+
function oe() {
|
|
13476
|
+
var D = me();
|
|
13477
|
+
D.addEventListener("mousedown", ae, !0), D.addEventListener("touchend", ae, Do), D.addEventListener("touchstart", Ie, Do), D.addEventListener("touchmove", ge, Do);
|
|
13478
13478
|
}
|
|
13479
|
-
function
|
|
13480
|
-
var D =
|
|
13481
|
-
D.removeEventListener("mousedown",
|
|
13479
|
+
function pe() {
|
|
13480
|
+
var D = me();
|
|
13481
|
+
D.removeEventListener("mousedown", ae, !0), D.removeEventListener("touchend", ae, Do), D.removeEventListener("touchstart", Ie, Do), D.removeEventListener("touchmove", ge, Do);
|
|
13482
13482
|
}
|
|
13483
13483
|
function st(D, $) {
|
|
13484
13484
|
it(D, function() {
|
|
@@ -13489,18 +13489,18 @@ function h1(o, e) {
|
|
|
13489
13489
|
it(D, $);
|
|
13490
13490
|
}
|
|
13491
13491
|
function it(D, $) {
|
|
13492
|
-
var Y =
|
|
13493
|
-
function
|
|
13494
|
-
le.target === Y && (Fi(Y, "remove",
|
|
13492
|
+
var Y = R().box;
|
|
13493
|
+
function ce(le) {
|
|
13494
|
+
le.target === Y && (Fi(Y, "remove", ce), $());
|
|
13495
13495
|
}
|
|
13496
13496
|
if (D === 0)
|
|
13497
13497
|
return $();
|
|
13498
|
-
Fi(Y, "remove", m), Fi(Y, "add",
|
|
13498
|
+
Fi(Y, "remove", m), Fi(Y, "add", ce), m = ce;
|
|
13499
13499
|
}
|
|
13500
13500
|
function rt(D, $, Y) {
|
|
13501
13501
|
Y === void 0 && (Y = !1);
|
|
13502
|
-
var
|
|
13503
|
-
|
|
13502
|
+
var ce = nn(b.props.triggerTarget || o);
|
|
13503
|
+
ce.forEach(function(le) {
|
|
13504
13504
|
le.addEventListener(D, $, Y), u.push({
|
|
13505
13505
|
node: le,
|
|
13506
13506
|
eventType: D,
|
|
@@ -13531,23 +13531,23 @@ function h1(o, e) {
|
|
|
13531
13531
|
}
|
|
13532
13532
|
function Zt() {
|
|
13533
13533
|
u.forEach(function(D) {
|
|
13534
|
-
var $ = D.node, Y = D.eventType,
|
|
13535
|
-
$.removeEventListener(Y,
|
|
13534
|
+
var $ = D.node, Y = D.eventType, ce = D.handler, le = D.options;
|
|
13535
|
+
$.removeEventListener(Y, ce, le);
|
|
13536
13536
|
}), u = [];
|
|
13537
13537
|
}
|
|
13538
13538
|
function zt(D) {
|
|
13539
13539
|
var $, Y = !1;
|
|
13540
13540
|
if (!(!b.state.isEnabled || $t(D) || r)) {
|
|
13541
|
-
var
|
|
13541
|
+
var ce = (($ = c) == null ? void 0 : $.type) === "focus";
|
|
13542
13542
|
c = D, f = D.currentTarget, B(), !b.state.isVisible && Xj(D) && Ea.forEach(function(le) {
|
|
13543
13543
|
return le(D);
|
|
13544
|
-
}), D.type === "click" && (b.props.trigger.indexOf("mouseenter") < 0 || i) && b.props.hideOnClick !== !1 && b.state.isVisible ? Y = !0 : V(D), D.type === "click" && (i = !Y), Y && !
|
|
13544
|
+
}), D.type === "click" && (b.props.trigger.indexOf("mouseenter") < 0 || i) && b.props.hideOnClick !== !1 && b.state.isVisible ? Y = !0 : V(D), D.type === "click" && (i = !Y), Y && !ce && Ae(D);
|
|
13545
13545
|
}
|
|
13546
13546
|
}
|
|
13547
|
-
function
|
|
13548
|
-
var $ = D.target, Y =
|
|
13547
|
+
function Xe(D) {
|
|
13548
|
+
var $ = D.target, Y = se().contains($) || _.contains($);
|
|
13549
13549
|
if (!(D.type === "mousemove" && Y)) {
|
|
13550
|
-
var
|
|
13550
|
+
var ce = Z().concat(_).map(function(le) {
|
|
13551
13551
|
var qe, mt = le._tippy, Ko = (qe = mt.popperInstance) == null ? void 0 : qe.state;
|
|
13552
13552
|
return Ko ? {
|
|
13553
13553
|
popperRect: le.getBoundingClientRect(),
|
|
@@ -13555,7 +13555,7 @@ function h1(o, e) {
|
|
|
13555
13555
|
props: t
|
|
13556
13556
|
} : null;
|
|
13557
13557
|
}).filter(Boolean);
|
|
13558
|
-
t1(
|
|
13558
|
+
t1(ce, D) && (G(), Ae(D));
|
|
13559
13559
|
}
|
|
13560
13560
|
}
|
|
13561
13561
|
function Ct(D) {
|
|
@@ -13565,20 +13565,20 @@ function h1(o, e) {
|
|
|
13565
13565
|
b.hideWithInteractivity(D);
|
|
13566
13566
|
return;
|
|
13567
13567
|
}
|
|
13568
|
-
|
|
13568
|
+
Ae(D);
|
|
13569
13569
|
}
|
|
13570
13570
|
}
|
|
13571
13571
|
function de(D) {
|
|
13572
|
-
b.props.trigger.indexOf("focusin") < 0 && D.target !==
|
|
13572
|
+
b.props.trigger.indexOf("focusin") < 0 && D.target !== se() || b.props.interactive && D.relatedTarget && _.contains(D.relatedTarget) || Ae(D);
|
|
13573
13573
|
}
|
|
13574
13574
|
function $t(D) {
|
|
13575
13575
|
return Ot.isTouch ? Q() !== D.type.indexOf("touch") >= 0 : !1;
|
|
13576
13576
|
}
|
|
13577
13577
|
function lt() {
|
|
13578
13578
|
M();
|
|
13579
|
-
var D = b.props, $ = D.popperOptions, Y = D.placement,
|
|
13579
|
+
var D = b.props, $ = D.popperOptions, Y = D.placement, ce = D.offset, le = D.getReferenceClientRect, qe = D.moveTransition, mt = ie() ? yr(_).arrow : null, Ko = le ? {
|
|
13580
13580
|
getBoundingClientRect: le,
|
|
13581
|
-
contextElement: le.contextElement ||
|
|
13581
|
+
contextElement: le.contextElement || se()
|
|
13582
13582
|
} : o, El = {
|
|
13583
13583
|
name: "$$tippy",
|
|
13584
13584
|
enabled: !0,
|
|
@@ -13586,8 +13586,8 @@ function h1(o, e) {
|
|
|
13586
13586
|
requires: ["computeStyles"],
|
|
13587
13587
|
fn: function(va) {
|
|
13588
13588
|
var Go = va.state;
|
|
13589
|
-
if (
|
|
13590
|
-
var Bu =
|
|
13589
|
+
if (ie()) {
|
|
13590
|
+
var Bu = R(), ci = Bu.box;
|
|
13591
13591
|
["placement", "reference-hidden", "escaped"].forEach(function(ja) {
|
|
13592
13592
|
ja === "placement" ? ci.setAttribute("data-placement", Go.placement) : Go.attributes.popper["data-popper-" + ja] ? ci.setAttribute("data-" + ja, "") : ci.removeAttribute("data-" + ja);
|
|
13593
13593
|
}), Go.attributes.popper = {};
|
|
@@ -13596,7 +13596,7 @@ function h1(o, e) {
|
|
|
13596
13596
|
}, _o = [{
|
|
13597
13597
|
name: "offset",
|
|
13598
13598
|
options: {
|
|
13599
|
-
offset:
|
|
13599
|
+
offset: ce
|
|
13600
13600
|
}
|
|
13601
13601
|
}, {
|
|
13602
13602
|
name: "preventOverflow",
|
|
@@ -13619,7 +13619,7 @@ function h1(o, e) {
|
|
|
13619
13619
|
adaptive: !qe
|
|
13620
13620
|
}
|
|
13621
13621
|
}, El];
|
|
13622
|
-
|
|
13622
|
+
ie() && mt && _o.push({
|
|
13623
13623
|
name: "arrow",
|
|
13624
13624
|
options: {
|
|
13625
13625
|
element: mt,
|
|
@@ -13635,7 +13635,7 @@ function h1(o, e) {
|
|
|
13635
13635
|
b.popperInstance && (b.popperInstance.destroy(), b.popperInstance = null);
|
|
13636
13636
|
}
|
|
13637
13637
|
function Ve() {
|
|
13638
|
-
var D = b.props.appendTo, $, Y =
|
|
13638
|
+
var D = b.props.appendTo, $, Y = se();
|
|
13639
13639
|
b.props.interactive && D === zd || D === "parent" ? $ = Y.parentNode : $ = $d(D, [Y]), $.contains(_) || $.appendChild(_), b.state.isMounted = !0, lt(), process.env.NODE_ENV !== "production" && Wt(b.props.interactive && D === nt.appendTo && Y.nextElementSibling !== _, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
13640
13640
|
|
|
13641
13641
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
@@ -13648,19 +13648,19 @@ function h1(o, e) {
|
|
|
13648
13648
|
return ps(_.querySelectorAll("[data-tippy-root]"));
|
|
13649
13649
|
}
|
|
13650
13650
|
function V(D) {
|
|
13651
|
-
b.clearDelayTimeouts(), D && y("onTrigger", [b, D]),
|
|
13652
|
-
var $ =
|
|
13653
|
-
Ot.isTouch &&
|
|
13651
|
+
b.clearDelayTimeouts(), D && y("onTrigger", [b, D]), oe();
|
|
13652
|
+
var $ = H(!0), Y = q(), ce = Y[0], le = Y[1];
|
|
13653
|
+
Ot.isTouch && ce === "hold" && le && ($ = le), $ ? n = setTimeout(function() {
|
|
13654
13654
|
b.show();
|
|
13655
13655
|
}, $) : b.show();
|
|
13656
13656
|
}
|
|
13657
|
-
function
|
|
13657
|
+
function Ae(D) {
|
|
13658
13658
|
if (b.clearDelayTimeouts(), y("onUntrigger", [b, D]), !b.state.isVisible) {
|
|
13659
|
-
|
|
13659
|
+
pe();
|
|
13660
13660
|
return;
|
|
13661
13661
|
}
|
|
13662
13662
|
if (!(b.props.trigger.indexOf("mouseenter") >= 0 && b.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(D.type) >= 0 && i)) {
|
|
13663
|
-
var $ =
|
|
13663
|
+
var $ = H(!1);
|
|
13664
13664
|
$ ? a = setTimeout(function() {
|
|
13665
13665
|
b.state.isVisible && b.hide();
|
|
13666
13666
|
}, $) : s = requestAnimationFrame(function() {
|
|
@@ -13683,10 +13683,10 @@ function h1(o, e) {
|
|
|
13683
13683
|
var $ = b.props, Y = Xp(o, Object.assign({}, $, Up(D), {
|
|
13684
13684
|
ignoreAttributes: !0
|
|
13685
13685
|
}));
|
|
13686
|
-
b.props = Y, Et(), $.interactiveDebounce !== Y.interactiveDebounce && (G(), g = qp(
|
|
13687
|
-
|
|
13688
|
-
}) : Y.triggerTarget && o.removeAttribute("aria-expanded"), B(), v(), P && P($, Y), b.popperInstance && (lt(), Z().forEach(function(
|
|
13689
|
-
requestAnimationFrame(
|
|
13686
|
+
b.props = Y, Et(), $.interactiveDebounce !== Y.interactiveDebounce && (G(), g = qp(Xe, Y.interactiveDebounce)), $.triggerTarget && !Y.triggerTarget ? nn($.triggerTarget).forEach(function(ce) {
|
|
13687
|
+
ce.removeAttribute("aria-expanded");
|
|
13688
|
+
}) : Y.triggerTarget && o.removeAttribute("aria-expanded"), B(), v(), P && P($, Y), b.popperInstance && (lt(), Z().forEach(function(ce) {
|
|
13689
|
+
requestAnimationFrame(ce._tippy.popperInstance.forceUpdate);
|
|
13690
13690
|
})), y("onAfterUpdate", [b, D]);
|
|
13691
13691
|
}
|
|
13692
13692
|
}
|
|
@@ -13697,20 +13697,20 @@ function h1(o, e) {
|
|
|
13697
13697
|
}
|
|
13698
13698
|
function O() {
|
|
13699
13699
|
process.env.NODE_ENV !== "production" && Wt(b.state.isDestroyed, Xo("show"));
|
|
13700
|
-
var D = b.state.isVisible, $ = b.state.isDestroyed, Y = !b.state.isEnabled,
|
|
13701
|
-
if (!(D || $ || Y ||
|
|
13702
|
-
if (b.state.isVisible = !0,
|
|
13703
|
-
var qe =
|
|
13700
|
+
var D = b.state.isVisible, $ = b.state.isDestroyed, Y = !b.state.isEnabled, ce = Ot.isTouch && !b.props.touch, le = Si(b.props.duration, 0, nt.duration);
|
|
13701
|
+
if (!(D || $ || Y || ce) && !se().hasAttribute("disabled") && (y("onShow", [b], !1), b.props.onShow(b) !== !1)) {
|
|
13702
|
+
if (b.state.isVisible = !0, ie() && (_.style.visibility = "visible"), v(), oe(), b.state.isMounted || (_.style.transition = "none"), ie()) {
|
|
13703
|
+
var qe = R(), mt = qe.box, Ko = qe.content;
|
|
13704
13704
|
Mi([mt, Ko], 0);
|
|
13705
13705
|
}
|
|
13706
13706
|
d = function() {
|
|
13707
13707
|
var _o;
|
|
13708
13708
|
if (!(!b.state.isVisible || p)) {
|
|
13709
|
-
if (p = !0, _.offsetHeight, _.style.transition = b.props.moveTransition,
|
|
13710
|
-
var pi =
|
|
13709
|
+
if (p = !0, _.offsetHeight, _.style.transition = b.props.moveTransition, ie() && b.props.animation) {
|
|
13710
|
+
var pi = R(), va = pi.box, Go = pi.content;
|
|
13711
13711
|
Mi([va, Go], le), Kp([va, Go], "visible");
|
|
13712
13712
|
}
|
|
13713
|
-
F(), B(), Wp(Oi, b), (_o = b.popperInstance) == null || _o.forceUpdate(), y("onMount", [b]), b.props.animation &&
|
|
13713
|
+
F(), B(), Wp(Oi, b), (_o = b.popperInstance) == null || _o.forceUpdate(), y("onMount", [b]), b.props.animation && ie() && He(le, function() {
|
|
13714
13714
|
b.state.isShown = !0, y("onShown", [b]);
|
|
13715
13715
|
});
|
|
13716
13716
|
}
|
|
@@ -13719,17 +13719,17 @@ function h1(o, e) {
|
|
|
13719
13719
|
}
|
|
13720
13720
|
function z() {
|
|
13721
13721
|
process.env.NODE_ENV !== "production" && Wt(b.state.isDestroyed, Xo("hide"));
|
|
13722
|
-
var D = !b.state.isVisible, $ = b.state.isDestroyed, Y = !b.state.isEnabled,
|
|
13722
|
+
var D = !b.state.isVisible, $ = b.state.isDestroyed, Y = !b.state.isEnabled, ce = Si(b.props.duration, 1, nt.duration);
|
|
13723
13723
|
if (!(D || $ || Y) && (y("onHide", [b], !1), b.props.onHide(b) !== !1)) {
|
|
13724
|
-
if (b.state.isVisible = !1, b.state.isShown = !1, p = !1, i = !1,
|
|
13725
|
-
var le =
|
|
13726
|
-
b.props.animation && (Mi([qe, mt],
|
|
13724
|
+
if (b.state.isVisible = !1, b.state.isShown = !1, p = !1, i = !1, ie() && (_.style.visibility = "hidden"), G(), pe(), v(!0), ie()) {
|
|
13725
|
+
var le = R(), qe = le.box, mt = le.content;
|
|
13726
|
+
b.props.animation && (Mi([qe, mt], ce), Kp([qe, mt], "hidden"));
|
|
13727
13727
|
}
|
|
13728
|
-
F(), B(), b.props.animation ?
|
|
13728
|
+
F(), B(), b.props.animation ? ie() && st(ce, b.unmount) : b.unmount();
|
|
13729
13729
|
}
|
|
13730
13730
|
}
|
|
13731
13731
|
function re(D) {
|
|
13732
|
-
process.env.NODE_ENV !== "production" && Wt(b.state.isDestroyed, Xo("hideWithInteractivity")),
|
|
13732
|
+
process.env.NODE_ENV !== "production" && Wt(b.state.isDestroyed, Xo("hideWithInteractivity")), me().addEventListener("mousemove", g), Wp(Ea, g), g(D);
|
|
13733
13733
|
}
|
|
13734
13734
|
function ye() {
|
|
13735
13735
|
process.env.NODE_ENV !== "production" && Wt(b.state.isDestroyed, Xo("unmount")), b.state.isVisible && b.hide(), b.state.isMounted && (M(), Z().forEach(function(D) {
|
|
@@ -13882,7 +13882,7 @@ const Gd = (o) => new fe({
|
|
|
13882
13882
|
key: typeof o.pluginKey == "string" ? new we(o.pluginKey) : o.pluginKey,
|
|
13883
13883
|
view: (e) => new b1({ view: e, ...o })
|
|
13884
13884
|
});
|
|
13885
|
-
|
|
13885
|
+
Oe.create({
|
|
13886
13886
|
name: "bubbleMenu",
|
|
13887
13887
|
addOptions() {
|
|
13888
13888
|
return {
|
|
@@ -13974,7 +13974,7 @@ const Jd = (o) => new fe({
|
|
|
13974
13974
|
key: typeof o.pluginKey == "string" ? new we(o.pluginKey) : o.pluginKey,
|
|
13975
13975
|
view: (e) => new v1({ view: e, ...o })
|
|
13976
13976
|
});
|
|
13977
|
-
|
|
13977
|
+
Oe.create({
|
|
13978
13978
|
name: "floatingMenu",
|
|
13979
13979
|
addOptions() {
|
|
13980
13980
|
return {
|
|
@@ -14021,7 +14021,7 @@ je({
|
|
|
14021
14021
|
}
|
|
14022
14022
|
},
|
|
14023
14023
|
setup(o, { slots: e }) {
|
|
14024
|
-
const t =
|
|
14024
|
+
const t = Ce(null);
|
|
14025
14025
|
return la(() => {
|
|
14026
14026
|
const { updateDelay: n, editor: a, pluginKey: s, shouldShow: i, tippyOptions: r } = o;
|
|
14027
14027
|
a.registerPlugin(Gd({
|
|
@@ -14091,13 +14091,13 @@ const k1 = je({
|
|
|
14091
14091
|
}
|
|
14092
14092
|
},
|
|
14093
14093
|
setup(o) {
|
|
14094
|
-
const e =
|
|
14094
|
+
const e = Ce(), t = zu();
|
|
14095
14095
|
return $u(() => {
|
|
14096
14096
|
const n = o.editor;
|
|
14097
14097
|
n && n.options.element && e.value && Hu(() => {
|
|
14098
14098
|
if (!e.value || !n.options.element.firstChild)
|
|
14099
14099
|
return;
|
|
14100
|
-
const a =
|
|
14100
|
+
const a = We(e.value);
|
|
14101
14101
|
e.value.append(...n.options.element.childNodes), n.contentComponent = t.ctx._, t && (n.appContext = {
|
|
14102
14102
|
...t.appContext,
|
|
14103
14103
|
// Vue internally uses prototype chain to forward/shadow injects across the entire component chain
|
|
@@ -14151,7 +14151,7 @@ je({
|
|
|
14151
14151
|
}
|
|
14152
14152
|
},
|
|
14153
14153
|
setup(o, { slots: e }) {
|
|
14154
|
-
const t =
|
|
14154
|
+
const t = Ce(null);
|
|
14155
14155
|
return la(() => {
|
|
14156
14156
|
const { pluginKey: n, editor: a, tippyOptions: s, shouldShow: i } = o;
|
|
14157
14157
|
a.registerPlugin(Jd({
|
|
@@ -14601,7 +14601,7 @@ const D1 = { class: "sus-emoji-panel grid" }, w1 = ["onClick", "src", "alt", "ti
|
|
|
14601
14601
|
if (!s || a.parent.type !== this.type || !(a.parentOffset === a.parent.nodeSize - 2))
|
|
14602
14602
|
return !1;
|
|
14603
14603
|
const r = a.after();
|
|
14604
|
-
return r === void 0 ? !1 : n.nodeAt(r) ? o.commands.command(({ tr: p }) => (p.setSelection(
|
|
14604
|
+
return r === void 0 ? !1 : n.nodeAt(r) ? o.commands.command(({ tr: p }) => (p.setSelection(ee.near(n.resolve(r))), !0)) : o.commands.exitCode();
|
|
14605
14605
|
}
|
|
14606
14606
|
};
|
|
14607
14607
|
},
|
|
@@ -14728,7 +14728,7 @@ class H1 {
|
|
|
14728
14728
|
(e.target == this.editorView.dom || !this.editorView.dom.contains(e.relatedTarget)) && this.setCursor(null);
|
|
14729
14729
|
}
|
|
14730
14730
|
}
|
|
14731
|
-
const V1 =
|
|
14731
|
+
const V1 = Oe.create({
|
|
14732
14732
|
name: "dropCursor",
|
|
14733
14733
|
addOptions() {
|
|
14734
14734
|
return {
|
|
@@ -14743,7 +14743,7 @@ const V1 = Fe.create({
|
|
|
14743
14743
|
];
|
|
14744
14744
|
}
|
|
14745
14745
|
});
|
|
14746
|
-
class ve extends
|
|
14746
|
+
class ve extends ee {
|
|
14747
14747
|
/**
|
|
14748
14748
|
Create a gap cursor.
|
|
14749
14749
|
*/
|
|
@@ -14752,7 +14752,7 @@ class ve extends te {
|
|
|
14752
14752
|
}
|
|
14753
14753
|
map(e, t) {
|
|
14754
14754
|
let n = e.resolve(t.map(this.head));
|
|
14755
|
-
return ve.valid(n) ? new ve(n) :
|
|
14755
|
+
return ve.valid(n) ? new ve(n) : ee.near(n);
|
|
14756
14756
|
}
|
|
14757
14757
|
content() {
|
|
14758
14758
|
return N.empty;
|
|
@@ -14830,7 +14830,7 @@ class ve extends te {
|
|
|
14830
14830
|
}
|
|
14831
14831
|
ve.prototype.visible = !1;
|
|
14832
14832
|
ve.findFrom = ve.findGapCursorFrom;
|
|
14833
|
-
|
|
14833
|
+
ee.jsonID("gapcursor", ve);
|
|
14834
14834
|
class pl {
|
|
14835
14835
|
constructor(e) {
|
|
14836
14836
|
this.pos = e;
|
|
@@ -14840,7 +14840,7 @@ class pl {
|
|
|
14840
14840
|
}
|
|
14841
14841
|
resolve(e) {
|
|
14842
14842
|
let t = e.resolve(this.pos);
|
|
14843
|
-
return ve.valid(t) ? new ve(t) :
|
|
14843
|
+
return ve.valid(t) ? new ve(t) : ee.near(t);
|
|
14844
14844
|
}
|
|
14845
14845
|
}
|
|
14846
14846
|
function q1(o) {
|
|
@@ -14934,9 +14934,9 @@ function Y1(o) {
|
|
|
14934
14934
|
if (!(o.selection instanceof ve))
|
|
14935
14935
|
return null;
|
|
14936
14936
|
let e = document.createElement("div");
|
|
14937
|
-
return e.className = "ProseMirror-gapcursor", be.create(o.doc, [
|
|
14937
|
+
return e.className = "ProseMirror-gapcursor", be.create(o.doc, [Ke.widget(o.selection.head, e, { key: "gapcursor" })]);
|
|
14938
14938
|
}
|
|
14939
|
-
const X1 =
|
|
14939
|
+
const X1 = Oe.create({
|
|
14940
14940
|
name: "gapCursor",
|
|
14941
14941
|
addProseMirrorPlugins() {
|
|
14942
14942
|
return [
|
|
@@ -14951,7 +14951,7 @@ const X1 = Fe.create({
|
|
|
14951
14951
|
storage: o.storage
|
|
14952
14952
|
};
|
|
14953
14953
|
return {
|
|
14954
|
-
allowGapCursor: (e =
|
|
14954
|
+
allowGapCursor: (e = ne(L(o, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
|
|
14955
14955
|
};
|
|
14956
14956
|
}
|
|
14957
14957
|
}), Z1 = ze.create({
|
|
@@ -15053,36 +15053,36 @@ const X1 = Fe.create({
|
|
|
15053
15053
|
}));
|
|
15054
15054
|
}
|
|
15055
15055
|
});
|
|
15056
|
-
var ms = 200,
|
|
15056
|
+
var ms = 200, Me = function() {
|
|
15057
15057
|
};
|
|
15058
|
-
|
|
15059
|
-
return e.length ? (e =
|
|
15058
|
+
Me.prototype.append = function(e) {
|
|
15059
|
+
return e.length ? (e = Me.from(e), !this.length && e || e.length < ms && this.leafAppend(e) || this.length < ms && e.leafPrepend(this) || this.appendInner(e)) : this;
|
|
15060
15060
|
};
|
|
15061
|
-
|
|
15062
|
-
return e.length ?
|
|
15061
|
+
Me.prototype.prepend = function(e) {
|
|
15062
|
+
return e.length ? Me.from(e).append(this) : this;
|
|
15063
15063
|
};
|
|
15064
|
-
|
|
15064
|
+
Me.prototype.appendInner = function(e) {
|
|
15065
15065
|
return new ek(this, e);
|
|
15066
15066
|
};
|
|
15067
|
-
|
|
15068
|
-
return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ?
|
|
15067
|
+
Me.prototype.slice = function(e, t) {
|
|
15068
|
+
return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? Me.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
|
|
15069
15069
|
};
|
|
15070
|
-
|
|
15070
|
+
Me.prototype.get = function(e) {
|
|
15071
15071
|
if (!(e < 0 || e >= this.length))
|
|
15072
15072
|
return this.getInner(e);
|
|
15073
15073
|
};
|
|
15074
|
-
|
|
15074
|
+
Me.prototype.forEach = function(e, t, n) {
|
|
15075
15075
|
t === void 0 && (t = 0), n === void 0 && (n = this.length), t <= n ? this.forEachInner(e, t, n, 0) : this.forEachInvertedInner(e, t, n, 0);
|
|
15076
15076
|
};
|
|
15077
|
-
|
|
15077
|
+
Me.prototype.map = function(e, t, n) {
|
|
15078
15078
|
t === void 0 && (t = 0), n === void 0 && (n = this.length);
|
|
15079
15079
|
var a = [];
|
|
15080
15080
|
return this.forEach(function(s, i) {
|
|
15081
15081
|
return a.push(e(s, i));
|
|
15082
15082
|
}, t, n), a;
|
|
15083
15083
|
};
|
|
15084
|
-
|
|
15085
|
-
return e instanceof
|
|
15084
|
+
Me.from = function(e) {
|
|
15085
|
+
return e instanceof Me ? e : e && e.length ? new Xd(e) : Me.empty;
|
|
15086
15086
|
};
|
|
15087
15087
|
var Xd = /* @__PURE__ */ function(o) {
|
|
15088
15088
|
function e(n) {
|
|
@@ -15115,8 +15115,8 @@ var Xd = /* @__PURE__ */ function(o) {
|
|
|
15115
15115
|
}, t.depth.get = function() {
|
|
15116
15116
|
return 0;
|
|
15117
15117
|
}, Object.defineProperties(e.prototype, t), e;
|
|
15118
|
-
}(
|
|
15119
|
-
|
|
15118
|
+
}(Me);
|
|
15119
|
+
Me.empty = new Xd([]);
|
|
15120
15120
|
var ek = /* @__PURE__ */ function(o) {
|
|
15121
15121
|
function e(t, n) {
|
|
15122
15122
|
o.call(this), this.left = t, this.right = n, this.length = t.length + n.length, this.depth = Math.max(t.depth, n.depth) + 1;
|
|
@@ -15149,7 +15149,7 @@ var ek = /* @__PURE__ */ function(o) {
|
|
|
15149
15149
|
}, e.prototype.appendInner = function(n) {
|
|
15150
15150
|
return this.left.depth >= Math.max(this.right.depth, n.depth) + 1 ? new e(this.left, new e(this.right, n)) : new e(this, n);
|
|
15151
15151
|
}, e;
|
|
15152
|
-
}(
|
|
15152
|
+
}(Me);
|
|
15153
15153
|
const tk = 500;
|
|
15154
15154
|
class wt {
|
|
15155
15155
|
constructor(e, t) {
|
|
@@ -15260,10 +15260,10 @@ class wt {
|
|
|
15260
15260
|
(d = a.length && a[u].merge(m)) ? a[u] = d : a.push(m);
|
|
15261
15261
|
}
|
|
15262
15262
|
} else i.map && n--;
|
|
15263
|
-
}, this.items.length, 0), new wt(
|
|
15263
|
+
}, this.items.length, 0), new wt(Me.from(a.reverse()), s);
|
|
15264
15264
|
}
|
|
15265
15265
|
}
|
|
15266
|
-
wt.empty = new wt(
|
|
15266
|
+
wt.empty = new wt(Me.empty, 0);
|
|
15267
15267
|
function ok(o, e) {
|
|
15268
15268
|
let t;
|
|
15269
15269
|
return o.forEach((n, a) => {
|
|
@@ -15389,7 +15389,7 @@ function Zd(o, e) {
|
|
|
15389
15389
|
return !0;
|
|
15390
15390
|
};
|
|
15391
15391
|
}
|
|
15392
|
-
const Qd = Zd(!1, !0), eu = Zd(!0, !0), pk =
|
|
15392
|
+
const Qd = Zd(!1, !0), eu = Zd(!0, !0), pk = Oe.create({
|
|
15393
15393
|
name: "history",
|
|
15394
15394
|
addOptions() {
|
|
15395
15395
|
return {
|
|
@@ -15682,7 +15682,7 @@ const Qd = Zd(!1, !0), eu = Zd(!0, !0), pk = Fe.create({
|
|
|
15682
15682
|
}), yk = ze.create({
|
|
15683
15683
|
name: "text",
|
|
15684
15684
|
group: "inline"
|
|
15685
|
-
}), _k =
|
|
15685
|
+
}), _k = Oe.create({
|
|
15686
15686
|
name: "starterKit",
|
|
15687
15687
|
addExtensions() {
|
|
15688
15688
|
var o, e, t, n, a, s, i, r, l, p, c, m, d, u, g, f, h, j;
|
|
@@ -15748,7 +15748,7 @@ const Qd = Zd(!1, !0), eu = Zd(!0, !0), pk = Fe.create({
|
|
|
15748
15748
|
})
|
|
15749
15749
|
];
|
|
15750
15750
|
}
|
|
15751
|
-
}), Ik =
|
|
15751
|
+
}), Ik = Oe.create({
|
|
15752
15752
|
name: "placeholder",
|
|
15753
15753
|
addOptions() {
|
|
15754
15754
|
return {
|
|
@@ -15775,7 +15775,7 @@ const Qd = Zd(!1, !0), eu = Zd(!0, !0), pk = Fe.create({
|
|
|
15775
15775
|
if ((l || !this.options.showOnlyCurrent) && p) {
|
|
15776
15776
|
const c = [this.options.emptyNodeClass];
|
|
15777
15777
|
s && c.push(this.options.emptyEditorClass);
|
|
15778
|
-
const m =
|
|
15778
|
+
const m = Ke.node(r, r + i.nodeSize, {
|
|
15779
15779
|
class: c.join(" "),
|
|
15780
15780
|
"data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
|
|
15781
15781
|
editor: this.editor,
|
|
@@ -15825,10 +15825,10 @@ function xk({ pluginKey: o = Ck, editor: e, char: t = "@", allowSpaces: n = !1,
|
|
|
15825
15825
|
return {
|
|
15826
15826
|
update: async (h, j) => {
|
|
15827
15827
|
var w, S, b, T, _, P, K;
|
|
15828
|
-
const E = (w = this.key) === null || w === void 0 ? void 0 : w.getState(j), q = (S = this.key) === null || S === void 0 ? void 0 : S.getState(h.state), Q = E.active && q.active && E.range.from !== q.range.from,
|
|
15829
|
-
if (!
|
|
15828
|
+
const E = (w = this.key) === null || w === void 0 ? void 0 : w.getState(j), q = (S = this.key) === null || S === void 0 ? void 0 : S.getState(h.state), Q = E.active && q.active && E.range.from !== q.range.from, ie = !E.active && q.active, se = E.active && !q.active, me = !ie && !se && E.query !== q.query, R = ie || Q && me, H = me || Q, v = se || Q && me;
|
|
15829
|
+
if (!R && !H && !v)
|
|
15830
15830
|
return;
|
|
15831
|
-
const y = v && !
|
|
15831
|
+
const y = v && !R ? E : q, F = h.dom.querySelector(`[data-decoration-id="${y.decorationId}"]`);
|
|
15832
15832
|
u = {
|
|
15833
15833
|
editor: e,
|
|
15834
15834
|
range: y.range,
|
|
@@ -15845,13 +15845,13 @@ function xk({ pluginKey: o = Ck, editor: e, char: t = "@", allowSpaces: n = !1,
|
|
|
15845
15845
|
// this can be used for building popups without a DOM node
|
|
15846
15846
|
clientRect: F ? () => {
|
|
15847
15847
|
var B;
|
|
15848
|
-
const { decorationId: G } = (B = this.key) === null || B === void 0 ? void 0 : B.getState(e.state),
|
|
15849
|
-
return (
|
|
15848
|
+
const { decorationId: G } = (B = this.key) === null || B === void 0 ? void 0 : B.getState(e.state), ae = h.dom.querySelector(`[data-decoration-id="${G}"]`);
|
|
15849
|
+
return (ae == null ? void 0 : ae.getBoundingClientRect()) || null;
|
|
15850
15850
|
} : null
|
|
15851
|
-
},
|
|
15851
|
+
}, R && ((b = g == null ? void 0 : g.onBeforeStart) === null || b === void 0 || b.call(g, u)), H && ((T = g == null ? void 0 : g.onBeforeUpdate) === null || T === void 0 || T.call(g, u)), (H || R) && (u.items = await p({
|
|
15852
15852
|
editor: e,
|
|
15853
15853
|
query: y.query
|
|
15854
|
-
})), v && ((_ = g == null ? void 0 : g.onExit) === null || _ === void 0 || _.call(g, u)),
|
|
15854
|
+
})), v && ((_ = g == null ? void 0 : g.onExit) === null || _ === void 0 || _.call(g, u)), H && ((P = g == null ? void 0 : g.onUpdate) === null || P === void 0 || P.call(g, u)), R && ((K = g == null ? void 0 : g.onStart) === null || K === void 0 || K.call(g, u));
|
|
15855
15855
|
},
|
|
15856
15856
|
destroy: () => {
|
|
15857
15857
|
var h;
|
|
@@ -15907,7 +15907,7 @@ function xk({ pluginKey: o = Ck, editor: e, char: t = "@", allowSpaces: n = !1,
|
|
|
15907
15907
|
decorations(h) {
|
|
15908
15908
|
const { active: j, range: w, decorationId: S } = f.getState(h);
|
|
15909
15909
|
return j ? be.create(h.doc, [
|
|
15910
|
-
|
|
15910
|
+
Ke.inline(w.from, w.to, {
|
|
15911
15911
|
nodeName: i,
|
|
15912
15912
|
class: r,
|
|
15913
15913
|
"data-decoration-id": S
|
|
@@ -16043,7 +16043,7 @@ const Tk = new we("emojiSuggestion"), Nk = /:([a-zA-Z0-9_+-]+):$/, Bk = /:([a-zA
|
|
|
16043
16043
|
editor: {}
|
|
16044
16044
|
},
|
|
16045
16045
|
setup(o) {
|
|
16046
|
-
const e = o, t =
|
|
16046
|
+
const e = o, t = Ce(0);
|
|
16047
16047
|
qu(() => e.items, () => {
|
|
16048
16048
|
t.value = 0;
|
|
16049
16049
|
});
|
|
@@ -16784,17 +16784,17 @@ const Bi = ou, cc = po, mc = Symbol("nomatch"), By = 7, uu = function(o) {
|
|
|
16784
16784
|
let B = "", G = "";
|
|
16785
16785
|
typeof y == "object" ? (B = v, F = y.ignoreIllegals, G = y.language) : (Zo("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Zo("10.7.0", `Please use highlight(code, options) instead.
|
|
16786
16786
|
https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F === void 0 && (F = !0);
|
|
16787
|
-
const
|
|
16787
|
+
const ae = {
|
|
16788
16788
|
code: B,
|
|
16789
16789
|
language: G
|
|
16790
16790
|
};
|
|
16791
|
-
|
|
16792
|
-
const ge =
|
|
16793
|
-
return ge.code =
|
|
16791
|
+
R("before:highlight", ae);
|
|
16792
|
+
const ge = ae.result ? ae.result : m(ae.language, ae.code, F);
|
|
16793
|
+
return ge.code = ae.code, R("after:highlight", ge), ge;
|
|
16794
16794
|
}
|
|
16795
16795
|
function m(v, y, F, B) {
|
|
16796
16796
|
const G = /* @__PURE__ */ Object.create(null);
|
|
16797
|
-
function
|
|
16797
|
+
function ae(k, I) {
|
|
16798
16798
|
return k.keywords[I];
|
|
16799
16799
|
}
|
|
16800
16800
|
function ge() {
|
|
@@ -16807,14 +16807,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
16807
16807
|
let I = M.keywordPatternRe.exec(V), O = "";
|
|
16808
16808
|
for (; I; ) {
|
|
16809
16809
|
O += V.substring(k, I.index);
|
|
16810
|
-
const z = de.case_insensitive ? I[0].toLowerCase() : I[0], re =
|
|
16810
|
+
const z = de.case_insensitive ? I[0].toLowerCase() : I[0], re = ae(M, z);
|
|
16811
16811
|
if (re) {
|
|
16812
16812
|
const [ye, Cn] = re;
|
|
16813
|
-
if (Z.addText(O), O = "", G[z] = (G[z] || 0) + 1, G[z] <= By && (
|
|
16813
|
+
if (Z.addText(O), O = "", G[z] = (G[z] || 0) + 1, G[z] <= By && (Ae += Cn), ye.startsWith("_"))
|
|
16814
16814
|
O += I[0];
|
|
16815
16815
|
else {
|
|
16816
16816
|
const D = de.classNameAliases[ye] || ye;
|
|
16817
|
-
|
|
16817
|
+
pe(I[0], D);
|
|
16818
16818
|
}
|
|
16819
16819
|
} else
|
|
16820
16820
|
O += I[0];
|
|
@@ -16834,12 +16834,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
16834
16834
|
k._top;
|
|
16835
16835
|
} else
|
|
16836
16836
|
k = u(V, M.subLanguage.length ? M.subLanguage : null);
|
|
16837
|
-
M.relevance > 0 && (
|
|
16837
|
+
M.relevance > 0 && (Ae += k.relevance), Z.__addSublanguage(k._emitter, k.language);
|
|
16838
16838
|
}
|
|
16839
|
-
function
|
|
16839
|
+
function oe() {
|
|
16840
16840
|
M.subLanguage != null ? Ie() : ge(), V = "";
|
|
16841
16841
|
}
|
|
16842
|
-
function
|
|
16842
|
+
function pe(k, I) {
|
|
16843
16843
|
k !== "" && (Z.startScope(I), Z.addText(k), Z.endScope());
|
|
16844
16844
|
}
|
|
16845
16845
|
function st(k, I) {
|
|
@@ -16851,11 +16851,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
16851
16851
|
continue;
|
|
16852
16852
|
}
|
|
16853
16853
|
const re = de.classNameAliases[k[O]] || k[O], ye = I[O];
|
|
16854
|
-
re ?
|
|
16854
|
+
re ? pe(ye, re) : (V = ye, ge(), V = ""), O++;
|
|
16855
16855
|
}
|
|
16856
16856
|
}
|
|
16857
16857
|
function He(k, I) {
|
|
16858
|
-
return k.scope && typeof k.scope == "string" && Z.openNode(de.classNameAliases[k.scope] || k.scope), k.beginScope && (k.beginScope._wrap ? (
|
|
16858
|
+
return k.scope && typeof k.scope == "string" && Z.openNode(de.classNameAliases[k.scope] || k.scope), k.beginScope && (k.beginScope._wrap ? (pe(V, de.classNameAliases[k.beginScope._wrap] || k.beginScope._wrap), V = "") : k.beginScope._multi && (st(k.beginScope, I), V = "")), M = Object.create(k, { parent: { value: M } }), M;
|
|
16859
16859
|
}
|
|
16860
16860
|
function it(k, I, O) {
|
|
16861
16861
|
let z = Zk(k.endRe, O);
|
|
@@ -16881,16 +16881,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
16881
16881
|
for (const ye of re)
|
|
16882
16882
|
if (ye && (ye(k, z), z.isMatchIgnored))
|
|
16883
16883
|
return rt(I);
|
|
16884
|
-
return O.skip ? V += I : (O.excludeBegin && (V += I),
|
|
16884
|
+
return O.skip ? V += I : (O.excludeBegin && (V += I), oe(), !O.returnBegin && !O.excludeBegin && (V = I)), He(O, k), O.returnBegin ? 0 : I.length;
|
|
16885
16885
|
}
|
|
16886
16886
|
function Zt(k) {
|
|
16887
16887
|
const I = k[0], O = y.substring(k.index), z = it(M, k, O);
|
|
16888
16888
|
if (!z)
|
|
16889
16889
|
return mc;
|
|
16890
16890
|
const re = M;
|
|
16891
|
-
M.endScope && M.endScope._wrap ? (
|
|
16891
|
+
M.endScope && M.endScope._wrap ? (oe(), pe(I, M.endScope._wrap)) : M.endScope && M.endScope._multi ? (oe(), st(M.endScope, k)) : re.skip ? V += I : (re.returnEnd || re.excludeEnd || (V += I), oe(), re.excludeEnd && (V = I));
|
|
16892
16892
|
do
|
|
16893
|
-
M.scope && Z.closeNode(), !M.skip && !M.subLanguage && (
|
|
16893
|
+
M.scope && Z.closeNode(), !M.skip && !M.subLanguage && (Ae += M.relevance), M = M.parent;
|
|
16894
16894
|
while (M !== z.parent);
|
|
16895
16895
|
return z.starts && He(z.starts, k), re.returnEnd ? 0 : I.length;
|
|
16896
16896
|
}
|
|
@@ -16900,19 +16900,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
16900
16900
|
I.scope && k.unshift(I.scope);
|
|
16901
16901
|
k.forEach((I) => Z.openNode(I));
|
|
16902
16902
|
}
|
|
16903
|
-
let
|
|
16903
|
+
let Xe = {};
|
|
16904
16904
|
function Ct(k, I) {
|
|
16905
16905
|
const O = I && I[0];
|
|
16906
16906
|
if (V += k, O == null)
|
|
16907
|
-
return
|
|
16908
|
-
if (
|
|
16907
|
+
return oe(), 0;
|
|
16908
|
+
if (Xe.type === "begin" && I.type === "end" && Xe.index === I.index && O === "") {
|
|
16909
16909
|
if (V += y.slice(I.index, I.index + 1), !a) {
|
|
16910
16910
|
const z = new Error(`0 width match regex (${v})`);
|
|
16911
|
-
throw z.languageName = v, z.badRule =
|
|
16911
|
+
throw z.languageName = v, z.badRule = Xe.rule, z;
|
|
16912
16912
|
}
|
|
16913
16913
|
return 1;
|
|
16914
16914
|
}
|
|
16915
|
-
if (
|
|
16915
|
+
if (Xe = I, I.type === "begin")
|
|
16916
16916
|
return Et(I);
|
|
16917
16917
|
if (I.type === "illegal" && !F) {
|
|
16918
16918
|
const z = new Error('Illegal lexeme "' + O + '" for mode "' + (M.scope || "<unnamed>") + '"');
|
|
@@ -16935,7 +16935,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
16935
16935
|
let lt = "", M = B || $t;
|
|
16936
16936
|
const Ve = {}, Z = new r.__emitter(r);
|
|
16937
16937
|
zt();
|
|
16938
|
-
let V = "",
|
|
16938
|
+
let V = "", Ae = 0, ke = 0, pt = 0, ct = !1;
|
|
16939
16939
|
try {
|
|
16940
16940
|
if (de.__emitTokens)
|
|
16941
16941
|
de.__emitTokens(y, Z);
|
|
@@ -16952,7 +16952,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
16952
16952
|
return Z.finalize(), lt = Z.toHTML(), {
|
|
16953
16953
|
language: v,
|
|
16954
16954
|
value: lt,
|
|
16955
|
-
relevance:
|
|
16955
|
+
relevance: Ae,
|
|
16956
16956
|
illegal: !1,
|
|
16957
16957
|
_emitter: Z,
|
|
16958
16958
|
_top: M
|
|
@@ -16999,19 +16999,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
16999
16999
|
function u(v, y) {
|
|
17000
17000
|
y = y || r.languages || Object.keys(e);
|
|
17001
17001
|
const F = d(v), B = y.filter(E).filter(Q).map(
|
|
17002
|
-
(
|
|
17002
|
+
(oe) => m(oe, v, !1)
|
|
17003
17003
|
);
|
|
17004
17004
|
B.unshift(F);
|
|
17005
|
-
const G = B.sort((
|
|
17006
|
-
if (
|
|
17007
|
-
if (
|
|
17008
|
-
if (E(
|
|
17005
|
+
const G = B.sort((oe, pe) => {
|
|
17006
|
+
if (oe.relevance !== pe.relevance) return pe.relevance - oe.relevance;
|
|
17007
|
+
if (oe.language && pe.language) {
|
|
17008
|
+
if (E(oe.language).supersetOf === pe.language)
|
|
17009
17009
|
return 1;
|
|
17010
|
-
if (E(
|
|
17010
|
+
if (E(pe.language).supersetOf === oe.language)
|
|
17011
17011
|
return -1;
|
|
17012
17012
|
}
|
|
17013
17013
|
return 0;
|
|
17014
|
-
}), [
|
|
17014
|
+
}), [ae, ge] = G, Ie = ae;
|
|
17015
17015
|
return Ie.secondBest = ge, Ie;
|
|
17016
17016
|
}
|
|
17017
17017
|
function g(v, y, F) {
|
|
@@ -17022,7 +17022,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
17022
17022
|
let y = null;
|
|
17023
17023
|
const F = p(v);
|
|
17024
17024
|
if (l(F)) return;
|
|
17025
|
-
if (
|
|
17025
|
+
if (R(
|
|
17026
17026
|
"before:highlightElement",
|
|
17027
17027
|
{ el: v, language: F }
|
|
17028
17028
|
), v.dataset.highlighted) {
|
|
@@ -17044,7 +17044,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
17044
17044
|
}, G.secondBest && (v.secondBest = {
|
|
17045
17045
|
language: G.secondBest.language,
|
|
17046
17046
|
relevance: G.secondBest.relevance
|
|
17047
|
-
}),
|
|
17047
|
+
}), R("after:highlightElement", { el: v, result: G, text: B });
|
|
17048
17048
|
}
|
|
17049
17049
|
function h(v) {
|
|
17050
17050
|
r = cc(r, v);
|
|
@@ -17100,7 +17100,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
17100
17100
|
const y = E(v);
|
|
17101
17101
|
return y && !y.disableAutodetect;
|
|
17102
17102
|
}
|
|
17103
|
-
function
|
|
17103
|
+
function ie(v) {
|
|
17104
17104
|
v["before:highlightBlock"] && !v["before:highlightElement"] && (v["before:highlightElement"] = (y) => {
|
|
17105
17105
|
v["before:highlightBlock"](
|
|
17106
17106
|
Object.assign({ block: y.el }, y)
|
|
@@ -17111,20 +17111,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
17111
17111
|
);
|
|
17112
17112
|
});
|
|
17113
17113
|
}
|
|
17114
|
-
function
|
|
17115
|
-
|
|
17114
|
+
function se(v) {
|
|
17115
|
+
ie(v), n.push(v);
|
|
17116
17116
|
}
|
|
17117
|
-
function
|
|
17117
|
+
function me(v) {
|
|
17118
17118
|
const y = n.indexOf(v);
|
|
17119
17119
|
y !== -1 && n.splice(y, 1);
|
|
17120
17120
|
}
|
|
17121
|
-
function
|
|
17121
|
+
function R(v, y) {
|
|
17122
17122
|
const F = v;
|
|
17123
17123
|
n.forEach(function(B) {
|
|
17124
17124
|
B[F] && B[F](y);
|
|
17125
17125
|
});
|
|
17126
17126
|
}
|
|
17127
|
-
function
|
|
17127
|
+
function H(v) {
|
|
17128
17128
|
return Zo("10.7.0", "highlightBlock will be removed entirely in v12.0"), Zo("10.7.0", "Please use highlightElement now."), f(v);
|
|
17129
17129
|
}
|
|
17130
17130
|
Object.assign(o, {
|
|
@@ -17133,7 +17133,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
17133
17133
|
highlightAll: b,
|
|
17134
17134
|
highlightElement: f,
|
|
17135
17135
|
// TODO: Remove with v12 API
|
|
17136
|
-
highlightBlock:
|
|
17136
|
+
highlightBlock: H,
|
|
17137
17137
|
configure: h,
|
|
17138
17138
|
initHighlighting: j,
|
|
17139
17139
|
initHighlightingOnLoad: w,
|
|
@@ -17144,8 +17144,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
17144
17144
|
registerAliases: q,
|
|
17145
17145
|
autoDetection: Q,
|
|
17146
17146
|
inherit: cc,
|
|
17147
|
-
addPlugin:
|
|
17148
|
-
removePlugin:
|
|
17147
|
+
addPlugin: se,
|
|
17148
|
+
removePlugin: me
|
|
17149
17149
|
}), o.debugMode = function() {
|
|
17150
17150
|
a = !1;
|
|
17151
17151
|
}, o.safeMode = function() {
|
|
@@ -17190,7 +17190,7 @@ function uc({ doc: o, name: e, lowlight: t, defaultLanguage: n }) {
|
|
|
17190
17190
|
gu(c).forEach((m) => {
|
|
17191
17191
|
const d = r + m.text.length;
|
|
17192
17192
|
if (m.classes.length) {
|
|
17193
|
-
const u =
|
|
17193
|
+
const u = Ke.inline(r, d, {
|
|
17194
17194
|
class: m.classes.join(" ")
|
|
17195
17195
|
});
|
|
17196
17196
|
a.push(u);
|
|
@@ -17943,17 +17943,17 @@ const Ri = hu, jc = co, kc = Symbol("nomatch"), N0 = 7, Eu = function(o) {
|
|
|
17943
17943
|
let B = "", G = "";
|
|
17944
17944
|
typeof y == "object" ? (B = v, F = y.ignoreIllegals, G = y.language) : (Qo("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Qo("10.7.0", `Please use highlight(code, options) instead.
|
|
17945
17945
|
https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F === void 0 && (F = !0);
|
|
17946
|
-
const
|
|
17946
|
+
const ae = {
|
|
17947
17947
|
code: B,
|
|
17948
17948
|
language: G
|
|
17949
17949
|
};
|
|
17950
|
-
|
|
17951
|
-
const ge =
|
|
17952
|
-
return ge.code =
|
|
17950
|
+
R("before:highlight", ae);
|
|
17951
|
+
const ge = ae.result ? ae.result : m(ae.language, ae.code, F);
|
|
17952
|
+
return ge.code = ae.code, R("after:highlight", ge), ge;
|
|
17953
17953
|
}
|
|
17954
17954
|
function m(v, y, F, B) {
|
|
17955
17955
|
const G = /* @__PURE__ */ Object.create(null);
|
|
17956
|
-
function
|
|
17956
|
+
function ae(k, I) {
|
|
17957
17957
|
return k.keywords[I];
|
|
17958
17958
|
}
|
|
17959
17959
|
function ge() {
|
|
@@ -17966,14 +17966,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
17966
17966
|
let I = M.keywordPatternRe.exec(V), O = "";
|
|
17967
17967
|
for (; I; ) {
|
|
17968
17968
|
O += V.substring(k, I.index);
|
|
17969
|
-
const z = de.case_insensitive ? I[0].toLowerCase() : I[0], re =
|
|
17969
|
+
const z = de.case_insensitive ? I[0].toLowerCase() : I[0], re = ae(M, z);
|
|
17970
17970
|
if (re) {
|
|
17971
17971
|
const [ye, Cn] = re;
|
|
17972
|
-
if (Z.addText(O), O = "", G[z] = (G[z] || 0) + 1, G[z] <= N0 && (
|
|
17972
|
+
if (Z.addText(O), O = "", G[z] = (G[z] || 0) + 1, G[z] <= N0 && (Ae += Cn), ye.startsWith("_"))
|
|
17973
17973
|
O += I[0];
|
|
17974
17974
|
else {
|
|
17975
17975
|
const D = de.classNameAliases[ye] || ye;
|
|
17976
|
-
|
|
17976
|
+
pe(I[0], D);
|
|
17977
17977
|
}
|
|
17978
17978
|
} else
|
|
17979
17979
|
O += I[0];
|
|
@@ -17993,12 +17993,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
17993
17993
|
k._top;
|
|
17994
17994
|
} else
|
|
17995
17995
|
k = u(V, M.subLanguage.length ? M.subLanguage : null);
|
|
17996
|
-
M.relevance > 0 && (
|
|
17996
|
+
M.relevance > 0 && (Ae += k.relevance), Z.__addSublanguage(k._emitter, k.language);
|
|
17997
17997
|
}
|
|
17998
|
-
function
|
|
17998
|
+
function oe() {
|
|
17999
17999
|
M.subLanguage != null ? Ie() : ge(), V = "";
|
|
18000
18000
|
}
|
|
18001
|
-
function
|
|
18001
|
+
function pe(k, I) {
|
|
18002
18002
|
k !== "" && (Z.startScope(I), Z.addText(k), Z.endScope());
|
|
18003
18003
|
}
|
|
18004
18004
|
function st(k, I) {
|
|
@@ -18010,11 +18010,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18010
18010
|
continue;
|
|
18011
18011
|
}
|
|
18012
18012
|
const re = de.classNameAliases[k[O]] || k[O], ye = I[O];
|
|
18013
|
-
re ?
|
|
18013
|
+
re ? pe(ye, re) : (V = ye, ge(), V = ""), O++;
|
|
18014
18014
|
}
|
|
18015
18015
|
}
|
|
18016
18016
|
function He(k, I) {
|
|
18017
|
-
return k.scope && typeof k.scope == "string" && Z.openNode(de.classNameAliases[k.scope] || k.scope), k.beginScope && (k.beginScope._wrap ? (
|
|
18017
|
+
return k.scope && typeof k.scope == "string" && Z.openNode(de.classNameAliases[k.scope] || k.scope), k.beginScope && (k.beginScope._wrap ? (pe(V, de.classNameAliases[k.beginScope._wrap] || k.beginScope._wrap), V = "") : k.beginScope._multi && (st(k.beginScope, I), V = "")), M = Object.create(k, { parent: { value: M } }), M;
|
|
18018
18018
|
}
|
|
18019
18019
|
function it(k, I, O) {
|
|
18020
18020
|
let z = Xy(k.endRe, O);
|
|
@@ -18040,16 +18040,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18040
18040
|
for (const ye of re)
|
|
18041
18041
|
if (ye && (ye(k, z), z.isMatchIgnored))
|
|
18042
18042
|
return rt(I);
|
|
18043
|
-
return O.skip ? V += I : (O.excludeBegin && (V += I),
|
|
18043
|
+
return O.skip ? V += I : (O.excludeBegin && (V += I), oe(), !O.returnBegin && !O.excludeBegin && (V = I)), He(O, k), O.returnBegin ? 0 : I.length;
|
|
18044
18044
|
}
|
|
18045
18045
|
function Zt(k) {
|
|
18046
18046
|
const I = k[0], O = y.substring(k.index), z = it(M, k, O);
|
|
18047
18047
|
if (!z)
|
|
18048
18048
|
return kc;
|
|
18049
18049
|
const re = M;
|
|
18050
|
-
M.endScope && M.endScope._wrap ? (
|
|
18050
|
+
M.endScope && M.endScope._wrap ? (oe(), pe(I, M.endScope._wrap)) : M.endScope && M.endScope._multi ? (oe(), st(M.endScope, k)) : re.skip ? V += I : (re.returnEnd || re.excludeEnd || (V += I), oe(), re.excludeEnd && (V = I));
|
|
18051
18051
|
do
|
|
18052
|
-
M.scope && Z.closeNode(), !M.skip && !M.subLanguage && (
|
|
18052
|
+
M.scope && Z.closeNode(), !M.skip && !M.subLanguage && (Ae += M.relevance), M = M.parent;
|
|
18053
18053
|
while (M !== z.parent);
|
|
18054
18054
|
return z.starts && He(z.starts, k), re.returnEnd ? 0 : I.length;
|
|
18055
18055
|
}
|
|
@@ -18059,19 +18059,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18059
18059
|
I.scope && k.unshift(I.scope);
|
|
18060
18060
|
k.forEach((I) => Z.openNode(I));
|
|
18061
18061
|
}
|
|
18062
|
-
let
|
|
18062
|
+
let Xe = {};
|
|
18063
18063
|
function Ct(k, I) {
|
|
18064
18064
|
const O = I && I[0];
|
|
18065
18065
|
if (V += k, O == null)
|
|
18066
|
-
return
|
|
18067
|
-
if (
|
|
18066
|
+
return oe(), 0;
|
|
18067
|
+
if (Xe.type === "begin" && I.type === "end" && Xe.index === I.index && O === "") {
|
|
18068
18068
|
if (V += y.slice(I.index, I.index + 1), !a) {
|
|
18069
18069
|
const z = new Error(`0 width match regex (${v})`);
|
|
18070
|
-
throw z.languageName = v, z.badRule =
|
|
18070
|
+
throw z.languageName = v, z.badRule = Xe.rule, z;
|
|
18071
18071
|
}
|
|
18072
18072
|
return 1;
|
|
18073
18073
|
}
|
|
18074
|
-
if (
|
|
18074
|
+
if (Xe = I, I.type === "begin")
|
|
18075
18075
|
return Et(I);
|
|
18076
18076
|
if (I.type === "illegal" && !F) {
|
|
18077
18077
|
const z = new Error('Illegal lexeme "' + O + '" for mode "' + (M.scope || "<unnamed>") + '"');
|
|
@@ -18094,7 +18094,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18094
18094
|
let lt = "", M = B || $t;
|
|
18095
18095
|
const Ve = {}, Z = new r.__emitter(r);
|
|
18096
18096
|
zt();
|
|
18097
|
-
let V = "",
|
|
18097
|
+
let V = "", Ae = 0, ke = 0, pt = 0, ct = !1;
|
|
18098
18098
|
try {
|
|
18099
18099
|
if (de.__emitTokens)
|
|
18100
18100
|
de.__emitTokens(y, Z);
|
|
@@ -18111,7 +18111,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18111
18111
|
return Z.finalize(), lt = Z.toHTML(), {
|
|
18112
18112
|
language: v,
|
|
18113
18113
|
value: lt,
|
|
18114
|
-
relevance:
|
|
18114
|
+
relevance: Ae,
|
|
18115
18115
|
illegal: !1,
|
|
18116
18116
|
_emitter: Z,
|
|
18117
18117
|
_top: M
|
|
@@ -18158,19 +18158,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18158
18158
|
function u(v, y) {
|
|
18159
18159
|
y = y || r.languages || Object.keys(e);
|
|
18160
18160
|
const F = d(v), B = y.filter(E).filter(Q).map(
|
|
18161
|
-
(
|
|
18161
|
+
(oe) => m(oe, v, !1)
|
|
18162
18162
|
);
|
|
18163
18163
|
B.unshift(F);
|
|
18164
|
-
const G = B.sort((
|
|
18165
|
-
if (
|
|
18166
|
-
if (
|
|
18167
|
-
if (E(
|
|
18164
|
+
const G = B.sort((oe, pe) => {
|
|
18165
|
+
if (oe.relevance !== pe.relevance) return pe.relevance - oe.relevance;
|
|
18166
|
+
if (oe.language && pe.language) {
|
|
18167
|
+
if (E(oe.language).supersetOf === pe.language)
|
|
18168
18168
|
return 1;
|
|
18169
|
-
if (E(
|
|
18169
|
+
if (E(pe.language).supersetOf === oe.language)
|
|
18170
18170
|
return -1;
|
|
18171
18171
|
}
|
|
18172
18172
|
return 0;
|
|
18173
|
-
}), [
|
|
18173
|
+
}), [ae, ge] = G, Ie = ae;
|
|
18174
18174
|
return Ie.secondBest = ge, Ie;
|
|
18175
18175
|
}
|
|
18176
18176
|
function g(v, y, F) {
|
|
@@ -18181,7 +18181,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18181
18181
|
let y = null;
|
|
18182
18182
|
const F = p(v);
|
|
18183
18183
|
if (l(F)) return;
|
|
18184
|
-
if (
|
|
18184
|
+
if (R(
|
|
18185
18185
|
"before:highlightElement",
|
|
18186
18186
|
{ el: v, language: F }
|
|
18187
18187
|
), v.dataset.highlighted) {
|
|
@@ -18203,7 +18203,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18203
18203
|
}, G.secondBest && (v.secondBest = {
|
|
18204
18204
|
language: G.secondBest.language,
|
|
18205
18205
|
relevance: G.secondBest.relevance
|
|
18206
|
-
}),
|
|
18206
|
+
}), R("after:highlightElement", { el: v, result: G, text: B });
|
|
18207
18207
|
}
|
|
18208
18208
|
function h(v) {
|
|
18209
18209
|
r = jc(r, v);
|
|
@@ -18259,7 +18259,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18259
18259
|
const y = E(v);
|
|
18260
18260
|
return y && !y.disableAutodetect;
|
|
18261
18261
|
}
|
|
18262
|
-
function
|
|
18262
|
+
function ie(v) {
|
|
18263
18263
|
v["before:highlightBlock"] && !v["before:highlightElement"] && (v["before:highlightElement"] = (y) => {
|
|
18264
18264
|
v["before:highlightBlock"](
|
|
18265
18265
|
Object.assign({ block: y.el }, y)
|
|
@@ -18270,20 +18270,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18270
18270
|
);
|
|
18271
18271
|
});
|
|
18272
18272
|
}
|
|
18273
|
-
function
|
|
18274
|
-
|
|
18273
|
+
function se(v) {
|
|
18274
|
+
ie(v), n.push(v);
|
|
18275
18275
|
}
|
|
18276
|
-
function
|
|
18276
|
+
function me(v) {
|
|
18277
18277
|
const y = n.indexOf(v);
|
|
18278
18278
|
y !== -1 && n.splice(y, 1);
|
|
18279
18279
|
}
|
|
18280
|
-
function
|
|
18280
|
+
function R(v, y) {
|
|
18281
18281
|
const F = v;
|
|
18282
18282
|
n.forEach(function(B) {
|
|
18283
18283
|
B[F] && B[F](y);
|
|
18284
18284
|
});
|
|
18285
18285
|
}
|
|
18286
|
-
function
|
|
18286
|
+
function H(v) {
|
|
18287
18287
|
return Qo("10.7.0", "highlightBlock will be removed entirely in v12.0"), Qo("10.7.0", "Please use highlightElement now."), f(v);
|
|
18288
18288
|
}
|
|
18289
18289
|
Object.assign(o, {
|
|
@@ -18292,7 +18292,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18292
18292
|
highlightAll: b,
|
|
18293
18293
|
highlightElement: f,
|
|
18294
18294
|
// TODO: Remove with v12 API
|
|
18295
|
-
highlightBlock:
|
|
18295
|
+
highlightBlock: H,
|
|
18296
18296
|
configure: h,
|
|
18297
18297
|
initHighlighting: j,
|
|
18298
18298
|
initHighlightingOnLoad: w,
|
|
@@ -18303,8 +18303,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = v, B = y), F ===
|
|
|
18303
18303
|
registerAliases: q,
|
|
18304
18304
|
autoDetection: Q,
|
|
18305
18305
|
inherit: jc,
|
|
18306
|
-
addPlugin:
|
|
18307
|
-
removePlugin:
|
|
18306
|
+
addPlugin: se,
|
|
18307
|
+
removePlugin: me
|
|
18308
18308
|
}), o.debugMode = function() {
|
|
18309
18309
|
a = !1;
|
|
18310
18310
|
}, o.safeMode = function() {
|
|
@@ -18545,11 +18545,11 @@ function G0(o, e) {
|
|
|
18545
18545
|
e[n].indexOf(o) >= 0 && (t[n] = !0);
|
|
18546
18546
|
return t;
|
|
18547
18547
|
}
|
|
18548
|
-
function
|
|
18548
|
+
function Ze(o) {
|
|
18549
18549
|
o === void 0 && (o = null), this.j = {}, this.jr = [], this.jd = null, this.t = o;
|
|
18550
18550
|
}
|
|
18551
|
-
|
|
18552
|
-
|
|
18551
|
+
Ze.groups = {};
|
|
18552
|
+
Ze.prototype = {
|
|
18553
18553
|
accepts() {
|
|
18554
18554
|
return !!this.t;
|
|
18555
18555
|
},
|
|
@@ -18602,9 +18602,9 @@ Xe.prototype = {
|
|
|
18602
18602
|
* @returns {State<T>} taken after the given input
|
|
18603
18603
|
*/
|
|
18604
18604
|
tr(o, e, t, n) {
|
|
18605
|
-
n = n ||
|
|
18605
|
+
n = n || Ze.groups;
|
|
18606
18606
|
let a;
|
|
18607
|
-
return e && e.j ? a = e : (a = new
|
|
18607
|
+
return e && e.j ? a = e : (a = new Ze(e), t && n && xo(e, t, n)), this.jr.push([o, a]), a;
|
|
18608
18608
|
},
|
|
18609
18609
|
/**
|
|
18610
18610
|
* Short for "take transitions", will take as many sequential transitions as
|
|
@@ -18652,13 +18652,13 @@ Xe.prototype = {
|
|
|
18652
18652
|
* @returns {State<T>} taken after the given input
|
|
18653
18653
|
*/
|
|
18654
18654
|
tt(o, e, t, n) {
|
|
18655
|
-
n = n ||
|
|
18655
|
+
n = n || Ze.groups;
|
|
18656
18656
|
const a = this;
|
|
18657
18657
|
if (e && e.j)
|
|
18658
18658
|
return a.j[o] = e, e;
|
|
18659
18659
|
const s = e;
|
|
18660
18660
|
let i, r = a.go(o);
|
|
18661
|
-
if (r ? (i = new
|
|
18661
|
+
if (r ? (i = new Ze(), Dn(i.j, r.j), i.jr.push.apply(i.jr, r.jr), i.jd = r.jd, i.t = r.t) : i = new Ze(), s) {
|
|
18662
18662
|
if (n)
|
|
18663
18663
|
if (i.t && typeof i.t == "string") {
|
|
18664
18664
|
const l = Dn(G0(i.t, n), t);
|
|
@@ -18669,7 +18669,7 @@ Xe.prototype = {
|
|
|
18669
18669
|
return a.j[o] = i, i;
|
|
18670
18670
|
}
|
|
18671
18671
|
};
|
|
18672
|
-
const
|
|
18672
|
+
const te = (o, e, t, n, a) => o.ta(e, t, n, a), ut = (o, e, t, n, a) => o.tr(e, t, n, a), Dc = (o, e, t, n, a) => o.ts(e, t, n, a), A = (o, e, t, n, a) => o.tt(e, t, n, a), Vt = "WORD", Er = "UWORD", ia = "LOCALHOST", Cr = "TLD", xr = "UTLD", qa = "SCHEME", an = "SLASH_SCHEME", vl = "NUM", xu = "WS", jl = "NL", zn = "OPENBRACE", $n = "CLOSEBRACE", gs = "OPENBRACKET", fs = "CLOSEBRACKET", hs = "OPENPAREN", bs = "CLOSEPAREN", vs = "OPENANGLEBRACKET", js = "CLOSEANGLEBRACKET", ks = "FULLWIDTHLEFTPAREN", ys = "FULLWIDTHRIGHTPAREN", _s = "LEFTCORNERBRACKET", Ds = "RIGHTCORNERBRACKET", ws = "LEFTWHITECORNERBRACKET", Is = "RIGHTWHITECORNERBRACKET", Es = "FULLWIDTHLESSTHAN", Cs = "FULLWIDTHGREATERTHAN", xs = "AMPERSAND", Ss = "APOSTROPHE", Ms = "ASTERISK", no = "AT", Fs = "BACKSLASH", Os = "BACKTICK", As = "CARET", so = "COLON", kl = "COMMA", Ts = "DOLLAR", St = "DOT", Ns = "EQUALS", yl = "EXCLAMATION", Mt = "HYPHEN", Bs = "PERCENT", Rs = "PIPE", Ls = "PLUS", Ps = "POUND", zs = "QUERY", _l = "QUOTE", Dl = "SEMI", Ft = "SLASH", Hn = "TILDE", $s = "UNDERSCORE", Su = "EMOJI", Hs = "SYM";
|
|
18673
18673
|
var Mu = /* @__PURE__ */ Object.freeze({
|
|
18674
18674
|
__proto__: null,
|
|
18675
18675
|
WORD: Vt,
|
|
@@ -18731,8 +18731,8 @@ let Fa = null, Oa = null;
|
|
|
18731
18731
|
function X0(o) {
|
|
18732
18732
|
o === void 0 && (o = []);
|
|
18733
18733
|
const e = {};
|
|
18734
|
-
|
|
18735
|
-
const t = new
|
|
18734
|
+
Ze.groups = e;
|
|
18735
|
+
const t = new Ze();
|
|
18736
18736
|
Fa == null && (Fa = Ec(V0)), Oa == null && (Oa = Ec(q0)), A(t, "'", Ss), A(t, "{", zn), A(t, "}", $n), A(t, "[", gs), A(t, "]", fs), A(t, "(", hs), A(t, ")", bs), A(t, "<", vs), A(t, ">", js), A(t, "(", ks), A(t, ")", ys), A(t, "「", _s), A(t, "」", Ds), A(t, "『", ws), A(t, "』", Is), A(t, "<", Es), A(t, ">", Cs), A(t, "&", xs), A(t, "*", Ms), A(t, "@", no), A(t, "`", Os), A(t, "^", As), A(t, ":", so), A(t, ",", kl), A(t, "$", Ts), A(t, ".", St), A(t, "=", Ns), A(t, "!", yl), A(t, "-", Mt), A(t, "%", Bs), A(t, "|", Rs), A(t, "+", Ls), A(t, "#", Ps), A(t, "?", zs), A(t, '"', _l), A(t, "/", Ft), A(t, ";", Dl), A(t, "~", Hn), A(t, "_", $s), A(t, "\\", Fs);
|
|
18737
18737
|
const n = ut(t, zi, vl, {
|
|
18738
18738
|
[_r]: !0
|
|
@@ -18786,7 +18786,7 @@ function X0(o) {
|
|
|
18786
18786
|
}
|
|
18787
18787
|
return Dc(t, "localhost", ia, {
|
|
18788
18788
|
ascii: !0
|
|
18789
|
-
}), t.jd = new
|
|
18789
|
+
}), t.jd = new Ze(Hs), {
|
|
18790
18790
|
start: t,
|
|
18791
18791
|
tokens: Dn({
|
|
18792
18792
|
groups: e
|
|
@@ -18827,9 +18827,9 @@ function Qt(o, e, t, n, a) {
|
|
|
18827
18827
|
const i = e.length;
|
|
18828
18828
|
for (let r = 0; r < i - 1; r++) {
|
|
18829
18829
|
const l = e[r];
|
|
18830
|
-
o.j[l] ? s = o.j[l] : (s = new
|
|
18830
|
+
o.j[l] ? s = o.j[l] : (s = new Ze(n), s.jr = a.slice(), o.j[l] = s), o = s;
|
|
18831
18831
|
}
|
|
18832
|
-
return s = new
|
|
18832
|
+
return s = new Ze(t), s.jr = a.slice(), o.j[e[i - 1]] = s, s;
|
|
18833
18833
|
}
|
|
18834
18834
|
function Ec(o) {
|
|
18835
18835
|
const e = [], t = [];
|
|
@@ -19080,40 +19080,40 @@ const xc = li("email", {
|
|
|
19080
19080
|
const o = this.tk;
|
|
19081
19081
|
return o.length >= 2 && o[0].t !== ia && o[1].t === so;
|
|
19082
19082
|
}
|
|
19083
|
-
}), gt = (o) => new
|
|
19083
|
+
}), gt = (o) => new Ze(o);
|
|
19084
19084
|
function t6(o) {
|
|
19085
19085
|
let {
|
|
19086
19086
|
groups: e
|
|
19087
19087
|
} = o;
|
|
19088
19088
|
const t = e.domain.concat([xs, Ms, no, Fs, Os, As, Ts, Ns, Mt, vl, Bs, Rs, Ls, Ps, Ft, Hs, Hn, $s]), n = [Ss, so, kl, St, yl, zs, _l, Dl, vs, js, zn, $n, fs, gs, hs, bs, ks, ys, _s, Ds, ws, Is, Es, Cs], a = [xs, Ss, Ms, Fs, Os, As, Ts, Ns, Mt, zn, $n, Bs, Rs, Ls, Ps, zs, Ft, Hs, Hn, $s], s = gt(), i = A(s, Hn);
|
|
19089
|
-
|
|
19089
|
+
te(i, a, i), te(i, e.domain, i);
|
|
19090
19090
|
const r = gt(), l = gt(), p = gt();
|
|
19091
|
-
|
|
19091
|
+
te(s, e.domain, r), te(s, e.scheme, l), te(s, e.slashscheme, p), te(r, a, i), te(r, e.domain, r);
|
|
19092
19092
|
const c = A(r, no);
|
|
19093
19093
|
A(i, no, c), A(l, no, c), A(p, no, c);
|
|
19094
19094
|
const m = A(i, St);
|
|
19095
|
-
|
|
19095
|
+
te(m, a, i), te(m, e.domain, i);
|
|
19096
19096
|
const d = gt();
|
|
19097
|
-
|
|
19097
|
+
te(c, e.domain, d), te(d, e.domain, d);
|
|
19098
19098
|
const u = A(d, St);
|
|
19099
|
-
|
|
19099
|
+
te(u, e.domain, d);
|
|
19100
19100
|
const g = gt(xc);
|
|
19101
|
-
|
|
19101
|
+
te(u, e.tld, g), te(u, e.utld, g), A(c, ia, g);
|
|
19102
19102
|
const f = A(d, Mt);
|
|
19103
|
-
|
|
19103
|
+
te(f, e.domain, d), te(g, e.domain, d), A(g, St, u), A(g, Mt, f);
|
|
19104
19104
|
const h = A(g, so);
|
|
19105
|
-
|
|
19105
|
+
te(h, e.numeric, xc);
|
|
19106
19106
|
const j = A(r, Mt), w = A(r, St);
|
|
19107
|
-
|
|
19107
|
+
te(j, e.domain, r), te(w, a, i), te(w, e.domain, r);
|
|
19108
19108
|
const S = gt(Aa);
|
|
19109
|
-
|
|
19109
|
+
te(w, e.tld, S), te(w, e.utld, S), te(S, e.domain, r), te(S, a, i), A(S, St, w), A(S, Mt, j), A(S, no, c);
|
|
19110
19110
|
const b = A(S, so), T = gt(Aa);
|
|
19111
|
-
|
|
19111
|
+
te(b, e.numeric, T);
|
|
19112
19112
|
const _ = gt(Aa), P = gt();
|
|
19113
|
-
|
|
19113
|
+
te(_, t, _), te(_, n, P), te(P, t, _), te(P, n, P), A(S, Ft, _), A(T, Ft, _);
|
|
19114
19114
|
const K = A(l, so), E = A(p, so), q = A(E, Ft), Q = A(q, Ft);
|
|
19115
|
-
|
|
19116
|
-
const
|
|
19115
|
+
te(l, e.domain, r), A(l, St, w), A(l, Mt, j), te(p, e.domain, r), A(p, St, w), A(p, Mt, j), te(K, e.domain, _), A(K, Ft, _), te(Q, e.domain, _), te(Q, t, _), A(Q, Ft, _);
|
|
19116
|
+
const ie = [
|
|
19117
19117
|
[zn, $n],
|
|
19118
19118
|
// {}
|
|
19119
19119
|
[gs, fs],
|
|
@@ -19131,13 +19131,13 @@ function t6(o) {
|
|
|
19131
19131
|
[Es, Cs]
|
|
19132
19132
|
// <>
|
|
19133
19133
|
];
|
|
19134
|
-
for (let
|
|
19135
|
-
const [
|
|
19136
|
-
A(P,
|
|
19134
|
+
for (let se = 0; se < ie.length; se++) {
|
|
19135
|
+
const [me, R] = ie[se], H = A(_, me);
|
|
19136
|
+
A(P, me, H), A(H, R, _);
|
|
19137
19137
|
const v = gt(Aa);
|
|
19138
|
-
|
|
19138
|
+
te(H, t, v);
|
|
19139
19139
|
const y = gt();
|
|
19140
|
-
|
|
19140
|
+
te(H, n), te(v, t, v), te(v, n, y), te(y, t, v), te(y, n, y), A(v, R, _), A(y, R, _);
|
|
19141
19141
|
}
|
|
19142
19142
|
return A(s, ia, S), A(s, jl, e6), {
|
|
19143
19143
|
start: s,
|
|
@@ -19176,7 +19176,7 @@ const n6 = typeof console < "u" && console && console.warn || (() => {
|
|
|
19176
19176
|
initialized: !1
|
|
19177
19177
|
};
|
|
19178
19178
|
function s6() {
|
|
19179
|
-
|
|
19179
|
+
Ze.groups = {}, he.scanner = null, he.parser = null, he.tokenQueue = [], he.pluginQueue = [], he.customSchemes = [], he.initialized = !1;
|
|
19180
19180
|
}
|
|
19181
19181
|
function Mc(o, e) {
|
|
19182
19182
|
if (e === void 0 && (e = !1), he.initialized && n6(`linkifyjs: already initialized - will not register custom scheme "${o}" ${a6}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(o))
|
|
@@ -19494,7 +19494,7 @@ const f6 = ["disabled"], h6 = { class: "ouo-btn__content" }, Ac = "ouo-btn--", b
|
|
|
19494
19494
|
setup(o) {
|
|
19495
19495
|
const e = o, t = e.equilateral ? Ac + "equilateral" : "", { size: n, type: a, shape: s } = Rc(e), i = (c) => Lc(() => Ac + c.value), r = i(n), l = i(a), p = i(s);
|
|
19496
19496
|
return (c, m) => (W(), J("button", {
|
|
19497
|
-
class: So(["ouo-btn", ["ouo-color--" + c.color,
|
|
19497
|
+
class: So(["ouo-btn", ["ouo-color--" + c.color, We(r), We(l), We(p), We(t)]]),
|
|
19498
19498
|
disabled: c.disabled,
|
|
19499
19499
|
style: Pc(c.style)
|
|
19500
19500
|
}, [
|
|
@@ -19558,7 +19558,7 @@ const Xt = (o) => (ca("data-v-9ee55abf"), o = o(), ma(), o), v6 = {
|
|
|
19558
19558
|
key: 2,
|
|
19559
19559
|
class: So([["ouo-loading--" + e.type], "ouo-loading__animation"])
|
|
19560
19560
|
}, M6, 2))
|
|
19561
|
-
], 2)) :
|
|
19561
|
+
], 2)) : Ue("", !0)
|
|
19562
19562
|
], 8, ["to"]));
|
|
19563
19563
|
}
|
|
19564
19564
|
}), Vi = /* @__PURE__ */ Pt(F6, [["__scopeId", "data-v-9ee55abf"]]);
|
|
@@ -19572,10 +19572,10 @@ const O6 = { class: "ouo-checkbox cursor-pointer" }, A6 = { class: "ouo-checkbox
|
|
|
19572
19572
|
checked: { type: Boolean, default: !1 }
|
|
19573
19573
|
},
|
|
19574
19574
|
setup(o) {
|
|
19575
|
-
const e =
|
|
19575
|
+
const e = Ce(o.checked);
|
|
19576
19576
|
return (t, n) => (W(), J("label", O6, [
|
|
19577
19577
|
x("span", A6, [
|
|
19578
|
-
|
|
19578
|
+
Ee(x("input", {
|
|
19579
19579
|
class: "ouo-checkbox-input",
|
|
19580
19580
|
type: "checkbox",
|
|
19581
19581
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
|
|
@@ -19619,10 +19619,10 @@ const $6 = (o) => (ca("data-v-3f04c819"), o = o(), ma(), o), H6 = { class: "ouo-
|
|
|
19619
19619
|
checked: { type: Boolean, default: !1 }
|
|
19620
19620
|
},
|
|
19621
19621
|
setup(o) {
|
|
19622
|
-
const e =
|
|
19622
|
+
const e = Ce(o.checked);
|
|
19623
19623
|
return (t, n) => (W(), J("label", H6, [
|
|
19624
19624
|
x("span", V6, [
|
|
19625
|
-
|
|
19625
|
+
Ee(x("input", {
|
|
19626
19626
|
type: "checkbox",
|
|
19627
19627
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
|
|
19628
19628
|
onChange: n[1] || (n[1] = (a) => {
|
|
@@ -19652,10 +19652,10 @@ const G6 = { class: "ouo-radio cursor-pointer" }, J6 = { class: "ouo-radio__cont
|
|
|
19652
19652
|
value: {}
|
|
19653
19653
|
},
|
|
19654
19654
|
setup(o) {
|
|
19655
|
-
const e =
|
|
19655
|
+
const e = Ce(o.checked);
|
|
19656
19656
|
return (t, n) => (W(), J("label", G6, [
|
|
19657
19657
|
x("span", J6, [
|
|
19658
|
-
|
|
19658
|
+
Ee(x("input", {
|
|
19659
19659
|
type: "radio",
|
|
19660
19660
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
|
|
19661
19661
|
onChange: n[1] || (n[1] = (a) => {
|
|
@@ -19738,14 +19738,14 @@ const Tu = (o) => (ca("data-v-edc00193"), o = o(), ma(), o), n_ = ["href", "titl
|
|
|
19738
19738
|
setup(o) {
|
|
19739
19739
|
const e = o, { type: t } = Rc(e), n = ((a) => Lc(() => c_ + a.value))(t);
|
|
19740
19740
|
return (a, s) => (W(), J("a", {
|
|
19741
|
-
class: So(["ouo-link", [
|
|
19741
|
+
class: So(["ouo-link", [We(n)]]),
|
|
19742
19742
|
href: a.href,
|
|
19743
19743
|
title: a.title,
|
|
19744
19744
|
target: a.ref,
|
|
19745
19745
|
rel: a.ref
|
|
19746
19746
|
}, [
|
|
19747
19747
|
Vo(a.$slots, "default", {}, void 0, !0),
|
|
19748
|
-
|
|
19748
|
+
We(n) === "ouo-link--circle" ? (W(), J("svg", a_, i_)) : (W(), J("svg", r_, p_))
|
|
19749
19749
|
], 10, n_));
|
|
19750
19750
|
}
|
|
19751
19751
|
}), Gi = /* @__PURE__ */ Pt(m_, [["__scopeId", "data-v-edc00193"]]);
|
|
@@ -19779,7 +19779,7 @@ const f_ = { class: "ouo-skeleton" }, h_ = /* @__PURE__ */ je({
|
|
|
19779
19779
|
setup(o) {
|
|
19780
19780
|
const e = o.rows;
|
|
19781
19781
|
return (t, n) => (W(), J("div", f_, [
|
|
19782
|
-
(W(!0), J(mn, null, pa(
|
|
19782
|
+
(W(!0), J(mn, null, pa(We(e), (a) => (W(), J("div", {
|
|
19783
19783
|
key: a,
|
|
19784
19784
|
class: "ouo-skeleton-item ouo-skeleton-animate"
|
|
19785
19785
|
}))), 128))
|
|
@@ -19789,18 +19789,18 @@ const f_ = { class: "ouo-skeleton" }, h_ = /* @__PURE__ */ je({
|
|
|
19789
19789
|
Yi.install = (o) => {
|
|
19790
19790
|
o.component(Yi.name, Yi);
|
|
19791
19791
|
};
|
|
19792
|
-
const Nu = (o) => (ca("data-v-
|
|
19792
|
+
const Nu = (o) => (ca("data-v-664e2b61"), o = o(), ma(), o), b_ = { class: "sus-comment relative flex flex-row w-full" }, v_ = { class: "sus-comment-avatar" }, j_ = ["src"], k_ = { class: "sus-comment__main" }, y_ = { class: "sus-comment__info my-1" }, __ = { class: "sus-comment__info-input" }, D_ = {
|
|
19793
19793
|
class: "sus-comment__info-input",
|
|
19794
19794
|
"data-tippy-content": "点击昵称时可跳转"
|
|
19795
19795
|
}, w_ = ["data-tippy-content"], I_ = { class: "relative" }, E_ = { class: "sus-comment__footer flex justify-between" }, C_ = { class: "flex flex-row items-center" }, x_ = {
|
|
19796
19796
|
key: 0,
|
|
19797
19797
|
class: "p-1"
|
|
19798
|
-
}, S_ = /* @__PURE__ */ qs('<g fill="none" data-v-
|
|
19798
|
+
}, S_ = /* @__PURE__ */ qs('<g fill="none" data-v-664e2b61><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M9 16c.85.63 1.885 1 3 1s2.15-.37 3-1" data-v-664e2b61></path><path fill="currentColor" d="M16 10.5c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5s.448-1.5 1-1.5s1 .672 1 1.5" data-v-664e2b61></path><ellipse cx="9" cy="10.5" fill="currentColor" rx="1" ry="1.5" data-v-664e2b61></ellipse><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5" data-v-664e2b61></path></g>', 1), M_ = [
|
|
19799
19799
|
S_
|
|
19800
19800
|
], F_ = {
|
|
19801
19801
|
key: 1,
|
|
19802
19802
|
class: "sus-upload p-1"
|
|
19803
|
-
}, O_ = /* @__PURE__ */ qs('<label for="upload-input" data-v-
|
|
19803
|
+
}, O_ = /* @__PURE__ */ qs('<label for="upload-input" data-v-664e2b61><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" data-v-664e2b61><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5" data-v-664e2b61><path d="m2 12.5l1.752-1.533a2.3 2.3 0 0 1 3.14.105l4.29 4.29a2 2 0 0 0 2.564.222l.299-.21a3 3 0 0 1 3.731.225L21 18.5m-6-13h3.5m0 0H22m-3.5 0V9m0-3.5V2" data-v-664e2b61></path><path d="M22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12c0-1.128 0-2.122.02-3M12 2C7.286 2 4.929 2 3.464 3.464c-.424.425-.726.925-.94 1.536" data-v-664e2b61></path></g></svg></label>', 1), A_ = {
|
|
19804
19804
|
"data-tippy-content": "收到回复后通知",
|
|
19805
19805
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19806
19806
|
viewBox: "0 0 24 24"
|
|
@@ -19829,9 +19829,9 @@ const Nu = (o) => (ca("data-v-9c81f3eb"), o = o(), ma(), o), b_ = { class: "sus-
|
|
|
19829
19829
|
/* @__PURE__ */ x("path", { d: "M7.5 19c.655 1.748 2.422 3 4.5 3q.367 0 .72-.05M16.5 19a4.5 4.5 0 0 1-1.302 1.84M9.107 2.674A6.5 6.5 0 0 1 12 2c3.727 0 6.75 3.136 6.75 7.005v.705a4.4 4.4 0 0 0 .692 2.375l1.108 1.724c1.011 1.575.239 3.716-1.52 4.214a25.8 25.8 0 0 1-14.06 0c-1.759-.498-2.531-2.639-1.52-4.213l1.108-1.725A4.4 4.4 0 0 0 5.25 9.71v-.705c0-1.074.233-2.092.65-3.002" })
|
|
19830
19830
|
], -1)), L_ = [
|
|
19831
19831
|
R_
|
|
19832
|
-
], P_ = { class: "sus-comment__toolbar flex" }, z_ = { class: "sus-
|
|
19833
|
-
|
|
19834
|
-
],
|
|
19832
|
+
], P_ = { class: "sus-comment__toolbar relative flex" }, z_ = { class: "sus-comment__toolbar-mask absolute inset-0" }, $_ = { class: "sus-comment__extend flex" }, H_ = ["src"], V_ = ["onClick"], q_ = /* @__PURE__ */ qs('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" data-v-664e2b61><g fill="none" stroke="currentColor" stroke-width="1.5" data-v-664e2b61><path stroke-linecap="round" d="M20.5 6h-17m6 5l.5 5m4.5-5l-.5 5" data-v-664e2b61></path><path d="M6.5 6h.11a2 2 0 0 0 1.83-1.32l.034-.103l.097-.291c.083-.249.125-.373.18-.479a1.5 1.5 0 0 1 1.094-.788C9.962 3 10.093 3 10.355 3h3.29c.262 0 .393 0 .51.019a1.5 1.5 0 0 1 1.094.788c.055.106.097.23.18.479l.097.291A2 2 0 0 0 17.5 6" data-v-664e2b61></path><path stroke-linecap="round" d="M18.374 15.4c-.177 2.654-.266 3.981-1.131 4.79s-2.195.81-4.856.81h-.774c-2.66 0-3.99 0-4.856-.81c-.865-.809-.953-2.136-1.13-4.79l-.46-6.9m13.666 0l-.2 3" data-v-664e2b61></path></g></svg>', 1), W_ = [
|
|
19833
|
+
q_
|
|
19834
|
+
], U_ = /* @__PURE__ */ je({
|
|
19835
19835
|
__name: "index",
|
|
19836
19836
|
props: {
|
|
19837
19837
|
reply: {},
|
|
@@ -19840,11 +19840,12 @@ const Nu = (o) => (ca("data-v-9c81f3eb"), o = o(), ma(), o), b_ = { class: "sus-
|
|
|
19840
19840
|
toolBar: {},
|
|
19841
19841
|
placeholder: { default: `支持常见的markdown语法,如图片、代码块等
|
|
19842
19842
|
输入”:“加表情缩写,快速查找表情
|
|
19843
|
-
链接自动识别,无需额外操作` }
|
|
19843
|
+
链接自动识别,无需额外操作` },
|
|
19844
|
+
comment: {}
|
|
19844
19845
|
},
|
|
19845
19846
|
emits: ["on-save", "on-cancel", "add-image"],
|
|
19846
19847
|
setup(o, { expose: e, emit: t }) {
|
|
19847
|
-
var
|
|
19848
|
+
var se, me;
|
|
19848
19849
|
class n {
|
|
19849
19850
|
constructor() {
|
|
19850
19851
|
dt(this, "articleId", "");
|
|
@@ -19862,10 +19863,10 @@ const Nu = (o) => (ca("data-v-9c81f3eb"), o = o(), ma(), o), b_ = { class: "sus-
|
|
|
19862
19863
|
}
|
|
19863
19864
|
const a = o;
|
|
19864
19865
|
e({
|
|
19865
|
-
updateImage:
|
|
19866
|
-
updatePreviewImage:
|
|
19866
|
+
updateImage: _,
|
|
19867
|
+
updatePreviewImage: K
|
|
19867
19868
|
});
|
|
19868
|
-
const s = t, i = a.emojiList, r = (
|
|
19869
|
+
const s = t, i = a.emojiList, r = (se = a.reply) == null ? void 0 : se.userName, l = Ce("在此处留下你的足迹吧!(支持markdown语法)"), p = Nc(new n()), c = Ce(""), m = Ce(""), d = Ce(!1), u = Ce(null), g = Ce([]), f = Ce(null), h = ((me = a.comment) == null ? void 0 : me.privacy) || !1, j = y1({
|
|
19869
19870
|
extensions: [
|
|
19870
19871
|
_k,
|
|
19871
19872
|
wk,
|
|
@@ -19888,43 +19889,46 @@ const Nu = (o) => (ca("data-v-9c81f3eb"), o = o(), ma(), o), b_ = { class: "sus-
|
|
|
19888
19889
|
H0
|
|
19889
19890
|
]
|
|
19890
19891
|
});
|
|
19891
|
-
|
|
19892
|
-
|
|
19893
|
-
|
|
19892
|
+
function w() {
|
|
19893
|
+
a.comment && (p.privacy = a.comment.privacy || !1, p.notify = a.comment.notify || 1, p.userName = a.comment.userName || "", p.userEmail = a.comment.userEmail || "", p.userWebsite = a.comment.userWebsite || "", p.userAvatar = a.comment.userAvatar || "", p.content = a.comment.content || "", p.articleId = a.comment.articleId || "");
|
|
19894
|
+
}
|
|
19895
|
+
async function S() {
|
|
19896
|
+
if (!(!j || !j.value)) {
|
|
19897
|
+
if (c.value = j.value.getHTML(), p.userWebsite && (p.userWebsite.concat("http://") || p.userWebsite.concat("https://") || (p.userWebsite = "https://" + p.userWebsite)), localStorage.setItem("user", JSON.stringify(p)), localStorage.setItem("comment-content", c.value), a.reply.id != "0") {
|
|
19894
19898
|
const R = a.reply.parentId;
|
|
19895
19899
|
p.parentId = R === "0" ? a.reply.id : R, p.replyName = a.reply.userName, l.value = "@" + r + ":";
|
|
19896
19900
|
}
|
|
19897
|
-
p.content = c.value, p.contentText =
|
|
19901
|
+
p.content = c.value, p.contentText = j.value.getText(), s("on-save", p, f.value);
|
|
19898
19902
|
}
|
|
19899
19903
|
}
|
|
19900
|
-
function
|
|
19904
|
+
function b() {
|
|
19901
19905
|
localStorage.setItem("comment-content", ""), s("on-cancel");
|
|
19902
19906
|
}
|
|
19903
|
-
function
|
|
19907
|
+
function T() {
|
|
19904
19908
|
s("add-image", u.value, f.value);
|
|
19905
19909
|
}
|
|
19906
|
-
function
|
|
19907
|
-
f.value || (f.value = []), !f.value || f.value.length == 0 ? f.value = R : f.value =
|
|
19910
|
+
function _(R) {
|
|
19911
|
+
f.value || (f.value = []), !f.value || f.value.length == 0 ? f.value = R : f.value = P(f.value, R[0]), g.value = [];
|
|
19908
19912
|
for (let H = 0; H < f.value.length; H++)
|
|
19909
19913
|
g.value.push(URL.createObjectURL(f.value[H]));
|
|
19910
19914
|
}
|
|
19911
|
-
function
|
|
19915
|
+
function P(R, H) {
|
|
19912
19916
|
return [...R, H];
|
|
19913
19917
|
}
|
|
19914
|
-
function
|
|
19918
|
+
function K(R) {
|
|
19915
19919
|
g.value = R;
|
|
19916
19920
|
}
|
|
19917
|
-
function
|
|
19921
|
+
function E() {
|
|
19918
19922
|
var R;
|
|
19919
19923
|
p.userEmail.trim().endsWith("@qq.com") && !p.userAvatar && (m.value = "https://thirdqq.qlogo.cn/g?b=sdk&nk=" + ((R = p.userEmail) == null ? void 0 : R.replace("@qq.com", "").trim()) + "&s=140");
|
|
19920
19924
|
}
|
|
19921
|
-
function
|
|
19925
|
+
function q() {
|
|
19922
19926
|
p.notify == 1 ? p.notify = 0 : p.notify = 1;
|
|
19923
19927
|
}
|
|
19924
|
-
function
|
|
19925
|
-
!
|
|
19928
|
+
function Q(R) {
|
|
19929
|
+
!j || !j.value || (j.value.chain().focus().setEmoji(R.shortcodes[0]).run(), d.value = !1);
|
|
19926
19930
|
}
|
|
19927
|
-
function
|
|
19931
|
+
function ie(R) {
|
|
19928
19932
|
var H;
|
|
19929
19933
|
try {
|
|
19930
19934
|
if (!f.value || !f.value.length || f.value.length <= 1) {
|
|
@@ -19932,52 +19936,59 @@ const Nu = (o) => (ca("data-v-9c81f3eb"), o = o(), ma(), o), b_ = { class: "sus-
|
|
|
19932
19936
|
return;
|
|
19933
19937
|
}
|
|
19934
19938
|
(H = f.value) == null || H.splice(R, 1), g.value.splice(R, 1);
|
|
19935
|
-
} catch (
|
|
19936
|
-
console.log(
|
|
19939
|
+
} catch (v) {
|
|
19940
|
+
console.log(v), f.value = [], g.value = [];
|
|
19937
19941
|
}
|
|
19938
19942
|
}
|
|
19939
19943
|
return la(() => {
|
|
19940
|
-
if (!
|
|
19944
|
+
if (!j || !j.value)
|
|
19941
19945
|
return;
|
|
19942
|
-
|
|
19943
|
-
|
|
19944
|
-
|
|
19945
|
-
|
|
19946
|
+
w();
|
|
19947
|
+
const R = localStorage.getItem("user");
|
|
19948
|
+
if (p.content && p.content.length > 3)
|
|
19949
|
+
j.value.commands.setContent(p.content);
|
|
19950
|
+
else {
|
|
19951
|
+
const H = localStorage.getItem("comment-content");
|
|
19952
|
+
H && j.value.commands.setContent(H);
|
|
19953
|
+
}
|
|
19954
|
+
if (R) {
|
|
19955
|
+
const H = JSON.parse(R);
|
|
19956
|
+
p.userName = H.userName, p.userEmail = H.userEmail, p.userWebsite = H.userWebsite, E();
|
|
19946
19957
|
}
|
|
19947
19958
|
p.notify = 1, Yt("[data-tippy-content]");
|
|
19948
19959
|
}), (R, H) => (W(), J("div", b_, [
|
|
19949
|
-
|
|
19950
|
-
|
|
19960
|
+
Ee(x("div", v_, [
|
|
19961
|
+
Ee(x("img", {
|
|
19951
19962
|
alt: "头像",
|
|
19952
19963
|
src: m.value,
|
|
19953
19964
|
class: "sus-avatar",
|
|
19954
19965
|
onerror: "this.onerror=null,this.src='/error.webp'"
|
|
19955
19966
|
}, null, 8, j_), [
|
|
19956
|
-
[
|
|
19967
|
+
[ft, !!m.value]
|
|
19957
19968
|
]),
|
|
19958
|
-
|
|
19959
|
-
[
|
|
19969
|
+
Ee(x("span", { class: "sus-avatar-text flex w-full h-full items-center justify-center" }, Le(p.userName.charAt(0)), 513), [
|
|
19970
|
+
[ft, !m.value]
|
|
19960
19971
|
])
|
|
19961
19972
|
], 512), [
|
|
19962
|
-
[
|
|
19973
|
+
[ft, R.toolBar.showUserInfo]
|
|
19963
19974
|
]),
|
|
19964
19975
|
x("div", k_, [
|
|
19965
|
-
|
|
19976
|
+
Ee(x("div", y_, [
|
|
19966
19977
|
x("div", __, [
|
|
19967
|
-
|
|
19978
|
+
Ee(x("input", {
|
|
19968
19979
|
class: "sus-input sus-username",
|
|
19969
19980
|
placeholder: "昵称(必填)",
|
|
19970
|
-
"onUpdate:modelValue": H[0] || (H[0] = (
|
|
19981
|
+
"onUpdate:modelValue": H[0] || (H[0] = (v) => p.userName = v),
|
|
19971
19982
|
maxlength: "23"
|
|
19972
19983
|
}, null, 512), [
|
|
19973
19984
|
[mi, p.userName]
|
|
19974
19985
|
])
|
|
19975
19986
|
]),
|
|
19976
19987
|
x("div", D_, [
|
|
19977
|
-
|
|
19988
|
+
Ee(x("input", {
|
|
19978
19989
|
class: "sus-input sus-web",
|
|
19979
19990
|
placeholder: "网址(https://)",
|
|
19980
|
-
"onUpdate:modelValue": H[1] || (H[1] = (
|
|
19991
|
+
"onUpdate:modelValue": H[1] || (H[1] = (v) => p.userWebsite = v),
|
|
19981
19992
|
maxlength: "35"
|
|
19982
19993
|
}, null, 512), [
|
|
19983
19994
|
[mi, p.userWebsite]
|
|
@@ -19987,111 +19998,115 @@ const Nu = (o) => (ca("data-v-9c81f3eb"), o = o(), ma(), o), b_ = { class: "sus-
|
|
|
19987
19998
|
class: "sus-comment__info-input",
|
|
19988
19999
|
"data-tippy-content": R.mailTips
|
|
19989
20000
|
}, [
|
|
19990
|
-
|
|
19991
|
-
onBlur:
|
|
20001
|
+
Ee(x("input", {
|
|
20002
|
+
onBlur: E,
|
|
19992
20003
|
class: "sus-input sus-email",
|
|
19993
20004
|
placeholder: "邮箱(不会公开,仅用于通知回复)",
|
|
19994
|
-
"onUpdate:modelValue": H[2] || (H[2] = (
|
|
20005
|
+
"onUpdate:modelValue": H[2] || (H[2] = (v) => p.userEmail = v),
|
|
19995
20006
|
maxlength: "35"
|
|
19996
20007
|
}, null, 544), [
|
|
19997
20008
|
[mi, p.userEmail]
|
|
19998
20009
|
])
|
|
19999
20010
|
], 8, w_)
|
|
20000
20011
|
], 512), [
|
|
20001
|
-
[
|
|
20012
|
+
[ft, R.toolBar.showUserInfo]
|
|
20002
20013
|
]),
|
|
20003
20014
|
x("div", I_, [
|
|
20004
|
-
|
|
20015
|
+
Ee(Ba(E1, {
|
|
20005
20016
|
class: "absolute bottom-2 left-1",
|
|
20006
|
-
emojiList:
|
|
20007
|
-
onOnselect:
|
|
20017
|
+
emojiList: We(i),
|
|
20018
|
+
onOnselect: Q
|
|
20008
20019
|
}, null, 8, ["emojiList"]), [
|
|
20009
|
-
[
|
|
20020
|
+
[ft, d.value]
|
|
20010
20021
|
]),
|
|
20011
|
-
Ba(
|
|
20022
|
+
Ba(We(k1), {
|
|
20012
20023
|
class: "sus-comment-input",
|
|
20013
|
-
editor:
|
|
20024
|
+
editor: We(j)
|
|
20014
20025
|
}, null, 8, ["editor"])
|
|
20015
20026
|
]),
|
|
20016
20027
|
x("div", E_, [
|
|
20017
20028
|
x("div", C_, [
|
|
20018
|
-
|
|
20029
|
+
We(i).length >= 0 ? (W(), J("div", x_, [
|
|
20019
20030
|
(W(), J("svg", {
|
|
20020
|
-
onClick: H[3] || (H[3] = (
|
|
20031
|
+
onClick: H[3] || (H[3] = (v) => d.value = !d.value),
|
|
20021
20032
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20022
20033
|
viewBox: "0 0 24 24"
|
|
20023
20034
|
}, M_))
|
|
20024
|
-
])) :
|
|
20035
|
+
])) : Ue("", !0),
|
|
20025
20036
|
R.toolBar.showImage ? (W(), J("div", F_, [
|
|
20026
20037
|
x("input", {
|
|
20027
20038
|
ref_key: "imgRef",
|
|
20028
20039
|
ref: u,
|
|
20029
|
-
onChange:
|
|
20040
|
+
onChange: T,
|
|
20030
20041
|
type: "file",
|
|
20031
20042
|
id: "upload-input",
|
|
20032
20043
|
name: "image",
|
|
20033
20044
|
accept: "image/*"
|
|
20034
20045
|
}, null, 544),
|
|
20035
20046
|
O_
|
|
20036
|
-
])) :
|
|
20047
|
+
])) : Ue("", !0),
|
|
20037
20048
|
R.toolBar.showNotify ? (W(), J("div", {
|
|
20038
20049
|
key: 2,
|
|
20039
|
-
onClick:
|
|
20050
|
+
onClick: q,
|
|
20040
20051
|
class: "p-1"
|
|
20041
20052
|
}, [
|
|
20042
|
-
|
|
20043
|
-
[
|
|
20053
|
+
Ee((W(), J("svg", A_, N_, 512)), [
|
|
20054
|
+
[ft, p.notify === 1]
|
|
20044
20055
|
]),
|
|
20045
|
-
|
|
20046
|
-
[
|
|
20056
|
+
Ee((W(), J("svg", B_, L_, 512)), [
|
|
20057
|
+
[ft, p.notify !== 1]
|
|
20047
20058
|
])
|
|
20048
|
-
])) :
|
|
20059
|
+
])) : Ue("", !0)
|
|
20049
20060
|
]),
|
|
20050
20061
|
x("div", { class: "sus-comment__footer-send flex justify-end my-2" }, [
|
|
20051
20062
|
x("button", {
|
|
20052
20063
|
class: "sus-button cancel mx-2",
|
|
20053
|
-
onClick:
|
|
20064
|
+
onClick: b
|
|
20054
20065
|
}, "取消"),
|
|
20055
20066
|
x("button", {
|
|
20056
20067
|
class: "sus-button ok",
|
|
20057
|
-
onClick:
|
|
20068
|
+
onClick: S
|
|
20058
20069
|
}, "发送")
|
|
20059
20070
|
])
|
|
20060
20071
|
]),
|
|
20061
20072
|
x("div", P_, [
|
|
20062
|
-
|
|
20073
|
+
Ee(Ba(We(Wa), {
|
|
20063
20074
|
modelValue: p.privacy,
|
|
20064
|
-
"onUpdate:modelValue": H[4] || (H[4] = (
|
|
20075
|
+
"onUpdate:modelValue": H[4] || (H[4] = (v) => p.privacy = v),
|
|
20076
|
+
checked: We(h)
|
|
20065
20077
|
}, {
|
|
20066
20078
|
default: Ku(() => [
|
|
20067
|
-
Vn("仅博主可见 ")
|
|
20079
|
+
Vn(" 仅博主可见 ")
|
|
20068
20080
|
]),
|
|
20069
20081
|
_: 1
|
|
20070
|
-
}, 8, ["modelValue"]), [
|
|
20071
|
-
[
|
|
20082
|
+
}, 8, ["modelValue", "checked"]), [
|
|
20083
|
+
[ft, R.toolBar.showPrivacy]
|
|
20084
|
+
]),
|
|
20085
|
+
Ee(x("div", z_, null, 512), [
|
|
20086
|
+
[ft, R.toolBar.privacyDisable]
|
|
20072
20087
|
])
|
|
20073
20088
|
]),
|
|
20074
|
-
x("div",
|
|
20075
|
-
(W(!0), J(mn, null, pa(g.value, (
|
|
20089
|
+
x("div", $_, [
|
|
20090
|
+
(W(!0), J(mn, null, pa(g.value, (v, y) => (W(), J("div", {
|
|
20076
20091
|
class: "sus-comment__extend-img relative",
|
|
20077
|
-
key:
|
|
20092
|
+
key: v
|
|
20078
20093
|
}, [
|
|
20079
20094
|
x("img", {
|
|
20080
20095
|
class: "img-item",
|
|
20081
|
-
src:
|
|
20096
|
+
src: v,
|
|
20082
20097
|
alt: ""
|
|
20083
|
-
}, null, 8,
|
|
20098
|
+
}, null, 8, H_),
|
|
20084
20099
|
x("div", {
|
|
20085
|
-
onClick: (
|
|
20100
|
+
onClick: (F) => ie(y),
|
|
20086
20101
|
class: "mask"
|
|
20087
|
-
},
|
|
20102
|
+
}, W_, 8, V_)
|
|
20088
20103
|
]))), 128))
|
|
20089
20104
|
])
|
|
20090
20105
|
])
|
|
20091
20106
|
]));
|
|
20092
20107
|
}
|
|
20093
|
-
}),
|
|
20094
|
-
function
|
|
20108
|
+
}), K_ = /* @__PURE__ */ En(U_, [["__scopeId", "data-v-664e2b61"]]);
|
|
20109
|
+
function G_(o) {
|
|
20095
20110
|
const e = new Date(o), t = e.getFullYear(), n = e.getMonth() + 1, a = e.getDate(), s = /* @__PURE__ */ new Date(), i = s.getFullYear(), r = s.getMonth() + 1, l = s.getDate();
|
|
20096
20111
|
if (i === t && r == n) {
|
|
20097
20112
|
const p = l - a;
|
|
@@ -20102,23 +20117,23 @@ function K_(o) {
|
|
|
20102
20117
|
}
|
|
20103
20118
|
return i === t ? `${n}月${a}日` : `${t}年${n}月${a}日`;
|
|
20104
20119
|
}
|
|
20105
|
-
const Il = (o) => (ca("data-v-
|
|
20120
|
+
const Il = (o) => (ca("data-v-0ecc1ddf"), o = o(), ma(), o), J_ = { class: "sus-item__container relative" }, Y_ = { class: "flex flex-row" }, X_ = { class: "sus-comment-aside" }, Z_ = { class: "sus-comment-avatar" }, Q_ = ["src"], e4 = { class: "sus-item-floor mt-2" }, t4 = { class: "sus-item__main w-full overflow-hidden" }, o4 = { class: "sus-item__user leading-loose" }, n4 = ["rel", "href"], a4 = {
|
|
20106
20121
|
key: 0,
|
|
20107
20122
|
class: "sus-item-tag mx-1",
|
|
20108
20123
|
title: "博主"
|
|
20109
|
-
},
|
|
20124
|
+
}, s4 = {
|
|
20110
20125
|
key: 1,
|
|
20111
20126
|
class: "sus-item__content-name mx-1.5"
|
|
20112
|
-
},
|
|
20127
|
+
}, i4 = { class: "sus-item__user-date ml-3" }, r4 = {
|
|
20113
20128
|
key: 0,
|
|
20114
20129
|
class: "sus-item__content"
|
|
20115
|
-
},
|
|
20130
|
+
}, l4 = /* @__PURE__ */ Il(() => /* @__PURE__ */ x("div", { class: "sus-item-privacy" }, null, -1)), p4 = ["innerHTML"], c4 = {
|
|
20116
20131
|
key: 1,
|
|
20117
20132
|
class: "sus-item__content"
|
|
20118
|
-
},
|
|
20133
|
+
}, m4 = ["innerHTML"], d4 = {
|
|
20119
20134
|
key: 0,
|
|
20120
20135
|
class: "sus-item__info flex justify-end mx-1"
|
|
20121
|
-
},
|
|
20136
|
+
}, u4 = { class: "sus-item__info-area flex items-center" }, g4 = /* @__PURE__ */ Il(() => /* @__PURE__ */ x("svg", {
|
|
20122
20137
|
class: "sus-svg",
|
|
20123
20138
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20124
20139
|
viewBox: "0 0 24 24"
|
|
@@ -20132,7 +20147,7 @@ const Il = (o) => (ca("data-v-6afba7b6"), o = o(), ma(), o), G_ = { class: "sus-
|
|
|
20132
20147
|
/* @__PURE__ */ x("path", { d: "M12.5 7.041A3 3 0 1 0 14.959 9.5" }),
|
|
20133
20148
|
/* @__PURE__ */ x("path", { d: "M5 15.216c-.647-1.654-1-3.415-1-5.073C4 5.646 7.582 2 12 2s8 3.646 8 8.143c0 4.462-2.553 9.67-6.537 11.531a3.45 3.45 0 0 1-2.926 0C9.265 21.08 8.138 20.144 7.194 19" })
|
|
20134
20149
|
])
|
|
20135
|
-
], -1)),
|
|
20150
|
+
], -1)), f4 = { class: "sus-item__info-useragent flex items-center ml-3" }, h4 = /* @__PURE__ */ Il(() => /* @__PURE__ */ x("svg", {
|
|
20136
20151
|
class: "sus-svg",
|
|
20137
20152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20138
20153
|
viewBox: "0 0 24 24"
|
|
@@ -20144,7 +20159,7 @@ const Il = (o) => (ca("data-v-6afba7b6"), o = o(), ma(), o), G_ = { class: "sus-
|
|
|
20144
20159
|
"stroke-width": "1.5",
|
|
20145
20160
|
d: "M5 2.252c-.774.169-1.359.45-1.828.92C2 4.343 2 6.229 2 10v1c0 2.828 0 4.243.879 5.121C3.757 17 5.172 17 8 17h8c2.828 0 4.243 0 5.121-.879C22 15.243 22 13.828 22 11v-1c0-3.771 0-5.657-1.172-6.828S17.771 2 14 2H9m7 20H8m4-5v5m10-9h-6M2 13h10"
|
|
20146
20161
|
})
|
|
20147
|
-
], -1)),
|
|
20162
|
+
], -1)), b4 = /* @__PURE__ */ je({
|
|
20148
20163
|
__name: "item",
|
|
20149
20164
|
props: {
|
|
20150
20165
|
comment: {},
|
|
@@ -20154,7 +20169,7 @@ const Il = (o) => (ca("data-v-6afba7b6"), o = o(), ma(), o), G_ = { class: "sus-
|
|
|
20154
20169
|
},
|
|
20155
20170
|
emits: ["on-reply"],
|
|
20156
20171
|
setup(o, { emit: e }) {
|
|
20157
|
-
const t = o, n =
|
|
20172
|
+
const t = o, n = Ce(), a = Ce(), s = Ce(!1), i = e;
|
|
20158
20173
|
function r() {
|
|
20159
20174
|
n.value.style.display = "block", s.value = !1;
|
|
20160
20175
|
}
|
|
@@ -20176,81 +20191,81 @@ const Il = (o) => (ca("data-v-6afba7b6"), o = o(), ma(), o), G_ = { class: "sus-
|
|
|
20176
20191
|
}
|
|
20177
20192
|
return la(() => {
|
|
20178
20193
|
c(), l();
|
|
20179
|
-
}), (d, u) => (W(), J("div",
|
|
20180
|
-
x("div",
|
|
20181
|
-
|
|
20194
|
+
}), (d, u) => (W(), J("div", J_, [
|
|
20195
|
+
x("div", Y_, [
|
|
20196
|
+
Ee(x("span", {
|
|
20182
20197
|
onClick: p,
|
|
20183
20198
|
class: "sus-item__info-reply absolute cursor-pointer"
|
|
20184
20199
|
}, " 回复 ", 512), [
|
|
20185
|
-
[
|
|
20200
|
+
[ft, !d.comment.privacy]
|
|
20186
20201
|
]),
|
|
20187
|
-
x("div",
|
|
20188
|
-
x("div",
|
|
20189
|
-
|
|
20202
|
+
x("div", X_, [
|
|
20203
|
+
x("div", Z_, [
|
|
20204
|
+
Ee(x("img", {
|
|
20190
20205
|
alt: "",
|
|
20191
20206
|
class: "sus-avatar",
|
|
20192
20207
|
src: d.comment.userAvatar,
|
|
20193
20208
|
onerror: "this.onerror=null,this.src='/error.webp'"
|
|
20194
|
-
}, null, 8,
|
|
20195
|
-
[
|
|
20209
|
+
}, null, 8, Q_), [
|
|
20210
|
+
[ft, !!d.comment.userAvatar]
|
|
20196
20211
|
]),
|
|
20197
|
-
|
|
20198
|
-
[
|
|
20212
|
+
Ee(x("span", { class: "sus-avatar-text flex w-full h-full items-center justify-center" }, Le(d.comment.userName.charAt(0)), 513), [
|
|
20213
|
+
[ft, !d.comment.userAvatar]
|
|
20199
20214
|
])
|
|
20200
20215
|
]),
|
|
20201
|
-
x("p",
|
|
20216
|
+
x("p", e4, Le(d.num), 1)
|
|
20202
20217
|
]),
|
|
20203
|
-
x("div",
|
|
20204
|
-
x("div",
|
|
20218
|
+
x("div", t4, [
|
|
20219
|
+
x("div", o4, [
|
|
20205
20220
|
x("a", {
|
|
20206
20221
|
target: "_blank",
|
|
20207
20222
|
rel: m(),
|
|
20208
20223
|
href: d.comment.userWebsite,
|
|
20209
20224
|
class: So([d.comment.tagName, "sus-item__user-name font-semibold ml-1 cursor-pointer"])
|
|
20210
|
-
}, Le(d.comment.userName), 11,
|
|
20211
|
-
d.comment.tagName === "owner" ? (W(), J("span",
|
|
20212
|
-
d.comment.replyName ? (W(), J("span",
|
|
20213
|
-
x("span",
|
|
20225
|
+
}, Le(d.comment.userName), 11, n4),
|
|
20226
|
+
d.comment.tagName === "owner" ? (W(), J("span", a4, " 博主 ")) : Ue("", !0),
|
|
20227
|
+
d.comment.replyName ? (W(), J("span", s4, "@" + Le(d.comment.replyName), 1)) : Ue("", !0),
|
|
20228
|
+
x("span", i4, Le(We(G_)(d.comment.createdDate)), 1)
|
|
20214
20229
|
]),
|
|
20215
|
-
d.comment.privacy ? (W(), J("div",
|
|
20216
|
-
|
|
20230
|
+
d.comment.privacy ? (W(), J("div", r4, [
|
|
20231
|
+
l4,
|
|
20217
20232
|
x("span", {
|
|
20218
20233
|
class: "sus-item-privacy-text",
|
|
20219
20234
|
innerHTML: d.comment.content
|
|
20220
|
-
}, null, 8,
|
|
20221
|
-
])) : (W(), J("div",
|
|
20235
|
+
}, null, 8, p4)
|
|
20236
|
+
])) : (W(), J("div", c4, [
|
|
20222
20237
|
x("span", {
|
|
20223
20238
|
ref_key: "contentDom",
|
|
20224
20239
|
ref: n,
|
|
20225
20240
|
class: "sus-item__content-text",
|
|
20226
20241
|
innerHTML: d.comment.content + (d.comment.contentExtends || "")
|
|
20227
|
-
}, null, 8,
|
|
20242
|
+
}, null, 8, m4),
|
|
20228
20243
|
s.value ? (W(), J("a", {
|
|
20229
20244
|
key: 0,
|
|
20230
20245
|
ref_key: "showMoreDom",
|
|
20231
20246
|
ref: a,
|
|
20232
20247
|
class: "sus-show-detail my-1.5 cursor-pointer",
|
|
20233
20248
|
onClick: r
|
|
20234
|
-
}, "显示更多>", 512)) :
|
|
20249
|
+
}, "显示更多>", 512)) : Ue("", !0)
|
|
20235
20250
|
]))
|
|
20236
20251
|
])
|
|
20237
20252
|
]),
|
|
20238
|
-
d.showFooter && d.comment.area && !d.comment.privacy ? (W(), J("div",
|
|
20239
|
-
x("span",
|
|
20240
|
-
|
|
20253
|
+
d.showFooter && d.comment.area && !d.comment.privacy ? (W(), J("div", d4, [
|
|
20254
|
+
x("span", u4, [
|
|
20255
|
+
g4,
|
|
20241
20256
|
Vn(" " + Le(d.comment.area), 1)
|
|
20242
20257
|
]),
|
|
20243
|
-
x("span",
|
|
20244
|
-
|
|
20258
|
+
x("span", f4, [
|
|
20259
|
+
h4,
|
|
20245
20260
|
Vn(" " + Le(d.comment.userAgent), 1)
|
|
20246
20261
|
])
|
|
20247
|
-
])) :
|
|
20262
|
+
])) : Ue("", !0)
|
|
20248
20263
|
]));
|
|
20249
20264
|
}
|
|
20250
|
-
}), Ta = /* @__PURE__ */ En(
|
|
20265
|
+
}), Ta = /* @__PURE__ */ En(b4, [["__scopeId", "data-v-0ecc1ddf"]]), v4 = { class: "sus-comment__item" }, j4 = { class: "sus-comment__item-child" }, k4 = { key: 2 }, y4 = {
|
|
20251
20266
|
key: 0,
|
|
20252
20267
|
class: "sus-comment__item-footer flex justify-center w-full cursor-pointer"
|
|
20253
|
-
},
|
|
20268
|
+
}, _4 = /* @__PURE__ */ je({
|
|
20254
20269
|
__name: "index",
|
|
20255
20270
|
props: {
|
|
20256
20271
|
comment: {},
|
|
@@ -20259,20 +20274,20 @@ const Il = (o) => (ca("data-v-6afba7b6"), o = o(), ma(), o), G_ = { class: "sus-
|
|
|
20259
20274
|
},
|
|
20260
20275
|
emits: ["on-reply"],
|
|
20261
20276
|
setup(o, { emit: e }) {
|
|
20262
|
-
const t =
|
|
20277
|
+
const t = Ce(!1), n = e;
|
|
20263
20278
|
function a(s) {
|
|
20264
20279
|
n("on-reply", s);
|
|
20265
20280
|
}
|
|
20266
20281
|
return (s, i) => {
|
|
20267
20282
|
var r, l, p;
|
|
20268
|
-
return W(), J("div",
|
|
20283
|
+
return W(), J("div", v4, [
|
|
20269
20284
|
Ba(Ta, {
|
|
20270
20285
|
comment: s.comment,
|
|
20271
20286
|
onOnReply: i[0] || (i[0] = (c) => a(s.comment)),
|
|
20272
20287
|
lineHeight: s.lineHeight,
|
|
20273
20288
|
showFooter: s.showFooter
|
|
20274
20289
|
}, null, 8, ["comment", "lineHeight", "showFooter"]),
|
|
20275
|
-
x("div",
|
|
20290
|
+
x("div", j4, [
|
|
20276
20291
|
((r = s.comment.child) == null ? void 0 : r.length) > 0 ? (W(), Na(Ta, {
|
|
20277
20292
|
key: 0,
|
|
20278
20293
|
onOnReply: i[1] || (i[1] = (c) => a(s.comment.child[0])),
|
|
@@ -20281,7 +20296,7 @@ const Il = (o) => (ca("data-v-6afba7b6"), o = o(), ma(), o), G_ = { class: "sus-
|
|
|
20281
20296
|
showFooter: s.showFooter,
|
|
20282
20297
|
lineHeight: s.lineHeight,
|
|
20283
20298
|
class: "sus-comment__item-child__item"
|
|
20284
|
-
}, null, 8, ["comment", "showFooter", "lineHeight"])) :
|
|
20299
|
+
}, null, 8, ["comment", "showFooter", "lineHeight"])) : Ue("", !0),
|
|
20285
20300
|
((l = s.comment.child) == null ? void 0 : l.length) > 1 ? (W(), Na(Ta, {
|
|
20286
20301
|
key: 1,
|
|
20287
20302
|
onOnReply: i[2] || (i[2] = (c) => a(s.comment.child[1])),
|
|
@@ -20290,9 +20305,9 @@ const Il = (o) => (ca("data-v-6afba7b6"), o = o(), ma(), o), G_ = { class: "sus-
|
|
|
20290
20305
|
showFooter: s.showFooter,
|
|
20291
20306
|
lineHeight: s.lineHeight,
|
|
20292
20307
|
class: "sus-comment__item-child__item"
|
|
20293
|
-
}, null, 8, ["comment", "showFooter", "lineHeight"])) :
|
|
20294
|
-
((p = s.comment.child) == null ? void 0 : p.length) > 2 ? (W(), J("div",
|
|
20295
|
-
t.value ?
|
|
20308
|
+
}, null, 8, ["comment", "showFooter", "lineHeight"])) : Ue("", !0),
|
|
20309
|
+
((p = s.comment.child) == null ? void 0 : p.length) > 2 ? (W(), J("div", k4, [
|
|
20310
|
+
t.value ? Ue("", !0) : (W(), J("div", y4, [
|
|
20296
20311
|
x("p", {
|
|
20297
20312
|
class: "sus-load-more",
|
|
20298
20313
|
onClick: i[3] || (i[3] = (c) => t.value = !0)
|
|
@@ -20306,36 +20321,36 @@ const Il = (o) => (ca("data-v-6afba7b6"), o = o(), ma(), o), G_ = { class: "sus-
|
|
|
20306
20321
|
showFooter: s.showFooter,
|
|
20307
20322
|
lineHeight: s.lineHeight,
|
|
20308
20323
|
class: "sus-comment__item-child__item"
|
|
20309
|
-
}, null, 8, ["onOnReply", "comment", "num", "showFooter", "lineHeight"]))), 128)) :
|
|
20310
|
-
])) :
|
|
20324
|
+
}, null, 8, ["onOnReply", "comment", "num", "showFooter", "lineHeight"]))), 128)) : Ue("", !0)
|
|
20325
|
+
])) : Ue("", !0)
|
|
20311
20326
|
])
|
|
20312
20327
|
]);
|
|
20313
20328
|
};
|
|
20314
20329
|
}
|
|
20315
|
-
}),
|
|
20330
|
+
}), D4 = /* @__PURE__ */ En(_4, [["__scopeId", "data-v-394137ac"]]), w4 = { class: "sus-top-item flex items-start p-1.5 overflow-hidden" }, I4 = { class: "sus-top-item__info flex flex-col mr-1" }, E4 = { class: "sus-top-item__user whitespace-nowrap" }, C4 = {
|
|
20316
20331
|
key: 0,
|
|
20317
20332
|
class: "sus-top-item__reply whitespace-nowrap"
|
|
20318
|
-
},
|
|
20333
|
+
}, x4 = ["innerHTML"], S4 = /* @__PURE__ */ je({
|
|
20319
20334
|
__name: "simple",
|
|
20320
20335
|
props: {
|
|
20321
20336
|
comment: {}
|
|
20322
20337
|
},
|
|
20323
20338
|
setup(o) {
|
|
20324
|
-
return (e, t) => (W(), J("div",
|
|
20325
|
-
x("div",
|
|
20326
|
-
x("span",
|
|
20327
|
-
e.comment.replyName ? (W(), J("span",
|
|
20339
|
+
return (e, t) => (W(), J("div", w4, [
|
|
20340
|
+
x("div", I4, [
|
|
20341
|
+
x("span", E4, Le(e.comment.userName) + ": ", 1),
|
|
20342
|
+
e.comment.replyName ? (W(), J("span", C4, Le("@" + e.comment.replyName), 1)) : Ue("", !0)
|
|
20328
20343
|
]),
|
|
20329
20344
|
x("span", {
|
|
20330
20345
|
class: "sus-top-item__content w-full",
|
|
20331
20346
|
innerHTML: e.comment.content
|
|
20332
|
-
}, null, 8,
|
|
20347
|
+
}, null, 8, x4)
|
|
20333
20348
|
]));
|
|
20334
20349
|
}
|
|
20335
|
-
}),
|
|
20350
|
+
}), M4 = /* @__PURE__ */ En(S4, [["__scopeId", "data-v-b136418d"]]), F4 = { class: "sus-top-item__user flex items-center" }, O4 = {
|
|
20336
20351
|
key: 0,
|
|
20337
20352
|
class: "sus-top-item__user-avatar ml-1 mr-2"
|
|
20338
|
-
},
|
|
20353
|
+
}, A4 = ["src"], T4 = { class: "sus-top-item__user-owner" }, N4 = { class: "sus-top-item__user-reply ml-3 opacity-70" }, B4 = ["innerHTML"], R4 = /* @__PURE__ */ je({
|
|
20339
20354
|
__name: "index",
|
|
20340
20355
|
props: {
|
|
20341
20356
|
comment: {}
|
|
@@ -20350,8 +20365,8 @@ const Il = (o) => (ca("data-v-6afba7b6"), o = o(), ma(), o), G_ = { class: "sus-
|
|
|
20350
20365
|
class: "sus-top-item p-1.5 cursor-pointer overflow-hidden",
|
|
20351
20366
|
onClick: n
|
|
20352
20367
|
}, [
|
|
20353
|
-
x("div",
|
|
20354
|
-
a.comment.userAvatar ? (W(), J("div",
|
|
20368
|
+
x("div", F4, [
|
|
20369
|
+
a.comment.userAvatar ? (W(), J("div", O4, [
|
|
20355
20370
|
x("img", {
|
|
20356
20371
|
alt: "",
|
|
20357
20372
|
class: "sus-avatar",
|
|
@@ -20359,28 +20374,28 @@ const Il = (o) => (ca("data-v-6afba7b6"), o = o(), ma(), o), G_ = { class: "sus-
|
|
|
20359
20374
|
decoding: "async",
|
|
20360
20375
|
src: a.comment.userAvatar,
|
|
20361
20376
|
onerror: "this.onerror=null,this.src='/error.webp'"
|
|
20362
|
-
}, null, 8,
|
|
20363
|
-
])) :
|
|
20364
|
-
x("div",
|
|
20365
|
-
x("div",
|
|
20377
|
+
}, null, 8, A4)
|
|
20378
|
+
])) : Ue("", !0),
|
|
20379
|
+
x("div", T4, Le(a.comment.userName), 1),
|
|
20380
|
+
x("div", N4, Le(a.comment.replyName ? "@" + a.comment.replyName : ""), 1)
|
|
20366
20381
|
]),
|
|
20367
20382
|
x("div", {
|
|
20368
20383
|
class: "sus-top-item__content p-1",
|
|
20369
20384
|
innerHTML: a.comment.content
|
|
20370
|
-
}, null, 8,
|
|
20385
|
+
}, null, 8, B4)
|
|
20371
20386
|
]));
|
|
20372
20387
|
}
|
|
20373
|
-
}),
|
|
20388
|
+
}), L4 = /* @__PURE__ */ En(R4, [["__scopeId", "data-v-aa4077a9"]]), P4 = [K_, D4, L4, M4], K4 = {
|
|
20374
20389
|
install(o) {
|
|
20375
|
-
|
|
20390
|
+
P4.forEach((e) => {
|
|
20376
20391
|
o.component(e.name, e);
|
|
20377
20392
|
});
|
|
20378
20393
|
}
|
|
20379
20394
|
};
|
|
20380
20395
|
export {
|
|
20381
|
-
|
|
20382
|
-
|
|
20383
|
-
|
|
20384
|
-
|
|
20385
|
-
|
|
20396
|
+
K_ as SuSComment,
|
|
20397
|
+
D4 as SuSList,
|
|
20398
|
+
M4 as SuSSimpleTop,
|
|
20399
|
+
L4 as SuSTop,
|
|
20400
|
+
K4 as default
|
|
20386
20401
|
};
|