mhz-ui 1.1.50 → 1.1.52

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.
@@ -10100,7 +10100,7 @@ function yp(n) {
10100
10100
  drop: (d, f) => {
10101
10101
  if (s = r === d.dom.parentElement, l = f, !s) {
10102
10102
  const p = vr;
10103
- p && setTimeout(() => {
10103
+ p?.isEditable && setTimeout(() => {
10104
10104
  const h = p.state.selection;
10105
10105
  h && p.commands.deleteRange({ from: h.from, to: h.to });
10106
10106
  }, 10);
@@ -11538,7 +11538,10 @@ class Et {
11538
11538
  get children() {
11539
11539
  const e = [];
11540
11540
  return this.node.content.forEach((t, r) => {
11541
- const i = t.isBlock && !t.isTextblock, s = t.isAtom && !t.isText, o = this.pos + r + (s ? 0 : 1), l = this.resolvedPos.doc.resolve(o);
11541
+ const i = t.isBlock && !t.isTextblock, s = t.isAtom && !t.isText, o = this.pos + r + (s ? 0 : 1);
11542
+ if (o < 0 || o > this.resolvedPos.doc.nodeSize - 2)
11543
+ return;
11544
+ const l = this.resolvedPos.doc.resolve(o);
11542
11545
  if (!i && l.depth <= this.depth)
11543
11546
  return;
11544
11547
  const a = new Et(l, this.editor, i, i ? t : null);
@@ -12145,11 +12148,26 @@ function un(n) {
12145
12148
  }
12146
12149
  });
12147
12150
  }
12148
- var pe = "top", Ee = "bottom", Ae = "right", he = "left", Ds = "auto", er = [pe, Ee, Ae, he], dn = "start", Kn = "end", Jh = "clippingParents", lc = "viewport", Mn = "popper", Uh = "reference", Xo = /* @__PURE__ */ er.reduce(function(n, e) {
12151
+ function Jh(n, e) {
12152
+ const { selection: t } = n, { $from: r } = t;
12153
+ if (t instanceof A) {
12154
+ const s = r.index();
12155
+ return r.parent.canReplaceWith(s, s + 1, e);
12156
+ }
12157
+ let i = r.depth;
12158
+ for (; i >= 0; ) {
12159
+ const s = r.index(i);
12160
+ if (r.node(i).contentMatchAt(s).matchType(e))
12161
+ return !0;
12162
+ i -= 1;
12163
+ }
12164
+ return !1;
12165
+ }
12166
+ var pe = "top", Ee = "bottom", Ae = "right", he = "left", Ds = "auto", er = [pe, Ee, Ae, he], dn = "start", Kn = "end", Uh = "clippingParents", lc = "viewport", Mn = "popper", Gh = "reference", Xo = /* @__PURE__ */ er.reduce(function(n, e) {
12149
12167
  return n.concat([e + "-" + dn, e + "-" + Kn]);
12150
12168
  }, []), ac = /* @__PURE__ */ [].concat(er, [Ds]).reduce(function(n, e) {
12151
12169
  return n.concat([e, e + "-" + dn, e + "-" + Kn]);
12152
- }, []), 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];
12170
+ }, []), Yh = "beforeRead", Xh = "read", Zh = "afterRead", Qh = "beforeMain", em = "main", tm = "afterMain", nm = "beforeWrite", rm = "write", im = "afterWrite", sm = [Yh, Xh, Zh, Qh, em, tm, nm, rm, im];
12153
12171
  function We(n) {
12154
12172
  return n ? (n.nodeName || "").toLowerCase() : null;
12155
12173
  }
@@ -12176,7 +12194,7 @@ function Is(n) {
12176
12194
  var e = xe(n).ShadowRoot;
12177
12195
  return n instanceof e || n instanceof ShadowRoot;
12178
12196
  }
12179
- function sm(n) {
12197
+ function om(n) {
12180
12198
  var e = n.state;
12181
12199
  Object.keys(e.elements).forEach(function(t) {
12182
12200
  var r = e.styles[t] || {}, i = e.attributes[t] || {}, s = e.elements[t];
@@ -12186,7 +12204,7 @@ function sm(n) {
12186
12204
  }));
12187
12205
  });
12188
12206
  }
12189
- function om(n) {
12207
+ function lm(n) {
12190
12208
  var e = n.state, t = {
12191
12209
  popper: {
12192
12210
  position: e.options.strategy,
@@ -12214,8 +12232,8 @@ const cc = {
12214
12232
  name: "applyStyles",
12215
12233
  enabled: !0,
12216
12234
  phase: "write",
12217
- fn: sm,
12218
- effect: om,
12235
+ fn: om,
12236
+ effect: lm,
12219
12237
  requires: ["computeStyles"]
12220
12238
  };
12221
12239
  function $e(n) {
@@ -12273,7 +12291,7 @@ function dc(n, e) {
12273
12291
  function tt(n) {
12274
12292
  return xe(n).getComputedStyle(n);
12275
12293
  }
12276
- function lm(n) {
12294
+ function am(n) {
12277
12295
  return ["table", "td", "th"].indexOf(We(n)) >= 0;
12278
12296
  }
12279
12297
  function xt(n) {
@@ -12298,7 +12316,7 @@ function Zo(n) {
12298
12316
  return !Te(n) || // https://github.com/popperjs/popper-core/issues/837
12299
12317
  tt(n).position === "fixed" ? null : n.offsetParent;
12300
12318
  }
12301
- function am(n) {
12319
+ function cm(n) {
12302
12320
  var e = /firefox/i.test(Xi()), t = /Trident/i.test(Xi());
12303
12321
  if (t && Te(n)) {
12304
12322
  var r = tt(n);
@@ -12315,9 +12333,9 @@ function am(n) {
12315
12333
  return null;
12316
12334
  }
12317
12335
  function tr(n) {
12318
- for (var e = xe(n), t = Zo(n); t && lm(t) && tt(t).position === "static"; )
12336
+ for (var e = xe(n), t = Zo(n); t && am(t) && tt(t).position === "static"; )
12319
12337
  t = Zo(t);
12320
- return t && (We(t) === "html" || We(t) === "body" && tt(t).position === "static") ? e : t || am(n) || e;
12338
+ return t && (We(t) === "html" || We(t) === "body" && tt(t).position === "static") ? e : t || cm(n) || e;
12321
12339
  }
12322
12340
  function Ps(n) {
12323
12341
  return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
@@ -12325,7 +12343,7 @@ function Ps(n) {
12325
12343
  function In(n, e, t) {
12326
12344
  return Bt(n, Hr(e, t));
12327
12345
  }
12328
- function cm(n, e, t) {
12346
+ function um(n, e, t) {
12329
12347
  var r = In(n, e, t);
12330
12348
  return r > t ? t : r;
12331
12349
  }
@@ -12345,41 +12363,41 @@ function hc(n, e) {
12345
12363
  return t[r] = n, t;
12346
12364
  }, {});
12347
12365
  }
12348
- var um = function(e, t) {
12366
+ var dm = function(e, t) {
12349
12367
  return e = typeof e == "function" ? e(Object.assign({}, t.rects, {
12350
12368
  placement: t.placement
12351
12369
  })) : e, pc(typeof e != "number" ? e : hc(e, er));
12352
12370
  };
12353
- function dm(n) {
12371
+ function fm(n) {
12354
12372
  var e, t = n.state, r = n.name, i = n.options, s = t.elements.arrow, o = t.modifiersData.popperOffsets, l = $e(t.placement), a = Ps(l), c = [he, Ae].indexOf(l) >= 0, u = c ? "height" : "width";
12355
12373
  if (!(!s || !o)) {
12356
- var d = um(i.padding, t), f = Rs(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 = tr(s), w = b ? a === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, M = m / 2 - g / 2, y = d[p], T = w - f[u] - d[h], x = w / 2 - f[u] / 2 + M, I = In(y, x, T), C = a;
12374
+ var d = dm(i.padding, t), f = Rs(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 = tr(s), w = b ? a === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, M = m / 2 - g / 2, y = d[p], T = w - f[u] - d[h], x = w / 2 - f[u] / 2 + M, I = In(y, x, T), C = a;
12357
12375
  t.modifiersData[r] = (e = {}, e[C] = I, e.centerOffset = I - x, e);
12358
12376
  }
12359
12377
  }
12360
- function fm(n) {
12378
+ function pm(n) {
12361
12379
  var e = n.state, t = n.options, r = t.element, i = r === void 0 ? "[data-popper-arrow]" : r;
12362
12380
  i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || dc(e.elements.popper, i) && (e.elements.arrow = i));
12363
12381
  }
12364
- const pm = {
12382
+ const hm = {
12365
12383
  name: "arrow",
12366
12384
  enabled: !0,
12367
12385
  phase: "main",
12368
- fn: dm,
12369
- effect: fm,
12386
+ fn: fm,
12387
+ effect: pm,
12370
12388
  requires: ["popperOffsets"],
12371
12389
  requiresIfExists: ["preventOverflow"]
12372
12390
  };
12373
12391
  function hn(n) {
12374
12392
  return n.split("-")[1];
12375
12393
  }
12376
- var hm = {
12394
+ var mm = {
12377
12395
  top: "auto",
12378
12396
  right: "auto",
12379
12397
  bottom: "auto",
12380
12398
  left: "auto"
12381
12399
  };
12382
- function mm(n, e) {
12400
+ function gm(n, e) {
12383
12401
  var t = n.x, r = n.y, i = e.devicePixelRatio || 1;
12384
12402
  return {
12385
12403
  x: fn(t * i) / i || 0,
@@ -12417,7 +12435,7 @@ function Qo(n) {
12417
12435
  }
12418
12436
  var W = Object.assign({
12419
12437
  position: l
12420
- }, c && hm), H = u === !0 ? mm({
12438
+ }, c && mm), H = u === !0 ? gm({
12421
12439
  x: p,
12422
12440
  y: m
12423
12441
  }, xe(t)) : {
@@ -12430,7 +12448,7 @@ function Qo(n) {
12430
12448
  }
12431
12449
  return Object.assign({}, W, (e = {}, e[y] = w ? m + "px" : "", e[M] = b ? p + "px" : "", e.transform = "", e));
12432
12450
  }
12433
- function gm(n) {
12451
+ function ym(n) {
12434
12452
  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 = {
12435
12453
  placement: $e(e.placement),
12436
12454
  variation: hn(e.placement),
@@ -12453,17 +12471,17 @@ function gm(n) {
12453
12471
  "data-popper-placement": e.placement
12454
12472
  });
12455
12473
  }
12456
- const ym = {
12474
+ const bm = {
12457
12475
  name: "computeStyles",
12458
12476
  enabled: !0,
12459
12477
  phase: "beforeWrite",
12460
- fn: gm,
12478
+ fn: ym,
12461
12479
  data: {}
12462
12480
  };
12463
12481
  var xr = {
12464
12482
  passive: !0
12465
12483
  };
12466
- function bm(n) {
12484
+ function vm(n) {
12467
12485
  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);
12468
12486
  return s && c.forEach(function(u) {
12469
12487
  u.addEventListener("scroll", t.update, xr);
@@ -12473,16 +12491,16 @@ function bm(n) {
12473
12491
  }), l && a.removeEventListener("resize", t.update, xr);
12474
12492
  };
12475
12493
  }
12476
- const vm = {
12494
+ const km = {
12477
12495
  name: "eventListeners",
12478
12496
  enabled: !0,
12479
12497
  phase: "write",
12480
12498
  fn: function() {
12481
12499
  },
12482
- effect: bm,
12500
+ effect: vm,
12483
12501
  data: {}
12484
12502
  };
12485
- var km = {
12503
+ var xm = {
12486
12504
  left: "right",
12487
12505
  right: "left",
12488
12506
  bottom: "top",
@@ -12490,16 +12508,16 @@ var km = {
12490
12508
  };
12491
12509
  function Tr(n) {
12492
12510
  return n.replace(/left|right|bottom|top/g, function(e) {
12493
- return km[e];
12511
+ return xm[e];
12494
12512
  });
12495
12513
  }
12496
- var xm = {
12514
+ var wm = {
12497
12515
  start: "end",
12498
12516
  end: "start"
12499
12517
  };
12500
12518
  function el(n) {
12501
12519
  return n.replace(/start|end/g, function(e) {
12502
- return xm[e];
12520
+ return wm[e];
12503
12521
  });
12504
12522
  }
12505
12523
  function Bs(n) {
@@ -12512,7 +12530,7 @@ function Bs(n) {
12512
12530
  function Ls(n) {
12513
12531
  return pn(xt(n)).left + Bs(n).scrollLeft;
12514
12532
  }
12515
- function wm(n, e) {
12533
+ function Sm(n, e) {
12516
12534
  var t = xe(n), r = xt(n), i = t.visualViewport, s = r.clientWidth, o = r.clientHeight, l = 0, a = 0;
12517
12535
  if (i) {
12518
12536
  s = i.width, o = i.height;
@@ -12526,7 +12544,7 @@ function wm(n, e) {
12526
12544
  y: a
12527
12545
  };
12528
12546
  }
12529
- function Sm(n) {
12547
+ function Mm(n) {
12530
12548
  var e, t = xt(n), r = Bs(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 + Ls(n), a = -r.scrollTop;
12531
12549
  return tt(i || t).direction === "rtl" && (l += Bt(t.clientWidth, i ? i.clientWidth : 0) - s), {
12532
12550
  width: s,
@@ -12559,21 +12577,21 @@ function Zi(n) {
12559
12577
  bottom: n.y + n.height
12560
12578
  });
12561
12579
  }
12562
- function Mm(n, e) {
12580
+ function Cm(n, e) {
12563
12581
  var t = pn(n, !1, e === "fixed");
12564
12582
  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;
12565
12583
  }
12566
12584
  function tl(n, e, t) {
12567
- return e === lc ? Zi(wm(n, t)) : Ht(e) ? Mm(e, t) : Zi(Sm(xt(n)));
12585
+ return e === lc ? Zi(Sm(n, t)) : Ht(e) ? Cm(e, t) : Zi(Mm(xt(n)));
12568
12586
  }
12569
- function Cm(n) {
12587
+ function Om(n) {
12570
12588
  var e = Rn(ri(n)), t = ["absolute", "fixed"].indexOf(tt(n).position) >= 0, r = t && Te(n) ? tr(n) : n;
12571
12589
  return Ht(r) ? e.filter(function(i) {
12572
12590
  return Ht(i) && dc(i, r) && We(i) !== "body";
12573
12591
  }) : [];
12574
12592
  }
12575
- function Om(n, e, t, r) {
12576
- var i = e === "clippingParents" ? Cm(n) : [].concat(e), s = [].concat(i, [t]), o = s[0], l = s.reduce(function(a, c) {
12593
+ function Tm(n, e, t, r) {
12594
+ var i = e === "clippingParents" ? Om(n) : [].concat(e), s = [].concat(i, [t]), o = s[0], l = s.reduce(function(a, c) {
12577
12595
  var u = tl(n, c, r);
12578
12596
  return a.top = Bt(u.top, a.top), a.right = Hr(u.right, a.right), a.bottom = Hr(u.bottom, a.bottom), a.left = Bt(u.left, a.left), a;
12579
12597
  }, tl(n, o, r));
@@ -12628,7 +12646,7 @@ function gc(n) {
12628
12646
  }
12629
12647
  function _n(n, e) {
12630
12648
  e === void 0 && (e = {});
12631
- 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 ? lc : 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 = pc(typeof g != "number" ? g : hc(g, er)), w = f === Mn ? Uh : Mn, M = n.rects.popper, y = n.elements[h ? w : f], T = Om(Ht(y) ? y : y.contextElement || xt(n.elements.popper), a, u, o), x = pn(n.elements.reference), I = gc({
12649
+ 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 ? Uh : l, c = t.rootBoundary, u = c === void 0 ? lc : 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 = pc(typeof g != "number" ? g : hc(g, er)), w = f === Mn ? Gh : Mn, M = n.rects.popper, y = n.elements[h ? w : f], T = Tm(Ht(y) ? y : y.contextElement || xt(n.elements.popper), a, u, o), x = pn(n.elements.reference), I = gc({
12632
12650
  reference: x,
12633
12651
  element: M,
12634
12652
  placement: i
@@ -12647,7 +12665,7 @@ function _n(n, e) {
12647
12665
  }
12648
12666
  return L;
12649
12667
  }
12650
- function Tm(n, e) {
12668
+ function Em(n, e) {
12651
12669
  e === void 0 && (e = {});
12652
12670
  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 ? ac : a, u = hn(r), d = u ? l ? Xo : Xo.filter(function(h) {
12653
12671
  return hn(h) === u;
@@ -12667,17 +12685,17 @@ function Tm(n, e) {
12667
12685
  return p[h] - p[m];
12668
12686
  });
12669
12687
  }
12670
- function Em(n) {
12688
+ function Am(n) {
12671
12689
  if ($e(n) === Ds)
12672
12690
  return [];
12673
12691
  var e = Tr(n);
12674
12692
  return [el(n), e, el(e)];
12675
12693
  }
12676
- function Am(n) {
12694
+ function Nm(n) {
12677
12695
  var e = n.state, t = n.options, r = n.name;
12678
12696
  if (!e.modifiersData[r]._skip) {
12679
- 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 ? [Tr(g)] : Em(g)), y = [g].concat(M).reduce(function(qe, De) {
12680
- return qe.concat($e(De) === Ds ? Tm(e, {
12697
+ 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 ? [Tr(g)] : Am(g)), y = [g].concat(M).reduce(function(qe, De) {
12698
+ return qe.concat($e(De) === Ds ? Em(e, {
12681
12699
  placement: De,
12682
12700
  boundary: u,
12683
12701
  rootBoundary: d,
@@ -12721,11 +12739,11 @@ function Am(n) {
12721
12739
  e.placement !== R && (e.modifiersData[r]._skip = !0, e.placement = R, e.reset = !0);
12722
12740
  }
12723
12741
  }
12724
- const Nm = {
12742
+ const Dm = {
12725
12743
  name: "flip",
12726
12744
  enabled: !0,
12727
12745
  phase: "main",
12728
- fn: Am,
12746
+ fn: Nm,
12729
12747
  requiresIfExists: ["offset"],
12730
12748
  data: {
12731
12749
  _skip: !1
@@ -12747,7 +12765,7 @@ function rl(n) {
12747
12765
  return n[e] >= 0;
12748
12766
  });
12749
12767
  }
12750
- function Dm(n) {
12768
+ function Im(n) {
12751
12769
  var e = n.state, t = n.name, r = e.rects.reference, i = e.rects.popper, s = e.modifiersData.preventOverflow, o = _n(e, {
12752
12770
  elementContext: "reference"
12753
12771
  }), l = _n(e, {
@@ -12763,14 +12781,14 @@ function Dm(n) {
12763
12781
  "data-popper-escaped": d
12764
12782
  });
12765
12783
  }
12766
- const Im = {
12784
+ const Rm = {
12767
12785
  name: "hide",
12768
12786
  enabled: !0,
12769
12787
  phase: "main",
12770
12788
  requiresIfExists: ["preventOverflow"],
12771
- fn: Dm
12789
+ fn: Im
12772
12790
  };
12773
- function Rm(n, e, t) {
12791
+ function Pm(n, e, t) {
12774
12792
  var r = $e(n), i = [he, pe].indexOf(r) >= 0 ? -1 : 1, s = typeof t == "function" ? t(Object.assign({}, e, {
12775
12793
  placement: n
12776
12794
  })) : t, o = s[0], l = s[1];
@@ -12782,20 +12800,20 @@ function Rm(n, e, t) {
12782
12800
  y: l
12783
12801
  };
12784
12802
  }
12785
- function Pm(n) {
12803
+ function Bm(n) {
12786
12804
  var e = n.state, t = n.options, r = n.name, i = t.offset, s = i === void 0 ? [0, 0] : i, o = ac.reduce(function(u, d) {
12787
- return u[d] = Rm(d, e.rects, s), u;
12805
+ return u[d] = Pm(d, e.rects, s), u;
12788
12806
  }, {}), l = o[e.placement], a = l.x, c = l.y;
12789
12807
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += a, e.modifiersData.popperOffsets.y += c), e.modifiersData[r] = o;
12790
12808
  }
12791
- const Bm = {
12809
+ const Lm = {
12792
12810
  name: "offset",
12793
12811
  enabled: !0,
12794
12812
  phase: "main",
12795
12813
  requires: ["popperOffsets"],
12796
- fn: Pm
12814
+ fn: Bm
12797
12815
  };
12798
- function Lm(n) {
12816
+ function zm(n) {
12799
12817
  var e = n.state, t = n.name;
12800
12818
  e.modifiersData[t] = gc({
12801
12819
  reference: e.rects.reference,
@@ -12803,23 +12821,23 @@ function Lm(n) {
12803
12821
  placement: e.placement
12804
12822
  });
12805
12823
  }
12806
- const zm = {
12824
+ const Fm = {
12807
12825
  name: "popperOffsets",
12808
12826
  enabled: !0,
12809
12827
  phase: "read",
12810
- fn: Lm,
12828
+ fn: zm,
12811
12829
  data: {}
12812
12830
  };
12813
- function Fm(n) {
12831
+ function Vm(n) {
12814
12832
  return n === "x" ? "y" : "x";
12815
12833
  }
12816
- function Vm(n) {
12834
+ function $m(n) {
12817
12835
  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 = _n(e, {
12818
12836
  boundary: a,
12819
12837
  rootBoundary: c,
12820
12838
  padding: d,
12821
12839
  altBoundary: u
12822
- }), b = $e(e.placement), w = hn(e.placement), M = !w, y = Ps(b), T = Fm(y), x = e.modifiersData.popperOffsets, I = e.rects.reference, C = e.rects.popper, R = typeof m == "function" ? m(Object.assign({}, e.rects, {
12840
+ }), b = $e(e.placement), w = hn(e.placement), M = !w, y = Ps(b), T = Vm(y), x = e.modifiersData.popperOffsets, I = e.rects.reference, C = e.rects.popper, R = typeof m == "function" ? m(Object.assign({}, e.rects, {
12823
12841
  placement: e.placement
12824
12842
  })) : m, L = typeof R == "number" ? {
12825
12843
  mainAxis: R,
@@ -12840,35 +12858,35 @@ function Vm(n) {
12840
12858
  x[y] = vn, H[y] = vn - ne;
12841
12859
  }
12842
12860
  if (l) {
12843
- var kn, sr = y === "x" ? pe : he, or = y === "x" ? Ee : Ae, Je = x[T], rt = T === "y" ? "height" : "width", xn = Je + g[sr], Mt = Je - g[or], wn = [pe, he].indexOf(b) !== -1, lr = (kn = W?.[T]) != null ? kn : 0, ar = wn ? xn : Je - I[rt] - C[rt] - lr + L.altAxis, cr = wn ? Je + I[rt] + C[rt] - lr - L.altAxis : Mt, ur = p && wn ? cm(ar, Je, cr) : In(p ? ar : xn, Je, p ? cr : Mt);
12861
+ var kn, sr = y === "x" ? pe : he, or = y === "x" ? Ee : Ae, Je = x[T], rt = T === "y" ? "height" : "width", xn = Je + g[sr], Mt = Je - g[or], wn = [pe, he].indexOf(b) !== -1, lr = (kn = W?.[T]) != null ? kn : 0, ar = wn ? xn : Je - I[rt] - C[rt] - lr + L.altAxis, cr = wn ? Je + I[rt] + C[rt] - lr - L.altAxis : Mt, ur = p && wn ? um(ar, Je, cr) : In(p ? ar : xn, Je, p ? cr : Mt);
12844
12862
  x[T] = ur, H[T] = ur - Je;
12845
12863
  }
12846
12864
  e.modifiersData[r] = H;
12847
12865
  }
12848
12866
  }
12849
- const $m = {
12867
+ const Hm = {
12850
12868
  name: "preventOverflow",
12851
12869
  enabled: !0,
12852
12870
  phase: "main",
12853
- fn: Vm,
12871
+ fn: $m,
12854
12872
  requiresIfExists: ["offset"]
12855
12873
  };
12856
- function Hm(n) {
12874
+ function jm(n) {
12857
12875
  return {
12858
12876
  scrollLeft: n.scrollLeft,
12859
12877
  scrollTop: n.scrollTop
12860
12878
  };
12861
12879
  }
12862
- function jm(n) {
12863
- return n === xe(n) || !Te(n) ? Bs(n) : Hm(n);
12864
- }
12865
12880
  function Wm(n) {
12881
+ return n === xe(n) || !Te(n) ? Bs(n) : jm(n);
12882
+ }
12883
+ function qm(n) {
12866
12884
  var e = n.getBoundingClientRect(), t = fn(e.width) / n.offsetWidth || 1, r = fn(e.height) / n.offsetHeight || 1;
12867
12885
  return t !== 1 || r !== 1;
12868
12886
  }
12869
- function qm(n, e, t) {
12887
+ function Km(n, e, t) {
12870
12888
  t === void 0 && (t = !1);
12871
- var r = Te(e), i = Te(e) && Wm(e), s = xt(e), o = pn(n, i, t), l = {
12889
+ var r = Te(e), i = Te(e) && qm(e), s = xt(e), o = pn(n, i, t), l = {
12872
12890
  scrollLeft: 0,
12873
12891
  scrollTop: 0
12874
12892
  }, a = {
@@ -12876,14 +12894,14 @@ function qm(n, e, t) {
12876
12894
  y: 0
12877
12895
  };
12878
12896
  return (r || !r && !t) && ((We(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
12879
- zs(s)) && (l = jm(e)), Te(e) ? (a = pn(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : s && (a.x = Ls(s))), {
12897
+ zs(s)) && (l = Wm(e)), Te(e) ? (a = pn(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : s && (a.x = Ls(s))), {
12880
12898
  x: o.left + l.scrollLeft - a.x,
12881
12899
  y: o.top + l.scrollTop - a.y,
12882
12900
  width: o.width,
12883
12901
  height: o.height
12884
12902
  };
12885
12903
  }
12886
- function Km(n) {
12904
+ function _m(n) {
12887
12905
  var e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), r = [];
12888
12906
  n.forEach(function(s) {
12889
12907
  e.set(s.name, s);
@@ -12902,15 +12920,15 @@ function Km(n) {
12902
12920
  t.has(s.name) || i(s);
12903
12921
  }), r;
12904
12922
  }
12905
- function _m(n) {
12906
- var e = Km(n);
12907
- return im.reduce(function(t, r) {
12923
+ function Jm(n) {
12924
+ var e = _m(n);
12925
+ return sm.reduce(function(t, r) {
12908
12926
  return t.concat(e.filter(function(i) {
12909
12927
  return i.phase === r;
12910
12928
  }));
12911
12929
  }, []);
12912
12930
  }
12913
- function Jm(n) {
12931
+ function Um(n) {
12914
12932
  var e;
12915
12933
  return function() {
12916
12934
  return e || (e = new Promise(function(t) {
@@ -12920,7 +12938,7 @@ function Jm(n) {
12920
12938
  })), e;
12921
12939
  };
12922
12940
  }
12923
- function Um(n) {
12941
+ function Gm(n) {
12924
12942
  var e = n.reduce(function(t, r) {
12925
12943
  var i = t[r.name];
12926
12944
  return t[r.name] = i ? Object.assign({}, i, r, {
@@ -12944,7 +12962,7 @@ function sl() {
12944
12962
  return !(r && typeof r.getBoundingClientRect == "function");
12945
12963
  });
12946
12964
  }
12947
- function Gm(n) {
12965
+ function Ym(n) {
12948
12966
  n === void 0 && (n = {});
12949
12967
  var e = n, t = e.defaultModifiers, r = t === void 0 ? [] : t, i = e.defaultOptions, s = i === void 0 ? il : i;
12950
12968
  return function(l, a, c) {
@@ -12968,7 +12986,7 @@ function Gm(n) {
12968
12986
  reference: Ht(l) ? Rn(l) : l.contextElement ? Rn(l.contextElement) : [],
12969
12987
  popper: Rn(a)
12970
12988
  };
12971
- var M = _m(Um([].concat(r, u.options.modifiers)));
12989
+ var M = Jm(Gm([].concat(r, u.options.modifiers)));
12972
12990
  return u.orderedModifiers = M.filter(function(y) {
12973
12991
  return y.enabled;
12974
12992
  }), h(), p.update();
@@ -12983,7 +13001,7 @@ function Gm(n) {
12983
13001
  var b = u.elements, w = b.reference, M = b.popper;
12984
13002
  if (sl(w, M)) {
12985
13003
  u.rects = {
12986
- reference: qm(w, tr(M), u.options.strategy === "fixed"),
13004
+ reference: Km(w, tr(M), u.options.strategy === "fixed"),
12987
13005
  popper: Rs(M)
12988
13006
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(L) {
12989
13007
  return u.modifiersData[L.name] = Object.assign({}, L.data);
@@ -13006,7 +13024,7 @@ function Gm(n) {
13006
13024
  },
13007
13025
  // Async and optimistically optimized update – it will not be executed if
13008
13026
  // not necessary (debounced to run at most once-per-tick)
13009
- update: Jm(function() {
13027
+ update: Um(function() {
13010
13028
  return new Promise(function(g) {
13011
13029
  p.forceUpdate(), g(u);
13012
13030
  });
@@ -13043,15 +13061,15 @@ function Gm(n) {
13043
13061
  return p;
13044
13062
  };
13045
13063
  }
13046
- var Ym = [vm, zm, ym, cc, Bm, Nm, $m, pm, Im], Xm = /* @__PURE__ */ Gm({
13047
- defaultModifiers: Ym
13048
- }), Zm = "tippy-box", yc = "tippy-content", Qm = "tippy-backdrop", bc = "tippy-arrow", vc = "tippy-svg-arrow", Ot = {
13064
+ var Xm = [km, Fm, bm, cc, Lm, Dm, Hm, hm, Rm], Zm = /* @__PURE__ */ Ym({
13065
+ defaultModifiers: Xm
13066
+ }), Qm = "tippy-box", yc = "tippy-content", eg = "tippy-backdrop", bc = "tippy-arrow", vc = "tippy-svg-arrow", Ot = {
13049
13067
  passive: !0,
13050
13068
  capture: !0
13051
13069
  }, kc = function() {
13052
13070
  return document.body;
13053
13071
  };
13054
- function eg(n, e) {
13072
+ function tg(n, e) {
13055
13073
  return {}.hasOwnProperty.call(n, e);
13056
13074
  }
13057
13075
  function Mi(n, e, t) {
@@ -13078,13 +13096,13 @@ function ol(n, e) {
13078
13096
  }, e);
13079
13097
  };
13080
13098
  }
13081
- function tg(n, e) {
13099
+ function ng(n, e) {
13082
13100
  var t = Object.assign({}, n);
13083
13101
  return e.forEach(function(r) {
13084
13102
  delete t[r];
13085
13103
  }), t;
13086
13104
  }
13087
- function ng(n) {
13105
+ function rg(n) {
13088
13106
  return n.split(/\s+/).filter(Boolean);
13089
13107
  }
13090
13108
  function Qt(n) {
@@ -13093,12 +13111,12 @@ function Qt(n) {
13093
13111
  function ll(n, e) {
13094
13112
  n.indexOf(e) === -1 && n.push(e);
13095
13113
  }
13096
- function rg(n) {
13114
+ function ig(n) {
13097
13115
  return n.filter(function(e, t) {
13098
13116
  return n.indexOf(e) === t;
13099
13117
  });
13100
13118
  }
13101
- function ig(n) {
13119
+ function sg(n) {
13102
13120
  return n.split("-")[0];
13103
13121
  }
13104
13122
  function jr(n) {
@@ -13117,17 +13135,17 @@ function Jn(n) {
13117
13135
  return Fs(n, e);
13118
13136
  });
13119
13137
  }
13120
- function sg(n) {
13138
+ function og(n) {
13121
13139
  return Fs(n, "NodeList");
13122
13140
  }
13123
- function og(n) {
13141
+ function lg(n) {
13124
13142
  return Fs(n, "MouseEvent");
13125
13143
  }
13126
- function lg(n) {
13144
+ function ag(n) {
13127
13145
  return !!(n && n._tippy && n._tippy.reference === n);
13128
13146
  }
13129
- function ag(n) {
13130
- return Jn(n) ? [n] : sg(n) ? jr(n) : Array.isArray(n) ? n : jr(document.querySelectorAll(n));
13147
+ function cg(n) {
13148
+ return Jn(n) ? [n] : og(n) ? jr(n) : Array.isArray(n) ? n : jr(document.querySelectorAll(n));
13131
13149
  }
13132
13150
  function Ci(n, e) {
13133
13151
  n.forEach(function(t) {
@@ -13139,14 +13157,14 @@ function cl(n, e) {
13139
13157
  t && t.setAttribute("data-state", e);
13140
13158
  });
13141
13159
  }
13142
- function cg(n) {
13160
+ function ug(n) {
13143
13161
  var e, t = Qt(n), r = t[0];
13144
13162
  return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
13145
13163
  }
13146
- function ug(n, e) {
13164
+ function dg(n, e) {
13147
13165
  var t = e.clientX, r = e.clientY;
13148
13166
  return n.every(function(i) {
13149
- var s = i.popperRect, o = i.popperState, l = i.props, a = l.interactiveBorder, c = ig(o.placement), u = o.modifiersData.offset;
13167
+ var s = i.popperRect, o = i.popperState, l = i.props, a = l.interactiveBorder, c = sg(o.placement), u = o.modifiersData.offset;
13150
13168
  if (!u)
13151
13169
  return !0;
13152
13170
  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;
@@ -13171,24 +13189,24 @@ function ul(n, e) {
13171
13189
  var Fe = {
13172
13190
  isTouch: !1
13173
13191
  }, dl = 0;
13174
- function dg() {
13192
+ function fg() {
13175
13193
  Fe.isTouch || (Fe.isTouch = !0, window.performance && document.addEventListener("mousemove", wc));
13176
13194
  }
13177
13195
  function wc() {
13178
13196
  var n = performance.now();
13179
13197
  n - dl < 20 && (Fe.isTouch = !1, document.removeEventListener("mousemove", wc)), dl = n;
13180
13198
  }
13181
- function fg() {
13199
+ function pg() {
13182
13200
  var n = document.activeElement;
13183
- if (lg(n)) {
13201
+ if (ag(n)) {
13184
13202
  var e = n._tippy;
13185
13203
  n.blur && !e.state.isVisible && n.blur();
13186
13204
  }
13187
13205
  }
13188
- function pg() {
13189
- document.addEventListener("touchstart", dg, Ot), window.addEventListener("blur", fg);
13206
+ function hg() {
13207
+ document.addEventListener("touchstart", fg, Ot), window.addEventListener("blur", pg);
13190
13208
  }
13191
- var hg = typeof window < "u" && typeof document < "u", mg = hg ? (
13209
+ var mg = typeof window < "u" && typeof document < "u", gg = mg ? (
13192
13210
  // @ts-ignore
13193
13211
  !!window.msCrypto
13194
13212
  ) : !1;
@@ -13200,7 +13218,7 @@ function fl(n) {
13200
13218
  var e = /[ \t]{2,}/g, t = /^[ \t]*/gm;
13201
13219
  return n.replace(e, " ").replace(t, "").trim();
13202
13220
  }
13203
- function gg(n) {
13221
+ function yg(n) {
13204
13222
  return fl(`
13205
13223
  %ctippy.js
13206
13224
 
@@ -13211,7 +13229,7 @@ function gg(n) {
13211
13229
  }
13212
13230
  function Sc(n) {
13213
13231
  return [
13214
- gg(n),
13232
+ yg(n),
13215
13233
  // title
13216
13234
  "color: #00C584; font-size: 1.3em; font-weight: bold;",
13217
13235
  // message
@@ -13221,8 +13239,8 @@ function Sc(n) {
13221
13239
  ];
13222
13240
  }
13223
13241
  var Un;
13224
- process.env.NODE_ENV !== "production" && yg();
13225
- function yg() {
13242
+ process.env.NODE_ENV !== "production" && bg();
13243
+ function bg() {
13226
13244
  Un = /* @__PURE__ */ new Set();
13227
13245
  }
13228
13246
  function Ye(n, e) {
@@ -13237,7 +13255,7 @@ function Qi(n, e) {
13237
13255
  Un.add(e), (t = console).error.apply(t, Sc(e));
13238
13256
  }
13239
13257
  }
13240
- function bg(n) {
13258
+ function vg(n) {
13241
13259
  var e = !n, t = Object.prototype.toString.call(n) === "[object Object]" && !n.addEventListener;
13242
13260
  Qi(e, ["tippy() was passed", "`" + String(n) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Qi(t, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
13243
13261
  }
@@ -13246,7 +13264,7 @@ var Mc = {
13246
13264
  followCursor: !1,
13247
13265
  inlinePositioning: !1,
13248
13266
  sticky: !1
13249
- }, vg = {
13267
+ }, kg = {
13250
13268
  allowHTML: !1,
13251
13269
  animation: "fade",
13252
13270
  arrow: !0,
@@ -13304,7 +13322,7 @@ var Mc = {
13304
13322
  touch: !0,
13305
13323
  trigger: "mouseenter focus",
13306
13324
  triggerTarget: null
13307
- }, Mc, vg), kg = Object.keys(ve), xg = function(e) {
13325
+ }, Mc, kg), xg = Object.keys(ve), wg = function(e) {
13308
13326
  process.env.NODE_ENV !== "production" && Oc(e, []);
13309
13327
  var t = Object.keys(e);
13310
13328
  t.forEach(function(r) {
@@ -13322,10 +13340,10 @@ function Cc(n) {
13322
13340
  }, {});
13323
13341
  return Object.assign({}, n, t);
13324
13342
  }
13325
- function wg(n, e) {
13343
+ function Sg(n, e) {
13326
13344
  var t = e ? Object.keys(Cc(Object.assign({}, ve, {
13327
13345
  plugins: e
13328
- }))) : kg, r = t.reduce(function(i, s) {
13346
+ }))) : xg, r = t.reduce(function(i, s) {
13329
13347
  var o = (n.getAttribute("data-tippy-" + s) || "").trim();
13330
13348
  if (!o)
13331
13349
  return i;
@@ -13344,7 +13362,7 @@ function wg(n, e) {
13344
13362
  function pl(n, e) {
13345
13363
  var t = Object.assign({}, e, {
13346
13364
  content: xc(e.content, [n])
13347
- }, e.ignoreAttributes ? {} : wg(n, e.plugins));
13365
+ }, e.ignoreAttributes ? {} : Sg(n, e.plugins));
13348
13366
  return t.aria = Object.assign({}, ve.aria, t.aria), t.aria = {
13349
13367
  expanded: t.aria.expanded === "auto" ? e.interactive : t.aria.expanded,
13350
13368
  content: t.aria.content === "auto" ? e.interactive ? null : "describedby" : t.aria.content
@@ -13354,7 +13372,7 @@ function Oc(n, e) {
13354
13372
  n === void 0 && (n = {}), e === void 0 && (e = []);
13355
13373
  var t = Object.keys(n);
13356
13374
  t.forEach(function(r) {
13357
- var i = tg(ve, Object.keys(Mc)), s = !eg(i, r);
13375
+ var i = ng(ve, Object.keys(Mc)), s = !tg(i, r);
13358
13376
  s && (s = e.filter(function(o) {
13359
13377
  return o.name === r;
13360
13378
  }).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.", `
@@ -13363,11 +13381,11 @@ function Oc(n, e) {
13363
13381
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
13364
13382
  });
13365
13383
  }
13366
- var Sg = function() {
13384
+ var Mg = function() {
13367
13385
  return "innerHTML";
13368
13386
  };
13369
13387
  function es(n, e) {
13370
- n[Sg()] = e;
13388
+ n[Mg()] = e;
13371
13389
  }
13372
13390
  function hl(n) {
13373
13391
  var e = Pn();
@@ -13387,13 +13405,13 @@ function ts(n) {
13387
13405
  return r.classList.contains(bc) || r.classList.contains(vc);
13388
13406
  }),
13389
13407
  backdrop: t.find(function(r) {
13390
- return r.classList.contains(Qm);
13408
+ return r.classList.contains(eg);
13391
13409
  })
13392
13410
  };
13393
13411
  }
13394
13412
  function Tc(n) {
13395
13413
  var e = Pn(), t = Pn();
13396
- t.className = Zm, t.setAttribute("data-state", "hidden"), t.setAttribute("tabindex", "-1");
13414
+ t.className = Qm, t.setAttribute("data-state", "hidden"), t.setAttribute("tabindex", "-1");
13397
13415
  var r = Pn();
13398
13416
  r.className = yc, r.setAttribute("data-state", "hidden"), ml(r, n.props), e.appendChild(t), t.appendChild(r), i(n.props, n.props);
13399
13417
  function i(s, o) {
@@ -13406,9 +13424,9 @@ function Tc(n) {
13406
13424
  };
13407
13425
  }
13408
13426
  Tc.$$tippy = !0;
13409
- var Mg = 1, wr = [], Ti = [];
13410
- function Cg(n, e) {
13411
- var t = pl(n, Object.assign({}, ve, Cc(al(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, p = [], h = ol(rr, t.interactiveDebounce), m, g = Mg++, b = null, w = rg(t.plugins), M = {
13427
+ var Cg = 1, wr = [], Ti = [];
13428
+ function Og(n, e) {
13429
+ var t = pl(n, Object.assign({}, ve, Cc(al(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, p = [], h = ol(rr, t.interactiveDebounce), m, g = Cg++, b = null, w = ig(t.plugins), M = {
13412
13430
  // Is the instance currently enabled?
13413
13431
  isEnabled: !0,
13414
13432
  // Is the tippy currently showing and not transitioning out?
@@ -13468,7 +13486,7 @@ function Cg(n, e) {
13468
13486
  }
13469
13487
  function ge() {
13470
13488
  var v = $().parentNode;
13471
- return v ? cg(v) : document;
13489
+ return v ? ug(v) : document;
13472
13490
  }
13473
13491
  function ye() {
13474
13492
  return ts(x);
@@ -13580,14 +13598,14 @@ function Cg(n, e) {
13580
13598
  passive: !0
13581
13599
  }), nt("touchend", ir, {
13582
13600
  passive: !0
13583
- })), ng(y.props.trigger).forEach(function(v) {
13601
+ })), rg(y.props.trigger).forEach(function(v) {
13584
13602
  if (v !== "manual")
13585
13603
  switch (nt(v, bn), v) {
13586
13604
  case "mouseenter":
13587
13605
  nt("mouseleave", ir);
13588
13606
  break;
13589
13607
  case "focus":
13590
- nt(mg ? "focusout" : "blur", vn);
13608
+ nt(gg ? "focusout" : "blur", vn);
13591
13609
  break;
13592
13610
  case "focusin":
13593
13611
  nt("focusout", vn);
@@ -13605,7 +13623,7 @@ function Cg(n, e) {
13605
13623
  var E, N = !1;
13606
13624
  if (!(!y.state.isEnabled || kn(v) || l)) {
13607
13625
  var F = ((E = u) == null ? void 0 : E.type) === "focus";
13608
- u = v, m = v.currentTarget, Be(), !y.state.isVisible && og(v) && wr.forEach(function(z) {
13626
+ u = v, m = v.currentTarget, Be(), !y.state.isVisible && lg(v) && wr.forEach(function(z) {
13609
13627
  return z(v);
13610
13628
  }), 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);
13611
13629
  }
@@ -13621,7 +13639,7 @@ function Cg(n, e) {
13621
13639
  props: t
13622
13640
  } : null;
13623
13641
  }).filter(Boolean);
13624
- ug(F, v) && (wt(), Mt(v));
13642
+ dg(F, v) && (wt(), Mt(v));
13625
13643
  }
13626
13644
  }
13627
13645
  function ir(v) {
@@ -13691,7 +13709,7 @@ function Cg(n, e) {
13691
13709
  element: we,
13692
13710
  padding: 3
13693
13711
  }
13694
- }), Ct.push.apply(Ct, E?.modifiers || []), y.popperInstance = Xm(_t, x, Object.assign({}, E, {
13712
+ }), Ct.push.apply(Ct, E?.modifiers || []), y.popperInstance = Zm(_t, x, Object.assign({}, E, {
13695
13713
  placement: N,
13696
13714
  onFirstUpdate: f,
13697
13715
  modifiers: Ct
@@ -13811,10 +13829,10 @@ function Cg(n, e) {
13811
13829
  function yn(n, e) {
13812
13830
  e === void 0 && (e = {});
13813
13831
  var t = ve.plugins.concat(e.plugins || []);
13814
- process.env.NODE_ENV !== "production" && (bg(n), Oc(e, t)), pg();
13832
+ process.env.NODE_ENV !== "production" && (vg(n), Oc(e, t)), hg();
13815
13833
  var r = Object.assign({}, e, {
13816
13834
  plugins: t
13817
- }), i = ag(n);
13835
+ }), i = cg(n);
13818
13836
  if (process.env.NODE_ENV !== "production") {
13819
13837
  var s = Jn(r.content), o = i.length > 1;
13820
13838
  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.", `
@@ -13825,13 +13843,13 @@ function yn(n, e) {
13825
13843
  `, "2) content: () => element.cloneNode(true)"].join(" "));
13826
13844
  }
13827
13845
  var l = i.reduce(function(a, c) {
13828
- var u = c && Cg(c, r);
13846
+ var u = c && Og(c, r);
13829
13847
  return u && a.push(u), a;
13830
13848
  }, []);
13831
13849
  return Jn(n) ? l[0] : l;
13832
13850
  }
13833
13851
  yn.defaultProps = ve;
13834
- yn.setDefaultProps = xg;
13852
+ yn.setDefaultProps = wg;
13835
13853
  yn.currentInput = Fe;
13836
13854
  Object.assign({}, cc, {
13837
13855
  effect: function(e) {
@@ -13853,7 +13871,7 @@ Object.assign({}, cc, {
13853
13871
  yn.setDefaultProps({
13854
13872
  render: Tc
13855
13873
  });
13856
- class Og {
13874
+ class Tg {
13857
13875
  constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, updateDelay: s = 250, shouldShow: o }) {
13858
13876
  this.preventHide = !1, this.shouldShow = ({ view: l, state: a, from: c, to: u }) => {
13859
13877
  const { doc: d, selection: f } = a, { empty: p } = f, h = !d.textBetween(c, u).length && Ts(a.selection), m = this.element.contains(document.activeElement);
@@ -13949,7 +13967,7 @@ class Og {
13949
13967
  }
13950
13968
  const Ec = (n) => new oe({
13951
13969
  key: typeof n.pluginKey == "string" ? new Ne(n.pluginKey) : n.pluginKey,
13952
- view: (e) => new Og({ view: e, ...n })
13970
+ view: (e) => new Tg({ view: e, ...n })
13953
13971
  });
13954
13972
  ee.create({
13955
13973
  name: "bubbleMenu",
@@ -13975,7 +13993,7 @@ ee.create({
13975
13993
  ] : [];
13976
13994
  }
13977
13995
  });
13978
- class Tg {
13996
+ class Eg {
13979
13997
  getTextContent(e) {
13980
13998
  return rc(e, { textSerializers: Cs(this.editor.schema) });
13981
13999
  }
@@ -14044,7 +14062,7 @@ class Tg {
14044
14062
  }
14045
14063
  const Ac = (n) => new oe({
14046
14064
  key: typeof n.pluginKey == "string" ? new Ne(n.pluginKey) : n.pluginKey,
14047
- view: (e) => new Tg({ view: e, ...n })
14065
+ view: (e) => new Eg({ view: e, ...n })
14048
14066
  });
14049
14067
  ee.create({
14050
14068
  name: "floatingMenu",
@@ -14127,7 +14145,7 @@ function gl(n) {
14127
14145
  }
14128
14146
  }));
14129
14147
  }
14130
- class Eg extends Kh {
14148
+ class Ag extends Kh {
14131
14149
  constructor(e = {}) {
14132
14150
  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 }) => {
14133
14151
  this.reactiveState.value = t, this.reactiveExtensionStorage.value = this.extensionStorage;
@@ -14154,7 +14172,7 @@ class Eg extends Kh {
14154
14172
  return this.reactiveState && t && (this.reactiveState.value = t), t;
14155
14173
  }
14156
14174
  }
14157
- const Ag = mn({
14175
+ const Ng = mn({
14158
14176
  name: "EditorContent",
14159
14177
  props: {
14160
14178
  editor: {
@@ -14275,16 +14293,16 @@ mn({
14275
14293
  }, (e = (n = this.$slots).default) === null || e === void 0 ? void 0 : e.call(n));
14276
14294
  }
14277
14295
  });
14278
- const Ng = (n = {}) => {
14296
+ const Dg = (n = {}) => {
14279
14297
  const e = $c();
14280
14298
  return ns(() => {
14281
- e.value = new Eg(n);
14299
+ e.value = new Ag(n);
14282
14300
  }), Gn(() => {
14283
14301
  var t, r, i;
14284
14302
  const s = (t = e.value) === null || t === void 0 ? void 0 : t.options.element, o = s?.cloneNode(!0);
14285
14303
  (r = s?.parentNode) === null || r === void 0 || r.replaceChild(o, s), (i = e.value) === null || i === void 0 || i.destroy();
14286
14304
  }), e;
14287
- }, Dg = /^\s*>\s$/, Ig = me.create({
14305
+ }, Ig = /^\s*>\s$/, Rg = me.create({
14288
14306
  name: "blockquote",
14289
14307
  addOptions() {
14290
14308
  return {
@@ -14317,12 +14335,12 @@ const Ng = (n = {}) => {
14317
14335
  addInputRules() {
14318
14336
  return [
14319
14337
  qn({
14320
- find: Dg,
14338
+ find: Ig,
14321
14339
  type: this.type
14322
14340
  })
14323
14341
  ];
14324
14342
  }
14325
- }), Rg = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Pg = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Bg = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Lg = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, zg = yt.create({
14343
+ }), Pg = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Bg = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Lg = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, zg = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Fg = yt.create({
14326
14344
  name: "bold",
14327
14345
  addOptions() {
14328
14346
  return {
@@ -14367,11 +14385,11 @@ const Ng = (n = {}) => {
14367
14385
  addInputRules() {
14368
14386
  return [
14369
14387
  cn({
14370
- find: Rg,
14388
+ find: Pg,
14371
14389
  type: this.type
14372
14390
  }),
14373
14391
  cn({
14374
- find: Bg,
14392
+ find: Lg,
14375
14393
  type: this.type
14376
14394
  })
14377
14395
  ];
@@ -14379,16 +14397,16 @@ const Ng = (n = {}) => {
14379
14397
  addPasteRules() {
14380
14398
  return [
14381
14399
  un({
14382
- find: Pg,
14400
+ find: Bg,
14383
14401
  type: this.type
14384
14402
  }),
14385
14403
  un({
14386
- find: Lg,
14404
+ find: zg,
14387
14405
  type: this.type
14388
14406
  })
14389
14407
  ];
14390
14408
  }
14391
- }), Fg = "listItem", yl = "textStyle", bl = /^\s*([-+*])\s$/, Vg = me.create({
14409
+ }), Vg = "listItem", yl = "textStyle", bl = /^\s*([-+*])\s$/, $g = me.create({
14392
14410
  name: "bulletList",
14393
14411
  addOptions() {
14394
14412
  return {
@@ -14412,7 +14430,7 @@ const Ng = (n = {}) => {
14412
14430
  },
14413
14431
  addCommands() {
14414
14432
  return {
14415
- 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)
14433
+ toggleBulletList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Vg, this.editor.getAttributes(yl)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
14416
14434
  };
14417
14435
  },
14418
14436
  addKeyboardShortcuts() {
@@ -14436,7 +14454,7 @@ const Ng = (n = {}) => {
14436
14454
  n
14437
14455
  ];
14438
14456
  }
14439
- }), $g = /(^|[^`])`([^`]+)`(?!`)/, Hg = /(^|[^`])`([^`]+)`(?!`)/g, jg = yt.create({
14457
+ }), Hg = /(^|[^`])`([^`]+)`(?!`)/, jg = /(^|[^`])`([^`]+)`(?!`)/g, Wg = yt.create({
14440
14458
  name: "code",
14441
14459
  addOptions() {
14442
14460
  return {
@@ -14469,7 +14487,7 @@ const Ng = (n = {}) => {
14469
14487
  addInputRules() {
14470
14488
  return [
14471
14489
  cn({
14472
- find: $g,
14490
+ find: Hg,
14473
14491
  type: this.type
14474
14492
  })
14475
14493
  ];
@@ -14477,12 +14495,12 @@ const Ng = (n = {}) => {
14477
14495
  addPasteRules() {
14478
14496
  return [
14479
14497
  un({
14480
- find: Hg,
14498
+ find: jg,
14481
14499
  type: this.type
14482
14500
  })
14483
14501
  ];
14484
14502
  }
14485
- }), Wg = /^```([a-z]+)?[\s\n]$/, qg = /^~~~([a-z]+)?[\s\n]$/, Kg = me.create({
14503
+ }), qg = /^```([a-z]+)?[\s\n]$/, Kg = /^~~~([a-z]+)?[\s\n]$/, _g = me.create({
14486
14504
  name: "codeBlock",
14487
14505
  addOptions() {
14488
14506
  return {
@@ -14573,14 +14591,14 @@ const Ng = (n = {}) => {
14573
14591
  addInputRules() {
14574
14592
  return [
14575
14593
  Yi({
14576
- find: Wg,
14594
+ find: qg,
14577
14595
  type: this.type,
14578
14596
  getAttributes: (n) => ({
14579
14597
  language: n[1]
14580
14598
  })
14581
14599
  }),
14582
14600
  Yi({
14583
- find: qg,
14601
+ find: Kg,
14584
14602
  type: this.type,
14585
14603
  getAttributes: (n) => ({
14586
14604
  language: n[1]
@@ -14609,19 +14627,19 @@ const Ng = (n = {}) => {
14609
14627
  })
14610
14628
  ];
14611
14629
  }
14612
- }), _g = me.create({
14630
+ }), Jg = me.create({
14613
14631
  name: "doc",
14614
14632
  topNode: !0,
14615
14633
  content: "block+"
14616
14634
  });
14617
- function Jg(n = {}) {
14635
+ function Ug(n = {}) {
14618
14636
  return new oe({
14619
14637
  view(e) {
14620
- return new Ug(e, n);
14638
+ return new Gg(e, n);
14621
14639
  }
14622
14640
  });
14623
14641
  }
14624
- class Ug {
14642
+ class Gg {
14625
14643
  constructor(e, t) {
14626
14644
  var r;
14627
14645
  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) => {
@@ -14695,7 +14713,7 @@ class Ug {
14695
14713
  this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
14696
14714
  }
14697
14715
  }
14698
- const Gg = ee.create({
14716
+ const Yg = ee.create({
14699
14717
  name: "dropCursor",
14700
14718
  addOptions() {
14701
14719
  return {
@@ -14706,7 +14724,7 @@ const Gg = ee.create({
14706
14724
  },
14707
14725
  addProseMirrorPlugins() {
14708
14726
  return [
14709
- Jg(this.options)
14727
+ Ug(this.options)
14710
14728
  ];
14711
14729
  }
14712
14730
  });
@@ -14749,7 +14767,7 @@ class j extends P {
14749
14767
  */
14750
14768
  static valid(e) {
14751
14769
  let t = e.parent;
14752
- if (t.isTextblock || !Yg(e) || !Xg(e))
14770
+ if (t.isTextblock || !Xg(e) || !Zg(e))
14753
14771
  return !1;
14754
14772
  let r = t.type.spec.allowGapCursor;
14755
14773
  if (r != null)
@@ -14810,7 +14828,7 @@ class Vs {
14810
14828
  return j.valid(t) ? new j(t) : P.near(t);
14811
14829
  }
14812
14830
  }
14813
- function Yg(n) {
14831
+ function Xg(n) {
14814
14832
  for (let e = n.depth; e >= 0; e--) {
14815
14833
  let t = n.index(e), r = n.node(e);
14816
14834
  if (t == 0) {
@@ -14827,7 +14845,7 @@ function Yg(n) {
14827
14845
  }
14828
14846
  return !0;
14829
14847
  }
14830
- function Xg(n) {
14848
+ function Zg(n) {
14831
14849
  for (let e = n.depth; e >= 0; e--) {
14832
14850
  let t = n.indexAfter(e), r = n.node(e);
14833
14851
  if (t == r.childCount) {
@@ -14844,20 +14862,20 @@ function Xg(n) {
14844
14862
  }
14845
14863
  return !0;
14846
14864
  }
14847
- function Zg() {
14865
+ function Qg() {
14848
14866
  return new oe({
14849
14867
  props: {
14850
- decorations: ny,
14868
+ decorations: ry,
14851
14869
  createSelectionBetween(n, e, t) {
14852
14870
  return e.pos == t.pos && j.valid(t) ? new j(t) : null;
14853
14871
  },
14854
- handleClick: ey,
14855
- handleKeyDown: Qg,
14856
- handleDOMEvents: { beforeinput: ty }
14872
+ handleClick: ty,
14873
+ handleKeyDown: ey,
14874
+ handleDOMEvents: { beforeinput: ny }
14857
14875
  }
14858
14876
  });
14859
14877
  }
14860
- const Qg = La({
14878
+ const ey = La({
14861
14879
  ArrowLeft: Sr("horiz", -1),
14862
14880
  ArrowRight: Sr("horiz", 1),
14863
14881
  ArrowUp: Sr("vert", -1),
@@ -14876,7 +14894,7 @@ function Sr(n, e) {
14876
14894
  return c ? (i && i(r.tr.setSelection(new j(c))), !0) : !1;
14877
14895
  };
14878
14896
  }
14879
- function ey(n, e, t) {
14897
+ function ty(n, e, t) {
14880
14898
  if (!n || !n.editable)
14881
14899
  return !1;
14882
14900
  let r = n.state.doc.resolve(e);
@@ -14885,7 +14903,7 @@ function ey(n, e, t) {
14885
14903
  let i = n.posAtCoords({ left: t.clientX, top: t.clientY });
14886
14904
  return i && i.inside > -1 && A.isSelectable(n.state.doc.nodeAt(i.inside)) ? !1 : (n.dispatch(n.state.tr.setSelection(new j(r))), !0);
14887
14905
  }
14888
- function ty(n, e) {
14906
+ function ny(n, e) {
14889
14907
  if (e.inputType != "insertCompositionText" || !(n.state.selection instanceof j))
14890
14908
  return !1;
14891
14909
  let { $from: t } = n.state.selection, r = t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);
@@ -14897,17 +14915,17 @@ function ty(n, e) {
14897
14915
  let s = n.state.tr.replace(t.pos, t.pos, new S(i, 0, 0));
14898
14916
  return s.setSelection(D.near(s.doc.resolve(t.pos + 1))), n.dispatch(s), !1;
14899
14917
  }
14900
- function ny(n) {
14918
+ function ry(n) {
14901
14919
  if (!(n.selection instanceof j))
14902
14920
  return null;
14903
14921
  let e = document.createElement("div");
14904
14922
  return e.className = "ProseMirror-gapcursor", K.create(n.doc, [Ce.widget(n.selection.head, e, { key: "gapcursor" })]);
14905
14923
  }
14906
- const ry = ee.create({
14924
+ const iy = ee.create({
14907
14925
  name: "gapCursor",
14908
14926
  addProseMirrorPlugins() {
14909
14927
  return [
14910
- Zg()
14928
+ Qg()
14911
14929
  ];
14912
14930
  },
14913
14931
  extendNodeSchema(n) {
@@ -14921,7 +14939,7 @@ const ry = ee.create({
14921
14939
  allowGapCursor: (e = B(O(n, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
14922
14940
  };
14923
14941
  }
14924
- }), iy = me.create({
14942
+ }), sy = me.create({
14925
14943
  name: "hardBreak",
14926
14944
  addOptions() {
14927
14945
  return {
@@ -14971,7 +14989,7 @@ const ry = ee.create({
14971
14989
  "Shift-Enter": () => this.editor.commands.setHardBreak()
14972
14990
  };
14973
14991
  }
14974
- }), sy = me.create({
14992
+ }), oy = me.create({
14975
14993
  name: "heading",
14976
14994
  addOptions() {
14977
14995
  return {
@@ -15030,7 +15048,7 @@ U.prototype.prepend = function(e) {
15030
15048
  return e.length ? U.from(e).append(this) : this;
15031
15049
  };
15032
15050
  U.prototype.appendInner = function(e) {
15033
- return new oy(this, e);
15051
+ return new ly(this, e);
15034
15052
  };
15035
15053
  U.prototype.slice = function(e, t) {
15036
15054
  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));
@@ -15085,7 +15103,7 @@ var Nc = /* @__PURE__ */ function(n) {
15085
15103
  }, Object.defineProperties(e.prototype, t), e;
15086
15104
  }(U);
15087
15105
  U.empty = new Nc([]);
15088
- var oy = /* @__PURE__ */ function(n) {
15106
+ var ly = /* @__PURE__ */ function(n) {
15089
15107
  function e(t, r) {
15090
15108
  n.call(this), this.left = t, this.right = r, this.length = t.length + r.length, this.depth = Math.max(t.depth, r.depth) + 1;
15091
15109
  }
@@ -15118,7 +15136,7 @@ var oy = /* @__PURE__ */ function(n) {
15118
15136
  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);
15119
15137
  }, e;
15120
15138
  }(U);
15121
- const ly = 500;
15139
+ const ay = 500;
15122
15140
  class Ie {
15123
15141
  constructor(e, t) {
15124
15142
  this.items = e, this.eventCount = t;
@@ -15160,7 +15178,7 @@ class Ie {
15160
15178
  (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);
15161
15179
  }
15162
15180
  let c = o - r.depth;
15163
- return c > cy && (l = ay(l, c), o -= c), new Ie(l.append(s), o);
15181
+ return c > uy && (l = cy(l, c), o -= c), new Ie(l.append(s), o);
15164
15182
  }
15165
15183
  remapping(e, t) {
15166
15184
  let r = new zn();
@@ -15200,7 +15218,7 @@ class Ie {
15200
15218
  for (let f = t; f < o; f++)
15201
15219
  c.push(new ze(s.maps[f]));
15202
15220
  let u = this.items.slice(0, i).append(c).append(r), d = new Ie(u, l);
15203
- return d.emptyItemCount() > ly && (d = d.compress(this.items.length - r.length)), d;
15221
+ return d.emptyItemCount() > ay && (d = d.compress(this.items.length - r.length)), d;
15204
15222
  }
15205
15223
  emptyItemCount() {
15206
15224
  let e = 0;
@@ -15232,7 +15250,7 @@ class Ie {
15232
15250
  }
15233
15251
  }
15234
15252
  Ie.empty = new Ie(U.empty, 0);
15235
- function ay(n, e) {
15253
+ function cy(n, e) {
15236
15254
  let t;
15237
15255
  return n.forEach((r, i) => {
15238
15256
  if (r.selection && e-- == 0)
@@ -15256,23 +15274,23 @@ class ot {
15256
15274
  this.done = e, this.undone = t, this.prevRanges = r, this.prevTime = i, this.prevComposition = s;
15257
15275
  }
15258
15276
  }
15259
- const cy = 20;
15260
- function uy(n, e, t, r) {
15277
+ const uy = 20;
15278
+ function dy(n, e, t, r) {
15261
15279
  let i = t.getMeta(Lt), s;
15262
15280
  if (i)
15263
15281
  return i.historyState;
15264
- t.getMeta(py) && (n = new ot(n.done, n.undone, null, 0, -1));
15282
+ t.getMeta(hy) && (n = new ot(n.done, n.undone, null, 0, -1));
15265
15283
  let o = t.getMeta("appendedTransaction");
15266
15284
  if (t.steps.length == 0)
15267
15285
  return n;
15268
15286
  if (o && o.getMeta(Lt))
15269
15287
  return o.getMeta(Lt).redo ? new ot(n.done.addTransform(t, void 0, r, Er(e)), n.undone, vl(t.mapping.maps), n.prevTime, n.prevComposition) : new ot(n.done, n.undone.addTransform(t, void 0, r, Er(e)), null, n.prevTime, n.prevComposition);
15270
15288
  if (t.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
15271
- 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 ? Ei(n.prevRanges, t.mapping) : vl(t.mapping.maps);
15289
+ let l = t.getMeta("composition"), a = n.prevTime == 0 || !o && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !fy(t, n.prevRanges)), c = o ? Ei(n.prevRanges, t.mapping) : vl(t.mapping.maps);
15272
15290
  return new ot(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, Er(e)), Ie.empty, c, t.time, l ?? n.prevComposition);
15273
15291
  } else return (s = t.getMeta("rebased")) ? new ot(n.done.rebased(t, s), n.undone.rebased(t, s), Ei(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new ot(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), Ei(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
15274
15292
  }
15275
- function dy(n, e) {
15293
+ function fy(n, e) {
15276
15294
  if (!e)
15277
15295
  return !1;
15278
15296
  if (!n.docChanged)
@@ -15299,7 +15317,7 @@ function Ei(n, e) {
15299
15317
  }
15300
15318
  return t;
15301
15319
  }
15302
- function fy(n, e, t) {
15320
+ function py(n, e, t) {
15303
15321
  let r = Er(e), i = Lt.get(e).spec.config, s = (t ? n.undone : n.done).popEvent(e, r);
15304
15322
  if (!s)
15305
15323
  return null;
@@ -15319,8 +15337,8 @@ function Er(n) {
15319
15337
  }
15320
15338
  return Ai;
15321
15339
  }
15322
- const Lt = new Ne("history"), py = new Ne("closeHistory");
15323
- function hy(n = {}) {
15340
+ const Lt = new Ne("history"), hy = new Ne("closeHistory");
15341
+ function my(n = {}) {
15324
15342
  return n = {
15325
15343
  depth: n.depth || 100,
15326
15344
  newGroupDelay: n.newGroupDelay || 500
@@ -15331,7 +15349,7 @@ function hy(n = {}) {
15331
15349
  return new ot(Ie.empty, Ie.empty, null, 0, -1);
15332
15350
  },
15333
15351
  apply(e, t, r) {
15334
- return uy(t, r, e, n);
15352
+ return dy(t, r, e, n);
15335
15353
  }
15336
15354
  },
15337
15355
  config: n,
@@ -15351,13 +15369,13 @@ function Dc(n, e) {
15351
15369
  if (!i || (n ? i.undone : i.done).eventCount == 0)
15352
15370
  return !1;
15353
15371
  if (r) {
15354
- let s = fy(i, t, n);
15372
+ let s = py(i, t, n);
15355
15373
  s && r(e ? s.scrollIntoView() : s);
15356
15374
  }
15357
15375
  return !0;
15358
15376
  };
15359
15377
  }
15360
- const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15378
+ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), gy = ee.create({
15361
15379
  name: "history",
15362
15380
  addOptions() {
15363
15381
  return {
@@ -15373,7 +15391,7 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15373
15391
  },
15374
15392
  addProseMirrorPlugins() {
15375
15393
  return [
15376
- hy(this.options)
15394
+ my(this.options)
15377
15395
  ];
15378
15396
  },
15379
15397
  addKeyboardShortcuts() {
@@ -15386,7 +15404,7 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15386
15404
  "Shift-Mod-я": () => this.editor.commands.redo()
15387
15405
  };
15388
15406
  }
15389
- }), gy = me.create({
15407
+ }), yy = me.create({
15390
15408
  name: "horizontalRule",
15391
15409
  addOptions() {
15392
15410
  return {
@@ -15403,6 +15421,8 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15403
15421
  addCommands() {
15404
15422
  return {
15405
15423
  setHorizontalRule: () => ({ chain: n, state: e }) => {
15424
+ if (!Jh(e, e.schema.nodes[this.name]))
15425
+ return !1;
15406
15426
  const { selection: t } = e, { $from: r, $to: i } = t, s = n();
15407
15427
  return r.parentOffset === 0 ? s.insertContentAt({
15408
15428
  from: Math.max(r.pos - 1, 0),
@@ -15436,7 +15456,7 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15436
15456
  })
15437
15457
  ];
15438
15458
  }
15439
- }), yy = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, by = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, vy = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, ky = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, xy = yt.create({
15459
+ }), by = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, vy = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, ky = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, xy = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, wy = yt.create({
15440
15460
  name: "italic",
15441
15461
  addOptions() {
15442
15462
  return {
@@ -15480,11 +15500,11 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15480
15500
  addInputRules() {
15481
15501
  return [
15482
15502
  cn({
15483
- find: yy,
15503
+ find: by,
15484
15504
  type: this.type
15485
15505
  }),
15486
15506
  cn({
15487
- find: vy,
15507
+ find: ky,
15488
15508
  type: this.type
15489
15509
  })
15490
15510
  ];
@@ -15492,16 +15512,16 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15492
15512
  addPasteRules() {
15493
15513
  return [
15494
15514
  un({
15495
- find: by,
15515
+ find: vy,
15496
15516
  type: this.type
15497
15517
  }),
15498
15518
  un({
15499
- find: ky,
15519
+ find: xy,
15500
15520
  type: this.type
15501
15521
  })
15502
15522
  ];
15503
15523
  }
15504
- }), wy = me.create({
15524
+ }), Sy = me.create({
15505
15525
  name: "listItem",
15506
15526
  addOptions() {
15507
15527
  return {
@@ -15529,7 +15549,7 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15529
15549
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
15530
15550
  };
15531
15551
  }
15532
- }), Sy = "listItem", xl = "textStyle", wl = /^(\d+)\.\s$/, My = me.create({
15552
+ }), My = "listItem", xl = "textStyle", wl = /^(\d+)\.\s$/, Cy = me.create({
15533
15553
  name: "orderedList",
15534
15554
  addOptions() {
15535
15555
  return {
@@ -15568,7 +15588,7 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15568
15588
  },
15569
15589
  addCommands() {
15570
15590
  return {
15571
- 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)
15591
+ toggleOrderedList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(My, this.editor.getAttributes(xl)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
15572
15592
  };
15573
15593
  },
15574
15594
  addKeyboardShortcuts() {
@@ -15595,7 +15615,7 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15595
15615
  n
15596
15616
  ];
15597
15617
  }
15598
- }), Cy = me.create({
15618
+ }), Oy = me.create({
15599
15619
  name: "paragraph",
15600
15620
  priority: 1e3,
15601
15621
  addOptions() {
@@ -15623,7 +15643,7 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15623
15643
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
15624
15644
  };
15625
15645
  }
15626
- }), Oy = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Ty = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, Ey = yt.create({
15646
+ }), Ty = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Ey = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, Ay = yt.create({
15627
15647
  name: "strike",
15628
15648
  addOptions() {
15629
15649
  return {
@@ -15666,7 +15686,7 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15666
15686
  addInputRules() {
15667
15687
  return [
15668
15688
  cn({
15669
- find: Oy,
15689
+ find: Ty,
15670
15690
  type: this.type
15671
15691
  })
15672
15692
  ];
@@ -15674,30 +15694,30 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15674
15694
  addPasteRules() {
15675
15695
  return [
15676
15696
  un({
15677
- find: Ty,
15697
+ find: Ey,
15678
15698
  type: this.type
15679
15699
  })
15680
15700
  ];
15681
15701
  }
15682
- }), Ay = me.create({
15702
+ }), Ny = me.create({
15683
15703
  name: "text",
15684
15704
  group: "inline"
15685
- }), Ny = ee.create({
15705
+ }), Dy = ee.create({
15686
15706
  name: "starterKit",
15687
15707
  addExtensions() {
15688
15708
  const n = [];
15689
- 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;
15709
+ return this.options.bold !== !1 && n.push(Fg.configure(this.options.bold)), this.options.blockquote !== !1 && n.push(Rg.configure(this.options.blockquote)), this.options.bulletList !== !1 && n.push($g.configure(this.options.bulletList)), this.options.code !== !1 && n.push(Wg.configure(this.options.code)), this.options.codeBlock !== !1 && n.push(_g.configure(this.options.codeBlock)), this.options.document !== !1 && n.push(Jg.configure(this.options.document)), this.options.dropcursor !== !1 && n.push(Yg.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && n.push(iy.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && n.push(sy.configure(this.options.hardBreak)), this.options.heading !== !1 && n.push(oy.configure(this.options.heading)), this.options.history !== !1 && n.push(gy.configure(this.options.history)), this.options.horizontalRule !== !1 && n.push(yy.configure(this.options.horizontalRule)), this.options.italic !== !1 && n.push(wy.configure(this.options.italic)), this.options.listItem !== !1 && n.push(Sy.configure(this.options.listItem)), this.options.orderedList !== !1 && n.push(Cy.configure(this.options.orderedList)), this.options.paragraph !== !1 && n.push(Oy.configure(this.options.paragraph)), this.options.strike !== !1 && n.push(Ay.configure(this.options.strike)), this.options.text !== !1 && n.push(Ny.configure(this.options.text)), n;
15690
15710
  }
15691
- }), Dy = ["onClick"], Iy = /* @__PURE__ */ mn({
15711
+ }), Iy = ["onClick"], Ry = /* @__PURE__ */ mn({
15692
15712
  __name: "UiEditor",
15693
15713
  props: {
15694
15714
  modelValue: {}
15695
15715
  },
15696
15716
  emits: ["update:modelValue"],
15697
15717
  setup(n, { emit: e }) {
15698
- const t = n, r = e, i = _c(() => t.modelValue), s = Ng({
15718
+ const t = n, r = e, i = _c(() => t.modelValue), s = Dg({
15699
15719
  content: i.value,
15700
- extensions: [Ny],
15720
+ extensions: [Dy],
15701
15721
  onUpdate: () => {
15702
15722
  r("update:modelValue", s.value?.getHTML());
15703
15723
  }
@@ -15725,22 +15745,22 @@ const Ic = Dc(!1, !0), Rc = Dc(!0, !0), my = ee.create({
15725
15745
  onClick: (u) => c.method(),
15726
15746
  class: pr(l.$style.action),
15727
15747
  type: "button"
15728
- }, Xc(c.name), 11, Dy)), 64))
15748
+ }, Xc(c.name), 11, Iy)), 64))
15729
15749
  ], 2),
15730
- Uc(Ni(Ag), {
15750
+ Uc(Ni(Ng), {
15731
15751
  editor: Ni(s),
15732
15752
  class: pr(l.$style.editor)
15733
15753
  }, null, 8, ["editor", "class"])
15734
15754
  ], 2));
15735
15755
  }
15736
- }), Ry = "_container_1jv52_1", Py = "_actions_1jv52_18", By = "_action_1jv52_18", Ly = "_editor_1jv52_41", zy = {
15737
- container: Ry,
15738
- actions: Py,
15739
- action: By,
15740
- editor: Ly
15741
- }, Fy = {
15742
- $style: zy
15743
- }, jy = /* @__PURE__ */ Zc(Iy, [["__cssModules", Fy]]);
15756
+ }), Py = "_container_1jv52_1", By = "_actions_1jv52_18", Ly = "_action_1jv52_18", zy = "_editor_1jv52_41", Fy = {
15757
+ container: Py,
15758
+ actions: By,
15759
+ action: Ly,
15760
+ editor: zy
15761
+ }, Vy = {
15762
+ $style: Fy
15763
+ }, Wy = /* @__PURE__ */ Zc(Ry, [["__cssModules", Vy]]);
15744
15764
  export {
15745
- jy as default
15765
+ Wy as default
15746
15766
  };