@fileverse-dev/ddoc 2.2.8-patch-4 → 2.2.8-patch-5

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.
@@ -2,7 +2,7 @@ var joe = Object.defineProperty;
2
2
  var Doe = (e, t, n) => t in e ? joe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var hi = (e, t, n) => Doe(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as L from "react";
5
- import ke, { createContext as fn, useContext as Mt, useRef as Xe, useState as Re, useDebugValue as iw, useEffect as Pe, forwardRef as hn, createElement as Ve, useCallback as Ze, useLayoutEffect as gl, memo as f2, useMemo as It, useId as M0, Children as wz, isValidElement as Fz, useInsertionEffect as S3, createRef as El, Fragment as I1, Suspense as Soe, Component as aw, cloneElement as Mz, useImperativeHandle as Cz } from "react";
5
+ import ke, { createContext as fn, useContext as Mt, useRef as et, useState as Re, useDebugValue as iw, useEffect as Pe, forwardRef as hn, createElement as Ve, useCallback as Ze, useLayoutEffect as gl, memo as f2, useMemo as It, useId as M0, Children as wz, isValidElement as Fz, useInsertionEffect as S3, createRef as El, Fragment as I1, Suspense as Soe, Component as aw, cloneElement as Mz, useImperativeHandle as Cz } from "react";
6
6
  import * as p2 from "react-dom";
7
7
  import sw, { flushSync as Toe, createPortal as Ez } from "react-dom";
8
8
  var Br = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -497,7 +497,7 @@ Check the render method of \`` + z + "`.";
497
497
  return "";
498
498
  }
499
499
  var wt = {};
