@apolitical/component-library 4.4.1-SW.0 → 4.4.2-SW.0

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.
package/index.mjs CHANGED
@@ -156,10 +156,10 @@ function lh() {
156
156
  ze.unshift("Warning: " + ie), Function.prototype.apply.call(console[j], console, ze);
157
157
  }
158
158
  }
159
- var E = !1, x = !1, A = !1, F = !1, L = !1, N;
159
+ var E = !1, x = !1, A = !1, T = !1, L = !1, N;
160
160
  N = Symbol.for("react.module.reference");
161
161
  function $(j) {
162
- return !!(typeof j == "string" || typeof j == "function" || j === r || j === i || L || j === a || j === u || j === c || F || j === m || E || x || A || typeof j == "object" && j !== null && (j.$$typeof === p || j.$$typeof === h || j.$$typeof === s || j.$$typeof === o || j.$$typeof === l || // This needs to include all possible module reference object
162
+ return !!(typeof j == "string" || typeof j == "function" || j === r || j === i || L || j === a || j === u || j === c || T || j === m || E || x || A || typeof j == "object" && j !== null && (j.$$typeof === p || j.$$typeof === h || j.$$typeof === s || j.$$typeof === o || j.$$typeof === l || // This needs to include all possible module reference object
163
163
  // types supported by any Flight configuration anywhere since
164
164
  // we don't know which Flight build this will end up being used
165
165
  // with.
@@ -220,7 +220,7 @@ function lh() {
220
220
  }
221
221
  return null;
222
222
  }
223
- var T = Object.assign, R = 0, P, W, ee, Y, y, z, X;
223
+ var F = Object.assign, R = 0, P, W, ee, Y, y, z, X;
224
224
  function k() {
225
225
  }
226
226
  k.__reactDisabledLog = !0;
@@ -256,25 +256,25 @@ function lh() {
256
256
  writable: !0
257
257
  };
258
258
  Object.defineProperties(console, {
259
- log: T({}, j, {
259
+ log: F({}, j, {
260
260
  value: P
261
261
  }),
262
- info: T({}, j, {
262
+ info: F({}, j, {
263
263
  value: W
264
264
  }),
265
- warn: T({}, j, {
265
+ warn: F({}, j, {
266
266
  value: ee
267
267
  }),
268
- error: T({}, j, {
268
+ error: F({}, j, {
269
269
  value: Y
270
270
  }),
271
- group: T({}, j, {
271
+ group: F({}, j, {
272
272
  value: y
273
273
  }),
274
- groupCollapsed: T({}, j, {
274
+ groupCollapsed: F({}, j, {
275
275
  value: z
276
276
  }),
277
- groupEnd: T({}, j, {
277
+ groupEnd: F({}, j, {
278
278
  value: X
279
279
  })
280
280
  });
@@ -755,12 +755,12 @@ function yc(e, t, n) {
755
755
  return !1;
756
756
  var M = $ - a.current;
757
757
  return !a.current || M >= t || M < 0 || D && $ - i.current >= C;
758
- }, F = function($) {
758
+ }, T = function($) {
759
759
  return s.current = null, f && o.current ? E($) : (o.current = l.current = null, u.current);
760
760
  }, L = function $() {
761
761
  var M = Date.now();
762
762
  if (A(M))
763
- return F(M);
763
+ return T(M);
764
764
  if (h.current) {
765
765
  var w = t - (M - a.current), B = D ? Math.min(w, C - (M - i.current)) : w;
766
766
  x($, B);
@@ -782,7 +782,7 @@ function yc(e, t, n) {
782
782
  }, N.isPending = function() {
783
783
  return !!s.current;
784
784
  }, N.flush = function() {
785
- return s.current ? F(Date.now()) : u.current;
785
+ return s.current ? T(Date.now()) : u.current;
786
786
  }, N;
787
787
  }, [g, D, t, C, f, m, p, v]);
788
788
  return _;
@@ -914,8 +914,8 @@ const To = {}, rr = Ns(
914
914
  g(L);
915
915
  }, 300);
916
916
  }, [n]);
917
- const F = { ...l };
918
- return s && s.onBlur && (F.onBlur = s.onBlur), /* @__PURE__ */ d.jsx(
917
+ const T = { ...l };
918
+ return s && s.onBlur && (T.onBlur = s.onBlur), /* @__PURE__ */ d.jsx(
919
919
  "aside",
920
920
  {
921
921
  ref: p,
@@ -926,7 +926,7 @@ const To = {}, rr = Ns(
926
926
  bottom: D === "bottom",
927
927
  "has-form": v
928
928
  }),
929
- ...F,
929
+ ...T,
930
930
  children: /* @__PURE__ */ d.jsx("div", { className: "content", hidden: m === "hidden", children: r ? /* @__PURE__ */ d.jsx("p", { children: c.formatMessage({ id: "tooltip_loading" }) }) : typeof a == "string" ? /* @__PURE__ */ d.jsx("p", { children: a }) : a })
931
931
  }
932
932
  );
@@ -3121,17 +3121,17 @@ const rm = ({
3121
3121
  }) => {
3122
3122
  const c = ce(), [h, p] = de(!1), m = r || n, g = Array.isArray(m) ? [...m] : m ? [m] : [], [f, D] = de(g);
3123
3123
  let v;
3124
- Array.isArray(f) && f.length === 1 && typeof f[0] == "string" ? v = t && f ? t.find((F) => F.id === f[0]) : t ? t[0] : { id: "", label: "" } : Array.isArray(f) && f.length === 1 && typeof f[0] != "string" ? v = f[0] : v = { id: "", label: "" }, me(() => {
3124
+ Array.isArray(f) && f.length === 1 && typeof f[0] == "string" ? v = t && f ? t.find((T) => T.id === f[0]) : t ? t[0] : { id: "", label: "" } : Array.isArray(f) && f.length === 1 && typeof f[0] != "string" ? v = f[0] : v = { id: "", label: "" }, me(() => {
3125
3125
  D(g);
3126
3126
  }, [r, n]);
3127
- const { onChange: C, onMultiSelectSubmit: _, ...E } = a, x = (F) => {
3127
+ const { onChange: C, onMultiSelectSubmit: _, ...E } = a, x = (T) => {
3128
3128
  if (o) {
3129
3129
  let L = [];
3130
- f != null && f.includes(F.id) ? L = f.filter((N) => N !== F.id) : L = [...f, F.id], D([...L]), C && C([...L]);
3130
+ f != null && f.includes(T.id) ? L = f.filter((N) => N !== T.id) : L = [...f, T.id], D([...L]), C && C([...L]);
3131
3131
  } else
3132
- D([F]), C && C(F.id), p(!1);
3133
- }, A = (F) => {
3134
- if (F === "all") {
3132
+ D([T]), C && C(T.id), p(!1);
3133
+ }, A = (T) => {
3134
+ if (T === "all") {
3135
3135
  const L = (t == null ? void 0 : t.map((N) => N.id)) || [];
3136
3136
  D(L), C && C(L);
3137
3137
  } else
@@ -3145,8 +3145,8 @@ const rm = ({
3145
3145
  "aria-expanded": h,
3146
3146
  "aria-haspopup": "listbox",
3147
3147
  "aria-controls": "dropdown-list",
3148
- onClick: (F) => {
3149
- F.preventDefault(), F.stopPropagation(), p(!h);
3148
+ onClick: (T) => {
3149
+ T.preventDefault(), T.stopPropagation(), p(!h);
3150
3150
  },
3151
3151
  "data-testid": "dropdown-selector",
3152
3152
  ...E,
@@ -3160,14 +3160,14 @@ const rm = ({
3160
3160
  "select",
3161
3161
  {
3162
3162
  defaultValue: v.id,
3163
- onChange: (F) => {
3164
- F.preventDefault(), F.stopPropagation();
3165
- const L = t && t.find((N) => N.id === F.target.value);
3163
+ onChange: (T) => {
3164
+ T.preventDefault(), T.stopPropagation();
3165
+ const L = t && t.find((N) => N.id === T.target.value);
3166
3166
  x(L);
3167
3167
  },
3168
3168
  hidden: !h,
3169
3169
  ...E,
3170
- children: t == null ? void 0 : t.map((F) => /* @__PURE__ */ d.jsx("option", { value: F.id, children: F.label }, F.id))
3170
+ children: t == null ? void 0 : t.map((T) => /* @__PURE__ */ d.jsx("option", { value: T.id, children: T.label }, T.id))
3171
3171
  }
3172
3172
  ),
3173
3173
  /* @__PURE__ */ d.jsxs(
@@ -3203,8 +3203,8 @@ const rm = ({
3203
3203
  ) })
3204
3204
  ] })
3205
3205
  ] }),
3206
- /* @__PURE__ */ d.jsx("ul", { children: t == null ? void 0 : t.map((F) => {
3207
- const L = F.id === v.id || (f == null ? void 0 : f.includes(F)) || (f == null ? void 0 : f.includes(F.id));
3206
+ /* @__PURE__ */ d.jsx("ul", { children: t == null ? void 0 : t.map((T) => {
3207
+ const L = T.id === v.id || (f == null ? void 0 : f.includes(T)) || (f == null ? void 0 : f.includes(T.id));
3208
3208
  return /* @__PURE__ */ d.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ d.jsxs(
3209
3209
  "button",
3210
3210
  {
@@ -3212,20 +3212,20 @@ const rm = ({
3212
3212
  selected: L,
3213
3213
  "selected-single": L && !o
3214
3214
  }),
3215
- "data-gtm-event-type": `${F}-click`,
3215
+ "data-gtm-event-type": `${T}-click`,
3216
3216
  "data-gtm-event-context": i,
3217
3217
  onClick: (N) => {
3218
- N.preventDefault(), N.stopPropagation(), x(F);
3218
+ N.preventDefault(), N.stopPropagation(), x(T);
3219
3219
  },
3220
3220
  role: "menuitem",
3221
3221
  "aria-current": L,
3222
3222
  "data-testid": L ? "current-selection" : "",
3223
3223
  children: [
3224
3224
  o && /* @__PURE__ */ d.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
3225
- /* @__PURE__ */ d.jsx("span", { className: Z({ "menu-option-label": o }), children: F.label })
3225
+ /* @__PURE__ */ d.jsx("span", { className: Z({ "menu-option-label": o }), children: T.label })
3226
3226
  ]
3227
3227
  }
3228
- ) }, F.id);
3228
+ ) }, T.id);
3229
3229
  }) })
3230
3230
  ] }),
3231
3231
  (l == null ? void 0 : l.submitSection) && /* @__PURE__ */ d.jsx("p", { className: "submit", children: /* @__PURE__ */ d.jsx(
@@ -3585,7 +3585,7 @@ const zr = ({
3585
3585
  shouldReset: E = !0,
3586
3586
  showRequiredLabels: x = !0,
3587
3587
  showSuccessMessage: A = !1
3588
- } = l || {}, F = ce(), L = {};
3588
+ } = l || {}, T = ce(), L = {};
3589
3589
  t.length && t.forEach((y) => {
3590
3590
  const z = y.id || y.name;
3591
3591
  z && (L[z] = y.value || "");
@@ -3595,7 +3595,7 @@ const zr = ({
3595
3595
  formSubmitted: !1,
3596
3596
  errors: {},
3597
3597
  values: L
3598
- }), { errors: M, isSubmitting: w, formSubmitted: B, values: T } = N;
3598
+ }), { errors: M, isSubmitting: w, formSubmitted: B, values: F } = N;
3599
3599
  me(() => {
3600
3600
  E && B && (li = setTimeout(() => {
3601
3601
  $({
@@ -3625,7 +3625,7 @@ const zr = ({
3625
3625
  const R = _e(null), P = a || R;
3626
3626
  if (!t.length)
3627
3627
  return null;
3628
- s.text || (s.text = F.formatMessage({ id: "form_submit" }));
3628
+ s.text || (s.text = T.formatMessage({ id: "form_submit" }));
3629
3629
  const W = () => {
3630
3630
  if (!w) {
3631
3631
  if ($({ type: "toggleSubmitting" }), s.disabled) {
@@ -3634,7 +3634,7 @@ const zr = ({
3634
3634
  payload: {
3635
3635
  fields: t,
3636
3636
  dispatch: $,
3637
- intl: F
3637
+ intl: T
3638
3638
  }
3639
3639
  });
3640
3640
  return;
@@ -3660,7 +3660,7 @@ const zr = ({
3660
3660
  payload: { key: "isSubmitting", value: !1 }
3661
3661
  });
3662
3662
  },
3663
- intl: F
3663
+ intl: T
3664
3664
  }
3665
3665
  });
3666
3666
  }
@@ -3684,7 +3684,7 @@ const zr = ({
3684
3684
  disabled: w || B || s.disabled,
3685
3685
  "data-gtm-event-context": u.context,
3686
3686
  "data-gtm-event-type": u.event,
3687
- children: w || B ? F.formatMessage({
3687
+ children: w || B ? T.formatMessage({
3688
3688
  id: `form_${w ? "submitting" : "submitted"}`
3689
3689
  }) : s.text
3690
3690
  }
@@ -3696,7 +3696,7 @@ const zr = ({
3696
3696
  "data-gtm-event-type": u.event,
3697
3697
  disabled: w || B,
3698
3698
  onClick: h,
3699
- children: o.text || F.formatMessage({ id: "form_cancel" })
3699
+ children: o.text || T.formatMessage({ id: "form_cancel" })
3700
3700
  }), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3701
3701
  re.createElement(
3702
3702
  e,
@@ -3711,7 +3711,7 @@ const zr = ({
3711
3711
  Tn,
3712
3712
  {
3713
3713
  variant: "error",
3714
- text: F.formatMessage({ id: "form_error_generalError" })
3714
+ text: T.formatMessage({ id: "form_error_generalError" })
3715
3715
  }
3716
3716
  ) : null,
3717
3717
  (!E || !w && !B || f) && t.map((y, z) => {
@@ -3724,7 +3724,7 @@ const zr = ({
3724
3724
  } = y;
3725
3725
  if (k)
3726
3726
  return /* @__PURE__ */ d.jsx(k, { ...y.props || {} }, `component-${X}-${z}`);
3727
- const I = T ? T[X] : "", H = {
3727
+ const I = (F == null ? void 0 : F[X]) || "", H = {
3728
3728
  ...S,
3729
3729
  onChange: (te) => {
3730
3730
  $({ type: "updateValue", payload: { key: X, value: te } }), S.onChange(te && te.toString(), $);
@@ -3757,7 +3757,7 @@ const zr = ({
3757
3757
  )
3758
3758
  ] })
3759
3759
  ),
3760
- A && B && /* @__PURE__ */ d.jsx(Ca, { className: "success", children: typeof A == "string" ? A : F.formatMessage({ id: "form_success" }) })
3760
+ A && B && /* @__PURE__ */ d.jsx(Ca, { className: "success", children: typeof A == "string" ? A : T.formatMessage({ id: "form_success" }) })
3761
3761
  ] });
3762
3762
  };
3763
3763
  const Zr = "passwordRules_", $c = "isMoreThanEightCharacters", Ic = "includesNumberAndSymbol", Lc = "includesLowerAndUppercase", um = {
@@ -5316,8 +5316,8 @@ var Jm = (e, t, n) => {
5316
5316
  else
5317
5317
  throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v, "] to nodes of different interfaces: ").concat(nt.stringify(C), " ").concat(nt.stringify(E)));
5318
5318
  if (x.children.splice(A, 1), t)
5319
- for (var [F, L] of U.points(t))
5320
- t[L] = Ae.transform(F, n);
5319
+ for (var [T, L] of U.points(t))
5320
+ t[L] = Ae.transform(T, n);
5321
5321
  break;
5322
5322
  }
5323
5323
  case "move_node": {
@@ -5329,7 +5329,7 @@ var Jm = (e, t, n) => {
5329
5329
  throw new Error("Cannot move a path [".concat(N, "] to new path [").concat($, "] because the destination is inside itself."));
5330
5330
  var M = oe.get(e, N), w = oe.parent(e, N), B = N[N.length - 1];
5331
5331
  w.children.splice(B, 1);
5332
- var T = O.transform(N, n), R = oe.get(e, O.parent(T)), P = T[T.length - 1];
5332
+ var F = O.transform(N, n), R = oe.get(e, O.parent(F)), P = F[F.length - 1];
5333
5333
  if (R.children.splice(P, 0, M), t)
5334
5334
  for (var [W, ee] of U.points(t))
5335
5335
  t[ee] = Ae.transform(W, n);
@@ -6664,8 +6664,8 @@ var Mp = (e, t) => {
6664
6664
  }
6665
6665
  case "split_node": {
6666
6666
  var {
6667
- path: F
6668
- } = t, L = O.levels(F), N = O.next(F);
6667
+ path: T
6668
+ } = t, L = O.levels(T), N = O.next(T);
6669
6669
  return [...L, N];
6670
6670
  }
6671
6671
  default:
@@ -7405,8 +7405,8 @@ function Og(e) {
7405
7405
  }
7406
7406
  }
7407
7407
  }
7408
- function x(A, F, L) {
7409
- return F === "character" ? Zs(A, L) : F === "word" ? mp(A, L) : F === "line" || F === "block" ? A.length : 1;
7408
+ function x(A, T, L) {
7409
+ return T === "character" ? Zs(A, L) : T === "word" ? mp(A, L) : T === "line" || T === "block" ? A.length : 1;
7410
7410
  }
7411
7411
  }();
7412
7412
  }
@@ -7635,7 +7635,7 @@ var Ig = (e, t) => {
7635
7635
  match: (pe) => le.isElement(pe) && b.isBlock(t, pe),
7636
7636
  at: _,
7637
7637
  voids: l
7638
- }), A = E && x && !O.equals(E[1], x[1]), F = O.equals(C.path, _.path), L = l ? null : (r = b.void(t, {
7638
+ }), A = E && x && !O.equals(E[1], x[1]), T = O.equals(C.path, _.path), L = l ? null : (r = b.void(t, {
7639
7639
  at: C,
7640
7640
  mode: "highest"
7641
7641
  })) !== null && r !== void 0 ? r : b.elementReadOnly(t, {
@@ -7657,18 +7657,18 @@ var Ig = (e, t) => {
7657
7657
  M && x && O.isAncestor(x[1], M.path) && (_ = M);
7658
7658
  }
7659
7659
  var w = [], B;
7660
- for (var T of b.nodes(t, {
7660
+ for (var F of b.nodes(t, {
7661
7661
  at: u,
7662
7662
  voids: l
7663
7663
  })) {
7664
- var [R, P] = T;
7665
- B && O.compare(P, B) === 0 || (!l && le.isElement(R) && (b.isVoid(t, R) || b.isElementReadOnly(t, R)) || !O.isCommon(P, C.path) && !O.isCommon(P, _.path)) && (w.push(T), B = P);
7664
+ var [R, P] = F;
7665
+ B && O.compare(P, B) === 0 || (!l && le.isElement(R) && (b.isVoid(t, R) || b.isElementReadOnly(t, R)) || !O.isCommon(P, C.path) && !O.isCommon(P, _.path)) && (w.push(F), B = P);
7666
7666
  }
7667
7667
  var W = Array.from(w, (pe) => {
7668
7668
  var [, ke] = pe;
7669
7669
  return b.pathRef(t, ke);
7670
7670
  }), ee = b.pointRef(t, C), Y = b.pointRef(t, _), y = "";
7671
- if (!F && !L) {
7671
+ if (!T && !L) {
7672
7672
  var z = ee.current, [X] = b.leaf(t, z), {
7673
7673
  path: k
7674
7674
  } = z, {
@@ -7687,7 +7687,7 @@ var Ig = (e, t) => {
7687
7687
  })), !N) {
7688
7688
  var I = Y.current, [H] = b.leaf(t, I), {
7689
7689
  path: te
7690
- } = I, ne = F ? C.offset : 0, ae = H.text.slice(ne, _.offset);
7690
+ } = I, ne = T ? C.offset : 0, ae = H.text.slice(ne, _.offset);
7691
7691
  ae.length > 0 && (t.apply({
7692
7692
  type: "remove_text",
7693
7693
  path: te,
@@ -7695,7 +7695,7 @@ var Ig = (e, t) => {
7695
7695
  text: ae
7696
7696
  }), y = ae);
7697
7697
  }
7698
- !F && A && Y.current && ee.current && G.mergeNodes(t, {
7698
+ !T && A && Y.current && ee.current && G.mergeNodes(t, {
7699
7699
  at: Y.current,
7700
7700
  hanging: !0,
7701
7701
  voids: l
@@ -7761,7 +7761,7 @@ var Ig = (e, t) => {
7761
7761
  children: n
7762
7762
  }, []), [, A] = oe.last({
7763
7763
  children: n
7764
- }, []), F = [], L = (q) => {
7764
+ }, []), T = [], L = (q) => {
7765
7765
  var [I, H] = q, te = H.length === 0;
7766
7766
  return te ? !1 : C ? !0 : !(_ && O.isAncestor(H, x) && le.isElement(I) && !t.isVoid(I) && !t.isInline(I) || E && O.isAncestor(H, A) && le.isElement(I) && !t.isVoid(I) && !t.isInline(I));
7767
7767
  };
@@ -7770,10 +7770,10 @@ var Ig = (e, t) => {
7770
7770
  }, {
7771
7771
  pass: L
7772
7772
  }))
7773
- L(N) && F.push(N);
7774
- var $ = [], M = [], w = [], B = !0, T = !1;
7775
- for (var [R] of F)
7776
- le.isElement(R) && !t.isInline(R) ? (B = !1, T = !0, M.push(R)) : B ? $.push(R) : w.push(R);
7773
+ L(N) && T.push(N);
7774
+ var $ = [], M = [], w = [], B = !0, F = !1;
7775
+ for (var [R] of T)
7776
+ le.isElement(R) && !t.isInline(R) ? (B = !1, F = !0, M.push(R)) : B ? $.push(R) : w.push(R);
7777
7777
  var [P] = b.nodes(t, {
7778
7778
  at: s,
7779
7779
  match: (q) => fe.isText(q) || b.isInline(t, q),
@@ -7782,9 +7782,9 @@ var Ig = (e, t) => {
7782
7782
  }), [, W] = P, ee = b.isStart(t, s, W), Y = b.isEnd(t, s, W), y = b.pathRef(t, v && !w.length ? O.next(f) : f), z = b.pathRef(t, Y ? O.next(W) : W);
7783
7783
  G.splitNodes(t, {
7784
7784
  at: s,
7785
- match: (q) => T ? le.isElement(q) && b.isBlock(t, q) : fe.isText(q) || b.isInline(t, q),
7786
- mode: T ? "lowest" : "highest",
7787
- always: T && (!D || $.length > 0) && (!v || w.length > 0),
7785
+ match: (q) => F ? le.isElement(q) && b.isBlock(t, q) : fe.isText(q) || b.isInline(t, q),
7786
+ mode: F ? "lowest" : "highest",
7787
+ always: F && (!D || $.length > 0) && (!v || w.length > 0),
7788
7788
  voids: i
7789
7789
  });
7790
7790
  var X = b.pathRef(t, !ee || ee && Y ? O.next(W) : W);
@@ -8002,12 +8002,12 @@ var Qg = function(t, n) {
8002
8002
  var $ = function() {
8003
8003
  var B = _.concat(E);
8004
8004
  E++;
8005
- var T = {
8005
+ var F = {
8006
8006
  type: "insert_node",
8007
8007
  path: B,
8008
8008
  node: M
8009
8009
  };
8010
- t.apply(T), l = O.next(l), x.push(T), fe.isText ? A.push(...Array.from(oe.nodes(M), (R) => {
8010
+ t.apply(F), l = O.next(l), x.push(F), fe.isText ? A.push(...Array.from(oe.nodes(M), (R) => {
8011
8011
  var [, P] = R;
8012
8012
  return B.concat(P);
8013
8013
  })) : A.push(B);
@@ -8024,12 +8024,12 @@ var Qg = function(t, n) {
8024
8024
  });
8025
8025
  });
8026
8026
  } else
8027
- for (var F of n) {
8027
+ for (var T of n) {
8028
8028
  var L = _.concat(E);
8029
8029
  E++, t.apply({
8030
8030
  type: "insert_node",
8031
8031
  path: L,
8032
- node: F
8032
+ node: T
8033
8033
  }), l = O.next(l);
8034
8034
  }
8035
8035
  if (l = O.previous(l), c) {
@@ -8161,13 +8161,13 @@ var Qg = function(t, n) {
8161
8161
  at: g,
8162
8162
  mode: "highest",
8163
8163
  match: ($) => E.includes($) && rd(t, $)
8164
- }), A = x && b.pathRef(t, x[1]), F, L;
8164
+ }), A = x && b.pathRef(t, x[1]), T, L;
8165
8165
  if (fe.isText(m) && fe.isText(f)) {
8166
8166
  var N = Xt(m, tv);
8167
- L = f.text.length, F = N;
8167
+ L = f.text.length, T = N;
8168
8168
  } else if (le.isElement(m) && le.isElement(f)) {
8169
8169
  var N = Xt(m, nv);
8170
- L = f.children.length, F = N;
8170
+ L = f.children.length, T = N;
8171
8171
  } else
8172
8172
  throw new Error("Cannot merge the node at path [".concat(g, "] with the previous sibling because it is not the same kind: ").concat(nt.stringify(m), " ").concat(nt.stringify(f)));
8173
8173
  _ || G.moveNodes(t, {
@@ -8184,7 +8184,7 @@ var Qg = function(t, n) {
8184
8184
  type: "merge_node",
8185
8185
  path: v,
8186
8186
  position: L,
8187
- properties: F
8187
+ properties: T
8188
8188
  }), A && A.unref();
8189
8189
  }
8190
8190
  }
@@ -8308,8 +8308,8 @@ var Qg = function(t, n) {
8308
8308
  var E = {}, x = {};
8309
8309
  if (_.length !== 0) {
8310
8310
  var A = !1;
8311
- for (var F in n)
8312
- F === "children" || F === "text" || s(n[F], C[F]) && (A = !0, C.hasOwnProperty(F) && (E[F] = C[F]), o ? n[F] != null && (x[F] = o(C[F], n[F])) : n[F] != null && (x[F] = n[F]));
8311
+ for (var T in n)
8312
+ T === "children" || T === "text" || s(n[T], C[T]) && (A = !0, C.hasOwnProperty(T) && (E[T] = C[T]), o ? n[T] != null && (x[T] = o(C[T], n[T])) : n[T] != null && (x[T] = n[T]));
8313
8313
  A && t.apply({
8314
8314
  type: "set_node",
8315
8315
  path: _,
@@ -8379,7 +8379,7 @@ var Qg = function(t, n) {
8379
8379
  o = A + 1, l = !0;
8380
8380
  }
8381
8381
  m = b.pointRef(t, s);
8382
- var F = s.path.length - o, [, L] = g, N = s.path.slice(0, F), $ = o === 0 ? s.offset : s.path[F] + D;
8382
+ var T = s.path.length - o, [, L] = g, N = s.path.slice(0, T), $ = o === 0 ? s.offset : s.path[T] + D;
8383
8383
  for (var [M, w] of b.levels(t, {
8384
8384
  at: N,
8385
8385
  reverse: !0,
@@ -8388,8 +8388,8 @@ var Qg = function(t, n) {
8388
8388
  var B = !1;
8389
8389
  if (w.length < L.length || w.length === 0 || !a && le.isElement(M) && b.isVoid(t, M))
8390
8390
  break;
8391
- var T = p.current, R = b.isEnd(t, T, w);
8392
- if (l || !p || !b.isEdge(t, T, w)) {
8391
+ var F = p.current, R = b.isEnd(t, F, w);
8392
+ if (l || !p || !b.isEdge(t, F, w)) {
8393
8393
  B = !0;
8394
8394
  var P = oe.extractProps(M);
8395
8395
  t.apply({
@@ -8525,7 +8525,7 @@ var dv = function(t, n) {
8525
8525
  var [_] = C, E = C[C.length - 1], [, x] = _, [, A] = E;
8526
8526
  if (x.length === 0 && A.length === 0)
8527
8527
  return 0;
8528
- var F = O.equals(x, A) ? O.parent(x) : O.common(x, A), L = b.range(t, x, A), N = b.node(t, F), [$] = N, M = F.length + 1, w = O.next(A.slice(0, M)), B = Au(Au({}, n), {}, {
8528
+ var T = O.equals(x, A) ? O.parent(x) : O.common(x, A), L = b.range(t, x, A), N = b.node(t, T), [$] = N, M = T.length + 1, w = O.next(A.slice(0, M)), B = Au(Au({}, n), {}, {
8529
8529
  children: []
8530
8530
  });
8531
8531
  G.insertNodes(t, B, {
@@ -8533,7 +8533,7 @@ var dv = function(t, n) {
8533
8533
  voids: s
8534
8534
  }), G.moveNodes(t, {
8535
8535
  at: L,
8536
- match: (T) => le.isAncestor($) && $.children.includes(T),
8536
+ match: (F) => le.isAncestor($) && $.children.includes(F),
8537
8537
  to: w.concat(0),
8538
8538
  voids: s
8539
8539
  });
@@ -9130,19 +9130,19 @@ function b0(e, t, n) {
9130
9130
  throw new TypeError(p0);
9131
9131
  t = Pu(t) || 0, m0(n) && (c = !!n.leading, h = "maxWait" in n, i = h ? g0(Pu(n.maxWait) || 0, t) : i, p = "trailing" in n ? !!n.trailing : p);
9132
9132
  function m(A) {
9133
- var F = r, L = a;
9134
- return r = a = void 0, u = A, s = e.apply(L, F), s;
9133
+ var T = r, L = a;
9134
+ return r = a = void 0, u = A, s = e.apply(L, T), s;
9135
9135
  }
9136
9136
  function g(A) {
9137
9137
  return u = A, o = setTimeout(v, t), c ? m(A) : s;
9138
9138
  }
9139
9139
  function f(A) {
9140
- var F = A - l, L = A - u, N = t - F;
9140
+ var T = A - l, L = A - u, N = t - T;
9141
9141
  return h ? v0(N, i - L) : N;
9142
9142
  }
9143
9143
  function D(A) {
9144
- var F = A - l, L = A - u;
9145
- return l === void 0 || F >= t || F < 0 || h && L >= i;
9144
+ var T = A - l, L = A - u;
9145
+ return l === void 0 || T >= t || T < 0 || h && L >= i;
9146
9146
  }
9147
9147
  function v() {
9148
9148
  var A = vi();
@@ -9160,8 +9160,8 @@ function b0(e, t, n) {
9160
9160
  return o === void 0 ? s : C(vi());
9161
9161
  }
9162
9162
  function x() {
9163
- var A = vi(), F = D(A);
9164
- if (r = arguments, a = this, l = A, F) {
9163
+ var A = vi(), T = D(A);
9164
+ if (r = arguments, a = this, l = A, T) {
9165
9165
  if (o === void 0)
9166
9166
  return g(l);
9167
9167
  if (h)
@@ -9221,25 +9221,25 @@ const _0 = /* @__PURE__ */ Fn(E0), Nu = (e) => typeof e == "object" && e != null
9221
9221
  }
9222
9222
  g != null && g === document.body && bi(g) && !bi(document.documentElement) || g != null && bi(g, c) && m.push(g);
9223
9223
  }
9224
- const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, D = (i = (a = window.visualViewport) == null ? void 0 : a.height) != null ? i : innerHeight, { scrollX: v, scrollY: C } = window, { height: _, width: E, top: x, right: A, bottom: F, left: L } = e.getBoundingClientRect(), { top: N, right: $, bottom: M, left: w } = ((P) => {
9224
+ const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, D = (i = (a = window.visualViewport) == null ? void 0 : a.height) != null ? i : innerHeight, { scrollX: v, scrollY: C } = window, { height: _, width: E, top: x, right: A, bottom: T, left: L } = e.getBoundingClientRect(), { top: N, right: $, bottom: M, left: w } = ((P) => {
9225
9225
  const W = window.getComputedStyle(P);
9226
9226
  return { top: parseFloat(W.scrollMarginTop) || 0, right: parseFloat(W.scrollMarginRight) || 0, bottom: parseFloat(W.scrollMarginBottom) || 0, left: parseFloat(W.scrollMarginLeft) || 0 };
9227
9227
  })(e);
9228
- let B = o === "start" || o === "nearest" ? x - N : o === "end" ? F + M : x + _ / 2 - N + M, T = l === "center" ? L + E / 2 - w + $ : l === "end" ? A + $ : L - w;
9228
+ let B = o === "start" || o === "nearest" ? x - N : o === "end" ? T + M : x + _ / 2 - N + M, F = l === "center" ? L + E / 2 - w + $ : l === "end" ? A + $ : L - w;
9229
9229
  const R = [];
9230
9230
  for (let P = 0; P < m.length; P++) {
9231
9231
  const W = m[P], { height: ee, width: Y, top: y, right: z, bottom: X, left: k } = W.getBoundingClientRect();
9232
- if (s === "if-needed" && x >= 0 && L >= 0 && F <= D && A <= f && x >= y && F <= X && L >= k && A <= z)
9232
+ if (s === "if-needed" && x >= 0 && L >= 0 && T <= D && A <= f && x >= y && T <= X && L >= k && A <= z)
9233
9233
  return R;
9234
9234
  const S = getComputedStyle(W), q = parseInt(S.borderLeftWidth, 10), I = parseInt(S.borderTopWidth, 10), H = parseInt(S.borderRightWidth, 10), te = parseInt(S.borderBottomWidth, 10);
9235
9235
  let ne = 0, ae = 0;
9236
9236
  const he = "offsetWidth" in W ? W.offsetWidth - W.clientWidth - q - H : 0, J = "offsetHeight" in W ? W.offsetHeight - W.clientHeight - I - te : 0, De = "offsetWidth" in W ? W.offsetWidth === 0 ? 0 : Y / W.offsetWidth : 0, pe = "offsetHeight" in W ? W.offsetHeight === 0 ? 0 : ee / W.offsetHeight : 0;
9237
9237
  if (p === W)
9238
- ne = o === "start" ? B : o === "end" ? B - D : o === "nearest" ? Gr(C, C + D, D, I, te, C + B, C + B + _, _) : B - D / 2, ae = l === "start" ? T : l === "center" ? T - f / 2 : l === "end" ? T - f : Gr(v, v + f, f, q, H, v + T, v + T + E, E), ne = Math.max(0, ne + C), ae = Math.max(0, ae + v);
9238
+ ne = o === "start" ? B : o === "end" ? B - D : o === "nearest" ? Gr(C, C + D, D, I, te, C + B, C + B + _, _) : B - D / 2, ae = l === "start" ? F : l === "center" ? F - f / 2 : l === "end" ? F - f : Gr(v, v + f, f, q, H, v + F, v + F + E, E), ne = Math.max(0, ne + C), ae = Math.max(0, ae + v);
9239
9239
  else {
9240
- ne = o === "start" ? B - y - I : o === "end" ? B - X + te + J : o === "nearest" ? Gr(y, X, ee, I, te + J, B, B + _, _) : B - (y + ee / 2) + J / 2, ae = l === "start" ? T - k - q : l === "center" ? T - (k + Y / 2) + he / 2 : l === "end" ? T - z + H + he : Gr(k, z, Y, q, H + he, T, T + E, E);
9240
+ ne = o === "start" ? B - y - I : o === "end" ? B - X + te + J : o === "nearest" ? Gr(y, X, ee, I, te + J, B, B + _, _) : B - (y + ee / 2) + J / 2, ae = l === "start" ? F - k - q : l === "center" ? F - (k + Y / 2) + he / 2 : l === "end" ? F - z + H + he : Gr(k, z, Y, q, H + he, F, F + E, E);
9241
9241
  const { scrollLeft: ke, scrollTop: Oe } = W;
9242
- ne = pe === 0 ? 0 : Math.max(0, Math.min(Oe + ne / pe, W.scrollHeight - ee / pe + J)), ae = De === 0 ? 0 : Math.max(0, Math.min(ke + ae / De, W.scrollWidth - Y / De + he)), B += Oe - ne, T += ke - ae;
9242
+ ne = pe === 0 ? 0 : Math.max(0, Math.min(Oe + ne / pe, W.scrollHeight - ee / pe + J)), ae = De === 0 ? 0 : Math.max(0, Math.min(ke + ae / De, W.scrollWidth - Y / De + he)), B += Oe - ne, F += ke - ae;
9243
9243
  }
9244
9244
  R.push({ el: W, top: ne, left: ae });
9245
9245
  }
@@ -9346,7 +9346,7 @@ var wn = function(e) {
9346
9346
  return Qr.get(e);
9347
9347
  if (fd(e))
9348
9348
  return Qr.set(e, zu), zu;
9349
- var n = getComputedStyle(e), r = Qs(e) && e.ownerSVGElement && e.getBBox(), a = !N0 && n.boxSizing === "border-box", i = P0.test(n.writingMode || ""), s = !r && Lu.test(n.overflowY || ""), o = !r && Lu.test(n.overflowX || ""), l = r ? 0 : Mt(n.paddingTop), u = r ? 0 : Mt(n.paddingRight), c = r ? 0 : Mt(n.paddingBottom), h = r ? 0 : Mt(n.paddingLeft), p = r ? 0 : Mt(n.borderTopWidth), m = r ? 0 : Mt(n.borderRightWidth), g = r ? 0 : Mt(n.borderBottomWidth), f = r ? 0 : Mt(n.borderLeftWidth), D = h + u, v = l + c, C = f + m, _ = p + g, E = o ? e.offsetHeight - _ - e.clientHeight : 0, x = s ? e.offsetWidth - C - e.clientWidth : 0, A = a ? D + C : 0, F = a ? v + _ : 0, L = r ? r.width : Mt(n.width) - A - x, N = r ? r.height : Mt(n.height) - F - E, $ = L + D + x + C, M = N + v + E + _, w = wn({
9349
+ var n = getComputedStyle(e), r = Qs(e) && e.ownerSVGElement && e.getBBox(), a = !N0 && n.boxSizing === "border-box", i = P0.test(n.writingMode || ""), s = !r && Lu.test(n.overflowY || ""), o = !r && Lu.test(n.overflowX || ""), l = r ? 0 : Mt(n.paddingTop), u = r ? 0 : Mt(n.paddingRight), c = r ? 0 : Mt(n.paddingBottom), h = r ? 0 : Mt(n.paddingLeft), p = r ? 0 : Mt(n.borderTopWidth), m = r ? 0 : Mt(n.borderRightWidth), g = r ? 0 : Mt(n.borderBottomWidth), f = r ? 0 : Mt(n.borderLeftWidth), D = h + u, v = l + c, C = f + m, _ = p + g, E = o ? e.offsetHeight - _ - e.clientHeight : 0, x = s ? e.offsetWidth - C - e.clientWidth : 0, A = a ? D + C : 0, T = a ? v + _ : 0, L = r ? r.width : Mt(n.width) - A - x, N = r ? r.height : Mt(n.height) - T - E, $ = L + D + x + C, M = N + v + E + _, w = wn({
9350
9350
  devicePixelContentBoxSize: Zn(Math.round(L * devicePixelRatio), Math.round(N * devicePixelRatio), i),
9351
9351
  borderBoxSize: Zn($, M, i),
9352
9352
  contentBoxSize: Zn(L, N, i),
@@ -10055,24 +10055,24 @@ var Q = {
10055
10055
  var v = Q.getWindow(e), C = v.document.createRange();
10056
10056
  C.setStart(l, 0), C.setEnd(i, s);
10057
10057
  var _ = C.cloneContents(), E = [...Array.prototype.slice.call(_.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(_.querySelectorAll("[contenteditable=false]"))];
10058
- E.forEach((T) => {
10059
- if (ft && !r && T.hasAttribute("data-slate-zero-width") && T.textContent.length > 0 && T.textContext !== "\uFEFF") {
10060
- T.textContent.startsWith("\uFEFF") && (T.textContent = T.textContent.slice(1));
10058
+ E.forEach((F) => {
10059
+ if (ft && !r && F.hasAttribute("data-slate-zero-width") && F.textContent.length > 0 && F.textContext !== "\uFEFF") {
10060
+ F.textContent.startsWith("\uFEFF") && (F.textContent = F.textContent.slice(1));
10061
10061
  return;
10062
10062
  }
10063
- T.parentNode.removeChild(T);
10063
+ F.parentNode.removeChild(F);
10064
10064
  }), u = _.textContent.length, D = l;
10065
10065
  }
10066
10066
  } else if (g) {
10067
10067
  for (var x = g.querySelectorAll("[data-slate-leaf]"), A = 0; A < x.length; A++) {
10068
- var F = x[A];
10069
- if (Q.hasDOMNode(e, F)) {
10070
- f = F;
10068
+ var T = x[A];
10069
+ if (Q.hasDOMNode(e, T)) {
10070
+ f = T;
10071
10071
  break;
10072
10072
  }
10073
10073
  }
10074
- f ? (l = f.closest('[data-slate-node="text"]'), D = f, u = D.textContent.length, D.querySelectorAll("[data-slate-zero-width]").forEach((T) => {
10075
- u -= T.textContent.length;
10074
+ f ? (l = f.closest('[data-slate-node="text"]'), D = f, u = D.textContent.length, D.querySelectorAll("[data-slate-zero-width]").forEach((F) => {
10075
+ u -= F.textContent.length;
10076
10076
  })) : u = 1;
10077
10077
  }
10078
10078
  D && u === D.textContent.length && // COMPAT: Android IMEs might remove the zero width space while composing,
@@ -10126,8 +10126,8 @@ var Q = {
10126
10126
  u = t.focusNode;
10127
10127
  var p = t.getRangeAt(0), m = t.getRangeAt(t.rangeCount - 1);
10128
10128
  if (u instanceof HTMLTableRowElement && p.startContainer instanceof HTMLTableRowElement && m.startContainer instanceof HTMLTableRowElement) {
10129
- let A = function(F) {
10130
- return F.childElementCount > 0 ? A(F.children[0]) : F;
10129
+ let A = function(T) {
10130
+ return T.childElementCount > 0 ? A(T.children[0]) : T;
10131
10131
  };
10132
10132
  var g = p.startContainer, f = m.startContainer, D = A(g.children[p.startOffset]), v = A(f.children[m.startOffset]);
10133
10133
  c = 0, v.childNodes.length > 0 ? o = v.childNodes[0] : o = v, D.childNodes.length > 0 ? u = D.childNodes[0] : u = D, v instanceof HTMLElement ? l = v.innerHTML.length : l = 0;
@@ -10462,8 +10462,8 @@ function Tb(e) {
10462
10462
  if (sn.delete(t), w) {
10463
10463
  var {
10464
10464
  selection: B
10465
- } = t, T = Zu(t, w);
10466
- T && (!B || !U.equals(T, B)) && G.select(t, T);
10465
+ } = t, F = Zu(t, w);
10466
+ F && (!B || !U.equals(F, B)) && G.select(t, F);
10467
10467
  }
10468
10468
  }, h = () => {
10469
10469
  var w = an.get(t);
@@ -10472,8 +10472,8 @@ function Tb(e) {
10472
10472
  var B = Ae.isPoint(w.at) ? ws(t, w.at) : Zu(t, w.at);
10473
10473
  if (!B)
10474
10474
  return;
10475
- var T = b.range(t, B);
10476
- (!t.selection || !U.equals(t.selection, T)) && G.select(t, B);
10475
+ var F = b.range(t, B);
10476
+ (!t.selection || !U.equals(t.selection, F)) && G.select(t, B);
10477
10477
  }
10478
10478
  w.run();
10479
10479
  }
@@ -10487,16 +10487,16 @@ function Tb(e) {
10487
10487
  affinity: "forward"
10488
10488
  });
10489
10489
  Gt.set(t, t.marks), Ab("flush", an.get(t), pt.get(t));
10490
- for (var B = E(), T; T = (R = pt.get(t)) === null || R === void 0 ? void 0 : R[0]; ) {
10490
+ for (var B = E(), F; F = (R = pt.get(t)) === null || R === void 0 ? void 0 : R[0]; ) {
10491
10491
  var R, P, W = Ot.get(t);
10492
10492
  W !== void 0 && (Ot.delete(t), t.marks = W), W && u === !1 && (u = null);
10493
- var ee = Eb(T);
10494
- (!t.selection || !U.equals(t.selection, ee)) && G.select(t, ee), T.diff.text ? b.insertText(t, T.diff.text) : b.deleteFragment(t), pt.set(t, (P = pt.get(t)) === null || P === void 0 ? void 0 : P.filter((z) => {
10493
+ var ee = Eb(F);
10494
+ (!t.selection || !U.equals(t.selection, ee)) && G.select(t, ee), F.diff.text ? b.insertText(t, F.diff.text) : b.deleteFragment(t), pt.set(t, (P = pt.get(t)) === null || P === void 0 ? void 0 : P.filter((z) => {
10495
10495
  var {
10496
10496
  id: X
10497
10497
  } = z;
10498
- return X !== T.id;
10499
- })), Db(t, T) || (B = !1, an.delete(t), Gt.delete(t), a = "action", sn.delete(t), n.cancel(), r.cancel(), w == null || w.unref());
10498
+ return X !== F.id;
10499
+ })), Db(t, F) || (B = !1, an.delete(t), Gt.delete(t), a = "action", sn.delete(t), n.cancel(), r.cancel(), w == null || w.unref());
10500
10500
  }
10501
10501
  var Y = w == null ? void 0 : w.unref();
10502
10502
  if (Y && !sn.get(t) && (!t.selection || !U.equals(Y, t.selection)) && G.select(t, Y), _()) {
@@ -10513,16 +10513,16 @@ function Tb(e) {
10513
10513
  }, g = (w) => {
10514
10514
  yn.set(t, !0), i && (clearTimeout(i), i = null);
10515
10515
  }, f = function() {
10516
- var B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, T = bs.get(t);
10517
- if (T) {
10516
+ var B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, F = bs.get(t);
10517
+ if (F) {
10518
10518
  if (E() || B) {
10519
- T.style.display = "none";
10519
+ F.style.display = "none";
10520
10520
  return;
10521
10521
  }
10522
- T.style.removeProperty("display");
10522
+ F.style.removeProperty("display");
10523
10523
  }
10524
10524
  }, D = (w, B) => {
10525
- var T, R = (T = pt.get(t)) !== null && T !== void 0 ? T : [];
10525
+ var F, R = (F = pt.get(t)) !== null && F !== void 0 ? F : [];
10526
10526
  pt.set(t, R);
10527
10527
  var P = oe.leaf(t, w), W = R.findIndex((y) => O.equals(y.path, w));
10528
10528
  if (W < 0) {
@@ -10544,19 +10544,19 @@ function Tb(e) {
10544
10544
  });
10545
10545
  }, v = function(B) {
10546
10546
  var {
10547
- at: T
10547
+ at: F
10548
10548
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
10549
10549
  u = !1, sn.delete(t), n.cancel(), r.cancel(), _() && p(), an.set(t, {
10550
- at: T,
10550
+ at: F,
10551
10551
  run: B
10552
10552
  }), o = setTimeout(p);
10553
10553
  }, C = (w) => {
10554
10554
  var B;
10555
10555
  s && (clearTimeout(s), s = null);
10556
10556
  var {
10557
- inputType: T
10557
+ inputType: F
10558
10558
  } = w, R = null, P = w.dataTransfer || w.data || void 0;
10559
- u !== !1 && T !== "insertText" && T !== "insertCompositionText" && (u = !1);
10559
+ u !== !1 && F !== "insertText" && F !== "insertCompositionText" && (u = !1);
10560
10560
  var [W] = w.getTargetRanges();
10561
10561
  W && (R = Q.toSlateRange(t, W, {
10562
10562
  exactMatch: !1,
@@ -10568,7 +10568,7 @@ function Tb(e) {
10568
10568
  suppressThrow: !0
10569
10569
  })), R = (B = R) !== null && B !== void 0 ? B : t.selection, !!R) {
10570
10570
  var y = !0;
10571
- if (T.startsWith("delete")) {
10571
+ if (F.startsWith("delete")) {
10572
10572
  if (U.isExpanded(R)) {
10573
10573
  var [z, X] = U.edges(R), k = oe.leaf(t, z.path);
10574
10574
  if (k.text.length === z.offset && X.offset === 0) {
@@ -10582,7 +10582,7 @@ function Tb(e) {
10582
10582
  });
10583
10583
  }
10584
10584
  }
10585
- var q = T.endsWith("Backward") ? "backward" : "forward", [I, H] = U.edges(R), [te, ne] = b.leaf(t, I.path), ae = {
10585
+ var q = F.endsWith("Backward") ? "backward" : "forward", [I, H] = U.edges(R), [te, ne] = b.leaf(t, I.path), ae = {
10586
10586
  text: "",
10587
10587
  start: I.offset,
10588
10588
  end: H.offset
@@ -10593,7 +10593,7 @@ function Tb(e) {
10593
10593
  path: R.anchor.path,
10594
10594
  offset: I.offset
10595
10595
  }, Oe = b.range(t, ke, ke);
10596
- return F(Oe), D(R.anchor.path, {
10596
+ return T(Oe), D(R.anchor.path, {
10597
10597
  text: "",
10598
10598
  end: H.offset,
10599
10599
  start: I.offset
@@ -10606,7 +10606,7 @@ function Tb(e) {
10606
10606
  });
10607
10607
  }
10608
10608
  }
10609
- switch (T) {
10609
+ switch (F) {
10610
10610
  case "deleteByComposition":
10611
10611
  case "deleteByCut":
10612
10612
  case "deleteByDrag":
@@ -10710,7 +10710,7 @@ function Tb(e) {
10710
10710
  at: R
10711
10711
  });
10712
10712
  var je = P ?? "";
10713
- if (Ot.get(t) && (je = je.replace("\uFEFF", "")), T === "insertText" && /.*\n.*\n$/.test(je) && (je = je.slice(0, -1)), je.includes(`
10713
+ if (Ot.get(t) && (je = je.replace("\uFEFF", "")), F === "insertText" && /.*\n.*\n$/.test(je) && (je = je.slice(0, -1)), je.includes(`
10714
10714
  `))
10715
10715
  return v(() => {
10716
10716
  var be = je.split(`
@@ -10727,11 +10727,11 @@ function Tb(e) {
10727
10727
  end: Be.offset,
10728
10728
  text: je
10729
10729
  };
10730
- if (je && u && T === "insertCompositionText") {
10730
+ if (je && u && F === "insertCompositionText") {
10731
10731
  var se = u.start + u.text.search(/\S|$/), ge = V.start + V.text.search(/\S|$/);
10732
10732
  ge === se + 1 && V.end === u.start + u.text.length ? (V.start -= 1, u = null, $()) : u = !1;
10733
10733
  } else
10734
- T === "insertText" ? u === null ? u = V : u && U.isCollapsed(R) && u.end + u.text.length === ve.offset ? u = ta(ta({}, u), {}, {
10734
+ F === "insertText" ? u === null ? u = V : u && U.isCollapsed(R) && u.end + u.text.length === ve.offset ? u = ta(ta({}, u), {}, {
10735
10735
  text: u.text + je
10736
10736
  }) : u = !1 : u = !1;
10737
10737
  if (y) {
@@ -10748,14 +10748,14 @@ function Tb(e) {
10748
10748
  }, _ = () => !!an.get(t), E = () => {
10749
10749
  var w;
10750
10750
  return !!((w = pt.get(t)) !== null && w !== void 0 && w.length);
10751
- }, x = () => _() || E(), A = () => a, F = (w) => {
10751
+ }, x = () => _() || E(), A = () => a, T = (w) => {
10752
10752
  sn.set(t, w), s && (clearTimeout(s), s = null);
10753
10753
  var {
10754
10754
  selection: B
10755
10755
  } = t;
10756
10756
  if (w) {
10757
- var T = !B || !O.equals(B.anchor.path, w.anchor.path), R = !B || !O.equals(B.anchor.path.slice(0, -1), w.anchor.path.slice(0, -1));
10758
- (T && u || R) && (u = !1), (T || E()) && (s = setTimeout(p, Bb));
10757
+ var F = !B || !O.equals(B.anchor.path, w.anchor.path), R = !B || !O.equals(B.anchor.path.slice(0, -1), w.anchor.path.slice(0, -1));
10758
+ (F && u || R) && (u = !1), (F || E()) && (s = setTimeout(p, Bb));
10759
10759
  }
10760
10760
  }, L = () => {
10761
10761
  (_() || !E()) && p();
@@ -10764,7 +10764,7 @@ function Tb(e) {
10764
10764
  }, $ = () => {
10765
10765
  _() || (o = setTimeout(p));
10766
10766
  }, M = (w) => {
10767
- if (!(E() || _()) && w.some((T) => io(t, T, w))) {
10767
+ if (!(E() || _()) && w.some((F) => io(t, F, w))) {
10768
10768
  var B;
10769
10769
  (B = Ed.get(t)) === null || B === void 0 || B();
10770
10770
  }
@@ -10776,7 +10776,7 @@ function Tb(e) {
10776
10776
  hasPendingAction: _,
10777
10777
  hasPendingChanges: x,
10778
10778
  isFlushing: A,
10779
- handleUserSelect: F,
10779
+ handleUserSelect: T,
10780
10780
  handleCompositionEnd: m,
10781
10781
  handleCompositionStart: g,
10782
10782
  handleDOMBeforeInput: C,
@@ -11369,7 +11369,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11369
11369
  disableDefaultStyles: m = !1
11370
11370
  } = e, g = Jn(e, dy), f = jn(), [D, v] = de(!1), C = _e(null), _ = _e([]), [E, x] = de(), {
11371
11371
  onUserInput: A,
11372
- receivedUserInput: F
11372
+ receivedUserInput: T
11373
11373
  } = ry(), [, L] = nr((S) => S + 1, 0);
11374
11374
  Ed.set(f, L), ys.set(f, s);
11375
11375
  var N = zt(() => ({
@@ -11617,7 +11617,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11617
11617
  var V = (q = wr.get(f)) === null || q === void 0 ? void 0 : q.unref();
11618
11618
  wr.delete(f), V && (!f.selection || !U.equals(f.selection, V)) && G.select(f, V);
11619
11619
  }
11620
- }, [f, M, A, a, s, w]), T = Ne((S) => {
11620
+ }, [f, M, A, a, s, w]), F = Ne((S) => {
11621
11621
  S == null ? (M.cancel(), w.cancel(), va.delete(f), Cn.delete(f), C.current && nn && C.current.removeEventListener("beforeinput", B)) : nn && S.addEventListener("beforeinput", B), C.current = S;
11622
11622
  }, [M, w, f, B]);
11623
11623
  Mr(() => {
@@ -11687,7 +11687,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11687
11687
  value: r
11688
11688
  }, /* @__PURE__ */ re.createElement(cy, {
11689
11689
  node: C,
11690
- receivedUserInput: F
11690
+ receivedUserInput: T
11691
11691
  }, /* @__PURE__ */ re.createElement(p, $t($t({
11692
11692
  role: s ? void 0 : "textbox",
11693
11693
  "aria-multiline": s ? void 0 : !0
@@ -11709,7 +11709,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11709
11709
  // this magic zIndex="-1" will fix it
11710
11710
  zindex: -1,
11711
11711
  suppressContentEditableWarning: !0,
11712
- ref: T,
11712
+ ref: F,
11713
11713
  style: $t($t({}, m ? {} : $t({
11714
11714
  // Allow positioning relative to the editable element.
11715
11715
  position: "relative",
@@ -12225,7 +12225,7 @@ var _y = function(t) {
12225
12225
  }, r.apply = (u) => {
12226
12226
  var c = [], h = [], p = pt.get(r);
12227
12227
  if (p != null && p.length) {
12228
- var m = p.map((T) => _b(T, u)).filter(Boolean);
12228
+ var m = p.map((F) => _b(F, u)).filter(Boolean);
12229
12229
  pt.set(r, m);
12230
12230
  }
12231
12231
  var g = sn.get(r);
@@ -12265,8 +12265,8 @@ var _y = function(t) {
12265
12265
  c.push(...$n(r, _));
12266
12266
  var E;
12267
12267
  O.isBefore(u.path, u.newPath) ? (c.push(...$n(r, O.parent(u.path))), E = u.newPath) : (c.push(...$n(r, O.parent(u.newPath))), E = u.path);
12268
- var x = oe.get(t, O.parent(E)), A = Q.findKey(r, x), F = b.pathRef(r, O.parent(E));
12269
- h.push([F, A]);
12268
+ var x = oe.get(t, O.parent(E)), A = Q.findKey(r, x), T = b.pathRef(r, O.parent(E));
12269
+ h.push([T, A]);
12270
12270
  break;
12271
12271
  }
12272
12272
  }
@@ -12306,7 +12306,7 @@ var _y = function(t) {
12306
12306
  var x = v.ownerDocument.createElement("span");
12307
12307
  x.style.whiteSpace = "pre", x.appendChild(v), D.appendChild(x), v = x;
12308
12308
  }
12309
- var A = r.getFragment(), F = JSON.stringify(A), L = window.btoa(encodeURIComponent(F));
12309
+ var A = r.getFragment(), T = JSON.stringify(A), L = window.btoa(encodeURIComponent(T));
12310
12310
  v.setAttribute("data-slate-fragment", L), u.setData("application/".concat(n), L);
12311
12311
  var N = D.ownerDocument.createElement("div");
12312
12312
  return N.appendChild(D), N.setAttribute("hidden", "true"), D.ownerDocument.body.appendChild(N), u.setData("text/html", N.innerHTML), u.setData("text/plain", Ad(N)), D.ownerDocument.body.removeChild(N), u;
@@ -13992,15 +13992,15 @@ function d1(e) {
13992
13992
  break;
13993
13993
  }
13994
13994
  v(r);
13995
- let F = E;
13996
- for (; F < t.events.length; )
13997
- t.events[F][1].end = Object.assign({}, A), F++;
13995
+ let T = E;
13996
+ for (; T < t.events.length; )
13997
+ t.events[T][1].end = Object.assign({}, A), T++;
13998
13998
  return Wt(
13999
13999
  t.events,
14000
14000
  x + 1,
14001
14001
  0,
14002
14002
  t.events.slice(E)
14003
- ), t.events.length = F, u(_);
14003
+ ), t.events.length = T, u(_);
14004
14004
  }
14005
14005
  return o(_);
14006
14006
  }
@@ -14064,8 +14064,8 @@ function d1(e) {
14064
14064
  a.events[A][1].end.offset > s)
14065
14065
  )
14066
14066
  return;
14067
- const F = t.events.length;
14068
- let L = F, N, $;
14067
+ const T = t.events.length;
14068
+ let L = T, N, $;
14069
14069
  for (; L--; )
14070
14070
  if (t.events[L][0] === "exit" && t.events[L][1].type === "chunkFlow") {
14071
14071
  if (N) {
@@ -14074,13 +14074,13 @@ function d1(e) {
14074
14074
  }
14075
14075
  N = !0;
14076
14076
  }
14077
- for (v(r), A = F; A < t.events.length; )
14077
+ for (v(r), A = T; A < t.events.length; )
14078
14078
  t.events[A][1].end = Object.assign({}, $), A++;
14079
14079
  Wt(
14080
14080
  t.events,
14081
14081
  L + 1,
14082
14082
  0,
14083
- t.events.slice(F)
14083
+ t.events.slice(T)
14084
14084
  ), t.events.length = A;
14085
14085
  }
14086
14086
  }
@@ -14350,8 +14350,8 @@ function C1(e, t, n) {
14350
14350
  return u(A);
14351
14351
  }
14352
14352
  function u(A) {
14353
- const F = r.events[r.events.length - 1];
14354
- return i = F && F[1].type === "linePrefix" ? F[2].sliceSerialize(F[1], !0).length : 0, o = A, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(A);
14353
+ const T = r.events[r.events.length - 1];
14354
+ return i = T && T[1].type === "linePrefix" ? T[2].sliceSerialize(T[1], !0).length : 0, o = A, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(A);
14355
14355
  }
14356
14356
  function c(A) {
14357
14357
  return A === o ? (s++, e.consume(A), c) : s < 3 ? n(A) : (e.exit("codeFencedFenceSequence"), Me(A) ? We(e, h, "whitespace")(A) : h(A));
@@ -14395,7 +14395,7 @@ function C1(e, t, n) {
14395
14395
  function E(A) {
14396
14396
  return e.exit("codeFenced"), t(A);
14397
14397
  }
14398
- function x(A, F, L) {
14398
+ function x(A, T, L) {
14399
14399
  let N = 0;
14400
14400
  return $;
14401
14401
  function $(R) {
@@ -14413,10 +14413,10 @@ function C1(e, t, n) {
14413
14413
  return R === o ? (A.enter("codeFencedFenceSequence"), B(R)) : L(R);
14414
14414
  }
14415
14415
  function B(R) {
14416
- return R === o ? (N++, A.consume(R), B) : N >= s ? (A.exit("codeFencedFenceSequence"), Me(R) ? We(A, T, "whitespace")(R) : T(R)) : L(R);
14416
+ return R === o ? (N++, A.consume(R), B) : N >= s ? (A.exit("codeFencedFenceSequence"), Me(R) ? We(A, F, "whitespace")(R) : F(R)) : L(R);
14417
14417
  }
14418
- function T(R) {
14419
- return R === null || xe(R) ? (A.exit("codeFencedFence"), F(R)) : L(R);
14418
+ function F(R) {
14419
+ return R === null || xe(R) ? (A.exit("codeFencedFence"), T(R)) : L(R);
14420
14420
  }
14421
14421
  }
14422
14422
  }
@@ -14948,10 +14948,10 @@ function J1(e, t, n) {
14948
14948
  return k === 61 ? (e.consume(k), A) : Me(k) ? (e.consume(k), x) : _(k);
14949
14949
  }
14950
14950
  function A(k) {
14951
- return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), l = k, F) : Me(k) ? (e.consume(k), A) : L(k);
14951
+ return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), l = k, T) : Me(k) ? (e.consume(k), A) : L(k);
14952
14952
  }
14953
- function F(k) {
14954
- return k === l ? (e.consume(k), l = null, N) : k === null || xe(k) ? n(k) : (e.consume(k), F);
14953
+ function T(k) {
14954
+ return k === l ? (e.consume(k), l = null, N) : k === null || xe(k) ? n(k) : (e.consume(k), T);
14955
14955
  }
14956
14956
  function L(k) {
14957
14957
  return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || vt(k) ? x(k) : (e.consume(k), L);
@@ -14975,11 +14975,11 @@ function J1(e, t, n) {
14975
14975
  function B(k) {
14976
14976
  return e.check(
14977
14977
  G1,
14978
- T,
14978
+ F,
14979
14979
  X
14980
14980
  )(k);
14981
14981
  }
14982
- function T(k) {
14982
+ function F(k) {
14983
14983
  return e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), R;
14984
14984
  }
14985
14985
  function R(k) {
@@ -15082,10 +15082,10 @@ function nD(e, t, n) {
15082
15082
  return Lt(y) ? (e.consume(y), A) : n(y);
15083
15083
  }
15084
15084
  function A(y) {
15085
- return y === 45 || Pt(y) ? (e.consume(y), A) : F(y);
15085
+ return y === 45 || Pt(y) ? (e.consume(y), A) : T(y);
15086
15086
  }
15087
- function F(y) {
15088
- return xe(y) ? (s = F, W(y)) : Me(y) ? (e.consume(y), F) : P(y);
15087
+ function T(y) {
15088
+ return xe(y) ? (s = T, W(y)) : Me(y) ? (e.consume(y), T) : P(y);
15089
15089
  }
15090
15090
  function L(y) {
15091
15091
  return y === 45 || Pt(y) ? (e.consume(y), L) : y === 47 || y === 62 || vt(y) ? N(y) : n(y);
@@ -15100,13 +15100,13 @@ function nD(e, t, n) {
15100
15100
  return y === 61 ? (e.consume(y), w) : xe(y) ? (s = M, W(y)) : Me(y) ? (e.consume(y), M) : N(y);
15101
15101
  }
15102
15102
  function w(y) {
15103
- return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), a = y, B) : xe(y) ? (s = w, W(y)) : Me(y) ? (e.consume(y), w) : (e.consume(y), T);
15103
+ return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), a = y, B) : xe(y) ? (s = w, W(y)) : Me(y) ? (e.consume(y), w) : (e.consume(y), F);
15104
15104
  }
15105
15105
  function B(y) {
15106
15106
  return y === a ? (e.consume(y), a = void 0, R) : y === null ? n(y) : xe(y) ? (s = B, W(y)) : (e.consume(y), B);
15107
15107
  }
15108
- function T(y) {
15109
- return y === null || y === 34 || y === 39 || y === 60 || y === 61 || y === 96 ? n(y) : y === 47 || y === 62 || vt(y) ? N(y) : (e.consume(y), T);
15108
+ function F(y) {
15109
+ return y === null || y === 34 || y === 39 || y === 60 || y === 61 || y === 96 ? n(y) : y === 47 || y === 62 || vt(y) ? N(y) : (e.consume(y), F);
15110
15110
  }
15111
15111
  function R(y) {
15112
15112
  return y === 47 || y === 62 || vt(y) ? N(y) : n(y);
@@ -15682,9 +15682,9 @@ function OD(e, t, n) {
15682
15682
  consume: C,
15683
15683
  enter: _,
15684
15684
  exit: E,
15685
- attempt: F(x),
15686
- check: F(A),
15687
- interrupt: F(A, {
15685
+ attempt: T(x),
15686
+ check: T(A),
15687
+ interrupt: T(A, {
15688
15688
  interrupt: !0
15689
15689
  })
15690
15690
  }, u = {
@@ -15711,12 +15711,12 @@ function OD(e, t, n) {
15711
15711
  return PD(s, M);
15712
15712
  }
15713
15713
  function g() {
15714
- const { line: M, column: w, offset: B, _index: T, _bufferIndex: R } = r;
15714
+ const { line: M, column: w, offset: B, _index: F, _bufferIndex: R } = r;
15715
15715
  return {
15716
15716
  line: M,
15717
15717
  column: w,
15718
15718
  offset: B,
15719
- _index: T,
15719
+ _index: F,
15720
15720
  _bufferIndex: R
15721
15721
  };
15722
15722
  }
@@ -15754,14 +15754,14 @@ function OD(e, t, n) {
15754
15754
  function A(M, w) {
15755
15755
  w.restore();
15756
15756
  }
15757
- function F(M, w) {
15757
+ function T(M, w) {
15758
15758
  return B;
15759
- function B(T, R, P) {
15759
+ function B(F, R, P) {
15760
15760
  let W, ee, Y, y;
15761
- return Array.isArray(T) ? X(T) : "tokenize" in T ? (
15761
+ return Array.isArray(F) ? X(F) : "tokenize" in F ? (
15762
15762
  // @ts-expect-error Looks like a construct.
15763
- X([T])
15764
- ) : z(T);
15763
+ X([F])
15764
+ ) : z(F);
15765
15765
  function z(I) {
15766
15766
  return H;
15767
15767
  function H(te) {
@@ -15808,13 +15808,13 @@ function OD(e, t, n) {
15808
15808
  ), M.resolveTo && (u.events = M.resolveTo(u.events, u));
15809
15809
  }
15810
15810
  function N() {
15811
- const M = g(), w = u.previous, B = u.currentConstruct, T = u.events.length, R = Array.from(o);
15811
+ const M = g(), w = u.previous, B = u.currentConstruct, F = u.events.length, R = Array.from(o);
15812
15812
  return {
15813
15813
  restore: P,
15814
- from: T
15814
+ from: F
15815
15815
  };
15816
15816
  function P() {
15817
- r = M, u.previous = w, u.currentConstruct = B, u.events.length = T, o = R, $();
15817
+ r = M, u.previous = w, u.currentConstruct = B, u.events.length = F, o = R, $();
15818
15818
  }
15819
15819
  }
15820
15820
  function $() {
@@ -16102,7 +16102,7 @@ function XD(e) {
16102
16102
  hardBreakTrailing: l(w),
16103
16103
  htmlFlow: l(B),
16104
16104
  htmlFlowData: $,
16105
- htmlText: l(T),
16105
+ htmlText: l(F),
16106
16106
  htmlTextData: $,
16107
16107
  image: l(W),
16108
16108
  label: Y,
@@ -16118,7 +16118,7 @@ function XD(e) {
16118
16118
  resourceTitleString: z,
16119
16119
  resource: X,
16120
16120
  setextHeading: l(L),
16121
- setextHeadingLineSequence: F,
16121
+ setextHeadingLineSequence: T,
16122
16122
  setextHeadingText: A,
16123
16123
  strong: l(),
16124
16124
  thematicBreak: l()
@@ -16334,7 +16334,7 @@ function XD(e) {
16334
16334
  function A() {
16335
16335
  this.data.setextHeadingSlurpLineEnding = !0;
16336
16336
  }
16337
- function F(V) {
16337
+ function T(V) {
16338
16338
  const se = this.stack[this.stack.length - 1];
16339
16339
  se.depth = this.sliceSerialize(V).codePointAt(0) === 61 ? 1 : 2;
16340
16340
  }
@@ -16370,7 +16370,7 @@ function XD(e) {
16370
16370
  const V = this.resume(), se = this.stack[this.stack.length - 1];
16371
16371
  se.value = V;
16372
16372
  }
16373
- function T() {
16373
+ function F() {
16374
16374
  const V = this.resume(), se = this.stack[this.stack.length - 1];
16375
16375
  se.value = V;
16376
16376
  }
@@ -17085,9 +17085,9 @@ const lx = () => {
17085
17085
  A && (h(A), (C = x == null ? void 0 : x.querySelector("button")) == null || C.focus());
17086
17086
  break;
17087
17087
  default:
17088
- const F = f.currentTarget.closest("fieldset");
17089
- if (F) {
17090
- (_ = F == null ? void 0 : F.previousElementSibling) == null || _.focus();
17088
+ const T = f.currentTarget.closest("fieldset");
17089
+ if (T) {
17090
+ (_ = T == null ? void 0 : T.previousElementSibling) == null || _.focus();
17091
17091
  break;
17092
17092
  }
17093
17093
  }
@@ -17515,7 +17515,7 @@ const Fx = ({
17515
17515
  stringValue: E,
17516
17516
  lastAnchor: x,
17517
17517
  lastKey: A,
17518
- hasInteracted: F,
17518
+ hasInteracted: T,
17519
17519
  hasLoaded: L,
17520
17520
  mentionPopover: N
17521
17521
  } = f, $ = (P) => {
@@ -17524,7 +17524,7 @@ const Fx = ({
17524
17524
  }, M = `rte-${e}`, w = Ne(
17525
17525
  (P) => /* @__PURE__ */ d.jsx(By, { ...P }),
17526
17526
  []
17527
- ), B = Ne((P) => /* @__PURE__ */ d.jsx(Ay, { ...P }), []), T = zt(
17527
+ ), B = Ne((P) => /* @__PURE__ */ d.jsx(Ay, { ...P }), []), F = zt(
17528
17528
  () => kx(
17529
17529
  Bx(
17530
17530
  Ax(mv(_y(fv())), p),
@@ -17540,7 +17540,7 @@ const Fx = ({
17540
17540
  return;
17541
17541
  xa.lastIndex = 0;
17542
17542
  const P = t.match(xa);
17543
- !P || P.length > 1 || P[0].length !== t.length || F || D([{ type: "originalValue", value: t }]);
17543
+ !P || P.length > 1 || P[0].length !== t.length || T || D([{ type: "originalValue", value: t }]);
17544
17544
  }, [t]), me(() => {
17545
17545
  C && (async () => {
17546
17546
  let W = Dn(C);
@@ -17554,32 +17554,32 @@ const Fx = ({
17554
17554
  { type: "initialValue", value: ee },
17555
17555
  { type: "editorKey", value: C.toString() }
17556
17556
  ]), setTimeout(() => {
17557
- D([{ type: "stringValue", value: Pl(T) }]);
17557
+ D([{ type: "stringValue", value: Pl(F) }]);
17558
17558
  }, 150);
17559
17559
  });
17560
17560
  })();
17561
17561
  }, [C]), me(() => {
17562
- if (T.children.length > 0 && !L) {
17562
+ if (F.children.length > 0 && !L) {
17563
17563
  if (D([{ type: "hasLoaded", value: !0 }]), !i)
17564
17564
  return;
17565
- const P = b.end(T, []);
17566
- G.select(T, P), Q.focus(T);
17565
+ const P = b.end(F, []);
17566
+ G.select(F, P), Q.focus(F);
17567
17567
  }
17568
- }, [T.children.length, _]), me(() => {
17569
- t !== "" || !T || pc(C, t) && !F || (b.withoutNormalizing(T, () => {
17570
- G.delete(T, {
17568
+ }, [F.children.length, _]), me(() => {
17569
+ t !== "" || !F || pc(C, t) && !T || (b.withoutNormalizing(F, () => {
17570
+ G.delete(F, {
17571
17571
  at: {
17572
- anchor: b.start(T, []),
17573
- focus: b.end(T, [])
17572
+ anchor: b.start(F, []),
17573
+ focus: b.end(F, [])
17574
17574
  }
17575
- }), G.deselect(T), T.children.length !== 0 && G.unwrapNodes(T, { at: [0] }), G.insertNodes(T, m, { at: [0] });
17575
+ }), G.deselect(F), F.children.length !== 0 && G.unwrapNodes(F, { at: [0] }), G.insertNodes(F, m, { at: [0] });
17576
17576
  }), D([
17577
17577
  { type: "initialValue", value: m },
17578
17578
  { type: "lastAnchor", value: null }
17579
17579
  ]));
17580
17580
  }, [t]);
17581
17581
  const R = yc(() => {
17582
- sx(T, N.show, c, D);
17582
+ sx(F, N.show, c, D);
17583
17583
  }, 100);
17584
17584
  return _ ? /* @__PURE__ */ d.jsx("div", { id: M, className: "rich-text-editor", children: /* @__PURE__ */ d.jsxs(
17585
17585
  tn.Provider,
@@ -17595,12 +17595,12 @@ const Fx = ({
17595
17595
  /* @__PURE__ */ d.jsxs(
17596
17596
  Cy,
17597
17597
  {
17598
- editor: T,
17598
+ editor: F,
17599
17599
  initialValue: _,
17600
17600
  onChange: (P) => {
17601
- if (T.operations.some((ee) => ee.type !== "set_selection")) {
17601
+ if (F.operations.some((ee) => ee.type !== "set_selection")) {
17602
17602
  const ee = ux(P);
17603
- h(ee), D([{ type: "stringValue", value: Pl(T) }]), F || D([{ type: "hasInteracted", value: !0 }]), R(), u && console.log({ serialized: ee, json: P });
17603
+ h(ee), D([{ type: "stringValue", value: Pl(F) }]), T || D([{ type: "hasInteracted", value: !0 }]), R(), u && console.log({ serialized: ee, json: P });
17604
17604
  }
17605
17605
  },
17606
17606
  ...o,
@@ -17616,27 +17616,27 @@ const Fx = ({
17616
17616
  tabIndex: 0,
17617
17617
  onKeyDown: (P) => {
17618
17618
  if (P.key === "Enter") {
17619
- N.show && (P.preventDefault(), P.stopPropagation(), nf(T, N, D, M));
17620
- const { selection: W } = T;
17619
+ N.show && (P.preventDefault(), P.stopPropagation(), nf(F, N, D, M));
17620
+ const { selection: W } = F;
17621
17621
  if (W) {
17622
- const ee = U.isCollapsed(W), [Y, y] = b.node(T, W, { depth: 1 });
17622
+ const ee = U.isCollapsed(W), [Y, y] = b.node(F, W, { depth: 1 });
17623
17623
  let z = Y, X = z.type;
17624
17624
  const k = z.children[0];
17625
17625
  if (k && [K.ol, K.ul].includes(k.type) && (z = k, X = k.type), z && le.isElement(z) && X !== K.paragraph) {
17626
17626
  if (X === K.blockquote && !P.shiftKey) {
17627
- P.stopPropagation(), P.preventDefault(), G.insertNodes(T, m);
17627
+ P.stopPropagation(), P.preventDefault(), G.insertNodes(F, m);
17628
17628
  return;
17629
17629
  }
17630
17630
  if (ee) {
17631
- const [S] = b.parent(T, W, {
17631
+ const [S] = b.parent(F, W, {
17632
17632
  edge: "end"
17633
17633
  }), I = S.type;
17634
17634
  if (A === "Enter" && I === K.li && [K.ul, K.ol].includes(X)) {
17635
- P.stopPropagation(), P.preventDefault(), G.insertNodes(T, m, {
17635
+ P.stopPropagation(), P.preventDefault(), G.insertNodes(F, m, {
17636
17636
  at: O.next(y)
17637
17637
  }), G.select(
17638
- T,
17639
- b.end(T, O.next(y))
17638
+ F,
17639
+ b.end(F, O.next(y))
17640
17640
  );
17641
17641
  return;
17642
17642
  }
@@ -17661,21 +17661,21 @@ const Fx = ({
17661
17661
  }
17662
17662
  ]);
17663
17663
  }
17664
- D([{ type: "lastKey", value: P.key }]), ix(P, T, D, p);
17664
+ D([{ type: "lastKey", value: P.key }]), ix(P, F, D, p);
17665
17665
  },
17666
17666
  onBlur: () => {
17667
- T.selection && D([{ type: "lastAnchor", value: T.selection.anchor }]);
17667
+ F.selection && D([{ type: "lastAnchor", value: F.selection.anchor }]);
17668
17668
  },
17669
17669
  onFocus: () => {
17670
17670
  if (x) {
17671
- if (!O.isPath(x.path) || !oe.has(T, x.path))
17671
+ if (!O.isPath(x.path) || !oe.has(F, x.path))
17672
17672
  return;
17673
- const P = oe.get(T, x.path);
17673
+ const P = oe.get(F, x.path);
17674
17674
  let W = 0;
17675
17675
  if (fe.isText(P) ? W = P.text.length : P.children && (W = P.children.length), x.offset > W)
17676
17676
  return;
17677
17677
  try {
17678
- G.select(T, {
17678
+ G.select(F, {
17679
17679
  anchor: x,
17680
17680
  focus: x
17681
17681
  });
@@ -18355,8 +18355,7 @@ const Mx = {
18355
18355
  createAccount: () => Promise.resolve(),
18356
18356
  handleError: () => {
18357
18357
  },
18358
- resendVerificationCode: () => {
18359
- }
18358
+ resendVerificationCode: () => Promise.resolve()
18360
18359
  },
18361
18360
  shouldShow: a = {},
18362
18361
  submitButton: i,
@@ -18382,7 +18381,7 @@ const Mx = {
18382
18381
  shouldDisableButton: E,
18383
18382
  showSuccessMessage: x,
18384
18383
  showError: A
18385
- } = f, [F, L] = mc([
18384
+ } = f, [T, L] = mc([
18386
18385
  "signup-this-session",
18387
18386
  "functional-cookie-consent"
18388
18387
  ]), N = {
@@ -18397,9 +18396,9 @@ const Mx = {
18397
18396
  me(() => {
18398
18397
  _ === !0 && N.jobTitle.current && N.jobTitle.current.focus();
18399
18398
  }, [_]), me(() => {
18400
- F["signup-this-session"] && D([{ type: "showSuccessMessage", value: !0 }]);
18401
- }, [F]), me(() => {
18402
- x && F["functional-cookie-consent"] && L("signup-this-session", "true", {
18399
+ T["signup-this-session"] && D([{ type: "showSuccessMessage", value: !0 }]);
18400
+ }, [T]), me(() => {
18401
+ x && T["functional-cookie-consent"] && L("signup-this-session", "true", {
18403
18402
  path: "/",
18404
18403
  maxAge: 3600
18405
18404
  });
@@ -18614,7 +18613,7 @@ function Ix() {
18614
18613
  }
18615
18614
  }
18616
18615
  }
18617
- var x = l, A = u, F = o, L = s, N = t, $ = c, M = r, w = g, B = m, T = n, R = i, P = a, W = h, ee = !1;
18616
+ var x = l, A = u, T = o, L = s, N = t, $ = c, M = r, w = g, B = m, F = n, R = i, P = a, W = h, ee = !1;
18618
18617
  function Y(J) {
18619
18618
  return ee || (ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(J) || E(J) === l;
18620
18619
  }
@@ -18654,7 +18653,7 @@ function Ix() {
18654
18653
  function he(J) {
18655
18654
  return E(J) === h;
18656
18655
  }
18657
- Ie.AsyncMode = x, Ie.ConcurrentMode = A, Ie.ContextConsumer = F, Ie.ContextProvider = L, Ie.Element = N, Ie.ForwardRef = $, Ie.Fragment = M, Ie.Lazy = w, Ie.Memo = B, Ie.Portal = T, Ie.Profiler = R, Ie.StrictMode = P, Ie.Suspense = W, Ie.isAsyncMode = Y, Ie.isConcurrentMode = y, Ie.isContextConsumer = z, Ie.isContextProvider = X, Ie.isElement = k, Ie.isForwardRef = S, Ie.isFragment = q, Ie.isLazy = I, Ie.isMemo = H, Ie.isPortal = te, Ie.isProfiler = ne, Ie.isStrictMode = ae, Ie.isSuspense = he, Ie.isValidElementType = _, Ie.typeOf = E;
18656
+ Ie.AsyncMode = x, Ie.ConcurrentMode = A, Ie.ContextConsumer = T, Ie.ContextProvider = L, Ie.Element = N, Ie.ForwardRef = $, Ie.Fragment = M, Ie.Lazy = w, Ie.Memo = B, Ie.Portal = F, Ie.Profiler = R, Ie.StrictMode = P, Ie.Suspense = W, Ie.isAsyncMode = Y, Ie.isConcurrentMode = y, Ie.isContextConsumer = z, Ie.isContextProvider = X, Ie.isElement = k, Ie.isForwardRef = S, Ie.isFragment = q, Ie.isLazy = I, Ie.isMemo = H, Ie.isPortal = te, Ie.isProfiler = ne, Ie.isStrictMode = ae, Ie.isSuspense = he, Ie.isValidElementType = _, Ie.typeOf = E;
18658
18657
  }()), Ie;
18659
18658
  }
18660
18659
  var ql;
@@ -18816,7 +18815,7 @@ function qx() {
18816
18815
  instanceOf: A,
18817
18816
  node: $(),
18818
18817
  objectOf: L,
18819
- oneOf: F,
18818
+ oneOf: T,
18820
18819
  oneOfType: N,
18821
18820
  shape: w,
18822
18821
  exact: B
@@ -18918,7 +18917,7 @@ function qx() {
18918
18917
  }
18919
18918
  return D(z);
18920
18919
  }
18921
- function F(y) {
18920
+ function T(y) {
18922
18921
  if (!Array.isArray(y))
18923
18922
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
18924
18923
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -18976,7 +18975,7 @@ function qx() {
18976
18975
  }
18977
18976
  function $() {
18978
18977
  function y(z, X, k, S, q) {
18979
- return T(z[X]) ? null : new f("Invalid " + S + " `" + q + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
18978
+ return F(z[X]) ? null : new f("Invalid " + S + " `" + q + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
18980
18979
  }
18981
18980
  return D(y);
18982
18981
  }
@@ -19025,7 +19024,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
19025
19024
  }
19026
19025
  return D(z);
19027
19026
  }
19028
- function T(y) {
19027
+ function F(y) {
19029
19028
  switch (typeof y) {
19030
19029
  case "number":
19031
19030
  case "string":
@@ -19035,7 +19034,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
19035
19034
  return !y;
19036
19035
  case "object":
19037
19036
  if (Array.isArray(y))
19038
- return y.every(T);
19037
+ return y.every(F);
19039
19038
  if (y === null || o(y))
19040
19039
  return !0;
19041
19040
  var z = h(y);
@@ -19043,12 +19042,12 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
19043
19042
  var X = z.call(y), k;
19044
19043
  if (z !== y.entries) {
19045
19044
  for (; !(k = X.next()).done; )
19046
- if (!T(k.value))
19045
+ if (!F(k.value))
19047
19046
  return !1;
19048
19047
  } else
19049
19048
  for (; !(k = X.next()).done; ) {
19050
19049
  var S = k.value;
19051
- if (S && !T(S[1]))
19050
+ if (S && !F(S[1]))
19052
19051
  return !1;
19053
19052
  }
19054
19053
  } else
@@ -19483,24 +19482,24 @@ var Jl = {
19483
19482
  delayInitialFocusTimer: void 0,
19484
19483
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
19485
19484
  recentNavEvent: void 0
19486
- }, o, l = function(w, B, T) {
19487
- return w && w[B] !== void 0 ? w[B] : i[T || B];
19485
+ }, o, l = function(w, B, F) {
19486
+ return w && w[B] !== void 0 ? w[B] : i[F || B];
19488
19487
  }, u = function(w, B) {
19489
- var T = typeof (B == null ? void 0 : B.composedPath) == "function" ? B.composedPath() : void 0;
19488
+ var F = typeof (B == null ? void 0 : B.composedPath) == "function" ? B.composedPath() : void 0;
19490
19489
  return s.containerGroups.findIndex(function(R) {
19491
19490
  var P = R.container, W = R.tabbableNodes;
19492
19491
  return P.contains(w) || // fall back to explicit tabbable search which will take into consideration any
19493
19492
  // web components if the `tabbableOptions.getShadowRoot` option was used for
19494
19493
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
19495
19494
  // look inside web components even if open)
19496
- (T == null ? void 0 : T.includes(P)) || W.find(function(ee) {
19495
+ (F == null ? void 0 : F.includes(P)) || W.find(function(ee) {
19497
19496
  return ee === w;
19498
19497
  });
19499
19498
  });
19500
19499
  }, c = function(w) {
19501
19500
  var B = i[w];
19502
19501
  if (typeof B == "function") {
19503
- for (var T = arguments.length, R = new Array(T > 1 ? T - 1 : 0), P = 1; P < T; P++)
19502
+ for (var F = arguments.length, R = new Array(F > 1 ? F - 1 : 0), P = 1; P < F; P++)
19504
19503
  R[P - 1] = arguments[P];
19505
19504
  B = B.apply(void 0, R);
19506
19505
  }
@@ -19521,17 +19520,17 @@ var Jl = {
19521
19520
  if (u(r.activeElement) >= 0)
19522
19521
  w = r.activeElement;
19523
19522
  else {
19524
- var B = s.tabbableGroups[0], T = B && B.firstTabbableNode;
19525
- w = T || c("fallbackFocus");
19523
+ var B = s.tabbableGroups[0], F = B && B.firstTabbableNode;
19524
+ w = F || c("fallbackFocus");
19526
19525
  }
19527
19526
  if (!w)
19528
19527
  throw new Error("Your focus-trap needs to have at least one focusable element");
19529
19528
  return w;
19530
19529
  }, p = function() {
19531
19530
  if (s.containerGroups = s.containers.map(function(w) {
19532
- var B = bf(w, i.tabbableOptions), T = yf(w, i.tabbableOptions), R = B.length > 0 ? B[0] : void 0, P = B.length > 0 ? B[B.length - 1] : void 0, W = T.find(function(y) {
19531
+ var B = bf(w, i.tabbableOptions), F = yf(w, i.tabbableOptions), R = B.length > 0 ? B[0] : void 0, P = B.length > 0 ? B[B.length - 1] : void 0, W = F.find(function(y) {
19533
19532
  return vn(y);
19534
- }), ee = T.slice().reverse().find(function(y) {
19533
+ }), ee = F.slice().reverse().find(function(y) {
19535
19534
  return vn(y);
19536
19535
  }), Y = !!B.find(function(y) {
19537
19536
  return on(y) > 0;
@@ -19539,7 +19538,7 @@ var Jl = {
19539
19538
  return {
19540
19539
  container: w,
19541
19540
  tabbableNodes: B,
19542
- focusableNodes: T,
19541
+ focusableNodes: F,
19543
19542
  /** True if at least one node with positive `tabindex` was found in this container. */
19544
19543
  posTabIndexesFound: Y,
19545
19544
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
@@ -19567,9 +19566,9 @@ var Jl = {
19567
19566
  */
19568
19567
  nextTabbableNode: function(z) {
19569
19568
  var X = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, k = B.indexOf(z);
19570
- return k < 0 ? X ? T.slice(T.indexOf(z) + 1).find(function(S) {
19569
+ return k < 0 ? X ? F.slice(F.indexOf(z) + 1).find(function(S) {
19571
19570
  return vn(S);
19572
- }) : T.slice(0, T.indexOf(z)).reverse().find(function(S) {
19571
+ }) : F.slice(0, F.indexOf(z)).reverse().find(function(S) {
19573
19572
  return vn(S);
19574
19573
  }) : B[k + (X ? 1 : -1)];
19575
19574
  }
@@ -19600,11 +19599,11 @@ var Jl = {
19600
19599
  var B = c("setReturnFocus", w);
19601
19600
  return B || (B === !1 ? !1 : w);
19602
19601
  }, D = function(w) {
19603
- var B = w.target, T = w.event, R = w.isBackward, P = R === void 0 ? !1 : R;
19604
- B = B || ia(T), p();
19602
+ var B = w.target, F = w.event, R = w.isBackward, P = R === void 0 ? !1 : R;
19603
+ B = B || ia(F), p();
19605
19604
  var W = null;
19606
19605
  if (s.tabbableGroups.length > 0) {
19607
- var ee = u(B, T), Y = ee >= 0 ? s.containerGroups[ee] : void 0;
19606
+ var ee = u(B, F), Y = ee >= 0 ? s.containerGroups[ee] : void 0;
19608
19607
  if (ee < 0)
19609
19608
  P ? W = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : W = s.tabbableGroups[0].firstTabbableNode;
19610
19609
  else if (P) {
@@ -19616,7 +19615,7 @@ var Jl = {
19616
19615
  var z = y === 0 ? s.tabbableGroups.length - 1 : y - 1, X = s.tabbableGroups[z];
19617
19616
  W = on(B) >= 0 ? X.lastTabbableNode : X.lastDomTabbableNode;
19618
19617
  } else
19619
- kr(T) || (W = Y.nextTabbableNode(B, !1));
19618
+ kr(F) || (W = Y.nextTabbableNode(B, !1));
19620
19619
  } else {
19621
19620
  var k = ec(s.tabbableGroups, function(I) {
19622
19621
  var H = I.lastTabbableNode;
@@ -19626,7 +19625,7 @@ var Jl = {
19626
19625
  var S = k === s.tabbableGroups.length - 1 ? 0 : k + 1, q = s.tabbableGroups[S];
19627
19626
  W = on(B) >= 0 ? q.firstTabbableNode : q.firstDomTabbableNode;
19628
19627
  } else
19629
- kr(T) || (W = Y.nextTabbableNode(B));
19628
+ kr(F) || (W = Y.nextTabbableNode(B));
19630
19629
  }
19631
19630
  } else
19632
19631
  W = c("fallbackFocus");
@@ -19649,9 +19648,9 @@ var Jl = {
19649
19648
  hr(i.allowOutsideClick, w) || w.preventDefault();
19650
19649
  }
19651
19650
  }, C = function(w) {
19652
- var B = ia(w), T = u(B, w) >= 0;
19653
- if (T || B instanceof Document)
19654
- T && (s.mostRecentlyFocusedNode = B);
19651
+ var B = ia(w), F = u(B, w) >= 0;
19652
+ if (F || B instanceof Document)
19653
+ F && (s.mostRecentlyFocusedNode = B);
19655
19654
  else {
19656
19655
  w.stopImmediatePropagation();
19657
19656
  var R, P = !0;
@@ -19683,11 +19682,11 @@ var Jl = {
19683
19682
  }, _ = function(w) {
19684
19683
  var B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
19685
19684
  s.recentNavEvent = w;
19686
- var T = D({
19685
+ var F = D({
19687
19686
  event: w,
19688
19687
  isBackward: B
19689
19688
  });
19690
- T && (kr(w) && w.preventDefault(), g(T));
19689
+ F && (kr(w) && w.preventDefault(), g(F));
19691
19690
  }, E = function(w) {
19692
19691
  if (hw(w) && hr(i.escapeDeactivates, w) !== !1) {
19693
19692
  w.preventDefault(), o.deactivate();
@@ -19714,12 +19713,12 @@ var Jl = {
19714
19713
  capture: !0,
19715
19714
  passive: !1
19716
19715
  }), o;
19717
- }, F = function() {
19716
+ }, T = function() {
19718
19717
  if (s.active)
19719
19718
  return r.removeEventListener("focusin", C, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", x, !0), r.removeEventListener("keydown", E, !0), o;
19720
19719
  }, L = function(w) {
19721
- var B = w.some(function(T) {
19722
- var R = Array.from(T.removedNodes);
19720
+ var B = w.some(function(F) {
19721
+ var R = Array.from(F.removedNodes);
19723
19722
  return R.some(function(P) {
19724
19723
  return P === s.mostRecentlyFocusedNode;
19725
19724
  });
@@ -19743,10 +19742,10 @@ var Jl = {
19743
19742
  activate: function(w) {
19744
19743
  if (s.active)
19745
19744
  return this;
19746
- var B = l(w, "onActivate"), T = l(w, "onPostActivate"), R = l(w, "checkCanFocusTrap");
19745
+ var B = l(w, "onActivate"), F = l(w, "onPostActivate"), R = l(w, "checkCanFocusTrap");
19747
19746
  R || p(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = r.activeElement, B == null || B();
19748
19747
  var P = function() {
19749
- R && p(), A(), $(), T == null || T();
19748
+ R && p(), A(), $(), F == null || F();
19750
19749
  };
19751
19750
  return R ? (R(s.containers.concat()).then(P, P), this) : (P(), this);
19752
19751
  },
@@ -19758,9 +19757,9 @@ var Jl = {
19758
19757
  onPostDeactivate: i.onPostDeactivate,
19759
19758
  checkCanReturnFocus: i.checkCanReturnFocus
19760
19759
  }, w);
19761
- clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, F(), s.active = !1, s.paused = !1, $(), Jl.deactivateTrap(a, o);
19762
- var T = l(B, "onDeactivate"), R = l(B, "onPostDeactivate"), P = l(B, "checkCanReturnFocus"), W = l(B, "returnFocus", "returnFocusOnDeactivate");
19763
- T == null || T();
19760
+ clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, T(), s.active = !1, s.paused = !1, $(), Jl.deactivateTrap(a, o);
19761
+ var F = l(B, "onDeactivate"), R = l(B, "onPostDeactivate"), P = l(B, "checkCanReturnFocus"), W = l(B, "returnFocus", "returnFocusOnDeactivate");
19762
+ F == null || F();
19764
19763
  var ee = function() {
19765
19764
  Xl(function() {
19766
19765
  W && g(f(s.nodeFocusedBeforeActivation)), R == null || R();
@@ -19771,19 +19770,19 @@ var Jl = {
19771
19770
  pause: function(w) {
19772
19771
  if (s.paused || !s.active)
19773
19772
  return this;
19774
- var B = l(w, "onPause"), T = l(w, "onPostPause");
19775
- return s.paused = !0, B == null || B(), F(), $(), T == null || T(), this;
19773
+ var B = l(w, "onPause"), F = l(w, "onPostPause");
19774
+ return s.paused = !0, B == null || B(), T(), $(), F == null || F(), this;
19776
19775
  },
19777
19776
  unpause: function(w) {
19778
19777
  if (!s.paused || !s.active)
19779
19778
  return this;
19780
- var B = l(w, "onUnpause"), T = l(w, "onPostUnpause");
19781
- return s.paused = !1, B == null || B(), p(), A(), $(), T == null || T(), this;
19779
+ var B = l(w, "onUnpause"), F = l(w, "onPostUnpause");
19780
+ return s.paused = !1, B == null || B(), p(), A(), $(), F == null || F(), this;
19782
19781
  },
19783
19782
  updateContainerElements: function(w) {
19784
19783
  var B = [].concat(w).filter(Boolean);
19785
- return s.containers = B.map(function(T) {
19786
- return typeof T == "string" ? r.querySelector(T) : T;
19784
+ return s.containers = B.map(function(F) {
19785
+ return typeof F == "string" ? r.querySelector(F) : F;
19787
19786
  }), s.active && p(), $(), this;
19788
19787
  }
19789
19788
  }, o.updateContainerElements(t), o;
@@ -21042,7 +21041,7 @@ const Qw = {
21042
21041
  handleCardClick: s,
21043
21042
  setFocus: o = !1
21044
21043
  }) => {
21045
- var M, w, B, T, R;
21044
+ var M, w, B, F, R;
21046
21045
  const l = ce(), u = Ke(pn), c = u && typeof u.id == "string", h = re.useRef(null), [p, m] = de({
21047
21046
  data: null,
21048
21047
  isLoading: !0
@@ -21077,7 +21076,7 @@ const Qw = {
21077
21076
  } = $a[v];
21078
21077
  let A = g.slug ? `${C}${g.slug}` : !1;
21079
21078
  g.slug && (g.slug.slice(0, 4) === "http" || g.slug.slice(0, 2) === "//" || g.slug.slice(0, 6) === "mailto" || g.slug.slice(0, 3) === "tel") && (A = g.slug);
21080
- const F = (P) => {
21079
+ const T = (P) => {
21081
21080
  A && (P.preventDefault(), P.stopPropagation(), window.location.href = A);
21082
21081
  }, L = { ...Qw, ...E };
21083
21082
  let N = { className: "card" }, $ = {};
@@ -21088,7 +21087,7 @@ const Qw = {
21088
21087
  "data-gtm-event-type": `${x}-click`,
21089
21088
  "data-testid": "link"
21090
21089
  }, g.openInNewTab && ($.target = "_blank"), N = {
21091
- onClick: F,
21090
+ onClick: T,
21092
21091
  className: "card gtm-trackable",
21093
21092
  "data-gtm-event-context": `${a}-CarouselCard`,
21094
21093
  "data-gtm-event-type": `${x}-click`
@@ -21177,7 +21176,7 @@ const Qw = {
21177
21176
  {
21178
21177
  size: "small",
21179
21178
  variant: "registered",
21180
- icon: ((T = g == null ? void 0 : g.members) == null ? void 0 : T.memberType) === "owner" ? "user" : "tick",
21179
+ icon: ((F = g == null ? void 0 : g.members) == null ? void 0 : F.memberType) === "owner" ? "user" : "tick",
21181
21180
  children: l.formatMessage({
21182
21181
  id: `card_member_type_${(R = g == null ? void 0 : g.members) == null ? void 0 : R.memberType}`
21183
21182
  })
@@ -21265,7 +21264,7 @@ const tC = ({
21265
21264
  isLoading: !1
21266
21265
  }));
21267
21266
  }, [A, _]);
21268
- const F = (w = "next") => {
21267
+ const T = (w = "next") => {
21269
21268
  let B = f;
21270
21269
  if (typeof w == "string")
21271
21270
  if (w === "next")
@@ -21284,7 +21283,7 @@ const tC = ({
21284
21283
  currentPage: B,
21285
21284
  loadedPages: [.../* @__PURE__ */ new Set([...D, B])]
21286
21285
  }));
21287
- const T = () => {
21286
+ const F = () => {
21288
21287
  const R = B * u.cardsPerPage, P = R + u.cardsPerPage;
21289
21288
  return t.slice(R, P).length;
21290
21289
  };
@@ -21295,7 +21294,7 @@ const tC = ({
21295
21294
  },
21296
21295
  {
21297
21296
  direction: w,
21298
- count: T()
21297
+ count: F()
21299
21298
  }
21300
21299
  )
21301
21300
  );
@@ -21304,8 +21303,8 @@ const tC = ({
21304
21303
  }, N = (w) => {
21305
21304
  if (oa === null)
21306
21305
  return;
21307
- const B = w.touches[0].clientX, T = oa - B;
21308
- T > 5 ? F("next") : T < -5 && F("previous"), oa = null;
21306
+ const B = w.touches[0].clientX, F = oa - B;
21307
+ F > 5 ? T("next") : F < -5 && T("previous"), oa = null;
21309
21308
  }, $ = {
21310
21309
  "--width": `${A || 0}px`,
21311
21310
  "--total-cards": _,
@@ -21316,8 +21315,8 @@ const tC = ({
21316
21315
  return /* @__PURE__ */ d.jsx(jc, { layout: `carousel${a ? "-with-title" : ""}` });
21317
21316
  const M = (w, B) => {
21318
21317
  var R;
21319
- let T = null;
21320
- return (R = w == null ? void 0 : w.sys) != null && R.id ? T = `card-${w.sys.id}` : w != null && w.slug ? T = `card-${w.slug}` : [n[B], w.contentType].includes("customCard") && (T = `card-${window.btoa(`${w.title} ${w.createdAt}`)}-${B}`), T;
21318
+ let F = null;
21319
+ return (R = w == null ? void 0 : w.sys) != null && R.id ? F = `card-${w.sys.id}` : w != null && w.slug ? F = `card-${w.slug}` : [n[B], w.contentType].includes("customCard") && (F = `card-${window.btoa(`${w.title} ${w.createdAt}`)}-${B}`), F;
21321
21320
  };
21322
21321
  return /* @__PURE__ */ d.jsxs(
21323
21322
  "section",
@@ -21336,25 +21335,25 @@ const tC = ({
21336
21335
  style: $,
21337
21336
  "data-testid": "carousel-list",
21338
21337
  children: t.map((w, B) => {
21339
- let T = M(w, B);
21340
- return T && Xw(B, h, f, D) ? /* @__PURE__ */ d.jsx(
21338
+ let F = M(w, B);
21339
+ return F && Xw(B, h, f, D) ? /* @__PURE__ */ d.jsx(
21341
21340
  _f,
21342
21341
  {
21343
- id: T,
21342
+ id: F,
21344
21343
  card: { ...w, contentType: n[B] },
21345
21344
  buildCardData: r,
21346
21345
  gtmContext: s,
21347
21346
  ...o
21348
21347
  },
21349
- T
21350
- ) : (T = T || `${e}-card-${B}`, /* @__PURE__ */ d.jsx(
21348
+ F
21349
+ ) : (F = F || `${e}-card-${B}`, /* @__PURE__ */ d.jsx(
21351
21350
  Nt,
21352
21351
  {
21353
21352
  element: "li",
21354
21353
  className: "card-wrapper",
21355
21354
  "data-testid": "card-placeholder"
21356
21355
  },
21357
- T
21356
+ F
21358
21357
  ));
21359
21358
  })
21360
21359
  }
@@ -21368,7 +21367,7 @@ const tC = ({
21368
21367
  size: "large",
21369
21368
  icon: { icon: "chevron_left" },
21370
21369
  onClick: (w) => {
21371
- w.preventDefault(), w.stopPropagation(), F("previous");
21370
+ w.preventDefault(), w.stopPropagation(), T("previous");
21372
21371
  },
21373
21372
  screenreaderText: l.formatMessage({
21374
21373
  id: "carousel_pagination_previous"
@@ -21386,8 +21385,8 @@ const tC = ({
21386
21385
  className: Z("page-indicator", {
21387
21386
  selected: B === f
21388
21387
  }),
21389
- onClick: (T) => {
21390
- T.preventDefault(), T.stopPropagation(), F(B);
21388
+ onClick: (F) => {
21389
+ F.preventDefault(), F.stopPropagation(), T(B);
21391
21390
  },
21392
21391
  children: /* @__PURE__ */ d.jsx(qe, { showOnFocus: !1, children: l.formatMessage(
21393
21392
  { id: "carousel_pagination_page" },
@@ -21405,7 +21404,7 @@ const tC = ({
21405
21404
  size: "large",
21406
21405
  icon: { icon: "chevron_right" },
21407
21406
  onClick: (w) => {
21408
- w.preventDefault(), w.stopPropagation(), F("next");
21407
+ w.preventDefault(), w.stopPropagation(), T("next");
21409
21408
  },
21410
21409
  screenreaderText: l.formatMessage({ id: "carousel_pagination_next" }),
21411
21410
  disabled: f >= E - 1
@@ -22980,9 +22979,9 @@ const hC = () => {
22980
22979
  modal: m = "default"
22981
22980
  } = i, g = ch(), [f, D] = de(""), v = (A) => {
22982
22981
  const {
22983
- detail: { message: F }
22982
+ detail: { message: T }
22984
22983
  } = A;
22985
- D(F);
22984
+ D(T);
22986
22985
  };
22987
22986
  me(() => (window.scrollTo(0, 0), document.addEventListener("ariaLive", v), () => {
22988
22987
  document.removeEventListener("ariaLive", v);
@@ -23260,7 +23259,7 @@ const h_ = ({
23260
23259
  optional: E,
23261
23260
  slug: x,
23262
23261
  subsectionId: A,
23263
- title: F,
23262
+ title: T,
23264
23263
  type: L
23265
23264
  }) => {
23266
23265
  const N = a && t || _, $ = {};
@@ -23281,7 +23280,7 @@ const h_ = ({
23281
23280
  href: N ? `/microcourses/en/${o}/${x}` : void 0,
23282
23281
  fallbackElement: "span",
23283
23282
  className: "inner",
23284
- gtmContext: `MicrocourseOutline${hh(F)}`,
23283
+ gtmContext: `MicrocourseOutline${hh(T)}`,
23285
23284
  gtmType: "article-click",
23286
23285
  children: /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
23287
23286
  /* @__PURE__ */ d.jsx(
@@ -23289,7 +23288,7 @@ const h_ = ({
23289
23288
  {
23290
23289
  sectionId: i,
23291
23290
  subsectionId: A,
23292
- title: F,
23291
+ title: T,
23293
23292
  className: "course-title"
23294
23293
  }
23295
23294
  ),
@@ -23379,7 +23378,7 @@ const ct = "discussion_form_", bo = ({
23379
23378
  data: u = {},
23380
23379
  gtmContext: c = "DiscussionForm"
23381
23380
  }) => {
23382
- var w, B, T;
23381
+ var w, B, F;
23383
23382
  const h = ce(), p = Ke(pn), [m, g] = de(""), [f, D] = de(
23384
23383
  r.isEditing && r.isEditing.text || (r == null ? void 0 : r.isPrepopulated) && r.isPrepopulated.text || ""
23385
23384
  ), [v, C] = de(s.error || !1), [_, E] = de(!1);
@@ -23410,11 +23409,11 @@ const ct = "discussion_form_", bo = ({
23410
23409
  };
23411
23410
  let A = `${t.type}-form`;
23412
23411
  if (t.type === "response" || t.type === "reply") {
23413
- const R = ((w = t.slugs) == null ? void 0 : w.reply) || ((B = t.slugs) == null ? void 0 : B.answer) || ((T = t.slugs) == null ? void 0 : T.question) || "";
23412
+ const R = ((w = t.slugs) == null ? void 0 : w.reply) || ((B = t.slugs) == null ? void 0 : B.answer) || ((F = t.slugs) == null ? void 0 : F.question) || "";
23414
23413
  R && (A = `${A}-${R.slice(-15)}`);
23415
23414
  }
23416
23415
  e && (A = `${e}-${A}`);
23417
- const F = async (R) => {
23416
+ const T = async (R) => {
23418
23417
  var W;
23419
23418
  if (R.preventDefault(), R.stopPropagation(), !p || !p.id || !n || N)
23420
23419
  return;
@@ -23492,7 +23491,7 @@ const ct = "discussion_form_", bo = ({
23492
23491
  E("submitting"), l.handleSaveEdit && l.handleSaveEdit(f);
23493
23492
  return;
23494
23493
  }
23495
- F(R);
23494
+ T(R);
23496
23495
  },
23497
23496
  className: "gtm-trackable",
23498
23497
  "data-gtm-event-context": c,
@@ -23670,8 +23669,8 @@ const wC = ({
23670
23669
  const C = zt(
23671
23670
  () => xC(n, es),
23672
23671
  [n]
23673
- ), _ = (F) => {
23674
- if (F.preventDefault(), F.stopPropagation(), p([{ type: "showLikers", value: !1 }]), Br)
23672
+ ), _ = (T) => {
23673
+ if (T.preventDefault(), T.stopPropagation(), p([{ type: "showLikers", value: !1 }]), Br)
23675
23674
  return Xi(), !1;
23676
23675
  if (Xi(), f || !s)
23677
23676
  return !1;
@@ -23679,10 +23678,10 @@ const wC = ({
23679
23678
  }, E = async () => {
23680
23679
  if (Xi(), f || !s)
23681
23680
  return !1;
23682
- let F = g ? m - 1 : m + 1;
23683
- F < 0 && (F = 0), p([
23681
+ let T = g ? m - 1 : m + 1;
23682
+ T < 0 && (T = 0), p([
23684
23683
  { type: "ignoreInteractions", value: !0 },
23685
- { type: "numberOfLikes", value: F },
23684
+ { type: "numberOfLikes", value: T },
23686
23685
  { type: "userLikedContent", value: !g }
23687
23686
  ]);
23688
23687
  try {
@@ -23712,8 +23711,8 @@ const wC = ({
23712
23711
  e,
23713
23712
  {
23714
23713
  className: "likes-wrapper",
23715
- onKeyDown: (F) => {
23716
- F.key === "Escape" && p([{ type: "showLikers", value: !1 }]);
23714
+ onKeyDown: (T) => {
23715
+ T.key === "Escape" && p([{ type: "showLikers", value: !1 }]);
23717
23716
  },
23718
23717
  onMouseEnter: () => {
23719
23718
  A(), p([{ type: "showLikers", value: !0 }]);
@@ -23768,10 +23767,10 @@ const wC = ({
23768
23767
  A();
23769
23768
  },
23770
23769
  onBlur: () => x,
23771
- onClick: (F) => {
23770
+ onClick: (T) => {
23772
23771
  var N;
23773
- F.preventDefault(), F.stopPropagation(), A(), p([{ type: "showLikers", value: !0 }]);
23774
- const L = (N = F.currentTarget.nextSibling) == null ? void 0 : N.childNodes[0];
23772
+ T.preventDefault(), T.stopPropagation(), A(), p([{ type: "showLikers", value: !0 }]);
23773
+ const L = (N = T.currentTarget.nextSibling) == null ? void 0 : N.childNodes[0];
23775
23774
  if (L) {
23776
23775
  const $ = L.querySelector(
23777
23776
  "li:first-child a"
@@ -23781,8 +23780,8 @@ const wC = ({
23781
23780
  }, 100));
23782
23781
  }
23783
23782
  },
23784
- onKeyDown: (F) => {
23785
- F.key === "Escape" && (F.preventDefault(), F.stopPropagation(), x());
23783
+ onKeyDown: (T) => {
23784
+ T.key === "Escape" && (T.preventDefault(), T.stopPropagation(), x());
23786
23785
  },
23787
23786
  "aria-expanded": D,
23788
23787
  "aria-controls": `likes-tooltip-${i.slug}`,
@@ -23799,14 +23798,14 @@ const wC = ({
23799
23798
  isOpen: D,
23800
23799
  isLoading: n.length === 0,
23801
23800
  children: n.length && /* @__PURE__ */ d.jsxs("ul", { children: [
23802
- C.map((F, L) => {
23803
- if (typeof F == "string" || !F.name)
23801
+ C.map((T, L) => {
23802
+ if (typeof T == "string" || !T.name)
23804
23803
  return null;
23805
23804
  const N = {};
23806
23805
  return v !== L && (N.tabIndex = -1), /* @__PURE__ */ d.jsx("li", { "data-index": L, children: /* @__PURE__ */ d.jsx(
23807
23806
  sr,
23808
23807
  {
23809
- href: F.id ? `/profiles/${F.id}` : void 0,
23808
+ href: T.id ? `/profiles/${T.id}` : void 0,
23810
23809
  gtmContext: "Likes",
23811
23810
  gtmType: "liked-name-click",
23812
23811
  onClick: ($) => $ == null ? void 0 : $.stopPropagation(),
@@ -23825,18 +23824,18 @@ const wC = ({
23825
23824
  (!B || (B == null ? void 0 : B.getAttribute("data-index")) === "-1") && (B = (W = w == null ? void 0 : w.parentElement) == null ? void 0 : W.firstElementChild);
23826
23825
  if (!B)
23827
23826
  return;
23828
- const T = (B == null ? void 0 : B.getAttribute("data-index")) || "0";
23827
+ const F = (B == null ? void 0 : B.getAttribute("data-index")) || "0";
23829
23828
  p([
23830
23829
  {
23831
23830
  type: "tabbableLink",
23832
- value: T
23831
+ value: F
23833
23832
  }
23834
23833
  ]), (ee = B == null ? void 0 : B.querySelector("a")) == null || ee.focus();
23835
23834
  },
23836
23835
  ...N,
23837
- children: F.name
23836
+ children: T.name
23838
23837
  }
23839
- ) }, F.id || window.btoa(F.name));
23838
+ ) }, T.id || window.btoa(T.name));
23840
23839
  }),
23841
23840
  t > es && /* @__PURE__ */ d.jsx("li", { "data-index": "-1", children: u.formatMessage(
23842
23841
  { id: "discussion_likes_more" },
@@ -23936,14 +23935,14 @@ const _C = 3e3, kC = ({ url: e }) => {
23936
23935
  }
23937
23936
  } = s.content || {}, { createLike: x = () => {
23938
23937
  }, deleteLike: A = () => {
23939
- } } = s.likes || {}, { openComments: F = () => {
23938
+ } } = s.likes || {}, { openComments: T = () => {
23940
23939
  } } = s.comments || {}, { listMembers: L = () => Promise.resolve([]) } = s.mentions || {}, {
23941
23940
  author: N,
23942
23941
  canLike: $,
23943
23942
  createdAt: M,
23944
23943
  id: w,
23945
23944
  likes: B = 0,
23946
- userLiked: T,
23945
+ userLiked: F,
23947
23946
  comments: R = 0,
23948
23947
  mentions: P
23949
23948
  } = t, W = D && D.id && typeof N != "string" && N.id && N.id === D.id || !1, ee = typeof $ == "boolean" ? $ : !0, Y = W && (!t.createdAt || yh(t.createdAt, 10, "seconds")), y = _e(null), [z, X] = de({
@@ -24170,7 +24169,7 @@ const _C = 3e3, kC = ({ url: e }) => {
24170
24169
  element: "li",
24171
24170
  likes: B,
24172
24171
  isShort: !1,
24173
- userLiked: T,
24172
+ userLiked: F,
24174
24173
  content: {
24175
24174
  type: t.type,
24176
24175
  slugs: t.slugs,
@@ -24188,7 +24187,7 @@ const _C = 3e3, kC = ({ url: e }) => {
24188
24187
  qa,
24189
24188
  {
24190
24189
  onClick: (ve) => {
24191
- ve.preventDefault(), ve.stopPropagation(), o.comments && (window.location.href = o.comments), typeof F == "function" && F();
24190
+ ve.preventDefault(), ve.stopPropagation(), o.comments && (window.location.href = o.comments), typeof T == "function" && T();
24192
24191
  },
24193
24192
  icon: { icon: "speech-bubble_square" },
24194
24193
  "data-gtm-event-context": u,
@@ -24909,12 +24908,12 @@ const p_ = ({
24909
24908
  l == null ? void 0 : l.map((x, A) => {
24910
24909
  var W, ee, Y, y, z, X, k, S;
24911
24910
  const {
24912
- id: F,
24911
+ id: T,
24913
24912
  own_reactions: L,
24914
24913
  latest_reactions: N,
24915
24914
  reaction_counts: $,
24916
24915
  mentioned_users: M
24917
- } = x, w = (((W = N == null ? void 0 : N.like) == null ? void 0 : W.length) || 0) > 0, B = (((ee = L == null ? void 0 : L.like) == null ? void 0 : ee.length) || 0) > 0, T = B ? L == null ? void 0 : L.like[0].id : "", R = w ? (Y = N == null ? void 0 : N.like) == null ? void 0 : Y.map((q) => {
24916
+ } = x, w = (((W = N == null ? void 0 : N.like) == null ? void 0 : W.length) || 0) > 0, B = (((ee = L == null ? void 0 : L.like) == null ? void 0 : ee.length) || 0) > 0, F = B ? L == null ? void 0 : L.like[0].id : "", R = w ? (Y = N == null ? void 0 : N.like) == null ? void 0 : Y.map((q) => {
24918
24917
  var I, H, te;
24919
24918
  return {
24920
24919
  id: (I = q == null ? void 0 : q.user) == null ? void 0 : I.id,
@@ -24932,9 +24931,9 @@ const p_ = ({
24932
24931
  createdAt: (x == null ? void 0 : x.time) || "",
24933
24932
  slugs: {
24934
24933
  question: `${e}/${t}`,
24935
- answer: F
24934
+ answer: T
24936
24935
  },
24937
- slug: F,
24936
+ slug: T,
24938
24937
  author: {
24939
24938
  id: P == null ? void 0 : P.id,
24940
24939
  name: (y = P == null ? void 0 : P.data) == null ? void 0 : y.name,
@@ -24952,20 +24951,20 @@ const p_ = ({
24952
24951
  mentions: M
24953
24952
  },
24954
24953
  links: {
24955
- post: `${e}/${t}/${F}`,
24956
- comments: `${e}/${t}/${F}`
24954
+ post: `${e}/${t}/${T}`,
24955
+ comments: `${e}/${t}/${T}`
24957
24956
  },
24958
24957
  gtmContext: "community",
24959
24958
  functions: {
24960
24959
  content: {
24961
24960
  createContent: () => null,
24962
- deleteContent: () => f({ activityId: F }),
24961
+ deleteContent: () => f({ activityId: T }),
24963
24962
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
24964
- updateContent: (q, { body: I }) => g({ activityId: F, content: I })
24963
+ updateContent: (q, { body: I }) => g({ activityId: T, content: I })
24965
24964
  },
24966
24965
  likes: {
24967
- createLike: () => D({ activityId: F }),
24968
- deleteLike: () => v({ activityId: F, reactionId: T })
24966
+ createLike: () => D({ activityId: T }),
24967
+ deleteLike: () => v({ activityId: T, reactionId: F })
24969
24968
  },
24970
24969
  comments: {
24971
24970
  openComments: () => null
@@ -24976,7 +24975,7 @@ const p_ = ({
24976
24975
  styling: { showShareLinkButton: !0 },
24977
24976
  setFocus: A === C
24978
24977
  }
24979
- ) }, F);
24978
+ ) }, T);
24980
24979
  }),
24981
24980
  !p && /* @__PURE__ */ d.jsx(
24982
24981
  ti,
@@ -25807,13 +25806,13 @@ const sE = ({
25807
25806
  const {
25808
25807
  id: x,
25809
25808
  own_children: A,
25810
- latest_children: F,
25809
+ latest_children: T,
25811
25810
  children_counts: L,
25812
25811
  data: { mentioned_users: N }
25813
25812
  } = E, M = (((ee = A == null ? void 0 : A.like) == null ? void 0 : ee.length) || 0) > 0 ? (Y = A == null ? void 0 : A.like) == null ? void 0 : Y.find((ae) => {
25814
25813
  var he;
25815
25814
  return ((he = ae == null ? void 0 : ae.user) == null ? void 0 : he.id) === (v == null ? void 0 : v.id);
25816
- }) : !1, w = M ? M == null ? void 0 : M.id : "", B = !!M, R = (((y = F == null ? void 0 : F.like) == null ? void 0 : y.length) || 0) > 0 ? (z = F == null ? void 0 : F.like) == null ? void 0 : z.map((ae) => {
25815
+ }) : !1, w = M ? M == null ? void 0 : M.id : "", B = !!M, R = (((y = T == null ? void 0 : T.like) == null ? void 0 : y.length) || 0) > 0 ? (z = T == null ? void 0 : T.like) == null ? void 0 : z.map((ae) => {
25817
25816
  var he, J, De;
25818
25817
  return {
25819
25818
  id: (he = ae == null ? void 0 : ae.user) == null ? void 0 : he.id,
@@ -25911,7 +25910,7 @@ const oE = ({
25911
25910
  content: { type: "reply", slugs: {} },
25912
25911
  functions: {
25913
25912
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25914
- create: (F, { body: L }) => g({ activityId: n, content: L }),
25913
+ create: (T, { body: L }) => g({ activityId: n, content: L }),
25915
25914
  ...i
25916
25915
  },
25917
25916
  meta: {
@@ -25931,7 +25930,7 @@ const oE = ({
25931
25930
  }
25932
25931
  }
25933
25932
  ),
25934
- u == null ? void 0 : u.map((F, L) => {
25933
+ u == null ? void 0 : u.map((T, L) => {
25935
25934
  var X, k, S, q, I, H, te, ne, ae, he, J, De;
25936
25935
  const {
25937
25936
  id: N,
@@ -25939,7 +25938,7 @@ const oE = ({
25939
25938
  latest_children: M,
25940
25939
  children_counts: w,
25941
25940
  data: { mentioned_users: B }
25942
- } = F, R = (((X = $ == null ? void 0 : $.like) == null ? void 0 : X.length) || 0) > 0 ? (k = $ == null ? void 0 : $.like) == null ? void 0 : k.find((pe) => {
25941
+ } = T, R = (((X = $ == null ? void 0 : $.like) == null ? void 0 : X.length) || 0) > 0 ? (k = $ == null ? void 0 : $.like) == null ? void 0 : k.find((pe) => {
25943
25942
  var ke;
25944
25943
  return ((ke = pe == null ? void 0 : pe.user) == null ? void 0 : ke.id) === (_ == null ? void 0 : _.id);
25945
25944
  }) : !1, P = R ? R == null ? void 0 : R.id : "", W = !!R, Y = (((S = M == null ? void 0 : M.like) == null ? void 0 : S.length) || 0) > 0 ? (q = M == null ? void 0 : M.like) == null ? void 0 : q.map((pe) => {
@@ -25948,9 +25947,9 @@ const oE = ({
25948
25947
  id: (ke = pe == null ? void 0 : pe.user) == null ? void 0 : ke.id,
25949
25948
  name: (Pe = (Oe = pe == null ? void 0 : pe.user) == null ? void 0 : Oe.data) == null ? void 0 : Pe.name
25950
25949
  };
25951
- }) : !1, y = F == null ? void 0 : F.user, z = typeof F.data.content == "string" ? (I = F == null ? void 0 : F.data) == null ? void 0 : I.content : (
25950
+ }) : !1, y = T == null ? void 0 : T.user, z = typeof T.data.content == "string" ? (I = T == null ? void 0 : T.data) == null ? void 0 : I.content : (
25952
25951
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25953
- ((te = (H = F == null ? void 0 : F.data) == null ? void 0 : H.content) == null ? void 0 : te.text) || ""
25952
+ ((te = (H = T == null ? void 0 : T.data) == null ? void 0 : H.content) == null ? void 0 : te.text) || ""
25954
25953
  );
25955
25954
  return /* @__PURE__ */ d.jsx(yC, { children: /* @__PURE__ */ d.jsx(
25956
25955
  ni,
@@ -25961,7 +25960,7 @@ const oE = ({
25961
25960
  type: "reply",
25962
25961
  body: z,
25963
25962
  canLike: r,
25964
- createdAt: F == null ? void 0 : F.created_at,
25963
+ createdAt: T == null ? void 0 : T.created_at,
25965
25964
  slugs: {
25966
25965
  question: `${e}/${t}`,
25967
25966
  answer: n,
@@ -26137,7 +26136,7 @@ const v_ = ({
26137
26136
  leave: u
26138
26137
  }
26139
26138
  }) => {
26140
- var N, $, M, w, B, T, R, P, W, ee;
26139
+ var N, $, M, w, B, F, R, P, W, ee;
26141
26140
  const c = ce(), {
26142
26141
  activity: h,
26143
26142
  error: p,
@@ -26157,7 +26156,7 @@ const v_ = ({
26157
26156
  text: c.formatMessage({ id: "activitySection_notFoundError" })
26158
26157
  }
26159
26158
  );
26160
- const { own_reactions: v, latest_reactions: C, mentioned_users: _ } = h, E = (((N = C == null ? void 0 : C.like) == null ? void 0 : N.length) || 0) > 0, x = ((($ = v == null ? void 0 : v.like) == null ? void 0 : $.length) || 0) > 0, A = x ? v == null ? void 0 : v.like[0].id : "", F = E ? (M = C == null ? void 0 : C.like) == null ? void 0 : M.map((Y) => {
26159
+ const { own_reactions: v, latest_reactions: C, mentioned_users: _ } = h, E = (((N = C == null ? void 0 : C.like) == null ? void 0 : N.length) || 0) > 0, x = ((($ = v == null ? void 0 : v.like) == null ? void 0 : $.length) || 0) > 0, A = x ? v == null ? void 0 : v.like[0].id : "", T = E ? (M = C == null ? void 0 : C.like) == null ? void 0 : M.map((Y) => {
26161
26160
  var y, z, X;
26162
26161
  return {
26163
26162
  id: (y = Y == null ? void 0 : Y.user) == null ? void 0 : y.id,
@@ -26185,7 +26184,7 @@ const v_ = ({
26185
26184
  id: L.id,
26186
26185
  name: (w = L.data) == null ? void 0 : w.name,
26187
26186
  organization: (B = L.data) == null ? void 0 : B.organization,
26188
- jobTitle: (T = L.data) == null ? void 0 : T.jobTitle,
26187
+ jobTitle: (F = L.data) == null ? void 0 : F.jobTitle,
26189
26188
  location: (R = L.data) == null ? void 0 : R.location,
26190
26189
  image: {
26191
26190
  thumbnail: ((P = L.data) == null ? void 0 : P.thumbnail) || void 0
@@ -26194,7 +26193,7 @@ const v_ = ({
26194
26193
  userLiked: x,
26195
26194
  likes: ((W = h == null ? void 0 : h.reaction_counts) == null ? void 0 : W.like) || 0,
26196
26195
  comments: ((ee = h == null ? void 0 : h.reaction_counts) == null ? void 0 : ee.reply) || 0,
26197
- peopleWhoLiked: F,
26196
+ peopleWhoLiked: T,
26198
26197
  mentions: _
26199
26198
  },
26200
26199
  originalAuthorId: L == null ? void 0 : L.id,