@apolitical/component-library 4.7.3 → 4.7.4-beta.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
@@ -1,4 +1,4 @@
1
- import re, { memo as Ut, useState as ce, useEffect as fe, useRef as ke, useMemo as qt, forwardRef as Ws, Children as ds, createContext as Et, useContext as Ve, useCallback as Re, useReducer as ur, useLayoutEffect as ah, Component as sh, Fragment as Pr, Suspense as oh, lazy as wc } from "react";
1
+ import re, { memo as Ut, useState as le, useEffect as fe, useRef as ke, useMemo as qt, forwardRef as Ws, Children as ds, createContext as Et, useContext as Ve, useCallback as Re, useReducer as ur, useLayoutEffect as ah, Component as sh, Fragment as Pr, Suspense as oh, lazy as wc } from "react";
2
2
  import { useIntl as ue, FormattedMessage as ft, IntlProvider as uh, createIntl as lh } from "react-intl";
3
3
  import _n from "lodash.clonedeep";
4
4
  import ch from "lodash.set";
@@ -139,7 +139,7 @@ function wh() {
139
139
  return typeof se == "function" ? se : null;
140
140
  }
141
141
  var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
142
- function w(j) {
142
+ function C(j) {
143
143
  {
144
144
  for (var se = arguments.length, de = new Array(se > 1 ? se - 1 : 0), Ce = 1; Ce < se; Ce++)
145
145
  de[Ce - 1] = arguments[Ce];
@@ -156,10 +156,10 @@ function wh() {
156
156
  Ue.unshift("Warning: " + se), Function.prototype.apply.call(console[j], console, Ue);
157
157
  }
158
158
  }
159
- var x = !1, C = !1, A = !1, T = !1, z = !1, $;
159
+ var x = !1, w = !1, A = !1, T = !1, z = !1, $;
160
160
  $ = Symbol.for("react.module.reference");
161
161
  function P(j) {
162
- return !!(typeof j == "string" || typeof j == "function" || j === r || j === a || z || j === i || j === u || j === c || T || j === m || x || C || 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 === a || z || j === i || j === u || j === c || T || j === m || x || w || 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.
@@ -178,7 +178,7 @@ function wh() {
178
178
  function B(j) {
179
179
  if (j == null)
180
180
  return null;
181
- if (typeof j.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof j == "function")
181
+ if (typeof j.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof j == "function")
182
182
  return j.displayName || j.name || null;
183
183
  if (typeof j == "string")
184
184
  return j;
@@ -279,7 +279,7 @@ function wh() {
279
279
  })
280
280
  });
281
281
  }
282
- R < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
282
+ R < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
283
283
  }
284
284
  }
285
285
  var N = v.ReactCurrentDispatcher, U;
@@ -298,8 +298,8 @@ function wh() {
298
298
  }
299
299
  var J = !1, te;
300
300
  {
301
- var le = typeof WeakMap == "function" ? WeakMap : Map;
302
- te = new le();
301
+ var ce = typeof WeakMap == "function" ? WeakMap : Map;
302
+ te = new ce();
303
303
  }
304
304
  function X(j, se) {
305
305
  if (!j || J)
@@ -431,7 +431,7 @@ function wh() {
431
431
  } catch (Xe) {
432
432
  Fe = Xe;
433
433
  }
434
- Fe && !(Fe instanceof Error) && (Pe(Me), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ce || "React class", de, Ne, typeof Fe), Pe(null)), Fe instanceof Error && !(Fe.message in je) && (je[Fe.message] = !0, Pe(Me), w("Failed %s type: %s", de, Fe.message), Pe(null));
434
+ Fe && !(Fe instanceof Error) && (Pe(Me), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ce || "React class", de, Ne, typeof Fe), Pe(null)), Fe instanceof Error && !(Fe.message in je) && (je[Fe.message] = !0, Pe(Me), C("Failed %s type: %s", de, Fe.message), Pe(null));
435
435
  }
436
436
  }
437
437
  }
@@ -457,7 +457,7 @@ function wh() {
457
457
  }
458
458
  function ae(j) {
459
459
  if (be(j))
460
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(j)), W(j);
460
+ return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(j)), W(j);
461
461
  }
462
462
  var ve = v.ReactCurrentOwner, ye = {
463
463
  key: !0,
@@ -485,13 +485,13 @@ function wh() {
485
485
  function St(j, se) {
486
486
  if (typeof j.ref == "string" && ve.current && se && ve.current.stateNode !== se) {
487
487
  var de = B(ve.current.type);
488
- tt[de] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(ve.current.type), j.ref), tt[de] = !0);
488
+ tt[de] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(ve.current.type), j.ref), tt[de] = !0);
489
489
  }
490
490
  }