500
- function rn(z) {
500
+ function on(z) {
501
501
  {
502
502
  var ye = Rt();
503
503
  if (!ye) {
@@ -514,7 +514,7 @@ Check the top-level render call using <` + je + ">.");
514
514
  if (!z._store || z._store.validated || z.key != null)
515
515
  return;
516
516
  z._store.validated = !0;
517
- var je = rn(ye);
517
+ var je = on(ye);
518
518
  if (wt[je])
519
519
  return;
520
520
  wt[je] = !0;
@@ -1173,7 +1173,7 @@ let dn = class h8 {
1173
1173
  dn.none = [];
1174
1174
  class C4 extends Error {
1175
1175
  }
1176
- class et {
1176
+ class Qe {
1177
1177
  /**
1178
1178
  Create a slice. When specifying a non-zero open depth, you must
1179
1179
  make sure that there are nodes of at least that depth at the
@@ -1200,13 +1200,13 @@ class et {
1200
1200
  */
1201
1201
  insertAt(t, n) {
1202
1202
  let r = Sz(this.content, t + this.openStart, n);
1203
- return r && new et(r, this.openStart, this.openEnd);
1203
+ return r && new Qe(r, this.openStart, this.openEnd);
1204
1204
  }
1205
1205
  /**
1206
1206
  @internal
1207
1207
  */
1208
1208
  removeBetween(t, n) {
1209
- return new et(Dz(this.content, t + this.openStart, n + this.openStart), this.openStart, this.openEnd);
1209
+ return new Qe(Dz(this.content, t + this.openStart, n + this.openStart), this.openStart, this.openEnd);
1210
1210
  }
1211
1211
  /**
1212
1212
  Tests whether this slice is equal to another slice.
@@ -1234,11 +1234,11 @@ class et {
1234
1234
  */
1235
1235
  static fromJSON(t, n) {
1236
1236
  if (!n)
1237
- return et.empty;
1237
+ return Qe.empty;
1238
1238
  let r = n.openStart || 0, o = n.openEnd || 0;
1239
1239
  if (typeof r != "number" || typeof o != "number")
1240
1240
  throw new RangeError("Invalid input for Slice.fromJSON");
1241
- return new et(Oe.fromJSON(t, n.content), r, o);
1241
+ return new Qe(Oe.fromJSON(t, n.content), r, o);
1242
1242
  }
1243
1243
  /**
1244
1244
  Create a slice from a fragment by taking the maximum possible
@@ -1250,10 +1250,10 @@ class et {
1250
1250
  r++;
1251
1251
  for (let i = t.lastChild; i && !i.isLeaf && (n || !i.type.spec.isolating); i = i.lastChild)
1252
1252
  o++;
1253
- return new et(t, r, o);
1253
+ return new Qe(t, r, o);
1254
1254
  }
1255
1255
  }
1256
- et.empty = new et(Oe.empty, 0, 0);
1256
+ Qe.empty = new Qe(Oe.empty, 0, 0);
1257
1257
  function Dz(e, t, n) {
1258
1258
  let { index: r, offset: o } = e.findIndex(t), i = e.maybeChild(r), { index: a, offset: s } = e.findIndex(n);
1259
1259
  if (o == t || i.isText) {
@@ -1779,9 +1779,9 @@ let Cu = class m8 {
1779
1779
  */
1780
1780
  slice(t, n = this.content.size, r = !1) {
1781
1781
  if (t == n)
1782
- return et.empty;
1782
+ return Qe.empty;
1783
1783
  let o = this.resolve(t), i = this.resolve(n), a = r ? 0 : o.sharedDepth(n), s = o.start(a), u = o.node(a).content.cut(o.pos - s, i.pos - s);
1784
- return new et(u, o.depth - a, i.depth - a);
1784
+ return new Qe(u, o.depth - a, i.depth - a);
1785
1785
  }
1786
1786
  /**
1787
1787
  Replace the part of the document between the given positions with
@@ -2822,7 +2822,7 @@ let Eu = class b8 {
2822
2822
  */
2823
2823
  parseSlice(t, n = {}) {
2824
2824
  let r = new yj(this, n, !0);
2825
- return r.addAll(t, dn.none, n.from, n.to), et.maxOpen(r.finish());
2825
+ return r.addAll(t, dn.none, n.from, n.to), Qe.maxOpen(r.finish());
2826
2826
  }
2827
2827
  /**
2828
2828
  @internal
@@ -3801,7 +3801,7 @@ class $l extends to {
3801
3801
  super(), this.from = t, this.to = n, this.mark = r;
3802
3802
  }
3803
3803
  apply(t) {
3804
- let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new et(uw(n.content, (a, s) => !a.isAtom || !s.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), o), n.openStart, n.openEnd);
3804
+ let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new Qe(uw(n.content, (a, s) => !a.isAtom || !s.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), o), n.openStart, n.openEnd);
3805
3805
  return cr.fromReplace(t, this.from, this.to, i);
3806
3806
  }
3807
3807
  invert() {
@@ -3840,7 +3840,7 @@ class Ba extends to {
3840
3840
  super(), this.from = t, this.to = n, this.mark = r;
3841
3841
  }
3842
3842
  apply(t) {
3843
- let n = t.slice(this.from, this.to), r = new et(uw(n.content, (o) => o.mark(this.mark.removeFromSet(o.marks)), t), n.openStart, n.openEnd);
3843
+ let n = t.slice(this.from, this.to), r = new Qe(uw(n.content, (o) => o.mark(this.mark.removeFromSet(o.marks)), t), n.openStart, n.openEnd);
3844
3844
  return cr.fromReplace(t, this.from, this.to, r);
3845
3845
  }
3846
3846
  invert() {
@@ -3883,7 +3883,7 @@ class Jl extends to {
3883
3883
  if (!n)
3884
3884
  return cr.fail("No node at mark step's position");
3885
3885
  let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
3886
- return cr.fromReplace(t, this.pos, this.pos + 1, new et(Oe.from(r), 0, n.isLeaf ? 0 : 1));
3886
+ return cr.fromReplace(t, this.pos, this.pos + 1, new Qe(Oe.from(r), 0, n.isLeaf ? 0 : 1));
3887
3887
  }
3888
3888
  invert(t) {
3889
3889
  let n = t.nodeAt(this.pos);
@@ -3927,7 +3927,7 @@ class qu extends to {
3927
3927
  if (!n)
3928
3928
  return cr.fail("No node at mark step's position");
3929
3929
  let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
3930
- return cr.fromReplace(t, this.pos, this.pos + 1, new et(Oe.from(r), 0, n.isLeaf ? 0 : 1));
3930
+ return cr.fromReplace(t, this.pos, this.pos + 1, new Qe(Oe.from(r), 0, n.isLeaf ? 0 : 1));
3931
3931
  }
3932
3932
  invert(t) {
3933
3933
  let n = t.nodeAt(this.pos);
@@ -3980,10 +3980,10 @@ class Fr extends to {
3980
3980
  if (!(t instanceof Fr) || t.structure || this.structure)
3981
3981
  return null;
3982
3982
  if (this.from + this.slice.size == t.from && !this.slice.openEnd && !t.slice.openStart) {
3983
- let n = this.slice.size + t.slice.size == 0 ? et.empty : new et(this.slice.content.append(t.slice.content), this.slice.openStart, t.slice.openEnd);
3983
+ let n = this.slice.size + t.slice.size == 0 ? Qe.empty : new Qe(this.slice.content.append(t.slice.content), this.slice.openStart, t.slice.openEnd);
3984
3984
  return new Fr(this.from, this.to + (t.to - t.from), n, this.structure);
3985
3985
  } else if (t.to == this.from && !this.slice.openStart && !t.slice.openEnd) {
3986
- let n = this.slice.size + t.slice.size == 0 ? et.empty : new et(t.slice.content.append(this.slice.content), t.slice.openStart, this.slice.openEnd);
3986
+ let n = this.slice.size + t.slice.size == 0 ? Qe.empty : new Qe(t.slice.content.append(this.slice.content), t.slice.openStart, this.slice.openEnd);
3987
3987
  return new Fr(t.from, this.to, n, this.structure);
3988
3988
  } else
3989
3989
  return null;
@@ -3998,7 +3998,7 @@ class Fr extends to {
3998
3998
  static fromJSON(t, n) {
3999
3999
  if (typeof n.from != "number" || typeof n.to != "number")
4000
4000
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
4001
- return new Fr(n.from, n.to, et.fromJSON(t, n.slice), !!n.structure);
4001
+ return new Fr(n.from, n.to, Qe.fromJSON(t, n.slice), !!n.structure);
4002
4002
  }
4003
4003
  }
4004
4004
  to.jsonID("replace", Fr);
@@ -4056,7 +4056,7 @@ class Er extends to {
4056
4056
  static fromJSON(t, n) {
4057
4057
  if (typeof n.from != "number" || typeof n.to != "number" || typeof n.gapFrom != "number" || typeof n.gapTo != "number" || typeof n.insert != "number")
4058
4058
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
4059
- return new Er(n.from, n.to, n.gapFrom, n.gapTo, et.fromJSON(t, n.slice), n.insert, !!n.structure);
4059
+ return new Er(n.from, n.to, n.gapFrom, n.gapTo, Qe.fromJSON(t, n.slice), n.insert, !!n.structure);
4060
4060
  }
4061
4061
  }
4062
4062
  to.jsonID("replaceAround", Er);
@@ -4118,7 +4118,7 @@ function cw(e, t, n, r = n.contentMatch, o = !0) {
4118
4118
  for (let l = 0; l < i.childCount; l++) {
4119
4119
  let u = i.child(l), c = s + u.nodeSize, d = r.matchType(u.type);
4120
4120
  if (!d)
4121
- a.push(new Fr(s, c, et.empty));
4121
+ a.push(new Fr(s, c, Qe.empty));
4122
4122
  else {
4123
4123
  r = d;
4124
4124
  for (let f = 0; f < u.marks.length; f++)
@@ -4126,14 +4126,14 @@ function cw(e, t, n, r = n.contentMatch, o = !0) {
4126
4126
  if (o && u.isText && n.whitespace != "pre") {
4127
4127
  let f, p = /\r?\n|\r/g, h;
4128
4128
  for (; f = p.exec(u.text); )
4129
- h || (h = new et(Oe.from(n.schema.text(" ", n.allowedMarks(u.marks))), 0, 0)), a.push(new Fr(s + f.index, s + f.index + f[0].length, h));
4129
+ h || (h = new Qe(Oe.from(n.schema.text(" ", n.allowedMarks(u.marks))), 0, 0)), a.push(new Fr(s + f.index, s + f.index + f[0].length, h));
4130
4130
  }
4131
4131
  }
4132
4132
  s = c;
4133
4133
  }
4134
4134
  if (!r.validEnd) {
4135
4135
  let l = r.fillBefore(Oe.empty, !0);
4136
- e.replace(s, s, new et(l, 0, 0));
4136
+ e.replace(s, s, new Qe(l, 0, 0));
4137
4137
  }
4138
4138
  for (let l = a.length - 1; l >= 0; l--)
4139
4139
  e.step(a[l]);
@@ -4159,7 +4159,7 @@ function uie(e, t, n) {
4159
4159
  let f = Oe.empty, p = 0;
4160
4160
  for (let h = i, g = !1; h > n; h--)
4161
4161
  g || o.after(h + 1) < o.end(h) ? (g = !0, f = Oe.from(o.node(h).copy(f)), p++) : u++;
4162
- e.step(new Er(l, u, a, s, new et(c.append(f), d, p), c.size - d, !0));
4162
+ e.step(new Er(l, u, a, s, new Qe(c.append(f), d, p), c.size - d, !0));
4163
4163
  }
4164
4164
  function dw(e, t, n = null, r = e) {
4165
4165
  let o = cie(e, t), i = o && die(r, t);
@@ -4195,7 +4195,7 @@ function fie(e, t, n) {
4195
4195
  r = Oe.from(n[a].type.create(n[a].attrs, r));
4196
4196
  }
4197
4197
  let o = t.start, i = t.end;
4198
- e.step(new Er(o, i, o, i, new et(r, 0, 0), n.length, !0));
4198
+ e.step(new Er(o, i, o, i, new Qe(r, 0, 0), n.length, !0));
4199
4199
  }
4200
4200
  function pie(e, t, n, r, o) {
4201
4201
  if (!r.isTextblock)
@@ -4211,7 +4211,7 @@ function pie(e, t, n, r, o) {
4211
4211
  }
4212
4212
  u === !1 && $z(e, a, s, i), cw(e, e.mapping.slice(i).map(s, 1), r, void 0, u === null);
4213
4213
  let c = e.mapping.slice(i), d = c.map(s, 1), f = c.map(s + a.nodeSize, 1);
4214
- return e.step(new Er(d, f, d + 1, f - 1, new et(Oe.from(r.create(l, null, a.marks)), 0, 0), 1, !0)), u === !0 && Yz(e, a, s, i), !1;
4214
+ return e.step(new Er(d, f, d + 1, f - 1, new Qe(Oe.from(r.create(l, null, a.marks)), 0, 0), 1, !0)), u === !0 && Yz(e, a, s, i), !1;
4215
4215
  }
4216
4216
  });
4217
4217
  }
@@ -4249,7 +4249,7 @@ function gie(e, t, n, r, o) {
4249
4249
  return e.replaceWith(t, t + i.nodeSize, a);
4250
4250
  if (!n.validContent(i.content))
4251
4251
  throw new RangeError("Invalid content for node type " + n.name);
4252
- e.step(new Er(t, t + i.nodeSize, t + 1, t + i.nodeSize - 1, new et(Oe.from(a), 0, 0), 1, !0));
4252
+ e.step(new Er(t, t + i.nodeSize, t + 1, t + i.nodeSize - 1, new Qe(Oe.from(a), 0, 0), 1, !0));
4253
4253
  }
4254
4254
  function Vs(e, t, n = 1, r) {
4255
4255
  let o = e.resolve(t), i = o.depth - n, a = r && r[r.length - 1] || o.parent;
@@ -4275,7 +4275,7 @@ function mie(e, t, n = 1, r) {
4275
4275
  let c = r && r[u];
4276
4276
  a = Oe.from(c ? c.type.create(c.attrs, a) : o.node(s).copy(a));
4277
4277
  }
4278
- e.step(new Fr(t, t, new et(i.append(a), n, n), !0));
4278
+ e.step(new Fr(t, t, new Qe(i.append(a), n, n), !0));
4279
4279
  }
4280
4280
  function R1(e, t) {
4281
4281
  let n = e.resolve(t), r = n.index();
@@ -4318,7 +4318,7 @@ function bie(e, t, n) {
4318
4318
  }
4319
4319
  a.inlineContent && cw(e, t + n - 1, a, i.node().contentMatchAt(i.index()), r == null);
4320
4320
  let l = e.mapping.slice(s), u = l.map(t - n);
4321
- if (e.step(new Fr(u, l.map(t + n, -1), et.empty, !0)), r === !0) {
4321
+ if (e.step(new Fr(u, l.map(t + n, -1), Qe.empty, !0)), r === !0) {
4322
4322
  let c = e.doc.resolve(u);
4323
4323
  Yz(e, c.node(), c.before(), e.steps.length);
4324
4324
  }
@@ -4367,7 +4367,7 @@ function Qz(e, t, n) {
4367
4367
  }
4368
4368
  return null;
4369
4369
  }
4370
- function N3(e, t, n = t, r = et.empty) {
4370
+ function N3(e, t, n = t, r = Qe.empty) {
4371
4371
  if (t == n && !r.size)
4372
4372
  return null;
4373
4373
  let o = e.resolve(t), i = e.resolve(n);
@@ -4403,7 +4403,7 @@ class vie {
4403
4403
  let i = this.placed, a = r.depth, s = o.depth;
4404
4404
  for (; a && s && i.childCount == 1; )
4405
4405
  i = i.firstChild.content, a--, s--;
4406
- let l = new et(i, a, s);
4406
+ let l = new Qe(i, a, s);
4407
4407
  return t > -1 ? new Er(r.pos, t, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new Fr(r.pos, o.pos, l) : null;
4408
4408
  }
4409
4409
  // Find a position on the start spine of `this.unplaced` that has
@@ -4437,15 +4437,15 @@ class vie {
4437
4437
  }
4438
4438
  openMore() {
4439
4439
  let { content: t, openStart: n, openEnd: r } = this.unplaced, o = J6(t, n);
4440
- return !o.childCount || o.firstChild.isLeaf ? !1 : (this.unplaced = new et(t, n + 1, Math.max(r, o.size + n >= t.size - r ? n + 1 : 0)), !0);
4440
+ return !o.childCount || o.firstChild.isLeaf ? !1 : (this.unplaced = new Qe(t, n + 1, Math.max(r, o.size + n >= t.size - r ? n + 1 : 0)), !0);
4441
4441
  }
4442
4442
  dropNode() {
4443
4443
  let { content: t, openStart: n, openEnd: r } = this.unplaced, o = J6(t, n);
4444
4444
  if (o.childCount <= 1 && n > 0) {
4445
4445
  let i = t.size - n <= n + o.size;
4446
- this.unplaced = new et(Tf(t, n - 1, 1), n - 1, i ? n - 1 : r);
4446
+ this.unplaced = new Qe(Tf(t, n - 1, 1), n - 1, i ? n - 1 : r);
4447
4447
  } else
4448
- this.unplaced = new et(Tf(t, n, 1), n, r);
4448
+ this.unplaced = new Qe(Tf(t, n, 1), n, r);
4449
4449
  }
4450
4450
  // Move content from the unplaced slice at `sliceDepth` to the
4451
4451
  // frontier node at `frontierDepth`. Close that frontier node when
@@ -4475,7 +4475,7 @@ class vie {
4475
4475
  let b = m.lastChild;
4476
4476
  this.frontier.push({ type: b.type, match: b.contentMatchAt(b.childCount) }), m = b.content;
4477
4477
  }
4478
- this.unplaced = h ? t == 0 ? et.empty : new et(Tf(a.content, t - 1, 1), t - 1, p < 0 ? a.openEnd : t - 1) : new et(Tf(a.content, t, u), a.openStart, a.openEnd);
4478
+ this.unplaced = h ? t == 0 ? Qe.empty : new Qe(Tf(a.content, t - 1, 1), t - 1, p < 0 ? a.openEnd : t - 1) : new Qe(Tf(a.content, t, u), a.openStart, a.openEnd);
4479
4479
  }
4480
4480
  mustMoveInline() {
4481
4481
  if (!this.$to.parent.isTextblock)
@@ -4594,7 +4594,7 @@ function Fie(e, t, n, r) {
4594
4594
  m < 0 && (b = !1, m = -m);
4595
4595
  let k = o.node(m - 1), v = o.index(m - 1);
4596
4596
  if (k.canReplaceWith(v, v, h.type, h.marks))
4597
- return e.replace(o.before(m), b ? i.after(m) : n, new et(t_(r.content, 0, r.openStart, p), p, r.openEnd));
4597
+ return e.replace(o.before(m), b ? i.after(m) : n, new Qe(t_(r.content, 0, r.openStart, p), p, r.openEnd));
4598
4598
  }
4599
4599
  }
4600
4600
  let d = e.steps.length;
@@ -4619,7 +4619,7 @@ function Mie(e, t, n, r) {
4619
4619
  let o = xie(e.doc, t, r.type);
4620
4620
  o != null && (t = n = o);
4621
4621
  }
4622
- e.replaceRange(t, n, new et(Oe.from(r), 0, 0));
4622
+ e.replaceRange(t, n, new Qe(Oe.from(r), 0, 0));
4623
4623
  }
4624
4624
  function Cie(e, t, n) {
4625
4625
  let r = e.doc.resolve(t), o = e.doc.resolve(n), i = n_(r, o);
@@ -4661,7 +4661,7 @@ class xd extends to {
4661
4661
  r[i] = n.attrs[i];
4662
4662
  r[this.attr] = this.value;
4663
4663
  let o = n.type.create(r, null, n.marks);
4664
- return cr.fromReplace(t, this.pos, this.pos + 1, new et(Oe.from(o), 0, n.isLeaf ? 0 : 1));
4664
+ return cr.fromReplace(t, this.pos, this.pos + 1, new Qe(Oe.from(o), 0, n.isLeaf ? 0 : 1));
4665
4665
  }
4666
4666
  getMap() {
4667
4667
  return $o.empty;
@@ -4774,7 +4774,7 @@ class fw {
4774
4774
  Replace the part of the document between `from` and `to` with the
4775
4775
  given `slice`.
4776
4776
  */
4777
- replace(t, n = t, r = et.empty) {
4777
+ replace(t, n = t, r = Qe.empty) {
4778
4778
  let o = N3(this.doc, t, n, r);
4779
4779
  return o && this.step(o), this;
4780
4780
  }
@@ -4783,13 +4783,13 @@ class fw {
4783
4783
  fragment, node, or array of nodes.
4784
4784
  */
4785
4785
  replaceWith(t, n, r) {
4786
- return this.replace(t, n, new et(Oe.from(r), 0, 0));
4786
+ return this.replace(t, n, new Qe(Oe.from(r), 0, 0));
4787
4787
  }
4788
4788
  /**
4789
4789
  Delete the content between the given positions.
4790
4790
  */
4791
4791
  delete(t, n) {
4792
- return this.replace(t, n, et.empty);
4792
+ return this.replace(t, n, Qe.empty);
4793
4793
  }
4794
4794
  /**
4795
4795
  Insert the given content at the given position.
@@ -5017,14 +5017,14 @@ class jt {
5017
5017
  Replace the selection with a slice or, if no slice is given,
5018
5018
  delete the selection. Will append to the given transaction.
5019
5019
  */
5020
- replace(t, n = et.empty) {
5020
+ replace(t, n = Qe.empty) {
5021
5021
  let r = n.content.lastChild, o = null;
5022
5022
  for (let s = 0; s < n.openEnd; s++)
5023
5023
  o = r, r = r.lastChild;
5024
5024
  let i = t.steps.length, a = this.ranges;
5025
5025
  for (let s = 0; s < a.length; s++) {
5026
5026
  let { $from: l, $to: u } = a[s], c = t.mapping.slice(i);
5027
- t.replaceRange(c.map(l.pos), c.map(u.pos), s ? et.empty : n), s == 0 && Ej(t, i, (r ? r.isInline : o && o.isTextblock) ? -1 : 1);
5027
+ t.replaceRange(c.map(l.pos), c.map(u.pos), s ? Qe.empty : n), s == 0 && Ej(t, i, (r ? r.isInline : o && o.isTextblock) ? -1 : 1);
5028
5028
  }
5029
5029
  }
5030
5030
  /**
@@ -5150,8 +5150,8 @@ class ft extends jt {
5150
5150
  let o = t.resolve(n.map(this.anchor));
5151
5151
  return new ft(o.parent.inlineContent ? o : r, r);
5152
5152
  }
5153
- replace(t, n = et.empty) {
5154
- if (super.replace(t, n), n == et.empty) {
5153
+ replace(t, n = Qe.empty) {
5154
+ if (super.replace(t, n), n == Qe.empty) {
5155
5155
  let r = this.$from.marksAcross(this.$to);
5156
5156
  r && t.ensureMarks(r);
5157
5157
  }
@@ -5226,7 +5226,7 @@ class bt extends jt {
5226
5226
  return r ? jt.near(i) : new bt(i);
5227
5227
  }
5228
5228
  content() {
5229
- return new et(Oe.from(this.node), 0, 0);
5229
+ return new Qe(Oe.from(this.node), 0, 0);
5230
5230
  }
5231
5231
  eq(t) {
5232
5232
  return t instanceof bt && t.anchor == this.anchor;
@@ -5281,8 +5281,8 @@ class ti extends jt {
5281
5281
  constructor(t) {
5282
5282
  super(t.resolve(0), t.resolve(t.content.size));
5283
5283
  }
5284
- replace(t, n = et.empty) {
5285
- if (n == et.empty) {
5284
+ replace(t, n = Qe.empty) {
5285
+ if (n == Qe.empty) {
5286
5286
  t.delete(0, t.doc.content.size);
5287
5287
  let r = jt.atStart(t.doc);
5288
5288
  r.eq(t.selection) || t.setSelection(r);
@@ -5721,7 +5721,7 @@ function r_(e, t, n) {
5721
5721
  }
5722
5722
  return n;
5723
5723
  }
5724
- class tn {
5724
+ class Qt {
5725
5725
  /**
5726
5726
  Create a plugin.
5727
5727
  */
@@ -5739,7 +5739,7 @@ const t5 = /* @__PURE__ */ Object.create(null);
5739
5739
  function o_(e) {
5740
5740
  return e in t5 ? e + "$" + ++t5[e] : (t5[e] = 0, e + "$");
5741
5741
  }
5742
- class sn {
5742
+ class rn {
5743
5743
  /**
5744
5744
  Create a plugin key.
5745
5745
  */
@@ -7632,8 +7632,8 @@ function w_(e, t, n, r, o) {
7632
7632
  if (e.someProp("transformPastedText", (f) => {
7633
7633
  t = f(t, i || r, e);
7634
7634
  }), i)
7635
- return t ? new et(Oe.from(e.state.schema.text(t.replace(/\r\n?/g, `
7636
- `))), 0, 0) : et.empty;
7635
+ return t ? new Qe(Oe.from(e.state.schema.text(t.replace(/\r\n?/g, `
7636
+ `))), 0, 0) : Qe.empty;
7637
7637
  let d = e.someProp("clipboardTextParser", (f) => f(t, o, r, e));
7638
7638
  if (d)
7639
7639
  s = d;
@@ -7666,7 +7666,7 @@ function w_(e, t, n, r, o) {
7666
7666
  }
7667
7667
  })), c)
7668
7668
  s = Fae(Jj(s, +c[1], +c[2]), c[4]);
7669
- else if (s = et.maxOpen(xae(s.content, o), !0), s.openStart || s.openEnd) {
7669
+ else if (s = Qe.maxOpen(xae(s.content, o), !0), s.openStart || s.openEnd) {
7670
7670
  let d = 0, f = 0;
7671
7671
  for (let p = s.content.firstChild; d < s.openStart && !p.type.spec.isolating; d++, p = p.firstChild)
7672
7672
  ;
@@ -7727,7 +7727,7 @@ function S8(e, t, n, r, o, i) {
7727
7727
  return e.childCount > 1 && (i = 0), o < r - 1 && (s = S8(s, t, n, r, o + 1, i)), o >= n && (s = t < 0 ? a.contentMatchAt(0).fillBefore(s, i <= o).append(s) : s.append(a.contentMatchAt(a.childCount).fillBefore(Oe.empty, !0))), e.replaceChild(t < 0 ? 0 : e.childCount - 1, a.copy(s));
7728
7728
  }
7729
7729
  function Jj(e, t, n) {
7730
- return t < e.openStart && (e = new et(S8(e.content, -1, t, e.openStart, 0, e.openEnd), t, e.openEnd)), n < e.openEnd && (e = new et(S8(e.content, 1, n, e.openEnd, 0, 0), e.openStart, n)), e;
7730
+ return t < e.openStart && (e = new Qe(S8(e.content, -1, t, e.openStart, 0, e.openEnd), t, e.openEnd)), n < e.openEnd && (e = new Qe(S8(e.content, 1, n, e.openEnd, 0, 0), e.openStart, n)), e;
7731
7731
  }
7732
7732
  const E_ = {
7733
7733
  thead: ["table"],
@@ -7781,7 +7781,7 @@ function Fae(e, t) {
7781
7781
  break;
7782
7782
  o = Oe.from(l.create(r[s + 1], o)), i++, a++;
7783
7783
  }
7784
- return new et(o, i, a);
7784
+ return new Qe(o, i, a);
7785
7785
  }
7786
7786
  const go = {}, mo = {}, Mae = { touchstart: !0, touchmove: !0 };
7787
7787
  class Cae {
@@ -8097,7 +8097,7 @@ function Vae(e, t) {
8097
8097
  }
8098
8098
  function Tp(e, t, n, r, o) {
8099
8099
  let i = w_(e, t, n, r, e.state.selection.$from);
8100
- if (e.someProp("handlePaste", (l) => l(e, o, i || et.empty)))
8100
+ if (e.someProp("handlePaste", (l) => l(e, o, i || Qe.empty)))
8101
8101
  return !0;
8102
8102
  if (!i)
8103
8103
  return !1;
@@ -8163,7 +8163,7 @@ mo.drop = (e, t) => {
8163
8163
  a = h(a, e);
8164
8164
  }) : a = w_(e, L_(n.dataTransfer), Sp ? null : n.dataTransfer.getData("text/html"), !1, i);
8165
8165
  let s = !!(r && I_(e, n));
8166
- if (e.someProp("handleDrop", (h) => h(e, n, a || et.empty, s))) {
8166
+ if (e.someProp("handleDrop", (h) => h(e, n, a || Qe.empty, s))) {
8167
8167
  n.preventDefault();
8168
8168
  return;
8169
8169
  }
@@ -9614,7 +9614,7 @@ function l5(e, t, n = !0) {
9614
9614
  return t.altKey && (e = "Alt-" + e), t.ctrlKey && (e = "Ctrl-" + e), t.metaKey && (e = "Meta-" + e), n && t.shiftKey && (e = "Shift-" + e), e;
9615
9615
  }
9616
9616
  function mse(e) {
9617
- return new tn({ props: { handleKeyDown: Mw(e) } });
9617
+ return new Qt({ props: { handleKeyDown: Mw(e) } });
9618
9618
  }
9619
9619
  function Mw(e) {
9620
9620
  let t = gse(e);
@@ -9656,7 +9656,7 @@ const __ = (e, t, n) => {
9656
9656
  return !0;
9657
9657
  if (r.parent.content.size == 0 && (qd(i, "end") || bt.isSelectable(i)))
9658
9658
  for (let a = r.depth; ; a--) {
9659
- let s = N3(e.doc, r.before(a), r.after(a), et.empty);
9659
+ let s = N3(e.doc, r.before(a), r.after(a), Qe.empty);
9660
9660
  if (s && s.slice.size < s.to - s.from) {
9661
9661
  if (t) {
9662
9662
  let l = e.tr.step(s);
@@ -9700,7 +9700,7 @@ function P_(e, t, n) {
9700
9700
  return !1;
9701
9701
  s = c;
9702
9702
  }
9703
- let u = N3(e.doc, i, l, et.empty);
9703
+ let u = N3(e.doc, i, l, Qe.empty);
9704
9704
  if (!u || u.from != i || u instanceof Fr && u.slice.size >= l - i)
9705
9705
  return !1;
9706
9706
  if (n) {
@@ -9755,7 +9755,7 @@ const V_ = (e, t, n) => {
9755
9755
  if (K_(e, o, t, 1))
9756
9756
  return !0;
9757
9757
  if (r.parent.content.size == 0 && (qd(i, "start") || bt.isSelectable(i))) {
9758
- let a = N3(e.doc, r.before(), r.after(), et.empty);
9758
+ let a = N3(e.doc, r.before(), r.after(), Qe.empty);
9759
9759
  if (a && a.slice.size < a.to - a.from) {
9760
9760
  if (t) {
9761
9761
  let s = e.tr.step(a);
@@ -9910,7 +9910,7 @@ function K_(e, t, n, r) {
9910
9910
  for (let b = a.length - 1; b >= 0; b--)
9911
9911
  h = Oe.from(a[b].create(null, h));
9912
9912
  h = Oe.from(o.copy(h));
9913
- let g = e.tr.step(new Er(t.pos - 1, p, t.pos, p, new et(h, 1, 0), a.length, !0)), m = g.doc.resolve(p + 2 * a.length);
9913
+ let g = e.tr.step(new Er(t.pos - 1, p, t.pos, p, new Qe(h, 1, 0), a.length, !0)), m = g.doc.resolve(p + 2 * a.length);
9914
9914
  m.nodeAfter && m.nodeAfter.type == o.type && R1(g.doc, m.pos) && g.join(m.pos), n(g.scrollIntoView());
9915
9915
  }
9916
9916
  return !0;
@@ -9930,7 +9930,7 @@ function K_(e, t, n, r) {
9930
9930
  let b = Oe.empty;
9931
9931
  for (let v = h.length - 1; v >= 0; v--)
9932
9932
  b = Oe.from(h[v].copy(b));
9933
- let k = e.tr.step(new Er(t.pos - h.length, t.pos + i.nodeSize, t.pos + m, t.pos + i.nodeSize - m, new et(b, h.length, 0), 0, !0));
9933
+ let k = e.tr.step(new Er(t.pos - h.length, t.pos + i.nodeSize, t.pos + m, t.pos + i.nodeSize - m, new Qe(b, h.length, 0), 0, !0));
9934
9934
  n(k.scrollIntoView());
9935
9935
  }
9936
9936
  return !0;
@@ -10022,7 +10022,7 @@ function Lse(e, t, n, r, o) {
10022
10022
  let i = Oe.empty;
10023
10023
  for (let c = n.length - 1; c >= 0; c--)
10024
10024
  i = Oe.from(n[c].type.create(n[c].attrs, i));
10025
- e.step(new Er(t.start - (r ? 2 : 0), t.end, t.start, t.end, new et(i, 0, 0), n.length, !0));
10025
+ e.step(new Er(t.start - (r ? 2 : 0), t.end, t.start, t.end, new Qe(i, 0, 0), n.length, !0));
10026
10026
  let a = 0;
10027
10027
  for (let c = 0; c < n.length; c++)
10028
10028
  n[c].type == o && (a = c + 1);
@@ -10039,7 +10039,7 @@ function Nse(e) {
10039
10039
  }
10040
10040
  function Ise(e, t, n, r) {
10041
10041
  let o = e.tr, i = r.end, a = r.$to.end(r.depth);
10042
- i < a && (o.step(new Er(i - 1, a, i, a, new et(Oe.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new A4(o.doc.resolve(r.$from.pos), o.doc.resolve(a), r.depth));
10042
+ i < a && (o.step(new Er(i - 1, a, i, a, new Qe(Oe.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new A4(o.doc.resolve(r.$from.pos), o.doc.resolve(a), r.depth));
10043
10043
  const s = C0(r);
10044
10044
  if (s == null)
10045
10045
  return !1;
@@ -10058,7 +10058,7 @@ function Rse(e, t, n) {
10058
10058
  if (!u.canReplace(c + (s ? 0 : 1), c + 1, a.content.append(l ? Oe.empty : Oe.from(o))))
10059
10059
  return !1;
10060
10060
  let d = i.pos, f = d + a.nodeSize;
10061
- return r.step(new Er(d - (s ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new et((s ? Oe.empty : Oe.from(o.copy(Oe.empty))).append(l ? Oe.empty : Oe.from(o.copy(Oe.empty))), s ? 0 : 1, l ? 0 : 1), s ? 0 : 1)), t(r.scrollIntoView()), !0;
10061
+ return r.step(new Er(d - (s ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new Qe((s ? Oe.empty : Oe.from(o.copy(Oe.empty))).append(l ? Oe.empty : Oe.from(o.copy(Oe.empty))), s ? 0 : 1, l ? 0 : 1), s ? 0 : 1)), t(r.scrollIntoView()), !0;
10062
10062
  }
10063
10063
  function Ose(e) {
10064
10064
  return function(t, n) {
@@ -10072,7 +10072,7 @@ function Ose(e) {
10072
10072
  if (l.type != e)
10073
10073
  return !1;
10074
10074
  if (n) {
10075
- let u = l.lastChild && l.lastChild.type == s.type, c = Oe.from(u ? e.create() : null), d = new et(Oe.from(e.create(null, Oe.from(s.type.create(null, c)))), u ? 3 : 1, 0), f = i.start, p = i.end;
10075
+ let u = l.lastChild && l.lastChild.type == s.type, c = Oe.from(u ? e.create() : null), d = new Qe(Oe.from(e.create(null, Oe.from(s.type.create(null, c)))), u ? 3 : 1, 0), f = i.start, p = i.end;
10076
10076
  n(t.tr.step(new Er(f - (u ? 3 : 1), p, f, p, d, 1, !0)).scrollIntoView());
10077
10077
  }
10078
10078
  return !0;
@@ -10483,7 +10483,7 @@ function Fg(e) {
10483
10483
  }), c;
10484
10484
  }
10485
10485
  function Vse(e) {
10486
- const { editor: t, rules: n } = e, r = new tn({
10486
+ const { editor: t, rules: n } = e, r = new Qt({
10487
10487
  state: {
10488
10488
  init() {
10489
10489
  return null;
@@ -10682,7 +10682,7 @@ function Yse(e) {
10682
10682
  }) || !g.steps.length))
10683
10683
  return s = typeof DragEvent < "u" ? new DragEvent("drop") : null, a = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, g;
10684
10684
  };
10685
- return n.map((c) => new tn({
10685
+ return n.map((c) => new Qt({
10686
10686
  // we register a global drag handler to track the current drag source element
10687
10687
  view(d) {
10688
10688
  const f = (p) => {
@@ -10899,7 +10899,7 @@ class id {
10899
10899
  });
10900
10900
  }
10901
10901
  }
10902
- class Xt {
10902
+ class en {
10903
10903
  constructor(t = {}) {
10904
10904
  this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
10905
10905
  name: this.name,
@@ -10915,7 +10915,7 @@ class Xt {
10915
10915
  })) || {};
10916
10916
  }
10917
10917
  static create(t = {}) {
10918
- return new Xt(t);
10918
+ return new en(t);
10919
10919
  }
10920
10920
  configure(t = {}) {
10921
10921
  const n = this.extend({
@@ -10925,7 +10925,7 @@ class Xt {
10925
10925
  return n.name = this.name, n.parent = this.parent, n;
10926
10926
  }
10927
10927
  extend(t = {}) {
10928
- const n = new Xt({ ...this.config, ...t });
10928
+ const n = new en({ ...this.config, ...t });
10929
10929
  return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Gt(ht(n, "addOptions", {
10930
10930
  name: n.name
10931
10931
  })), n.storage = Gt(ht(n, "addStorage", {
@@ -10957,7 +10957,7 @@ function Q_(e, t, n) {
10957
10957
  function X_(e) {
10958
10958
  return Object.fromEntries(Object.entries(e.nodes).filter(([, t]) => t.spec.toText).map(([t, n]) => [t, n.spec.toText]));
10959
10959
  }
10960
- const eP = Xt.create({
10960
+ const eP = en.create({
10961
10961
  name: "clipboardTextSerializer",
10962
10962
  addOptions() {
10963
10963
  return {
@@ -10966,8 +10966,8 @@ const eP = Xt.create({
10966
10966
  },
10967
10967
  addProseMirrorPlugins() {
10968
10968
  return [
10969
- new tn({
10970
- key: new sn("clipboardTextSerializer"),
10969
+ new Qt({
10970
+ key: new rn("clipboardTextSerializer"),
10971
10971
  props: {
10972
10972
  clipboardTextSerializer: () => {
10973
10973
  const { editor: e } = this, { state: t, schema: n } = e, { doc: r, selection: o } = t, { ranges: i } = o, a = Math.min(...i.map((c) => c.$from.pos)), s = Math.max(...i.map((c) => c.$to.pos)), l = X_(n);
@@ -11706,7 +11706,7 @@ const o1e = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edi
11706
11706
  }, w = ((a = s.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(x)) || void 0;
11707
11707
  b = b.append(Oe.from(s.createAndFill(null, w) || void 0));
11708
11708
  const F = l.before(l.depth - (k - 1));
11709
- n.replace(F, l.after(-v), new et(b, 4 - k, 0));
11709
+ n.replace(F, l.after(-v), new Qe(b, 4 - k, 0));
11710
11710
  let A = -1;
11711
11711
  n.doc.nodesBetween(F, n.doc.content.size, (C, D) => {
11712
11712
  if (A > -1)
@@ -11908,19 +11908,19 @@ var m1e = /* @__PURE__ */ Object.freeze({
11908
11908
  wrapIn: h1e,
11909
11909
  wrapInList: g1e
11910
11910
  });
11911
- const aP = Xt.create({
11911
+ const aP = en.create({
11912
11912
  name: "commands",
11913
11913
  addCommands() {
11914
11914
  return {
11915
11915
  ...m1e
11916
11916
  };
11917
11917
  }
11918
- }), sP = Xt.create({
11918
+ }), sP = en.create({
11919
11919
  name: "drop",
11920
11920
  addProseMirrorPlugins() {
11921
11921
  return [
11922
- new tn({
11923
- key: new sn("tiptapDrop"),
11922
+ new Qt({
11923
+ key: new rn("tiptapDrop"),
11924
11924
  props: {
11925
11925
  handleDrop: (e, t, n, r) => {
11926
11926
  this.editor.emit("drop", {
@@ -11934,25 +11934,25 @@ const aP = Xt.create({
11934
11934
  })
11935
11935
  ];
11936
11936
  }
11937
- }), lP = Xt.create({
11937
+ }), lP = en.create({
11938
11938
  name: "editable",
11939
11939
  addProseMirrorPlugins() {
11940
11940
  return [
11941
- new tn({
11942
- key: new sn("editable"),
11941
+ new Qt({
11942
+ key: new rn("editable"),
11943
11943
  props: {
11944
11944
  editable: () => this.editor.options.editable
11945
11945
  }
11946
11946
  })
11947
11947
  ];
11948
11948
  }
11949
- }), uP = Xt.create({
11949
+ }), uP = en.create({
11950
11950
  name: "focusEvents",
11951
11951
  addProseMirrorPlugins() {
11952
11952
  const { editor: e } = this;
11953
11953
  return [
11954
- new tn({
11955
- key: new sn("focusEvents"),
11954
+ new Qt({
11955
+ key: new rn("focusEvents"),
11956
11956
  props: {
11957
11957
  handleDOMEvents: {
11958
11958
  focus: (t, n) => {
@@ -11970,7 +11970,7 @@ const aP = Xt.create({
11970
11970
  })
11971
11971
  ];
11972
11972
  }
11973
- }), cP = Xt.create({
11973
+ }), cP = en.create({
11974
11974
  name: "keymap",
11975
11975
  addKeyboardShortcuts() {
11976
11976
  const e = () => this.editor.commands.first(({ commands: a }) => [
@@ -12024,8 +12024,8 @@ const aP = Xt.create({
12024
12024
  // to a paragraph if necessary.
12025
12025
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
12026
12026
  // with many other commands.
12027
- new tn({
12028
- key: new sn("clearDocument"),
12027
+ new Qt({
12028
+ key: new rn("clearDocument"),
12029
12029
  appendTransaction: (e, t, n) => {
12030
12030
  const r = e.some((g) => g.docChanged) && !t.doc.eq(n.doc), o = e.some((g) => g.getMeta("preventClearDocument"));
12031
12031
  if (!r || o)
@@ -12046,12 +12046,12 @@ const aP = Xt.create({
12046
12046
  })
12047
12047
  ];
12048
12048
  }
12049
- }), dP = Xt.create({
12049
+ }), dP = en.create({
12050
12050
  name: "paste",
12051
12051
  addProseMirrorPlugins() {
12052
12052
  return [
12053
- new tn({
12054
- key: new sn("tiptapPaste"),
12053
+ new Qt({
12054
+ key: new rn("tiptapPaste"),
12055
12055
  props: {
12056
12056
  handlePaste: (e, t, n) => {
12057
12057
  this.editor.emit("paste", {
@@ -12064,12 +12064,12 @@ const aP = Xt.create({
12064
12064
  })
12065
12065
  ];
12066
12066
  }
12067
- }), fP = Xt.create({
12067
+ }), fP = en.create({
12068
12068
  name: "tabindex",
12069
12069
  addProseMirrorPlugins() {
12070
12070
  return [
12071
- new tn({
12072
- key: new sn("tabindex"),
12071
+ new Qt({
12072
+ key: new rn("tabindex"),
12073
12073
  props: {
12074
12074
  attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
12075
12075
  }
@@ -14382,12 +14382,12 @@ function tce(e, t) {
14382
14382
  phase: "beforeWrite",
14383
14383
  requires: ["computeStyles"],
14384
14384
  fn: function(wt) {
14385
- var rn = wt.state;
14385
+ var on = wt.state;
14386
14386
  if (B()) {
14387
14387
  var vn = U(), gt = vn.box;
14388
14388
  ["placement", "reference-hidden", "escaped"].forEach(function(kn) {
14389
- kn === "placement" ? gt.setAttribute("data-placement", rn.placement) : rn.attributes.popper["data-popper-" + kn] ? gt.setAttribute("data-" + kn, "") : gt.removeAttribute("data-" + kn);
14390
- }), rn.attributes.popper = {};
14389
+ kn === "placement" ? gt.setAttribute("data-placement", on.placement) : on.attributes.popper["data-popper-" + kn] ? gt.setAttribute("data-" + kn, "") : gt.removeAttribute("data-" + kn);
14390
+ }), on.attributes.popper = {};
14391
14391
  }
14392
14392
  }
14393
14393
  }, Rt = [{
@@ -14504,8 +14504,8 @@ function tce(e, t) {
14504
14504
  var Rt;
14505
14505
  if (!(!x.state.isVisible || u)) {
14506
14506
  if (u = !0, F.offsetHeight, F.style.transition = x.props.moveTransition, B() && x.props.animation) {
14507
- var qt = U(), wt = qt.box, rn = qt.content;
14508
- p5([wt, rn], tt), DD([wt, rn], "visible");
14507
+ var qt = U(), wt = qt.box, on = qt.content;
14508
+ p5([wt, on], tt), DD([wt, on], "visible");
14509
14509
  }
14510
14510
  Z(), Q(), AD(g5, x), (Rt = x.popperInstance) == null || Rt.forceUpdate(), G("onMount", [x]), x.props.animation && B() && Fe(tt, function() {
14511
14511
  x.state.isShown = !0, G("onShown", [x]);
@@ -14704,11 +14704,11 @@ class rce {
14704
14704
  !((t = this.tippy) === null || t === void 0) && t.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (n = this.tippy) === null || n === void 0 || n.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
14705
14705
  }
14706
14706
  }
14707
- const IP = (e) => new tn({
14708
- key: typeof e.pluginKey == "string" ? new sn(e.pluginKey) : e.pluginKey,
14707
+ const IP = (e) => new Qt({
14708
+ key: typeof e.pluginKey == "string" ? new rn(e.pluginKey) : e.pluginKey,
14709
14709
  view: (t) => new rce({ view: t, ...e })
14710
14710
  });
14711
- Xt.create({
14711
+ en.create({
14712
14712
  name: "bubbleMenu",
14713
14713
  addOptions() {
14714
14714
  return {
@@ -15294,7 +15294,7 @@ class xce {
15294
15294
  }
15295
15295
  }
15296
15296
  function OP(e = {}, t = []) {
15297
- const n = Xe(e);
15297
+ const n = et(e);
15298
15298
  n.current = e;
15299
15299
  const [r] = Re(() => new xce(n)), o = Z3.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
15300
15300
  return iw(o), Pe(r.onRender(t)), RP({
@@ -16070,7 +16070,7 @@ Check the render method of \`` + z + "`.";
16070
16070
  return "";
16071
16071
  }
16072
16072
  var wt = {};
16073
- function rn(z) {
16073
+ function on(z) {
16074
16074
  {
16075
16075
  var ye = Rt();
16076
16076
  if (!ye) {
@@ -16087,7 +16087,7 @@ Check the top-level render call using <` + je + ">.");
16087
16087
  if (!z._store || z._store.validated || z.key != null)
16088
16088
  return;
16089
16089
  z._store.validated = !0;
16090
- var je = rn(ye);
16090
+ var je = on(ye);
16091
16091
  if (wt[je])
16092
16092
  return;
16093
16093
  wt[je] = !0;
@@ -43453,7 +43453,7 @@ function Zu(...e) {
43453
43453
  };
43454
43454
  };
43455
43455
  }
43456
- function en(...e) {
43456
+ function tn(...e) {
43457
43457
  return L.useCallback(Zu(...e), e);
43458
43458
  }
43459
43459
  var p1 = L.forwardRef((e, t) => {
@@ -43561,7 +43561,7 @@ const zp = L.forwardRef(
43561
43561
  rightIcon: l,
43562
43562
  ...u
43563
43563
  }, c) => {
43564
- const d = L.useRef(null), f = en(c, d), p = L.useCallback(() => {
43564
+ const d = L.useRef(null), f = tn(c, d), p = L.useCallback(() => {
43565
43565
  var m;
43566
43566
  (m = d.current) == null || m.focus();
43567
43567
  }, []), h = L.useMemo(() => {
@@ -43688,7 +43688,7 @@ const is = L.forwardRef(
43688
43688
  rightIcon: l,
43689
43689
  ...u
43690
43690
  }, c) => {
43691
- const d = L.useRef(null), f = en(c, d), p = L.useCallback(() => {
43691
+ const d = L.useRef(null), f = tn(c, d), p = L.useCallback(() => {
43692
43692
  var m;
43693
43693
  (m = d.current) == null || m.focus();
43694
43694
  }, []), h = L.useMemo(() => {
@@ -43914,7 +43914,7 @@ var Xw = "Switch", [tat, kYt] = vo(Xw), [nat, rat] = tat(Xw), nH = L.forwardRef(
43914
43914
  onCheckedChange: u,
43915
43915
  form: c,
43916
43916
  ...d
43917
- } = e, [f, p] = L.useState(null), h = en(t, (v) => p(v)), g = L.useRef(!1), m = f ? c || !!f.closest("form") : !0, [b = !1, k] = oi({
43917
+ } = e, [f, p] = L.useState(null), h = tn(t, (v) => p(v)), g = L.useRef(!1), m = f ? c || !!f.closest("form") : !0, [b = !1, k] = oi({
43918
43918
  prop: o,
43919
43919
  defaultProp: i,
43920
43920
  onChange: u
@@ -44061,7 +44061,7 @@ var lat = "DismissableLayer", Q8 = "dismissableLayer.update", uat = "dismissable
44061
44061
  onInteractOutside: a,
44062
44062
  onDismiss: s,
44063
44063
  ...l
44064
- } = e, u = L.useContext(lH), [c, d] = L.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = L.useState({}), h = en(t, (A) => d(A)), g = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = g.indexOf(m), k = c ? g.indexOf(c) : -1, v = u.layersWithOutsidePointerEventsDisabled.size > 0, x = k >= b, w = fat((A) => {
44064
+ } = e, u = L.useContext(lH), [c, d] = L.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = L.useState({}), h = tn(t, (A) => d(A)), g = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = g.indexOf(m), k = c ? g.indexOf(c) : -1, v = u.layersWithOutsidePointerEventsDisabled.size > 0, x = k >= b, w = fat((A) => {
44065
44065
  const C = A.target, D = [...u.branches].some((T) => T.contains(C));
44066
44066
  !x || D || (o == null || o(A), a == null || a(A), A.defaultPrevented || s == null || s());
44067
44067
  }, f), F = pat((A) => {
@@ -44101,7 +44101,7 @@ var lat = "DismissableLayer", Q8 = "dismissableLayer.update", uat = "dismissable
44101
44101
  );
44102
44102
  mc.displayName = lat;
44103
44103
  var dat = "DismissableLayerBranch", uH = L.forwardRef((e, t) => {
44104
- const n = L.useContext(lH), r = L.useRef(null), o = en(t, r);
44104
+ const n = L.useContext(lH), r = L.useRef(null), o = tn(t, r);
44105
44105
  return L.useEffect(() => {
44106
44106
  const i = r.current;
44107
44107
  if (i)
@@ -45488,7 +45488,7 @@ var mst = kH, sF = "Popper", [wH, P1] = vo(sF), [yst, FH] = wH(sF), MH = (e) =>
45488
45488
  MH.displayName = sF;
45489
45489
  var CH = "PopperAnchor", EH = L.forwardRef(
45490
45490
  (e, t) => {
45491
- const { __scopePopper: n, virtualRef: r, ...o } = e, i = FH(CH, n), a = L.useRef(null), s = en(t, a);
45491
+ const { __scopePopper: n, virtualRef: r, ...o } = e, i = FH(CH, n), a = L.useRef(null), s = tn(t, a);
45492
45492
  return L.useEffect(() => {
45493
45493
  i.onAnchorChange((r == null ? void 0 : r.current) || a.current);
45494
45494
  }), r ? null : /* @__PURE__ */ j.jsx(yt.div, { ...o, ref: s });
@@ -45513,7 +45513,7 @@ var lF = "PopperContent", [bst, xst] = wH(lF), AH = L.forwardRef(
45513
45513
  updatePositionStrategy: v = "optimized",
45514
45514
  onPlaced: x,
45515
45515
  ...w
45516
- } = e, F = FH(lF, l), [A, C] = L.useState(null), D = en(t, (Ae) => C(Ae)), [T, I] = L.useState(null), B = Qw(T), W = (B == null ? void 0 : B.width) ?? 0, q = (B == null ? void 0 : B.height) ?? 0, U = u + (d !== "center" ? "-" + d : ""), P = typeof m == "number" ? m : { top: 0, right: 0, bottom: 0, left: 0, ...m }, _ = Array.isArray(g) ? g : [g], G = _.length > 0, Z = {
45516
+ } = e, F = FH(lF, l), [A, C] = L.useState(null), D = tn(t, (Ae) => C(Ae)), [T, I] = L.useState(null), B = Qw(T), W = (B == null ? void 0 : B.width) ?? 0, q = (B == null ? void 0 : B.height) ?? 0, U = u + (d !== "center" ? "-" + d : ""), P = typeof m == "number" ? m : { top: 0, right: 0, bottom: 0, left: 0, ...m }, _ = Array.isArray(g) ? g : [g], G = _.length > 0, Z = {
45517
45517
  padding: P,
45518
45518
  boundary: _.filter(kst),
45519
45519
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -45690,7 +45690,7 @@ function Mst(e, t) {
45690
45690
  return L.useReducer((n, r) => t[n][r] ?? n, e);
45691
45691
  }
45692
45692
  var li = (e) => {
45693
- const { present: t, children: n } = e, r = Cst(t), o = typeof n == "function" ? n({ present: r.isPresent }) : L.Children.only(n), i = en(r.ref, Est(o));
45693
+ const { present: t, children: n } = e, r = Cst(t), o = typeof n == "function" ? n({ present: r.isPresent }) : L.Children.only(n), i = tn(r.ref, Est(o));
45694
45694
  return typeof n == "function" || r.isPresent ? L.cloneElement(o, { ref: i }) : null;
45695
45695
  };
45696
45696
  li.displayName = "Presence";
@@ -45864,7 +45864,7 @@ var nb = "Tooltip", [Tst, M2] = eb(nb), NH = (e) => {
45864
45864
  NH.displayName = nb;
45865
45865
  var r9 = "TooltipTrigger", IH = L.forwardRef(
45866
45866
  (e, t) => {
45867
- const { __scopeTooltip: n, ...r } = e, o = M2(r9, n), i = cF(r9, n), a = tb(n), s = L.useRef(null), l = en(t, s, o.onTriggerChange), u = L.useRef(!1), c = L.useRef(!1), d = L.useCallback(() => u.current = !1, []);
45867
+ const { __scopeTooltip: n, ...r } = e, o = M2(r9, n), i = cF(r9, n), a = tb(n), s = L.useRef(null), l = tn(t, s, o.onTriggerChange), u = L.useRef(!1), c = L.useRef(!1), d = L.useCallback(() => u.current = !1, []);
45868
45868
  return L.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ j.jsx(w2, { asChild: !0, ...a, children: /* @__PURE__ */ j.jsx(
45869
45869
  yt.button,
45870
45870
  {
@@ -45904,7 +45904,7 @@ var Yd = "TooltipContent", OH = L.forwardRef(
45904
45904
  return /* @__PURE__ */ j.jsx(li, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ j.jsx(BH, { side: o, ...i, ref: t }) : /* @__PURE__ */ j.jsx(Ist, { side: o, ...i, ref: t }) });
45905
45905
  }
45906
45906
  ), Ist = L.forwardRef((e, t) => {
45907
- const n = M2(Yd, e.__scopeTooltip), r = cF(Yd, e.__scopeTooltip), o = L.useRef(null), i = en(t, o), [a, s] = L.useState(null), { trigger: l, onClose: u } = n, c = o.current, { onPointerInTransitChange: d } = r, f = L.useCallback(() => {
45907
+ const n = M2(Yd, e.__scopeTooltip), r = cF(Yd, e.__scopeTooltip), o = L.useRef(null), i = tn(t, o), [a, s] = L.useState(null), { trigger: l, onClose: u } = n, c = o.current, { onPointerInTransitChange: d } = r, f = L.useCallback(() => {
45908
45908
  s(null), d(!1);
45909
45909
  }, [d]), p = L.useCallback(
45910
45910
  (h, g) => {
@@ -46087,7 +46087,7 @@ function qst(e) {
46087
46087
  var PH = LH, Vst = NH, Ust = IH, Wst = RH, Gst = OH, Zst = _H;
46088
46088
  const fF = fn({});
46089
46089
  function pF(e) {
46090
- const t = Xe(null);
46090
+ const t = et(null);
46091
46091
  return t.current === null && (t.current = e()), t.current;
46092
46092
  }
46093
46093
  const rb = fn(null), hF = fn({
@@ -46114,7 +46114,7 @@ class Kst extends L.Component {
46114
46114
  }
46115
46115
  }
46116
46116
  function Yst({ children: e, isPresent: t }) {
46117
- const n = M0(), r = Xe(null), o = Xe({
46117
+ const n = M0(), r = et(null), o = et({
46118
46118
  width: 0,
46119
46119
  height: 0,
46120
46120
  top: 0,
@@ -46190,7 +46190,7 @@ function aS(e) {
46190
46190
  }), t;
46191
46191
  }
46192
46192
  const gF = typeof window < "u", qH = gF ? gl : Pe, Qst = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
46193
- const [s, l] = HH(a), u = It(() => aS(e), [e]), c = a && !s ? [] : u.map(Lg), d = Xe(!0), f = Xe(u), p = pF(() => /* @__PURE__ */ new Map()), [h, g] = Re(u), [m, b] = Re(u);
46193
+ const [s, l] = HH(a), u = It(() => aS(e), [e]), c = a && !s ? [] : u.map(Lg), d = et(!0), f = et(u), p = pF(() => /* @__PURE__ */ new Map()), [h, g] = Re(u), [m, b] = Re(u);
46194
46194
  qH(() => {
46195
46195
  d.current = !1, f.current = u;
46196
46196
  for (let x = 0; x < m.length; x++) {
@@ -46471,7 +46471,7 @@ function clt(e, t, n) {
46471
46471
  const xF = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), dlt = "framerAppearId", ZH = "data-" + xF(dlt), { schedule: vF } = VH(queueMicrotask, !1), KH = fn({});
46472
46472
  function flt(e, t, n, r, o) {
46473
46473
  var i, a;
46474
- const { visualElement: s } = Mt(ib), l = Mt(UH), u = Mt(rb), c = Mt(hF).reducedMotion, d = Xe(null);
46474
+ const { visualElement: s } = Mt(ib), l = Mt(UH), u = Mt(rb), c = Mt(hF).reducedMotion, d = et(null);
46475
46475
  r = r || l.renderer, !d.current && r && (d.current = r(e, {
46476
46476
  visualState: t,
46477
46477
  parent: s,
@@ -46482,11 +46482,11 @@ function flt(e, t, n, r, o) {
46482
46482
  }));
46483
46483
  const f = d.current, p = Mt(KH);
46484
46484
  f && !f.projection && o && (f.type === "html" || f.type === "svg") && plt(d.current, n, o, p);
46485
- const h = Xe(!1);
46485
+ const h = et(!1);
46486
46486
  S3(() => {
46487
46487
  f && h.current && f.update(n, u);
46488
46488
  });
46489
- const g = n[ZH], m = Xe(!!g && !(!((i = window.MotionHandoffIsComplete) === null || i === void 0) && i.call(window, g)) && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, g)));
46489
+ const g = n[ZH], m = et(!!g && !(!((i = window.MotionHandoffIsComplete) === null || i === void 0) && i.call(window, g)) && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, g)));
46490
46490
  return qH(() => {
46491
46491
  f && (h.current = !0, window.MotionIsMounted = !0, f.updateFeatures(), vF.render(f.render), m.current && f.animationState && f.animationState.animateChanges());
46492
46492
  }), Pe(() => {
@@ -51058,7 +51058,7 @@ const gV = ({
51058
51058
  onAddTag: n,
51059
51059
  isPreviewMode: r
51060
51060
  }) => {
51061
- const [o, i] = Re(""), [a, s] = Re(!1), l = Xe(null), u = (p) => {
51061
+ const [o, i] = Re(""), [a, s] = Re(!1), l = et(null), u = (p) => {
51062
51062
  i(p), s(!0);
51063
51063
  }, c = (p) => {
51064
51064
  const h = e.find(
@@ -52439,14 +52439,14 @@ function cb(e) {
52439
52439
  a.displayName = t;
52440
52440
  const s = e + "CollectionSlot", l = ke.forwardRef(
52441
52441
  (p, h) => {
52442
- const { scope: g, children: m } = p, b = i(s, g), k = en(h, b.collectionRef);
52442
+ const { scope: g, children: m } = p, b = i(s, g), k = tn(h, b.collectionRef);
52443
52443
  return /* @__PURE__ */ j.jsx(p1, { ref: k, children: m });
52444
52444
  }
52445
52445
  );
52446
52446
  l.displayName = s;
52447
52447
  const u = e + "CollectionItemSlot", c = "data-radix-collection-item", d = ke.forwardRef(
52448
52448
  (p, h) => {
52449
- const { scope: g, children: m, ...b } = p, k = ke.useRef(null), v = en(h, k), x = i(u, g);
52449
+ const { scope: g, children: m, ...b } = p, k = ke.useRef(null), v = tn(h, k), x = i(u, g);
52450
52450
  return ke.useEffect(() => (x.itemMap.set(k, { ref: k, ...b }), () => void x.itemMap.delete(k))), /* @__PURE__ */ j.jsx(p1, { [c]: "", ref: v, children: m });
52451
52451
  }
52452
52452
  );
@@ -52495,7 +52495,7 @@ var _dt = L.forwardRef((e, t) => {
52495
52495
  onEntryFocus: u,
52496
52496
  preventScrollOnEntryFocus: c = !1,
52497
52497
  ...d
52498
- } = e, f = L.useRef(null), p = en(t, f), h = D2(i), [g = null, m] = oi({
52498
+ } = e, f = L.useRef(null), p = tn(t, f), h = D2(i), [g = null, m] = oi({
52499
52499
  prop: a,
52500
52500
  defaultProp: s,
52501
52501
  onChange: l
@@ -52952,7 +52952,7 @@ var $F = "CollapsibleContent", VV = L.forwardRef(
52952
52952
  );
52953
52953
  VV.displayName = $F;
52954
52954
  var n0t = L.forwardRef((e, t) => {
52955
- const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a = YF($F, n), [s, l] = L.useState(r), u = L.useRef(null), c = en(t, u), d = L.useRef(0), f = d.current, p = L.useRef(0), h = p.current, g = a.open || s, m = L.useRef(g), b = L.useRef(void 0);
52955
+ const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a = YF($F, n), [s, l] = L.useState(r), u = L.useRef(null), c = tn(t, u), d = L.useRef(0), f = d.current, p = L.useRef(0), h = p.current, g = a.open || s, m = L.useRef(g), b = L.useRef(void 0);
52956
52956
  return L.useEffect(() => {
52957
52957
  const k = requestAnimationFrame(() => m.current = !1);
52958
52958
  return () => cancelAnimationFrame(k);
@@ -53055,7 +53055,7 @@ var [WV, u0t] = hb(yl), [GV, c0t] = hb(
53055
53055
  );
53056
53056
  }), [p0t, gb] = hb(yl), ZV = ke.forwardRef(
53057
53057
  (e, t) => {
53058
- const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, s = ke.useRef(null), l = en(s, t), u = s0t(n), c = D2(o) === "ltr", d = lt(e.onKeyDown, (f) => {
53058
+ const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, s = ke.useRef(null), l = tn(s, t), u = s0t(n), c = D2(o) === "ltr", d = lt(e.onKeyDown, (f) => {
53059
53059
  var p;
53060
53060
  if (!a0t.includes(f.key)) return;
53061
53061
  const h = f.target, g = u().filter((C) => {
@@ -53207,7 +53207,7 @@ var g0t = UV, m0t = KV, y0t = $V, tU = JV, nU = XV, B5 = "focusScope.autoFocusOn
53207
53207
  onMountAutoFocus: o,
53208
53208
  onUnmountAutoFocus: i,
53209
53209
  ...a
53210
- } = e, [s, l] = L.useState(null), u = zo(o), c = zo(i), d = L.useRef(null), f = en(t, (g) => l(g)), p = L.useRef({
53210
+ } = e, [s, l] = L.useState(null), u = zo(o), c = zo(i), d = L.useRef(null), f = tn(t, (g) => l(g)), p = L.useRef({
53211
53211
  paused: !1,
53212
53212
  pause() {
53213
53213
  this.paused = !0;
@@ -53891,7 +53891,7 @@ var sft = function(e) {
53891
53891
  pU.displayName = rM;
53892
53892
  var hU = "DialogTrigger", gU = L.forwardRef(
53893
53893
  (e, t) => {
53894
- const { __scopeDialog: n, ...r } = e, o = ma(hU, n), i = en(t, o.triggerRef);
53894
+ const { __scopeDialog: n, ...r } = e, o = ma(hU, n), i = tn(t, o.triggerRef);
53895
53895
  return /* @__PURE__ */ j.jsx(
53896
53896
  yt.button,
53897
53897
  {
@@ -53948,7 +53948,7 @@ var fft = L.forwardRef(
53948
53948
  xU.displayName = Yu;
53949
53949
  var pft = L.forwardRef(
53950
53950
  (e, t) => {
53951
- const n = ma(Yu, e.__scopeDialog), r = L.useRef(null), o = en(t, n.contentRef, r);
53951
+ const n = ma(Yu, e.__scopeDialog), r = L.useRef(null), o = tn(t, n.contentRef, r);
53952
53952
  return L.useEffect(() => {
53953
53953
  const i = r.current;
53954
53954
  if (i) return nM(i);
@@ -53999,7 +53999,7 @@ var pft = L.forwardRef(
53999
53999
  }
54000
54000
  ), vU = L.forwardRef(
54001
54001
  (e, t) => {
54002
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...a } = e, s = ma(Yu, n), l = L.useRef(null), u = en(t, l);
54002
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...a } = e, s = ma(Yu, n), l = L.useRef(null), u = tn(t, l);
54003
54003
  return tM(), /* @__PURE__ */ j.jsxs(j.Fragment, { children: [
54004
54004
  /* @__PURE__ */ j.jsx(
54005
54005
  bc,
@@ -54129,7 +54129,7 @@ var wft = L.forwardRef((e, t) => {
54129
54129
  onFocusOutside: i,
54130
54130
  onInteractOutside: a,
54131
54131
  ...s
54132
- } = e, l = lM(X4, n), u = sM(n), c = L.useRef(null), d = en(t, c), [f, p] = L.useState(!1);
54132
+ } = e, l = lM(X4, n), u = sM(n), c = L.useRef(null), d = tn(t, c), [f, p] = L.useState(!1);
54133
54133
  return L.useEffect(() => {
54134
54134
  if (f) {
54135
54135
  const h = document.body;
@@ -54246,7 +54246,7 @@ var RU = "PopoverAnchor", Aft = L.forwardRef(
54246
54246
  Aft.displayName = RU;
54247
54247
  var OU = "PopoverTrigger", BU = L.forwardRef(
54248
54248
  (e, t) => {
54249
- const { __scopePopover: n, ...r } = e, o = q1(OU, n), i = L2(n), a = en(t, o.triggerRef), s = /* @__PURE__ */ j.jsx(
54249
+ const { __scopePopover: n, ...r } = e, o = q1(OU, n), i = L2(n), a = tn(t, o.triggerRef), s = /* @__PURE__ */ j.jsx(
54250
54250
  yt.button,
54251
54251
  {
54252
54252
  type: "button",
@@ -54279,7 +54279,7 @@ var Xd = "PopoverContent", _U = L.forwardRef(
54279
54279
  _U.displayName = Xd;
54280
54280
  var Sft = L.forwardRef(
54281
54281
  (e, t) => {
54282
- const n = q1(Xd, e.__scopePopover), r = L.useRef(null), o = en(t, r), i = L.useRef(!1);
54282
+ const n = q1(Xd, e.__scopePopover), r = L.useRef(null), o = tn(t, r), i = L.useRef(!1);
54283
54283
  return L.useEffect(() => {
54284
54284
  const a = r.current;
54285
54285
  if (a) return nM(a);
@@ -54426,7 +54426,7 @@ var Ift = IU, Rft = BU, Oft = zU, UU = _U, Bft = qU, dM = "Radio", [zft, WU] = v
54426
54426
  onCheck: l,
54427
54427
  form: u,
54428
54428
  ...c
54429
- } = e, [d, f] = L.useState(null), p = en(t, (m) => f(m)), h = L.useRef(!1), g = d ? u || !!d.closest("form") : !0;
54429
+ } = e, [d, f] = L.useState(null), p = tn(t, (m) => f(m)), h = L.useRef(!1), g = d ? u || !!d.closest("form") : !0;
54430
54430
  return /* @__PURE__ */ j.jsxs(_ft, { scope: n, checked: o, disabled: a, children: [
54431
54431
  /* @__PURE__ */ j.jsx(
54432
54432
  yt.button,
@@ -54569,7 +54569,7 @@ var qft = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], fM = "RadioGroup"
54569
54569
  QU.displayName = fM;
54570
54570
  var XU = "RadioGroupItem", eW = L.forwardRef(
54571
54571
  (e, t) => {
54572
- const { __scopeRadioGroup: n, disabled: r, ...o } = e, i = Wft(XU, n), a = i.disabled || r, s = $U(n), l = JU(n), u = L.useRef(null), c = en(t, u), d = i.value === o.value, f = L.useRef(!1);
54572
+ const { __scopeRadioGroup: n, disabled: r, ...o } = e, i = Wft(XU, n), a = i.disabled || r, s = $U(n), l = JU(n), u = L.useRef(null), c = tn(t, u), d = i.value === o.value, f = L.useRef(!1);
54573
54573
  return L.useEffect(() => {
54574
54574
  const p = (g) => {
54575
54575
  qft.includes(g.key) && (f.current = !0);
@@ -54710,7 +54710,7 @@ var Kft = [" ", "Enter", "ArrowUp", "ArrowDown"], Yft = [" ", "Enter"], N2 = "Se
54710
54710
  oW.displayName = N2;
54711
54711
  var iW = "SelectTrigger", aW = L.forwardRef(
54712
54712
  (e, t) => {
54713
- const { __scopeSelect: n, disabled: r = !1, ...o } = e, i = Fb(n), a = V1(iW, n), s = a.disabled || r, l = en(t, a.onTriggerChange), u = wb(n), c = L.useRef("touch"), [d, f, p] = TW((g) => {
54713
+ const { __scopeSelect: n, disabled: r = !1, ...o } = e, i = Fb(n), a = V1(iW, n), s = a.disabled || r, l = tn(t, a.onTriggerChange), u = wb(n), c = L.useRef("touch"), [d, f, p] = TW((g) => {
54714
54714
  const m = u().filter((v) => !v.disabled), b = m.find((v) => v.value === a.value), k = LW(m, g, b);
54715
54715
  k !== void 0 && a.onValueChange(k.value);
54716
54716
  }), h = (g) => {
@@ -54754,7 +54754,7 @@ var iW = "SelectTrigger", aW = L.forwardRef(
54754
54754
  aW.displayName = iW;
54755
54755
  var sW = "SelectValue", lW = L.forwardRef(
54756
54756
  (e, t) => {
54757
- const { __scopeSelect: n, className: r, style: o, children: i, placeholder: a = "", ...s } = e, l = V1(sW, n), { onValueNodeHasChildrenChange: u } = l, c = i !== void 0, d = en(t, l.onValueNodeChange);
54757
+ const { __scopeSelect: n, className: r, style: o, children: i, placeholder: a = "", ...s } = e, l = V1(sW, n), { onValueNodeHasChildrenChange: u } = l, c = i !== void 0, d = tn(t, l.onValueNodeChange);
54758
54758
  return qr(() => {
54759
54759
  u(c);
54760
54760
  }, [u, c]), /* @__PURE__ */ j.jsx(
@@ -54816,7 +54816,7 @@ var Wi = 10, [fW, U1] = R0($u), npt = "SelectContentImpl", pW = L.forwardRef(
54816
54816
  avoidCollisions: m,
54817
54817
  //
54818
54818
  ...b
54819
- } = e, k = V1($u, n), [v, x] = L.useState(null), [w, F] = L.useState(null), A = en(t, (de) => x(de)), [C, D] = L.useState(null), [T, I] = L.useState(
54819
+ } = e, k = V1($u, n), [v, x] = L.useState(null), [w, F] = L.useState(null), A = tn(t, (de) => x(de)), [C, D] = L.useState(null), [T, I] = L.useState(
54820
54820
  null
54821
54821
  ), B = wb(n), [W, q] = L.useState(!1), U = L.useRef(!1);
54822
54822
  L.useEffect(() => {
@@ -54966,7 +54966,7 @@ var Wi = 10, [fW, U1] = R0($u), npt = "SelectContentImpl", pW = L.forwardRef(
54966
54966
  );
54967
54967
  pW.displayName = npt;
54968
54968
  var rpt = "SelectItemAlignedPosition", hW = L.forwardRef((e, t) => {
54969
- const { __scopeSelect: n, onPlaced: r, ...o } = e, i = V1($u, n), a = U1($u, n), [s, l] = L.useState(null), [u, c] = L.useState(null), d = en(t, (A) => c(A)), f = wb(n), p = L.useRef(!1), h = L.useRef(!0), { viewport: g, selectedItem: m, selectedItemText: b, focusSelectedItem: k } = a, v = L.useCallback(() => {
54969
+ const { __scopeSelect: n, onPlaced: r, ...o } = e, i = V1($u, n), a = U1($u, n), [s, l] = L.useState(null), [u, c] = L.useState(null), d = tn(t, (A) => c(A)), f = wb(n), p = L.useRef(!1), h = L.useRef(!0), { viewport: g, selectedItem: m, selectedItemText: b, focusSelectedItem: k } = a, v = L.useCallback(() => {
54970
54970
  if (i.trigger && i.valueNode && s && u && g && m && b) {
54971
54971
  const A = i.trigger.getBoundingClientRect(), C = u.getBoundingClientRect(), D = i.valueNode.getBoundingClientRect(), T = b.getBoundingClientRect();
54972
54972
  if (i.dir !== "rtl") {
@@ -55101,7 +55101,7 @@ var opt = "SelectPopperPosition", M9 = L.forwardRef((e, t) => {
55101
55101
  M9.displayName = opt;
55102
55102
  var [ipt, pM] = R0($u, {}), C9 = "SelectViewport", gW = L.forwardRef(
55103
55103
  (e, t) => {
55104
- const { __scopeSelect: n, nonce: r, ...o } = e, i = U1(C9, n), a = pM(C9, n), s = en(t, i.onViewportChange), l = L.useRef(0);
55104
+ const { __scopeSelect: n, nonce: r, ...o } = e, i = U1(C9, n), a = pM(C9, n), s = tn(t, i.onViewportChange), l = L.useRef(0);
55105
55105
  return /* @__PURE__ */ j.jsxs(j.Fragment, { children: [
55106
55106
  /* @__PURE__ */ j.jsx(
55107
55107
  "style",
@@ -55174,7 +55174,7 @@ var ty = "SelectItem", [lpt, vW] = R0(ty), kW = L.forwardRef(
55174
55174
  disabled: o = !1,
55175
55175
  textValue: i,
55176
55176
  ...a
55177
- } = e, s = V1(ty, n), l = U1(ty, n), u = s.value === r, [c, d] = L.useState(i ?? ""), [f, p] = L.useState(!1), h = en(
55177
+ } = e, s = V1(ty, n), l = U1(ty, n), u = s.value === r, [c, d] = L.useState(i ?? ""), [f, p] = L.useState(!1), h = tn(
55178
55178
  t,
55179
55179
  (k) => {
55180
55180
  var v;
@@ -55252,7 +55252,7 @@ var ty = "SelectItem", [lpt, vW] = R0(ty), kW = L.forwardRef(
55252
55252
  kW.displayName = ty;
55253
55253
  var Bf = "SelectItemText", wW = L.forwardRef(
55254
55254
  (e, t) => {
55255
- const { __scopeSelect: n, className: r, style: o, ...i } = e, a = V1(Bf, n), s = U1(Bf, n), l = vW(Bf, n), u = Xft(Bf, n), [c, d] = L.useState(null), f = en(
55255
+ const { __scopeSelect: n, className: r, style: o, ...i } = e, a = V1(Bf, n), s = U1(Bf, n), l = vW(Bf, n), u = Xft(Bf, n), [c, d] = L.useState(null), f = tn(
55256
55256
  t,
55257
55257
  (b) => d(b),
55258
55258
  l.onItemTextChange,
@@ -55279,7 +55279,7 @@ var FW = "SelectItemIndicator", MW = L.forwardRef(
55279
55279
  );
55280
55280
  MW.displayName = FW;
55281
55281
  var E9 = "SelectScrollUpButton", CW = L.forwardRef((e, t) => {
55282
- const n = U1(E9, e.__scopeSelect), r = pM(E9, e.__scopeSelect), [o, i] = L.useState(!1), a = en(t, r.onScrollButtonChange);
55282
+ const n = U1(E9, e.__scopeSelect), r = pM(E9, e.__scopeSelect), [o, i] = L.useState(!1), a = tn(t, r.onScrollButtonChange);
55283
55283
  return qr(() => {
55284
55284
  if (n.viewport && n.isPositioned) {
55285
55285
  let s = function() {
@@ -55303,7 +55303,7 @@ var E9 = "SelectScrollUpButton", CW = L.forwardRef((e, t) => {
55303
55303
  });
55304
55304
  CW.displayName = E9;
55305
55305
  var A9 = "SelectScrollDownButton", EW = L.forwardRef((e, t) => {
55306
- const n = U1(A9, e.__scopeSelect), r = pM(A9, e.__scopeSelect), [o, i] = L.useState(!1), a = en(t, r.onScrollButtonChange);
55306
+ const n = U1(A9, e.__scopeSelect), r = pM(A9, e.__scopeSelect), [o, i] = L.useState(!1), a = tn(t, r.onScrollButtonChange);
55307
55307
  return qr(() => {
55308
55308
  if (n.viewport && n.isPositioned) {
55309
55309
  let s = function() {
@@ -55372,7 +55372,7 @@ function DW(e) {
55372
55372
  }
55373
55373
  var SW = L.forwardRef(
55374
55374
  (e, t) => {
55375
- const { value: n, ...r } = e, o = L.useRef(null), i = en(t, o), a = Jw(n);
55375
+ const { value: n, ...r } = e, o = L.useRef(null), i = tn(t, o), a = Jw(n);
55376
55376
  return L.useEffect(() => {
55377
55377
  const s = o.current, l = window.HTMLSelectElement.prototype, u = Object.getOwnPropertyDescriptor(
55378
55378
  l,
@@ -55419,7 +55419,7 @@ var fpt = oW, NW = aW, ppt = lW, hpt = uW, gpt = cW, IW = dW, mpt = gW, ypt = yW
55419
55419
  hotkey: r = Fpt,
55420
55420
  label: o = "Notifications ({hotkey})",
55421
55421
  ...i
55422
- } = e, a = Mb(qW, n), s = kpt(n), l = L.useRef(null), u = L.useRef(null), c = L.useRef(null), d = L.useRef(null), f = en(t, d, a.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), h = a.toastCount > 0;
55422
+ } = e, a = Mb(qW, n), s = kpt(n), l = L.useRef(null), u = L.useRef(null), c = L.useRef(null), d = L.useRef(null), f = tn(t, d, a.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), h = a.toastCount > 0;
55423
55423
  L.useEffect(() => {
55424
55424
  const m = (b) => {
55425
55425
  var k;
@@ -55592,7 +55592,7 @@ var [jpt, Dpt] = HW(Cb, {
55592
55592
  onSwipeCancel: f,
55593
55593
  onSwipeEnd: p,
55594
55594
  ...h
55595
- } = e, g = Mb(Cb, n), [m, b] = L.useState(null), k = en(t, (q) => b(q)), v = L.useRef(null), x = L.useRef(null), w = o || g.duration, F = L.useRef(0), A = L.useRef(w), C = L.useRef(0), { onToastAdd: D, onToastRemove: T } = g, I = zo(() => {
55595
+ } = e, g = Mb(Cb, n), [m, b] = L.useState(null), k = tn(t, (q) => b(q)), v = L.useRef(null), x = L.useRef(null), w = o || g.duration, F = L.useRef(0), A = L.useRef(w), C = L.useRef(0), { onToastAdd: D, onToastRemove: T } = g, I = zo(() => {
55596
55596
  var q;
55597
55597
  m != null && m.contains(document.activeElement) && ((q = g.viewport) == null || q.focus()), a();
55598
55598
  }), B = L.useCallback(
@@ -57088,8 +57088,8 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57088
57088
  if (te.current && Z) {
57089
57089
  const nt = x === "bottom" || x === "right" ? 1 : -1, pt = (Le.current - (lr(x) ? Be.pageY : Be.pageX)) * nt, dt = pt > 0, Rt = i && !c && !dt;
57090
57090
  if (Rt && E === 0) return;
57091
- const qt = Math.abs(pt), wt = document.querySelector("[data-vaul-drawer-wrapper]"), rn = x === "bottom" || x === "top" ? J.current : $.current;
57092
- let vn = qt / rn;
57091
+ const qt = Math.abs(pt), wt = document.querySelector("[data-vaul-drawer-wrapper]"), on = x === "bottom" || x === "top" ? J.current : $.current;
57092
+ let vn = qt / on;
57093
57093
  const gt = me(qt, dt);
57094
57094
  if (gt !== null && (vn = gt), Rt && vn >= 1 || !Fe.current && !Te(Be.target, dt)) return;
57095
57095
  if (te.current.classList.add(Q5), Fe.current = !0, hr(te.current, {
@@ -57138,14 +57138,14 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57138
57138
  var dt;
57139
57139
  const Rt = ((dt = window.visualViewport) == null ? void 0 : dt.height) || 0, qt = window.innerHeight;
57140
57140
  let wt = qt - Rt;
57141
- const rn = te.current.getBoundingClientRect().height || 0, vn = rn > qt * 0.8;
57142
- ie.current || (ie.current = rn);
57141
+ const on = te.current.getBoundingClientRect().height || 0, vn = on > qt * 0.8;
57142
+ ie.current || (ie.current = on);
57143
57143
  const gt = te.current.getBoundingClientRect().top;
57144
57144
  if (Math.abs(Ae.current - wt) > 60 && (Me.current = !Me.current), i && i.length > 0 && re && E) {
57145
57145
  const kn = re[E] || 0;
57146
57146
  wt += kn;
57147
57147
  }
57148
- if (Ae.current = wt, rn > Rt || Me.current) {
57148
+ if (Ae.current = wt, on > Rt || Me.current) {
57149
57149
  const kn = te.current.getBoundingClientRect().height;
57150
57150
  let Gn = kn;
57151
57151
  kn > Rt && (Gn = Rt - (vn ? gt : I9)), g ? te.current.style.height = `${kn - Math.max(wt, 0)}px` : te.current.style.height = `${Math.max(Gn, Rt - gt)}px`;
@@ -57221,8 +57221,8 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57221
57221
  }
57222
57222
  var qt;
57223
57223
  const wt = Math.min((qt = te.current.getBoundingClientRect().height) != null ? qt : 0, window.innerHeight);
57224
- var rn;
57225
- const vn = Math.min((rn = te.current.getBoundingClientRect().width) != null ? rn : 0, window.innerWidth), gt = x === "left" || x === "right";
57224
+ var on;
57225
+ const vn = Math.min((on = te.current.getBoundingClientRect().width) != null ? on : 0, window.innerWidth), gt = x === "left" || x === "right";
57226
57226
  if (Math.abs(nt) >= (gt ? vn : wt) * l) {
57227
57227
  at(), o == null || o(Be, !1);
57228
57228
  return;
@@ -57898,7 +57898,7 @@ const u2t = ({
57898
57898
  content: i,
57899
57899
  size: a
57900
57900
  }) => {
57901
- const s = Xe(null), l = () => {
57901
+ const s = et(null), l = () => {
57902
57902
  s.current && s.current.click();
57903
57903
  };
57904
57904
  return /* @__PURE__ */ j.jsxs(j.Fragment, { children: [
@@ -57983,7 +57983,7 @@ hn(
57983
57983
  )
57984
57984
  );
57985
57985
  const c2t = ({ content: e }) => {
57986
- const [t, n] = Re(0), r = Xe(null);
57986
+ const [t, n] = Re(0), r = et(null);
57987
57987
  return Pe(() => {
57988
57988
  e && r.current ? n(r.current.scrollHeight) : n(0);
57989
57989
  }, [e]), /* @__PURE__ */ j.jsx(
@@ -58712,8 +58712,8 @@ function wM(e, t) {
58712
58712
  for (const n in e)
58713
58713
  t(n.trim(), e[n]);
58714
58714
  }
58715
- function Qt(...e) {
58716
- const t = e.reduce((n, r) => (r instanceof Set ? n.push(...r) : typeof r == "string" ? n.push(r) : Array.isArray(r) ? n.push(Qt(...r)) : typeof r == "object" && Object.entries(r).forEach(([o, i]) => {
58715
+ function Xt(...e) {
58716
+ const t = e.reduce((n, r) => (r instanceof Set ? n.push(...r) : typeof r == "string" ? n.push(r) : Array.isArray(r) ? n.push(Xt(...r)) : typeof r == "object" && Object.entries(r).forEach(([o, i]) => {
58717
58717
  i && n.push(o);
58718
58718
  }), n), []);
58719
58719
  return oy(t, " ").trim();
@@ -75660,7 +75660,7 @@ function Ogt(e) {
75660
75660
  }
75661
75661
  function YT(e, t) {
75662
75662
  t === void 0 && (t = 0);
75663
- var n = Re(e), r = n[0], o = n[1], i = Xe(null);
75663
+ var n = Re(e), r = n[0], o = n[1], i = et(null);
75664
75664
  function a(s) {
75665
75665
  return new Promise(function(l) {
75666
75666
  var u;
@@ -75678,7 +75678,7 @@ function Bgt() {
75678
75678
  };
75679
75679
  }
75680
75680
  function xZ() {
75681
- var e = Xe({}), t = Ngt();
75681
+ var e = et({}), t = Ngt();
75682
75682
  return It(function() {
75683
75683
  var n = parseFloat("" + t);
75684
75684
  return !t || Number.isNaN(n) ? e.current : Ib.reduce(function(r, o) {
@@ -75702,7 +75702,7 @@ function Pgt(e) {
75702
75702
  }, [e]);
75703
75703
  }
75704
75704
  function Hgt(e) {
75705
- var t = e.children, n = xZ(), r = kgt(), o = Lgt(), i = Xe(ip), a = Xe(!1), s = Xe(!1), l = Xe(n), u = YT(Date.now(), 200), c = YT("", 100), d = Re(!1), f = Re(r), p = Re(null), h = Re(/* @__PURE__ */ new Set()), g = Re(null), m = Re(o), b = Re(!1), k = b[0], v = b[1];
75705
+ var t = e.children, n = xZ(), r = kgt(), o = Lgt(), i = et(ip), a = et(!1), s = et(!1), l = et(n), u = YT(Date.now(), 200), c = YT("", 100), d = Re(!1), f = Re(r), p = Re(null), h = Re(/* @__PURE__ */ new Set()), g = Re(null), m = Re(o), b = Re(!1), k = b[0], v = b[1];
75706
75706
  return Pgt(v), Ve(qi.Provider, {
75707
75707
  value: {
75708
75708
  activeCategoryState: p,
@@ -75831,7 +75831,7 @@ function Qp() {
75831
75831
  return document.activeElement;
75832
75832
  }
75833
75833
  function Ugt(e) {
75834
- var t = e.children, n = Xe(null), r = Xe(null), o = Xe(null), i = Xe(null), a = Xe(null), s = Xe(null), l = Xe(null), u = Xe(null);
75834
+ var t = e.children, n = et(null), r = et(null), o = et(null), i = et(null), a = et(null), s = et(null), l = et(null), u = et(null);
75835
75835
  return Ve(CZ.Provider, {
75836
75836
  value: {
75837
75837
  AnchoredEmojiRef: r,
@@ -76414,7 +76414,7 @@ function jmt(e) {
76414
76414
  gmt(), Cmt();
76415
76415
  var c = u || {}, d = c.width, f = c.height, p = tZ(c, Emt);
76416
76416
  return Ve("aside", {
76417
- className: Qt(ff.main, ff.baseVariables, i === Yp.DARK && ff.darkTheme, i === Yp.AUTO && ff.autoThemeDark, (t = {}, t[Yt.searchActive] = a, t), o && ff.reactionsMenu, l),
76417
+ className: Xt(ff.main, ff.baseVariables, i === Yp.DARK && ff.darkTheme, i === Yp.AUTO && ff.autoThemeDark, (t = {}, t[Yt.searchActive] = a, t), o && ff.reactionsMenu, l),
76418
76418
  ref: s,
76419
76419
  style: Wn({}, p, !o && {
76420
76420
  height: f,
@@ -76806,7 +76806,7 @@ function eK(e) {
76806
76806
  return e.imgUrl !== void 0;
76807
76807
  }
76808
76808
  function tK(e, t) {
76809
- var n = Xe(), r = NZ(), o = qgt(), i = B0(), a = i[1], s = wc(), l = jM(), u = l[0], c = Cgt(t), d = kZ(), f = d[1], p = kc(), h = vc(), g = Ze(function(k) {
76809
+ var n = et(), r = NZ(), o = qgt(), i = B0(), a = i[1], s = wc(), l = jM(), u = l[0], c = Cgt(t), d = kZ(), f = d[1], p = kc(), h = vc(), g = Ze(function(k) {
76810
76810
  if (!o.current) {
76811
76811
  s();
76812
76812
  var v = rL(k), x = v[0], w = v[1];
@@ -76881,7 +76881,7 @@ function H2(e) {
76881
76881
  return Ve("button", Object.assign({
76882
76882
  type: "button"
76883
76883
  }, e, {
76884
- className: Qt(Wmt.button, e.className)
76884
+ className: Xt(Wmt.button, e.className)
76885
76885
  }), e.children);
76886
76886
  }
76887
76887
  var Wmt = /* @__PURE__ */ In.create({
@@ -76896,7 +76896,7 @@ var Wmt = /* @__PURE__ */ In.create({
76896
76896
  function Gmt(e) {
76897
76897
  var t, n = e.emojiNames, r = e.unified, o = e.hidden, i = e.hiddenOnSearch, a = e.showVariations, s = a === void 0 ? !0 : a, l = e.hasVariations, u = e.children, c = e.className, d = e.noBackground, f = d === void 0 ? !1 : d;
76898
76898
  return Ve(H2, {
76899
- className: Qt(X5.emoji, o && FM.hidden, i && xc.hiddenOnSearch, (t = {}, t[Yt.visible] = !o && !i, t), !!(l && s) && X5.hasVariations, f && X5.noBackground, c),
76899
+ className: Xt(X5.emoji, o && FM.hidden, i && xc.hiddenOnSearch, (t = {}, t[Yt.visible] = !o && !i, t), !!(l && s) && X5.hasVariations, f && X5.noBackground, c),
76900
76900
  "data-unified": r,
76901
76901
  "aria-label": Zmt(n),
76902
76902
  "data-full-name": n
@@ -76975,7 +76975,7 @@ function oL(e) {
76975
76975
  return Ve("img", {
76976
76976
  src: i,
76977
76977
  alt: t,
76978
- className: Qt(Kmt.emojiImag, ly.external, ly.common, s),
76978
+ className: Xt(Kmt.emojiImag, ly.external, ly.common, s),
76979
76979
  loading: o ? "lazy" : "eager",
76980
76980
  onError: a,
76981
76981
  style: n
@@ -76994,7 +76994,7 @@ var Kmt = /* @__PURE__ */ In.create({
76994
76994
  function Ymt(e) {
76995
76995
  var t = e.unified, n = e.style, r = e.className;
76996
76996
  return Ve("span", {
76997
- className: Qt($mt.nativeEmoji, ly.common, ly.external, r),
76997
+ className: Xt($mt.nativeEmoji, ly.common, ly.external, r),
76998
76998
  "data-unified": t,
76999
76999
  style: n
77000
77000
  }, JZ(t));
@@ -77075,7 +77075,7 @@ function Qmt() {
77075
77075
  "aria-label": "Show all Emojis",
77076
77076
  title: "Show all Emojis",
77077
77077
  tabIndex: 0,
77078
- className: Qt(Xmt.plusSign),
77078
+ className: Xt(Xmt.plusSign),
77079
77079
  onClick: function() {
77080
77080
  return t(!1);
77081
77081
  }
@@ -77133,7 +77133,7 @@ function e4t() {
77133
77133
  tK(n, Jp.REACTIONS);
77134
77134
  var o = vc(), i = pZ(), a = kc();
77135
77135
  return t ? Ve("ul", {
77136
- className: Qt(iL.list, !t && FM.hidden),
77136
+ className: Xt(iL.list, !t && FM.hidden),
77137
77137
  ref: n
77138
77138
  }, r.map(function(s) {
77139
77139
  return Ve("li", {
@@ -77143,7 +77143,7 @@ function e4t() {
77143
77143
  emojiStyle: o,
77144
77144
  unified: s,
77145
77145
  showVariations: !1,
77146
- className: Qt(iL.emojiButton),
77146
+ className: Xt(iL.emojiButton),
77147
77147
  noBackground: !0,
77148
77148
  getEmojiUrl: a
77149
77149
  }));
@@ -77203,13 +77203,13 @@ function n4t() {
77203
77203
  function nK(e) {
77204
77204
  var t = e.categoryConfig, n = e.children, r = e.hidden, o = e.hiddenOnSearch, i = MM(t), a = iZ(t);
77205
77205
  return Ve("li", {
77206
- className: Qt(ex.category, r && FM.hidden, o && xc.hiddenOnSearch),
77206
+ className: Xt(ex.category, r && FM.hidden, o && xc.hiddenOnSearch),
77207
77207
  "data-name": i,
77208
77208
  "aria-label": a
77209
77209
  }, Ve("h2", {
77210
- className: Qt(ex.label)
77210
+ className: Xt(ex.label)
77211
77211
  }, a), Ve("div", {
77212
- className: Qt(ex.categoryContent)
77212
+ className: Xt(ex.categoryContent)
77213
77213
  }, n));
77214
77214
  }
77215
77215
  var ex = /* @__PURE__ */ In.create({
@@ -77280,9 +77280,9 @@ function o4t(e) {
77280
77280
  })) : null;
77281
77281
  }
77282
77282
  function i4t() {
77283
- var e = gZ(), t = Xe(0);
77283
+ var e = gZ(), t = et(0);
77284
77284
  return Ve("ul", {
77285
- className: Qt(s4t.emojiList)
77285
+ className: Xt(s4t.emojiList)
77286
77286
  }, e.map(function(n) {
77287
77287
  var r = MM(n);
77288
77288
  return r === Zt.SUGGESTED ? Ve(o4t, {
@@ -77340,7 +77340,7 @@ function u4t() {
77340
77340
  var p, h;
77341
77341
  return !f && e.current ? l(null) : (p = a(), h = u()), Ve("div", {
77342
77342
  ref: t,
77343
- className: Qt(Gg.variationPicker, s() === Cd.Down && Gg.pointingUp, f && Gg.visible),
77343
+ className: Xt(Gg.variationPicker, s() === Cd.Down && Gg.pointingUp, f && Gg.visible),
77344
77344
  style: {
77345
77345
  top: p
77346
77346
  }
@@ -77354,7 +77354,7 @@ function u4t() {
77354
77354
  getEmojiUrl: c
77355
77355
  });
77356
77356
  }) : null, Ve("div", {
77357
- className: Qt(Gg.pointer),
77357
+ className: Xt(Gg.pointer),
77358
77358
  style: h
77359
77359
  }));
77360
77360
  }
@@ -77456,7 +77456,7 @@ var Gg = /* @__PURE__ */ In.create(/* @__PURE__ */ Wn({
77456
77456
  function f4t() {
77457
77457
  var e = Vi();
77458
77458
  return t4t(e), tK(e, Jp.PICKER), omt(), Ve("div", {
77459
- className: Qt(p4t.body, xc.hiddenOnReactions),
77459
+ className: Xt(p4t.body, xc.hiddenOnReactions),
77460
77460
  ref: e
77461
77461
  }, Ve(u4t, null), Ve(i4t, null));
77462
77462
  }
@@ -77540,7 +77540,7 @@ function rK(e) {
77540
77540
  var t = e.children, n = e.className, r = e.style, o = r === void 0 ? {} : r, i = e.direction, a = i === void 0 ? Xp.ROW : i;
77541
77541
  return Ve("div", {
77542
77542
  style: Wn({}, o),
77543
- className: Qt(aL.flex, n, aL[a])
77543
+ className: Xt(aL.flex, n, aL[a])
77544
77544
  }, t);
77545
77545
  }
77546
77546
  var aL = /* @__PURE__ */ In.create((Zg = {
@@ -77558,7 +77558,7 @@ function y4t(e) {
77558
77558
  style: Wn({
77559
77559
  flex: 1
77560
77560
  }, r),
77561
- className: Qt(t)
77561
+ className: Xt(t)
77562
77562
  });
77563
77563
  }
77564
77564
  function b4t(e) {
@@ -77584,7 +77584,7 @@ function x4t(e) {
77584
77584
  return Ve(H2, {
77585
77585
  style: i,
77586
77586
  onClick: n,
77587
- className: Qt("epr-tone-" + o, nx.tone, !t && nx.closedTone, r && nx.active),
77587
+ className: Xt("epr-tone-" + o, nx.tone, !t && nx.closedTone, r && nx.active),
77588
77588
  "aria-pressed": r,
77589
77589
  "aria-label": "Skin tone " + rgt[o]
77590
77590
  });
@@ -77658,7 +77658,7 @@ function oK(e) {
77658
77658
  return null;
77659
77659
  var h = zf * iy.length + "px", g = a ? h : zf + "px", m = n === eh.VERTICAL;
77660
77660
  return Ve(Ub, {
77661
- className: Qt(pf.skinTones, m && pf.vertical, a && pf.open, m && a && pf.verticalShadow),
77661
+ className: Xt(pf.skinTones, m && pf.vertical, a && pf.open, m && a && pf.verticalShadow),
77662
77662
  style: m ? {
77663
77663
  flexBasis: g,
77664
77664
  height: g
@@ -77666,7 +77666,7 @@ function oK(e) {
77666
77666
  flexBasis: g
77667
77667
  }
77668
77668
  }, Ve("div", {
77669
- className: Qt(pf.select),
77669
+ className: Xt(pf.select),
77670
77670
  ref: r
77671
77671
  }, iy.map(function(b, k) {
77672
77672
  var v = b === u;
@@ -77675,7 +77675,7 @@ function oK(e) {
77675
77675
  skinToneVariation: b,
77676
77676
  isOpen: a,
77677
77677
  style: {
77678
- transform: Qt(m ? "translateY(-" + k * (a ? zf : 0) + "px)" : "translateX(-" + k * (a ? zf : 0) + "px)", a && v && "scale(1.3)")
77678
+ transform: Xt(m ? "translateY(-" + k * (a ? zf : 0) + "px)" : "translateX(-" + k * (a ? zf : 0) + "px)", a && v && "scale(1.3)")
77679
77679
  },
77680
77680
  isActive: v,
77681
77681
  onClick: function() {
@@ -77728,7 +77728,7 @@ var pf = /* @__PURE__ */ In.create({
77728
77728
  function k4t() {
77729
77729
  var e = mZ(), t = IZ();
77730
77730
  return e.showPreview ? Ve(rK, {
77731
- className: Qt(r4.preview, xc.hiddenOnReactions)
77731
+ className: Xt(r4.preview, xc.hiddenOnReactions)
77732
77732
  }, Ve(w4t, null), Ve(y4t, null), t ? Ve(v4t, null) : null) : null;
77733
77733
  }
77734
77734
  function w4t() {
@@ -77747,16 +77747,16 @@ function w4t() {
77747
77747
  emojiStyle: i,
77748
77748
  size: 45,
77749
77749
  getEmojiUrl: l,
77750
- className: Qt(r4.emoji)
77750
+ className: Xt(r4.emoji)
77751
77751
  }) : f ? Ve(q9, {
77752
77752
  unified: co(f),
77753
77753
  emoji: f,
77754
77754
  emojiStyle: i,
77755
77755
  size: 45,
77756
77756
  getEmojiUrl: l,
77757
- className: Qt(r4.emoji)
77757
+ className: Xt(r4.emoji)
77758
77758
  }) : null), Ve("div", {
77759
- className: Qt(r4.label)
77759
+ className: Xt(r4.label)
77760
77760
  }, c ? P9(u) : p));
77761
77761
  }
77762
77762
  }
@@ -77833,7 +77833,7 @@ function j4t(e) {
77833
77833
  var t, n = e.isActiveCategory, r = e.category, o = e.allowNavigation, i = e.categoryConfig, a = e.onClick;
77834
77834
  return Ve(H2, {
77835
77835
  tabIndex: o ? 0 : -1,
77836
- className: Qt(S4t.catBtn, xc.categoryBtn, "epr-icn-" + r, (t = {}, t[Yt.active] = n, t)),
77836
+ className: Xt(S4t.catBtn, xc.categoryBtn, "epr-icn-" + r, (t = {}, t[Yt.active] = n, t)),
77837
77837
  onClick: a,
77838
77838
  "aria-label": iZ(i),
77839
77839
  "aria-selected": n,
@@ -77914,7 +77914,7 @@ function T4t() {
77914
77914
  M4t(n);
77915
77915
  var o = Bb(), i = gZ(), a = SM(), s = E4t();
77916
77916
  return Ve("div", {
77917
- className: Qt(L4t.nav),
77917
+ className: Xt(L4t.nav),
77918
77918
  role: "tablist",
77919
77919
  "aria-label": "Category navigation",
77920
77920
  id: "epr-category-nav-id",
@@ -77962,12 +77962,12 @@ var L4t = /* @__PURE__ */ In.create({
77962
77962
  function N4t() {
77963
77963
  var e = LZ();
77964
77964
  return Ve(H2, {
77965
- className: Qt(uL.btnClearSearch, xc.visibleOnSearchOnly),
77965
+ className: Xt(uL.btnClearSearch, xc.visibleOnSearchOnly),
77966
77966
  onClick: e,
77967
77967
  "aria-label": "Clear",
77968
77968
  title: "Clear"
77969
77969
  }, Ve("div", {
77970
- className: Qt(uL.icnClearnSearch)
77970
+ className: Xt(uL.icnClearnSearch)
77971
77971
  }));
77972
77972
  }
77973
77973
  var I4t = {
@@ -78041,7 +78041,7 @@ function B4t(e) {
78041
78041
  var z4t = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjQwcHgiIHZpZXdCb3g9IjAgMCAyMCA0MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iIzg2ODY4NiIgZD0iTTEyLDguODFjMCwyLjA4LTEuNjgsMy43Ni0zLjc2LDMuNzZjLTIuMDgsMC0zLjc2LTEuNjgtMy43Ni0zLjc2CgljMC0yLjA4LDEuNjgtMy43NiwzLjc2LTMuNzZDMTAuMzIsNS4wNSwxMiw2LjczLDEyLDguODF6IE0xMS4yMywxMi43MmMtMC44MywwLjY0LTEuODcsMS4wMS0yLjk5LDEuMDFjLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTIKCWMwLTIuNzIsMi4yLTQuOTIsNC45Mi00LjkyYzIuNzIsMCw0LjkyLDIuMiw0LjkyLDQuOTJjMCwxLjEzLTAuMzgsMi4xNi0xLjAxLDIuOTlsMy45NCwzLjkzYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyCgljLTAuMjUsMC4yNS0wLjY2LDAuMjUtMC45MiwwTDExLjIzLDEyLjcyeiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI0MwQzBCRiIgZD0iTTEyLDI4LjgxYzAsMi4wOC0xLjY4LDMuNzYtMy43NiwzLjc2Yy0yLjA4LDAtMy43Ni0xLjY4LTMuNzYtMy43NgoJYzAtMi4wOCwxLjY4LTMuNzYsMy43Ni0zLjc2QzEwLjMyLDI1LjA1LDEyLDI2LjczLDEyLDI4LjgxeiBNMTEuMjMsMzIuNzJjLTAuODMsMC42NC0xLjg3LDEuMDEtMi45OSwxLjAxCgljLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTJjMC0yLjcyLDIuMi00LjkyLDQuOTItNC45MmMyLjcyLDAsNC45MiwyLjIsNC45Miw0LjkyYzAsMS4xMy0wLjM4LDIuMTYtMS4wMSwyLjk5bDMuOTQsMy45MwoJYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyYy0wLjI1LDAuMjUtMC42NiwwLjI1LTAuOTIsMEwxMS4yMywzMi43MnoiLz4KPC9zdmc+";
78042
78042
  function _4t() {
78043
78043
  return Ve("div", {
78044
- className: Qt(P4t.icnSearch)
78044
+ className: Xt(P4t.icnSearch)
78045
78045
  });
78046
78046
  }
78047
78047
  var P4t = /* @__PURE__ */ In.create(/* @__PURE__ */ Wn({
@@ -78065,13 +78065,13 @@ var P4t = /* @__PURE__ */ In.create(/* @__PURE__ */ Wn({
78065
78065
  function H4t() {
78066
78066
  var e = yZ(), t = LM();
78067
78067
  return e ? null : Ve(rK, {
78068
- className: Qt(o4.overlay)
78068
+ className: Xt(o4.overlay)
78069
78069
  }, Ve(q4t, null), t ? Ve(oK, null) : null);
78070
78070
  }
78071
78071
  function q4t() {
78072
78072
  var e = Re(0), t = e[0], n = e[1], r = wc(), o = G1(), i = vgt(), a = wgt(), s = lmt(), l = s.statusSearchResults, u = s.searchTerm, c = s.onChange, d = o == null ? void 0 : o.current, f = d == null ? void 0 : d.value;
78073
78073
  return Ve(Ub, {
78074
- className: Qt(o4.searchContainer)
78074
+ className: Xt(o4.searchContainer)
78075
78075
  }, Ve(O4t, {
78076
78076
  value: f
78077
78077
  }), Ve("input", {
@@ -78079,7 +78079,7 @@ function q4t() {
78079
78079
  autoFocus: a,
78080
78080
  "aria-label": "Type to search for an emoji",
78081
78081
  onFocus: r,
78082
- className: Qt(o4.search),
78082
+ className: Xt(o4.search),
78083
78083
  type: "text",
78084
78084
  "aria-controls": "epr-search-id",
78085
78085
  placeholder: i,
@@ -78092,7 +78092,7 @@ function q4t() {
78092
78092
  ref: o
78093
78093
  }), u ? Ve("div", {
78094
78094
  role: "status",
78095
- className: Qt("epr-status-search-results", o4.visuallyHidden),
78095
+ className: Xt("epr-status-search-results", o4.visuallyHidden),
78096
78096
  "aria-live": "polite",
78097
78097
  id: "epr-search-id",
78098
78098
  "aria-atomic": "true"
@@ -78180,7 +78180,7 @@ var o4 = /* @__PURE__ */ In.create(/* @__PURE__ */ Wn({
78180
78180
  })));
78181
78181
  function V4t() {
78182
78182
  return Ve(Ub, {
78183
- className: Qt("epr-header", xc.hiddenOnReactions)
78183
+ className: Xt("epr-header", xc.hiddenOnReactions)
78184
78184
  }, Ve(H4t, null), Ve(T4t, null));
78185
78185
  }
78186
78186
  function U4t(e) {
@@ -78230,7 +78230,7 @@ function Y4t(e) {
78230
78230
  }
78231
78231
  hn(
78232
78232
  ({ handleEmojiClick: e, handleAvatarInput: t, onRemove: n, className: r, ...o }, i) => {
78233
- const [a, s] = Re("emojiPicker"), l = Xe(null), u = () => {
78233
+ const [a, s] = Re("emojiPicker"), l = et(null), u = () => {
78234
78234
  l.current && l.current.click();
78235
78235
  };
78236
78236
  return /* @__PURE__ */ j.jsx("div", { ref: i, className: r, ...o, children: /* @__PURE__ */ j.jsxs(
@@ -79417,7 +79417,7 @@ var G9 = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.CARD = "CARD", e))(G9 || {}
79417
79417
  const Jyt = ({
79418
79418
  delay: e = 2e3
79419
79419
  }) => {
79420
- const [t, n] = Re(!1), [r, o] = Re(!1), i = Xe(null), a = Ze(() => {
79420
+ const [t, n] = Re(!1), [r, o] = Re(!1), i = et(null), a = Ze(() => {
79421
79421
  i.current && clearTimeout(i.current), i.current = setTimeout(() => {
79422
79422
  n(!0), o(!0);
79423
79423
  }, e);
@@ -79434,7 +79434,7 @@ const Jyt = ({
79434
79434
  };
79435
79435
  var rt = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.HEADING = 1] = "HEADING", e[e.TEXT_COLOR = 2] = "TEXT_COLOR", e[e.HIGHLIGHT = 3] = "HIGHLIGHT", e[e.LINK = 4] = "LINK", e[e.FONT_FAMILY = 5] = "FONT_FAMILY", e[e.ALIGNMENT = 6] = "ALIGNMENT", e[e.LIST = 7] = "LIST", e[e.TEXT_FORMATING = 8] = "TEXT_FORMATING", e[e.TEXT_COLOR_PICKER = 9] = "TEXT_COLOR_PICKER", e[e.LINK_POPUP = 10] = "LINK_POPUP", e[e.SCRIPTS = 11] = "SCRIPTS", e[e.FONT_SIZE = 12] = "FONT_SIZE", e))(rt || {});
79436
79436
  function Qyt(e) {
79437
- const [t, n] = Re(e), r = Xe(null), o = (i) => {
79437
+ const [t, n] = Re(e), r = et(null), o = (i) => {
79438
79438
  r && r.current && !r.current.contains(i.target) && n(
79439
79439
  0
79440
79440
  /* NONE */
@@ -79567,7 +79567,7 @@ const CK = (e) => VM(e).buffer, EK = (e) => {
79567
79567
  } catch (o) {
79568
79568
  console.error("Error decrypting and displaying the image:", o);
79569
79569
  }
79570
- }, sp = new sn("upload-image"), u3t = () => new tn({
79570
+ }, sp = new rn("upload-image"), u3t = () => new Qt({
79571
79571
  key: sp,
79572
79572
  state: {
79573
79573
  init() {
@@ -80680,10 +80680,10 @@ function H3t(e, t, n, r, o, i, a) {
80680
80680
  loop: pt
80681
80681
  }
80682
80682
  }, dt) => {
80683
- const Rt = Te.settled(), qt = !nt.shouldConstrain(), wt = pt ? Rt : Rt && qt, rn = wt && !Je.pointerDown();
80684
- rn && tt.stop();
80683
+ const Rt = Te.settled(), qt = !nt.shouldConstrain(), wt = pt ? Rt : Rt && qt, on = wt && !Je.pointerDown();
80684
+ on && tt.stop();
80685
80685
  const vn = at.get() * dt + we.get() * (1 - dt);
80686
- Ct.set(vn), pt && (qe.loop(Te.direction()), Ce.loop()), $e.to(Ct.get()), rn && Be.emit("settle"), wt || Be.emit("scroll");
80686
+ Ct.set(vn), pt && (qe.loop(Te.direction()), Ce.loop()), $e.to(Ct.get()), on && Be.emit("settle"), wt || Be.emit("scroll");
80687
80687
  }, te = b3t(r, o, () => Se(be), (Te) => Ae(be, Te)), J = 0.68, $ = de[Ie.get()], ie = _f($), ve = _f($), V = _f($), E = _f($), N = C3t(ie, V, ve, E, f, J), O = N3t(d, de, ce, Fe, E), re = I3t(te, Ie, Le, N, O, E, a), fe = S3t(Fe), he = oh(), me = z3t(t, n, a, g), {
80688
80688
  slideRegistry: ee
80689
80689
  } = L3t(U, k, de, X, K, Me), ue = R3t(e, n, ee, re, N, he, a, F), be = {
@@ -80934,7 +80934,7 @@ function cy(e, t, n) {
80934
80934
  }
80935
80935
  cy.globalOptions = void 0;
80936
80936
  function YM(e = {}, t = []) {
80937
- const n = Xe(e), r = Xe(t), [o, i] = Re(), [a, s] = Re(), l = Ze(() => {
80937
+ const n = et(e), r = et(t), [o, i] = Re(), [a, s] = Re(), l = Ze(() => {
80938
80938
  o && o.reInit(n.current, r.current);
80939
80939
  }, [o]);
80940
80940
  return Pe(() => {
@@ -81129,7 +81129,7 @@ var K3t = typeof Br == "object" && Br && Br.Object === Object && Br, Y3t = typeo
81129
81129
  K3t || Y3t || Function("return this")();
81130
81130
  var zK = typeof window < "u" ? gl : Pe;
81131
81131
  function $3t(e, t, n, r) {
81132
- const o = Xe(t);
81132
+ const o = et(t);
81133
81133
  zK(() => {
81134
81134
  o.current = t;
81135
81135
  }, [t]), Pe(() => {
@@ -86505,7 +86505,7 @@ async function o6(e, t) {
86505
86505
  });
86506
86506
  return K === "0x" ? { data: void 0 } : { data: K };
86507
86507
  } catch (U) {
86508
- const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-DISzctOC.mjs");
86508
+ const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-Cn9vbSdV.mjs");
86509
86509
  if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === G && k)
86510
86510
  return { data: await _(e, { data: P, to: k }) };
86511
86511
  throw D && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new v5t({ factory: c }) : r$(U, {
@@ -91488,7 +91488,7 @@ const X$ = fn(void 0), F9t = ({
91488
91488
  onComment: w,
91489
91489
  setCommentDrawerOpen: F
91490
91490
  }) => {
91491
- const [A, C] = Re(!0), [D, T] = Re(""), [I, B] = Re(""), [W, q] = Re(null), U = Xe(null), P = Xe(null), [_, G] = Re(""), [Z, Q] = Re(!1), K = Xe(null), ne = Xe(null), le = Xe(null), ce = t.isActive("comment"), pe = t.getAttributes("comment").resolved, [X, de] = Re({
91491
+ const [A, C] = Re(!0), [D, T] = Re(""), [I, B] = Re(""), [W, q] = Re(null), U = et(null), P = et(null), [_, G] = Re(""), [Z, Q] = Re(!1), K = et(null), ne = et(null), le = et(null), ce = t.isActive("comment"), pe = t.getAttributes("comment").resolved, [X, de] = Re({
91492
91492
  inlineCommentText: "",
91493
91493
  handleClick: !1
91494
91494
  }), Fe = localStorage.getItem("ensCache"), [Ie, Le] = Re(
@@ -91634,9 +91634,9 @@ const X$ = fn(void 0), F9t = ({
91634
91634
  (qt) => qt && (qt.scrollHeight > qt.clientHeight || window.getComputedStyle(qt).overflow === "auto" || window.getComputedStyle(qt).overflowY === "auto")
91635
91635
  );
91636
91636
  Rt && requestAnimationFrame(() => {
91637
- const qt = Rt.getBoundingClientRect(), wt = Be.getBoundingClientRect(), rn = wt.top - qt.top - qt.height / 2 + wt.height / 2;
91637
+ const qt = Rt.getBoundingClientRect(), wt = Be.getBoundingClientRect(), on = wt.top - qt.top - qt.height / 2 + wt.height / 2;
91638
91638
  Rt.scrollBy({
91639
- top: rn,
91639
+ top: on,
91640
91640
  behavior: "smooth"
91641
91641
  });
91642
91642
  });
@@ -95161,12 +95161,12 @@ function DJ() {
95161
95161
  const pt = Jt({}, ["title", "style", "font", "a", "script"]);
95162
95162
  let dt = null;
95163
95163
  const Rt = ["application/xhtml+xml", "text/html"], qt = "text/html";
95164
- let wt = null, rn = null;
95164
+ let wt = null, on = null;
95165
95165
  const vn = n.createElement("form"), gt = function(oe) {
95166
95166
  return oe instanceof RegExp || oe instanceof Function;
95167
95167
  }, kn = function() {
95168
95168
  let oe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
95169
- if (!(rn && rn === oe)) {
95169
+ if (!(on && on === oe)) {
95170
95170
  if ((!oe || typeof oe != "object") && (oe = {}), oe = su(oe), dt = // eslint-disable-next-line unicorn/prefer-includes
95171
95171
  Rt.indexOf(oe.PARSER_MEDIA_TYPE) === -1 ? qt : oe.PARSER_MEDIA_TYPE, wt = dt === "application/xhtml+xml" ? Rx : l4, K = Gi(oe, "ALLOWED_TAGS") ? Jt({}, oe.ALLOWED_TAGS, wt) : ne, le = Gi(oe, "ALLOWED_ATTR") ? Jt({}, oe.ALLOWED_ATTR, wt) : ce, Je = Gi(oe, "ALLOWED_NAMESPACES") ? Jt({}, oe.ALLOWED_NAMESPACES, Rx) : tt, Te = Gi(oe, "ADD_URI_SAFE_ATTR") ? Jt(su($e), oe.ADD_URI_SAFE_ATTR, wt) : $e, ue = Gi(oe, "ADD_DATA_URI_TAGS") ? Jt(su(be), oe.ADD_DATA_URI_TAGS, wt) : be, me = Gi(oe, "FORBID_CONTENTS") ? Jt({}, oe.FORBID_CONTENTS, wt) : ee, X = Gi(oe, "FORBID_TAGS") ? Jt({}, oe.FORBID_TAGS, wt) : {}, de = Gi(oe, "FORBID_ATTR") ? Jt({}, oe.FORBID_ATTR, wt) : {}, he = Gi(oe, "USE_PROFILES") ? oe.USE_PROFILES : !1, Fe = oe.ALLOW_ARIA_ATTR !== !1, Ie = oe.ALLOW_DATA_ATTR !== !1, Le = oe.ALLOW_UNKNOWN_PROTOCOLS || !1, Me = oe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Se = oe.SAFE_FOR_TEMPLATES || !1, Ae = oe.SAFE_FOR_XML !== !1, te = oe.WHOLE_DOCUMENT || !1, ie = oe.RETURN_DOM || !1, ve = oe.RETURN_DOM_FRAGMENT || !1, V = oe.RETURN_TRUSTED_TYPE || !1, $ = oe.FORCE_BODY || !1, E = oe.SANITIZE_DOM !== !1, N = oe.SANITIZE_NAMED_PROPS || !1, re = oe.KEEP_CONTENT !== !1, fe = oe.IN_PLACE || !1, Q = oe.ALLOWED_URI_REGEXP || AJ, qe = oe.NAMESPACE || we, Be = oe.MATHML_TEXT_INTEGRATION_POINTS || Be, nt = oe.HTML_INTEGRATION_POINTS || nt, pe = oe.CUSTOM_ELEMENT_HANDLING || {}, oe.CUSTOM_ELEMENT_HANDLING && gt(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (pe.tagNameCheck = oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck), oe.CUSTOM_ELEMENT_HANDLING && gt(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (pe.attributeNameCheck = oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), oe.CUSTOM_ELEMENT_HANDLING && typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (pe.allowCustomizedBuiltInElements = oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Se && (Ie = !1), ve && (ie = !0), he && (K = Jt({}, BN), le = [], he.html === !0 && (Jt(K, ON), Jt(le, zN)), he.svg === !0 && (Jt(K, Ox), Jt(le, _x), Jt(le, nm)), he.svgFilters === !0 && (Jt(K, Bx), Jt(le, _x), Jt(le, nm)), he.mathMl === !0 && (Jt(K, zx), Jt(le, _N), Jt(le, nm))), oe.ADD_TAGS && (K === ne && (K = su(K)), Jt(K, oe.ADD_TAGS, wt)), oe.ADD_ATTR && (le === ce && (le = su(le)), Jt(le, oe.ADD_ATTR, wt)), oe.ADD_URI_SAFE_ATTR && Jt(Te, oe.ADD_URI_SAFE_ATTR, wt), oe.FORBID_CONTENTS && (me === ee && (me = su(me)), Jt(me, oe.FORBID_CONTENTS, wt)), re && (K["#text"] = !0), te && Jt(K, ["html", "head", "body"]), K.table && (Jt(K, ["tbody"]), delete X.tbody), oe.TRUSTED_TYPES_POLICY) {
95172
95172
  if (typeof oe.TRUSTED_TYPES_POLICY.createHTML != "function")
@@ -95176,7 +95176,7 @@ function DJ() {
95176
95176
  x = oe.TRUSTED_TYPES_POLICY, w = x.createHTML("");
95177
95177
  } else
95178
95178
  x === void 0 && (x = Dwt(p, o)), x !== null && typeof w == "string" && (w = x.createHTML(""));
95179
- yo && yo(oe), rn = oe;
95179
+ yo && yo(oe), on = oe;
95180
95180
  }
95181
95181
  }, Gn = Jt({}, [...Ox, ...Bx, ...bwt]), Lr = Jt({}, [...zx, ...xwt]), pi = function(oe) {
95182
95182
  let De = v(oe);
@@ -95257,7 +95257,7 @@ function DJ() {
95257
95257
  };
95258
95258
  function je(Ne, oe, De) {
95259
95259
  tm(Ne, (_e) => {
95260
- _e.call(t, oe, De, rn);
95260
+ _e.call(t, oe, De, on);
95261
95261
  });
95262
95262
  }
95263
95263
  const Ue = function(oe) {
@@ -95429,9 +95429,9 @@ function DJ() {
95429
95429
  let Ne = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
95430
95430
  kn(Ne), J = !0;
95431
95431
  }, t.clearConfig = function() {
95432
- rn = null, J = !1;
95432
+ on = null, J = !1;
95433
95433
  }, t.isValidAttribute = function(Ne, oe, De) {
95434
- rn || kn({});
95434
+ on || kn({});
95435
95435
  const _e = wt(Ne), zt = wt(oe);
95436
95436
  return ct(_e, zt, De);
95437
95437
  }, t.addHook = function(Ne, oe) {
@@ -96243,7 +96243,7 @@ function zJ(e, t) {
96243
96243
  function lFt(e) {
96244
96244
  return e != null && (typeof e == "string" || e.nodeType && (e.nodeType === 1 || e.nodeType === 9 || e.nodeType === 11));
96245
96245
  }
96246
- const UC = new sn("inline-ui"), uFt = () => new tn({
96246
+ const UC = new rn("inline-ui"), uFt = () => new Qt({
96247
96247
  key: UC,
96248
96248
  state: {
96249
96249
  init() {
@@ -96462,11 +96462,11 @@ ${Array.from(t.childNodes).map((o) => o.nodeType === Node.ELEMENT_NODE ? Mn.turn
96462
96462
  `;
96463
96463
  }
96464
96464
  });
96465
- const hFt = (e) => Xt.create({
96465
+ const hFt = (e) => en.create({
96466
96466
  name: "markdownPasteHandler",
96467
96467
  addProseMirrorPlugins() {
96468
96468
  return [
96469
- new tn({
96469
+ new Qt({
96470
96470
  props: {
96471
96471
  handlePaste: (t, n) => {
96472
96472
  n.preventDefault();
@@ -99219,7 +99219,7 @@ const WJ = (e) => e && (e.length > 20 ? e.slice(0, 5) + "..." + e.slice(e.length
99219
99219
  version: h,
99220
99220
  emptyComment: g
99221
99221
  }) => {
99222
- const m = Xe(null), [b, k] = Re(!1), [v, x] = Re(!1), w = Xe(null), { setOpenReplyId: F } = ll(), { getEnsStatus: A, ensCache: C } = ll(), [D, T] = Re({
99222
+ const m = et(null), [b, k] = Re(!1), [v, x] = Re(!1), w = et(null), { setOpenReplyId: F } = ll(), { getEnsStatus: A, ensCache: C } = ll(), [D, T] = Re({
99223
99223
  name: e,
99224
99224
  isEns: !1
99225
99225
  });
@@ -99484,7 +99484,7 @@ const WJ = (e) => e && (e.length > 20 ? e.slice(0, 5) + "..." + e.slice(e.length
99484
99484
  isDisabled: o,
99485
99485
  isCommentOwner: i
99486
99486
  }) => {
99487
- const [a, s] = Re(t), [l, u] = Re(""), [c, d] = Re(!0), [f, p] = Re(!!e), h = Xe(null), [g, m] = Re(!1), {
99487
+ const [a, s] = Re(t), [l, u] = Re(""), [c, d] = Re(!0), [f, p] = Re(!!e), h = et(null), [g, m] = Re(!1), {
99488
99488
  inlineCommentData: b,
99489
99489
  setInlineCommentData: k,
99490
99490
  addComment: v,
@@ -100919,7 +100919,7 @@ const IMt = {
100919
100919
  return /* @__PURE__ */ M.jsx(nQ.Provider, { value: r, children: e });
100920
100920
  }, JC = fn({});
100921
100921
  function QC(e) {
100922
- const t = Xe(null);
100922
+ const t = et(null);
100923
100923
  return t.current === null && (t.current = e()), t.current;
100924
100924
  }
100925
100925
  const y6 = fn(null), XC = fn({
@@ -100946,7 +100946,7 @@ class OMt extends L.Component {
100946
100946
  }
100947
100947
  }
100948
100948
  function BMt({ children: e, isPresent: t }) {
100949
- const n = M0(), r = Xe(null), o = Xe({
100949
+ const n = M0(), r = et(null), o = et({
100950
100950
  width: 0,
100951
100951
  height: 0,
100952
100952
  top: 0,
@@ -101022,7 +101022,7 @@ function JN(e) {
101022
101022
  }), t;
101023
101023
  }
101024
101024
  const eE = typeof window < "u", oQ = eE ? gl : Pe, og = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
101025
- const [s, l] = rQ(a), u = It(() => JN(e), [e]), c = a && !s ? [] : u.map(im), d = Xe(!0), f = Xe(u), p = QC(() => /* @__PURE__ */ new Map()), [h, g] = Re(u), [m, b] = Re(u);
101025
+ const [s, l] = rQ(a), u = It(() => JN(e), [e]), c = a && !s ? [] : u.map(im), d = et(!0), f = et(u), p = QC(() => /* @__PURE__ */ new Map()), [h, g] = Re(u), [m, b] = Re(u);
101026
101026
  oQ(() => {
101027
101027
  d.current = !1, f.current = u;
101028
101028
  for (let x = 0; x < m.length; x++) {
@@ -101303,7 +101303,7 @@ function JMt(e, t, n) {
101303
101303
  const oE = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), QMt = "framerAppearId", uQ = "data-" + oE(QMt), { schedule: iE } = iQ(queueMicrotask, !1), cQ = fn({});
101304
101304
  function XMt(e, t, n, r, o) {
101305
101305
  var i, a;
101306
- const { visualElement: s } = Mt(x6), l = Mt(aQ), u = Mt(y6), c = Mt(XC).reducedMotion, d = Xe(null);
101306
+ const { visualElement: s } = Mt(x6), l = Mt(aQ), u = Mt(y6), c = Mt(XC).reducedMotion, d = et(null);
101307
101307
  r = r || l.renderer, !d.current && r && (d.current = r(e, {
101308
101308
  visualState: t,
101309
101309
  parent: s,
@@ -101314,11 +101314,11 @@ function XMt(e, t, n, r, o) {
101314
101314
  }));
101315
101315
  const f = d.current, p = Mt(cQ);
101316
101316
  f && !f.projection && o && (f.type === "html" || f.type === "svg") && eCt(d.current, n, o, p);
101317
- const h = Xe(!1);
101317
+ const h = et(!1);
101318
101318
  S3(() => {
101319
101319
  f && h.current && f.update(n, u);
101320
101320
  });
101321
- const g = n[uQ], m = Xe(!!g && !(!((i = window.MotionHandoffIsComplete) === null || i === void 0) && i.call(window, g)) && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, g)));
101321
+ const g = n[uQ], m = et(!!g && !(!((i = window.MotionHandoffIsComplete) === null || i === void 0) && i.call(window, g)) && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, g)));
101322
101322
  return oQ(() => {
101323
101323
  f && (h.current = !0, window.MotionIsMounted = !0, f.updateFeatures(), iE.render(f.render), m.current && f.animationState && f.animationState.animateChanges());
101324
101324
  }), Pe(() => {
@@ -115516,7 +115516,7 @@ const vLt = {
115516
115516
  remove: e.length - n - r,
115517
115517
  insert: t.slice(n, t.length - r)
115518
115518
  };
115519
- }, MLt = FLt, Pn = new sn("y-sync"), $s = new sn("y-undo"), pm = new sn("yjs-cursor"), Xa = (e, t) => e >>> t | e << 32 - t, CLt = (e) => Xa(e, 2) ^ Xa(e, 13) ^ Xa(e, 22), ELt = (e) => Xa(e, 6) ^ Xa(e, 11) ^ Xa(e, 25), ALt = (e) => Xa(e, 7) ^ Xa(e, 18) ^ e >>> 3, jLt = (e) => Xa(e, 17) ^ Xa(e, 19) ^ e >>> 10, DLt = new Uint32Array([
115519
+ }, MLt = FLt, Pn = new rn("y-sync"), $s = new rn("y-undo"), pm = new rn("yjs-cursor"), Xa = (e, t) => e >>> t | e << 32 - t, CLt = (e) => Xa(e, 2) ^ Xa(e, 13) ^ Xa(e, 22), ELt = (e) => Xa(e, 6) ^ Xa(e, 11) ^ Xa(e, 25), ALt = (e) => Xa(e, 7) ^ Xa(e, 18) ^ e >>> 3, jLt = (e) => Xa(e, 17) ^ Xa(e, 19) ^ e >>> 10, DLt = new Uint32Array([
115520
115520
  1116352408,
115521
115521
  1899447441,
115522
115522
  3049323471,
@@ -115663,7 +115663,7 @@ t.sv.get(e.id.client) > e.id.clock && !K0(t.ds, e.id), RLt = [{ light: "#ecd4443
115663
115663
  mapping: i
115664
115664
  } = {}) => {
115665
115665
  let a = !1;
115666
- const s = new _Lt(e, i), l = new tn({
115666
+ const s = new _Lt(e, i), l = new Qt({
115667
115667
  props: {
115668
115668
  editable: (u) => {
115669
115669
  const c = Pn.getState(u);
@@ -115837,7 +115837,7 @@ class _Lt {
115837
115837
  ).filter((r) => r !== null), n = this._tr.replace(
115838
115838
  0,
115839
115839
  this.prosemirrorView.state.doc.content.size,
115840
- new et(Oe.from(t), 0, 0)
115840
+ new Qe(Oe.from(t), 0, 0)
115841
115841
  );
115842
115842
  n.setMeta(Pn, { snapshot: null, prevSnapshot: null }), this.prosemirrorView.dispatch(n);
115843
115843
  });
@@ -115854,7 +115854,7 @@ class _Lt {
115854
115854
  ).filter((o) => o !== null), r = this._tr.replace(
115855
115855
  0,
115856
115856
  this.prosemirrorView.state.doc.content.size,
115857
- new et(Oe.from(n), 0, 0)
115857
+ new Qe(Oe.from(n), 0, 0)
115858
115858
  );
115859
115859
  if (t) {
115860
115860
  const o = Ja(fa(t.anchor, 0), r.doc.content.size), i = Ja(fa(t.head, 0), r.doc.content.size);
@@ -115919,7 +115919,7 @@ class _Lt {
115919
115919
  ) : null).filter((d) => d !== null), c = this._tr.replace(
115920
115920
  0,
115921
115921
  this.prosemirrorView.state.doc.content.size,
115922
- new et(Oe.from(u), 0, 0)
115922
+ new Qe(Oe.from(u), 0, 0)
115923
115923
  );
115924
115924
  this.prosemirrorView.dispatch(
115925
115925
  c.setMeta(Pn, { isChangeOrigin: !0 })
@@ -115965,7 +115965,7 @@ class _Lt {
115965
115965
  let a = this._tr.replace(
115966
115966
  0,
115967
115967
  this.prosemirrorView.state.doc.content.size,
115968
- new et(Oe.from(i), 0, 0)
115968
+ new Qe(Oe.from(i), 0, 0)
115969
115969
  );
115970
115970
  zLt(a, this.beforeTransactionSelection, this), a = a.setMeta(Pn, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof bee }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && a.scrollIntoView(), this.prosemirrorView.dispatch(a);
115971
115971
  });
@@ -116500,7 +116500,7 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
116500
116500
  cursorBuilder: n = QLt,
116501
116501
  selectionBuilder: r = tte,
116502
116502
  getSelection: o = (a) => a.selection
116503
- } = {}, i = "cursor") => new tn({
116503
+ } = {}, i = "cursor") => new Qt({
116504
116504
  key: pm,
116505
116505
  state: {
116506
116506
  init(a, s) {
@@ -116571,7 +116571,7 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
116571
116571
  }, nNt = (e) => {
116572
116572
  var t, n;
116573
116573
  return ((n = (t = $s.getState(e)) == null ? void 0 : t.undoManager) == null ? void 0 : n.redo()) != null;
116574
- }, rNt = /* @__PURE__ */ new Set(["paragraph"]), oNt = (e, t) => !(e instanceof Fn) || !(e.content instanceof ka) || !(e.content.type instanceof D1 || e.content.type instanceof Jr && t.has(e.content.type.nodeName)) || e.content.type._length === 0, iNt = ({ protectedNodes: e = rNt, trackedOrigins: t = [], undoManager: n = null } = {}) => new tn({
116574
+ }, rNt = /* @__PURE__ */ new Set(["paragraph"]), oNt = (e, t) => !(e instanceof Fn) || !(e.content instanceof ka) || !(e.content.type instanceof D1 || e.content.type instanceof Jr && t.has(e.content.type.nodeName)) || e.content.type._length === 0, iNt = ({ protectedNodes: e = rNt, trackedOrigins: t = [], undoManager: n = null } = {}) => new Qt({
116575
116575
  key: $s,
116576
116576
  state: {
116577
116577
  init: (r, o) => {
@@ -116614,7 +116614,7 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
116614
116614
  }
116615
116615
  };
116616
116616
  }
116617
- }), nte = Xt.create({
116617
+ }), nte = en.create({
116618
116618
  name: "collaboration",
116619
116619
  priority: 1e3,
116620
116620
  addOptions() {
@@ -116686,8 +116686,8 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
116686
116686
  i,
116687
116687
  n,
116688
116688
  // Only add the filterInvalidContent plugin if content checking is enabled
116689
- this.editor.options.enableContentCheck && new tn({
116690
- key: new sn("filterInvalidContent"),
116689
+ this.editor.options.enableContentCheck && new Qt({
116690
+ key: new rn("filterInvalidContent"),
116691
116691
  filterTransaction: () => {
116692
116692
  var a;
116693
116693
  return this.storage.isDisabled && ((a = t.doc) === null || a === void 0 || a.destroy()), !0;
@@ -116698,7 +116698,7 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
116698
116698
  }), KR = (e) => Array.from(e.entries()).map(([t, n]) => ({
116699
116699
  clientId: t,
116700
116700
  ...n.user
116701
- })), YR = () => null, aNt = Xt.create({
116701
+ })), YR = () => null, aNt = en.create({
116702
116702
  name: "collaborationCursor",
116703
116703
  priority: 999,
116704
116704
  addOptions() {
@@ -117055,8 +117055,8 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
117055
117055
  return [
117056
117056
  // this plugin creates a code block for pasted content from VS Code
117057
117057
  // we can also detect the copied code language
117058
- new tn({
117059
- key: new sn("codeBlockVSCodeHandler"),
117058
+ new Qt({
117059
+ key: new rn("codeBlockVSCodeHandler"),
117060
117060
  props: {
117061
117061
  handlePaste: (e, t) => {
117062
117062
  if (!t.clipboardData || this.editor.isActive(this.type.name))
@@ -117078,7 +117078,7 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
117078
117078
  content: "block+"
117079
117079
  });
117080
117080
  function vNt(e = {}) {
117081
- return new tn({
117081
+ return new Qt({
117082
117082
  view(t) {
117083
117083
  return new kNt(t, e);
117084
117084
  }
@@ -117158,7 +117158,7 @@ class kNt {
117158
117158
  this.editorView.dom.contains(t.relatedTarget) || this.setCursor(null);
117159
117159
  }
117160
117160
  }
117161
- const ate = Xt.create({
117161
+ const ate = en.create({
117162
117162
  name: "dropCursor",
117163
117163
  addOptions() {
117164
117164
  return {
@@ -117185,7 +117185,7 @@ class Jn extends jt {
117185
117185
  return Jn.valid(r) ? new Jn(r) : jt.near(r);
117186
117186
  }
117187
117187
  content() {
117188
- return et.empty;
117188
+ return Qe.empty;
117189
117189
  }
117190
117190
  eq(t) {
117191
117191
  return t instanceof Jn && t.head == this.head;
@@ -117308,7 +117308,7 @@ function FNt(e) {
117308
117308
  return !0;
117309
117309
  }
117310
117310
  function MNt() {
117311
- return new tn({
117311
+ return new Qt({
117312
117312
  props: {
117313
117313
  decorations: jNt,
117314
117314
  createSelectionBetween(e, t, n) {
@@ -117357,7 +117357,7 @@ function ANt(e, t) {
117357
117357
  let o = Oe.empty;
117358
117358
  for (let a = r.length - 1; a >= 0; a--)
117359
117359
  o = Oe.from(r[a].createAndFill(null, o));
117360
- let i = e.state.tr.replace(n.pos, n.pos, new et(o, 0, 0));
117360
+ let i = e.state.tr.replace(n.pos, n.pos, new Qe(o, 0, 0));
117361
117361
  return i.setSelection(ft.near(i.doc.resolve(n.pos + 1))), e.dispatch(i), !1;
117362
117362
  }
117363
117363
  function jNt(e) {
@@ -117366,7 +117366,7 @@ function jNt(e) {
117366
117366
  let t = document.createElement("div");
117367
117367
  return t.className = "ProseMirror-gapcursor", yn.create(e.doc, [rr.widget(e.selection.head, t, { key: "gapcursor" })]);
117368
117368
  }
117369
- const ste = Xt.create({
117369
+ const ste = en.create({
117370
117370
  name: "gapCursor",
117371
117371
  addProseMirrorPlugins() {
117372
117372
  return [
@@ -117782,12 +117782,12 @@ function b4(e) {
117782
117782
  }
117783
117783
  return yv;
117784
117784
  }
117785
- const zu = new sn("history"), zNt = new sn("closeHistory");
117785
+ const zu = new rn("history"), zNt = new rn("closeHistory");
117786
117786
  function _Nt(e = {}) {
117787
117787
  return e = {
117788
117788
  depth: e.depth || 100,
117789
117789
  newGroupDelay: e.newGroupDelay || 500
117790
- }, new tn({
117790
+ }, new Qt({
117791
117791
  key: zu,
117792
117792
  state: {
117793
117793
  init() {
@@ -117820,7 +117820,7 @@ function ute(e, t) {
117820
117820
  return !0;
117821
117821
  };
117822
117822
  }
117823
- const cte = ute(!1, !0), dte = ute(!0, !0), PNt = Xt.create({
117823
+ const cte = ute(!1, !0), dte = ute(!0, !0), PNt = en.create({
117824
117824
  name: "history",
117825
117825
  addOptions() {
117826
117826
  return {
@@ -118145,7 +118145,7 @@ const cte = ute(!1, !0), dte = ute(!0, !0), PNt = Xt.create({
118145
118145
  }), QNt = Bt.create({
118146
118146
  name: "text",
118147
118147
  group: "inline"
118148
- }), XNt = Xt.create({
118148
+ }), XNt = en.create({
118149
118149
  name: "starterKit",
118150
118150
  addExtensions() {
118151
118151
  var e, t, n, r, o, i, a, s, l, u, c, d, f, p, h, g, m, b;
@@ -118179,7 +118179,7 @@ const cte = ute(!1, !0), dte = ute(!0, !0), PNt = Xt.create({
118179
118179
  }
118180
118180
  };
118181
118181
  }
118182
- }), tIt = Xt.create({
118182
+ }), tIt = en.create({
118183
118183
  name: "fontFamily",
118184
118184
  addOptions() {
118185
118185
  return {
@@ -118211,7 +118211,7 @@ const cte = ute(!1, !0), dte = ute(!0, !0), PNt = Xt.create({
118211
118211
  unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
118212
118212
  };
118213
118213
  }
118214
- }), nIt = Xt.create({
118214
+ }), nIt = en.create({
118215
118215
  name: "textAlign",
118216
118216
  addOptions() {
118217
118217
  return {
@@ -118954,8 +118954,8 @@ function vIt(e) {
118954
118954
  return e.length === 1 ? e[0].isLink : e.length === 3 && e[1].isLink ? ["()", "[]"].includes(e[0].value + e[2].value) : !1;
118955
118955
  }
118956
118956
  function kIt(e) {
118957
- return new tn({
118958
- key: new sn("autolink"),
118957
+ return new Qt({
118958
+ key: new rn("autolink"),
118959
118959
  appendTransaction: (t, n, r) => {
118960
118960
  const o = t.some((u) => u.docChanged) && !n.doc.eq(r.doc), i = t.some((u) => u.getMeta("preventAutolink"));
118961
118961
  if (!o || i)
@@ -118990,8 +118990,8 @@ function kIt(e) {
118990
118990
  });
118991
118991
  }
118992
118992
  function wIt(e) {
118993
- return new tn({
118994
- key: new sn("handleClickLink"),
118993
+ return new Qt({
118994
+ key: new rn("handleClickLink"),
118995
118995
  props: {
118996
118996
  handleClick: (t, n, r) => {
118997
118997
  var o, i;
@@ -119010,8 +119010,8 @@ function wIt(e) {
119010
119010
  });
119011
119011
  }
119012
119012
  function FIt(e) {
119013
- return new tn({
119014
- key: new sn("handlePasteLink"),
119013
+ return new Qt({
119014
+ key: new rn("handlePasteLink"),
119015
119015
  props: {
119016
119016
  handlePaste: (t, n, r) => {
119017
119017
  const { state: o } = t, { selection: i } = o, { empty: a } = i;
@@ -119151,7 +119151,7 @@ const CIt = sr.create({
119151
119151
  type: this.type
119152
119152
  })), e;
119153
119153
  }
119154
- }), EIt = Xt.create({
119154
+ }), EIt = en.create({
119155
119155
  name: "placeholder",
119156
119156
  addOptions() {
119157
119157
  return {
@@ -119165,8 +119165,8 @@ const CIt = sr.create({
119165
119165
  },
119166
119166
  addProseMirrorPlugins() {
119167
119167
  return [
119168
- new tn({
119169
- key: new sn("placeholder"),
119168
+ new Qt({
119169
+ key: new rn("placeholder"),
119170
119170
  props: {
119171
119171
  decorations: ({ doc: e, selection: t }) => {
119172
119172
  const n = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: r } = t, o = [];
@@ -119437,13 +119437,13 @@ const CIt = sr.create({
119437
119437
  ["hr"]
119438
119438
  ];
119439
119439
  }
119440
- }), RIt = Xt.create({
119440
+ }), RIt = en.create({
119441
119441
  name: "columnExtension",
119442
119442
  addExtensions() {
119443
119443
  const e = [];
119444
119444
  return this.options.column !== !1 && e.push(QJ), this.options.columns !== !1 && e.push(Cy), e;
119445
119445
  }
119446
- }), OIt = Xt.create({
119446
+ }), OIt = en.create({
119447
119447
  name: "CustomKeymap",
119448
119448
  addCommands() {
119449
119449
  return {
@@ -119464,7 +119464,7 @@ const CIt = sr.create({
119464
119464
  }
119465
119465
  };
119466
119466
  }
119467
- }), BIt = Xt.create({
119467
+ }), BIt = en.create({
119468
119468
  name: "color",
119469
119469
  addOptions() {
119470
119470
  return {
@@ -119591,7 +119591,7 @@ const Fte = ({
119591
119591
  updateAttributes: t,
119592
119592
  deleteNode: n
119593
119593
  }) => {
119594
- const { isPreviewMode: r } = rg(), [o, i] = Re(), [a, s] = Re(0), [l, u] = Re(0), [c, d] = Re({}), f = Xe(null), [p, h] = Re(!1), [g, m] = Re(!1), [b, k] = Re(null), v = Xe(null), x = () => {
119594
+ const { isPreviewMode: r } = rg(), [o, i] = Re(), [a, s] = Re(0), [l, u] = Re(0), [c, d] = Re({}), f = et(null), [p, h] = Re(!1), [g, m] = Re(!1), [b, k] = Re(null), v = et(null), x = () => {
119595
119595
  const Q = {};
119596
119596
  cO.forEach(({ tooltip: K, isActive: ne }) => {
119597
119597
  Q[K] = !!(ne != null && ne(e.attrs));
@@ -120999,17 +120999,17 @@ const zs = /* @__PURE__ */ new WeakMap(), t1 = () => {
120999
120999
  }, lo = (
121000
121000
  /*#__NOINLINE__*/
121001
121001
  t1()
121002
- ), N7 = Object, on = (e) => e === lo, Oa = (e) => typeof e == "function", S1 = (e, t) => ({
121002
+ ), N7 = Object, an = (e) => e === lo, Oa = (e) => typeof e == "function", S1 = (e, t) => ({
121003
121003
  ...e,
121004
121004
  ...t
121005
121005
  }), Ite = (e) => Oa(e.then), Dv = {}, xm = {}, FA = "undefined", mg = typeof window != FA, I7 = typeof document != FA, YOt = mg && "Deno" in window, $Ot = () => mg && typeof window.requestAnimationFrame != FA, Rte = (e, t) => {
121006
121006
  const n = zs.get(e);
121007
121007
  return [
121008
121008
  // Getter
121009
- () => !on(t) && e.get(t) || Dv,
121009
+ () => !an(t) && e.get(t) || Dv,
121010
121010
  // Setter
121011
121011
  (r) => {
121012
- if (!on(t)) {
121012
+ if (!an(t)) {
121013
121013
  const o = e.get(t);
121014
121014
  t in xm || (xm[t] = o), n[5](t, S1(o, r), o || Dv);
121015
121015
  }
@@ -121017,7 +121017,7 @@ const zs = /* @__PURE__ */ new WeakMap(), t1 = () => {
121017
121017
  // Subscriber
121018
121018
  n[6],
121019
121019
  // Get server cache snapshot
121020
- () => !on(t) && t in xm ? xm[t] : !on(t) && e.get(t) || Dv
121020
+ () => !an(t) && t in xm ? xm[t] : !an(t) && e.get(t) || Dv
121021
121021
  ];
121022
121022
  };
121023
121023
  let R7 = !0;
@@ -121029,7 +121029,7 @@ const JOt = () => R7, [O7, B7] = mg && window.addEventListener ? [
121029
121029
  t1
121030
121030
  ], QOt = () => {
121031
121031
  const e = I7 && document.visibilityState;
121032
- return on(e) || e !== "hidden";
121032
+ return an(e) || e !== "hidden";
121033
121033
  }, XOt = (e) => (I7 && document.addEventListener("visibilitychange", e), O7("focus", e), () => {
121034
121034
  I7 && document.removeEventListener("visibilitychange", e), B7("focus", e);
121035
121035
  }), eBt = (e) => {
@@ -121065,8 +121065,8 @@ const z7 = (e) => {
121065
121065
  if (o) {
121066
121066
  i = "#";
121067
121067
  const s = N7.keys(e).sort();
121068
- for (; !on(a = s.pop()); )
121069
- on(e[a]) || (i += a + ":" + z7(e[a]) + ",");
121068
+ for (; !an(a = s.pop()); )
121069
+ an(e[a]) || (i += a + ":" + z7(e[a]) + ",");
121070
121070
  vm.set(e, i);
121071
121071
  }
121072
121072
  } else
@@ -121121,7 +121121,7 @@ async function Ote(...e) {
121121
121121
  A,
121122
121122
  0
121123
121123
  ];
121124
- const C = !on(l), D = h(), T = D.data, I = D._c, B = on(I) ? T : I;
121124
+ const C = !an(l), D = h(), T = D.data, I = D._c, B = an(I) ? T : I;
121125
121125
  if (C && (l = Oa(l) ? l(B, T) : l, g({
121126
121126
  data: l,
121127
121127
  _c: B
@@ -121211,7 +121211,7 @@ const wO = (e, t) => {
121211
121211
  ];
121212
121212
  }, sBt = (e, t, n, r, o) => {
121213
121213
  const i = n.errorRetryCount, a = o.retryCount, s = ~~((Math.random() + 0.5) * (1 << (a < 8 ? a : 8))) * n.errorRetryInterval;
121214
- !on(i) && a > i || setTimeout(r, s, o);
121214
+ !an(i) && a > i || setTimeout(r, s, o);
121215
121215
  }, lBt = L7, [Bte, uBt] = aBt(/* @__PURE__ */ new Map()), cBt = S1(
121216
121216
  {
121217
121217
  // events
@@ -121261,7 +121261,7 @@ const wO = (e, t) => {
121261
121261
  if (a.startsWith(pBt))
121262
121262
  return n(...i);
121263
121263
  const l = s[a];
121264
- return on(l) ? n(...i) : (delete s[a], l);
121264
+ return an(l) ? n(...i) : (delete s[a], l);
121265
121265
  }), r), xBt = hBt.concat(bBt), vBt = (e) => function(...n) {
121266
121266
  const r = yBt(), [o, i, a] = mBt(n), s = dBt(r, a);
121267
121267
  let l = e;
@@ -121299,18 +121299,18 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
121299
121299
  }), Iv = {
121300
121300
  dedupe: !0
121301
121301
  }, wBt = (e, t, n) => {
121302
- const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: c, refreshWhenOffline: d, keepPreviousData: f } = n, [p, h, g, m] = zs.get(r), [b, k] = MA(e), v = Xe(!1), x = Xe(!1), w = Xe(b), F = Xe(t), A = Xe(n), C = () => A.current, D = () => C().isVisible() && C().isOnline(), [T, I, B, W] = Rte(r, b), q = Xe({}).current, U = on(a) ? on(n.fallback) ? lo : n.fallback[b] : a, P = (Ae, te) => {
121302
+ const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: c, refreshWhenOffline: d, keepPreviousData: f } = n, [p, h, g, m] = zs.get(r), [b, k] = MA(e), v = et(!1), x = et(!1), w = et(b), F = et(t), A = et(n), C = () => A.current, D = () => C().isVisible() && C().isOnline(), [T, I, B, W] = Rte(r, b), q = et({}).current, U = an(a) ? an(n.fallback) ? lo : n.fallback[b] : a, P = (Ae, te) => {
121303
121303
  for (const J in q) {
121304
121304
  const $ = J;
121305
121305
  if ($ === "data") {
121306
- if (!o(Ae[$], te[$]) && (!on(Ae[$]) || !o(pe, te[$])))
121306
+ if (!o(Ae[$], te[$]) && (!an(Ae[$]) || !o(pe, te[$])))
121307
121307
  return !1;
121308
121308
  } else if (te[$] !== Ae[$])
121309
121309
  return !1;
121310
121310
  }
121311
121311
  return !0;
121312
121312
  }, _ = It(() => {
121313
- const Ae = !b || !t ? !1 : on(s) ? C().isPaused() || i ? !1 : l !== !1 : s, te = (E) => {
121313
+ const Ae = !b || !t ? !1 : an(s) ? C().isPaused() || i ? !1 : l !== !1 : s, te = (E) => {
121314
121314
  const N = S1(E);
121315
121315
  return delete N._k, Ae ? {
121316
121316
  isValidating: !0,
@@ -121338,7 +121338,7 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
121338
121338
  r,
121339
121339
  b
121340
121340
  ]
121341
- ), _[0], _[1]), Z = !v.current, Q = p[b] && p[b].length > 0, K = G.data, ne = on(K) ? U && Ite(U) ? Nv(U) : U : K, le = G.error, ce = Xe(ne), pe = f ? on(K) ? on(ce.current) ? ne : ce.current : K : ne, X = Q && !on(le) ? !1 : Z && !on(s) ? s : C().isPaused() ? !1 : i ? on(ne) ? !1 : l : on(ne) || l, de = !!(b && t && Z && X), Fe = on(G.isValidating) ? de : G.isValidating, Ie = on(G.isLoading) ? de : G.isLoading, Le = Ze(
121341
+ ), _[0], _[1]), Z = !v.current, Q = p[b] && p[b].length > 0, K = G.data, ne = an(K) ? U && Ite(U) ? Nv(U) : U : K, le = G.error, ce = et(ne), pe = f ? an(K) ? an(ce.current) ? ne : ce.current : K : ne, X = Q && !an(le) ? !1 : Z && !an(s) ? s : C().isPaused() ? !1 : i ? an(ne) ? !1 : l : an(ne) || l, de = !!(b && t && Z && X), Fe = an(G.isValidating) ? de : G.isValidating, Ie = an(G.isLoading) ? de : G.isLoading, Le = Ze(
121342
121342
  async (Ae) => {
121343
121343
  const te = F.current;
121344
121344
  if (!b || !te || x.current || C().isPaused())
@@ -121355,9 +121355,9 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
121355
121355
  }, fe = {
121356
121356
  isValidating: !0
121357
121357
  };
121358
- on(T().data) && (fe.isLoading = !0);
121358
+ an(T().data) && (fe.isLoading = !0);
121359
121359
  try {
121360
- if (V && (I(fe), n.loadingTimeout && on(T().data) && setTimeout(() => {
121360
+ if (V && (I(fe), n.loadingTimeout && an(T().data) && setTimeout(() => {
121361
121361
  ie && E() && C().onLoadingSlow(b, n);
121362
121362
  }, n.loadingTimeout), g[b] = [
121363
121363
  te(k),
@@ -121366,7 +121366,7 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
121366
121366
  return V && E() && C().onDiscarded(b), !1;
121367
121367
  N.error = lo;
121368
121368
  const he = h[b];
121369
- if (!on(he) && // case 1
121369
+ if (!an(he) && // case 1
121370
121370
  ($ <= he[0] || // case 2
121371
121371
  $ <= he[1] || // case 3
121372
121372
  he[1] === 0))
@@ -121408,7 +121408,7 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
121408
121408
  []
121409
121409
  );
121410
121410
  if (Sv(() => {
121411
- F.current = t, A.current = n, on(K) || (ce.current = K);
121411
+ F.current = t, A.current = n, an(K) || (ce.current = K);
121412
121412
  }), Sv(() => {
121413
121413
  if (!b) return;
121414
121414
  const Ae = Le.bind(lo, Iv);
@@ -121429,7 +121429,7 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
121429
121429
  });
121430
121430
  return x.current = !1, w.current = b, v.current = !0, I({
121431
121431
  _k: k
121432
- }), X && (on(ne) || r2 ? Ae() : rBt(Ae)), () => {
121432
+ }), X && (an(ne) || r2 ? Ae() : rBt(Ae)), () => {
121433
121433
  x.current = !0, $();
121434
121434
  };
121435
121435
  }, [
@@ -121451,18 +121451,18 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
121451
121451
  c,
121452
121452
  d,
121453
121453
  b
121454
- ]), iw(pe), i && on(ne) && b) {
121454
+ ]), iw(pe), i && an(ne) && b) {
121455
121455
  if (!vO && r2)
121456
121456
  throw new Error("Fallback data is required when using Suspense in SSR.");
121457
121457
  F.current = t, A.current = n, x.current = !1;
121458
121458
  const Ae = m[b];
121459
- if (!on(Ae)) {
121459
+ if (!an(Ae)) {
121460
121460
  const te = Me(Ae);
121461
121461
  Nv(te);
121462
121462
  }
121463
- if (on(le)) {
121463
+ if (an(le)) {
121464
121464
  const te = Le(Iv);
121465
- on(pe) || (te.status = "fulfilled", te.value = !0), Nv(te);
121465
+ an(pe) || (te.status = "fulfilled", te.value = !0), Nv(te);
121466
121466
  } else
121467
121467
  throw le;
121468
121468
  }
@@ -121614,7 +121614,7 @@ const TBt = ({
121614
121614
  collapsedHeadings: r,
121615
121615
  setCollapsedHeadings: o
121616
121616
  }) => {
121617
- const i = Xe(!1), a = Xe(null), s = Xe(""), l = Ze(() => {
121617
+ const i = et(!1), a = et(null), s = et(""), l = Ze(() => {
121618
121618
  const { doc: m } = n.state, b = m.content.content.filter(
121619
121619
  (F) => {
121620
121620
  var A, C, D;
@@ -125950,7 +125950,7 @@ function eo(e) {
125950
125950
  }
125951
125951
  return t;
125952
125952
  }
125953
- const Yl = new sn("selectingCells");
125953
+ const Yl = new rn("selectingCells");
125954
125954
  function J0(e) {
125955
125955
  for (let t = e.depth - 1; t > 0; t--) if (e.node(t).type.spec.tableRole == "row") return e.node(0).resolve(e.before(t + 1));
125956
125956
  return null;
@@ -126065,22 +126065,22 @@ class nn extends jt {
126065
126065
  a.push(t.child(l).copy(Oe.from(u)));
126066
126066
  }
126067
126067
  const s = this.isColSelection() && this.isRowSelection() ? t : a;
126068
- return new et(Oe.from(s), 1, 1);
126068
+ return new Qe(Oe.from(s), 1, 1);
126069
126069
  }
126070
- replace(t, n = et.empty) {
126070
+ replace(t, n = Qe.empty) {
126071
126071
  let r = t.steps.length, o = this.ranges;
126072
126072
  for (let a = 0; a < o.length; a++) {
126073
126073
  let {
126074
126074
  $from: s,
126075
126075
  $to: l
126076
126076
  } = o[a], u = t.mapping.slice(r);
126077
- t.replace(u.map(s.pos), u.map(l.pos), a ? et.empty : n);
126077
+ t.replace(u.map(s.pos), u.map(l.pos), a ? Qe.empty : n);
126078
126078
  }
126079
126079
  let i = jt.findFrom(t.doc.resolve(t.mapping.slice(r).map(this.to)), -1);
126080
126080
  i && t.setSelection(i);
126081
126081
  }
126082
126082
  replaceWith(t, n) {
126083
- this.replace(t, new et(Oe.from(n), 0, 0));
126083
+ this.replace(t, new Qe(Oe.from(n), 0, 0));
126084
126084
  }
126085
126085
  forEachCell(t) {
126086
126086
  let n = this.$anchorCell.node(-1), r = Qn.get(n), o = this.$anchorCell.start(-1), i = r.cellsInRect(r.rectBetween(this.$anchorCell.pos - o, this.$headCell.pos - o));
@@ -126221,10 +126221,10 @@ function kzt(e) {
126221
126221
  if (i == "row")
126222
126222
  for (let l = 0; l < t.childCount; l++) {
126223
126223
  let u = t.child(l).content, c = l ? 0 : Math.max(0, n - 1), d = l < t.childCount - 1 ? 0 : Math.max(0, r - 1);
126224
- (c || d) && (u = V7(eo(a).row, new et(u, c, d)).content), s.push(u);
126224
+ (c || d) && (u = V7(eo(a).row, new Qe(u, c, d)).content), s.push(u);
126225
126225
  }
126226
126226
  else if (i == "cell" || i == "header_cell")
126227
- s.push(n || r ? V7(eo(a).row, new et(t, n, r)).content : t);
126227
+ s.push(n || r ? V7(eo(a).row, new Qe(t, n, r)).content : t);
126228
126228
  else
126229
126229
  return null;
126230
126230
  return wzt(a, s);
@@ -126358,7 +126358,7 @@ function BO(e, t, n, r, o) {
126358
126358
  Mzt(d, a, i, n, u, c, f) && p(), RO(d, a, i, n, l, u, s, f) && p(), RO(d, a, i, n, l, u, c, f) && p(), OO(d, a, i, n, s, c, l, f) && p(), OO(d, a, i, n, s, c, u, f) && p();
126359
126359
  for (let h = s; h < c; h++) {
126360
126360
  let g = a.positionAt(h, l, i), m = a.positionAt(h, u, i);
126361
- d.replace(d.mapping.slice(f).map(g + n), d.mapping.slice(f).map(m + n), new et(o.rows[h - s], 0, 0));
126361
+ d.replace(d.mapping.slice(f).map(g + n), d.mapping.slice(f).map(m + n), new Qe(o.rows[h - s], 0, 0));
126362
126362
  }
126363
126363
  p(), d.setSelection(new nn(d.doc.resolve(n + a.positionAt(s, l, i)), d.doc.resolve(n + a.positionAt(c - 1, u - 1, i)))), t(d);
126364
126364
  }
@@ -126413,7 +126413,7 @@ function Fm(e, t) {
126413
126413
  if (t) {
126414
126414
  let r = e.tr, o = eo(e.schema).cell.createAndFill().content;
126415
126415
  n.forEachCell((i, a) => {
126416
- i.content.eq(o) || r.replace(r.mapping.map(a + 1), r.mapping.map(a + i.nodeSize - 1), new et(o, 0, 0));
126416
+ i.content.eq(o) || r.replace(r.mapping.map(a + 1), r.mapping.map(a + i.nodeSize - 1), new Qe(o, 0, 0));
126417
126417
  }), r.docChanged && t(r);
126418
126418
  }
126419
126419
  return !0;
@@ -126497,7 +126497,7 @@ function Bv(e, t) {
126497
126497
  });
126498
126498
  return n && n ? J0(e.state.doc.resolve(n.pos)) : null;
126499
126499
  }
126500
- const Dzt = new sn("fix-tables");
126500
+ const Dzt = new rn("fix-tables");
126501
126501
  function Qte(e, t, n, r) {
126502
126502
  let o = e.childCount, i = t.childCount;
126503
126503
  e: for (let a = 0, s = 0; a < i; a++) {
@@ -126918,14 +126918,14 @@ function U7(e, t, n, r, o, i) {
126918
126918
  }
126919
126919
  s ? (n.style.width = a + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = a + "px");
126920
126920
  }
126921
- const ji = new sn("tableColumnResizing");
126921
+ const ji = new rn("tableColumnResizing");
126922
126922
  function Kzt({
126923
126923
  handleWidth: e = 5,
126924
126924
  cellMinWidth: t = 25,
126925
126925
  View: n = Zzt,
126926
126926
  lastColumnResizable: r = !0
126927
126927
  } = {}) {
126928
- return new tn({
126928
+ return new Qt({
126929
126929
  key: ji,
126930
126930
  state: {
126931
126931
  init(i, a) {
@@ -127099,7 +127099,7 @@ function r_t(e, t) {
127099
127099
  function o_t({
127100
127100
  allowTableNodeSelection: e = !1
127101
127101
  } = {}) {
127102
- return new tn({
127102
+ return new Qt({
127103
127103
  key: Yl,
127104
127104
  // This piece of state is used to remember when a mouse-drag
127105
127105
  // cell-selection is happening, so that it can continue even as
@@ -127404,7 +127404,7 @@ function d_t(e, t) {
127404
127404
  }
127405
127405
  var zv = ine ? gl : Pe;
127406
127406
  function f_t(e) {
127407
- var t = Xe();
127407
+ var t = et();
127408
127408
  return t.current || (t.current = typeof e == "function" ? e() : e), t.current;
127409
127409
  }
127410
127410
  function YO(e, t, n) {
@@ -127668,7 +127668,7 @@ const y_t = [
127668
127668
  selected: n,
127669
127669
  editor: r
127670
127670
  }) => {
127671
- const [o, i] = Re(!1), { isPreviewMode: a } = rg(), s = Xe(null), l = () => {
127671
+ const [o, i] = Re(!1), { isPreviewMode: a } = rg(), s = et(null), l = () => {
127672
127672
  const { from: c, to: d } = r.state.selection, f = t(), p = f + e.nodeSize;
127673
127673
  i(f <= c && d <= p);
127674
127674
  };
@@ -127945,7 +127945,7 @@ const y_t = [
127945
127945
  function JO({ types: e, node: t }) {
127946
127946
  return t != null && t.type ? Array.isArray(e) && e.includes(t.type) || t.type === e : !1;
127947
127947
  }
127948
- const M_t = Xt.create({
127948
+ const M_t = en.create({
127949
127949
  name: "trailingNode",
127950
127950
  addOptions() {
127951
127951
  return {
@@ -127954,9 +127954,9 @@ const M_t = Xt.create({
127954
127954
  };
127955
127955
  },
127956
127956
  addProseMirrorPlugins() {
127957
- const e = new sn(this.name), t = Object.entries(this.editor.schema.nodes).map(([, n]) => n).filter((n) => this.options.notAfter.includes(n.name));
127957
+ const e = new rn(this.name), t = Object.entries(this.editor.schema.nodes).map(([, n]) => n).filter((n) => this.options.notAfter.includes(n.name));
127958
127958
  return [
127959
- new tn({
127959
+ new Qt({
127960
127960
  key: e,
127961
127961
  appendTransaction: (n, r, o) => {
127962
127962
  const { doc: i, tr: a, schema: s } = o;
@@ -128141,7 +128141,7 @@ const M_t = Xt.create({
128141
128141
  }, [o]), Pe(() => {
128142
128142
  t == null || t.chain().focus();
128143
128143
  }, []);
128144
- const g = Xe(null);
128144
+ const g = et(null);
128145
128145
  return Pe(() => {
128146
128146
  const m = setTimeout(() => {
128147
128147
  var b;
@@ -128921,7 +128921,7 @@ function G_t(e) {
128921
128921
  }
128922
128922
  const Z_t = /* @__PURE__ */ pc(R_t);
128923
128923
  var K_t = Object.defineProperty, Y_t = (e, t, n) => t in e ? K_t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x3 = (e, t, n) => (Y_t(e, typeof t != "symbol" ? t + "" : t, n), n);
128924
- const $_t = Xt.create({
128924
+ const $_t = en.create({
128925
128925
  name: "markdownTightLists",
128926
128926
  addOptions: () => ({
128927
128927
  tight: !0,
@@ -129655,7 +129655,7 @@ class GPt {
129655
129655
  return t.renderer.rules.hardbreak = n(t.renderer.rules.hardbreak), t.renderer.rules.softbreak = n(t.renderer.rules.softbreak), t.renderer.rules.fence = n(t.renderer.rules.fence), t.renderer.rules.code_block = n(t.renderer.rules.code_block), t.renderer.renderToken = n(t.renderer.renderToken.bind(t.renderer)), t;
129656
129656
  }
129657
129657
  }
129658
- const ZPt = Xt.create({
129658
+ const ZPt = en.create({
129659
129659
  name: "markdownClipboard",
129660
129660
  addOptions() {
129661
129661
  return {
@@ -129664,8 +129664,8 @@ const ZPt = Xt.create({
129664
129664
  };
129665
129665
  },
129666
129666
  addProseMirrorPlugins() {
129667
- return [new tn({
129668
- key: new sn("markdownClipboard"),
129667
+ return [new Qt({
129668
+ key: new rn("markdownClipboard"),
129669
129669
  props: {
129670
129670
  clipboardTextParser: (e, t, n) => {
129671
129671
  if (n || !this.options.transformPastedText)
@@ -129685,7 +129685,7 @@ const ZPt = Xt.create({
129685
129685
  }
129686
129686
  })];
129687
129687
  }
129688
- }), KPt = Xt.create({
129688
+ }), KPt = en.create({
129689
129689
  name: "markdown",
129690
129690
  priority: 50,
129691
129691
  addOptions() {
@@ -129802,7 +129802,7 @@ const ZPt = Xt.create({
129802
129802
  }), mHt = (e) => Ft({
129803
129803
  find: /(?:^|\s)(3\/4)\s$/,
129804
129804
  replace: e ?? "¾"
129805
- }), yHt = Xt.create({
129805
+ }), yHt = en.create({
129806
129806
  name: "typography",
129807
129807
  addOptions() {
129808
129808
  return {
@@ -129834,7 +129834,7 @@ const ZPt = Xt.create({
129834
129834
  const e = [];
129835
129835
  return this.options.emDash !== !1 && e.push(YPt(this.options.emDash)), this.options.ellipsis !== !1 && e.push($Pt(this.options.ellipsis)), this.options.openDoubleQuote !== !1 && e.push(JPt(this.options.openDoubleQuote)), this.options.closeDoubleQuote !== !1 && e.push(QPt(this.options.closeDoubleQuote)), this.options.openSingleQuote !== !1 && e.push(XPt(this.options.openSingleQuote)), this.options.closeSingleQuote !== !1 && e.push(eHt(this.options.closeSingleQuote)), this.options.leftArrow !== !1 && e.push(tHt(this.options.leftArrow)), this.options.rightArrow !== !1 && e.push(nHt(this.options.rightArrow)), this.options.copyright !== !1 && e.push(rHt(this.options.copyright)), this.options.trademark !== !1 && e.push(oHt(this.options.trademark)), this.options.servicemark !== !1 && e.push(iHt(this.options.servicemark)), this.options.registeredTrademark !== !1 && e.push(aHt(this.options.registeredTrademark)), this.options.oneHalf !== !1 && e.push(sHt(this.options.oneHalf)), this.options.plusMinus !== !1 && e.push(lHt(this.options.plusMinus)), this.options.notEqual !== !1 && e.push(uHt(this.options.notEqual)), this.options.laquo !== !1 && e.push(cHt(this.options.laquo)), this.options.raquo !== !1 && e.push(dHt(this.options.raquo)), this.options.multiplication !== !1 && e.push(fHt(this.options.multiplication)), this.options.superscriptTwo !== !1 && e.push(pHt(this.options.superscriptTwo)), this.options.superscriptThree !== !1 && e.push(hHt(this.options.superscriptThree)), this.options.oneQuarter !== !1 && e.push(gHt(this.options.oneQuarter)), this.options.threeQuarters !== !1 && e.push(mHt(this.options.threeQuarters)), e;
129836
129836
  }
129837
- }), bHt = Xt.create({
129837
+ }), bHt = en.create({
129838
129838
  name: "characterCount",
129839
129839
  addOptions() {
129840
129840
  return {
@@ -129865,8 +129865,8 @@ const ZPt = Xt.create({
129865
129865
  },
129866
129866
  addProseMirrorPlugins() {
129867
129867
  return [
129868
- new tn({
129869
- key: new sn("characterCount"),
129868
+ new Qt({
129869
+ key: new rn("characterCount"),
129870
129870
  filterTransaction: (e, t) => {
129871
129871
  const n = this.options.limit;
129872
129872
  if (!e.docChanged || n === 0 || n === null || n === void 0)
@@ -133242,7 +133242,7 @@ var K7 = {
133242
133242
  o !== n && (r *= o.sizeMultiplier / n.sizeMultiplier);
133243
133243
  }
133244
133244
  return Math.min(t.number * r, n.maxSize);
133245
- }, Qe = function(t) {
133245
+ }, Xe = function(t) {
133246
133246
  return +t.toFixed(4) + "em";
133247
133247
  }, T1 = function(t) {
133248
133248
  return t.filter((n) => n).join(" ");
@@ -133362,7 +133362,7 @@ class _i {
133362
133362
  */
133363
133363
  toNode() {
133364
133364
  var t = document.createTextNode(this.text), n = null;
133365
- this.italic > 0 && (n = document.createElement("span"), n.style.marginRight = Qe(this.italic)), this.classes.length > 0 && (n = n || document.createElement("span"), n.className = T1(this.classes));
133365
+ this.italic > 0 && (n = document.createElement("span"), n.style.marginRight = Xe(this.italic)), this.classes.length > 0 && (n = n || document.createElement("span"), n.className = T1(this.classes));
133366
133366
  for (var r in this.style)
133367
133367
  this.style.hasOwnProperty(r) && (n = n || document.createElement("span"), n.style[r] = this.style[r]);
133368
133368
  return n ? (n.appendChild(t), n) : t;
@@ -134292,7 +134292,7 @@ var jm = [
134292
134292
  return LA(i), i;
134293
134293
  }, Cne = (e, t, n, r) => new bg(e, t, n, r), uqt = function(t, n, r) {
134294
134294
  var o = Eo([t], [], n);
134295
- return o.height = Math.max(r || n.fontMetrics().defaultRuleThickness, n.minRuleThickness), o.style.borderBottomWidth = Qe(o.height), o.maxFontSize = 1, o;
134295
+ return o.height = Math.max(r || n.fontMetrics().defaultRuleThickness, n.minRuleThickness), o.style.borderBottomWidth = Xe(o.height), o.maxFontSize = 1, o;
134296
134296
  }, cqt = function(t, n, r, o) {
134297
134297
  var i = new TA(t, n, r, o);
134298
134298
  return LA(i), i;
@@ -134352,23 +134352,23 @@ var jm = [
134352
134352
  }
134353
134353
  i += 2;
134354
134354
  var u = Eo(["pstrut"], []);
134355
- u.style.height = Qe(i);
134355
+ u.style.height = Xe(i);
134356
134356
  for (var c = [], d = o, f = o, p = o, h = 0; h < r.length; h++) {
134357
134357
  var g = r[h];
134358
134358
  if (g.type === "kern")
134359
134359
  p += g.size;
134360
134360
  else {
134361
134361
  var m = g.elem, b = g.wrapperClasses || [], k = g.wrapperStyle || {}, v = Eo(b, [u, m], void 0, k);
134362
- v.style.top = Qe(-i - p - m.depth), g.marginLeft && (v.style.marginLeft = g.marginLeft), g.marginRight && (v.style.marginRight = g.marginRight), c.push(v), p += m.height + m.depth;
134362
+ v.style.top = Xe(-i - p - m.depth), g.marginLeft && (v.style.marginLeft = g.marginLeft), g.marginRight && (v.style.marginRight = g.marginRight), c.push(v), p += m.height + m.depth;
134363
134363
  }
134364
134364
  d = Math.min(d, p), f = Math.max(f, p);
134365
134365
  }
134366
134366
  var x = Eo(["vlist"], c);
134367
- x.style.height = Qe(f);
134367
+ x.style.height = Xe(f);
134368
134368
  var w;
134369
134369
  if (d < 0) {
134370
134370
  var F = Eo([], []), A = Eo(["vlist"], [F]);
134371
- A.style.height = Qe(-d);
134371
+ A.style.height = Xe(-d);
134372
134372
  var C = Eo(["vlist-s"], [new _i("​")]);
134373
134373
  w = [Eo(["vlist-r"], [x, C]), Eo(["vlist-r"], [A])];
134374
134374
  } else
@@ -134377,7 +134377,7 @@ var jm = [
134377
134377
  return w.length === 2 && D.classes.push("vlist-t2"), D.height = f, D.depth = -d, D;
134378
134378
  }, hqt = (e, t) => {
134379
134379
  var n = Eo(["mspace"], [], t), r = Hn(e, t);
134380
- return n.style.marginRight = Qe(r), n;
134380
+ return n.style.marginRight = Xe(r), n;
134381
134381
  }, Dm = function(t, n, r) {
134382
134382
  var o = "";
134383
134383
  switch (t) {
@@ -134463,14 +134463,14 @@ var jm = [
134463
134463
  oiiintSize2: ["oiiintSize2", 1.98, 0.659]
134464
134464
  }, gqt = function(t, n) {
134465
134465
  var [r, o, i] = jne[t], a = new L1(r), s = new fl([a], {
134466
- width: Qe(o),
134467
- height: Qe(i),
134466
+ width: Xe(o),
134467
+ height: Xe(i),
134468
134468
  // Override CSS rule `.katex svg { width: 100% }`
134469
- style: "width:" + Qe(o),
134469
+ style: "width:" + Xe(o),
134470
134470
  viewBox: "0 0 " + 1e3 * o + " " + 1e3 * i,
134471
134471
  preserveAspectRatio: "xMinYMin"
134472
134472
  }), l = Cne(["overlay"], [s], n);
134473
- return l.height = i, l.style.height = Qe(i), l.style.width = Qe(o), l;
134473
+ return l.height = i, l.style.height = Xe(i), l.style.width = Xe(o), l;
134474
134474
  }, Ee = {
134475
134475
  fontMap: Ane,
134476
134476
  makeSymbol: Yi,
@@ -134628,7 +134628,7 @@ var C3 = function(t) {
134628
134628
  }, yr = function(t, n, r, o) {
134629
134629
  o === void 0 && (o = [null, null]);
134630
134630
  for (var i = [], a = 0; a < t.length; a++) {
134631
- var s = an(t[a], n);
134631
+ var s = sn(t[a], n);
134632
134632
  if (s instanceof yg) {
134633
134633
  var l = s.children;
134634
134634
  i.push(...l);
@@ -134692,7 +134692,7 @@ var C3 = function(t) {
134692
134692
  }, a2 = function(t, n) {
134693
134693
  var r = ["nulldelimiter"].concat(t.baseSizingClasses());
134694
134694
  return pl(n.concat(r));
134695
- }, an = function(t, n, r) {
134695
+ }, sn = function(t, n, r) {
134696
134696
  if (!t)
134697
134697
  return pl();
134698
134698
  if (F3[t.type]) {
@@ -134708,7 +134708,7 @@ var C3 = function(t) {
134708
134708
  };
134709
134709
  function Sm(e, t) {
134710
134710
  var n = pl(["base"], e, t), r = pl(["strut"]);
134711
- return r.style.height = Qe(n.height + n.depth), n.depth && (r.style.verticalAlign = Qe(-n.depth)), n.children.unshift(r), n;
134711
+ return r.style.height = Xe(n.height + n.depth), n.depth && (r.style.verticalAlign = Xe(-n.depth)), n.children.unshift(r), n;
134712
134712
  }
134713
134713
  function Q7(e, t) {
134714
134714
  var n = null;
@@ -134727,7 +134727,7 @@ function Q7(e, t) {
134727
134727
  var c = pl(["katex-html"], i);
134728
134728
  if (c.setAttribute("aria-hidden", "true"), u) {
134729
134729
  var d = u.children[0];
134730
- d.style.height = Qe(c.height + c.depth), c.depth && (d.style.verticalAlign = Qe(-c.depth));
134730
+ d.style.height = Xe(c.height + c.depth), c.depth && (d.style.verticalAlign = Xe(-c.depth));
134731
134731
  }
134732
134732
  return c;
134733
134733
  }
@@ -134826,13 +134826,13 @@ class Fqt {
134826
134826
  if (this.character)
134827
134827
  return document.createTextNode(this.character);
134828
134828
  var t = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mspace");
134829
- return t.setAttribute("width", Qe(this.width)), t;
134829
+ return t.setAttribute("width", Xe(this.width)), t;
134830
134830
  }
134831
134831
  /**
134832
134832
  * Converts the math node into an HTML markup string.
134833
134833
  */
134834
134834
  toMarkup() {
134835
- return this.character ? "<mtext>" + this.character + "</mtext>" : '<mspace width="' + Qe(this.width) + '"/>';
134835
+ return this.character ? "<mtext>" + this.character + "</mtext>" : '<mspace width="' + Xe(this.width) + '"/>';
134836
134836
  }
134837
134837
  /**
134838
134838
  * Converts the math node into a string, similar to innerText.
@@ -135093,7 +135093,7 @@ var Lne = function(t) {
135093
135093
  }
135094
135094
  var g = new L1(f), m = new fl([g], {
135095
135095
  width: "100%",
135096
- height: Qe(p),
135096
+ height: Xe(p),
135097
135097
  viewBox: "0 0 " + s + " " + d,
135098
135098
  preserveAspectRatio: "none"
135099
135099
  });
@@ -135117,7 +135117,7 @@ var Lne = function(t) {
135117
135117
  for (var I = 0; I < A; I++) {
135118
135118
  var B = new L1(v[I]), W = new fl([B], {
135119
135119
  width: "400em",
135120
- height: Qe(F),
135120
+ height: Xe(F),
135121
135121
  viewBox: "0 0 " + s + " " + w,
135122
135122
  preserveAspectRatio: D[I] + " slice"
135123
135123
  }), q = Ee.makeSvgSpan([C[I]], [W], n);
@@ -135127,7 +135127,7 @@ var Lne = function(t) {
135127
135127
  minWidth: x,
135128
135128
  height: F
135129
135129
  };
135130
- q.style.height = Qe(F), b.push(q);
135130
+ q.style.height = Xe(F), b.push(q);
135131
135131
  }
135132
135132
  return {
135133
135133
  span: Ee.makeSpan(["stretchy"], b, n),
@@ -135141,7 +135141,7 @@ var Lne = function(t) {
135141
135141
  minWidth: i,
135142
135142
  height: a
135143
135143
  } = r();
135144
- return o.height = a, o.style.height = Qe(a), i > 0 && (o.style.minWidth = Qe(i)), o;
135144
+ return o.height = a, o.style.height = Xe(a), i > 0 && (o.style.minWidth = Xe(i)), o;
135145
135145
  }, Tqt = function(t, n, r, o, i) {
135146
135146
  var a, s = t.height + t.depth + r + o;
135147
135147
  if (/fbox|color|angl/.test(n)) {
@@ -135166,11 +135166,11 @@ var Lne = function(t) {
135166
135166
  }));
135167
135167
  var c = new fl(u, {
135168
135168
  width: "100%",
135169
- height: Qe(s)
135169
+ height: Xe(s)
135170
135170
  });
135171
135171
  a = Ee.makeSvgSpan([], [c], i);
135172
135172
  }
135173
- return a.height = s, a.style.height = Qe(s), a;
135173
+ return a.height = s, a.style.height = Xe(s), a;
135174
135174
  }, hl = {
135175
135175
  encloseSpan: Tqt,
135176
135176
  mathMLnode: Aqt,
@@ -135192,10 +135192,10 @@ function _6(e) {
135192
135192
  }
135193
135193
  var OA = (e, t) => {
135194
135194
  var n, r, o;
135195
- e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = eqt(an(e, t)), e.base = r) : (r = Ut(e, "accent"), n = r.base);
135196
- var i = an(n, t.havingCrampedStyle()), a = r.isShifty && kt.isCharacterBox(n), s = 0;
135195
+ e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = eqt(sn(e, t)), e.base = r) : (r = Ut(e, "accent"), n = r.base);
135196
+ var i = sn(n, t.havingCrampedStyle()), a = r.isShifty && kt.isCharacterBox(n), s = 0;
135197
135197
  if (a) {
135198
- var l = kt.getBaseElem(n), u = an(l, t.havingCrampedStyle());
135198
+ var l = kt.getBaseElem(n), u = sn(l, t.havingCrampedStyle());
135199
135199
  s = uB(u).skew;
135200
135200
  }
135201
135201
  var c = r.label === "\\c", d = c ? i.height + i.depth : Math.min(i.height, t.fontMetrics().xHeight), f;
@@ -135210,8 +135210,8 @@ var OA = (e, t) => {
135210
135210
  elem: f,
135211
135211
  wrapperClasses: ["svg-align"],
135212
135212
  wrapperStyle: s > 0 ? {
135213
- width: "calc(100% - " + Qe(2 * s) + ")",
135214
- marginLeft: Qe(2 * s)
135213
+ width: "calc(100% - " + Xe(2 * s) + ")",
135214
+ marginLeft: Xe(2 * s)
135215
135215
  } : void 0
135216
135216
  }]
135217
135217
  }, t);
@@ -135224,7 +135224,7 @@ var OA = (e, t) => {
135224
135224
  var g = r.label === "\\textcircled";
135225
135225
  g && (f.classes.push("accent-full"), d = i.height);
135226
135226
  var m = s;
135227
- g || (m -= h / 2), f.style.left = Qe(m), r.label === "\\textcircled" && (f.style.top = ".2em"), f = Ee.makeVList({
135227
+ g || (m -= h / 2), f.style.left = Xe(m), r.label === "\\textcircled" && (f.style.top = ".2em"), f = Ee.makeVList({
135228
135228
  positionType: "firstBaseline",
135229
135229
  children: [{
135230
135230
  type: "elem",
@@ -135307,7 +135307,7 @@ st({
135307
135307
  };
135308
135308
  },
135309
135309
  htmlBuilder: (e, t) => {
135310
- var n = an(e.base, t), r = hl.svgSpan(e, t), o = e.label === "\\utilde" ? 0.12 : 0, i = Ee.makeVList({
135310
+ var n = sn(e.base, t), r = hl.svgSpan(e, t), o = e.label === "\\utilde" ? 0.12 : 0, i = Ee.makeVList({
135311
135311
  positionType: "top",
135312
135312
  positionData: n.height,
135313
135313
  children: [{
@@ -135385,10 +135385,10 @@ st({
135385
135385
  // Flow is unable to correctly infer the type of `group`, even though it's
135386
135386
  // unambiguously determined from the passed-in `type` above.
135387
135387
  htmlBuilder(e, t) {
135388
- var n = t.style, r = t.havingStyle(n.sup()), o = Ee.wrapFragment(an(e.body, r, t), t), i = e.label.slice(0, 2) === "\\x" ? "x" : "cd";
135388
+ var n = t.style, r = t.havingStyle(n.sup()), o = Ee.wrapFragment(sn(e.body, r, t), t), i = e.label.slice(0, 2) === "\\x" ? "x" : "cd";
135389
135389
  o.classes.push(i + "-arrow-pad");
135390
135390
  var a;
135391
- e.below && (r = t.havingStyle(n.sub()), a = Ee.wrapFragment(an(e.below, r, t), t), a.classes.push(i + "-arrow-pad"));
135391
+ e.below && (r = t.havingStyle(n.sub()), a = Ee.wrapFragment(sn(e.below, r, t), t), a.classes.push(i + "-arrow-pad"));
135392
135392
  var s = hl.svgSpan(e, t), l = -t.fontMetrics().axisHeight + 0.5 * s.height, u = -t.fontMetrics().axisHeight - 0.5 * s.height - 0.111;
135393
135393
  (o.depth > 0.25 || e.label === "\\xleftequilibrium") && (u -= o.depth);
135394
135394
  var c;
@@ -135713,8 +135713,8 @@ st({
135713
135713
  };
135714
135714
  },
135715
135715
  htmlBuilder(e, t) {
135716
- var n = t.havingStyle(t.style.sup()), r = Ee.wrapFragment(an(e.label, n, t), t);
135717
- return r.classes.push("cd-label-" + e.side), r.style.bottom = Qe(0.8 - r.depth), r.height = 0, r.depth = 0, r;
135716
+ var n = t.havingStyle(t.style.sup()), r = Ee.wrapFragment(sn(e.label, n, t), t);
135717
+ return r.classes.push("cd-label-" + e.side), r.style.bottom = Xe(0.8 - r.depth), r.height = 0, r.depth = 0, r;
135718
135718
  },
135719
135719
  mathmlBuilder(e, t) {
135720
135720
  var n = new Ge.MathNode("mrow", [xn(e.label, t)]);
@@ -135738,7 +135738,7 @@ st({
135738
135738
  };
135739
135739
  },
135740
135740
  htmlBuilder(e, t) {
135741
- var n = Ee.wrapFragment(an(e.fragment, t), t);
135741
+ var n = Ee.wrapFragment(sn(e.fragment, t), t);
135742
135742
  return n.classes.push("cd-vert-arrow"), n;
135743
135743
  },
135744
135744
  mathmlBuilder(e, t) {
@@ -135848,11 +135848,11 @@ st({
135848
135848
  // not within tabular/array environments.
135849
135849
  htmlBuilder(e, t) {
135850
135850
  var n = Ee.makeSpan(["mspace"], [], t);
135851
- return e.newLine && (n.classes.push("newline"), e.size && (n.style.marginTop = Qe(Hn(e.size, t)))), n;
135851
+ return e.newLine && (n.classes.push("newline"), e.size && (n.style.marginTop = Xe(Hn(e.size, t)))), n;
135852
135852
  },
135853
135853
  mathmlBuilder(e, t) {
135854
135854
  var n = new Ge.MathNode("mspace");
135855
- return e.newLine && (n.setAttribute("linebreak", "newline"), e.size && n.setAttribute("height", Qe(Hn(e.size, t)))), n;
135855
+ return e.newLine && (n.setAttribute("linebreak", "newline"), e.size && n.setAttribute("height", Xe(Hn(e.size, t)))), n;
135856
135856
  }
135857
135857
  });
135858
135858
  var X7 = {
@@ -136008,7 +136008,7 @@ var Wf = function(t, n, r) {
136008
136008
  return a.height *= s, a.depth *= s, a.maxFontSize = i.sizeMultiplier, a;
136009
136009
  }, Hne = function(t, n, r) {
136010
136010
  var o = n.havingBaseStyle(r), i = (1 - n.sizeMultiplier / o.sizeMultiplier) * n.fontMetrics().axisHeight;
136011
- t.classes.push("delimcenter"), t.style.top = Qe(i), t.height -= i, t.depth += i;
136011
+ t.classes.push("delimcenter"), t.style.top = Xe(i), t.height -= i, t.depth += i;
136012
136012
  }, _qt = function(t, n, r, o, i, a) {
136013
136013
  var s = Ee.makeSymbol(t, "Main-Regular", i, o), l = BA(s, n, o, a);
136014
136014
  return r && Hne(l, o, n), l;
@@ -136027,14 +136027,14 @@ var Wf = function(t, n, r) {
136027
136027
  };
136028
136028
  }, $v = function(t, n, r) {
136029
136029
  var o = Ha["Size4-Regular"][t.charCodeAt(0)] ? Ha["Size4-Regular"][t.charCodeAt(0)][4] : Ha["Size1-Regular"][t.charCodeAt(0)][4], i = new L1("inner", WHt(t, Math.round(1e3 * n))), a = new fl([i], {
136030
- width: Qe(o),
136031
- height: Qe(n),
136030
+ width: Xe(o),
136031
+ height: Xe(n),
136032
136032
  // Override CSS rule `.katex svg { width: 100% }`
136033
- style: "width:" + Qe(o),
136033
+ style: "width:" + Xe(o),
136034
136034
  viewBox: "0 0 " + 1e3 * o + " " + Math.round(1e3 * n),
136035
136035
  preserveAspectRatio: "xMinYMin"
136036
136036
  }), s = Ee.makeSvgSpan([], [a], r);
136037
- return s.height = n, s.style.height = Qe(n), s.style.width = Qe(o), {
136037
+ return s.height = n, s.style.height = Xe(n), s.style.width = Xe(o), {
136038
136038
  type: "elem",
136039
136039
  elem: s
136040
136040
  };
@@ -136084,14 +136084,14 @@ var Wf = function(t, n, r) {
136084
136084
  var a = UHt(t, o, r), s = new L1(t, a), l = new fl([s], {
136085
136085
  // Note: 1000:1 ratio of viewBox to document em width.
136086
136086
  width: "400em",
136087
- height: Qe(n),
136087
+ height: Xe(n),
136088
136088
  viewBox: "0 0 400000 " + r,
136089
136089
  preserveAspectRatio: "xMinYMin slice"
136090
136090
  });
136091
136091
  return Ee.makeSvgSpan(["hide-tail"], [l], i);
136092
136092
  }, Vqt = function(t, n) {
136093
136093
  var r = n.havingBaseSizing(), o = Zne("\\surd", t * r.sizeMultiplier, Gne, r), i = r.sizeMultiplier, a = Math.max(0, n.minRuleThickness - n.fontMetrics().sqrtRuleThickness), s, l = 0, u = 0, c = 0, d;
136094
- return o.type === "small" ? (c = 1e3 + 1e3 * a + Jv, t < 1 ? i = 1 : t < 1.4 && (i = 0.7), l = (1 + a + Qv) / i, u = (1 + a) / i, s = Xv("sqrtMain", l, c, a, n), s.style.minWidth = "0.853em", d = 0.833 / i) : o.type === "large" ? (c = (1e3 + Jv) * Cp[o.size], u = (Cp[o.size] + a) / i, l = (Cp[o.size] + a + Qv) / i, s = Xv("sqrtSize" + o.size, l, c, a, n), s.style.minWidth = "1.02em", d = 1 / i) : (l = t + a + Qv, u = t + a, c = Math.floor(1e3 * t + a) + Jv, s = Xv("sqrtTall", l, c, a, n), s.style.minWidth = "0.742em", d = 1.056), s.height = u, s.style.height = Qe(l), {
136094
+ return o.type === "small" ? (c = 1e3 + 1e3 * a + Jv, t < 1 ? i = 1 : t < 1.4 && (i = 0.7), l = (1 + a + Qv) / i, u = (1 + a) / i, s = Xv("sqrtMain", l, c, a, n), s.style.minWidth = "0.853em", d = 0.833 / i) : o.type === "large" ? (c = (1e3 + Jv) * Cp[o.size], u = (Cp[o.size] + a) / i, l = (Cp[o.size] + a + Qv) / i, s = Xv("sqrtSize" + o.size, l, c, a, n), s.style.minWidth = "1.02em", d = 1 / i) : (l = t + a + Qv, u = t + a, c = Math.floor(1e3 * t + a) + Jv, s = Xv("sqrtTall", l, c, a, n), s.style.minWidth = "0.742em", d = 1.056), s.height = u, s.style.height = Xe(l), {
136095
136095
  span: s,
136096
136096
  advanceWidth: d,
136097
136097
  // Calculate the actual line width.
@@ -136302,7 +136302,7 @@ st({
136302
136302
  e.delim !== "." && t.push(Pi(e.delim, e.mode));
136303
136303
  var n = new Ge.MathNode("mo", t);
136304
136304
  e.mclass === "mopen" || e.mclass === "mclose" ? n.setAttribute("fence", "true") : n.setAttribute("fence", "false"), n.setAttribute("stretchy", "true");
136305
- var r = Qe(Qs.sizeToMaxHeight[e.size]);
136305
+ var r = Xe(Qs.sizeToMaxHeight[e.size]);
136306
136306
  return n.setAttribute("minsize", r), n.setAttribute("maxsize", r), n;
136307
136307
  }
136308
136308
  });
@@ -136423,7 +136423,7 @@ st({
136423
136423
  }
136424
136424
  });
136425
136425
  var zA = (e, t) => {
136426
- var n = Ee.wrapFragment(an(e.body, t), t), r = e.label.slice(1), o = t.sizeMultiplier, i, a = 0, s = kt.isCharacterBox(e.body);
136426
+ var n = Ee.wrapFragment(sn(e.body, t), t), r = e.label.slice(1), o = t.sizeMultiplier, i, a = 0, s = kt.isCharacterBox(e.body);
136427
136427
  if (r === "sout")
136428
136428
  i = Ee.makeSpan(["stretchy", "sout"]), i.height = t.fontMetrics().defaultRuleThickness / o, a = -0.5 * t.fontMetrics().xHeight;
136429
136429
  else if (r === "phase") {
@@ -136436,14 +136436,14 @@ var zA = (e, t) => {
136436
136436
  }, t), c = t.havingBaseSizing();
136437
136437
  o = o / c.sizeMultiplier;
136438
136438
  var d = n.height + n.depth + l + u;
136439
- n.style.paddingLeft = Qe(d / 2 + l);
136439
+ n.style.paddingLeft = Xe(d / 2 + l);
136440
136440
  var f = Math.floor(1e3 * d * o), p = qHt(f), h = new fl([new L1("phase", p)], {
136441
136441
  width: "400em",
136442
- height: Qe(f / 1e3),
136442
+ height: Xe(f / 1e3),
136443
136443
  viewBox: "0 0 400000 " + f,
136444
136444
  preserveAspectRatio: "xMinYMin slice"
136445
136445
  });
136446
- i = Ee.makeSvgSpan(["hide-tail"], [h], t), i.style.height = Qe(d), a = n.depth + l + u;
136446
+ i = Ee.makeSvgSpan(["hide-tail"], [h], t), i.style.height = Xe(d), a = n.depth + l + u;
136447
136447
  } else {
136448
136448
  /cancel/.test(r) ? s || n.classes.push("cancel-pad") : r === "angl" ? n.classes.push("anglpad") : n.classes.push("boxpad");
136449
136449
  var g = 0, m = 0, b = 0;
@@ -136452,7 +136452,7 @@ var zA = (e, t) => {
136452
136452
  // default
136453
136453
  t.minRuleThickness
136454
136454
  // User override.
136455
- ), g = t.fontMetrics().fboxsep + (r === "colorbox" ? 0 : b), m = g) : r === "angl" ? (b = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), g = 4 * b, m = Math.max(0, 0.25 - n.depth)) : (g = s ? 0.2 : 0, m = g), i = hl.encloseSpan(n, r, g, m, t), /fbox|boxed|fcolorbox/.test(r) ? (i.style.borderStyle = "solid", i.style.borderWidth = Qe(b)) : r === "angl" && b !== 0.049 && (i.style.borderTopWidth = Qe(b), i.style.borderRightWidth = Qe(b)), a = n.depth + m, e.backgroundColor && (i.style.backgroundColor = e.backgroundColor, e.borderColor && (i.style.borderColor = e.borderColor));
136455
+ ), g = t.fontMetrics().fboxsep + (r === "colorbox" ? 0 : b), m = g) : r === "angl" ? (b = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), g = 4 * b, m = Math.max(0, 0.25 - n.depth)) : (g = s ? 0.2 : 0, m = g), i = hl.encloseSpan(n, r, g, m, t), /fbox|boxed|fcolorbox/.test(r) ? (i.style.borderStyle = "solid", i.style.borderWidth = Xe(b)) : r === "angl" && b !== 0.049 && (i.style.borderTopWidth = Xe(b), i.style.borderRightWidth = Xe(b)), a = n.depth + m, e.backgroundColor && (i.style.backgroundColor = e.backgroundColor, e.borderColor && (i.style.borderColor = e.borderColor));
136456
136456
  }
136457
136457
  var k;
136458
136458
  if (e.backgroundColor)
@@ -136785,7 +136785,7 @@ var vs = function(t, n) {
136785
136785
  s < w.length && (s = w.length);
136786
136786
  var C = new Array(w.length);
136787
136787
  for (o = 0; o < w.length; ++o) {
136788
- var D = an(w[o], n);
136788
+ var D = sn(w[o], n);
136789
136789
  A < D.depth && (A = D.depth), F < D.height && (F = D.height), C[o] = D;
136790
136790
  }
136791
136791
  var T = t.rowGaps[r], I = 0;
@@ -136809,18 +136809,18 @@ var vs = function(t, n) {
136809
136809
  ++o, ++P
136810
136810
  ) {
136811
136811
  for (var ne = W[P] || {}, le = !0; ne.type === "separator"; ) {
136812
- if (le || (U = Ee.makeSpan(["arraycolsep"], []), U.style.width = Qe(n.fontMetrics().doubleRuleSep), q.push(U)), ne.separator === "|" || ne.separator === ":") {
136812
+ if (le || (U = Ee.makeSpan(["arraycolsep"], []), U.style.width = Xe(n.fontMetrics().doubleRuleSep), q.push(U)), ne.separator === "|" || ne.separator === ":") {
136813
136813
  var ce = ne.separator === "|" ? "solid" : "dashed", pe = Ee.makeSpan(["vertical-separator"], [], n);
136814
- pe.style.height = Qe(v), pe.style.borderRightWidth = Qe(c), pe.style.borderRightStyle = ce, pe.style.margin = "0 " + Qe(-c / 2);
136814
+ pe.style.height = Xe(v), pe.style.borderRightWidth = Xe(c), pe.style.borderRightStyle = ce, pe.style.margin = "0 " + Xe(-c / 2);
136815
136815
  var X = v - B;
136816
- X && (pe.style.verticalAlign = Qe(-X)), q.push(pe);
136816
+ X && (pe.style.verticalAlign = Xe(-X)), q.push(pe);
136817
136817
  } else
136818
136818
  throw new Ye("Invalid separator type: " + ne.separator);
136819
136819
  P++, ne = W[P] || {}, le = !1;
136820
136820
  }
136821
136821
  if (!(o >= s)) {
136822
136822
  var de = void 0;
136823
- (o > 0 || t.hskipBeforeAndAfter) && (de = kt.deflt(ne.pregap, f), de !== 0 && (U = Ee.makeSpan(["arraycolsep"], []), U.style.width = Qe(de), q.push(U)));
136823
+ (o > 0 || t.hskipBeforeAndAfter) && (de = kt.deflt(ne.pregap, f), de !== 0 && (U = Ee.makeSpan(["arraycolsep"], []), U.style.width = Xe(de), q.push(U)));
136824
136824
  var Fe = [];
136825
136825
  for (r = 0; r < i; ++r) {
136826
136826
  var Ie = l[r], Le = Ie[o];
@@ -136836,7 +136836,7 @@ var vs = function(t, n) {
136836
136836
  Fe = Ee.makeVList({
136837
136837
  positionType: "individualShift",
136838
136838
  children: Fe
136839
- }, n), Fe = Ee.makeSpan(["col-align-" + (ne.align || "c")], [Fe]), q.push(Fe), (o < s - 1 || t.hskipBeforeAndAfter) && (de = kt.deflt(ne.postgap, f), de !== 0 && (U = Ee.makeSpan(["arraycolsep"], []), U.style.width = Qe(de), q.push(U)));
136839
+ }, n), Fe = Ee.makeSpan(["col-align-" + (ne.align || "c")], [Fe]), q.push(Fe), (o < s - 1 || t.hskipBeforeAndAfter) && (de = kt.deflt(ne.postgap, f), de !== 0 && (U = Ee.makeSpan(["arraycolsep"], []), U.style.width = Xe(de), q.push(U)));
136840
136840
  }
136841
136841
  }
136842
136842
  if (l = Ee.makeSpan(["mtable"], q), u.length > 0) {
@@ -136879,7 +136879,7 @@ var vs = function(t, n) {
136879
136879
  t.tags && t.tags[a] && (l.unshift(o), l.push(o), t.leqno ? l.unshift(i) : l.push(i)), r.push(new Ge.MathNode("mtr", l));
136880
136880
  }
136881
136881
  var c = new Ge.MathNode("mtable", r), d = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
136882
- c.setAttribute("rowspacing", Qe(d));
136882
+ c.setAttribute("rowspacing", Xe(d));
136883
136883
  var f = "", p = "";
136884
136884
  if (t.cols && t.cols.length > 0) {
136885
136885
  var h = t.cols, g = "", m = !1, b = 0, k = h.length;
@@ -137248,7 +137248,7 @@ st({
137248
137248
  });
137249
137249
  var Qne = (e, t) => {
137250
137250
  var n = e.font, r = t.withFont(n);
137251
- return an(e.body, r);
137251
+ return sn(e.body, r);
137252
137252
  }, Xne = (e, t) => {
137253
137253
  var n = e.font, r = t.withFont(n);
137254
137254
  return xn(e.body, r);
@@ -137357,13 +137357,13 @@ var ere = (e, t) => {
137357
137357
  }, qA = (e, t) => {
137358
137358
  var n = ere(e.size, t.style), r = n.fracNum(), o = n.fracDen(), i;
137359
137359
  i = t.havingStyle(r);
137360
- var a = an(e.numer, i, t);
137360
+ var a = sn(e.numer, i, t);
137361
137361
  if (e.continued) {
137362
137362
  var s = 8.5 / t.fontMetrics().ptPerEm, l = 3.5 / t.fontMetrics().ptPerEm;
137363
137363
  a.height = a.height < s ? s : a.height, a.depth = a.depth < l ? l : a.depth;
137364
137364
  }
137365
137365
  i = t.havingStyle(o);
137366
- var u = an(e.denom, i, t), c, d, f;
137366
+ var u = sn(e.denom, i, t), c, d, f;
137367
137367
  e.hasBarLine ? (e.barSize ? (d = Hn(e.barSize, t), c = Ee.makeLineSpan("frac-line", t, d)) : c = Ee.makeLineSpan("frac-line", t), d = c.height, f = c.height) : (c = null, d = 0, f = t.fontMetrics().defaultRuleThickness);
137368
137368
  var p, h, g;
137369
137369
  n.size === At.DISPLAY.size || e.size === "display" ? (p = t.fontMetrics().num1, d > 0 ? h = 3 * f : h = 7 * f, g = t.fontMetrics().denom1) : (d > 0 ? (p = t.fontMetrics().num2, h = f) : (p = t.fontMetrics().num3, h = 3 * f), g = t.fontMetrics().denom2);
@@ -137414,7 +137414,7 @@ var ere = (e, t) => {
137414
137414
  n.setAttribute("linethickness", "0px");
137415
137415
  else if (e.barSize) {
137416
137416
  var r = Hn(e.barSize, t);
137417
- n.setAttribute("linethickness", Qe(r));
137417
+ n.setAttribute("linethickness", Xe(r));
137418
137418
  }
137419
137419
  var o = ere(e.size, t.style);
137420
137420
  if (o.size !== t.style.size) {
@@ -137668,8 +137668,8 @@ st({
137668
137668
  });
137669
137669
  var tre = (e, t) => {
137670
137670
  var n = t.style, r, o;
137671
- e.type === "supsub" ? (r = e.sup ? an(e.sup, t.havingStyle(n.sup()), t) : an(e.sub, t.havingStyle(n.sub()), t), o = Ut(e.base, "horizBrace")) : o = Ut(e, "horizBrace");
137672
- var i = an(o.base, t.havingBaseStyle(At.DISPLAY)), a = hl.svgSpan(o, t), s;
137671
+ e.type === "supsub" ? (r = e.sup ? sn(e.sup, t.havingStyle(n.sup()), t) : sn(e.sub, t.havingStyle(n.sub()), t), o = Ut(e.base, "horizBrace")) : o = Ut(e, "horizBrace");
137672
+ var i = sn(o.base, t.havingBaseStyle(At.DISPLAY)), a = hl.svgSpan(o, t), s;
137673
137673
  if (o.isOver ? (s = Ee.makeVList({
137674
137674
  positionType: "firstBaseline",
137675
137675
  children: [{
@@ -138023,9 +138023,9 @@ st({
138023
138023
  var o = 0;
138024
138024
  e.width.number > 0 && (o = Hn(e.width, t));
138025
138025
  var i = {
138026
- height: Qe(n + r)
138026
+ height: Xe(n + r)
138027
138027
  };
138028
- o > 0 && (i.width = Qe(o)), r > 0 && (i.verticalAlign = Qe(-r));
138028
+ o > 0 && (i.width = Xe(o)), r > 0 && (i.verticalAlign = Xe(-r));
138029
138029
  var a = new QHt(e.src, e.alt, i);
138030
138030
  return a.height = n, a.depth = r, a;
138031
138031
  },
@@ -138033,9 +138033,9 @@ st({
138033
138033
  var n = new Ge.MathNode("mglyph", []);
138034
138034
  n.setAttribute("alt", e.alt);
138035
138035
  var r = Hn(e.height, t), o = 0;
138036
- if (e.totalheight.number > 0 && (o = Hn(e.totalheight, t) - r, n.setAttribute("valign", Qe(-o))), n.setAttribute("height", Qe(r + o)), e.width.number > 0) {
138036
+ if (e.totalheight.number > 0 && (o = Hn(e.totalheight, t) - r, n.setAttribute("valign", Xe(-o))), n.setAttribute("height", Xe(r + o)), e.width.number > 0) {
138037
138037
  var i = Hn(e.width, t);
138038
- n.setAttribute("width", Qe(i));
138038
+ n.setAttribute("width", Xe(i));
138039
138039
  }
138040
138040
  return n.setAttribute("src", e.src), n;
138041
138041
  }
@@ -138093,9 +138093,9 @@ st({
138093
138093
  },
138094
138094
  htmlBuilder: (e, t) => {
138095
138095
  var n;
138096
- e.alignment === "clap" ? (n = Ee.makeSpan([], [an(e.body, t)]), n = Ee.makeSpan(["inner"], [n], t)) : n = Ee.makeSpan(["inner"], [an(e.body, t)]);
138096
+ e.alignment === "clap" ? (n = Ee.makeSpan([], [sn(e.body, t)]), n = Ee.makeSpan(["inner"], [n], t)) : n = Ee.makeSpan(["inner"], [sn(e.body, t)]);
138097
138097
  var r = Ee.makeSpan(["fix"], []), o = Ee.makeSpan([e.alignment], [n, r], t), i = Ee.makeSpan(["strut"]);
138098
- return i.style.height = Qe(o.height + o.depth), o.depth && (i.style.verticalAlign = Qe(-o.depth)), o.children.unshift(i), o = Ee.makeSpan(["thinbox"], [o], t), Ee.makeSpan(["mord", "vbox"], [o], t);
138098
+ return i.style.height = Xe(o.height + o.depth), o.depth && (i.style.verticalAlign = Xe(-o.depth)), o.children.unshift(i), o = Ee.makeSpan(["thinbox"], [o], t), Ee.makeSpan(["mord", "vbox"], [o], t);
138099
138099
  },
138100
138100
  mathmlBuilder: (e, t) => {
138101
138101
  var n = new Ge.MathNode("mpadded", [xn(e.body, t)]);
@@ -138189,14 +138189,14 @@ var nre = (e, t, n, r, o, i, a) => {
138189
138189
  e = Ee.makeSpan([], [e]);
138190
138190
  var s = n && kt.isCharacterBox(n), l, u;
138191
138191
  if (t) {
138192
- var c = an(t, r.havingStyle(o.sup()), r);
138192
+ var c = sn(t, r.havingStyle(o.sup()), r);
138193
138193
  u = {
138194
138194
  elem: c,
138195
138195
  kern: Math.max(r.fontMetrics().bigOpSpacing1, r.fontMetrics().bigOpSpacing3 - c.depth)
138196
138196
  };
138197
138197
  }
138198
138198
  if (n) {
138199
- var d = an(n, r.havingStyle(o.sub()), r);
138199
+ var d = sn(n, r.havingStyle(o.sub()), r);
138200
138200
  l = {
138201
138201
  elem: d,
138202
138202
  kern: Math.max(r.fontMetrics().bigOpSpacing2, r.fontMetrics().bigOpSpacing4 - d.height)
@@ -138214,7 +138214,7 @@ var nre = (e, t, n, r, o, i, a) => {
138214
138214
  }, {
138215
138215
  type: "elem",
138216
138216
  elem: l.elem,
138217
- marginLeft: Qe(-i)
138217
+ marginLeft: Xe(-i)
138218
138218
  }, {
138219
138219
  type: "kern",
138220
138220
  size: l.kern
@@ -138227,7 +138227,7 @@ var nre = (e, t, n, r, o, i, a) => {
138227
138227
  }, {
138228
138228
  type: "elem",
138229
138229
  elem: u.elem,
138230
- marginLeft: Qe(i)
138230
+ marginLeft: Xe(i)
138231
138231
  }, {
138232
138232
  type: "kern",
138233
138233
  size: r.fontMetrics().bigOpSpacing5
@@ -138244,7 +138244,7 @@ var nre = (e, t, n, r, o, i, a) => {
138244
138244
  }, {
138245
138245
  type: "elem",
138246
138246
  elem: l.elem,
138247
- marginLeft: Qe(-i)
138247
+ marginLeft: Xe(-i)
138248
138248
  }, {
138249
138249
  type: "kern",
138250
138250
  size: l.kern
@@ -138267,7 +138267,7 @@ var nre = (e, t, n, r, o, i, a) => {
138267
138267
  }, {
138268
138268
  type: "elem",
138269
138269
  elem: u.elem,
138270
- marginLeft: Qe(i)
138270
+ marginLeft: Xe(i)
138271
138271
  }, {
138272
138272
  type: "kern",
138273
138273
  size: r.fontMetrics().bigOpSpacing5
@@ -138278,7 +138278,7 @@ var nre = (e, t, n, r, o, i, a) => {
138278
138278
  var m = [f];
138279
138279
  if (l && i !== 0 && !s) {
138280
138280
  var b = Ee.makeSpan(["mspace"], [], r);
138281
- b.style.marginRight = Qe(i), m.unshift(b);
138281
+ b.style.marginRight = Xe(i), m.unshift(b);
138282
138282
  }
138283
138283
  return Ee.makeSpan(["mop", "op-limits"], m, r);
138284
138284
  }, rre = ["\\smallint"], X0 = (e, t) => {
@@ -138313,7 +138313,7 @@ var nre = (e, t, n, r, o, i, a) => {
138313
138313
  l = Ee.makeSpan(["mop"], h, t);
138314
138314
  }
138315
138315
  var m = 0, b = 0;
138316
- return (l instanceof _i || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (m = (l.height - l.depth) / 2 - t.fontMetrics().axisHeight, b = l.italic), o ? nre(l, n, r, t, a, b, m) : (m && (l.style.position = "relative", l.style.top = Qe(m)), l);
138316
+ return (l instanceof _i || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (m = (l.height - l.depth) / 2 - t.fontMetrics().axisHeight, b = l.italic), o ? nre(l, n, r, t, a, b, m) : (m && (l.style.position = "relative", l.style.top = Xe(m)), l);
138317
138317
  }, xg = (e, t) => {
138318
138318
  var n;
138319
138319
  if (e.symbol)
@@ -138564,7 +138564,7 @@ st({
138564
138564
  };
138565
138565
  },
138566
138566
  htmlBuilder(e, t) {
138567
- var n = an(e.body, t.havingCrampedStyle()), r = Ee.makeLineSpan("overline-line", t), o = t.fontMetrics().defaultRuleThickness, i = Ee.makeVList({
138567
+ var n = sn(e.body, t.havingCrampedStyle()), r = Ee.makeLineSpan("overline-line", t), o = t.fontMetrics().defaultRuleThickness, i = Ee.makeVList({
138568
138568
  positionType: "firstBaseline",
138569
138569
  children: [{
138570
138570
  type: "elem",
@@ -138633,7 +138633,7 @@ st({
138633
138633
  };
138634
138634
  },
138635
138635
  htmlBuilder: (e, t) => {
138636
- var n = Ee.makeSpan([], [an(e.body, t.withPhantom())]);
138636
+ var n = Ee.makeSpan([], [sn(e.body, t.withPhantom())]);
138637
138637
  if (n.height = 0, n.depth = 0, n.children)
138638
138638
  for (var r = 0; r < n.children.length; r++)
138639
138639
  n.children[r].height = 0, n.children[r].depth = 0;
@@ -138668,7 +138668,7 @@ st({
138668
138668
  };
138669
138669
  },
138670
138670
  htmlBuilder: (e, t) => {
138671
- var n = Ee.makeSpan(["inner"], [an(e.body, t.withPhantom())]), r = Ee.makeSpan(["fix"], []);
138671
+ var n = Ee.makeSpan(["inner"], [sn(e.body, t.withPhantom())]), r = Ee.makeSpan(["fix"], []);
138672
138672
  return Ee.makeSpan(["mord", "rlap"], [n, r], t);
138673
138673
  },
138674
138674
  mathmlBuilder: (e, t) => {
@@ -138696,7 +138696,7 @@ st({
138696
138696
  };
138697
138697
  },
138698
138698
  htmlBuilder(e, t) {
138699
- var n = an(e.body, t), r = Hn(e.dy, t);
138699
+ var n = sn(e.body, t), r = Hn(e.dy, t);
138700
138700
  return Ee.makeVList({
138701
138701
  positionType: "shift",
138702
138702
  positionData: -r,
@@ -138753,13 +138753,13 @@ st({
138753
138753
  },
138754
138754
  htmlBuilder(e, t) {
138755
138755
  var n = Ee.makeSpan(["mord", "rule"], [], t), r = Hn(e.width, t), o = Hn(e.height, t), i = e.shift ? Hn(e.shift, t) : 0;
138756
- return n.style.borderRightWidth = Qe(r), n.style.borderTopWidth = Qe(o), n.style.bottom = Qe(i), n.width = r, n.height = o + i, n.depth = -i, n.maxFontSize = o * 1.125 * t.sizeMultiplier, n;
138756
+ return n.style.borderRightWidth = Xe(r), n.style.borderTopWidth = Xe(o), n.style.bottom = Xe(i), n.width = r, n.height = o + i, n.depth = -i, n.maxFontSize = o * 1.125 * t.sizeMultiplier, n;
138757
138757
  },
138758
138758
  mathmlBuilder(e, t) {
138759
138759
  var n = Hn(e.width, t), r = Hn(e.height, t), o = e.shift ? Hn(e.shift, t) : 0, i = t.color && t.getColor() || "black", a = new Ge.MathNode("mspace");
138760
- a.setAttribute("mathbackground", i), a.setAttribute("width", Qe(n)), a.setAttribute("height", Qe(r));
138760
+ a.setAttribute("mathbackground", i), a.setAttribute("width", Xe(n)), a.setAttribute("height", Xe(r));
138761
138761
  var s = new Ge.MathNode("mpadded", [a]);
138762
- return o >= 0 ? s.setAttribute("height", Qe(o)) : (s.setAttribute("height", Qe(o)), s.setAttribute("depth", Qe(-o))), s.setAttribute("voffset", Qe(o)), s;
138762
+ return o >= 0 ? s.setAttribute("height", Xe(o)) : (s.setAttribute("height", Xe(o)), s.setAttribute("depth", Xe(-o))), s.setAttribute("voffset", Xe(o)), s;
138763
138763
  }
138764
138764
  });
138765
138765
  function ire(e, t, n) {
@@ -138797,7 +138797,7 @@ st({
138797
138797
  htmlBuilder: nVt,
138798
138798
  mathmlBuilder: (e, t) => {
138799
138799
  var n = t.havingSize(e.size), r = Vo(e.body, n), o = new Ge.MathNode("mstyle", r);
138800
- return o.setAttribute("mathsize", Qe(n.sizeMultiplier)), o;
138800
+ return o.setAttribute("mathsize", Xe(n.sizeMultiplier)), o;
138801
138801
  }
138802
138802
  });
138803
138803
  st({
@@ -138836,7 +138836,7 @@ st({
138836
138836
  };
138837
138837
  },
138838
138838
  htmlBuilder: (e, t) => {
138839
- var n = Ee.makeSpan([], [an(e.body, t)]);
138839
+ var n = Ee.makeSpan([], [sn(e.body, t)]);
138840
138840
  if (!e.smashHeight && !e.smashDepth)
138841
138841
  return n;
138842
138842
  if (e.smashHeight && (n.height = 0, n.children))
@@ -138878,7 +138878,7 @@ st({
138878
138878
  };
138879
138879
  },
138880
138880
  htmlBuilder(e, t) {
138881
- var n = an(e.body, t.havingCrampedStyle());
138881
+ var n = sn(e.body, t.havingCrampedStyle());
138882
138882
  n.height === 0 && (n.height = t.fontMetrics().xHeight), n = Ee.wrapFragment(n, t);
138883
138883
  var r = t.fontMetrics(), o = r.defaultRuleThickness, i = o;
138884
138884
  t.style.id < At.TEXT.id && (i = t.fontMetrics().xHeight);
@@ -138889,7 +138889,7 @@ st({
138889
138889
  } = Qs.sqrtImage(s, t), d = l.height - u;
138890
138890
  d > n.height + n.depth + a && (a = (a + d - n.height - n.depth) / 2);
138891
138891
  var f = l.height - n.height - a - u;
138892
- n.style.paddingLeft = Qe(c);
138892
+ n.style.paddingLeft = Xe(c);
138893
138893
  var p = Ee.makeVList({
138894
138894
  positionType: "firstBaseline",
138895
138895
  children: [{
@@ -138908,7 +138908,7 @@ st({
138908
138908
  }]
138909
138909
  }, t);
138910
138910
  if (e.index) {
138911
- var h = t.havingStyle(At.SCRIPTSCRIPT), g = an(e.index, h, t), m = 0.6 * (p.height - p.depth), b = Ee.makeVList({
138911
+ var h = t.havingStyle(At.SCRIPTSCRIPT), g = sn(e.index, h, t), m = 0.6 * (p.height - p.depth), b = Ee.makeVList({
138912
138912
  positionType: "shift",
138913
138913
  positionData: -m,
138914
138914
  children: [{
@@ -139001,21 +139001,21 @@ jc({
139001
139001
  base: r,
139002
139002
  sup: o,
139003
139003
  sub: i
139004
- } = e, a = an(r, t), s, l, u = t.fontMetrics(), c = 0, d = 0, f = r && kt.isCharacterBox(r);
139004
+ } = e, a = sn(r, t), s, l, u = t.fontMetrics(), c = 0, d = 0, f = r && kt.isCharacterBox(r);
139005
139005
  if (o) {
139006
139006
  var p = t.havingStyle(t.style.sup());
139007
- s = an(o, p, t), f || (c = a.height - p.fontMetrics().supDrop * p.sizeMultiplier / t.sizeMultiplier);
139007
+ s = sn(o, p, t), f || (c = a.height - p.fontMetrics().supDrop * p.sizeMultiplier / t.sizeMultiplier);
139008
139008
  }
139009
139009
  if (i) {
139010
139010
  var h = t.havingStyle(t.style.sub());
139011
- l = an(i, h, t), f || (d = a.depth + h.fontMetrics().subDrop * h.sizeMultiplier / t.sizeMultiplier);
139011
+ l = sn(i, h, t), f || (d = a.depth + h.fontMetrics().subDrop * h.sizeMultiplier / t.sizeMultiplier);
139012
139012
  }
139013
139013
  var g;
139014
139014
  t.style === At.DISPLAY ? g = u.sup1 : t.style.cramped ? g = u.sup3 : g = u.sup2;
139015
- var m = t.sizeMultiplier, b = Qe(0.5 / u.ptPerEm / m), k = null;
139015
+ var m = t.sizeMultiplier, b = Xe(0.5 / u.ptPerEm / m), k = null;
139016
139016
  if (l) {
139017
139017
  var v = e.base && e.base.type === "op" && e.base.name && (e.base.name === "\\oiint" || e.base.name === "\\oiiint");
139018
- (a instanceof _i || v) && (k = Qe(-a.italic));
139018
+ (a instanceof _i || v) && (k = Xe(-a.italic));
139019
139019
  }
139020
139020
  var x;
139021
139021
  if (s && l) {
@@ -139271,7 +139271,7 @@ st({
139271
139271
  };
139272
139272
  },
139273
139273
  htmlBuilder(e, t) {
139274
- var n = an(e.body, t), r = Ee.makeLineSpan("underline-line", t), o = t.fontMetrics().defaultRuleThickness, i = Ee.makeVList({
139274
+ var n = sn(e.body, t), r = Ee.makeLineSpan("underline-line", t), o = t.fontMetrics().defaultRuleThickness, i = Ee.makeVList({
139275
139275
  positionType: "top",
139276
139276
  positionData: n.height,
139277
139277
  children: [{
@@ -139317,7 +139317,7 @@ st({
139317
139317
  };
139318
139318
  },
139319
139319
  htmlBuilder(e, t) {
139320
- var n = an(e.body, t), r = t.fontMetrics().axisHeight, o = 0.5 * (n.height - r - (n.depth + r));
139320
+ var n = sn(e.body, t), r = t.fontMetrics().axisHeight, o = 0.5 * (n.height - r - (n.depth + r));
139321
139321
  return Ee.makeVList({
139322
139322
  positionType: "shift",
139323
139323
  positionData: o,
@@ -139813,7 +139813,7 @@ Y("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
139813
139813
  Y("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
139814
139814
  Y("\\newline", "\\\\\\relax");
139815
139815
  Y("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
139816
- var lre = Qe(Ha["Main-Regular"][84][1] - 0.7 * Ha["Main-Regular"][65][1]);
139816
+ var lre = Xe(Ha["Main-Regular"][84][1] - 0.7 * Ha["Main-Regular"][65][1]);
139817
139817
  Y("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + lre + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
139818
139818
  Y("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + lre + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
139819
139819
  Y("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
@@ -142544,7 +142544,7 @@ function Zc(e, t, n) {
142544
142544
  var r, o, i, a;
142545
142545
  return n.delimiters === void 0 || n.delimiters === "dollar" ? e === "inline" ? "$" : "$$" : n.delimiters === "bracket" ? e === "inline" ? t === "start" ? String.raw`\(` : String.raw`\)` : t === "start" ? String.raw`\[` : String.raw`\]` : e === "inline" ? t === "start" ? (r = n.delimiters.inlineStart) !== null && r !== void 0 ? r : "$" : (o = n.delimiters.inlineEnd) !== null && o !== void 0 ? o : "$" : t === "start" ? (i = n.delimiters.blockStart) !== null && i !== void 0 ? i : "$$" : (a = n.delimiters.blockEnd) !== null && a !== void 0 ? a : "$$";
142546
142546
  }
142547
- const yUt = "mathExtension", bUt = Xt.create({
142547
+ const yUt = "mathExtension", bUt = en.create({
142548
142548
  name: yUt,
142549
142549
  addOptions() {
142550
142550
  return vre;
@@ -142661,8 +142661,8 @@ const vUt = sr.create({
142661
142661
  "Mod-,": () => this.editor.commands.toggleSubscript()
142662
142662
  };
142663
142663
  }
142664
- }), wUt = (e, t, n) => new tn({
142665
- key: new sn("media-paste-drop"),
142664
+ }), wUt = (e, t, n) => new Qt({
142665
+ key: new rn("media-paste-drop"),
142666
142666
  props: {
142667
142667
  handlePaste(r, o) {
142668
142668
  var c, d;
@@ -142924,7 +142924,7 @@ const EUt = ({
142924
142924
  metadataProxyUrl: t,
142925
142925
  hoverEvent: n
142926
142926
  }) => {
142927
- const r = Xo("(max-width:768px)"), [o, i] = Re(null), [a, s] = Re(!1), l = Xe(/* @__PURE__ */ new Map()), u = async (c) => {
142927
+ const r = Xo("(max-width:768px)"), [o, i] = Re(null), [a, s] = Re(!1), l = et(/* @__PURE__ */ new Map()), u = async (c) => {
142928
142928
  if (c) {
142929
142929
  if (l.current.has(c)) {
142930
142930
  i(l.current.get(c)), s(!1);
@@ -143006,15 +143006,15 @@ const EUt = ({
143006
143006
  ] })
143007
143007
  ] })
143008
143008
  ] }) : /* @__PURE__ */ M.jsx("p", { className: "text-helper-text-sm color-text-secondary", children: "No preview available" }) });
143009
- }, AUt = Xt.create({
143009
+ }, AUt = en.create({
143010
143010
  name: "linkPreview",
143011
143011
  addProseMirrorPlugins() {
143012
143012
  if (!this.options.metadataProxyUrl) return [];
143013
- const e = new sn("link-preview");
143013
+ const e = new rn("link-preview");
143014
143014
  let t = null, n = null, r = null, o = null, i = null;
143015
143015
  const a = new EventTarget();
143016
143016
  return [
143017
- new tn({
143017
+ new Qt({
143018
143018
  key: e,
143019
143019
  props: {
143020
143020
  handleDOMEvents: {
@@ -143081,6 +143081,32 @@ const EUt = ({
143081
143081
  }
143082
143082
  };
143083
143083
  },
143084
+ addProseMirrorPlugins() {
143085
+ const e = new rn("callout-block");
143086
+ return [
143087
+ new Qt({
143088
+ key: e,
143089
+ props: {
143090
+ transformPasted(t, n) {
143091
+ const r = n.state, { selection: o } = r, i = o.$from;
143092
+ let a = !1;
143093
+ for (let u = i.depth; u >= 0; u--)
143094
+ if (i.node(u).type.name === "callout") {
143095
+ a = !0;
143096
+ break;
143097
+ }
143098
+ if (!a) return t;
143099
+ const s = [];
143100
+ t.content.forEach((u) => {
143101
+ u.type.name === "callout" || u.type.name === "dBlock" ? u.content.forEach((c) => s.push(c)) : s.push(u);
143102
+ });
143103
+ const l = Oe.fromArray(s);
143104
+ return new Qe(l, 0, 0);
143105
+ }
143106
+ }
143107
+ })
143108
+ ];
143109
+ },
143084
143110
  addAttributes() {
143085
143111
  return {
143086
143112
  dataType: {
@@ -143106,7 +143132,7 @@ const EUt = ({
143106
143132
  0
143107
143133
  ];
143108
143134
  }
143109
- }), DUt = Xt.create({
143135
+ }), DUt = en.create({
143110
143136
  name: "fontSize",
143111
143137
  addOptions() {
143112
143138
  return {
@@ -144265,8 +144291,8 @@ function AWt(e) {
144265
144291
  function jWt({ name: e, lowlight: t, defaultLanguage: n }) {
144266
144292
  if (!["highlight", "highlightAuto", "listLanguages"].every((o) => AWt(t[o])))
144267
144293
  throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");
144268
- const r = new tn({
144269
- key: new sn("lowlight"),
144294
+ const r = new Qt({
144295
+ key: new rn("lowlight"),
144270
144296
  state: {
144271
144297
  init: (o, { doc: i }) => XB({
144272
144298
  doc: i,
@@ -144355,7 +144381,7 @@ function LWt({
144355
144381
  editor: n,
144356
144382
  deleteNode: r
144357
144383
  }) {
144358
- const o = Xe(null), [i, a] = Re("Copy"), s = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, f = e.attrs.shouldFocus, { isMobile: p } = xl(), h = e.attrs.code || e.textContent || "", g = It(() => {
144384
+ const o = et(null), [i, a] = Re("Copy"), s = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, f = e.attrs.shouldFocus, { isMobile: p } = xl(), h = e.attrs.code || e.textContent || "", g = It(() => {
144359
144385
  const k = h.split(`
144360
144386
  `), v = [];
144361
144387
  let x = 0;
@@ -158593,10 +158619,10 @@ function QZt(e) {
158593
158619
  text: p[0]
158594
158620
  } : null;
158595
158621
  }
158596
- const XZt = new sn("suggestion");
158622
+ const XZt = new rn("suggestion");
158597
158623
  function coe({ pluginKey: e = XZt, editor: t, char: n = "@", allowSpaces: r = !1, allowedPrefixes: o = [" "], startOfLine: i = !1, decorationTag: a = "span", decorationClass: s = "suggestion", command: l = () => null, items: u = () => [], render: c = () => ({}), allow: d = () => !0, findSuggestionMatch: f = QZt }) {
158598
158624
  let p;
158599
- const h = c == null ? void 0 : c(), g = new tn({
158625
+ const h = c == null ? void 0 : c(), g = new Qt({
158600
158626
  key: e,
158601
158627
  view() {
158602
158628
  return {
@@ -218615,7 +218641,7 @@ function nKt(e) {
218615
218641
  };
218616
218642
  });
218617
218643
  }
218618
- const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
218644
+ const rKt = 200, oKt = new rn("emoji"), iKt = Bt.create({
218619
218645
  name: "emoji",
218620
218646
  content: "text*",
218621
218647
  priority: rKt,
@@ -218732,7 +218758,8 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
218732
218758
  document: !1,
218733
218759
  horizontalRule: !1,
218734
218760
  bulletList: !1,
218735
- listItem: !1
218761
+ listItem: !1,
218762
+ codeBlock: !1
218736
218763
  }),
218737
218764
  NWt.configure({
218738
218765
  lowlight: aKt,
@@ -218838,7 +218865,8 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
218838
218865
  katexOptions: {
218839
218866
  throwOnError: !1,
218840
218867
  strict: !1
218841
- }
218868
+ },
218869
+ renderTextMode: "raw-latex"
218842
218870
  }),
218843
218871
  xUt,
218844
218872
  vUt.configure({
@@ -219087,7 +219115,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
219087
219115
  }), fKt = (e, t) => {
219088
219116
  const n = e.offsetHeight, r = t ? t.offsetHeight : 0, o = t.offsetTop, i = o + r;
219089
219117
  o < e.scrollTop ? e.scrollTop -= e.scrollTop - o + 5 : i > n + e.scrollTop && (e.scrollTop += i - n - e.scrollTop + 5);
219090
- }, pKt = Xt.create({
219118
+ }, pKt = en.create({
219091
219119
  name: "slash-command",
219092
219120
  addOptions() {
219093
219121
  return {
@@ -219176,7 +219204,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
219176
219204
  }, [i, r, o, d]), Pe(() => {
219177
219205
  o(0);
219178
219206
  }, [i]);
219179
- const f = Xe(null);
219207
+ const f = et(null);
219180
219208
  return gl(() => {
219181
219209
  const p = f == null ? void 0 : f.current, h = p == null ? void 0 : p.children[r];
219182
219210
  h && p && fKt(p, h);
@@ -219244,7 +219272,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
219244
219272
  render: gKt
219245
219273
  }
219246
219274
  });
219247
- }, poe = Xt.create({
219275
+ }, poe = en.create({
219248
219276
  name: "customTextInputRules",
219249
219277
  addInputRules() {
219250
219278
  return [
@@ -219595,8 +219623,8 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
219595
219623
  },
219596
219624
  addProseMirrorPlugins() {
219597
219625
  return [
219598
- new tn({
219599
- key: new sn("pageBreakPlugin"),
219626
+ new Qt({
219627
+ key: new rn("pageBreakPlugin"),
219600
219628
  props: {
219601
219629
  handleClick: (e, t, n) => {
219602
219630
  if (n.target.classList.contains("remove-page-break-icon")) {
@@ -220067,7 +220095,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220067
220095
  onCopyHeadingLink: A
220068
220096
  }) => {
220069
220097
  var he, me;
220070
- const [C] = Re(new kl()), [D, T] = Re(null), I = Xe(null), B = (ee) => {
220098
+ const [C] = Re(new kl()), [D, T] = Re(null), I = et(null), B = (ee) => {
220071
220099
  if (!I.current) return;
220072
220100
  const ue = I.current.querySelector(`input#${ee}`);
220073
220101
  ue && ue.scrollIntoView({
@@ -220109,7 +220137,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220109
220137
  })
220110
220138
  ]);
220111
220139
  }, [e]);
220112
- const _ = Xe(!1), [G, Z] = Re(!0), [Q, K] = Re([]), ne = (ee, ue, be) => {
220140
+ const _ = et(!1), [G, Z] = Re(!0), [Q, K] = Re([]), ne = (ee, ue, be) => {
220113
220141
  let Te = !1;
220114
220142
  return ee.doc.nodesBetween(ue, be, ($e) => {
220115
220143
  $e.marks && $e.marks.some(
@@ -220141,7 +220169,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220141
220169
  }
220142
220170
  }, ce = (ee, ue, be) => {
220143
220171
  le(ee, be);
220144
- }, pe = It(() => U, [U]), X = Xe(null), de = OP(
220172
+ }, pe = It(() => U, [U]), X = et(null), de = OP(
220145
220173
  {
220146
220174
  extensions: pe,
220147
220175
  editorProps: {
@@ -220191,7 +220219,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220191
220219
  return () => clearTimeout(ee);
220192
220220
  }
220193
220221
  }, [b, G, t, de == null ? void 0 : de.isEmpty]);
220194
- const Fe = Xe(() => {
220222
+ const Fe = et(() => {
220195
220223
  }), Ie = (ee, ue = !1) => {
220196
220224
  if (!n || !r)
220197
220225
  throw new Error("docId or username is not provided");
@@ -220214,11 +220242,11 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220214
220242
  ]), Fe.current = () => {
220215
220243
  be.destroy(), C.destroy();
220216
220244
  }, Fe.current;
220217
- }, Le = Xe(null);
220245
+ }, Le = et(null);
220218
220246
  Pe(() => {
220219
220247
  de == null || de.setEditable(!e);
220220
220248
  }, [e, de]);
220221
- const Me = Xe(null), Se = async () => {
220249
+ const Me = et(null), Se = async () => {
220222
220250
  const ee = Me.current;
220223
220251
  if (ee && await ee.destroy(), g && h) {
220224
220252
  const ue = new HKt(h, C);
@@ -220363,7 +220391,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220363
220391
  de.off("paste", ee);
220364
220392
  };
220365
220393
  }, [de]);
220366
- const re = Xe(localStorage.getItem("theme") !== null), fe = Xe(!1);
220394
+ const re = et(localStorage.getItem("theme") !== null), fe = et(!1);
220367
220395
  return Pe(() => {
220368
220396
  if (!(!de || G || !re.current || fe.current))
220369
220397
  if (t) {
@@ -220700,7 +220728,7 @@ const ZKt = async (e) => {
220700
220728
  currentSlide: t,
220701
220729
  setCurrentSlide: n
220702
220730
  }) => {
220703
- const r = Xe({}), o = Xe(null), { isNativeMobile: i } = xl(), a = Xo("(max-width: 1279px)");
220731
+ const r = et({}), o = et(null), { isNativeMobile: i } = xl(), a = Xo("(max-width: 1279px)");
220704
220732
  return Pe(() => {
220705
220733
  var s;
220706
220734
  !a && r.current[t] && ((s = r.current[t]) == null || s.scrollIntoView({
@@ -222044,7 +222072,7 @@ Coe.displayName = "ToCItem";
222044
222072
  const Eoe = f2(() => /* @__PURE__ */ M.jsx("div", { className: "p-4 text-center text-body-sm color-text-secondary select-none", children: /* @__PURE__ */ M.jsx("p", { children: "Start editing your document to see the outline." }) }));
222045
222073
  Eoe.displayName = "ToCEmptyState";
222046
222074
  const Aoe = f2(({ items: e = [], editor: t, setItems: n }) => {
222047
- const [r, o] = Re(null), i = Xo("(max-width: 1280px)"), a = Xe(null), s = Xe(0), { collapsedHeadings: l, setCollapsedHeadings: u, expandMultipleHeadings: c } = Hte(), d = It(() => e.map((m) => ({
222075
+ const [r, o] = Re(null), i = Xo("(max-width: 1280px)"), a = et(null), s = et(0), { collapsedHeadings: l, setCollapsedHeadings: u, expandMultipleHeadings: c } = Hte(), d = It(() => e.map((m) => ({
222048
222076
  ...m,
222049
222077
  isActive: m.id === r
222050
222078
  })), [e, r]), f = Ze(() => {
@@ -222298,7 +222326,7 @@ const kz = ke.memo(Aoe), gYt = ({
222298
222326
  onCopyHeadingLink: $e,
222299
222327
  footerHeight: at
222300
222328
  }, Ct) => {
222301
- const [we, qe] = Re(!1), [Ce, Je] = Re(!1), tt = Xe(null), Be = Xo("(min-width: 1500px)"), nt = Xo("(min-width: 3000px)"), { isNativeMobile: pt, isIOS: dt } = xl(), [Rt, qt] = Re(!1), wt = Xe(null), rn = (w == null ? void 0 : w.slice(0, 4)) || [], vn = w ? Math.max(0, w.length - 4) : 0;
222329
+ const [we, qe] = Re(!1), [Ce, Je] = Re(!1), tt = et(null), Be = Xo("(min-width: 1500px)"), nt = Xo("(min-width: 3000px)"), { isNativeMobile: pt, isIOS: dt } = xl(), [Rt, qt] = Re(!1), wt = et(null), on = (w == null ? void 0 : w.slice(0, 4)) || [], vn = w ? Math.max(0, w.length - 4) : 0;
222302
222330
  $M(wt, () => {
222303
222331
  qt(!1);
222304
222332
  }), Pe(() => {
@@ -222576,7 +222604,7 @@ const kz = ke.memo(Aoe), gYt = ({
222576
222604
  { "pt-12": e }
222577
222605
  ),
222578
222606
  children: [
222579
- rn.map((Ne, oe) => /* @__PURE__ */ M.jsx(
222607
+ on.map((Ne, oe) => /* @__PURE__ */ M.jsx(
222580
222608
  Gp,
222581
222609
  {
222582
222610
  style: { backgroundColor: Ne == null ? void 0 : Ne.color },
@@ -222805,7 +222833,7 @@ const kz = ke.memo(Aoe), gYt = ({
222805
222833
  className: k,
222806
222834
  unFocused: v
222807
222835
  }, x) => {
222808
- const [w, F] = Re(!1), A = Xe(null), C = (m == null ? void 0 : m.slice(0, 4)) || [], D = m ? Math.max(0, m.length - 4) : 0;
222836
+ const [w, F] = Re(!1), A = et(null), C = (m == null ? void 0 : m.slice(0, 4)) || [], D = m ? Math.max(0, m.length - 4) : 0;
222809
222837
  $M(A, () => {
222810
222838
  F(!1);
222811
222839
  }), Pe(() => {