@harbour-enterprises/superdoc 0.9.15 → 0.9.17

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.
@@ -7,9 +7,9 @@ var I = (t, e, n) => cf(t, typeof e != "symbol" ? e + "" : e, n), Vo = (t, e, n)
7
7
  var Ze = (t, e, n) => (Vo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ut = (t, e, n) => e.has(t) ? Ys("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), jo = (t, e, n, r) => (Vo(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), P = (t, e, n) => (Vo(t, e, "access private method"), n);
8
8
  import * as T from "yjs";
9
9
  import { UndoManager as df, Item as uf, ContentType as ff, Text as pf, XmlElement as hf } from "yjs";
10
- import { P as G, a as Z, M as lr, N as B, S as J, T as V, b as j, D as zn, F as N, c as Mn, d as mf, e as Kl, A as Mr, p as oe, B as gf, f as Xl, i as yf, g as bt, l as Ar, h as Ht, j as Jl, r as Yl, R as an, o as cr, k as $t, m as yi, n as Gl, q as ue, s as Ve, v as To, t as vn, u as bf, w as xe, x as eo, y as Zl, z as kn, C as Ho, E as Uo, G as Wo, H as to, I as wf, J as Gs, K as vf, L as kf } from "./converter-Rx70Oyy_.js";
10
+ import { P as Y, a as G, M as lr, N as B, S as J, T as V, b as j, D as zn, F as N, c as Mn, d as mf, e as Kl, A as Mr, p as ie, B as gf, f as Xl, i as yf, g as bt, l as Ar, h as Ht, j as Jl, r as Yl, R as an, o as cr, k as $t, m as yi, n as Gl, q as ue, s as Ve, v as To, t as vn, u as bf, w as xe, x as eo, y as Zl, z as kn, C as Ho, E as Uo, G as Wo, H as to, I as wf, J as Gs, K as vf, L as kf } from "./converter-pSWtPCB1.js";
11
11
  import { ref as Zs, computed as Cf, createElementBlock as Xt, openBlock as Jt, withModifiers as qo, Fragment as Sf, renderList as xf, normalizeClass as Mf, createCommentVNode as Qs, toDisplayString as Ko, createElementVNode as Af, createApp as Of } from "vue";
12
- import { D as ea } from "./docx-zipper-C3CdrwGR.js";
12
+ import { D as ea } from "./docx-zipper-CiIPP9i1.js";
13
13
  function Do(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) => {
@@ -368,12 +368,12 @@ function no(t) {
368
368
  }
369
369
  return Jo;
370
370
  }
371
- const wt = new G("history"), Bf = new G("closeHistory");
371
+ const wt = new Y("history"), Bf = new Y("closeHistory");
372
372
  function _f(t = {}) {
373
373
  return t = {
374
374
  depth: t.depth || 100,
375
375
  newGroupDelay: t.newGroupDelay || 500
376
- }, new Z({
376
+ }, new G({
377
377
  key: wt,
378
378
  state: {
379
379
  init() {
@@ -421,7 +421,7 @@ function D(t, e, n = {}) {
421
421
  function K(t, e = null, ...n) {
422
422
  return typeof t == "function" ? e ? t.bind(e)(...n) : t(...n) : t;
423
423
  }
424
- class Q {
424
+ class Z {
425
425
  constructor(e) {
426
426
  I(this, "type", "extension");
427
427
  I(this, "name", "extension");
@@ -449,10 +449,10 @@ class Q {
449
449
  * @param args Arguments for the constructor.
450
450
  */
451
451
  static create(...e) {
452
- return new Q(...e);
452
+ return new Z(...e);
453
453
  }
454
454
  }
455
- const zf = Q.create({
455
+ const zf = Z.create({
456
456
  name: "history",
457
457
  addOptions() {
458
458
  return {
@@ -2902,7 +2902,7 @@ Oe.drop = (t, e) => {
2902
2902
  c.setSelection(new B(p));
2903
2903
  else {
2904
2904
  let h = c.mapping.map(l);
2905
- c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, b, v) => h = v), c.setSelection(ys(t, p, c.doc.resolve(h)));
2905
+ c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, b, w) => h = w), c.setSelection(ys(t, p, c.doc.resolve(h)));
2906
2906
  }
2907
2907
  t.focus(), t.dispatch(c.setMeta("uiEvent", "drop"));
2908
2908
  };
@@ -3310,8 +3310,8 @@ function nh(t, e, n, r, o, i, s) {
3310
3310
  n.maps[c].forEach((f, p, h, m) => {
3311
3311
  let g = m - h - (p - f);
3312
3312
  for (let b = 0; b < a.length; b += 3) {
3313
- let v = a[b + 1];
3314
- if (v < 0 || f > v + d - u)
3313
+ let w = a[b + 1];
3314
+ if (w < 0 || f > w + d - u)
3315
3315
  continue;
3316
3316
  let C = a[b] + d - u;
3317
3317
  p >= C ? a[b + 1] = f <= C ? -2 : -1 : f >= d && g && (a[b] += g, a[b + 1] += g);
@@ -3637,12 +3637,12 @@ function uh(t, e, n) {
3637
3637
  let { node: r, fromOffset: o, toOffset: i, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), c, d = l.anchorNode;
3638
3638
  if (d && t.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: l.anchorOffset }], Eo(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), we && t.input.lastKeyCode === 8)
3639
3639
  for (let g = i; g > o; g--) {
3640
- let b = r.childNodes[g - 1], v = b.pmViewDesc;
3641
- if (b.nodeName == "BR" && !v) {
3640
+ let b = r.childNodes[g - 1], w = b.pmViewDesc;
3641
+ if (b.nodeName == "BR" && !w) {
3642
3642
  i = g;
3643
3643
  break;
3644
3644
  }
3645
- if (!v || v.size)
3645
+ if (!w || w.size)
3646
3646
  break;
3647
3647
  }
3648
3648
  let u = t.state.doc, f = t.someProp("domParser") || Mn.fromSchema(t.state.schema), p = u.resolve(s), h = null, m = f.parse(r, {
@@ -3680,12 +3680,12 @@ const ph = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
3680
3680
  function hh(t, e, n, r, o) {
3681
3681
  let i = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
3682
3682
  if (t.input.compositionPendingChanges = 0, e < 0) {
3683
- let x = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, _ = gs(t, x);
3684
- if (_ && !t.state.selection.eq(_)) {
3685
- if (we && yt && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (H) => H(t, Zt(13, "Enter"))))
3683
+ let x = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, $ = gs(t, x);
3684
+ if ($ && !t.state.selection.eq($)) {
3685
+ if (we && yt && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (W) => W(t, Zt(13, "Enter"))))
3686
3686
  return;
3687
- let $ = t.state.tr.setSelection(_);
3688
- x == "pointer" ? $.setMeta("pointer", !0) : x == "key" && $.scrollIntoView(), i && $.setMeta("composition", i), t.dispatch($);
3687
+ let _ = t.state.tr.setSelection($);
3688
+ x == "pointer" ? _.setMeta("pointer", !0) : x == "key" && _.scrollIntoView(), i && _.setMeta("composition", i), t.dispatch(_);
3689
3689
  }
3690
3690
  return;
3691
3691
  }
@@ -3705,15 +3705,15 @@ function hh(t, e, n, r, o) {
3705
3705
  if (c.sel) {
3706
3706
  let x = Na(t, t.state.doc, c.sel);
3707
3707
  if (x && !x.eq(t.state.selection)) {
3708
- let _ = t.state.tr.setSelection(x);
3709
- i && _.setMeta("composition", i), t.dispatch(_);
3708
+ let $ = t.state.tr.setSelection(x);
3709
+ i && $.setMeta("composition", i), t.dispatch($);
3710
3710
  }
3711
3711
  }
3712
3712
  return;
3713
3713
  }
3714
3714
  t.state.selection.from < t.state.selection.to && h.start == h.endB && t.state.selection instanceof V && (h.start > t.state.selection.from && h.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? h.start = t.state.selection.from : h.endA < t.state.selection.to && h.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (h.endB += t.state.selection.to - h.endA, h.endA = t.state.selection.to)), Te && Lt <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > c.from && c.doc.textBetween(h.start - c.from - 1, h.start - c.from + 1) == "  " && (h.start--, h.endA--, h.endB--);
3715
- let m = c.doc.resolveNoCache(h.start - c.from), g = c.doc.resolveNoCache(h.endB - c.from), b = d.resolve(h.start), v = m.sameParent(g) && m.parent.inlineContent && b.end() >= h.endA, C;
3716
- if ((Tn && t.input.lastIOSEnter > Date.now() - 225 && (!v || o.some((x) => x.nodeName == "DIV" || x.nodeName == "P")) || !v && m.pos < c.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && (C = J.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && C.head > m.pos) && t.someProp("handleKeyDown", (x) => x(t, Zt(13, "Enter")))) {
3715
+ let m = c.doc.resolveNoCache(h.start - c.from), g = c.doc.resolveNoCache(h.endB - c.from), b = d.resolve(h.start), w = m.sameParent(g) && m.parent.inlineContent && b.end() >= h.endA, C;
3716
+ if ((Tn && t.input.lastIOSEnter > Date.now() - 225 && (!w || o.some((x) => x.nodeName == "DIV" || x.nodeName == "P")) || !w && m.pos < c.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && (C = J.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && C.head > m.pos) && t.someProp("handleKeyDown", (x) => x(t, Zt(13, "Enter")))) {
3717
3717
  t.input.lastIOSEnter = 0;
3718
3718
  return;
3719
3719
  }
@@ -3721,13 +3721,13 @@ function hh(t, e, n, r, o) {
3721
3721
  yt && we && t.domObserver.suppressSelectionUpdates();
3722
3722
  return;
3723
3723
  }
3724
- we && h.endB == h.start && (t.input.lastChromeDelete = Date.now()), yt && !v && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == h.endA && (h.endB -= 2, g = c.doc.resolveNoCache(h.endB - c.from), setTimeout(() => {
3724
+ we && h.endB == h.start && (t.input.lastChromeDelete = Date.now()), yt && !w && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == h.endA && (h.endB -= 2, g = c.doc.resolveNoCache(h.endB - c.from), setTimeout(() => {
3725
3725
  t.someProp("handleKeyDown", function(x) {
3726
3726
  return x(t, Zt(13, "Enter"));
3727
3727
  });
3728
3728
  }, 20));
3729
3729
  let y = h.start, S = h.endA, k, M, L;
3730
- if (v) {
3730
+ if (w) {
3731
3731
  if (m.pos == g.pos)
3732
3732
  Te && Lt <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => vt(t), 20)), k = t.state.tr.delete(y, S), M = d.resolve(h.start).marksAcross(d.resolve(h.endA));
3733
3733
  else if (
@@ -3737,7 +3737,7 @@ function hh(t, e, n, r, o) {
3737
3737
  k = t.state.tr, L.type == "add" ? k.addMark(y, S, L.mark) : k.removeMark(y, S, L.mark);
3738
3738
  else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
3739
3739
  let x = m.parent.textBetween(m.parentOffset, g.parentOffset);
3740
- if (t.someProp("handleTextInput", (_) => _(t, y, S, x)))
3740
+ if (t.someProp("handleTextInput", ($) => $(t, y, S, x)))
3741
3741
  return;
3742
3742
  k = t.state.tr.insertText(x, y, S);
3743
3743
  }
@@ -4359,7 +4359,7 @@ mr.encodeInto ? Uh : Wh, qh = (t, e) => {
4359
4359
  remove: t.length - n - r,
4360
4360
  insert: e.slice(n, e.length - r)
4361
4361
  };
4362
- }, im = om, te = new G("y-sync"), zt = new G("y-undo"), Wr = new G("yjs-cursor"), sm = Math.random, am = (t) => t[pr(sm() * t.length)], Va = (t) => t === void 0 ? null : t;
4362
+ }, im = om, te = new Y("y-sync"), zt = new Y("y-undo"), Wr = new Y("yjs-cursor"), sm = Math.random, am = (t) => t[pr(sm() * t.length)], Va = (t) => t === void 0 ? null : t;
4363
4363
  class lm {
4364
4364
  constructor() {
4365
4365
  this.map = /* @__PURE__ */ new Map();
@@ -4383,13 +4383,13 @@ try {
4383
4383
  typeof localStorage < "u" && localStorage && (Vc = localStorage, cm = !1);
4384
4384
  } catch {
4385
4385
  }
4386
- const dm = Vc, Nn = typeof oe < "u" && oe.release && /node|io\.js/.test(oe.release.name) && Object.prototype.toString.call(typeof oe < "u" ? oe : 0) === "[object process]", jc = typeof window < "u" && typeof document < "u" && !Nn;
4386
+ const dm = Vc, Nn = typeof ie < "u" && ie.release && /node|io\.js/.test(ie.release.name) && Object.prototype.toString.call(typeof ie < "u" ? ie : 0) === "[object process]", jc = typeof window < "u" && typeof document < "u" && !Nn;
4387
4387
  let Qe;
4388
4388
  const um = () => {
4389
4389
  if (Qe === void 0)
4390
4390
  if (Nn) {
4391
4391
  Qe = ro();
4392
- const t = oe.argv;
4392
+ const t = ie.argv;
4393
4393
  let e = null;
4394
4394
  for (let n = 0; n < t.length; n++) {
4395
4395
  const r = t[n];
@@ -4403,11 +4403,11 @@ const um = () => {
4403
4403
  }
4404
4404
  })) : Qe = ro();
4405
4405
  return Qe;
4406
- }, Ni = (t) => um().has(t), Ei = (t) => Va(Nn ? oe.env[t.toUpperCase().replaceAll("-", "_")] : dm.getItem(t)), Hc = (t) => Ni("--" + t) || Ei(t) !== null;
4406
+ }, Ni = (t) => um().has(t), Ei = (t) => Va(Nn ? ie.env[t.toUpperCase().replaceAll("-", "_")] : dm.getItem(t)), Hc = (t) => Ni("--" + t) || Ei(t) !== null;
4407
4407
  Hc("production");
4408
- const fm = Nn && em(oe.env.FORCE_COLOR, ["true", "1", "2"]);
4408
+ const fm = Nn && em(ie.env.FORCE_COLOR, ["true", "1", "2"]);
4409
4409
  fm || !Ni("--no-colors") && // @todo deprecate --no-colors
4410
- !Hc("no-color") && (!Nn || oe.stdout.isTTY) && (!Nn || Ni("--color") || Ei("COLORTERM") !== null || (Ei("TERM") || "").includes("color"));
4410
+ !Hc("no-color") && (!Nn || ie.stdout.isTTY) && (!Nn || Ni("--color") || Ei("COLORTERM") !== null || (Ei("TERM") || "").includes("color"));
4411
4411
  const pm = (
4412
4412
  /** @type {Document} */
4413
4413
  typeof document < "u" ? document : {}
@@ -4578,7 +4578,7 @@ e.sv.get(t.id.client) > t.id.clock && !T.isDeleted(e.ds, t.id), Em = [{ light: "
4578
4578
  mapping: i
4579
4579
  } = {}) => {
4580
4580
  let s = !1;
4581
- const a = new Lm(t, i), l = new Z({
4581
+ const a = new Lm(t, i), l = new G({
4582
4582
  props: {
4583
4583
  editable: (c) => {
4584
4584
  const d = te.getState(c);
@@ -5150,7 +5150,7 @@ const Uc = (t, e, n, r, o, i) => {
5150
5150
  else {
5151
5151
  let g = f instanceof T.XmlElement && Li(f, p), b = h instanceof T.XmlElement && Li(h, m);
5152
5152
  if (g && b) {
5153
- const v = Ha(
5153
+ const w = Ha(
5154
5154
  /** @type {Y.XmlElement} */
5155
5155
  f,
5156
5156
  /** @type {PModel.Node} */
@@ -5163,7 +5163,7 @@ const Uc = (t, e, n, r, o, i) => {
5163
5163
  m,
5164
5164
  r
5165
5165
  );
5166
- v.foundMappedChild && !C.foundMappedChild ? b = !1 : !v.foundMappedChild && C.foundMappedChild || v.equalityFactor < C.equalityFactor ? g = !1 : b = !1;
5166
+ w.foundMappedChild && !C.foundMappedChild ? b = !1 : !w.foundMappedChild && C.foundMappedChild || w.equalityFactor < C.equalityFactor ? g = !1 : b = !1;
5167
5167
  }
5168
5168
  g ? (Ri(
5169
5169
  t,
@@ -5375,7 +5375,7 @@ const Hm = () => {
5375
5375
  cursorBuilder: n = Jm,
5376
5376
  selectionBuilder: r = Ym,
5377
5377
  getSelection: o = (s) => s.selection
5378
- } = {}, i = "cursor") => new Z({
5378
+ } = {}, i = "cursor") => new G({
5379
5379
  key: Wr,
5380
5380
  state: {
5381
5381
  init(s, a) {
@@ -5448,7 +5448,7 @@ const Hm = () => {
5448
5448
  const e = zt.getState(t).undoManager;
5449
5449
  if (e != null)
5450
5450
  return e.redo(), !0;
5451
- }, tg = /* @__PURE__ */ new Set(["paragraph"]), ng = (t, e) => !(t instanceof uf) || !(t.content instanceof ff) || !(t.content.type instanceof pf || t.content.type instanceof hf && e.has(t.content.type.nodeName)) || t.content.type._length === 0, rg = ({ protectedNodes: t = tg, trackedOrigins: e = [], undoManager: n = null } = {}) => new Z({
5451
+ }, tg = /* @__PURE__ */ new Set(["paragraph"]), ng = (t, e) => !(t instanceof uf) || !(t.content instanceof ff) || !(t.content.type instanceof pf || t.content.type instanceof hf && e.has(t.content.type.nodeName)) || t.content.type._length === 0, rg = ({ protectedNodes: t = tg, trackedOrigins: e = [], undoManager: n = null } = {}) => new G({
5452
5452
  key: zt,
5453
5453
  state: {
5454
5454
  init: (r, o) => {
@@ -5661,7 +5661,7 @@ function oi(t, e, n = !0) {
5661
5661
  return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
5662
5662
  }
5663
5663
  function ug(t) {
5664
- return new Z({ props: { handleKeyDown: Os(t) } });
5664
+ return new G({ props: { handleKeyDown: Os(t) } });
5665
5665
  }
5666
5666
  function Os(t) {
5667
5667
  let e = dg(t);
@@ -5684,7 +5684,7 @@ function Os(t) {
5684
5684
  return !1;
5685
5685
  };
5686
5686
  }
5687
- function ae(t, e) {
5687
+ function le(t, e) {
5688
5688
  if (typeof t == "string") {
5689
5689
  if (!e.nodes[t])
5690
5690
  throw Error(`There is no node type named '${t}' in schema.`);
@@ -5811,7 +5811,7 @@ class E {
5811
5811
  * @returns The node attrs.
5812
5812
  */
5813
5813
  static getNodeAttributes(e, n) {
5814
- const r = ae(n, e.schema), { from: o, to: i } = e.selection, s = [];
5814
+ const r = le(n, e.schema), { from: o, to: i } = e.selection, s = [];
5815
5815
  e.doc.nodesBetween(o, i, (l) => {
5816
5816
  s.push(l);
5817
5817
  });
@@ -6048,8 +6048,8 @@ class Lo {
6048
6048
  */
6049
6049
  createChain(e, n = !0) {
6050
6050
  const { editor: r, state: o, rawCommands: i } = this, { view: s } = r, a = [], l = !!e, c = e || o.tr, d = () => (!l && n && !c.getMeta("preventDispatch") && s.dispatch(c), a.every((p) => p === !0)), u = Object.entries(i).map(([p, h]) => [p, (...g) => {
6051
- const b = this.createProps(c, n), v = h(...g)(b);
6052
- return a.push(v), f;
6051
+ const b = this.createProps(c, n), w = h(...g)(b);
6052
+ return a.push(w), f;
6053
6053
  }]), f = {
6054
6054
  ...Object.fromEntries(u),
6055
6055
  run: d
@@ -6157,7 +6157,7 @@ const yg = (t, e) => {
6157
6157
  const p = a.state.tr, h = Ts(p, a.state), m = {
6158
6158
  from: n - (f[0].length - o.length),
6159
6159
  to: r
6160
- }, { commands: g, chain: b, can: v } = new Lo({
6160
+ }, { commands: g, chain: b, can: w } = new Lo({
6161
6161
  editor: e,
6162
6162
  state: h
6163
6163
  });
@@ -6167,7 +6167,7 @@ const yg = (t, e) => {
6167
6167
  match: f,
6168
6168
  commands: g,
6169
6169
  chain: b,
6170
- can: v
6170
+ can: w
6171
6171
  }) === null || !p.steps.length || (p.setMeta(s, {
6172
6172
  transform: p,
6173
6173
  from: n,
@@ -6176,8 +6176,8 @@ const yg = (t, e) => {
6176
6176
  }), a.dispatch(p), c = !0);
6177
6177
  }), c;
6178
6178
  }, bg = ({ editor: t, rules: e }) => {
6179
- const n = new Z({
6180
- key: new G("inputRulesPlugin"),
6179
+ const n = new G({
6180
+ key: new Y("inputRulesPlugin"),
6181
6181
  state: {
6182
6182
  init() {
6183
6183
  return null;
@@ -6347,7 +6347,7 @@ const xn = class xn {
6347
6347
  options: o.options,
6348
6348
  storage: o.storage,
6349
6349
  editor: e,
6350
- type: ae(o.name, this.schema)
6350
+ type: le(o.name, this.schema)
6351
6351
  }, a = D(o, "addNodeView", s);
6352
6352
  if (!a) return [];
6353
6353
  const l = (c, d, u, f) => {
@@ -6652,8 +6652,8 @@ function cd(t, e, n, r) {
6652
6652
  let b = N.empty;
6653
6653
  for (let C = h.length - 1; C >= 0; C--)
6654
6654
  b = N.from(h[C].copy(b));
6655
- let v = t.tr.step(new an(e.pos - h.length, e.pos + i.nodeSize, e.pos + g, e.pos + i.nodeSize - g, new j(b, h.length, 0), 0, !0));
6656
- n(v.scrollIntoView());
6655
+ let w = t.tr.step(new an(e.pos - h.length, e.pos + i.nodeSize, e.pos + g, e.pos + i.nodeSize - g, new j(b, h.length, 0), 0, !0));
6656
+ n(w.scrollIntoView());
6657
6657
  }
6658
6658
  return !0;
6659
6659
  }
@@ -6842,12 +6842,12 @@ function ko(t, e, n = {}) {
6842
6842
  const p = u.pos, h = f.pos;
6843
6843
  t.doc.nodesBetween(p, h, (m, g) => {
6844
6844
  if (!m.isText && !m.marks.length) return;
6845
- const b = Math.max(p, g), v = Math.min(h, g + m.nodeSize), C = v - b;
6845
+ const b = Math.max(p, g), w = Math.min(h, g + m.nodeSize), C = w - b;
6846
6846
  s += C, a.push(
6847
6847
  ...m.marks.map((y) => ({
6848
6848
  mark: y,
6849
6849
  from: b,
6850
- to: v
6850
+ to: w
6851
6851
  }))
6852
6852
  );
6853
6853
  });
@@ -6874,11 +6874,11 @@ const Wg = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
6874
6874
  });
6875
6875
  }), !0;
6876
6876
  }, Kg = (t, e = {}) => ({ state: n, dispatch: r, chain: o }) => {
6877
- const i = ae(t, n.schema);
6877
+ const i = le(t, n.schema);
6878
6878
  return i.isTextblock ? o().command(({ commands: s }) => Wa(i, e)(n) ? !0 : s.clearNodes()).command(({ state: s }) => Wa(i, e)(s, r)).run() : !1;
6879
6879
  };
6880
6880
  function Co(t, e, n = {}) {
6881
- const { from: r, to: o, empty: i } = t.selection, s = e ? ae(e, t.schema) : null, a = [];
6881
+ const { from: r, to: o, empty: i } = t.selection, s = e ? le(e, t.schema) : null, a = [];
6882
6882
  t.doc.nodesBetween(r, o, (u, f) => {
6883
6883
  if (u.isText) return;
6884
6884
  const p = Math.max(r, f), h = Math.min(o, f + u.nodeSize);
@@ -6892,7 +6892,7 @@ function Co(t, e, n = {}) {
6892
6892
  return i ? !!c.length : c.reduce((u, f) => u + f.to - f.from, 0) >= l;
6893
6893
  }
6894
6894
  const Xg = (t, e, n = {}) => ({ state: r, commands: o }) => {
6895
- const i = ae(t, r.schema), s = ae(e, r.schema);
6895
+ const i = le(t, r.schema), s = le(e, r.schema);
6896
6896
  return Co(r, i, n) ? o.setNode(s) : o.setNode(i, n);
6897
6897
  }, Jg = () => ({ state: t, dispatch: e }) => Eg(t, e), Yg = () => ({ state: t, dispatch: e }) => Ds(t, e), Gg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
6898
6898
  let i = null, s = null;
@@ -6900,7 +6900,7 @@ const Xg = (t, e, n = {}) => ({ state: r, commands: o }) => {
6900
6900
  typeof t == "string" ? t : t.name,
6901
6901
  r.schema
6902
6902
  );
6903
- return a ? (a === "node" && (i = ae(t, r.schema)), a === "mark" && (s = St(t, r.schema)), o && n.selection.ranges.forEach((l) => {
6903
+ return a ? (a === "node" && (i = le(t, r.schema)), a === "mark" && (s = St(t, r.schema)), o && n.selection.ranges.forEach((l) => {
6904
6904
  const c = l.$from.pos, d = l.$to.pos;
6905
6905
  r.doc.nodesBetween(c, d, (u, f) => {
6906
6906
  i && i === u.type && n.setNodeMarkup(f, void 0, { ...u.attrs, ...e }), s && u.marks.length && u.marks.forEach((p) => {
@@ -6922,7 +6922,7 @@ const Zg = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
6922
6922
  typeof t == "string" ? t : t.name,
6923
6923
  r.schema
6924
6924
  );
6925
- return a ? (a === "node" && (i = ae(t, r.schema)), a === "mark" && (s = St(t, r.schema)), o && n.selection.ranges.forEach((l) => {
6925
+ return a ? (a === "node" && (i = le(t, r.schema)), a === "mark" && (s = St(t, r.schema)), o && n.selection.ranges.forEach((l) => {
6926
6926
  r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, d) => {
6927
6927
  i && i === c.type && n.setNodeMarkup(d, void 0, Ka(c.attrs, e)), s && c.marks.length && c.marks.forEach((u) => {
6928
6928
  s === u.type && n.addMark(d, d + c.nodeSize, s.create(Ka(u.attrs, e)));
@@ -7143,7 +7143,7 @@ function by(t) {
7143
7143
  };
7144
7144
  }
7145
7145
  const wy = (t, e = {}) => ({ state: n, dispatch: r }) => {
7146
- const o = ae(t, n.schema);
7146
+ const o = le(t, n.schema);
7147
7147
  return fy(o, e)(n, r);
7148
7148
  }, Fo = (t, e) => {
7149
7149
  for (let n = t.depth; n > 0; n--) {
@@ -8323,24 +8323,24 @@ const wy = (t, e = {}) => ({ state: n, dispatch: r }) => {
8323
8323
  const o = t.doc.nodeAt(r);
8324
8324
  return n.node.type === o?.type && Ht(t.doc, r) && t.join(r), !0;
8325
8325
  }, Cy = (t, e, n, r = {}) => (o) => {
8326
- const { editor: i, tr: s, state: a, dispatch: l, chain: c, can: d, commands: u } = o, { extensions: f, splittableMarks: p } = i.extensionService, h = ae(t, a.schema), m = ae(e, a.schema), { selection: g, storedMarks: b } = a, { $from: v, $to: C } = g, y = v.blockRange(C), S = b || g.$to.parentOffset && g.$from.marks();
8326
+ const { editor: i, tr: s, state: a, dispatch: l, chain: c, can: d, commands: u } = o, { extensions: f, splittableMarks: p } = i.extensionService, h = le(t, a.schema), m = le(e, a.schema), { selection: g, storedMarks: b } = a, { $from: w, $to: C } = g, y = w.blockRange(C), S = b || g.$to.parentOffset && g.$from.marks();
8327
8327
  if (!y) return !1;
8328
- const k = jt(($) => Vi($.type.name, f))(g), { numbering: M } = i.converter;
8328
+ const k = jt((_) => Vi(_.type.name, f))(g), { numbering: M } = i.converter;
8329
8329
  if (y.depth >= 1 && k && y.depth - k.depth <= 1) {
8330
8330
  if (k.node.type === h) {
8331
- const { listId: $ } = k.node.attrs;
8332
- return i.converter.numbering = xy($, M), u.liftListItem(m);
8331
+ const { listId: _ } = k.node.attrs;
8332
+ return i.converter.numbering = xy(_, M), u.liftListItem(m);
8333
8333
  }
8334
8334
  if (Vi(k.node.type.name, f) && h.validContent(k.node.content) && l)
8335
8335
  return c().command(() => (s.setNodeMarkup(k.pos, h), !0)).command(() => si(s, h)).command(() => ai(s, h)).run();
8336
8336
  }
8337
- const L = ({ ensureMarks: $ = !1 }) => () => {
8338
- const H = d().wrapInList(h, r);
8339
- if ($) {
8340
- const W = S.filter((Y) => p.includes(Y.type.name));
8341
- s.ensureMarks(W);
8337
+ const L = ({ ensureMarks: _ = !1 }) => () => {
8338
+ const W = d().wrapInList(h, r);
8339
+ if (_) {
8340
+ const U = S.filter((ee) => p.includes(ee.type.name));
8341
+ s.ensureMarks(U);
8342
8342
  }
8343
- return H ? !0 : u.clearNodes();
8343
+ return W ? !0 : u.clearNodes();
8344
8344
  }, x = hd(M.definitions);
8345
8345
  return i.converter.numbering = Sy(x, M, h), r.listId = x, !n || !S || !l ? c().command(L({ ensureMarks: !1 })).wrapInList(h, r).command(() => si(s, h)).command(() => ai(s, h)).run() : c().command(L({ ensureMarks: !0 })).wrapInList(h, r).command(() => si(s, h)).command(() => ai(s, h)).run();
8346
8346
  }, hd = (t) => Math.max(...Object.keys(t).map(Number)) + 1, Sy = (t, e, n) => {
@@ -8368,7 +8368,7 @@ const wy = (t, e = {}) => ({ state: n, dispatch: r }) => {
8368
8368
  const { definitions: n, abstracts: r } = e, o = n[t].elements[0].attributes["w:val"];
8369
8369
  return delete n[t], delete r[o], e;
8370
8370
  }, My = (t) => (e) => {
8371
- const { tr: n, state: r, dispatch: o, editor: i } = e, s = ae(t, r.schema), { $from: a, $to: l, node: c } = r.selection;
8371
+ const { tr: n, state: r, dispatch: o, editor: i } = e, s = le(t, r.schema), { $from: a, $to: l, node: c } = r.selection;
8372
8372
  if (c && c.isBlock || a.depth < 2 || !a.sameParent(l))
8373
8373
  return !1;
8374
8374
  const d = a.node(-1);
@@ -8384,14 +8384,14 @@ const wy = (t, e = {}) => ({ state: n, dispatch: r }) => {
8384
8384
  const b = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
8385
8385
  for (let M = a.depth - b; M >= a.depth - 3; M--)
8386
8386
  g = N.from(a.node(M).copy(g));
8387
- const v = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, C = E.getSplittedAttributes(
8387
+ const w = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, C = E.getSplittedAttributes(
8388
8388
  u,
8389
8389
  a.node().type.name,
8390
8390
  a.node().attrs
8391
8391
  ), y = s.contentMatch.defaultType?.createAndFill(C) || void 0;
8392
8392
  g = g.append(N.from(s.createAndFill(null, y) || void 0));
8393
8393
  const S = a.before(a.depth - (b - 1));
8394
- n.replace(S, a.after(-v), new j(g, 4 - b, 0));
8394
+ n.replace(S, a.after(-w), new j(g, 4 - b, 0));
8395
8395
  let k = -1;
8396
8396
  n.doc.nodesBetween(S, n.doc.content.size, (M, L) => {
8397
8397
  if (k > -1) return !1;
@@ -8413,17 +8413,17 @@ const wy = (t, e = {}) => ({ state: n, dispatch: r }) => {
8413
8413
  if (!bt(n.doc, a.pos, 2))
8414
8414
  return !1;
8415
8415
  if (o) {
8416
- const { selection: g, storedMarks: b } = r, { splittableMarks: v } = i.extensionService, C = b || g.$to.parentOffset && g.$from.marks();
8416
+ const { selection: g, storedMarks: b } = r, { splittableMarks: w } = i.extensionService, C = b || g.$to.parentOffset && g.$from.marks();
8417
8417
  if (n.split(a.pos, 2, m).scrollIntoView(), !C || !o) return !0;
8418
- const y = C.filter((S) => v.includes(S.type.name));
8418
+ const y = C.filter((S) => w.includes(S.type.name));
8419
8419
  n.ensureMarks(y);
8420
8420
  }
8421
8421
  return !0;
8422
8422
  }, Ay = (t) => ({ state: e, dispatch: n }) => {
8423
- const r = ae(t, e.schema);
8423
+ const r = le(t, e.schema);
8424
8424
  return by(r)(e, n);
8425
8425
  }, Oy = (t) => ({ state: e, dispatch: n }) => {
8426
- const r = ae(t, e.schema);
8426
+ const r = le(t, e.schema);
8427
8427
  return my(r)(e, n);
8428
8428
  }, Ty = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8429
8429
  __proto__: null,
@@ -8464,7 +8464,7 @@ const wy = (t, e = {}) => ({ state: n, dispatch: r }) => {
8464
8464
  unsetMark: Hg,
8465
8465
  updateAttributes: Gg,
8466
8466
  wrapInList: wy
8467
- }, Symbol.toStringTag, { value: "Module" })), Dy = Q.create({
8467
+ }, Symbol.toStringTag, { value: "Module" })), Dy = Z.create({
8468
8468
  name: "commands",
8469
8469
  addCommands() {
8470
8470
  return { ...Ty };
@@ -8492,7 +8492,7 @@ const wy = (t, e = {}) => ({ state: n, dispatch: r }) => {
8492
8492
  () => e.joinForward(),
8493
8493
  () => e.selectNodeForward()
8494
8494
  ]);
8495
- }, Iy = Q.create({
8495
+ }, Iy = Z.create({
8496
8496
  name: "keymap",
8497
8497
  addShortcuts() {
8498
8498
  const t = {
@@ -8521,22 +8521,22 @@ const wy = (t, e = {}) => ({ state: n, dispatch: r }) => {
8521
8521
  };
8522
8522
  return Ey() || Ny() ? n : e;
8523
8523
  }
8524
- }), Ry = Q.create({
8524
+ }), Ry = Z.create({
8525
8525
  name: "editable",
8526
8526
  addPmPlugins() {
8527
- return [new Z({
8528
- key: new G("editable"),
8527
+ return [new G({
8528
+ key: new Y("editable"),
8529
8529
  props: {
8530
8530
  editable: () => this.editor.options.editable
8531
8531
  }
8532
8532
  })];
8533
8533
  }
8534
- }), Ly = Q.create({
8534
+ }), Ly = Z.create({
8535
8535
  name: "editorFocus",
8536
8536
  addPmPlugins() {
8537
8537
  const t = this.editor;
8538
- return [new Z({
8539
- key: new G("editorFocus"),
8538
+ return [new G({
8539
+ key: new Y("editorFocus"),
8540
8540
  props: {
8541
8541
  handleDOMEvents: {
8542
8542
  focus: (n, r) => {
@@ -8766,7 +8766,7 @@ const vd = (t) => {
8766
8766
  getMarkType: St,
8767
8767
  getMarksBetween: By,
8768
8768
  getMarksFromSelection: Do,
8769
- getNodeType: ae,
8769
+ getNodeType: le,
8770
8770
  getSchemaTypeByName: Jn,
8771
8771
  getSchemaTypeNameByName: Nr,
8772
8772
  isActive: gd,
@@ -8824,7 +8824,7 @@ const vd = (t) => {
8824
8824
  });
8825
8825
  });
8826
8826
  }), e ? n.filter(({ mark: o }) => o.attrs.id === e) : n) : n;
8827
- }, de = new G("TrackChangesBase"), $y = (t = {}) => new Z({
8827
+ }, de = new Y("TrackChangesBase"), $y = (t = {}) => new G({
8828
8828
  key: de,
8829
8829
  state: {
8830
8830
  init(e, n) {
@@ -8976,9 +8976,9 @@ const vd = (t) => {
8976
8976
  node: m
8977
8977
  });
8978
8978
  const g = f;
8979
- g && r.filter((v) => v.parentCommentId === g).sort((v, C) => v.createdTime - C.createdTime).forEach((v) => {
8980
- const C = Ja(v), y = n.nodes.commentRangeStart.create(C);
8981
- s.add(v.commentId), o.push({
8979
+ g && r.filter((w) => w.parentCommentId === g).sort((w, C) => w.createdTime - C.createdTime).forEach((w) => {
8980
+ const C = Ja(w), y = n.nodes.commentRangeStart.create(C);
8981
+ s.add(w.commentId), o.push({
8982
8982
  pos: l,
8983
8983
  node: y
8984
8984
  });
@@ -9053,7 +9053,7 @@ const vd = (t) => {
9053
9053
  if (!r.options.isInternal && n) return "transparent";
9054
9054
  const o = me.getState(r.state), i = n ? o.internalColor : o.externalColor, s = t == e ? "44" : "22";
9055
9055
  return `${i}${s}`;
9056
- }, on = new G("paginationPlugin"), qy = async (t) => {
9056
+ }, on = new Y("paginationPlugin"), qy = async (t) => {
9057
9057
  if (!t.converter) return;
9058
9058
  const e = { headers: {}, footers: {} }, n = t.converter.headerIds, r = t.converter.footerIds;
9059
9059
  for (let o in n) {
@@ -9119,7 +9119,7 @@ const vd = (t) => {
9119
9119
  }), n({ height: d, sectionEditor: c, sectionContainer: r });
9120
9120
  });
9121
9121
  });
9122
- }), Fs = [Ve, ue, xe], me = new G("comments"), Ky = Q.create({
9122
+ }), Fs = [Ve, ue, xe], me = new Y("comments"), Ky = Z.create({
9123
9123
  name: "comments",
9124
9124
  addCommands() {
9125
9125
  return {
@@ -9168,7 +9168,7 @@ const vd = (t) => {
9168
9168
  addPmPlugins() {
9169
9169
  const t = this.editor;
9170
9170
  let e, n;
9171
- return t.options.isHeadless ? [] : [new Z({
9171
+ return t.options.isHeadless ? [] : [new G({
9172
9172
  key: me,
9173
9173
  state: {
9174
9174
  init() {
@@ -9206,11 +9206,11 @@ const vd = (t) => {
9206
9206
  let g = Xy(a.doc, m);
9207
9207
  if (h && (g = d.activeThreadId), n !== g) {
9208
9208
  n = g;
9209
- const v = {
9209
+ const w = {
9210
9210
  type: eo.SELECTED,
9211
9211
  activeCommentId: n || null
9212
9212
  };
9213
- e = !0, t.emit("commentsUpdate", v);
9213
+ e = !0, t.emit("commentsUpdate", w);
9214
9214
  const { tr: C } = t.view.state, { dispatch: y } = t.view;
9215
9215
  C.setMeta(me, { type: "force" }), y(C);
9216
9216
  }
@@ -9231,41 +9231,41 @@ const vd = (t) => {
9231
9231
  if (i && !i.eq(c) && (e = !0), !e) return;
9232
9232
  i = c, e = !1;
9233
9233
  const u = [], f = {};
9234
- c.descendants((b, v) => {
9234
+ c.descendants((b, w) => {
9235
9235
  const { marks: C = [] } = b, y = C.filter(
9236
9236
  (M) => M.type.name === Re
9237
9237
  );
9238
9238
  let S = !1;
9239
9239
  y.forEach((M) => {
9240
- const { attrs: L } = M, x = L.commentId || L.importedId, _ = s.coordsAtPos(v);
9240
+ const { attrs: L } = M, x = L.commentId || L.importedId, $ = s.coordsAtPos(w);
9241
9241
  Ga({
9242
9242
  allCommentPositions: f,
9243
9243
  threadId: x,
9244
- pos: v,
9245
- currentBounds: _,
9244
+ pos: w,
9245
+ currentBounds: $,
9246
9246
  node: b
9247
9247
  });
9248
- const $ = L.internal;
9248
+ const _ = L.internal;
9249
9249
  S || (S = n === x);
9250
- let H = Wy({ activeThreadId: n, threadId: x, isInternal: $, editor: t });
9251
- const W = z.inline(v, v + b.nodeSize, {
9252
- style: `background-color: ${H};`,
9250
+ let W = Wy({ activeThreadId: n, threadId: x, isInternal: _, editor: t });
9251
+ const U = z.inline(w, w + b.nodeSize, {
9252
+ style: `background-color: ${W};`,
9253
9253
  "data-thread-id": x,
9254
9254
  class: "comment-highlight"
9255
9255
  });
9256
- S && n !== x || u.push(W);
9256
+ S && n !== x || u.push(U);
9257
9257
  });
9258
9258
  const k = Md({
9259
9259
  doc: c,
9260
- from: v,
9261
- to: v + b.nodeSize
9260
+ from: w,
9261
+ to: w + b.nodeSize
9262
9262
  });
9263
9263
  if (k) {
9264
- const M = s.coordsAtPos(v), { id: L } = k.mark.attrs;
9264
+ const M = s.coordsAtPos(w), { id: L } = k.mark.attrs;
9265
9265
  Ga({
9266
9266
  allCommentPositions: f,
9267
9267
  threadId: L,
9268
- pos: v,
9268
+ pos: w,
9269
9269
  currentBounds: M,
9270
9270
  node: b
9271
9271
  });
@@ -9425,7 +9425,7 @@ const vd = (t) => {
9425
9425
  if (!M.length) return;
9426
9426
  if (M.find((x) => x.attrs.id === p) && (g = y), g) return !1;
9427
9427
  });
9428
- const { deletionText: b, trackedChangeText: v } = Yy({
9428
+ const { deletionText: b, trackedChangeText: w } = Yy({
9429
9429
  state: o,
9430
9430
  node: g || h,
9431
9431
  mark: s,
@@ -9434,7 +9434,7 @@ const vd = (t) => {
9434
9434
  isDeletionInsertion: m,
9435
9435
  deletionNodes: n
9436
9436
  });
9437
- if (!b && !v)
9437
+ if (!b && !w)
9438
9438
  return;
9439
9439
  const C = {
9440
9440
  event: eo.ADD,
@@ -9442,7 +9442,7 @@ const vd = (t) => {
9442
9442
  documentId: i,
9443
9443
  changeId: p,
9444
9444
  trackedChangeType: m ? "both" : c,
9445
- trackedChangeText: v,
9445
+ trackedChangeText: w,
9446
9446
  deletedText: e.deletionMark ? b : null,
9447
9447
  author: d,
9448
9448
  authorEmail: u,
@@ -9470,7 +9470,7 @@ const Ad = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
9470
9470
  const g = t.apply(r).tr;
9471
9471
  if (g.maybeStep(p).failed)
9472
9472
  return;
9473
- const b = p.getMap().map(p.to), v = yd({
9473
+ const b = p.getMap().map(p.to), w = yd({
9474
9474
  tr: g,
9475
9475
  from: p.from,
9476
9476
  to: b,
@@ -9479,17 +9479,17 @@ const Ad = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
9479
9479
  }), C = new $t(p.from, p.to, g.doc.slice(p.from, b));
9480
9480
  r.step(C);
9481
9481
  const y = o.maps.length - 1;
9482
- o.appendMap(C.getMap(), y), p.from !== b && (m.insertedMark = v, m.step = C), r.selection.eq(g.selection) || r.setSelection(g.selection);
9482
+ o.appendMap(C.getMap(), y), p.from !== b && (m.insertedMark = w, m.step = C), r.selection.eq(g.selection) || r.setSelection(g.selection);
9483
9483
  }
9484
9484
  if (n.from !== n.to) {
9485
- const { deletionMark: g, deletionMap: b, nodes: v } = bd({
9485
+ const { deletionMark: g, deletionMap: b, nodes: w } = bd({
9486
9486
  tr: r,
9487
9487
  from: n.from,
9488
9488
  to: n.to,
9489
9489
  user: s,
9490
9490
  date: a
9491
9491
  });
9492
- m.deletionNodes = v, m.deletionMark = g, o.appendMapping(b);
9492
+ m.deletionNodes = w, m.deletionMark = g, o.appendMapping(b);
9493
9493
  }
9494
9494
  r.setMeta(de, m), r.setMeta(me, { type: "force" });
9495
9495
  }, Qy = () => {
@@ -9505,7 +9505,7 @@ const Ad = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
9505
9505
  if (r.addMark(Math.max(n.from, d), Math.min(n.to, d + c.nodeSize), n.mark), ["bold", "italic", "strike", "underline", "textStyle"].includes(n.mark.type.name) && !c.marks.find((h) => h.type === n.mark.type)) {
9506
9506
  const h = c.marks.find((b) => b.type.name === xe);
9507
9507
  let m = [], g = [];
9508
- if (h ? h.attrs.before.find((v) => v.type === "textStyle" ? v.type === n.mark.type.name && cr(v.attrs, n.mark.attrs) : v.type === n.mark.type.name) ? (g = [...h.attrs.before.filter((v) => v.type !== n.mark.type.name)], m = [...h.attrs.after]) : (g = [...h.attrs.before], m = [
9508
+ if (h ? h.attrs.before.find((w) => w.type === "textStyle" ? w.type === n.mark.type.name && cr(w.attrs, n.mark.attrs) : w.type === n.mark.type.name) ? (g = [...h.attrs.before.filter((w) => w.type !== n.mark.type.name)], m = [...h.attrs.after]) : (g = [...h.attrs.before], m = [
9509
9509
  ...h.attrs.after,
9510
9510
  {
9511
9511
  type: n.mark.type.name,
@@ -9984,8 +9984,8 @@ const Xs = class Xs extends og {
9984
9984
  "word/styles.xml": String(l).replace(/&/gi, "&amp;")
9985
9985
  };
9986
9986
  if (o.length) {
9987
- const b = this.converter.schemaToXml(this.converter.convertedXml["word/comments.xml"].elements[0]), v = this.converter.schemaToXml(this.converter.convertedXml["word/commentsExtended.xml"].elements[0]), C = this.converter.schemaToXml(this.converter.convertedXml["word/commentsExtensible.xml"].elements[0]), y = this.converter.schemaToXml(this.converter.convertedXml["word/commentsIds.xml"].elements[0]);
9988
- h["word/comments.xml"] = String(b), h["word/commentsExtended.xml"] = String(v), h["word/commentsExtensible.xml"] = String(C), h["word/commentsIds.xml"] = String(y);
9987
+ const b = this.converter.schemaToXml(this.converter.convertedXml["word/comments.xml"].elements[0]), w = this.converter.schemaToXml(this.converter.convertedXml["word/commentsExtended.xml"].elements[0]), C = this.converter.schemaToXml(this.converter.convertedXml["word/commentsExtensible.xml"].elements[0]), y = this.converter.schemaToXml(this.converter.convertedXml["word/commentsIds.xml"].elements[0]);
9988
+ h["word/comments.xml"] = String(b), h["word/commentsExtended.xml"] = String(w), h["word/commentsExtensible.xml"] = String(C), h["word/commentsIds.xml"] = String(y);
9989
9989
  }
9990
9990
  const g = await new ea().updateZip({
9991
9991
  docx: this.options.content,
@@ -10017,7 +10017,7 @@ const Xs = class Xs extends og {
10017
10017
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
10018
10018
  */
10019
10019
  processCollaborationMigrations() {
10020
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.15"), !this.options.ydoc) return;
10020
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.17"), !this.options.ydoc) return;
10021
10021
  let r = this.options.ydoc.getMap("meta").get("version");
10022
10022
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10023
10023
  const o = Za(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -10237,7 +10237,7 @@ Bd = function() {
10237
10237
  }
10238
10238
  };
10239
10239
  let ji = Xs;
10240
- class ee {
10240
+ class Q {
10241
10241
  constructor(e) {
10242
10242
  I(this, "type", "node");
10243
10243
  I(this, "name", "node");
@@ -10265,7 +10265,7 @@ class ee {
10265
10265
  * @param args Arguments for the constructor.
10266
10266
  */
10267
10267
  static create(...e) {
10268
- return new ee(...e);
10268
+ return new Q(...e);
10269
10269
  }
10270
10270
  }
10271
10271
  class Fe {
@@ -10304,7 +10304,7 @@ function kt(t = "0") {
10304
10304
  const e = t || "0", n = Number.parseFloat(e), o = (e.match(rb)?.[1] ?? "").toLowerCase();
10305
10305
  return [n, ob.includes(o) ? o : null];
10306
10306
  }
10307
- const _d = Q.create({
10307
+ const _d = Z.create({
10308
10308
  name: "color",
10309
10309
  addOptions() {
10310
10310
  return {
@@ -10331,7 +10331,7 @@ const _d = Q.create({
10331
10331
  unsetColor: () => ({ chain: t }) => t().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
10332
10332
  };
10333
10333
  }
10334
- }), zd = Q.create({
10334
+ }), zd = Z.create({
10335
10335
  name: "fontFamily",
10336
10336
  addOptions() {
10337
10337
  return {
@@ -10358,7 +10358,7 @@ const _d = Q.create({
10358
10358
  unsetFontFamily: () => ({ chain: t }) => t().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
10359
10359
  };
10360
10360
  }
10361
- }), $d = Q.create({
10361
+ }), $d = Z.create({
10362
10362
  name: "fontSize",
10363
10363
  addOptions() {
10364
10364
  return {
@@ -10401,7 +10401,7 @@ const _d = Q.create({
10401
10401
  unsetFontSize: () => ({ chain: t }) => t().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
10402
10402
  };
10403
10403
  }
10404
- }), Vd = Q.create({
10404
+ }), Vd = Z.create({
10405
10405
  name: "textAlign",
10406
10406
  addOptions() {
10407
10407
  return {
@@ -10440,7 +10440,7 @@ const _d = Q.create({
10440
10440
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
10441
10441
  };
10442
10442
  }
10443
- }), jd = Q.create({
10443
+ }), jd = Z.create({
10444
10444
  name: "textIndent",
10445
10445
  addOptions() {
10446
10446
  return {
@@ -10496,7 +10496,7 @@ const _d = Q.create({
10496
10496
  }).every((e) => e)
10497
10497
  };
10498
10498
  }
10499
- }), Hd = Q.create({
10499
+ }), Hd = Z.create({
10500
10500
  name: "lineHeight",
10501
10501
  addOptions() {
10502
10502
  return {
@@ -10530,7 +10530,7 @@ const _d = Q.create({
10530
10530
  unsetLineHeight: () => ({ commands: t }) => this.options.types.map((e) => t.resetAttributes(e, "lineHeight")).every((e) => e)
10531
10531
  };
10532
10532
  }
10533
- }), Ud = Q.create({
10533
+ }), Ud = Z.create({
10534
10534
  name: "formatCommands",
10535
10535
  addOptions() {
10536
10536
  return {};
@@ -10585,7 +10585,7 @@ const _d = Q.create({
10585
10585
  }
10586
10586
  });
10587
10587
  function ib(t = {}) {
10588
- return new Z({
10588
+ return new G({
10589
10589
  view(e) {
10590
10590
  return new sb(e, t);
10591
10591
  }
@@ -10663,7 +10663,7 @@ class sb {
10663
10663
  (e.target == this.editorView.dom || !this.editorView.dom.contains(e.relatedTarget)) && this.setCursor(null);
10664
10664
  }
10665
10665
  }
10666
- const Wd = Q.create({
10666
+ const Wd = Z.create({
10667
10667
  name: "dropCursor",
10668
10668
  addOptions() {
10669
10669
  return {
@@ -10811,7 +10811,7 @@ function lb(t) {
10811
10811
  return !0;
10812
10812
  }
10813
10813
  function cb() {
10814
- return new Z({
10814
+ return new G({
10815
10815
  props: {
10816
10816
  decorations: pb,
10817
10817
  createSelectionBetween(t, e, n) {
@@ -10869,7 +10869,7 @@ function pb(t) {
10869
10869
  let e = document.createElement("div");
10870
10870
  return e.className = "ProseMirror-gapcursor", F.create(t.doc, [z.widget(t.selection.head, e, { key: "gapcursor" })]);
10871
10871
  }
10872
- const hb = Q.create({
10872
+ const hb = Z.create({
10873
10873
  name: "gapCursor",
10874
10874
  addPmPlugins() {
10875
10875
  return [
@@ -10885,7 +10885,7 @@ const hb = Q.create({
10885
10885
  })) ?? null
10886
10886
  };
10887
10887
  }
10888
- }), mb = new G("collaboration"), gb = Q.create({
10888
+ }), mb = new Y("collaboration"), gb = Z.create({
10889
10889
  name: "collaboration",
10890
10890
  priority: 1e3,
10891
10891
  addOptions() {
@@ -10958,7 +10958,7 @@ const hb = Q.create({
10958
10958
  return;
10959
10959
  }
10960
10960
  r.on("synced", o);
10961
- }, kb = Q.create({
10961
+ }, kb = Z.create({
10962
10962
  name: "collaborationCursor",
10963
10963
  priority: 999,
10964
10964
  addOptions() {
@@ -10984,7 +10984,7 @@ const hb = Q.create({
10984
10984
  e.classList.add("ProseMirror-yjs-cursor"), e.setAttribute("style", `border-color: ${t.color}`);
10985
10985
  const n = document.createElement("div");
10986
10986
  return n.setAttribute("style", `background-color: ${t.color}`), n.insertBefore(document.createTextNode(t.name || t.email), null), e.insertBefore(n, null), e;
10987
- }, qd = ee.create({
10987
+ }, qd = Q.create({
10988
10988
  name: "doc",
10989
10989
  topNode: !0,
10990
10990
  content: "block+",
@@ -11001,11 +11001,11 @@ const hb = Q.create({
11001
11001
  }
11002
11002
  };
11003
11003
  }
11004
- }), Kd = ee.create({
11004
+ }), Kd = Q.create({
11005
11005
  name: "text",
11006
11006
  group: "inline",
11007
11007
  inline: !0
11008
- }), Sb = ee.create({
11008
+ }), Sb = Q.create({
11009
11009
  name: "run",
11010
11010
  group: "inline",
11011
11011
  content: "text*",
@@ -11052,7 +11052,7 @@ function xo(t) {
11052
11052
  }
11053
11053
  });
11054
11054
  }
11055
- const Qa = /^\s*([-+*])\s$/, Xd = ee.create({
11055
+ const Qa = /^\s*([-+*])\s$/, Xd = Q.create({
11056
11056
  name: "bulletList",
11057
11057
  group: "block list",
11058
11058
  content() {
@@ -11119,8 +11119,8 @@ const Qa = /^\s*([-+*])\s$/, Xd = ee.create({
11119
11119
  }
11120
11120
  });
11121
11121
  function xb(t = {}) {
11122
- return new Z({
11123
- key: new G("orderedListSync"),
11122
+ return new G({
11123
+ key: new Y("orderedListSync"),
11124
11124
  appendTransaction: (e, n, r) => {
11125
11125
  if (!(e.some((d) => d.docChanged) && !n.doc.eq(r.doc)))
11126
11126
  return;
@@ -11145,7 +11145,7 @@ function xb(t = {}) {
11145
11145
  let [f] = u, p = f.node.attrs.order;
11146
11146
  u.forEach((h, m) => {
11147
11147
  if (m === 0) return;
11148
- let { node: g, pos: b } = h, v = u[m - 1], C = p + v.node.childCount;
11148
+ let { node: g, pos: b } = h, w = u[m - 1], C = p + w.node.childCount;
11149
11149
  g.attrs.order !== C && (s.setNodeMarkup(b, void 0, {
11150
11150
  ...g.attrs,
11151
11151
  order: C
@@ -11158,9 +11158,9 @@ function xb(t = {}) {
11158
11158
  function Mb() {
11159
11159
  return Math.floor(Math.random() * 4294967295).toString();
11160
11160
  }
11161
- function Ab(t = {}) {
11162
- return new Z({
11163
- key: new G("orderedListMarker"),
11161
+ function Ab(t) {
11162
+ return new G({
11163
+ key: new Y("orderedListMarker"),
11164
11164
  appendTransaction: (e, n, r) => {
11165
11165
  if (!(e.some((c) => c.docChanged) && !n.doc.eq(r.doc)))
11166
11166
  return;
@@ -11169,40 +11169,43 @@ function Ab(t = {}) {
11169
11169
  return;
11170
11170
  let l = !1;
11171
11171
  return Array.from(a).forEach(([c, d]) => {
11172
- let u = d, f = c.type.name === "bulletList";
11173
- c.attrs.syncId;
11174
- let p = c.childCount !== u.length;
11175
- if (f) {
11176
- u.forEach((C) => Db(s, C)), l = !0;
11172
+ const u = d[0];
11173
+ let f = d, p = u.node.type.name === "bulletList";
11174
+ u.node.attrs.syncId;
11175
+ let h = u.node.childCount !== f.length;
11176
+ if (p) {
11177
+ f.forEach((y) => Db(s, y)), l = !0;
11177
11178
  return;
11178
11179
  }
11179
- if (p) {
11180
- let C = Tb({ state: r, list: c });
11181
- C.length && (u = C);
11180
+ if (h) {
11181
+ let y = Tb({ state: r, list: u });
11182
+ y.length && (f = y);
11182
11183
  }
11183
- let h = u[0], m = Nb({ state: r, listItems: u }), g = Jd(), b = {
11184
- lvlText: h.node.attrs.lvlText ?? g.lvlText,
11185
- listLevel: h.node.attrs.listLevel ?? g.listLevel,
11186
- listNumberingType: h.node.attrs.listNumberingType ?? g.listNumberingType
11184
+ let m = f[0], g = Nb({ state: r, listItems: f }), b = Jd(), w = {
11185
+ lvlText: m.node.attrs.lvlText ?? b.lvlText,
11186
+ listLevel: m.node.attrs.listLevel ?? b.listLevel,
11187
+ listNumberingType: m.node.attrs.listNumberingType ?? b.listNumberingType
11187
11188
  };
11188
- b.lvlText === m.lvlText && b.listNumberingType === m.listNumberingType && el(b.listLevel, m.listLevel) || (s.setNodeMarkup(h.pos, void 0, {
11189
- ...h.node.attrs,
11190
- ...m
11191
- }), l = !0, b = m), u.forEach((C, y) => {
11192
- if (y === 0)
11189
+ w.lvlText === g.lvlText && w.listNumberingType === g.listNumberingType && el(w.listLevel, g.listLevel) || (s.setNodeMarkup(m.pos, void 0, {
11190
+ ...m.node.attrs,
11191
+ ...g
11192
+ }), l = !0, w = g), f.forEach((y, S) => {
11193
+ if (S === 0)
11193
11194
  return;
11194
- let { node: S, pos: k } = C, { lvlText: M, listLevel: L, listNumberingType: x } = S.attrs, _ = [...b.listLevel.slice(0, -1), b.listLevel.at(-1) + 1];
11195
- if (!(M === b.lvlText && x === b.listNumberingType && el(L, _))) {
11196
- let { selection: H, storedMarks: W } = r, Y = W || H.$to.parentOffset && H.$from.marks();
11197
- s.setNodeMarkup(k, void 0, {
11198
- ...S.attrs,
11195
+ let { node: k, pos: M } = y, { lvlText: L, listLevel: x, listNumberingType: $ } = k.attrs;
11196
+ Array.isArray(w.listLevel) || (w.listLevel = JSON.parse(w.listLevel));
11197
+ let _ = [...w.listLevel.slice(0, -1), w.listLevel.at(-1) + 1];
11198
+ if (!(L === w.lvlText && $ === w.listNumberingType && el(x, _))) {
11199
+ let { selection: U, storedMarks: ee } = r, oe = ee || U.$to.parentOffset && U.$from.marks();
11200
+ s.setNodeMarkup(M, void 0, {
11201
+ ...k.attrs,
11199
11202
  listLevel: _,
11200
- lvlText: b.lvlText,
11201
- listNumberingType: b.listNumberingType
11202
- }), Y && s.ensureMarks(Y), l = !0;
11203
+ lvlText: w.lvlText,
11204
+ listNumberingType: w.listNumberingType
11205
+ }), oe && s.ensureMarks(oe), l = !0;
11203
11206
  }
11204
- b = {
11205
- ...b,
11207
+ w = {
11208
+ ...w,
11206
11209
  listLevel: _
11207
11210
  };
11208
11211
  });
@@ -11215,8 +11218,8 @@ function Ob(t) {
11215
11218
  return e.descendants((r, o) => {
11216
11219
  let { attrs: i } = r, s = r.type.name === "listItem", a = !!i.listLevel?.length, l = !!i.lvlText, c = i.listNumberingType && i.listNumberingType !== "bullet";
11217
11220
  if (s && a && l && c) {
11218
- let u = e.resolve(o).parent;
11219
- n.get(u) || n.set(u, []), n.get(u).push({ node: r, pos: o });
11221
+ const f = `${e.resolve(o).parent.attrs.listId}, ${r.attrs.listLevel.slice(0, -1)}`;
11222
+ n.get(f) || n.set(f, []), n.get(f).push({ node: r, pos: o });
11220
11223
  }
11221
11224
  }), n;
11222
11225
  }
@@ -11264,7 +11267,7 @@ function Nb({ state: t, listItems: e }) {
11264
11267
  listNumberingType: s
11265
11268
  };
11266
11269
  }
11267
- const tl = /^(\d+)\.\s$/, Yd = ee.create({
11270
+ const tl = /^(\d+)\.\s$/, Yd = Q.create({
11268
11271
  name: "orderedList",
11269
11272
  group: "block list",
11270
11273
  content() {
@@ -11365,8 +11368,8 @@ const tl = /^(\d+)\.\s$/, Yd = ee.create({
11365
11368
  let f = i.pos;
11366
11369
  if (!o.liftEmptyBlock(n, e))
11367
11370
  return !1;
11368
- let { $from: p } = r.selection, h = r.doc.nodeAt(f), m = p.after(), g = r.doc.nodeAt(m), b = h?.type.name === this.name, v = g?.type.name === this.name;
11369
- if (b && v) {
11371
+ let { $from: p } = r.selection, h = r.doc.nodeAt(f), m = p.after(), g = r.doc.nodeAt(m), b = h?.type.name === this.name, w = g?.type.name === this.name;
11372
+ if (b && w) {
11370
11373
  let C = h.attrs.order || 1, y = h.childCount, S = h.attrs.syncId, k = y + C, M = S || Mb();
11371
11374
  r.setNodeMarkup(m, void 0, {
11372
11375
  ...g.attrs,
@@ -11389,7 +11392,7 @@ const tl = /^(\d+)\.\s$/, Yd = ee.create({
11389
11392
  };
11390
11393
  },
11391
11394
  addPmPlugins() {
11392
- return [Ab(), xb()];
11395
+ return [Ab(this.editor), xb()];
11393
11396
  },
11394
11397
  addInputRules() {
11395
11398
  let t = xo({
@@ -11453,8 +11456,8 @@ const tl = /^(\d+)\.\s$/, Yd = ee.create({
11453
11456
  return e;
11454
11457
  };
11455
11458
  function zb(t = {}) {
11456
- return new Z({
11457
- key: new G("styledListMarker"),
11459
+ return new G({
11460
+ key: new Y("styledListMarker"),
11458
11461
  state: {
11459
11462
  init(e, n) {
11460
11463
  const r = [
@@ -11494,8 +11497,8 @@ function nl(t) {
11494
11497
  a.forEach((g) => {
11495
11498
  let { attrs: b } = g;
11496
11499
  if (b.fontSize && !d) {
11497
- let [v, C] = kt(b.fontSize);
11498
- Number.isNaN(v) || (C = C ?? "pt", d = `${v}${C}`);
11500
+ let [w, C] = kt(b.fontSize);
11501
+ Number.isNaN(w) || (C = C ?? "pt", d = `${w}${C}`);
11499
11502
  }
11500
11503
  b.fontFamily && !u && (u = b.fontFamily);
11501
11504
  });
@@ -11540,7 +11543,7 @@ function $b(t, e, n) {
11540
11543
  function Vb(t) {
11541
11544
  return t.childCount === 1 && t.firstChild?.type.name === "paragraph" && t.firstChild?.content.size === 0;
11542
11545
  }
11543
- const Qd = ee.create({
11546
+ const Qd = Q.create({
11544
11547
  name: "listItem",
11545
11548
  content: "paragraph* block*",
11546
11549
  defining: !0,
@@ -11637,7 +11640,7 @@ const Qd = ee.create({
11637
11640
  addPmPlugins() {
11638
11641
  return [zb()];
11639
11642
  }
11640
- }), oo = new G("linkedStyles"), jb = Q.create({
11643
+ }), oo = new Y("linkedStyles"), jb = Z.create({
11641
11644
  name: "linkedStyles",
11642
11645
  addPmPlugins() {
11643
11646
  return [Hb(this.editor)];
@@ -11660,7 +11663,7 @@ const Qd = ee.create({
11660
11663
  }
11661
11664
  };
11662
11665
  }
11663
- }), Hb = (t) => new Z({
11666
+ }), Hb = (t) => new G({
11664
11667
  key: oo,
11665
11668
  state: {
11666
11669
  init(e, { doc: n, selection: r }) {
@@ -11759,7 +11762,7 @@ const Qd = ee.create({
11759
11762
  e += `${r ? `font-family: ${r};` : ""} ${o ? `font-size: ${o};` : ""}`;
11760
11763
  }
11761
11764
  return e.trim();
11762
- }, zk = (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)) : [], eu = ee.create({
11765
+ }, zk = (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)) : [], eu = Q.create({
11763
11766
  name: "paragraph",
11764
11767
  priority: 1e3,
11765
11768
  group: "block",
@@ -11830,7 +11833,7 @@ const Qd = ee.create({
11830
11833
  renderDOM({ htmlAttributes: t }) {
11831
11834
  return ["p", E.mergeAttributes(this.options.htmlAttributes, t), 0];
11832
11835
  }
11833
- }), tu = ee.create({
11836
+ }), tu = Q.create({
11834
11837
  name: "heading",
11835
11838
  group: "block",
11836
11839
  content: "inline*",
@@ -11873,7 +11876,7 @@ const Qd = ee.create({
11873
11876
  {}
11874
11877
  );
11875
11878
  }
11876
- }), Jb = ee.create({
11879
+ }), Jb = Q.create({
11877
11880
  name: "commentRangeStart",
11878
11881
  group: "inline",
11879
11882
  inline: !0,
@@ -11904,7 +11907,7 @@ const Qd = ee.create({
11904
11907
  }
11905
11908
  };
11906
11909
  }
11907
- }), Yb = ee.create({
11910
+ }), Yb = Q.create({
11908
11911
  name: "commentRangeEnd",
11909
11912
  group: "inline",
11910
11913
  inline: !0,
@@ -11931,7 +11934,7 @@ const Qd = ee.create({
11931
11934
  }
11932
11935
  };
11933
11936
  }
11934
- }), Gb = ee.create({
11937
+ }), Gb = Q.create({
11935
11938
  name: "commentReference",
11936
11939
  group: "inline",
11937
11940
  inline: !0,
@@ -11983,7 +11986,7 @@ const Qd = ee.create({
11983
11986
  renderDOM({ htmlAttributes: t }) {
11984
11987
  return [Re, E.mergeAttributes(this.options.htmlAttributes, t)];
11985
11988
  }
11986
- }), Qb = ee.create({
11989
+ }), Qb = Q.create({
11987
11990
  name: "tab",
11988
11991
  group: "inline",
11989
11992
  inline: !0,
@@ -12017,9 +12020,9 @@ const Qd = ee.create({
12017
12020
  },
12018
12021
  addPmPlugins() {
12019
12022
  const { view: t } = this.editor;
12020
- return [new Z({
12023
+ return [new G({
12021
12024
  name: "tabPlugin",
12022
- key: new G("tabPlugin"),
12025
+ key: new Y("tabPlugin"),
12023
12026
  state: {
12024
12027
  init(n, r) {
12025
12028
  let o = il(r, t);
@@ -12073,7 +12076,7 @@ function t0(t) {
12073
12076
  const i = t.node(1).firstChild.marks.find((a) => a.type.name === "textStyle");
12074
12077
  return `${(parseInt(i?.attrs.fontSize) * 1.333 || 16) * 1.1}px`;
12075
12078
  }
12076
- const nu = ee.create({
12079
+ const nu = Q.create({
12077
12080
  name: "lineBreak",
12078
12081
  group: "inline",
12079
12082
  inline: !0,
@@ -12083,7 +12086,7 @@ const nu = ee.create({
12083
12086
  renderDOM() {
12084
12087
  return ["br", {}, 0];
12085
12088
  }
12086
- }), ru = ee.create({
12089
+ }), ru = Q.create({
12087
12090
  name: "hardBreak",
12088
12091
  group: "inline",
12089
12092
  inline: !0,
@@ -12131,13 +12134,13 @@ function sl(t, e, n, r, o, i) {
12131
12134
  const m = o === u ? i : p && p[h], g = m ? `${m}px` : "";
12132
12135
  if (s += m || r, m || (a = !1), l) {
12133
12136
  if (l.style.width !== g) {
12134
- const [b, v] = Qi(r, m);
12135
- l.style.setProperty(b, v);
12137
+ const [b, w] = Qi(r, m);
12138
+ l.style.setProperty(b, w);
12136
12139
  }
12137
12140
  l = l.nextSibling;
12138
12141
  } else {
12139
- const b = document.createElement("col"), [v, C] = Qi(r, m);
12140
- b.style.setProperty(v, C), e.appendChild(b);
12142
+ const b = document.createElement("col"), [w, C] = Qi(r, m);
12143
+ b.style.setProperty(w, C), e.appendChild(b);
12141
12144
  }
12142
12145
  }
12143
12146
  }
@@ -12165,10 +12168,10 @@ const ll = (t, e = null) => e ? t.createChecked(null, e) : t.createAndFill(), ou
12165
12168
  insideV: { size: t, color: e }
12166
12169
  }), r0 = (t, e, n, r, o = null) => {
12167
12170
  const i = {
12168
- table: ae("table", t),
12169
- tableRow: ae("tableRow", t),
12170
- tableCell: ae("tableCell", t),
12171
- tableHeader: ae("tableHeader", t)
12171
+ table: le("table", t),
12172
+ tableRow: le("tableRow", t),
12173
+ tableCell: le("tableCell", t),
12174
+ tableHeader: le("tableHeader", t)
12172
12175
  }, s = [], a = [];
12173
12176
  for (let d = 0; d < n; d++) {
12174
12177
  const u = ll(i.tableCell, o);
@@ -12193,8 +12196,8 @@ const ll = (t, e = null) => e ? t.createChecked(null, e) : t.createAndFill(), ou
12193
12196
  for (let m = 0; m < p; m++, f++) {
12194
12197
  const g = n === f ? r : h && h[m];
12195
12198
  o += g || e, g || (i = !1);
12196
- const [b, v] = Qi(e, g);
12197
- s.push(["col", { style: `${b}: ${v}` }]);
12199
+ const [b, w] = Qi(e, g);
12200
+ s.push(["col", { style: `${b}: ${w}` }]);
12198
12201
  }
12199
12202
  }
12200
12203
  const l = i ? `${o}px` : "", c = i ? "" : `${o}px`;
@@ -12311,7 +12314,7 @@ function i0(t) {
12311
12314
  for (let h = 0; ; h++) {
12312
12315
  for (; o < r.length && r[o] != 0; ) o++;
12313
12316
  if (h == u.childCount) break;
12314
- const m = u.child(h), { colspan: g, rowspan: b, colwidth: v } = m.attrs;
12317
+ const m = u.child(h), { colspan: g, rowspan: b, colwidth: w } = m.attrs;
12315
12318
  for (let C = 0; C < b; C++) {
12316
12319
  if (C + c >= n) {
12317
12320
  (i || (i = [])).push({
@@ -12329,7 +12332,7 @@ function i0(t) {
12329
12332
  pos: d,
12330
12333
  n: g - S
12331
12334
  });
12332
- const k = v && v[S];
12335
+ const k = w && w[S];
12333
12336
  if (k) {
12334
12337
  const M = (y + S) % e * 2, L = s[M];
12335
12338
  L == null || L != k && s[M + 1] == 1 ? (s[M] = k, s[M + 1] = 1) : L == k && s[M + 1]++;
@@ -12411,7 +12414,7 @@ function ve(t) {
12411
12414
  }
12412
12415
  return e;
12413
12416
  }
12414
- var Pt = new G("selectingCells");
12417
+ var Pt = new Y("selectingCells");
12415
12418
  function $n(t) {
12416
12419
  for (let e = t.depth - 1; e > 0; e--)
12417
12420
  if (t.node(e).type.spec.tableRole == "row")
@@ -12715,7 +12718,7 @@ function y0(t, e, n) {
12715
12718
  } else r instanceof V && m0(r) ? i = V.create(o, r.from) : r instanceof V && g0(r) && (i = V.create(o, r.$from.start(), r.$from.end()));
12716
12719
  return i && (e || (e = t.tr)).setSelection(i), e;
12717
12720
  }
12718
- var b0 = new G("fix-tables");
12721
+ var b0 = new Y("fix-tables");
12719
12722
  function lu(t, e, n, r) {
12720
12723
  const o = t.childCount, i = e.childCount;
12721
12724
  e: for (let s = 0, a = 0; s < i; s++) {
@@ -13617,8 +13620,8 @@ function is(t, e, n, r, o, i) {
13617
13620
  if (a += g || r, g || (l = !1), c)
13618
13621
  c.style.width != b && (c.style.width = b), c = c.nextSibling;
13619
13622
  else {
13620
- const v = document.createElement("col");
13621
- v.style.width = b, e.appendChild(v);
13623
+ const w = document.createElement("col");
13624
+ w.style.width = b, e.appendChild(w);
13622
13625
  }
13623
13626
  }
13624
13627
  }
@@ -13629,7 +13632,7 @@ function is(t, e, n, r, o, i) {
13629
13632
  l ? (n.style.width = a + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = a + "px");
13630
13633
  }
13631
13634
  }
13632
- var Pe = new G(
13635
+ var Pe = new Y(
13633
13636
  "tableColumnResizing"
13634
13637
  );
13635
13638
  function W0({
@@ -13639,7 +13642,7 @@ function W0({
13639
13642
  View: r = U0,
13640
13643
  lastColumnResizable: o = !0
13641
13644
  } = {}) {
13642
- const i = new Z({
13645
+ const i = new G({
13643
13646
  key: Pe,
13644
13647
  state: {
13645
13648
  init(s, a) {
@@ -13853,7 +13856,7 @@ function ew(t, e) {
13853
13856
  function tw({
13854
13857
  allowTableNodeSelection: t = !1
13855
13858
  } = {}) {
13856
- return new Z({
13859
+ return new G({
13857
13860
  key: Pt,
13858
13861
  // This piece of state is used to remember when a mouse-drag
13859
13862
  // cell-selection is happening, so that it can continue even as
@@ -13907,7 +13910,7 @@ const nw = (t) => t instanceof X, Gr = ({ editor: t }) => {
13907
13910
  left: { size: t, color: e },
13908
13911
  bottom: { size: t, color: e },
13909
13912
  right: { size: t, color: e }
13910
- }), mu = ee.create({
13913
+ }), mu = Q.create({
13911
13914
  name: "table",
13912
13915
  content: "tableRow+",
13913
13916
  group: "block",
@@ -14076,7 +14079,7 @@ const nw = (t) => t instanceof X, Gr = ({ editor: t }) => {
14076
14079
  }))
14077
14080
  };
14078
14081
  }
14079
- }), gu = ee.create({
14082
+ }), gu = Q.create({
14080
14083
  name: "tableHeader",
14081
14084
  content: "block+",
14082
14085
  tableRole: "header_cell",
@@ -14112,7 +14115,7 @@ const nw = (t) => t instanceof X, Gr = ({ editor: t }) => {
14112
14115
  renderDOM({ htmlAttributes: t }) {
14113
14116
  return ["th", E.mergeAttributes(this.options.htmlAttributes, t), 0];
14114
14117
  }
14115
- }), yu = ee.create({
14118
+ }), yu = Q.create({
14116
14119
  name: "tableRow",
14117
14120
  content: "(tableCell | tableHeader)*",
14118
14121
  tableRole: "row",
@@ -14136,7 +14139,7 @@ const nw = (t) => t instanceof X, Gr = ({ editor: t }) => {
14136
14139
  renderDOM({ htmlAttributes: t }) {
14137
14140
  return ["tr", E.mergeAttributes(this.options.htmlAttributes, t), 0];
14138
14141
  }
14139
- }), bu = ee.create({
14142
+ }), bu = Q.create({
14140
14143
  name: "tableCell",
14141
14144
  content: "block+",
14142
14145
  tableRole: "cell",
@@ -14393,8 +14396,8 @@ function Rt(t) {
14393
14396
  }
14394
14397
  const iw = (t = {}) => {
14395
14398
  let { editor: e, annotationClass: n } = t;
14396
- return new Z({
14397
- key: new G("fieldAnnotation"),
14399
+ return new G({
14400
+ key: new Y("fieldAnnotation"),
14398
14401
  state: {
14399
14402
  init() {
14400
14403
  return null;
@@ -14610,7 +14613,7 @@ function Sw(t) {
14610
14613
  };
14611
14614
  return `#${i(e)}${i(n)}${i(r)}${o < 1 ? i(Math.round(o * 255)) : ""}`;
14612
14615
  }
14613
- const as = "annotation", ku = "annotation-content", Cu = ee.create({
14616
+ const as = "annotation", ku = "annotation-content", Cu = Q.create({
14614
14617
  name: "fieldAnnotation",
14615
14618
  group: "inline",
14616
14619
  inline: !0,
@@ -15110,7 +15113,7 @@ function xw(t) {
15110
15113
  }
15111
15114
  return e;
15112
15115
  }
15113
- const Mo = new G("ImagePlaceholder"), Mw = (t = {}) => new Z({
15116
+ const Mo = new Y("ImagePlaceholder"), Mw = (t = {}) => new G({
15114
15117
  key: Mo,
15115
15118
  state: {
15116
15119
  init() {
@@ -15136,7 +15139,7 @@ const Mo = new G("ImagePlaceholder"), Mw = (t = {}) => new Z({
15136
15139
  }), jk = (t, e) => {
15137
15140
  let r = Mo.getState(t)?.find(null, null, (o) => o.id === e);
15138
15141
  return r?.length ? r[0].from : null;
15139
- }, Aw = ee.create({
15142
+ }, Aw = Q.create({
15140
15143
  name: "image",
15141
15144
  group: "inline",
15142
15145
  inline: !0,
@@ -15211,7 +15214,7 @@ const Mo = new G("ImagePlaceholder"), Mw = (t = {}) => new Z({
15211
15214
  addPmPlugins() {
15212
15215
  return [Mw()];
15213
15216
  }
15214
- }), Ow = ee.create({
15217
+ }), Ow = Q.create({
15215
15218
  name: "bookmarkStart",
15216
15219
  group: "inline",
15217
15220
  content: "inline*",
@@ -15236,7 +15239,7 @@ const Mo = new G("ImagePlaceholder"), Mw = (t = {}) => new Z({
15236
15239
  renderDOM({ htmlAttributes: t }) {
15237
15240
  return ["a", E.mergeAttributes(this.options.htmlAttributes, t)];
15238
15241
  }
15239
- }), Su = ee.create({
15242
+ }), Su = Q.create({
15240
15243
  name: "mention",
15241
15244
  group: "inline",
15242
15245
  inline: !0,
@@ -15723,7 +15726,7 @@ const Dw = "track-insert", Eu = Fe.create({
15723
15726
  renderDOM({ htmlAttributes: t }) {
15724
15727
  return ["span", E.mergeAttributes(this.options.htmlAttributes, t), 0];
15725
15728
  }
15726
- }), Pw = Q.create({
15729
+ }), Pw = Z.create({
15727
15730
  name: "trackChanges",
15728
15731
  addCommands() {
15729
15732
  return {
@@ -15893,7 +15896,7 @@ const Dw = "track-insert", Eu = Fe.create({
15893
15896
  const o = n[r], i = n[r - 1], s = n[r + 1];
15894
15897
  let a;
15895
15898
  return i && o.start === i.end ? a = i : s && o.end === s.start && (a = s), [o, a].filter(Boolean);
15896
- }, Iw = Q.create({
15899
+ }, Iw = Z.create({
15897
15900
  name: "placeholder",
15898
15901
  addOptions() {
15899
15902
  return {
@@ -15909,8 +15912,8 @@ const Dw = "track-insert", Eu = Fe.create({
15909
15912
  });
15910
15913
  return F.create(n.doc, [i]);
15911
15914
  };
15912
- return [new Z({
15913
- key: new G("placeholder"),
15915
+ return [new G({
15916
+ key: new Y("placeholder"),
15914
15917
  state: {
15915
15918
  init: (n, r) => t(r),
15916
15919
  apply: (n, r, o, i) => t(i)
@@ -16131,7 +16134,7 @@ var Gw = function(e, n) {
16131
16134
  function Zw(t) {
16132
16135
  var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, a = ot(n.placement), l = Hs(a), c = [Ne, We].indexOf(a) >= 0, d = c ? "height" : "width";
16133
16136
  if (!(!i || !s)) {
16134
- var u = Gw(o.padding, n), f = js(i), p = l === "y" ? De : Ne, h = l === "y" ? Ue : We, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Pr(i), v = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = m / 2 - g / 2, y = u[p], S = v - f[d] - u[h], k = v / 2 - f[d] / 2 + C, M = or(y, k, S), L = l;
16137
+ var u = Gw(o.padding, n), f = js(i), p = l === "y" ? De : Ne, h = l === "y" ? Ue : We, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Pr(i), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = m / 2 - g / 2, y = u[p], S = w - f[d] - u[h], k = w / 2 - f[d] / 2 + C, M = or(y, k, S), L = l;
16135
16138
  n.modifiersData[r] = (e = {}, e[L] = M, e.centerOffset = M - k, e);
16136
16139
  }
16137
16140
  }
@@ -16173,7 +16176,7 @@ function Ol(t) {
16173
16176
  y: m
16174
16177
  };
16175
16178
  p = g.x, m = g.y;
16176
- var b = s.hasOwnProperty("x"), v = s.hasOwnProperty("y"), C = Ne, y = De, S = window;
16179
+ var b = s.hasOwnProperty("x"), w = s.hasOwnProperty("y"), C = Ne, y = De, S = window;
16177
16180
  if (c) {
16178
16181
  var k = Pr(n), M = "clientHeight", L = "clientWidth";
16179
16182
  if (k === Le(n) && (k = Wt(n), Ct(k).position !== "static" && a === "absolute" && (M = "scrollHeight", L = "scrollWidth")), k = k, o === De || (o === Ne || o === We) && i === kr) {
@@ -16186,27 +16189,27 @@ function Ol(t) {
16186
16189
  }
16187
16190
  if (o === Ne || (o === De || o === Ue) && i === kr) {
16188
16191
  C = We;
16189
- var _ = u && k === S && S.visualViewport ? S.visualViewport.width : (
16192
+ var $ = u && k === S && S.visualViewport ? S.visualViewport.width : (
16190
16193
  // $FlowFixMe[prop-missing]
16191
16194
  k[L]
16192
16195
  );
16193
- p -= _ - r.width, p *= l ? 1 : -1;
16196
+ p -= $ - r.width, p *= l ? 1 : -1;
16194
16197
  }
16195
16198
  }
16196
- var $ = Object.assign({
16199
+ var _ = Object.assign({
16197
16200
  position: a
16198
- }, c && tv), H = d === !0 ? nv({
16201
+ }, c && tv), W = d === !0 ? nv({
16199
16202
  x: p,
16200
16203
  y: m
16201
16204
  }, Le(n)) : {
16202
16205
  x: p,
16203
16206
  y: m
16204
16207
  };
16205
- if (p = H.x, m = H.y, l) {
16206
- var W;
16207
- return Object.assign({}, $, (W = {}, W[y] = v ? "0" : "", W[C] = b ? "0" : "", W.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", W));
16208
+ if (p = W.x, m = W.y, l) {
16209
+ var U;
16210
+ return Object.assign({}, _, (U = {}, U[y] = w ? "0" : "", U[C] = b ? "0" : "", U.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", U));
16208
16211
  }
16209
- return Object.assign({}, $, (e = {}, e[y] = v ? m + "px" : "", e[C] = b ? p + "px" : "", e.transform = "", e));
16212
+ return Object.assign({}, _, (e = {}, e[y] = w ? m + "px" : "", e[C] = b ? p + "px" : "", e.transform = "", e));
16210
16213
  }
16211
16214
  function rv(t) {
16212
16215
  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 = {
@@ -16406,24 +16409,24 @@ function Hu(t) {
16406
16409
  }
16407
16410
  function Cr(t, e) {
16408
16411
  e === void 0 && (e = {});
16409
- 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 ? Rw : a, c = n.rootBoundary, d = c === void 0 ? Ru : c, u = n.elementContext, f = u === void 0 ? Xn : u, p = n.altBoundary, h = p === void 0 ? !1 : p, m = n.padding, g = m === void 0 ? 0 : m, b = $u(typeof g != "number" ? g : Vu(g, Er)), v = f === Xn ? Lw : Xn, C = t.rects.popper, y = t.elements[h ? v : f], S = pv(un(y) ? y : y.contextElement || Wt(t.elements.popper), l, d, s), k = Rn(t.elements.reference), M = Hu({
16412
+ 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 ? Rw : a, c = n.rootBoundary, d = c === void 0 ? Ru : c, u = n.elementContext, f = u === void 0 ? Xn : u, p = n.altBoundary, h = p === void 0 ? !1 : p, m = n.padding, g = m === void 0 ? 0 : m, b = $u(typeof g != "number" ? g : Vu(g, Er)), w = f === Xn ? Lw : Xn, C = t.rects.popper, y = t.elements[h ? w : f], S = pv(un(y) ? y : y.contextElement || Wt(t.elements.popper), l, d, s), k = Rn(t.elements.reference), M = Hu({
16410
16413
  reference: k,
16411
16414
  element: C,
16412
16415
  placement: o
16413
- }), L = ds(Object.assign({}, C, M)), x = f === Xn ? L : k, _ = {
16416
+ }), L = ds(Object.assign({}, C, M)), x = f === Xn ? L : k, $ = {
16414
16417
  top: S.top - x.top + b.top,
16415
16418
  bottom: x.bottom - S.bottom + b.bottom,
16416
16419
  left: S.left - x.left + b.left,
16417
16420
  right: x.right - S.right + b.right
16418
- }, $ = t.modifiersData.offset;
16419
- if (f === Xn && $) {
16420
- var H = $[o];
16421
- Object.keys(_).forEach(function(W) {
16422
- var Y = [We, Ue].indexOf(W) >= 0 ? 1 : -1, le = [De, Ue].indexOf(W) >= 0 ? "y" : "x";
16423
- _[W] += H[le] * Y;
16421
+ }, _ = t.modifiersData.offset;
16422
+ if (f === Xn && _) {
16423
+ var W = _[o];
16424
+ Object.keys($).forEach(function(U) {
16425
+ var ee = [We, Ue].indexOf(U) >= 0 ? 1 : -1, oe = [De, Ue].indexOf(U) >= 0 ? "y" : "x";
16426
+ $[U] += W[oe] * ee;
16424
16427
  });
16425
16428
  }
16426
- return _;
16429
+ return $;
16427
16430
  }
16428
16431
  function hv(t, e) {
16429
16432
  e === void 0 && (e = {});
@@ -16454,7 +16457,7 @@ function mv(t) {
16454
16457
  function gv(t) {
16455
16458
  var e = t.state, n = t.options, r = t.name;
16456
16459
  if (!e.modifiersData[r]._skip) {
16457
- 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 = ot(g), v = b === g, C = l || (v || !h ? [co(g)] : mv(g)), y = [g].concat(C).reduce(function(qe, Ee) {
16460
+ 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 = ot(g), w = b === g, C = l || (w || !h ? [co(g)] : mv(g)), y = [g].concat(C).reduce(function(qe, Ee) {
16458
16461
  return qe.concat(ot(Ee) === $s ? hv(e, {
16459
16462
  placement: Ee,
16460
16463
  boundary: d,
@@ -16463,23 +16466,23 @@ function gv(t) {
16463
16466
  flipVariations: h,
16464
16467
  allowedAutoPlacements: m
16465
16468
  }) : Ee);
16466
- }, []), S = e.rects.reference, k = e.rects.popper, M = /* @__PURE__ */ new Map(), L = !0, x = y[0], _ = 0; _ < y.length; _++) {
16467
- var $ = y[_], H = ot($), W = Ln($) === Pn, Y = [De, Ue].indexOf(H) >= 0, le = Y ? "width" : "height", se = Cr(e, {
16468
- placement: $,
16469
+ }, []), S = e.rects.reference, k = e.rects.popper, M = /* @__PURE__ */ new Map(), L = !0, x = y[0], $ = 0; $ < y.length; $++) {
16470
+ var _ = y[$], W = ot(_), U = Ln(_) === Pn, ee = [De, Ue].indexOf(W) >= 0, oe = ee ? "width" : "height", ae = Cr(e, {
16471
+ placement: _,
16469
16472
  boundary: d,
16470
16473
  rootBoundary: u,
16471
16474
  altBoundary: f,
16472
16475
  padding: c
16473
- }), ce = Y ? W ? We : Ne : W ? Ue : De;
16474
- S[le] > k[le] && (ce = co(ce));
16475
- var ie = co(ce), pe = [];
16476
- if (i && pe.push(se[H] <= 0), a && pe.push(se[ce] <= 0, se[ie] <= 0), pe.every(function(qe) {
16476
+ }), ce = ee ? U ? We : Ne : U ? Ue : De;
16477
+ S[oe] > k[oe] && (ce = co(ce));
16478
+ var se = co(ce), pe = [];
16479
+ if (i && pe.push(ae[W] <= 0), a && pe.push(ae[ce] <= 0, ae[se] <= 0), pe.every(function(qe) {
16477
16480
  return qe;
16478
16481
  })) {
16479
- x = $, L = !1;
16482
+ x = _, L = !1;
16480
16483
  break;
16481
16484
  }
16482
- M.set($, pe);
16485
+ M.set(_, pe);
16483
16486
  }
16484
16487
  if (L)
16485
16488
  for (var ke = h ? 3 : 1, Be = function(Ee) {
@@ -16597,31 +16600,31 @@ function Av(t) {
16597
16600
  rootBoundary: c,
16598
16601
  padding: u,
16599
16602
  altBoundary: d
16600
- }), b = ot(e.placement), v = Ln(e.placement), C = !v, y = Hs(b), S = Mv(y), k = e.modifiersData.popperOffsets, M = e.rects.reference, L = e.rects.popper, x = typeof m == "function" ? m(Object.assign({}, e.rects, {
16603
+ }), b = ot(e.placement), w = Ln(e.placement), C = !w, y = Hs(b), S = Mv(y), k = e.modifiersData.popperOffsets, M = e.rects.reference, L = e.rects.popper, x = typeof m == "function" ? m(Object.assign({}, e.rects, {
16601
16604
  placement: e.placement
16602
- })) : m, _ = typeof x == "number" ? {
16605
+ })) : m, $ = typeof x == "number" ? {
16603
16606
  mainAxis: x,
16604
16607
  altAxis: x
16605
16608
  } : Object.assign({
16606
16609
  mainAxis: 0,
16607
16610
  altAxis: 0
16608
- }, x), $ = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, H = {
16611
+ }, x), _ = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, W = {
16609
16612
  x: 0,
16610
16613
  y: 0
16611
16614
  };
16612
16615
  if (k) {
16613
16616
  if (i) {
16614
- var W, Y = y === "y" ? De : Ne, le = y === "y" ? Ue : We, se = y === "y" ? "height" : "width", ce = k[y], ie = ce + g[Y], pe = ce - g[le], ke = p ? -L[se] / 2 : 0, Be = v === Pn ? M[se] : L[se], Ce = v === Pn ? -L[se] : -M[se], ct = e.elements.arrow, qe = p && ct ? js(ct) : {
16617
+ var U, ee = y === "y" ? De : Ne, oe = y === "y" ? Ue : We, ae = y === "y" ? "height" : "width", ce = k[y], se = ce + g[ee], pe = ce - g[oe], ke = p ? -L[ae] / 2 : 0, Be = w === Pn ? M[ae] : L[ae], Ce = w === Pn ? -L[ae] : -M[ae], ct = e.elements.arrow, qe = p && ct ? js(ct) : {
16615
16618
  width: 0,
16616
16619
  height: 0
16617
- }, Ee = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : zu(), Ke = Ee[Y], xt = Ee[le], Xe = or(0, M[se], qe[se]), Mt = C ? M[se] / 2 - ke - Xe - Ke - _.mainAxis : Be - Xe - Ke - _.mainAxis, At = C ? -M[se] / 2 + ke + Xe + xt + _.mainAxis : Ce + Xe + xt + _.mainAxis, fn = e.elements.arrow && Pr(e.elements.arrow), Rr = fn ? y === "y" ? fn.clientTop || 0 : fn.clientLeft || 0 : 0, Vn = (W = $?.[y]) != null ? W : 0, Lr = ce + Mt - Vn - Rr, Fr = ce + At - Vn, jn = or(p ? Ao(ie, Lr) : ie, ce, p ? sn(pe, Fr) : pe);
16618
- k[y] = jn, H[y] = jn - ce;
16620
+ }, Ee = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : zu(), Ke = Ee[ee], xt = Ee[oe], Xe = or(0, M[ae], qe[ae]), Mt = C ? M[ae] / 2 - ke - Xe - Ke - $.mainAxis : Be - Xe - Ke - $.mainAxis, At = C ? -M[ae] / 2 + ke + Xe + xt + $.mainAxis : Ce + Xe + xt + $.mainAxis, fn = e.elements.arrow && Pr(e.elements.arrow), Rr = fn ? y === "y" ? fn.clientTop || 0 : fn.clientLeft || 0 : 0, Vn = (U = _?.[y]) != null ? U : 0, Lr = ce + Mt - Vn - Rr, Fr = ce + At - Vn, jn = or(p ? Ao(se, Lr) : se, ce, p ? sn(pe, Fr) : pe);
16621
+ k[y] = jn, W[y] = jn - ce;
16619
16622
  }
16620
16623
  if (a) {
16621
- var Hn, Br = y === "x" ? De : Ne, _r = y === "x" ? Ue : We, dt = k[S], Ot = S === "y" ? "height" : "width", Un = dt + g[Br], qt = dt - g[_r], Wn = [De, Ne].indexOf(b) !== -1, zr = (Hn = $?.[S]) != null ? Hn : 0, $r = Wn ? Un : dt - M[Ot] - L[Ot] - zr + _.altAxis, Vr = Wn ? dt + M[Ot] + L[Ot] - zr - _.altAxis : qt, jr = p && Wn ? Yw($r, dt, Vr) : or(p ? $r : Un, dt, p ? Vr : qt);
16622
- k[S] = jr, H[S] = jr - dt;
16624
+ var Hn, Br = y === "x" ? De : Ne, _r = y === "x" ? Ue : We, dt = k[S], Ot = S === "y" ? "height" : "width", Un = dt + g[Br], qt = dt - g[_r], Wn = [De, Ne].indexOf(b) !== -1, zr = (Hn = _?.[S]) != null ? Hn : 0, $r = Wn ? Un : dt - M[Ot] - L[Ot] - zr + $.altAxis, Vr = Wn ? dt + M[Ot] + L[Ot] - zr - $.altAxis : qt, jr = p && Wn ? Yw($r, dt, Vr) : or(p ? $r : Un, dt, p ? Vr : qt);
16625
+ k[S] = jr, W[S] = jr - dt;
16623
16626
  }
16624
- e.modifiersData[r] = H;
16627
+ e.modifiersData[r] = W;
16625
16628
  }
16626
16629
  }
16627
16630
  const Ov = {
@@ -16741,8 +16744,8 @@ function Fv(t) {
16741
16744
  }, u = [], f = !1, p = {
16742
16745
  state: d,
16743
16746
  setOptions: function(b) {
16744
- var v = typeof b == "function" ? b(d.options) : b;
16745
- m(), d.options = Object.assign({}, i, d.options, v), d.scrollParents = {
16747
+ var w = typeof b == "function" ? b(d.options) : b;
16748
+ m(), d.options = Object.assign({}, i, d.options, w), d.scrollParents = {
16746
16749
  reference: un(a) ? ir(a) : a.contextElement ? ir(a.contextElement) : [],
16747
16750
  popper: ir(l)
16748
16751
  };
@@ -16758,13 +16761,13 @@ function Fv(t) {
16758
16761
  // prefer the async Popper#update method
16759
16762
  forceUpdate: function() {
16760
16763
  if (!f) {
16761
- var b = d.elements, v = b.reference, C = b.popper;
16762
- if (Il(v, C)) {
16764
+ var b = d.elements, w = b.reference, C = b.popper;
16765
+ if (Il(w, C)) {
16763
16766
  d.rects = {
16764
- reference: Ev(v, Pr(C), d.options.strategy === "fixed"),
16767
+ reference: Ev(w, Pr(C), d.options.strategy === "fixed"),
16765
16768
  popper: js(C)
16766
- }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(_) {
16767
- return d.modifiersData[_.name] = Object.assign({}, _.data);
16769
+ }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function($) {
16770
+ return d.modifiersData[$.name] = Object.assign({}, $.data);
16768
16771
  });
16769
16772
  for (var y = 0; y < d.orderedModifiers.length; y++) {
16770
16773
  if (d.reset === !0) {
@@ -16800,7 +16803,7 @@ function Fv(t) {
16800
16803
  });
16801
16804
  function h() {
16802
16805
  d.orderedModifiers.forEach(function(g) {
16803
- var b = g.name, v = g.options, C = v === void 0 ? {} : v, y = g.effect;
16806
+ var b = g.name, w = g.options, C = w === void 0 ? {} : w, y = g.effect;
16804
16807
  if (typeof y == "function") {
16805
16808
  var S = y({
16806
16809
  state: d,
@@ -16927,8 +16930,8 @@ function Gv(t, e) {
16927
16930
  var i = o.popperRect, s = o.popperState, a = o.props, l = a.interactiveBorder, c = Wv(s.placement), d = s.modifiersData.offset;
16928
16931
  if (!d)
16929
16932
  return !0;
16930
- 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, v = n - i.right - h > l;
16931
- return m || g || b || v;
16933
+ 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;
16934
+ return m || g || b || w;
16932
16935
  });
16933
16936
  }
16934
16937
  function fi(t, e, n) {
@@ -16999,7 +17002,7 @@ function Yu(t) {
16999
17002
  ];
17000
17003
  }
17001
17004
  var xr;
17002
- oe.env.NODE_ENV !== "production" && ok();
17005
+ ie.env.NODE_ENV !== "production" && ok();
17003
17006
  function ok() {
17004
17007
  xr = /* @__PURE__ */ new Set();
17005
17008
  }
@@ -17083,7 +17086,7 @@ var Gu = {
17083
17086
  trigger: "mouseenter focus",
17084
17087
  triggerTarget: null
17085
17088
  }, Gu, sk), ak = Object.keys(Ie), lk = function(e) {
17086
- oe.env.NODE_ENV !== "production" && Qu(e, []);
17089
+ ie.env.NODE_ENV !== "production" && Qu(e, []);
17087
17090
  var n = Object.keys(e);
17088
17091
  n.forEach(function(r) {
17089
17092
  Ie[r] = e[r];
@@ -17186,7 +17189,7 @@ function ef(t) {
17186
17189
  ef.$$tippy = !0;
17187
17190
  var uk = 1, Qr = [], pi = [];
17188
17191
  function fk(t, e) {
17189
- var n = Vl(t, Object.assign({}, Ie, Zu(Fl(e)))), r, o, i, s = !1, a = !1, l = !1, c = !1, d, u, f, p = [], h = Rl(Lr, n.interactiveDebounce), m, g = uk++, b = null, v = Uv(n.plugins), C = {
17192
+ var n = Vl(t, Object.assign({}, Ie, Zu(Fl(e)))), r, o, i, s = !1, a = !1, l = !1, c = !1, d, u, f, p = [], h = Rl(Lr, n.interactiveDebounce), m, g = uk++, b = null, w = Uv(n.plugins), C = {
17190
17193
  // Is the instance currently enabled?
17191
17194
  isEnabled: !0,
17192
17195
  // Is the tippy currently showing and not transitioning out?
@@ -17205,7 +17208,7 @@ function fk(t, e) {
17205
17208
  popperInstance: b,
17206
17209
  props: n,
17207
17210
  state: C,
17208
- plugins: v,
17211
+ plugins: w,
17209
17212
  // methods
17210
17213
  clearDelayTimeouts: $r,
17211
17214
  setProps: Vr,
@@ -17219,83 +17222,83 @@ function fk(t, e) {
17219
17222
  destroy: sf
17220
17223
  };
17221
17224
  if (!n.render)
17222
- return oe.env.NODE_ENV !== "production" && us(!0, "render() function has not been supplied."), y;
17225
+ return ie.env.NODE_ENV !== "production" && us(!0, "render() function has not been supplied."), y;
17223
17226
  var S = n.render(y), k = S.popper, M = S.onUpdate;
17224
17227
  k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + y.id, y.popper = k, t._tippy = y, k._tippy = y;
17225
- var L = v.map(function(w) {
17226
- return w.fn(y);
17228
+ var L = w.map(function(v) {
17229
+ return v.fn(y);
17227
17230
  }), x = t.hasAttribute("aria-expanded");
17228
- return fn(), ke(), ce(), ie("onCreate", [y]), n.showOnCreate && Un(), k.addEventListener("mouseenter", function() {
17231
+ return fn(), ke(), ce(), se("onCreate", [y]), n.showOnCreate && Un(), k.addEventListener("mouseenter", function() {
17229
17232
  y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
17230
17233
  }), k.addEventListener("mouseleave", function() {
17231
- y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && Y().addEventListener("mousemove", h);
17234
+ y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && ee().addEventListener("mousemove", h);
17232
17235
  }), y;
17233
- function _() {
17234
- var w = y.props.touch;
17235
- return Array.isArray(w) ? w : [w, 0];
17236
- }
17237
17236
  function $() {
17238
- return _()[0] === "hold";
17237
+ var v = y.props.touch;
17238
+ return Array.isArray(v) ? v : [v, 0];
17239
17239
  }
17240
- function H() {
17241
- var w;
17242
- return !!((w = y.props.render) != null && w.$$tippy);
17240
+ function _() {
17241
+ return $()[0] === "hold";
17243
17242
  }
17244
17243
  function W() {
17244
+ var v;
17245
+ return !!((v = y.props.render) != null && v.$$tippy);
17246
+ }
17247
+ function U() {
17245
17248
  return m || t;
17246
17249
  }
17247
- function Y() {
17248
- var w = W().parentNode;
17249
- return w ? Yv(w) : document;
17250
+ function ee() {
17251
+ var v = U().parentNode;
17252
+ return v ? Yv(v) : document;
17250
17253
  }
17251
- function le() {
17254
+ function oe() {
17252
17255
  return ps(k);
17253
17256
  }
17254
- function se(w) {
17255
- return y.state.isMounted && !y.state.isVisible || nt.isTouch || d && d.type === "focus" ? 0 : di(y.props.delay, w ? 0 : 1, Ie.delay);
17257
+ function ae(v) {
17258
+ return y.state.isMounted && !y.state.isVisible || nt.isTouch || d && d.type === "focus" ? 0 : di(y.props.delay, v ? 0 : 1, Ie.delay);
17256
17259
  }
17257
- function ce(w) {
17258
- w === void 0 && (w = !1), k.style.pointerEvents = y.props.interactive && !w ? "" : "none", k.style.zIndex = "" + y.props.zIndex;
17260
+ function ce(v) {
17261
+ v === void 0 && (v = !1), k.style.pointerEvents = y.props.interactive && !v ? "" : "none", k.style.zIndex = "" + y.props.zIndex;
17259
17262
  }
17260
- function ie(w, A, R) {
17261
- if (R === void 0 && (R = !0), L.forEach(function(U) {
17262
- U[w] && U[w].apply(U, A);
17263
+ function se(v, A, R) {
17264
+ if (R === void 0 && (R = !0), L.forEach(function(H) {
17265
+ H[v] && H[v].apply(H, A);
17263
17266
  }), R) {
17264
17267
  var q;
17265
- (q = y.props)[w].apply(q, A);
17268
+ (q = y.props)[v].apply(q, A);
17266
17269
  }
17267
17270
  }
17268
17271
  function pe() {
17269
- var w = y.props.aria;
17270
- if (w.content) {
17271
- var A = "aria-" + w.content, R = k.id, q = Sn(y.props.triggerTarget || t);
17272
- q.forEach(function(U) {
17273
- var Se = U.getAttribute(A);
17272
+ var v = y.props.aria;
17273
+ if (v.content) {
17274
+ var A = "aria-" + v.content, R = k.id, q = Sn(y.props.triggerTarget || t);
17275
+ q.forEach(function(H) {
17276
+ var Se = H.getAttribute(A);
17274
17277
  if (y.state.isVisible)
17275
- U.setAttribute(A, Se ? Se + " " + R : R);
17278
+ H.setAttribute(A, Se ? Se + " " + R : R);
17276
17279
  else {
17277
17280
  var _e = Se && Se.replace(R, "").trim();
17278
- _e ? U.setAttribute(A, _e) : U.removeAttribute(A);
17281
+ _e ? H.setAttribute(A, _e) : H.removeAttribute(A);
17279
17282
  }
17280
17283
  });
17281
17284
  }
17282
17285
  }
17283
17286
  function ke() {
17284
17287
  if (!(x || !y.props.aria.expanded)) {
17285
- var w = Sn(y.props.triggerTarget || t);
17286
- w.forEach(function(A) {
17287
- y.props.interactive ? A.setAttribute("aria-expanded", y.state.isVisible && A === W() ? "true" : "false") : A.removeAttribute("aria-expanded");
17288
+ var v = Sn(y.props.triggerTarget || t);
17289
+ v.forEach(function(A) {
17290
+ y.props.interactive ? A.setAttribute("aria-expanded", y.state.isVisible && A === U() ? "true" : "false") : A.removeAttribute("aria-expanded");
17288
17291
  });
17289
17292
  }
17290
17293
  }
17291
17294
  function Be() {
17292
- Y().removeEventListener("mousemove", h), Qr = Qr.filter(function(w) {
17293
- return w !== h;
17295
+ ee().removeEventListener("mousemove", h), Qr = Qr.filter(function(v) {
17296
+ return v !== h;
17294
17297
  });
17295
17298
  }
17296
- function Ce(w) {
17297
- if (!(nt.isTouch && (l || w.type === "mousedown"))) {
17298
- var A = w.composedPath && w.composedPath()[0] || w.target;
17299
+ function Ce(v) {
17300
+ if (!(nt.isTouch && (l || v.type === "mousedown"))) {
17301
+ var A = v.composedPath && v.composedPath()[0] || v.target;
17299
17302
  if (!(y.props.interactive && _l(k, A))) {
17300
17303
  if (Sn(y.props.triggerTarget || t).some(function(R) {
17301
17304
  return _l(R, A);
@@ -17303,7 +17306,7 @@ function fk(t, e) {
17303
17306
  if (nt.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
17304
17307
  return;
17305
17308
  } else
17306
- ie("onClickOutside", [y, w]);
17309
+ se("onClickOutside", [y, v]);
17307
17310
  y.props.hideOnClick === !0 && (y.clearDelayTimeouts(), y.hide(), a = !0, setTimeout(function() {
17308
17311
  a = !1;
17309
17312
  }), y.state.isMounted || Ke());
@@ -17317,50 +17320,50 @@ function fk(t, e) {
17317
17320
  l = !1;
17318
17321
  }
17319
17322
  function Ee() {
17320
- var w = Y();
17321
- w.addEventListener("mousedown", Ce, !0), w.addEventListener("touchend", Ce, Gt), w.addEventListener("touchstart", qe, Gt), w.addEventListener("touchmove", ct, Gt);
17323
+ var v = ee();
17324
+ v.addEventListener("mousedown", Ce, !0), v.addEventListener("touchend", Ce, Gt), v.addEventListener("touchstart", qe, Gt), v.addEventListener("touchmove", ct, Gt);
17322
17325
  }
17323
17326
  function Ke() {
17324
- var w = Y();
17325
- w.removeEventListener("mousedown", Ce, !0), w.removeEventListener("touchend", Ce, Gt), w.removeEventListener("touchstart", qe, Gt), w.removeEventListener("touchmove", ct, Gt);
17327
+ var v = ee();
17328
+ v.removeEventListener("mousedown", Ce, !0), v.removeEventListener("touchend", Ce, Gt), v.removeEventListener("touchstart", qe, Gt), v.removeEventListener("touchmove", ct, Gt);
17326
17329
  }
17327
- function xt(w, A) {
17328
- Mt(w, function() {
17330
+ function xt(v, A) {
17331
+ Mt(v, function() {
17329
17332
  !y.state.isVisible && k.parentNode && k.parentNode.contains(k) && A();
17330
17333
  });
17331
17334
  }
17332
- function Xe(w, A) {
17333
- Mt(w, A);
17335
+ function Xe(v, A) {
17336
+ Mt(v, A);
17334
17337
  }
17335
- function Mt(w, A) {
17336
- var R = le().box;
17337
- function q(U) {
17338
- U.target === R && (fi(R, "remove", q), A());
17338
+ function Mt(v, A) {
17339
+ var R = oe().box;
17340
+ function q(H) {
17341
+ H.target === R && (fi(R, "remove", q), A());
17339
17342
  }
17340
- if (w === 0)
17343
+ if (v === 0)
17341
17344
  return A();
17342
17345
  fi(R, "remove", u), fi(R, "add", q), u = q;
17343
17346
  }
17344
- function At(w, A, R) {
17347
+ function At(v, A, R) {
17345
17348
  R === void 0 && (R = !1);
17346
17349
  var q = Sn(y.props.triggerTarget || t);
17347
- q.forEach(function(U) {
17348
- U.addEventListener(w, A, R), p.push({
17349
- node: U,
17350
- eventType: w,
17350
+ q.forEach(function(H) {
17351
+ H.addEventListener(v, A, R), p.push({
17352
+ node: H,
17353
+ eventType: v,
17351
17354
  handler: A,
17352
17355
  options: R
17353
17356
  });
17354
17357
  });
17355
17358
  }
17356
17359
  function fn() {
17357
- $() && (At("touchstart", Vn, {
17360
+ _() && (At("touchstart", Vn, {
17358
17361
  passive: !0
17359
17362
  }), At("touchend", Fr, {
17360
17363
  passive: !0
17361
- })), Hv(y.props.trigger).forEach(function(w) {
17362
- if (w !== "manual")
17363
- switch (At(w, Vn), w) {
17364
+ })), Hv(y.props.trigger).forEach(function(v) {
17365
+ if (v !== "manual")
17366
+ switch (At(v, Vn), v) {
17364
17367
  case "mouseenter":
17365
17368
  At("mouseleave", Fr);
17366
17369
  break;
@@ -17374,55 +17377,55 @@ function fk(t, e) {
17374
17377
  });
17375
17378
  }
17376
17379
  function Rr() {
17377
- p.forEach(function(w) {
17378
- var A = w.node, R = w.eventType, q = w.handler, U = w.options;
17379
- A.removeEventListener(R, q, U);
17380
+ p.forEach(function(v) {
17381
+ var A = v.node, R = v.eventType, q = v.handler, H = v.options;
17382
+ A.removeEventListener(R, q, H);
17380
17383
  }), p = [];
17381
17384
  }
17382
- function Vn(w) {
17385
+ function Vn(v) {
17383
17386
  var A, R = !1;
17384
- if (!(!y.state.isEnabled || Hn(w) || a)) {
17387
+ if (!(!y.state.isEnabled || Hn(v) || a)) {
17385
17388
  var q = ((A = d) == null ? void 0 : A.type) === "focus";
17386
- d = w, m = w.currentTarget, ke(), !y.state.isVisible && Kv(w) && Qr.forEach(function(U) {
17387
- return U(w);
17388
- }), w.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? R = !0 : Un(w), w.type === "click" && (s = !R), R && !q && qt(w);
17389
+ d = v, m = v.currentTarget, ke(), !y.state.isVisible && Kv(v) && Qr.forEach(function(H) {
17390
+ return H(v);
17391
+ }), v.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? R = !0 : Un(v), v.type === "click" && (s = !R), R && !q && qt(v);
17389
17392
  }
17390
17393
  }
17391
- function Lr(w) {
17392
- var A = w.target, R = W().contains(A) || k.contains(A);
17393
- if (!(w.type === "mousemove" && R)) {
17394
- var q = Ot().concat(k).map(function(U) {
17395
- var Se, _e = U._tippy, pn = (Se = _e.popperInstance) == null ? void 0 : Se.state;
17394
+ function Lr(v) {
17395
+ var A = v.target, R = U().contains(A) || k.contains(A);
17396
+ if (!(v.type === "mousemove" && R)) {
17397
+ var q = Ot().concat(k).map(function(H) {
17398
+ var Se, _e = H._tippy, pn = (Se = _e.popperInstance) == null ? void 0 : Se.state;
17396
17399
  return pn ? {
17397
- popperRect: U.getBoundingClientRect(),
17400
+ popperRect: H.getBoundingClientRect(),
17398
17401
  popperState: pn,
17399
17402
  props: n
17400
17403
  } : null;
17401
17404
  }).filter(Boolean);
17402
- Gv(q, w) && (Be(), qt(w));
17405
+ Gv(q, v) && (Be(), qt(v));
17403
17406
  }
17404
17407
  }
17405
- function Fr(w) {
17406
- var A = Hn(w) || y.props.trigger.indexOf("click") >= 0 && s;
17408
+ function Fr(v) {
17409
+ var A = Hn(v) || y.props.trigger.indexOf("click") >= 0 && s;
17407
17410
  if (!A) {
17408
17411
  if (y.props.interactive) {
17409
- y.hideWithInteractivity(w);
17412
+ y.hideWithInteractivity(v);
17410
17413
  return;
17411
17414
  }
17412
- qt(w);
17415
+ qt(v);
17413
17416
  }
17414
17417
  }
17415
- function jn(w) {
17416
- y.props.trigger.indexOf("focusin") < 0 && w.target !== W() || y.props.interactive && w.relatedTarget && k.contains(w.relatedTarget) || qt(w);
17418
+ function jn(v) {
17419
+ y.props.trigger.indexOf("focusin") < 0 && v.target !== U() || y.props.interactive && v.relatedTarget && k.contains(v.relatedTarget) || qt(v);
17417
17420
  }
17418
- function Hn(w) {
17419
- return nt.isTouch ? $() !== w.type.indexOf("touch") >= 0 : !1;
17421
+ function Hn(v) {
17422
+ return nt.isTouch ? _() !== v.type.indexOf("touch") >= 0 : !1;
17420
17423
  }
17421
17424
  function Br() {
17422
17425
  _r();
17423
- var w = y.props, A = w.popperOptions, R = w.placement, q = w.offset, U = w.getReferenceClientRect, Se = w.moveTransition, _e = H() ? ps(k).arrow : null, pn = U ? {
17424
- getBoundingClientRect: U,
17425
- contextElement: U.contextElement || W()
17426
+ var v = y.props, A = v.popperOptions, R = v.placement, q = v.offset, H = v.getReferenceClientRect, Se = v.moveTransition, _e = W() ? ps(k).arrow : null, pn = H ? {
17427
+ getBoundingClientRect: H,
17428
+ contextElement: H.contextElement || U()
17426
17429
  } : t, Js = {
17427
17430
  name: "$$tippy",
17428
17431
  enabled: !0,
@@ -17430,8 +17433,8 @@ function fk(t, e) {
17430
17433
  requires: ["computeStyles"],
17431
17434
  fn: function(Hr) {
17432
17435
  var hn = Hr.state;
17433
- if (H()) {
17434
- var af = le(), $o = af.box;
17436
+ if (W()) {
17437
+ var af = oe(), $o = af.box;
17435
17438
  ["placement", "reference-hidden", "escaped"].forEach(function(Ur) {
17436
17439
  Ur === "placement" ? $o.setAttribute("data-placement", hn.placement) : hn.attributes.popper["data-popper-" + Ur] ? $o.setAttribute("data-" + Ur, "") : $o.removeAttribute("data-" + Ur);
17437
17440
  }), hn.attributes.popper = {};
@@ -17463,7 +17466,7 @@ function fk(t, e) {
17463
17466
  adaptive: !Se
17464
17467
  }
17465
17468
  }, Js];
17466
- H() && _e && Kt.push({
17469
+ W() && _e && Kt.push({
17467
17470
  name: "arrow",
17468
17471
  options: {
17469
17472
  element: _e,
@@ -17479,8 +17482,8 @@ function fk(t, e) {
17479
17482
  y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
17480
17483
  }
17481
17484
  function dt() {
17482
- var w = y.props.appendTo, A, R = W();
17483
- y.props.interactive && w === Ku || w === "parent" ? A = R.parentNode : A = Xu(w, [R]), A.contains(k) || A.appendChild(k), y.state.isMounted = !0, Br(), oe.env.NODE_ENV !== "production" && mt(y.props.interactive && w === Ie.appendTo && R.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
17485
+ var v = y.props.appendTo, A, R = U();
17486
+ y.props.interactive && v === Ku || v === "parent" ? A = R.parentNode : A = Xu(v, [R]), A.contains(k) || A.appendChild(k), y.state.isMounted = !0, Br(), ie.env.NODE_ENV !== "production" && mt(y.props.interactive && v === Ie.appendTo && R.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
17484
17487
 
17485
17488
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
17486
17489
 
@@ -17491,20 +17494,20 @@ function fk(t, e) {
17491
17494
  function Ot() {
17492
17495
  return Oo(k.querySelectorAll("[data-tippy-root]"));
17493
17496
  }
17494
- function Un(w) {
17495
- y.clearDelayTimeouts(), w && ie("onTrigger", [y, w]), Ee();
17496
- var A = se(!0), R = _(), q = R[0], U = R[1];
17497
- nt.isTouch && q === "hold" && U && (A = U), A ? r = setTimeout(function() {
17497
+ function Un(v) {
17498
+ y.clearDelayTimeouts(), v && se("onTrigger", [y, v]), Ee();
17499
+ var A = ae(!0), R = $(), q = R[0], H = R[1];
17500
+ nt.isTouch && q === "hold" && H && (A = H), A ? r = setTimeout(function() {
17498
17501
  y.show();
17499
17502
  }, A) : y.show();
17500
17503
  }
17501
- function qt(w) {
17502
- if (y.clearDelayTimeouts(), ie("onUntrigger", [y, w]), !y.state.isVisible) {
17504
+ function qt(v) {
17505
+ if (y.clearDelayTimeouts(), se("onUntrigger", [y, v]), !y.state.isVisible) {
17503
17506
  Ke();
17504
17507
  return;
17505
17508
  }
17506
- if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(w.type) >= 0 && s)) {
17507
- var A = se(!1);
17509
+ if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(v.type) >= 0 && s)) {
17510
+ var A = ae(!1);
17508
17511
  A ? o = setTimeout(function() {
17509
17512
  y.state.isVisible && y.hide();
17510
17513
  }, A) : i = requestAnimationFrame(function() {
@@ -17521,79 +17524,79 @@ function fk(t, e) {
17521
17524
  function $r() {
17522
17525
  clearTimeout(r), clearTimeout(o), cancelAnimationFrame(i);
17523
17526
  }
17524
- function Vr(w) {
17525
- if (oe.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("setProps")), !y.state.isDestroyed) {
17526
- ie("onBeforeUpdate", [y, w]), Rr();
17527
- var A = y.props, R = Vl(t, Object.assign({}, A, Fl(w), {
17527
+ function Vr(v) {
17528
+ if (ie.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("setProps")), !y.state.isDestroyed) {
17529
+ se("onBeforeUpdate", [y, v]), Rr();
17530
+ var A = y.props, R = Vl(t, Object.assign({}, A, Fl(v), {
17528
17531
  ignoreAttributes: !0
17529
17532
  }));
17530
17533
  y.props = R, fn(), A.interactiveDebounce !== R.interactiveDebounce && (Be(), h = Rl(Lr, R.interactiveDebounce)), A.triggerTarget && !R.triggerTarget ? Sn(A.triggerTarget).forEach(function(q) {
17531
17534
  q.removeAttribute("aria-expanded");
17532
17535
  }) : R.triggerTarget && t.removeAttribute("aria-expanded"), ke(), ce(), M && M(A, R), y.popperInstance && (Br(), Ot().forEach(function(q) {
17533
17536
  requestAnimationFrame(q._tippy.popperInstance.forceUpdate);
17534
- })), ie("onAfterUpdate", [y, w]);
17537
+ })), se("onAfterUpdate", [y, v]);
17535
17538
  }
17536
17539
  }
17537
- function jr(w) {
17540
+ function jr(v) {
17538
17541
  y.setProps({
17539
- content: w
17542
+ content: v
17540
17543
  });
17541
17544
  }
17542
17545
  function tf() {
17543
- oe.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("show"));
17544
- var w = y.state.isVisible, A = y.state.isDestroyed, R = !y.state.isEnabled, q = nt.isTouch && !y.props.touch, U = di(y.props.duration, 0, Ie.duration);
17545
- if (!(w || A || R || q) && !W().hasAttribute("disabled") && (ie("onShow", [y], !1), y.props.onShow(y) !== !1)) {
17546
- if (y.state.isVisible = !0, H() && (k.style.visibility = "visible"), ce(), Ee(), y.state.isMounted || (k.style.transition = "none"), H()) {
17547
- var Se = le(), _e = Se.box, pn = Se.content;
17546
+ ie.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("show"));
17547
+ var v = y.state.isVisible, A = y.state.isDestroyed, R = !y.state.isEnabled, q = nt.isTouch && !y.props.touch, H = di(y.props.duration, 0, Ie.duration);
17548
+ if (!(v || A || R || q) && !U().hasAttribute("disabled") && (se("onShow", [y], !1), y.props.onShow(y) !== !1)) {
17549
+ if (y.state.isVisible = !0, W() && (k.style.visibility = "visible"), ce(), Ee(), y.state.isMounted || (k.style.transition = "none"), W()) {
17550
+ var Se = oe(), _e = Se.box, pn = Se.content;
17548
17551
  ui([_e, pn], 0);
17549
17552
  }
17550
17553
  f = function() {
17551
17554
  var Kt;
17552
17555
  if (!(!y.state.isVisible || c)) {
17553
- if (c = !0, k.offsetHeight, k.style.transition = y.props.moveTransition, H() && y.props.animation) {
17554
- var zo = le(), Hr = zo.box, hn = zo.content;
17555
- ui([Hr, hn], U), Bl([Hr, hn], "visible");
17556
+ if (c = !0, k.offsetHeight, k.style.transition = y.props.moveTransition, W() && y.props.animation) {
17557
+ var zo = oe(), Hr = zo.box, hn = zo.content;
17558
+ ui([Hr, hn], H), Bl([Hr, hn], "visible");
17556
17559
  }
17557
- pe(), ke(), Ll(pi, y), (Kt = y.popperInstance) == null || Kt.forceUpdate(), ie("onMount", [y]), y.props.animation && H() && Xe(U, function() {
17558
- y.state.isShown = !0, ie("onShown", [y]);
17560
+ pe(), ke(), Ll(pi, y), (Kt = y.popperInstance) == null || Kt.forceUpdate(), se("onMount", [y]), y.props.animation && W() && Xe(H, function() {
17561
+ y.state.isShown = !0, se("onShown", [y]);
17559
17562
  });
17560
17563
  }
17561
17564
  }, dt();
17562
17565
  }
17563
17566
  }
17564
17567
  function nf() {
17565
- oe.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("hide"));
17566
- var w = !y.state.isVisible, A = y.state.isDestroyed, R = !y.state.isEnabled, q = di(y.props.duration, 1, Ie.duration);
17567
- if (!(w || A || R) && (ie("onHide", [y], !1), y.props.onHide(y) !== !1)) {
17568
- if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, H() && (k.style.visibility = "hidden"), Be(), Ke(), ce(!0), H()) {
17569
- var U = le(), Se = U.box, _e = U.content;
17568
+ ie.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("hide"));
17569
+ var v = !y.state.isVisible, A = y.state.isDestroyed, R = !y.state.isEnabled, q = di(y.props.duration, 1, Ie.duration);
17570
+ if (!(v || A || R) && (se("onHide", [y], !1), y.props.onHide(y) !== !1)) {
17571
+ if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, W() && (k.style.visibility = "hidden"), Be(), Ke(), ce(!0), W()) {
17572
+ var H = oe(), Se = H.box, _e = H.content;
17570
17573
  y.props.animation && (ui([Se, _e], q), Bl([Se, _e], "hidden"));
17571
17574
  }
17572
- pe(), ke(), y.props.animation ? H() && xt(q, y.unmount) : y.unmount();
17575
+ pe(), ke(), y.props.animation ? W() && xt(q, y.unmount) : y.unmount();
17573
17576
  }
17574
17577
  }
17575
- function rf(w) {
17576
- oe.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("hideWithInteractivity")), Y().addEventListener("mousemove", h), Ll(Qr, h), h(w);
17578
+ function rf(v) {
17579
+ ie.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("hideWithInteractivity")), ee().addEventListener("mousemove", h), Ll(Qr, h), h(v);
17577
17580
  }
17578
17581
  function of() {
17579
- oe.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (_r(), Ot().forEach(function(w) {
17580
- w._tippy.unmount();
17581
- }), k.parentNode && k.parentNode.removeChild(k), pi = pi.filter(function(w) {
17582
- return w !== y;
17583
- }), y.state.isMounted = !1, ie("onHidden", [y]));
17582
+ ie.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (_r(), Ot().forEach(function(v) {
17583
+ v._tippy.unmount();
17584
+ }), k.parentNode && k.parentNode.removeChild(k), pi = pi.filter(function(v) {
17585
+ return v !== y;
17586
+ }), y.state.isMounted = !1, se("onHidden", [y]));
17584
17587
  }
17585
17588
  function sf() {
17586
- oe.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Rr(), delete t._tippy, y.state.isDestroyed = !0, ie("onDestroy", [y]));
17589
+ ie.env.NODE_ENV !== "production" && mt(y.state.isDestroyed, wn("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Rr(), delete t._tippy, y.state.isDestroyed = !0, se("onDestroy", [y]));
17587
17590
  }
17588
17591
  }
17589
17592
  function Ir(t, e) {
17590
17593
  e === void 0 && (e = {});
17591
17594
  var n = Ie.plugins.concat(e.plugins || []);
17592
- oe.env.NODE_ENV !== "production" && (ik(t), Qu(e, n)), ek();
17595
+ ie.env.NODE_ENV !== "production" && (ik(t), Qu(e, n)), ek();
17593
17596
  var r = Object.assign({}, e, {
17594
17597
  plugins: n
17595
17598
  }), o = Jv(t);
17596
- if (oe.env.NODE_ENV !== "production") {
17599
+ if (ie.env.NODE_ENV !== "production") {
17597
17600
  var i = Sr(r.content), s = o.length > 1;
17598
17601
  mt(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.", `
17599
17602
 
@@ -17697,10 +17700,10 @@ const pk = (t, e) => {
17697
17700
  ], 42, hk))), 128))
17698
17701
  ], 544));
17699
17702
  }
17700
- }, vk = /* @__PURE__ */ pk(wk, [["__scopeId", "data-v-0a2a8b4e"]]), Ul = new G("popoverPlugin"), kk = Q.create({
17703
+ }, vk = /* @__PURE__ */ pk(wk, [["__scopeId", "data-v-0a2a8b4e"]]), Ul = new Y("popoverPlugin"), kk = Z.create({
17701
17704
  name: "popoverPlugin",
17702
17705
  addPmPlugins() {
17703
- return [new Z({
17706
+ return [new G({
17704
17707
  key: Ul,
17705
17708
  state: {
17706
17709
  init: () => ({}),
@@ -17802,7 +17805,7 @@ class Ck {
17802
17805
  this.tippyInstance.destroy(), this.popover.remove();
17803
17806
  }
17804
17807
  }
17805
- const Sk = !1, xk = Q.create({
17808
+ const Sk = !1, xk = Z.create({
17806
17809
  name: "pagination",
17807
17810
  addStorage() {
17808
17811
  return {
@@ -17828,7 +17831,7 @@ const Sk = !1, xk = Q.create({
17828
17831
  addPmPlugins() {
17829
17832
  const t = this.editor;
17830
17833
  let e = !1, n = !1, r = !1, o = !1;
17831
- return [new Z({
17834
+ return [new G({
17832
17835
  key: on,
17833
17836
  state: {
17834
17837
  isReadyToInit: !1,
@@ -17923,30 +17926,30 @@ function Ok(t, e, n, r) {
17923
17926
  f.titlePg && (h = null);
17924
17927
  const m = hi(s, i, r, h), g = gi({ editor: n, header: m, isFirstHeader: !0 });
17925
17928
  o.push(z.widget(0, g, { key: "stable-key" }));
17926
- const b = p.last || p.default || "default", v = mi(s, i, r, b), C = gi({ editor: n, footer: v, isLastFooter: !0 });
17927
- c -= m.headerHeight + v.footerHeight;
17929
+ const b = p.last || p.default || "default", w = mi(s, i, r, b), C = gi({ editor: n, footer: w, isLastFooter: !0 });
17930
+ c -= m.headerHeight + w.footerHeight;
17928
17931
  let y = e?.coordsAtPos(t.content.size);
17929
17932
  if (!y) return [];
17930
- t.descendants((H, W) => {
17931
- let Y = H, le = W;
17932
- if (y = e?.coordsAtPos(le), !y) return;
17933
- let se = y.bottom > c;
17934
- const ce = Y.type.name === "hardBreak";
17935
- if (Y.type.name === "paragraph" && Y.attrs.styleId) {
17936
- const pe = oo.getState(n.state)?.styles?.find((ke) => ke.id === Y.attrs.styleId);
17933
+ t.descendants((W, U) => {
17934
+ let ee = W, oe = U;
17935
+ if (y = e?.coordsAtPos(oe), !y) return;
17936
+ let ae = y.bottom > c;
17937
+ const ce = ee.type.name === "hardBreak";
17938
+ if (ee.type.name === "paragraph" && ee.attrs.styleId) {
17939
+ const pe = oo.getState(n.state)?.styles?.find((ke) => ke.id === ee.attrs.styleId);
17937
17940
  if (pe) {
17938
17941
  const { definition: ke = {} } = pe, { pageBreakBefore: Be, pageBreakAfter: Ce } = ke.attrs || {};
17939
- (Be || Ce) && (se = !0);
17942
+ (Be || Ce) && (ae = !0);
17940
17943
  }
17941
17944
  }
17942
- if (ce || se) {
17943
- const ie = e.state.doc.resolve(le), pe = Fo(ie, (Mt) => Mt.type.name === "tableRow");
17944
- pe && (Y = pe.node, le = pe.pos);
17945
+ if (ce || ae) {
17946
+ const se = e.state.doc.resolve(oe), pe = Fo(se, (Mt) => Mt.type.name === "tableRow");
17947
+ pe && (ee = pe.node, oe = pe.pos);
17945
17948
  const {
17946
17949
  top: ke,
17947
17950
  bottom: Be,
17948
17951
  pos: Ce
17949
- } = Tk(e, le, c);
17952
+ } = Tk(e, oe, c);
17950
17953
  l++;
17951
17954
  const ct = (l % 2 === 0 ? f.even : f.odd) || f.default, qe = (l % 2 === 0 ? p.even : p.odd) || p.default;
17952
17955
  u = hi(s, i, r, ct), d = mi(s, i, r, qe);
@@ -17959,8 +17962,8 @@ function Ok(t, e, n, r) {
17959
17962
  let S = t.content.size;
17960
17963
  const k = e.coordsAtPos(S), M = (l % 2 === 0 ? f.even : f.odd) || f.default, L = (l % 2 === 0 ? p.even : p.odd) || p.default;
17961
17964
  u = hi(s, i, r, M), d = mi(s, i, r, L);
17962
- const x = c - k.bottom, { node: _ } = Wl(x), $ = z.widget(t.content.size, _, { key: "stable-key" });
17963
- return o.push($), o.push(z.widget(t.content.size, C, { key: "stable-key" })), o;
17965
+ const x = c - k.bottom, { node: $ } = Wl(x), _ = z.widget(t.content.size, $, { key: "stable-key" });
17966
+ return o.push(_), o.push(z.widget(t.content.size, C, { key: "stable-key" })), o;
17964
17967
  }
17965
17968
  function Wl(t) {
17966
17969
  const e = document.createElement("div");
@@ -18106,7 +18109,7 @@ export {
18106
18109
  me as C,
18107
18110
  ji as E,
18108
18111
  Mo as I,
18109
- ee as N,
18112
+ Q as N,
18110
18113
  Iw as P,
18111
18114
  de as T,
18112
18115
  pk as _,
@@ -18119,7 +18122,7 @@ export {
18119
18122
  Yo as g,
18120
18123
  Dk as h,
18121
18124
  vd as i,
18122
- Q as j,
18125
+ Z as j,
18123
18126
  kd as k,
18124
18127
  Vk as l,
18125
18128
  Hk as m,