mhz-ui 1.1.35 → 1.1.37

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.
@@ -8948,8 +8948,8 @@ function If(n) {
8948
8948
  var e = Nf && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || Df && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? zr : gt)[n.keyCode] || n.key || "Unidentified";
8949
8949
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
8950
8950
  }
8951
- const Rf = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
8952
- function Pf(n) {
8951
+ const Rf = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), Pf = typeof navigator < "u" && /Win/.test(navigator.platform);
8952
+ function Bf(n) {
8953
8953
  let e = n.split(/-(?!$)/), t = e[e.length - 1];
8954
8954
  t == "Space" && (t = " ");
8955
8955
  let r, i, s, o;
@@ -8970,20 +8970,20 @@ function Pf(n) {
8970
8970
  }
8971
8971
  return r && (t = "Alt-" + t), i && (t = "Ctrl-" + t), o && (t = "Meta-" + t), s && (t = "Shift-" + t), t;
8972
8972
  }
8973
- function Bf(n) {
8973
+ function Lf(n) {
8974
8974
  let e = /* @__PURE__ */ Object.create(null);
8975
8975
  for (let t in n)
8976
- e[Pf(t)] = n[t];
8976
+ e[Bf(t)] = n[t];
8977
8977
  return e;
8978
8978
  }
8979
8979
  function vi(n, e, t = !0) {
8980
8980
  return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t && e.shiftKey && (n = "Shift-" + n), n;
8981
8981
  }
8982
- function Lf(n) {
8982
+ function zf(n) {
8983
8983
  return new oe({ props: { handleKeyDown: Ba(n) } });
8984
8984
  }
8985
8985
  function Ba(n) {
8986
- let e = Bf(n);
8986
+ let e = Lf(n);
8987
8987
  return function(t, r) {
8988
8988
  let i = If(r), s, o = e[vi(i, r)];
8989
8989
  if (o && o(t.state, t.dispatch, t))
@@ -8994,7 +8994,8 @@ function Ba(n) {
8994
8994
  if (l && l(t.state, t.dispatch, t))
8995
8995
  return !0;
8996
8996
  }
8997
- if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (s = gt[r.keyCode]) && s != i) {
8997
+ if ((r.altKey || r.metaKey || r.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
8998
+ !(Pf && r.ctrlKey && r.altKey) && (s = gt[r.keyCode]) && s != i) {
8998
8999
  let l = e[vi(s, r)];
8999
9000
  if (l && l(t.state, t.dispatch, t))
9000
9001
  return !0;
@@ -9034,13 +9035,13 @@ const za = (n, e, t) => {
9034
9035
  break;
9035
9036
  }
9036
9037
  return s.isAtom && i.depth == r.depth - 1 ? (e && e(n.tr.delete(i.pos - s.nodeSize, i.pos).scrollIntoView()), !0) : !1;
9037
- }, zf = (n, e, t) => {
9038
+ }, Ff = (n, e, t) => {
9038
9039
  let r = La(n, t);
9039
9040
  if (!r)
9040
9041
  return !1;
9041
9042
  let i = bs(r);
9042
9043
  return i ? Fa(n, i, e) : !1;
9043
- }, Ff = (n, e, t) => {
9044
+ }, Vf = (n, e, t) => {
9044
9045
  let r = $a(n, t);
9045
9046
  if (!r)
9046
9047
  return !1;
@@ -9154,7 +9155,7 @@ function vs(n) {
9154
9155
  }
9155
9156
  return null;
9156
9157
  }
9157
- const Vf = (n, e) => {
9158
+ const $f = (n, e) => {
9158
9159
  let t = n.selection, r = t instanceof A, i;
9159
9160
  if (r) {
9160
9161
  if (t.node.isTextblock || !bt(n.doc, t.from))
@@ -9167,7 +9168,7 @@ const Vf = (n, e) => {
9167
9168
  r && s.setSelection(A.create(s.doc, i - n.doc.resolve(i).nodeBefore.nodeSize)), e(s.scrollIntoView());
9168
9169
  }
9169
9170
  return !0;
9170
- }, $f = (n, e) => {
9171
+ }, Hf = (n, e) => {
9171
9172
  let t = n.selection, r;
9172
9173
  if (t instanceof A) {
9173
9174
  if (t.node.isTextblock || !bt(n.doc, t.to))
@@ -9176,7 +9177,7 @@ const Vf = (n, e) => {
9176
9177
  } else if (r = qr(n.doc, t.to, 1), r == null)
9177
9178
  return !1;
9178
9179
  return e && e(n.tr.join(r).scrollIntoView()), !0;
9179
- }, Hf = (n, e) => {
9180
+ }, jf = (n, e) => {
9180
9181
  let { $from: t, $to: r } = n.selection, i = t.blockRange(r), s = i && gn(i);
9181
9182
  return s == null ? !1 : (e && e(n.tr.lift(i, s).scrollIntoView()), !0);
9182
9183
  }, Wa = (n, e) => {
@@ -9192,7 +9193,7 @@ function ks(n) {
9192
9193
  }
9193
9194
  return null;
9194
9195
  }
9195
- const jf = (n, e) => {
9196
+ const Wf = (n, e) => {
9196
9197
  let { $head: t, $anchor: r } = n.selection;
9197
9198
  if (!t.parent.type.spec.code || !t.sameParent(r))
9198
9199
  return !1;
@@ -9228,7 +9229,7 @@ const jf = (n, e) => {
9228
9229
  let r = t.blockRange(), i = r && gn(r);
9229
9230
  return i == null ? !1 : (e && e(n.tr.lift(r, i).scrollIntoView()), !0);
9230
9231
  };
9231
- function Wf(n) {
9232
+ function qf(n) {
9232
9233
  return (e, t) => {
9233
9234
  let { $from: r, $to: i } = e.selection;
9234
9235
  if (e.selection instanceof A && e.selection.node.isBlock)
@@ -9257,17 +9258,17 @@ function Wf(n) {
9257
9258
  return t && t(u.scrollIntoView()), !0;
9258
9259
  };
9259
9260
  }
9260
- const qf = Wf(), Kf = (n, e) => {
9261
+ const Kf = qf(), _f = (n, e) => {
9261
9262
  let { $from: t, to: r } = n.selection, i, s = t.sharedDepth(r);
9262
9263
  return s == 0 ? !1 : (i = t.before(s), e && e(n.tr.setSelection(A.create(n.doc, i))), !0);
9263
9264
  };
9264
- function _f(n, e, t) {
9265
+ function Jf(n, e, t) {
9265
9266
  let r = e.nodeBefore, i = e.nodeAfter, s = e.index();
9266
9267
  return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(s - 1, s) ? (t && t(n.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(s, s + 1) || !(i.isTextblock || bt(n.doc, e.pos)) ? !1 : (t && t(n.tr.join(e.pos).scrollIntoView()), !0);
9267
9268
  }
9268
9269
  function _a(n, e, t, r) {
9269
9270
  let i = e.nodeBefore, s = e.nodeAfter, o, l, a = i.type.spec.isolating || s.type.spec.isolating;
9270
- if (!a && _f(n, e, t))
9271
+ if (!a && Jf(n, e, t))
9271
9272
  return !0;
9272
9273
  let c = !a && e.parent.canReplace(e.index(), e.index() + 1);
9273
9274
  if (c && (o = (l = i.contentMatchAt(i.childCount)).findWrapping(s.type)) && l.matchType(o[0] || s.type).validEnd) {
@@ -9315,8 +9316,8 @@ function Ja(n) {
9315
9316
  return i.node(s).isTextblock ? (t && t(e.tr.setSelection(D.create(e.doc, n < 0 ? i.start(s) : i.end(s)))), !0) : !1;
9316
9317
  };
9317
9318
  }
9318
- const Jf = Ja(-1), Uf = Ja(1);
9319
- function Gf(n, e = null) {
9319
+ const Uf = Ja(-1), Gf = Ja(1);
9320
+ function Yf(n, e = null) {
9320
9321
  return function(t, r) {
9321
9322
  let { $from: i, $to: s } = t.selection, o = i.blockRange(s), l = o && ss(o, n, e);
9322
9323
  return l ? (r && r(t.tr.wrap(o, l).scrollIntoView()), !0) : !1;
@@ -9362,18 +9363,18 @@ function xs(...n) {
9362
9363
  }
9363
9364
  xs(ys, za, Va);
9364
9365
  xs(ys, Ha, ja);
9365
- xs(Wa, qa, Ka, qf);
9366
+ xs(Wa, qa, Ka, Kf);
9366
9367
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
9367
- function Yf(n, e = null) {
9368
+ function Xf(n, e = null) {
9368
9369
  return function(t, r) {
9369
9370
  let { $from: i, $to: s } = t.selection, o = i.blockRange(s);
9370
9371
  if (!o)
9371
9372
  return !1;
9372
9373
  let l = r ? t.tr : null;
9373
- return Xf(l, o, n, e) ? (r && r(l.scrollIntoView()), !0) : !1;
9374
+ return Zf(l, o, n, e) ? (r && r(l.scrollIntoView()), !0) : !1;
9374
9375
  };
9375
9376
  }
9376
- function Xf(n, e, t, r = null) {
9377
+ function Zf(n, e, t, r = null) {
9377
9378
  let i = !1, s = e, o = e.$from.doc;
9378
9379
  if (e.depth >= 2 && e.$from.node(e.depth - 1).type.compatibleContent(t) && e.startIndex == 0) {
9379
9380
  if (e.$from.index(e.depth - 1) == 0)
@@ -9382,9 +9383,9 @@ function Xf(n, e, t, r = null) {
9382
9383
  s = new Nr(a, a, e.depth), e.endIndex < e.parent.childCount && (e = new Nr(e.$from, o.resolve(e.$to.end(e.depth)), e.depth)), i = !0;
9383
9384
  }
9384
9385
  let l = ss(s, t, r, e);
9385
- return l ? (n && Zf(n, e, l, i, t), !0) : !1;
9386
+ return l ? (n && Qf(n, e, l, i, t), !0) : !1;
9386
9387
  }
9387
- function Zf(n, e, t, r, i) {
9388
+ function Qf(n, e, t, r, i) {
9388
9389
  let s = x.empty;
9389
9390
  for (let u = t.length - 1; u >= 0; u--)
9390
9391
  s = x.from(t[u].type.create(t[u].attrs, s));
@@ -9397,13 +9398,13 @@ function Zf(n, e, t, r, i) {
9397
9398
  !f && Qe(n.doc, a, l) && (n.split(a, l), a += 2 * l), a += c.child(u).nodeSize;
9398
9399
  return n;
9399
9400
  }
9400
- function Qf(n) {
9401
+ function ep(n) {
9401
9402
  return function(e, t) {
9402
9403
  let { $from: r, $to: i } = e.selection, s = r.blockRange(i, (o) => o.childCount > 0 && o.firstChild.type == n);
9403
- return s ? t ? r.node(s.depth - 1).type == n ? ep(e, t, n, s) : tp(e, t, s) : !0 : !1;
9404
+ return s ? t ? r.node(s.depth - 1).type == n ? tp(e, t, n, s) : np(e, t, s) : !0 : !1;
9404
9405
  };
9405
9406
  }
9406
- function ep(n, e, t, r) {
9407
+ function tp(n, e, t, r) {
9407
9408
  let i = n.tr, s = r.end, o = r.$to.end(r.depth);
9408
9409
  s < o && (i.step(new J(s - 1, o, s, o, new S(x.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Nr(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
9409
9410
  const l = gn(r);
@@ -9413,7 +9414,7 @@ function ep(n, e, t, r) {
9413
9414
  let a = i.doc.resolve(i.mapping.map(s, -1) - 1);
9414
9415
  return bt(i.doc, a.pos) && a.nodeBefore.type == a.nodeAfter.type && i.join(a.pos), e(i.scrollIntoView()), !0;
9415
9416
  }
9416
- function tp(n, e, t) {
9417
+ function np(n, e, t) {
9417
9418
  let r = n.tr, i = t.parent;
9418
9419
  for (let p = t.end, h = t.endIndex - 1, m = t.startIndex; h > m; h--)
9419
9420
  p -= i.child(h).nodeSize, r.delete(p - 1, p + 1);
@@ -9426,7 +9427,7 @@ function tp(n, e, t) {
9426
9427
  let d = s.pos, f = d + o.nodeSize;
9427
9428
  return r.step(new J(d - (l ? 1 : 0), f + (a ? 1 : 0), d + 1, f - 1, new S((l ? x.empty : x.from(i.copy(x.empty))).append(a ? x.empty : x.from(i.copy(x.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
9428
9429
  }
9429
- function np(n) {
9430
+ function rp(n) {
9430
9431
  return function(e, t) {
9431
9432
  let { $from: r, $to: i } = e.selection, s = r.blockRange(i, (c) => c.childCount > 0 && c.firstChild.type == n);
9432
9433
  if (!s)
@@ -9529,7 +9530,7 @@ class Xr {
9529
9530
  return l;
9530
9531
  }
9531
9532
  }
9532
- class rp {
9533
+ class ip {
9533
9534
  constructor() {
9534
9535
  this.callbacks = {};
9535
9536
  }
@@ -9666,10 +9667,10 @@ function Ga(n) {
9666
9667
  function P(n, e = void 0, ...t) {
9667
9668
  return Ga(n) ? e ? n.bind(e)(...t) : n(...t) : n;
9668
9669
  }
9669
- function ip(n = {}) {
9670
+ function sp(n = {}) {
9670
9671
  return Object.keys(n).length === 0 && n.constructor === Object;
9671
9672
  }
9672
- function sp(n) {
9673
+ function op(n) {
9673
9674
  return typeof n != "string" ? n : n.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(n) : n === "true" ? !0 : n === "false" ? !1 : n;
9674
9675
  }
9675
9676
  function qo(n, e) {
@@ -9680,7 +9681,7 @@ function qo(n, e) {
9680
9681
  if (r === !1)
9681
9682
  return !1;
9682
9683
  const i = e.reduce((s, o) => {
9683
- const l = o.attribute.parseHTML ? o.attribute.parseHTML(t) : sp(t.getAttribute(o.name));
9684
+ const l = o.attribute.parseHTML ? o.attribute.parseHTML(t) : op(t.getAttribute(o.name));
9684
9685
  return l == null ? s : {
9685
9686
  ...s,
9686
9687
  [o.name]: l
@@ -9693,10 +9694,10 @@ function qo(n, e) {
9693
9694
  function Ko(n) {
9694
9695
  return Object.fromEntries(
9695
9696
  // @ts-ignore
9696
- Object.entries(n).filter(([e, t]) => e === "attrs" && ip(t) ? !1 : t != null)
9697
+ Object.entries(n).filter(([e, t]) => e === "attrs" && sp(t) ? !1 : t != null)
9697
9698
  );
9698
9699
  }
9699
- function op(n, e) {
9700
+ function lp(n, e) {
9700
9701
  var t;
9701
9702
  const r = Ua(n), { nodeExtensions: i, markExtensions: s } = Zr(n), o = (t = i.find((c) => C(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, l = Object.fromEntries(i.map((c) => {
9702
9703
  const u = r.filter((b) => b.type === c.name), d = {
@@ -9784,7 +9785,7 @@ function ws(n, e) {
9784
9785
  const t = jt.fromSchema(e).serializeFragment(n), i = document.implementation.createHTMLDocument().createElement("div");
9785
9786
  return i.appendChild(t), i.innerHTML;
9786
9787
  }
9787
- const lp = (n, e = 500) => {
9788
+ const ap = (n, e = 500) => {
9788
9789
  let t = "";
9789
9790
  const r = n.parentOffset;
9790
9791
  return n.parent.nodesBetween(Math.max(0, r - e), r, (i, s, o, l) => {
@@ -9806,7 +9807,7 @@ class Qr {
9806
9807
  this.find = e.find, this.handler = e.handler;
9807
9808
  }
9808
9809
  }
9809
- const ap = (n, e) => {
9810
+ const cp = (n, e) => {
9810
9811
  if (Ss(e))
9811
9812
  return e.exec(n);
9812
9813
  const t = e(n);
@@ -9827,11 +9828,11 @@ function hr(n) {
9827
9828
  )
9828
9829
  return !1;
9829
9830
  let u = !1;
9830
- const d = lp(c) + s;
9831
+ const d = ap(c) + s;
9831
9832
  return o.forEach((f) => {
9832
9833
  if (u)
9833
9834
  return;
9834
- const p = ap(d, f.find);
9835
+ const p = cp(d, f.find);
9835
9836
  if (!p)
9836
9837
  return;
9837
9838
  const h = a.state.tr, m = Yr({
@@ -9859,7 +9860,7 @@ function hr(n) {
9859
9860
  }), a.dispatch(h), u = !0);
9860
9861
  }), u;
9861
9862
  }
9862
- function cp(n) {
9863
+ function up(n) {
9863
9864
  const { editor: e, rules: t } = n, r = new oe({
9864
9865
  state: {
9865
9866
  init() {
@@ -9931,11 +9932,11 @@ function cp(n) {
9931
9932
  });
9932
9933
  return r;
9933
9934
  }
9934
- function up(n) {
9935
+ function dp(n) {
9935
9936
  return Object.prototype.toString.call(n).slice(8, -1);
9936
9937
  }
9937
9938
  function mr(n) {
9938
- return up(n) !== "Object" ? !1 : n.constructor === Object && Object.getPrototypeOf(n) === Object.prototype;
9939
+ return dp(n) !== "Object" ? !1 : n.constructor === Object && Object.getPrototypeOf(n) === Object.prototype;
9939
9940
  }
9940
9941
  function ei(n, e) {
9941
9942
  const t = { ...n };
@@ -9989,15 +9990,15 @@ class yt {
9989
9990
  return !1;
9990
9991
  }
9991
9992
  }
9992
- function dp(n) {
9993
+ function fp(n) {
9993
9994
  return typeof n == "number";
9994
9995
  }
9995
- class fp {
9996
+ class pp {
9996
9997
  constructor(e) {
9997
9998
  this.find = e.find, this.handler = e.handler;
9998
9999
  }
9999
10000
  }
10000
- const pp = (n, e, t) => {
10001
+ const hp = (n, e, t) => {
10001
10002
  if (Ss(e))
10002
10003
  return [...n.matchAll(e)];
10003
10004
  const r = e(n, t);
@@ -10006,7 +10007,7 @@ const pp = (n, e, t) => {
10006
10007
  return s.index = i.index, s.input = n, s.data = i.data, i.replaceWith && (i.text.includes(i.replaceWith) || console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'), s.push(i.replaceWith)), s;
10007
10008
  }) : [];
10008
10009
  };
10009
- function hp(n) {
10010
+ function mp(n) {
10010
10011
  const { editor: e, state: t, from: r, to: i, rule: s, pasteEvent: o, dropEvent: l } = n, { commands: a, chain: c, can: u } = new Xr({
10011
10012
  editor: e,
10012
10013
  state: t
@@ -10015,7 +10016,7 @@ function hp(n) {
10015
10016
  if (!p.isTextblock || p.type.spec.code)
10016
10017
  return;
10017
10018
  const m = Math.max(r, h), g = Math.min(i, h + p.content.size), b = p.textBetween(m - h, g - h, void 0, "");
10018
- pp(b, s.find, o).forEach((M) => {
10019
+ hp(b, s.find, o).forEach((M) => {
10019
10020
  if (M.index === void 0)
10020
10021
  return;
10021
10022
  const y = m + M.index + 1, O = y + M[0].length, k = {
@@ -10036,14 +10037,14 @@ function hp(n) {
10036
10037
  }), d.every((p) => p !== null);
10037
10038
  }
10038
10039
  let gr = null;
10039
- const mp = (n) => {
10040
+ const gp = (n) => {
10040
10041
  var e;
10041
10042
  const t = new ClipboardEvent("paste", {
10042
10043
  clipboardData: new DataTransfer()
10043
10044
  });
10044
10045
  return (e = t.clipboardData) === null || e === void 0 || e.setData("text/html", n), t;
10045
10046
  };
10046
- function gp(n) {
10047
+ function yp(n) {
10047
10048
  const { editor: e, rules: t } = n;
10048
10049
  let r = null, i = !1, s = !1, o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, l;
10049
10050
  try {
@@ -10056,7 +10057,7 @@ function gp(n) {
10056
10057
  state: u,
10057
10058
  transaction: m
10058
10059
  });
10059
- if (!(!hp({
10060
+ if (!(!mp({
10060
10061
  editor: e,
10061
10062
  state: g,
10062
10063
  from: Math.max(d - 1, 0),
@@ -10114,7 +10115,7 @@ function gp(n) {
10114
10115
  if (w) {
10115
10116
  let { text: O } = b;
10116
10117
  typeof O == "string" ? O = O : O = ws(x.from(O), p.schema);
10117
- const { from: k } = b, I = k + O.length, B = mp(O);
10118
+ const { from: k } = b, I = k + O.length, B = gp(O);
10118
10119
  return a({
10119
10120
  rule: u,
10120
10121
  state: p,
@@ -10124,7 +10125,7 @@ function gp(n) {
10124
10125
  });
10125
10126
  }
10126
10127
  const M = f.doc.content.findDiffStart(p.doc.content), y = f.doc.content.findDiffEnd(p.doc.content);
10127
- if (!(!dp(M) || !y || M === y.b))
10128
+ if (!(!fp(M) || !y || M === y.b))
10128
10129
  return a({
10129
10130
  rule: u,
10130
10131
  state: p,
@@ -10135,13 +10136,13 @@ function gp(n) {
10135
10136
  }
10136
10137
  }));
10137
10138
  }
10138
- function yp(n) {
10139
+ function bp(n) {
10139
10140
  const e = n.filter((t, r) => n.indexOf(t) !== r);
10140
10141
  return Array.from(new Set(e));
10141
10142
  }
10142
10143
  class tn {
10143
10144
  constructor(e, t) {
10144
- this.splittableMarks = [], this.editor = t, this.extensions = tn.resolve(e), this.schema = op(this.extensions, t), this.setupExtensions();
10145
+ this.splittableMarks = [], this.editor = t, this.extensions = tn.resolve(e), this.schema = lp(this.extensions, t), this.setupExtensions();
10145
10146
  }
10146
10147
  /**
10147
10148
  * Returns a flattened and sorted extension list while
@@ -10150,7 +10151,7 @@ class tn {
10150
10151
  * @returns An flattened and sorted array of Tiptap extensions
10151
10152
  */
10152
10153
  static resolve(e) {
10153
- const t = tn.sort(tn.flatten(e)), r = yp(t.map((i) => i.name));
10154
+ const t = tn.sort(tn.flatten(e)), r = bp(t.map((i) => i.name));
10154
10155
  return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), t;
10155
10156
  }
10156
10157
  /**
@@ -10216,7 +10217,7 @@ class tn {
10216
10217
  const m = Object.fromEntries(Object.entries(c()).map(([g, b]) => [g, () => b({ editor: e })]));
10217
10218
  u = { ...u, ...m };
10218
10219
  }
10219
- const d = Lf(u);
10220
+ const d = zf(u);
10220
10221
  a.push(d);
10221
10222
  const f = C(o, "addInputRules", l);
10222
10223
  _o(o, e.options.enableInputRules) && f && r.push(...f());
@@ -10230,11 +10231,11 @@ class tn {
10230
10231
  return a;
10231
10232
  }).flat();
10232
10233
  return [
10233
- cp({
10234
+ up({
10234
10235
  editor: e,
10235
10236
  rules: r
10236
10237
  }),
10237
- ...gp({
10238
+ ...yp({
10238
10239
  editor: e,
10239
10240
  rules: i
10240
10241
  }),
@@ -10361,7 +10362,7 @@ function Ya(n, e, t) {
10361
10362
  function Ms(n) {
10362
10363
  return Object.fromEntries(Object.entries(n.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText]));
10363
10364
  }
10364
- const bp = ee.create({
10365
+ const vp = ee.create({
10365
10366
  name: "clipboardTextSerializer",
10366
10367
  addOptions() {
10367
10368
  return {
@@ -10384,10 +10385,10 @@ const bp = ee.create({
10384
10385
  })
10385
10386
  ];
10386
10387
  }
10387
- }), vp = () => ({ editor: n, view: e }) => (requestAnimationFrame(() => {
10388
+ }), kp = () => ({ editor: n, view: e }) => (requestAnimationFrame(() => {
10388
10389
  var t;
10389
10390
  n.isDestroyed || (e.dom.blur(), (t = window?.getSelection()) === null || t === void 0 || t.removeAllRanges());
10390
- }), !0), kp = (n = !1) => ({ commands: e }) => e.setContent("", n), xp = () => ({ state: n, tr: e, dispatch: t }) => {
10391
+ }), !0), xp = (n = !1) => ({ commands: e }) => e.setContent("", n), wp = () => ({ state: n, tr: e, dispatch: t }) => {
10391
10392
  const { selection: r } = e, { ranges: i } = r;
10392
10393
  return t && i.forEach(({ $from: s, $to: o }) => {
10393
10394
  n.doc.nodesBetween(s.pos, o.pos, (l, a) => {
@@ -10404,12 +10405,12 @@ const bp = ee.create({
10404
10405
  (h || h === 0) && e.lift(p, h);
10405
10406
  });
10406
10407
  }), !0;
10407
- }, wp = (n) => (e) => n(e), Sp = () => ({ state: n, dispatch: e }) => qa(n, e), Mp = (n, e) => ({ editor: t, tr: r }) => {
10408
+ }, Sp = (n) => (e) => n(e), Mp = () => ({ state: n, dispatch: e }) => qa(n, e), Cp = (n, e) => ({ editor: t, tr: r }) => {
10408
10409
  const { state: i } = t, s = i.doc.slice(n.from, n.to);
10409
10410
  r.deleteRange(n.from, n.to);
10410
10411
  const o = r.mapping.map(e);
10411
10412
  return r.insert(o, s.content), r.setSelection(new D(r.doc.resolve(o - 1))), !0;
10412
- }, Cp = () => ({ tr: n, dispatch: e }) => {
10413
+ }, Op = () => ({ tr: n, dispatch: e }) => {
10413
10414
  const { selection: t } = n, r = t.$anchor.node();
10414
10415
  if (r.content.size > 0)
10415
10416
  return !1;
@@ -10423,7 +10424,7 @@ const bp = ee.create({
10423
10424
  return !0;
10424
10425
  }
10425
10426
  return !1;
10426
- }, Op = (n) => ({ tr: e, state: t, dispatch: r }) => {
10427
+ }, Tp = (n) => ({ tr: e, state: t, dispatch: r }) => {
10427
10428
  const i = G(n, t.schema), s = e.selection.$anchor;
10428
10429
  for (let o = s.depth; o > 0; o -= 1)
10429
10430
  if (s.node(o).type === i) {
@@ -10434,10 +10435,10 @@ const bp = ee.create({
10434
10435
  return !0;
10435
10436
  }
10436
10437
  return !1;
10437
- }, Tp = (n) => ({ tr: e, dispatch: t }) => {
10438
+ }, Ep = (n) => ({ tr: e, dispatch: t }) => {
10438
10439
  const { from: r, to: i } = n;
10439
10440
  return t && e.delete(r, i), !0;
10440
- }, Ep = () => ({ state: n, dispatch: e }) => ys(n, e), Ap = () => ({ commands: n }) => n.keyboardShortcut("Enter"), Np = () => ({ state: n, dispatch: e }) => jf(n, e);
10441
+ }, Ap = () => ({ state: n, dispatch: e }) => ys(n, e), Np = () => ({ commands: n }) => n.keyboardShortcut("Enter"), Dp = () => ({ state: n, dispatch: e }) => Wf(n, e);
10441
10442
  function Fr(n, e, t = { strict: !0 }) {
10442
10443
  const r = Object.keys(e);
10443
10444
  return r.length ? r.every((i) => t.strict ? e[i] === n[i] : Ss(e[i]) ? e[i].test(n[i]) : e[i] === n[i]) : !0;
@@ -10477,7 +10478,7 @@ function kt(n, e) {
10477
10478
  }
10478
10479
  return n;
10479
10480
  }
10480
- const Dp = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
10481
+ const Ip = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
10481
10482
  const s = kt(n, r.schema), { doc: o, selection: l } = t, { $from: a, from: c, to: u } = l;
10482
10483
  if (i) {
10483
10484
  const d = Cs(a, s, e);
@@ -10487,7 +10488,7 @@ const Dp = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
10487
10488
  }
10488
10489
  }
10489
10490
  return !0;
10490
- }, Ip = (n) => (e) => {
10491
+ }, Rp = (n) => (e) => {
10491
10492
  const t = typeof n == "function" ? n(e) : n;
10492
10493
  for (let r = 0; r < t.length; r += 1)
10493
10494
  if (t[r](e))
@@ -10511,7 +10512,7 @@ function Za(n, e = null) {
10511
10512
  const i = t.from, s = r.to;
10512
10513
  return e === "all" ? D.create(n, Ze(0, i, s), Ze(n.content.size, i, s)) : D.create(n, Ze(e, i, s), Ze(e, i, s));
10513
10514
  }
10514
- function Rp() {
10515
+ function Pp() {
10515
10516
  return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
10516
10517
  }
10517
10518
  function Ts() {
@@ -10524,13 +10525,13 @@ function Ts() {
10524
10525
  "iPod"
10525
10526
  ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document;
10526
10527
  }
10527
- const Pp = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) => {
10528
+ const Bp = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) => {
10528
10529
  e = {
10529
10530
  scrollIntoView: !0,
10530
10531
  ...e
10531
10532
  };
10532
10533
  const o = () => {
10533
- (Ts() || Rp()) && r.dom.focus(), requestAnimationFrame(() => {
10534
+ (Ts() || Pp()) && r.dom.focus(), requestAnimationFrame(() => {
10534
10535
  t.isDestroyed || (r.focus(), e?.scrollIntoView && t.commands.scrollIntoView());
10535
10536
  });
10536
10537
  };
@@ -10540,7 +10541,7 @@ const Pp = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) =>
10540
10541
  return o(), !0;
10541
10542
  const l = Za(i.doc, n) || t.state.selection, a = t.state.selection.eq(l);
10542
10543
  return s && (a || i.setSelection(l), a && i.storedMarks && i.setStoredMarks(i.storedMarks), o()), !0;
10543
- }, Bp = (n, e) => (t) => n.every((r, i) => e(r, { ...t, index: i })), Lp = (n, e) => ({ tr: t, commands: r }) => r.insertContentAt({ from: t.selection.from, to: t.selection.to }, n, e), Qa = (n) => {
10544
+ }, Lp = (n, e) => (t) => n.every((r, i) => e(r, { ...t, index: i })), zp = (n, e) => ({ tr: t, commands: r }) => r.insertContentAt({ from: t.selection.from, to: t.selection.to }, n, e), Qa = (n) => {
10544
10545
  const e = n.childNodes;
10545
10546
  for (let t = e.length - 1; t >= 0; t -= 1) {
10546
10547
  const r = e[t];
@@ -10601,7 +10602,7 @@ function Vr(n, e, t) {
10601
10602
  }
10602
10603
  return Vr("", e, t);
10603
10604
  }
10604
- function zp(n, e, t) {
10605
+ function Fp(n, e, t) {
10605
10606
  const r = n.steps.length - 1;
10606
10607
  if (r < e)
10607
10608
  return;
@@ -10614,7 +10615,7 @@ function zp(n, e, t) {
10614
10615
  o === 0 && (o = u);
10615
10616
  }), n.setSelection(R.near(n.doc.resolve(o), t));
10616
10617
  }
10617
- const Fp = (n) => !("type" in n), Vp = (n, e, t) => ({ tr: r, dispatch: i, editor: s }) => {
10618
+ const Vp = (n) => !("type" in n), $p = (n, e, t) => ({ tr: r, dispatch: i, editor: s }) => {
10618
10619
  var o;
10619
10620
  if (i) {
10620
10621
  t = {
@@ -10643,7 +10644,7 @@ const Fp = (n) => !("type" in n), Vp = (n, e, t) => ({ tr: r, dispatch: i, edito
10643
10644
  }), !1;
10644
10645
  }
10645
10646
  let { from: a, to: c } = typeof n == "number" ? { from: n, to: n } : { from: n.from, to: n.to }, u = !0, d = !0;
10646
- if ((Fp(l) ? l : [l]).forEach((h) => {
10647
+ if ((Vp(l) ? l : [l]).forEach((h) => {
10647
10648
  h.check(), u = u ? h.isText && h.marks.length === 0 : !1, d = d ? h.isBlock : !1;
10648
10649
  }), a === c && d) {
10649
10650
  const { parent: h } = r.doc.resolve(a);
@@ -10662,28 +10663,28 @@ const Fp = (n) => !("type" in n), Vp = (n, e, t) => ({ tr: r, dispatch: i, edito
10662
10663
  r.insertText(p, a, c);
10663
10664
  } else
10664
10665
  p = l, r.replaceWith(a, c, p);
10665
- t.updateSelection && zp(r, r.steps.length - 1, -1), t.applyInputRules && r.setMeta("applyInputRules", { from: a, text: p }), t.applyPasteRules && r.setMeta("applyPasteRules", { from: a, text: p });
10666
+ t.updateSelection && Fp(r, r.steps.length - 1, -1), t.applyInputRules && r.setMeta("applyInputRules", { from: a, text: p }), t.applyPasteRules && r.setMeta("applyPasteRules", { from: a, text: p });
10666
10667
  }
10667
10668
  return !0;
10668
- }, $p = () => ({ state: n, dispatch: e }) => Vf(n, e), Hp = () => ({ state: n, dispatch: e }) => $f(n, e), jp = () => ({ state: n, dispatch: e }) => za(n, e), Wp = () => ({ state: n, dispatch: e }) => Ha(n, e), qp = () => ({ state: n, dispatch: e, tr: t }) => {
10669
+ }, Hp = () => ({ state: n, dispatch: e }) => $f(n, e), jp = () => ({ state: n, dispatch: e }) => Hf(n, e), Wp = () => ({ state: n, dispatch: e }) => za(n, e), qp = () => ({ state: n, dispatch: e }) => Ha(n, e), Kp = () => ({ state: n, dispatch: e, tr: t }) => {
10669
10670
  try {
10670
10671
  const r = qr(n.doc, n.selection.$from.pos, -1);
10671
10672
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
10672
10673
  } catch {
10673
10674
  return !1;
10674
10675
  }
10675
- }, Kp = () => ({ state: n, dispatch: e, tr: t }) => {
10676
+ }, _p = () => ({ state: n, dispatch: e, tr: t }) => {
10676
10677
  try {
10677
10678
  const r = qr(n.doc, n.selection.$from.pos, 1);
10678
10679
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
10679
10680
  } catch {
10680
10681
  return !1;
10681
10682
  }
10682
- }, _p = () => ({ state: n, dispatch: e }) => zf(n, e), Jp = () => ({ state: n, dispatch: e }) => Ff(n, e);
10683
+ }, Jp = () => ({ state: n, dispatch: e }) => Ff(n, e), Up = () => ({ state: n, dispatch: e }) => Vf(n, e);
10683
10684
  function ec() {
10684
10685
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
10685
10686
  }
10686
- function Up(n) {
10687
+ function Gp(n) {
10687
10688
  const e = n.split(/-(?!$)/);
10688
10689
  let t = e[e.length - 1];
10689
10690
  t === "Space" && (t = " ");
@@ -10705,8 +10706,8 @@ function Up(n) {
10705
10706
  }
10706
10707
  return r && (t = `Alt-${t}`), i && (t = `Ctrl-${t}`), o && (t = `Meta-${t}`), s && (t = `Shift-${t}`), t;
10707
10708
  }
10708
- const Gp = (n) => ({ editor: e, view: t, tr: r, dispatch: i }) => {
10709
- const s = Up(n).split(/-(?!$)/), o = s.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), l = new KeyboardEvent("keydown", {
10709
+ const Yp = (n) => ({ editor: e, view: t, tr: r, dispatch: i }) => {
10710
+ const s = Gp(n).split(/-(?!$)/), o = s.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), l = new KeyboardEvent("keydown", {
10710
10711
  key: o === "Space" ? " " : o,
10711
10712
  altKey: s.includes("Alt"),
10712
10713
  ctrlKey: s.includes("Ctrl"),
@@ -10737,13 +10738,13 @@ function Hn(n, e, t = {}) {
10737
10738
  const a = i - r, c = l.filter((d) => o ? o.name === d.node.type.name : !0).filter((d) => Fr(d.node.attrs, t, { strict: !1 }));
10738
10739
  return s ? !!c.length : c.reduce((d, f) => d + f.to - f.from, 0) >= a;
10739
10740
  }
10740
- const Yp = (n, e = {}) => ({ state: t, dispatch: r }) => {
10741
+ const Xp = (n, e = {}) => ({ state: t, dispatch: r }) => {
10741
10742
  const i = G(n, t.schema);
10742
- return Hn(t, i, e) ? Hf(t, r) : !1;
10743
- }, Xp = () => ({ state: n, dispatch: e }) => Ka(n, e), Zp = (n) => ({ state: e, dispatch: t }) => {
10743
+ return Hn(t, i, e) ? jf(t, r) : !1;
10744
+ }, Zp = () => ({ state: n, dispatch: e }) => Ka(n, e), Qp = (n) => ({ state: e, dispatch: t }) => {
10744
10745
  const r = G(n, e.schema);
10745
- return Qf(r)(e, t);
10746
- }, Qp = () => ({ state: n, dispatch: e }) => Wa(n, e);
10746
+ return ep(r)(e, t);
10747
+ }, eh = () => ({ state: n, dispatch: e }) => Wa(n, e);
10747
10748
  function ti(n, e) {
10748
10749
  return e.nodes[n] ? "node" : e.marks[n] ? "mark" : null;
10749
10750
  }
@@ -10751,7 +10752,7 @@ function Uo(n, e) {
10751
10752
  const t = typeof e == "string" ? [e] : e;
10752
10753
  return Object.keys(n).reduce((r, i) => (t.includes(i) || (r[i] = n[i]), r), {});
10753
10754
  }
10754
- const eh = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
10755
+ const th = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
10755
10756
  let s = null, o = null;
10756
10757
  const l = ti(typeof n == "string" ? n : n.name, r.schema);
10757
10758
  return l ? (l === "node" && (s = G(n, r.schema)), l === "mark" && (o = kt(n, r.schema)), i && t.selection.ranges.forEach((a) => {
@@ -10761,13 +10762,13 @@ const eh = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
10761
10762
  });
10762
10763
  });
10763
10764
  }), !0) : !1;
10764
- }, th = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), nh = () => ({ tr: n, dispatch: e }) => {
10765
+ }, nh = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), rh = () => ({ tr: n, dispatch: e }) => {
10765
10766
  if (e) {
10766
10767
  const t = new ke(n.doc);
10767
10768
  n.setSelection(t);
10768
10769
  }
10769
10770
  return !0;
10770
- }, rh = () => ({ state: n, dispatch: e }) => Va(n, e), ih = () => ({ state: n, dispatch: e }) => ja(n, e), sh = () => ({ state: n, dispatch: e }) => Kf(n, e), oh = () => ({ state: n, dispatch: e }) => Uf(n, e), lh = () => ({ state: n, dispatch: e }) => Jf(n, e);
10771
+ }, ih = () => ({ state: n, dispatch: e }) => Va(n, e), sh = () => ({ state: n, dispatch: e }) => ja(n, e), oh = () => ({ state: n, dispatch: e }) => _f(n, e), lh = () => ({ state: n, dispatch: e }) => Gf(n, e), ah = () => ({ state: n, dispatch: e }) => Uf(n, e);
10771
10772
  function Ji(n, e, t = {}, r = {}) {
10772
10773
  return Vr(n, e, {
10773
10774
  slice: !1,
@@ -10775,7 +10776,7 @@ function Ji(n, e, t = {}, r = {}) {
10775
10776
  errorOnInvalidContent: r.errorOnInvalidContent
10776
10777
  });
10777
10778
  }
10778
- const ah = (n, e = !1, t = {}, r = {}) => ({ editor: i, tr: s, dispatch: o, commands: l }) => {
10779
+ const ch = (n, e = !1, t = {}, r = {}) => ({ editor: i, tr: s, dispatch: o, commands: l }) => {
10779
10780
  var a, c;
10780
10781
  const { doc: u } = s;
10781
10782
  if (t.preserveWhitespace !== "full") {
@@ -10797,7 +10798,7 @@ function tc(n, e) {
10797
10798
  const l = o.find((a) => a.type.name === t.name);
10798
10799
  return l ? { ...l.attrs } : {};
10799
10800
  }
10800
- function ch(n) {
10801
+ function uh(n) {
10801
10802
  for (let e = 0; e < n.edgeCount; e += 1) {
10802
10803
  const { type: t } = n.edge(e);
10803
10804
  if (t.isTextblock && !t.hasRequiredAttrs())
@@ -10805,7 +10806,7 @@ function ch(n) {
10805
10806
  }
10806
10807
  return null;
10807
10808
  }
10808
- function uh(n, e) {
10809
+ function dh(n, e) {
10809
10810
  for (let t = n.depth; t > 0; t -= 1) {
10810
10811
  const r = n.node(t);
10811
10812
  if (e(r))
@@ -10818,7 +10819,7 @@ function uh(n, e) {
10818
10819
  }
10819
10820
  }
10820
10821
  function Es(n) {
10821
- return (e) => uh(e.$from, n);
10822
+ return (e) => dh(e.$from, n);
10822
10823
  }
10823
10824
  function nc(n, e) {
10824
10825
  const t = {
@@ -10827,7 +10828,7 @@ function nc(n, e) {
10827
10828
  };
10828
10829
  return Ya(n, t, e);
10829
10830
  }
10830
- function dh(n, e) {
10831
+ function fh(n, e) {
10831
10832
  const t = G(e, n.schema), { from: r, to: i } = n.selection, s = [];
10832
10833
  n.doc.nodesBetween(r, i, (l) => {
10833
10834
  s.push(l);
@@ -10835,9 +10836,9 @@ function dh(n, e) {
10835
10836
  const o = s.reverse().find((l) => l.type.name === t.name);
10836
10837
  return o ? { ...o.attrs } : {};
10837
10838
  }
10838
- function fh(n, e) {
10839
+ function ph(n, e) {
10839
10840
  const t = ti(typeof e == "string" ? e : e.name, n.schema);
10840
- return t === "node" ? dh(n, e) : t === "mark" ? tc(n, e) : {};
10841
+ return t === "node" ? fh(n, e) : t === "mark" ? tc(n, e) : {};
10841
10842
  }
10842
10843
  function rc(n, e, t) {
10843
10844
  const r = [];
@@ -10884,7 +10885,7 @@ function Ui(n, e, t = {}) {
10884
10885
  const a = l.filter((d) => s ? s.name === d.mark.type.name : !0).filter((d) => Fr(d.mark.attrs, t, { strict: !1 })).reduce((d, f) => d + f.to - f.from, 0), c = l.filter((d) => s ? d.mark.type !== s && d.mark.type.excludes(s) : !0).reduce((d, f) => d + f.to - f.from, 0);
10885
10886
  return (a > 0 ? a + c : a) >= o;
10886
10887
  }
10887
- function ph(n, e, t = {}) {
10888
+ function hh(n, e, t = {}) {
10888
10889
  if (!e)
10889
10890
  return Hn(n, null, t) || Ui(n, null, t);
10890
10891
  const r = ti(e, n.schema);
@@ -10942,7 +10943,7 @@ function sc(n, e, t) {
10942
10943
  toJSON: () => b
10943
10944
  };
10944
10945
  }
10945
- function hh(n, e, t) {
10946
+ function mh(n, e, t) {
10946
10947
  var r;
10947
10948
  const { selection: i } = e;
10948
10949
  let s = null;
@@ -10964,7 +10965,7 @@ function hh(n, e, t) {
10964
10965
  }), c;
10965
10966
  });
10966
10967
  }
10967
- const mh = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
10968
+ const gh = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
10968
10969
  const { selection: s } = t, { empty: o, ranges: l } = s, a = kt(n, r.schema);
10969
10970
  if (i)
10970
10971
  if (o) {
@@ -10986,26 +10987,26 @@ const mh = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
10986
10987
  }) : t.addMark(h, m, a.create(e));
10987
10988
  });
10988
10989
  });
10989
- return hh(r, t, a);
10990
- }, gh = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), yh = (n, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
10990
+ return mh(r, t, a);
10991
+ }, yh = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), bh = (n, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
10991
10992
  const s = G(n, t.schema);
10992
10993
  let o;
10993
10994
  return t.selection.$anchor.sameParent(t.selection.$head) && (o = t.selection.$anchor.parent.attrs), s.isTextblock ? i().command(({ commands: l }) => Wo(s, { ...o, ...e })(t) ? !0 : l.clearNodes()).command(({ state: l }) => Wo(s, { ...o, ...e })(l, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
10994
- }, bh = (n) => ({ tr: e, dispatch: t }) => {
10995
+ }, vh = (n) => ({ tr: e, dispatch: t }) => {
10995
10996
  if (t) {
10996
10997
  const { doc: r } = e, i = Ze(n, 0, r.content.size), s = A.create(r, i);
10997
10998
  e.setSelection(s);
10998
10999
  }
10999
11000
  return !0;
11000
- }, vh = (n) => ({ tr: e, dispatch: t }) => {
11001
+ }, kh = (n) => ({ tr: e, dispatch: t }) => {
11001
11002
  if (t) {
11002
11003
  const { doc: r } = e, { from: i, to: s } = typeof n == "number" ? { from: n, to: n } : n, o = D.atStart(r).from, l = D.atEnd(r).to, a = Ze(i, o, l), c = Ze(s, o, l), u = D.create(r, a, c);
11003
11004
  e.setSelection(u);
11004
11005
  }
11005
11006
  return !0;
11006
- }, kh = (n) => ({ state: e, dispatch: t }) => {
11007
+ }, xh = (n) => ({ state: e, dispatch: t }) => {
11007
11008
  const r = G(n, e.schema);
11008
- return np(r)(e, t);
11009
+ return rp(r)(e, t);
11009
11010
  };
11010
11011
  function Yo(n, e) {
11011
11012
  const t = n.storedMarks || n.selection.$to.parentOffset && n.selection.$from.marks();
@@ -11014,13 +11015,13 @@ function Yo(n, e) {
11014
11015
  n.tr.ensureMarks(r);
11015
11016
  }
11016
11017
  }
11017
- const xh = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor: i }) => {
11018
+ const wh = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor: i }) => {
11018
11019
  const { selection: s, doc: o } = e, { $from: l, $to: a } = s, c = i.extensionManager.attributes, u = Mr(c, l.node().type.name, l.node().attrs);
11019
11020
  if (s instanceof A && s.node.isBlock)
11020
11021
  return !l.parentOffset || !Qe(o, l.pos) ? !1 : (r && (n && Yo(t, i.extensionManager.splittableMarks), e.split(l.pos).scrollIntoView()), !0);
11021
11022
  if (!l.parent.isBlock)
11022
11023
  return !1;
11023
- const d = a.parentOffset === a.parent.content.size, f = l.depth === 0 ? void 0 : ch(l.node(-1).contentMatchAt(l.indexAfter(-1)));
11024
+ const d = a.parentOffset === a.parent.content.size, f = l.depth === 0 ? void 0 : uh(l.node(-1).contentMatchAt(l.indexAfter(-1)));
11024
11025
  let p = d && f ? [
11025
11026
  {
11026
11027
  type: f,
@@ -11040,7 +11041,7 @@ const xh = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
11040
11041
  n && Yo(t, i.extensionManager.splittableMarks), e.scrollIntoView();
11041
11042
  }
11042
11043
  return h;
11043
- }, wh = (n, e = {}) => ({ tr: t, state: r, dispatch: i, editor: s }) => {
11044
+ }, Sh = (n, e = {}) => ({ tr: t, state: r, dispatch: i, editor: s }) => {
11044
11045
  var o;
11045
11046
  const l = G(n, r.schema), { $from: a, $to: c } = r.selection, u = r.selection.node;
11046
11047
  if (u && u.isBlock || a.depth < 2 || !a.sameParent(c))
@@ -11113,7 +11114,7 @@ const xh = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
11113
11114
  return !0;
11114
11115
  const i = n.doc.nodeAt(r);
11115
11116
  return t.node.type === i?.type && bt(n.doc, r) && n.join(r), !0;
11116
- }, Sh = (n, e, t, r = {}) => ({ editor: i, tr: s, state: o, dispatch: l, chain: a, commands: c, can: u }) => {
11117
+ }, Mh = (n, e, t, r = {}) => ({ editor: i, tr: s, state: o, dispatch: l, chain: a, commands: c, can: u }) => {
11117
11118
  const { extensions: d, splittableMarks: f } = i.extensionManager, p = G(n, o.schema), h = G(e, o.schema), { selection: m, storedMarks: g } = o, { $from: b, $to: w } = m, M = b.blockRange(w), y = g || m.$to.parentOffset && m.$from.marks();
11118
11119
  if (!M)
11119
11120
  return !1;
@@ -11128,17 +11129,17 @@ const xh = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
11128
11129
  const k = u().wrapInList(p, r), I = y.filter((B) => f.includes(B.type.name));
11129
11130
  return s.ensureMarks(I), k ? !0 : c.clearNodes();
11130
11131
  }).wrapInList(p, r).command(() => xi(s, p)).command(() => wi(s, p)).run();
11131
- }, Mh = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
11132
+ }, Ch = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
11132
11133
  const { extendEmptyMarkRange: s = !1 } = t, o = kt(n, r.schema);
11133
11134
  return Ui(r, o, e) ? i.unsetMark(o, { extendEmptyMarkRange: s }) : i.setMark(o, e);
11134
- }, Ch = (n, e, t = {}) => ({ state: r, commands: i }) => {
11135
+ }, Oh = (n, e, t = {}) => ({ state: r, commands: i }) => {
11135
11136
  const s = G(n, r.schema), o = G(e, r.schema), l = Hn(r, s, t);
11136
11137
  let a;
11137
11138
  return r.selection.$anchor.sameParent(r.selection.$head) && (a = r.selection.$anchor.parent.attrs), l ? i.setNode(o, a) : i.setNode(s, { ...a, ...t });
11138
- }, Oh = (n, e = {}) => ({ state: t, commands: r }) => {
11139
+ }, Th = (n, e = {}) => ({ state: t, commands: r }) => {
11139
11140
  const i = G(n, t.schema);
11140
11141
  return Hn(t, i, e) ? r.lift(i) : r.wrapIn(i, e);
11141
- }, Th = () => ({ state: n, dispatch: e }) => {
11142
+ }, Eh = () => ({ state: n, dispatch: e }) => {
11142
11143
  const t = n.plugins;
11143
11144
  for (let r = 0; r < t.length; r += 1) {
11144
11145
  const i = t[r];
@@ -11158,12 +11159,12 @@ const xh = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
11158
11159
  }
11159
11160
  }
11160
11161
  return !1;
11161
- }, Eh = () => ({ tr: n, dispatch: e }) => {
11162
+ }, Ah = () => ({ tr: n, dispatch: e }) => {
11162
11163
  const { selection: t } = n, { empty: r, ranges: i } = t;
11163
11164
  return r || e && i.forEach((s) => {
11164
11165
  n.removeMark(s.$from.pos, s.$to.pos);
11165
11166
  }), !0;
11166
- }, Ah = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
11167
+ }, Nh = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
11167
11168
  var s;
11168
11169
  const { extendEmptyMarkRange: o = !1 } = e, { selection: l } = t, a = kt(n, r.schema), { $from: c, empty: u, ranges: d } = l;
11169
11170
  if (!i)
@@ -11177,7 +11178,7 @@ const xh = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
11177
11178
  t.removeMark(f.$from.pos, f.$to.pos, a);
11178
11179
  });
11179
11180
  return t.removeStoredMark(a), !0;
11180
- }, Nh = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
11181
+ }, Dh = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
11181
11182
  let s = null, o = null;
11182
11183
  const l = ti(typeof n == "string" ? n : n.name, r.schema);
11183
11184
  return l ? (l === "node" && (s = G(n, r.schema)), l === "mark" && (o = kt(n, r.schema)), i && t.selection.ranges.forEach((a) => {
@@ -11208,82 +11209,82 @@ const xh = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
11208
11209
  }));
11209
11210
  }));
11210
11211
  }), !0) : !1;
11211
- }, Dh = (n, e = {}) => ({ state: t, dispatch: r }) => {
11212
- const i = G(n, t.schema);
11213
- return Gf(i, e)(t, r);
11214
11212
  }, Ih = (n, e = {}) => ({ state: t, dispatch: r }) => {
11215
11213
  const i = G(n, t.schema);
11216
11214
  return Yf(i, e)(t, r);
11215
+ }, Rh = (n, e = {}) => ({ state: t, dispatch: r }) => {
11216
+ const i = G(n, t.schema);
11217
+ return Xf(i, e)(t, r);
11217
11218
  };
11218
- var Rh = /* @__PURE__ */ Object.freeze({
11219
+ var Ph = /* @__PURE__ */ Object.freeze({
11219
11220
  __proto__: null,
11220
- blur: vp,
11221
- clearContent: kp,
11222
- clearNodes: xp,
11223
- command: wp,
11224
- createParagraphNear: Sp,
11225
- cut: Mp,
11226
- deleteCurrentNode: Cp,
11227
- deleteNode: Op,
11228
- deleteRange: Tp,
11229
- deleteSelection: Ep,
11230
- enter: Ap,
11231
- exitCode: Np,
11232
- extendMarkRange: Dp,
11233
- first: Ip,
11234
- focus: Pp,
11235
- forEach: Bp,
11236
- insertContent: Lp,
11237
- insertContentAt: Vp,
11238
- joinBackward: jp,
11239
- joinDown: Hp,
11240
- joinForward: Wp,
11241
- joinItemBackward: qp,
11242
- joinItemForward: Kp,
11243
- joinTextblockBackward: _p,
11244
- joinTextblockForward: Jp,
11245
- joinUp: $p,
11246
- keyboardShortcut: Gp,
11247
- lift: Yp,
11248
- liftEmptyBlock: Xp,
11249
- liftListItem: Zp,
11250
- newlineInCode: Qp,
11251
- resetAttributes: eh,
11252
- scrollIntoView: th,
11253
- selectAll: nh,
11254
- selectNodeBackward: rh,
11255
- selectNodeForward: ih,
11256
- selectParentNode: sh,
11257
- selectTextblockEnd: oh,
11258
- selectTextblockStart: lh,
11259
- setContent: ah,
11260
- setMark: mh,
11261
- setMeta: gh,
11262
- setNode: yh,
11263
- setNodeSelection: bh,
11264
- setTextSelection: vh,
11265
- sinkListItem: kh,
11266
- splitBlock: xh,
11267
- splitListItem: wh,
11268
- toggleList: Sh,
11269
- toggleMark: Mh,
11270
- toggleNode: Ch,
11271
- toggleWrap: Oh,
11272
- undoInputRule: Th,
11273
- unsetAllMarks: Eh,
11274
- unsetMark: Ah,
11275
- updateAttributes: Nh,
11276
- wrapIn: Dh,
11277
- wrapInList: Ih
11221
+ blur: kp,
11222
+ clearContent: xp,
11223
+ clearNodes: wp,
11224
+ command: Sp,
11225
+ createParagraphNear: Mp,
11226
+ cut: Cp,
11227
+ deleteCurrentNode: Op,
11228
+ deleteNode: Tp,
11229
+ deleteRange: Ep,
11230
+ deleteSelection: Ap,
11231
+ enter: Np,
11232
+ exitCode: Dp,
11233
+ extendMarkRange: Ip,
11234
+ first: Rp,
11235
+ focus: Bp,
11236
+ forEach: Lp,
11237
+ insertContent: zp,
11238
+ insertContentAt: $p,
11239
+ joinBackward: Wp,
11240
+ joinDown: jp,
11241
+ joinForward: qp,
11242
+ joinItemBackward: Kp,
11243
+ joinItemForward: _p,
11244
+ joinTextblockBackward: Jp,
11245
+ joinTextblockForward: Up,
11246
+ joinUp: Hp,
11247
+ keyboardShortcut: Yp,
11248
+ lift: Xp,
11249
+ liftEmptyBlock: Zp,
11250
+ liftListItem: Qp,
11251
+ newlineInCode: eh,
11252
+ resetAttributes: th,
11253
+ scrollIntoView: nh,
11254
+ selectAll: rh,
11255
+ selectNodeBackward: ih,
11256
+ selectNodeForward: sh,
11257
+ selectParentNode: oh,
11258
+ selectTextblockEnd: lh,
11259
+ selectTextblockStart: ah,
11260
+ setContent: ch,
11261
+ setMark: gh,
11262
+ setMeta: yh,
11263
+ setNode: bh,
11264
+ setNodeSelection: vh,
11265
+ setTextSelection: kh,
11266
+ sinkListItem: xh,
11267
+ splitBlock: wh,
11268
+ splitListItem: Sh,
11269
+ toggleList: Mh,
11270
+ toggleMark: Ch,
11271
+ toggleNode: Oh,
11272
+ toggleWrap: Th,
11273
+ undoInputRule: Eh,
11274
+ unsetAllMarks: Ah,
11275
+ unsetMark: Nh,
11276
+ updateAttributes: Dh,
11277
+ wrapIn: Ih,
11278
+ wrapInList: Rh
11278
11279
  });
11279
- const Ph = ee.create({
11280
+ const Bh = ee.create({
11280
11281
  name: "commands",
11281
11282
  addCommands() {
11282
11283
  return {
11283
- ...Rh
11284
+ ...Ph
11284
11285
  };
11285
11286
  }
11286
- }), Bh = ee.create({
11287
+ }), Lh = ee.create({
11287
11288
  name: "drop",
11288
11289
  addProseMirrorPlugins() {
11289
11290
  return [
@@ -11302,7 +11303,7 @@ const Ph = ee.create({
11302
11303
  })
11303
11304
  ];
11304
11305
  }
11305
- }), Lh = ee.create({
11306
+ }), zh = ee.create({
11306
11307
  name: "editable",
11307
11308
  addProseMirrorPlugins() {
11308
11309
  return [
@@ -11314,13 +11315,13 @@ const Ph = ee.create({
11314
11315
  })
11315
11316
  ];
11316
11317
  }
11317
- }), zh = new Ne("focusEvents"), Fh = ee.create({
11318
+ }), Fh = new Ne("focusEvents"), Vh = ee.create({
11318
11319
  name: "focusEvents",
11319
11320
  addProseMirrorPlugins() {
11320
11321
  const { editor: n } = this;
11321
11322
  return [
11322
11323
  new oe({
11323
- key: zh,
11324
+ key: Fh,
11324
11325
  props: {
11325
11326
  handleDOMEvents: {
11326
11327
  focus: (e, t) => {
@@ -11338,7 +11339,7 @@ const Ph = ee.create({
11338
11339
  })
11339
11340
  ];
11340
11341
  }
11341
- }), Vh = ee.create({
11342
+ }), $h = ee.create({
11342
11343
  name: "keymap",
11343
11344
  addKeyboardShortcuts() {
11344
11345
  const n = () => this.editor.commands.first(({ commands: o }) => [
@@ -11416,7 +11417,7 @@ const Ph = ee.create({
11416
11417
  })
11417
11418
  ];
11418
11419
  }
11419
- }), $h = ee.create({
11420
+ }), Hh = ee.create({
11420
11421
  name: "paste",
11421
11422
  addProseMirrorPlugins() {
11422
11423
  return [
@@ -11434,7 +11435,7 @@ const Ph = ee.create({
11434
11435
  })
11435
11436
  ];
11436
11437
  }
11437
- }), Hh = ee.create({
11438
+ }), jh = ee.create({
11438
11439
  name: "tabindex",
11439
11440
  addProseMirrorPlugins() {
11440
11441
  return [
@@ -11570,7 +11571,7 @@ class Et {
11570
11571
  }), this.editor.view.dispatch(t);
11571
11572
  }
11572
11573
  }
11573
- const jh = `.ProseMirror {
11574
+ const Wh = `.ProseMirror {
11574
11575
  position: relative;
11575
11576
  }
11576
11577
 
@@ -11645,14 +11646,14 @@ img.ProseMirror-separator {
11645
11646
  .tippy-box[data-animation=fade][data-state=hidden] {
11646
11647
  opacity: 0
11647
11648
  }`;
11648
- function Wh(n, e, t) {
11649
+ function qh(n, e, t) {
11649
11650
  const r = document.querySelector("style[data-tiptap-style]");
11650
11651
  if (r !== null)
11651
11652
  return r;
11652
11653
  const i = document.createElement("style");
11653
11654
  return e && i.setAttribute("nonce", e), i.setAttribute("data-tiptap-style", ""), i.innerHTML = n, document.getElementsByTagName("head")[0].appendChild(i), i;
11654
11655
  }
11655
- let qh = class extends rp {
11656
+ let Kh = class extends ip {
11656
11657
  constructor(e = {}) {
11657
11658
  super(), this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.options = {
11658
11659
  element: document.createElement("div"),
@@ -11714,7 +11715,7 @@ let qh = class extends rp {
11714
11715
  * Inject CSS styles.
11715
11716
  */
11716
11717
  injectCSS() {
11717
- this.options.injectCSS && document && (this.css = Wh(jh, this.options.injectNonce));
11718
+ this.options.injectCSS && document && (this.css = qh(Wh, this.options.injectNonce));
11718
11719
  }
11719
11720
  /**
11720
11721
  * Update editor options.
@@ -11783,16 +11784,16 @@ let qh = class extends rp {
11783
11784
  createExtensionManager() {
11784
11785
  var e, t;
11785
11786
  const i = [...this.options.enableCoreExtensions ? [
11786
- Lh,
11787
- bp.configure({
11787
+ zh,
11788
+ vp.configure({
11788
11789
  blockSeparator: (t = (e = this.options.coreExtensionOptions) === null || e === void 0 ? void 0 : e.clipboardTextSerializer) === null || t === void 0 ? void 0 : t.blockSeparator
11789
11790
  }),
11790
- Ph,
11791
- Fh,
11792
- Vh,
11793
- Hh,
11794
11791
  Bh,
11795
- $h
11792
+ Vh,
11793
+ $h,
11794
+ jh,
11795
+ Lh,
11796
+ Hh
11796
11797
  ].filter((s) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[s.name] !== !1 : !0) : [], ...this.options.extensions].filter((s) => ["extension", "node", "mark"].includes(s?.type));
11797
11798
  this.extensionManager = new tn(i, this);
11798
11799
  }
@@ -11918,11 +11919,11 @@ let qh = class extends rp {
11918
11919
  * Get attributes of the currently selected node or mark.
11919
11920
  */
11920
11921
  getAttributes(e) {
11921
- return fh(this.state, e);
11922
+ return ph(this.state, e);
11922
11923
  }
11923
11924
  isActive(e, t) {
11924
11925
  const r = typeof e == "string" ? e : null, i = typeof e == "string" ? t : e;
11925
- return ph(this.state, r, i);
11926
+ return hh(this.state, r, i);
11926
11927
  }
11927
11928
  /**
11928
11929
  * Get the document as JSON.
@@ -12017,7 +12018,7 @@ function cn(n) {
12017
12018
  }
12018
12019
  });
12019
12020
  }
12020
- function Kh(n) {
12021
+ function _h(n) {
12021
12022
  return new Qr({
12022
12023
  find: n.find,
12023
12024
  handler: ({ state: e, range: t, match: r }) => {
@@ -12108,7 +12109,7 @@ class me {
12108
12109
  }
12109
12110
  }
12110
12111
  function un(n) {
12111
- return new fp({
12112
+ return new pp({
12112
12113
  find: n.find,
12113
12114
  handler: ({ state: e, range: t, match: r, pasteEvent: i }) => {
12114
12115
  const s = P(n.getAttributes, void 0, r, i);
@@ -12125,11 +12126,11 @@ function un(n) {
12125
12126
  }
12126
12127
  });
12127
12128
  }
12128
- var pe = "top", Ee = "bottom", Ae = "right", he = "left", Ns = "auto", Zn = [pe, Ee, Ae, he], dn = "start", Wn = "end", _h = "clippingParents", oc = "viewport", Mn = "popper", Jh = "reference", Xo = /* @__PURE__ */ Zn.reduce(function(n, e) {
12129
+ var pe = "top", Ee = "bottom", Ae = "right", he = "left", Ns = "auto", Zn = [pe, Ee, Ae, he], dn = "start", Wn = "end", Jh = "clippingParents", oc = "viewport", Mn = "popper", Uh = "reference", Xo = /* @__PURE__ */ Zn.reduce(function(n, e) {
12129
12130
  return n.concat([e + "-" + dn, e + "-" + Wn]);
12130
12131
  }, []), lc = /* @__PURE__ */ [].concat(Zn, [Ns]).reduce(function(n, e) {
12131
12132
  return n.concat([e, e + "-" + dn, e + "-" + Wn]);
12132
- }, []), Uh = "beforeRead", Gh = "read", Yh = "afterRead", Xh = "beforeMain", Zh = "main", Qh = "afterMain", em = "beforeWrite", tm = "write", nm = "afterWrite", rm = [Uh, Gh, Yh, Xh, Zh, Qh, em, tm, nm];
12133
+ }, []), Gh = "beforeRead", Yh = "read", Xh = "afterRead", Zh = "beforeMain", Qh = "main", em = "afterMain", tm = "beforeWrite", nm = "write", rm = "afterWrite", im = [Gh, Yh, Xh, Zh, Qh, em, tm, nm, rm];
12133
12134
  function We(n) {
12134
12135
  return n ? (n.nodeName || "").toLowerCase() : null;
12135
12136
  }
@@ -12156,7 +12157,7 @@ function Ds(n) {
12156
12157
  var e = xe(n).ShadowRoot;
12157
12158
  return n instanceof e || n instanceof ShadowRoot;
12158
12159
  }
12159
- function im(n) {
12160
+ function sm(n) {
12160
12161
  var e = n.state;
12161
12162
  Object.keys(e.elements).forEach(function(t) {
12162
12163
  var r = e.styles[t] || {}, i = e.attributes[t] || {}, s = e.elements[t];
@@ -12166,7 +12167,7 @@ function im(n) {
12166
12167
  }));
12167
12168
  });
12168
12169
  }
12169
- function sm(n) {
12170
+ function om(n) {
12170
12171
  var e = n.state, t = {
12171
12172
  popper: {
12172
12173
  position: e.options.strategy,
@@ -12194,8 +12195,8 @@ const ac = {
12194
12195
  name: "applyStyles",
12195
12196
  enabled: !0,
12196
12197
  phase: "write",
12197
- fn: im,
12198
- effect: sm,
12198
+ fn: sm,
12199
+ effect: om,
12199
12200
  requires: ["computeStyles"]
12200
12201
  };
12201
12202
  function $e(n) {
@@ -12253,7 +12254,7 @@ function uc(n, e) {
12253
12254
  function tt(n) {
12254
12255
  return xe(n).getComputedStyle(n);
12255
12256
  }
12256
- function om(n) {
12257
+ function lm(n) {
12257
12258
  return ["table", "td", "th"].indexOf(We(n)) >= 0;
12258
12259
  }
12259
12260
  function xt(n) {
@@ -12278,7 +12279,7 @@ function Zo(n) {
12278
12279
  return !Te(n) || // https://github.com/popperjs/popper-core/issues/837
12279
12280
  tt(n).position === "fixed" ? null : n.offsetParent;
12280
12281
  }
12281
- function lm(n) {
12282
+ function am(n) {
12282
12283
  var e = /firefox/i.test(Yi()), t = /Trident/i.test(Yi());
12283
12284
  if (t && Te(n)) {
12284
12285
  var r = tt(n);
@@ -12295,9 +12296,9 @@ function lm(n) {
12295
12296
  return null;
12296
12297
  }
12297
12298
  function Qn(n) {
12298
- for (var e = xe(n), t = Zo(n); t && om(t) && tt(t).position === "static"; )
12299
+ for (var e = xe(n), t = Zo(n); t && lm(t) && tt(t).position === "static"; )
12299
12300
  t = Zo(t);
12300
- return t && (We(t) === "html" || We(t) === "body" && tt(t).position === "static") ? e : t || lm(n) || e;
12301
+ return t && (We(t) === "html" || We(t) === "body" && tt(t).position === "static") ? e : t || am(n) || e;
12301
12302
  }
12302
12303
  function Rs(n) {
12303
12304
  return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
@@ -12305,7 +12306,7 @@ function Rs(n) {
12305
12306
  function Dn(n, e, t) {
12306
12307
  return Bt(n, $r(e, t));
12307
12308
  }
12308
- function am(n, e, t) {
12309
+ function cm(n, e, t) {
12309
12310
  var r = Dn(n, e, t);
12310
12311
  return r > t ? t : r;
12311
12312
  }
@@ -12325,41 +12326,41 @@ function pc(n, e) {
12325
12326
  return t[r] = n, t;
12326
12327
  }, {});
12327
12328
  }
12328
- var cm = function(e, t) {
12329
+ var um = function(e, t) {
12329
12330
  return e = typeof e == "function" ? e(Object.assign({}, t.rects, {
12330
12331
  placement: t.placement
12331
12332
  })) : e, fc(typeof e != "number" ? e : pc(e, Zn));
12332
12333
  };
12333
- function um(n) {
12334
+ function dm(n) {
12334
12335
  var e, t = n.state, r = n.name, i = n.options, s = t.elements.arrow, o = t.modifiersData.popperOffsets, l = $e(t.placement), a = Rs(l), c = [he, Ae].indexOf(l) >= 0, u = c ? "height" : "width";
12335
12336
  if (!(!s || !o)) {
12336
- var d = cm(i.padding, t), f = Is(s), p = a === "y" ? pe : he, h = a === "y" ? Ee : Ae, m = t.rects.reference[u] + t.rects.reference[a] - o[a] - t.rects.popper[u], g = o[a] - t.rects.reference[a], b = Qn(s), w = b ? a === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, M = m / 2 - g / 2, y = d[p], O = w - f[u] - d[h], k = w / 2 - f[u] / 2 + M, I = Dn(y, k, O), B = a;
12337
+ var d = um(i.padding, t), f = Is(s), p = a === "y" ? pe : he, h = a === "y" ? Ee : Ae, m = t.rects.reference[u] + t.rects.reference[a] - o[a] - t.rects.popper[u], g = o[a] - t.rects.reference[a], b = Qn(s), w = b ? a === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, M = m / 2 - g / 2, y = d[p], O = w - f[u] - d[h], k = w / 2 - f[u] / 2 + M, I = Dn(y, k, O), B = a;
12337
12338
  t.modifiersData[r] = (e = {}, e[B] = I, e.centerOffset = I - k, e);
12338
12339
  }
12339
12340
  }
12340
- function dm(n) {
12341
+ function fm(n) {
12341
12342
  var e = n.state, t = n.options, r = t.element, i = r === void 0 ? "[data-popper-arrow]" : r;
12342
12343
  i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || uc(e.elements.popper, i) && (e.elements.arrow = i));
12343
12344
  }
12344
- const fm = {
12345
+ const pm = {
12345
12346
  name: "arrow",
12346
12347
  enabled: !0,
12347
12348
  phase: "main",
12348
- fn: um,
12349
- effect: dm,
12349
+ fn: dm,
12350
+ effect: fm,
12350
12351
  requires: ["popperOffsets"],
12351
12352
  requiresIfExists: ["preventOverflow"]
12352
12353
  };
12353
12354
  function hn(n) {
12354
12355
  return n.split("-")[1];
12355
12356
  }
12356
- var pm = {
12357
+ var hm = {
12357
12358
  top: "auto",
12358
12359
  right: "auto",
12359
12360
  bottom: "auto",
12360
12361
  left: "auto"
12361
12362
  };
12362
- function hm(n, e) {
12363
+ function mm(n, e) {
12363
12364
  var t = n.x, r = n.y, i = e.devicePixelRatio || 1;
12364
12365
  return {
12365
12366
  x: fn(t * i) / i || 0,
@@ -12397,7 +12398,7 @@ function Qo(n) {
12397
12398
  }
12398
12399
  var $ = Object.assign({
12399
12400
  position: l
12400
- }, c && pm), H = u === !0 ? hm({
12401
+ }, c && hm), H = u === !0 ? mm({
12401
12402
  x: p,
12402
12403
  y: m
12403
12404
  }, xe(t)) : {
@@ -12410,7 +12411,7 @@ function Qo(n) {
12410
12411
  }
12411
12412
  return Object.assign({}, $, (e = {}, e[y] = w ? m + "px" : "", e[M] = b ? p + "px" : "", e.transform = "", e));
12412
12413
  }
12413
- function mm(n) {
12414
+ function gm(n) {
12414
12415
  var e = n.state, t = n.options, r = t.gpuAcceleration, i = r === void 0 ? !0 : r, s = t.adaptive, o = s === void 0 ? !0 : s, l = t.roundOffsets, a = l === void 0 ? !0 : l, c = {
12415
12416
  placement: $e(e.placement),
12416
12417
  variation: hn(e.placement),
@@ -12433,17 +12434,17 @@ function mm(n) {
12433
12434
  "data-popper-placement": e.placement
12434
12435
  });
12435
12436
  }
12436
- const gm = {
12437
+ const ym = {
12437
12438
  name: "computeStyles",
12438
12439
  enabled: !0,
12439
12440
  phase: "beforeWrite",
12440
- fn: mm,
12441
+ fn: gm,
12441
12442
  data: {}
12442
12443
  };
12443
12444
  var br = {
12444
12445
  passive: !0
12445
12446
  };
12446
- function ym(n) {
12447
+ function bm(n) {
12447
12448
  var e = n.state, t = n.instance, r = n.options, i = r.scroll, s = i === void 0 ? !0 : i, o = r.resize, l = o === void 0 ? !0 : o, a = xe(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
12448
12449
  return s && c.forEach(function(u) {
12449
12450
  u.addEventListener("scroll", t.update, br);
@@ -12453,16 +12454,16 @@ function ym(n) {
12453
12454
  }), l && a.removeEventListener("resize", t.update, br);
12454
12455
  };
12455
12456
  }
12456
- const bm = {
12457
+ const vm = {
12457
12458
  name: "eventListeners",
12458
12459
  enabled: !0,
12459
12460
  phase: "write",
12460
12461
  fn: function() {
12461
12462
  },
12462
- effect: ym,
12463
+ effect: bm,
12463
12464
  data: {}
12464
12465
  };
12465
- var vm = {
12466
+ var km = {
12466
12467
  left: "right",
12467
12468
  right: "left",
12468
12469
  bottom: "top",
@@ -12470,16 +12471,16 @@ var vm = {
12470
12471
  };
12471
12472
  function Cr(n) {
12472
12473
  return n.replace(/left|right|bottom|top/g, function(e) {
12473
- return vm[e];
12474
+ return km[e];
12474
12475
  });
12475
12476
  }
12476
- var km = {
12477
+ var xm = {
12477
12478
  start: "end",
12478
12479
  end: "start"
12479
12480
  };
12480
12481
  function el(n) {
12481
12482
  return n.replace(/start|end/g, function(e) {
12482
- return km[e];
12483
+ return xm[e];
12483
12484
  });
12484
12485
  }
12485
12486
  function Ps(n) {
@@ -12492,7 +12493,7 @@ function Ps(n) {
12492
12493
  function Bs(n) {
12493
12494
  return pn(xt(n)).left + Ps(n).scrollLeft;
12494
12495
  }
12495
- function xm(n, e) {
12496
+ function wm(n, e) {
12496
12497
  var t = xe(n), r = xt(n), i = t.visualViewport, s = r.clientWidth, o = r.clientHeight, l = 0, a = 0;
12497
12498
  if (i) {
12498
12499
  s = i.width, o = i.height;
@@ -12506,7 +12507,7 @@ function xm(n, e) {
12506
12507
  y: a
12507
12508
  };
12508
12509
  }
12509
- function wm(n) {
12510
+ function Sm(n) {
12510
12511
  var e, t = xt(n), r = Ps(n), i = (e = n.ownerDocument) == null ? void 0 : e.body, s = Bt(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = Bt(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), l = -r.scrollLeft + Bs(n), a = -r.scrollTop;
12511
12512
  return tt(i || t).direction === "rtl" && (l += Bt(t.clientWidth, i ? i.clientWidth : 0) - s), {
12512
12513
  width: s,
@@ -12539,21 +12540,21 @@ function Xi(n) {
12539
12540
  bottom: n.y + n.height
12540
12541
  });
12541
12542
  }
12542
- function Sm(n, e) {
12543
+ function Mm(n, e) {
12543
12544
  var t = pn(n, !1, e === "fixed");
12544
12545
  return t.top = t.top + n.clientTop, t.left = t.left + n.clientLeft, t.bottom = t.top + n.clientHeight, t.right = t.left + n.clientWidth, t.width = n.clientWidth, t.height = n.clientHeight, t.x = t.left, t.y = t.top, t;
12545
12546
  }
12546
12547
  function tl(n, e, t) {
12547
- return e === oc ? Xi(xm(n, t)) : Ht(e) ? Sm(e, t) : Xi(wm(xt(n)));
12548
+ return e === oc ? Xi(wm(n, t)) : Ht(e) ? Mm(e, t) : Xi(Sm(xt(n)));
12548
12549
  }
12549
- function Mm(n) {
12550
+ function Cm(n) {
12550
12551
  var e = In(ni(n)), t = ["absolute", "fixed"].indexOf(tt(n).position) >= 0, r = t && Te(n) ? Qn(n) : n;
12551
12552
  return Ht(r) ? e.filter(function(i) {
12552
12553
  return Ht(i) && uc(i, r) && We(i) !== "body";
12553
12554
  }) : [];
12554
12555
  }
12555
- function Cm(n, e, t, r) {
12556
- var i = e === "clippingParents" ? Mm(n) : [].concat(e), s = [].concat(i, [t]), o = s[0], l = s.reduce(function(a, c) {
12556
+ function Om(n, e, t, r) {
12557
+ var i = e === "clippingParents" ? Cm(n) : [].concat(e), s = [].concat(i, [t]), o = s[0], l = s.reduce(function(a, c) {
12557
12558
  var u = tl(n, c, r);
12558
12559
  return a.top = Bt(u.top, a.top), a.right = $r(u.right, a.right), a.bottom = $r(u.bottom, a.bottom), a.left = Bt(u.left, a.left), a;
12559
12560
  }, tl(n, o, r));
@@ -12608,7 +12609,7 @@ function mc(n) {
12608
12609
  }
12609
12610
  function qn(n, e) {
12610
12611
  e === void 0 && (e = {});
12611
- var t = e, r = t.placement, i = r === void 0 ? n.placement : r, s = t.strategy, o = s === void 0 ? n.strategy : s, l = t.boundary, a = l === void 0 ? _h : l, c = t.rootBoundary, u = c === void 0 ? oc : c, d = t.elementContext, f = d === void 0 ? Mn : d, p = t.altBoundary, h = p === void 0 ? !1 : p, m = t.padding, g = m === void 0 ? 0 : m, b = fc(typeof g != "number" ? g : pc(g, Zn)), w = f === Mn ? Jh : Mn, M = n.rects.popper, y = n.elements[h ? w : f], O = Cm(Ht(y) ? y : y.contextElement || xt(n.elements.popper), a, u, o), k = pn(n.elements.reference), I = mc({
12612
+ var t = e, r = t.placement, i = r === void 0 ? n.placement : r, s = t.strategy, o = s === void 0 ? n.strategy : s, l = t.boundary, a = l === void 0 ? Jh : l, c = t.rootBoundary, u = c === void 0 ? oc : c, d = t.elementContext, f = d === void 0 ? Mn : d, p = t.altBoundary, h = p === void 0 ? !1 : p, m = t.padding, g = m === void 0 ? 0 : m, b = fc(typeof g != "number" ? g : pc(g, Zn)), w = f === Mn ? Uh : Mn, M = n.rects.popper, y = n.elements[h ? w : f], O = Om(Ht(y) ? y : y.contextElement || xt(n.elements.popper), a, u, o), k = pn(n.elements.reference), I = mc({
12612
12613
  reference: k,
12613
12614
  element: M,
12614
12615
  placement: i
@@ -12627,7 +12628,7 @@ function qn(n, e) {
12627
12628
  }
12628
12629
  return z;
12629
12630
  }
12630
- function Om(n, e) {
12631
+ function Tm(n, e) {
12631
12632
  e === void 0 && (e = {});
12632
12633
  var t = e, r = t.placement, i = t.boundary, s = t.rootBoundary, o = t.padding, l = t.flipVariations, a = t.allowedAutoPlacements, c = a === void 0 ? lc : a, u = hn(r), d = u ? l ? Xo : Xo.filter(function(h) {
12633
12634
  return hn(h) === u;
@@ -12647,17 +12648,17 @@ function Om(n, e) {
12647
12648
  return p[h] - p[m];
12648
12649
  });
12649
12650
  }
12650
- function Tm(n) {
12651
+ function Em(n) {
12651
12652
  if ($e(n) === Ns)
12652
12653
  return [];
12653
12654
  var e = Cr(n);
12654
12655
  return [el(n), e, el(e)];
12655
12656
  }
12656
- function Em(n) {
12657
+ function Am(n) {
12657
12658
  var e = n.state, t = n.options, r = n.name;
12658
12659
  if (!e.modifiersData[r]._skip) {
12659
- for (var i = t.mainAxis, s = i === void 0 ? !0 : i, o = t.altAxis, l = o === void 0 ? !0 : o, a = t.fallbackPlacements, c = t.padding, u = t.boundary, d = t.rootBoundary, f = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, m = t.allowedAutoPlacements, g = e.options.placement, b = $e(g), w = b === g, M = a || (w || !h ? [Cr(g)] : Tm(g)), y = [g].concat(M).reduce(function(qe, De) {
12660
- return qe.concat($e(De) === Ns ? Om(e, {
12660
+ for (var i = t.mainAxis, s = i === void 0 ? !0 : i, o = t.altAxis, l = o === void 0 ? !0 : o, a = t.fallbackPlacements, c = t.padding, u = t.boundary, d = t.rootBoundary, f = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, m = t.allowedAutoPlacements, g = e.options.placement, b = $e(g), w = b === g, M = a || (w || !h ? [Cr(g)] : Em(g)), y = [g].concat(M).reduce(function(qe, De) {
12661
+ return qe.concat($e(De) === Ns ? Tm(e, {
12661
12662
  placement: De,
12662
12663
  boundary: u,
12663
12664
  rootBoundary: d,
@@ -12701,11 +12702,11 @@ function Em(n) {
12701
12702
  e.placement !== E && (e.modifiersData[r]._skip = !0, e.placement = E, e.reset = !0);
12702
12703
  }
12703
12704
  }
12704
- const Am = {
12705
+ const Nm = {
12705
12706
  name: "flip",
12706
12707
  enabled: !0,
12707
12708
  phase: "main",
12708
- fn: Em,
12709
+ fn: Am,
12709
12710
  requiresIfExists: ["offset"],
12710
12711
  data: {
12711
12712
  _skip: !1
@@ -12727,7 +12728,7 @@ function rl(n) {
12727
12728
  return n[e] >= 0;
12728
12729
  });
12729
12730
  }
12730
- function Nm(n) {
12731
+ function Dm(n) {
12731
12732
  var e = n.state, t = n.name, r = e.rects.reference, i = e.rects.popper, s = e.modifiersData.preventOverflow, o = qn(e, {
12732
12733
  elementContext: "reference"
12733
12734
  }), l = qn(e, {
@@ -12743,14 +12744,14 @@ function Nm(n) {
12743
12744
  "data-popper-escaped": d
12744
12745
  });
12745
12746
  }
12746
- const Dm = {
12747
+ const Im = {
12747
12748
  name: "hide",
12748
12749
  enabled: !0,
12749
12750
  phase: "main",
12750
12751
  requiresIfExists: ["preventOverflow"],
12751
- fn: Nm
12752
+ fn: Dm
12752
12753
  };
12753
- function Im(n, e, t) {
12754
+ function Rm(n, e, t) {
12754
12755
  var r = $e(n), i = [he, pe].indexOf(r) >= 0 ? -1 : 1, s = typeof t == "function" ? t(Object.assign({}, e, {
12755
12756
  placement: n
12756
12757
  })) : t, o = s[0], l = s[1];
@@ -12762,20 +12763,20 @@ function Im(n, e, t) {
12762
12763
  y: l
12763
12764
  };
12764
12765
  }
12765
- function Rm(n) {
12766
+ function Pm(n) {
12766
12767
  var e = n.state, t = n.options, r = n.name, i = t.offset, s = i === void 0 ? [0, 0] : i, o = lc.reduce(function(u, d) {
12767
- return u[d] = Im(d, e.rects, s), u;
12768
+ return u[d] = Rm(d, e.rects, s), u;
12768
12769
  }, {}), l = o[e.placement], a = l.x, c = l.y;
12769
12770
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += a, e.modifiersData.popperOffsets.y += c), e.modifiersData[r] = o;
12770
12771
  }
12771
- const Pm = {
12772
+ const Bm = {
12772
12773
  name: "offset",
12773
12774
  enabled: !0,
12774
12775
  phase: "main",
12775
12776
  requires: ["popperOffsets"],
12776
- fn: Rm
12777
+ fn: Pm
12777
12778
  };
12778
- function Bm(n) {
12779
+ function Lm(n) {
12779
12780
  var e = n.state, t = n.name;
12780
12781
  e.modifiersData[t] = mc({
12781
12782
  reference: e.rects.reference,
@@ -12783,23 +12784,23 @@ function Bm(n) {
12783
12784
  placement: e.placement
12784
12785
  });
12785
12786
  }
12786
- const Lm = {
12787
+ const zm = {
12787
12788
  name: "popperOffsets",
12788
12789
  enabled: !0,
12789
12790
  phase: "read",
12790
- fn: Bm,
12791
+ fn: Lm,
12791
12792
  data: {}
12792
12793
  };
12793
- function zm(n) {
12794
+ function Fm(n) {
12794
12795
  return n === "x" ? "y" : "x";
12795
12796
  }
12796
- function Fm(n) {
12797
+ function Vm(n) {
12797
12798
  var e = n.state, t = n.options, r = n.name, i = t.mainAxis, s = i === void 0 ? !0 : i, o = t.altAxis, l = o === void 0 ? !1 : o, a = t.boundary, c = t.rootBoundary, u = t.altBoundary, d = t.padding, f = t.tether, p = f === void 0 ? !0 : f, h = t.tetherOffset, m = h === void 0 ? 0 : h, g = qn(e, {
12798
12799
  boundary: a,
12799
12800
  rootBoundary: c,
12800
12801
  padding: d,
12801
12802
  altBoundary: u
12802
- }), b = $e(e.placement), w = hn(e.placement), M = !w, y = Rs(b), O = zm(y), k = e.modifiersData.popperOffsets, I = e.rects.reference, B = e.rects.popper, E = typeof m == "function" ? m(Object.assign({}, e.rects, {
12803
+ }), b = $e(e.placement), w = hn(e.placement), M = !w, y = Rs(b), O = Fm(y), k = e.modifiersData.popperOffsets, I = e.rects.reference, B = e.rects.popper, E = typeof m == "function" ? m(Object.assign({}, e.rects, {
12803
12804
  placement: e.placement
12804
12805
  })) : m, z = typeof E == "number" ? {
12805
12806
  mainAxis: E,
@@ -12820,35 +12821,35 @@ function Fm(n) {
12820
12821
  k[y] = vn, H[y] = vn - ne;
12821
12822
  }
12822
12823
  if (l) {
12823
- var kn, rr = y === "x" ? pe : he, ir = y === "x" ? Ee : Ae, Je = k[O], rt = O === "y" ? "height" : "width", xn = Je + g[rr], Mt = Je - g[ir], wn = [pe, he].indexOf(b) !== -1, sr = (kn = $?.[O]) != null ? kn : 0, or = wn ? xn : Je - I[rt] - B[rt] - sr + z.altAxis, lr = wn ? Je + I[rt] + B[rt] - sr - z.altAxis : Mt, ar = p && wn ? am(or, Je, lr) : Dn(p ? or : xn, Je, p ? lr : Mt);
12824
+ var kn, rr = y === "x" ? pe : he, ir = y === "x" ? Ee : Ae, Je = k[O], rt = O === "y" ? "height" : "width", xn = Je + g[rr], Mt = Je - g[ir], wn = [pe, he].indexOf(b) !== -1, sr = (kn = $?.[O]) != null ? kn : 0, or = wn ? xn : Je - I[rt] - B[rt] - sr + z.altAxis, lr = wn ? Je + I[rt] + B[rt] - sr - z.altAxis : Mt, ar = p && wn ? cm(or, Je, lr) : Dn(p ? or : xn, Je, p ? lr : Mt);
12824
12825
  k[O] = ar, H[O] = ar - Je;
12825
12826
  }
12826
12827
  e.modifiersData[r] = H;
12827
12828
  }
12828
12829
  }
12829
- const Vm = {
12830
+ const $m = {
12830
12831
  name: "preventOverflow",
12831
12832
  enabled: !0,
12832
12833
  phase: "main",
12833
- fn: Fm,
12834
+ fn: Vm,
12834
12835
  requiresIfExists: ["offset"]
12835
12836
  };
12836
- function $m(n) {
12837
+ function Hm(n) {
12837
12838
  return {
12838
12839
  scrollLeft: n.scrollLeft,
12839
12840
  scrollTop: n.scrollTop
12840
12841
  };
12841
12842
  }
12842
- function Hm(n) {
12843
- return n === xe(n) || !Te(n) ? Ps(n) : $m(n);
12844
- }
12845
12843
  function jm(n) {
12844
+ return n === xe(n) || !Te(n) ? Ps(n) : Hm(n);
12845
+ }
12846
+ function Wm(n) {
12846
12847
  var e = n.getBoundingClientRect(), t = fn(e.width) / n.offsetWidth || 1, r = fn(e.height) / n.offsetHeight || 1;
12847
12848
  return t !== 1 || r !== 1;
12848
12849
  }
12849
- function Wm(n, e, t) {
12850
+ function qm(n, e, t) {
12850
12851
  t === void 0 && (t = !1);
12851
- var r = Te(e), i = Te(e) && jm(e), s = xt(e), o = pn(n, i, t), l = {
12852
+ var r = Te(e), i = Te(e) && Wm(e), s = xt(e), o = pn(n, i, t), l = {
12852
12853
  scrollLeft: 0,
12853
12854
  scrollTop: 0
12854
12855
  }, a = {
@@ -12856,14 +12857,14 @@ function Wm(n, e, t) {
12856
12857
  y: 0
12857
12858
  };
12858
12859
  return (r || !r && !t) && ((We(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
12859
- Ls(s)) && (l = Hm(e)), Te(e) ? (a = pn(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : s && (a.x = Bs(s))), {
12860
+ Ls(s)) && (l = jm(e)), Te(e) ? (a = pn(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : s && (a.x = Bs(s))), {
12860
12861
  x: o.left + l.scrollLeft - a.x,
12861
12862
  y: o.top + l.scrollTop - a.y,
12862
12863
  width: o.width,
12863
12864
  height: o.height
12864
12865
  };
12865
12866
  }
12866
- function qm(n) {
12867
+ function Km(n) {
12867
12868
  var e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), r = [];
12868
12869
  n.forEach(function(s) {
12869
12870
  e.set(s.name, s);
@@ -12882,15 +12883,15 @@ function qm(n) {
12882
12883
  t.has(s.name) || i(s);
12883
12884
  }), r;
12884
12885
  }
12885
- function Km(n) {
12886
- var e = qm(n);
12887
- return rm.reduce(function(t, r) {
12886
+ function _m(n) {
12887
+ var e = Km(n);
12888
+ return im.reduce(function(t, r) {
12888
12889
  return t.concat(e.filter(function(i) {
12889
12890
  return i.phase === r;
12890
12891
  }));
12891
12892
  }, []);
12892
12893
  }
12893
- function _m(n) {
12894
+ function Jm(n) {
12894
12895
  var e;
12895
12896
  return function() {
12896
12897
  return e || (e = new Promise(function(t) {
@@ -12900,7 +12901,7 @@ function _m(n) {
12900
12901
  })), e;
12901
12902
  };
12902
12903
  }
12903
- function Jm(n) {
12904
+ function Um(n) {
12904
12905
  var e = n.reduce(function(t, r) {
12905
12906
  var i = t[r.name];
12906
12907
  return t[r.name] = i ? Object.assign({}, i, r, {
@@ -12924,7 +12925,7 @@ function sl() {
12924
12925
  return !(r && typeof r.getBoundingClientRect == "function");
12925
12926
  });
12926
12927
  }
12927
- function Um(n) {
12928
+ function Gm(n) {
12928
12929
  n === void 0 && (n = {});
12929
12930
  var e = n, t = e.defaultModifiers, r = t === void 0 ? [] : t, i = e.defaultOptions, s = i === void 0 ? il : i;
12930
12931
  return function(l, a, c) {
@@ -12948,7 +12949,7 @@ function Um(n) {
12948
12949
  reference: Ht(l) ? In(l) : l.contextElement ? In(l.contextElement) : [],
12949
12950
  popper: In(a)
12950
12951
  };
12951
- var M = Km(Jm([].concat(r, u.options.modifiers)));
12952
+ var M = _m(Um([].concat(r, u.options.modifiers)));
12952
12953
  return u.orderedModifiers = M.filter(function(y) {
12953
12954
  return y.enabled;
12954
12955
  }), h(), p.update();
@@ -12963,7 +12964,7 @@ function Um(n) {
12963
12964
  var b = u.elements, w = b.reference, M = b.popper;
12964
12965
  if (sl(w, M)) {
12965
12966
  u.rects = {
12966
- reference: Wm(w, Qn(M), u.options.strategy === "fixed"),
12967
+ reference: qm(w, Qn(M), u.options.strategy === "fixed"),
12967
12968
  popper: Is(M)
12968
12969
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(z) {
12969
12970
  return u.modifiersData[z.name] = Object.assign({}, z.data);
@@ -12986,7 +12987,7 @@ function Um(n) {
12986
12987
  },
12987
12988
  // Async and optimistically optimized update – it will not be executed if
12988
12989
  // not necessary (debounced to run at most once-per-tick)
12989
- update: _m(function() {
12990
+ update: Jm(function() {
12990
12991
  return new Promise(function(g) {
12991
12992
  p.forceUpdate(), g(u);
12992
12993
  });
@@ -13023,15 +13024,15 @@ function Um(n) {
13023
13024
  return p;
13024
13025
  };
13025
13026
  }
13026
- var Gm = [bm, Lm, gm, ac, Pm, Am, Vm, fm, Dm], Ym = /* @__PURE__ */ Um({
13027
- defaultModifiers: Gm
13028
- }), Xm = "tippy-box", gc = "tippy-content", Zm = "tippy-backdrop", yc = "tippy-arrow", bc = "tippy-svg-arrow", Ot = {
13027
+ var Ym = [vm, zm, ym, ac, Bm, Nm, $m, pm, Im], Xm = /* @__PURE__ */ Gm({
13028
+ defaultModifiers: Ym
13029
+ }), Zm = "tippy-box", gc = "tippy-content", Qm = "tippy-backdrop", yc = "tippy-arrow", bc = "tippy-svg-arrow", Ot = {
13029
13030
  passive: !0,
13030
13031
  capture: !0
13031
13032
  }, vc = function() {
13032
13033
  return document.body;
13033
13034
  };
13034
- function Qm(n, e) {
13035
+ function eg(n, e) {
13035
13036
  return {}.hasOwnProperty.call(n, e);
13036
13037
  }
13037
13038
  function Si(n, e, t) {
@@ -13058,13 +13059,13 @@ function ol(n, e) {
13058
13059
  }, e);
13059
13060
  };
13060
13061
  }
13061
- function eg(n, e) {
13062
+ function tg(n, e) {
13062
13063
  var t = Object.assign({}, n);
13063
13064
  return e.forEach(function(r) {
13064
13065
  delete t[r];
13065
13066
  }), t;
13066
13067
  }
13067
- function tg(n) {
13068
+ function ng(n) {
13068
13069
  return n.split(/\s+/).filter(Boolean);
13069
13070
  }
13070
13071
  function Qt(n) {
@@ -13073,12 +13074,12 @@ function Qt(n) {
13073
13074
  function ll(n, e) {
13074
13075
  n.indexOf(e) === -1 && n.push(e);
13075
13076
  }
13076
- function ng(n) {
13077
+ function rg(n) {
13077
13078
  return n.filter(function(e, t) {
13078
13079
  return n.indexOf(e) === t;
13079
13080
  });
13080
13081
  }
13081
- function rg(n) {
13082
+ function ig(n) {
13082
13083
  return n.split("-")[0];
13083
13084
  }
13084
13085
  function Hr(n) {
@@ -13097,17 +13098,17 @@ function Kn(n) {
13097
13098
  return zs(n, e);
13098
13099
  });
13099
13100
  }
13100
- function ig(n) {
13101
+ function sg(n) {
13101
13102
  return zs(n, "NodeList");
13102
13103
  }
13103
- function sg(n) {
13104
+ function og(n) {
13104
13105
  return zs(n, "MouseEvent");
13105
13106
  }
13106
- function og(n) {
13107
+ function lg(n) {
13107
13108
  return !!(n && n._tippy && n._tippy.reference === n);
13108
13109
  }
13109
- function lg(n) {
13110
- return Kn(n) ? [n] : ig(n) ? Hr(n) : Array.isArray(n) ? n : Hr(document.querySelectorAll(n));
13110
+ function ag(n) {
13111
+ return Kn(n) ? [n] : sg(n) ? Hr(n) : Array.isArray(n) ? n : Hr(document.querySelectorAll(n));
13111
13112
  }
13112
13113
  function Mi(n, e) {
13113
13114
  n.forEach(function(t) {
@@ -13119,14 +13120,14 @@ function cl(n, e) {
13119
13120
  t && t.setAttribute("data-state", e);
13120
13121
  });
13121
13122
  }
13122
- function ag(n) {
13123
+ function cg(n) {
13123
13124
  var e, t = Qt(n), r = t[0];
13124
13125
  return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
13125
13126
  }
13126
- function cg(n, e) {
13127
+ function ug(n, e) {
13127
13128
  var t = e.clientX, r = e.clientY;
13128
13129
  return n.every(function(i) {
13129
- var s = i.popperRect, o = i.popperState, l = i.props, a = l.interactiveBorder, c = rg(o.placement), u = o.modifiersData.offset;
13130
+ var s = i.popperRect, o = i.popperState, l = i.props, a = l.interactiveBorder, c = ig(o.placement), u = o.modifiersData.offset;
13130
13131
  if (!u)
13131
13132
  return !0;
13132
13133
  var d = c === "bottom" ? u.top.y : 0, f = c === "top" ? u.bottom.y : 0, p = c === "right" ? u.left.x : 0, h = c === "left" ? u.right.x : 0, m = s.top - r + d > a, g = r - s.bottom - f > a, b = s.left - t + p > a, w = t - s.right - h > a;
@@ -13151,24 +13152,24 @@ function ul(n, e) {
13151
13152
  var Fe = {
13152
13153
  isTouch: !1
13153
13154
  }, dl = 0;
13154
- function ug() {
13155
+ function dg() {
13155
13156
  Fe.isTouch || (Fe.isTouch = !0, window.performance && document.addEventListener("mousemove", xc));
13156
13157
  }
13157
13158
  function xc() {
13158
13159
  var n = performance.now();
13159
13160
  n - dl < 20 && (Fe.isTouch = !1, document.removeEventListener("mousemove", xc)), dl = n;
13160
13161
  }
13161
- function dg() {
13162
+ function fg() {
13162
13163
  var n = document.activeElement;
13163
- if (og(n)) {
13164
+ if (lg(n)) {
13164
13165
  var e = n._tippy;
13165
13166
  n.blur && !e.state.isVisible && n.blur();
13166
13167
  }
13167
13168
  }
13168
- function fg() {
13169
- document.addEventListener("touchstart", ug, Ot), window.addEventListener("blur", dg);
13169
+ function pg() {
13170
+ document.addEventListener("touchstart", dg, Ot), window.addEventListener("blur", fg);
13170
13171
  }
13171
- var pg = typeof window < "u" && typeof document < "u", hg = pg ? (
13172
+ var hg = typeof window < "u" && typeof document < "u", mg = hg ? (
13172
13173
  // @ts-ignore
13173
13174
  !!window.msCrypto
13174
13175
  ) : !1;
@@ -13180,7 +13181,7 @@ function fl(n) {
13180
13181
  var e = /[ \t]{2,}/g, t = /^[ \t]*/gm;
13181
13182
  return n.replace(e, " ").replace(t, "").trim();
13182
13183
  }
13183
- function mg(n) {
13184
+ function gg(n) {
13184
13185
  return fl(`
13185
13186
  %ctippy.js
13186
13187
 
@@ -13191,7 +13192,7 @@ function mg(n) {
13191
13192
  }
13192
13193
  function wc(n) {
13193
13194
  return [
13194
- mg(n),
13195
+ gg(n),
13195
13196
  // title
13196
13197
  "color: #00C584; font-size: 1.3em; font-weight: bold;",
13197
13198
  // message
@@ -13201,8 +13202,8 @@ function wc(n) {
13201
13202
  ];
13202
13203
  }
13203
13204
  var _n;
13204
- process.env.NODE_ENV !== "production" && gg();
13205
- function gg() {
13205
+ process.env.NODE_ENV !== "production" && yg();
13206
+ function yg() {
13206
13207
  _n = /* @__PURE__ */ new Set();
13207
13208
  }
13208
13209
  function Ye(n, e) {
@@ -13217,7 +13218,7 @@ function Zi(n, e) {
13217
13218
  _n.add(e), (t = console).error.apply(t, wc(e));
13218
13219
  }
13219
13220
  }
13220
- function yg(n) {
13221
+ function bg(n) {
13221
13222
  var e = !n, t = Object.prototype.toString.call(n) === "[object Object]" && !n.addEventListener;
13222
13223
  Zi(e, ["tippy() was passed", "`" + String(n) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Zi(t, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
13223
13224
  }
@@ -13226,7 +13227,7 @@ var Sc = {
13226
13227
  followCursor: !1,
13227
13228
  inlinePositioning: !1,
13228
13229
  sticky: !1
13229
- }, bg = {
13230
+ }, vg = {
13230
13231
  allowHTML: !1,
13231
13232
  animation: "fade",
13232
13233
  arrow: !0,
@@ -13284,7 +13285,7 @@ var Sc = {
13284
13285
  touch: !0,
13285
13286
  trigger: "mouseenter focus",
13286
13287
  triggerTarget: null
13287
- }, Sc, bg), vg = Object.keys(ve), kg = function(e) {
13288
+ }, Sc, vg), kg = Object.keys(ve), xg = function(e) {
13288
13289
  process.env.NODE_ENV !== "production" && Cc(e, []);
13289
13290
  var t = Object.keys(e);
13290
13291
  t.forEach(function(r) {
@@ -13302,10 +13303,10 @@ function Mc(n) {
13302
13303
  }, {});
13303
13304
  return Object.assign({}, n, t);
13304
13305
  }
13305
- function xg(n, e) {
13306
+ function wg(n, e) {
13306
13307
  var t = e ? Object.keys(Mc(Object.assign({}, ve, {
13307
13308
  plugins: e
13308
- }))) : vg, r = t.reduce(function(i, s) {
13309
+ }))) : kg, r = t.reduce(function(i, s) {
13309
13310
  var o = (n.getAttribute("data-tippy-" + s) || "").trim();
13310
13311
  if (!o)
13311
13312
  return i;
@@ -13324,7 +13325,7 @@ function xg(n, e) {
13324
13325
  function pl(n, e) {
13325
13326
  var t = Object.assign({}, e, {
13326
13327
  content: kc(e.content, [n])
13327
- }, e.ignoreAttributes ? {} : xg(n, e.plugins));
13328
+ }, e.ignoreAttributes ? {} : wg(n, e.plugins));
13328
13329
  return t.aria = Object.assign({}, ve.aria, t.aria), t.aria = {
13329
13330
  expanded: t.aria.expanded === "auto" ? e.interactive : t.aria.expanded,
13330
13331
  content: t.aria.content === "auto" ? e.interactive ? null : "describedby" : t.aria.content
@@ -13334,7 +13335,7 @@ function Cc(n, e) {
13334
13335
  n === void 0 && (n = {}), e === void 0 && (e = []);
13335
13336
  var t = Object.keys(n);
13336
13337
  t.forEach(function(r) {
13337
- var i = eg(ve, Object.keys(Sc)), s = !Qm(i, r);
13338
+ var i = tg(ve, Object.keys(Sc)), s = !eg(i, r);
13338
13339
  s && (s = e.filter(function(o) {
13339
13340
  return o.name === r;
13340
13341
  }).length === 0), Ye(s, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
@@ -13343,11 +13344,11 @@ function Cc(n, e) {
13343
13344
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
13344
13345
  });
13345
13346
  }
13346
- var wg = function() {
13347
+ var Sg = function() {
13347
13348
  return "innerHTML";
13348
13349
  };
13349
13350
  function Qi(n, e) {
13350
- n[wg()] = e;
13351
+ n[Sg()] = e;
13351
13352
  }
13352
13353
  function hl(n) {
13353
13354
  var e = Rn();
@@ -13367,13 +13368,13 @@ function es(n) {
13367
13368
  return r.classList.contains(yc) || r.classList.contains(bc);
13368
13369
  }),
13369
13370
  backdrop: t.find(function(r) {
13370
- return r.classList.contains(Zm);
13371
+ return r.classList.contains(Qm);
13371
13372
  })
13372
13373
  };
13373
13374
  }
13374
13375
  function Oc(n) {
13375
13376
  var e = Rn(), t = Rn();
13376
- t.className = Xm, t.setAttribute("data-state", "hidden"), t.setAttribute("tabindex", "-1");
13377
+ t.className = Zm, t.setAttribute("data-state", "hidden"), t.setAttribute("tabindex", "-1");
13377
13378
  var r = Rn();
13378
13379
  r.className = gc, r.setAttribute("data-state", "hidden"), ml(r, n.props), e.appendChild(t), t.appendChild(r), i(n.props, n.props);
13379
13380
  function i(s, o) {
@@ -13386,9 +13387,9 @@ function Oc(n) {
13386
13387
  };
13387
13388
  }
13388
13389
  Oc.$$tippy = !0;
13389
- var Sg = 1, vr = [], Oi = [];
13390
- function Mg(n, e) {
13391
- var t = pl(n, Object.assign({}, ve, Mc(al(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, p = [], h = ol(tr, t.interactiveDebounce), m, g = Sg++, b = null, w = ng(t.plugins), M = {
13390
+ var Mg = 1, vr = [], Oi = [];
13391
+ function Cg(n, e) {
13392
+ var t = pl(n, Object.assign({}, ve, Mc(al(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, p = [], h = ol(tr, t.interactiveDebounce), m, g = Mg++, b = null, w = rg(t.plugins), M = {
13392
13393
  // Is the instance currently enabled?
13393
13394
  isEnabled: !0,
13394
13395
  // Is the tippy currently showing and not transitioning out?
@@ -13448,7 +13449,7 @@ function Mg(n, e) {
13448
13449
  }
13449
13450
  function ge() {
13450
13451
  var v = j().parentNode;
13451
- return v ? ag(v) : document;
13452
+ return v ? cg(v) : document;
13452
13453
  }
13453
13454
  function ye() {
13454
13455
  return es(k);
@@ -13560,14 +13561,14 @@ function Mg(n, e) {
13560
13561
  passive: !0
13561
13562
  }), nt("touchend", nr, {
13562
13563
  passive: !0
13563
- })), tg(y.props.trigger).forEach(function(v) {
13564
+ })), ng(y.props.trigger).forEach(function(v) {
13564
13565
  if (v !== "manual")
13565
13566
  switch (nt(v, bn), v) {
13566
13567
  case "mouseenter":
13567
13568
  nt("mouseleave", nr);
13568
13569
  break;
13569
13570
  case "focus":
13570
- nt(hg ? "focusout" : "blur", vn);
13571
+ nt(mg ? "focusout" : "blur", vn);
13571
13572
  break;
13572
13573
  case "focusin":
13573
13574
  nt("focusout", vn);
@@ -13585,7 +13586,7 @@ function Mg(n, e) {
13585
13586
  var T, N = !1;
13586
13587
  if (!(!y.state.isEnabled || kn(v) || l)) {
13587
13588
  var F = ((T = u) == null ? void 0 : T.type) === "focus";
13588
- u = v, m = v.currentTarget, Be(), !y.state.isVisible && sg(v) && vr.forEach(function(L) {
13589
+ u = v, m = v.currentTarget, Be(), !y.state.isVisible && og(v) && vr.forEach(function(L) {
13589
13590
  return L(v);
13590
13591
  }), v.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || o) && y.props.hideOnClick !== !1 && y.state.isVisible ? N = !0 : xn(v), v.type === "click" && (o = !N), N && !F && Mt(v);
13591
13592
  }
@@ -13601,7 +13602,7 @@ function Mg(n, e) {
13601
13602
  props: t
13602
13603
  } : null;
13603
13604
  }).filter(Boolean);
13604
- cg(F, v) && (wt(), Mt(v));
13605
+ ug(F, v) && (wt(), Mt(v));
13605
13606
  }
13606
13607
  }
13607
13608
  function nr(v) {
@@ -13671,7 +13672,7 @@ function Mg(n, e) {
13671
13672
  element: we,
13672
13673
  padding: 3
13673
13674
  }
13674
- }), Ct.push.apply(Ct, T?.modifiers || []), y.popperInstance = Ym(_t, k, Object.assign({}, T, {
13675
+ }), Ct.push.apply(Ct, T?.modifiers || []), y.popperInstance = Xm(_t, k, Object.assign({}, T, {
13675
13676
  placement: N,
13676
13677
  onFirstUpdate: f,
13677
13678
  modifiers: Ct
@@ -13791,10 +13792,10 @@ function Mg(n, e) {
13791
13792
  function yn(n, e) {
13792
13793
  e === void 0 && (e = {});
13793
13794
  var t = ve.plugins.concat(e.plugins || []);
13794
- process.env.NODE_ENV !== "production" && (yg(n), Cc(e, t)), fg();
13795
+ process.env.NODE_ENV !== "production" && (bg(n), Cc(e, t)), pg();
13795
13796
  var r = Object.assign({}, e, {
13796
13797
  plugins: t
13797
- }), i = lg(n);
13798
+ }), i = ag(n);
13798
13799
  if (process.env.NODE_ENV !== "production") {
13799
13800
  var s = Kn(r.content), o = i.length > 1;
13800
13801
  Ye(s && o, ["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.", `
@@ -13805,13 +13806,13 @@ function yn(n, e) {
13805
13806
  `, "2) content: () => element.cloneNode(true)"].join(" "));
13806
13807
  }
13807
13808
  var l = i.reduce(function(a, c) {
13808
- var u = c && Mg(c, r);
13809
+ var u = c && Cg(c, r);
13809
13810
  return u && a.push(u), a;
13810
13811
  }, []);
13811
13812
  return Kn(n) ? l[0] : l;
13812
13813
  }
13813
13814
  yn.defaultProps = ve;
13814
- yn.setDefaultProps = kg;
13815
+ yn.setDefaultProps = xg;
13815
13816
  yn.currentInput = Fe;
13816
13817
  Object.assign({}, ac, {
13817
13818
  effect: function(e) {
@@ -13833,7 +13834,7 @@ Object.assign({}, ac, {
13833
13834
  yn.setDefaultProps({
13834
13835
  render: Oc
13835
13836
  });
13836
- class Cg {
13837
+ class Og {
13837
13838
  constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, updateDelay: s = 250, shouldShow: o }) {
13838
13839
  this.preventHide = !1, this.shouldShow = ({ view: l, state: a, from: c, to: u }) => {
13839
13840
  const { doc: d, selection: f } = a, { empty: p } = f, h = !d.textBetween(c, u).length && Os(a.selection), m = this.element.contains(document.activeElement);
@@ -13929,7 +13930,7 @@ class Cg {
13929
13930
  }
13930
13931
  const Tc = (n) => new oe({
13931
13932
  key: typeof n.pluginKey == "string" ? new Ne(n.pluginKey) : n.pluginKey,
13932
- view: (e) => new Cg({ view: e, ...n })
13933
+ view: (e) => new Og({ view: e, ...n })
13933
13934
  });
13934
13935
  ee.create({
13935
13936
  name: "bubbleMenu",
@@ -13955,7 +13956,7 @@ ee.create({
13955
13956
  ] : [];
13956
13957
  }
13957
13958
  });
13958
- class Og {
13959
+ class Tg {
13959
13960
  getTextContent(e) {
13960
13961
  return nc(e, { textSerializers: Ms(this.editor.schema) });
13961
13962
  }
@@ -14024,7 +14025,7 @@ class Og {
14024
14025
  }
14025
14026
  const Ec = (n) => new oe({
14026
14027
  key: typeof n.pluginKey == "string" ? new Ne(n.pluginKey) : n.pluginKey,
14027
- view: (e) => new Og({ view: e, ...n })
14028
+ view: (e) => new Tg({ view: e, ...n })
14028
14029
  });
14029
14030
  ee.create({
14030
14031
  name: "floatingMenu",
@@ -14107,7 +14108,7 @@ function gl(n) {
14107
14108
  }
14108
14109
  }));
14109
14110
  }
14110
- class Tg extends qh {
14111
+ class Eg extends Kh {
14111
14112
  constructor(e = {}) {
14112
14113
  return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = gl(this.view.state), this.reactiveExtensionStorage = gl(this.extensionStorage), this.on("beforeTransaction", ({ nextState: t }) => {
14113
14114
  this.reactiveState.value = t, this.reactiveExtensionStorage.value = this.extensionStorage;
@@ -14134,7 +14135,7 @@ class Tg extends qh {
14134
14135
  return this.reactiveState && t && (this.reactiveState.value = t), t;
14135
14136
  }
14136
14137
  }
14137
- const Eg = mn({
14138
+ const Ag = mn({
14138
14139
  name: "EditorContent",
14139
14140
  props: {
14140
14141
  editor: {
@@ -14255,16 +14256,16 @@ mn({
14255
14256
  }, (e = (n = this.$slots).default) === null || e === void 0 ? void 0 : e.call(n));
14256
14257
  }
14257
14258
  });
14258
- const Ag = (n = {}) => {
14259
+ const Ng = (n = {}) => {
14259
14260
  const e = Vc();
14260
14261
  return ts(() => {
14261
- e.value = new Tg(n);
14262
+ e.value = new Eg(n);
14262
14263
  }), Jn(() => {
14263
14264
  var t, r, i;
14264
14265
  const s = (t = e.value) === null || t === void 0 ? void 0 : t.options.element, o = s?.cloneNode(!0);
14265
14266
  (r = s?.parentNode) === null || r === void 0 || r.replaceChild(o, s), (i = e.value) === null || i === void 0 || i.destroy();
14266
14267
  }), e;
14267
- }, Ng = /^\s*>\s$/, Dg = me.create({
14268
+ }, Dg = /^\s*>\s$/, Ig = me.create({
14268
14269
  name: "blockquote",
14269
14270
  addOptions() {
14270
14271
  return {
@@ -14297,12 +14298,12 @@ const Ag = (n = {}) => {
14297
14298
  addInputRules() {
14298
14299
  return [
14299
14300
  jn({
14300
- find: Ng,
14301
+ find: Dg,
14301
14302
  type: this.type
14302
14303
  })
14303
14304
  ];
14304
14305
  }
14305
- }), Ig = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Rg = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Pg = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Bg = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Lg = yt.create({
14306
+ }), Rg = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Pg = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Bg = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Lg = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, zg = yt.create({
14306
14307
  name: "bold",
14307
14308
  addOptions() {
14308
14309
  return {
@@ -14347,11 +14348,11 @@ const Ag = (n = {}) => {
14347
14348
  addInputRules() {
14348
14349
  return [
14349
14350
  cn({
14350
- find: Ig,
14351
+ find: Rg,
14351
14352
  type: this.type
14352
14353
  }),
14353
14354
  cn({
14354
- find: Pg,
14355
+ find: Bg,
14355
14356
  type: this.type
14356
14357
  })
14357
14358
  ];
@@ -14359,16 +14360,16 @@ const Ag = (n = {}) => {
14359
14360
  addPasteRules() {
14360
14361
  return [
14361
14362
  un({
14362
- find: Rg,
14363
+ find: Pg,
14363
14364
  type: this.type
14364
14365
  }),
14365
14366
  un({
14366
- find: Bg,
14367
+ find: Lg,
14367
14368
  type: this.type
14368
14369
  })
14369
14370
  ];
14370
14371
  }
14371
- }), zg = "listItem", yl = "textStyle", bl = /^\s*([-+*])\s$/, Fg = me.create({
14372
+ }), Fg = "listItem", yl = "textStyle", bl = /^\s*([-+*])\s$/, Vg = me.create({
14372
14373
  name: "bulletList",
14373
14374
  addOptions() {
14374
14375
  return {
@@ -14392,7 +14393,7 @@ const Ag = (n = {}) => {
14392
14393
  },
14393
14394
  addCommands() {
14394
14395
  return {
14395
- toggleBulletList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(zg, this.editor.getAttributes(yl)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
14396
+ toggleBulletList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Fg, this.editor.getAttributes(yl)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
14396
14397
  };
14397
14398
  },
14398
14399
  addKeyboardShortcuts() {
@@ -14416,7 +14417,7 @@ const Ag = (n = {}) => {
14416
14417
  n
14417
14418
  ];
14418
14419
  }
14419
- }), Vg = /(^|[^`])`([^`]+)`(?!`)/, $g = /(^|[^`])`([^`]+)`(?!`)/g, Hg = yt.create({
14420
+ }), $g = /(^|[^`])`([^`]+)`(?!`)/, Hg = /(^|[^`])`([^`]+)`(?!`)/g, jg = yt.create({
14420
14421
  name: "code",
14421
14422
  addOptions() {
14422
14423
  return {
@@ -14449,7 +14450,7 @@ const Ag = (n = {}) => {
14449
14450
  addInputRules() {
14450
14451
  return [
14451
14452
  cn({
14452
- find: Vg,
14453
+ find: $g,
14453
14454
  type: this.type
14454
14455
  })
14455
14456
  ];
@@ -14457,12 +14458,12 @@ const Ag = (n = {}) => {
14457
14458
  addPasteRules() {
14458
14459
  return [
14459
14460
  un({
14460
- find: $g,
14461
+ find: Hg,
14461
14462
  type: this.type
14462
14463
  })
14463
14464
  ];
14464
14465
  }
14465
- }), jg = /^```([a-z]+)?[\s\n]$/, Wg = /^~~~([a-z]+)?[\s\n]$/, qg = me.create({
14466
+ }), Wg = /^```([a-z]+)?[\s\n]$/, qg = /^~~~([a-z]+)?[\s\n]$/, Kg = me.create({
14466
14467
  name: "codeBlock",
14467
14468
  addOptions() {
14468
14469
  return {
@@ -14553,14 +14554,14 @@ const Ag = (n = {}) => {
14553
14554
  addInputRules() {
14554
14555
  return [
14555
14556
  Gi({
14556
- find: jg,
14557
+ find: Wg,
14557
14558
  type: this.type,
14558
14559
  getAttributes: (n) => ({
14559
14560
  language: n[1]
14560
14561
  })
14561
14562
  }),
14562
14563
  Gi({
14563
- find: Wg,
14564
+ find: qg,
14564
14565
  type: this.type,
14565
14566
  getAttributes: (n) => ({
14566
14567
  language: n[1]
@@ -14589,19 +14590,19 @@ const Ag = (n = {}) => {
14589
14590
  })
14590
14591
  ];
14591
14592
  }
14592
- }), Kg = me.create({
14593
+ }), _g = me.create({
14593
14594
  name: "doc",
14594
14595
  topNode: !0,
14595
14596
  content: "block+"
14596
14597
  });
14597
- function _g(n = {}) {
14598
+ function Jg(n = {}) {
14598
14599
  return new oe({
14599
14600
  view(e) {
14600
- return new Jg(e, n);
14601
+ return new Ug(e, n);
14601
14602
  }
14602
14603
  });
14603
14604
  }
14604
- class Jg {
14605
+ class Ug {
14605
14606
  constructor(e, t) {
14606
14607
  var r;
14607
14608
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (r = t.width) !== null && r !== void 0 ? r : 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((i) => {
@@ -14675,7 +14676,7 @@ class Jg {
14675
14676
  this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
14676
14677
  }
14677
14678
  }
14678
- const Ug = ee.create({
14679
+ const Gg = ee.create({
14679
14680
  name: "dropCursor",
14680
14681
  addOptions() {
14681
14682
  return {
@@ -14686,7 +14687,7 @@ const Ug = ee.create({
14686
14687
  },
14687
14688
  addProseMirrorPlugins() {
14688
14689
  return [
14689
- _g(this.options)
14690
+ Jg(this.options)
14690
14691
  ];
14691
14692
  }
14692
14693
  });
@@ -14729,7 +14730,7 @@ class W extends R {
14729
14730
  */
14730
14731
  static valid(e) {
14731
14732
  let t = e.parent;
14732
- if (t.isTextblock || !Gg(e) || !Yg(e))
14733
+ if (t.isTextblock || !Yg(e) || !Xg(e))
14733
14734
  return !1;
14734
14735
  let r = t.type.spec.allowGapCursor;
14735
14736
  if (r != null)
@@ -14790,7 +14791,7 @@ class Fs {
14790
14791
  return W.valid(t) ? new W(t) : R.near(t);
14791
14792
  }
14792
14793
  }
14793
- function Gg(n) {
14794
+ function Yg(n) {
14794
14795
  for (let e = n.depth; e >= 0; e--) {
14795
14796
  let t = n.index(e), r = n.node(e);
14796
14797
  if (t == 0) {
@@ -14807,7 +14808,7 @@ function Gg(n) {
14807
14808
  }
14808
14809
  return !0;
14809
14810
  }
14810
- function Yg(n) {
14811
+ function Xg(n) {
14811
14812
  for (let e = n.depth; e >= 0; e--) {
14812
14813
  let t = n.indexAfter(e), r = n.node(e);
14813
14814
  if (t == r.childCount) {
@@ -14824,20 +14825,20 @@ function Yg(n) {
14824
14825
  }
14825
14826
  return !0;
14826
14827
  }
14827
- function Xg() {
14828
+ function Zg() {
14828
14829
  return new oe({
14829
14830
  props: {
14830
- decorations: ty,
14831
+ decorations: ny,
14831
14832
  createSelectionBetween(n, e, t) {
14832
14833
  return e.pos == t.pos && W.valid(t) ? new W(t) : null;
14833
14834
  },
14834
- handleClick: Qg,
14835
- handleKeyDown: Zg,
14836
- handleDOMEvents: { beforeinput: ey }
14835
+ handleClick: ey,
14836
+ handleKeyDown: Qg,
14837
+ handleDOMEvents: { beforeinput: ty }
14837
14838
  }
14838
14839
  });
14839
14840
  }
14840
- const Zg = Ba({
14841
+ const Qg = Ba({
14841
14842
  ArrowLeft: kr("horiz", -1),
14842
14843
  ArrowRight: kr("horiz", 1),
14843
14844
  ArrowUp: kr("vert", -1),
@@ -14856,7 +14857,7 @@ function kr(n, e) {
14856
14857
  return c ? (i && i(r.tr.setSelection(new W(c))), !0) : !1;
14857
14858
  };
14858
14859
  }
14859
- function Qg(n, e, t) {
14860
+ function ey(n, e, t) {
14860
14861
  if (!n || !n.editable)
14861
14862
  return !1;
14862
14863
  let r = n.state.doc.resolve(e);
@@ -14865,7 +14866,7 @@ function Qg(n, e, t) {
14865
14866
  let i = n.posAtCoords({ left: t.clientX, top: t.clientY });
14866
14867
  return i && i.inside > -1 && A.isSelectable(n.state.doc.nodeAt(i.inside)) ? !1 : (n.dispatch(n.state.tr.setSelection(new W(r))), !0);
14867
14868
  }
14868
- function ey(n, e) {
14869
+ function ty(n, e) {
14869
14870
  if (e.inputType != "insertCompositionText" || !(n.state.selection instanceof W))
14870
14871
  return !1;
14871
14872
  let { $from: t } = n.state.selection, r = t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);
@@ -14877,17 +14878,17 @@ function ey(n, e) {
14877
14878
  let s = n.state.tr.replace(t.pos, t.pos, new S(i, 0, 0));
14878
14879
  return s.setSelection(D.near(s.doc.resolve(t.pos + 1))), n.dispatch(s), !1;
14879
14880
  }
14880
- function ty(n) {
14881
+ function ny(n) {
14881
14882
  if (!(n.selection instanceof W))
14882
14883
  return null;
14883
14884
  let e = document.createElement("div");
14884
14885
  return e.className = "ProseMirror-gapcursor", K.create(n.doc, [Ce.widget(n.selection.head, e, { key: "gapcursor" })]);
14885
14886
  }
14886
- const ny = ee.create({
14887
+ const ry = ee.create({
14887
14888
  name: "gapCursor",
14888
14889
  addProseMirrorPlugins() {
14889
14890
  return [
14890
- Xg()
14891
+ Zg()
14891
14892
  ];
14892
14893
  },
14893
14894
  extendNodeSchema(n) {
@@ -14901,7 +14902,7 @@ const ny = ee.create({
14901
14902
  allowGapCursor: (e = P(C(n, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
14902
14903
  };
14903
14904
  }
14904
- }), ry = me.create({
14905
+ }), iy = me.create({
14905
14906
  name: "hardBreak",
14906
14907
  addOptions() {
14907
14908
  return {
@@ -14951,7 +14952,7 @@ const ny = ee.create({
14951
14952
  "Shift-Enter": () => this.editor.commands.setHardBreak()
14952
14953
  };
14953
14954
  }
14954
- }), iy = me.create({
14955
+ }), sy = me.create({
14955
14956
  name: "heading",
14956
14957
  addOptions() {
14957
14958
  return {
@@ -15010,7 +15011,7 @@ U.prototype.prepend = function(e) {
15010
15011
  return e.length ? U.from(e).append(this) : this;
15011
15012
  };
15012
15013
  U.prototype.appendInner = function(e) {
15013
- return new sy(this, e);
15014
+ return new oy(this, e);
15014
15015
  };
15015
15016
  U.prototype.slice = function(e, t) {
15016
15017
  return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? U.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
@@ -15065,7 +15066,7 @@ var Ac = /* @__PURE__ */ function(n) {
15065
15066
  }, Object.defineProperties(e.prototype, t), e;
15066
15067
  }(U);
15067
15068
  U.empty = new Ac([]);
15068
- var sy = /* @__PURE__ */ function(n) {
15069
+ var oy = /* @__PURE__ */ function(n) {
15069
15070
  function e(t, r) {
15070
15071
  n.call(this), this.left = t, this.right = r, this.length = t.length + r.length, this.depth = Math.max(t.depth, r.depth) + 1;
15071
15072
  }
@@ -15098,7 +15099,7 @@ var sy = /* @__PURE__ */ function(n) {
15098
15099
  return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r);
15099
15100
  }, e;
15100
15101
  }(U);
15101
- const oy = 500;
15102
+ const ly = 500;
15102
15103
  class Ie {
15103
15104
  constructor(e, t) {
15104
15105
  this.items = e, this.eventCount = t;
@@ -15140,7 +15141,7 @@ class Ie {
15140
15141
  (p = a && a.merge(f)) && (f = p, u ? s.pop() : l = l.slice(0, l.length - 1)), s.push(f), t && (o++, t = void 0), i || (a = f);
15141
15142
  }
15142
15143
  let c = o - r.depth;
15143
- return c > ay && (l = ly(l, c), o -= c), new Ie(l.append(s), o);
15144
+ return c > cy && (l = ay(l, c), o -= c), new Ie(l.append(s), o);
15144
15145
  }
15145
15146
  remapping(e, t) {
15146
15147
  let r = new Ln();
@@ -15180,7 +15181,7 @@ class Ie {
15180
15181
  for (let f = t; f < o; f++)
15181
15182
  c.push(new ze(s.maps[f]));
15182
15183
  let u = this.items.slice(0, i).append(c).append(r), d = new Ie(u, l);
15183
- return d.emptyItemCount() > oy && (d = d.compress(this.items.length - r.length)), d;
15184
+ return d.emptyItemCount() > ly && (d = d.compress(this.items.length - r.length)), d;
15184
15185
  }
15185
15186
  emptyItemCount() {
15186
15187
  let e = 0;
@@ -15212,7 +15213,7 @@ class Ie {
15212
15213
  }
15213
15214
  }
15214
15215
  Ie.empty = new Ie(U.empty, 0);
15215
- function ly(n, e) {
15216
+ function ay(n, e) {
15216
15217
  let t;
15217
15218
  return n.forEach((r, i) => {
15218
15219
  if (r.selection && e-- == 0)
@@ -15236,23 +15237,23 @@ class ot {
15236
15237
  this.done = e, this.undone = t, this.prevRanges = r, this.prevTime = i, this.prevComposition = s;
15237
15238
  }
15238
15239
  }
15239
- const ay = 20;
15240
- function cy(n, e, t, r) {
15240
+ const cy = 20;
15241
+ function uy(n, e, t, r) {
15241
15242
  let i = t.getMeta(Lt), s;
15242
15243
  if (i)
15243
15244
  return i.historyState;
15244
- t.getMeta(fy) && (n = new ot(n.done, n.undone, null, 0, -1));
15245
+ t.getMeta(py) && (n = new ot(n.done, n.undone, null, 0, -1));
15245
15246
  let o = t.getMeta("appendedTransaction");
15246
15247
  if (t.steps.length == 0)
15247
15248
  return n;
15248
15249
  if (o && o.getMeta(Lt))
15249
15250
  return o.getMeta(Lt).redo ? new ot(n.done.addTransform(t, void 0, r, Or(e)), n.undone, vl(t.mapping.maps), n.prevTime, n.prevComposition) : new ot(n.done, n.undone.addTransform(t, void 0, r, Or(e)), null, n.prevTime, n.prevComposition);
15250
15251
  if (t.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
15251
- let l = t.getMeta("composition"), a = n.prevTime == 0 || !o && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !uy(t, n.prevRanges)), c = o ? Ti(n.prevRanges, t.mapping) : vl(t.mapping.maps);
15252
+ let l = t.getMeta("composition"), a = n.prevTime == 0 || !o && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !dy(t, n.prevRanges)), c = o ? Ti(n.prevRanges, t.mapping) : vl(t.mapping.maps);
15252
15253
  return new ot(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, Or(e)), Ie.empty, c, t.time, l ?? n.prevComposition);
15253
15254
  } else return (s = t.getMeta("rebased")) ? new ot(n.done.rebased(t, s), n.undone.rebased(t, s), Ti(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new ot(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), Ti(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
15254
15255
  }
15255
- function uy(n, e) {
15256
+ function dy(n, e) {
15256
15257
  if (!e)
15257
15258
  return !1;
15258
15259
  if (!n.docChanged)
@@ -15279,7 +15280,7 @@ function Ti(n, e) {
15279
15280
  }
15280
15281
  return t;
15281
15282
  }
15282
- function dy(n, e, t) {
15283
+ function fy(n, e, t) {
15283
15284
  let r = Or(e), i = Lt.get(e).spec.config, s = (t ? n.undone : n.done).popEvent(e, r);
15284
15285
  if (!s)
15285
15286
  return null;
@@ -15299,8 +15300,8 @@ function Or(n) {
15299
15300
  }
15300
15301
  return Ei;
15301
15302
  }
15302
- const Lt = new Ne("history"), fy = new Ne("closeHistory");
15303
- function py(n = {}) {
15303
+ const Lt = new Ne("history"), py = new Ne("closeHistory");
15304
+ function hy(n = {}) {
15304
15305
  return n = {
15305
15306
  depth: n.depth || 100,
15306
15307
  newGroupDelay: n.newGroupDelay || 500
@@ -15311,7 +15312,7 @@ function py(n = {}) {
15311
15312
  return new ot(Ie.empty, Ie.empty, null, 0, -1);
15312
15313
  },
15313
15314
  apply(e, t, r) {
15314
- return cy(t, r, e, n);
15315
+ return uy(t, r, e, n);
15315
15316
  }
15316
15317
  },
15317
15318
  config: n,
@@ -15331,13 +15332,13 @@ function Nc(n, e) {
15331
15332
  if (!i || (n ? i.undone : i.done).eventCount == 0)
15332
15333
  return !1;
15333
15334
  if (r) {
15334
- let s = dy(i, t, n);
15335
+ let s = fy(i, t, n);
15335
15336
  s && r(e ? s.scrollIntoView() : s);
15336
15337
  }
15337
15338
  return !0;
15338
15339
  };
15339
15340
  }
15340
- const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15341
+ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), my = ee.create({
15341
15342
  name: "history",
15342
15343
  addOptions() {
15343
15344
  return {
@@ -15353,7 +15354,7 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15353
15354
  },
15354
15355
  addProseMirrorPlugins() {
15355
15356
  return [
15356
- py(this.options)
15357
+ hy(this.options)
15357
15358
  ];
15358
15359
  },
15359
15360
  addKeyboardShortcuts() {
@@ -15366,7 +15367,7 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15366
15367
  "Shift-Mod-я": () => this.editor.commands.redo()
15367
15368
  };
15368
15369
  }
15369
- }), my = me.create({
15370
+ }), gy = me.create({
15370
15371
  name: "horizontalRule",
15371
15372
  addOptions() {
15372
15373
  return {
@@ -15410,13 +15411,13 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15410
15411
  },
15411
15412
  addInputRules() {
15412
15413
  return [
15413
- Kh({
15414
+ _h({
15414
15415
  find: /^(?:---|—-|___\s|\*\*\*\s)$/,
15415
15416
  type: this.type
15416
15417
  })
15417
15418
  ];
15418
15419
  }
15419
- }), gy = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, yy = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, by = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, vy = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, ky = yt.create({
15420
+ }), yy = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, by = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, vy = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, ky = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, xy = yt.create({
15420
15421
  name: "italic",
15421
15422
  addOptions() {
15422
15423
  return {
@@ -15460,11 +15461,11 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15460
15461
  addInputRules() {
15461
15462
  return [
15462
15463
  cn({
15463
- find: gy,
15464
+ find: yy,
15464
15465
  type: this.type
15465
15466
  }),
15466
15467
  cn({
15467
- find: by,
15468
+ find: vy,
15468
15469
  type: this.type
15469
15470
  })
15470
15471
  ];
@@ -15472,16 +15473,16 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15472
15473
  addPasteRules() {
15473
15474
  return [
15474
15475
  un({
15475
- find: yy,
15476
+ find: by,
15476
15477
  type: this.type
15477
15478
  }),
15478
15479
  un({
15479
- find: vy,
15480
+ find: ky,
15480
15481
  type: this.type
15481
15482
  })
15482
15483
  ];
15483
15484
  }
15484
- }), xy = me.create({
15485
+ }), wy = me.create({
15485
15486
  name: "listItem",
15486
15487
  addOptions() {
15487
15488
  return {
@@ -15509,7 +15510,7 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15509
15510
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
15510
15511
  };
15511
15512
  }
15512
- }), wy = "listItem", xl = "textStyle", wl = /^(\d+)\.\s$/, Sy = me.create({
15513
+ }), Sy = "listItem", xl = "textStyle", wl = /^(\d+)\.\s$/, My = me.create({
15513
15514
  name: "orderedList",
15514
15515
  addOptions() {
15515
15516
  return {
@@ -15548,7 +15549,7 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15548
15549
  },
15549
15550
  addCommands() {
15550
15551
  return {
15551
- toggleOrderedList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(wy, this.editor.getAttributes(xl)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
15552
+ toggleOrderedList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Sy, this.editor.getAttributes(xl)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
15552
15553
  };
15553
15554
  },
15554
15555
  addKeyboardShortcuts() {
@@ -15575,7 +15576,7 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15575
15576
  n
15576
15577
  ];
15577
15578
  }
15578
- }), My = me.create({
15579
+ }), Cy = me.create({
15579
15580
  name: "paragraph",
15580
15581
  priority: 1e3,
15581
15582
  addOptions() {
@@ -15603,7 +15604,7 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15603
15604
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
15604
15605
  };
15605
15606
  }
15606
- }), Cy = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Oy = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, Ty = yt.create({
15607
+ }), Oy = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Ty = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, Ey = yt.create({
15607
15608
  name: "strike",
15608
15609
  addOptions() {
15609
15610
  return {
@@ -15646,7 +15647,7 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15646
15647
  addInputRules() {
15647
15648
  return [
15648
15649
  cn({
15649
- find: Cy,
15650
+ find: Oy,
15650
15651
  type: this.type
15651
15652
  })
15652
15653
  ];
@@ -15654,30 +15655,30 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15654
15655
  addPasteRules() {
15655
15656
  return [
15656
15657
  un({
15657
- find: Oy,
15658
+ find: Ty,
15658
15659
  type: this.type
15659
15660
  })
15660
15661
  ];
15661
15662
  }
15662
- }), Ey = me.create({
15663
+ }), Ay = me.create({
15663
15664
  name: "text",
15664
15665
  group: "inline"
15665
- }), Ay = ee.create({
15666
+ }), Ny = ee.create({
15666
15667
  name: "starterKit",
15667
15668
  addExtensions() {
15668
15669
  const n = [];
15669
- return this.options.bold !== !1 && n.push(Lg.configure(this.options.bold)), this.options.blockquote !== !1 && n.push(Dg.configure(this.options.blockquote)), this.options.bulletList !== !1 && n.push(Fg.configure(this.options.bulletList)), this.options.code !== !1 && n.push(Hg.configure(this.options.code)), this.options.codeBlock !== !1 && n.push(qg.configure(this.options.codeBlock)), this.options.document !== !1 && n.push(Kg.configure(this.options.document)), this.options.dropcursor !== !1 && n.push(Ug.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && n.push(ny.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && n.push(ry.configure(this.options.hardBreak)), this.options.heading !== !1 && n.push(iy.configure(this.options.heading)), this.options.history !== !1 && n.push(hy.configure(this.options.history)), this.options.horizontalRule !== !1 && n.push(my.configure(this.options.horizontalRule)), this.options.italic !== !1 && n.push(ky.configure(this.options.italic)), this.options.listItem !== !1 && n.push(xy.configure(this.options.listItem)), this.options.orderedList !== !1 && n.push(Sy.configure(this.options.orderedList)), this.options.paragraph !== !1 && n.push(My.configure(this.options.paragraph)), this.options.strike !== !1 && n.push(Ty.configure(this.options.strike)), this.options.text !== !1 && n.push(Ey.configure(this.options.text)), n;
15670
+ return this.options.bold !== !1 && n.push(zg.configure(this.options.bold)), this.options.blockquote !== !1 && n.push(Ig.configure(this.options.blockquote)), this.options.bulletList !== !1 && n.push(Vg.configure(this.options.bulletList)), this.options.code !== !1 && n.push(jg.configure(this.options.code)), this.options.codeBlock !== !1 && n.push(Kg.configure(this.options.codeBlock)), this.options.document !== !1 && n.push(_g.configure(this.options.document)), this.options.dropcursor !== !1 && n.push(Gg.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && n.push(ry.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && n.push(iy.configure(this.options.hardBreak)), this.options.heading !== !1 && n.push(sy.configure(this.options.heading)), this.options.history !== !1 && n.push(my.configure(this.options.history)), this.options.horizontalRule !== !1 && n.push(gy.configure(this.options.horizontalRule)), this.options.italic !== !1 && n.push(xy.configure(this.options.italic)), this.options.listItem !== !1 && n.push(wy.configure(this.options.listItem)), this.options.orderedList !== !1 && n.push(My.configure(this.options.orderedList)), this.options.paragraph !== !1 && n.push(Cy.configure(this.options.paragraph)), this.options.strike !== !1 && n.push(Ey.configure(this.options.strike)), this.options.text !== !1 && n.push(Ay.configure(this.options.text)), n;
15670
15671
  }
15671
- }), Ny = ["onClick"], Dy = /* @__PURE__ */ mn({
15672
+ }), Dy = ["onClick"], Iy = /* @__PURE__ */ mn({
15672
15673
  __name: "UiEditor",
15673
15674
  props: {
15674
15675
  modelValue: {}
15675
15676
  },
15676
15677
  emits: ["update:modelValue"],
15677
15678
  setup(n, { emit: e }) {
15678
- const t = n, r = e, i = Kc(() => t.modelValue), s = Ag({
15679
+ const t = n, r = e, i = Kc(() => t.modelValue), s = Ng({
15679
15680
  content: i.value,
15680
- extensions: [Ay],
15681
+ extensions: [Ny],
15681
15682
  onUpdate: () => {
15682
15683
  r("update:modelValue", s.value?.getHTML());
15683
15684
  }
@@ -15705,22 +15706,22 @@ const Dc = Nc(!1, !0), Ic = Nc(!0, !0), hy = ee.create({
15705
15706
  onClick: (u) => c.method(),
15706
15707
  class: dr(l.$style.action),
15707
15708
  type: "button"
15708
- }, Yc(c.name), 11, Ny)), 64))
15709
+ }, Yc(c.name), 11, Dy)), 64))
15709
15710
  ], 2),
15710
- Jc(Ai(Eg), {
15711
+ Jc(Ai(Ag), {
15711
15712
  editor: Ai(s),
15712
15713
  class: dr(l.$style.editor)
15713
15714
  }, null, 8, ["editor", "class"])
15714
15715
  ], 2));
15715
15716
  }
15716
- }), Iy = "_container_1jv52_1", Ry = "_actions_1jv52_18", Py = "_action_1jv52_18", By = "_editor_1jv52_41", Ly = {
15717
- container: Iy,
15718
- actions: Ry,
15719
- action: Py,
15720
- editor: By
15721
- }, zy = {
15722
- $style: Ly
15723
- }, Hy = /* @__PURE__ */ Xc(Dy, [["__cssModules", zy]]);
15717
+ }), Ry = "_container_1jv52_1", Py = "_actions_1jv52_18", By = "_action_1jv52_18", Ly = "_editor_1jv52_41", zy = {
15718
+ container: Ry,
15719
+ actions: Py,
15720
+ action: By,
15721
+ editor: Ly
15722
+ }, Fy = {
15723
+ $style: zy
15724
+ }, jy = /* @__PURE__ */ Xc(Iy, [["__cssModules", Fy]]);
15724
15725
  export {
15725
- Hy as default
15726
+ jy as default
15726
15727
  };