@fileverse-dev/ddoc 2.2.8-reminder-1 → 2.2.8-reminder-2

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.
@@ -3751,7 +3751,7 @@ class lo {
3751
3751
  return O5[t] = n, n.prototype.jsonID = t, n;
3752
3752
  }
3753
3753
  }
3754
- class br {
3754
+ class xr {
3755
3755
  /**
3756
3756
  @internal
3757
3757
  */
@@ -3762,13 +3762,13 @@ class br {
3762
3762
  Create a successful step result.
3763
3763
  */
3764
3764
  static ok(t) {
3765
- return new br(t, null);
3765
+ return new xr(t, null);
3766
3766
  }
3767
3767
  /**
3768
3768
  Create a failed step result.
3769
3769
  */
3770
3770
  static fail(t) {
3771
- return new br(null, t);
3771
+ return new xr(null, t);
3772
3772
  }
3773
3773
  /**
3774
3774
  Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
@@ -3777,10 +3777,10 @@ class br {
3777
3777
  */
3778
3778
  static fromReplace(t, n, r, o) {
3779
3779
  try {
3780
- return br.ok(t.replace(n, r, o));
3780
+ return xr.ok(t.replace(n, r, o));
3781
3781
  } catch (i) {
3782
3782
  if (i instanceof oy)
3783
- return br.fail(i.message);
3783
+ return xr.fail(i.message);
3784
3784
  throw i;
3785
3785
  }
3786
3786
  }
@@ -3802,7 +3802,7 @@ class mu extends lo {
3802
3802
  }
3803
3803
  apply(t) {
3804
3804
  let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new tt(oF(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
- return br.fromReplace(t, this.from, this.to, i);
3805
+ return xr.fromReplace(t, this.from, this.to, i);
3806
3806
  }
3807
3807
  invert() {
3808
3808
  return new $a(this.from, this.to, this.mark);
@@ -3841,7 +3841,7 @@ class $a extends lo {
3841
3841
  }
3842
3842
  apply(t) {
3843
3843
  let n = t.slice(this.from, this.to), r = new tt(oF(n.content, (o) => o.mark(this.mark.removeFromSet(o.marks)), t), n.openStart, n.openEnd);
3844
- return br.fromReplace(t, this.from, this.to, r);
3844
+ return xr.fromReplace(t, this.from, this.to, r);
3845
3845
  }
3846
3846
  invert() {
3847
3847
  return new mu(this.from, this.to, this.mark);
@@ -3881,9 +3881,9 @@ class gu extends lo {
3881
3881
  apply(t) {
3882
3882
  let n = t.nodeAt(this.pos);
3883
3883
  if (!n)
3884
- return br.fail("No node at mark step's position");
3884
+ return xr.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 br.fromReplace(t, this.pos, this.pos + 1, new tt(Re.from(r), 0, n.isLeaf ? 0 : 1));
3886
+ return xr.fromReplace(t, this.pos, this.pos + 1, new tt(Re.from(r), 0, n.isLeaf ? 0 : 1));
3887
3887
  }
3888
3888
  invert(t) {
3889
3889
  let n = t.nodeAt(this.pos);
@@ -3925,9 +3925,9 @@ class u1 extends lo {
3925
3925
  apply(t) {
3926
3926
  let n = t.nodeAt(this.pos);
3927
3927
  if (!n)
3928
- return br.fail("No node at mark step's position");
3928
+ return xr.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 br.fromReplace(t, this.pos, this.pos + 1, new tt(Re.from(r), 0, n.isLeaf ? 0 : 1));
3930
+ return xr.fromReplace(t, this.pos, this.pos + 1, new tt(Re.from(r), 0, n.isLeaf ? 0 : 1));
3931
3931
  }
3932
3932
  invert(t) {
3933
3933
  let n = t.nodeAt(this.pos);
@@ -3964,7 +3964,7 @@ class Tr extends lo {
3964
3964
  super(), this.from = t, this.to = n, this.slice = r, this.structure = o;
3965
3965
  }
3966
3966
  apply(t) {
3967
- return this.structure && p9(t, this.from, this.to) ? br.fail("Structure replace would overwrite content") : br.fromReplace(t, this.from, this.to, this.slice);
3967
+ return this.structure && p9(t, this.from, this.to) ? xr.fail("Structure replace would overwrite content") : xr.fromReplace(t, this.from, this.to, this.slice);
3968
3968
  }
3969
3969
  getMap() {
3970
3970
  return new ui([this.from, this.to - this.from, this.slice.size]);
@@ -4014,12 +4014,12 @@ class Ir extends lo {
4014
4014
  }
4015
4015
  apply(t) {
4016
4016
  if (this.structure && (p9(t, this.from, this.gapFrom) || p9(t, this.gapTo, this.to)))
4017
- return br.fail("Structure gap-replace would overwrite content");
4017
+ return xr.fail("Structure gap-replace would overwrite content");
4018
4018
  let n = t.slice(this.gapFrom, this.gapTo);
4019
4019
  if (n.openStart || n.openEnd)
4020
- return br.fail("Gap is not a flat range");
4020
+ return xr.fail("Gap is not a flat range");
4021
4021
  let r = this.slice.insertAt(this.insert, n.content);
4022
- return r ? br.fromReplace(t, this.from, this.to, r) : br.fail("Content does not fit in gap");
4022
+ return r ? xr.fromReplace(t, this.from, this.to, r) : xr.fail("Content does not fit in gap");
4023
4023
  }
4024
4024
  getMap() {
4025
4025
  return new ui([
@@ -4655,13 +4655,13 @@ class Vd extends lo {
4655
4655
  apply(t) {
4656
4656
  let n = t.nodeAt(this.pos);
4657
4657
  if (!n)
4658
- return br.fail("No node at attribute step's position");
4658
+ return xr.fail("No node at attribute step's position");
4659
4659
  let r = /* @__PURE__ */ Object.create(null);
4660
4660
  for (let i in n.attrs)
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 br.fromReplace(t, this.pos, this.pos + 1, new tt(Re.from(o), 0, n.isLeaf ? 0 : 1));
4664
+ return xr.fromReplace(t, this.pos, this.pos + 1, new tt(Re.from(o), 0, n.isLeaf ? 0 : 1));
4665
4665
  }
4666
4666
  getMap() {
4667
4667
  return ui.empty;
@@ -4696,7 +4696,7 @@ class tp extends lo {
4696
4696
  n[o] = t.attrs[o];
4697
4697
  n[this.attr] = this.value;
4698
4698
  let r = t.type.create(n, t.content, t.marks);
4699
- return br.ok(r);
4699
+ return xr.ok(r);
4700
4700
  }
4701
4701
  getMap() {
4702
4702
  return ui.empty;
@@ -8229,7 +8229,7 @@ class cy {
8229
8229
  }
8230
8230
  map(t, n, r, o) {
8231
8231
  let { pos: i, deleted: a } = t.mapResult(n.from + o, this.side < 0 ? -1 : 1);
8232
- return a ? null : new ur(i - r, i - r, this);
8232
+ return a ? null : new cr(i - r, i - r, this);
8233
8233
  }
8234
8234
  valid() {
8235
8235
  return !0;
@@ -8247,7 +8247,7 @@ class Eu {
8247
8247
  }
8248
8248
  map(t, n, r, o) {
8249
8249
  let i = t.map(n.from + o, this.spec.inclusiveStart ? -1 : 1) - r, a = t.map(n.to + o, this.spec.inclusiveEnd ? 1 : -1) - r;
8250
- return i >= a ? null : new ur(i, a, this);
8250
+ return i >= a ? null : new cr(i, a, this);
8251
8251
  }
8252
8252
  valid(t, n) {
8253
8253
  return n.from < n.to;
@@ -8270,7 +8270,7 @@ class yF {
8270
8270
  if (i.deleted)
8271
8271
  return null;
8272
8272
  let a = t.mapResult(n.to + o, -1);
8273
- return a.deleted || a.pos <= i.pos ? null : new ur(i.pos - r, a.pos - r, this);
8273
+ return a.deleted || a.pos <= i.pos ? null : new cr(i.pos - r, a.pos - r, this);
8274
8274
  }
8275
8275
  valid(t, n) {
8276
8276
  let { index: r, offset: o } = t.content.findIndex(n.from), i;
@@ -8282,7 +8282,7 @@ class yF {
8282
8282
  destroy() {
8283
8283
  }
8284
8284
  }
8285
- class ur {
8285
+ class cr {
8286
8286
  /**
8287
8287
  @internal
8288
8288
  */
@@ -8293,7 +8293,7 @@ class ur {
8293
8293
  @internal
8294
8294
  */
8295
8295
  copy(t, n) {
8296
- return new ur(t, n, this.type);
8296
+ return new cr(t, n, this.type);
8297
8297
  }
8298
8298
  /**
8299
8299
  @internal
@@ -8316,14 +8316,14 @@ class ur {
8316
8316
  widget's current document position.
8317
8317
  */
8318
8318
  static widget(t, n, r) {
8319
- return new ur(t, t, new cy(n, r));
8319
+ return new cr(t, t, new cy(n, r));
8320
8320
  }
8321
8321
  /**
8322
8322
  Creates an inline decoration, which adds the given attributes to
8323
8323
  each inline node between `from` and `to`.
8324
8324
  */
8325
8325
  static inline(t, n, r, o) {
8326
- return new ur(t, n, new Eu(r, o));
8326
+ return new cr(t, n, new Eu(r, o));
8327
8327
  }
8328
8328
  /**
8329
8329
  Creates a node decoration. `from` and `to` should point precisely
@@ -8331,7 +8331,7 @@ class ur {
8331
8331
  node, will receive the given attributes.
8332
8332
  */
8333
8333
  static node(t, n, r, o) {
8334
- return new ur(t, n, new yF(r, o));
8334
+ return new cr(t, n, new yF(r, o));
8335
8335
  }
8336
8336
  /**
8337
8337
  The spec provided when creating this decoration. Can be useful
@@ -8641,7 +8641,7 @@ function tH(e, t) {
8641
8641
  let n = [];
8642
8642
  for (let r = 0; r < e.length; r++) {
8643
8643
  let o = e[r];
8644
- n.push(new ur(o.from + t, o.to + t, o.type));
8644
+ n.push(new cr(o.from + t, o.to + t, o.type));
8645
8645
  }
8646
8646
  return n;
8647
8647
  }
@@ -9455,12 +9455,12 @@ function cS(e) {
9455
9455
  if (typeof n == "function" && (n = n(e.state)), n)
9456
9456
  for (let r in n)
9457
9457
  r == "class" ? t.class += " " + n[r] : r == "style" ? t.style = (t.style ? t.style + ";" : "") + n[r] : !t[r] && r != "contenteditable" && r != "nodeName" && (t[r] = String(n[r]));
9458
- }), t.translate || (t.translate = "no"), [ur.node(0, e.state.doc.content.size, t)];
9458
+ }), t.translate || (t.translate = "no"), [cr.node(0, e.state.doc.content.size, t)];
9459
9459
  }
9460
9460
  function dS(e) {
9461
9461
  if (e.markCursor) {
9462
9462
  let t = document.createElement("img");
9463
- t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco: ur.widget(e.state.selection.from, t, { raw: !0, marks: e.markCursor }) };
9463
+ t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco: cr.widget(e.state.selection.from, t, { raw: !0, marks: e.markCursor }) };
9464
9464
  } else
9465
9465
  e.cursorWrapper = null;
9466
9466
  }
@@ -10564,7 +10564,7 @@ function Mb(e, t) {
10564
10564
  ng(t[r]) && ng(e[r]) ? n[r] = Mb(e[r], t[r]) : n[r] = t[r];
10565
10565
  }), n;
10566
10566
  }
10567
- class hr {
10567
+ class pr {
10568
10568
  constructor(t = {}) {
10569
10569
  this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
10570
10570
  name: this.name,
@@ -10580,7 +10580,7 @@ class hr {
10580
10580
  })) || {};
10581
10581
  }
10582
10582
  static create(t = {}) {
10583
- return new hr(t);
10583
+ return new pr(t);
10584
10584
  }
10585
10585
  configure(t = {}) {
10586
10586
  const n = this.extend({
@@ -10590,7 +10590,7 @@ class hr {
10590
10590
  return n.name = this.name, n.parent = this.parent, n;
10591
10591
  }
10592
10592
  extend(t = {}) {
10593
- const n = new hr(t);
10593
+ const n = new pr(t);
10594
10594
  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 = Kt(pt(n, "addOptions", {
10595
10595
  name: n.name
10596
10596
  })), n.storage = Kt(pt(n, "addStorage", {
@@ -10808,7 +10808,7 @@ class Dd {
10808
10808
  type: Y5(a.name, this.schema)
10809
10809
  }, l = [], u = pt(a, "addKeyboardShortcuts", s);
10810
10810
  let c = {};
10811
- if (a.type === "mark" && pt(a, "exitable", s) && (c.ArrowRight = () => hr.handleExit({ editor: t, mark: a })), u) {
10811
+ if (a.type === "mark" && pt(a, "exitable", s) && (c.ArrowRight = () => pr.handleExit({ editor: t, mark: a })), u) {
10812
10812
  const m = Object.fromEntries(Object.entries(u()).map(([g, b]) => [g, () => b({ editor: t })]));
10813
10813
  c = { ...c, ...m };
10814
10814
  }
@@ -56654,7 +56654,7 @@ function PZ(...e) {
56654
56654
  return L.useCallback(Dmt(...e), e);
56655
56655
  }
56656
56656
  const HZ = /* @__PURE__ */ new WeakMap();
56657
- function kr(e, t, n = !1) {
56657
+ function wr(e, t, n = !1) {
56658
56658
  if (!e || !(e instanceof HTMLElement)) return;
56659
56659
  let r = {};
56660
56660
  Object.entries(t).forEach(([o, i]) => {
@@ -56670,7 +56670,7 @@ function Smt(e, t) {
56670
56670
  let n = HZ.get(e);
56671
56671
  n && (e.style[t] = n[t]);
56672
56672
  }
56673
- const mr = (e) => {
56673
+ const gr = (e) => {
56674
56674
  switch (e) {
56675
56675
  case "top":
56676
56676
  case "bottom":
@@ -56690,7 +56690,7 @@ function kg(e, t) {
56690
56690
  n.transform || n.webkitTransform || n.mozTransform
56691
56691
  );
56692
56692
  let o = r.match(/^matrix3d\((.+)\)$/);
56693
- return o ? parseFloat(o[1].split(", ")[mr(t) ? 13 : 12]) : (o = r.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[mr(t) ? 5 : 4]) : null);
56693
+ return o ? parseFloat(o[1].split(", ")[gr(t) ? 13 : 12]) : (o = r.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[gr(t) ? 5 : 4]) : null);
56694
56694
  }
56695
56695
  function Tmt(e) {
56696
56696
  return 8 * (Math.log(e + 1) - 2);
@@ -56798,7 +56798,7 @@ function Rmt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
56798
56798
  return (j = n == null ? void 0 : n.map((D) => {
56799
56799
  const T = typeof D == "string";
56800
56800
  let I = 0;
56801
- if (T && (I = parseInt(D, 10)), mr(s)) {
56801
+ if (T && (I = parseInt(D, 10)), gr(s)) {
56802
56802
  const W = T ? I : f ? D * E.height : 0;
56803
56803
  return f ? s === "bottom" ? E.height - W : -E.height + W : W;
56804
56804
  }
@@ -56815,13 +56815,13 @@ function Rmt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
56815
56815
  ]), v = ke.useCallback((E) => {
56816
56816
  var j;
56817
56817
  const D = (j = b == null ? void 0 : b.findIndex((T) => T === E)) != null ? j : null;
56818
- a(D), kr(r.current, {
56818
+ a(D), wr(r.current, {
56819
56819
  transition: `transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
56820
- transform: mr(s) ? `translate3d(0, ${E}px, 0)` : `translate3d(${E}px, 0, 0)`
56821
- }), b && D !== b.length - 1 && i !== void 0 && D !== i && D < i ? kr(o.current, {
56820
+ transform: gr(s) ? `translate3d(0, ${E}px, 0)` : `translate3d(${E}px, 0, 0)`
56821
+ }), b && D !== b.length - 1 && i !== void 0 && D !== i && D < i ? wr(o.current, {
56822
56822
  transition: `opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
56823
56823
  opacity: "0"
56824
- }) : kr(o.current, {
56824
+ }) : wr(o.current, {
56825
56825
  transition: `opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
56826
56826
  opacity: "1"
56827
56827
  }), d(n == null ? void 0 : n[Math.max(D, 0)]);
@@ -56849,7 +56849,7 @@ function Rmt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
56849
56849
  function x({ draggedDistance: E, closeDrawer: j, velocity: D, dismissible: T }) {
56850
56850
  if (i === void 0) return;
56851
56851
  const I = s === "bottom" || s === "right" ? (k ?? 0) - E : (k ?? 0) + E, B = m === i - 1, W = m === 0, q = E > 0;
56852
- if (B && kr(o.current, {
56852
+ if (B && wr(o.current, {
56853
56853
  transition: `opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`
56854
56854
  }), !u && D > 2 && !q) {
56855
56855
  T ? j() : v(b[0]);
@@ -56859,7 +56859,7 @@ function Rmt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
56859
56859
  v(b[n.length - 1]);
56860
56860
  return;
56861
56861
  }
56862
- const G = b == null ? void 0 : b.reduce((R, H) => typeof R != "number" || typeof H != "number" ? R : Math.abs(H - I) < Math.abs(R - I) ? H : R), P = mr(s) ? window.innerHeight : window.innerWidth;
56862
+ const G = b == null ? void 0 : b.reduce((R, H) => typeof R != "number" || typeof H != "number" ? R : Math.abs(H - I) < Math.abs(R - I) ? H : R), P = gr(s) ? window.innerHeight : window.innerWidth;
56863
56863
  if (D > qZ && Math.abs(E) < P * 0.4) {
56864
56864
  const R = q ? 1 : -1;
56865
56865
  if (R > 0 && p && n) {
@@ -56875,8 +56875,8 @@ function Rmt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
56875
56875
  function w({ draggedDistance: E }) {
56876
56876
  if (k === null) return;
56877
56877
  const j = s === "bottom" || s === "right" ? k - E : k + E;
56878
- (s === "bottom" || s === "right") && j < b[b.length - 1] || (s === "top" || s === "left") && j > b[b.length - 1] || kr(r.current, {
56879
- transform: mr(s) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
56878
+ (s === "bottom" || s === "right") && j < b[b.length - 1] || (s === "top" || s === "left") && j > b[b.length - 1] || wr(r.current, {
56879
+ transform: gr(s) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
56880
56880
  });
56881
56881
  }
56882
56882
  function M(E, j) {
@@ -56916,7 +56916,7 @@ function zmt() {
56916
56916
  Lmt(r && !o ? Rx(document.body, {
56917
56917
  background: "black"
56918
56918
  }) : Bmt, Rx(l, {
56919
- transformOrigin: mr(e) ? "top" : "left",
56919
+ transformOrigin: gr(e) ? "top" : "left",
56920
56920
  transitionProperty: "transform, border-radius",
56921
56921
  transitionDuration: `${Vn.DURATION}s`,
56922
56922
  transitionTimingFunction: `cubic-bezier(${Vn.EASE.join(",")})`
@@ -56924,7 +56924,7 @@ function zmt() {
56924
56924
  const u = Rx(l, {
56925
56925
  borderRadius: `${VZ}px`,
56926
56926
  overflow: "hidden",
56927
- ...mr(e) ? {
56927
+ ...gr(e) ? {
56928
56928
  transform: `scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
56929
56929
  } : {
56930
56930
  transform: `scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
@@ -57055,7 +57055,7 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57055
57055
  var nt, bt;
57056
57056
  !c && !i || ee.current && !ee.current.contains(Be.target) || (J.current = ((nt = ee.current) == null ? void 0 : nt.getBoundingClientRect().height) || 0, $.current = ((bt = ee.current) == null ? void 0 : bt.getBoundingClientRect().width) || 0, Q(!0), fe.current = /* @__PURE__ */ new Date(), zZ() && window.addEventListener("touchend", () => we.current = !1, {
57057
57057
  once: !0
57058
- }), Be.target.setPointerCapture(Be.pointerId), Ne.current = mr(x) ? Be.pageY : Be.pageX);
57058
+ }), Be.target.setPointerCapture(Be.pointerId), Ne.current = gr(x) ? Be.pageY : Be.pageX);
57059
57059
  }
57060
57060
  function Me(Be, nt) {
57061
57061
  var bt;
@@ -57086,41 +57086,41 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57086
57086
  }
57087
57087
  function _e(Be) {
57088
57088
  if (ee.current && Z) {
57089
- const nt = x === "bottom" || x === "right" ? 1 : -1, bt = (Ne.current - (mr(x) ? Be.pageY : Be.pageX)) * nt, lt = bt > 0, Bt = i && !c && !lt;
57089
+ const nt = x === "bottom" || x === "right" ? 1 : -1, bt = (Ne.current - (gr(x) ? Be.pageY : Be.pageX)) * nt, lt = bt > 0, Bt = i && !c && !lt;
57090
57090
  if (Bt && A === 0) return;
57091
57091
  const Gt = Math.abs(bt), wt = document.querySelector("[data-vaul-drawer-wrapper]"), on = x === "bottom" || x === "top" ? J.current : $.current;
57092
57092
  let Sn = Gt / on;
57093
57093
  const Pn = me(Gt, lt);
57094
57094
  if (Pn !== null && (Sn = Pn), Bt && Sn >= 1 || !we.current && !Me(Be.target, lt)) return;
57095
- if (ee.current.classList.add(Bx), we.current = !0, kr(ee.current, {
57095
+ if (ee.current.classList.add(Bx), we.current = !0, wr(ee.current, {
57096
57096
  transition: "none"
57097
- }), kr(le.current, {
57097
+ }), wr(le.current, {
57098
57098
  transition: "none"
57099
57099
  }), i && de({
57100
57100
  draggedDistance: bt
57101
57101
  }), lt && !i) {
57102
57102
  const Hn = Tmt(bt), Er = Math.min(Hn * -1, 0) * nt;
57103
- kr(ee.current, {
57104
- transform: mr(x) ? `translate3d(0, ${Er}px, 0)` : `translate3d(${Er}px, 0, 0)`
57103
+ wr(ee.current, {
57104
+ transform: gr(x) ? `translate3d(0, ${Er}px, 0)` : `translate3d(${Er}px, 0, 0)`
57105
57105
  });
57106
57106
  return;
57107
57107
  }
57108
57108
  const ft = 1 - Sn;
57109
- if ((he || f && A === f - 1) && (r == null || r(Be, Sn), kr(le.current, {
57109
+ if ((he || f && A === f - 1) && (r == null || r(Be, Sn), wr(le.current, {
57110
57110
  opacity: `${ft}`,
57111
57111
  transition: "none"
57112
57112
  }, !0)), wt && le.current && a) {
57113
57113
  const Hn = Math.min(be() + Sn * (1 - be()), 1), Er = 8 - Sn * 8, So = Math.max(0, 14 - Sn * 14);
57114
- kr(wt, {
57114
+ wr(wt, {
57115
57115
  borderRadius: `${Er}px`,
57116
- transform: mr(x) ? `scale(${Hn}) translate3d(0, ${So}px, 0)` : `scale(${Hn}) translate3d(${So}px, 0, 0)`,
57116
+ transform: gr(x) ? `scale(${Hn}) translate3d(0, ${So}px, 0)` : `scale(${Hn}) translate3d(${So}px, 0, 0)`,
57117
57117
  transition: "none"
57118
57118
  }, !0);
57119
57119
  }
57120
57120
  if (!i) {
57121
57121
  const Hn = Gt * nt;
57122
- kr(ee.current, {
57123
- transform: mr(x) ? `translate3d(0, ${Hn}px, 0)` : `translate3d(${Hn}px, 0, 0)`
57122
+ wr(ee.current, {
57123
+ transform: gr(x) ? `translate3d(0, ${Hn}px, 0)` : `translate3d(${Hn}px, 0, 0)`
57124
57124
  });
57125
57125
  }
57126
57126
  }
@@ -57170,16 +57170,16 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57170
57170
  function jt() {
57171
57171
  if (!ee.current) return;
57172
57172
  const Be = document.querySelector("[data-vaul-drawer-wrapper]"), nt = kg(ee.current, x);
57173
- kr(ee.current, {
57173
+ wr(ee.current, {
57174
57174
  transform: "translate3d(0, 0, 0)",
57175
57175
  transition: `transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`
57176
- }), kr(le.current, {
57176
+ }), wr(le.current, {
57177
57177
  transition: `opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
57178
57178
  opacity: "1"
57179
- }), a && nt && nt > 0 && G && kr(Be, {
57179
+ }), a && nt && nt > 0 && G && wr(Be, {
57180
57180
  borderRadius: `${VZ}px`,
57181
57181
  overflow: "hidden",
57182
- ...mr(x) ? {
57182
+ ...gr(x) ? {
57183
57183
  transform: `scale(${be()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
57184
57184
  transformOrigin: "top"
57185
57185
  } : {
@@ -57199,7 +57199,7 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57199
57199
  ee.current.classList.remove(Bx), we.current = !1, Q(!1), X.current = /* @__PURE__ */ new Date();
57200
57200
  const nt = kg(ee.current, x);
57201
57201
  if (!Be || !Me(Be.target, !1) || !nt || Number.isNaN(nt) || fe.current === null) return;
57202
- const bt = X.current.getTime() - fe.current.getTime(), lt = Ne.current - (mr(x) ? Be.pageY : Be.pageX), Bt = Math.abs(lt) / bt;
57202
+ const bt = X.current.getTime() - fe.current.getTime(), lt = Ne.current - (gr(x) ? Be.pageY : Be.pageX), Bt = Math.abs(lt) / bt;
57203
57203
  if (Bt > 0.05 && (te(!0), setTimeout(() => {
57204
57204
  te(!1);
57205
57205
  }, 200)), i) {
@@ -57229,7 +57229,7 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57229
57229
  }
57230
57230
  o == null || o(Be, !0), jt();
57231
57231
  }
57232
- ke.useEffect(() => (G && (kr(document.documentElement, {
57232
+ ke.useEffect(() => (G && (wr(document.documentElement, {
57233
57233
  scrollBehavior: "auto"
57234
57234
  }), ue.current = /* @__PURE__ */ new Date()), () => {
57235
57235
  Smt(document.documentElement, "scrollBehavior");
@@ -57238,30 +57238,30 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57238
57238
  ]);
57239
57239
  function De(Be) {
57240
57240
  const nt = Be ? (window.innerWidth - wg) / window.innerWidth : 1, bt = Be ? -16 : 0;
57241
- xe.current && window.clearTimeout(xe.current), kr(ee.current, {
57241
+ xe.current && window.clearTimeout(xe.current), wr(ee.current, {
57242
57242
  transition: `transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
57243
- transform: mr(x) ? `scale(${nt}) translate3d(0, ${bt}px, 0)` : `scale(${nt}) translate3d(${bt}px, 0, 0)`
57243
+ transform: gr(x) ? `scale(${nt}) translate3d(0, ${bt}px, 0)` : `scale(${nt}) translate3d(${bt}px, 0, 0)`
57244
57244
  }), !Be && ee.current && (xe.current = setTimeout(() => {
57245
57245
  const lt = kg(ee.current, x);
57246
- kr(ee.current, {
57246
+ wr(ee.current, {
57247
57247
  transition: "none",
57248
- transform: mr(x) ? `translate3d(0, ${lt}px, 0)` : `translate3d(${lt}px, 0, 0)`
57248
+ transform: gr(x) ? `translate3d(0, ${lt}px, 0)` : `translate3d(${lt}px, 0, 0)`
57249
57249
  });
57250
57250
  }, 500));
57251
57251
  }
57252
57252
  function Qe(Be, nt) {
57253
57253
  if (nt < 0) return;
57254
57254
  const bt = (window.innerWidth - wg) / window.innerWidth, lt = bt + nt * (1 - bt), Bt = -16 + nt * wg;
57255
- kr(ee.current, {
57256
- transform: mr(x) ? `scale(${lt}) translate3d(0, ${Bt}px, 0)` : `scale(${lt}) translate3d(${Bt}px, 0, 0)`,
57255
+ wr(ee.current, {
57256
+ transform: gr(x) ? `scale(${lt}) translate3d(0, ${Bt}px, 0)` : `scale(${lt}) translate3d(${Bt}px, 0, 0)`,
57257
57257
  transition: "none"
57258
57258
  });
57259
57259
  }
57260
57260
  function Ze(Be, nt) {
57261
- const bt = mr(x) ? window.innerHeight : window.innerWidth, lt = nt ? (bt - wg) / bt : 1, Bt = nt ? -16 : 0;
57262
- nt && kr(ee.current, {
57261
+ const bt = gr(x) ? window.innerHeight : window.innerWidth, lt = nt ? (bt - wg) / bt : 1, Bt = nt ? -16 : 0;
57262
+ nt && wr(ee.current, {
57263
57263
  transition: `transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
57264
- transform: mr(x) ? `scale(${lt}) translate3d(0, ${Bt}px, 0)` : `scale(${lt}) translate3d(${Bt}px, 0, 0)`
57264
+ transform: gr(x) ? `scale(${lt}) translate3d(0, ${Bt}px, 0)` : `scale(${lt}) translate3d(${Bt}px, 0, 0)`
57265
57265
  });
57266
57266
  }
57267
57267
  return ke.useEffect(() => {
@@ -58369,7 +58369,7 @@ const dgt = ({
58369
58369
  ) })
58370
58370
  );
58371
58371
  um.displayName = fG.displayName;
58372
- const gr = ({
58372
+ const lr = ({
58373
58373
  content: e,
58374
58374
  anchorTrigger: t,
58375
58375
  className: n,
@@ -76156,10 +76156,10 @@ function nK() {
76156
76156
  var e = PY();
76157
76157
  return e === F0.PREVIEW;
76158
76158
  }
76159
- var yr;
76159
+ var br;
76160
76160
  (function(e) {
76161
76161
  e.ArrowDown = "ArrowDown", e.ArrowUp = "ArrowUp", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.Escape = "Escape", e.Enter = "Enter", e.Space = " ";
76162
- })(yr || (yr = {}));
76162
+ })(br || (br = {}));
76163
76163
  function cyt() {
76164
76164
  dyt(), fyt(), hyt(), pyt(), myt();
76165
76165
  }
@@ -76168,7 +76168,7 @@ function dyt() {
76168
76168
  return function(u) {
76169
76169
  var c = u.key;
76170
76170
  switch (a(), c) {
76171
- case yr.Escape:
76171
+ case br.Escape:
76172
76172
  if (u.preventDefault(), i()) {
76173
76173
  s();
76174
76174
  return;
@@ -76191,15 +76191,15 @@ function fyt() {
76191
76191
  return function(u) {
76192
76192
  var c = u.key;
76193
76193
  switch (c) {
76194
- case yr.ArrowRight:
76194
+ case br.ArrowRight:
76195
76195
  if (!s)
76196
76196
  return;
76197
76197
  u.preventDefault(), i(!0), e();
76198
76198
  break;
76199
- case yr.ArrowDown:
76199
+ case br.ArrowDown:
76200
76200
  u.preventDefault(), a();
76201
76201
  break;
76202
- case yr.Enter:
76202
+ case br.Enter:
76203
76203
  u.preventDefault(), U4t(n.current);
76204
76204
  break;
76205
76205
  }
@@ -76221,17 +76221,17 @@ function hyt() {
76221
76221
  var f = d.key;
76222
76222
  if (l)
76223
76223
  switch (f) {
76224
- case yr.ArrowLeft:
76224
+ case br.ArrowLeft:
76225
76225
  if (d.preventDefault(), !i)
76226
76226
  return t();
76227
76227
  tN(t);
76228
76228
  break;
76229
- case yr.ArrowRight:
76229
+ case br.ArrowRight:
76230
76230
  if (d.preventDefault(), !i)
76231
76231
  return t();
76232
76232
  nN();
76233
76233
  break;
76234
- case yr.ArrowDown:
76234
+ case br.ArrowDown:
76235
76235
  d.preventDefault(), i && a(!1), r();
76236
76236
  break;
76237
76237
  default:
@@ -76240,12 +76240,12 @@ function hyt() {
76240
76240
  }
76241
76241
  if (s)
76242
76242
  switch (f) {
76243
- case yr.ArrowUp:
76243
+ case br.ArrowUp:
76244
76244
  if (d.preventDefault(), !i)
76245
76245
  return t();
76246
76246
  tN(t);
76247
76247
  break;
76248
- case yr.ArrowDown:
76248
+ case br.ArrowDown:
76249
76249
  if (d.preventDefault(), !i)
76250
76250
  return t();
76251
76251
  nN();
@@ -76270,16 +76270,16 @@ function pyt() {
76270
76270
  return function(i) {
76271
76271
  var a = i.key;
76272
76272
  switch (a) {
76273
- case yr.ArrowUp:
76273
+ case br.ArrowUp:
76274
76274
  i.preventDefault(), e();
76275
76275
  break;
76276
- case yr.ArrowRight:
76276
+ case br.ArrowRight:
76277
76277
  i.preventDefault(), WY(Mp());
76278
76278
  break;
76279
- case yr.ArrowLeft:
76279
+ case br.ArrowLeft:
76280
76280
  i.preventDefault(), UY(Mp());
76281
76281
  break;
76282
- case yr.ArrowDown:
76282
+ case br.ArrowDown:
76283
76283
  i.preventDefault(), M6(n.current);
76284
76284
  break;
76285
76285
  default:
@@ -76303,27 +76303,27 @@ function myt() {
76303
76303
  function(s) {
76304
76304
  var l = s.key, u = pa(Mp());
76305
76305
  switch (l) {
76306
- case yr.ArrowRight:
76306
+ case br.ArrowRight:
76307
76307
  s.preventDefault(), G4t(u);
76308
76308
  break;
76309
- case yr.ArrowLeft:
76309
+ case br.ArrowLeft:
76310
76310
  s.preventDefault(), Z4t(u);
76311
76311
  break;
76312
- case yr.ArrowDown:
76312
+ case br.ArrowDown:
76313
76313
  if (s.preventDefault(), r()) {
76314
76314
  o();
76315
76315
  break;
76316
76316
  }
76317
76317
  K4t(u);
76318
76318
  break;
76319
- case yr.ArrowUp:
76319
+ case br.ArrowUp:
76320
76320
  if (s.preventDefault(), r()) {
76321
76321
  o();
76322
76322
  break;
76323
76323
  }
76324
76324
  Y4t(u, t);
76325
76325
  break;
76326
- case yr.Space:
76326
+ case br.Space:
76327
76327
  s.preventDefault(), n(s.target);
76328
76328
  break;
76329
76329
  default:
@@ -81860,7 +81860,7 @@ const m$ = (e) => KC(e).buffer, g$ = (e) => {
81860
81860
  if (n && n.add) {
81861
81861
  const { id: r, pos: o, content: i } = n.add, a = document.createElement("div");
81862
81862
  a.setAttribute("class", "img-placeholder"), a.textContent = i;
81863
- const s = ur.widget(o + 1, a, {
81863
+ const s = cr.widget(o + 1, a, {
81864
81864
  id: r
81865
81865
  });
81866
81866
  t = t.add(e.doc, [s]);
@@ -84670,7 +84670,7 @@ function y8t(e, { includeName: t }) {
84670
84670
  function ks(e, { strict: t = !0 } = {}) {
84671
84671
  return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
84672
84672
  }
84673
- function cr(e) {
84673
+ function dr(e) {
84674
84674
  return ks(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
84675
84675
  }
84676
84676
  const W$ = "2.28.0";
@@ -84801,7 +84801,7 @@ class x8t extends Ge {
84801
84801
  }
84802
84802
  class v8t extends Ge {
84803
84803
  constructor({ expectedSize: t, value: n }) {
84804
- super(`Size of bytes "${n}" (bytes${cr(n)}) does not match expected size (bytes${t}).`, { name: "AbiEncodingBytesSizeMismatchError" });
84804
+ super(`Size of bytes "${n}" (bytes${dr(n)}) does not match expected size (bytes${t}).`, { name: "AbiEncodingBytesSizeMismatchError" });
84805
84805
  }
84806
84806
  }
84807
84807
  class k8t extends Ge {
@@ -85112,9 +85112,9 @@ function Xc(e, { dir: t = "left" } = {}) {
85112
85112
  return n = t === "left" ? n.slice(r) : n.slice(0, n.length - r), typeof e == "string" ? (n.length === 1 && t === "right" && (n = `${n}0`), `0x${n.length % 2 === 1 ? `0${n}` : n}`) : n;
85113
85113
  }
85114
85114
  function La(e, { size: t }) {
85115
- if (cr(e) > t)
85115
+ if (dr(e) > t)
85116
85116
  throw new I8t({
85117
- givenSize: cr(e),
85117
+ givenSize: dr(e),
85118
85118
  maxSize: t
85119
85119
  });
85120
85120
  }
@@ -85540,19 +85540,19 @@ function D0(e, t, n, { strict: r } = {}) {
85540
85540
  });
85541
85541
  }
85542
85542
  function uJ(e, t) {
85543
- if (typeof t == "number" && t > 0 && t > cr(e) - 1)
85543
+ if (typeof t == "number" && t > 0 && t > dr(e) - 1)
85544
85544
  throw new Q$({
85545
85545
  offset: t,
85546
85546
  position: "start",
85547
- size: cr(e)
85547
+ size: dr(e)
85548
85548
  });
85549
85549
  }
85550
85550
  function cJ(e, t, n) {
85551
- if (typeof t == "number" && typeof n == "number" && cr(e) !== n - t)
85551
+ if (typeof t == "number" && typeof n == "number" && dr(e) !== n - t)
85552
85552
  throw new Q$({
85553
85553
  offset: n,
85554
85554
  position: "end",
85555
- size: cr(e)
85555
+ size: dr(e)
85556
85556
  });
85557
85557
  }
85558
85558
  function dJ(e, t, n, { strict: r } = {}) {
@@ -85617,13 +85617,13 @@ function lE(e) {
85617
85617
  let t = 0;
85618
85618
  for (let i = 0; i < e.length; i++) {
85619
85619
  const { dynamic: a, encoded: s } = e[i];
85620
- a ? t += 32 : t += cr(s);
85620
+ a ? t += 32 : t += dr(s);
85621
85621
  }
85622
85622
  const n = [], r = [];
85623
85623
  let o = 0;
85624
85624
  for (let i = 0; i < e.length; i++) {
85625
85625
  const { dynamic: a, encoded: s } = e[i];
85626
- a ? (n.push(Nt(t + o, { size: 32 })), r.push(s), o += cr(s)) : n.push(s);
85626
+ a ? (n.push(Nt(t + o, { size: 32 })), r.push(s), o += dr(s)) : n.push(s);
85627
85627
  }
85628
85628
  return Fl([...n, ...r]);
85629
85629
  }
@@ -85666,7 +85666,7 @@ function x9t(e, { length: t, param: n }) {
85666
85666
  };
85667
85667
  }
85668
85668
  function v9t(e, { param: t }) {
85669
- const [, n] = t.type.split("bytes"), r = cr(e);
85669
+ const [, n] = t.type.split("bytes"), r = dr(e);
85670
85670
  if (!n) {
85671
85671
  let o = e;
85672
85672
  return r % 32 !== 0 && (o = Au(o, {
@@ -85710,7 +85710,7 @@ function w9t(e, { signed: t, size: n = 256 }) {
85710
85710
  };
85711
85711
  }
85712
85712
  function F9t(e) {
85713
- const t = Ip(e), n = Math.ceil(cr(t) / 32), r = [];
85713
+ const t = Ip(e), n = Math.ceil(dr(t) / 32), r = [];
85714
85714
  for (let o = 0; o < n; o++)
85715
85715
  r.push(Au(D0(t, o * 32, (o + 1) * 32), {
85716
85716
  dir: "right"
@@ -85718,7 +85718,7 @@ function F9t(e) {
85718
85718
  return {
85719
85719
  dynamic: !0,
85720
85720
  encoded: Fl([
85721
- Au(Nt(cr(t), { size: 32 })),
85721
+ Au(Nt(dr(t), { size: 32 })),
85722
85722
  ...r
85723
85723
  ])
85724
85724
  };
@@ -86100,13 +86100,13 @@ function T9t(e, t = {}) {
86100
86100
  }
86101
86101
  function Em(e, t) {
86102
86102
  const n = typeof t == "string" ? Ma(t) : t, r = cE(n);
86103
- if (cr(n) === 0 && e.length > 0)
86103
+ if (dr(n) === 0 && e.length > 0)
86104
86104
  throw new wm();
86105
- if (cr(t) && cr(t) < 32)
86105
+ if (dr(t) && dr(t) < 32)
86106
86106
  throw new Z$({
86107
86107
  data: typeof t == "string" ? t : Mr(t),
86108
86108
  params: e,
86109
- size: cr(t)
86109
+ size: dr(t)
86110
86110
  });
86111
86111
  let o = 0;
86112
86112
  const i = [];
@@ -87912,7 +87912,7 @@ class Dkt extends Ge {
87912
87912
  }
87913
87913
  }
87914
87914
  function Skt(e) {
87915
- const t = typeof e.data == "string" ? Ma(e.data) : e.data, n = cr(t);
87915
+ const t = typeof e.data == "string" ? Ma(e.data) : e.data, n = dr(t);
87916
87916
  if (!n)
87917
87917
  throw new Dkt();
87918
87918
  if (n > nI)
@@ -88208,7 +88208,7 @@ function kE(e) {
88208
88208
  abiItem: l,
88209
88209
  data: n,
88210
88210
  params: p,
88211
- size: cr(n)
88211
+ size: dr(n)
88212
88212
  }) : m;
88213
88213
  }
88214
88214
  else if (i)
@@ -88786,7 +88786,7 @@ async function V6(e, t) {
88786
88786
  });
88787
88787
  return Y === "0x" ? { data: void 0 } : { data: Y };
88788
88788
  } catch (G) {
88789
- const P = Wkt(G), { offchainLookup: R, offchainLookupSignature: H } = await import("./ccip-DQ7Ldw3z.mjs");
88789
+ const P = Wkt(G), { offchainLookup: R, offchainLookupSignature: H } = await import("./ccip-Dewn4Cla.mjs");
88790
88790
  if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === H && k)
88791
88791
  return { data: await R(e, { data: P, to: k }) };
88792
88792
  throw D && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new J9t({ factory: c }) : ZJ(G, {
@@ -90368,10 +90368,10 @@ function J7t(e) {
90368
90368
  const h = c.match(g9t);
90369
90369
  if (h) {
90370
90370
  const [m, g] = h;
90371
- if (g && cr(d) !== Number.parseInt(g))
90371
+ if (g && dr(d) !== Number.parseInt(g))
90372
90372
  throw new E8t({
90373
90373
  expectedSize: Number.parseInt(g),
90374
- givenSize: cr(d)
90374
+ givenSize: dr(d)
90375
90375
  });
90376
90376
  }
90377
90377
  const p = o[c];
@@ -90411,7 +90411,7 @@ function X7t(e) {
90411
90411
  const ewt = `Ethereum Signed Message:
90412
90412
  `;
90413
90413
  function twt(e) {
90414
- const t = typeof e == "string" ? Ip(e) : typeof e.raw == "string" ? e.raw : Mr(e.raw), n = Ip(`${ewt}${cr(t)}`);
90414
+ const t = typeof e == "string" ? Ip(e) : typeof e.raw == "string" ? e.raw : Mr(e.raw), n = Ip(`${ewt}${dr(t)}`);
90415
90415
  return Fl([n, t]);
90416
90416
  }
90417
90417
  function uQ(e, t) {
@@ -92017,7 +92017,7 @@ class SQ extends oE {
92017
92017
  const TQ = (e, t, n) => new SQ(e, t).update(n).digest();
92018
92018
  TQ.create = (e, t) => new SQ(e, t);
92019
92019
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
92020
- const Nr = BigInt(0), lr = BigInt(1), Ic = /* @__PURE__ */ BigInt(2), pFt = /* @__PURE__ */ BigInt(3), w7 = /* @__PURE__ */ BigInt(4), kI = /* @__PURE__ */ BigInt(5), wI = /* @__PURE__ */ BigInt(8);
92020
+ const Nr = BigInt(0), ur = BigInt(1), Ic = /* @__PURE__ */ BigInt(2), pFt = /* @__PURE__ */ BigInt(3), w7 = /* @__PURE__ */ BigInt(4), kI = /* @__PURE__ */ BigInt(5), wI = /* @__PURE__ */ BigInt(8);
92021
92021
  function Ro(e, t) {
92022
92022
  const n = e % t;
92023
92023
  return n >= Nr ? n : t + n;
@@ -92027,11 +92027,11 @@ function mFt(e, t, n) {
92027
92027
  throw new Error("invalid exponent, negatives unsupported");
92028
92028
  if (n <= Nr)
92029
92029
  throw new Error("invalid modulus");
92030
- if (n === lr)
92030
+ if (n === ur)
92031
92031
  return Nr;
92032
- let r = lr;
92032
+ let r = ur;
92033
92033
  for (; t > Nr; )
92034
- t & lr && (r = r * e % n), e = e * e % n, t >>= lr;
92034
+ t & ur && (r = r * e % n), e = e * e % n, t >>= ur;
92035
92035
  return r;
92036
92036
  }
92037
92037
  function Si(e, t, n) {
@@ -92045,25 +92045,25 @@ function F7(e, t) {
92045
92045
  throw new Error("invert: expected non-zero number");
92046
92046
  if (t <= Nr)
92047
92047
  throw new Error("invert: expected positive modulus, got " + t);
92048
- let n = Ro(e, t), r = t, o = Nr, i = lr;
92048
+ let n = Ro(e, t), r = t, o = Nr, i = ur;
92049
92049
  for (; n !== Nr; ) {
92050
92050
  const s = r / n, l = r % n, u = o - i * s;
92051
92051
  r = n, n = l, o = i, i = u;
92052
92052
  }
92053
- if (r !== lr)
92053
+ if (r !== ur)
92054
92054
  throw new Error("invert: does not exist");
92055
92055
  return Ro(o, t);
92056
92056
  }
92057
92057
  function gFt(e) {
92058
- const t = (e - lr) / Ic;
92058
+ const t = (e - ur) / Ic;
92059
92059
  let n, r, o;
92060
- for (n = e - lr, r = 0; n % Ic === Nr; n /= Ic, r++)
92060
+ for (n = e - ur, r = 0; n % Ic === Nr; n /= Ic, r++)
92061
92061
  ;
92062
- for (o = Ic; o < e && mFt(o, t, e) !== e - lr; o++)
92062
+ for (o = Ic; o < e && mFt(o, t, e) !== e - ur; o++)
92063
92063
  if (o > 1e3)
92064
92064
  throw new Error("Cannot find square root: likely non-prime P");
92065
92065
  if (r === 1) {
92066
- const a = (e + lr) / w7;
92066
+ const a = (e + ur) / w7;
92067
92067
  return function(l, u) {
92068
92068
  const c = l.pow(u, a);
92069
92069
  if (!l.eql(l.sqr(c), u))
@@ -92071,7 +92071,7 @@ function gFt(e) {
92071
92071
  return c;
92072
92072
  };
92073
92073
  }
92074
- const i = (n + lr) / Ic;
92074
+ const i = (n + ur) / Ic;
92075
92075
  return function(s, l) {
92076
92076
  if (s.pow(l, t) === s.neg(s.ONE))
92077
92077
  throw new Error("Cannot find square root");
@@ -92082,7 +92082,7 @@ function gFt(e) {
92082
92082
  let h = 1;
92083
92083
  for (let m = s.sqr(f); h < u && !s.eql(m, s.ONE); h++)
92084
92084
  m = s.sqr(m);
92085
- const p = s.pow(c, lr << BigInt(u - h - 1));
92085
+ const p = s.pow(c, ur << BigInt(u - h - 1));
92086
92086
  c = s.sqr(p), d = s.mul(d, p), f = s.mul(f, c), u = h;
92087
92087
  }
92088
92088
  return d;
@@ -92090,7 +92090,7 @@ function gFt(e) {
92090
92090
  }
92091
92091
  function yFt(e) {
92092
92092
  if (e % w7 === pFt) {
92093
- const t = (e + lr) / w7;
92093
+ const t = (e + ur) / w7;
92094
92094
  return function(r, o) {
92095
92095
  const i = r.pow(o, t);
92096
92096
  if (!r.eql(r.sqr(i), o))
@@ -92142,11 +92142,11 @@ function vFt(e, t, n) {
92142
92142
  throw new Error("invalid exponent, negatives unsupported");
92143
92143
  if (n === Nr)
92144
92144
  return e.ONE;
92145
- if (n === lr)
92145
+ if (n === ur)
92146
92146
  return t;
92147
92147
  let r = e.ONE, o = t;
92148
92148
  for (; n > Nr; )
92149
- n & lr && (r = e.mul(r, o)), o = e.sqr(o), n >>= lr;
92149
+ n & ur && (r = e.mul(r, o)), o = e.sqr(o), n >>= ur;
92150
92150
  return r;
92151
92151
  }
92152
92152
  function kFt(e, t) {
@@ -92171,7 +92171,7 @@ function NQ(e, t, n = !1, r = {}) {
92171
92171
  BYTES: i,
92172
92172
  MASK: Z6(o),
92173
92173
  ZERO: Nr,
92174
- ONE: lr,
92174
+ ONE: ur,
92175
92175
  create: (l) => Ro(l, e),
92176
92176
  isValid: (l) => {
92177
92177
  if (typeof l != "bigint")
@@ -92179,7 +92179,7 @@ function NQ(e, t, n = !1, r = {}) {
92179
92179
  return Nr <= l && l < e;
92180
92180
  },
92181
92181
  is0: (l) => l === Nr,
92182
- isOdd: (l) => (l & lr) === lr,
92182
+ isOdd: (l) => (l & ur) === ur,
92183
92183
  neg: (l) => Ro(-l, e),
92184
92184
  eql: (l, u) => l === u,
92185
92185
  sqr: (l) => Ro(l * l, e),
@@ -92222,7 +92222,7 @@ function wFt(e, t, n = !1) {
92222
92222
  const r = e.length, o = IQ(t), i = OQ(t);
92223
92223
  if (r < 16 || r < i || r > 1024)
92224
92224
  throw new Error("expected " + i + "-1024 bytes of input, got " + r);
92225
- const a = n ? hQ(e) : t1(e), s = Ro(a, t - lr) + lr;
92225
+ const a = n ? hQ(e) : t1(e), s = Ro(a, t - ur) + ur;
92226
92226
  return n ? pQ(s, o) : o2(s, o);
92227
92227
  }
92228
92228
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
@@ -98536,7 +98536,7 @@ const $E = new un("inline-ui"), Pjt = () => new nn({
98536
98536
  if (n && n.add) {
98537
98537
  const { id: r, pos: o, content: i } = n.add, a = document.createElement("div");
98538
98538
  a.setAttribute("class", "img-placeholder"), a.textContent = i;
98539
- const s = ur.widget(o + 1, a, {
98539
+ const s = cr.widget(o + 1, a, {
98540
98540
  id: r
98541
98541
  });
98542
98542
  t = t.add(e.doc, [s]);
@@ -99129,6 +99129,13 @@ const I7 = [
99129
99129
  e.chain().focus().setFontFamily("Georgia, serif").run();
99130
99130
  }
99131
99131
  },
99132
+ {
99133
+ title: "IBM Plex Mono",
99134
+ value: "IBM Plex Mono, monospace",
99135
+ command: (e) => {
99136
+ e.chain().focus().setFontFamily("IBM Plex Mono, monospace").run();
99137
+ }
99138
+ },
99132
99139
  {
99133
99140
  title: "Impact",
99134
99141
  value: "Impact, Charcoal, sans-serif",
@@ -99143,6 +99150,13 @@ const I7 = [
99143
99150
  e.chain().focus().setFontFamily("Inter, sans-serif").run();
99144
99151
  }
99145
99152
  },
99153
+ {
99154
+ title: "JetBrains Mono",
99155
+ value: "JetBrains Mono, monospace",
99156
+ command: (e) => {
99157
+ e.chain().focus().setFontFamily("JetBrains Mono, monospace").run();
99158
+ }
99159
+ },
99146
99160
  {
99147
99161
  title: "Lato",
99148
99162
  value: "Lato, sans-serif",
@@ -100755,7 +100769,7 @@ const I7 = [
100755
100769
  name: "Multiple"
100756
100770
  };
100757
100771
  return /* @__PURE__ */ F.jsx(
100758
- gr,
100772
+ lr,
100759
100773
  {
100760
100774
  sideOffset: 15,
100761
100775
  anchorTrigger: /* @__PURE__ */ F.jsxs("button", { className: "bg-transparent hover:!color-bg-default-hover color-text-default rounded p-1 flex items-center justify-between gap-2 w-fit max-w-36", children: [
@@ -100795,7 +100809,7 @@ const I7 = [
100795
100809
  },
100796
100810
  "NodeSelector"
100797
100811
  );
100798
- }, wr = yn(({ icon: e, isActive: t, onClick: n, tooltip: r, classNames: o, disabled: i, size: a }, s) => r ? /* @__PURE__ */ F.jsx(pn, { text: r, children: /* @__PURE__ */ F.jsx(
100812
+ }, yr = yn(({ icon: e, isActive: t, onClick: n, tooltip: r, classNames: o, disabled: i, size: a }, s) => r ? /* @__PURE__ */ F.jsx(pn, { text: r, children: /* @__PURE__ */ F.jsx(
100799
100813
  cn,
100800
100814
  {
100801
100815
  ref: s,
@@ -100823,11 +100837,11 @@ const I7 = [
100823
100837
  function Ms(e, t) {
100824
100838
  return typeof e == "function" ? e(t) : e && typeof e == "object" && aO in e ? e[aO](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
100825
100839
  }
100826
- function pr(e, t) {
100840
+ function mr(e, t) {
100827
100841
  return Ms(t || e, e);
100828
100842
  }
100829
100843
  function oAt(e, t, n) {
100830
- const r = pr(e, n == null ? void 0 : n.in);
100844
+ const r = mr(e, n == null ? void 0 : n.in);
100831
100845
  return isNaN(t) ? Ms(e, NaN) : (r.setDate(r.getDate() + t), r);
100832
100846
  }
100833
100847
  let iAt = {};
@@ -100836,14 +100850,14 @@ function Im() {
100836
100850
  }
100837
100851
  function u2(e, t) {
100838
100852
  var s, l, u, c;
100839
- const n = Im(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((c = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? 0, o = pr(e, t == null ? void 0 : t.in), i = o.getDay(), a = (i < r ? 7 : 0) + i - r;
100853
+ const n = Im(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((c = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? 0, o = mr(e, t == null ? void 0 : t.in), i = o.getDay(), a = (i < r ? 7 : 0) + i - r;
100840
100854
  return o.setDate(o.getDate() - a), o.setHours(0, 0, 0, 0), o;
100841
100855
  }
100842
100856
  function o3(e, t) {
100843
100857
  return u2(e, { ...t, weekStartsOn: 1 });
100844
100858
  }
100845
100859
  function RX(e, t) {
100846
- const n = pr(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = Ms(n, 0);
100860
+ const n = mr(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = Ms(n, 0);
100847
100861
  o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
100848
100862
  const i = o3(o), a = Ms(n, 0);
100849
100863
  a.setFullYear(r, 0, 4), a.setHours(0, 0, 0, 0);
@@ -100851,7 +100865,7 @@ function RX(e, t) {
100851
100865
  return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
100852
100866
  }
100853
100867
  function i3(e) {
100854
- const t = pr(e), n = new Date(
100868
+ const t = mr(e), n = new Date(
100855
100869
  Date.UTC(
100856
100870
  t.getFullYear(),
100857
100871
  t.getMonth(),
@@ -100872,7 +100886,7 @@ function e5(e, ...t) {
100872
100886
  return t.map(n);
100873
100887
  }
100874
100888
  function sO(e, t) {
100875
- const n = pr(e, t == null ? void 0 : t.in);
100889
+ const n = mr(e, t == null ? void 0 : t.in);
100876
100890
  return n.setHours(0, 0, 0, 0), n;
100877
100891
  }
100878
100892
  function aAt(e, t, n) {
@@ -100888,7 +100902,7 @@ function sAt(e, t) {
100888
100902
  return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), o3(r);
100889
100903
  }
100890
100904
  function q4(e, t) {
100891
- const n = +pr(e) - +pr(t);
100905
+ const n = +mr(e) - +mr(t);
100892
100906
  return n < 0 ? -1 : n > 0 ? 1 : n;
100893
100907
  }
100894
100908
  function lAt(e) {
@@ -100898,7 +100912,7 @@ function uAt(e) {
100898
100912
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
100899
100913
  }
100900
100914
  function cAt(e) {
100901
- return !(!uAt(e) && typeof e != "number" || isNaN(+pr(e)));
100915
+ return !(!uAt(e) && typeof e != "number" || isNaN(+mr(e)));
100902
100916
  }
100903
100917
  function dAt(e, t, n) {
100904
100918
  const [r, o] = e5(
@@ -100915,18 +100929,18 @@ function fAt(e) {
100915
100929
  };
100916
100930
  }
100917
100931
  function hAt(e, t) {
100918
- return +pr(e) - +pr(t);
100932
+ return +mr(e) - +mr(t);
100919
100933
  }
100920
100934
  function pAt(e, t) {
100921
- const n = pr(e, t == null ? void 0 : t.in);
100935
+ const n = mr(e, t == null ? void 0 : t.in);
100922
100936
  return n.setHours(23, 59, 59, 999), n;
100923
100937
  }
100924
100938
  function mAt(e, t) {
100925
- const n = pr(e, t == null ? void 0 : t.in), r = n.getMonth();
100939
+ const n = mr(e, t == null ? void 0 : t.in), r = n.getMonth();
100926
100940
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
100927
100941
  }
100928
100942
  function gAt(e, t) {
100929
- const n = pr(e, t == null ? void 0 : t.in);
100943
+ const n = mr(e, t == null ? void 0 : t.in);
100930
100944
  return +pAt(n, t) == +mAt(n, t);
100931
100945
  }
100932
100946
  function yAt(e, t, n) {
@@ -100950,7 +100964,7 @@ function bAt(e, t, n) {
100950
100964
  return fAt(n == null ? void 0 : n.roundingMethod)(r);
100951
100965
  }
100952
100966
  function xAt(e, t) {
100953
- const n = pr(e, t == null ? void 0 : t.in);
100967
+ const n = mr(e, t == null ? void 0 : t.in);
100954
100968
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
100955
100969
  }
100956
100970
  const vAt = {
@@ -101385,16 +101399,16 @@ const _At = /^(\d+)(th|st|nd|rd)?/i, PAt = /\d+/i, HAt = {
101385
101399
  }
101386
101400
  };
101387
101401
  function QAt(e, t) {
101388
- const n = pr(e, t == null ? void 0 : t.in);
101402
+ const n = mr(e, t == null ? void 0 : t.in);
101389
101403
  return aAt(n, xAt(n)) + 1;
101390
101404
  }
101391
101405
  function XAt(e, t) {
101392
- const n = pr(e, t == null ? void 0 : t.in), r = +o3(n) - +sAt(n);
101406
+ const n = mr(e, t == null ? void 0 : t.in), r = +o3(n) - +sAt(n);
101393
101407
  return Math.round(r / OX) + 1;
101394
101408
  }
101395
101409
  function zX(e, t) {
101396
101410
  var c, d, f, h;
101397
- const n = pr(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = Im(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((h = (f = o.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, a = Ms((t == null ? void 0 : t.in) || e, 0);
101411
+ const n = mr(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = Im(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((h = (f = o.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, a = Ms((t == null ? void 0 : t.in) || e, 0);
101398
101412
  a.setFullYear(r + 1, 0, i), a.setHours(0, 0, 0, 0);
101399
101413
  const s = u2(a, t), l = Ms((t == null ? void 0 : t.in) || e, 0);
101400
101414
  l.setFullYear(r, 0, i), l.setHours(0, 0, 0, 0);
@@ -101407,7 +101421,7 @@ function eDt(e, t) {
101407
101421
  return i.setFullYear(o, 0, r), i.setHours(0, 0, 0, 0), u2(i, t);
101408
101422
  }
101409
101423
  function tDt(e, t) {
101410
- const n = pr(e, t == null ? void 0 : t.in), r = +u2(n, t) - +eDt(n, t);
101424
+ const n = mr(e, t == null ? void 0 : t.in), r = +u2(n, t) - +eDt(n, t);
101411
101425
  return Math.round(r / OX) + 1;
101412
101426
  }
101413
101427
  function xn(e, t) {
@@ -102039,7 +102053,7 @@ function cDt(e, t, n) {
102039
102053
  const dDt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fDt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, hDt = /^'([^]*?)'?$/, pDt = /''/g, mDt = /[a-zA-Z]/;
102040
102054
  function Rv(e, t, n) {
102041
102055
  var c, d, f, h;
102042
- const r = Im(), o = r.locale ?? BX, i = r.firstWeekContainsDate ?? ((d = (c = r.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = r.weekStartsOn ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.weekStartsOn) ?? 0, s = pr(e, n == null ? void 0 : n.in);
102056
+ const r = Im(), o = r.locale ?? BX, i = r.firstWeekContainsDate ?? ((d = (c = r.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = r.weekStartsOn ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.weekStartsOn) ?? 0, s = mr(e, n == null ? void 0 : n.in);
102043
102057
  if (!cAt(s))
102044
102058
  throw new RangeError("Invalid time value");
102045
102059
  let l = t.match(fDt).map((p) => {
@@ -102122,7 +102136,7 @@ function bDt(e, t) {
102122
102136
  return yDt(e, lAt(e), t);
102123
102137
  }
102124
102138
  function xDt(e, t) {
102125
- return +pr(e) > +pr(t);
102139
+ return +mr(e) > +mr(t);
102126
102140
  }
102127
102141
  function vDt(e, t, n) {
102128
102142
  return oAt(e, -1, n);
@@ -102382,7 +102396,7 @@ const PX = (e) => e && (e.length > 20 ? e.slice(0, 5) + "..." + e.slice(e.length
102382
102396
  }
102383
102397
  ),
102384
102398
  !u && h && /* @__PURE__ */ F.jsx(
102385
- gr,
102399
+ lr,
102386
102400
  {
102387
102401
  align: "end",
102388
102402
  sideOffset: 4,
@@ -102679,7 +102693,7 @@ const PX = (e) => e && (e.length > 20 ? e.slice(0, 5) + "..." + e.slice(e.length
102679
102693
  position: "top",
102680
102694
  children: [
102681
102695
  /* @__PURE__ */ F.jsx(
102682
- gr,
102696
+ lr,
102683
102697
  {
102684
102698
  align: "end",
102685
102699
  sideOffset: 4,
@@ -103263,6 +103277,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103263
103277
  );
103264
103278
  return;
103265
103279
  }
103280
+ l.setSeconds(0, 0);
103266
103281
  const x = {
103267
103282
  id: ju(),
103268
103283
  title: a,
@@ -103329,7 +103344,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103329
103344
  /* @__PURE__ */ F.jsx("h3", { className: "text-heading-xsm", children: "Custom" }),
103330
103345
  /* @__PURE__ */ F.jsxs("div", { className: "flex gap-2", children: [
103331
103346
  /* @__PURE__ */ F.jsx(
103332
- gr,
103347
+ lr,
103333
103348
  {
103334
103349
  anchorTrigger: /* @__PURE__ */ F.jsx(
103335
103350
  pi,
@@ -103345,7 +103360,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103345
103360
  ),
103346
103361
  /* @__PURE__ */ F.jsxs("div", { className: "flex items-center", children: [
103347
103362
  /* @__PURE__ */ F.jsx(
103348
- gr,
103363
+ lr,
103349
103364
  {
103350
103365
  anchorTrigger: /* @__PURE__ */ F.jsx(
103351
103366
  pi,
@@ -103616,7 +103631,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103616
103631
  }
103617
103632
  }, P = /* @__PURE__ */ F.jsxs(ke.Fragment, { children: [
103618
103633
  /* @__PURE__ */ F.jsx(
103619
- wr,
103634
+ yr,
103620
103635
  {
103621
103636
  ref: I,
103622
103637
  icon: "MessageSquarePlus",
@@ -103659,17 +103674,44 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103659
103674
  transform: `scale(${1 / parseFloat(n)})`,
103660
103675
  transformOrigin: "center"
103661
103676
  },
103662
- children: p ? /* @__PURE__ */ F.jsx(
103677
+ children: p ? /* @__PURE__ */ F.jsxs(
103663
103678
  "div",
103664
103679
  {
103665
103680
  className: ye(
103666
103681
  "relative",
103667
103682
  j ? "left-1/2 translate-x-1/2" : ""
103668
103683
  ),
103669
- children: P
103684
+ children: [
103685
+ P,
103686
+ c && /* @__PURE__ */ F.jsx(
103687
+ lr,
103688
+ {
103689
+ side: "bottom",
103690
+ sideOffset: 15,
103691
+ anchorTrigger: /* @__PURE__ */ F.jsx(
103692
+ yr,
103693
+ {
103694
+ icon: "AlarmClock",
103695
+ variant: "ghost",
103696
+ size: "sm",
103697
+ onClick: () => {
103698
+ var H;
103699
+ const R = ((H = t.state.selection.content().content.firstChild) == null ? void 0 : H.textContent) || "";
103700
+ M && M(R);
103701
+ }
103702
+ }
103703
+ ),
103704
+ className: "!max-w-[300px] border-none shadow-none",
103705
+ content: G({
103706
+ name: "Reminder"
103707
+ })
103708
+ },
103709
+ "Reminder"
103710
+ )
103711
+ ]
103670
103712
  }
103671
103713
  ) : /* @__PURE__ */ F.jsx(ke.Fragment, { children: o ? /* @__PURE__ */ F.jsx(
103672
- gr,
103714
+ lr,
103673
103715
  {
103674
103716
  side: "bottom",
103675
103717
  sideOffset: 15,
@@ -103677,7 +103719,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103677
103719
  align: "end",
103678
103720
  className: "!z-[50] shadow-elevation-3",
103679
103721
  anchorTrigger: /* @__PURE__ */ F.jsx(
103680
- wr,
103722
+ yr,
103681
103723
  {
103682
103724
  icon: "MessageSquarePlus",
103683
103725
  variant: "ghost",
@@ -103699,7 +103741,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103699
103741
  /* @__PURE__ */ F.jsx(nAt, { editor: t, elementRef: m }),
103700
103742
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider" }),
103701
103743
  /* @__PURE__ */ F.jsx(
103702
- gr,
103744
+ lr,
103703
103745
  {
103704
103746
  sideOffset: 8,
103705
103747
  anchorTrigger: /* @__PURE__ */ F.jsxs(
@@ -103729,7 +103771,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103729
103771
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider" }),
103730
103772
  q.map((R, H) => R.name === "Bold" || R.name === "Italic" || R.name === "Underline" || R.name === "Strikethrough" || R.name === "Code" ? /* @__PURE__ */ F.jsxs("div", { className: "flex items-center", children: [
103731
103773
  /* @__PURE__ */ F.jsx(
103732
- wr,
103774
+ yr,
103733
103775
  {
103734
103776
  icon: R.icon,
103735
103777
  size: "sm",
@@ -103740,11 +103782,11 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103740
103782
  H === 3 && /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider ml-2" })
103741
103783
  ] }, H) : R.name === "Alignment" ? /* @__PURE__ */ F.jsxs(ke.Fragment, { children: [
103742
103784
  /* @__PURE__ */ F.jsx(
103743
- gr,
103785
+ lr,
103744
103786
  {
103745
103787
  sideOffset: 15,
103746
103788
  anchorTrigger: /* @__PURE__ */ F.jsx(
103747
- wr,
103789
+ yr,
103748
103790
  {
103749
103791
  icon: "Baseline",
103750
103792
  size: "sm",
@@ -103763,11 +103805,11 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103763
103805
  rt.TEXT_COLOR
103764
103806
  ),
103765
103807
  /* @__PURE__ */ F.jsx(
103766
- gr,
103808
+ lr,
103767
103809
  {
103768
103810
  sideOffset: 15,
103769
103811
  anchorTrigger: /* @__PURE__ */ F.jsx(
103770
- wr,
103812
+ yr,
103771
103813
  {
103772
103814
  icon: "Highlighter",
103773
103815
  size: "sm",
@@ -103787,11 +103829,11 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103787
103829
  ),
103788
103830
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider" }),
103789
103831
  /* @__PURE__ */ F.jsx(
103790
- gr,
103832
+ lr,
103791
103833
  {
103792
103834
  sideOffset: 15,
103793
103835
  anchorTrigger: /* @__PURE__ */ F.jsx(
103794
- wr,
103836
+ yr,
103795
103837
  {
103796
103838
  icon: R.icon,
103797
103839
  variant: "ghost",
@@ -103805,11 +103847,11 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103805
103847
  R.name
103806
103848
  )
103807
103849
  ] }, H) : R.name === "Link" || R.name === "Scripts" ? /* @__PURE__ */ F.jsx(ke.Fragment, { children: /* @__PURE__ */ F.jsx(
103808
- gr,
103850
+ lr,
103809
103851
  {
103810
103852
  sideOffset: 15,
103811
103853
  anchorTrigger: /* @__PURE__ */ F.jsx(
103812
- wr,
103854
+ yr,
103813
103855
  {
103814
103856
  icon: R.icon,
103815
103857
  variant: "ghost",
@@ -103821,7 +103863,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103821
103863
  content: G(R)
103822
103864
  }
103823
103865
  ) }, R.name) : R.name === "Comment" ? /* @__PURE__ */ F.jsx(
103824
- gr,
103866
+ lr,
103825
103867
  {
103826
103868
  side: "bottom",
103827
103869
  sideOffset: 15,
@@ -103829,7 +103871,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103829
103871
  align: "end",
103830
103872
  className: "!z-[50] shadow-elevation-3",
103831
103873
  anchorTrigger: /* @__PURE__ */ F.jsx(
103832
- wr,
103874
+ yr,
103833
103875
  {
103834
103876
  ref: I,
103835
103877
  icon: "MessageSquarePlus",
@@ -103849,12 +103891,12 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
103849
103891
  },
103850
103892
  "Comment"
103851
103893
  ) : R.name === "Reminder" && c ? /* @__PURE__ */ F.jsx(
103852
- gr,
103894
+ lr,
103853
103895
  {
103854
103896
  side: "bottom",
103855
103897
  sideOffset: 15,
103856
103898
  anchorTrigger: /* @__PURE__ */ F.jsx(
103857
- wr,
103899
+ yr,
103858
103900
  {
103859
103901
  icon: R.icon,
103860
103902
  variant: "ghost",
@@ -104149,7 +104191,7 @@ const BDt = {
104149
104191
  },
104150
104192
  children: /* @__PURE__ */ F.jsxs(BDt.Wrapper, { className: "border color-border-default shadow-elevation-3", children: [
104151
104193
  /* @__PURE__ */ F.jsx(
104152
- wr,
104194
+ yr,
104153
104195
  {
104154
104196
  icon: "PanelLeft",
104155
104197
  tooltip: "Align left",
@@ -104161,7 +104203,7 @@ const BDt = {
104161
104203
  }
104162
104204
  ),
104163
104205
  /* @__PURE__ */ F.jsx(
104164
- wr,
104206
+ yr,
104165
104207
  {
104166
104208
  icon: "Columns2",
104167
104209
  tooltip: "Align center",
@@ -104173,7 +104215,7 @@ const BDt = {
104173
104215
  }
104174
104216
  ),
104175
104217
  /* @__PURE__ */ F.jsx(
104176
- wr,
104218
+ yr,
104177
104219
  {
104178
104220
  icon: "PanelRight",
104179
104221
  tooltip: "Align right",
@@ -104185,7 +104227,7 @@ const BDt = {
104185
104227
  }
104186
104228
  ),
104187
104229
  /* @__PURE__ */ F.jsx(
104188
- wr,
104230
+ yr,
104189
104231
  {
104190
104232
  icon: "Trash2",
104191
104233
  tooltip: "Remove column",
@@ -109312,7 +109354,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
109312
109354
  "font-family-skeleton"
109313
109355
  ) : No(
109314
109356
  /* @__PURE__ */ F.jsx(
109315
- gr,
109357
+ lr,
109316
109358
  {
109317
109359
  sideOffset: 8,
109318
109360
  anchorTrigger: /* @__PURE__ */ F.jsxs(
@@ -109369,7 +109411,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
109369
109411
  "heading-skeleton"
109370
109412
  ) : No(
109371
109413
  /* @__PURE__ */ F.jsx(
109372
- gr,
109414
+ lr,
109373
109415
  {
109374
109416
  sideOffset: 8,
109375
109417
  anchorTrigger: /* @__PURE__ */ F.jsxs(
@@ -109402,7 +109444,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
109402
109444
  "font-size-skeleton"
109403
109445
  ) : No(
109404
109446
  /* @__PURE__ */ F.jsx(
109405
- gr,
109447
+ lr,
109406
109448
  {
109407
109449
  sideOffset: 8,
109408
109450
  anchorTrigger: /* @__PURE__ */ F.jsxs(
@@ -109438,7 +109480,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
109438
109480
  Y.title + "skeleton"
109439
109481
  ) : No(
109440
109482
  /* @__PURE__ */ F.jsx(
109441
- gr,
109483
+ lr,
109442
109484
  {
109443
109485
  align: Y.title === "Link" ? "end" : "center",
109444
109486
  sideOffset: 8,
@@ -109460,7 +109502,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
109460
109502
  Y.title + "loader"
109461
109503
  ) : No(
109462
109504
  /* @__PURE__ */ F.jsx(
109463
- gr,
109505
+ lr,
109464
109506
  {
109465
109507
  align: "end",
109466
109508
  sideOffset: 8,
@@ -109473,7 +109515,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
109473
109515
  }
109474
109516
  ) }),
109475
109517
  content: /* @__PURE__ */ F.jsx("div", { className: "flex p-1 gap-1", children: h.filter((ue) => (ue == null ? void 0 : ue.group) === "More").map((ue) => /* @__PURE__ */ F.jsx(
109476
- wr,
109518
+ yr,
109477
109519
  {
109478
109520
  icon: ue == null ? void 0 : ue.icon,
109479
109521
  onClick: (ue == null ? void 0 : ue.onClick) || (() => {
@@ -109491,7 +109533,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
109491
109533
  Y.title + "skeleton"
109492
109534
  ) : No(
109493
109535
  /* @__PURE__ */ F.jsx(pn, { text: Y.title, children: /* @__PURE__ */ F.jsx(
109494
- wr,
109536
+ yr,
109495
109537
  {
109496
109538
  icon: Y.icon,
109497
109539
  onClick: Y.onClick,
@@ -110538,7 +110580,7 @@ const Zu = (e, t, n) => t.clients.forEach((r, o) => {
110538
110580
  const r = new xf(), o = Ht(e.restDecoder);
110539
110581
  for (let i = 0; i < o; i++) {
110540
110582
  e.resetDsCurVal();
110541
- const a = Ht(e.restDecoder), s = Ht(e.restDecoder), l = n.clients.get(a) || [], u = dr(n, a);
110583
+ const a = Ht(e.restDecoder), s = Ht(e.restDecoder), l = n.clients.get(a) || [], u = fr(n, a);
110542
110584
  for (let c = 0; c < s; c++) {
110543
110585
  const d = e.readDsClock(), f = d + e.readDsLen();
110544
110586
  if (d < u) {
@@ -111217,7 +111259,7 @@ const WOt = (e, t, n, r) => {
111217
111259
  }, eA = (e, t, n) => {
111218
111260
  const r = /* @__PURE__ */ new Map();
111219
111261
  n.forEach((o, i) => {
111220
- dr(t, i) > o && r.set(i, o);
111262
+ fr(t, i) > o && r.set(i, o);
111221
111263
  }), Wm(t).forEach((o, i) => {
111222
111264
  n.has(i) || r.set(i, 0);
111223
111265
  }), Mt(e.restEncoder, r.size), Dl(r.entries()).sort((o, i) => i[0] - o[0]).forEach(([o, i]) => {
@@ -111315,7 +111357,7 @@ const WOt = (e, t, n, r) => {
111315
111357
  };
111316
111358
  for (; ; ) {
111317
111359
  if (c.constructor !== Pi) {
111318
- const p = jo(d, c.id.client, () => dr(t, c.id.client)) - c.id.clock;
111360
+ const p = jo(d, c.id.client, () => fr(t, c.id.client)) - c.id.clock;
111319
111361
  if (p < 0)
111320
111362
  r.push(c), u(c.id.client, c.id.clock - 1), f();
111321
111363
  else {
@@ -111330,7 +111372,7 @@ const WOt = (e, t, n, r) => {
111330
111372
  u(
111331
111373
  /** @type {number} */
111332
111374
  m,
111333
- dr(t, m)
111375
+ fr(t, m)
111334
111376
  ), f();
111335
111377
  else {
111336
111378
  c = g.refs[g.i++];
@@ -111363,7 +111405,7 @@ const WOt = (e, t, n, r) => {
111363
111405
  const a = o.doc, s = a.store, l = GOt(r, a), u = ZOt(o, s, l), c = s.pendingStructs;
111364
111406
  if (c) {
111365
111407
  for (const [f, h] of c.missing)
111366
- if (h < dr(s, f)) {
111408
+ if (h < fr(s, f)) {
111367
111409
  i = !0;
111368
111410
  break;
111369
111411
  }
@@ -111502,7 +111544,7 @@ const oRt = (e, t, n = 0) => new rRt(e, t, n), Hg = (e, t, n) => {
111502
111544
  const r = t.store, o = e.item, i = e.type, a = e.tname, s = e.assoc;
111503
111545
  let l = null, u = 0;
111504
111546
  if (o !== null) {
111505
- if (dr(r, o.client) <= o.clock)
111547
+ if (fr(r, o.client) <= o.clock)
111506
111548
  return null;
111507
111549
  const c = n ? uw(r, o) : iRt(r, o), d = c.item;
111508
111550
  if (!(d instanceof En))
@@ -111518,7 +111560,7 @@ const oRt = (e, t, n = 0) => new rRt(e, t, n), Hg = (e, t, n) => {
111518
111560
  if (a !== null)
111519
111561
  l = t.get(a);
111520
111562
  else if (i !== null) {
111521
- if (dr(r, i.client) <= i.clock)
111563
+ if (fr(r, i.client) <= i.clock)
111522
111564
  return null;
111523
111565
  const { item: c } = n ? uw(r, i) : { item: t0(r, i) };
111524
111566
  if (c instanceof En && c.content instanceof Oa)
@@ -111543,7 +111585,7 @@ class tA {
111543
111585
  const cne = (e, t) => new tA(e, t), r8 = (e) => cne(tne(e.store), Wm(e.store)), Oc = (e, t) => t === void 0 ? !e.deleted : t.sv.has(e.id.client) && (t.sv.get(e.id.client) || 0) > e.id.clock && !vf(t.ds, e.id), aw = (e, t) => {
111544
111586
  const n = jo(e.meta, aw, Al), r = e.doc.store;
111545
111587
  n.has(t) || (t.sv.forEach((o, i) => {
111546
- o < dr(r, i) && zo(e, qt(i, o));
111588
+ o < fr(r, i) && zo(e, qt(i, o));
111547
111589
  }), Zu(e, t.ds, (o) => {
111548
111590
  }), n.add(t));
111549
111591
  };
@@ -111558,7 +111600,7 @@ const Wm = (e) => {
111558
111600
  const o = n[n.length - 1];
111559
111601
  t.set(r, o.id.clock + o.length);
111560
111602
  }), t;
111561
- }, dr = (e, t) => {
111603
+ }, fr = (e, t) => {
111562
111604
  const n = e.clients.get(t);
111563
111605
  if (n === void 0)
111564
111606
  return 0;
@@ -112571,7 +112613,7 @@ const xne = (e, t, n) => {
112571
112613
  const i = e.doc, a = i.clientID, s = i.store, l = n === null ? t._start : n.right;
112572
112614
  let u = [];
112573
112615
  const c = () => {
112574
- u.length > 0 && (o = new En(qt(a, dr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new L1(u)), o.integrate(e, 0), u = []);
112616
+ u.length > 0 && (o = new En(qt(a, fr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new L1(u)), o.integrate(e, 0), u = []);
112575
112617
  };
112576
112618
  r.forEach((d) => {
112577
112619
  if (d === null)
@@ -112589,20 +112631,20 @@ const xne = (e, t, n) => {
112589
112631
  switch (c(), d.constructor) {
112590
112632
  case Uint8Array:
112591
112633
  case ArrayBuffer:
112592
- o = new En(qt(a, dr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new Gm(new Uint8Array(
112634
+ o = new En(qt(a, fr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new Gm(new Uint8Array(
112593
112635
  /** @type {Uint8Array} */
112594
112636
  d
112595
112637
  ))), o.integrate(e, 0);
112596
112638
  break;
112597
112639
  case zl:
112598
- o = new En(qt(a, dr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new Zm(
112640
+ o = new En(qt(a, fr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new Zm(
112599
112641
  /** @type {Doc} */
112600
112642
  d
112601
112643
  )), o.integrate(e, 0);
112602
112644
  break;
112603
112645
  default:
112604
112646
  if (d instanceof Rr)
112605
- o = new En(qt(a, dr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new Oa(d)), o.integrate(e, 0);
112647
+ o = new En(qt(a, fr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new Oa(d)), o.integrate(e, 0);
112606
112648
  else
112607
112649
  throw new Error("Unexpected content type in insert operation");
112608
112650
  }
@@ -112682,7 +112724,7 @@ const xne = (e, t, n) => {
112682
112724
  else
112683
112725
  throw new Error("Unexpected content type");
112684
112726
  }
112685
- new En(qt(a, dr(i.store, a)), o, o && o.lastId, null, null, t, n, s).integrate(e, 0);
112727
+ new En(qt(a, fr(i.store, a)), o, o && o.lastId, null, null, t, n, s).integrate(e, 0);
112686
112728
  }, sA = (e, t) => {
112687
112729
  e.doc ?? io();
112688
112730
  const n = e._map.get(t);
@@ -113140,7 +113182,7 @@ class lw {
113140
113182
  */
113141
113183
  forward() {
113142
113184
  switch (this.right === null && Jo(), this.right.content.constructor) {
113143
- case xr:
113185
+ case vr:
113144
113186
  this.right.deleted || wf(
113145
113187
  this.currentAttributes,
113146
113188
  /** @type {ContentFormat} */
@@ -113157,7 +113199,7 @@ class lw {
113157
113199
  const rB = (e, t, n) => {
113158
113200
  for (; t.right !== null && n > 0; ) {
113159
113201
  switch (t.right.content.constructor) {
113160
- case xr:
113202
+ case vr:
113161
113203
  t.right.deleted || wf(
113162
113204
  t.currentAttributes,
113163
113205
  /** @type {ContentFormat} */
@@ -113181,7 +113223,7 @@ const rB = (e, t, n) => {
113181
113223
  return rB(e, a, n);
113182
113224
  }
113183
113225
  }, Dne = (e, t, n, r) => {
113184
- for (; n.right !== null && (n.right.deleted === !0 || n.right.content.constructor === xr && xu(
113226
+ for (; n.right !== null && (n.right.deleted === !0 || n.right.content.constructor === vr && xu(
113185
113227
  r.get(
113186
113228
  /** @type {ContentFormat} */
113187
113229
  n.right.content.key
@@ -113195,7 +113237,7 @@ const rB = (e, t, n) => {
113195
113237
  ), n.forward();
113196
113238
  const o = e.doc, i = o.clientID;
113197
113239
  r.forEach((a, s) => {
113198
- const l = n.left, u = n.right, c = new En(qt(i, dr(o.store, i)), l, l && l.lastId, u, u && u.id, t, null, new xr(s, a));
113240
+ const l = n.left, u = n.right, c = new En(qt(i, fr(o.store, i)), l, l && l.lastId, u, u && u.id, t, null, new vr(s, a));
113199
113241
  c.integrate(e, 0), n.right = c, n.forward();
113200
113242
  });
113201
113243
  }, wf = (e, t) => {
@@ -113203,7 +113245,7 @@ const rB = (e, t, n) => {
113203
113245
  r === null ? e.delete(n) : e.set(n, r);
113204
113246
  }, Sne = (e, t) => {
113205
113247
  for (; e.right !== null; ) {
113206
- if (!(e.right.deleted || e.right.content.constructor === xr && xu(
113248
+ if (!(e.right.deleted || e.right.content.constructor === vr && xu(
113207
113249
  t[
113208
113250
  /** @type {ContentFormat} */
113209
113251
  e.right.content.key
@@ -113220,7 +113262,7 @@ const rB = (e, t, n) => {
113220
113262
  if (!xu(u, l)) {
113221
113263
  a.set(s, u);
113222
113264
  const { left: c, right: d } = n;
113223
- n.right = new En(qt(i, dr(o.store, i)), c, c && c.lastId, d, d && d.id, t, null, new xr(s, l)), n.right.integrate(e, 0), n.forward();
113265
+ n.right = new En(qt(i, fr(o.store, i)), c, c && c.lastId, d, d && d.id, t, null, new vr(s, l)), n.right.integrate(e, 0), n.forward();
113224
113266
  }
113225
113267
  }
113226
113268
  return a;
@@ -113235,15 +113277,15 @@ const rB = (e, t, n) => {
113235
113277
  r
113236
113278
  ) : r instanceof Rr ? new Oa(r) : new K1(r);
113237
113279
  let { left: u, right: c, index: d } = n;
113238
- t._searchMarker && M2(t._searchMarker, n.index, l.getLength()), c = new En(qt(a, dr(i.store, a)), u, u && u.lastId, c, c && c.id, t, null, l), c.integrate(e, 0), n.right = c, n.index = d, n.forward(), Dne(e, t, n, s);
113280
+ t._searchMarker && M2(t._searchMarker, n.index, l.getLength()), c = new En(qt(a, fr(i.store, a)), u, u && u.lastId, c, c && c.id, t, null, l), c.integrate(e, 0), n.right = c, n.index = d, n.forward(), Dne(e, t, n, s);
113239
113281
  }, oB = (e, t, n, r, o) => {
113240
113282
  const i = e.doc, a = i.clientID;
113241
113283
  Sne(n, o);
113242
113284
  const s = Tne(e, t, n, o);
113243
- e: for (; n.right !== null && (r > 0 || s.size > 0 && (n.right.deleted || n.right.content.constructor === xr)); ) {
113285
+ e: for (; n.right !== null && (r > 0 || s.size > 0 && (n.right.deleted || n.right.content.constructor === vr)); ) {
113244
113286
  if (!n.right.deleted)
113245
113287
  switch (n.right.content.constructor) {
113246
- case xr: {
113288
+ case vr: {
113247
113289
  const { key: l, value: u } = (
113248
113290
  /** @type {ContentFormat} */
113249
113291
  n.right.content
@@ -113272,14 +113314,14 @@ const rB = (e, t, n) => {
113272
113314
  for (; r > 0; r--)
113273
113315
  l += `
113274
113316
  `;
113275
- n.right = new En(qt(a, dr(i.store, a)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new Da(l)), n.right.integrate(e, 0), n.forward();
113317
+ n.right = new En(qt(a, fr(i.store, a)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new Da(l)), n.right.integrate(e, 0), n.forward();
113276
113318
  }
113277
113319
  Dne(e, t, n, s);
113278
113320
  }, Lne = (e, t, n, r, o) => {
113279
113321
  let i = t;
113280
113322
  const a = vo();
113281
113323
  for (; i && (!i.countable || i.deleted); ) {
113282
- if (!i.deleted && i.content.constructor === xr) {
113324
+ if (!i.deleted && i.content.constructor === vr) {
113283
113325
  const u = (
113284
113326
  /** @type {ContentFormat} */
113285
113327
  i.content
@@ -113293,7 +113335,7 @@ const rB = (e, t, n) => {
113293
113335
  if (n === t && (l = !0), !t.deleted) {
113294
113336
  const u = t.content;
113295
113337
  switch (u.constructor) {
113296
- case xr: {
113338
+ case vr: {
113297
113339
  const { key: c, value: d } = (
113298
113340
  /** @type {ContentFormat} */
113299
113341
  u
@@ -113316,7 +113358,7 @@ const rB = (e, t, n) => {
113316
113358
  t = t.right;
113317
113359
  const n = /* @__PURE__ */ new Set();
113318
113360
  for (; t && (t.deleted || !t.countable); ) {
113319
- if (!t.deleted && t.content.constructor === xr) {
113361
+ if (!t.deleted && t.content.constructor === vr) {
113320
113362
  const r = (
113321
113363
  /** @type {ContentFormat} */
113322
113364
  t.content.key
@@ -113339,7 +113381,7 @@ const rB = (e, t, n) => {
113339
113381
  for (; o; ) {
113340
113382
  if (o.deleted === !1)
113341
113383
  switch (o.content.constructor) {
113342
- case xr:
113384
+ case vr:
113343
113385
  wf(
113344
113386
  a,
113345
113387
  /** @type {ContentFormat} */
@@ -113366,7 +113408,7 @@ const rB = (e, t, n) => {
113366
113408
  o,
113367
113409
  (a) => {
113368
113410
  !a.deleted && /** @type {Item} */
113369
- a.content.constructor === xr && a.constructor !== _i && t.add(
113411
+ a.content.constructor === vr && a.constructor !== _i && t.add(
113370
113412
  /** @type {any} */
113371
113413
  a.parent
113372
113414
  );
@@ -113385,7 +113427,7 @@ const rB = (e, t, n) => {
113385
113427
  /** @type {YText} */
113386
113428
  o.parent
113387
113429
  );
113388
- o.content.constructor === xr ? t.add(i) : DRt(r, o);
113430
+ o.content.constructor === vr ? t.add(i) : DRt(r, o);
113389
113431
  });
113390
113432
  for (const o of t)
113391
113433
  SRt(o);
@@ -113488,7 +113530,7 @@ class LRt extends p5 {
113488
113530
  this.adds(a) ? this.deletes(a) || (s !== "insert" && (f(), s = "insert"), u += /** @type {ContentString} */
113489
113531
  a.content.str) : this.deletes(a) ? (s !== "delete" && (f(), s = "delete"), d += a.length) : a.deleted || (s !== "retain" && (f(), s = "retain"), c += a.length);
113490
113532
  break;
113491
- case xr: {
113533
+ case vr: {
113492
113534
  const { key: h, value: p } = (
113493
113535
  /** @type {ContentFormat} */
113494
113536
  a.content
@@ -113686,7 +113728,7 @@ class Yu extends Rr {
113686
113728
  o.push(d);
113687
113729
  break;
113688
113730
  }
113689
- case xr:
113731
+ case vr:
113690
113732
  Oc(l, t) && (u(), wf(
113691
113733
  i,
113692
113734
  /** @type {ContentFormat} */
@@ -114898,7 +114940,7 @@ class K1 {
114898
114940
  }
114899
114941
  }
114900
114942
  const VRt = (e) => new K1(e.readJSON());
114901
- class xr {
114943
+ class vr {
114902
114944
  /**
114903
114945
  * @param {string} key
114904
114946
  * @param {Object} value
@@ -114928,7 +114970,7 @@ class xr {
114928
114970
  * @return {ContentFormat}
114929
114971
  */
114930
114972
  copy() {
114931
- return new xr(this.key, this.value);
114973
+ return new vr(this.key, this.value);
114932
114974
  }
114933
114975
  /**
114934
114976
  * @param {number} _offset
@@ -114979,7 +115021,7 @@ class xr {
114979
115021
  return 6;
114980
115022
  }
114981
115023
  }
114982
- const URt = (e) => new xr(e.readKey(), e.readJSON());
115024
+ const URt = (e) => new vr(e.readKey(), e.readJSON());
114983
115025
  class w3 {
114984
115026
  /**
114985
115027
  * @param {Array<any>} arr
@@ -115417,7 +115459,7 @@ const rBt = (e) => new Oa(KRt[e.readTypeRef()](e)), uw = (e, t) => {
115417
115459
  return null;
115418
115460
  } else
115419
115461
  d = h._map.get(t.parentSub) || null;
115420
- const p = dr(s, l), m = qt(l, p), g = new En(
115462
+ const p = fr(s, l), m = qt(l, p), g = new En(
115421
115463
  m,
115422
115464
  d,
115423
115465
  d && d.lastId,
@@ -115487,11 +115529,11 @@ let En = class cw extends lA {
115487
115529
  * @return {null | number}
115488
115530
  */
115489
115531
  getMissing(t, n) {
115490
- if (this.origin && this.origin.client !== this.id.client && this.origin.clock >= dr(n, this.origin.client))
115532
+ if (this.origin && this.origin.client !== this.id.client && this.origin.clock >= fr(n, this.origin.client))
115491
115533
  return this.origin.client;
115492
- if (this.rightOrigin && this.rightOrigin.client !== this.id.client && this.rightOrigin.clock >= dr(n, this.rightOrigin.client))
115534
+ if (this.rightOrigin && this.rightOrigin.client !== this.id.client && this.rightOrigin.clock >= fr(n, this.rightOrigin.client))
115493
115535
  return this.rightOrigin.client;
115494
- if (this.parent && this.parent.constructor === e0 && this.id.client !== this.parent.client && this.parent.clock >= dr(n, this.parent.client))
115536
+ if (this.parent && this.parent.constructor === e0 && this.id.client !== this.parent.client && this.parent.clock >= fr(n, this.parent.client))
115495
115537
  return this.parent.client;
115496
115538
  if (this.origin && (this.left = JR(t, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = zo(t, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === _i || this.right && this.right.constructor === _i)
115497
115539
  this.parent = null;
@@ -119474,7 +119516,7 @@ const Kne = (e, t, n, r, o, i) => {
119474
119516
  let t = "", n = e._start;
119475
119517
  const r = {};
119476
119518
  for (; n !== null; )
119477
- n.deleted || (n.countable && n.content instanceof Da ? t += n.content.str : n.content instanceof xr && (r[n.content.key] = null)), n = n.right;
119519
+ n.deleted || (n.countable && n.content instanceof Da ? t += n.content.str : n.content instanceof vr && (r[n.content.key] = null)), n = n.right;
119478
119520
  return {
119479
119521
  str: t,
119480
119522
  nAttrs: r
@@ -119778,14 +119820,14 @@ const ezt = (e, t, n) => e !== t, tzt = (e) => {
119778
119820
  if (d !== null && f !== null) {
119779
119821
  const h = Ea(e.doc.content.size - 1, 0);
119780
119822
  d = fs(d, h), f = fs(f, h), s.push(
119781
- ur.widget(f, () => r(c, u), {
119823
+ cr.widget(f, () => r(c, u), {
119782
119824
  key: u + "",
119783
119825
  side: 10
119784
119826
  })
119785
119827
  );
119786
119828
  const p = fs(d, f), m = Ea(d, f);
119787
119829
  s.push(
119788
- ur.inline(p, m, o(c, u), {
119830
+ cr.inline(p, m, o(c, u), {
119789
119831
  inclusiveEnd: !0,
119790
119832
  inclusiveStart: !1
119791
119833
  })
@@ -120083,7 +120125,7 @@ const ezt = (e, t, n) => e !== t, tzt = (e) => {
120083
120125
  })
120084
120126
  ];
120085
120127
  }
120086
- }), fzt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, hzt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, pzt = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, mzt = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, gzt = hr.create({
120128
+ }), fzt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, hzt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, pzt = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, mzt = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, gzt = pr.create({
120087
120129
  name: "bold",
120088
120130
  addOptions() {
120089
120131
  return {
@@ -120197,7 +120239,7 @@ const ezt = (e, t, n) => e !== t, tzt = (e) => {
120197
120239
  e
120198
120240
  ];
120199
120241
  }
120200
- }), bzt = /(^|[^`])`([^`]+)`(?!`)/, xzt = /(^|[^`])`([^`]+)`(?!`)/g, vzt = hr.create({
120242
+ }), bzt = /(^|[^`])`([^`]+)`(?!`)/, xzt = /(^|[^`])`([^`]+)`(?!`)/g, vzt = pr.create({
120201
120243
  name: "code",
120202
120244
  addOptions() {
120203
120245
  return {
@@ -120662,7 +120704,7 @@ function Tzt(e) {
120662
120704
  if (!(e.selection instanceof rr))
120663
120705
  return null;
120664
120706
  let t = document.createElement("div");
120665
- return t.className = "ProseMirror-gapcursor", wn.create(e.doc, [ur.widget(e.selection.head, t, { key: "gapcursor" })]);
120707
+ return t.className = "ProseMirror-gapcursor", wn.create(e.doc, [cr.widget(e.selection.head, t, { key: "gapcursor" })]);
120666
120708
  }
120667
120709
  const ore = en.create({
120668
120710
  name: "gapCursor",
@@ -121197,7 +121239,7 @@ const sre = are(!1, !0), lre = are(!0, !0), Vzt = en.create({
121197
121239
  })
121198
121240
  ];
121199
121241
  }
121200
- }), Uzt = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Wzt = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Gzt = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Zzt = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Yzt = hr.create({
121242
+ }), Uzt = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Wzt = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Gzt = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Zzt = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Yzt = pr.create({
121201
121243
  name: "italic",
121202
121244
  addOptions() {
121203
121245
  return {
@@ -121384,7 +121426,7 @@ const sre = are(!1, !0), lre = are(!0, !0), Vzt = en.create({
121384
121426
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
121385
121427
  };
121386
121428
  }
121387
- }), Qzt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Xzt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, e_t = hr.create({
121429
+ }), Qzt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Xzt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, e_t = pr.create({
121388
121430
  name: "strike",
121389
121431
  addOptions() {
121390
121432
  return {
@@ -121450,7 +121492,7 @@ const sre = are(!1, !0), lre = are(!0, !0), Vzt = en.create({
121450
121492
  const k = [];
121451
121493
  return this.options.bold !== !1 && k.push(gzt.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.blockquote !== !1 && k.push(dzt.configure((t = this.options) === null || t === void 0 ? void 0 : t.blockquote)), this.options.bulletList !== !1 && k.push(ere.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && k.push(vzt.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && k.push(tre.configure((o = this.options) === null || o === void 0 ? void 0 : o.codeBlock)), this.options.document !== !1 && k.push(nre.configure((i = this.options) === null || i === void 0 ? void 0 : i.document)), this.options.dropcursor !== !1 && k.push(rre.configure((a = this.options) === null || a === void 0 ? void 0 : a.dropcursor)), this.options.gapcursor !== !1 && k.push(ore.configure((s = this.options) === null || s === void 0 ? void 0 : s.gapcursor)), this.options.hardBreak !== !1 && k.push(Lzt.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && k.push(Nzt.configure((u = this.options) === null || u === void 0 ? void 0 : u.heading)), this.options.history !== !1 && k.push(Vzt.configure((c = this.options) === null || c === void 0 ? void 0 : c.history)), this.options.horizontalRule !== !1 && k.push(ure.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && k.push(Yzt.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && k.push(cre.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && k.push($zt.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && k.push(Jzt.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && k.push(e_t.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && k.push(t_t.configure((b = this.options) === null || b === void 0 ? void 0 : b.text)), k;
121452
121494
  }
121453
- }), r_t = hr.create({
121495
+ }), r_t = pr.create({
121454
121496
  name: "textStyle",
121455
121497
  priority: 101,
121456
121498
  addOptions() {
@@ -122335,7 +122377,7 @@ function jB(e, t) {
122335
122377
  o && n.push(o);
122336
122378
  }), !e || e.replace(j_t, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
122337
122379
  }
122338
- const A_t = hr.create({
122380
+ const A_t = pr.create({
122339
122381
  name: "link",
122340
122382
  priority: 1e3,
122341
122383
  keepOnSplit: !1,
@@ -122476,7 +122518,7 @@ const A_t = hr.create({
122476
122518
  if ((l || !this.options.showOnlyCurrent) && u) {
122477
122519
  const c = [this.options.emptyNodeClass];
122478
122520
  i && c.push(this.options.emptyEditorClass);
122479
- const d = ur.node(s, s + a.nodeSize, {
122521
+ const d = cr.node(s, s + a.nodeSize, {
122480
122522
  class: c.join(" "),
122481
122523
  "data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
122482
122524
  editor: this.editor,
@@ -122494,7 +122536,7 @@ const A_t = hr.create({
122494
122536
  })
122495
122537
  ];
122496
122538
  }
122497
- }), S_t = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, T_t = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, L_t = hr.create({
122539
+ }), S_t = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, T_t = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, L_t = pr.create({
122498
122540
  name: "highlight",
122499
122541
  addOptions() {
122500
122542
  return {
@@ -122692,7 +122734,7 @@ const A_t = hr.create({
122692
122734
  })
122693
122735
  ];
122694
122736
  }
122695
- }), R_t = hr.create({
122737
+ }), R_t = pr.create({
122696
122738
  name: "underline",
122697
122739
  addOptions() {
122698
122740
  return {
@@ -123125,7 +123167,7 @@ const vre = ({
123125
123167
  ) }),
123126
123168
  e.attrs.caption && !e.attrs.showCaptionInput && /* @__PURE__ */ F.jsx("div", { className: "caption", children: e.attrs.caption }),
123127
123169
  !r && /* @__PURE__ */ F.jsx("span", { className: "absolute top-2 right-2 transition-all rounded-md overflow-hidden box-border border color-border-default color-bg-default shadow-elevation-3 opacity-0 group-hover:opacity-100 flex gap-1 p-1", children: AB.map((Q, Y) => /* @__PURE__ */ F.jsx(
123128
- wr,
123170
+ yr,
123129
123171
  {
123130
123172
  tooltip: Q.tooltip,
123131
123173
  isActive: c[Q.tooltip],
@@ -128045,7 +128087,7 @@ const Bqt = (e) => {
128045
128087
  a
128046
128088
  )),
128047
128089
  /* @__PURE__ */ F.jsx(
128048
- gr,
128090
+ lr,
128049
128091
  {
128050
128092
  align: "end",
128051
128093
  sideOffset: 10,
@@ -129455,7 +129497,7 @@ function vVt(e) {
129455
129497
  if (!(e.selection instanceof rn)) return null;
129456
129498
  let t = [];
129457
129499
  return e.selection.forEachCell((n, r) => {
129458
- t.push(ur.node(r, r + n.nodeSize, {
129500
+ t.push(cr.node(r, r + n.nodeSize, {
129459
129501
  class: "selectedCell"
129460
129502
  }));
129461
129503
  }), wn.create(e.doc, t);
@@ -130389,7 +130431,7 @@ function aUt(e, t) {
130389
130431
  let u = s + l * i.width - 1;
130390
130432
  if ((s == i.width || i.map[u] != i.map[u + 1]) && (l == 0 || i.map[u - 1] != i.map[u - 1 - i.width])) {
130391
130433
  let c = i.map[u], d = a + c + o.nodeAt(c).nodeSize - 1, f = document.createElement("div");
130392
- f.className = "column-resize-handle", n.push(ur.widget(d, f));
130434
+ f.className = "column-resize-handle", n.push(cr.widget(d, f));
130393
130435
  }
130394
130436
  }
130395
130437
  return wn.create(e.doc, n);
@@ -131257,9 +131299,21 @@ const jUt = en.create({
131257
131299
  new nn({
131258
131300
  key: e,
131259
131301
  appendTransaction: (n, r, o) => {
131260
- const { doc: i, tr: a, schema: s } = o, l = e.getState(o), u = i.content.size, c = s.nodes[this.options.node];
131261
- if (l)
131262
- return a.insert(u, c.create());
131302
+ const { doc: i, tr: a, schema: s } = o;
131303
+ if (!e.getState(o)) return;
131304
+ const u = i.content.size, c = s.nodes[this.options.node], d = {
131305
+ class: "trailing-node"
131306
+ };
131307
+ let f = s.text(" ");
131308
+ const h = this.editor.getAttributes("textStyle");
131309
+ if (s.marks.textStyle) {
131310
+ const m = s.marks.textStyle.create({
131311
+ ...h
131312
+ });
131313
+ f = s.text(" ", [m]);
131314
+ }
131315
+ const p = c.create(d, f);
131316
+ return a.insert(u, p);
131263
131317
  },
131264
131318
  state: {
131265
131319
  init: (n, r) => {
@@ -132337,7 +132391,7 @@ class rWt extends aoe {
132337
132391
  };
132338
132392
  }
132339
132393
  }
132340
- const doe = hr.create({
132394
+ const doe = pr.create({
132341
132395
  name: "markdownHTMLMark",
132342
132396
  /**
132343
132397
  * @return {{markdown: MarkdownMarkSpec}}
@@ -132715,7 +132769,7 @@ const TWt = _t.create({
132715
132769
  }
132716
132770
  };
132717
132771
  }
132718
- }), BWt = hr.create({
132772
+ }), BWt = pr.create({
132719
132773
  name: "bold"
132720
132774
  }), zWt = BWt.extend({
132721
132775
  /**
@@ -132731,7 +132785,7 @@ const TWt = _t.create({
132731
132785
  }
132732
132786
  };
132733
132787
  }
132734
- }), _Wt = hr.create({
132788
+ }), _Wt = pr.create({
132735
132789
  name: "code"
132736
132790
  }), PWt = _Wt.extend({
132737
132791
  /**
@@ -132747,7 +132801,7 @@ const TWt = _t.create({
132747
132801
  }
132748
132802
  };
132749
132803
  }
132750
- }), HWt = hr.create({
132804
+ }), HWt = pr.create({
132751
132805
  name: "italic"
132752
132806
  }), qWt = HWt.extend({
132753
132807
  /**
@@ -132763,7 +132817,7 @@ const TWt = _t.create({
132763
132817
  }
132764
132818
  };
132765
132819
  }
132766
- }), VWt = hr.create({
132820
+ }), VWt = pr.create({
132767
132821
  name: "link"
132768
132822
  }), UWt = VWt.extend({
132769
132823
  /**
@@ -132779,7 +132833,7 @@ const TWt = _t.create({
132779
132833
  }
132780
132834
  };
132781
132835
  }
132782
- }), WWt = hr.create({
132836
+ }), WWt = pr.create({
132783
132837
  name: "strike"
132784
132838
  }), GWt = WWt.extend({
132785
132839
  /**
@@ -136753,7 +136807,7 @@ function S(e, t, n, r, o, i) {
136753
136807
  replace: r
136754
136808
  }, i && r && (An[e][r] = An[e][o]);
136755
136809
  }
136756
- var O = "math", qe = "text", V = "main", ie = "ams", _n = "accent-token", ct = "bin", Do = "close", Mf = "inner", At = "mathord", vr = "op-token", Ei = "open", w5 = "punct", ae = "rel", _l = "spacing", pe = "textord";
136810
+ var O = "math", qe = "text", V = "main", ie = "ams", _n = "accent-token", ct = "bin", Do = "close", Mf = "inner", At = "mathord", kr = "op-token", Ei = "open", w5 = "punct", ae = "rel", _l = "spacing", pe = "textord";
136757
136811
  S(O, V, ae, "≡", "\\equiv", !0);
136758
136812
  S(O, V, ae, "≺", "\\prec", !0);
136759
136813
  S(O, V, ae, "≻", "\\succ", !0);
@@ -137260,26 +137314,26 @@ S(O, V, ae, "↓", "\\downarrow", !0);
137260
137314
  S(O, V, ae, "⇓", "\\Downarrow", !0);
137261
137315
  S(O, V, ae, "↕", "\\updownarrow", !0);
137262
137316
  S(O, V, ae, "⇕", "\\Updownarrow", !0);
137263
- S(O, V, vr, "∐", "\\coprod");
137264
- S(O, V, vr, "⋁", "\\bigvee");
137265
- S(O, V, vr, "⋀", "\\bigwedge");
137266
- S(O, V, vr, "⨄", "\\biguplus");
137267
- S(O, V, vr, "⋂", "\\bigcap");
137268
- S(O, V, vr, "⋃", "\\bigcup");
137269
- S(O, V, vr, "∫", "\\int");
137270
- S(O, V, vr, "∫", "\\intop");
137271
- S(O, V, vr, "∬", "\\iint");
137272
- S(O, V, vr, "∭", "\\iiint");
137273
- S(O, V, vr, "∏", "\\prod");
137274
- S(O, V, vr, "∑", "\\sum");
137275
- S(O, V, vr, "⨂", "\\bigotimes");
137276
- S(O, V, vr, "⨁", "\\bigoplus");
137277
- S(O, V, vr, "⨀", "\\bigodot");
137278
- S(O, V, vr, "∮", "\\oint");
137279
- S(O, V, vr, "∯", "\\oiint");
137280
- S(O, V, vr, "∰", "\\oiiint");
137281
- S(O, V, vr, "⨆", "\\bigsqcup");
137282
- S(O, V, vr, "∫", "\\smallint");
137317
+ S(O, V, kr, "∐", "\\coprod");
137318
+ S(O, V, kr, "⋁", "\\bigvee");
137319
+ S(O, V, kr, "⋀", "\\bigwedge");
137320
+ S(O, V, kr, "⨄", "\\biguplus");
137321
+ S(O, V, kr, "⋂", "\\bigcap");
137322
+ S(O, V, kr, "⋃", "\\bigcup");
137323
+ S(O, V, kr, "∫", "\\int");
137324
+ S(O, V, kr, "∫", "\\intop");
137325
+ S(O, V, kr, "∬", "\\iint");
137326
+ S(O, V, kr, "∭", "\\iiint");
137327
+ S(O, V, kr, "∏", "\\prod");
137328
+ S(O, V, kr, "∑", "\\sum");
137329
+ S(O, V, kr, "⨂", "\\bigotimes");
137330
+ S(O, V, kr, "⨁", "\\bigoplus");
137331
+ S(O, V, kr, "⨀", "\\bigodot");
137332
+ S(O, V, kr, "∮", "\\oint");
137333
+ S(O, V, kr, "∯", "\\oiint");
137334
+ S(O, V, kr, "∰", "\\oiiint");
137335
+ S(O, V, kr, "⨆", "\\bigsqcup");
137336
+ S(O, V, kr, "∫", "\\smallint");
137283
137337
  S(qe, V, Mf, "…", "\\textellipsis");
137284
137338
  S(O, V, Mf, "…", "\\mathellipsis");
137285
137339
  S(qe, V, Mf, "…", "\\ldots", !0);
@@ -137895,7 +137949,7 @@ function $1(e) {
137895
137949
  }
137896
137950
  var lb = function(t) {
137897
137951
  return t.type === "ordgroup" && t.body.length === 1 ? t.body[0] : t;
137898
- }, fr = function(t) {
137952
+ }, hr = function(t) {
137899
137953
  return t.type === "ordgroup" ? t.body : [t];
137900
137954
  }, Tl = Ae.makeSpan, kZt = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], wZt = ["rightmost", "mrel", "mclose", "mpunct"], FZt = {
137901
137955
  display: Dt.DISPLAY,
@@ -138756,7 +138810,7 @@ st({
138756
138810
  mode: n.mode,
138757
138811
  mclass: "m" + r.slice(5),
138758
138812
  // TODO(kevinb): don't prefix with 'm'
138759
- body: fr(o),
138813
+ body: hr(o),
138760
138814
  isCharacterBox: Ct.isCharacterBox(o)
138761
138815
  };
138762
138816
  },
@@ -138781,7 +138835,7 @@ st({
138781
138835
  type: "mclass",
138782
138836
  mode: n.mode,
138783
138837
  mclass: C5(t[0]),
138784
- body: fr(t[1]),
138838
+ body: hr(t[1]),
138785
138839
  isCharacterBox: Ct.isCharacterBox(t[1])
138786
138840
  };
138787
138841
  }
@@ -138806,7 +138860,7 @@ st({
138806
138860
  parentIsSupSub: !1,
138807
138861
  symbol: !1,
138808
138862
  suppressBaseShift: r !== "\\stackrel",
138809
- body: fr(o)
138863
+ body: hr(o)
138810
138864
  }, l = {
138811
138865
  type: "supsub",
138812
138866
  mode: i.mode,
@@ -138840,7 +138894,7 @@ st({
138840
138894
  type: "pmb",
138841
138895
  mode: n.mode,
138842
138896
  mclass: C5(t[0]),
138843
- body: fr(t[0])
138897
+ body: hr(t[0])
138844
138898
  };
138845
138899
  },
138846
138900
  htmlBuilder(e, t) {
@@ -139080,7 +139134,7 @@ st({
139080
139134
  type: "color",
139081
139135
  mode: n.mode,
139082
139136
  color: r,
139083
- body: fr(o)
139137
+ body: hr(o)
139084
139138
  };
139085
139139
  },
139086
139140
  htmlBuilder: Ioe,
@@ -141056,7 +141110,7 @@ st({
141056
141110
  type: "href",
141057
141111
  mode: n.mode,
141058
141112
  href: o,
141059
- body: fr(r)
141113
+ body: hr(r)
141060
141114
  } : n.formatUnsupportedCmd("\\href");
141061
141115
  },
141062
141116
  htmlBuilder: (e, t) => {
@@ -141103,7 +141157,7 @@ st({
141103
141157
  type: "href",
141104
141158
  mode: n.mode,
141105
141159
  href: r,
141106
- body: fr(s)
141160
+ body: hr(s)
141107
141161
  };
141108
141162
  }
141109
141163
  });
@@ -141123,7 +141177,7 @@ st({
141123
141177
  return {
141124
141178
  type: "hbox",
141125
141179
  mode: n.mode,
141126
- body: fr(t[0])
141180
+ body: hr(t[0])
141127
141181
  };
141128
141182
  },
141129
141183
  htmlBuilder(e, t) {
@@ -141189,7 +141243,7 @@ st({
141189
141243
  type: "html",
141190
141244
  mode: n.mode,
141191
141245
  attributes: l,
141192
- body: fr(a)
141246
+ body: hr(a)
141193
141247
  } : n.formatUnsupportedCmd(r);
141194
141248
  },
141195
141249
  htmlBuilder: (e, t) => {
@@ -141216,8 +141270,8 @@ st({
141216
141270
  return {
141217
141271
  type: "htmlmathml",
141218
141272
  mode: n.mode,
141219
- html: fr(t[0]),
141220
- mathml: fr(t[1])
141273
+ html: hr(t[0]),
141274
+ mathml: hr(t[1])
141221
141275
  };
141222
141276
  },
141223
141277
  htmlBuilder: (e, t) => {
@@ -141456,10 +141510,10 @@ st({
141456
141510
  return {
141457
141511
  type: "mathchoice",
141458
141512
  mode: n.mode,
141459
- display: fr(t[0]),
141460
- text: fr(t[1]),
141461
- script: fr(t[2]),
141462
- scriptscript: fr(t[3])
141513
+ display: hr(t[0]),
141514
+ text: hr(t[1]),
141515
+ script: hr(t[2]),
141516
+ scriptscript: hr(t[3])
141463
141517
  };
141464
141518
  },
141465
141519
  htmlBuilder: (e, t) => {
@@ -141666,7 +141720,7 @@ st({
141666
141720
  limits: !1,
141667
141721
  parentIsSupSub: !1,
141668
141722
  symbol: !1,
141669
- body: fr(r)
141723
+ body: hr(r)
141670
141724
  };
141671
141725
  },
141672
141726
  htmlBuilder: Cf,
@@ -141814,7 +141868,7 @@ st({
141814
141868
  return {
141815
141869
  type: "operatorname",
141816
141870
  mode: n.mode,
141817
- body: fr(o),
141871
+ body: hr(o),
141818
141872
  alwaysHandleSupSub: r === "\\operatornamewithlimits",
141819
141873
  limits: !1,
141820
141874
  parentIsSupSub: !1
@@ -141889,7 +141943,7 @@ st({
141889
141943
  return {
141890
141944
  type: "phantom",
141891
141945
  mode: n.mode,
141892
- body: fr(r)
141946
+ body: hr(r)
141893
141947
  };
141894
141948
  },
141895
141949
  htmlBuilder: (e, t) => {
@@ -141932,7 +141986,7 @@ st({
141932
141986
  }, t), Ae.makeSpan(["mord"], [n], t);
141933
141987
  },
141934
141988
  mathmlBuilder: (e, t) => {
141935
- var n = ei(fr(e.body), t), r = new Ye.MathNode("mphantom", n), o = new Ye.MathNode("mpadded", [r]);
141989
+ var n = ei(hr(e.body), t), r = new Ye.MathNode("mphantom", n), o = new Ye.MathNode("mpadded", [r]);
141936
141990
  return o.setAttribute("height", "0px"), o.setAttribute("depth", "0px"), o;
141937
141991
  }
141938
141992
  });
@@ -141958,7 +142012,7 @@ st({
141958
142012
  return Ae.makeSpan(["mord", "rlap"], [n, r], t);
141959
142013
  },
141960
142014
  mathmlBuilder: (e, t) => {
141961
- var n = ei(fr(e.body), t), r = new Ye.MathNode("mphantom", n), o = new Ye.MathNode("mpadded", [r]);
142015
+ var n = ei(hr(e.body), t), r = new Ye.MathNode("mphantom", n), o = new Ye.MathNode("mpadded", [r]);
141962
142016
  return o.setAttribute("width", "0px"), o;
141963
142017
  }
141964
142018
  });
@@ -142526,7 +142580,7 @@ st({
142526
142580
  return {
142527
142581
  type: "text",
142528
142582
  mode: n.mode,
142529
- body: fr(o),
142583
+ body: hr(o),
142530
142584
  font: r
142531
142585
  };
142532
142586
  },
@@ -145877,7 +145931,7 @@ _t.create({
145877
145931
  return ["footnote-ref", Pt(e)];
145878
145932
  }
145879
145933
  });
145880
- const FKt = hr.create({
145934
+ const FKt = pr.create({
145881
145935
  name: "superscript",
145882
145936
  addOptions() {
145883
145937
  return {
@@ -145912,7 +145966,7 @@ const FKt = hr.create({
145912
145966
  "Mod-.": () => this.editor.commands.toggleSuperscript()
145913
145967
  };
145914
145968
  }
145915
- }), MKt = hr.create({
145969
+ }), MKt = pr.create({
145916
145970
  name: "subscript",
145917
145971
  addOptions() {
145918
145972
  return {
@@ -147536,7 +147590,7 @@ function y_({ doc: e, name: t, lowlight: n, defaultLanguage: r }) {
147536
147590
  Tie(c).forEach((d) => {
147537
147591
  const f = s + d.text.length;
147538
147592
  if (d.classes.length) {
147539
- const h = ur.inline(s, f, {
147593
+ const h = cr.inline(s, f, {
147540
147594
  class: d.classes.join(" ")
147541
147595
  });
147542
147596
  o.push(h);
@@ -161970,7 +162024,7 @@ function sae({ pluginKey: e = nXt, editor: t, char: n = "@", allowSpaces: r = !1
161970
162024
  decorations(g) {
161971
162025
  const { active: b, range: k, decorationId: v } = m.getState(g);
161972
162026
  return b ? wn.create(g.doc, [
161973
- ur.inline(k.from, k.to, {
162027
+ cr.inline(k.from, k.to, {
161974
162028
  nodeName: a,
161975
162029
  class: s,
161976
162030
  "data-decoration-id": v
@@ -222123,7 +222177,7 @@ const aXt = 200, sXt = new un("emoji"), lXt = _t.create({
222123
222177
  delimiters: "dollar",
222124
222178
  katexOptions: {
222125
222179
  throwOnError: !1,
222126
- strict: !0
222180
+ strict: !1
222127
222181
  }
222128
222182
  }),
222129
222183
  wKt,
@@ -222317,6 +222371,7 @@ const mXt = ({
222317
222371
  icon: /* @__PURE__ */ F.jsx(Pe, { name: "Callout", size: "md" }),
222318
222372
  image: "",
222319
222373
  command: ({ editor: o, range: i }) => {
222374
+ const a = o.getAttributes("textStyle");
222320
222375
  o.chain().focus().deleteRange(i).insertContent({
222321
222376
  type: "callout",
222322
222377
  content: [
@@ -222325,7 +222380,7 @@ const mXt = ({
222325
222380
  content: []
222326
222381
  }
222327
222382
  ]
222328
- }).run();
222383
+ }).run(), a && o.chain().focus().setMark("textStyle", a).run();
222329
222384
  }
222330
222385
  },
222331
222386
  {
@@ -223211,7 +223266,7 @@ const i9 = Xw.getInstance(), WXt = (e) => ({
223211
223266
  if (!e) return { type: "paragraph", content: [] };
223212
223267
  const r = { ...e };
223213
223268
  return r.content = (o = e.content) == null ? void 0 : o.map((i) => GXt(i) ? (console.error("corrupted data:", i), n == null || n("Invalid content: " + typeof i), t ? null : WXt(i)) : i).filter((i) => i !== null), r;
223214
- }, ZXt = hr.create({
223269
+ }, ZXt = pr.create({
223215
223270
  name: "comment",
223216
223271
  addOptions() {
223217
223272
  return {
@@ -223538,7 +223593,10 @@ const i9 = Xw.getInstance(), WXt = (e) => ({
223538
223593
  xe == null || xe.commands.unsetCommentActive();
223539
223594
  }
223540
223595
  },
223541
- handleClick: X
223596
+ handleClick: X,
223597
+ attributes: {
223598
+ spellCheck: "true"
223599
+ }
223542
223600
  },
223543
223601
  autofocus: g ? !1 : "start",
223544
223602
  immediatelyRender: !1,
@@ -223848,7 +223906,7 @@ const i9 = Xw.getInstance(), WXt = (e) => ({
223848
223906
  "mobile" + x.title + "skeleton"
223849
223907
  ) : No(
223850
223908
  /* @__PURE__ */ F.jsx(
223851
- wr,
223909
+ yr,
223852
223910
  {
223853
223911
  onClick: x.onClick,
223854
223912
  isActive: x.isActive,
@@ -223866,7 +223924,7 @@ const i9 = Xw.getInstance(), WXt = (e) => ({
223866
223924
  "mobile" + x.title
223867
223925
  ) : No(
223868
223926
  /* @__PURE__ */ F.jsx(
223869
- wr,
223927
+ yr,
223870
223928
  {
223871
223929
  onClick: x.onClick,
223872
223930
  icon: x.icon,
@@ -223879,7 +223937,7 @@ const i9 = Xw.getInstance(), WXt = (e) => ({
223879
223937
  "skeleton" + x.title
223880
223938
  ) : No(
223881
223939
  /* @__PURE__ */ F.jsx(
223882
- wr,
223940
+ yr,
223883
223941
  {
223884
223942
  onClick: x.onClick,
223885
223943
  icon: x.icon,
@@ -226440,13 +226498,15 @@ const P_ = ke.memo(Mae), yen = ({
226440
226498
  );
226441
226499
  ze(() => {
226442
226500
  if (!o) {
226443
- const c = () => {
226444
- const f = Date.now();
226445
- new Date(r.timestamp).getTime() <= f && i(!0);
226446
- };
226447
- c();
226448
- const d = setInterval(c, 6e4);
226449
- return () => clearInterval(d);
226501
+ const c = Date.now(), f = new Date(r.timestamp).getTime() - c;
226502
+ if (f <= 0) {
226503
+ i(!0);
226504
+ return;
226505
+ }
226506
+ const h = setTimeout(() => {
226507
+ i(!0);
226508
+ }, f);
226509
+ return () => clearTimeout(h);
226450
226510
  }
226451
226511
  }, [o, r.timestamp]);
226452
226512
  const u = We(() => {
@@ -226466,7 +226526,7 @@ const P_ = ke.memo(Mae), yen = ({
226466
226526
  ),
226467
226527
  contentEditable: !1,
226468
226528
  children: /* @__PURE__ */ F.jsx(
226469
- gr,
226529
+ lr,
226470
226530
  {
226471
226531
  sideOffset: 10,
226472
226532
  align: "start",