@harbour-enterprises/superdoc 0.11.19 → 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/{index-MTg0RB9I.cjs → index-BXKGjuVW.cjs} +1 -1
- package/dist/chunks/{index-k2jVlnWa.es.js → index-CPZ-IxHT.es.js} +1 -1
- package/dist/chunks/{index-f-drtAbP.cjs → index-CqRwYOdx.cjs} +1 -1
- package/dist/chunks/{index-Gs0-9Zg-.es.js → index-Y7BlAr93.es.js} +2 -2
- package/dist/chunks/{super-editor.es-C5WxgouW.es.js → super-editor.es-Du1kHoDA.es.js} +476 -454
- package/dist/chunks/{super-editor.es-BpCrZwJM.cjs → super-editor.es-DvREqt6O.cjs} +25 -25
- package/dist/chunks/{url-BY6ThfSE.cjs → url-6Xu7gR4T.cjs} +1 -1
- package/dist/chunks/{url-C5LEOXW-.es.js → url-t15h9onH.es.js} +1 -1
- package/dist/chunks/{xml-js-DjJijnzm.es.js → xml-js-kwrvzyhm.es.js} +355 -366
- package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-DsBQa9mA.js → converter-CwMvN1V7.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BhZqF_Iv.js → docx-zipper-CW3YnwaW.js} +1 -1
- package/dist/super-editor/chunks/{editor-C1MQt5t_.js → editor-CR8riiuL.js} +522 -500
- package/dist/super-editor/chunks/{toolbar-CKwDSMyY.js → toolbar-BZ4Xi416.js} +2 -2
- package/dist/super-editor/converter.es.js +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 +3 -3
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +460 -438
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-C-3oH1mO.cjs +0 -10
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;
|
|
@@ -35369,9 +35369,9 @@ Actual: ` + p3.attribValue
|
|
|
35369
35369
|
}
|
|
35370
35370
|
function Fd$1(t, e, n = {}) {
|
|
35371
35371
|
if (!e)
|
|
35372
|
-
return
|
|
35373
|
-
const r =
|
|
35374
|
-
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;
|
|
35375
35375
|
}
|
|
35376
35376
|
const js = ({
|
|
35377
35377
|
tr: t,
|
|
@@ -35558,7 +35558,7 @@ Actual: ` + p3.attribValue
|
|
|
35558
35558
|
findChildren: Ws,
|
|
35559
35559
|
findMark: Ho$2,
|
|
35560
35560
|
findParentNode: je$1,
|
|
35561
|
-
findParentNodeClosestToPos:
|
|
35561
|
+
findParentNodeClosestToPos: Br$1,
|
|
35562
35562
|
generateDocxListAttributes: ab,
|
|
35563
35563
|
generateDocxRandomId: Ri$2,
|
|
35564
35564
|
generateRandom32BitHex: nu$2,
|
|
@@ -35570,12 +35570,12 @@ Actual: ` + p3.attribValue
|
|
|
35570
35570
|
getMarksFromSelection: Vo$1,
|
|
35571
35571
|
getNodeType: le$1,
|
|
35572
35572
|
getSchemaTypeByName: Zn$2,
|
|
35573
|
-
getSchemaTypeNameByName:
|
|
35573
|
+
getSchemaTypeNameByName: Fr$1,
|
|
35574
35574
|
isActive: Fd$1,
|
|
35575
35575
|
isInTable: _d$1,
|
|
35576
35576
|
isList: Zi$1,
|
|
35577
|
-
isMarkActive:
|
|
35578
|
-
isNodeActive:
|
|
35577
|
+
isMarkActive: Ro$1,
|
|
35578
|
+
isNodeActive: Lo$1,
|
|
35579
35579
|
isTextSelection: Pd$1,
|
|
35580
35580
|
posToDOMRect: $d$1
|
|
35581
35581
|
}, Symbol.toStringTag, { value: "Module" })), cb = (t, e, n) => {
|
|
@@ -35686,39 +35686,39 @@ Actual: ` + p3.attribValue
|
|
|
35686
35686
|
return o.length ? (o.forEach(({ mark: i3, from: s, to: a }) => {
|
|
35687
35687
|
if (i3.type.name === xr$2)
|
|
35688
35688
|
if (e) {
|
|
35689
|
-
const l =
|
|
35689
|
+
const l = F$1.inline(s, a, {
|
|
35690
35690
|
class: "track-insert-dec hidden"
|
|
35691
35691
|
});
|
|
35692
35692
|
r.push(l);
|
|
35693
35693
|
} else if (n) {
|
|
35694
|
-
const l =
|
|
35694
|
+
const l = F$1.inline(s, a, {
|
|
35695
35695
|
class: "track-insert-dec normal"
|
|
35696
35696
|
});
|
|
35697
35697
|
r.push(l);
|
|
35698
35698
|
} else {
|
|
35699
|
-
const l =
|
|
35699
|
+
const l = F$1.inline(s, a, {
|
|
35700
35700
|
class: "track-insert-dec highlighted"
|
|
35701
35701
|
});
|
|
35702
35702
|
r.push(l);
|
|
35703
35703
|
}
|
|
35704
35704
|
if (i3.type.name === Pi$2)
|
|
35705
35705
|
if (e) {
|
|
35706
|
-
const l =
|
|
35706
|
+
const l = F$1.inline(s, a, {
|
|
35707
35707
|
class: "track-delete-dec normal"
|
|
35708
35708
|
});
|
|
35709
35709
|
r.push(l);
|
|
35710
35710
|
} else if (n) {
|
|
35711
|
-
const l =
|
|
35711
|
+
const l = F$1.inline(s, a, {
|
|
35712
35712
|
class: "track-delete-dec hidden"
|
|
35713
35713
|
});
|
|
35714
35714
|
r.push(l);
|
|
35715
35715
|
} else {
|
|
35716
|
-
const l =
|
|
35716
|
+
const l = F$1.inline(s, a, {
|
|
35717
35717
|
class: "track-delete-dec highlighted"
|
|
35718
35718
|
// 'hidden'
|
|
35719
35719
|
});
|
|
35720
35720
|
r.push(l);
|
|
35721
|
-
const c3 =
|
|
35721
|
+
const c3 = F$1.widget(
|
|
35722
35722
|
s,
|
|
35723
35723
|
() => {
|
|
35724
35724
|
const d = document.createElement("span");
|
|
@@ -35730,17 +35730,17 @@ Actual: ` + p3.attribValue
|
|
|
35730
35730
|
}
|
|
35731
35731
|
if (i3.type.name === Oi$2)
|
|
35732
35732
|
if (e) {
|
|
35733
|
-
const l =
|
|
35733
|
+
const l = F$1.inline(s, a, {
|
|
35734
35734
|
class: "track-format-dec before"
|
|
35735
35735
|
});
|
|
35736
35736
|
r.push(l);
|
|
35737
35737
|
} else if (n) {
|
|
35738
|
-
const l =
|
|
35738
|
+
const l = F$1.inline(s, a, {
|
|
35739
35739
|
class: "track-format-dec normal"
|
|
35740
35740
|
});
|
|
35741
35741
|
r.push(l);
|
|
35742
35742
|
} else {
|
|
35743
|
-
const l =
|
|
35743
|
+
const l = F$1.inline(s, a, {
|
|
35744
35744
|
class: "track-format-dec highlighted"
|
|
35745
35745
|
});
|
|
35746
35746
|
r.push(l);
|
|
@@ -36039,7 +36039,7 @@ Actual: ` + p3.attribValue
|
|
|
36039
36039
|
);
|
|
36040
36040
|
let S = false;
|
|
36041
36041
|
y.forEach((M) => {
|
|
36042
|
-
const { attrs:
|
|
36042
|
+
const { attrs: B } = M, C3 = B.commentId || B.importedId, V = s.coordsAtPos(w);
|
|
36043
36043
|
cl$1({
|
|
36044
36044
|
allCommentPositions: f,
|
|
36045
36045
|
threadId: C3,
|
|
@@ -36047,11 +36047,11 @@ Actual: ` + p3.attribValue
|
|
|
36047
36047
|
currentBounds: V,
|
|
36048
36048
|
node: b
|
|
36049
36049
|
});
|
|
36050
|
-
const $3 =
|
|
36050
|
+
const $3 = B.internal;
|
|
36051
36051
|
S || (S = n === C3);
|
|
36052
|
-
let
|
|
36053
|
-
const H3 =
|
|
36054
|
-
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};`,
|
|
36055
36055
|
"data-thread-id": C3,
|
|
36056
36056
|
class: "sd-editor-comment-highlight"
|
|
36057
36057
|
});
|
|
@@ -36063,10 +36063,10 @@ Actual: ` + p3.attribValue
|
|
|
36063
36063
|
to: w + b.nodeSize
|
|
36064
36064
|
});
|
|
36065
36065
|
if (k) {
|
|
36066
|
-
const M = s.coordsAtPos(w), { id:
|
|
36066
|
+
const M = s.coordsAtPos(w), { id: B } = k.mark.attrs;
|
|
36067
36067
|
cl$1({
|
|
36068
36068
|
allCommentPositions: f,
|
|
36069
|
-
threadId:
|
|
36069
|
+
threadId: B,
|
|
36070
36070
|
pos: w,
|
|
36071
36071
|
currentBounds: M,
|
|
36072
36072
|
node: b
|
|
@@ -36456,7 +36456,7 @@ Actual: ` + p3.attribValue
|
|
|
36456
36456
|
}, dl$1 = (t) => {
|
|
36457
36457
|
if (t === "initial" || t === "0.4.14") return Object.values(Ob);
|
|
36458
36458
|
};
|
|
36459
|
-
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;
|
|
36460
36460
|
const ia$1 = class ia2 extends Eg {
|
|
36461
36461
|
constructor(n) {
|
|
36462
36462
|
super();
|
|
@@ -36613,9 +36613,9 @@ Actual: ` + p3.attribValue
|
|
|
36613
36613
|
initializeCollaborationData() {
|
|
36614
36614
|
if (!this.options.isNewFile || !this.options.collaborationProvider) return;
|
|
36615
36615
|
const { collaborationProvider: n } = this.options, r = () => {
|
|
36616
|
-
n.off("synced", r), N$1(this, A,
|
|
36616
|
+
n.off("synced", r), N$1(this, A, mo$2).call(this);
|
|
36617
36617
|
};
|
|
36618
|
-
n.synced ? N$1(this, A,
|
|
36618
|
+
n.synced ? N$1(this, A, mo$2).call(this) : n.on("synced", r);
|
|
36619
36619
|
}
|
|
36620
36620
|
/**
|
|
36621
36621
|
* Set editor options and update state.
|
|
@@ -36833,7 +36833,7 @@ Actual: ` + p3.attribValue
|
|
|
36833
36833
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36834
36834
|
*/
|
|
36835
36835
|
processCollaborationMigrations() {
|
|
36836
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
36836
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.20"), !this.options.ydoc) return;
|
|
36837
36837
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36838
36838
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36839
36839
|
const o = dl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -36856,7 +36856,7 @@ Actual: ` + p3.attribValue
|
|
|
36856
36856
|
isNewFile: true,
|
|
36857
36857
|
shouldLoadComments: true,
|
|
36858
36858
|
replacedFile: true
|
|
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,
|
|
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));
|
|
36860
36860
|
}
|
|
36861
36861
|
getNodesOfType(n) {
|
|
36862
36862
|
const { findChildren: r } = Us;
|
|
@@ -36865,7 +36865,7 @@ Actual: ` + p3.attribValue
|
|
|
36865
36865
|
replaceNodeWithHTML(n, r) {
|
|
36866
36866
|
const { tr: o } = this.state, { dispatch: i3 } = this.view;
|
|
36867
36867
|
if (!n || !r) return;
|
|
36868
|
-
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);
|
|
36869
36869
|
o.replaceWith(s, a, l), i3(o);
|
|
36870
36870
|
}
|
|
36871
36871
|
};
|
|
@@ -36891,7 +36891,7 @@ Actual: ` + p3.attribValue
|
|
|
36891
36891
|
* Replace the current document with new data. Necessary for initializing a new collaboration file,
|
|
36892
36892
|
* since we need to insert the data only after the provider has synced.
|
|
36893
36893
|
*/
|
|
36894
|
-
|
|
36894
|
+
mo$2 = function() {
|
|
36895
36895
|
if (!this.options.isNewFile) return;
|
|
36896
36896
|
this.options.isNewFile = false;
|
|
36897
36897
|
const n = N$1(this, A, cs$1).call(this), r = this.state.tr.replaceWith(0, this.state.doc.content.size, n);
|
|
@@ -36956,7 +36956,7 @@ Actual: ` + p3.attribValue
|
|
|
36956
36956
|
let n;
|
|
36957
36957
|
try {
|
|
36958
36958
|
const { mode: r, fragment: o, isHeadless: i3, content: s, loadFromSchema: a } = this.options;
|
|
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,
|
|
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());
|
|
36960
36960
|
} catch (r) {
|
|
36961
36961
|
console.error(r), this.emit("contentError", { editor: this, error: r });
|
|
36962
36962
|
}
|
|
@@ -36966,7 +36966,7 @@ Actual: ` + p3.attribValue
|
|
|
36966
36966
|
* @param {string} content HTML content.
|
|
36967
36967
|
* @returns {ProseMirrorNode} ProseMirror document.
|
|
36968
36968
|
*/
|
|
36969
|
-
|
|
36969
|
+
go$2 = function(n) {
|
|
36970
36970
|
let r = n;
|
|
36971
36971
|
if (typeof n == "string") {
|
|
36972
36972
|
const o = document.createElement("div");
|
|
@@ -37089,7 +37089,7 @@ Actual: ` + p3.attribValue
|
|
|
37089
37089
|
}
|
|
37090
37090
|
};
|
|
37091
37091
|
let Qi$1 = ia$1;
|
|
37092
|
-
let
|
|
37092
|
+
let J$2 = class J3 {
|
|
37093
37093
|
constructor(e) {
|
|
37094
37094
|
R(this, "type", "node");
|
|
37095
37095
|
R(this, "name", "node");
|
|
@@ -37117,7 +37117,7 @@ Actual: ` + p3.attribValue
|
|
|
37117
37117
|
* @param args Arguments for the constructor.
|
|
37118
37118
|
*/
|
|
37119
37119
|
static create(...e) {
|
|
37120
|
-
return new
|
|
37120
|
+
return new J3(...e);
|
|
37121
37121
|
}
|
|
37122
37122
|
};
|
|
37123
37123
|
let Oe$2 = class Oe2 {
|
|
@@ -37672,12 +37672,12 @@ Actual: ` + p3.attribValue
|
|
|
37672
37672
|
});
|
|
37673
37673
|
}
|
|
37674
37674
|
const Ib = Bs({
|
|
37675
|
-
ArrowLeft:
|
|
37676
|
-
ArrowRight:
|
|
37677
|
-
ArrowUp:
|
|
37678
|
-
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)
|
|
37679
37679
|
});
|
|
37680
|
-
function
|
|
37680
|
+
function eo$2(t, e) {
|
|
37681
37681
|
const n = t == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
|
|
37682
37682
|
return function(r, o, i3) {
|
|
37683
37683
|
let s = r.selection, a = e > 0 ? s.$to : s.$from, l = s.empty;
|
|
@@ -37715,7 +37715,7 @@ Actual: ` + p3.attribValue
|
|
|
37715
37715
|
if (!(t.selection instanceof ne$1))
|
|
37716
37716
|
return null;
|
|
37717
37717
|
let e = document.createElement("div");
|
|
37718
|
-
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" })]);
|
|
37719
37719
|
}
|
|
37720
37720
|
const Bb = Z$1.create({
|
|
37721
37721
|
name: "gapCursor",
|
|
@@ -37832,7 +37832,7 @@ Actual: ` + p3.attribValue
|
|
|
37832
37832
|
e.classList.add("ProseMirror-yjs-cursor"), e.setAttribute("style", `border-color: ${t.color}`);
|
|
37833
37833
|
const n = document.createElement("div");
|
|
37834
37834
|
return n.setAttribute("style", `background-color: ${t.color}`), n.insertBefore(document.createTextNode(t.name || t.email), null), e.insertBefore(n, null), e;
|
|
37835
|
-
}, Tn$1 = "aiMark",
|
|
37835
|
+
}, Tn$1 = "aiMark", to$2 = "aiAnimationMark", qb = Oe$2.create({
|
|
37836
37836
|
name: Tn$1,
|
|
37837
37837
|
group: "ai",
|
|
37838
37838
|
inclusive: false,
|
|
@@ -37856,11 +37856,11 @@ Actual: ` + p3.attribValue
|
|
|
37856
37856
|
return [Tn$1, E$1.mergeAttributes(this.options.htmlAttributes, t)];
|
|
37857
37857
|
}
|
|
37858
37858
|
}), Kb = Oe$2.create({
|
|
37859
|
-
name:
|
|
37859
|
+
name: to$2,
|
|
37860
37860
|
group: "ai",
|
|
37861
37861
|
inclusive: false,
|
|
37862
37862
|
spanning: false,
|
|
37863
|
-
excludes:
|
|
37863
|
+
excludes: to$2,
|
|
37864
37864
|
addOptions() {
|
|
37865
37865
|
return {
|
|
37866
37866
|
htmlAttributes: {}
|
|
@@ -37883,10 +37883,10 @@ Actual: ` + p3.attribValue
|
|
|
37883
37883
|
};
|
|
37884
37884
|
},
|
|
37885
37885
|
parseDOM() {
|
|
37886
|
-
return [{ tag:
|
|
37886
|
+
return [{ tag: to$2 }];
|
|
37887
37887
|
},
|
|
37888
37888
|
renderDOM({ htmlAttributes: t }) {
|
|
37889
|
-
return [
|
|
37889
|
+
return [to$2, E$1.mergeAttributes(this.options.htmlAttributes, t)];
|
|
37890
37890
|
}
|
|
37891
37891
|
}), Xb = new qp$1("ai"), fu$1 = Z$1.create({
|
|
37892
37892
|
name: "ai",
|
|
@@ -37951,7 +37951,7 @@ Actual: ` + p3.attribValue
|
|
|
37951
37951
|
return e.descendants((o, i3) => {
|
|
37952
37952
|
const { marks: s = [] } = o;
|
|
37953
37953
|
if (s.find((l) => l.type.name === Tn$1)) {
|
|
37954
|
-
const l =
|
|
37954
|
+
const l = F$1.inline(
|
|
37955
37955
|
i3,
|
|
37956
37956
|
i3 + o.nodeSize,
|
|
37957
37957
|
{
|
|
@@ -37962,7 +37962,7 @@ Actual: ` + p3.attribValue
|
|
|
37962
37962
|
r.push(l);
|
|
37963
37963
|
}
|
|
37964
37964
|
}), { decorations: r };
|
|
37965
|
-
}, pu$1 =
|
|
37965
|
+
}, pu$1 = J$2.create({
|
|
37966
37966
|
name: "doc",
|
|
37967
37967
|
topNode: true,
|
|
37968
37968
|
content: "block+",
|
|
@@ -37979,11 +37979,11 @@ Actual: ` + p3.attribValue
|
|
|
37979
37979
|
}
|
|
37980
37980
|
};
|
|
37981
37981
|
}
|
|
37982
|
-
}), hu$1 =
|
|
37982
|
+
}), hu$1 = J$2.create({
|
|
37983
37983
|
name: "text",
|
|
37984
37984
|
group: "inline",
|
|
37985
37985
|
inline: true
|
|
37986
|
-
}), Yb =
|
|
37986
|
+
}), Yb = J$2.create({
|
|
37987
37987
|
name: "run",
|
|
37988
37988
|
group: "inline",
|
|
37989
37989
|
content: "text*",
|
|
@@ -38002,7 +38002,7 @@ Actual: ` + p3.attribValue
|
|
|
38002
38002
|
};
|
|
38003
38003
|
}
|
|
38004
38004
|
});
|
|
38005
|
-
function
|
|
38005
|
+
function Fo$1(t) {
|
|
38006
38006
|
return new Vg({
|
|
38007
38007
|
match: t.match,
|
|
38008
38008
|
handler: ({
|
|
@@ -38030,7 +38030,7 @@ Actual: ` + p3.attribValue
|
|
|
38030
38030
|
}
|
|
38031
38031
|
});
|
|
38032
38032
|
}
|
|
38033
|
-
const ul$1 = /^\s*([-+*])\s$/, mu$1 =
|
|
38033
|
+
const ul$1 = /^\s*([-+*])\s$/, mu$1 = J$2.create({
|
|
38034
38034
|
name: "bulletList",
|
|
38035
38035
|
group: "block list",
|
|
38036
38036
|
content() {
|
|
@@ -38080,11 +38080,11 @@ Actual: ` + p3.attribValue
|
|
|
38080
38080
|
},
|
|
38081
38081
|
// Input rules.
|
|
38082
38082
|
addInputRules() {
|
|
38083
|
-
let t =
|
|
38083
|
+
let t = Fo$1({
|
|
38084
38084
|
match: ul$1,
|
|
38085
38085
|
type: this.type
|
|
38086
38086
|
});
|
|
38087
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (t =
|
|
38087
|
+
return (this.options.keepMarks || this.options.keepAttributes) && (t = Fo$1({
|
|
38088
38088
|
match: ul$1,
|
|
38089
38089
|
type: this.type,
|
|
38090
38090
|
keepMarks: this.options.keepMarks,
|
|
@@ -38170,10 +38170,10 @@ Actual: ` + p3.attribValue
|
|
|
38170
38170
|
}), l = true, w = g), f.forEach((y, S) => {
|
|
38171
38171
|
if (S === 0)
|
|
38172
38172
|
return;
|
|
38173
|
-
let { node: k, pos: M } = y, { lvlText:
|
|
38173
|
+
let { node: k, pos: M } = y, { lvlText: B, listLevel: C3, listNumberingType: V } = k.attrs;
|
|
38174
38174
|
Array.isArray(w.listLevel) || (w.listLevel = JSON.parse(w.listLevel));
|
|
38175
38175
|
let $3 = [...w.listLevel.slice(0, -1), w.listLevel.at(-1) + 1];
|
|
38176
|
-
if (!(
|
|
38176
|
+
if (!(B === w.lvlText && V === w.listNumberingType && fl$1(C3, $3))) {
|
|
38177
38177
|
let { selection: H3, storedMarks: ie2 } = r, ae2 = ie2 || H3.$to.parentOffset && H3.$from.marks();
|
|
38178
38178
|
s.setNodeMarkup(M, void 0, {
|
|
38179
38179
|
...k.attrs,
|
|
@@ -38245,7 +38245,7 @@ Actual: ` + p3.attribValue
|
|
|
38245
38245
|
listNumberingType: s
|
|
38246
38246
|
};
|
|
38247
38247
|
}
|
|
38248
|
-
const pl$1 = /^(\d+)\.\s$/, yu$1 =
|
|
38248
|
+
const pl$1 = /^(\d+)\.\s$/, yu$1 = J$2.create({
|
|
38249
38249
|
name: "orderedList",
|
|
38250
38250
|
group: "block list",
|
|
38251
38251
|
content() {
|
|
@@ -38387,13 +38387,13 @@ Actual: ` + p3.attribValue
|
|
|
38387
38387
|
return [Qb(this.editor), Gb()];
|
|
38388
38388
|
},
|
|
38389
38389
|
addInputRules() {
|
|
38390
|
-
let t =
|
|
38390
|
+
let t = Fo$1({
|
|
38391
38391
|
match: pl$1,
|
|
38392
38392
|
type: this.type,
|
|
38393
38393
|
getAttributes: (e) => ({ start: +e[1] }),
|
|
38394
38394
|
joinPredicate: (e, n) => n.childCount + n.attrs.start === +e[1]
|
|
38395
38395
|
});
|
|
38396
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (t =
|
|
38396
|
+
return (this.options.keepMarks || this.options.keepAttributes) && (t = Fo$1({
|
|
38397
38397
|
match: pl$1,
|
|
38398
38398
|
type: this.type,
|
|
38399
38399
|
keepMarks: this.options.keepMarks,
|
|
@@ -38500,7 +38500,7 @@ Actual: ` + p3.attribValue
|
|
|
38500
38500
|
style: `--marker-font-size: ${u ?? "initial"}`
|
|
38501
38501
|
}, h3 = {
|
|
38502
38502
|
style: `--marker-font-family: ${f ?? "initial"}`
|
|
38503
|
-
}, m = E$1.mergeAttributes(p3, h3), g =
|
|
38503
|
+
}, m = E$1.mergeAttributes(p3, h3), g = F$1.node(a, a + s.nodeSize, m);
|
|
38504
38504
|
o.push(g);
|
|
38505
38505
|
}), o;
|
|
38506
38506
|
}
|
|
@@ -38518,7 +38518,7 @@ Actual: ` + p3.attribValue
|
|
|
38518
38518
|
`.trim()
|
|
38519
38519
|
};
|
|
38520
38520
|
}
|
|
38521
|
-
let a =
|
|
38521
|
+
let a = F$1.node(i3, i3 + o.nodeSize, s);
|
|
38522
38522
|
n.push(a);
|
|
38523
38523
|
}), n;
|
|
38524
38524
|
}
|
|
@@ -38537,7 +38537,7 @@ Actual: ` + p3.attribValue
|
|
|
38537
38537
|
function h0$1(t) {
|
|
38538
38538
|
return t.childCount === 1 && t.firstChild?.type.name === "paragraph" && t.firstChild?.content.size === 0;
|
|
38539
38539
|
}
|
|
38540
|
-
const vu$1 =
|
|
38540
|
+
const vu$1 = J$2.create({
|
|
38541
38541
|
name: "listItem",
|
|
38542
38542
|
content: "paragraph* block*",
|
|
38543
38543
|
defining: true,
|
|
@@ -38659,7 +38659,7 @@ Actual: ` + p3.attribValue
|
|
|
38659
38659
|
addPmPlugins() {
|
|
38660
38660
|
return [f0$1()];
|
|
38661
38661
|
}
|
|
38662
|
-
}),
|
|
38662
|
+
}), yo$2 = new qp$1("linkedStyles"), m0$1 = Z$1.create({
|
|
38663
38663
|
name: "linkedStyles",
|
|
38664
38664
|
addPmPlugins() {
|
|
38665
38665
|
return [g0$1(this.editor)];
|
|
@@ -38683,7 +38683,7 @@ Actual: ` + p3.attribValue
|
|
|
38683
38683
|
};
|
|
38684
38684
|
}
|
|
38685
38685
|
}), g0$1 = (t) => new _p$1({
|
|
38686
|
-
key:
|
|
38686
|
+
key: yo$2,
|
|
38687
38687
|
state: {
|
|
38688
38688
|
init(e, { doc: n, selection: r }) {
|
|
38689
38689
|
if (!t.converter || t.options.mode !== "docx") return {};
|
|
@@ -38697,7 +38697,7 @@ Actual: ` + p3.attribValue
|
|
|
38697
38697
|
if (!t.converter || t.options.mode !== "docx") return { ...n };
|
|
38698
38698
|
let i3 = n.decorations || P.empty;
|
|
38699
38699
|
if (e.docChanged) {
|
|
38700
|
-
const s =
|
|
38700
|
+
const s = yo$2.getState(t.state).styles;
|
|
38701
38701
|
i3 = gl$1(o, s);
|
|
38702
38702
|
}
|
|
38703
38703
|
return { ...n, decorations: i3 };
|
|
@@ -38705,7 +38705,7 @@ Actual: ` + p3.attribValue
|
|
|
38705
38705
|
},
|
|
38706
38706
|
props: {
|
|
38707
38707
|
decorations(e) {
|
|
38708
|
-
return
|
|
38708
|
+
return yo$2.getState(e)?.decorations;
|
|
38709
38709
|
}
|
|
38710
38710
|
}
|
|
38711
38711
|
}), gl$1 = (t, e) => {
|
|
@@ -38719,7 +38719,7 @@ Actual: ` + p3.attribValue
|
|
|
38719
38719
|
if (!l) return;
|
|
38720
38720
|
const d = t.doc.resolve(s).parent, u = y0$1(l, i3, d);
|
|
38721
38721
|
if (!u) return;
|
|
38722
|
-
const f =
|
|
38722
|
+
const f = F$1.inline(s, s + i3.nodeSize, { style: u });
|
|
38723
38723
|
n.push(f);
|
|
38724
38724
|
}), P.create(o, n);
|
|
38725
38725
|
}, y0$1 = (t, e, n, r = true) => {
|
|
@@ -38784,7 +38784,7 @@ Actual: ` + p3.attribValue
|
|
|
38784
38784
|
e += `${r ? `font-family: ${r};` : ""} ${o ? `font-size: ${o};` : ""}`;
|
|
38785
38785
|
}
|
|
38786
38786
|
return e.trim();
|
|
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 =
|
|
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({
|
|
38788
38788
|
name: "paragraph",
|
|
38789
38789
|
priority: 1e3,
|
|
38790
38790
|
group: "block",
|
|
@@ -38897,7 +38897,7 @@ Actual: ` + p3.attribValue
|
|
|
38897
38897
|
if (r.attrs.dropcap?.type === "margin") {
|
|
38898
38898
|
const i3 = x0$1(e, o);
|
|
38899
38899
|
n.push(
|
|
38900
|
-
|
|
38900
|
+
F$1.node(o, o + r.nodeSize, { style: `margin-left: -${i3}px;` })
|
|
38901
38901
|
);
|
|
38902
38902
|
}
|
|
38903
38903
|
}), n;
|
|
@@ -38910,7 +38910,7 @@ Actual: ` + p3.attribValue
|
|
|
38910
38910
|
}
|
|
38911
38911
|
return 0;
|
|
38912
38912
|
}
|
|
38913
|
-
const xu$1 =
|
|
38913
|
+
const xu$1 = J$2.create({
|
|
38914
38914
|
name: "heading",
|
|
38915
38915
|
group: "block",
|
|
38916
38916
|
content: "inline*",
|
|
@@ -38953,7 +38953,7 @@ Actual: ` + p3.attribValue
|
|
|
38953
38953
|
{}
|
|
38954
38954
|
);
|
|
38955
38955
|
}
|
|
38956
|
-
}), S0$1 =
|
|
38956
|
+
}), S0$1 = J$2.create({
|
|
38957
38957
|
name: "commentRangeStart",
|
|
38958
38958
|
group: "inline",
|
|
38959
38959
|
inline: true,
|
|
@@ -38984,7 +38984,7 @@ Actual: ` + p3.attribValue
|
|
|
38984
38984
|
}
|
|
38985
38985
|
};
|
|
38986
38986
|
}
|
|
38987
|
-
}), C0$1 =
|
|
38987
|
+
}), C0$1 = J$2.create({
|
|
38988
38988
|
name: "commentRangeEnd",
|
|
38989
38989
|
group: "inline",
|
|
38990
38990
|
inline: true,
|
|
@@ -39011,7 +39011,7 @@ Actual: ` + p3.attribValue
|
|
|
39011
39011
|
}
|
|
39012
39012
|
};
|
|
39013
39013
|
}
|
|
39014
|
-
}), M0 =
|
|
39014
|
+
}), M0 = J$2.create({
|
|
39015
39015
|
name: "commentReference",
|
|
39016
39016
|
group: "inline",
|
|
39017
39017
|
inline: true,
|
|
@@ -39063,7 +39063,7 @@ Actual: ` + p3.attribValue
|
|
|
39063
39063
|
renderDOM({ htmlAttributes: t }) {
|
|
39064
39064
|
return [Le, E$1.mergeAttributes(this.options.htmlAttributes, t)];
|
|
39065
39065
|
}
|
|
39066
|
-
}), O0$1 =
|
|
39066
|
+
}), O0$1 = J$2.create({
|
|
39067
39067
|
name: "tab",
|
|
39068
39068
|
group: "inline",
|
|
39069
39069
|
inline: true,
|
|
@@ -39136,7 +39136,7 @@ Actual: ` + p3.attribValue
|
|
|
39136
39136
|
}
|
|
39137
39137
|
const l = i3.nodeBefore?.type.name === "tab" ? wi$1 : wi$1 - a % wi$1, c3 = D0(i3);
|
|
39138
39138
|
n.push(
|
|
39139
|
-
|
|
39139
|
+
F$1.node(o, o + r.nodeSize, { style: `width: ${l}px; height: ${c3};` })
|
|
39140
39140
|
);
|
|
39141
39141
|
}
|
|
39142
39142
|
}), n;
|
|
@@ -39153,7 +39153,7 @@ Actual: ` + p3.attribValue
|
|
|
39153
39153
|
const i3 = t.node(1).firstChild.marks.find((a) => a.type.name === "textStyle");
|
|
39154
39154
|
return `${(parseInt(i3?.attrs.fontSize) * 1.333 || 16) * 1.1}px`;
|
|
39155
39155
|
}
|
|
39156
|
-
const E0$1 =
|
|
39156
|
+
const E0$1 = J$2.create({
|
|
39157
39157
|
name: "lineBreak",
|
|
39158
39158
|
group: "inline",
|
|
39159
39159
|
inline: true,
|
|
@@ -39168,7 +39168,7 @@ Actual: ` + p3.attribValue
|
|
|
39168
39168
|
renderDOM() {
|
|
39169
39169
|
return ["br", {}];
|
|
39170
39170
|
}
|
|
39171
|
-
}), Su$1 =
|
|
39171
|
+
}), Su$1 = J$2.create({
|
|
39172
39172
|
name: "hardBreak",
|
|
39173
39173
|
group: "inline",
|
|
39174
39174
|
inline: true,
|
|
@@ -39427,8 +39427,8 @@ Actual: ` + p3.attribValue
|
|
|
39427
39427
|
});
|
|
39428
39428
|
const k = w && w[S];
|
|
39429
39429
|
if (k) {
|
|
39430
|
-
const M = (y + S) % e * 2,
|
|
39431
|
-
|
|
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]++;
|
|
39432
39432
|
}
|
|
39433
39433
|
}
|
|
39434
39434
|
}
|
|
@@ -39764,7 +39764,7 @@ Actual: ` + p3.attribValue
|
|
|
39764
39764
|
const e = [];
|
|
39765
39765
|
return t.selection.forEachCell((n, r) => {
|
|
39766
39766
|
e.push(
|
|
39767
|
-
|
|
39767
|
+
F$1.node(r, r + n.nodeSize, { class: "selectedCell" })
|
|
39768
39768
|
);
|
|
39769
39769
|
}), P.create(t.doc, e);
|
|
39770
39770
|
}
|
|
@@ -40310,7 +40310,7 @@ Actual: ` + p3.attribValue
|
|
|
40310
40310
|
), true;
|
|
40311
40311
|
return false;
|
|
40312
40312
|
}
|
|
40313
|
-
function
|
|
40313
|
+
function no$2(t, e) {
|
|
40314
40314
|
const n = t.selection;
|
|
40315
40315
|
if (!(n instanceof G)) return false;
|
|
40316
40316
|
if (e) {
|
|
@@ -40522,28 +40522,28 @@ Actual: ` + p3.attribValue
|
|
|
40522
40522
|
), e(u);
|
|
40523
40523
|
}
|
|
40524
40524
|
var hw = Bs({
|
|
40525
|
-
ArrowLeft:
|
|
40526
|
-
ArrowRight:
|
|
40527
|
-
ArrowUp:
|
|
40528
|
-
ArrowDown:
|
|
40529
|
-
"Shift-ArrowLeft":
|
|
40530
|
-
"Shift-ArrowRight":
|
|
40531
|
-
"Shift-ArrowUp":
|
|
40532
|
-
"Shift-ArrowDown":
|
|
40533
|
-
Backspace:
|
|
40534
|
-
"Mod-Backspace":
|
|
40535
|
-
Delete:
|
|
40536
|
-
"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
|
|
40537
40537
|
});
|
|
40538
|
-
function
|
|
40538
|
+
function bo$2(t, e, n) {
|
|
40539
40539
|
return n.eq(t.selection) ? false : (e && e(t.tr.setSelection(n).scrollIntoView()), true);
|
|
40540
40540
|
}
|
|
40541
|
-
function
|
|
40541
|
+
function ro$2(t, e) {
|
|
40542
40542
|
return (n, r, o) => {
|
|
40543
40543
|
if (!o) return false;
|
|
40544
40544
|
const i3 = n.selection;
|
|
40545
40545
|
if (i3 instanceof G)
|
|
40546
|
-
return
|
|
40546
|
+
return bo$2(
|
|
40547
40547
|
n,
|
|
40548
40548
|
r,
|
|
40549
40549
|
Ee$2.near(i3.$headCell, e)
|
|
@@ -40552,7 +40552,7 @@ Actual: ` + p3.attribValue
|
|
|
40552
40552
|
const s = Pu$1(o, t, e);
|
|
40553
40553
|
if (s == null) return false;
|
|
40554
40554
|
if (t == "horiz")
|
|
40555
|
-
return
|
|
40555
|
+
return bo$2(
|
|
40556
40556
|
n,
|
|
40557
40557
|
r,
|
|
40558
40558
|
Ee$2.near(n.doc.resolve(i3.head + e), e)
|
|
@@ -40560,11 +40560,11 @@ Actual: ` + p3.attribValue
|
|
|
40560
40560
|
{
|
|
40561
40561
|
const a = n.doc.resolve(s), l = Mu$1(a, t, e);
|
|
40562
40562
|
let c3;
|
|
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),
|
|
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);
|
|
40564
40564
|
}
|
|
40565
40565
|
};
|
|
40566
40566
|
}
|
|
40567
|
-
function
|
|
40567
|
+
function oo$2(t, e) {
|
|
40568
40568
|
return (n, r, o) => {
|
|
40569
40569
|
if (!o) return false;
|
|
40570
40570
|
const i3 = n.selection;
|
|
@@ -40577,7 +40577,7 @@ Actual: ` + p3.attribValue
|
|
|
40577
40577
|
s = new G(n.doc.resolve(l));
|
|
40578
40578
|
}
|
|
40579
40579
|
const a = Mu$1(s.$headCell, t, e);
|
|
40580
|
-
return a ?
|
|
40580
|
+
return a ? bo$2(
|
|
40581
40581
|
n,
|
|
40582
40582
|
r,
|
|
40583
40583
|
new G(s.$anchorCell, a)
|
|
@@ -40773,19 +40773,19 @@ Actual: ` + p3.attribValue
|
|
|
40773
40773
|
});
|
|
40774
40774
|
return i3;
|
|
40775
40775
|
}
|
|
40776
|
-
var vw = class
|
|
40776
|
+
var vw = class wo2 {
|
|
40777
40777
|
constructor(e, n) {
|
|
40778
40778
|
this.activeHandle = e, this.dragging = n;
|
|
40779
40779
|
}
|
|
40780
40780
|
apply(e) {
|
|
40781
40781
|
const n = this, r = e.getMeta(Ie$1);
|
|
40782
40782
|
if (r && r.setHandle != null)
|
|
40783
|
-
return new
|
|
40783
|
+
return new wo2(r.setHandle, false);
|
|
40784
40784
|
if (r && r.setDragging !== void 0)
|
|
40785
|
-
return new
|
|
40785
|
+
return new wo2(n.activeHandle, r.setDragging);
|
|
40786
40786
|
if (n.activeHandle > -1 && e.docChanged) {
|
|
40787
40787
|
let o = e.mapping.map(n.activeHandle, -1);
|
|
40788
|
-
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);
|
|
40789
40789
|
}
|
|
40790
40790
|
return n;
|
|
40791
40791
|
}
|
|
@@ -40934,14 +40934,14 @@ Actual: ` + p3.attribValue
|
|
|
40934
40934
|
if ((l == s.width - 1 || s.map[d] != s.map[d + 1]) && (c3 == 0 || s.map[d] != s.map[d - s.width])) {
|
|
40935
40935
|
const u = s.map[d], f = a + u + i3.nodeAt(u).nodeSize - 1, p3 = document.createElement("div");
|
|
40936
40936
|
p3.className = "column-resize-handle", (n = Ie$1.getState(t)) != null && n.dragging && r.push(
|
|
40937
|
-
|
|
40937
|
+
F$1.node(
|
|
40938
40938
|
a + u,
|
|
40939
40939
|
a + u + i3.nodeAt(u).nodeSize,
|
|
40940
40940
|
{
|
|
40941
40941
|
class: "column-resize-dragging"
|
|
40942
40942
|
}
|
|
40943
40943
|
)
|
|
40944
|
-
), r.push(
|
|
40944
|
+
), r.push(F$1.widget(f, p3));
|
|
40945
40945
|
}
|
|
40946
40946
|
}
|
|
40947
40947
|
return P.create(t.doc, r);
|
|
@@ -40987,11 +40987,11 @@ Actual: ` + p3.attribValue
|
|
|
40987
40987
|
}
|
|
40988
40988
|
});
|
|
40989
40989
|
}
|
|
40990
|
-
const Ew = (t) => t instanceof G,
|
|
40990
|
+
const Ew = (t) => t instanceof G, io$2 = ({ editor: t }) => {
|
|
40991
40991
|
const { selection: e } = t.state;
|
|
40992
40992
|
if (!Ew(e)) return false;
|
|
40993
40993
|
let n = 0;
|
|
40994
|
-
return
|
|
40994
|
+
return Br$1(e.ranges[0].$from, (i3) => i3.type.name === "table")?.node.descendants((i3) => {
|
|
40995
40995
|
if (i3.type.name === "table") return false;
|
|
40996
40996
|
["tableCell", "tableHeader"].includes(i3.type.name) && (n += 1);
|
|
40997
40997
|
}), n === e.ranges.length ? (t.commands.deleteTable(), true) : false;
|
|
@@ -41011,7 +41011,7 @@ Actual: ` + p3.attribValue
|
|
|
41011
41011
|
image: Rw
|
|
41012
41012
|
}[n];
|
|
41013
41013
|
return o ? o(e) : {};
|
|
41014
|
-
}, 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({
|
|
41015
41015
|
name: "table",
|
|
41016
41016
|
content: "tableRow+",
|
|
41017
41017
|
group: "block",
|
|
@@ -41142,7 +41142,7 @@ Actual: ` + p3.attribValue
|
|
|
41142
41142
|
}), true;
|
|
41143
41143
|
},
|
|
41144
41144
|
generateTable: (t, e, n) => ({ tr: r, editor: o }) => {
|
|
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 =
|
|
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);
|
|
41146
41146
|
if (!p3) return;
|
|
41147
41147
|
if (p3.node.descendants((w, x3) => {
|
|
41148
41148
|
w.type.name === "fieldAnnotation" && i3.push(w.attrs.fieldId);
|
|
@@ -41176,10 +41176,10 @@ Actual: ` + p3.attribValue
|
|
|
41176
41176
|
return {
|
|
41177
41177
|
Tab: () => this.editor.commands.goToNextCell() ? true : this.editor.can().addRowAfter() ? this.editor.chain().addRowAfter().goToNextCell().run() : false,
|
|
41178
41178
|
"Shift-Tab": () => this.editor.commands.goToPreviousCell(),
|
|
41179
|
-
Backspace:
|
|
41180
|
-
"Mod-Backspace":
|
|
41181
|
-
Delete:
|
|
41182
|
-
"Mod-Delete":
|
|
41179
|
+
Backspace: io$2,
|
|
41180
|
+
"Mod-Backspace": io$2,
|
|
41181
|
+
Delete: io$2,
|
|
41182
|
+
"Mod-Delete": io$2
|
|
41183
41183
|
};
|
|
41184
41184
|
},
|
|
41185
41185
|
addPmPlugins() {
|
|
@@ -41209,7 +41209,7 @@ Actual: ` + p3.attribValue
|
|
|
41209
41209
|
}))
|
|
41210
41210
|
};
|
|
41211
41211
|
}
|
|
41212
|
-
}), Fu$1 =
|
|
41212
|
+
}), Fu$1 = J$2.create({
|
|
41213
41213
|
name: "tableHeader",
|
|
41214
41214
|
content: "block+",
|
|
41215
41215
|
tableRole: "header_cell",
|
|
@@ -41245,7 +41245,7 @@ Actual: ` + p3.attribValue
|
|
|
41245
41245
|
renderDOM({ htmlAttributes: t }) {
|
|
41246
41246
|
return ["th", E$1.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
41247
41247
|
}
|
|
41248
|
-
}), Bu$1 =
|
|
41248
|
+
}), Bu$1 = J$2.create({
|
|
41249
41249
|
name: "tableRow",
|
|
41250
41250
|
content: "(tableCell | tableHeader)*",
|
|
41251
41251
|
tableRole: "row",
|
|
@@ -41269,7 +41269,7 @@ Actual: ` + p3.attribValue
|
|
|
41269
41269
|
renderDOM({ htmlAttributes: t }) {
|
|
41270
41270
|
return ["tr", E$1.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
41271
41271
|
}
|
|
41272
|
-
}), zu$1 =
|
|
41272
|
+
}), zu$1 = J$2.create({
|
|
41273
41273
|
name: "tableCell",
|
|
41274
41274
|
content: "block+",
|
|
41275
41275
|
tableRole: "cell",
|
|
@@ -41634,7 +41634,7 @@ Actual: ` + p3.attribValue
|
|
|
41634
41634
|
}), r;
|
|
41635
41635
|
}
|
|
41636
41636
|
const { findChildren: Hw } = Us;
|
|
41637
|
-
function
|
|
41637
|
+
function vo$2(t, e) {
|
|
41638
41638
|
return Hw(e.doc, (r) => {
|
|
41639
41639
|
let o = r.type.name === "fieldAnnotation";
|
|
41640
41640
|
return Array.isArray(t) ? o && t.includes(r.attrs.fieldId) : o && r.attrs.fieldId === t;
|
|
@@ -41649,7 +41649,7 @@ Actual: ` + p3.attribValue
|
|
|
41649
41649
|
if (e(r) && (n = { node: r, pos: o }), n) return false;
|
|
41650
41650
|
}), n;
|
|
41651
41651
|
}
|
|
41652
|
-
function
|
|
41652
|
+
function ko$2(t, e, n) {
|
|
41653
41653
|
let r = [];
|
|
41654
41654
|
return n.nodesBetween(t, e, (o, i3) => {
|
|
41655
41655
|
!o || o?.nodeSize === void 0 || o.type.name === "fieldAnnotation" && r.push({
|
|
@@ -41661,8 +41661,8 @@ Actual: ` + p3.attribValue
|
|
|
41661
41661
|
const Lx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41662
41662
|
__proto__: null,
|
|
41663
41663
|
findFieldAnnotations: Vw,
|
|
41664
|
-
findFieldAnnotationsBetween:
|
|
41665
|
-
findFieldAnnotationsByFieldId:
|
|
41664
|
+
findFieldAnnotationsBetween: ko$2,
|
|
41665
|
+
findFieldAnnotationsByFieldId: vo$2,
|
|
41666
41666
|
findFirstFieldAnnotationByFieldId: jw,
|
|
41667
41667
|
findRemovedFieldAnnotations: $u$1,
|
|
41668
41668
|
getAllFieldAnnotations: It$1,
|
|
@@ -41743,7 +41743,7 @@ Actual: ` + p3.attribValue
|
|
|
41743
41743
|
};
|
|
41744
41744
|
return `#${i3(e)}${i3(n)}${i3(r)}${o < 1 ? i3(Math.round(o * 255)) : ""}`;
|
|
41745
41745
|
}
|
|
41746
|
-
const ys = "annotation", Vu$1 = "annotation-content", Hu$1 =
|
|
41746
|
+
const ys = "annotation", Vu$1 = "annotation-content", Hu$1 = J$2.create({
|
|
41747
41747
|
name: "fieldAnnotation",
|
|
41748
41748
|
group: "inline",
|
|
41749
41749
|
inline: true,
|
|
@@ -42033,7 +42033,7 @@ Actual: ` + p3.attribValue
|
|
|
42033
42033
|
* })
|
|
42034
42034
|
*/
|
|
42035
42035
|
updateFieldAnnotations: (t, e = {}) => ({ dispatch: n, state: r, commands: o }) => {
|
|
42036
|
-
let i3 =
|
|
42036
|
+
let i3 = vo$2(t, r);
|
|
42037
42037
|
return i3.length && n ? o.updateFieldAnnotationsAttributes(i3, e) : true;
|
|
42038
42038
|
},
|
|
42039
42039
|
/**
|
|
@@ -42068,7 +42068,7 @@ Actual: ` + p3.attribValue
|
|
|
42068
42068
|
* editor.commands.deleteFieldAnnotations(['123', '456'])
|
|
42069
42069
|
*/
|
|
42070
42070
|
deleteFieldAnnotations: (t) => ({ dispatch: e, state: n, tr: r }) => {
|
|
42071
|
-
let o =
|
|
42071
|
+
let o = vo$2(t, n);
|
|
42072
42072
|
return o.length && e && o.forEach((i3) => {
|
|
42073
42073
|
let { pos: s, node: a } = i3, l = r.mapping.map(s), c3 = r.mapping.map(s + a.nodeSize), d = r.doc.nodeAt(l);
|
|
42074
42074
|
a.eq(d) && r.delete(l, c3);
|
|
@@ -42097,7 +42097,7 @@ Actual: ` + p3.attribValue
|
|
|
42097
42097
|
* editor.commands.sliceFieldAnnotations(['123', '456'], 5)
|
|
42098
42098
|
*/
|
|
42099
42099
|
sliceFieldAnnotations: (t, e) => ({ dispatch: n, state: r, tr: o }) => {
|
|
42100
|
-
let i3 =
|
|
42100
|
+
let i3 = vo$2(t, r);
|
|
42101
42101
|
return i3.length && n && i3.forEach((s, a) => {
|
|
42102
42102
|
if (a >= e) {
|
|
42103
42103
|
let { pos: l, node: c3 } = s, d = o.mapping.map(l), u = o.mapping.map(l + c3.nodeSize), f = o.doc.nodeAt(d);
|
|
@@ -42183,7 +42183,7 @@ Actual: ` + p3.attribValue
|
|
|
42183
42183
|
toggleFieldAnnotationsFormat: (t, e = false) => ({ dispatch: n, tr: r, state: o, commands: i3 }) => {
|
|
42184
42184
|
if (!this.options.toggleFormatNames.includes(t))
|
|
42185
42185
|
return false;
|
|
42186
|
-
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);
|
|
42187
42187
|
return d.length && n && (d.forEach((u) => {
|
|
42188
42188
|
i3.updateFieldAnnotationsAttributes([u], {
|
|
42189
42189
|
[t]: !u.node.attrs[t]
|
|
@@ -42191,7 +42191,7 @@ Actual: ` + p3.attribValue
|
|
|
42191
42191
|
}), e && c3?.type.name === this.name && r.setSelection(We$3.create(r.doc, a))), true;
|
|
42192
42192
|
},
|
|
42193
42193
|
setFieldAnnotationsFontFamily: (t, e = false) => ({ dispatch: n, tr: r, state: o, commands: i3 }) => {
|
|
42194
|
-
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);
|
|
42195
42195
|
return c3.length && n && (c3.forEach((d) => {
|
|
42196
42196
|
i3.updateFieldAnnotationsAttributes([d], {
|
|
42197
42197
|
fontFamily: t
|
|
@@ -42199,7 +42199,7 @@ Actual: ` + p3.attribValue
|
|
|
42199
42199
|
}), e && l?.type.name === this.name && r.setSelection(We$3.create(r.doc, s))), true;
|
|
42200
42200
|
},
|
|
42201
42201
|
setFieldAnnotationsFontSize: (t, e = false) => ({ dispatch: n, tr: r, state: o, commands: i3 }) => {
|
|
42202
|
-
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);
|
|
42203
42203
|
if (!c3.length)
|
|
42204
42204
|
return true;
|
|
42205
42205
|
let [d, u] = Lf$1(t), f = 8, p3 = 96, h3 = "pt";
|
|
@@ -42247,17 +42247,17 @@ Actual: ` + p3.attribValue
|
|
|
42247
42247
|
}
|
|
42248
42248
|
return e;
|
|
42249
42249
|
}
|
|
42250
|
-
const
|
|
42251
|
-
key:
|
|
42250
|
+
const Bo$1 = new qp$1("ImagePlaceholder"), ov = (t = {}) => new _p$1({
|
|
42251
|
+
key: Bo$1,
|
|
42252
42252
|
state: {
|
|
42253
42253
|
init() {
|
|
42254
42254
|
return P.empty;
|
|
42255
42255
|
},
|
|
42256
42256
|
apply(e, n, r, o) {
|
|
42257
42257
|
n = n.map(e.mapping, e.doc);
|
|
42258
|
-
let i3 = e.getMeta(
|
|
42258
|
+
let i3 = e.getMeta(Bo$1);
|
|
42259
42259
|
if (i3?.type === "add") {
|
|
42260
|
-
let s = document.createElement("placeholder"), a =
|
|
42260
|
+
let s = document.createElement("placeholder"), a = F$1.widget(i3.pos, s, {
|
|
42261
42261
|
id: i3.id
|
|
42262
42262
|
});
|
|
42263
42263
|
n = n.add(e.doc, [a]);
|
|
@@ -42271,7 +42271,7 @@ Actual: ` + p3.attribValue
|
|
|
42271
42271
|
}
|
|
42272
42272
|
}
|
|
42273
42273
|
}), Fx = (t, e) => {
|
|
42274
|
-
let r =
|
|
42274
|
+
let r = Bo$1.getState(t)?.find(null, null, (o) => o.id === e);
|
|
42275
42275
|
return r?.length ? r[0].from : null;
|
|
42276
42276
|
}, Bl$1 = new qp$1("ImagePosition"), iv = ({ editor: t }) => {
|
|
42277
42277
|
const { view: e } = t;
|
|
@@ -42328,11 +42328,11 @@ Actual: ` + p3.attribValue
|
|
|
42328
42328
|
}
|
|
42329
42329
|
if (i3 += a === "margin" ? `position: absolute; top: ${u?.offsetTop + u?.offsetHeight}px; ` : "", a === "margin") {
|
|
42330
42330
|
const f = e.posAtDOM(u, 1), p3 = document.createElement("div");
|
|
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(
|
|
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" }));
|
|
42332
42332
|
}
|
|
42333
42333
|
}
|
|
42334
42334
|
n.push(
|
|
42335
|
-
|
|
42335
|
+
F$1.node(o, o + r.nodeSize, { style: i3, class: s })
|
|
42336
42336
|
);
|
|
42337
42337
|
}
|
|
42338
42338
|
}), n;
|
|
@@ -42348,7 +42348,7 @@ Actual: ` + p3.attribValue
|
|
|
42348
42348
|
r = r.parentNode;
|
|
42349
42349
|
}
|
|
42350
42350
|
return null;
|
|
42351
|
-
}, ju$1 =
|
|
42351
|
+
}, ju$1 = J$2.create({
|
|
42352
42352
|
name: "image",
|
|
42353
42353
|
group: "inline",
|
|
42354
42354
|
inline: true,
|
|
@@ -42447,7 +42447,7 @@ Actual: ` + p3.attribValue
|
|
|
42447
42447
|
addPmPlugins() {
|
|
42448
42448
|
return [ov(), iv({ editor: this.editor })];
|
|
42449
42449
|
}
|
|
42450
|
-
}), av =
|
|
42450
|
+
}), av = J$2.create({
|
|
42451
42451
|
name: "bookmarkStart",
|
|
42452
42452
|
group: "inline",
|
|
42453
42453
|
content: "inline*",
|
|
@@ -42472,7 +42472,7 @@ Actual: ` + p3.attribValue
|
|
|
42472
42472
|
renderDOM({ htmlAttributes: t }) {
|
|
42473
42473
|
return ["a", E$1.mergeAttributes(this.options.htmlAttributes, t)];
|
|
42474
42474
|
}
|
|
42475
|
-
}), Wu$1 =
|
|
42475
|
+
}), Wu$1 = J$2.create({
|
|
42476
42476
|
name: "mention",
|
|
42477
42477
|
group: "inline",
|
|
42478
42478
|
inline: true,
|
|
@@ -42510,7 +42510,7 @@ Actual: ` + p3.attribValue
|
|
|
42510
42510
|
email: { default: null }
|
|
42511
42511
|
};
|
|
42512
42512
|
}
|
|
42513
|
-
}), lv =
|
|
42513
|
+
}), lv = J$2.create({
|
|
42514
42514
|
name: "page-number",
|
|
42515
42515
|
group: "inline",
|
|
42516
42516
|
inline: true,
|
|
@@ -42528,7 +42528,7 @@ Actual: ` + p3.attribValue
|
|
|
42528
42528
|
renderDOM({ htmlAttributes: t }) {
|
|
42529
42529
|
return ["span", E$1.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
42530
42530
|
}
|
|
42531
|
-
}), cv =
|
|
42531
|
+
}), cv = J$2.create({
|
|
42532
42532
|
name: "total-page-number",
|
|
42533
42533
|
group: "inline",
|
|
42534
42534
|
inline: true,
|
|
@@ -42546,7 +42546,7 @@ Actual: ` + p3.attribValue
|
|
|
42546
42546
|
renderDOM({ htmlAttributes: t }) {
|
|
42547
42547
|
return ["span", E$1.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
42548
42548
|
}
|
|
42549
|
-
}), dv =
|
|
42549
|
+
}), dv = J$2.create({
|
|
42550
42550
|
name: "shapeContainer",
|
|
42551
42551
|
group: "block",
|
|
42552
42552
|
content: "block+",
|
|
@@ -42592,7 +42592,7 @@ Actual: ` + p3.attribValue
|
|
|
42592
42592
|
0
|
|
42593
42593
|
];
|
|
42594
42594
|
}
|
|
42595
|
-
}), uv =
|
|
42595
|
+
}), uv = J$2.create({
|
|
42596
42596
|
name: "shapeTextbox",
|
|
42597
42597
|
group: "block",
|
|
42598
42598
|
content: "paragraph* block*",
|
|
@@ -42625,7 +42625,7 @@ Actual: ` + p3.attribValue
|
|
|
42625
42625
|
0
|
|
42626
42626
|
];
|
|
42627
42627
|
}
|
|
42628
|
-
}), fv =
|
|
42628
|
+
}), fv = J$2.create({
|
|
42629
42629
|
name: "contentBlock",
|
|
42630
42630
|
group: "block",
|
|
42631
42631
|
content: "",
|
|
@@ -43304,7 +43304,7 @@ Actual: ` + p3.attribValue
|
|
|
43304
43304
|
addPmPlugins() {
|
|
43305
43305
|
const t = (n) => {
|
|
43306
43306
|
if (n.doc.textBetween(0, n.doc.content.size, " ", " ") !== "") return P.empty;
|
|
43307
|
-
const { $from: o } = n.selection, i3 =
|
|
43307
|
+
const { $from: o } = n.selection, i3 = F$1.node(o.before(), o.after(), {
|
|
43308
43308
|
"data-placeholder": this.options.placeholder,
|
|
43309
43309
|
class: "sd-editor-placeholder"
|
|
43310
43310
|
});
|
|
@@ -43324,9 +43324,9 @@ Actual: ` + p3.attribValue
|
|
|
43324
43324
|
})];
|
|
43325
43325
|
}
|
|
43326
43326
|
});
|
|
43327
|
-
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) {
|
|
43328
43328
|
return t.concat([e + "-" + Rn$2, e + "-" + Mr$1]);
|
|
43329
|
-
}, []), nf$1 = /* @__PURE__ */ [].concat(
|
|
43329
|
+
}, []), nf$1 = /* @__PURE__ */ [].concat(zr$1, [Gs]).reduce(function(t, e) {
|
|
43330
43330
|
return t.concat([e, e + "-" + Rn$2, e + "-" + Mr$1]);
|
|
43331
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];
|
|
43332
43332
|
function lt$2(t) {
|
|
@@ -43400,7 +43400,7 @@ Actual: ` + p3.attribValue
|
|
|
43400
43400
|
function it$1(t) {
|
|
43401
43401
|
return t.split("-")[0];
|
|
43402
43402
|
}
|
|
43403
|
-
var an$2 = Math.max,
|
|
43403
|
+
var an$2 = Math.max, zo$1 = Math.min, Ln$2 = Math.round;
|
|
43404
43404
|
function ws() {
|
|
43405
43405
|
var t = navigator.userAgentData;
|
|
43406
43406
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
@@ -43493,7 +43493,7 @@ Actual: ` + p3.attribValue
|
|
|
43493
43493
|
}
|
|
43494
43494
|
return null;
|
|
43495
43495
|
}
|
|
43496
|
-
function
|
|
43496
|
+
function $r$1(t) {
|
|
43497
43497
|
for (var e = Fe$1(t), n = Hl$1(t); n && Iv(n) && xt(n).position === "static"; )
|
|
43498
43498
|
n = Hl$1(n);
|
|
43499
43499
|
return n && (lt$2(n) === "html" || lt$2(n) === "body" && xt(n).position === "static") ? e : n || Rv(t) || e;
|
|
@@ -43502,7 +43502,7 @@ Actual: ` + p3.attribValue
|
|
|
43502
43502
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
43503
43503
|
}
|
|
43504
43504
|
function ar$1(t, e, n) {
|
|
43505
|
-
return an$2(t,
|
|
43505
|
+
return an$2(t, zo$1(e, n));
|
|
43506
43506
|
}
|
|
43507
43507
|
function Lv(t, e, n) {
|
|
43508
43508
|
var r = ar$1(t, e, n);
|
|
@@ -43527,13 +43527,13 @@ Actual: ` + p3.attribValue
|
|
|
43527
43527
|
var Fv = function(e, n) {
|
|
43528
43528
|
return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
|
|
43529
43529
|
placement: n.placement
|
|
43530
|
-
})) : e, lf$1(typeof e != "number" ? e : cf$1(e,
|
|
43530
|
+
})) : e, lf$1(typeof e != "number" ? e : cf$1(e, zr$1));
|
|
43531
43531
|
};
|
|
43532
43532
|
function Bv(t) {
|
|
43533
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";
|
|
43534
43534
|
if (!(!i3 || !s)) {
|
|
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 =
|
|
43536
|
-
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);
|
|
43537
43537
|
}
|
|
43538
43538
|
}
|
|
43539
43539
|
function zv(t) {
|
|
@@ -43576,8 +43576,8 @@ Actual: ` + p3.attribValue
|
|
|
43576
43576
|
p3 = g.x, m = g.y;
|
|
43577
43577
|
var b = s.hasOwnProperty("x"), w = s.hasOwnProperty("y"), x3 = Ne$1, y = Ee$1, S = window;
|
|
43578
43578
|
if (c3) {
|
|
43579
|
-
var k =
|
|
43580
|
-
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) {
|
|
43581
43581
|
y = Ue$1;
|
|
43582
43582
|
var C3 = u && k === S && S.visualViewport ? S.visualViewport.height : (
|
|
43583
43583
|
// $FlowFixMe[prop-missing]
|
|
@@ -43589,21 +43589,21 @@ Actual: ` + p3.attribValue
|
|
|
43589
43589
|
x3 = qe$2;
|
|
43590
43590
|
var V = u && k === S && S.visualViewport ? S.visualViewport.width : (
|
|
43591
43591
|
// $FlowFixMe[prop-missing]
|
|
43592
|
-
k[
|
|
43592
|
+
k[B]
|
|
43593
43593
|
);
|
|
43594
43594
|
p3 -= V - r.width, p3 *= l ? 1 : -1;
|
|
43595
43595
|
}
|
|
43596
43596
|
}
|
|
43597
43597
|
var $3 = Object.assign({
|
|
43598
43598
|
position: a
|
|
43599
|
-
}, c3 && _v),
|
|
43599
|
+
}, c3 && _v), z3 = d === true ? Vv({
|
|
43600
43600
|
x: p3,
|
|
43601
43601
|
y: m
|
|
43602
43602
|
}, Fe$1(n)) : {
|
|
43603
43603
|
x: p3,
|
|
43604
43604
|
y: m
|
|
43605
43605
|
};
|
|
43606
|
-
if (p3 =
|
|
43606
|
+
if (p3 = z3.x, m = z3.y, l) {
|
|
43607
43607
|
var H3;
|
|
43608
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));
|
|
43609
43609
|
}
|
|
@@ -43639,17 +43639,17 @@ Actual: ` + p3.attribValue
|
|
|
43639
43639
|
fn: Hv,
|
|
43640
43640
|
data: {}
|
|
43641
43641
|
};
|
|
43642
|
-
var
|
|
43642
|
+
var so$2 = {
|
|
43643
43643
|
passive: true
|
|
43644
43644
|
};
|
|
43645
43645
|
function Wv(t) {
|
|
43646
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);
|
|
43647
43647
|
return i3 && c3.forEach(function(d) {
|
|
43648
|
-
d.addEventListener("scroll", n.update,
|
|
43649
|
-
}), a && l.addEventListener("resize", n.update,
|
|
43648
|
+
d.addEventListener("scroll", n.update, so$2);
|
|
43649
|
+
}), a && l.addEventListener("resize", n.update, so$2), function() {
|
|
43650
43650
|
i3 && c3.forEach(function(d) {
|
|
43651
|
-
d.removeEventListener("scroll", n.update,
|
|
43652
|
-
}), a && l.removeEventListener("resize", n.update,
|
|
43651
|
+
d.removeEventListener("scroll", n.update, so$2);
|
|
43652
|
+
}), a && l.removeEventListener("resize", n.update, so$2);
|
|
43653
43653
|
};
|
|
43654
43654
|
}
|
|
43655
43655
|
const Uv = {
|
|
@@ -43667,7 +43667,7 @@ Actual: ` + p3.attribValue
|
|
|
43667
43667
|
bottom: "top",
|
|
43668
43668
|
top: "bottom"
|
|
43669
43669
|
};
|
|
43670
|
-
function
|
|
43670
|
+
function xo$2(t) {
|
|
43671
43671
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
43672
43672
|
return qv[e];
|
|
43673
43673
|
});
|
|
@@ -43746,7 +43746,7 @@ Actual: ` + p3.attribValue
|
|
|
43746
43746
|
return e === tf$1 ? vs$1(Xv(t, n)) : fn$2(e) ? Yv(e, n) : vs$1(Jv(Ut$2(t)));
|
|
43747
43747
|
}
|
|
43748
43748
|
function Gv(t) {
|
|
43749
|
-
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;
|
|
43750
43750
|
return fn$2(r) ? e.filter(function(o) {
|
|
43751
43751
|
return fn$2(o) && sf$1(o, r) && lt$2(o) !== "body";
|
|
43752
43752
|
}) : [];
|
|
@@ -43754,7 +43754,7 @@ Actual: ` + p3.attribValue
|
|
|
43754
43754
|
function Zv(t, e, n, r) {
|
|
43755
43755
|
var o = e === "clippingParents" ? Gv(t) : [].concat(e), i3 = [].concat(o, [n]), s = i3[0], a = i3.reduce(function(l, c3) {
|
|
43756
43756
|
var d = Ul$1(t, c3, r);
|
|
43757
|
-
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;
|
|
43758
43758
|
}, Ul$1(t, s, r));
|
|
43759
43759
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
43760
43760
|
}
|
|
@@ -43807,21 +43807,21 @@ Actual: ` + p3.attribValue
|
|
|
43807
43807
|
}
|
|
43808
43808
|
function Ar$1(t, e) {
|
|
43809
43809
|
e === void 0 && (e = {});
|
|
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,
|
|
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({
|
|
43811
43811
|
reference: k,
|
|
43812
43812
|
element: x3,
|
|
43813
43813
|
placement: o
|
|
43814
|
-
}),
|
|
43814
|
+
}), B = vs$1(Object.assign({}, x3, M)), C3 = f === Gn$2 ? B : k, V = {
|
|
43815
43815
|
top: S.top - C3.top + b.top,
|
|
43816
43816
|
bottom: C3.bottom - S.bottom + b.bottom,
|
|
43817
43817
|
left: S.left - C3.left + b.left,
|
|
43818
43818
|
right: C3.right - S.right + b.right
|
|
43819
43819
|
}, $3 = t.modifiersData.offset;
|
|
43820
43820
|
if (f === Gn$2 && $3) {
|
|
43821
|
-
var
|
|
43821
|
+
var z3 = $3[o];
|
|
43822
43822
|
Object.keys(V).forEach(function(H3) {
|
|
43823
43823
|
var ie2 = [qe$2, Ue$1].indexOf(H3) >= 0 ? 1 : -1, ae2 = [Ee$1, Ue$1].indexOf(H3) >= 0 ? "y" : "x";
|
|
43824
|
-
V[H3] +=
|
|
43824
|
+
V[H3] += z3[ae2] * ie2;
|
|
43825
43825
|
});
|
|
43826
43826
|
}
|
|
43827
43827
|
return V;
|
|
@@ -43830,7 +43830,7 @@ Actual: ` + p3.attribValue
|
|
|
43830
43830
|
e === void 0 && (e = {});
|
|
43831
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) {
|
|
43832
43832
|
return Bn$1(h3) === d;
|
|
43833
|
-
}) :
|
|
43833
|
+
}) : zr$1, f = u.filter(function(h3) {
|
|
43834
43834
|
return c3.indexOf(h3) >= 0;
|
|
43835
43835
|
});
|
|
43836
43836
|
f.length === 0 && (f = u);
|
|
@@ -43849,13 +43849,13 @@ Actual: ` + p3.attribValue
|
|
|
43849
43849
|
function ek(t) {
|
|
43850
43850
|
if (it$1(t) === Gs)
|
|
43851
43851
|
return [];
|
|
43852
|
-
var e =
|
|
43852
|
+
var e = xo$2(t);
|
|
43853
43853
|
return [Wl$1(t), e, Wl$1(e)];
|
|
43854
43854
|
}
|
|
43855
43855
|
function tk(t) {
|
|
43856
43856
|
var e = t.state, n = t.options, r = t.name;
|
|
43857
43857
|
if (!e.modifiersData[r]._skip) {
|
|
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 ? [
|
|
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) {
|
|
43859
43859
|
return Ke2.concat(it$1(Pe2) === Gs ? Qv(e, {
|
|
43860
43860
|
placement: Pe2,
|
|
43861
43861
|
boundary: d,
|
|
@@ -43864,25 +43864,25 @@ Actual: ` + p3.attribValue
|
|
|
43864
43864
|
flipVariations: h3,
|
|
43865
43865
|
allowedAutoPlacements: m
|
|
43866
43866
|
}) : Pe2);
|
|
43867
|
-
}, []), S = e.rects.reference, k = e.rects.popper, M = /* @__PURE__ */ new Map(),
|
|
43868
|
-
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, {
|
|
43869
43869
|
placement: $3,
|
|
43870
43870
|
boundary: d,
|
|
43871
43871
|
rootBoundary: u,
|
|
43872
43872
|
altBoundary: f,
|
|
43873
43873
|
padding: c3
|
|
43874
43874
|
}), se2 = ie2 ? H3 ? qe$2 : Ne$1 : H3 ? Ue$1 : Ee$1;
|
|
43875
|
-
S[ae2] > k[ae2] && (se2 =
|
|
43876
|
-
var Q3 =
|
|
43877
|
-
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) {
|
|
43878
43878
|
return Ke2;
|
|
43879
43879
|
})) {
|
|
43880
|
-
C3 = $3,
|
|
43880
|
+
C3 = $3, B = false;
|
|
43881
43881
|
break;
|
|
43882
43882
|
}
|
|
43883
43883
|
M.set($3, pe2);
|
|
43884
43884
|
}
|
|
43885
|
-
if (
|
|
43885
|
+
if (B)
|
|
43886
43886
|
for (var he2 = h3 ? 3 : 1, Te2 = function(Pe2) {
|
|
43887
43887
|
var Xe2 = y.find(function(Ct2) {
|
|
43888
43888
|
var Je2 = M.get(Ct2);
|
|
@@ -43998,7 +43998,7 @@ Actual: ` + p3.attribValue
|
|
|
43998
43998
|
rootBoundary: c3,
|
|
43999
43999
|
padding: u,
|
|
44000
44000
|
altBoundary: d
|
|
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,
|
|
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, {
|
|
44002
44002
|
placement: e.placement
|
|
44003
44003
|
})) : m, V = typeof C3 == "number" ? {
|
|
44004
44004
|
mainAxis: C3,
|
|
@@ -44006,23 +44006,23 @@ Actual: ` + p3.attribValue
|
|
|
44006
44006
|
} : Object.assign({
|
|
44007
44007
|
mainAxis: 0,
|
|
44008
44008
|
altAxis: 0
|
|
44009
|
-
}, C3), $3 = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null,
|
|
44009
|
+
}, C3), $3 = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, z3 = {
|
|
44010
44010
|
x: 0,
|
|
44011
44011
|
y: 0
|
|
44012
44012
|
};
|
|
44013
44013
|
if (k) {
|
|
44014
44014
|
if (i3) {
|
|
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 ? -
|
|
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) : {
|
|
44016
44016
|
width: 0,
|
|
44017
44017
|
height: 0
|
|
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 &&
|
|
44019
|
-
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;
|
|
44020
44020
|
}
|
|
44021
44021
|
if (a) {
|
|
44022
|
-
var qn2,
|
|
44023
|
-
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;
|
|
44024
44024
|
}
|
|
44025
|
-
e.modifiersData[r] =
|
|
44025
|
+
e.modifiersData[r] = z3;
|
|
44026
44026
|
}
|
|
44027
44027
|
}
|
|
44028
44028
|
const fk = {
|
|
@@ -44162,7 +44162,7 @@ Actual: ` + p3.attribValue
|
|
|
44162
44162
|
var b = d.elements, w = b.reference, x3 = b.popper;
|
|
44163
44163
|
if (Jl$1(w, x3)) {
|
|
44164
44164
|
d.rects = {
|
|
44165
|
-
reference: gk(w,
|
|
44165
|
+
reference: gk(w, $r$1(x3), d.options.strategy === "fixed"),
|
|
44166
44166
|
popper: Qs(x3)
|
|
44167
44167
|
}, d.reset = false, d.placement = d.options.placement, d.orderedModifiers.forEach(function(V) {
|
|
44168
44168
|
return d.modifiersData[V.name] = Object.assign({}, V.data);
|
|
@@ -44172,10 +44172,10 @@ Actual: ` + p3.attribValue
|
|
|
44172
44172
|
d.reset = false, y = -1;
|
|
44173
44173
|
continue;
|
|
44174
44174
|
}
|
|
44175
|
-
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;
|
|
44176
44176
|
typeof k == "function" && (d = k({
|
|
44177
44177
|
state: d,
|
|
44178
|
-
options:
|
|
44178
|
+
options: B,
|
|
44179
44179
|
name: C3,
|
|
44180
44180
|
instance: p3
|
|
44181
44181
|
}) || d);
|
|
@@ -44280,7 +44280,7 @@ Actual: ` + p3.attribValue
|
|
|
44280
44280
|
function Ek(t) {
|
|
44281
44281
|
return t.split("-")[0];
|
|
44282
44282
|
}
|
|
44283
|
-
function
|
|
44283
|
+
function $o$1(t) {
|
|
44284
44284
|
return [].slice.call(t);
|
|
44285
44285
|
}
|
|
44286
44286
|
function Zl$1(t) {
|
|
@@ -44306,7 +44306,7 @@ Actual: ` + p3.attribValue
|
|
|
44306
44306
|
return !!(t && t._tippy && t._tippy.reference === t);
|
|
44307
44307
|
}
|
|
44308
44308
|
function Rk(t) {
|
|
44309
|
-
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));
|
|
44310
44310
|
}
|
|
44311
44311
|
function xi$1(t, e) {
|
|
44312
44312
|
t.forEach(function(n) {
|
|
@@ -44556,7 +44556,7 @@ Actual: ` + p3.attribValue
|
|
|
44556
44556
|
Or(e.content) ? (xs(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? xs(t, e.content) : t.textContent = e.content);
|
|
44557
44557
|
}
|
|
44558
44558
|
function Ss(t) {
|
|
44559
|
-
var e = t.firstElementChild, n =
|
|
44559
|
+
var e = t.firstElementChild, n = $o$1(e.children);
|
|
44560
44560
|
return {
|
|
44561
44561
|
box: e,
|
|
44562
44562
|
content: n.find(function(r) {
|
|
@@ -44585,9 +44585,9 @@ Actual: ` + p3.attribValue
|
|
|
44585
44585
|
};
|
|
44586
44586
|
}
|
|
44587
44587
|
xf$1.$$tippy = true;
|
|
44588
|
-
var Yk = 1,
|
|
44588
|
+
var Yk = 1, ao$2 = [], Ci$1 = [];
|
|
44589
44589
|
function Gk(t, e) {
|
|
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(
|
|
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 = {
|
|
44591
44591
|
// Is the instance currently enabled?
|
|
44592
44592
|
isEnabled: true,
|
|
44593
44593
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -44608,14 +44608,14 @@ Actual: ` + p3.attribValue
|
|
|
44608
44608
|
state: x3,
|
|
44609
44609
|
plugins: w,
|
|
44610
44610
|
// methods
|
|
44611
|
-
clearDelayTimeouts:
|
|
44612
|
-
setProps:
|
|
44613
|
-
setContent:
|
|
44611
|
+
clearDelayTimeouts: Kr2,
|
|
44612
|
+
setProps: Xr2,
|
|
44613
|
+
setContent: Jr2,
|
|
44614
44614
|
show: Mf2,
|
|
44615
44615
|
hide: Af2,
|
|
44616
44616
|
hideWithInteractivity: Of2,
|
|
44617
44617
|
enable: Xn2,
|
|
44618
|
-
disable:
|
|
44618
|
+
disable: qr2,
|
|
44619
44619
|
unmount: Tf2,
|
|
44620
44620
|
destroy: Df2
|
|
44621
44621
|
};
|
|
@@ -44623,7 +44623,7 @@ Actual: ` + p3.attribValue
|
|
|
44623
44623
|
return ge$1.env.NODE_ENV !== "production" && ks(true, "render() function has not been supplied."), y;
|
|
44624
44624
|
var S = n.render(y), k = S.popper, M = S.onUpdate;
|
|
44625
44625
|
k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + y.id, y.popper = k, t._tippy = y, k._tippy = y;
|
|
44626
|
-
var
|
|
44626
|
+
var B = w.map(function(v) {
|
|
44627
44627
|
return v.fn(y);
|
|
44628
44628
|
}), C3 = t.hasAttribute("aria-expanded");
|
|
44629
44629
|
return hn2(), he2(), se2(), Q3("onCreate", [y]), n.showOnCreate && Kn2(), k.addEventListener("mouseenter", function() {
|
|
@@ -44638,7 +44638,7 @@ Actual: ` + p3.attribValue
|
|
|
44638
44638
|
function $3() {
|
|
44639
44639
|
return V()[0] === "hold";
|
|
44640
44640
|
}
|
|
44641
|
-
function
|
|
44641
|
+
function z3() {
|
|
44642
44642
|
var v;
|
|
44643
44643
|
return !!((v = y.props.render) != null && v.$$tippy);
|
|
44644
44644
|
}
|
|
@@ -44659,7 +44659,7 @@ Actual: ` + p3.attribValue
|
|
|
44659
44659
|
v === void 0 && (v = false), k.style.pointerEvents = y.props.interactive && !v ? "" : "none", k.style.zIndex = "" + y.props.zIndex;
|
|
44660
44660
|
}
|
|
44661
44661
|
function Q3(v, O, L3) {
|
|
44662
|
-
if (L3 === void 0 && (L3 = true),
|
|
44662
|
+
if (L3 === void 0 && (L3 = true), B.forEach(function(U3) {
|
|
44663
44663
|
U3[v] && U3[v].apply(U3, O);
|
|
44664
44664
|
}), L3) {
|
|
44665
44665
|
var q3;
|
|
@@ -44690,7 +44690,7 @@ Actual: ` + p3.attribValue
|
|
|
44690
44690
|
}
|
|
44691
44691
|
}
|
|
44692
44692
|
function Te2() {
|
|
44693
|
-
ie2().removeEventListener("mousemove", h3),
|
|
44693
|
+
ie2().removeEventListener("mousemove", h3), ao$2 = ao$2.filter(function(v) {
|
|
44694
44694
|
return v !== h3;
|
|
44695
44695
|
});
|
|
44696
44696
|
}
|
|
@@ -44757,13 +44757,13 @@ Actual: ` + p3.attribValue
|
|
|
44757
44757
|
function hn2() {
|
|
44758
44758
|
$3() && (Mt2("touchstart", Wn2, {
|
|
44759
44759
|
passive: true
|
|
44760
|
-
}), Mt2("touchend",
|
|
44760
|
+
}), Mt2("touchend", jr2, {
|
|
44761
44761
|
passive: true
|
|
44762
44762
|
})), Tk(y.props.trigger).forEach(function(v) {
|
|
44763
44763
|
if (v !== "manual")
|
|
44764
44764
|
switch (Mt2(v, Wn2), v) {
|
|
44765
44765
|
case "mouseenter":
|
|
44766
|
-
Mt2("mouseleave",
|
|
44766
|
+
Mt2("mouseleave", jr2);
|
|
44767
44767
|
break;
|
|
44768
44768
|
case "focus":
|
|
44769
44769
|
Mt2(Vk ? "focusout" : "blur", Un2);
|
|
@@ -44774,7 +44774,7 @@ Actual: ` + p3.attribValue
|
|
|
44774
44774
|
}
|
|
44775
44775
|
});
|
|
44776
44776
|
}
|
|
44777
|
-
function
|
|
44777
|
+
function Vr2() {
|
|
44778
44778
|
p3.forEach(function(v) {
|
|
44779
44779
|
var O = v.node, L3 = v.eventType, q3 = v.handler, U3 = v.options;
|
|
44780
44780
|
O.removeEventListener(L3, q3, U3);
|
|
@@ -44784,12 +44784,12 @@ Actual: ` + p3.attribValue
|
|
|
44784
44784
|
var O, L3 = false;
|
|
44785
44785
|
if (!(!y.state.isEnabled || qn2(v) || a)) {
|
|
44786
44786
|
var q3 = ((O = d) == null ? void 0 : O.type) === "focus";
|
|
44787
|
-
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) {
|
|
44788
44788
|
return U3(v);
|
|
44789
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);
|
|
44790
44790
|
}
|
|
44791
44791
|
}
|
|
44792
|
-
function
|
|
44792
|
+
function Hr2(v) {
|
|
44793
44793
|
var O = v.target, L3 = H3().contains(O) || k.contains(O);
|
|
44794
44794
|
if (!(v.type === "mousemove" && L3)) {
|
|
44795
44795
|
var q3 = At2().concat(k).map(function(U3) {
|
|
@@ -44803,7 +44803,7 @@ Actual: ` + p3.attribValue
|
|
|
44803
44803
|
Fk(q3, v) && (Te2(), qt2(v));
|
|
44804
44804
|
}
|
|
44805
44805
|
}
|
|
44806
|
-
function
|
|
44806
|
+
function jr2(v) {
|
|
44807
44807
|
var O = qn2(v) || y.props.trigger.indexOf("click") >= 0 && s;
|
|
44808
44808
|
if (!O) {
|
|
44809
44809
|
if (y.props.interactive) {
|
|
@@ -44819,9 +44819,9 @@ Actual: ` + p3.attribValue
|
|
|
44819
44819
|
function qn2(v) {
|
|
44820
44820
|
return rt$2.isTouch ? $3() !== v.type.indexOf("touch") >= 0 : false;
|
|
44821
44821
|
}
|
|
44822
|
-
function
|
|
44823
|
-
|
|
44824
|
-
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 ? {
|
|
44825
44825
|
getBoundingClientRect: U3,
|
|
44826
44826
|
contextElement: U3.contextElement || H3()
|
|
44827
44827
|
} : t, sa2 = {
|
|
@@ -44829,12 +44829,12 @@ Actual: ` + p3.attribValue
|
|
|
44829
44829
|
enabled: true,
|
|
44830
44830
|
phase: "beforeWrite",
|
|
44831
44831
|
requires: ["computeStyles"],
|
|
44832
|
-
fn: function(
|
|
44833
|
-
var gn2 =
|
|
44834
|
-
if (
|
|
44832
|
+
fn: function(Yr2) {
|
|
44833
|
+
var gn2 = Yr2.state;
|
|
44834
|
+
if (z3()) {
|
|
44835
44835
|
var Ef2 = ae2(), Go2 = Ef2.box;
|
|
44836
|
-
["placement", "reference-hidden", "escaped"].forEach(function(
|
|
44837
|
-
|
|
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);
|
|
44838
44838
|
}), gn2.attributes.popper = {};
|
|
44839
44839
|
}
|
|
44840
44840
|
}
|
|
@@ -44864,7 +44864,7 @@ Actual: ` + p3.attribValue
|
|
|
44864
44864
|
adaptive: !xe
|
|
44865
44865
|
}
|
|
44866
44866
|
}, sa2];
|
|
44867
|
-
|
|
44867
|
+
z3() && ze2 && Kt2.push({
|
|
44868
44868
|
name: "arrow",
|
|
44869
44869
|
options: {
|
|
44870
44870
|
element: ze2,
|
|
@@ -44876,12 +44876,12 @@ Actual: ` + p3.attribValue
|
|
|
44876
44876
|
modifiers: Kt2
|
|
44877
44877
|
}));
|
|
44878
44878
|
}
|
|
44879
|
-
function
|
|
44879
|
+
function Ur2() {
|
|
44880
44880
|
y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
|
|
44881
44881
|
}
|
|
44882
44882
|
function ut2() {
|
|
44883
44883
|
var v = y.props.appendTo, O, L3 = H3();
|
|
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,
|
|
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.", `
|
|
44885
44885
|
|
|
44886
44886
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
44887
44887
|
|
|
@@ -44890,7 +44890,7 @@ Actual: ` + p3.attribValue
|
|
|
44890
44890
|
`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
44891
44891
|
}
|
|
44892
44892
|
function At2() {
|
|
44893
|
-
return
|
|
44893
|
+
return $o$1(k.querySelectorAll("[data-tippy-root]"));
|
|
44894
44894
|
}
|
|
44895
44895
|
function Kn2(v) {
|
|
44896
44896
|
y.clearDelayTimeouts(), v && Q3("onTrigger", [y, v]), Pe2();
|
|
@@ -44916,26 +44916,26 @@ Actual: ` + p3.attribValue
|
|
|
44916
44916
|
function Xn2() {
|
|
44917
44917
|
y.state.isEnabled = true;
|
|
44918
44918
|
}
|
|
44919
|
-
function
|
|
44919
|
+
function qr2() {
|
|
44920
44920
|
y.hide(), y.state.isEnabled = false;
|
|
44921
44921
|
}
|
|
44922
|
-
function
|
|
44922
|
+
function Kr2() {
|
|
44923
44923
|
clearTimeout(r), clearTimeout(o), cancelAnimationFrame(i3);
|
|
44924
44924
|
}
|
|
44925
|
-
function
|
|
44925
|
+
function Xr2(v) {
|
|
44926
44926
|
if (ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("setProps")), !y.state.isDestroyed) {
|
|
44927
|
-
Q3("onBeforeUpdate", [y, v]),
|
|
44927
|
+
Q3("onBeforeUpdate", [y, v]), Vr2();
|
|
44928
44928
|
var O = y.props, L3 = rc$1(t, Object.assign({}, O, Zl$1(v), {
|
|
44929
44929
|
ignoreAttributes: true
|
|
44930
44930
|
}));
|
|
44931
|
-
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) {
|
|
44932
44932
|
q3.removeAttribute("aria-expanded");
|
|
44933
|
-
}) : 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) {
|
|
44934
44934
|
requestAnimationFrame(q3._tippy.popperInstance.forceUpdate);
|
|
44935
44935
|
})), Q3("onAfterUpdate", [y, v]);
|
|
44936
44936
|
}
|
|
44937
44937
|
}
|
|
44938
|
-
function
|
|
44938
|
+
function Jr2(v) {
|
|
44939
44939
|
y.setProps({
|
|
44940
44940
|
content: v
|
|
44941
44941
|
});
|
|
@@ -44944,18 +44944,18 @@ Actual: ` + p3.attribValue
|
|
|
44944
44944
|
ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("show"));
|
|
44945
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);
|
|
44946
44946
|
if (!(v || O || L3 || q3) && !H3().hasAttribute("disabled") && (Q3("onShow", [y], false), y.props.onShow(y) !== false)) {
|
|
44947
|
-
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()) {
|
|
44948
44948
|
var xe = ae2(), ze2 = xe.box, mn2 = xe.content;
|
|
44949
44949
|
xi$1([ze2, mn2], 0);
|
|
44950
44950
|
}
|
|
44951
44951
|
f = function() {
|
|
44952
44952
|
var Kt2;
|
|
44953
44953
|
if (!(!y.state.isVisible || c3)) {
|
|
44954
|
-
if (c3 = true, k.offsetHeight, k.style.transition = y.props.moveTransition,
|
|
44955
|
-
var Yo2 = ae2(),
|
|
44956
|
-
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");
|
|
44957
44957
|
}
|
|
44958
|
-
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() {
|
|
44959
44959
|
y.state.isShown = true, Q3("onShown", [y]);
|
|
44960
44960
|
});
|
|
44961
44961
|
}
|
|
@@ -44966,28 +44966,28 @@ Actual: ` + p3.attribValue
|
|
|
44966
44966
|
ge$1.env.NODE_ENV !== "production" && gt(y.state.isDestroyed, kn$2("hide"));
|
|
44967
44967
|
var v = !y.state.isVisible, O = y.state.isDestroyed, L3 = !y.state.isEnabled, q3 = ki$1(y.props.duration, 1, Re$2.duration);
|
|
44968
44968
|
if (!(v || O || L3) && (Q3("onHide", [y], false), y.props.onHide(y) !== false)) {
|
|
44969
|
-
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()) {
|
|
44970
44970
|
var U3 = ae2(), xe = U3.box, ze2 = U3.content;
|
|
44971
44971
|
y.props.animation && (xi$1([xe, ze2], q3), Ql$1([xe, ze2], "hidden"));
|
|
44972
44972
|
}
|
|
44973
|
-
pe2(), he2(), y.props.animation ?
|
|
44973
|
+
pe2(), he2(), y.props.animation ? z3() && Ct2(q3, y.unmount) : y.unmount();
|
|
44974
44974
|
}
|
|
44975
44975
|
}
|
|
44976
44976
|
function Of2(v) {
|
|
44977
|
-
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);
|
|
44978
44978
|
}
|
|
44979
44979
|
function Tf2() {
|
|
44980
|
-
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) {
|
|
44981
44981
|
v._tippy.unmount();
|
|
44982
44982
|
}), k.parentNode && k.parentNode.removeChild(k), Ci$1 = Ci$1.filter(function(v) {
|
|
44983
44983
|
return v !== y;
|
|
44984
44984
|
}), y.state.isMounted = false, Q3("onHidden", [y]));
|
|
44985
44985
|
}
|
|
44986
44986
|
function Df2() {
|
|
44987
|
-
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]));
|
|
44988
44988
|
}
|
|
44989
44989
|
}
|
|
44990
|
-
function $
|
|
44990
|
+
function _r$1(t, e) {
|
|
44991
44991
|
e === void 0 && (e = {});
|
|
44992
44992
|
var n = Re$2.plugins.concat(e.plugins || []);
|
|
44993
44993
|
ge$1.env.NODE_ENV !== "production" && (Wk(t), kf$1(e, n)), $k();
|
|
@@ -45009,9 +45009,9 @@ Actual: ` + p3.attribValue
|
|
|
45009
45009
|
}, []);
|
|
45010
45010
|
return Or(t) ? a[0] : a;
|
|
45011
45011
|
}
|
|
45012
|
-
$
|
|
45013
|
-
$
|
|
45014
|
-
$
|
|
45012
|
+
_r$1.defaultProps = Re$2;
|
|
45013
|
+
_r$1.setDefaultProps = Kk;
|
|
45014
|
+
_r$1.currentInput = rt$2;
|
|
45015
45015
|
Object.assign({}, rf$1, {
|
|
45016
45016
|
effect: function(e) {
|
|
45017
45017
|
var n = e.state, r = {
|
|
@@ -45029,7 +45029,7 @@ Actual: ` + p3.attribValue
|
|
|
45029
45029
|
Object.assign(n.elements.popper.style, r.popper), n.styles = r, n.elements.arrow && Object.assign(n.elements.arrow.style, r.arrow);
|
|
45030
45030
|
}
|
|
45031
45031
|
});
|
|
45032
|
-
$
|
|
45032
|
+
_r$1.setDefaultProps({
|
|
45033
45033
|
render: xf$1
|
|
45034
45034
|
});
|
|
45035
45035
|
const Zk = (t, e) => {
|
|
@@ -45130,7 +45130,7 @@ Actual: ` + p3.attribValue
|
|
|
45130
45130
|
const n22 = e22.key === "ArrowDown" || e22.key === "ArrowUp";
|
|
45131
45131
|
this.tippyInstance.state.isVisible && n22 && (e22.preventDefault(), this.popover.firstChild.focus());
|
|
45132
45132
|
});
|
|
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 = $
|
|
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, {
|
|
45134
45134
|
trigger: "manual",
|
|
45135
45135
|
placement: "bottom-start",
|
|
45136
45136
|
interactive: true,
|
|
@@ -45243,7 +45243,7 @@ Actual: ` + p3.attribValue
|
|
|
45243
45243
|
apply(s, a, l, c3) {
|
|
45244
45244
|
const d = s.getMeta(_t$1);
|
|
45245
45245
|
d && d.isReadyToInit && (n = true, o = d.isReadyToInit);
|
|
45246
|
-
const u = s.getMeta(
|
|
45246
|
+
const u = s.getMeta(Bo$1);
|
|
45247
45247
|
if (u) {
|
|
45248
45248
|
if (u.type === "remove") {
|
|
45249
45249
|
const h3 = u.pos, m = t.view.domAtPos(h3).node.querySelector("img");
|
|
@@ -45335,57 +45335,57 @@ Actual: ` + p3.attribValue
|
|
|
45335
45335
|
const o = [], { pageSize: i3, pageMargins: s } = n.converter.pageStyles, a = i3.height * 96;
|
|
45336
45336
|
n.options.scale;
|
|
45337
45337
|
let l = 1, c3 = a, d = null, u = null;
|
|
45338
|
-
const f = Yt$2(l, "headerIds", n), p3 =
|
|
45339
|
-
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" }));
|
|
45340
45340
|
const m = Yt$2(l, "footerIds", n), g = Mi$1(s, i3, r, m);
|
|
45341
45341
|
c3 -= p3.headerHeight + g.footerHeight;
|
|
45342
45342
|
let b = e?.coordsAtPos(t.content.size);
|
|
45343
45343
|
if (!b) return [];
|
|
45344
45344
|
t.descendants((V, $3) => {
|
|
45345
|
-
let
|
|
45345
|
+
let z3 = V, H3 = $3;
|
|
45346
45346
|
if (b = e?.coordsAtPos(H3), !b) return;
|
|
45347
|
-
let ie2 = b.bottom > c3, ae2 =
|
|
45348
|
-
if (
|
|
45349
|
-
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);
|
|
45350
45350
|
o.pop();
|
|
45351
|
-
const he2 =
|
|
45352
|
-
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" }));
|
|
45353
45353
|
}
|
|
45354
|
-
if (
|
|
45355
|
-
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);
|
|
45356
45356
|
if (Q3) {
|
|
45357
45357
|
const { definition: pe2 = {} } = Q3, { pageBreakBefore: he2, pageBreakAfter: Te2 } = pe2.attrs || {};
|
|
45358
45358
|
(he2 || Te2) && (ie2 = true);
|
|
45359
45359
|
}
|
|
45360
45360
|
}
|
|
45361
45361
|
if (ae2 || ie2) {
|
|
45362
|
-
const se2 = e.state.doc.resolve(H3), Q3 =
|
|
45363
|
-
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);
|
|
45364
45364
|
const {
|
|
45365
45365
|
top: pe2,
|
|
45366
45366
|
bottom: he2,
|
|
45367
45367
|
pos: Te2
|
|
45368
|
-
} = px(e, H3, c3), Be = Yt$2(l, "footerIds", n,
|
|
45368
|
+
} = px(e, H3, c3), Be = Yt$2(l, "footerIds", n, z3);
|
|
45369
45369
|
l++;
|
|
45370
45370
|
const dt2 = Yt$2(l, "headerIds", n);
|
|
45371
|
-
u =
|
|
45372
|
-
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" });
|
|
45373
45373
|
o.push(Xe2);
|
|
45374
|
-
const Ct2 =
|
|
45375
|
-
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);
|
|
45376
45376
|
}
|
|
45377
45377
|
});
|
|
45378
45378
|
let w = t.content.size;
|
|
45379
45379
|
const x3 = e.coordsAtPos(w), y = Yt$2(l, "headerIds", n), S = Yt$2(l, "footerIds", n);
|
|
45380
|
-
u =
|
|
45381
|
-
const k = c3 - x3.bottom, { node: M } = ac$1(k),
|
|
45382
|
-
o.push(
|
|
45383
|
-
const C3 =
|
|
45384
|
-
return o.push(
|
|
45385
|
-
const
|
|
45386
|
-
if (
|
|
45387
|
-
const H3 =
|
|
45388
|
-
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;
|
|
45389
45389
|
}
|
|
45390
45390
|
}), o;
|
|
45391
45391
|
}
|
|
@@ -45393,7 +45393,7 @@ Actual: ` + p3.attribValue
|
|
|
45393
45393
|
const e = document.createElement("div");
|
|
45394
45394
|
return e.className = "pagination-page-spacer", e.style.userSelect = "none", e.style.pointerEvents = "none", e.style.height = t + "px", { nodeHeight: t, node: e };
|
|
45395
45395
|
}
|
|
45396
|
-
function
|
|
45396
|
+
function lo$2(t, e, n, r) {
|
|
45397
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;
|
|
45398
45398
|
let d = o?.sectionContainer?.cloneNode(true);
|
|
45399
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", {
|
|
@@ -45415,7 +45415,7 @@ Actual: ` + p3.attribValue
|
|
|
45415
45415
|
footerHeight: l + a
|
|
45416
45416
|
};
|
|
45417
45417
|
}
|
|
45418
|
-
function
|
|
45418
|
+
function co$2({ editor: t, header: e, footer: n, footerBottom: r = null, isFirstHeader: o, isLastFooter: i3 }) {
|
|
45419
45419
|
const { pageSize: s, pageMargins: a } = t.converter.pageStyles;
|
|
45420
45420
|
let l = 0;
|
|
45421
45421
|
const c3 = document.createElement("div");
|
|
@@ -45668,7 +45668,7 @@ Actual: ` + p3.attribValue
|
|
|
45668
45668
|
if (!a)
|
|
45669
45669
|
break;
|
|
45670
45670
|
let l = a.from == o.from && a.to == o.to ? "ProseMirror-active-search-match" : "ProseMirror-search-match";
|
|
45671
|
-
r.push(
|
|
45671
|
+
r.push(F$1.inline(a.from, a.to, { class: l })), i3 = a.to;
|
|
45672
45672
|
}
|
|
45673
45673
|
return P.create(t.doc, r);
|
|
45674
45674
|
}
|
|
@@ -45709,8 +45709,29 @@ Actual: ` + p3.attribValue
|
|
|
45709
45709
|
return t.setMeta(dr$1, { query: e, range: n });
|
|
45710
45710
|
}
|
|
45711
45711
|
const xx = Z$1.create({
|
|
45712
|
+
addStorage() {
|
|
45713
|
+
return {
|
|
45714
|
+
searchResults: []
|
|
45715
|
+
};
|
|
45716
|
+
},
|
|
45712
45717
|
addPmPlugins() {
|
|
45713
|
-
|
|
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];
|
|
45714
45735
|
},
|
|
45715
45736
|
addCommands() {
|
|
45716
45737
|
return {
|
|
@@ -45720,29 +45741,30 @@ Actual: ` + p3.attribValue
|
|
|
45720
45741
|
const o = r.children.find((s) => s.local), i3 = r.children[0] + o.local[0].from + 1;
|
|
45721
45742
|
e.view.domAtPos(i3)?.node?.scrollIntoView(true);
|
|
45722
45743
|
},
|
|
45723
|
-
search: (t) => ({ state: e,
|
|
45724
|
-
let
|
|
45725
|
-
const
|
|
45744
|
+
search: (t) => ({ state: e, editor: n, dispatch: r }) => {
|
|
45745
|
+
let o, i3 = false, s = false;
|
|
45746
|
+
const a = false;
|
|
45726
45747
|
if (t instanceof RegExp)
|
|
45727
|
-
|
|
45748
|
+
s = true, o = t.source, i3 = !t.flags.includes("i");
|
|
45728
45749
|
else if (typeof t == "string" && /^\/(.+)\/([gimsuy]*)$/.test(t)) {
|
|
45729
|
-
const [,
|
|
45730
|
-
|
|
45750
|
+
const [, h3, m] = t.match(/^\/(.+)\/([gimsuy]*)$/);
|
|
45751
|
+
s = true, o = h3, i3 = !m.includes("i");
|
|
45731
45752
|
} else
|
|
45732
|
-
|
|
45733
|
-
const
|
|
45734
|
-
search:
|
|
45735
|
-
caseSensitive:
|
|
45736
|
-
regexp:
|
|
45737
|
-
wholeWord:
|
|
45738
|
-
}),
|
|
45739
|
-
|
|
45740
|
-
const
|
|
45741
|
-
|
|
45742
|
-
|
|
45743
|
-
|
|
45744
|
-
|
|
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()
|
|
45745
45766
|
}));
|
|
45767
|
+
return this.storage.searchResults = p3, p3;
|
|
45746
45768
|
},
|
|
45747
45769
|
goToSearchResult: (t) => ({ state: e, dispatch: n, editor: r }) => {
|
|
45748
45770
|
const { from: o, to: i3 } = t;
|
|
@@ -55034,7 +55056,7 @@ ${t}
|
|
|
55034
55056
|
pos: s.selection.from,
|
|
55035
55057
|
id: a
|
|
55036
55058
|
};
|
|
55037
|
-
s.setMeta(
|
|
55059
|
+
s.setMeta(Bo$1, d), l.dispatch(s), n(o).then(
|
|
55038
55060
|
(u) => {
|
|
55039
55061
|
let b = o.name.replace(" ", "_"), v = Fx(l.state, a);
|
|
55040
55062
|
if (v == null)
|
|
@@ -55044,12 +55066,12 @@ ${t}
|
|
|
55044
55066
|
size: { width: i3, height: r }
|
|
55045
55067
|
});
|
|
55046
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(
|
|
55047
|
-
l.state.tr.replaceWith(v, v, g).setMeta(
|
|
55069
|
+
l.state.tr.replaceWith(v, v, g).setMeta(Bo$1, y)
|
|
55048
55070
|
);
|
|
55049
55071
|
},
|
|
55050
55072
|
() => {
|
|
55051
55073
|
let u = { type: "remove", id: a };
|
|
55052
|
-
l.dispatch(s.setMeta(
|
|
55074
|
+
l.dispatch(s.setMeta(Bo$1, u));
|
|
55053
55075
|
}
|
|
55054
55076
|
);
|
|
55055
55077
|
};
|
|
@@ -70645,7 +70667,7 @@ ${style2}
|
|
|
70645
70667
|
this.config.colors = shuffleArray(this.config.colors);
|
|
70646
70668
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
70647
70669
|
this.colorIndex = 0;
|
|
70648
|
-
this.version = "0.11.
|
|
70670
|
+
this.version = "0.11.20";
|
|
70649
70671
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
70650
70672
|
this.superdocId = config.superdocId || v4();
|
|
70651
70673
|
this.colors = this.config.colors;
|