@zipify/wysiwyg 1.0.0-dev.60 → 1.0.0-dev.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wysiwyg.css +1 -1
- package/dist/wysiwyg.mjs +260 -246
- package/example/ExampleApp.vue +21 -2
- package/lib/Wysiwyg.vue +15 -1
- package/lib/assets/icons/background-color.svg +3 -1
- package/lib/assets/icons/font-color.svg +1 -3
- package/lib/composables/__tests__/useEditor.test.js +2 -1
- package/lib/composables/useEditor.js +3 -1
- package/lib/extensions/Superscript.js +5 -1
- package/lib/extensions/index.js +1 -1
- package/lib/styles/content.css +8 -0
- package/package.json +1 -1
package/dist/wysiwyg.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ty = Object.defineProperty;
|
|
2
2
|
var ry = (r, e, t) => e in r ? ty(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
-
var
|
|
4
|
-
import { computed as A, ref as q, watch as
|
|
3
|
+
var Fr = (r, e, t) => (ry(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { computed as A, ref as q, watch as br, inject as z, onUnmounted as Dl, nextTick as pp, provide as ft, onMounted as mp, toRef as fe, reactive as ny } from "vue";
|
|
5
5
|
import { ColorModel as iy, ZipifyColorPicker as oy } from "@zipify/colorpicker";
|
|
6
6
|
function ce(r) {
|
|
7
7
|
this.content = r;
|
|
@@ -885,14 +885,14 @@ function Dp(r, e) {
|
|
|
885
885
|
e = r[t].type.name + "(" + e + ")";
|
|
886
886
|
return e;
|
|
887
887
|
}
|
|
888
|
-
class
|
|
888
|
+
class _r {
|
|
889
889
|
constructor(e) {
|
|
890
890
|
this.validEnd = e, this.next = [], this.wrapCache = [];
|
|
891
891
|
}
|
|
892
892
|
static parse(e, t) {
|
|
893
893
|
let n = new uy(e, t);
|
|
894
894
|
if (n.next == null)
|
|
895
|
-
return
|
|
895
|
+
return _r.empty;
|
|
896
896
|
let i = wp(n);
|
|
897
897
|
n.next && n.err("Unexpected trailing text");
|
|
898
898
|
let o = gy(vy(i));
|
|
@@ -995,7 +995,7 @@ class br {
|
|
|
995
995
|
`);
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
|
-
|
|
998
|
+
_r.empty = new _r(!0);
|
|
999
999
|
class uy {
|
|
1000
1000
|
constructor(e, t) {
|
|
1001
1001
|
this.string = e, this.nodeTypes = t, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
|
|
@@ -1158,7 +1158,7 @@ function gy(r) {
|
|
|
1158
1158
|
});
|
|
1159
1159
|
});
|
|
1160
1160
|
});
|
|
1161
|
-
let o = e[n.join(",")] = new
|
|
1161
|
+
let o = e[n.join(",")] = new _r(n.indexOf(r.length - 1) > -1);
|
|
1162
1162
|
for (let s = 0; s < i.length; s++) {
|
|
1163
1163
|
let a = i[s][1].sort(xp);
|
|
1164
1164
|
o.next.push({ type: i[s][0], next: e[a.join(",")] || t(a) });
|
|
@@ -1219,7 +1219,7 @@ class oo {
|
|
|
1219
1219
|
return this.isBlock && this.inlineContent;
|
|
1220
1220
|
}
|
|
1221
1221
|
get isLeaf() {
|
|
1222
|
-
return this.contentMatch ==
|
|
1222
|
+
return this.contentMatch == _r.empty;
|
|
1223
1223
|
}
|
|
1224
1224
|
get isAtom() {
|
|
1225
1225
|
return this.isLeaf || !!this.spec.atom;
|
|
@@ -1347,7 +1347,7 @@ class _y {
|
|
|
1347
1347
|
if (n in this.marks)
|
|
1348
1348
|
throw new RangeError(n + " can not be both a node and a mark");
|
|
1349
1349
|
let i = this.nodes[n], o = i.spec.content || "", s = i.spec.marks;
|
|
1350
|
-
i.contentMatch = t[o] || (t[o] =
|
|
1350
|
+
i.contentMatch = t[o] || (t[o] = _r.parse(o, this.nodes)), i.inlineContent = i.contentMatch.inlineContent, i.markSet = s == "_" ? null : s ? eu(this, s.split(" ")) : s == "" || !i.inlineContent ? [] : null;
|
|
1351
1351
|
}
|
|
1352
1352
|
for (let n in this.marks) {
|
|
1353
1353
|
let i = this.marks[n], o = i.spec.excludes;
|
|
@@ -2059,15 +2059,15 @@ class Ge {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
}
|
|
2061
2061
|
Ge.empty = new Ge([]);
|
|
2062
|
-
class
|
|
2062
|
+
class Zr {
|
|
2063
2063
|
constructor(e = [], t, n = 0, i = e.length) {
|
|
2064
2064
|
this.maps = e, this.mirror = t, this.from = n, this.to = i;
|
|
2065
2065
|
}
|
|
2066
2066
|
slice(e = 0, t = this.maps.length) {
|
|
2067
|
-
return new
|
|
2067
|
+
return new Zr(this.maps, this.mirror, e, t);
|
|
2068
2068
|
}
|
|
2069
2069
|
copy() {
|
|
2070
|
-
return new
|
|
2070
|
+
return new Zr(this.maps.slice(), this.mirror && this.mirror.slice(), this.from, this.to);
|
|
2071
2071
|
}
|
|
2072
2072
|
appendMap(e, t) {
|
|
2073
2073
|
this.to = this.maps.push(e), t != null && this.setMirror(this.maps.length - 1, t);
|
|
@@ -2095,7 +2095,7 @@ class Xr {
|
|
|
2095
2095
|
}
|
|
2096
2096
|
}
|
|
2097
2097
|
invert() {
|
|
2098
|
-
let e = new
|
|
2098
|
+
let e = new Zr();
|
|
2099
2099
|
return e.appendMappingInverted(this), e;
|
|
2100
2100
|
}
|
|
2101
2101
|
map(e, t = 1) {
|
|
@@ -2490,7 +2490,7 @@ function Ly(r, e, t, n, i) {
|
|
|
2490
2490
|
throw new RangeError("Invalid content for node type " + t.name);
|
|
2491
2491
|
r.step(new se(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new k(S.from(s), 0, 0), 1, !0));
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function Qr(r, e, t = 1, n) {
|
|
2494
2494
|
let i = r.resolve(e), o = i.depth - t, s = n && n[n.length - 1] || i.parent;
|
|
2495
2495
|
if (o < 0 || i.parent.type.spec.isolating || !i.parent.canReplace(i.index(), i.parent.childCount) || !s.type.validContent(i.parent.content.cutByIndex(i.index(), i.parent.childCount)))
|
|
2496
2496
|
return !1;
|
|
@@ -2843,7 +2843,7 @@ on.prototype.constructor = on;
|
|
|
2843
2843
|
on.prototype.name = "TransformError";
|
|
2844
2844
|
class zp {
|
|
2845
2845
|
constructor(e) {
|
|
2846
|
-
this.doc = e, this.steps = [], this.docs = [], this.mapping = new
|
|
2846
|
+
this.doc = e, this.steps = [], this.docs = [], this.mapping = new Zr();
|
|
2847
2847
|
}
|
|
2848
2848
|
get before() {
|
|
2849
2849
|
return this.docs.length ? this.docs[0] : this.doc;
|
|
@@ -2965,11 +2965,11 @@ class P {
|
|
|
2965
2965
|
}
|
|
2966
2966
|
}
|
|
2967
2967
|
static findFrom(e, t, n = !1) {
|
|
2968
|
-
let i = e.parent.inlineContent ? new B(e) :
|
|
2968
|
+
let i = e.parent.inlineContent ? new B(e) : Lr(e.node(0), e.parent, e.pos, e.index(), t, n);
|
|
2969
2969
|
if (i)
|
|
2970
2970
|
return i;
|
|
2971
2971
|
for (let o = e.depth - 1; o >= 0; o--) {
|
|
2972
|
-
let s = t < 0 ?
|
|
2972
|
+
let s = t < 0 ? Lr(e.node(0), e.node(o), e.before(o + 1), e.index(o), t, n) : Lr(e.node(0), e.node(o), e.after(o + 1), e.index(o) + 1, t, n);
|
|
2973
2973
|
if (s)
|
|
2974
2974
|
return s;
|
|
2975
2975
|
}
|
|
@@ -2979,10 +2979,10 @@ class P {
|
|
|
2979
2979
|
return this.findFrom(e, t) || this.findFrom(e, -t) || new Xe(e.node(0));
|
|
2980
2980
|
}
|
|
2981
2981
|
static atStart(e) {
|
|
2982
|
-
return
|
|
2982
|
+
return Lr(e, e, 0, 0, 1) || new Xe(e);
|
|
2983
2983
|
}
|
|
2984
2984
|
static atEnd(e) {
|
|
2985
|
-
return
|
|
2985
|
+
return Lr(e, e, e.content.size, e.childCount, -1) || new Xe(e);
|
|
2986
2986
|
}
|
|
2987
2987
|
static fromJSON(e, t) {
|
|
2988
2988
|
if (!t || !t.type)
|
|
@@ -3158,7 +3158,7 @@ const Zy = {
|
|
|
3158
3158
|
return new Xe(r);
|
|
3159
3159
|
}
|
|
3160
3160
|
};
|
|
3161
|
-
function
|
|
3161
|
+
function Lr(r, e, t, n, i, o = !1) {
|
|
3162
3162
|
if (e.inlineContent)
|
|
3163
3163
|
return B.create(r, t);
|
|
3164
3164
|
for (let s = n - (i > 0 ? 0 : 1); i > 0 ? s < e.childCount : s >= 0; s += i) {
|
|
@@ -3167,7 +3167,7 @@ function Br(r, e, t, n, i, o = !1) {
|
|
|
3167
3167
|
if (!o && I.isSelectable(a))
|
|
3168
3168
|
return I.create(r, t - (i < 0 ? a.nodeSize : 0));
|
|
3169
3169
|
} else {
|
|
3170
|
-
let l =
|
|
3170
|
+
let l = Lr(r, a, t + i, i < 0 ? a.childCount : 0, i, o);
|
|
3171
3171
|
if (l)
|
|
3172
3172
|
return l;
|
|
3173
3173
|
}
|
|
@@ -3318,7 +3318,7 @@ class Ts {
|
|
|
3318
3318
|
});
|
|
3319
3319
|
}
|
|
3320
3320
|
}
|
|
3321
|
-
class
|
|
3321
|
+
class Vr {
|
|
3322
3322
|
constructor(e) {
|
|
3323
3323
|
this.config = e;
|
|
3324
3324
|
}
|
|
@@ -3368,7 +3368,7 @@ class jr {
|
|
|
3368
3368
|
applyInner(e) {
|
|
3369
3369
|
if (!e.before.eq(this.doc))
|
|
3370
3370
|
throw new RangeError("Applying a mismatched transaction");
|
|
3371
|
-
let t = new
|
|
3371
|
+
let t = new Vr(this.config), n = this.config.fields;
|
|
3372
3372
|
for (let i = 0; i < n.length; i++) {
|
|
3373
3373
|
let o = n[i];
|
|
3374
3374
|
t[o.name] = o.apply(e, this[o.name], this, t);
|
|
@@ -3379,13 +3379,13 @@ class jr {
|
|
|
3379
3379
|
return new Qy(this);
|
|
3380
3380
|
}
|
|
3381
3381
|
static create(e) {
|
|
3382
|
-
let t = new Ts(e.doc ? e.doc.type.schema : e.schema, e.plugins), n = new
|
|
3382
|
+
let t = new Ts(e.doc ? e.doc.type.schema : e.schema, e.plugins), n = new Vr(t);
|
|
3383
3383
|
for (let i = 0; i < t.fields.length; i++)
|
|
3384
3384
|
n[t.fields[i].name] = t.fields[i].init(e, n);
|
|
3385
3385
|
return n;
|
|
3386
3386
|
}
|
|
3387
3387
|
reconfigure(e) {
|
|
3388
|
-
let t = new Ts(this.schema, e.plugins), n = t.fields, i = new
|
|
3388
|
+
let t = new Ts(this.schema, e.plugins), n = t.fields, i = new Vr(t);
|
|
3389
3389
|
for (let o = 0; o < n.length; o++) {
|
|
3390
3390
|
let s = n[o].name;
|
|
3391
3391
|
i[s] = this.hasOwnProperty(s) ? this[s] : n[o].init(e, i);
|
|
@@ -3408,7 +3408,7 @@ class jr {
|
|
|
3408
3408
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
3409
3409
|
if (!e.schema)
|
|
3410
3410
|
throw new RangeError("Required config field 'schema' missing");
|
|
3411
|
-
let i = new Ts(e.schema, e.plugins), o = new
|
|
3411
|
+
let i = new Ts(e.schema, e.plugins), o = new Vr(i);
|
|
3412
3412
|
return i.fields.forEach((s) => {
|
|
3413
3413
|
if (s.name == "doc")
|
|
3414
3414
|
o.doc = gt.fromJSON(e.schema, t.doc);
|
|
@@ -3517,7 +3517,7 @@ const Al = function(r) {
|
|
|
3517
3517
|
let e = r.isCollapsed;
|
|
3518
3518
|
return e && be && r.rangeCount && !r.getRangeAt(0).collapsed && (e = !1), e;
|
|
3519
3519
|
};
|
|
3520
|
-
function
|
|
3520
|
+
function Hr(r, e) {
|
|
3521
3521
|
let t = document.createEvent("Event");
|
|
3522
3522
|
return t.initEvent("keydown", !0, !0), t.keyCode = r, t.key = t.code = e, t;
|
|
3523
3523
|
}
|
|
@@ -3590,18 +3590,18 @@ function qp(r, e) {
|
|
|
3590
3590
|
n.scrollTop != i + e && (n.scrollTop = i + e), n.scrollLeft != o && (n.scrollLeft = o);
|
|
3591
3591
|
}
|
|
3592
3592
|
}
|
|
3593
|
-
let
|
|
3593
|
+
let Ir = null;
|
|
3594
3594
|
function u0(r) {
|
|
3595
3595
|
if (r.setActive)
|
|
3596
3596
|
return r.setActive();
|
|
3597
|
-
if (
|
|
3598
|
-
return r.focus(
|
|
3597
|
+
if (Ir)
|
|
3598
|
+
return r.focus(Ir);
|
|
3599
3599
|
let e = Wp(r);
|
|
3600
|
-
r.focus(
|
|
3600
|
+
r.focus(Ir == null ? {
|
|
3601
3601
|
get preventScroll() {
|
|
3602
|
-
return
|
|
3602
|
+
return Ir = { preventScroll: !0 }, !0;
|
|
3603
3603
|
}
|
|
3604
|
-
} : void 0),
|
|
3604
|
+
} : void 0), Ir || (Ir = !1, qp(e, 0));
|
|
3605
3605
|
}
|
|
3606
3606
|
function Up(r, e) {
|
|
3607
3607
|
let t, n = 2e8, i, o = 0, s = e.top, a = e.top;
|
|
@@ -3846,7 +3846,7 @@ let gu = null, yu = null, bu = !1;
|
|
|
3846
3846
|
function _0(r, e, t) {
|
|
3847
3847
|
return gu == e && yu == t ? bu : (gu = e, yu = t, bu = t == "up" || t == "down" ? g0(r, e, t) : b0(r, e, t));
|
|
3848
3848
|
}
|
|
3849
|
-
const Ze = 0, _u = 1,
|
|
3849
|
+
const Ze = 0, _u = 1, Wr = 2, bt = 3;
|
|
3850
3850
|
class ui {
|
|
3851
3851
|
constructor(e, t, n, i) {
|
|
3852
3852
|
this.parent = e, this.children = t, this.dom = n, this.contentDOM = i, this.dirty = Ze, n.pmViewDesc = this;
|
|
@@ -4137,19 +4137,19 @@ class ui {
|
|
|
4137
4137
|
if (n == s ? e <= s && t >= n : e < s && t > n) {
|
|
4138
4138
|
let a = n + o.border, l = s - o.border;
|
|
4139
4139
|
if (e >= a && t <= l) {
|
|
4140
|
-
this.dirty = e == n || t == s ?
|
|
4140
|
+
this.dirty = e == n || t == s ? Wr : _u, e == a && t == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = bt : o.markDirty(e - a, t - a);
|
|
4141
4141
|
return;
|
|
4142
4142
|
} else
|
|
4143
|
-
o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ?
|
|
4143
|
+
o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? Wr : bt;
|
|
4144
4144
|
}
|
|
4145
4145
|
n = s;
|
|
4146
4146
|
}
|
|
4147
|
-
this.dirty =
|
|
4147
|
+
this.dirty = Wr;
|
|
4148
4148
|
}
|
|
4149
4149
|
markParentsDirty() {
|
|
4150
4150
|
let e = 1;
|
|
4151
4151
|
for (let t = this.parent; t; t = t.parent, e++) {
|
|
4152
|
-
let n = e == 1 ?
|
|
4152
|
+
let n = e == 1 ? Wr : _u;
|
|
4153
4153
|
t.dirty < n && (t.dirty = n);
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
@@ -4217,13 +4217,13 @@ class S0 extends ui {
|
|
|
4217
4217
|
return e.type === "characterData" && e.target.nodeValue == e.oldValue;
|
|
4218
4218
|
}
|
|
4219
4219
|
}
|
|
4220
|
-
class
|
|
4220
|
+
class Sr extends ui {
|
|
4221
4221
|
constructor(e, t, n, i) {
|
|
4222
4222
|
super(e, [], n, i), this.mark = t;
|
|
4223
4223
|
}
|
|
4224
4224
|
static create(e, t, n, i) {
|
|
4225
4225
|
let o = i.nodeViews[t.type.name], s = o && o(t, i, n);
|
|
4226
|
-
return (!s || !s.dom) && (s = mt.renderSpec(document, t.type.spec.toDOM(t, n))), new
|
|
4226
|
+
return (!s || !s.dom) && (s = mt.renderSpec(document, t.type.spec.toDOM(t, n))), new Sr(e, t, s.dom, s.contentDOM || s.dom);
|
|
4227
4227
|
}
|
|
4228
4228
|
parseRule() {
|
|
4229
4229
|
return this.dirty & bt || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM || void 0 };
|
|
@@ -4240,14 +4240,14 @@ class _r extends ui {
|
|
|
4240
4240
|
}
|
|
4241
4241
|
}
|
|
4242
4242
|
slice(e, t, n) {
|
|
4243
|
-
let i =
|
|
4243
|
+
let i = Sr.create(this.parent, this.mark, !0, n), o = this.children, s = this.size;
|
|
4244
4244
|
t < s && (o = qa(o, t, s, n)), e > 0 && (o = qa(o, 0, e, n));
|
|
4245
4245
|
for (let a = 0; a < o.length; a++)
|
|
4246
4246
|
o[a].parent = i;
|
|
4247
4247
|
return i.children = o, i;
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
|
-
class
|
|
4250
|
+
class Er extends ui {
|
|
4251
4251
|
constructor(e, t, n, i, o, s, a, l, u) {
|
|
4252
4252
|
super(e, [], o, s), this.node = t, this.outerDeco = n, this.innerDeco = i, this.nodeDOM = a, s && this.updateChildren(l, u);
|
|
4253
4253
|
}
|
|
@@ -4267,7 +4267,7 @@ class Sr extends ui {
|
|
|
4267
4267
|
c || ({ dom: c, contentDOM: f } = mt.renderSpec(document, t.type.spec.toDOM(t)));
|
|
4268
4268
|
!f && !t.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), t.type.spec.draggable && (c.draggable = !0));
|
|
4269
4269
|
let d = c;
|
|
4270
|
-
return c = em(c, n, t), u ? l = new E0(e, t, n, i, c, f || null, d, u, o, s + 1) : t.isText ? new Go(e, t, n, i, c, d, o) : new
|
|
4270
|
+
return c = em(c, n, t), u ? l = new E0(e, t, n, i, c, f || null, d, u, o, s + 1) : t.isText ? new Go(e, t, n, i, c, d, o) : new Er(e, t, n, i, c, f || null, d, o, s + 1);
|
|
4271
4271
|
}
|
|
4272
4272
|
parseRule() {
|
|
4273
4273
|
if (this.node.type.spec.reparseInView)
|
|
@@ -4306,7 +4306,7 @@ class Sr extends ui {
|
|
|
4306
4306
|
l.syncToMarks(u.marks, n, e);
|
|
4307
4307
|
let h;
|
|
4308
4308
|
l.findNodeMatch(u, c, f, d) || a && e.state.selection.from > i && e.state.selection.to < i + u.nodeSize && (h = l.findIndexWithChild(o.node)) > -1 && l.updateNodeAt(u, c, f, h, e) || l.updateNextNode(u, c, f, e, d) || l.addNode(u, c, f, e, i), i += u.nodeSize;
|
|
4309
|
-
}), l.syncToMarks([], n, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty ==
|
|
4309
|
+
}), l.syncToMarks([], n, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Wr) && (s && this.protectLocalComposition(e, s), Zp(this.contentDOM, this.children, e), sn && k0(this.dom));
|
|
4310
4310
|
}
|
|
4311
4311
|
localCompositionInfo(e, t) {
|
|
4312
4312
|
let { from: n, to: i } = e.state.selection;
|
|
@@ -4358,9 +4358,9 @@ class Sr extends ui {
|
|
|
4358
4358
|
}
|
|
4359
4359
|
}
|
|
4360
4360
|
function Su(r, e, t, n, i) {
|
|
4361
|
-
return em(n, e, r), new
|
|
4361
|
+
return em(n, e, r), new Er(void 0, r, e, t, n, n, n, i, 0);
|
|
4362
4362
|
}
|
|
4363
|
-
class Go extends
|
|
4363
|
+
class Go extends Er {
|
|
4364
4364
|
constructor(e, t, n, i, o, s, a) {
|
|
4365
4365
|
super(e, t, n, i, o, null, s, a, 0);
|
|
4366
4366
|
}
|
|
@@ -4414,7 +4414,7 @@ class Xp extends ui {
|
|
|
4414
4414
|
return this.dom.nodeName == "IMG";
|
|
4415
4415
|
}
|
|
4416
4416
|
}
|
|
4417
|
-
class E0 extends
|
|
4417
|
+
class E0 extends Er {
|
|
4418
4418
|
constructor(e, t, n, i, o, s, a, l, u, c) {
|
|
4419
4419
|
super(e, t, n, i, o, s, a, u, c), this.spec = l;
|
|
4420
4420
|
}
|
|
@@ -4456,7 +4456,7 @@ function Zp(r, e, t) {
|
|
|
4456
4456
|
n = n.nextSibling;
|
|
4457
4457
|
} else
|
|
4458
4458
|
i = !0, r.insertBefore(a, n);
|
|
4459
|
-
if (s instanceof
|
|
4459
|
+
if (s instanceof Sr) {
|
|
4460
4460
|
let l = n ? n.previousSibling : r.lastChild;
|
|
4461
4461
|
Zp(s.contentDOM, s.children, t), n = l ? l.nextSibling : r.firstChild;
|
|
4462
4462
|
}
|
|
@@ -4568,7 +4568,7 @@ class w0 {
|
|
|
4568
4568
|
if (a > -1)
|
|
4569
4569
|
a > this.index && (this.changed = !0, this.destroyBetween(this.index, a)), this.top = this.top.children[this.index];
|
|
4570
4570
|
else {
|
|
4571
|
-
let l =
|
|
4571
|
+
let l = Sr.create(this.top, e[o], t, n);
|
|
4572
4572
|
this.top.children.splice(this.index, 0, l), this.top = l, this.changed = !0;
|
|
4573
4573
|
}
|
|
4574
4574
|
this.index = 0, o++;
|
|
@@ -4590,7 +4590,7 @@ class w0 {
|
|
|
4590
4590
|
}
|
|
4591
4591
|
updateNodeAt(e, t, n, i, o) {
|
|
4592
4592
|
let s = this.top.children[i];
|
|
4593
|
-
return s.dirty == bt && s.dom == s.contentDOM && (s.dirty =
|
|
4593
|
+
return s.dirty == bt && s.dom == s.contentDOM && (s.dirty = Wr), s.update(e, t, n, o) ? (this.destroyBetween(this.index, i), this.index = i + 1, !0) : !1;
|
|
4594
4594
|
}
|
|
4595
4595
|
findIndexWithChild(e) {
|
|
4596
4596
|
for (; ; ) {
|
|
@@ -4612,7 +4612,7 @@ class w0 {
|
|
|
4612
4612
|
updateNextNode(e, t, n, i, o) {
|
|
4613
4613
|
for (let s = this.index; s < this.top.children.length; s++) {
|
|
4614
4614
|
let a = this.top.children[s];
|
|
4615
|
-
if (a instanceof
|
|
4615
|
+
if (a instanceof Er) {
|
|
4616
4616
|
let l = this.preMatch.matched.get(a);
|
|
4617
4617
|
if (l != null && l != o)
|
|
4618
4618
|
return !1;
|
|
@@ -4625,7 +4625,7 @@ class w0 {
|
|
|
4625
4625
|
return !1;
|
|
4626
4626
|
}
|
|
4627
4627
|
addNode(e, t, n, i, o) {
|
|
4628
|
-
this.top.children.splice(this.index++, 0,
|
|
4628
|
+
this.top.children.splice(this.index++, 0, Er.create(this.top, e, t, n, i, o)), this.changed = !0;
|
|
4629
4629
|
}
|
|
4630
4630
|
placeWidget(e, t, n) {
|
|
4631
4631
|
let i = this.index < this.top.children.length ? this.top.children[this.index] : null;
|
|
@@ -4638,7 +4638,7 @@ class w0 {
|
|
|
4638
4638
|
}
|
|
4639
4639
|
addTextblockHacks() {
|
|
4640
4640
|
let e = this.top.children[this.index - 1], t = this.top;
|
|
4641
|
-
for (; e instanceof
|
|
4641
|
+
for (; e instanceof Sr; )
|
|
4642
4642
|
t = e, e = t.children[t.children.length - 1];
|
|
4643
4643
|
(!e || !(e instanceof Go) || /\n$/.test(e.node.text)) && ((ke || be) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
|
|
4644
4644
|
}
|
|
@@ -4661,7 +4661,7 @@ function x0(r, e) {
|
|
|
4661
4661
|
for (; ; )
|
|
4662
4662
|
if (n) {
|
|
4663
4663
|
let u = t.children[n - 1];
|
|
4664
|
-
if (u instanceof
|
|
4664
|
+
if (u instanceof Sr)
|
|
4665
4665
|
t = u, n = u.children.length;
|
|
4666
4666
|
else {
|
|
4667
4667
|
a = u, n--;
|
|
@@ -5297,7 +5297,7 @@ _e.keydown = (r, e) => {
|
|
|
5297
5297
|
if (t.keyCode != 229 && r.domObserver.forceFlush(), sn && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
|
|
5298
5298
|
let n = Date.now();
|
|
5299
5299
|
r.input.lastIOSEnter = n, r.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
5300
|
-
r.input.lastIOSEnter == n && (r.someProp("handleKeyDown", (i) => i(r,
|
|
5300
|
+
r.input.lastIOSEnter == n && (r.someProp("handleKeyDown", (i) => i(r, Hr(13, "Enter"))), r.input.lastIOSEnter = 0);
|
|
5301
5301
|
}, 200);
|
|
5302
5302
|
} else
|
|
5303
5303
|
r.someProp("handleKeyDown", (n) => n(r, t)) || R0(r, t) ? t.preventDefault() : cr(r, "key");
|
|
@@ -5335,7 +5335,7 @@ function Fl(r, e, t, n, i) {
|
|
|
5335
5335
|
return !0;
|
|
5336
5336
|
return !1;
|
|
5337
5337
|
}
|
|
5338
|
-
function
|
|
5338
|
+
function en(r, e, t) {
|
|
5339
5339
|
r.focused || r.focus();
|
|
5340
5340
|
let n = r.state.tr.setSelection(e);
|
|
5341
5341
|
t == "pointer" && n.setMeta("pointer", !0), r.dispatch(n);
|
|
@@ -5344,7 +5344,7 @@ function G0(r, e) {
|
|
|
5344
5344
|
if (e == -1)
|
|
5345
5345
|
return !1;
|
|
5346
5346
|
let t = r.state.doc.resolve(e), n = t.nodeAfter;
|
|
5347
|
-
return n && n.isAtom && I.isSelectable(n) ? (
|
|
5347
|
+
return n && n.isAtom && I.isSelectable(n) ? (en(r, new I(t), "pointer"), !0) : !1;
|
|
5348
5348
|
}
|
|
5349
5349
|
function J0(r, e) {
|
|
5350
5350
|
if (e == -1)
|
|
@@ -5359,7 +5359,7 @@ function J0(r, e) {
|
|
|
5359
5359
|
break;
|
|
5360
5360
|
}
|
|
5361
5361
|
}
|
|
5362
|
-
return i != null ? (
|
|
5362
|
+
return i != null ? (en(r, I.create(r.state.doc, i), "pointer"), !0) : !1;
|
|
5363
5363
|
}
|
|
5364
5364
|
function Y0(r, e, t, n, i) {
|
|
5365
5365
|
return Fl(r, "handleClickOn", e, t, n) || r.someProp("handleClick", (o) => o(r, e, n)) || (i ? J0(r, t) : G0(r, t));
|
|
@@ -5375,14 +5375,14 @@ function Q0(r, e, t) {
|
|
|
5375
5375
|
return !1;
|
|
5376
5376
|
let n = r.state.doc;
|
|
5377
5377
|
if (e == -1)
|
|
5378
|
-
return n.inlineContent ? (
|
|
5378
|
+
return n.inlineContent ? (en(r, B.create(n, 0, n.content.size), "pointer"), !0) : !1;
|
|
5379
5379
|
let i = n.resolve(e);
|
|
5380
5380
|
for (let o = i.depth + 1; o > 0; o--) {
|
|
5381
5381
|
let s = o > i.depth ? i.nodeAfter : i.node(o), a = i.before(o);
|
|
5382
5382
|
if (s.inlineContent)
|
|
5383
|
-
|
|
5383
|
+
en(r, B.create(n, a + 1, a + 1 + s.content.size), "pointer");
|
|
5384
5384
|
else if (I.isSelectable(s))
|
|
5385
|
-
|
|
5385
|
+
en(r, I.create(n, a), "pointer");
|
|
5386
5386
|
else
|
|
5387
5387
|
continue;
|
|
5388
5388
|
return !0;
|
|
@@ -5429,7 +5429,7 @@ class eb {
|
|
|
5429
5429
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
5430
5430
|
return;
|
|
5431
5431
|
let t = this.pos;
|
|
5432
|
-
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Jo(e))), this.allowDefault || !t ? cr(this.view, "pointer") : Y0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || ke && this.mightDrag && !this.mightDrag.node.isAtom || be && !(this.view.state.selection instanceof B) && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (
|
|
5432
|
+
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Jo(e))), this.allowDefault || !t ? cr(this.view, "pointer") : Y0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || ke && this.mightDrag && !this.mightDrag.node.isAtom || be && !(this.view.state.selection instanceof B) && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (en(this.view, P.near(this.view.state.doc.resolve(t.pos)), "pointer"), e.preventDefault()) : cr(this.view, "pointer");
|
|
5433
5433
|
}
|
|
5434
5434
|
move(e) {
|
|
5435
5435
|
!this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0), cr(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -5615,7 +5615,7 @@ Ae.beforeinput = (r, e) => {
|
|
|
5615
5615
|
r.domObserver.flushSoon();
|
|
5616
5616
|
let { domChangeCount: n } = r.input;
|
|
5617
5617
|
setTimeout(() => {
|
|
5618
|
-
if (r.input.domChangeCount != n || (r.dom.blur(), r.focus(), r.someProp("handleKeyDown", (o) => o(r,
|
|
5618
|
+
if (r.input.domChangeCount != n || (r.dom.blur(), r.focus(), r.someProp("handleKeyDown", (o) => o(r, Hr(8, "Backspace")))))
|
|
5619
5619
|
return;
|
|
5620
5620
|
let { $cursor: i } = r.state.selection;
|
|
5621
5621
|
i && i.pos > 0 && r.dispatch(r.state.tr.delete(i.pos - 1, i.pos).scrollIntoView());
|
|
@@ -5723,10 +5723,10 @@ class Le {
|
|
|
5723
5723
|
return this.type instanceof Ht;
|
|
5724
5724
|
}
|
|
5725
5725
|
}
|
|
5726
|
-
const
|
|
5726
|
+
const zr = [], hr = {};
|
|
5727
5727
|
class ue {
|
|
5728
5728
|
constructor(e, t) {
|
|
5729
|
-
this.local = e.length ? e :
|
|
5729
|
+
this.local = e.length ? e : zr, this.children = t.length ? t : zr;
|
|
5730
5730
|
}
|
|
5731
5731
|
static create(e, t) {
|
|
5732
5732
|
return t.length ? uo(t, e, 0, hr) : ve;
|
|
@@ -5755,7 +5755,7 @@ class ue {
|
|
|
5755
5755
|
let l = this.local[a].map(e, n, i);
|
|
5756
5756
|
l && l.type.valid(t, l) ? (s || (s = [])).push(l) : o.onRemove && o.onRemove(this.local[a].spec);
|
|
5757
5757
|
}
|
|
5758
|
-
return this.children.length ? ab(this.children, s || [], e, t, n, i, o) : s ? new ue(s.sort(pr),
|
|
5758
|
+
return this.children.length ? ab(this.children, s || [], e, t, n, i, o) : s ? new ue(s.sort(pr), zr) : ve;
|
|
5759
5759
|
}
|
|
5760
5760
|
add(e, t) {
|
|
5761
5761
|
return t.length ? this == ve ? ue.create(e, t) : this.addInner(e, t, 0) : this;
|
|
@@ -5818,7 +5818,7 @@ class ue {
|
|
|
5818
5818
|
}
|
|
5819
5819
|
}
|
|
5820
5820
|
if (i) {
|
|
5821
|
-
let a = new ue(i.sort(pr),
|
|
5821
|
+
let a = new ue(i.sort(pr), zr);
|
|
5822
5822
|
return n ? new Lt([a, n]) : a;
|
|
5823
5823
|
}
|
|
5824
5824
|
return n || ve;
|
|
@@ -5841,7 +5841,7 @@ class ue {
|
|
|
5841
5841
|
}
|
|
5842
5842
|
localsInner(e) {
|
|
5843
5843
|
if (this == ve)
|
|
5844
|
-
return
|
|
5844
|
+
return zr;
|
|
5845
5845
|
if (e.inlineContent || !this.local.some(Ht.is))
|
|
5846
5846
|
return this.local;
|
|
5847
5847
|
let t = [];
|
|
@@ -5892,7 +5892,7 @@ class Lt {
|
|
|
5892
5892
|
t.push(o[s]);
|
|
5893
5893
|
}
|
|
5894
5894
|
}
|
|
5895
|
-
return t ? Pl(n ? t : t.sort(pr)) :
|
|
5895
|
+
return t ? Pl(n ? t : t.sort(pr)) : zr;
|
|
5896
5896
|
}
|
|
5897
5897
|
static from(e) {
|
|
5898
5898
|
switch (e.length) {
|
|
@@ -6237,7 +6237,7 @@ function vb(r, e, t, n, i) {
|
|
|
6237
6237
|
let u = r.state.doc, c = u.slice(l.from, l.to), f, d;
|
|
6238
6238
|
r.input.lastKeyCode === 8 && Date.now() - 100 < r.input.lastKeyCodeTime ? (f = r.state.selection.to, d = "end") : (f = r.state.selection.from, d = "start"), r.input.lastKeyCode = null;
|
|
6239
6239
|
let h = bb(c.content, l.doc.content, l.from, f, d);
|
|
6240
|
-
if ((sn && r.input.lastIOSEnter > Date.now() - 225 || dt) && i.some((E) => E.nodeName == "DIV" || E.nodeName == "P") && (!h || h.endA >= h.endB) && r.someProp("handleKeyDown", (E) => E(r,
|
|
6240
|
+
if ((sn && r.input.lastIOSEnter > Date.now() - 225 || dt) && i.some((E) => E.nodeName == "DIV" || E.nodeName == "P") && (!h || h.endA >= h.endB) && r.someProp("handleKeyDown", (E) => E(r, Hr(13, "Enter")))) {
|
|
6241
6241
|
r.input.lastIOSEnter = 0;
|
|
6242
6242
|
return;
|
|
6243
6243
|
}
|
|
@@ -6253,17 +6253,17 @@ function vb(r, e, t, n, i) {
|
|
|
6253
6253
|
}
|
|
6254
6254
|
r.input.domChangeCount++, r.state.selection.from < r.state.selection.to && h.start == h.endB && r.state.selection instanceof B && (h.start > r.state.selection.from && h.start <= r.state.selection.from + 2 && r.state.selection.from >= l.from ? h.start = r.state.selection.from : h.endA < r.state.selection.to && h.endA >= r.state.selection.to - 2 && r.state.selection.to <= l.to && (h.endB += r.state.selection.to - h.endA, h.endA = r.state.selection.to)), Ie && Vt <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > l.from && l.doc.textBetween(h.start - l.from - 1, h.start - l.from + 1) == " \xA0" && (h.start--, h.endA--, h.endB--);
|
|
6255
6255
|
let p = l.doc.resolveNoCache(h.start - l.from), m = l.doc.resolveNoCache(h.endB - l.from), v = u.resolve(h.start), g = p.sameParent(m) && p.parent.inlineContent && v.end() >= h.endA, y;
|
|
6256
|
-
if ((sn && r.input.lastIOSEnter > Date.now() - 225 && (!g || i.some((E) => E.nodeName == "DIV" || E.nodeName == "P")) || !g && p.pos < l.doc.content.size && (y = P.findFrom(l.doc.resolve(p.pos + 1), 1, !0)) && y.head == m.pos) && r.someProp("handleKeyDown", (E) => E(r,
|
|
6256
|
+
if ((sn && r.input.lastIOSEnter > Date.now() - 225 && (!g || i.some((E) => E.nodeName == "DIV" || E.nodeName == "P")) || !g && p.pos < l.doc.content.size && (y = P.findFrom(l.doc.resolve(p.pos + 1), 1, !0)) && y.head == m.pos) && r.someProp("handleKeyDown", (E) => E(r, Hr(13, "Enter")))) {
|
|
6257
6257
|
r.input.lastIOSEnter = 0;
|
|
6258
6258
|
return;
|
|
6259
6259
|
}
|
|
6260
|
-
if (r.state.selection.anchor > h.start && yb(u, h.start, h.endA, p, m) && r.someProp("handleKeyDown", (E) => E(r,
|
|
6260
|
+
if (r.state.selection.anchor > h.start && yb(u, h.start, h.endA, p, m) && r.someProp("handleKeyDown", (E) => E(r, Hr(8, "Backspace")))) {
|
|
6261
6261
|
dt && be && r.domObserver.suppressSelectionUpdates();
|
|
6262
6262
|
return;
|
|
6263
6263
|
}
|
|
6264
6264
|
be && dt && h.endB == h.start && (r.input.lastAndroidDelete = Date.now()), dt && !g && p.start() != m.start() && m.parentOffset == 0 && p.depth == m.depth && l.sel && l.sel.anchor == l.sel.head && l.sel.head == h.endA && (h.endB -= 2, m = l.doc.resolveNoCache(h.endB - l.from), setTimeout(() => {
|
|
6265
6265
|
r.someProp("handleKeyDown", function(E) {
|
|
6266
|
-
return E(r,
|
|
6266
|
+
return E(r, Hr(13, "Enter"));
|
|
6267
6267
|
});
|
|
6268
6268
|
}, 20));
|
|
6269
6269
|
let D = h.start, _ = h.endA, x, b, C;
|
|
@@ -6829,7 +6829,7 @@ const zb = (r, e) => {
|
|
|
6829
6829
|
return !1;
|
|
6830
6830
|
if (t.depth > 1 && t.after() != t.end(-1)) {
|
|
6831
6831
|
let o = t.before();
|
|
6832
|
-
if (
|
|
6832
|
+
if (Qr(r.doc, o))
|
|
6833
6833
|
return e && e(r.tr.split(o).scrollIntoView()), !0;
|
|
6834
6834
|
}
|
|
6835
6835
|
let n = t.blockRange(), i = n && mn(n);
|
|
@@ -6943,7 +6943,7 @@ function Jb(r, e, t, n, i) {
|
|
|
6943
6943
|
t[c].type == i && (s = c + 1);
|
|
6944
6944
|
let a = t.length - s, l = e.start + t.length - (n ? 2 : 0), u = e.parent;
|
|
6945
6945
|
for (let c = e.startIndex, f = e.endIndex, d = !0; c < f; c++, d = !1)
|
|
6946
|
-
!d &&
|
|
6946
|
+
!d && Qr(r.doc, l, a) && (r.split(l, a), l += 2 * a), l += u.child(c).nodeSize;
|
|
6947
6947
|
return r;
|
|
6948
6948
|
}
|
|
6949
6949
|
function Yb(r) {
|
|
@@ -7518,9 +7518,9 @@ function d1(r) {
|
|
|
7518
7518
|
const e = r.filter((t, n) => r.indexOf(t) !== n);
|
|
7519
7519
|
return [...new Set(e)];
|
|
7520
7520
|
}
|
|
7521
|
-
class
|
|
7521
|
+
class qr {
|
|
7522
7522
|
constructor(e, t) {
|
|
7523
|
-
this.splittableMarks = [], this.editor = t, this.extensions =
|
|
7523
|
+
this.splittableMarks = [], this.editor = t, this.extensions = qr.resolve(e), this.schema = n1(this.extensions), this.extensions.forEach((n) => {
|
|
7524
7524
|
var i;
|
|
7525
7525
|
this.editor.extensionStorage[n.name] = n.storage;
|
|
7526
7526
|
const o = {
|
|
@@ -7550,7 +7550,7 @@ class Wr {
|
|
|
7550
7550
|
});
|
|
7551
7551
|
}
|
|
7552
7552
|
static resolve(e) {
|
|
7553
|
-
const t =
|
|
7553
|
+
const t = qr.sort(qr.flatten(e)), n = d1(t.map((i) => i.name));
|
|
7554
7554
|
return n.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), t;
|
|
7555
7555
|
}
|
|
7556
7556
|
static flatten(e) {
|
|
@@ -7588,7 +7588,7 @@ class Wr {
|
|
|
7588
7588
|
}, {});
|
|
7589
7589
|
}
|
|
7590
7590
|
get plugins() {
|
|
7591
|
-
const { editor: e } = this, t =
|
|
7591
|
+
const { editor: e } = this, t = qr.sort([...this.extensions].reverse()), n = [], i = [], o = t.map((s) => {
|
|
7592
7592
|
const a = {
|
|
7593
7593
|
name: s.name,
|
|
7594
7594
|
options: s.options,
|
|
@@ -8103,7 +8103,7 @@ function Yu(r, e) {
|
|
|
8103
8103
|
const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, editor: i }) => {
|
|
8104
8104
|
const { selection: o, doc: s } = e, { $from: a, $to: l } = o, u = i.extensionManager.attributes, c = Wi(u, a.node().type.name, a.node().attrs);
|
|
8105
8105
|
if (o instanceof I && o.node.isBlock)
|
|
8106
|
-
return !a.parentOffset || !
|
|
8106
|
+
return !a.parentOffset || !Qr(s, a.pos) ? !1 : (n && (r && Yu(t, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
|
8107
8107
|
if (!a.parent.isBlock)
|
|
8108
8108
|
return !1;
|
|
8109
8109
|
if (n) {
|
|
@@ -8113,8 +8113,8 @@ const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
8113
8113
|
let h = f && d ? [{
|
|
8114
8114
|
type: d,
|
|
8115
8115
|
attrs: c
|
|
8116
|
-
}] : void 0, p =
|
|
8117
|
-
if (!h && !p &&
|
|
8116
|
+
}] : void 0, p = Qr(e.doc, e.mapping.map(a.pos), 1, h);
|
|
8117
|
+
if (!h && !p && Qr(e.doc, e.mapping.map(a.pos), 1, d ? [{ type: d }] : void 0) && (p = !0, h = d ? [{
|
|
8118
8118
|
type: d,
|
|
8119
8119
|
attrs: c
|
|
8120
8120
|
}] : void 0), p && (e.split(e.mapping.map(a.pos), 1, h), d && !f && !a.parentOffset && a.parent.type !== d)) {
|
|
@@ -8157,7 +8157,7 @@ const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
8157
8157
|
const d = l.pos === a.end() ? c.contentMatchAt(0).defaultType : null, h = Wi(f, c.type.name, c.attrs), p = Wi(f, a.node().type.name, a.node().attrs);
|
|
8158
8158
|
e.delete(a.pos, l.pos);
|
|
8159
8159
|
const m = d ? [{ type: s, attrs: h }, { type: d, attrs: p }] : [{ type: s, attrs: h }];
|
|
8160
|
-
return
|
|
8160
|
+
return Qr(e.doc, a.pos, 2) ? (n && e.split(a.pos, 2, m).scrollIntoView(), !0) : !1;
|
|
8161
8161
|
};
|
|
8162
8162
|
function c_(r, e) {
|
|
8163
8163
|
for (let t = r.depth; t > 0; t -= 1) {
|
|
@@ -8687,7 +8687,7 @@ class I_ extends e1 {
|
|
|
8687
8687
|
}
|
|
8688
8688
|
createExtensionManager() {
|
|
8689
8689
|
const t = [...this.options.enableCoreExtensions ? Object.values(C_) : [], ...this.options.extensions].filter((n) => ["extension", "node", "mark"].includes(n == null ? void 0 : n.type));
|
|
8690
|
-
this.extensionManager = new
|
|
8690
|
+
this.extensionManager = new qr(t, this);
|
|
8691
8691
|
}
|
|
8692
8692
|
createCommandManager() {
|
|
8693
8693
|
this.commandManager = new Xo({
|
|
@@ -8702,7 +8702,7 @@ class I_ extends e1 {
|
|
|
8702
8702
|
this.view = new _b(this.options.element, {
|
|
8703
8703
|
...this.options.editorProps,
|
|
8704
8704
|
dispatchTransaction: this.dispatchTransaction.bind(this),
|
|
8705
|
-
state:
|
|
8705
|
+
state: Vr.create({
|
|
8706
8706
|
doc: e,
|
|
8707
8707
|
selection: t || void 0
|
|
8708
8708
|
})
|
|
@@ -9513,8 +9513,8 @@ function wS(r) {
|
|
|
9513
9513
|
function xS(r) {
|
|
9514
9514
|
var e = r.state, t = r.options, n = r.name;
|
|
9515
9515
|
if (!e.modifiersData[n]._skip) {
|
|
9516
|
-
for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, a = s === void 0 ? !0 : s, l = t.fallbackPlacements, u = t.padding, c = t.boundary, f = t.rootBoundary, d = t.altBoundary, h = t.flipVariations, p = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, v = e.options.placement, g = Qe(v), y = g === v, D = l || (y || !p ? [qi(v)] : wS(v)), _ = [v].concat(D).reduce(function(
|
|
9517
|
-
return
|
|
9516
|
+
for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, a = s === void 0 ? !0 : s, l = t.fallbackPlacements, u = t.padding, c = t.boundary, f = t.rootBoundary, d = t.altBoundary, h = t.flipVariations, p = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, v = e.options.placement, g = Qe(v), y = g === v, D = l || (y || !p ? [qi(v)] : wS(v)), _ = [v].concat(D).reduce(function($r, Tt) {
|
|
9517
|
+
return $r.concat(Qe(Tt) === ts ? DS(e, {
|
|
9518
9518
|
placement: Tt,
|
|
9519
9519
|
boundary: c,
|
|
9520
9520
|
rootBoundary: f,
|
|
@@ -9531,9 +9531,9 @@ function xS(r) {
|
|
|
9531
9531
|
padding: u
|
|
9532
9532
|
}), De = st ? J ? He : Oe : J ? Ve : Ce;
|
|
9533
9533
|
x[Ee] > b[Ee] && (De = qi(De));
|
|
9534
|
-
var
|
|
9535
|
-
if (o && K.push(Y[Q] <= 0), a && K.push(Y[De] <= 0, Y[
|
|
9536
|
-
return
|
|
9534
|
+
var Mr = qi(De), K = [];
|
|
9535
|
+
if (o && K.push(Y[Q] <= 0), a && K.push(Y[De] <= 0, Y[Mr] <= 0), K.every(function($r) {
|
|
9536
|
+
return $r;
|
|
9537
9537
|
})) {
|
|
9538
9538
|
F = j, E = !1;
|
|
9539
9539
|
break;
|
|
@@ -9672,10 +9672,10 @@ function NS(r) {
|
|
|
9672
9672
|
};
|
|
9673
9673
|
if (!!b) {
|
|
9674
9674
|
if (o) {
|
|
9675
|
-
var J, st = _ === "y" ? Ce : Oe, Ee = _ === "y" ? Ve : He, Y = _ === "y" ? "height" : "width", De = b[_],
|
|
9675
|
+
var J, st = _ === "y" ? Ce : Oe, Ee = _ === "y" ? Ve : He, Y = _ === "y" ? "height" : "width", De = b[_], Mr = De + v[st], K = De - v[Ee], X = h ? -E[Y] / 2 : 0, St = y === cn ? C[Y] : E[Y], wn = y === cn ? -E[Y] : -C[Y], bi = e.elements.arrow, $r = h && bi ? Wl(bi) : {
|
|
9676
9676
|
width: 0,
|
|
9677
9677
|
height: 0
|
|
9678
|
-
}, Tt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Bm(), xn = Tt[st], _i = Tt[Ee], tr = qn(0, C[Y],
|
|
9678
|
+
}, Tt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Bm(), xn = Tt[st], _i = Tt[Ee], tr = qn(0, C[Y], $r[Y]), bs = D ? C[Y] / 2 - X - tr - xn - V.mainAxis : St - tr - xn - V.mainAxis, Jg = D ? -C[Y] / 2 + X + tr + _i + V.mainAxis : wn + tr + _i + V.mainAxis, _s = e.elements.arrow && di(e.elements.arrow), Yg = _s ? _ === "y" ? _s.clientTop || 0 : _s.clientLeft || 0 : 0, Hc = (J = j == null ? void 0 : j[_]) != null ? J : 0, Xg = De + bs - Hc - Yg, Zg = De + Jg - Hc, Wc = qn(h ? mo(Mr, Xg) : Mr, De, h ? mr(K, Zg) : K);
|
|
9679
9679
|
b[_] = Wc, Q[_] = Wc - De;
|
|
9680
9680
|
}
|
|
9681
9681
|
if (a) {
|
|
@@ -10012,7 +10012,7 @@ const ZS = {
|
|
|
10012
10012
|
this.DESKTOP
|
|
10013
10013
|
];
|
|
10014
10014
|
}
|
|
10015
|
-
}),
|
|
10015
|
+
}), tn = Object.freeze({
|
|
10016
10016
|
UPPERCASE: "uppercase",
|
|
10017
10017
|
LOWERCASE: "lowercase",
|
|
10018
10018
|
CAPITALIZE: "capitalize"
|
|
@@ -10351,7 +10351,7 @@ function Jl(r) {
|
|
|
10351
10351
|
}, "");
|
|
10352
10352
|
return e ? { style: e } : null;
|
|
10353
10353
|
}
|
|
10354
|
-
function
|
|
10354
|
+
function xr(r) {
|
|
10355
10355
|
const e = Jl(r);
|
|
10356
10356
|
return ["span", e ? { ...e, class: "zw-style" } : {}, 0];
|
|
10357
10357
|
}
|
|
@@ -10404,15 +10404,15 @@ const ME = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var
|
|
|
10404
10404
|
<path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="m4 6.934 4-5H0l4 5Z" clip-rule="evenodd"/>
|
|
10405
10405
|
</svg>
|
|
10406
10406
|
`, RE = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">
|
|
10407
|
-
<path fill="
|
|
10407
|
+
<path fill="#fff" stroke="#B3B3B3" d="M4.5 4.5h19v19h-19z"/>
|
|
10408
|
+
<path fill="#3B3B3B" d="M26 20.7a2.51 2.51 0 0 1-5 0c0-1.31 2.5-4.7 2.5-4.7s2.5 3.39 2.5 4.7Z"/>
|
|
10409
|
+
<path fill="#3B3B3B" fill-rule="evenodd" d="M19.64 19.93h-1.715a.75.75 0 0 1-.475-.145.82.82 0 0 1-.268-.359l-.89-2.433h-4.943l-.89 2.433a.78.78 0 0 1-.26.347.73.73 0 0 1-.475.157H8L12.686 8h2.269l4.686 11.93Zm-7.721-4.505h3.803l-1.452-3.968a18.048 18.048 0 0 1-.219-.623c-.08-.24-.158-.5-.235-.78-.077.28-.152.542-.227.784a8.742 8.742 0 0 1-.218.635l-1.452 3.952Z" clip-rule="evenodd"/>
|
|
10408
10410
|
</svg>
|
|
10409
10411
|
`, PE = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">
|
|
10410
10412
|
<path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M16.64 19.93h-1.715a.75.75 0 0 1-.475-.145.82.82 0 0 1-.268-.359l-.89-2.433H8.35l-.891 2.433a.78.78 0 0 1-.26.347.73.73 0 0 1-.475.157H5L9.686 8h2.269l4.686 11.93Zm-7.72-4.505h3.803l-1.452-3.968a18.048 18.048 0 0 1-.219-.623c-.08-.24-.158-.5-.235-.78-.077.28-.152.542-.227.784a8.742 8.742 0 0 1-.218.635L8.92 15.425Zm14.968 4.505h-.915a.987.987 0 0 1-.454-.087c-.11-.058-.192-.175-.248-.35l-.181-.603a7.005 7.005 0 0 1-.631.507c-.206.146-.42.269-.64.368a3.26 3.26 0 0 1-.7.222c-.248.05-.523.075-.826.075-.357 0-.687-.049-.99-.145a2.134 2.134 0 0 1-.78-.433 1.967 1.967 0 0 1-.507-.718 2.545 2.545 0 0 1-.181-.998c0-.319.084-.634.251-.945.168-.31.447-.59.838-.841.39-.25.91-.458 1.559-.623.649-.165 1.455-.258 2.417-.28v-.495c0-.567-.12-.986-.359-1.259-.239-.272-.587-.408-1.043-.408-.33 0-.605.039-.825.116a3.17 3.17 0 0 0-.574.26 25.11 25.11 0 0 1-.45.26.912.912 0 0 1-.453.115.59.59 0 0 1-.355-.107.843.843 0 0 1-.239-.264l-.371-.652c.973-.891 2.148-1.337 3.523-1.337.494 0 .936.081 1.324.244.387.162.716.387.985.676.27.289.475.634.615 1.036.14.401.21.841.21 1.32v5.346Zm-3.96-1.271c.21 0 .402-.02.578-.058.176-.038.342-.096.5-.173.156-.077.307-.172.453-.285a4.13 4.13 0 0 0 .441-.4v-1.427c-.594.027-1.09.078-1.489.153a3.967 3.967 0 0 0-.961.284c-.242.116-.414.25-.516.404a.894.894 0 0 0-.152.504c0 .357.106.613.317.767.212.154.489.231.83.231Z" clip-rule="evenodd"/>
|
|
10411
10413
|
</svg>
|
|
10412
10414
|
`, BE = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">
|
|
10413
|
-
<path fill="
|
|
10414
|
-
<path fill="#3B3B3B" d="M26 20.7a2.51 2.51 0 0 1-5 0c0-1.31 2.5-4.7 2.5-4.7s2.5 3.39 2.5 4.7Z"/>
|
|
10415
|
-
<path fill="#3B3B3B" fill-rule="evenodd" d="M19.64 19.93h-1.715a.75.75 0 0 1-.475-.145.82.82 0 0 1-.268-.359l-.89-2.433h-4.943l-.89 2.433a.78.78 0 0 1-.26.347.73.73 0 0 1-.475.157H8L12.686 8h2.269l4.686 11.93Zm-7.721-4.505h3.803l-1.452-3.968a18.048 18.048 0 0 1-.219-.623c-.08-.24-.158-.5-.235-.78-.077.28-.152.542-.227.784a8.742 8.742 0 0 1-.218.635l-1.452 3.952Z" clip-rule="evenodd"/>
|
|
10415
|
+
<path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M22 20.62a2.42 2.42 0 0 1-4.84 0c0-1.25 2.42-4.54 2.42-4.54S22 19.37 22 20.62ZM9.92 15.425l1.452-3.951c.071-.182.145-.394.219-.636.074-.242.149-.503.226-.783a17.223 17.223 0 0 0 .454 1.402l1.452 3.968H9.919Zm5.411 4.199c.226-.795.658-1.684 1.184-2.562L12.955 8h-2.269L6 19.93h1.725a.736.736 0 0 0 .474-.157.792.792 0 0 0 .26-.347l.891-2.434h4.941l.891 2.434c.031.079.097.134.148.198Z" clip-rule="evenodd"/>
|
|
10416
10416
|
</svg>
|
|
10417
10417
|
`, LE = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">
|
|
10418
10418
|
<path fill="var(--zw-icon-foreground)" d="M18 9V7h-7v2h2.64l-1.22 10H10v2h7v-2h-2.83L15.4 9H18Z"/>
|
|
@@ -10583,12 +10583,12 @@ wf && (Ke = wf.split("."), go = Ke[0] > 0 && Ke[0] < 4 ? 1 : +(Ke[0] + Ke[1]));
|
|
|
10583
10583
|
var Ql = go, xf = Ql, kD = G, Xm = !!Object.getOwnPropertySymbols && !kD(function() {
|
|
10584
10584
|
var r = Symbol();
|
|
10585
10585
|
return !String(r) || !(Object(r) instanceof Symbol) || !Symbol.sham && xf && xf < 41;
|
|
10586
|
-
}), AD = Xm, Zm = AD && !Symbol.sham && typeof Symbol.iterator == "symbol", TD = le, MD = ns.exports, Cf = nt, $D = Zl, Of = Xm, Qm = Zm,
|
|
10587
|
-
if (!Cf(
|
|
10586
|
+
}), AD = Xm, Zm = AD && !Symbol.sham && typeof Symbol.iterator == "symbol", TD = le, MD = ns.exports, Cf = nt, $D = Zl, Of = Xm, Qm = Zm, Nr = MD("wks"), vr = TD.Symbol, kf = vr && vr.for, FD = Qm ? vr : vr && vr.withoutSetter || $D, Se = function(r) {
|
|
10587
|
+
if (!Cf(Nr, r) || !(Of || typeof Nr[r] == "string")) {
|
|
10588
10588
|
var e = "Symbol." + r;
|
|
10589
|
-
Of && Cf(vr, r) ?
|
|
10589
|
+
Of && Cf(vr, r) ? Nr[r] = vr[r] : Qm && kf ? Nr[r] = kf(e) : Nr[r] = FD(e);
|
|
10590
10590
|
}
|
|
10591
|
-
return
|
|
10591
|
+
return Nr[r];
|
|
10592
10592
|
}, ID = Se, ND = ID("toStringTag"), ev = {};
|
|
10593
10593
|
ev[ND] = "z";
|
|
10594
10594
|
var ec = String(ev) === "[object z]", it = {}, RD = G, ot = !RD(function() {
|
|
@@ -10718,15 +10718,15 @@ if (Pw || ea.state) {
|
|
|
10718
10718
|
return Rf(ir, r);
|
|
10719
10719
|
};
|
|
10720
10720
|
} else {
|
|
10721
|
-
var
|
|
10722
|
-
jw[
|
|
10723
|
-
if (Qs(r,
|
|
10721
|
+
var Rr = zw("state");
|
|
10722
|
+
jw[Rr] = !0, yo = function(r, e) {
|
|
10723
|
+
if (Qs(r, Rr))
|
|
10724
10724
|
throw new al(Nf);
|
|
10725
|
-
return e.facade = r, Lw(r,
|
|
10725
|
+
return e.facade = r, Lw(r, Rr, e), e;
|
|
10726
10726
|
}, si = function(r) {
|
|
10727
|
-
return Qs(r,
|
|
10727
|
+
return Qs(r, Rr) ? r[Rr] : {};
|
|
10728
10728
|
}, bo = function(r) {
|
|
10729
|
-
return Qs(r,
|
|
10729
|
+
return Qs(r, Rr);
|
|
10730
10730
|
};
|
|
10731
10731
|
}
|
|
10732
10732
|
var _n = {
|
|
@@ -10750,7 +10750,7 @@ var _n = {
|
|
|
10750
10750
|
Function.prototype.toString = tx(function() {
|
|
10751
10751
|
return Gw(this) && Zw(this).source || Yw(this);
|
|
10752
10752
|
}, "toString");
|
|
10753
|
-
var rx = re, nx = it, ix = iv.exports, ox = Yl,
|
|
10753
|
+
var rx = re, nx = it, ix = iv.exports, ox = Yl, Cr = function(r, e, t, n) {
|
|
10754
10754
|
n || (n = {});
|
|
10755
10755
|
var i = n.enumerable, o = n.name !== void 0 ? n.name : e;
|
|
10756
10756
|
if (rx(t) && ix(t, o, n), n.global)
|
|
@@ -10768,9 +10768,9 @@ var rx = re, nx = it, ix = iv.exports, ox = Yl, xr = function(r, e, t, n) {
|
|
|
10768
10768
|
});
|
|
10769
10769
|
}
|
|
10770
10770
|
return r;
|
|
10771
|
-
}, cv = U, sx = cv({}.toString), ax = cv("".slice),
|
|
10771
|
+
}, cv = U, sx = cv({}.toString), ax = cv("".slice), Or = function(r) {
|
|
10772
10772
|
return ax(sx(r), 8, -1);
|
|
10773
|
-
}, lx = ec, cx = re, Ki =
|
|
10773
|
+
}, lx = ec, cx = re, Ki = Or, ux = Se, fx = ux("toStringTag"), dx = Object, hx = Ki(function() {
|
|
10774
10774
|
return arguments;
|
|
10775
10775
|
}()) == "Arguments", px = function(r, e) {
|
|
10776
10776
|
try {
|
|
@@ -10782,7 +10782,7 @@ var rx = re, nx = it, ix = iv.exports, ox = Yl, xr = function(r, e, t, n) {
|
|
|
10782
10782
|
return r === void 0 ? "Undefined" : r === null ? "Null" : typeof (t = px(e = dx(r), fx)) == "string" ? t : hx ? Ki(e) : (n = Ki(e)) == "Object" && cx(e.callee) ? "Arguments" : n;
|
|
10783
10783
|
}, mx = ec, vx = cs, gx = mx ? {}.toString : function() {
|
|
10784
10784
|
return "[object " + vx(this) + "]";
|
|
10785
|
-
}, yx = ec, bx =
|
|
10785
|
+
}, yx = ec, bx = Cr, _x = gx;
|
|
10786
10786
|
yx || bx(Object.prototype, "toString", _x, { unsafe: !0 });
|
|
10787
10787
|
var uv = {
|
|
10788
10788
|
CSSRuleList: 0,
|
|
@@ -10820,7 +10820,7 @@ var uv = {
|
|
|
10820
10820
|
return Ex(r), e === void 0 ? r : Dx ? wx(r, e) : function() {
|
|
10821
10821
|
return r.apply(e, arguments);
|
|
10822
10822
|
};
|
|
10823
|
-
}, xx = U, Cx = G, Ox =
|
|
10823
|
+
}, xx = U, Cx = G, Ox = Or, ra = Object, kx = xx("".split), us = Cx(function() {
|
|
10824
10824
|
return !ra("z").propertyIsEnumerable(0);
|
|
10825
10825
|
}) ? function(r) {
|
|
10826
10826
|
return Ox(r) == "String" ? kx(r, "") : ra(r);
|
|
@@ -10834,7 +10834,7 @@ var uv = {
|
|
|
10834
10834
|
return r > 0 ? Ix(Fx(r), 9007199254740991) : 0;
|
|
10835
10835
|
}, Nx = cc, mi = function(r) {
|
|
10836
10836
|
return Nx(r.length);
|
|
10837
|
-
}, Rx =
|
|
10837
|
+
}, Rx = Or, Px = Array.isArray || function(e) {
|
|
10838
10838
|
return Rx(e) == "Array";
|
|
10839
10839
|
}, Bx = U, Lx = G, hv = re, zx = cs, jx = hi, Vx = ac, pv = function() {
|
|
10840
10840
|
}, Hx = [], mv = jx("Reflect", "construct"), uc = /^\s*(?:class|function)\b/, Wx = Bx(uc.exec), qx = !uc.exec(pv), kn = function(e) {
|
|
@@ -10997,7 +10997,7 @@ var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Ref
|
|
|
10997
10997
|
return t == rO ? !0 : t == tO ? !1 : XC(e) ? YC(e) : !!e;
|
|
10998
10998
|
}, QC = vi.normalize = function(r) {
|
|
10999
10999
|
return String(r).replace(ZC, ".").toLowerCase();
|
|
11000
|
-
}, eO = vi.data = {}, tO = vi.NATIVE = "N", rO = vi.POLYFILL = "P", Dv = vi, sa = le, nO = hc.f, iO = bn, oO =
|
|
11000
|
+
}, eO = vi.data = {}, tO = vi.NATIVE = "N", rO = vi.POLYFILL = "P", Dv = vi, sa = le, nO = hc.f, iO = bn, oO = Cr, sO = Yl, aO = JC, lO = Dv, Qt = function(r, e) {
|
|
11001
11001
|
var t = r.target, n = r.global, i = r.stat, o, s, a, l, u, c;
|
|
11002
11002
|
if (n ? s = sa : i ? s = sa[t] || sO(t, {}) : s = (sa[t] || {}).prototype, s)
|
|
11003
11003
|
for (a in e) {
|
|
@@ -11008,12 +11008,12 @@ var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Ref
|
|
|
11008
11008
|
}
|
|
11009
11009
|
(r.sham || l && l.sham) && iO(u, "sham", !0), oO(s, a, u, r);
|
|
11010
11010
|
}
|
|
11011
|
-
}, cO = cs, uO = String,
|
|
11011
|
+
}, cO = cs, uO = String, kr = function(r) {
|
|
11012
11012
|
if (cO(r) === "Symbol")
|
|
11013
11013
|
throw TypeError("Cannot convert a Symbol value to a string");
|
|
11014
11014
|
return uO(r);
|
|
11015
11015
|
}, wv = `
|
|
11016
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`, fO = U, dO = gn, hO =
|
|
11016
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`, fO = U, dO = gn, hO = kr, pO = wv, Gf = fO("".replace), _o = "[" + pO + "]", mO = RegExp("^" + _o + _o + "*"), vO = RegExp(_o + _o + "*$"), aa = function(r) {
|
|
11017
11017
|
return function(e) {
|
|
11018
11018
|
var t = hO(dO(e));
|
|
11019
11019
|
return r & 1 && (t = Gf(t, mO, "")), r & 2 && (t = Gf(t, vO, "")), t;
|
|
@@ -11022,7 +11022,7 @@ var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Ref
|
|
|
11022
11022
|
start: aa(1),
|
|
11023
11023
|
end: aa(2),
|
|
11024
11024
|
trim: aa(3)
|
|
11025
|
-
}, xv = le, yO = G, bO = U, _O =
|
|
11025
|
+
}, xv = le, yO = G, bO = U, _O = kr, SO = gO.trim, Jf = wv, Kn = xv.parseInt, Yf = xv.Symbol, Xf = Yf && Yf.iterator, Cv = /^[+-]?0x/i, EO = bO(Cv.exec), DO = Kn(Jf + "08") !== 8 || Kn(Jf + "0x16") !== 22 || Xf && !yO(function() {
|
|
11026
11026
|
Kn(Object(Xf));
|
|
11027
11027
|
}), wO = DO ? function(e, t) {
|
|
11028
11028
|
var n = SO(_O(e));
|
|
@@ -11033,8 +11033,8 @@ xO({ global: !0, forced: parseInt != Zf }, {
|
|
|
11033
11033
|
});
|
|
11034
11034
|
var CO = Ev, OO = mc, Ov = Object.keys || function(e) {
|
|
11035
11035
|
return CO(e, OO);
|
|
11036
|
-
}, Qf = ot, kO = U, AO = qe, TO = G, la = Ov, MO = vc, $O = pc, FO = yn, IO = us,
|
|
11037
|
-
if (Qf &&
|
|
11036
|
+
}, Qf = ot, kO = U, AO = qe, TO = G, la = Ov, MO = vc, $O = pc, FO = yn, IO = us, Pr = Object.assign, ed = Object.defineProperty, NO = kO([].concat), RO = !Pr || TO(function() {
|
|
11037
|
+
if (Qf && Pr({ b: 1 }, Pr(ed({}, "a", {
|
|
11038
11038
|
enumerable: !0,
|
|
11039
11039
|
get: function() {
|
|
11040
11040
|
ed(this, "b", {
|
|
@@ -11047,13 +11047,13 @@ var CO = Ev, OO = mc, Ov = Object.keys || function(e) {
|
|
|
11047
11047
|
var r = {}, e = {}, t = Symbol(), n = "abcdefghijklmnopqrst";
|
|
11048
11048
|
return r[t] = 7, n.split("").forEach(function(i) {
|
|
11049
11049
|
e[i] = i;
|
|
11050
|
-
}),
|
|
11050
|
+
}), Pr({}, r)[t] != 7 || la(Pr({}, e)).join("") != n;
|
|
11051
11051
|
}) ? function(e, t) {
|
|
11052
11052
|
for (var n = FO(e), i = arguments.length, o = 1, s = MO.f, a = $O.f; i > o; )
|
|
11053
11053
|
for (var l = IO(arguments[o++]), u = s ? NO(la(l), s(l)) : la(l), c = u.length, f = 0, d; c > f; )
|
|
11054
11054
|
d = u[f++], (!Qf || AO(a, l, d)) && (n[d] = l[d]);
|
|
11055
11055
|
return n;
|
|
11056
|
-
} :
|
|
11056
|
+
} : Pr, PO = Qt, td = RO;
|
|
11057
11057
|
PO({ target: "Object", stat: !0, arity: 2, forced: Object.assign !== td }, {
|
|
11058
11058
|
assign: td
|
|
11059
11059
|
});
|
|
@@ -11118,18 +11118,18 @@ var fk = function(r) {
|
|
|
11118
11118
|
return e[sd];
|
|
11119
11119
|
var t = e.constructor;
|
|
11120
11120
|
return mk(t) && e instanceof t ? t.prototype : e instanceof hl ? bk : null;
|
|
11121
|
-
}, _k = G, Sk = re, ad = Mv, Ek =
|
|
11122
|
-
[].keys && (fa = [].keys(), "next" in fa ? (ua = ad(ad(fa)), ua !== Object.prototype && (
|
|
11123
|
-
var wk =
|
|
11121
|
+
}, _k = G, Sk = re, ad = Mv, Ek = Cr, Dk = Se, pl = Dk("iterator"), $v = !1, Dr, ua, fa;
|
|
11122
|
+
[].keys && (fa = [].keys(), "next" in fa ? (ua = ad(ad(fa)), ua !== Object.prototype && (Dr = ua)) : $v = !0);
|
|
11123
|
+
var wk = Dr == null || _k(function() {
|
|
11124
11124
|
var r = {};
|
|
11125
|
-
return
|
|
11125
|
+
return Dr[pl].call(r) !== r;
|
|
11126
11126
|
});
|
|
11127
|
-
wk && (
|
|
11128
|
-
Sk(
|
|
11127
|
+
wk && (Dr = {});
|
|
11128
|
+
Sk(Dr[pl]) || Ek(Dr, pl, function() {
|
|
11129
11129
|
return this;
|
|
11130
11130
|
});
|
|
11131
11131
|
var Fv = {
|
|
11132
|
-
IteratorPrototype:
|
|
11132
|
+
IteratorPrototype: Dr,
|
|
11133
11133
|
BUGGY_SAFARI_ITERATORS: $v
|
|
11134
11134
|
}, xk = it.f, Ck = nt, Ok = Se, ld = Ok("toStringTag"), yc = function(r, e, t) {
|
|
11135
11135
|
r && !t && (r = r.prototype), r && !Ck(r, ld) && xk(r, ld, { configurable: !0, value: e });
|
|
@@ -11151,7 +11151,7 @@ var Fv = {
|
|
|
11151
11151
|
return function(i, o) {
|
|
11152
11152
|
return zk(i), jk(o), r ? t(i, o) : i.__proto__ = o, i;
|
|
11153
11153
|
};
|
|
11154
|
-
}() : void 0), Vk = Qt, Hk = qe, Nv = sc, Wk = re, qk = Ik, cd = Mv, ud = Iv, Uk = yc, Kk = bn, da =
|
|
11154
|
+
}() : void 0), Vk = Qt, Hk = qe, Nv = sc, Wk = re, qk = Ik, cd = Mv, ud = Iv, Uk = yc, Kk = bn, da = Cr, Gk = Se, Jk = gi, Rv = Fv, Yk = Nv.PROPER, Xk = Nv.CONFIGURABLE, fd = Rv.IteratorPrototype, Mi = Rv.BUGGY_SAFARI_ITERATORS, An = Gk("iterator"), dd = "keys", Tn = "values", hd = "entries", Zk = function() {
|
|
11155
11155
|
return this;
|
|
11156
11156
|
}, Pv = function(r, e, t, n, i, o, s) {
|
|
11157
11157
|
qk(t, e, n);
|
|
@@ -11210,7 +11210,7 @@ if (rA && md.name !== "values")
|
|
|
11210
11210
|
eA(md, "name", { value: "values" });
|
|
11211
11211
|
} catch {
|
|
11212
11212
|
}
|
|
11213
|
-
var _c = U, sA = fs, aA =
|
|
11213
|
+
var _c = U, sA = fs, aA = kr, lA = gn, cA = _c("".charAt), vd = _c("".charCodeAt), uA = _c("".slice), gd = function(r) {
|
|
11214
11214
|
return function(e, t) {
|
|
11215
11215
|
var n = aA(lA(e)), i = sA(t), o = n.length, s, a;
|
|
11216
11216
|
return i < 0 || i >= o ? r ? "" : void 0 : (s = vd(n, i), s < 55296 || s > 56319 || i + 1 === o || (a = vd(n, i + 1)) < 56320 || a > 57343 ? r ? cA(n, i) : s : r ? uA(n, i, i + 2) : (s - 55296 << 10) + (a - 56320) + 65536);
|
|
@@ -11218,7 +11218,7 @@ var _c = U, sA = fs, aA = Or, lA = gn, cA = _c("".charAt), vd = _c("".charCodeAt
|
|
|
11218
11218
|
}, zv = {
|
|
11219
11219
|
codeAt: gd(!1),
|
|
11220
11220
|
charAt: gd(!0)
|
|
11221
|
-
}, fA = zv.charAt, dA =
|
|
11221
|
+
}, fA = zv.charAt, dA = kr, jv = _n, hA = Pv, Vv = "String Iterator", pA = jv.set, mA = jv.getterFor(Vv);
|
|
11222
11222
|
hA(String, "String", function(r) {
|
|
11223
11223
|
pA(this, {
|
|
11224
11224
|
type: Vv,
|
|
@@ -11229,7 +11229,7 @@ hA(String, "String", function(r) {
|
|
|
11229
11229
|
var e = mA(this), t = e.string, n = e.index, i;
|
|
11230
11230
|
return n >= t.length ? { value: void 0, done: !0 } : (i = fA(t, n), e.index += i.length, { value: i, done: !1 });
|
|
11231
11231
|
});
|
|
11232
|
-
var vA =
|
|
11232
|
+
var vA = Cr, Hv = function(r, e, t) {
|
|
11233
11233
|
for (var n in e)
|
|
11234
11234
|
vA(r, n, e[n], t);
|
|
11235
11235
|
return r;
|
|
@@ -11240,7 +11240,7 @@ var vA = xr, Hv = function(r, e, t) {
|
|
|
11240
11240
|
for (var n = SA(r), i = yd(e, n), o = yd(t === void 0 ? n : t, n), s = DA(wA(o - i, 0)), a = 0; i < o; i++, a++)
|
|
11241
11241
|
EA(s, a, r[i]);
|
|
11242
11242
|
return s.length = a, s;
|
|
11243
|
-
}, CA =
|
|
11243
|
+
}, CA = Or, OA = Sn, qv = ds.f, kA = xA, Uv = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], AA = function(r) {
|
|
11244
11244
|
try {
|
|
11245
11245
|
return qv(r);
|
|
11246
11246
|
} catch {
|
|
@@ -11255,7 +11255,7 @@ var TA = G, MA = TA(function() {
|
|
|
11255
11255
|
var r = new ArrayBuffer(8);
|
|
11256
11256
|
Object.isExtensible(r) && Object.defineProperty(r, "a", { value: 8 });
|
|
11257
11257
|
}
|
|
11258
|
-
}), $A = G, FA = We, IA =
|
|
11258
|
+
}), $A = G, FA = We, IA = Or, bd = MA, Ji = Object.isExtensible, NA = $A(function() {
|
|
11259
11259
|
Ji(1);
|
|
11260
11260
|
}), Kv = NA || bd ? function(e) {
|
|
11261
11261
|
return !FA(e) || bd && IA(e) == "ArrayBuffer" ? !1 : Ji ? Ji(e) : !0;
|
|
@@ -11408,7 +11408,7 @@ var TT = function(r, e) {
|
|
|
11408
11408
|
}, MT = re, $T = We, Od = Iv, FT = function(r, e, t) {
|
|
11409
11409
|
var n, i;
|
|
11410
11410
|
return Od && MT(n = e.constructor) && n !== t && $T(i = n.prototype) && i !== t.prototype && Od(r, i), r;
|
|
11411
|
-
}, IT = Qt, NT = le, RT = U, kd = Dv, PT =
|
|
11411
|
+
}, IT = Qt, NT = le, RT = U, kd = Dv, PT = Cr, BT = hs.exports, LT = Yv, zT = Xv, jT = re, ha = We, pa = G, VT = TT, HT = yc, WT = FT, qT = function(r, e, t) {
|
|
11412
11412
|
var n = r.indexOf("Map") !== -1, i = r.indexOf("Weak") !== -1, o = n ? "set" : "add", s = NT[r], a = s && s.prototype, l = s, u = {}, c = function(g) {
|
|
11413
11413
|
var y = RT(a[g]);
|
|
11414
11414
|
PT(
|
|
@@ -11765,7 +11765,7 @@ var Q2 = Array.prototype, eM = Function.prototype, fg = Object.prototype, Da = u
|
|
|
11765
11765
|
}(), dg = eM.toString, wc = fg.hasOwnProperty, tM = fg.toString, rM = RegExp(
|
|
11766
11766
|
"^" + dg.call(wc).replace(K2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11767
11767
|
), nM = Q2.splice, iM = hg(ug, "Map"), ai = hg(Object, "create");
|
|
11768
|
-
function
|
|
11768
|
+
function wr(r) {
|
|
11769
11769
|
var e = -1, t = r ? r.length : 0;
|
|
11770
11770
|
for (this.clear(); ++e < t; ) {
|
|
11771
11771
|
var n = r[e];
|
|
@@ -11794,11 +11794,11 @@ function cM(r, e) {
|
|
|
11794
11794
|
var t = this.__data__;
|
|
11795
11795
|
return t[r] = ai && e === void 0 ? cg : e, this;
|
|
11796
11796
|
}
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11801
|
-
|
|
11797
|
+
wr.prototype.clear = oM;
|
|
11798
|
+
wr.prototype.delete = sM;
|
|
11799
|
+
wr.prototype.get = aM;
|
|
11800
|
+
wr.prototype.has = lM;
|
|
11801
|
+
wr.prototype.set = cM;
|
|
11802
11802
|
function En(r) {
|
|
11803
11803
|
var e = -1, t = r ? r.length : 0;
|
|
11804
11804
|
for (this.clear(); ++e < t; ) {
|
|
@@ -11832,7 +11832,7 @@ En.prototype.delete = fM;
|
|
|
11832
11832
|
En.prototype.get = dM;
|
|
11833
11833
|
En.prototype.has = hM;
|
|
11834
11834
|
En.prototype.set = pM;
|
|
11835
|
-
function
|
|
11835
|
+
function Ar(r) {
|
|
11836
11836
|
var e = -1, t = r ? r.length : 0;
|
|
11837
11837
|
for (this.clear(); ++e < t; ) {
|
|
11838
11838
|
var n = r[e];
|
|
@@ -11841,9 +11841,9 @@ function kr(r) {
|
|
|
11841
11841
|
}
|
|
11842
11842
|
function mM() {
|
|
11843
11843
|
this.__data__ = {
|
|
11844
|
-
hash: new
|
|
11844
|
+
hash: new wr(),
|
|
11845
11845
|
map: new (iM || En)(),
|
|
11846
|
-
string: new
|
|
11846
|
+
string: new wr()
|
|
11847
11847
|
};
|
|
11848
11848
|
}
|
|
11849
11849
|
function vM(r) {
|
|
@@ -11858,11 +11858,11 @@ function yM(r) {
|
|
|
11858
11858
|
function bM(r, e) {
|
|
11859
11859
|
return ms(this, r).set(r, e), this;
|
|
11860
11860
|
}
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11861
|
+
Ar.prototype.clear = mM;
|
|
11862
|
+
Ar.prototype.delete = vM;
|
|
11863
|
+
Ar.prototype.get = gM;
|
|
11864
|
+
Ar.prototype.has = yM;
|
|
11865
|
+
Ar.prototype.set = bM;
|
|
11866
11866
|
function ps(r, e) {
|
|
11867
11867
|
for (var t = r.length; t--; )
|
|
11868
11868
|
if (wM(r[t][0], e))
|
|
@@ -11913,9 +11913,9 @@ function xc(r, e) {
|
|
|
11913
11913
|
var s = r.apply(this, n);
|
|
11914
11914
|
return t.cache = o.set(i, s), s;
|
|
11915
11915
|
};
|
|
11916
|
-
return t.cache = new (xc.Cache ||
|
|
11916
|
+
return t.cache = new (xc.Cache || Ar)(), t;
|
|
11917
11917
|
}
|
|
11918
|
-
xc.Cache =
|
|
11918
|
+
xc.Cache = Ar;
|
|
11919
11919
|
function wM(r, e) {
|
|
11920
11920
|
return r === e || r !== r && e !== e;
|
|
11921
11921
|
}
|
|
@@ -11993,12 +11993,12 @@ var yr = function(r) {
|
|
|
11993
11993
|
return !1;
|
|
11994
11994
|
}, Gn = typeof window < "u" ? window : {}, Li = /* @__PURE__ */ new WeakMap(), Ud = /auto|scroll/, $M = /^tb|vertical/, FM = /msie|trident/i.test(Gn.navigator && Gn.navigator.userAgent), at = function(r) {
|
|
11995
11995
|
return parseFloat(r || "0");
|
|
11996
|
-
},
|
|
11996
|
+
}, rn = function(r, e, t) {
|
|
11997
11997
|
return r === void 0 && (r = 0), e === void 0 && (e = 0), t === void 0 && (t = !1), new TM((t ? e : r) || 0, (t ? r : e) || 0);
|
|
11998
11998
|
}, Kd = yr({
|
|
11999
|
-
devicePixelContentBoxSize:
|
|
12000
|
-
borderBoxSize:
|
|
12001
|
-
contentBoxSize:
|
|
11999
|
+
devicePixelContentBoxSize: rn(),
|
|
12000
|
+
borderBoxSize: rn(),
|
|
12001
|
+
contentBoxSize: rn(),
|
|
12002
12002
|
contentRect: new mg(0, 0, 0, 0)
|
|
12003
12003
|
}), gg = function(r, e) {
|
|
12004
12004
|
if (e === void 0 && (e = !1), Li.has(r) && !e)
|
|
@@ -12006,9 +12006,9 @@ var yr = function(r) {
|
|
|
12006
12006
|
if (vg(r))
|
|
12007
12007
|
return Li.set(r, Kd), Kd;
|
|
12008
12008
|
var t = getComputedStyle(r), n = Cc(r) && r.ownerSVGElement && r.getBBox(), i = !FM && t.boxSizing === "border-box", o = $M.test(t.writingMode || ""), s = !n && Ud.test(t.overflowY || ""), a = !n && Ud.test(t.overflowX || ""), l = n ? 0 : at(t.paddingTop), u = n ? 0 : at(t.paddingRight), c = n ? 0 : at(t.paddingBottom), f = n ? 0 : at(t.paddingLeft), d = n ? 0 : at(t.borderTopWidth), h = n ? 0 : at(t.borderRightWidth), p = n ? 0 : at(t.borderBottomWidth), m = n ? 0 : at(t.borderLeftWidth), v = f + u, g = l + c, y = m + h, D = d + p, _ = a ? r.offsetHeight - D - r.clientHeight : 0, x = s ? r.offsetWidth - y - r.clientWidth : 0, b = i ? v + y : 0, C = i ? g + D : 0, E = n ? n.width : at(t.width) - b - x, F = n ? n.height : at(t.height) - C - _, V = E + v + x + y, j = F + g + _ + D, Q = yr({
|
|
12009
|
-
devicePixelContentBoxSize:
|
|
12010
|
-
borderBoxSize:
|
|
12011
|
-
contentBoxSize:
|
|
12009
|
+
devicePixelContentBoxSize: rn(Math.round(E * devicePixelRatio), Math.round(F * devicePixelRatio), o),
|
|
12010
|
+
borderBoxSize: rn(V, j, o),
|
|
12011
|
+
contentBoxSize: rn(E, F, o),
|
|
12012
12012
|
contentRect: new mg(f, l, E, F)
|
|
12013
12013
|
});
|
|
12014
12014
|
return Li.set(r, Q), Q;
|
|
@@ -12229,7 +12229,7 @@ var yr = function(r) {
|
|
|
12229
12229
|
}, QM = {
|
|
12230
12230
|
left: Qd(!1),
|
|
12231
12231
|
right: Qd(!0)
|
|
12232
|
-
}, e$ =
|
|
12232
|
+
}, e$ = Or, t$ = le, r$ = e$(t$.process) == "process", n$ = Qt, i$ = QM.left, o$ = gv, eh = Ql, s$ = r$, a$ = o$("reduce"), l$ = !s$ && eh > 79 && eh < 83;
|
|
12233
12233
|
n$({ target: "Array", proto: !0, forced: !a$ || l$ }, {
|
|
12234
12234
|
reduce: function(e) {
|
|
12235
12235
|
var t = arguments.length;
|
|
@@ -12258,17 +12258,17 @@ var c$ = Re, u$ = function() {
|
|
|
12258
12258
|
}), b$ = G, _$ = le, S$ = _$.RegExp, E$ = b$(function() {
|
|
12259
12259
|
var r = S$("(?<a>b)", "g");
|
|
12260
12260
|
return r.exec("b").groups.a !== "b" || "b".replace(r, "$<a>c") !== "bc";
|
|
12261
|
-
}),
|
|
12261
|
+
}), Ur = qe, vs = U, D$ = kr, w$ = u$, x$ = p$, C$ = ns.exports, O$ = gc, k$ = _n.get, A$ = y$, T$ = E$, M$ = C$("native-string-replace", String.prototype.replace), Eo = RegExp.prototype.exec, gl = Eo, $$ = vs("".charAt), F$ = vs("".indexOf), I$ = vs("".replace), Ca = vs("".slice), yl = function() {
|
|
12262
12262
|
var r = /a/, e = /b*/g;
|
|
12263
|
-
return
|
|
12263
|
+
return Ur(Eo, r, "a"), Ur(Eo, e, "a"), r.lastIndex !== 0 || e.lastIndex !== 0;
|
|
12264
12264
|
}(), Sg = x$.BROKEN_CARET, bl = /()??/.exec("")[1] !== void 0, N$ = yl || bl || Sg || A$ || T$;
|
|
12265
12265
|
N$ && (gl = function(e) {
|
|
12266
12266
|
var t = this, n = k$(t), i = D$(e), o = n.raw, s, a, l, u, c, f, d;
|
|
12267
12267
|
if (o)
|
|
12268
|
-
return o.lastIndex = t.lastIndex, s =
|
|
12269
|
-
var h = n.groups, p = Sg && t.sticky, m =
|
|
12268
|
+
return o.lastIndex = t.lastIndex, s = Ur(gl, o, i), t.lastIndex = o.lastIndex, s;
|
|
12269
|
+
var h = n.groups, p = Sg && t.sticky, m = Ur(w$, t), v = t.source, g = 0, y = i;
|
|
12270
12270
|
if (p && (m = I$(m, "y", ""), F$(m, "g") === -1 && (m += "g"), y = Ca(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && $$(i, t.lastIndex - 1) !== `
|
|
12271
|
-
`) && (v = "(?: " + v + ")", y = " " + y, g++), a = new RegExp("^(?:" + v + ")", m)), bl && (a = new RegExp("^" + v + "$(?!\\s)", m)), yl && (l = t.lastIndex), u =
|
|
12271
|
+
`) && (v = "(?: " + v + ")", y = " " + y, g++), a = new RegExp("^(?:" + v + ")", m)), bl && (a = new RegExp("^" + v + "$(?!\\s)", m)), yl && (l = t.lastIndex), u = Ur(Eo, p ? a : t, y), p ? u ? (u.input = Ca(u.input, g), u[0] = Ca(u[0], g), u.index = t.lastIndex, t.lastIndex += u[0].length) : t.lastIndex = 0 : yl && u && (t.lastIndex = t.global ? u.index + u[0].length : l), bl && u && u.length > 1 && Ur(M$, u[0], a, function() {
|
|
12272
12272
|
for (c = 1; c < arguments.length - 2; c++)
|
|
12273
12273
|
arguments[c] === void 0 && (u[c] = void 0);
|
|
12274
12274
|
}), u && h)
|
|
@@ -12280,7 +12280,7 @@ var Tc = gl, R$ = Qt, th = Tc;
|
|
|
12280
12280
|
R$({ target: "RegExp", proto: !0, forced: /./.exec !== th }, {
|
|
12281
12281
|
exec: th
|
|
12282
12282
|
});
|
|
12283
|
-
var rh = U, nh =
|
|
12283
|
+
var rh = U, nh = Cr, P$ = Tc, ih = G, Eg = Se, B$ = bn, L$ = Eg("species"), Oa = RegExp.prototype, Dg = function(r, e, t, n) {
|
|
12284
12284
|
var i = Eg(r), o = !ih(function() {
|
|
12285
12285
|
var u = {};
|
|
12286
12286
|
return u[i] = function() {
|
|
@@ -12304,7 +12304,7 @@ var rh = U, nh = xr, P$ = Tc, ih = G, Eg = Se, B$ = bn, L$ = Eg("species"), Oa =
|
|
|
12304
12304
|
n && B$(Oa[i], "sham", !0);
|
|
12305
12305
|
}, z$ = zv.charAt, wg = function(r, e, t) {
|
|
12306
12306
|
return e + (t ? z$(r, e).length : 1);
|
|
12307
|
-
}, oh = qe, j$ = Re, V$ = re, H$ =
|
|
12307
|
+
}, oh = qe, j$ = Re, V$ = re, H$ = Or, W$ = Tc, q$ = TypeError, xg = function(r, e) {
|
|
12308
12308
|
var t = r.exec;
|
|
12309
12309
|
if (V$(t)) {
|
|
12310
12310
|
var n = oh(t, r, e);
|
|
@@ -12313,7 +12313,7 @@ var rh = U, nh = xr, P$ = Tc, ih = G, Eg = Se, B$ = bn, L$ = Eg("species"), Oa =
|
|
|
12313
12313
|
if (H$(r) === "RegExp")
|
|
12314
12314
|
return oh(W$, r, e);
|
|
12315
12315
|
throw q$("RegExp#exec called on incompatible receiver");
|
|
12316
|
-
}, U$ = qe, K$ = Dg, G$ = Re, J$ = cc, ka =
|
|
12316
|
+
}, U$ = qe, K$ = Dg, G$ = Re, J$ = cc, ka = kr, Y$ = gn, X$ = pi, Z$ = wg, sh = xg;
|
|
12317
12317
|
K$("match", function(r, e, t) {
|
|
12318
12318
|
return [
|
|
12319
12319
|
function(i) {
|
|
@@ -12377,7 +12377,7 @@ var oF = is, Ag = Function.prototype, ah = Ag.apply, lh = Ag.call, sF = typeof R
|
|
|
12377
12377
|
}
|
|
12378
12378
|
return f === void 0 ? "" : f;
|
|
12379
12379
|
});
|
|
12380
|
-
}, hF = sF, ch = qe, gs = U, pF = Dg, mF = G, vF = Re, gF = re, yF = fs, bF = cc,
|
|
12380
|
+
}, hF = sF, ch = qe, gs = U, pF = Dg, mF = G, vF = Re, gF = re, yF = fs, bF = cc, Br = kr, _F = gn, SF = wg, EF = pi, DF = dF, wF = xg, xF = Se, _l = xF("replace"), CF = Math.max, OF = Math.min, kF = gs([].concat), Ma = gs([].push), uh = gs("".indexOf), fh = gs("".slice), AF = function(r) {
|
|
12381
12381
|
return r === void 0 ? r : String(r);
|
|
12382
12382
|
}, TF = function() {
|
|
12383
12383
|
return "a".replace(/./, "$0") === "$0";
|
|
@@ -12395,17 +12395,17 @@ pF("replace", function(r, e, t) {
|
|
|
12395
12395
|
return [
|
|
12396
12396
|
function(o, s) {
|
|
12397
12397
|
var a = _F(this), l = o == null ? void 0 : EF(o, _l);
|
|
12398
|
-
return l ? ch(l, o, a, s) : ch(e,
|
|
12398
|
+
return l ? ch(l, o, a, s) : ch(e, Br(a), o, s);
|
|
12399
12399
|
},
|
|
12400
12400
|
function(i, o) {
|
|
12401
|
-
var s = vF(this), a =
|
|
12401
|
+
var s = vF(this), a = Br(i);
|
|
12402
12402
|
if (typeof o == "string" && uh(o, n) === -1 && uh(o, "$<") === -1) {
|
|
12403
12403
|
var l = t(e, s, a, o);
|
|
12404
12404
|
if (l.done)
|
|
12405
12405
|
return l.value;
|
|
12406
12406
|
}
|
|
12407
12407
|
var u = gF(o);
|
|
12408
|
-
u || (o =
|
|
12408
|
+
u || (o = Br(o));
|
|
12409
12409
|
var c = s.global;
|
|
12410
12410
|
if (c) {
|
|
12411
12411
|
var f = s.unicode;
|
|
@@ -12415,18 +12415,18 @@ pF("replace", function(r, e, t) {
|
|
|
12415
12415
|
var h = wF(s, a);
|
|
12416
12416
|
if (h === null || (Ma(d, h), !c))
|
|
12417
12417
|
break;
|
|
12418
|
-
var p =
|
|
12418
|
+
var p = Br(h[0]);
|
|
12419
12419
|
p === "" && (s.lastIndex = SF(a, bF(s.lastIndex), f));
|
|
12420
12420
|
}
|
|
12421
12421
|
for (var m = "", v = 0, g = 0; g < d.length; g++) {
|
|
12422
12422
|
h = d[g];
|
|
12423
|
-
for (var y =
|
|
12423
|
+
for (var y = Br(h[0]), D = CF(OF(yF(h.index), a.length), 0), _ = [], x = 1; x < h.length; x++)
|
|
12424
12424
|
Ma(_, AF(h[x]));
|
|
12425
12425
|
var b = h.groups;
|
|
12426
12426
|
if (u) {
|
|
12427
12427
|
var C = kF([y], _, D, a);
|
|
12428
12428
|
b !== void 0 && Ma(C, b);
|
|
12429
|
-
var E =
|
|
12429
|
+
var E = Br(hF(o, void 0, C));
|
|
12430
12430
|
} else
|
|
12431
12431
|
E = DF(y, a, D, _, b, o);
|
|
12432
12432
|
D >= v && (m += fh(a, v, D) + E, v = D + y.length);
|
|
@@ -12466,21 +12466,21 @@ function It(r) {
|
|
|
12466
12466
|
function Zi(r) {
|
|
12467
12467
|
return !r || !r.ownerDocument ? document : r.ownerDocument;
|
|
12468
12468
|
}
|
|
12469
|
-
var
|
|
12469
|
+
var jr = null, hh = null;
|
|
12470
12470
|
dc && window.addEventListener("resize", function() {
|
|
12471
|
-
hh !== window.devicePixelRatio && (hh = window.devicePixelRatio,
|
|
12471
|
+
hh !== window.devicePixelRatio && (hh = window.devicePixelRatio, jr = null);
|
|
12472
12472
|
});
|
|
12473
12473
|
function ph(r) {
|
|
12474
|
-
if (
|
|
12474
|
+
if (jr === null) {
|
|
12475
12475
|
var e = Zi(r);
|
|
12476
12476
|
if (typeof e > "u")
|
|
12477
|
-
return
|
|
12477
|
+
return jr = 0, jr;
|
|
12478
12478
|
var t = e.body, n = e.createElement("div");
|
|
12479
12479
|
n.classList.add("simplebar-hide-scrollbar"), t.appendChild(n);
|
|
12480
12480
|
var i = n.getBoundingClientRect().right;
|
|
12481
|
-
t.removeChild(n),
|
|
12481
|
+
t.removeChild(n), jr = i;
|
|
12482
12482
|
}
|
|
12483
|
-
return
|
|
12483
|
+
return jr;
|
|
12484
12484
|
}
|
|
12485
12485
|
var Z = /* @__PURE__ */ function() {
|
|
12486
12486
|
function r(t, n) {
|
|
@@ -12779,7 +12779,7 @@ function mh({ validations: r }) {
|
|
|
12779
12779
|
const $F = (r) => r;
|
|
12780
12780
|
function Tg({ valueRef: r, format: e = $F }) {
|
|
12781
12781
|
const t = q(e(r.value));
|
|
12782
|
-
return
|
|
12782
|
+
return br(r, () => t.value = e(r.value)), t;
|
|
12783
12783
|
}
|
|
12784
12784
|
function wo(r) {
|
|
12785
12785
|
return A(() => {
|
|
@@ -12859,7 +12859,7 @@ function Mg({ targetRef: r, isActiveRef: e, event: t, onEvent: n, options: i })
|
|
|
12859
12859
|
function a() {
|
|
12860
12860
|
!r.value || (e.value ? o() : s());
|
|
12861
12861
|
}
|
|
12862
|
-
|
|
12862
|
+
br(e, a), br(r, a), Dl(s), a();
|
|
12863
12863
|
}
|
|
12864
12864
|
const IF = [
|
|
12865
12865
|
"BUTTON",
|
|
@@ -13235,7 +13235,7 @@ class Ct {
|
|
|
13235
13235
|
return this.window.getComputedStyle(e);
|
|
13236
13236
|
}
|
|
13237
13237
|
}
|
|
13238
|
-
|
|
13238
|
+
Fr(Ct, "window", window);
|
|
13239
13239
|
const ut = class {
|
|
13240
13240
|
static normalize(e) {
|
|
13241
13241
|
const t = {
|
|
@@ -13338,7 +13338,7 @@ const ut = class {
|
|
|
13338
13338
|
}
|
|
13339
13339
|
};
|
|
13340
13340
|
let wt = ut;
|
|
13341
|
-
|
|
13341
|
+
Fr(wt, "PARSER", new DOMParser()), Fr(wt, "BLOCK_STYLES", ["text-align", "line-height"]), Fr(wt, "BLOCK_NODE_NAMES", ["P", "H1", "H2", "H3", "H4"]), Fr(wt, "ASSIGN_STYLE_RULES", [
|
|
13342
13342
|
{
|
|
13343
13343
|
tag: /^(b|strong)$/,
|
|
13344
13344
|
ignore: /font-weight/
|
|
@@ -13602,7 +13602,7 @@ function DI({ optionsRef: r, inputRef: e, stateless: t, onChange: n }) {
|
|
|
13602
13602
|
o(c, u);
|
|
13603
13603
|
}
|
|
13604
13604
|
const a = () => s(e.value, { emitEvent: !1 });
|
|
13605
|
-
return a(),
|
|
13605
|
+
return a(), br(e, a), { activeOption: i, activateOption: o };
|
|
13606
13606
|
}
|
|
13607
13607
|
function Ic(r) {
|
|
13608
13608
|
return A(() => {
|
|
@@ -14882,9 +14882,9 @@ const bR = {
|
|
|
14882
14882
|
tooltip: pe
|
|
14883
14883
|
},
|
|
14884
14884
|
styles: [
|
|
14885
|
-
{ id:
|
|
14886
|
-
{ id:
|
|
14887
|
-
{ id:
|
|
14885
|
+
{ id: tn.UPPERCASE, title: "UPPERCASE" },
|
|
14886
|
+
{ id: tn.LOWERCASE, title: "lowercase" },
|
|
14887
|
+
{ id: tn.CAPITALIZE, title: "Capitalize" }
|
|
14888
14888
|
],
|
|
14889
14889
|
setup() {
|
|
14890
14890
|
const r = z(L.EDITOR);
|
|
@@ -16013,7 +16013,7 @@ const GP = {
|
|
|
16013
16013
|
},
|
|
16014
16014
|
setup(r) {
|
|
16015
16015
|
const e = A(() => r.device === vo.DESKTOP ? LP : qP), t = A(() => r.toolbar.isActiveRef.value), n = q(null);
|
|
16016
|
-
|
|
16016
|
+
br(n, (o) => {
|
|
16017
16017
|
o && r.toolbar.mount(o);
|
|
16018
16018
|
});
|
|
16019
16019
|
const i = A(() => ({
|
|
@@ -16044,19 +16044,19 @@ function YP(r) {
|
|
|
16044
16044
|
const XP = /* @__PURE__ */ function() {
|
|
16045
16045
|
return JP.exports;
|
|
16046
16046
|
}();
|
|
16047
|
-
function ZP({ content: r, onChange: e, extensions: t }) {
|
|
16048
|
-
const
|
|
16047
|
+
function ZP({ content: r, onChange: e, extensions: t, isReadonlyRef: n }) {
|
|
16048
|
+
const i = ny(new XS({
|
|
16049
16049
|
content: wt.normalize(r.value),
|
|
16050
|
-
onUpdate: () => e(
|
|
16050
|
+
onUpdate: () => e(i.getJSON()),
|
|
16051
16051
|
extensions: t,
|
|
16052
16052
|
injectCSS: !1
|
|
16053
16053
|
}));
|
|
16054
|
-
return Dl(() =>
|
|
16055
|
-
if (JSON.stringify(
|
|
16056
|
-
const
|
|
16057
|
-
|
|
16054
|
+
return Dl(() => i.destroy()), br(r, (o) => {
|
|
16055
|
+
if (JSON.stringify(i.getJSON()) !== JSON.stringify(o)) {
|
|
16056
|
+
const a = wt.normalize(o);
|
|
16057
|
+
i.commands.setContent(a, !1);
|
|
16058
16058
|
}
|
|
16059
|
-
}), n;
|
|
16059
|
+
}), br(n, (o) => i.setEditable(!o), { immediate: !0 }), i;
|
|
16060
16060
|
}
|
|
16061
16061
|
function QP({ wrapperRef: r, offsets: e, isActiveRef: t }) {
|
|
16062
16062
|
const n = wo(r);
|
|
@@ -16143,7 +16143,7 @@ const eB = je.create({
|
|
|
16143
16143
|
},
|
|
16144
16144
|
renderHTML({ HTMLAttributes: r }) {
|
|
16145
16145
|
const e = r.value ? `"${r.value}"` : null;
|
|
16146
|
-
return
|
|
16146
|
+
return xr({ font_family: e });
|
|
16147
16147
|
}
|
|
16148
16148
|
}), tB = Ot.create({
|
|
16149
16149
|
name: "heading",
|
|
@@ -16359,7 +16359,7 @@ const rB = te.create({
|
|
|
16359
16359
|
];
|
|
16360
16360
|
},
|
|
16361
16361
|
renderHTML({ HTMLAttributes: r }) {
|
|
16362
|
-
return
|
|
16362
|
+
return xr({ font_weight: r.value });
|
|
16363
16363
|
}
|
|
16364
16364
|
}), iB = je.create({
|
|
16365
16365
|
name: ne.FONT_SIZE,
|
|
@@ -16432,7 +16432,7 @@ const rB = te.create({
|
|
|
16432
16432
|
},
|
|
16433
16433
|
renderHTML({ HTMLAttributes: r }) {
|
|
16434
16434
|
const e = (t) => t ? `${t}px` : null;
|
|
16435
|
-
return
|
|
16435
|
+
return xr({
|
|
16436
16436
|
font_size_mobile: e(r.mobile),
|
|
16437
16437
|
font_size_tablet: e(r.tablet),
|
|
16438
16438
|
font_size_desktop: e(r.desktop)
|
|
@@ -16475,7 +16475,7 @@ const rB = te.create({
|
|
|
16475
16475
|
];
|
|
16476
16476
|
},
|
|
16477
16477
|
renderHTML({ HTMLAttributes: r }) {
|
|
16478
|
-
return
|
|
16478
|
+
return xr({ font_color: r.value });
|
|
16479
16479
|
}
|
|
16480
16480
|
}), sB = je.create({
|
|
16481
16481
|
name: ne.BACKGROUND_COLOR,
|
|
@@ -16507,7 +16507,7 @@ const rB = te.create({
|
|
|
16507
16507
|
];
|
|
16508
16508
|
},
|
|
16509
16509
|
renderHTML({ HTMLAttributes: r }) {
|
|
16510
|
-
return
|
|
16510
|
+
return xr({ background_color: r.value });
|
|
16511
16511
|
}
|
|
16512
16512
|
}), aB = te.create({
|
|
16513
16513
|
name: "device_manager",
|
|
@@ -16574,7 +16574,7 @@ const rB = te.create({
|
|
|
16574
16574
|
},
|
|
16575
16575
|
renderHTML({ HTMLAttributes: r }) {
|
|
16576
16576
|
const e = r.italic ? "italic" : null;
|
|
16577
|
-
return
|
|
16577
|
+
return xr({ font_style: e });
|
|
16578
16578
|
}
|
|
16579
16579
|
}), cB = je.create({
|
|
16580
16580
|
name: ne.TEXT_DECORATION,
|
|
@@ -16674,7 +16674,7 @@ const rB = te.create({
|
|
|
16674
16674
|
},
|
|
16675
16675
|
renderHTML({ HTMLAttributes: r }) {
|
|
16676
16676
|
const e = [];
|
|
16677
|
-
return r.underline && e.push("underline"), r.strike_through && e.push("line-through"),
|
|
16677
|
+
return r.underline && e.push("underline"), r.strike_through && e.push("line-through"), xr({ text_decoration: e.join(" ") });
|
|
16678
16678
|
}
|
|
16679
16679
|
}), uB = te.create({
|
|
16680
16680
|
name: "case_style",
|
|
@@ -16682,11 +16682,11 @@ const rB = te.create({
|
|
|
16682
16682
|
return {
|
|
16683
16683
|
applyCaseStyle: O(({ commands: r }, e) => {
|
|
16684
16684
|
switch (e) {
|
|
16685
|
-
case
|
|
16685
|
+
case tn.CAPITALIZE:
|
|
16686
16686
|
return r.applyCapitalize();
|
|
16687
|
-
case
|
|
16687
|
+
case tn.LOWERCASE:
|
|
16688
16688
|
return r.applyLowerCase();
|
|
16689
|
-
case
|
|
16689
|
+
case tn.UPPERCASE:
|
|
16690
16690
|
return r.applyUpperCase();
|
|
16691
16691
|
}
|
|
16692
16692
|
}),
|
|
@@ -16980,7 +16980,7 @@ var W = function() {
|
|
|
16980
16980
|
for (; o < s - 1; )
|
|
16981
16981
|
a = i(), w(e, t[o], a), e = a, o++;
|
|
16982
16982
|
w(e, t[s - 1], n);
|
|
16983
|
-
}, Ue = "DOMAIN", Dt = "LOCALHOST", lt = "TLD", Pe = "NUM", pn = "PROTOCOL", Rc = "MAILTO", zg = "WS", Pc = "NL",
|
|
16983
|
+
}, Ue = "DOMAIN", Dt = "LOCALHOST", lt = "TLD", Pe = "NUM", pn = "PROTOCOL", Rc = "MAILTO", zg = "WS", Pc = "NL", Kr = "OPENBRACE", Jn = "OPENBRACKET", Yn = "OPENANGLEBRACKET", Xn = "OPENPAREN", ar = "CLOSEBRACE", Gr = "CLOSEBRACKET", Jr = "CLOSEANGLEBRACKET", Yr = "CLOSEPAREN", Co = "AMPERSAND", Oo = "APOSTROPHE", ko = "ASTERISK", Xr = "AT", Ao = "BACKSLASH", To = "BACKTICK", Mo = "CARET", Zn = "COLON", Bc = "COMMA", $o = "DOLLAR", Pt = "DOT", Fo = "EQUALS", Lc = "EXCLAMATION", Io = "HYPHEN", No = "PERCENT", Ro = "PIPE", Po = "PLUS", Bo = "POUND", Lo = "QUERY", zc = "QUOTE", jc = "SEMI", xt = "SLASH", zo = "TILDE", jo = "UNDERSCORE", Vo = "SYM", gB = /* @__PURE__ */ Object.freeze({
|
|
16984
16984
|
__proto__: null,
|
|
16985
16985
|
DOMAIN: Ue,
|
|
16986
16986
|
LOCALHOST: Dt,
|
|
@@ -16990,18 +16990,18 @@ var W = function() {
|
|
|
16990
16990
|
MAILTO: Rc,
|
|
16991
16991
|
WS: zg,
|
|
16992
16992
|
NL: Pc,
|
|
16993
|
-
OPENBRACE:
|
|
16993
|
+
OPENBRACE: Kr,
|
|
16994
16994
|
OPENBRACKET: Jn,
|
|
16995
16995
|
OPENANGLEBRACKET: Yn,
|
|
16996
16996
|
OPENPAREN: Xn,
|
|
16997
16997
|
CLOSEBRACE: ar,
|
|
16998
|
-
CLOSEBRACKET:
|
|
16999
|
-
CLOSEANGLEBRACKET:
|
|
17000
|
-
CLOSEPAREN:
|
|
16998
|
+
CLOSEBRACKET: Gr,
|
|
16999
|
+
CLOSEANGLEBRACKET: Jr,
|
|
17000
|
+
CLOSEPAREN: Yr,
|
|
17001
17001
|
AMPERSAND: Co,
|
|
17002
17002
|
APOSTROPHE: Oo,
|
|
17003
17003
|
ASTERISK: ko,
|
|
17004
|
-
AT:
|
|
17004
|
+
AT: Xr,
|
|
17005
17005
|
BACKSLASH: Ao,
|
|
17006
17006
|
BACKTICK: To,
|
|
17007
17007
|
CARET: Mo,
|
|
@@ -17034,7 +17034,7 @@ function yB() {
|
|
|
17034
17034
|
var x = a();
|
|
17035
17035
|
return x.t = _, x;
|
|
17036
17036
|
};
|
|
17037
|
-
vB(e, [["'", M(Oo)], ["{", M(
|
|
17037
|
+
vB(e, [["'", M(Oo)], ["{", M(Kr)], ["[", M(Jn)], ["<", M(Yn)], ["(", M(Xn)], ["}", M(ar)], ["]", M(Gr)], [">", M(Jr)], [")", M(Yr)], ["&", M(Co)], ["*", M(ko)], ["@", M(Xr)], ["`", M(To)], ["^", M(Mo)], [":", M(Zn)], [",", M(Bc)], ["$", M($o)], [".", M(Pt)], ["=", M(Fo)], ["!", M(Lc)], ["-", M(Io)], ["%", M(No)], ["|", M(Ro)], ["+", M(Po)], ["#", M(Bo)], ["?", M(Lo)], ['"', M(zc)], ["/", M(xt)], [";", M(jc)], ["~", M(zo)], ["_", M(jo)], ["\\", M(Ao)]]), w(e, `
|
|
17038
17038
|
`, M(Pc)), oe(e, ap, o), w(o, `
|
|
17039
17039
|
`, W()), oe(o, ap, o);
|
|
17040
17040
|
for (var u = 0; u < sp.length; u++)
|
|
@@ -17170,20 +17170,20 @@ Ho.prototype = {
|
|
|
17170
17170
|
};
|
|
17171
17171
|
}
|
|
17172
17172
|
};
|
|
17173
|
-
function
|
|
17173
|
+
function Tr(r, e) {
|
|
17174
17174
|
function t(n, i) {
|
|
17175
17175
|
this.t = r, this.v = n, this.tk = i;
|
|
17176
17176
|
}
|
|
17177
17177
|
return EB(Ho, t, e), t;
|
|
17178
17178
|
}
|
|
17179
|
-
var jg =
|
|
17179
|
+
var jg = Tr("email", {
|
|
17180
17180
|
isLink: !0
|
|
17181
|
-
}), Sl =
|
|
17181
|
+
}), Sl = Tr("email", {
|
|
17182
17182
|
isLink: !0,
|
|
17183
17183
|
toHref: function() {
|
|
17184
17184
|
return "mailto:" + this.toString();
|
|
17185
17185
|
}
|
|
17186
|
-
}), El =
|
|
17186
|
+
}), El = Tr("text"), Vg = Tr("nl"), Rt = Tr("url", {
|
|
17187
17187
|
isLink: !0,
|
|
17188
17188
|
toHref: function() {
|
|
17189
17189
|
for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : me.defaultProtocol, t = this.tk, n = !1, i = !1, o = [], s = 0; t[s].t === pn; )
|
|
@@ -17201,7 +17201,7 @@ var jg = Ar("email", {
|
|
|
17201
17201
|
__proto__: null,
|
|
17202
17202
|
MultiToken: Ho,
|
|
17203
17203
|
Base: Ho,
|
|
17204
|
-
createTokenClass:
|
|
17204
|
+
createTokenClass: Tr,
|
|
17205
17205
|
MailtoEmail: jg,
|
|
17206
17206
|
Email: Sl,
|
|
17207
17207
|
Text: El,
|
|
@@ -17209,12 +17209,12 @@ var jg = Ar("email", {
|
|
|
17209
17209
|
Url: Rt
|
|
17210
17210
|
});
|
|
17211
17211
|
function wB() {
|
|
17212
|
-
var r = W(), e = W(), t = W(), n = W(), i = W(), o = W(), s = W(), a = M(Rt), l = W(), u = M(Rt), c = M(Rt), f = W(), d = W(), h = W(), p = W(), m = W(), v = M(Rt), g = M(Rt), y = M(Rt), D = M(Rt), _ = W(), x = W(), b = W(), C = W(), E = W(), F = W(), V = M(Sl), j = W(), Q = M(Sl), J = M(jg), st = W(), Ee = W(), Y = W(), De = W(),
|
|
17213
|
-
w(r, Pc,
|
|
17214
|
-
var K = [Co, ko,
|
|
17215
|
-
w(c,
|
|
17216
|
-
var St = [Co, Oo, ko, Ao, To, Mo, ar, $o, Ue, Fo, Io, Pe,
|
|
17217
|
-
return N(o, St, Ee), w(o,
|
|
17212
|
+
var r = W(), e = W(), t = W(), n = W(), i = W(), o = W(), s = W(), a = M(Rt), l = W(), u = M(Rt), c = M(Rt), f = W(), d = W(), h = W(), p = W(), m = W(), v = M(Rt), g = M(Rt), y = M(Rt), D = M(Rt), _ = W(), x = W(), b = W(), C = W(), E = W(), F = W(), V = M(Sl), j = W(), Q = M(Sl), J = M(jg), st = W(), Ee = W(), Y = W(), De = W(), Mr = M(Vg);
|
|
17213
|
+
w(r, Pc, Mr), w(r, pn, e), w(r, Rc, t), w(e, xt, n), w(n, xt, i), w(r, lt, o), w(r, Ue, o), w(r, Dt, a), w(r, Pe, o), w(i, lt, c), w(i, Ue, c), w(i, Pe, c), w(i, Dt, c), w(o, Pt, s), w(E, Pt, F), w(s, lt, a), w(s, Ue, o), w(s, Pe, o), w(s, Dt, o), w(F, lt, V), w(F, Ue, E), w(F, Pe, E), w(F, Dt, E), w(a, Pt, s), w(V, Pt, F), w(a, Zn, l), w(a, xt, c), w(l, Pe, u), w(u, xt, c), w(V, Zn, j), w(j, Pe, Q);
|
|
17214
|
+
var K = [Co, ko, Xr, Ao, To, Mo, $o, Ue, Fo, Io, Dt, Pe, No, Ro, Po, Bo, pn, xt, Vo, zo, lt, jo], X = [Oo, Jr, ar, Gr, Yr, Zn, Bc, Pt, Lc, Yn, Kr, Jn, Xn, Lo, zc, jc];
|
|
17215
|
+
w(c, Kr, d), w(c, Jn, h), w(c, Yn, p), w(c, Xn, m), w(f, Kr, d), w(f, Jn, h), w(f, Yn, p), w(f, Xn, m), w(d, ar, c), w(h, Gr, c), w(p, Jr, c), w(m, Yr, c), w(v, ar, c), w(g, Gr, c), w(y, Jr, c), w(D, Yr, c), w(_, ar, c), w(x, Gr, c), w(b, Jr, c), w(C, Yr, c), N(d, K, v), N(h, K, g), N(p, K, y), N(m, K, D), N(d, X, _), N(h, X, x), N(p, X, b), N(m, X, C), N(v, K, v), N(g, K, g), N(y, K, y), N(D, K, D), N(v, X, v), N(g, X, g), N(y, X, y), N(D, X, D), N(_, K, v), N(x, K, g), N(b, K, y), N(C, K, D), N(_, X, _), N(x, X, x), N(b, X, b), N(C, X, C), N(c, K, c), N(f, K, c), N(c, X, f), N(f, X, f), w(t, lt, J), w(t, Ue, J), w(t, Pe, J), w(t, Dt, J), N(J, K, J), N(J, X, st), N(st, K, J), N(st, X, st);
|
|
17216
|
+
var St = [Co, Oo, ko, Ao, To, Mo, ar, $o, Ue, Fo, Io, Pe, Kr, No, Ro, Po, Bo, Lo, xt, Vo, zo, lt, jo];
|
|
17217
|
+
return N(o, St, Ee), w(o, Xr, Y), N(a, St, Ee), w(a, Xr, Y), N(s, St, Ee), N(Ee, St, Ee), w(Ee, Xr, Y), w(Ee, Pt, De), N(De, St, Ee), w(Y, lt, E), w(Y, Ue, E), w(Y, Pe, E), w(Y, Dt, V), r;
|
|
17218
17218
|
}
|
|
17219
17219
|
function xB(r, e, t) {
|
|
17220
17220
|
for (var n = t.length, i = 0, o = [], s = []; i < n; ) {
|
|
@@ -17259,7 +17259,7 @@ function kB() {
|
|
|
17259
17259
|
tokens: DB
|
|
17260
17260
|
};
|
|
17261
17261
|
for (var r = {
|
|
17262
|
-
createTokenClass:
|
|
17262
|
+
createTokenClass: Tr
|
|
17263
17263
|
}, e = 0; e < Me.pluginQueue.length; e++)
|
|
17264
17264
|
Me.pluginQueue[e][1]({
|
|
17265
17265
|
scanner: Me.scanner,
|
|
@@ -17529,7 +17529,10 @@ const $B = je.create({
|
|
|
17529
17529
|
};
|
|
17530
17530
|
}
|
|
17531
17531
|
}), NB = IB.extend({
|
|
17532
|
-
addKeyboardShortcuts: null
|
|
17532
|
+
addKeyboardShortcuts: null,
|
|
17533
|
+
addOptions: () => ({
|
|
17534
|
+
HTMLAttributes: { class: "zw-superscript" }
|
|
17535
|
+
})
|
|
17533
17536
|
}), RB = Ot.create({
|
|
17534
17537
|
name: "doc",
|
|
17535
17538
|
topNode: !0,
|
|
@@ -17746,7 +17749,7 @@ class Je {
|
|
|
17746
17749
|
return u > HB && (a = VB(a, u), s -= u), new Je(a.append(o), s);
|
|
17747
17750
|
}
|
|
17748
17751
|
remapping(e, t) {
|
|
17749
|
-
let n = new
|
|
17752
|
+
let n = new Zr();
|
|
17750
17753
|
return this.items.forEach((i, o) => {
|
|
17751
17754
|
let s = i.mirrorOffset != null && o - i.mirrorOffset >= e ? n.maps.length - i.mirrorOffset : void 0;
|
|
17752
17755
|
n.appendMap(i.map, s);
|
|
@@ -18123,7 +18126,7 @@ const cL = te.create({
|
|
|
18123
18126
|
cL
|
|
18124
18127
|
];
|
|
18125
18128
|
function fL(r) {
|
|
18126
|
-
const e = (i) => r.presetsRef.value.find((o) => o.id === i), t = e(r.defaultPresetId), n = e(
|
|
18129
|
+
const e = (i) => r.presetsRef.value.find((o) => o.id === i), t = e(r.defaultPresetId), n = e(r.linkPresetId);
|
|
18127
18130
|
return uL().concat([
|
|
18128
18131
|
rB.configure({
|
|
18129
18132
|
presets: r.presetsRef,
|
|
@@ -18226,6 +18229,10 @@ const Ra = 5, dp = 112, mL = {
|
|
|
18226
18229
|
type: [Number, String],
|
|
18227
18230
|
required: !0
|
|
18228
18231
|
},
|
|
18232
|
+
linkPresetId: {
|
|
18233
|
+
type: [Number, String],
|
|
18234
|
+
required: !0
|
|
18235
|
+
},
|
|
18229
18236
|
basePresetClass: {
|
|
18230
18237
|
type: String,
|
|
18231
18238
|
required: !0
|
|
@@ -18266,6 +18273,11 @@ const Ra = 5, dp = 112, mL = {
|
|
|
18266
18273
|
type: Array,
|
|
18267
18274
|
required: !0
|
|
18268
18275
|
},
|
|
18276
|
+
readonly: {
|
|
18277
|
+
type: Boolean,
|
|
18278
|
+
required: !1,
|
|
18279
|
+
default: !1
|
|
18280
|
+
},
|
|
18269
18281
|
window: {
|
|
18270
18282
|
required: !1,
|
|
18271
18283
|
default: () => window
|
|
@@ -18277,43 +18289,45 @@ const Ra = 5, dp = 112, mL = {
|
|
|
18277
18289
|
],
|
|
18278
18290
|
setup(r, { emit: e }) {
|
|
18279
18291
|
Ct.use(r.window);
|
|
18280
|
-
const t = r.fonts.map((
|
|
18281
|
-
var
|
|
18282
|
-
return ((
|
|
18283
|
-
}), s = QP({
|
|
18292
|
+
const t = r.fonts.map((p) => new dL(p)), n = q(null), i = q(null), o = A(() => {
|
|
18293
|
+
var p;
|
|
18294
|
+
return ((p = i.value) == null ? void 0 : p.$el) || document.body;
|
|
18295
|
+
}), s = A(() => r.active && !r.readonly), a = QP({
|
|
18284
18296
|
wrapperRef: i,
|
|
18285
|
-
isActiveRef:
|
|
18297
|
+
isActiveRef: s,
|
|
18286
18298
|
offsets: r.toolbarOffsets
|
|
18287
|
-
}),
|
|
18288
|
-
function
|
|
18289
|
-
e("input",
|
|
18299
|
+
}), l = () => a.update();
|
|
18300
|
+
function u(p) {
|
|
18301
|
+
e("input", p), l();
|
|
18290
18302
|
}
|
|
18291
|
-
const
|
|
18303
|
+
const c = fe(r, "pageBlocks"), f = ZP({
|
|
18292
18304
|
content: fe(r, "value"),
|
|
18293
|
-
onChange: (
|
|
18305
|
+
onChange: (p) => u(p),
|
|
18306
|
+
isReadonlyRef: fe(r, "readonly"),
|
|
18294
18307
|
extensions: fL({
|
|
18295
18308
|
fonts: t,
|
|
18296
18309
|
minFontSize: Ra,
|
|
18297
18310
|
maxFontSize: dp,
|
|
18298
18311
|
presetsRef: fe(r, "presets"),
|
|
18299
18312
|
defaultPresetId: r.defaultPresetId,
|
|
18313
|
+
linkPresetId: r.linkPresetId,
|
|
18300
18314
|
makePresetVariable: r.makePresetVariable,
|
|
18301
18315
|
basePresetClass: r.basePresetClass,
|
|
18302
18316
|
baseListClass: r.baseListClass,
|
|
18303
18317
|
deviceRef: fe(r, "device"),
|
|
18304
|
-
pageBlocksRef:
|
|
18318
|
+
pageBlocksRef: c,
|
|
18305
18319
|
wrapperRef: o
|
|
18306
18320
|
})
|
|
18307
|
-
}),
|
|
18321
|
+
}), d = new Array(dp - Ra + 1).fill(0).map((p, m) => String(m + Ra)), h = new sI({
|
|
18308
18322
|
listRef: fe(r, "favoriteColors"),
|
|
18309
|
-
triggerUpdate: (
|
|
18323
|
+
triggerUpdate: (p) => e("update-favorite-colors", p)
|
|
18310
18324
|
});
|
|
18311
|
-
return ft(L.EDITOR,
|
|
18312
|
-
editor:
|
|
18325
|
+
return ft(L.EDITOR, f), ft(L.FONTS, t), ft(L.FONT_SIZES, d), ft(L.LOCAL_STORAGE, new oI(localStorage)), ft(L.FAVORITE_COLORS, h), ft(L.PAGE_BLOCKS, c), {
|
|
18326
|
+
editor: f,
|
|
18313
18327
|
toolbarRef: n,
|
|
18314
18328
|
wysiwygRef: i,
|
|
18315
|
-
toolbar:
|
|
18316
|
-
updateToolbar:
|
|
18329
|
+
toolbar: a,
|
|
18330
|
+
updateToolbar: l
|
|
18317
18331
|
};
|
|
18318
18332
|
}
|
|
18319
18333
|
}, hp = {};
|