@mxmweb/rtext 1.6.4 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +141 -137
  2. package/package.json +1 -1
  3. package/stats.html +1 -1
package/index.js CHANGED
@@ -683,7 +683,7 @@ var Kd = Symbol.for("immer-nothing"), Du = Symbol.for("immer-draftable"), Pr = S
683
683
  // Note: if more errors are added, the errorOffset in Patches.ts should be increased
684
684
  // See Patches.ts for additional errors
685
685
  ] : [];
686
- function Tr(e, ...t) {
686
+ function Nr(e, ...t) {
687
687
  if (process.env.NODE_ENV !== "production") {
688
688
  const r = Jh[e], n = typeof r == "function" ? r.apply(null, t) : r;
689
689
  throw new Error(`[Immer] ${n}`);
@@ -782,7 +782,7 @@ function S0(e, t = !1) {
782
782
  }), Object.freeze(e), t && Object.values(e).forEach((r) => S0(r, !0))), e;
783
783
  }
784
784
  function ep() {
785
- Tr(2);
785
+ Nr(2);
786
786
  }
787
787
  var ks = {
788
788
  value: ep
@@ -793,7 +793,7 @@ function wi(e) {
793
793
  var tp = {};
794
794
  function Xn(e) {
795
795
  const t = tp[e];
796
- return t || Tr(0, e), t;
796
+ return t || Nr(0, e), t;
797
797
  }
798
798
  var Ka;
799
799
  function Zd() {
@@ -829,7 +829,7 @@ function np(e) {
829
829
  function Eu(e, t) {
830
830
  t.unfinalizedDrafts_ = t.drafts_.length;
831
831
  const r = t.drafts_[0];
832
- return e !== void 0 && e !== r ? (r[Pr].modified_ && (n0(t), Tr(4)), Kn(e) && (e = ii(t, e), t.parent_ || oi(t, e)), t.patches_ && Xn("Patches").generateReplacementPatches_(
832
+ return e !== void 0 && e !== r ? (r[Pr].modified_ && (n0(t), Nr(4)), Kn(e) && (e = ii(t, e), t.parent_ || oi(t, e)), t.patches_ && Xn("Patches").generateReplacementPatches_(
833
833
  r[Pr].base_,
834
834
  e,
835
835
  t.patches_,
@@ -880,7 +880,7 @@ function Bu(e, t, r, n, a, l, c) {
880
880
  return;
881
881
  const d = wi(a);
882
882
  if (!(d && !c)) {
883
- if (process.env.NODE_ENV !== "production" && a === r && Tr(5), Yn(a)) {
883
+ if (process.env.NODE_ENV !== "production" && a === r && Nr(5), Yn(a)) {
884
884
  const m = l && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
885
885
  !t0(t.assigned_, n) ? l.concat(n) : void 0, p = ii(e, a, m);
886
886
  if (Jd(r, n, p), Yn(p))
@@ -974,13 +974,13 @@ var F0 = {
974
974
  };
975
975
  },
976
976
  defineProperty() {
977
- Tr(11);
977
+ Nr(11);
978
978
  },
979
979
  getPrototypeOf(e) {
980
980
  return Ya(e.base_);
981
981
  },
982
982
  setPrototypeOf() {
983
- Tr(12);
983
+ Nr(12);
984
984
  }
985
985
  }, Xa = {};
986
986
  si(F0, (e, t) => {
@@ -989,10 +989,10 @@ si(F0, (e, t) => {
989
989
  };
990
990
  });
991
991
  Xa.deleteProperty = function(e, t) {
992
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Tr(13), Xa.set.call(this, e, t, void 0);
992
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Nr(13), Xa.set.call(this, e, t, void 0);
993
993
  };
994
994
  Xa.set = function(e, t, r) {
995
- return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Tr(14), F0.set.call(this, e[0], t, r, e[0]);
995
+ return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Nr(14), F0.set.call(this, e[0], t, r, e[0]);
996
996
  };
997
997
  function co(e, t) {
998
998
  const r = e[Pr];
@@ -1037,7 +1037,7 @@ var ip = class {
1037
1037
  return c.produce(m, (y) => r.call(this, y, ...p));
1038
1038
  };
1039
1039
  }
1040
- typeof r != "function" && Tr(6), n !== void 0 && typeof n != "function" && Tr(7);
1040
+ typeof r != "function" && Nr(6), n !== void 0 && typeof n != "function" && Nr(7);
1041
1041
  let a;
1042
1042
  if (Kn(t)) {
1043
1043
  const l = Au(this), c = i0(t, void 0);
@@ -1055,7 +1055,7 @@ var ip = class {
1055
1055
  }
1056
1056
  return a;
1057
1057
  } else
1058
- Tr(1, t);
1058
+ Nr(1, t);
1059
1059
  }, this.produceWithPatches = (t, r) => {
1060
1060
  if (typeof t == "function")
1061
1061
  return (c, ...d) => this.produceWithPatches(c, (m) => t(m, ...d));
@@ -1066,13 +1066,13 @@ var ip = class {
1066
1066
  }, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);
1067
1067
  }
1068
1068
  createDraft(e) {
1069
- Kn(e) || Tr(8), Yn(e) && (e = op(e));
1069
+ Kn(e) || Nr(8), Yn(e) && (e = op(e));
1070
1070
  const t = Au(this), r = i0(e, void 0);
1071
1071
  return r[Pr].isManual_ = !0, a0(t), r;
1072
1072
  }
1073
1073
  finishDraft(e, t) {
1074
1074
  const r = e && e[Pr];
1075
- (!r || !r.isManual_) && Tr(9);
1075
+ (!r || !r.isManual_) && Nr(9);
1076
1076
  const { scope_: n } = r;
1077
1077
  return ku(n, t), Eu(void 0, n);
1078
1078
  }
@@ -1126,7 +1126,7 @@ function i0(e, t) {
1126
1126
  return (t ? t.scope_ : Zd()).drafts_.push(r), r;
1127
1127
  }
1128
1128
  function op(e) {
1129
- return Yn(e) || Tr(10, e), ef(e);
1129
+ return Yn(e) || Nr(10, e), ef(e);
1130
1130
  }
1131
1131
  function ef(e) {
1132
1132
  if (!Kn(e) || wi(e))
@@ -5660,10 +5660,10 @@ var Wn = function(e) {
5660
5660
  }, e.toString = function() {
5661
5661
  return "function ResizeObserver () { [polyfill code] }";
5662
5662
  }, e;
5663
- })(), Wr = {}, jc;
5663
+ })(), Ur = {}, jc;
5664
5664
  function gg() {
5665
- if (jc) return Wr;
5666
- jc = 1, Object.defineProperty(Wr, "__esModule", {
5665
+ if (jc) return Ur;
5666
+ jc = 1, Object.defineProperty(Ur, "__esModule", {
5667
5667
  value: !0
5668
5668
  });
5669
5669
  for (var e = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), t = {
@@ -5791,7 +5791,7 @@ function gg() {
5791
5791
  function C(A) {
5792
5792
  return A = A.toLowerCase(), A = r[A] || A, A;
5793
5793
  }
5794
- return Wr.default = l, Wr.isHotkey = l, Wr.isCodeHotkey = c, Wr.isKeyHotkey = d, Wr.parseHotkey = m, Wr.compareHotkey = p, Wr.toKeyCode = y, Wr.toKeyName = C, Wr;
5794
+ return Ur.default = l, Ur.isHotkey = l, Ur.isCodeHotkey = c, Ur.isKeyHotkey = d, Ur.parseHotkey = m, Ur.compareHotkey = p, Ur.toKeyCode = y, Ur.toKeyName = C, Ur;
5795
5795
  }
5796
5796
  var Oo = gg();
5797
5797
  function vg(e, t) {
@@ -5833,7 +5833,7 @@ function yg(e) {
5833
5833
  var t = bg(e, "string");
5834
5834
  return es(t) === "symbol" ? t : String(t);
5835
5835
  }
5836
- function qr(e, t, r) {
5836
+ function Hr(e, t, r) {
5837
5837
  return t = yg(t), t in e ? Object.defineProperty(e, t, {
5838
5838
  value: r,
5839
5839
  enumerable: !0,
@@ -5850,7 +5850,7 @@ var P0 = /* @__PURE__ */ Mn(null), Rn = () => {
5850
5850
  typeof navigator < "u" && /Safari/.test(navigator.userAgent) && /Version\/(\d+)/.test(navigator.userAgent) && ((No = navigator.userAgent.match(/Version\/(\d+)/)) !== null && No !== void 0 && No[1] && parseInt((Mo = navigator.userAgent.match(/Version\/(\d+)/)) === null || Mo === void 0 ? void 0 : Mo[1], 10) < 17);
5851
5851
  var Bn = (!wg || !Dg) && !xg && // globalThis is undefined in older browsers
5852
5852
  typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
5853
- typeof globalThis.InputEvent.prototype.getTargetRanges == "function", ha = /* @__PURE__ */ new WeakMap(), z0 = /* @__PURE__ */ new WeakMap(), $0 = /* @__PURE__ */ new WeakMap(), yf = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(), l0 = /* @__PURE__ */ new WeakMap(), ts = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), u0 = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), c0 = /* @__PURE__ */ new WeakMap(), I0 = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), Fr = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), xf = /* @__PURE__ */ new WeakMap(), ga = Symbol("placeholder"), wf = Symbol("mark-placeholder"), Df = globalThis.Node, Eg = globalThis.Text, L0 = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, Bg = (e) => Nn(e) && e.nodeType === 8, _r = (e) => Nn(e) && e.nodeType === 1, Nn = (e) => {
5853
+ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", ha = /* @__PURE__ */ new WeakMap(), z0 = /* @__PURE__ */ new WeakMap(), $0 = /* @__PURE__ */ new WeakMap(), yf = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(), l0 = /* @__PURE__ */ new WeakMap(), ts = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), u0 = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), Wa = /* @__PURE__ */ new WeakMap(), c0 = /* @__PURE__ */ new WeakMap(), I0 = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), xf = /* @__PURE__ */ new WeakMap(), ga = Symbol("placeholder"), wf = Symbol("mark-placeholder"), Df = globalThis.Node, Eg = globalThis.Text, L0 = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, Bg = (e) => Nn(e) && e.nodeType === 8, qr = (e) => Nn(e) && e.nodeType === 1, Nn = (e) => {
5854
5854
  var t = L0(e);
5855
5855
  return !!t && e instanceof t.Node;
5856
5856
  }, d0 = (e) => {
@@ -5858,9 +5858,9 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", ha = /* @_
5858
5858
  return !!t && e instanceof t.Selection;
5859
5859
  }, Cf = (e) => Nn(e) && e.nodeType === 3, Sg = (e) => e.clipboardData && e.clipboardData.getData("text/plain") !== "" && e.clipboardData.types.length === 1, Fg = (e) => {
5860
5860
  var [t, r] = e;
5861
- if (_r(t) && t.childNodes.length) {
5861
+ if (qr(t) && t.childNodes.length) {
5862
5862
  var n = r === t.childNodes.length, a = n ? r - 1 : r;
5863
- for ([t, a] = kf(t, a, n ? "backward" : "forward"), n = a < r; _r(t) && t.childNodes.length; ) {
5863
+ for ([t, a] = kf(t, a, n ? "backward" : "forward"), n = a < r; qr(t) && t.childNodes.length; ) {
5864
5864
  var l = n ? t.childNodes.length - 1 : 0;
5865
5865
  t = Og(t, l, n ? "backward" : "forward");
5866
5866
  }
@@ -5877,7 +5877,7 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", ha = /* @_
5877
5877
  }, kf = (e, t, r) => {
5878
5878
  for (var {
5879
5879
  childNodes: n
5880
- } = e, a = n[t], l = t, c = !1, d = !1; (Bg(a) || _r(a) && a.childNodes.length === 0 || _r(a) && a.getAttribute("contenteditable") === "false") && !(c && d); ) {
5880
+ } = e, a = n[t], l = t, c = !1, d = !1; (Bg(a) || qr(a) && a.childNodes.length === 0 || qr(a) && a.getAttribute("contenteditable") === "false") && !(c && d); ) {
5881
5881
  if (l >= n.length) {
5882
5882
  c = !0, l = t - 1, r = "backward";
5883
5883
  continue;
@@ -5896,7 +5896,7 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", ha = /* @_
5896
5896
  var t = "";
5897
5897
  if (Cf(e) && e.nodeValue)
5898
5898
  return e.nodeValue;
5899
- if (_r(e)) {
5899
+ if (qr(e)) {
5900
5900
  for (var r of Array.from(e.childNodes))
5901
5901
  t += Af(r);
5902
5902
  var n = getComputedStyle(e).getPropertyValue("display");
@@ -5911,7 +5911,7 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", ha = /* @_
5911
5911
  var {
5912
5912
  target: n
5913
5913
  } = t;
5914
- if (_r(n) && n.matches('[contentEditable="false"]'))
5914
+ if (qr(n) && n.matches('[contentEditable="false"]'))
5915
5915
  return !1;
5916
5916
  var {
5917
5917
  document: a
@@ -5942,11 +5942,11 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", ha = /* @_
5942
5942
  }, zc = (e, t) => !!(e.compareDocumentPosition(t) & Df.DOCUMENT_POSITION_PRECEDING), jg = (e, t) => !!(e.compareDocumentPosition(t) & Df.DOCUMENT_POSITION_FOLLOWING), Pg = 0;
5943
5943
  class zg {
5944
5944
  constructor() {
5945
- qr(this, "id", void 0), this.id = "".concat(Pg++);
5945
+ Hr(this, "id", void 0), this.id = "".concat(Pg++);
5946
5946
  }
5947
5947
  }
5948
5948
  var De = {
5949
- androidPendingDiffs: (e) => Fr.get(e),
5949
+ androidPendingDiffs: (e) => Or.get(e),
5950
5950
  androidScheduleFlush: (e) => {
5951
5951
  var t;
5952
5952
  (t = I0.get(e)) === null || t === void 0 || t();
@@ -6058,7 +6058,7 @@ var De = {
6058
6058
  editable: a = !1
6059
6059
  } = n, l = De.toDOMNode(t, t), c;
6060
6060
  try {
6061
- c = _r(r) ? r : r.parentElement;
6061
+ c = qr(r) ? r : r.parentElement;
6062
6062
  } catch (d) {
6063
6063
  if (d instanceof Error && !d.message.includes('Permission denied to access property "nodeType"'))
6064
6064
  throw d;
@@ -6142,11 +6142,11 @@ var De = {
6142
6142
  var {
6143
6143
  anchor: r,
6144
6144
  focus: n
6145
- } = t, a = ge.isBackward(t), l = De.toDOMPoint(e, r), c = ge.isCollapsed(t) ? l : De.toDOMPoint(e, n), d = De.getWindow(e), m = d.document.createRange(), [p, y] = a ? c : l, [C, A] = a ? l : c, T = _r(p) ? p : p.parentElement, N = !!T.getAttribute("data-slate-zero-width"), O = _r(C) ? C : C.parentElement, g = !!O.getAttribute("data-slate-zero-width");
6145
+ } = t, a = ge.isBackward(t), l = De.toDOMPoint(e, r), c = ge.isCollapsed(t) ? l : De.toDOMPoint(e, n), d = De.getWindow(e), m = d.document.createRange(), [p, y] = a ? c : l, [C, A] = a ? l : c, T = qr(p) ? p : p.parentElement, N = !!T.getAttribute("data-slate-zero-width"), O = qr(C) ? C : C.parentElement, g = !!O.getAttribute("data-slate-zero-width");
6146
6146
  return m.setStart(p, N ? 1 : y), m.setEnd(C, g ? 1 : A), m;
6147
6147
  },
6148
6148
  toSlateNode: (e, t) => {
6149
- var r = _r(t) ? t : t.parentElement;
6149
+ var r = qr(t) ? t : t.parentElement;
6150
6150
  r && !r.hasAttribute("data-slate-node") && (r = r.closest("[data-slate-node]"));
6151
6151
  var n = r ? ts.get(r) : null;
6152
6152
  if (!n)
@@ -6286,7 +6286,7 @@ var De = {
6286
6286
  anchor: q,
6287
6287
  focus: L
6288
6288
  };
6289
- return ge.isExpanded(z) && ge.isForward(z) && _r(p) && E.void(e, {
6289
+ return ge.isExpanded(z) && ge.isForward(z) && qr(p) && E.void(e, {
6290
6290
  at: z.focus,
6291
6291
  mode: "highest"
6292
6292
  }) && (z = E.unhangRange(e, z, {
@@ -6411,7 +6411,7 @@ function $c(e, t) {
6411
6411
  } : null;
6412
6412
  }
6413
6413
  function h0(e, t, r) {
6414
- var n = Fr.get(e), a = n?.find((y) => {
6414
+ var n = Or.get(e), a = n?.find((y) => {
6415
6415
  var {
6416
6416
  path: C
6417
6417
  } = y;
@@ -6567,7 +6567,7 @@ function Os(e) {
6567
6567
  for (var t = 1; t < arguments.length; t++) {
6568
6568
  var r = arguments[t] != null ? arguments[t] : {};
6569
6569
  t % 2 ? Lc(Object(r), !0).forEach(function(n) {
6570
- qr(e, n, r[n]);
6570
+ Hr(e, n, r[n]);
6571
6571
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Lc(Object(r)).forEach(function(n) {
6572
6572
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
6573
6573
  });
@@ -6610,12 +6610,12 @@ function Yg(e) {
6610
6610
  var ee = t.selection && E.rangeRef(t, t.selection, {
6611
6611
  affinity: "forward"
6612
6612
  });
6613
- hn.set(t, t.marks), Vg("flush", Fn.get(t), Fr.get(t));
6614
- for (var R = L(), J; J = (Y = Fr.get(t)) === null || Y === void 0 ? void 0 : Y[0]; ) {
6613
+ hn.set(t, t.marks), Vg("flush", Fn.get(t), Or.get(t));
6614
+ for (var R = L(), J; J = (Y = Or.get(t)) === null || Y === void 0 ? void 0 : Y[0]; ) {
6615
6615
  var Y, le, ne = Vr.get(t);
6616
6616
  ne !== void 0 && (Vr.delete(t), t.marks = ne), ne && p === !1 && (p = null);
6617
6617
  var ye = qg(J);
6618
- (!t.selection || !ge.equals(t.selection, ye)) && Oe.select(t, ye), J.diff.text ? E.insertText(t, J.diff.text) : E.deleteFragment(t), Fr.set(t, (le = Fr.get(t)) === null || le === void 0 ? void 0 : le.filter((de) => {
6618
+ (!t.selection || !ge.equals(t.selection, ye)) && Oe.select(t, ye), J.diff.text ? E.insertText(t, J.diff.text) : E.deleteFragment(t), Or.set(t, (le = Or.get(t)) === null || le === void 0 ? void 0 : le.filter((de) => {
6619
6619
  var {
6620
6620
  id: Ae
6621
6621
  } = de;
@@ -6646,8 +6646,8 @@ function Yg(e) {
6646
6646
  J.style.removeProperty("display");
6647
6647
  }
6648
6648
  }, g = (ee, R) => {
6649
- var J, Y = (J = Fr.get(t)) !== null && J !== void 0 ? J : [];
6650
- Fr.set(t, Y);
6649
+ var J, Y = (J = Or.get(t)) !== null && J !== void 0 ? J : [];
6650
+ Or.set(t, Y);
6651
6651
  var le = $e.leaf(t, ee), ne = Y.findIndex(($) => W.equals($.path, ee));
6652
6652
  if (ne < 0) {
6653
6653
  var ye = Bf(le.text, R);
@@ -6710,7 +6710,7 @@ function Yg(e) {
6710
6710
  text: "",
6711
6711
  start: P.offset,
6712
6712
  end: G.offset
6713
- }, Be = Fr.get(t), Le = Be?.find((ot) => W.equals(ot.path, Q)), Je = Le ? [Le.diff, ue] : [ue], K = Ef(re.text, ...Je);
6713
+ }, Be = Or.get(t), Le = Be?.find((ot) => W.equals(ot.path, Q)), Je = Le ? [Le.diff, ue] : [ue], K = Ef(re.text, ...Je);
6714
6714
  if (K.length === 0 && ($ = !1), ge.isExpanded(Y)) {
6715
6715
  if ($ && W.equals(Y.anchor.path, Y.focus.path)) {
6716
6716
  var je = {
@@ -6871,7 +6871,7 @@ function Yg(e) {
6871
6871
  }
6872
6872
  }, H = () => !!Fn.get(t), L = () => {
6873
6873
  var ee;
6874
- return !!((ee = Fr.get(t)) !== null && ee !== void 0 && ee.length);
6874
+ return !!((ee = Or.get(t)) !== null && ee !== void 0 && ee.length);
6875
6875
  }, z = () => H() || L(), U = () => a, V = (ee) => {
6876
6876
  Tn.set(t, ee), c && (clearTimeout(c), c = null);
6877
6877
  var {
@@ -6941,7 +6941,7 @@ function Zg(e) {
6941
6941
  for (var t = 1; t < arguments.length; t++) {
6942
6942
  var r = arguments[t] != null ? arguments[t] : {};
6943
6943
  t % 2 ? _c(Object(r), !0).forEach(function(n) {
6944
- qr(e, n, r[n]);
6944
+ Hr(e, n, r[n]);
6945
6945
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : _c(Object(r)).forEach(function(n) {
6946
6946
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
6947
6947
  });
@@ -6998,7 +6998,7 @@ function i2(e) {
6998
6998
  for (var t = 1; t < arguments.length; t++) {
6999
6999
  var r = arguments[t] != null ? arguments[t] : {};
7000
7000
  t % 2 ? qc(Object(r), !0).forEach(function(n) {
7001
- qr(e, n, r[n]);
7001
+ Hr(e, n, r[n]);
7002
7002
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : qc(Object(r)).forEach(function(n) {
7003
7003
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
7004
7004
  });
@@ -7066,7 +7066,7 @@ function Ff(e) {
7066
7066
  for (var t = 1; t < arguments.length; t++) {
7067
7067
  var r = arguments[t] != null ? arguments[t] : {};
7068
7068
  t % 2 ? Wc(Object(r), !0).forEach(function(n) {
7069
- qr(e, n, r[n]);
7069
+ Hr(e, n, r[n]);
7070
7070
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Wc(Object(r)).forEach(function(n) {
7071
7071
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
7072
7072
  });
@@ -7192,7 +7192,7 @@ function p0(e) {
7192
7192
  for (var t = 1; t < arguments.length; t++) {
7193
7193
  var r = arguments[t] != null ? arguments[t] : {};
7194
7194
  t % 2 ? Vc(Object(r), !0).forEach(function(n) {
7195
- qr(e, n, r[n]);
7195
+ Hr(e, n, r[n]);
7196
7196
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Vc(Object(r)).forEach(function(n) {
7197
7197
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
7198
7198
  });
@@ -7415,7 +7415,7 @@ var D2 = 3, C2 = {
7415
7415
  };
7416
7416
  class Pf extends Ih {
7417
7417
  constructor() {
7418
- super(...arguments), qr(this, "context", null), qr(this, "manager", null), qr(this, "mutationObserver", null);
7418
+ super(...arguments), Hr(this, "context", null), Hr(this, "manager", null), Hr(this, "mutationObserver", null);
7419
7419
  }
7420
7420
  observe() {
7421
7421
  var t, {
@@ -7451,7 +7451,7 @@ class Pf extends Ih {
7451
7451
  return this.props.children;
7452
7452
  }
7453
7453
  }
7454
- qr(Pf, "contextType", P0);
7454
+ Hr(Pf, "contextType", P0);
7455
7455
  var S2 = Dr ? Pf : (e) => {
7456
7456
  var {
7457
7457
  children: t
@@ -7472,7 +7472,7 @@ function tn(e) {
7472
7472
  for (var t = 1; t < arguments.length; t++) {
7473
7473
  var r = arguments[t] != null ? arguments[t] : {};
7474
7474
  t % 2 ? Gc(Object(r), !0).forEach(function(n) {
7475
- qr(e, n, r[n]);
7475
+ Hr(e, n, r[n]);
7476
7476
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Gc(Object(r)).forEach(function(n) {
7477
7477
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
7478
7478
  });
@@ -7906,7 +7906,7 @@ var N2 = (e) => /* @__PURE__ */ rt.createElement(rt.Fragment, null, Nf(e)), jo =
7906
7906
  var {
7907
7907
  relatedTarget: re
7908
7908
  } = P, Q = De.toDOMNode(g, g);
7909
- if (re !== Q && !(_r(re) && re.hasAttribute("data-slate-spacer"))) {
7909
+ if (re !== Q && !(qr(re) && re.hasAttribute("data-slate-spacer"))) {
7910
7910
  if (re != null && Nn(re) && De.hasDOMNode(g, re)) {
7911
7911
  var ue = De.toSlateNode(g, re);
7912
7912
  if (Ze.isElement(ue) && !g.isVoid(ue))
@@ -8347,7 +8347,7 @@ function Zc(e) {
8347
8347
  for (var t = 1; t < arguments.length; t++) {
8348
8348
  var r = arguments[t] != null ? arguments[t] : {};
8349
8349
  t % 2 ? Jc(Object(r), !0).forEach(function(n) {
8350
- qr(e, n, r[n]);
8350
+ Hr(e, n, r[n]);
8351
8351
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Jc(Object(r)).forEach(function(n) {
8352
8352
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
8353
8353
  });
@@ -8364,10 +8364,10 @@ var q2 = function(t) {
8364
8364
  } = n;
8365
8365
  return Di.set(n, /* @__PURE__ */ new WeakMap()), n.addMark = (p, y) => {
8366
8366
  var C, A;
8367
- (C = I0.get(n)) === null || C === void 0 || C(), !Vr.get(n) && (A = Fr.get(n)) !== null && A !== void 0 && A.length && Vr.set(n, null), hn.delete(n), d(p, y);
8367
+ (C = I0.get(n)) === null || C === void 0 || C(), !Vr.get(n) && (A = Or.get(n)) !== null && A !== void 0 && A.length && Vr.set(n, null), hn.delete(n), d(p, y);
8368
8368
  }, n.removeMark = (p) => {
8369
8369
  var y;
8370
- !Vr.get(n) && (y = Fr.get(n)) !== null && y !== void 0 && y.length && Vr.set(n, null), hn.delete(n), m(p);
8370
+ !Vr.get(n) && (y = Or.get(n)) !== null && y !== void 0 && y.length && Vr.set(n, null), hn.delete(n), m(p);
8371
8371
  }, n.deleteBackward = (p) => {
8372
8372
  if (p !== "line")
8373
8373
  return c(p);
@@ -8384,10 +8384,10 @@ var q2 = function(t) {
8384
8384
  }
8385
8385
  }
8386
8386
  }, n.apply = (p) => {
8387
- var y = [], C = [], A = Fr.get(n);
8387
+ var y = [], C = [], A = Or.get(n);
8388
8388
  if (A != null && A.length) {
8389
8389
  var T = A.map((J) => Hg(J, p)).filter(Boolean);
8390
- Fr.set(n, T);
8390
+ Or.set(n, T);
8391
8391
  }
8392
8392
  var N = Tn.get(n);
8393
8393
  N && Tn.set(n, Ic(n, N, p));
@@ -10069,14 +10069,14 @@ Rt.walkTokens;
10069
10069
  Rt.parseInline;
10070
10070
  mn.parse;
10071
10071
  pn.lex;
10072
- var Or = function() {
10073
- return Or = Object.assign || function(t) {
10072
+ var Mr = function() {
10073
+ return Mr = Object.assign || function(t) {
10074
10074
  for (var r, n = 1, a = arguments.length; n < a; n++) {
10075
10075
  r = arguments[n];
10076
10076
  for (var l in r) Object.prototype.hasOwnProperty.call(r, l) && (t[l] = r[l]);
10077
10077
  }
10078
10078
  return t;
10079
- }, Or.apply(this, arguments);
10079
+ }, Mr.apply(this, arguments);
10080
10080
  };
10081
10081
  function Zn(e, t, r) {
10082
10082
  if (r || arguments.length === 2) for (var n = 0, a = t.length, l; n < a; n++)
@@ -10133,7 +10133,7 @@ function ad(e, t) {
10133
10133
  return !fn(r, t);
10134
10134
  });
10135
10135
  }
10136
- var Ei = 1, ba = 1, Qf = 0, Hr = 0, cr = 0, ka = "";
10136
+ var Ei = 1, ba = 1, Qf = 0, Wr = 0, cr = 0, ka = "";
10137
10137
  function Bi(e, t, r, n, a, l, c, d) {
10138
10138
  return { value: e, root: t, parent: r, type: n, props: a, children: l, line: Ei, column: ba, length: c, return: "", siblings: d };
10139
10139
  }
@@ -10149,16 +10149,16 @@ function N5() {
10149
10149
  return cr;
10150
10150
  }
10151
10151
  function M5() {
10152
- return cr = Hr > 0 ? gr(ka, --Hr) : 0, ba--, cr === 10 && (ba = 1, Ei--), cr;
10152
+ return cr = Wr > 0 ? gr(ka, --Wr) : 0, ba--, cr === 10 && (ba = 1, Ei--), cr;
10153
10153
  }
10154
10154
  function Gr() {
10155
- return cr = Hr < Qf ? gr(ka, Hr++) : 0, ba++, cr === 10 && (ba = 1, Ei++), cr;
10155
+ return cr = Wr < Qf ? gr(ka, Wr++) : 0, ba++, cr === 10 && (ba = 1, Ei++), cr;
10156
10156
  }
10157
10157
  function Vn() {
10158
- return gr(ka, Hr);
10158
+ return gr(ka, Wr);
10159
10159
  }
10160
10160
  function Zs() {
10161
- return Hr;
10161
+ return Wr;
10162
10162
  }
10163
10163
  function Si(e, t) {
10164
10164
  return va(ka, e, t);
@@ -10202,13 +10202,13 @@ function y0(e) {
10202
10202
  return 0;
10203
10203
  }
10204
10204
  function R5(e) {
10205
- return Ei = ba = 1, Qf = nn(ka = e), Hr = 0, [];
10205
+ return Ei = ba = 1, Qf = nn(ka = e), Wr = 0, [];
10206
10206
  }
10207
10207
  function j5(e) {
10208
10208
  return ka = "", e;
10209
10209
  }
10210
10210
  function zo(e) {
10211
- return Jf(Si(Hr - 1, x0(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
10211
+ return Jf(Si(Wr - 1, x0(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
10212
10212
  }
10213
10213
  function P5(e) {
10214
10214
  for (; (cr = Vn()) && cr < 33; )
@@ -10225,7 +10225,7 @@ function x0(e) {
10225
10225
  switch (cr) {
10226
10226
  // ] ) " '
10227
10227
  case e:
10228
- return Hr;
10228
+ return Wr;
10229
10229
  // " '
10230
10230
  case 34:
10231
10231
  case 39:
@@ -10240,18 +10240,18 @@ function x0(e) {
10240
10240
  Gr();
10241
10241
  break;
10242
10242
  }
10243
- return Hr;
10243
+ return Wr;
10244
10244
  }
10245
10245
  function $5(e, t) {
10246
10246
  for (; Gr() && e + cr !== 57; )
10247
10247
  if (e + cr === 84 && Vn() === 47)
10248
10248
  break;
10249
- return "/*" + Si(t, Hr - 1) + "*" + Z0(e === 47 ? e : Gr());
10249
+ return "/*" + Si(t, Wr - 1) + "*" + Z0(e === 47 ? e : Gr());
10250
10250
  }
10251
10251
  function I5(e) {
10252
10252
  for (; !y0(Vn()); )
10253
10253
  Gr();
10254
- return Si(e, Hr);
10254
+ return Si(e, Wr);
10255
10255
  }
10256
10256
  function L5(e) {
10257
10257
  return j5(Qs("", null, null, null, [""], e = R5(e), 0, [0], e));
@@ -10938,7 +10938,7 @@ var d1 = function(e) {
10938
10938
  function e(t, r, n) {
10939
10939
  t === void 0 && (t = ya), r === void 0 && (r = {});
10940
10940
  var a = this;
10941
- this.options = Or(Or({}, x3), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && mi && pd && (pd = !1, hd(this)), tl(this, function() {
10941
+ this.options = Mr(Mr({}, x3), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && mi && pd && (pd = !1, hd(this)), tl(this, function() {
10942
10942
  return (function(l) {
10943
10943
  for (var c = l.getTag(), d = c.length, m = "", p = function(C) {
10944
10944
  var A = (function(I) {
@@ -10961,7 +10961,7 @@ var d1 = function(e) {
10961
10961
  }, e.prototype.rehydrate = function() {
10962
10962
  !this.server && mi && hd(this);
10963
10963
  }, e.prototype.reconstructWithOptions = function(t, r) {
10964
- return r === void 0 && (r = !0), new e(Or(Or({}, this.options), t), this.gs, r && this.names || void 0);
10964
+ return r === void 0 && (r = !0), new e(Mr(Mr({}, this.options), t), this.gs, r && this.names || void 0);
10965
10965
  }, e.prototype.allocateGSInstance = function(t) {
10966
10966
  return this.gs[t] = (this.gs[t] || 0) + 1;
10967
10967
  }, e.prototype.getTag = function() {
@@ -11134,9 +11134,9 @@ function F3(e, t, r) {
11134
11134
  var xe = U.attrs, oe = U.componentStyle, he = U.defaultProps, ee = U.foldedComponentIds, R = U.styledComponentId, J = U.target, Y = rt.useContext(v1), le = md(), ne = U.shouldForwardProp || le.shouldForwardProp;
11135
11135
  process.env.NODE_ENV !== "production" && vu(R);
11136
11136
  var ye = K5(V, Y, he) || ya, pe = (function(me, P, G) {
11137
- for (var re, Q = Or(Or({}, P), { className: void 0, theme: G }), ue = 0; ue < me.length; ue += 1) {
11137
+ for (var re, Q = Mr(Mr({}, P), { className: void 0, theme: G }), ue = 0; ue < me.length; ue += 1) {
11138
11138
  var Be = xa(re = me[ue]) ? re(Q) : re;
11139
- for (var Le in Be) Q[Le] = Le === "className" ? qn(Q[Le], Be[Le]) : Le === "style" ? Or(Or({}, Q[Le]), Be[Le]) : Be[Le];
11139
+ for (var Le in Be) Q[Le] = Le === "className" ? qn(Q[Le], Be[Le]) : Le === "style" ? Mr(Mr({}, Q[Le]), Be[Le]) : Be[Le];
11140
11140
  }
11141
11141
  return P.className && (Q.className = qn(Q.className, P.className)), Q;
11142
11142
  })(xe, V, ye), $ = pe.as || J, de = {};
@@ -11201,9 +11201,9 @@ function B0(e, t, r) {
11201
11201
  return e(t, r, Oi.apply(void 0, Zn([a], l, !1)));
11202
11202
  };
11203
11203
  return n.attrs = function(a) {
11204
- return B0(e, t, Or(Or({}, r), { attrs: Array.prototype.concat(r.attrs, a).filter(Boolean) }));
11204
+ return B0(e, t, Mr(Mr({}, r), { attrs: Array.prototype.concat(r.attrs, a).filter(Boolean) }));
11205
11205
  }, n.withConfig = function(a) {
11206
- return B0(e, t, Or(Or({}, r), a));
11206
+ return B0(e, t, Mr(Mr({}, r), a));
11207
11207
  }, n;
11208
11208
  }
11209
11209
  var b1 = function(e) {
@@ -16714,7 +16714,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
16714
16714
  function cl(i) {
16715
16715
  return new He(i);
16716
16716
  }
16717
- class Nr {
16717
+ class Rr {
16718
16718
  constructor(s, o, u) {
16719
16719
  this.type = void 0, this.attributes = void 0, this.children = void 0, this.classes = void 0, this.type = s, this.attributes = {}, this.children = o || [], this.classes = u || [];
16720
16720
  }
@@ -16825,7 +16825,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
16825
16825
  }
16826
16826
  }
16827
16827
  var Me = {
16828
- MathNode: Nr,
16828
+ MathNode: Rr,
16829
16829
  TextNode: Xr,
16830
16830
  SpaceNode: W1,
16831
16831
  newDocumentFragment: cl
@@ -16889,13 +16889,13 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
16889
16889
  const Br = function(i, s, o) {
16890
16890
  if (i.length === 1) {
16891
16891
  const b = Wt(i[0], s);
16892
- return o && b instanceof Nr && b.type === "mo" && (b.setAttribute("lspace", "0em"), b.setAttribute("rspace", "0em")), [b];
16892
+ return o && b instanceof Rr && b.type === "mo" && (b.setAttribute("lspace", "0em"), b.setAttribute("rspace", "0em")), [b];
16893
16893
  }
16894
16894
  const u = [];
16895
16895
  let f;
16896
16896
  for (let b = 0; b < i.length; b++) {
16897
16897
  const D = Wt(i[b], s);
16898
- if (D instanceof Nr && f instanceof Nr) {
16898
+ if (D instanceof Rr && f instanceof Rr) {
16899
16899
  if (D.type === "mtext" && f.type === "mtext" && D.getAttribute("mathvariant") === f.getAttribute("mathvariant")) {
16900
16900
  f.children.push(...D.children);
16901
16901
  continue;
@@ -16909,7 +16909,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
16909
16909
  D.children = [...f.children, ...D.children], u.pop();
16910
16910
  else if ((D.type === "msup" || D.type === "msub") && D.children.length >= 1 && (f.type === "mn" || $i(f))) {
16911
16911
  const S = D.children[0];
16912
- S instanceof Nr && S.type === "mn" && (S.children = [...f.children, ...S.children], u.pop());
16912
+ S instanceof Rr && S.type === "mn" && (S.children = [...f.children, ...S.children], u.pop());
16913
16913
  } else if (f.type === "mi" && f.children.length === 1) {
16914
16914
  const S = f.children[0];
16915
16915
  if (S instanceof Xr && S.text === "\u0338" && (D.type === "mo" || D.type === "mi" || D.type === "mn")) {
@@ -16933,7 +16933,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
16933
16933
  function dl(i, s, o, u, f) {
16934
16934
  const b = Br(i, o);
16935
16935
  let D;
16936
- b.length === 1 && b[0] instanceof Nr && ["mrow", "mtable"].includes(b[0].type) ? D = b[0] : D = new Me.MathNode("mrow", b);
16936
+ b.length === 1 && b[0] instanceof Rr && ["mrow", "mtable"].includes(b[0].type) ? D = b[0] : D = new Me.MathNode("mrow", b);
16937
16937
  const S = new Me.MathNode("annotation", [new Me.TextNode(s)]);
16938
16938
  S.setAttribute("encoding", "application/x-tex");
16939
16939
  const M = new Me.MathNode("semantics", [D, S]), _ = new Me.MathNode("math", [M]);
@@ -18703,7 +18703,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
18703
18703
  return o ? !s || !s.loc || !o.loc || s.loc.lexer !== o.loc.lexer ? null : new Sr(s.loc.lexer, s.loc.start, o.loc.end) : s && s.loc;
18704
18704
  }
18705
18705
  }
18706
- class Mr {
18706
+ class jr {
18707
18707
  // don't expand the token
18708
18708
  // used in \noexpand
18709
18709
  constructor(s, o) {
@@ -18714,7 +18714,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
18714
18714
  * the whole input range enclosed by these two.
18715
18715
  */
18716
18716
  range(s, o) {
18717
- return new Mr(o, Sr.range(this, s));
18717
+ return new jr(o, Sr.range(this, s));
18718
18718
  }
18719
18719
  }
18720
18720
  function jl(i) {
@@ -18760,7 +18760,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
18760
18760
  M && i.gullet.macros.set("\\@eqnsw", "1", !0);
18761
18761
  }
18762
18762
  function Mt() {
18763
- xt && (i.gullet.macros.get("\\df@tag") ? (xt.push(i.subparse([new Mr("\\df@tag")])), i.gullet.macros.set("\\df@tag", void 0, !0)) : xt.push(!!M && i.gullet.macros.get("\\@eqnsw") === "1"));
18763
+ xt && (i.gullet.macros.get("\\df@tag") ? (xt.push(i.subparse([new jr("\\df@tag")])), i.gullet.macros.set("\\df@tag", void 0, !0)) : xt.push(!!M && i.gullet.macros.get("\\@eqnsw") === "1"));
18764
18764
  }
18765
18765
  for (St(), Et.push(jl(i)); ; ) {
18766
18766
  let Gt = i.parseExpression(!1, _ ? "\\end" : "\\\\");
@@ -19852,7 +19852,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
19852
19852
  },
19853
19853
  mathmlBuilder: (i, s) => {
19854
19854
  let o = kn(i.body, s);
19855
- return o instanceof Nr || (o = new Nr("mrow", [o])), o.setAttribute("href", i.href), o;
19855
+ return o instanceof Rr || (o = new Rr("mrow", [o])), o.setAttribute("href", i.href), o;
19856
19856
  }
19857
19857
  }), qe({
19858
19858
  type: "href",
@@ -20402,13 +20402,13 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
20402
20402
  }, Oa = (i, s) => {
20403
20403
  let o;
20404
20404
  if (i.symbol)
20405
- o = new Nr("mo", [$r(i.name, i.mode)]), Gl.includes(i.name) && o.setAttribute("largeop", "false");
20405
+ o = new Rr("mo", [$r(i.name, i.mode)]), Gl.includes(i.name) && o.setAttribute("largeop", "false");
20406
20406
  else if (i.body)
20407
- o = new Nr("mo", Br(i.body, s));
20407
+ o = new Rr("mo", Br(i.body, s));
20408
20408
  else {
20409
- o = new Nr("mi", [new Xr(i.name.slice(1))]);
20410
- const u = new Nr("mo", [$r("\u2061", "text")]);
20411
- i.parentIsSupSub ? o = new Nr("mrow", [o, u]) : o = cl([o, u]);
20409
+ o = new Rr("mi", [new Xr(i.name.slice(1))]);
20410
+ const u = new Rr("mo", [$r("\u2061", "text")]);
20411
+ i.parentIsSupSub ? o = new Rr("mrow", [o, u]) : o = cl([o, u]);
20412
20412
  }
20413
20413
  return o;
20414
20414
  }, gh = {
@@ -21462,17 +21462,17 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
21462
21462
  lex() {
21463
21463
  const s = this.input, o = this.tokenRegex.lastIndex;
21464
21464
  if (o === s.length)
21465
- return new Mr("EOF", new Sr(this, o, o));
21465
+ return new jr("EOF", new Sr(this, o, o));
21466
21466
  const u = this.tokenRegex.exec(s);
21467
21467
  if (u === null || u.index !== o)
21468
- throw new l("Unexpected character: '" + s[o] + "'", new Mr(s[o], new Sr(this, o, o + 1)));
21468
+ throw new l("Unexpected character: '" + s[o] + "'", new jr(s[o], new Sr(this, o, o + 1)));
21469
21469
  const f = u[6] || u[3] || (u[2] ? "\\ " : " ");
21470
21470
  if (this.catcodes[f] === 14) {
21471
21471
  const b = s.indexOf(`
21472
21472
  `, this.tokenRegex.lastIndex);
21473
21473
  return b === -1 ? (this.tokenRegex.lastIndex = s.length, this.settings.reportNonstrict("commentAtEnd", "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")) : this.tokenRegex.lastIndex = b + 1, this.lex();
21474
21474
  }
21475
- return new Mr(f, new Sr(this, o, this.tokenRegex.lastIndex));
21475
+ return new jr(f, new Sr(this, o, this.tokenRegex.lastIndex));
21476
21476
  }
21477
21477
  }
21478
21478
  class Eh {
@@ -21885,7 +21885,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
21885
21885
  start: o,
21886
21886
  end: u
21887
21887
  } = this.consumeArg());
21888
- return this.pushToken(new Mr("EOF", u.loc)), this.pushTokens(f), new Mr("", Sr.range(o, u));
21888
+ return this.pushToken(new jr("EOF", u.loc)), this.pushTokens(f), new jr("", Sr.range(o, u));
21889
21889
  }
21890
21890
  /**
21891
21891
  * Consume all following space tokens, without expansion.
@@ -22026,7 +22026,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
22026
22026
  * tokens, or return `undefined` if no such macro is defined.
22027
22027
  */
22028
22028
  expandMacro(s) {
22029
- return this.macros.has(s) ? this.expandTokens([new Mr(s)]) : void 0;
22029
+ return this.macros.has(s) ? this.expandTokens([new jr(s)]) : void 0;
22030
22030
  }
22031
22031
  /**
22032
22032
  * Fully expand the given token stream and return the resulting list of
@@ -22646,7 +22646,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
22646
22646
  */
22647
22647
  subparse(s) {
22648
22648
  const o = this.nextToken;
22649
- this.consume(), this.gullet.pushToken(new Mr("}")), this.gullet.pushTokens(s);
22649
+ this.consume(), this.gullet.pushToken(new jr("}")), this.gullet.pushTokens(s);
22650
22650
  const u = this.parseExpression(!1);
22651
22651
  return this.expect("}"), this.nextToken = o, u;
22652
22652
  }
@@ -22793,11 +22793,11 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
22793
22793
  };
22794
22794
  } else if (ys[b.text]) {
22795
22795
  const D = du.test(b.text), S = [];
22796
- for (S.push(new Mr(ys[b.text])), this.consume(); ; ) {
22796
+ for (S.push(new jr(ys[b.text])), this.consume(); ; ) {
22797
22797
  const _ = this.fetch().text;
22798
22798
  if (!ys[_] || du.test(_) !== D)
22799
22799
  break;
22800
- S.unshift(new Mr(ys[_])), this.consume();
22800
+ S.unshift(new jr(ys[_])), this.consume();
22801
22801
  }
22802
22802
  const M = this.subparse(S);
22803
22803
  D ? f = {
@@ -23194,7 +23194,7 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
23194
23194
  type: "tag",
23195
23195
  mode: "text",
23196
23196
  body: u,
23197
- tag: o.subparse([new Mr("\\df@tag")])
23197
+ tag: o.subparse([new jr("\\df@tag")])
23198
23198
  }];
23199
23199
  }
23200
23200
  return u;
@@ -28697,7 +28697,7 @@ const M7 = Ne.div.attrs({
28697
28697
  display: flex;
28698
28698
  flex-direction: column;
28699
28699
  gap: 12px;
28700
- `, Rr = Ne.div.attrs({
28700
+ `, Fr = Ne.div.attrs({
28701
28701
  className: "retrive-chat-config-item"
28702
28702
  })`
28703
28703
  display: flex;
@@ -28709,12 +28709,12 @@ const M7 = Ne.div.attrs({
28709
28709
  &:last-child {
28710
28710
  border-bottom: none;
28711
28711
  }
28712
- `, jr = Ne.span.attrs({
28712
+ `, Tr = Ne.span.attrs({
28713
28713
  className: "retrive-chat-config-item-label"
28714
28714
  })`
28715
28715
  font-size: 13px;
28716
28716
  color: ${({ theme: e }) => e.colors?.text || "#374151"};
28717
- `, Ur = Ne.span.attrs({
28717
+ `, _r = Ne.span.attrs({
28718
28718
  className: "retrive-chat-config-item-value"
28719
28719
  })`
28720
28720
  font-size: 13px;
@@ -29341,52 +29341,56 @@ const M7 = Ne.div.attrs({
29341
29341
  /* @__PURE__ */ w.jsx("span", { children: "\u53EC\u56DE\u914D\u7F6E" })
29342
29342
  ] }),
29343
29343
  /* @__PURE__ */ w.jsxs(Ud, { theme: R, children: [
29344
- (G.textChunks !== void 0 || G.top_k !== void 0) && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29345
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u8FD4\u56DE\u6587\u672C\u7247\u6570\u91CF" }),
29346
- /* @__PURE__ */ w.jsx(Ur, { theme: R, children: G.textChunks ?? G.top_k })
29344
+ (G.textChunks !== void 0 || G.top_k !== void 0) && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29345
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u8FD4\u56DE\u6587\u672C\u7247\u6570\u91CF" }),
29346
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: G.textChunks ?? G.top_k })
29347
29347
  ] }),
29348
- (G.topP !== void 0 || G.score_threshold !== void 0) && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29349
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u76F8\u4F3C\u5EA6\u9608\u503C" }),
29350
- /* @__PURE__ */ w.jsx(Ur, { theme: R, children: G.topP ?? G.score_threshold })
29348
+ (G.topP !== void 0 || G.score_threshold !== void 0) && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29349
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u76F8\u4F3C\u5EA6\u9608\u503C" }),
29350
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: G.topP ?? G.score_threshold })
29351
29351
  ] }),
29352
- (G.topN !== void 0 || G.top_k !== void 0) && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29353
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u53EC\u56DE\u6570\u91CF" }),
29354
- /* @__PURE__ */ w.jsx(Ur, { theme: R, children: G.topN ?? G.top_k })
29352
+ (G.topN !== void 0 || G.top_k !== void 0) && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29353
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u53EC\u56DE\u6570\u91CF" }),
29354
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: G.topN ?? G.top_k })
29355
29355
  ] }),
29356
- (G.denseWeight !== void 0 || G.dense_weight !== void 0) && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29357
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u5411\u91CF\u6743\u91CD" }),
29358
- /* @__PURE__ */ w.jsx(Ur, { theme: R, children: G.denseWeight ?? G.dense_weight })
29356
+ (G.denseWeight !== void 0 || G.dense_weight !== void 0) && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29357
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u5411\u91CF\u6743\u91CD" }),
29358
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: G.denseWeight ?? G.dense_weight })
29359
29359
  ] }),
29360
- (G["search policy"] !== void 0 || G.search_policy !== void 0) && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29361
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u68C0\u7D22\u7B56\u7565" }),
29362
- /* @__PURE__ */ w.jsx(Ur, { theme: R, children: (() => {
29360
+ (G["search policy"] !== void 0 || G.search_policy !== void 0) && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29361
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u68C0\u7D22\u7B56\u7565" }),
29362
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: (() => {
29363
29363
  const K = G["search policy"] ?? G.search_policy;
29364
29364
  return K === 1 ? "\u6DF7\u5408\u68C0\u7D22" : K === 2 ? "\u5411\u91CF\u68C0\u7D22" : K === 3 ? "\u5173\u952E\u8BCD\u68C0\u7D22" : K;
29365
29365
  })() })
29366
29366
  ] }),
29367
- G.diversity !== void 0 && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29368
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u591A\u6837\u6027" }),
29369
- /* @__PURE__ */ w.jsx(Ur, { theme: R, children: G.diversity })
29367
+ G.diversity !== void 0 && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29368
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u591A\u6837\u6027" }),
29369
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: G.diversity })
29370
29370
  ] }),
29371
- G.temperature !== void 0 && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29372
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u6E29\u5EA6" }),
29373
- /* @__PURE__ */ w.jsx(Ur, { theme: R, children: G.temperature })
29371
+ G.temperature !== void 0 && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29372
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u6E29\u5EA6" }),
29373
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: G.temperature })
29374
29374
  ] }),
29375
- G.maxTokens !== void 0 && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29376
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u6700\u5927\u4EE4\u724C\u6570" }),
29377
- /* @__PURE__ */ w.jsx(Ur, { theme: R, children: G.maxTokens })
29375
+ G.maxTokens !== void 0 && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29376
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u6700\u5927\u4EE4\u724C\u6570" }),
29377
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: G.maxTokens })
29378
29378
  ] }),
29379
- (G["1lmModel"] !== void 0 || G.plan_model_name !== void 0) && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29380
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u95EE\u7B54\u6A21\u578B" }),
29381
- /* @__PURE__ */ w.jsx(Ur, { theme: R, children: G["1lmModel"] ?? G.plan_model_name })
29379
+ (G.model_name !== void 0 || G["1lmModel"] !== void 0) && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29380
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u95EE\u7B54\u6A21\u578B" }),
29381
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: G.model_name ?? G["1lmModel"] })
29382
29382
  ] }),
29383
- G.recallModel !== void 0 && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29384
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u6392\u5E8F\u6A21\u578B" }),
29385
- /* @__PURE__ */ w.jsx(Ur, { theme: R, children: G.recallModel })
29383
+ G.plan_model_name !== void 0 && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29384
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u89C4\u5212\u6A21\u578B" }),
29385
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: G.plan_model_name })
29386
29386
  ] }),
29387
- G.search_type !== void 0 && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29388
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u7D22\u5F15\u6765\u6E90" }),
29389
- /* @__PURE__ */ w.jsx(Ur, { theme: R, children: G.search_type ?? "undefined" })
29387
+ G.recallModel !== void 0 && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29388
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u6392\u5E8F\u6A21\u578B" }),
29389
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: G.recallModel })
29390
+ ] }),
29391
+ G.search_type !== void 0 && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29392
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u7D22\u5F15\u6765\u6E90" }),
29393
+ /* @__PURE__ */ w.jsx(_r, { theme: R, children: G.search_type ?? "undefined" })
29390
29394
  ] })
29391
29395
  ] })
29392
29396
  ] }),
@@ -29396,8 +29400,8 @@ const M7 = Ne.div.attrs({
29396
29400
  /* @__PURE__ */ w.jsx("span", { children: "\u529F\u80FD\u5F00\u5173" })
29397
29401
  ] }),
29398
29402
  /* @__PURE__ */ w.jsxs(Ud, { theme: R, children: [
29399
- (G.enableKG !== void 0 || G.enabled_graph !== void 0) && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29400
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u56FE\u8C31\u589E\u5F3A" }),
29403
+ (G.enableKG !== void 0 || G.enabled_graph !== void 0) && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29404
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u56FE\u8C31\u589E\u5F3A" }),
29401
29405
  /* @__PURE__ */ w.jsx(
29402
29406
  Vd,
29403
29407
  {
@@ -29407,8 +29411,8 @@ const M7 = Ne.div.attrs({
29407
29411
  }
29408
29412
  )
29409
29413
  ] }),
29410
- G.enableThinking !== void 0 && /* @__PURE__ */ w.jsxs(Rr, { theme: R, children: [
29411
- /* @__PURE__ */ w.jsx(jr, { theme: R, children: "\u6DF1\u5EA6\u601D\u8003" }),
29414
+ G.enableThinking !== void 0 && /* @__PURE__ */ w.jsxs(Fr, { theme: R, children: [
29415
+ /* @__PURE__ */ w.jsx(Tr, { theme: R, children: "\u6DF1\u5EA6\u601D\u8003" }),
29412
29416
  /* @__PURE__ */ w.jsx(
29413
29417
  Vd,
29414
29418
  {