@fileverse-dev/ddoc 3.0.45-patch-40 → 3.0.45-patch-41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var nEe = Object.defineProperty;
2
2
  var rEe = (e, t, n) => t in e ? nEe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ct = (e, t, n) => rEe(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as W from "react";
5
- import Ne, { createRef as bu, memo as $i, createContext as Mn, createElement as rt, useContext as Ft, version as QW, useRef as Ue, useState as Ie, useDebugValue as Ok, useEffect as Be, forwardRef as dn, useLayoutEffect as Gi, useCallback as _e, useMemo as it, useId as ym, Children as jse, isValidElement as Lse, useInsertionEffect as Rk, Fragment as G1, Suspense as oEe, Component as aO, useReducer as Nse, cloneElement as sO, useImperativeHandle as bm, useDeferredValue as iEe } from "react";
5
+ import Ne, { createRef as bu, memo as $i, createContext as Mn, createElement as rt, useContext as Ft, version as QW, useRef as Ue, useState as Ie, useDebugValue as Ok, useEffect as Be, forwardRef as dn, useLayoutEffect as Gi, useCallback as _e, useMemo as ot, useId as ym, Children as jse, isValidElement as Lse, useInsertionEffect as Rk, Fragment as G1, Suspense as oEe, Component as aO, useReducer as Nse, cloneElement as sO, useImperativeHandle as bm, useDeferredValue as iEe } from "react";
6
6
  import * as V6 from "react-dom";
7
7
  import lO, { flushSync as aEe, createPortal as vm, unstable_batchedUpdates as Iv } from "react-dom";
8
8
  var tn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -49670,7 +49670,7 @@ const QTt = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
49670
49670
  if (!f)
49671
49671
  return;
49672
49672
  r && r();
49673
- }, [s, r]), c = it(
49673
+ }, [s, r]), c = ot(
49674
49674
  () => ({
49675
49675
  id: l,
49676
49676
  initial: t,
@@ -49686,7 +49686,7 @@ const QTt = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
49686
49686
  */
49687
49687
  i ? [Math.random(), u] : [n, u]
49688
49688
  );
49689
- return it(() => {
49689
+ return ot(() => {
49690
49690
  s.forEach((d, f) => s.set(f, !1));
49691
49691
  }, [n]), W.useEffect(() => {
49692
49692
  !n && !s.size && r && r();
@@ -49714,7 +49714,7 @@ function aZ(e) {
49714
49714
  }), t;
49715
49715
  }
49716
49716
  const fR = typeof window < "u", D1e = fR ? Gi : Be, tjt = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
49717
- const [s, l] = C1e(a), u = it(() => aZ(e), [e]), c = a && !s ? [] : u.map(Yv), d = Ue(!0), f = Ue(u), h = cR(() => /* @__PURE__ */ new Map()), [p, g] = Ie(u), [m, y] = Ie(u);
49717
+ const [s, l] = C1e(a), u = ot(() => aZ(e), [e]), c = a && !s ? [] : u.map(Yv), d = Ue(!0), f = Ue(u), h = cR(() => /* @__PURE__ */ new Map()), [p, g] = Ie(u), [m, y] = Ie(u);
49718
49718
  D1e(() => {
49719
49719
  d.current = !1, f.current = u;
49720
49720
  for (let x = 0; x < m.length; x++) {
@@ -49970,7 +49970,7 @@ function cjt(e, t) {
49970
49970
  }
49971
49971
  function djt(e) {
49972
49972
  const { initial: t, animate: n } = cjt(e, Ft(kF));
49973
- return it(() => ({ initial: t, animate: n }), [uZ(t), uZ(n)]);
49973
+ return ot(() => ({ initial: t, animate: n }), [uZ(t), uZ(n)]);
49974
49974
  }
49975
49975
  function uZ(e) {
49976
49976
  return Array.isArray(e) ? e.join(" ") : e;
@@ -50513,7 +50513,7 @@ function q1e(e, t, n) {
50513
50513
  !di(t[r]) && !U1e(r, n) && (e[r] = t[r]);
50514
50514
  }
50515
50515
  function qjt({ transformTemplate: e }, t) {
50516
- return it(() => {
50516
+ return ot(() => {
50517
50517
  const n = CR();
50518
50518
  return kR(n, t, e), Object.assign({}, n.vars, n.style);
50519
50519
  }, [t]);
@@ -50527,7 +50527,7 @@ function Wjt(e, t) {
50527
50527
  return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
50528
50528
  }
50529
50529
  function $jt(e, t, n, r) {
50530
- const o = it(() => {
50530
+ const o = ot(() => {
50531
50531
  const i = O1e();
50532
50532
  return FR(i, t, DR(r), e.transformTemplate), {
50533
50533
  ...i.attrs,
@@ -50542,7 +50542,7 @@ function $jt(e, t, n, r) {
50542
50542
  }
50543
50543
  function Gjt(e = !1) {
50544
50544
  return (t, n, r, { latestValues: o }, i) => {
50545
- const a = (bR(t) ? $jt : Wjt)(n, o, i, t), s = ljt(n, typeof t == "string", e), l = t !== G1 ? { ...s, ...a, ref: r } : {}, { children: u } = n, c = it(() => di(u) ? u.get() : u, [u]);
50545
+ const a = (bR(t) ? $jt : Wjt)(n, o, i, t), s = ljt(n, typeof t == "string", e), l = t !== G1 ? { ...s, ...a, ref: r } : {}, { children: u } = n, c = ot(() => di(u) ? u.get() : u, [u]);
50546
50546
  return rt(t, {
50547
50547
  ...l,
50548
50548
  children: c
@@ -60815,7 +60815,7 @@ function nzt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
60815
60815
  const rzt = () => () => {
60816
60816
  };
60817
60817
  function ozt() {
60818
- const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = d5(), i = Ne.useRef(null), a = it(() => document.body.style.backgroundColor, []);
60818
+ const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = d5(), i = Ne.useRef(null), a = ot(() => document.body.style.backgroundColor, []);
60819
60819
  function s() {
60820
60820
  return (window.innerWidth - ON) / window.innerWidth;
60821
60821
  }
@@ -62908,7 +62908,7 @@ function Qzt() {
62908
62908
  }
62909
62909
  function Ype() {
62910
62910
  var e = Ue({}), t = QUt();
62911
- return it(function() {
62911
+ return ot(function() {
62912
62912
  var n = parseFloat("" + t);
62913
62913
  return !t || Number.isNaN(n) ? e.current : eC.reduce(function(r, o) {
62914
62914
  return tUt(o, n) && (r[pi(o)] = !0), r;
@@ -80648,7 +80648,7 @@ function AHt() {
80648
80648
  SHt(), THt(), jHt(), LHt(), NHt();
80649
80649
  }
80650
80650
  function SHt() {
80651
- var e = Om(), t = E2e(), n = sHt(), r = K0(), o = mp(), i = F2e(), a = mHt(), s = gp(), l = it(function() {
80651
+ var e = Om(), t = E2e(), n = sHt(), r = K0(), o = mp(), i = F2e(), a = mHt(), s = gp(), l = ot(function() {
80652
80652
  return function(u) {
80653
80653
  var c = u.key;
80654
80654
  switch (a(), c) {
@@ -80671,7 +80671,7 @@ function SHt() {
80671
80671
  }, [e, r, n, l]);
80672
80672
  }
80673
80673
  function THt() {
80674
- var e = bHt(), t = Om(), n = ps(), r = K0(), o = h5(), i = o[1], a = T2e(), s = EP(), l = it(function() {
80674
+ var e = bHt(), t = Om(), n = ps(), r = K0(), o = h5(), i = o[1], a = T2e(), s = EP(), l = ot(function() {
80675
80675
  return function(u) {
80676
80676
  var c = u.key;
80677
80677
  switch (c) {
@@ -80698,7 +80698,7 @@ function THt() {
80698
80698
  }, [t, r, l]);
80699
80699
  }
80700
80700
  function jHt() {
80701
- var e = CP(), t = mp(), n = K0(), r = T2e(), o = h5(), i = o[0], a = o[1], s = S2e(), l = EP(), u = AP(), c = it(function() {
80701
+ var e = CP(), t = mp(), n = K0(), r = T2e(), o = h5(), i = o[0], a = o[1], s = S2e(), l = EP(), u = AP(), c = ot(function() {
80702
80702
  return (
80703
80703
  // eslint-disable-next-line complexity
80704
80704
  function(d) {
@@ -80750,7 +80750,7 @@ function jHt() {
80750
80750
  }, [e, n, i, c]);
80751
80751
  }
80752
80752
  function LHt() {
80753
- var e = mp(), t = DP(), n = ps(), r = AP(), o = it(function() {
80753
+ var e = mp(), t = DP(), n = ps(), r = AP(), o = ot(function() {
80754
80754
  return function(i) {
80755
80755
  var a = i.key;
80756
80756
  switch (a) {
@@ -80781,7 +80781,7 @@ function LHt() {
80781
80781
  }, [t, n, o]);
80782
80782
  }
80783
80783
  function NHt() {
80784
- var e = ps(), t = _Ht(), n = A2e(), r = F2e(), o = gp(), i = AP(), a = it(function() {
80784
+ var e = ps(), t = _Ht(), n = A2e(), r = F2e(), o = gp(), i = AP(), a = ot(function() {
80785
80785
  return (
80786
80786
  // eslint-disable-next-line complexity
80787
80787
  function(s) {
@@ -94001,7 +94001,7 @@ async function SC(e, t) {
94001
94001
  });
94002
94002
  return oe === "0x" ? { data: void 0 } : { data: oe };
94003
94003
  } catch (I) {
94004
- const B = LJt(I), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-Dxh7WXDf.mjs");
94004
+ const B = LJt(I), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-CQGWcI_f.mjs");
94005
94005
  if (e.ccipRead !== !1 && (B == null ? void 0 : B.slice(0, 10)) === $ && x)
94006
94006
  return { data: await U(e, { data: B, to: x }) };
94007
94007
  throw _ && (B == null ? void 0 : B.slice(0, 10)) === "0x101bb98d" ? new dXt({ factory: f }) : w3e(I, {
@@ -105553,12 +105553,12 @@ const w4e = Mn(void 0), Zon = ({
105553
105553
  }
105554
105554
  },
105555
105555
  [O, re, f]
105556
- ), J = it(
105556
+ ), J = ot(
105557
105557
  () => n.filter(
105558
105558
  (Oe) => (Oe.tabId ?? Pf) === l
105559
105559
  ),
105560
105560
  [n, l]
105561
- ), G = it(
105561
+ ), G = ot(
105562
105562
  () => J.find((Oe) => Oe.id === a),
105563
105563
  [J, a]
105564
105564
  );
@@ -105726,12 +105726,12 @@ const w4e = Mn(void 0), Zon = ({
105726
105726
  Oe.currentTarget.style.height = `${Ge}px`;
105727
105727
  },
105728
105728
  []
105729
- ), je = it(
105729
+ ), je = ot(
105730
105730
  () => J.filter(
105731
105731
  (Oe) => !Oe.resolved && Oe.selectedContent && Oe.selectedContent.length > 0 && !Oe.deleted
105732
105732
  ),
105733
105733
  [J]
105734
- ), Pe = it(
105734
+ ), Pe = ot(
105735
105735
  () => je.findIndex((Oe) => Oe.id === a),
105736
105736
  [je, a]
105737
105737
  ), We = _e(() => {
@@ -105756,7 +105756,7 @@ const w4e = Mn(void 0), Zon = ({
105756
105756
  t.commands.setTextSelection({ from: Ke, to: yt }), H(Ge.id || "");
105757
105757
  }
105758
105758
  }
105759
- }, [Pe, je, t, H]), $e = it(
105759
+ }, [Pe, je, t, H]), $e = ot(
105760
105760
  () => ({
105761
105761
  comments: J,
105762
105762
  showResolved: D,
@@ -116436,7 +116436,7 @@ const Kcn = /* @__PURE__ */ U0(Zcn), Z3 = () => {
116436
116436
  t.off("selectionUpdate", ne);
116437
116437
  };
116438
116438
  }, [t, Y, se]);
116439
- const oe = it(() => [
116439
+ const oe = ot(() => [
116440
116440
  {
116441
116441
  name: "Bold",
116442
116442
  isActive: () => (t == null ? void 0 : t.isActive("bold")) ?? !1,
@@ -117218,7 +117218,7 @@ const s1n = {
117218
117218
  isCollaboratorsDoc: r,
117219
117219
  isPreviewEditor: o
117220
117220
  }) => {
117221
- const i = it(
117221
+ const i = ot(
117222
117222
  () => ({
117223
117223
  isPreviewMode: t,
117224
117224
  isPresentationMode: n,
@@ -117289,7 +117289,7 @@ const d1n = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
117289
117289
  if (!f)
117290
117290
  return;
117291
117291
  r && r();
117292
- }, [s, r]), c = it(
117292
+ }, [s, r]), c = ot(
117293
117293
  () => ({
117294
117294
  id: l,
117295
117295
  initial: t,
@@ -117305,7 +117305,7 @@ const d1n = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
117305
117305
  */
117306
117306
  i ? [Math.random(), u] : [n, u]
117307
117307
  );
117308
- return it(() => {
117308
+ return ot(() => {
117309
117309
  s.forEach((d, f) => s.set(f, !1));
117310
117310
  }, [n]), W.useEffect(() => {
117311
117311
  !n && !s.size && r && r();
@@ -117333,7 +117333,7 @@ function VJ(e) {
117333
117333
  }), t;
117334
117334
  }
117335
117335
  const SU = typeof window < "u", Vbe = SU ? Gi : Be, Ym = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
117336
- const [s, l] = qbe(a), u = it(() => VJ(e), [e]), c = a && !s ? [] : u.map(Mx), d = Ue(!0), f = Ue(u), h = EU(() => /* @__PURE__ */ new Map()), [p, g] = Ie(u), [m, y] = Ie(u);
117336
+ const [s, l] = qbe(a), u = ot(() => VJ(e), [e]), c = a && !s ? [] : u.map(Mx), d = Ue(!0), f = Ue(u), h = EU(() => /* @__PURE__ */ new Map()), [p, g] = Ie(u), [m, y] = Ie(u);
117337
117337
  Vbe(() => {
117338
117338
  d.current = !1, f.current = u;
117339
117339
  for (let x = 0; x < m.length; x++) {
@@ -117589,7 +117589,7 @@ function w1n(e, t) {
117589
117589
  }
117590
117590
  function k1n(e) {
117591
117591
  const { initial: t, animate: n } = w1n(e, Ft(tD));
117592
- return it(() => ({ initial: t, animate: n }), [GJ(t), GJ(n)]);
117592
+ return ot(() => ({ initial: t, animate: n }), [GJ(t), GJ(n)]);
117593
117593
  }
117594
117594
  function GJ(e) {
117595
117595
  return Array.isArray(e) ? e.join(" ") : e;
@@ -118132,7 +118132,7 @@ function l6e(e, t, n) {
118132
118132
  !fi(t[r]) && !a6e(r, n) && (e[r] = t[r]);
118133
118133
  }
118134
118134
  function edn({ transformTemplate: e }, t) {
118135
- return it(() => {
118135
+ return ot(() => {
118136
118136
  const n = UU();
118137
118137
  return PU(n, t, e), Object.assign({}, n.vars, n.style);
118138
118138
  }, [t]);
@@ -118146,7 +118146,7 @@ function ndn(e, t) {
118146
118146
  return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
118147
118147
  }
118148
118148
  function rdn(e, t, n, r) {
118149
- const o = it(() => {
118149
+ const o = ot(() => {
118150
118150
  const i = n6e();
118151
118151
  return zU(i, t, HU(r), e.transformTemplate), {
118152
118152
  ...i.attrs,
@@ -118161,7 +118161,7 @@ function rdn(e, t, n, r) {
118161
118161
  }
118162
118162
  function odn(e = !1) {
118163
118163
  return (n, r, o, { latestValues: i }, a) => {
118164
- const l = (IU(n) ? rdn : ndn)(r, i, a, n), u = v1n(r, typeof n == "string", e), c = n !== G1 ? { ...u, ...l, ref: o } : {}, { children: d } = r, f = it(() => fi(d) ? d.get() : d, [d]);
118164
+ const l = (IU(n) ? rdn : ndn)(r, i, a, n), u = v1n(r, typeof n == "string", e), c = n !== G1 ? { ...u, ...l, ref: o } : {}, { children: d } = r, f = ot(() => fi(d) ? d.get() : d, [d]);
118165
118165
  return rt(n, {
118166
118166
  ...c,
118167
118167
  children: f
@@ -122424,13 +122424,13 @@ const rpn = ({
122424
122424
  ydoc: n,
122425
122425
  exportOptions: r
122426
122426
  }) => {
122427
- const o = _e((g) => g.includes("(.pdf)") ? "pdf" : g.includes("(.md)") ? "md" : g.includes("(.html)") ? "html" : g.includes("(.txt)") ? "txt" : "", []), i = it(
122427
+ const o = _e((g) => g.includes("(.pdf)") ? "pdf" : g.includes("(.md)") ? "md" : g.includes("(.html)") ? "html" : g.includes("(.txt)") ? "txt" : "", []), i = ot(
122428
122428
  () => r.filter((g) => g !== null).reduce((g, m) => {
122429
122429
  const y = o(m.title);
122430
122430
  return y && (g[y] = m), g;
122431
122431
  }, {}),
122432
122432
  [r, o]
122433
- ), a = it(
122433
+ ), a = ot(
122434
122434
  () => Object.entries(i).filter(([, g]) => !g.disabled).map(([g, m]) => ({
122435
122435
  id: g,
122436
122436
  label: m.title
@@ -129782,7 +129782,7 @@ const Lmn = (e) => ({
129782
129782
  });
129783
129783
  }, hve = ({ tweet: e, components: t }) => {
129784
129784
  var n;
129785
- const r = it(() => Lmn(e), [
129785
+ const r = ot(() => Lmn(e), [
129786
129786
  e
129787
129787
  ]);
129788
129788
  return /* @__PURE__ */ M.jsxs(kH, {
@@ -130155,7 +130155,7 @@ const zee = (e, t) => {
130155
130155
  (e[1] === null ? e[2] : e[1]) || {}
130156
130156
  ], yyn = () => {
130157
130157
  const e = Ft(fyn);
130158
- return it(() => L0(cyn, e), [
130158
+ return ot(() => L0(cyn, e), [
130159
130159
  e
130160
130160
  ]);
130161
130161
  }, byn = (e) => (t, n, r) => e(t, n && ((...i) => {
@@ -130211,7 +130211,7 @@ const US = Ne.use || // This extra generic is to avoid TypeScript mixing up the
130211
130211
  return !1;
130212
130212
  }
130213
130213
  return !0;
130214
- }, I = it(() => {
130214
+ }, I = ot(() => {
130215
130215
  const fe = !y || !t ? !1 : jn(s) ? D().isPaused() || i ? !1 : l !== !1 : s, O = (ke) => {
130216
130216
  const Me = L0(ke);
130217
130217
  return delete Me._k, fe ? {
@@ -130580,25 +130580,25 @@ const jyn = ({
130580
130580
  F += (D == null ? void 0 : D.nodeSize) || 1;
130581
130581
  }
130582
130582
  return x;
130583
- }, []), d = it(() => {
130583
+ }, []), d = ot(() => {
130584
130584
  var v, x;
130585
130585
  const { content: b } = e.content;
130586
130586
  return ((x = (v = b == null ? void 0 : b[0]) == null ? void 0 : v.type) == null ? void 0 : x.name) === "heading";
130587
- }, [e.content]), f = it(() => {
130587
+ }, [e.content]), f = ot(() => {
130588
130588
  var v;
130589
130589
  const { content: b } = e.content;
130590
130590
  return (v = b == null ? void 0 : b[0]) == null ? void 0 : v.attrs.textAlign;
130591
- }, [e.content]), h = it(() => {
130591
+ }, [e.content]), h = ot(() => {
130592
130592
  var x;
130593
130593
  if (!d) return null;
130594
130594
  const { content: b } = e.content, v = b == null ? void 0 : b[0];
130595
130595
  return ((x = v == null ? void 0 : v.attrs) == null ? void 0 : x.id) || `heading-${t()}`;
130596
- }, [d, e.content, t]), p = it(() => {
130596
+ }, [d, e.content, t]), p = ot(() => {
130597
130597
  var x;
130598
130598
  if (!d) return !1;
130599
130599
  const { content: b } = e.content, v = b == null ? void 0 : b[0];
130600
130600
  return ((x = v == null ? void 0 : v.attrs) == null ? void 0 : x.isCollapsed) ?? !1;
130601
- }, [d, e.content, h]), g = it(() => {
130601
+ }, [d, e.content, h]), g = ot(() => {
130602
130602
  var F, C, D, T;
130603
130603
  if (!e || !n) return !1;
130604
130604
  const b = t(), { headingMap: v } = u();
@@ -130828,7 +130828,7 @@ function Nyn(e) {
130828
130828
  return e.on("update", o), () => {
130829
130829
  e.off("update", o);
130830
130830
  };
130831
- }, [e, r]), it(
130831
+ }, [e, r]), ot(
130832
130832
  () => ({
130833
130833
  hasAIWriter: t.current,
130834
130834
  canCreateAIWriter: !t.current
@@ -134190,18 +134190,18 @@ const f4n = Ne.memo(
134190
134190
  }), C = _e(() => {
134191
134191
  const { content: P } = e.content, ee = P[0].attrs.id, re = P[0].content.content[0].text, fe = MH(re), O = ee.replace(/-/g, "").substring(0, 8), ue = `heading=${fe}-${O}`;
134192
134192
  i == null || i(ue);
134193
- }, [e.content, i]), D = it(() => {
134193
+ }, [e.content, i]), D = ot(() => {
134194
134194
  const { content: P } = e.content;
134195
134195
  return P[0].type.name === "table";
134196
- }, [e.content]), T = it(() => {
134196
+ }, [e.content]), T = ot(() => {
134197
134197
  var ee;
134198
134198
  const { content: P } = e.content;
134199
134199
  return (ee = P[0].content.content[0]) == null ? void 0 : ee.text;
134200
- }, [e.content]), R = it(() => {
134200
+ }, [e.content]), R = ot(() => {
134201
134201
  var ee;
134202
134202
  const { content: P } = e.content;
134203
134203
  return (ee = P[0].content.content[1]) == null ? void 0 : ee.text;
134204
- }, [e.content]), _ = it(() => {
134204
+ }, [e.content]), _ = ot(() => {
134205
134205
  const { content: P } = e.content;
134206
134206
  return P[0].content.content.find(
134207
134207
  (ee) => {
@@ -134274,7 +134274,7 @@ const f4n = Ne.memo(
134274
134274
  [r]
134275
134275
  ), B = _e(() => {
134276
134276
  S();
134277
- }, [T, _]), U = it(
134277
+ }, [T, _]), U = ot(
134278
134278
  () => DH(B, 1e3),
134279
134279
  [B]
134280
134280
  ), $ = _e(
@@ -134283,15 +134283,15 @@ const f4n = Ne.memo(
134283
134283
  n.commands.insertContentAt(ee - 4, P);
134284
134284
  },
134285
134285
  [t, n, e.nodeSize]
134286
- ), q = it(
134286
+ ), q = ot(
134287
134287
  () => Pyn($),
134288
134288
  [$]
134289
- ), z = it(
134289
+ ), z = ot(
134290
134290
  () => Ryn($),
134291
134291
  [$]
134292
134292
  ), Y = _e(() => {
134293
134293
  c(!u), f(u ? 2 : z.length);
134294
- }, [u, z.length]), se = it(() => {
134294
+ }, [u, z.length]), se = ot(() => {
134295
134295
  switch (F) {
134296
134296
  case "center":
134297
134297
  return "justify-center";
@@ -134306,7 +134306,7 @@ const f4n = Ne.memo(
134306
134306
  Be(() => {
134307
134307
  T && U();
134308
134308
  }, [T]);
134309
- const oe = it(() => {
134309
+ const oe = ot(() => {
134310
134310
  const { doc: P, selection: ee } = n.state, re = t();
134311
134311
  if (re === void 0) return !1;
134312
134312
  const fe = P.nodeAt(re);
@@ -165642,15 +165642,15 @@ class USn {
165642
165642
  return this.character ? this.character : " ";
165643
165643
  }
165644
165644
  }
165645
- var ot = {
165645
+ var it = {
165646
165646
  MathNode: Ka,
165647
165647
  TextNode: Ru,
165648
165648
  SpaceNode: USn,
165649
165649
  newDocumentFragment: Fke
165650
165650
  }, al = function(t, n, r) {
165651
- return cr[n][t] && cr[n][t].replace && t.charCodeAt(0) !== 55349 && !(mke.hasOwnProperty(t) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (t = cr[n][t].replace), new ot.TextNode(t);
165651
+ return cr[n][t] && cr[n][t].replace && t.charCodeAt(0) !== 55349 && !(mke.hasOwnProperty(t) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (t = cr[n][t].replace), new it.TextNode(t);
165652
165652
  }, HV = function(t) {
165653
- return t.length === 1 ? t[0] : new ot.MathNode("mrow", t);
165653
+ return t.length === 1 ? t[0] : new it.MathNode("mrow", t);
165654
165654
  }, qV = function(t, n) {
165655
165655
  if (n.fontFamily === "texttt")
165656
165656
  return "monospace";
@@ -165740,7 +165740,7 @@ var _a = function(t, n, r) {
165740
165740
  return HV(_a(t, n, r));
165741
165741
  }, sr = function(t, n) {
165742
165742
  if (!t)
165743
- return new ot.MathNode("mrow");
165743
+ return new it.MathNode("mrow");
165744
165744
  if (dk[t.type]) {
165745
165745
  var r = dk[t.type](t, n);
165746
165746
  return r;
@@ -165749,10 +165749,10 @@ var _a = function(t, n, r) {
165749
165749
  };
165750
165750
  function eie(e, t, n, r, o) {
165751
165751
  var i = _a(e, n), a;
165752
- i.length === 1 && i[0] instanceof Ka && ["mrow", "mtable"].includes(i[0].type) ? a = i[0] : a = new ot.MathNode("mrow", i);
165753
- var s = new ot.MathNode("annotation", [new ot.TextNode(t)]);
165752
+ i.length === 1 && i[0] instanceof Ka && ["mrow", "mtable"].includes(i[0].type) ? a = i[0] : a = new it.MathNode("mrow", i);
165753
+ var s = new it.MathNode("annotation", [new it.TextNode(t)]);
165754
165754
  s.setAttribute("encoding", "application/x-tex");
165755
- var l = new ot.MathNode("semantics", [a, s]), u = new ot.MathNode("math", [l]);
165755
+ var l = new it.MathNode("semantics", [a, s]), u = new it.MathNode("math", [l]);
165756
165756
  u.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), r && u.setAttribute("display", "block");
165757
165757
  var c = o ? "katex" : "katex-mathml";
165758
165758
  return ze.makeSpan([c], [u]);
@@ -165830,7 +165830,7 @@ var Cke = function(t) {
165830
165830
  "\\cdleftarrow": "←",
165831
165831
  "\\cdlongequal": "="
165832
165832
  }, WSn = function(t) {
165833
- var n = new ot.MathNode("mo", [new ot.TextNode(VSn[t.replace(/^\\/, "")])]);
165833
+ var n = new it.MathNode("mo", [new it.TextNode(VSn[t.replace(/^\\/, "")])]);
165834
165834
  return n.setAttribute("stretchy", "true"), n;
165835
165835
  }, $Sn = {
165836
165836
  // path(s), minWidth, height, align
@@ -166042,7 +166042,7 @@ var WV = (e, t) => {
166042
166042
  var y = ze.makeSpan(["mord", "accent"], [f], t);
166043
166043
  return o ? (o.children[0] = y, o.height = Math.max(y.height, o.height), o.classes[0] = "mord", o) : y;
166044
166044
  }, Mke = (e, t) => {
166045
- var n = e.isStretchy ? W1.mathMLnode(e.label) : new ot.MathNode("mo", [al(e.label, e.mode)]), r = new ot.MathNode("mover", [sr(e.base, t), n]);
166045
+ var n = e.isStretchy ? W1.mathMLnode(e.label) : new it.MathNode("mo", [al(e.label, e.mode)]), r = new it.MathNode("mover", [sr(e.base, t), n]);
166046
166046
  return r.setAttribute("accent", "true"), r;
166047
166047
  }, YSn = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((e) => "\\" + e).join("|"));
166048
166048
  xt({
@@ -166126,12 +166126,12 @@ xt({
166126
166126
  return ze.makeSpan(["mord", "accentunder"], [i], t);
166127
166127
  },
166128
166128
  mathmlBuilder: (e, t) => {
166129
- var n = W1.mathMLnode(e.label), r = new ot.MathNode("munder", [sr(e.base, t), n]);
166129
+ var n = W1.mathMLnode(e.label), r = new it.MathNode("munder", [sr(e.base, t), n]);
166130
166130
  return r.setAttribute("accentunder", "true"), r;
166131
166131
  }
166132
166132
  });
166133
166133
  var c8 = (e) => {
166134
- var t = new ot.MathNode("mpadded", e ? [e] : []);
166134
+ var t = new it.MathNode("mpadded", e ? [e] : []);
166135
166135
  return t.setAttribute("width", "+0.6em"), t.setAttribute("lspace", "0.3em"), t;
166136
166136
  };
166137
166137
  xt({
@@ -166234,14 +166234,14 @@ xt({
166234
166234
  var o = c8(sr(e.body, t));
166235
166235
  if (e.below) {
166236
166236
  var i = c8(sr(e.below, t));
166237
- r = new ot.MathNode("munderover", [n, i, o]);
166237
+ r = new it.MathNode("munderover", [n, i, o]);
166238
166238
  } else
166239
- r = new ot.MathNode("mover", [n, o]);
166239
+ r = new it.MathNode("mover", [n, o]);
166240
166240
  } else if (e.below) {
166241
166241
  var a = c8(sr(e.below, t));
166242
- r = new ot.MathNode("munder", [n, a]);
166242
+ r = new it.MathNode("munder", [n, a]);
166243
166243
  } else
166244
- r = c8(), r = new ot.MathNode("mover", [n, r]);
166244
+ r = c8(), r = new it.MathNode("mover", [n, r]);
166245
166245
  return r;
166246
166246
  }
166247
166247
  });
@@ -166252,7 +166252,7 @@ function Eke(e, t) {
166252
166252
  }
166253
166253
  function Ake(e, t) {
166254
166254
  var n, r = _a(e.body, t);
166255
- return e.mclass === "minner" ? n = new ot.MathNode("mpadded", r) : e.mclass === "mord" ? e.isCharacterBox ? (n = r[0], n.type = "mi") : n = new ot.MathNode("mi", r) : (e.isCharacterBox ? (n = r[0], n.type = "mo") : n = new ot.MathNode("mo", r), e.mclass === "mbin" ? (n.attributes.lspace = "0.22em", n.attributes.rspace = "0.22em") : e.mclass === "mpunct" ? (n.attributes.lspace = "0em", n.attributes.rspace = "0.17em") : e.mclass === "mopen" || e.mclass === "mclose" ? (n.attributes.lspace = "0em", n.attributes.rspace = "0em") : e.mclass === "minner" && (n.attributes.lspace = "0.0556em", n.attributes.width = "+0.1111em")), n;
166255
+ return e.mclass === "minner" ? n = new it.MathNode("mpadded", r) : e.mclass === "mord" ? e.isCharacterBox ? (n = r[0], n.type = "mi") : n = new it.MathNode("mi", r) : (e.isCharacterBox ? (n = r[0], n.type = "mo") : n = new it.MathNode("mo", r), e.mclass === "mbin" ? (n.attributes.lspace = "0.22em", n.attributes.rspace = "0.22em") : e.mclass === "mpunct" ? (n.attributes.lspace = "0em", n.attributes.rspace = "0.17em") : e.mclass === "mopen" || e.mclass === "mclose" ? (n.attributes.lspace = "0em", n.attributes.rspace = "0em") : e.mclass === "minner" && (n.attributes.lspace = "0.0556em", n.attributes.width = "+0.1111em")), n;
166256
166256
  }
166257
166257
  xt({
166258
166258
  type: "mclass",
@@ -166363,7 +166363,7 @@ xt({
166363
166363
  return r.style.textShadow = "0.02em 0.01em 0.04px", r;
166364
166364
  },
166365
166365
  mathmlBuilder(e, t) {
166366
- var n = _a(e.body, t), r = new ot.MathNode("mstyle", n);
166366
+ var n = _a(e.body, t), r = new it.MathNode("mstyle", n);
166367
166367
  return r.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), r;
166368
166368
  }
166369
166369
  });
@@ -166518,8 +166518,8 @@ xt({
166518
166518
  return r.classes.push("cd-label-" + e.side), r.style.bottom = ft(0.8 - r.depth), r.height = 0, r.depth = 0, r;
166519
166519
  },
166520
166520
  mathmlBuilder(e, t) {
166521
- var n = new ot.MathNode("mrow", [sr(e.label, t)]);
166522
- return n = new ot.MathNode("mpadded", [n]), n.setAttribute("width", "0"), e.side === "left" && n.setAttribute("lspace", "-1width"), n.setAttribute("voffset", "0.7em"), n = new ot.MathNode("mstyle", [n]), n.setAttribute("displaystyle", "false"), n.setAttribute("scriptlevel", "1"), n;
166521
+ var n = new it.MathNode("mrow", [sr(e.label, t)]);
166522
+ return n = new it.MathNode("mpadded", [n]), n.setAttribute("width", "0"), e.side === "left" && n.setAttribute("lspace", "-1width"), n.setAttribute("voffset", "0.7em"), n = new it.MathNode("mstyle", [n]), n.setAttribute("displaystyle", "false"), n.setAttribute("scriptlevel", "1"), n;
166523
166523
  }
166524
166524
  });
166525
166525
  xt({
@@ -166543,7 +166543,7 @@ xt({
166543
166543
  return n.classes.push("cd-vert-arrow"), n;
166544
166544
  },
166545
166545
  mathmlBuilder(e, t) {
166546
- return new ot.MathNode("mrow", [sr(e.fragment, t)]);
166546
+ return new it.MathNode("mrow", [sr(e.fragment, t)]);
166547
166547
  }
166548
166548
  });
166549
166549
  xt({
@@ -166576,7 +166576,7 @@ var Ske = (e, t) => {
166576
166576
  var n = vo(e.body, t.withColor(e.color), !1);
166577
166577
  return ze.makeFragment(n);
166578
166578
  }, Tke = (e, t) => {
166579
- var n = _a(e.body, t.withColor(e.color)), r = new ot.MathNode("mstyle", n);
166579
+ var n = _a(e.body, t.withColor(e.color)), r = new it.MathNode("mstyle", n);
166580
166580
  return r.setAttribute("mathcolor", e.color), r;
166581
166581
  };
166582
166582
  xt({
@@ -166652,7 +166652,7 @@ xt({
166652
166652
  return e.newLine && (n.classes.push("newline"), e.size && (n.style.marginTop = ft(Nr(e.size, t)))), n;
166653
166653
  },
166654
166654
  mathmlBuilder(e, t) {
166655
- var n = new ot.MathNode("mspace");
166655
+ var n = new it.MathNode("mspace");
166656
166656
  return e.newLine && (n.setAttribute("linebreak", "newline"), e.size && n.setAttribute("height", ft(Nr(e.size, t)))), n;
166657
166657
  }
166658
166658
  });
@@ -167101,7 +167101,7 @@ xt({
167101
167101
  mathmlBuilder: (e) => {
167102
167102
  var t = [];
167103
167103
  e.delim !== "." && t.push(al(e.delim, e.mode));
167104
- var n = new ot.MathNode("mo", t);
167104
+ var n = new it.MathNode("mo", t);
167105
167105
  e.mclass === "mopen" || e.mclass === "mclose" ? n.setAttribute("fence", "true") : n.setAttribute("fence", "false"), n.setAttribute("stretchy", "true");
167106
167106
  var r = ft(k1.sizeToMaxHeight[e.size]);
167107
167107
  return n.setAttribute("minsize", r), n.setAttribute("maxsize", r), n;
@@ -167177,11 +167177,11 @@ xt({
167177
167177
  oie(e);
167178
167178
  var n = _a(e.body, t);
167179
167179
  if (e.left !== ".") {
167180
- var r = new ot.MathNode("mo", [al(e.left, e.mode)]);
167180
+ var r = new it.MathNode("mo", [al(e.left, e.mode)]);
167181
167181
  r.setAttribute("fence", "true"), n.unshift(r);
167182
167182
  }
167183
167183
  if (e.right !== ".") {
167184
- var o = new ot.MathNode("mo", [al(e.right, e.mode)]);
167184
+ var o = new it.MathNode("mo", [al(e.right, e.mode)]);
167185
167185
  o.setAttribute("fence", "true"), e.rightColor && o.setAttribute("mathcolor", e.rightColor), n.push(o);
167186
167186
  }
167187
167187
  return HV(n);
@@ -167219,7 +167219,7 @@ xt({
167219
167219
  return n;
167220
167220
  },
167221
167221
  mathmlBuilder: (e, t) => {
167222
- var n = e.delim === "\\vert" || e.delim === "|" ? al("|", "text") : al(e.delim, e.mode), r = new ot.MathNode("mo", [n]);
167222
+ var n = e.delim === "\\vert" || e.delim === "|" ? al("|", "text") : al(e.delim, e.mode), r = new it.MathNode("mo", [n]);
167223
167223
  return r.setAttribute("fence", "true"), r.setAttribute("lspace", "0.05em"), r.setAttribute("rspace", "0.05em"), r;
167224
167224
  }
167225
167225
  });
@@ -167295,7 +167295,7 @@ var GV = (e, t) => {
167295
167295
  }
167296
167296
  return /cancel/.test(r) && (b.height = n.height, b.depth = n.depth), /cancel/.test(r) && !s ? ze.makeSpan(["mord", "cancel-lap"], [b], t) : ze.makeSpan(["mord"], [b], t);
167297
167297
  }, ZV = (e, t) => {
167298
- var n = 0, r = new ot.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [sr(e.body, t)]);
167298
+ var n = 0, r = new it.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [sr(e.body, t)]);
167299
167299
  switch (e.label) {
167300
167300
  case "\\cancel":
167301
167301
  r.setAttribute("notation", "updiagonalstrike");
@@ -167674,12 +167674,12 @@ var Sc = function(t, n) {
167674
167674
  l: "left ",
167675
167675
  r: "right "
167676
167676
  }, Tc = function(t, n) {
167677
- for (var r = [], o = new ot.MathNode("mtd", [], ["mtr-glue"]), i = new ot.MathNode("mtd", [], ["mml-eqn-num"]), a = 0; a < t.body.length; a++) {
167677
+ for (var r = [], o = new it.MathNode("mtd", [], ["mtr-glue"]), i = new it.MathNode("mtd", [], ["mml-eqn-num"]), a = 0; a < t.body.length; a++) {
167678
167678
  for (var s = t.body[a], l = [], u = 0; u < s.length; u++)
167679
- l.push(new ot.MathNode("mtd", [sr(s[u], n)]));
167680
- t.tags && t.tags[a] && (l.unshift(o), l.push(o), t.leqno ? l.unshift(i) : l.push(i)), r.push(new ot.MathNode("mtr", l));
167679
+ l.push(new it.MathNode("mtd", [sr(s[u], n)]));
167680
+ t.tags && t.tags[a] && (l.unshift(o), l.push(o), t.leqno ? l.unshift(i) : l.push(i)), r.push(new it.MathNode("mtr", l));
167681
167681
  }
167682
- var c = new ot.MathNode("mtable", r), d = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
167682
+ var c = new it.MathNode("mtable", r), d = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
167683
167683
  c.setAttribute("rowspacing", ft(d));
167684
167684
  var f = "", h = "";
167685
167685
  if (t.cols && t.cols.length > 0) {
@@ -167698,7 +167698,7 @@ var Sc = function(t, n) {
167698
167698
  f += D[0].length > 0 ? "left " : "", f += D[D.length - 1].length > 0 ? "right " : "";
167699
167699
  for (var T = 1; T < D.length - 1; T++)
167700
167700
  C += D[T].length === 0 ? "none " : D[T][0] ? "dashed " : "solid ";
167701
- return /[sd]/.test(C) && c.setAttribute("rowlines", C.trim()), f !== "" && (c = new ot.MathNode("menclose", [c]), c.setAttribute("notation", f.trim())), t.arraystretch && t.arraystretch < 1 && (c = new ot.MathNode("mstyle", [c]), c.setAttribute("scriptlevel", "1")), c;
167701
+ return /[sd]/.test(C) && c.setAttribute("rowlines", C.trim()), f !== "" && (c = new it.MathNode("menclose", [c]), c.setAttribute("notation", f.trim())), t.arraystretch && t.arraystretch < 1 && (c = new it.MathNode("mstyle", [c]), c.setAttribute("scriptlevel", "1")), c;
167702
167702
  }, qke = function(t, n) {
167703
167703
  t.envName.indexOf("ed") === -1 && vM(t);
167704
167704
  var r = [], o = t.envName.indexOf("at") > -1 ? "alignat" : "align", i = t.envName === "split", a = cf(t.parser, {
@@ -168210,7 +168210,7 @@ var $ke = (e, t) => {
168210
168210
  var w, F;
168211
168211
  return e.leftDelim == null ? w = j6(t, ["mopen"]) : w = k1.customSizedDelim(e.leftDelim, x, !0, t.havingStyle(n), e.mode, ["mopen"]), e.continued ? F = ze.makeSpan([]) : e.rightDelim == null ? F = j6(t, ["mclose"]) : F = k1.customSizedDelim(e.rightDelim, x, !0, t.havingStyle(n), e.mode, ["mclose"]), ze.makeSpan(["mord"].concat(i.sizingClasses(t)), [w, ze.makeSpan(["mfrac"], [m]), F], t);
168212
168212
  }, JV = (e, t) => {
168213
- var n = new ot.MathNode("mfrac", [sr(e.numer, t), sr(e.denom, t)]);
168213
+ var n = new it.MathNode("mfrac", [sr(e.numer, t), sr(e.denom, t)]);
168214
168214
  if (!e.hasBarLine)
168215
168215
  n.setAttribute("linethickness", "0px");
168216
168216
  else if (e.barSize) {
@@ -168219,18 +168219,18 @@ var $ke = (e, t) => {
168219
168219
  }
168220
168220
  var o = $ke(e.size, t.style);
168221
168221
  if (o.size !== t.style.size) {
168222
- n = new ot.MathNode("mstyle", [n]);
168222
+ n = new it.MathNode("mstyle", [n]);
168223
168223
  var i = o.size === Rt.DISPLAY.size ? "true" : "false";
168224
168224
  n.setAttribute("displaystyle", i), n.setAttribute("scriptlevel", "0");
168225
168225
  }
168226
168226
  if (e.leftDelim != null || e.rightDelim != null) {
168227
168227
  var a = [];
168228
168228
  if (e.leftDelim != null) {
168229
- var s = new ot.MathNode("mo", [new ot.TextNode(e.leftDelim.replace("\\", ""))]);
168229
+ var s = new it.MathNode("mo", [new it.TextNode(e.leftDelim.replace("\\", ""))]);
168230
168230
  s.setAttribute("fence", "true"), a.push(s);
168231
168231
  }
168232
168232
  if (a.push(n), e.rightDelim != null) {
168233
- var l = new ot.MathNode("mo", [new ot.TextNode(e.rightDelim.replace("\\", ""))]);
168233
+ var l = new it.MathNode("mo", [new it.TextNode(e.rightDelim.replace("\\", ""))]);
168234
168234
  l.setAttribute("fence", "true"), a.push(l);
168235
168235
  }
168236
168236
  return HV(a);
@@ -168528,7 +168528,7 @@ var Gke = (e, t) => {
168528
168528
  return ze.makeSpan(["mord", o.isOver ? "mover" : "munder"], [s], t);
168529
168529
  }, mTn = (e, t) => {
168530
168530
  var n = W1.mathMLnode(e.label);
168531
- return new ot.MathNode(e.isOver ? "mover" : "munder", [sr(e.base, t), n]);
168531
+ return new it.MathNode(e.isOver ? "mover" : "munder", [sr(e.base, t), n]);
168532
168532
  };
168533
168533
  xt({
168534
168534
  type: "horizBrace",
@@ -168646,7 +168646,7 @@ xt({
168646
168646
  return ze.makeFragment(n);
168647
168647
  },
168648
168648
  mathmlBuilder(e, t) {
168649
- return new ot.MathNode("mrow", _a(e.body, t));
168649
+ return new it.MathNode("mrow", _a(e.body, t));
168650
168650
  }
168651
168651
  });
168652
168652
  xt({
@@ -168831,7 +168831,7 @@ xt({
168831
168831
  return a.height = n, a.depth = r, a;
168832
168832
  },
168833
168833
  mathmlBuilder: (e, t) => {
168834
- var n = new ot.MathNode("mglyph", []);
168834
+ var n = new it.MathNode("mglyph", []);
168835
168835
  n.setAttribute("alt", e.alt);
168836
168836
  var r = Nr(e.height, t), o = 0;
168837
168837
  if (e.totalheight.number > 0 && (o = Nr(e.totalheight, t) - r, n.setAttribute("valign", ft(-o))), n.setAttribute("height", ft(r + o)), e.width.number > 0) {
@@ -168870,7 +168870,7 @@ xt({
168870
168870
  },
168871
168871
  mathmlBuilder(e, t) {
168872
168872
  var n = Nr(e.dimension, t);
168873
- return new ot.SpaceNode(n);
168873
+ return new it.SpaceNode(n);
168874
168874
  }
168875
168875
  });
168876
168876
  xt({
@@ -168899,7 +168899,7 @@ xt({
168899
168899
  return i.style.height = ft(o.height + o.depth), o.depth && (i.style.verticalAlign = ft(-o.depth)), o.children.unshift(i), o = ze.makeSpan(["thinbox"], [o], t), ze.makeSpan(["mord", "vbox"], [o], t);
168900
168900
  },
168901
168901
  mathmlBuilder: (e, t) => {
168902
- var n = new ot.MathNode("mpadded", [sr(e.body, t)]);
168902
+ var n = new it.MathNode("mpadded", [sr(e.body, t)]);
168903
168903
  if (e.alignment !== "rlap") {
168904
168904
  var r = e.alignment === "llap" ? "-1" : "-0.5";
168905
168905
  n.setAttribute("lspace", r + "width");
@@ -169287,7 +169287,7 @@ var Yke = (e, t) => {
169287
169287
  }, vTn = (e, t) => {
169288
169288
  for (var n = _a(e.body, t.withFont("mathrm")), r = !0, o = 0; o < n.length; o++) {
169289
169289
  var i = n[o];
169290
- if (!(i instanceof ot.SpaceNode)) if (i instanceof ot.MathNode)
169290
+ if (!(i instanceof it.SpaceNode)) if (i instanceof it.MathNode)
169291
169291
  switch (i.type) {
169292
169292
  case "mi":
169293
169293
  case "mn":
@@ -169297,7 +169297,7 @@ var Yke = (e, t) => {
169297
169297
  break;
169298
169298
  case "mo": {
169299
169299
  var a = i.children[0];
169300
- i.children.length === 1 && a instanceof ot.TextNode ? a.text = a.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : r = !1;
169300
+ i.children.length === 1 && a instanceof it.TextNode ? a.text = a.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : r = !1;
169301
169301
  break;
169302
169302
  }
169303
169303
  default:
@@ -169308,12 +169308,12 @@ var Yke = (e, t) => {
169308
169308
  }
169309
169309
  if (r) {
169310
169310
  var s = n.map((c) => c.toText()).join("");
169311
- n = [new ot.TextNode(s)];
169311
+ n = [new it.TextNode(s)];
169312
169312
  }
169313
- var l = new ot.MathNode("mi", n);
169313
+ var l = new it.MathNode("mi", n);
169314
169314
  l.setAttribute("mathvariant", "normal");
169315
- var u = new ot.MathNode("mo", [al("⁡", "text")]);
169316
- return e.parentIsSupSub ? new ot.MathNode("mrow", [l, u]) : ot.newDocumentFragment([l, u]);
169315
+ var u = new it.MathNode("mo", [al("⁡", "text")]);
169316
+ return e.parentIsSupSub ? new it.MathNode("mrow", [l, u]) : it.newDocumentFragment([l, u]);
169317
169317
  };
169318
169318
  xt({
169319
169319
  type: "operatorname",
@@ -169384,9 +169384,9 @@ xt({
169384
169384
  return ze.makeSpan(["mord", "overline"], [i], t);
169385
169385
  },
169386
169386
  mathmlBuilder(e, t) {
169387
- var n = new ot.MathNode("mo", [new ot.TextNode("‾")]);
169387
+ var n = new it.MathNode("mo", [new it.TextNode("‾")]);
169388
169388
  n.setAttribute("stretchy", "true");
169389
- var r = new ot.MathNode("mover", [sr(e.body, t), n]);
169389
+ var r = new it.MathNode("mover", [sr(e.body, t), n]);
169390
169390
  return r.setAttribute("accent", "true"), r;
169391
169391
  }
169392
169392
  });
@@ -169413,7 +169413,7 @@ xt({
169413
169413
  },
169414
169414
  mathmlBuilder: (e, t) => {
169415
169415
  var n = _a(e.body, t);
169416
- return new ot.MathNode("mphantom", n);
169416
+ return new it.MathNode("mphantom", n);
169417
169417
  }
169418
169418
  });
169419
169419
  xt({
@@ -169447,7 +169447,7 @@ xt({
169447
169447
  }, t), ze.makeSpan(["mord"], [n], t);
169448
169448
  },
169449
169449
  mathmlBuilder: (e, t) => {
169450
- var n = _a(Jr(e.body), t), r = new ot.MathNode("mphantom", n), o = new ot.MathNode("mpadded", [r]);
169450
+ var n = _a(Jr(e.body), t), r = new it.MathNode("mphantom", n), o = new it.MathNode("mpadded", [r]);
169451
169451
  return o.setAttribute("height", "0px"), o.setAttribute("depth", "0px"), o;
169452
169452
  }
169453
169453
  });
@@ -169473,7 +169473,7 @@ xt({
169473
169473
  return ze.makeSpan(["mord", "rlap"], [n, r], t);
169474
169474
  },
169475
169475
  mathmlBuilder: (e, t) => {
169476
- var n = _a(Jr(e.body), t), r = new ot.MathNode("mphantom", n), o = new ot.MathNode("mpadded", [r]);
169476
+ var n = _a(Jr(e.body), t), r = new it.MathNode("mphantom", n), o = new it.MathNode("mpadded", [r]);
169477
169477
  return o.setAttribute("width", "0px"), o;
169478
169478
  }
169479
169479
  });
@@ -169508,7 +169508,7 @@ xt({
169508
169508
  }, t);
169509
169509
  },
169510
169510
  mathmlBuilder(e, t) {
169511
- var n = new ot.MathNode("mpadded", [sr(e.body, t)]), r = e.dy.number + e.dy.unit;
169511
+ var n = new it.MathNode("mpadded", [sr(e.body, t)]), r = e.dy.number + e.dy.unit;
169512
169512
  return n.setAttribute("voffset", r), n;
169513
169513
  }
169514
169514
  });
@@ -169557,9 +169557,9 @@ xt({
169557
169557
  return n.style.borderRightWidth = ft(r), n.style.borderTopWidth = ft(o), n.style.bottom = ft(i), n.width = r, n.height = o + i, n.depth = -i, n.maxFontSize = o * 1.125 * t.sizeMultiplier, n;
169558
169558
  },
169559
169559
  mathmlBuilder(e, t) {
169560
- var n = Nr(e.width, t), r = Nr(e.height, t), o = e.shift ? Nr(e.shift, t) : 0, i = t.color && t.getColor() || "black", a = new ot.MathNode("mspace");
169560
+ var n = Nr(e.width, t), r = Nr(e.height, t), o = e.shift ? Nr(e.shift, t) : 0, i = t.color && t.getColor() || "black", a = new it.MathNode("mspace");
169561
169561
  a.setAttribute("mathbackground", i), a.setAttribute("width", ft(n)), a.setAttribute("height", ft(r));
169562
- var s = new ot.MathNode("mpadded", [a]);
169562
+ var s = new it.MathNode("mpadded", [a]);
169563
169563
  return o >= 0 ? s.setAttribute("height", ft(o)) : (s.setAttribute("height", ft(o)), s.setAttribute("depth", ft(-o))), s.setAttribute("voffset", ft(o)), s;
169564
169564
  }
169565
169565
  });
@@ -169597,7 +169597,7 @@ xt({
169597
169597
  },
169598
169598
  htmlBuilder: xTn,
169599
169599
  mathmlBuilder: (e, t) => {
169600
- var n = t.havingSize(e.size), r = _a(e.body, n), o = new ot.MathNode("mstyle", r);
169600
+ var n = t.havingSize(e.size), r = _a(e.body, n), o = new it.MathNode("mstyle", r);
169601
169601
  return o.setAttribute("mathsize", ft(n.sizeMultiplier)), o;
169602
169602
  }
169603
169603
  });
@@ -169656,7 +169656,7 @@ xt({
169656
169656
  return ze.makeSpan(["mord"], [i], t);
169657
169657
  },
169658
169658
  mathmlBuilder: (e, t) => {
169659
- var n = new ot.MathNode("mpadded", [sr(e.body, t)]);
169659
+ var n = new it.MathNode("mpadded", [sr(e.body, t)]);
169660
169660
  return e.smashHeight && n.setAttribute("height", "0px"), e.smashDepth && n.setAttribute("depth", "0px"), n;
169661
169661
  }
169662
169662
  });
@@ -169726,7 +169726,7 @@ xt({
169726
169726
  body: n,
169727
169727
  index: r
169728
169728
  } = e;
169729
- return r ? new ot.MathNode("mroot", [sr(n, t), sr(r, t)]) : new ot.MathNode("msqrt", [sr(n, t)]);
169729
+ return r ? new it.MathNode("mroot", [sr(n, t), sr(r, t)]) : new it.MathNode("msqrt", [sr(n, t)]);
169730
169730
  }
169731
169731
  });
169732
169732
  var fie = {
@@ -169763,7 +169763,7 @@ xt({
169763
169763
  return Xke(e.body, r, t);
169764
169764
  },
169765
169765
  mathmlBuilder(e, t) {
169766
- var n = fie[e.style], r = t.havingStyle(n), o = _a(e.body, r), i = new ot.MathNode("mstyle", o), a = {
169766
+ var n = fie[e.style], r = t.havingStyle(n), o = _a(e.body, r), i = new it.MathNode("mstyle", o), a = {
169767
169767
  display: ["0", "true"],
169768
169768
  text: ["0", "false"],
169769
169769
  script: ["1", "false"],
@@ -169891,7 +169891,7 @@ Ap({
169891
169891
  var s = e.base;
169892
169892
  s && s.type === "op" && s.limits && (t.style === Rt.DISPLAY || s.alwaysHandleSupSub) || s && s.type === "operatorname" && s.alwaysHandleSupSub && (s.limits || t.style === Rt.DISPLAY) ? a = "mover" : a = "msup";
169893
169893
  }
169894
- return new ot.MathNode(a, i);
169894
+ return new it.MathNode(a, i);
169895
169895
  }
169896
169896
  });
169897
169897
  Ap({
@@ -169900,7 +169900,7 @@ Ap({
169900
169900
  return ze.mathsym(e.text, e.mode, t, ["m" + e.family]);
169901
169901
  },
169902
169902
  mathmlBuilder(e, t) {
169903
- var n = new ot.MathNode("mo", [al(e.text, e.mode)]);
169903
+ var n = new it.MathNode("mo", [al(e.text, e.mode)]);
169904
169904
  if (e.family === "bin") {
169905
169905
  var r = qV(e, t);
169906
169906
  r === "bold-italic" && n.setAttribute("mathvariant", r);
@@ -169919,7 +169919,7 @@ Ap({
169919
169919
  return ze.makeOrd(e, t, "mathord");
169920
169920
  },
169921
169921
  mathmlBuilder(e, t) {
169922
- var n = new ot.MathNode("mi", [al(e.text, e.mode, t)]), r = qV(e, t) || "italic";
169922
+ var n = new it.MathNode("mi", [al(e.text, e.mode, t)]), r = qV(e, t) || "italic";
169923
169923
  return r !== Jke[n.type] && n.setAttribute("mathvariant", r), n;
169924
169924
  }
169925
169925
  });
@@ -169930,7 +169930,7 @@ Ap({
169930
169930
  },
169931
169931
  mathmlBuilder(e, t) {
169932
169932
  var n = al(e.text, e.mode, t), r = qV(e, t) || "normal", o;
169933
- return e.mode === "text" ? o = new ot.MathNode("mtext", [n]) : /[0-9]/.test(e.text) ? o = new ot.MathNode("mn", [n]) : e.text === "\\prime" ? o = new ot.MathNode("mo", [n]) : o = new ot.MathNode("mi", [n]), r !== Jke[o.type] && o.setAttribute("mathvariant", r), o;
169933
+ return e.mode === "text" ? o = new it.MathNode("mtext", [n]) : /[0-9]/.test(e.text) ? o = new it.MathNode("mn", [n]) : e.text === "\\prime" ? o = new it.MathNode("mo", [n]) : o = new it.MathNode("mi", [n]), r !== Jke[o.type] && o.setAttribute("mathvariant", r), o;
169934
169934
  }
169935
169935
  });
169936
169936
  var _j = {
@@ -169966,23 +169966,23 @@ Ap({
169966
169966
  mathmlBuilder(e, t) {
169967
169967
  var n;
169968
169968
  if (Ij.hasOwnProperty(e.text))
169969
- n = new ot.MathNode("mtext", [new ot.TextNode(" ")]);
169969
+ n = new it.MathNode("mtext", [new it.TextNode(" ")]);
169970
169970
  else {
169971
169971
  if (_j.hasOwnProperty(e.text))
169972
- return new ot.MathNode("mspace");
169972
+ return new it.MathNode("mspace");
169973
169973
  throw new st('Unknown type of space "' + e.text + '"');
169974
169974
  }
169975
169975
  return n;
169976
169976
  }
169977
169977
  });
169978
169978
  var hie = () => {
169979
- var e = new ot.MathNode("mtd", []);
169979
+ var e = new it.MathNode("mtd", []);
169980
169980
  return e.setAttribute("width", "50%"), e;
169981
169981
  };
169982
169982
  Ap({
169983
169983
  type: "tag",
169984
169984
  mathmlBuilder(e, t) {
169985
- var n = new ot.MathNode("mtable", [new ot.MathNode("mtr", [hie(), new ot.MathNode("mtd", [R0(e.body, t)]), hie(), new ot.MathNode("mtd", [R0(e.tag, t)])])]);
169985
+ var n = new it.MathNode("mtable", [new it.MathNode("mtr", [hie(), new it.MathNode("mtd", [R0(e.body, t)]), hie(), new it.MathNode("mtd", [R0(e.tag, t)])])]);
169986
169986
  return n.setAttribute("width", "100%"), n;
169987
169987
  }
169988
169988
  });
@@ -170092,9 +170092,9 @@ xt({
170092
170092
  return ze.makeSpan(["mord", "underline"], [i], t);
170093
170093
  },
170094
170094
  mathmlBuilder(e, t) {
170095
- var n = new ot.MathNode("mo", [new ot.TextNode("‾")]);
170095
+ var n = new it.MathNode("mo", [new it.TextNode("‾")]);
170096
170096
  n.setAttribute("stretchy", "true");
170097
- var r = new ot.MathNode("munder", [sr(e.body, t), n]);
170097
+ var r = new it.MathNode("munder", [sr(e.body, t), n]);
170098
170098
  return r.setAttribute("accentunder", "true"), r;
170099
170099
  }
170100
170100
  });
@@ -170129,7 +170129,7 @@ xt({
170129
170129
  }, t);
170130
170130
  },
170131
170131
  mathmlBuilder(e, t) {
170132
- return new ot.MathNode("mpadded", [sr(e.body, t)], ["vcenter"]);
170132
+ return new it.MathNode("mpadded", [sr(e.body, t)], ["vcenter"]);
170133
170133
  }
170134
170134
  });
170135
170135
  xt({
@@ -170150,7 +170150,7 @@ xt({
170150
170150
  return ze.makeSpan(["mord", "text"].concat(o.sizingClasses(t)), ze.tryCombineChars(r), o);
170151
170151
  },
170152
170152
  mathmlBuilder(e, t) {
170153
- var n = new ot.TextNode(yie(e)), r = new ot.MathNode("mtext", [n]);
170153
+ var n = new it.TextNode(yie(e)), r = new it.MathNode("mtext", [n]);
170154
170154
  return r.setAttribute("mathvariant", "monospace"), r;
170155
170155
  }
170156
170156
  });
@@ -175219,7 +175219,7 @@ function YLn({
175219
175219
  editor: n,
175220
175220
  deleteNode: r
175221
175221
  }) {
175222
- const o = Ue(null), [i, a] = Ie("Copy"), s = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, f = e.attrs.shouldFocus, { isMobile: h } = ed(), p = e.attrs.code || e.textContent || "", g = it(() => {
175222
+ const o = Ue(null), [i, a] = Ie("Copy"), s = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, f = e.attrs.shouldFocus, { isMobile: h } = ed(), p = e.attrs.code || e.textContent || "", g = ot(() => {
175223
175223
  const b = p.split(`
175224
175224
  `), v = [];
175225
175225
  let x = 0;
@@ -249684,7 +249684,7 @@ const R_n = ({
249684
249684
  throw new Error("useEditorContext must be used within an EditorProvider");
249685
249685
  return e;
249686
249686
  }, KFe = ({ children: e, documentStyling: t }) => {
249687
- const n = it(
249687
+ const n = ot(
249688
249688
  () => ({
249689
249689
  documentStyling: t
249690
249690
  }),
@@ -251559,7 +251559,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251559
251559
  activeTabId: q
251560
251560
  }), { handleCommentInteraction: ee, handleCommentClick: re } = SIn({
251561
251561
  onCommentInteraction: d
251562
- }), fe = Ue(!0), [O, ue] = Ie([]), ce = it(() => te, [te]);
251562
+ }), fe = Ue(!0), [O, ue] = Ie([]), ce = ot(() => te, [te]);
251563
251563
  Be(() => {
251564
251564
  q && Y(null);
251565
251565
  }, [q, Y]);
@@ -251618,7 +251618,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251618
251618
  Be(() => {
251619
251619
  G && (fe.current = !1);
251620
251620
  }, [G]);
251621
- const de = it(() => a ? !!(I && l) : !o, [
251621
+ const de = ot(() => a ? !!(I && l) : !o, [
251622
251622
  a,
251623
251623
  I,
251624
251624
  o,
@@ -251920,7 +251920,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251920
251920
  l
251921
251921
  ),
251922
251922
  [u, s, l]
251923
- ), v = it(
251923
+ ), v = ot(
251924
251924
  () => QFe.configure({
251925
251925
  HTMLAttributes: {
251926
251926
  class: "inline-comment"
@@ -252038,7 +252038,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
252038
252038
  setExtensions: a,
252039
252039
  collaborationCleanupRef: s
252040
252040
  }) => {
252041
- const l = it(() => !t || !n || !r ? null : { ydoc: r, awareness: n }, [t, n, r]);
252041
+ const l = ot(() => !t || !n || !r ? null : { ydoc: r, awareness: n }, [t, n, r]);
252042
252042
  Be(() => {
252043
252043
  var c;
252044
252044
  !t || !i || !o || o.isEns && typeof ((c = e == null ? void 0 : e.commands) == null ? void 0 : c.updateUser) == "function" && e.commands.updateUser({
@@ -252047,7 +252047,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
252047
252047
  isEns: o.isEns
252048
252048
  });
252049
252049
  }, [t, i, o == null ? void 0 : o.isEns]);
252050
- const u = it(() => !t || !l ? null : zpn.configure({
252050
+ const u = ot(() => !t || !l ? null : zpn.configure({
252051
252051
  provider: l,
252052
252052
  user: {
252053
252053
  name: (o == null ? void 0 : o.username) || "",
@@ -252110,7 +252110,7 @@ const yk = (e = 32, t) => {
252110
252110
  isDDocOwner: r,
252111
252111
  isVersionMode: o
252112
252112
  }) => {
252113
- const [i, a] = Ie(""), [s, l] = Ie([]), u = it(() => s.length > 0, [s]), c = _e(
252113
+ const [i, a] = Ie(""), [s, l] = Ie([]), u = ot(() => s.length > 0, [s]), c = _e(
252114
252114
  (m) => {
252115
252115
  if (!e || m === i) return;
252116
252116
  const { activeTab: y } = zf(e);
@@ -264187,7 +264187,7 @@ const sqn = ({
264187
264187
  }) => {
264188
264188
  const [y, b] = Ie(!1), [v, x] = Ie(0), [w, F] = Ie(!0), { isNativeMobile: C } = ed(), [D, T] = Ie(null), [R, _] = Ie(null), S = 50, [L, E] = Ie(
264189
264189
  "forward"
264190
- ), j = it(() => new tF({
264190
+ ), j = ot(() => new tF({
264191
264191
  extensions: e.extensionManager.extensions.filter(
264192
264192
  (Y) => ![
264193
264193
  "collaboration",
@@ -264965,7 +264965,7 @@ const sqn = ({
264965
264965
  }, [e, c]);
264966
264966
  const f = i == null ? void 0 : i.find(
264967
264967
  (p) => p.id === t
264968
- ), h = it(
264968
+ ), h = ot(
264969
264969
  () => ({
264970
264970
  shouldShow: ({ editor: p }) => {
264971
264971
  var b, v;
@@ -265028,7 +265028,7 @@ const sqn = ({
265028
265028
  function gqn() {
265029
265029
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
265030
265030
  t[n] = arguments[n];
265031
- return it(
265031
+ return ot(
265032
265032
  () => (r) => {
265033
265033
  t.forEach((o) => o(r));
265034
265034
  },
@@ -265092,7 +265092,7 @@ function H6(e, t) {
265092
265092
  }
265093
265093
  function Tv(e, t) {
265094
265094
  const n = Ue();
265095
- return it(
265095
+ return ot(
265096
265096
  () => {
265097
265097
  const r = e(n.current);
265098
265098
  return n.current = r, r;
@@ -265119,7 +265119,7 @@ function Lk(e) {
265119
265119
  }
265120
265120
  let dL = {};
265121
265121
  function jv(e, t) {
265122
- return it(() => {
265122
+ return ot(() => {
265123
265123
  if (t)
265124
265124
  return t;
265125
265125
  const n = dL[e] == null ? 0 : dL[e] + 1;
@@ -265351,7 +265351,7 @@ function Aqn(e) {
265351
265351
  } = Fqn(), s = jv("DndLiveRegion"), [l, u] = Ie(!1);
265352
265352
  if (Be(() => {
265353
265353
  u(!0);
265354
- }, []), Cqn(it(() => ({
265354
+ }, []), Cqn(ot(() => ({
265355
265355
  onDragStart(d) {
265356
265356
  let {
265357
265357
  active: f
@@ -265418,7 +265418,7 @@ var po;
265418
265418
  function Ik() {
265419
265419
  }
265420
265420
  function Sqn(e, t) {
265421
- return it(
265421
+ return ot(
265422
265422
  () => ({
265423
265423
  sensor: e,
265424
265424
  options: t ?? {}
@@ -265430,7 +265430,7 @@ function Sqn(e, t) {
265430
265430
  function Tqn() {
265431
265431
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
265432
265432
  t[n] = arguments[n];
265433
- return it(
265433
+ return ot(
265434
265434
  () => [...t].filter((r) => r != null),
265435
265435
  // eslint-disable-next-line react-hooks/exhaustive-deps
265436
265436
  [...t]
@@ -266312,7 +266312,7 @@ function aVn(e) {
266312
266312
  }), y = Ue({
266313
266313
  x: 0,
266314
266314
  y: 0
266315
- }), b = it(() => {
266315
+ }), b = ot(() => {
266316
266316
  switch (n) {
266317
266317
  case T4.Pointer:
266318
266318
  return l ? {
@@ -266330,7 +266330,7 @@ function aVn(e) {
266330
266330
  return;
266331
266331
  const C = m.current.x * y.current.x, D = m.current.y * y.current.y;
266332
266332
  F.scrollBy(C, D);
266333
- }, []), w = it(() => s === Bk.TreeOrder ? [...u].reverse() : u, [s, u]);
266333
+ }, []), w = ot(() => s === Bk.TreeOrder ? [...u].reverse() : u, [s, u]);
266334
266334
  Be(
266335
266335
  () => {
266336
266336
  if (!i || !u.length || !b) {
@@ -266426,7 +266426,7 @@ function uVn(e, t) {
266426
266426
  }, [r, t]);
266427
266427
  }
266428
266428
  function cVn(e, t) {
266429
- return it(() => e.reduce((n, r) => {
266429
+ return ot(() => e.reduce((n, r) => {
266430
266430
  const {
266431
266431
  sensor: o
266432
266432
  } = r, i = o.activators.map((a) => ({
@@ -266525,7 +266525,7 @@ function hVn(e) {
266525
266525
  callback: t,
266526
266526
  disabled: n
266527
266527
  } = e;
266528
- const r = OM(t), o = it(() => {
266528
+ const r = OM(t), o = ot(() => {
266529
266529
  if (n || typeof window > "u" || typeof window.MutationObserver > "u")
266530
266530
  return;
266531
266531
  const {
@@ -266540,7 +266540,7 @@ function PM(e) {
266540
266540
  callback: t,
266541
266541
  disabled: n
266542
266542
  } = e;
266543
- const r = OM(t), o = it(
266543
+ const r = OM(t), o = ot(
266544
266544
  () => {
266545
266545
  if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
266546
266546
  return;
@@ -266633,7 +266633,7 @@ function yVn(e) {
266633
266633
  u == null || u.removeEventListener("scroll", o);
266634
266634
  });
266635
266635
  }
266636
- }, [o, e]), it(() => e.length ? t ? Array.from(t.values()).reduce((i, a) => mg(i, a), Jl) : QDe(e) : Jl, [e, t]);
266636
+ }, [o, e]), ot(() => e.length ? t ? Array.from(t.values()).reduce((i, a) => mg(i, a), Jl) : QDe(e) : Jl, [e, t]);
266637
266637
  }
266638
266638
  function cse(e, t) {
266639
266639
  t === void 0 && (t = []);
@@ -266676,7 +266676,7 @@ function bVn(e) {
266676
266676
  );
266677
266677
  }
266678
266678
  function vVn(e, t) {
266679
- return it(() => e.reduce((n, r) => {
266679
+ return ot(() => e.reduce((n, r) => {
266680
266680
  let {
266681
266681
  eventName: o,
266682
266682
  handler: i
@@ -266687,7 +266687,7 @@ function vVn(e, t) {
266687
266687
  }, {}), [e, t]);
266688
266688
  }
266689
266689
  function rMe(e) {
266690
- return it(() => e ? Vqn(e) : null, [e]);
266690
+ return ot(() => e ? Vqn(e) : null, [e]);
266691
266691
  }
266692
266692
  const dse = [];
266693
266693
  function xVn(e, t) {
@@ -266736,7 +266736,7 @@ function wVn(e) {
266736
266736
  const c = oMe(u);
266737
266737
  i == null || i.disconnect(), c && (i == null || i.observe(c)), r(c ? t(c) : null);
266738
266738
  }, [t, i]), [s, l] = jk(a);
266739
- return it(() => ({
266739
+ return ot(() => ({
266740
266740
  nodeRef: s,
266741
266741
  rect: n,
266742
266742
  setRef: l
@@ -266980,7 +266980,7 @@ function sMe(e, t) {
266980
266980
  }), n) : n;
266981
266981
  }
266982
266982
  function AVn(e) {
266983
- return it(
266983
+ return ot(
266984
266984
  () => ({
266985
266985
  draggable: {
266986
266986
  ...L9.draggable,
@@ -267067,7 +267067,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
267067
267067
  } = m, _ = C != null ? D.get(C) : null, S = Ue({
267068
267068
  initial: null,
267069
267069
  translated: null
267070
- }), L = it(() => {
267070
+ }), L = ot(() => {
267071
267071
  var Ge;
267072
267072
  return C != null ? {
267073
267073
  id: C,
@@ -267075,7 +267075,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
267075
267075
  data: (Ge = _ == null ? void 0 : _.data) != null ? Ge : FVn,
267076
267076
  rect: S
267077
267077
  } : null;
267078
- }, [C, _]), E = Ue(null), [j, N] = Ie(null), [I, B] = Ie(null), U = H6(p, Object.values(p)), $ = jv("DndDescribedBy", a), q = it(() => R.getEnabled(), [R]), z = AVn(f), {
267078
+ }, [C, _]), E = Ue(null), [j, N] = Ie(null), [I, B] = Ie(null), U = H6(p, Object.values(p)), $ = jv("DndDescribedBy", a), q = ot(() => R.getEnabled(), [R]), z = AVn(f), {
267079
267079
  droppableRects: Y,
267080
267080
  measureDroppableContainers: se,
267081
267081
  measuringScheduled: oe
@@ -267083,7 +267083,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
267083
267083
  dragging: F,
267084
267084
  dependencies: [T.x, T.y],
267085
267085
  config: z.droppable
267086
- }), X = uVn(D, C), ie = it(() => I ? _k(I) : null, [I]), ne = Xe(), te = fVn(X, z.draggable.measure);
267086
+ }), X = uVn(D, C), ie = ot(() => I ? _k(I) : null, [I]), ne = Xe(), te = fVn(X, z.draggable.measure);
267087
267087
  SVn({
267088
267088
  activeNode: C != null ? D.get(C) : null,
267089
267089
  config: ne.layoutShiftCompensation,
@@ -267367,7 +267367,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
267367
267367
  scrollableAncestors: ke,
267368
267368
  scrollableAncestorRects: Me
267369
267369
  });
267370
- const $e = it(() => ({
267370
+ const $e = ot(() => ({
267371
267371
  active: L,
267372
267372
  activeNode: X,
267373
267373
  activeNodeRect: P,
@@ -267385,7 +267385,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
267385
267385
  measuringConfiguration: z,
267386
267386
  measuringScheduled: oe,
267387
267387
  windowRect: de
267388
- }), [L, X, P, I, me, ee, O, D, R, Y, ve, se, ke, Me, z, oe, de]), Oe = it(() => ({
267388
+ }), [L, X, P, I, me, ee, O, D, R, Y, ve, se, ke, Me, z, oe, de]), Oe = ot(() => ({
267389
267389
  activatorEvent: I,
267390
267390
  activators: Ye,
267391
267391
  active: L,
@@ -267456,7 +267456,7 @@ function NVn(e) {
267456
267456
  // eslint-disable-next-line react-hooks/exhaustive-deps
267457
267457
  [d, t]
267458
267458
  );
267459
- const D = it(() => ({
267459
+ const D = ot(() => ({
267460
267460
  role: h,
267461
267461
  tabIndex: g,
267462
267462
  "aria-disabled": r,
@@ -267778,7 +267778,7 @@ function GVn(e) {
267778
267778
  }
267779
267779
  let hse = 0;
267780
267780
  function ZVn(e) {
267781
- return it(() => {
267781
+ return ot(() => {
267782
267782
  if (e != null)
267783
267783
  return hse++, hse;
267784
267784
  }, [e]);
@@ -267958,13 +267958,13 @@ function tWn(e) {
267958
267958
  droppableRects: l,
267959
267959
  over: u,
267960
267960
  measureDroppableContainers: c
267961
- } = lMe(), d = jv(dMe, n), f = s.rect !== null, h = it(() => r.map((F) => typeof F == "object" && "id" in F ? F.id : F), [r]), p = a != null, g = a ? h.indexOf(a.id) : -1, m = u ? h.indexOf(u.id) : -1, y = Ue(h), b = !XVn(h, y.current), v = m !== -1 && g === -1 || b, x = JVn(i);
267961
+ } = lMe(), d = jv(dMe, n), f = s.rect !== null, h = ot(() => r.map((F) => typeof F == "object" && "id" in F ? F.id : F), [r]), p = a != null, g = a ? h.indexOf(a.id) : -1, m = u ? h.indexOf(u.id) : -1, y = Ue(h), b = !XVn(h, y.current), v = m !== -1 && g === -1 || b, x = JVn(i);
267962
267962
  Xl(() => {
267963
267963
  b && p && c(h);
267964
267964
  }, [b, h, p, c]), Be(() => {
267965
267965
  y.current = h;
267966
267966
  }, [h]);
267967
- const w = it(
267967
+ const w = ot(
267968
267968
  () => ({
267969
267969
  activeIndex: g,
267970
267970
  containerId: d,
@@ -268064,14 +268064,14 @@ function lWn(e) {
268064
268064
  overIndex: m,
268065
268065
  useDragOverlay: y,
268066
268066
  strategy: b
268067
- } = Ft(fMe), v = uWn(r, h), x = c.indexOf(a), w = it(() => ({
268067
+ } = Ft(fMe), v = uWn(r, h), x = c.indexOf(a), w = ot(() => ({
268068
268068
  sortable: {
268069
268069
  containerId: d,
268070
268070
  index: x,
268071
268071
  items: c
268072
268072
  },
268073
268073
  ...o
268074
- }), [d, o, x, c]), F = it(() => c.slice(c.indexOf(a)), [c, a]), {
268074
+ }), [d, o, x, c]), F = ot(() => c.slice(c.indexOf(a)), [c, a]), {
268075
268075
  rect: C,
268076
268076
  node: D,
268077
268077
  isOver: T,
@@ -268213,10 +268213,10 @@ const pMe = $i(
268213
268213
  s.preventDefault(), s.stopPropagation(), t(s, e.id);
268214
268214
  },
268215
268215
  [t, e.id]
268216
- ), i = it(() => {
268216
+ ), i = ot(() => {
268217
268217
  const s = MH(e.textContent), l = e.id.replace(/-/g, "").substring(0, 8), u = `${s}-${l}`, c = new URL(globalThis.location.href), d = c.hash.startsWith("#") ? c.hash.substring(1) : c.hash, f = new URLSearchParams(d);
268218
268218
  return f.set("heading", u), c.hash = f.toString(), c.toString();
268219
- }, [e.id, e.textContent]), a = it(() => Ae(
268219
+ }, [e.id, e.textContent]), a = ot(() => Ae(
268220
268220
  `flex items-center transition-all text-body-sm-bold max-[1280px]:h-[32px] max-[1280px]:px-2 max-[1280px]:py-1 h-5 max-[1280px]:max-w-full ${r === "landscape" ? "xl:!max-w-[160px] min-[1750px]:!max-w-[240px]" : "xl:!max-w-[160px] min-[1410px]:!max-w-[240px] min-[1600px]:!max-w-[320px]"} xl:border-l-2`,
268221
268221
  e.isActive ? "color-border-active color-text-default max-[1280px]:border-none max-[1280px]:bg-[#F8F9FA] max-[1280px]:rounded max-[1280px]:text-[#363B3F]" : "color-text-secondary border-transparent lg:hover:!brightness-90"
268222
268222
  ), [e.isActive, r]);
@@ -268247,7 +268247,7 @@ const gMe = $i(() => /* @__PURE__ */ M.jsx("p", { className: "text-helper-text-s
268247
268247
  gMe.displayName = "ToCEmptyState";
268248
268248
  const mMe = $i(
268249
268249
  ({ items: e = [], editor: t, setItems: n, orientation: r }) => {
268250
- const [o, i] = Ie(null), a = Br("(max-width: 1280px)"), s = Ue(null), l = Ue(0), u = Ue(null), c = it(() => e.map((m) => ({
268250
+ const [o, i] = Ie(null), a = Br("(max-width: 1280px)"), s = Ue(null), l = Ue(0), u = Ue(null), c = ot(() => e.map((m) => ({
268251
268251
  ...m,
268252
268252
  isActive: m.id === o
268253
268253
  })), [e, o]), d = _e(() => {
@@ -268664,7 +268664,7 @@ function MMe() {
268664
268664
  return iEe(t);
268665
268665
  }
268666
268666
  function EMe(e = "✋") {
268667
- let t = Ia(), n = zu(t, "skinTone"), r = it(() => PWn(e), [e]), o = _e((i) => {
268667
+ let t = Ia(), n = zu(t, "skinTone"), r = ot(() => PWn(e), [e]), o = _e((i) => {
268668
268668
  t.set({ skinTone: i });
268669
268669
  }, []);
268670
268670
  return [n, o, r];
@@ -268869,7 +268869,7 @@ var $Wn = $i(({ Emoji: e, emoji: t, columnIndex: n, rowIndex: r }) => {
268869
268869
  }, GW), o = zu(n, "sticky");
268870
268870
  return r ? M.jsx("div", { ...NMe(t, r), children: M.jsx(e, { ..._Me({ label: r.label }, !1, o) }) }) : null;
268871
268871
  }), Ase = $i(({ CategoryHeader: e, Row: t, Emoji: n }) => {
268872
- let r = Ue(null), o = Ia(), i = zu(o, "columns"), a = it(() => Array(i).fill({ emoji: "🙂", label: "" }), [i]), s = it(() => ({ label: "Category" }), []), l = Ue(null), u = Ue(null);
268872
+ let r = Ue(null), o = Ia(), i = zu(o, "columns"), a = ot(() => Array(i).fill({ emoji: "🙂", label: "" }), [i]), s = ot(() => ({ label: "Category" }), []), l = Ue(null), u = Ue(null);
268873
268873
  return xl(() => {
268874
268874
  var p, g;
268875
268875
  let c = (g = (p = r.current) == null ? void 0 : p.parentElement) == null ? void 0 : g.parentElement;
@@ -268899,13 +268899,13 @@ function XWn({ ...e }) {
268899
268899
  var IMe = dn(({ style: e, components: t, ...n }, r) => {
268900
268900
  let o = Ia(), i = Ue(null), a = _e((y) => {
268901
268901
  y && (i.current = y, o.set({ listRef: i }));
268902
- }, []), s = (t == null ? void 0 : t.CategoryHeader) ?? KWn, l = (t == null ? void 0 : t.Emoji) ?? YWn, u = (t == null ? void 0 : t.Row) ?? XWn, c = zu(o, "columns"), d = zu(o, "viewportStartRowIndex"), f = zu(o, "viewportEndRowIndex"), h = ds(o, CMe), p = ds(o, LWn, GW), g = it(() => (p == null ? void 0 : p.filter((y) => y < d).length) ?? 0, [p, d]), m = (p == null ? void 0 : p.length) ?? 0;
268902
+ }, []), s = (t == null ? void 0 : t.CategoryHeader) ?? KWn, l = (t == null ? void 0 : t.Emoji) ?? YWn, u = (t == null ? void 0 : t.Row) ?? XWn, c = zu(o, "columns"), d = zu(o, "viewportStartRowIndex"), f = zu(o, "viewportEndRowIndex"), h = ds(o, CMe), p = ds(o, LWn, GW), g = ot(() => (p == null ? void 0 : p.filter((y) => y < d).length) ?? 0, [p, d]), m = (p == null ? void 0 : p.length) ?? 0;
268903
268903
  return bm(r, () => i.current), !h || !p || m === 0 ? M.jsx("div", { ...Ese(c, 0, e), ...n, children: M.jsx("div", { ...Mse(0, 0, 0, 0), children: M.jsx(Ase, { CategoryHeader: s, Emoji: l, Row: u }) }) }) : M.jsx("div", { ...Ese(c, h, e), ...n, ref: a, children: M.jsxs("div", { ...Mse(h, m, d, g), children: [M.jsx(Ase, { CategoryHeader: s, Emoji: l, Row: u }), Array.from({ length: f - d + 1 }, (y, b) => {
268904
268904
  let v = d + b, x = p.indexOf(v);
268905
268905
  return M.jsxs(G1, { children: [x >= 0 && M.jsx("div", { style: { height: "var(--frimousse-category-header-height)" } }), M.jsx(GWn, { Emoji: l, Row: u, rowIndex: v })] }, v);
268906
268906
  }), Array.from({ length: m }, (y, b) => M.jsx(ZWn, { CategoryHeader: s, categoryIndex: b }, b))] }) });
268907
268907
  }), BMe = dn(({ emoji: e, onClick: t, "aria-label": n = "Change skin tone", ...r }, o) => {
268908
- let i = Ia(), a = ds(i, NWn, GW), [s, l, u] = EMe(e), c = it(() => Math.max(0, u.findIndex((m) => m.skinTone === s)), [s, u]), d = u[c], f = u[(c + 1) % u.length].skinTone, h = s === "none" || a == null ? void 0 : a[s], p = f === "none" || a == null ? void 0 : a[f], g = _e((m) => {
268908
+ let i = Ia(), a = ds(i, NWn, GW), [s, l, u] = EMe(e), c = ot(() => Math.max(0, u.findIndex((m) => m.skinTone === s)), [s, u]), d = u[c], f = u[(c + 1) % u.length].skinTone, h = s === "none" || a == null ? void 0 : a[s], p = f === "none" || a == null ? void 0 : a[f], g = _e((m) => {
268909
268909
  t == null || t(m), m.isDefaultPrevented() || l(f);
268910
268910
  }, [t, l, f]);
268911
268911
  return M.jsx("button", { type: "button", ...r, "aria-label": n + (p ? ` (${p})` : ""), "aria-live": "polite", "aria-valuetext": h, "frimousse-skin-tone-selector": "", onClick: g, ref: o, children: d.emoji });
@@ -269431,7 +269431,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269431
269431
  onSelect: () => f == null ? void 0 : f(!d)
269432
269432
  }
269433
269433
  ]
269434
- ], j = it(() => y ? E : L, [y]);
269434
+ ], j = ot(() => y ? E : L, [y]);
269435
269435
  return /* @__PURE__ */ M.jsxs(
269436
269436
  "div",
269437
269437
  {
@@ -269559,7 +269559,13 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269559
269559
  f(T, { emoji: R });
269560
269560
  }, x = Tqn(
269561
269561
  Sqn(qW, { activationConstraint: { distance: 5 } })
269562
- ), [w, F] = Ie(null), C = e.find((T) => T.id === t), D = e.find((T) => T.id === w);
269562
+ ), [w, F] = Ie(null), C = ot(
269563
+ () => e.find((T) => T.id === t),
269564
+ [e, t]
269565
+ ), D = ot(
269566
+ () => e.find((T) => T.id === w),
269567
+ [e, w]
269568
+ );
269563
269569
  return /* @__PURE__ */ M.jsxs(
269564
269570
  TVn,
269565
269571
  {
@@ -269584,7 +269590,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269584
269590
  "div",
269585
269591
  {
269586
269592
  className: dt(
269587
- "flex flex-col items-start w-[263px] justify-start absolute left-0 px-4",
269593
+ "flex flex-col items-start max-w-[263px] w-full justify-start absolute left-0 px-4",
269588
269594
  !i && "hidden",
269589
269595
  y ? "top-[0px]" : "top-[16px]"
269590
269596
  ),
@@ -269747,12 +269753,12 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269747
269753
  },
269748
269754
  e.id
269749
269755
  ),
269750
- !b && /* @__PURE__ */ M.jsx(
269756
+ /* @__PURE__ */ M.jsx(
269751
269757
  "div",
269752
269758
  {
269753
269759
  className: dt(
269754
269760
  "table-of-contents animate-in fade-in slide-in-from-left-5",
269755
- e.id === c && !f && v.showToc ? "block" : "hidden"
269761
+ e.id === c && !f && v.showToc && !b ? "block" : "hidden"
269756
269762
  ),
269757
269763
  children: /* @__PURE__ */ M.jsx(
269758
269764
  yMe,
@@ -270523,7 +270529,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
270523
270529
  return;
270524
270530
  }
270525
270531
  }, [Re, pt, vt]);
270526
- const XW = Br("(max-width: 768px)"), tEe = it(() => (O || []).reduce(
270532
+ const XW = Br("(max-width: 768px)"), tEe = ot(() => (O || []).reduce(
270527
270533
  (Xt, Kt) => {
270528
270534
  if (Kt.deleted) return Xt;
270529
270535
  const Lt = Kt.tabId || Pf;