@apolitical/component-library 8.3.33 → 8.3.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -223,14 +223,14 @@ function b3() {
223
223
  }
224
224
  return null;
225
225
  }
226
- var I = Object.assign, $ = 0, z, N, te, X, D, _, Q;
226
+ var I = Object.assign, $ = 0, q, N, te, X, D, C, Z;
227
227
  function B() {
228
228
  }
229
229
  B.__reactDisabledLog = !0;
230
230
  function H() {
231
231
  {
232
232
  if ($ === 0) {
233
- z = console.log, N = console.info, te = console.warn, X = console.error, D = console.group, _ = console.groupCollapsed, Q = console.groupEnd;
233
+ q = console.log, N = console.info, te = console.warn, X = console.error, D = console.group, C = console.groupCollapsed, Z = console.groupEnd;
234
234
  var K = {
235
235
  configurable: !0,
236
236
  enumerable: !0,
@@ -250,7 +250,7 @@ function b3() {
250
250
  $++;
251
251
  }
252
252
  }
253
- function q() {
253
+ function z() {
254
254
  {
255
255
  if ($--, $ === 0) {
256
256
  var K = {
@@ -260,7 +260,7 @@ function b3() {
260
260
  };
261
261
  Object.defineProperties(console, {
262
262
  log: I({}, K, {
263
- value: z
263
+ value: q
264
264
  }),
265
265
  info: I({}, K, {
266
266
  value: N
@@ -275,10 +275,10 @@ function b3() {
275
275
  value: D
276
276
  }),
277
277
  groupCollapsed: I({}, K, {
278
- value: _
278
+ value: C
279
279
  }),
280
280
  groupEnd: I({}, K, {
281
- value: Q
281
+ value: Z
282
282
  })
283
283
  });
284
284
  }
@@ -370,7 +370,7 @@ function b3() {
370
370
  }
371
371
  }
372
372
  } finally {
373
- Y = !1, U.current = Ot, q(), Error.prepareStackTrace = yt;
373
+ Y = !1, U.current = Ot, z(), Error.prepareStackTrace = yt;
374
374
  }
375
375
  var Qa = K ? K.displayName || K.name : "", m0 = Qa ? se(Qa) : "";
376
376
  return typeof K == "function" && ee.set(K, m0), m0;
@@ -467,7 +467,7 @@ function b3() {
467
467
  ref: !0,
468
468
  __self: !0,
469
469
  __source: !0
470
- }, Z, de, xe;
470
+ }, Q, de, xe;
471
471
  xe = {};
472
472
  function Me(K) {
473
473
  if (ue.call(K, "ref")) {
@@ -494,7 +494,7 @@ function b3() {
494
494
  function gt(K, ye) {
495
495
  {
496
496
  var ke = function() {
497
- Z || (Z = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ye));
497
+ Q || (Q = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ye));
498
498
  };
499
499
  ke.isReactWarning = !0, Object.defineProperty(K, "key", {
500
500
  get: ke,
@@ -1145,6 +1145,7 @@ const Aa = {
1145
1145
  member_deleted: "Deleted user",
1146
1146
  member_profile: "Update profile",
1147
1147
  member_createdAt_community: "{time} ago in <link>{community}</link>",
1148
+ member_createdNow_community: "now in <link>{community}</link>",
1148
1149
  membersList: "Members",
1149
1150
  membersList_admin: "Admin",
1150
1151
  membersList_profile: "Update profile",
@@ -3173,7 +3174,7 @@ const Xi = ({
3173
3174
  connection: c,
3174
3175
  ...d
3175
3176
  }) => {
3176
- var z, N, te, X, D;
3177
+ var q, N, te, X, D, C;
3177
3178
  const f = be(), { profile: p, connections: g, ...m } = a, {
3178
3179
  size: y = "medium",
3179
3180
  variant: v = "inline",
@@ -3203,18 +3204,18 @@ const Xi = ({
3203
3204
  gtmType: o,
3204
3205
  gtmContext: s,
3205
3206
  meta: { forceOnClick: !0 },
3206
- onClick: (_) => {
3207
- if (_ == null || _.preventDefault(), _ == null || _.stopPropagation(), !P) {
3207
+ onClick: (Z) => {
3208
+ if (Z == null || Z.preventDefault(), Z == null || Z.stopPropagation(), !P) {
3208
3209
  $ && A(!0);
3209
3210
  return;
3210
3211
  }
3211
3212
  Zl && clearTimeout(Zl), Zl = setTimeout(() => {
3212
3213
  window.location.href = P;
3213
3214
  }, 150);
3214
- const Q = new CustomEvent(rn.MEMBER_CLICKED, {
3215
+ const B = new CustomEvent(rn.MEMBER_CLICKED, {
3215
3216
  detail: { link: P, timeout: Zl }
3216
3217
  });
3217
- document.dispatchEvent(Q);
3218
+ document.dispatchEvent(B);
3218
3219
  },
3219
3220
  children: [
3220
3221
  /* @__PURE__ */ h.jsx(ra, { name: R, src: L, alt: n }),
@@ -3234,7 +3235,7 @@ const Xi = ({
3234
3235
  "new-line": b
3235
3236
  }),
3236
3237
  children: [
3237
- r.createdAt && S && !((z = r == null ? void 0 : r.customMessage) != null && z.text) && /* @__PURE__ */ h.jsx(
3238
+ r.createdAt && S && !((q = r == null ? void 0 : r.customMessage) != null && q.text) && /* @__PURE__ */ h.jsx(
3238
3239
  "span",
3239
3240
  {
3240
3241
  className: "date",
@@ -3249,22 +3250,22 @@ const Xi = ({
3249
3250
  ),
3250
3251
  r.createdAt && S && ((N = r == null ? void 0 : r.customMessage) == null ? void 0 : N.text) && /* @__PURE__ */ h.jsx("span", { children: f.formatMessage(
3251
3252
  {
3252
- id: (te = r.customMessage) == null ? void 0 : te.text
3253
+ id: S.path === "now" ? (te = r.customMessage) == null ? void 0 : te.nowText : (X = r.customMessage) == null ? void 0 : X.text
3253
3254
  },
3254
3255
  {
3255
3256
  time: f.formatMessage(
3256
3257
  { id: `dates_${S.path}` },
3257
3258
  { number: S.number }
3258
3259
  ),
3259
- community: (D = (X = r.customMessage) == null ? void 0 : X.link) == null ? void 0 : D.text,
3260
- link: (_) => {
3261
- var Q, B;
3260
+ community: (C = (D = r.customMessage) == null ? void 0 : D.link) == null ? void 0 : C.text,
3261
+ link: (Z) => {
3262
+ var B, H;
3262
3263
  return /* @__PURE__ */ h.jsx(
3263
3264
  "a",
3264
3265
  {
3265
- href: `${(B = (Q = r.customMessage) == null ? void 0 : Q.link) == null ? void 0 : B.url}`,
3266
- onClick: (H) => H.stopPropagation(),
3267
- children: _
3266
+ href: `${(H = (B = r.customMessage) == null ? void 0 : B.link) == null ? void 0 : H.url}`,
3267
+ onClick: (z) => z.stopPropagation(),
3268
+ children: Z
3268
3269
  }
3269
3270
  );
3270
3271
  }
@@ -3300,8 +3301,8 @@ const Xi = ({
3300
3301
  {
3301
3302
  variant: "tertiary",
3302
3303
  size: "small",
3303
- onClick: (_) => {
3304
- _.preventDefault(), _.stopPropagation(), A(!0);
3304
+ onClick: (Z) => {
3305
+ Z.preventDefault(), Z.stopPropagation(), A(!0);
3305
3306
  },
3306
3307
  "data-testid": "profile-button",
3307
3308
  children: f.formatMessage({ id: "member_profile" })
@@ -3531,17 +3532,17 @@ function M7() {
3531
3532
  }
3532
3533
  }
3533
3534
  }
3534
- var T = l, w = u, A = o, F = s, R = t, L = c, P = r, O = g, S = p, I = n, $ = a, z = i, N = d, te = !1;
3535
+ var T = l, w = u, A = o, F = s, R = t, L = c, P = r, O = g, S = p, I = n, $ = a, q = i, N = d, te = !1;
3535
3536
  function X(re) {
3536
3537
  return te || (te = !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(re) || x(re) === l;
3537
3538
  }
3538
3539
  function D(re) {
3539
3540
  return x(re) === u;
3540
3541
  }
3541
- function _(re) {
3542
+ function C(re) {
3542
3543
  return x(re) === o;
3543
3544
  }
3544
- function Q(re) {
3545
+ function Z(re) {
3545
3546
  return x(re) === s;
3546
3547
  }
3547
3548
  function B(re) {
@@ -3550,7 +3551,7 @@ function M7() {
3550
3551
  function H(re) {
3551
3552
  return x(re) === c;
3552
3553
  }
3553
- function q(re) {
3554
+ function z(re) {
3554
3555
  return x(re) === r;
3555
3556
  }
3556
3557
  function U(re) {
@@ -3571,7 +3572,7 @@ function M7() {
3571
3572
  function ae(re) {
3572
3573
  return x(re) === d;
3573
3574
  }
3574
- Ct.AsyncMode = T, Ct.ConcurrentMode = w, Ct.ContextConsumer = A, Ct.ContextProvider = F, Ct.Element = R, Ct.ForwardRef = L, Ct.Fragment = P, Ct.Lazy = O, Ct.Memo = S, Ct.Portal = I, Ct.Profiler = $, Ct.StrictMode = z, Ct.Suspense = N, Ct.isAsyncMode = X, Ct.isConcurrentMode = D, Ct.isContextConsumer = _, Ct.isContextProvider = Q, Ct.isElement = B, Ct.isForwardRef = H, Ct.isFragment = q, Ct.isLazy = U, Ct.isMemo = j, Ct.isPortal = se, Ct.isProfiler = Y, Ct.isStrictMode = ee, Ct.isSuspense = ae, Ct.isValidElementType = b, Ct.typeOf = x;
3575
+ Ct.AsyncMode = T, Ct.ConcurrentMode = w, Ct.ContextConsumer = A, Ct.ContextProvider = F, Ct.Element = R, Ct.ForwardRef = L, Ct.Fragment = P, Ct.Lazy = O, Ct.Memo = S, Ct.Portal = I, Ct.Profiler = $, Ct.StrictMode = q, Ct.Suspense = N, Ct.isAsyncMode = X, Ct.isConcurrentMode = D, Ct.isContextConsumer = C, Ct.isContextProvider = Z, Ct.isElement = B, Ct.isForwardRef = H, Ct.isFragment = z, Ct.isLazy = U, Ct.isMemo = j, Ct.isPortal = se, Ct.isProfiler = Y, Ct.isStrictMode = ee, Ct.isSuspense = ae, Ct.isValidElementType = b, Ct.typeOf = x;
3575
3576
  }()), Ct;
3576
3577
  }
3577
3578
  var M0;
@@ -3713,9 +3714,9 @@ function j7() {
3713
3714
  return Q1 = function(o, l) {
3714
3715
  var u = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator";
3715
3716
  function d(D) {
3716
- var _ = D && (u && D[u] || D[c]);
3717
- if (typeof _ == "function")
3718
- return _;
3717
+ var C = D && (u && D[u] || D[c]);
3718
+ if (typeof C == "function")
3719
+ return C;
3719
3720
  }
3720
3721
  var f = "<<anonymous>>", p = {
3721
3722
  array: v("array"),
@@ -3738,17 +3739,17 @@ function j7() {
3738
3739
  shape: O,
3739
3740
  exact: S
3740
3741
  };
3741
- function g(D, _) {
3742
- return D === _ ? D !== 0 || 1 / D === 1 / _ : D !== D && _ !== _;
3742
+ function g(D, C) {
3743
+ return D === C ? D !== 0 || 1 / D === 1 / C : D !== D && C !== C;
3743
3744
  }
3744
- function m(D, _) {
3745
- this.message = D, this.data = _ && typeof _ == "object" ? _ : {}, this.stack = "";
3745
+ function m(D, C) {
3746
+ this.message = D, this.data = C && typeof C == "object" ? C : {}, this.stack = "";
3746
3747
  }
3747
3748
  m.prototype = Error.prototype;
3748
3749
  function y(D) {
3749
3750
  if (process.env.NODE_ENV !== "production")
3750
- var _ = {}, Q = 0;
3751
- function B(q, U, j, se, Y, ee, ae) {
3751
+ var C = {}, Z = 0;
3752
+ function B(z, U, j, se, Y, ee, ae) {
3752
3753
  if (se = se || f, ee = ee || j, ae !== n) {
3753
3754
  if (l) {
3754
3755
  var re = new Error(
@@ -3757,131 +3758,131 @@ function j7() {
3757
3758
  throw re.name = "Invariant Violation", re;
3758
3759
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
3759
3760
  var Ae = se + ":" + j;
3760
- !_[Ae] && // Avoid spamming the console because they are often not actionable except for lib authors
3761
- Q < 3 && (a(
3761
+ !C[Ae] && // Avoid spamming the console because they are often not actionable except for lib authors
3762
+ Z < 3 && (a(
3762
3763
  "You are manually calling a React.PropTypes validation function for the `" + ee + "` prop on `" + se + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
3763
- ), _[Ae] = !0, Q++);
3764
+ ), C[Ae] = !0, Z++);
3764
3765
  }
3765
3766
  }
3766
- return U[j] == null ? q ? U[j] === null ? new m("The " + Y + " `" + ee + "` is marked as required " + ("in `" + se + "`, but its value is `null`.")) : new m("The " + Y + " `" + ee + "` is marked as required in " + ("`" + se + "`, but its value is `undefined`.")) : null : D(U, j, se, Y, ee);
3767
+ return U[j] == null ? z ? U[j] === null ? new m("The " + Y + " `" + ee + "` is marked as required " + ("in `" + se + "`, but its value is `null`.")) : new m("The " + Y + " `" + ee + "` is marked as required in " + ("`" + se + "`, but its value is `undefined`.")) : null : D(U, j, se, Y, ee);
3767
3768
  }
3768
3769
  var H = B.bind(null, !1);
3769
3770
  return H.isRequired = B.bind(null, !0), H;
3770
3771
  }
3771
3772
  function v(D) {
3772
- function _(Q, B, H, q, U, j) {
3773
- var se = Q[B], Y = z(se);
3773
+ function C(Z, B, H, z, U, j) {
3774
+ var se = Z[B], Y = q(se);
3774
3775
  if (Y !== D) {
3775
3776
  var ee = N(se);
3776
3777
  return new m(
3777
- "Invalid " + q + " `" + U + "` of type " + ("`" + ee + "` supplied to `" + H + "`, expected ") + ("`" + D + "`."),
3778
+ "Invalid " + z + " `" + U + "` of type " + ("`" + ee + "` supplied to `" + H + "`, expected ") + ("`" + D + "`."),
3778
3779
  { expectedType: D }
3779
3780
  );
3780
3781
  }
3781
3782
  return null;
3782
3783
  }
3783
- return y(_);
3784
+ return y(C);
3784
3785
  }
3785
3786
  function E() {
3786
3787
  return y(s);
3787
3788
  }
3788
3789
  function b(D) {
3789
- function _(Q, B, H, q, U) {
3790
+ function C(Z, B, H, z, U) {
3790
3791
  if (typeof D != "function")
3791
3792
  return new m("Property `" + U + "` of component `" + H + "` has invalid PropType notation inside arrayOf.");
3792
- var j = Q[B];
3793
+ var j = Z[B];
3793
3794
  if (!Array.isArray(j)) {
3794
- var se = z(j);
3795
- return new m("Invalid " + q + " `" + U + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected an array."));
3795
+ var se = q(j);
3796
+ return new m("Invalid " + z + " `" + U + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected an array."));
3796
3797
  }
3797
3798
  for (var Y = 0; Y < j.length; Y++) {
3798
- var ee = D(j, Y, H, q, U + "[" + Y + "]", n);
3799
+ var ee = D(j, Y, H, z, U + "[" + Y + "]", n);
3799
3800
  if (ee instanceof Error)
3800
3801
  return ee;
3801
3802
  }
3802
3803
  return null;
3803
3804
  }
3804
- return y(_);
3805
+ return y(C);
3805
3806
  }
3806
3807
  function x() {
3807
- function D(_, Q, B, H, q) {
3808
- var U = _[Q];
3808
+ function D(C, Z, B, H, z) {
3809
+ var U = C[Z];
3809
3810
  if (!o(U)) {
3810
- var j = z(U);
3811
- return new m("Invalid " + H + " `" + q + "` of type " + ("`" + j + "` supplied to `" + B + "`, expected a single ReactElement."));
3811
+ var j = q(U);
3812
+ return new m("Invalid " + H + " `" + z + "` of type " + ("`" + j + "` supplied to `" + B + "`, expected a single ReactElement."));
3812
3813
  }
3813
3814
  return null;
3814
3815
  }
3815
3816
  return y(D);
3816
3817
  }
3817
3818
  function T() {
3818
- function D(_, Q, B, H, q) {
3819
- var U = _[Q];
3819
+ function D(C, Z, B, H, z) {
3820
+ var U = C[Z];
3820
3821
  if (!e.isValidElementType(U)) {
3821
- var j = z(U);
3822
- return new m("Invalid " + H + " `" + q + "` of type " + ("`" + j + "` supplied to `" + B + "`, expected a single ReactElement type."));
3822
+ var j = q(U);
3823
+ return new m("Invalid " + H + " `" + z + "` of type " + ("`" + j + "` supplied to `" + B + "`, expected a single ReactElement type."));
3823
3824
  }
3824
3825
  return null;
3825
3826
  }
3826
3827
  return y(D);
3827
3828
  }
3828
3829
  function w(D) {
3829
- function _(Q, B, H, q, U) {
3830
- if (!(Q[B] instanceof D)) {
3831
- var j = D.name || f, se = X(Q[B]);
3832
- return new m("Invalid " + q + " `" + U + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected ") + ("instance of `" + j + "`."));
3830
+ function C(Z, B, H, z, U) {
3831
+ if (!(Z[B] instanceof D)) {
3832
+ var j = D.name || f, se = X(Z[B]);
3833
+ return new m("Invalid " + z + " `" + U + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected ") + ("instance of `" + j + "`."));
3833
3834
  }
3834
3835
  return null;
3835
3836
  }
3836
- return y(_);
3837
+ return y(C);
3837
3838
  }
3838
3839
  function A(D) {
3839
3840
  if (!Array.isArray(D))
3840
3841
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
3841
3842
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
3842
3843
  ) : a("Invalid argument supplied to oneOf, expected an array.")), s;
3843
- function _(Q, B, H, q, U) {
3844
- for (var j = Q[B], se = 0; se < D.length; se++)
3844
+ function C(Z, B, H, z, U) {
3845
+ for (var j = Z[B], se = 0; se < D.length; se++)
3845
3846
  if (g(j, D[se]))
3846
3847
  return null;
3847
3848
  var Y = JSON.stringify(D, function(ae, re) {
3848
3849
  var Ae = N(re);
3849
3850
  return Ae === "symbol" ? String(re) : re;
3850
3851
  });
3851
- return new m("Invalid " + q + " `" + U + "` of value `" + String(j) + "` " + ("supplied to `" + H + "`, expected one of " + Y + "."));
3852
+ return new m("Invalid " + z + " `" + U + "` of value `" + String(j) + "` " + ("supplied to `" + H + "`, expected one of " + Y + "."));
3852
3853
  }
3853
- return y(_);
3854
+ return y(C);
3854
3855
  }
3855
3856
  function F(D) {
3856
- function _(Q, B, H, q, U) {
3857
+ function C(Z, B, H, z, U) {
3857
3858
  if (typeof D != "function")
3858
3859
  return new m("Property `" + U + "` of component `" + H + "` has invalid PropType notation inside objectOf.");
3859
- var j = Q[B], se = z(j);
3860
+ var j = Z[B], se = q(j);
3860
3861
  if (se !== "object")
3861
- return new m("Invalid " + q + " `" + U + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected an object."));
3862
+ return new m("Invalid " + z + " `" + U + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected an object."));
3862
3863
  for (var Y in j)
3863
3864
  if (r(j, Y)) {
3864
- var ee = D(j, Y, H, q, U + "." + Y, n);
3865
+ var ee = D(j, Y, H, z, U + "." + Y, n);
3865
3866
  if (ee instanceof Error)
3866
3867
  return ee;
3867
3868
  }
3868
3869
  return null;
3869
3870
  }
3870
- return y(_);
3871
+ return y(C);
3871
3872
  }
3872
3873
  function R(D) {
3873
3874
  if (!Array.isArray(D))
3874
3875
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
3875
- for (var _ = 0; _ < D.length; _++) {
3876
- var Q = D[_];
3877
- if (typeof Q != "function")
3876
+ for (var C = 0; C < D.length; C++) {
3877
+ var Z = D[C];
3878
+ if (typeof Z != "function")
3878
3879
  return a(
3879
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(Q) + " at index " + _ + "."
3880
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(Z) + " at index " + C + "."
3880
3881
  ), s;
3881
3882
  }
3882
- function B(H, q, U, j, se) {
3883
+ function B(H, z, U, j, se) {
3883
3884
  for (var Y = [], ee = 0; ee < D.length; ee++) {
3884
- var ae = D[ee], re = ae(H, q, U, j, se, n);
3885
+ var ae = D[ee], re = ae(H, z, U, j, se, n);
3885
3886
  if (re == null)
3886
3887
  return null;
3887
3888
  re.data && r(re.data, "expectedType") && Y.push(re.data.expectedType);
@@ -3892,55 +3893,55 @@ function j7() {
3892
3893
  return y(B);
3893
3894
  }
3894
3895
  function L() {
3895
- function D(_, Q, B, H, q) {
3896
- return I(_[Q]) ? null : new m("Invalid " + H + " `" + q + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
3896
+ function D(C, Z, B, H, z) {
3897
+ return I(C[Z]) ? null : new m("Invalid " + H + " `" + z + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
3897
3898
  }
3898
3899
  return y(D);
3899
3900
  }
3900
- function P(D, _, Q, B, H) {
3901
+ function P(D, C, Z, B, H) {
3901
3902
  return new m(
3902
- (D || "React class") + ": " + _ + " type `" + Q + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + H + "`."
3903
+ (D || "React class") + ": " + C + " type `" + Z + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + H + "`."
3903
3904
  );
3904
3905
  }
3905
3906
  function O(D) {
3906
- function _(Q, B, H, q, U) {
3907
- var j = Q[B], se = z(j);
3907
+ function C(Z, B, H, z, U) {
3908
+ var j = Z[B], se = q(j);
3908
3909
  if (se !== "object")
3909
- return new m("Invalid " + q + " `" + U + "` of type `" + se + "` " + ("supplied to `" + H + "`, expected `object`."));
3910
+ return new m("Invalid " + z + " `" + U + "` of type `" + se + "` " + ("supplied to `" + H + "`, expected `object`."));
3910
3911
  for (var Y in D) {
3911
3912
  var ee = D[Y];
3912
3913
  if (typeof ee != "function")
3913
- return P(H, q, U, Y, N(ee));
3914
- var ae = ee(j, Y, H, q, U + "." + Y, n);
3914
+ return P(H, z, U, Y, N(ee));
3915
+ var ae = ee(j, Y, H, z, U + "." + Y, n);
3915
3916
  if (ae)
3916
3917
  return ae;
3917
3918
  }
3918
3919
  return null;
3919
3920
  }
3920
- return y(_);
3921
+ return y(C);
3921
3922
  }
3922
3923
  function S(D) {
3923
- function _(Q, B, H, q, U) {
3924
- var j = Q[B], se = z(j);
3924
+ function C(Z, B, H, z, U) {
3925
+ var j = Z[B], se = q(j);
3925
3926
  if (se !== "object")
3926
- return new m("Invalid " + q + " `" + U + "` of type `" + se + "` " + ("supplied to `" + H + "`, expected `object`."));
3927
- var Y = t({}, Q[B], D);
3927
+ return new m("Invalid " + z + " `" + U + "` of type `" + se + "` " + ("supplied to `" + H + "`, expected `object`."));
3928
+ var Y = t({}, Z[B], D);
3928
3929
  for (var ee in Y) {
3929
3930
  var ae = D[ee];
3930
3931
  if (r(D, ee) && typeof ae != "function")
3931
- return P(H, q, U, ee, N(ae));
3932
+ return P(H, z, U, ee, N(ae));
3932
3933
  if (!ae)
3933
3934
  return new m(
3934
- "Invalid " + q + " `" + U + "` key `" + ee + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(Q[B], null, " ") + `
3935
+ "Invalid " + z + " `" + U + "` key `" + ee + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(Z[B], null, " ") + `
3935
3936
  Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
3936
3937
  );
3937
- var re = ae(j, ee, H, q, U + "." + ee, n);
3938
+ var re = ae(j, ee, H, z, U + "." + ee, n);
3938
3939
  if (re)
3939
3940
  return re;
3940
3941
  }
3941
3942
  return null;
3942
3943
  }
3943
- return y(_);
3944
+ return y(C);
3944
3945
  }
3945
3946
  function I(D) {
3946
3947
  switch (typeof D) {
@@ -3955,15 +3956,15 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
3955
3956
  return D.every(I);
3956
3957
  if (D === null || o(D))
3957
3958
  return !0;
3958
- var _ = d(D);
3959
- if (_) {
3960
- var Q = _.call(D), B;
3961
- if (_ !== D.entries) {
3962
- for (; !(B = Q.next()).done; )
3959
+ var C = d(D);
3960
+ if (C) {
3961
+ var Z = C.call(D), B;
3962
+ if (C !== D.entries) {
3963
+ for (; !(B = Z.next()).done; )
3963
3964
  if (!I(B.value))
3964
3965
  return !1;
3965
3966
  } else
3966
- for (; !(B = Q.next()).done; ) {
3967
+ for (; !(B = Z.next()).done; ) {
3967
3968
  var H = B.value;
3968
3969
  if (H && !I(H[1]))
3969
3970
  return !1;
@@ -3975,37 +3976,37 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
3975
3976
  return !1;
3976
3977
  }
3977
3978
  }
3978
- function $(D, _) {
3979
- return D === "symbol" ? !0 : _ ? _["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && _ instanceof Symbol : !1;
3979
+ function $(D, C) {
3980
+ return D === "symbol" ? !0 : C ? C["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && C instanceof Symbol : !1;
3980
3981
  }
3981
- function z(D) {
3982
- var _ = typeof D;
3983
- return Array.isArray(D) ? "array" : D instanceof RegExp ? "object" : $(_, D) ? "symbol" : _;
3982
+ function q(D) {
3983
+ var C = typeof D;
3984
+ return Array.isArray(D) ? "array" : D instanceof RegExp ? "object" : $(C, D) ? "symbol" : C;
3984
3985
  }
3985
3986
  function N(D) {
3986
3987
  if (typeof D > "u" || D === null)
3987
3988
  return "" + D;
3988
- var _ = z(D);
3989
- if (_ === "object") {
3989
+ var C = q(D);
3990
+ if (C === "object") {
3990
3991
  if (D instanceof Date)
3991
3992
  return "date";
3992
3993
  if (D instanceof RegExp)
3993
3994
  return "regexp";
3994
3995
  }
3995
- return _;
3996
+ return C;
3996
3997
  }
3997
3998
  function te(D) {
3998
- var _ = N(D);
3999
- switch (_) {
3999
+ var C = N(D);
4000
+ switch (C) {
4000
4001
  case "array":
4001
4002
  case "object":
4002
- return "an " + _;
4003
+ return "an " + C;
4003
4004
  case "boolean":
4004
4005
  case "date":
4005
4006
  case "regexp":
4006
- return "a " + _;
4007
+ return "a " + C;
4007
4008
  default:
4008
- return _;
4009
+ return C;
4009
4010
  }
4010
4011
  }
4011
4012
  function X(D) {
@@ -4405,20 +4406,20 @@ var K0 = {
4405
4406
  }, u = function(O, S) {
4406
4407
  var I = typeof (S == null ? void 0 : S.composedPath) == "function" ? S.composedPath() : void 0;
4407
4408
  return s.containerGroups.findIndex(function($) {
4408
- var z = $.container, N = $.tabbableNodes;
4409
- return z.contains(O) || // fall back to explicit tabbable search which will take into consideration any
4409
+ var q = $.container, N = $.tabbableNodes;
4410
+ return q.contains(O) || // fall back to explicit tabbable search which will take into consideration any
4410
4411
  // web components if the `tabbableOptions.getShadowRoot` option was used for
4411
4412
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
4412
4413
  // look inside web components even if open)
4413
- (I == null ? void 0 : I.includes(z)) || N.find(function(te) {
4414
+ (I == null ? void 0 : I.includes(q)) || N.find(function(te) {
4414
4415
  return te === O;
4415
4416
  });
4416
4417
  });
4417
4418
  }, c = function(O) {
4418
4419
  var S = a[O];
4419
4420
  if (typeof S == "function") {
4420
- for (var I = arguments.length, $ = new Array(I > 1 ? I - 1 : 0), z = 1; z < I; z++)
4421
- $[z - 1] = arguments[z];
4421
+ for (var I = arguments.length, $ = new Array(I > 1 ? I - 1 : 0), q = 1; q < I; q++)
4422
+ $[q - 1] = arguments[q];
4422
4423
  S = S.apply(void 0, $);
4423
4424
  }
4424
4425
  if (S === !0 && (S = void 0), !S) {
@@ -4446,7 +4447,7 @@ var K0 = {
4446
4447
  return O;
4447
4448
  }, f = function() {
4448
4449
  if (s.containerGroups = s.containers.map(function(O) {
4449
- var S = g4(O, a.tabbableOptions), I = v4(O, a.tabbableOptions), $ = S.length > 0 ? S[0] : void 0, z = S.length > 0 ? S[S.length - 1] : void 0, N = I.find(function(D) {
4450
+ var S = g4(O, a.tabbableOptions), I = v4(O, a.tabbableOptions), $ = S.length > 0 ? S[0] : void 0, q = S.length > 0 ? S[S.length - 1] : void 0, N = I.find(function(D) {
4450
4451
  return _a(D);
4451
4452
  }), te = I.slice().reverse().find(function(D) {
4452
4453
  return _a(D);
@@ -4462,7 +4463,7 @@ var K0 = {
4462
4463
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
4463
4464
  firstTabbableNode: $,
4464
4465
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
4465
- lastTabbableNode: z,
4466
+ lastTabbableNode: q,
4466
4467
  // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
4467
4468
  // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
4468
4469
  // because that API doesn't work with Shadow DOM as well as it should (@see
@@ -4482,13 +4483,13 @@ var K0 = {
4482
4483
  * in reverse.
4483
4484
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
4484
4485
  */
4485
- nextTabbableNode: function(_) {
4486
- var Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, B = S.indexOf(_);
4487
- return B < 0 ? Q ? I.slice(I.indexOf(_) + 1).find(function(H) {
4486
+ nextTabbableNode: function(C) {
4487
+ var Z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, B = S.indexOf(C);
4488
+ return B < 0 ? Z ? I.slice(I.indexOf(C) + 1).find(function(H) {
4488
4489
  return _a(H);
4489
- }) : I.slice(0, I.indexOf(_)).reverse().find(function(H) {
4490
+ }) : I.slice(0, I.indexOf(C)).reverse().find(function(H) {
4490
4491
  return _a(H);
4491
- }) : S[B + (Q ? 1 : -1)];
4492
+ }) : S[B + (Z ? 1 : -1)];
4492
4493
  }
4493
4494
  };
4494
4495
  }), s.tabbableGroups = s.containerGroups.filter(function(O) {
@@ -4517,21 +4518,21 @@ var K0 = {
4517
4518
  var S = c("setReturnFocus", O);
4518
4519
  return S || (S === !1 ? !1 : O);
4519
4520
  }, y = function(O) {
4520
- var S = O.target, I = O.event, $ = O.isBackward, z = $ === void 0 ? !1 : $;
4521
+ var S = O.target, I = O.event, $ = O.isBackward, q = $ === void 0 ? !1 : $;
4521
4522
  S = S || Xl(I), f();
4522
4523
  var N = null;
4523
4524
  if (s.tabbableGroups.length > 0) {
4524
4525
  var te = u(S, I), X = te >= 0 ? s.containerGroups[te] : void 0;
4525
4526
  if (te < 0)
4526
- z ? N = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : N = s.tabbableGroups[0].firstTabbableNode;
4527
- else if (z) {
4527
+ q ? N = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : N = s.tabbableGroups[0].firstTabbableNode;
4528
+ else if (q) {
4528
4529
  var D = Y0(s.tabbableGroups, function(U) {
4529
4530
  var j = U.firstTabbableNode;
4530
4531
  return S === j;
4531
4532
  });
4532
4533
  if (D < 0 && (X.container === S || rc(S, a.tabbableOptions) && !_a(S, a.tabbableOptions) && !X.nextTabbableNode(S, !1)) && (D = te), D >= 0) {
4533
- var _ = D === 0 ? s.tabbableGroups.length - 1 : D - 1, Q = s.tabbableGroups[_];
4534
- N = Ki(S) >= 0 ? Q.lastTabbableNode : Q.lastDomTabbableNode;
4534
+ var C = D === 0 ? s.tabbableGroups.length - 1 : D - 1, Z = s.tabbableGroups[C];
4535
+ N = Ki(S) >= 0 ? Z.lastTabbableNode : Z.lastDomTabbableNode;
4535
4536
  } else
4536
4537
  jo(I) || (N = X.nextTabbableNode(S, !1));
4537
4538
  } else {
@@ -4540,8 +4541,8 @@ var K0 = {
4540
4541
  return S === j;
4541
4542
  });
4542
4543
  if (B < 0 && (X.container === S || rc(S, a.tabbableOptions) && !_a(S, a.tabbableOptions) && !X.nextTabbableNode(S)) && (B = te), B >= 0) {
4543
- var H = B === s.tabbableGroups.length - 1 ? 0 : B + 1, q = s.tabbableGroups[H];
4544
- N = Ki(S) >= 0 ? q.firstTabbableNode : q.firstDomTabbableNode;
4544
+ var H = B === s.tabbableGroups.length - 1 ? 0 : B + 1, z = s.tabbableGroups[H];
4545
+ N = Ki(S) >= 0 ? z.firstTabbableNode : z.firstDomTabbableNode;
4545
4546
  } else
4546
4547
  jo(I) || (N = X.nextTabbableNode(S));
4547
4548
  }
@@ -4571,7 +4572,7 @@ var K0 = {
4571
4572
  I && (s.mostRecentlyFocusedNode = S);
4572
4573
  else {
4573
4574
  O.stopImmediatePropagation();
4574
- var $, z = !0;
4575
+ var $, q = !0;
4575
4576
  if (s.mostRecentlyFocusedNode)
4576
4577
  if (Ki(s.mostRecentlyFocusedNode) > 0) {
4577
4578
  var N = u(s.mostRecentlyFocusedNode), te = s.containerGroups[N].tabbableNodes;
@@ -4579,17 +4580,17 @@ var K0 = {
4579
4580
  var X = te.findIndex(function(D) {
4580
4581
  return D === s.mostRecentlyFocusedNode;
4581
4582
  });
4582
- X >= 0 && (a.isKeyForward(s.recentNavEvent) ? X + 1 < te.length && ($ = te[X + 1], z = !1) : X - 1 >= 0 && ($ = te[X - 1], z = !1));
4583
+ X >= 0 && (a.isKeyForward(s.recentNavEvent) ? X + 1 < te.length && ($ = te[X + 1], q = !1) : X - 1 >= 0 && ($ = te[X - 1], q = !1));
4583
4584
  }
4584
4585
  } else
4585
4586
  s.containerGroups.some(function(D) {
4586
- return D.tabbableNodes.some(function(_) {
4587
- return Ki(_) > 0;
4587
+ return D.tabbableNodes.some(function(C) {
4588
+ return Ki(C) > 0;
4588
4589
  });
4589
- }) || (z = !1);
4590
+ }) || (q = !1);
4590
4591
  else
4591
- z = !1;
4592
- z && ($ = y({
4592
+ q = !1;
4593
+ q && ($ = y({
4593
4594
  // move FROM the MRU node, not event-related node (which will be the node that is
4594
4595
  // outside the trap causing the focus escape we're trying to fix)
4595
4596
  target: s.mostRecentlyFocusedNode,
@@ -4637,8 +4638,8 @@ var K0 = {
4637
4638
  }, F = function(O) {
4638
4639
  var S = O.some(function(I) {
4639
4640
  var $ = Array.from(I.removedNodes);
4640
- return $.some(function(z) {
4641
- return z === s.mostRecentlyFocusedNode;
4641
+ return $.some(function(q) {
4642
+ return q === s.mostRecentlyFocusedNode;
4642
4643
  });
4643
4644
  });
4644
4645
  S && g(d());
@@ -4662,10 +4663,10 @@ var K0 = {
4662
4663
  return this;
4663
4664
  var S = l(O, "onActivate"), I = l(O, "onPostActivate"), $ = l(O, "checkCanFocusTrap");
4664
4665
  $ || f(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = r.activeElement, S == null || S();
4665
- var z = function() {
4666
+ var q = function() {
4666
4667
  $ && f(), w(), L(), I == null || I();
4667
4668
  };
4668
- return $ ? ($(s.containers.concat()).then(z, z), this) : (z(), this);
4669
+ return $ ? ($(s.containers.concat()).then(q, q), this) : (q(), this);
4669
4670
  },
4670
4671
  deactivate: function(O) {
4671
4672
  if (!s.active)
@@ -4676,14 +4677,14 @@ var K0 = {
4676
4677
  checkCanReturnFocus: a.checkCanReturnFocus
4677
4678
  }, O);
4678
4679
  clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, A(), s.active = !1, s.paused = !1, L(), K0.deactivateTrap(i, o);
4679
- var I = l(S, "onDeactivate"), $ = l(S, "onPostDeactivate"), z = l(S, "checkCanReturnFocus"), N = l(S, "returnFocus", "returnFocusOnDeactivate");
4680
+ var I = l(S, "onDeactivate"), $ = l(S, "onPostDeactivate"), q = l(S, "checkCanReturnFocus"), N = l(S, "returnFocus", "returnFocusOnDeactivate");
4680
4681
  I == null || I();
4681
4682
  var te = function() {
4682
4683
  G0(function() {
4683
4684
  N && g(m(s.nodeFocusedBeforeActivation)), $ == null || $();
4684
4685
  });
4685
4686
  };
4686
- return N && z ? (z(m(s.nodeFocusedBeforeActivation)).then(te, te), this) : (te(), this);
4687
+ return N && q ? (q(m(s.nodeFocusedBeforeActivation)).then(te, te), this) : (te(), this);
4687
4688
  },
4688
4689
  pause: function(O) {
4689
4690
  if (s.paused || !s.active)
@@ -5593,7 +5594,9 @@ const $x = (e, t) => {
5593
5594
  author: Il(n),
5594
5595
  body: a,
5595
5596
  type: i,
5596
- createdAt: s,
5597
+ // getstream returns UTC but doesn't include the Z needed to parse it correctly
5598
+ // https://getstream.io/activity-feeds/docs/node/adding_activities/#adding-activities-basic
5599
+ createdAt: s + "Z",
5597
5600
  slug: o,
5598
5601
  slugs: {},
5599
5602
  userLiked: y,
@@ -6112,11 +6115,11 @@ const t6 = ({
6112
6115
  S.preventDefault(), S.stopPropagation(), O(), y([{ type: "showLikers", value: !0 }]);
6113
6116
  const I = ($ = S.currentTarget.nextSibling) == null ? void 0 : $.childNodes[0];
6114
6117
  if (I) {
6115
- const z = I.querySelector(
6118
+ const q = I.querySelector(
6116
6119
  "li:first-child a"
6117
6120
  );
6118
- z && (y([{ type: "tabbableLink", value: 0 }]), setTimeout(() => {
6119
- z.focus();
6121
+ q && (y([{ type: "tabbableLink", value: 0 }]), setTimeout(() => {
6122
+ q.focus();
6120
6123
  }, 100));
6121
6124
  }
6122
6125
  },
@@ -6529,7 +6532,7 @@ const Fie = ({
6529
6532
  pin: S,
6530
6533
  unpin: I,
6531
6534
  createPoll: $,
6532
- createVote: z,
6535
+ createVote: q,
6533
6536
  removeVote: N,
6534
6537
  removePoll: te
6535
6538
  }
@@ -6541,8 +6544,8 @@ const Fie = ({
6541
6544
  me(() => {
6542
6545
  i && v(
6543
6546
  y.concat(
6544
- i == null ? void 0 : i.map(({ slug: Q, name: B }) => ({
6545
- id: Q,
6547
+ i == null ? void 0 : i.map(({ slug: Z, name: B }) => ({
6548
+ id: Z,
6546
6549
  text: B,
6547
6550
  type: "category"
6548
6551
  /* CATEGORY */
@@ -6550,7 +6553,7 @@ const Fie = ({
6550
6553
  )
6551
6554
  );
6552
6555
  }, [i]);
6553
- const [X, D] = fe(null), _ = () => {
6556
+ const [X, D] = fe(null), C = () => {
6554
6557
  D(b.length), T();
6555
6558
  };
6556
6559
  return S4(), x ? /* @__PURE__ */ h.jsx(_i, { variant: "error", text: x.message }) : /* @__PURE__ */ h.jsxs("section", { className: "activities-feed", children: [
@@ -6590,15 +6593,15 @@ const Fie = ({
6590
6593
  kR,
6591
6594
  {
6592
6595
  className: "activities-feed-filtering",
6593
- options: y.map(({ id: Q, text: B }) => ({
6594
- id: Q,
6596
+ options: y.map(({ id: Z, text: B }) => ({
6597
+ id: Z,
6595
6598
  text: p.formatMessage({
6596
6599
  id: `activitiesFeed_rankingMethod_${B}`,
6597
6600
  defaultMessage: B
6598
6601
  })
6599
6602
  })),
6600
- defaultOptions: g.map(({ id: Q, text: B }) => ({
6601
- id: Q,
6603
+ defaultOptions: g.map(({ id: Z, text: B }) => ({
6604
+ id: Z,
6602
6605
  text: p.formatMessage({
6603
6606
  id: `activitiesFeed_rankingMethod_${B}`,
6604
6607
  defaultMessage: B
@@ -6606,16 +6609,16 @@ const Fie = ({
6606
6609
  })),
6607
6610
  preventNoOptionSelected: !0,
6608
6611
  allowMultiple: !1,
6609
- onChange: ({ current: Q, previous: B }) => {
6610
- if (Q[0] === B[0])
6612
+ onChange: ({ current: Z, previous: B }) => {
6613
+ if (Z[0] === B[0])
6611
6614
  return;
6612
6615
  m([
6613
- y.find((U) => U.id === Q[0])
6616
+ y.find((U) => U.id === Z[0])
6614
6617
  ]);
6615
- const H = y.find((U) => U.id === Q[0]);
6618
+ const H = y.find((U) => U.id === Z[0]);
6616
6619
  if (!H)
6617
6620
  return;
6618
- const q = new CustomEvent("ariaLive", {
6621
+ const z = new CustomEvent("ariaLive", {
6619
6622
  detail: {
6620
6623
  message: p.formatMessage(
6621
6624
  { id: "community_sortSuccess" },
@@ -6628,21 +6631,21 @@ const Fie = ({
6628
6631
  )
6629
6632
  }
6630
6633
  });
6631
- document.dispatchEvent(q);
6634
+ document.dispatchEvent(z);
6632
6635
  },
6633
6636
  gtm: {
6634
6637
  context: "activitiesFeed_sorting"
6635
6638
  }
6636
6639
  }
6637
6640
  ),
6638
- b == null ? void 0 : b.map((Q, B) => {
6641
+ b == null ? void 0 : b.map((Z, B) => {
6639
6642
  var Y;
6640
- const { id: H, own_reactions: q, latest_reactions: U } = Q, se = (((Y = q == null ? void 0 : q.like) == null ? void 0 : Y.length) || 0) > 0 ? q == null ? void 0 : q.like[0].id : "";
6643
+ const { id: H, own_reactions: z, latest_reactions: U } = Z, se = (((Y = z == null ? void 0 : z.like) == null ? void 0 : Y.length) || 0) > 0 ? z == null ? void 0 : z.like[0].id : "";
6641
6644
  return /* @__PURE__ */ h.jsx(sl, { children: /* @__PURE__ */ h.jsx(
6642
6645
  j1,
6643
6646
  {
6644
6647
  content: {
6645
- ...$x(Q, i),
6648
+ ...$x(Z, i),
6646
6649
  slugs: {
6647
6650
  question: `${e}/${t}`,
6648
6651
  answer: H
@@ -6675,7 +6678,7 @@ const Fie = ({
6675
6678
  deletePin: () => I({ activityId: H, reactionId: U == null ? void 0 : U.pin[0].id })
6676
6679
  },
6677
6680
  polls: {
6678
- createVote: ({ reactionId: ee }) => z({ activityId: H, reactionId: ee }),
6681
+ createVote: ({ reactionId: ee }) => q({ activityId: H, reactionId: ee }),
6679
6682
  removeVote: ({ reactionId: ee }) => N({ activityId: H, reactionId: ee }),
6680
6683
  removePoll: () => te({ activityId: H })
6681
6684
  },
@@ -6708,7 +6711,7 @@ const Fie = ({
6708
6711
  u1,
6709
6712
  {
6710
6713
  hasNextPage: w,
6711
- loadNextPage: _,
6714
+ loadNextPage: C,
6712
6715
  icon: { icon: "arrow-down", position: "right" },
6713
6716
  messages: {
6714
6717
  button: p.formatMessage({ id: "loadMore_button" }),
@@ -8512,46 +8515,46 @@ const E6 = ({
8512
8515
  return;
8513
8516
  const $ = ar(l ?? []);
8514
8517
  e && (E || $.push({
8515
- condition: (z) => {
8518
+ condition: (q) => {
8516
8519
  var D;
8517
- const N = z[e].toLowerCase(), te = ((D = z[`${e}-all`]) == null ? void 0 : D.length) ?? 0, X = new Set(
8518
- z[`${e}-all`].map((_) => _.toLowerCase())
8520
+ const N = q[e].toLowerCase(), te = ((D = q[`${e}-all`]) == null ? void 0 : D.length) ?? 0, X = new Set(
8521
+ q[`${e}-all`].map((C) => C.toLowerCase())
8519
8522
  );
8520
8523
  return X.has(N) && X.size < te;
8521
8524
  },
8522
8525
  error: f == null ? void 0 : f.formatMessage({ id: "form_error_multipleInputs_same" })
8523
- }), $.forEach((z) => {
8524
- const { condition: N, error: te } = z;
8526
+ }), $.forEach((q) => {
8527
+ const { condition: N, error: te } = q;
8525
8528
  if (typeof N == "function")
8526
- z.condition = (X) => {
8527
- var Q;
8528
- let D = (Q = X == null ? void 0 : X[e]) == null ? void 0 : Q[I];
8529
+ q.condition = (X) => {
8530
+ var Z;
8531
+ let D = (Z = X == null ? void 0 : X[e]) == null ? void 0 : Z[I];
8529
8532
  D || (X[e] && !Array.isArray(X[e]) ? D = X[e] : D = "");
8530
- const _ = ar(X);
8531
- return _[e] = D, _[`${e}-all`] = X[e], typeof N == "function" && N(_) ? te : !1;
8533
+ const C = ar(X);
8534
+ return C[e] = D, C[`${e}-all`] = X[e], typeof N == "function" && N(C) ? te : !1;
8532
8535
  };
8533
8536
  else {
8534
8537
  const X = N;
8535
- z.condition = (D) => {
8536
- var Q;
8537
- let _ = (Q = D == null ? void 0 : D[e]) == null ? void 0 : Q[I];
8538
- switch (_ || (D[e] && !Array.isArray(D[e]) ? _ = D[e] : _ = ""), X) {
8538
+ q.condition = (D) => {
8539
+ var Z;
8540
+ let C = (Z = D == null ? void 0 : D[e]) == null ? void 0 : Z[I];
8541
+ switch (C || (D[e] && !Array.isArray(D[e]) ? C = D[e] : C = ""), X) {
8539
8542
  case "required":
8540
- te || (z.error = f == null ? void 0 : f.formatMessage({ id: "form_error_required" }));
8543
+ te || (q.error = f == null ? void 0 : f.formatMessage({ id: "form_error_required" }));
8541
8544
  break;
8542
8545
  case "no-numbers":
8543
- te || (z.error = f == null ? void 0 : f.formatMessage({ id: "form_error_numbers" }));
8546
+ te || (q.error = f == null ? void 0 : f.formatMessage({ id: "form_error_numbers" }));
8544
8547
  break;
8545
8548
  case "valid-email":
8546
- te || (z.error = te || (f == null ? void 0 : f.formatMessage({ id: "form_error_email" })));
8549
+ te || (q.error = te || (f == null ? void 0 : f.formatMessage({ id: "form_error_email" })));
8547
8550
  break;
8548
8551
  case "valid-url":
8549
- te || (z.error = f == null ? void 0 : f.formatMessage({ id: "form_error_url" }));
8552
+ te || (q.error = f == null ? void 0 : f.formatMessage({ id: "form_error_url" }));
8550
8553
  break;
8551
8554
  default:
8552
8555
  console.warn("WARNING! No field validation condition has been set");
8553
8556
  }
8554
- return Po(X, _) ? z.error : !1;
8557
+ return Po(X, C) ? q.error : !1;
8555
8558
  };
8556
8559
  }
8557
8560
  }), P.push({
@@ -8631,9 +8634,9 @@ const E6 = ({
8631
8634
  $.key === "Enter" && ($.preventDefault(), $.stopPropagation(), rd && clearTimeout(rd), P !== b.length - 1 ? F(P) : (A(), rd = setTimeout(() => F(P), 100)));
8632
8635
  },
8633
8636
  onChange: ($) => {
8634
- const z = b[P].toLowerCase(), N = ar(b);
8637
+ const q = b[P].toLowerCase(), N = ar(b);
8635
8638
  N[P] = $, x(N), u == null || u.dispatch({ type: "removeError", payload: { key: S } }), E || N.forEach((te, X) => {
8636
- cl(te) && X !== P && te.toLowerCase() === z && (u == null || u.dispatch({
8639
+ cl(te) && X !== P && te.toLowerCase() === q && (u == null || u.dispatch({
8637
8640
  type: "removeError",
8638
8641
  payload: { key: `${e}-${X}` }
8639
8642
  }));
@@ -9075,12 +9078,12 @@ const ei = ({
9075
9078
  const ee = Y.id || Y.name;
9076
9079
  ee && ($[ee] = Y.value || "");
9077
9080
  });
9078
- const [z, N] = ta(T6, {
9081
+ const [q, N] = ta(T6, {
9079
9082
  isSubmitting: !1,
9080
9083
  formSubmitted: !1,
9081
9084
  errors: {},
9082
9085
  values: $
9083
- }), { errors: te, isSubmitting: X, formSubmitted: D, values: _ } = z;
9086
+ }), { errors: te, isSubmitting: X, formSubmitted: D, values: C } = q;
9084
9087
  me(() => {
9085
9088
  T && D && (id = setTimeout(() => {
9086
9089
  N({
@@ -9107,7 +9110,7 @@ const ei = ({
9107
9110
  );
9108
9111
  };
9109
9112
  }, []);
9110
- const Q = Ue(null), B = i || Q, H = ul(() => {
9113
+ const Z = Ue(null), B = i || Z, H = ul(() => {
9111
9114
  if (!X) {
9112
9115
  if (N({
9113
9116
  type: "updateValue",
@@ -9152,9 +9155,9 @@ const ei = ({
9152
9155
  }, 100);
9153
9156
  if (!t.length)
9154
9157
  return null;
9155
- const q = {};
9156
- s.children && (q.default = s.children), E.text && typeof E.text == "string" && (q.default = E.text), ["default", "submitting", "submitted"].forEach((Y) => {
9157
- E.text && typeof E.text != "string" && Y in E.text ? q[Y] = E.text[Y] : q[Y] || (q[Y] = I.formatMessage({
9158
+ const z = {};
9159
+ s.children && (z.default = s.children), E.text && typeof E.text == "string" && (z.default = E.text), ["default", "submitting", "submitted"].forEach((Y) => {
9160
+ E.text && typeof E.text != "string" && Y in E.text ? z[Y] = E.text[Y] : z[Y] || (z[Y] = I.formatMessage({
9158
9161
  id: `form_${Y === "default" ? "submit" : Y}`
9159
9162
  }));
9160
9163
  }), delete E.text;
@@ -9178,7 +9181,7 @@ const ei = ({
9178
9181
  disabled: X || D || s.disabled,
9179
9182
  "data-gtm-event-context": c.context,
9180
9183
  "data-gtm-event-type": c.event,
9181
- children: q[X ? "submitting" : D ? "submitted" : "default"]
9184
+ children: z[X ? "submitting" : D ? "submitted" : "default"]
9182
9185
  }
9183
9186
  ];
9184
9187
  return x && se.unshift({
@@ -9217,7 +9220,7 @@ const ei = ({
9217
9220
  } = Y;
9218
9221
  if (re)
9219
9222
  return /* @__PURE__ */ h.jsx(re, { ...Y.props || {} }, `component-${ae}-${ee}`);
9220
- const Ce = (_ == null ? void 0 : _[ae]) || "", ue = {
9223
+ const Ce = (C == null ? void 0 : C[ae]) || "", ue = {
9221
9224
  ...Ae,
9222
9225
  onChange: (he) => {
9223
9226
  N({ type: "updateValue", payload: { key: ae, value: he } }), Ae.onChange(he, N);
@@ -9601,7 +9604,7 @@ const Mw = /* @__PURE__ */ Dr(Bw), fg = (e) => typeof e == "object" && e != null
9601
9604
  var n, r, i, a;
9602
9605
  if (typeof document > "u")
9603
9606
  return [];
9604
- const { scrollMode: s, block: o, inline: l, boundary: u, skipOverflowHiddenElements: c } = t, d = typeof u == "function" ? u : (z) => z !== u;
9607
+ const { scrollMode: s, block: o, inline: l, boundary: u, skipOverflowHiddenElements: c } = t, d = typeof u == "function" ? u : (q) => q !== u;
9605
9608
  if (!fg(e))
9606
9609
  throw new TypeError("Invalid target");
9607
9610
  const f = document.scrollingElement || document.documentElement, p = [];
@@ -9613,23 +9616,23 @@ const Mw = /* @__PURE__ */ Dr(Bw), fg = (e) => typeof e == "object" && e != null
9613
9616
  }
9614
9617
  g != null && g === document.body && sd(g) && !sd(document.documentElement) || g != null && sd(g, c) && p.push(g);
9615
9618
  }
9616
- const m = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, y = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: v, scrollY: E } = window, { height: b, width: x, top: T, right: w, bottom: A, left: F } = e.getBoundingClientRect(), { top: R, right: L, bottom: P, left: O } = ((z) => {
9617
- const N = window.getComputedStyle(z);
9619
+ const m = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, y = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: v, scrollY: E } = window, { height: b, width: x, top: T, right: w, bottom: A, left: F } = e.getBoundingClientRect(), { top: R, right: L, bottom: P, left: O } = ((q) => {
9620
+ const N = window.getComputedStyle(q);
9618
9621
  return { top: parseFloat(N.scrollMarginTop) || 0, right: parseFloat(N.scrollMarginRight) || 0, bottom: parseFloat(N.scrollMarginBottom) || 0, left: parseFloat(N.scrollMarginLeft) || 0 };
9619
9622
  })(e);
9620
9623
  let S = o === "start" || o === "nearest" ? T - R : o === "end" ? A + P : T + b / 2 - R + P, I = l === "center" ? F + x / 2 - O + L : l === "end" ? w + L : F - O;
9621
9624
  const $ = [];
9622
- for (let z = 0; z < p.length; z++) {
9623
- const N = p[z], { height: te, width: X, top: D, right: _, bottom: Q, left: B } = N.getBoundingClientRect();
9624
- if (s === "if-needed" && T >= 0 && F >= 0 && A <= y && w <= m && T >= D && A <= Q && F >= B && w <= _)
9625
+ for (let q = 0; q < p.length; q++) {
9626
+ const N = p[q], { height: te, width: X, top: D, right: C, bottom: Z, left: B } = N.getBoundingClientRect();
9627
+ if (s === "if-needed" && T >= 0 && F >= 0 && A <= y && w <= m && T >= D && A <= Z && F >= B && w <= C)
9625
9628
  return $;
9626
- const H = getComputedStyle(N), q = parseInt(H.borderLeftWidth, 10), U = parseInt(H.borderTopWidth, 10), j = parseInt(H.borderRightWidth, 10), se = parseInt(H.borderBottomWidth, 10);
9629
+ const H = getComputedStyle(N), z = parseInt(H.borderLeftWidth, 10), U = parseInt(H.borderTopWidth, 10), j = parseInt(H.borderRightWidth, 10), se = parseInt(H.borderBottomWidth, 10);
9627
9630
  let Y = 0, ee = 0;
9628
- const ae = "offsetWidth" in N ? N.offsetWidth - N.clientWidth - q - j : 0, re = "offsetHeight" in N ? N.offsetHeight - N.clientHeight - U - se : 0, Ae = "offsetWidth" in N ? N.offsetWidth === 0 ? 0 : X / N.offsetWidth : 0, Oe = "offsetHeight" in N ? N.offsetHeight === 0 ? 0 : te / N.offsetHeight : 0;
9631
+ const ae = "offsetWidth" in N ? N.offsetWidth - N.clientWidth - z - j : 0, re = "offsetHeight" in N ? N.offsetHeight - N.clientHeight - U - se : 0, Ae = "offsetWidth" in N ? N.offsetWidth === 0 ? 0 : X / N.offsetWidth : 0, Oe = "offsetHeight" in N ? N.offsetHeight === 0 ? 0 : te / N.offsetHeight : 0;
9629
9632
  if (f === N)
9630
- Y = o === "start" ? S : o === "end" ? S - y : o === "nearest" ? nu(E, E + y, y, U, se, E + S, E + S + b, b) : S - y / 2, ee = l === "start" ? I : l === "center" ? I - m / 2 : l === "end" ? I - m : nu(v, v + m, m, q, j, v + I, v + I + x, x), Y = Math.max(0, Y + E), ee = Math.max(0, ee + v);
9633
+ Y = o === "start" ? S : o === "end" ? S - y : o === "nearest" ? nu(E, E + y, y, U, se, E + S, E + S + b, b) : S - y / 2, ee = l === "start" ? I : l === "center" ? I - m / 2 : l === "end" ? I - m : nu(v, v + m, m, z, j, v + I, v + I + x, x), Y = Math.max(0, Y + E), ee = Math.max(0, ee + v);
9631
9634
  else {
9632
- Y = o === "start" ? S - D - U : o === "end" ? S - Q + se + re : o === "nearest" ? nu(D, Q, te, U, se + re, S, S + b, b) : S - (D + te / 2) + re / 2, ee = l === "start" ? I - B - q : l === "center" ? I - (B + X / 2) + ae / 2 : l === "end" ? I - _ + j + ae : nu(B, _, X, q, j + ae, I, I + x, x);
9635
+ Y = o === "start" ? S - D - U : o === "end" ? S - Z + se + re : o === "nearest" ? nu(D, Z, te, U, se + re, S, S + b, b) : S - (D + te / 2) + re / 2, ee = l === "start" ? I - B - z : l === "center" ? I - (B + X / 2) + ae / 2 : l === "end" ? I - C + j + ae : nu(B, C, X, z, j + ae, I, I + x, x);
9633
9636
  const { scrollLeft: Ce, scrollTop: ue } = N;
9634
9637
  Y = Oe === 0 ? 0 : Math.max(0, Math.min(ue + Y / Oe, N.scrollHeight - te / Oe + re)), ee = Ae === 0 ? 0 : Math.max(0, Math.min(Ce + ee / Ae, N.scrollWidth - X / Ae + ae)), S += ue - Y, I += Ce - ee;
9635
9638
  }
@@ -10460,8 +10463,8 @@ var rA = (e, t, n) => {
10460
10463
  throw new Error("Cannot move a path [".concat(R, "] to new path [").concat(L, "] because the destination is inside itself."));
10461
10464
  var P = Ee.get(e, R), O = Ee.parent(e, R), S = R[R.length - 1];
10462
10465
  O.children.splice(S, 1);
10463
- var I = V.transform(R, n), $ = Ee.get(e, V.parent(I)), z = I[I.length - 1];
10464
- if ($.children.splice(z, 0, P), t)
10466
+ var I = V.transform(R, n), $ = Ee.get(e, V.parent(I)), q = I[I.length - 1];
10467
+ if ($.children.splice(q, 0, P), t)
10465
10468
  for (var [N, te] of oe.points(t))
10466
10469
  t[te] = Qe.transform(N, n);
10467
10470
  break;
@@ -10469,23 +10472,23 @@ var rA = (e, t, n) => {
10469
10472
  case "remove_node": {
10470
10473
  var {
10471
10474
  path: X
10472
- } = n, D = X[X.length - 1], _ = Ee.parent(e, X);
10473
- if (_.children.splice(D, 1), t)
10474
- for (var [Q, B] of oe.points(t)) {
10475
- var H = Qe.transform(Q, n);
10475
+ } = n, D = X[X.length - 1], C = Ee.parent(e, X);
10476
+ if (C.children.splice(D, 1), t)
10477
+ for (var [Z, B] of oe.points(t)) {
10478
+ var H = Qe.transform(Z, n);
10476
10479
  if (t != null && H != null)
10477
10480
  t[B] = H;
10478
10481
  else {
10479
- var q = void 0, U = void 0;
10482
+ var z = void 0, U = void 0;
10480
10483
  for (var [j, se] of Ee.texts(e))
10481
10484
  if (V.compare(se, X) === -1)
10482
- q = [j, se];
10485
+ z = [j, se];
10483
10486
  else {
10484
10487
  U = [j, se];
10485
10488
  break;
10486
10489
  }
10487
10490
  var Y = !1;
10488
- q && U && (V.equals(U[1], X) ? Y = !V.hasPrevious(U[1]) : Y = V.common(q[1], X).length < V.common(U[1], X).length), q && !Y ? (Q.path = q[1], Q.offset = q[0].text.length) : U ? (Q.path = U[1], Q.offset = 0) : t = null;
10491
+ z && U && (V.equals(U[1], X) ? Y = !V.hasPrevious(U[1]) : Y = V.common(z[1], X).length < V.common(U[1], X).length), z && !Y ? (Z.path = z[1], Z.offset = z[0].text.length) : U ? (Z.path = U[1], Z.offset = 0) : t = null;
10489
10492
  }
10490
10493
  }
10491
10494
  break;
@@ -10550,19 +10553,19 @@ var rA = (e, t, n) => {
10550
10553
  case "split_node": {
10551
10554
  var {
10552
10555
  path: ve,
10553
- position: Z,
10556
+ position: Q,
10554
10557
  properties: de
10555
10558
  } = n;
10556
10559
  if (ve.length === 0)
10557
10560
  throw new Error('Cannot apply a "split_node" operation at path ['.concat(ve, "] because the root node cannot be split."));
10558
10561
  var xe = Ee.get(e, ve), Me = Ee.parent(e, ve), vt = ve[ve.length - 1], at;
10559
10562
  if (Ne.isText(xe)) {
10560
- var gt = xe.text.slice(0, Z), zt = xe.text.slice(Z);
10563
+ var gt = xe.text.slice(0, Q), zt = xe.text.slice(Q);
10561
10564
  xe.text = gt, at = co(co({}, de), {}, {
10562
10565
  text: zt
10563
10566
  });
10564
10567
  } else {
10565
- var Pt = xe.children.slice(0, Z), xn = xe.children.slice(Z);
10568
+ var Pt = xe.children.slice(0, Q), xn = xe.children.slice(Q);
10566
10569
  xe.children = Pt, at = co(co({}, de), {}, {
10567
10570
  children: xn
10568
10571
  });
@@ -12792,25 +12795,25 @@ var qS = (e, t) => {
12792
12795
  at: u,
12793
12796
  voids: l
12794
12797
  })) {
12795
- var [$, z] = I;
12796
- S && V.compare(z, S) === 0 || (!l && De.isElement($) && (k.isVoid(t, $) || k.isElementReadOnly(t, $)) || !V.isCommon(z, E.path) && !V.isCommon(z, b.path)) && (O.push(I), S = z);
12798
+ var [$, q] = I;
12799
+ S && V.compare(q, S) === 0 || (!l && De.isElement($) && (k.isVoid(t, $) || k.isElementReadOnly(t, $)) || !V.isCommon(q, E.path) && !V.isCommon(q, b.path)) && (O.push(I), S = q);
12797
12800
  }
12798
12801
  var N = Array.from(O, (Oe) => {
12799
12802
  var [, Ce] = Oe;
12800
12803
  return k.pathRef(t, Ce);
12801
12804
  }), te = k.pointRef(t, E), X = k.pointRef(t, b), D = "";
12802
12805
  if (!A && !F) {
12803
- var _ = te.current, [Q] = k.leaf(t, _), {
12806
+ var C = te.current, [Z] = k.leaf(t, C), {
12804
12807
  path: B
12805
- } = _, {
12808
+ } = C, {
12806
12809
  offset: H
12807
- } = E, q = Q.text.slice(H);
12808
- q.length > 0 && (t.apply({
12810
+ } = E, z = Z.text.slice(H);
12811
+ z.length > 0 && (t.apply({
12809
12812
  type: "remove_text",
12810
12813
  path: B,
12811
12814
  offset: H,
12812
- text: q
12813
- }), D = q);
12815
+ text: z
12816
+ }), D = z);
12814
12817
  }
12815
12818
  if (N.reverse().map((Oe) => Oe.unref()).filter((Oe) => Oe !== null).forEach((Oe) => le.removeNodes(t, {
12816
12819
  at: Oe,
@@ -12870,7 +12873,7 @@ var qS = (e, t) => {
12870
12873
  }))) {
12871
12874
  var c = k.above(t, {
12872
12875
  at: s,
12873
- match: (q) => De.isElement(q) && k.isInline(t, q),
12876
+ match: (z) => De.isElement(z) && k.isInline(t, z),
12874
12877
  mode: "highest",
12875
12878
  voids: a
12876
12879
  });
@@ -12885,15 +12888,15 @@ var qS = (e, t) => {
12885
12888
  }
12886
12889
  }
12887
12890
  var g = k.above(t, {
12888
- match: (q) => De.isElement(q) && k.isBlock(t, q),
12891
+ match: (z) => De.isElement(z) && k.isBlock(t, z),
12889
12892
  at: s,
12890
12893
  voids: a
12891
12894
  }), [, m] = g, y = k.isStart(t, s, m), v = k.isEnd(t, s, m), E = y && v, b = !y || y && v, x = !v, [, T] = Ee.first({
12892
12895
  children: n
12893
12896
  }, []), [, w] = Ee.last({
12894
12897
  children: n
12895
- }, []), A = [], F = (q) => {
12896
- var [U, j] = q, se = j.length === 0;
12898
+ }, []), A = [], F = (z) => {
12899
+ var [U, j] = z, se = j.length === 0;
12897
12900
  return se ? !1 : E ? !0 : !(b && V.isAncestor(j, T) && De.isElement(U) && !t.isVoid(U) && !t.isInline(U) || x && V.isAncestor(j, w) && De.isElement(U) && !t.isVoid(U) && !t.isInline(U));
12898
12901
  };
12899
12902
  for (var R of Ee.nodes({
@@ -12905,23 +12908,23 @@ var qS = (e, t) => {
12905
12908
  var L = [], P = [], O = [], S = !0, I = !1;
12906
12909
  for (var [$] of A)
12907
12910
  De.isElement($) && !t.isInline($) ? (S = !1, I = !0, P.push($)) : S ? L.push($) : O.push($);
12908
- var [z] = k.nodes(t, {
12911
+ var [q] = k.nodes(t, {
12909
12912
  at: s,
12910
- match: (q) => Ne.isText(q) || k.isInline(t, q),
12913
+ match: (z) => Ne.isText(z) || k.isInline(t, z),
12911
12914
  mode: "highest",
12912
12915
  voids: a
12913
- }), [, N] = z, te = k.isStart(t, s, N), X = k.isEnd(t, s, N), D = k.pathRef(t, v && !O.length ? V.next(m) : m), _ = k.pathRef(t, X ? V.next(N) : N);
12916
+ }), [, N] = q, te = k.isStart(t, s, N), X = k.isEnd(t, s, N), D = k.pathRef(t, v && !O.length ? V.next(m) : m), C = k.pathRef(t, X ? V.next(N) : N);
12914
12917
  le.splitNodes(t, {
12915
12918
  at: s,
12916
- match: (q) => I ? De.isElement(q) && k.isBlock(t, q) : Ne.isText(q) || k.isInline(t, q),
12919
+ match: (z) => I ? De.isElement(z) && k.isBlock(t, z) : Ne.isText(z) || k.isInline(t, z),
12917
12920
  mode: I ? "lowest" : "highest",
12918
12921
  always: I && (!y || L.length > 0) && (!v || O.length > 0),
12919
12922
  voids: a
12920
12923
  });
12921
- var Q = k.pathRef(t, !te || te && X ? V.next(N) : N);
12924
+ var Z = k.pathRef(t, !te || te && X ? V.next(N) : N);
12922
12925
  if (le.insertNodes(t, L, {
12923
- at: Q.current,
12924
- match: (q) => Ne.isText(q) || k.isInline(t, q),
12926
+ at: Z.current,
12927
+ match: (z) => Ne.isText(z) || k.isInline(t, z),
12925
12928
  mode: "highest",
12926
12929
  voids: a,
12927
12930
  batchDirty: o
@@ -12930,24 +12933,24 @@ var qS = (e, t) => {
12930
12933
  voids: a
12931
12934
  }), le.insertNodes(t, P, {
12932
12935
  at: D.current,
12933
- match: (q) => De.isElement(q) && k.isBlock(t, q),
12936
+ match: (z) => De.isElement(z) && k.isBlock(t, z),
12934
12937
  mode: "lowest",
12935
12938
  voids: a,
12936
12939
  batchDirty: o
12937
12940
  }), le.insertNodes(t, O, {
12938
- at: _.current,
12939
- match: (q) => Ne.isText(q) || k.isInline(t, q),
12941
+ at: C.current,
12942
+ match: (z) => Ne.isText(z) || k.isInline(t, z),
12940
12943
  mode: "highest",
12941
12944
  voids: a,
12942
12945
  batchDirty: o
12943
12946
  }), !r.at) {
12944
12947
  var B;
12945
- if (O.length > 0 && _.current ? B = V.previous(_.current) : P.length > 0 && D.current ? B = V.previous(D.current) : Q.current && (B = V.previous(Q.current)), B) {
12948
+ if (O.length > 0 && C.current ? B = V.previous(C.current) : P.length > 0 && D.current ? B = V.previous(D.current) : Z.current && (B = V.previous(Z.current)), B) {
12946
12949
  var H = k.end(t, B);
12947
12950
  le.select(t, H);
12948
12951
  }
12949
12952
  }
12950
- Q.unref(), D.unref(), _.unref();
12953
+ Z.unref(), D.unref(), C.unref();
12951
12954
  }
12952
12955
  }
12953
12956
  });
@@ -13139,8 +13142,8 @@ var nk = function(t, n) {
13139
13142
  node: P
13140
13143
  };
13141
13144
  t.apply(I), l = V.next(l), T.push(I), Ne.isText ? w.push(...Array.from(Ee.nodes(P), ($) => {
13142
- var [, z] = $;
13143
- return S.concat(z);
13145
+ var [, q] = $;
13146
+ return S.concat(q);
13144
13147
  })) : w.push(S);
13145
13148
  };
13146
13149
  for (var P of n)
@@ -13522,12 +13525,12 @@ var nk = function(t, n) {
13522
13525
  var I = f.current, $ = k.isEnd(t, I, O);
13523
13526
  if (l || !f || !k.isEdge(t, I, O)) {
13524
13527
  S = !0;
13525
- var z = Ee.extractProps(P);
13528
+ var q = Ee.extractProps(P);
13526
13529
  t.apply({
13527
13530
  type: "split_node",
13528
13531
  path: O,
13529
13532
  position: L,
13530
- properties: z
13533
+ properties: q
13531
13534
  });
13532
13535
  }
13533
13536
  L = O[O.length - 1] + (S || $ ? 1 : 0);
@@ -15292,14 +15295,14 @@ function ED(e) {
15292
15295
  });
15293
15296
  Ei.set(t, t.marks), vD("flush", qi.get(t), On.get(t));
15294
15297
  for (var S = x(), I; I = ($ = On.get(t)) === null || $ === void 0 ? void 0 : $[0]; ) {
15295
- var $, z, N = wr.get(t);
15298
+ var $, q, N = wr.get(t);
15296
15299
  N !== void 0 && (wr.delete(t), t.marks = N), N && u === !1 && (u = null);
15297
15300
  var te = hD(I);
15298
- (!t.selection || !oe.equals(t.selection, te)) && le.select(t, te), I.diff.text ? k.insertText(t, I.diff.text) : k.deleteFragment(t), On.set(t, (z = On.get(t)) === null || z === void 0 ? void 0 : z.filter((_) => {
15301
+ (!t.selection || !oe.equals(t.selection, te)) && le.select(t, te), I.diff.text ? k.insertText(t, I.diff.text) : k.deleteFragment(t), On.set(t, (q = On.get(t)) === null || q === void 0 ? void 0 : q.filter((C) => {
15299
15302
  var {
15300
- id: Q
15301
- } = _;
15302
- return Q !== I.id;
15303
+ id: Z
15304
+ } = C;
15305
+ return Z !== I.id;
15303
15306
  })), uD(t, I) || (S = !1, qi.delete(t), Ei.delete(t), i = "action", Wi.delete(t), n.cancel(), r.cancel(), O == null || O.unref());
15304
15307
  }
15305
15308
  var X = O == null ? void 0 : O.unref();
@@ -15328,9 +15331,9 @@ function ED(e) {
15328
15331
  }, y = (O, S) => {
15329
15332
  var I, $ = (I = On.get(t)) !== null && I !== void 0 ? I : [];
15330
15333
  On.set(t, $);
15331
- var z = Ee.leaf(t, O), N = $.findIndex((D) => V.equals(D.path, O));
15334
+ var q = Ee.leaf(t, O), N = $.findIndex((D) => V.equals(D.path, O));
15332
15335
  if (N < 0) {
15333
- var te = gb(z.text, S);
15336
+ var te = gb(q.text, S);
15334
15337
  te && $.push({
15335
15338
  path: O,
15336
15339
  diff: S,
@@ -15338,7 +15341,7 @@ function ED(e) {
15338
15341
  }), m();
15339
15342
  return;
15340
15343
  }
15341
- var X = fD(z.text, $[N].diff, S);
15344
+ var X = fD(q.text, $[N].diff, S);
15342
15345
  if (!X) {
15343
15346
  $.splice(N, 1), m();
15344
15347
  return;
@@ -15359,7 +15362,7 @@ function ED(e) {
15359
15362
  s && (clearTimeout(s), s = null);
15360
15363
  var {
15361
15364
  inputType: I
15362
- } = O, $ = null, z = O.dataTransfer || O.data || void 0;
15365
+ } = O, $ = null, q = O.dataTransfer || O.data || void 0;
15363
15366
  u !== !1 && I !== "insertText" && I !== "insertCompositionText" && (u = !1);
15364
15367
  var [N] = O.getTargetRanges();
15365
15368
  N && ($ = ce.toSlateRange(t, N, {
@@ -15374,19 +15377,19 @@ function ED(e) {
15374
15377
  var D = !0;
15375
15378
  if (I.startsWith("delete")) {
15376
15379
  if (oe.isExpanded($)) {
15377
- var [_, Q] = oe.edges($), B = Ee.leaf(t, _.path);
15378
- if (B.text.length === _.offset && Q.offset === 0) {
15380
+ var [C, Z] = oe.edges($), B = Ee.leaf(t, C.path);
15381
+ if (B.text.length === C.offset && Z.offset === 0) {
15379
15382
  var H = k.next(t, {
15380
- at: _.path,
15383
+ at: C.path,
15381
15384
  match: Ne.isText
15382
15385
  });
15383
- H && V.equals(H[1], Q.path) && ($ = {
15384
- anchor: Q,
15385
- focus: Q
15386
+ H && V.equals(H[1], Z.path) && ($ = {
15387
+ anchor: Z,
15388
+ focus: Z
15386
15389
  });
15387
15390
  }
15388
15391
  }
15389
- var q = I.endsWith("Backward") ? "backward" : "forward", [U, j] = oe.edges($), [se, Y] = k.leaf(t, U.path), ee = {
15392
+ var z = I.endsWith("Backward") ? "backward" : "forward", [U, j] = oe.edges($), [se, Y] = k.leaf(t, U.path), ee = {
15390
15393
  text: "",
15391
15394
  start: U.offset,
15392
15395
  end: j.offset
@@ -15404,7 +15407,7 @@ function ED(e) {
15404
15407
  });
15405
15408
  }
15406
15409
  return v(() => k.deleteFragment(t, {
15407
- direction: q
15410
+ direction: z
15408
15411
  }), {
15409
15412
  at: $
15410
15413
  });
@@ -15509,18 +15512,18 @@ function ED(e) {
15509
15512
  case "insertFromYank":
15510
15513
  case "insertReplacementText":
15511
15514
  case "insertText": {
15512
- if (yD(z))
15513
- return v(() => ce.insertData(t, z), {
15515
+ if (yD(q))
15516
+ return v(() => ce.insertData(t, q), {
15514
15517
  at: $
15515
15518
  });
15516
- var Ye = z ?? "";
15519
+ var Ye = q ?? "";
15517
15520
  if (wr.get(t) && (Ye = Ye.replace("\uFEFF", "")), I === "insertText" && /.*\n.*\n$/.test(Ye) && (Ye = Ye.slice(0, -1)), Ye.includes(`
15518
15521
  `))
15519
15522
  return v(() => {
15520
15523
  var ve = Ye.split(`
15521
15524
  `);
15522
- ve.forEach((Z, de) => {
15523
- Z && k.insertText(t, Z), de !== ve.length - 1 && k.insertSoftBreak(t);
15525
+ ve.forEach((Q, de) => {
15526
+ Q && k.insertText(t, Q), de !== ve.length - 1 && k.insertSoftBreak(t);
15524
15527
  });
15525
15528
  }, {
15526
15529
  at: $
@@ -16188,9 +16191,9 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16188
16191
  var L = Ue(), P = Sr(() => Mw(() => {
16189
16192
  var H = L.current;
16190
16193
  if ((Tn || !ce.isComposing(m)) && (!R.isUpdatingSelection || H != null && H.isFlushing()) && !R.isDraggingInternally) {
16191
- var q = ce.findDocumentOrShadowRoot(m), {
16194
+ var z = ce.findDocumentOrShadowRoot(m), {
16192
16195
  activeElement: U
16193
- } = q, j = ce.toDOMNode(m, m), se = q.getSelection();
16196
+ } = z, j = ce.toDOMNode(m, m), se = z.getSelection();
16194
16197
  if (U === j ? (R.latestElement = U, Yi.set(m, !0)) : Yi.delete(m), !se)
16195
16198
  return le.deselect(m);
16196
16199
  var {
@@ -16212,7 +16215,7 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16212
16215
  onDOMSelectionChange: P,
16213
16216
  scheduleOnDOMSelectionChange: O
16214
16217
  }), yl(() => {
16215
- var H, q, U;
16218
+ var H, z, U;
16216
16219
  E.current && (U = Hp(E.current)) ? (ub.set(m, U), oc.set(m, E.current), Ia.set(m, E.current), vl.set(E.current, m)) : Ia.delete(m);
16217
16220
  var {
16218
16221
  selection: j
@@ -16254,7 +16257,7 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16254
16257
  }
16255
16258
  };
16256
16259
  Y.rangeCount <= 1 && ee();
16257
- var ae = ((q = L.current) === null || q === void 0 ? void 0 : q.isFlushing()) === "action";
16260
+ var ae = ((z = L.current) === null || z === void 0 ? void 0 : z.isFlushing()) === "action";
16258
16261
  if (!Tn || !ae) {
16259
16262
  setTimeout(() => {
16260
16263
  R.isUpdatingSelection = !1;
@@ -16282,7 +16285,7 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16282
16285
  });
16283
16286
  var S = ft((H) => {
16284
16287
  if (w(), !s && ce.hasEditableTarget(m, H.target) && !oO(H, i)) {
16285
- var q;
16288
+ var z;
16286
16289
  if (L.current)
16287
16290
  return L.current.handleDOMBeforeInput(H);
16288
16291
  O.flush(), P.flush();
@@ -16418,7 +16421,7 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16418
16421
  break;
16419
16422
  }
16420
16423
  }
16421
- var ie = (q = Wo.get(m)) === null || q === void 0 ? void 0 : q.unref();
16424
+ var ie = (z = Wo.get(m)) === null || z === void 0 ? void 0 : z.unref();
16422
16425
  Wo.delete(m), ie && (!m.selection || !oe.equals(m.selection, ie)) && le.select(m, ie);
16423
16426
  }
16424
16427
  }, [m, P, w, i, s, O]), I = ft((H) => {
@@ -16430,14 +16433,14 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16430
16433
  H.document.removeEventListener("selectionchange", O);
16431
16434
  };
16432
16435
  }, [O]);
16433
- var $ = r([m, []]), z = a && m.children.length === 1 && Array.from(Ee.texts(m)).length === 1 && Ee.string(m) === "" && !y, N = ft((H) => {
16434
- if (H && z) {
16435
- var q;
16436
- T((q = H.getBoundingClientRect()) === null || q === void 0 ? void 0 : q.height);
16436
+ var $ = r([m, []]), q = a && m.children.length === 1 && Array.from(Ee.texts(m)).length === 1 && Ee.string(m) === "" && !y, N = ft((H) => {
16437
+ if (H && q) {
16438
+ var z;
16439
+ T((z = H.getBoundingClientRect()) === null || z === void 0 ? void 0 : z.height);
16437
16440
  } else
16438
16441
  T(void 0);
16439
- }, [z]);
16440
- if (z) {
16442
+ }, [q]);
16443
+ if (q) {
16441
16444
  var te = k.start(m, []);
16442
16445
  $.push({
16443
16446
  [js]: !0,
@@ -16453,12 +16456,12 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16453
16456
  if (R.hasMarkPlaceholder = !1, m.selection && oe.isCollapsed(m.selection) && X) {
16454
16457
  var {
16455
16458
  anchor: D
16456
- } = m.selection, _ = Ee.leaf(m, D.path), Q = $s(_, tO);
16457
- if (!Ne.equals(_, X, {
16459
+ } = m.selection, C = Ee.leaf(m, D.path), Z = $s(C, tO);
16460
+ if (!Ne.equals(C, X, {
16458
16461
  loose: !0
16459
16462
  })) {
16460
16463
  R.hasMarkPlaceholder = !0;
16461
- var B = Object.fromEntries(Object.keys(Q).map((H) => [H, null]));
16464
+ var B = Object.fromEntries(Object.keys(Z).map((H) => [H, null]));
16462
16465
  $.push(Lr(Lr(Lr({
16463
16466
  [db]: !0
16464
16467
  }, B), X), {}, {
@@ -16474,8 +16477,8 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16474
16477
  } = m;
16475
16478
  if (H) {
16476
16479
  var {
16477
- anchor: q
16478
- } = H, U = Ee.leaf(m, q.path);
16480
+ anchor: z
16481
+ } = H, U = Ee.leaf(m, z.path);
16479
16482
  if (X && !Ne.equals(U, X, {
16480
16483
  loose: !0
16481
16484
  })) {
@@ -16526,8 +16529,8 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16526
16529
  } : {})), d),
16527
16530
  onBeforeInput: ft((H) => {
16528
16531
  if (!Bi && !s && !vn(H, g.onBeforeInput) && ce.hasSelectableTarget(m, H.target) && (H.preventDefault(), !ce.isComposing(m))) {
16529
- var q = H.data;
16530
- k.insertText(m, q);
16532
+ var z = H.data;
16533
+ k.insertText(m, z);
16531
16534
  }
16532
16535
  }, [g.onBeforeInput, m, s]),
16533
16536
  onInput: ft((H) => {
@@ -16536,15 +16539,15 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16536
16539
  L.current.handleInput();
16537
16540
  return;
16538
16541
  }
16539
- for (var q of b.current)
16540
- q();
16542
+ for (var z of b.current)
16543
+ z();
16541
16544
  b.current = [];
16542
16545
  }
16543
16546
  }, [g.onInput]),
16544
16547
  onBlur: ft((H) => {
16545
16548
  if (!(s || R.isUpdatingSelection || !ce.hasSelectableTarget(m, H.target) || vn(H, g.onBlur))) {
16546
- var q = ce.findDocumentOrShadowRoot(m);
16547
- if (R.latestElement !== q.activeElement) {
16549
+ var z = ce.findDocumentOrShadowRoot(m);
16550
+ if (R.latestElement !== z.activeElement) {
16548
16551
  var {
16549
16552
  relatedTarget: U
16550
16553
  } = H, j = ce.toDOMNode(m, m);
@@ -16555,7 +16558,7 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16555
16558
  return;
16556
16559
  }
16557
16560
  if (Ro) {
16558
- var Y = q.getSelection();
16561
+ var Y = z.getSelection();
16559
16562
  Y == null || Y.removeAllRanges();
16560
16563
  }
16561
16564
  Yi.delete(m);
@@ -16565,12 +16568,12 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16565
16568
  }, [s, R.isUpdatingSelection, R.latestElement, m, g.onBlur]),
16566
16569
  onClick: ft((H) => {
16567
16570
  if (ce.hasTarget(m, H.target) && !vn(H, g.onClick) && ea(H.target)) {
16568
- var q = ce.toSlateNode(m, H.target), U = ce.findPath(m, q);
16569
- if (!k.hasPath(m, U) || Ee.get(m, U) !== q)
16571
+ var z = ce.toSlateNode(m, H.target), U = ce.findPath(m, z);
16572
+ if (!k.hasPath(m, U) || Ee.get(m, U) !== z)
16570
16573
  return;
16571
16574
  if (H.detail === KD && U.length >= 1) {
16572
16575
  var j = U;
16573
- if (!(De.isElement(q) && k.isBlock(m, q))) {
16576
+ if (!(De.isElement(z) && k.isBlock(m, z))) {
16574
16577
  var se, Y = k.above(m, {
16575
16578
  match: (ue) => De.isElement(ue) && k.isBlock(m, ue),
16576
16579
  at: U
@@ -16596,10 +16599,10 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16596
16599
  }, [m, g.onClick, s]),
16597
16600
  onCompositionEnd: ft((H) => {
16598
16601
  if (ce.hasSelectableTarget(m, H.target)) {
16599
- var q;
16602
+ var z;
16600
16603
  if (ce.isComposing(m) && Promise.resolve().then(() => {
16601
16604
  v(!1), Sa.set(m, !1);
16602
- }), (q = L.current) === null || q === void 0 || q.handleCompositionEnd(H), vn(H, g.onCompositionEnd) || Tn)
16605
+ }), (z = L.current) === null || z === void 0 || z.handleCompositionEnd(H), vn(H, g.onCompositionEnd) || Tn)
16603
16606
  return;
16604
16607
  if (!Ro && !Zk && !Vk && !Xk && !Qk && H.data) {
16605
16608
  var U = wr.get(m);
@@ -16614,8 +16617,8 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16614
16617
  }, [g.onCompositionUpdate, m]),
16615
16618
  onCompositionStart: ft((H) => {
16616
16619
  if (ce.hasSelectableTarget(m, H.target)) {
16617
- var q;
16618
- if ((q = L.current) === null || q === void 0 || q.handleCompositionStart(H), vn(H, g.onCompositionStart) || Tn)
16620
+ var z;
16621
+ if ((z = L.current) === null || z === void 0 || z.handleCompositionStart(H), vn(H, g.onCompositionStart) || Tn)
16619
16622
  return;
16620
16623
  v(!0);
16621
16624
  var {
@@ -16634,26 +16637,26 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16634
16637
  if (!s && ce.hasSelectableTarget(m, H.target) && !vn(H, g.onCut) && !bv(H)) {
16635
16638
  H.preventDefault(), ce.setFragmentData(m, H.clipboardData, "cut");
16636
16639
  var {
16637
- selection: q
16640
+ selection: z
16638
16641
  } = m;
16639
- if (q)
16640
- if (oe.isExpanded(q))
16642
+ if (z)
16643
+ if (oe.isExpanded(z))
16641
16644
  k.deleteFragment(m);
16642
16645
  else {
16643
- var U = Ee.parent(m, q.anchor.path);
16646
+ var U = Ee.parent(m, z.anchor.path);
16644
16647
  k.isVoid(m, U) && le.delete(m);
16645
16648
  }
16646
16649
  }
16647
16650
  }, [s, m, g.onCut]),
16648
16651
  onDragOver: ft((H) => {
16649
16652
  if (ce.hasTarget(m, H.target) && !vn(H, g.onDragOver)) {
16650
- var q = ce.toSlateNode(m, H.target);
16651
- De.isElement(q) && k.isVoid(m, q) && H.preventDefault();
16653
+ var z = ce.toSlateNode(m, H.target);
16654
+ De.isElement(z) && k.isVoid(m, z) && H.preventDefault();
16652
16655
  }
16653
16656
  }, [g.onDragOver, m]),
16654
16657
  onDragStart: ft((H) => {
16655
16658
  if (!s && ce.hasTarget(m, H.target) && !vn(H, g.onDragStart)) {
16656
- var q = ce.toSlateNode(m, H.target), U = ce.findPath(m, q), j = De.isElement(q) && k.isVoid(m, q) || k.void(m, {
16659
+ var z = ce.toSlateNode(m, H.target), U = ce.findPath(m, z), j = De.isElement(z) && k.isVoid(m, z) || k.void(m, {
16657
16660
  at: U,
16658
16661
  voids: !0
16659
16662
  });
@@ -16667,12 +16670,12 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16667
16670
  onDrop: ft((H) => {
16668
16671
  if (!s && ce.hasTarget(m, H.target) && !vn(H, g.onDrop)) {
16669
16672
  H.preventDefault();
16670
- var q = m.selection, U = ce.findEventRange(m, H), j = H.dataTransfer;
16671
- le.select(m, U), R.isDraggingInternally && q && !oe.equals(q, U) && !k.void(m, {
16673
+ var z = m.selection, U = ce.findEventRange(m, H), j = H.dataTransfer;
16674
+ le.select(m, U), R.isDraggingInternally && z && !oe.equals(z, U) && !k.void(m, {
16672
16675
  at: U,
16673
16676
  voids: !0
16674
16677
  }) && le.delete(m, {
16675
- at: q
16678
+ at: z
16676
16679
  }), ce.insertData(m, j), ce.isFocused(m) || ce.focus(m);
16677
16680
  }
16678
16681
  R.isDraggingInternally = !1;
@@ -16682,9 +16685,9 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16682
16685
  }, [s, R, g, m]),
16683
16686
  onFocus: ft((H) => {
16684
16687
  if (!s && !R.isUpdatingSelection && ce.hasEditableTarget(m, H.target) && !vn(H, g.onFocus)) {
16685
- var q = ce.toDOMNode(m, m), U = ce.findDocumentOrShadowRoot(m);
16686
- if (R.latestElement = U.activeElement, Es && H.target !== q) {
16687
- q.focus();
16688
+ var z = ce.toDOMNode(m, m), U = ce.findDocumentOrShadowRoot(m);
16689
+ if (R.latestElement = U.activeElement, Es && H.target !== z) {
16690
+ z.focus();
16688
16691
  return;
16689
16692
  }
16690
16693
  Yi.set(m, !0);
@@ -16692,8 +16695,8 @@ var nO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Tb(e)), rO = (
16692
16695
  }, [s, R, m, g.onFocus]),
16693
16696
  onKeyDown: ft((H) => {
16694
16697
  if (!s && ce.hasEditableTarget(m, H.target)) {
16695
- var q;
16696
- (q = L.current) === null || q === void 0 || q.handleKeyDown(H);
16698
+ var z;
16699
+ (z = L.current) === null || z === void 0 || z.handleKeyDown(H);
16697
16700
  var {
16698
16701
  nativeEvent: U
16699
16702
  } = H;
@@ -19794,8 +19797,8 @@ function LN(e, t, n) {
19794
19797
  }
19795
19798
  function y(B) {
19796
19799
  if (B === null || B === 47 || B === 62 || Pn(B)) {
19797
- const H = B === 47, q = s.toLowerCase();
19798
- return !H && !a && Vv.includes(q) ? (i = 1, r.interrupt ? t(B) : O(B)) : PN.includes(s.toLowerCase()) ? (i = 6, H ? (e.consume(B), v) : r.interrupt ? t(B) : O(B)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(B) : a ? E(B) : b(B));
19800
+ const H = B === 47, z = s.toLowerCase();
19801
+ return !H && !a && Vv.includes(z) ? (i = 1, r.interrupt ? t(B) : O(B)) : PN.includes(s.toLowerCase()) ? (i = 6, H ? (e.consume(B), v) : r.interrupt ? t(B) : O(B)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(B) : a ? E(B) : b(B));
19799
19802
  }
19800
19803
  return B === 45 || Ar(B) ? (e.consume(B), s += String.fromCharCode(B), y) : n(B);
19801
19804
  }
@@ -19833,10 +19836,10 @@ function LN(e, t, n) {
19833
19836
  return B === null || ze(B) ? O(B) : Tt(B) ? (e.consume(B), P) : n(B);
19834
19837
  }
19835
19838
  function O(B) {
19836
- return B === 45 && i === 2 ? (e.consume(B), z) : B === 60 && i === 1 ? (e.consume(B), N) : B === 62 && i === 4 ? (e.consume(B), _) : B === 63 && i === 3 ? (e.consume(B), D) : B === 93 && i === 5 ? (e.consume(B), X) : ze(B) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(FN, Q, S)(B)) : B === null || ze(B) ? (e.exit("htmlFlowData"), S(B)) : (e.consume(B), O);
19839
+ return B === 45 && i === 2 ? (e.consume(B), q) : B === 60 && i === 1 ? (e.consume(B), N) : B === 62 && i === 4 ? (e.consume(B), C) : B === 63 && i === 3 ? (e.consume(B), D) : B === 93 && i === 5 ? (e.consume(B), X) : ze(B) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(FN, Z, S)(B)) : B === null || ze(B) ? (e.exit("htmlFlowData"), S(B)) : (e.consume(B), O);
19837
19840
  }
19838
19841
  function S(B) {
19839
- return e.check(BN, I, Q)(B);
19842
+ return e.check(BN, I, Z)(B);
19840
19843
  }
19841
19844
  function I(B) {
19842
19845
  return e.enter("lineEnding"), e.consume(B), e.exit("lineEnding"), $;
@@ -19844,7 +19847,7 @@ function LN(e, t, n) {
19844
19847
  function $(B) {
19845
19848
  return B === null || ze(B) ? S(B) : (e.enter("htmlFlowData"), O(B));
19846
19849
  }
19847
- function z(B) {
19850
+ function q(B) {
19848
19851
  return B === 45 ? (e.consume(B), D) : O(B);
19849
19852
  }
19850
19853
  function N(B) {
@@ -19853,7 +19856,7 @@ function LN(e, t, n) {
19853
19856
  function te(B) {
19854
19857
  if (B === 62) {
19855
19858
  const H = s.toLowerCase();
19856
- return Vv.includes(H) ? (e.consume(B), _) : O(B);
19859
+ return Vv.includes(H) ? (e.consume(B), C) : O(B);
19857
19860
  }
19858
19861
  return Ur(B) && s.length < 8 ? (e.consume(B), s += String.fromCharCode(B), te) : O(B);
19859
19862
  }
@@ -19861,12 +19864,12 @@ function LN(e, t, n) {
19861
19864
  return B === 93 ? (e.consume(B), D) : O(B);
19862
19865
  }
19863
19866
  function D(B) {
19864
- return B === 62 ? (e.consume(B), _) : B === 45 && i === 2 ? (e.consume(B), D) : O(B);
19867
+ return B === 62 ? (e.consume(B), C) : B === 45 && i === 2 ? (e.consume(B), D) : O(B);
19865
19868
  }
19866
- function _(B) {
19867
- return B === null || ze(B) ? (e.exit("htmlFlowData"), Q(B)) : (e.consume(B), _);
19869
+ function C(B) {
19870
+ return B === null || ze(B) ? (e.exit("htmlFlowData"), Z(B)) : (e.consume(B), C);
19868
19871
  }
19869
- function Q(B) {
19872
+ function Z(B) {
19870
19873
  return e.exit("htmlFlow"), t(B);
19871
19874
  }
19872
19875
  }
@@ -19913,11 +19916,11 @@ function UN(e, t, n) {
19913
19916
  return D === 45 ? (e.consume(D), p) : d(D);
19914
19917
  }
19915
19918
  function p(D) {
19916
- return D === 62 ? z(D) : D === 45 ? f(D) : d(D);
19919
+ return D === 62 ? q(D) : D === 45 ? f(D) : d(D);
19917
19920
  }
19918
19921
  function g(D) {
19919
- const _ = "CDATA[";
19920
- return D === _.charCodeAt(a++) ? (e.consume(D), a === _.length ? m : g) : n(D);
19922
+ const C = "CDATA[";
19923
+ return D === C.charCodeAt(a++) ? (e.consume(D), a === C.length ? m : g) : n(D);
19921
19924
  }
19922
19925
  function m(D) {
19923
19926
  return D === null ? n(D) : D === 93 ? (e.consume(D), y) : ze(D) ? (s = m, N(D)) : (e.consume(D), m);
@@ -19926,16 +19929,16 @@ function UN(e, t, n) {
19926
19929
  return D === 93 ? (e.consume(D), v) : m(D);
19927
19930
  }
19928
19931
  function v(D) {
19929
- return D === 62 ? z(D) : D === 93 ? (e.consume(D), v) : m(D);
19932
+ return D === 62 ? q(D) : D === 93 ? (e.consume(D), v) : m(D);
19930
19933
  }
19931
19934
  function E(D) {
19932
- return D === null || D === 62 ? z(D) : ze(D) ? (s = E, N(D)) : (e.consume(D), E);
19935
+ return D === null || D === 62 ? q(D) : ze(D) ? (s = E, N(D)) : (e.consume(D), E);
19933
19936
  }
19934
19937
  function b(D) {
19935
19938
  return D === null ? n(D) : D === 63 ? (e.consume(D), x) : ze(D) ? (s = b, N(D)) : (e.consume(D), b);
19936
19939
  }
19937
19940
  function x(D) {
19938
- return D === 62 ? z(D) : b(D);
19941
+ return D === 62 ? q(D) : b(D);
19939
19942
  }
19940
19943
  function T(D) {
19941
19944
  return Ur(D) ? (e.consume(D), w) : n(D);
@@ -19944,13 +19947,13 @@ function UN(e, t, n) {
19944
19947
  return D === 45 || Ar(D) ? (e.consume(D), w) : A(D);
19945
19948
  }
19946
19949
  function A(D) {
19947
- return ze(D) ? (s = A, N(D)) : Tt(D) ? (e.consume(D), A) : z(D);
19950
+ return ze(D) ? (s = A, N(D)) : Tt(D) ? (e.consume(D), A) : q(D);
19948
19951
  }
19949
19952
  function F(D) {
19950
19953
  return D === 45 || Ar(D) ? (e.consume(D), F) : D === 47 || D === 62 || Pn(D) ? R(D) : n(D);
19951
19954
  }
19952
19955
  function R(D) {
19953
- return D === 47 ? (e.consume(D), z) : D === 58 || D === 95 || Ur(D) ? (e.consume(D), L) : ze(D) ? (s = R, N(D)) : Tt(D) ? (e.consume(D), R) : z(D);
19956
+ return D === 47 ? (e.consume(D), q) : D === 58 || D === 95 || Ur(D) ? (e.consume(D), L) : ze(D) ? (s = R, N(D)) : Tt(D) ? (e.consume(D), R) : q(D);
19954
19957
  }
19955
19958
  function L(D) {
19956
19959
  return D === 45 || D === 46 || D === 58 || D === 95 || Ar(D) ? (e.consume(D), L) : P(D);
@@ -19970,7 +19973,7 @@ function UN(e, t, n) {
19970
19973
  function $(D) {
19971
19974
  return D === 47 || D === 62 || Pn(D) ? R(D) : n(D);
19972
19975
  }
19973
- function z(D) {
19976
+ function q(D) {
19974
19977
  return D === 62 ? (e.consume(D), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(D);
19975
19978
  }
19976
19979
  function N(D) {
@@ -20526,13 +20529,13 @@ function EI(e, t, n) {
20526
20529
  }
20527
20530
  function A(P, O) {
20528
20531
  return S;
20529
- function S(I, $, z) {
20532
+ function S(I, $, q) {
20530
20533
  let N, te, X, D;
20531
- return Array.isArray(I) ? Q(I) : "tokenize" in I ? (
20534
+ return Array.isArray(I) ? Z(I) : "tokenize" in I ? (
20532
20535
  // @ts-expect-error Looks like a construct.
20533
- Q([I])
20534
- ) : _(I);
20535
- function _(U) {
20536
+ Z([I])
20537
+ ) : C(I);
20538
+ function C(U) {
20536
20539
  return j;
20537
20540
  function j(se) {
20538
20541
  const Y = se !== null && U[se], ee = se !== null && U.null, ae = [
@@ -20541,31 +20544,31 @@ function EI(e, t, n) {
20541
20544
  ...Array.isArray(Y) ? Y : Y ? [Y] : [],
20542
20545
  ...Array.isArray(ee) ? ee : ee ? [ee] : []
20543
20546
  ];
20544
- return Q(ae)(se);
20547
+ return Z(ae)(se);
20545
20548
  }
20546
20549
  }
20547
- function Q(U) {
20548
- return N = U, te = 0, U.length === 0 ? z : B(U[te]);
20550
+ function Z(U) {
20551
+ return N = U, te = 0, U.length === 0 ? q : B(U[te]);
20549
20552
  }
20550
20553
  function B(U) {
20551
20554
  return j;
20552
20555
  function j(se) {
20553
- return D = R(), X = U, U.partial || (u.currentConstruct = U), U.name && u.parser.constructs.disable.null.includes(U.name) ? q() : U.tokenize.call(
20556
+ return D = R(), X = U, U.partial || (u.currentConstruct = U), U.name && u.parser.constructs.disable.null.includes(U.name) ? z() : U.tokenize.call(
20554
20557
  // If we do have fields, create an object w/ `context` as its
20555
20558
  // prototype.
20556
20559
  // This allows a “live binding”, which is needed for `interrupt`.
20557
20560
  O ? Object.assign(Object.create(u), O) : u,
20558
20561
  l,
20559
20562
  H,
20560
- q
20563
+ z
20561
20564
  )(se);
20562
20565
  }
20563
20566
  }
20564
20567
  function H(U) {
20565
20568
  return P(X, D), $;
20566
20569
  }
20567
- function q(U) {
20568
- return D.restore(), ++te < N.length ? B(N[te]) : z;
20570
+ function z(U) {
20571
+ return D.restore(), ++te < N.length ? B(N[te]) : q;
20569
20572
  }
20570
20573
  }
20571
20574
  }
@@ -20580,10 +20583,10 @@ function EI(e, t, n) {
20580
20583
  function R() {
20581
20584
  const P = g(), O = u.previous, S = u.currentConstruct, I = u.events.length, $ = Array.from(o);
20582
20585
  return {
20583
- restore: z,
20586
+ restore: q,
20584
20587
  from: I
20585
20588
  };
20586
- function z() {
20589
+ function q() {
20587
20590
  r = P, u.previous = O, u.currentConstruct = S, u.events.length = I, o = $, L();
20588
20591
  }
20589
20592
  }
@@ -20851,8 +20854,8 @@ function $I(e) {
20851
20854
  autolinkProtocol: j,
20852
20855
  blockQuote: l(),
20853
20856
  characterEscapeValue: L,
20854
- characterReferenceMarkerHexadecimal: q,
20855
- characterReferenceMarkerNumeric: q,
20857
+ characterReferenceMarkerHexadecimal: z,
20858
+ characterReferenceMarkerNumeric: z,
20856
20859
  characterReferenceValue: U,
20857
20860
  codeFenced: l(y),
20858
20861
  codeFencedFence: m,
@@ -20878,15 +20881,15 @@ function $I(e) {
20878
20881
  label: X,
20879
20882
  labelText: te,
20880
20883
  lineEnding: P,
20881
- link: l(z),
20884
+ link: l(q),
20882
20885
  listItem: l(),
20883
20886
  listOrdered: l(),
20884
20887
  listUnordered: l(),
20885
20888
  paragraph: l(),
20886
20889
  referenceString: H,
20887
20890
  resourceDestinationString: D,
20888
- resourceTitleString: _,
20889
- resource: Q,
20891
+ resourceTitleString: C,
20892
+ resource: Z,
20890
20893
  setextHeading: l(F),
20891
20894
  setextHeadingLineSequence: A,
20892
20895
  setextHeadingText: w,
@@ -20912,25 +20915,25 @@ function $I(e) {
20912
20915
  resume: c,
20913
20916
  data: n
20914
20917
  }, ve = [];
20915
- let Z = -1;
20916
- for (; ++Z < ie.length; )
20917
- if (ie[Z][1].type === "listOrdered" || ie[Z][1].type === "listUnordered")
20918
- if (ie[Z][0] === "enter")
20919
- ve.push(Z);
20918
+ let Q = -1;
20919
+ for (; ++Q < ie.length; )
20920
+ if (ie[Q][1].type === "listOrdered" || ie[Q][1].type === "listUnordered")
20921
+ if (ie[Q][0] === "enter")
20922
+ ve.push(Q);
20920
20923
  else {
20921
20924
  const de = ve.pop();
20922
- Z = i(ie, de, Z);
20925
+ Q = i(ie, de, Q);
20923
20926
  }
20924
- for (Z = -1; ++Z < ie.length; ) {
20925
- const de = t[ie[Z][0]];
20926
- jb.call(de, ie[Z][1].type) && de[ie[Z][1].type].call(
20927
+ for (Q = -1; ++Q < ie.length; ) {
20928
+ const de = t[ie[Q][0]];
20929
+ jb.call(de, ie[Q][1].type) && de[ie[Q][1].type].call(
20927
20930
  Object.assign(
20928
20931
  {
20929
- sliceSerialize: ie[Z][2].sliceSerialize
20932
+ sliceSerialize: ie[Q][2].sliceSerialize
20930
20933
  },
20931
20934
  Ie
20932
20935
  ),
20933
- ie[Z][1]
20936
+ ie[Q][1]
20934
20937
  );
20935
20938
  }
20936
20939
  if (Ie.tokenStack.length > 0) {
@@ -20952,23 +20955,23 @@ function $I(e) {
20952
20955
  offset: 0
20953
20956
  }
20954
20957
  )
20955
- }, Z = -1; ++Z < t.transforms.length; )
20956
- ge = t.transforms[Z](ge) || ge;
20958
+ }, Q = -1; ++Q < t.transforms.length; )
20959
+ ge = t.transforms[Q](ge) || ge;
20957
20960
  return ge;
20958
20961
  }
20959
20962
  function i(ie, ge, Ie) {
20960
- let ve = ge - 1, Z = -1, de = !1, xe, Me, vt, at;
20963
+ let ve = ge - 1, Q = -1, de = !1, xe, Me, vt, at;
20961
20964
  for (; ++ve <= Ie; ) {
20962
20965
  const gt = ie[ve];
20963
20966
  switch (gt[1].type) {
20964
20967
  case "listUnordered":
20965
20968
  case "listOrdered":
20966
20969
  case "blockQuote": {
20967
- gt[0] === "enter" ? Z++ : Z--, at = void 0;
20970
+ gt[0] === "enter" ? Q++ : Q--, at = void 0;
20968
20971
  break;
20969
20972
  }
20970
20973
  case "lineEndingBlank": {
20971
- gt[0] === "enter" && (xe && !at && !Z && !vt && (vt = ve), at = void 0);
20974
+ gt[0] === "enter" && (xe && !at && !Q && !vt && (vt = ve), at = void 0);
20972
20975
  break;
20973
20976
  }
20974
20977
  case "linePrefix":
@@ -20980,7 +20983,7 @@ function $I(e) {
20980
20983
  default:
20981
20984
  at = void 0;
20982
20985
  }
20983
- if (!Z && gt[0] === "enter" && gt[1].type === "listItemPrefix" || Z === -1 && gt[0] === "exit" && (gt[1].type === "listUnordered" || gt[1].type === "listOrdered")) {
20986
+ if (!Q && gt[0] === "enter" && gt[1].type === "listItemPrefix" || Q === -1 && gt[0] === "exit" && (gt[1].type === "listUnordered" || gt[1].type === "listOrdered")) {
20984
20987
  if (xe) {
20985
20988
  let zt = ve;
20986
20989
  for (Me = void 0; zt--; ) {
@@ -21148,7 +21151,7 @@ function $I(e) {
21148
21151
  const ie = this.resume(), ge = this.stack[this.stack.length - 1];
21149
21152
  ge.value = ie;
21150
21153
  }
21151
- function z() {
21154
+ function q() {
21152
21155
  const ie = this.stack[this.stack.length - 1];
21153
21156
  if (this.data.inReference) {
21154
21157
  const ge = this.data.referenceType || "shortcut";
@@ -21182,11 +21185,11 @@ function $I(e) {
21182
21185
  const ie = this.resume(), ge = this.stack[this.stack.length - 1];
21183
21186
  ge.url = ie;
21184
21187
  }
21185
- function _() {
21188
+ function C() {
21186
21189
  const ie = this.resume(), ge = this.stack[this.stack.length - 1];
21187
21190
  ge.title = ie;
21188
21191
  }
21189
- function Q() {
21192
+ function Z() {
21190
21193
  this.data.inReference = void 0;
21191
21194
  }
21192
21195
  function B() {
@@ -21198,7 +21201,7 @@ function $I(e) {
21198
21201
  this.sliceSerialize(ie)
21199
21202
  ).toLowerCase(), this.data.referenceType = "full";
21200
21203
  }
21201
- function q(ie) {
21204
+ function z(ie) {
21202
21205
  this.data.characterReferenceType = ie.type;
21203
21206
  }
21204
21207
  function U(ie) {
@@ -21208,8 +21211,8 @@ function $I(e) {
21208
21211
  ge,
21209
21212
  Ie === "characterReferenceMarkerNumeric" ? 10 : 16
21210
21213
  ), this.data.characterReferenceType = void 0) : ve = qp(ge);
21211
- const Z = this.stack.pop();
21212
- Z.value += ve, Z.position.end = Mi(ie.end);
21214
+ const Q = this.stack.pop();
21215
+ Q.value += ve, Q.position.end = Mi(ie.end);
21213
21216
  }
21214
21217
  function j(ie) {
21215
21218
  L.call(this, ie);
@@ -23182,8 +23185,8 @@ const iT = ({
23182
23185
  getLinkPreview: v = () => Promise.resolve({}),
23183
23186
  onMention: E = () => {
23184
23187
  },
23185
- reportError: b = (q) => {
23186
- console.error(q);
23188
+ reportError: b = (z) => {
23189
+ console.error(z);
23187
23190
  }
23188
23191
  } = a || {}, x = [
23189
23192
  {
@@ -23219,15 +23222,15 @@ const iT = ({
23219
23222
  lastKey: S,
23220
23223
  hasInteracted: I,
23221
23224
  hasLoaded: $,
23222
- enrichedUrl: z,
23225
+ enrichedUrl: q,
23223
23226
  mentionPopover: N
23224
- } = w, te = async (q) => {
23225
- const U = await v(q);
23227
+ } = w, te = async (z) => {
23228
+ const U = await v(z);
23226
23229
  U.url && A([{ type: "enrichedUrl", value: U }]);
23227
23230
  }, X = `rte-${e}`, D = ft(
23228
- (q) => /* @__PURE__ */ h.jsx(S6, { ...q }),
23231
+ (z) => /* @__PURE__ */ h.jsx(S6, { ...z }),
23229
23232
  []
23230
- ), _ = ft((q) => /* @__PURE__ */ h.jsx(k6, { ...q }), []), Q = Sr(
23233
+ ), C = ft((z) => /* @__PURE__ */ h.jsx(k6, { ...z }), []), Z = Sr(
23231
23234
  () => MP(
23232
23235
  qP(
23233
23236
  WP(
@@ -23240,28 +23243,28 @@ const iT = ({
23240
23243
  b
23241
23244
  ),
23242
23245
  []
23243
- ), B = (q) => {
23244
- if (!Q || q !== X)
23246
+ ), B = (z) => {
23247
+ if (!Z || z !== X)
23245
23248
  return;
23246
- const U = k.end(Q, []);
23247
- le.select(Q, U), ce.focus(Q);
23249
+ const U = k.end(Z, []);
23250
+ le.select(Z, U), ce.focus(Z);
23248
23251
  };
23249
23252
  me(() => {
23250
- const q = (U) => {
23253
+ const z = (U) => {
23251
23254
  var Y;
23252
23255
  const j = U, se = ((Y = j == null ? void 0 : j.detail) == null ? void 0 : Y.id) || null;
23253
23256
  se && B(se);
23254
23257
  };
23255
- return window.addEventListener("focusEditor", q), () => {
23256
- window.removeEventListener("focusEditor", q);
23258
+ return window.addEventListener("focusEditor", z), () => {
23259
+ window.removeEventListener("focusEditor", z);
23257
23260
  };
23258
23261
  }, []), me(() => {
23259
- if (Q.children.length > 0 && !$) {
23262
+ if (Z.children.length > 0 && !$) {
23260
23263
  if (A([{ type: "hasLoaded", value: !0 }]), !s)
23261
23264
  return;
23262
23265
  B(X);
23263
23266
  }
23264
- }, [Q.children.length, L]), me(() => {
23267
+ }, [Z.children.length, L]), me(() => {
23265
23268
  R && (async () => {
23266
23269
  let U = ar(R);
23267
23270
  if (U.endsWith("<br/>") && (U = U.slice(0, -5)), U.includes("<")) {
@@ -23285,49 +23288,49 @@ const iT = ({
23285
23288
  { type: "editorKey", value: R.toString() }
23286
23289
  ];
23287
23290
  o != null && o.link && (se.push({ type: "enrichedUrl", value: o.link }), o.link.url && te(o.link.url)), A(se), setTimeout(() => {
23288
- A([{ type: "stringValue", value: Zv(Q) }]);
23291
+ A([{ type: "stringValue", value: Zv(Z) }]);
23289
23292
  }, 150);
23290
23293
  });
23291
23294
  })();
23292
23295
  }, [R]), me(() => {
23293
- if (z === void 0 && Q) {
23294
- const U = VI(Q);
23296
+ if (q === void 0 && Z) {
23297
+ const U = VI(Z);
23295
23298
  U && te(U);
23296
23299
  }
23297
- const q = (U) => {
23300
+ const z = (U) => {
23298
23301
  var Y;
23299
23302
  const j = U, se = ((Y = j == null ? void 0 : j.detail) == null ? void 0 : Y.url) || null;
23300
- se && z && z.url === se && A([{ type: "enrichedUrl", value: void 0 }]);
23303
+ se && q && q.url === se && A([{ type: "enrichedUrl", value: void 0 }]);
23301
23304
  };
23302
- return window.addEventListener("linkRemoved", q), () => {
23303
- window.removeEventListener("linkRemoved", q);
23305
+ return window.addEventListener("linkRemoved", z), () => {
23306
+ window.removeEventListener("linkRemoved", z);
23304
23307
  };
23305
- }, [z]), me(() => {
23308
+ }, [q]), me(() => {
23306
23309
  if (t) {
23307
23310
  Ac.lastIndex = 0;
23308
- const q = t.match(Ac);
23309
- q && q.length === 1 && q[0].length === t.length && !I && A([{ type: "originalValue", value: t }]);
23311
+ const z = t.match(Ac);
23312
+ z && z.length === 1 && z[0].length === t.length && !I && A([{ type: "originalValue", value: t }]);
23310
23313
  }
23311
- t !== "" || !Q || xc(R, t) && !I || (k.withoutNormalizing(Q, () => {
23312
- le.delete(Q, {
23314
+ t !== "" || !Z || xc(R, t) && !I || (k.withoutNormalizing(Z, () => {
23315
+ le.delete(Z, {
23313
23316
  at: {
23314
- anchor: k.start(Q, []),
23315
- focus: k.end(Q, [])
23317
+ anchor: k.start(Z, []),
23318
+ focus: k.end(Z, [])
23316
23319
  }
23317
- }), le.deselect(Q), Q.children.length !== 0 && le.unwrapNodes(Q, { at: [0] }), le.insertNodes(Q, x, { at: [0] });
23320
+ }), le.deselect(Z), Z.children.length !== 0 && le.unwrapNodes(Z, { at: [0] }), le.insertNodes(Z, x, { at: [0] });
23318
23321
  }), A([
23319
23322
  { type: "initialValue", value: x },
23320
23323
  { type: "lastAnchor", value: null },
23321
23324
  { type: "enrichedUrl", value: !1 }
23322
23325
  ]));
23323
23326
  }, [t]), me(() => {
23324
- y({ link: z });
23325
- }, [z]), me(() => {
23326
- P === "" && z && A([{ type: "enrichedUrl", value: void 0 }]);
23327
+ y({ link: q });
23328
+ }, [q]), me(() => {
23329
+ P === "" && q && A([{ type: "enrichedUrl", value: void 0 }]);
23327
23330
  }, [P]);
23328
23331
  const H = ul(() => {
23329
23332
  GI({
23330
- editor: Q,
23333
+ editor: Z,
23331
23334
  isShowing: N.show,
23332
23335
  numberOfUsers: N.numberOfUsers,
23333
23336
  listMembers: p,
@@ -23349,12 +23352,12 @@ const iT = ({
23349
23352
  /* @__PURE__ */ h.jsxs(
23350
23353
  fO,
23351
23354
  {
23352
- editor: Q,
23355
+ editor: Z,
23353
23356
  initialValue: L,
23354
- onChange: (q) => {
23355
- if (Q.operations.some((j) => j.type !== "set_selection")) {
23356
- let j = ZI(q);
23357
- j === "<br>" && (j = ""), m(j, z), A([{ type: "stringValue", value: Zv(Q) }]), I || A([{ type: "hasInteracted", value: !0 }]), H(), d && console.log({ serialized: j, json: q });
23357
+ onChange: (z) => {
23358
+ if (Z.operations.some((j) => j.type !== "set_selection")) {
23359
+ let j = ZI(z);
23360
+ j === "<br>" && (j = ""), m(j, q), A([{ type: "stringValue", value: Zv(Z) }]), I || A([{ type: "hasInteracted", value: !0 }]), H(), d && console.log({ serialized: j, json: z });
23358
23361
  }
23359
23362
  },
23360
23363
  ...u,
@@ -23364,12 +23367,12 @@ const iT = ({
23364
23367
  {
23365
23368
  className: "editor",
23366
23369
  renderElement: D,
23367
- renderLeaf: _,
23370
+ renderLeaf: C,
23368
23371
  placeholder: n || c.formatMessage({ id: "richTextEditor_placeholder" }),
23369
23372
  autoFocus: s,
23370
23373
  tabIndex: 0,
23371
- onPaste: async (q) => {
23372
- const U = z !== !1, j = q.clipboardData.getData("text");
23374
+ onPaste: async (z) => {
23375
+ const U = q !== !1, j = z.clipboardData.getData("text");
23373
23376
  if (((Y) => {
23374
23377
  try {
23375
23378
  return new URL(Y), !0;
@@ -23388,27 +23391,27 @@ const iT = ({
23388
23391
  }
23389
23392
  }
23390
23393
  },
23391
- onKeyDown: (q) => {
23392
- if (q.key === "Enter") {
23393
- N.show && (q.preventDefault(), q.stopPropagation(), zb(Q, N, A, X));
23394
- const { selection: U } = Q;
23394
+ onKeyDown: (z) => {
23395
+ if (z.key === "Enter") {
23396
+ N.show && (z.preventDefault(), z.stopPropagation(), zb(Z, N, A, X));
23397
+ const { selection: U } = Z;
23395
23398
  if (U) {
23396
- const j = oe.isCollapsed(U), [se, Y] = k.node(Q, U, { depth: 1 });
23399
+ const j = oe.isCollapsed(U), [se, Y] = k.node(Z, U, { depth: 1 });
23397
23400
  let ee = se, ae = ee.type;
23398
23401
  const re = ee.children[0];
23399
23402
  if (ae === ne.h3) {
23400
- q.preventDefault(), q.stopPropagation();
23401
- const Ae = k.start(Q, Y), Oe = k.end(Q, Y), Ce = Qe.equals(U.anchor, Ae), ue = Qe.equals(U.anchor, Oe);
23403
+ z.preventDefault(), z.stopPropagation();
23404
+ const Ae = k.start(Z, Y), Oe = k.end(Z, Y), Ce = Qe.equals(U.anchor, Ae), ue = Qe.equals(U.anchor, Oe);
23402
23405
  if (Ce)
23403
- le.insertNodes(Q, x, { at: Y });
23406
+ le.insertNodes(Z, x, { at: Y });
23404
23407
  else if (ue)
23405
- le.insertNodes(Q, x, {
23408
+ le.insertNodes(Z, x, {
23406
23409
  at: V.next(Y)
23407
- }), le.select(Q, k.end(Q, V.next(Y)));
23410
+ }), le.select(Z, k.end(Z, V.next(Y)));
23408
23411
  else {
23409
- const he = U.anchor, [, Se] = k.parent(Q, U);
23410
- le.splitNodes(Q, { at: he }), le.setNodes(
23411
- Q,
23412
+ const he = U.anchor, [, Se] = k.parent(Z, U);
23413
+ le.splitNodes(Z, { at: he }), le.setNodes(
23414
+ Z,
23412
23415
  { type: ne.paragraph },
23413
23416
  { at: V.next(Se) }
23414
23417
  );
@@ -23416,49 +23419,49 @@ const iT = ({
23416
23419
  return;
23417
23420
  }
23418
23421
  if (re && [ne.ol, ne.ul].includes(re.type) && (ee = re, ae = re.type), ee && De.isElement(ee) && ae !== ne.paragraph) {
23419
- if (ae === ne.blockquote && !q.shiftKey) {
23420
- q.stopPropagation(), q.preventDefault(), le.insertNodes(Q, x);
23422
+ if (ae === ne.blockquote && !z.shiftKey) {
23423
+ z.stopPropagation(), z.preventDefault(), le.insertNodes(Z, x);
23421
23424
  return;
23422
23425
  }
23423
23426
  if (j) {
23424
- const [Ae, Oe] = k.parent(Q, U, {
23427
+ const [Ae, Oe] = k.parent(Z, U, {
23425
23428
  edge: "end"
23426
23429
  }), ue = Ae.type;
23427
23430
  if ([ne.ul, ne.ol].includes(ae))
23428
- if (q.stopPropagation(), q.preventDefault(), ue === ne.li && S === "Enter") {
23429
- Ae.children.length === 1 && "text" in Ae.children[0] && Ae.children[0].text === "" && le.removeNodes(Q, { at: Oe }), le.insertNodes(Q, x, {
23431
+ if (z.stopPropagation(), z.preventDefault(), ue === ne.li && S === "Enter") {
23432
+ Ae.children.length === 1 && "text" in Ae.children[0] && Ae.children[0].text === "" && le.removeNodes(Z, { at: Oe }), le.insertNodes(Z, x, {
23430
23433
  at: V.next(Y)
23431
23434
  }), le.select(
23432
- Q,
23433
- k.end(Q, V.next(Y))
23435
+ Z,
23436
+ k.end(Z, V.next(Y))
23434
23437
  );
23435
23438
  return;
23436
23439
  } else {
23437
- const [he, Se] = qI(Q, ne.li), Re = {
23440
+ const [he, Se] = qI(Z, ne.li), Re = {
23438
23441
  type: ne.li,
23439
23442
  children: [{ text: "" }]
23440
23443
  };
23441
- le.insertNodes(Q, Re, {
23444
+ le.insertNodes(Z, Re, {
23442
23445
  at: V.next(Se)
23443
23446
  }), le.select(
23444
- Q,
23445
- k.end(Q, V.next(Se))
23447
+ Z,
23448
+ k.end(Z, V.next(Se))
23446
23449
  );
23447
23450
  }
23448
23451
  }
23449
23452
  }
23450
23453
  }
23451
- } else if (q.key === "Escape") {
23454
+ } else if (z.key === "Escape") {
23452
23455
  if (N.show) {
23453
- q.preventDefault(), q.stopPropagation(), A([
23456
+ z.preventDefault(), z.stopPropagation(), A([
23454
23457
  { type: "mentionPopover", value: { ...N, show: !1 } }
23455
23458
  ]);
23456
23459
  return;
23457
23460
  }
23458
- } else if (["ArrowUp", "ArrowDown"].includes(q.key) && N.show) {
23459
- q.preventDefault(), q.stopPropagation();
23461
+ } else if (["ArrowUp", "ArrowDown"].includes(z.key) && N.show) {
23462
+ z.preventDefault(), z.stopPropagation();
23460
23463
  const { selectedUser: U, possibleUsers: j } = N;
23461
- let se = q.key === "ArrowUp" ? U - 1 : U + 1;
23464
+ let se = z.key === "ArrowUp" ? U - 1 : U + 1;
23462
23465
  se < 0 && (se = j.length - 1), se >= j.length + 1 && (se = 0), A([
23463
23466
  {
23464
23467
  type: "mentionPopover",
@@ -23466,21 +23469,21 @@ const iT = ({
23466
23469
  }
23467
23470
  ]);
23468
23471
  }
23469
- A([{ type: "lastKey", value: q.key }]), KI(q, Q, A, b);
23472
+ A([{ type: "lastKey", value: z.key }]), KI(z, Z, A, b);
23470
23473
  },
23471
23474
  onBlur: () => {
23472
- Q.selection && A([{ type: "lastAnchor", value: Q.selection.anchor }]);
23475
+ Z.selection && A([{ type: "lastAnchor", value: Z.selection.anchor }]);
23473
23476
  },
23474
23477
  onFocus: () => {
23475
23478
  if (O) {
23476
- if (!V.isPath(O.path) || !Ee.has(Q, O.path))
23479
+ if (!V.isPath(O.path) || !Ee.has(Z, O.path))
23477
23480
  return;
23478
- const q = Ee.get(Q, O.path);
23481
+ const z = Ee.get(Z, O.path);
23479
23482
  let U = 0;
23480
- if (Ne.isText(q) ? U = q.text.length : q.children && (U = q.children.length), O.offset > U)
23483
+ if (Ne.isText(z) ? U = z.text.length : z.children && (U = z.children.length), O.offset > U)
23481
23484
  return;
23482
23485
  try {
23483
- le.select(Q, {
23486
+ le.select(Z, {
23484
23487
  anchor: O,
23485
23488
  focus: O
23486
23489
  });
@@ -23492,26 +23495,26 @@ const iT = ({
23492
23495
  }
23493
23496
  }
23494
23497
  ),
23495
- z ? /* @__PURE__ */ h.jsx(
23498
+ q ? /* @__PURE__ */ h.jsx(
23496
23499
  oT,
23497
23500
  {
23498
- data: z,
23501
+ data: q,
23499
23502
  variant: "condensed",
23500
23503
  onClick: () => {
23501
23504
  A([{ type: "enrichedUrl", value: !1 }]);
23502
- const q = new CustomEvent("ariaLive", {
23505
+ const z = new CustomEvent("ariaLive", {
23503
23506
  detail: {
23504
23507
  message: c.formatMessage({
23505
23508
  id: "richTextEditor_link_enrichedUrl_aria_live"
23506
23509
  })
23507
23510
  }
23508
23511
  });
23509
- document.dispatchEvent(q);
23512
+ document.dispatchEvent(z);
23510
23513
  },
23511
23514
  "aria-label": c.formatMessage(
23512
23515
  { id: "richTextEditor_link_enrichedUrl_aria" },
23513
23516
  {
23514
- title: z.title || c.formatMessage({
23517
+ title: q.title || c.formatMessage({
23515
23518
  id: "richTextEditor_link_enrichedUrl_aria_fallback"
23516
23519
  })
23517
23520
  }
@@ -25141,12 +25144,12 @@ const vR = ({
25141
25144
  createContent: () => null,
25142
25145
  deleteContent: () => E({ replyId: w }),
25143
25146
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25144
- updateContent: (z, { body: N }) => y({ replyId: w, content: N })
25147
+ updateContent: (q, { body: N }) => y({ replyId: w, content: N })
25145
25148
  },
25146
25149
  likes: {
25147
25150
  createLike: () => v({ replyId: w }),
25148
25151
  deleteLike: () => b({ replyId: w, reactionId: $ }),
25149
- listLikes: (z) => o.list({ replyId: w, ...z })
25152
+ listLikes: (q) => o.list({ replyId: w, ...q })
25150
25153
  },
25151
25154
  comments: {},
25152
25155
  form: s
@@ -25302,7 +25305,7 @@ const fu = "ALL", ER = ({
25302
25305
  }, [S, R]);
25303
25306
  const [I, $] = fe(null);
25304
25307
  UE([E]), S4();
25305
- const z = {
25308
+ const q = {
25306
25309
  create: (N, te) => {
25307
25310
  const { body: X } = te;
25308
25311
  x({ activityId: e, content: X });
@@ -25326,7 +25329,7 @@ const fu = "ALL", ER = ({
25326
25329
  isMember: i,
25327
25330
  join: s,
25328
25331
  leave: o,
25329
- formFunctions: z,
25332
+ formFunctions: q,
25330
25333
  meta: { isAutoFocused: f === Vt.Courses || !1 }
25331
25334
  }
25332
25335
  ),
@@ -30373,17 +30376,17 @@ function bB(e) {
30373
30376
  function TB(e) {
30374
30377
  var t = e.state, n = e.options, r = e.name;
30375
30378
  if (!t.modifiersData[r]._skip) {
30376
- for (var i = n.mainAxis, a = i === void 0 ? !0 : i, s = n.altAxis, o = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, g = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, y = t.options.placement, v = Vr(y), E = v === y, b = l || (E || !g ? [pc(y)] : bB(y)), x = [y].concat(b).reduce(function(H, q) {
30377
- return H.concat(Vr(q) === im ? EB(t, {
30378
- placement: q,
30379
+ for (var i = n.mainAxis, a = i === void 0 ? !0 : i, s = n.altAxis, o = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, g = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, y = t.options.placement, v = Vr(y), E = v === y, b = l || (E || !g ? [pc(y)] : bB(y)), x = [y].concat(b).reduce(function(H, z) {
30380
+ return H.concat(Vr(z) === im ? EB(t, {
30381
+ placement: z,
30379
30382
  boundary: c,
30380
30383
  rootBoundary: d,
30381
30384
  padding: u,
30382
30385
  flipVariations: g,
30383
30386
  allowedAutoPlacements: m
30384
- }) : q);
30387
+ }) : z);
30385
30388
  }, []), T = t.rects.reference, w = t.rects.popper, A = /* @__PURE__ */ new Map(), F = !0, R = x[0], L = 0; L < x.length; L++) {
30386
- var P = x[L], O = Vr(P), S = qs(P) === Hs, I = [Rn, dr].indexOf(O) >= 0, $ = I ? "width" : "height", z = Tl(t, {
30389
+ var P = x[L], O = Vr(P), S = qs(P) === Hs, I = [Rn, dr].indexOf(O) >= 0, $ = I ? "width" : "height", q = Tl(t, {
30387
30390
  placement: P,
30388
30391
  boundary: c,
30389
30392
  rootBoundary: d,
@@ -30392,7 +30395,7 @@ function TB(e) {
30392
30395
  }), N = I ? S ? fr : Fn : S ? dr : Rn;
30393
30396
  T[$] > w[$] && (N = pc(N));
30394
30397
  var te = pc(N), X = [];
30395
- if (a && X.push(z[O] <= 0), o && X.push(z[N] <= 0, z[te] <= 0), X.every(function(H) {
30398
+ if (a && X.push(q[O] <= 0), o && X.push(q[N] <= 0, q[te] <= 0), X.every(function(H) {
30396
30399
  return H;
30397
30400
  })) {
30398
30401
  R = P, F = !1;
@@ -30401,18 +30404,18 @@ function TB(e) {
30401
30404
  A.set(P, X);
30402
30405
  }
30403
30406
  if (F)
30404
- for (var D = g ? 3 : 1, _ = function(q) {
30407
+ for (var D = g ? 3 : 1, C = function(z) {
30405
30408
  var U = x.find(function(j) {
30406
30409
  var se = A.get(j);
30407
30410
  if (se)
30408
- return se.slice(0, q).every(function(Y) {
30411
+ return se.slice(0, z).every(function(Y) {
30409
30412
  return Y;
30410
30413
  });
30411
30414
  });
30412
30415
  if (U)
30413
30416
  return R = U, "break";
30414
- }, Q = D; Q > 0; Q--) {
30415
- var B = _(Q);
30417
+ }, Z = D; Z > 0; Z--) {
30418
+ var B = C(Z);
30416
30419
  if (B === "break")
30417
30420
  break;
30418
30421
  }
@@ -30532,10 +30535,10 @@ function NB(e) {
30532
30535
  };
30533
30536
  if (w) {
30534
30537
  if (a) {
30535
- var S, I = x === "y" ? Rn : Fn, $ = x === "y" ? dr : fr, z = x === "y" ? "height" : "width", N = w[x], te = N + y[I], X = N - y[$], D = p ? -F[z] / 2 : 0, _ = E === Hs ? A[z] : F[z], Q = E === Hs ? -F[z] : -A[z], B = t.elements.arrow, H = p && B ? sm(B) : {
30538
+ var S, I = x === "y" ? Rn : Fn, $ = x === "y" ? dr : fr, q = x === "y" ? "height" : "width", N = w[x], te = N + y[I], X = N - y[$], D = p ? -F[q] / 2 : 0, C = E === Hs ? A[q] : F[q], Z = E === Hs ? -F[q] : -A[q], B = t.elements.arrow, H = p && B ? sm(B) : {
30536
30539
  width: 0,
30537
30540
  height: 0
30538
- }, q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : DT(), U = q[I], j = q[$], se = Yo(0, A[z], H[z]), Y = b ? A[z] / 2 - D - se - U - L.mainAxis : _ - se - U - L.mainAxis, ee = b ? -A[z] / 2 + D + se + j + L.mainAxis : Q + se + j + L.mainAxis, ae = t.elements.arrow && Bl(t.elements.arrow), re = ae ? x === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, Ae = (S = P == null ? void 0 : P[x]) != null ? S : 0, Oe = N + Y - Ae - re, Ce = N + ee - Ae, ue = Yo(p ? zc(te, Oe) : te, N, p ? Pa(X, Ce) : X);
30541
+ }, z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : DT(), U = z[I], j = z[$], se = Yo(0, A[q], H[q]), Y = b ? A[q] / 2 - D - se - U - L.mainAxis : C - se - U - L.mainAxis, ee = b ? -A[q] / 2 + D + se + j + L.mainAxis : Z + se + j + L.mainAxis, ae = t.elements.arrow && Bl(t.elements.arrow), re = ae ? x === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, Ae = (S = P == null ? void 0 : P[x]) != null ? S : 0, Oe = N + Y - Ae - re, Ce = N + ee - Ae, ue = Yo(p ? zc(te, Oe) : te, N, p ? Pa(X, Ce) : X);
30539
30542
  w[x] = ue, O[x] = ue - N;
30540
30543
  }
30541
30544
  if (o) {
@@ -33005,36 +33008,36 @@ function yj(e, t, n) {
33005
33008
  }
33006
33009
  function A(P, O) {
33007
33010
  return S;
33008
- function S(I, $, z) {
33011
+ function S(I, $, q) {
33009
33012
  var N, te, X, D;
33010
- return I.tokenize || "length" in I ? Q(Zd(I)) : _;
33011
- function _(U) {
33012
- return U in I || null in I ? Q(
33013
+ return I.tokenize || "length" in I ? Z(Zd(I)) : C;
33014
+ function C(U) {
33015
+ return U in I || null in I ? Z(
33013
33016
  I.null ? (
33014
33017
  /* c8 ignore next */
33015
33018
  Zd(I[U]).concat(Zd(I.null))
33016
33019
  ) : I[U]
33017
- )(U) : z(U);
33020
+ )(U) : q(U);
33018
33021
  }
33019
- function Q(U) {
33022
+ function Z(U) {
33020
33023
  return N = U, te = 0, B(U[te]);
33021
33024
  }
33022
33025
  function B(U) {
33023
33026
  return j;
33024
33027
  function j(se) {
33025
- return D = R(), X = U, U.partial || (u.currentConstruct = U), U.name && u.parser.constructs.disable.null.indexOf(U.name) > -1 ? q() : U.tokenize.call(
33028
+ return D = R(), X = U, U.partial || (u.currentConstruct = U), U.name && u.parser.constructs.disable.null.indexOf(U.name) > -1 ? z() : U.tokenize.call(
33026
33029
  O ? dj({}, u, O) : u,
33027
33030
  l,
33028
33031
  H,
33029
- q
33032
+ z
33030
33033
  )(se);
33031
33034
  }
33032
33035
  }
33033
33036
  function H(U) {
33034
33037
  return P(X, D), $;
33035
33038
  }
33036
- function q(U) {
33037
- return D.restore(), ++te < N.length ? B(N[te]) : z;
33039
+ function z(U) {
33040
+ return D.restore(), ++te < N.length ? B(N[te]) : q;
33038
33041
  }
33039
33042
  }
33040
33043
  }
@@ -33049,10 +33052,10 @@ function yj(e, t, n) {
33049
33052
  function R() {
33050
33053
  var P = g(), O = u.previous, S = u.currentConstruct, I = u.events.length, $ = Array.from(o);
33051
33054
  return {
33052
- restore: z,
33055
+ restore: q,
33053
33056
  from: I
33054
33057
  };
33055
- function z() {
33058
+ function q() {
33056
33059
  r = P, u.previous = O, u.currentConstruct = S, u.events.length = I, o = $, L();
33057
33060
  }
33058
33061
  }
@@ -33697,93 +33700,93 @@ function IU(e) {
33697
33700
  function PU(e, t, n) {
33698
33701
  var r = this, i, a, s, o, l;
33699
33702
  return u;
33700
- function u(_) {
33701
- return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(_), c;
33703
+ function u(C) {
33704
+ return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(C), c;
33702
33705
  }
33703
- function c(_) {
33704
- return _ === 33 ? (e.consume(_), d) : _ === 47 ? (e.consume(_), g) : _ === 63 ? (e.consume(_), i = 3, r.interrupt ? t : te) : bo(_) ? (e.consume(_), s = _u(_), a = !0, m) : n(_);
33706
+ function c(C) {
33707
+ return C === 33 ? (e.consume(C), d) : C === 47 ? (e.consume(C), g) : C === 63 ? (e.consume(C), i = 3, r.interrupt ? t : te) : bo(C) ? (e.consume(C), s = _u(C), a = !0, m) : n(C);
33705
33708
  }
33706
- function d(_) {
33707
- return _ === 45 ? (e.consume(_), i = 2, f) : _ === 91 ? (e.consume(_), i = 5, s = "CDATA[", o = 0, p) : bo(_) ? (e.consume(_), i = 4, r.interrupt ? t : te) : n(_);
33709
+ function d(C) {
33710
+ return C === 45 ? (e.consume(C), i = 2, f) : C === 91 ? (e.consume(C), i = 5, s = "CDATA[", o = 0, p) : bo(C) ? (e.consume(C), i = 4, r.interrupt ? t : te) : n(C);
33708
33711
  }
33709
- function f(_) {
33710
- return _ === 45 ? (e.consume(_), r.interrupt ? t : te) : n(_);
33712
+ function f(C) {
33713
+ return C === 45 ? (e.consume(C), r.interrupt ? t : te) : n(C);
33711
33714
  }
33712
- function p(_) {
33713
- return _ === s.charCodeAt(o++) ? (e.consume(_), o === s.length ? r.interrupt ? t : P : p) : n(_);
33715
+ function p(C) {
33716
+ return C === s.charCodeAt(o++) ? (e.consume(C), o === s.length ? r.interrupt ? t : P : p) : n(C);
33714
33717
  }
33715
- function g(_) {
33716
- return bo(_) ? (e.consume(_), s = _u(_), m) : n(_);
33718
+ function g(C) {
33719
+ return bo(C) ? (e.consume(C), s = _u(C), m) : n(C);
33717
33720
  }
33718
- function m(_) {
33719
- return _ === null || _ === 47 || _ === 62 || a5(_) ? _ !== 47 && a && s5.indexOf(s.toLowerCase()) > -1 ? (i = 1, r.interrupt ? t(_) : P(_)) : kU.indexOf(s.toLowerCase()) > -1 ? (i = 6, _ === 47 ? (e.consume(_), y) : r.interrupt ? t(_) : P(_)) : (i = 7, r.interrupt ? n(_) : a ? E(_) : v(_)) : _ === 45 || i5(_) ? (e.consume(_), s += _u(_), m) : n(_);
33721
+ function m(C) {
33722
+ return C === null || C === 47 || C === 62 || a5(C) ? C !== 47 && a && s5.indexOf(s.toLowerCase()) > -1 ? (i = 1, r.interrupt ? t(C) : P(C)) : kU.indexOf(s.toLowerCase()) > -1 ? (i = 6, C === 47 ? (e.consume(C), y) : r.interrupt ? t(C) : P(C)) : (i = 7, r.interrupt ? n(C) : a ? E(C) : v(C)) : C === 45 || i5(C) ? (e.consume(C), s += _u(C), m) : n(C);
33720
33723
  }
33721
- function y(_) {
33722
- return _ === 62 ? (e.consume(_), r.interrupt ? t : P) : n(_);
33724
+ function y(C) {
33725
+ return C === 62 ? (e.consume(C), r.interrupt ? t : P) : n(C);
33723
33726
  }
33724
- function v(_) {
33725
- return ss(_) ? (e.consume(_), v) : R(_);
33727
+ function v(C) {
33728
+ return ss(C) ? (e.consume(C), v) : R(C);
33726
33729
  }
33727
- function E(_) {
33728
- return _ === 47 ? (e.consume(_), R) : _ === 58 || _ === 95 || bo(_) ? (e.consume(_), b) : ss(_) ? (e.consume(_), E) : R(_);
33730
+ function E(C) {
33731
+ return C === 47 ? (e.consume(C), R) : C === 58 || C === 95 || bo(C) ? (e.consume(C), b) : ss(C) ? (e.consume(C), E) : R(C);
33729
33732
  }
33730
- function b(_) {
33731
- return _ === 45 || _ === 46 || _ === 58 || _ === 95 || i5(_) ? (e.consume(_), b) : x(_);
33733
+ function b(C) {
33734
+ return C === 45 || C === 46 || C === 58 || C === 95 || i5(C) ? (e.consume(C), b) : x(C);
33732
33735
  }
33733
- function x(_) {
33734
- return _ === 61 ? (e.consume(_), T) : ss(_) ? (e.consume(_), x) : E(_);
33736
+ function x(C) {
33737
+ return C === 61 ? (e.consume(C), T) : ss(C) ? (e.consume(C), x) : E(C);
33735
33738
  }
33736
- function T(_) {
33737
- return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? n(_) : _ === 34 || _ === 39 ? (e.consume(_), l = _, w) : ss(_) ? (e.consume(_), T) : (l = void 0, A(_));
33739
+ function T(C) {
33740
+ return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), l = C, w) : ss(C) ? (e.consume(C), T) : (l = void 0, A(C));
33738
33741
  }
33739
- function w(_) {
33740
- return _ === l ? (e.consume(_), F) : _ === null || as(_) ? n(_) : (e.consume(_), w);
33742
+ function w(C) {
33743
+ return C === l ? (e.consume(C), F) : C === null || as(C) ? n(C) : (e.consume(C), w);
33741
33744
  }
33742
- function A(_) {
33743
- return _ === null || _ === 34 || _ === 39 || _ === 60 || _ === 61 || _ === 62 || _ === 96 || a5(_) ? x(_) : (e.consume(_), A);
33745
+ function A(C) {
33746
+ return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 62 || C === 96 || a5(C) ? x(C) : (e.consume(C), A);
33744
33747
  }
33745
- function F(_) {
33746
- return _ === 47 || _ === 62 || ss(_) ? E(_) : n(_);
33748
+ function F(C) {
33749
+ return C === 47 || C === 62 || ss(C) ? E(C) : n(C);
33747
33750
  }
33748
- function R(_) {
33749
- return _ === 62 ? (e.consume(_), L) : n(_);
33751
+ function R(C) {
33752
+ return C === 62 ? (e.consume(C), L) : n(C);
33750
33753
  }
33751
- function L(_) {
33752
- return ss(_) ? (e.consume(_), L) : _ === null || as(_) ? P(_) : n(_);
33754
+ function L(C) {
33755
+ return ss(C) ? (e.consume(C), L) : C === null || as(C) ? P(C) : n(C);
33753
33756
  }
33754
- function P(_) {
33755
- return _ === 45 && i === 2 ? (e.consume(_), I) : _ === 60 && i === 1 ? (e.consume(_), $) : _ === 62 && i === 4 ? (e.consume(_), X) : _ === 63 && i === 3 ? (e.consume(_), te) : _ === 93 && i === 5 ? (e.consume(_), N) : as(_) && (i === 6 || i === 7) ? e.check(
33757
+ function P(C) {
33758
+ return C === 45 && i === 2 ? (e.consume(C), I) : C === 60 && i === 1 ? (e.consume(C), $) : C === 62 && i === 4 ? (e.consume(C), X) : C === 63 && i === 3 ? (e.consume(C), te) : C === 93 && i === 5 ? (e.consume(C), N) : as(C) && (i === 6 || i === 7) ? e.check(
33756
33759
  NU,
33757
33760
  X,
33758
33761
  O
33759
- )(_) : _ === null || as(_) ? O(_) : (e.consume(_), P);
33762
+ )(C) : C === null || as(C) ? O(C) : (e.consume(C), P);
33760
33763
  }
33761
- function O(_) {
33762
- return e.exit("htmlFlowData"), S(_);
33764
+ function O(C) {
33765
+ return e.exit("htmlFlowData"), S(C);
33763
33766
  }
33764
- function S(_) {
33765
- return _ === null ? D(_) : as(_) ? (e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), S) : (e.enter("htmlFlowData"), P(_));
33767
+ function S(C) {
33768
+ return C === null ? D(C) : as(C) ? (e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), S) : (e.enter("htmlFlowData"), P(C));
33766
33769
  }
33767
- function I(_) {
33768
- return _ === 45 ? (e.consume(_), te) : P(_);
33770
+ function I(C) {
33771
+ return C === 45 ? (e.consume(C), te) : P(C);
33769
33772
  }
33770
- function $(_) {
33771
- return _ === 47 ? (e.consume(_), s = "", z) : P(_);
33773
+ function $(C) {
33774
+ return C === 47 ? (e.consume(C), s = "", q) : P(C);
33772
33775
  }
33773
- function z(_) {
33774
- return _ === 62 && s5.indexOf(s.toLowerCase()) > -1 ? (e.consume(_), X) : bo(_) && s.length < 8 ? (e.consume(_), s += _u(_), z) : P(_);
33776
+ function q(C) {
33777
+ return C === 62 && s5.indexOf(s.toLowerCase()) > -1 ? (e.consume(C), X) : bo(C) && s.length < 8 ? (e.consume(C), s += _u(C), q) : P(C);
33775
33778
  }
33776
- function N(_) {
33777
- return _ === 93 ? (e.consume(_), te) : P(_);
33779
+ function N(C) {
33780
+ return C === 93 ? (e.consume(C), te) : P(C);
33778
33781
  }
33779
- function te(_) {
33780
- return _ === 62 ? (e.consume(_), X) : P(_);
33782
+ function te(C) {
33783
+ return C === 62 ? (e.consume(C), X) : P(C);
33781
33784
  }
33782
- function X(_) {
33783
- return _ === null || as(_) ? (e.exit("htmlFlowData"), D(_)) : (e.consume(_), X);
33785
+ function X(C) {
33786
+ return C === null || as(C) ? (e.exit("htmlFlowData"), D(C)) : (e.consume(C), X);
33784
33787
  }
33785
- function D(_) {
33786
- return e.exit("htmlFlow"), t(_);
33788
+ function D(C) {
33789
+ return e.exit("htmlFlow"), t(C);
33787
33790
  }
33788
33791
  }
33789
33792
  function RU(e, t, n) {
@@ -33799,97 +33802,97 @@ var FU = OU, Cu = b1, Qd = Hl, ai = Xt, Xd = Ii, xu = Oi, BU = tn, MU = {
33799
33802
  function LU(e, t, n) {
33800
33803
  var r = this, i, a, s, o;
33801
33804
  return l;
33802
- function l(_) {
33803
- return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(_), u;
33805
+ function l(C) {
33806
+ return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(C), u;
33804
33807
  }
33805
- function u(_) {
33806
- return _ === 33 ? (e.consume(_), c) : _ === 47 ? (e.consume(_), A) : _ === 63 ? (e.consume(_), T) : Cu(_) ? (e.consume(_), L) : n(_);
33808
+ function u(C) {
33809
+ return C === 33 ? (e.consume(C), c) : C === 47 ? (e.consume(C), A) : C === 63 ? (e.consume(C), T) : Cu(C) ? (e.consume(C), L) : n(C);
33807
33810
  }
33808
- function c(_) {
33809
- return _ === 45 ? (e.consume(_), d) : _ === 91 ? (e.consume(_), a = "CDATA[", s = 0, y) : Cu(_) ? (e.consume(_), x) : n(_);
33811
+ function c(C) {
33812
+ return C === 45 ? (e.consume(C), d) : C === 91 ? (e.consume(C), a = "CDATA[", s = 0, y) : Cu(C) ? (e.consume(C), x) : n(C);
33810
33813
  }
33811
- function d(_) {
33812
- return _ === 45 ? (e.consume(_), f) : n(_);
33814
+ function d(C) {
33815
+ return C === 45 ? (e.consume(C), f) : n(C);
33813
33816
  }
33814
- function f(_) {
33815
- return _ === null || _ === 62 ? n(_) : _ === 45 ? (e.consume(_), p) : g(_);
33817
+ function f(C) {
33818
+ return C === null || C === 62 ? n(C) : C === 45 ? (e.consume(C), p) : g(C);
33816
33819
  }
33817
- function p(_) {
33818
- return _ === null || _ === 62 ? n(_) : g(_);
33820
+ function p(C) {
33821
+ return C === null || C === 62 ? n(C) : g(C);
33819
33822
  }
33820
- function g(_) {
33821
- return _ === null ? n(_) : _ === 45 ? (e.consume(_), m) : ai(_) ? (o = g, te(_)) : (e.consume(_), g);
33823
+ function g(C) {
33824
+ return C === null ? n(C) : C === 45 ? (e.consume(C), m) : ai(C) ? (o = g, te(C)) : (e.consume(C), g);
33822
33825
  }
33823
- function m(_) {
33824
- return _ === 45 ? (e.consume(_), D) : g(_);
33826
+ function m(C) {
33827
+ return C === 45 ? (e.consume(C), D) : g(C);
33825
33828
  }
33826
- function y(_) {
33827
- return _ === a.charCodeAt(s++) ? (e.consume(_), s === a.length ? v : y) : n(_);
33829
+ function y(C) {
33830
+ return C === a.charCodeAt(s++) ? (e.consume(C), s === a.length ? v : y) : n(C);
33828
33831
  }
33829
- function v(_) {
33830
- return _ === null ? n(_) : _ === 93 ? (e.consume(_), E) : ai(_) ? (o = v, te(_)) : (e.consume(_), v);
33832
+ function v(C) {
33833
+ return C === null ? n(C) : C === 93 ? (e.consume(C), E) : ai(C) ? (o = v, te(C)) : (e.consume(C), v);
33831
33834
  }
33832
- function E(_) {
33833
- return _ === 93 ? (e.consume(_), b) : v(_);
33835
+ function E(C) {
33836
+ return C === 93 ? (e.consume(C), b) : v(C);
33834
33837
  }
33835
- function b(_) {
33836
- return _ === 62 ? D(_) : _ === 93 ? (e.consume(_), b) : v(_);
33838
+ function b(C) {
33839
+ return C === 62 ? D(C) : C === 93 ? (e.consume(C), b) : v(C);
33837
33840
  }
33838
- function x(_) {
33839
- return _ === null || _ === 62 ? D(_) : ai(_) ? (o = x, te(_)) : (e.consume(_), x);
33841
+ function x(C) {
33842
+ return C === null || C === 62 ? D(C) : ai(C) ? (o = x, te(C)) : (e.consume(C), x);
33840
33843
  }
33841
- function T(_) {
33842
- return _ === null ? n(_) : _ === 63 ? (e.consume(_), w) : ai(_) ? (o = T, te(_)) : (e.consume(_), T);
33844
+ function T(C) {
33845
+ return C === null ? n(C) : C === 63 ? (e.consume(C), w) : ai(C) ? (o = T, te(C)) : (e.consume(C), T);
33843
33846
  }
33844
- function w(_) {
33845
- return _ === 62 ? D(_) : T(_);
33847
+ function w(C) {
33848
+ return C === 62 ? D(C) : T(C);
33846
33849
  }
33847
- function A(_) {
33848
- return Cu(_) ? (e.consume(_), F) : n(_);
33850
+ function A(C) {
33851
+ return Cu(C) ? (e.consume(C), F) : n(C);
33849
33852
  }
33850
- function F(_) {
33851
- return _ === 45 || Qd(_) ? (e.consume(_), F) : R(_);
33853
+ function F(C) {
33854
+ return C === 45 || Qd(C) ? (e.consume(C), F) : R(C);
33852
33855
  }
33853
- function R(_) {
33854
- return ai(_) ? (o = R, te(_)) : xu(_) ? (e.consume(_), R) : D(_);
33856
+ function R(C) {
33857
+ return ai(C) ? (o = R, te(C)) : xu(C) ? (e.consume(C), R) : D(C);
33855
33858
  }
33856
- function L(_) {
33857
- return _ === 45 || Qd(_) ? (e.consume(_), L) : _ === 47 || _ === 62 || Xd(_) ? P(_) : n(_);
33859
+ function L(C) {
33860
+ return C === 45 || Qd(C) ? (e.consume(C), L) : C === 47 || C === 62 || Xd(C) ? P(C) : n(C);
33858
33861
  }
33859
- function P(_) {
33860
- return _ === 47 ? (e.consume(_), D) : _ === 58 || _ === 95 || Cu(_) ? (e.consume(_), O) : ai(_) ? (o = P, te(_)) : xu(_) ? (e.consume(_), P) : D(_);
33862
+ function P(C) {
33863
+ return C === 47 ? (e.consume(C), D) : C === 58 || C === 95 || Cu(C) ? (e.consume(C), O) : ai(C) ? (o = P, te(C)) : xu(C) ? (e.consume(C), P) : D(C);
33861
33864
  }
33862
- function O(_) {
33863
- return _ === 45 || _ === 46 || _ === 58 || _ === 95 || Qd(_) ? (e.consume(_), O) : S(_);
33865
+ function O(C) {
33866
+ return C === 45 || C === 46 || C === 58 || C === 95 || Qd(C) ? (e.consume(C), O) : S(C);
33864
33867
  }
33865
- function S(_) {
33866
- return _ === 61 ? (e.consume(_), I) : ai(_) ? (o = S, te(_)) : xu(_) ? (e.consume(_), S) : P(_);
33868
+ function S(C) {
33869
+ return C === 61 ? (e.consume(C), I) : ai(C) ? (o = S, te(C)) : xu(C) ? (e.consume(C), S) : P(C);
33867
33870
  }
33868
- function I(_) {
33869
- return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? n(_) : _ === 34 || _ === 39 ? (e.consume(_), i = _, $) : ai(_) ? (o = I, te(_)) : xu(_) ? (e.consume(_), I) : (e.consume(_), i = void 0, N);
33871
+ function I(C) {
33872
+ return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), i = C, $) : ai(C) ? (o = I, te(C)) : xu(C) ? (e.consume(C), I) : (e.consume(C), i = void 0, N);
33870
33873
  }
33871
- function $(_) {
33872
- return _ === i ? (e.consume(_), z) : _ === null ? n(_) : ai(_) ? (o = $, te(_)) : (e.consume(_), $);
33874
+ function $(C) {
33875
+ return C === i ? (e.consume(C), q) : C === null ? n(C) : ai(C) ? (o = $, te(C)) : (e.consume(C), $);
33873
33876
  }
33874
- function z(_) {
33875
- return _ === 62 || _ === 47 || Xd(_) ? P(_) : n(_);
33877
+ function q(C) {
33878
+ return C === 62 || C === 47 || Xd(C) ? P(C) : n(C);
33876
33879
  }
33877
- function N(_) {
33878
- return _ === null || _ === 34 || _ === 39 || _ === 60 || _ === 61 || _ === 96 ? n(_) : _ === 62 || Xd(_) ? P(_) : (e.consume(_), N);
33880
+ function N(C) {
33881
+ return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 96 ? n(C) : C === 62 || Xd(C) ? P(C) : (e.consume(C), N);
33879
33882
  }
33880
- function te(_) {
33881
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), BU(
33883
+ function te(C) {
33884
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), BU(
33882
33885
  e,
33883
33886
  X,
33884
33887
  "linePrefix",
33885
33888
  r.parser.constructs.disable.null.indexOf("codeIndented") > -1 ? void 0 : 4
33886
33889
  );
33887
33890
  }
33888
- function X(_) {
33889
- return e.enter("htmlTextData"), o(_);
33891
+ function X(C) {
33892
+ return e.enter("htmlTextData"), o(C);
33890
33893
  }
33891
- function D(_) {
33892
- return _ === 62 ? (e.consume(_), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(_);
33894
+ function D(C) {
33895
+ return C === 62 ? (e.consume(C), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(C);
33893
33896
  }
33894
33897
  }
33895
33898
  var $U = MU, jU = Ii, os = _m, HU = Ni, x8 = vm, UU = E1, ls = Wa, zU = y8, qU = E8, WU = T8, Jd = b8, VU = {
@@ -34499,15 +34502,15 @@ function xq(e) {
34499
34502
  definitionLabelString: w,
34500
34503
  definitionTitleString: A,
34501
34504
  emphasis: f(),
34502
- hardBreakEscape: f(z),
34503
- hardBreakTrailing: f(z),
34505
+ hardBreakEscape: f(q),
34506
+ hardBreakTrailing: f(q),
34504
34507
  htmlFlow: f(N),
34505
34508
  htmlFlowData: I,
34506
34509
  htmlText: f(te),
34507
34510
  htmlTextData: I,
34508
- image: f(_),
34511
+ image: f(C),
34509
34512
  label: B,
34510
- labelText: Q,
34513
+ labelText: Z,
34511
34514
  lineEnding: $,
34512
34515
  link: f(D),
34513
34516
  listItem: f(),
@@ -34516,7 +34519,7 @@ function xq(e) {
34516
34519
  paragraph: f(),
34517
34520
  referenceString: se,
34518
34521
  resourceDestinationString: H,
34519
- resourceTitleString: q,
34522
+ resourceTitleString: z,
34520
34523
  resource: U,
34521
34524
  setextHeading: f(O),
34522
34525
  setextHeadingLineSequence: P,
@@ -34528,7 +34531,7 @@ function xq(e) {
34528
34531
  t.mdastExtensions || []
34529
34532
  ), r = {};
34530
34533
  return i;
34531
- function i(Z) {
34534
+ function i(Q) {
34532
34535
  for (var de = { type: "root", children: [] }, xe = [de], Me = [], vt = [], at = -1, gt, zt, Pt = {
34533
34536
  stack: xe,
34534
34537
  tokenStack: Me,
@@ -34539,12 +34542,12 @@ function xq(e) {
34539
34542
  resume: g,
34540
34543
  setData: s,
34541
34544
  getData: o
34542
- }; ++at < Z.length; )
34543
- (Z[at][1].type === "listOrdered" || Z[at][1].type === "listUnordered") && (Z[at][0] === "enter" ? vt.push(at) : (zt = vt.pop(at), at = a(Z, zt, at)));
34544
- for (at = -1; ++at < Z.length; )
34545
- gt = n[Z[at][0]], O8.call(gt, Z[at][1].type) && gt[Z[at][1].type].call(
34546
- vq({ sliceSerialize: Z[at][2].sliceSerialize }, Pt),
34547
- Z[at][1]
34545
+ }; ++at < Q.length; )
34546
+ (Q[at][1].type === "listOrdered" || Q[at][1].type === "listUnordered") && (Q[at][0] === "enter" ? vt.push(at) : (zt = vt.pop(at), at = a(Q, zt, at)));
34547
+ for (at = -1; ++at < Q.length; )
34548
+ gt = n[Q[at][0]], O8.call(gt, Q[at][1].type) && gt[Q[at][1].type].call(
34549
+ vq({ sliceSerialize: Q[at][2].sliceSerialize }, Pt),
34550
+ Q[at][1]
34548
34551
  );
34549
34552
  if (Me.length)
34550
34553
  throw new Error(
@@ -34555,77 +34558,77 @@ function xq(e) {
34555
34558
  );
34556
34559
  for (de.position = {
34557
34560
  start: l(
34558
- Z.length ? Z[0][1].start : { line: 1, column: 1, offset: 0 }
34561
+ Q.length ? Q[0][1].start : { line: 1, column: 1, offset: 0 }
34559
34562
  ),
34560
34563
  end: l(
34561
- Z.length ? Z[Z.length - 2][1].end : { line: 1, column: 1, offset: 0 }
34564
+ Q.length ? Q[Q.length - 2][1].end : { line: 1, column: 1, offset: 0 }
34562
34565
  )
34563
34566
  }, at = -1; ++at < n.transforms.length; )
34564
34567
  de = n.transforms[at](de) || de;
34565
34568
  return de;
34566
34569
  }
34567
- function a(Z, de, xe) {
34570
+ function a(Q, de, xe) {
34568
34571
  for (var Me = de - 1, vt = -1, at = !1, gt, zt, Pt, xn, wt, Pr, Yn; ++Me <= xe; )
34569
- if (wt = Z[Me], wt[1].type === "listUnordered" || wt[1].type === "listOrdered" || wt[1].type === "blockQuote" ? (wt[0] === "enter" ? vt++ : vt--, Yn = void 0) : wt[1].type === "lineEndingBlank" ? wt[0] === "enter" && (gt && !Yn && !vt && !Pr && (Pr = Me), Yn = void 0) : wt[1].type === "linePrefix" || wt[1].type === "listItemValue" || wt[1].type === "listItemMarker" || wt[1].type === "listItemPrefix" || wt[1].type === "listItemPrefixWhitespace" || (Yn = void 0), !vt && wt[0] === "enter" && wt[1].type === "listItemPrefix" || vt === -1 && wt[0] === "exit" && (wt[1].type === "listUnordered" || wt[1].type === "listOrdered")) {
34572
+ if (wt = Q[Me], wt[1].type === "listUnordered" || wt[1].type === "listOrdered" || wt[1].type === "blockQuote" ? (wt[0] === "enter" ? vt++ : vt--, Yn = void 0) : wt[1].type === "lineEndingBlank" ? wt[0] === "enter" && (gt && !Yn && !vt && !Pr && (Pr = Me), Yn = void 0) : wt[1].type === "linePrefix" || wt[1].type === "listItemValue" || wt[1].type === "listItemMarker" || wt[1].type === "listItemPrefix" || wt[1].type === "listItemPrefixWhitespace" || (Yn = void 0), !vt && wt[0] === "enter" && wt[1].type === "listItemPrefix" || vt === -1 && wt[0] === "exit" && (wt[1].type === "listUnordered" || wt[1].type === "listOrdered")) {
34570
34573
  if (gt) {
34571
34574
  for (zt = Me, Pt = void 0; zt--; )
34572
- if (xn = Z[zt], xn[1].type === "lineEnding" || xn[1].type === "lineEndingBlank") {
34575
+ if (xn = Q[zt], xn[1].type === "lineEnding" || xn[1].type === "lineEndingBlank") {
34573
34576
  if (xn[0] === "exit")
34574
34577
  continue;
34575
- Pt && (Z[Pt][1].type = "lineEndingBlank", at = !0), xn[1].type = "lineEnding", Pt = zt;
34578
+ Pt && (Q[Pt][1].type = "lineEndingBlank", at = !0), xn[1].type = "lineEnding", Pt = zt;
34576
34579
  } else if (!(xn[1].type === "linePrefix" || xn[1].type === "blockQuotePrefix" || xn[1].type === "blockQuotePrefixWhitespace" || xn[1].type === "blockQuoteMarker" || xn[1].type === "listItemIndent"))
34577
34580
  break;
34578
34581
  Pr && (!Pt || Pr < Pt) && (gt._spread = !0), gt.end = l(
34579
- Pt ? Z[Pt][1].start : wt[1].end
34580
- ), Z.splice(Pt || Me, 0, ["exit", gt, wt[2]]), Me++, xe++;
34582
+ Pt ? Q[Pt][1].start : wt[1].end
34583
+ ), Q.splice(Pt || Me, 0, ["exit", gt, wt[2]]), Me++, xe++;
34581
34584
  }
34582
34585
  wt[1].type === "listItemPrefix" && (gt = {
34583
34586
  type: "listItem",
34584
34587
  _spread: !1,
34585
34588
  start: l(wt[1].start)
34586
- }, Z.splice(Me, 0, ["enter", gt, wt[2]]), Me++, xe++, Pr = void 0, Yn = !0);
34589
+ }, Q.splice(Me, 0, ["enter", gt, wt[2]]), Me++, xe++, Pr = void 0, Yn = !0);
34587
34590
  }
34588
- return Z[de][1]._spread = at, xe;
34591
+ return Q[de][1]._spread = at, xe;
34589
34592
  }
34590
- function s(Z, de) {
34591
- r[Z] = de;
34593
+ function s(Q, de) {
34594
+ r[Q] = de;
34592
34595
  }
34593
- function o(Z) {
34594
- return r[Z];
34596
+ function o(Q) {
34597
+ return r[Q];
34595
34598
  }
34596
- function l(Z) {
34597
- return { line: Z.line, column: Z.column, offset: Z.offset };
34599
+ function l(Q) {
34600
+ return { line: Q.line, column: Q.column, offset: Q.offset };
34598
34601
  }
34599
- function u(Z, de) {
34602
+ function u(Q, de) {
34600
34603
  return xe;
34601
34604
  function xe(Me) {
34602
- d.call(this, Z(Me), Me), de && de.call(this, Me);
34605
+ d.call(this, Q(Me), Me), de && de.call(this, Me);
34603
34606
  }
34604
34607
  }
34605
34608
  function c() {
34606
34609
  this.stack.push({ type: "fragment", children: [] });
34607
34610
  }
34608
- function d(Z, de) {
34609
- return this.stack[this.stack.length - 1].children.push(Z), this.stack.push(Z), this.tokenStack.push(de), Z.position = { start: l(de.start) }, Z;
34611
+ function d(Q, de) {
34612
+ return this.stack[this.stack.length - 1].children.push(Q), this.stack.push(Q), this.tokenStack.push(de), Q.position = { start: l(de.start) }, Q;
34610
34613
  }
34611
- function f(Z) {
34614
+ function f(Q) {
34612
34615
  return de;
34613
34616
  function de(xe) {
34614
- Z && Z.call(this, xe), p.call(this, xe);
34617
+ Q && Q.call(this, xe), p.call(this, xe);
34615
34618
  }
34616
34619
  }
34617
- function p(Z) {
34620
+ function p(Q) {
34618
34621
  var de = this.stack.pop(), xe = this.tokenStack.pop();
34619
34622
  if (xe) {
34620
- if (xe.type !== Z.type)
34623
+ if (xe.type !== Q.type)
34621
34624
  throw new Error(
34622
- "Cannot close `" + Z.type + "` (" + wu({ start: Z.start, end: Z.end }) + "): a different token (`" + xe.type + "`, " + wu({ start: xe.start, end: xe.end }) + ") is open"
34625
+ "Cannot close `" + Q.type + "` (" + wu({ start: Q.start, end: Q.end }) + "): a different token (`" + xe.type + "`, " + wu({ start: xe.start, end: xe.end }) + ") is open"
34623
34626
  );
34624
34627
  } else
34625
34628
  throw new Error(
34626
- "Cannot close `" + Z.type + "` (" + wu({ start: Z.start, end: Z.end }) + "): it’s not open"
34629
+ "Cannot close `" + Q.type + "` (" + wu({ start: Q.start, end: Q.end }) + "): it’s not open"
34627
34630
  );
34628
- return de.position.end = l(Z.end), de;
34631
+ return de.position.end = l(Q.end), de;
34629
34632
  }
34630
34633
  function g() {
34631
34634
  return gq(this.stack.pop());
@@ -34633,119 +34636,119 @@ function xq(e) {
34633
34636
  function m() {
34634
34637
  s("expectingFirstListItemValue", !0);
34635
34638
  }
34636
- function y(Z) {
34639
+ function y(Q) {
34637
34640
  o("expectingFirstListItemValue") && (this.stack[this.stack.length - 2].start = parseInt(
34638
- this.sliceSerialize(Z),
34641
+ this.sliceSerialize(Q),
34639
34642
  10
34640
34643
  ), s("expectingFirstListItemValue"));
34641
34644
  }
34642
34645
  function v() {
34643
- var Z = this.resume();
34644
- this.stack[this.stack.length - 1].lang = Z;
34646
+ var Q = this.resume();
34647
+ this.stack[this.stack.length - 1].lang = Q;
34645
34648
  }
34646
34649
  function E() {
34647
- var Z = this.resume();
34648
- this.stack[this.stack.length - 1].meta = Z;
34650
+ var Q = this.resume();
34651
+ this.stack[this.stack.length - 1].meta = Q;
34649
34652
  }
34650
34653
  function b() {
34651
34654
  o("flowCodeInside") || (this.buffer(), s("flowCodeInside", !0));
34652
34655
  }
34653
34656
  function x() {
34654
- var Z = this.resume();
34655
- this.stack[this.stack.length - 1].value = Z.replace(
34657
+ var Q = this.resume();
34658
+ this.stack[this.stack.length - 1].value = Q.replace(
34656
34659
  /^(\r?\n|\r)|(\r?\n|\r)$/g,
34657
34660
  ""
34658
34661
  ), s("flowCodeInside");
34659
34662
  }
34660
34663
  function T() {
34661
- var Z = this.resume();
34662
- this.stack[this.stack.length - 1].value = Z;
34664
+ var Q = this.resume();
34665
+ this.stack[this.stack.length - 1].value = Q;
34663
34666
  }
34664
- function w(Z) {
34667
+ function w(Q) {
34665
34668
  var de = this.resume();
34666
34669
  this.stack[this.stack.length - 1].label = de, this.stack[this.stack.length - 1].identifier = af(
34667
- this.sliceSerialize(Z)
34670
+ this.sliceSerialize(Q)
34668
34671
  ).toLowerCase();
34669
34672
  }
34670
34673
  function A() {
34671
- var Z = this.resume();
34672
- this.stack[this.stack.length - 1].title = Z;
34674
+ var Q = this.resume();
34675
+ this.stack[this.stack.length - 1].title = Q;
34673
34676
  }
34674
34677
  function F() {
34675
- var Z = this.resume();
34676
- this.stack[this.stack.length - 1].url = Z;
34678
+ var Q = this.resume();
34679
+ this.stack[this.stack.length - 1].url = Q;
34677
34680
  }
34678
- function R(Z) {
34681
+ function R(Q) {
34679
34682
  this.stack[this.stack.length - 1].depth || (this.stack[this.stack.length - 1].depth = this.sliceSerialize(
34680
- Z
34683
+ Q
34681
34684
  ).length);
34682
34685
  }
34683
34686
  function L() {
34684
34687
  s("setextHeadingSlurpLineEnding", !0);
34685
34688
  }
34686
- function P(Z) {
34687
- this.stack[this.stack.length - 1].depth = this.sliceSerialize(Z).charCodeAt(0) === 61 ? 1 : 2;
34689
+ function P(Q) {
34690
+ this.stack[this.stack.length - 1].depth = this.sliceSerialize(Q).charCodeAt(0) === 61 ? 1 : 2;
34688
34691
  }
34689
34692
  function O() {
34690
34693
  s("setextHeadingSlurpLineEnding");
34691
34694
  }
34692
- function S(Z) {
34695
+ function S(Q) {
34693
34696
  var de = this.stack[this.stack.length - 1].children, xe = de[de.length - 1];
34694
- (!xe || xe.type !== "text") && (xe = Ie(), xe.position = { start: l(Z.start) }, this.stack[this.stack.length - 1].children.push(xe)), this.stack.push(xe);
34697
+ (!xe || xe.type !== "text") && (xe = Ie(), xe.position = { start: l(Q.start) }, this.stack[this.stack.length - 1].children.push(xe)), this.stack.push(xe);
34695
34698
  }
34696
- function I(Z) {
34699
+ function I(Q) {
34697
34700
  var de = this.stack.pop();
34698
- de.value += this.sliceSerialize(Z), de.position.end = l(Z.end);
34701
+ de.value += this.sliceSerialize(Q), de.position.end = l(Q.end);
34699
34702
  }
34700
- function $(Z) {
34703
+ function $(Q) {
34701
34704
  var de = this.stack[this.stack.length - 1];
34702
34705
  if (o("atHardBreak")) {
34703
34706
  de.children[de.children.length - 1].position.end = l(
34704
- Z.end
34707
+ Q.end
34705
34708
  ), s("atHardBreak");
34706
34709
  return;
34707
34710
  }
34708
- !o("setextHeadingSlurpLineEnding") && n.canContainEols.indexOf(de.type) > -1 && (S.call(this, Z), I.call(this, Z));
34711
+ !o("setextHeadingSlurpLineEnding") && n.canContainEols.indexOf(de.type) > -1 && (S.call(this, Q), I.call(this, Q));
34709
34712
  }
34710
- function z() {
34713
+ function q() {
34711
34714
  s("atHardBreak", !0);
34712
34715
  }
34713
34716
  function N() {
34714
- var Z = this.resume();
34715
- this.stack[this.stack.length - 1].value = Z;
34717
+ var Q = this.resume();
34718
+ this.stack[this.stack.length - 1].value = Q;
34716
34719
  }
34717
34720
  function te() {
34718
- var Z = this.resume();
34719
- this.stack[this.stack.length - 1].value = Z;
34721
+ var Q = this.resume();
34722
+ this.stack[this.stack.length - 1].value = Q;
34720
34723
  }
34721
34724
  function X() {
34722
- var Z = this.resume();
34723
- this.stack[this.stack.length - 1].value = Z;
34725
+ var Q = this.resume();
34726
+ this.stack[this.stack.length - 1].value = Q;
34724
34727
  }
34725
34728
  function D() {
34726
- var Z = this.stack[this.stack.length - 1];
34727
- o("inReference") ? (Z.type += "Reference", Z.referenceType = o("referenceType") || "shortcut", delete Z.url, delete Z.title) : (delete Z.identifier, delete Z.label, delete Z.referenceType), s("referenceType");
34729
+ var Q = this.stack[this.stack.length - 1];
34730
+ o("inReference") ? (Q.type += "Reference", Q.referenceType = o("referenceType") || "shortcut", delete Q.url, delete Q.title) : (delete Q.identifier, delete Q.label, delete Q.referenceType), s("referenceType");
34728
34731
  }
34729
- function _() {
34730
- var Z = this.stack[this.stack.length - 1];
34731
- o("inReference") ? (Z.type += "Reference", Z.referenceType = o("referenceType") || "shortcut", delete Z.url, delete Z.title) : (delete Z.identifier, delete Z.label, delete Z.referenceType), s("referenceType");
34732
+ function C() {
34733
+ var Q = this.stack[this.stack.length - 1];
34734
+ o("inReference") ? (Q.type += "Reference", Q.referenceType = o("referenceType") || "shortcut", delete Q.url, delete Q.title) : (delete Q.identifier, delete Q.label, delete Q.referenceType), s("referenceType");
34732
34735
  }
34733
- function Q(Z) {
34736
+ function Z(Q) {
34734
34737
  this.stack[this.stack.length - 2].identifier = af(
34735
- this.sliceSerialize(Z)
34738
+ this.sliceSerialize(Q)
34736
34739
  ).toLowerCase();
34737
34740
  }
34738
34741
  function B() {
34739
- var Z = this.stack[this.stack.length - 1], de = this.resume();
34740
- this.stack[this.stack.length - 1].label = de, s("inReference", !0), this.stack[this.stack.length - 1].type === "link" ? this.stack[this.stack.length - 1].children = Z.children : this.stack[this.stack.length - 1].alt = de;
34742
+ var Q = this.stack[this.stack.length - 1], de = this.resume();
34743
+ this.stack[this.stack.length - 1].label = de, s("inReference", !0), this.stack[this.stack.length - 1].type === "link" ? this.stack[this.stack.length - 1].children = Q.children : this.stack[this.stack.length - 1].alt = de;
34741
34744
  }
34742
34745
  function H() {
34743
- var Z = this.resume();
34744
- this.stack[this.stack.length - 1].url = Z;
34746
+ var Q = this.resume();
34747
+ this.stack[this.stack.length - 1].url = Q;
34745
34748
  }
34746
- function q() {
34747
- var Z = this.resume();
34748
- this.stack[this.stack.length - 1].title = Z;
34749
+ function z() {
34750
+ var Q = this.resume();
34751
+ this.stack[this.stack.length - 1].title = Q;
34749
34752
  }
34750
34753
  function U() {
34751
34754
  s("inReference");
@@ -34753,27 +34756,27 @@ function xq(e) {
34753
34756
  function j() {
34754
34757
  s("referenceType", "collapsed");
34755
34758
  }
34756
- function se(Z) {
34759
+ function se(Q) {
34757
34760
  var de = this.resume();
34758
34761
  this.stack[this.stack.length - 1].label = de, this.stack[this.stack.length - 1].identifier = af(
34759
- this.sliceSerialize(Z)
34762
+ this.sliceSerialize(Q)
34760
34763
  ).toLowerCase(), s("referenceType", "full");
34761
34764
  }
34762
- function Y(Z) {
34763
- s("characterReferenceType", Z.type);
34765
+ function Y(Q) {
34766
+ s("characterReferenceType", Q.type);
34764
34767
  }
34765
- function ee(Z) {
34766
- var de = this.sliceSerialize(Z), xe = o("characterReferenceType"), Me, vt;
34768
+ function ee(Q) {
34769
+ var de = this.sliceSerialize(Q), xe = o("characterReferenceType"), Me, vt;
34767
34770
  xe ? (Me = yq(
34768
34771
  de,
34769
34772
  xe === "characterReferenceMarkerNumeric" ? 10 : 16
34770
- ), s("characterReferenceType")) : Me = _q(de), vt = this.stack.pop(), vt.value += Me, vt.position.end = l(Z.end);
34773
+ ), s("characterReferenceType")) : Me = _q(de), vt = this.stack.pop(), vt.value += Me, vt.position.end = l(Q.end);
34771
34774
  }
34772
- function ae(Z) {
34773
- I.call(this, Z), this.stack[this.stack.length - 1].url = this.sliceSerialize(Z);
34775
+ function ae(Q) {
34776
+ I.call(this, Q), this.stack[this.stack.length - 1].url = this.sliceSerialize(Q);
34774
34777
  }
34775
- function re(Z) {
34776
- I.call(this, Z), this.stack[this.stack.length - 1].url = "mailto:" + this.sliceSerialize(Z);
34778
+ function re(Q) {
34779
+ I.call(this, Q), this.stack[this.stack.length - 1].url = "mailto:" + this.sliceSerialize(Q);
34777
34780
  }
34778
34781
  function Ae() {
34779
34782
  return { type: "blockquote", children: [] };
@@ -34811,19 +34814,19 @@ function xq(e) {
34811
34814
  function Ye() {
34812
34815
  return { type: "link", title: null, url: "", children: [] };
34813
34816
  }
34814
- function nt(Z) {
34817
+ function nt(Q) {
34815
34818
  return {
34816
34819
  type: "list",
34817
- ordered: Z.type === "listOrdered",
34820
+ ordered: Q.type === "listOrdered",
34818
34821
  start: null,
34819
- spread: Z._spread,
34822
+ spread: Q._spread,
34820
34823
  children: []
34821
34824
  };
34822
34825
  }
34823
- function Ze(Z) {
34826
+ function Ze(Q) {
34824
34827
  return {
34825
34828
  type: "listItem",
34826
- spread: Z._spread,
34829
+ spread: Q._spread,
34827
34830
  checked: null,
34828
34831
  children: []
34829
34832
  };
@@ -36084,9 +36087,9 @@ function wK() {
36084
36087
  }
36085
36088
  }
36086
36089
  }
36087
- var T = s, w = a, A = e, F = o, R = n, L = d, P = c, O = t, S = i, I = r, $ = l, z = !1, N = !1;
36090
+ var T = s, w = a, A = e, F = o, R = n, L = d, P = c, O = t, S = i, I = r, $ = l, q = !1, N = !1;
36088
36091
  function te(ae) {
36089
- return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
36092
+ return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
36090
36093
  }
36091
36094
  function X(ae) {
36092
36095
  return N || (N = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
@@ -36094,10 +36097,10 @@ function wK() {
36094
36097
  function D(ae) {
36095
36098
  return x(ae) === s;
36096
36099
  }
36097
- function _(ae) {
36100
+ function C(ae) {
36098
36101
  return x(ae) === a;
36099
36102
  }
36100
- function Q(ae) {
36103
+ function Z(ae) {
36101
36104
  return typeof ae == "object" && ae !== null && ae.$$typeof === e;
36102
36105
  }
36103
36106
  function B(ae) {
@@ -36106,7 +36109,7 @@ function wK() {
36106
36109
  function H(ae) {
36107
36110
  return x(ae) === n;
36108
36111
  }
36109
- function q(ae) {
36112
+ function z(ae) {
36110
36113
  return x(ae) === d;
36111
36114
  }
36112
36115
  function U(ae) {
@@ -36124,7 +36127,7 @@ function wK() {
36124
36127
  function ee(ae) {
36125
36128
  return x(ae) === l;
36126
36129
  }
36127
- St.ContextConsumer = T, St.ContextProvider = w, St.Element = A, St.ForwardRef = F, St.Fragment = R, St.Lazy = L, St.Memo = P, St.Portal = O, St.Profiler = S, St.StrictMode = I, St.Suspense = $, St.isAsyncMode = te, St.isConcurrentMode = X, St.isContextConsumer = D, St.isContextProvider = _, St.isElement = Q, St.isForwardRef = B, St.isFragment = H, St.isLazy = q, St.isMemo = U, St.isPortal = j, St.isProfiler = se, St.isStrictMode = Y, St.isSuspense = ee, St.isValidElementType = b, St.typeOf = x;
36130
+ St.ContextConsumer = T, St.ContextProvider = w, St.Element = A, St.ForwardRef = F, St.Fragment = R, St.Lazy = L, St.Memo = P, St.Portal = O, St.Profiler = S, St.StrictMode = I, St.Suspense = $, St.isAsyncMode = te, St.isConcurrentMode = X, St.isContextConsumer = D, St.isContextProvider = C, St.isElement = Z, St.isForwardRef = B, St.isFragment = H, St.isLazy = z, St.isMemo = U, St.isPortal = j, St.isProfiler = se, St.isStrictMode = Y, St.isSuspense = ee, St.isValidElementType = b, St.typeOf = x;
36128
36131
  }()), St;
36129
36132
  }
36130
36133
  process.env.NODE_ENV === "production" ? Zh.exports = xK() : Zh.exports = wK();
@@ -37423,13 +37426,13 @@ function mY(e, t, n) {
37423
37426
  return e.exit("tableRow"), N === null ? $(N) : e.check(
37424
37427
  M5,
37425
37428
  $,
37426
- z
37429
+ q
37427
37430
  )(N);
37428
37431
  }
37429
37432
  function $(N) {
37430
37433
  return e.exit("tableBody"), T(N);
37431
37434
  }
37432
- function z(N) {
37435
+ function q(N) {
37433
37436
  return e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), gf(e, F, "linePrefix", 4);
37434
37437
  }
37435
37438
  }
@@ -40399,31 +40402,31 @@ function CX(e, t, n) {
40399
40402
  ca.isIntegrationPoint = function(e, t, n, r) {
40400
40403
  return !!((!r || r === ln.HTML) && CX(e, t, n) || (!r || r === ln.MATHML) && _X(e, t));
40401
40404
  };
40402
- const G = D1, xX = NQ, K2 = IQ, wX = qQ, AX = oX, G2 = Ri, SX = pt, kX = cX, Y2 = O1, zr = ca, fn = Wm, DX = Nr, Ka = Ir, C = Ka.TAG_NAMES, Pe = Ka.NAMESPACES, eC = Ka.ATTRS, OX = {
40405
+ const G = D1, xX = NQ, K2 = IQ, wX = qQ, AX = oX, G2 = Ri, SX = pt, kX = cX, Y2 = O1, zr = ca, fn = Wm, DX = Nr, Ka = Ir, _ = Ka.TAG_NAMES, Pe = Ka.NAMESPACES, eC = Ka.ATTRS, OX = {
40403
40406
  scriptingEnabled: !0,
40404
40407
  sourceCodeLocationInfo: !1,
40405
40408
  onParseError: null,
40406
40409
  treeAdapter: SX
40407
40410
  }, tC = "hidden", NX = 8, IX = 3, nC = "INITIAL_MODE", Ym = "BEFORE_HTML_MODE", N1 = "BEFORE_HEAD_MODE", to = "IN_HEAD_MODE", rC = "IN_HEAD_NO_SCRIPT_MODE", I1 = "AFTER_HEAD_MODE", Gr = "IN_BODY_MODE", Gc = "TEXT_MODE", pn = "IN_TABLE_MODE", iC = "IN_TABLE_TEXT_MODE", P1 = "IN_CAPTION_MODE", ql = "IN_COLUMN_GROUP_MODE", cr = "IN_TABLE_BODY_MODE", Si = "IN_ROW_MODE", R1 = "IN_CELL_MODE", Zm = "IN_SELECT_MODE", Qm = "IN_SELECT_IN_TABLE_MODE", Yc = "IN_TEMPLATE_MODE", Xm = "AFTER_BODY_MODE", F1 = "IN_FRAMESET_MODE", aC = "AFTER_FRAMESET_MODE", sC = "AFTER_AFTER_BODY_MODE", oC = "AFTER_AFTER_FRAMESET_MODE", PX = {
40408
- [C.TR]: Si,
40409
- [C.TBODY]: cr,
40410
- [C.THEAD]: cr,
40411
- [C.TFOOT]: cr,
40412
- [C.CAPTION]: P1,
40413
- [C.COLGROUP]: ql,
40414
- [C.TABLE]: pn,
40415
- [C.BODY]: Gr,
40416
- [C.FRAMESET]: F1
40411
+ [_.TR]: Si,
40412
+ [_.TBODY]: cr,
40413
+ [_.THEAD]: cr,
40414
+ [_.TFOOT]: cr,
40415
+ [_.CAPTION]: P1,
40416
+ [_.COLGROUP]: ql,
40417
+ [_.TABLE]: pn,
40418
+ [_.BODY]: Gr,
40419
+ [_.FRAMESET]: F1
40417
40420
  }, RX = {
40418
- [C.CAPTION]: pn,
40419
- [C.COLGROUP]: pn,
40420
- [C.TBODY]: pn,
40421
- [C.TFOOT]: pn,
40422
- [C.THEAD]: pn,
40423
- [C.COL]: ql,
40424
- [C.TR]: cr,
40425
- [C.TD]: Si,
40426
- [C.TH]: Si
40421
+ [_.CAPTION]: pn,
40422
+ [_.COLGROUP]: pn,
40423
+ [_.TBODY]: pn,
40424
+ [_.TFOOT]: pn,
40425
+ [_.THEAD]: pn,
40426
+ [_.COL]: ql,
40427
+ [_.TR]: cr,
40428
+ [_.TD]: Si,
40429
+ [_.TH]: Si
40427
40430
  }, Z2 = {
40428
40431
  [nC]: {
40429
40432
  [G.CHARACTER_TOKEN]: So,
@@ -40666,9 +40669,9 @@ class FX {
40666
40669
  return this._bootstrap(n, null), this.tokenizer.write(t, !0), this._runParsingLoop(null), n;
40667
40670
  }
40668
40671
  parseFragment(t, n) {
40669
- n || (n = this.treeAdapter.createElement(C.TEMPLATE, Pe.HTML, []));
40672
+ n || (n = this.treeAdapter.createElement(_.TEMPLATE, Pe.HTML, []));
40670
40673
  const r = this.treeAdapter.createElement("documentmock", Pe.HTML, []);
40671
- this._bootstrap(r, n), this.treeAdapter.getTagName(n) === C.TEMPLATE && this._pushTmplInsertionMode(Yc), this._initTokenizerForFragmentParsing(), this._insertFakeRootElement(), this._resetInsertionMode(), this._findFormInFragmentContext(), this.tokenizer.write(t, !0), this._runParsingLoop(null);
40674
+ this._bootstrap(r, n), this.treeAdapter.getTagName(n) === _.TEMPLATE && this._pushTmplInsertionMode(Yc), this._initTokenizerForFragmentParsing(), this._insertFakeRootElement(), this._resetInsertionMode(), this._findFormInFragmentContext(), this.tokenizer.write(t, !0), this._runParsingLoop(null);
40672
40675
  const i = this.treeAdapter.getFirstChild(r), a = this.treeAdapter.createDocumentFragment();
40673
40676
  return this._adoptNodes(i, a), a;
40674
40677
  }
@@ -40722,7 +40725,7 @@ class FX {
40722
40725
  _findFormInFragmentContext() {
40723
40726
  let t = this.fragmentContext;
40724
40727
  do {
40725
- if (this.treeAdapter.getTagName(t) === C.FORM) {
40728
+ if (this.treeAdapter.getTagName(t) === _.FORM) {
40726
40729
  this.formElement = t;
40727
40730
  break;
40728
40731
  }
@@ -40732,7 +40735,7 @@ class FX {
40732
40735
  _initTokenizerForFragmentParsing() {
40733
40736
  if (this.treeAdapter.getNamespaceURI(this.fragmentContext) === Pe.HTML) {
40734
40737
  const t = this.treeAdapter.getTagName(this.fragmentContext);
40735
- t === C.TITLE || t === C.TEXTAREA ? this.tokenizer.state = G.MODE.RCDATA : t === C.STYLE || t === C.XMP || t === C.IFRAME || t === C.NOEMBED || t === C.NOFRAMES || t === C.NOSCRIPT ? this.tokenizer.state = G.MODE.RAWTEXT : t === C.SCRIPT ? this.tokenizer.state = G.MODE.SCRIPT_DATA : t === C.PLAINTEXT && (this.tokenizer.state = G.MODE.PLAINTEXT);
40738
+ t === _.TITLE || t === _.TEXTAREA ? this.tokenizer.state = G.MODE.RCDATA : t === _.STYLE || t === _.XMP || t === _.IFRAME || t === _.NOEMBED || t === _.NOFRAMES || t === _.NOSCRIPT ? this.tokenizer.state = G.MODE.RAWTEXT : t === _.SCRIPT ? this.tokenizer.state = G.MODE.SCRIPT_DATA : t === _.PLAINTEXT && (this.tokenizer.state = G.MODE.PLAINTEXT);
40736
40739
  }
40737
40740
  }
40738
40741
  //Tree mutation
@@ -40765,7 +40768,7 @@ class FX {
40765
40768
  this.treeAdapter.setTemplateContent(n, r), this._attachElementToTree(n), this.openElements.push(n);
40766
40769
  }
40767
40770
  _insertFakeRootElement() {
40768
- const t = this.treeAdapter.createElement(C.HTML, Pe.HTML, []);
40771
+ const t = this.treeAdapter.createElement(_.HTML, Pe.HTML, []);
40769
40772
  this.treeAdapter.appendChild(this.openElements.current, t), this.openElements.push(t);
40770
40773
  }
40771
40774
  _appendCommentNode(t, n) {
@@ -40790,10 +40793,10 @@ class FX {
40790
40793
  if (!n || n === this.document)
40791
40794
  return !1;
40792
40795
  const r = this.treeAdapter.getNamespaceURI(n);
40793
- if (r === Pe.HTML || this.treeAdapter.getTagName(n) === C.ANNOTATION_XML && r === Pe.MATHML && t.type === G.START_TAG_TOKEN && t.tagName === C.SVG)
40796
+ if (r === Pe.HTML || this.treeAdapter.getTagName(n) === _.ANNOTATION_XML && r === Pe.MATHML && t.type === G.START_TAG_TOKEN && t.tagName === _.SVG)
40794
40797
  return !1;
40795
40798
  const i = t.type === G.CHARACTER_TOKEN || t.type === G.NULL_CHARACTER_TOKEN || t.type === G.WHITESPACE_CHARACTER_TOKEN;
40796
- return (t.type === G.START_TAG_TOKEN && t.tagName !== C.MGLYPH && t.tagName !== C.MALIGNMARK || i) && this._isIntegrationPoint(n, Pe.MATHML) || (t.type === G.START_TAG_TOKEN || i) && this._isIntegrationPoint(n, Pe.HTML) ? !1 : t.type !== G.EOF_TOKEN;
40799
+ return (t.type === G.START_TAG_TOKEN && t.tagName !== _.MGLYPH && t.tagName !== _.MALIGNMARK || i) && this._isIntegrationPoint(n, Pe.MATHML) || (t.type === G.START_TAG_TOKEN || i) && this._isIntegrationPoint(n, Pe.HTML) ? !1 : t.type !== G.EOF_TOKEN;
40797
40800
  }
40798
40801
  _processToken(t) {
40799
40802
  Z2[this.insertionMode][t.type](this, t);
@@ -40832,7 +40835,7 @@ class FX {
40832
40835
  this.openElements.generateImpliedEndTags(), this.openElements.popUntilTableCellPopped(), this.activeFormattingElements.clearToLastMarker(), this.insertionMode = Si;
40833
40836
  }
40834
40837
  _closePElement() {
40835
- this.openElements.generateImpliedEndTagsWithExclusion(C.P), this.openElements.popUntilTagNamePopped(C.P);
40838
+ this.openElements.generateImpliedEndTagsWithExclusion(_.P), this.openElements.popUntilTagNamePopped(_.P);
40836
40839
  }
40837
40840
  //Insertion modes
40838
40841
  _resetInsertionMode() {
@@ -40843,19 +40846,19 @@ class FX {
40843
40846
  if (a) {
40844
40847
  this.insertionMode = a;
40845
40848
  break;
40846
- } else if (!n && (i === C.TD || i === C.TH)) {
40849
+ } else if (!n && (i === _.TD || i === _.TH)) {
40847
40850
  this.insertionMode = R1;
40848
40851
  break;
40849
- } else if (!n && i === C.HEAD) {
40852
+ } else if (!n && i === _.HEAD) {
40850
40853
  this.insertionMode = to;
40851
40854
  break;
40852
- } else if (i === C.SELECT) {
40855
+ } else if (i === _.SELECT) {
40853
40856
  this._resetInsertionModeForSelect(t);
40854
40857
  break;
40855
- } else if (i === C.TEMPLATE) {
40858
+ } else if (i === _.TEMPLATE) {
40856
40859
  this.insertionMode = this.currentTmplInsertionMode;
40857
40860
  break;
40858
- } else if (i === C.HTML) {
40861
+ } else if (i === _.HTML) {
40859
40862
  this.insertionMode = this.headElement ? I1 : N1;
40860
40863
  break;
40861
40864
  } else if (n) {
@@ -40868,9 +40871,9 @@ class FX {
40868
40871
  if (t > 0)
40869
40872
  for (let n = t - 1; n > 0; n--) {
40870
40873
  const r = this.openElements.items[n], i = this.treeAdapter.getTagName(r);
40871
- if (i === C.TEMPLATE)
40874
+ if (i === _.TEMPLATE)
40872
40875
  break;
40873
- if (i === C.TABLE) {
40876
+ if (i === _.TABLE) {
40874
40877
  this.insertionMode = Qm;
40875
40878
  return;
40876
40879
  }
@@ -40886,7 +40889,7 @@ class FX {
40886
40889
  //Foster parenting
40887
40890
  _isElementCausesFosterParenting(t) {
40888
40891
  const n = this.treeAdapter.getTagName(t);
40889
- return n === C.TABLE || n === C.TBODY || n === C.TFOOT || n === C.THEAD || n === C.TR;
40892
+ return n === _.TABLE || n === _.TBODY || n === _.TFOOT || n === _.THEAD || n === _.TR;
40890
40893
  }
40891
40894
  _shouldFosterParentOnInsertion() {
40892
40895
  return this.fosterParentingEnabled && this._isElementCausesFosterParenting(this.openElements.current);
@@ -40898,10 +40901,10 @@ class FX {
40898
40901
  };
40899
40902
  for (let n = this.openElements.stackTop; n >= 0; n--) {
40900
40903
  const r = this.openElements.items[n], i = this.treeAdapter.getTagName(r), a = this.treeAdapter.getNamespaceURI(r);
40901
- if (i === C.TEMPLATE && a === Pe.HTML) {
40904
+ if (i === _.TEMPLATE && a === Pe.HTML) {
40902
40905
  t.parent = this.treeAdapter.getTemplateContent(r);
40903
40906
  break;
40904
- } else if (i === C.TABLE) {
40907
+ } else if (i === _.TABLE) {
40905
40908
  t.parent = this.treeAdapter.getParentNode(r), t.parent ? t.beforeElement = r : t.parent = this.openElements.items[n - 1];
40906
40909
  break;
40907
40910
  }
@@ -40955,7 +40958,7 @@ function HX(e, t, n) {
40955
40958
  e._fosterParentElement(n);
40956
40959
  else {
40957
40960
  const r = e.treeAdapter.getTagName(t), i = e.treeAdapter.getNamespaceURI(t);
40958
- r === C.TEMPLATE && i === Pe.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
40961
+ r === _.TEMPLATE && i === Pe.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
40959
40962
  }
40960
40963
  }
40961
40964
  function UX(e, t, n) {
@@ -41002,44 +41005,44 @@ function So(e, t) {
41002
41005
  e._err(fn.missingDoctype, { beforeToken: !0 }), e.treeAdapter.setDocumentMode(e.document, Ka.DOCUMENT_MODE.QUIRKS), e.insertionMode = Ym, e._processToken(t);
41003
41006
  }
41004
41007
  function WX(e, t) {
41005
- t.tagName === C.HTML ? (e._insertElement(t, Pe.HTML), e.insertionMode = N1) : Xo(e, t);
41008
+ t.tagName === _.HTML ? (e._insertElement(t, Pe.HTML), e.insertionMode = N1) : Xo(e, t);
41006
41009
  }
41007
41010
  function VX(e, t) {
41008
41011
  const n = t.tagName;
41009
- (n === C.HTML || n === C.HEAD || n === C.BODY || n === C.BR) && Xo(e, t);
41012
+ (n === _.HTML || n === _.HEAD || n === _.BODY || n === _.BR) && Xo(e, t);
41010
41013
  }
41011
41014
  function Xo(e, t) {
41012
41015
  e._insertFakeRootElement(), e.insertionMode = N1, e._processToken(t);
41013
41016
  }
41014
41017
  function KX(e, t) {
41015
41018
  const n = t.tagName;
41016
- n === C.HTML ? jn(e, t) : n === C.HEAD ? (e._insertElement(t, Pe.HTML), e.headElement = e.openElements.current, e.insertionMode = to) : Jo(e, t);
41019
+ n === _.HTML ? jn(e, t) : n === _.HEAD ? (e._insertElement(t, Pe.HTML), e.headElement = e.openElements.current, e.insertionMode = to) : Jo(e, t);
41017
41020
  }
41018
41021
  function GX(e, t) {
41019
41022
  const n = t.tagName;
41020
- n === C.HEAD || n === C.BODY || n === C.HTML || n === C.BR ? Jo(e, t) : e._err(fn.endTagWithoutMatchingOpenElement);
41023
+ n === _.HEAD || n === _.BODY || n === _.HTML || n === _.BR ? Jo(e, t) : e._err(fn.endTagWithoutMatchingOpenElement);
41021
41024
  }
41022
41025
  function Jo(e, t) {
41023
- e._insertFakeElement(C.HEAD), e.headElement = e.openElements.current, e.insertionMode = to, e._processToken(t);
41026
+ e._insertFakeElement(_.HEAD), e.headElement = e.openElements.current, e.insertionMode = to, e._processToken(t);
41024
41027
  }
41025
41028
  function an(e, t) {
41026
41029
  const n = t.tagName;
41027
- n === C.HTML ? jn(e, t) : n === C.BASE || n === C.BASEFONT || n === C.BGSOUND || n === C.LINK || n === C.META ? (e._appendElement(t, Pe.HTML), t.ackSelfClosing = !0) : n === C.TITLE ? e._switchToTextParsing(t, G.MODE.RCDATA) : n === C.NOSCRIPT ? e.options.scriptingEnabled ? e._switchToTextParsing(t, G.MODE.RAWTEXT) : (e._insertElement(t, Pe.HTML), e.insertionMode = rC) : n === C.NOFRAMES || n === C.STYLE ? e._switchToTextParsing(t, G.MODE.RAWTEXT) : n === C.SCRIPT ? e._switchToTextParsing(t, G.MODE.SCRIPT_DATA) : n === C.TEMPLATE ? (e._insertTemplate(t, Pe.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1, e.insertionMode = Yc, e._pushTmplInsertionMode(Yc)) : n === C.HEAD ? e._err(fn.misplacedStartTagForHeadElement) : el(e, t);
41030
+ n === _.HTML ? jn(e, t) : n === _.BASE || n === _.BASEFONT || n === _.BGSOUND || n === _.LINK || n === _.META ? (e._appendElement(t, Pe.HTML), t.ackSelfClosing = !0) : n === _.TITLE ? e._switchToTextParsing(t, G.MODE.RCDATA) : n === _.NOSCRIPT ? e.options.scriptingEnabled ? e._switchToTextParsing(t, G.MODE.RAWTEXT) : (e._insertElement(t, Pe.HTML), e.insertionMode = rC) : n === _.NOFRAMES || n === _.STYLE ? e._switchToTextParsing(t, G.MODE.RAWTEXT) : n === _.SCRIPT ? e._switchToTextParsing(t, G.MODE.SCRIPT_DATA) : n === _.TEMPLATE ? (e._insertTemplate(t, Pe.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1, e.insertionMode = Yc, e._pushTmplInsertionMode(Yc)) : n === _.HEAD ? e._err(fn.misplacedStartTagForHeadElement) : el(e, t);
41028
41031
  }
41029
41032
  function Ga(e, t) {
41030
41033
  const n = t.tagName;
41031
- n === C.HEAD ? (e.openElements.pop(), e.insertionMode = I1) : n === C.BODY || n === C.BR || n === C.HTML ? el(e, t) : n === C.TEMPLATE && e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagName !== C.TEMPLATE && e._err(fn.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(C.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e._popTmplInsertionMode(), e._resetInsertionMode()) : e._err(fn.endTagWithoutMatchingOpenElement);
41034
+ n === _.HEAD ? (e.openElements.pop(), e.insertionMode = I1) : n === _.BODY || n === _.BR || n === _.HTML ? el(e, t) : n === _.TEMPLATE && e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagName !== _.TEMPLATE && e._err(fn.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(_.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e._popTmplInsertionMode(), e._resetInsertionMode()) : e._err(fn.endTagWithoutMatchingOpenElement);
41032
41035
  }
41033
41036
  function el(e, t) {
41034
41037
  e.openElements.pop(), e.insertionMode = I1, e._processToken(t);
41035
41038
  }
41036
41039
  function YX(e, t) {
41037
41040
  const n = t.tagName;
41038
- n === C.HTML ? jn(e, t) : n === C.BASEFONT || n === C.BGSOUND || n === C.HEAD || n === C.LINK || n === C.META || n === C.NOFRAMES || n === C.STYLE ? an(e, t) : n === C.NOSCRIPT ? e._err(fn.nestedNoscriptInHead) : tl(e, t);
41041
+ n === _.HTML ? jn(e, t) : n === _.BASEFONT || n === _.BGSOUND || n === _.HEAD || n === _.LINK || n === _.META || n === _.NOFRAMES || n === _.STYLE ? an(e, t) : n === _.NOSCRIPT ? e._err(fn.nestedNoscriptInHead) : tl(e, t);
41039
41042
  }
41040
41043
  function ZX(e, t) {
41041
41044
  const n = t.tagName;
41042
- n === C.NOSCRIPT ? (e.openElements.pop(), e.insertionMode = to) : n === C.BR ? tl(e, t) : e._err(fn.endTagWithoutMatchingOpenElement);
41045
+ n === _.NOSCRIPT ? (e.openElements.pop(), e.insertionMode = to) : n === _.BR ? tl(e, t) : e._err(fn.endTagWithoutMatchingOpenElement);
41043
41046
  }
41044
41047
  function tl(e, t) {
41045
41048
  const n = t.type === G.EOF_TOKEN ? fn.openElementsLeftAfterEof : fn.disallowedContentInNoscriptInHead;
@@ -41047,14 +41050,14 @@ function tl(e, t) {
41047
41050
  }
41048
41051
  function QX(e, t) {
41049
41052
  const n = t.tagName;
41050
- n === C.HTML ? jn(e, t) : n === C.BODY ? (e._insertElement(t, Pe.HTML), e.framesetOk = !1, e.insertionMode = Gr) : n === C.FRAMESET ? (e._insertElement(t, Pe.HTML), e.insertionMode = F1) : n === C.BASE || n === C.BASEFONT || n === C.BGSOUND || n === C.LINK || n === C.META || n === C.NOFRAMES || n === C.SCRIPT || n === C.STYLE || n === C.TEMPLATE || n === C.TITLE ? (e._err(fn.abandonedHeadElementChild), e.openElements.push(e.headElement), an(e, t), e.openElements.remove(e.headElement)) : n === C.HEAD ? e._err(fn.misplacedStartTagForHeadElement) : nl(e, t);
41053
+ n === _.HTML ? jn(e, t) : n === _.BODY ? (e._insertElement(t, Pe.HTML), e.framesetOk = !1, e.insertionMode = Gr) : n === _.FRAMESET ? (e._insertElement(t, Pe.HTML), e.insertionMode = F1) : n === _.BASE || n === _.BASEFONT || n === _.BGSOUND || n === _.LINK || n === _.META || n === _.NOFRAMES || n === _.SCRIPT || n === _.STYLE || n === _.TEMPLATE || n === _.TITLE ? (e._err(fn.abandonedHeadElementChild), e.openElements.push(e.headElement), an(e, t), e.openElements.remove(e.headElement)) : n === _.HEAD ? e._err(fn.misplacedStartTagForHeadElement) : nl(e, t);
41051
41054
  }
41052
41055
  function XX(e, t) {
41053
41056
  const n = t.tagName;
41054
- n === C.BODY || n === C.HTML || n === C.BR ? nl(e, t) : n === C.TEMPLATE ? Ga(e, t) : e._err(fn.endTagWithoutMatchingOpenElement);
41057
+ n === _.BODY || n === _.HTML || n === _.BR ? nl(e, t) : n === _.TEMPLATE ? Ga(e, t) : e._err(fn.endTagWithoutMatchingOpenElement);
41055
41058
  }
41056
41059
  function nl(e, t) {
41057
- e._insertFakeElement(C.BODY), e.insertionMode = Gr, e._processToken(t);
41060
+ e._insertFakeElement(_.BODY), e.insertionMode = Gr, e._processToken(t);
41058
41061
  }
41059
41062
  function Ea(e, t) {
41060
41063
  e._reconstructActiveFormattingElements(), e._insertCharacters(t);
@@ -41074,19 +41077,19 @@ function tJ(e, t) {
41074
41077
  e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, Pe.HTML), e.insertionMode = F1);
41075
41078
  }
41076
41079
  function ui(e, t) {
41077
- e.openElements.hasInButtonScope(C.P) && e._closePElement(), e._insertElement(t, Pe.HTML);
41080
+ e.openElements.hasInButtonScope(_.P) && e._closePElement(), e._insertElement(t, Pe.HTML);
41078
41081
  }
41079
41082
  function nJ(e, t) {
41080
- e.openElements.hasInButtonScope(C.P) && e._closePElement();
41083
+ e.openElements.hasInButtonScope(_.P) && e._closePElement();
41081
41084
  const n = e.openElements.currentTagName;
41082
- (n === C.H1 || n === C.H2 || n === C.H3 || n === C.H4 || n === C.H5 || n === C.H6) && e.openElements.pop(), e._insertElement(t, Pe.HTML);
41085
+ (n === _.H1 || n === _.H2 || n === _.H3 || n === _.H4 || n === _.H5 || n === _.H6) && e.openElements.pop(), e._insertElement(t, Pe.HTML);
41083
41086
  }
41084
41087
  function X2(e, t) {
41085
- e.openElements.hasInButtonScope(C.P) && e._closePElement(), e._insertElement(t, Pe.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
41088
+ e.openElements.hasInButtonScope(_.P) && e._closePElement(), e._insertElement(t, Pe.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
41086
41089
  }
41087
41090
  function rJ(e, t) {
41088
41091
  const n = e.openElements.tmplCount > 0;
41089
- (!e.formElement || n) && (e.openElements.hasInButtonScope(C.P) && e._closePElement(), e._insertElement(t, Pe.HTML), n || (e.formElement = e.openElements.current));
41092
+ (!e.formElement || n) && (e.openElements.hasInButtonScope(_.P) && e._closePElement(), e._insertElement(t, Pe.HTML), n || (e.formElement = e.openElements.current));
41090
41093
  }
41091
41094
  function iJ(e, t) {
41092
41095
  e.framesetOk = !1;
@@ -41094,36 +41097,36 @@ function iJ(e, t) {
41094
41097
  for (let r = e.openElements.stackTop; r >= 0; r--) {
41095
41098
  const i = e.openElements.items[r], a = e.treeAdapter.getTagName(i);
41096
41099
  let s = null;
41097
- if (n === C.LI && a === C.LI ? s = C.LI : (n === C.DD || n === C.DT) && (a === C.DD || a === C.DT) && (s = a), s) {
41100
+ if (n === _.LI && a === _.LI ? s = _.LI : (n === _.DD || n === _.DT) && (a === _.DD || a === _.DT) && (s = a), s) {
41098
41101
  e.openElements.generateImpliedEndTagsWithExclusion(s), e.openElements.popUntilTagNamePopped(s);
41099
41102
  break;
41100
41103
  }
41101
- if (a !== C.ADDRESS && a !== C.DIV && a !== C.P && e._isSpecialElement(i))
41104
+ if (a !== _.ADDRESS && a !== _.DIV && a !== _.P && e._isSpecialElement(i))
41102
41105
  break;
41103
41106
  }
41104
- e.openElements.hasInButtonScope(C.P) && e._closePElement(), e._insertElement(t, Pe.HTML);
41107
+ e.openElements.hasInButtonScope(_.P) && e._closePElement(), e._insertElement(t, Pe.HTML);
41105
41108
  }
41106
41109
  function aJ(e, t) {
41107
- e.openElements.hasInButtonScope(C.P) && e._closePElement(), e._insertElement(t, Pe.HTML), e.tokenizer.state = G.MODE.PLAINTEXT;
41110
+ e.openElements.hasInButtonScope(_.P) && e._closePElement(), e._insertElement(t, Pe.HTML), e.tokenizer.state = G.MODE.PLAINTEXT;
41108
41111
  }
41109
41112
  function sJ(e, t) {
41110
- e.openElements.hasInScope(C.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(C.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML), e.framesetOk = !1;
41113
+ e.openElements.hasInScope(_.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(_.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML), e.framesetOk = !1;
41111
41114
  }
41112
41115
  function oJ(e, t) {
41113
- const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(C.A);
41116
+ const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);
41114
41117
  n && (Vi(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
41115
41118
  }
41116
41119
  function fs(e, t) {
41117
41120
  e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
41118
41121
  }
41119
41122
  function lJ(e, t) {
41120
- e._reconstructActiveFormattingElements(), e.openElements.hasInScope(C.NOBR) && (Vi(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, Pe.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
41123
+ e._reconstructActiveFormattingElements(), e.openElements.hasInScope(_.NOBR) && (Vi(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, Pe.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
41121
41124
  }
41122
41125
  function J2(e, t) {
41123
41126
  e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
41124
41127
  }
41125
41128
  function uJ(e, t) {
41126
- e.treeAdapter.getDocumentMode(e.document) !== Ka.DOCUMENT_MODE.QUIRKS && e.openElements.hasInButtonScope(C.P) && e._closePElement(), e._insertElement(t, Pe.HTML), e.framesetOk = !1, e.insertionMode = pn;
41129
+ e.treeAdapter.getDocumentMode(e.document) !== Ka.DOCUMENT_MODE.QUIRKS && e.openElements.hasInButtonScope(_.P) && e._closePElement(), e._insertElement(t, Pe.HTML), e.framesetOk = !1, e.insertionMode = pn;
41127
41130
  }
41128
41131
  function ms(e, t) {
41129
41132
  e._reconstructActiveFormattingElements(), e._appendElement(t, Pe.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
@@ -41137,16 +41140,16 @@ function ey(e, t) {
41137
41140
  e._appendElement(t, Pe.HTML), t.ackSelfClosing = !0;
41138
41141
  }
41139
41142
  function dJ(e, t) {
41140
- e.openElements.hasInButtonScope(C.P) && e._closePElement(), e._appendElement(t, Pe.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
41143
+ e.openElements.hasInButtonScope(_.P) && e._closePElement(), e._appendElement(t, Pe.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
41141
41144
  }
41142
41145
  function fJ(e, t) {
41143
- t.tagName = C.IMG, ms(e, t);
41146
+ t.tagName = _.IMG, ms(e, t);
41144
41147
  }
41145
41148
  function hJ(e, t) {
41146
41149
  e._insertElement(t, Pe.HTML), e.skipNextNewLine = !0, e.tokenizer.state = G.MODE.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = Gc;
41147
41150
  }
41148
41151
  function pJ(e, t) {
41149
- e.openElements.hasInButtonScope(C.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, G.MODE.RAWTEXT);
41152
+ e.openElements.hasInButtonScope(_.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, G.MODE.RAWTEXT);
41150
41153
  }
41151
41154
  function mJ(e, t) {
41152
41155
  e.framesetOk = !1, e._switchToTextParsing(t, G.MODE.RAWTEXT);
@@ -41158,16 +41161,16 @@ function gJ(e, t) {
41158
41161
  e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML), e.framesetOk = !1, e.insertionMode === pn || e.insertionMode === P1 || e.insertionMode === cr || e.insertionMode === Si || e.insertionMode === R1 ? e.insertionMode = Qm : e.insertionMode = Zm;
41159
41162
  }
41160
41163
  function ny(e, t) {
41161
- e.openElements.currentTagName === C.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML);
41164
+ e.openElements.currentTagName === _.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML);
41162
41165
  }
41163
41166
  function ry(e, t) {
41164
- e.openElements.hasInScope(C.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, Pe.HTML);
41167
+ e.openElements.hasInScope(_.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, Pe.HTML);
41165
41168
  }
41166
41169
  function vJ(e, t) {
41167
- e.openElements.hasInScope(C.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(C.RTC), e._insertElement(t, Pe.HTML);
41170
+ e.openElements.hasInScope(_.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(_.RTC), e._insertElement(t, Pe.HTML);
41168
41171
  }
41169
41172
  function yJ(e, t) {
41170
- e.openElements.hasInButtonScope(C.P) && e._closePElement(), e._insertElement(t, Pe.HTML);
41173
+ e.openElements.hasInButtonScope(_.P) && e._closePElement(), e._insertElement(t, Pe.HTML);
41171
41174
  }
41172
41175
  function EJ(e, t) {
41173
41176
  e._reconstructActiveFormattingElements(), zr.adjustTokenMathMLAttrs(t), zr.adjustTokenXMLAttrs(t), t.selfClosing ? e._appendElement(t, Pe.MATHML) : e._insertElement(t, Pe.MATHML), t.ackSelfClosing = !0;
@@ -41182,44 +41185,44 @@ function jn(e, t) {
41182
41185
  const n = t.tagName;
41183
41186
  switch (n.length) {
41184
41187
  case 1:
41185
- n === C.I || n === C.S || n === C.B || n === C.U ? fs(e, t) : n === C.P ? ui(e, t) : n === C.A ? oJ(e, t) : er(e, t);
41188
+ n === _.I || n === _.S || n === _.B || n === _.U ? fs(e, t) : n === _.P ? ui(e, t) : n === _.A ? oJ(e, t) : er(e, t);
41186
41189
  break;
41187
41190
  case 2:
41188
- n === C.DL || n === C.OL || n === C.UL ? ui(e, t) : n === C.H1 || n === C.H2 || n === C.H3 || n === C.H4 || n === C.H5 || n === C.H6 ? nJ(e, t) : n === C.LI || n === C.DD || n === C.DT ? iJ(e, t) : n === C.EM || n === C.TT ? fs(e, t) : n === C.BR ? ms(e, t) : n === C.HR ? dJ(e, t) : n === C.RB ? ry(e, t) : n === C.RT || n === C.RP ? vJ(e, t) : n !== C.TH && n !== C.TD && n !== C.TR && er(e, t);
41191
+ n === _.DL || n === _.OL || n === _.UL ? ui(e, t) : n === _.H1 || n === _.H2 || n === _.H3 || n === _.H4 || n === _.H5 || n === _.H6 ? nJ(e, t) : n === _.LI || n === _.DD || n === _.DT ? iJ(e, t) : n === _.EM || n === _.TT ? fs(e, t) : n === _.BR ? ms(e, t) : n === _.HR ? dJ(e, t) : n === _.RB ? ry(e, t) : n === _.RT || n === _.RP ? vJ(e, t) : n !== _.TH && n !== _.TD && n !== _.TR && er(e, t);
41189
41192
  break;
41190
41193
  case 3:
41191
- n === C.DIV || n === C.DIR || n === C.NAV ? ui(e, t) : n === C.PRE ? X2(e, t) : n === C.BIG ? fs(e, t) : n === C.IMG || n === C.WBR ? ms(e, t) : n === C.XMP ? pJ(e, t) : n === C.SVG ? bJ(e, t) : n === C.RTC ? ry(e, t) : n !== C.COL && er(e, t);
41194
+ n === _.DIV || n === _.DIR || n === _.NAV ? ui(e, t) : n === _.PRE ? X2(e, t) : n === _.BIG ? fs(e, t) : n === _.IMG || n === _.WBR ? ms(e, t) : n === _.XMP ? pJ(e, t) : n === _.SVG ? bJ(e, t) : n === _.RTC ? ry(e, t) : n !== _.COL && er(e, t);
41192
41195
  break;
41193
41196
  case 4:
41194
- n === C.HTML ? JX(e, t) : n === C.BASE || n === C.LINK || n === C.META ? an(e, t) : n === C.BODY ? eJ(e, t) : n === C.MAIN || n === C.MENU ? ui(e, t) : n === C.FORM ? rJ(e, t) : n === C.CODE || n === C.FONT ? fs(e, t) : n === C.NOBR ? lJ(e, t) : n === C.AREA ? ms(e, t) : n === C.MATH ? EJ(e, t) : n === C.MENU ? yJ(e, t) : n !== C.HEAD && er(e, t);
41197
+ n === _.HTML ? JX(e, t) : n === _.BASE || n === _.LINK || n === _.META ? an(e, t) : n === _.BODY ? eJ(e, t) : n === _.MAIN || n === _.MENU ? ui(e, t) : n === _.FORM ? rJ(e, t) : n === _.CODE || n === _.FONT ? fs(e, t) : n === _.NOBR ? lJ(e, t) : n === _.AREA ? ms(e, t) : n === _.MATH ? EJ(e, t) : n === _.MENU ? yJ(e, t) : n !== _.HEAD && er(e, t);
41195
41198
  break;
41196
41199
  case 5:
41197
- n === C.STYLE || n === C.TITLE ? an(e, t) : n === C.ASIDE ? ui(e, t) : n === C.SMALL ? fs(e, t) : n === C.TABLE ? uJ(e, t) : n === C.EMBED ? ms(e, t) : n === C.INPUT ? cJ(e, t) : n === C.PARAM || n === C.TRACK ? ey(e, t) : n === C.IMAGE ? fJ(e, t) : n !== C.FRAME && n !== C.TBODY && n !== C.TFOOT && n !== C.THEAD && er(e, t);
41200
+ n === _.STYLE || n === _.TITLE ? an(e, t) : n === _.ASIDE ? ui(e, t) : n === _.SMALL ? fs(e, t) : n === _.TABLE ? uJ(e, t) : n === _.EMBED ? ms(e, t) : n === _.INPUT ? cJ(e, t) : n === _.PARAM || n === _.TRACK ? ey(e, t) : n === _.IMAGE ? fJ(e, t) : n !== _.FRAME && n !== _.TBODY && n !== _.TFOOT && n !== _.THEAD && er(e, t);
41198
41201
  break;
41199
41202
  case 6:
41200
- n === C.SCRIPT ? an(e, t) : n === C.CENTER || n === C.FIGURE || n === C.FOOTER || n === C.HEADER || n === C.HGROUP || n === C.DIALOG ? ui(e, t) : n === C.BUTTON ? sJ(e, t) : n === C.STRIKE || n === C.STRONG ? fs(e, t) : n === C.APPLET || n === C.OBJECT ? J2(e, t) : n === C.KEYGEN ? ms(e, t) : n === C.SOURCE ? ey(e, t) : n === C.IFRAME ? mJ(e, t) : n === C.SELECT ? gJ(e, t) : n === C.OPTION ? ny(e, t) : er(e, t);
41203
+ n === _.SCRIPT ? an(e, t) : n === _.CENTER || n === _.FIGURE || n === _.FOOTER || n === _.HEADER || n === _.HGROUP || n === _.DIALOG ? ui(e, t) : n === _.BUTTON ? sJ(e, t) : n === _.STRIKE || n === _.STRONG ? fs(e, t) : n === _.APPLET || n === _.OBJECT ? J2(e, t) : n === _.KEYGEN ? ms(e, t) : n === _.SOURCE ? ey(e, t) : n === _.IFRAME ? mJ(e, t) : n === _.SELECT ? gJ(e, t) : n === _.OPTION ? ny(e, t) : er(e, t);
41201
41204
  break;
41202
41205
  case 7:
41203
- n === C.BGSOUND ? an(e, t) : n === C.DETAILS || n === C.ADDRESS || n === C.ARTICLE || n === C.SECTION || n === C.SUMMARY ? ui(e, t) : n === C.LISTING ? X2(e, t) : n === C.MARQUEE ? J2(e, t) : n === C.NOEMBED ? ty(e, t) : n !== C.CAPTION && er(e, t);
41206
+ n === _.BGSOUND ? an(e, t) : n === _.DETAILS || n === _.ADDRESS || n === _.ARTICLE || n === _.SECTION || n === _.SUMMARY ? ui(e, t) : n === _.LISTING ? X2(e, t) : n === _.MARQUEE ? J2(e, t) : n === _.NOEMBED ? ty(e, t) : n !== _.CAPTION && er(e, t);
41204
41207
  break;
41205
41208
  case 8:
41206
- n === C.BASEFONT ? an(e, t) : n === C.FRAMESET ? tJ(e, t) : n === C.FIELDSET ? ui(e, t) : n === C.TEXTAREA ? hJ(e, t) : n === C.TEMPLATE ? an(e, t) : n === C.NOSCRIPT ? e.options.scriptingEnabled ? ty(e, t) : er(e, t) : n === C.OPTGROUP ? ny(e, t) : n !== C.COLGROUP && er(e, t);
41209
+ n === _.BASEFONT ? an(e, t) : n === _.FRAMESET ? tJ(e, t) : n === _.FIELDSET ? ui(e, t) : n === _.TEXTAREA ? hJ(e, t) : n === _.TEMPLATE ? an(e, t) : n === _.NOSCRIPT ? e.options.scriptingEnabled ? ty(e, t) : er(e, t) : n === _.OPTGROUP ? ny(e, t) : n !== _.COLGROUP && er(e, t);
41207
41210
  break;
41208
41211
  case 9:
41209
- n === C.PLAINTEXT ? aJ(e, t) : er(e, t);
41212
+ n === _.PLAINTEXT ? aJ(e, t) : er(e, t);
41210
41213
  break;
41211
41214
  case 10:
41212
- n === C.BLOCKQUOTE || n === C.FIGCAPTION ? ui(e, t) : er(e, t);
41215
+ n === _.BLOCKQUOTE || n === _.FIGCAPTION ? ui(e, t) : er(e, t);
41213
41216
  break;
41214
41217
  default:
41215
41218
  er(e, t);
41216
41219
  }
41217
41220
  }
41218
41221
  function TJ(e) {
41219
- e.openElements.hasInScope(C.BODY) && (e.insertionMode = Xm);
41222
+ e.openElements.hasInScope(_.BODY) && (e.insertionMode = Xm);
41220
41223
  }
41221
41224
  function _J(e, t) {
41222
- e.openElements.hasInScope(C.BODY) && (e.insertionMode = Xm, e._processToken(t));
41225
+ e.openElements.hasInScope(_.BODY) && (e.insertionMode = Xm, e._processToken(t));
41223
41226
  }
41224
41227
  function Hi(e, t) {
41225
41228
  const n = t.tagName;
@@ -41227,13 +41230,13 @@ function Hi(e, t) {
41227
41230
  }
41228
41231
  function CJ(e) {
41229
41232
  const t = e.openElements.tmplCount > 0, n = e.formElement;
41230
- t || (e.formElement = null), (n || t) && e.openElements.hasInScope(C.FORM) && (e.openElements.generateImpliedEndTags(), t ? e.openElements.popUntilTagNamePopped(C.FORM) : e.openElements.remove(n));
41233
+ t || (e.formElement = null), (n || t) && e.openElements.hasInScope(_.FORM) && (e.openElements.generateImpliedEndTags(), t ? e.openElements.popUntilTagNamePopped(_.FORM) : e.openElements.remove(n));
41231
41234
  }
41232
41235
  function xJ(e) {
41233
- e.openElements.hasInButtonScope(C.P) || e._insertFakeElement(C.P), e._closePElement();
41236
+ e.openElements.hasInButtonScope(_.P) || e._insertFakeElement(_.P), e._closePElement();
41234
41237
  }
41235
41238
  function wJ(e) {
41236
- e.openElements.hasInListItemScope(C.LI) && (e.openElements.generateImpliedEndTagsWithExclusion(C.LI), e.openElements.popUntilTagNamePopped(C.LI));
41239
+ e.openElements.hasInListItemScope(_.LI) && (e.openElements.generateImpliedEndTagsWithExclusion(_.LI), e.openElements.popUntilTagNamePopped(_.LI));
41237
41240
  }
41238
41241
  function AJ(e, t) {
41239
41242
  const n = t.tagName;
@@ -41247,7 +41250,7 @@ function iy(e, t) {
41247
41250
  e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker());
41248
41251
  }
41249
41252
  function kJ(e) {
41250
- e._reconstructActiveFormattingElements(), e._insertFakeElement(C.BR), e.openElements.pop(), e.framesetOk = !1;
41253
+ e._reconstructActiveFormattingElements(), e._insertFakeElement(_.BR), e.openElements.pop(), e.framesetOk = !1;
41251
41254
  }
41252
41255
  function _r(e, t) {
41253
41256
  const n = t.tagName;
@@ -41265,31 +41268,31 @@ function Jm(e, t) {
41265
41268
  const n = t.tagName;
41266
41269
  switch (n.length) {
41267
41270
  case 1:
41268
- n === C.A || n === C.B || n === C.I || n === C.S || n === C.U ? Vi(e, t) : n === C.P ? xJ(e) : _r(e, t);
41271
+ n === _.A || n === _.B || n === _.I || n === _.S || n === _.U ? Vi(e, t) : n === _.P ? xJ(e) : _r(e, t);
41269
41272
  break;
41270
41273
  case 2:
41271
- n === C.DL || n === C.UL || n === C.OL ? Hi(e, t) : n === C.LI ? wJ(e) : n === C.DD || n === C.DT ? AJ(e, t) : n === C.H1 || n === C.H2 || n === C.H3 || n === C.H4 || n === C.H5 || n === C.H6 ? SJ(e) : n === C.BR ? kJ(e) : n === C.EM || n === C.TT ? Vi(e, t) : _r(e, t);
41274
+ n === _.DL || n === _.UL || n === _.OL ? Hi(e, t) : n === _.LI ? wJ(e) : n === _.DD || n === _.DT ? AJ(e, t) : n === _.H1 || n === _.H2 || n === _.H3 || n === _.H4 || n === _.H5 || n === _.H6 ? SJ(e) : n === _.BR ? kJ(e) : n === _.EM || n === _.TT ? Vi(e, t) : _r(e, t);
41272
41275
  break;
41273
41276
  case 3:
41274
- n === C.BIG ? Vi(e, t) : n === C.DIR || n === C.DIV || n === C.NAV || n === C.PRE ? Hi(e, t) : _r(e, t);
41277
+ n === _.BIG ? Vi(e, t) : n === _.DIR || n === _.DIV || n === _.NAV || n === _.PRE ? Hi(e, t) : _r(e, t);
41275
41278
  break;
41276
41279
  case 4:
41277
- n === C.BODY ? TJ(e) : n === C.HTML ? _J(e, t) : n === C.FORM ? CJ(e) : n === C.CODE || n === C.FONT || n === C.NOBR ? Vi(e, t) : n === C.MAIN || n === C.MENU ? Hi(e, t) : _r(e, t);
41280
+ n === _.BODY ? TJ(e) : n === _.HTML ? _J(e, t) : n === _.FORM ? CJ(e) : n === _.CODE || n === _.FONT || n === _.NOBR ? Vi(e, t) : n === _.MAIN || n === _.MENU ? Hi(e, t) : _r(e, t);
41278
41281
  break;
41279
41282
  case 5:
41280
- n === C.ASIDE ? Hi(e, t) : n === C.SMALL ? Vi(e, t) : _r(e, t);
41283
+ n === _.ASIDE ? Hi(e, t) : n === _.SMALL ? Vi(e, t) : _r(e, t);
41281
41284
  break;
41282
41285
  case 6:
41283
- n === C.CENTER || n === C.FIGURE || n === C.FOOTER || n === C.HEADER || n === C.HGROUP || n === C.DIALOG ? Hi(e, t) : n === C.APPLET || n === C.OBJECT ? iy(e, t) : n === C.STRIKE || n === C.STRONG ? Vi(e, t) : _r(e, t);
41286
+ n === _.CENTER || n === _.FIGURE || n === _.FOOTER || n === _.HEADER || n === _.HGROUP || n === _.DIALOG ? Hi(e, t) : n === _.APPLET || n === _.OBJECT ? iy(e, t) : n === _.STRIKE || n === _.STRONG ? Vi(e, t) : _r(e, t);
41284
41287
  break;
41285
41288
  case 7:
41286
- n === C.ADDRESS || n === C.ARTICLE || n === C.DETAILS || n === C.SECTION || n === C.SUMMARY || n === C.LISTING ? Hi(e, t) : n === C.MARQUEE ? iy(e, t) : _r(e, t);
41289
+ n === _.ADDRESS || n === _.ARTICLE || n === _.DETAILS || n === _.SECTION || n === _.SUMMARY || n === _.LISTING ? Hi(e, t) : n === _.MARQUEE ? iy(e, t) : _r(e, t);
41287
41290
  break;
41288
41291
  case 8:
41289
- n === C.FIELDSET ? Hi(e, t) : n === C.TEMPLATE ? Ga(e, t) : _r(e, t);
41292
+ n === _.FIELDSET ? Hi(e, t) : n === _.TEMPLATE ? Ga(e, t) : _r(e, t);
41290
41293
  break;
41291
41294
  case 10:
41292
- n === C.BLOCKQUOTE || n === C.FIGCAPTION ? Hi(e, t) : _r(e, t);
41295
+ n === _.BLOCKQUOTE || n === _.FIGCAPTION ? Hi(e, t) : _r(e, t);
41293
41296
  break;
41294
41297
  default:
41295
41298
  _r(e, t);
@@ -41299,14 +41302,14 @@ function ci(e, t) {
41299
41302
  e.tmplInsertionModeStackTop > -1 ? cC(e, t) : e.stopped = !0;
41300
41303
  }
41301
41304
  function DJ(e, t) {
41302
- t.tagName === C.SCRIPT && (e.pendingScript = e.openElements.current), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
41305
+ t.tagName === _.SCRIPT && (e.pendingScript = e.openElements.current), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
41303
41306
  }
41304
41307
  function OJ(e, t) {
41305
41308
  e._err(fn.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e._processToken(t);
41306
41309
  }
41307
41310
  function di(e, t) {
41308
41311
  const n = e.openElements.currentTagName;
41309
- n === C.TABLE || n === C.TBODY || n === C.TFOOT || n === C.THEAD || n === C.TR ? (e.pendingCharacterTokens = [], e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = iC, e._processToken(t)) : tr(e, t);
41312
+ n === _.TABLE || n === _.TBODY || n === _.TFOOT || n === _.THEAD || n === _.TR ? (e.pendingCharacterTokens = [], e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = iC, e._processToken(t)) : tr(e, t);
41310
41313
  }
41311
41314
  function NJ(e, t) {
41312
41315
  e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, Pe.HTML), e.insertionMode = P1;
@@ -41315,16 +41318,16 @@ function IJ(e, t) {
41315
41318
  e.openElements.clearBackToTableContext(), e._insertElement(t, Pe.HTML), e.insertionMode = ql;
41316
41319
  }
41317
41320
  function PJ(e, t) {
41318
- e.openElements.clearBackToTableContext(), e._insertFakeElement(C.COLGROUP), e.insertionMode = ql, e._processToken(t);
41321
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(_.COLGROUP), e.insertionMode = ql, e._processToken(t);
41319
41322
  }
41320
41323
  function RJ(e, t) {
41321
41324
  e.openElements.clearBackToTableContext(), e._insertElement(t, Pe.HTML), e.insertionMode = cr;
41322
41325
  }
41323
41326
  function FJ(e, t) {
41324
- e.openElements.clearBackToTableContext(), e._insertFakeElement(C.TBODY), e.insertionMode = cr, e._processToken(t);
41327
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(_.TBODY), e.insertionMode = cr, e._processToken(t);
41325
41328
  }
41326
41329
  function BJ(e, t) {
41327
- e.openElements.hasInTableScope(C.TABLE) && (e.openElements.popUntilTagNamePopped(C.TABLE), e._resetInsertionMode(), e._processToken(t));
41330
+ e.openElements.hasInTableScope(_.TABLE) && (e.openElements.popUntilTagNamePopped(_.TABLE), e._resetInsertionMode(), e._processToken(t));
41328
41331
  }
41329
41332
  function MJ(e, t) {
41330
41333
  const n = G.getTokenAttr(t, eC.TYPE);
@@ -41337,25 +41340,25 @@ function e0(e, t) {
41337
41340
  const n = t.tagName;
41338
41341
  switch (n.length) {
41339
41342
  case 2:
41340
- n === C.TD || n === C.TH || n === C.TR ? FJ(e, t) : tr(e, t);
41343
+ n === _.TD || n === _.TH || n === _.TR ? FJ(e, t) : tr(e, t);
41341
41344
  break;
41342
41345
  case 3:
41343
- n === C.COL ? PJ(e, t) : tr(e, t);
41346
+ n === _.COL ? PJ(e, t) : tr(e, t);
41344
41347
  break;
41345
41348
  case 4:
41346
- n === C.FORM ? LJ(e, t) : tr(e, t);
41349
+ n === _.FORM ? LJ(e, t) : tr(e, t);
41347
41350
  break;
41348
41351
  case 5:
41349
- n === C.TABLE ? BJ(e, t) : n === C.STYLE ? an(e, t) : n === C.TBODY || n === C.TFOOT || n === C.THEAD ? RJ(e, t) : n === C.INPUT ? MJ(e, t) : tr(e, t);
41352
+ n === _.TABLE ? BJ(e, t) : n === _.STYLE ? an(e, t) : n === _.TBODY || n === _.TFOOT || n === _.THEAD ? RJ(e, t) : n === _.INPUT ? MJ(e, t) : tr(e, t);
41350
41353
  break;
41351
41354
  case 6:
41352
- n === C.SCRIPT ? an(e, t) : tr(e, t);
41355
+ n === _.SCRIPT ? an(e, t) : tr(e, t);
41353
41356
  break;
41354
41357
  case 7:
41355
- n === C.CAPTION ? NJ(e, t) : tr(e, t);
41358
+ n === _.CAPTION ? NJ(e, t) : tr(e, t);
41356
41359
  break;
41357
41360
  case 8:
41358
- n === C.COLGROUP ? IJ(e, t) : n === C.TEMPLATE ? an(e, t) : tr(e, t);
41361
+ n === _.COLGROUP ? IJ(e, t) : n === _.TEMPLATE ? an(e, t) : tr(e, t);
41359
41362
  break;
41360
41363
  default:
41361
41364
  tr(e, t);
@@ -41363,7 +41366,7 @@ function e0(e, t) {
41363
41366
  }
41364
41367
  function t0(e, t) {
41365
41368
  const n = t.tagName;
41366
- n === C.TABLE ? e.openElements.hasInTableScope(C.TABLE) && (e.openElements.popUntilTagNamePopped(C.TABLE), e._resetInsertionMode()) : n === C.TEMPLATE ? Ga(e, t) : n !== C.BODY && n !== C.CAPTION && n !== C.COL && n !== C.COLGROUP && n !== C.HTML && n !== C.TBODY && n !== C.TD && n !== C.TFOOT && n !== C.TH && n !== C.THEAD && n !== C.TR && tr(e, t);
41369
+ n === _.TABLE ? e.openElements.hasInTableScope(_.TABLE) && (e.openElements.popUntilTagNamePopped(_.TABLE), e._resetInsertionMode()) : n === _.TEMPLATE ? Ga(e, t) : n !== _.BODY && n !== _.CAPTION && n !== _.COL && n !== _.COLGROUP && n !== _.HTML && n !== _.TBODY && n !== _.TD && n !== _.TFOOT && n !== _.TH && n !== _.THEAD && n !== _.TR && tr(e, t);
41367
41370
  }
41368
41371
  function tr(e, t) {
41369
41372
  const n = e.fosterParentingEnabled;
@@ -41387,70 +41390,70 @@ function ko(e, t) {
41387
41390
  }
41388
41391
  function HJ(e, t) {
41389
41392
  const n = t.tagName;
41390
- n === C.CAPTION || n === C.COL || n === C.COLGROUP || n === C.TBODY || n === C.TD || n === C.TFOOT || n === C.TH || n === C.THEAD || n === C.TR ? e.openElements.hasInTableScope(C.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(C.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = pn, e._processToken(t)) : jn(e, t);
41393
+ n === _.CAPTION || n === _.COL || n === _.COLGROUP || n === _.TBODY || n === _.TD || n === _.TFOOT || n === _.TH || n === _.THEAD || n === _.TR ? e.openElements.hasInTableScope(_.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(_.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = pn, e._processToken(t)) : jn(e, t);
41391
41394
  }
41392
41395
  function UJ(e, t) {
41393
41396
  const n = t.tagName;
41394
- n === C.CAPTION || n === C.TABLE ? e.openElements.hasInTableScope(C.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(C.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = pn, n === C.TABLE && e._processToken(t)) : n !== C.BODY && n !== C.COL && n !== C.COLGROUP && n !== C.HTML && n !== C.TBODY && n !== C.TD && n !== C.TFOOT && n !== C.TH && n !== C.THEAD && n !== C.TR && Jm(e, t);
41397
+ n === _.CAPTION || n === _.TABLE ? e.openElements.hasInTableScope(_.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(_.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = pn, n === _.TABLE && e._processToken(t)) : n !== _.BODY && n !== _.COL && n !== _.COLGROUP && n !== _.HTML && n !== _.TBODY && n !== _.TD && n !== _.TFOOT && n !== _.TH && n !== _.THEAD && n !== _.TR && Jm(e, t);
41395
41398
  }
41396
41399
  function zJ(e, t) {
41397
41400
  const n = t.tagName;
41398
- n === C.HTML ? jn(e, t) : n === C.COL ? (e._appendElement(t, Pe.HTML), t.ackSelfClosing = !0) : n === C.TEMPLATE ? an(e, t) : Zc(e, t);
41401
+ n === _.HTML ? jn(e, t) : n === _.COL ? (e._appendElement(t, Pe.HTML), t.ackSelfClosing = !0) : n === _.TEMPLATE ? an(e, t) : Zc(e, t);
41399
41402
  }
41400
41403
  function qJ(e, t) {
41401
41404
  const n = t.tagName;
41402
- n === C.COLGROUP ? e.openElements.currentTagName === C.COLGROUP && (e.openElements.pop(), e.insertionMode = pn) : n === C.TEMPLATE ? Ga(e, t) : n !== C.COL && Zc(e, t);
41405
+ n === _.COLGROUP ? e.openElements.currentTagName === _.COLGROUP && (e.openElements.pop(), e.insertionMode = pn) : n === _.TEMPLATE ? Ga(e, t) : n !== _.COL && Zc(e, t);
41403
41406
  }
41404
41407
  function Zc(e, t) {
41405
- e.openElements.currentTagName === C.COLGROUP && (e.openElements.pop(), e.insertionMode = pn, e._processToken(t));
41408
+ e.openElements.currentTagName === _.COLGROUP && (e.openElements.pop(), e.insertionMode = pn, e._processToken(t));
41406
41409
  }
41407
41410
  function WJ(e, t) {
41408
41411
  const n = t.tagName;
41409
- n === C.TR ? (e.openElements.clearBackToTableBodyContext(), e._insertElement(t, Pe.HTML), e.insertionMode = Si) : n === C.TH || n === C.TD ? (e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(C.TR), e.insertionMode = Si, e._processToken(t)) : n === C.CAPTION || n === C.COL || n === C.COLGROUP || n === C.TBODY || n === C.TFOOT || n === C.THEAD ? e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = pn, e._processToken(t)) : e0(e, t);
41412
+ n === _.TR ? (e.openElements.clearBackToTableBodyContext(), e._insertElement(t, Pe.HTML), e.insertionMode = Si) : n === _.TH || n === _.TD ? (e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(_.TR), e.insertionMode = Si, e._processToken(t)) : n === _.CAPTION || n === _.COL || n === _.COLGROUP || n === _.TBODY || n === _.TFOOT || n === _.THEAD ? e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = pn, e._processToken(t)) : e0(e, t);
41410
41413
  }
41411
41414
  function VJ(e, t) {
41412
41415
  const n = t.tagName;
41413
- n === C.TBODY || n === C.TFOOT || n === C.THEAD ? e.openElements.hasInTableScope(n) && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = pn) : n === C.TABLE ? e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = pn, e._processToken(t)) : (n !== C.BODY && n !== C.CAPTION && n !== C.COL && n !== C.COLGROUP || n !== C.HTML && n !== C.TD && n !== C.TH && n !== C.TR) && t0(e, t);
41416
+ n === _.TBODY || n === _.TFOOT || n === _.THEAD ? e.openElements.hasInTableScope(n) && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = pn) : n === _.TABLE ? e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = pn, e._processToken(t)) : (n !== _.BODY && n !== _.CAPTION && n !== _.COL && n !== _.COLGROUP || n !== _.HTML && n !== _.TD && n !== _.TH && n !== _.TR) && t0(e, t);
41414
41417
  }
41415
41418
  function KJ(e, t) {
41416
41419
  const n = t.tagName;
41417
- n === C.TH || n === C.TD ? (e.openElements.clearBackToTableRowContext(), e._insertElement(t, Pe.HTML), e.insertionMode = R1, e.activeFormattingElements.insertMarker()) : n === C.CAPTION || n === C.COL || n === C.COLGROUP || n === C.TBODY || n === C.TFOOT || n === C.THEAD || n === C.TR ? e.openElements.hasInTableScope(C.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = cr, e._processToken(t)) : e0(e, t);
41420
+ n === _.TH || n === _.TD ? (e.openElements.clearBackToTableRowContext(), e._insertElement(t, Pe.HTML), e.insertionMode = R1, e.activeFormattingElements.insertMarker()) : n === _.CAPTION || n === _.COL || n === _.COLGROUP || n === _.TBODY || n === _.TFOOT || n === _.THEAD || n === _.TR ? e.openElements.hasInTableScope(_.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = cr, e._processToken(t)) : e0(e, t);
41418
41421
  }
41419
41422
  function GJ(e, t) {
41420
41423
  const n = t.tagName;
41421
- n === C.TR ? e.openElements.hasInTableScope(C.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = cr) : n === C.TABLE ? e.openElements.hasInTableScope(C.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = cr, e._processToken(t)) : n === C.TBODY || n === C.TFOOT || n === C.THEAD ? (e.openElements.hasInTableScope(n) || e.openElements.hasInTableScope(C.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = cr, e._processToken(t)) : (n !== C.BODY && n !== C.CAPTION && n !== C.COL && n !== C.COLGROUP || n !== C.HTML && n !== C.TD && n !== C.TH) && t0(e, t);
41424
+ n === _.TR ? e.openElements.hasInTableScope(_.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = cr) : n === _.TABLE ? e.openElements.hasInTableScope(_.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = cr, e._processToken(t)) : n === _.TBODY || n === _.TFOOT || n === _.THEAD ? (e.openElements.hasInTableScope(n) || e.openElements.hasInTableScope(_.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = cr, e._processToken(t)) : (n !== _.BODY && n !== _.CAPTION && n !== _.COL && n !== _.COLGROUP || n !== _.HTML && n !== _.TD && n !== _.TH) && t0(e, t);
41422
41425
  }
41423
41426
  function YJ(e, t) {
41424
41427
  const n = t.tagName;
41425
- n === C.CAPTION || n === C.COL || n === C.COLGROUP || n === C.TBODY || n === C.TD || n === C.TFOOT || n === C.TH || n === C.THEAD || n === C.TR ? (e.openElements.hasInTableScope(C.TD) || e.openElements.hasInTableScope(C.TH)) && (e._closeTableCell(), e._processToken(t)) : jn(e, t);
41428
+ n === _.CAPTION || n === _.COL || n === _.COLGROUP || n === _.TBODY || n === _.TD || n === _.TFOOT || n === _.TH || n === _.THEAD || n === _.TR ? (e.openElements.hasInTableScope(_.TD) || e.openElements.hasInTableScope(_.TH)) && (e._closeTableCell(), e._processToken(t)) : jn(e, t);
41426
41429
  }
41427
41430
  function ZJ(e, t) {
41428
41431
  const n = t.tagName;
41429
- n === C.TD || n === C.TH ? e.openElements.hasInTableScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = Si) : n === C.TABLE || n === C.TBODY || n === C.TFOOT || n === C.THEAD || n === C.TR ? e.openElements.hasInTableScope(n) && (e._closeTableCell(), e._processToken(t)) : n !== C.BODY && n !== C.CAPTION && n !== C.COL && n !== C.COLGROUP && n !== C.HTML && Jm(e, t);
41432
+ n === _.TD || n === _.TH ? e.openElements.hasInTableScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = Si) : n === _.TABLE || n === _.TBODY || n === _.TFOOT || n === _.THEAD || n === _.TR ? e.openElements.hasInTableScope(n) && (e._closeTableCell(), e._processToken(t)) : n !== _.BODY && n !== _.CAPTION && n !== _.COL && n !== _.COLGROUP && n !== _.HTML && Jm(e, t);
41430
41433
  }
41431
41434
  function lC(e, t) {
41432
41435
  const n = t.tagName;
41433
- n === C.HTML ? jn(e, t) : n === C.OPTION ? (e.openElements.currentTagName === C.OPTION && e.openElements.pop(), e._insertElement(t, Pe.HTML)) : n === C.OPTGROUP ? (e.openElements.currentTagName === C.OPTION && e.openElements.pop(), e.openElements.currentTagName === C.OPTGROUP && e.openElements.pop(), e._insertElement(t, Pe.HTML)) : n === C.INPUT || n === C.KEYGEN || n === C.TEXTAREA || n === C.SELECT ? e.openElements.hasInSelectScope(C.SELECT) && (e.openElements.popUntilTagNamePopped(C.SELECT), e._resetInsertionMode(), n !== C.SELECT && e._processToken(t)) : (n === C.SCRIPT || n === C.TEMPLATE) && an(e, t);
41436
+ n === _.HTML ? jn(e, t) : n === _.OPTION ? (e.openElements.currentTagName === _.OPTION && e.openElements.pop(), e._insertElement(t, Pe.HTML)) : n === _.OPTGROUP ? (e.openElements.currentTagName === _.OPTION && e.openElements.pop(), e.openElements.currentTagName === _.OPTGROUP && e.openElements.pop(), e._insertElement(t, Pe.HTML)) : n === _.INPUT || n === _.KEYGEN || n === _.TEXTAREA || n === _.SELECT ? e.openElements.hasInSelectScope(_.SELECT) && (e.openElements.popUntilTagNamePopped(_.SELECT), e._resetInsertionMode(), n !== _.SELECT && e._processToken(t)) : (n === _.SCRIPT || n === _.TEMPLATE) && an(e, t);
41434
41437
  }
41435
41438
  function uC(e, t) {
41436
41439
  const n = t.tagName;
41437
- if (n === C.OPTGROUP) {
41440
+ if (n === _.OPTGROUP) {
41438
41441
  const r = e.openElements.items[e.openElements.stackTop - 1], i = r && e.treeAdapter.getTagName(r);
41439
- e.openElements.currentTagName === C.OPTION && i === C.OPTGROUP && e.openElements.pop(), e.openElements.currentTagName === C.OPTGROUP && e.openElements.pop();
41442
+ e.openElements.currentTagName === _.OPTION && i === _.OPTGROUP && e.openElements.pop(), e.openElements.currentTagName === _.OPTGROUP && e.openElements.pop();
41440
41443
  } else
41441
- n === C.OPTION ? e.openElements.currentTagName === C.OPTION && e.openElements.pop() : n === C.SELECT && e.openElements.hasInSelectScope(C.SELECT) ? (e.openElements.popUntilTagNamePopped(C.SELECT), e._resetInsertionMode()) : n === C.TEMPLATE && Ga(e, t);
41444
+ n === _.OPTION ? e.openElements.currentTagName === _.OPTION && e.openElements.pop() : n === _.SELECT && e.openElements.hasInSelectScope(_.SELECT) ? (e.openElements.popUntilTagNamePopped(_.SELECT), e._resetInsertionMode()) : n === _.TEMPLATE && Ga(e, t);
41442
41445
  }
41443
41446
  function QJ(e, t) {
41444
41447
  const n = t.tagName;
41445
- n === C.CAPTION || n === C.TABLE || n === C.TBODY || n === C.TFOOT || n === C.THEAD || n === C.TR || n === C.TD || n === C.TH ? (e.openElements.popUntilTagNamePopped(C.SELECT), e._resetInsertionMode(), e._processToken(t)) : lC(e, t);
41448
+ n === _.CAPTION || n === _.TABLE || n === _.TBODY || n === _.TFOOT || n === _.THEAD || n === _.TR || n === _.TD || n === _.TH ? (e.openElements.popUntilTagNamePopped(_.SELECT), e._resetInsertionMode(), e._processToken(t)) : lC(e, t);
41446
41449
  }
41447
41450
  function XJ(e, t) {
41448
41451
  const n = t.tagName;
41449
- n === C.CAPTION || n === C.TABLE || n === C.TBODY || n === C.TFOOT || n === C.THEAD || n === C.TR || n === C.TD || n === C.TH ? e.openElements.hasInTableScope(n) && (e.openElements.popUntilTagNamePopped(C.SELECT), e._resetInsertionMode(), e._processToken(t)) : uC(e, t);
41452
+ n === _.CAPTION || n === _.TABLE || n === _.TBODY || n === _.TFOOT || n === _.THEAD || n === _.TR || n === _.TD || n === _.TH ? e.openElements.hasInTableScope(n) && (e.openElements.popUntilTagNamePopped(_.SELECT), e._resetInsertionMode(), e._processToken(t)) : uC(e, t);
41450
41453
  }
41451
41454
  function JJ(e, t) {
41452
41455
  const n = t.tagName;
41453
- if (n === C.BASE || n === C.BASEFONT || n === C.BGSOUND || n === C.LINK || n === C.META || n === C.NOFRAMES || n === C.SCRIPT || n === C.STYLE || n === C.TEMPLATE || n === C.TITLE)
41456
+ if (n === _.BASE || n === _.BASEFONT || n === _.BGSOUND || n === _.LINK || n === _.META || n === _.NOFRAMES || n === _.SCRIPT || n === _.STYLE || n === _.TEMPLATE || n === _.TITLE)
41454
41457
  an(e, t);
41455
41458
  else {
41456
41459
  const r = RX[n] || Gr;
@@ -41458,43 +41461,43 @@ function JJ(e, t) {
41458
41461
  }
41459
41462
  }
41460
41463
  function eee(e, t) {
41461
- t.tagName === C.TEMPLATE && Ga(e, t);
41464
+ t.tagName === _.TEMPLATE && Ga(e, t);
41462
41465
  }
41463
41466
  function cC(e, t) {
41464
- e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(C.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e._popTmplInsertionMode(), e._resetInsertionMode(), e._processToken(t)) : e.stopped = !0;
41467
+ e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(_.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e._popTmplInsertionMode(), e._resetInsertionMode(), e._processToken(t)) : e.stopped = !0;
41465
41468
  }
41466
41469
  function tee(e, t) {
41467
- t.tagName === C.HTML ? jn(e, t) : Qc(e, t);
41470
+ t.tagName === _.HTML ? jn(e, t) : Qc(e, t);
41468
41471
  }
41469
41472
  function nee(e, t) {
41470
- t.tagName === C.HTML ? e.fragmentContext || (e.insertionMode = sC) : Qc(e, t);
41473
+ t.tagName === _.HTML ? e.fragmentContext || (e.insertionMode = sC) : Qc(e, t);
41471
41474
  }
41472
41475
  function Qc(e, t) {
41473
41476
  e.insertionMode = Gr, e._processToken(t);
41474
41477
  }
41475
41478
  function ree(e, t) {
41476
41479
  const n = t.tagName;
41477
- n === C.HTML ? jn(e, t) : n === C.FRAMESET ? e._insertElement(t, Pe.HTML) : n === C.FRAME ? (e._appendElement(t, Pe.HTML), t.ackSelfClosing = !0) : n === C.NOFRAMES && an(e, t);
41480
+ n === _.HTML ? jn(e, t) : n === _.FRAMESET ? e._insertElement(t, Pe.HTML) : n === _.FRAME ? (e._appendElement(t, Pe.HTML), t.ackSelfClosing = !0) : n === _.NOFRAMES && an(e, t);
41478
41481
  }
41479
41482
  function iee(e, t) {
41480
- t.tagName === C.FRAMESET && !e.openElements.isRootHtmlElementCurrent() && (e.openElements.pop(), !e.fragmentContext && e.openElements.currentTagName !== C.FRAMESET && (e.insertionMode = aC));
41483
+ t.tagName === _.FRAMESET && !e.openElements.isRootHtmlElementCurrent() && (e.openElements.pop(), !e.fragmentContext && e.openElements.currentTagName !== _.FRAMESET && (e.insertionMode = aC));
41481
41484
  }
41482
41485
  function aee(e, t) {
41483
41486
  const n = t.tagName;
41484
- n === C.HTML ? jn(e, t) : n === C.NOFRAMES && an(e, t);
41487
+ n === _.HTML ? jn(e, t) : n === _.NOFRAMES && an(e, t);
41485
41488
  }
41486
41489
  function see(e, t) {
41487
- t.tagName === C.HTML && (e.insertionMode = oC);
41490
+ t.tagName === _.HTML && (e.insertionMode = oC);
41488
41491
  }
41489
41492
  function oee(e, t) {
41490
- t.tagName === C.HTML ? jn(e, t) : Tc(e, t);
41493
+ t.tagName === _.HTML ? jn(e, t) : Tc(e, t);
41491
41494
  }
41492
41495
  function Tc(e, t) {
41493
41496
  e.insertionMode = Gr, e._processToken(t);
41494
41497
  }
41495
41498
  function lee(e, t) {
41496
41499
  const n = t.tagName;
41497
- n === C.HTML ? jn(e, t) : n === C.NOFRAMES && an(e, t);
41500
+ n === _.HTML ? jn(e, t) : n === _.NOFRAMES && an(e, t);
41498
41501
  }
41499
41502
  function uee(e, t) {
41500
41503
  t.chars = DX.REPLACEMENT_CHARACTER, e._insertCharacters(t);
@@ -43882,7 +43885,7 @@ function wte(e) {
43882
43885
  else {
43883
43886
  const $ = I > S ? S : I;
43884
43887
  o.displayedToast = $;
43885
- for (let z = 0; z < $; z++)
43888
+ for (let q = 0; q < $; q++)
43886
43889
  c();
43887
43890
  }
43888
43891
  } else
@@ -43890,9 +43893,9 @@ function wte(e) {
43890
43893
  } };
43891
43894
  var R, L;
43892
43895
  F.iconOut = function(O) {
43893
- let { theme: S, type: I, isLoading: $, icon: z } = O, N = null;
43896
+ let { theme: S, type: I, isLoading: $, icon: q } = O, N = null;
43894
43897
  const te = { theme: S, type: I };
43895
- return z === !1 || (In(z) ? N = z(te) : ol(z) ? N = g0(z, te) : $a(z) || il(z) ? N = z : $ ? N = Hf.spinner() : ((X) => X in Hf)(I) && (N = Hf[I](te))), N;
43898
+ return q === !1 || (In(q) ? N = q(te) : ol(q) ? N = g0(q, te) : $a(q) || il(q) ? N = q : $ ? N = Hf.spinner() : ((X) => X in Hf)(I) && (N = Hf[I](te))), N;
43896
43899
  }(F), In(v.onOpen) && (F.onOpen = v.onOpen), In(v.onClose) && (F.onClose = v.onClose), F.closeButton = T.closeButton, v.closeButton === !1 || jf(v.closeButton) ? F.closeButton = v.closeButton : v.closeButton === !0 && (F.closeButton = !jf(T.closeButton) || T.closeButton);
43897
43900
  let P = p;
43898
43901
  ol(p) && !$a(p.type) ? P = g0(p, { closeToast: w, toastProps: F, data: x }) : In(p) && (P = p({ closeToast: w, toastProps: F, data: x })), T.limit && T.limit > 0 && o.count > T.limit && A ? o.queue.push({ toastContent: P, toastProps: F, staleId: y }) : il(m) ? setTimeout(() => {
@@ -43985,9 +43988,9 @@ function PC(e) {
43985
43988
  }
43986
43989
  PC.defaultProps = { type: gi.DEFAULT, hide: !1 };
43987
43990
  const Ste = (e) => {
43988
- const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: i } = Ate(e), { closeButton: a, children: s, autoClose: o, onClick: l, type: u, hideProgressBar: c, closeToast: d, transition: f, position: p, className: g, style: m, bodyClassName: y, bodyStyle: v, progressClassName: E, progressStyle: b, updateId: x, role: T, progress: w, rtl: A, toastId: F, deleteToast: R, isIn: L, isLoading: P, iconOut: O, theme: S } = e, I = Zi("Toastify__toast", "Toastify__toast-theme--" + S, "Toastify__toast--" + u, { "Toastify__toast--rtl": A }), $ = In(g) ? g({ rtl: A, position: p, type: u, defaultClassName: I }) : Zi(I, g), z = !!w, N = { closeToast: d, type: u, theme: S };
43991
+ const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: i } = Ate(e), { closeButton: a, children: s, autoClose: o, onClick: l, type: u, hideProgressBar: c, closeToast: d, transition: f, position: p, className: g, style: m, bodyClassName: y, bodyStyle: v, progressClassName: E, progressStyle: b, updateId: x, role: T, progress: w, rtl: A, toastId: F, deleteToast: R, isIn: L, isLoading: P, iconOut: O, theme: S } = e, I = Zi("Toastify__toast", "Toastify__toast-theme--" + S, "Toastify__toast--" + u, { "Toastify__toast--rtl": A }), $ = In(g) ? g({ rtl: A, position: p, type: u, defaultClassName: I }) : Zi(I, g), q = !!w, N = { closeToast: d, type: u, theme: S };
43989
43992
  let te = null;
43990
- return a === !1 || (te = In(a) ? a(N) : M.isValidElement(a) ? M.cloneElement(a, N) : IC(N)), M.createElement(f, { isIn: L, done: R, position: p, preventExitTransition: n, nodeRef: r }, M.createElement("div", { id: F, onClick: l, className: $, ...i, style: m, ref: r }, M.createElement("div", { ...L && { role: T }, className: In(y) ? y({ type: u }) : Zi("Toastify__toast-body", y), style: v }, O != null && M.createElement("div", { className: Zi("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !P }) }, O), M.createElement("div", null, s)), te, (o || z) && M.createElement(PC, { ...x && !z ? { key: "pb-" + x } : {}, rtl: A, theme: S, delay: o, isRunning: t, isIn: L, closeToast: d, hide: c, type: u, style: b, className: E, controlledProgress: z, progress: w })));
43993
+ return a === !1 || (te = In(a) ? a(N) : M.isValidElement(a) ? M.cloneElement(a, N) : IC(N)), M.createElement(f, { isIn: L, done: R, position: p, preventExitTransition: n, nodeRef: r }, M.createElement("div", { id: F, onClick: l, className: $, ...i, style: m, ref: r }, M.createElement("div", { ...L && { role: T }, className: In(y) ? y({ type: u }) : Zi("Toastify__toast-body", y), style: v }, O != null && M.createElement("div", { className: Zi("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !P }) }, O), M.createElement("div", null, s)), te, (o || q) && M.createElement(PC, { ...x && !q ? { key: "pb-" + x } : {}, rtl: A, theme: S, delay: o, isRunning: t, isIn: L, closeToast: d, hide: c, type: u, style: b, className: E, controlledProgress: q, progress: w })));
43991
43994
  }, kte = xte({ enter: "Toastify--animate Toastify__bounce-enter", exit: "Toastify--animate Toastify__bounce-exit", appendPosition: !0 }), ap = Sl((e, t) => {
43992
43995
  const { getToastToRender: n, containerRef: r, isToastActive: i } = wte(e), { className: a, style: s, rtl: o, containerId: l } = e;
43993
43996
  function u(c) {
@@ -44546,9 +44549,9 @@ function Ute(e) {
44546
44549
  }))) : null;
44547
44550
  }
44548
44551
  function zte(e) {
44549
- var t, n, r, i, a, s, o, l, u, c, d, f, p, g, m, y, v, E, b, x, T = e.notificationData, w = e.handleActionClick, A = fe(!1), F = A[0], R = A[1], L = fe(!1), P = L[0], O = L[1], S = fe(!1), I = S[0], $ = S[1], z = T.message, N = T.seen_on, te = T.created_on, X = da(), D = X.notificationComponent, _ = X.hideAvatar, Q = X.inbox, B = X.themeType, H = X.primaryActionClickHandler, q = X.secondaryActionClickHandler, U = Za(), j = U.notification, se = (j == null || (t = j.bodyText) === null || t === void 0 ? void 0 : t.tableBorderColor) || "rgba(100, 116, 139, 0.3)", Y = (j == null || (n = j.bodyText) === null || n === void 0 ? void 0 : n.blockquoteColor) || "rgba(100, 116, 139, 0.3)", ee = (j == null || (r = j.bodyText) === null || r === void 0 ? void 0 : r.linkColor) || Ke.primary, ae = z == null || (i = z.actions) === null || i === void 0 ? void 0 : i[0], re = z == null || (a = z.actions) === null || a === void 0 ? void 0 : a[1], Ae = ae || re;
44552
+ var t, n, r, i, a, s, o, l, u, c, d, f, p, g, m, y, v, E, b, x, T = e.notificationData, w = e.handleActionClick, A = fe(!1), F = A[0], R = A[1], L = fe(!1), P = L[0], O = L[1], S = fe(!1), I = S[0], $ = S[1], q = T.message, N = T.seen_on, te = T.created_on, X = da(), D = X.notificationComponent, C = X.hideAvatar, Z = X.inbox, B = X.themeType, H = X.primaryActionClickHandler, z = X.secondaryActionClickHandler, U = Za(), j = U.notification, se = (j == null || (t = j.bodyText) === null || t === void 0 ? void 0 : t.tableBorderColor) || "rgba(100, 116, 139, 0.3)", Y = (j == null || (n = j.bodyText) === null || n === void 0 ? void 0 : n.blockquoteColor) || "rgba(100, 116, 139, 0.3)", ee = (j == null || (r = j.bodyText) === null || r === void 0 ? void 0 : r.linkColor) || Ke.primary, ae = q == null || (i = q.actions) === null || i === void 0 ? void 0 : i[0], re = q == null || (a = q.actions) === null || a === void 0 ? void 0 : a[1], Ae = ae || re;
44550
44553
  if (me(function() {
44551
- var Ce, ue = MC(z == null || (Ce = z.avatar) === null || Ce === void 0 ? void 0 : Ce.avatar_url);
44554
+ var Ce, ue = MC(q == null || (Ce = q.avatar) === null || Ce === void 0 ? void 0 : Ce.avatar_url);
44552
44555
  ue.then(function(he) {
44553
44556
  return R(he);
44554
44557
  });
@@ -44557,13 +44560,13 @@ function zte(e) {
44557
44560
  return /* @__PURE__ */ M.createElement(Oe, {
44558
44561
  notificationData: T,
44559
44562
  markRead: function(ue) {
44560
- ue != null && ue.stopPropagation && ue.stopPropagation(), Q.feed.markRead(T.n_id);
44563
+ ue != null && ue.stopPropagation && ue.stopPropagation(), Z.feed.markRead(T.n_id);
44561
44564
  },
44562
44565
  markUnRead: function(ue) {
44563
- ue != null && ue.stopPropagation && ue.stopPropagation(), Q.feed.markUnRead(T.n_id);
44566
+ ue != null && ue.stopPropagation && ue.stopPropagation(), Z.feed.markUnRead(T.n_id);
44564
44567
  },
44565
44568
  markArchived: function(ue) {
44566
- ue != null && ue.stopPropagation && ue.stopPropagation(), Q.feed.markArchived(T.n_id);
44569
+ ue != null && ue.stopPropagation && ue.stopPropagation(), Z.feed.markArchived(T.n_id);
44567
44570
  }
44568
44571
  });
44569
44572
  }
@@ -44580,7 +44583,7 @@ function zte(e) {
44580
44583
  I && (ue.stopPropagation(), $(!1));
44581
44584
  }
44582
44585
  }, T.is_pinned && /* @__PURE__ */ M.createElement(Wte, {
44583
- hideAvatar: _
44586
+ hideAvatar: C
44584
44587
  }, /* @__PURE__ */ M.createElement(Lte, {
44585
44588
  style: j == null ? void 0 : j.pinnedIcon
44586
44589
  }), /* @__PURE__ */ M.createElement(Vte, {
@@ -44588,24 +44591,24 @@ function zte(e) {
44588
44591
  }, "Pinned")), /* @__PURE__ */ M.createElement(Zte, null, /* @__PURE__ */ M.createElement(ine, null, /* @__PURE__ */ M.createElement(ane, null, /* @__PURE__ */ M.createElement(Jte, {
44589
44592
  style: j == null ? void 0 : j.unseenDot,
44590
44593
  show: !N
44591
- }), !_ && /* @__PURE__ */ M.createElement(sne, {
44594
+ }), !C && /* @__PURE__ */ M.createElement(sne, {
44592
44595
  onClick: function(ue) {
44593
- var he = z == null ? void 0 : z.avatar;
44596
+ var he = q == null ? void 0 : q.avatar;
44594
44597
  w(ue, {
44595
44598
  type: "avatar",
44596
44599
  url: he == null ? void 0 : he.action_url,
44597
44600
  target: he == null ? void 0 : he.open_in_new_tab
44598
44601
  });
44599
44602
  }
44600
- }, z != null && (s = z.avatar) !== null && s !== void 0 && s.avatar_url && F ? /* @__PURE__ */ M.createElement(une, {
44601
- src: z.avatar.avatar_url,
44603
+ }, q != null && (s = q.avatar) !== null && s !== void 0 && s.avatar_url && F ? /* @__PURE__ */ M.createElement(une, {
44604
+ src: q.avatar.avatar_url,
44602
44605
  alt: "avatar",
44603
44606
  style: j == null ? void 0 : j.avatar
44604
44607
  }) : /* @__PURE__ */ M.createElement($C, {
44605
44608
  type: B
44606
- }))), /* @__PURE__ */ M.createElement(one, null, z.header && /* @__PURE__ */ M.createElement(Qte, {
44609
+ }))), /* @__PURE__ */ M.createElement(one, null, q.header && /* @__PURE__ */ M.createElement(Qte, {
44607
44610
  style: j == null ? void 0 : j.headerText
44608
- }, z.header), /* @__PURE__ */ M.createElement(Xte, {
44611
+ }, q.header), /* @__PURE__ */ M.createElement(Xte, {
44609
44612
  style: j == null ? void 0 : j.bodyText
44610
44613
  }, /* @__PURE__ */ M.createElement(p_, {
44611
44614
  remarkPlugins: [L_],
@@ -44759,14 +44762,14 @@ function zte(e) {
44759
44762
  return null;
44760
44763
  }
44761
44764
  }
44762
- }, z == null || (o = z.text) === null || o === void 0 || (l = o.replaceAll(`\\
44765
+ }, q == null || (o = q.text) === null || o === void 0 || (l = o.replaceAll(`\\
44763
44766
  `, "&nbsp;")) === null || l === void 0 || (u = l.replaceAll(`
44764
44767
  `, `
44765
44768
  `)) === null || u === void 0 ? void 0 : u.replaceAll("&nbsp;", `&nbsp;
44766
- `))), !!(z != null && (c = z.subtext) !== null && c !== void 0 && c.text) && /* @__PURE__ */ M.createElement(Gte, {
44767
- link: z == null || (d = z.subtext) === null || d === void 0 ? void 0 : d.action_url,
44769
+ `))), !!(q != null && (c = q.subtext) !== null && c !== void 0 && c.text) && /* @__PURE__ */ M.createElement(Gte, {
44770
+ link: q == null || (d = q.subtext) === null || d === void 0 ? void 0 : d.action_url,
44768
44771
  onClick: function(ue) {
44769
- var he = z == null ? void 0 : z.subtext;
44772
+ var he = q == null ? void 0 : q.subtext;
44770
44773
  w(ue, {
44771
44774
  type: "subtext",
44772
44775
  url: he == null ? void 0 : he.action_url,
@@ -44775,7 +44778,7 @@ function zte(e) {
44775
44778
  }
44776
44779
  }, /* @__PURE__ */ M.createElement(Kte, {
44777
44780
  style: j == null ? void 0 : j.subtext
44778
- }, z.subtext.text)), T.expiry && (T == null ? void 0 : T.is_expiry_visible) && /* @__PURE__ */ M.createElement(Ute, {
44781
+ }, q.subtext.text)), T.expiry && (T == null ? void 0 : T.is_expiry_visible) && /* @__PURE__ */ M.createElement(Ute, {
44779
44782
  dateInput: T.expiry,
44780
44783
  style: j == null ? void 0 : j.expiresText
44781
44784
  }), Ae && /* @__PURE__ */ M.createElement(tne, null, ae && /* @__PURE__ */ M.createElement(jC, {
@@ -44799,7 +44802,7 @@ function zte(e) {
44799
44802
  type: "secondary_action_button",
44800
44803
  url: re.url,
44801
44804
  target: re.open_in_new_tab,
44802
- customClickHandler: q
44805
+ customClickHandler: z
44803
44806
  });
44804
44807
  }
44805
44808
  }, /* @__PURE__ */ M.createElement(rne, {
@@ -44827,7 +44830,7 @@ function zte(e) {
44827
44830
  }, T.seen_on ? /* @__PURE__ */ M.createElement(Wf, {
44828
44831
  style: j == null ? void 0 : j.actionsMenuItem,
44829
44832
  onClick: function(ue) {
44830
- ue.stopPropagation(), Q.feed.markUnRead(T.n_id), $(!1);
44833
+ ue.stopPropagation(), Z.feed.markUnRead(T.n_id), $(!1);
44831
44834
  }
44832
44835
  }, /* @__PURE__ */ M.createElement($te, {
44833
44836
  style: j == null ? void 0 : j.actionsMenuItemIcon
@@ -44836,7 +44839,7 @@ function zte(e) {
44836
44839
  }, "Mark as unread")) : /* @__PURE__ */ M.createElement(Wf, {
44837
44840
  style: j == null ? void 0 : j.actionsMenuItem,
44838
44841
  onClick: function(ue) {
44839
- ue.stopPropagation(), Q.feed.markRead(T.n_id), $(!1);
44842
+ ue.stopPropagation(), Z.feed.markRead(T.n_id), $(!1);
44840
44843
  }
44841
44844
  }, /* @__PURE__ */ M.createElement(jte, {
44842
44845
  style: j == null ? void 0 : j.actionsMenuItemIcon
@@ -44845,7 +44848,7 @@ function zte(e) {
44845
44848
  }, "Mark as read")), !(T != null && T.archived) && /* @__PURE__ */ M.createElement(Wf, {
44846
44849
  style: j == null ? void 0 : j.actionsMenuItem,
44847
44850
  onClick: function(ue) {
44848
- ue.stopPropagation(), Q.feed.markArchived(T.n_id);
44851
+ ue.stopPropagation(), Z.feed.markArchived(T.n_id);
44849
44852
  }
44850
44853
  }, /* @__PURE__ */ M.createElement(Hte, {
44851
44854
  style: j == null ? void 0 : j.actionsMenuItemIcon
@@ -45687,18 +45690,18 @@ sn({
45687
45690
  notificationsData: Qne
45688
45691
  });
45689
45692
  function Xne(e) {
45690
- var t = e.workspaceKey, n = t === void 0 ? "" : t, r = e.tenantId, i = r === void 0 ? "" : r, a = e.distinctId, s = a === void 0 ? "" : a, o = e.subscriberId, l = o === void 0 ? "" : o, u = e.inboxId, c = u === void 0 ? "" : u, d = e.stores, f = e.toastProps, p = e.notificationClickHandler, g = e.primaryActionClickHandler, m = e.secondaryActionClickHandler, y = e.bellComponent, v = e.badgeComponent, E = e.notificationComponent, b = e.noNotificationsComponent, x = e.loaderComponent, T = e.tabBadgeComponent, w = e.headerRightComponent, A = e.hideAvatar, F = A === void 0 ? !1 : A, R = e.hideInbox, L = e.hideToast, P = e.theme, O = e.themeType, S = O === void 0 ? "light" : O, I = e.pagination, $ = I === void 0 ? !0 : I, z = e.pageSize, N = e.popperPosition, te = N === void 0 ? "bottom" : N, X = e.showUnreadCountOnTabs, D = X === void 0 ? !0 : X, _ = e.host;
45693
+ var t = e.workspaceKey, n = t === void 0 ? "" : t, r = e.tenantId, i = r === void 0 ? "" : r, a = e.distinctId, s = a === void 0 ? "" : a, o = e.subscriberId, l = o === void 0 ? "" : o, u = e.inboxId, c = u === void 0 ? "" : u, d = e.stores, f = e.toastProps, p = e.notificationClickHandler, g = e.primaryActionClickHandler, m = e.secondaryActionClickHandler, y = e.bellComponent, v = e.badgeComponent, E = e.notificationComponent, b = e.noNotificationsComponent, x = e.loaderComponent, T = e.tabBadgeComponent, w = e.headerRightComponent, A = e.hideAvatar, F = A === void 0 ? !1 : A, R = e.hideInbox, L = e.hideToast, P = e.theme, O = e.themeType, S = O === void 0 ? "light" : O, I = e.pagination, $ = I === void 0 ? !0 : I, q = e.pageSize, N = e.popperPosition, te = N === void 0 ? "bottom" : N, X = e.showUnreadCountOnTabs, D = X === void 0 ? !0 : X, C = e.host;
45691
45694
  c && (l = c);
45692
- var Q = fe(!1), B = Q[0], H = Q[1], q = fe(), U = q[0], j = q[1], se = fe({
45695
+ var Z = fe(!1), B = Z[0], H = Z[1], z = fe(), U = z[0], j = z[1], se = fe({
45693
45696
  storeData: {},
45694
45697
  count: 0
45695
45698
  }), Y = se[0], ee = se[1], ae = fe(""), re = ae[0], Ae = ae[1], Oe = fe(!1), Ce = Oe[0], ue = Oe[1];
45696
45699
  me(function() {
45697
45700
  var Se = new MF(n, {
45698
- pageSize: z,
45701
+ pageSize: q,
45699
45702
  tenantID: i,
45700
45703
  stores: d,
45701
- host: _
45704
+ host: C
45702
45705
  });
45703
45706
  return j(Se), Se.emitter.on("sync_notif_store", function() {
45704
45707
  var Re = Se.feed.data;
@@ -46339,8 +46342,8 @@ const UC = ({
46339
46342
  }
46340
46343
  }
46341
46344
  });
46342
- const T = (I, $, z = !1) => {
46343
- xt.handleMenus({ id: I, value: $, menus: x.current.menus, dispatch: y, forceHandle: z });
46345
+ const T = (I, $, q = !1) => {
46346
+ xt.handleMenus({ id: I, value: $, menus: x.current.menus, dispatch: y, forceHandle: q });
46344
46347
  }, w = Ue(null), A = (I) => {
46345
46348
  I.key === "Escape" && [
46346
46349
  "site-navigation",
@@ -46964,7 +46967,7 @@ const $t = "discussion_form_", $1 = ({
46964
46967
  showPostType: I = !1,
46965
46968
  postCategories: $ = []
46966
46969
  } = i || {}, {
46967
- onChange: z = () => {
46970
+ onChange: q = () => {
46968
46971
  },
46969
46972
  create: N = () => {
46970
46973
  },
@@ -46973,14 +46976,14 @@ const $t = "discussion_form_", $1 = ({
46973
46976
  },
46974
46977
  handleCancel: D = () => {
46975
46978
  },
46976
- callback: _ = () => {
46979
+ callback: C = () => {
46977
46980
  },
46978
- onMention: Q = () => {
46981
+ onMention: Z = () => {
46979
46982
  },
46980
46983
  listMembers: B = () => Promise.resolve([]),
46981
46984
  clickMentionFallback: H = () => {
46982
46985
  },
46983
- getLinkPreview: q = () => Promise.resolve({}),
46986
+ getLinkPreview: z = () => Promise.resolve({}),
46984
46987
  props: U = {
46985
46988
  create: { projectNames: ["questions-answers"] }
46986
46989
  }
@@ -46998,8 +47001,8 @@ const $t = "discussion_form_", $1 = ({
46998
47001
  m(n.type);
46999
47002
  }, [n.type]);
47000
47003
  const Oe = ul(
47001
- (ve, Z) => {
47002
- se((xe) => ({ ...xe, body: ve, data: { link: Z } })), z({ body: ve });
47004
+ (ve, Q) => {
47005
+ se((xe) => ({ ...xe, body: ve, data: { link: Q } })), q({ body: ve });
47003
47006
  let de;
47004
47007
  !p || !p.id ? de = Cr(
47005
47008
  f.formatMessage,
@@ -47025,7 +47028,7 @@ const $t = "discussion_form_", $1 = ({
47025
47028
  if (!p || !p.id || !r || mt)
47026
47029
  throw new Error("You do not have permission to post.");
47027
47030
  Ae((de) => ({ ...de, status: "submitting" }));
47028
- const Z = window.location.pathname;
47031
+ const Q = window.location.pathname;
47029
47032
  try {
47030
47033
  let de;
47031
47034
  switch (g) {
@@ -47054,7 +47057,7 @@ const $t = "discussion_form_", $1 = ({
47054
47057
  {
47055
47058
  body: ve.body,
47056
47059
  authorId: p && p.id,
47057
- contentPath: Z,
47060
+ contentPath: Q,
47058
47061
  data: ve.data
47059
47062
  }
47060
47063
  );
@@ -47065,7 +47068,7 @@ const $t = "discussion_form_", $1 = ({
47065
47068
  {
47066
47069
  body: ve.body,
47067
47070
  authorId: p && p.id,
47068
- contentPath: Z,
47071
+ contentPath: Q,
47069
47072
  data: ve.data
47070
47073
  }
47071
47074
  );
@@ -47073,7 +47076,7 @@ const $t = "discussion_form_", $1 = ({
47073
47076
  default:
47074
47077
  break;
47075
47078
  }
47076
- await T0(1e3), _ && await _(de), se({
47079
+ await T0(1e3), C && await C(de), se({
47077
47080
  body: "",
47078
47081
  data: {}
47079
47082
  }), m(n.type), Ae((Me) => ({ ...Me, status: "submitted" })), v(
@@ -47099,13 +47102,13 @@ const $t = "discussion_form_", $1 = ({
47099
47102
  }, he = async () => {
47100
47103
  await T0(5e3), ee(!1), Ae(ae), v("");
47101
47104
  }, Se = ul(async (ve) => {
47102
- const Z = { ...j, ...ve };
47105
+ const Q = { ...j, ...ve };
47103
47106
  if (w) {
47104
- Ae((de) => ({ ...de, status: "submitting" })), X(Z);
47107
+ Ae((de) => ({ ...de, status: "submitting" })), X(Q);
47105
47108
  return;
47106
47109
  }
47107
47110
  try {
47108
- if (!await ue(Z))
47111
+ if (!await ue(Q))
47109
47112
  throw Error("No response from handleSubmit");
47110
47113
  } catch {
47111
47114
  }
@@ -47148,8 +47151,8 @@ const $t = "discussion_form_", $1 = ({
47148
47151
  functions: {
47149
47152
  onChange: (ve) => {
47150
47153
  var de;
47151
- let Z = 0;
47152
- ve && Array.isArray(ve) && (Z = ((de = ve == null ? void 0 : ve.filter((xe) => xe !== "")) == null ? void 0 : de.length) || 0), re.polls !== Z && Ae((xe) => ({ ...xe, polls: Z })), z({ polls: ve });
47154
+ let Q = 0;
47155
+ ve && Array.isArray(ve) && (Q = ((de = ve == null ? void 0 : ve.filter((xe) => xe !== "")) == null ? void 0 : de.length) || 0), re.polls !== Q && Ae((xe) => ({ ...xe, polls: Q })), q({ polls: ve });
47153
47156
  }
47154
47157
  },
47155
47158
  validation: [{ condition: "required" }]
@@ -47183,12 +47186,12 @@ const $t = "discussion_form_", $1 = ({
47183
47186
  functions: {
47184
47187
  onChange: Oe,
47185
47188
  onChangeData: (ve) => {
47186
- se((Z) => ({ ...Z, data: ve }));
47189
+ se((Q) => ({ ...Q, data: ve }));
47187
47190
  },
47188
- onMention: Q,
47191
+ onMention: Z,
47189
47192
  listMembers: B,
47190
47193
  clickMentionFallback: H,
47191
- getLinkPreview: q
47194
+ getLinkPreview: z
47192
47195
  },
47193
47196
  data: c,
47194
47197
  autoFocus: w !== !1 || T && !A,
@@ -47221,7 +47224,7 @@ const $t = "discussion_form_", $1 = ({
47221
47224
  }),
47222
47225
  functions: {
47223
47226
  onChange: (ve) => {
47224
- Ae((Z) => ({ ...Z, title: ve })), z({ title: ve });
47227
+ Ae((Q) => ({ ...Q, title: ve })), q({ title: ve });
47225
47228
  }
47226
47229
  },
47227
47230
  validation: g === Je.Poll ? [{ condition: "required" }] : []
@@ -47247,7 +47250,7 @@ const $t = "discussion_form_", $1 = ({
47247
47250
  ],
47248
47251
  functions: {
47249
47252
  onChange: (ve) => {
47250
- z({ postType: ve }), ve.includes(Je.Poll) ? m(Je.Poll) : g !== Je.Post && m(Je.Post);
47253
+ q({ postType: ve }), ve.includes(Je.Poll) ? m(Je.Poll) : g !== Je.Post && m(Je.Post);
47251
47254
  }
47252
47255
  }
47253
47256
  });
@@ -47706,7 +47709,7 @@ const j1 = ({
47706
47709
  locale: E = "en",
47707
47710
  disableMentions: b
47708
47711
  }) => {
47709
- var Ze, ie, ge, Ie, ve, Z;
47712
+ var Ze, ie, ge, Ie, ve, Q;
47710
47713
  const x = be(), T = Ve(o0), w = Ve(Kt), {
47711
47714
  createContent: A = async () => {
47712
47715
  },
@@ -47723,13 +47726,13 @@ const j1 = ({
47723
47726
  } = o.likes || {}, { openComments: S = () => {
47724
47727
  } } = o.comments || {}, { listMembers: I = () => Promise.resolve([]), clickMentionFallback: $ = () => {
47725
47728
  } } = o.form || {}, {
47726
- createVote: z = () => {
47729
+ createVote: q = () => {
47727
47730
  },
47728
47731
  removeVote: N = () => {
47729
47732
  },
47730
47733
  removePoll: te = () => {
47731
47734
  }
47732
- } = o.polls || {}, { author: X, createdAt: D, id: _, likes: Q = 0, userLiked: B, comments: H = 0, data: q } = t, U = gre(t.title, E), j = w && w.id && typeof X != "string" && X.id && X.id === w.id || !1, se = j && (!t.createdAt || P3(t.createdAt, 10, "seconds")), Y = Ue(null), [ee, ae] = fe({
47735
+ } = o.polls || {}, { author: X, createdAt: D, id: C, likes: Z = 0, userLiked: B, comments: H = 0, data: z } = t, U = gre(t.title, E), j = w && w.id && typeof X != "string" && X.id && X.id === w.id || !1, se = j && (!t.createdAt || P3(t.createdAt, 10, "seconds")), Y = Ue(null), [ee, ae] = fe({
47733
47736
  title: t.body !== U && U || "",
47734
47737
  body: t && t.body || "",
47735
47738
  isEditing: !1,
@@ -47762,12 +47765,12 @@ const j1 = ({
47762
47765
  const xe = await zC(
47763
47766
  ee.body,
47764
47767
  f,
47765
- q == null ? void 0 : q.mentions,
47768
+ z == null ? void 0 : z.mentions,
47766
47769
  I
47767
47770
  );
47768
47771
  ae((Me) => ({ ...Me, postBody: xe }));
47769
47772
  })();
47770
- }, [ee.body, q == null ? void 0 : q.mentions]);
47773
+ }, [ee.body, z == null ? void 0 : z.mentions]);
47771
47774
  const Se = () => {
47772
47775
  setTimeout(() => {
47773
47776
  Ce(
@@ -47874,7 +47877,7 @@ const j1 = ({
47874
47877
  /* @__PURE__ */ h.jsxs(
47875
47878
  "div",
47876
47879
  {
47877
- id: _ || t.slug,
47880
+ id: C || t.slug,
47878
47881
  className: J("discussion-card text-medium", t.type, {
47879
47882
  editing: ee.isEditing,
47880
47883
  "has-link": l.post && !ee.isEditing
@@ -47930,7 +47933,7 @@ const j1 = ({
47930
47933
  clickMentionFallback: $
47931
47934
  },
47932
47935
  gtmContext: `${c}Form`,
47933
- data: q
47936
+ data: z
47934
47937
  }
47935
47938
  ) : /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
47936
47939
  t.type === Je.Poll ? /* @__PURE__ */ h.jsx(
@@ -47939,7 +47942,7 @@ const j1 = ({
47939
47942
  content: t,
47940
47943
  contentData: ee,
47941
47944
  functions: {
47942
- createVote: z,
47945
+ createVote: q,
47943
47946
  removeVote: N
47944
47947
  }
47945
47948
  }
@@ -47962,7 +47965,7 @@ const j1 = ({
47962
47965
  gtmContext: c,
47963
47966
  contentType: t.type,
47964
47967
  likes: s != null && s.likes ? !1 : {
47965
- count: Q || 0,
47968
+ count: Z || 0,
47966
47969
  userLiked: B || !1,
47967
47970
  canLike: n ?? !0,
47968
47971
  peopleWhoLiked: t.peopleWhoLiked,
@@ -47994,7 +47997,7 @@ const j1 = ({
47994
47997
  functions: { onClick: mt }
47995
47998
  } : !1,
47996
47999
  shareLink: !(s != null && s.shareLink) && {
47997
- url: `${window.location.origin}${(ge = t.slugs) == null ? void 0 : ge.question}/${(Ie = t.slugs) == null ? void 0 : Ie.answer}${(ve = t.slugs) != null && ve.reply ? `#${(Z = t.slugs) == null ? void 0 : Z.reply}` : ""}`
48000
+ url: `${window.location.origin}${(ge = t.slugs) == null ? void 0 : ge.question}/${(Ie = t.slugs) == null ? void 0 : Ie.answer}${(ve = t.slugs) != null && ve.reply ? `#${(Q = t.slugs) == null ? void 0 : Q.reply}` : ""}`
47998
48001
  },
47999
48002
  moreMenu: !(s != null && s.moreMenu) && {
48000
48003
  options: nt,
@@ -48542,7 +48545,7 @@ const pae = ({
48542
48545
  type: y = Vt.Communities,
48543
48546
  repliesFilters: v
48544
48547
  }) => {
48545
- var q, U, j, se, Y, ee, ae, re, Ae, Oe, Ce, ue;
48548
+ var z, U, j, se, Y, ee, ae, re, Ae, Oe, Ce, ue;
48546
48549
  const E = be(), b = Ve(Kt), x = {
48547
48550
  ...s,
48548
48551
  ...f
@@ -48575,14 +48578,14 @@ const pae = ({
48575
48578
  );
48576
48579
  const {
48577
48580
  own_reactions: $,
48578
- verb: z,
48581
+ verb: q,
48579
48582
  latest_reactions: N,
48580
48583
  mentioned_users: te,
48581
48584
  additional_data: X
48582
- } = T, D = (((q = N == null ? void 0 : N.like) == null ? void 0 : q.length) || 0) > 0, _ = !!((U = $ == null ? void 0 : $.like) != null && U.find((he) => {
48585
+ } = T, D = (((z = N == null ? void 0 : N.like) == null ? void 0 : z.length) || 0) > 0, C = !!((U = $ == null ? void 0 : $.like) != null && U.find((he) => {
48583
48586
  var Se;
48584
48587
  return ((Se = he.user) == null ? void 0 : Se.id) === (b == null ? void 0 : b.id);
48585
- })), Q = _ ? $ == null ? void 0 : $.like[0].id : "", B = D ? (j = N == null ? void 0 : N.like) == null ? void 0 : j.map((he) => {
48588
+ })), Z = C ? $ == null ? void 0 : $.like[0].id : "", B = D ? (j = N == null ? void 0 : N.like) == null ? void 0 : j.map((he) => {
48586
48589
  var Se, Re, tt;
48587
48590
  return {
48588
48591
  id: (Se = he == null ? void 0 : he.user) == null ? void 0 : Se.id,
@@ -48597,7 +48600,7 @@ const pae = ({
48597
48600
  isCommunity: !0,
48598
48601
  content: {
48599
48602
  id: n,
48600
- type: z,
48603
+ type: q,
48601
48604
  title: T == null ? void 0 : T.title,
48602
48605
  body: y === Vt.Courses ? Wx({
48603
48606
  content: T.content,
@@ -48614,7 +48617,7 @@ const pae = ({
48614
48617
  },
48615
48618
  slug: n,
48616
48619
  author: Il(H),
48617
- userLiked: _,
48620
+ userLiked: C,
48618
48621
  likes: ((se = T == null ? void 0 : T.reaction_counts) == null ? void 0 : se.like) || 0,
48619
48622
  comments: (T == null ? void 0 : T.total_replies) || 0,
48620
48623
  peopleWhoLiked: y === Vt.Courses ? !1 : B,
@@ -48644,7 +48647,7 @@ const pae = ({
48644
48647
  },
48645
48648
  likes: {
48646
48649
  createLike: () => R({ activityId: n }),
48647
- deleteLike: () => L({ activityId: n, reactionId: Q }),
48650
+ deleteLike: () => L({ activityId: n, reactionId: Z }),
48648
48651
  listLikes: (he) => o.list({ activityId: n, ...he })
48649
48652
  },
48650
48653
  comments: {
@@ -48693,7 +48696,7 @@ const pae = ({
48693
48696
  basePath: e,
48694
48697
  parentId: t,
48695
48698
  activityId: n,
48696
- showReplies: z === Je.Poll ? Rre(T) : !0,
48699
+ showReplies: q === Je.Poll ? Rre(T) : !0,
48697
48700
  activityTotalReplies: (T == null ? void 0 : T.total_replies) || 0,
48698
48701
  isMember: r,
48699
48702
  functions: {
@@ -49622,16 +49625,16 @@ const KC = ({
49622
49625
  const R = ($) => {
49623
49626
  if (F) {
49624
49627
  $.preventDefault(), $.stopPropagation();
49625
- const z = $.currentTarget.getAttribute("data-url");
49628
+ const q = $.currentTarget.getAttribute("data-url");
49626
49629
  window && // @ts-expect-error dataLayer is not in the TS for Window but definitely works as expected for GTM
49627
49630
  window.dataLayer.push({
49628
49631
  event: "gtm.click",
49629
- "gtm.element": z,
49632
+ "gtm.element": q,
49630
49633
  "gtm.elementClasses": "gtm-trackable",
49631
- "gtm.elementUrl": z,
49634
+ "gtm.elementUrl": q,
49632
49635
  EventType: `${s}-CarouselCard`,
49633
49636
  EventContext: `${A}-click`
49634
- }), window.location.href = z;
49637
+ }), window.location.href = q;
49635
49638
  }
49636
49639
  }, L = { ...Jre, ...w };
49637
49640
  let P = { className: "card" }, O = {};
@@ -49708,8 +49711,8 @@ const KC = ({
49708
49711
  ) : Is(v.partner[0], L.partner) }),
49709
49712
  /* Text */
49710
49713
  ["title", "text", "secondaryText"].map(($) => {
49711
- const z = v[$];
49712
- if (!z)
49714
+ const q = v[$];
49715
+ if (!q)
49713
49716
  return null;
49714
49717
  const N = S3($), te = {
49715
49718
  key: $,
@@ -49720,7 +49723,7 @@ const KC = ({
49720
49723
  forceWrapper: !0,
49721
49724
  forceInline: !0
49722
49725
  }, D = Is(
49723
- z,
49726
+ q,
49724
49727
  L[$]
49725
49728
  );
49726
49729
  return ["title", "text"].includes($) && F ? (X.wrapper = "a", /* @__PURE__ */ h.jsx("p", { ...te, children: /* @__PURE__ */ h.jsx(qr, { options: X, ...O, children: D }) })) : /* @__PURE__ */ h.jsx(qr, { options: X, ...te, children: D });
@@ -49832,14 +49835,14 @@ const aie = ({
49832
49835
  return;
49833
49836
  else
49834
49837
  I = S;
49835
- b(""), m((z) => ({
49836
- ...z,
49838
+ b(""), m((q) => ({
49839
+ ...q,
49837
49840
  currentPage: I,
49838
49841
  loadedPages: [.../* @__PURE__ */ new Set([...v, I])]
49839
49842
  }));
49840
49843
  const $ = () => {
49841
- const z = I * c.cardsPerPage, N = z + c.cardsPerPage;
49842
- return t.slice(z, N).length;
49844
+ const q = I * c.cardsPerPage, N = q + c.cardsPerPage;
49845
+ return t.slice(q, N).length;
49843
49846
  };
49844
49847
  eh = setTimeout(() => {
49845
49848
  b(
@@ -49873,9 +49876,9 @@ const aie = ({
49873
49876
  if (p)
49874
49877
  return /* @__PURE__ */ h.jsx(mp, { layout: `carousel${i ? "-with-title" : ""}` });
49875
49878
  const O = (S, I) => {
49876
- var z;
49879
+ var q;
49877
49880
  let $ = null;
49878
- return (z = S == null ? void 0 : S.sys) != null && z.id ? $ = `card-${S.sys.id}` : S != null && S.slug ? $ = `card-${S.slug}` : [n[I], S.contentType].includes("customCard") && ($ = `card-${window.btoa(`${S.title} ${S.createdAt}`)}-${I}`), $;
49881
+ return (q = S == null ? void 0 : S.sys) != null && q.id ? $ = `card-${S.sys.id}` : S != null && S.slug ? $ = `card-${S.slug}` : [n[I], S.contentType].includes("customCard") && ($ = `card-${window.btoa(`${S.title} ${S.createdAt}`)}-${I}`), $;
49879
49882
  };
49880
49883
  return /* @__PURE__ */ h.jsxs(
49881
49884
  "section",
@@ -49895,20 +49898,20 @@ const aie = ({
49895
49898
  "data-testid": "carousel-list",
49896
49899
  children: t.map((S, I) => {
49897
49900
  let $ = O(S, I);
49898
- const { inView: z, isLoaded: N } = rie(
49901
+ const { inView: q, isLoaded: N } = rie(
49899
49902
  I,
49900
49903
  f,
49901
49904
  y,
49902
49905
  v
49903
49906
  );
49904
- return $ && (z || N) ? /* @__PURE__ */ h.jsx(
49907
+ return $ && (q || N) ? /* @__PURE__ */ h.jsx(
49905
49908
  KC,
49906
49909
  {
49907
49910
  id: $,
49908
49911
  card: { ...S, contentType: n[I] },
49909
49912
  buildCardData: r,
49910
49913
  gtmContext: s,
49911
- meta: { isTabbable: z },
49914
+ meta: { isTabbable: q },
49912
49915
  ...o
49913
49916
  },
49914
49917
  $