491
491
  function it(j, se) {
492
492
  {
493
493
  var de = function() {
494
- _e || (_e = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", se));
494
+ _e || (_e = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", se));
495
495
  };
496
496
  de.isReactWarning = !0, Object.defineProperty(j, "key", {
497
497
  get: de,
@@ -502,7 +502,7 @@ function wh() {
502
502
  function Rt(j, se) {
503
503
  {
504
504
  var de = function() {
505
- Je || (Je = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", se));
505
+ Je || (Je = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", se));
506
506
  };
507
507
  de.isReactWarning = !0, Object.defineProperty(j, "ref", {
508
508
  get: de,
@@ -616,7 +616,7 @@ Check the top-level render call using <` + de + ">.");
616
616
  return;
617
617
  jo[de] = !0;
618
618
  var Ce = "";
619
- j && j._owner && j._owner !== hr.current && (Ce = " It was passed a child from " + B(j._owner.type) + "."), $n(j), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', de, Ce), $n(null);
619
+ j && j._owner && j._owner !== hr.current && (Ce = " It was passed a child from " + B(j._owner.type) + "."), $n(j), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', de, Ce), $n(null);
620
620
  }
621
621
  }
622
622
  function Po(j, se) {
@@ -658,9 +658,9 @@ Check the top-level render call using <` + de + ">.");
658
658
  } else if (se.PropTypes !== void 0 && !ca) {
659
659
  ca = !0;
660
660
  var Me = B(se);
661
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Me || "Unknown");
661
+ C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Me || "Unknown");
662
662
  }
663
- typeof se.getDefaultProps == "function" && !se.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
663
+ typeof se.getDefaultProps == "function" && !se.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
664
664
  }
665
665
  }
666
666
  function eh(j) {
@@ -668,11 +668,11 @@ Check the top-level render call using <` + de + ">.");
668
668
  for (var se = Object.keys(j.props), de = 0; de < se.length; de++) {
669
669
  var Ce = se[de];
670
670
  if (Ce !== "children" && Ce !== "key") {
671
- $n(j), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ce), $n(null);
671
+ $n(j), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ce), $n(null);
672
672
  break;
673
673
  }
674
674
  }
675
- j.ref !== null && ($n(j), w("Invalid attribute `ref` supplied to `React.Fragment`."), $n(null));
675
+ j.ref !== null && ($n(j), C("Invalid attribute `ref` supplied to `React.Fragment`."), $n(null));
676
676
  }
677
677
  }
678
678
  function No(j, se, de, Ce, Me, Ue) {
@@ -684,7 +684,7 @@ Check the top-level render call using <` + de + ">.");
684
684
  var ut = Qf(Me);
685
685
  ut ? Fe += ut : Fe += So();
686
686
  var Xe;
687
- j === null ? Xe = "null" : Ae(j) ? Xe = "array" : j !== void 0 && j.$$typeof === t ? (Xe = "<" + (B(j.type) || "Unknown") + " />", Fe = " Did you accidentally export a JSX literal instead of a component?") : Xe = typeof j, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Xe, Fe);
687
+ j === null ? Xe = "null" : Ae(j) ? Xe = "array" : j !== void 0 && j.$$typeof === t ? (Xe = "<" + (B(j.type) || "Unknown") + " />", Fe = " Did you accidentally export a JSX literal instead of a component?") : Xe = typeof j, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Xe, Fe);
688
688
  }
689
689
  var et = la(j, se, de, Me, Ue);
690
690
  if (et == null)
@@ -698,7 +698,7 @@ Check the top-level render call using <` + de + ">.");
698
698
  Po(kt[In], j);
699
699
  Object.freeze && Object.freeze(kt);
700
700
  } else
701
- w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
701
+ C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
702
702
  else
703
703
  Po(kt, j);
704
704
  }
@@ -718,7 +718,7 @@ Check the top-level render call using <` + de + ">.");
718
718
  process.env.NODE_ENV === "production" ? hs.exports = xh() : hs.exports = wh();
719
719
  var d = hs.exports;
720
720
  const Ch = () => {
721
- const [e, t] = ce(window.location.pathname), n = () => {
721
+ const [e, t] = le(window.location.pathname), n = () => {
722
722
  const r = window.location.pathname;
723
723
  t(r);
724
724
  };
@@ -738,7 +738,7 @@ function Fc(e, t, n) {
738
738
  if (typeof e != "function")
739
739
  throw new TypeError("Expected a function");
740
740
  t = +t || 0;
741
- var g = !!(n = n || {}).leading, f = !("trailing" in n) || !!n.trailing, b = "maxWait" in n, v = "debounceOnServer" in n && !!n.debounceOnServer, w = b ? Math.max(+n.maxWait || 0, t) : null;
741
+ var g = !!(n = n || {}).leading, f = !("trailing" in n) || !!n.trailing, b = "maxWait" in n, v = "debounceOnServer" in n && !!n.debounceOnServer, C = b ? Math.max(+n.maxWait || 0, t) : null;
742
742
  fe(function() {
743
743
  return h.current = !0, function() {
744
744
  h.current = !1;
@@ -748,13 +748,13 @@ function Fc(e, t, n) {
748
748
  var x = function(P) {
749
749
  var I = o.current, E = l.current;
750
750
  return o.current = l.current = null, a.current = P, u.current = c.current.apply(E, I);
751
- }, C = function(P, I) {
751
+ }, w = function(P, I) {
752
752
  m && cancelAnimationFrame(s.current), s.current = m ? requestAnimationFrame(P) : setTimeout(P, I);
753
753
  }, A = function(P) {
754
754
  if (!h.current)
755
755
  return !1;
756
756
  var I = P - i.current;
757
- return !i.current || I >= t || I < 0 || b && P - a.current >= w;
757
+ return !i.current || I >= t || I < 0 || b && P - a.current >= C;
758
758
  }, T = function(P) {
759
759
  return s.current = null, f && o.current ? x(P) : (o.current = l.current = null, u.current);
760
760
  }, z = function P() {
@@ -762,19 +762,19 @@ function Fc(e, t, n) {
762
762
  if (A(I))
763
763
  return T(I);
764
764
  if (h.current) {
765
- var E = t - (I - i.current), B = b ? Math.min(E, w - (I - a.current)) : E;
766
- C(P, B);
765
+ var E = t - (I - i.current), B = b ? Math.min(E, C - (I - a.current)) : E;
766
+ w(P, B);
767
767
  }
768
768
  }, $ = function() {
769
769
  if (p || v) {
770
770
  var P = Date.now(), I = A(P);
771
771
  if (o.current = [].slice.call(arguments), l.current = r, i.current = P, I) {
772
772
  if (!s.current && h.current)
773
- return a.current = i.current, C(z, t), g ? x(i.current) : u.current;
773
+ return a.current = i.current, w(z, t), g ? x(i.current) : u.current;
774
774
  if (b)
775
- return C(z, t), x(i.current);
775
+ return w(z, t), x(i.current);
776
776
  }
777
- return s.current || C(z, t), u.current;
777
+ return s.current || w(z, t), u.current;
778
778
  }
779
779
  };
780
780
  return $.cancel = function() {
@@ -784,7 +784,7 @@ function Fc(e, t, n) {
784
784
  }, $.flush = function() {
785
785
  return s.current ? T(Date.now()) : u.current;
786
786
  }, $;
787
- }, [g, b, t, w, f, m, p, v]);
787
+ }, [g, b, t, C, f, m, p, v]);
788
788
  return _;
789
789
  }
790
790
  function Tc(e, t, n) {
@@ -866,7 +866,7 @@ const Ur = (e = !0, t = !1, n = "window") => {
866
866
  }, jc = (e = !1) => {
867
867
  if (!e)
868
868
  return { showTooltip: !1, tooltipProps: {} };
869
- const [t, n] = ce(!1);
869
+ const [t, n] = le(!1);
870
870
  return {
871
871
  showTooltip: t,
872
872
  tooltipProps: {
@@ -890,7 +890,7 @@ const Io = {}, lr = Ws(
890
890
  callbacks: o = {},
891
891
  ...l
892
892
  }, u) => {
893
- const c = ue(), h = ke(null), p = u || h, [m, g] = ce(n ? "open" : "hidden"), { extraPadding: f = !0, hasPointer: b = !1, hasForm: v = !1 } = t, { onOpen: w = () => {
893
+ const c = ue(), h = ke(null), p = u || h, [m, g] = le(n ? "open" : "hidden"), { extraPadding: f = !0, hasPointer: b = !1, hasForm: v = !1 } = t, { onOpen: C = () => {
894
894
  }, onClose: _ = () => {
895
895
  } } = o;
896
896
  e || (e = Date.now().toString());
@@ -898,12 +898,12 @@ const Io = {}, lr = Ws(
898
898
  fe(() => {
899
899
  const z = p == null ? void 0 : p.current;
900
900
  if (z)
901
- return z.addEventListener("transitionend", C), z.addEventListener("keydown", A), () => {
902
- z.removeEventListener("transitionend", C), z.removeEventListener("keydown", A);
901
+ return z.addEventListener("transitionend", w), z.addEventListener("keydown", A), () => {
902
+ z.removeEventListener("transitionend", w), z.removeEventListener("keydown", A);
903
903
  };
904
904
  }, []);
905
- const C = ({ propertyName: z }) => {
906
- z === "opacity" && (x !== !1 && clearTimeout(x), g(($) => ($ === "open" ? w() : $ === "closed" && _(), $ === "opening" ? "open" : $ === "closing" ? "closed" : $ === "closed" ? "hidden" : $)));
905
+ const w = ({ propertyName: z }) => {
906
+ z === "opacity" && (x !== !1 && clearTimeout(x), g(($) => ($ === "open" ? C() : $ === "closed" && _(), $ === "opening" ? "open" : $ === "closing" ? "closed" : $ === "closed" ? "hidden" : $)));
907
907
  }, A = (z) => {
908
908
  z.key === "Escape" && (z.stopPropagation(), z.preventDefault(), g("closing"));
909
909
  };
@@ -1281,6 +1281,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1281
1281
  profileForm_organization_placeholder: "Where do you work?",
1282
1282
  profileForm_location: "Location",
1283
1283
  profileForm_location_placeholder: "Add your city",
1284
+ profileForm_location_error: "Please choose a location from the list.",
1284
1285
  profileForm_bio: "Bio",
1285
1286
  profileForm_bio_placeholder: "Tell us more about yourself...",
1286
1287
  profileForm_cta: "Save",
@@ -1636,13 +1637,13 @@ const Te = ({
1636
1637
  }) => {
1637
1638
  const g = Ur(typeof t == "object"), { showTooltip: f, tooltipProps: b } = jc(!!u);
1638
1639
  if (typeof t == "object" && typeof g == "number") {
1639
- const x = Object.assign({}, t), C = Oc(Object.keys(x));
1640
- t = Pc(g, C, x);
1640
+ const x = Object.assign({}, t), w = Oc(Object.keys(x));
1641
+ t = Pc(g, w, x);
1641
1642
  }
1642
1643
  !l && u && (u = "");
1643
1644
  const v = [];
1644
1645
  typeof t == "string" && v.push(t), r && (v.push("icon"), typeof r == "object" ? (v.push(r.icon), r.position ? v.push(r.position) : v.push("left"), r.hover && v.push(`hover_${r.hover}`), r.animate && (v.push("animate"), typeof r.animate == "string" && v.push(r.animate))) : (v.push(r), !r.includes("right") && !r.includes("left") && v.push("left"))), n.muted && v.push("muted"), n.fullWidth && v.push("full-width");
1645
- const w = {
1646
+ const C = {
1646
1647
  ...p,
1647
1648
  className: Z(e, o, v, {
1648
1649
  "no-text": !h,
@@ -1654,10 +1655,10 @@ const Te = ({
1654
1655
  },
1655
1656
  disabled: typeof l == "object" && "isClickable" in l ? !l.isClickable : l
1656
1657
  };
1657
- i && (a = "a", w.href = i);
1658
+ i && (a = "a", C.href = i);
1658
1659
  const _ = re.createElement(
1659
1660
  a,
1660
- w,
1661
+ C,
1661
1662
  h || (c ? /* @__PURE__ */ d.jsx(We, { showOnFocus: !1, children: c }) : null)
1662
1663
  );
1663
1664
  return l && u ? /* @__PURE__ */ d.jsxs("span", { className: "button-container", ...b, children: [
@@ -2151,7 +2152,7 @@ const Gh = ({
2151
2152
  }) => {
2152
2153
  const o = ue(), l = ke(null);
2153
2154
  e || (e = Date.now().toString());
2154
- const [u, c] = ce(""), [h, p] = ce("closed");
2155
+ const [u, c] = le(""), [h, p] = le("closed");
2155
2156
  fe(() => {
2156
2157
  const f = l.current;
2157
2158
  if (f)
@@ -2588,7 +2589,7 @@ const Go = 256, vn = ({
2588
2589
  showInitials: s = !0,
2589
2590
  ...o
2590
2591
  }) => {
2591
- const [l, u] = ce(!1), c = ke(null), h = r ?? n;
2592
+ const [l, u] = le(!1), c = ke(null), h = r ?? n;
2592
2593
  fe(() => {
2593
2594
  const m = c.current;
2594
2595
  if (!m)
@@ -2674,8 +2675,8 @@ const nr = ({
2674
2675
  href: g,
2675
2676
  gtmType: s,
2676
2677
  gtmContext: a,
2677
- onClick: (w) => {
2678
- w == null || w.preventDefault(), w == null || w.stopPropagation(), Jr && clearTimeout(Jr), Jr = setTimeout(() => {
2678
+ onClick: (C) => {
2679
+ C == null || C.preventDefault(), C == null || C.stopPropagation(), Jr && clearTimeout(Jr), Jr = setTimeout(() => {
2679
2680
  window.location.href = g;
2680
2681
  }, 150);
2681
2682
  const _ = new CustomEvent(Gt.MEMBER_CLICKED, {
@@ -2778,28 +2779,28 @@ function cm() {
2778
2779
  if (Jo)
2779
2780
  return Le;
2780
2781
  Jo = 1;
2781
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
2782
- function _(C) {
2783
- if (typeof C == "object" && C !== null) {
2784
- var A = C.$$typeof;
2782
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
2783
+ function _(w) {
2784
+ if (typeof w == "object" && w !== null) {
2785
+ var A = w.$$typeof;
2785
2786
  switch (A) {
2786
2787
  case t:
2787
- switch (C = C.type, C) {
2788
+ switch (w = w.type, w) {
2788
2789
  case l:
2789
2790
  case u:
2790
2791
  case r:
2791
2792
  case a:
2792
2793
  case i:
2793
2794
  case h:
2794
- return C;
2795
+ return w;
2795
2796
  default:
2796
- switch (C = C && C.$$typeof, C) {
2797
+ switch (w = w && w.$$typeof, w) {
2797
2798
  case o:
2798
2799
  case c:
2799
2800
  case g:
2800
2801
  case m:
2801
2802
  case s:
2802
- return C;
2803
+ return w;
2803
2804
  default:
2804
2805
  return A;
2805
2806
  }
@@ -2809,35 +2810,35 @@ function cm() {
2809
2810
  }
2810
2811
  }
2811
2812
  }
2812
- function x(C) {
2813
- return _(C) === u;
2814
- }
2815
- return Le.AsyncMode = l, Le.ConcurrentMode = u, Le.ContextConsumer = o, Le.ContextProvider = s, Le.Element = t, Le.ForwardRef = c, Le.Fragment = r, Le.Lazy = g, Le.Memo = m, Le.Portal = n, Le.Profiler = a, Le.StrictMode = i, Le.Suspense = h, Le.isAsyncMode = function(C) {
2816
- return x(C) || _(C) === l;
2817
- }, Le.isConcurrentMode = x, Le.isContextConsumer = function(C) {
2818
- return _(C) === o;
2819
- }, Le.isContextProvider = function(C) {
2820
- return _(C) === s;
2821
- }, Le.isElement = function(C) {
2822
- return typeof C == "object" && C !== null && C.$$typeof === t;
2823
- }, Le.isForwardRef = function(C) {
2824
- return _(C) === c;
2825
- }, Le.isFragment = function(C) {
2826
- return _(C) === r;
2827
- }, Le.isLazy = function(C) {
2828
- return _(C) === g;
2829
- }, Le.isMemo = function(C) {
2830
- return _(C) === m;
2831
- }, Le.isPortal = function(C) {
2832
- return _(C) === n;
2833
- }, Le.isProfiler = function(C) {
2834
- return _(C) === a;
2835
- }, Le.isStrictMode = function(C) {
2836
- return _(C) === i;
2837
- }, Le.isSuspense = function(C) {
2838
- return _(C) === h;
2839
- }, Le.isValidElementType = function(C) {
2840
- return typeof C == "string" || typeof C == "function" || C === r || C === u || C === a || C === i || C === h || C === p || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof === m || C.$$typeof === s || C.$$typeof === o || C.$$typeof === c || C.$$typeof === b || C.$$typeof === v || C.$$typeof === w || C.$$typeof === f);
2813
+ function x(w) {
2814
+ return _(w) === u;
2815
+ }
2816
+ return Le.AsyncMode = l, Le.ConcurrentMode = u, Le.ContextConsumer = o, Le.ContextProvider = s, Le.Element = t, Le.ForwardRef = c, Le.Fragment = r, Le.Lazy = g, Le.Memo = m, Le.Portal = n, Le.Profiler = a, Le.StrictMode = i, Le.Suspense = h, Le.isAsyncMode = function(w) {
2817
+ return x(w) || _(w) === l;
2818
+ }, Le.isConcurrentMode = x, Le.isContextConsumer = function(w) {
2819
+ return _(w) === o;
2820
+ }, Le.isContextProvider = function(w) {
2821
+ return _(w) === s;
2822
+ }, Le.isElement = function(w) {
2823
+ return typeof w == "object" && w !== null && w.$$typeof === t;
2824
+ }, Le.isForwardRef = function(w) {
2825
+ return _(w) === c;
2826
+ }, Le.isFragment = function(w) {
2827
+ return _(w) === r;
2828
+ }, Le.isLazy = function(w) {
2829
+ return _(w) === g;
2830
+ }, Le.isMemo = function(w) {
2831
+ return _(w) === m;
2832
+ }, Le.isPortal = function(w) {
2833
+ return _(w) === n;
2834
+ }, Le.isProfiler = function(w) {
2835
+ return _(w) === a;
2836
+ }, Le.isStrictMode = function(w) {
2837
+ return _(w) === i;
2838
+ }, Le.isSuspense = function(w) {
2839
+ return _(w) === h;
2840
+ }, Le.isValidElementType = function(w) {
2841
+ return typeof w == "string" || typeof w == "function" || w === r || w === u || w === a || w === i || w === h || w === p || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === m || w.$$typeof === s || w.$$typeof === o || w.$$typeof === c || w.$$typeof === b || w.$$typeof === v || w.$$typeof === C || w.$$typeof === f);
2841
2842
  }, Le.typeOf = _, Le;
2842
2843
  }
2843
2844
  var ze = {};
@@ -2852,10 +2853,10 @@ var ze = {};
2852
2853
  var Xo;
2853
2854
  function dm() {
2854
2855
  return Xo || (Xo = 1, process.env.NODE_ENV !== "production" && function() {
2855
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
2856
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
2856
2857
  function _(X) {
2857
2858
  return typeof X == "string" || typeof X == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2858
- X === r || X === u || X === a || X === i || X === h || X === p || typeof X == "object" && X !== null && (X.$$typeof === g || X.$$typeof === m || X.$$typeof === s || X.$$typeof === o || X.$$typeof === c || X.$$typeof === b || X.$$typeof === v || X.$$typeof === w || X.$$typeof === f);
2859
+ X === r || X === u || X === a || X === i || X === h || X === p || typeof X == "object" && X !== null && (X.$$typeof === g || X.$$typeof === m || X.$$typeof === s || X.$$typeof === o || X.$$typeof === c || X.$$typeof === b || X.$$typeof === v || X.$$typeof === C || X.$$typeof === f);
2859
2860
  }
2860
2861
  function x(X) {
2861
2862
  if (typeof X == "object" && X !== null) {
@@ -2889,7 +2890,7 @@ function dm() {
2889
2890
  }
2890
2891
  }
2891
2892
  }
2892
- var C = l, A = u, T = o, z = s, $ = t, P = c, I = r, E = g, B = m, S = n, R = a, Y = i, H = h, G = !1;
2893
+ var w = l, A = u, T = o, z = s, $ = t, P = c, I = r, E = g, B = m, S = n, R = a, Y = i, H = h, G = !1;
2893
2894
  function ie(X) {
2894
2895
  return G || (G = !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.")), D(X) || x(X) === l;
2895
2896
  }
@@ -2926,10 +2927,10 @@ function dm() {
2926
2927
  function te(X) {
2927
2928
  return x(X) === i;
2928
2929
  }
2929
- function le(X) {
2930
+ function ce(X) {
2930
2931
  return x(X) === h;
2931
2932
  }
2932
- ze.AsyncMode = C, ze.ConcurrentMode = A, ze.ContextConsumer = T, ze.ContextProvider = z, ze.Element = $, ze.ForwardRef = P, ze.Fragment = I, ze.Lazy = E, ze.Memo = B, ze.Portal = S, ze.Profiler = R, ze.StrictMode = Y, ze.Suspense = H, ze.isAsyncMode = ie, ze.isConcurrentMode = D, ze.isContextConsumer = M, ze.isContextProvider = q, ze.isElement = k, ze.isForwardRef = F, ze.isFragment = L, ze.isLazy = N, ze.isMemo = U, ze.isPortal = ne, ze.isProfiler = J, ze.isStrictMode = te, ze.isSuspense = le, ze.isValidElementType = _, ze.typeOf = x;
2933
+ ze.AsyncMode = w, ze.ConcurrentMode = A, ze.ContextConsumer = T, ze.ContextProvider = z, ze.Element = $, ze.ForwardRef = P, ze.Fragment = I, ze.Lazy = E, ze.Memo = B, ze.Portal = S, ze.Profiler = R, ze.StrictMode = Y, ze.Suspense = H, ze.isAsyncMode = ie, ze.isConcurrentMode = D, ze.isContextConsumer = M, ze.isContextProvider = q, ze.isElement = k, ze.isForwardRef = F, ze.isFragment = L, ze.isLazy = N, ze.isMemo = U, ze.isPortal = ne, ze.isProfiler = J, ze.isStrictMode = te, ze.isSuspense = ce, ze.isValidElementType = _, ze.typeOf = x;
2933
2934
  }()), ze;
2934
2935
  }
2935
2936
  var eu;
@@ -3084,10 +3085,10 @@ function mm() {
3084
3085
  object: v("object"),
3085
3086
  string: v("string"),
3086
3087
  symbol: v("symbol"),
3087
- any: w(),
3088
+ any: C(),
3088
3089
  arrayOf: _,
3089
3090
  element: x(),
3090
- elementType: C(),
3091
+ elementType: w(),
3091
3092
  instanceOf: A,
3092
3093
  node: P(),
3093
3094
  objectOf: z,
@@ -3106,8 +3107,8 @@ function mm() {
3106
3107
  function b(D) {
3107
3108
  if (process.env.NODE_ENV !== "production")
3108
3109
  var M = {}, q = 0;
3109
- function k(L, N, U, ne, J, te, le) {
3110
- if (ne = ne || p, te = te || U, le !== n) {
3110
+ function k(L, N, U, ne, J, te, ce) {
3111
+ if (ne = ne || p, te = te || U, ce !== n) {
3111
3112
  if (l) {
3112
3113
  var X = new Error(
3113
3114
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -3140,7 +3141,7 @@ function mm() {
3140
3141
  }
3141
3142
  return b(M);
3142
3143
  }
3143
- function w() {
3144
+ function C() {
3144
3145
  return b(s);
3145
3146
  }
3146
3147
  function _(D) {
@@ -3172,7 +3173,7 @@ function mm() {
3172
3173
  }
3173
3174
  return b(D);
3174
3175
  }
3175
- function C() {
3176
+ function w() {
3176
3177
  function D(M, q, k, F, L) {
3177
3178
  var N = M[q];
3178
3179
  if (!e.isValidElementType(N)) {
@@ -3202,7 +3203,7 @@ function mm() {
3202
3203
  for (var U = q[k], ne = 0; ne < D.length; ne++)
3203
3204
  if (g(U, D[ne]))
3204
3205
  return null;
3205
- var J = JSON.stringify(D, function(le, X) {
3206
+ var J = JSON.stringify(D, function(ce, X) {
3206
3207
  var pe = H(X);
3207
3208
  return pe === "symbol" ? String(X) : X;
3208
3209
  });
@@ -3239,7 +3240,7 @@ function mm() {
3239
3240
  }
3240
3241
  function k(F, L, N, U, ne) {
3241
3242
  for (var J = [], te = 0; te < D.length; te++) {
3242
- var le = D[te], X = le(F, L, N, U, ne, n);
3243
+ var ce = D[te], X = ce(F, L, N, U, ne, n);
3243
3244
  if (X == null)
3244
3245
  return null;
3245
3246
  X.data && r(X.data, "expectedType") && J.push(X.data.expectedType);
@@ -3269,9 +3270,9 @@ function mm() {
3269
3270
  var te = D[J];
3270
3271
  if (typeof te != "function")
3271
3272
  return I(F, L, N, J, H(te));
3272
- var le = te(U, J, F, L, N + "." + J, n);
3273
- if (le)
3274
- return le;
3273
+ var ce = te(U, J, F, L, N + "." + J, n);
3274
+ if (ce)
3275
+ return ce;
3275
3276
  }
3276
3277
  return null;
3277
3278
  }
@@ -3284,15 +3285,15 @@ function mm() {
3284
3285
  return new f("Invalid " + L + " `" + N + "` of type `" + ne + "` " + ("supplied to `" + F + "`, expected `object`."));
3285
3286
  var J = t({}, q[k], D);
3286
3287
  for (var te in J) {
3287
- var le = D[te];
3288
- if (r(D, te) && typeof le != "function")
3289
- return I(F, L, N, te, H(le));
3290
- if (!le)
3288
+ var ce = D[te];
3289
+ if (r(D, te) && typeof ce != "function")
3290
+ return I(F, L, N, te, H(ce));
3291
+ if (!ce)
3291
3292
  return new f(
3292
3293
  "Invalid " + L + " `" + N + "` key `" + te + "` supplied to `" + F + "`.\nBad object: " + JSON.stringify(q[k], null, " ") + `
3293
3294
  Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
3294
3295
  );
3295
- var X = le(U, te, F, L, N + "." + te, n);
3296
+ var X = ce(U, te, F, L, N + "." + te, n);
3296
3297
  if (X)
3297
3298
  return X;
3298
3299
  }
@@ -3923,7 +3924,7 @@ var cu = {
3923
3924
  }
3924
3925
  gr(a.allowOutsideClick, E) || E.preventDefault();
3925
3926
  }
3926
- }, w = function(E) {
3927
+ }, C = function(E) {
3927
3928
  var B = ei(E), S = u(B, E) >= 0;
3928
3929
  if (S || B instanceof Document)
3929
3930
  S && (s.mostRecentlyFocusedNode = B);
@@ -3969,20 +3970,20 @@ var cu = {
3969
3970
  return;
3970
3971
  }
3971
3972
  (a.isKeyForward(E) || a.isKeyBackward(E)) && _(E, a.isKeyBackward(E));
3972
- }, C = function(E) {
3973
+ }, w = function(E) {
3973
3974
  var B = ei(E);
3974
3975
  u(B, E) >= 0 || gr(a.clickOutsideDeactivates, E) || gr(a.allowOutsideClick, E) || (E.preventDefault(), E.stopImmediatePropagation());
3975
3976
  }, A = function() {
3976
3977
  if (s.active)
3977
3978
  return cu.activateTrap(i, o), s.delayInitialFocusTimer = a.delayInitialFocus ? du(function() {
3978
3979
  g(h());
3979
- }) : g(h()), r.addEventListener("focusin", w, !0), r.addEventListener("mousedown", v, {
3980
+ }) : g(h()), r.addEventListener("focusin", C, !0), r.addEventListener("mousedown", v, {
3980
3981
  capture: !0,
3981
3982
  passive: !1
3982
3983
  }), r.addEventListener("touchstart", v, {
3983
3984
  capture: !0,
3984
3985
  passive: !1
3985
- }), r.addEventListener("click", C, {
3986
+ }), r.addEventListener("click", w, {
3986
3987
  capture: !0,
3987
3988
  passive: !1
3988
3989
  }), r.addEventListener("keydown", x, {
@@ -3991,7 +3992,7 @@ var cu = {
3991
3992
  }), o;
3992
3993
  }, T = function() {
3993
3994
  if (s.active)
3994
- return r.removeEventListener("focusin", w, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", C, !0), r.removeEventListener("keydown", x, !0), o;
3995
+ return r.removeEventListener("focusin", C, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown", x, !0), o;
3995
3996
  }, z = function(E) {
3996
3997
  var B = E.some(function(S) {
3997
3998
  var R = Array.from(S.removedNodes);
@@ -4430,7 +4431,7 @@ var lp = function() {
4430
4431
  return e;
4431
4432
  };
4432
4433
  function cp(e) {
4433
- var t = lp(), n = ce(), r = n[0], i = n[1];
4434
+ var t = lp(), n = le(), r = n[0], i = n[1];
4434
4435
  return fe(function() {
4435
4436
  return t.onFeatureFlags(function() {
4436
4437
  i(t.getFeatureFlagPayload(e));
@@ -4479,7 +4480,7 @@ const hp = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ d.jsx
4479
4480
  unregisterOverlay: () => {
4480
4481
  }
4481
4482
  }), mp = () => Ve(sd), pp = ({ children: e }) => {
4482
- const [t, n] = ce([]);
4483
+ const [t, n] = le([]);
4483
4484
  fe(() => {
4484
4485
  t.length > 0 ? document.body.classList.add("has-overlay") : document.body.classList.remove("has-overlay");
4485
4486
  }, [t]);
@@ -4490,7 +4491,7 @@ const hp = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ d.jsx
4490
4491
  }, []);
4491
4492
  return /* @__PURE__ */ d.jsx(sd.Provider, { value: { registerOverlay: r, unregisterOverlay: i }, children: e });
4492
4493
  }, l_ = ({ bootstrap: e, children: t, intl: n, showDevTools: r }) => {
4493
- const [i, a] = ce({ isLoading: !0 }), s = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [o, l] = ce(s), u = (c) => {
4494
+ const [i, a] = le({ isLoading: !0 }), s = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [o, l] = le(s), u = (c) => {
4494
4495
  localStorage.setItem("language", c), l(c);
4495
4496
  };
4496
4497
  return fe(() => {
@@ -4523,17 +4524,17 @@ const Nn = ({
4523
4524
  className: c = "",
4524
4525
  gtmContext: h = "Modal"
4525
4526
  }) => {
4526
- const p = ue(), { registerOverlay: m, unregisterOverlay: g } = mp(), [f, b] = ce(t), v = ke(null), w = (C) => {
4527
- C.key === "Escape" && _(!1);
4527
+ const p = ue(), { registerOverlay: m, unregisterOverlay: g } = mp(), [f, b] = le(t), v = ke(null), C = (w) => {
4528
+ w.key === "Escape" && _(!1);
4528
4529
  };
4529
- fe(() => (window.addEventListener("keyup", w), () => {
4530
- window.removeEventListener("keyup", w);
4530
+ fe(() => (window.addEventListener("keyup", C), () => {
4531
+ window.removeEventListener("keyup", C);
4531
4532
  }));
4532
- const _ = (C) => {
4533
- if (b(C), C)
4533
+ const _ = (w) => {
4534
+ if (b(w), w)
4534
4535
  i(), m(e);
4535
4536
  else {
4536
- if (f === C)
4537
+ if (f === w)
4537
4538
  return;
4538
4539
  a(), g(e);
4539
4540
  }
@@ -4552,8 +4553,8 @@ const Nn = ({
4552
4553
  "in-portal": c.includes("in-portal")
4553
4554
  }),
4554
4555
  role: "dialog",
4555
- onClick: (C) => {
4556
- C.currentTarget === C.target && (C.preventDefault(), C.stopPropagation(), _(!1));
4556
+ onClick: (w) => {
4557
+ w.currentTarget === w.target && (w.preventDefault(), w.stopPropagation(), _(!1));
4557
4558
  },
4558
4559
  children: /* @__PURE__ */ d.jsx(
4559
4560
  Hc,
@@ -4607,7 +4608,7 @@ const br = "joinCommunityButton", od = ({
4607
4608
  }, leave: () => {
4608
4609
  } }
4609
4610
  }) => {
4610
- const s = ue(), o = Ve(Ht), l = o && typeof o.id == "string", u = r || !l, [c, h] = ce(e), [p, m] = ce(e ? "joined" : "notJoined");
4611
+ const s = ue(), o = Ve(Ht), l = o && typeof o.id == "string", u = r || !l, [c, h] = le(e), [p, m] = le(e ? "joined" : "notJoined");
4611
4612
  fe(() => {
4612
4613
  p === "joining" ? m("joined") : p === "leaving" && m("notJoined");
4613
4614
  }, [c]);
@@ -4633,9 +4634,9 @@ const br = "joinCommunityButton", od = ({
4633
4634
  }
4634
4635
  });
4635
4636
  document.dispatchEvent(v);
4636
- const w = c ? a : i;
4637
- typeof w == "function" && setTimeout(async () => {
4638
- await w();
4637
+ const C = c ? a : i;
4638
+ typeof C == "function" && setTimeout(async () => {
4639
+ await C();
4639
4640
  }, 500), h(!c);
4640
4641
  },
4641
4642
  className: Z("join-community-button", p, {
@@ -4746,7 +4747,7 @@ const f_ = ({
4746
4747
  text: typeof t != "boolean" && t.text || a.formatMessage({ id: "filters_all" })
4747
4748
  },
4748
4749
  ...e
4749
- ] : e, [o, l] = ce(t ? ["all"] : []), u = (c, h) => {
4750
+ ] : e, [o, l] = le(t ? ["all"] : []), u = (c, h) => {
4750
4751
  let p = [];
4751
4752
  o.includes(c) ? p = o.filter((m) => m !== c) : c === "all" ? p = ["all"] : n ? p = [...o.filter((m) => m !== "all"), c] : p = [c], l((m) => (r && typeof r == "function" && r({ current: p, previous: m }), p)), h && typeof h == "function" && h();
4752
4753
  };
@@ -4792,7 +4793,7 @@ const ni = "languageSwitcher_", h_ = ({
4792
4793
  className: l = ""
4793
4794
  }) => {
4794
4795
  const u = ue(), { updateLanguage: c = () => {
4795
- } } = Ve(ad), [h, p] = ce(e);
4796
+ } } = Ve(ad), [h, p] = le(e);
4796
4797
  if (fe(() => {
4797
4798
  e !== h && p(e);
4798
4799
  }, [e]), !r || !Object.values(r).some(
@@ -4808,26 +4809,26 @@ const ni = "languageSwitcher_", h_ = ({
4808
4809
  if (!xa[b])
4809
4810
  return null;
4810
4811
  const v = (_ = r[b]) == null ? void 0 : _.post_name;
4811
- let w = { className: b };
4812
+ let C = { className: b };
4812
4813
  if (h === b)
4813
- w["aria-label"] = u.formatMessage(
4814
+ C["aria-label"] = u.formatMessage(
4814
4815
  { id: `${ni}selected` },
4815
4816
  { language: xa[b] }
4816
4817
  );
4817
4818
  else {
4818
4819
  const x = vp(b, v, a);
4819
- w = {
4820
- ...w,
4820
+ C = {
4821
+ ...C,
4821
4822
  href: typeof x == "string" ? x : x.url,
4822
- onClick: (C) => {
4823
- p(b), c(b), typeof i < "u" && (C.preventDefault(), C.stopPropagation(), i(
4823
+ onClick: (w) => {
4824
+ p(b), c(b), typeof i < "u" && (w.preventDefault(), w.stopPropagation(), i(
4824
4825
  b,
4825
4826
  typeof x == "string" ? x : x.urlForRouter
4826
4827
  ));
4827
4828
  }
4828
4829
  };
4829
4830
  }
4830
- return /* @__PURE__ */ d.jsx("li", { children: /* @__PURE__ */ d.jsx(dr, { ...w, fallbackElement: "span", children: xa[b] }) }, b);
4831
+ return /* @__PURE__ */ d.jsx("li", { children: /* @__PURE__ */ d.jsx(dr, { ...C, fallbackElement: "span", children: xa[b] }) }, b);
4831
4832
  }) }),
4832
4833
  s !== "short" && !f && /* @__PURE__ */ d.jsx("p", { children: u.formatMessage({
4833
4834
  id: `${ni}translation_${t ? "original" : n ? "human" : "machine"}`
@@ -4867,7 +4868,7 @@ const Ca = lh({ locale: "en", messages: cr }), Xi = ({
4867
4868
  className: l = "",
4868
4869
  gtmContext: u = "LoadMore"
4869
4870
  }) => {
4870
- const [c, h] = ce(""), p = async (m) => {
4871
+ const [c, h] = le(""), p = async (m) => {
4871
4872
  if (!n)
4872
4873
  try {
4873
4874
  await t(m);
@@ -4915,7 +4916,7 @@ const bp = ({
4915
4916
  }) => {
4916
4917
  const i = ue(), a = ke(
4917
4918
  null
4918
- ), [s, o] = ce(!1), l = (u) => {
4919
+ ), [s, o] = le(!1), l = (u) => {
4919
4920
  a.current && u.target instanceof HTMLElement && !a.current.contains(u.target) && o(!1);
4920
4921
  };
4921
4922
  return fe(() => (document.addEventListener("click", l, !0), () => {
@@ -5118,9 +5119,9 @@ const p_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5118
5119
  }
5119
5120
  }
5120
5121
  }
5121
- const [a, s] = ce(
5122
+ const [a, s] = le(
5122
5123
  (p = e[i]) != null && p.id ? e[i].id : r(e[i].id, e[i].text, i)
5123
- ), [o, l] = ce(""), u = (m, g) => {
5124
+ ), [o, l] = le(""), u = (m, g) => {
5124
5125
  switch (m.key) {
5125
5126
  case "ArrowLeft":
5126
5127
  case "ArrowRight": {
@@ -5145,11 +5146,11 @@ const p_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5145
5146
  }
5146
5147
  }, [a]);
5147
5148
  const c = [], h = [];
5148
- return e.forEach(({ id: m, text: g, content: f, href: b, hasCarousel: v }, w) => {
5149
- m = r(m, g, w);
5149
+ return e.forEach(({ id: m, text: g, content: f, href: b, hasCarousel: v }, C) => {
5150
+ m = r(m, g, C);
5150
5151
  const _ = a === m, x = {};
5151
- b || (x["aria-controls"] = m, x.onClick = (C) => {
5152
- C.preventDefault(), C.stopPropagation(), s(m), !n && (window.location.hash = `#${m}`);
5152
+ b || (x["aria-controls"] = m, x.onClick = (w) => {
5153
+ w.preventDefault(), w.stopPropagation(), s(m), !n && (window.location.hash = `#${m}`);
5153
5154
  }, h.push(
5154
5155
  /* @__PURE__ */ d.jsx(
5155
5156
  "section",
@@ -5174,7 +5175,7 @@ const p_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5174
5175
  role: "tab",
5175
5176
  tabIndex: _ ? 0 : -1,
5176
5177
  "aria-selected": _,
5177
- onKeyDown: (C) => u(C, w),
5178
+ onKeyDown: (w) => u(w, C),
5178
5179
  ...x,
5179
5180
  children: g
5180
5181
  }
@@ -5260,13 +5261,13 @@ const ii = "emailHelperTextBox_", Bp = ({
5260
5261
  redirectPath: r,
5261
5262
  resendVerificationCode: i
5262
5263
  }) => {
5263
- const a = ue(), [s, o] = ce({
5264
+ const a = ue(), [s, o] = le({
5264
5265
  path: `${ii}default`,
5265
5266
  type: "default",
5266
5267
  link: {},
5267
5268
  mail: {},
5268
5269
  error: ""
5269
- }), [l, u] = ce(!1), c = Re(
5270
+ }), [l, u] = le(!1), c = Re(
5270
5271
  (g) => {
5271
5272
  g.preventDefault(), g.stopPropagation();
5272
5273
  const f = (b) => {
@@ -5333,7 +5334,7 @@ const ii = "emailHelperTextBox_", Bp = ({
5333
5334
  "data-gtm-event-context": "VerifyEmailBox",
5334
5335
  "data-gtm-event-type": "SendEmailClick",
5335
5336
  className: "gtm-trackable",
5336
- onClick: (w) => c(w),
5337
+ onClick: (C) => c(C),
5337
5338
  "data-testid": "send-verify-email-click"
5338
5339
  };
5339
5340
  break;
@@ -5450,21 +5451,21 @@ const Ln = {
5450
5451
  }) => {
5451
5452
  const { onChange: s = () => {
5452
5453
  }, onKeyInput: o = async () => {
5453
- } } = i, [{ input: l, displayInput: u, debouncedInput: c }, h] = ce({
5454
+ } } = i, [{ input: l, displayInput: u, debouncedInput: c }, h] = le({
5454
5455
  input: n,
5455
5456
  displayInput: n,
5456
5457
  debouncedInput: n
5457
5458
  }), [
5458
5459
  { predictions: p, activePredictionIndex: m, isPredictionSelected: g },
5459
5460
  f
5460
- ] = ce({
5461
+ ] = le({
5461
5462
  predictions: [],
5462
5463
  activePredictionIndex: -1,
5463
5464
  isPredictionSelected: !!n
5464
5465
  }), { formatMessage: b } = ue();
5465
5466
  r || (r = b({ id: "inputAutocomplete_placeholder" })), fe(() => {
5466
5467
  const x = setTimeout(() => {
5467
- g || h((C) => ({ ...C, debouncedInput: l }));
5468
+ g || h((w) => ({ ...w, debouncedInput: l }));
5468
5469
  }, Ap);
5469
5470
  return () => {
5470
5471
  clearTimeout(x);
@@ -5472,13 +5473,13 @@ const Ln = {
5472
5473
  }, [l, g]), fe(() => {
5473
5474
  c && !g ? (async () => {
5474
5475
  try {
5475
- const C = await o(c) || [];
5476
+ const w = await o(c) || [];
5476
5477
  f((A) => ({
5477
5478
  ...A,
5478
- predictions: C
5479
+ predictions: w
5479
5480
  }));
5480
- } catch (C) {
5481
- console.error("Error fetching predictions:", C), f((A) => ({ ...A, predictions: [] }));
5481
+ } catch (w) {
5482
+ console.error("Error fetching predictions:", w), f((A) => ({ ...A, predictions: [] }));
5482
5483
  }
5483
5484
  })() : f((x) => ({ ...x, predictions: [] }));
5484
5485
  }, [c, g]), fe(() => {
@@ -5488,37 +5489,37 @@ const Ln = {
5488
5489
  }));
5489
5490
  }, [m, p]);
5490
5491
  const v = (x) => {
5491
- [Ln.DOWN, Ln.UP, Ln.ENTER].includes(x.key) && (x.preventDefault(), x.key === Ln.DOWN && m < p.length - 1 ? f((C) => ({
5492
- ...C,
5492
+ [Ln.DOWN, Ln.UP, Ln.ENTER].includes(x.key) && (x.preventDefault(), x.key === Ln.DOWN && m < p.length - 1 ? f((w) => ({
5493
+ ...w,
5493
5494
  activePredictionIndex: m + 1
5494
- })) : x.key === Ln.UP && m > 0 ? f((C) => ({
5495
- ...C,
5495
+ })) : x.key === Ln.UP && m > 0 ? f((w) => ({
5496
+ ...w,
5496
5497
  activePredictionIndex: m - 1
5497
- })) : x.key === Ln.ENTER && m > -1 && (s(p[m].description), h((C) => ({
5498
- ...C,
5498
+ })) : x.key === Ln.ENTER && m > -1 && (s(p[m].description), h((w) => ({
5499
+ ...w,
5499
5500
  input: p[m].description
5500
- })), f((C) => ({
5501
- ...C,
5501
+ })), f((w) => ({
5502
+ ...w,
5502
5503
  predictions: [],
5503
5504
  isPredictionSelected: !0
5504
5505
  }))));
5505
- }, w = (x) => {
5506
- s(x.target.value), h((C) => ({
5507
- ...C,
5506
+ }, C = (x) => {
5507
+ s(x.target.value), h((w) => ({
5508
+ ...w,
5508
5509
  input: x.target.value,
5509
5510
  displayInput: x.target.value
5510
- })), f((C) => ({
5511
- ...C,
5511
+ })), f((w) => ({
5512
+ ...w,
5512
5513
  activePredictionIndex: -1,
5513
5514
  isPredictionSelected: !1
5514
5515
  }));
5515
5516
  }, _ = (x) => {
5516
- s(x.description), h((C) => ({
5517
- ...C,
5517
+ s(x.description), h((w) => ({
5518
+ ...w,
5518
5519
  input: x.description,
5519
5520
  displayInput: x.description
5520
- })), f((C) => ({
5521
- ...C,
5521
+ })), f((w) => ({
5522
+ ...w,
5522
5523
  isPredictionSelected: !0,
5523
5524
  predictions: []
5524
5525
  }));
@@ -5529,7 +5530,7 @@ const Ln = {
5529
5530
  {
5530
5531
  type: "text",
5531
5532
  value: u,
5532
- onChange: w,
5533
+ onChange: C,
5533
5534
  onKeyDown: v,
5534
5535
  placeholder: r,
5535
5536
  name: t,
@@ -5537,20 +5538,20 @@ const Ln = {
5537
5538
  ...a
5538
5539
  }
5539
5540
  ),
5540
- /* @__PURE__ */ d.jsx("ul", { className: "predictions-list", children: p.map((x, C) => /* @__PURE__ */ d.jsx(
5541
+ /* @__PURE__ */ d.jsx("ul", { className: "predictions-list", children: p.map((x, w) => /* @__PURE__ */ d.jsx(
5541
5542
  "li",
5542
5543
  {
5543
5544
  onClick: () => _(x),
5544
5545
  onMouseEnter: () => f((A) => ({
5545
5546
  ...A,
5546
- activePredictionIndex: C
5547
+ activePredictionIndex: w
5547
5548
  })),
5548
5549
  className: Z("predictions-list-item", {
5549
- active: C === m
5550
+ active: w === m
5550
5551
  }),
5551
5552
  children: x.description
5552
5553
  },
5553
- C
5554
+ w
5554
5555
  )) })
5555
5556
  ] });
5556
5557
  };
@@ -5597,8 +5598,8 @@ const cd = ({
5597
5598
  n,
5598
5599
  {
5599
5600
  onClick: (v) => {
5600
- const w = v.target;
5601
- w.nodeName.toLowerCase() === "a" || w.parentNode && w.parentNode.nodeName.toLowerCase() === "a" || (v.preventDefault(), v.stopPropagation(), f());
5601
+ const C = v.target;
5602
+ C.nodeName.toLowerCase() === "a" || C.parentNode && C.parentNode.nodeName.toLowerCase() === "a" || (v.preventDefault(), v.stopPropagation(), f());
5602
5603
  },
5603
5604
  className: Z("checkbox-wrapper", e),
5604
5605
  ...h,
@@ -5631,23 +5632,23 @@ const Sp = ({
5631
5632
  multiSelectOptions: l,
5632
5633
  id: u
5633
5634
  }) => {
5634
- const c = ue(), [h, p] = ce(!1), m = r || n, g = Array.isArray(m) ? [...m] : m ? [m] : [], [f, b] = ce(g);
5635
+ const c = ue(), [h, p] = le(!1), m = r || n, g = Array.isArray(m) ? [...m] : m ? [m] : [], [f, b] = le(g);
5635
5636
  let v;
5636
5637
  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: "" }, fe(() => {
5637
5638
  b(g);
5638
5639
  }, [r, n]);
5639
- const { onChange: w, onMultiSelectSubmit: _, ...x } = i, C = (T) => {
5640
+ const { onChange: C, onMultiSelectSubmit: _, ...x } = i, w = (T) => {
5640
5641
  if (o) {
5641
5642
  let z = [];
5642
- f != null && f.includes(T.id) ? z = f.filter(($) => $ !== T.id) : z = [...f, T.id], b([...z]), w && w([...z]);
5643
+ f != null && f.includes(T.id) ? z = f.filter(($) => $ !== T.id) : z = [...f, T.id], b([...z]), C && C([...z]);
5643
5644
  } else
5644
- b([T]), w && w(T.id), p(!1);
5645
+ b([T]), C && C(T.id), p(!1);
5645
5646
  }, A = (T) => {
5646
5647
  if (T === "all") {
5647
5648
  const z = (t == null ? void 0 : t.map(($) => $.id)) || [];
5648
- b(z), w && w(z);
5649
+ b(z), C && C(z);
5649
5650
  } else
5650
- b([]), w && w([]);
5651
+ b([]), C && C([]);
5651
5652
  };
5652
5653
  return /* @__PURE__ */ d.jsxs("div", { className: Z("dropdown-wrapper", e), children: [
5653
5654
  /* @__PURE__ */ d.jsxs(
@@ -5675,7 +5676,7 @@ const Sp = ({
5675
5676
  onChange: (T) => {
5676
5677
  T.preventDefault(), T.stopPropagation();
5677
5678
  const z = t && t.find(($) => $.id === T.target.value);
5678
- C(z);
5679
+ w(z);
5679
5680
  },
5680
5681
  hidden: !h,
5681
5682
  ...x,
@@ -5741,7 +5742,7 @@ const Sp = ({
5741
5742
  "data-gtm-event-type": `${T.id}-click`,
5742
5743
  "data-gtm-event-context": a,
5743
5744
  onClick: ($) => {
5744
- $.preventDefault(), $.stopPropagation(), C(T);
5745
+ $.preventDefault(), $.stopPropagation(), w(T);
5745
5746
  },
5746
5747
  role: "menuitem",
5747
5748
  "aria-current": z,
@@ -5803,18 +5804,18 @@ const jp = ({
5803
5804
  id: f,
5804
5805
  label: b = !1,
5805
5806
  value: v = f,
5806
- disabled: w = !1
5807
+ disabled: C = !1
5807
5808
  }) => {
5808
5809
  const _ = `${r}_${f}`, x = () => {
5809
- if (w)
5810
+ if (C)
5810
5811
  return;
5811
- let C;
5812
+ let w;
5812
5813
  if (a) {
5813
5814
  const A = m == null ? void 0 : m.indexOf(v);
5814
- Array.isArray(m) && A >= 0 ? (C = m, C.splice(A, 1)) : (!m || m.length === 0 ? C = [] : C = m, C.push(v));
5815
+ Array.isArray(m) && A >= 0 ? (w = m, w.splice(A, 1)) : (!m || m.length === 0 ? w = [] : w = m, w.push(v));
5815
5816
  } else
5816
- C = g === v ? void 0 : v;
5817
- t.onChange(C);
5817
+ w = g === v ? void 0 : v;
5818
+ t.onChange(w);
5818
5819
  };
5819
5820
  return /* @__PURE__ */ d.jsx(
5820
5821
  cd,
@@ -5832,7 +5833,7 @@ const jp = ({
5832
5833
  label: b || p.formatMessage({
5833
5834
  id: n ? `${n}_${f}` : f
5834
5835
  }),
5835
- disabled: w
5836
+ disabled: C
5836
5837
  },
5837
5838
  _
5838
5839
  );
@@ -5848,7 +5849,7 @@ const Op = ({
5848
5849
  autoComplete: r = "on",
5849
5850
  ...i
5850
5851
  }) => {
5851
- const a = ue(), s = ke(), o = e || s, [l, u] = ce(!1), [c, h] = ce(t), p = () => {
5852
+ const a = ue(), s = ke(), o = e || s, [l, u] = le(!1), [c, h] = le(t), p = () => {
5852
5853
  var m;
5853
5854
  u(!l), h(l ? "password" : "text"), (m = o.current) == null || m.focus();
5854
5855
  };
@@ -5907,9 +5908,9 @@ const zn = {
5907
5908
  submitOnEnter: c,
5908
5909
  ...h
5909
5910
  }) => {
5910
- const p = ue(), m = l && l.some(({ condition: P }) => P === "required"), g = Xs(u), f = o && zn[o] && zn[o].component ? zn[o].component : Hn, b = o && ["checkboxes"].includes(o), v = o && ["autocomplete"].includes(o), w = r && `error-${e}`, _ = `character-limit-${e}`, x = {};
5911
+ const p = ue(), m = l && l.some(({ condition: P }) => P === "required"), g = Xs(u), f = o && zn[o] && zn[o].component ? zn[o].component : Hn, b = o && ["checkboxes"].includes(o), v = o && ["autocomplete"].includes(o), C = r && `error-${e}`, _ = `character-limit-${e}`, x = {};
5911
5912
  b ? x.element = "legend" : x.htmlFor = e;
5912
- let C = {
5913
+ let w = {
5913
5914
  ...h,
5914
5915
  id: e,
5915
5916
  name: e,
@@ -5921,23 +5922,23 @@ const zn = {
5921
5922
  value: u
5922
5923
  };
5923
5924
  const A = (P) => {
5924
- C["aria-describedby"] ? C["aria-describedby"] += ` ${P}` : C["aria-describedby"] = P;
5925
+ w["aria-describedby"] ? w["aria-describedby"] += ` ${P}` : w["aria-describedby"] = P;
5925
5926
  };
5926
5927
  if (a > 0) {
5927
5928
  const P = kp(a, i.onChange);
5928
- A(`${_}-info`), C = {
5929
- ...C,
5929
+ A(`${_}-info`), w = {
5930
+ ...w,
5930
5931
  ...P
5931
- }, P.functions && typeof P.functions == "object" && (C.functions = {
5932
- ...C.functions,
5932
+ }, P.functions && typeof P.functions == "object" && (w.functions = {
5933
+ ...w.functions,
5933
5934
  ...P.functions
5934
5935
  });
5935
5936
  }
5936
- o && zn[o] && zn[o].props && (C = { ...C, ...zn[o].props }), b && (C.intlPath = `${t}_${e}`), r && (C["aria-invalid"] = !0, C["aria-errormessage"] = w, A(w));
5937
+ o && zn[o] && zn[o].props && (w = { ...w, ...zn[o].props }), b && (w.intlPath = `${t}_${e}`), r && (w["aria-invalid"] = !0, w["aria-errormessage"] = C, A(C));
5937
5938
  const T = h.label || p.formatMessage({ id: t ? `${t}_${e}` : e }), z = ({ ...P }) => r ? re.createElement(
5938
5939
  P.as || "p",
5939
5940
  {
5940
- id: w,
5941
+ id: C,
5941
5942
  className: "error text-small",
5942
5943
  ...P
5943
5944
  },
@@ -5948,7 +5949,7 @@ const zn = {
5948
5949
  /* @__PURE__ */ d.jsx(
5949
5950
  f,
5950
5951
  {
5951
- ...C,
5952
+ ...w,
5952
5953
  label: T,
5953
5954
  className: Z("field-wrapper", n)
5954
5955
  }
@@ -5985,7 +5986,7 @@ const zn = {
5985
5986
  className: "field-component"
5986
5987
  },
5987
5988
  /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
5988
- /* @__PURE__ */ d.jsx(f, { ...C }),
5989
+ /* @__PURE__ */ d.jsx(f, { ...w }),
5989
5990
  /* @__PURE__ */ d.jsx(
5990
5991
  ld,
5991
5992
  {
@@ -6126,10 +6127,10 @@ const bn = ({
6126
6127
  overwriteSubmittingText: f = !1,
6127
6128
  ...b
6128
6129
  } = s, v = 40, {
6129
- shouldShowCancelButton: w = !1,
6130
+ shouldShowCancelButton: C = !1,
6130
6131
  shouldReset: _ = !0,
6131
6132
  shouldHide: x = !0,
6132
- showRequiredLabels: C = !0,
6133
+ showRequiredLabels: w = !0,
6133
6134
  showSuccessMessage: A = !1
6134
6135
  } = l || {}, {
6135
6136
  onSuccess: T = async () => {
@@ -6245,7 +6246,7 @@ const bn = ({
6245
6246
  }) : M
6246
6247
  }
6247
6248
  ];
6248
- return w && F.unshift({
6249
+ return C && F.unshift({
6249
6250
  ...o,
6250
6251
  className: "gtm-trackable",
6251
6252
  "data-gtm-event-context": c.context,
@@ -6281,7 +6282,7 @@ const bn = ({
6281
6282
  } = L;
6282
6283
  if (ne)
6283
6284
  return /* @__PURE__ */ d.jsx(ne, { ...L.props || {} }, `component-${U}-${N}`);
6284
- const le = (G == null ? void 0 : G[U]) || "", X = {
6285
+ const ce = (G == null ? void 0 : G[U]) || "", X = {
6285
6286
  ...J,
6286
6287
  onChange: (pe) => {
6287
6288
  S({ type: "updateValue", payload: { key: U, value: pe } }), J.onChange(pe && pe.toString(), S);
@@ -6294,8 +6295,8 @@ const bn = ({
6294
6295
  {
6295
6296
  intlPath: a,
6296
6297
  ...L,
6297
- showRequiredLabels: C,
6298
- value: le,
6298
+ showRequiredLabels: w,
6299
+ value: ce,
6299
6300
  error: R == null ? void 0 : R[U],
6300
6301
  functions: X
6301
6302
  },
@@ -6367,7 +6368,7 @@ const g_ = ({
6367
6368
  className: a = "",
6368
6369
  hasLoaded: s = !1
6369
6370
  }) => {
6370
- const o = ue(), [l, u] = ce({
6371
+ const o = ue(), [l, u] = le({
6371
6372
  setUp: !1,
6372
6373
  id: null,
6373
6374
  rating: null,
@@ -6375,14 +6376,14 @@ const g_ = ({
6375
6376
  }), c = async () => {
6376
6377
  try {
6377
6378
  const v = await n();
6378
- u((w) => ({
6379
- ...w,
6379
+ u((C) => ({
6380
+ ...C,
6380
6381
  setUp: !0,
6381
6382
  id: v && v.id,
6382
6383
  disabled: !1
6383
6384
  }));
6384
6385
  } catch (v) {
6385
- u((w) => ({ ...w, setUp: !0, disabled: !0 })), i(v);
6386
+ u((C) => ({ ...C, setUp: !0, disabled: !0 })), i(v);
6386
6387
  }
6387
6388
  };
6388
6389
  if (fe(() => {
@@ -6398,43 +6399,43 @@ const g_ = ({
6398
6399
  }, b = async (v) => {
6399
6400
  if (!(!h || m))
6400
6401
  try {
6401
- u((w) => ({ ...w, rating: v, disabled: !0 })), await r({ id: h, value: v });
6402
- } catch (w) {
6403
- u((_) => ({ ..._, rating: null })), i(w);
6402
+ u((C) => ({ ...C, rating: v, disabled: !0 })), await r({ id: h, value: v });
6403
+ } catch (C) {
6404
+ u((_) => ({ ..._, rating: null })), i(C);
6404
6405
  } finally {
6405
- u((w) => ({ ...w, disabled: !1 }));
6406
+ u((C) => ({ ...C, disabled: !1 }));
6406
6407
  }
6407
6408
  };
6408
6409
  return /* @__PURE__ */ d.jsxs("div", { className: Z("rating", a), children: [
6409
6410
  /* @__PURE__ */ d.jsx("span", { className: "label", children: f[p ? "success" : "text"] }),
6410
6411
  /* @__PURE__ */ d.jsx("ol", { children: Array.from(new Array(t).keys()).map((v) => {
6411
- const w = v + 1;
6412
+ const C = v + 1;
6412
6413
  return /* @__PURE__ */ d.jsx(
6413
6414
  "li",
6414
6415
  {
6415
- className: Z({ selected: p && w <= p }),
6416
+ className: Z({ selected: p && C <= p }),
6416
6417
  children: /* @__PURE__ */ d.jsx(
6417
6418
  Te,
6418
6419
  {
6419
6420
  variant: "tertiary",
6420
6421
  size: "small",
6421
6422
  icon: {
6422
- icon: `star${!p || w > p ? "_empty" : ""}`,
6423
+ icon: `star${!p || C > p ? "_empty" : ""}`,
6423
6424
  position: "left",
6424
6425
  hover: "star"
6425
6426
  },
6426
6427
  screenreaderText: `${o.formatMessage(
6427
6428
  { id: `${g}stars` },
6428
- { number: w, total: t }
6429
- )}${w === 1 || w === t ? ` - ${f[w === 1 ? "low" : "high"]}` : ""}`,
6429
+ { number: C, total: t }
6430
+ )}${C === 1 || C === t ? ` - ${f[C === 1 ? "low" : "high"]}` : ""}`,
6430
6431
  onClick: (_) => {
6431
- _.preventDefault(), _.stopPropagation(), b(w);
6432
+ _.preventDefault(), _.stopPropagation(), b(C);
6432
6433
  },
6433
6434
  disabled: m
6434
6435
  }
6435
6436
  )
6436
6437
  },
6437
- `rating-${w}`
6438
+ `rating-${C}`
6438
6439
  );
6439
6440
  }) })
6440
6441
  ] });
@@ -7872,14 +7873,14 @@ var kg = (e, t, n) => {
7872
7873
  case "merge_node": {
7873
7874
  var {
7874
7875
  path: v
7875
- } = n, w = oe.get(e, v), _ = O.previous(v), x = oe.get(e, _), C = oe.parent(e, v), A = v[v.length - 1];
7876
- if (me.isText(w) && me.isText(x))
7877
- x.text += w.text;
7878
- else if (!me.isText(w) && !me.isText(x))
7879
- x.children.push(...w.children);
7876
+ } = n, C = oe.get(e, v), _ = O.previous(v), x = oe.get(e, _), w = oe.parent(e, v), A = v[v.length - 1];
7877
+ if (me.isText(C) && me.isText(x))
7878
+ x.text += C.text;
7879
+ else if (!me.isText(C) && !me.isText(x))
7880
+ x.children.push(...C.children);
7880
7881
  else
7881
- throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v, "] to nodes of different interfaces: ").concat(rt.stringify(w), " ").concat(rt.stringify(x)));
7882
- if (C.children.splice(A, 1), t)
7882
+ throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v, "] to nodes of different interfaces: ").concat(rt.stringify(C), " ").concat(rt.stringify(x)));
7883
+ if (w.children.splice(A, 1), t)
7883
7884
  for (var [T, z] of V.points(t))
7884
7885
  t[z] = Be.transform(T, n);
7885
7886
  break;
@@ -7926,12 +7927,12 @@ var kg = (e, t, n) => {
7926
7927
  case "remove_text": {
7927
7928
  var {
7928
7929
  path: te,
7929
- offset: le,
7930
+ offset: ce,
7930
7931
  text: X
7931
7932
  } = n;
7932
7933
  if (X.length === 0)
7933
7934
  break;
7934
- var pe = oe.leaf(e, te), ge = pe.text.slice(0, le), xe = pe.text.slice(le + X.length);
7935
+ var pe = oe.leaf(e, te), ge = pe.text.slice(0, ce), xe = pe.text.slice(ce + X.length);
7935
7936
  if (pe.text = ge + xe, t)
7936
7937
  for (var [Se, je] of V.points(t))
7937
7938
  t[je] = Be.transform(Se, n);
@@ -8948,11 +8949,11 @@ var me = {
8948
8949
  });
8949
8950
  }
8950
8951
  if (u > m) {
8951
- var w = u - m;
8952
+ var C = u - m;
8952
8953
  f = Zt(Zt({}, g), {}, {
8953
- text: g.text.slice(0, w)
8954
+ text: g.text.slice(0, C)
8954
8955
  }), g = Zt(Zt({}, g), {}, {
8955
- text: g.text.slice(w)
8956
+ text: g.text.slice(C)
8956
8957
  });
8957
8958
  }
8958
8959
  Object.assign(g, i), f && o.push(f), o.push(g), b && o.push(b);
@@ -9217,13 +9218,13 @@ var dv = (e, t) => {
9217
9218
  var v = O.transform(b, t);
9218
9219
  m.push(v);
9219
9220
  }
9220
- var w = m[m.length - 1], _ = h[h.length - 1], x = w.concat(_);
9221
+ var C = m[m.length - 1], _ = h[h.length - 1], x = C.concat(_);
9221
9222
  return [...p, ...m, x];
9222
9223
  }
9223
9224
  case "remove_node": {
9224
9225
  var {
9225
- path: C
9226
- } = t, A = O.ancestors(C);
9226
+ path: w
9227
+ } = t, A = O.ancestors(w);
9227
9228
  return [...A];
9228
9229
  }
9229
9230
  case "split_node": {
@@ -9692,8 +9693,8 @@ var Kv = ["text"], Zv = ["text"], Yv = function(t) {
9692
9693
  match: (x) => he.isElement(x) && y.isBlock(t, x)
9693
9694
  });
9694
9695
  if (m && f) {
9695
- var [b, v] = m, [, w] = f;
9696
- O.isAncestor(w, v) && (p = b);
9696
+ var [b, v] = m, [, C] = f;
9697
+ O.isAncestor(C, v) && (p = b);
9697
9698
  }
9698
9699
  }
9699
9700
  }
@@ -9764,20 +9765,20 @@ function Jv(e) {
9764
9765
  from: u,
9765
9766
  to: c,
9766
9767
  pass: (x) => {
9767
- var [C] = x;
9768
- return he.isElement(C) ? !!(!s && (y.isVoid(e, C) || y.isElementReadOnly(e, C)) || o && !y.isSelectable(e, C)) : !1;
9768
+ var [w] = x;
9769
+ return he.isElement(w) ? !!(!s && (y.isVoid(e, w) || y.isElementReadOnly(e, w)) || o && !y.isSelectable(e, w)) : !1;
9769
9770
  }
9770
9771
  }), g = [], f;
9771
9772
  for (var [b, v] of m)
9772
9773
  if (!(o && he.isElement(b) && !y.isSelectable(e, b))) {
9773
- var w = f && O.compare(v, f[1]) === 0;
9774
- if (!(r === "highest" && w)) {
9774
+ var C = f && O.compare(v, f[1]) === 0;
9775
+ if (!(r === "highest" && C)) {
9775
9776
  if (!l(b, v)) {
9776
- if (i && !w && me.isText(b))
9777
+ if (i && !C && me.isText(b))
9777
9778
  return;
9778
9779
  continue;
9779
9780
  }
9780
- if (r === "lowest" && w) {
9781
+ if (r === "lowest" && C) {
9781
9782
  f = [b, v];
9782
9783
  continue;
9783
9784
  }
@@ -9823,8 +9824,8 @@ var Xv = function(t) {
9823
9824
  return;
9824
9825
  var v = o(t);
9825
9826
  if (oe.has(t, v)) {
9826
- var w = y.node(t, v);
9827
- t.normalizeNode(w, {
9827
+ var C = y.node(t, v);
9828
+ t.normalizeNode(C, {
9828
9829
  operation: i
9829
9830
  });
9830
9831
  }
@@ -9938,10 +9939,10 @@ function o0(e) {
9938
9939
  if (e.isInline(b))
9939
9940
  continue;
9940
9941
  if (y.hasInlines(e, b)) {
9941
- var w = O.isAncestor(v, u.path) ? u : y.end(e, v), _ = O.isAncestor(v, l.path) ? l : y.start(e, v);
9942
+ var C = O.isAncestor(v, u.path) ? u : y.end(e, v), _ = O.isAncestor(v, l.path) ? l : y.start(e, v);
9942
9943
  p = y.string(e, {
9943
9944
  anchor: _,
9944
- focus: w
9945
+ focus: C
9945
9946
  }, {
9946
9947
  voids: a
9947
9948
  }), h = !0;
@@ -9956,7 +9957,7 @@ function o0(e) {
9956
9957
  if (m === 0) {
9957
9958
  if (p === "")
9958
9959
  break;
9959
- m = C(p, r, i), p = uo(p, m, i)[1];
9960
+ m = w(p, r, i), p = uo(p, m, i)[1];
9960
9961
  }
9961
9962
  if (f = i ? f - m : f + m, g = g - m, g < 0) {
9962
9963
  m = -g;
@@ -9969,7 +9970,7 @@ function o0(e) {
9969
9970
  }
9970
9971
  }
9971
9972
  }
9972
- function C(A, T, z) {
9973
+ function w(A, T, z) {
9973
9974
  return T === "character" ? oo(A, z) : T === "word" ? qg(A, z) : T === "line" || T === "block" ? A.length : 1;
9974
9975
  }
9975
9976
  }();
@@ -10191,19 +10192,19 @@ var h0 = (e, t) => {
10191
10192
  voids: l
10192
10193
  }));
10193
10194
  }
10194
- var [w, _] = V.edges(u), x = y.above(t, {
10195
+ var [C, _] = V.edges(u), x = y.above(t, {
10195
10196
  match: (ge) => he.isElement(ge) && y.isBlock(t, ge),
10196
- at: w,
10197
+ at: C,
10197
10198
  voids: l
10198
- }), C = y.above(t, {
10199
+ }), w = y.above(t, {
10199
10200
  match: (ge) => he.isElement(ge) && y.isBlock(t, ge),
10200
10201
  at: _,
10201
10202
  voids: l
10202
- }), A = x && C && !O.equals(x[1], C[1]), T = O.equals(w.path, _.path), z = l ? null : (r = y.void(t, {
10203
- at: w,
10203
+ }), A = x && w && !O.equals(x[1], w[1]), T = O.equals(C.path, _.path), z = l ? null : (r = y.void(t, {
10204
+ at: C,
10204
10205
  mode: "highest"
10205
10206
  })) !== null && r !== void 0 ? r : y.elementReadOnly(t, {
10206
- at: w,
10207
+ at: C,
10207
10208
  mode: "highest"
10208
10209
  }), $ = l ? null : (i = y.void(t, {
10209
10210
  at: _,
@@ -10213,12 +10214,12 @@ var h0 = (e, t) => {
10213
10214
  mode: "highest"
10214
10215
  });
10215
10216
  if (z) {
10216
- var P = y.before(t, w);
10217
- P && x && O.isAncestor(x[1], P.path) && (w = P);
10217
+ var P = y.before(t, C);
10218
+ P && x && O.isAncestor(x[1], P.path) && (C = P);
10218
10219
  }
10219
10220
  if ($) {
10220
10221
  var I = y.after(t, _);
10221
- I && C && O.isAncestor(C[1], I.path) && (_ = I);
10222
+ I && w && O.isAncestor(w[1], I.path) && (_ = I);
10222
10223
  }
10223
10224
  var E = [], B;
10224
10225
  for (var S of y.nodes(t, {
@@ -10226,18 +10227,18 @@ var h0 = (e, t) => {
10226
10227
  voids: l
10227
10228
  })) {
10228
10229
  var [R, Y] = S;
10229
- B && O.compare(Y, B) === 0 || (!l && he.isElement(R) && (y.isVoid(t, R) || y.isElementReadOnly(t, R)) || !O.isCommon(Y, w.path) && !O.isCommon(Y, _.path)) && (E.push(S), B = Y);
10230
+ B && O.compare(Y, B) === 0 || (!l && he.isElement(R) && (y.isVoid(t, R) || y.isElementReadOnly(t, R)) || !O.isCommon(Y, C.path) && !O.isCommon(Y, _.path)) && (E.push(S), B = Y);
10230
10231
  }
10231
10232
  var H = Array.from(E, (ge) => {
10232
10233
  var [, xe] = ge;
10233
10234
  return y.pathRef(t, xe);
10234
- }), G = y.pointRef(t, w), ie = y.pointRef(t, _), D = "";
10235
+ }), G = y.pointRef(t, C), ie = y.pointRef(t, _), D = "";
10235
10236
  if (!T && !z) {
10236
10237
  var M = G.current, [q] = y.leaf(t, M), {
10237
10238
  path: k
10238
10239
  } = M, {
10239
10240
  offset: F
10240
- } = w, L = q.text.slice(F);
10241
+ } = C, L = q.text.slice(F);
10241
10242
  L.length > 0 && (t.apply({
10242
10243
  type: "remove_text",
10243
10244
  path: k,
@@ -10251,7 +10252,7 @@ var h0 = (e, t) => {
10251
10252
  })), !$) {
10252
10253
  var N = ie.current, [U] = y.leaf(t, N), {
10253
10254
  path: ne
10254
- } = N, J = T ? w.offset : 0, te = U.text.slice(J, _.offset);
10255
+ } = N, J = T ? C.offset : 0, te = U.text.slice(J, _.offset);
10255
10256
  te.length > 0 && (t.apply({
10256
10257
  type: "remove_text",
10257
10258
  path: ne,
@@ -10264,7 +10265,7 @@ var h0 = (e, t) => {
10264
10265
  hanging: !0,
10265
10266
  voids: l
10266
10267
  }), h && a && s === "character" && D.length > 1 && D.match(/[\u0E00-\u0E7F]+/) && Q.insertText(t, D.slice(0, D.length - o));
10267
- var le = G.unref(), X = ie.unref(), pe = a ? le || X : X || le;
10268
+ var ce = G.unref(), X = ie.unref(), pe = a ? ce || X : X || ce;
10268
10269
  n.at == null && pe && Q.select(t, pe);
10269
10270
  }
10270
10271
  }
@@ -10321,13 +10322,13 @@ var h0 = (e, t) => {
10321
10322
  match: (L) => he.isElement(L) && y.isBlock(t, L),
10322
10323
  at: s,
10323
10324
  voids: a
10324
- }), [, f] = g, b = y.isStart(t, s, f), v = y.isEnd(t, s, f), w = b && v, _ = !b || b && v, x = !v, [, C] = oe.first({
10325
+ }), [, f] = g, b = y.isStart(t, s, f), v = y.isEnd(t, s, f), C = b && v, _ = !b || b && v, x = !v, [, w] = oe.first({
10325
10326
  children: n
10326
10327
  }, []), [, A] = oe.last({
10327
10328
  children: n
10328
10329
  }, []), T = [], z = (L) => {
10329
10330
  var [N, U] = L, ne = U.length === 0;
10330
- return ne ? !1 : w ? !0 : !(_ && O.isAncestor(U, C) && he.isElement(N) && !t.isVoid(N) && !t.isInline(N) || x && O.isAncestor(U, A) && he.isElement(N) && !t.isVoid(N) && !t.isInline(N));
10331
+ return ne ? !1 : C ? !0 : !(_ && O.isAncestor(U, w) && he.isElement(N) && !t.isVoid(N) && !t.isInline(N) || x && O.isAncestor(U, A) && he.isElement(N) && !t.isVoid(N) && !t.isInline(N));
10331
10332
  };
10332
10333
  for (var $ of oe.nodes({
10333
10334
  children: n
@@ -10358,7 +10359,7 @@ var h0 = (e, t) => {
10358
10359
  mode: "highest",
10359
10360
  voids: a,
10360
10361
  batchDirty: o
10361
- }), w && !P.length && I.length && !E.length && Q.delete(t, {
10362
+ }), C && !P.length && I.length && !E.length && Q.delete(t, {
10362
10363
  at: f,
10363
10364
  voids: a
10364
10365
  }), Q.insertNodes(t, I, {
@@ -10551,8 +10552,8 @@ var _0 = function(t, n) {
10551
10552
  mode: s,
10552
10553
  voids: a
10553
10554
  });
10554
- var w = b.unref();
10555
- l = v ? O.next(w) : w;
10555
+ var C = b.unref();
10556
+ l = v ? O.next(C) : C;
10556
10557
  } else
10557
10558
  return;
10558
10559
  }
@@ -10561,7 +10562,7 @@ var _0 = function(t, n) {
10561
10562
  at: _
10562
10563
  }))) {
10563
10564
  if (o) {
10564
- var C = [], A = O.levels(_);
10565
+ var w = [], A = O.levels(_);
10565
10566
  cv(t, () => {
10566
10567
  var P = function() {
10567
10568
  var B = _.concat(x);
@@ -10571,7 +10572,7 @@ var _0 = function(t, n) {
10571
10572
  path: B,
10572
10573
  node: I
10573
10574
  };
10574
- t.apply(S), l = O.next(l), C.push(S), me.isText ? A.push(...Array.from(oe.nodes(I), (R) => {
10575
+ t.apply(S), l = O.next(l), w.push(S), me.isText ? A.push(...Array.from(oe.nodes(I), (R) => {
10575
10576
  var [, Y] = R;
10576
10577
  return B.concat(Y);
10577
10578
  })) : A.push(B);
@@ -10581,7 +10582,7 @@ var _0 = function(t, n) {
10581
10582
  }, () => {
10582
10583
  Fd(t, A, (P) => {
10583
10584
  var I = P;
10584
- for (var E of C)
10585
+ for (var E of w)
10585
10586
  if (O.operationCanTransformPath(E) && (I = O.transform(I, E), !I))
10586
10587
  return null;
10587
10588
  return I;
@@ -10620,8 +10621,8 @@ var _0 = function(t, n) {
10620
10621
  mode: i,
10621
10622
  voids: a
10622
10623
  }), l = Array.from(o, (x) => {
10623
- var [, C] = x;
10624
- return y.pathRef(t, C);
10624
+ var [, w] = x;
10625
+ return y.pathRef(t, w);
10625
10626
  });
10626
10627
  for (var u of l) {
10627
10628
  var c = u.unref();
@@ -10654,9 +10655,9 @@ var _0 = function(t, n) {
10654
10655
  voids: a
10655
10656
  });
10656
10657
  } else {
10657
- var w = O.next(c), _ = O.next(m);
10658
+ var C = O.next(c), _ = O.next(m);
10658
10659
  Q.splitNodes(t, {
10659
- at: w,
10660
+ at: C,
10660
10661
  voids: a
10661
10662
  }), Q.moveNodes(t, {
10662
10663
  at: c,
@@ -10716,16 +10717,16 @@ var _0 = function(t, n) {
10716
10717
  if (!(!h || !p)) {
10717
10718
  var [m, g] = h, [f, b] = p;
10718
10719
  if (!(g.length === 0 || b.length === 0)) {
10719
- var v = O.next(b), w = O.common(g, b), _ = O.isSibling(g, b), x = Array.from(y.levels(t, {
10720
+ var v = O.next(b), C = O.common(g, b), _ = O.isSibling(g, b), x = Array.from(y.levels(t, {
10720
10721
  at: g
10721
10722
  }), (P) => {
10722
10723
  var [I] = P;
10723
10724
  return I;
10724
- }).slice(w.length).slice(0, -1), C = y.above(t, {
10725
+ }).slice(C.length).slice(0, -1), w = y.above(t, {
10725
10726
  at: g,
10726
10727
  mode: "highest",
10727
10728
  match: (P) => x.includes(P) && Td(t, P)
10728
- }), A = C && y.pathRef(t, C[1]), T, z;
10729
+ }), A = w && y.pathRef(t, w[1]), T, z;
10729
10730
  if (me.isText(m) && me.isText(f)) {
10730
10731
  var $ = rn(m, F0);
10731
10732
  z = f.text.length, T = $;
@@ -10863,22 +10864,22 @@ var _0 = function(t, n) {
10863
10864
  }), a = p.unref(), r.at == null && Q.select(t, a);
10864
10865
  }
10865
10866
  s || (s = (z, $) => z !== $);
10866
- for (var [w, _] of y.nodes(t, {
10867
+ for (var [C, _] of y.nodes(t, {
10867
10868
  at: a,
10868
10869
  match: i,
10869
10870
  mode: u,
10870
10871
  voids: h
10871
10872
  })) {
10872
- var x = {}, C = {};
10873
+ var x = {}, w = {};
10873
10874
  if (_.length !== 0) {
10874
10875
  var A = !1;
10875
10876
  for (var T in n)
10876
- T === "children" || T === "text" || s(n[T], w[T]) && (A = !0, w.hasOwnProperty(T) && (x[T] = w[T]), o ? n[T] != null && (C[T] = o(w[T], n[T])) : n[T] != null && (C[T] = n[T]));
10877
+ T === "children" || T === "text" || s(n[T], C[T]) && (A = !0, C.hasOwnProperty(T) && (x[T] = C[T]), o ? n[T] != null && (w[T] = o(C[T], n[T])) : n[T] != null && (w[T] = n[T]));
10877
10878
  A && t.apply({
10878
10879
  type: "set_node",
10879
10880
  path: _,
10880
10881
  properties: x,
10881
- newProperties: C
10882
+ newProperties: w
10882
10883
  });
10883
10884
  }
10884
10885
  }
@@ -10925,21 +10926,21 @@ var _0 = function(t, n) {
10925
10926
  mode: "highest"
10926
10927
  }), b = 0;
10927
10928
  if (!i && f) {
10928
- var [v, w] = f;
10929
+ var [v, C] = f;
10929
10930
  if (he.isElement(v) && t.isInline(v)) {
10930
- var _ = y.after(t, w);
10931
+ var _ = y.after(t, C);
10931
10932
  if (!_) {
10932
10933
  var x = {
10933
10934
  text: ""
10934
- }, C = O.next(w);
10935
+ }, w = O.next(C);
10935
10936
  Q.insertNodes(t, x, {
10936
- at: C,
10937
+ at: w,
10937
10938
  voids: i
10938
- }), _ = y.point(t, C);
10939
+ }), _ = y.point(t, w);
10939
10940
  }
10940
10941
  s = _, l = !0;
10941
10942
  }
10942
- var A = s.path.length - w.length;
10943
+ var A = s.path.length - C.length;
10943
10944
  o = A + 1, l = !0;
10944
10945
  }
10945
10946
  m = y.pointRef(t, s);
@@ -11079,17 +11080,17 @@ var I0 = function(t, n) {
11079
11080
  var v = V.isRange(l) ? V.intersection(l, y.range(t, f)) : l;
11080
11081
  if (!v)
11081
11082
  return 0;
11082
- var w = Array.from(y.nodes(t, {
11083
+ var C = Array.from(y.nodes(t, {
11083
11084
  at: v,
11084
11085
  match: o,
11085
11086
  mode: i,
11086
11087
  voids: s
11087
11088
  }));
11088
- if (w.length > 0) {
11089
- var [_] = w, x = w[w.length - 1], [, C] = _, [, A] = x;
11090
- if (C.length === 0 && A.length === 0)
11089
+ if (C.length > 0) {
11090
+ var [_] = C, x = C[C.length - 1], [, w] = _, [, A] = x;
11091
+ if (w.length === 0 && A.length === 0)
11091
11092
  return 0;
11092
- var T = O.equals(C, A) ? O.parent(C) : O.common(C, A), z = y.range(t, C, A), $ = y.node(t, T), [P] = $, I = T.length + 1, E = O.next(A.slice(0, I)), B = el(el({}, n), {}, {
11093
+ var T = O.equals(w, A) ? O.parent(w) : O.common(w, A), z = y.range(t, w, A), $ = y.node(t, T), [P] = $, I = T.length + 1, E = O.next(A.slice(0, I)), B = el(el({}, n), {}, {
11093
11094
  children: []
11094
11095
  });
11095
11096
  Q.insertNodes(t, B, {
@@ -11711,19 +11712,19 @@ function Vb(e, t, n) {
11711
11712
  function v() {
11712
11713
  var A = ja();
11713
11714
  if (b(A))
11714
- return w(A);
11715
+ return C(A);
11715
11716
  o = setTimeout(v, f(A));
11716
11717
  }
11717
- function w(A) {
11718
+ function C(A) {
11718
11719
  return o = void 0, p && r ? m(A) : (r = i = void 0, s);
11719
11720
  }
11720
11721
  function _() {
11721
11722
  o !== void 0 && clearTimeout(o), u = 0, r = l = i = o = void 0;
11722
11723
  }
11723
11724
  function x() {
11724
- return o === void 0 ? s : w(ja());
11725
+ return o === void 0 ? s : C(ja());
11725
11726
  }
11726
- function C() {
11727
+ function w() {
11727
11728
  var A = ja(), T = b(A);
11728
11729
  if (r = arguments, i = this, l = A, T) {
11729
11730
  if (o === void 0)
@@ -11733,7 +11734,7 @@ function Vb(e, t, n) {
11733
11734
  }
11734
11735
  return o === void 0 && (o = setTimeout(v, t)), s;
11735
11736
  }
11736
- return C.cancel = _, C.flush = x, C;
11737
+ return w.cancel = _, w.flush = x, w;
11737
11738
  }
11738
11739
  var Rd = Vb;
11739
11740
  const Kb = /* @__PURE__ */ On(Rd);
@@ -11785,25 +11786,25 @@ const Xb = /* @__PURE__ */ On(Jb), ol = (e) => typeof e == "object" && e != null
11785
11786
  }
11786
11787
  g != null && g === document.body && Oa(g) && !Oa(document.documentElement) || g != null && Oa(g, c) && m.push(g);
11787
11788
  }
11788
- const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, b = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: v, scrollY: w } = window, { height: _, width: x, top: C, right: A, bottom: T, left: z } = e.getBoundingClientRect(), { top: $, right: P, bottom: I, left: E } = ((Y) => {
11789
+ const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, b = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: v, scrollY: C } = window, { height: _, width: x, top: w, right: A, bottom: T, left: z } = e.getBoundingClientRect(), { top: $, right: P, bottom: I, left: E } = ((Y) => {
11789
11790
  const H = window.getComputedStyle(Y);
11790
11791
  return { top: parseFloat(H.scrollMarginTop) || 0, right: parseFloat(H.scrollMarginRight) || 0, bottom: parseFloat(H.scrollMarginBottom) || 0, left: parseFloat(H.scrollMarginLeft) || 0 };
11791
11792
  })(e);
11792
- let B = o === "start" || o === "nearest" ? C - $ : o === "end" ? T + I : C + _ / 2 - $ + I, S = l === "center" ? z + x / 2 - E + P : l === "end" ? A + P : z - E;
11793
+ let B = o === "start" || o === "nearest" ? w - $ : o === "end" ? T + I : w + _ / 2 - $ + I, S = l === "center" ? z + x / 2 - E + P : l === "end" ? A + P : z - E;
11793
11794
  const R = [];
11794
11795
  for (let Y = 0; Y < m.length; Y++) {
11795
11796
  const H = m[Y], { height: G, width: ie, top: D, right: M, bottom: q, left: k } = H.getBoundingClientRect();
11796
- if (s === "if-needed" && C >= 0 && z >= 0 && T <= b && A <= f && C >= D && T <= q && z >= k && A <= M)
11797
+ if (s === "if-needed" && w >= 0 && z >= 0 && T <= b && A <= f && w >= D && T <= q && z >= k && A <= M)
11797
11798
  return R;
11798
11799
  const F = getComputedStyle(H), L = parseInt(F.borderLeftWidth, 10), N = parseInt(F.borderTopWidth, 10), U = parseInt(F.borderRightWidth, 10), ne = parseInt(F.borderBottomWidth, 10);
11799
11800
  let J = 0, te = 0;
11800
- const le = "offsetWidth" in H ? H.offsetWidth - H.clientWidth - L - U : 0, X = "offsetHeight" in H ? H.offsetHeight - H.clientHeight - N - ne : 0, pe = "offsetWidth" in H ? H.offsetWidth === 0 ? 0 : ie / H.offsetWidth : 0, ge = "offsetHeight" in H ? H.offsetHeight === 0 ? 0 : G / H.offsetHeight : 0;
11801
+ const ce = "offsetWidth" in H ? H.offsetWidth - H.clientWidth - L - U : 0, X = "offsetHeight" in H ? H.offsetHeight - H.clientHeight - N - ne : 0, pe = "offsetWidth" in H ? H.offsetWidth === 0 ? 0 : ie / H.offsetWidth : 0, ge = "offsetHeight" in H ? H.offsetHeight === 0 ? 0 : G / H.offsetHeight : 0;
11801
11802
  if (p === H)
11802
- J = o === "start" ? B : o === "end" ? B - b : o === "nearest" ? oi(w, w + b, b, N, ne, w + B, w + B + _, _) : B - b / 2, te = l === "start" ? S : l === "center" ? S - f / 2 : l === "end" ? S - f : oi(v, v + f, f, L, U, v + S, v + S + x, x), J = Math.max(0, J + w), te = Math.max(0, te + v);
11803
+ J = o === "start" ? B : o === "end" ? B - b : o === "nearest" ? oi(C, C + b, b, N, ne, C + B, C + B + _, _) : B - b / 2, te = l === "start" ? S : l === "center" ? S - f / 2 : l === "end" ? S - f : oi(v, v + f, f, L, U, v + S, v + S + x, x), J = Math.max(0, J + C), te = Math.max(0, te + v);
11803
11804
  else {
11804
- J = o === "start" ? B - D - N : o === "end" ? B - q + ne + X : o === "nearest" ? oi(D, q, G, N, ne + X, B, B + _, _) : B - (D + G / 2) + X / 2, te = l === "start" ? S - k - L : l === "center" ? S - (k + ie / 2) + le / 2 : l === "end" ? S - M + U + le : oi(k, M, ie, L, U + le, S, S + x, x);
11805
+ J = o === "start" ? B - D - N : o === "end" ? B - q + ne + X : o === "nearest" ? oi(D, q, G, N, ne + X, B, B + _, _) : B - (D + G / 2) + X / 2, te = l === "start" ? S - k - L : l === "center" ? S - (k + ie / 2) + ce / 2 : l === "end" ? S - M + U + ce : oi(k, M, ie, L, U + ce, S, S + x, x);
11805
11806
  const { scrollLeft: xe, scrollTop: Se } = H;
11806
- J = ge === 0 ? 0 : Math.max(0, Math.min(Se + J / ge, H.scrollHeight - G / ge + X)), te = pe === 0 ? 0 : Math.max(0, Math.min(xe + te / pe, H.scrollWidth - ie / pe + le)), B += Se - J, S += xe - te;
11807
+ J = ge === 0 ? 0 : Math.max(0, Math.min(Se + J / ge, H.scrollHeight - G / ge + X)), te = pe === 0 ? 0 : Math.max(0, Math.min(xe + te / pe, H.scrollWidth - ie / pe + ce)), B += Se - J, S += xe - te;
11807
11808
  }
11808
11809
  R.push({ el: H, top: J, left: te });
11809
11810
  }
@@ -11910,7 +11911,7 @@ var Bn = function(e) {
11910
11911
  return ui.get(e);
11911
11912
  if (Id(e))
11912
11913
  return ui.set(e, hl), hl;
11913
- var n = getComputedStyle(e), r = co(e) && e.ownerSVGElement && e.getBBox(), i = !ly && n.boxSizing === "border-box", a = uy.test(n.writingMode || ""), s = !r && fl.test(n.overflowY || ""), o = !r && fl.test(n.overflowX || ""), l = r ? 0 : $t(n.paddingTop), u = r ? 0 : $t(n.paddingRight), c = r ? 0 : $t(n.paddingBottom), h = r ? 0 : $t(n.paddingLeft), p = r ? 0 : $t(n.borderTopWidth), m = r ? 0 : $t(n.borderRightWidth), g = r ? 0 : $t(n.borderBottomWidth), f = r ? 0 : $t(n.borderLeftWidth), b = h + u, v = l + c, w = f + m, _ = p + g, x = o ? e.offsetHeight - _ - e.clientHeight : 0, C = s ? e.offsetWidth - w - e.clientWidth : 0, A = i ? b + w : 0, T = i ? v + _ : 0, z = r ? r.width : $t(n.width) - A - C, $ = r ? r.height : $t(n.height) - T - x, P = z + b + C + w, I = $ + v + x + _, E = Bn({
11914
+ var n = getComputedStyle(e), r = co(e) && e.ownerSVGElement && e.getBBox(), i = !ly && n.boxSizing === "border-box", a = uy.test(n.writingMode || ""), s = !r && fl.test(n.overflowY || ""), o = !r && fl.test(n.overflowX || ""), l = r ? 0 : $t(n.paddingTop), u = r ? 0 : $t(n.paddingRight), c = r ? 0 : $t(n.paddingBottom), h = r ? 0 : $t(n.paddingLeft), p = r ? 0 : $t(n.borderTopWidth), m = r ? 0 : $t(n.borderRightWidth), g = r ? 0 : $t(n.borderBottomWidth), f = r ? 0 : $t(n.borderLeftWidth), b = h + u, v = l + c, C = f + m, _ = p + g, x = o ? e.offsetHeight - _ - e.clientHeight : 0, w = s ? e.offsetWidth - C - e.clientWidth : 0, A = i ? b + C : 0, T = i ? v + _ : 0, z = r ? r.width : $t(n.width) - A - w, $ = r ? r.height : $t(n.height) - T - x, P = z + b + w + C, I = $ + v + x + _, E = Bn({
11914
11915
  devicePixelContentBoxSize: Jn(Math.round(z * devicePixelRatio), Math.round($ * devicePixelRatio), a),
11915
11916
  borderBoxSize: Jn(P, I, a),
11916
11917
  contentBoxSize: Jn(z, $, a),
@@ -12581,8 +12582,8 @@ var ee = {
12581
12582
  break;
12582
12583
  }
12583
12584
  if (t.offset <= g) {
12584
- var w = Math.min(h, Math.max(0, t.offset - o));
12585
- i = [c, w];
12585
+ var C = Math.min(h, Math.max(0, t.offset - o));
12586
+ i = [c, C];
12586
12587
  break;
12587
12588
  }
12588
12589
  o = g;
@@ -12616,9 +12617,9 @@ var ee = {
12616
12617
  var c, h, p = ee.toDOMNode(e, e), m = o.closest('[data-slate-void="true"]'), g = m && p.contains(m) ? m : null, f = o.closest("[data-slate-leaf]"), b = null;
12617
12618
  if (f) {
12618
12619
  if (l = f.closest('[data-slate-node="text"]'), l) {
12619
- var v = ee.getWindow(e), w = v.document.createRange();
12620
- w.setStart(l, 0), w.setEnd(a, s);
12621
- var _ = w.cloneContents(), x = [...Array.prototype.slice.call(_.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(_.querySelectorAll("[contenteditable=false]"))];
12620
+ var v = ee.getWindow(e), C = v.document.createRange();
12621
+ C.setStart(l, 0), C.setEnd(a, s);
12622
+ var _ = C.cloneContents(), x = [...Array.prototype.slice.call(_.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(_.querySelectorAll("[contenteditable=false]"))];
12622
12623
  x.forEach((S) => {
12623
12624
  if (dt && !r && S.hasAttribute("data-slate-zero-width") && S.textContent.length > 0 && S.textContext !== "\uFEFF") {
12624
12625
  S.textContent.startsWith("\uFEFF") && (S.textContent = S.textContent.slice(1));
@@ -12628,8 +12629,8 @@ var ee = {
12628
12629
  }), u = _.textContent.length, b = l;
12629
12630
  }
12630
12631
  } else if (g) {
12631
- for (var C = g.querySelectorAll("[data-slate-leaf]"), A = 0; A < C.length; A++) {
12632
- var T = C[A];
12632
+ for (var w = g.querySelectorAll("[data-slate-leaf]"), A = 0; A < w.length; A++) {
12633
+ var T = w[A];
12633
12634
  if (ee.hasDOMNode(e, T)) {
12634
12635
  f = T;
12635
12636
  break;
@@ -12707,8 +12708,8 @@ var ee = {
12707
12708
  if (Zn && (r = u.textContent) !== null && r !== void 0 && r.endsWith(`
12708
12709
 
12709
12710
  `) && c === u.textContent.length && c--, "getAttribute" in u && u.getAttribute("contenteditable") === "false" && u.getAttribute("data-slate-void") !== "true") {
12710
- var w;
12711
- u = o, c = ((w = o.textContent) === null || w === void 0 ? void 0 : w.length) || 0;
12711
+ var C;
12712
+ u = o, c = ((C = o.textContent) === null || C === void 0 ? void 0 : C.length) || 0;
12712
12713
  }
12713
12714
  var _ = ee.toSlatePoint(e, [o, l], {
12714
12715
  exactMatch: i,
@@ -12722,16 +12723,16 @@ var ee = {
12722
12723
  });
12723
12724
  if (!x)
12724
12725
  return null;
12725
- var C = {
12726
+ var w = {
12726
12727
  anchor: _,
12727
12728
  focus: x
12728
12729
  };
12729
- return V.isExpanded(C) && V.isForward(C) && Ft(u) && y.void(e, {
12730
- at: C.focus,
12730
+ return V.isExpanded(w) && V.isForward(w) && Ft(u) && y.void(e, {
12731
+ at: w.focus,
12731
12732
  mode: "highest"
12732
- }) && (C = y.unhangRange(e, C, {
12733
+ }) && (w = y.unhangRange(e, w, {
12733
12734
  voids: !0
12734
- })), C;
12735
+ })), w;
12735
12736
  }
12736
12737
  };
12737
12738
  function Zy(e, t) {
@@ -13114,7 +13115,7 @@ function i1(e) {
13114
13115
  at: S,
13115
13116
  run: B
13116
13117
  }), o = setTimeout(p);
13117
- }, w = (E) => {
13118
+ }, C = (E) => {
13118
13119
  var B;
13119
13120
  s && (clearTimeout(s), s = null);
13120
13121
  var {
@@ -13150,7 +13151,7 @@ function i1(e) {
13150
13151
  text: "",
13151
13152
  start: N.offset,
13152
13153
  end: U.offset
13153
- }, le = pt.get(t), X = le == null ? void 0 : le.find((ye) => O.equals(ye.path, J)), pe = X ? [X.diff, te] : [te], ge = nf(ne.text, ...pe);
13154
+ }, ce = pt.get(t), X = ce == null ? void 0 : ce.find((ye) => O.equals(ye.path, J)), pe = X ? [X.diff, te] : [te], ge = nf(ne.text, ...pe);
13154
13155
  if (ge.length === 0 && (D = !1), V.isExpanded(R)) {
13155
13156
  if (D && O.equals(R.anchor.path, R.focus.path)) {
13156
13157
  var xe = {
@@ -13312,7 +13313,7 @@ function i1(e) {
13312
13313
  }, _ = () => !!cn.get(t), x = () => {
13313
13314
  var E;
13314
13315
  return !!((E = pt.get(t)) !== null && E !== void 0 && E.length);
13315
- }, C = () => _() || x(), A = () => i, T = (E) => {
13316
+ }, w = () => _() || x(), A = () => i, T = (E) => {
13316
13317
  dn.set(t, E), s && (clearTimeout(s), s = null);
13317
13318
  var {
13318
13319
  selection: B
@@ -13338,12 +13339,12 @@ function i1(e) {
13338
13339
  scheduleFlush: P,
13339
13340
  hasPendingDiffs: x,
13340
13341
  hasPendingAction: _,
13341
- hasPendingChanges: C,
13342
+ hasPendingChanges: w,
13342
13343
  isFlushing: A,
13343
13344
  handleUserSelect: T,
13344
13345
  handleCompositionEnd: m,
13345
13346
  handleCompositionStart: g,
13346
- handleDOMBeforeInput: w,
13347
+ handleDOMBeforeInput: C,
13347
13348
  handleKeyDown: $,
13348
13349
  handleDomMutations: I,
13349
13350
  handleInput: z
@@ -13357,7 +13358,7 @@ function a1() {
13357
13358
  }
13358
13359
  var Wr = Ei ? ah : fe;
13359
13360
  function s1(e, t, n) {
13360
- var [r] = ce(() => new MutationObserver(t));
13361
+ var [r] = le(() => new MutationObserver(t));
13361
13362
  Wr(() => {
13362
13363
  r.takeRecords();
13363
13364
  }), fe(() => {
@@ -13398,7 +13399,7 @@ var l1 = {
13398
13399
  } = e, n = ar(e, o1);
13399
13400
  if (!dt)
13400
13401
  return null;
13401
- var r = yn(), i = a1(), [a] = ce(() => i1(u1({
13402
+ var r = yn(), i = a1(), [a] = le(() => i1(u1({
13402
13403
  editor: r
13403
13404
  }, n)));
13404
13405
  return s1(t, a.handleDomMutations, l1), vo.set(r, a.scheduleFlush), i && a.flush(), a;
@@ -13471,7 +13472,7 @@ var v1 = (e) => {
13471
13472
  text: t,
13472
13473
  isTrailing: n = !1
13473
13474
  } = e, r = ke(null), i = () => "".concat(t ?? "").concat(n ? `
13474
- ` : ""), [a] = ce(i);
13475
+ ` : ""), [a] = le(i);
13475
13476
  return Wr(() => {
13476
13477
  var s = i();
13477
13478
  r.current && r.current.textContent !== s && (r.current.textContent = s);
@@ -13527,20 +13528,20 @@ var x1 = (e) => {
13527
13528
  text: r,
13528
13529
  parent: i,
13529
13530
  renderPlaceholder: a,
13530
- renderLeaf: s = (w) => /* @__PURE__ */ re.createElement(C1, sf({}, w))
13531
- } = e, o = yn(), l = ke(null), u = ke(null), [c, h] = ce(!1), p = ke(null), m = Re((w) => {
13532
- if (D1(l, w == null), w == null) {
13531
+ renderLeaf: s = (C) => /* @__PURE__ */ re.createElement(C1, sf({}, C))
13532
+ } = e, o = yn(), l = ke(null), u = ke(null), [c, h] = le(!1), p = ke(null), m = Re((C) => {
13533
+ if (D1(l, C == null), C == null) {
13533
13534
  var _;
13534
13535
  As.delete(o), (_ = t.onPlaceholderResize) === null || _ === void 0 || _.call(t, null);
13535
13536
  } else {
13536
- if (As.set(o, w), !l.current) {
13537
+ if (As.set(o, C), !l.current) {
13537
13538
  var x = window.ResizeObserver || Cy;
13538
13539
  l.current = new x(() => {
13539
- var C;
13540
- (C = t.onPlaceholderResize) === null || C === void 0 || C.call(t, w);
13540
+ var w;
13541
+ (w = t.onPlaceholderResize) === null || w === void 0 || w.call(t, C);
13541
13542
  });
13542
13543
  }
13543
- l.current.observe(w), u.current = w;
13544
+ l.current.observe(C), u.current = C;
13544
13545
  }
13545
13546
  }, [u, t, o]), g = /* @__PURE__ */ re.createElement(v1, {
13546
13547
  isLast: n,
@@ -13643,13 +13644,13 @@ var _1 = (e) => {
13643
13644
  var {
13644
13645
  decorations: t,
13645
13646
  element: n,
13646
- renderElement: r = (w) => /* @__PURE__ */ re.createElement(B1, Ps({}, w)),
13647
+ renderElement: r = (C) => /* @__PURE__ */ re.createElement(B1, Ps({}, C)),
13647
13648
  renderPlaceholder: i,
13648
13649
  renderLeaf: a,
13649
13650
  selection: s
13650
- } = e, o = yn(), l = T1(), u = o.isInline(n), c = ee.findKey(o, n), h = Re((w) => {
13651
+ } = e, o = yn(), l = T1(), u = o.isInline(n), c = ee.findKey(o, n), h = Re((C) => {
13651
13652
  var _ = aa.get(o);
13652
- w ? (_ == null || _.set(c, w), An.set(n, w), qr.set(w, n)) : (_ == null || _.delete(c), An.delete(n));
13653
+ C ? (_ == null || _.set(c, C), An.set(n, C), qr.set(C, n)) : (_ == null || _.delete(c), An.delete(n));
13653
13654
  }, [o, c, n]), p = lf({
13654
13655
  decorations: t,
13655
13656
  node: n,
@@ -13709,16 +13710,16 @@ var _1 = (e) => {
13709
13710
  renderLeaf: a,
13710
13711
  selection: s
13711
13712
  } = e, o = A1(), l = yn(), u = ee.findPath(l, n), c = [], h = he.isElement(n) && !l.isInline(n) && y.hasInlines(l, n), p = 0; p < n.children.length; p++) {
13712
- var m = u.concat(p), g = n.children[p], f = ee.findKey(l, g), b = y.range(l, m), v = s && V.intersection(b, s), w = o([g, m]);
13713
+ var m = u.concat(p), g = n.children[p], f = ee.findKey(l, g), b = y.range(l, m), v = s && V.intersection(b, s), C = o([g, m]);
13713
13714
  for (var _ of t) {
13714
13715
  var x = V.intersection(_, b);
13715
- x && w.push(x);
13716
+ x && C.push(x);
13716
13717
  }
13717
13718
  he.isElement(g) ? c.push(/* @__PURE__ */ re.createElement(F1.Provider, {
13718
13719
  key: "provider-".concat(f.id),
13719
13720
  value: !!v
13720
13721
  }, /* @__PURE__ */ re.createElement(k1, {
13721
- decorations: w,
13722
+ decorations: C,
13722
13723
  element: g,
13723
13724
  key: f.id,
13724
13725
  renderElement: r,
@@ -13726,7 +13727,7 @@ var _1 = (e) => {
13726
13727
  renderLeaf: a,
13727
13728
  selection: v
13728
13729
  }))) : c.push(/* @__PURE__ */ re.createElement(of, {
13729
- decorations: w,
13730
+ decorations: C,
13730
13731
  key: f.id,
13731
13732
  isLast: h && p === n.children.length - 1,
13732
13733
  parent: n,
@@ -13931,7 +13932,7 @@ var z1 = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, lf(e)), q1 =
13931
13932
  style: h = {},
13932
13933
  as: p = "div",
13933
13934
  disableDefaultStyles: m = !1
13934
- } = e, g = ar(e, I1), f = Mn(), [b, v] = ce(!1), w = ke(null), _ = ke([]), [x, C] = ce(), {
13935
+ } = e, g = ar(e, I1), f = Mn(), [b, v] = le(!1), C = ke(null), _ = ke([]), [x, w] = le(), {
13935
13936
  onUserInput: A,
13936
13937
  receivedUserInput: T
13937
13938
  } = S1(), [, z] = ur((F) => F + 1, 0);
@@ -13943,7 +13944,7 @@ var z1 = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, lf(e)), q1 =
13943
13944
  hasMarkPlaceholder: !1
13944
13945
  }), []);
13945
13946
  fe(() => {
13946
- w.current && n && w.current.focus();
13947
+ C.current && n && C.current.focus();
13947
13948
  }, [n]);
13948
13949
  var P = ke(), I = qt(() => Xb(() => {
13949
13950
  var F = P.current;
@@ -13956,24 +13957,24 @@ var z1 = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, lf(e)), q1 =
13956
13957
  var {
13957
13958
  anchorNode: J,
13958
13959
  focusNode: te
13959
- } = ne, le = ee.hasEditableTarget(f, J) || ee.isTargetInsideNonReadonlyVoid(f, J), X = ee.hasEditableTarget(f, te) || ee.isTargetInsideNonReadonlyVoid(f, te);
13960
- if (le && X) {
13960
+ } = ne, ce = ee.hasEditableTarget(f, J) || ee.isTargetInsideNonReadonlyVoid(f, J), X = ee.hasEditableTarget(f, te) || ee.isTargetInsideNonReadonlyVoid(f, te);
13961
+ if (ce && X) {
13961
13962
  var pe = ee.toSlateRange(f, ne, {
13962
13963
  exactMatch: !1,
13963
13964
  suppressThrow: !0
13964
13965
  });
13965
13966
  pe && (!ee.isComposing(f) && !(F != null && F.hasPendingChanges()) && !(F != null && F.isFlushing()) ? Q.select(f, pe) : F == null || F.handleUserSelect(pe));
13966
13967
  }
13967
- s && (!le || !X) && Q.deselect(f);
13968
+ s && (!ce || !X) && Q.deselect(f);
13968
13969
  }
13969
13970
  }, 100), [f, s, $]), E = qt(() => Kb(I, 0), [I]);
13970
13971
  P.current = c1({
13971
- node: w,
13972
+ node: C,
13972
13973
  onDOMSelectionChange: I,
13973
13974
  scheduleOnDOMSelectionChange: E
13974
13975
  }), Wr(() => {
13975
13976
  var F, L, N;
13976
- w.current && (N = bo(w.current)) ? (Gd.set(f, N), _i.set(f, w.current), An.set(f, w.current), qr.set(w.current, f)) : An.delete(f);
13977
+ C.current && (N = bo(C.current)) ? (Gd.set(f, N), _i.set(f, C.current), An.set(f, C.current), qr.set(C.current, f)) : An.delete(f);
13977
13978
  var {
13978
13979
  selection: U
13979
13980
  } = f, ne = ee.findDocumentOrShadowRoot(f), J = ne.getSelection();
@@ -14014,15 +14015,15 @@ var z1 = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, lf(e)), q1 =
14014
14015
  }
14015
14016
  };
14016
14017
  J.rangeCount <= 1 && te();
14017
- var le = ((L = P.current) === null || L === void 0 ? void 0 : L.isFlushing()) === "action";
14018
- if (!dt || !le) {
14018
+ var ce = ((L = P.current) === null || L === void 0 ? void 0 : L.isFlushing()) === "action";
14019
+ if (!dt || !ce) {
14019
14020
  setTimeout(() => {
14020
14021
  $.isUpdatingSelection = !1;
14021
14022
  });
14022
14023
  return;
14023
14024
  }
14024
14025
  var X = null, pe = requestAnimationFrame(() => {
14025
- if (le) {
14026
+ if (ce) {
14026
14027
  var ge = (xe) => {
14027
14028
  try {
14028
14029
  var Se = ee.toDOMNode(f, f);
@@ -14061,11 +14062,11 @@ var z1 = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, lf(e)), q1 =
14061
14062
  // When there is an inline element, e.g. a link, and you select
14062
14063
  // right after it (the start of the next node).
14063
14064
  N.anchor.offset !== 0) {
14064
- var le, X;
14065
+ var ce, X;
14065
14066
  te = !0, f.marks && (te = !1);
14066
14067
  var {
14067
14068
  anchor: pe
14068
- } = N, [ge, xe] = ee.toDOMPoint(f, pe), Se = (le = ge.parentElement) === null || le === void 0 ? void 0 : le.closest("a"), je = ee.getWindow(f);
14069
+ } = N, [ge, xe] = ee.toDOMPoint(f, pe), Se = (ce = ge.parentElement) === null || ce === void 0 ? void 0 : ce.closest("a"), je = ee.getWindow(f);
14069
14070
  if (te && Se && ee.hasDOMNode(f, Se)) {
14070
14071
  var Ye, Pe = je == null ? void 0 : je.document.createTreeWalker(Se, NodeFilter.SHOW_TEXT).lastChild();
14071
14072
  Pe === ge && ((Ye = Pe.textContent) === null || Ye === void 0 ? void 0 : Ye.length) === xe && (te = !1);
@@ -14182,7 +14183,7 @@ var z1 = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, lf(e)), q1 =
14182
14183
  Fr.delete(f), W && (!f.selection || !V.equals(f.selection, W)) && Q.select(f, W);
14183
14184
  }
14184
14185
  }, [f, I, A, i, s, E]), S = Re((F) => {
14185
- F == null ? (I.cancel(), E.cancel(), _i.delete(f), An.delete(f), w.current && un && w.current.removeEventListener("beforeinput", B)) : un && F.addEventListener("beforeinput", B), w.current = F;
14186
+ F == null ? (I.cancel(), E.cancel(), _i.delete(f), An.delete(f), C.current && un && C.current.removeEventListener("beforeinput", B)) : un && F.addEventListener("beforeinput", B), C.current = F;
14186
14187
  }, [I, E, f, B]);
14187
14188
  Wr(() => {
14188
14189
  var F = ee.getWindow(f);
@@ -14193,9 +14194,9 @@ var z1 = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, lf(e)), q1 =
14193
14194
  var R = r([f, []]), Y = a && f.children.length === 1 && Array.from(oe.texts(f)).length === 1 && oe.string(f) === "" && !b, H = Re((F) => {
14194
14195
  if (F && Y) {
14195
14196
  var L;
14196
- C((L = F.getBoundingClientRect()) === null || L === void 0 ? void 0 : L.height);
14197
+ w((L = F.getBoundingClientRect()) === null || L === void 0 ? void 0 : L.height);
14197
14198
  } else
14198
- C(void 0);
14199
+ w(void 0);
14199
14200
  }, [Y]);
14200
14201
  if (Y) {
14201
14202
  var G = y.start(f, []);
@@ -14250,7 +14251,7 @@ var z1 = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, lf(e)), q1 =
14250
14251
  }, /* @__PURE__ */ re.createElement(uf.Provider, {
14251
14252
  value: r
14252
14253
  }, /* @__PURE__ */ re.createElement($1, {
14253
- node: w,
14254
+ node: C,
14254
14255
  receivedUserInput: T
14255
14256
  }, /* @__PURE__ */ re.createElement(p, It(It({
14256
14257
  role: s ? void 0 : "textbox",
@@ -14343,13 +14344,13 @@ var z1 = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, lf(e)), q1 =
14343
14344
  }
14344
14345
  if (s)
14345
14346
  return;
14346
- var le = y.start(f, N), X = y.end(f, N), pe = y.void(f, {
14347
- at: le
14347
+ var ce = y.start(f, N), X = y.end(f, N), pe = y.void(f, {
14348
+ at: ce
14348
14349
  }), ge = y.void(f, {
14349
14350
  at: X
14350
14351
  });
14351
14352
  if (pe && ge && O.equals(pe[1], ge[1])) {
14352
- var xe = y.range(f, le);
14353
+ var xe = y.range(f, ce);
14353
14354
  Q.select(f, xe);
14354
14355
  }
14355
14356
  }
@@ -14470,8 +14471,8 @@ var z1 = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, lf(e)), q1 =
14470
14471
  }
14471
14472
  if (Qe.isUndo(N)) {
14472
14473
  F.preventDefault();
14473
- var le = f;
14474
- typeof le.undo == "function" && le.undo();
14474
+ var ce = f;
14475
+ typeof ce.undo == "function" && ce.undo();
14475
14476
  return;
14476
14477
  }
14477
14478
  if (Qe.isMoveLineBackward(N)) {
@@ -14699,7 +14700,7 @@ var G1 = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
14699
14700
  Ts.set(t, () => {
14700
14701
  });
14701
14702
  }), [t, p]);
14702
- var [m, g] = ce(ee.isFocused(t));
14703
+ var [m, g] = le(ee.isFocused(t));
14703
14704
  return fe(() => {
14704
14705
  g(ee.isFocused(t));
14705
14706
  }, [t]), Wr(() => {
@@ -14820,8 +14821,8 @@ var X1 = function(t) {
14820
14821
  break;
14821
14822
  }
14822
14823
  case "merge_node": {
14823
- var w = O.previous(u.path);
14824
- c.push(...qn(r, w));
14824
+ var C = O.previous(u.path);
14825
+ c.push(...qn(r, C));
14825
14826
  break;
14826
14827
  }
14827
14828
  case "move_node": {
@@ -14829,7 +14830,7 @@ var X1 = function(t) {
14829
14830
  c.push(...qn(r, _));
14830
14831
  var x;
14831
14832
  O.isBefore(u.path, u.newPath) ? (c.push(...qn(r, O.parent(u.path))), x = u.newPath) : (c.push(...qn(r, O.parent(u.newPath))), x = u.path);
14832
- var C = oe.get(t, O.parent(x)), A = ee.findKey(r, C), T = y.pathRef(r, O.parent(x));
14833
+ var w = oe.get(t, O.parent(x)), A = ee.findKey(r, w), T = y.pathRef(r, O.parent(x));
14833
14834
  h.push([T, A]);
14834
14835
  break;
14835
14836
  }
@@ -14859,7 +14860,7 @@ var X1 = function(t) {
14859
14860
  if (b.childNodes.forEach((P) => {
14860
14861
  P.textContent && P.textContent.trim() !== "" && (v = P);
14861
14862
  }), g) {
14862
- var [w] = g, _ = f.cloneRange(), x = ee.toDOMNode(r, w);
14863
+ var [C] = g, _ = f.cloneRange(), x = ee.toDOMNode(r, C);
14863
14864
  _.setEndAfter(x), b = _.cloneContents();
14864
14865
  }
14865
14866
  if (m && (v = b.querySelector("[data-slate-spacer]")), Array.from(b.querySelectorAll("[data-slate-zero-width]")).forEach((P) => {
@@ -14867,8 +14868,8 @@ var X1 = function(t) {
14867
14868
  P.textContent = I ? `
14868
14869
  ` : "";
14869
14870
  }), Xd(v)) {
14870
- var C = v.ownerDocument.createElement("span");
14871
- C.style.whiteSpace = "pre", C.appendChild(v), b.appendChild(C), v = C;
14871
+ var w = v.ownerDocument.createElement("span");
14872
+ w.style.whiteSpace = "pre", w.appendChild(v), b.appendChild(w), v = w;
14872
14873
  }
14873
14874
  var A = r.getFragment(), T = JSON.stringify(A), z = window.btoa(encodeURIComponent(T));
14874
14875
  v.setAttribute("data-slate-fragment", z), u.setData("application/".concat(n), z);
@@ -14998,11 +14999,11 @@ const tD = ({
14998
14999
  e,
14999
15000
  f || hf
15000
15001
  ).getBoundingClientRect();
15001
- const w = (m = document.getElementById(n)) == null ? void 0 : m.getBoundingClientRect();
15002
+ const C = (m = document.getElementById(n)) == null ? void 0 : m.getBoundingClientRect();
15002
15003
  l.style.setProperty(
15003
15004
  "--width",
15004
- `${((w == null ? void 0 : w.width) || 0) / Ia}rem`
15005
- ), c = (w == null ? void 0 : w.left) || 0;
15005
+ `${((C == null ? void 0 : C.width) || 0) / Ia}rem`
15006
+ ), c = (C == null ? void 0 : C.left) || 0;
15006
15007
  } else {
15007
15008
  const f = document.getSelection();
15008
15009
  f != null && f.toString().trim().length && (u = f == null ? void 0 : f.getRangeAt(0).getBoundingClientRect());
@@ -15015,7 +15016,7 @@ const tD = ({
15015
15016
  )), l.style.top = `${p / Ia}rem`, l.style.left = `${c / Ia}rem`;
15016
15017
  }, o), r;
15017
15018
  }, rD = (e) => {
15018
- const [t, n] = ce(
15019
+ const [t, n] = le(
15019
15020
  null
15020
15021
  );
15021
15022
  return fe(() => {
@@ -16551,12 +16552,12 @@ function ID(e) {
16551
16552
  }
16552
16553
  function l(_) {
16553
16554
  if (r++, t.containerState._closeFlow) {
16554
- t.containerState._closeFlow = void 0, i && w();
16555
+ t.containerState._closeFlow = void 0, i && C();
16555
16556
  const x = t.events.length;
16556
- let C = x, A;
16557
- for (; C--; )
16558
- if (t.events[C][0] === "exit" && t.events[C][1].type === "chunkFlow") {
16559
- A = t.events[C][1].end;
16557
+ let w = x, A;
16558
+ for (; w--; )
16559
+ if (t.events[w][0] === "exit" && t.events[w][1].type === "chunkFlow") {
16560
+ A = t.events[w][1].end;
16560
16561
  break;
16561
16562
  }
16562
16563
  v(r);
@@ -16565,7 +16566,7 @@ function ID(e) {
16565
16566
  t.events[T][1].end = Object.assign({}, A), T++;
16566
16567
  return an(
16567
16568
  t.events,
16568
- C + 1,
16569
+ w + 1,
16569
16570
  0,
16570
16571
  t.events.slice(x)
16571
16572
  ), t.events.length = T, u(_);
@@ -16587,7 +16588,7 @@ function ID(e) {
16587
16588
  )(_);
16588
16589
  }
16589
16590
  function c(_) {
16590
- return i && w(), v(r), p(_);
16591
+ return i && C(), v(r), p(_);
16591
16592
  }
16592
16593
  function h(_) {
16593
16594
  return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, g(_);
@@ -16604,7 +16605,7 @@ function ID(e) {
16604
16605
  }
16605
16606
  function g(_) {
16606
16607
  if (_ === null) {
16607
- i && w(), v(0), e.consume(_);
16608
+ i && C(), v(0), e.consume(_);
16608
16609
  return;
16609
16610
  }
16610
16611
  return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
@@ -16621,8 +16622,8 @@ function ID(e) {
16621
16622
  return we(_) ? (e.consume(_), b(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(_), f);
16622
16623
  }
16623
16624
  function b(_, x) {
16624
- const C = t.sliceStream(_);
16625
- if (x && C.push(null), _.previous = a, a && (a.next = _), a = _, i.defineSkip(_.start), i.write(C), t.parser.lazy[_.start.line]) {
16625
+ const w = t.sliceStream(_);
16626
+ if (x && w.push(null), _.previous = a, a && (a.next = _), a = _, i.defineSkip(_.start), i.write(w), t.parser.lazy[_.start.line]) {
16626
16627
  let A = i.events.length;
16627
16628
  for (; A--; )
16628
16629
  if (
@@ -16655,12 +16656,12 @@ function ID(e) {
16655
16656
  function v(_) {
16656
16657
  let x = n.length;
16657
16658
  for (; x-- > _; ) {
16658
- const C = n[x];
16659
- t.containerState = C[1], C[0].exit.call(t, e);
16659
+ const w = n[x];
16660
+ t.containerState = w[1], w[0].exit.call(t, e);
16660
16661
  }
16661
16662
  n.length = _;
16662
16663
  }
16663
- function w() {
16664
+ function C() {
16664
16665
  i.write([null]), a = void 0, i = void 0, t.containerState._closeFlow = void 0;
16665
16666
  }
16666
16667
  }
@@ -16881,7 +16882,7 @@ const ec = {
16881
16882
  };
16882
16883
  function QD(e, t, n) {
16883
16884
  const r = this, i = {
16884
- tokenize: C,
16885
+ tokenize: w,
16885
16886
  partial: !0
16886
16887
  };
16887
16888
  let a = 0, s = 0, o;
@@ -16919,18 +16920,18 @@ function QD(e, t, n) {
16919
16920
  return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), v;
16920
16921
  }
16921
16922
  function v(A) {
16922
- return a > 0 && $e(A) ? He(e, w, "linePrefix", a + 1)(A) : w(A);
16923
+ return a > 0 && $e(A) ? He(e, C, "linePrefix", a + 1)(A) : C(A);
16923
16924
  }
16924
- function w(A) {
16925
+ function C(A) {
16925
16926
  return A === null || we(A) ? e.check(ec, f, x)(A) : (e.enter("codeFlowValue"), _(A));
16926
16927
  }
16927
16928
  function _(A) {
16928
- return A === null || we(A) ? (e.exit("codeFlowValue"), w(A)) : (e.consume(A), _);
16929
+ return A === null || we(A) ? (e.exit("codeFlowValue"), C(A)) : (e.consume(A), _);
16929
16930
  }
16930
16931
  function x(A) {
16931
16932
  return e.exit("codeFenced"), t(A);
16932
16933
  }
16933
- function C(A, T, z) {
16934
+ function w(A, T, z) {
16934
16935
  let $ = 0;
16935
16936
  return P;
16936
16937
  function P(R) {
@@ -17246,8 +17247,8 @@ function ox(e, t) {
17246
17247
  // Find a void token that includes a break.
17247
17248
  o[p][0] === "exit" && o[p - 1][0] === "enter" && o[p][1].type === o[p - 1][1].type && o[p][1].start.line !== o[p][1].end.line && (f = p + 1, b.push(f), m._tokenizer = void 0, m.previous = void 0, m = m.next);
17248
17249
  for (s.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : b.pop(), p = b.length; p--; ) {
17249
- const v = o.slice(b[p], b[p + 1]), w = a.pop();
17250
- l.push([w, w + v.length - 1]), e.splice(w, 2, v);
17250
+ const v = o.slice(b[p], b[p + 1]), C = a.pop();
17251
+ l.push([C, C + v.length - 1]), e.splice(C, 2, v);
17251
17252
  }
17252
17253
  for (l.reverse(), p = -1; ++p < l.length; )
17253
17254
  u[g + l[p][0]] = g + l[p][1], g += l[p][1] - l[p][0] - 1;
@@ -17613,24 +17614,24 @@ function Bx(e, t, n) {
17613
17614
  function b(k) {
17614
17615
  if (k === null || k === 47 || k === 62 || vt(k)) {
17615
17616
  const F = k === 47, L = s.toLowerCase();
17616
- return !F && !a && nc.includes(L) ? (i = 1, r.interrupt ? t(k) : E(k)) : wx.includes(s.toLowerCase()) ? (i = 6, F ? (e.consume(k), v) : r.interrupt ? t(k) : E(k)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : a ? w(k) : _(k));
17617
+ return !F && !a && nc.includes(L) ? (i = 1, r.interrupt ? t(k) : E(k)) : wx.includes(s.toLowerCase()) ? (i = 6, F ? (e.consume(k), v) : r.interrupt ? t(k) : E(k)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : a ? C(k) : _(k));
17617
17618
  }
17618
17619
  return k === 45 || Nt(k) ? (e.consume(k), s += String.fromCharCode(k), b) : n(k);
17619
17620
  }
17620
17621
  function v(k) {
17621
17622
  return k === 62 ? (e.consume(k), r.interrupt ? t : E) : n(k);
17622
17623
  }
17623
- function w(k) {
17624
- return $e(k) ? (e.consume(k), w) : P(k);
17624
+ function C(k) {
17625
+ return $e(k) ? (e.consume(k), C) : P(k);
17625
17626
  }
17626
17627
  function _(k) {
17627
17628
  return k === 47 ? (e.consume(k), P) : k === 58 || k === 95 || zt(k) ? (e.consume(k), x) : $e(k) ? (e.consume(k), _) : P(k);
17628
17629
  }
17629
17630
  function x(k) {
17630
- return k === 45 || k === 46 || k === 58 || k === 95 || Nt(k) ? (e.consume(k), x) : C(k);
17631
+ return k === 45 || k === 46 || k === 58 || k === 95 || Nt(k) ? (e.consume(k), x) : w(k);
17631
17632
  }
17632
- function C(k) {
17633
- return k === 61 ? (e.consume(k), A) : $e(k) ? (e.consume(k), C) : _(k);
17633
+ function w(k) {
17634
+ return k === 61 ? (e.consume(k), A) : $e(k) ? (e.consume(k), w) : _(k);
17634
17635
  }
17635
17636
  function A(k) {
17636
17637
  return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), l = k, T) : $e(k) ? (e.consume(k), A) : z(k);
@@ -17639,7 +17640,7 @@ function Bx(e, t, n) {
17639
17640
  return k === l ? (e.consume(k), l = null, $) : k === null || we(k) ? n(k) : (e.consume(k), T);
17640
17641
  }
17641
17642
  function z(k) {
17642
- return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || vt(k) ? C(k) : (e.consume(k), z);
17643
+ return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || vt(k) ? w(k) : (e.consume(k), z);
17643
17644
  }
17644
17645
  function $(k) {
17645
17646
  return k === 47 || k === 62 || $e(k) ? _(k) : n(k);
@@ -17716,10 +17717,10 @@ function Sx(e, t, n) {
17716
17717
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(D), l;
17717
17718
  }
17718
17719
  function l(D) {
17719
- return D === 33 ? (e.consume(D), u) : D === 47 ? (e.consume(D), C) : D === 63 ? (e.consume(D), _) : zt(D) ? (e.consume(D), z) : n(D);
17720
+ return D === 33 ? (e.consume(D), u) : D === 47 ? (e.consume(D), w) : D === 63 ? (e.consume(D), _) : zt(D) ? (e.consume(D), z) : n(D);
17720
17721
  }
17721
17722
  function u(D) {
17722
- return D === 45 ? (e.consume(D), c) : D === 91 ? (e.consume(D), a = 0, g) : zt(D) ? (e.consume(D), w) : n(D);
17723
+ return D === 45 ? (e.consume(D), c) : D === 91 ? (e.consume(D), a = 0, g) : zt(D) ? (e.consume(D), C) : n(D);
17723
17724
  }
17724
17725
  function c(D) {
17725
17726
  return D === 45 ? (e.consume(D), m) : n(D);
@@ -17746,8 +17747,8 @@ function Sx(e, t, n) {
17746
17747
  function v(D) {
17747
17748
  return D === 62 ? Y(D) : D === 93 ? (e.consume(D), v) : f(D);
17748
17749
  }
17749
- function w(D) {
17750
- return D === null || D === 62 ? Y(D) : we(D) ? (s = w, H(D)) : (e.consume(D), w);
17750
+ function C(D) {
17751
+ return D === null || D === 62 ? Y(D) : we(D) ? (s = C, H(D)) : (e.consume(D), C);
17751
17752
  }
17752
17753
  function _(D) {
17753
17754
  return D === null ? n(D) : D === 63 ? (e.consume(D), x) : we(D) ? (s = _, H(D)) : (e.consume(D), _);
@@ -17755,7 +17756,7 @@ function Sx(e, t, n) {
17755
17756
  function x(D) {
17756
17757
  return D === 62 ? Y(D) : _(D);
17757
17758
  }
17758
- function C(D) {
17759
+ function w(D) {
17759
17760
  return zt(D) ? (e.consume(D), A) : n(D);
17760
17761
  }
17761
17762
  function A(D) {
@@ -18267,10 +18268,10 @@ function uw(e, t, n) {
18267
18268
  const i = {}, a = [];
18268
18269
  let s = [], o = [];
18269
18270
  const l = {
18270
- consume: w,
18271
+ consume: C,
18271
18272
  enter: _,
18272
18273
  exit: x,
18273
- attempt: T(C),
18274
+ attempt: T(w),
18274
18275
  check: T(A),
18275
18276
  interrupt: T(A, {
18276
18277
  interrupt: !0
@@ -18325,7 +18326,7 @@ function uw(e, t, n) {
18325
18326
  function v(I) {
18326
18327
  c = c(I);
18327
18328
  }
18328
- function w(I) {
18329
+ function C(I) {
18329
18330
  we(I) ? (r.line++, r.column = 1, r.offset += I === -3 ? 2 : 1, P()) : I !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === s[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = I;
18330
18331
  }
18331
18332
  function _(I, E) {
@@ -18336,7 +18337,7 @@ function uw(e, t, n) {
18336
18337
  const E = o.pop();
18337
18338
  return E.end = g(), u.events.push(["exit", E, u]), E;
18338
18339
  }
18339
- function C(I, E) {
18340
+ function w(I, E) {
18340
18341
  z(I, E.from);
18341
18342
  }
18342
18343
  function A(I, E) {
@@ -18353,13 +18354,13 @@ function uw(e, t, n) {
18353
18354
  function M(N) {
18354
18355
  return U;
18355
18356
  function U(ne) {
18356
- const J = ne !== null && N[ne], te = ne !== null && N.null, le = [
18357
+ const J = ne !== null && N[ne], te = ne !== null && N.null, ce = [
18357
18358
  // To do: add more extension tests.
18358
18359
  /* c8 ignore next 2 */
18359
18360
  ...Array.isArray(J) ? J : J ? [J] : [],
18360
18361
  ...Array.isArray(te) ? te : te ? [te] : []
18361
18362
  ];
18362
- return q(le)(ne);
18363
+ return q(ce)(ne);
18363
18364
  }
18364
18365
  }
18365
18366
  function q(N) {
@@ -18630,7 +18631,7 @@ function Aw(e) {
18630
18631
  codeFencedFenceInfo: s,
18631
18632
  codeFencedFenceMeta: s,
18632
18633
  codeIndented: a(te, s),
18633
- codeText: a(le, s),
18634
+ codeText: a(ce, s),
18634
18635
  codeTextData: $,
18635
18636
  data: $,
18636
18637
  codeFlowValue: $,
@@ -18663,7 +18664,7 @@ function Aw(e) {
18663
18664
  },
18664
18665
  exit: {
18665
18666
  atxHeading: l(),
18666
- atxHeadingSequence: C,
18667
+ atxHeadingSequence: w,
18667
18668
  autolink: l(),
18668
18669
  autolinkEmail: ne,
18669
18670
  autolinkProtocol: U,
@@ -18683,7 +18684,7 @@ function Aw(e) {
18683
18684
  data: P,
18684
18685
  definition: l(),
18685
18686
  definitionDestinationString: x,
18686
- definitionLabelString: w,
18687
+ definitionLabelString: C,
18687
18688
  definitionTitleString: _,
18688
18689
  emphasis: l(),
18689
18690
  hardBreakEscape: l(E),
@@ -18898,7 +18899,7 @@ function Aw(e) {
18898
18899
  const W = this.resume(), ae = this.stack[this.stack.length - 1];
18899
18900
  ae.value = W.replace(/(\r?\n|\r)$/g, "");
18900
18901
  }
18901
- function w(W) {
18902
+ function C(W) {
18902
18903
  const ae = this.resume(), ve = this.stack[this.stack.length - 1];
18903
18904
  ve.label = ae, ve.identifier = Xn(
18904
18905
  this.sliceSerialize(W)
@@ -18912,7 +18913,7 @@ function Aw(e) {
18912
18913
  const W = this.resume(), ae = this.stack[this.stack.length - 1];
18913
18914
  ae.url = W;
18914
18915
  }
18915
- function C(W) {
18916
+ function w(W) {
18916
18917
  const ae = this.stack[this.stack.length - 1];
18917
18918
  if (!ae.depth) {
18918
18919
  const ve = this.sliceSerialize(W).length;
@@ -19053,7 +19054,7 @@ function Aw(e) {
19053
19054
  value: ""
19054
19055
  };
19055
19056
  }
19056
- function le() {
19057
+ function ce() {
19057
19058
  return {
19058
19059
  type: "inlineCode",
19059
19060
  value: ""
@@ -19718,7 +19719,7 @@ const Iw = ({
19718
19719
  f.stopPropagation(), f.preventDefault(), r();
19719
19720
  },
19720
19721
  onKeyDown: (f) => {
19721
- var b, v, w, _;
19722
+ var b, v, C, _;
19722
19723
  if (f.key !== "Tab")
19723
19724
  switch (f.key) {
19724
19725
  case "Enter":
@@ -19728,14 +19729,14 @@ const Iw = ({
19728
19729
  case "ArrowRight":
19729
19730
  f.stopPropagation(), f.preventDefault();
19730
19731
  const x = f.currentTarget.closest("li");
19731
- let C = x == null ? void 0 : x.nextElementSibling;
19732
+ let w = x == null ? void 0 : x.nextElementSibling;
19732
19733
  if (f.key === "ArrowLeft") {
19733
19734
  const z = x == null ? void 0 : x.previousElementSibling;
19734
- z ? C = z : C = (b = x == null ? void 0 : x.parentElement) == null ? void 0 : b.lastElementChild;
19735
+ z ? w = z : w = (b = x == null ? void 0 : x.parentElement) == null ? void 0 : b.lastElementChild;
19735
19736
  } else
19736
- C || (C = (v = x == null ? void 0 : x.parentElement) == null ? void 0 : v.firstElementChild);
19737
- const A = C == null ? void 0 : C.className.split(" ")[0];
19738
- A && (h(A), (w = C == null ? void 0 : C.querySelector("button")) == null || w.focus());
19737
+ w || (w = (v = x == null ? void 0 : x.parentElement) == null ? void 0 : v.firstElementChild);
19738
+ const A = w == null ? void 0 : w.className.split(" ")[0];
19739
+ A && (h(A), (C = w == null ? void 0 : w.querySelector("button")) == null || C.focus());
19739
19740
  break;
19740
19741
  default:
19741
19742
  const T = f.currentTarget.closest("fieldset");
@@ -19891,31 +19892,31 @@ const Iw = ({
19891
19892
  };
19892
19893
  let Ga = null;
19893
19894
  const Uw = () => {
19894
- const e = ue(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, isInOverlay: i, dispatch: a, reportError: s } = Ve(on), o = Mn(), l = rD(o), u = (l == null ? void 0 : l.text) || Pw(o), [c, h] = ce(jr(o)), p = mf(o, "link-editor", `${n}-link`), m = ke(null);
19895
+ const e = ue(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, isInOverlay: i, dispatch: a, reportError: s } = Ve(on), o = Mn(), l = rD(o), u = (l == null ? void 0 : l.text) || Pw(o), [c, h] = le(jr(o)), p = mf(o, "link-editor", `${n}-link`), m = ke(null);
19895
19896
  fe(() => {
19896
- var w;
19897
- !c && r && ((w = m.current) == null || w.focus());
19897
+ var C;
19898
+ !c && r && ((C = m.current) == null || C.focus());
19898
19899
  }, [c]), fe(() => {
19899
19900
  Ga && clearTimeout(Ga), Ga = setTimeout(() => {
19900
19901
  h(jr(o));
19901
19902
  }, 500);
19902
19903
  }, [o.selection]);
19903
- const g = [], f = ["open", "edit", "remove"].map((w) => {
19904
+ const g = [], f = ["open", "edit", "remove"].map((C) => {
19904
19905
  const _ = {
19905
19906
  variant: "tertiary",
19906
19907
  size: "small",
19907
19908
  children: e.formatMessage(
19908
- { id: `${t}${w}` },
19909
+ { id: `${t}${C}` },
19909
19910
  { link: l == null ? void 0 : l.pretty }
19910
19911
  )
19911
19912
  };
19912
- switch (g.push({ className: w }), w) {
19913
+ switch (g.push({ className: C }), C) {
19913
19914
  case "open":
19914
19915
  _.href = (l == null ? void 0 : l.full) || "", _.onClick = (x) => {
19915
19916
  x.preventDefault(), x.stopPropagation(), window.open((l == null ? void 0 : l.full) || "", "_blank"), a([{ type: "showLinkEditor", value: !1 }]);
19916
19917
  }, _.children = /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
19917
19918
  _.children,
19918
- /* @__PURE__ */ d.jsx(We, { children: e.formatMessage({ id: `${t}${w}_text` }) })
19919
+ /* @__PURE__ */ d.jsx(We, { children: e.formatMessage({ id: `${t}${C}_text` }) })
19919
19920
  ] });
19920
19921
  break;
19921
19922
  case "edit":
@@ -19976,8 +19977,8 @@ const Uw = () => {
19976
19977
  callbacks: {
19977
19978
  onOpen: () => {
19978
19979
  setTimeout(() => {
19979
- var w;
19980
- return (w = m.current) == null ? void 0 : w.focus();
19980
+ var C;
19981
+ return (C = m.current) == null ? void 0 : C.focus();
19981
19982
  });
19982
19983
  }
19983
19984
  },
@@ -19989,13 +19990,13 @@ const Uw = () => {
19989
19990
  className: Z({ "show-labels": u }),
19990
19991
  meta: { shouldReset: !0, showRequiredLabels: !1 },
19991
19992
  functions: {
19992
- onSuccess: async (w) => {
19993
+ onSuccess: async (C) => {
19993
19994
  setTimeout(() => {
19994
19995
  const _ = [
19995
19996
  { type: "showLinkEditor", value: !1 }
19996
19997
  ];
19997
- if (w.url) {
19998
- const { full: x } = Rc(w.url);
19998
+ if (C.url) {
19999
+ const { full: x } = Rc(C.url);
19999
20000
  l != null && l.full ? Ww(o, x, n, s) : qw(o, x, n, s), _.push({ type: "lastAnchor", value: null });
20000
20001
  }
20001
20002
  a(_);
@@ -20013,7 +20014,7 @@ const Uw = () => {
20013
20014
  }
20014
20015
  ) });
20015
20016
  }, Hw = () => {
20016
- const e = Mn(), { setFocus: t, dispatch: n } = Ve(on), [r, i] = ce(!1);
20017
+ const e = Mn(), { setFocus: t, dispatch: n } = Ve(on), [r, i] = le(!1);
20017
20018
  return fe(() => {
20018
20019
  i(jr(e));
20019
20020
  }, [e.selection]), /* @__PURE__ */ d.jsx(
@@ -20154,7 +20155,7 @@ const aC = ({
20154
20155
  }
20155
20156
  ];
20156
20157
  t === "<br>" && (t = "");
20157
- const w = {
20158
+ const C = {
20158
20159
  editorKey: null,
20159
20160
  originalValue: t || "",
20160
20161
  initialValue: t ? null : v,
@@ -20173,8 +20174,8 @@ const aC = ({
20173
20174
  lastKey: null,
20174
20175
  hasInteracted: !1,
20175
20176
  hasLoaded: !1
20176
- }, [_, x] = ur(Ji, w), {
20177
- editorKey: C,
20177
+ }, [_, x] = ur(Ji, C), {
20178
+ editorKey: w,
20178
20179
  originalValue: A,
20179
20180
  initialValue: T,
20180
20181
  stringValue: z,
@@ -20401,7 +20402,7 @@ const aC = ({
20401
20402
  p ? /* @__PURE__ */ d.jsx(Iw, { onFallbackClick: m }) : null
20402
20403
  ]
20403
20404
  },
20404
- C
20405
+ w
20405
20406
  ),
20406
20407
  /* @__PURE__ */ d.jsx(
20407
20408
  ld,
@@ -20425,7 +20426,7 @@ const v_ = ({
20425
20426
  isDisabled: a = !1,
20426
20427
  className: s = ""
20427
20428
  }) => {
20428
- const [o, l] = ce(
20429
+ const [o, l] = le(
20429
20430
  typeof r == "boolean" || typeof r == "string" ? r : n[0].value
20430
20431
  );
20431
20432
  fe(() => {
@@ -20483,13 +20484,13 @@ function sC({
20483
20484
  button: a,
20484
20485
  callback: s
20485
20486
  }) {
20486
- const o = ue(), l = "profileImageChange_", [u, c] = ce(r), [h, p] = ce(!1), [m, g] = ce(!1), f = ke(null), b = async (x) => {
20487
+ const o = ue(), l = "profileImageChange_", [u, c] = le(r), [h, p] = le(!1), [m, g] = le(!1), f = ke(null), b = async (x) => {
20487
20488
  p(!0), g(!1);
20488
20489
  try {
20489
- const C = x.target.files && x.target.files[0];
20490
- if (!C || !t)
20490
+ const w = x.target.files && x.target.files[0];
20491
+ if (!w || !t)
20491
20492
  throw p(!1), new Error("Image file or userID is missing");
20492
- const A = await i({ fileObject: C, userId: t }), T = {
20493
+ const A = await i({ fileObject: w, userId: t }), T = {
20493
20494
  thumbnail: A.thumbnailURL,
20494
20495
  full: A.originalURL
20495
20496
  };
@@ -20502,7 +20503,7 @@ function sC({
20502
20503
  p(!1);
20503
20504
  }, {
20504
20505
  upload: v = o.formatMessage({ id: `${l}cta_upload` }),
20505
- change: w = o.formatMessage({ id: `${l}cta_change` }),
20506
+ change: C = o.formatMessage({ id: `${l}cta_change` }),
20506
20507
  uploading: _ = o.formatMessage({ id: `${l}cta_uploading` })
20507
20508
  } = (a == null ? void 0 : a.text) || {};
20508
20509
  return /* @__PURE__ */ d.jsxs("div", { className: Z("profile-image-change-figure", e), children: [
@@ -20539,7 +20540,7 @@ function sC({
20539
20540
  "data-gtm-event-type": `${u ? "change-photo" : "add-photo"}-click`,
20540
20541
  className: "gtm-trackable",
20541
20542
  disabled: h,
20542
- children: h ? _ : u ? w : v
20543
+ children: h ? _ : u ? C : v
20543
20544
  }
20544
20545
  )
20545
20546
  ] });
@@ -20606,20 +20607,20 @@ const uC = ({
20606
20607
  initialFormStatus: u = "NOT_SUBMITTED"
20607
20608
  /* NOT_SUBMITTED */
20608
20609
  }) => {
20609
- const [c, h] = ce([]), [p, m] = ce(!0), [g, f] = ce(u), { formatMessage: b } = ue(), v = async (x) => {
20610
+ const [c, h] = le([]), [p, m] = le(!0), [g, f] = le(u), { formatMessage: b } = ue(), v = async (x) => {
20610
20611
  x.preventDefault();
20611
20612
  try {
20612
20613
  await l(c), h([]), f(
20613
20614
  "SUCCESS"
20614
20615
  /* SUCCESS */
20615
20616
  );
20616
- } catch (C) {
20617
+ } catch (w) {
20617
20618
  f(
20618
20619
  "ERROR"
20619
20620
  /* ERROR */
20620
- ), o(C);
20621
+ ), o(w);
20621
20622
  }
20622
- }, w = (x) => {
20623
+ }, C = (x) => {
20623
20624
  x.preventDefault(), f(
20624
20625
  "NOT_SUBMITTED"
20625
20626
  /* NOT_SUBMITTED */
@@ -20637,9 +20638,9 @@ const uC = ({
20637
20638
  ] }) }),
20638
20639
  /* @__PURE__ */ d.jsx(nn, {}),
20639
20640
  /* @__PURE__ */ d.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
20640
- /* @__PURE__ */ d.jsx(Te, { variant: "secondary", onClick: w, children: b({ id: "inviteForm_ctaSendMoreInvites" }) }),
20641
+ /* @__PURE__ */ d.jsx(Te, { variant: "secondary", onClick: C, children: b({ id: "inviteForm_ctaSendMoreInvites" }) }),
20641
20642
  /* @__PURE__ */ d.jsx(Te, { onClick: _, children: b({ id: "inviteForm_ctaDone" }) })
20642
- ] }) : /* @__PURE__ */ d.jsx(Te, { onClick: w, children: b({ id: "inviteForm_ctaTryAgain" }) }) })
20643
+ ] }) : /* @__PURE__ */ d.jsx(Te, { onClick: C, children: b({ id: "inviteForm_ctaTryAgain" }) }) })
20643
20644
  ] }) : /* @__PURE__ */ d.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ d.jsxs(
20644
20645
  "form",
20645
20646
  {
@@ -20661,7 +20662,7 @@ const uC = ({
20661
20662
  h(x), m(!x.length);
20662
20663
  },
20663
20664
  autoFocus: !1,
20664
- getLabel: (x, C, A) => /* @__PURE__ */ d.jsxs("div", { className: "email text-medium", children: [
20665
+ getLabel: (x, w, A) => /* @__PURE__ */ d.jsxs("div", { className: "email text-medium", children: [
20665
20666
  /* @__PURE__ */ d.jsx("div", { "data-tag-item": !0, children: x }),
20666
20667
  /* @__PURE__ */ d.jsx(
20667
20668
  Te,
@@ -20670,13 +20671,13 @@ const uC = ({
20670
20671
  size: "small",
20671
20672
  icon: { icon: "close" },
20672
20673
  onClick: () => {
20673
- A(C), m(!c.length);
20674
+ A(w), m(!c.length);
20674
20675
  },
20675
20676
  className: "remove-email-button",
20676
20677
  screenreaderText: b({ id: "overlay_close" })
20677
20678
  }
20678
20679
  )
20679
- ] }, C)
20680
+ ] }, w)
20680
20681
  }
20681
20682
  )
20682
20683
  ] }),
@@ -20691,7 +20692,7 @@ const uC = ({
20691
20692
  CONFIRMED_PASSWORD: "confirmedPassword",
20692
20693
  CURRENT_PASSWORD: "oldPassword"
20693
20694
  }, b_ = ({ functions: e, ...t }) => {
20694
- const { formatMessage: n } = ue(), [r, i] = ce(null), [a, s] = ce(!1), [o, l] = ce({
20695
+ const { formatMessage: n } = ue(), [r, i] = le(null), [a, s] = le(!1), [o, l] = le({
20695
20696
  isMoreThanEightCharacters: !1,
20696
20697
  includesNumberAndSymbol: !1,
20697
20698
  includesLowerAndUppercase: !1
@@ -20756,16 +20757,16 @@ const uC = ({
20756
20757
  ] });
20757
20758
  };
20758
20759
  const lC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
20759
- var w;
20760
- const i = ue(), a = "profileForm_", s = Ve(Ht), [o, l] = ce(s.image), {
20761
- uploadImage: u,
20762
- onSuccess: c = async (_) => {
20760
+ var x, w;
20761
+ const i = ue(), a = "profileForm_", s = Ve(Ht), [o, l] = le(s.image), [u, c] = le(!1), {
20762
+ uploadImage: h,
20763
+ onSuccess: p = async (A) => {
20763
20764
  },
20764
- onCancel: h = () => {
20765
+ onCancel: m = () => {
20765
20766
  },
20766
- onFailure: p = () => {
20767
+ onFailure: g = () => {
20767
20768
  }
20768
- } = t, { buildLocation: m, isValidPlace: g, predictPlaces: f } = e.useMaps(), { context: b = "ProfileForm", event: v = "profile-form-submit-click" } = r || {};
20769
+ } = t, { buildLocation: f, isValidPlace: b, predictPlaces: v } = e.useMaps(), { context: C = "ProfileForm", event: _ = "profile-form-submit-click" } = r || {};
20769
20770
  return /* @__PURE__ */ d.jsx(
20770
20771
  bn,
20771
20772
  {
@@ -20777,7 +20778,7 @@ const lC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
20777
20778
  userName: s.name,
20778
20779
  userId: s.id,
20779
20780
  src: o,
20780
- uploadImage: u,
20781
+ uploadImage: h,
20781
20782
  callback: l,
20782
20783
  button: {
20783
20784
  text: {
@@ -20818,19 +20819,21 @@ const lC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
20818
20819
  type: "autocomplete",
20819
20820
  label: i.formatMessage({ id: `${a}location` }),
20820
20821
  placeholder: i.formatMessage({ id: `${a}location_placeholder` }),
20821
- value: (w = s.location) == null ? void 0 : w.country,
20822
+ value: ((x = s.location) == null ? void 0 : x.en) || ((w = s.location) == null ? void 0 : w.country),
20822
20823
  validation: [
20823
20824
  { condition: "required" },
20824
20825
  {
20825
- condition: ({ location: _ }) => !g(_)
20826
+ condition: ({ location: A }) => A && !u ? !1 : !b(A),
20827
+ error: i.formatMessage({ id: `${a}location_error` })
20826
20828
  }
20827
20829
  ],
20828
20830
  functions: {
20829
20831
  onChange: () => {
20832
+ u || c(!0);
20830
20833
  },
20831
20834
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
20832
20835
  // @ts-ignore
20833
- onKeyInput: f
20836
+ onKeyInput: v
20834
20837
  }
20835
20838
  },
20836
20839
  {
@@ -20853,22 +20856,22 @@ const lC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
20853
20856
  ...n
20854
20857
  },
20855
20858
  intlPath: a,
20856
- gtm: { context: b, event: v },
20859
+ gtm: { context: C, event: _ },
20857
20860
  functions: {
20858
- onSuccess: async (_) => {
20861
+ onSuccess: async (A) => {
20859
20862
  try {
20860
- const x = {
20861
- ..._,
20863
+ const T = {
20864
+ ...A,
20862
20865
  image: o || null,
20863
- location: await m(_ == null ? void 0 : _.location)
20866
+ location: u ? await f(A == null ? void 0 : A.location) : s.location
20864
20867
  };
20865
- await c(x);
20868
+ await p(T);
20866
20869
  } catch {
20867
- p();
20870
+ g();
20868
20871
  }
20869
20872
  },
20870
- onCancel: h,
20871
- onFailure: p
20873
+ onCancel: m,
20874
+ onFailure: g
20872
20875
  },
20873
20876
  button: { size: "large", text: i.formatMessage({ id: `${a}cta` }) }
20874
20877
  }
@@ -21235,10 +21238,10 @@ const pC = {
21235
21238
  successMessage: m
21236
21239
  }, [f, b] = ur(Ji, pC), {
21237
21240
  validFields: v,
21238
- emailDetails: w,
21241
+ emailDetails: C,
21239
21242
  shouldManuallyApprove: _,
21240
21243
  shouldDisableButton: x,
21241
- showSuccessMessage: C,
21244
+ showSuccessMessage: w,
21242
21245
  showError: A
21243
21246
  } = f, [T, z] = _c([
21244
21247
  "signup-this-session",
@@ -21257,11 +21260,11 @@ const pC = {
21257
21260
  }, [_]), fe(() => {
21258
21261
  T["signup-this-session"] && b([{ type: "showSuccessMessage", value: !0 }]);
21259
21262
  }, [T]), fe(() => {
21260
- C && T["functional-cookie-consent"] && z("signup-this-session", "true", {
21263
+ w && T["functional-cookie-consent"] && z("signup-this-session", "true", {
21261
21264
  path: "/",
21262
21265
  maxAge: 3600
21263
21266
  });
21264
- }, [C]);
21267
+ }, [w]);
21265
21268
  const P = qt(() => hC({
21266
21269
  placeholders: n,
21267
21270
  labels: t,
@@ -21272,8 +21275,8 @@ const pC = {
21272
21275
  dispatch: b,
21273
21276
  dataToSubmit: s,
21274
21277
  intl: l
21275
- }), [s, r, l, $, g, f]), I = x ? !0 : _ ? !Object.values(v).every((E) => E === !0) : !v.name || !v.email || ["exists", "pending", "verify"].includes(w.boxType);
21276
- return g.successMessage && C ? /* @__PURE__ */ d.jsx(mC, { className: e }) : /* @__PURE__ */ d.jsxs(
21278
+ }), [s, r, l, $, g, f]), I = x ? !0 : _ ? !Object.values(v).every((E) => E === !0) : !v.name || !v.email || ["exists", "pending", "verify"].includes(C.boxType);
21279
+ return g.successMessage && w ? /* @__PURE__ */ d.jsx(mC, { className: e }) : /* @__PURE__ */ d.jsxs(
21277
21280
  "fieldset",
21278
21281
  {
21279
21282
  className: Z("signup-form-fieldset", e),
@@ -21472,8 +21475,8 @@ const gC = ({
21472
21475
  functions: {
21473
21476
  ...n == null ? void 0 : n.functions,
21474
21477
  onSuccess: async (b) => {
21475
- var v, w;
21476
- (v = n == null ? void 0 : n.functions) != null && v.onSuccess && await ((w = n == null ? void 0 : n.functions) == null ? void 0 : w.onSuccess(b)), h(!1);
21478
+ var v, C;
21479
+ (v = n == null ? void 0 : n.functions) != null && v.onSuccess && await ((C = n == null ? void 0 : n.functions) == null ? void 0 : C.onSuccess(b)), h(!1);
21477
21480
  },
21478
21481
  onCancel: p
21479
21482
  }
@@ -21613,7 +21616,7 @@ const es = "cookieBanner_", ts = [
21613
21616
  "apolitical-performance-cookie-consent",
21614
21617
  "functional-cookie-consent"
21615
21618
  ], ns = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), vC = () => {
21616
- const e = ue(), [t, n, r] = _c(ts), [i, a] = ce(
21619
+ const e = ue(), [t, n, r] = _c(ts), [i, a] = le(
21617
21620
  !t["apol-cookie-banner"]
21618
21621
  ), s = () => {
21619
21622
  ts.forEach((c) => {
@@ -22076,8 +22079,8 @@ const Gn = "footer_", Ui = "SiteFooter", fc = ({ group: e }) => {
22076
22079
  if (o.href) {
22077
22080
  let _ = o.gtmType || `${e}-click`;
22078
22081
  if (_.includes(".")) {
22079
- const x = _.split("."), C = x[x.length - 2];
22080
- _ = `${C === "topics" ? `${C}-` : ""}${x[x.length - 1]}`;
22082
+ const x = _.split("."), w = x[x.length - 2];
22083
+ _ = `${w === "topics" ? `${w}-` : ""}${x[x.length - 1]}`;
22081
22084
  }
22082
22085
  p = {
22083
22086
  href: o.href
@@ -22094,10 +22097,10 @@ const Gn = "footer_", Ui = "SiteFooter", fc = ({ group: e }) => {
22094
22097
  });
22095
22098
  }
22096
22099
  const m = o.order && o.order[0] && o[o.order[0]], g = m && o[o.order[0]].order, f = p && window.location.pathname === o.href;
22097
- let b = {}, v = {}, w = {};
22100
+ let b = {}, v = {}, C = {};
22098
22101
  if (f && (b = { ...b, "aria-current": "page" }), m) {
22099
22102
  const _ = o.menuId || e, x = {
22100
- onClick: (C) => qe.events.onClick(C, { id: _, callback: i, isOpen: r[_] }),
22103
+ onClick: (w) => qe.events.onClick(w, { id: _, callback: i, isOpen: r[_] }),
22101
22104
  onFocus: () => qe.events.onFocus({ id: _ }),
22102
22105
  onBlur: () => qe.events.onBlur({ id: _, callback: i }),
22103
22106
  onMouseLeave: () => qe.events.onBlur({ id: _, callback: i }),
@@ -22106,11 +22109,11 @@ const Gn = "footer_", Ui = "SiteFooter", fc = ({ group: e }) => {
22106
22109
  v = {
22107
22110
  ...x,
22108
22111
  id: _ === xt.SITE ? xt.SITE : xt.ACCOUNT
22109
- }, n && (g && (w = {
22112
+ }, n && (g && (C = {
22110
22113
  ...x,
22111
22114
  className: "navigation-button",
22112
- onKeyPress: (C) => {
22113
- C.key === "Enter" && qe.events.onClick(C, { id: _, callback: i, isOpen: r[_] });
22115
+ onKeyPress: (w) => {
22116
+ w.key === "Enter" && qe.events.onClick(w, { id: _, callback: i, isOpen: r[_] });
22114
22117
  },
22115
22118
  "aria-haspopup": !0,
22116
22119
  "aria-expanded": r[_],
@@ -22134,7 +22137,7 @@ const Gn = "footer_", Ui = "SiteFooter", fc = ({ group: e }) => {
22134
22137
  c ? Te : "a",
22135
22138
  p,
22136
22139
  s.formatMessage({ id: h })
22137
- ) : n && o.order && g ? /* @__PURE__ */ d.jsxs("button", { ...w, children: [
22140
+ ) : n && o.order && g ? /* @__PURE__ */ d.jsxs("button", { ...C, children: [
22138
22141
  s.formatMessage({ id: h }),
22139
22142
  /* @__PURE__ */ d.jsx(We, { children: s.formatMessage({
22140
22143
  id: `header_menu_${r[xt.SITE] ? "hide" : "show"}`
@@ -22158,13 +22161,13 @@ const Gn = "footer_", Ui = "SiteFooter", fc = ({ group: e }) => {
22158
22161
  }),
22159
22162
  children: [
22160
22163
  s.formatMessage({ id: `${h}_${_}` }),
22161
- /* @__PURE__ */ d.jsx("ul", { children: o[_].order.map((C) => /* @__PURE__ */ d.jsx(
22164
+ /* @__PURE__ */ d.jsx("ul", { children: o[_].order.map((w) => /* @__PURE__ */ d.jsx(
22162
22165
  Vi,
22163
22166
  {
22164
- id: `${e}.${_}.${C}`,
22167
+ id: `${e}.${_}.${w}`,
22165
22168
  ...x
22166
22169
  },
22167
- C
22170
+ w
22168
22171
  )) })
22169
22172
  ]
22170
22173
  },
@@ -22222,8 +22225,8 @@ const Lf = ({ showNavigation: e = !0 }) => {
22222
22225
  }
22223
22226
  }
22224
22227
  });
22225
- const p = (v, w, _ = !1) => {
22226
- qe.handleMenus({ id: v, value: w, menus: h.current.menus, dispatch: o, forceHandle: _ });
22228
+ const p = (v, C, _ = !1) => {
22229
+ qe.handleMenus({ id: v, value: C, menus: h.current.menus, dispatch: o, forceHandle: _ });
22227
22230
  }, m = ke(null), g = (v) => {
22228
22231
  v.key === "Escape" && [
22229
22232
  "site-navigation",
@@ -22231,16 +22234,16 @@ const Lf = ({ showNavigation: e = !0 }) => {
22231
22234
  "account-navigation"
22232
22235
  /* ACCOUNT */
22233
22236
  ].forEach(
22234
- (w) => {
22235
- h.current.menus[w] && p(w, !1, !0);
22237
+ (C) => {
22238
+ h.current.menus[C] && p(C, !1, !0);
22236
22239
  }
22237
22240
  );
22238
22241
  };
22239
22242
  fe(() => {
22240
22243
  var v;
22241
22244
  return (v = document.getElementById("header")) == null || v.addEventListener("keydown", g), () => {
22242
- var w;
22243
- (w = document.getElementById("header")) == null || w.removeEventListener("keydown", g);
22245
+ var C;
22246
+ (C = document.getElementById("header")) == null || C.removeEventListener("keydown", g);
22244
22247
  };
22245
22248
  }, []), Nr(() => {
22246
22249
  u[
@@ -22489,7 +22492,7 @@ const yC = () => {
22489
22492
  variant: h = "default",
22490
22493
  circle: p = "default",
22491
22494
  modal: m = "default"
22492
- } = a, g = Ch(), [f, b] = ce(""), v = (A) => {
22495
+ } = a, g = Ch(), [f, b] = le(""), v = (A) => {
22493
22496
  const {
22494
22497
  detail: { message: T }
22495
22498
  } = A;
@@ -22498,17 +22501,17 @@ const yC = () => {
22498
22501
  fe(() => (window.scrollTo(0, 0), document.addEventListener("ariaLive", v), () => {
22499
22502
  document.removeEventListener("ariaLive", v);
22500
22503
  }), [g]);
22501
- const w = Di(e, { locale: o }), _ = Di(t, {
22504
+ const C = Di(e, { locale: o }), _ = Di(t, {
22502
22505
  locale: o
22503
22506
  }), x = Di(n, {
22504
22507
  locale: o
22505
- }), C = {};
22506
- return c !== "default" && (C[c] = !0), h !== "default" && (C[h] = !0), p !== "default" && (C[p] = !0), /* @__PURE__ */ d.jsx(vh, { onError: r, fallback: /* @__PURE__ */ d.jsx(yC, {}), children: /* @__PURE__ */ d.jsxs(oh, { fallback: null, children: [
22508
+ }), w = {};
22509
+ return c !== "default" && (w[c] = !0), h !== "default" && (w[h] = !0), p !== "default" && (w[p] = !0), /* @__PURE__ */ d.jsx(vh, { onError: r, fallback: /* @__PURE__ */ d.jsx(yC, {}), children: /* @__PURE__ */ d.jsxs(oh, { fallback: null, children: [
22507
22510
  /* @__PURE__ */ d.jsxs(
22508
22511
  "div",
22509
22512
  {
22510
22513
  id: "wrapper",
22511
- className: Z(s, C, { "has-footer": u }),
22514
+ className: Z(s, w, { "has-footer": u }),
22512
22515
  children: [
22513
22516
  /* @__PURE__ */ d.jsx(Lf, { showNavigation: l }),
22514
22517
  /* @__PURE__ */ d.jsxs("main", { id: "content-wrapper", children: [
@@ -22523,7 +22526,7 @@ const yC = () => {
22523
22526
  ),
22524
22527
  re.createElement(c === "bold" ? Hc : "div", {
22525
22528
  id: "content",
22526
- children: w,
22529
+ children: C,
22527
22530
  className: Z({ "large-modal": m === "large" })
22528
22531
  })
22529
22532
  ] }),
@@ -22646,7 +22649,7 @@ const k_ = ({
22646
22649
  }, wC = {
22647
22650
  showForm: !1
22648
22651
  }, Bo = Et(wC), CC = ({ children: e }) => {
22649
- const [t, n] = ce({
22652
+ const [t, n] = le({
22650
22653
  showForm: !1
22651
22654
  });
22652
22655
  return /* @__PURE__ */ d.jsx(Bo.Provider, { value: { ...t, updateConversation: n }, children: e });
@@ -22706,13 +22709,13 @@ const nt = "discussion_form_", oa = ({
22706
22709
  gtmContext: h = "DiscussionForm"
22707
22710
  }) => {
22708
22711
  var Se, je, Ye;
22709
- const p = ue(), m = Ve(Ht), [g, f] = ce(""), {
22712
+ const p = ue(), m = Ve(Ht), [g, f] = le(""), {
22710
22713
  isLoading: b = !1,
22711
22714
  isInWrapper: v = !1,
22712
- isInOverlay: w = !1,
22715
+ isInOverlay: C = !1,
22713
22716
  isAutoFocused: _ = !1,
22714
22717
  isEditing: x = !1,
22715
- hasTitleField: C = !1,
22718
+ hasTitleField: w = !1,
22716
22719
  isPrepopulated: A = !1,
22717
22720
  showTitle: T = !1,
22718
22721
  showGuidelines: z = !0,
@@ -22737,10 +22740,10 @@ const nt = "discussion_form_", oa = ({
22737
22740
  props: ie = {
22738
22741
  create: { projectNames: ["questions-answers"] }
22739
22742
  }
22740
- } = u, [D, M] = ce({
22741
- title: C && C.text || "",
22743
+ } = u, [D, M] = le({
22744
+ title: w && w.text || "",
22742
22745
  body: x && x.text || A && A.text || ""
22743
- }), [q, k] = ce(o.error || !1), [F, L] = ce(!1);
22746
+ }), [q, k] = le(o.error || !1), [F, L] = le(!1);
22744
22747
  if (fe(() => {
22745
22748
  l && !x && A && A !== D.body && M({ ...D, body: A.text || "" });
22746
22749
  }, [A]), b)
@@ -22831,16 +22834,16 @@ const nt = "discussion_form_", oa = ({
22831
22834
  pi = setTimeout(() => {
22832
22835
  k(!1), L(!1), f("");
22833
22836
  }, 5e3);
22834
- }, te = !D.title || !zo(D.title), le = !D.body || !zo(D.body);
22835
- let X = le;
22836
- C && (X = te && le);
22837
+ }, te = !D.title || !zo(D.title), ce = !D.body || !zo(D.body);
22838
+ let X = ce;
22839
+ w && (X = te && ce);
22837
22840
  const pe = F === "submitting", ge = [
22838
22841
  {
22839
22842
  component: _C,
22840
22843
  props: {
22841
22844
  formID: U,
22842
22845
  intlPath: nt,
22843
- showLabel: C !== !1,
22846
+ showLabel: w !== !1,
22844
22847
  type: t.type
22845
22848
  }
22846
22849
  },
@@ -22856,7 +22859,7 @@ const nt = "discussion_form_", oa = ({
22856
22859
  "action"
22857
22860
  ),
22858
22861
  maxLength: a,
22859
- meta: { isInOverlay: w },
22862
+ meta: { isInOverlay: C },
22860
22863
  functions: {
22861
22864
  onChange: N,
22862
22865
  onMention: Y,
@@ -22864,7 +22867,7 @@ const nt = "discussion_form_", oa = ({
22864
22867
  clickMentionFallback: G
22865
22868
  },
22866
22869
  data: c,
22867
- autoFocus: x !== !1 || _ && !C,
22870
+ autoFocus: x !== !1 || _ && !w,
22868
22871
  "aria-invalid": !!q,
22869
22872
  "aria-errormessage": "error-message"
22870
22873
  }
@@ -22874,10 +22877,10 @@ const nt = "discussion_form_", oa = ({
22874
22877
  props: { intlPath: nt, showGuidelines: z, type: t.type, gtmContext: h }
22875
22878
  }
22876
22879
  ];
22877
- $ && ge.push({ component: nn }), C && ge.unshift({
22880
+ $ && ge.push({ component: nn }), w && ge.unshift({
22878
22881
  id: "title",
22879
22882
  type: "text",
22880
- value: C.text,
22883
+ value: w.text,
22881
22884
  limit: 250,
22882
22885
  autoFocus: _,
22883
22886
  label: p.formatMessage({ id: `${nt}titleField_label` }),
@@ -22895,7 +22898,7 @@ const nt = "discussion_form_", oa = ({
22895
22898
  ]
22896
22899
  });
22897
22900
  let xe = !m || !m.id || !n || X || pe;
22898
- return x && (C ? xe = xe || D.body === x.text && D.title === C.text : xe = xe || D.body === x.text), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
22901
+ return x && (w ? xe = xe || D.body === x.text && D.title === w.text : xe = xe || D.body === x.text), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
22899
22902
  /* @__PURE__ */ d.jsxs(
22900
22903
  bn,
22901
22904
  {
@@ -23028,7 +23031,7 @@ const FC = ({
23028
23031
  fe(() => {
23029
23032
  p([{ type: "userLikedContent", value: i }]);
23030
23033
  }, [i]);
23031
- const w = qt(
23034
+ const C = qt(
23032
23035
  () => AC(n, as),
23033
23036
  [n]
23034
23037
  ), _ = (T) => {
@@ -23062,7 +23065,7 @@ const FC = ({
23062
23065
  } finally {
23063
23066
  p([{ type: "ignoreInteractions", value: !1 }]);
23064
23067
  }
23065
- }, C = () => {
23068
+ }, w = () => {
23066
23069
  ss = setTimeout(() => {
23067
23070
  p([{ type: "showLikers", value: !1 }]);
23068
23071
  }, 500);
@@ -23080,7 +23083,7 @@ const FC = ({
23080
23083
  A(), p([{ type: "showLikers", value: !0 }]);
23081
23084
  },
23082
23085
  onMouseLeave: () => {
23083
- C();
23086
+ w();
23084
23087
  }
23085
23088
  },
23086
23089
  /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
@@ -23128,7 +23131,7 @@ const FC = ({
23128
23131
  onFocus: () => {
23129
23132
  A();
23130
23133
  },
23131
- onBlur: () => C,
23134
+ onBlur: () => w,
23132
23135
  onClick: (T) => {
23133
23136
  var $;
23134
23137
  T.preventDefault(), T.stopPropagation(), A(), p([{ type: "showLikers", value: !0 }]);
@@ -23143,7 +23146,7 @@ const FC = ({
23143
23146
  }
23144
23147
  },
23145
23148
  onKeyDown: (T) => {
23146
- T.key === "Escape" && (T.preventDefault(), T.stopPropagation(), C());
23149
+ T.key === "Escape" && (T.preventDefault(), T.stopPropagation(), w());
23147
23150
  },
23148
23151
  "aria-expanded": b,
23149
23152
  "aria-controls": `likes-tooltip-${a.slug}`,
@@ -23160,7 +23163,7 @@ const FC = ({
23160
23163
  isOpen: b,
23161
23164
  isLoading: n.length === 0,
23162
23165
  children: n.length && /* @__PURE__ */ d.jsxs("ul", { children: [
23163
- w.map((T, z) => {
23166
+ C.map((T, z) => {
23164
23167
  if (typeof T == "string" || !T.name)
23165
23168
  return null;
23166
23169
  const $ = {};
@@ -23239,7 +23242,7 @@ const SC = 3e3, jC = ({
23239
23242
  url: e,
23240
23243
  gtm: t = { context: "ShareLink", event: "copy-link-click" }
23241
23244
  }) => {
23242
- const n = ue(), [r, i] = ce({
23245
+ const n = ue(), [r, i] = le({
23243
23246
  isOpen: !1,
23244
23247
  isCopied: !1
23245
23248
  });
@@ -23301,13 +23304,13 @@ const ua = ({
23301
23304
  }) => {
23302
23305
  var Se, je, Ye, Pe, Oe, Ie, Ae, Ge;
23303
23306
  const f = ue(), b = Ve(Ht), v = Ve(Bo), {
23304
- createContent: w = async () => {
23307
+ createContent: C = async () => {
23305
23308
  },
23306
23309
  deleteContent: _ = async () => {
23307
23310
  },
23308
23311
  updateContent: x = async () => {
23309
23312
  }
23310
- } = s.content || {}, { createLike: C = () => {
23313
+ } = s.content || {}, { createLike: w = () => {
23311
23314
  }, deleteLike: A = () => {
23312
23315
  } } = s.likes || {}, { openComments: T = () => {
23313
23316
  } } = s.comments || {}, { listMembers: z = () => Promise.resolve([]), clickMentionFallback: $ = () => {
@@ -23320,21 +23323,21 @@ const ua = ({
23320
23323
  userLiked: R,
23321
23324
  comments: Y = 0,
23322
23325
  mentions: H
23323
- } = t, G = b && b.id && typeof P != "string" && P.id && P.id === b.id || !1, ie = typeof I == "boolean" ? I : !0, D = G && (!t.createdAt || jh(t.createdAt, 10, "seconds")), M = ke(null), [q, k] = ce({
23326
+ } = t, G = b && b.id && typeof P != "string" && P.id && P.id === b.id || !1, ie = typeof I == "boolean" ? I : !0, D = G && (!t.createdAt || jh(t.createdAt, 10, "seconds")), M = ke(null), [q, k] = le({
23324
23327
  title: t && t.body !== t.title && t.title || "",
23325
23328
  body: t && t.body || "",
23326
23329
  isEditing: !1,
23327
23330
  didEdit: t && t.isEdited || !1,
23328
23331
  postBody: ""
23329
- }), [F, L] = ce(!1), [N, U] = ce(
23332
+ }), [F, L] = le(!1), [N, U] = le(
23330
23333
  D ? "highlighted" : "default"
23331
23334
  /* Default */
23332
- ), [ne, J] = ce("");
23335
+ ), [ne, J] = le("");
23333
23336
  fe(() => {
23334
23337
  const be = M.current;
23335
23338
  if (!(!be || N === "default"))
23336
- return document.addEventListener("discussionFormSubmitted", te), be.addEventListener("transitionend", le), () => {
23337
- document.removeEventListener("discussionFormSubmitted", te), be.removeEventListener("transitionend", le);
23339
+ return document.addEventListener("discussionFormSubmitted", te), be.addEventListener("transitionend", ce), () => {
23340
+ document.removeEventListener("discussionFormSubmitted", te), be.removeEventListener("transitionend", ce);
23338
23341
  };
23339
23342
  }, []), fe(() => {
23340
23343
  k({
@@ -23361,8 +23364,8 @@ const ua = ({
23361
23364
  /* Fading */
23362
23365
  );
23363
23366
  }, 1e3);
23364
- }, le = ({ propertyName: be }) => {
23365
- be === "background-color" && U((W) => (W === "default" && (document.removeEventListener("discussionFormSubmitted", te), M.current && M.current.removeEventListener("transitionend", le)), W === "fading" ? "default" : W));
23367
+ }, ce = ({ propertyName: be }) => {
23368
+ be === "background-color" && U((W) => (W === "default" && (document.removeEventListener("discussionFormSubmitted", te), M.current && M.current.removeEventListener("transitionend", ce)), W === "fading" ? "default" : W));
23366
23369
  };
23367
23370
  if (r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question) || q.postBody === "" && t.title === "")
23368
23371
  return /* @__PURE__ */ d.jsx(Mt, { className: "discussion-card" });
@@ -23504,7 +23507,7 @@ const ua = ({
23504
23507
  ) : !1
23505
23508
  },
23506
23509
  functions: {
23507
- create: w,
23510
+ create: C,
23508
23511
  handleSaveEdit: X,
23509
23512
  handleCancel: () => {
23510
23513
  J(""), k({ ...q, isEditing: !1 });
@@ -23571,7 +23574,7 @@ const ua = ({
23571
23574
  canLike: ie,
23572
23575
  peopleWhoLiked: t.peopleWhoLiked,
23573
23576
  functions: {
23574
- createLike: C,
23577
+ createLike: w,
23575
23578
  deleteLike: A
23576
23579
  }
23577
23580
  }
@@ -23685,10 +23688,10 @@ const PC = wc(
23685
23688
  l.name || (l.name = r.formatMessage({
23686
23689
  id: `member_${typeof o == "string" ? o : "community"}`
23687
23690
  }));
23688
- const { modal: u = !1 } = e || {}, [c, h] = ce({
23691
+ const { modal: u = !1 } = e || {}, [c, h] = le({
23689
23692
  form: u || $c("showPost") === "true" || !1,
23690
23693
  warning: !1
23691
- }), [p, m] = ce({ showCachedText: !1 });
23694
+ }), [p, m] = le({ showCachedText: !1 });
23692
23695
  fe(() => {
23693
23696
  if (!p.showCachedText)
23694
23697
  return;
@@ -23698,7 +23701,7 @@ const PC = wc(
23698
23701
  NC,
23699
23702
  p.mentions
23700
23703
  );
23701
- m((w) => ({ ...w, prettifiedText: v }));
23704
+ m((C) => ({ ...C, prettifiedText: v }));
23702
23705
  })();
23703
23706
  }, [p.showCachedText, p.title, p.body]);
23704
23707
  const g = (b) => {
@@ -23708,12 +23711,12 @@ const PC = wc(
23708
23711
  if ("detail" in b && b.detail.link)
23709
23712
  b.detail.timeout && clearTimeout(b.detail.timeout), v = b.detail.link;
23710
23713
  else {
23711
- const w = b;
23712
- w.preventDefault(), w.stopPropagation();
23713
- const x = w.target.closest("a");
23714
+ const C = b;
23715
+ C.preventDefault(), C.stopPropagation();
23716
+ const x = C.target.closest("a");
23714
23717
  v = x && x.getAttribute("href");
23715
23718
  }
23716
- h((w) => ({ ...w, warning: v || !1 }));
23719
+ h((C) => ({ ...C, warning: v || !1 }));
23717
23720
  };
23718
23721
  fe(() => {
23719
23722
  if (!p.showCachedText) {
@@ -24333,7 +24336,7 @@ function JC({
24333
24336
  },
24334
24337
  user: u,
24335
24338
  ...c
24336
- }, p = GC({ ...h, mutationFn: e }), m = QC({ ...h, mutationFn: t }), g = XC({ ...h, mutationFn: n }), f = tE({ ...h, mutationFn: i }), b = nE({ ...h, mutationFn: a }), { activities: v, ...w } = eE({
24339
+ }, p = GC({ ...h, mutationFn: e }), m = QC({ ...h, mutationFn: t }), g = XC({ ...h, mutationFn: n }), f = tE({ ...h, mutationFn: i }), b = nE({ ...h, mutationFn: a }), { activities: v, ...C } = eE({
24337
24340
  queryKey: s,
24338
24341
  queryFn: r,
24339
24342
  rankingMethod: o
@@ -24348,7 +24351,7 @@ function JC({
24348
24351
  unlike: b
24349
24352
  },
24350
24353
  user: u,
24351
- ...w
24354
+ ...C
24352
24355
  };
24353
24356
  }
24354
24357
  function XC({
@@ -24462,10 +24465,10 @@ const B_ = ({
24462
24465
  isMember: n,
24463
24466
  functions: { activities: r, mentions: i, join: a, leave: s }
24464
24467
  }) => {
24465
- const o = cp(id.COMMUNITY_RANKING), l = ue(), [u, c] = ce(
24468
+ const o = cp(id.COMMUNITY_RANKING), l = ue(), [u, c] = le(
24466
24469
  "recent"
24467
24470
  /* RECENT */
24468
- ), [h, p] = ce([
24471
+ ), [h, p] = le([
24469
24472
  {
24470
24473
  id: "recent",
24471
24474
  label: "recent"
@@ -24480,7 +24483,7 @@ const B_ = ({
24480
24483
  fetchNextPage: f,
24481
24484
  hasNextPage: b,
24482
24485
  isLoading: v,
24483
- mutations: { create: w, edit: _, remove: x, like: C, unlike: A }
24486
+ mutations: { create: C, edit: _, remove: x, like: w, unlike: A }
24484
24487
  } = JC({
24485
24488
  queryKey: [e, t, "activities", u],
24486
24489
  queryFns: r,
@@ -24491,7 +24494,7 @@ const B_ = ({
24491
24494
  h.concat(o)
24492
24495
  );
24493
24496
  }, [o]);
24494
- const [T, z] = ce(null), $ = () => {
24497
+ const [T, z] = le(null), $ = () => {
24495
24498
  z(m.length), f();
24496
24499
  };
24497
24500
  return Kf(), g ? /* @__PURE__ */ d.jsx(Pn, { variant: "error", text: g.message }) : /* @__PURE__ */ d.jsxs("section", { children: [
@@ -24502,7 +24505,7 @@ const B_ = ({
24502
24505
  form: {
24503
24506
  content: { type: "post", slugs: {} },
24504
24507
  functions: {
24505
- create: w,
24508
+ create: C,
24506
24509
  ...i
24507
24510
  },
24508
24511
  meta: {
@@ -24569,9 +24572,9 @@ const B_ = ({
24569
24572
  reaction_counts: R,
24570
24573
  mentioned_users: Y
24571
24574
  } = P, H = (((q = S == null ? void 0 : S.like) == null ? void 0 : q.length) || 0) > 0, G = (((k = B == null ? void 0 : B.like) == null ? void 0 : k.length) || 0) > 0, ie = G ? B == null ? void 0 : B.like[0].id : "", D = H ? (F = S == null ? void 0 : S.like) == null ? void 0 : F.map((te) => {
24572
- var le, X, pe;
24575
+ var ce, X, pe;
24573
24576
  return {
24574
- id: (le = te == null ? void 0 : te.user) == null ? void 0 : le.id,
24577
+ id: (ce = te == null ? void 0 : te.user) == null ? void 0 : ce.id,
24575
24578
  name: (pe = (X = te == null ? void 0 : te.user) == null ? void 0 : X.data) == null ? void 0 : pe.name
24576
24579
  };
24577
24580
  }) : !1, M = P == null ? void 0 : P.actor;
@@ -24615,10 +24618,10 @@ const B_ = ({
24615
24618
  createContent: () => null,
24616
24619
  deleteContent: () => x({ activityId: E }),
24617
24620
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
24618
- updateContent: (te, { body: le }) => _({ activityId: E, content: le })
24621
+ updateContent: (te, { body: ce }) => _({ activityId: E, content: ce })
24619
24622
  },
24620
24623
  likes: {
24621
- createLike: () => C({ activityId: E }),
24624
+ createLike: () => w({ activityId: E }),
24622
24625
  deleteLike: () => A({ activityId: E, reactionId: ie })
24623
24626
  },
24624
24627
  comments: {
@@ -25410,7 +25413,7 @@ const gE = ({
25410
25413
  }
25411
25414
  });
25412
25415
  Sc([h]);
25413
- const [w, _] = ce(!0);
25416
+ const [C, _] = le(!0);
25414
25417
  return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
25415
25418
  (l == null ? void 0 : l.length) >= o && /* @__PURE__ */ d.jsx(
25416
25419
  Te,
@@ -25419,19 +25422,19 @@ const gE = ({
25419
25422
  variant: "secondary",
25420
25423
  size: "small",
25421
25424
  icon: {
25422
- icon: `arrow_corner-${w ? "up_left" : "down_right"}`,
25425
+ icon: `arrow_corner-${C ? "up_left" : "down_right"}`,
25423
25426
  position: "left"
25424
25427
  },
25425
- onClick: () => _(!w),
25428
+ onClick: () => _(!C),
25426
25429
  children: s.formatMessage(
25427
25430
  {
25428
- id: `discussion_thread_${w ? "hide" : "show"}`
25431
+ id: `discussion_thread_${C ? "hide" : "show"}`
25429
25432
  },
25430
25433
  { count: l == null ? void 0 : l.length }
25431
25434
  )
25432
25435
  }
25433
25436
  ),
25434
- w && /* @__PURE__ */ d.jsx(
25437
+ C && /* @__PURE__ */ d.jsx(
25435
25438
  IC,
25436
25439
  {
25437
25440
  loadMore: { isLoading: h, hasNextPage: c, loadNextPage: () => u() },
@@ -25446,7 +25449,7 @@ const gE = ({
25446
25449
  },
25447
25450
  functions: {
25448
25451
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25449
- create: (x, { body: C }) => p({ activityId: n, replyId: r, content: C }),
25452
+ create: (x, { body: w }) => p({ activityId: n, replyId: r, content: w }),
25450
25453
  listMembers: a.listMembers,
25451
25454
  clickMentionFallback: a.clickMentionFallback
25452
25455
  },
@@ -25460,18 +25463,18 @@ const gE = ({
25460
25463
  children: l && l.length > 0 ? l == null ? void 0 : l.map((x) => {
25461
25464
  var G, ie, D, M, q, k, F, L, N, U, ne, J;
25462
25465
  const {
25463
- id: C,
25466
+ id: w,
25464
25467
  own_children: A,
25465
25468
  latest_children: T,
25466
25469
  children_counts: z,
25467
25470
  data: { mentioned_users: $ }
25468
25471
  } = x, I = (((G = A == null ? void 0 : A.like) == null ? void 0 : G.length) || 0) > 0 ? (ie = A == null ? void 0 : A.like) == null ? void 0 : ie.find((te) => {
25469
- var le;
25470
- return ((le = te == null ? void 0 : te.user) == null ? void 0 : le.id) === (v == null ? void 0 : v.id);
25472
+ var ce;
25473
+ return ((ce = te == null ? void 0 : te.user) == null ? void 0 : ce.id) === (v == null ? void 0 : v.id);
25471
25474
  }) : !1, E = I ? I == null ? void 0 : I.id : "", B = !!I, R = (((D = T == null ? void 0 : T.like) == null ? void 0 : D.length) || 0) > 0 ? (M = T == null ? void 0 : T.like) == null ? void 0 : M.map((te) => {
25472
- var le, X, pe;
25475
+ var ce, X, pe;
25473
25476
  return {
25474
- id: (le = te == null ? void 0 : te.user) == null ? void 0 : le.id,
25477
+ id: (ce = te == null ? void 0 : te.user) == null ? void 0 : ce.id,
25475
25478
  name: (pe = (X = te == null ? void 0 : te.user) == null ? void 0 : X.data) == null ? void 0 : pe.name
25476
25479
  };
25477
25480
  }) : !1, Y = x == null ? void 0 : x.user, H = typeof x.data.content == "string" ? (q = x == null ? void 0 : x.data) == null ? void 0 : q.content : (
@@ -25483,7 +25486,7 @@ const gE = ({
25483
25486
  {
25484
25487
  isCommunity: !0,
25485
25488
  content: {
25486
- id: C,
25489
+ id: w,
25487
25490
  type: "reply",
25488
25491
  body: H,
25489
25492
  canLike: i,
@@ -25514,13 +25517,13 @@ const gE = ({
25514
25517
  functions: {
25515
25518
  content: {
25516
25519
  createContent: () => null,
25517
- deleteContent: () => f({ replyId: C }),
25520
+ deleteContent: () => f({ replyId: w }),
25518
25521
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25519
- updateContent: (te, { body: le }) => m({ replyId: C, content: le })
25522
+ updateContent: (te, { body: ce }) => m({ replyId: w, content: ce })
25520
25523
  },
25521
25524
  likes: {
25522
- createLike: () => g({ replyId: C }),
25523
- deleteLike: () => b({ replyId: C, reactionId: E })
25525
+ createLike: () => g({ replyId: w }),
25526
+ deleteLike: () => b({ replyId: w, reactionId: E })
25524
25527
  },
25525
25528
  comments: {},
25526
25529
  mentions: {
@@ -25530,7 +25533,7 @@ const gE = ({
25530
25533
  },
25531
25534
  styling: { showShareLinkButton: !0 }
25532
25535
  },
25533
- C
25536
+ w
25534
25537
  );
25535
25538
  }) : null
25536
25539
  }
@@ -25550,14 +25553,14 @@ const vE = ({
25550
25553
  fetchNextPage: h,
25551
25554
  hasNextPage: p,
25552
25555
  isLoading: m,
25553
- mutations: { create: g, edit: f, like: b, remove: v, unlike: w },
25556
+ mutations: { create: g, edit: f, like: b, remove: v, unlike: C },
25554
25557
  user: _
25555
25558
  } = Yf({
25556
25559
  queryKey: [e, t, n, "replies"],
25557
25560
  queryFns: i
25558
25561
  }), x = () => {
25559
25562
  A(u.length), h();
25560
- }, [C, A] = ce(null);
25563
+ }, [w, A] = le(null);
25561
25564
  return Sc([m]), Kf(), /* @__PURE__ */ d.jsxs("section", { className: "replies-feed", children: [
25562
25565
  /* @__PURE__ */ d.jsx($C, { type: "comment", responses: c, isLoading: m }),
25563
25566
  /* @__PURE__ */ d.jsx(
@@ -25588,7 +25591,7 @@ const vE = ({
25588
25591
  }
25589
25592
  ),
25590
25593
  u == null ? void 0 : u.map((T, z) => {
25591
- var q, k, F, L, N, U, ne, J, te, le, X, pe;
25594
+ var q, k, F, L, N, U, ne, J, te, ce, X, pe;
25592
25595
  const {
25593
25596
  id: $,
25594
25597
  own_children: P,
@@ -25628,7 +25631,7 @@ const vE = ({
25628
25631
  id: D == null ? void 0 : D.id,
25629
25632
  name: (J = D.data) == null ? void 0 : J.name,
25630
25633
  organization: (te = D.data) == null ? void 0 : te.organization,
25631
- jobTitle: (le = D.data) == null ? void 0 : le.jobTitle,
25634
+ jobTitle: (ce = D.data) == null ? void 0 : ce.jobTitle,
25632
25635
  location: (X = D.data) == null ? void 0 : X.location,
25633
25636
  image: {
25634
25637
  thumbnail: ((pe = D.data) == null ? void 0 : pe.thumbnail) || void 0
@@ -25648,7 +25651,7 @@ const vE = ({
25648
25651
  },
25649
25652
  likes: {
25650
25653
  createLike: () => b({ replyId: $ }),
25651
- deleteLike: () => w({ replyId: $, reactionId: Y })
25654
+ deleteLike: () => C({ replyId: $, reactionId: Y })
25652
25655
  },
25653
25656
  comments: {},
25654
25657
  mentions: a
@@ -25668,7 +25671,7 @@ const vE = ({
25668
25671
  }
25669
25672
  ),
25670
25673
  styling: { showShareLinkButton: !0 },
25671
- setFocus: z === C
25674
+ setFocus: z === w
25672
25675
  },
25673
25676
  $
25674
25677
  ) }, $);
@@ -25810,7 +25813,7 @@ const F_ = ({
25810
25813
  text: c.formatMessage({ id: "activitySection_notFoundError" })
25811
25814
  }
25812
25815
  );
25813
- const { own_reactions: v, latest_reactions: w, mentioned_users: _ } = h, x = ((($ = w == null ? void 0 : w.like) == null ? void 0 : $.length) || 0) > 0, C = (((P = v == null ? void 0 : v.like) == null ? void 0 : P.length) || 0) > 0, A = C ? v == null ? void 0 : v.like[0].id : "", T = x ? (I = w == null ? void 0 : w.like) == null ? void 0 : I.map((ie) => {
25816
+ const { own_reactions: v, latest_reactions: C, mentioned_users: _ } = h, x = ((($ = C == null ? void 0 : C.like) == null ? void 0 : $.length) || 0) > 0, w = (((P = v == null ? void 0 : v.like) == null ? void 0 : P.length) || 0) > 0, A = w ? v == null ? void 0 : v.like[0].id : "", T = x ? (I = C == null ? void 0 : C.like) == null ? void 0 : I.map((ie) => {
25814
25817
  var D, M, q;
25815
25818
  return {
25816
25819
  id: (D = ie == null ? void 0 : ie.user) == null ? void 0 : D.id,
@@ -25845,7 +25848,7 @@ const F_ = ({
25845
25848
  thumbnail: ((Y = z.data) == null ? void 0 : Y.thumbnail) || void 0
25846
25849
  }
25847
25850
  },
25848
- userLiked: C,
25851
+ userLiked: w,
25849
25852
  likes: ((H = h == null ? void 0 : h.reaction_counts) == null ? void 0 : H.like) || 0,
25850
25853
  comments: ((G = h == null ? void 0 : h.reaction_counts) == null ? void 0 : G.reply) || 0,
25851
25854
  peopleWhoLiked: T,
@@ -25938,14 +25941,14 @@ const CE = ({
25938
25941
  onMention: ({ id: b, name: v } = {}) => {
25939
25942
  if (!b || !v)
25940
25943
  return;
25941
- const w = g || {};
25942
- w[b] = {
25944
+ const C = g || {};
25945
+ C[b] = {
25943
25946
  created_at: "",
25944
25947
  updated_at: "",
25945
25948
  id: b,
25946
25949
  data: { name: v }
25947
25950
  }, l(
25948
- (_) => ({ ..._, mentions: w })
25951
+ (_) => ({ ..._, mentions: C })
25949
25952
  );
25950
25953
  },
25951
25954
  create: async (b) => {
@@ -26012,7 +26015,7 @@ const S_ = ({
26012
26015
  form: a,
26013
26016
  className: s
26014
26017
  }) => {
26015
- const o = ue(), [l, u] = ce(
26018
+ const o = ue(), [l, u] = le(
26016
26019
  $c("showProfile") === "true" || e
26017
26020
  );
26018
26021
  fe(() => {
@@ -26043,7 +26046,7 @@ const S_ = ({
26043
26046
  );
26044
26047
  };
26045
26048
  const j_ = ({ members: e }) => {
26046
- const [t, n] = ce(!1), r = (i) => {
26049
+ const [t, n] = le(!1), r = (i) => {
26047
26050
  const { fullName: a, jobTitle: s, organisation: o, photo: l } = i || {};
26048
26051
  return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
26049
26052
  /* @__PURE__ */ d.jsx(vn, { name: a, src: l }),
@@ -26116,7 +26119,7 @@ const P_ = ({
26116
26119
  selector: t = "",
26117
26120
  className: n = ""
26118
26121
  }) => {
26119
- const r = ue(), [i, a] = ce(e);
26122
+ const r = ue(), [i, a] = le(e);
26120
26123
  return fe(() => {
26121
26124
  if (e.length)
26122
26125
  return;
@@ -26240,8 +26243,8 @@ const kE = [
26240
26243
  if (!s[b]) {
26241
26244
  if (typeof t[b] == "object") {
26242
26245
  p[b] = t[b];
26243
- const { text: v, element: w } = t[b];
26244
- if (w && kE.includes(w.toLowerCase()))
26246
+ const { text: v, element: C } = t[b];
26247
+ if (C && kE.includes(C.toLowerCase()))
26245
26248
  return;
26246
26249
  p[b] = {
26247
26250
  text: v,
@@ -26274,8 +26277,8 @@ const kE = [
26274
26277
  /* @__PURE__ */ d.jsxs("div", { className: "content-wrapper", children: [
26275
26278
  c.map((b) => {
26276
26279
  if (p[b] && typeof p[b] == "object") {
26277
- const { text: v, element: w = "" } = p[b];
26278
- return b === "text" ? /* @__PURE__ */ d.jsx(tr, { overrideType: "text-only", className: "text", children: v }, b) : re.createElement(w, { key: b, className: b }, v);
26280
+ const { text: v, element: C = "" } = p[b];
26281
+ return b === "text" ? /* @__PURE__ */ d.jsx(tr, { overrideType: "text-only", className: "text", children: v }, b) : re.createElement(C, { key: b, className: b }, v);
26279
26282
  }
26280
26283
  return null;
26281
26284
  }),
@@ -26519,7 +26522,7 @@ const I_ = ({
26519
26522
  }
26520
26523
  }, SE = ({ data: e, cta: t, link: n, gtmContext: r }) => {
26521
26524
  var f, b;
26522
- const i = ue(), [a, s] = ce({
26525
+ const i = ue(), [a, s] = le({
26523
26526
  loading: !1,
26524
26527
  registered: e.registered || !1
26525
26528
  });
@@ -26554,14 +26557,14 @@ const I_ = ({
26554
26557
  ) : null;
26555
26558
  const g = ["communityPage", "microcourse", "event"];
26556
26559
  if (t && t.onClick && g.includes(p) && c !== "premium") {
26557
- const v = a.loading || a.registered || ((b = e == null ? void 0 : e.members) == null ? void 0 : b.isMember), w = async (_) => {
26560
+ const v = a.loading || a.registered || ((b = e == null ? void 0 : e.members) == null ? void 0 : b.isMember), C = async (_) => {
26558
26561
  if (_.preventDefault(), _.stopPropagation(), !(v || !t || !t.onClick)) {
26559
26562
  s((x) => ({ ...x, loading: !0 }));
26560
26563
  try {
26561
26564
  const x = await t.onClick(e);
26562
- s(x === "success" ? () => ({ registered: !0, loading: !1 }) : (C) => ({ ...C, loading: !1 }));
26565
+ s(x === "success" ? () => ({ registered: !0, loading: !1 }) : (w) => ({ ...w, loading: !1 }));
26563
26566
  } catch {
26564
- s((C) => ({ ...C, loading: !1 }));
26567
+ s((w) => ({ ...w, loading: !1 }));
26565
26568
  }
26566
26569
  }
26567
26570
  };
@@ -26574,7 +26577,7 @@ const I_ = ({
26574
26577
  children: /* @__PURE__ */ d.jsx(
26575
26578
  Te,
26576
26579
  {
26577
- onClick: w,
26580
+ onClick: C,
26578
26581
  className: "gtm-trackable",
26579
26582
  size: "small",
26580
26583
  styling: { fullWidth: !0 },
@@ -26593,7 +26596,7 @@ const I_ = ({
26593
26596
  return null;
26594
26597
  };
26595
26598
  function jE({ buildMemberData: e, communitySlug: t }) {
26596
- const n = ue(), [r, i] = ce({
26599
+ const n = ue(), [r, i] = le({
26597
26600
  count: "...",
26598
26601
  isMember: !1,
26599
26602
  memberType: ""
@@ -26634,7 +26637,7 @@ const Gf = ({
26634
26637
  setFocus: l = !1
26635
26638
  }) => {
26636
26639
  var I, E;
26637
- const u = ue(), c = Ve(Ht), h = !!(c != null && c.id), p = re.useRef(null), [m, g] = ce({
26640
+ const u = ue(), c = Ve(Ht), h = !!(c != null && c.id), p = re.useRef(null), [m, g] = le({
26638
26641
  data: null,
26639
26642
  isLoading: !0
26640
26643
  });
@@ -26661,12 +26664,12 @@ const Gf = ({
26661
26664
  if (!v || !Qi[v])
26662
26665
  return /* @__PURE__ */ d.jsx(Mt, { element: "li", className: "card-wrapper" });
26663
26666
  const {
26664
- basePath: w = "",
26667
+ basePath: C = "",
26665
26668
  className: _,
26666
26669
  length: x,
26667
- gtmEvent: C
26670
+ gtmEvent: w
26668
26671
  } = Qi[v];
26669
- let A = f.slug ? `${w}${f.slug}` : !1;
26672
+ let A = f.slug ? `${C}${f.slug}` : !1;
26670
26673
  f.slug && (f.slug.slice(0, 4) === "http" || f.slug.slice(0, 2) === "//" || f.slug.slice(0, 6) === "mailto" || f.slug.slice(0, 3) === "tel") && (A = f.slug);
26671
26674
  const T = (B) => {
26672
26675
  A && (B.preventDefault(), B.stopPropagation(), window.location.href = A);
@@ -26676,13 +26679,13 @@ const Gf = ({
26676
26679
  href: A,
26677
26680
  className: "gtm-trackable",
26678
26681
  "data-gtm-event-context": `${s}-CarouselCard`,
26679
- "data-gtm-event-type": `${C}-click`,
26682
+ "data-gtm-event-type": `${w}-click`,
26680
26683
  "data-testid": "link"
26681
26684
  }, f.openInNewTab && (P.target = "_blank"), $ = {
26682
26685
  onClick: T,
26683
26686
  className: "card gtm-trackable",
26684
26687
  "data-gtm-event-context": `${s}-CarouselCard`,
26685
- "data-gtm-event-type": `${C}-click`
26688
+ "data-gtm-event-type": `${w}-click`
26686
26689
  }), l && ($ = {
26687
26690
  ...$,
26688
26691
  tabIndex: "0"
@@ -26824,13 +26827,13 @@ const ME = ({
26824
26827
  gtmContext: s,
26825
26828
  ...o
26826
26829
  }) => {
26827
- const l = ue(), [u, c] = ce({
26830
+ const l = ue(), [u, c] = le({
26828
26831
  cardsPerPage: 4,
26829
26832
  isLoading: !0
26830
- }), { cardsPerPage: h, isLoading: p } = u, [m, g] = ce({
26833
+ }), { cardsPerPage: h, isLoading: p } = u, [m, g] = le({
26831
26834
  currentPage: 0,
26832
26835
  loadedPages: [0]
26833
- }), { currentPage: f, loadedPages: b } = m, [v, w] = ce(""), _ = t.length, x = Math.ceil(_ / h), C = ke(null), A = Ur(!0, !0, C == null ? void 0 : C.current);
26836
+ }), { currentPage: f, loadedPages: b } = m, [v, C] = le(""), _ = t.length, x = Math.ceil(_ / h), w = ke(null), A = Ur(!0, !0, w == null ? void 0 : w.current);
26834
26837
  fe(() => {
26835
26838
  let E = 1;
26836
26839
  A && (A >= cs.fourCards ? E = 4 : A >= cs.threeCards ? E = 3 : A >= cs.twoCards && (E = 2), E > _ && (E = _)), c((B) => ({
@@ -26862,7 +26865,7 @@ const ME = ({
26862
26865
  const R = B * u.cardsPerPage, Y = R + u.cardsPerPage;
26863
26866
  return t.slice(R, Y).length;
26864
26867
  };
26865
- w(
26868
+ C(
26866
26869
  l.formatMessage(
26867
26870
  {
26868
26871
  id: "carousel_pagination_aria_live"
@@ -26896,7 +26899,7 @@ const ME = ({
26896
26899
  return /* @__PURE__ */ d.jsxs(
26897
26900
  "section",
26898
26901
  {
26899
- ref: C,
26902
+ ref: w,
26900
26903
  className: Z("carousel-wrapper", a),
26901
26904
  "data-testid": "carousel",
26902
26905
  children: [
@@ -27145,16 +27148,16 @@ const q_ = ({
27145
27148
  completionTime: f,
27146
27149
  contentType: b,
27147
27150
  icon: v,
27148
- image: w,
27151
+ image: C,
27149
27152
  isIntroduction: _,
27150
27153
  optional: x,
27151
- slug: C,
27154
+ slug: w,
27152
27155
  subsectionId: A,
27153
27156
  title: T,
27154
27157
  type: z
27155
27158
  }) => {
27156
27159
  const $ = i && t || _, P = {};
27157
- return w && (P.style = { "--image": `url(${w})` }), /* @__PURE__ */ d.jsx(
27160
+ return C && (P.style = { "--image": `url(${C})` }), /* @__PURE__ */ d.jsx(
27158
27161
  "li",
27159
27162
  {
27160
27163
  className: Z({
@@ -27168,7 +27171,7 @@ const q_ = ({
27168
27171
  children: /* @__PURE__ */ d.jsx(
27169
27172
  dr,
27170
27173
  {
27171
- href: $ ? `/microcourses/en/${o}/${C}` : void 0,
27174
+ href: $ ? `/microcourses/en/${o}/${w}` : void 0,
27172
27175
  fallbackElement: "span",
27173
27176
  className: "inner",
27174
27177
  gtmContext: `MicrocourseOutline${kh(T)}`,
@@ -27191,14 +27194,14 @@ const q_ = ({
27191
27194
  icon: v,
27192
27195
  optional: x,
27193
27196
  type: z,
27194
- children: c && c[C] && /* @__PURE__ */ d.jsx("span", { className: "quiz-score", children: `${c[C]}%` })
27197
+ children: c && c[w] && /* @__PURE__ */ d.jsx("span", { className: "quiz-score", children: `${c[w]}%` })
27195
27198
  }
27196
27199
  )
27197
27200
  ] })
27198
27201
  }
27199
27202
  )
27200
27203
  },
27201
- C
27204
+ w
27202
27205
  );
27203
27206
  }
27204
27207
  ) })