@apolitical/component-library 5.2.2-ac.0 → 5.2.2-ac.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/index.js +20 -20
  2. package/index.mjs +507 -512
  3. package/package.json +1 -1
  4. package/style.css +1 -1
package/index.mjs CHANGED
@@ -143,10 +143,10 @@ function Sh() {
143
143
  {
144
144
  for (var ae = arguments.length, fe = new Array(ae > 1 ? ae - 1 : 0), Ce = 1; Ce < ae; Ce++)
145
145
  fe[Ce - 1] = arguments[Ce];
146
- C("error", O, fe);
146
+ E("error", O, fe);
147
147
  }
148
148
  }
149
- function C(O, ae, fe) {
149
+ function E(O, ae, fe) {
150
150
  {
151
151
  var Ce = v.ReactDebugCurrentFrame, $e = Ce.getStackAddendum();
152
152
  $e !== "" && (ae += "%s", fe = fe.concat([$e]));
@@ -156,10 +156,10 @@ function Sh() {
156
156
  Ve.unshift("Warning: " + ae), Function.prototype.apply.call(console[O], console, Ve);
157
157
  }
158
158
  }
159
- var F = !1, w = !1, E = !1, S = !1, L = !1, j;
159
+ var F = !1, w = !1, C = !1, S = !1, L = !1, j;
160
160
  j = Symbol.for("react.module.reference");
161
161
  function z(O) {
162
- return !!(typeof O == "string" || typeof O == "function" || O === r || O === a || L || O === i || O === u || O === d || S || O === p || F || w || E || typeof O == "object" && O !== null && (O.$$typeof === m || O.$$typeof === h || O.$$typeof === s || O.$$typeof === o || O.$$typeof === l || // This needs to include all possible module reference object
162
+ return !!(typeof O == "string" || typeof O == "function" || O === r || O === a || L || O === i || O === u || O === d || S || O === p || F || w || C || typeof O == "object" && O !== null && (O.$$typeof === m || O.$$typeof === h || O.$$typeof === s || O.$$typeof === o || O.$$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.
@@ -744,13 +744,13 @@ function Rc(e, t, n) {
744
744
  h.current = !1;
745
745
  };
746
746
  }, []);
747
- var C = Zt(function() {
747
+ var E = Zt(function() {
748
748
  var F = function(z) {
749
749
  var M = o.current, A = l.current;
750
750
  return o.current = l.current = null, a.current = z, u.current = d.current.apply(A, M);
751
751
  }, w = function(z, M) {
752
752
  p && cancelAnimationFrame(s.current), s.current = p ? requestAnimationFrame(z) : setTimeout(z, M);
753
- }, E = function(z) {
753
+ }, C = function(z) {
754
754
  if (!h.current)
755
755
  return !1;
756
756
  var M = z - i.current;
@@ -759,7 +759,7 @@ function Rc(e, t, n) {
759
759
  return s.current = null, f && o.current ? F(z) : (o.current = l.current = null, u.current);
760
760
  }, L = function z() {
761
761
  var M = Date.now();
762
- if (E(M))
762
+ if (C(M))
763
763
  return S(M);
764
764
  if (h.current) {
765
765
  var A = t - (M - i.current), _ = b ? Math.min(A, x - (M - a.current)) : A;
@@ -767,7 +767,7 @@ function Rc(e, t, n) {
767
767
  }
768
768
  }, j = function() {
769
769
  if (m || v) {
770
- var z = Date.now(), M = E(z);
770
+ var z = Date.now(), M = C(z);
771
771
  if (o.current = [].slice.call(arguments), l.current = r, i.current = z, M) {
772
772
  if (!s.current && h.current)
773
773
  return a.current = i.current, w(L, t), g ? F(i.current) : u.current;
@@ -785,7 +785,7 @@ function Rc(e, t, n) {
785
785
  return s.current ? S(Date.now()) : u.current;
786
786
  }, j;
787
787
  }, [g, b, t, x, f, p, m, v]);
788
- return C;
788
+ return E;
789
789
  }
790
790
  function Ic(e, t, n) {
791
791
  var r = n === void 0 ? {} : n, i = r.leading, a = r.trailing;
@@ -891,9 +891,9 @@ const Yo = {}, pr = Ys(
891
891
  accessibility: l = {},
892
892
  ...u
893
893
  }, d) => {
894
- const h = le(), [m] = ue(e || Date.now().toString()), p = ke(null), g = d || p, [f, b] = ue(n ? "open" : "hidden"), { extraPadding: v = !0, hasPointer: x = !1, hasForm: C = !1 } = t, { onOpen: F = () => {
894
+ const h = le(), [m] = ue(e || Date.now().toString()), p = ke(null), g = d || p, [f, b] = ue(n ? "open" : "hidden"), { extraPadding: v = !0, hasPointer: x = !1, hasForm: E = !1 } = t, { onOpen: F = () => {
895
895
  }, onClose: w = () => {
896
- } } = o, { readToScreenreadersWhenClosed: E = !1, ...S } = l, L = Yo[m];
896
+ } } = o, { readToScreenreadersWhenClosed: C = !1, ...S } = l, L = Yo[m];
897
897
  de(() => {
898
898
  const A = g == null ? void 0 : g.current;
899
899
  if (A)
@@ -928,7 +928,7 @@ const Yo = {}, pr = Ys(
928
928
  const M = {
929
929
  className: "content"
930
930
  };
931
- return E ? M.className = K("content", { hidden: f === "hidden" }) : M.hidden = f === "hidden", /* @__PURE__ */ c.jsx(
931
+ return C ? M.className = K("content", { hidden: f === "hidden" }) : M.hidden = f === "hidden", /* @__PURE__ */ c.jsx(
932
932
  "aside",
933
933
  {
934
934
  ref: g,
@@ -937,7 +937,7 @@ const Yo = {}, pr = Ys(
937
937
  "extra-padding": v,
938
938
  "has-pointer": x,
939
939
  bottom: x === "bottom",
940
- "has-form": C
940
+ "has-form": E
941
941
  }),
942
942
  ...z,
943
943
  children: /* @__PURE__ */ c.jsx("div", { ...M, children: r ? /* @__PURE__ */ c.jsx("p", { children: h.formatMessage({ id: "tooltip_loading" }) }) : typeof i == "string" ? /* @__PURE__ */ c.jsx("p", { children: i }) : i })
@@ -1697,7 +1697,7 @@ const Be = ({
1697
1697
  disabled: typeof l == "object" && "isClickable" in l ? !l.isClickable : l
1698
1698
  };
1699
1699
  i && (a = "a", x.href = i);
1700
- const C = re.createElement(
1700
+ const E = re.createElement(
1701
1701
  a,
1702
1702
  x,
1703
1703
  h || (d ? /* @__PURE__ */ c.jsx(Ue, { showOnFocus: !1, children: d }) : null)
@@ -1711,8 +1711,8 @@ const Be = ({
1711
1711
  children: u
1712
1712
  }
1713
1713
  ),
1714
- C
1715
- ] }) : C;
1714
+ E
1715
+ ] }) : E;
1716
1716
  }, Yr = ({ buttons: e, wrappers: t = [], className: n = "", ...r }) => {
1717
1717
  const i = e.length > 1 ? "ul" : "p", a = e.map((s, o) => {
1718
1718
  var l;
@@ -2909,18 +2909,18 @@ const yn = ({
2909
2909
  variant: f = "inline",
2910
2910
  isCondensed: b = !0,
2911
2911
  additionalContentNewLine: v = !1
2912
- } = i, x = Ie(Dt), C = m && x && typeof x.id == "string", [F, w] = ue(!1), E = ro(t);
2913
- E.name || (E.name = h.formatMessage({
2912
+ } = i, x = Ie(Dt), E = m && x && typeof x.id == "string", [F, w] = ue(!1), C = ro(t);
2913
+ C.name || (C.name = h.formatMessage({
2914
2914
  id: `member_${typeof t == "string" ? t : "community"}`
2915
2915
  }));
2916
- const { name: S, image: L } = E;
2917
- let { url: j } = E;
2916
+ const { name: S, image: L } = C;
2917
+ let { url: j } = C;
2918
2918
  typeof t == "object" && t.link !== void 0 && (t.link === !1 ? j = void 0 : j = t.link);
2919
- const z = Om(E), M = r && r.createdAt ? Ds(r.createdAt) : !1, A = r && r.createdAt ? Wc(r.createdAt) : "";
2919
+ const z = Om(C), M = r && r.createdAt ? Ds(r.createdAt) : !1, A = r && r.createdAt ? Wc(r.createdAt) : "";
2920
2920
  return re.createElement(e, {
2921
2921
  ...d,
2922
2922
  className: K("member text-medium", g, f, l, {
2923
- "has-profile-link": C
2923
+ "has-profile-link": E
2924
2924
  }),
2925
2925
  ...p,
2926
2926
  children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
@@ -2951,7 +2951,7 @@ const yn = ({
2951
2951
  "data-testid": "member-name",
2952
2952
  children: [
2953
2953
  /* @__PURE__ */ c.jsx("span", { children: S }),
2954
- (u == null ? void 0 : u.showBadges) && (E == null ? void 0 : E.badges) && /* @__PURE__ */ c.jsx(Bm, { userBadges: E.badges, badgeOptions: u }),
2954
+ (u == null ? void 0 : u.showBadges) && (C == null ? void 0 : C.badges) && /* @__PURE__ */ c.jsx(Bm, { userBadges: C.badges, badgeOptions: u }),
2955
2955
  r && /* @__PURE__ */ c.jsxs(
2956
2956
  "span",
2957
2957
  {
@@ -2986,9 +2986,9 @@ const yn = ({
2986
2986
  className: K({ "text-medium": g === "large" }),
2987
2987
  "data-testid": "member-details",
2988
2988
  children: b ? z : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2989
- E.role,
2990
- E.organisation ? ` — ${E.organisation}` : /* @__PURE__ */ c.jsx(c.Fragment, {}),
2991
- /* @__PURE__ */ c.jsx("span", { className: "location", children: E.country })
2989
+ C.role,
2990
+ C.organisation ? ` — ${C.organisation}` : /* @__PURE__ */ c.jsx(c.Fragment, {}),
2991
+ /* @__PURE__ */ c.jsx("span", { className: "location", children: C.country })
2992
2992
  ] })
2993
2993
  }
2994
2994
  )
@@ -2996,7 +2996,7 @@ const yn = ({
2996
2996
  ]
2997
2997
  }
2998
2998
  ),
2999
- z && m && C ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2999
+ z && m && E ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3000
3000
  /* @__PURE__ */ c.jsx(
3001
3001
  Be,
3002
3002
  {
@@ -3108,10 +3108,10 @@ function Rm() {
3108
3108
  return ze;
3109
3109
  uu = 1;
3110
3110
  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, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = 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, x = e ? Symbol.for("react.scope") : 60119;
3111
- function C(w) {
3111
+ function E(w) {
3112
3112
  if (typeof w == "object" && w !== null) {
3113
- var E = w.$$typeof;
3114
- switch (E) {
3113
+ var C = w.$$typeof;
3114
+ switch (C) {
3115
3115
  case t:
3116
3116
  switch (w = w.type, w) {
3117
3117
  case l:
@@ -3130,44 +3130,44 @@ function Rm() {
3130
3130
  case s:
3131
3131
  return w;
3132
3132
  default:
3133
- return E;
3133
+ return C;
3134
3134
  }
3135
3135
  }
3136
3136
  case n:
3137
- return E;
3137
+ return C;
3138
3138
  }
3139
3139
  }
3140
3140
  }
3141
3141
  function F(w) {
3142
- return C(w) === u;
3142
+ return E(w) === u;
3143
3143
  }
3144
3144
  return ze.AsyncMode = l, ze.ConcurrentMode = u, ze.ContextConsumer = o, ze.ContextProvider = s, ze.Element = t, ze.ForwardRef = d, ze.Fragment = r, ze.Lazy = g, ze.Memo = p, ze.Portal = n, ze.Profiler = a, ze.StrictMode = i, ze.Suspense = h, ze.isAsyncMode = function(w) {
3145
- return F(w) || C(w) === l;
3145
+ return F(w) || E(w) === l;
3146
3146
  }, ze.isConcurrentMode = F, ze.isContextConsumer = function(w) {
3147
- return C(w) === o;
3147
+ return E(w) === o;
3148
3148
  }, ze.isContextProvider = function(w) {
3149
- return C(w) === s;
3149
+ return E(w) === s;
3150
3150
  }, ze.isElement = function(w) {
3151
3151
  return typeof w == "object" && w !== null && w.$$typeof === t;
3152
3152
  }, ze.isForwardRef = function(w) {
3153
- return C(w) === d;
3153
+ return E(w) === d;
3154
3154
  }, ze.isFragment = function(w) {
3155
- return C(w) === r;
3155
+ return E(w) === r;
3156
3156
  }, ze.isLazy = function(w) {
3157
- return C(w) === g;
3157
+ return E(w) === g;
3158
3158
  }, ze.isMemo = function(w) {
3159
- return C(w) === p;
3159
+ return E(w) === p;
3160
3160
  }, ze.isPortal = function(w) {
3161
- return C(w) === n;
3161
+ return E(w) === n;
3162
3162
  }, ze.isProfiler = function(w) {
3163
- return C(w) === a;
3163
+ return E(w) === a;
3164
3164
  }, ze.isStrictMode = function(w) {
3165
- return C(w) === i;
3165
+ return E(w) === i;
3166
3166
  }, ze.isSuspense = function(w) {
3167
- return C(w) === h;
3167
+ return E(w) === h;
3168
3168
  }, ze.isValidElementType = function(w) {
3169
3169
  return typeof w == "string" || typeof w == "function" || w === r || w === u || w === a || w === i || w === h || w === m || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === p || w.$$typeof === s || w.$$typeof === o || w.$$typeof === d || w.$$typeof === b || w.$$typeof === v || w.$$typeof === x || w.$$typeof === f);
3170
- }, ze.typeOf = C, ze;
3170
+ }, ze.typeOf = E, ze;
3171
3171
  }
3172
3172
  var qe = {};
3173
3173
  /** @license React v16.13.1
@@ -3182,7 +3182,7 @@ var lu;
3182
3182
  function Im() {
3183
3183
  return lu || (lu = 1, process.env.NODE_ENV !== "production" && function() {
3184
3184
  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, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = 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, x = e ? Symbol.for("react.scope") : 60119;
3185
- function C(Q) {
3185
+ function E(Q) {
3186
3186
  return typeof Q == "string" || typeof Q == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
3187
3187
  Q === r || Q === u || Q === a || Q === i || Q === h || Q === m || typeof Q == "object" && Q !== null && (Q.$$typeof === g || Q.$$typeof === p || Q.$$typeof === s || Q.$$typeof === o || Q.$$typeof === d || Q.$$typeof === b || Q.$$typeof === v || Q.$$typeof === x || Q.$$typeof === f);
3188
3188
  }
@@ -3218,7 +3218,7 @@ function Im() {
3218
3218
  }
3219
3219
  }
3220
3220
  }
3221
- var w = l, E = u, S = o, L = s, j = t, z = d, M = r, A = g, _ = p, T = n, N = a, q = i, U = h, Y = !1;
3221
+ var w = l, C = u, S = o, L = s, j = t, z = d, M = r, A = g, _ = p, T = n, N = a, q = i, U = h, Y = !1;
3222
3222
  function ie(Q) {
3223
3223
  return Y || (Y = !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(Q) || F(Q) === l;
3224
3224
  }
@@ -3258,7 +3258,7 @@ function Im() {
3258
3258
  function ce(Q) {
3259
3259
  return F(Q) === h;
3260
3260
  }
3261
- qe.AsyncMode = w, qe.ConcurrentMode = E, qe.ContextConsumer = S, qe.ContextProvider = L, qe.Element = j, qe.ForwardRef = z, qe.Fragment = M, qe.Lazy = A, qe.Memo = _, qe.Portal = T, qe.Profiler = N, qe.StrictMode = q, qe.Suspense = U, qe.isAsyncMode = ie, qe.isConcurrentMode = D, qe.isContextConsumer = $, qe.isContextProvider = X, qe.isElement = k, qe.isForwardRef = B, qe.isFragment = I, qe.isLazy = R, qe.isMemo = W, qe.isPortal = ee, qe.isProfiler = H, qe.isStrictMode = ne, qe.isSuspense = ce, qe.isValidElementType = C, qe.typeOf = F;
3261
+ qe.AsyncMode = w, qe.ConcurrentMode = C, qe.ContextConsumer = S, qe.ContextProvider = L, qe.Element = j, qe.ForwardRef = z, qe.Fragment = M, qe.Lazy = A, qe.Memo = _, qe.Portal = T, qe.Profiler = N, qe.StrictMode = q, qe.Suspense = U, qe.isAsyncMode = ie, qe.isConcurrentMode = D, qe.isContextConsumer = $, qe.isContextProvider = X, qe.isElement = k, qe.isForwardRef = B, qe.isFragment = I, qe.isLazy = R, qe.isMemo = W, qe.isPortal = ee, qe.isProfiler = H, qe.isStrictMode = ne, qe.isSuspense = ce, qe.isValidElementType = E, qe.typeOf = F;
3262
3262
  }()), qe;
3263
3263
  }
3264
3264
  var cu;
@@ -3414,10 +3414,10 @@ function zm() {
3414
3414
  string: v("string"),
3415
3415
  symbol: v("symbol"),
3416
3416
  any: x(),
3417
- arrayOf: C,
3417
+ arrayOf: E,
3418
3418
  element: F(),
3419
3419
  elementType: w(),
3420
- instanceOf: E,
3420
+ instanceOf: C,
3421
3421
  node: z(),
3422
3422
  objectOf: L,
3423
3423
  oneOf: S,
@@ -3472,7 +3472,7 @@ function zm() {
3472
3472
  function x() {
3473
3473
  return b(s);
3474
3474
  }
3475
- function C(D) {
3475
+ function E(D) {
3476
3476
  function $(X, k, B, I, R) {
3477
3477
  if (typeof D != "function")
3478
3478
  return new f("Property `" + R + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
@@ -3512,7 +3512,7 @@ function zm() {
3512
3512
  }
3513
3513
  return b(D);
3514
3514
  }
3515
- function E(D) {
3515
+ function C(D) {
3516
3516
  function $(X, k, B, I, R) {
3517
3517
  if (!(X[k] instanceof D)) {
3518
3518
  var W = D.name || m, ee = ie(X[k]);
@@ -4284,7 +4284,7 @@ var Du = {
4284
4284
  })), g(N || s.mostRecentlyFocusedNode || h());
4285
4285
  }
4286
4286
  s.recentNavEvent = void 0;
4287
- }, C = function(A) {
4287
+ }, E = function(A) {
4288
4288
  var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
4289
4289
  s.recentNavEvent = A;
4290
4290
  var T = b({
@@ -4297,11 +4297,11 @@ var Du = {
4297
4297
  A.preventDefault(), o.deactivate();
4298
4298
  return;
4299
4299
  }
4300
- (a.isKeyForward(A) || a.isKeyBackward(A)) && C(A, a.isKeyBackward(A));
4300
+ (a.isKeyForward(A) || a.isKeyBackward(A)) && E(A, a.isKeyBackward(A));
4301
4301
  }, w = function(A) {
4302
4302
  var _ = si(A);
4303
4303
  u(_, A) >= 0 || xr(a.clickOutsideDeactivates, A) || xr(a.allowOutsideClick, A) || (A.preventDefault(), A.stopImmediatePropagation());
4304
- }, E = function() {
4304
+ }, C = function() {
4305
4305
  if (s.active)
4306
4306
  return Du.activateTrap(i, o), s.delayInitialFocusTimer = a.delayInitialFocus ? xu(function() {
4307
4307
  g(h());
@@ -4350,7 +4350,7 @@ var Du = {
4350
4350
  var _ = l(A, "onActivate"), T = l(A, "onPostActivate"), N = l(A, "checkCanFocusTrap");
4351
4351
  N || m(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = r.activeElement, _ == null || _();
4352
4352
  var q = function() {
4353
- N && m(), E(), z(), T == null || T();
4353
+ N && m(), C(), z(), T == null || T();
4354
4354
  };
4355
4355
  return N ? (N(s.containers.concat()).then(q, q), this) : (q(), this);
4356
4356
  },
@@ -4382,7 +4382,7 @@ var Du = {
4382
4382
  if (!s.paused || !s.active)
4383
4383
  return this;
4384
4384
  var _ = l(A, "onUnpause"), T = l(A, "onPostUnpause");
4385
- return s.paused = !1, _ == null || _(), m(), E(), z(), T == null || T(), this;
4385
+ return s.paused = !1, _ == null || _(), m(), C(), z(), T == null || T(), this;
4386
4386
  },
4387
4387
  updateContainerElements: function(A) {
4388
4388
  var _ = [].concat(A).filter(Boolean);
@@ -4746,12 +4746,12 @@ const xn = ({
4746
4746
  className: d = "",
4747
4747
  gtmContext: h = "Modal"
4748
4748
  }) => {
4749
- const m = le(), { registerOverlay: p, unregisterOverlay: g } = _m(), [f, b] = ue(t), [v, x] = ue(null), C = ke(null), F = (j) => {
4749
+ const m = le(), { registerOverlay: p, unregisterOverlay: g } = _m(), [f, b] = ue(t), [v, x] = ue(null), E = ke(null), F = (j) => {
4750
4750
  f && j.key === "Escape" && S(!1);
4751
4751
  }, w = (j) => {
4752
4752
  x(j.target);
4753
- }, E = (j) => {
4754
- v === C.current && j.target === C.current && S(!1), x(null);
4753
+ }, C = (j) => {
4754
+ v === E.current && j.target === E.current && S(!1), x(null);
4755
4755
  };
4756
4756
  de(() => {
4757
4757
  if (f)
@@ -4759,9 +4759,9 @@ const xn = ({
4759
4759
  window.removeEventListener("keyup", F);
4760
4760
  };
4761
4761
  }, [f]), de(() => {
4762
- const j = C.current;
4763
- return j && (j.addEventListener("mousedown", w), j.addEventListener("mouseup", E)), () => {
4764
- j && (j.removeEventListener("mousedown", w), j.removeEventListener("mouseup", E));
4762
+ const j = E.current;
4763
+ return j && (j.addEventListener("mousedown", w), j.addEventListener("mouseup", C)), () => {
4764
+ j && (j.removeEventListener("mousedown", w), j.removeEventListener("mouseup", C));
4765
4765
  };
4766
4766
  }, [v]);
4767
4767
  const S = (j) => {
@@ -4781,7 +4781,7 @@ const xn = ({
4781
4781
  "div",
4782
4782
  {
4783
4783
  id: `${e}-overlay`,
4784
- ref: C,
4784
+ ref: E,
4785
4785
  className: K("overlay", {
4786
4786
  open: f,
4787
4787
  "in-portal": d.includes("in-portal")
@@ -4796,7 +4796,7 @@ const xn = ({
4796
4796
  }),
4797
4797
  hidden: !f,
4798
4798
  style: L,
4799
- children: t && /* @__PURE__ */ c.jsx(Op, { containerElements: [C.current], children: /* @__PURE__ */ c.jsxs("div", { className: "overlay-content", children: [
4799
+ children: t && /* @__PURE__ */ c.jsx(Op, { containerElements: [E.current], children: /* @__PURE__ */ c.jsxs("div", { className: "overlay-content", children: [
4800
4800
  /* @__PURE__ */ c.jsxs("div", { className: "top", children: [
4801
4801
  o && /* @__PURE__ */ c.jsx("h2", { className: "modal-title", children: o }),
4802
4802
  /* @__PURE__ */ c.jsx(
@@ -5082,10 +5082,10 @@ const ui = "languageSwitcher_", U_ = ({
5082
5082
  /* @__PURE__ */ c.jsxs("nav", { children: [
5083
5083
  s !== "short" && /* @__PURE__ */ c.jsx("p", { children: o || u.formatMessage({ id: `${ui}label` }) }),
5084
5084
  /* @__PURE__ */ c.jsx("ul", { children: g.map((b) => {
5085
- var C;
5085
+ var E;
5086
5086
  if (!Da[b])
5087
5087
  return null;
5088
- const v = (C = r[b]) == null ? void 0 : C.post_name;
5088
+ const v = (E = r[b]) == null ? void 0 : E.post_name;
5089
5089
  let x = { className: b };
5090
5090
  if (h === b)
5091
5091
  x["aria-label"] = u.formatMessage(
@@ -5400,8 +5400,8 @@ const V_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5400
5400
  f.preventDefault();
5401
5401
  let v = b;
5402
5402
  f.key === "ArrowLeft" ? b > 0 ? v = b - 1 : v = e.length - 1 : f.key === "ArrowRight" && (b < e.length - 1 ? v = b + 1 : v = 0);
5403
- const x = r(e[v].id, e[v].text, v), C = document.getElementById(`tab-${x}`);
5404
- C == null || C.focus(), u(x);
5403
+ const x = r(e[v].id, e[v].text, v), E = document.getElementById(`tab-${x}`);
5404
+ E == null || E.focus(), u(x);
5405
5405
  break;
5406
5406
  }
5407
5407
  case "Enter":
@@ -5422,11 +5422,11 @@ const V_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5422
5422
  }, [s]);
5423
5423
  const m = [], p = [];
5424
5424
  return e.forEach(
5425
- ({ id: f, text: b, content: v, href: x, hasCarousel: C, breakpoint: F }, w) => {
5425
+ ({ id: f, text: b, content: v, href: x, hasCarousel: E, breakpoint: F }, w) => {
5426
5426
  if (F && !h(F))
5427
5427
  return;
5428
5428
  f = r(f, b, w);
5429
- const E = s === f, S = {};
5429
+ const C = s === f, S = {};
5430
5430
  x || (S["aria-controls"] = f, S.onClick = (L) => {
5431
5431
  L.preventDefault(), L.stopPropagation(), o(f), !n && (window.location.hash = `#${f}`);
5432
5432
  }, p.push(
@@ -5434,10 +5434,10 @@ const V_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5434
5434
  "section",
5435
5435
  {
5436
5436
  id: f,
5437
- hidden: !E,
5437
+ hidden: !C,
5438
5438
  role: "tabpanel",
5439
5439
  "aria-labelledby": `tab-${f}`,
5440
- "aria-live": E ? "assertive" : "off",
5440
+ "aria-live": C ? "assertive" : "off",
5441
5441
  children: typeof v == "string" ? /* @__PURE__ */ c.jsx("p", { children: v }) : v
5442
5442
  },
5443
5443
  `section-${f}`
@@ -5449,10 +5449,10 @@ const V_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5449
5449
  href: x || `#${f}`,
5450
5450
  id: `tab-${f}`,
5451
5451
  "aria-controls": f,
5452
- className: K({ selected: E }),
5452
+ className: K({ selected: C }),
5453
5453
  role: "tab",
5454
- tabIndex: E ? 0 : -1,
5455
- "aria-selected": E,
5454
+ tabIndex: C ? 0 : -1,
5455
+ "aria-selected": C,
5456
5456
  onKeyDown: (L) => d(L, w),
5457
5457
  ...S,
5458
5458
  children: b
@@ -5754,12 +5754,12 @@ const Vn = {
5754
5754
  d && !g ? (async () => {
5755
5755
  try {
5756
5756
  const w = await o(d) || [];
5757
- f((E) => ({
5758
- ...E,
5757
+ f((C) => ({
5758
+ ...C,
5759
5759
  predictions: w
5760
5760
  }));
5761
5761
  } catch (w) {
5762
- console.error("Error fetching predictions:", w), f((E) => ({ ...E, predictions: [] }));
5762
+ console.error("Error fetching predictions:", w), f((C) => ({ ...C, predictions: [] }));
5763
5763
  }
5764
5764
  })() : f((F) => ({ ...F, predictions: [] }));
5765
5765
  }, [d, g]), de(() => {
@@ -5793,7 +5793,7 @@ const Vn = {
5793
5793
  activePredictionIndex: -1,
5794
5794
  isPredictionSelected: !1
5795
5795
  }));
5796
- }, C = (F) => {
5796
+ }, E = (F) => {
5797
5797
  s(F.description), h((w) => ({
5798
5798
  ...w,
5799
5799
  input: F.description,
@@ -5821,9 +5821,9 @@ const Vn = {
5821
5821
  /* @__PURE__ */ c.jsx("ul", { className: "predictions-list", children: m.map((F, w) => /* @__PURE__ */ c.jsx(
5822
5822
  "li",
5823
5823
  {
5824
- onClick: () => C(F),
5825
- onMouseEnter: () => f((E) => ({
5826
- ...E,
5824
+ onClick: () => E(F),
5825
+ onMouseEnter: () => f((C) => ({
5826
+ ...C,
5827
5827
  activePredictionIndex: w
5828
5828
  })),
5829
5829
  className: K("predictions-list-item", {
@@ -5887,34 +5887,29 @@ const bd = ({
5887
5887
  n,
5888
5888
  {
5889
5889
  onClick: (x) => {
5890
- const C = x.target;
5891
- C.nodeName.toLowerCase() === "a" || C.parentNode && C.parentNode.nodeName.toLowerCase() === "a" || (x.preventDefault(), x.stopPropagation(), b());
5890
+ const E = x.target;
5891
+ E.nodeName.toLowerCase() === "a" || E.parentNode && E.parentNode.nodeName.toLowerCase() === "a" || (x.preventDefault(), x.stopPropagation(), b());
5892
5892
  },
5893
5893
  onKeyDown: h ? (x) => {
5894
- var C, F, w, E;
5894
+ var E, F, w;
5895
5895
  if (x.key !== "Tab")
5896
5896
  switch (x.key) {
5897
5897
  case "Enter":
5898
+ case "Space":
5898
5899
  x.stopPropagation(), x.preventDefault(), b();
5899
5900
  break;
5900
5901
  case "ArrowLeft":
5901
5902
  case "ArrowRight":
5902
5903
  x.stopPropagation(), x.preventDefault();
5903
- const S = x.currentTarget;
5904
- let L = S == null ? void 0 : S.nextElementSibling;
5904
+ const C = x.currentTarget;
5905
+ let S = C == null ? void 0 : C.nextElementSibling;
5905
5906
  if (x.key === "ArrowLeft") {
5906
- const A = S == null ? void 0 : S.previousElementSibling;
5907
- A ? L = A : L = (C = S == null ? void 0 : S.parentElement) == null ? void 0 : C.lastElementChild;
5907
+ const L = C == null ? void 0 : C.previousElementSibling;
5908
+ L ? S = L : S = (E = C == null ? void 0 : C.parentElement) == null ? void 0 : E.lastElementChild;
5908
5909
  } else
5909
- L || (L = (F = S == null ? void 0 : S.parentElement) == null ? void 0 : F.firstElementChild);
5910
- (L == null ? void 0 : L.className.split(" ")[0]) && ((w = L == null ? void 0 : L.querySelector("label")) == null || w.focus());
5910
+ S || (S = (F = C == null ? void 0 : C.parentElement) == null ? void 0 : F.firstElementChild);
5911
+ S && ((w = S == null ? void 0 : S.querySelector("label")) == null || w.focus());
5911
5912
  break;
5912
- default:
5913
- const z = x.currentTarget.closest("fieldset"), M = (E = z == null ? void 0 : z.nextElementSibling) == null ? void 0 : E.nextElementSibling;
5914
- if (z) {
5915
- M == null || M.querySelector("div").focus();
5916
- break;
5917
- }
5918
5913
  }
5919
5914
  } : void 0,
5920
5915
  className: K(i, "checkbox-wrapper", e, {
@@ -5955,13 +5950,13 @@ const Qp = ({
5955
5950
  Array.isArray(f) && f.length === 1 && typeof f[0] == "string" ? v = t && f ? t.find((S) => S.id === f[0]) : t ? t[0] : { id: "", label: "" } : Array.isArray(f) && f.length === 1 && typeof f[0] != "string" ? v = f[0] : v = { id: "", label: "" }, de(() => {
5956
5951
  b(g);
5957
5952
  }, [r, n]);
5958
- const { onChange: x, onMultiSelectSubmit: C, ...F } = i, w = (S) => {
5953
+ const { onChange: x, onMultiSelectSubmit: E, ...F } = i, w = (S) => {
5959
5954
  if (o) {
5960
5955
  let L = [];
5961
5956
  f != null && f.includes(S.id) ? L = f.filter((j) => j !== S.id) : L = [...f, S.id], b([...L]), x && x([...L]);
5962
5957
  } else
5963
5958
  b([S]), x && x(S.id), m(!1);
5964
- }, E = (S) => {
5959
+ }, C = (S) => {
5965
5960
  if (S === "all") {
5966
5961
  const L = (t == null ? void 0 : t.map((j) => j.id)) || [];
5967
5962
  b(L), x && x(L);
@@ -6027,7 +6022,7 @@ const Qp = ({
6027
6022
  {
6028
6023
  variant: "tertiary",
6029
6024
  size: "small",
6030
- onClick: () => E("all"),
6025
+ onClick: () => C("all"),
6031
6026
  className: "gtm-trackable",
6032
6027
  "data-gtm-event-type": "all-click",
6033
6028
  "data-gtm-event-context": a,
@@ -6039,7 +6034,7 @@ const Qp = ({
6039
6034
  {
6040
6035
  variant: "tertiary",
6041
6036
  size: "small",
6042
- onClick: () => E("none"),
6037
+ onClick: () => C("none"),
6043
6038
  className: "gtm-trackable",
6044
6039
  "data-gtm-event-type": "none-click",
6045
6040
  "data-gtm-event-context": a,
@@ -6078,7 +6073,7 @@ const Qp = ({
6078
6073
  {
6079
6074
  variant: "secondary",
6080
6075
  onClick: () => {
6081
- C && C(f), document.dispatchEvent(
6076
+ E && E(f), document.dispatchEvent(
6082
6077
  new CustomEvent("dropdownMultiSelectSubmit", {
6083
6078
  detail: {
6084
6079
  id: u || "dropdown-multi-select",
@@ -6123,18 +6118,18 @@ const Eu = ({
6123
6118
  id: b,
6124
6119
  label: v = !1,
6125
6120
  value: x = b,
6126
- disabled: C = !1
6121
+ disabled: E = !1
6127
6122
  }) => {
6128
6123
  const F = `${r}_${b}`, w = () => {
6129
- if (C)
6124
+ if (E)
6130
6125
  return;
6131
- let E;
6126
+ let C;
6132
6127
  if (a) {
6133
6128
  const S = g == null ? void 0 : g.indexOf(x);
6134
- Array.isArray(g) && S >= 0 ? (E = g, E.splice(S, 1)) : (!g || g.length === 0 ? E = [] : E = g, E.push(x));
6129
+ Array.isArray(g) && S >= 0 ? (C = g, C.splice(S, 1)) : (!g || g.length === 0 ? C = [] : C = g, C.push(x));
6135
6130
  } else
6136
- E = f === x ? void 0 : x;
6137
- t.onChange(E);
6131
+ C = f === x ? void 0 : x;
6132
+ t.onChange(C);
6138
6133
  };
6139
6134
  return /* @__PURE__ */ c.jsx(
6140
6135
  bd,
@@ -6152,7 +6147,7 @@ const Eu = ({
6152
6147
  label: v || p.formatMessage({
6153
6148
  id: n ? `${n}_${b}` : b
6154
6149
  }),
6155
- disabled: C,
6150
+ disabled: E,
6156
6151
  accessibilityOptions: h
6157
6152
  },
6158
6153
  F
@@ -6229,7 +6224,7 @@ const Kn = {
6229
6224
  submitOnEnter: d,
6230
6225
  ...h
6231
6226
  }) => {
6232
- const m = le(), p = l && l.some(({ condition: M }) => M === "required"), g = so(u), f = o && Kn[o] && Kn[o].component ? Kn[o].component : Qn, b = o && ["checkboxes", "radio"].includes(o), v = o && ["autocomplete"].includes(o), x = r && `error-${e}`, C = `character-limit-${e}`, F = {};
6227
+ const m = le(), p = l && l.some(({ condition: M }) => M === "required"), g = so(u), f = o && Kn[o] && Kn[o].component ? Kn[o].component : Qn, b = o && ["checkboxes", "radio"].includes(o), v = o && ["autocomplete"].includes(o), x = r && `error-${e}`, E = `character-limit-${e}`, F = {};
6233
6228
  b ? F.element = "legend" : F.htmlFor = e;
6234
6229
  let w = {
6235
6230
  ...h,
@@ -6242,12 +6237,12 @@ const Kn = {
6242
6237
  functions: An(i),
6243
6238
  value: u
6244
6239
  };
6245
- const E = (M) => {
6240
+ const C = (M) => {
6246
6241
  w["aria-describedby"] ? w["aria-describedby"] += ` ${M}` : w["aria-describedby"] = M;
6247
6242
  };
6248
6243
  if (a > 0) {
6249
6244
  const M = Vp(a, i.onChange);
6250
- E(`${C}-info`), w = {
6245
+ C(`${E}-info`), w = {
6251
6246
  ...w,
6252
6247
  ...M
6253
6248
  }, M.functions && typeof M.functions == "object" && (w.functions = {
@@ -6255,7 +6250,7 @@ const Kn = {
6255
6250
  ...M.functions
6256
6251
  });
6257
6252
  }
6258
- o && Kn[o] && Kn[o].props && (w = { ...w, ...Kn[o].props }), b && (w.intlPath = `${t}_${e}`), r && (w["aria-invalid"] = !0, w["aria-errormessage"] = x, E(x));
6253
+ o && Kn[o] && Kn[o].props && (w = { ...w, ...Kn[o].props }), b && (w.intlPath = `${t}_${e}`), r && (w["aria-invalid"] = !0, w["aria-errormessage"] = x, C(x));
6259
6254
  const S = h.label || m.formatMessage({ id: t ? `${t}_${e}` : e }), L = ({ ...M }) => r ? re.createElement(
6260
6255
  M.as || "p",
6261
6256
  {
@@ -6313,7 +6308,7 @@ const Kn = {
6313
6308
  /* @__PURE__ */ c.jsx(
6314
6309
  vd,
6315
6310
  {
6316
- id: C,
6311
+ id: E,
6317
6312
  limit: a,
6318
6313
  valueLength: g
6319
6314
  }
@@ -6439,11 +6434,11 @@ const Ln = ({
6439
6434
  const { customOnSubmit: p, hideButton: g, ...f } = s, b = 40, {
6440
6435
  shouldShowCancelButton: v = !1,
6441
6436
  shouldReset: x = !0,
6442
- shouldHide: C = !0,
6437
+ shouldHide: E = !0,
6443
6438
  showRequiredLabels: F = !0,
6444
6439
  showSuccessMessage: w = !1
6445
6440
  } = l || {}, {
6446
- onSuccess: E = async () => {
6441
+ onSuccess: C = async () => {
6447
6442
  },
6448
6443
  onCancel: S = () => {
6449
6444
  },
@@ -6520,7 +6515,7 @@ const Ln = ({
6520
6515
  dispatch: _,
6521
6516
  onSuccess: async (B) => {
6522
6517
  try {
6523
- await E(B), _({ type: x ? "formSubmittedAndReset" : "formSubmitted" });
6518
+ await C(B), _({ type: x ? "formSubmittedAndReset" : "formSubmitted" });
6524
6519
  } catch (I) {
6525
6520
  L(I), _({
6526
6521
  type: "updateValue",
@@ -6587,7 +6582,7 @@ const Ln = ({
6587
6582
  }
6588
6583
  ) : null,
6589
6584
  u,
6590
- (!C || !N && !q || p) && t.map((B, I) => {
6585
+ (!E || !N && !q || p) && t.map((B, I) => {
6591
6586
  const {
6592
6587
  id: R = B.name || I,
6593
6588
  component: W,
@@ -6716,7 +6711,7 @@ const K_ = ({
6716
6711
  try {
6717
6712
  u((x) => ({ ...x, rating: v, disabled: !0 })), await r({ id: h, value: v });
6718
6713
  } catch (x) {
6719
- u((C) => ({ ...C, rating: null })), i(x);
6714
+ u((E) => ({ ...E, rating: null })), i(x);
6720
6715
  } finally {
6721
6716
  u((x) => ({ ...x, disabled: !1 }));
6722
6717
  }
@@ -6743,8 +6738,8 @@ const K_ = ({
6743
6738
  { id: `${g}stars` },
6744
6739
  { number: x, total: t }
6745
6740
  )}${x === 1 || x === t ? ` - ${f[x === 1 ? "low" : "high"]}` : ""}`,
6746
- onClick: (C) => {
6747
- C.preventDefault(), C.stopPropagation(), b(x);
6741
+ onClick: (E) => {
6742
+ E.preventDefault(), E.stopPropagation(), b(x);
6748
6743
  },
6749
6744
  disabled: p
6750
6745
  }
@@ -8188,14 +8183,14 @@ var Hg = (e, t, n) => {
8188
8183
  case "merge_node": {
8189
8184
  var {
8190
8185
  path: v
8191
- } = n, x = oe.get(e, v), C = P.previous(v), F = oe.get(e, C), w = oe.parent(e, v), E = v[v.length - 1];
8186
+ } = n, x = oe.get(e, v), E = P.previous(v), F = oe.get(e, E), w = oe.parent(e, v), C = v[v.length - 1];
8192
8187
  if (me.isText(x) && me.isText(F))
8193
8188
  F.text += x.text;
8194
8189
  else if (!me.isText(x) && !me.isText(F))
8195
8190
  F.children.push(...x.children);
8196
8191
  else
8197
8192
  throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v, "] to nodes of different interfaces: ").concat(ot.stringify(x), " ").concat(ot.stringify(F)));
8198
- if (w.children.splice(E, 1), t)
8193
+ if (w.children.splice(C, 1), t)
8199
8194
  for (var [S, L] of Z.points(t))
8200
8195
  t[L] = Ae.transform(S, n);
8201
8196
  break;
@@ -9533,14 +9528,14 @@ var Tv = (e, t) => {
9533
9528
  var v = P.transform(b, t);
9534
9529
  p.push(v);
9535
9530
  }
9536
- var x = p[p.length - 1], C = h[h.length - 1], F = x.concat(C);
9531
+ var x = p[p.length - 1], E = h[h.length - 1], F = x.concat(E);
9537
9532
  return [...m, ...p, F];
9538
9533
  }
9539
9534
  case "remove_node": {
9540
9535
  var {
9541
9536
  path: w
9542
- } = t, E = P.ancestors(w);
9543
- return [...E];
9537
+ } = t, C = P.ancestors(w);
9538
+ return [...C];
9544
9539
  }
9545
9540
  case "split_node": {
9546
9541
  var {
@@ -10013,8 +10008,8 @@ var f0 = ["text"], h0 = ["text"], m0 = function(t) {
10013
10008
  }
10014
10009
  }
10015
10010
  }
10016
- var C = un(m, h0);
10017
- return C;
10011
+ var E = un(m, h0);
10012
+ return E;
10018
10013
  }, p0 = function(t) {
10019
10014
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
10020
10015
  mode: r = "lowest",
@@ -10097,8 +10092,8 @@ function v0(e) {
10097
10092
  f = [b, v];
10098
10093
  continue;
10099
10094
  }
10100
- var C = r === "lowest" ? f : [b, v];
10101
- C && (i ? g.push(C) : yield C), f = [b, v];
10095
+ var E = r === "lowest" ? f : [b, v];
10096
+ E && (i ? g.push(E) : yield E), f = [b, v];
10102
10097
  }
10103
10098
  }
10104
10099
  r === "lowest" && f && (i ? g.push(f) : yield f), i && (yield* g);
@@ -10254,9 +10249,9 @@ function k0(e) {
10254
10249
  if (e.isInline(b))
10255
10250
  continue;
10256
10251
  if (y.hasInlines(e, b)) {
10257
- var x = P.isAncestor(v, u.path) ? u : y.end(e, v), C = P.isAncestor(v, l.path) ? l : y.start(e, v);
10252
+ var x = P.isAncestor(v, u.path) ? u : y.end(e, v), E = P.isAncestor(v, l.path) ? l : y.start(e, v);
10258
10253
  m = y.string(e, {
10259
- anchor: C,
10254
+ anchor: E,
10260
10255
  focus: x
10261
10256
  }, {
10262
10257
  voids: a
@@ -10285,8 +10280,8 @@ function k0(e) {
10285
10280
  }
10286
10281
  }
10287
10282
  }
10288
- function w(E, S, L) {
10289
- return S === "character" ? po(E, L) : S === "word" ? ov(E, L) : S === "line" || S === "block" ? E.length : 1;
10283
+ function w(C, S, L) {
10284
+ return S === "character" ? po(C, L) : S === "word" ? ov(C, L) : S === "line" || S === "block" ? C.length : 1;
10290
10285
  }
10291
10286
  }();
10292
10287
  }
@@ -10507,25 +10502,25 @@ var j0 = (e, t) => {
10507
10502
  voids: l
10508
10503
  }));
10509
10504
  }
10510
- var [x, C] = Z.edges(u), F = y.above(t, {
10505
+ var [x, E] = Z.edges(u), F = y.above(t, {
10511
10506
  match: (ge) => he.isElement(ge) && y.isBlock(t, ge),
10512
10507
  at: x,
10513
10508
  voids: l
10514
10509
  }), w = y.above(t, {
10515
10510
  match: (ge) => he.isElement(ge) && y.isBlock(t, ge),
10516
- at: C,
10511
+ at: E,
10517
10512
  voids: l
10518
- }), E = F && w && !P.equals(F[1], w[1]), S = P.equals(x.path, C.path), L = l ? null : (r = y.void(t, {
10513
+ }), C = F && w && !P.equals(F[1], w[1]), S = P.equals(x.path, E.path), L = l ? null : (r = y.void(t, {
10519
10514
  at: x,
10520
10515
  mode: "highest"
10521
10516
  })) !== null && r !== void 0 ? r : y.elementReadOnly(t, {
10522
10517
  at: x,
10523
10518
  mode: "highest"
10524
10519
  }), j = l ? null : (i = y.void(t, {
10525
- at: C,
10520
+ at: E,
10526
10521
  mode: "highest"
10527
10522
  })) !== null && i !== void 0 ? i : y.elementReadOnly(t, {
10528
- at: C,
10523
+ at: E,
10529
10524
  mode: "highest"
10530
10525
  });
10531
10526
  if (L) {
@@ -10533,8 +10528,8 @@ var j0 = (e, t) => {
10533
10528
  z && F && P.isAncestor(F[1], z.path) && (x = z);
10534
10529
  }
10535
10530
  if (j) {
10536
- var M = y.after(t, C);
10537
- M && w && P.isAncestor(w[1], M.path) && (C = M);
10531
+ var M = y.after(t, E);
10532
+ M && w && P.isAncestor(w[1], M.path) && (E = M);
10538
10533
  }
10539
10534
  var A = [], _;
10540
10535
  for (var T of y.nodes(t, {
@@ -10542,12 +10537,12 @@ var j0 = (e, t) => {
10542
10537
  voids: l
10543
10538
  })) {
10544
10539
  var [N, q] = T;
10545
- _ && P.compare(q, _) === 0 || (!l && he.isElement(N) && (y.isVoid(t, N) || y.isElementReadOnly(t, N)) || !P.isCommon(q, x.path) && !P.isCommon(q, C.path)) && (A.push(T), _ = q);
10540
+ _ && P.compare(q, _) === 0 || (!l && he.isElement(N) && (y.isVoid(t, N) || y.isElementReadOnly(t, N)) || !P.isCommon(q, x.path) && !P.isCommon(q, E.path)) && (A.push(T), _ = q);
10546
10541
  }
10547
10542
  var U = Array.from(A, (ge) => {
10548
10543
  var [, Fe] = ge;
10549
10544
  return y.pathRef(t, Fe);
10550
- }), Y = y.pointRef(t, x), ie = y.pointRef(t, C), D = "";
10545
+ }), Y = y.pointRef(t, x), ie = y.pointRef(t, E), D = "";
10551
10546
  if (!S && !L) {
10552
10547
  var $ = Y.current, [X] = y.leaf(t, $), {
10553
10548
  path: k
@@ -10567,7 +10562,7 @@ var j0 = (e, t) => {
10567
10562
  })), !j) {
10568
10563
  var R = ie.current, [W] = y.leaf(t, R), {
10569
10564
  path: ee
10570
- } = R, H = S ? x.offset : 0, ne = W.text.slice(H, C.offset);
10565
+ } = R, H = S ? x.offset : 0, ne = W.text.slice(H, E.offset);
10571
10566
  ne.length > 0 && (t.apply({
10572
10567
  type: "remove_text",
10573
10568
  path: ee,
@@ -10575,7 +10570,7 @@ var j0 = (e, t) => {
10575
10570
  text: ne
10576
10571
  }), D = ne);
10577
10572
  }
10578
- !S && E && ie.current && Y.current && J.mergeNodes(t, {
10573
+ !S && C && ie.current && Y.current && J.mergeNodes(t, {
10579
10574
  at: ie.current,
10580
10575
  hanging: !0,
10581
10576
  voids: l
@@ -10637,13 +10632,13 @@ var j0 = (e, t) => {
10637
10632
  match: (I) => he.isElement(I) && y.isBlock(t, I),
10638
10633
  at: s,
10639
10634
  voids: a
10640
- }), [, f] = g, b = y.isStart(t, s, f), v = y.isEnd(t, s, f), x = b && v, C = !b || b && v, F = !v, [, w] = oe.first({
10635
+ }), [, f] = g, b = y.isStart(t, s, f), v = y.isEnd(t, s, f), x = b && v, E = !b || b && v, F = !v, [, w] = oe.first({
10641
10636
  children: n
10642
- }, []), [, E] = oe.last({
10637
+ }, []), [, C] = oe.last({
10643
10638
  children: n
10644
10639
  }, []), S = [], L = (I) => {
10645
10640
  var [R, W] = I, ee = W.length === 0;
10646
- return ee ? !1 : x ? !0 : !(C && P.isAncestor(W, w) && he.isElement(R) && !t.isVoid(R) && !t.isInline(R) || F && P.isAncestor(W, E) && he.isElement(R) && !t.isVoid(R) && !t.isInline(R));
10641
+ return ee ? !1 : x ? !0 : !(E && P.isAncestor(W, w) && he.isElement(R) && !t.isVoid(R) && !t.isInline(R) || F && P.isAncestor(W, C) && he.isElement(R) && !t.isVoid(R) && !t.isInline(R));
10647
10642
  };
10648
10643
  for (var j of oe.nodes({
10649
10644
  children: n
@@ -10872,30 +10867,30 @@ var U0 = function(t, n) {
10872
10867
  } else
10873
10868
  return;
10874
10869
  }
10875
- var C = P.parent(l), F = l[l.length - 1];
10870
+ var E = P.parent(l), F = l[l.length - 1];
10876
10871
  if (!(!a && y.void(t, {
10877
- at: C
10872
+ at: E
10878
10873
  }))) {
10879
10874
  if (o) {
10880
- var w = [], E = P.levels(C);
10875
+ var w = [], C = P.levels(E);
10881
10876
  Bv(t, () => {
10882
10877
  var z = function() {
10883
- var _ = C.concat(F);
10878
+ var _ = E.concat(F);
10884
10879
  F++;
10885
10880
  var T = {
10886
10881
  type: "insert_node",
10887
10882
  path: _,
10888
10883
  node: M
10889
10884
  };
10890
- t.apply(T), l = P.next(l), w.push(T), me.isText ? E.push(...Array.from(oe.nodes(M), (N) => {
10885
+ t.apply(T), l = P.next(l), w.push(T), me.isText ? C.push(...Array.from(oe.nodes(M), (N) => {
10891
10886
  var [, q] = N;
10892
10887
  return _.concat(q);
10893
- })) : E.push(_);
10888
+ })) : C.push(_);
10894
10889
  };
10895
10890
  for (var M of n)
10896
10891
  z();
10897
10892
  }, () => {
10898
- Rd(t, E, (z) => {
10893
+ Rd(t, C, (z) => {
10899
10894
  var M = z;
10900
10895
  for (var A of w)
10901
10896
  if (P.operationCanTransformPath(A) && (M = P.transform(M, A), !M))
@@ -10905,7 +10900,7 @@ var U0 = function(t, n) {
10905
10900
  });
10906
10901
  } else
10907
10902
  for (var S of n) {
10908
- var L = C.concat(F);
10903
+ var L = E.concat(F);
10909
10904
  F++, t.apply({
10910
10905
  type: "insert_node",
10911
10906
  path: L,
@@ -10970,13 +10965,13 @@ var U0 = function(t, n) {
10970
10965
  voids: a
10971
10966
  });
10972
10967
  } else {
10973
- var x = P.next(d), C = P.next(p);
10968
+ var x = P.next(d), E = P.next(p);
10974
10969
  J.splitNodes(t, {
10975
10970
  at: x,
10976
10971
  voids: a
10977
10972
  }), J.moveNodes(t, {
10978
10973
  at: d,
10979
- to: C,
10974
+ to: E,
10980
10975
  voids: a
10981
10976
  });
10982
10977
  }
@@ -11032,7 +11027,7 @@ var U0 = function(t, n) {
11032
11027
  if (!(!h || !m)) {
11033
11028
  var [p, g] = h, [f, b] = m;
11034
11029
  if (!(g.length === 0 || b.length === 0)) {
11035
- var v = P.next(b), x = P.common(g, b), C = P.isSibling(g, b), F = Array.from(y.levels(t, {
11030
+ var v = P.next(b), x = P.common(g, b), E = P.isSibling(g, b), F = Array.from(y.levels(t, {
11036
11031
  at: g
11037
11032
  }), (z) => {
11038
11033
  var [M] = z;
@@ -11041,7 +11036,7 @@ var U0 = function(t, n) {
11041
11036
  at: g,
11042
11037
  mode: "highest",
11043
11038
  match: (z) => F.includes(z) && Id(t, z)
11044
- }), E = w && y.pathRef(t, w[1]), S, L;
11039
+ }), C = w && y.pathRef(t, w[1]), S, L;
11045
11040
  if (me.isText(p) && me.isText(f)) {
11046
11041
  var j = un(p, Z0);
11047
11042
  L = f.text.length, S = j;
@@ -11050,12 +11045,12 @@ var U0 = function(t, n) {
11050
11045
  L = f.children.length, S = j;
11051
11046
  } else
11052
11047
  throw new Error("Cannot merge the node at path [".concat(g, "] with the previous sibling because it is not the same kind: ").concat(ot.stringify(p), " ").concat(ot.stringify(f)));
11053
- C || J.moveNodes(t, {
11048
+ E || J.moveNodes(t, {
11054
11049
  at: g,
11055
11050
  to: v,
11056
11051
  voids: s
11057
- }), E && J.removeNodes(t, {
11058
- at: E.current,
11052
+ }), C && J.removeNodes(t, {
11053
+ at: C.current,
11059
11054
  voids: s
11060
11055
  }), he.isElement(f) && y.isEmpty(t, f) || me.isText(f) && f.text === "" && b[b.length - 1] !== 0 ? J.removeNodes(t, {
11061
11056
  at: b,
@@ -11065,7 +11060,7 @@ var U0 = function(t, n) {
11065
11060
  path: v,
11066
11061
  position: L,
11067
11062
  properties: S
11068
- }), E && E.unref();
11063
+ }), C && C.unref();
11069
11064
  }
11070
11065
  }
11071
11066
  }
@@ -11179,20 +11174,20 @@ var U0 = function(t, n) {
11179
11174
  }), a = m.unref(), r.at == null && J.select(t, a);
11180
11175
  }
11181
11176
  s || (s = (L, j) => L !== j);
11182
- for (var [x, C] of y.nodes(t, {
11177
+ for (var [x, E] of y.nodes(t, {
11183
11178
  at: a,
11184
11179
  match: i,
11185
11180
  mode: u,
11186
11181
  voids: h
11187
11182
  })) {
11188
11183
  var F = {}, w = {};
11189
- if (C.length !== 0) {
11190
- var E = !1;
11184
+ if (E.length !== 0) {
11185
+ var C = !1;
11191
11186
  for (var S in n)
11192
- S === "children" || S === "text" || s(n[S], x[S]) && (E = !0, x.hasOwnProperty(S) && (F[S] = x[S]), o ? n[S] != null && (w[S] = o(x[S], n[S])) : n[S] != null && (w[S] = n[S]));
11193
- E && t.apply({
11187
+ S === "children" || S === "text" || s(n[S], x[S]) && (C = !0, x.hasOwnProperty(S) && (F[S] = x[S]), o ? n[S] != null && (w[S] = o(x[S], n[S])) : n[S] != null && (w[S] = n[S]));
11188
+ C && t.apply({
11194
11189
  type: "set_node",
11195
- path: C,
11190
+ path: E,
11196
11191
  properties: F,
11197
11192
  newProperties: w
11198
11193
  });
@@ -11243,20 +11238,20 @@ var U0 = function(t, n) {
11243
11238
  if (!i && f) {
11244
11239
  var [v, x] = f;
11245
11240
  if (he.isElement(v) && t.isInline(v)) {
11246
- var C = y.after(t, x);
11247
- if (!C) {
11241
+ var E = y.after(t, x);
11242
+ if (!E) {
11248
11243
  var F = {
11249
11244
  text: ""
11250
11245
  }, w = P.next(x);
11251
11246
  J.insertNodes(t, F, {
11252
11247
  at: w,
11253
11248
  voids: i
11254
- }), C = y.point(t, w);
11249
+ }), E = y.point(t, w);
11255
11250
  }
11256
- s = C, l = !0;
11251
+ s = E, l = !0;
11257
11252
  }
11258
- var E = s.path.length - x.length;
11259
- o = E + 1, l = !0;
11253
+ var C = s.path.length - x.length;
11254
+ o = C + 1, l = !0;
11260
11255
  }
11261
11256
  p = y.pointRef(t, s);
11262
11257
  var S = s.path.length - o, [, L] = g, j = s.path.slice(0, S), z = o === 0 ? s.offset : s.path[S] + b;
@@ -11402,10 +11397,10 @@ var ib = function(t, n) {
11402
11397
  voids: s
11403
11398
  }));
11404
11399
  if (x.length > 0) {
11405
- var [C] = x, F = x[x.length - 1], [, w] = C, [, E] = F;
11406
- if (w.length === 0 && E.length === 0)
11400
+ var [E] = x, F = x[x.length - 1], [, w] = E, [, C] = F;
11401
+ if (w.length === 0 && C.length === 0)
11407
11402
  return 0;
11408
- var S = P.equals(w, E) ? P.parent(w) : P.common(w, E), L = y.range(t, w, E), j = y.node(t, S), [z] = j, M = S.length + 1, A = P.next(E.slice(0, M)), _ = dl(dl({}, n), {}, {
11403
+ var S = P.equals(w, C) ? P.parent(w) : P.common(w, C), L = y.range(t, w, C), j = y.node(t, S), [z] = j, M = S.length + 1, A = P.next(C.slice(0, M)), _ = dl(dl({}, n), {}, {
11409
11404
  children: []
11410
11405
  });
11411
11406
  J.insertNodes(t, _, {
@@ -12009,39 +12004,39 @@ function dy(e, t, n) {
12009
12004
  if (typeof e != "function")
12010
12005
  throw new TypeError(uy);
12011
12006
  t = vl(t) || 0, oy(n) && (d = !!n.leading, h = "maxWait" in n, a = h ? ly(vl(n.maxWait) || 0, t) : a, m = "trailing" in n ? !!n.trailing : m);
12012
- function p(E) {
12007
+ function p(C) {
12013
12008
  var S = r, L = i;
12014
- return r = i = void 0, u = E, s = e.apply(L, S), s;
12009
+ return r = i = void 0, u = C, s = e.apply(L, S), s;
12015
12010
  }
12016
- function g(E) {
12017
- return u = E, o = setTimeout(v, t), d ? p(E) : s;
12011
+ function g(C) {
12012
+ return u = C, o = setTimeout(v, t), d ? p(C) : s;
12018
12013
  }
12019
- function f(E) {
12020
- var S = E - l, L = E - u, j = t - S;
12014
+ function f(C) {
12015
+ var S = C - l, L = C - u, j = t - S;
12021
12016
  return h ? cy(j, a - L) : j;
12022
12017
  }
12023
- function b(E) {
12024
- var S = E - l, L = E - u;
12018
+ function b(C) {
12019
+ var S = C - l, L = C - u;
12025
12020
  return l === void 0 || S >= t || S < 0 || h && L >= a;
12026
12021
  }
12027
12022
  function v() {
12028
- var E = Ia();
12029
- if (b(E))
12030
- return x(E);
12031
- o = setTimeout(v, f(E));
12023
+ var C = Ia();
12024
+ if (b(C))
12025
+ return x(C);
12026
+ o = setTimeout(v, f(C));
12032
12027
  }
12033
- function x(E) {
12034
- return o = void 0, m && r ? p(E) : (r = i = void 0, s);
12028
+ function x(C) {
12029
+ return o = void 0, m && r ? p(C) : (r = i = void 0, s);
12035
12030
  }
12036
- function C() {
12031
+ function E() {
12037
12032
  o !== void 0 && clearTimeout(o), u = 0, r = l = i = o = void 0;
12038
12033
  }
12039
12034
  function F() {
12040
12035
  return o === void 0 ? s : x(Ia());
12041
12036
  }
12042
12037
  function w() {
12043
- var E = Ia(), S = b(E);
12044
- if (r = arguments, i = this, l = E, S) {
12038
+ var C = Ia(), S = b(C);
12039
+ if (r = arguments, i = this, l = C, S) {
12045
12040
  if (o === void 0)
12046
12041
  return g(l);
12047
12042
  if (h)
@@ -12049,7 +12044,7 @@ function dy(e, t, n) {
12049
12044
  }
12050
12045
  return o === void 0 && (o = setTimeout(v, t)), s;
12051
12046
  }
12052
- return w.cancel = C, w.flush = F, w;
12047
+ return w.cancel = E, w.flush = F, w;
12053
12048
  }
12054
12049
  var Hd = dy;
12055
12050
  const fy = /* @__PURE__ */ Mn(Hd);
@@ -12101,23 +12096,23 @@ const by = /* @__PURE__ */ Mn(vy), bl = (e) => typeof e == "object" && e != null
12101
12096
  }
12102
12097
  g != null && g === document.body && $a(g) && !$a(document.documentElement) || g != null && $a(g, d) && p.push(g);
12103
12098
  }
12104
- 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: x } = window, { height: C, width: F, top: w, right: E, bottom: S, left: L } = e.getBoundingClientRect(), { top: j, right: z, bottom: M, left: A } = ((q) => {
12099
+ 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: x } = window, { height: E, width: F, top: w, right: C, bottom: S, left: L } = e.getBoundingClientRect(), { top: j, right: z, bottom: M, left: A } = ((q) => {
12105
12100
  const U = window.getComputedStyle(q);
12106
12101
  return { top: parseFloat(U.scrollMarginTop) || 0, right: parseFloat(U.scrollMarginRight) || 0, bottom: parseFloat(U.scrollMarginBottom) || 0, left: parseFloat(U.scrollMarginLeft) || 0 };
12107
12102
  })(e);
12108
- let _ = o === "start" || o === "nearest" ? w - j : o === "end" ? S + M : w + C / 2 - j + M, T = l === "center" ? L + F / 2 - A + z : l === "end" ? E + z : L - A;
12103
+ let _ = o === "start" || o === "nearest" ? w - j : o === "end" ? S + M : w + E / 2 - j + M, T = l === "center" ? L + F / 2 - A + z : l === "end" ? C + z : L - A;
12109
12104
  const N = [];
12110
12105
  for (let q = 0; q < p.length; q++) {
12111
12106
  const U = p[q], { height: Y, width: ie, top: D, right: $, bottom: X, left: k } = U.getBoundingClientRect();
12112
- if (s === "if-needed" && w >= 0 && L >= 0 && S <= b && E <= f && w >= D && S <= X && L >= k && E <= $)
12107
+ if (s === "if-needed" && w >= 0 && L >= 0 && S <= b && C <= f && w >= D && S <= X && L >= k && C <= $)
12113
12108
  return N;
12114
12109
  const B = getComputedStyle(U), I = parseInt(B.borderLeftWidth, 10), R = parseInt(B.borderTopWidth, 10), W = parseInt(B.borderRightWidth, 10), ee = parseInt(B.borderBottomWidth, 10);
12115
12110
  let H = 0, ne = 0;
12116
12111
  const ce = "offsetWidth" in U ? U.offsetWidth - U.clientWidth - I - W : 0, Q = "offsetHeight" in U ? U.offsetHeight - U.clientHeight - R - ee : 0, De = "offsetWidth" in U ? U.offsetWidth === 0 ? 0 : ie / U.offsetWidth : 0, ge = "offsetHeight" in U ? U.offsetHeight === 0 ? 0 : Y / U.offsetHeight : 0;
12117
12112
  if (m === U)
12118
- H = o === "start" ? _ : o === "end" ? _ - b : o === "nearest" ? hi(x, x + b, b, R, ee, x + _, x + _ + C, C) : _ - b / 2, ne = l === "start" ? T : l === "center" ? T - f / 2 : l === "end" ? T - f : hi(v, v + f, f, I, W, v + T, v + T + F, F), H = Math.max(0, H + x), ne = Math.max(0, ne + v);
12113
+ H = o === "start" ? _ : o === "end" ? _ - b : o === "nearest" ? hi(x, x + b, b, R, ee, x + _, x + _ + E, E) : _ - b / 2, ne = l === "start" ? T : l === "center" ? T - f / 2 : l === "end" ? T - f : hi(v, v + f, f, I, W, v + T, v + T + F, F), H = Math.max(0, H + x), ne = Math.max(0, ne + v);
12119
12114
  else {
12120
- H = o === "start" ? _ - D - R : o === "end" ? _ - X + ee + Q : o === "nearest" ? hi(D, X, Y, R, ee + Q, _, _ + C, C) : _ - (D + Y / 2) + Q / 2, ne = l === "start" ? T - k - I : l === "center" ? T - (k + ie / 2) + ce / 2 : l === "end" ? T - $ + W + ce : hi(k, $, ie, I, W + ce, T, T + F, F);
12115
+ H = o === "start" ? _ - D - R : o === "end" ? _ - X + ee + Q : o === "nearest" ? hi(D, X, Y, R, ee + Q, _, _ + E, E) : _ - (D + Y / 2) + Q / 2, ne = l === "start" ? T - k - I : l === "center" ? T - (k + ie / 2) + ce / 2 : l === "end" ? T - $ + W + ce : hi(k, $, ie, I, W + ce, T, T + F, F);
12121
12116
  const { scrollLeft: Fe, scrollTop: Ne } = U;
12122
12117
  H = ge === 0 ? 0 : Math.max(0, Math.min(Ne + H / ge, U.scrollHeight - Y / ge + Q)), ne = De === 0 ? 0 : Math.max(0, Math.min(Fe + ne / De, U.scrollWidth - ie / De + ce)), _ += Ne - H, T += Fe - ne;
12123
12118
  }
@@ -12226,7 +12221,7 @@ var Tn = function(e) {
12226
12221
  return mi.get(e);
12227
12222
  if (Kd(e))
12228
12223
  return mi.set(e, El), El;
12229
- var n = getComputedStyle(e), r = bo(e) && e.ownerSVGElement && e.getBBox(), i = !Ay && n.boxSizing === "border-box", a = Fy.test(n.writingMode || ""), s = !r && Cl.test(n.overflowY || ""), o = !r && Cl.test(n.overflowX || ""), l = r ? 0 : Wt(n.paddingTop), u = r ? 0 : Wt(n.paddingRight), d = r ? 0 : Wt(n.paddingBottom), h = r ? 0 : Wt(n.paddingLeft), m = r ? 0 : Wt(n.borderTopWidth), p = r ? 0 : Wt(n.borderRightWidth), g = r ? 0 : Wt(n.borderBottomWidth), f = r ? 0 : Wt(n.borderLeftWidth), b = h + u, v = l + d, x = f + p, C = m + g, F = o ? e.offsetHeight - C - e.clientHeight : 0, w = s ? e.offsetWidth - x - e.clientWidth : 0, E = i ? b + x : 0, S = i ? v + C : 0, L = r ? r.width : Wt(n.width) - E - w, j = r ? r.height : Wt(n.height) - S - F, z = L + b + w + x, M = j + v + F + C, A = Tn({
12224
+ var n = getComputedStyle(e), r = bo(e) && e.ownerSVGElement && e.getBBox(), i = !Ay && n.boxSizing === "border-box", a = Fy.test(n.writingMode || ""), s = !r && Cl.test(n.overflowY || ""), o = !r && Cl.test(n.overflowX || ""), l = r ? 0 : Wt(n.paddingTop), u = r ? 0 : Wt(n.paddingRight), d = r ? 0 : Wt(n.paddingBottom), h = r ? 0 : Wt(n.paddingLeft), m = r ? 0 : Wt(n.borderTopWidth), p = r ? 0 : Wt(n.borderRightWidth), g = r ? 0 : Wt(n.borderBottomWidth), f = r ? 0 : Wt(n.borderLeftWidth), b = h + u, v = l + d, x = f + p, E = m + g, F = o ? e.offsetHeight - E - e.clientHeight : 0, w = s ? e.offsetWidth - x - e.clientWidth : 0, C = i ? b + x : 0, S = i ? v + E : 0, L = r ? r.width : Wt(n.width) - C - w, j = r ? r.height : Wt(n.height) - S - F, z = L + b + w + x, M = j + v + F + E, A = Tn({
12230
12225
  devicePixelContentBoxSize: rr(Math.round(L * devicePixelRatio), Math.round(j * devicePixelRatio), a),
12231
12226
  borderBoxSize: rr(z, M, a),
12232
12227
  contentBoxSize: rr(L, j, a),
@@ -12934,18 +12929,18 @@ var te = {
12934
12929
  if (l = f.closest('[data-slate-node="text"]'), l) {
12935
12930
  var v = te.getWindow(e), x = v.document.createRange();
12936
12931
  x.setStart(l, 0), x.setEnd(a, s);
12937
- var C = x.cloneContents(), F = [...Array.prototype.slice.call(C.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(C.querySelectorAll("[contenteditable=false]"))];
12932
+ var E = x.cloneContents(), F = [...Array.prototype.slice.call(E.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(E.querySelectorAll("[contenteditable=false]"))];
12938
12933
  F.forEach((T) => {
12939
12934
  if (bt && !r && T.hasAttribute("data-slate-zero-width") && T.textContent.length > 0 && T.textContext !== "\uFEFF") {
12940
12935
  T.textContent.startsWith("\uFEFF") && (T.textContent = T.textContent.slice(1));
12941
12936
  return;
12942
12937
  }
12943
12938
  T.parentNode.removeChild(T);
12944
- }), u = C.textContent.length, b = l;
12939
+ }), u = E.textContent.length, b = l;
12945
12940
  }
12946
12941
  } else if (g) {
12947
- for (var w = g.querySelectorAll("[data-slate-leaf]"), E = 0; E < w.length; E++) {
12948
- var S = w[E];
12942
+ for (var w = g.querySelectorAll("[data-slate-leaf]"), C = 0; C < w.length; C++) {
12943
+ var S = w[C];
12949
12944
  if (te.hasDOMNode(e, S)) {
12950
12945
  f = S;
12951
12946
  break;
@@ -13006,10 +13001,10 @@ var te = {
13006
13001
  u = t.focusNode;
13007
13002
  var m = t.getRangeAt(0), p = t.getRangeAt(t.rangeCount - 1);
13008
13003
  if (u instanceof HTMLTableRowElement && m.startContainer instanceof HTMLTableRowElement && p.startContainer instanceof HTMLTableRowElement) {
13009
- let E = function(S) {
13010
- return S.childElementCount > 0 ? E(S.children[0]) : S;
13004
+ let C = function(S) {
13005
+ return S.childElementCount > 0 ? C(S.children[0]) : S;
13011
13006
  };
13012
- var g = m.startContainer, f = p.startContainer, b = E(g.children[m.startOffset]), v = E(f.children[p.startOffset]);
13007
+ var g = m.startContainer, f = p.startContainer, b = C(g.children[m.startOffset]), v = C(f.children[p.startOffset]);
13013
13008
  d = 0, v.childNodes.length > 0 ? o = v.childNodes[0] : o = v, b.childNodes.length > 0 ? u = b.childNodes[0] : u = b, v instanceof HTMLElement ? l = v.innerHTML.length : l = 0;
13014
13009
  } else
13015
13010
  m.startContainer === u ? (o = p.endContainer, l = p.endOffset, d = m.startOffset) : (o = m.startContainer, l = m.endOffset, d = p.startOffset);
@@ -13026,20 +13021,20 @@ var te = {
13026
13021
  var x;
13027
13022
  u = o, d = ((x = o.textContent) === null || x === void 0 ? void 0 : x.length) || 0;
13028
13023
  }
13029
- var C = te.toSlatePoint(e, [o, l], {
13024
+ var E = te.toSlatePoint(e, [o, l], {
13030
13025
  exactMatch: i,
13031
13026
  suppressThrow: a
13032
13027
  });
13033
- if (!C)
13028
+ if (!E)
13034
13029
  return null;
13035
- var F = h ? C : te.toSlatePoint(e, [u, d], {
13030
+ var F = h ? E : te.toSlatePoint(e, [u, d], {
13036
13031
  exactMatch: i,
13037
13032
  suppressThrow: a
13038
13033
  });
13039
13034
  if (!F)
13040
13035
  return null;
13041
13036
  var w = {
13042
- anchor: C,
13037
+ anchor: E,
13043
13038
  focus: F
13044
13039
  };
13045
13040
  return Z.isExpanded(w) && Z.isForward(w) && Nt(u) && y.void(e, {
@@ -13358,11 +13353,11 @@ function C1(e) {
13358
13353
  A.run();
13359
13354
  }
13360
13355
  }, m = () => {
13361
- if (s && (clearTimeout(s), s = null), o && (clearTimeout(o), o = null), !F() && !C()) {
13356
+ if (s && (clearTimeout(s), s = null), o && (clearTimeout(o), o = null), !F() && !E()) {
13362
13357
  d();
13363
13358
  return;
13364
13359
  }
13365
- i || (i = !0, setTimeout(() => i = !1)), C() && (i = "action");
13360
+ i || (i = !0, setTimeout(() => i = !1)), E() && (i = "action");
13366
13361
  var A = t.selection && y.rangeRef(t, t.selection, {
13367
13362
  affinity: "forward"
13368
13363
  });
@@ -13379,7 +13374,7 @@ function C1(e) {
13379
13374
  })), h1(t, T) || (_ = !1, mn.delete(t), nn.delete(t), i = "action", pn.delete(t), n.cancel(), r.cancel(), A == null || A.unref());
13380
13375
  }
13381
13376
  var ie = A == null ? void 0 : A.unref();
13382
- if (ie && !pn.get(t) && (!t.selection || !Z.equals(ie, t.selection)) && J.select(t, ie), C()) {
13377
+ if (ie && !pn.get(t) && (!t.selection || !Z.equals(ie, t.selection)) && J.select(t, ie), E()) {
13383
13378
  h();
13384
13379
  return;
13385
13380
  }
@@ -13426,7 +13421,7 @@ function C1(e) {
13426
13421
  var {
13427
13422
  at: T
13428
13423
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
13429
- u = !1, pn.delete(t), n.cancel(), r.cancel(), C() && m(), mn.set(t, {
13424
+ u = !1, pn.delete(t), n.cancel(), r.cancel(), E() && m(), mn.set(t, {
13430
13425
  at: T,
13431
13426
  run: _
13432
13427
  }), o = setTimeout(m);
@@ -13625,10 +13620,10 @@ function C1(e) {
13625
13620
  }
13626
13621
  }
13627
13622
  }
13628
- }, C = () => !!mn.get(t), F = () => {
13623
+ }, E = () => !!mn.get(t), F = () => {
13629
13624
  var A;
13630
13625
  return !!((A = Ct.get(t)) !== null && A !== void 0 && A.length);
13631
- }, w = () => C() || F(), E = () => i, S = (A) => {
13626
+ }, w = () => E() || F(), C = () => i, S = (A) => {
13632
13627
  pn.set(t, A), s && (clearTimeout(s), s = null);
13633
13628
  var {
13634
13629
  selection: _
@@ -13638,13 +13633,13 @@ function C1(e) {
13638
13633
  (T && u || N) && (u = !1), (T || F()) && (s = setTimeout(m, D1));
13639
13634
  }
13640
13635
  }, L = () => {
13641
- (C() || !F()) && m();
13636
+ (E() || !F()) && m();
13642
13637
  }, j = (A) => {
13643
13638
  F() || (f(!0), setTimeout(f));
13644
13639
  }, z = () => {
13645
- C() || (o = setTimeout(m));
13640
+ E() || (o = setTimeout(m));
13646
13641
  }, M = (A) => {
13647
- if (!(F() || C()) && A.some((T) => ko(t, T, A))) {
13642
+ if (!(F() || E()) && A.some((T) => ko(t, T, A))) {
13648
13643
  var _;
13649
13644
  (_ = sf.get(t)) === null || _ === void 0 || _();
13650
13645
  }
@@ -13653,9 +13648,9 @@ function C1(e) {
13653
13648
  flush: m,
13654
13649
  scheduleFlush: z,
13655
13650
  hasPendingDiffs: F,
13656
- hasPendingAction: C,
13651
+ hasPendingAction: E,
13657
13652
  hasPendingChanges: w,
13658
- isFlushing: E,
13653
+ isFlushing: C,
13659
13654
  handleUserSelect: S,
13660
13655
  handleCompositionEnd: p,
13661
13656
  handleCompositionStart: g,
@@ -13846,8 +13841,8 @@ var L1 = (e) => {
13846
13841
  renderLeaf: s = (x) => /* @__PURE__ */ re.createElement(q1, mf({}, x))
13847
13842
  } = e, o = wn(), l = ke(null), u = ke(null), [d, h] = ue(!1), m = ke(null), p = Re((x) => {
13848
13843
  if ($1(l, x == null), x == null) {
13849
- var C;
13850
- Ps.delete(o), (C = t.onPlaceholderResize) === null || C === void 0 || C.call(t, null);
13844
+ var E;
13845
+ Ps.delete(o), (E = t.onPlaceholderResize) === null || E === void 0 || E.call(t, null);
13851
13846
  } else {
13852
13847
  if (Ps.set(o, x), !l.current) {
13853
13848
  var F = window.ResizeObserver || qy;
@@ -13964,8 +13959,8 @@ var U1 = (e) => {
13964
13959
  renderLeaf: a,
13965
13960
  selection: s
13966
13961
  } = e, o = wn(), l = Y1(), u = o.isInline(n), d = te.findKey(o, n), h = Re((x) => {
13967
- var C = fa.get(o);
13968
- x ? (C == null || C.set(d, x), Sn.set(n, x), Kr.set(x, n)) : (C == null || C.delete(d), Sn.delete(n));
13962
+ var E = fa.get(o);
13963
+ x ? (E == null || E.set(d, x), Sn.set(n, x), Kr.set(x, n)) : (E == null || E.delete(d), Sn.delete(n));
13969
13964
  }, [o, d, n]), m = vf({
13970
13965
  decorations: t,
13971
13966
  node: n,
@@ -14026,8 +14021,8 @@ var U1 = (e) => {
14026
14021
  selection: s
14027
14022
  } = e, o = K1(), l = wn(), u = te.findPath(l, n), d = [], h = he.isElement(n) && !l.isInline(n) && y.hasInlines(l, n), m = 0; m < n.children.length; m++) {
14028
14023
  var p = u.concat(m), g = n.children[m], f = te.findKey(l, g), b = y.range(l, p), v = s && Z.intersection(b, s), x = o([g, p]);
14029
- for (var C of t) {
14030
- var F = Z.intersection(C, b);
14024
+ for (var E of t) {
14025
+ var F = Z.intersection(E, b);
14031
14026
  F && x.push(F);
14032
14027
  }
14033
14028
  he.isElement(g) ? d.push(/* @__PURE__ */ re.createElement(Z1.Provider, {
@@ -14247,8 +14242,8 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
14247
14242
  style: h = {},
14248
14243
  as: m = "div",
14249
14244
  disableDefaultStyles: p = !1
14250
- } = e, g = lr(e, iD), f = zn(), [b, v] = ue(!1), x = ke(null), C = ke([]), [F, w] = ue(), {
14251
- onUserInput: E,
14245
+ } = e, g = lr(e, iD), f = zn(), [b, v] = ue(!1), x = ke(null), E = ke([]), [F, w] = ue(), {
14246
+ onUserInput: C,
14252
14247
  receivedUserInput: S
14253
14248
  } = G1(), [, L] = hr((B) => B + 1, 0);
14254
14249
  sf.set(f, L), Ns.set(f, s);
@@ -14357,7 +14352,7 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
14357
14352
  }
14358
14353
  });
14359
14354
  var _ = Re((B) => {
14360
- if (E(), !s && te.hasEditableTarget(f, B.target) && !dD(B, i)) {
14355
+ if (C(), !s && te.hasEditableTarget(f, B.target) && !dD(B, i)) {
14361
14356
  var I;
14362
14357
  if (z.current)
14363
14358
  return z.current.handleDOMBeforeInput(B);
@@ -14490,14 +14485,14 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
14490
14485
  case "insertFromYank":
14491
14486
  case "insertReplacementText":
14492
14487
  case "insertText": {
14493
- W === "insertFromComposition" && te.isComposing(f) && (v(!1), Fn.set(f, !1)), (ee == null ? void 0 : ee.constructor.name) === "DataTransfer" ? te.insertData(f, ee) : typeof ee == "string" && (ne ? C.current.push(() => y.insertText(f, ee)) : y.insertText(f, ee));
14488
+ W === "insertFromComposition" && te.isComposing(f) && (v(!1), Fn.set(f, !1)), (ee == null ? void 0 : ee.constructor.name) === "DataTransfer" ? te.insertData(f, ee) : typeof ee == "string" && (ne ? E.current.push(() => y.insertText(f, ee)) : y.insertText(f, ee));
14494
14489
  break;
14495
14490
  }
14496
14491
  }
14497
14492
  var V = (I = Pr.get(f)) === null || I === void 0 ? void 0 : I.unref();
14498
14493
  Pr.delete(f), V && (!f.selection || !Z.equals(f.selection, V)) && J.select(f, V);
14499
14494
  }
14500
- }, [f, M, E, i, s, A]), T = Re((B) => {
14495
+ }, [f, M, C, i, s, A]), T = Re((B) => {
14501
14496
  B == null ? (M.cancel(), A.cancel(), Si.delete(f), Sn.delete(f), x.current && fn && x.current.removeEventListener("beforeinput", _)) : fn && B.addEventListener("beforeinput", _), x.current = B;
14502
14497
  }, [M, A, f, _]);
14503
14498
  Zr(() => {
@@ -14612,9 +14607,9 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
14612
14607
  z.current.handleInput();
14613
14608
  return;
14614
14609
  }
14615
- for (var I of C.current)
14610
+ for (var I of E.current)
14616
14611
  I();
14617
- C.current = [];
14612
+ E.current = [];
14618
14613
  }
14619
14614
  }, [g.onInput]),
14620
14615
  onBlur: Re((B) => {
@@ -15141,12 +15136,12 @@ var bD = function(t) {
15141
15136
  break;
15142
15137
  }
15143
15138
  case "move_node": {
15144
- var C = P.common(P.parent(u.path), P.parent(u.newPath));
15145
- d.push(...Zn(r, C));
15139
+ var E = P.common(P.parent(u.path), P.parent(u.newPath));
15140
+ d.push(...Zn(r, E));
15146
15141
  var F;
15147
15142
  P.isBefore(u.path, u.newPath) ? (d.push(...Zn(r, P.parent(u.path))), F = u.newPath) : (d.push(...Zn(r, P.parent(u.newPath))), F = u.path);
15148
- var w = oe.get(t, P.parent(F)), E = te.findKey(r, w), S = y.pathRef(r, P.parent(F));
15149
- h.push([S, E]);
15143
+ var w = oe.get(t, P.parent(F)), C = te.findKey(r, w), S = y.pathRef(r, P.parent(F));
15144
+ h.push([S, C]);
15150
15145
  break;
15151
15146
  }
15152
15147
  }
@@ -15175,8 +15170,8 @@ var bD = function(t) {
15175
15170
  if (b.childNodes.forEach((z) => {
15176
15171
  z.textContent && z.textContent.trim() !== "" && (v = z);
15177
15172
  }), g) {
15178
- var [x] = g, C = f.cloneRange(), F = te.toDOMNode(r, x);
15179
- C.setEndAfter(F), b = C.cloneContents();
15173
+ var [x] = g, E = f.cloneRange(), F = te.toDOMNode(r, x);
15174
+ E.setEndAfter(F), b = E.cloneContents();
15180
15175
  }
15181
15176
  if (p && (v = b.querySelector("[data-slate-spacer]")), Array.from(b.querySelectorAll("[data-slate-zero-width]")).forEach((z) => {
15182
15177
  var M = z.getAttribute("data-slate-zero-width") === "n";
@@ -15186,7 +15181,7 @@ var bD = function(t) {
15186
15181
  var w = v.ownerDocument.createElement("span");
15187
15182
  w.style.whiteSpace = "pre", w.appendChild(v), b.appendChild(w), v = w;
15188
15183
  }
15189
- var E = r.getFragment(), S = JSON.stringify(E), L = window.btoa(encodeURIComponent(S));
15184
+ var C = r.getFragment(), S = JSON.stringify(C), L = window.btoa(encodeURIComponent(S));
15190
15185
  v.setAttribute("data-slate-fragment", L), u.setData("application/".concat(n), L);
15191
15186
  var j = b.ownerDocument.createElement("div");
15192
15187
  return j.appendChild(b), j.setAttribute("hidden", "true"), b.ownerDocument.body.appendChild(j), u.setData("text/html", j.innerHTML), u.setData("text/plain", cf(j)), b.ownerDocument.body.removeChild(j), u;
@@ -15306,11 +15301,11 @@ const DD = ({
15306
15301
  return;
15307
15302
  let u, d = 0;
15308
15303
  if (t === "mention-popover") {
15309
- const { position: f } = a, b = (C) => {
15310
- if (!y.hasPath(e, C.path))
15304
+ const { position: f } = a, b = (E) => {
15305
+ if (!y.hasPath(e, E.path))
15311
15306
  return !1;
15312
- const F = oe.get(e, C.path);
15313
- return y.isEditor(F) || he.isElement(F) ? C.offset <= F.children.length : me.isText(F) ? C.offset <= F.text.length : !1;
15307
+ const F = oe.get(e, E.path);
15308
+ return y.isEditor(F) || he.isElement(F) ? E.offset <= F.children.length : me.isText(F) ? E.offset <= F.text.length : !1;
15314
15309
  };
15315
15310
  if (f && (!b(f == null ? void 0 : f.anchor) || !b(f == null ? void 0 : f.focus)))
15316
15311
  return;
@@ -16858,98 +16853,98 @@ function ix(e) {
16858
16853
  const t = this, n = [];
16859
16854
  let r = 0, i, a, s;
16860
16855
  return o;
16861
- function o(C) {
16856
+ function o(E) {
16862
16857
  if (r < n.length) {
16863
16858
  const F = n[r];
16864
16859
  return t.containerState = F[1], e.attempt(
16865
16860
  F[0].continuation,
16866
16861
  l,
16867
16862
  u
16868
- )(C);
16863
+ )(E);
16869
16864
  }
16870
- return u(C);
16865
+ return u(E);
16871
16866
  }
16872
- function l(C) {
16867
+ function l(E) {
16873
16868
  if (r++, t.containerState._closeFlow) {
16874
16869
  t.containerState._closeFlow = void 0, i && x();
16875
16870
  const F = t.events.length;
16876
- let w = F, E;
16871
+ let w = F, C;
16877
16872
  for (; w--; )
16878
16873
  if (t.events[w][0] === "exit" && t.events[w][1].type === "chunkFlow") {
16879
- E = t.events[w][1].end;
16874
+ C = t.events[w][1].end;
16880
16875
  break;
16881
16876
  }
16882
16877
  v(r);
16883
16878
  let S = F;
16884
16879
  for (; S < t.events.length; )
16885
- t.events[S][1].end = Object.assign({}, E), S++;
16880
+ t.events[S][1].end = Object.assign({}, C), S++;
16886
16881
  return ln(
16887
16882
  t.events,
16888
16883
  w + 1,
16889
16884
  0,
16890
16885
  t.events.slice(F)
16891
- ), t.events.length = S, u(C);
16886
+ ), t.events.length = S, u(E);
16892
16887
  }
16893
- return o(C);
16888
+ return o(E);
16894
16889
  }
16895
- function u(C) {
16890
+ function u(E) {
16896
16891
  if (r === n.length) {
16897
16892
  if (!i)
16898
- return m(C);
16893
+ return m(E);
16899
16894
  if (i.currentConstruct && i.currentConstruct.concrete)
16900
- return g(C);
16895
+ return g(E);
16901
16896
  t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
16902
16897
  }
16903
16898
  return t.containerState = {}, e.check(
16904
16899
  uc,
16905
16900
  d,
16906
16901
  h
16907
- )(C);
16902
+ )(E);
16908
16903
  }
16909
- function d(C) {
16910
- return i && x(), v(r), m(C);
16904
+ function d(E) {
16905
+ return i && x(), v(r), m(E);
16911
16906
  }
16912
- function h(C) {
16913
- return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, g(C);
16907
+ function h(E) {
16908
+ return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, g(E);
16914
16909
  }
16915
- function m(C) {
16910
+ function m(E) {
16916
16911
  return t.containerState = {}, e.attempt(
16917
16912
  uc,
16918
16913
  p,
16919
16914
  g
16920
- )(C);
16915
+ )(E);
16921
16916
  }
16922
- function p(C) {
16923
- return r++, n.push([t.currentConstruct, t.containerState]), m(C);
16917
+ function p(E) {
16918
+ return r++, n.push([t.currentConstruct, t.containerState]), m(E);
16924
16919
  }
16925
- function g(C) {
16926
- if (C === null) {
16927
- i && x(), v(0), e.consume(C);
16920
+ function g(E) {
16921
+ if (E === null) {
16922
+ i && x(), v(0), e.consume(E);
16928
16923
  return;
16929
16924
  }
16930
16925
  return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
16931
16926
  contentType: "flow",
16932
16927
  previous: a,
16933
16928
  _tokenizer: i
16934
- }), f(C);
16929
+ }), f(E);
16935
16930
  }
16936
- function f(C) {
16937
- if (C === null) {
16938
- b(e.exit("chunkFlow"), !0), v(0), e.consume(C);
16931
+ function f(E) {
16932
+ if (E === null) {
16933
+ b(e.exit("chunkFlow"), !0), v(0), e.consume(E);
16939
16934
  return;
16940
16935
  }
16941
- return we(C) ? (e.consume(C), b(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(C), f);
16936
+ return we(E) ? (e.consume(E), b(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(E), f);
16942
16937
  }
16943
- function b(C, F) {
16944
- const w = t.sliceStream(C);
16945
- if (F && w.push(null), C.previous = a, a && (a.next = C), a = C, i.defineSkip(C.start), i.write(w), t.parser.lazy[C.start.line]) {
16946
- let E = i.events.length;
16947
- for (; E--; )
16938
+ function b(E, F) {
16939
+ const w = t.sliceStream(E);
16940
+ if (F && w.push(null), E.previous = a, a && (a.next = E), a = E, i.defineSkip(E.start), i.write(w), t.parser.lazy[E.start.line]) {
16941
+ let C = i.events.length;
16942
+ for (; C--; )
16948
16943
  if (
16949
16944
  // The token starts before the line ending…
16950
- i.events[E][1].start.offset < s && // …and either is not ended yet…
16951
- (!i.events[E][1].end || // …or ends after it.
16952
- i.events[E][1].end.offset > s)
16945
+ i.events[C][1].start.offset < s && // …and either is not ended yet…
16946
+ (!i.events[C][1].end || // …or ends after it.
16947
+ i.events[C][1].end.offset > s)
16953
16948
  )
16954
16949
  return;
16955
16950
  const S = t.events.length;
@@ -16962,23 +16957,23 @@ function ix(e) {
16962
16957
  }
16963
16958
  j = !0;
16964
16959
  }
16965
- for (v(r), E = S; E < t.events.length; )
16966
- t.events[E][1].end = Object.assign({}, z), E++;
16960
+ for (v(r), C = S; C < t.events.length; )
16961
+ t.events[C][1].end = Object.assign({}, z), C++;
16967
16962
  ln(
16968
16963
  t.events,
16969
16964
  L + 1,
16970
16965
  0,
16971
16966
  t.events.slice(S)
16972
- ), t.events.length = E;
16967
+ ), t.events.length = C;
16973
16968
  }
16974
16969
  }
16975
- function v(C) {
16970
+ function v(E) {
16976
16971
  let F = n.length;
16977
- for (; F-- > C; ) {
16972
+ for (; F-- > E; ) {
16978
16973
  const w = n[F];
16979
16974
  t.containerState = w[1], w[0].exit.call(t, e);
16980
16975
  }
16981
- n.length = C;
16976
+ n.length = E;
16982
16977
  }
16983
16978
  function x() {
16984
16979
  i.write([null]), a = void 0, i = void 0, t.containerState._closeFlow = void 0;
@@ -17206,67 +17201,67 @@ function gx(e, t, n) {
17206
17201
  };
17207
17202
  let a = 0, s = 0, o;
17208
17203
  return l;
17209
- function l(E) {
17210
- return u(E);
17204
+ function l(C) {
17205
+ return u(C);
17211
17206
  }
17212
- function u(E) {
17207
+ function u(C) {
17213
17208
  const S = r.events[r.events.length - 1];
17214
- return a = S && S[1].type === "linePrefix" ? S[2].sliceSerialize(S[1], !0).length : 0, o = E, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(E);
17209
+ return a = S && S[1].type === "linePrefix" ? S[2].sliceSerialize(S[1], !0).length : 0, o = C, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(C);
17215
17210
  }
17216
- function d(E) {
17217
- return E === o ? (s++, e.consume(E), d) : s < 3 ? n(E) : (e.exit("codeFencedFenceSequence"), Le(E) ? Ke(e, h, "whitespace")(E) : h(E));
17211
+ function d(C) {
17212
+ return C === o ? (s++, e.consume(C), d) : s < 3 ? n(C) : (e.exit("codeFencedFenceSequence"), Le(C) ? Ke(e, h, "whitespace")(C) : h(C));
17218
17213
  }
17219
- function h(E) {
17220
- return E === null || we(E) ? (e.exit("codeFencedFence"), r.interrupt ? t(E) : e.check(dc, f, F)(E)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
17214
+ function h(C) {
17215
+ return C === null || we(C) ? (e.exit("codeFencedFence"), r.interrupt ? t(C) : e.check(dc, f, F)(C)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
17221
17216
  contentType: "string"
17222
- }), m(E));
17217
+ }), m(C));
17223
17218
  }
17224
- function m(E) {
17225
- return E === null || we(E) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(E)) : Le(E) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ke(e, p, "whitespace")(E)) : E === 96 && E === o ? n(E) : (e.consume(E), m);
17219
+ function m(C) {
17220
+ return C === null || we(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(C)) : Le(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ke(e, p, "whitespace")(C)) : C === 96 && C === o ? n(C) : (e.consume(C), m);
17226
17221
  }
17227
- function p(E) {
17228
- return E === null || we(E) ? h(E) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
17222
+ function p(C) {
17223
+ return C === null || we(C) ? h(C) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
17229
17224
  contentType: "string"
17230
- }), g(E));
17225
+ }), g(C));
17231
17226
  }
17232
- function g(E) {
17233
- return E === null || we(E) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(E)) : E === 96 && E === o ? n(E) : (e.consume(E), g);
17227
+ function g(C) {
17228
+ return C === null || we(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(C)) : C === 96 && C === o ? n(C) : (e.consume(C), g);
17234
17229
  }
17235
- function f(E) {
17236
- return e.attempt(i, F, b)(E);
17230
+ function f(C) {
17231
+ return e.attempt(i, F, b)(C);
17237
17232
  }
17238
- function b(E) {
17239
- return e.enter("lineEnding"), e.consume(E), e.exit("lineEnding"), v;
17233
+ function b(C) {
17234
+ return e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), v;
17240
17235
  }
17241
- function v(E) {
17242
- return a > 0 && Le(E) ? Ke(e, x, "linePrefix", a + 1)(E) : x(E);
17236
+ function v(C) {
17237
+ return a > 0 && Le(C) ? Ke(e, x, "linePrefix", a + 1)(C) : x(C);
17243
17238
  }
17244
- function x(E) {
17245
- return E === null || we(E) ? e.check(dc, f, F)(E) : (e.enter("codeFlowValue"), C(E));
17239
+ function x(C) {
17240
+ return C === null || we(C) ? e.check(dc, f, F)(C) : (e.enter("codeFlowValue"), E(C));
17246
17241
  }
17247
- function C(E) {
17248
- return E === null || we(E) ? (e.exit("codeFlowValue"), x(E)) : (e.consume(E), C);
17242
+ function E(C) {
17243
+ return C === null || we(C) ? (e.exit("codeFlowValue"), x(C)) : (e.consume(C), E);
17249
17244
  }
17250
- function F(E) {
17251
- return e.exit("codeFenced"), t(E);
17245
+ function F(C) {
17246
+ return e.exit("codeFenced"), t(C);
17252
17247
  }
17253
- function w(E, S, L) {
17248
+ function w(C, S, L) {
17254
17249
  let j = 0;
17255
17250
  return z;
17256
17251
  function z(N) {
17257
- return E.enter("lineEnding"), E.consume(N), E.exit("lineEnding"), M;
17252
+ return C.enter("lineEnding"), C.consume(N), C.exit("lineEnding"), M;
17258
17253
  }
17259
17254
  function M(N) {
17260
- return E.enter("codeFencedFence"), Le(N) ? Ke(E, A, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(N) : A(N);
17255
+ return C.enter("codeFencedFence"), Le(N) ? Ke(C, A, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(N) : A(N);
17261
17256
  }
17262
17257
  function A(N) {
17263
- return N === o ? (E.enter("codeFencedFenceSequence"), _(N)) : L(N);
17258
+ return N === o ? (C.enter("codeFencedFenceSequence"), _(N)) : L(N);
17264
17259
  }
17265
17260
  function _(N) {
17266
- return N === o ? (j++, E.consume(N), _) : j >= s ? (E.exit("codeFencedFenceSequence"), Le(N) ? Ke(E, T, "whitespace")(N) : T(N)) : L(N);
17261
+ return N === o ? (j++, C.consume(N), _) : j >= s ? (C.exit("codeFencedFenceSequence"), Le(N) ? Ke(C, T, "whitespace")(N) : T(N)) : L(N);
17267
17262
  }
17268
17263
  function T(N) {
17269
- return N === null || we(N) ? (E.exit("codeFencedFence"), S(N)) : L(N);
17264
+ return N === null || we(N) ? (C.exit("codeFencedFence"), S(N)) : L(N);
17270
17265
  }
17271
17266
  }
17272
17267
  }
@@ -17933,7 +17928,7 @@ function Vx(e, t, n) {
17933
17928
  function b(k) {
17934
17929
  if (k === null || k === 47 || k === 62 || _t(k)) {
17935
17930
  const B = k === 47, I = s.toLowerCase();
17936
- return !B && !a && hc.includes(I) ? (i = 1, r.interrupt ? t(k) : A(k)) : zx.includes(s.toLowerCase()) ? (i = 6, B ? (e.consume(k), v) : r.interrupt ? t(k) : A(k)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : a ? x(k) : C(k));
17931
+ return !B && !a && hc.includes(I) ? (i = 1, r.interrupt ? t(k) : A(k)) : zx.includes(s.toLowerCase()) ? (i = 6, B ? (e.consume(k), v) : r.interrupt ? t(k) : A(k)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : a ? x(k) : E(k));
17937
17932
  }
17938
17933
  return k === 45 || Lt(k) ? (e.consume(k), s += String.fromCharCode(k), b) : n(k);
17939
17934
  }
@@ -17943,17 +17938,17 @@ function Vx(e, t, n) {
17943
17938
  function x(k) {
17944
17939
  return Le(k) ? (e.consume(k), x) : z(k);
17945
17940
  }
17946
- function C(k) {
17947
- return k === 47 ? (e.consume(k), z) : k === 58 || k === 95 || Kt(k) ? (e.consume(k), F) : Le(k) ? (e.consume(k), C) : z(k);
17941
+ function E(k) {
17942
+ return k === 47 ? (e.consume(k), z) : k === 58 || k === 95 || Kt(k) ? (e.consume(k), F) : Le(k) ? (e.consume(k), E) : z(k);
17948
17943
  }
17949
17944
  function F(k) {
17950
17945
  return k === 45 || k === 46 || k === 58 || k === 95 || Lt(k) ? (e.consume(k), F) : w(k);
17951
17946
  }
17952
17947
  function w(k) {
17953
- return k === 61 ? (e.consume(k), E) : Le(k) ? (e.consume(k), w) : C(k);
17948
+ return k === 61 ? (e.consume(k), C) : Le(k) ? (e.consume(k), w) : E(k);
17954
17949
  }
17955
- function E(k) {
17956
- return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), l = k, S) : Le(k) ? (e.consume(k), E) : L(k);
17950
+ function C(k) {
17951
+ return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), l = k, S) : Le(k) ? (e.consume(k), C) : L(k);
17957
17952
  }
17958
17953
  function S(k) {
17959
17954
  return k === l ? (e.consume(k), l = null, j) : k === null || we(k) ? n(k) : (e.consume(k), S);
@@ -17962,7 +17957,7 @@ function Vx(e, t, n) {
17962
17957
  return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || _t(k) ? w(k) : (e.consume(k), L);
17963
17958
  }
17964
17959
  function j(k) {
17965
- return k === 47 || k === 62 || Le(k) ? C(k) : n(k);
17960
+ return k === 47 || k === 62 || Le(k) ? E(k) : n(k);
17966
17961
  }
17967
17962
  function z(k) {
17968
17963
  return k === 62 ? (e.consume(k), M) : n(k);
@@ -18036,7 +18031,7 @@ function Gx(e, t, n) {
18036
18031
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(D), l;
18037
18032
  }
18038
18033
  function l(D) {
18039
- return D === 33 ? (e.consume(D), u) : D === 47 ? (e.consume(D), w) : D === 63 ? (e.consume(D), C) : Kt(D) ? (e.consume(D), L) : n(D);
18034
+ return D === 33 ? (e.consume(D), u) : D === 47 ? (e.consume(D), w) : D === 63 ? (e.consume(D), E) : Kt(D) ? (e.consume(D), L) : n(D);
18040
18035
  }
18041
18036
  function u(D) {
18042
18037
  return D === 45 ? (e.consume(D), d) : D === 91 ? (e.consume(D), a = 0, g) : Kt(D) ? (e.consume(D), x) : n(D);
@@ -18069,17 +18064,17 @@ function Gx(e, t, n) {
18069
18064
  function x(D) {
18070
18065
  return D === null || D === 62 ? q(D) : we(D) ? (s = x, U(D)) : (e.consume(D), x);
18071
18066
  }
18072
- function C(D) {
18073
- return D === null ? n(D) : D === 63 ? (e.consume(D), F) : we(D) ? (s = C, U(D)) : (e.consume(D), C);
18067
+ function E(D) {
18068
+ return D === null ? n(D) : D === 63 ? (e.consume(D), F) : we(D) ? (s = E, U(D)) : (e.consume(D), E);
18074
18069
  }
18075
18070
  function F(D) {
18076
- return D === 62 ? q(D) : C(D);
18071
+ return D === 62 ? q(D) : E(D);
18077
18072
  }
18078
18073
  function w(D) {
18079
- return Kt(D) ? (e.consume(D), E) : n(D);
18074
+ return Kt(D) ? (e.consume(D), C) : n(D);
18080
18075
  }
18081
- function E(D) {
18082
- return D === 45 || Lt(D) ? (e.consume(D), E) : S(D);
18076
+ function C(D) {
18077
+ return D === 45 || Lt(D) ? (e.consume(D), C) : S(D);
18083
18078
  }
18084
18079
  function S(D) {
18085
18080
  return we(D) ? (s = S, U(D)) : Le(D) ? (e.consume(D), S) : q(D);
@@ -18588,11 +18583,11 @@ function Fw(e, t, n) {
18588
18583
  let s = [], o = [];
18589
18584
  const l = {
18590
18585
  consume: x,
18591
- enter: C,
18586
+ enter: E,
18592
18587
  exit: F,
18593
18588
  attempt: S(w),
18594
- check: S(E),
18595
- interrupt: S(E, {
18589
+ check: S(C),
18590
+ interrupt: S(C, {
18596
18591
  interrupt: !0
18597
18592
  })
18598
18593
  }, u = {
@@ -18648,7 +18643,7 @@ function Fw(e, t, n) {
18648
18643
  function x(M) {
18649
18644
  we(M) ? (r.line++, r.column = 1, r.offset += M === -3 ? 2 : 1, z()) : M !== -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 = M;
18650
18645
  }
18651
- function C(M, A) {
18646
+ function E(M, A) {
18652
18647
  const _ = A || {};
18653
18648
  return _.type = M, _.start = g(), u.events.push(["enter", _, u]), o.push(_), _;
18654
18649
  }
@@ -18659,7 +18654,7 @@ function Fw(e, t, n) {
18659
18654
  function w(M, A) {
18660
18655
  L(M, A.from);
18661
18656
  }
18662
- function E(M, A) {
18657
+ function C(M, A) {
18663
18658
  A.restore();
18664
18659
  }
18665
18660
  function S(M, A) {
@@ -19004,7 +18999,7 @@ function Kw(e) {
19004
18999
  definition: l(),
19005
19000
  definitionDestinationString: F,
19006
19001
  definitionLabelString: x,
19007
- definitionTitleString: C,
19002
+ definitionTitleString: E,
19008
19003
  emphasis: l(),
19009
19004
  hardBreakEscape: l(A),
19010
19005
  hardBreakTrailing: l(A),
@@ -19027,7 +19022,7 @@ function Kw(e) {
19027
19022
  resource: X,
19028
19023
  setextHeading: l(L),
19029
19024
  setextHeadingLineSequence: S,
19030
- setextHeadingText: E,
19025
+ setextHeadingText: C,
19031
19026
  strong: l(),
19032
19027
  thematicBreak: l()
19033
19028
  }
@@ -19224,7 +19219,7 @@ function Kw(e) {
19224
19219
  this.sliceSerialize(V)
19225
19220
  ).toLowerCase();
19226
19221
  }
19227
- function C() {
19222
+ function E() {
19228
19223
  const V = this.resume(), se = this.stack[this.stack.length - 1];
19229
19224
  se.title = V;
19230
19225
  }
@@ -19239,7 +19234,7 @@ function Kw(e) {
19239
19234
  se.depth = pe;
19240
19235
  }
19241
19236
  }
19242
- function E() {
19237
+ function C() {
19243
19238
  this.data.setextHeadingSlurpLineEnding = !0;
19244
19239
  }
19245
19240
  function S(V) {
@@ -19759,9 +19754,9 @@ const Gw = function(t) {
19759
19754
  if (d) {
19760
19755
  const h = d.index || 0, m = { path: s.path, offset: h }, p = { path: s.path, offset: h + d[0].length }, g = y.range(e, m, p), f = y.after(e, s), b = y.range(e, s, f);
19761
19756
  if (y.string(e, b).match(/^(\s|\.|,|\?|!|:|;|'|"|`|$)/)) {
19762
- const C = d[1];
19757
+ const E = d[1];
19763
19758
  let F = [];
19764
- r && (F = await r({ name: C })), i([
19759
+ r && (F = await r({ name: E })), i([
19765
19760
  {
19766
19761
  type: "mentionPopover",
19767
19762
  value: {
@@ -20039,7 +20034,7 @@ const iC = ({
20039
20034
  b.stopPropagation(), b.preventDefault(), r();
20040
20035
  },
20041
20036
  onKeyDown: (b) => {
20042
- var v, x, C, F;
20037
+ var v, x, E, F;
20043
20038
  if (b.key !== "Tab")
20044
20039
  switch (b.key) {
20045
20040
  case "Enter":
@@ -20049,14 +20044,14 @@ const iC = ({
20049
20044
  case "ArrowRight":
20050
20045
  b.stopPropagation(), b.preventDefault();
20051
20046
  const w = b.currentTarget.closest("li");
20052
- let E = w == null ? void 0 : w.nextElementSibling;
20047
+ let C = w == null ? void 0 : w.nextElementSibling;
20053
20048
  if (b.key === "ArrowLeft") {
20054
20049
  const j = w == null ? void 0 : w.previousElementSibling;
20055
- j ? E = j : E = (v = w == null ? void 0 : w.parentElement) == null ? void 0 : v.lastElementChild;
20050
+ j ? C = j : C = (v = w == null ? void 0 : w.parentElement) == null ? void 0 : v.lastElementChild;
20056
20051
  } else
20057
- E || (E = (x = w == null ? void 0 : w.parentElement) == null ? void 0 : x.firstElementChild);
20058
- const S = E == null ? void 0 : E.className.split(" ")[0];
20059
- S && (m(S), (C = E == null ? void 0 : E.querySelector("button")) == null || C.focus());
20052
+ C || (C = (x = w == null ? void 0 : w.parentElement) == null ? void 0 : x.firstElementChild);
20053
+ const S = C == null ? void 0 : C.className.split(" ")[0];
20054
+ S && (m(S), (E = C == null ? void 0 : C.querySelector("button")) == null || E.focus());
20060
20055
  break;
20061
20056
  default:
20062
20057
  const L = b.currentTarget.closest("fieldset");
@@ -20222,7 +20217,7 @@ const lC = () => {
20222
20217
  }, 500);
20223
20218
  }, [o.selection]);
20224
20219
  const g = [], f = ["open", "edit", "remove"].map((x) => {
20225
- const C = {
20220
+ const E = {
20226
20221
  variant: "tertiary",
20227
20222
  size: "small",
20228
20223
  children: e.formatMessage(
@@ -20232,20 +20227,20 @@ const lC = () => {
20232
20227
  };
20233
20228
  switch (g.push({ className: x }), x) {
20234
20229
  case "open":
20235
- C.href = (l == null ? void 0 : l.full) || "", C.onClick = (F) => {
20230
+ E.href = (l == null ? void 0 : l.full) || "", E.onClick = (F) => {
20236
20231
  F.preventDefault(), F.stopPropagation(), window.open((l == null ? void 0 : l.full) || "", "_blank"), a([{ type: "showLinkEditor", value: !1 }]);
20237
- }, C.children = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
20238
- C.children,
20232
+ }, E.children = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
20233
+ E.children,
20239
20234
  /* @__PURE__ */ c.jsx(Ue, { children: e.formatMessage({ id: `${t}${x}_text` }) })
20240
20235
  ] });
20241
20236
  break;
20242
20237
  case "edit":
20243
- C.onClick = () => {
20238
+ E.onClick = () => {
20244
20239
  h(!1);
20245
20240
  };
20246
20241
  break;
20247
20242
  case "remove":
20248
- C.onClick = () => {
20243
+ E.onClick = () => {
20249
20244
  const F = [
20250
20245
  { type: "showLinkEditor", value: !1 }
20251
20246
  ];
@@ -20253,7 +20248,7 @@ const lC = () => {
20253
20248
  };
20254
20249
  break;
20255
20250
  }
20256
- return C;
20251
+ return E;
20257
20252
  }), b = [
20258
20253
  {
20259
20254
  id: "url",
@@ -20279,8 +20274,8 @@ const lC = () => {
20279
20274
  if (!o)
20280
20275
  return;
20281
20276
  x.preventDefault(), x.stopPropagation();
20282
- const C = y.end(o, []);
20283
- J.select(o, C), te.focus(o);
20277
+ const E = y.end(o, []);
20278
+ J.select(o, E), te.focus(o);
20284
20279
  }
20285
20280
  }
20286
20281
  }
@@ -20325,14 +20320,14 @@ const lC = () => {
20325
20320
  functions: {
20326
20321
  onSuccess: async (x) => {
20327
20322
  setTimeout(() => {
20328
- const C = [
20323
+ const E = [
20329
20324
  { type: "showLinkEditor", value: !1 }
20330
20325
  ];
20331
20326
  if (x.url) {
20332
20327
  const { full: F } = Hc(x.url);
20333
- l != null && l.full ? uC(o, F, n, s) : oC(o, F, n, s), C.push({ type: "lastAnchor", value: null });
20328
+ l != null && l.full ? uC(o, F, n, s) : oC(o, F, n, s), E.push({ type: "lastAnchor", value: null });
20334
20329
  }
20335
- a(C);
20330
+ a(E);
20336
20331
  });
20337
20332
  }
20338
20333
  },
@@ -20508,9 +20503,9 @@ const EC = ({
20508
20503
  lastKey: null,
20509
20504
  hasInteracted: !1,
20510
20505
  hasLoaded: !1
20511
- }, [C, F] = hr(aa, x), {
20506
+ }, [E, F] = hr(aa, x), {
20512
20507
  editorKey: w,
20513
- originalValue: E,
20508
+ originalValue: C,
20514
20509
  initialValue: S,
20515
20510
  stringValue: L,
20516
20511
  lastAnchor: j,
@@ -20518,7 +20513,7 @@ const EC = ({
20518
20513
  hasInteracted: M,
20519
20514
  hasLoaded: A,
20520
20515
  mentionPopover: _
20521
- } = C, T = ($) => {
20516
+ } = E, T = ($) => {
20522
20517
  const X = $ || Gi[0];
20523
20518
  $ && F([{ type: "tabbableOption", value: X }]);
20524
20519
  }, N = `rte-${e}`, q = Re(
@@ -20564,8 +20559,8 @@ const EC = ({
20564
20559
  ie(N);
20565
20560
  }
20566
20561
  }, [Y.children.length, S]), de(() => {
20567
- E && (async () => {
20568
- let X = An(E);
20562
+ C && (async () => {
20563
+ let X = An(C);
20569
20564
  if (X.includes("<")) {
20570
20565
  zr.prototype.escape = (B) => B;
20571
20566
  const k = new zr();
@@ -20584,14 +20579,14 @@ const EC = ({
20584
20579
  })), Qw(X, (k) => {
20585
20580
  F([
20586
20581
  { type: "initialValue", value: k },
20587
- { type: "editorKey", value: E.toString() }
20582
+ { type: "editorKey", value: C.toString() }
20588
20583
  ]), setTimeout(() => {
20589
20584
  F([{ type: "stringValue", value: vc(Y) }]);
20590
20585
  }, 150);
20591
20586
  });
20592
20587
  })();
20593
- }, [E]), de(() => {
20594
- t !== "" || !Y || bs(E, t) && !M || (y.withoutNormalizing(Y, () => {
20588
+ }, [C]), de(() => {
20589
+ t !== "" || !Y || bs(C, t) && !M || (y.withoutNormalizing(Y, () => {
20595
20590
  J.delete(Y, {
20596
20591
  at: {
20597
20592
  anchor: y.start(Y, []),
@@ -20616,7 +20611,7 @@ const EC = ({
20616
20611
  dn.Provider,
20617
20612
  {
20618
20613
  value: {
20619
- ...C,
20614
+ ...E,
20620
20615
  id: N,
20621
20616
  isInOverlay: h,
20622
20617
  setFocus: T,
@@ -20824,9 +20819,9 @@ function _C({
20824
20819
  const w = F.target.files && F.target.files[0];
20825
20820
  if (!w || !t)
20826
20821
  throw m(!1), new Error("Image file or userID is missing");
20827
- const E = await i({ fileObject: w, userId: t }), S = {
20828
- thumbnail: E.thumbnailURL,
20829
- full: E.originalURL
20822
+ const C = await i({ fileObject: w, userId: t }), S = {
20823
+ thumbnail: C.thumbnailURL,
20824
+ full: C.originalURL
20830
20825
  };
20831
20826
  d(S), s(S);
20832
20827
  } catch {
@@ -20838,7 +20833,7 @@ function _C({
20838
20833
  }, {
20839
20834
  upload: v = o.formatMessage({ id: `${l}cta_upload` }),
20840
20835
  change: x = o.formatMessage({ id: `${l}cta_change` }),
20841
- uploading: C = o.formatMessage({ id: `${l}cta_uploading` })
20836
+ uploading: E = o.formatMessage({ id: `${l}cta_uploading` })
20842
20837
  } = (a == null ? void 0 : a.text) || {};
20843
20838
  return /* @__PURE__ */ c.jsxs("div", { className: K("profile-image-change-figure", e), children: [
20844
20839
  /* @__PURE__ */ c.jsx(
@@ -20874,7 +20869,7 @@ function _C({
20874
20869
  "data-gtm-event-type": `${u ? "change-photo" : "add-photo"}-click`,
20875
20870
  className: "gtm-trackable",
20876
20871
  disabled: h,
20877
- children: h ? C : u ? x : v
20872
+ children: h ? E : u ? x : v
20878
20873
  }
20879
20874
  )
20880
20875
  ] });
@@ -20959,7 +20954,7 @@ const FC = ({
20959
20954
  "NOT_SUBMITTED"
20960
20955
  /* NOT_SUBMITTED */
20961
20956
  ), p(!0), h([]);
20962
- }, C = (F) => {
20957
+ }, E = (F) => {
20963
20958
  F.preventDefault(), s(), f(
20964
20959
  "CLOSED"
20965
20960
  /* CLOSED */
@@ -20973,7 +20968,7 @@ const FC = ({
20973
20968
  /* @__PURE__ */ c.jsx(on, {}),
20974
20969
  /* @__PURE__ */ c.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
20975
20970
  /* @__PURE__ */ c.jsx(Be, { variant: "secondary", onClick: x, children: b({ id: "inviteForm_ctaSendMoreInvites" }) }),
20976
- /* @__PURE__ */ c.jsx(Be, { onClick: C, children: b({ id: "inviteForm_ctaDone" }) })
20971
+ /* @__PURE__ */ c.jsx(Be, { onClick: E, children: b({ id: "inviteForm_ctaDone" }) })
20977
20972
  ] }) : /* @__PURE__ */ c.jsx(Be, { onClick: x, children: b({ id: "inviteForm_ctaTryAgain" }) }) })
20978
20973
  ] }) : /* @__PURE__ */ c.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ c.jsxs(
20979
20974
  "form",
@@ -20996,7 +20991,7 @@ const FC = ({
20996
20991
  h(F), p(!F.length);
20997
20992
  },
20998
20993
  autoFocus: !1,
20999
- getLabel: (F, w, E) => /* @__PURE__ */ c.jsxs("div", { className: "email text-medium", children: [
20994
+ getLabel: (F, w, C) => /* @__PURE__ */ c.jsxs("div", { className: "email text-medium", children: [
21000
20995
  /* @__PURE__ */ c.jsx("div", { "data-tag-item": !0, children: F }),
21001
20996
  /* @__PURE__ */ c.jsx(
21002
20997
  Be,
@@ -21005,7 +21000,7 @@ const FC = ({
21005
21000
  size: "small",
21006
21001
  icon: { icon: "close" },
21007
21002
  onClick: () => {
21008
- E(w), p(!d.length);
21003
+ C(w), p(!d.length);
21009
21004
  },
21010
21005
  className: "remove-email-button",
21011
21006
  screenreaderText: b({ id: "overlay_close" })
@@ -21094,13 +21089,13 @@ const AC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
21094
21089
  var F, w;
21095
21090
  const i = le(), a = "profileForm_", s = Ie(Dt), [o, l] = ue(s.image), [u, d] = ue(!1), {
21096
21091
  uploadImage: h,
21097
- onSuccess: m = async (E) => {
21092
+ onSuccess: m = async (C) => {
21098
21093
  },
21099
21094
  onCancel: p = () => {
21100
21095
  },
21101
21096
  onFailure: g = () => {
21102
21097
  }
21103
- } = t, { buildLocation: f, isValidPlace: b, predictPlaces: v } = e.useMaps(), { context: x = "ProfileForm", event: C = "profile-form-submit-click" } = r || {};
21098
+ } = t, { buildLocation: f, isValidPlace: b, predictPlaces: v } = e.useMaps(), { context: x = "ProfileForm", event: E = "profile-form-submit-click" } = r || {};
21104
21099
  return /* @__PURE__ */ c.jsx(
21105
21100
  Ln,
21106
21101
  {
@@ -21157,7 +21152,7 @@ const AC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
21157
21152
  validation: [
21158
21153
  { condition: "required" },
21159
21154
  {
21160
- condition: ({ location: E }) => E && !u ? !1 : !b(E),
21155
+ condition: ({ location: C }) => C && !u ? !1 : !b(C),
21161
21156
  error: i.formatMessage({ id: `${a}location_error` })
21162
21157
  }
21163
21158
  ],
@@ -21190,14 +21185,14 @@ const AC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
21190
21185
  ...n
21191
21186
  },
21192
21187
  intlPath: a,
21193
- gtm: { context: x, event: C },
21188
+ gtm: { context: x, event: E },
21194
21189
  functions: {
21195
- onSuccess: async (E) => {
21190
+ onSuccess: async (C) => {
21196
21191
  try {
21197
21192
  const S = {
21198
- ...E,
21193
+ ...C,
21199
21194
  image: o || null,
21200
- location: u ? await f(E == null ? void 0 : E.location) : s.location
21195
+ location: u ? await f(C == null ? void 0 : C.location) : s.location
21201
21196
  };
21202
21197
  s.updateDetails && s.updateDetails((L) => ({ ...L, ...S })), await m(S);
21203
21198
  } catch {
@@ -21580,10 +21575,10 @@ const PC = {
21580
21575
  }, [f, b] = hr(aa, PC), {
21581
21576
  validFields: v,
21582
21577
  emailDetails: x,
21583
- shouldManuallyApprove: C,
21578
+ shouldManuallyApprove: E,
21584
21579
  shouldDisableButton: F,
21585
21580
  showSuccessMessage: w,
21586
- showError: E
21581
+ showError: C
21587
21582
  } = f, [S, L] = Oc([
21588
21583
  "signup-this-session",
21589
21584
  "functional-cookie-consent"
@@ -21597,8 +21592,8 @@ const PC = {
21597
21592
  hiddenValidation: re.createRef()
21598
21593
  };
21599
21594
  de(() => {
21600
- C === !0 && j.jobTitle.current && j.jobTitle.current.focus();
21601
- }, [C]), de(() => {
21595
+ E === !0 && j.jobTitle.current && j.jobTitle.current.focus();
21596
+ }, [E]), de(() => {
21602
21597
  S["signup-this-session"] && b([{ type: "showSuccessMessage", value: !0 }]);
21603
21598
  }, [S]), de(() => {
21604
21599
  w && S["functional-cookie-consent"] && L("signup-this-session", "true", {
@@ -21616,7 +21611,7 @@ const PC = {
21616
21611
  dispatch: b,
21617
21612
  dataToSubmit: s,
21618
21613
  intl: l
21619
- }), [s, r, l, j, g, f]), M = F ? !0 : C ? !Object.values(v).every((A) => A === !0) : !v.name || !v.email || ["exists", "pending", "verify"].includes(x.boxType);
21614
+ }), [s, r, l, j, g, f]), M = F ? !0 : E ? !Object.values(v).every((A) => A === !0) : !v.name || !v.email || ["exists", "pending", "verify"].includes(x.boxType);
21620
21615
  return g.successMessage && w ? /* @__PURE__ */ c.jsx(OC, { className: e }) : /* @__PURE__ */ c.jsxs(
21621
21616
  "fieldset",
21622
21617
  {
@@ -21624,7 +21619,7 @@ const PC = {
21624
21619
  "data-testid": "signup-form",
21625
21620
  children: [
21626
21621
  g.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(ht, { id: "signup_title" }) }),
21627
- E && /* @__PURE__ */ c.jsx(
21622
+ C && /* @__PURE__ */ c.jsx(
21628
21623
  In,
21629
21624
  {
21630
21625
  variant: "error",
@@ -21810,8 +21805,8 @@ const NC = ({
21810
21805
  functions: {
21811
21806
  ...n == null ? void 0 : n.functions,
21812
21807
  onSuccess: async (v) => {
21813
- var x, C;
21814
- (x = n == null ? void 0 : n.functions) != null && x.onSuccess && await ((C = n == null ? void 0 : n.functions) == null ? void 0 : C.onSuccess(v)), m(!1);
21808
+ var x, E;
21809
+ (x = n == null ? void 0 : n.functions) != null && x.onSuccess && await ((E = n == null ? void 0 : n.functions) == null ? void 0 : E.onSuccess(v)), m(!1);
21815
21810
  },
21816
21811
  onCancel: p
21817
21812
  }
@@ -22412,17 +22407,17 @@ const nr = "footer_", Qi = "SiteFooter", Cc = ({ group: e }) => {
22412
22407
  o.hasVariantText && (h += `_logged${t ? "In" : "Out"}`);
22413
22408
  let m = !1;
22414
22409
  if (o.href) {
22415
- let C = o.gtmType || `${e}-click`;
22416
- if (C.includes(".")) {
22417
- const F = C.split("."), w = F[F.length - 2];
22418
- C = `${w === "topics" ? `${w}-` : ""}${F[F.length - 1]}`;
22410
+ let E = o.gtmType || `${e}-click`;
22411
+ if (E.includes(".")) {
22412
+ const F = E.split("."), w = F[F.length - 2];
22413
+ E = `${w === "topics" ? `${w}-` : ""}${F[F.length - 1]}`;
22419
22414
  }
22420
22415
  m = {
22421
22416
  href: o.href
22422
22417
  }, u && (m = {
22423
22418
  ...m,
22424
22419
  className: "gtm-trackable",
22425
- "data-gtm-event-type": C,
22420
+ "data-gtm-event-type": E,
22426
22421
  "data-gtm-event-context": "HeaderButtons"
22427
22422
  }), d && (m = {
22428
22423
  ...m,
@@ -22434,26 +22429,26 @@ const nr = "footer_", Qi = "SiteFooter", Cc = ({ group: e }) => {
22434
22429
  const p = o.order && o.order[0] && o[o.order[0]], g = p && o[o.order[0]].order, f = m && window.location.pathname === o.href;
22435
22430
  let b = {}, v = {}, x = {};
22436
22431
  if (f && (b = { ...b, "aria-current": "page" }), p) {
22437
- const C = o.menuId || e, F = {
22438
- onClick: (w) => We.events.onClick(w, { id: C, callback: i, isOpen: r[C] }),
22439
- onFocus: () => We.events.onFocus({ id: C }),
22440
- onBlur: () => We.events.onBlur({ id: C, callback: i }),
22441
- onMouseLeave: () => We.events.onBlur({ id: C, callback: i }),
22442
- onMouseEnter: () => We.events.onMouseEnter({ id: C, callback: i })
22432
+ const E = o.menuId || e, F = {
22433
+ onClick: (w) => We.events.onClick(w, { id: E, callback: i, isOpen: r[E] }),
22434
+ onFocus: () => We.events.onFocus({ id: E }),
22435
+ onBlur: () => We.events.onBlur({ id: E, callback: i }),
22436
+ onMouseLeave: () => We.events.onBlur({ id: E, callback: i }),
22437
+ onMouseEnter: () => We.events.onMouseEnter({ id: E, callback: i })
22443
22438
  };
22444
22439
  v = {
22445
22440
  ...F,
22446
- id: C === Bt.SITE ? Bt.SITE : Bt.ACCOUNT
22441
+ id: E === Bt.SITE ? Bt.SITE : Bt.ACCOUNT
22447
22442
  }, n && (g && (x = {
22448
22443
  ...F,
22449
22444
  className: "navigation-button",
22450
22445
  onKeyPress: (w) => {
22451
- w.key === "Enter" && We.events.onClick(w, { id: C, callback: i, isOpen: r[C] });
22446
+ w.key === "Enter" && We.events.onClick(w, { id: E, callback: i, isOpen: r[E] });
22452
22447
  },
22453
22448
  "aria-haspopup": !0,
22454
- "aria-expanded": r[C],
22455
- "aria-controls": C
22456
- }), v = { ...v, hidden: C in r ? !r[C] : !0 }), g || (v = {
22449
+ "aria-expanded": r[E],
22450
+ "aria-controls": E
22451
+ }), v = { ...v, hidden: E in r ? !r[E] : !0 }), g || (v = {
22457
22452
  ...v
22458
22453
  });
22459
22454
  }
@@ -22478,8 +22473,8 @@ const nr = "footer_", Qi = "SiteFooter", Cc = ({ group: e }) => {
22478
22473
  id: `header_menu_${r[Bt.SITE] ? "hide" : "show"}`
22479
22474
  }) })
22480
22475
  ] }) : s.formatMessage({ id: h }),
22481
- o.order && /* @__PURE__ */ c.jsx("ul", { ...v, children: o.order.map((C) => {
22482
- if (!o[C])
22476
+ o.order && /* @__PURE__ */ c.jsx("ul", { ...v, children: o.order.map((E) => {
22477
+ if (!o[E])
22483
22478
  return null;
22484
22479
  const F = {
22485
22480
  isLoggedIn: t,
@@ -22488,32 +22483,32 @@ const nr = "footer_", Qi = "SiteFooter", Cc = ({ group: e }) => {
22488
22483
  callback: i,
22489
22484
  doTrack: l ? u : null
22490
22485
  };
22491
- return o[C].order ? /* @__PURE__ */ c.jsxs(
22486
+ return o[E].order ? /* @__PURE__ */ c.jsxs(
22492
22487
  "li",
22493
22488
  {
22494
22489
  className: K({
22495
- [o[C].className]: o[C].className
22490
+ [o[E].className]: o[E].className
22496
22491
  }),
22497
22492
  children: [
22498
- s.formatMessage({ id: `${h}_${C}` }),
22499
- /* @__PURE__ */ c.jsx("ul", { children: o[C].order.map((w) => /* @__PURE__ */ c.jsx(
22493
+ s.formatMessage({ id: `${h}_${E}` }),
22494
+ /* @__PURE__ */ c.jsx("ul", { children: o[E].order.map((w) => /* @__PURE__ */ c.jsx(
22500
22495
  Xi,
22501
22496
  {
22502
- id: `${e}.${C}.${w}`,
22497
+ id: `${e}.${E}.${w}`,
22503
22498
  ...F
22504
22499
  },
22505
22500
  w
22506
22501
  )) })
22507
22502
  ]
22508
22503
  },
22509
- C
22504
+ E
22510
22505
  ) : /* @__PURE__ */ c.jsx(
22511
22506
  Xi,
22512
22507
  {
22513
- id: `${e}.${C}`,
22508
+ id: `${e}.${E}`,
22514
22509
  ...F
22515
22510
  },
22516
- C
22511
+ E
22517
22512
  );
22518
22513
  }) })
22519
22514
  ]
@@ -22560,8 +22555,8 @@ const Zf = ({ showNavigation: e = !0 }) => {
22560
22555
  }
22561
22556
  }
22562
22557
  });
22563
- const m = (v, x, C = !1) => {
22564
- We.handleMenus({ id: v, value: x, menus: h.current.menus, dispatch: o, forceHandle: C });
22558
+ const m = (v, x, E = !1) => {
22559
+ We.handleMenus({ id: v, value: x, menus: h.current.menus, dispatch: o, forceHandle: E });
22565
22560
  }, p = ke(null), g = (v) => {
22566
22561
  v.key === "Escape" && [
22567
22562
  "site-navigation",
@@ -22827,16 +22822,16 @@ const IC = () => {
22827
22822
  variant: h = "default",
22828
22823
  circle: m = "default",
22829
22824
  modal: p = "default"
22830
- } = a, g = jh(), [f, b] = ue(""), v = (E) => {
22825
+ } = a, g = jh(), [f, b] = ue(""), v = (C) => {
22831
22826
  const {
22832
22827
  detail: { message: S }
22833
- } = E;
22828
+ } = C;
22834
22829
  b(S);
22835
22830
  };
22836
22831
  de(() => (window.scrollTo(0, 0), document.addEventListener("ariaLive", v), () => {
22837
22832
  document.removeEventListener("ariaLive", v);
22838
22833
  }), [g]);
22839
- const x = ki(e, { locale: o }), C = ki(t, {
22834
+ const x = ki(e, { locale: o }), E = ki(t, {
22840
22835
  locale: o
22841
22836
  }), F = ki(n, {
22842
22837
  locale: o
@@ -22850,13 +22845,13 @@ const IC = () => {
22850
22845
  children: [
22851
22846
  /* @__PURE__ */ c.jsx(Zf, { showNavigation: l }),
22852
22847
  /* @__PURE__ */ c.jsxs("main", { id: "content-wrapper", children: [
22853
- C && /* @__PURE__ */ c.jsx(
22848
+ E && /* @__PURE__ */ c.jsx(
22854
22849
  "div",
22855
22850
  {
22856
22851
  className: K("additional-content prepended", {
22857
22852
  "large-modal": p === "large"
22858
22853
  }),
22859
- children: C
22854
+ children: E
22860
22855
  }
22861
22856
  ),
22862
22857
  re.createElement(d === "bold" ? rd : "div", {
@@ -23149,10 +23144,10 @@ const nt = "discussion_form_", ma = ({
23149
23144
  const p = le(), g = Ie(Dt), [f, b] = ue(""), {
23150
23145
  isLoading: v = !1,
23151
23146
  isInWrapper: x = !1,
23152
- isInOverlay: C = !1,
23147
+ isInOverlay: E = !1,
23153
23148
  isAutoFocused: F = !1,
23154
23149
  isEditing: w = !1,
23155
- hasTitleField: E = !1,
23150
+ hasTitleField: C = !1,
23156
23151
  isPrepopulated: S = !1,
23157
23152
  showTitle: L = !1,
23158
23153
  showGuidelines: j = !0,
@@ -23180,7 +23175,7 @@ const nt = "discussion_form_", ma = ({
23180
23175
  create: { projectNames: ["questions-answers"] }
23181
23176
  }
23182
23177
  } = d, [k, B] = ue({
23183
- title: E && E.text || "",
23178
+ title: C && C.text || "",
23184
23179
  body: w && w.text || S && S.text || ""
23185
23180
  }), [I, R] = ue(l.error || !1), [W, ee] = ue(!1);
23186
23181
  if (de(() => {
@@ -23275,14 +23270,14 @@ const nt = "discussion_form_", ma = ({
23275
23270
  }, 5e3);
23276
23271
  }, De = !k.title || !Qo(k.title), ge = !k.body || !Qo(k.body);
23277
23272
  let Fe = ge;
23278
- E && (Fe = De && ge);
23273
+ C && (Fe = De && ge);
23279
23274
  const Ne = W === "submitting", Pe = [
23280
23275
  {
23281
23276
  component: VC,
23282
23277
  props: {
23283
23278
  formID: ne,
23284
23279
  intlPath: nt,
23285
- showLabel: E !== !1,
23280
+ showLabel: C !== !1,
23286
23281
  type: n.type
23287
23282
  }
23288
23283
  },
@@ -23298,7 +23293,7 @@ const nt = "discussion_form_", ma = ({
23298
23293
  "action"
23299
23294
  ),
23300
23295
  maxLength: s,
23301
- meta: { isInOverlay: C },
23296
+ meta: { isInOverlay: E },
23302
23297
  functions: {
23303
23298
  onChange: H,
23304
23299
  onMention: ie,
@@ -23306,7 +23301,7 @@ const nt = "discussion_form_", ma = ({
23306
23301
  clickMentionFallback: $
23307
23302
  },
23308
23303
  data: h,
23309
- autoFocus: w !== !1 || F && !E,
23304
+ autoFocus: w !== !1 || F && !C,
23310
23305
  "aria-invalid": !!I,
23311
23306
  "aria-errormessage": "error-message"
23312
23307
  }
@@ -23341,10 +23336,10 @@ const nt = "discussion_form_", ma = ({
23341
23336
  T({ postType: ve });
23342
23337
  }
23343
23338
  }
23344
- }), E && Pe.unshift({
23339
+ }), C && Pe.unshift({
23345
23340
  id: "title",
23346
23341
  type: "text",
23347
- value: E.text,
23342
+ value: C.text,
23348
23343
  limit: 250,
23349
23344
  autoFocus: F,
23350
23345
  label: p.formatMessage({ id: `${nt}titleField_label` }),
@@ -23362,7 +23357,7 @@ const nt = "discussion_form_", ma = ({
23362
23357
  ]
23363
23358
  });
23364
23359
  let He = !g || !g.id || !r || Fe || Ne;
23365
- return w && (E ? He = He || k.body === w.text && k.title === E.text : He = He || k.body === w.text), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
23360
+ return w && (C ? He = He || k.body === w.text && k.title === C.text : He = He || k.body === w.text), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
23366
23361
  /* @__PURE__ */ c.jsxs(
23367
23362
  Ln,
23368
23363
  {
@@ -23523,10 +23518,10 @@ const XC = ({
23523
23518
  showLikesModal: !1
23524
23519
  }, [b, v] = hr(aa, f), {
23525
23520
  numberOfLikes: x,
23526
- userLikedContent: C,
23521
+ userLikedContent: E,
23527
23522
  ignoreInteractions: F,
23528
23523
  showLikers: w,
23529
- tabbableLink: E,
23524
+ tabbableLink: C,
23530
23525
  showLikesModal: S
23531
23526
  } = b, L = GC(v);
23532
23527
  de(() => {
@@ -23544,16 +23539,16 @@ const XC = ({
23544
23539
  }, M = async () => {
23545
23540
  if (cs(), F || !s)
23546
23541
  return !1;
23547
- let T = C ? x - 1 : x + 1;
23542
+ let T = E ? x - 1 : x + 1;
23548
23543
  T < 0 && (T = 0), v([
23549
23544
  { type: "ignoreInteractions", value: !0 },
23550
23545
  { type: "numberOfLikes", value: T },
23551
- { type: "userLikedContent", value: !C }
23546
+ { type: "userLikedContent", value: !E }
23552
23547
  ]);
23553
23548
  try {
23554
23549
  if (a && a.slugs) {
23555
23550
  const N = ZC(a.slugs);
23556
- C ? await m(N) : await h({
23551
+ E ? await m(N) : await h({
23557
23552
  ...N,
23558
23553
  payload: { contentPath: window.location.pathname }
23559
23554
  });
@@ -23593,11 +23588,11 @@ const XC = ({
23593
23588
  {
23594
23589
  className: K("discussion-button text-medium action-button", {
23595
23590
  "show-spinner": F,
23596
- "is-liked": C,
23591
+ "is-liked": E,
23597
23592
  disabled: !s
23598
23593
  }),
23599
23594
  icon: {
23600
- icon: C ? "heart" : "heart_empty",
23595
+ icon: E ? "heart" : "heart_empty",
23601
23596
  animate: "bounce"
23602
23597
  },
23603
23598
  disabled: !s,
@@ -23607,7 +23602,7 @@ const XC = ({
23607
23602
  onClick: z,
23608
23603
  screenreaderText: s ? g.formatMessage(
23609
23604
  {
23610
- id: `discussion_likes_${C ? "unlike" : "like"}`
23605
+ id: `discussion_likes_${E ? "unlike" : "like"}`
23611
23606
  },
23612
23607
  {
23613
23608
  action: g.formatMessage({
@@ -23615,7 +23610,7 @@ const XC = ({
23615
23610
  })
23616
23611
  }
23617
23612
  ) : !1,
23618
- "aria-pressed": C,
23613
+ "aria-pressed": E,
23619
23614
  children: /* @__PURE__ */ c.jsx("span", { "data-testid": "number-of-likes", className: "number-of-likes", children: g.formatMessage(
23620
23615
  { id: `discussion_likes${r ? "_short" : ""}` },
23621
23616
  { number: x }
@@ -23668,7 +23663,7 @@ const XC = ({
23668
23663
  if (typeof T == "string")
23669
23664
  return null;
23670
23665
  const q = {};
23671
- return E !== N && (q.tabIndex = -1), /* @__PURE__ */ c.jsx("li", { "data-index": N, children: /* @__PURE__ */ c.jsx(
23666
+ return C !== N && (q.tabIndex = -1), /* @__PURE__ */ c.jsx("li", { "data-index": N, children: /* @__PURE__ */ c.jsx(
23672
23667
  Rn,
23673
23668
  {
23674
23669
  href: T.id ? `/profiles/${T.id}` : void 0,
@@ -24205,7 +24200,7 @@ function pE({
24205
24200
  },
24206
24201
  user: h,
24207
24202
  ...m
24208
- }, g = hE({ ...p, mutationFn: e }), f = mE({ ...p, mutationFn: t }), b = gE({ ...p, mutationFn: n }), v = yE({ ...p, mutationFn: i }), x = DE({ ...p, mutationFn: a }), C = bE({ ...p, mutationFn: s }), F = xE({ ...p, mutationFn: o }), { activities: w, ...E } = vE({
24203
+ }, g = hE({ ...p, mutationFn: e }), f = mE({ ...p, mutationFn: t }), b = gE({ ...p, mutationFn: n }), v = yE({ ...p, mutationFn: i }), x = DE({ ...p, mutationFn: a }), E = bE({ ...p, mutationFn: s }), F = xE({ ...p, mutationFn: o }), { activities: w, ...C } = vE({
24209
24204
  queryKey: l,
24210
24205
  queryFn: r,
24211
24206
  filterOption: u
@@ -24218,11 +24213,11 @@ function pE({
24218
24213
  remove: v,
24219
24214
  like: b,
24220
24215
  unlike: x,
24221
- pin: C,
24216
+ pin: E,
24222
24217
  unpin: F
24223
24218
  },
24224
24219
  user: h,
24225
- ...E
24220
+ ...C
24226
24221
  };
24227
24222
  }
24228
24223
  function gE({
@@ -24357,10 +24352,10 @@ const rk = ({
24357
24352
  ]), {
24358
24353
  activities: v,
24359
24354
  error: x,
24360
- fetchNextPage: C,
24355
+ fetchNextPage: E,
24361
24356
  hasNextPage: F,
24362
24357
  isLoading: w,
24363
- mutations: { create: E, edit: S, remove: L, like: j, unlike: z, pin: M, unpin: A }
24358
+ mutations: { create: C, edit: S, remove: L, like: j, unlike: z, pin: M, unpin: A }
24364
24359
  } = pE({
24365
24360
  queryKey: [e, t, "activities", p],
24366
24361
  queryFns: a,
@@ -24388,7 +24383,7 @@ const rk = ({
24388
24383
  );
24389
24384
  }, [h, i]);
24390
24385
  const [_, T] = ue(null), N = () => {
24391
- T(v.length), C();
24386
+ T(v.length), E();
24392
24387
  };
24393
24388
  return th(), x ? /* @__PURE__ */ c.jsx(In, { variant: "error", text: x.message }) : /* @__PURE__ */ c.jsxs("section", { children: [
24394
24389
  /* @__PURE__ */ c.jsx(
@@ -24400,7 +24395,7 @@ const rk = ({
24400
24395
  form: {
24401
24396
  content: { type: "post", slugs: {} },
24402
24397
  functions: {
24403
- create: E,
24398
+ create: C,
24404
24399
  ...s
24405
24400
  },
24406
24401
  meta: {
@@ -25268,13 +25263,13 @@ const AE = ({
25268
25263
  hasNextPage: m,
25269
25264
  isLoading: p,
25270
25265
  mutations: { create: g, edit: f, like: b, remove: v, unlike: x },
25271
- user: C
25266
+ user: E
25272
25267
  } = nh({
25273
25268
  queryKey: [e, t, n, r, "replies"],
25274
25269
  queryFns: {
25275
25270
  ...a,
25276
25271
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25277
- list: (E) => a.list({ ...E, reactionId: r })
25272
+ list: (C) => a.list({ ...C, reactionId: r })
25278
25273
  }
25279
25274
  });
25280
25275
  $c([p]);
@@ -25315,7 +25310,7 @@ const AE = ({
25315
25310
  },
25316
25311
  functions: {
25317
25312
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25318
- create: (E, { body: S }) => g({ activityId: n, replyId: r, content: S }),
25313
+ create: (C, { body: S }) => g({ activityId: n, replyId: r, content: S }),
25319
25314
  listMembers: s.listMembers,
25320
25315
  clickMentionFallback: s.clickMentionFallback
25321
25316
  },
@@ -25326,7 +25321,7 @@ const AE = ({
25326
25321
  showSuccessMessage: !1
25327
25322
  }
25328
25323
  },
25329
- children: d && d.length > 0 ? d == null ? void 0 : d.map((E) => {
25324
+ children: d && d.length > 0 ? d == null ? void 0 : d.map((C) => {
25330
25325
  var ie, D, $, X, k, B, I;
25331
25326
  const {
25332
25327
  id: S,
@@ -25334,18 +25329,18 @@ const AE = ({
25334
25329
  latest_children: j,
25335
25330
  children_counts: z,
25336
25331
  data: { mentioned_users: M }
25337
- } = E, _ = (((ie = L == null ? void 0 : L.like) == null ? void 0 : ie.length) || 0) > 0 ? (D = L == null ? void 0 : L.like) == null ? void 0 : D.find((R) => {
25332
+ } = C, _ = (((ie = L == null ? void 0 : L.like) == null ? void 0 : ie.length) || 0) > 0 ? (D = L == null ? void 0 : L.like) == null ? void 0 : D.find((R) => {
25338
25333
  var W;
25339
- return ((W = R == null ? void 0 : R.user) == null ? void 0 : W.id) === (C == null ? void 0 : C.id);
25334
+ return ((W = R == null ? void 0 : R.user) == null ? void 0 : W.id) === (E == null ? void 0 : E.id);
25340
25335
  }) : !1, T = _ ? _ == null ? void 0 : _.id : "", N = !!_, U = ((($ = j == null ? void 0 : j.like) == null ? void 0 : $.length) || 0) > 0 ? (X = j == null ? void 0 : j.like) == null ? void 0 : X.map((R) => {
25341
25336
  var W, ee, H;
25342
25337
  return {
25343
25338
  id: (W = R == null ? void 0 : R.user) == null ? void 0 : W.id,
25344
25339
  name: (H = (ee = R == null ? void 0 : R.user) == null ? void 0 : ee.data) == null ? void 0 : H.name
25345
25340
  };
25346
- }) : !1, Y = typeof E.data.content == "string" ? (k = E == null ? void 0 : E.data) == null ? void 0 : k.content : (
25341
+ }) : !1, Y = typeof C.data.content == "string" ? (k = C == null ? void 0 : C.data) == null ? void 0 : k.content : (
25347
25342
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25348
- ((I = (B = E == null ? void 0 : E.data) == null ? void 0 : B.content) == null ? void 0 : I.text) || ""
25343
+ ((I = (B = C == null ? void 0 : C.data) == null ? void 0 : B.content) == null ? void 0 : I.text) || ""
25349
25344
  );
25350
25345
  return /* @__PURE__ */ c.jsx(
25351
25346
  pa,
@@ -25356,16 +25351,16 @@ const AE = ({
25356
25351
  type: "reply",
25357
25352
  body: Y,
25358
25353
  canLike: i,
25359
- createdAt: E == null ? void 0 : E.created_at,
25354
+ createdAt: C == null ? void 0 : C.created_at,
25360
25355
  slugs: {
25361
25356
  question: `${e}/${t}`,
25362
25357
  answer: n,
25363
25358
  // Stop-gap solution to avoid having to change the DiscussionPost component
25364
25359
  // The `reply` is currently used to define the form ID which handles the focus
25365
- reply: E == null ? void 0 : E.parent
25360
+ reply: C == null ? void 0 : C.parent
25366
25361
  },
25367
25362
  slug: "",
25368
- author: Xr(E == null ? void 0 : E.user),
25363
+ author: Xr(C == null ? void 0 : C.user),
25369
25364
  userLiked: N,
25370
25365
  likes: (z == null ? void 0 : z.like) || 0,
25371
25366
  peopleWhoLiked: U,
@@ -25427,12 +25422,12 @@ const BE = ({
25427
25422
  fetchNextPage: p,
25428
25423
  hasNextPage: g,
25429
25424
  isLoading: f,
25430
- mutations: { create: b, edit: v, like: x, remove: C, unlike: F },
25425
+ mutations: { create: b, edit: v, like: x, remove: E, unlike: F },
25431
25426
  user: w
25432
25427
  } = nh({
25433
25428
  queryKey: [e, t, n, "replies"],
25434
25429
  queryFns: u
25435
- }), E = () => {
25430
+ }), C = () => {
25436
25431
  L(m.length), p();
25437
25432
  }, [S, L] = ue(null);
25438
25433
  return $c([f]), th(), /* @__PURE__ */ c.jsxs("section", { className: "replies-feed", children: [
@@ -25511,7 +25506,7 @@ const BE = ({
25511
25506
  functions: {
25512
25507
  content: {
25513
25508
  createContent: () => null,
25514
- deleteContent: () => C({ replyId: M }),
25509
+ deleteContent: () => E({ replyId: M }),
25515
25510
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25516
25511
  updateContent: (ne, { body: ce }) => v({ replyId: M, content: ce })
25517
25512
  },
@@ -25563,7 +25558,7 @@ const BE = ({
25563
25558
  sa,
25564
25559
  {
25565
25560
  hasNextPage: g,
25566
- loadNextPage: E,
25561
+ loadNextPage: C,
25567
25562
  icon: { icon: "arrow-down", position: "right" },
25568
25563
  messages: {
25569
25564
  button: h.formatMessage({ id: "loadMore_button" }),
@@ -25771,11 +25766,11 @@ const pa = ({
25771
25766
  isCommunity: b = !1,
25772
25767
  badges: v,
25773
25768
  categories: x,
25774
- basePath: C,
25769
+ basePath: E,
25775
25770
  parentId: F
25776
25771
  }) => {
25777
25772
  var Te, Se, V, se, pe, be, _e, Xe, et;
25778
- const w = le(), E = Ie(Dt), S = Ie(Po), {
25773
+ const w = le(), C = Ie(Dt), S = Ie(Po), {
25779
25774
  createContent: L = async () => {
25780
25775
  },
25781
25776
  deleteContent: j = async () => {
@@ -25799,7 +25794,7 @@ const pa = ({
25799
25794
  userLiked: X,
25800
25795
  comments: k = 0,
25801
25796
  mentions: B
25802
- } = t, I = E && E.id && typeof U != "string" && U.id && U.id === E.id || !1, R = typeof Y == "boolean" ? Y : !0, W = I && (!t.createdAt || Lh(t.createdAt, 10, "seconds")), ee = ke(null), [H, ne] = ue({
25797
+ } = t, I = C && C.id && typeof U != "string" && U.id && U.id === C.id || !1, R = typeof Y == "boolean" ? Y : !0, W = I && (!t.createdAt || Lh(t.createdAt, 10, "seconds")), ee = ke(null), [H, ne] = ue({
25803
25798
  title: t && t.body !== t.title && t.title || "",
25804
25799
  body: t && t.body || "",
25805
25800
  isEditing: !1,
@@ -26057,9 +26052,9 @@ const pa = ({
26057
26052
  }
26058
26053
  )
26059
26054
  ] }),
26060
- x && ((V = t.categories) == null ? void 0 : V.length) && /* @__PURE__ */ c.jsx("div", { className: "categories-list", children: t.categories.map((xe) => {
26055
+ x && ((V = t.categories) == null ? void 0 : V.length) && /* @__PURE__ */ c.jsx("ul", { className: "categories-list", children: t.categories.map((xe) => {
26061
26056
  const je = x == null ? void 0 : x.find((st) => st.slug === xe);
26062
- return je ? /* @__PURE__ */ c.jsx(an, { size: "small", children: je.name }, je.slug) : null;
26057
+ return je ? /* @__PURE__ */ c.jsx(an, { size: "small", element: "li", children: je.name }, je.slug) : null;
26063
26058
  }) }),
26064
26059
  !H.isEditing && !(s != null && s.actionBar) && /* @__PURE__ */ c.jsxs(
26065
26060
  "ul",
@@ -26088,7 +26083,7 @@ const pa = ({
26088
26083
  listLikes: _
26089
26084
  },
26090
26085
  badges: v,
26091
- basePath: C,
26086
+ basePath: E,
26092
26087
  parentId: F
26093
26088
  }
26094
26089
  ),
@@ -26627,7 +26622,7 @@ const ak = ({
26627
26622
  activity: f,
26628
26623
  error: b,
26629
26624
  isLoading: v,
26630
- mutations: { edit: x, like: C, unlike: F, pin: w, unpin: E }
26625
+ mutations: { edit: x, like: E, unlike: F, pin: w, unpin: C }
26631
26626
  } = KE({
26632
26627
  queryFns: s,
26633
26628
  queryKey: [e, t, n]
@@ -26686,7 +26681,7 @@ const ak = ({
26686
26681
  updateContent: ($, { title: X, body: k }) => x({ title: X, content: k })
26687
26682
  },
26688
26683
  likes: {
26689
- createLike: () => C({ activityId: n }),
26684
+ createLike: () => E({ activityId: n }),
26690
26685
  deleteLike: () => F({ activityId: n, reactionId: A }),
26691
26686
  listLikes: ($) => o.list({ activityId: n, ...$ })
26692
26687
  },
@@ -26699,7 +26694,7 @@ const ak = ({
26699
26694
  // there will only ever be one pin so we can just grab the first one
26700
26695
  deletePin: () => {
26701
26696
  var $;
26702
- return E({ activityId: n, reactionId: ($ = L == null ? void 0 : L.pin) == null ? void 0 : $[0].id });
26697
+ return C({ activityId: n, reactionId: ($ = L == null ? void 0 : L.pin) == null ? void 0 : $[0].id });
26703
26698
  }
26704
26699
  },
26705
26700
  mentions: u
@@ -26800,7 +26795,7 @@ const JE = ({
26800
26795
  id: b,
26801
26796
  data: { name: v }
26802
26797
  }, l(
26803
- (C) => ({ ...C, mentions: x })
26798
+ (E) => ({ ...E, mentions: x })
26804
26799
  );
26805
26800
  },
26806
26801
  create: async (b) => {
@@ -27432,8 +27427,8 @@ const mk = ({
27432
27427
  ) : null;
27433
27428
  const g = ["communityPage", "microcourse", "event"];
27434
27429
  if (t && t.onClick && g.includes(m) && d !== "premium") {
27435
- const v = a.loading || a.registered || ((b = e == null ? void 0 : e.members) == null ? void 0 : b.isMember), x = async (C) => {
27436
- if (C.preventDefault(), C.stopPropagation(), !(v || !t || !t.onClick)) {
27430
+ const v = a.loading || a.registered || ((b = e == null ? void 0 : e.members) == null ? void 0 : b.isMember), x = async (E) => {
27431
+ if (E.preventDefault(), E.stopPropagation(), !(v || !t || !t.onClick)) {
27437
27432
  s((F) => ({ ...F, loading: !0 }));
27438
27433
  try {
27439
27434
  const F = await t.onClick(e);
@@ -27541,18 +27536,18 @@ const sh = ({
27541
27536
  return /* @__PURE__ */ c.jsx(zt, { element: "li", className: "card-wrapper" });
27542
27537
  const {
27543
27538
  basePath: x = "",
27544
- className: C,
27539
+ className: E,
27545
27540
  length: F,
27546
27541
  gtmEvent: w
27547
27542
  } = ia[v];
27548
- let E = f.slug ? `${x}${f.slug}` : !1;
27549
- 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") && (E = f.slug);
27543
+ let C = f.slug ? `${x}${f.slug}` : !1;
27544
+ 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") && (C = f.slug);
27550
27545
  const S = (_) => {
27551
- E && (_.preventDefault(), _.stopPropagation(), window.location.href = E);
27546
+ C && (_.preventDefault(), _.stopPropagation(), window.location.href = C);
27552
27547
  }, L = { ...s_, ...F };
27553
27548
  let j = { className: "card" }, z = {};
27554
- return E && (z = {
27555
- href: E,
27549
+ return C && (z = {
27550
+ href: C,
27556
27551
  className: "gtm-trackable",
27557
27552
  "data-gtm-event-context": `${s}-CarouselCard`,
27558
27553
  "data-gtm-event-type": `${w}-click`,
@@ -27568,9 +27563,9 @@ const sh = ({
27568
27563
  }, (M = m == null ? void 0 : m.current) == null || M.focus(), (A = m == null ? void 0 : m.current) == null || A.scrollIntoView({ behavior: "smooth" })), /* @__PURE__ */ c.jsx(
27569
27564
  "li",
27570
27565
  {
27571
- className: K("card-wrapper text-medium", C, t, {
27572
- "has-link": E,
27573
- "no-link": !E,
27566
+ className: K("card-wrapper text-medium", E, t, {
27567
+ "has-link": C,
27568
+ "no-link": !C,
27574
27569
  "has-image": f.banner
27575
27570
  }),
27576
27571
  "data-testid": `${v}-card`,
@@ -27597,7 +27592,7 @@ const sh = ({
27597
27592
  f.banner ? /* @__PURE__ */ c.jsxs("p", { className: "img", children: [
27598
27593
  f.registered && /* @__PURE__ */ c.jsx(an, { size: "small", variant: "registered", children: u.formatMessage({ id: "card_registered" }) }),
27599
27594
  /* @__PURE__ */ c.jsx(Gr, { image: { ...f.banner, description: "" } })
27600
- ] }) : C === "people" ? /* @__PURE__ */ c.jsx(
27595
+ ] }) : E === "people" ? /* @__PURE__ */ c.jsx(
27601
27596
  $n,
27602
27597
  {
27603
27598
  name: f.title || "",
@@ -27611,7 +27606,7 @@ const sh = ({
27611
27606
  contributors: { data: f.contributors },
27612
27607
  styling: {
27613
27608
  size: "small",
27614
- showGap: C !== "question",
27609
+ showGap: E !== "question",
27615
27610
  showText: !0
27616
27611
  },
27617
27612
  multipleText: ["event", "solutionArticle"].includes(v) ? u.formatMessage({ id: `card_contributors_${v}` }) : void 0,
@@ -27639,7 +27634,7 @@ const sh = ({
27639
27634
  T,
27640
27635
  L[_]
27641
27636
  );
27642
- return ["title", "text"].includes(_) && E ? (U.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...q, children: /* @__PURE__ */ c.jsx(Yt, { options: U, ...z, children: Y }) })) : /* @__PURE__ */ c.jsx(Yt, { options: U, ...q, children: Y });
27637
+ return ["title", "text"].includes(_) && C ? (U.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...q, children: /* @__PURE__ */ c.jsx(Yt, { options: U, ...z, children: Y }) })) : /* @__PURE__ */ c.jsx(Yt, { options: U, ...q, children: Y });
27643
27638
  }),
27644
27639
  i.contentType === "communityPage" && (i.slug || f.slug) && r && /* @__PURE__ */ c.jsx(
27645
27640
  u_,
@@ -27648,8 +27643,8 @@ const sh = ({
27648
27643
  buildMemberData: r
27649
27644
  }
27650
27645
  ),
27651
- /* @__PURE__ */ c.jsx(a_, { type: C || "", data: f }),
27652
- /* @__PURE__ */ c.jsx(o_, { data: f, cta: a, link: E || "", gtmContext: s })
27646
+ /* @__PURE__ */ c.jsx(a_, { type: E || "", data: f }),
27647
+ /* @__PURE__ */ c.jsx(o_, { data: f, cta: a, link: C || "", gtmContext: s })
27653
27648
  ] })
27654
27649
  }
27655
27650
  );
@@ -27715,7 +27710,7 @@ const f_ = ({
27715
27710
  }), { cardsPerPage: m, isLoading: p } = d, [g, f] = ue({
27716
27711
  currentPage: 0,
27717
27712
  loadedPages: [0]
27718
- }), { currentPage: b, loadedPages: v } = g, [x, C] = ue(""), F = t.length, w = Math.ceil(F / m), E = ke(null), S = mr(!0, !0, E == null ? void 0 : E.current);
27713
+ }), { currentPage: b, loadedPages: v } = g, [x, E] = ue(""), F = t.length, w = Math.ceil(F / m), C = ke(null), S = mr(!0, !0, C == null ? void 0 : C.current);
27719
27714
  de(() => {
27720
27715
  let _ = 1;
27721
27716
  S && (S >= ps.fourCards ? _ = 4 : S >= ps.threeCards ? _ = 3 : S >= ps.twoCards && (_ = 2), _ > F && (_ = F)), h((T) => ({
@@ -27739,7 +27734,7 @@ const f_ = ({
27739
27734
  return;
27740
27735
  else
27741
27736
  T = _;
27742
- C(""), f((q) => ({
27737
+ E(""), f((q) => ({
27743
27738
  ...q,
27744
27739
  currentPage: T,
27745
27740
  loadedPages: [.../* @__PURE__ */ new Set([...v, T])]
@@ -27749,7 +27744,7 @@ const f_ = ({
27749
27744
  return t.slice(q, U).length;
27750
27745
  };
27751
27746
  gs = setTimeout(() => {
27752
- C(
27747
+ E(
27753
27748
  l.formatMessage(
27754
27749
  {
27755
27750
  id: `${u}ariaLive${typeof _ == "string" ? "" : "_slide"}`
@@ -27787,7 +27782,7 @@ const f_ = ({
27787
27782
  return /* @__PURE__ */ c.jsxs(
27788
27783
  "section",
27789
27784
  {
27790
- ref: E,
27785
+ ref: C,
27791
27786
  className: K("carousel-wrapper", a),
27792
27787
  "data-testid": "carousel",
27793
27788
  children: [
@@ -28046,14 +28041,14 @@ const vk = ({
28046
28041
  contentType: b,
28047
28042
  icon: v,
28048
28043
  image: x,
28049
- isIntroduction: C,
28044
+ isIntroduction: E,
28050
28045
  optional: F,
28051
28046
  slug: w,
28052
- subsectionId: E,
28047
+ subsectionId: C,
28053
28048
  title: S,
28054
28049
  type: L
28055
28050
  }) => {
28056
- const j = i && t || C, z = {};
28051
+ const j = i && t || E, z = {};
28057
28052
  return x && (z.style = { "--image": `url(${x})` }), /* @__PURE__ */ c.jsx(
28058
28053
  "li",
28059
28054
  {
@@ -28078,7 +28073,7 @@ const vk = ({
28078
28073
  h_,
28079
28074
  {
28080
28075
  sectionId: a,
28081
- subsectionId: E,
28076
+ subsectionId: C,
28082
28077
  title: S,
28083
28078
  className: "course-title"
28084
28079
  }