@harbour-enterprises/superdoc 0.11.48 → 0.11.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{super-editor.es-URZC9eM6.es.js → super-editor.es-DBvXzImv.es.js} +4078 -4028
- package/dist/chunks/{super-editor.es-QPtPXoJ-.cjs → super-editor.es-DjwFuw3M.cjs} +54 -54
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CmRoa_i9.js → converter-DrDJMPH3.js} +695 -660
- package/dist/super-editor/chunks/{docx-zipper-Bl-uAN1u.js → docx-zipper-CF-c9JzK.js} +749 -763
- package/dist/super-editor/chunks/{editor-BpfdiU4_.js → editor-DhH2OnzT.js} +338 -308
- package/dist/super-editor/chunks/{toolbar-7GhL4qam.js → toolbar-BqG8Bd5M.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/DocxZipper.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/docxImporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts +9 -0
- package/dist/super-editor/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts.map +1 -0
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/index.d.ts +2 -1
- package/dist/super-editor/extensions/index.d.ts.map +1 -1
- package/dist/super-editor/extensions/structured-content/index.d.ts +2 -0
- package/dist/super-editor/extensions/structured-content/index.d.ts.map +1 -0
- package/dist/super-editor/extensions/structured-content/structured-content.d.ts +2 -0
- package/dist/super-editor/extensions/structured-content/structured-content.d.ts.map +1 -0
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/tests/import/sdt-nodes/structuredDocumentNodeTests.test.d.ts +2 -0
- package/dist/super-editor/tests/import/sdt-nodes/structuredDocumentNodeTests.test.d.ts.map +1 -0
- 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 +4 -4
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +2454 -2404
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,9 +7,9 @@ var L = (t, e, n) => zf(t, typeof e != "symbol" ? e + "" : e, n), Qo = (t, e, n)
|
|
|
7
7
|
var Qe = (t, e, n) => (Qo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? ua("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), ei = (t, e, n, r) => (Qo(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), E = (t, e, n) => (Qo(t, e, "access private method"), n);
|
|
8
8
|
import * as N from "yjs";
|
|
9
9
|
import { UndoManager as _f, Item as $f, ContentType as Vf, Text as Hf, XmlElement as jf } from "yjs";
|
|
10
|
-
import { P as X, a as J, M as hr, c as Y, i as Wf, S as gc, b as wt, l as Er, A as Pr, d as jt, j as yc, N as z, r as bc, e as ee, T as j, F as
|
|
10
|
+
import { P as X, a as J, M as hr, c as Y, i as Wf, S as gc, b as wt, l as Er, A as Pr, d as jt, j as yc, N as z, r as bc, e as ee, T as j, F as D, R as ln, f as W, o as mr, g as fa, D as rn, h as Vt, k as Ei, m as wc, n as Uf, p as qf, q as xn, s as So, t as Kf, u as Wn, v as Xf, w as vc, x as oe, B as Jf, y as Yf, z as de, C as Ve, E as Ir, G as Se, H as fo, I as kc, J as Sn, K as ti, L as ni, O as ri, Q as po, U as Rt, V as $o, W as Gf, X as pa, Y as ha, Z as Zf, _ as Qf, $ as ep } from "./converter-DrDJMPH3.js";
|
|
11
11
|
import { ref as ma, computed as tp, createElementBlock as Xt, openBlock as Jt, withModifiers as oi, Fragment as np, renderList as rp, normalizeClass as op, createCommentVNode as ga, toDisplayString as ii, createElementVNode as ip, createApp as sp } from "vue";
|
|
12
|
-
import { D as ya } from "./docx-zipper-
|
|
12
|
+
import { D as ya } from "./docx-zipper-CF-c9JzK.js";
|
|
13
13
|
function Vo(t) {
|
|
14
14
|
const { from: e, to: n, empty: r } = t.selection, o = [];
|
|
15
15
|
return r ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(e, n, (i) => {
|
|
@@ -415,11 +415,11 @@ function Sc(t, e) {
|
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
417
|
const Mc = Sc(!1, !0), Cc = Sc(!0, !0);
|
|
418
|
-
function
|
|
418
|
+
function Wx(t) {
|
|
419
419
|
let e = vt.getState(t);
|
|
420
420
|
return e ? e.done.eventCount : 0;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Ux(t) {
|
|
423
423
|
let e = vt.getState(t);
|
|
424
424
|
return e ? e.undone.eventCount : 0;
|
|
425
425
|
}
|
|
@@ -566,7 +566,7 @@ function Rr(t, e) {
|
|
|
566
566
|
return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
|
|
567
567
|
}
|
|
568
568
|
var Vn, Oc, Tc;
|
|
569
|
-
class
|
|
569
|
+
class T {
|
|
570
570
|
/**
|
|
571
571
|
* Get a list of all attributes defined in the extensions.
|
|
572
572
|
* @param extensions List of all extensions.
|
|
@@ -744,7 +744,7 @@ Vn = new WeakSet(), Oc = function(e, n) {
|
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
return r;
|
|
747
|
-
}, ft(
|
|
747
|
+
}, ft(T, Vn);
|
|
748
748
|
function Pi(t) {
|
|
749
749
|
const e = Object.entries(t).filter(([n, r]) => n === "attrs" && Wf(r) ? !1 : r != null);
|
|
750
750
|
return Object.fromEntries(e);
|
|
@@ -759,7 +759,7 @@ const pr = class pr {
|
|
|
759
759
|
*/
|
|
760
760
|
static createSchemaByExtensions(e, n) {
|
|
761
761
|
var c, d;
|
|
762
|
-
const r = e.filter((u) => u.type === "node"), o = e.filter((u) => u.type === "mark"), i = r.find((u) => I(u, "topNode"))?.name, s =
|
|
762
|
+
const r = e.filter((u) => u.type === "node"), o = e.filter((u) => u.type === "mark"), i = r.find((u) => I(u, "topNode"))?.name, s = T.getAttributesFromExtensions(e), a = E(c = pr, Hn, Dc).call(c, r, s, n), l = E(d = pr, Hn, Nc).call(d, o, s, n);
|
|
763
763
|
return new gc({ topNode: i, nodes: a, marks: l });
|
|
764
764
|
}
|
|
765
765
|
};
|
|
@@ -792,11 +792,11 @@ Hn = new WeakSet(), Dc = function(e, n, r) {
|
|
|
792
792
|
attrs: l,
|
|
793
793
|
...c
|
|
794
794
|
}), u = Y(I(i, "parseDOM", a));
|
|
795
|
-
u && (d.parseDOM = u.map((h) =>
|
|
795
|
+
u && (d.parseDOM = u.map((h) => T.insertExtensionAttrsToParseRule(h, s)));
|
|
796
796
|
const f = I(i, "renderDOM", a);
|
|
797
797
|
f && (d.toDOM = (h) => f({
|
|
798
798
|
node: h,
|
|
799
|
-
htmlAttributes:
|
|
799
|
+
htmlAttributes: T.getAttributesToRender(h, s)
|
|
800
800
|
}));
|
|
801
801
|
const p = I(i, "renderText", a);
|
|
802
802
|
return p && (d.toText = p), [i.name, d];
|
|
@@ -819,11 +819,11 @@ Hn = new WeakSet(), Dc = function(e, n, r) {
|
|
|
819
819
|
code: Y(I(i, "code", a)),
|
|
820
820
|
attrs: l
|
|
821
821
|
}), d = Y(I(i, "parseDOM", a));
|
|
822
|
-
d && (c.parseDOM = d.map((f) =>
|
|
822
|
+
d && (c.parseDOM = d.map((f) => T.insertExtensionAttrsToParseRule(f, s)));
|
|
823
823
|
const u = I(i, "renderDOM", a);
|
|
824
824
|
return u && (c.toDOM = (f) => u({
|
|
825
825
|
mark: f,
|
|
826
|
-
htmlAttributes:
|
|
826
|
+
htmlAttributes: T.getAttributesToRender(f, s)
|
|
827
827
|
})), [i.name, c];
|
|
828
828
|
});
|
|
829
829
|
return Object.fromEntries(o);
|
|
@@ -1179,10 +1179,10 @@ function $c(t, e, n, r) {
|
|
|
1179
1179
|
let c = !l && e.parent.canReplace(e.index(), e.index() + 1);
|
|
1180
1180
|
if (c && (s = (a = o.contentMatchAt(o.childCount)).findWrapping(i.type)) && a.matchType(s[0] || i.type).validEnd) {
|
|
1181
1181
|
if (n) {
|
|
1182
|
-
let p = e.pos + i.nodeSize, h =
|
|
1182
|
+
let p = e.pos + i.nodeSize, h = D.empty;
|
|
1183
1183
|
for (let b = s.length - 1; b >= 0; b--)
|
|
1184
|
-
h =
|
|
1185
|
-
h =
|
|
1184
|
+
h = D.from(s[b].create(null, h));
|
|
1185
|
+
h = D.from(o.copy(h));
|
|
1186
1186
|
let m = t.tr.step(new ln(e.pos - 1, p, e.pos, p, new W(h, 1, 0), s.length, !0)), g = m.doc.resolve(p + 2 * s.length);
|
|
1187
1187
|
g.nodeAfter && g.nodeAfter.type == o.type && jt(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
|
|
1188
1188
|
}
|
|
@@ -1200,9 +1200,9 @@ function $c(t, e, n, r) {
|
|
|
1200
1200
|
g++;
|
|
1201
1201
|
if (p.canReplace(p.childCount, p.childCount, m.content)) {
|
|
1202
1202
|
if (n) {
|
|
1203
|
-
let b =
|
|
1203
|
+
let b = D.empty;
|
|
1204
1204
|
for (let x = h.length - 1; x >= 0; x--)
|
|
1205
|
-
b =
|
|
1205
|
+
b = D.from(h[x].copy(b));
|
|
1206
1206
|
let w = t.tr.step(new ln(e.pos - h.length, e.pos + i.nodeSize, e.pos + g, e.pos + i.nodeSize - g, new W(b, h.length, 0), 0, !0));
|
|
1207
1207
|
n(w.scrollIntoView());
|
|
1208
1208
|
}
|
|
@@ -1279,7 +1279,7 @@ const xa = (t, e) => {
|
|
|
1279
1279
|
t.tr.ensureMarks(r);
|
|
1280
1280
|
}
|
|
1281
1281
|
}, Rp = ({ keepMarks: t = !0 } = {}) => (e) => {
|
|
1282
|
-
const { tr: n, state: r, dispatch: o, editor: i } = e, { selection: s, doc: a } = n, { $from: l, $to: c } = s, d = i.extensionService.attributes, u =
|
|
1282
|
+
const { tr: n, state: r, dispatch: o, editor: i } = e, { selection: s, doc: a } = n, { $from: l, $to: c } = s, d = i.extensionService.attributes, u = T.getSplittedAttributes(d, l.node().type.name, l.node().attrs);
|
|
1283
1283
|
if (s instanceof z && s.node.isBlock)
|
|
1284
1284
|
return !l.parentOffset || !wt(a, l.pos) ? !1 : (o && (t && xa(r, i.extensionService.splittableMarks), n.split(l.pos).scrollIntoView()), !0);
|
|
1285
1285
|
if (!l.parent.isBlock) return !1;
|
|
@@ -1320,7 +1320,7 @@ const $p = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
|
1320
1320
|
const { selection: i } = n, { empty: s, ranges: a } = i, l = St(t, r.schema);
|
|
1321
1321
|
if (o)
|
|
1322
1322
|
if (s) {
|
|
1323
|
-
const c =
|
|
1323
|
+
const c = T.getMarkAttributes(r, l);
|
|
1324
1324
|
n.addStoredMark(
|
|
1325
1325
|
l.create({
|
|
1326
1326
|
...c,
|
|
@@ -1497,7 +1497,7 @@ function Li(t, e, n) {
|
|
|
1497
1497
|
if (r)
|
|
1498
1498
|
try {
|
|
1499
1499
|
if (Array.isArray(t) && t.length > 0)
|
|
1500
|
-
return
|
|
1500
|
+
return D.fromArray(t.map((a) => e.nodeFromJSON(a)));
|
|
1501
1501
|
const s = e.nodeFromJSON(t);
|
|
1502
1502
|
return n.errorOnInvalidContent && s.check(), s;
|
|
1503
1503
|
} catch (i) {
|
|
@@ -1629,9 +1629,9 @@ function fh(t, e, n, r = null) {
|
|
|
1629
1629
|
return a ? (t && ph(t, e, a, o, n), !0) : !1;
|
|
1630
1630
|
}
|
|
1631
1631
|
function ph(t, e, n, r, o) {
|
|
1632
|
-
let i =
|
|
1632
|
+
let i = D.empty;
|
|
1633
1633
|
for (let d = n.length - 1; d >= 0; d--)
|
|
1634
|
-
i =
|
|
1634
|
+
i = D.from(n[d].type.create(n[d].attrs, i));
|
|
1635
1635
|
t.step(new ln(e.start - (r ? 2 : 0), e.end, e.start, e.end, new W(i, 0, 0), n.length, !0));
|
|
1636
1636
|
let s = 0;
|
|
1637
1637
|
for (let d = 0; d < n.length; d++)
|
|
@@ -1649,7 +1649,7 @@ function hh(t) {
|
|
|
1649
1649
|
}
|
|
1650
1650
|
function mh(t, e, n, r) {
|
|
1651
1651
|
let o = t.tr, i = r.end, s = r.$to.end(r.depth);
|
|
1652
|
-
i < s && (o.step(new ln(i - 1, s, i, s, new W(
|
|
1652
|
+
i < s && (o.step(new ln(i - 1, s, i, s, new W(D.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ei(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
|
|
1653
1653
|
const a = Er(r);
|
|
1654
1654
|
if (a == null)
|
|
1655
1655
|
return !1;
|
|
@@ -1665,10 +1665,10 @@ function gh(t, e, n) {
|
|
|
1665
1665
|
if (r.mapping.map(n.end) != n.start + i.nodeAfter.nodeSize)
|
|
1666
1666
|
return !1;
|
|
1667
1667
|
let a = n.startIndex == 0, l = n.endIndex == o.childCount, c = i.node(-1), d = i.index(-1);
|
|
1668
|
-
if (!c.canReplace(d + (a ? 0 : 1), d + 1, s.content.append(l ?
|
|
1668
|
+
if (!c.canReplace(d + (a ? 0 : 1), d + 1, s.content.append(l ? D.empty : D.from(o))))
|
|
1669
1669
|
return !1;
|
|
1670
1670
|
let u = i.pos, f = u + s.nodeSize;
|
|
1671
|
-
return r.step(new ln(u - (a ? 1 : 0), f + (l ? 1 : 0), u + 1, f - 1, new W((a ?
|
|
1671
|
+
return r.step(new ln(u - (a ? 1 : 0), f + (l ? 1 : 0), u + 1, f - 1, new W((a ? D.empty : D.from(o.copy(D.empty))).append(l ? D.empty : D.from(o.copy(D.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
|
|
1672
1672
|
}
|
|
1673
1673
|
function yh(t) {
|
|
1674
1674
|
return function(e, n) {
|
|
@@ -1682,7 +1682,7 @@ function yh(t) {
|
|
|
1682
1682
|
if (l.type != t)
|
|
1683
1683
|
return !1;
|
|
1684
1684
|
if (n) {
|
|
1685
|
-
let c = l.lastChild && l.lastChild.type == a.type, d =
|
|
1685
|
+
let c = l.lastChild && l.lastChild.type == a.type, d = D.from(c ? t.create() : null), u = new W(D.from(t.create(null, D.from(a.type.create(null, d)))), c ? 3 : 1, 0), f = i.start, p = i.end;
|
|
1686
1686
|
n(e.tr.step(new ln(f - (c ? 3 : 1), p, f, p, u, 1, !0)).scrollIntoView());
|
|
1687
1687
|
}
|
|
1688
1688
|
return !0;
|
|
@@ -2926,16 +2926,16 @@ const bh = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
2926
2926
|
a.node(-3).type !== s || a.index(-2) !== a.node(-2).childCount - 1)
|
|
2927
2927
|
return !1;
|
|
2928
2928
|
if (o) {
|
|
2929
|
-
let g =
|
|
2929
|
+
let g = D.empty;
|
|
2930
2930
|
const b = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
|
|
2931
2931
|
for (let C = a.depth - b; C >= a.depth - 3; C--)
|
|
2932
|
-
g =
|
|
2933
|
-
const w = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, x =
|
|
2932
|
+
g = D.from(a.node(C).copy(g));
|
|
2933
|
+
const w = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, x = T.getSplittedAttributes(
|
|
2934
2934
|
u,
|
|
2935
2935
|
a.node().type.name,
|
|
2936
2936
|
a.node().attrs
|
|
2937
2937
|
), y = s.contentMatch.defaultType?.createAndFill(x) || void 0;
|
|
2938
|
-
g = g.append(
|
|
2938
|
+
g = g.append(D.from(s.createAndFill(null, y) || void 0));
|
|
2939
2939
|
const S = a.before(a.depth - (b - 1));
|
|
2940
2940
|
n.replace(S, a.after(-w), new W(g, 4 - b, 0));
|
|
2941
2941
|
let k = -1;
|
|
@@ -2946,7 +2946,7 @@ const bh = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
2946
2946
|
}
|
|
2947
2947
|
return !0;
|
|
2948
2948
|
}
|
|
2949
|
-
const f = l.pos === a.end() ? d.contentMatchAt(0).defaultType : null, p =
|
|
2949
|
+
const f = l.pos === a.end() ? d.contentMatchAt(0).defaultType : null, p = T.getSplittedAttributes(u, d.type.name, d.attrs), h = T.getSplittedAttributes(
|
|
2950
2950
|
u,
|
|
2951
2951
|
a.node().type.name,
|
|
2952
2952
|
a.node().attrs
|
|
@@ -4162,7 +4162,7 @@ class Ft extends Br {
|
|
|
4162
4162
|
break;
|
|
4163
4163
|
}
|
|
4164
4164
|
}
|
|
4165
|
-
e.contentElement || (e.getContent = () =>
|
|
4165
|
+
e.contentElement || (e.getContent = () => D.empty);
|
|
4166
4166
|
}
|
|
4167
4167
|
return e;
|
|
4168
4168
|
}
|
|
@@ -5109,7 +5109,7 @@ function pd(t, e, n, r, o) {
|
|
|
5109
5109
|
if (t.someProp("transformPastedText", (f) => {
|
|
5110
5110
|
e = f(e, i || r, t);
|
|
5111
5111
|
}), i)
|
|
5112
|
-
return e ? new W(
|
|
5112
|
+
return e ? new W(D.from(t.state.schema.text(e.replace(/\r\n?/g, `
|
|
5113
5113
|
`))), 0, 0) : W.empty;
|
|
5114
5114
|
let u = t.someProp("clipboardTextParser", (f) => f(e, o, r, t));
|
|
5115
5115
|
if (u)
|
|
@@ -5175,13 +5175,13 @@ function Cm(t, e) {
|
|
|
5175
5175
|
s.push(d), o = o.matchType(d.type), i = l;
|
|
5176
5176
|
}
|
|
5177
5177
|
}), s)
|
|
5178
|
-
return
|
|
5178
|
+
return D.from(s);
|
|
5179
5179
|
}
|
|
5180
5180
|
return t;
|
|
5181
5181
|
}
|
|
5182
5182
|
function hd(t, e, n = 0) {
|
|
5183
5183
|
for (let r = e.length - 1; r >= n; r--)
|
|
5184
|
-
t = e[r].create(null,
|
|
5184
|
+
t = e[r].create(null, D.from(t));
|
|
5185
5185
|
return t;
|
|
5186
5186
|
}
|
|
5187
5187
|
function md(t, e, n, r, o) {
|
|
@@ -5190,18 +5190,18 @@ function md(t, e, n, r, o) {
|
|
|
5190
5190
|
if (i)
|
|
5191
5191
|
return r.copy(r.content.replaceChild(r.childCount - 1, i));
|
|
5192
5192
|
if (r.contentMatchAt(r.childCount).matchType(o == t.length - 1 ? n.type : t[o + 1]))
|
|
5193
|
-
return r.copy(r.content.append(
|
|
5193
|
+
return r.copy(r.content.append(D.from(hd(n, t, o + 1))));
|
|
5194
5194
|
}
|
|
5195
5195
|
}
|
|
5196
5196
|
function gd(t, e) {
|
|
5197
5197
|
if (e == 0)
|
|
5198
5198
|
return t;
|
|
5199
|
-
let n = t.content.replaceChild(t.childCount - 1, gd(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(
|
|
5199
|
+
let n = t.content.replaceChild(t.childCount - 1, gd(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(D.empty, !0);
|
|
5200
5200
|
return t.copy(n.append(r));
|
|
5201
5201
|
}
|
|
5202
5202
|
function Ui(t, e, n, r, o, i) {
|
|
5203
5203
|
let s = e < 0 ? t.firstChild : t.lastChild, a = s.content;
|
|
5204
|
-
return t.childCount > 1 && (i = 0), o < r - 1 && (a = Ui(a, e, n, r, o + 1, i)), o >= n && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, i <= o).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(
|
|
5204
|
+
return t.childCount > 1 && (i = 0), o < r - 1 && (a = Ui(a, e, n, r, o + 1, i)), o >= n && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, i <= o).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(D.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, s.copy(a));
|
|
5205
5205
|
}
|
|
5206
5206
|
function ja(t, e, n) {
|
|
5207
5207
|
return e < t.openStart && (t = new W(Ui(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new W(Ui(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
|
|
@@ -5256,7 +5256,7 @@ function Dm(t, e) {
|
|
|
5256
5256
|
let l = n.nodes[r[a]];
|
|
5257
5257
|
if (!l || l.hasRequiredAttrs())
|
|
5258
5258
|
break;
|
|
5259
|
-
o =
|
|
5259
|
+
o = D.from(l.create(r[a + 1], o)), i++, s++;
|
|
5260
5260
|
}
|
|
5261
5261
|
return new W(o, i, s);
|
|
5262
5262
|
}
|
|
@@ -6526,7 +6526,7 @@ function dg(t, e) {
|
|
|
6526
6526
|
let c = [];
|
|
6527
6527
|
for (let d = 0; d < e.childCount; d++)
|
|
6528
6528
|
c.push(l(e.child(d)));
|
|
6529
|
-
if (
|
|
6529
|
+
if (D.from(c).eq(t))
|
|
6530
6530
|
return { mark: a, type: s };
|
|
6531
6531
|
}
|
|
6532
6532
|
function ug(t, e, n, r, o) {
|
|
@@ -7512,7 +7512,7 @@ class Ny {
|
|
|
7512
7512
|
).filter((r) => r !== null), n = this._tr.replace(
|
|
7513
7513
|
0,
|
|
7514
7514
|
this.prosemirrorView.state.doc.content.size,
|
|
7515
|
-
new W(
|
|
7515
|
+
new W(D.from(e), 0, 0)
|
|
7516
7516
|
);
|
|
7517
7517
|
n.setMeta(te, { snapshot: null, prevSnapshot: null }), this.prosemirrorView.dispatch(n);
|
|
7518
7518
|
});
|
|
@@ -7529,7 +7529,7 @@ class Ny {
|
|
|
7529
7529
|
).filter((o) => o !== null), r = this._tr.replace(
|
|
7530
7530
|
0,
|
|
7531
7531
|
this.prosemirrorView.state.doc.content.size,
|
|
7532
|
-
new W(
|
|
7532
|
+
new W(D.from(n), 0, 0)
|
|
7533
7533
|
);
|
|
7534
7534
|
if (e) {
|
|
7535
7535
|
const o = zt(Rn(e.anchor, 0), r.doc.content.size), i = zt(Rn(e.head, 0), r.doc.content.size);
|
|
@@ -7594,7 +7594,7 @@ class Ny {
|
|
|
7594
7594
|
) : null).filter((u) => u !== null), d = this._tr.replace(
|
|
7595
7595
|
0,
|
|
7596
7596
|
this.prosemirrorView.state.doc.content.size,
|
|
7597
|
-
new W(
|
|
7597
|
+
new W(D.from(c), 0, 0)
|
|
7598
7598
|
);
|
|
7599
7599
|
this.prosemirrorView.dispatch(
|
|
7600
7600
|
d.setMeta(te, { isChangeOrigin: !0 })
|
|
@@ -7640,7 +7640,7 @@ class Ny {
|
|
|
7640
7640
|
let s = this._tr.replace(
|
|
7641
7641
|
0,
|
|
7642
7642
|
this.prosemirrorView.state.doc.content.size,
|
|
7643
|
-
new W(
|
|
7643
|
+
new W(D.from(i), 0, 0)
|
|
7644
7644
|
);
|
|
7645
7645
|
Dy(s, this.beforeTransactionSelection, this), s = s.setMeta(te, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof N.UndoManager }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && s.scrollIntoView(), this.prosemirrorView.dispatch(s);
|
|
7646
7646
|
});
|
|
@@ -8092,7 +8092,7 @@ const zy = () => {
|
|
|
8092
8092
|
Cy()
|
|
8093
8093
|
)
|
|
8094
8094
|
).filter((r) => r !== null);
|
|
8095
|
-
return
|
|
8095
|
+
return D.fromArray(n);
|
|
8096
8096
|
}, Hy = (t, e) => e.topNodeType.create(null, Vy(t, e)), jy = (t, e, n) => t !== e, Wy = (t) => {
|
|
8097
8097
|
const e = document.createElement("span");
|
|
8098
8098
|
e.classList.add("ProseMirror-yjs-cursor"), e.setAttribute("style", `border-color: ${t.color}`);
|
|
@@ -8540,7 +8540,7 @@ const fb = (t, e) => {
|
|
|
8540
8540
|
const a = r.getMeta("applyInputRules");
|
|
8541
8541
|
return !!a && setTimeout(() => {
|
|
8542
8542
|
let { text: c } = a;
|
|
8543
|
-
typeof c != "string" && (c = cb(
|
|
8543
|
+
typeof c != "string" && (c = cb(D.from(c), i.schema));
|
|
8544
8544
|
const { from: d } = a, u = d + c.length;
|
|
8545
8545
|
wi({
|
|
8546
8546
|
editor: t,
|
|
@@ -8660,7 +8660,7 @@ const On = class On {
|
|
|
8660
8660
|
* @returns Array of attributes.
|
|
8661
8661
|
*/
|
|
8662
8662
|
get attributes() {
|
|
8663
|
-
return
|
|
8663
|
+
return T.getAttributesFromExtensions(this.extensions);
|
|
8664
8664
|
}
|
|
8665
8665
|
/**
|
|
8666
8666
|
* Get all commands defined in the extensions.
|
|
@@ -8735,7 +8735,7 @@ const On = class On {
|
|
|
8735
8735
|
}, a = I(o, "addNodeView", s);
|
|
8736
8736
|
if (!a) return [];
|
|
8737
8737
|
const l = (c, d, u, f) => {
|
|
8738
|
-
const p =
|
|
8738
|
+
const p = T.getAttributesToRender(c, i);
|
|
8739
8739
|
return a()({
|
|
8740
8740
|
editor: e,
|
|
8741
8741
|
node: c,
|
|
@@ -9179,7 +9179,7 @@ const Xs = ({
|
|
|
9179
9179
|
editable: !1,
|
|
9180
9180
|
element: r,
|
|
9181
9181
|
content: e,
|
|
9182
|
-
extensions:
|
|
9182
|
+
extensions: zx(),
|
|
9183
9183
|
documentId: "sectionId"
|
|
9184
9184
|
});
|
|
9185
9185
|
c.on("create", () => {
|
|
@@ -9793,13 +9793,13 @@ const Jd = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
|
|
|
9793
9793
|
C.marks
|
|
9794
9794
|
);
|
|
9795
9795
|
});
|
|
9796
|
-
return c.create(S.attrs,
|
|
9796
|
+
return c.create(S.attrs, D.from(k), S.marks);
|
|
9797
9797
|
});
|
|
9798
|
-
return a.create(w.attrs,
|
|
9798
|
+
return a.create(w.attrs, D.from(y), w.marks);
|
|
9799
9799
|
};
|
|
9800
9800
|
for (let w = h - 1; w >= 0; w--) {
|
|
9801
|
-
const x = n.mapping.map(p) + 1, y = d.content.content.map((k) => m(k, w)), S = s.create(d.attrs,
|
|
9802
|
-
n.insert(x,
|
|
9801
|
+
const x = n.mapping.map(p) + 1, y = d.content.content.map((k) => m(k, w)), S = s.create(d.attrs, D.from(y), d.marks);
|
|
9802
|
+
n.insert(x, D.from(S));
|
|
9803
9803
|
}
|
|
9804
9804
|
const g = n.mapping.map(f), b = g + d.nodeSize;
|
|
9805
9805
|
n.delete(g - 1, b + 1);
|
|
@@ -10235,7 +10235,7 @@ const ca = class ca extends Qy {
|
|
|
10235
10235
|
* editor.getAttributes('textStyle').color
|
|
10236
10236
|
*/
|
|
10237
10237
|
getAttributes(n) {
|
|
10238
|
-
return
|
|
10238
|
+
return T.getAttributes(this.state, n);
|
|
10239
10239
|
}
|
|
10240
10240
|
/**
|
|
10241
10241
|
* Returns if the currently selected node or mark is active.
|
|
@@ -10364,7 +10364,7 @@ const ca = class ca extends Qy {
|
|
|
10364
10364
|
* @returns {Object | void} Migration results
|
|
10365
10365
|
*/
|
|
10366
10366
|
processCollaborationMigrations() {
|
|
10367
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
10367
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.49"), !this.options.ydoc) return;
|
|
10368
10368
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
10369
10369
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
10370
10370
|
const o = hl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
|
|
@@ -10476,7 +10476,7 @@ eu = function(n) {
|
|
|
10476
10476
|
* @returns {void}
|
|
10477
10477
|
*/
|
|
10478
10478
|
rs = function(n) {
|
|
10479
|
-
(!n.extensions || !n.extensions.length) && (this.options.extensions =
|
|
10479
|
+
(!n.extensions || !n.extensions.length) && (this.options.extensions = Bx()), E(this, A, as).call(this), E(this, A, ls).call(this), E(this, A, us).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), E(this, A, ps).call(this), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", E(this, A, is)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("locked", this.options.onDocumentLocked), window.setTimeout(() => {
|
|
10480
10480
|
this.isDestroyed || this.emit("create", { editor: this });
|
|
10481
10481
|
}, 0);
|
|
10482
10482
|
}, /**
|
|
@@ -11303,9 +11303,9 @@ function Qb(t, e) {
|
|
|
11303
11303
|
let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
|
|
11304
11304
|
if (!r)
|
|
11305
11305
|
return !1;
|
|
11306
|
-
let o =
|
|
11306
|
+
let o = D.empty;
|
|
11307
11307
|
for (let s = r.length - 1; s >= 0; s--)
|
|
11308
|
-
o =
|
|
11308
|
+
o = D.from(r[s].createAndFill(null, o));
|
|
11309
11309
|
let i = t.state.tr.replace(n.pos, n.pos, new W(o, 0, 0));
|
|
11310
11310
|
return i.setSelection(j.near(i.doc.resolve(n.pos + 1))), t.dispatch(i), !1;
|
|
11311
11311
|
}
|
|
@@ -11451,7 +11451,7 @@ const t0 = Z.create({
|
|
|
11451
11451
|
return [{ tag: Nn }];
|
|
11452
11452
|
},
|
|
11453
11453
|
renderDOM({ htmlAttributes: t }) {
|
|
11454
|
-
return [Nn,
|
|
11454
|
+
return [Nn, T.mergeAttributes(this.options.htmlAttributes, t)];
|
|
11455
11455
|
}
|
|
11456
11456
|
}), u0 = Oe.create({
|
|
11457
11457
|
name: to,
|
|
@@ -11484,7 +11484,7 @@ const t0 = Z.create({
|
|
|
11484
11484
|
return [{ tag: to }];
|
|
11485
11485
|
},
|
|
11486
11486
|
renderDOM({ htmlAttributes: t }) {
|
|
11487
|
-
return [to,
|
|
11487
|
+
return [to, T.mergeAttributes(this.options.htmlAttributes, t)];
|
|
11488
11488
|
}
|
|
11489
11489
|
}), f0 = "data:image/svg+xml,%3csvg%20fill='hsla(278,%2077.40%25,%2020.80%25,%200.65)'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4'%20cy='12'%20r='0'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_lo66'%20begin='spinner_Aguh.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_z0Or'%20begin='spinner_lo66.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='4'%20cy='12'%20r='3'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_JsnR'%20begin='spinner_UHR2.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_Aguh'%20begin='spinner_JsnR.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='12'%20cy='12'%20r='3'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_hSjk'%20begin='spinner_OLMs.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_UHR2'%20begin='spinner_hSjk.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='20'%20cy='12'%20r='3'%3e%3canimate%20id='spinner_4v5M'%20begin='0;spinner_z0Or.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_OLMs'%20begin='spinner_4v5M.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3c/circle%3e%3c/svg%3e", p0 = q.create({
|
|
11490
11490
|
name: gu,
|
|
@@ -11506,7 +11506,7 @@ const t0 = Z.create({
|
|
|
11506
11506
|
},
|
|
11507
11507
|
renderDOM({ htmlAttributes: t }) {
|
|
11508
11508
|
const e = document.createElement("span");
|
|
11509
|
-
Object.entries(
|
|
11509
|
+
Object.entries(T.mergeAttributes(this.options.htmlAttributes, t)).forEach(([r, o]) => e.setAttribute(r, o));
|
|
11510
11510
|
const n = document.createElement("img");
|
|
11511
11511
|
return n.src = f0, n.alt = "loading...", n.width = 100, n.height = 50, e.appendChild(n), e;
|
|
11512
11512
|
}
|
|
@@ -11710,7 +11710,7 @@ const ml = /^\s*([-+*])\s$/, vu = q.create({
|
|
|
11710
11710
|
return [{ tag: "ul" }];
|
|
11711
11711
|
},
|
|
11712
11712
|
renderDOM({ htmlAttributes: t }) {
|
|
11713
|
-
return ["ul",
|
|
11713
|
+
return ["ul", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
11714
11714
|
},
|
|
11715
11715
|
addAttributes() {
|
|
11716
11716
|
return {
|
|
@@ -11963,7 +11963,7 @@ const yl = /^(\d+)\.\s$/, xu = q.create({
|
|
|
11963
11963
|
},
|
|
11964
11964
|
renderDOM({ htmlAttributes: t }) {
|
|
11965
11965
|
const { start: e, ...n } = t;
|
|
11966
|
-
return e === 1 ? ["ol",
|
|
11966
|
+
return e === 1 ? ["ol", T.mergeAttributes(this.options.htmlAttributes, n), 0] : ["ol", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
11967
11967
|
},
|
|
11968
11968
|
addCommands() {
|
|
11969
11969
|
return {
|
|
@@ -12162,7 +12162,7 @@ function bl(t, e = []) {
|
|
|
12162
12162
|
style: `--marker-font-size: ${u ?? "initial"}`
|
|
12163
12163
|
}, h = {
|
|
12164
12164
|
style: `--marker-font-family: ${f ?? "initial"}`
|
|
12165
|
-
}, m =
|
|
12165
|
+
}, m = T.mergeAttributes(p, h), g = B.node(a, a + s.nodeSize, m);
|
|
12166
12166
|
o.push(g);
|
|
12167
12167
|
}), o;
|
|
12168
12168
|
}
|
|
@@ -12216,7 +12216,7 @@ const Cu = q.create({
|
|
|
12216
12216
|
return [{ tag: "li" }];
|
|
12217
12217
|
},
|
|
12218
12218
|
renderDOM({ htmlAttributes: t }) {
|
|
12219
|
-
return ["li",
|
|
12219
|
+
return ["li", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
12220
12220
|
},
|
|
12221
12221
|
addAttributes() {
|
|
12222
12222
|
return {
|
|
@@ -12446,7 +12446,7 @@ const Cu = q.create({
|
|
|
12446
12446
|
e += `${r ? `font-family: ${r};` : ""} ${o ? `font-size: ${o};` : ""}`;
|
|
12447
12447
|
}
|
|
12448
12448
|
return e.trim();
|
|
12449
|
-
},
|
|
12449
|
+
}, Kx = (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)) : [], Au = q.create({
|
|
12450
12450
|
name: "paragraph",
|
|
12451
12451
|
priority: 1e3,
|
|
12452
12452
|
group: "block",
|
|
@@ -12529,7 +12529,7 @@ const Cu = q.create({
|
|
|
12529
12529
|
}];
|
|
12530
12530
|
},
|
|
12531
12531
|
renderDOM({ htmlAttributes: t }) {
|
|
12532
|
-
return ["p",
|
|
12532
|
+
return ["p", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
12533
12533
|
},
|
|
12534
12534
|
addPmPlugins() {
|
|
12535
12535
|
const { view: t } = this.editor;
|
|
@@ -12598,7 +12598,7 @@ const Ou = q.create({
|
|
|
12598
12598
|
}));
|
|
12599
12599
|
},
|
|
12600
12600
|
renderDOM({ node: t, htmlAttributes: e }) {
|
|
12601
|
-
return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`,
|
|
12601
|
+
return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`, T.mergeAttributes(this.options.htmlAttributes, e), 0];
|
|
12602
12602
|
},
|
|
12603
12603
|
addCommands() {
|
|
12604
12604
|
return {
|
|
@@ -12633,7 +12633,7 @@ const Ou = q.create({
|
|
|
12633
12633
|
};
|
|
12634
12634
|
},
|
|
12635
12635
|
renderDOM({ htmlAttributes: t }) {
|
|
12636
|
-
return ["commentRangeStart",
|
|
12636
|
+
return ["commentRangeStart", T.mergeAttributes(this.options.htmlAttributes, t)];
|
|
12637
12637
|
},
|
|
12638
12638
|
addAttributes() {
|
|
12639
12639
|
return {
|
|
@@ -12664,7 +12664,7 @@ const Ou = q.create({
|
|
|
12664
12664
|
return [{ tag: "commentRangeEnd" }];
|
|
12665
12665
|
},
|
|
12666
12666
|
renderDOM({ htmlAttributes: t }) {
|
|
12667
|
-
return ["commentRangeEnd",
|
|
12667
|
+
return ["commentRangeEnd", T.mergeAttributes(this.options.htmlAttributes, t)];
|
|
12668
12668
|
},
|
|
12669
12669
|
addAttributes() {
|
|
12670
12670
|
return {
|
|
@@ -12691,7 +12691,7 @@ const Ou = q.create({
|
|
|
12691
12691
|
return [{ tag: "commentReference" }];
|
|
12692
12692
|
},
|
|
12693
12693
|
renderDOM({ htmlAttributes: t }) {
|
|
12694
|
-
return ["commentReference",
|
|
12694
|
+
return ["commentReference", T.mergeAttributes(this.options.htmlAttributes, t)];
|
|
12695
12695
|
},
|
|
12696
12696
|
addAttributes() {
|
|
12697
12697
|
return {
|
|
@@ -12723,7 +12723,7 @@ const Ou = q.create({
|
|
|
12723
12723
|
return [{ tag: Le }];
|
|
12724
12724
|
},
|
|
12725
12725
|
renderDOM({ htmlAttributes: t }) {
|
|
12726
|
-
return [Le,
|
|
12726
|
+
return [Le, T.mergeAttributes(this.options.htmlAttributes, t)];
|
|
12727
12727
|
}
|
|
12728
12728
|
}), q0 = q.create({
|
|
12729
12729
|
name: "tab",
|
|
@@ -12748,7 +12748,7 @@ const Ou = q.create({
|
|
|
12748
12748
|
return [{ tag: "span.sd-editor-tab" }];
|
|
12749
12749
|
},
|
|
12750
12750
|
renderDOM({ htmlAttributes: t }) {
|
|
12751
|
-
return ["span",
|
|
12751
|
+
return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
12752
12752
|
},
|
|
12753
12753
|
addAttributes() {
|
|
12754
12754
|
return {
|
|
@@ -12860,7 +12860,7 @@ const J0 = q.create({
|
|
|
12860
12860
|
return [{ tag: "span" }];
|
|
12861
12861
|
},
|
|
12862
12862
|
renderDOM({ htmlAttributes: t }) {
|
|
12863
|
-
return ["span",
|
|
12863
|
+
return ["span", T.mergeAttributes(this.options.htmlAttributes, t)];
|
|
12864
12864
|
}
|
|
12865
12865
|
}), Y0 = ({ editor: t }) => class {
|
|
12866
12866
|
constructor(n, r) {
|
|
@@ -12910,7 +12910,7 @@ function Sl(t, e, n, r, o, i) {
|
|
|
12910
12910
|
a ? (n.style.width = `${s}px`, n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = `${s}px`);
|
|
12911
12911
|
}
|
|
12912
12912
|
function Ml(t, e, n) {
|
|
12913
|
-
const o = t.extensionService.attributes.filter((s) => s.type === "table"), i =
|
|
12913
|
+
const o = t.extensionService.attributes.filter((s) => s.type === "table"), i = T.getAttributesToRender(e, o);
|
|
12914
12914
|
Object.entries(i).forEach(([s, a]) => {
|
|
12915
12915
|
n.setAttribute(s, a);
|
|
12916
12916
|
});
|
|
@@ -13315,10 +13315,10 @@ var G = class ht extends ee {
|
|
|
13315
13315
|
}
|
|
13316
13316
|
c.push(h);
|
|
13317
13317
|
}
|
|
13318
|
-
s.push(e.child(l).copy(
|
|
13318
|
+
s.push(e.child(l).copy(D.from(c)));
|
|
13319
13319
|
}
|
|
13320
13320
|
const a = this.isColSelection() && this.isRowSelection() ? e : s;
|
|
13321
|
-
return new W(
|
|
13321
|
+
return new W(D.from(a), 1, 1);
|
|
13322
13322
|
}
|
|
13323
13323
|
replace(e, n = W.empty) {
|
|
13324
13324
|
const r = e.steps.length, o = this.ranges;
|
|
@@ -13337,7 +13337,7 @@ var G = class ht extends ee {
|
|
|
13337
13337
|
i && e.setSelection(i);
|
|
13338
13338
|
}
|
|
13339
13339
|
replaceWith(e, n) {
|
|
13340
|
-
this.replace(e, new W(
|
|
13340
|
+
this.replace(e, new W(D.from(n), 0, 0));
|
|
13341
13341
|
}
|
|
13342
13342
|
forEachCell(e) {
|
|
13343
13343
|
const n = this.$anchorCell.node(-1), r = re.get(n), o = this.$anchorCell.start(-1), i = r.cellsInRect(
|
|
@@ -13736,7 +13736,7 @@ function Tl(t, e) {
|
|
|
13736
13736
|
if (xw(o, r)) return !1;
|
|
13737
13737
|
if (e) {
|
|
13738
13738
|
const i = t.tr, s = {};
|
|
13739
|
-
let a =
|
|
13739
|
+
let a = D.empty, l, c;
|
|
13740
13740
|
for (let d = r.top; d < r.bottom; d++)
|
|
13741
13741
|
for (let u = r.left; u < r.right; u++) {
|
|
13742
13742
|
const f = o.map[d * o.width + u], p = r.table.nodeAt(f);
|
|
@@ -14026,11 +14026,11 @@ function Nw(t, e) {
|
|
|
14026
14026
|
let r = 0;
|
|
14027
14027
|
for (let o = 0; o < n.length; o++) r = Math.max(r, n[o]);
|
|
14028
14028
|
for (let o = 0; o < n.length; o++)
|
|
14029
|
-
if (o >= e.length && e.push(
|
|
14029
|
+
if (o >= e.length && e.push(D.empty), n[o] < r) {
|
|
14030
14030
|
const i = ke(t).cell.createAndFill(), s = [];
|
|
14031
14031
|
for (let a = n[o]; a < r; a++)
|
|
14032
14032
|
s.push(i);
|
|
14033
|
-
e[o] = e[o].append(
|
|
14033
|
+
e[o] = e[o].append(D.from(s));
|
|
14034
14034
|
}
|
|
14035
14035
|
return { height: e.length, width: r, rows: e };
|
|
14036
14036
|
}
|
|
@@ -14056,7 +14056,7 @@ function Ew({ width: t, height: e, rows: n }, r, o) {
|
|
|
14056
14056
|
for (let p = 1; p < f.attrs.rowspan; p++)
|
|
14057
14057
|
i[a + p] = (i[a + p] || 0) + f.attrs.colspan;
|
|
14058
14058
|
}
|
|
14059
|
-
s.push(
|
|
14059
|
+
s.push(D.from(c));
|
|
14060
14060
|
}
|
|
14061
14061
|
n = s, t = r;
|
|
14062
14062
|
}
|
|
@@ -14074,7 +14074,7 @@ function Ew({ width: t, height: e, rows: n }, r, o) {
|
|
|
14074
14074
|
u.content
|
|
14075
14075
|
)), l.push(u);
|
|
14076
14076
|
}
|
|
14077
|
-
i.push(
|
|
14077
|
+
i.push(D.from(l));
|
|
14078
14078
|
}
|
|
14079
14079
|
n = i, e = o;
|
|
14080
14080
|
}
|
|
@@ -14101,7 +14101,7 @@ function Pw(t, e, n, r, o, i, s) {
|
|
|
14101
14101
|
g ? d || (d = l.header_cell.createAndFill()) : c || (c = l.cell.createAndFill())
|
|
14102
14102
|
);
|
|
14103
14103
|
}
|
|
14104
|
-
const f = l.row.create(null,
|
|
14104
|
+
const f = l.row.create(null, D.from(u)), p = [];
|
|
14105
14105
|
for (let h = e.height; h < i; h++) p.push(f);
|
|
14106
14106
|
t.insert(t.mapping.slice(s).map(r + n.nodeSize - 2), p);
|
|
14107
14107
|
}
|
|
@@ -14259,7 +14259,7 @@ function Lw(t, e, n) {
|
|
|
14259
14259
|
width: 1,
|
|
14260
14260
|
height: 1,
|
|
14261
14261
|
rows: [
|
|
14262
|
-
|
|
14262
|
+
D.from(
|
|
14263
14263
|
ys(ke(t.state.schema).cell, n)
|
|
14264
14264
|
)
|
|
14265
14265
|
]
|
|
@@ -14743,7 +14743,7 @@ const _u = (t) => t instanceof G, so = ({ editor: t }) => {
|
|
|
14743
14743
|
);
|
|
14744
14744
|
return [
|
|
14745
14745
|
"table",
|
|
14746
|
-
|
|
14746
|
+
T.mergeAttributes(this.options.htmlAttributes, e, {
|
|
14747
14747
|
style: r ? `width: ${r}` : `min-width: ${o}`
|
|
14748
14748
|
}),
|
|
14749
14749
|
n,
|
|
@@ -14875,7 +14875,7 @@ const _u = (t) => t instanceof G, so = ({ editor: t }) => {
|
|
|
14875
14875
|
return [{ tag: "th" }];
|
|
14876
14876
|
},
|
|
14877
14877
|
renderDOM({ htmlAttributes: t }) {
|
|
14878
|
-
return ["th",
|
|
14878
|
+
return ["th", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
14879
14879
|
}
|
|
14880
14880
|
}), ju = q.create({
|
|
14881
14881
|
name: "tableRow",
|
|
@@ -14899,7 +14899,7 @@ const _u = (t) => t instanceof G, so = ({ editor: t }) => {
|
|
|
14899
14899
|
return [{ tag: "tr" }];
|
|
14900
14900
|
},
|
|
14901
14901
|
renderDOM({ htmlAttributes: t }) {
|
|
14902
|
-
return ["tr",
|
|
14902
|
+
return ["tr", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
14903
14903
|
}
|
|
14904
14904
|
}), Wu = q.create({
|
|
14905
14905
|
name: "tableCell",
|
|
@@ -14981,7 +14981,7 @@ const _u = (t) => t instanceof G, so = ({ editor: t }) => {
|
|
|
14981
14981
|
return [{ tag: "td" }];
|
|
14982
14982
|
},
|
|
14983
14983
|
renderDOM({ htmlAttributes: t }) {
|
|
14984
|
-
return ["td",
|
|
14984
|
+
return ["td", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
14985
14985
|
}
|
|
14986
14986
|
});
|
|
14987
14987
|
var yt, Gt;
|
|
@@ -15122,7 +15122,7 @@ yt = new WeakSet(), Gt = function({ displayLabel: e } = {}) {
|
|
|
15122
15122
|
o.classList.add(this.annotationContentClass), o.style.pointerEvents = "none", o.contentEditable = "false", e && (o.textContent = e), r.append(o);
|
|
15123
15123
|
let i = n === !1, s = [`border: 2px solid ${this.borderColor}`, "border-radius: 2px", "padding: 1px 2px", "box-sizing: border-box"].join(
|
|
15124
15124
|
"; "
|
|
15125
|
-
), a =
|
|
15125
|
+
), a = T.mergeAttributes(this.htmlAttributes, {
|
|
15126
15126
|
style: i ? "" : s
|
|
15127
15127
|
});
|
|
15128
15128
|
for (let [l, c] of Object.entries(a))
|
|
@@ -15294,7 +15294,7 @@ function Cn(t, e, n) {
|
|
|
15294
15294
|
});
|
|
15295
15295
|
}), r;
|
|
15296
15296
|
}
|
|
15297
|
-
const
|
|
15297
|
+
const Jx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15298
15298
|
__proto__: null,
|
|
15299
15299
|
findFieldAnnotations: ev,
|
|
15300
15300
|
findFieldAnnotationsBetween: Cn,
|
|
@@ -15591,7 +15591,7 @@ const vs = "annotation", Ku = "annotation-content", Xu = q.create({
|
|
|
15591
15591
|
renderDOM({ node: t, htmlAttributes: e }) {
|
|
15592
15592
|
let { type: n, displayLabel: r, imageSrc: o, rawHtml: i, linkUrl: s } = t.attrs, a = () => [
|
|
15593
15593
|
"span",
|
|
15594
|
-
|
|
15594
|
+
T.mergeAttributes(this.options.htmlAttributes, e),
|
|
15595
15595
|
[
|
|
15596
15596
|
"span",
|
|
15597
15597
|
{
|
|
@@ -15609,7 +15609,7 @@ const vs = "annotation", Ku = "annotation-content", Xu = q.create({
|
|
|
15609
15609
|
] : r;
|
|
15610
15610
|
return [
|
|
15611
15611
|
"span",
|
|
15612
|
-
|
|
15612
|
+
T.mergeAttributes(this.options.htmlAttributes, e),
|
|
15613
15613
|
[
|
|
15614
15614
|
"span",
|
|
15615
15615
|
{
|
|
@@ -15629,7 +15629,7 @@ const vs = "annotation", Ku = "annotation-content", Xu = q.create({
|
|
|
15629
15629
|
] : r;
|
|
15630
15630
|
return [
|
|
15631
15631
|
"span",
|
|
15632
|
-
|
|
15632
|
+
T.mergeAttributes(this.options.htmlAttributes, e),
|
|
15633
15633
|
[
|
|
15634
15634
|
"span",
|
|
15635
15635
|
{
|
|
@@ -15960,7 +15960,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
15960
15960
|
return this.getState(e);
|
|
15961
15961
|
}
|
|
15962
15962
|
}
|
|
15963
|
-
}),
|
|
15963
|
+
}), Yx = (t, e) => {
|
|
15964
15964
|
let r = Bo.getState(t)?.find(null, null, (o) => o.id === e);
|
|
15965
15965
|
return r?.length ? r[0].from : null;
|
|
15966
15966
|
}, Vl = new X("ImagePosition"), bv = ({ editor: t }) => {
|
|
@@ -16124,7 +16124,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16124
16124
|
];
|
|
16125
16125
|
},
|
|
16126
16126
|
renderDOM({ htmlAttributes: t }) {
|
|
16127
|
-
return ["img",
|
|
16127
|
+
return ["img", T.mergeAttributes(this.options.htmlAttributes, t)];
|
|
16128
16128
|
},
|
|
16129
16129
|
addCommands() {
|
|
16130
16130
|
return {
|
|
@@ -16160,7 +16160,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16160
16160
|
};
|
|
16161
16161
|
},
|
|
16162
16162
|
renderDOM({ htmlAttributes: t }) {
|
|
16163
|
-
return ["a",
|
|
16163
|
+
return ["a", T.mergeAttributes(this.options.htmlAttributes, t)];
|
|
16164
16164
|
}
|
|
16165
16165
|
}), Yu = q.create({
|
|
16166
16166
|
name: "mention",
|
|
@@ -16190,7 +16190,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16190
16190
|
const { name: n, email: r } = t.attrs;
|
|
16191
16191
|
return [
|
|
16192
16192
|
"span",
|
|
16193
|
-
|
|
16193
|
+
T.mergeAttributes({ "data-type": this.name || this.email }, this.options.htmlAttributes, e),
|
|
16194
16194
|
`@${n || r}`
|
|
16195
16195
|
];
|
|
16196
16196
|
},
|
|
@@ -16216,7 +16216,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16216
16216
|
return [{ tag: 'span[data-id="auto-page-number"' }];
|
|
16217
16217
|
},
|
|
16218
16218
|
renderDOM({ htmlAttributes: t }) {
|
|
16219
|
-
return ["span",
|
|
16219
|
+
return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16220
16220
|
}
|
|
16221
16221
|
}), xv = q.create({
|
|
16222
16222
|
name: "total-page-number",
|
|
@@ -16234,7 +16234,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16234
16234
|
return [{ tag: 'span[data-id="auto-total-pages"' }];
|
|
16235
16235
|
},
|
|
16236
16236
|
renderDOM({ htmlAttributes: t }) {
|
|
16237
|
-
return ["span",
|
|
16237
|
+
return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16238
16238
|
}
|
|
16239
16239
|
}), Sv = q.create({
|
|
16240
16240
|
name: "shapeContainer",
|
|
@@ -16278,7 +16278,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16278
16278
|
renderDOM({ htmlAttributes: t }) {
|
|
16279
16279
|
return [
|
|
16280
16280
|
"div",
|
|
16281
|
-
|
|
16281
|
+
T.mergeAttributes(this.options.htmlAttributes, t, { "data-type": this.name }),
|
|
16282
16282
|
0
|
|
16283
16283
|
];
|
|
16284
16284
|
}
|
|
@@ -16311,7 +16311,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16311
16311
|
renderDOM({ htmlAttributes: t }) {
|
|
16312
16312
|
return [
|
|
16313
16313
|
"div",
|
|
16314
|
-
|
|
16314
|
+
T.mergeAttributes(this.options.htmlAttributes, t, { "data-type": this.name }),
|
|
16315
16315
|
0
|
|
16316
16316
|
];
|
|
16317
16317
|
}
|
|
@@ -16361,10 +16361,39 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16361
16361
|
renderDOM({ htmlAttributes: t }) {
|
|
16362
16362
|
return [
|
|
16363
16363
|
"div",
|
|
16364
|
-
|
|
16364
|
+
T.mergeAttributes(this.options.htmlAttributes, t, { "data-type": this.name }),
|
|
16365
16365
|
0
|
|
16366
16366
|
];
|
|
16367
16367
|
}
|
|
16368
|
+
}), Av = q.create({
|
|
16369
|
+
name: "structuredContent",
|
|
16370
|
+
group: "inline",
|
|
16371
|
+
inline: !0,
|
|
16372
|
+
content: "inline*",
|
|
16373
|
+
addOptions() {
|
|
16374
|
+
return {
|
|
16375
|
+
annotationClass: "sd-structured-content-tag",
|
|
16376
|
+
htmlAttributes: {}
|
|
16377
|
+
};
|
|
16378
|
+
},
|
|
16379
|
+
parseDOM() {
|
|
16380
|
+
return [
|
|
16381
|
+
{
|
|
16382
|
+
tag: `span.${this.options.annotationClass}`,
|
|
16383
|
+
priority: 60
|
|
16384
|
+
}
|
|
16385
|
+
];
|
|
16386
|
+
},
|
|
16387
|
+
renderDOM({ htmlAttributes: t }) {
|
|
16388
|
+
return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16389
|
+
},
|
|
16390
|
+
addAttributes() {
|
|
16391
|
+
return {
|
|
16392
|
+
sdtPr: {
|
|
16393
|
+
rendered: !1
|
|
16394
|
+
}
|
|
16395
|
+
};
|
|
16396
|
+
}
|
|
16368
16397
|
}), Gu = Oe.create({
|
|
16369
16398
|
name: "textStyle",
|
|
16370
16399
|
addOptions() {
|
|
@@ -16384,12 +16413,12 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16384
16413
|
];
|
|
16385
16414
|
},
|
|
16386
16415
|
renderDOM({ htmlAttributes: t }) {
|
|
16387
|
-
return ["span",
|
|
16416
|
+
return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16388
16417
|
},
|
|
16389
16418
|
addCommands() {
|
|
16390
16419
|
return {
|
|
16391
16420
|
removeEmptyTextStyle: () => ({ state: t, commands: e }) => {
|
|
16392
|
-
const n =
|
|
16421
|
+
const n = T.getMarkAttributes(t, this.type);
|
|
16393
16422
|
return Object.entries(n).some(([, o]) => !!o) ? !0 : e.unsetMark(this.name);
|
|
16394
16423
|
}
|
|
16395
16424
|
};
|
|
@@ -16410,7 +16439,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16410
16439
|
];
|
|
16411
16440
|
},
|
|
16412
16441
|
renderDOM({ htmlAttributes: t }) {
|
|
16413
|
-
return ["strong",
|
|
16442
|
+
return ["strong", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16414
16443
|
},
|
|
16415
16444
|
//prettier-ignore
|
|
16416
16445
|
addCommands() {
|
|
@@ -16442,7 +16471,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16442
16471
|
];
|
|
16443
16472
|
},
|
|
16444
16473
|
renderDOM({ htmlAttributes: t }) {
|
|
16445
|
-
return ["em",
|
|
16474
|
+
return ["em", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16446
16475
|
},
|
|
16447
16476
|
//prettier-ignore
|
|
16448
16477
|
addCommands() {
|
|
@@ -16473,7 +16502,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16473
16502
|
];
|
|
16474
16503
|
},
|
|
16475
16504
|
renderDOM({ htmlAttributes: t }) {
|
|
16476
|
-
return ["u",
|
|
16505
|
+
return ["u", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16477
16506
|
},
|
|
16478
16507
|
addAttributes() {
|
|
16479
16508
|
return {
|
|
@@ -16519,7 +16548,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16519
16548
|
return [{ tag: "mark" }];
|
|
16520
16549
|
},
|
|
16521
16550
|
renderDOM({ htmlAttributes: t }) {
|
|
16522
|
-
return ["mark",
|
|
16551
|
+
return ["mark", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16523
16552
|
},
|
|
16524
16553
|
//prettier-ignore
|
|
16525
16554
|
addCommands() {
|
|
@@ -16549,7 +16578,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16549
16578
|
];
|
|
16550
16579
|
},
|
|
16551
16580
|
renderDOM({ htmlAttributes: t }) {
|
|
16552
|
-
return ["s",
|
|
16581
|
+
return ["s", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16553
16582
|
},
|
|
16554
16583
|
addCommands() {
|
|
16555
16584
|
return {
|
|
@@ -16582,7 +16611,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16582
16611
|
return [{ tag: "a" }];
|
|
16583
16612
|
},
|
|
16584
16613
|
renderDOM({ htmlAttributes: t }) {
|
|
16585
|
-
return jl(t.href, this.options.protocols) ? ["a",
|
|
16614
|
+
return jl(t.href, this.options.protocols) ? ["a", T.mergeAttributes(this.options.htmlAttributes, t), 0] : ["a", mergeAttributes(this.options.htmlAttributes, { ...t, href: "" }), 0];
|
|
16586
16615
|
},
|
|
16587
16616
|
addAttributes() {
|
|
16588
16617
|
return {
|
|
@@ -16614,22 +16643,22 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
|
|
|
16614
16643
|
toggleLink: ({ href: t }) => ({ commands: e }) => t ? e.setLink({ href: t }) : e.unsetLink()
|
|
16615
16644
|
};
|
|
16616
16645
|
}
|
|
16617
|
-
}),
|
|
16646
|
+
}), Ov = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
|
|
16618
16647
|
function jl(t, e) {
|
|
16619
16648
|
const n = ["http", "https", "mailto"];
|
|
16620
16649
|
return e && e.forEach((r) => {
|
|
16621
16650
|
const o = typeof r == "string" ? r : r.scheme;
|
|
16622
16651
|
o && n.push(o);
|
|
16623
|
-
}), !t || t.replace(
|
|
16652
|
+
}), !t || t.replace(Ov, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
|
|
16624
16653
|
}
|
|
16625
|
-
const
|
|
16654
|
+
const Tv = "track-insert", of = Oe.create({
|
|
16626
16655
|
name: Ve,
|
|
16627
16656
|
group: "track",
|
|
16628
16657
|
inclusive: !1,
|
|
16629
16658
|
addOptions() {
|
|
16630
16659
|
return {
|
|
16631
16660
|
htmlAttributes: {
|
|
16632
|
-
class:
|
|
16661
|
+
class: Tv
|
|
16633
16662
|
}
|
|
16634
16663
|
};
|
|
16635
16664
|
},
|
|
@@ -16669,16 +16698,16 @@ const Ov = "track-insert", of = Oe.create({
|
|
|
16669
16698
|
return !1;
|
|
16670
16699
|
},
|
|
16671
16700
|
renderDOM({ htmlAttributes: t }) {
|
|
16672
|
-
return ["span",
|
|
16701
|
+
return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16673
16702
|
}
|
|
16674
|
-
}),
|
|
16703
|
+
}), Dv = "track-delete", sf = Oe.create({
|
|
16675
16704
|
name: de,
|
|
16676
16705
|
group: "track",
|
|
16677
16706
|
inclusive: !1,
|
|
16678
16707
|
addOptions() {
|
|
16679
16708
|
return {
|
|
16680
16709
|
htmlAttributes: {
|
|
16681
|
-
class:
|
|
16710
|
+
class: Dv
|
|
16682
16711
|
}
|
|
16683
16712
|
};
|
|
16684
16713
|
},
|
|
@@ -16718,7 +16747,7 @@ const Ov = "track-insert", of = Oe.create({
|
|
|
16718
16747
|
return !1;
|
|
16719
16748
|
},
|
|
16720
16749
|
renderDOM({ htmlAttributes: t }) {
|
|
16721
|
-
return ["span",
|
|
16750
|
+
return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16722
16751
|
}
|
|
16723
16752
|
}), ks = (t) => {
|
|
16724
16753
|
if (!t) return [];
|
|
@@ -16729,7 +16758,7 @@ const Ov = "track-insert", of = Oe.create({
|
|
|
16729
16758
|
return [];
|
|
16730
16759
|
}
|
|
16731
16760
|
return Array.isArray(e) ? e.filter((n) => Object.hasOwn(n, "type") && Object.hasOwn(n, "attrs")) : [];
|
|
16732
|
-
},
|
|
16761
|
+
}, Gx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16733
16762
|
__proto__: null,
|
|
16734
16763
|
addMarkStep: Yd,
|
|
16735
16764
|
documentHelpers: yb,
|
|
@@ -16743,14 +16772,14 @@ const Ov = "track-insert", of = Oe.create({
|
|
|
16743
16772
|
replaceAroundStep: Pb,
|
|
16744
16773
|
replaceStep: Jd,
|
|
16745
16774
|
trackedTransaction: Zd
|
|
16746
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
16775
|
+
}, Symbol.toStringTag, { value: "Module" })), Nv = "track-format", af = Oe.create({
|
|
16747
16776
|
name: Se,
|
|
16748
16777
|
group: "track",
|
|
16749
16778
|
inclusive: !1,
|
|
16750
16779
|
addOptions() {
|
|
16751
16780
|
return {
|
|
16752
16781
|
htmlAttributes: {
|
|
16753
|
-
class:
|
|
16782
|
+
class: Nv
|
|
16754
16783
|
}
|
|
16755
16784
|
};
|
|
16756
16785
|
},
|
|
@@ -16812,9 +16841,9 @@ const Ov = "track-insert", of = Oe.create({
|
|
|
16812
16841
|
return !1;
|
|
16813
16842
|
},
|
|
16814
16843
|
renderDOM({ htmlAttributes: t }) {
|
|
16815
|
-
return ["span",
|
|
16844
|
+
return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
16816
16845
|
}
|
|
16817
|
-
}),
|
|
16846
|
+
}), Ev = Z.create({
|
|
16818
16847
|
name: "trackChanges",
|
|
16819
16848
|
addCommands() {
|
|
16820
16849
|
return {
|
|
@@ -16984,7 +17013,7 @@ const Ov = "track-insert", of = Oe.create({
|
|
|
16984
17013
|
const o = n[r], i = n[r - 1], s = n[r + 1];
|
|
16985
17014
|
let a;
|
|
16986
17015
|
return i && o.start === i.end ? a = i : s && o.end === s.start && (a = s), [o, a].filter(Boolean);
|
|
16987
|
-
},
|
|
17016
|
+
}, Pv = Z.create({
|
|
16988
17017
|
name: "placeholder",
|
|
16989
17018
|
addOptions() {
|
|
16990
17019
|
return {
|
|
@@ -17014,11 +17043,11 @@ const Ov = "track-insert", of = Oe.create({
|
|
|
17014
17043
|
})];
|
|
17015
17044
|
}
|
|
17016
17045
|
});
|
|
17017
|
-
var Ne = "top", Ue = "bottom", qe = "right", Ee = "left", ta = "auto", zr = [Ne, Ue, qe, Ee], Fn = "start", Ar = "end",
|
|
17046
|
+
var Ne = "top", Ue = "bottom", qe = "right", Ee = "left", ta = "auto", zr = [Ne, Ue, qe, Ee], Fn = "start", Ar = "end", Iv = "clippingParents", lf = "viewport", Qn = "popper", Rv = "reference", Ul = /* @__PURE__ */ zr.reduce(function(t, e) {
|
|
17018
17047
|
return t.concat([e + "-" + Fn, e + "-" + Ar]);
|
|
17019
17048
|
}, []), cf = /* @__PURE__ */ [].concat(zr, [ta]).reduce(function(t, e) {
|
|
17020
17049
|
return t.concat([e, e + "-" + Fn, e + "-" + Ar]);
|
|
17021
|
-
}, []),
|
|
17050
|
+
}, []), Lv = "beforeRead", Fv = "read", Bv = "afterRead", zv = "beforeMain", _v = "main", $v = "afterMain", Vv = "beforeWrite", Hv = "write", jv = "afterWrite", Wv = [Lv, Fv, Bv, zv, _v, $v, Vv, Hv, jv];
|
|
17022
17051
|
function lt(t) {
|
|
17023
17052
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
17024
17053
|
}
|
|
@@ -17045,7 +17074,7 @@ function na(t) {
|
|
|
17045
17074
|
var e = Fe(t).ShadowRoot;
|
|
17046
17075
|
return t instanceof e || t instanceof ShadowRoot;
|
|
17047
17076
|
}
|
|
17048
|
-
function
|
|
17077
|
+
function Uv(t) {
|
|
17049
17078
|
var e = t.state;
|
|
17050
17079
|
Object.keys(e.elements).forEach(function(n) {
|
|
17051
17080
|
var r = e.styles[n] || {}, o = e.attributes[n] || {}, i = e.elements[n];
|
|
@@ -17055,7 +17084,7 @@ function Wv(t) {
|
|
|
17055
17084
|
}));
|
|
17056
17085
|
});
|
|
17057
17086
|
}
|
|
17058
|
-
function
|
|
17087
|
+
function qv(t) {
|
|
17059
17088
|
var e = t.state, n = {
|
|
17060
17089
|
popper: {
|
|
17061
17090
|
position: e.options.strategy,
|
|
@@ -17083,8 +17112,8 @@ const df = {
|
|
|
17083
17112
|
name: "applyStyles",
|
|
17084
17113
|
enabled: !0,
|
|
17085
17114
|
phase: "write",
|
|
17086
|
-
fn:
|
|
17087
|
-
effect:
|
|
17115
|
+
fn: Uv,
|
|
17116
|
+
effect: qv,
|
|
17088
17117
|
requires: ["computeStyles"]
|
|
17089
17118
|
};
|
|
17090
17119
|
function it(t) {
|
|
@@ -17142,7 +17171,7 @@ function ff(t, e) {
|
|
|
17142
17171
|
function xt(t) {
|
|
17143
17172
|
return Fe(t).getComputedStyle(t);
|
|
17144
17173
|
}
|
|
17145
|
-
function
|
|
17174
|
+
function Kv(t) {
|
|
17146
17175
|
return ["table", "td", "th"].indexOf(lt(t)) >= 0;
|
|
17147
17176
|
}
|
|
17148
17177
|
function Ut(t) {
|
|
@@ -17167,7 +17196,7 @@ function ql(t) {
|
|
|
17167
17196
|
return !We(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
17168
17197
|
xt(t).position === "fixed" ? null : t.offsetParent;
|
|
17169
17198
|
}
|
|
17170
|
-
function
|
|
17199
|
+
function Xv(t) {
|
|
17171
17200
|
var e = /firefox/i.test(xs()), n = /Trident/i.test(xs());
|
|
17172
17201
|
if (n && We(t)) {
|
|
17173
17202
|
var r = xt(t);
|
|
@@ -17184,9 +17213,9 @@ function Kv(t) {
|
|
|
17184
17213
|
return null;
|
|
17185
17214
|
}
|
|
17186
17215
|
function _r(t) {
|
|
17187
|
-
for (var e = Fe(t), n = ql(t); n &&
|
|
17216
|
+
for (var e = Fe(t), n = ql(t); n && Kv(n) && xt(n).position === "static"; )
|
|
17188
17217
|
n = ql(n);
|
|
17189
|
-
return n && (lt(n) === "html" || lt(n) === "body" && xt(n).position === "static") ? e : n ||
|
|
17218
|
+
return n && (lt(n) === "html" || lt(n) === "body" && xt(n).position === "static") ? e : n || Xv(t) || e;
|
|
17190
17219
|
}
|
|
17191
17220
|
function oa(t) {
|
|
17192
17221
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
@@ -17194,7 +17223,7 @@ function oa(t) {
|
|
|
17194
17223
|
function cr(t, e, n) {
|
|
17195
17224
|
return an(t, zo(e, n));
|
|
17196
17225
|
}
|
|
17197
|
-
function
|
|
17226
|
+
function Jv(t, e, n) {
|
|
17198
17227
|
var r = cr(t, e, n);
|
|
17199
17228
|
return r > n ? n : r;
|
|
17200
17229
|
}
|
|
@@ -17214,41 +17243,41 @@ function mf(t, e) {
|
|
|
17214
17243
|
return n[r] = t, n;
|
|
17215
17244
|
}, {});
|
|
17216
17245
|
}
|
|
17217
|
-
var
|
|
17246
|
+
var Yv = function(e, n) {
|
|
17218
17247
|
return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
|
|
17219
17248
|
placement: n.placement
|
|
17220
17249
|
})) : e, hf(typeof e != "number" ? e : mf(e, zr));
|
|
17221
17250
|
};
|
|
17222
|
-
function
|
|
17251
|
+
function Gv(t) {
|
|
17223
17252
|
var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, a = it(n.placement), l = oa(a), c = [Ee, qe].indexOf(a) >= 0, d = c ? "height" : "width";
|
|
17224
17253
|
if (!(!i || !s)) {
|
|
17225
|
-
var u =
|
|
17254
|
+
var u = Yv(o.padding, n), f = ra(i), p = l === "y" ? Ne : Ee, h = l === "y" ? Ue : qe, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = _r(i), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, x = m / 2 - g / 2, y = u[p], S = w - f[d] - u[h], k = w / 2 - f[d] / 2 + x, C = cr(y, k, S), R = l;
|
|
17226
17255
|
n.modifiersData[r] = (e = {}, e[R] = C, e.centerOffset = C - k, e);
|
|
17227
17256
|
}
|
|
17228
17257
|
}
|
|
17229
|
-
function
|
|
17258
|
+
function Zv(t) {
|
|
17230
17259
|
var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
|
|
17231
17260
|
o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || ff(e.elements.popper, o) && (e.elements.arrow = o));
|
|
17232
17261
|
}
|
|
17233
|
-
const
|
|
17262
|
+
const Qv = {
|
|
17234
17263
|
name: "arrow",
|
|
17235
17264
|
enabled: !0,
|
|
17236
17265
|
phase: "main",
|
|
17237
|
-
fn:
|
|
17238
|
-
effect:
|
|
17266
|
+
fn: Gv,
|
|
17267
|
+
effect: Zv,
|
|
17239
17268
|
requires: ["popperOffsets"],
|
|
17240
17269
|
requiresIfExists: ["preventOverflow"]
|
|
17241
17270
|
};
|
|
17242
17271
|
function _n(t) {
|
|
17243
17272
|
return t.split("-")[1];
|
|
17244
17273
|
}
|
|
17245
|
-
var
|
|
17274
|
+
var ek = {
|
|
17246
17275
|
top: "auto",
|
|
17247
17276
|
right: "auto",
|
|
17248
17277
|
bottom: "auto",
|
|
17249
17278
|
left: "auto"
|
|
17250
17279
|
};
|
|
17251
|
-
function
|
|
17280
|
+
function tk(t, e) {
|
|
17252
17281
|
var n = t.x, r = t.y, o = e.devicePixelRatio || 1;
|
|
17253
17282
|
return {
|
|
17254
17283
|
x: Bn(n * o) / o || 0,
|
|
@@ -17286,7 +17315,7 @@ function Kl(t) {
|
|
|
17286
17315
|
}
|
|
17287
17316
|
var V = Object.assign({
|
|
17288
17317
|
position: a
|
|
17289
|
-
}, c &&
|
|
17318
|
+
}, c && ek), _ = d === !0 ? tk({
|
|
17290
17319
|
x: p,
|
|
17291
17320
|
y: m
|
|
17292
17321
|
}, Fe(n)) : {
|
|
@@ -17299,7 +17328,7 @@ function Kl(t) {
|
|
|
17299
17328
|
}
|
|
17300
17329
|
return Object.assign({}, V, (e = {}, e[y] = w ? m + "px" : "", e[x] = b ? p + "px" : "", e.transform = "", e));
|
|
17301
17330
|
}
|
|
17302
|
-
function
|
|
17331
|
+
function nk(t) {
|
|
17303
17332
|
var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, i = n.adaptive, s = i === void 0 ? !0 : i, a = n.roundOffsets, l = a === void 0 ? !0 : a, c = {
|
|
17304
17333
|
placement: it(e.placement),
|
|
17305
17334
|
variation: _n(e.placement),
|
|
@@ -17322,17 +17351,17 @@ function tk(t) {
|
|
|
17322
17351
|
"data-popper-placement": e.placement
|
|
17323
17352
|
});
|
|
17324
17353
|
}
|
|
17325
|
-
const
|
|
17354
|
+
const rk = {
|
|
17326
17355
|
name: "computeStyles",
|
|
17327
17356
|
enabled: !0,
|
|
17328
17357
|
phase: "beforeWrite",
|
|
17329
|
-
fn:
|
|
17358
|
+
fn: nk,
|
|
17330
17359
|
data: {}
|
|
17331
17360
|
};
|
|
17332
17361
|
var ao = {
|
|
17333
17362
|
passive: !0
|
|
17334
17363
|
};
|
|
17335
|
-
function
|
|
17364
|
+
function ok(t) {
|
|
17336
17365
|
var e = t.state, n = t.instance, r = t.options, o = r.scroll, i = o === void 0 ? !0 : o, s = r.resize, a = s === void 0 ? !0 : s, l = Fe(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
17337
17366
|
return i && c.forEach(function(d) {
|
|
17338
17367
|
d.addEventListener("scroll", n.update, ao);
|
|
@@ -17342,16 +17371,16 @@ function rk(t) {
|
|
|
17342
17371
|
}), a && l.removeEventListener("resize", n.update, ao);
|
|
17343
17372
|
};
|
|
17344
17373
|
}
|
|
17345
|
-
const
|
|
17374
|
+
const ik = {
|
|
17346
17375
|
name: "eventListeners",
|
|
17347
17376
|
enabled: !0,
|
|
17348
17377
|
phase: "write",
|
|
17349
17378
|
fn: function() {
|
|
17350
17379
|
},
|
|
17351
|
-
effect:
|
|
17380
|
+
effect: ok,
|
|
17352
17381
|
data: {}
|
|
17353
17382
|
};
|
|
17354
|
-
var
|
|
17383
|
+
var sk = {
|
|
17355
17384
|
left: "right",
|
|
17356
17385
|
right: "left",
|
|
17357
17386
|
bottom: "top",
|
|
@@ -17359,16 +17388,16 @@ var ik = {
|
|
|
17359
17388
|
};
|
|
17360
17389
|
function xo(t) {
|
|
17361
17390
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
17362
|
-
return
|
|
17391
|
+
return sk[e];
|
|
17363
17392
|
});
|
|
17364
17393
|
}
|
|
17365
|
-
var
|
|
17394
|
+
var ak = {
|
|
17366
17395
|
start: "end",
|
|
17367
17396
|
end: "start"
|
|
17368
17397
|
};
|
|
17369
17398
|
function Xl(t) {
|
|
17370
17399
|
return t.replace(/start|end/g, function(e) {
|
|
17371
|
-
return
|
|
17400
|
+
return ak[e];
|
|
17372
17401
|
});
|
|
17373
17402
|
}
|
|
17374
17403
|
function ia(t) {
|
|
@@ -17381,7 +17410,7 @@ function ia(t) {
|
|
|
17381
17410
|
function sa(t) {
|
|
17382
17411
|
return zn(Ut(t)).left + ia(t).scrollLeft;
|
|
17383
17412
|
}
|
|
17384
|
-
function
|
|
17413
|
+
function lk(t, e) {
|
|
17385
17414
|
var n = Fe(t), r = Ut(t), o = n.visualViewport, i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
17386
17415
|
if (o) {
|
|
17387
17416
|
i = o.width, s = o.height;
|
|
@@ -17395,7 +17424,7 @@ function ak(t, e) {
|
|
|
17395
17424
|
y: l
|
|
17396
17425
|
};
|
|
17397
17426
|
}
|
|
17398
|
-
function
|
|
17427
|
+
function ck(t) {
|
|
17399
17428
|
var e, n = Ut(t), r = ia(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = an(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = an(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -r.scrollLeft + sa(t), l = -r.scrollTop;
|
|
17400
17429
|
return xt(o || n).direction === "rtl" && (a += an(n.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
17401
17430
|
width: i,
|
|
@@ -17428,21 +17457,21 @@ function Ss(t) {
|
|
|
17428
17457
|
bottom: t.y + t.height
|
|
17429
17458
|
});
|
|
17430
17459
|
}
|
|
17431
|
-
function
|
|
17460
|
+
function dk(t, e) {
|
|
17432
17461
|
var n = zn(t, !1, e === "fixed");
|
|
17433
17462
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
17434
17463
|
}
|
|
17435
17464
|
function Jl(t, e, n) {
|
|
17436
|
-
return e === lf ? Ss(
|
|
17465
|
+
return e === lf ? Ss(lk(t, n)) : fn(e) ? dk(e, n) : Ss(ck(Ut(t)));
|
|
17437
17466
|
}
|
|
17438
|
-
function
|
|
17467
|
+
function uk(t) {
|
|
17439
17468
|
var e = dr(Yo(t)), n = ["absolute", "fixed"].indexOf(xt(t).position) >= 0, r = n && We(t) ? _r(t) : t;
|
|
17440
17469
|
return fn(r) ? e.filter(function(o) {
|
|
17441
17470
|
return fn(o) && ff(o, r) && lt(o) !== "body";
|
|
17442
17471
|
}) : [];
|
|
17443
17472
|
}
|
|
17444
|
-
function
|
|
17445
|
-
var o = e === "clippingParents" ?
|
|
17473
|
+
function fk(t, e, n, r) {
|
|
17474
|
+
var o = e === "clippingParents" ? uk(t) : [].concat(e), i = [].concat(o, [n]), s = i[0], a = i.reduce(function(l, c) {
|
|
17446
17475
|
var d = Jl(t, c, r);
|
|
17447
17476
|
return l.top = an(d.top, l.top), l.right = zo(d.right, l.right), l.bottom = zo(d.bottom, l.bottom), l.left = an(d.left, l.left), l;
|
|
17448
17477
|
}, Jl(t, s, r));
|
|
@@ -17497,7 +17526,7 @@ function yf(t) {
|
|
|
17497
17526
|
}
|
|
17498
17527
|
function Or(t, e) {
|
|
17499
17528
|
e === void 0 && (e = {});
|
|
17500
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ?
|
|
17529
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? Iv : a, c = n.rootBoundary, d = c === void 0 ? lf : c, u = n.elementContext, f = u === void 0 ? Qn : u, p = n.altBoundary, h = p === void 0 ? !1 : p, m = n.padding, g = m === void 0 ? 0 : m, b = hf(typeof g != "number" ? g : mf(g, zr)), w = f === Qn ? Rv : Qn, x = t.rects.popper, y = t.elements[h ? w : f], S = fk(fn(y) ? y : y.contextElement || Ut(t.elements.popper), l, d, s), k = zn(t.elements.reference), C = yf({
|
|
17501
17530
|
reference: k,
|
|
17502
17531
|
element: x,
|
|
17503
17532
|
placement: o
|
|
@@ -17516,7 +17545,7 @@ function Or(t, e) {
|
|
|
17516
17545
|
}
|
|
17517
17546
|
return $;
|
|
17518
17547
|
}
|
|
17519
|
-
function
|
|
17548
|
+
function pk(t, e) {
|
|
17520
17549
|
e === void 0 && (e = {});
|
|
17521
17550
|
var n = e, r = n.placement, o = n.boundary, i = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? cf : l, d = _n(r), u = d ? a ? Ul : Ul.filter(function(h) {
|
|
17522
17551
|
return _n(h) === d;
|
|
@@ -17536,17 +17565,17 @@ function fk(t, e) {
|
|
|
17536
17565
|
return p[h] - p[m];
|
|
17537
17566
|
});
|
|
17538
17567
|
}
|
|
17539
|
-
function
|
|
17568
|
+
function hk(t) {
|
|
17540
17569
|
if (it(t) === ta)
|
|
17541
17570
|
return [];
|
|
17542
17571
|
var e = xo(t);
|
|
17543
17572
|
return [Xl(t), e, Xl(e)];
|
|
17544
17573
|
}
|
|
17545
|
-
function
|
|
17574
|
+
function mk(t) {
|
|
17546
17575
|
var e = t.state, n = t.options, r = t.name;
|
|
17547
17576
|
if (!e.modifiersData[r]._skip) {
|
|
17548
|
-
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, h = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, g = e.options.placement, b = it(g), w = b === g, x = l || (w || !h ? [xo(g)] :
|
|
17549
|
-
return Ke.concat(it(Pe) === ta ?
|
|
17577
|
+
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, h = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, g = e.options.placement, b = it(g), w = b === g, x = l || (w || !h ? [xo(g)] : hk(g)), y = [g].concat(x).reduce(function(Ke, Pe) {
|
|
17578
|
+
return Ke.concat(it(Pe) === ta ? pk(e, {
|
|
17550
17579
|
placement: Pe,
|
|
17551
17580
|
boundary: d,
|
|
17552
17581
|
rootBoundary: u,
|
|
@@ -17590,11 +17619,11 @@ function hk(t) {
|
|
|
17590
17619
|
e.placement !== M && (e.modifiersData[r]._skip = !0, e.placement = M, e.reset = !0);
|
|
17591
17620
|
}
|
|
17592
17621
|
}
|
|
17593
|
-
const
|
|
17622
|
+
const gk = {
|
|
17594
17623
|
name: "flip",
|
|
17595
17624
|
enabled: !0,
|
|
17596
17625
|
phase: "main",
|
|
17597
|
-
fn:
|
|
17626
|
+
fn: mk,
|
|
17598
17627
|
requiresIfExists: ["offset"],
|
|
17599
17628
|
data: {
|
|
17600
17629
|
_skip: !1
|
|
@@ -17616,7 +17645,7 @@ function Gl(t) {
|
|
|
17616
17645
|
return t[e] >= 0;
|
|
17617
17646
|
});
|
|
17618
17647
|
}
|
|
17619
|
-
function
|
|
17648
|
+
function yk(t) {
|
|
17620
17649
|
var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, i = e.modifiersData.preventOverflow, s = Or(e, {
|
|
17621
17650
|
elementContext: "reference"
|
|
17622
17651
|
}), a = Or(e, {
|
|
@@ -17632,14 +17661,14 @@ function gk(t) {
|
|
|
17632
17661
|
"data-popper-escaped": u
|
|
17633
17662
|
});
|
|
17634
17663
|
}
|
|
17635
|
-
const
|
|
17664
|
+
const bk = {
|
|
17636
17665
|
name: "hide",
|
|
17637
17666
|
enabled: !0,
|
|
17638
17667
|
phase: "main",
|
|
17639
17668
|
requiresIfExists: ["preventOverflow"],
|
|
17640
|
-
fn:
|
|
17669
|
+
fn: yk
|
|
17641
17670
|
};
|
|
17642
|
-
function
|
|
17671
|
+
function wk(t, e, n) {
|
|
17643
17672
|
var r = it(t), o = [Ee, Ne].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, e, {
|
|
17644
17673
|
placement: t
|
|
17645
17674
|
})) : n, s = i[0], a = i[1];
|
|
@@ -17651,20 +17680,20 @@ function bk(t, e, n) {
|
|
|
17651
17680
|
y: a
|
|
17652
17681
|
};
|
|
17653
17682
|
}
|
|
17654
|
-
function
|
|
17683
|
+
function vk(t) {
|
|
17655
17684
|
var e = t.state, n = t.options, r = t.name, o = n.offset, i = o === void 0 ? [0, 0] : o, s = cf.reduce(function(d, u) {
|
|
17656
|
-
return d[u] =
|
|
17685
|
+
return d[u] = wk(u, e.rects, i), d;
|
|
17657
17686
|
}, {}), a = s[e.placement], l = a.x, c = a.y;
|
|
17658
17687
|
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += c), e.modifiersData[r] = s;
|
|
17659
17688
|
}
|
|
17660
|
-
const
|
|
17689
|
+
const kk = {
|
|
17661
17690
|
name: "offset",
|
|
17662
17691
|
enabled: !0,
|
|
17663
17692
|
phase: "main",
|
|
17664
17693
|
requires: ["popperOffsets"],
|
|
17665
|
-
fn:
|
|
17694
|
+
fn: vk
|
|
17666
17695
|
};
|
|
17667
|
-
function
|
|
17696
|
+
function xk(t) {
|
|
17668
17697
|
var e = t.state, n = t.name;
|
|
17669
17698
|
e.modifiersData[n] = yf({
|
|
17670
17699
|
reference: e.rects.reference,
|
|
@@ -17672,23 +17701,23 @@ function kk(t) {
|
|
|
17672
17701
|
placement: e.placement
|
|
17673
17702
|
});
|
|
17674
17703
|
}
|
|
17675
|
-
const
|
|
17704
|
+
const Sk = {
|
|
17676
17705
|
name: "popperOffsets",
|
|
17677
17706
|
enabled: !0,
|
|
17678
17707
|
phase: "read",
|
|
17679
|
-
fn:
|
|
17708
|
+
fn: xk,
|
|
17680
17709
|
data: {}
|
|
17681
17710
|
};
|
|
17682
|
-
function
|
|
17711
|
+
function Mk(t) {
|
|
17683
17712
|
return t === "x" ? "y" : "x";
|
|
17684
17713
|
}
|
|
17685
|
-
function
|
|
17714
|
+
function Ck(t) {
|
|
17686
17715
|
var e = t.state, n = t.options, r = t.name, o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !1 : s, l = n.boundary, c = n.rootBoundary, d = n.altBoundary, u = n.padding, f = n.tether, p = f === void 0 ? !0 : f, h = n.tetherOffset, m = h === void 0 ? 0 : h, g = Or(e, {
|
|
17687
17716
|
boundary: l,
|
|
17688
17717
|
rootBoundary: c,
|
|
17689
17718
|
padding: u,
|
|
17690
17719
|
altBoundary: d
|
|
17691
|
-
}), b = it(e.placement), w = _n(e.placement), x = !w, y = oa(b), S =
|
|
17720
|
+
}), b = it(e.placement), w = _n(e.placement), x = !w, y = oa(b), S = Mk(y), k = e.modifiersData.popperOffsets, C = e.rects.reference, R = e.rects.popper, M = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
17692
17721
|
placement: e.placement
|
|
17693
17722
|
})) : m, $ = typeof M == "number" ? {
|
|
17694
17723
|
mainAxis: M,
|
|
@@ -17709,35 +17738,35 @@ function Mk(t) {
|
|
|
17709
17738
|
k[y] = Kn, _[y] = Kn - se;
|
|
17710
17739
|
}
|
|
17711
17740
|
if (a) {
|
|
17712
|
-
var Xn, Wr = y === "x" ? Ne : Ee, Ur = y === "x" ? Ue : qe, ut = k[S], At = S === "y" ? "height" : "width", Jn = ut + g[Wr], qt = ut - g[Ur], Yn = [Ne, Ee].indexOf(b) !== -1, qr = (Xn = V?.[S]) != null ? Xn : 0, Kr = Yn ? Jn : ut - C[At] - R[At] - qr + $.altAxis, Xr = Yn ? ut + C[At] + R[At] - qr - $.altAxis : qt, Jr = p && Yn ?
|
|
17741
|
+
var Xn, Wr = y === "x" ? Ne : Ee, Ur = y === "x" ? Ue : qe, ut = k[S], At = S === "y" ? "height" : "width", Jn = ut + g[Wr], qt = ut - g[Ur], Yn = [Ne, Ee].indexOf(b) !== -1, qr = (Xn = V?.[S]) != null ? Xn : 0, Kr = Yn ? Jn : ut - C[At] - R[At] - qr + $.altAxis, Xr = Yn ? ut + C[At] + R[At] - qr - $.altAxis : qt, Jr = p && Yn ? Jv(Kr, ut, Xr) : cr(p ? Kr : Jn, ut, p ? Xr : qt);
|
|
17713
17742
|
k[S] = Jr, _[S] = Jr - ut;
|
|
17714
17743
|
}
|
|
17715
17744
|
e.modifiersData[r] = _;
|
|
17716
17745
|
}
|
|
17717
17746
|
}
|
|
17718
|
-
const
|
|
17747
|
+
const Ak = {
|
|
17719
17748
|
name: "preventOverflow",
|
|
17720
17749
|
enabled: !0,
|
|
17721
17750
|
phase: "main",
|
|
17722
|
-
fn:
|
|
17751
|
+
fn: Ck,
|
|
17723
17752
|
requiresIfExists: ["offset"]
|
|
17724
17753
|
};
|
|
17725
|
-
function
|
|
17754
|
+
function Ok(t) {
|
|
17726
17755
|
return {
|
|
17727
17756
|
scrollLeft: t.scrollLeft,
|
|
17728
17757
|
scrollTop: t.scrollTop
|
|
17729
17758
|
};
|
|
17730
17759
|
}
|
|
17731
|
-
function Ok(t) {
|
|
17732
|
-
return t === Fe(t) || !We(t) ? ia(t) : Ak(t);
|
|
17733
|
-
}
|
|
17734
17760
|
function Tk(t) {
|
|
17761
|
+
return t === Fe(t) || !We(t) ? ia(t) : Ok(t);
|
|
17762
|
+
}
|
|
17763
|
+
function Dk(t) {
|
|
17735
17764
|
var e = t.getBoundingClientRect(), n = Bn(e.width) / t.offsetWidth || 1, r = Bn(e.height) / t.offsetHeight || 1;
|
|
17736
17765
|
return n !== 1 || r !== 1;
|
|
17737
17766
|
}
|
|
17738
|
-
function
|
|
17767
|
+
function Nk(t, e, n) {
|
|
17739
17768
|
n === void 0 && (n = !1);
|
|
17740
|
-
var r = We(e), o = We(e) &&
|
|
17769
|
+
var r = We(e), o = We(e) && Dk(e), i = Ut(e), s = zn(t, o, n), a = {
|
|
17741
17770
|
scrollLeft: 0,
|
|
17742
17771
|
scrollTop: 0
|
|
17743
17772
|
}, l = {
|
|
@@ -17745,14 +17774,14 @@ function Dk(t, e, n) {
|
|
|
17745
17774
|
y: 0
|
|
17746
17775
|
};
|
|
17747
17776
|
return (r || !r && !n) && ((lt(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
17748
|
-
aa(i)) && (a =
|
|
17777
|
+
aa(i)) && (a = Tk(e)), We(e) ? (l = zn(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = sa(i))), {
|
|
17749
17778
|
x: s.left + a.scrollLeft - l.x,
|
|
17750
17779
|
y: s.top + a.scrollTop - l.y,
|
|
17751
17780
|
width: s.width,
|
|
17752
17781
|
height: s.height
|
|
17753
17782
|
};
|
|
17754
17783
|
}
|
|
17755
|
-
function
|
|
17784
|
+
function Ek(t) {
|
|
17756
17785
|
var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
|
|
17757
17786
|
t.forEach(function(i) {
|
|
17758
17787
|
e.set(i.name, i);
|
|
@@ -17771,15 +17800,15 @@ function Nk(t) {
|
|
|
17771
17800
|
n.has(i.name) || o(i);
|
|
17772
17801
|
}), r;
|
|
17773
17802
|
}
|
|
17774
|
-
function
|
|
17775
|
-
var e =
|
|
17776
|
-
return
|
|
17803
|
+
function Pk(t) {
|
|
17804
|
+
var e = Ek(t);
|
|
17805
|
+
return Wv.reduce(function(n, r) {
|
|
17777
17806
|
return n.concat(e.filter(function(o) {
|
|
17778
17807
|
return o.phase === r;
|
|
17779
17808
|
}));
|
|
17780
17809
|
}, []);
|
|
17781
17810
|
}
|
|
17782
|
-
function
|
|
17811
|
+
function Ik(t) {
|
|
17783
17812
|
var e;
|
|
17784
17813
|
return function() {
|
|
17785
17814
|
return e || (e = new Promise(function(n) {
|
|
@@ -17789,7 +17818,7 @@ function Pk(t) {
|
|
|
17789
17818
|
})), e;
|
|
17790
17819
|
};
|
|
17791
17820
|
}
|
|
17792
|
-
function
|
|
17821
|
+
function Rk(t) {
|
|
17793
17822
|
var e = t.reduce(function(n, r) {
|
|
17794
17823
|
var o = n[r.name];
|
|
17795
17824
|
return n[r.name] = o ? Object.assign({}, o, r, {
|
|
@@ -17813,7 +17842,7 @@ function Ql() {
|
|
|
17813
17842
|
return !(r && typeof r.getBoundingClientRect == "function");
|
|
17814
17843
|
});
|
|
17815
17844
|
}
|
|
17816
|
-
function
|
|
17845
|
+
function Lk(t) {
|
|
17817
17846
|
t === void 0 && (t = {});
|
|
17818
17847
|
var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, i = o === void 0 ? Zl : o;
|
|
17819
17848
|
return function(a, l, c) {
|
|
@@ -17837,7 +17866,7 @@ function Rk(t) {
|
|
|
17837
17866
|
reference: fn(a) ? dr(a) : a.contextElement ? dr(a.contextElement) : [],
|
|
17838
17867
|
popper: dr(l)
|
|
17839
17868
|
};
|
|
17840
|
-
var x =
|
|
17869
|
+
var x = Pk(Rk([].concat(r, d.options.modifiers)));
|
|
17841
17870
|
return d.orderedModifiers = x.filter(function(y) {
|
|
17842
17871
|
return y.enabled;
|
|
17843
17872
|
}), h(), p.update();
|
|
@@ -17852,7 +17881,7 @@ function Rk(t) {
|
|
|
17852
17881
|
var b = d.elements, w = b.reference, x = b.popper;
|
|
17853
17882
|
if (Ql(w, x)) {
|
|
17854
17883
|
d.rects = {
|
|
17855
|
-
reference:
|
|
17884
|
+
reference: Nk(w, _r(x), d.options.strategy === "fixed"),
|
|
17856
17885
|
popper: ra(x)
|
|
17857
17886
|
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function($) {
|
|
17858
17887
|
return d.modifiersData[$.name] = Object.assign({}, $.data);
|
|
@@ -17875,7 +17904,7 @@ function Rk(t) {
|
|
|
17875
17904
|
},
|
|
17876
17905
|
// Async and optimistically optimized update – it will not be executed if
|
|
17877
17906
|
// not necessary (debounced to run at most once-per-tick)
|
|
17878
|
-
update:
|
|
17907
|
+
update: Ik(function() {
|
|
17879
17908
|
return new Promise(function(g) {
|
|
17880
17909
|
p.forceUpdate(), g(d);
|
|
17881
17910
|
});
|
|
@@ -17912,15 +17941,15 @@ function Rk(t) {
|
|
|
17912
17941
|
return p;
|
|
17913
17942
|
};
|
|
17914
17943
|
}
|
|
17915
|
-
var
|
|
17916
|
-
defaultModifiers:
|
|
17917
|
-
}),
|
|
17944
|
+
var Fk = [ik, Sk, rk, df, kk, gk, Ak, Qv, bk], Bk = /* @__PURE__ */ Lk({
|
|
17945
|
+
defaultModifiers: Fk
|
|
17946
|
+
}), zk = "tippy-box", bf = "tippy-content", _k = "tippy-backdrop", wf = "tippy-arrow", vf = "tippy-svg-arrow", Zt = {
|
|
17918
17947
|
passive: !0,
|
|
17919
17948
|
capture: !0
|
|
17920
17949
|
}, kf = function() {
|
|
17921
17950
|
return document.body;
|
|
17922
17951
|
};
|
|
17923
|
-
function
|
|
17952
|
+
function $k(t, e) {
|
|
17924
17953
|
return {}.hasOwnProperty.call(t, e);
|
|
17925
17954
|
}
|
|
17926
17955
|
function Mi(t, e, n) {
|
|
@@ -17947,13 +17976,13 @@ function ec(t, e) {
|
|
|
17947
17976
|
}, e);
|
|
17948
17977
|
};
|
|
17949
17978
|
}
|
|
17950
|
-
function
|
|
17979
|
+
function Vk(t, e) {
|
|
17951
17980
|
var n = Object.assign({}, t);
|
|
17952
17981
|
return e.forEach(function(r) {
|
|
17953
17982
|
delete n[r];
|
|
17954
17983
|
}), n;
|
|
17955
17984
|
}
|
|
17956
|
-
function
|
|
17985
|
+
function Hk(t) {
|
|
17957
17986
|
return t.split(/\s+/).filter(Boolean);
|
|
17958
17987
|
}
|
|
17959
17988
|
function An(t) {
|
|
@@ -17962,12 +17991,12 @@ function An(t) {
|
|
|
17962
17991
|
function tc(t, e) {
|
|
17963
17992
|
t.indexOf(e) === -1 && t.push(e);
|
|
17964
17993
|
}
|
|
17965
|
-
function
|
|
17994
|
+
function jk(t) {
|
|
17966
17995
|
return t.filter(function(e, n) {
|
|
17967
17996
|
return t.indexOf(e) === n;
|
|
17968
17997
|
});
|
|
17969
17998
|
}
|
|
17970
|
-
function
|
|
17999
|
+
function Wk(t) {
|
|
17971
18000
|
return t.split("-")[0];
|
|
17972
18001
|
}
|
|
17973
18002
|
function _o(t) {
|
|
@@ -17986,17 +18015,17 @@ function Tr(t) {
|
|
|
17986
18015
|
return la(t, e);
|
|
17987
18016
|
});
|
|
17988
18017
|
}
|
|
17989
|
-
function
|
|
18018
|
+
function Uk(t) {
|
|
17990
18019
|
return la(t, "NodeList");
|
|
17991
18020
|
}
|
|
17992
|
-
function
|
|
18021
|
+
function qk(t) {
|
|
17993
18022
|
return la(t, "MouseEvent");
|
|
17994
18023
|
}
|
|
17995
|
-
function
|
|
18024
|
+
function Kk(t) {
|
|
17996
18025
|
return !!(t && t._tippy && t._tippy.reference === t);
|
|
17997
18026
|
}
|
|
17998
|
-
function
|
|
17999
|
-
return Tr(t) ? [t] :
|
|
18027
|
+
function Xk(t) {
|
|
18028
|
+
return Tr(t) ? [t] : Uk(t) ? _o(t) : Array.isArray(t) ? t : _o(document.querySelectorAll(t));
|
|
18000
18029
|
}
|
|
18001
18030
|
function Ci(t, e) {
|
|
18002
18031
|
t.forEach(function(n) {
|
|
@@ -18008,14 +18037,14 @@ function rc(t, e) {
|
|
|
18008
18037
|
n && n.setAttribute("data-state", e);
|
|
18009
18038
|
});
|
|
18010
18039
|
}
|
|
18011
|
-
function
|
|
18040
|
+
function Jk(t) {
|
|
18012
18041
|
var e, n = An(t), r = n[0];
|
|
18013
18042
|
return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
|
|
18014
18043
|
}
|
|
18015
|
-
function
|
|
18044
|
+
function Yk(t, e) {
|
|
18016
18045
|
var n = e.clientX, r = e.clientY;
|
|
18017
18046
|
return t.every(function(o) {
|
|
18018
|
-
var i = o.popperRect, s = o.popperState, a = o.props, l = a.interactiveBorder, c =
|
|
18047
|
+
var i = o.popperRect, s = o.popperState, a = o.props, l = a.interactiveBorder, c = Wk(s.placement), d = s.modifiersData.offset;
|
|
18019
18048
|
if (!d)
|
|
18020
18049
|
return !0;
|
|
18021
18050
|
var u = c === "bottom" ? d.top.y : 0, f = c === "top" ? d.bottom.y : 0, p = c === "right" ? d.left.x : 0, h = c === "left" ? d.right.x : 0, m = i.top - r + u > l, g = r - i.bottom - f > l, b = i.left - n + p > l, w = n - i.right - h > l;
|
|
@@ -18040,24 +18069,24 @@ function oc(t, e) {
|
|
|
18040
18069
|
var rt = {
|
|
18041
18070
|
isTouch: !1
|
|
18042
18071
|
}, ic = 0;
|
|
18043
|
-
function
|
|
18072
|
+
function Gk() {
|
|
18044
18073
|
rt.isTouch || (rt.isTouch = !0, window.performance && document.addEventListener("mousemove", Sf));
|
|
18045
18074
|
}
|
|
18046
18075
|
function Sf() {
|
|
18047
18076
|
var t = performance.now();
|
|
18048
18077
|
t - ic < 20 && (rt.isTouch = !1, document.removeEventListener("mousemove", Sf)), ic = t;
|
|
18049
18078
|
}
|
|
18050
|
-
function
|
|
18079
|
+
function Zk() {
|
|
18051
18080
|
var t = document.activeElement;
|
|
18052
|
-
if (
|
|
18081
|
+
if (Kk(t)) {
|
|
18053
18082
|
var e = t._tippy;
|
|
18054
18083
|
t.blur && !e.state.isVisible && t.blur();
|
|
18055
18084
|
}
|
|
18056
18085
|
}
|
|
18057
|
-
function
|
|
18058
|
-
document.addEventListener("touchstart",
|
|
18086
|
+
function Qk() {
|
|
18087
|
+
document.addEventListener("touchstart", Gk, Zt), window.addEventListener("blur", Zk);
|
|
18059
18088
|
}
|
|
18060
|
-
var
|
|
18089
|
+
var ex = typeof window < "u" && typeof document < "u", tx = ex ? (
|
|
18061
18090
|
// @ts-ignore
|
|
18062
18091
|
!!window.msCrypto
|
|
18063
18092
|
) : !1;
|
|
@@ -18069,7 +18098,7 @@ function sc(t) {
|
|
|
18069
18098
|
var e = /[ \t]{2,}/g, n = /^[ \t]*/gm;
|
|
18070
18099
|
return t.replace(e, " ").replace(n, "").trim();
|
|
18071
18100
|
}
|
|
18072
|
-
function
|
|
18101
|
+
function nx(t) {
|
|
18073
18102
|
return sc(`
|
|
18074
18103
|
%ctippy.js
|
|
18075
18104
|
|
|
@@ -18080,7 +18109,7 @@ function tx(t) {
|
|
|
18080
18109
|
}
|
|
18081
18110
|
function Mf(t) {
|
|
18082
18111
|
return [
|
|
18083
|
-
|
|
18112
|
+
nx(t),
|
|
18084
18113
|
// title
|
|
18085
18114
|
"color: #00C584; font-size: 1.3em; font-weight: bold;",
|
|
18086
18115
|
// message
|
|
@@ -18090,8 +18119,8 @@ function Mf(t) {
|
|
|
18090
18119
|
];
|
|
18091
18120
|
}
|
|
18092
18121
|
var Dr;
|
|
18093
|
-
oe.env.NODE_ENV !== "production" &&
|
|
18094
|
-
function
|
|
18122
|
+
oe.env.NODE_ENV !== "production" && rx();
|
|
18123
|
+
function rx() {
|
|
18095
18124
|
Dr = /* @__PURE__ */ new Set();
|
|
18096
18125
|
}
|
|
18097
18126
|
function gt(t, e) {
|
|
@@ -18106,7 +18135,7 @@ function Ms(t, e) {
|
|
|
18106
18135
|
Dr.add(e), (n = console).error.apply(n, Mf(e));
|
|
18107
18136
|
}
|
|
18108
18137
|
}
|
|
18109
|
-
function
|
|
18138
|
+
function ox(t) {
|
|
18110
18139
|
var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
|
|
18111
18140
|
Ms(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Ms(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
18112
18141
|
}
|
|
@@ -18115,7 +18144,7 @@ var Cf = {
|
|
|
18115
18144
|
followCursor: !1,
|
|
18116
18145
|
inlinePositioning: !1,
|
|
18117
18146
|
sticky: !1
|
|
18118
|
-
},
|
|
18147
|
+
}, ix = {
|
|
18119
18148
|
allowHTML: !1,
|
|
18120
18149
|
animation: "fade",
|
|
18121
18150
|
arrow: !0,
|
|
@@ -18173,7 +18202,7 @@ var Cf = {
|
|
|
18173
18202
|
touch: !0,
|
|
18174
18203
|
trigger: "mouseenter focus",
|
|
18175
18204
|
triggerTarget: null
|
|
18176
|
-
}, Cf,
|
|
18205
|
+
}, Cf, ix), sx = Object.keys(Re), ax = function(e) {
|
|
18177
18206
|
oe.env.NODE_ENV !== "production" && Of(e, []);
|
|
18178
18207
|
var n = Object.keys(e);
|
|
18179
18208
|
n.forEach(function(r) {
|
|
@@ -18191,10 +18220,10 @@ function Af(t) {
|
|
|
18191
18220
|
}, {});
|
|
18192
18221
|
return Object.assign({}, t, n);
|
|
18193
18222
|
}
|
|
18194
|
-
function
|
|
18223
|
+
function lx(t, e) {
|
|
18195
18224
|
var n = e ? Object.keys(Af(Object.assign({}, Re, {
|
|
18196
18225
|
plugins: e
|
|
18197
|
-
}))) :
|
|
18226
|
+
}))) : sx, r = n.reduce(function(o, i) {
|
|
18198
18227
|
var s = (t.getAttribute("data-tippy-" + i) || "").trim();
|
|
18199
18228
|
if (!s)
|
|
18200
18229
|
return o;
|
|
@@ -18213,7 +18242,7 @@ function ax(t, e) {
|
|
|
18213
18242
|
function ac(t, e) {
|
|
18214
18243
|
var n = Object.assign({}, e, {
|
|
18215
18244
|
content: xf(e.content, [t])
|
|
18216
|
-
}, e.ignoreAttributes ? {} :
|
|
18245
|
+
}, e.ignoreAttributes ? {} : lx(t, e.plugins));
|
|
18217
18246
|
return n.aria = Object.assign({}, Re.aria, n.aria), n.aria = {
|
|
18218
18247
|
expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
|
|
18219
18248
|
content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
|
|
@@ -18223,7 +18252,7 @@ function Of(t, e) {
|
|
|
18223
18252
|
t === void 0 && (t = {}), e === void 0 && (e = []);
|
|
18224
18253
|
var n = Object.keys(t);
|
|
18225
18254
|
n.forEach(function(r) {
|
|
18226
|
-
var o =
|
|
18255
|
+
var o = Vk(Re, Object.keys(Cf)), i = !$k(o, r);
|
|
18227
18256
|
i && (i = e.filter(function(s) {
|
|
18228
18257
|
return s.name === r;
|
|
18229
18258
|
}).length === 0), gt(i, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
@@ -18232,11 +18261,11 @@ function Of(t, e) {
|
|
|
18232
18261
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
18233
18262
|
});
|
|
18234
18263
|
}
|
|
18235
|
-
var
|
|
18264
|
+
var cx = function() {
|
|
18236
18265
|
return "innerHTML";
|
|
18237
18266
|
};
|
|
18238
18267
|
function Cs(t, e) {
|
|
18239
|
-
t[
|
|
18268
|
+
t[cx()] = e;
|
|
18240
18269
|
}
|
|
18241
18270
|
function lc(t) {
|
|
18242
18271
|
var e = ur();
|
|
@@ -18256,13 +18285,13 @@ function As(t) {
|
|
|
18256
18285
|
return r.classList.contains(wf) || r.classList.contains(vf);
|
|
18257
18286
|
}),
|
|
18258
18287
|
backdrop: n.find(function(r) {
|
|
18259
|
-
return r.classList.contains(
|
|
18288
|
+
return r.classList.contains(_k);
|
|
18260
18289
|
})
|
|
18261
18290
|
};
|
|
18262
18291
|
}
|
|
18263
18292
|
function Tf(t) {
|
|
18264
18293
|
var e = ur(), n = ur();
|
|
18265
|
-
n.className =
|
|
18294
|
+
n.className = zk, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
|
18266
18295
|
var r = ur();
|
|
18267
18296
|
r.className = bf, r.setAttribute("data-state", "hidden"), cc(r, t.props), e.appendChild(n), n.appendChild(r), o(t.props, t.props);
|
|
18268
18297
|
function o(i, s) {
|
|
@@ -18275,9 +18304,9 @@ function Tf(t) {
|
|
|
18275
18304
|
};
|
|
18276
18305
|
}
|
|
18277
18306
|
Tf.$$tippy = !0;
|
|
18278
|
-
var
|
|
18279
|
-
function
|
|
18280
|
-
var n = ac(t, Object.assign({}, Re, Af(nc(e)))), r, o, i, s = !1, a = !1, l = !1, c = !1, d, u, f, p = [], h = ec(Hr, n.interactiveDebounce), m, g =
|
|
18307
|
+
var dx = 1, lo = [], Oi = [];
|
|
18308
|
+
function ux(t, e) {
|
|
18309
|
+
var n = ac(t, Object.assign({}, Re, Af(nc(e)))), r, o, i, s = !1, a = !1, l = !1, c = !1, d, u, f, p = [], h = ec(Hr, n.interactiveDebounce), m, g = dx++, b = null, w = jk(n.plugins), x = {
|
|
18281
18310
|
// Is the instance currently enabled?
|
|
18282
18311
|
isEnabled: !0,
|
|
18283
18312
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -18337,7 +18366,7 @@ function dx(t, e) {
|
|
|
18337
18366
|
}
|
|
18338
18367
|
function ie() {
|
|
18339
18368
|
var v = H().parentNode;
|
|
18340
|
-
return v ?
|
|
18369
|
+
return v ? Jk(v) : document;
|
|
18341
18370
|
}
|
|
18342
18371
|
function le() {
|
|
18343
18372
|
return As(k);
|
|
@@ -18449,14 +18478,14 @@ function dx(t, e) {
|
|
|
18449
18478
|
passive: !0
|
|
18450
18479
|
}), Ct("touchend", jr, {
|
|
18451
18480
|
passive: !0
|
|
18452
|
-
})),
|
|
18481
|
+
})), Hk(y.props.trigger).forEach(function(v) {
|
|
18453
18482
|
if (v !== "manual")
|
|
18454
18483
|
switch (Ct(v, qn), v) {
|
|
18455
18484
|
case "mouseenter":
|
|
18456
18485
|
Ct("mouseleave", jr);
|
|
18457
18486
|
break;
|
|
18458
18487
|
case "focus":
|
|
18459
|
-
Ct(
|
|
18488
|
+
Ct(tx ? "focusout" : "blur", Kn);
|
|
18460
18489
|
break;
|
|
18461
18490
|
case "focusin":
|
|
18462
18491
|
Ct("focusout", Kn);
|
|
@@ -18474,7 +18503,7 @@ function dx(t, e) {
|
|
|
18474
18503
|
var O, F = !1;
|
|
18475
18504
|
if (!(!y.state.isEnabled || Xn(v) || a)) {
|
|
18476
18505
|
var K = ((O = d) == null ? void 0 : O.type) === "focus";
|
|
18477
|
-
d = v, m = v.currentTarget, he(), !y.state.isVisible &&
|
|
18506
|
+
d = v, m = v.currentTarget, he(), !y.state.isVisible && qk(v) && lo.forEach(function(U) {
|
|
18478
18507
|
return U(v);
|
|
18479
18508
|
}), v.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? F = !0 : Jn(v), v.type === "click" && (s = !F), F && !K && qt(v);
|
|
18480
18509
|
}
|
|
@@ -18490,7 +18519,7 @@ function dx(t, e) {
|
|
|
18490
18519
|
props: n
|
|
18491
18520
|
} : null;
|
|
18492
18521
|
}).filter(Boolean);
|
|
18493
|
-
|
|
18522
|
+
Yk(K, v) && (Te(), qt(v));
|
|
18494
18523
|
}
|
|
18495
18524
|
}
|
|
18496
18525
|
function jr(v) {
|
|
@@ -18560,7 +18589,7 @@ function dx(t, e) {
|
|
|
18560
18589
|
element: ze,
|
|
18561
18590
|
padding: 3
|
|
18562
18591
|
}
|
|
18563
|
-
}), Kt.push.apply(Kt, O?.modifiers || []), y.popperInstance =
|
|
18592
|
+
}), Kt.push.apply(Kt, O?.modifiers || []), y.popperInstance = Bk(mn, k, Object.assign({}, O, {
|
|
18564
18593
|
placement: F,
|
|
18565
18594
|
onFirstUpdate: f,
|
|
18566
18595
|
modifiers: Kt
|
|
@@ -18680,10 +18709,10 @@ function dx(t, e) {
|
|
|
18680
18709
|
function $r(t, e) {
|
|
18681
18710
|
e === void 0 && (e = {});
|
|
18682
18711
|
var n = Re.plugins.concat(e.plugins || []);
|
|
18683
|
-
oe.env.NODE_ENV !== "production" && (
|
|
18712
|
+
oe.env.NODE_ENV !== "production" && (ox(t), Of(e, n)), Qk();
|
|
18684
18713
|
var r = Object.assign({}, e, {
|
|
18685
18714
|
plugins: n
|
|
18686
|
-
}), o =
|
|
18715
|
+
}), o = Xk(t);
|
|
18687
18716
|
if (oe.env.NODE_ENV !== "production") {
|
|
18688
18717
|
var i = Tr(r.content), s = o.length > 1;
|
|
18689
18718
|
gt(i && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
@@ -18694,13 +18723,13 @@ function $r(t, e) {
|
|
|
18694
18723
|
`, "2) content: () => element.cloneNode(true)"].join(" "));
|
|
18695
18724
|
}
|
|
18696
18725
|
var a = o.reduce(function(l, c) {
|
|
18697
|
-
var d = c &&
|
|
18726
|
+
var d = c && ux(c, r);
|
|
18698
18727
|
return d && l.push(d), l;
|
|
18699
18728
|
}, []);
|
|
18700
18729
|
return Tr(t) ? a[0] : a;
|
|
18701
18730
|
}
|
|
18702
18731
|
$r.defaultProps = Re;
|
|
18703
|
-
$r.setDefaultProps =
|
|
18732
|
+
$r.setDefaultProps = ax;
|
|
18704
18733
|
$r.currentInput = rt;
|
|
18705
18734
|
Object.assign({}, df, {
|
|
18706
18735
|
effect: function(e) {
|
|
@@ -18722,12 +18751,12 @@ Object.assign({}, df, {
|
|
|
18722
18751
|
$r.setDefaultProps({
|
|
18723
18752
|
render: Tf
|
|
18724
18753
|
});
|
|
18725
|
-
const
|
|
18754
|
+
const fx = (t, e) => {
|
|
18726
18755
|
const n = t.__vccOpts || t;
|
|
18727
18756
|
for (const [r, o] of e)
|
|
18728
18757
|
n[r] = o;
|
|
18729
18758
|
return n;
|
|
18730
|
-
},
|
|
18759
|
+
}, px = ["onClick", "onMouseenter"], hx = { key: 0 }, mx = { key: 0 }, gx = { key: 1 }, yx = { key: 1 }, bx = {
|
|
18731
18760
|
__name: "Mentions",
|
|
18732
18761
|
props: {
|
|
18733
18762
|
users: {
|
|
@@ -18779,16 +18808,16 @@ const ux = (t, e) => {
|
|
|
18779
18808
|
key: d.email,
|
|
18780
18809
|
class: op(["user-row", { selected: r.value === u }])
|
|
18781
18810
|
}, [
|
|
18782
|
-
d.name ? (Jt(), Xt("div",
|
|
18783
|
-
d.name ? (Jt(), Xt("span",
|
|
18784
|
-
d.name && d.email ? (Jt(), Xt("span",
|
|
18785
|
-
])) : (Jt(), Xt("div",
|
|
18811
|
+
d.name ? (Jt(), Xt("div", hx, [
|
|
18812
|
+
d.name ? (Jt(), Xt("span", mx, ii(d.name), 1)) : ga("", !0),
|
|
18813
|
+
d.name && d.email ? (Jt(), Xt("span", gx, " (" + ii(d.email) + ")", 1)) : ga("", !0)
|
|
18814
|
+
])) : (Jt(), Xt("div", yx, [
|
|
18786
18815
|
ip("span", null, ii(d.email), 1)
|
|
18787
18816
|
]))
|
|
18788
|
-
], 42,
|
|
18817
|
+
], 42, px))), 128))
|
|
18789
18818
|
], 544));
|
|
18790
18819
|
}
|
|
18791
|
-
},
|
|
18820
|
+
}, wx = /* @__PURE__ */ fx(bx, [["__scopeId", "data-v-0a2a8b4e"]]), dc = new X("popoverPlugin"), vx = Z.create({
|
|
18792
18821
|
name: "popoverPlugin",
|
|
18793
18822
|
addPmPlugins() {
|
|
18794
18823
|
return [new J({
|
|
@@ -18801,7 +18830,7 @@ const ux = (t, e) => {
|
|
|
18801
18830
|
}
|
|
18802
18831
|
},
|
|
18803
18832
|
view: (e) => {
|
|
18804
|
-
const n = new
|
|
18833
|
+
const n = new kx(e, this.editor);
|
|
18805
18834
|
return {
|
|
18806
18835
|
update: (r, o) => {
|
|
18807
18836
|
dc.getState(r.state).shouldUpdate && n.update(r, o);
|
|
@@ -18814,7 +18843,7 @@ const ux = (t, e) => {
|
|
|
18814
18843
|
})];
|
|
18815
18844
|
}
|
|
18816
18845
|
});
|
|
18817
|
-
class
|
|
18846
|
+
class kx {
|
|
18818
18847
|
constructor(e, n) {
|
|
18819
18848
|
L(this, "handleKeyDown", (e) => {
|
|
18820
18849
|
const n = e.key === "ArrowDown" || e.key === "ArrowUp";
|
|
@@ -18851,7 +18880,7 @@ class vx {
|
|
|
18851
18880
|
if (this.isShowMentions) {
|
|
18852
18881
|
const { from: i } = this.state.selection, s = this.getMentionText(i);
|
|
18853
18882
|
o = {
|
|
18854
|
-
component:
|
|
18883
|
+
component: wx,
|
|
18855
18884
|
props: {
|
|
18856
18885
|
users: this.editor.users,
|
|
18857
18886
|
mention: s,
|
|
@@ -18893,7 +18922,7 @@ class vx {
|
|
|
18893
18922
|
this.tippyInstance.destroy(), this.popover.remove();
|
|
18894
18923
|
}
|
|
18895
18924
|
}
|
|
18896
|
-
const
|
|
18925
|
+
const xx = !1, Sx = Z.create({
|
|
18897
18926
|
name: "pagination",
|
|
18898
18927
|
addStorage() {
|
|
18899
18928
|
return {
|
|
@@ -18927,7 +18956,7 @@ const kx = !1, xx = Z.create({
|
|
|
18927
18956
|
return {
|
|
18928
18957
|
isReadyToInit: !1,
|
|
18929
18958
|
decorations: P.empty,
|
|
18930
|
-
isDebugging:
|
|
18959
|
+
isDebugging: xx
|
|
18931
18960
|
};
|
|
18932
18961
|
},
|
|
18933
18962
|
apply(s, a, l, c) {
|
|
@@ -18962,7 +18991,7 @@ const kx = !1, xx = Z.create({
|
|
|
18962
18991
|
let a = P.empty;
|
|
18963
18992
|
return {
|
|
18964
18993
|
update: (l) => {
|
|
18965
|
-
!n || e || (e = !0, r = !0,
|
|
18994
|
+
!n || e || (e = !0, r = !0, Mx(t, l, a), e = !1, n = !1);
|
|
18966
18995
|
}
|
|
18967
18996
|
};
|
|
18968
18997
|
},
|
|
@@ -18989,8 +19018,8 @@ const kx = !1, xx = Z.create({
|
|
|
18989
19018
|
if (i?.titlePg && l && t === 1) return l;
|
|
18990
19019
|
let d = i.default;
|
|
18991
19020
|
return t === 1 && (d = c), o && (t === 1 && (d = l), t % 2 === 0 ? d = s || c : d = a || c), d;
|
|
18992
|
-
},
|
|
18993
|
-
const r = t.storage.pagination.sectionData, o =
|
|
19021
|
+
}, Mx = (t, e, n) => {
|
|
19022
|
+
const r = t.storage.pagination.sectionData, o = Cx(e, t, r);
|
|
18994
19023
|
if (!n.eq(o)) {
|
|
18995
19024
|
const i = e.state.tr.setMeta(
|
|
18996
19025
|
$t,
|
|
@@ -18999,7 +19028,7 @@ const kx = !1, xx = Z.create({
|
|
|
18999
19028
|
e.dispatch(i);
|
|
19000
19029
|
}
|
|
19001
19030
|
t.emit("paginationUpdate");
|
|
19002
|
-
},
|
|
19031
|
+
}, Cx = (t, e, n) => {
|
|
19003
19032
|
if (!e.converter) return P.empty;
|
|
19004
19033
|
const r = e.converter.pageStyles?.pageSize, { width: o, height: i } = r;
|
|
19005
19034
|
if (!o || !i) return P.empty;
|
|
@@ -19018,10 +19047,10 @@ const kx = !1, xx = Z.create({
|
|
|
19018
19047
|
}
|
|
19019
19048
|
});
|
|
19020
19049
|
e.initDefaultStyles(c);
|
|
19021
|
-
const p =
|
|
19050
|
+
const p = Ax(l.doc, f, e, n);
|
|
19022
19051
|
return f.destroy(), document.body.removeChild(c), P.create(t.state.doc, p);
|
|
19023
19052
|
};
|
|
19024
|
-
function
|
|
19053
|
+
function Ax(t, e, n, r) {
|
|
19025
19054
|
const o = [], { pageSize: i, pageMargins: s } = n.converter.pageStyles, a = i.height * 96;
|
|
19026
19055
|
n.options.scale;
|
|
19027
19056
|
let l = 1, c = a, d = null, u = null;
|
|
@@ -19055,7 +19084,7 @@ function Cx(t, e, n, r) {
|
|
|
19055
19084
|
top: pe,
|
|
19056
19085
|
bottom: he,
|
|
19057
19086
|
pos: Te
|
|
19058
|
-
} =
|
|
19087
|
+
} = Ox(e, H, c), Be = Yt(l, "footerIds", n, _);
|
|
19059
19088
|
l++;
|
|
19060
19089
|
const dt = Yt(l, "headerIds", n);
|
|
19061
19090
|
u = co(s, i, r, dt), d = Ti(s, i, r, Be, l - 1);
|
|
@@ -19118,7 +19147,7 @@ function uo({ editor: t, header: e, footer: n, footerBottom: r = null, isFirstHe
|
|
|
19118
19147
|
}
|
|
19119
19148
|
return e && (d.appendChild(e.section), l += e.headerHeight), c.style.height = l + "px", c.style.minHeight = l + "px", c.style.maxHeight = l + "px", d.style.height = l + "px", c.style.width = "100px", c.style.marginLeft = a.left * -96 + "px", r !== null && (c.style.position = "absolute", c.style.bottom = r + "px"), c;
|
|
19120
19149
|
}
|
|
19121
|
-
function
|
|
19150
|
+
function Ox(t, e, n) {
|
|
19122
19151
|
let r = e - 1;
|
|
19123
19152
|
const o = { top: 0, bottom: 0, pos: 0 };
|
|
19124
19153
|
for (; r > 0; ) {
|
|
@@ -19142,7 +19171,7 @@ class Df {
|
|
|
19142
19171
|
Create a query object.
|
|
19143
19172
|
*/
|
|
19144
19173
|
constructor(e) {
|
|
19145
|
-
this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && !(this.regexp && !
|
|
19174
|
+
this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && !(this.regexp && !Ix(this.search)), this.wholeWord = !!e.wholeWord, this.filter = e.filter || null, this.impl = this.valid ? this.regexp ? new Nx(this) : new Dx(this) : Tx;
|
|
19146
19175
|
}
|
|
19147
19176
|
/**
|
|
19148
19177
|
Compare this query to another query.
|
|
@@ -19202,18 +19231,18 @@ class Df {
|
|
|
19202
19231
|
positions through your transaction's current mapping.
|
|
19203
19232
|
*/
|
|
19204
19233
|
getReplacements(e, n) {
|
|
19205
|
-
let o = e.doc.resolve(n.from).marksAcross(e.doc.resolve(n.to)), i = [], s =
|
|
19234
|
+
let o = e.doc.resolve(n.from).marksAcross(e.doc.resolve(n.to)), i = [], s = D.empty, a = n.from, { match: l } = n, c = l ? Ex(l) : [[0, n.to - n.from]], d = Px(this.unquote(this.replace)), u;
|
|
19206
19235
|
for (let f of d)
|
|
19207
19236
|
if (typeof f == "string")
|
|
19208
19237
|
s = s.addToEnd(e.schema.text(f, o));
|
|
19209
19238
|
else if (u = c[f.group]) {
|
|
19210
19239
|
let p = n.matchStart + u[0], h = n.matchStart + u[1];
|
|
19211
|
-
f.copy ? s = s.append(e.doc.slice(p, h).content) : ((s !=
|
|
19240
|
+
f.copy ? s = s.append(e.doc.slice(p, h).content) : ((s != D.empty || p > a) && (i.push({ from: a, to: p, insert: new W(s, 0, 0) }), s = D.empty), a = h);
|
|
19212
19241
|
}
|
|
19213
|
-
return (s !=
|
|
19242
|
+
return (s != D.empty || a < n.to) && i.push({ from: a, to: n.to, insert: new W(s, 0, 0) }), i;
|
|
19214
19243
|
}
|
|
19215
19244
|
}
|
|
19216
|
-
const
|
|
19245
|
+
const Tx = new class {
|
|
19217
19246
|
findNext() {
|
|
19218
19247
|
return null;
|
|
19219
19248
|
}
|
|
@@ -19221,7 +19250,7 @@ const Ox = new class {
|
|
|
19221
19250
|
return null;
|
|
19222
19251
|
}
|
|
19223
19252
|
}();
|
|
19224
|
-
class
|
|
19253
|
+
class Dx {
|
|
19225
19254
|
constructor(e) {
|
|
19226
19255
|
this.query = e;
|
|
19227
19256
|
let n = e.unquote(e.search);
|
|
@@ -19243,7 +19272,7 @@ class Tx {
|
|
|
19243
19272
|
}
|
|
19244
19273
|
}
|
|
19245
19274
|
const Nf = "g" + (/x/.unicode == null ? "" : "u") + (/x/.hasIndices == null ? "" : "d");
|
|
19246
|
-
class
|
|
19275
|
+
class Nx {
|
|
19247
19276
|
constructor(e) {
|
|
19248
19277
|
this.query = e, this.regexp = new RegExp(e.search, Nf + (e.caseSensitive ? "" : "i"));
|
|
19249
19278
|
}
|
|
@@ -19269,7 +19298,7 @@ class Dx {
|
|
|
19269
19298
|
});
|
|
19270
19299
|
}
|
|
19271
19300
|
}
|
|
19272
|
-
function
|
|
19301
|
+
function Ex(t) {
|
|
19273
19302
|
if (t.indices)
|
|
19274
19303
|
return t.indices;
|
|
19275
19304
|
let e = [[0, t[0].length]];
|
|
@@ -19279,7 +19308,7 @@ function Nx(t) {
|
|
|
19279
19308
|
}
|
|
19280
19309
|
return e;
|
|
19281
19310
|
}
|
|
19282
|
-
function
|
|
19311
|
+
function Px(t) {
|
|
19283
19312
|
let e = [], n = -1;
|
|
19284
19313
|
function r(o) {
|
|
19285
19314
|
let i = e.length - 1;
|
|
@@ -19297,7 +19326,7 @@ function Ex(t) {
|
|
|
19297
19326
|
}
|
|
19298
19327
|
return e;
|
|
19299
19328
|
}
|
|
19300
|
-
function
|
|
19329
|
+
function Ix(t) {
|
|
19301
19330
|
try {
|
|
19302
19331
|
return new RegExp(t, Nf), !0;
|
|
19303
19332
|
} catch {
|
|
@@ -19363,7 +19392,7 @@ function Ni(t, e, n) {
|
|
|
19363
19392
|
return P.create(t.doc, r);
|
|
19364
19393
|
}
|
|
19365
19394
|
const fr = new X("search");
|
|
19366
|
-
function
|
|
19395
|
+
function Rx(t = {}) {
|
|
19367
19396
|
return new J({
|
|
19368
19397
|
key: fr,
|
|
19369
19398
|
state: {
|
|
@@ -19395,10 +19424,10 @@ function mc(t) {
|
|
|
19395
19424
|
let e = fr.getState(t);
|
|
19396
19425
|
return e ? e.deco : P.empty;
|
|
19397
19426
|
}
|
|
19398
|
-
function
|
|
19427
|
+
function Lx(t, e, n = null) {
|
|
19399
19428
|
return t.setMeta(fr, { query: e, range: n });
|
|
19400
19429
|
}
|
|
19401
|
-
const
|
|
19430
|
+
const Fx = Z.create({
|
|
19402
19431
|
addStorage() {
|
|
19403
19432
|
return {
|
|
19404
19433
|
searchResults: []
|
|
@@ -19421,7 +19450,7 @@ const Lx = Z.create({
|
|
|
19421
19450
|
}
|
|
19422
19451
|
}
|
|
19423
19452
|
});
|
|
19424
|
-
return [
|
|
19453
|
+
return [Rx(), n];
|
|
19425
19454
|
},
|
|
19426
19455
|
addCommands() {
|
|
19427
19456
|
return {
|
|
@@ -19446,7 +19475,7 @@ const Lx = Z.create({
|
|
|
19446
19475
|
caseSensitive: i,
|
|
19447
19476
|
regexp: s,
|
|
19448
19477
|
wholeWord: a
|
|
19449
|
-
}), c =
|
|
19478
|
+
}), c = Lx(e.tr, l);
|
|
19450
19479
|
r(c);
|
|
19451
19480
|
const d = e.apply(c), u = mc(d), p = (u ? u.find() : []).map((h) => ({
|
|
19452
19481
|
from: h.from,
|
|
@@ -19466,7 +19495,7 @@ const Lx = Z.create({
|
|
|
19466
19495
|
}
|
|
19467
19496
|
};
|
|
19468
19497
|
}
|
|
19469
|
-
}),
|
|
19498
|
+
}), Bx = () => [
|
|
19470
19499
|
Zu,
|
|
19471
19500
|
vu,
|
|
19472
19501
|
lu,
|
|
@@ -19488,8 +19517,8 @@ const Lx = Z.create({
|
|
|
19488
19517
|
fu,
|
|
19489
19518
|
Gu,
|
|
19490
19519
|
ef,
|
|
19491
|
-
|
|
19492
|
-
|
|
19520
|
+
Pv,
|
|
19521
|
+
vx,
|
|
19493
19522
|
Yu,
|
|
19494
19523
|
tf,
|
|
19495
19524
|
hu,
|
|
@@ -19504,7 +19533,7 @@ const Lx = Z.create({
|
|
|
19504
19533
|
af,
|
|
19505
19534
|
yu,
|
|
19506
19535
|
Ju
|
|
19507
|
-
],
|
|
19536
|
+
], zx = () => [
|
|
19508
19537
|
Zu,
|
|
19509
19538
|
vu,
|
|
19510
19539
|
lu,
|
|
@@ -19546,12 +19575,12 @@ const Lx = Z.create({
|
|
|
19546
19575
|
Yu,
|
|
19547
19576
|
r0,
|
|
19548
19577
|
l0,
|
|
19549
|
-
|
|
19578
|
+
Ev,
|
|
19550
19579
|
of,
|
|
19551
19580
|
sf,
|
|
19552
19581
|
af,
|
|
19553
19582
|
U0,
|
|
19554
|
-
|
|
19583
|
+
Sx,
|
|
19555
19584
|
tf,
|
|
19556
19585
|
R0,
|
|
19557
19586
|
yu,
|
|
@@ -19563,32 +19592,33 @@ const Lx = Z.create({
|
|
|
19563
19592
|
Sv,
|
|
19564
19593
|
Mv,
|
|
19565
19594
|
Cv,
|
|
19566
|
-
|
|
19595
|
+
Fx,
|
|
19596
|
+
Av
|
|
19567
19597
|
];
|
|
19568
19598
|
export {
|
|
19569
|
-
|
|
19599
|
+
T as A,
|
|
19570
19600
|
ge as C,
|
|
19571
19601
|
ns as E,
|
|
19572
19602
|
Bo as I,
|
|
19573
19603
|
Oe as M,
|
|
19574
19604
|
q as N,
|
|
19575
|
-
|
|
19605
|
+
Pv as P,
|
|
19576
19606
|
ce as T,
|
|
19577
|
-
|
|
19578
|
-
|
|
19607
|
+
fx as _,
|
|
19608
|
+
Kx as a,
|
|
19579
19609
|
F0 as b,
|
|
19580
19610
|
He as c,
|
|
19581
19611
|
ap as d,
|
|
19582
|
-
|
|
19583
|
-
|
|
19612
|
+
zx as e,
|
|
19613
|
+
Yx as f,
|
|
19584
19614
|
di as g,
|
|
19585
|
-
|
|
19615
|
+
Bx as h,
|
|
19586
19616
|
Jc as i,
|
|
19587
19617
|
Z as j,
|
|
19588
19618
|
Rs as k,
|
|
19589
|
-
|
|
19590
|
-
|
|
19619
|
+
Jx as l,
|
|
19620
|
+
Gx as m,
|
|
19591
19621
|
Vo as n,
|
|
19592
|
-
|
|
19593
|
-
|
|
19622
|
+
Ux as r,
|
|
19623
|
+
Wx as u
|
|
19594
19624
|
};
|