@harbour-enterprises/superdoc 0.11.18 → 0.11.20
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/chunks/{super-editor.es-DE2LvQ4V.es.js → super-editor.es-Du1kHoDA.es.js} +492 -476
- package/dist/chunks/{super-editor.es-D8ziHk1x.cjs → super-editor.es-DvREqt6O.cjs} +25 -25
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-B25jWkqJ.js → converter-CwMvN1V7.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DNmQADIe.js → docx-zipper-CW3YnwaW.js} +1 -1
- package/dist/super-editor/chunks/{editor-DKyTaWEI.js → editor-CR8riiuL.js} +538 -522
- package/dist/super-editor/chunks/{toolbar-C6UiTU1Z.js → toolbar-BZ4Xi416.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/extensions/keymap.d.ts +3 -3
- package/dist/super-editor/core/extensions/keymap.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/search/search.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +476 -460
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -8758,14 +8758,14 @@
|
|
|
8758
8758
|
};
|
|
8759
8759
|
var fl$2 = Ho$3.exports;
|
|
8760
8760
|
const ge$1 = /* @__PURE__ */ ul$2(fl$2);
|
|
8761
|
-
var Pr
|
|
8761
|
+
var Pr, Ui$2;
|
|
8762
8762
|
function Wo$2() {
|
|
8763
|
-
return Ui$2 || (Ui$2 = 1, Pr
|
|
8763
|
+
return Ui$2 || (Ui$2 = 1, Pr = xi$2().EventEmitter), Pr;
|
|
8764
8764
|
}
|
|
8765
8765
|
const vr$2 = /* @__PURE__ */ Ou$1(al$2);
|
|
8766
|
-
var Or$1 = {}, Lr$1 = {}, _r$
|
|
8766
|
+
var Or$1 = {}, Lr$1 = {}, _r$2, ji$2;
|
|
8767
8767
|
function Jo$2() {
|
|
8768
|
-
return ji$2 || (ji$2 = 1, _r$
|
|
8768
|
+
return ji$2 || (ji$2 = 1, _r$2 = function() {
|
|
8769
8769
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
8770
8770
|
return false;
|
|
8771
8771
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -8791,7 +8791,7 @@
|
|
|
8791
8791
|
return false;
|
|
8792
8792
|
}
|
|
8793
8793
|
return true;
|
|
8794
|
-
}), _r$
|
|
8794
|
+
}), _r$2;
|
|
8795
8795
|
}
|
|
8796
8796
|
var qr$1, Hi$2;
|
|
8797
8797
|
function Er$1() {
|
|
@@ -8803,7 +8803,7 @@
|
|
|
8803
8803
|
}, qr$1;
|
|
8804
8804
|
}
|
|
8805
8805
|
var Mr$2, Vi$2;
|
|
8806
|
-
function $o$
|
|
8806
|
+
function $o$2() {
|
|
8807
8807
|
return Vi$2 || (Vi$2 = 1, Mr$2 = Object), Mr$2;
|
|
8808
8808
|
}
|
|
8809
8809
|
var Ur$1, zi$2;
|
|
@@ -8826,9 +8826,9 @@
|
|
|
8826
8826
|
function Ko$2() {
|
|
8827
8827
|
return $i$2 || ($i$2 = 1, zr$2 = SyntaxError), zr$2;
|
|
8828
8828
|
}
|
|
8829
|
-
var Gr$
|
|
8829
|
+
var Gr$1, Ki$2;
|
|
8830
8830
|
function $t$2() {
|
|
8831
|
-
return Ki$2 || (Ki$2 = 1, Gr$
|
|
8831
|
+
return Ki$2 || (Ki$2 = 1, Gr$1 = TypeError), Gr$1;
|
|
8832
8832
|
}
|
|
8833
8833
|
var Wr, Xi$2;
|
|
8834
8834
|
function gl$2() {
|
|
@@ -8920,7 +8920,7 @@
|
|
|
8920
8920
|
function Yo$1() {
|
|
8921
8921
|
if (cs$2) return an$3;
|
|
8922
8922
|
cs$2 = 1;
|
|
8923
|
-
var r22 = $o$
|
|
8923
|
+
var r22 = $o$2();
|
|
8924
8924
|
return an$3 = r22.getPrototypeOf || null, an$3;
|
|
8925
8925
|
}
|
|
8926
8926
|
var un$3, fs$2;
|
|
@@ -9055,7 +9055,7 @@
|
|
|
9055
9055
|
function ea$2() {
|
|
9056
9056
|
if (As$1) return yn$3;
|
|
9057
9057
|
As$1 = 1;
|
|
9058
|
-
var r22, e = $o$
|
|
9058
|
+
var r22, e = $o$2(), t = dl$2(), n = ml$2(), i3 = pl$2(), s = hl$2(), o = Ko$2(), a = $t$2(), u = gl$2(), c3 = wl$2(), l = yl$2(), h3 = bl$2(), g = xl$2(), E3 = Al$2(), D3 = Dl$2(), v = El$2(), F3 = Function, w = function(I3) {
|
|
9059
9059
|
try {
|
|
9060
9060
|
return F3('"use strict"; return (' + I3 + ").constructor;")();
|
|
9061
9061
|
} catch {
|
|
@@ -15324,7 +15324,7 @@ Actual: ` + p3.attribValue
|
|
|
15324
15324
|
Parse a document from the content of a DOM node.
|
|
15325
15325
|
*/
|
|
15326
15326
|
parse(e, t = {}) {
|
|
15327
|
-
let n = new co$
|
|
15327
|
+
let n = new co$3(this, t, false);
|
|
15328
15328
|
return n.addAll(e, we$1.none, t.from, t.to), n.finish();
|
|
15329
15329
|
}
|
|
15330
15330
|
/**
|
|
@@ -15336,7 +15336,7 @@ Actual: ` + p3.attribValue
|
|
|
15336
15336
|
the left of the input and the end of nodes at the end.
|
|
15337
15337
|
*/
|
|
15338
15338
|
parseSlice(e, t = {}) {
|
|
15339
|
-
let n = new co$
|
|
15339
|
+
let n = new co$3(this, t, true);
|
|
15340
15340
|
return n.addAll(e, we$1.none, t.from, t.to), ae$3.maxOpen(n.finish());
|
|
15341
15341
|
}
|
|
15342
15342
|
/**
|
|
@@ -15393,13 +15393,13 @@ Actual: ` + p3.attribValue
|
|
|
15393
15393
|
for (let i3 in e.marks) {
|
|
15394
15394
|
let s = e.marks[i3].spec.parseDOM;
|
|
15395
15395
|
s && s.forEach((o) => {
|
|
15396
|
-
n(o = fo$
|
|
15396
|
+
n(o = fo$2(o)), o.mark || o.ignore || o.clearMark || (o.mark = i3);
|
|
15397
15397
|
});
|
|
15398
15398
|
}
|
|
15399
15399
|
for (let i3 in e.nodes) {
|
|
15400
15400
|
let s = e.nodes[i3].spec.parseDOM;
|
|
15401
15401
|
s && s.forEach((o) => {
|
|
15402
|
-
n(o = fo$
|
|
15402
|
+
n(o = fo$2(o)), o.node || o.ignore || o.mark || (o.node = i3);
|
|
15403
15403
|
});
|
|
15404
15404
|
}
|
|
15405
15405
|
return t;
|
|
@@ -15490,7 +15490,7 @@ Actual: ` + p3.attribValue
|
|
|
15490
15490
|
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !La$2.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
|
|
15491
15491
|
}
|
|
15492
15492
|
};
|
|
15493
|
-
let co$
|
|
15493
|
+
let co$3 = class co {
|
|
15494
15494
|
constructor(e, t, n) {
|
|
15495
15495
|
this.parser = e, this.options = t, this.isOpen = n, this.open = 0, this.localPreserveWS = false;
|
|
15496
15496
|
let i3 = t.topNode, s, o = lo$3(null, t.preserveWhitespace, 0) | (n ? ur$2 : 0);
|
|
@@ -15768,7 +15768,7 @@ Actual: ` + p3.attribValue
|
|
|
15768
15768
|
function ef$2(r22, e) {
|
|
15769
15769
|
return (r22.matches || r22.msMatchesSelector || r22.webkitMatchesSelector || r22.mozMatchesSelector).call(r22, e);
|
|
15770
15770
|
}
|
|
15771
|
-
function fo$
|
|
15771
|
+
function fo$2(r22) {
|
|
15772
15772
|
let e = {};
|
|
15773
15773
|
for (let t in r22)
|
|
15774
15774
|
e[t] = r22[t];
|
|
@@ -16673,9 +16673,9 @@ Actual: ` + p3.attribValue
|
|
|
16673
16673
|
}
|
|
16674
16674
|
function Ip$1(r22, e, t = null, n = r22) {
|
|
16675
16675
|
let i3 = cf$2(r22, e), s = i3 && ff$2(n, e);
|
|
16676
|
-
return s ? i3.map(wo$
|
|
16676
|
+
return s ? i3.map(wo$2).concat({ type: e, attrs: t }).concat(s.map(wo$2)) : null;
|
|
16677
16677
|
}
|
|
16678
|
-
function wo$
|
|
16678
|
+
function wo$2(r22) {
|
|
16679
16679
|
return { type: r22, attrs: null };
|
|
16680
16680
|
}
|
|
16681
16681
|
function cf$2(r22, e) {
|
|
@@ -17529,7 +17529,7 @@ Actual: ` + p3.attribValue
|
|
|
17529
17529
|
let s = e.steps.length, o = this.ranges;
|
|
17530
17530
|
for (let a = 0; a < o.length; a++) {
|
|
17531
17531
|
let { $from: u, $to: c3 } = o[a], l = e.mapping.slice(s);
|
|
17532
|
-
e.replaceRange(l.map(u.pos), l.map(c3.pos), a ? ae$3.empty : t), a == 0 && xo$
|
|
17532
|
+
e.replaceRange(l.map(u.pos), l.map(c3.pos), a ? ae$3.empty : t), a == 0 && xo$3(e, s, (n ? n.isInline : i3 && i3.isTextblock) ? -1 : 1);
|
|
17533
17533
|
}
|
|
17534
17534
|
}
|
|
17535
17535
|
/**
|
|
@@ -17540,7 +17540,7 @@ Actual: ` + p3.attribValue
|
|
|
17540
17540
|
let n = e.steps.length, i3 = this.ranges;
|
|
17541
17541
|
for (let s = 0; s < i3.length; s++) {
|
|
17542
17542
|
let { $from: o, $to: a } = i3[s], u = e.mapping.slice(n), c3 = u.map(o.pos), l = u.map(a.pos);
|
|
17543
|
-
s ? e.deleteRange(c3, l) : (e.replaceRangeWith(c3, l, t), xo$
|
|
17543
|
+
s ? e.deleteRange(c3, l) : (e.replaceRangeWith(c3, l, t), xo$3(e, n, t.isInline ? -1 : 1));
|
|
17544
17544
|
}
|
|
17545
17545
|
}
|
|
17546
17546
|
/**
|
|
@@ -17631,7 +17631,7 @@ Actual: ` + p3.attribValue
|
|
|
17631
17631
|
}
|
|
17632
17632
|
};
|
|
17633
17633
|
let yo$3 = false;
|
|
17634
|
-
function bo$
|
|
17634
|
+
function bo$3(r22) {
|
|
17635
17635
|
!yo$3 && !r22.parent.inlineContent && (yo$3 = true, console.warn("TextSelection endpoint not pointing into a node with inline content (" + r22.parent.type.name + ")"));
|
|
17636
17636
|
}
|
|
17637
17637
|
let tt$2 = class tt2 extends Ee$2 {
|
|
@@ -17639,7 +17639,7 @@ Actual: ` + p3.attribValue
|
|
|
17639
17639
|
Construct a text selection between the given points.
|
|
17640
17640
|
*/
|
|
17641
17641
|
constructor(e, t = e) {
|
|
17642
|
-
bo$
|
|
17642
|
+
bo$3(e), bo$3(t), super(e, t);
|
|
17643
17643
|
}
|
|
17644
17644
|
/**
|
|
17645
17645
|
Returns a resolved position if this is a cursor selection (an
|
|
@@ -17839,7 +17839,7 @@ Actual: ` + p3.attribValue
|
|
|
17839
17839
|
}
|
|
17840
17840
|
return null;
|
|
17841
17841
|
}
|
|
17842
|
-
function xo$
|
|
17842
|
+
function xo$3(r22, e, t) {
|
|
17843
17843
|
let n = r22.steps.length - 1;
|
|
17844
17844
|
if (n < e)
|
|
17845
17845
|
return;
|
|
@@ -20907,7 +20907,7 @@ Actual: ` + p3.attribValue
|
|
|
20907
20907
|
}
|
|
20908
20908
|
]
|
|
20909
20909
|
};
|
|
20910
|
-
function So$
|
|
20910
|
+
function So$2(r22, e) {
|
|
20911
20911
|
const { node: t, commentsExportType: n, exportedCommentDefs: i3 = [] } = r22;
|
|
20912
20912
|
if (!i3.length || n === "clean") return;
|
|
20913
20913
|
const s = t.attrs["w:id"], o = r22.comments.find((E3) => E3.commentId == s);
|
|
@@ -21092,8 +21092,8 @@ Actual: ` + p3.attribValue
|
|
|
21092
21092
|
tab: Bd$2,
|
|
21093
21093
|
image: lu$2,
|
|
21094
21094
|
hardBreak: Wd$2,
|
|
21095
|
-
commentRangeStart: () => So$
|
|
21096
|
-
commentRangeEnd: () => So$
|
|
21095
|
+
commentRangeStart: () => So$2(r22, "Start"),
|
|
21096
|
+
commentRangeEnd: () => So$2(r22, "End"),
|
|
21097
21097
|
commentReference: () => null,
|
|
21098
21098
|
shapeContainer: Jd$2,
|
|
21099
21099
|
shapeTextbox: $d$2,
|
|
@@ -24066,7 +24066,7 @@ Actual: ` + p3.attribValue
|
|
|
24066
24066
|
return;
|
|
24067
24067
|
}
|
|
24068
24068
|
}
|
|
24069
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.11.
|
|
24069
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.11.20") {
|
|
24070
24070
|
const n = "docProps/custom.xml";
|
|
24071
24071
|
e[n] || (e[n] = Bu$2());
|
|
24072
24072
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -24329,7 +24329,7 @@ Actual: ` + p3.attribValue
|
|
|
24329
24329
|
function Bu$2() {
|
|
24330
24330
|
return Wf$1;
|
|
24331
24331
|
}
|
|
24332
|
-
function ku$2(r22 = 2, e = "0.11.
|
|
24332
|
+
function ku$2(r22 = 2, e = "0.11.20") {
|
|
24333
24333
|
return {
|
|
24334
24334
|
type: "element",
|
|
24335
24335
|
name: "property",
|
|
@@ -26861,10 +26861,10 @@ Actual: ` + p3.attribValue
|
|
|
26861
26861
|
return {};
|
|
26862
26862
|
}
|
|
26863
26863
|
}
|
|
26864
|
-
var
|
|
26864
|
+
var Co$2 = 200, ue = function() {
|
|
26865
26865
|
};
|
|
26866
26866
|
ue.prototype.append = function(e) {
|
|
26867
|
-
return e.length ? (e = ue.from(e), !this.length && e || e.length <
|
|
26867
|
+
return e.length ? (e = ue.from(e), !this.length && e || e.length < Co$2 && this.leafAppend(e) || this.length < Co$2 && e.leafPrepend(this) || this.appendInner(e)) : this;
|
|
26868
26868
|
};
|
|
26869
26869
|
ue.prototype.prepend = function(e) {
|
|
26870
26870
|
return e.length ? ue.from(e).append(this) : this;
|
|
@@ -26913,10 +26913,10 @@ Actual: ` + p3.attribValue
|
|
|
26913
26913
|
if (o(this.values[l], a + l) === false)
|
|
26914
26914
|
return false;
|
|
26915
26915
|
}, e.prototype.leafAppend = function(o) {
|
|
26916
|
-
if (this.length + o.length <=
|
|
26916
|
+
if (this.length + o.length <= Co$2)
|
|
26917
26917
|
return new e(this.values.concat(o.flatten()));
|
|
26918
26918
|
}, e.prototype.leafPrepend = function(o) {
|
|
26919
|
-
if (this.length + o.length <=
|
|
26919
|
+
if (this.length + o.length <= Co$2)
|
|
26920
26920
|
return new e(o.flatten().concat(this.values));
|
|
26921
26921
|
}, n.length.get = function() {
|
|
26922
26922
|
return this.values.length;
|
|
@@ -27106,10 +27106,10 @@ Actual: ` + p3.attribValue
|
|
|
27106
27106
|
if (n.steps.length == 0)
|
|
27107
27107
|
return t;
|
|
27108
27108
|
if (s && s.getMeta(vt$1))
|
|
27109
|
-
return s.getMeta(vt$1).redo ? new Tt(t.done.addTransform(n, void 0, r,
|
|
27109
|
+
return s.getMeta(vt$1).redo ? new Tt(t.done.addTransform(n, void 0, r, po$2(e)), t.undone, ma$1(n.mapping.maps), t.prevTime, t.prevComposition) : new Tt(t.done, t.undone.addTransform(n, void 0, r, po$2(e)), null, t.prevTime, t.prevComposition);
|
|
27110
27110
|
if (n.getMeta("addToHistory") !== false && !(s && s.getMeta("addToHistory") === false)) {
|
|
27111
27111
|
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !lp(n, t.prevRanges)), c3 = s ? ii(t.prevRanges, n.mapping) : ma$1(n.mapping.maps);
|
|
27112
|
-
return new Tt(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r,
|
|
27112
|
+
return new Tt(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, po$2(e)), Ye$1.empty, c3, n.time, a ?? t.prevComposition);
|
|
27113
27113
|
} else return (i3 = n.getMeta("rebased")) ? new Tt(t.done.rebased(n, i3), t.undone.rebased(n, i3), ii(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Tt(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), ii(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
27114
27114
|
}
|
|
27115
27115
|
function lp(t, e) {
|
|
@@ -27140,14 +27140,14 @@ Actual: ` + p3.attribValue
|
|
|
27140
27140
|
return n;
|
|
27141
27141
|
}
|
|
27142
27142
|
function cp(t, e, n) {
|
|
27143
|
-
let r =
|
|
27143
|
+
let r = po$2(e), o = vt$1.get(e).spec.config, i3 = (n ? t.undone : t.done).popEvent(e, r);
|
|
27144
27144
|
if (!i3)
|
|
27145
27145
|
return null;
|
|
27146
27146
|
let s = i3.selection.resolve(i3.transform.doc), a = (n ? t.done : t.undone).addTransform(i3.transform, e.selection.getBookmark(), o, r), l = new Tt(n ? a : i3.remaining, n ? i3.remaining : a, null, 0, -1);
|
|
27147
27147
|
return i3.transform.setSelection(s).setMeta(vt$1, { redo: n, historyState: l });
|
|
27148
27148
|
}
|
|
27149
27149
|
let si$1 = false, ga$1 = null;
|
|
27150
|
-
function
|
|
27150
|
+
function po$2(t) {
|
|
27151
27151
|
let e = t.plugins;
|
|
27152
27152
|
if (ga$1 != e) {
|
|
27153
27153
|
si$1 = false, ga$1 = e;
|
|
@@ -27288,7 +27288,7 @@ Actual: ` + p3.attribValue
|
|
|
27288
27288
|
return true;
|
|
27289
27289
|
if (e == (o < 0 ? 0 : _e(t))) {
|
|
27290
27290
|
let i3 = t.parentNode;
|
|
27291
|
-
if (!i3 || i3.nodeType != 1 ||
|
|
27291
|
+
if (!i3 || i3.nodeType != 1 || Ir(t) || pp.test(t.nodeName) || t.contentEditable == "false")
|
|
27292
27292
|
return false;
|
|
27293
27293
|
e = ye$1(t) + (o < 0 ? 0 : 1), t = i3;
|
|
27294
27294
|
} else if (t.nodeType == 1) {
|
|
@@ -27310,7 +27310,7 @@ Actual: ` + p3.attribValue
|
|
|
27310
27310
|
if (t.contentEditable == "false")
|
|
27311
27311
|
return null;
|
|
27312
27312
|
t = t.childNodes[e - 1], e = _e(t);
|
|
27313
|
-
} else if (t.parentNode && !
|
|
27313
|
+
} else if (t.parentNode && !Ir(t))
|
|
27314
27314
|
e = ye$1(t), t = t.parentNode;
|
|
27315
27315
|
else
|
|
27316
27316
|
return null;
|
|
@@ -27324,7 +27324,7 @@ Actual: ` + p3.attribValue
|
|
|
27324
27324
|
if (t.contentEditable == "false")
|
|
27325
27325
|
return null;
|
|
27326
27326
|
t = t.childNodes[e], e = 0;
|
|
27327
|
-
} else if (t.parentNode && !
|
|
27327
|
+
} else if (t.parentNode && !Ir(t))
|
|
27328
27328
|
e = ye$1(t) + 1, t = t.parentNode;
|
|
27329
27329
|
else
|
|
27330
27330
|
return null;
|
|
@@ -27340,7 +27340,7 @@ Actual: ` + p3.attribValue
|
|
|
27340
27340
|
r = r && i3 == 0, o = o && i3 == _e(t);
|
|
27341
27341
|
}
|
|
27342
27342
|
}
|
|
27343
|
-
function
|
|
27343
|
+
function Ir(t) {
|
|
27344
27344
|
let e;
|
|
27345
27345
|
for (let n = t; n && !(e = n.pmViewDesc); n = n.parentNode)
|
|
27346
27346
|
;
|
|
@@ -27375,7 +27375,7 @@ Actual: ` + p3.attribValue
|
|
|
27375
27375
|
}
|
|
27376
27376
|
const st$2 = typeof navigator < "u" ? navigator : null, ba$1 = typeof document < "u" ? document : null, Wt$1 = st$2 && st$2.userAgent || "", Ei$1 = /Edge\/(\d+)/.exec(Wt$1), Sc$1 = /MSIE \d/.exec(Wt$1), Ni$1 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Wt$1), De$1 = !!(Sc$1 || Ni$1 || Ei$1), Lt = Sc$1 ? document.documentMode : Ni$1 ? +Ni$1[1] : Ei$1 ? +Ei$1[1] : 0, Ge = !De$1 && /gecko\/(\d+)/i.test(Wt$1);
|
|
27377
27377
|
Ge && +(/Firefox\/(\d+)/.exec(Wt$1) || [0, 0])[1];
|
|
27378
|
-
const Pi$1 = !De$1 && /Chrome\/(\d+)/.exec(Wt$1), ve$2 = !!Pi$1, Cc$1 = Pi$1 ? +Pi$1[1] : 0, Ce$1 = !De$1 && !!st$2 && /Apple Computer/.test(st$2.vendor), En$1 = Ce$1 && (/Mobile\/\w+/.test(Wt$1) || !!st$2 && st$2.maxTouchPoints > 2), $e$1 = En$1 || (st$2 ? /Mac/.test(st$2.platform) : false), wp = st$2 ? /Win/.test(st$2.platform) : false, bt$2 = /Android \d/.test(Wt$1),
|
|
27378
|
+
const Pi$1 = !De$1 && /Chrome\/(\d+)/.exec(Wt$1), ve$2 = !!Pi$1, Cc$1 = Pi$1 ? +Pi$1[1] : 0, Ce$1 = !De$1 && !!st$2 && /Apple Computer/.test(st$2.vendor), En$1 = Ce$1 && (/Mobile\/\w+/.test(Wt$1) || !!st$2 && st$2.maxTouchPoints > 2), $e$1 = En$1 || (st$2 ? /Mac/.test(st$2.platform) : false), wp = st$2 ? /Win/.test(st$2.platform) : false, bt$2 = /Android \d/.test(Wt$1), Rr = !!ba$1 && "webkitFontSmoothing" in ba$1.documentElement.style, vp = Rr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
27379
27379
|
function kp(t) {
|
|
27380
27380
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
27381
27381
|
return e ? {
|
|
@@ -27570,7 +27570,7 @@ Actual: ` + p3.attribValue
|
|
|
27570
27570
|
d.nodeName == "IMG" && (u = d.getBoundingClientRect()).right <= e.left && u.bottom > e.top && o++;
|
|
27571
27571
|
}
|
|
27572
27572
|
let c3;
|
|
27573
|
-
|
|
27573
|
+
Rr && o && r.nodeType == 1 && (c3 = r.childNodes[o - 1]).nodeType == 1 && c3.contentEditable == "false" && c3.getBoundingClientRect().top >= e.top && o--, r == t.dom && o == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? a = t.state.doc.content.size : (o == 0 || r.nodeType != 1 || r.childNodes[o - 1].nodeName != "BR") && (a = Dp(t, r, o, e));
|
|
27574
27574
|
}
|
|
27575
27575
|
a == null && (a = Tp(t, s, e));
|
|
27576
27576
|
let l = t.docView.nearestDesc(s, true);
|
|
@@ -27590,7 +27590,7 @@ Actual: ` + p3.attribValue
|
|
|
27590
27590
|
}
|
|
27591
27591
|
const Np = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
27592
27592
|
function Dc$1(t, e, n) {
|
|
27593
|
-
let { node: r, offset: o, atom: i3 } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s =
|
|
27593
|
+
let { node: r, offset: o, atom: i3 } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Rr || Ge;
|
|
27594
27594
|
if (r.nodeType == 3)
|
|
27595
27595
|
if (s && (Np.test(r.nodeValue) || (n < 0 ? !o : o == r.nodeValue.length))) {
|
|
27596
27596
|
let l = Ot(mt(r, o, o), n);
|
|
@@ -27710,7 +27710,7 @@ Actual: ` + p3.attribValue
|
|
|
27710
27710
|
return ka$1 == e && xa$1 == n ? Sa$1 : (ka$1 = e, xa$1 = n, Sa$1 = n == "up" || n == "down" ? Pp(t, e, n) : Rp(t, e, n));
|
|
27711
27711
|
}
|
|
27712
27712
|
const He$1 = 0, Ca$1 = 1, en$1 = 2, at$2 = 3;
|
|
27713
|
-
class
|
|
27713
|
+
class Lr {
|
|
27714
27714
|
constructor(e, n, r, o) {
|
|
27715
27715
|
this.parent = e, this.children = n, this.dom = r, this.contentDOM = o, this.dirty = He$1, r.pmViewDesc = this;
|
|
27716
27716
|
}
|
|
@@ -28051,7 +28051,7 @@ Actual: ` + p3.attribValue
|
|
|
28051
28051
|
return false;
|
|
28052
28052
|
}
|
|
28053
28053
|
}
|
|
28054
|
-
let Nc$1 = class Nc extends
|
|
28054
|
+
let Nc$1 = class Nc extends Lr {
|
|
28055
28055
|
constructor(e, n, r, o) {
|
|
28056
28056
|
let i3, s = n.type.toDOM;
|
|
28057
28057
|
if (typeof s == "function" && (s = s(r, () => {
|
|
@@ -28091,7 +28091,7 @@ Actual: ` + p3.attribValue
|
|
|
28091
28091
|
return this.widget.type.side;
|
|
28092
28092
|
}
|
|
28093
28093
|
};
|
|
28094
|
-
class Fp extends
|
|
28094
|
+
class Fp extends Lr {
|
|
28095
28095
|
constructor(e, n, r, o) {
|
|
28096
28096
|
super(e, [], n, null), this.textDOM = r, this.text = o;
|
|
28097
28097
|
}
|
|
@@ -28108,7 +28108,7 @@ Actual: ` + p3.attribValue
|
|
|
28108
28108
|
return e.type === "characterData" && e.target.nodeValue == e.oldValue;
|
|
28109
28109
|
}
|
|
28110
28110
|
}
|
|
28111
|
-
let dn$2 = class dn2 extends
|
|
28111
|
+
let dn$2 = class dn2 extends Lr {
|
|
28112
28112
|
constructor(e, n, r, o, i3) {
|
|
28113
28113
|
super(e, [], r, o), this.mark = n, this.spec = i3;
|
|
28114
28114
|
}
|
|
@@ -28144,7 +28144,7 @@ Actual: ` + p3.attribValue
|
|
|
28144
28144
|
this.spec.destroy && this.spec.destroy(), super.destroy();
|
|
28145
28145
|
}
|
|
28146
28146
|
};
|
|
28147
|
-
let Ft$1 = class Ft2 extends
|
|
28147
|
+
let Ft$1 = class Ft2 extends Lr {
|
|
28148
28148
|
constructor(e, n, r, o, i3, s, a, l, c3) {
|
|
28149
28149
|
super(e, [], i3, s), this.node = n, this.outerDeco = r, this.innerDeco = o, this.nodeDOM = a;
|
|
28150
28150
|
}
|
|
@@ -28195,7 +28195,7 @@ Actual: ` + p3.attribValue
|
|
|
28195
28195
|
return e;
|
|
28196
28196
|
}
|
|
28197
28197
|
matchesNode(e, n, r) {
|
|
28198
|
-
return this.dirty == He$1 && e.eq(this.node) &&
|
|
28198
|
+
return this.dirty == He$1 && e.eq(this.node) && Mo$2(n, this.outerDeco) && r.eq(this.innerDeco);
|
|
28199
28199
|
}
|
|
28200
28200
|
get size() {
|
|
28201
28201
|
return this.node.nodeSize;
|
|
@@ -28253,7 +28253,7 @@ Actual: ` + p3.attribValue
|
|
|
28253
28253
|
this.updateOuterDeco(n), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(o, this.posAtStart), this.dirty = He$1;
|
|
28254
28254
|
}
|
|
28255
28255
|
updateOuterDeco(e) {
|
|
28256
|
-
if (
|
|
28256
|
+
if (Mo$2(e, this.outerDeco))
|
|
28257
28257
|
return;
|
|
28258
28258
|
let n = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
28259
28259
|
this.dom = Rc$1(this.dom, this.nodeDOM, Ii$1(this.outerDeco, this.node, n), Ii$1(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
|
|
@@ -28318,7 +28318,7 @@ Actual: ` + p3.attribValue
|
|
|
28318
28318
|
return this.node.text == e;
|
|
28319
28319
|
}
|
|
28320
28320
|
};
|
|
28321
|
-
let Pc$1 = class Pc extends
|
|
28321
|
+
let Pc$1 = class Pc extends Lr {
|
|
28322
28322
|
parseRule() {
|
|
28323
28323
|
return { ignore: true };
|
|
28324
28324
|
}
|
|
@@ -28445,7 +28445,7 @@ Actual: ` + p3.attribValue
|
|
|
28445
28445
|
function Lc$1(t, e, n) {
|
|
28446
28446
|
return Rc$1(t, t, tn$1, Ii$1(e, n, t.nodeType != 1));
|
|
28447
28447
|
}
|
|
28448
|
-
function
|
|
28448
|
+
function Mo$2(t, e) {
|
|
28449
28449
|
if (t.length != e.length)
|
|
28450
28450
|
return false;
|
|
28451
28451
|
for (let n = 0; n < t.length; n++)
|
|
@@ -28547,7 +28547,7 @@ Actual: ` + p3.attribValue
|
|
|
28547
28547
|
let c3 = this.preMatch.matched.get(l);
|
|
28548
28548
|
if (c3 != null && c3 != i3)
|
|
28549
28549
|
return false;
|
|
28550
|
-
let d = l.dom, u, f = this.isLocked(d) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != at$2 &&
|
|
28550
|
+
let d = l.dom, u, f = this.isLocked(d) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != at$2 && Mo$2(n, l.outerDeco));
|
|
28551
28551
|
if (!f && l.update(e, n, r, o))
|
|
28552
28552
|
return this.destroyBetween(this.index, a), l.dom != d && (this.changed = true), this.index++, true;
|
|
28553
28553
|
if (!f && (u = this.recreateWrapper(l, e, n, r, o, s)))
|
|
@@ -28560,7 +28560,7 @@ Actual: ` + p3.attribValue
|
|
|
28560
28560
|
// When a node with content is replaced by a different node with
|
|
28561
28561
|
// identical content, move over its children.
|
|
28562
28562
|
recreateWrapper(e, n, r, o, i3, s) {
|
|
28563
|
-
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !
|
|
28563
|
+
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !Mo$2(r, e.outerDeco) || !o.eq(e.innerDeco))
|
|
28564
28564
|
return null;
|
|
28565
28565
|
let a = Ft$1.create(this.top, n, r, o, i3, s);
|
|
28566
28566
|
if (a.contentDOM) {
|
|
@@ -28873,7 +28873,7 @@ Actual: ` + p3.attribValue
|
|
|
28873
28873
|
if (!i3 || i3.isText)
|
|
28874
28874
|
return false;
|
|
28875
28875
|
let a = e < 0 ? o.pos - i3.nodeSize : o.pos;
|
|
28876
|
-
return i3.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? We$3.isSelectable(i3) ? Dt$1(t, new We$3(e < 0 ? t.state.doc.resolve(o.pos - i3.nodeSize) : o)) :
|
|
28876
|
+
return i3.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? We$3.isSelectable(i3) ? Dt$1(t, new We$3(e < 0 ? t.state.doc.resolve(o.pos - i3.nodeSize) : o)) : Rr ? Dt$1(t, new tt$2(t.state.doc.resolve(e < 0 ? a : a + i3.nodeSize))) : false : false;
|
|
28877
28877
|
}
|
|
28878
28878
|
} else return false;
|
|
28879
28879
|
else {
|
|
@@ -28885,7 +28885,7 @@ Actual: ` + p3.attribValue
|
|
|
28885
28885
|
}
|
|
28886
28886
|
}
|
|
28887
28887
|
}
|
|
28888
|
-
function
|
|
28888
|
+
function Ao$1(t) {
|
|
28889
28889
|
return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
|
|
28890
28890
|
}
|
|
28891
28891
|
function rr$1(t, e) {
|
|
@@ -28900,7 +28900,7 @@ Actual: ` + p3.attribValue
|
|
|
28900
28900
|
if (!n)
|
|
28901
28901
|
return;
|
|
28902
28902
|
let o, i3, s = false;
|
|
28903
|
-
for (Ge && n.nodeType == 1 && r <
|
|
28903
|
+
for (Ge && n.nodeType == 1 && r < Ao$1(n) && rr$1(n.childNodes[r], -1) && (s = true); ; )
|
|
28904
28904
|
if (r > 0) {
|
|
28905
28905
|
if (n.nodeType != 1)
|
|
28906
28906
|
break;
|
|
@@ -28921,7 +28921,7 @@ Actual: ` + p3.attribValue
|
|
|
28921
28921
|
for (; a && rr$1(a, -1); )
|
|
28922
28922
|
o = n.parentNode, i3 = ye$1(a), a = a.previousSibling;
|
|
28923
28923
|
if (a)
|
|
28924
|
-
n = a, r =
|
|
28924
|
+
n = a, r = Ao$1(n);
|
|
28925
28925
|
else {
|
|
28926
28926
|
if (n = n.parentNode, n == t.dom)
|
|
28927
28927
|
break;
|
|
@@ -28935,7 +28935,7 @@ Actual: ` + p3.attribValue
|
|
|
28935
28935
|
let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
|
|
28936
28936
|
if (!n)
|
|
28937
28937
|
return;
|
|
28938
|
-
let o =
|
|
28938
|
+
let o = Ao$1(n), i3, s;
|
|
28939
28939
|
for (; ; )
|
|
28940
28940
|
if (r < o) {
|
|
28941
28941
|
if (n.nodeType != 1)
|
|
@@ -28953,7 +28953,7 @@ Actual: ` + p3.attribValue
|
|
|
28953
28953
|
for (; a && rr$1(a, 1); )
|
|
28954
28954
|
i3 = a.parentNode, s = ye$1(a) + 1, a = a.nextSibling;
|
|
28955
28955
|
if (a)
|
|
28956
|
-
n = a, r = 0, o =
|
|
28956
|
+
n = a, r = 0, o = Ao$1(n);
|
|
28957
28957
|
else {
|
|
28958
28958
|
if (n = n.parentNode, n == t.dom)
|
|
28959
28959
|
break;
|
|
@@ -28968,7 +28968,7 @@ Actual: ` + p3.attribValue
|
|
|
28968
28968
|
return e && e.node && e.node.isBlock;
|
|
28969
28969
|
}
|
|
28970
28970
|
function Yp(t, e) {
|
|
28971
|
-
for (; t && e == t.childNodes.length && !
|
|
28971
|
+
for (; t && e == t.childNodes.length && !Ir(t); )
|
|
28972
28972
|
e = ye$1(t) + 1, t = t.parentNode;
|
|
28973
28973
|
for (; t && e < t.childNodes.length; ) {
|
|
28974
28974
|
let n = t.childNodes[e];
|
|
@@ -28980,7 +28980,7 @@ Actual: ` + p3.attribValue
|
|
|
28980
28980
|
}
|
|
28981
28981
|
}
|
|
28982
28982
|
function Gp(t, e) {
|
|
28983
|
-
for (; t && !e && !
|
|
28983
|
+
for (; t && !e && !Ir(t); )
|
|
28984
28984
|
e = ye$1(t), t = t.parentNode;
|
|
28985
28985
|
for (; t && e; ) {
|
|
28986
28986
|
let n = t.childNodes[e - 1];
|
|
@@ -29152,7 +29152,7 @@ Actual: ` + p3.attribValue
|
|
|
29152
29152
|
} else
|
|
29153
29153
|
t.someProp("transformPastedHTML", (u) => {
|
|
29154
29154
|
n = u(n, t);
|
|
29155
|
-
}), s = oh$1(n),
|
|
29155
|
+
}), s = oh$1(n), Rr && ih$1(s);
|
|
29156
29156
|
let c3 = s && s.querySelector("[data-pm-slice]"), d = c3 && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c3.getAttribute("data-pm-slice") || "");
|
|
29157
29157
|
if (d && d[3])
|
|
29158
29158
|
for (let u = +d[3]; u > 0; u--) {
|
|
@@ -29435,7 +29435,7 @@ Actual: ` + p3.attribValue
|
|
|
29435
29435
|
}
|
|
29436
29436
|
}
|
|
29437
29437
|
function Ns(t) {
|
|
29438
|
-
return
|
|
29438
|
+
return Oo$1(t);
|
|
29439
29439
|
}
|
|
29440
29440
|
const qc$1 = $e$1 ? "metaKey" : "ctrlKey";
|
|
29441
29441
|
Me$1.mousedown = (t, e) => {
|
|
@@ -29508,8 +29508,8 @@ Actual: ` + p3.attribValue
|
|
|
29508
29508
|
t.domObserver.flush();
|
|
29509
29509
|
let { state: e } = t, n = e.selection.$to;
|
|
29510
29510
|
if (e.selection instanceof tt$2 && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === false)))
|
|
29511
|
-
t.markCursor = t.state.storedMarks || n.marks(),
|
|
29512
|
-
else if (
|
|
29511
|
+
t.markCursor = t.state.storedMarks || n.marks(), Oo$1(t, true), t.markCursor = null;
|
|
29512
|
+
else if (Oo$1(t, !e.selection.empty), Ge && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
|
|
29513
29513
|
let r = t.domSelectionRange();
|
|
29514
29514
|
for (let o = r.focusNode, i3 = r.focusOffset; o && o.nodeType == 1 && i3 != 0; ) {
|
|
29515
29515
|
let s = i3 < 0 ? o.lastChild : o.childNodes[i3 - 1];
|
|
@@ -29531,7 +29531,7 @@ Actual: ` + p3.attribValue
|
|
|
29531
29531
|
t.composing && (t.input.composing = false, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, Xc$1(t, 20));
|
|
29532
29532
|
};
|
|
29533
29533
|
function Xc$1(t, e) {
|
|
29534
|
-
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() =>
|
|
29534
|
+
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => Oo$1(t), e));
|
|
29535
29535
|
}
|
|
29536
29536
|
function Jc$1(t) {
|
|
29537
29537
|
for (t.composing && (t.input.composing = false, t.input.compositionEndedAt = Sh$1()); t.input.compositionNodes.length > 0; )
|
|
@@ -29560,7 +29560,7 @@ Actual: ` + p3.attribValue
|
|
|
29560
29560
|
let t = document.createEvent("Event");
|
|
29561
29561
|
return t.initEvent("event", true, true), t.timeStamp;
|
|
29562
29562
|
}
|
|
29563
|
-
function
|
|
29563
|
+
function Oo$1(t, e = false) {
|
|
29564
29564
|
if (!(bt$2 && t.domObserver.flushingSoon >= 0)) {
|
|
29565
29565
|
if (t.domObserver.forceFlush(), Jc$1(t), e || t.docView && t.docView.dirty) {
|
|
29566
29566
|
let n = As(t);
|
|
@@ -29728,19 +29728,19 @@ Actual: ` + p3.attribValue
|
|
|
29728
29728
|
return false;
|
|
29729
29729
|
return true;
|
|
29730
29730
|
}
|
|
29731
|
-
let
|
|
29731
|
+
let To$1 = class To2 {
|
|
29732
29732
|
constructor(e, n) {
|
|
29733
29733
|
this.toDOM = e, this.spec = n || on$3, this.side = this.spec.side || 0;
|
|
29734
29734
|
}
|
|
29735
29735
|
map(e, n, r, o) {
|
|
29736
29736
|
let { pos: i3, deleted: s } = e.mapResult(n.from + o, this.side < 0 ? -1 : 1);
|
|
29737
|
-
return s ? null : new
|
|
29737
|
+
return s ? null : new F$1(i3 - r, i3 - r, this);
|
|
29738
29738
|
}
|
|
29739
29739
|
valid() {
|
|
29740
29740
|
return true;
|
|
29741
29741
|
}
|
|
29742
29742
|
eq(e) {
|
|
29743
|
-
return this == e || e instanceof
|
|
29743
|
+
return this == e || e instanceof To2 && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && gr$1(this.spec, e.spec));
|
|
29744
29744
|
}
|
|
29745
29745
|
destroy(e) {
|
|
29746
29746
|
this.spec.destroy && this.spec.destroy(e);
|
|
@@ -29752,7 +29752,7 @@ Actual: ` + p3.attribValue
|
|
|
29752
29752
|
}
|
|
29753
29753
|
map(e, n, r, o) {
|
|
29754
29754
|
let i3 = e.map(n.from + o, this.spec.inclusiveStart ? -1 : 1) - r, s = e.map(n.to + o, this.spec.inclusiveEnd ? 1 : -1) - r;
|
|
29755
|
-
return i3 >= s ? null : new
|
|
29755
|
+
return i3 >= s ? null : new F$1(i3, s, this);
|
|
29756
29756
|
}
|
|
29757
29757
|
valid(e, n) {
|
|
29758
29758
|
return n.from < n.to;
|
|
@@ -29775,7 +29775,7 @@ Actual: ` + p3.attribValue
|
|
|
29775
29775
|
if (i3.deleted)
|
|
29776
29776
|
return null;
|
|
29777
29777
|
let s = e.mapResult(n.to + o, -1);
|
|
29778
|
-
return s.deleted || s.pos <= i3.pos ? null : new
|
|
29778
|
+
return s.deleted || s.pos <= i3.pos ? null : new F$1(i3.pos - r, s.pos - r, this);
|
|
29779
29779
|
}
|
|
29780
29780
|
valid(e, n) {
|
|
29781
29781
|
let { index: r, offset: o } = e.content.findIndex(n.from), i3;
|
|
@@ -29787,7 +29787,7 @@ Actual: ` + p3.attribValue
|
|
|
29787
29787
|
destroy() {
|
|
29788
29788
|
}
|
|
29789
29789
|
}
|
|
29790
|
-
let
|
|
29790
|
+
let F$1 = class F3 {
|
|
29791
29791
|
/**
|
|
29792
29792
|
@internal
|
|
29793
29793
|
*/
|
|
@@ -29798,7 +29798,7 @@ Actual: ` + p3.attribValue
|
|
|
29798
29798
|
@internal
|
|
29799
29799
|
*/
|
|
29800
29800
|
copy(e, n) {
|
|
29801
|
-
return new
|
|
29801
|
+
return new F3(e, n, this.type);
|
|
29802
29802
|
}
|
|
29803
29803
|
/**
|
|
29804
29804
|
@internal
|
|
@@ -29821,14 +29821,14 @@ Actual: ` + p3.attribValue
|
|
|
29821
29821
|
widget's current document position.
|
|
29822
29822
|
*/
|
|
29823
29823
|
static widget(e, n, r) {
|
|
29824
|
-
return new
|
|
29824
|
+
return new F3(e, e, new To$1(n, r));
|
|
29825
29825
|
}
|
|
29826
29826
|
/**
|
|
29827
29827
|
Creates an inline decoration, which adds the given attributes to
|
|
29828
29828
|
each inline node between `from` and `to`.
|
|
29829
29829
|
*/
|
|
29830
29830
|
static inline(e, n, r, o) {
|
|
29831
|
-
return new
|
|
29831
|
+
return new F3(e, n, new Bt$1(r, o));
|
|
29832
29832
|
}
|
|
29833
29833
|
/**
|
|
29834
29834
|
Creates a node decoration. `from` and `to` should point precisely
|
|
@@ -29836,7 +29836,7 @@ Actual: ` + p3.attribValue
|
|
|
29836
29836
|
node, will receive the given attributes.
|
|
29837
29837
|
*/
|
|
29838
29838
|
static node(e, n, r, o) {
|
|
29839
|
-
return new
|
|
29839
|
+
return new F3(e, n, new Ps(r, o));
|
|
29840
29840
|
}
|
|
29841
29841
|
/**
|
|
29842
29842
|
The spec provided when creating this decoration. Can be useful
|
|
@@ -29855,7 +29855,7 @@ Actual: ` + p3.attribValue
|
|
|
29855
29855
|
@internal
|
|
29856
29856
|
*/
|
|
29857
29857
|
get widget() {
|
|
29858
|
-
return this.type instanceof
|
|
29858
|
+
return this.type instanceof To$1;
|
|
29859
29859
|
}
|
|
29860
29860
|
};
|
|
29861
29861
|
const Cn$2 = [], on$3 = {};
|
|
@@ -29872,7 +29872,7 @@ Actual: ` + p3.attribValue
|
|
|
29872
29872
|
you must make a copy if you want need to preserve that.
|
|
29873
29873
|
*/
|
|
29874
29874
|
static create(e, n) {
|
|
29875
|
-
return n.length ?
|
|
29875
|
+
return n.length ? Do$2(n, e, 0, on$3) : we;
|
|
29876
29876
|
}
|
|
29877
29877
|
/**
|
|
29878
29878
|
Find all decorations in this set which touch the given range
|
|
@@ -29931,7 +29931,7 @@ Actual: ` + p3.attribValue
|
|
|
29931
29931
|
if (d = ed$1(n, a, c3)) {
|
|
29932
29932
|
for (o || (o = this.children.slice()); i3 < o.length && o[i3] < l; )
|
|
29933
29933
|
i3 += 3;
|
|
29934
|
-
o[i3] == l ? o[i3 + 2] = o[i3 + 2].addInner(a, d, c3 + 1) : o.splice(i3, 0, l, l + a.nodeSize,
|
|
29934
|
+
o[i3] == l ? o[i3 + 2] = o[i3 + 2].addInner(a, d, c3 + 1) : o.splice(i3, 0, l, l + a.nodeSize, Do$2(d, a, c3 + 1, on$3)), i3 += 3;
|
|
29935
29935
|
}
|
|
29936
29936
|
});
|
|
29937
29937
|
let s = Qc$1(i3 ? td$1(n) : n, -r);
|
|
@@ -30127,7 +30127,7 @@ Actual: ` + p3.attribValue
|
|
|
30127
30127
|
l = true;
|
|
30128
30128
|
}
|
|
30129
30129
|
if (l) {
|
|
30130
|
-
let c3 = Dh$1(a, t, e, n, o, i3, s), d =
|
|
30130
|
+
let c3 = Dh$1(a, t, e, n, o, i3, s), d = Do$2(c3, r, 0, s);
|
|
30131
30131
|
e = d.local;
|
|
30132
30132
|
for (let u = 0; u < a.length; u += 3)
|
|
30133
30133
|
a[u + 1] < 0 && (a.splice(u, 3), u -= 3);
|
|
@@ -30146,7 +30146,7 @@ Actual: ` + p3.attribValue
|
|
|
30146
30146
|
let n = [];
|
|
30147
30147
|
for (let r = 0; r < t.length; r++) {
|
|
30148
30148
|
let o = t[r];
|
|
30149
|
-
n.push(new
|
|
30149
|
+
n.push(new F$1(o.from + e, o.to + e, o.type));
|
|
30150
30150
|
}
|
|
30151
30151
|
return n;
|
|
30152
30152
|
}
|
|
@@ -30177,13 +30177,13 @@ Actual: ` + p3.attribValue
|
|
|
30177
30177
|
t[n] != null && e.push(t[n]);
|
|
30178
30178
|
return e;
|
|
30179
30179
|
}
|
|
30180
|
-
function
|
|
30180
|
+
function Do$2(t, e, n, r) {
|
|
30181
30181
|
let o = [], i3 = false;
|
|
30182
30182
|
e.forEach((a, l) => {
|
|
30183
30183
|
let c3 = ed$1(t, a, l + n);
|
|
30184
30184
|
if (c3) {
|
|
30185
30185
|
i3 = true;
|
|
30186
|
-
let d =
|
|
30186
|
+
let d = Do$2(c3, a, n + l + 1, r);
|
|
30187
30187
|
d != we && o.push(l, l + a.nodeSize, d);
|
|
30188
30188
|
}
|
|
30189
30189
|
});
|
|
@@ -30470,7 +30470,7 @@ Actual: ` + p3.attribValue
|
|
|
30470
30470
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
30471
30471
|
let C3 = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, V = As(t, C3);
|
|
30472
30472
|
if (V && !t.state.selection.eq(V)) {
|
|
30473
|
-
if (ve$2 && bt$2 && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (
|
|
30473
|
+
if (ve$2 && bt$2 && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (z3) => z3(t, Qt$2(13, "Enter"))))
|
|
30474
30474
|
return;
|
|
30475
30475
|
let $3 = t.state.tr.setSelection(V);
|
|
30476
30476
|
C3 == "pointer" ? $3.setMeta("pointer", true) : C3 == "key" && $3.scrollIntoView(), i3 && $3.setMeta("composition", i3), t.dispatch($3);
|
|
@@ -30514,15 +30514,15 @@ Actual: ` + p3.attribValue
|
|
|
30514
30514
|
return C3(t, Qt$2(13, "Enter"));
|
|
30515
30515
|
});
|
|
30516
30516
|
}, 20));
|
|
30517
|
-
let y = h3.start, S = h3.endA, k, M,
|
|
30517
|
+
let y = h3.start, S = h3.endA, k, M, B;
|
|
30518
30518
|
if (w) {
|
|
30519
30519
|
if (m.pos == g.pos)
|
|
30520
30520
|
De$1 && Lt <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => kt(t), 20)), k = t.state.tr.delete(y, S), M = d.resolve(h3.start).marksAcross(d.resolve(h3.endA));
|
|
30521
30521
|
else if (
|
|
30522
30522
|
// Adding or removing a mark
|
|
30523
|
-
h3.endA == h3.endB && (
|
|
30523
|
+
h3.endA == h3.endB && (B = Vh$1(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, h3.endA - b.start())))
|
|
30524
30524
|
)
|
|
30525
|
-
k = t.state.tr,
|
|
30525
|
+
k = t.state.tr, B.type == "add" ? k.addMark(y, S, B.mark) : k.removeMark(y, S, B.mark);
|
|
30526
30526
|
else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
|
|
30527
30527
|
let C3 = m.parent.textBetween(m.parentOffset, g.parentOffset);
|
|
30528
30528
|
if (t.someProp("handleTextInput", (V) => V(t, y, S, C3)))
|
|
@@ -30960,12 +30960,12 @@ Actual: ` + p3.attribValue
|
|
|
30960
30960
|
if (typeof n == "function" && (n = n(t.state)), n)
|
|
30961
30961
|
for (let r in n)
|
|
30962
30962
|
r == "class" ? e.class += " " + n[r] : r == "style" ? e.style = (e.style ? e.style + ";" : "") + n[r] : !e[r] && r != "contenteditable" && r != "nodeName" && (e[r] = String(n[r]));
|
|
30963
|
-
}), e.translate || (e.translate = "no"), [
|
|
30963
|
+
}), e.translate || (e.translate = "no"), [F$1.node(0, t.state.doc.content.size, e)];
|
|
30964
30964
|
}
|
|
30965
30965
|
function qa$1(t) {
|
|
30966
30966
|
if (t.markCursor) {
|
|
30967
30967
|
let e = document.createElement("img");
|
|
30968
|
-
e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), t.cursorWrapper = { dom: e, deco:
|
|
30968
|
+
e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), t.cursorWrapper = { dom: e, deco: F$1.widget(t.state.selection.from, e, { raw: true, marks: t.markCursor }) };
|
|
30969
30969
|
} else
|
|
30970
30970
|
t.cursorWrapper = null;
|
|
30971
30971
|
}
|
|
@@ -31116,7 +31116,7 @@ Actual: ` + p3.attribValue
|
|
|
31116
31116
|
throw od$1("Method unimplemented");
|
|
31117
31117
|
}, id$1 = () => {
|
|
31118
31118
|
throw od$1("Unexpected case");
|
|
31119
|
-
},
|
|
31119
|
+
}, ho$2 = () => /* @__PURE__ */ new Map(), sd$1 = (t, e, n) => {
|
|
31120
31120
|
let r = t.get(e);
|
|
31121
31121
|
return r === void 0 && t.set(e, r = n()), r;
|
|
31122
31122
|
}, Cm = Object.keys, Mm = (t, e) => {
|
|
@@ -31147,7 +31147,7 @@ Actual: ` + p3.attribValue
|
|
|
31147
31147
|
remove: t.length - n - r,
|
|
31148
31148
|
insert: e.slice(n, e.length - r)
|
|
31149
31149
|
};
|
|
31150
|
-
}, Nm = Em, te$1 = new qp$1("y-sync"), $t$1 = new qp$1("y-undo"),
|
|
31150
|
+
}, Nm = Em, te$1 = new qp$1("y-sync"), $t$1 = new qp$1("y-undo"), Zr$1 = new qp$1("yjs-cursor"), Pm = Math.random, Im = (t) => t[yr$1(Pm() * t.length)], el = (t) => t === void 0 ? null : t;
|
|
31151
31151
|
class Rm {
|
|
31152
31152
|
constructor() {
|
|
31153
31153
|
this.map = /* @__PURE__ */ new Map();
|
|
@@ -31176,7 +31176,7 @@ Actual: ` + p3.attribValue
|
|
|
31176
31176
|
const Bm = () => {
|
|
31177
31177
|
if (et$1 === void 0)
|
|
31178
31178
|
if (Pn$2) {
|
|
31179
|
-
et$1 =
|
|
31179
|
+
et$1 = ho$2();
|
|
31180
31180
|
const t = ge$1.argv;
|
|
31181
31181
|
let e = null;
|
|
31182
31182
|
for (let n = 0; n < t.length; n++) {
|
|
@@ -31184,12 +31184,12 @@ Actual: ` + p3.attribValue
|
|
|
31184
31184
|
r[0] === "-" ? (e !== null && et$1.set(e, ""), e = r) : e !== null && (et$1.set(e, r), e = null);
|
|
31185
31185
|
}
|
|
31186
31186
|
e !== null && et$1.set(e, "");
|
|
31187
|
-
} else typeof location == "object" ? (et$1 =
|
|
31187
|
+
} else typeof location == "object" ? (et$1 = ho$2(), (location.search || "?").slice(1).split("&").forEach((t) => {
|
|
31188
31188
|
if (t.length !== 0) {
|
|
31189
31189
|
const [e, n] = t.split("=");
|
|
31190
31190
|
et$1.set(`--${Ga$1(e, "-")}`, n), et$1.set(`-${Ga$1(e, "-")}`, n);
|
|
31191
31191
|
}
|
|
31192
|
-
})) : et$1 =
|
|
31192
|
+
})) : et$1 = ho$2();
|
|
31193
31193
|
return et$1;
|
|
31194
31194
|
}, Vi$1 = (t) => Bm().has(t), Hi$1 = (t) => el(Pn$2 ? ge$1.env[t.toUpperCase().replaceAll("-", "_")] : Fm.getItem(t)), cd$1 = (t) => Vi$1("--" + t) || Hi$1(t) !== null;
|
|
31195
31195
|
cd$1("production");
|
|
@@ -31344,7 +31344,7 @@ Actual: ` + p3.attribValue
|
|
|
31344
31344
|
}, tg = (t) => Zm(eg(Jm(Qm(t)))), ng = () => ({
|
|
31345
31345
|
mapping: /* @__PURE__ */ new Map(),
|
|
31346
31346
|
isOMark: /* @__PURE__ */ new Map()
|
|
31347
|
-
}),
|
|
31347
|
+
}), Eo$1 = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && /** @type {number} */
|
|
31348
31348
|
e.sv.get(t.id.client) > t.id.clock && !D__namespace.isDeleted(e.ds, t.id), rg = [{ light: "#ecd44433", dark: "#ecd444" }], og = (t, e, n) => {
|
|
31349
31349
|
if (!t.has(n)) {
|
|
31350
31350
|
if (t.size < e.length) {
|
|
@@ -31464,12 +31464,12 @@ Actual: ` + p3.attribValue
|
|
|
31464
31464
|
/** @type {any} */
|
|
31465
31465
|
e.selection.jsonID
|
|
31466
31466
|
),
|
|
31467
|
-
anchor:
|
|
31467
|
+
anchor: Po$1(
|
|
31468
31468
|
e.selection.anchor,
|
|
31469
31469
|
t.type,
|
|
31470
31470
|
t.mapping
|
|
31471
31471
|
),
|
|
31472
|
-
head:
|
|
31472
|
+
head: Po$1(
|
|
31473
31473
|
e.selection.head,
|
|
31474
31474
|
t.type,
|
|
31475
31475
|
t.mapping
|
|
@@ -31604,7 +31604,7 @@ Actual: ` + p3.attribValue
|
|
|
31604
31604
|
}, c3 = D__namespace.typeListToArraySnapshot(
|
|
31605
31605
|
i3,
|
|
31606
31606
|
new D__namespace.Snapshot(n.ds, e.sv)
|
|
31607
|
-
).map((u) => !u._item.deleted ||
|
|
31607
|
+
).map((u) => !u._item.deleted || Eo$1(u._item, e) || Eo$1(u._item, n) ? ir$1(
|
|
31608
31608
|
u,
|
|
31609
31609
|
this.prosemirrorView.state.schema,
|
|
31610
31610
|
{ mapping: /* @__PURE__ */ new Map(), isOMark: /* @__PURE__ */ new Map() },
|
|
@@ -31744,11 +31744,11 @@ Actual: ` + p3.attribValue
|
|
|
31744
31744
|
r === void 0 || o === void 0 ? t.toArray().forEach(a) : D__namespace.typeListToArraySnapshot(t, new D__namespace.Snapshot(o.ds, r.sv)).forEach(a);
|
|
31745
31745
|
try {
|
|
31746
31746
|
const l = t.getAttributes(r);
|
|
31747
|
-
r !== void 0 && (
|
|
31747
|
+
r !== void 0 && (Eo$1(
|
|
31748
31748
|
/** @type {Y.Item} */
|
|
31749
31749
|
t._item,
|
|
31750
31750
|
r
|
|
31751
|
-
) ?
|
|
31751
|
+
) ? Eo$1(
|
|
31752
31752
|
/** @type {Y.Item} */
|
|
31753
31753
|
t._item,
|
|
31754
31754
|
o
|
|
@@ -31842,21 +31842,21 @@ Actual: ` + p3.attribValue
|
|
|
31842
31842
|
);
|
|
31843
31843
|
}
|
|
31844
31844
|
return t instanceof D__namespace.XmlText && e instanceof Array && ud$1(t, e);
|
|
31845
|
-
},
|
|
31845
|
+
}, No$1 = (t, e) => t === e || t instanceof Array && e instanceof Array && t.length === e.length && t.every(
|
|
31846
31846
|
(n, r) => e[r] === n
|
|
31847
31847
|
), nl$1 = (t, e, n) => {
|
|
31848
31848
|
const r = t.toArray(), o = qo$1(e), i3 = o.length, s = r.length, a = zt$1(s, i3);
|
|
31849
31849
|
let l = 0, c3 = 0, d = false;
|
|
31850
31850
|
for (; l < a; l++) {
|
|
31851
31851
|
const u = r[l], f = o[l];
|
|
31852
|
-
if (
|
|
31852
|
+
if (No$1(n.mapping.get(u), f))
|
|
31853
31853
|
d = true;
|
|
31854
31854
|
else if (!kr(u, f))
|
|
31855
31855
|
break;
|
|
31856
31856
|
}
|
|
31857
31857
|
for (; l + c3 < a; c3++) {
|
|
31858
31858
|
const u = r[s - c3 - 1], f = o[i3 - c3 - 1];
|
|
31859
|
-
if (
|
|
31859
|
+
if (No$1(n.mapping.get(u), f))
|
|
31860
31860
|
d = true;
|
|
31861
31861
|
else if (!kr(u, f))
|
|
31862
31862
|
break;
|
|
@@ -31916,7 +31916,7 @@ Actual: ` + p3.attribValue
|
|
|
31916
31916
|
let c3 = 0, d = 0;
|
|
31917
31917
|
for (; c3 < l; c3++) {
|
|
31918
31918
|
const u = s[c3], f = o[c3];
|
|
31919
|
-
if (!
|
|
31919
|
+
if (!No$1(r.mapping.get(u), f))
|
|
31920
31920
|
if (kr(u, f))
|
|
31921
31921
|
r.mapping.set(u, f);
|
|
31922
31922
|
else
|
|
@@ -31924,7 +31924,7 @@ Actual: ` + p3.attribValue
|
|
|
31924
31924
|
}
|
|
31925
31925
|
for (; d + c3 + 1 < l; d++) {
|
|
31926
31926
|
const u = s[a - d - 1], f = o[i3 - d - 1];
|
|
31927
|
-
if (!
|
|
31927
|
+
if (!No$1(r.mapping.get(u), f))
|
|
31928
31928
|
if (kr(u, f))
|
|
31929
31929
|
r.mapping.set(u, f);
|
|
31930
31930
|
else
|
|
@@ -31994,8 +31994,8 @@ Actual: ` + p3.attribValue
|
|
|
31994
31994
|
}), n.dispatch(r));
|
|
31995
31995
|
});
|
|
31996
31996
|
}, gg = (t, e, n) => {
|
|
31997
|
-
sr$1 || (sr$1 = /* @__PURE__ */ new Map(), Ls(0, mg)), sd$1(sr$1, t,
|
|
31998
|
-
},
|
|
31997
|
+
sr$1 || (sr$1 = /* @__PURE__ */ new Map(), Ls(0, mg)), sd$1(sr$1, t, ho$2).set(e, n);
|
|
31998
|
+
}, Po$1 = (t, e, n) => {
|
|
31999
31999
|
if (t === 0)
|
|
32000
32000
|
return D__namespace.createRelativePositionFromTypeIndex(e, 0, -1);
|
|
32001
32001
|
let r = e._first === null ? null : (
|
|
@@ -32143,14 +32143,14 @@ Actual: ` + p3.attribValue
|
|
|
32143
32143
|
if (u !== null && f !== null) {
|
|
32144
32144
|
const p3 = Nn$2(t.doc.content.size - 1, 0);
|
|
32145
32145
|
u = zt$1(u, p3), f = zt$1(f, p3), a.push(
|
|
32146
|
-
|
|
32146
|
+
F$1.widget(f, () => r(d, c3), {
|
|
32147
32147
|
key: c3 + "",
|
|
32148
32148
|
side: 10
|
|
32149
32149
|
})
|
|
32150
32150
|
);
|
|
32151
32151
|
const h3 = zt$1(u, f), m = Nn$2(u, f);
|
|
32152
32152
|
a.push(
|
|
32153
|
-
|
|
32153
|
+
F$1.inline(h3, m, o(d, c3), {
|
|
32154
32154
|
inclusiveEnd: true,
|
|
32155
32155
|
inclusiveStart: false
|
|
32156
32156
|
})
|
|
@@ -32164,7 +32164,7 @@ Actual: ` + p3.attribValue
|
|
|
32164
32164
|
selectionBuilder: r = xg,
|
|
32165
32165
|
getSelection: o = (s) => s.selection
|
|
32166
32166
|
} = {}, i3 = "cursor") => new _p$1({
|
|
32167
|
-
key:
|
|
32167
|
+
key: Zr$1,
|
|
32168
32168
|
state: {
|
|
32169
32169
|
init(s, a) {
|
|
32170
32170
|
return rl$1(
|
|
@@ -32176,7 +32176,7 @@ Actual: ` + p3.attribValue
|
|
|
32176
32176
|
);
|
|
32177
32177
|
},
|
|
32178
32178
|
apply(s, a, l, c3) {
|
|
32179
|
-
const d = te$1.getState(c3), u = s.getMeta(
|
|
32179
|
+
const d = te$1.getState(c3), u = s.getMeta(Zr$1);
|
|
32180
32180
|
return d && d.isChangeOrigin || u && u.awarenessUpdated ? rl$1(
|
|
32181
32181
|
c3,
|
|
32182
32182
|
t,
|
|
@@ -32187,19 +32187,19 @@ Actual: ` + p3.attribValue
|
|
|
32187
32187
|
}
|
|
32188
32188
|
},
|
|
32189
32189
|
props: {
|
|
32190
|
-
decorations: (s) =>
|
|
32190
|
+
decorations: (s) => Zr$1.getState(s)
|
|
32191
32191
|
},
|
|
32192
32192
|
view: (s) => {
|
|
32193
32193
|
const a = () => {
|
|
32194
|
-
s.docView && gg(s,
|
|
32194
|
+
s.docView && gg(s, Zr$1, { awarenessUpdated: true });
|
|
32195
32195
|
}, l = () => {
|
|
32196
32196
|
const c3 = te$1.getState(s.state), d = t.getLocalState() || {};
|
|
32197
32197
|
if (s.hasFocus()) {
|
|
32198
|
-
const u = o(s.state), f =
|
|
32198
|
+
const u = o(s.state), f = Po$1(
|
|
32199
32199
|
u.anchor,
|
|
32200
32200
|
c3.type,
|
|
32201
32201
|
c3.binding.mapping
|
|
32202
|
-
), p3 =
|
|
32202
|
+
), p3 = Po$1(
|
|
32203
32203
|
u.head,
|
|
32204
32204
|
c3.type,
|
|
32205
32205
|
c3.binding.mapping
|
|
@@ -32382,7 +32382,7 @@ Actual: ` + p3.attribValue
|
|
|
32382
32382
|
220: "\\",
|
|
32383
32383
|
221: "]",
|
|
32384
32384
|
222: "'"
|
|
32385
|
-
},
|
|
32385
|
+
}, Io$1 = {
|
|
32386
32386
|
48: ")",
|
|
32387
32387
|
49: "!",
|
|
32388
32388
|
50: "@",
|
|
@@ -32411,10 +32411,10 @@ Actual: ` + p3.attribValue
|
|
|
32411
32411
|
for (var be$1 = 0; be$1 < 10; be$1++) Ht$1[48 + be$1] = Ht$1[96 + be$1] = String(be$1);
|
|
32412
32412
|
for (var be$1 = 1; be$1 <= 24; be$1++) Ht$1[be$1 + 111] = "F" + be$1;
|
|
32413
32413
|
for (var be$1 = 65; be$1 <= 90; be$1++)
|
|
32414
|
-
Ht$1[be$1] = String.fromCharCode(be$1 + 32),
|
|
32415
|
-
for (var hi$1 in Ht$1)
|
|
32414
|
+
Ht$1[be$1] = String.fromCharCode(be$1 + 32), Io$1[be$1] = String.fromCharCode(be$1);
|
|
32415
|
+
for (var hi$1 in Ht$1) Io$1.hasOwnProperty(hi$1) || (Io$1[hi$1] = Ht$1[hi$1]);
|
|
32416
32416
|
function Ig(t) {
|
|
32417
|
-
var e = Ng && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || Pg && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ?
|
|
32417
|
+
var e = Ng && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || Pg && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Io$1 : Ht$1)[t.keyCode] || t.key || "Unidentified";
|
|
32418
32418
|
return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
|
|
32419
32419
|
}
|
|
32420
32420
|
const Rg = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : false;
|
|
@@ -32488,7 +32488,7 @@ Actual: ` + p3.attribValue
|
|
|
32488
32488
|
}
|
|
32489
32489
|
return t;
|
|
32490
32490
|
}
|
|
32491
|
-
function
|
|
32491
|
+
function Fr$1(t, e) {
|
|
32492
32492
|
return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
|
|
32493
32493
|
}
|
|
32494
32494
|
var $n$2, hd$1, md$1;
|
|
@@ -32613,7 +32613,7 @@ Actual: ` + p3.attribValue
|
|
|
32613
32613
|
* @returns The attrs of the node/mark or an empty object.
|
|
32614
32614
|
*/
|
|
32615
32615
|
static getAttributes(e, n) {
|
|
32616
|
-
const r =
|
|
32616
|
+
const r = Fr$1(
|
|
32617
32617
|
typeof n == "string" ? n : n.name,
|
|
32618
32618
|
e.schema
|
|
32619
32619
|
);
|
|
@@ -33650,7 +33650,7 @@ Actual: ` + p3.attribValue
|
|
|
33650
33650
|
t.removeMark(i3.$from.pos, i3.$to.pos);
|
|
33651
33651
|
}), true;
|
|
33652
33652
|
};
|
|
33653
|
-
function
|
|
33653
|
+
function Ro$1(t, e, n = {}) {
|
|
33654
33654
|
const { empty: r, ranges: o } = t.selection, i3 = e ? St$1(e, t.schema) : null;
|
|
33655
33655
|
if (r)
|
|
33656
33656
|
return !!(t.storedMarks || t.selection.$from.marks()).filter((u) => i3 ? i3.name === u.type.name : true).find((u) => Rf$1(u.attrs, n, { strict: false }));
|
|
@@ -33675,7 +33675,7 @@ Actual: ` + p3.attribValue
|
|
|
33675
33675
|
}
|
|
33676
33676
|
const by = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
|
|
33677
33677
|
const { extendEmptyMarkRange: i3 = false } = n, s = St$1(t, r.schema);
|
|
33678
|
-
return
|
|
33678
|
+
return Ro$1(r, s, e) ? o.unsetMark(s, { extendEmptyMarkRange: i3 }) : o.setMark(s, e);
|
|
33679
33679
|
}, wy = () => ({ state: t, tr: e, dispatch: n }) => {
|
|
33680
33680
|
const { selection: r } = e, { ranges: o } = r;
|
|
33681
33681
|
return n && o.forEach(({ $from: i3, $to: s }) => {
|
|
@@ -33695,7 +33695,7 @@ Actual: ` + p3.attribValue
|
|
|
33695
33695
|
const i3 = le$1(t, n.schema);
|
|
33696
33696
|
return i3.isTextblock ? o().command(({ commands: s }) => ol$1(i3, e)(n) ? true : s.clearNodes()).command(({ state: s }) => ol$1(i3, e)(s, r)).run() : false;
|
|
33697
33697
|
};
|
|
33698
|
-
function
|
|
33698
|
+
function Lo$1(t, e, n = {}) {
|
|
33699
33699
|
const { from: r, to: o, empty: i3 } = t.selection, s = e ? le$1(e, t.schema) : null, a = [];
|
|
33700
33700
|
t.doc.nodesBetween(r, o, (u, f) => {
|
|
33701
33701
|
if (u.isText) return;
|
|
@@ -33711,10 +33711,10 @@ Actual: ` + p3.attribValue
|
|
|
33711
33711
|
}
|
|
33712
33712
|
const ky = (t, e, n = {}) => ({ state: r, commands: o }) => {
|
|
33713
33713
|
const i3 = le$1(t, r.schema), s = le$1(e, r.schema);
|
|
33714
|
-
return
|
|
33714
|
+
return Lo$1(r, i3, n) ? o.setNode(s) : o.setNode(i3, n);
|
|
33715
33715
|
}, xy = () => ({ state: t, dispatch: e }) => oy(t, e), Sy = () => ({ state: t, dispatch: e }) => $s(t, e), Cy = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33716
33716
|
let i3 = null, s = null;
|
|
33717
|
-
const a =
|
|
33717
|
+
const a = Fr$1(
|
|
33718
33718
|
typeof t == "string" ? t : t.name,
|
|
33719
33719
|
r.schema
|
|
33720
33720
|
);
|
|
@@ -33731,7 +33731,7 @@ Actual: ` + p3.attribValue
|
|
|
33731
33731
|
}), true) : false;
|
|
33732
33732
|
}, My = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33733
33733
|
let i3 = null, s = null;
|
|
33734
|
-
const a =
|
|
33734
|
+
const a = Fr$1(
|
|
33735
33735
|
typeof t == "string" ? t : t.name,
|
|
33736
33736
|
r.schema
|
|
33737
33737
|
);
|
|
@@ -33750,7 +33750,7 @@ Actual: ` + p3.attribValue
|
|
|
33750
33750
|
}
|
|
33751
33751
|
return t;
|
|
33752
33752
|
};
|
|
33753
|
-
function
|
|
33753
|
+
function Qr$1(t) {
|
|
33754
33754
|
const e = `<body>${t}</body>`, n = new window.DOMParser().parseFromString(e, "text/html").body;
|
|
33755
33755
|
return Id$1(n);
|
|
33756
33756
|
}
|
|
@@ -33793,13 +33793,13 @@ Actual: ` + p3.attribValue
|
|
|
33793
33793
|
}
|
|
33794
33794
|
})
|
|
33795
33795
|
});
|
|
33796
|
-
if (n.slice ? yr$2.fromSchema(l).parseSlice(
|
|
33796
|
+
if (n.slice ? yr$2.fromSchema(l).parseSlice(Qr$1(t), n.parseOptions) : yr$2.fromSchema(l).parse(Qr$1(t), n.parseOptions), n.errorOnInvalidContent && s)
|
|
33797
33797
|
throw new Error("[super-editor error]: Invalid HTML content", {
|
|
33798
33798
|
cause: new Error(`Invalid element found: ${a}`)
|
|
33799
33799
|
});
|
|
33800
33800
|
}
|
|
33801
33801
|
const i3 = yr$2.fromSchema(e);
|
|
33802
|
-
return n.slice ? i3.parseSlice(
|
|
33802
|
+
return n.slice ? i3.parseSlice(Qr$1(t), n.parseOptions).content : i3.parse(Qr$1(t), n.parseOptions);
|
|
33803
33803
|
}
|
|
33804
33804
|
return Gi$1("", e, n);
|
|
33805
33805
|
}
|
|
@@ -33958,7 +33958,7 @@ Actual: ` + p3.attribValue
|
|
|
33958
33958
|
const qy = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
33959
33959
|
const o = le$1(t, n.schema);
|
|
33960
33960
|
return $y(o, e)(n, r);
|
|
33961
|
-
},
|
|
33961
|
+
}, Br$1 = (t, e) => {
|
|
33962
33962
|
for (let n = t.depth; n > 0; n--) {
|
|
33963
33963
|
const r = t.node(n);
|
|
33964
33964
|
if (e(r))
|
|
@@ -33969,7 +33969,7 @@ Actual: ` + p3.attribValue
|
|
|
33969
33969
|
node: r
|
|
33970
33970
|
};
|
|
33971
33971
|
}
|
|
33972
|
-
}, je$1 = (t) => ({ $from: e }) =>
|
|
33972
|
+
}, je$1 = (t) => ({ $from: e }) => Br$1(e, t), Zi$1 = (t, e) => {
|
|
33973
33973
|
const r = e.filter((s) => s.type === "node").find((s) => s.name === t);
|
|
33974
33974
|
if (!r) return false;
|
|
33975
33975
|
const o = {
|
|
@@ -35147,15 +35147,15 @@ Actual: ` + p3.attribValue
|
|
|
35147
35147
|
if (Zi$1(k.node.type.name, f) && h3.validContent(k.node.content) && l)
|
|
35148
35148
|
return c3().command(() => (s.setNodeMarkup(k.pos, h3), true)).command(() => yi$1(s, h3)).command(() => bi$1(s, h3)).run();
|
|
35149
35149
|
}
|
|
35150
|
-
const
|
|
35151
|
-
const
|
|
35150
|
+
const B = ({ ensureMarks: $3 = false }) => () => {
|
|
35151
|
+
const z3 = d().wrapInList(h3, r);
|
|
35152
35152
|
if ($3) {
|
|
35153
35153
|
const H3 = S.filter((ie2) => p3.includes(ie2.type.name));
|
|
35154
35154
|
s.ensureMarks(H3);
|
|
35155
35155
|
}
|
|
35156
|
-
return
|
|
35156
|
+
return z3 ? true : u.clearNodes();
|
|
35157
35157
|
}, C3 = Rd$1(M.definitions);
|
|
35158
|
-
return i3.converter.numbering = Yy(C3, M, h3), r.listId = C3, !n || !S || !l ? c3().command(
|
|
35158
|
+
return i3.converter.numbering = Yy(C3, M, h3), r.listId = C3, !n || !S || !l ? c3().command(B({ ensureMarks: false })).wrapInList(h3, r).command(() => yi$1(s, h3)).command(() => bi$1(s, h3)).run() : c3().command(B({ ensureMarks: true })).wrapInList(h3, r).command(() => yi$1(s, h3)).command(() => bi$1(s, h3)).run();
|
|
35159
35159
|
}, Rd$1 = (t) => Math.max(...Object.keys(t).map(Number)) + 1, Yy = (t, e, n) => {
|
|
35160
35160
|
const r = n.name === "orderedList" ? Ky : Xy, o = { ...e }, i3 = Rd$1(o.abstracts), s = {
|
|
35161
35161
|
...r,
|
|
@@ -35206,9 +35206,9 @@ Actual: ` + p3.attribValue
|
|
|
35206
35206
|
const S = a.before(a.depth - (b - 1));
|
|
35207
35207
|
n.replace(S, a.after(-w), new ae$3(g, 4 - b, 0));
|
|
35208
35208
|
let k = -1;
|
|
35209
|
-
n.doc.nodesBetween(S, n.doc.content.size, (M,
|
|
35209
|
+
n.doc.nodesBetween(S, n.doc.content.size, (M, B) => {
|
|
35210
35210
|
if (k > -1) return false;
|
|
35211
|
-
M.isTextblock && M.content.size === 0 && (k =
|
|
35211
|
+
M.isTextblock && M.content.size === 0 && (k = B + 1);
|
|
35212
35212
|
}), k > -1 && n.setSelection(tt$2.near(n.doc.resolve(k))), n.scrollIntoView();
|
|
35213
35213
|
}
|
|
35214
35214
|
return true;
|
|
@@ -35282,28 +35282,22 @@ Actual: ` + p3.attribValue
|
|
|
35282
35282
|
addCommands() {
|
|
35283
35283
|
return { ...tb };
|
|
35284
35284
|
}
|
|
35285
|
-
}), rb = (t) => {
|
|
35286
|
-
|
|
35287
|
-
|
|
35288
|
-
|
|
35289
|
-
|
|
35290
|
-
|
|
35291
|
-
|
|
35292
|
-
|
|
35293
|
-
|
|
35294
|
-
|
|
35295
|
-
|
|
35296
|
-
|
|
35297
|
-
|
|
35298
|
-
|
|
35299
|
-
|
|
35300
|
-
|
|
35301
|
-
t.commands.first(({ commands: e }) => [
|
|
35302
|
-
() => e.deleteSelection(),
|
|
35303
|
-
() => e.joinForward(),
|
|
35304
|
-
() => e.selectNodeForward()
|
|
35305
|
-
]);
|
|
35306
|
-
}, ob = Z$1.create({
|
|
35285
|
+
}), rb = (t) => t.commands.first(({ commands: e }) => [
|
|
35286
|
+
() => e.newlineInCode(),
|
|
35287
|
+
() => e.createParagraphNear(),
|
|
35288
|
+
() => e.liftEmptyBlock(),
|
|
35289
|
+
() => e.splitBlock()
|
|
35290
|
+
]), Yn$2 = (t) => t.commands.first(({ commands: e, tr: n }) => [
|
|
35291
|
+
() => e.undoInputRule(),
|
|
35292
|
+
() => (n.setMeta("inputType", "deleteContentBackward"), false),
|
|
35293
|
+
() => e.deleteSelection(),
|
|
35294
|
+
() => e.joinBackward(),
|
|
35295
|
+
() => e.selectNodeBackward()
|
|
35296
|
+
]), wn$2 = (t) => t.commands.first(({ commands: e }) => [
|
|
35297
|
+
() => e.deleteSelection(),
|
|
35298
|
+
() => e.joinForward(),
|
|
35299
|
+
() => e.selectNodeForward()
|
|
35300
|
+
]), ob = Z$1.create({
|
|
35307
35301
|
name: "keymap",
|
|
35308
35302
|
addShortcuts() {
|
|
35309
35303
|
const t = {
|
|
@@ -35375,9 +35369,9 @@ Actual: ` + p3.attribValue
|
|
|
35375
35369
|
}
|
|
35376
35370
|
function Fd$1(t, e, n = {}) {
|
|
35377
35371
|
if (!e)
|
|
35378
|
-
return
|
|
35379
|
-
const r =
|
|
35380
|
-
return r === "node" ?
|
|
35372
|
+
return Lo$1(t, null, n) || Ro$1(t, null, n);
|
|
35373
|
+
const r = Fr$1(e, t.schema);
|
|
35374
|
+
return r === "node" ? Lo$1(t, e, n) : r === "mark" ? Ro$1(t, e, n) : false;
|
|
35381
35375
|
}
|
|
35382
35376
|
const js = ({
|
|
35383
35377
|
tr: t,
|
|
@@ -35564,7 +35558,7 @@ Actual: ` + p3.attribValue
|
|
|
35564
35558
|
findChildren: Ws,
|
|
35565
35559
|
findMark: Ho$2,
|
|
35566
35560
|
findParentNode: je$1,
|
|
35567
|
-
findParentNodeClosestToPos:
|
|
35561
|
+
findParentNodeClosestToPos: Br$1,
|
|
35568
35562
|
generateDocxListAttributes: ab,
|
|
35569
35563
|
generateDocxRandomId: Ri$2,
|
|
35570
35564
|
generateRandom32BitHex: nu$2,
|
|
@@ -35576,12 +35570,12 @@ Actual: ` + p3.attribValue
|
|
|
35576
35570
|
getMarksFromSelection: Vo$1,
|
|
35577
35571
|
getNodeType: le$1,
|
|
35578
35572
|
getSchemaTypeByName: Zn$2,
|
|
35579
|
-
getSchemaTypeNameByName:
|
|
35573
|
+
getSchemaTypeNameByName: Fr$1,
|
|
35580
35574
|
isActive: Fd$1,
|
|
35581
35575
|
isInTable: _d$1,
|
|
35582
35576
|
isList: Zi$1,
|
|
35583
|
-
isMarkActive:
|
|
35584
|
-
isNodeActive:
|
|
35577
|
+
isMarkActive: Ro$1,
|
|
35578
|
+
isNodeActive: Lo$1,
|
|
35585
35579
|
isTextSelection: Pd$1,
|
|
35586
35580
|
posToDOMRect: $d$1
|
|
35587
35581
|
}, Symbol.toStringTag, { value: "Module" })), cb = (t, e, n) => {
|
|
@@ -35692,39 +35686,39 @@ Actual: ` + p3.attribValue
|
|
|
35692
35686
|
return o.length ? (o.forEach(({ mark: i3, from: s, to: a }) => {
|
|
35693
35687
|
if (i3.type.name === xr$2)
|
|
35694
35688
|
if (e) {
|
|
35695
|
-
const l =
|
|
35689
|
+
const l = F$1.inline(s, a, {
|
|
35696
35690
|
class: "track-insert-dec hidden"
|
|
35697
35691
|
});
|
|
35698
35692
|
r.push(l);
|
|
35699
35693
|
} else if (n) {
|
|
35700
|
-
const l =
|
|
35694
|
+
const l = F$1.inline(s, a, {
|
|
35701
35695
|
class: "track-insert-dec normal"
|
|
35702
35696
|
});
|
|
35703
35697
|
r.push(l);
|
|
35704
35698
|
} else {
|
|
35705
|
-
const l =
|
|
35699
|
+
const l = F$1.inline(s, a, {
|
|
35706
35700
|
class: "track-insert-dec highlighted"
|
|
35707
35701
|
});
|
|
35708
35702
|
r.push(l);
|
|
35709
35703
|
}
|
|
35710
35704
|
if (i3.type.name === Pi$2)
|
|
35711
35705
|
if (e) {
|
|
35712
|
-
const l =
|
|
35706
|
+
const l = F$1.inline(s, a, {
|
|
35713
35707
|
class: "track-delete-dec normal"
|
|
35714
35708
|
});
|
|
35715
35709
|
r.push(l);
|
|
35716
35710
|
} else if (n) {
|
|
35717
|
-
const l =
|
|
35711
|
+
const l = F$1.inline(s, a, {
|
|
35718
35712
|
class: "track-delete-dec hidden"
|
|
35719
35713
|
});
|
|
35720
35714
|
r.push(l);
|
|
35721
35715
|
} else {
|
|
35722
|
-
const l =
|
|
35716
|
+
const l = F$1.inline(s, a, {
|
|
35723
35717
|
class: "track-delete-dec highlighted"
|
|
35724
35718
|
// 'hidden'
|
|
35725
35719
|
});
|
|
35726
35720
|
r.push(l);
|
|
35727
|
-
const c3 =
|
|
35721
|
+
const c3 = F$1.widget(
|
|
35728
35722
|
s,
|
|
35729
35723
|
() => {
|
|
35730
35724
|
const d = document.createElement("span");
|
|
@@ -35736,17 +35730,17 @@ Actual: ` + p3.attribValue
|
|
|
35736
35730
|
}
|
|
35737
35731
|
if (i3.type.name === Oi$2)
|
|
35738
35732
|
if (e) {
|
|
35739
|
-
const l =
|
|
35733
|
+
const l = F$1.inline(s, a, {
|
|
35740
35734
|
class: "track-format-dec before"
|
|
35741
35735
|
});
|
|
35742
35736
|
r.push(l);
|
|
35743
35737
|
} else if (n) {
|
|
35744
|
-
const l =
|
|
35738
|
+
const l = F$1.inline(s, a, {
|
|
35745
35739
|
class: "track-format-dec normal"
|
|
35746
35740
|
});
|
|
35747
35741
|
r.push(l);
|
|
35748
35742
|
} else {
|
|
35749
|
-
const l =
|
|
35743
|
+
const l = F$1.inline(s, a, {
|
|
35750
35744
|
class: "track-format-dec highlighted"
|
|
35751
35745
|
});
|
|
35752
35746
|
r.push(l);
|
|
@@ -36045,7 +36039,7 @@ Actual: ` + p3.attribValue
|
|
|
36045
36039
|
);
|
|
36046
36040
|
let S = false;
|
|
36047
36041
|
y.forEach((M) => {
|
|
36048
|
-
const { attrs:
|
|
36042
|
+
const { attrs: B } = M, C3 = B.commentId || B.importedId, V = s.coordsAtPos(w);
|
|
36049
36043
|
cl$1({
|
|
36050
36044
|
allCommentPositions: f,
|
|
36051
36045
|
threadId: C3,
|
|
@@ -36053,11 +36047,11 @@ Actual: ` + p3.attribValue
|
|
|
36053
36047
|
currentBounds: V,
|
|
36054
36048
|
node: b
|
|
36055
36049
|
});
|
|
36056
|
-
const $3 =
|
|
36050
|
+
const $3 = B.internal;
|
|
36057
36051
|
S || (S = n === C3);
|
|
36058
|
-
let
|
|
36059
|
-
const H3 =
|
|
36060
|
-
style: `background-color: ${
|
|
36052
|
+
let z3 = gb({ activeThreadId: n, threadId: C3, isInternal: $3, editor: t });
|
|
36053
|
+
const H3 = F$1.inline(w, w + b.nodeSize, {
|
|
36054
|
+
style: `background-color: ${z3};`,
|
|
36061
36055
|
"data-thread-id": C3,
|
|
36062
36056
|
class: "sd-editor-comment-highlight"
|
|
36063
36057
|
});
|
|
@@ -36069,10 +36063,10 @@ Actual: ` + p3.attribValue
|
|
|
36069
36063
|
to: w + b.nodeSize
|
|
36070
36064
|
});
|
|
36071
36065
|
if (k) {
|
|
36072
|
-
const M = s.coordsAtPos(w), { id:
|
|
36066
|
+
const M = s.coordsAtPos(w), { id: B } = k.mark.attrs;
|
|
36073
36067
|
cl$1({
|
|
36074
36068
|
allCommentPositions: f,
|
|
36075
|
-
threadId:
|
|
36069
|
+
threadId: B,
|
|
36076
36070
|
pos: w,
|
|
36077
36071
|
currentBounds: M,
|
|
36078
36072
|
node: b
|
|
@@ -36462,7 +36456,7 @@ Actual: ` + p3.attribValue
|
|
|
36462
36456
|
}, dl$1 = (t) => {
|
|
36463
36457
|
if (t === "initial" || t === "0.4.14") return Object.values(Ob);
|
|
36464
36458
|
};
|
|
36465
|
-
var nn$1, Cs, A, Jd$1, Yd$1, es$1, ts$1, Gd$1,
|
|
36459
|
+
var nn$1, Cs, A, Jd$1, Yd$1, es$1, ts$1, Gd$1, mo$2, ns$1, rs$1, is$1, ss$1, as$1, Zd$1, ls$1, cs$1, go$2, ds$1, Qd$1, Qn$2, er$1, eu$1, tu$1, nu$1, ru$1;
|
|
36466
36460
|
const ia$1 = class ia2 extends Eg {
|
|
36467
36461
|
constructor(n) {
|
|
36468
36462
|
super();
|
|
@@ -36619,9 +36613,9 @@ Actual: ` + p3.attribValue
|
|
|
36619
36613
|
initializeCollaborationData() {
|
|
36620
36614
|
if (!this.options.isNewFile || !this.options.collaborationProvider) return;
|
|
36621
36615
|
const { collaborationProvider: n } = this.options, r = () => {
|
|
36622
|
-
n.off("synced", r), N$1(this, A,
|
|
36616
|
+
n.off("synced", r), N$1(this, A, mo$2).call(this);
|
|
36623
36617
|
};
|
|
36624
|
-
n.synced ? N$1(this, A,
|
|
36618
|
+
n.synced ? N$1(this, A, mo$2).call(this) : n.on("synced", r);
|
|
36625
36619
|
}
|
|
36626
36620
|
/**
|
|
36627
36621
|
* Set editor options and update state.
|
|
@@ -36839,7 +36833,7 @@ Actual: ` + p3.attribValue
|
|
|
36839
36833
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36840
36834
|
*/
|
|
36841
36835
|
processCollaborationMigrations() {
|
|
36842
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
36836
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.20"), !this.options.ydoc) return;
|
|
36843
36837
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36844
36838
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36845
36839
|
const o = dl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -36862,7 +36856,7 @@ Actual: ` + p3.attribValue
|
|
|
36862
36856
|
isNewFile: true,
|
|
36863
36857
|
shouldLoadComments: true,
|
|
36864
36858
|
replacedFile: true
|
|
36865
|
-
}), N$1(this, A, ss$1).call(this), N$1(this, A, as$1).call(this), this.initDefaultStyles(), this.options.ydoc && this.options.collaborationProvider ? this.initializeCollaborationData(true) : N$1(this, A,
|
|
36859
|
+
}), N$1(this, A, ss$1).call(this), N$1(this, A, as$1).call(this), this.initDefaultStyles(), this.options.ydoc && this.options.collaborationProvider ? this.initializeCollaborationData(true) : N$1(this, A, mo$2).call(this), this.options.ydoc || (N$1(this, A, er$1).call(this), N$1(this, A, Qn$2).call(this));
|
|
36866
36860
|
}
|
|
36867
36861
|
getNodesOfType(n) {
|
|
36868
36862
|
const { findChildren: r } = Us;
|
|
@@ -36871,7 +36865,7 @@ Actual: ` + p3.attribValue
|
|
|
36871
36865
|
replaceNodeWithHTML(n, r) {
|
|
36872
36866
|
const { tr: o } = this.state, { dispatch: i3 } = this.view;
|
|
36873
36867
|
if (!n || !r) return;
|
|
36874
|
-
const s = n.pos, a = s + n.node.nodeSize, l = N$1(this, A,
|
|
36868
|
+
const s = n.pos, a = s + n.node.nodeSize, l = N$1(this, A, go$2).call(this, r);
|
|
36875
36869
|
o.replaceWith(s, a, l), i3(o);
|
|
36876
36870
|
}
|
|
36877
36871
|
};
|
|
@@ -36897,7 +36891,7 @@ Actual: ` + p3.attribValue
|
|
|
36897
36891
|
* Replace the current document with new data. Necessary for initializing a new collaboration file,
|
|
36898
36892
|
* since we need to insert the data only after the provider has synced.
|
|
36899
36893
|
*/
|
|
36900
|
-
|
|
36894
|
+
mo$2 = function() {
|
|
36901
36895
|
if (!this.options.isNewFile) return;
|
|
36902
36896
|
this.options.isNewFile = false;
|
|
36903
36897
|
const n = N$1(this, A, cs$1).call(this), r = this.state.tr.replaceWith(0, this.state.doc.content.size, n);
|
|
@@ -36962,7 +36956,7 @@ Actual: ` + p3.attribValue
|
|
|
36962
36956
|
let n;
|
|
36963
36957
|
try {
|
|
36964
36958
|
const { mode: r, fragment: o, isHeadless: i3, content: s, loadFromSchema: a } = this.options;
|
|
36965
|
-
r === "docx" ? (n = Ld$1(this.converter, this.schema, this), n = N$1(this, A, tu$1).call(this, n), this.options.html && (n = N$1(this, A,
|
|
36959
|
+
r === "docx" ? (n = Ld$1(this.converter, this.schema, this), n = N$1(this, A, tu$1).call(this, n), this.options.html && (n = N$1(this, A, go$2).call(this, this.options.html)), o && (n = wg(o, this.schema))) : (r === "text" || r === "html") && (a ? n = this.schema.nodeFromJSON(s) : s ? n = N$1(this, A, go$2).call(this, s) : n = this.schema.topNodeType.createAndFill());
|
|
36966
36960
|
} catch (r) {
|
|
36967
36961
|
console.error(r), this.emit("contentError", { editor: this, error: r });
|
|
36968
36962
|
}
|
|
@@ -36972,7 +36966,7 @@ Actual: ` + p3.attribValue
|
|
|
36972
36966
|
* @param {string} content HTML content.
|
|
36973
36967
|
* @returns {ProseMirrorNode} ProseMirror document.
|
|
36974
36968
|
*/
|
|
36975
|
-
|
|
36969
|
+
go$2 = function(n) {
|
|
36976
36970
|
let r = n;
|
|
36977
36971
|
if (typeof n == "string") {
|
|
36978
36972
|
const o = document.createElement("div");
|
|
@@ -37095,7 +37089,7 @@ Actual: ` + p3.attribValue
|
|
|
37095
37089
|
}
|
|
37096
37090
|
};
|
|
37097
37091
|
let Qi$1 = ia$1;
|
|
37098
|
-
let
|
|
37092
|
+
let J$2 = class J3 {
|
|
37099
37093
|
constructor(e) {
|
|
37100
37094
|
R(this, "type", "node");
|
|
37101
37095
|
R(this, "name", "node");
|
|
@@ -37123,7 +37117,7 @@ Actual: ` + p3.attribValue
|
|
|
37123
37117
|
* @param args Arguments for the constructor.
|
|
37124
37118
|
*/
|
|
37125
37119
|
static create(...e) {
|
|
37126
|
-
return new
|
|
37120
|
+
return new J3(...e);
|
|
37127
37121
|
}
|
|
37128
37122
|
};
|
|
37129
37123
|
let Oe$2 = class Oe2 {
|
|
@@ -37678,12 +37672,12 @@ Actual: ` + p3.attribValue
|
|
|
37678
37672
|
});
|
|
37679
37673
|
}
|
|
37680
37674
|
const Ib = Bs({
|
|
37681
|
-
ArrowLeft:
|
|
37682
|
-
ArrowRight:
|
|
37683
|
-
ArrowUp:
|
|
37684
|
-
ArrowDown:
|
|
37675
|
+
ArrowLeft: eo$2("horiz", -1),
|
|
37676
|
+
ArrowRight: eo$2("horiz", 1),
|
|
37677
|
+
ArrowUp: eo$2("vert", -1),
|
|
37678
|
+
ArrowDown: eo$2("vert", 1)
|
|
37685
37679
|
});
|
|
37686
|
-
function
|
|
37680
|
+
function eo$2(t, e) {
|
|
37687
37681
|
const n = t == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
|
|
37688
37682
|
return function(r, o, i3) {
|
|
37689
37683
|
let s = r.selection, a = e > 0 ? s.$to : s.$from, l = s.empty;
|
|
@@ -37721,7 +37715,7 @@ Actual: ` + p3.attribValue
|
|
|
37721
37715
|
if (!(t.selection instanceof ne$1))
|
|
37722
37716
|
return null;
|
|
37723
37717
|
let e = document.createElement("div");
|
|
37724
|
-
return e.className = "ProseMirror-gapcursor", P.create(t.doc, [
|
|
37718
|
+
return e.className = "ProseMirror-gapcursor", P.create(t.doc, [F$1.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
37725
37719
|
}
|
|
37726
37720
|
const Bb = Z$1.create({
|
|
37727
37721
|
name: "gapCursor",
|
|
@@ -37838,7 +37832,7 @@ Actual: ` + p3.attribValue
|
|
|
37838
37832
|
e.classList.add("ProseMirror-yjs-cursor"), e.setAttribute("style", `border-color: ${t.color}`);
|
|
37839
37833
|
const n = document.createElement("div");
|
|
37840
37834
|
return n.setAttribute("style", `background-color: ${t.color}`), n.insertBefore(document.createTextNode(t.name || t.email), null), e.insertBefore(n, null), e;
|
|
37841
|
-
}, Tn$1 = "aiMark",
|
|
37835
|
+
}, Tn$1 = "aiMark", to$2 = "aiAnimationMark", qb = Oe$2.create({
|
|
37842
37836
|
name: Tn$1,
|
|
37843
37837
|
group: "ai",
|
|
37844
37838
|
inclusive: false,
|
|
@@ -37862,11 +37856,11 @@ Actual: ` + p3.attribValue
|
|
|
37862
37856
|
return [Tn$1, E$1.mergeAttributes(this.options.htmlAttributes, t)];
|
|
37863
37857
|
}
|
|
37864
37858
|
}), Kb = Oe$2.create({
|
|
37865
|
-
name:
|
|
37859
|
+
name: to$2,
|
|
37866
37860
|
group: "ai",
|
|
37867
37861
|
inclusive: false,
|
|
37868
37862
|
spanning: false,
|
|
37869
|
-
excludes:
|
|
37863
|
+
excludes: to$2,
|
|
37870
37864
|
addOptions() {
|
|
37871
37865
|
return {
|
|
37872
37866
|
htmlAttributes: {}
|
|
@@ -37889,10 +37883,10 @@ Actual: ` + p3.attribValue
|
|
|
37889
37883
|
};
|
|
37890
37884
|
},
|
|
37891
37885
|
parseDOM() {
|
|
37892
|
-
return [{ tag:
|
|
37886
|
+
return [{ tag: to$2 }];
|
|
37893
37887
|
},
|
|
37894
37888
|
renderDOM({ htmlAttributes: t }) {
|
|
37895
|
-
return [
|
|
37889
|
+
return [to$2, E$1.mergeAttributes(this.options.htmlAttributes, t)];
|
|
37896
37890
|
}
|
|
37897
37891
|
}), Xb = new qp$1("ai"), fu$1 = Z$1.create({
|
|
37898
37892
|
name: "ai",
|
|
@@ -37957,7 +37951,7 @@ Actual: ` + p3.attribValue
|
|
|
37957
37951
|
return e.descendants((o, i3) => {
|
|
37958
37952
|
const { marks: s = [] } = o;
|
|
37959
37953
|
if (s.find((l) => l.type.name === Tn$1)) {
|
|
37960
|
-
const l =
|
|
37954
|
+
const l = F$1.inline(
|
|
37961
37955
|
i3,
|
|
37962
37956
|
i3 + o.nodeSize,
|
|
37963
37957
|
{
|
|
@@ -37968,7 +37962,7 @@ Actual: ` + p3.attribValue
|
|
|
37968
37962
|
r.push(l);
|
|
37969
37963
|
}
|
|
37970
37964
|
}), { decorations: r };
|
|
37971
|
-
}, pu$1 =
|
|
37965
|
+
}, pu$1 = J$2.create({
|
|
37972
37966
|
name: "doc",
|
|
37973
37967
|
topNode: true,
|
|
37974
37968
|
content: "block+",
|
|
@@ -37985,11 +37979,11 @@ Actual: ` + p3.attribValue
|
|
|
37985
37979
|
}
|
|
37986
37980
|
};
|
|
37987
37981
|
}
|
|
37988
|
-
}), hu$1 =
|
|
37982
|
+
}), hu$1 = J$2.create({
|
|
37989
37983
|
name: "text",
|
|
37990
37984
|
group: "inline",
|
|
37991
37985
|
inline: true
|
|
37992
|
-
}), Yb =
|
|
37986
|
+
}), Yb = J$2.create({
|
|
37993
37987
|
name: "run",
|
|
37994
37988
|
group: "inline",
|
|
37995
37989
|
content: "text*",
|
|
@@ -38008,7 +38002,7 @@ Actual: ` + p3.attribValue
|
|
|
38008
38002
|
};
|
|
38009
38003
|
}
|
|
38010
38004
|
});
|
|
38011
|
-
function
|
|
38005
|
+
function Fo$1(t) {
|
|
38012
38006
|
return new Vg({
|
|
38013
38007
|
match: t.match,
|
|
38014
38008
|
handler: ({
|
|
@@ -38036,7 +38030,7 @@ Actual: ` + p3.attribValue
|
|
|
38036
38030
|
}
|
|
38037
38031
|
});
|
|
38038
38032
|
}
|
|
38039
|
-
const ul$1 = /^\s*([-+*])\s$/, mu$1 =
|
|
38033
|
+
const ul$1 = /^\s*([-+*])\s$/, mu$1 = J$2.create({
|
|
38040
38034
|
name: "bulletList",
|
|
38041
38035
|
group: "block list",
|
|
38042
38036
|
content() {
|
|
@@ -38086,11 +38080,11 @@ Actual: ` + p3.attribValue
|
|
|
38086
38080
|
},
|
|
38087
38081
|
// Input rules.
|
|
38088
38082
|
addInputRules() {
|
|
38089
|
-
let t =
|
|
38083
|
+
let t = Fo$1({
|
|
38090
38084
|
match: ul$1,
|
|
38091
38085
|
type: this.type
|
|
38092
38086
|
});
|
|
38093
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (t =
|
|
38087
|
+
return (this.options.keepMarks || this.options.keepAttributes) && (t = Fo$1({
|
|
38094
38088
|
match: ul$1,
|
|
38095
38089
|
type: this.type,
|
|
38096
38090
|
keepMarks: this.options.keepMarks,
|
|
@@ -38176,10 +38170,10 @@ Actual: ` + p3.attribValue
|
|
|
38176
38170
|
}), l = true, w = g), f.forEach((y, S) => {
|
|
38177
38171
|
if (S === 0)
|
|
38178
38172
|
return;
|
|
38179
|
-
let { node: k, pos: M } = y, { lvlText:
|
|
38173
|
+
let { node: k, pos: M } = y, { lvlText: B, listLevel: C3, listNumberingType: V } = k.attrs;
|
|
38180
38174
|
Array.isArray(w.listLevel) || (w.listLevel = JSON.parse(w.listLevel));
|
|
38181
38175
|
let $3 = [...w.listLevel.slice(0, -1), w.listLevel.at(-1) + 1];
|
|
38182
|
-
if (!(
|
|
38176
|
+
if (!(B === w.lvlText && V === w.listNumberingType && fl$1(C3, $3))) {
|
|
38183
38177
|
let { selection: H3, storedMarks: ie2 } = r, ae2 = ie2 || H3.$to.parentOffset && H3.$from.marks();
|
|
38184
38178
|
s.setNodeMarkup(M, void 0, {
|
|
38185
38179
|
...k.attrs,
|
|
@@ -38251,7 +38245,7 @@ Actual: ` + p3.attribValue
|
|
|
38251
38245
|
listNumberingType: s
|
|
38252
38246
|
};
|
|
38253
38247
|
}
|
|
38254
|
-
const pl$1 = /^(\d+)\.\s$/, yu$1 =
|
|
38248
|
+
const pl$1 = /^(\d+)\.\s$/, yu$1 = J$2.create({
|
|
38255
38249
|
name: "orderedList",
|
|
38256
38250
|
group: "block list",
|
|
38257
38251
|
content() {
|
|
@@ -38393,13 +38387,13 @@ Actual: ` + p3.attribValue
|
|
|
38393
38387
|
return [Qb(this.editor), Gb()];
|
|
38394
38388
|
},
|
|
38395
38389
|
addInputRules() {
|
|
38396
|
-
let t =
|
|
38390
|
+
let t = Fo$1({
|
|
38397
38391
|
match: pl$1,
|
|
38398
38392
|
type: this.type,
|
|
38399
38393
|
getAttributes: (e) => ({ start: +e[1] }),
|
|
38400
38394
|
joinPredicate: (e, n) => n.childCount + n.attrs.start === +e[1]
|
|
38401
38395
|
});
|
|
38402
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (t =
|
|
38396
|
+
return (this.options.keepMarks || this.options.keepAttributes) && (t = Fo$1({
|
|
38403
38397
|
match: pl$1,
|
|
38404
38398
|
type: this.type,
|
|
38405
38399
|
keepMarks: this.options.keepMarks,
|
|
@@ -38506,7 +38500,7 @@ Actual: ` + p3.attribValue
|
|
|
38506
38500
|
style: `--marker-font-size: ${u ?? "initial"}`
|
|
38507
38501
|
}, h3 = {
|
|
38508
38502
|
style: `--marker-font-family: ${f ?? "initial"}`
|
|
38509
|
-
}, m = E$1.mergeAttributes(p3, h3), g =
|
|
38503
|
+
}, m = E$1.mergeAttributes(p3, h3), g = F$1.node(a, a + s.nodeSize, m);
|
|
38510
38504
|
o.push(g);
|
|
38511
38505
|
}), o;
|
|
38512
38506
|
}
|
|
@@ -38524,7 +38518,7 @@ Actual: ` + p3.attribValue
|
|
|
38524
38518
|
`.trim()
|
|
38525
38519
|
};
|
|
38526
38520
|
}
|
|
38527
|
-
let a =
|
|
38521
|
+
let a = F$1.node(i3, i3 + o.nodeSize, s);
|
|
38528
38522
|
n.push(a);
|
|
38529
38523
|
}), n;
|
|
38530
38524
|
}
|
|
@@ -38543,7 +38537,7 @@ Actual: ` + p3.attribValue
|
|
|
38543
38537
|
function h0$1(t) {
|
|
38544
38538
|
return t.childCount === 1 && t.firstChild?.type.name === "paragraph" && t.firstChild?.content.size === 0;
|
|
38545
38539
|
}
|
|
38546
|
-
const vu$1 =
|
|
38540
|
+
const vu$1 = J$2.create({
|
|
38547
38541
|
name: "listItem",
|
|
38548
38542
|
content: "paragraph* block*",
|
|
38549
38543
|
defining: true,
|
|
@@ -38665,7 +38659,7 @@ Actual: ` + p3.attribValue
|
|
|
38665
38659
|
addPmPlugins() {
|
|
38666
38660
|
return [f0$1()];
|
|
38667
38661
|
}
|
|
38668
|
-
}),
|
|
38662
|
+
}), yo$2 = new qp$1("linkedStyles"), m0$1 = Z$1.create({
|
|
38669
38663
|
name: "linkedStyles",
|
|
38670
38664
|
addPmPlugins() {
|
|
38671
38665
|
return [g0$1(this.editor)];
|
|
@@ -38689,7 +38683,7 @@ Actual: ` + p3.attribValue
|
|
|
38689
38683
|
};
|
|
38690
38684
|
}
|
|
38691
38685
|
}), g0$1 = (t) => new _p$1({
|
|
38692
|
-
key:
|
|
38686
|
+
key: yo$2,
|
|
38693
38687
|
state: {
|
|
38694
38688
|
init(e, { doc: n, selection: r }) {
|
|
38695
38689
|
if (!t.converter || t.options.mode !== "docx") return {};
|
|
@@ -38703,7 +38697,7 @@ Actual: ` + p3.attribValue
|
|
|
38703
38697
|
if (!t.converter || t.options.mode !== "docx") return { ...n };
|
|
38704
38698
|
let i3 = n.decorations || P.empty;
|
|
38705
38699
|
if (e.docChanged) {
|
|
38706
|
-
const s =
|
|
38700
|
+
const s = yo$2.getState(t.state).styles;
|
|
38707
38701
|
i3 = gl$1(o, s);
|
|
38708
38702
|
}
|
|
38709
38703
|
return { ...n, decorations: i3 };
|
|
@@ -38711,7 +38705,7 @@ Actual: ` + p3.attribValue
|
|
|
38711
38705
|
},
|
|
38712
38706
|
props: {
|
|
38713
38707
|
decorations(e) {
|
|
38714
|
-
return
|
|
38708
|
+
return yo$2.getState(e)?.decorations;
|
|
38715
38709
|
}
|
|
38716
38710
|
}
|
|
38717
38711
|
}), gl$1 = (t, e) => {
|
|
@@ -38725,7 +38719,7 @@ Actual: ` + p3.attribValue
|
|
|
38725
38719
|
if (!l) return;
|
|
38726
38720
|
const d = t.doc.resolve(s).parent, u = y0$1(l, i3, d);
|
|
38727
38721
|
if (!u) return;
|
|
38728
|
-
const f =
|
|
38722
|
+
const f = F$1.inline(s, s + i3.nodeSize, { style: u });
|
|
38729
38723
|
n.push(f);
|
|
38730
38724
|
}), P.create(o, n);
|
|
38731
38725
|
}, y0$1 = (t, e, n, r = true) => {
|
|
@@ -38790,7 +38784,7 @@ Actual: ` + p3.attribValue
|
|
|
38790
38784
|
e += `${r ? `font-family: ${r};` : ""} ${o ? `font-size: ${o};` : ""}`;
|
|
38791
38785
|
}
|
|
38792
38786
|
return e.trim();
|
|
38793
|
-
}, Ix = (t) => t?.converter ? (t.converter.linkedStyles || []).filter((n) => n.type === "paragraph" && n.definition.attrs).sort((n, r) => n.definition.attrs?.name.localeCompare(r.definition.attrs?.name)) : [], ku$1 =
|
|
38787
|
+
}, Ix = (t) => t?.converter ? (t.converter.linkedStyles || []).filter((n) => n.type === "paragraph" && n.definition.attrs).sort((n, r) => n.definition.attrs?.name.localeCompare(r.definition.attrs?.name)) : [], ku$1 = J$2.create({
|
|
38794
38788
|
name: "paragraph",
|
|
38795
38789
|
priority: 1e3,
|
|
38796
38790
|
group: "block",
|
|
@@ -38903,7 +38897,7 @@ Actual: ` + p3.attribValue
|
|
|
38903
38897
|
if (r.attrs.dropcap?.type === "margin") {
|
|
38904
38898
|
const i3 = x0$1(e, o);
|
|
38905
38899
|
n.push(
|
|
38906
|
-
|
|
38900
|
+
F$1.node(o, o + r.nodeSize, { style: `margin-left: -${i3}px;` })
|
|
38907
38901
|
);
|
|
38908
38902
|
}
|
|
38909
38903
|
}), n;
|
|
@@ -38916,7 +38910,7 @@ Actual: ` + p3.attribValue
|
|
|
38916
38910
|
}
|
|
38917
38911
|
return 0;
|
|
38918
38912
|
}
|
|
38919
|
-
const xu$1 =
|
|
38913
|
+
const xu$1 = J$2.create({
|
|
38920
38914
|
name: "heading",
|
|
38921
38915
|
group: "block",
|
|
38922
38916
|
content: "inline*",
|
|
@@ -38959,7 +38953,7 @@ Actual: ` + p3.attribValue
|
|
|
38959
38953
|
{}
|
|
38960
38954
|
);
|
|
38961
38955
|
}
|
|
38962
|
-
}), S0$1 =
|
|
38956
|
+
}), S0$1 = J$2.create({
|
|
38963
38957
|
name: "commentRangeStart",
|
|
38964
38958
|
group: "inline",
|
|
38965
38959
|
inline: true,
|
|
@@ -38990,7 +38984,7 @@ Actual: ` + p3.attribValue
|
|
|
38990
38984
|
}
|
|
38991
38985
|
};
|
|
38992
38986
|
}
|
|
38993
|
-
}), C0$1 =
|
|
38987
|
+
}), C0$1 = J$2.create({
|
|
38994
38988
|
name: "commentRangeEnd",
|
|
38995
38989
|
group: "inline",
|
|
38996
38990
|
inline: true,
|
|
@@ -39017,7 +39011,7 @@ Actual: ` + p3.attribValue
|
|
|
39017
39011
|
}
|
|
39018
39012
|
};
|
|
39019
39013
|
}
|
|
39020
|
-
}), M0 =
|
|
39014
|
+
}), M0 = J$2.create({
|
|
39021
39015
|
name: "commentReference",
|
|
39022
39016
|
group: "inline",
|
|
39023
39017
|
inline: true,
|
|
@@ -39069,7 +39063,7 @@ Actual: ` + p3.attribValue
|
|
|
39069
39063
|
renderDOM({ htmlAttributes: t }) {
|
|
39070
39064
|
return [Le, E$1.mergeAttributes(this.options.htmlAttributes, t)];
|
|
39071
39065
|
}
|
|
39072
|
-
}), O0$1 =
|
|
39066
|
+
}), O0$1 = J$2.create({
|
|
39073
39067
|
name: "tab",
|
|
39074
39068
|
group: "inline",
|
|
39075
39069
|
inline: true,
|
|
@@ -39142,7 +39136,7 @@ Actual: ` + p3.attribValue
|
|
|
39142
39136
|
}
|
|
39143
39137
|
const l = i3.nodeBefore?.type.name === "tab" ? wi$1 : wi$1 - a % wi$1, c3 = D0(i3);
|
|
39144
39138
|
n.push(
|
|
39145
|
-
|
|
39139
|
+
F$1.node(o, o + r.nodeSize, { style: `width: ${l}px; height: ${c3};` })
|
|
39146
39140
|
);
|
|
39147
39141
|
}
|
|
39148
39142
|
}), n;
|
|
@@ -39159,7 +39153,7 @@ Actual: ` + p3.attribValue
|
|
|
39159
39153
|
const i3 = t.node(1).firstChild.marks.find((a) => a.type.name === "textStyle");
|
|
39160
39154
|
return `${(parseInt(i3?.attrs.fontSize) * 1.333 || 16) * 1.1}px`;
|
|
39161
39155
|
}
|
|
39162
|
-
const E0$1 =
|
|
39156
|
+
const E0$1 = J$2.create({
|
|
39163
39157
|
name: "lineBreak",
|
|
39164
39158
|
group: "inline",
|
|
39165
39159
|
inline: true,
|
|
@@ -39174,7 +39168,7 @@ Actual: ` + p3.attribValue
|
|
|
39174
39168
|
renderDOM() {
|
|
39175
39169
|
return ["br", {}];
|
|
39176
39170
|
}
|
|
39177
|
-
}), Su$1 =
|
|
39171
|
+
}), Su$1 = J$2.create({
|
|
39178
39172
|
name: "hardBreak",
|
|
39179
39173
|
group: "inline",
|
|
39180
39174
|
inline: true,
|
|
@@ -39433,8 +39427,8 @@ Actual: ` + p3.attribValue
|
|
|
39433
39427
|
});
|
|
39434
39428
|
const k = w && w[S];
|
|
39435
39429
|
if (k) {
|
|
39436
|
-
const M = (y + S) % e * 2,
|
|
39437
|
-
|
|
39430
|
+
const M = (y + S) % e * 2, B = s[M];
|
|
39431
|
+
B == null || B != k && s[M + 1] == 1 ? (s[M] = k, s[M + 1] = 1) : B == k && s[M + 1]++;
|
|
39438
39432
|
}
|
|
39439
39433
|
}
|
|
39440
39434
|
}
|
|
@@ -39770,7 +39764,7 @@ Actual: ` + p3.attribValue
|
|
|
39770
39764
|
const e = [];
|
|
39771
39765
|
return t.selection.forEachCell((n, r) => {
|
|
39772
39766
|
e.push(
|
|
39773
|
-
|
|
39767
|
+
F$1.node(r, r + n.nodeSize, { class: "selectedCell" })
|
|
39774
39768
|
);
|
|
39775
39769
|
}), P.create(t.doc, e);
|
|
39776
39770
|
}
|
|
@@ -40316,7 +40310,7 @@ Actual: ` + p3.attribValue
|
|
|
40316
40310
|
), true;
|
|
40317
40311
|
return false;
|
|
40318
40312
|
}
|
|
40319
|
-
function
|
|
40313
|
+
function no$2(t, e) {
|
|
40320
40314
|
const n = t.selection;
|
|
40321
40315
|
if (!(n instanceof G)) return false;
|
|
40322
40316
|
if (e) {
|
|
@@ -40528,28 +40522,28 @@ Actual: ` + p3.attribValue
|
|
|
40528
40522
|
), e(u);
|
|
40529
40523
|
}
|
|
40530
40524
|
var hw = Bs({
|
|
40531
|
-
ArrowLeft:
|
|
40532
|
-
ArrowRight:
|
|
40533
|
-
ArrowUp:
|
|
40534
|
-
ArrowDown:
|
|
40535
|
-
"Shift-ArrowLeft":
|
|
40536
|
-
"Shift-ArrowRight":
|
|
40537
|
-
"Shift-ArrowUp":
|
|
40538
|
-
"Shift-ArrowDown":
|
|
40539
|
-
Backspace:
|
|
40540
|
-
"Mod-Backspace":
|
|
40541
|
-
Delete:
|
|
40542
|
-
"Mod-Delete":
|
|
40525
|
+
ArrowLeft: ro$2("horiz", -1),
|
|
40526
|
+
ArrowRight: ro$2("horiz", 1),
|
|
40527
|
+
ArrowUp: ro$2("vert", -1),
|
|
40528
|
+
ArrowDown: ro$2("vert", 1),
|
|
40529
|
+
"Shift-ArrowLeft": oo$2("horiz", -1),
|
|
40530
|
+
"Shift-ArrowRight": oo$2("horiz", 1),
|
|
40531
|
+
"Shift-ArrowUp": oo$2("vert", -1),
|
|
40532
|
+
"Shift-ArrowDown": oo$2("vert", 1),
|
|
40533
|
+
Backspace: no$2,
|
|
40534
|
+
"Mod-Backspace": no$2,
|
|
40535
|
+
Delete: no$2,
|
|
40536
|
+
"Mod-Delete": no$2
|
|
40543
40537
|
});
|
|
40544
|
-
function
|
|
40538
|
+
function bo$2(t, e, n) {
|
|
40545
40539
|
return n.eq(t.selection) ? false : (e && e(t.tr.setSelection(n).scrollIntoView()), true);
|
|
40546
40540
|
}
|
|
40547
|
-
function
|
|
40541
|
+
function ro$2(t, e) {
|
|
40548
40542
|
return (n, r, o) => {
|
|
40549
40543
|
if (!o) return false;
|
|
40550
40544
|
const i3 = n.selection;
|
|
40551
40545
|
if (i3 instanceof G)
|
|
40552
|
-
return
|
|
40546
|
+
return bo$2(
|
|
40553
40547
|
n,
|
|
40554
40548
|
r,
|
|
40555
40549
|
Ee$2.near(i3.$headCell, e)
|
|
@@ -40558,7 +40552,7 @@ Actual: ` + p3.attribValue
|
|
|
40558
40552
|
const s = Pu$1(o, t, e);
|
|
40559
40553
|
if (s == null) return false;
|
|
40560
40554
|
if (t == "horiz")
|
|
40561
|
-
return
|
|
40555
|
+
return bo$2(
|
|
40562
40556
|
n,
|
|
40563
40557
|
r,
|
|
40564
40558
|
Ee$2.near(n.doc.resolve(i3.head + e), e)
|
|
@@ -40566,11 +40560,11 @@ Actual: ` + p3.attribValue
|
|
|
40566
40560
|
{
|
|
40567
40561
|
const a = n.doc.resolve(s), l = Mu$1(a, t, e);
|
|
40568
40562
|
let c3;
|
|
40569
|
-
return l ? c3 = Ee$2.near(l, 1) : e < 0 ? c3 = Ee$2.near(n.doc.resolve(a.before(-1)), -1) : c3 = Ee$2.near(n.doc.resolve(a.after(-1)), 1),
|
|
40563
|
+
return l ? c3 = Ee$2.near(l, 1) : e < 0 ? c3 = Ee$2.near(n.doc.resolve(a.before(-1)), -1) : c3 = Ee$2.near(n.doc.resolve(a.after(-1)), 1), bo$2(n, r, c3);
|
|
40570
40564
|
}
|
|
40571
40565
|
};
|
|
40572
40566
|
}
|
|
40573
|
-
function
|
|
40567
|
+
function oo$2(t, e) {
|
|
40574
40568
|
return (n, r, o) => {
|
|
40575
40569
|
if (!o) return false;
|
|
40576
40570
|
const i3 = n.selection;
|
|
@@ -40583,7 +40577,7 @@ Actual: ` + p3.attribValue
|
|
|
40583
40577
|
s = new G(n.doc.resolve(l));
|
|
40584
40578
|
}
|
|
40585
40579
|
const a = Mu$1(s.$headCell, t, e);
|
|
40586
|
-
return a ?
|
|
40580
|
+
return a ? bo$2(
|
|
40587
40581
|
n,
|
|
40588
40582
|
r,
|
|
40589
40583
|
new G(s.$anchorCell, a)
|
|
@@ -40779,19 +40773,19 @@ Actual: ` + p3.attribValue
|
|
|
40779
40773
|
});
|
|
40780
40774
|
return i3;
|
|
40781
40775
|
}
|
|
40782
|
-
var vw = class
|
|
40776
|
+
var vw = class wo2 {
|
|
40783
40777
|
constructor(e, n) {
|
|
40784
40778
|
this.activeHandle = e, this.dragging = n;
|
|
40785
40779
|
}
|
|
40786
40780
|
apply(e) {
|
|
40787
40781
|
const n = this, r = e.getMeta(Ie$1);
|
|
40788
40782
|
if (r && r.setHandle != null)
|
|
40789
|
-
return new
|
|
40783
|
+
return new wo2(r.setHandle, false);
|
|
40790
40784
|
if (r && r.setDragging !== void 0)
|
|
40791
|
-
return new
|
|
40785
|
+
return new wo2(n.activeHandle, r.setDragging);
|
|
40792
40786
|
if (n.activeHandle > -1 && e.docChanged) {
|
|
40793
40787
|
let o = e.mapping.map(n.activeHandle, -1);
|
|
40794
|
-
return ps$1(e.doc.resolve(o)) || (o = -1), new
|
|
40788
|
+
return ps$1(e.doc.resolve(o)) || (o = -1), new wo2(o, n.dragging);
|
|
40795
40789
|
}
|
|
40796
40790
|
return n;
|
|
40797
40791
|
}
|
|
@@ -40940,14 +40934,14 @@ Actual: ` + p3.attribValue
|
|
|
40940
40934
|
if ((l == s.width - 1 || s.map[d] != s.map[d + 1]) && (c3 == 0 || s.map[d] != s.map[d - s.width])) {
|
|
40941
40935
|
const u = s.map[d], f = a + u + i3.nodeAt(u).nodeSize - 1, p3 = document.createElement("div");
|
|
40942
40936
|
p3.className = "column-resize-handle", (n = Ie$1.getState(t)) != null && n.dragging && r.push(
|
|
40943
|
-
|
|
40937
|
+
F$1.node(
|
|
40944
40938
|
a + u,
|
|
40945
40939
|
a + u + i3.nodeAt(u).nodeSize,
|
|
40946
40940
|
{
|
|
40947
40941
|
class: "column-resize-dragging"
|
|
40948
40942
|
}
|
|
40949
40943
|
)
|
|
40950
|
-
), r.push(
|
|
40944
|
+
), r.push(F$1.widget(f, p3));
|
|
40951
40945
|
}
|
|
40952
40946
|
}
|
|
40953
40947
|
return P.create(t.doc, r);
|
|
@@ -40993,11 +40987,11 @@ Actual: ` + p3.attribValue
|
|
|
40993
40987
|
}
|
|
40994
40988
|
});
|
|
40995
40989
|
}
|
|
40996
|
-
const Ew = (t) => t instanceof G,
|
|
40990
|
+
const Ew = (t) => t instanceof G, io$2 = ({ editor: t }) => {
|
|
40997
40991
|
const { selection: e } = t.state;
|
|
40998
40992
|
if (!Ew(e)) return false;
|
|
40999
40993
|
let n = 0;
|
|
41000
|
-
return
|
|
40994
|
+
return Br$1(e.ranges[0].$from, (i3) => i3.type.name === "table")?.node.descendants((i3) => {
|
|
41001
40995
|
if (i3.type.name === "table") return false;
|
|
41002
40996
|
["tableCell", "tableHeader"].includes(i3.type.name) && (n += 1);
|
|
41003
40997
|
}), n === e.ranges.length ? (t.commands.deleteTable(), true) : false;
|
|
@@ -41017,7 +41011,7 @@ Actual: ` + p3.attribValue
|
|
|
41017
41011
|
image: Rw
|
|
41018
41012
|
}[n];
|
|
41019
41013
|
return o ? o(e) : {};
|
|
41020
|
-
}, Pw = (t) => ({ rawHtml: t }), Iw = (t) => ({ displayLabel: t }), Rw = (t) => ({ imageSrc: t }), Lw = (t) => ({ displayLabel: t }), Lu$1 =
|
|
41014
|
+
}, Pw = (t) => ({ rawHtml: t }), Iw = (t) => ({ displayLabel: t }), Rw = (t) => ({ imageSrc: t }), Lw = (t) => ({ displayLabel: t }), Lu$1 = J$2.create({
|
|
41021
41015
|
name: "table",
|
|
41022
41016
|
content: "tableRow+",
|
|
41023
41017
|
group: "block",
|
|
@@ -41148,7 +41142,7 @@ Actual: ` + p3.attribValue
|
|
|
41148
41142
|
}), true;
|
|
41149
41143
|
},
|
|
41150
41144
|
generateTable: (t, e, n) => ({ tr: r, editor: o }) => {
|
|
41151
|
-
const i3 = [], { state: { doc: s, schema: a } } = o, { tableRow: l, tableCell: c3, fieldAnnotation: d, paragraph: u } = a.nodes, f = s.resolve(t.pos), p3 =
|
|
41145
|
+
const i3 = [], { state: { doc: s, schema: a } } = o, { tableRow: l, tableCell: c3, fieldAnnotation: d, paragraph: u } = a.nodes, f = s.resolve(t.pos), p3 = Br$1(f, (w) => w.type === l);
|
|
41152
41146
|
if (!p3) return;
|
|
41153
41147
|
if (p3.node.descendants((w, x3) => {
|
|
41154
41148
|
w.type.name === "fieldAnnotation" && i3.push(w.attrs.fieldId);
|
|
@@ -41182,10 +41176,10 @@ Actual: ` + p3.attribValue
|
|
|
41182
41176
|
return {
|
|
41183
41177
|
Tab: () => this.editor.commands.goToNextCell() ? true : this.editor.can().addRowAfter() ? this.editor.chain().addRowAfter().goToNextCell().run() : false,
|
|
41184
41178
|
"Shift-Tab": () => this.editor.commands.goToPreviousCell(),
|
|
41185
|
-
Backspace:
|
|
41186
|
-
"Mod-Backspace":
|
|
41187
|
-
Delete:
|
|
41188
|
-
"Mod-Delete":
|
|
41179
|
+
Backspace: io$2,
|
|
41180
|
+
"Mod-Backspace": io$2,
|
|
41181
|
+
Delete: io$2,
|
|
41182
|
+
"Mod-Delete": io$2
|
|
41189
41183
|
};
|
|
41190
41184
|
},
|
|
41191
41185
|
addPmPlugins() {
|
|
@@ -41215,7 +41209,7 @@ Actual: ` + p3.attribValue
|
|
|
41215
41209
|
}))
|
|
41216
41210
|
};
|
|
41217
41211
|
}
|
|
41218
|
-
}), Fu$1 =
|
|
41212
|
+
}), Fu$1 = J$2.create({
|
|
41219
41213
|
name: "tableHeader",
|
|
41220
41214
|
content: "block+",
|
|
41221
41215
|
tableRole: "header_cell",
|
|
@@ -41251,7 +41245,7 @@ Actual: ` + p3.attribValue
|
|
|
41251
41245
|
renderDOM({ htmlAttributes: t }) {
|
|
41252
41246
|
return ["th", E$1.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
41253
41247
|
}
|
|
41254
|
-
}), Bu$1 =
|
|
41248
|
+
}), Bu$1 = J$2.create({
|
|
41255
41249
|
name: "tableRow",
|
|
41256
41250
|
content: "(tableCell | tableHeader)*",
|
|
41257
41251
|
tableRole: "row",
|
|
@@ -41275,7 +41269,7 @@ Actual: ` + p3.attribValue
|
|
|
41275
41269
|
renderDOM({ htmlAttributes: t }) {
|
|
41276
41270
|
return ["tr", E$1.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
41277
41271
|
}
|
|
41278
|
-
}), zu$1 =
|
|
41272
|
+
}), zu$1 = J$2.create({
|
|
41279
41273
|
name: "tableCell",
|
|
41280
41274
|
content: "block+",
|
|
41281
41275
|
tableRole: "cell",
|
|
@@ -41640,7 +41634,7 @@ Actual: ` + p3.attribValue
|
|
|
41640
41634
|
}), r;
|
|
41641
41635
|
}
|
|
41642
41636
|
const { findChildren: Hw } = Us;
|
|
41643
|
-
function
|
|
41637
|
+
function vo$2(t, e) {
|
|
41644
41638
|
return Hw(e.doc, (r) => {
|
|
41645
41639
|
let o = r.type.name === "fieldAnnotation";
|
|
41646
41640
|
return Array.isArray(t) ? o && t.includes(r.attrs.fieldId) : o && r.attrs.fieldId === t;
|
|
@@ -41655,7 +41649,7 @@ Actual: ` + p3.attribValue
|
|
|
41655
41649
|
if (e(r) && (n = { node: r, pos: o }), n) return false;
|
|
41656
41650
|
}), n;
|
|
41657
41651
|
}
|
|
41658
|
-
function
|
|
41652
|
+
function ko$2(t, e, n) {
|
|
41659
41653
|
let r = [];
|
|
41660
41654
|
return n.nodesBetween(t, e, (o, i3) => {
|
|
41661
41655
|
!o || o?.nodeSize === void 0 || o.type.name === "fieldAnnotation" && r.push({
|
|
@@ -41667,8 +41661,8 @@ Actual: ` + p3.attribValue
|
|
|
41667
41661
|
const Lx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41668
41662
|
__proto__: null,
|
|
41669
41663
|
findFieldAnnotations: Vw,
|
|
41670
|
-
findFieldAnnotationsBetween:
|
|
41671
|
-
findFieldAnnotationsByFieldId:
|
|
41664
|
+
findFieldAnnotationsBetween: ko$2,
|
|
41665
|
+
findFieldAnnotationsByFieldId: vo$2,
|
|
41672
41666
|
findFirstFieldAnnotationByFieldId: jw,
|
|
41673
41667
|
findRemovedFieldAnnotations: $u$1,
|
|
41674
41668
|
getAllFieldAnnotations: It$1,
|
|
@@ -41749,7 +41743,7 @@ Actual: ` + p3.attribValue
|
|
|
41749
41743
|
};
|
|
41750
41744
|
return `#${i3(e)}${i3(n)}${i3(r)}${o < 1 ? i3(Math.round(o * 255)) : ""}`;
|
|
41751
41745
|
}
|
|
41752
|
-
const ys = "annotation", Vu$1 = "annotation-content", Hu$1 =
|
|
41746
|
+
const ys = "annotation", Vu$1 = "annotation-content", Hu$1 = J$2.create({
|
|
41753
41747
|
name: "fieldAnnotation",
|
|
41754
41748
|
group: "inline",
|
|
41755
41749
|
inline: true,
|
|
@@ -42039,7 +42033,7 @@ Actual: ` + p3.attribValue
|
|
|
42039
42033
|
* })
|
|
42040
42034
|
*/
|
|
42041
42035
|
updateFieldAnnotations: (t, e = {}) => ({ dispatch: n, state: r, commands: o }) => {
|
|
42042
|
-
let i3 =
|
|
42036
|
+
let i3 = vo$2(t, r);
|
|
42043
42037
|
return i3.length && n ? o.updateFieldAnnotationsAttributes(i3, e) : true;
|
|
42044
42038
|
},
|
|
42045
42039
|
/**
|
|
@@ -42074,7 +42068,7 @@ Actual: ` + p3.attribValue
|
|
|
42074
42068
|
* editor.commands.deleteFieldAnnotations(['123', '456'])
|
|
42075
42069
|
*/
|
|
42076
42070
|
deleteFieldAnnotations: (t) => ({ dispatch: e, state: n, tr: r }) => {
|
|
42077
|
-
let o =
|
|
42071
|
+
let o = vo$2(t, n);
|
|
42078
42072
|
return o.length && e && o.forEach((i3) => {
|
|
42079
42073
|
let { pos: s, node: a } = i3, l = r.mapping.map(s), c3 = r.mapping.map(s + a.nodeSize), d = r.doc.nodeAt(l);
|
|
42080
42074
|
a.eq(d) && r.delete(l, c3);
|
|
@@ -42103,7 +42097,7 @@ Actual: ` + p3.attribValue
|
|
|
42103
42097
|
* editor.commands.sliceFieldAnnotations(['123', '456'], 5)
|
|
42104
42098
|
*/
|
|
42105
42099
|
sliceFieldAnnotations: (t, e) => ({ dispatch: n, state: r, tr: o }) => {
|
|
42106
|
-
let i3 =
|
|
42100
|
+
let i3 = vo$2(t, r);
|
|
42107
42101
|
return i3.length && n && i3.forEach((s, a) => {
|
|
42108
42102
|
if (a >= e) {
|
|
42109
42103
|
let { pos: l, node: c3 } = s, d = o.mapping.map(l), u = o.mapping.map(l + c3.nodeSize), f = o.doc.nodeAt(d);
|
|
@@ -42189,7 +42183,7 @@ Actual: ` + p3.attribValue
|
|
|
42189
42183
|
toggleFieldAnnotationsFormat: (t, e = false) => ({ dispatch: n, tr: r, state: o, commands: i3 }) => {
|
|
42190
42184
|
if (!this.options.toggleFormatNames.includes(t))
|
|
42191
42185
|
return false;
|
|
42192
|
-
let { from: a, to: l, node: c3 } = o.selection, d =
|
|
42186
|
+
let { from: a, to: l, node: c3 } = o.selection, d = ko$2(a, l, o.doc);
|
|
42193
42187
|
return d.length && n && (d.forEach((u) => {
|
|
42194
42188
|
i3.updateFieldAnnotationsAttributes([u], {
|
|
42195
42189
|
[t]: !u.node.attrs[t]
|
|
@@ -42197,7 +42191,7 @@ Actual: ` + p3.attribValue
|
|
|
42197
42191
|
}), e && c3?.type.name === this.name && r.setSelection(We$3.create(r.doc, a))), true;
|
|
42198
42192
|
},
|
|
42199
42193
|
setFieldAnnotationsFontFamily: (t, e = false) => ({ dispatch: n, tr: r, state: o, commands: i3 }) => {
|
|
42200
|
-
let { from: s, to: a, node: l } = o.selection, c3 =
|
|
42194
|
+
let { from: s, to: a, node: l } = o.selection, c3 = ko$2(s, a, o.doc);
|
|
42201
42195
|
return c3.length && n && (c3.forEach((d) => {
|
|
42202
42196
|
i3.updateFieldAnnotationsAttributes([d], {
|
|
42203
42197
|
fontFamily: t
|
|
@@ -42205,7 +42199,7 @@ Actual: ` + p3.attribValue
|
|
|
42205
42199
|
}), e && l?.type.name === this.name && r.setSelection(We$3.create(r.doc, s))), true;
|
|
42206
42200
|
},
|
|
42207
42201
|
setFieldAnnotationsFontSize: (t, e = false) => ({ dispatch: n, tr: r, state: o, commands: i3 }) => {
|
|
42208
|
-
let { from: s, to: a, node: l } = o.selection, c3 =
|
|
42202
|
+
let { from: s, to: a, node: l } = o.selection, c3 = ko$2(s, a, o.doc);
|
|
42209
42203
|
if (!c3.length)
|
|
42210
42204
|
return true;
|
|
42211
42205
|
let [d, u] = Lf$1(t), f = 8, p3 = 96, h3 = "pt";
|
|
@@ -42253,17 +42247,17 @@ Actual: ` + p3.attribValue
|
|
|
42253
42247
|
}
|
|
42254
42248
|
return e;
|
|
42255
42249
|
}
|
|
42256
|
-
const
|
|
42257
|
-
key:
|
|
42250
|
+
const Bo$1 = new qp$1("ImagePlaceholder"), ov = (t = {}) => new _p$1({
|
|
42251
|
+
key: Bo$1,
|
|
42258
42252
|
state: {
|
|
42259
42253
|
init() {
|
|
42260
42254
|
return P.empty;
|
|
42261
42255
|
},
|
|
42262
42256
|
apply(e, n, r, o) {
|
|
42263
42257
|
n = n.map(e.mapping, e.doc);
|
|
42264
|
-
let i3 = e.getMeta(
|
|
42258
|
+
let i3 = e.getMeta(Bo$1);
|
|
42265
42259
|
if (i3?.type === "add") {
|
|
42266
|
-
let s = document.createElement("placeholder"), a =
|
|
42260
|
+
let s = document.createElement("placeholder"), a = F$1.widget(i3.pos, s, {
|
|
42267
42261
|
id: i3.id
|
|
42268
42262
|
});
|
|
42269
42263
|
n = n.add(e.doc, [a]);
|
|
@@ -42277,7 +42271,7 @@ Actual: ` + p3.attribValue
|
|
|
42277
42271
|
}
|
|
42278
42272
|
}
|
|
42279
42273
|
}), Fx = (t, e) => {
|
|
42280
|
-
let r =
|
|
42274
|
+
let r = Bo$1.getState(t)?.find(null, null, (o) => o.id === e);
|
|
42281
42275
|
return r?.length ? r[0].from : null;
|
|
42282
42276
|
}, Bl$1 = new qp$1("ImagePosition"), iv = ({ editor: t }) => {
|
|
42283
42277
|
const { view: e } = t;
|
|
@@ -42334,11 +42328,11 @@ Actual: ` + p3.attribValue
|
|
|
42334
42328
|
}
|
|
42335
42329
|
if (i3 += a === "margin" ? `position: absolute; top: ${u?.offsetTop + u?.offsetHeight}px; ` : "", a === "margin") {
|
|
42336
42330
|
const f = e.posAtDOM(u, 1), p3 = document.createElement("div");
|
|
42337
|
-
p3.className = "anchor-image-placeholder", p3.style.float = l, p3.style.width = c3.width + parseInt(d[l]) + "px", p3.style.height = c3.height + parseInt(d.top) + parseInt(d.bottom) + "px", n.push(
|
|
42331
|
+
p3.className = "anchor-image-placeholder", p3.style.float = l, p3.style.width = c3.width + parseInt(d[l]) + "px", p3.style.height = c3.height + parseInt(d.top) + parseInt(d.bottom) + "px", n.push(F$1.widget(f, p3, { key: "stable-key" }));
|
|
42338
42332
|
}
|
|
42339
42333
|
}
|
|
42340
42334
|
n.push(
|
|
42341
|
-
|
|
42335
|
+
F$1.node(o, o + r.nodeSize, { style: i3, class: s })
|
|
42342
42336
|
);
|
|
42343
42337
|
}
|
|
42344
42338
|
}), n;
|
|
@@ -42354,7 +42348,7 @@ Actual: ` + p3.attribValue
|
|
|
42354
42348
|
r = r.parentNode;
|
|
42355
42349
|
}
|
|
42356
42350
|
return null;
|
|
42357
|
-
}, ju$1 =
|
|
42351
|
+
}, ju$1 = J$2.create({
|
|
42358
42352
|
name: "image",
|
|
42359
42353
|
group: "inline",
|
|
42360
42354
|
inline: true,
|
|
@@ -42453,7 +42447,7 @@ Actual: ` + p3.attribValue
|
|
|
42453
42447
|
addPmPlugins() {
|
|
42454
42448
|
return [ov(), iv({ editor: this.editor })];
|
|
42455
42449
|
}
|
|
42456
|
-
}), av =
|
|
42450
|
+
}), av = J$2.create({
|
|
42457
42451
|
name: "bookmarkStart",
|
|
42458
42452
|
group: "inline",
|
|
42459
42453
|
content: "inline*",
|
|
@@ -42478,7 +42472,7 @@ Actual: ` + p3.attribValue
|
|
|
42478
42472
|
renderDOM({ htmlAttributes: t }) {
|
|
42479
42473
|
return ["a", E$1.mergeAttributes(this.options.htmlAttributes, t)];
|
|
42480
42474
|
}
|
|
42481
|
-
}), Wu$1 =
|
|
42475
|
+
}), Wu$1 = J$2.create({
|
|
42482
42476
|
name: "mention",
|
|
42483
42477
|
group: "inline",
|
|
42484
42478
|
inline: true,
|
|
@@ -42516,7 +42510,7 @@ Actual: ` + p3.attribValue
|
|
|
42516
42510
|
email: { default: null }
|
|
42517
42511
|
};
|
|
42518
42512
|
}
|
|
42519
|
-
}), lv =
|
|
42513
|
+
}), lv = J$2.create({
|
|
42520
42514
|
name: "page-number",
|
|
42521
42515
|
group: "inline",
|
|
42522
42516
|
inline: true,
|
|
@@ -42534,7 +42528,7 @@ Actual: ` + p3.attribValue
|
|
|
42534
42528
|
renderDOM({ htmlAttributes: t }) {
|
|
42535
42529
|
return ["span", E$1.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
42536
42530
|
}
|
|
42537
|
-
}), cv =
|
|
42531
|
+
}), cv = J$2.create({
|
|
42538
42532
|
name: "total-page-number",
|
|
42539
42533
|
group: "inline",
|
|
42540
42534
|
inline: true,
|
|
@@ -42552,7 +42546,7 @@ Actual: ` + p3.attribValue
|
|
|
42552
42546
|
renderDOM({ htmlAttributes: t }) {
|
|
42553
42547
|
return ["span", E$1.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
42554
42548
|
}
|
|
42555
|
-
}), dv =
|
|
42549
|
+
}), dv = J$2.create({
|
|
42556
42550
|
name: "shapeContainer",
|
|
42557
42551
|
group: "block",
|
|
42558
42552
|
content: "block+",
|
|
@@ -42598,7 +42592,7 @@ Actual: ` + p3.attribValue
|
|
|
42598
42592
|
0
|
|
42599
42593
|
];
|
|
42600
42594
|
}
|
|
42601
|
-
}), uv =
|
|
42595
|
+
}), uv = J$2.create({
|
|
42602
42596
|
name: "shapeTextbox",
|
|
42603
42597
|
group: "block",
|
|
42604
42598
|
content: "paragraph* block*",
|
|
@@ -42631,7 +42625,7 @@ Actual: ` + p3.attribValue
|
|
|
42631
42625
|
0
|
|
42632
42626
|
];
|
|
42633
42627
|
}
|
|
42634
|
-
}), fv =
|
|
42628
|
+
}), fv = J$2.create({
|
|
42635
42629
|
name: "contentBlock",
|
|
42636
42630
|
group: "block",
|
|
42637
42631
|
content: "",
|
|
@@ -43310,7 +43304,7 @@ Actual: ` + p3.attribValue
|
|
|
43310
43304
|
addPmPlugins() {
|
|
43311
43305
|
const t = (n) => {
|
|
43312
43306
|
if (n.doc.textBetween(0, n.doc.content.size, " ", " ") !== "") return P.empty;
|
|
43313
|
-
const { $from: o } = n.selection, i3 =
|
|
43307
|
+
const { $from: o } = n.selection, i3 = F$1.node(o.before(), o.after(), {
|
|
43314
43308
|
"data-placeholder": this.options.placeholder,
|
|
43315
43309
|
class: "sd-editor-placeholder"
|
|
43316
43310
|
});
|
|
@@ -43330,9 +43324,9 @@ Actual: ` + p3.attribValue
|
|
|
43330
43324
|
})];
|
|
43331
43325
|
}
|
|
43332
43326
|
});
|
|
43333
|
-
var Ee$1 = "top", Ue$1 = "bottom", qe$2 = "right", Ne$1 = "left", Gs = "auto",
|
|
43327
|
+
var Ee$1 = "top", Ue$1 = "bottom", qe$2 = "right", Ne$1 = "left", Gs = "auto", zr$1 = [Ee$1, Ue$1, qe$2, Ne$1], Rn$2 = "start", Mr$1 = "end", wv = "clippingParents", tf$1 = "viewport", Gn$2 = "popper", vv = "reference", Vl$1 = /* @__PURE__ */ zr$1.reduce(function(t, e) {
|
|
43334
43328
|
return t.concat([e + "-" + Rn$2, e + "-" + Mr$1]);
|
|
43335
|
-
}, []), nf$1 = /* @__PURE__ */ [].concat(
|
|
43329
|
+
}, []), nf$1 = /* @__PURE__ */ [].concat(zr$1, [Gs]).reduce(function(t, e) {
|
|
43336
43330
|
return t.concat([e, e + "-" + Rn$2, e + "-" + Mr$1]);
|
|
43337
43331
|
}, []), kv = "beforeRead", xv = "read", Sv = "afterRead", Cv = "beforeMain", Mv = "main", Av = "afterMain", Ov = "beforeWrite", Tv = "write", Dv = "afterWrite", Ev = [kv, xv, Sv, Cv, Mv, Av, Ov, Tv, Dv];
|
|
43338
43332
|
function lt$2(t) {
|
|
@@ -43406,7 +43400,7 @@ Actual: ` + p3.attribValue
|
|
|
43406
43400
|
function it$1(t) {
|
|
43407
43401
|
return t.split("-")[0];
|
|
43408
43402
|
}
|
|
43409
|
-
var an$2 = Math.max,
|
|
43403
|
+
var an$2 = Math.max, zo$1 = Math.min, Ln$2 = Math.round;
|
|
43410
43404
|
function ws() {
|
|
43411
43405
|
var t = navigator.userAgentData;
|
|
43412
43406
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
@@ -43499,7 +43493,7 @@ Actual: ` + p3.attribValue
|
|
|
43499
43493
|
}
|
|
43500
43494
|
return null;
|
|
43501
43495
|
}
|
|
43502
|
-
function
|
|
43496
|
+
function $r$1(t) {
|
|
43503
43497
|
for (var e = Fe$1(t), n = Hl$1(t); n && Iv(n) && xt(n).position === "static"; )
|
|
43504
43498
|
n = Hl$1(n);
|
|
43505
43499
|
return n && (lt$2(n) === "html" || lt$2(n) === "body" && xt(n).position === "static") ? e : n || Rv(t) || e;
|
|
@@ -43508,7 +43502,7 @@ Actual: ` + p3.attribValue
|
|
|
43508
43502
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
43509
43503
|
}
|
|
43510
43504
|
function ar$1(t, e, n) {
|
|
43511
|
-
return an$2(t,
|
|
43505
|
+
return an$2(t, zo$1(e, n));
|
|
43512
43506
|
}
|
|
43513
43507
|
function Lv(t, e, n) {
|
|
43514
43508
|
var r = ar$1(t, e, n);
|
|
@@ -43533,13 +43527,13 @@ Actual: ` + p3.attribValue
|
|
|
43533
43527
|
var Fv = function(e, n) {
|
|
43534
43528
|
return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
|
|
43535
43529
|
placement: n.placement
|
|
43536
|
-
})) : e, lf$1(typeof e != "number" ? e : cf$1(e,
|
|
43530
|
+
})) : e, lf$1(typeof e != "number" ? e : cf$1(e, zr$1));
|
|
43537
43531
|
};
|
|
43538
43532
|
function Bv(t) {
|
|
43539
43533
|
var e, n = t.state, r = t.name, o = t.options, i3 = n.elements.arrow, s = n.modifiersData.popperOffsets, a = it$1(n.placement), l = ea$1(a), c3 = [Ne$1, qe$2].indexOf(a) >= 0, d = c3 ? "height" : "width";
|
|
43540
43534
|
if (!(!i3 || !s)) {
|
|
43541
|
-
var u = Fv(o.padding, n), f = Qs(i3), p3 = l === "y" ? Ee$1 : Ne$1, h3 = l === "y" ? Ue$1 : qe$2, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b =
|
|
43542
|
-
n.modifiersData[r] = (e = {}, e[
|
|
43535
|
+
var u = Fv(o.padding, n), f = Qs(i3), p3 = l === "y" ? Ee$1 : Ne$1, h3 = l === "y" ? Ue$1 : qe$2, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = $r$1(i3), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, x3 = m / 2 - g / 2, y = u[p3], S = w - f[d] - u[h3], k = w / 2 - f[d] / 2 + x3, M = ar$1(y, k, S), B = l;
|
|
43536
|
+
n.modifiersData[r] = (e = {}, e[B] = M, e.centerOffset = M - k, e);
|
|
43543
43537
|
}
|
|
43544
43538
|
}
|
|
43545
43539
|
function zv(t) {
|
|
@@ -43582,8 +43576,8 @@ Actual: ` + p3.attribValue
|
|
|
43582
43576
|
p3 = g.x, m = g.y;
|
|
43583
43577
|
var b = s.hasOwnProperty("x"), w = s.hasOwnProperty("y"), x3 = Ne$1, y = Ee$1, S = window;
|
|
43584
43578
|
if (c3) {
|
|
43585
|
-
var k =
|
|
43586
|
-
if (k === Fe$1(n) && (k = Ut$2(n), xt(k).position !== "static" && a === "absolute" && (M = "scrollHeight",
|
|
43579
|
+
var k = $r$1(n), M = "clientHeight", B = "clientWidth";
|
|
43580
|
+
if (k === Fe$1(n) && (k = Ut$2(n), xt(k).position !== "static" && a === "absolute" && (M = "scrollHeight", B = "scrollWidth")), k = k, o === Ee$1 || (o === Ne$1 || o === qe$2) && i3 === Mr$1) {
|
|
43587
43581
|
y = Ue$1;
|
|
43588
43582
|
var C3 = u && k === S && S.visualViewport ? S.visualViewport.height : (
|
|
43589
43583
|
// $FlowFixMe[prop-missing]
|
|
@@ -43595,21 +43589,21 @@ Actual: ` + p3.attribValue
|
|
|
43595
43589
|
x3 = qe$2;
|
|
43596
43590
|
var V = u && k === S && S.visualViewport ? S.visualViewport.width : (
|
|
43597
43591
|
// $FlowFixMe[prop-missing]
|
|
43598
|
-
k[
|
|
43592
|
+
k[B]
|
|
43599
43593
|
);
|
|
43600
43594
|
p3 -= V - r.width, p3 *= l ? 1 : -1;
|
|
43601
43595
|
}
|
|
43602
43596
|
}
|
|
43603
43597
|
var $3 = Object.assign({
|
|
43604
43598
|
position: a
|
|
43605
|
-
}, c3 && _v),
|
|
43599
|
+
}, c3 && _v), z3 = d === true ? Vv({
|
|
43606
43600
|
x: p3,
|
|
43607
43601
|
y: m
|
|
43608
43602
|
}, Fe$1(n)) : {
|
|
43609
43603
|
x: p3,
|
|
43610
43604
|
y: m
|
|
43611
43605
|
};
|
|
43612
|
-
if (p3 =
|
|
43606
|
+
if (p3 = z3.x, m = z3.y, l) {
|
|
43613
43607
|
var H3;
|
|
43614
43608
|
return Object.assign({}, $3, (H3 = {}, H3[y] = w ? "0" : "", H3[x3] = b ? "0" : "", H3.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + p3 + "px, " + m + "px)" : "translate3d(" + p3 + "px, " + m + "px, 0)", H3));
|
|
43615
43609
|
}
|
|
@@ -43645,17 +43639,17 @@ Actual: ` + p3.attribValue
|
|
|
43645
43639
|
fn: Hv,
|
|
43646
43640
|
data: {}
|
|
43647
43641
|
};
|
|
43648
|
-
var
|
|
43642
|
+
var so$2 = {
|
|
43649
43643
|
passive: true
|
|
43650
43644
|
};
|
|
43651
43645
|
function Wv(t) {
|
|
43652
43646
|
var e = t.state, n = t.instance, r = t.options, o = r.scroll, i3 = o === void 0 ? true : o, s = r.resize, a = s === void 0 ? true : s, l = Fe$1(e.elements.popper), c3 = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
43653
43647
|
return i3 && c3.forEach(function(d) {
|
|
43654
|
-
d.addEventListener("scroll", n.update,
|
|
43655
|
-
}), a && l.addEventListener("resize", n.update,
|
|
43648
|
+
d.addEventListener("scroll", n.update, so$2);
|
|
43649
|
+
}), a && l.addEventListener("resize", n.update, so$2), function() {
|
|
43656
43650
|
i3 && c3.forEach(function(d) {
|
|
43657
|
-
d.removeEventListener("scroll", n.update,
|
|
43658
|
-
}), a && l.removeEventListener("resize", n.update,
|
|
43651
|
+
d.removeEventListener("scroll", n.update, so$2);
|
|
43652
|
+
}), a && l.removeEventListener("resize", n.update, so$2);
|
|
43659
43653
|
};
|
|
43660
43654
|
}
|
|
43661
43655
|
const Uv = {
|
|
@@ -43673,7 +43667,7 @@ Actual: ` + p3.attribValue
|
|
|
43673
43667
|
bottom: "top",
|
|
43674
43668
|
top: "bottom"
|
|
43675
43669
|
};
|
|
43676
|
-
function
|
|
43670
|
+
function xo$2(t) {
|
|
43677
43671
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
43678
43672
|
return qv[e];
|
|
43679
43673
|
});
|
|
@@ -43752,7 +43746,7 @@ Actual: ` + p3.attribValue
|
|
|
43752
43746
|
return e === tf$1 ? vs$1(Xv(t, n)) : fn$2(e) ? Yv(e, n) : vs$1(Jv(Ut$2(t)));
|
|
43753
43747
|
}
|
|
43754
43748
|
function Gv(t) {
|
|
43755
|
-
var e = lr$1(Jo$1(t)), n = ["absolute", "fixed"].indexOf(xt(t).position) >= 0, r = n && We$2(t) ?
|
|
43749
|
+
var e = lr$1(Jo$1(t)), n = ["absolute", "fixed"].indexOf(xt(t).position) >= 0, r = n && We$2(t) ? $r$1(t) : t;
|
|
43756
43750
|
return fn$2(r) ? e.filter(function(o) {
|
|
43757
43751
|
return fn$2(o) && sf$1(o, r) && lt$2(o) !== "body";
|
|
43758
43752
|
}) : [];
|
|
@@ -43760,7 +43754,7 @@ Actual: ` + p3.attribValue
|
|
|
43760
43754
|
function Zv(t, e, n, r) {
|
|
43761
43755
|
var o = e === "clippingParents" ? Gv(t) : [].concat(e), i3 = [].concat(o, [n]), s = i3[0], a = i3.reduce(function(l, c3) {
|
|
43762
43756
|
var d = Ul$1(t, c3, r);
|
|
43763
|
-
return l.top = an$2(d.top, l.top), l.right =
|
|
43757
|
+
return l.top = an$2(d.top, l.top), l.right = zo$1(d.right, l.right), l.bottom = zo$1(d.bottom, l.bottom), l.left = an$2(d.left, l.left), l;
|
|
43764
43758
|
}, Ul$1(t, s, r));
|
|
43765
43759
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
43766
43760
|
}
|
|
@@ -43813,21 +43807,21 @@ Actual: ` + p3.attribValue
|
|
|
43813
43807
|
}
|
|
43814
43808
|
function Ar$1(t, e) {
|
|
43815
43809
|
e === void 0 && (e = {});
|
|
43816
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ? wv : a, c3 = n.rootBoundary, d = c3 === void 0 ? tf$1 : c3, u = n.elementContext, f = u === void 0 ? Gn$2 : u, p3 = n.altBoundary, h3 = p3 === void 0 ? false : p3, m = n.padding, g = m === void 0 ? 0 : m, b = lf$1(typeof g != "number" ? g : cf$1(g,
|
|
43810
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ? wv : a, c3 = n.rootBoundary, d = c3 === void 0 ? tf$1 : c3, u = n.elementContext, f = u === void 0 ? Gn$2 : u, p3 = n.altBoundary, h3 = p3 === void 0 ? false : p3, m = n.padding, g = m === void 0 ? 0 : m, b = lf$1(typeof g != "number" ? g : cf$1(g, zr$1)), w = f === Gn$2 ? vv : Gn$2, x3 = t.rects.popper, y = t.elements[h3 ? w : f], S = Zv(fn$2(y) ? y : y.contextElement || Ut$2(t.elements.popper), l, d, s), k = Fn$2(t.elements.reference), M = uf$1({
|
|
43817
43811
|
reference: k,
|
|
43818
43812
|
element: x3,
|
|
43819
43813
|
placement: o
|
|
43820
|
-
}),
|
|
43814
|
+
}), B = vs$1(Object.assign({}, x3, M)), C3 = f === Gn$2 ? B : k, V = {
|
|
43821
43815
|
top: S.top - C3.top + b.top,
|
|
43822
43816
|
bottom: C3.bottom - S.bottom + b.bottom,
|
|
43823
43817
|
left: S.left - C3.left + b.left,
|
|
43824
43818
|
right: C3.right - S.right + b.right
|
|
43825
43819
|
}, $3 = t.modifiersData.offset;
|
|
43826
43820
|
if (f === Gn$2 && $3) {
|
|
43827
|
-
var
|
|
43821
|
+
var z3 = $3[o];
|
|
43828
43822
|
Object.keys(V).forEach(function(H3) {
|
|
43829
43823
|
var ie2 = [qe$2, Ue$1].indexOf(H3) >= 0 ? 1 : -1, ae2 = [Ee$1, Ue$1].indexOf(H3) >= 0 ? "y" : "x";
|
|
43830
|
-
V[H3] +=
|
|
43824
|
+
V[H3] += z3[ae2] * ie2;
|
|
43831
43825
|
});
|
|
43832
43826
|
}
|
|
43833
43827
|
return V;
|
|
@@ -43836,7 +43830,7 @@ Actual: ` + p3.attribValue
|
|
|
43836
43830
|
e === void 0 && (e = {});
|
|
43837
43831
|
var n = e, r = n.placement, o = n.boundary, i3 = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c3 = l === void 0 ? nf$1 : l, d = Bn$1(r), u = d ? a ? Vl$1 : Vl$1.filter(function(h3) {
|
|
43838
43832
|
return Bn$1(h3) === d;
|
|
43839
|
-
}) :
|
|
43833
|
+
}) : zr$1, f = u.filter(function(h3) {
|
|
43840
43834
|
return c3.indexOf(h3) >= 0;
|
|
43841
43835
|
});
|
|
43842
43836
|
f.length === 0 && (f = u);
|
|
@@ -43855,13 +43849,13 @@ Actual: ` + p3.attribValue
|
|
|
43855
43849
|
function ek(t) {
|
|
43856
43850
|
if (it$1(t) === Gs)
|
|
43857
43851
|
return [];
|
|
43858
|
-
var e =
|
|
43852
|
+
var e = xo$2(t);
|
|
43859
43853
|
return [Wl$1(t), e, Wl$1(e)];
|
|
43860
43854
|
}
|
|
43861
43855
|
function tk(t) {
|
|
43862
43856
|
var e = t.state, n = t.options, r = t.name;
|
|
43863
43857
|
if (!e.modifiersData[r]._skip) {
|
|
43864
|
-
for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = e.options.placement, b = it$1(g), w = b === g, x3 = l || (w || !h3 ? [
|
|
43858
|
+
for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = e.options.placement, b = it$1(g), w = b === g, x3 = l || (w || !h3 ? [xo$2(g)] : ek(g)), y = [g].concat(x3).reduce(function(Ke2, Pe2) {
|
|
43865
43859
|
return Ke2.concat(it$1(Pe2) === Gs ? Qv(e, {
|
|
43866
43860
|
placement: Pe2,
|
|
43867
43861
|
boundary: d,
|
|
@@ -43870,25 +43864,25 @@ Actual: ` + p3.attribValue
|
|
|
43870
43864
|
flipVariations: h3,
|
|
43871
43865
|
allowedAutoPlacements: m
|
|
43872
43866
|
}) : Pe2);
|
|
43873
|
-
}, []), S = e.rects.reference, k = e.rects.popper, M = /* @__PURE__ */ new Map(),
|
|
43874
|
-
var $3 = y[V],
|
|
43867
|
+
}, []), S = e.rects.reference, k = e.rects.popper, M = /* @__PURE__ */ new Map(), B = true, C3 = y[0], V = 0; V < y.length; V++) {
|
|
43868
|
+
var $3 = y[V], z3 = it$1($3), H3 = Bn$1($3) === Rn$2, ie2 = [Ee$1, Ue$1].indexOf(z3) >= 0, ae2 = ie2 ? "width" : "height", fe2 = Ar$1(e, {
|
|
43875
43869
|
placement: $3,
|
|
43876
43870
|
boundary: d,
|
|
43877
43871
|
rootBoundary: u,
|
|
43878
43872
|
altBoundary: f,
|
|
43879
43873
|
padding: c3
|
|
43880
43874
|
}), se2 = ie2 ? H3 ? qe$2 : Ne$1 : H3 ? Ue$1 : Ee$1;
|
|
43881
|
-
S[ae2] > k[ae2] && (se2 =
|
|
43882
|
-
var Q3 =
|
|
43883
|
-
if (i3 && pe2.push(fe2[
|
|
43875
|
+
S[ae2] > k[ae2] && (se2 = xo$2(se2));
|
|
43876
|
+
var Q3 = xo$2(se2), pe2 = [];
|
|
43877
|
+
if (i3 && pe2.push(fe2[z3] <= 0), a && pe2.push(fe2[se2] <= 0, fe2[Q3] <= 0), pe2.every(function(Ke2) {
|
|
43884
43878
|
return Ke2;
|
|
43885
43879
|
})) {
|
|
43886
|
-
C3 = $3,
|
|
43880
|
+
C3 = $3, B = false;
|
|
43887
43881
|
break;
|
|
43888
43882
|
}
|
|
43889
43883
|
M.set($3, pe2);
|
|
43890
43884
|
}
|
|
43891
|
-
if (
|
|
43885
|
+
if (B)
|
|
43892
43886
|
for (var he2 = h3 ? 3 : 1, Te2 = function(Pe2) {
|
|
43893
43887
|
var Xe2 = y.find(function(Ct2) {
|
|
43894
43888
|
var Je2 = M.get(Ct2);
|
|
@@ -44004,7 +43998,7 @@ Actual: ` + p3.attribValue
|
|
|
44004
43998
|
rootBoundary: c3,
|
|
44005
43999
|
padding: u,
|
|
44006
44000
|
altBoundary: d
|
|
44007
|
-
}), b = it$1(e.placement), w = Bn$1(e.placement), x3 = !w, y = ea$1(b), S = dk(y), k = e.modifiersData.popperOffsets, M = e.rects.reference,
|
|
44001
|
+
}), b = it$1(e.placement), w = Bn$1(e.placement), x3 = !w, y = ea$1(b), S = dk(y), k = e.modifiersData.popperOffsets, M = e.rects.reference, B = e.rects.popper, C3 = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
44008
44002
|
placement: e.placement
|
|
44009
44003
|
})) : m, V = typeof C3 == "number" ? {
|
|
44010
44004
|
mainAxis: C3,
|
|
@@ -44012,23 +44006,23 @@ Actual: ` + p3.attribValue
|
|
|
44012
44006
|
} : Object.assign({
|
|
44013
44007
|
mainAxis: 0,
|
|
44014
44008
|
altAxis: 0
|
|
44015
|
-
}, C3), $3 = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null,
|
|
44009
|
+
}, C3), $3 = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, z3 = {
|
|
44016
44010
|
x: 0,
|
|
44017
44011
|
y: 0
|
|
44018
44012
|
};
|
|
44019
44013
|
if (k) {
|
|
44020
44014
|
if (i3) {
|
|
44021
|
-
var H3, ie2 = y === "y" ? Ee$1 : Ne$1, ae2 = y === "y" ? Ue$1 : qe$2, fe2 = y === "y" ? "height" : "width", se2 = k[y], Q3 = se2 + g[ie2], pe2 = se2 - g[ae2], he2 = p3 ? -
|
|
44015
|
+
var H3, ie2 = y === "y" ? Ee$1 : Ne$1, ae2 = y === "y" ? Ue$1 : qe$2, fe2 = y === "y" ? "height" : "width", se2 = k[y], Q3 = se2 + g[ie2], pe2 = se2 - g[ae2], he2 = p3 ? -B[fe2] / 2 : 0, Te2 = w === Rn$2 ? M[fe2] : B[fe2], Be = w === Rn$2 ? -B[fe2] : -M[fe2], dt2 = e.elements.arrow, Ke2 = p3 && dt2 ? Qs(dt2) : {
|
|
44022
44016
|
width: 0,
|
|
44023
44017
|
height: 0
|
|
44024
|
-
}, Pe2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : af$1(), Xe2 = Pe2[ie2], Ct2 = Pe2[ae2], Je2 = ar$1(0, M[fe2], Ke2[fe2]), pn2 = x3 ? M[fe2] / 2 - he2 - Je2 - Xe2 - V.mainAxis : Te2 - Je2 - Xe2 - V.mainAxis, Mt2 = x3 ? -M[fe2] / 2 + he2 + Je2 + Ct2 + V.mainAxis : Be + Je2 + Ct2 + V.mainAxis, hn2 = e.elements.arrow &&
|
|
44025
|
-
k[y] = Un2,
|
|
44018
|
+
}, Pe2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : af$1(), Xe2 = Pe2[ie2], Ct2 = Pe2[ae2], Je2 = ar$1(0, M[fe2], Ke2[fe2]), pn2 = x3 ? M[fe2] / 2 - he2 - Je2 - Xe2 - V.mainAxis : Te2 - Je2 - Xe2 - V.mainAxis, Mt2 = x3 ? -M[fe2] / 2 + he2 + Je2 + Ct2 + V.mainAxis : Be + Je2 + Ct2 + V.mainAxis, hn2 = e.elements.arrow && $r$1(e.elements.arrow), Vr2 = hn2 ? y === "y" ? hn2.clientTop || 0 : hn2.clientLeft || 0 : 0, Wn2 = (H3 = $3?.[y]) != null ? H3 : 0, Hr2 = se2 + pn2 - Wn2 - Vr2, jr2 = se2 + Mt2 - Wn2, Un2 = ar$1(p3 ? zo$1(Q3, Hr2) : Q3, se2, p3 ? an$2(pe2, jr2) : pe2);
|
|
44019
|
+
k[y] = Un2, z3[y] = Un2 - se2;
|
|
44026
44020
|
}
|
|
44027
44021
|
if (a) {
|
|
44028
|
-
var qn2,
|
|
44029
|
-
k[S] =
|
|
44022
|
+
var qn2, Wr2 = y === "x" ? Ee$1 : Ne$1, Ur2 = y === "x" ? Ue$1 : qe$2, ut2 = k[S], At2 = S === "y" ? "height" : "width", Kn2 = ut2 + g[Wr2], qt2 = ut2 - g[Ur2], Xn2 = [Ee$1, Ne$1].indexOf(b) !== -1, qr2 = (qn2 = $3?.[S]) != null ? qn2 : 0, Kr2 = Xn2 ? Kn2 : ut2 - M[At2] - B[At2] - qr2 + V.altAxis, Xr2 = Xn2 ? ut2 + M[At2] + B[At2] - qr2 - V.altAxis : qt2, Jr2 = p3 && Xn2 ? Lv(Kr2, ut2, Xr2) : ar$1(p3 ? Kr2 : Kn2, ut2, p3 ? Xr2 : qt2);
|
|
44023
|
+
k[S] = Jr2, z3[S] = Jr2 - ut2;
|
|
44030
44024
|
}
|
|
44031
|
-
e.modifiersData[r] =
|
|
44025
|
+
e.modifiersData[r] = z3;
|
|
44032
44026
|
}
|
|
44033
44027
|
}
|
|
44034
44028
|
const fk = {
|
|
@@ -44168,7 +44162,7 @@ Actual: ` + p3.attribValue
|
|
|
44168
44162
|
var b = d.elements, w = b.reference, x3 = b.popper;
|
|
44169
44163
|
if (Jl$1(w, x3)) {
|
|
44170
44164
|
d.rects = {
|
|
44171
|
-
reference: gk(w,
|
|
44165
|
+
reference: gk(w, $r$1(x3), d.options.strategy === "fixed"),
|
|
44172
44166
|
popper: Qs(x3)
|
|
44173
44167
|
}, d.reset = false, d.placement = d.options.placement, d.orderedModifiers.forEach(function(V) {
|
|
44174
44168
|
return d.modifiersData[V.name] = Object.assign({}, V.data);
|
|
@@ -44178,10 +44172,10 @@ Actual: ` + p3.attribValue
|
|
|
44178
44172
|
d.reset = false, y = -1;
|
|
44179
44173
|
continue;
|
|
44180
44174
|
}
|
|
44181
|
-
var S = d.orderedModifiers[y], k = S.fn, M = S.options,
|
|
44175
|
+
var S = d.orderedModifiers[y], k = S.fn, M = S.options, B = M === void 0 ? {} : M, C3 = S.name;
|
|
44182
44176
|
typeof k == "function" && (d = k({
|
|
44183
44177
|
state: d,
|
|
44184
|
-
options:
|
|
44178
|
+
options: B,
|
|
44185
44179
|
name: C3,
|
|
44186
44180
|
instance: p3
|
|
44187
44181
|
}) || d);
|
|
@@ -44286,7 +44280,7 @@ Actual: ` + p3.attribValue
|
|
|
44286
44280
|
function Ek(t) {
|
|
44287
44281
|
return t.split("-")[0];
|
|
44288
44282
|
}
|
|
44289
|
-
function
|
|
44283
|
+
function $o$1(t) {
|
|
44290
44284
|
return [].slice.call(t);
|
|
44291
44285
|
}
|
|
44292
44286
|
function Zl$1(t) {
|
|
@@ -44312,7 +44306,7 @@ Actual: ` + p3.attribValue
|
|
|
44312
44306
|
return !!(t && t._tippy && t._tippy.reference === t);
|
|
44313
44307
|
}
|
|
44314
44308
|
function Rk(t) {
|
|
44315
|
-
return Or(t) ? [t] : Nk(t) ?
|
|
44309
|
+
return Or(t) ? [t] : Nk(t) ? $o$1(t) : Array.isArray(t) ? t : $o$1(document.querySelectorAll(t));
|
|
44316
44310
|
}
|
|
44317
44311
|
function xi$1(t, e) {
|
|
44318
44312
|
t.forEach(function(n) {
|
|
@@ -44562,7 +44556,7 @@ Actual: ` + p3.attribValue
|
|
|
44562
44556
|
Or(e.content) ? (xs(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? xs(t, e.content) : t.textContent = e.content);
|
|
44563
44557
|
}
|
|
44564
44558
|
function Ss(t) {
|
|
44565
|
-
var e = t.firstElementChild, n =
|
|
44559
|
+
var e = t.firstElementChild, n = $o$1(e.children);
|
|
44566
44560
|
return {
|
|
44567
44561
|
box: e,
|
|
44568
44562
|
content: n.find(function(r) {
|
|
@@ -44591,9 +44585,9 @@ Actual: ` + p3.attribValue
|
|
|
44591
44585
|
};
|
|
44592
44586
|
}
|
|
44593
44587
|
xf$1.$$tippy = true;
|
|
44594
|
-
var Yk = 1,
|
|
44588
|
+
var Yk = 1, ao$2 = [], Ci$1 = [];
|
|
44595
44589
|
function Gk(t, e) {
|
|
44596
|
-
var n = rc$1(t, Object.assign({}, Re$2, vf$1(Zl$1(e)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f, p3 = [], h3 = Yl$1(
|
|
44590
|
+
var n = rc$1(t, Object.assign({}, Re$2, vf$1(Zl$1(e)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f, p3 = [], h3 = Yl$1(Hr2, n.interactiveDebounce), m, g = Yk++, b = null, w = Dk(n.plugins), x3 = {
|
|
44597
44591
|
// Is the instance currently enabled?
|
|
44598
44592
|
isEnabled: true,
|
|
44599
44593
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -44614,14 +44608,14 @@ Actual: ` + p3.attribValue
|
|
|
44614
44608
|
state: x3,
|
|
44615
44609
|
plugins: w,
|
|
44616
44610
|
// methods
|
|
44617
|
-
clearDelayTimeouts:
|
|
44618
|
-
setProps:
|
|
44619
|
-
setContent:
|
|
44611
|
+
clearDelayTimeouts: Kr2,
|
|
44612
|
+
setProps: Xr2,
|
|
44613
|
+
setContent: Jr2,
|
|
44620
44614
|
show: Mf2,
|
|
44621
44615
|
hide: Af2,
|
|
44622
44616
|
hideWithInteractivity: Of2,
|
|
44623
44617
|
enable: Xn2,
|
|
44624
|
-
disable:
|
|
44618
|
+
disable: qr2,
|
|
44625
44619
|
unmount: Tf2,
|
|
44626
44620
|
destroy: Df2
|
|
44627
44621
|
};
|
|
@@ -44629,7 +44623,7 @@ Actual: ` + p3.attribValue
|
|
|
44629
44623
|
return ge$1.env.NODE_ENV !== "production" && ks(true, "render() function has not been supplied."), y;
|
|
44630
44624
|
var S = n.render(y), k = S.popper, M = S.onUpdate;
|
|
44631
44625
|
k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + y.id, y.popper = k, t._tippy = y, k._tippy = y;
|
|
44632
|
-
var
|
|
44626
|
+
var B = w.map(function(v) {
|
|
44633
44627
|
return v.fn(y);
|
|
44634
44628
|
}), C3 = t.hasAttribute("aria-expanded");
|
|
44635
44629
|
return hn2(), he2(), se2(), Q3("onCreate", [y]), n.showOnCreate && Kn2(), k.addEventListener("mouseenter", function() {
|
|
@@ -44644,7 +44638,7 @@ Actual: ` + p3.attribValue
|
|
|
44644
44638
|
function $3() {
|
|
44645
44639
|
return V()[0] === "hold";
|
|
44646
44640
|
}
|
|
44647
|
-
function
|
|
44641
|
+
function z3() {
|
|
44648
44642
|
var v;
|
|
44649
44643
|
return !!((v = y.props.render) != null && v.$$tippy);
|
|
44650
44644
|
}
|
|
@@ -44665,7 +44659,7 @@ Actual: ` + p3.attribValue
|
|
|
44665
44659
|
v === void 0 && (v = false), k.style.pointerEvents = y.props.interactive && !v ? "" : "none", k.style.zIndex = "" + y.props.zIndex;
|
|
44666
44660
|
}
|
|
44667
44661
|
function Q3(v, O, L3) {
|
|
44668
|
-
if (L3 === void 0 && (L3 = true),
|
|
44662
|
+
if (L3 === void 0 && (L3 = true), B.forEach(function(U3) {
|
|
44669
44663
|
U3[v] && U3[v].apply(U3, O);
|
|
44670
44664
|
}), L3) {
|
|
44671
44665
|
var q3;
|
|
@@ -44696,7 +44690,7 @@ Actual: ` + p3.attribValue
|
|
|
44696
44690
|
}
|
|
44697
44691
|
}
|
|
44698
44692
|
function Te2() {
|
|
44699
|
-
ie2().removeEventListener("mousemove", h3),
|
|
44693
|
+
ie2().removeEventListener("mousemove", h3), ao$2 = ao$2.filter(function(v) {
|
|
44700
44694
|
return v !== h3;
|
|
44701
44695
|
});
|
|
44702
44696
|
}
|
|
@@ -44763,13 +44757,13 @@ Actual: ` + p3.attribValue
|
|
|
44763
44757
|
function hn2() {
|
|
44764
44758
|
$3() && (Mt2("touchstart", Wn2, {
|
|
44765
44759
|
passive: true
|
|
44766
|
-
}), Mt2("touchend",
|
|
44760
|
+
}), Mt2("touchend", jr2, {
|
|
44767
44761
|
passive: true
|
|
44768
44762
|
})), Tk(y.props.trigger).forEach(function(v) {
|
|
44769
44763
|
if (v !== "manual")
|
|
44770
44764
|
switch (Mt2(v, Wn2), v) {
|
|
44771
44765
|
case "mouseenter":
|
|
44772
|
-
Mt2("mouseleave",
|
|
44766
|
+
Mt2("mouseleave", jr2);
|
|
44773
44767
|
break;
|
|
44774
44768
|
case "focus":
|
|
44775
44769
|
Mt2(Vk ? "focusout" : "blur", Un2);
|
|
@@ -44780,7 +44774,7 @@ Actual: ` + p3.attribValue
|
|
|
44780
44774
|
}
|
|
44781
44775
|
});
|
|
44782
44776
|
}
|
|
44783
|
-
function
|
|
44777
|
+
function Vr2() {
|
|
44784
44778
|
p3.forEach(function(v) {
|
|
44785
44779
|
var O = v.node, L3 = v.eventType, q3 = v.handler, U3 = v.options;
|
|
44786
44780
|
O.removeEventListener(L3, q3, U3);
|
|
@@ -44790,12 +44784,12 @@ Actual: ` + p3.attribValue
|
|
|
44790
44784
|
var O, L3 = false;
|
|
44791
44785
|
if (!(!y.state.isEnabled || qn2(v) || a)) {
|
|
44792
44786
|
var q3 = ((O = d) == null ? void 0 : O.type) === "focus";
|
|
44793
|
-
d = v, m = v.currentTarget, he2(), !y.state.isVisible && Pk(v) &&
|
|
44787
|
+
d = v, m = v.currentTarget, he2(), !y.state.isVisible && Pk(v) && ao$2.forEach(function(U3) {
|
|
44794
44788
|
return U3(v);
|
|
44795
44789
|
}), v.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== false && y.state.isVisible ? L3 = true : Kn2(v), v.type === "click" && (s = !L3), L3 && !q3 && qt2(v);
|
|
44796
44790
|
}
|
|
44797
44791
|
}
|
|
44798
|
-
function
|
|
44792
|
+
function Hr2(v) {
|
|
44799
44793
|
var O = v.target, L3 = H3().contains(O) || k.contains(O);
|
|
44800
44794
|
if (!(v.type === "mousemove" && L3)) {
|
|
44801
44795
|
var q3 = At2().concat(k).map(function(U3) {
|
|
@@ -44809,7 +44803,7 @@ Actual: ` + p3.attribValue
|
|
|
44809
44803
|
Fk(q3, v) && (Te2(), qt2(v));
|
|
44810
44804
|
}
|
|
44811
44805
|
}
|
|
44812
|
-
function
|
|
44806
|
+
function jr2(v) {
|
|
44813
44807
|
var O = qn2(v) || y.props.trigger.indexOf("click") >= 0 && s;
|
|
44814
44808
|
if (!O) {
|
|
44815
44809
|
if (y.props.interactive) {
|
|
@@ -44825,9 +44819,9 @@ Actual: ` + p3.attribValue
|
|
|
44825
44819
|
function qn2(v) {
|
|
44826
44820
|
return rt$2.isTouch ? $3() !== v.type.indexOf("touch") >= 0 : false;
|
|
44827
44821
|
}
|
|
44828
|
-
function
|
|
44829
|
-
|
|
44830
|
-
var v = y.props, O = v.popperOptions, L3 = v.placement, q3 = v.offset, U3 = v.getReferenceClientRect, xe = v.moveTransition, ze2 =
|
|
44822
|
+
function Wr2() {
|
|
44823
|
+
Ur2();
|
|
44824
|
+
var v = y.props, O = v.popperOptions, L3 = v.placement, q3 = v.offset, U3 = v.getReferenceClientRect, xe = v.moveTransition, ze2 = z3() ? Ss(k).arrow : null, mn2 = U3 ? {
|
|
44831
44825
|
getBoundingClientRect: U3,
|
|
44832
44826
|
contextElement: U3.contextElement || H3()
|
|
44833
44827
|
} : t, sa2 = {
|
|
@@ -44835,12 +44829,12 @@ Actual: ` + p3.attribValue
|
|
|
44835
44829
|
enabled: true,
|
|
44836
44830
|
phase: "beforeWrite",
|
|
44837
44831
|
requires: ["computeStyles"],
|
|
44838
|
-
fn: function(
|
|
44839
|
-
var gn2 =
|
|
44840
|
-
if (
|
|
44832
|
+
fn: function(Yr2) {
|
|
44833
|
+
var gn2 = Yr2.state;
|
|
44834
|
+
if (z3()) {
|
|
44841
44835
|
var Ef2 = ae2(), Go2 = Ef2.box;
|
|
44842
|
-
["placement", "reference-hidden", "escaped"].forEach(function(
|
|
44843
|
-
|
|
44836
|
+
["placement", "reference-hidden", "escaped"].forEach(function(Gr2) {
|
|
44837
|
+
Gr2 === "placement" ? Go2.setAttribute("data-placement", gn2.placement) : gn2.attributes.popper["data-popper-" + Gr2] ? Go2.setAttribute("data-" + Gr2, "") : Go2.removeAttribute("data-" + Gr2);
|
|
44844
44838
|
}), gn2.attributes.popper = {};
|
|
44845
44839
|
}
|
|
44846
44840
|
}
|
|
@@ -44870,7 +44864,7 @@ Actual: ` + p3.attribValue
|
|
|
44870
44864
|
adaptive: !xe
|
|
44871
44865
|
}
|
|
44872
44866
|
}, sa2];
|
|
44873
|
-
|
|
44867
|
+
z3() && ze2 && Kt2.push({
|
|
44874
44868
|
name: "arrow",
|
|
44875
44869
|
options: {
|
|
44876
44870
|
element: ze2,
|
|
@@ -44882,12 +44876,12 @@ Actual: ` + p3.attribValue
|
|
|
44882
44876
|
modifiers: Kt2
|
|
44883
44877
|
}));
|
|
44884
44878
|
}
|
|
44885
|
-
function
|
|
44879
|
+
function Ur2() {
|
|
44886
44880
|
y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
|
|
44887
44881
|
}
|
|
44888
44882
|
function ut2() {
|
|
44889
44883
|
var v = y.props.appendTo, O, L3 = H3();
|
|
44890
|
-
y.props.interactive && v === mf$1 || v === "parent" ? O = L3.parentNode : O = gf$1(v, [L3]), O.contains(k) || O.appendChild(k), y.state.isMounted = true,
|
|
44884
|
+
y.props.interactive && v === mf$1 || v === "parent" ? O = L3.parentNode : O = gf$1(v, [L3]), O.contains(k) || O.appendChild(k), y.state.isMounted = true, Wr2(), ge$1.env.NODE_ENV !== "production" && gt(y.props.interactive && v === Re$2.appendTo && L3.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
44891
44885
|
|
|
44892
44886
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
44893
44887
|
|
|
@@ -44896,7 +44890,7 @@ Actual: ` + p3.attribValue
|
|
|
44896
44890
|
`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
44897
44891
|
}
|
|
44898
44892
|
function At2() {
|
|
44899
|
-
return
|
|
44893
|
+
return $o$1(k.querySelectorAll("[data-tippy-root]"));
|
|
44900
44894
|
}
|
|
44901
44895
|
function Kn2(v) {
|
|
44902
44896
|
y.clearDelayTimeouts(), v && Q3("onTrigger", [y, v]), Pe2();
|
|
@@ -44922,26 +44916,26 @@ Actual: ` + p3.attribValue
|
|
|
44922
44916
|
function Xn2() {
|
|
44923
44917
|
y.state.isEnabled = true;
|
|
44924
44918
|
}
|
|
44925
|
-
function
|
|
44919
|
+
function qr2() {
|
|
44926
44920
|
y.hide(), y.state.isEnabled = false;
|
|
44927
44921
|
}
|
|
44928
|
-
function
|
|
44922
|
+
function Kr2() {
|
|
44929
44923
|
clearTimeout(r), clearTimeout(o), cancelAnimationFrame(i3);
|
|
44930
44924
|
}
|
|
44931
|
-
function
|
|
44925
|
+
function Xr2(v) {
|
|
44932
44926
|
if (ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("setProps")), !y.state.isDestroyed) {
|
|
44933
|
-
Q3("onBeforeUpdate", [y, v]),
|
|
44927
|
+
Q3("onBeforeUpdate", [y, v]), Vr2();
|
|
44934
44928
|
var O = y.props, L3 = rc$1(t, Object.assign({}, O, Zl$1(v), {
|
|
44935
44929
|
ignoreAttributes: true
|
|
44936
44930
|
}));
|
|
44937
|
-
y.props = L3, hn2(), O.interactiveDebounce !== L3.interactiveDebounce && (Te2(), h3 = Yl$1(
|
|
44931
|
+
y.props = L3, hn2(), O.interactiveDebounce !== L3.interactiveDebounce && (Te2(), h3 = Yl$1(Hr2, L3.interactiveDebounce)), O.triggerTarget && !L3.triggerTarget ? Mn$1(O.triggerTarget).forEach(function(q3) {
|
|
44938
44932
|
q3.removeAttribute("aria-expanded");
|
|
44939
|
-
}) : L3.triggerTarget && t.removeAttribute("aria-expanded"), he2(), se2(), M && M(O, L3), y.popperInstance && (
|
|
44933
|
+
}) : L3.triggerTarget && t.removeAttribute("aria-expanded"), he2(), se2(), M && M(O, L3), y.popperInstance && (Wr2(), At2().forEach(function(q3) {
|
|
44940
44934
|
requestAnimationFrame(q3._tippy.popperInstance.forceUpdate);
|
|
44941
44935
|
})), Q3("onAfterUpdate", [y, v]);
|
|
44942
44936
|
}
|
|
44943
44937
|
}
|
|
44944
|
-
function
|
|
44938
|
+
function Jr2(v) {
|
|
44945
44939
|
y.setProps({
|
|
44946
44940
|
content: v
|
|
44947
44941
|
});
|
|
@@ -44950,18 +44944,18 @@ Actual: ` + p3.attribValue
|
|
|
44950
44944
|
ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("show"));
|
|
44951
44945
|
var v = y.state.isVisible, O = y.state.isDestroyed, L3 = !y.state.isEnabled, q3 = rt$2.isTouch && !y.props.touch, U3 = ki$1(y.props.duration, 0, Re$2.duration);
|
|
44952
44946
|
if (!(v || O || L3 || q3) && !H3().hasAttribute("disabled") && (Q3("onShow", [y], false), y.props.onShow(y) !== false)) {
|
|
44953
|
-
if (y.state.isVisible = true,
|
|
44947
|
+
if (y.state.isVisible = true, z3() && (k.style.visibility = "visible"), se2(), Pe2(), y.state.isMounted || (k.style.transition = "none"), z3()) {
|
|
44954
44948
|
var xe = ae2(), ze2 = xe.box, mn2 = xe.content;
|
|
44955
44949
|
xi$1([ze2, mn2], 0);
|
|
44956
44950
|
}
|
|
44957
44951
|
f = function() {
|
|
44958
44952
|
var Kt2;
|
|
44959
44953
|
if (!(!y.state.isVisible || c3)) {
|
|
44960
|
-
if (c3 = true, k.offsetHeight, k.style.transition = y.props.moveTransition,
|
|
44961
|
-
var Yo2 = ae2(),
|
|
44962
|
-
xi$1([
|
|
44954
|
+
if (c3 = true, k.offsetHeight, k.style.transition = y.props.moveTransition, z3() && y.props.animation) {
|
|
44955
|
+
var Yo2 = ae2(), Yr2 = Yo2.box, gn2 = Yo2.content;
|
|
44956
|
+
xi$1([Yr2, gn2], U3), Ql$1([Yr2, gn2], "visible");
|
|
44963
44957
|
}
|
|
44964
|
-
pe2(), he2(), Gl$1(Ci$1, y), (Kt2 = y.popperInstance) == null || Kt2.forceUpdate(), Q3("onMount", [y]), y.props.animation &&
|
|
44958
|
+
pe2(), he2(), Gl$1(Ci$1, y), (Kt2 = y.popperInstance) == null || Kt2.forceUpdate(), Q3("onMount", [y]), y.props.animation && z3() && Je2(U3, function() {
|
|
44965
44959
|
y.state.isShown = true, Q3("onShown", [y]);
|
|
44966
44960
|
});
|
|
44967
44961
|
}
|
|
@@ -44972,28 +44966,28 @@ Actual: ` + p3.attribValue
|
|
|
44972
44966
|
ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("hide"));
|
|
44973
44967
|
var v = !y.state.isVisible, O = y.state.isDestroyed, L3 = !y.state.isEnabled, q3 = ki$1(y.props.duration, 1, Re$2.duration);
|
|
44974
44968
|
if (!(v || O || L3) && (Q3("onHide", [y], false), y.props.onHide(y) !== false)) {
|
|
44975
|
-
if (y.state.isVisible = false, y.state.isShown = false, c3 = false, s = false,
|
|
44969
|
+
if (y.state.isVisible = false, y.state.isShown = false, c3 = false, s = false, z3() && (k.style.visibility = "hidden"), Te2(), Xe2(), se2(true), z3()) {
|
|
44976
44970
|
var U3 = ae2(), xe = U3.box, ze2 = U3.content;
|
|
44977
44971
|
y.props.animation && (xi$1([xe, ze2], q3), Ql$1([xe, ze2], "hidden"));
|
|
44978
44972
|
}
|
|
44979
|
-
pe2(), he2(), y.props.animation ?
|
|
44973
|
+
pe2(), he2(), y.props.animation ? z3() && Ct2(q3, y.unmount) : y.unmount();
|
|
44980
44974
|
}
|
|
44981
44975
|
}
|
|
44982
44976
|
function Of2(v) {
|
|
44983
|
-
ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("hideWithInteractivity")), ie2().addEventListener("mousemove", h3), Gl$1(
|
|
44977
|
+
ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("hideWithInteractivity")), ie2().addEventListener("mousemove", h3), Gl$1(ao$2, h3), h3(v);
|
|
44984
44978
|
}
|
|
44985
44979
|
function Tf2() {
|
|
44986
|
-
ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (
|
|
44980
|
+
ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (Ur2(), At2().forEach(function(v) {
|
|
44987
44981
|
v._tippy.unmount();
|
|
44988
44982
|
}), k.parentNode && k.parentNode.removeChild(k), Ci$1 = Ci$1.filter(function(v) {
|
|
44989
44983
|
return v !== y;
|
|
44990
44984
|
}), y.state.isMounted = false, Q3("onHidden", [y]));
|
|
44991
44985
|
}
|
|
44992
44986
|
function Df2() {
|
|
44993
|
-
ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(),
|
|
44987
|
+
ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Vr2(), delete t._tippy, y.state.isDestroyed = true, Q3("onDestroy", [y]));
|
|
44994
44988
|
}
|
|
44995
44989
|
}
|
|
44996
|
-
function $
|
|
44990
|
+
function _r$1(t, e) {
|
|
44997
44991
|
e === void 0 && (e = {});
|
|
44998
44992
|
var n = Re$2.plugins.concat(e.plugins || []);
|
|
44999
44993
|
ge$1.env.NODE_ENV !== "production" && (Wk(t), kf$1(e, n)), $k();
|
|
@@ -45015,9 +45009,9 @@ Actual: ` + p3.attribValue
|
|
|
45015
45009
|
}, []);
|
|
45016
45010
|
return Or(t) ? a[0] : a;
|
|
45017
45011
|
}
|
|
45018
|
-
$
|
|
45019
|
-
$
|
|
45020
|
-
$
|
|
45012
|
+
_r$1.defaultProps = Re$2;
|
|
45013
|
+
_r$1.setDefaultProps = Kk;
|
|
45014
|
+
_r$1.currentInput = rt$2;
|
|
45021
45015
|
Object.assign({}, rf$1, {
|
|
45022
45016
|
effect: function(e) {
|
|
45023
45017
|
var n = e.state, r = {
|
|
@@ -45035,7 +45029,7 @@ Actual: ` + p3.attribValue
|
|
|
45035
45029
|
Object.assign(n.elements.popper.style, r.popper), n.styles = r, n.elements.arrow && Object.assign(n.elements.arrow.style, r.arrow);
|
|
45036
45030
|
}
|
|
45037
45031
|
});
|
|
45038
|
-
$
|
|
45032
|
+
_r$1.setDefaultProps({
|
|
45039
45033
|
render: xf$1
|
|
45040
45034
|
});
|
|
45041
45035
|
const Zk = (t, e) => {
|
|
@@ -45136,7 +45130,7 @@ Actual: ` + p3.attribValue
|
|
|
45136
45130
|
const n22 = e22.key === "ArrowDown" || e22.key === "ArrowUp";
|
|
45137
45131
|
this.tippyInstance.state.isVisible && n22 && (e22.preventDefault(), this.popover.firstChild.focus());
|
|
45138
45132
|
});
|
|
45139
|
-
this.editor = n, this.view = e, this.popover = document.createElement("div"), this.popover.className = "sd-editor-popover", document.body.appendChild(this.popover), this.tippyInstance = $
|
|
45133
|
+
this.editor = n, this.view = e, this.popover = document.createElement("div"), this.popover.className = "sd-editor-popover", document.body.appendChild(this.popover), this.tippyInstance = _r$1(this.popover, {
|
|
45140
45134
|
trigger: "manual",
|
|
45141
45135
|
placement: "bottom-start",
|
|
45142
45136
|
interactive: true,
|
|
@@ -45249,7 +45243,7 @@ Actual: ` + p3.attribValue
|
|
|
45249
45243
|
apply(s, a, l, c3) {
|
|
45250
45244
|
const d = s.getMeta(_t$1);
|
|
45251
45245
|
d && d.isReadyToInit && (n = true, o = d.isReadyToInit);
|
|
45252
|
-
const u = s.getMeta(
|
|
45246
|
+
const u = s.getMeta(Bo$1);
|
|
45253
45247
|
if (u) {
|
|
45254
45248
|
if (u.type === "remove") {
|
|
45255
45249
|
const h3 = u.pos, m = t.view.domAtPos(h3).node.querySelector("img");
|
|
@@ -45341,57 +45335,57 @@ Actual: ` + p3.attribValue
|
|
|
45341
45335
|
const o = [], { pageSize: i3, pageMargins: s } = n.converter.pageStyles, a = i3.height * 96;
|
|
45342
45336
|
n.options.scale;
|
|
45343
45337
|
let l = 1, c3 = a, d = null, u = null;
|
|
45344
|
-
const f = Yt$2(l, "headerIds", n), p3 =
|
|
45345
|
-
o.push(
|
|
45338
|
+
const f = Yt$2(l, "headerIds", n), p3 = lo$2(s, i3, r, f), h3 = co$2({ editor: n, header: p3, isFirstHeader: true });
|
|
45339
|
+
o.push(F$1.widget(0, h3, { key: "stable-key" }));
|
|
45346
45340
|
const m = Yt$2(l, "footerIds", n), g = Mi$1(s, i3, r, m);
|
|
45347
45341
|
c3 -= p3.headerHeight + g.footerHeight;
|
|
45348
45342
|
let b = e?.coordsAtPos(t.content.size);
|
|
45349
45343
|
if (!b) return [];
|
|
45350
45344
|
t.descendants((V, $3) => {
|
|
45351
|
-
let
|
|
45345
|
+
let z3 = V, H3 = $3;
|
|
45352
45346
|
if (b = e?.coordsAtPos(H3), !b) return;
|
|
45353
|
-
let ie2 = b.bottom > c3, ae2 =
|
|
45354
|
-
if (
|
|
45355
|
-
const pe2 = Yt$2(l, "headerIds", n,
|
|
45347
|
+
let ie2 = b.bottom > c3, ae2 = z3.type.name === "hardBreak";
|
|
45348
|
+
if (z3.attrs?.pageBreakSource === "sectPr" && (t.nodeAt(H3 + z3.nodeSize)?.attrs?.pageBreakSource === "sectPr" || (ae2 = true), l === 1)) {
|
|
45349
|
+
const pe2 = Yt$2(l, "headerIds", n, z3);
|
|
45356
45350
|
o.pop();
|
|
45357
|
-
const he2 =
|
|
45358
|
-
o.push(
|
|
45351
|
+
const he2 = lo$2(s, i3, r, pe2), Te2 = co$2({ editor: n, header: he2, isFirstHeader: true });
|
|
45352
|
+
o.push(F$1.widget(0, Te2, { key: "stable-key" }));
|
|
45359
45353
|
}
|
|
45360
|
-
if (
|
|
45361
|
-
const Q3 =
|
|
45354
|
+
if (z3.type.name === "paragraph" && z3.attrs.styleId) {
|
|
45355
|
+
const Q3 = yo$2.getState(n.state)?.styles?.find((pe2) => pe2.id === z3.attrs.styleId);
|
|
45362
45356
|
if (Q3) {
|
|
45363
45357
|
const { definition: pe2 = {} } = Q3, { pageBreakBefore: he2, pageBreakAfter: Te2 } = pe2.attrs || {};
|
|
45364
45358
|
(he2 || Te2) && (ie2 = true);
|
|
45365
45359
|
}
|
|
45366
45360
|
}
|
|
45367
45361
|
if (ae2 || ie2) {
|
|
45368
|
-
const se2 = e.state.doc.resolve(H3), Q3 =
|
|
45369
|
-
Q3 && (
|
|
45362
|
+
const se2 = e.state.doc.resolve(H3), Q3 = Br$1(se2, (Je2) => Je2.type.name === "tableRow");
|
|
45363
|
+
Q3 && (z3 = Q3.node, H3 = Q3.pos);
|
|
45370
45364
|
const {
|
|
45371
45365
|
top: pe2,
|
|
45372
45366
|
bottom: he2,
|
|
45373
45367
|
pos: Te2
|
|
45374
|
-
} = px(e, H3, c3), Be = Yt$2(l, "footerIds", n,
|
|
45368
|
+
} = px(e, H3, c3), Be = Yt$2(l, "footerIds", n, z3);
|
|
45375
45369
|
l++;
|
|
45376
45370
|
const dt2 = Yt$2(l, "headerIds", n);
|
|
45377
|
-
u =
|
|
45378
|
-
const Ke2 = c3 - he2, { node: Pe2 } = ac$1(Ke2), Xe2 =
|
|
45371
|
+
u = lo$2(s, i3, r, dt2), d = Mi$1(s, i3, r, Be, l - 1);
|
|
45372
|
+
const Ke2 = c3 - he2, { node: Pe2 } = ac$1(Ke2), Xe2 = F$1.widget(Te2, Pe2, { key: "stable-key" });
|
|
45379
45373
|
o.push(Xe2);
|
|
45380
|
-
const Ct2 =
|
|
45381
|
-
o.push(
|
|
45374
|
+
const Ct2 = co$2({ editor: n, header: u, footer: d });
|
|
45375
|
+
o.push(F$1.widget(Te2, Ct2, { key: "stable-key" })), c3 = he2 + (a - u.headerHeight - d.footerHeight);
|
|
45382
45376
|
}
|
|
45383
45377
|
});
|
|
45384
45378
|
let w = t.content.size;
|
|
45385
45379
|
const x3 = e.coordsAtPos(w), y = Yt$2(l, "headerIds", n), S = Yt$2(l, "footerIds", n);
|
|
45386
|
-
u =
|
|
45387
|
-
const k = c3 - x3.bottom, { node: M } = ac$1(k),
|
|
45388
|
-
o.push(
|
|
45389
|
-
const C3 =
|
|
45390
|
-
return o.push(
|
|
45391
|
-
const
|
|
45392
|
-
if (
|
|
45393
|
-
const H3 =
|
|
45394
|
-
H3 && (
|
|
45380
|
+
u = lo$2(s, i3, r, y), d = Mi$1(s, i3, r, S, l);
|
|
45381
|
+
const k = c3 - x3.bottom, { node: M } = ac$1(k), B = F$1.widget(t.content.size, M, { key: "stable-key" });
|
|
45382
|
+
o.push(B);
|
|
45383
|
+
const C3 = co$2({ editor: n, footer: d, isLastFooter: true });
|
|
45384
|
+
return o.push(F$1.widget(t.content.size, C3, { key: "stable-key" })), o.forEach((V) => {
|
|
45385
|
+
const z3 = V.type.toDOM?.querySelector('span[data-id="auto-total-pages"]');
|
|
45386
|
+
if (z3) {
|
|
45387
|
+
const H3 = z3.previousElementSibling?.style?.fontSize || z3.nextElementSibling?.style?.fontSize;
|
|
45388
|
+
H3 && (z3.style.fontSize = H3), z3.innerText = l;
|
|
45395
45389
|
}
|
|
45396
45390
|
}), o;
|
|
45397
45391
|
}
|
|
@@ -45399,7 +45393,7 @@ Actual: ` + p3.attribValue
|
|
|
45399
45393
|
const e = document.createElement("div");
|
|
45400
45394
|
return e.className = "pagination-page-spacer", e.style.userSelect = "none", e.style.pointerEvents = "none", e.style.height = t + "px", { nodeHeight: t, node: e };
|
|
45401
45395
|
}
|
|
45402
|
-
function
|
|
45396
|
+
function lo$2(t, e, n, r) {
|
|
45403
45397
|
const o = n.headers?.[r], i3 = t.top * 96, s = t.header * 96, l = o?.height > i3 - s ? s : 0, c3 = Math.max(o?.height || 0, i3) + l;
|
|
45404
45398
|
let d = o?.sectionContainer?.cloneNode(true);
|
|
45405
45399
|
return d || (d = document.createElement("div")), d.className = "pagination-section-header", d.style.paddingTop = s + "px", d.style.paddingLeft = t.left * 96 + "px", d.style.paddingRight = t.right * 96 + "px", d.style.height = c3 + "px", d.style.width = e.width * 96 + "px", {
|
|
@@ -45421,7 +45415,7 @@ Actual: ` + p3.attribValue
|
|
|
45421
45415
|
footerHeight: l + a
|
|
45422
45416
|
};
|
|
45423
45417
|
}
|
|
45424
|
-
function
|
|
45418
|
+
function co$2({ editor: t, header: e, footer: n, footerBottom: r = null, isFirstHeader: o, isLastFooter: i3 }) {
|
|
45425
45419
|
const { pageSize: s, pageMargins: a } = t.converter.pageStyles;
|
|
45426
45420
|
let l = 0;
|
|
45427
45421
|
const c3 = document.createElement("div");
|
|
@@ -45674,7 +45668,7 @@ Actual: ` + p3.attribValue
|
|
|
45674
45668
|
if (!a)
|
|
45675
45669
|
break;
|
|
45676
45670
|
let l = a.from == o.from && a.to == o.to ? "ProseMirror-active-search-match" : "ProseMirror-search-match";
|
|
45677
|
-
r.push(
|
|
45671
|
+
r.push(F$1.inline(a.from, a.to, { class: l })), i3 = a.to;
|
|
45678
45672
|
}
|
|
45679
45673
|
return P.create(t.doc, r);
|
|
45680
45674
|
}
|
|
@@ -45715,8 +45709,29 @@ Actual: ` + p3.attribValue
|
|
|
45715
45709
|
return t.setMeta(dr$1, { query: e, range: n });
|
|
45716
45710
|
}
|
|
45717
45711
|
const xx = Z$1.create({
|
|
45712
|
+
addStorage() {
|
|
45713
|
+
return {
|
|
45714
|
+
searchResults: []
|
|
45715
|
+
};
|
|
45716
|
+
},
|
|
45718
45717
|
addPmPlugins() {
|
|
45719
|
-
|
|
45718
|
+
const t = this.editor, e = this.storage, n = new _p$1({
|
|
45719
|
+
key: new qp$1("customSearchHighlights"),
|
|
45720
|
+
props: {
|
|
45721
|
+
decorations(r) {
|
|
45722
|
+
if (!t) return null;
|
|
45723
|
+
const o = e?.searchResults;
|
|
45724
|
+
if (!o?.length) return null;
|
|
45725
|
+
const i3 = o.map(
|
|
45726
|
+
(s, a) => F$1.inline(s.from, s.to, {
|
|
45727
|
+
id: `search-match-${s.id}`
|
|
45728
|
+
})
|
|
45729
|
+
);
|
|
45730
|
+
return P.create(r.doc, i3);
|
|
45731
|
+
}
|
|
45732
|
+
}
|
|
45733
|
+
});
|
|
45734
|
+
return [vx(), n];
|
|
45720
45735
|
},
|
|
45721
45736
|
addCommands() {
|
|
45722
45737
|
return {
|
|
@@ -45726,29 +45741,30 @@ Actual: ` + p3.attribValue
|
|
|
45726
45741
|
const o = r.children.find((s) => s.local), i3 = r.children[0] + o.local[0].from + 1;
|
|
45727
45742
|
e.view.domAtPos(i3)?.node?.scrollIntoView(true);
|
|
45728
45743
|
},
|
|
45729
|
-
search: (t) => ({ state: e,
|
|
45730
|
-
let
|
|
45731
|
-
const
|
|
45744
|
+
search: (t) => ({ state: e, editor: n, dispatch: r }) => {
|
|
45745
|
+
let o, i3 = false, s = false;
|
|
45746
|
+
const a = false;
|
|
45732
45747
|
if (t instanceof RegExp)
|
|
45733
|
-
|
|
45748
|
+
s = true, o = t.source, i3 = !t.flags.includes("i");
|
|
45734
45749
|
else if (typeof t == "string" && /^\/(.+)\/([gimsuy]*)$/.test(t)) {
|
|
45735
|
-
const [,
|
|
45736
|
-
|
|
45750
|
+
const [, h3, m] = t.match(/^\/(.+)\/([gimsuy]*)$/);
|
|
45751
|
+
s = true, o = h3, i3 = !m.includes("i");
|
|
45737
45752
|
} else
|
|
45738
|
-
|
|
45739
|
-
const
|
|
45740
|
-
search:
|
|
45741
|
-
caseSensitive:
|
|
45742
|
-
regexp:
|
|
45743
|
-
wholeWord:
|
|
45744
|
-
}),
|
|
45745
|
-
|
|
45746
|
-
const
|
|
45747
|
-
|
|
45748
|
-
|
|
45749
|
-
|
|
45750
|
-
|
|
45753
|
+
o = String(t);
|
|
45754
|
+
const l = new Sf$1({
|
|
45755
|
+
search: o,
|
|
45756
|
+
caseSensitive: i3,
|
|
45757
|
+
regexp: s,
|
|
45758
|
+
wholeWord: a
|
|
45759
|
+
}), c3 = kx(e.tr, l);
|
|
45760
|
+
r(c3);
|
|
45761
|
+
const d = e.apply(c3), u = uc$1(d), p3 = (u ? u.find() : []).map((h3) => ({
|
|
45762
|
+
from: h3.from,
|
|
45763
|
+
to: h3.to,
|
|
45764
|
+
text: d.doc.textBetween(h3.from, h3.to),
|
|
45765
|
+
id: Aa$2()
|
|
45751
45766
|
}));
|
|
45767
|
+
return this.storage.searchResults = p3, p3;
|
|
45752
45768
|
},
|
|
45753
45769
|
goToSearchResult: (t) => ({ state: e, dispatch: n, editor: r }) => {
|
|
45754
45770
|
const { from: o, to: i3 } = t;
|
|
@@ -55040,7 +55056,7 @@ ${t}
|
|
|
55040
55056
|
pos: s.selection.from,
|
|
55041
55057
|
id: a
|
|
55042
55058
|
};
|
|
55043
|
-
s.setMeta(
|
|
55059
|
+
s.setMeta(Bo$1, d), l.dispatch(s), n(o).then(
|
|
55044
55060
|
(u) => {
|
|
55045
55061
|
let b = o.name.replace(" ", "_"), v = Fx(l.state, a);
|
|
55046
55062
|
if (v == null)
|
|
@@ -55050,12 +55066,12 @@ ${t}
|
|
|
55050
55066
|
size: { width: i3, height: r }
|
|
55051
55067
|
});
|
|
55052
55068
|
t.storage.image.media = Object.assign(t.storage.image.media, { [S]: u }), t.options.ydoc && t.commands.addImageToCollaboration({ mediaPath: S, fileData: u }), l.dispatch(
|
|
55053
|
-
l.state.tr.replaceWith(v, v, g).setMeta(
|
|
55069
|
+
l.state.tr.replaceWith(v, v, g).setMeta(Bo$1, y)
|
|
55054
55070
|
);
|
|
55055
55071
|
},
|
|
55056
55072
|
() => {
|
|
55057
55073
|
let u = { type: "remove", id: a };
|
|
55058
|
-
l.dispatch(s.setMeta(
|
|
55074
|
+
l.dispatch(s.setMeta(Bo$1, u));
|
|
55059
55075
|
}
|
|
55060
55076
|
);
|
|
55061
55077
|
};
|
|
@@ -70651,7 +70667,7 @@ ${style2}
|
|
|
70651
70667
|
this.config.colors = shuffleArray(this.config.colors);
|
|
70652
70668
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
70653
70669
|
this.colorIndex = 0;
|
|
70654
|
-
this.version = "0.11.
|
|
70670
|
+
this.version = "0.11.20";
|
|
70655
70671
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
70656
70672
|
this.superdocId = config.superdocId || v4();
|
|
70657
70673
|
this.colors = this.config.colors;
|