@zipify/wysiwyg 1.0.0-dev.61 → 1.0.0-dev.64
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.mjs +476 -452
- package/example/ExampleApp.vue +21 -2
- package/lib/Wysiwyg.vue +23 -1
- package/lib/assets/icons/background-color.svg +3 -1
- package/lib/assets/icons/font-color.svg +1 -3
- package/lib/components/toolbar/ToolbarFull.vue +31 -8
- package/lib/composables/__tests__/useEditor.test.js +2 -1
- package/lib/composables/useEditor.js +3 -1
- package/lib/extensions/index.js +1 -1
- package/lib/injectionTokens.js +2 -1
- 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 Ke, 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;
|
|
@@ -1992,10 +1992,10 @@ class Ba {
|
|
|
1992
1992
|
return (this.delInfo & Hi) > 0;
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
1995
|
-
class
|
|
1995
|
+
class Je {
|
|
1996
1996
|
constructor(e, t = !1) {
|
|
1997
|
-
if (this.ranges = e, this.inverted = t, !e.length &&
|
|
1998
|
-
return
|
|
1997
|
+
if (this.ranges = e, this.inverted = t, !e.length && Je.empty)
|
|
1998
|
+
return Je.empty;
|
|
1999
1999
|
}
|
|
2000
2000
|
recover(e) {
|
|
2001
2001
|
let t = 0, n = ou(e);
|
|
@@ -2049,25 +2049,25 @@ class Ge {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
}
|
|
2051
2051
|
invert() {
|
|
2052
|
-
return new
|
|
2052
|
+
return new Je(this.ranges, !this.inverted);
|
|
2053
2053
|
}
|
|
2054
2054
|
toString() {
|
|
2055
2055
|
return (this.inverted ? "-" : "") + JSON.stringify(this.ranges);
|
|
2056
2056
|
}
|
|
2057
2057
|
static offset(e) {
|
|
2058
|
-
return e == 0 ?
|
|
2058
|
+
return e == 0 ? Je.empty : new Je(e < 0 ? [0, -e, 0] : [0, 0, e]);
|
|
2059
2059
|
}
|
|
2060
2060
|
}
|
|
2061
|
-
|
|
2062
|
-
class
|
|
2061
|
+
Je.empty = new Je([]);
|
|
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) {
|
|
@@ -2127,7 +2127,7 @@ class Xr {
|
|
|
2127
2127
|
const Cs = /* @__PURE__ */ Object.create(null);
|
|
2128
2128
|
class Jt {
|
|
2129
2129
|
getMap() {
|
|
2130
|
-
return
|
|
2130
|
+
return Je.empty;
|
|
2131
2131
|
}
|
|
2132
2132
|
merge(e) {
|
|
2133
2133
|
return null;
|
|
@@ -2248,7 +2248,7 @@ class ge extends Jt {
|
|
|
2248
2248
|
return this.structure && La(e, this.from, this.to) ? Fe.fail("Structure replace would overwrite content") : Fe.fromReplace(e, this.from, this.to, this.slice);
|
|
2249
2249
|
}
|
|
2250
2250
|
getMap() {
|
|
2251
|
-
return new
|
|
2251
|
+
return new Je([this.from, this.to - this.from, this.slice.size]);
|
|
2252
2252
|
}
|
|
2253
2253
|
invert(e) {
|
|
2254
2254
|
return new ge(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
|
|
@@ -2294,7 +2294,7 @@ class se extends Jt {
|
|
|
2294
2294
|
return n ? Fe.fromReplace(e, this.from, this.to, n) : Fe.fail("Content does not fit in gap");
|
|
2295
2295
|
}
|
|
2296
2296
|
getMap() {
|
|
2297
|
-
return new
|
|
2297
|
+
return new Je([
|
|
2298
2298
|
this.from,
|
|
2299
2299
|
this.gapFrom - this.from,
|
|
2300
2300
|
this.insert,
|
|
@@ -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,24 +2965,24 @@ class P {
|
|
|
2965
2965
|
}
|
|
2966
2966
|
}
|
|
2967
2967
|
static findFrom(e, t, n = !1) {
|
|
2968
|
-
let i = e.parent.inlineContent ? new
|
|
2968
|
+
let i = e.parent.inlineContent ? new L(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
|
}
|
|
2976
2976
|
return null;
|
|
2977
2977
|
}
|
|
2978
2978
|
static near(e, t = 1) {
|
|
2979
|
-
return this.findFrom(e, t) || this.findFrom(e, -t) || new
|
|
2979
|
+
return this.findFrom(e, t) || this.findFrom(e, -t) || new Ze(e.node(0));
|
|
2980
2980
|
}
|
|
2981
2981
|
static atStart(e) {
|
|
2982
|
-
return
|
|
2982
|
+
return Lr(e, e, 0, 0, 1) || new Ze(e);
|
|
2983
2983
|
}
|
|
2984
2984
|
static atEnd(e) {
|
|
2985
|
-
return
|
|
2985
|
+
return Lr(e, e, e.content.size, e.childCount, -1) || new Ze(e);
|
|
2986
2986
|
}
|
|
2987
2987
|
static fromJSON(e, t) {
|
|
2988
2988
|
if (!t || !t.type)
|
|
@@ -2998,7 +2998,7 @@ class P {
|
|
|
2998
2998
|
return As[e] = t, t.prototype.jsonID = e, t;
|
|
2999
2999
|
}
|
|
3000
3000
|
getBookmark() {
|
|
3001
|
-
return
|
|
3001
|
+
return L.between(this.$anchor, this.$head).getBookmark();
|
|
3002
3002
|
}
|
|
3003
3003
|
}
|
|
3004
3004
|
P.prototype.visible = !0;
|
|
@@ -3011,7 +3011,7 @@ let au = !1;
|
|
|
3011
3011
|
function lu(r) {
|
|
3012
3012
|
!au && !r.parent.inlineContent && (au = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + r.parent.type.name + ")"));
|
|
3013
3013
|
}
|
|
3014
|
-
class
|
|
3014
|
+
class L extends P {
|
|
3015
3015
|
constructor(e, t = e) {
|
|
3016
3016
|
lu(e), lu(t), super(e, t);
|
|
3017
3017
|
}
|
|
@@ -3023,7 +3023,7 @@ class B extends P {
|
|
|
3023
3023
|
if (!n.parent.inlineContent)
|
|
3024
3024
|
return P.near(n);
|
|
3025
3025
|
let i = e.resolve(t.map(this.anchor));
|
|
3026
|
-
return new
|
|
3026
|
+
return new L(i.parent.inlineContent ? i : n, n);
|
|
3027
3027
|
}
|
|
3028
3028
|
replace(e, t = k.empty) {
|
|
3029
3029
|
if (super.replace(e, t), t == k.empty) {
|
|
@@ -3032,7 +3032,7 @@ class B extends P {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
}
|
|
3034
3034
|
eq(e) {
|
|
3035
|
-
return e instanceof
|
|
3035
|
+
return e instanceof L && e.anchor == this.anchor && e.head == this.head;
|
|
3036
3036
|
}
|
|
3037
3037
|
getBookmark() {
|
|
3038
3038
|
return new Uo(this.anchor, this.head);
|
|
@@ -3043,7 +3043,7 @@ class B extends P {
|
|
|
3043
3043
|
static fromJSON(e, t) {
|
|
3044
3044
|
if (typeof t.anchor != "number" || typeof t.head != "number")
|
|
3045
3045
|
throw new RangeError("Invalid input for TextSelection.fromJSON");
|
|
3046
|
-
return new
|
|
3046
|
+
return new L(e.resolve(t.anchor), e.resolve(t.head));
|
|
3047
3047
|
}
|
|
3048
3048
|
static create(e, t, n = t) {
|
|
3049
3049
|
let i = e.resolve(t);
|
|
@@ -3058,10 +3058,10 @@ class B extends P {
|
|
|
3058
3058
|
else
|
|
3059
3059
|
return P.near(t, n);
|
|
3060
3060
|
}
|
|
3061
|
-
return e.parent.inlineContent || (i == 0 ? e = t : (e = (P.findFrom(e, -n, !0) || P.findFrom(e, n, !0)).$anchor, e.pos < t.pos != i < 0 && (e = t))), new
|
|
3061
|
+
return e.parent.inlineContent || (i == 0 ? e = t : (e = (P.findFrom(e, -n, !0) || P.findFrom(e, n, !0)).$anchor, e.pos < t.pos != i < 0 && (e = t))), new L(e, t);
|
|
3062
3062
|
}
|
|
3063
3063
|
}
|
|
3064
|
-
P.jsonID("text",
|
|
3064
|
+
P.jsonID("text", L);
|
|
3065
3065
|
class Uo {
|
|
3066
3066
|
constructor(e, t) {
|
|
3067
3067
|
this.anchor = e, this.head = t;
|
|
@@ -3070,7 +3070,7 @@ class Uo {
|
|
|
3070
3070
|
return new Uo(e.map(this.anchor), e.map(this.head));
|
|
3071
3071
|
}
|
|
3072
3072
|
resolve(e) {
|
|
3073
|
-
return
|
|
3073
|
+
return L.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
3074
3074
|
}
|
|
3075
3075
|
}
|
|
3076
3076
|
class I extends P {
|
|
@@ -3121,7 +3121,7 @@ class Ol {
|
|
|
3121
3121
|
return n && I.isSelectable(n) ? new I(t) : P.near(t);
|
|
3122
3122
|
}
|
|
3123
3123
|
}
|
|
3124
|
-
class
|
|
3124
|
+
class Ze extends P {
|
|
3125
3125
|
constructor(e) {
|
|
3126
3126
|
super(e.resolve(0), e.resolve(e.content.size));
|
|
3127
3127
|
}
|
|
@@ -3137,37 +3137,37 @@ class Xe extends P {
|
|
|
3137
3137
|
return { type: "all" };
|
|
3138
3138
|
}
|
|
3139
3139
|
static fromJSON(e) {
|
|
3140
|
-
return new
|
|
3140
|
+
return new Ze(e);
|
|
3141
3141
|
}
|
|
3142
3142
|
map(e) {
|
|
3143
|
-
return new
|
|
3143
|
+
return new Ze(e);
|
|
3144
3144
|
}
|
|
3145
3145
|
eq(e) {
|
|
3146
|
-
return e instanceof
|
|
3146
|
+
return e instanceof Ze;
|
|
3147
3147
|
}
|
|
3148
3148
|
getBookmark() {
|
|
3149
3149
|
return Zy;
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
|
-
P.jsonID("all",
|
|
3152
|
+
P.jsonID("all", Ze);
|
|
3153
3153
|
const Zy = {
|
|
3154
3154
|
map() {
|
|
3155
3155
|
return this;
|
|
3156
3156
|
},
|
|
3157
3157
|
resolve(r) {
|
|
3158
|
-
return new
|
|
3158
|
+
return new Ze(r);
|
|
3159
3159
|
}
|
|
3160
3160
|
};
|
|
3161
|
-
function
|
|
3161
|
+
function Lr(r, e, t, n, i, o = !1) {
|
|
3162
3162
|
if (e.inlineContent)
|
|
3163
|
-
return
|
|
3163
|
+
return L.create(r, t);
|
|
3164
3164
|
for (let s = n - (i > 0 ? 0 : 1); i > 0 ? s < e.childCount : s >= 0; s += i) {
|
|
3165
3165
|
let a = e.child(s);
|
|
3166
3166
|
if (a.isAtom) {
|
|
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);
|
|
@@ -3449,7 +3449,7 @@ const Ms = /* @__PURE__ */ Object.create(null);
|
|
|
3449
3449
|
function Vp(r) {
|
|
3450
3450
|
return r in Ms ? r + "$" + ++Ms[r] : (Ms[r] = 0, r + "$");
|
|
3451
3451
|
}
|
|
3452
|
-
class
|
|
3452
|
+
class rt {
|
|
3453
3453
|
constructor(e = "key") {
|
|
3454
3454
|
this.key = Vp(e);
|
|
3455
3455
|
}
|
|
@@ -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,10 +3846,10 @@ 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
|
|
3849
|
+
const Qe = 0, _u = 1, Wr = 2, bt = 3;
|
|
3850
3850
|
class ui {
|
|
3851
3851
|
constructor(e, t, n, i) {
|
|
3852
|
-
this.parent = e, this.children = t, this.dom = n, this.contentDOM = i, this.dirty =
|
|
3852
|
+
this.parent = e, this.children = t, this.dom = n, this.contentDOM = i, this.dirty = Qe, n.pmViewDesc = this;
|
|
3853
3853
|
}
|
|
3854
3854
|
matchesWidget(e) {
|
|
3855
3855
|
return !1;
|
|
@@ -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
|
}
|
|
@@ -4178,7 +4178,7 @@ class Yp extends ui {
|
|
|
4178
4178
|
super(e, [], s, null), this.widget = t, this.widget = t, o = this;
|
|
4179
4179
|
}
|
|
4180
4180
|
matchesWidget(e) {
|
|
4181
|
-
return this.dirty ==
|
|
4181
|
+
return this.dirty == Qe && e.type.eq(this.widget.type);
|
|
4182
4182
|
}
|
|
4183
4183
|
parseRule() {
|
|
4184
4184
|
return { ignore: !0 };
|
|
@@ -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 };
|
|
@@ -4232,22 +4232,22 @@ class _r extends ui {
|
|
|
4232
4232
|
return this.dirty != bt && this.mark.eq(e);
|
|
4233
4233
|
}
|
|
4234
4234
|
markDirty(e, t) {
|
|
4235
|
-
if (super.markDirty(e, t), this.dirty !=
|
|
4235
|
+
if (super.markDirty(e, t), this.dirty != Qe) {
|
|
4236
4236
|
let n = this.parent;
|
|
4237
4237
|
for (; !n.node; )
|
|
4238
4238
|
n = n.parent;
|
|
4239
|
-
n.dirty < this.dirty && (n.dirty = this.dirty), this.dirty =
|
|
4239
|
+
n.dirty < this.dirty && (n.dirty = this.dirty), this.dirty = Qe;
|
|
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)
|
|
@@ -4290,7 +4290,7 @@ class Sr extends ui {
|
|
|
4290
4290
|
return e;
|
|
4291
4291
|
}
|
|
4292
4292
|
matchesNode(e, t, n) {
|
|
4293
|
-
return this.dirty ==
|
|
4293
|
+
return this.dirty == Qe && e.eq(this.node) && Wa(t, this.outerDeco) && n.eq(this.innerDeco);
|
|
4294
4294
|
}
|
|
4295
4295
|
get size() {
|
|
4296
4296
|
return this.node.nodeSize;
|
|
@@ -4306,11 +4306,11 @@ 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;
|
|
4313
|
-
if (!(e.state.selection instanceof
|
|
4313
|
+
if (!(e.state.selection instanceof L) || n < t || i > t + this.node.content.size)
|
|
4314
4314
|
return null;
|
|
4315
4315
|
let o = e.domSelection(), s = A0(o.focusNode, o.focusOffset);
|
|
4316
4316
|
if (!s || !this.dom.contains(s.parentNode))
|
|
@@ -4339,7 +4339,7 @@ class Sr extends ui {
|
|
|
4339
4339
|
return this.dirty == bt || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, n, i), !0);
|
|
4340
4340
|
}
|
|
4341
4341
|
updateInner(e, t, n, i) {
|
|
4342
|
-
this.updateOuterDeco(t), this.node = e, this.innerDeco = n, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty =
|
|
4342
|
+
this.updateOuterDeco(t), this.node = e, this.innerDeco = n, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Qe;
|
|
4343
4343
|
}
|
|
4344
4344
|
updateOuterDeco(e) {
|
|
4345
4345
|
if (Wa(e, this.outerDeco))
|
|
@@ -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
|
}
|
|
@@ -4371,7 +4371,7 @@ class Go extends Sr {
|
|
|
4371
4371
|
return { skip: e || !0 };
|
|
4372
4372
|
}
|
|
4373
4373
|
update(e, t, n, i) {
|
|
4374
|
-
return this.dirty == bt || this.dirty !=
|
|
4374
|
+
return this.dirty == bt || this.dirty != Qe && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != Qe || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Qe, !0);
|
|
4375
4375
|
}
|
|
4376
4376
|
inParent() {
|
|
4377
4377
|
let e = this.parent.contentDOM;
|
|
@@ -4405,7 +4405,7 @@ class Xp extends ui {
|
|
|
4405
4405
|
return { ignore: !0 };
|
|
4406
4406
|
}
|
|
4407
4407
|
matchesHack(e) {
|
|
4408
|
-
return this.dirty ==
|
|
4408
|
+
return this.dirty == Qe && this.dom.nodeName == e;
|
|
4409
4409
|
}
|
|
4410
4410
|
get domAtom() {
|
|
4411
4411
|
return !0;
|
|
@@ -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
|
}
|
|
@@ -4556,7 +4556,7 @@ class w0 {
|
|
|
4556
4556
|
for (; i < s && (i == o - 1 ? this.top : this.stack[i + 1 << 1]).matchesMark(e[i]) && e[i].type.spec.spanning !== !1; )
|
|
4557
4557
|
i++;
|
|
4558
4558
|
for (; i < o; )
|
|
4559
|
-
this.destroyRest(), this.top.dirty =
|
|
4559
|
+
this.destroyRest(), this.top.dirty = Qe, this.index = this.stack.pop(), this.top = this.stack.pop(), o--;
|
|
4560
4560
|
for (; o < e.length; ) {
|
|
4561
4561
|
this.stack.push(this.top, this.index + 1);
|
|
4562
4562
|
let a = -1;
|
|
@@ -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--;
|
|
@@ -4824,7 +4824,7 @@ function Kt(r, e = !1) {
|
|
|
4824
4824
|
$0(r);
|
|
4825
4825
|
else {
|
|
4826
4826
|
let { anchor: n, head: i } = t, o, s;
|
|
4827
|
-
Du && !(t instanceof
|
|
4827
|
+
Du && !(t instanceof L) && (t.$from.parent.inlineContent || (o = wu(r, t.from)), !t.empty && !t.$from.parent.inlineContent && (s = wu(r, t.to))), r.docView.setSelection(n, i, r.root, e), Du && (o && xu(o), s && xu(s)), t.visible ? r.dom.classList.remove("ProseMirror-hideselection") : (r.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && M0(r));
|
|
4828
4828
|
}
|
|
4829
4829
|
r.domObserver.setCurSelection(), r.domObserver.connectSelection();
|
|
4830
4830
|
}
|
|
@@ -4872,7 +4872,7 @@ function Cu(r) {
|
|
|
4872
4872
|
r.lastSelectedViewDesc && (r.lastSelectedViewDesc.parent && r.lastSelectedViewDesc.deselectNode(), r.lastSelectedViewDesc = void 0);
|
|
4873
4873
|
}
|
|
4874
4874
|
function Ml(r, e, t, n) {
|
|
4875
|
-
return r.someProp("createSelectionBetween", (i) => i(r, e, t)) ||
|
|
4875
|
+
return r.someProp("createSelectionBetween", (i) => i(r, e, t)) || L.between(e, t, n);
|
|
4876
4876
|
}
|
|
4877
4877
|
function Ou(r) {
|
|
4878
4878
|
return r.editable && r.root.activeElement != r.dom ? !1 : im(r);
|
|
@@ -4900,7 +4900,7 @@ function sr(r, e) {
|
|
|
4900
4900
|
}
|
|
4901
4901
|
function ku(r, e, t) {
|
|
4902
4902
|
let n = r.state.selection;
|
|
4903
|
-
if (n instanceof
|
|
4903
|
+
if (n instanceof L) {
|
|
4904
4904
|
if (!n.empty || t.indexOf("s") > -1)
|
|
4905
4905
|
return !1;
|
|
4906
4906
|
if (r.endOfTextblock(e > 0 ? "right" : "left")) {
|
|
@@ -4911,11 +4911,11 @@ function ku(r, e, t) {
|
|
|
4911
4911
|
if (!o || o.isText)
|
|
4912
4912
|
return !1;
|
|
4913
4913
|
let a = e < 0 ? i.pos - o.nodeSize : i.pos;
|
|
4914
|
-
return o.isAtom || (s = r.docView.descAt(a)) && !s.contentDOM ? I.isSelectable(o) ? sr(r, new I(e < 0 ? r.state.doc.resolve(i.pos - o.nodeSize) : i)) : Ko ? sr(r, new
|
|
4914
|
+
return o.isAtom || (s = r.docView.descAt(a)) && !s.contentDOM ? I.isSelectable(o) ? sr(r, new I(e < 0 ? r.state.doc.resolve(i.pos - o.nodeSize) : i)) : Ko ? sr(r, new L(r.state.doc.resolve(e < 0 ? a : a + o.nodeSize))) : !1 : !1;
|
|
4915
4915
|
}
|
|
4916
4916
|
} else {
|
|
4917
4917
|
if (n instanceof I && n.node.isInline)
|
|
4918
|
-
return sr(r, new
|
|
4918
|
+
return sr(r, new L(e > 0 ? n.$to : n.$from));
|
|
4919
4919
|
{
|
|
4920
4920
|
let i = Ua(r.state, e);
|
|
4921
4921
|
return i ? sr(r, i) : !1;
|
|
@@ -5015,7 +5015,7 @@ function Ka(r, e, t, n) {
|
|
|
5015
5015
|
}
|
|
5016
5016
|
function Au(r, e, t) {
|
|
5017
5017
|
let n = r.state.selection;
|
|
5018
|
-
if (n instanceof
|
|
5018
|
+
if (n instanceof L && !n.empty || t.indexOf("s") > -1 || Be && t.indexOf("m") > -1)
|
|
5019
5019
|
return !1;
|
|
5020
5020
|
let { $from: i, $to: o } = n;
|
|
5021
5021
|
if (!i.parent.inlineContent || r.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
@@ -5024,13 +5024,13 @@ function Au(r, e, t) {
|
|
|
5024
5024
|
return sr(r, s);
|
|
5025
5025
|
}
|
|
5026
5026
|
if (!i.parent.inlineContent) {
|
|
5027
|
-
let s = e < 0 ? i : o, a = n instanceof
|
|
5027
|
+
let s = e < 0 ? i : o, a = n instanceof Ze ? P.near(s, e) : P.findFrom(s, e);
|
|
5028
5028
|
return a ? sr(r, a) : !1;
|
|
5029
5029
|
}
|
|
5030
5030
|
return !1;
|
|
5031
5031
|
}
|
|
5032
5032
|
function Tu(r, e) {
|
|
5033
|
-
if (!(r.state.selection instanceof
|
|
5033
|
+
if (!(r.state.selection instanceof L))
|
|
5034
5034
|
return !0;
|
|
5035
5035
|
let { $head: t, $anchor: n, empty: i } = r.state.selection;
|
|
5036
5036
|
if (!t.sameParent(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");
|
|
@@ -5314,7 +5314,7 @@ _e.keypress = (r, e) => {
|
|
|
5314
5314
|
return;
|
|
5315
5315
|
}
|
|
5316
5316
|
let n = r.state.selection;
|
|
5317
|
-
if (!(n instanceof
|
|
5317
|
+
if (!(n instanceof L) || !n.$from.sameParent(n.$to)) {
|
|
5318
5318
|
let i = String.fromCharCode(t.charCode);
|
|
5319
5319
|
r.someProp("handleTextInput", (o) => o(r, n.$from.pos, n.$to.pos, i)) || r.dispatch(r.state.tr.insertText(i).scrollIntoView()), t.preventDefault();
|
|
5320
5320
|
}
|
|
@@ -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, L.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, L.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
|
|
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 L) && 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,12 +6237,12 @@ 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
|
}
|
|
6244
6244
|
if (!h)
|
|
6245
|
-
if (n && a instanceof
|
|
6245
|
+
if (n && a instanceof L && !a.empty && a.$head.sameParent(a.$anchor) && !r.composing && !(l.sel && l.sel.anchor != l.sel.head))
|
|
6246
6246
|
h = { start: a.from, endA: a.to, endB: a.to };
|
|
6247
6247
|
else {
|
|
6248
6248
|
if (l.sel) {
|
|
@@ -6251,19 +6251,19 @@ function vb(r, e, t, n, i) {
|
|
|
6251
6251
|
}
|
|
6252
6252
|
return;
|
|
6253
6253
|
}
|
|
6254
|
-
r.input.domChangeCount++, r.state.selection.from < r.state.selection.to && h.start == h.endB && r.state.selection instanceof
|
|
6254
|
+
r.input.domChangeCount++, r.state.selection.from < r.state.selection.to && h.start == h.endB && r.state.selection instanceof L && (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;
|
|
@@ -6813,14 +6813,14 @@ const zb = (r, e) => {
|
|
|
6813
6813
|
return !0;
|
|
6814
6814
|
}, jb = (r, e) => {
|
|
6815
6815
|
let t = r.selection, { $from: n, $to: i } = t;
|
|
6816
|
-
if (t instanceof
|
|
6816
|
+
if (t instanceof Ze || n.parent.inlineContent || i.parent.inlineContent)
|
|
6817
6817
|
return !1;
|
|
6818
6818
|
let o = Dm(i.parent.contentMatchAt(i.indexAfter()));
|
|
6819
6819
|
if (!o || !o.isTextblock)
|
|
6820
6820
|
return !1;
|
|
6821
6821
|
if (e) {
|
|
6822
6822
|
let s = (!n.parentOffset && i.index() < i.parent.childCount ? n : i).pos, a = r.tr.insert(s, o.createAndFill());
|
|
6823
|
-
a.setSelection(
|
|
6823
|
+
a.setSelection(L.create(a.doc, s + 1)), e(a.scrollIntoView());
|
|
6824
6824
|
}
|
|
6825
6825
|
return !0;
|
|
6826
6826
|
}, Vb = (r, e) => {
|
|
@@ -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);
|
|
@@ -6891,7 +6891,7 @@ function xm(r) {
|
|
|
6891
6891
|
return !1;
|
|
6892
6892
|
o--;
|
|
6893
6893
|
}
|
|
6894
|
-
return i.node(o).isTextblock ? (t && t(e.tr.setSelection(
|
|
6894
|
+
return i.node(o).isTextblock ? (t && t(e.tr.setSelection(L.create(e.doc, r < 0 ? i.start(o) : i.end(o)))), !0) : !1;
|
|
6895
6895
|
};
|
|
6896
6896
|
}
|
|
6897
6897
|
const qb = xm(-1), Ub = xm(1);
|
|
@@ -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,
|
|
@@ -7725,7 +7725,7 @@ const p1 = te.create({
|
|
|
7725
7725
|
addProseMirrorPlugins() {
|
|
7726
7726
|
return [
|
|
7727
7727
|
new Te({
|
|
7728
|
-
key: new
|
|
7728
|
+
key: new rt("clipboardTextSerializer"),
|
|
7729
7729
|
props: {
|
|
7730
7730
|
clipboardTextSerializer: () => {
|
|
7731
7731
|
const { editor: r } = this, { state: e, schema: t } = r, { doc: n, selection: i } = e, { ranges: o } = i, s = Math.min(...o.map((c) => c.$from.pos)), a = Math.max(...o.map((c) => c.$to.pos)), l = Am(t);
|
|
@@ -7814,7 +7814,7 @@ const C1 = (r, e = {}) => ({ tr: t, state: n, dispatch: i }) => {
|
|
|
7814
7814
|
if (i) {
|
|
7815
7815
|
const f = zl(l, o, e);
|
|
7816
7816
|
if (f && f.from <= u && f.to >= c) {
|
|
7817
|
-
const d =
|
|
7817
|
+
const d = L.create(s, f.from, f.to);
|
|
7818
7818
|
t.setSelection(d);
|
|
7819
7819
|
}
|
|
7820
7820
|
}
|
|
@@ -7834,7 +7834,7 @@ function A1(r) {
|
|
|
7834
7834
|
return r && typeof r == "object" && !Array.isArray(r) && !k1(r);
|
|
7835
7835
|
}
|
|
7836
7836
|
function T1(r) {
|
|
7837
|
-
return A1(r) && r instanceof
|
|
7837
|
+
return A1(r) && r instanceof L;
|
|
7838
7838
|
}
|
|
7839
7839
|
function ur(r = 0, e = 0, t = 0) {
|
|
7840
7840
|
return Math.min(Math.max(r, e), t);
|
|
@@ -7848,7 +7848,7 @@ function Tm(r, e = null) {
|
|
|
7848
7848
|
if (e === "end")
|
|
7849
7849
|
return n;
|
|
7850
7850
|
const i = t.from, o = n.to;
|
|
7851
|
-
return e === "all" ?
|
|
7851
|
+
return e === "all" ? L.create(r, ur(0, i, o), ur(r.content.size, i, o)) : L.create(r, ur(e, i, o), ur(e, i, o));
|
|
7852
7852
|
}
|
|
7853
7853
|
function jl() {
|
|
7854
7854
|
return [
|
|
@@ -8071,7 +8071,7 @@ const e_ = (r, e = {}) => ({ tr: t, state: n, dispatch: i }) => {
|
|
|
8071
8071
|
return !0;
|
|
8072
8072
|
}, i_ = (r) => ({ tr: e, dispatch: t }) => {
|
|
8073
8073
|
if (t) {
|
|
8074
|
-
const { doc: n } = e, { from: i, to: o } = typeof r == "number" ? { from: r, to: r } : r, s =
|
|
8074
|
+
const { doc: n } = e, { from: i, to: o } = typeof r == "number" ? { from: r, to: r } : r, s = L.atStart(n).from, a = L.atEnd(n).to, l = ur(i, s, a), u = ur(o, s, a), c = L.create(n, l, u);
|
|
8075
8075
|
e.setSelection(c);
|
|
8076
8076
|
}
|
|
8077
8077
|
return !0;
|
|
@@ -8103,18 +8103,18 @@ 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) {
|
|
8110
8110
|
const f = l.parentOffset === l.parent.content.size;
|
|
8111
|
-
o instanceof
|
|
8111
|
+
o instanceof L && e.deleteSelection();
|
|
8112
8112
|
const d = a.depth === 0 ? void 0 : s_(a.node(-1).contentMatchAt(a.indexAfter(-1)));
|
|
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)) {
|
|
@@ -8150,14 +8150,14 @@ const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
8150
8150
|
if (b > -1)
|
|
8151
8151
|
return !1;
|
|
8152
8152
|
C.isTextblock && C.content.size === 0 && (b = E + 1);
|
|
8153
|
-
}), b > -1 && e.setSelection(
|
|
8153
|
+
}), b > -1 && e.setSelection(L.near(e.doc.resolve(b))), e.scrollIntoView();
|
|
8154
8154
|
}
|
|
8155
8155
|
return !0;
|
|
8156
8156
|
}
|
|
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) {
|
|
@@ -8379,7 +8379,7 @@ const S_ = te.create({
|
|
|
8379
8379
|
addProseMirrorPlugins() {
|
|
8380
8380
|
return [
|
|
8381
8381
|
new Te({
|
|
8382
|
-
key: new
|
|
8382
|
+
key: new rt("editable"),
|
|
8383
8383
|
props: {
|
|
8384
8384
|
editable: () => this.editor.options.editable
|
|
8385
8385
|
}
|
|
@@ -8392,7 +8392,7 @@ const S_ = te.create({
|
|
|
8392
8392
|
const { editor: r } = this;
|
|
8393
8393
|
return [
|
|
8394
8394
|
new Te({
|
|
8395
|
-
key: new
|
|
8395
|
+
key: new rt("focusEvents"),
|
|
8396
8396
|
props: {
|
|
8397
8397
|
handleDOMEvents: {
|
|
8398
8398
|
focus: (e, t) => {
|
|
@@ -8458,7 +8458,7 @@ const S_ = te.create({
|
|
|
8458
8458
|
addProseMirrorPlugins() {
|
|
8459
8459
|
return [
|
|
8460
8460
|
new Te({
|
|
8461
|
-
key: new
|
|
8461
|
+
key: new rt("clearDocument"),
|
|
8462
8462
|
appendTransaction: (r, e, t) => {
|
|
8463
8463
|
if (!(r.some((p) => p.docChanged) && !e.doc.eq(t.doc)))
|
|
8464
8464
|
return;
|
|
@@ -8483,7 +8483,7 @@ const S_ = te.create({
|
|
|
8483
8483
|
addProseMirrorPlugins() {
|
|
8484
8484
|
return [
|
|
8485
8485
|
new Te({
|
|
8486
|
-
key: new
|
|
8486
|
+
key: new rt("tabindex"),
|
|
8487
8487
|
props: {
|
|
8488
8488
|
attributes: this.editor.isEditable ? { tabindex: "0" } : {}
|
|
8489
8489
|
}
|
|
@@ -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
|
})
|
|
@@ -9006,7 +9006,7 @@ var Ce = "top", Ve = "bottom", He = "right", Oe = "left", ts = "auto", fi = [Ce,
|
|
|
9006
9006
|
function _t(r) {
|
|
9007
9007
|
return r ? (r.nodeName || "").toLowerCase() : null;
|
|
9008
9008
|
}
|
|
9009
|
-
function
|
|
9009
|
+
function nt(r) {
|
|
9010
9010
|
if (r == null)
|
|
9011
9011
|
return window;
|
|
9012
9012
|
if (r.toString() !== "[object Window]") {
|
|
@@ -9016,17 +9016,17 @@ function rt(r) {
|
|
|
9016
9016
|
return r;
|
|
9017
9017
|
}
|
|
9018
9018
|
function un(r) {
|
|
9019
|
-
var e =
|
|
9019
|
+
var e = nt(r).Element;
|
|
9020
9020
|
return r instanceof e || r instanceof Element;
|
|
9021
9021
|
}
|
|
9022
9022
|
function Ne(r) {
|
|
9023
|
-
var e =
|
|
9023
|
+
var e = nt(r).HTMLElement;
|
|
9024
9024
|
return r instanceof e || r instanceof HTMLElement;
|
|
9025
9025
|
}
|
|
9026
9026
|
function Hl(r) {
|
|
9027
9027
|
if (typeof ShadowRoot > "u")
|
|
9028
9028
|
return !1;
|
|
9029
|
-
var e =
|
|
9029
|
+
var e = nt(r).ShadowRoot;
|
|
9030
9030
|
return r instanceof e || r instanceof ShadowRoot;
|
|
9031
9031
|
}
|
|
9032
9032
|
function eS(r) {
|
|
@@ -9071,7 +9071,7 @@ const rS = {
|
|
|
9071
9071
|
effect: tS,
|
|
9072
9072
|
requires: ["computeStyles"]
|
|
9073
9073
|
};
|
|
9074
|
-
function
|
|
9074
|
+
function et(r) {
|
|
9075
9075
|
return r.split("-")[0];
|
|
9076
9076
|
}
|
|
9077
9077
|
var mr = Math.max, mo = Math.min, fn = Math.round;
|
|
@@ -9116,8 +9116,8 @@ function Pm(r, e) {
|
|
|
9116
9116
|
}
|
|
9117
9117
|
return !1;
|
|
9118
9118
|
}
|
|
9119
|
-
function
|
|
9120
|
-
return
|
|
9119
|
+
function tt(r) {
|
|
9120
|
+
return nt(r).getComputedStyle(r);
|
|
9121
9121
|
}
|
|
9122
9122
|
function nS(r) {
|
|
9123
9123
|
return ["table", "td", "th"].indexOf(_t(r)) >= 0;
|
|
@@ -9129,18 +9129,18 @@ function rs(r) {
|
|
|
9129
9129
|
return _t(r) === "html" ? r : r.assignedSlot || r.parentNode || (Hl(r) ? r.host : null) || Zt(r);
|
|
9130
9130
|
}
|
|
9131
9131
|
function tf(r) {
|
|
9132
|
-
return !Ne(r) ||
|
|
9132
|
+
return !Ne(r) || tt(r).position === "fixed" ? null : r.offsetParent;
|
|
9133
9133
|
}
|
|
9134
9134
|
function iS(r) {
|
|
9135
9135
|
var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, t = navigator.userAgent.indexOf("Trident") !== -1;
|
|
9136
9136
|
if (t && Ne(r)) {
|
|
9137
|
-
var n =
|
|
9137
|
+
var n = tt(r);
|
|
9138
9138
|
if (n.position === "fixed")
|
|
9139
9139
|
return null;
|
|
9140
9140
|
}
|
|
9141
9141
|
var i = rs(r);
|
|
9142
9142
|
for (Hl(i) && (i = i.host); Ne(i) && ["html", "body"].indexOf(_t(i)) < 0; ) {
|
|
9143
|
-
var o =
|
|
9143
|
+
var o = tt(i);
|
|
9144
9144
|
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
|
|
9145
9145
|
return i;
|
|
9146
9146
|
i = i.parentNode;
|
|
@@ -9148,9 +9148,9 @@ function iS(r) {
|
|
|
9148
9148
|
return null;
|
|
9149
9149
|
}
|
|
9150
9150
|
function di(r) {
|
|
9151
|
-
for (var e =
|
|
9151
|
+
for (var e = nt(r), t = tf(r); t && nS(t) && tt(t).position === "static"; )
|
|
9152
9152
|
t = tf(t);
|
|
9153
|
-
return t && (_t(t) === "html" || _t(t) === "body" &&
|
|
9153
|
+
return t && (_t(t) === "html" || _t(t) === "body" && tt(t).position === "static") ? e : t || iS(r) || e;
|
|
9154
9154
|
}
|
|
9155
9155
|
function ql(r) {
|
|
9156
9156
|
return ["top", "bottom"].indexOf(r) >= 0 ? "x" : "y";
|
|
@@ -9184,7 +9184,7 @@ var sS = function(e, t) {
|
|
|
9184
9184
|
})) : e, Lm(typeof e != "number" ? e : zm(e, fi));
|
|
9185
9185
|
};
|
|
9186
9186
|
function aS(r) {
|
|
9187
|
-
var e, t = r.state, n = r.name, i = r.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, a =
|
|
9187
|
+
var e, t = r.state, n = r.name, i = r.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, a = et(t.placement), l = ql(a), u = [Oe, He].indexOf(a) >= 0, c = u ? "height" : "width";
|
|
9188
9188
|
if (!(!o || !s)) {
|
|
9189
9189
|
var f = sS(i.padding, t), d = Wl(o), h = l === "y" ? Ce : Oe, p = l === "y" ? Ve : He, m = t.rects.reference[c] + t.rects.reference[l] - s[l] - t.rects.popper[c], v = s[l] - t.rects.reference[l], g = di(o), y = g ? l === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, D = m / 2 - v / 2, _ = f[h], x = y - d[c] - f[p], b = y / 2 - d[c] / 2 + D, C = qn(_, b, x), E = l;
|
|
9190
9190
|
t.modifiersData[n] = (e = {}, e[E] = C, e.centerOffset = C - b, e);
|
|
@@ -9237,7 +9237,7 @@ function rf(r) {
|
|
|
9237
9237
|
var g = s.hasOwnProperty("x"), y = s.hasOwnProperty("y"), D = Oe, _ = Ce, x = window;
|
|
9238
9238
|
if (u) {
|
|
9239
9239
|
var b = di(t), C = "clientHeight", E = "clientWidth";
|
|
9240
|
-
if (b ===
|
|
9240
|
+
if (b === nt(t) && (b = Zt(t), tt(b).position !== "static" && a === "absolute" && (C = "scrollHeight", E = "scrollWidth")), b = b, i === Ce || (i === Oe || i === He) && o === ii) {
|
|
9241
9241
|
_ = Ve;
|
|
9242
9242
|
var F = f && b === x && x.visualViewport ? x.visualViewport.height : b[C];
|
|
9243
9243
|
m -= F - n.height, m *= l ? 1 : -1;
|
|
@@ -9266,7 +9266,7 @@ function rf(r) {
|
|
|
9266
9266
|
function dS(r) {
|
|
9267
9267
|
var e = r.state, t = r.options, n = t.gpuAcceleration, i = n === void 0 ? !0 : n, o = t.adaptive, s = o === void 0 ? !0 : o, a = t.roundOffsets, l = a === void 0 ? !0 : a;
|
|
9268
9268
|
if (process.env.NODE_ENV !== "production") {
|
|
9269
|
-
var u =
|
|
9269
|
+
var u = tt(e.elements.popper).transitionProperty || "";
|
|
9270
9270
|
s && ["transform", "top", "right", "bottom", "left"].some(function(f) {
|
|
9271
9271
|
return u.indexOf(f) >= 0;
|
|
9272
9272
|
}) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
|
|
@@ -9276,7 +9276,7 @@ function dS(r) {
|
|
|
9276
9276
|
`, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
|
|
9277
9277
|
}
|
|
9278
9278
|
var c = {
|
|
9279
|
-
placement:
|
|
9279
|
+
placement: et(e.placement),
|
|
9280
9280
|
variation: hn(e.placement),
|
|
9281
9281
|
popper: e.elements.popper,
|
|
9282
9282
|
popperRect: e.rects.popper,
|
|
@@ -9308,7 +9308,7 @@ var xi = {
|
|
|
9308
9308
|
passive: !0
|
|
9309
9309
|
};
|
|
9310
9310
|
function pS(r) {
|
|
9311
|
-
var e = r.state, t = r.instance, n = r.options, i = n.scroll, o = i === void 0 ? !0 : i, s = n.resize, a = s === void 0 ? !0 : s, l =
|
|
9311
|
+
var e = r.state, t = r.instance, n = r.options, i = n.scroll, o = i === void 0 ? !0 : i, s = n.resize, a = s === void 0 ? !0 : s, l = nt(e.elements.popper), u = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
9312
9312
|
return o && u.forEach(function(c) {
|
|
9313
9313
|
c.addEventListener("scroll", t.update, xi);
|
|
9314
9314
|
}), a && l.addEventListener("resize", t.update, xi), function() {
|
|
@@ -9347,7 +9347,7 @@ function nf(r) {
|
|
|
9347
9347
|
});
|
|
9348
9348
|
}
|
|
9349
9349
|
function Ul(r) {
|
|
9350
|
-
var e =
|
|
9350
|
+
var e = nt(r), t = e.pageXOffset, n = e.pageYOffset;
|
|
9351
9351
|
return {
|
|
9352
9352
|
scrollLeft: t,
|
|
9353
9353
|
scrollTop: n
|
|
@@ -9357,7 +9357,7 @@ function Kl(r) {
|
|
|
9357
9357
|
return dn(Zt(r)).left + Ul(r).scrollLeft;
|
|
9358
9358
|
}
|
|
9359
9359
|
function yS(r) {
|
|
9360
|
-
var e =
|
|
9360
|
+
var e = nt(r), t = Zt(r), n = e.visualViewport, i = t.clientWidth, o = t.clientHeight, s = 0, a = 0;
|
|
9361
9361
|
return n && (i = n.width, o = n.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (s = n.offsetLeft, a = n.offsetTop)), {
|
|
9362
9362
|
width: i,
|
|
9363
9363
|
height: o,
|
|
@@ -9367,7 +9367,7 @@ function yS(r) {
|
|
|
9367
9367
|
}
|
|
9368
9368
|
function bS(r) {
|
|
9369
9369
|
var e, t = Zt(r), n = Ul(r), i = (e = r.ownerDocument) == null ? void 0 : e.body, o = mr(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), s = mr(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), a = -n.scrollLeft + Kl(r), l = -n.scrollTop;
|
|
9370
|
-
return
|
|
9370
|
+
return tt(i || t).direction === "rtl" && (a += mr(t.clientWidth, i ? i.clientWidth : 0) - o), {
|
|
9371
9371
|
width: o,
|
|
9372
9372
|
height: s,
|
|
9373
9373
|
x: a,
|
|
@@ -9375,7 +9375,7 @@ function bS(r) {
|
|
|
9375
9375
|
};
|
|
9376
9376
|
}
|
|
9377
9377
|
function Gl(r) {
|
|
9378
|
-
var e =
|
|
9378
|
+
var e = tt(r), t = e.overflow, n = e.overflowX, i = e.overflowY;
|
|
9379
9379
|
return /auto|scroll|overlay|hidden/.test(t + i + n);
|
|
9380
9380
|
}
|
|
9381
9381
|
function jm(r) {
|
|
@@ -9384,7 +9384,7 @@ function jm(r) {
|
|
|
9384
9384
|
function Un(r, e) {
|
|
9385
9385
|
var t;
|
|
9386
9386
|
e === void 0 && (e = []);
|
|
9387
|
-
var n = jm(r), i = n === ((t = r.ownerDocument) == null ? void 0 : t.body), o =
|
|
9387
|
+
var n = jm(r), i = n === ((t = r.ownerDocument) == null ? void 0 : t.body), o = nt(n), s = i ? [o].concat(o.visualViewport || [], Gl(n) ? n : []) : n, a = e.concat(s);
|
|
9388
9388
|
return i ? a : a.concat(Un(rs(s)));
|
|
9389
9389
|
}
|
|
9390
9390
|
function rl(r) {
|
|
@@ -9403,7 +9403,7 @@ function of(r, e) {
|
|
|
9403
9403
|
return e === Nm ? rl(yS(r)) : un(e) ? _S(e) : rl(bS(Zt(r)));
|
|
9404
9404
|
}
|
|
9405
9405
|
function SS(r) {
|
|
9406
|
-
var e = Un(rs(r)), t = ["absolute", "fixed"].indexOf(
|
|
9406
|
+
var e = Un(rs(r)), t = ["absolute", "fixed"].indexOf(tt(r).position) >= 0, n = t && Ne(r) ? di(r) : r;
|
|
9407
9407
|
return un(n) ? e.filter(function(i) {
|
|
9408
9408
|
return un(i) && Pm(i, n) && _t(i) !== "body";
|
|
9409
9409
|
}) : [];
|
|
@@ -9416,7 +9416,7 @@ function ES(r, e, t) {
|
|
|
9416
9416
|
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
9417
9417
|
}
|
|
9418
9418
|
function Vm(r) {
|
|
9419
|
-
var e = r.reference, t = r.element, n = r.placement, i = n ?
|
|
9419
|
+
var e = r.reference, t = r.element, n = r.placement, i = n ? et(n) : null, o = n ? hn(n) : null, s = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, l;
|
|
9420
9420
|
switch (i) {
|
|
9421
9421
|
case Ce:
|
|
9422
9422
|
l = {
|
|
@@ -9498,14 +9498,14 @@ function DS(r, e) {
|
|
|
9498
9498
|
boundary: i,
|
|
9499
9499
|
rootBoundary: o,
|
|
9500
9500
|
padding: s
|
|
9501
|
-
})[
|
|
9501
|
+
})[et(m)], p;
|
|
9502
9502
|
}, {});
|
|
9503
9503
|
return Object.keys(h).sort(function(p, m) {
|
|
9504
9504
|
return h[p] - h[m];
|
|
9505
9505
|
});
|
|
9506
9506
|
}
|
|
9507
9507
|
function wS(r) {
|
|
9508
|
-
if (
|
|
9508
|
+
if (et(r) === ts)
|
|
9509
9509
|
return [];
|
|
9510
9510
|
var e = qi(r);
|
|
9511
9511
|
return [nf(r), e, nf(e)];
|
|
@@ -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 =
|
|
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 = et(v), y = g === v, D = l || (y || !p ? [qi(v)] : wS(v)), _ = [v].concat(D).reduce(function($r, Tt) {
|
|
9517
|
+
return $r.concat(et(Tt) === ts ? DS(e, {
|
|
9518
9518
|
placement: Tt,
|
|
9519
9519
|
boundary: c,
|
|
9520
9520
|
rootBoundary: f,
|
|
@@ -9523,17 +9523,17 @@ function xS(r) {
|
|
|
9523
9523
|
allowedAutoPlacements: m
|
|
9524
9524
|
}) : Tt);
|
|
9525
9525
|
}, []), x = e.rects.reference, b = e.rects.popper, C = /* @__PURE__ */ new Map(), E = !0, F = _[0], V = 0; V < _.length; V++) {
|
|
9526
|
-
var j = _[V], Q =
|
|
9526
|
+
var j = _[V], Q = et(j), J = hn(j) === cn, at = [Ce, Ve].indexOf(Q) >= 0, Ee = at ? "width" : "height", Y = oi(e, {
|
|
9527
9527
|
placement: j,
|
|
9528
9528
|
boundary: c,
|
|
9529
9529
|
rootBoundary: f,
|
|
9530
9530
|
altBoundary: d,
|
|
9531
9531
|
padding: u
|
|
9532
|
-
}), De =
|
|
9532
|
+
}), De = at ? 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;
|
|
@@ -9609,7 +9609,7 @@ const kS = {
|
|
|
9609
9609
|
fn: OS
|
|
9610
9610
|
};
|
|
9611
9611
|
function AS(r, e, t) {
|
|
9612
|
-
var n =
|
|
9612
|
+
var n = et(r), i = [Oe, Ce].indexOf(n) >= 0 ? -1 : 1, o = typeof t == "function" ? t(Object.assign({}, e, {
|
|
9613
9613
|
placement: r
|
|
9614
9614
|
})) : t, s = o[0], a = o[1];
|
|
9615
9615
|
return s = s || 0, a = (a || 0) * i, [Oe, He].indexOf(n) >= 0 ? {
|
|
@@ -9658,7 +9658,7 @@ function NS(r) {
|
|
|
9658
9658
|
rootBoundary: u,
|
|
9659
9659
|
padding: f,
|
|
9660
9660
|
altBoundary: c
|
|
9661
|
-
}), g =
|
|
9661
|
+
}), g = et(e.placement), y = hn(e.placement), D = !y, _ = ql(g), x = IS(_), b = e.modifiersData.popperOffsets, C = e.rects.reference, E = e.rects.popper, F = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
9662
9662
|
placement: e.placement
|
|
9663
9663
|
})) : m, V = typeof F == "number" ? {
|
|
9664
9664
|
mainAxis: F,
|
|
@@ -9672,10 +9672,10 @@ function NS(r) {
|
|
|
9672
9672
|
};
|
|
9673
9673
|
if (!!b) {
|
|
9674
9674
|
if (o) {
|
|
9675
|
-
var J,
|
|
9675
|
+
var J, at = _ === "y" ? Ce : Oe, Ee = _ === "y" ? Ve : He, Y = _ === "y" ? "height" : "width", De = b[_], Mr = De + v[at], 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[
|
|
9678
|
+
}, Tt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Bm(), xn = Tt[at], _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) {
|
|
@@ -9699,7 +9699,7 @@ function PS(r) {
|
|
|
9699
9699
|
};
|
|
9700
9700
|
}
|
|
9701
9701
|
function BS(r) {
|
|
9702
|
-
return r ===
|
|
9702
|
+
return r === nt(r) || !Ne(r) ? Ul(r) : PS(r);
|
|
9703
9703
|
}
|
|
9704
9704
|
function LS(r) {
|
|
9705
9705
|
var e = r.getBoundingClientRect(), t = fn(e.width) / r.offsetWidth || 1, n = fn(e.height) / r.offsetHeight || 1;
|
|
@@ -9873,14 +9873,14 @@ function JS(r) {
|
|
|
9873
9873
|
var Q = j.name;
|
|
9874
9874
|
return Q;
|
|
9875
9875
|
});
|
|
9876
|
-
if (qS(_),
|
|
9876
|
+
if (qS(_), et(c.options.placement) === ts) {
|
|
9877
9877
|
var x = c.orderedModifiers.find(function(j) {
|
|
9878
9878
|
var Q = j.name;
|
|
9879
9879
|
return Q === "flip";
|
|
9880
9880
|
});
|
|
9881
9881
|
x || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
9882
9882
|
}
|
|
9883
|
-
var b =
|
|
9883
|
+
var b = tt(l), C = b.marginTop, E = b.marginRight, F = b.marginBottom, V = b.marginLeft;
|
|
9884
9884
|
[C, E, F, V].some(function(j) {
|
|
9885
9885
|
return parseFloat(j);
|
|
9886
9886
|
}) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
|
|
@@ -10012,11 +10012,11 @@ 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"
|
|
10019
|
-
}),
|
|
10019
|
+
}), Xe = Object.freeze({
|
|
10020
10020
|
LEFT: "left",
|
|
10021
10021
|
CENTER: "center",
|
|
10022
10022
|
RIGHT: "right",
|
|
@@ -10094,6 +10094,14 @@ const ZS = {
|
|
|
10094
10094
|
}), pt = Object.freeze({
|
|
10095
10095
|
URL: "url",
|
|
10096
10096
|
BLOCK: "block"
|
|
10097
|
+
}), B = Object.freeze({
|
|
10098
|
+
FONTS: Symbol("fonts"),
|
|
10099
|
+
FONT_SIZES: Symbol("fontSizes"),
|
|
10100
|
+
EDITOR: Symbol("editor"),
|
|
10101
|
+
LOCAL_STORAGE: Symbol("localStorage"),
|
|
10102
|
+
FAVORITE_COLORS: Symbol("favoriteColors"),
|
|
10103
|
+
PAGE_BLOCKS: Symbol("pageBlocks"),
|
|
10104
|
+
POPUP_MODE: Symbol("popupMode")
|
|
10097
10105
|
});
|
|
10098
10106
|
var QS = function() {
|
|
10099
10107
|
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
@@ -10218,14 +10226,7 @@ function hE(r) {
|
|
|
10218
10226
|
}
|
|
10219
10227
|
const pE = /* @__PURE__ */ function() {
|
|
10220
10228
|
return dE.exports;
|
|
10221
|
-
}()
|
|
10222
|
-
FONTS: Symbol("fonts"),
|
|
10223
|
-
FONT_SIZES: Symbol("fontSizes"),
|
|
10224
|
-
EDITOR: Symbol("editor"),
|
|
10225
|
-
LOCAL_STORAGE: Symbol("localStorage"),
|
|
10226
|
-
FAVORITE_COLORS: Symbol("favoriteColors"),
|
|
10227
|
-
PAGE_BLOCKS: Symbol("pageBlocks")
|
|
10228
|
-
});
|
|
10229
|
+
}();
|
|
10229
10230
|
var mE = function() {
|
|
10230
10231
|
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
10231
10232
|
return n("button", {
|
|
@@ -10351,7 +10352,7 @@ function Jl(r) {
|
|
|
10351
10352
|
}, "");
|
|
10352
10353
|
return e ? { style: e } : null;
|
|
10353
10354
|
}
|
|
10354
|
-
function
|
|
10355
|
+
function xr(r) {
|
|
10355
10356
|
const e = Jl(r);
|
|
10356
10357
|
return ["span", e ? { ...e, class: "zw-style" } : {}, 0];
|
|
10357
10358
|
}
|
|
@@ -10381,12 +10382,12 @@ function kE(r, e, t) {
|
|
|
10381
10382
|
return (parseInt(r) / i).toFixed(2);
|
|
10382
10383
|
}
|
|
10383
10384
|
const AE = {
|
|
10384
|
-
start:
|
|
10385
|
-
end:
|
|
10385
|
+
start: Xe.LEFT,
|
|
10386
|
+
end: Xe.RIGHT
|
|
10386
10387
|
};
|
|
10387
10388
|
function TE(r) {
|
|
10388
10389
|
const e = AE[r] || r;
|
|
10389
|
-
return
|
|
10390
|
+
return Xe.values.includes(e) ? e : null;
|
|
10390
10391
|
}
|
|
10391
10392
|
const ME = `<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">
|
|
10392
10393
|
<path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M23 7H5v2h18V7Zm-3 4H8v2h12v-2Zm3 4H5v2h18v-2ZM8 19h12v2H8v-2Z" clip-rule="evenodd"/>
|
|
@@ -10404,15 +10405,15 @@ const ME = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var
|
|
|
10404
10405
|
<path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="m4 6.934 4-5H0l4 5Z" clip-rule="evenodd"/>
|
|
10405
10406
|
</svg>
|
|
10406
10407
|
`, 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="
|
|
10408
|
+
<path fill="#fff" stroke="#B3B3B3" d="M4.5 4.5h19v19h-19z"/>
|
|
10409
|
+
<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"/>
|
|
10410
|
+
<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
10411
|
</svg>
|
|
10409
10412
|
`, 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
10413
|
<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
10414
|
</svg>
|
|
10412
10415
|
`, 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"/>
|
|
10416
|
+
<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
10417
|
</svg>
|
|
10417
10418
|
`, 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
10419
|
<path fill="var(--zw-icon-foreground)" d="M18 9V7h-7v2h2.64l-1.22 10H10v2h7v-2h-2.83L15.4 9H18Z"/>
|
|
@@ -10567,7 +10568,7 @@ var G = function(r) {
|
|
|
10567
10568
|
return r;
|
|
10568
10569
|
}, mD = gn, vD = Object, yn = function(r) {
|
|
10569
10570
|
return vD(mD(r));
|
|
10570
|
-
}, gD = U, yD = yn, bD = gD({}.hasOwnProperty),
|
|
10571
|
+
}, gD = U, yD = yn, bD = gD({}.hasOwnProperty), it = Object.hasOwn || function(e, t) {
|
|
10571
10572
|
return bD(yD(e), t);
|
|
10572
10573
|
}, _D = U, SD = 0, ED = Math.random(), DD = _D(1 .toString), Zl = function(r) {
|
|
10573
10574
|
return "Symbol(" + (r === void 0 ? "" : r) + ")_" + DD(++SD + ED, 36);
|
|
@@ -10577,21 +10578,21 @@ var G = function(r) {
|
|
|
10577
10578
|
return wD(r) ? r : void 0;
|
|
10578
10579
|
}, hi = function(r, e) {
|
|
10579
10580
|
return arguments.length < 2 ? xD(Hs[r]) : Hs[r] && Hs[r][e];
|
|
10580
|
-
}, CD = hi, OD = CD("navigator", "userAgent") || "", Ym = le, Ws = OD, Sf = Ym.process, Ef = Ym.Deno, Df = Sf && Sf.versions || Ef && Ef.version, wf = Df && Df.v8,
|
|
10581
|
-
wf && (
|
|
10582
|
-
!go && Ws && (
|
|
10581
|
+
}, CD = hi, OD = CD("navigator", "userAgent") || "", Ym = le, Ws = OD, Sf = Ym.process, Ef = Ym.Deno, Df = Sf && Sf.versions || Ef && Ef.version, wf = Df && Df.v8, Ge, go;
|
|
10582
|
+
wf && (Ge = wf.split("."), go = Ge[0] > 0 && Ge[0] < 4 ? 1 : +(Ge[0] + Ge[1]));
|
|
10583
|
+
!go && Ws && (Ge = Ws.match(/Edge\/(\d+)/), (!Ge || Ge[1] >= 74) && (Ge = Ws.match(/Chrome\/(\d+)/), Ge && (go = +Ge[1])));
|
|
10583
10584
|
var Ql = go, xf = Ql, kD = G, Xm = !!Object.getOwnPropertySymbols && !kD(function() {
|
|
10584
10585
|
var r = Symbol();
|
|
10585
10586
|
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 =
|
|
10587
|
-
if (!Cf(
|
|
10587
|
+
}), AD = Xm, Zm = AD && !Symbol.sham && typeof Symbol.iterator == "symbol", TD = le, MD = ns.exports, Cf = it, $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) {
|
|
10588
|
+
if (!Cf(Nr, r) || !(Of || typeof Nr[r] == "string")) {
|
|
10588
10589
|
var e = "Symbol." + r;
|
|
10589
|
-
Of && Cf(vr, r) ?
|
|
10590
|
+
Of && Cf(vr, r) ? Nr[r] = vr[r] : Qm && kf ? Nr[r] = kf(e) : Nr[r] = FD(e);
|
|
10590
10591
|
}
|
|
10591
|
-
return
|
|
10592
|
+
return Nr[r];
|
|
10592
10593
|
}, ID = Se, ND = ID("toStringTag"), ev = {};
|
|
10593
10594
|
ev[ND] = "z";
|
|
10594
|
-
var ec = String(ev) === "[object z]",
|
|
10595
|
+
var ec = String(ev) === "[object z]", ot = {}, RD = G, st = !RD(function() {
|
|
10595
10596
|
return Object.defineProperty({}, 1, { get: function() {
|
|
10596
10597
|
return 7;
|
|
10597
10598
|
} })[1] != 7;
|
|
@@ -10599,13 +10600,13 @@ var ec = String(ev) === "[object z]", it = {}, RD = G, ot = !RD(function() {
|
|
|
10599
10600
|
return typeof r == "object" ? r !== null : PD(r);
|
|
10600
10601
|
}, BD = le, Af = We, il = BD.document, LD = Af(il) && Af(il.createElement), tc = function(r) {
|
|
10601
10602
|
return LD ? il.createElement(r) : {};
|
|
10602
|
-
}, zD =
|
|
10603
|
+
}, zD = st, jD = G, VD = tc, tv = !zD && !jD(function() {
|
|
10603
10604
|
return Object.defineProperty(VD("div"), "a", {
|
|
10604
10605
|
get: function() {
|
|
10605
10606
|
return 7;
|
|
10606
10607
|
}
|
|
10607
10608
|
}).a != 7;
|
|
10608
|
-
}), HD =
|
|
10609
|
+
}), HD = st, WD = G, rv = HD && WD(function() {
|
|
10609
10610
|
return Object.defineProperty(function() {
|
|
10610
10611
|
}, "prototype", {
|
|
10611
10612
|
value: 42,
|
|
@@ -10653,8 +10654,8 @@ var ec = String(ev) === "[object z]", it = {}, RD = G, ot = !RD(function() {
|
|
|
10653
10654
|
}, mw = pw, vw = nv, ic = function(r) {
|
|
10654
10655
|
var e = mw(r, "string");
|
|
10655
10656
|
return vw(e) ? e : e + "";
|
|
10656
|
-
}, gw =
|
|
10657
|
-
|
|
10657
|
+
}, gw = st, yw = tv, bw = rv, ki = Re, $f = ic, _w = TypeError, Gs = Object.defineProperty, Sw = Object.getOwnPropertyDescriptor, Js = "enumerable", Ys = "configurable", Xs = "writable";
|
|
10658
|
+
ot.f = gw ? bw ? function(e, t, n) {
|
|
10658
10659
|
if (ki(e), t = $f(t), ki(n), typeof e == "function" && t === "prototype" && "value" in n && Xs in n && !n[Xs]) {
|
|
10659
10660
|
var i = Sw(e, t);
|
|
10660
10661
|
i && i[Xs] && (e[t] = n.value, n = {
|
|
@@ -10674,7 +10675,7 @@ it.f = gw ? bw ? function(e, t, n) {
|
|
|
10674
10675
|
throw _w("Accessors not supported");
|
|
10675
10676
|
return "value" in n && (e[t] = n.value), e;
|
|
10676
10677
|
};
|
|
10677
|
-
var iv = { exports: {} }, ol =
|
|
10678
|
+
var iv = { exports: {} }, ol = st, Ew = it, ov = Function.prototype, Dw = ol && Object.getOwnPropertyDescriptor, oc = Ew(ov, "name"), ww = oc && function() {
|
|
10678
10679
|
}.name === "something", xw = oc && (!ol || ol && Dw(ov, "name").configurable), sc = {
|
|
10679
10680
|
EXISTS: oc,
|
|
10680
10681
|
PROPER: ww,
|
|
@@ -10690,13 +10691,13 @@ var ac = sl.inspectSource, Aw = le, Tw = re, Mw = ac, Ff = Aw.WeakMap, sv = Tw(F
|
|
|
10690
10691
|
writable: !(r & 4),
|
|
10691
10692
|
value: e
|
|
10692
10693
|
};
|
|
10693
|
-
}, $w =
|
|
10694
|
+
}, $w = st, Fw = ot, Iw = as, bn = $w ? function(r, e, t) {
|
|
10694
10695
|
return Fw.f(r, e, Iw(1, t));
|
|
10695
10696
|
} : function(r, e, t) {
|
|
10696
10697
|
return r[e] = t, r;
|
|
10697
10698
|
}, Nw = ns.exports, Rw = Zl, If = Nw("keys"), lc = function(r) {
|
|
10698
10699
|
return If[r] || (If[r] = Rw(r));
|
|
10699
|
-
}, ls = {}, Pw = sv, av = le, Zs = U, Bw = We, Lw = bn, Qs =
|
|
10700
|
+
}, ls = {}, Pw = sv, av = le, Zs = U, Bw = We, Lw = bn, Qs = it, ea = Xl, zw = lc, jw = ls, Nf = "Object already initialized", al = av.TypeError, Vw = av.WeakMap, yo, si, bo, Hw = function(r) {
|
|
10700
10701
|
return bo(r) ? si(r) : yo(r, {});
|
|
10701
10702
|
}, Ww = function(r) {
|
|
10702
10703
|
return function(e) {
|
|
@@ -10718,15 +10719,15 @@ if (Pw || ea.state) {
|
|
|
10718
10719
|
return Rf(ir, r);
|
|
10719
10720
|
};
|
|
10720
10721
|
} else {
|
|
10721
|
-
var
|
|
10722
|
-
jw[
|
|
10723
|
-
if (Qs(r,
|
|
10722
|
+
var Rr = zw("state");
|
|
10723
|
+
jw[Rr] = !0, yo = function(r, e) {
|
|
10724
|
+
if (Qs(r, Rr))
|
|
10724
10725
|
throw new al(Nf);
|
|
10725
|
-
return e.facade = r, Lw(r,
|
|
10726
|
+
return e.facade = r, Lw(r, Rr, e), e;
|
|
10726
10727
|
}, si = function(r) {
|
|
10727
|
-
return Qs(r,
|
|
10728
|
+
return Qs(r, Rr) ? r[Rr] : {};
|
|
10728
10729
|
}, bo = function(r) {
|
|
10729
|
-
return Qs(r,
|
|
10730
|
+
return Qs(r, Rr);
|
|
10730
10731
|
};
|
|
10731
10732
|
}
|
|
10732
10733
|
var _n = {
|
|
@@ -10735,7 +10736,7 @@ var _n = {
|
|
|
10735
10736
|
has: bo,
|
|
10736
10737
|
enforce: Hw,
|
|
10737
10738
|
getterFor: Ww
|
|
10738
|
-
}, Kw = G, Gw = re, Ai =
|
|
10739
|
+
}, Kw = G, Gw = re, Ai = it, ll = st, Jw = sc.CONFIGURABLE, Yw = ac, lv = _n, Xw = lv.enforce, Zw = lv.get, Ui = Object.defineProperty, Qw = ll && !Kw(function() {
|
|
10739
10740
|
return Ui(function() {
|
|
10740
10741
|
}, "length", { value: 8 }).length !== 8;
|
|
10741
10742
|
}), ex = String(String).split("String"), tx = iv.exports = function(r, e, t) {
|
|
@@ -10750,7 +10751,7 @@ var _n = {
|
|
|
10750
10751
|
Function.prototype.toString = tx(function() {
|
|
10751
10752
|
return Gw(this) && Zw(this).source || Yw(this);
|
|
10752
10753
|
}, "toString");
|
|
10753
|
-
var rx = re, nx =
|
|
10754
|
+
var rx = re, nx = ot, ix = iv.exports, ox = Yl, Cr = function(r, e, t, n) {
|
|
10754
10755
|
n || (n = {});
|
|
10755
10756
|
var i = n.enumerable, o = n.name !== void 0 ? n.name : e;
|
|
10756
10757
|
if (rx(t) && ix(t, o, n), n.global)
|
|
@@ -10768,9 +10769,9 @@ var rx = re, nx = it, ix = iv.exports, ox = Yl, xr = function(r, e, t, n) {
|
|
|
10768
10769
|
});
|
|
10769
10770
|
}
|
|
10770
10771
|
return r;
|
|
10771
|
-
}, cv = U, sx = cv({}.toString), ax = cv("".slice),
|
|
10772
|
+
}, cv = U, sx = cv({}.toString), ax = cv("".slice), Or = function(r) {
|
|
10772
10773
|
return ax(sx(r), 8, -1);
|
|
10773
|
-
}, lx = ec, cx = re, Ki =
|
|
10774
|
+
}, lx = ec, cx = re, Ki = Or, ux = Se, fx = ux("toStringTag"), dx = Object, hx = Ki(function() {
|
|
10774
10775
|
return arguments;
|
|
10775
10776
|
}()) == "Arguments", px = function(r, e) {
|
|
10776
10777
|
try {
|
|
@@ -10782,7 +10783,7 @@ var rx = re, nx = it, ix = iv.exports, ox = Yl, xr = function(r, e, t, n) {
|
|
|
10782
10783
|
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
10784
|
}, mx = ec, vx = cs, gx = mx ? {}.toString : function() {
|
|
10784
10785
|
return "[object " + vx(this) + "]";
|
|
10785
|
-
}, yx = ec, bx =
|
|
10786
|
+
}, yx = ec, bx = Cr, _x = gx;
|
|
10786
10787
|
yx || bx(Object.prototype, "toString", _x, { unsafe: !0 });
|
|
10787
10788
|
var uv = {
|
|
10788
10789
|
CSSRuleList: 0,
|
|
@@ -10820,7 +10821,7 @@ var uv = {
|
|
|
10820
10821
|
return Ex(r), e === void 0 ? r : Dx ? wx(r, e) : function() {
|
|
10821
10822
|
return r.apply(e, arguments);
|
|
10822
10823
|
};
|
|
10823
|
-
}, xx = U, Cx = G, Ox =
|
|
10824
|
+
}, xx = U, Cx = G, Ox = Or, ra = Object, kx = xx("".split), us = Cx(function() {
|
|
10824
10825
|
return !ra("z").propertyIsEnumerable(0);
|
|
10825
10826
|
}) ? function(r) {
|
|
10826
10827
|
return Ox(r) == "String" ? kx(r, "") : ra(r);
|
|
@@ -10834,7 +10835,7 @@ var uv = {
|
|
|
10834
10835
|
return r > 0 ? Ix(Fx(r), 9007199254740991) : 0;
|
|
10835
10836
|
}, Nx = cc, mi = function(r) {
|
|
10836
10837
|
return Nx(r.length);
|
|
10837
|
-
}, Rx =
|
|
10838
|
+
}, Rx = Or, Px = Array.isArray || function(e) {
|
|
10838
10839
|
return Rx(e) == "Array";
|
|
10839
10840
|
}, Bx = U, Lx = G, hv = re, zx = cs, jx = hi, Vx = ac, pv = function() {
|
|
10840
10841
|
}, Hx = [], mv = jx("Reflect", "construct"), uc = /^\s*(?:class|function)\b/, Wx = Bx(uc.exec), qx = !uc.exec(pv), kn = function(e) {
|
|
@@ -10934,7 +10935,7 @@ pc.f = pC ? function(e) {
|
|
|
10934
10935
|
} : bv;
|
|
10935
10936
|
var mC = us, vC = gn, Sn = function(r) {
|
|
10936
10937
|
return mC(vC(r));
|
|
10937
|
-
}, gC =
|
|
10938
|
+
}, gC = st, yC = qe, bC = pc, _C = as, SC = Sn, EC = ic, DC = it, wC = tv, Wf = Object.getOwnPropertyDescriptor;
|
|
10938
10939
|
hc.f = gC ? Wf : function(e, t) {
|
|
10939
10940
|
if (e = SC(e), t = EC(t), wC)
|
|
10940
10941
|
try {
|
|
@@ -10963,7 +10964,7 @@ var ds = {}, xC = fs, CC = Math.max, OC = Math.min, Sv = function(r, e) {
|
|
|
10963
10964
|
}, MC = {
|
|
10964
10965
|
includes: qf(!0),
|
|
10965
10966
|
indexOf: qf(!1)
|
|
10966
|
-
}, $C = U, oa =
|
|
10967
|
+
}, $C = U, oa = it, FC = Sn, IC = MC.indexOf, NC = ls, Uf = $C([].push), Ev = function(r, e) {
|
|
10967
10968
|
var t = FC(r), n = 0, i = [], o;
|
|
10968
10969
|
for (o in t)
|
|
10969
10970
|
!oa(NC, o) && oa(t, o) && Uf(i, o);
|
|
@@ -10987,7 +10988,7 @@ vc.f = Object.getOwnPropertySymbols;
|
|
|
10987
10988
|
var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Reflect", "ownKeys") || function(e) {
|
|
10988
10989
|
var t = jC.f(HC(e)), n = VC.f;
|
|
10989
10990
|
return n ? WC(t, n(e)) : t;
|
|
10990
|
-
}, Kf =
|
|
10991
|
+
}, Kf = it, UC = qC, KC = hc, GC = ot, JC = function(r, e, t) {
|
|
10991
10992
|
for (var n = UC(e), i = GC.f, o = KC.f, s = 0; s < n.length; s++) {
|
|
10992
10993
|
var a = n[s];
|
|
10993
10994
|
!Kf(r, a) && !(t && Kf(t, a)) && i(r, a, o(e, a));
|
|
@@ -10997,7 +10998,7 @@ var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Ref
|
|
|
10997
10998
|
return t == rO ? !0 : t == tO ? !1 : XC(e) ? YC(e) : !!e;
|
|
10998
10999
|
}, QC = vi.normalize = function(r) {
|
|
10999
11000
|
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 =
|
|
11001
|
+
}, 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
11002
|
var t = r.target, n = r.global, i = r.stat, o, s, a, l, u, c;
|
|
11002
11003
|
if (n ? s = sa : i ? s = sa[t] || sO(t, {}) : s = (sa[t] || {}).prototype, s)
|
|
11003
11004
|
for (a in e) {
|
|
@@ -11008,12 +11009,12 @@ var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Ref
|
|
|
11008
11009
|
}
|
|
11009
11010
|
(r.sham || l && l.sham) && iO(u, "sham", !0), oO(s, a, u, r);
|
|
11010
11011
|
}
|
|
11011
|
-
}, cO = cs, uO = String,
|
|
11012
|
+
}, cO = cs, uO = String, kr = function(r) {
|
|
11012
11013
|
if (cO(r) === "Symbol")
|
|
11013
11014
|
throw TypeError("Cannot convert a Symbol value to a string");
|
|
11014
11015
|
return uO(r);
|
|
11015
11016
|
}, 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 =
|
|
11017
|
+
\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
11018
|
return function(e) {
|
|
11018
11019
|
var t = hO(dO(e));
|
|
11019
11020
|
return r & 1 && (t = Gf(t, mO, "")), r & 2 && (t = Gf(t, vO, "")), t;
|
|
@@ -11022,7 +11023,7 @@ var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Ref
|
|
|
11022
11023
|
start: aa(1),
|
|
11023
11024
|
end: aa(2),
|
|
11024
11025
|
trim: aa(3)
|
|
11025
|
-
}, xv = le, yO = G, bO = U, _O =
|
|
11026
|
+
}, 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
11027
|
Kn(Object(Xf));
|
|
11027
11028
|
}), wO = DO ? function(e, t) {
|
|
11028
11029
|
var n = SO(_O(e));
|
|
@@ -11033,8 +11034,8 @@ xO({ global: !0, forced: parseInt != Zf }, {
|
|
|
11033
11034
|
});
|
|
11034
11035
|
var CO = Ev, OO = mc, Ov = Object.keys || function(e) {
|
|
11035
11036
|
return CO(e, OO);
|
|
11036
|
-
}, Qf =
|
|
11037
|
-
if (Qf &&
|
|
11037
|
+
}, Qf = st, 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() {
|
|
11038
|
+
if (Qf && Pr({ b: 1 }, Pr(ed({}, "a", {
|
|
11038
11039
|
enumerable: !0,
|
|
11039
11040
|
get: function() {
|
|
11040
11041
|
ed(this, "b", {
|
|
@@ -11047,13 +11048,13 @@ var CO = Ev, OO = mc, Ov = Object.keys || function(e) {
|
|
|
11047
11048
|
var r = {}, e = {}, t = Symbol(), n = "abcdefghijklmnopqrst";
|
|
11048
11049
|
return r[t] = 7, n.split("").forEach(function(i) {
|
|
11049
11050
|
e[i] = i;
|
|
11050
|
-
}),
|
|
11051
|
+
}), Pr({}, r)[t] != 7 || la(Pr({}, e)).join("") != n;
|
|
11051
11052
|
}) ? function(e, t) {
|
|
11052
11053
|
for (var n = FO(e), i = arguments.length, o = 1, s = MO.f, a = $O.f; i > o; )
|
|
11053
11054
|
for (var l = IO(arguments[o++]), u = s ? NO(la(l), s(l)) : la(l), c = u.length, f = 0, d; c > f; )
|
|
11054
11055
|
d = u[f++], (!Qf || AO(a, l, d)) && (n[d] = l[d]);
|
|
11055
11056
|
return n;
|
|
11056
|
-
} :
|
|
11057
|
+
} : Pr, PO = Qt, td = RO;
|
|
11057
11058
|
PO({ target: "Object", stat: !0, arity: 2, forced: Object.assign !== td }, {
|
|
11058
11059
|
assign: td
|
|
11059
11060
|
});
|
|
@@ -11070,7 +11071,7 @@ HO({ target: "Array", proto: !0, forced: !UO }, {
|
|
|
11070
11071
|
return WO(this, e, arguments.length > 1 ? arguments[1] : void 0);
|
|
11071
11072
|
}
|
|
11072
11073
|
});
|
|
11073
|
-
var kv = {}, KO =
|
|
11074
|
+
var kv = {}, KO = st, GO = rv, JO = ot, YO = Re, XO = Sn, ZO = Ov;
|
|
11074
11075
|
kv.f = KO && !GO ? Object.defineProperties : function(e, t) {
|
|
11075
11076
|
YO(e);
|
|
11076
11077
|
for (var n = XO(t), i = ZO(t), o = i.length, s = 0, a; o > s; )
|
|
@@ -11101,7 +11102,7 @@ nk[Av] = !0;
|
|
|
11101
11102
|
var gc = Object.create || function(e, t) {
|
|
11102
11103
|
var n;
|
|
11103
11104
|
return e !== null ? (ca[cl] = tk(e), n = new ca(), ca[cl] = null, n[Av] = e) : n = Gi(), t === void 0 ? n : rk.f(n, t);
|
|
11104
|
-
}, lk = Se, ck = gc, uk =
|
|
11105
|
+
}, lk = Se, ck = gc, uk = ot.f, fl = lk("unscopables"), dl = Array.prototype;
|
|
11105
11106
|
dl[fl] == null && uk(dl, fl, {
|
|
11106
11107
|
configurable: !0,
|
|
11107
11108
|
value: ck(null)
|
|
@@ -11112,26 +11113,26 @@ var fk = function(r) {
|
|
|
11112
11113
|
function r() {
|
|
11113
11114
|
}
|
|
11114
11115
|
return r.prototype.constructor = null, Object.getPrototypeOf(new r()) !== r.prototype;
|
|
11115
|
-
}), pk =
|
|
11116
|
+
}), pk = it, mk = re, vk = yn, gk = lc, yk = hk, sd = gk("IE_PROTO"), hl = Object, bk = hl.prototype, Mv = yk ? hl.getPrototypeOf : function(r) {
|
|
11116
11117
|
var e = vk(r);
|
|
11117
11118
|
if (pk(e, sd))
|
|
11118
11119
|
return e[sd];
|
|
11119
11120
|
var t = e.constructor;
|
|
11120
11121
|
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 =
|
|
11122
|
+
}, _k = G, Sk = re, ad = Mv, Ek = Cr, Dk = Se, pl = Dk("iterator"), $v = !1, Dr, ua, fa;
|
|
11123
|
+
[].keys && (fa = [].keys(), "next" in fa ? (ua = ad(ad(fa)), ua !== Object.prototype && (Dr = ua)) : $v = !0);
|
|
11124
|
+
var wk = Dr == null || _k(function() {
|
|
11124
11125
|
var r = {};
|
|
11125
|
-
return
|
|
11126
|
+
return Dr[pl].call(r) !== r;
|
|
11126
11127
|
});
|
|
11127
|
-
wk && (
|
|
11128
|
-
Sk(
|
|
11128
|
+
wk && (Dr = {});
|
|
11129
|
+
Sk(Dr[pl]) || Ek(Dr, pl, function() {
|
|
11129
11130
|
return this;
|
|
11130
11131
|
});
|
|
11131
11132
|
var Fv = {
|
|
11132
|
-
IteratorPrototype:
|
|
11133
|
+
IteratorPrototype: Dr,
|
|
11133
11134
|
BUGGY_SAFARI_ITERATORS: $v
|
|
11134
|
-
}, xk =
|
|
11135
|
+
}, xk = ot.f, Ck = it, Ok = Se, ld = Ok("toStringTag"), yc = function(r, e, t) {
|
|
11135
11136
|
r && !t && (r = r.prototype), r && !Ck(r, ld) && xk(r, ld, { configurable: !0, value: e });
|
|
11136
11137
|
}, kk = Fv.IteratorPrototype, Ak = gc, Tk = as, Mk = yc, $k = gi, Fk = function() {
|
|
11137
11138
|
return this;
|
|
@@ -11151,7 +11152,7 @@ var Fv = {
|
|
|
11151
11152
|
return function(i, o) {
|
|
11152
11153
|
return zk(i), jk(o), r ? t(i, o) : i.__proto__ = o, i;
|
|
11153
11154
|
};
|
|
11154
|
-
}() : void 0), Vk = Qt, Hk = qe, Nv = sc, Wk = re, qk = Ik, cd = Mv, ud = Iv, Uk = yc, Kk = bn, da =
|
|
11155
|
+
}() : 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
11156
|
return this;
|
|
11156
11157
|
}, Pv = function(r, e, t, n, i, o, s) {
|
|
11157
11158
|
qk(t, e, n);
|
|
@@ -11191,7 +11192,7 @@ var Fv = {
|
|
|
11191
11192
|
else
|
|
11192
11193
|
Vk({ target: e, proto: !0, forced: Mi || u }, m);
|
|
11193
11194
|
return c[An] !== d && da(c, An, d, { name: i }), Jk[e] = d, m;
|
|
11194
|
-
}, Qk = Sn, bc = fk, pd = gi, Bv = _n, eA =
|
|
11195
|
+
}, Qk = Sn, bc = fk, pd = gi, Bv = _n, eA = ot.f, tA = Pv, rA = st, Lv = "Array Iterator", nA = Bv.set, iA = Bv.getterFor(Lv), oA = tA(Array, "Array", function(r, e) {
|
|
11195
11196
|
nA(this, {
|
|
11196
11197
|
type: Lv,
|
|
11197
11198
|
target: Qk(r),
|
|
@@ -11210,7 +11211,7 @@ if (rA && md.name !== "values")
|
|
|
11210
11211
|
eA(md, "name", { value: "values" });
|
|
11211
11212
|
} catch {
|
|
11212
11213
|
}
|
|
11213
|
-
var _c = U, sA = fs, aA =
|
|
11214
|
+
var _c = U, sA = fs, aA = kr, lA = gn, cA = _c("".charAt), vd = _c("".charCodeAt), uA = _c("".slice), gd = function(r) {
|
|
11214
11215
|
return function(e, t) {
|
|
11215
11216
|
var n = aA(lA(e)), i = sA(t), o = n.length, s, a;
|
|
11216
11217
|
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 +11219,7 @@ var _c = U, sA = fs, aA = Or, lA = gn, cA = _c("".charAt), vd = _c("".charCodeAt
|
|
|
11218
11219
|
}, zv = {
|
|
11219
11220
|
codeAt: gd(!1),
|
|
11220
11221
|
charAt: gd(!0)
|
|
11221
|
-
}, fA = zv.charAt, dA =
|
|
11222
|
+
}, fA = zv.charAt, dA = kr, jv = _n, hA = Pv, Vv = "String Iterator", pA = jv.set, mA = jv.getterFor(Vv);
|
|
11222
11223
|
hA(String, "String", function(r) {
|
|
11223
11224
|
pA(this, {
|
|
11224
11225
|
type: Vv,
|
|
@@ -11229,18 +11230,18 @@ hA(String, "String", function(r) {
|
|
|
11229
11230
|
var e = mA(this), t = e.string, n = e.index, i;
|
|
11230
11231
|
return n >= t.length ? { value: void 0, done: !0 } : (i = fA(t, n), e.index += i.length, { value: i, done: !1 });
|
|
11231
11232
|
});
|
|
11232
|
-
var vA =
|
|
11233
|
+
var vA = Cr, Hv = function(r, e, t) {
|
|
11233
11234
|
for (var n in e)
|
|
11234
11235
|
vA(r, n, e[n], t);
|
|
11235
11236
|
return r;
|
|
11236
|
-
}, hs = { exports: {} }, Wv = {}, gA = ic, yA =
|
|
11237
|
+
}, hs = { exports: {} }, Wv = {}, gA = ic, yA = ot, bA = as, _A = function(r, e, t) {
|
|
11237
11238
|
var n = gA(e);
|
|
11238
11239
|
n in r ? yA.f(r, n, bA(0, t)) : r[n] = t;
|
|
11239
11240
|
}, yd = Sv, SA = mi, EA = _A, DA = Array, wA = Math.max, xA = function(r, e, t) {
|
|
11240
11241
|
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
11242
|
EA(s, a, r[i]);
|
|
11242
11243
|
return s.length = a, s;
|
|
11243
|
-
}, CA =
|
|
11244
|
+
}, CA = Or, OA = Sn, qv = ds.f, kA = xA, Uv = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], AA = function(r) {
|
|
11244
11245
|
try {
|
|
11245
11246
|
return qv(r);
|
|
11246
11247
|
} catch {
|
|
@@ -11255,13 +11256,13 @@ var TA = G, MA = TA(function() {
|
|
|
11255
11256
|
var r = new ArrayBuffer(8);
|
|
11256
11257
|
Object.isExtensible(r) && Object.defineProperty(r, "a", { value: 8 });
|
|
11257
11258
|
}
|
|
11258
|
-
}), $A = G, FA = We, IA =
|
|
11259
|
+
}), $A = G, FA = We, IA = Or, bd = MA, Ji = Object.isExtensible, NA = $A(function() {
|
|
11259
11260
|
Ji(1);
|
|
11260
11261
|
}), Kv = NA || bd ? function(e) {
|
|
11261
11262
|
return !FA(e) || bd && IA(e) == "ArrayBuffer" ? !1 : Ji ? Ji(e) : !0;
|
|
11262
11263
|
} : Ji, RA = G, PA = !RA(function() {
|
|
11263
11264
|
return Object.isExtensible(Object.preventExtensions({}));
|
|
11264
|
-
}), BA = Qt, LA = U, zA = ls, jA = We, Sc =
|
|
11265
|
+
}), BA = Qt, LA = U, zA = ls, jA = We, Sc = it, VA = ot.f, _d = ds, HA = Wv, Ec = Kv, WA = Zl, qA = PA, Gv = !1, kt = WA("meta"), UA = 0, Dc = function(r) {
|
|
11265
11266
|
VA(r, kt, { value: {
|
|
11266
11267
|
objectID: "O" + UA++,
|
|
11267
11268
|
weakData: {}
|
|
@@ -11408,7 +11409,7 @@ var TT = function(r, e) {
|
|
|
11408
11409
|
}, MT = re, $T = We, Od = Iv, FT = function(r, e, t) {
|
|
11409
11410
|
var n, i;
|
|
11410
11411
|
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 =
|
|
11412
|
+
}, 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
11413
|
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
11414
|
var y = RT(a[g]);
|
|
11414
11415
|
PT(
|
|
@@ -11451,7 +11452,7 @@ var TT = function(r, e) {
|
|
|
11451
11452
|
}), l.prototype = a, a.constructor = l), (p || v) && (c("delete"), c("has"), n && c("get")), (v || h) && c(o), i && a.clear && delete a.clear;
|
|
11452
11453
|
}
|
|
11453
11454
|
return u[r] = l, IT({ global: !0, constructor: !0, forced: l != s }, u), HT(l, r), i || t.setStrong(l, r, n), l;
|
|
11454
|
-
}, UT = U, Ad = Hv, $i = hs.exports.getWeakData, KT = Re, ma = We, GT = Xv, JT = Yv, eg = fc, Td =
|
|
11455
|
+
}, UT = U, Ad = Hv, $i = hs.exports.getWeakData, KT = Re, ma = We, GT = Xv, JT = Yv, eg = fc, Td = it, tg = _n, YT = tg.set, XT = tg.getterFor, ZT = eg.find, QT = eg.findIndex, e2 = UT([].splice), t2 = 0, Fi = function(r) {
|
|
11455
11456
|
return r.frozen || (r.frozen = new rg());
|
|
11456
11457
|
}, rg = function() {
|
|
11457
11458
|
this.entries = [];
|
|
@@ -11765,7 +11766,7 @@ var Q2 = Array.prototype, eM = Function.prototype, fg = Object.prototype, Da = u
|
|
|
11765
11766
|
}(), dg = eM.toString, wc = fg.hasOwnProperty, tM = fg.toString, rM = RegExp(
|
|
11766
11767
|
"^" + dg.call(wc).replace(K2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11767
11768
|
), nM = Q2.splice, iM = hg(ug, "Map"), ai = hg(Object, "create");
|
|
11768
|
-
function
|
|
11769
|
+
function wr(r) {
|
|
11769
11770
|
var e = -1, t = r ? r.length : 0;
|
|
11770
11771
|
for (this.clear(); ++e < t; ) {
|
|
11771
11772
|
var n = r[e];
|
|
@@ -11794,11 +11795,11 @@ function cM(r, e) {
|
|
|
11794
11795
|
var t = this.__data__;
|
|
11795
11796
|
return t[r] = ai && e === void 0 ? cg : e, this;
|
|
11796
11797
|
}
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11801
|
-
|
|
11798
|
+
wr.prototype.clear = oM;
|
|
11799
|
+
wr.prototype.delete = sM;
|
|
11800
|
+
wr.prototype.get = aM;
|
|
11801
|
+
wr.prototype.has = lM;
|
|
11802
|
+
wr.prototype.set = cM;
|
|
11802
11803
|
function En(r) {
|
|
11803
11804
|
var e = -1, t = r ? r.length : 0;
|
|
11804
11805
|
for (this.clear(); ++e < t; ) {
|
|
@@ -11832,7 +11833,7 @@ En.prototype.delete = fM;
|
|
|
11832
11833
|
En.prototype.get = dM;
|
|
11833
11834
|
En.prototype.has = hM;
|
|
11834
11835
|
En.prototype.set = pM;
|
|
11835
|
-
function
|
|
11836
|
+
function Ar(r) {
|
|
11836
11837
|
var e = -1, t = r ? r.length : 0;
|
|
11837
11838
|
for (this.clear(); ++e < t; ) {
|
|
11838
11839
|
var n = r[e];
|
|
@@ -11841,9 +11842,9 @@ function kr(r) {
|
|
|
11841
11842
|
}
|
|
11842
11843
|
function mM() {
|
|
11843
11844
|
this.__data__ = {
|
|
11844
|
-
hash: new
|
|
11845
|
+
hash: new wr(),
|
|
11845
11846
|
map: new (iM || En)(),
|
|
11846
|
-
string: new
|
|
11847
|
+
string: new wr()
|
|
11847
11848
|
};
|
|
11848
11849
|
}
|
|
11849
11850
|
function vM(r) {
|
|
@@ -11858,11 +11859,11 @@ function yM(r) {
|
|
|
11858
11859
|
function bM(r, e) {
|
|
11859
11860
|
return ms(this, r).set(r, e), this;
|
|
11860
11861
|
}
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11862
|
+
Ar.prototype.clear = mM;
|
|
11863
|
+
Ar.prototype.delete = vM;
|
|
11864
|
+
Ar.prototype.get = gM;
|
|
11865
|
+
Ar.prototype.has = yM;
|
|
11866
|
+
Ar.prototype.set = bM;
|
|
11866
11867
|
function ps(r, e) {
|
|
11867
11868
|
for (var t = r.length; t--; )
|
|
11868
11869
|
if (wM(r[t][0], e))
|
|
@@ -11913,9 +11914,9 @@ function xc(r, e) {
|
|
|
11913
11914
|
var s = r.apply(this, n);
|
|
11914
11915
|
return t.cache = o.set(i, s), s;
|
|
11915
11916
|
};
|
|
11916
|
-
return t.cache = new (xc.Cache ||
|
|
11917
|
+
return t.cache = new (xc.Cache || Ar)(), t;
|
|
11917
11918
|
}
|
|
11918
|
-
xc.Cache =
|
|
11919
|
+
xc.Cache = Ar;
|
|
11919
11920
|
function wM(r, e) {
|
|
11920
11921
|
return r === e || r !== r && e !== e;
|
|
11921
11922
|
}
|
|
@@ -11991,24 +11992,24 @@ var yr = function(r) {
|
|
|
11991
11992
|
return !0;
|
|
11992
11993
|
}
|
|
11993
11994
|
return !1;
|
|
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),
|
|
11995
|
+
}, 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), lt = function(r) {
|
|
11995
11996
|
return parseFloat(r || "0");
|
|
11996
|
-
},
|
|
11997
|
+
}, rn = function(r, e, t) {
|
|
11997
11998
|
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
11999
|
}, Kd = yr({
|
|
11999
|
-
devicePixelContentBoxSize:
|
|
12000
|
-
borderBoxSize:
|
|
12001
|
-
contentBoxSize:
|
|
12000
|
+
devicePixelContentBoxSize: rn(),
|
|
12001
|
+
borderBoxSize: rn(),
|
|
12002
|
+
contentBoxSize: rn(),
|
|
12002
12003
|
contentRect: new mg(0, 0, 0, 0)
|
|
12003
12004
|
}), gg = function(r, e) {
|
|
12004
12005
|
if (e === void 0 && (e = !1), Li.has(r) && !e)
|
|
12005
12006
|
return Li.get(r);
|
|
12006
12007
|
if (vg(r))
|
|
12007
12008
|
return Li.set(r, Kd), Kd;
|
|
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 :
|
|
12009
|
-
devicePixelContentBoxSize:
|
|
12010
|
-
borderBoxSize:
|
|
12011
|
-
contentBoxSize:
|
|
12009
|
+
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 : lt(t.paddingTop), u = n ? 0 : lt(t.paddingRight), c = n ? 0 : lt(t.paddingBottom), f = n ? 0 : lt(t.paddingLeft), d = n ? 0 : lt(t.borderTopWidth), h = n ? 0 : lt(t.borderRightWidth), p = n ? 0 : lt(t.borderBottomWidth), m = n ? 0 : lt(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 : lt(t.width) - b - x, F = n ? n.height : lt(t.height) - C - _, V = E + v + x + y, j = F + g + _ + D, Q = yr({
|
|
12010
|
+
devicePixelContentBoxSize: rn(Math.round(E * devicePixelRatio), Math.round(F * devicePixelRatio), o),
|
|
12011
|
+
borderBoxSize: rn(V, j, o),
|
|
12012
|
+
contentBoxSize: rn(E, F, o),
|
|
12012
12013
|
contentRect: new mg(f, l, E, F)
|
|
12013
12014
|
});
|
|
12014
12015
|
return Li.set(r, Q), Q;
|
|
@@ -12229,7 +12230,7 @@ var yr = function(r) {
|
|
|
12229
12230
|
}, QM = {
|
|
12230
12231
|
left: Qd(!1),
|
|
12231
12232
|
right: Qd(!0)
|
|
12232
|
-
}, e$ =
|
|
12233
|
+
}, 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
12234
|
n$({ target: "Array", proto: !0, forced: !a$ || l$ }, {
|
|
12234
12235
|
reduce: function(e) {
|
|
12235
12236
|
var t = arguments.length;
|
|
@@ -12258,17 +12259,17 @@ var c$ = Re, u$ = function() {
|
|
|
12258
12259
|
}), b$ = G, _$ = le, S$ = _$.RegExp, E$ = b$(function() {
|
|
12259
12260
|
var r = S$("(?<a>b)", "g");
|
|
12260
12261
|
return r.exec("b").groups.a !== "b" || "b".replace(r, "$<a>c") !== "bc";
|
|
12261
|
-
}),
|
|
12262
|
+
}), 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
12263
|
var r = /a/, e = /b*/g;
|
|
12263
|
-
return
|
|
12264
|
+
return Ur(Eo, r, "a"), Ur(Eo, e, "a"), r.lastIndex !== 0 || e.lastIndex !== 0;
|
|
12264
12265
|
}(), Sg = x$.BROKEN_CARET, bl = /()??/.exec("")[1] !== void 0, N$ = yl || bl || Sg || A$ || T$;
|
|
12265
12266
|
N$ && (gl = function(e) {
|
|
12266
12267
|
var t = this, n = k$(t), i = D$(e), o = n.raw, s, a, l, u, c, f, d;
|
|
12267
12268
|
if (o)
|
|
12268
|
-
return o.lastIndex = t.lastIndex, s =
|
|
12269
|
-
var h = n.groups, p = Sg && t.sticky, m =
|
|
12269
|
+
return o.lastIndex = t.lastIndex, s = Ur(gl, o, i), t.lastIndex = o.lastIndex, s;
|
|
12270
|
+
var h = n.groups, p = Sg && t.sticky, m = Ur(w$, t), v = t.source, g = 0, y = i;
|
|
12270
12271
|
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 =
|
|
12272
|
+
`) && (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
12273
|
for (c = 1; c < arguments.length - 2; c++)
|
|
12273
12274
|
arguments[c] === void 0 && (u[c] = void 0);
|
|
12274
12275
|
}), u && h)
|
|
@@ -12280,7 +12281,7 @@ var Tc = gl, R$ = Qt, th = Tc;
|
|
|
12280
12281
|
R$({ target: "RegExp", proto: !0, forced: /./.exec !== th }, {
|
|
12281
12282
|
exec: th
|
|
12282
12283
|
});
|
|
12283
|
-
var rh = U, nh =
|
|
12284
|
+
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
12285
|
var i = Eg(r), o = !ih(function() {
|
|
12285
12286
|
var u = {};
|
|
12286
12287
|
return u[i] = function() {
|
|
@@ -12304,7 +12305,7 @@ var rh = U, nh = xr, P$ = Tc, ih = G, Eg = Se, B$ = bn, L$ = Eg("species"), Oa =
|
|
|
12304
12305
|
n && B$(Oa[i], "sham", !0);
|
|
12305
12306
|
}, z$ = zv.charAt, wg = function(r, e, t) {
|
|
12306
12307
|
return e + (t ? z$(r, e).length : 1);
|
|
12307
|
-
}, oh = qe, j$ = Re, V$ = re, H$ =
|
|
12308
|
+
}, oh = qe, j$ = Re, V$ = re, H$ = Or, W$ = Tc, q$ = TypeError, xg = function(r, e) {
|
|
12308
12309
|
var t = r.exec;
|
|
12309
12310
|
if (V$(t)) {
|
|
12310
12311
|
var n = oh(t, r, e);
|
|
@@ -12313,7 +12314,7 @@ var rh = U, nh = xr, P$ = Tc, ih = G, Eg = Se, B$ = bn, L$ = Eg("species"), Oa =
|
|
|
12313
12314
|
if (H$(r) === "RegExp")
|
|
12314
12315
|
return oh(W$, r, e);
|
|
12315
12316
|
throw q$("RegExp#exec called on incompatible receiver");
|
|
12316
|
-
}, U$ = qe, K$ = Dg, G$ = Re, J$ = cc, ka =
|
|
12317
|
+
}, U$ = qe, K$ = Dg, G$ = Re, J$ = cc, ka = kr, Y$ = gn, X$ = pi, Z$ = wg, sh = xg;
|
|
12317
12318
|
K$("match", function(r, e, t) {
|
|
12318
12319
|
return [
|
|
12319
12320
|
function(i) {
|
|
@@ -12336,7 +12337,7 @@ K$("match", function(r, e, t) {
|
|
|
12336
12337
|
}
|
|
12337
12338
|
];
|
|
12338
12339
|
});
|
|
12339
|
-
var Q$ =
|
|
12340
|
+
var Q$ = st, eF = sc.EXISTS, Cg = U, tF = ot.f, Og = Function.prototype, rF = Cg(Og.toString), kg = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, nF = Cg(kg.exec), iF = "name";
|
|
12340
12341
|
Q$ && !eF && tF(Og, iF, {
|
|
12341
12342
|
configurable: !0,
|
|
12342
12343
|
get: function() {
|
|
@@ -12377,7 +12378,7 @@ var oF = is, Ag = Function.prototype, ah = Ag.apply, lh = Ag.call, sF = typeof R
|
|
|
12377
12378
|
}
|
|
12378
12379
|
return f === void 0 ? "" : f;
|
|
12379
12380
|
});
|
|
12380
|
-
}, hF = sF, ch = qe, gs = U, pF = Dg, mF = G, vF = Re, gF = re, yF = fs, bF = cc,
|
|
12381
|
+
}, 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
12382
|
return r === void 0 ? r : String(r);
|
|
12382
12383
|
}, TF = function() {
|
|
12383
12384
|
return "a".replace(/./, "$0") === "$0";
|
|
@@ -12395,17 +12396,17 @@ pF("replace", function(r, e, t) {
|
|
|
12395
12396
|
return [
|
|
12396
12397
|
function(o, s) {
|
|
12397
12398
|
var a = _F(this), l = o == null ? void 0 : EF(o, _l);
|
|
12398
|
-
return l ? ch(l, o, a, s) : ch(e,
|
|
12399
|
+
return l ? ch(l, o, a, s) : ch(e, Br(a), o, s);
|
|
12399
12400
|
},
|
|
12400
12401
|
function(i, o) {
|
|
12401
|
-
var s = vF(this), a =
|
|
12402
|
+
var s = vF(this), a = Br(i);
|
|
12402
12403
|
if (typeof o == "string" && uh(o, n) === -1 && uh(o, "$<") === -1) {
|
|
12403
12404
|
var l = t(e, s, a, o);
|
|
12404
12405
|
if (l.done)
|
|
12405
12406
|
return l.value;
|
|
12406
12407
|
}
|
|
12407
12408
|
var u = gF(o);
|
|
12408
|
-
u || (o =
|
|
12409
|
+
u || (o = Br(o));
|
|
12409
12410
|
var c = s.global;
|
|
12410
12411
|
if (c) {
|
|
12411
12412
|
var f = s.unicode;
|
|
@@ -12415,18 +12416,18 @@ pF("replace", function(r, e, t) {
|
|
|
12415
12416
|
var h = wF(s, a);
|
|
12416
12417
|
if (h === null || (Ma(d, h), !c))
|
|
12417
12418
|
break;
|
|
12418
|
-
var p =
|
|
12419
|
+
var p = Br(h[0]);
|
|
12419
12420
|
p === "" && (s.lastIndex = SF(a, bF(s.lastIndex), f));
|
|
12420
12421
|
}
|
|
12421
12422
|
for (var m = "", v = 0, g = 0; g < d.length; g++) {
|
|
12422
12423
|
h = d[g];
|
|
12423
|
-
for (var y =
|
|
12424
|
+
for (var y = Br(h[0]), D = CF(OF(yF(h.index), a.length), 0), _ = [], x = 1; x < h.length; x++)
|
|
12424
12425
|
Ma(_, AF(h[x]));
|
|
12425
12426
|
var b = h.groups;
|
|
12426
12427
|
if (u) {
|
|
12427
12428
|
var C = kF([y], _, D, a);
|
|
12428
12429
|
b !== void 0 && Ma(C, b);
|
|
12429
|
-
var E =
|
|
12430
|
+
var E = Br(hF(o, void 0, C));
|
|
12430
12431
|
} else
|
|
12431
12432
|
E = DF(y, a, D, _, b, o);
|
|
12432
12433
|
D >= v && (m += fh(a, v, D) + E, v = D + y.length);
|
|
@@ -12466,21 +12467,21 @@ function It(r) {
|
|
|
12466
12467
|
function Zi(r) {
|
|
12467
12468
|
return !r || !r.ownerDocument ? document : r.ownerDocument;
|
|
12468
12469
|
}
|
|
12469
|
-
var
|
|
12470
|
+
var jr = null, hh = null;
|
|
12470
12471
|
dc && window.addEventListener("resize", function() {
|
|
12471
|
-
hh !== window.devicePixelRatio && (hh = window.devicePixelRatio,
|
|
12472
|
+
hh !== window.devicePixelRatio && (hh = window.devicePixelRatio, jr = null);
|
|
12472
12473
|
});
|
|
12473
12474
|
function ph(r) {
|
|
12474
|
-
if (
|
|
12475
|
+
if (jr === null) {
|
|
12475
12476
|
var e = Zi(r);
|
|
12476
12477
|
if (typeof e > "u")
|
|
12477
|
-
return
|
|
12478
|
+
return jr = 0, jr;
|
|
12478
12479
|
var t = e.body, n = e.createElement("div");
|
|
12479
12480
|
n.classList.add("simplebar-hide-scrollbar"), t.appendChild(n);
|
|
12480
12481
|
var i = n.getBoundingClientRect().right;
|
|
12481
|
-
t.removeChild(n),
|
|
12482
|
+
t.removeChild(n), jr = i;
|
|
12482
12483
|
}
|
|
12483
|
-
return
|
|
12484
|
+
return jr;
|
|
12484
12485
|
}
|
|
12485
12486
|
var Z = /* @__PURE__ */ function() {
|
|
12486
12487
|
function r(t, n) {
|
|
@@ -12779,7 +12780,7 @@ function mh({ validations: r }) {
|
|
|
12779
12780
|
const $F = (r) => r;
|
|
12780
12781
|
function Tg({ valueRef: r, format: e = $F }) {
|
|
12781
12782
|
const t = q(e(r.value));
|
|
12782
|
-
return
|
|
12783
|
+
return br(r, () => t.value = e(r.value)), t;
|
|
12783
12784
|
}
|
|
12784
12785
|
function wo(r) {
|
|
12785
12786
|
return A(() => {
|
|
@@ -12816,7 +12817,7 @@ function FF({ valueRef: r, digits: e, min: t, max: n, onChange: i }) {
|
|
|
12816
12817
|
};
|
|
12817
12818
|
}
|
|
12818
12819
|
function yi({ onBeforeOpened: r, onClosed: e, wrapperRef: t, modalRef: n } = {}) {
|
|
12819
|
-
const i = z(
|
|
12820
|
+
const i = z(B.EDITOR), o = q(!1);
|
|
12820
12821
|
let s;
|
|
12821
12822
|
function a() {
|
|
12822
12823
|
const f = wo(t), d = wo(n);
|
|
@@ -12859,7 +12860,7 @@ function Mg({ targetRef: r, isActiveRef: e, event: t, onEvent: n, options: i })
|
|
|
12859
12860
|
function a() {
|
|
12860
12861
|
!r.value || (e.value ? o() : s());
|
|
12861
12862
|
}
|
|
12862
|
-
|
|
12863
|
+
br(e, a), br(r, a), Dl(s), a();
|
|
12863
12864
|
}
|
|
12864
12865
|
const IF = [
|
|
12865
12866
|
"BUTTON",
|
|
@@ -12868,7 +12869,7 @@ const IF = [
|
|
|
12868
12869
|
"A"
|
|
12869
12870
|
];
|
|
12870
12871
|
function $g({ hostRef: r, isActiveRef: e }) {
|
|
12871
|
-
const t = z(
|
|
12872
|
+
const t = z(B.EDITOR), n = wo(r);
|
|
12872
12873
|
function i(o) {
|
|
12873
12874
|
IF.includes(o.target.tagName) || (t.isFocused && (o.stopPropagation(), o.preventDefault()), t.chain().restoreSelection().run());
|
|
12874
12875
|
}
|
|
@@ -12906,7 +12907,7 @@ const BF = {
|
|
|
12906
12907
|
name: "ScrollView",
|
|
12907
12908
|
setup() {
|
|
12908
12909
|
const r = q(null), e = q(null);
|
|
12909
|
-
return
|
|
12910
|
+
return Ke(Fg, e), mp(() => {
|
|
12910
12911
|
const t = Z.getOptions(r.value.attributes), n = new Z(r.value, t);
|
|
12911
12912
|
e.value = n.getScrollElement();
|
|
12912
12913
|
}), { hostRef: r };
|
|
@@ -13235,14 +13236,14 @@ class Ct {
|
|
|
13235
13236
|
return this.window.getComputedStyle(e);
|
|
13236
13237
|
}
|
|
13237
13238
|
}
|
|
13238
|
-
|
|
13239
|
-
const
|
|
13239
|
+
Fr(Ct, "window", window);
|
|
13240
|
+
const ft = class {
|
|
13240
13241
|
static normalize(e) {
|
|
13241
13242
|
const t = {
|
|
13242
13243
|
content: e,
|
|
13243
|
-
parser:
|
|
13244
|
+
parser: ft.PARSER
|
|
13244
13245
|
};
|
|
13245
|
-
return new
|
|
13246
|
+
return new ft(t).normalize();
|
|
13246
13247
|
}
|
|
13247
13248
|
constructor({ content: e, parser: t }) {
|
|
13248
13249
|
this._content = e, this._parser = t, this._dom = null;
|
|
@@ -13268,9 +13269,9 @@ const ut = class {
|
|
|
13268
13269
|
const t = new DocumentFragment(), n = Array.from(e.childNodes);
|
|
13269
13270
|
let i;
|
|
13270
13271
|
const o = (s) => {
|
|
13271
|
-
this._assignElementProperties(s, e,
|
|
13272
|
+
this._assignElementProperties(s, e, ft.BLOCK_STYLES), t.append(s);
|
|
13272
13273
|
};
|
|
13273
|
-
this._assignElementProperties(e, e.parentElement,
|
|
13274
|
+
this._assignElementProperties(e, e.parentElement, ft.BLOCK_STYLES);
|
|
13274
13275
|
for (const s of n) {
|
|
13275
13276
|
if (s.tagName === "P") {
|
|
13276
13277
|
o(s), i = null;
|
|
@@ -13278,7 +13279,7 @@ const ut = class {
|
|
|
13278
13279
|
}
|
|
13279
13280
|
i || (i = document.createElement("p"), o(i)), i.append(s);
|
|
13280
13281
|
}
|
|
13281
|
-
e.append(t), this._removeStyleProperties(e,
|
|
13282
|
+
e.append(t), this._removeStyleProperties(e, ft.BLOCK_STYLES);
|
|
13282
13283
|
}
|
|
13283
13284
|
_normalizeSettingsStructure(e) {
|
|
13284
13285
|
if (this._isOnlyTextContent(e))
|
|
@@ -13306,10 +13307,10 @@ const ut = class {
|
|
|
13306
13307
|
return Array.from(e.childNodes).every((t) => t.nodeType === Node.TEXT_NODE);
|
|
13307
13308
|
}
|
|
13308
13309
|
_isBlockNode(e) {
|
|
13309
|
-
return
|
|
13310
|
+
return ft.BLOCK_NODE_NAMES.includes(e.tagName);
|
|
13310
13311
|
}
|
|
13311
13312
|
_getMigratingStyles(e, { customProperties: t } = {}) {
|
|
13312
|
-
const n =
|
|
13313
|
+
const n = ft.BLOCK_STYLES, i = [];
|
|
13313
13314
|
for (let o = 0; o < e.style.length; o++) {
|
|
13314
13315
|
const s = e.style.item(o);
|
|
13315
13316
|
n.includes(s) || !t && s.startsWith("--") || i.push(s);
|
|
@@ -13329,7 +13330,7 @@ const ut = class {
|
|
|
13329
13330
|
}
|
|
13330
13331
|
}
|
|
13331
13332
|
_canAssignElementProperty(e, t, n) {
|
|
13332
|
-
return e.style.getPropertyValue(n) ? !1 :
|
|
13333
|
+
return e.style.getPropertyValue(n) ? !1 : ft.ASSIGN_STYLE_RULES.every((i) => i.tag.test(e.tagName.toLowerCase()) ? !i.ignore.test(n) : !0);
|
|
13333
13334
|
}
|
|
13334
13335
|
_removeStyleProperties(e, t) {
|
|
13335
13336
|
for (const n of t)
|
|
@@ -13337,8 +13338,8 @@ const ut = class {
|
|
|
13337
13338
|
e.style.length === 0 && e.removeAttribute("style");
|
|
13338
13339
|
}
|
|
13339
13340
|
};
|
|
13340
|
-
let wt =
|
|
13341
|
-
|
|
13341
|
+
let wt = ft;
|
|
13342
|
+
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
13343
|
{
|
|
13343
13344
|
tag: /^(b|strong)$/,
|
|
13344
13345
|
ignore: /font-weight/
|
|
@@ -13602,7 +13603,7 @@ function DI({ optionsRef: r, inputRef: e, stateless: t, onChange: n }) {
|
|
|
13602
13603
|
o(c, u);
|
|
13603
13604
|
}
|
|
13604
13605
|
const a = () => s(e.value, { emitEvent: !1 });
|
|
13605
|
-
return a(),
|
|
13606
|
+
return a(), br(e, a), { activeOption: i, activateOption: o };
|
|
13606
13607
|
}
|
|
13607
13608
|
function Ic(r) {
|
|
13608
13609
|
return A(() => {
|
|
@@ -13871,7 +13872,7 @@ const JI = {
|
|
|
13871
13872
|
}
|
|
13872
13873
|
},
|
|
13873
13874
|
setup() {
|
|
13874
|
-
|
|
13875
|
+
Ke(Wt.SESSION, {});
|
|
13875
13876
|
}
|
|
13876
13877
|
}, kh = {};
|
|
13877
13878
|
var YI = /* @__PURE__ */ $(
|
|
@@ -13966,7 +13967,7 @@ const tN = {
|
|
|
13966
13967
|
wrapperRef: t,
|
|
13967
13968
|
modalRef: n
|
|
13968
13969
|
});
|
|
13969
|
-
return
|
|
13970
|
+
return Ke(Wt.ACTIVE_MANAGER, i), Ke(Wt.TOGGLER, o), {
|
|
13970
13971
|
dropdownRef: t,
|
|
13971
13972
|
modalRef: n,
|
|
13972
13973
|
toggler: o
|
|
@@ -14094,7 +14095,7 @@ const lN = {
|
|
|
14094
14095
|
}
|
|
14095
14096
|
},
|
|
14096
14097
|
setup(r, { emit: e }) {
|
|
14097
|
-
const t = z(
|
|
14098
|
+
const t = z(B.FAVORITE_COLORS), n = z(B.EDITOR), i = q(null), o = iN({
|
|
14098
14099
|
onClosed: (a) => {
|
|
14099
14100
|
n.commands.restoreSelection(), a !== r.value && e("change", a);
|
|
14100
14101
|
},
|
|
@@ -14197,7 +14198,7 @@ const hN = [ne.FONT_SIZE, ne.FONT_WEIGHT], pN = {
|
|
|
14197
14198
|
tooltip: pe
|
|
14198
14199
|
},
|
|
14199
14200
|
setup() {
|
|
14200
|
-
const r = z(
|
|
14201
|
+
const r = z(B.EDITOR), e = r.commands.getPresetList(), t = r.commands.getPreset(), n = r.commands.getPresetCustomization(), i = A(() => {
|
|
14201
14202
|
const { attributes: l, marks: u } = n.value;
|
|
14202
14203
|
return !!l.length || !!u.length;
|
|
14203
14204
|
});
|
|
@@ -14233,7 +14234,7 @@ const Rg = /* @__PURE__ */ function() {
|
|
|
14233
14234
|
return mN.exports;
|
|
14234
14235
|
}(), $h = "wswg.recently_used_fonts";
|
|
14235
14236
|
function gN({ limit: r }) {
|
|
14236
|
-
const e = z(
|
|
14237
|
+
const e = z(B.LOCAL_STORAGE), t = q(e.getItem($h) || []);
|
|
14237
14238
|
function n(o) {
|
|
14238
14239
|
t.value = Array.from(/* @__PURE__ */ new Set([o, ...t.value])).slice(0, r), e.setItem($h, t.value);
|
|
14239
14240
|
}
|
|
@@ -14288,7 +14289,7 @@ const _N = {
|
|
|
14288
14289
|
tooltip: pe
|
|
14289
14290
|
},
|
|
14290
14291
|
setup() {
|
|
14291
|
-
const r = z(
|
|
14292
|
+
const r = z(B.FONTS), e = z(B.EDITOR), t = gN({ limit: 5 }), n = A(() => ({
|
|
14292
14293
|
id: "Recently Used",
|
|
14293
14294
|
options: t.fonts.value.map((l) => ({ id: l }))
|
|
14294
14295
|
})), i = A(() => {
|
|
@@ -14359,7 +14360,7 @@ const CN = {
|
|
|
14359
14360
|
tooltip: pe
|
|
14360
14361
|
},
|
|
14361
14362
|
setup() {
|
|
14362
|
-
const r = z(
|
|
14363
|
+
const r = z(B.EDITOR), e = r.commands.getFont(), t = A(() => e.value.weights.map((o) => ({ id: o }))), n = r.commands.getFontWeight();
|
|
14363
14364
|
return {
|
|
14364
14365
|
options: t,
|
|
14365
14366
|
currentValue: n,
|
|
@@ -14415,7 +14416,7 @@ const $N = {
|
|
|
14415
14416
|
tooltip: pe
|
|
14416
14417
|
},
|
|
14417
14418
|
setup() {
|
|
14418
|
-
const r = z(
|
|
14419
|
+
const r = z(B.FONT_SIZES), e = z(B.EDITOR), t = A(() => r.map((o) => ({ id: o, title: `${o}px` }))), n = e.commands.getFontSize();
|
|
14419
14420
|
return {
|
|
14420
14421
|
options: t,
|
|
14421
14422
|
currentValue: n,
|
|
@@ -14490,7 +14491,7 @@ const PN = {
|
|
|
14490
14491
|
tooltip: pe
|
|
14491
14492
|
},
|
|
14492
14493
|
setup() {
|
|
14493
|
-
const r = z(
|
|
14494
|
+
const r = z(B.EDITOR);
|
|
14494
14495
|
return {
|
|
14495
14496
|
currentValue: r.commands.getFontColor(),
|
|
14496
14497
|
apply: (n) => r.chain().applyFontColor(n).run()
|
|
@@ -14564,7 +14565,7 @@ const HN = {
|
|
|
14564
14565
|
tooltip: pe
|
|
14565
14566
|
},
|
|
14566
14567
|
setup() {
|
|
14567
|
-
const r = z(
|
|
14568
|
+
const r = z(B.EDITOR);
|
|
14568
14569
|
return {
|
|
14569
14570
|
currentValue: r.commands.getBackgroundColor(),
|
|
14570
14571
|
apply: (n) => r.chain().applyBackgroundColor(n).run()
|
|
@@ -14627,7 +14628,7 @@ const JN = {
|
|
|
14627
14628
|
tooltip: pe
|
|
14628
14629
|
},
|
|
14629
14630
|
setup() {
|
|
14630
|
-
const r = z(
|
|
14631
|
+
const r = z(B.EDITOR), e = r.commands.isItalic();
|
|
14631
14632
|
return {
|
|
14632
14633
|
isAvailable: r.commands.isItalicAvailable(),
|
|
14633
14634
|
currentValue: e,
|
|
@@ -14690,7 +14691,7 @@ const tR = {
|
|
|
14690
14691
|
tooltip: pe
|
|
14691
14692
|
},
|
|
14692
14693
|
setup() {
|
|
14693
|
-
const r = z(
|
|
14694
|
+
const r = z(B.EDITOR);
|
|
14694
14695
|
return {
|
|
14695
14696
|
currentValue: A(() => r.commands.isUnderline().value),
|
|
14696
14697
|
apply: () => r.chain().focus().toggleUnderline().run()
|
|
@@ -14749,7 +14750,7 @@ const aR = {
|
|
|
14749
14750
|
tooltip: pe
|
|
14750
14751
|
},
|
|
14751
14752
|
setup() {
|
|
14752
|
-
const r = z(
|
|
14753
|
+
const r = z(B.EDITOR);
|
|
14753
14754
|
return {
|
|
14754
14755
|
currentValue: r.commands.isStrikeThrough(),
|
|
14755
14756
|
apply: () => r.chain().focus().toggleStrikeThrough().run()
|
|
@@ -14808,7 +14809,7 @@ const hR = {
|
|
|
14808
14809
|
tooltip: pe
|
|
14809
14810
|
},
|
|
14810
14811
|
setup() {
|
|
14811
|
-
const r = z(
|
|
14812
|
+
const r = z(B.EDITOR);
|
|
14812
14813
|
return {
|
|
14813
14814
|
currentValue: A(() => r.isActive("superscript")),
|
|
14814
14815
|
apply: () => r.chain().focus().toggleSuperscript().run()
|
|
@@ -14882,12 +14883,12 @@ const bR = {
|
|
|
14882
14883
|
tooltip: pe
|
|
14883
14884
|
},
|
|
14884
14885
|
styles: [
|
|
14885
|
-
{ id:
|
|
14886
|
-
{ id:
|
|
14887
|
-
{ id:
|
|
14886
|
+
{ id: tn.UPPERCASE, title: "UPPERCASE" },
|
|
14887
|
+
{ id: tn.LOWERCASE, title: "lowercase" },
|
|
14888
|
+
{ id: tn.CAPITALIZE, title: "Capitalize" }
|
|
14888
14889
|
],
|
|
14889
14890
|
setup() {
|
|
14890
|
-
const r = z(
|
|
14891
|
+
const r = z(B.EDITOR);
|
|
14891
14892
|
return { apply: (t) => r.chain().focus().applyCaseStyle(t).run() };
|
|
14892
14893
|
}
|
|
14893
14894
|
}, Vh = {};
|
|
@@ -14952,19 +14953,19 @@ const xR = {
|
|
|
14952
14953
|
name: "AlignmentControl",
|
|
14953
14954
|
alignments: [
|
|
14954
14955
|
{
|
|
14955
|
-
id:
|
|
14956
|
+
id: Xe.LEFT,
|
|
14956
14957
|
tooltip: { text: "Align Left", hotkey: "Mod Shift L" }
|
|
14957
14958
|
},
|
|
14958
14959
|
{
|
|
14959
|
-
id:
|
|
14960
|
+
id: Xe.CENTER,
|
|
14960
14961
|
tooltip: { text: "Align Center", hotkey: "Mod Shift E" }
|
|
14961
14962
|
},
|
|
14962
14963
|
{
|
|
14963
|
-
id:
|
|
14964
|
+
id: Xe.RIGHT,
|
|
14964
14965
|
tooltip: { text: "Align Right", hotkey: "Mod Shift R" }
|
|
14965
14966
|
},
|
|
14966
14967
|
{
|
|
14967
|
-
id:
|
|
14968
|
+
id: Xe.JUSTIFY,
|
|
14968
14969
|
tooltip: { text: "Justify", hotkey: "Mod Shift J" }
|
|
14969
14970
|
}
|
|
14970
14971
|
],
|
|
@@ -14977,7 +14978,7 @@ const xR = {
|
|
|
14977
14978
|
tooltip: pe
|
|
14978
14979
|
},
|
|
14979
14980
|
setup(r, { emit: e }) {
|
|
14980
|
-
const t = z(
|
|
14981
|
+
const t = z(B.EDITOR), n = t.commands.getAlignment();
|
|
14981
14982
|
function i(o) {
|
|
14982
14983
|
t.chain().focus().applyAlignment(o).run(), e("applied");
|
|
14983
14984
|
}
|
|
@@ -15055,7 +15056,7 @@ const TR = {
|
|
|
15055
15056
|
tooltip: pe
|
|
15056
15057
|
},
|
|
15057
15058
|
setup() {
|
|
15058
|
-
const e = z(
|
|
15059
|
+
const e = z(B.EDITOR).commands.getAlignment(), t = q(null), n = q(null), i = yi({ wrapperRef: t, modalRef: n });
|
|
15059
15060
|
return {
|
|
15060
15061
|
wrapperRef: t,
|
|
15061
15062
|
modalRef: n,
|
|
@@ -15160,7 +15161,7 @@ const RR = {
|
|
|
15160
15161
|
tooltip: pe
|
|
15161
15162
|
},
|
|
15162
15163
|
setup() {
|
|
15163
|
-
const r = q(null), e = q(null), t = z(
|
|
15164
|
+
const r = q(null), e = q(null), t = z(B.EDITOR), n = yi({ wrapperRef: r, modalRef: e }), i = t.commands.getLineHeight(), o = (s) => t.commands.applyLineHeight(String(s));
|
|
15164
15165
|
return {
|
|
15165
15166
|
wrapperRef: r,
|
|
15166
15167
|
modalRef: e,
|
|
@@ -15285,7 +15286,7 @@ const jR = {
|
|
|
15285
15286
|
tooltip: pe
|
|
15286
15287
|
},
|
|
15287
15288
|
setup() {
|
|
15288
|
-
const r = z(
|
|
15289
|
+
const r = z(B.EDITOR), e = r.commands.getListType(), t = A(() => !!e.value), n = A(() => e.value || "none"), i = q(we.DISC), o = A(() => e.value === i.value), s = A(() => `list-${i.value}`), a = (u) => {
|
|
15289
15290
|
i.value = u, r.chain().focus().applyList(u).run();
|
|
15290
15291
|
};
|
|
15291
15292
|
return {
|
|
@@ -15349,7 +15350,7 @@ const KR = {
|
|
|
15349
15350
|
tooltip: pe
|
|
15350
15351
|
},
|
|
15351
15352
|
setup() {
|
|
15352
|
-
const r = z(
|
|
15353
|
+
const r = z(B.EDITOR);
|
|
15353
15354
|
return { apply: () => r.chain().focus().removeFormat().run() };
|
|
15354
15355
|
}
|
|
15355
15356
|
}, Kh = {};
|
|
@@ -15397,7 +15398,7 @@ const QR = {
|
|
|
15397
15398
|
name: "LinkControlHeader",
|
|
15398
15399
|
components: { Icon: ye, Button: ie },
|
|
15399
15400
|
setup(r, { emit: e }) {
|
|
15400
|
-
const t = z(
|
|
15401
|
+
const t = z(B.EDITOR);
|
|
15401
15402
|
return { isLink: A(() => t.isActive("link")), removeLink: () => e("remove-link") };
|
|
15402
15403
|
}
|
|
15403
15404
|
}, Gh = {};
|
|
@@ -15464,7 +15465,7 @@ const lP = /* @__PURE__ */ function() {
|
|
|
15464
15465
|
return sP.exports;
|
|
15465
15466
|
}();
|
|
15466
15467
|
function cP() {
|
|
15467
|
-
const r = z(
|
|
15468
|
+
const r = z(B.EDITOR), e = z(B.PAGE_BLOCKS), t = q({ text: "", target: jt.SELF, destination: pt.URL }), n = q({ block: e.value[0].id, url: "" }), i = q({ id: pt.URL });
|
|
15468
15469
|
function o(f) {
|
|
15469
15470
|
t.value.target = f ? jt.BLANK : jt.SELF;
|
|
15470
15471
|
}
|
|
@@ -15542,7 +15543,7 @@ const dP = {
|
|
|
15542
15543
|
}
|
|
15543
15544
|
},
|
|
15544
15545
|
setup(r, { emit: e }) {
|
|
15545
|
-
const t = z(
|
|
15546
|
+
const t = z(B.PAGE_BLOCKS);
|
|
15546
15547
|
return { pageBlocks: t, applyBlock: (i) => {
|
|
15547
15548
|
const o = t.value.find((s) => s.id === i);
|
|
15548
15549
|
e("update", o.id);
|
|
@@ -15808,7 +15809,7 @@ const TP = {
|
|
|
15808
15809
|
tooltip: pe
|
|
15809
15810
|
},
|
|
15810
15811
|
setup() {
|
|
15811
|
-
const r = q(null), e = q(null), t = z(
|
|
15812
|
+
const r = q(null), e = q(null), t = z(B.EDITOR), n = cP(), i = /(^(https?:\/\/|\/)(?:www\.|(?!www))?[^\s])/, o = () => n.linkData.value.text ? !1 : "Can't be empty", s = () => n.currentDestination.value.id !== "url" || i.test(n.destinationHrefs.value.url) ? !1 : "Please enter a valid URL", a = mh({
|
|
15812
15813
|
validations: [o]
|
|
15813
15814
|
}), l = mh({
|
|
15814
15815
|
validations: [s]
|
|
@@ -15877,15 +15878,19 @@ var IP = function() {
|
|
|
15877
15878
|
attrs: {
|
|
15878
15879
|
vertical: ""
|
|
15879
15880
|
}
|
|
15880
|
-
}), n("ToolbarGroup", [n("FontColorControl"), n("BackgroundColorControl")], 1)
|
|
15881
|
+
}), n("ToolbarGroup", [n("FontColorControl"), n("BackgroundColorControl")], 1), e.isPopupMode ? [n("ToolbarDivider", {
|
|
15882
|
+
attrs: {
|
|
15883
|
+
vertical: ""
|
|
15884
|
+
}
|
|
15885
|
+
}), n("ToolbarGroup", [n("ItalicControl"), n("UnderlineControl"), n("StrikeThroughControl"), n("SuperscriptControl"), n("CaseStyleControl")], 1)] : e._e()], 2), n("ToolbarDivider", {
|
|
15881
15886
|
attrs: {
|
|
15882
15887
|
horizontal: ""
|
|
15883
15888
|
}
|
|
15884
|
-
}), n("ToolbarRow", [n("ToolbarGroup", [n("ItalicControl"), n("UnderlineControl"), n("StrikeThroughControl"), n("SuperscriptControl"), n("CaseStyleControl")], 1), n("ToolbarDivider", {
|
|
15889
|
+
}), n("ToolbarRow", [e.isPopupMode ? e._e() : [n("ToolbarGroup", [n("ItalicControl"), n("UnderlineControl"), n("StrikeThroughControl"), n("SuperscriptControl"), n("CaseStyleControl")], 1), n("ToolbarDivider", {
|
|
15885
15890
|
attrs: {
|
|
15886
15891
|
vertical: ""
|
|
15887
15892
|
}
|
|
15888
|
-
}), n("AlignmentControl"), n("ToolbarDivider", {
|
|
15893
|
+
})], n("AlignmentControl"), n("ToolbarDivider", {
|
|
15889
15894
|
attrs: {
|
|
15890
15895
|
vertical: ""
|
|
15891
15896
|
}
|
|
@@ -15897,7 +15902,7 @@ var IP = function() {
|
|
|
15897
15902
|
attrs: {
|
|
15898
15903
|
vertical: ""
|
|
15899
15904
|
}
|
|
15900
|
-
}), n("ToolbarGroup", [n("LinkControl"), n("RemoveFormatControl")], 1)],
|
|
15905
|
+
}), n("ToolbarGroup", [n("LinkControl"), n("RemoveFormatControl")], 1)], 2)], 1);
|
|
15901
15906
|
}, NP = [];
|
|
15902
15907
|
const RP = {
|
|
15903
15908
|
name: "ToolbarFull",
|
|
@@ -15921,6 +15926,9 @@ const RP = {
|
|
|
15921
15926
|
ListControl: WR,
|
|
15922
15927
|
RemoveFormatControl: YR,
|
|
15923
15928
|
LinkControl: FP
|
|
15929
|
+
},
|
|
15930
|
+
setup() {
|
|
15931
|
+
return { isPopupMode: z(B.POPUP_MODE) };
|
|
15924
15932
|
}
|
|
15925
15933
|
}, ep = {};
|
|
15926
15934
|
var PP = /* @__PURE__ */ $(
|
|
@@ -16013,7 +16021,7 @@ const GP = {
|
|
|
16013
16021
|
},
|
|
16014
16022
|
setup(r) {
|
|
16015
16023
|
const e = A(() => r.device === vo.DESKTOP ? LP : qP), t = A(() => r.toolbar.isActiveRef.value), n = q(null);
|
|
16016
|
-
|
|
16024
|
+
br(n, (o) => {
|
|
16017
16025
|
o && r.toolbar.mount(o);
|
|
16018
16026
|
});
|
|
16019
16027
|
const i = A(() => ({
|
|
@@ -16044,19 +16052,19 @@ function YP(r) {
|
|
|
16044
16052
|
const XP = /* @__PURE__ */ function() {
|
|
16045
16053
|
return JP.exports;
|
|
16046
16054
|
}();
|
|
16047
|
-
function ZP({ content: r, onChange: e, extensions: t }) {
|
|
16048
|
-
const
|
|
16055
|
+
function ZP({ content: r, onChange: e, extensions: t, isReadonlyRef: n }) {
|
|
16056
|
+
const i = ny(new XS({
|
|
16049
16057
|
content: wt.normalize(r.value),
|
|
16050
|
-
onUpdate: () => e(
|
|
16058
|
+
onUpdate: () => e(i.getJSON()),
|
|
16051
16059
|
extensions: t,
|
|
16052
16060
|
injectCSS: !1
|
|
16053
16061
|
}));
|
|
16054
|
-
return Dl(() =>
|
|
16055
|
-
if (JSON.stringify(
|
|
16056
|
-
const
|
|
16057
|
-
|
|
16062
|
+
return Dl(() => i.destroy()), br(r, (o) => {
|
|
16063
|
+
if (JSON.stringify(i.getJSON()) !== JSON.stringify(o)) {
|
|
16064
|
+
const a = wt.normalize(o);
|
|
16065
|
+
i.commands.setContent(a, !1);
|
|
16058
16066
|
}
|
|
16059
|
-
}), n;
|
|
16067
|
+
}), br(n, (o) => i.setEditable(!o), { immediate: !0 }), i;
|
|
16060
16068
|
}
|
|
16061
16069
|
function QP({ wrapperRef: r, offsets: e, isActiveRef: t }) {
|
|
16062
16070
|
const n = wo(r);
|
|
@@ -16143,7 +16151,7 @@ const eB = je.create({
|
|
|
16143
16151
|
},
|
|
16144
16152
|
renderHTML({ HTMLAttributes: r }) {
|
|
16145
16153
|
const e = r.value ? `"${r.value}"` : null;
|
|
16146
|
-
return
|
|
16154
|
+
return xr({ font_family: e });
|
|
16147
16155
|
}
|
|
16148
16156
|
}), tB = Ot.create({
|
|
16149
16157
|
name: "heading",
|
|
@@ -16359,7 +16367,7 @@ const rB = te.create({
|
|
|
16359
16367
|
];
|
|
16360
16368
|
},
|
|
16361
16369
|
renderHTML({ HTMLAttributes: r }) {
|
|
16362
|
-
return
|
|
16370
|
+
return xr({ font_weight: r.value });
|
|
16363
16371
|
}
|
|
16364
16372
|
}), iB = je.create({
|
|
16365
16373
|
name: ne.FONT_SIZE,
|
|
@@ -16432,7 +16440,7 @@ const rB = te.create({
|
|
|
16432
16440
|
},
|
|
16433
16441
|
renderHTML({ HTMLAttributes: r }) {
|
|
16434
16442
|
const e = (t) => t ? `${t}px` : null;
|
|
16435
|
-
return
|
|
16443
|
+
return xr({
|
|
16436
16444
|
font_size_mobile: e(r.mobile),
|
|
16437
16445
|
font_size_tablet: e(r.tablet),
|
|
16438
16446
|
font_size_desktop: e(r.desktop)
|
|
@@ -16475,7 +16483,7 @@ const rB = te.create({
|
|
|
16475
16483
|
];
|
|
16476
16484
|
},
|
|
16477
16485
|
renderHTML({ HTMLAttributes: r }) {
|
|
16478
|
-
return
|
|
16486
|
+
return xr({ font_color: r.value });
|
|
16479
16487
|
}
|
|
16480
16488
|
}), sB = je.create({
|
|
16481
16489
|
name: ne.BACKGROUND_COLOR,
|
|
@@ -16507,7 +16515,7 @@ const rB = te.create({
|
|
|
16507
16515
|
];
|
|
16508
16516
|
},
|
|
16509
16517
|
renderHTML({ HTMLAttributes: r }) {
|
|
16510
|
-
return
|
|
16518
|
+
return xr({ background_color: r.value });
|
|
16511
16519
|
}
|
|
16512
16520
|
}), aB = te.create({
|
|
16513
16521
|
name: "device_manager",
|
|
@@ -16574,7 +16582,7 @@ const rB = te.create({
|
|
|
16574
16582
|
},
|
|
16575
16583
|
renderHTML({ HTMLAttributes: r }) {
|
|
16576
16584
|
const e = r.italic ? "italic" : null;
|
|
16577
|
-
return
|
|
16585
|
+
return xr({ font_style: e });
|
|
16578
16586
|
}
|
|
16579
16587
|
}), cB = je.create({
|
|
16580
16588
|
name: ne.TEXT_DECORATION,
|
|
@@ -16674,7 +16682,7 @@ const rB = te.create({
|
|
|
16674
16682
|
},
|
|
16675
16683
|
renderHTML({ HTMLAttributes: r }) {
|
|
16676
16684
|
const e = [];
|
|
16677
|
-
return r.underline && e.push("underline"), r.strike_through && e.push("line-through"),
|
|
16685
|
+
return r.underline && e.push("underline"), r.strike_through && e.push("line-through"), xr({ text_decoration: e.join(" ") });
|
|
16678
16686
|
}
|
|
16679
16687
|
}), uB = te.create({
|
|
16680
16688
|
name: "case_style",
|
|
@@ -16682,11 +16690,11 @@ const rB = te.create({
|
|
|
16682
16690
|
return {
|
|
16683
16691
|
applyCaseStyle: O(({ commands: r }, e) => {
|
|
16684
16692
|
switch (e) {
|
|
16685
|
-
case
|
|
16693
|
+
case tn.CAPITALIZE:
|
|
16686
16694
|
return r.applyCapitalize();
|
|
16687
|
-
case
|
|
16695
|
+
case tn.LOWERCASE:
|
|
16688
16696
|
return r.applyLowerCase();
|
|
16689
|
-
case
|
|
16697
|
+
case tn.UPPERCASE:
|
|
16690
16698
|
return r.applyUpperCase();
|
|
16691
16699
|
}
|
|
16692
16700
|
}),
|
|
@@ -16755,10 +16763,10 @@ const rB = te.create({
|
|
|
16755
16763
|
};
|
|
16756
16764
|
},
|
|
16757
16765
|
addKeyboardShortcuts: () => ({
|
|
16758
|
-
"Mod-Shift-l": ze("applyAlignment",
|
|
16759
|
-
"Mod-Shift-e": ze("applyAlignment",
|
|
16760
|
-
"Mod-Shift-r": ze("applyAlignment",
|
|
16761
|
-
"Mod-Shift-j": ze("applyAlignment",
|
|
16766
|
+
"Mod-Shift-l": ze("applyAlignment", Xe.LEFT),
|
|
16767
|
+
"Mod-Shift-e": ze("applyAlignment", Xe.CENTER),
|
|
16768
|
+
"Mod-Shift-r": ze("applyAlignment", Xe.RIGHT),
|
|
16769
|
+
"Mod-Shift-j": ze("applyAlignment", Xe.JUSTIFY)
|
|
16762
16770
|
})
|
|
16763
16771
|
}), op = {
|
|
16764
16772
|
mobile: null,
|
|
@@ -16980,28 +16988,28 @@ var W = function() {
|
|
|
16980
16988
|
for (; o < s - 1; )
|
|
16981
16989
|
a = i(), w(e, t[o], a), e = a, o++;
|
|
16982
16990
|
w(e, t[s - 1], n);
|
|
16983
|
-
}, Ue = "DOMAIN", Dt = "LOCALHOST",
|
|
16991
|
+
}, Ue = "DOMAIN", Dt = "LOCALHOST", ct = "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
16992
|
__proto__: null,
|
|
16985
16993
|
DOMAIN: Ue,
|
|
16986
16994
|
LOCALHOST: Dt,
|
|
16987
|
-
TLD:
|
|
16995
|
+
TLD: ct,
|
|
16988
16996
|
NUM: Pe,
|
|
16989
16997
|
PROTOCOL: pn,
|
|
16990
16998
|
MAILTO: Rc,
|
|
16991
16999
|
WS: zg,
|
|
16992
17000
|
NL: Pc,
|
|
16993
|
-
OPENBRACE:
|
|
17001
|
+
OPENBRACE: Kr,
|
|
16994
17002
|
OPENBRACKET: Jn,
|
|
16995
17003
|
OPENANGLEBRACKET: Yn,
|
|
16996
17004
|
OPENPAREN: Xn,
|
|
16997
17005
|
CLOSEBRACE: ar,
|
|
16998
|
-
CLOSEBRACKET:
|
|
16999
|
-
CLOSEANGLEBRACKET:
|
|
17000
|
-
CLOSEPAREN:
|
|
17006
|
+
CLOSEBRACKET: Gr,
|
|
17007
|
+
CLOSEANGLEBRACKET: Jr,
|
|
17008
|
+
CLOSEPAREN: Yr,
|
|
17001
17009
|
AMPERSAND: Co,
|
|
17002
17010
|
APOSTROPHE: Oo,
|
|
17003
17011
|
ASTERISK: ko,
|
|
17004
|
-
AT:
|
|
17012
|
+
AT: Xr,
|
|
17005
17013
|
BACKSLASH: Ao,
|
|
17006
17014
|
BACKTICK: To,
|
|
17007
17015
|
CARET: Mo,
|
|
@@ -17034,11 +17042,11 @@ function yB() {
|
|
|
17034
17042
|
var x = a();
|
|
17035
17043
|
return x.t = _, x;
|
|
17036
17044
|
};
|
|
17037
|
-
vB(e, [["'", M(Oo)], ["{", M(
|
|
17045
|
+
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
17046
|
`, M(Pc)), oe(e, ap, o), w(o, `
|
|
17039
17047
|
`, W()), oe(o, ap, o);
|
|
17040
17048
|
for (var u = 0; u < sp.length; u++)
|
|
17041
|
-
or(e, sp[u], l(
|
|
17049
|
+
or(e, sp[u], l(ct), a);
|
|
17042
17050
|
var c = a(), f = a(), d = a(), h = a();
|
|
17043
17051
|
or(e, "file", c, a), or(e, "ftp", f, a), or(e, "http", d, a), or(e, "mailto", h, a);
|
|
17044
17052
|
var p = a(), m = M(pn), v = M(Rc);
|
|
@@ -17170,20 +17178,20 @@ Ho.prototype = {
|
|
|
17170
17178
|
};
|
|
17171
17179
|
}
|
|
17172
17180
|
};
|
|
17173
|
-
function
|
|
17181
|
+
function Tr(r, e) {
|
|
17174
17182
|
function t(n, i) {
|
|
17175
17183
|
this.t = r, this.v = n, this.tk = i;
|
|
17176
17184
|
}
|
|
17177
17185
|
return EB(Ho, t, e), t;
|
|
17178
17186
|
}
|
|
17179
|
-
var jg =
|
|
17187
|
+
var jg = Tr("email", {
|
|
17180
17188
|
isLink: !0
|
|
17181
|
-
}), Sl =
|
|
17189
|
+
}), Sl = Tr("email", {
|
|
17182
17190
|
isLink: !0,
|
|
17183
17191
|
toHref: function() {
|
|
17184
17192
|
return "mailto:" + this.toString();
|
|
17185
17193
|
}
|
|
17186
|
-
}), El =
|
|
17194
|
+
}), El = Tr("text"), Vg = Tr("nl"), Rt = Tr("url", {
|
|
17187
17195
|
isLink: !0,
|
|
17188
17196
|
toHref: function() {
|
|
17189
17197
|
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 +17209,7 @@ var jg = Ar("email", {
|
|
|
17201
17209
|
__proto__: null,
|
|
17202
17210
|
MultiToken: Ho,
|
|
17203
17211
|
Base: Ho,
|
|
17204
|
-
createTokenClass:
|
|
17212
|
+
createTokenClass: Tr,
|
|
17205
17213
|
MailtoEmail: jg,
|
|
17206
17214
|
Email: Sl,
|
|
17207
17215
|
Text: El,
|
|
@@ -17209,12 +17217,12 @@ var jg = Ar("email", {
|
|
|
17209
17217
|
Url: Rt
|
|
17210
17218
|
});
|
|
17211
17219
|
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),
|
|
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,
|
|
17220
|
+
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), at = W(), Ee = W(), Y = W(), De = W(), Mr = M(Vg);
|
|
17221
|
+
w(r, Pc, Mr), w(r, pn, e), w(r, Rc, t), w(e, xt, n), w(n, xt, i), w(r, ct, o), w(r, Ue, o), w(r, Dt, a), w(r, Pe, o), w(i, ct, c), w(i, Ue, c), w(i, Pe, c), w(i, Dt, c), w(o, Pt, s), w(E, Pt, F), w(s, ct, a), w(s, Ue, o), w(s, Pe, o), w(s, Dt, o), w(F, ct, 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);
|
|
17222
|
+
var K = [Co, ko, Xr, Ao, To, Mo, $o, Ue, Fo, Io, Dt, Pe, No, Ro, Po, Bo, pn, xt, Vo, zo, ct, jo], X = [Oo, Jr, ar, Gr, Yr, Zn, Bc, Pt, Lc, Yn, Kr, Jn, Xn, Lo, zc, jc];
|
|
17223
|
+
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, ct, J), w(t, Ue, J), w(t, Pe, J), w(t, Dt, J), N(J, K, J), N(J, X, at), N(at, K, J), N(at, X, at);
|
|
17224
|
+
var St = [Co, Oo, ko, Ao, To, Mo, ar, $o, Ue, Fo, Io, Pe, Kr, No, Ro, Po, Bo, Lo, xt, Vo, zo, ct, jo];
|
|
17225
|
+
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, ct, E), w(Y, Ue, E), w(Y, Pe, E), w(Y, Dt, V), r;
|
|
17218
17226
|
}
|
|
17219
17227
|
function xB(r, e, t) {
|
|
17220
17228
|
for (var n = t.length, i = 0, o = [], s = []; i < n; ) {
|
|
@@ -17259,7 +17267,7 @@ function kB() {
|
|
|
17259
17267
|
tokens: DB
|
|
17260
17268
|
};
|
|
17261
17269
|
for (var r = {
|
|
17262
|
-
createTokenClass:
|
|
17270
|
+
createTokenClass: Tr
|
|
17263
17271
|
}, e = 0; e < Me.pluginQueue.length; e++)
|
|
17264
17272
|
Me.pluginQueue[e][1]({
|
|
17265
17273
|
scanner: Me.scanner,
|
|
@@ -17284,7 +17292,7 @@ function cp(r) {
|
|
|
17284
17292
|
}
|
|
17285
17293
|
function AB(r) {
|
|
17286
17294
|
return new Te({
|
|
17287
|
-
key: new
|
|
17295
|
+
key: new rt("autolink"),
|
|
17288
17296
|
appendTransaction: (e, t, n) => {
|
|
17289
17297
|
const i = e.some((c) => c.docChanged) && !t.doc.eq(n.doc), o = e.some((c) => c.getMeta("preventAutolink"));
|
|
17290
17298
|
if (!i || o)
|
|
@@ -17319,7 +17327,7 @@ function AB(r) {
|
|
|
17319
17327
|
}
|
|
17320
17328
|
function TB(r) {
|
|
17321
17329
|
return new Te({
|
|
17322
|
-
key: new
|
|
17330
|
+
key: new rt("handleClickLink"),
|
|
17323
17331
|
props: {
|
|
17324
17332
|
handleClick: (e, t, n) => {
|
|
17325
17333
|
var i;
|
|
@@ -17331,7 +17339,7 @@ function TB(r) {
|
|
|
17331
17339
|
}
|
|
17332
17340
|
function MB(r) {
|
|
17333
17341
|
return new Te({
|
|
17334
|
-
key: new
|
|
17342
|
+
key: new rt("handlePasteLink"),
|
|
17335
17343
|
props: {
|
|
17336
17344
|
handlePaste: (e, t, n) => {
|
|
17337
17345
|
const { state: i } = e, { selection: o } = i, { empty: s } = o;
|
|
@@ -17708,7 +17716,7 @@ var zB = /* @__PURE__ */ function(r) {
|
|
|
17708
17716
|
}, e;
|
|
17709
17717
|
}(he), qg = he;
|
|
17710
17718
|
const jB = 500;
|
|
17711
|
-
class
|
|
17719
|
+
class Ye {
|
|
17712
17720
|
constructor(e, t) {
|
|
17713
17721
|
this.items = e, this.eventCount = t;
|
|
17714
17722
|
}
|
|
@@ -17730,33 +17738,33 @@ class Je {
|
|
|
17730
17738
|
return;
|
|
17731
17739
|
}
|
|
17732
17740
|
if (i) {
|
|
17733
|
-
c.push(new
|
|
17741
|
+
c.push(new ut(f.map));
|
|
17734
17742
|
let h = f.step.map(i.slice(o)), p;
|
|
17735
|
-
h && s.maybeStep(h).doc && (p = s.mapping.maps[s.mapping.maps.length - 1], u.push(new
|
|
17743
|
+
h && s.maybeStep(h).doc && (p = s.mapping.maps[s.mapping.maps.length - 1], u.push(new ut(p, void 0, void 0, u.length + c.length))), o--, p && i.appendMap(p, o);
|
|
17736
17744
|
} else
|
|
17737
17745
|
s.maybeStep(f.step);
|
|
17738
17746
|
if (f.selection)
|
|
17739
|
-
return a = i ? f.selection.map(i.slice(o)) : f.selection, l = new
|
|
17747
|
+
return a = i ? f.selection.map(i.slice(o)) : f.selection, l = new Ye(this.items.slice(0, n).append(c.reverse().concat(u)), this.eventCount - 1), !1;
|
|
17740
17748
|
}, this.items.length, 0), { remaining: l, transform: s, selection: a };
|
|
17741
17749
|
}
|
|
17742
17750
|
addTransform(e, t, n, i) {
|
|
17743
17751
|
let o = [], s = this.eventCount, a = this.items, l = !i && a.length ? a.get(a.length - 1) : null;
|
|
17744
17752
|
for (let c = 0; c < e.steps.length; c++) {
|
|
17745
|
-
let f = e.steps[c].invert(e.docs[c]), d = new
|
|
17753
|
+
let f = e.steps[c].invert(e.docs[c]), d = new ut(e.mapping.maps[c], f, t), h;
|
|
17746
17754
|
(h = l && l.merge(d)) && (d = h, c ? o.pop() : a = a.slice(0, a.length - 1)), o.push(d), t && (s++, t = void 0), i || (l = d);
|
|
17747
17755
|
}
|
|
17748
17756
|
let u = s - n.depth;
|
|
17749
|
-
return u > HB && (a = VB(a, u), s -= u), new
|
|
17757
|
+
return u > HB && (a = VB(a, u), s -= u), new Ye(a.append(o), s);
|
|
17750
17758
|
}
|
|
17751
17759
|
remapping(e, t) {
|
|
17752
|
-
let n = new
|
|
17760
|
+
let n = new Zr();
|
|
17753
17761
|
return this.items.forEach((i, o) => {
|
|
17754
17762
|
let s = i.mirrorOffset != null && o - i.mirrorOffset >= e ? n.maps.length - i.mirrorOffset : void 0;
|
|
17755
17763
|
n.appendMap(i.map, s);
|
|
17756
17764
|
}, e, t), n;
|
|
17757
17765
|
}
|
|
17758
17766
|
addMaps(e) {
|
|
17759
|
-
return this.eventCount == 0 ? this : new
|
|
17767
|
+
return this.eventCount == 0 ? this : new Ye(this.items.append(e.map((t) => new ut(t))), this.eventCount);
|
|
17760
17768
|
}
|
|
17761
17769
|
rebased(e, t) {
|
|
17762
17770
|
if (!this.eventCount)
|
|
@@ -17774,14 +17782,14 @@ class Je {
|
|
|
17774
17782
|
let p = o.maps[h];
|
|
17775
17783
|
if (d.step) {
|
|
17776
17784
|
let m = e.steps[h].invert(e.docs[h]), v = d.selection && d.selection.map(o.slice(l + 1, h));
|
|
17777
|
-
v && a++, n.push(new
|
|
17785
|
+
v && a++, n.push(new ut(p, m, v));
|
|
17778
17786
|
} else
|
|
17779
|
-
n.push(new
|
|
17787
|
+
n.push(new ut(p));
|
|
17780
17788
|
}, i);
|
|
17781
17789
|
let u = [];
|
|
17782
17790
|
for (let d = t; d < s; d++)
|
|
17783
|
-
u.push(new
|
|
17784
|
-
let c = this.items.slice(0, i).append(u).append(n), f = new
|
|
17791
|
+
u.push(new ut(o.maps[d]));
|
|
17792
|
+
let c = this.items.slice(0, i).append(u).append(n), f = new Ye(c, a);
|
|
17785
17793
|
return f.emptyItemCount() > jB && (f = f.compress(this.items.length - n.length)), f;
|
|
17786
17794
|
}
|
|
17787
17795
|
emptyItemCount() {
|
|
@@ -17800,15 +17808,15 @@ class Je {
|
|
|
17800
17808
|
if (n--, u && t.appendMap(u, n), l) {
|
|
17801
17809
|
let c = s.selection && s.selection.map(t.slice(n));
|
|
17802
17810
|
c && o++;
|
|
17803
|
-
let f = new
|
|
17811
|
+
let f = new ut(u.invert(), l, c), d, h = i.length - 1;
|
|
17804
17812
|
(d = i.length && i[h].merge(f)) ? i[h] = d : i.push(f);
|
|
17805
17813
|
}
|
|
17806
17814
|
} else
|
|
17807
17815
|
s.map && n--;
|
|
17808
|
-
}, this.items.length, 0), new
|
|
17816
|
+
}, this.items.length, 0), new Ye(qg.from(i.reverse()), o);
|
|
17809
17817
|
}
|
|
17810
17818
|
}
|
|
17811
|
-
|
|
17819
|
+
Ye.empty = new Ye(qg.empty, 0);
|
|
17812
17820
|
function VB(r, e) {
|
|
17813
17821
|
let t;
|
|
17814
17822
|
return r.forEach((n, i) => {
|
|
@@ -17816,7 +17824,7 @@ function VB(r, e) {
|
|
|
17816
17824
|
return t = i, !1;
|
|
17817
17825
|
}), r.slice(t);
|
|
17818
17826
|
}
|
|
17819
|
-
class
|
|
17827
|
+
class ut {
|
|
17820
17828
|
constructor(e, t, n, i) {
|
|
17821
17829
|
this.map = e, this.step = t, this.selection = n, this.mirrorOffset = i;
|
|
17822
17830
|
}
|
|
@@ -17824,7 +17832,7 @@ class ct {
|
|
|
17824
17832
|
if (this.step && e.step && !e.selection) {
|
|
17825
17833
|
let t = e.step.merge(this.step);
|
|
17826
17834
|
if (t)
|
|
17827
|
-
return new
|
|
17835
|
+
return new ut(t.getMap().invert(), t, this.selection);
|
|
17828
17836
|
}
|
|
17829
17837
|
}
|
|
17830
17838
|
}
|
|
@@ -17846,7 +17854,7 @@ function WB(r, e, t, n) {
|
|
|
17846
17854
|
return s.getMeta(qt).redo ? new Bt(r.done.addTransform(t, void 0, n, eo(e)), r.undone, up(t.mapping.maps[t.steps.length - 1]), r.prevTime) : new Bt(r.done, r.undone.addTransform(t, void 0, n, eo(e)), null, r.prevTime);
|
|
17847
17855
|
if (t.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
17848
17856
|
let a = r.prevTime == 0 || !s && (r.prevTime < (t.time || 0) - n.newGroupDelay || !qB(t, r.prevRanges)), l = s ? Ia(r.prevRanges, t.mapping) : up(t.mapping.maps[t.steps.length - 1]);
|
|
17849
|
-
return new Bt(r.done.addTransform(t, a ? e.selection.getBookmark() : void 0, n, eo(e)),
|
|
17857
|
+
return new Bt(r.done.addTransform(t, a ? e.selection.getBookmark() : void 0, n, eo(e)), Ye.empty, l, t.time);
|
|
17850
17858
|
} else
|
|
17851
17859
|
return (o = t.getMeta("rebased")) ? new Bt(r.done.rebased(t, o), r.undone.rebased(t, o), Ia(r.prevRanges, t.mapping), r.prevTime) : new Bt(r.done.addMaps(t.mapping.maps), r.undone.addMaps(t.mapping.maps), Ia(r.prevRanges, t.mapping), r.prevTime);
|
|
17852
17860
|
}
|
|
@@ -17895,7 +17903,7 @@ function eo(r) {
|
|
|
17895
17903
|
}
|
|
17896
17904
|
return Na;
|
|
17897
17905
|
}
|
|
17898
|
-
const qt = new
|
|
17906
|
+
const qt = new rt("history"), UB = new rt("closeHistory");
|
|
17899
17907
|
function KB(r = {}) {
|
|
17900
17908
|
return r = {
|
|
17901
17909
|
depth: r.depth || 100,
|
|
@@ -17904,7 +17912,7 @@ function KB(r = {}) {
|
|
|
17904
17912
|
key: qt,
|
|
17905
17913
|
state: {
|
|
17906
17914
|
init() {
|
|
17907
|
-
return new Bt(
|
|
17915
|
+
return new Bt(Ye.empty, Ye.empty, null, 0);
|
|
17908
17916
|
},
|
|
17909
17917
|
apply(e, t, n) {
|
|
17910
17918
|
return WB(t, n, e, r);
|
|
@@ -18065,7 +18073,7 @@ class aL {
|
|
|
18065
18073
|
static create(e) {
|
|
18066
18074
|
const t = new this(e || {});
|
|
18067
18075
|
return new Te({
|
|
18068
|
-
key: new
|
|
18076
|
+
key: new rt(this.name),
|
|
18069
18077
|
props: t.buildProps()
|
|
18070
18078
|
});
|
|
18071
18079
|
}
|
|
@@ -18126,7 +18134,7 @@ const cL = te.create({
|
|
|
18126
18134
|
cL
|
|
18127
18135
|
];
|
|
18128
18136
|
function fL(r) {
|
|
18129
|
-
const e = (i) => r.presetsRef.value.find((o) => o.id === i), t = e(r.defaultPresetId), n = e(
|
|
18137
|
+
const e = (i) => r.presetsRef.value.find((o) => o.id === i), t = e(r.defaultPresetId), n = e(r.linkPresetId);
|
|
18130
18138
|
return uL().concat([
|
|
18131
18139
|
rB.configure({
|
|
18132
18140
|
presets: r.presetsRef,
|
|
@@ -18229,6 +18237,10 @@ const Ra = 5, dp = 112, mL = {
|
|
|
18229
18237
|
type: [Number, String],
|
|
18230
18238
|
required: !0
|
|
18231
18239
|
},
|
|
18240
|
+
linkPresetId: {
|
|
18241
|
+
type: [Number, String],
|
|
18242
|
+
required: !0
|
|
18243
|
+
},
|
|
18232
18244
|
basePresetClass: {
|
|
18233
18245
|
type: String,
|
|
18234
18246
|
required: !0
|
|
@@ -18269,6 +18281,16 @@ const Ra = 5, dp = 112, mL = {
|
|
|
18269
18281
|
type: Array,
|
|
18270
18282
|
required: !0
|
|
18271
18283
|
},
|
|
18284
|
+
readonly: {
|
|
18285
|
+
type: Boolean,
|
|
18286
|
+
required: !1,
|
|
18287
|
+
default: !1
|
|
18288
|
+
},
|
|
18289
|
+
popupMode: {
|
|
18290
|
+
type: Boolean,
|
|
18291
|
+
required: !1,
|
|
18292
|
+
default: !1
|
|
18293
|
+
},
|
|
18272
18294
|
window: {
|
|
18273
18295
|
required: !1,
|
|
18274
18296
|
default: () => window
|
|
@@ -18280,43 +18302,45 @@ const Ra = 5, dp = 112, mL = {
|
|
|
18280
18302
|
],
|
|
18281
18303
|
setup(r, { emit: e }) {
|
|
18282
18304
|
Ct.use(r.window);
|
|
18283
|
-
const t = r.fonts.map((
|
|
18284
|
-
var
|
|
18285
|
-
return ((
|
|
18286
|
-
}), s = QP({
|
|
18305
|
+
const t = r.fonts.map((p) => new dL(p)), n = q(null), i = q(null), o = A(() => {
|
|
18306
|
+
var p;
|
|
18307
|
+
return ((p = i.value) == null ? void 0 : p.$el) || document.body;
|
|
18308
|
+
}), s = A(() => r.active && !r.readonly), a = QP({
|
|
18287
18309
|
wrapperRef: i,
|
|
18288
|
-
isActiveRef:
|
|
18310
|
+
isActiveRef: s,
|
|
18289
18311
|
offsets: r.toolbarOffsets
|
|
18290
|
-
}),
|
|
18291
|
-
function
|
|
18292
|
-
e("input",
|
|
18312
|
+
}), l = () => a.update();
|
|
18313
|
+
function u(p) {
|
|
18314
|
+
e("input", p), l();
|
|
18293
18315
|
}
|
|
18294
|
-
const
|
|
18316
|
+
const c = fe(r, "pageBlocks"), f = ZP({
|
|
18295
18317
|
content: fe(r, "value"),
|
|
18296
|
-
onChange: (
|
|
18318
|
+
onChange: (p) => u(p),
|
|
18319
|
+
isReadonlyRef: fe(r, "readonly"),
|
|
18297
18320
|
extensions: fL({
|
|
18298
18321
|
fonts: t,
|
|
18299
18322
|
minFontSize: Ra,
|
|
18300
18323
|
maxFontSize: dp,
|
|
18301
18324
|
presetsRef: fe(r, "presets"),
|
|
18302
18325
|
defaultPresetId: r.defaultPresetId,
|
|
18326
|
+
linkPresetId: r.linkPresetId,
|
|
18303
18327
|
makePresetVariable: r.makePresetVariable,
|
|
18304
18328
|
basePresetClass: r.basePresetClass,
|
|
18305
18329
|
baseListClass: r.baseListClass,
|
|
18306
18330
|
deviceRef: fe(r, "device"),
|
|
18307
|
-
pageBlocksRef:
|
|
18331
|
+
pageBlocksRef: c,
|
|
18308
18332
|
wrapperRef: o
|
|
18309
18333
|
})
|
|
18310
|
-
}),
|
|
18334
|
+
}), d = new Array(dp - Ra + 1).fill(0).map((p, m) => String(m + Ra)), h = new sI({
|
|
18311
18335
|
listRef: fe(r, "favoriteColors"),
|
|
18312
|
-
triggerUpdate: (
|
|
18336
|
+
triggerUpdate: (p) => e("update-favorite-colors", p)
|
|
18313
18337
|
});
|
|
18314
|
-
return
|
|
18315
|
-
editor:
|
|
18338
|
+
return Ke(B.EDITOR, f), Ke(B.FONTS, t), Ke(B.FONT_SIZES, d), Ke(B.LOCAL_STORAGE, new oI(localStorage)), Ke(B.FAVORITE_COLORS, h), Ke(B.PAGE_BLOCKS, c), Ke(B.POPUP_MODE, r.popupMode), {
|
|
18339
|
+
editor: f,
|
|
18316
18340
|
toolbarRef: n,
|
|
18317
18341
|
wysiwygRef: i,
|
|
18318
|
-
toolbar:
|
|
18319
|
-
updateToolbar:
|
|
18342
|
+
toolbar: a,
|
|
18343
|
+
updateToolbar: l
|
|
18320
18344
|
};
|
|
18321
18345
|
}
|
|
18322
18346
|
}, hp = {};
|