@samhammer/tiptob 2.3.26 → 2.3.28

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.
@@ -669,7 +669,7 @@ function tt(n, e) {
669
669
  let t = e.length - 1;
670
670
  t >= 0 && n.isText && n.sameMarkup(e[t]) ? e[t] = n.withText(e[t].text + n.text) : e.push(n);
671
671
  }
672
- function Lt(n, e, t, r) {
672
+ function Ft(n, e, t, r) {
673
673
  let i = (e || n).node(t), o = 0, s = e ? e.index(t) : i.childCount;
674
674
  n && (o = n.index(t), n.depth > t ? o++ : n.textOffset && (tt(n.nodeAfter, r), o++));
675
675
  for (let a = o; a < s; a++)
@@ -681,15 +681,15 @@ function nt(n, e) {
681
681
  }
682
682
  function wo(n, e, t, r, i) {
683
683
  let o = n.depth > i && br(n, e, i + 1), s = r.depth > i && br(t, r, i + 1), a = [];
684
- return Lt(null, n, i, a), o && s && e.index(i) == t.index(i) ? (ko(o, s), tt(nt(o, wo(n, e, t, r, i + 1)), a)) : (o && tt(nt(o, Bn(n, e, i + 1)), a), Lt(e, t, i, a), s && tt(nt(s, Bn(t, r, i + 1)), a)), Lt(r, null, i, a), new k(a);
684
+ return Ft(null, n, i, a), o && s && e.index(i) == t.index(i) ? (ko(o, s), tt(nt(o, wo(n, e, t, r, i + 1)), a)) : (o && tt(nt(o, Bn(n, e, i + 1)), a), Ft(e, t, i, a), s && tt(nt(s, Bn(t, r, i + 1)), a)), Ft(r, null, i, a), new k(a);
685
685
  }
686
686
  function Bn(n, e, t) {
687
687
  let r = [];
688
- if (Lt(null, n, t, r), n.depth > t) {
688
+ if (Ft(null, n, t, r), n.depth > t) {
689
689
  let i = br(n, e, t + 1);
690
690
  tt(nt(i, Bn(n, e, t + 1)), r);
691
691
  }
692
- return Lt(e, null, t, r), new k(r);
692
+ return Ft(e, null, t, r), new k(r);
693
693
  }
694
694
  function ua(n, e) {
695
695
  let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
@@ -1364,7 +1364,7 @@ let rt = class xr {
1364
1364
  }
1365
1365
  };
1366
1366
  rt.prototype.text = void 0;
1367
- class Fn extends rt {
1367
+ class Ln extends rt {
1368
1368
  /**
1369
1369
  @internal
1370
1370
  */
@@ -1386,10 +1386,10 @@ class Fn extends rt {
1386
1386
  return this.text.length;
1387
1387
  }
1388
1388
  mark(e) {
1389
- return e == this.marks ? this : new Fn(this.type, this.attrs, this.text, e);
1389
+ return e == this.marks ? this : new Ln(this.type, this.attrs, this.text, e);
1390
1390
  }
1391
1391
  withText(e) {
1392
- return e == this.text ? this : new Fn(this.type, this.attrs, e, this.marks);
1392
+ return e == this.text ? this : new Ln(this.type, this.attrs, e, this.marks);
1393
1393
  }
1394
1394
  cut(e = 0, t = this.text.length) {
1395
1395
  return e == 0 && t == this.text.length ? this : this.withText(this.text.slice(e, t));
@@ -2092,7 +2092,7 @@ class Oa {
2092
2092
  */
2093
2093
  text(e, t) {
2094
2094
  let r = this.nodes.text;
2095
- return new Fn(r, r.defaultAttrs, e, z.setFrom(t));
2095
+ return new Ln(r, r.defaultAttrs, e, z.setFrom(t));
2096
2096
  }
2097
2097
  /**
2098
2098
  Create a mark with the given type and attributes.
@@ -2825,7 +2825,7 @@ function wi(n) {
2825
2825
  function Pa(n) {
2826
2826
  return (n - (n & Ro)) / Po;
2827
2827
  }
2828
- const Bo = 1, zo = 2, Nn = 4, Fo = 8;
2828
+ const Bo = 1, zo = 2, Nn = 4, Lo = 8;
2829
2829
  class Si {
2830
2830
  /**
2831
2831
  @internal
@@ -2839,7 +2839,7 @@ class Si {
2839
2839
  argument from the document.
2840
2840
  */
2841
2841
  get deleted() {
2842
- return (this.delInfo & Fo) > 0;
2842
+ return (this.delInfo & Lo) > 0;
2843
2843
  }
2844
2844
  /**
2845
2845
  Tells you whether the token before the mapped position was deleted.
@@ -2903,7 +2903,7 @@ class se {
2903
2903
  if (r)
2904
2904
  return d;
2905
2905
  let g = e == (t < 0 ? l : f) ? null : Ra(a / 3, e - l), m = e == l ? zo : e == f ? Bo : Nn;
2906
- return (t < 0 ? e != l : e != f) && (m |= Fo), new Si(d, m, g);
2906
+ return (t < 0 ? e != l : e != f) && (m |= Lo), new Si(d, m, g);
2907
2907
  }
2908
2908
  i += u - c;
2909
2909
  }
@@ -3338,8 +3338,8 @@ function At(n) {
3338
3338
  }
3339
3339
  return null;
3340
3340
  }
3341
- function Lo(n, e, t = null, r = n) {
3342
- let i = za(n, e), o = i && Fa(r, e);
3341
+ function Fo(n, e, t = null, r = n) {
3342
+ let i = za(n, e), o = i && La(r, e);
3343
3343
  return o ? i.map(Ci).concat({ type: e, attrs: t }).concat(o.map(Ci)) : null;
3344
3344
  }
3345
3345
  function Ci(n) {
@@ -3352,7 +3352,7 @@ function za(n, e) {
3352
3352
  let s = o.length ? o[0] : e;
3353
3353
  return t.canReplaceWith(r, i, s) ? o : null;
3354
3354
  }
3355
- function Fa(n, e) {
3355
+ function La(n, e) {
3356
3356
  let { parent: t, startIndex: r, endIndex: i } = n, o = t.child(r), s = e.contentMatch.findWrapping(o.type);
3357
3357
  if (!s)
3358
3358
  return null;
@@ -3382,7 +3382,7 @@ function ut(n, e) {
3382
3382
  let t = n.resolve(e), r = t.index();
3383
3383
  return $o(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
3384
3384
  }
3385
- function La(n, e) {
3385
+ function Fa(n, e) {
3386
3386
  e.content.size || n.type.compatibleContent(e.type);
3387
3387
  let t = n.contentMatchAt(n.childCount), { linebreakReplacement: r } = n.type.schema;
3388
3388
  for (let i = 0; i < e.childCount; i++) {
@@ -3393,7 +3393,7 @@ function La(n, e) {
3393
3393
  return t.validEnd;
3394
3394
  }
3395
3395
  function $o(n, e) {
3396
- return !!(n && e && !n.isLeaf && La(n, e));
3396
+ return !!(n && e && !n.isLeaf && Fa(n, e));
3397
3397
  }
3398
3398
  function Yn(n, e, t = -1) {
3399
3399
  let r = n.resolve(e);
@@ -3427,7 +3427,7 @@ function $a(n, e, t) {
3427
3427
  }
3428
3428
  return null;
3429
3429
  }
3430
- function Fr(n, e, t = e, r = S.empty) {
3430
+ function Lr(n, e, t = e, r = S.empty) {
3431
3431
  if (e == t && !r.size)
3432
3432
  return null;
3433
3433
  let i = n.resolve(e), o = n.resolve(t);
@@ -3530,7 +3530,7 @@ class ja {
3530
3530
  c++, (c > 1 || l == 0 || m.content.size) && (f = y, u.push(Vo(m.mark(p.allowedMarks(m.marks)), c == 1 ? l : 0, c == a.childCount ? d : -1)));
3531
3531
  }
3532
3532
  let g = c == a.childCount;
3533
- g || (d = -1), this.placed = Ft(this.placed, t, k.from(u)), this.frontier[t].match = f, g && d < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
3533
+ g || (d = -1), this.placed = Lt(this.placed, t, k.from(u)), this.frontier[t].match = f, g && d < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
3534
3534
  for (let m = 0, y = a; m < d; m++) {
3535
3535
  let b = y.lastChild;
3536
3536
  this.frontier.push({ type: b.type, match: b.contentMatchAt(b.childCount) }), y = b.content;
@@ -3567,7 +3567,7 @@ class ja {
3567
3567
  return null;
3568
3568
  for (; this.depth > t.depth; )
3569
3569
  this.closeFrontierNode();
3570
- t.fit.childCount && (this.placed = Ft(this.placed, t.depth, t.fit)), e = t.move;
3570
+ t.fit.childCount && (this.placed = Lt(this.placed, t.depth, t.fit)), e = t.move;
3571
3571
  for (let r = t.depth + 1; r <= e.depth; r++) {
3572
3572
  let i = e.node(r), o = i.type.contentMatch.fillBefore(i.content, !0, e.index(r));
3573
3573
  this.openFrontierNode(i.type, i.attrs, o);
@@ -3576,18 +3576,18 @@ class ja {
3576
3576
  }
3577
3577
  openFrontierNode(e, t = null, r) {
3578
3578
  let i = this.frontier[this.depth];
3579
- i.match = i.match.matchType(e), this.placed = Ft(this.placed, this.depth, k.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
3579
+ i.match = i.match.matchType(e), this.placed = Lt(this.placed, this.depth, k.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
3580
3580
  }
3581
3581
  closeFrontierNode() {
3582
3582
  let t = this.frontier.pop().match.fillBefore(k.empty, !0);
3583
- t.childCount && (this.placed = Ft(this.placed, this.frontier.length, t));
3583
+ t.childCount && (this.placed = Lt(this.placed, this.frontier.length, t));
3584
3584
  }
3585
3585
  }
3586
3586
  function zt(n, e, t) {
3587
3587
  return e == 0 ? n.cutByIndex(t, n.childCount) : n.replaceChild(0, n.firstChild.copy(zt(n.firstChild.content, e - 1, t)));
3588
3588
  }
3589
- function Ft(n, e, t) {
3590
- return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(Ft(n.lastChild.content, e - 1, t)));
3589
+ function Lt(n, e, t) {
3590
+ return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(Lt(n.lastChild.content, e - 1, t)));
3591
3591
  }
3592
3592
  function sr(n, e) {
3593
3593
  for (let t = 0; t < e; t++)
@@ -3605,9 +3605,9 @@ function ar(n, e, t, r, i) {
3605
3605
  if (s == o.childCount && !t.compatibleContent(o.type))
3606
3606
  return null;
3607
3607
  let a = r.fillBefore(o.content, !0, s);
3608
- return a && !Ha(t, o.content, s) ? a : null;
3608
+ return a && !Wa(t, o.content, s) ? a : null;
3609
3609
  }
3610
- function Ha(n, e, t) {
3610
+ function Wa(n, e, t) {
3611
3611
  for (let r = t; r < e.childCount; r++)
3612
3612
  if (!n.allowsMarks(e.child(r).marks))
3613
3613
  return !0;
@@ -3651,7 +3651,7 @@ class Vt extends Y {
3651
3651
  }
3652
3652
  }
3653
3653
  Y.jsonID("attr", Vt);
3654
- class Ln extends Y {
3654
+ class Fn extends Y {
3655
3655
  /**
3656
3656
  Construct an attribute step.
3657
3657
  */
@@ -3670,7 +3670,7 @@ class Ln extends Y {
3670
3670
  return se.empty;
3671
3671
  }
3672
3672
  invert(e) {
3673
- return new Ln(this.attr, e.attrs[this.attr]);
3673
+ return new Fn(this.attr, e.attrs[this.attr]);
3674
3674
  }
3675
3675
  map(e) {
3676
3676
  return this;
@@ -3681,10 +3681,10 @@ class Ln extends Y {
3681
3681
  static fromJSON(e, t) {
3682
3682
  if (typeof t.attr != "string")
3683
3683
  throw new RangeError("Invalid input for DocAttrStep.fromJSON");
3684
- return new Ln(t.attr, t.value);
3684
+ return new Fn(t.attr, t.value);
3685
3685
  }
3686
3686
  }
3687
- Y.jsonID("docAttr", Ln);
3687
+ Y.jsonID("docAttr", Fn);
3688
3688
  let Gt = class extends Error {
3689
3689
  };
3690
3690
  Gt = function n(e) {
@@ -3702,7 +3702,7 @@ class D {
3702
3702
  `$head`.
3703
3703
  */
3704
3704
  constructor(e, t, r) {
3705
- this.$anchor = e, this.$head = t, this.ranges = r || [new Wa(e.min(t), e.max(t))];
3705
+ this.$anchor = e, this.$head = t, this.ranges = r || [new Ha(e.min(t), e.max(t))];
3706
3706
  }
3707
3707
  /**
3708
3708
  The selection's anchor, as an unresolved position.
@@ -3860,7 +3860,7 @@ class D {
3860
3860
  }
3861
3861
  }
3862
3862
  D.prototype.visible = !0;
3863
- class Wa {
3863
+ class Ha {
3864
3864
  /**
3865
3865
  Create a range.
3866
3866
  */
@@ -3978,7 +3978,7 @@ class O extends D {
3978
3978
  return { type: "node", anchor: this.anchor };
3979
3979
  }
3980
3980
  getBookmark() {
3981
- return new Lr(this.anchor);
3981
+ return new Fr(this.anchor);
3982
3982
  }
3983
3983
  /**
3984
3984
  @internal
@@ -4004,13 +4004,13 @@ class O extends D {
4004
4004
  }
4005
4005
  O.prototype.visible = !1;
4006
4006
  D.jsonID("node", O);
4007
- class Lr {
4007
+ class Fr {
4008
4008
  constructor(e) {
4009
4009
  this.anchor = e;
4010
4010
  }
4011
4011
  map(e) {
4012
4012
  let { deleted: t, pos: r } = e.mapResult(this.anchor);
4013
- return t ? new Xn(r, r) : new Lr(r);
4013
+ return t ? new Xn(r, r) : new Fr(r);
4014
4014
  }
4015
4015
  resolve(e) {
4016
4016
  let t = e.resolve(this.anchor), r = t.nodeAfter;
@@ -4138,7 +4138,7 @@ class be {
4138
4138
  Create a plugin.
4139
4139
  */
4140
4140
  constructor(e) {
4141
- this.spec = e, this.props = {}, e.props && jo(e.props, this, this.props), this.key = e.key ? e.key.key : Ho("plugin");
4141
+ this.spec = e, this.props = {}, e.props && jo(e.props, this, this.props), this.key = e.key ? e.key.key : Wo("plugin");
4142
4142
  }
4143
4143
  /**
4144
4144
  Extract the plugin's state field from an editor state.
@@ -4148,7 +4148,7 @@ class be {
4148
4148
  }
4149
4149
  }
4150
4150
  const cr = /* @__PURE__ */ Object.create(null);
4151
- function Ho(n) {
4151
+ function Wo(n) {
4152
4152
  return n in cr ? n + "$" + ++cr[n] : (cr[n] = 0, n + "$");
4153
4153
  }
4154
4154
  class ge {
@@ -4156,7 +4156,7 @@ class ge {
4156
4156
  Create a plugin key.
4157
4157
  */
4158
4158
  constructor(e = "key") {
4159
- this.key = Ho(e);
4159
+ this.key = Wo(e);
4160
4160
  }
4161
4161
  /**
4162
4162
  Get the active plugin with this key, if any, from an editor
@@ -4176,7 +4176,7 @@ const ft = function(n) {
4176
4176
  for (var e = 0; ; e++)
4177
4177
  if (n = n.previousSibling, !n)
4178
4178
  return e;
4179
- }, Wo = function(n, e, t, r) {
4179
+ }, Ho = function(n, e, t, r) {
4180
4180
  return t && (Ai(n, e, t, r, -1) || Ai(n, e, t, r, 1));
4181
4181
  }, qa = /^(img|br|input|textarea|hr)$/i;
4182
4182
  function Ai(n, e, t, r, i) {
@@ -4221,7 +4221,7 @@ function $r(n) {
4221
4221
  return e && e.node && e.node.isBlock && (e.dom == n || e.contentDOM == n);
4222
4222
  }
4223
4223
  const Jo = function(n) {
4224
- return n.focusNode && Wo(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
4224
+ return n.focusNode && Ho(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
4225
4225
  };
4226
4226
  function qo(n, e) {
4227
4227
  let t = document.createEvent("Event");
@@ -4229,7 +4229,7 @@ function qo(n, e) {
4229
4229
  }
4230
4230
  const Ee = typeof navigator < "u" ? navigator : null, Ni = typeof document < "u" ? document : null, je = Ee && Ee.userAgent || "", Sr = /Edge\/(\d+)/.exec(je), Ko = /MSIE \d/.exec(je), Cr = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(je), on = !!(Ko || Cr || Sr), Uo = Ko ? document.documentMode : Cr ? +Cr[1] : Sr ? +Sr[1] : 0, Qn = !on && /gecko\/(\d+)/i.test(je);
4231
4231
  Qn && +(/Firefox\/(\d+)/.exec(je) || [0, 0])[1];
4232
- const Or = !on && /Chrome\/(\d+)/.exec(je), He = !!Or, Go = Or ? +Or[1] : 0, dt = !on && !!Ee && /Apple Computer/.test(Ee.vendor), Vr = dt && (/Mobile\/\w+/.test(je) || !!Ee && Ee.maxTouchPoints > 2), de = Vr || (Ee ? /Mac/.test(Ee.platform) : !1), Ua = Ee ? /Win/.test(Ee.platform) : !1, sn = /Android \d/.test(je), jr = !!Ni && "webkitFontSmoothing" in Ni.documentElement.style, Ga = jr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
4232
+ const Or = !on && /Chrome\/(\d+)/.exec(je), We = !!Or, Go = Or ? +Or[1] : 0, dt = !on && !!Ee && /Apple Computer/.test(Ee.vendor), Vr = dt && (/Mobile\/\w+/.test(je) || !!Ee && Ee.maxTouchPoints > 2), de = Vr || (Ee ? /Mac/.test(Ee.platform) : !1), Ua = Ee ? /Win/.test(Ee.platform) : !1, sn = /Android \d/.test(je), jr = !!Ni && "webkitFontSmoothing" in Ni.documentElement.style, Ga = jr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
4233
4233
  function Ya(n, e = null) {
4234
4234
  let t = n.domSelectionRange(), r = n.state.doc;
4235
4235
  if (!t.focusNode)
@@ -4271,12 +4271,12 @@ function Ya(n, e = null) {
4271
4271
  function Yo(n) {
4272
4272
  return n.editable ? n.hasFocus() : _a(n) && document.activeElement && document.activeElement.contains(n.dom);
4273
4273
  }
4274
- function Hr(n, e = !1) {
4274
+ function Wr(n, e = !1) {
4275
4275
  let t = n.state.selection;
4276
4276
  if (Za(n, t), !!Yo(n)) {
4277
- if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && He) {
4277
+ if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && We) {
4278
4278
  let r = n.domSelectionRange(), i = n.domObserver.currentSelection;
4279
- if (r.anchorNode && i.anchorNode && Wo(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
4279
+ if (r.anchorNode && i.anchorNode && Ho(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
4280
4280
  n.input.mouseDown.delayedSelectionSync = !0, n.domObserver.setCurSelection();
4281
4281
  return;
4282
4282
  }
@@ -4290,7 +4290,7 @@ function Hr(n, e = !1) {
4290
4290
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
4291
4291
  }
4292
4292
  }
4293
- const Ii = dt || He && Go < 63;
4293
+ const Ii = dt || We && Go < 63;
4294
4294
  function Di(n, e) {
4295
4295
  let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, o = r ? t.childNodes[r - 1] : null;
4296
4296
  if (dt && i && i.contentEditable == "false")
@@ -4352,7 +4352,7 @@ function Er(n, e) {
4352
4352
  let { $anchor: t, $head: r } = n.selection, i = e > 0 ? t.max(r) : t.min(r), o = i.parent.inlineContent ? i.depth ? n.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
4353
4353
  return o && D.findFrom(o, e);
4354
4354
  }
4355
- function Le(n, e) {
4355
+ function Fe(n, e) {
4356
4356
  return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()), !0;
4357
4357
  }
4358
4358
  function Bi(n, e, t) {
@@ -4363,25 +4363,25 @@ function Bi(n, e, t) {
4363
4363
  if (!o || o.isText || !o.isLeaf)
4364
4364
  return !1;
4365
4365
  let s = n.state.doc.resolve(i.pos + o.nodeSize * (e < 0 ? -1 : 1));
4366
- return Le(n, new A(r.$anchor, s));
4366
+ return Fe(n, new A(r.$anchor, s));
4367
4367
  } else if (r.empty) {
4368
4368
  if (n.endOfTextblock(e > 0 ? "forward" : "backward")) {
4369
4369
  let i = Er(n.state, e);
4370
- return i && i instanceof O ? Le(n, i) : !1;
4370
+ return i && i instanceof O ? Fe(n, i) : !1;
4371
4371
  } else if (!(de && t.indexOf("m") > -1)) {
4372
4372
  let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, s;
4373
4373
  if (!o || o.isText)
4374
4374
  return !1;
4375
4375
  let a = e < 0 ? i.pos - o.nodeSize : i.pos;
4376
- return o.isAtom || (s = n.docView.descAt(a)) && !s.contentDOM ? O.isSelectable(o) ? Le(n, new O(e < 0 ? n.state.doc.resolve(i.pos - o.nodeSize) : i)) : jr ? Le(n, new A(n.state.doc.resolve(e < 0 ? a : a + o.nodeSize))) : !1 : !1;
4376
+ return o.isAtom || (s = n.docView.descAt(a)) && !s.contentDOM ? O.isSelectable(o) ? Fe(n, new O(e < 0 ? n.state.doc.resolve(i.pos - o.nodeSize) : i)) : jr ? Fe(n, new A(n.state.doc.resolve(e < 0 ? a : a + o.nodeSize))) : !1 : !1;
4377
4377
  }
4378
4378
  } else return !1;
4379
4379
  else {
4380
4380
  if (r instanceof O && r.node.isInline)
4381
- return Le(n, new A(e > 0 ? r.$to : r.$from));
4381
+ return Fe(n, new A(e > 0 ? r.$to : r.$from));
4382
4382
  {
4383
4383
  let i = Er(n.state, e);
4384
- return i ? Le(n, i) : !1;
4384
+ return i ? Fe(n, i) : !1;
4385
4385
  }
4386
4386
  }
4387
4387
  }
@@ -4506,12 +4506,12 @@ function Tr(n, e, t) {
4506
4506
  n.domObserver.setCurSelection();
4507
4507
  let { state: i } = n;
4508
4508
  setTimeout(() => {
4509
- n.state == i && Hr(n);
4509
+ n.state == i && Wr(n);
4510
4510
  }, 50);
4511
4511
  }
4512
4512
  function zi(n, e) {
4513
4513
  let t = n.state.doc.resolve(e);
4514
- if (!(He || Ua) && t.parent.inlineContent) {
4514
+ if (!(We || Ua) && t.parent.inlineContent) {
4515
4515
  let i = n.coordsAtPos(e);
4516
4516
  if (e > t.start()) {
4517
4517
  let o = n.coordsAtPos(e - 1), s = (o.top + o.bottom) / 2;
@@ -4526,7 +4526,7 @@ function zi(n, e) {
4526
4526
  }
4527
4527
  return getComputedStyle(n.dom).direction == "rtl" ? "rtl" : "ltr";
4528
4528
  }
4529
- function Fi(n, e, t) {
4529
+ function Li(n, e, t) {
4530
4530
  let r = n.state.selection;
4531
4531
  if (r instanceof A && !r.empty || t.indexOf("s") > -1 || de && t.indexOf("m") > -1)
4532
4532
  return !1;
@@ -4534,15 +4534,15 @@ function Fi(n, e, t) {
4534
4534
  if (!i.parent.inlineContent || n.endOfTextblock(e < 0 ? "up" : "down")) {
4535
4535
  let s = Er(n.state, e);
4536
4536
  if (s && s instanceof O)
4537
- return Le(n, s);
4537
+ return Fe(n, s);
4538
4538
  }
4539
4539
  if (!i.parent.inlineContent) {
4540
4540
  let s = e < 0 ? i : o, a = r instanceof le ? D.near(s, e) : D.findFrom(s, e);
4541
- return a ? Le(n, a) : !1;
4541
+ return a ? Fe(n, a) : !1;
4542
4542
  }
4543
4543
  return !1;
4544
4544
  }
4545
- function Li(n, e) {
4545
+ function Fi(n, e) {
4546
4546
  if (!(n.state.selection instanceof A))
4547
4547
  return !0;
4548
4548
  let { $head: t, $anchor: r, empty: i } = n.state.selection;
@@ -4579,9 +4579,9 @@ function ol(n) {
4579
4579
  function sl(n, e) {
4580
4580
  let t = e.keyCode, r = ol(e);
4581
4581
  if (t == 8 || de && t == 72 && r == "c")
4582
- return Li(n, -1) || vt(n, -1);
4582
+ return Fi(n, -1) || vt(n, -1);
4583
4583
  if (t == 46 && !e.shiftKey || de && t == 68 && r == "c")
4584
- return Li(n, 1) || vt(n, 1);
4584
+ return Fi(n, 1) || vt(n, 1);
4585
4585
  if (t == 13 || t == 27)
4586
4586
  return !0;
4587
4587
  if (t == 37 || de && t == 66 && r == "c") {
@@ -4592,9 +4592,9 @@ function sl(n, e) {
4592
4592
  return Bi(n, i, r) || vt(n, i);
4593
4593
  } else {
4594
4594
  if (t == 38 || de && t == 80 && r == "c")
4595
- return Fi(n, -1, r) || vt(n, -1);
4595
+ return Li(n, -1, r) || vt(n, -1);
4596
4596
  if (t == 40 || de && t == 78 && r == "c")
4597
- return il(n) || Fi(n, 1, r) || vt(n, 1);
4597
+ return il(n) || Li(n, 1, r) || vt(n, 1);
4598
4598
  if (r == (de ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
4599
4599
  return !0;
4600
4600
  }
@@ -4766,7 +4766,7 @@ function ul(n) {
4766
4766
  return t;
4767
4767
  }
4768
4768
  function fl(n) {
4769
- let e = n.querySelectorAll(He ? "span:not([class]):not([style])" : "span.Apple-converted-space");
4769
+ let e = n.querySelectorAll(We ? "span:not([class]):not([style])" : "span.Apple-converted-space");
4770
4770
  for (let t = 0; t < e.length; t++) {
4771
4771
  let r = e[t];
4772
4772
  r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(n.ownerDocument.createTextNode(" "), r);
@@ -4796,7 +4796,7 @@ function $e(n, e) {
4796
4796
  }
4797
4797
  ce.keydown = (n, e) => {
4798
4798
  let t = e;
4799
- if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !as(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(sn && He && t.keyCode == 13)))
4799
+ if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !as(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(sn && We && t.keyCode == 13)))
4800
4800
  if (t.keyCode != 229 && n.domObserver.forceFlush(), Vr && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
4801
4801
  let r = Date.now();
4802
4802
  n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -4828,7 +4828,7 @@ function pl(n, e) {
4828
4828
  let t = e.x - n.clientX, r = e.y - n.clientY;
4829
4829
  return t * t + r * r < 100;
4830
4830
  }
4831
- function Wr(n, e, t, r, i) {
4831
+ function Hr(n, e, t, r, i) {
4832
4832
  if (r == -1)
4833
4833
  return !1;
4834
4834
  let o = n.state.doc.resolve(r);
@@ -4865,13 +4865,13 @@ function ml(n, e) {
4865
4865
  return i != null ? (St(n, O.create(n.state.doc, i)), !0) : !1;
4866
4866
  }
4867
4867
  function gl(n, e, t, r, i) {
4868
- return Wr(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (o) => o(n, e, r)) || (i ? ml(n, t) : hl(n, t));
4868
+ return Hr(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (o) => o(n, e, r)) || (i ? ml(n, t) : hl(n, t));
4869
4869
  }
4870
4870
  function yl(n, e, t, r) {
4871
- return Wr(n, "handleDoubleClickOn", e, t, r) || n.someProp("handleDoubleClick", (i) => i(n, e, r));
4871
+ return Hr(n, "handleDoubleClickOn", e, t, r) || n.someProp("handleDoubleClick", (i) => i(n, e, r));
4872
4872
  }
4873
4873
  function vl(n, e, t, r) {
4874
- return Wr(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || bl(n, t, r);
4874
+ return Hr(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || bl(n, t, r);
4875
4875
  }
4876
4876
  function bl(n, e, t) {
4877
4877
  if (t.button != 0)
@@ -4926,7 +4926,7 @@ class xl {
4926
4926
  }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), $e(e, "pointer");
4927
4927
  }
4928
4928
  done() {
4929
- this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => Hr(this.view)), this.view.input.mouseDown = null;
4929
+ this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => Wr(this.view)), this.view.input.mouseDown = null;
4930
4930
  }
4931
4931
  up(e) {
4932
4932
  if (this.done(), !this.view.dom.contains(e.target))
@@ -4940,7 +4940,7 @@ class xl {
4940
4940
  // (hidden) cursor is doesn't change the selection, and
4941
4941
  // thus doesn't get a reaction from ProseMirror. This
4942
4942
  // works around that.
4943
- He && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (St(this.view, D.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : $e(this.view, "pointer");
4943
+ We && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (St(this.view, D.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : $e(this.view, "pointer");
4944
4944
  }
4945
4945
  move(e) {
4946
4946
  this.updateAllowDefault(e), $e(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -5085,7 +5085,7 @@ xe.dragstart = (n, e) => {
5085
5085
  }
5086
5086
  }
5087
5087
  let a = (s || n.state.selection).content(), { dom: l, text: c, slice: u } = Zo(n, a);
5088
- (!t.dataTransfer.files.length || !He || Go > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Yt ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Yt || t.dataTransfer.setData("text/plain", c), n.dragging = new Tl(u, us(n, t), s);
5088
+ (!t.dataTransfer.files.length || !We || Go > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Yt ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Yt || t.dataTransfer.setData("text/plain", c), n.dragging = new Tl(u, us(n, t), s);
5089
5089
  };
5090
5090
  xe.dragend = (n) => {
5091
5091
  let e = n.dragging;
@@ -5134,7 +5134,7 @@ ce.drop = (n, e) => {
5134
5134
  };
5135
5135
  xe.focus = (n) => {
5136
5136
  n.input.lastFocus = Date.now(), n.focused || (n.domObserver.stop(), n.dom.classList.add("ProseMirror-focused"), n.domObserver.start(), n.focused = !0, setTimeout(() => {
5137
- n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && Hr(n);
5137
+ n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && Wr(n);
5138
5138
  }, 20));
5139
5139
  };
5140
5140
  xe.blur = (n, e) => {
@@ -5142,7 +5142,7 @@ xe.blur = (n, e) => {
5142
5142
  n.focused && (n.domObserver.stop(), n.dom.classList.remove("ProseMirror-focused"), n.domObserver.start(), t.relatedTarget && n.dom.contains(t.relatedTarget) && n.domObserver.currentSelection.clear(), n.focused = !1);
5143
5143
  };
5144
5144
  xe.beforeinput = (n, e) => {
5145
- if (He && sn && e.inputType == "deleteContentBackward") {
5145
+ if (We && sn && e.inputType == "deleteContentBackward") {
5146
5146
  n.domObserver.flushSoon();
5147
5147
  let { domChangeCount: r } = n.input;
5148
5148
  setTimeout(() => {
@@ -5166,7 +5166,7 @@ function Xt(n, e) {
5166
5166
  return !1;
5167
5167
  return !0;
5168
5168
  }
5169
- class Hn {
5169
+ class Wn {
5170
5170
  constructor(e, t) {
5171
5171
  this.toDOM = e, this.spec = t || ot, this.side = this.spec.side || 0;
5172
5172
  }
@@ -5178,7 +5178,7 @@ class Hn {
5178
5178
  return !0;
5179
5179
  }
5180
5180
  eq(e) {
5181
- return this == e || e instanceof Hn && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Xt(this.spec, e.spec));
5181
+ return this == e || e instanceof Wn && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Xt(this.spec, e.spec));
5182
5182
  }
5183
5183
  destroy(e) {
5184
5184
  this.spec.destroy && this.spec.destroy(e);
@@ -5259,7 +5259,7 @@ class ve {
5259
5259
  widget's current document position.
5260
5260
  */
5261
5261
  static widget(e, t, r) {
5262
- return new ve(e, e, new Hn(t, r));
5262
+ return new ve(e, e, new Wn(t, r));
5263
5263
  }
5264
5264
  /**
5265
5265
  Creates an inline decoration, which adds the given attributes to
@@ -5293,7 +5293,7 @@ class ve {
5293
5293
  @internal
5294
5294
  */
5295
5295
  get widget() {
5296
- return this.type instanceof Hn;
5296
+ return this.type instanceof Wn;
5297
5297
  }
5298
5298
  }
5299
5299
  const kt = [], ot = {};
@@ -5310,7 +5310,7 @@ class V {
5310
5310
  you must make a copy if you want need to preserve that.
5311
5311
  */
5312
5312
  static create(e, t) {
5313
- return t.length ? Wn(t, e, 0, ot) : Q;
5313
+ return t.length ? Hn(t, e, 0, ot) : Q;
5314
5314
  }
5315
5315
  /**
5316
5316
  Find all decorations in this set which touch the given range
@@ -5369,7 +5369,7 @@ class V {
5369
5369
  if (u = ds(t, a, c)) {
5370
5370
  for (i || (i = this.children.slice()); o < i.length && i[o] < l; )
5371
5371
  o += 3;
5372
- i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize, Wn(u, a, c + 1, ot)), o += 3;
5372
+ i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize, Hn(u, a, c + 1, ot)), o += 3;
5373
5373
  }
5374
5374
  });
5375
5375
  let s = fs(o ? ps(t) : t, -r);
@@ -5565,7 +5565,7 @@ function Al(n, e, t, r, i, o, s) {
5565
5565
  l = !0;
5566
5566
  }
5567
5567
  if (l) {
5568
- let c = Nl(a, n, e, t, i, o, s), u = Wn(c, r, 0, s);
5568
+ let c = Nl(a, n, e, t, i, o, s), u = Hn(c, r, 0, s);
5569
5569
  e = u.local;
5570
5570
  for (let f = 0; f < a.length; f += 3)
5571
5571
  a[f + 1] < 0 && (a.splice(f, 3), f -= 3);
@@ -5615,13 +5615,13 @@ function ps(n) {
5615
5615
  n[t] != null && e.push(n[t]);
5616
5616
  return e;
5617
5617
  }
5618
- function Wn(n, e, t, r) {
5618
+ function Hn(n, e, t, r) {
5619
5619
  let i = [], o = !1;
5620
5620
  e.forEach((a, l) => {
5621
5621
  let c = ds(n, a, l + t);
5622
5622
  if (c) {
5623
5623
  o = !0;
5624
- let u = Wn(c, a, t + l + 1, r);
5624
+ let u = Hn(c, a, t + l + 1, r);
5625
5625
  u != Q && i.push(l, l + a.nodeSize, u);
5626
5626
  }
5627
5627
  });
@@ -5641,17 +5641,17 @@ function Kr(n) {
5641
5641
  for (let i = t + 1; i < e.length; i++) {
5642
5642
  let o = e[i];
5643
5643
  if (o.from == r.from) {
5644
- o.to != r.to && (e == n && (e = n.slice()), e[i] = o.copy(o.from, r.to), Hi(e, i + 1, o.copy(r.to, o.to)));
5644
+ o.to != r.to && (e == n && (e = n.slice()), e[i] = o.copy(o.from, r.to), Wi(e, i + 1, o.copy(r.to, o.to)));
5645
5645
  continue;
5646
5646
  } else {
5647
- o.from < r.to && (e == n && (e = n.slice()), e[t] = r.copy(r.from, o.from), Hi(e, i, r.copy(o.from, r.to)));
5647
+ o.from < r.to && (e == n && (e = n.slice()), e[t] = r.copy(r.from, o.from), Wi(e, i, r.copy(o.from, r.to)));
5648
5648
  break;
5649
5649
  }
5650
5650
  }
5651
5651
  }
5652
5652
  return e;
5653
5653
  }
5654
- function Hi(n, e, t) {
5654
+ function Wi(n, e, t) {
5655
5655
  for (; e < n.length && st(t, n[e]) > 0; )
5656
5656
  e++;
5657
5657
  n.splice(e, 0, t);
@@ -5675,7 +5675,7 @@ const ms = (n, e, t) => {
5675
5675
  return !0;
5676
5676
  if (r.parent.content.size == 0 && (Ct(o, "end") || O.isSelectable(o)))
5677
5677
  for (let s = r.depth; ; s--) {
5678
- let a = Fr(n.doc, r.before(s), r.after(s), S.empty);
5678
+ let a = Lr(n.doc, r.before(s), r.after(s), S.empty);
5679
5679
  if (a && a.slice.size < a.to - a.from) {
5680
5680
  if (e) {
5681
5681
  let l = n.tr.step(a);
@@ -5719,7 +5719,7 @@ function gs(n, e, t) {
5719
5719
  return !1;
5720
5720
  a = u;
5721
5721
  }
5722
- let c = Fr(n.doc, o, l, S.empty);
5722
+ let c = Lr(n.doc, o, l, S.empty);
5723
5723
  if (!c || c.from != o || c instanceof oe && c.slice.size >= l - o)
5724
5724
  return !1;
5725
5725
  if (t) {
@@ -5774,7 +5774,7 @@ const bs = (n, e, t) => {
5774
5774
  if (Cs(n, i, e, 1))
5775
5775
  return !0;
5776
5776
  if (r.parent.content.size == 0 && (Ct(o, "start") || O.isSelectable(o))) {
5777
- let s = Fr(n.doc, r.before(), r.after(), S.empty);
5777
+ let s = Lr(n.doc, r.before(), r.after(), S.empty);
5778
5778
  if (s && s.slice.size < s.to - s.from) {
5779
5779
  if (e) {
5780
5780
  let a = n.tr.step(s);
@@ -5881,7 +5881,7 @@ const zl = (n, e) => {
5881
5881
  let r = t.blockRange(), i = r && At(r);
5882
5882
  return i == null ? !1 : (e && e(n.tr.lift(r, i).scrollIntoView()), !0);
5883
5883
  };
5884
- function Fl(n) {
5884
+ function Ll(n) {
5885
5885
  return (e, t) => {
5886
5886
  let { $from: r, $to: i } = e.selection;
5887
5887
  if (e.selection instanceof O && e.selection.node.isBlock)
@@ -5910,7 +5910,7 @@ function Fl(n) {
5910
5910
  return t && t(u.scrollIntoView()), !0;
5911
5911
  };
5912
5912
  }
5913
- const Ll = Fl(), $l = (n, e) => {
5913
+ const Fl = Ll(), $l = (n, e) => {
5914
5914
  let { $from: t, to: r } = n.selection, i, o = t.sharedDepth(r);
5915
5915
  return o == 0 ? !1 : (i = t.before(o), e && e(n.tr.setSelection(O.create(n.doc, i))), !0);
5916
5916
  };
@@ -5968,14 +5968,14 @@ function Os(n) {
5968
5968
  return i.node(o).isTextblock ? (t && t(e.tr.setSelection(A.create(e.doc, n < 0 ? i.start(o) : i.end(o)))), !0) : !1;
5969
5969
  };
5970
5970
  }
5971
- const jl = Os(-1), Hl = Os(1);
5972
- function Wl(n, e = null) {
5971
+ const jl = Os(-1), Wl = Os(1);
5972
+ function Hl(n, e = null) {
5973
5973
  return function(t, r) {
5974
- let { $from: i, $to: o } = t.selection, s = i.blockRange(o), a = s && Lo(s, n, e);
5974
+ let { $from: i, $to: o } = t.selection, s = i.blockRange(o), a = s && Fo(s, n, e);
5975
5975
  return a ? (r && r(t.tr.wrap(s, a).scrollIntoView()), !0) : !1;
5976
5976
  };
5977
5977
  }
5978
- function Wi(n, e = null) {
5978
+ function Hi(n, e = null) {
5979
5979
  return function(t, r) {
5980
5980
  let i = !1;
5981
5981
  for (let o = 0; o < t.selection.ranges.length && !i; o++) {
@@ -6015,7 +6015,7 @@ function Qr(...n) {
6015
6015
  }
6016
6016
  Qr(Ur, ms, ys);
6017
6017
  Qr(Ur, bs, xs);
6018
- Qr(ks, ws, Ss, Ll);
6018
+ Qr(ks, ws, Ss, Fl);
6019
6019
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
6020
6020
  function Jl(n, e = null) {
6021
6021
  return function(t, r) {
@@ -6034,7 +6034,7 @@ function ql(n, e, t, r = null) {
6034
6034
  let l = s.resolve(e.start - 2);
6035
6035
  o = new zn(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new zn(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), i = !0;
6036
6036
  }
6037
- let a = Lo(o, t, r, e);
6037
+ let a = Fo(o, t, r, e);
6038
6038
  return a ? (n && Kl(n, e, a, i, t), !0) : !1;
6039
6039
  }
6040
6040
  function Kl(n, e, t, r, i) {
@@ -6473,7 +6473,7 @@ function Zr(n, e, t) {
6473
6473
  to: c
6474
6474
  };
6475
6475
  }
6476
- function We(n, e) {
6476
+ function He(n, e) {
6477
6477
  if (typeof n == "string") {
6478
6478
  if (!e.marks[n])
6479
6479
  throw Error(`There is no mark type named '${n}'. Maybe you forgot to add the extension?`);
@@ -6482,7 +6482,7 @@ function We(n, e) {
6482
6482
  return n;
6483
6483
  }
6484
6484
  const yc = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
6485
- const o = We(n, r.schema), { doc: s, selection: a } = t, { $from: l, from: c, to: u } = a;
6485
+ const o = He(n, r.schema), { doc: s, selection: a } = t, { $from: l, from: c, to: u } = a;
6486
6486
  if (i) {
6487
6487
  const f = Zr(l, o, e);
6488
6488
  if (f && f.from <= c && f.to >= u) {
@@ -6756,10 +6756,10 @@ function ei(n, e, t = {}) {
6756
6756
  const l = i - r, c = a.filter((f) => s ? s.name === f.node.type.name : !0).filter((f) => Jn(f.node.attrs, t, { strict: !1 }));
6757
6757
  return o ? !!c.length : c.reduce((f, p) => f + p.to - p.from, 0) >= l;
6758
6758
  }
6759
- const Fc = (n, e = {}) => ({ state: t, dispatch: r }) => {
6759
+ const Lc = (n, e = {}) => ({ state: t, dispatch: r }) => {
6760
6760
  const i = G(n, t.schema);
6761
6761
  return ei(t, i, e) ? Bl(t, r) : !1;
6762
- }, Lc = () => ({ state: n, dispatch: e }) => Ss(n, e), $c = (n) => ({ state: e, dispatch: t }) => {
6762
+ }, Fc = () => ({ state: n, dispatch: e }) => Ss(n, e), $c = (n) => ({ state: e, dispatch: t }) => {
6763
6763
  const r = G(n, e.schema);
6764
6764
  return Ul(r)(e, t);
6765
6765
  }, Vc = () => ({ state: n, dispatch: e }) => ks(n, e);
@@ -6773,20 +6773,20 @@ function Ki(n, e) {
6773
6773
  const jc = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
6774
6774
  let o = null, s = null;
6775
6775
  const a = Is(typeof n == "string" ? n : n.name, r.schema);
6776
- return a ? (a === "node" && (o = G(n, r.schema)), a === "mark" && (s = We(n, r.schema)), i && t.selection.ranges.forEach((l) => {
6776
+ return a ? (a === "node" && (o = G(n, r.schema)), a === "mark" && (s = He(n, r.schema)), i && t.selection.ranges.forEach((l) => {
6777
6777
  r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, u) => {
6778
6778
  o && o === c.type && t.setNodeMarkup(u, void 0, Ki(c.attrs, e)), s && c.marks.length && c.marks.forEach((f) => {
6779
6779
  s === f.type && t.addMark(u, u + c.nodeSize, s.create(Ki(f.attrs, e)));
6780
6780
  });
6781
6781
  });
6782
6782
  }), !0) : !1;
6783
- }, Hc = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), Wc = () => ({ tr: n, dispatch: e }) => {
6783
+ }, Wc = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), Hc = () => ({ tr: n, dispatch: e }) => {
6784
6784
  if (e) {
6785
6785
  const t = new le(n.doc);
6786
6786
  n.setSelection(t);
6787
6787
  }
6788
6788
  return !0;
6789
- }, Jc = () => ({ state: n, dispatch: e }) => ys(n, e), qc = () => ({ state: n, dispatch: e }) => xs(n, e), Kc = () => ({ state: n, dispatch: e }) => $l(n, e), Uc = () => ({ state: n, dispatch: e }) => Hl(n, e), Gc = () => ({ state: n, dispatch: e }) => jl(n, e);
6789
+ }, Jc = () => ({ state: n, dispatch: e }) => ys(n, e), qc = () => ({ state: n, dispatch: e }) => xs(n, e), Kc = () => ({ state: n, dispatch: e }) => $l(n, e), Uc = () => ({ state: n, dispatch: e }) => Wl(n, e), Gc = () => ({ state: n, dispatch: e }) => jl(n, e);
6790
6790
  function Yc(n, e, t = {}, r = {}) {
6791
6791
  return Zt(n, e, {
6792
6792
  slice: !1,
@@ -6809,7 +6809,7 @@ const Xc = (n, e = !1, t = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, comm
6809
6809
  });
6810
6810
  };
6811
6811
  function Qc(n, e) {
6812
- const t = We(e, n.schema), { from: r, to: i, empty: o } = n.selection, s = [];
6812
+ const t = He(e, n.schema), { from: r, to: i, empty: o } = n.selection, s = [];
6813
6813
  o ? (n.storedMarks && s.push(...n.storedMarks), s.push(...n.selection.$head.marks())) : n.doc.nodesBetween(r, i, (l) => {
6814
6814
  s.push(...l.marks);
6815
6815
  });
@@ -6862,7 +6862,7 @@ function In(n, e, t) {
6862
6862
  }));
6863
6863
  }
6864
6864
  function eu(n, e, t = {}) {
6865
- const { empty: r, ranges: i } = n.selection, o = e ? We(e, n.schema) : null;
6865
+ const { empty: r, ranges: i } = n.selection, o = e ? He(e, n.schema) : null;
6866
6866
  if (r)
6867
6867
  return !!(n.storedMarks || n.selection.$from.marks()).filter((f) => o ? o.name === f.type.name : !0).find((f) => Jn(f.attrs, t, { strict: !1 }));
6868
6868
  let s = 0;
@@ -6959,7 +6959,7 @@ function nu(n, e, t) {
6959
6959
  });
6960
6960
  }
6961
6961
  const ru = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
6962
- const { selection: o } = t, { empty: s, ranges: a } = o, l = We(n, r.schema);
6962
+ const { selection: o } = t, { empty: s, ranges: a } = o, l = He(n, r.schema);
6963
6963
  if (i)
6964
6964
  if (s) {
6965
6965
  const c = Qc(r, l);
@@ -6984,7 +6984,7 @@ const ru = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
6984
6984
  }, iu = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), ou = (n, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
6985
6985
  const o = G(n, t.schema);
6986
6986
  let s;
6987
- return t.selection.$anchor.sameParent(t.selection.$head) && (s = t.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: a }) => Wi(o, { ...s, ...e })(t) ? !0 : a.clearNodes()).command(({ state: a }) => Wi(o, { ...s, ...e })(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
6987
+ return t.selection.$anchor.sameParent(t.selection.$head) && (s = t.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: a }) => Hi(o, { ...s, ...e })(t) ? !0 : a.clearNodes()).command(({ state: a }) => Hi(o, { ...s, ...e })(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
6988
6988
  }, su = (n) => ({ tr: e, dispatch: t }) => {
6989
6989
  if (t) {
6990
6990
  const { doc: r } = e, i = Re(n, 0, r.content.size), o = O.create(r, i);
@@ -7059,10 +7059,10 @@ const cu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
7059
7059
  const x = l.before(l.depth - (C - 1));
7060
7060
  t.replace(x, l.after(-T), new S(b, 4 - C, 0));
7061
7061
  let N = -1;
7062
- t.doc.nodesBetween(x, t.doc.content.size, (P, F) => {
7062
+ t.doc.nodesBetween(x, t.doc.content.size, (P, L) => {
7063
7063
  if (N > -1)
7064
7064
  return !1;
7065
- P.isTextblock && P.content.size === 0 && (N = F + 1);
7065
+ P.isTextblock && P.content.size === 0 && (N = L + 1);
7066
7066
  }), N > -1 && t.setSelection(A.near(t.doc.resolve(N))), t.scrollIntoView();
7067
7067
  }
7068
7068
  return !0;
@@ -7123,7 +7123,7 @@ const cu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
7123
7123
  return o.ensureMarks(N), x ? !0 : c.clearNodes();
7124
7124
  }).wrapInList(d, r).command(() => dr(o, d)).command(() => pr(o, d)).run();
7125
7125
  }, du = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
7126
- const { extendEmptyMarkRange: o = !1 } = t, s = We(n, r.schema);
7126
+ const { extendEmptyMarkRange: o = !1 } = t, s = He(n, r.schema);
7127
7127
  return eu(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
7128
7128
  }, pu = (n, e, t = {}) => ({ state: r, commands: i }) => {
7129
7129
  const o = G(n, r.schema), s = G(e, r.schema), a = ei(r, o, t);
@@ -7159,7 +7159,7 @@ const cu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
7159
7159
  }), !0;
7160
7160
  }, yu = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
7161
7161
  var o;
7162
- const { extendEmptyMarkRange: s = !1 } = e, { selection: a } = t, l = We(n, r.schema), { $from: c, empty: u, ranges: f } = a;
7162
+ const { extendEmptyMarkRange: s = !1 } = e, { selection: a } = t, l = He(n, r.schema), { $from: c, empty: u, ranges: f } = a;
7163
7163
  if (!i)
7164
7164
  return !0;
7165
7165
  if (u && s) {
@@ -7174,7 +7174,7 @@ const cu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
7174
7174
  }, vu = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
7175
7175
  let o = null, s = null;
7176
7176
  const a = Is(typeof n == "string" ? n : n.name, r.schema);
7177
- return a ? (a === "node" && (o = G(n, r.schema)), a === "mark" && (s = We(n, r.schema)), i && t.selection.ranges.forEach((l) => {
7177
+ return a ? (a === "node" && (o = G(n, r.schema)), a === "mark" && (s = He(n, r.schema)), i && t.selection.ranges.forEach((l) => {
7178
7178
  const c = l.$from.pos, u = l.$to.pos;
7179
7179
  let f, p, d, g;
7180
7180
  t.selection.empty ? r.doc.nodesBetween(c, u, (m, y) => {
@@ -7204,7 +7204,7 @@ const cu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
7204
7204
  }), !0) : !1;
7205
7205
  }, bu = (n, e = {}) => ({ state: t, dispatch: r }) => {
7206
7206
  const i = G(n, t.schema);
7207
- return Wl(i, e)(t, r);
7207
+ return Hl(i, e)(t, r);
7208
7208
  }, xu = (n, e = {}) => ({ state: t, dispatch: r }) => {
7209
7209
  const i = G(n, t.schema);
7210
7210
  return Jl(i, e)(t, r);
@@ -7238,13 +7238,13 @@ var ku = /* @__PURE__ */ Object.freeze({
7238
7238
  joinTextblockForward: Pc,
7239
7239
  joinUp: Tc,
7240
7240
  keyboardShortcut: zc,
7241
- lift: Fc,
7242
- liftEmptyBlock: Lc,
7241
+ lift: Lc,
7242
+ liftEmptyBlock: Fc,
7243
7243
  liftListItem: $c,
7244
7244
  newlineInCode: Vc,
7245
7245
  resetAttributes: jc,
7246
- scrollIntoView: Hc,
7247
- selectAll: Wc,
7246
+ scrollIntoView: Wc,
7247
+ selectAll: Hc,
7248
7248
  selectNodeBackward: Jc,
7249
7249
  selectNodeForward: qc,
7250
7250
  selectParentNode: Kc,
@@ -7754,21 +7754,21 @@ function hd(n) {
7754
7754
  return !0;
7755
7755
  },
7756
7756
  handlePaste: (e, t) => {
7757
- if (!(t.clipboardData && t.clipboardData.files && t.clipboardData.files.length))
7758
- return !1;
7759
- const i = Array.from(t.clipboardData.files).filter(
7760
- (s) => s.type.includes("image/")
7761
- );
7762
- if (i.length === 0)
7763
- return !1;
7757
+ const r = t.clipboardData;
7758
+ if (!r) return !1;
7759
+ const o = Array.from(r.files || []).filter((a) => a.type.startsWith("image/"));
7760
+ if (o.length === 0) return !1;
7761
+ if (o.length === 1) {
7762
+ const a = r.getData("text/html");
7763
+ if (a && /<table[\s>]/i.test(a))
7764
+ return !1;
7765
+ }
7764
7766
  t.preventDefault();
7765
- const { schema: o } = e.state;
7766
- for (const s of i)
7767
- n(s).then((a) => {
7768
- const l = o.nodes.imageUpload.create({
7769
- src: a
7770
- }), c = e.state.tr.insert(e.state.selection.from, l);
7771
- e.dispatch(c);
7767
+ const { schema: s } = e.state;
7768
+ for (const a of o)
7769
+ n(a).then((l) => {
7770
+ const c = s.nodes.imageUpload.create({ src: l }), u = e.state.tr.insert(e.state.selection.from, c);
7771
+ e.dispatch(u);
7772
7772
  });
7773
7773
  return !0;
7774
7774
  }
@@ -7804,7 +7804,7 @@ var ee = "top", he = "bottom", me = "right", te = "left", ni = "auto", ln = [ee,
7804
7804
  return n.concat([e + "-" + Ot, e + "-" + en]);
7805
7805
  }, []), zs = /* @__PURE__ */ [].concat(ln, [ni]).reduce(function(n, e) {
7806
7806
  return n.concat([e, e + "-" + Ot, e + "-" + en]);
7807
- }, []), Nu = "beforeRead", Iu = "read", Du = "afterRead", Ru = "beforeMain", Pu = "main", Bu = "afterMain", zu = "beforeWrite", Fu = "write", Lu = "afterWrite", $u = [Nu, Iu, Du, Ru, Pu, Bu, zu, Fu, Lu];
7807
+ }, []), Nu = "beforeRead", Iu = "read", Du = "afterRead", Ru = "beforeMain", Pu = "main", Bu = "afterMain", zu = "beforeWrite", Lu = "write", Fu = "afterWrite", $u = [Nu, Iu, Du, Ru, Pu, Bu, zu, Lu, Fu];
7808
7808
  function Te(n) {
7809
7809
  return n ? (n.nodeName || "").toLowerCase() : null;
7810
7810
  }
@@ -7865,7 +7865,7 @@ function ju(n) {
7865
7865
  });
7866
7866
  };
7867
7867
  }
7868
- const Fs = {
7868
+ const Ls = {
7869
7869
  name: "applyStyles",
7870
7870
  enabled: !0,
7871
7871
  phase: "write",
@@ -7883,14 +7883,14 @@ function Nr() {
7883
7883
  return e.brand + "/" + e.version;
7884
7884
  }).join(" ") : navigator.userAgent;
7885
7885
  }
7886
- function Ls() {
7886
+ function Fs() {
7887
7887
  return !/^((?!chrome|android).)*safari/i.test(Nr());
7888
7888
  }
7889
7889
  function Tt(n, e, t) {
7890
7890
  e === void 0 && (e = !1), t === void 0 && (t = !1);
7891
7891
  var r = n.getBoundingClientRect(), i = 1, o = 1;
7892
7892
  e && pe(n) && (i = n.offsetWidth > 0 && Et(r.width) / n.offsetWidth || 1, o = n.offsetHeight > 0 && Et(r.height) / n.offsetHeight || 1);
7893
- var s = ct(n) ? ue(n) : window, a = s.visualViewport, l = !Ls() && t, c = (r.left + (l && a ? a.offsetLeft : 0)) / i, u = (r.top + (l && a ? a.offsetTop : 0)) / o, f = r.width / i, p = r.height / o;
7893
+ var s = ct(n) ? ue(n) : window, a = s.visualViewport, l = !Fs() && t, c = (r.left + (l && a ? a.offsetLeft : 0)) / i, u = (r.top + (l && a ? a.offsetTop : 0)) / o, f = r.width / i, p = r.height / o;
7894
7894
  return {
7895
7895
  width: f,
7896
7896
  height: p,
@@ -7928,7 +7928,7 @@ function $s(n, e) {
7928
7928
  function Be(n) {
7929
7929
  return ue(n).getComputedStyle(n);
7930
7930
  }
7931
- function Hu(n) {
7931
+ function Wu(n) {
7932
7932
  return ["table", "td", "th"].indexOf(Te(n)) >= 0;
7933
7933
  }
7934
7934
  function Je(n) {
@@ -7953,7 +7953,7 @@ function Xi(n) {
7953
7953
  return !pe(n) || // https://github.com/popperjs/popper-core/issues/837
7954
7954
  Be(n).position === "fixed" ? null : n.offsetParent;
7955
7955
  }
7956
- function Wu(n) {
7956
+ function Hu(n) {
7957
7957
  var e = /firefox/i.test(Nr()), t = /Trident/i.test(Nr());
7958
7958
  if (t && pe(n)) {
7959
7959
  var r = Be(n);
@@ -7970,18 +7970,18 @@ function Wu(n) {
7970
7970
  return null;
7971
7971
  }
7972
7972
  function cn(n) {
7973
- for (var e = ue(n), t = Xi(n); t && Hu(t) && Be(t).position === "static"; )
7973
+ for (var e = ue(n), t = Xi(n); t && Wu(t) && Be(t).position === "static"; )
7974
7974
  t = Xi(t);
7975
- return t && (Te(t) === "html" || Te(t) === "body" && Be(t).position === "static") ? e : t || Wu(n) || e;
7975
+ return t && (Te(t) === "html" || Te(t) === "body" && Be(t).position === "static") ? e : t || Hu(n) || e;
7976
7976
  }
7977
7977
  function oi(n) {
7978
7978
  return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
7979
7979
  }
7980
- function Ht(n, e, t) {
7980
+ function Wt(n, e, t) {
7981
7981
  return at(n, Kn(e, t));
7982
7982
  }
7983
7983
  function Ju(n, e, t) {
7984
- var r = Ht(n, e, t);
7984
+ var r = Wt(n, e, t);
7985
7985
  return r > t ? t : r;
7986
7986
  }
7987
7987
  function Vs() {
@@ -7995,7 +7995,7 @@ function Vs() {
7995
7995
  function js(n) {
7996
7996
  return Object.assign({}, Vs(), n);
7997
7997
  }
7998
- function Hs(n, e) {
7998
+ function Ws(n, e) {
7999
7999
  return e.reduce(function(t, r) {
8000
8000
  return t[r] = n, t;
8001
8001
  }, {});
@@ -8003,12 +8003,12 @@ function Hs(n, e) {
8003
8003
  var qu = function(e, t) {
8004
8004
  return e = typeof e == "function" ? e(Object.assign({}, t.rects, {
8005
8005
  placement: t.placement
8006
- })) : e, js(typeof e != "number" ? e : Hs(e, ln));
8006
+ })) : e, js(typeof e != "number" ? e : Ws(e, ln));
8007
8007
  };
8008
8008
  function Ku(n) {
8009
8009
  var e, t = n.state, r = n.name, i = n.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Oe(t.placement), l = oi(a), c = [te, me].indexOf(a) >= 0, u = c ? "height" : "width";
8010
8010
  if (!(!o || !s)) {
8011
- var f = qu(i.padding, t), p = ii(o), d = l === "y" ? ee : te, g = l === "y" ? he : me, m = t.rects.reference[u] + t.rects.reference[l] - s[l] - t.rects.popper[u], y = s[l] - t.rects.reference[l], b = cn(o), C = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, T = m / 2 - y / 2, h = f[d], M = C - p[u] - f[g], x = C / 2 - p[u] / 2 + T, N = Ht(h, x, M), P = l;
8011
+ var f = qu(i.padding, t), p = ii(o), d = l === "y" ? ee : te, g = l === "y" ? he : me, m = t.rects.reference[u] + t.rects.reference[l] - s[l] - t.rects.popper[u], y = s[l] - t.rects.reference[l], b = cn(o), C = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, T = m / 2 - y / 2, h = f[d], M = C - p[u] - f[g], x = C / 2 - p[u] / 2 + T, N = Wt(h, x, M), P = l;
8012
8012
  t.modifiersData[r] = (e = {}, e[P] = N, e.centerOffset = N - x, e);
8013
8013
  }
8014
8014
  }
@@ -8055,22 +8055,22 @@ function Qi(n) {
8055
8055
  var x = cn(t), N = "clientHeight", P = "clientWidth";
8056
8056
  if (x === ue(t) && (x = Je(t), Be(x).position !== "static" && a === "absolute" && (N = "scrollHeight", P = "scrollWidth")), x = x, i === ee || (i === te || i === me) && o === en) {
8057
8057
  h = he;
8058
- var F = f && x === M && M.visualViewport ? M.visualViewport.height : (
8058
+ var L = f && x === M && M.visualViewport ? M.visualViewport.height : (
8059
8059
  // $FlowFixMe[prop-missing]
8060
8060
  x[N]
8061
8061
  );
8062
- m -= F - r.height, m *= l ? 1 : -1;
8062
+ m -= L - r.height, m *= l ? 1 : -1;
8063
8063
  }
8064
8064
  if (i === te || (i === ee || i === he) && o === en) {
8065
8065
  T = me;
8066
- var L = f && x === M && M.visualViewport ? M.visualViewport.width : (
8066
+ var F = f && x === M && M.visualViewport ? M.visualViewport.width : (
8067
8067
  // $FlowFixMe[prop-missing]
8068
8068
  x[P]
8069
8069
  );
8070
- d -= L - r.width, d *= l ? 1 : -1;
8070
+ d -= F - r.width, d *= l ? 1 : -1;
8071
8071
  }
8072
8072
  }
8073
- var H = Object.assign({
8073
+ var W = Object.assign({
8074
8074
  position: a
8075
8075
  }, c && Yu), $ = u === !0 ? Xu({
8076
8076
  x: d,
@@ -8081,9 +8081,9 @@ function Qi(n) {
8081
8081
  };
8082
8082
  if (d = $.x, m = $.y, l) {
8083
8083
  var B;
8084
- return Object.assign({}, H, (B = {}, B[h] = C ? "0" : "", B[T] = b ? "0" : "", B.transform = (M.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + m + "px)" : "translate3d(" + d + "px, " + m + "px, 0)", B));
8084
+ return Object.assign({}, W, (B = {}, B[h] = C ? "0" : "", B[T] = b ? "0" : "", B.transform = (M.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + m + "px)" : "translate3d(" + d + "px, " + m + "px, 0)", B));
8085
8085
  }
8086
- return Object.assign({}, H, (e = {}, e[h] = C ? m + "px" : "", e[T] = b ? d + "px" : "", e.transform = "", e));
8086
+ return Object.assign({}, W, (e = {}, e[h] = C ? m + "px" : "", e[T] = b ? d + "px" : "", e.transform = "", e));
8087
8087
  }
8088
8088
  function Qu(n) {
8089
8089
  var e = n.state, t = n.options, r = t.gpuAcceleration, i = r === void 0 ? !0 : r, o = t.adaptive, s = o === void 0 ? !0 : o, a = t.roundOffsets, l = a === void 0 ? !0 : a, c = {
@@ -8171,7 +8171,7 @@ function rf(n, e) {
8171
8171
  var t = ue(n), r = Je(n), i = t.visualViewport, o = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
8172
8172
  if (i) {
8173
8173
  o = i.width, s = i.height;
8174
- var c = Ls();
8174
+ var c = Fs();
8175
8175
  (c || !c && e === "fixed") && (a = i.offsetLeft, l = i.offsetTop);
8176
8176
  }
8177
8177
  return {
@@ -8194,16 +8194,16 @@ function li(n) {
8194
8194
  var e = Be(n), t = e.overflow, r = e.overflowX, i = e.overflowY;
8195
8195
  return /auto|scroll|overlay|hidden/.test(t + i + r);
8196
8196
  }
8197
- function Ws(n) {
8198
- return ["html", "body", "#document"].indexOf(Te(n)) >= 0 ? n.ownerDocument.body : pe(n) && li(n) ? n : Ws(er(n));
8197
+ function Hs(n) {
8198
+ return ["html", "body", "#document"].indexOf(Te(n)) >= 0 ? n.ownerDocument.body : pe(n) && li(n) ? n : Hs(er(n));
8199
8199
  }
8200
- function Wt(n, e) {
8200
+ function Ht(n, e) {
8201
8201
  var t;
8202
8202
  e === void 0 && (e = []);
8203
- var r = Ws(n), i = r === ((t = n.ownerDocument) == null ? void 0 : t.body), o = ue(r), s = i ? [o].concat(o.visualViewport || [], li(r) ? r : []) : r, a = e.concat(s);
8203
+ var r = Hs(n), i = r === ((t = n.ownerDocument) == null ? void 0 : t.body), o = ue(r), s = i ? [o].concat(o.visualViewport || [], li(r) ? r : []) : r, a = e.concat(s);
8204
8204
  return i ? a : (
8205
8205
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
8206
- a.concat(Wt(er(s)))
8206
+ a.concat(Ht(er(s)))
8207
8207
  );
8208
8208
  }
8209
8209
  function Ir(n) {
@@ -8222,7 +8222,7 @@ function _i(n, e, t) {
8222
8222
  return e === Bs ? Ir(rf(n, t)) : ct(e) ? sf(e, t) : Ir(of(Je(n)));
8223
8223
  }
8224
8224
  function af(n) {
8225
- var e = Wt(er(n)), t = ["absolute", "fixed"].indexOf(Be(n).position) >= 0, r = t && pe(n) ? cn(n) : n;
8225
+ var e = Ht(er(n)), t = ["absolute", "fixed"].indexOf(Be(n).position) >= 0, r = t && pe(n) ? cn(n) : n;
8226
8226
  return ct(r) ? e.filter(function(i) {
8227
8227
  return ct(i) && $s(i, r) && Te(i) !== "body";
8228
8228
  }) : [];
@@ -8283,24 +8283,24 @@ function Js(n) {
8283
8283
  }
8284
8284
  function tn(n, e) {
8285
8285
  e === void 0 && (e = {});
8286
- var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, a = t.boundary, l = a === void 0 ? Mu : a, c = t.rootBoundary, u = c === void 0 ? Bs : c, f = t.elementContext, p = f === void 0 ? Bt : f, d = t.altBoundary, g = d === void 0 ? !1 : d, m = t.padding, y = m === void 0 ? 0 : m, b = js(typeof y != "number" ? y : Hs(y, ln)), C = p === Bt ? Au : Bt, T = n.rects.popper, h = n.elements[g ? C : p], M = lf(ct(h) ? h : h.contextElement || Je(n.elements.popper), l, u, s), x = Tt(n.elements.reference), N = Js({
8286
+ var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, a = t.boundary, l = a === void 0 ? Mu : a, c = t.rootBoundary, u = c === void 0 ? Bs : c, f = t.elementContext, p = f === void 0 ? Bt : f, d = t.altBoundary, g = d === void 0 ? !1 : d, m = t.padding, y = m === void 0 ? 0 : m, b = js(typeof y != "number" ? y : Ws(y, ln)), C = p === Bt ? Au : Bt, T = n.rects.popper, h = n.elements[g ? C : p], M = lf(ct(h) ? h : h.contextElement || Je(n.elements.popper), l, u, s), x = Tt(n.elements.reference), N = Js({
8287
8287
  reference: x,
8288
8288
  element: T,
8289
8289
  placement: i
8290
- }), P = Ir(Object.assign({}, T, N)), F = p === Bt ? P : x, L = {
8291
- top: M.top - F.top + b.top,
8292
- bottom: F.bottom - M.bottom + b.bottom,
8293
- left: M.left - F.left + b.left,
8294
- right: F.right - M.right + b.right
8295
- }, H = n.modifiersData.offset;
8296
- if (p === Bt && H) {
8297
- var $ = H[i];
8298
- Object.keys(L).forEach(function(B) {
8290
+ }), P = Ir(Object.assign({}, T, N)), L = p === Bt ? P : x, F = {
8291
+ top: M.top - L.top + b.top,
8292
+ bottom: L.bottom - M.bottom + b.bottom,
8293
+ left: M.left - L.left + b.left,
8294
+ right: L.right - M.right + b.right
8295
+ }, W = n.modifiersData.offset;
8296
+ if (p === Bt && W) {
8297
+ var $ = W[i];
8298
+ Object.keys(F).forEach(function(B) {
8299
8299
  var re = [me, he].indexOf(B) >= 0 ? 1 : -1, ie = [ee, he].indexOf(B) >= 0 ? "y" : "x";
8300
- L[B] += $[ie] * re;
8300
+ F[B] += $[ie] * re;
8301
8301
  });
8302
8302
  }
8303
- return L;
8303
+ return F;
8304
8304
  }
8305
8305
  function cf(n, e) {
8306
8306
  e === void 0 && (e = {});
@@ -8340,23 +8340,23 @@ function ff(n) {
8340
8340
  flipVariations: g,
8341
8341
  allowedAutoPlacements: m
8342
8342
  }) : ye);
8343
- }, []), M = e.rects.reference, x = e.rects.popper, N = /* @__PURE__ */ new Map(), P = !0, F = h[0], L = 0; L < h.length; L++) {
8344
- var H = h[L], $ = Oe(H), B = Mt(H) === Ot, re = [ee, he].indexOf($) >= 0, ie = re ? "width" : "height", q = tn(e, {
8345
- placement: H,
8343
+ }, []), M = e.rects.reference, x = e.rects.popper, N = /* @__PURE__ */ new Map(), P = !0, L = h[0], F = 0; F < h.length; F++) {
8344
+ var W = h[F], $ = Oe(W), B = Mt(W) === Ot, re = [ee, he].indexOf($) >= 0, ie = re ? "width" : "height", q = tn(e, {
8345
+ placement: W,
8346
8346
  boundary: u,
8347
8347
  rootBoundary: f,
8348
8348
  altBoundary: p,
8349
8349
  padding: c
8350
8350
  }), K = re ? B ? me : te : B ? he : ee;
8351
8351
  M[ie] > x[ie] && (K = Dn(K));
8352
- var W = Dn(K), ke = [];
8353
- if (o && ke.push(q[$] <= 0), a && ke.push(q[K] <= 0, q[W] <= 0), ke.every(function(Me) {
8352
+ var H = Dn(K), ke = [];
8353
+ if (o && ke.push(q[$] <= 0), a && ke.push(q[K] <= 0, q[H] <= 0), ke.every(function(Me) {
8354
8354
  return Me;
8355
8355
  })) {
8356
- F = H, P = !1;
8356
+ L = W, P = !1;
8357
8357
  break;
8358
8358
  }
8359
- N.set(H, ke);
8359
+ N.set(W, ke);
8360
8360
  }
8361
8361
  if (P)
8362
8362
  for (var we = g ? 3 : 1, qe = function(ye) {
@@ -8368,12 +8368,12 @@ function ff(n) {
8368
8368
  });
8369
8369
  });
8370
8370
  if (Ae)
8371
- return F = Ae, "break";
8371
+ return L = Ae, "break";
8372
8372
  }, Se = we; Se > 0; Se--) {
8373
8373
  var Ke = qe(Se);
8374
8374
  if (Ke === "break") break;
8375
8375
  }
8376
- e.placement !== F && (e.modifiersData[r]._skip = !0, e.placement = F, e.reset = !0);
8376
+ e.placement !== L && (e.modifiersData[r]._skip = !0, e.placement = L, e.reset = !0);
8377
8377
  }
8378
8378
  }
8379
8379
  const df = {
@@ -8474,28 +8474,28 @@ function kf(n) {
8474
8474
  rootBoundary: c,
8475
8475
  padding: f,
8476
8476
  altBoundary: u
8477
- }), b = Oe(e.placement), C = Mt(e.placement), T = !C, h = oi(b), M = xf(h), x = e.modifiersData.popperOffsets, N = e.rects.reference, P = e.rects.popper, F = typeof m == "function" ? m(Object.assign({}, e.rects, {
8477
+ }), b = Oe(e.placement), C = Mt(e.placement), T = !C, h = oi(b), M = xf(h), x = e.modifiersData.popperOffsets, N = e.rects.reference, P = e.rects.popper, L = typeof m == "function" ? m(Object.assign({}, e.rects, {
8478
8478
  placement: e.placement
8479
- })) : m, L = typeof F == "number" ? {
8480
- mainAxis: F,
8481
- altAxis: F
8479
+ })) : m, F = typeof L == "number" ? {
8480
+ mainAxis: L,
8481
+ altAxis: L
8482
8482
  } : Object.assign({
8483
8483
  mainAxis: 0,
8484
8484
  altAxis: 0
8485
- }, F), H = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, $ = {
8485
+ }, L), W = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, $ = {
8486
8486
  x: 0,
8487
8487
  y: 0
8488
8488
  };
8489
8489
  if (x) {
8490
8490
  if (o) {
8491
- var B, re = h === "y" ? ee : te, ie = h === "y" ? he : me, q = h === "y" ? "height" : "width", K = x[h], W = K + y[re], ke = K - y[ie], we = d ? -P[q] / 2 : 0, qe = C === Ot ? N[q] : P[q], Se = C === Ot ? -P[q] : -N[q], Ke = e.elements.arrow, Me = d && Ke ? ii(Ke) : {
8491
+ var B, re = h === "y" ? ee : te, ie = h === "y" ? he : me, q = h === "y" ? "height" : "width", K = x[h], H = K + y[re], ke = K - y[ie], we = d ? -P[q] / 2 : 0, qe = C === Ot ? N[q] : P[q], Se = C === Ot ? -P[q] : -N[q], Ke = e.elements.arrow, Me = d && Ke ? ii(Ke) : {
8492
8492
  width: 0,
8493
8493
  height: 0
8494
- }, ye = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Vs(), Ae = ye[re], pt = ye[ie], Ne = Ht(0, N[q], Me[q]), ht = T ? N[q] / 2 - we - Ne - Ae - L.mainAxis : qe - Ne - Ae - L.mainAxis, ze = T ? -N[q] / 2 + we + Ne + pt + L.mainAxis : Se + Ne + pt + L.mainAxis, mt = e.elements.arrow && cn(e.elements.arrow), fn = mt ? h === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, Nt = (B = H?.[h]) != null ? B : 0, dn = K + ht - Nt - fn, pn = K + ze - Nt, It = Ht(d ? Kn(W, dn) : W, K, d ? at(ke, pn) : ke);
8494
+ }, ye = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Vs(), Ae = ye[re], pt = ye[ie], Ne = Wt(0, N[q], Me[q]), ht = T ? N[q] / 2 - we - Ne - Ae - F.mainAxis : qe - Ne - Ae - F.mainAxis, ze = T ? -N[q] / 2 + we + Ne + pt + F.mainAxis : Se + Ne + pt + F.mainAxis, mt = e.elements.arrow && cn(e.elements.arrow), fn = mt ? h === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, Nt = (B = W?.[h]) != null ? B : 0, dn = K + ht - Nt - fn, pn = K + ze - Nt, It = Wt(d ? Kn(H, dn) : H, K, d ? at(ke, pn) : ke);
8495
8495
  x[h] = It, $[h] = It - K;
8496
8496
  }
8497
8497
  if (a) {
8498
- var Dt, hn = h === "x" ? ee : te, mn = h === "x" ? he : me, Ie = x[M], Fe = M === "y" ? "height" : "width", Rt = Ie + y[hn], Ue = Ie - y[mn], Pt = [ee, te].indexOf(b) !== -1, gn = (Dt = H?.[M]) != null ? Dt : 0, yn = Pt ? Rt : Ie - N[Fe] - P[Fe] - gn + L.altAxis, vn = Pt ? Ie + N[Fe] + P[Fe] - gn - L.altAxis : Ue, bn = d && Pt ? Ju(yn, Ie, vn) : Ht(d ? yn : Rt, Ie, d ? vn : Ue);
8498
+ var Dt, hn = h === "x" ? ee : te, mn = h === "x" ? he : me, Ie = x[M], Le = M === "y" ? "height" : "width", Rt = Ie + y[hn], Ue = Ie - y[mn], Pt = [ee, te].indexOf(b) !== -1, gn = (Dt = W?.[M]) != null ? Dt : 0, yn = Pt ? Rt : Ie - N[Le] - P[Le] - gn + F.altAxis, vn = Pt ? Ie + N[Le] + P[Le] - gn - F.altAxis : Ue, bn = d && Pt ? Ju(yn, Ie, vn) : Wt(d ? yn : Rt, Ie, d ? vn : Ue);
8499
8499
  x[M] = bn, $[M] = bn - Ie;
8500
8500
  }
8501
8501
  e.modifiersData[r] = $;
@@ -8620,8 +8620,8 @@ function If(n) {
8620
8620
  setOptions: function(b) {
8621
8621
  var C = typeof b == "function" ? b(u.options) : b;
8622
8622
  m(), u.options = Object.assign({}, o, u.options, C), u.scrollParents = {
8623
- reference: ct(a) ? Wt(a) : a.contextElement ? Wt(a.contextElement) : [],
8624
- popper: Wt(l)
8623
+ reference: ct(a) ? Ht(a) : a.contextElement ? Ht(a.contextElement) : [],
8624
+ popper: Ht(l)
8625
8625
  };
8626
8626
  var T = Mf(Nf([].concat(r, u.options.modifiers)));
8627
8627
  return u.orderedModifiers = T.filter(function(h) {
@@ -8640,19 +8640,19 @@ function If(n) {
8640
8640
  u.rects = {
8641
8641
  reference: Ef(C, cn(T), u.options.strategy === "fixed"),
8642
8642
  popper: ii(T)
8643
- }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(L) {
8644
- return u.modifiersData[L.name] = Object.assign({}, L.data);
8643
+ }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(F) {
8644
+ return u.modifiersData[F.name] = Object.assign({}, F.data);
8645
8645
  });
8646
8646
  for (var h = 0; h < u.orderedModifiers.length; h++) {
8647
8647
  if (u.reset === !0) {
8648
8648
  u.reset = !1, h = -1;
8649
8649
  continue;
8650
8650
  }
8651
- var M = u.orderedModifiers[h], x = M.fn, N = M.options, P = N === void 0 ? {} : N, F = M.name;
8651
+ var M = u.orderedModifiers[h], x = M.fn, N = M.options, P = N === void 0 ? {} : N, L = M.name;
8652
8652
  typeof x == "function" && (u = x({
8653
8653
  state: u,
8654
8654
  options: P,
8655
- name: F,
8655
+ name: L,
8656
8656
  instance: d
8657
8657
  }) || u);
8658
8658
  }
@@ -8698,7 +8698,7 @@ function If(n) {
8698
8698
  return d;
8699
8699
  };
8700
8700
  }
8701
- var Df = [ef, bf, Zu, Fs, yf, df, wf, Gu, hf], Rf = /* @__PURE__ */ If({
8701
+ var Df = [ef, bf, Zu, Ls, yf, df, wf, Gu, hf], Rf = /* @__PURE__ */ If({
8702
8702
  defaultModifiers: Df
8703
8703
  }), Pf = "tippy-box", qs = "tippy-content", Bf = "tippy-backdrop", Ks = "tippy-arrow", Us = "tippy-svg-arrow", Ye = {
8704
8704
  passive: !0,
@@ -8733,13 +8733,13 @@ function io(n, e) {
8733
8733
  }, e);
8734
8734
  };
8735
8735
  }
8736
- function Ff(n, e) {
8736
+ function Lf(n, e) {
8737
8737
  var t = Object.assign({}, n);
8738
8738
  return e.forEach(function(r) {
8739
8739
  delete t[r];
8740
8740
  }), t;
8741
8741
  }
8742
- function Lf(n) {
8742
+ function Ff(n) {
8743
8743
  return n.split(/\s+/).filter(Boolean);
8744
8744
  }
8745
8745
  function wt(n) {
@@ -8775,10 +8775,10 @@ function nn(n) {
8775
8775
  function jf(n) {
8776
8776
  return ci(n, "NodeList");
8777
8777
  }
8778
- function Hf(n) {
8778
+ function Wf(n) {
8779
8779
  return ci(n, "MouseEvent");
8780
8780
  }
8781
- function Wf(n) {
8781
+ function Hf(n) {
8782
8782
  return !!(n && n._tippy && n._tippy.reference === n);
8783
8783
  }
8784
8784
  function Jf(n) {
@@ -8835,7 +8835,7 @@ function Xs() {
8835
8835
  }
8836
8836
  function Gf() {
8837
8837
  var n = document.activeElement;
8838
- if (Wf(n)) {
8838
+ if (Hf(n)) {
8839
8839
  var e = n._tippy;
8840
8840
  n.blur && !e.state.isVisible && n.blur();
8841
8841
  }
@@ -9009,7 +9009,7 @@ function ea(n, e) {
9009
9009
  n === void 0 && (n = {}), e === void 0 && (e = []);
9010
9010
  var t = Object.keys(n);
9011
9011
  t.forEach(function(r) {
9012
- var i = Ff(ae, Object.keys(Zs)), o = !zf(i, r);
9012
+ var i = Lf(ae, Object.keys(Zs)), o = !zf(i, r);
9013
9013
  o && (o = e.filter(function(s) {
9014
9014
  return s.name === r;
9015
9015
  }).length === 0), De(o, ["`" + 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.", `
@@ -9101,18 +9101,18 @@ function ad(n, e) {
9101
9101
  x.setAttribute("data-tippy-root", ""), x.id = "tippy-" + h.id, h.popper = x, n._tippy = h, x._tippy = h;
9102
9102
  var P = C.map(function(v) {
9103
9103
  return v.fn(h);
9104
- }), F = n.hasAttribute("aria-expanded");
9105
- return mt(), we(), K(), W("onCreate", [h]), t.showOnCreate && Rt(), x.addEventListener("mouseenter", function() {
9104
+ }), L = n.hasAttribute("aria-expanded");
9105
+ return mt(), we(), K(), H("onCreate", [h]), t.showOnCreate && Rt(), x.addEventListener("mouseenter", function() {
9106
9106
  h.props.interactive && h.state.isVisible && h.clearDelayTimeouts();
9107
9107
  }), x.addEventListener("mouseleave", function() {
9108
9108
  h.props.interactive && h.props.trigger.indexOf("mouseenter") >= 0 && re().addEventListener("mousemove", g);
9109
9109
  }), h;
9110
- function L() {
9110
+ function F() {
9111
9111
  var v = h.props.touch;
9112
9112
  return Array.isArray(v) ? v : [v, 0];
9113
9113
  }
9114
- function H() {
9115
- return L()[0] === "hold";
9114
+ function W() {
9115
+ return F()[0] === "hold";
9116
9116
  }
9117
9117
  function $() {
9118
9118
  var v;
@@ -9134,7 +9134,7 @@ function ad(n, e) {
9134
9134
  function K(v) {
9135
9135
  v === void 0 && (v = !1), x.style.pointerEvents = h.props.interactive && !v ? "" : "none", x.style.zIndex = "" + h.props.zIndex;
9136
9136
  }
9137
- function W(v, w, E) {
9137
+ function H(v, w, E) {
9138
9138
  if (E === void 0 && (E = !0), P.forEach(function(I) {
9139
9139
  I[v] && I[v].apply(I, w);
9140
9140
  }), E) {
@@ -9158,7 +9158,7 @@ function ad(n, e) {
9158
9158
  }
9159
9159
  }
9160
9160
  function we() {
9161
- if (!(F || !h.props.aria.expanded)) {
9161
+ if (!(L || !h.props.aria.expanded)) {
9162
9162
  var v = wt(h.props.triggerTarget || n);
9163
9163
  v.forEach(function(w) {
9164
9164
  h.props.interactive ? w.setAttribute("aria-expanded", h.state.isVisible && w === B() ? "true" : "false") : w.removeAttribute("aria-expanded");
@@ -9180,7 +9180,7 @@ function ad(n, e) {
9180
9180
  if (Ce.isTouch || h.state.isVisible && h.props.trigger.indexOf("click") >= 0)
9181
9181
  return;
9182
9182
  } else
9183
- W("onClickOutside", [h, v]);
9183
+ H("onClickOutside", [h, v]);
9184
9184
  h.props.hideOnClick === !0 && (h.clearDelayTimeouts(), h.hide(), a = !0, setTimeout(function() {
9185
9185
  a = !1;
9186
9186
  }), h.state.isMounted || Ae());
@@ -9231,11 +9231,11 @@ function ad(n, e) {
9231
9231
  });
9232
9232
  }
9233
9233
  function mt() {
9234
- H() && (ze("touchstart", Nt, {
9234
+ W() && (ze("touchstart", Nt, {
9235
9235
  passive: !0
9236
9236
  }), ze("touchend", pn, {
9237
9237
  passive: !0
9238
- })), Lf(h.props.trigger).forEach(function(v) {
9238
+ })), Ff(h.props.trigger).forEach(function(v) {
9239
9239
  if (v !== "manual")
9240
9240
  switch (ze(v, Nt), v) {
9241
9241
  case "mouseenter":
@@ -9260,7 +9260,7 @@ function ad(n, e) {
9260
9260
  var w, E = !1;
9261
9261
  if (!(!h.state.isEnabled || Dt(v) || a)) {
9262
9262
  var R = ((w = u) == null ? void 0 : w.type) === "focus";
9263
- u = v, m = v.currentTarget, we(), !h.state.isVisible && Hf(v) && Mn.forEach(function(I) {
9263
+ u = v, m = v.currentTarget, we(), !h.state.isVisible && Wf(v) && Mn.forEach(function(I) {
9264
9264
  return I(v);
9265
9265
  }), v.type === "click" && (h.props.trigger.indexOf("mouseenter") < 0 || s) && h.props.hideOnClick !== !1 && h.state.isVisible ? E = !0 : Rt(v), v.type === "click" && (s = !E), E && !R && Ue(v);
9266
9266
  }
@@ -9268,7 +9268,7 @@ function ad(n, e) {
9268
9268
  function dn(v) {
9269
9269
  var w = v.target, E = B().contains(w) || x.contains(w);
9270
9270
  if (!(v.type === "mousemove" && E)) {
9271
- var R = Fe().concat(x).map(function(I) {
9271
+ var R = Le().concat(x).map(function(I) {
9272
9272
  var X, fe = I._tippy, gt = (X = fe.popperInstance) == null ? void 0 : X.state;
9273
9273
  return gt ? {
9274
9274
  popperRect: I.getBoundingClientRect(),
@@ -9293,7 +9293,7 @@ function ad(n, e) {
9293
9293
  h.props.trigger.indexOf("focusin") < 0 && v.target !== B() || h.props.interactive && v.relatedTarget && x.contains(v.relatedTarget) || Ue(v);
9294
9294
  }
9295
9295
  function Dt(v) {
9296
- return Ce.isTouch ? H() !== v.type.indexOf("touch") >= 0 : !1;
9296
+ return Ce.isTouch ? W() !== v.type.indexOf("touch") >= 0 : !1;
9297
9297
  }
9298
9298
  function hn() {
9299
9299
  mn();
@@ -9365,18 +9365,18 @@ function ad(n, e) {
9365
9365
 
9366
9366
  `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
9367
9367
  }
9368
- function Fe() {
9368
+ function Le() {
9369
9369
  return Un(x.querySelectorAll("[data-tippy-root]"));
9370
9370
  }
9371
9371
  function Rt(v) {
9372
- h.clearDelayTimeouts(), v && W("onTrigger", [h, v]), ye();
9373
- var w = q(!0), E = L(), R = E[0], I = E[1];
9372
+ h.clearDelayTimeouts(), v && H("onTrigger", [h, v]), ye();
9373
+ var w = q(!0), E = F(), R = E[0], I = E[1];
9374
9374
  Ce.isTouch && R === "hold" && I && (w = I), w ? r = setTimeout(function() {
9375
9375
  h.show();
9376
9376
  }, w) : h.show();
9377
9377
  }
9378
9378
  function Ue(v) {
9379
- if (h.clearDelayTimeouts(), W("onUntrigger", [h, v]), !h.state.isVisible) {
9379
+ if (h.clearDelayTimeouts(), H("onUntrigger", [h, v]), !h.state.isVisible) {
9380
9380
  Ae();
9381
9381
  return;
9382
9382
  }
@@ -9400,15 +9400,15 @@ function ad(n, e) {
9400
9400
  }
9401
9401
  function vn(v) {
9402
9402
  if (process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("setProps")), !h.state.isDestroyed) {
9403
- W("onBeforeUpdate", [h, v]), fn();
9403
+ H("onBeforeUpdate", [h, v]), fn();
9404
9404
  var w = h.props, E = fo(n, Object.assign({}, w, so(v), {
9405
9405
  ignoreAttributes: !0
9406
9406
  }));
9407
9407
  h.props = E, mt(), w.interactiveDebounce !== E.interactiveDebounce && (qe(), g = io(dn, E.interactiveDebounce)), w.triggerTarget && !E.triggerTarget ? wt(w.triggerTarget).forEach(function(R) {
9408
9408
  R.removeAttribute("aria-expanded");
9409
- }) : E.triggerTarget && n.removeAttribute("aria-expanded"), we(), K(), N && N(w, E), h.popperInstance && (hn(), Fe().forEach(function(R) {
9409
+ }) : E.triggerTarget && n.removeAttribute("aria-expanded"), we(), K(), N && N(w, E), h.popperInstance && (hn(), Le().forEach(function(R) {
9410
9410
  requestAnimationFrame(R._tippy.popperInstance.forceUpdate);
9411
- })), W("onAfterUpdate", [h, v]);
9411
+ })), H("onAfterUpdate", [h, v]);
9412
9412
  }
9413
9413
  }
9414
9414
  function bn(v) {
@@ -9419,7 +9419,7 @@ function ad(n, e) {
9419
9419
  function ra() {
9420
9420
  process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("show"));
9421
9421
  var v = h.state.isVisible, w = h.state.isDestroyed, E = !h.state.isEnabled, R = Ce.isTouch && !h.props.touch, I = hr(h.props.duration, 0, ae.duration);
9422
- if (!(v || w || E || R) && !B().hasAttribute("disabled") && (W("onShow", [h], !1), h.props.onShow(h) !== !1)) {
9422
+ if (!(v || w || E || R) && !B().hasAttribute("disabled") && (H("onShow", [h], !1), h.props.onShow(h) !== !1)) {
9423
9423
  if (h.state.isVisible = !0, $() && (x.style.visibility = "visible"), K(), ye(), h.state.isMounted || (x.style.transition = "none"), $()) {
9424
9424
  var X = ie(), fe = X.box, gt = X.content;
9425
9425
  mr([fe, gt], 0);
@@ -9431,8 +9431,8 @@ function ad(n, e) {
9431
9431
  var tr = ie(), xn = tr.box, yt = tr.content;
9432
9432
  mr([xn, yt], I), ao([xn, yt], "visible");
9433
9433
  }
9434
- ke(), we(), oo(yr, h), (Ge = h.popperInstance) == null || Ge.forceUpdate(), W("onMount", [h]), h.props.animation && $() && Ne(I, function() {
9435
- h.state.isShown = !0, W("onShown", [h]);
9434
+ ke(), we(), oo(yr, h), (Ge = h.popperInstance) == null || Ge.forceUpdate(), H("onMount", [h]), h.props.animation && $() && Ne(I, function() {
9435
+ h.state.isShown = !0, H("onShown", [h]);
9436
9436
  });
9437
9437
  }
9438
9438
  }, Ie();
@@ -9441,7 +9441,7 @@ function ad(n, e) {
9441
9441
  function ia() {
9442
9442
  process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("hide"));
9443
9443
  var v = !h.state.isVisible, w = h.state.isDestroyed, E = !h.state.isEnabled, R = hr(h.props.duration, 1, ae.duration);
9444
- if (!(v || w || E) && (W("onHide", [h], !1), h.props.onHide(h) !== !1)) {
9444
+ if (!(v || w || E) && (H("onHide", [h], !1), h.props.onHide(h) !== !1)) {
9445
9445
  if (h.state.isVisible = !1, h.state.isShown = !1, c = !1, s = !1, $() && (x.style.visibility = "hidden"), qe(), Ae(), K(!0), $()) {
9446
9446
  var I = ie(), X = I.box, fe = I.content;
9447
9447
  h.props.animation && (mr([X, fe], R), ao([X, fe], "hidden"));
@@ -9453,14 +9453,14 @@ function ad(n, e) {
9453
9453
  process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("hideWithInteractivity")), re().addEventListener("mousemove", g), oo(Mn, g), g(v);
9454
9454
  }
9455
9455
  function sa() {
9456
- process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("unmount")), h.state.isVisible && h.hide(), h.state.isMounted && (mn(), Fe().forEach(function(v) {
9456
+ process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("unmount")), h.state.isVisible && h.hide(), h.state.isMounted && (mn(), Le().forEach(function(v) {
9457
9457
  v._tippy.unmount();
9458
9458
  }), x.parentNode && x.parentNode.removeChild(x), yr = yr.filter(function(v) {
9459
9459
  return v !== h;
9460
- }), h.state.isMounted = !1, W("onHidden", [h]));
9460
+ }), h.state.isMounted = !1, H("onHidden", [h]));
9461
9461
  }
9462
9462
  function aa() {
9463
- process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("destroy")), !h.state.isDestroyed && (h.clearDelayTimeouts(), h.unmount(), fn(), delete n._tippy, h.state.isDestroyed = !0, W("onDestroy", [h]));
9463
+ process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("destroy")), !h.state.isDestroyed && (h.clearDelayTimeouts(), h.unmount(), fn(), delete n._tippy, h.state.isDestroyed = !0, H("onDestroy", [h]));
9464
9464
  }
9465
9465
  }
9466
9466
  function un(n, e) {
@@ -9488,7 +9488,7 @@ function un(n, e) {
9488
9488
  un.defaultProps = ae;
9489
9489
  un.setDefaultProps = rd;
9490
9490
  un.currentInput = Ce;
9491
- Object.assign({}, Fs, {
9491
+ Object.assign({}, Ls, {
9492
9492
  effect: function(e) {
9493
9493
  var t = e.state, r = {
9494
9494
  popper: {