@chatsystem/client 1.1.41 → 1.1.42

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/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Ke from "react";
2
- import Ye, { useState as Oe, useEffect as $e, forwardRef as Jo, useRef as Ve, useMemo as _n, useImperativeHandle as Ll, useContext as yt, useCallback as Wt, createContext as Dl, useLayoutEffect as Zo } from "react";
2
+ import $e, { useState as Oe, useEffect as Ye, forwardRef as Jo, useRef as Fe, useMemo as _n, useImperativeHandle as Ll, useContext as yt, useCallback as Wt, createContext as Dl, useLayoutEffect as Zo } from "react";
3
3
  import mr, { createPortal as kl } from "react-dom";
4
4
  import Pl from "lottie-react";
5
5
  import { DotLottieReact as Ml } from "@lottiefiles/dotlottie-react";
@@ -37,11 +37,11 @@ var gr = {};
37
37
  var ns;
38
38
  function jl() {
39
39
  return ns || (ns = 1, process.env.NODE_ENV !== "production" && (function() {
40
- var e = Ye, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), S = Symbol.iterator, _ = "@@iterator";
40
+ var e = $e, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), _ = Symbol.iterator, S = "@@iterator";
41
41
  function O(C) {
42
42
  if (C === null || typeof C != "object")
43
43
  return null;
44
- var V = S && C[S] || C[_];
44
+ var V = _ && C[_] || C[S];
45
45
  return typeof V == "function" ? V : null;
46
46
  }
47
47
  var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -126,14 +126,14 @@ function jl() {
126
126
  }
127
127
  return null;
128
128
  }
129
- var F = Object.assign, J = 0, fe, le, ye, Fe, g, Y, W;
129
+ var F = Object.assign, J = 0, fe, le, ye, He, g, Y, W;
130
130
  function x() {
131
131
  }
132
132
  x.__reactDisabledLog = !0;
133
133
  function Z() {
134
134
  {
135
135
  if (J === 0) {
136
- fe = console.log, le = console.info, ye = console.warn, Fe = console.error, g = console.group, Y = console.groupCollapsed, W = console.groupEnd;
136
+ fe = console.log, le = console.info, ye = console.warn, He = console.error, g = console.group, Y = console.groupCollapsed, W = console.groupEnd;
137
137
  var C = {
138
138
  configurable: !0,
139
139
  enumerable: !0,
@@ -172,7 +172,7 @@ function jl() {
172
172
  value: ye
173
173
  }),
174
174
  error: F({}, C, {
175
- value: Fe
175
+ value: He
176
176
  }),
177
177
  group: F({}, C, {
178
178
  value: g
@@ -278,7 +278,7 @@ function jl() {
278
278
  var gn = C ? C.displayName || C.name : "", es = gn ? Q(gn) : "";
279
279
  return typeof C == "function" && ue.set(C, es), es;
280
280
  }
281
- function He(C, V, X) {
281
+ function Ue(C, V, X) {
282
282
  return $(C, !1);
283
283
  }
284
284
  function We(C) {
@@ -301,7 +301,7 @@ function jl() {
301
301
  if (typeof C == "object")
302
302
  switch (C.$$typeof) {
303
303
  case c:
304
- return He(C.render);
304
+ return Ue(C.render);
305
305
  case f:
306
306
  return Je(C.type, V, X);
307
307
  case h: {
@@ -351,7 +351,7 @@ function jl() {
351
351
  return X;
352
352
  }
353
353
  }
354
- function Ue(C) {
354
+ function je(C) {
355
355
  try {
356
356
  return I(C), !1;
357
357
  } catch {
@@ -362,7 +362,7 @@ function jl() {
362
362
  return "" + C;
363
363
  }
364
364
  function w(C) {
365
- if (Ue(C))
365
+ if (je(C))
366
366
  return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ie(C)), I(C);
367
367
  }
368
368
  var G = v.ReactCurrentOwner, me = {
@@ -663,7 +663,7 @@ const la = (e) => ({
663
663
  // to be overriden by remote api conf received
664
664
  }
665
665
  }
666
- }), ar = Ye.createContext({
666
+ }), ar = $e.createContext({
667
667
  companySettings: Yl(),
668
668
  setCompanySettings: () => {
669
669
  }
@@ -755,8 +755,8 @@ function ru(e) {
755
755
  const { imgEl: s, width: u, height: c } = await new Promise((l, d) => {
756
756
  const f = URL.createObjectURL(a), h = new Image();
757
757
  h.crossOrigin = "anonymous", h.onload = () => {
758
- const m = h.naturalWidth, S = h.naturalHeight;
759
- l({ imgEl: h, width: m, height: S });
758
+ const m = h.naturalWidth, _ = h.naturalHeight;
759
+ l({ imgEl: h, width: m, height: _ });
760
760
  }, h.onerror = () => {
761
761
  URL.revokeObjectURL(f), d(new Error("Spritesheet image decode failed"));
762
762
  }, h.src = f, h.decode?.().catch(() => {
@@ -808,7 +808,7 @@ function Ql(e) {
808
808
  }
809
809
  const Kl = ({ src: e }) => {
810
810
  const [t, n] = Oe(null);
811
- return $e(() => {
811
+ return Ye(() => {
812
812
  let r = !1;
813
813
  return tu(e).then(({ blobUrl: a }) => {
814
814
  n(a);
@@ -835,14 +835,14 @@ function Zl({
835
835
  onLoaded: u,
836
836
  onError: c
837
837
  }) {
838
- const [l, d] = Ye.useState({ kind: "loading" });
839
- return $e(() => {
838
+ const [l, d] = $e.useState({ kind: "loading" });
839
+ return Ye(() => {
840
840
  let f = null, h = !1;
841
841
  return d({ kind: "loading" }), nu(e).then(async (m) => {
842
842
  if (!h)
843
843
  if (m.kind === "zip") {
844
- const S = Jl(m) ? m.blob : await (await fetch(m.blobUrl)).blob();
845
- f = URL.createObjectURL(S), d({ kind: "lottieZip", blobUrl: f }), u?.(f);
844
+ const _ = Jl(m) ? m.blob : await (await fetch(m.blobUrl)).blob();
845
+ f = URL.createObjectURL(_), d({ kind: "lottieZip", blobUrl: f }), u?.(f);
846
846
  } else
847
847
  d({ kind: "json", data: m.data }), u?.(m.data);
848
848
  }).catch(
@@ -956,29 +956,29 @@ async function ed(e, t = {}) {
956
956
  }
957
957
  m[q] = Te;
958
958
  }
959
- const S = is(
959
+ const _ = is(
960
960
  h,
961
961
  n,
962
962
  Math.min(r, l / 2)
963
- ), _ = is(
963
+ ), S = is(
964
964
  m,
965
965
  n,
966
966
  Math.min(r, d / 2)
967
967
  );
968
- if (!S || !_)
968
+ if (!_ || !S)
969
969
  return i && console.warn("detectGrid: could not find periods"), null;
970
- const O = Math.max(1, Math.round(l / S)), v = Math.max(1, Math.round(d / _)), L = ss(
970
+ const O = Math.max(1, Math.round(l / _)), v = Math.max(1, Math.round(d / S)), L = ss(
971
971
  h,
972
- S,
972
+ _,
973
973
  O,
974
974
  a
975
- ), P = ss(m, _, v, a), j = Math.max(1, S - L), R = Math.max(1, _ - P);
975
+ ), P = ss(m, S, v, a), j = Math.max(1, _ - L), R = Math.max(1, S - P);
976
976
  if (j * O > l + 2 || R * v > d + 2)
977
977
  return i && console.warn("detectGrid: sanity check failed"), null;
978
978
  const D = Ya(h, 60), re = Ya(m, 60), be = Math.max(0, os(h, D)), oe = Math.max(0, os(m, re));
979
979
  return i && console.log({
980
- periodX: S,
981
- periodY: _,
980
+ periodX: _,
981
+ periodY: S,
982
982
  columns: O,
983
983
  rows: v,
984
984
  gutterX: L,
@@ -1002,18 +1002,18 @@ function is(e, t, n) {
1002
1002
  const r = iu(e);
1003
1003
  let a = 0;
1004
1004
  for (let m = 0; m < e.length; m++) {
1005
- const S = e[m] - r;
1006
- a += S * S;
1005
+ const _ = e[m] - r;
1006
+ a += _ * _;
1007
1007
  }
1008
1008
  if (a === 0) return null;
1009
1009
  const i = new Float32Array(n + 1);
1010
1010
  let s = 0, u = -1 / 0;
1011
1011
  for (let m = t; m <= n; m++) {
1012
- let S = 0;
1012
+ let _ = 0;
1013
1013
  for (let O = 0; O + m < e.length; O++)
1014
- S += (e[O] - r) * (e[O + m] - r);
1015
- const _ = S / a;
1016
- i[m] = _, _ > u && (u = _, s = m);
1014
+ _ += (e[O] - r) * (e[O + m] - r);
1015
+ const S = _ / a;
1016
+ i[m] = S, S > u && (u = S, s = m);
1017
1017
  }
1018
1018
  if (s <= t || s >= n) return s || null;
1019
1019
  const c = i[s - 1], l = i[s], d = i[s + 1], f = c - 2 * l + d, h = f === 0 ? 0 : 0.5 * (c - d) / f;
@@ -1083,8 +1083,8 @@ const nd = Jo(function({
1083
1083
  autoplay: f = !0,
1084
1084
  loop: h = !0,
1085
1085
  startFrame: m = 0,
1086
- direction: S = "forward",
1087
- scale: _ = 1,
1086
+ direction: _ = "forward",
1087
+ scale: S = 1,
1088
1088
  backgroundColor: O,
1089
1089
  className: v,
1090
1090
  style: L,
@@ -1095,19 +1095,19 @@ const nd = Jo(function({
1095
1095
  onEnd: re,
1096
1096
  onFrame: be
1097
1097
  }, oe) {
1098
- const q = Ve(null), Te = Ve(null), [ee, B] = Oe(null), [F, J] = Oe(null), [fe, le] = Oe(null), [ye, Fe] = Oe(!1), [g, Y] = Oe(!!f), [W, x] = Oe(m), Z = Ve(1), [ae, se] = Oe(null), ie = Math.max(
1098
+ const q = Fe(null), Te = Fe(null), [ee, B] = Oe(null), [F, J] = Oe(null), [fe, le] = Oe(null), [ye, He] = Oe(!1), [g, Y] = Oe(!!f), [W, x] = Oe(m), Z = Fe(1), [ae, se] = Oe(null), ie = Math.max(
1099
1099
  1,
1100
1100
  Math.floor(typeof window < "u" && window.devicePixelRatio || 1)
1101
1101
  );
1102
- $e(() => {
1102
+ Ye(() => {
1103
1103
  let he = !1;
1104
- return Fe(!1), ru(t).then(({ imgEl: Ee, bitmap: Ne }) => {
1105
- he || (B(Ee), J(Ne), le({ w: Ee.naturalWidth, h: Ee.naturalHeight }), Fe(!0), D?.());
1104
+ return He(!1), ru(t).then(({ imgEl: Ee, bitmap: Ne }) => {
1105
+ he || (B(Ee), J(Ne), le({ w: Ee.naturalWidth, h: Ee.naturalHeight }), He(!0), D?.());
1106
1106
  }).catch(() => {
1107
1107
  }), () => {
1108
1108
  he = !0;
1109
1109
  };
1110
- }, [t, D]), $e(() => {
1110
+ }, [t, D]), Ye(() => {
1111
1111
  let he = !1;
1112
1112
  return (async () => {
1113
1113
  if (!ee) return;
@@ -1134,11 +1134,11 @@ const nd = Jo(function({
1134
1134
  he = !0;
1135
1135
  };
1136
1136
  }, [ee, l, n, r, a, i]);
1137
- const Q = ae?.frameWidth ?? n, ce = ae?.frameHeight ?? r, ue = ae?.columns ?? a, ke = ae?.rows ?? i, $ = ae?.gutterX ?? s, He = ae?.gutterY ?? u, We = ae?.originX ?? j ?? 0, Je = ae?.originY ?? R ?? 0, mt = _n(() => {
1137
+ const Q = ae?.frameWidth ?? n, ce = ae?.frameHeight ?? r, ue = ae?.columns ?? a, ke = ae?.rows ?? i, $ = ae?.gutterX ?? s, Ue = ae?.gutterY ?? u, We = ae?.originX ?? j ?? 0, Je = ae?.originY ?? R ?? 0, mt = _n(() => {
1138
1138
  if (l && l.length > 0) return { cols: 0, rows: 0 };
1139
1139
  if (!fe || !Q || !ce)
1140
1140
  return { cols: 0, rows: 0 };
1141
- const he = ue ?? Math.floor((fe.w + $) / (Q + $)), Ee = ke ?? Math.floor((fe.h + He) / (ce + He));
1141
+ const he = ue ?? Math.floor((fe.w + $) / (Q + $)), Ee = ke ?? Math.floor((fe.h + Ue) / (ce + Ue));
1142
1142
  return { cols: Math.max(0, he), rows: Math.max(0, Ee) };
1143
1143
  }, [
1144
1144
  l,
@@ -1148,21 +1148,21 @@ const nd = Jo(function({
1148
1148
  ue,
1149
1149
  ke,
1150
1150
  $,
1151
- He
1151
+ Ue
1152
1152
  ]), Ze = _n(() => {
1153
1153
  if (l?.length) return l;
1154
1154
  if (!Q || !ce) return [];
1155
1155
  const { cols: he, rows: Ee } = mt;
1156
1156
  if (!he || !Ee) return [];
1157
1157
  const Ne = Math.min(c ?? he * Ee, he * Ee), Ie = [];
1158
- for (let Ue = 0; Ue < Ne; Ue++) {
1159
- const I = Ue % he, w = Math.floor(Ue / he), G = We + I * (Q + $), me = Je + w * (ce + He);
1158
+ for (let je = 0; je < Ne; je++) {
1159
+ const I = je % he, w = Math.floor(je / he), G = We + I * (Q + $), me = Je + w * (ce + Ue);
1160
1160
  Ie.push({ x: G, y: me, w: Q, h: ce });
1161
1161
  }
1162
1162
  if (ee && Ie.length) {
1163
- const Ue = document.createElement("canvas");
1164
- Ue.width = ee.naturalWidth, Ue.height = ee.naturalHeight;
1165
- const I = Ue.getContext("2d");
1163
+ const je = document.createElement("canvas");
1164
+ je.width = ee.naturalWidth, je.height = ee.naturalHeight;
1165
+ const I = je.getContext("2d");
1166
1166
  if (I) {
1167
1167
  I.drawImage(ee, 0, 0);
1168
1168
  let w = Ie.length;
@@ -1185,39 +1185,39 @@ const nd = Jo(function({
1185
1185
  Q,
1186
1186
  ce,
1187
1187
  $,
1188
- He,
1188
+ Ue,
1189
1189
  ee,
1190
1190
  We,
1191
1191
  Je
1192
1192
  ]), wt = () => {
1193
1193
  const he = q.current;
1194
1194
  if (!he || Ze.length === 0) return;
1195
- const Ee = Ze[Math.max(0, Math.min(W, Ze.length - 1))], Ne = Math.max(1, Math.round(Ee.w * _)), Ie = Math.max(1, Math.round(Ee.h * _));
1195
+ const Ee = Ze[Math.max(0, Math.min(W, Ze.length - 1))], Ne = Math.max(1, Math.round(Ee.w * S)), Ie = Math.max(1, Math.round(Ee.h * S));
1196
1196
  he.style.width = Ne + "px", he.style.height = Ie + "px", he.width = Ne * ie, he.height = Ie * ie;
1197
1197
  };
1198
- $e(() => {
1198
+ Ye(() => {
1199
1199
  wt();
1200
- }, [ye, _, Ze.length, ie, W]);
1200
+ }, [ye, S, Ze.length, ie, W]);
1201
1201
  const pt = (he) => {
1202
1202
  const Ee = F ?? ee ?? null, Ne = q.current;
1203
1203
  if (!Ne || !Ee || Ze.length === 0) return;
1204
1204
  const Ie = Ne.getContext("2d");
1205
1205
  if (!Ie) return;
1206
1206
  Ie.save(), Ie.setTransform(1, 0, 0, 1, 0, 0), Ie.clearRect(0, 0, Ne.width, Ne.height), O && (Ie.fillStyle = O, Ie.fillRect(0, 0, Ne.width, Ne.height));
1207
- const Ue = Ze[he];
1207
+ const je = Ze[he];
1208
1208
  Ie.scale(ie, ie), Ie.drawImage(
1209
1209
  Ee,
1210
- Ue.x,
1211
- Ue.y,
1212
- Ue.w,
1213
- Ue.h,
1210
+ je.x,
1211
+ je.y,
1212
+ je.w,
1213
+ je.h,
1214
1214
  0,
1215
1215
  0,
1216
- Math.round(Ue.w * _),
1217
- Math.round(Ue.h * _)
1216
+ Math.round(je.w * S),
1217
+ Math.round(je.h * S)
1218
1218
  ), Ie.restore();
1219
1219
  };
1220
- return $e(() => {
1220
+ return Ye(() => {
1221
1221
  if (!ye || Ze.length === 0) return;
1222
1222
  let he = performance.now();
1223
1223
  const Ee = 1e3 / Math.max(1, Math.min(120, d)), Ne = (Ie) => {
@@ -1225,23 +1225,23 @@ const nd = Jo(function({
1225
1225
  pt(W);
1226
1226
  return;
1227
1227
  }
1228
- const Ue = Ie - he;
1229
- if (Ue < Ee) {
1228
+ const je = Ie - he;
1229
+ if (je < Ee) {
1230
1230
  pt(W);
1231
1231
  return;
1232
1232
  }
1233
- he = Ie - Ue % Ee, x((I) => {
1233
+ he = Ie - je % Ee, x((I) => {
1234
1234
  const w = Ze.length - 1;
1235
1235
  let G = I;
1236
- return S === "forward" ? G = I + 1 : S === "backward" ? G = I - 1 : ((I >= w && Z.current === 1 || I <= 0 && Z.current === -1) && (Z.current *= -1), G = I + Z.current), (G > w || G < 0) && (h ? G = S === "backward" ? w : 0 : (G = Math.max(0, Math.min(G, w)), Y(!1), re?.())), G;
1236
+ return _ === "forward" ? G = I + 1 : _ === "backward" ? G = I - 1 : ((I >= w && Z.current === 1 || I <= 0 && Z.current === -1) && (Z.current *= -1), G = I + Z.current), (G > w || G < 0) && (h ? G = _ === "backward" ? w : 0 : (G = Math.max(0, Math.min(G, w)), Y(!1), re?.())), G;
1237
1237
  });
1238
1238
  };
1239
1239
  return Te.current = requestAnimationFrame(Ne), () => {
1240
1240
  Te.current && cancelAnimationFrame(Te.current);
1241
1241
  };
1242
- }, [ye, d, g, h, S, Ze.length, W]), $e(() => {
1242
+ }, [ye, d, g, h, _, Ze.length, W]), Ye(() => {
1243
1243
  pt(W), be?.(W);
1244
- }, [W, ye, _, ie]), $e(() => {
1244
+ }, [W, ye, S, ie]), Ye(() => {
1245
1245
  if (!P) return;
1246
1246
  const he = () => {
1247
1247
  document.hidden && Y(!1);
@@ -1276,7 +1276,7 @@ function rd({
1276
1276
  className: t
1277
1277
  }) {
1278
1278
  const [n, r] = Oe(""), [a, i] = Oe(null);
1279
- return $e(() => {
1279
+ return Ye(() => {
1280
1280
  let s = !1;
1281
1281
  return eu(e).then(({ sanitized: u }) => {
1282
1282
  s || (r(u), i(null));
@@ -1480,7 +1480,7 @@ var us;
1480
1480
  function id() {
1481
1481
  if (us) return Le;
1482
1482
  us = 1;
1483
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, S = e ? Symbol.for("react.lazy") : 60116, _ = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
1483
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
1484
1484
  function P(R) {
1485
1485
  if (typeof R == "object" && R !== null) {
1486
1486
  var D = R.$$typeof;
@@ -1498,7 +1498,7 @@ function id() {
1498
1498
  switch (R = R && R.$$typeof, R) {
1499
1499
  case u:
1500
1500
  case d:
1501
- case S:
1501
+ case _:
1502
1502
  case m:
1503
1503
  case s:
1504
1504
  return R;
@@ -1514,7 +1514,7 @@ function id() {
1514
1514
  function j(R) {
1515
1515
  return P(R) === l;
1516
1516
  }
1517
- return Le.AsyncMode = c, Le.ConcurrentMode = l, Le.ContextConsumer = u, Le.ContextProvider = s, Le.Element = t, Le.ForwardRef = d, Le.Fragment = r, Le.Lazy = S, Le.Memo = m, Le.Portal = n, Le.Profiler = i, Le.StrictMode = a, Le.Suspense = f, Le.isAsyncMode = function(R) {
1517
+ return Le.AsyncMode = c, Le.ConcurrentMode = l, Le.ContextConsumer = u, Le.ContextProvider = s, Le.Element = t, Le.ForwardRef = d, Le.Fragment = r, Le.Lazy = _, Le.Memo = m, Le.Portal = n, Le.Profiler = i, Le.StrictMode = a, Le.Suspense = f, Le.isAsyncMode = function(R) {
1518
1518
  return j(R) || P(R) === c;
1519
1519
  }, Le.isConcurrentMode = j, Le.isContextConsumer = function(R) {
1520
1520
  return P(R) === u;
@@ -1527,7 +1527,7 @@ function id() {
1527
1527
  }, Le.isFragment = function(R) {
1528
1528
  return P(R) === r;
1529
1529
  }, Le.isLazy = function(R) {
1530
- return P(R) === S;
1530
+ return P(R) === _;
1531
1531
  }, Le.isMemo = function(R) {
1532
1532
  return P(R) === m;
1533
1533
  }, Le.isPortal = function(R) {
@@ -1539,7 +1539,7 @@ function id() {
1539
1539
  }, Le.isSuspense = function(R) {
1540
1540
  return P(R) === f;
1541
1541
  }, Le.isValidElementType = function(R) {
1542
- return typeof R == "string" || typeof R == "function" || R === r || R === l || R === i || R === a || R === f || R === h || typeof R == "object" && R !== null && (R.$$typeof === S || R.$$typeof === m || R.$$typeof === s || R.$$typeof === u || R.$$typeof === d || R.$$typeof === O || R.$$typeof === v || R.$$typeof === L || R.$$typeof === _);
1542
+ return typeof R == "string" || typeof R == "function" || R === r || R === l || R === i || R === a || R === f || R === h || typeof R == "object" && R !== null && (R.$$typeof === _ || R.$$typeof === m || R.$$typeof === s || R.$$typeof === u || R.$$typeof === d || R.$$typeof === O || R.$$typeof === v || R.$$typeof === L || R.$$typeof === S);
1543
1543
  }, Le.typeOf = P, Le;
1544
1544
  }
1545
1545
  var De = {};
@@ -1554,15 +1554,15 @@ var De = {};
1554
1554
  var cs;
1555
1555
  function sd() {
1556
1556
  return cs || (cs = 1, process.env.NODE_ENV !== "production" && (function() {
1557
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, S = e ? Symbol.for("react.lazy") : 60116, _ = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
1557
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
1558
1558
  function P($) {
1559
1559
  return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1560
- $ === r || $ === l || $ === i || $ === a || $ === f || $ === h || typeof $ == "object" && $ !== null && ($.$$typeof === S || $.$$typeof === m || $.$$typeof === s || $.$$typeof === u || $.$$typeof === d || $.$$typeof === O || $.$$typeof === v || $.$$typeof === L || $.$$typeof === _);
1560
+ $ === r || $ === l || $ === i || $ === a || $ === f || $ === h || typeof $ == "object" && $ !== null && ($.$$typeof === _ || $.$$typeof === m || $.$$typeof === s || $.$$typeof === u || $.$$typeof === d || $.$$typeof === O || $.$$typeof === v || $.$$typeof === L || $.$$typeof === S);
1561
1561
  }
1562
1562
  function j($) {
1563
1563
  if (typeof $ == "object" && $ !== null) {
1564
- var He = $.$$typeof;
1565
- switch (He) {
1564
+ var Ue = $.$$typeof;
1565
+ switch (Ue) {
1566
1566
  case t:
1567
1567
  var We = $.type;
1568
1568
  switch (We) {
@@ -1578,21 +1578,21 @@ function sd() {
1578
1578
  switch (Je) {
1579
1579
  case u:
1580
1580
  case d:
1581
- case S:
1581
+ case _:
1582
1582
  case m:
1583
1583
  case s:
1584
1584
  return Je;
1585
1585
  default:
1586
- return He;
1586
+ return Ue;
1587
1587
  }
1588
1588
  }
1589
1589
  case n:
1590
- return He;
1590
+ return Ue;
1591
1591
  }
1592
1592
  }
1593
1593
  }
1594
- var R = c, D = l, re = u, be = s, oe = t, q = d, Te = r, ee = S, B = m, F = n, J = i, fe = a, le = f, ye = !1;
1595
- function Fe($) {
1594
+ var R = c, D = l, re = u, be = s, oe = t, q = d, Te = r, ee = _, B = m, F = n, J = i, fe = a, le = f, ye = !1;
1595
+ function He($) {
1596
1596
  return ye || (ye = !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.")), g($) || j($) === c;
1597
1597
  }
1598
1598
  function g($) {
@@ -1614,7 +1614,7 @@ function sd() {
1614
1614
  return j($) === r;
1615
1615
  }
1616
1616
  function se($) {
1617
- return j($) === S;
1617
+ return j($) === _;
1618
1618
  }
1619
1619
  function ie($) {
1620
1620
  return j($) === m;
@@ -1631,7 +1631,7 @@ function sd() {
1631
1631
  function ke($) {
1632
1632
  return j($) === f;
1633
1633
  }
1634
- De.AsyncMode = R, De.ConcurrentMode = D, De.ContextConsumer = re, De.ContextProvider = be, De.Element = oe, De.ForwardRef = q, De.Fragment = Te, De.Lazy = ee, De.Memo = B, De.Portal = F, De.Profiler = J, De.StrictMode = fe, De.Suspense = le, De.isAsyncMode = Fe, De.isConcurrentMode = g, De.isContextConsumer = Y, De.isContextProvider = W, De.isElement = x, De.isForwardRef = Z, De.isFragment = ae, De.isLazy = se, De.isMemo = ie, De.isPortal = Q, De.isProfiler = ce, De.isStrictMode = ue, De.isSuspense = ke, De.isValidElementType = P, De.typeOf = j;
1634
+ De.AsyncMode = R, De.ConcurrentMode = D, De.ContextConsumer = re, De.ContextProvider = be, De.Element = oe, De.ForwardRef = q, De.Fragment = Te, De.Lazy = ee, De.Memo = B, De.Portal = F, De.Profiler = J, De.StrictMode = fe, De.Suspense = le, De.isAsyncMode = He, De.isConcurrentMode = g, De.isContextConsumer = Y, De.isContextProvider = W, De.isElement = x, De.isForwardRef = Z, De.isFragment = ae, De.isLazy = se, De.isMemo = ie, De.isPortal = Q, De.isProfiler = ce, De.isStrictMode = ue, De.isSuspense = ke, De.isValidElementType = P, De.typeOf = j;
1635
1635
  })()), De;
1636
1636
  }
1637
1637
  var ls;
@@ -1677,30 +1677,30 @@ function od() {
1677
1677
  type: !0
1678
1678
  }, i = {};
1679
1679
  i[e.ForwardRef] = r, i[e.Memo] = a;
1680
- function s(S) {
1681
- return e.isMemo(S) ? a : i[S.$$typeof] || t;
1680
+ function s(_) {
1681
+ return e.isMemo(_) ? a : i[_.$$typeof] || t;
1682
1682
  }
1683
1683
  var u = Object.defineProperty, c = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, f = Object.getPrototypeOf, h = Object.prototype;
1684
- function m(S, _, O) {
1685
- if (typeof _ != "string") {
1684
+ function m(_, S, O) {
1685
+ if (typeof S != "string") {
1686
1686
  if (h) {
1687
- var v = f(_);
1688
- v && v !== h && m(S, v, O);
1687
+ var v = f(S);
1688
+ v && v !== h && m(_, v, O);
1689
1689
  }
1690
- var L = c(_);
1691
- l && (L = L.concat(l(_)));
1692
- for (var P = s(S), j = s(_), R = 0; R < L.length; ++R) {
1690
+ var L = c(S);
1691
+ l && (L = L.concat(l(S)));
1692
+ for (var P = s(_), j = s(S), R = 0; R < L.length; ++R) {
1693
1693
  var D = L[R];
1694
1694
  if (!n[D] && !(O && O[D]) && !(j && j[D]) && !(P && P[D])) {
1695
- var re = d(_, D);
1695
+ var re = d(S, D);
1696
1696
  try {
1697
- u(S, D, re);
1697
+ u(_, D, re);
1698
1698
  } catch {
1699
1699
  }
1700
1700
  }
1701
1701
  }
1702
1702
  }
1703
- return S;
1703
+ return _;
1704
1704
  }
1705
1705
  return fa = m, fa;
1706
1706
  }
@@ -1713,40 +1713,40 @@ var Ae;
1713
1713
  (function(e) {
1714
1714
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
1715
1715
  })(Ae || (Ae = {}));
1716
- var je;
1716
+ var Ve;
1717
1717
  (function(e) {
1718
1718
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
1719
- })(je || (je = {}));
1719
+ })(Ve || (Ve = {}));
1720
1720
  var wn;
1721
1721
  (function(e) {
1722
1722
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1723
1723
  })(wn || (wn = {}));
1724
1724
  function fs(e) {
1725
- return e.type === je.literal;
1725
+ return e.type === Ve.literal;
1726
1726
  }
1727
1727
  function ud(e) {
1728
- return e.type === je.argument;
1728
+ return e.type === Ve.argument;
1729
1729
  }
1730
1730
  function ou(e) {
1731
- return e.type === je.number;
1731
+ return e.type === Ve.number;
1732
1732
  }
1733
1733
  function uu(e) {
1734
- return e.type === je.date;
1734
+ return e.type === Ve.date;
1735
1735
  }
1736
1736
  function cu(e) {
1737
- return e.type === je.time;
1737
+ return e.type === Ve.time;
1738
1738
  }
1739
1739
  function lu(e) {
1740
- return e.type === je.select;
1740
+ return e.type === Ve.select;
1741
1741
  }
1742
1742
  function du(e) {
1743
- return e.type === je.plural;
1743
+ return e.type === Ve.plural;
1744
1744
  }
1745
1745
  function cd(e) {
1746
- return e.type === je.pound;
1746
+ return e.type === Ve.pound;
1747
1747
  }
1748
1748
  function fu(e) {
1749
- return e.type === je.tag;
1749
+ return e.type === Ve.tag;
1750
1750
  }
1751
1751
  function hu(e) {
1752
1752
  return !!(e && typeof e == "object" && e.type === wn.number);
@@ -3650,7 +3650,7 @@ var Dd = (
3650
3650
  if (i === 35 && (n === "plural" || n === "selectordinal")) {
3651
3651
  var u = this.clonePosition();
3652
3652
  this.bump(), a.push({
3653
- type: je.pound,
3653
+ type: Ve.pound,
3654
3654
  location: ve(u, this.clonePosition())
3655
3655
  });
3656
3656
  } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
@@ -3678,7 +3678,7 @@ var Dd = (
3678
3678
  if (this.bumpSpace(), this.bumpIf("/>"))
3679
3679
  return {
3680
3680
  val: {
3681
- type: je.literal,
3681
+ type: Ve.literal,
3682
3682
  value: "<".concat(a, "/>"),
3683
3683
  location: ve(r, this.clonePosition())
3684
3684
  },
@@ -3695,7 +3695,7 @@ var Dd = (
3695
3695
  var c = this.clonePosition(), l = this.parseTagName();
3696
3696
  return a !== l ? this.error(Ae.UNMATCHED_CLOSING_TAG, ve(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3697
3697
  val: {
3698
- type: je.tag,
3698
+ type: Ve.tag,
3699
3699
  value: a,
3700
3700
  children: s,
3701
3701
  location: ve(r, this.clonePosition())
@@ -3732,7 +3732,7 @@ var Dd = (
3732
3732
  }
3733
3733
  var c = ve(r, this.clonePosition());
3734
3734
  return {
3735
- val: { type: je.literal, value: a, location: c },
3735
+ val: { type: Ve.literal, value: a, location: c },
3736
3736
  err: null
3737
3737
  };
3738
3738
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -3794,7 +3794,7 @@ var Dd = (
3794
3794
  case 125:
3795
3795
  return this.bump(), {
3796
3796
  val: {
3797
- type: je.argument,
3797
+ type: Ve.argument,
3798
3798
  // value does not include the opening and closing braces.
3799
3799
  value: a,
3800
3800
  location: ve(r, this.clonePosition())
@@ -3833,21 +3833,21 @@ var Dd = (
3833
3833
  var m = ve(d, this.clonePosition());
3834
3834
  l = { style: h, styleLocation: m };
3835
3835
  }
3836
- var S = this.tryParseArgumentClose(a);
3837
- if (S.err)
3838
- return S;
3839
- var _ = ve(a, this.clonePosition());
3836
+ var _ = this.tryParseArgumentClose(a);
3837
+ if (_.err)
3838
+ return _;
3839
+ var S = ve(a, this.clonePosition());
3840
3840
  if (l && bs(l?.style, "::", 0)) {
3841
3841
  var O = Od(l.style.slice(2));
3842
3842
  if (u === "number") {
3843
3843
  var f = this.parseNumberSkeletonFromString(O, l.styleLocation);
3844
3844
  return f.err ? f : {
3845
- val: { type: je.number, value: r, location: _, style: f.val },
3845
+ val: { type: Ve.number, value: r, location: S, style: f.val },
3846
3846
  err: null
3847
3847
  };
3848
3848
  } else {
3849
3849
  if (O.length === 0)
3850
- return this.error(Ae.EXPECT_DATE_TIME_SKELETON, _);
3850
+ return this.error(Ae.EXPECT_DATE_TIME_SKELETON, S);
3851
3851
  var v = O;
3852
3852
  this.locale && (v = Ed(O, this.locale));
3853
3853
  var h = {
@@ -3855,18 +3855,18 @@ var Dd = (
3855
3855
  pattern: v,
3856
3856
  location: l.styleLocation,
3857
3857
  parsedOptions: this.shouldParseSkeletons ? dd(v) : {}
3858
- }, L = u === "date" ? je.date : je.time;
3858
+ }, L = u === "date" ? Ve.date : Ve.time;
3859
3859
  return {
3860
- val: { type: L, value: r, location: _, style: h },
3860
+ val: { type: L, value: r, location: S, style: h },
3861
3861
  err: null
3862
3862
  };
3863
3863
  }
3864
3864
  }
3865
3865
  return {
3866
3866
  val: {
3867
- type: u === "number" ? je.number : u === "date" ? je.date : je.time,
3867
+ type: u === "number" ? Ve.number : u === "date" ? Ve.date : Ve.time,
3868
3868
  value: r,
3869
- location: _,
3869
+ location: S,
3870
3870
  style: (i = l?.style) !== null && i !== void 0 ? i : null
3871
3871
  },
3872
3872
  err: null
@@ -3892,13 +3892,13 @@ var Dd = (
3892
3892
  var D = this.tryParsePluralOrSelectOptions(t, u, n, j);
3893
3893
  if (D.err)
3894
3894
  return D;
3895
- var S = this.tryParseArgumentClose(a);
3896
- if (S.err)
3897
- return S;
3895
+ var _ = this.tryParseArgumentClose(a);
3896
+ if (_.err)
3897
+ return _;
3898
3898
  var re = ve(a, this.clonePosition());
3899
3899
  return u === "select" ? {
3900
3900
  val: {
3901
- type: je.select,
3901
+ type: Ve.select,
3902
3902
  value: r,
3903
3903
  options: gs(D.val),
3904
3904
  location: re
@@ -3906,7 +3906,7 @@ var Dd = (
3906
3906
  err: null
3907
3907
  } : {
3908
3908
  val: {
3909
- type: je.plural,
3909
+ type: Ve.plural,
3910
3910
  value: r,
3911
3911
  options: gs(D.val),
3912
3912
  offset: R,
@@ -3990,16 +3990,16 @@ var Dd = (
3990
3990
  var m = this.clonePosition();
3991
3991
  if (!this.bumpIf("{"))
3992
3992
  return this.error(n === "select" ? Ae.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : Ae.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, ve(this.clonePosition(), this.clonePosition()));
3993
- var S = this.parseMessage(t + 1, n, r);
3994
- if (S.err)
3995
- return S;
3996
- var _ = this.tryParseArgumentClose(m);
3993
+ var _ = this.parseMessage(t + 1, n, r);
3997
3994
  if (_.err)
3998
3995
  return _;
3996
+ var S = this.tryParseArgumentClose(m);
3997
+ if (S.err)
3998
+ return S;
3999
3999
  u.push([
4000
4000
  l,
4001
4001
  {
4002
- value: S.val,
4002
+ value: _.val,
4003
4003
  location: ve(m, this.clonePosition())
4004
4004
  }
4005
4005
  ]), c.add(l), this.bumpSpace(), i = this.parseIdentifierIfPossible(), l = i.value, d = i.location;
@@ -4276,10 +4276,10 @@ function Rr(e, t, n, r, a, i, s) {
4276
4276
  continue;
4277
4277
  }
4278
4278
  if (fu(d)) {
4279
- var S = d.children, _ = d.value, O = a[_];
4279
+ var _ = d.children, S = d.value, O = a[S];
4280
4280
  if (!Au(O))
4281
- throw new $d(_, "function", s);
4282
- var v = Rr(S, t, n, r, a, i), L = O(v.map(function(R) {
4281
+ throw new $d(S, "function", s);
4282
+ var v = Rr(_, t, n, r, a, i), L = O(v.map(function(R) {
4283
4283
  return R.value;
4284
4284
  }));
4285
4285
  Array.isArray(L) || (L = [L]), u.push.apply(u, L.map(function(R) {
@@ -4698,27 +4698,27 @@ function Cs(e, t) {
4698
4698
  var Za = function(e, t, n, r, a) {
4699
4699
  var i = e.locale, s = e.formats, u = e.messages, c = e.defaultLocale, l = e.defaultFormats, d = e.fallbackOnEmptyString, f = e.onError, h = e.timeZone, m = e.defaultRichTextElements;
4700
4700
  n === void 0 && (n = { id: "" });
4701
- var S = n.id, _ = n.defaultMessage;
4702
- su(!!S, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
4703
- var O = String(S), v = (
4701
+ var _ = n.id, S = n.defaultMessage;
4702
+ su(!!_, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
4703
+ var O = String(_), v = (
4704
4704
  // In case messages is Object.create(null)
4705
4705
  // e.g import('foo.json') from webpack)
4706
4706
  // See https://github.com/formatjs/formatjs/issues/1914
4707
4707
  u && Object.prototype.hasOwnProperty.call(u, O) && u[O]
4708
4708
  );
4709
- if (Array.isArray(v) && v.length === 1 && v[0].type === je.literal)
4709
+ if (Array.isArray(v) && v.length === 1 && v[0].type === Ve.literal)
4710
4710
  return v[0].value;
4711
4711
  if (!r && v && typeof v == "string" && !m)
4712
4712
  return v.replace(/'\{(.*?)\}'/gi, "{$1}");
4713
4713
  if (r = ne(ne({}, m), r || {}), s = Cs(s, h), l = Cs(l, h), !v) {
4714
4714
  if (d === !1 && v === "")
4715
4715
  return v;
4716
- if ((!_ || i && i.toLowerCase() !== c.toLowerCase()) && f(new Jd(n, i)), _)
4716
+ if ((!S || i && i.toLowerCase() !== c.toLowerCase()) && f(new Jd(n, i)), S)
4717
4717
  try {
4718
- var L = t.getMessageFormat(_, c, l, a);
4718
+ var L = t.getMessageFormat(S, c, l, a);
4719
4719
  return L.format(r);
4720
4720
  } catch (P) {
4721
- return f(new pa('Error formatting default message for: "'.concat(O, '", rendering default message verbatim'), i, n, P)), typeof _ == "string" ? _ : O;
4721
+ return f(new pa('Error formatting default message for: "'.concat(O, '", rendering default message verbatim'), i, n, P)), typeof S == "string" ? S : O;
4722
4722
  }
4723
4723
  return O;
4724
4724
  }
@@ -4726,16 +4726,16 @@ var Za = function(e, t, n, r, a) {
4726
4726
  var L = t.getMessageFormat(v, i, s, ne({ formatters: t }, a || {}));
4727
4727
  return L.format(r);
4728
4728
  } catch (P) {
4729
- f(new pa('Error formatting message: "'.concat(O, '", using ').concat(_ ? "default message" : "id", " as fallback."), i, n, P));
4729
+ f(new pa('Error formatting message: "'.concat(O, '", using ').concat(S ? "default message" : "id", " as fallback."), i, n, P));
4730
4730
  }
4731
- if (_)
4731
+ if (S)
4732
4732
  try {
4733
- var L = t.getMessageFormat(_, c, l, a);
4733
+ var L = t.getMessageFormat(S, c, l, a);
4734
4734
  return L.format(r);
4735
4735
  } catch (P) {
4736
4736
  f(new pa('Error formatting the default message for: "'.concat(O, '", rendering message verbatim'), i, n, P));
4737
4737
  }
4738
- return typeof v == "string" ? v : typeof _ == "string" ? _ : O;
4738
+ return typeof v == "string" ? v : typeof S == "string" ? S : O;
4739
4739
  }, Nu = [
4740
4740
  "formatMatcher",
4741
4741
  "timeZone",
@@ -6414,10 +6414,10 @@ function Gf() {
6414
6414
  Ls = 1;
6415
6415
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, a = /^:\s*/, i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, s = /^[;\s]*/, u = /^\s+|\s+$/g, c = `
6416
6416
  `, l = "/", d = "*", f = "", h = "comment", m = "declaration";
6417
- Ta = function(_, O) {
6418
- if (typeof _ != "string")
6417
+ Ta = function(S, O) {
6418
+ if (typeof S != "string")
6419
6419
  throw new TypeError("First argument must be a string");
6420
- if (!_) return [];
6420
+ if (!S) return [];
6421
6421
  O = O || {};
6422
6422
  var v = 1, L = 1;
6423
6423
  function P(B) {
@@ -6435,18 +6435,18 @@ function Gf() {
6435
6435
  function R(B) {
6436
6436
  this.start = B, this.end = { line: v, column: L }, this.source = O.source;
6437
6437
  }
6438
- R.prototype.content = _;
6438
+ R.prototype.content = S;
6439
6439
  function D(B) {
6440
6440
  var F = new Error(
6441
6441
  O.source + ":" + v + ":" + L + ": " + B
6442
6442
  );
6443
- if (F.reason = B, F.filename = O.source, F.line = v, F.column = L, F.source = _, !O.silent) throw F;
6443
+ if (F.reason = B, F.filename = O.source, F.line = v, F.column = L, F.source = S, !O.silent) throw F;
6444
6444
  }
6445
6445
  function re(B) {
6446
- var F = B.exec(_);
6446
+ var F = B.exec(S);
6447
6447
  if (F) {
6448
6448
  var J = F[0];
6449
- return P(J), _ = _.slice(J.length), F;
6449
+ return P(J), S = S.slice(J.length), F;
6450
6450
  }
6451
6451
  }
6452
6452
  function be() {
@@ -6460,13 +6460,13 @@ function Gf() {
6460
6460
  }
6461
6461
  function q() {
6462
6462
  var B = j();
6463
- if (!(l != _.charAt(0) || d != _.charAt(1))) {
6464
- for (var F = 2; f != _.charAt(F) && (d != _.charAt(F) || l != _.charAt(F + 1)); )
6463
+ if (!(l != S.charAt(0) || d != S.charAt(1))) {
6464
+ for (var F = 2; f != S.charAt(F) && (d != S.charAt(F) || l != S.charAt(F + 1)); )
6465
6465
  ++F;
6466
- if (F += 2, f === _.charAt(F - 1))
6466
+ if (F += 2, f === S.charAt(F - 1))
6467
6467
  return D("End of comment missing");
6468
- var J = _.slice(2, F - 2);
6469
- return L += 2, P(J), _ = _.slice(F), L += 2, B({
6468
+ var J = S.slice(2, F - 2);
6469
+ return L += 2, P(J), S = S.slice(F), L += 2, B({
6470
6470
  type: h,
6471
6471
  comment: J
6472
6472
  });
@@ -6478,8 +6478,8 @@ function Gf() {
6478
6478
  if (q(), !re(a)) return D("property missing ':'");
6479
6479
  var J = re(i), fe = B({
6480
6480
  type: m,
6481
- property: S(F[0].replace(e, f)),
6482
- value: J ? S(J[0].replace(e, f)) : f
6481
+ property: _(F[0].replace(e, f)),
6482
+ value: J ? _(J[0].replace(e, f)) : f
6483
6483
  });
6484
6484
  return re(s), fe;
6485
6485
  }
@@ -6493,8 +6493,8 @@ function Gf() {
6493
6493
  }
6494
6494
  return be(), ee();
6495
6495
  };
6496
- function S(_) {
6497
- return _ ? _.replace(u, f) : f;
6496
+ function _(S) {
6497
+ return S ? S.replace(u, f) : f;
6498
6498
  }
6499
6499
  return Ta;
6500
6500
  }
@@ -7720,7 +7720,7 @@ function Dh(e) {
7720
7720
  if (!a)
7721
7721
  return h(P);
7722
7722
  if (a.currentConstruct && a.currentConstruct.concrete)
7723
- return S(P);
7723
+ return _(P);
7724
7724
  t.interrupt = !!(a.currentConstruct && !a._gfmTableDynamicInterruptHack);
7725
7725
  }
7726
7726
  return t.containerState = {}, e.check(
@@ -7733,13 +7733,13 @@ function Dh(e) {
7733
7733
  return a && L(), v(r), h(P);
7734
7734
  }
7735
7735
  function f(P) {
7736
- return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, S(P);
7736
+ return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, _(P);
7737
7737
  }
7738
7738
  function h(P) {
7739
7739
  return t.containerState = {}, e.attempt(
7740
7740
  Us,
7741
7741
  m,
7742
- S
7742
+ _
7743
7743
  )(P);
7744
7744
  }
7745
7745
  function m(P) {
@@ -7751,7 +7751,7 @@ function Dh(e) {
7751
7751
  "expected `containerState` to be defined on tokenizer"
7752
7752
  ), r++, n.push([t.currentConstruct, t.containerState]), h(P);
7753
7753
  }
7754
- function S(P) {
7754
+ function _(P) {
7755
7755
  if (P === b.eof) {
7756
7756
  a && L(), v(0), e.consume(P);
7757
7757
  return;
@@ -7760,14 +7760,14 @@ function Dh(e) {
7760
7760
  contentType: K.contentTypeFlow,
7761
7761
  previous: i,
7762
7762
  _tokenizer: a
7763
- }), _(P);
7763
+ }), S(P);
7764
7764
  }
7765
- function _(P) {
7765
+ function S(P) {
7766
7766
  if (P === b.eof) {
7767
7767
  O(e.exit(p.chunkFlow), !0), v(0), e.consume(P);
7768
7768
  return;
7769
7769
  }
7770
- return te(P) ? (e.consume(P), O(e.exit(p.chunkFlow)), r = 0, t.interrupt = void 0, u) : (e.consume(P), _);
7770
+ return te(P) ? (e.consume(P), O(e.exit(p.chunkFlow)), r = 0, t.interrupt = void 0, u) : (e.consume(P), S);
7771
7771
  }
7772
7772
  function O(P, j) {
7773
7773
  A(a, "expected `childFlow` to be defined when continuing");
@@ -7964,8 +7964,8 @@ function Fh(e, t, n) {
7964
7964
  }
7965
7965
  function h(m) {
7966
7966
  if ((m === b.dash || ht(m)) && r++ < K.autolinkDomainSizeMax) {
7967
- const S = m === b.dash ? h : f;
7968
- return e.consume(m), S;
7967
+ const _ = m === b.dash ? h : f;
7968
+ return e.consume(m), _;
7969
7969
  }
7970
7970
  return n(m);
7971
7971
  }
@@ -8086,18 +8086,18 @@ function Yh(e, t, n) {
8086
8086
  return D === u ? (s++, e.consume(D), d) : s < K.codeFencedSequenceSizeMin ? n(D) : (e.exit(p.codeFencedFenceSequence), we(D) ? Be(e, f, p.whitespace)(D) : f(D));
8087
8087
  }
8088
8088
  function f(D) {
8089
- return D === b.eof || te(D) ? (e.exit(p.codeFencedFence), r.interrupt ? t(D) : e.check(zs, _, j)(D)) : (e.enter(p.codeFencedFenceInfo), e.enter(p.chunkString, { contentType: K.contentTypeString }), h(D));
8089
+ return D === b.eof || te(D) ? (e.exit(p.codeFencedFence), r.interrupt ? t(D) : e.check(zs, S, j)(D)) : (e.enter(p.codeFencedFenceInfo), e.enter(p.chunkString, { contentType: K.contentTypeString }), h(D));
8090
8090
  }
8091
8091
  function h(D) {
8092
8092
  return D === b.eof || te(D) ? (e.exit(p.chunkString), e.exit(p.codeFencedFenceInfo), f(D)) : we(D) ? (e.exit(p.chunkString), e.exit(p.codeFencedFenceInfo), Be(e, m, p.whitespace)(D)) : D === b.graveAccent && D === u ? n(D) : (e.consume(D), h);
8093
8093
  }
8094
8094
  function m(D) {
8095
- return D === b.eof || te(D) ? f(D) : (e.enter(p.codeFencedFenceMeta), e.enter(p.chunkString, { contentType: K.contentTypeString }), S(D));
8096
- }
8097
- function S(D) {
8098
- return D === b.eof || te(D) ? (e.exit(p.chunkString), e.exit(p.codeFencedFenceMeta), f(D)) : D === b.graveAccent && D === u ? n(D) : (e.consume(D), S);
8095
+ return D === b.eof || te(D) ? f(D) : (e.enter(p.codeFencedFenceMeta), e.enter(p.chunkString, { contentType: K.contentTypeString }), _(D));
8099
8096
  }
8100
8097
  function _(D) {
8098
+ return D === b.eof || te(D) ? (e.exit(p.chunkString), e.exit(p.codeFencedFenceMeta), f(D)) : D === b.graveAccent && D === u ? n(D) : (e.consume(D), _);
8099
+ }
8100
+ function S(D) {
8101
8101
  return A(te(D), "expected eol"), e.attempt(a, j, O)(D);
8102
8102
  }
8103
8103
  function O(D) {
@@ -8112,7 +8112,7 @@ function Yh(e, t, n) {
8112
8112
  )(D) : L(D);
8113
8113
  }
8114
8114
  function L(D) {
8115
- return D === b.eof || te(D) ? e.check(zs, _, j)(D) : (e.enter(p.codeFlowValue), P(D));
8115
+ return D === b.eof || te(D) ? e.check(zs, S, j)(D) : (e.enter(p.codeFlowValue), P(D));
8116
8116
  }
8117
8117
  function P(D) {
8118
8118
  return D === b.eof || te(D) ? (e.exit(p.codeFlowValue), L(D)) : (e.consume(D), P);
@@ -8270,8 +8270,8 @@ function Zh(e, t) {
8270
8270
  const i = [];
8271
8271
  A(n.contentType, "expected `contentType` on subtokens");
8272
8272
  const s = n._tokenizer || r.parser[n.contentType](n.start), u = s.events, c = [], l = {};
8273
- let d, f, h = -1, m = n, S = 0, _ = 0;
8274
- const O = [_];
8273
+ let d, f, h = -1, m = n, _ = 0, S = 0;
8274
+ const O = [S];
8275
8275
  for (; m; ) {
8276
8276
  for (; e[++a][1] !== m; )
8277
8277
  ;
@@ -8282,13 +8282,13 @@ function Zh(e, t) {
8282
8282
  }
8283
8283
  for (m = n; ++h < u.length; )
8284
8284
  // Find a void token that includes a break.
8285
- u[h][0] === "exit" && u[h - 1][0] === "enter" && u[h][1].type === u[h - 1][1].type && u[h][1].start.line !== u[h][1].end.line && (A(m, "expected a current token"), _ = h + 1, O.push(_), m._tokenizer = void 0, m.previous = void 0, m = m.next);
8285
+ u[h][0] === "exit" && u[h - 1][0] === "enter" && u[h][1].type === u[h - 1][1].type && u[h][1].start.line !== u[h][1].end.line && (A(m, "expected a current token"), S = h + 1, O.push(S), m._tokenizer = void 0, m.previous = void 0, m = m.next);
8286
8286
  for (s.events = [], m ? (m._tokenizer = void 0, m.previous = void 0, A(!m.next, "expected no next token")) : O.pop(), h = O.length; h--; ) {
8287
8287
  const v = u.slice(O[h], O[h + 1]), L = i.pop();
8288
8288
  A(L !== void 0, "expected a start position when splicing"), c.unshift([L, L + v.length - 1]), Ft(e, L, 2, v);
8289
8289
  }
8290
8290
  for (h = -1; ++h < c.length; )
8291
- l[S + c[h][0]] = S + c[h][1], S += c[h][1] - c[h][0] - 1;
8291
+ l[_ + c[h][0]] = _ + c[h][1], _ += c[h][1] - c[h][0] - 1;
8292
8292
  return l;
8293
8293
  }
8294
8294
  const e0 = { tokenize: r0, resolve: n0 }, t0 = { tokenize: a0, partial: !0 };
@@ -8345,22 +8345,22 @@ function rc(e, t, n, r, a, i, s, u, c) {
8345
8345
  let d = 0;
8346
8346
  return f;
8347
8347
  function f(v) {
8348
- return v === b.lessThan ? (e.enter(r), e.enter(a), e.enter(i), e.consume(v), e.exit(i), h) : v === b.eof || v === b.space || v === b.rightParenthesis || ai(v) ? n(v) : (e.enter(r), e.enter(s), e.enter(u), e.enter(p.chunkString, { contentType: K.contentTypeString }), _(v));
8348
+ return v === b.lessThan ? (e.enter(r), e.enter(a), e.enter(i), e.consume(v), e.exit(i), h) : v === b.eof || v === b.space || v === b.rightParenthesis || ai(v) ? n(v) : (e.enter(r), e.enter(s), e.enter(u), e.enter(p.chunkString, { contentType: K.contentTypeString }), S(v));
8349
8349
  }
8350
8350
  function h(v) {
8351
8351
  return v === b.greaterThan ? (e.enter(i), e.consume(v), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(u), e.enter(p.chunkString, { contentType: K.contentTypeString }), m(v));
8352
8352
  }
8353
8353
  function m(v) {
8354
- return v === b.greaterThan ? (e.exit(p.chunkString), e.exit(u), h(v)) : v === b.eof || v === b.lessThan || te(v) ? n(v) : (e.consume(v), v === b.backslash ? S : m);
8354
+ return v === b.greaterThan ? (e.exit(p.chunkString), e.exit(u), h(v)) : v === b.eof || v === b.lessThan || te(v) ? n(v) : (e.consume(v), v === b.backslash ? _ : m);
8355
8355
  }
8356
- function S(v) {
8356
+ function _(v) {
8357
8357
  return v === b.lessThan || v === b.greaterThan || v === b.backslash ? (e.consume(v), m) : m(v);
8358
8358
  }
8359
- function _(v) {
8360
- return !d && (v === b.eof || v === b.rightParenthesis || dt(v)) ? (e.exit(p.chunkString), e.exit(u), e.exit(s), e.exit(r), t(v)) : d < l && v === b.leftParenthesis ? (e.consume(v), d++, _) : v === b.rightParenthesis ? (e.consume(v), d--, _) : v === b.eof || v === b.space || v === b.leftParenthesis || ai(v) ? n(v) : (e.consume(v), v === b.backslash ? O : _);
8359
+ function S(v) {
8360
+ return !d && (v === b.eof || v === b.rightParenthesis || dt(v)) ? (e.exit(p.chunkString), e.exit(u), e.exit(s), e.exit(r), t(v)) : d < l && v === b.leftParenthesis ? (e.consume(v), d++, S) : v === b.rightParenthesis ? (e.consume(v), d--, S) : v === b.eof || v === b.space || v === b.leftParenthesis || ai(v) ? n(v) : (e.consume(v), v === b.backslash ? O : S);
8361
8361
  }
8362
8362
  function O(v) {
8363
- return v === b.leftParenthesis || v === b.rightParenthesis || v === b.backslash ? (e.consume(v), _) : _(v);
8363
+ return v === b.leftParenthesis || v === b.rightParenthesis || v === b.backslash ? (e.consume(v), S) : S(v);
8364
8364
  }
8365
8365
  }
8366
8366
  function ac(e, t, n, r, a, i) {
@@ -8639,19 +8639,19 @@ function T0(e, t, n) {
8639
8639
  return A(x === b.lessThan, "expected `<`"), e.enter(p.htmlFlow), e.enter(p.htmlFlowData), e.consume(x), f;
8640
8640
  }
8641
8641
  function f(x) {
8642
- return x === b.exclamationMark ? (e.consume(x), h) : x === b.slash ? (e.consume(x), i = !0, _) : x === b.questionMark ? (e.consume(x), a = K.htmlInstruction, r.interrupt ? t : g) : Mt(x) ? (e.consume(x), s = String.fromCharCode(x), O) : n(x);
8642
+ return x === b.exclamationMark ? (e.consume(x), h) : x === b.slash ? (e.consume(x), i = !0, S) : x === b.questionMark ? (e.consume(x), a = K.htmlInstruction, r.interrupt ? t : g) : Mt(x) ? (e.consume(x), s = String.fromCharCode(x), O) : n(x);
8643
8643
  }
8644
8644
  function h(x) {
8645
- return x === b.dash ? (e.consume(x), a = K.htmlComment, m) : x === b.leftSquareBracket ? (e.consume(x), a = K.htmlCdata, u = 0, S) : Mt(x) ? (e.consume(x), a = K.htmlDeclaration, r.interrupt ? t : g) : n(x);
8645
+ return x === b.dash ? (e.consume(x), a = K.htmlComment, m) : x === b.leftSquareBracket ? (e.consume(x), a = K.htmlCdata, u = 0, _) : Mt(x) ? (e.consume(x), a = K.htmlDeclaration, r.interrupt ? t : g) : n(x);
8646
8646
  }
8647
8647
  function m(x) {
8648
8648
  return x === b.dash ? (e.consume(x), r.interrupt ? t : g) : n(x);
8649
8649
  }
8650
- function S(x) {
8650
+ function _(x) {
8651
8651
  const Z = K.cdataOpeningString;
8652
- return x === Z.charCodeAt(u++) ? (e.consume(x), u === Z.length ? r.interrupt ? t : ee : S) : n(x);
8652
+ return x === Z.charCodeAt(u++) ? (e.consume(x), u === Z.length ? r.interrupt ? t : ee : _) : n(x);
8653
8653
  }
8654
- function _(x) {
8654
+ function S(x) {
8655
8655
  return Mt(x) ? (e.consume(x), s = String.fromCharCode(x), O) : n(x);
8656
8656
  }
8657
8657
  function O(x) {
@@ -8695,7 +8695,7 @@ function T0(e, t, n) {
8695
8695
  return x === b.eof || te(x) ? ee(x) : we(x) ? (e.consume(x), Te) : n(x);
8696
8696
  }
8697
8697
  function ee(x) {
8698
- return x === b.dash && a === K.htmlComment ? (e.consume(x), fe) : x === b.lessThan && a === K.htmlRaw ? (e.consume(x), le) : x === b.greaterThan && a === K.htmlDeclaration ? (e.consume(x), Y) : x === b.questionMark && a === K.htmlInstruction ? (e.consume(x), g) : x === b.rightSquareBracket && a === K.htmlCdata ? (e.consume(x), Fe) : te(x) && (a === K.htmlBasic || a === K.htmlComplete) ? (e.exit(p.htmlFlowData), e.check(
8698
+ return x === b.dash && a === K.htmlComment ? (e.consume(x), fe) : x === b.lessThan && a === K.htmlRaw ? (e.consume(x), le) : x === b.greaterThan && a === K.htmlDeclaration ? (e.consume(x), Y) : x === b.questionMark && a === K.htmlInstruction ? (e.consume(x), g) : x === b.rightSquareBracket && a === K.htmlCdata ? (e.consume(x), He) : te(x) && (a === K.htmlBasic || a === K.htmlComplete) ? (e.exit(p.htmlFlowData), e.check(
8699
8699
  b0,
8700
8700
  W,
8701
8701
  B
@@ -8727,7 +8727,7 @@ function T0(e, t, n) {
8727
8727
  }
8728
8728
  return Mt(x) && s.length < K.htmlRawSizeMax ? (e.consume(x), s += String.fromCharCode(x), ye) : ee(x);
8729
8729
  }
8730
- function Fe(x) {
8730
+ function He(x) {
8731
8731
  return x === b.rightSquareBracket ? (e.consume(x), g) : ee(x);
8732
8732
  }
8733
8733
  function g(x) {
@@ -8768,7 +8768,7 @@ function A0(e, t, n) {
8768
8768
  return g === b.exclamationMark ? (e.consume(g), l) : g === b.slash ? (e.consume(g), R) : g === b.questionMark ? (e.consume(g), P) : Mt(g) ? (e.consume(g), be) : n(g);
8769
8769
  }
8770
8770
  function l(g) {
8771
- return g === b.dash ? (e.consume(g), d) : g === b.leftSquareBracket ? (e.consume(g), i = 0, S) : Mt(g) ? (e.consume(g), L) : n(g);
8771
+ return g === b.dash ? (e.consume(g), d) : g === b.leftSquareBracket ? (e.consume(g), i = 0, _) : Mt(g) ? (e.consume(g), L) : n(g);
8772
8772
  }
8773
8773
  function d(g) {
8774
8774
  return g === b.dash ? (e.consume(g), m) : n(g);
@@ -8782,18 +8782,18 @@ function A0(e, t, n) {
8782
8782
  function m(g) {
8783
8783
  return g === b.greaterThan ? fe(g) : g === b.dash ? h(g) : f(g);
8784
8784
  }
8785
- function S(g) {
8785
+ function _(g) {
8786
8786
  const Y = K.cdataOpeningString;
8787
- return g === Y.charCodeAt(i++) ? (e.consume(g), i === Y.length ? _ : S) : n(g);
8787
+ return g === Y.charCodeAt(i++) ? (e.consume(g), i === Y.length ? S : _) : n(g);
8788
8788
  }
8789
- function _(g) {
8790
- return g === b.eof ? n(g) : g === b.rightSquareBracket ? (e.consume(g), O) : te(g) ? (s = _, le(g)) : (e.consume(g), _);
8789
+ function S(g) {
8790
+ return g === b.eof ? n(g) : g === b.rightSquareBracket ? (e.consume(g), O) : te(g) ? (s = S, le(g)) : (e.consume(g), S);
8791
8791
  }
8792
8792
  function O(g) {
8793
- return g === b.rightSquareBracket ? (e.consume(g), v) : _(g);
8793
+ return g === b.rightSquareBracket ? (e.consume(g), v) : S(g);
8794
8794
  }
8795
8795
  function v(g) {
8796
- return g === b.greaterThan ? fe(g) : g === b.rightSquareBracket ? (e.consume(g), v) : _(g);
8796
+ return g === b.greaterThan ? fe(g) : g === b.rightSquareBracket ? (e.consume(g), v) : S(g);
8797
8797
  }
8798
8798
  function L(g) {
8799
8799
  return g === b.eof || g === b.greaterThan ? fe(g) : te(g) ? (s = L, le(g)) : (e.consume(g), L);
@@ -8849,12 +8849,12 @@ function A0(e, t, n) {
8849
8849
  "expected `disable.null` to be populated"
8850
8850
  ), we(g) ? Be(
8851
8851
  e,
8852
- Fe,
8852
+ He,
8853
8853
  p.linePrefix,
8854
8854
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : K.tabSize
8855
- )(g) : Fe(g);
8855
+ )(g) : He(g);
8856
8856
  }
8857
- function Fe(g) {
8857
+ function He(g) {
8858
8858
  return e.enter(p.htmlTextData), s(g);
8859
8859
  }
8860
8860
  }
@@ -9116,9 +9116,9 @@ function j0(e, t, n) {
9116
9116
  return u;
9117
9117
  function u(m) {
9118
9118
  A(r.containerState, "expected state");
9119
- const S = r.containerState.type || (m === b.asterisk || m === b.plusSign || m === b.dash ? p.listUnordered : p.listOrdered);
9120
- if (S === p.listUnordered ? !r.containerState.marker || m === r.containerState.marker : ii(m)) {
9121
- if (r.containerState.type || (r.containerState.type = S, e.enter(S, { _container: !0 })), S === p.listUnordered)
9119
+ const _ = r.containerState.type || (m === b.asterisk || m === b.plusSign || m === b.dash ? p.listUnordered : p.listOrdered);
9120
+ if (_ === p.listUnordered ? !r.containerState.marker || m === r.containerState.marker : ii(m)) {
9121
+ if (r.containerState.type || (r.containerState.type = _, e.enter(_, { _container: !0 })), _ === p.listUnordered)
9122
9122
  return e.enter(p.listItemPrefix), m === b.asterisk || m === b.dash ? e.check(Or, n, l)(m) : l(m);
9123
9123
  if (!r.interrupt || m === b.digit1)
9124
9124
  return e.enter(p.listItemPrefix), e.enter(p.listItemValue), c(m);
@@ -9470,8 +9470,8 @@ function em() {
9470
9470
  return f >= r ? l(d, f, r, "day") : f >= n ? l(d, f, n, "hour") : f >= t ? l(d, f, t, "minute") : f >= e ? l(d, f, e, "second") : d + " ms";
9471
9471
  }
9472
9472
  function l(d, f, h, m) {
9473
- var S = f >= h * 1.5;
9474
- return Math.round(d / h) + " " + m + (S ? "s" : "");
9473
+ var _ = f >= h * 1.5;
9474
+ return Math.round(d / h) + " " + m + (_ ? "s" : "");
9475
9475
  }
9476
9476
  return Aa;
9477
9477
  }
@@ -9491,7 +9491,7 @@ function tm() {
9491
9491
  }
9492
9492
  r.selectColor = n;
9493
9493
  function r(f) {
9494
- let h, m = null, S, _;
9494
+ let h, m = null, _, S;
9495
9495
  function O(...v) {
9496
9496
  if (!O.enabled)
9497
9497
  return;
@@ -9513,7 +9513,7 @@ function tm() {
9513
9513
  return O.namespace = f, O.useColors = r.useColors(), O.color = r.selectColor(f), O.extend = a, O.destroy = r.destroy, Object.defineProperty(O, "enabled", {
9514
9514
  enumerable: !0,
9515
9515
  configurable: !1,
9516
- get: () => m !== null ? m : (S !== r.namespaces && (S = r.namespaces, _ = r.enabled(f)), _),
9516
+ get: () => m !== null ? m : (_ !== r.namespaces && (_ = r.namespaces, S = r.enabled(f)), S),
9517
9517
  set: (v) => {
9518
9518
  m = v;
9519
9519
  }
@@ -9530,17 +9530,17 @@ function tm() {
9530
9530
  m[0] === "-" ? r.skips.push(m.slice(1)) : r.names.push(m);
9531
9531
  }
9532
9532
  function s(f, h) {
9533
- let m = 0, S = 0, _ = -1, O = 0;
9533
+ let m = 0, _ = 0, S = -1, O = 0;
9534
9534
  for (; m < f.length; )
9535
- if (S < h.length && (h[S] === f[m] || h[S] === "*"))
9536
- h[S] === "*" ? (_ = S, O = m, S++) : (m++, S++);
9537
- else if (_ !== -1)
9538
- S = _ + 1, O++, m = O;
9535
+ if (_ < h.length && (h[_] === f[m] || h[_] === "*"))
9536
+ h[_] === "*" ? (S = _, O = m, _++) : (m++, _++);
9537
+ else if (S !== -1)
9538
+ _ = S + 1, O++, m = O;
9539
9539
  else
9540
9540
  return !1;
9541
- for (; S < h.length && h[S] === "*"; )
9542
- S++;
9543
- return S === h.length;
9541
+ for (; _ < h.length && h[_] === "*"; )
9542
+ _++;
9543
+ return _ === h.length;
9544
9544
  }
9545
9545
  function u() {
9546
9546
  const f = [
@@ -9731,8 +9731,8 @@ function im(e, t, n) {
9731
9731
  containerState: {},
9732
9732
  events: [],
9733
9733
  parser: e,
9734
- sliceStream: _,
9735
- sliceSerialize: S,
9734
+ sliceStream: S,
9735
+ sliceSerialize: _,
9736
9736
  now: O,
9737
9737
  defineSkip: v,
9738
9738
  write: m
@@ -9742,10 +9742,10 @@ function im(e, t, n) {
9742
9742
  function m(B) {
9743
9743
  return s = gt(s, B), L(), s[s.length - 1] !== b.eof ? [] : (q(t, 0), d.events = Li(i, d.events, d), d.events);
9744
9744
  }
9745
- function S(B, F) {
9746
- return om(_(B), F);
9745
+ function _(B, F) {
9746
+ return om(S(B), F);
9747
9747
  }
9748
- function _(B) {
9748
+ function S(B) {
9749
9749
  return sm(s, B);
9750
9750
  }
9751
9751
  function O() {
@@ -9799,7 +9799,7 @@ function im(e, t, n) {
9799
9799
  function oe(B, F) {
9800
9800
  return J;
9801
9801
  function J(fe, le, ye) {
9802
- let Fe, g, Y, W;
9802
+ let He, g, Y, W;
9803
9803
  return Array.isArray(fe) ? (
9804
9804
  /* c8 ignore next 1 */
9805
9805
  Z(fe)
@@ -9810,17 +9810,17 @@ function im(e, t, n) {
9810
9810
  function x(Q) {
9811
9811
  return ce;
9812
9812
  function ce(ue) {
9813
- const ke = ue !== null && Q[ue], $ = ue !== null && Q.null, He = [
9813
+ const ke = ue !== null && Q[ue], $ = ue !== null && Q.null, Ue = [
9814
9814
  // To do: add more extension tests.
9815
9815
  /* c8 ignore next 2 */
9816
9816
  ...Array.isArray(ke) ? ke : ke ? [ke] : [],
9817
9817
  ...Array.isArray($) ? $ : $ ? [$] : []
9818
9818
  ];
9819
- return Z(He)(ue);
9819
+ return Z(Ue)(ue);
9820
9820
  }
9821
9821
  }
9822
9822
  function Z(Q) {
9823
- return Fe = Q, g = 0, Q.length === 0 ? (A(ye, "expected `bogusState` to be given"), ye) : ae(Q[g]);
9823
+ return He = Q, g = 0, Q.length === 0 ? (A(ye, "expected `bogusState` to be given"), ye) : ae(Q[g]);
9824
9824
  }
9825
9825
  function ae(Q) {
9826
9826
  return ce;
@@ -9843,7 +9843,7 @@ function im(e, t, n) {
9843
9843
  return A(Q === h, "expected code"), c = !0, B(Y, W), le;
9844
9844
  }
9845
9845
  function ie(Q) {
9846
- return A(Q === h, "expected code"), c = !0, W.restore(), ++g < Fe.length ? ae(Fe[g]) : ye;
9846
+ return A(Q === h, "expected code"), c = !0, W.restore(), ++g < He.length ? ae(He[g]) : ye;
9847
9847
  }
9848
9848
  }
9849
9849
  }
@@ -10091,7 +10091,7 @@ function _m(e) {
10091
10091
  definitionDestinationString: s,
10092
10092
  definitionLabelString: s,
10093
10093
  definitionTitleString: s,
10094
- emphasis: i(He),
10094
+ emphasis: i(Ue),
10095
10095
  hardBreakEscape: i(Je),
10096
10096
  hardBreakTrailing: i(Je),
10097
10097
  htmlFlow: i(mt, s),
@@ -10112,7 +10112,7 @@ function _m(e) {
10112
10112
  resourceTitleString: s,
10113
10113
  setextHeading: i(We),
10114
10114
  strong: i(Ne),
10115
- thematicBreak: i(Ue)
10115
+ thematicBreak: i(je)
10116
10116
  },
10117
10117
  exit: {
10118
10118
  atxHeading: c(),
@@ -10126,9 +10126,9 @@ function _m(e) {
10126
10126
  characterReferenceMarkerNumeric: ae,
10127
10127
  characterReferenceValue: se,
10128
10128
  codeFenced: c(O),
10129
- codeFencedFence: _,
10129
+ codeFencedFence: S,
10130
10130
  codeFencedFenceInfo: m,
10131
- codeFencedFenceMeta: S,
10131
+ codeFencedFenceMeta: _,
10132
10132
  codeFlowValue: q,
10133
10133
  codeIndented: c(v),
10134
10134
  codeText: c(J),
@@ -10146,7 +10146,7 @@ function _m(e) {
10146
10146
  htmlText: c(F),
10147
10147
  htmlTextData: q,
10148
10148
  image: c(le),
10149
- label: Fe,
10149
+ label: He,
10150
10150
  labelText: ye,
10151
10151
  lineEnding: Te,
10152
10152
  link: c(fe),
@@ -10320,11 +10320,11 @@ function _m(e) {
10320
10320
  const I = this.resume(), w = this.stack[this.stack.length - 1];
10321
10321
  A(w, "expected node on stack"), A(w.type === "code", "expected code on stack"), w.lang = I;
10322
10322
  }
10323
- function S() {
10323
+ function _() {
10324
10324
  const I = this.resume(), w = this.stack[this.stack.length - 1];
10325
10325
  A(w, "expected node on stack"), A(w.type === "code", "expected code on stack"), w.meta = I;
10326
10326
  }
10327
- function _() {
10327
+ function S() {
10328
10328
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
10329
10329
  }
10330
10330
  function O() {
@@ -10434,7 +10434,7 @@ function _m(e) {
10434
10434
  "expected image or link on stack"
10435
10435
  ), G.label = Cm(w), G.identifier = Nn(w).toLowerCase();
10436
10436
  }
10437
- function Fe() {
10437
+ function He() {
10438
10438
  const I = this.stack[this.stack.length - 1];
10439
10439
  A(I, "expected node on stack"), A(I.type === "fragment", "expected fragment on stack");
10440
10440
  const w = this.resume(), G = this.stack[this.stack.length - 1];
@@ -10524,7 +10524,7 @@ function _m(e) {
10524
10524
  url: ""
10525
10525
  };
10526
10526
  }
10527
- function He() {
10527
+ function Ue() {
10528
10528
  return { type: "emphasis", children: [] };
10529
10529
  }
10530
10530
  function We() {
@@ -10573,7 +10573,7 @@ function _m(e) {
10573
10573
  function Ie() {
10574
10574
  return { type: "text", value: "" };
10575
10575
  }
10576
- function Ue() {
10576
+ function je() {
10577
10577
  return { type: "thematicBreak" };
10578
10578
  }
10579
10579
  }
@@ -10890,8 +10890,8 @@ function Wm(e, t, n) {
10890
10890
  for (; ++c < u; ) {
10891
10891
  const f = t.children[c], h = {}, m = s ? s[c] : void 0;
10892
10892
  m && (h.align = m);
10893
- let S = { type: "element", tagName: i, properties: h, children: [] };
10894
- f && (S.children = e.all(f), e.patch(f, S), S = e.applyData(f, S)), l.push(S);
10893
+ let _ = { type: "element", tagName: i, properties: h, children: [] };
10894
+ f && (_.children = e.all(f), e.patch(f, _), _ = e.applyData(f, _)), l.push(_);
10895
10895
  }
10896
10896
  const d = {
10897
10897
  type: "element",
@@ -11157,11 +11157,11 @@ function sp(e) {
11157
11157
  continue;
11158
11158
  const d = e.all(l), f = String(l.identifier).toUpperCase(), h = kn(f.toLowerCase());
11159
11159
  let m = 0;
11160
- const S = [], _ = e.footnoteCounts.get(f);
11161
- for (; _ !== void 0 && ++m <= _; ) {
11162
- S.length > 0 && S.push({ type: "text", value: " " });
11160
+ const _ = [], S = e.footnoteCounts.get(f);
11161
+ for (; S !== void 0 && ++m <= S; ) {
11162
+ _.length > 0 && _.push({ type: "text", value: " " });
11163
11163
  let L = typeof n == "string" ? n : n(c, m);
11164
- typeof L == "string" && (L = { type: "text", value: L }), S.push({
11164
+ typeof L == "string" && (L = { type: "text", value: L }), _.push({
11165
11165
  type: "element",
11166
11166
  tagName: "a",
11167
11167
  properties: {
@@ -11176,9 +11176,9 @@ function sp(e) {
11176
11176
  const O = d[d.length - 1];
11177
11177
  if (O && O.type === "element" && O.tagName === "p") {
11178
11178
  const L = O.children[O.children.length - 1];
11179
- L && L.type === "text" ? L.value += " " : O.children.push({ type: "text", value: " " }), O.children.push(...S);
11179
+ L && L.type === "text" ? L.value += " " : O.children.push({ type: "text", value: " " }), O.children.push(..._);
11180
11180
  } else
11181
- d.push(...S);
11181
+ d.push(..._);
11182
11182
  const v = {
11183
11183
  type: "element",
11184
11184
  tagName: "li",
@@ -11321,7 +11321,7 @@ function mp(e, t, n, r) {
11321
11321
  }
11322
11322
  return h;
11323
11323
  function h() {
11324
- let m = bc, S, _, O;
11324
+ let m = bc, _, S, O;
11325
11325
  if ((!t || i(c, l, d[d.length - 1] || void 0)) && (m = pp(n(c, d)), m[0] === ao))
11326
11326
  return m;
11327
11327
  if ("children" in c && c.children) {
@@ -11330,11 +11330,11 @@ function mp(e, t, n, r) {
11330
11330
  c
11331
11331
  );
11332
11332
  if (v.children && m[0] !== hp)
11333
- for (_ = (r ? v.children.length : -1) + s, O = d.concat(v); _ > -1 && _ < v.children.length; ) {
11334
- const L = v.children[_];
11335
- if (S = u(L, _, O)(), S[0] === ao)
11336
- return S;
11337
- _ = typeof S[1] == "number" ? S[1] : _ + s;
11333
+ for (S = (r ? v.children.length : -1) + s, O = d.concat(v); S > -1 && S < v.children.length; ) {
11334
+ const L = v.children[S];
11335
+ if (_ = u(L, S, O)(), _[0] === ao)
11336
+ return _;
11337
+ S = typeof _[1] == "number" ? _[1] : S + s;
11338
11338
  }
11339
11339
  }
11340
11340
  return m;
@@ -11379,7 +11379,7 @@ function gp(e, t) {
11379
11379
  return m(u, d, f);
11380
11380
  if (u.options.passThrough && u.options.passThrough.includes(h)) {
11381
11381
  if ("children" in d) {
11382
- const { children: _, ...O } = d, v = Rn(O);
11382
+ const { children: S, ...O } = d, v = Rn(O);
11383
11383
  return v.children = u.all(d), v;
11384
11384
  }
11385
11385
  return Rn(d);
@@ -11392,13 +11392,13 @@ function gp(e, t) {
11392
11392
  const h = d.children;
11393
11393
  let m = -1;
11394
11394
  for (; ++m < h.length; ) {
11395
- const S = u.one(h[m], d);
11396
- if (S) {
11397
- if (m && h[m - 1].type === "break" && (!Array.isArray(S) && S.type === "text" && (S.value = io(S.value)), !Array.isArray(S) && S.type === "element")) {
11398
- const _ = S.children[0];
11399
- _ && _.type === "text" && (_.value = io(_.value));
11395
+ const _ = u.one(h[m], d);
11396
+ if (_) {
11397
+ if (m && h[m - 1].type === "break" && (!Array.isArray(_) && _.type === "text" && (_.value = io(_.value)), !Array.isArray(_) && _.type === "element")) {
11398
+ const S = _.children[0];
11399
+ S && S.type === "text" && (S.value = io(S.value));
11400
11400
  }
11401
- Array.isArray(S) ? f.push(...S) : f.push(S);
11401
+ Array.isArray(_) ? f.push(..._) : f.push(_);
11402
11402
  }
11403
11403
  }
11404
11404
  }
@@ -11503,12 +11503,12 @@ function Ap() {
11503
11503
  return l[d];
11504
11504
  };
11505
11505
  return _a = function c() {
11506
- var l, d, f, h, m, S, _ = arguments[0], O = 1, v = arguments.length, L = !1;
11507
- for (typeof _ == "boolean" && (L = _, _ = arguments[1] || {}, O = 2), (_ == null || typeof _ != "object" && typeof _ != "function") && (_ = {}); O < v; ++O)
11506
+ var l, d, f, h, m, _, S = arguments[0], O = 1, v = arguments.length, L = !1;
11507
+ for (typeof S == "boolean" && (L = S, S = arguments[1] || {}, O = 2), (S == null || typeof S != "object" && typeof S != "function") && (S = {}); O < v; ++O)
11508
11508
  if (l = arguments[O], l != null)
11509
11509
  for (d in l)
11510
- f = u(_, d), h = u(l, d), _ !== h && (L && h && (i(h) || (m = a(h))) ? (m ? (m = !1, S = f && a(f) ? f : []) : S = f && i(f) ? f : {}, s(_, { name: d, newValue: c(L, S, h) })) : typeof h < "u" && s(_, { name: d, newValue: h }));
11511
- return _;
11510
+ f = u(S, d), h = u(l, d), S !== h && (L && h && (i(h) || (m = a(h))) ? (m ? (m = !1, _ = f && a(f) ? f : []) : _ = f && i(f) ? f : {}, s(S, { name: d, newValue: c(L, _, h) })) : typeof h < "u" && s(S, { name: d, newValue: h }));
11511
+ return S;
11512
11512
  }, _a;
11513
11513
  }
11514
11514
  var Sp = Ap();
@@ -12358,8 +12358,8 @@ class Hi extends Fp {
12358
12358
  /** @type {CompileTree extends undefined ? Node : CompileTree} */
12359
12359
  /** @type {unknown} */
12360
12360
  f
12361
- ), S = r.stringify(m, h);
12362
- Vp(S) ? h.value = S : h.result = S, l(
12361
+ ), _ = r.stringify(m, h);
12362
+ Vp(_) ? h.value = _ : h.result = _, l(
12363
12363
  d,
12364
12364
  /** @type {VFileWithOutput<CompileResult>} */
12365
12365
  h
@@ -12632,9 +12632,9 @@ class Hi extends Fp {
12632
12632
  if (h === -1)
12633
12633
  r.push([l, ...d]);
12634
12634
  else if (d.length > 0) {
12635
- let [m, ...S] = d;
12636
- const _ = r[h][1];
12637
- ui(_) && ui(m) && (m = va(!0, _, m)), r[h] = [l, m, ...S];
12635
+ let [m, ..._] = d;
12636
+ const S = r[h][1];
12637
+ ui(S) && ui(m) && (m = va(!0, S, m)), r[h] = [l, m, ..._];
12638
12638
  }
12639
12639
  }
12640
12640
  }
@@ -12710,8 +12710,8 @@ const $p = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
12710
12710
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
12711
12711
  ];
12712
12712
  function Ec(e) {
12713
- const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, i = e.components, s = e.disallowedElements, u = e.rehypePlugins || ho, c = e.remarkPlugins || ho, l = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...mo } : mo, d = e.skipHtml, f = e.unwrapDisallowed, h = e.urlTransform || qp, m = Up().use(Nm).use(c).use(Cp, l).use(u), S = new gc();
12714
- typeof r == "string" ? S.value = r : ga(
12713
+ const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, i = e.components, s = e.disallowedElements, u = e.rehypePlugins || ho, c = e.remarkPlugins || ho, l = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...mo } : mo, d = e.skipHtml, f = e.unwrapDisallowed, h = e.urlTransform || qp, m = Up().use(Nm).use(c).use(Cp, l).use(u), _ = new gc();
12714
+ typeof r == "string" ? _.value = r : ga(
12715
12715
  "Unexpected value `" + r + "` for `children` prop, expected `string`"
12716
12716
  ), t && s && ga(
12717
12717
  "Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"
@@ -12720,8 +12720,8 @@ function Ec(e) {
12720
12720
  Object.hasOwn(e, L.from) && ga(
12721
12721
  "Unexpected `" + L.from + "` prop, " + (L.to ? "use `" + L.to + "` instead" : "remove it") + " (see <" + $p + "#" + L.id + "> for more info)"
12722
12722
  );
12723
- const _ = m.parse(S);
12724
- let O = m.runSync(_, S);
12723
+ const S = m.parse(_);
12724
+ let O = m.runSync(S, _);
12725
12725
  return a && (O = {
12726
12726
  type: "element",
12727
12727
  tagName: "div",
@@ -19215,7 +19215,7 @@ function cE(e, {
19215
19215
  threshold: a = 0,
19216
19216
  dedupeKey: i
19217
19217
  } = {}) {
19218
- const s = Ve(!1), u = Ve();
19218
+ const s = Fe(!1), u = Fe();
19219
19219
  return Wt(
19220
19220
  (l) => {
19221
19221
  if (u.current?.(), u.current = void 0, !l || s.current) return;
@@ -19227,8 +19227,8 @@ function cE(e, {
19227
19227
  return;
19228
19228
  }
19229
19229
  const h = new IntersectionObserver(
19230
- (m, S) => {
19231
- m[0]?.isIntersecting && (S.disconnect(), f());
19230
+ (m, _) => {
19231
+ m[0]?.isIntersecting && (_.disconnect(), f());
19232
19232
  },
19233
19233
  { root: d, rootMargin: r, threshold: a }
19234
19234
  );
@@ -19267,18 +19267,18 @@ function lE({
19267
19267
  ...i
19268
19268
  }) {
19269
19269
  const s = e.startsWith("/") || typeof window < "u" && e.startsWith(window.location.origin), u = rr.getApiUrl(), c = () => {
19270
- const S = `${u}/tracking/clicked/${n.appToken}`, _ = {
19270
+ const _ = `${u}/tracking/clicked/${n.appToken}`, S = {
19271
19271
  discussionId: n.discussionId,
19272
19272
  urlClicked: e
19273
19273
  };
19274
19274
  try {
19275
- fetch(S, {
19275
+ fetch(_, {
19276
19276
  method: "POST",
19277
19277
  headers: {
19278
19278
  "Content-Type": "application/json",
19279
19279
  Accept: "application/json"
19280
19280
  },
19281
- body: JSON.stringify(_),
19281
+ body: JSON.stringify(S),
19282
19282
  keepalive: !0,
19283
19283
  cache: "no-store",
19284
19284
  credentials: "omit",
@@ -19288,18 +19288,18 @@ function lE({
19288
19288
  } catch {
19289
19289
  }
19290
19290
  }, l = () => {
19291
- const S = `${u}/tracking/displayed/${n.appToken}`, _ = {
19291
+ const _ = `${u}/tracking/displayed/${n.appToken}`, S = {
19292
19292
  discussionId: n.discussionId,
19293
19293
  urlSeen: e
19294
19294
  };
19295
19295
  try {
19296
- fetch(S, {
19296
+ fetch(_, {
19297
19297
  method: "POST",
19298
19298
  headers: {
19299
19299
  "Content-Type": "application/json",
19300
19300
  Accept: "application/json"
19301
19301
  },
19302
- body: JSON.stringify(_),
19302
+ body: JSON.stringify(S),
19303
19303
  keepalive: !0,
19304
19304
  cache: "no-store",
19305
19305
  credentials: "omit",
@@ -19318,8 +19318,8 @@ function lE({
19318
19318
  rootMargin: "0px 0px -10% 0px",
19319
19319
  // avoid flicker at bottom edge
19320
19320
  dedupeKey: d
19321
- }), h = (S) => {
19322
- c(), r?.(S);
19321
+ }), h = (_) => {
19322
+ c(), r?.(_);
19323
19323
  }, m = s ? {} : { target: "_blank", rel: "noopener noreferrer" };
19324
19324
  return s ? /* @__PURE__ */ M.jsxDEV(
19325
19325
  "a",
@@ -19479,8 +19479,8 @@ const dE = ({ content: e, metaData: t, context: n, seenRootEl: r }) => {
19479
19479
  }, void 0);
19480
19480
  };
19481
19481
  function hE(e, t, n) {
19482
- let [r, a] = Oe(e || t), i = Ve(e !== void 0), s = e !== void 0;
19483
- $e(() => {
19482
+ let [r, a] = Oe(e || t), i = Fe(e !== void 0), s = e !== void 0;
19483
+ Ye(() => {
19484
19484
  let l = i.current;
19485
19485
  l !== s && console.warn(`WARN: A component changed from ${l ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}.`), i.current = s;
19486
19486
  }, [
@@ -19490,9 +19490,9 @@ function hE(e, t, n) {
19490
19490
  let f = (h, ...m) => {
19491
19491
  n && (Object.is(u, h) || n(h, ...m)), s || (u = h);
19492
19492
  };
19493
- typeof l == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), a((m, ...S) => {
19494
- let _ = l(s ? u : m, ...S);
19495
- return f(_, ...d), s ? m : _;
19493
+ typeof l == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), a((m, ..._) => {
19494
+ let S = l(s ? u : m, ..._);
19495
+ return f(S, ...d), s ? m : S;
19496
19496
  })) : (s || a(l), f(l, ...d));
19497
19497
  }, [
19498
19498
  s,
@@ -19507,13 +19507,13 @@ function hE(e, t, n) {
19507
19507
  const Hr = {
19508
19508
  prefix: String(Math.round(Math.random() * 1e10)),
19509
19509
  current: 0
19510
- }, il = /* @__PURE__ */ Ye.createContext(Hr), mE = /* @__PURE__ */ Ye.createContext(!1);
19510
+ }, il = /* @__PURE__ */ $e.createContext(Hr), mE = /* @__PURE__ */ $e.createContext(!1);
19511
19511
  let pE = !!(typeof window < "u" && window.document && window.document.createElement), Ma = /* @__PURE__ */ new WeakMap();
19512
19512
  function bE(e = !1) {
19513
- let t = yt(il), n = Ve(null);
19513
+ let t = yt(il), n = Fe(null);
19514
19514
  if (n.current === null && !e) {
19515
19515
  var r, a;
19516
- let i = (a = Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || a === void 0 || (r = a.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
19516
+ let i = (a = $e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || a === void 0 || (r = a.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
19517
19517
  if (i) {
19518
19518
  let s = Ma.get(i);
19519
19519
  s == null ? Ma.set(i, {
@@ -19532,10 +19532,10 @@ function gE(e) {
19532
19532
  return e || `${r}-${n}`;
19533
19533
  }
19534
19534
  function EE(e) {
19535
- let t = Ye.useId(), [n] = Oe(AE()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Hr.prefix}`;
19535
+ let t = $e.useId(), [n] = Oe(AE()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Hr.prefix}`;
19536
19536
  return e || `${r}-${t}`;
19537
19537
  }
19538
- const TE = typeof Ye.useId == "function" ? EE : gE;
19538
+ const TE = typeof $e.useId == "function" ? EE : gE;
19539
19539
  function xE() {
19540
19540
  return !1;
19541
19541
  }
@@ -19547,7 +19547,7 @@ function CE(e) {
19547
19547
  };
19548
19548
  }
19549
19549
  function AE() {
19550
- return typeof Ye.useSyncExternalStore == "function" ? Ye.useSyncExternalStore(CE, xE, yE) : yt(mE);
19550
+ return typeof $e.useSyncExternalStore == "function" ? $e.useSyncExternalStore(CE, xE, yE) : yt(mE);
19551
19551
  }
19552
19552
  function sl(e) {
19553
19553
  var t, n, r = "";
@@ -19562,10 +19562,10 @@ function SE() {
19562
19562
  for (var e, t, n = 0, r = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (t = sl(e)) && (r && (r += " "), r += t);
19563
19563
  return r;
19564
19564
  }
19565
- const pn = typeof document < "u" ? Ye.useLayoutEffect : () => {
19565
+ const pn = typeof document < "u" ? $e.useLayoutEffect : () => {
19566
19566
  };
19567
19567
  function cn(e) {
19568
- const t = Ve(null);
19568
+ const t = Fe(null);
19569
19569
  return pn(() => {
19570
19570
  t.current = e;
19571
19571
  }, [
@@ -19576,7 +19576,7 @@ function cn(e) {
19576
19576
  }, []);
19577
19577
  }
19578
19578
  function _E(e) {
19579
- let [t, n] = Oe(e), r = Ve(null), a = cn(() => {
19579
+ let [t, n] = Oe(e), r = Fe(null), a = cn(() => {
19580
19580
  if (!r.current) return;
19581
19581
  let s = r.current.next();
19582
19582
  if (s.done) {
@@ -19598,7 +19598,7 @@ function _E(e) {
19598
19598
  }
19599
19599
  let vE = !!(typeof window < "u" && window.document && window.document.createElement), Ur = /* @__PURE__ */ new Map();
19600
19600
  function jr(e) {
19601
- let [t, n] = Oe(e), r = Ve(null), a = TE(t), i = Wt((s) => {
19601
+ let [t, n] = Oe(e), r = Fe(null), a = TE(t), i = Wt((s) => {
19602
19602
  r.current = s;
19603
19603
  }, []);
19604
19604
  return vE && Ur.set(a, i), pn(() => {
@@ -19608,7 +19608,7 @@ function jr(e) {
19608
19608
  };
19609
19609
  }, [
19610
19610
  a
19611
- ]), $e(() => {
19611
+ ]), Ye(() => {
19612
19612
  let s = r.current;
19613
19613
  s && (r.current = null, n(s));
19614
19614
  }), a;
@@ -19790,10 +19790,10 @@ function $E(e) {
19790
19790
  return e.mozInputSource === 0 && e.isTrusted ? !0 : UE() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
19791
19791
  }
19792
19792
  function YE(e, t, n) {
19793
- let r = Ve(t), a = cn(() => {
19793
+ let r = Fe(t), a = cn(() => {
19794
19794
  n && n(r.current);
19795
19795
  });
19796
- $e(() => {
19796
+ Ye(() => {
19797
19797
  var i;
19798
19798
  let s = e == null || (i = e.current) === null || i === void 0 ? void 0 : i.form;
19799
19799
  return s?.addEventListener("reset", a), () => {
@@ -19804,7 +19804,7 @@ function YE(e, t, n) {
19804
19804
  a
19805
19805
  ]);
19806
19806
  }
19807
- const GE = Ye.createContext({
19807
+ const GE = $e.createContext({
19808
19808
  register: () => {
19809
19809
  }
19810
19810
  });
@@ -19829,7 +19829,7 @@ class qE {
19829
19829
  }
19830
19830
  }
19831
19831
  function WE(e) {
19832
- let t = Ve({
19832
+ let t = Fe({
19833
19833
  isFocused: !1,
19834
19834
  observer: null
19835
19835
  });
@@ -20047,7 +20047,7 @@ class Ho {
20047
20047
  }
20048
20048
  }
20049
20049
  new Gi();
20050
- let aT = /* @__PURE__ */ Ye.createContext(null);
20050
+ let aT = /* @__PURE__ */ $e.createContext(null);
20051
20051
  function iT(e) {
20052
20052
  let t = yt(aT) || {};
20053
20053
  zE(t, e);
@@ -20055,8 +20055,8 @@ function iT(e) {
20055
20055
  return r;
20056
20056
  }
20057
20057
  function sT(e, t) {
20058
- let { focusProps: n } = XE(e), { keyboardProps: r } = tT(e), a = zr(n, r), i = iT(t), s = e.isDisabled ? {} : i, u = Ve(e.autoFocus);
20059
- return $e(() => {
20058
+ let { focusProps: n } = XE(e), { keyboardProps: r } = tT(e), a = zr(n, r), i = iT(t), s = e.isDisabled ? {} : i, u = Fe(e.autoFocus);
20059
+ return Ye(() => {
20060
20060
  u.current && t.current && nT(t.current), u.current = !1;
20061
20061
  }, [
20062
20062
  t
@@ -20089,7 +20089,7 @@ function oT(e, t, n) {
20089
20089
  }), u = cn(() => {
20090
20090
  t.commitValidation();
20091
20091
  });
20092
- $e(() => {
20092
+ Ye(() => {
20093
20093
  let c = n?.current;
20094
20094
  if (!c) return;
20095
20095
  let l = c.form;
@@ -20185,18 +20185,18 @@ function hT(e) {
20185
20185
  let d = yt(dT), f = _n(() => r ? Array.isArray(r) ? r.flatMap((q) => Ei(d[q])) : Ei(d[r]) : [], [
20186
20186
  d,
20187
20187
  r
20188
- ]), [h, m] = Oe(d), [S, _] = Oe(!1);
20189
- d !== h && (m(d), _(!1));
20190
- let O = _n(() => jo(S ? [] : f), [
20191
- S,
20188
+ ]), [h, m] = Oe(d), [_, S] = Oe(!1);
20189
+ d !== h && (m(d), S(!1));
20190
+ let O = _n(() => jo(_ ? [] : f), [
20191
+ _,
20192
20192
  f
20193
- ]), v = Ve(Vn), [L, P] = Oe(Vn), j = Ve(Vn), R = () => {
20193
+ ]), v = Fe(Vn), [L, P] = Oe(Vn), j = Fe(Vn), R = () => {
20194
20194
  if (!D) return;
20195
20195
  re(!1);
20196
20196
  let q = l || i || v.current;
20197
20197
  Ba(q, j.current) || (j.current = q, P(q));
20198
20198
  }, [D, re] = Oe(!1);
20199
- return $e(R), {
20199
+ return Ye(R), {
20200
20200
  realtimeValidation: c || O || l || i || Vn,
20201
20201
  displayValidation: u === "native" ? c || O || L : c || O || l || i || L,
20202
20202
  updateValidation(q) {
@@ -20204,10 +20204,10 @@ function hT(e) {
20204
20204
  },
20205
20205
  resetValidation() {
20206
20206
  let q = Vn;
20207
- Ba(q, j.current) || (j.current = q, P(q)), u === "native" && re(!1), _(!0);
20207
+ Ba(q, j.current) || (j.current = q, P(q)), u === "native" && re(!1), S(!0);
20208
20208
  },
20209
20209
  commitValidation() {
20210
- u === "native" && re(!0), _(!0);
20210
+ u === "native" && re(!0), S(!0);
20211
20211
  }
20212
20212
  };
20213
20213
  }
@@ -20285,7 +20285,7 @@ function gT(e, t) {
20285
20285
  let { inputElementType: n = "input", isDisabled: r = !1, isRequired: a = !1, isReadOnly: i = !1, type: s = "text", validationBehavior: u = "aria" } = e, [c, l] = hE(e.value, e.defaultValue || "", e.onChange), { focusableProps: d } = sT(e, t), f = fT({
20286
20286
  ...e,
20287
20287
  value: c
20288
- }), { isInvalid: h, validationErrors: m, validationDetails: S } = f.displayValidation, { labelProps: _, fieldProps: O, descriptionProps: v, errorMessageProps: L } = bT({
20288
+ }), { isInvalid: h, validationErrors: m, validationDetails: _ } = f.displayValidation, { labelProps: S, fieldProps: O, descriptionProps: v, errorMessageProps: L } = bT({
20289
20289
  ...e,
20290
20290
  isInvalid: h,
20291
20291
  errorMessage: e.errorMessage || m
@@ -20296,7 +20296,7 @@ function gT(e, t) {
20296
20296
  type: s,
20297
20297
  pattern: e.pattern
20298
20298
  };
20299
- return YE(t, c, l), oT(e, f, t), $e(() => {
20299
+ return YE(t, c, l), oT(e, f, t), Ye(() => {
20300
20300
  if (t.current instanceof Vr(t.current).HTMLTextAreaElement) {
20301
20301
  let R = t.current;
20302
20302
  Object.defineProperty(R, "defaultValue", {
@@ -20309,7 +20309,7 @@ function gT(e, t) {
20309
20309
  }, [
20310
20310
  t
20311
20311
  ]), {
20312
- labelProps: _,
20312
+ labelProps: S,
20313
20313
  inputProps: zr(P, n === "input" && j, {
20314
20314
  disabled: r,
20315
20315
  readOnly: i,
@@ -20349,7 +20349,7 @@ function gT(e, t) {
20349
20349
  errorMessageProps: L,
20350
20350
  isInvalid: h,
20351
20351
  validationErrors: m,
20352
- validationDetails: S
20352
+ validationDetails: _
20353
20353
  };
20354
20354
  }
20355
20355
  const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
@@ -20360,7 +20360,7 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
20360
20360
  }, i = (j) => {
20361
20361
  n(j);
20362
20362
  };
20363
- $e(r, [t]);
20363
+ Ye(r, [t]);
20364
20364
  let {
20365
20365
  label: s,
20366
20366
  SubmitComponent: u,
@@ -20368,14 +20368,14 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
20368
20368
  isLoadingStream: l,
20369
20369
  LoadingComponent: d,
20370
20370
  onPressLoadingButton: f
20371
- } = e, h = Ve(null), { labelProps: m, inputProps: S } = gT(
20371
+ } = e, h = Fe(null), { labelProps: m, inputProps: _ } = gT(
20372
20372
  {
20373
20373
  ...e,
20374
20374
  inputElementType: "textarea"
20375
20375
  },
20376
20376
  h
20377
20377
  );
20378
- const _ = (j) => {
20378
+ const S = (j) => {
20379
20379
  ET(j.target.value) || i(j.target.value);
20380
20380
  }, O = (j) => {
20381
20381
  (j.code === "Enter" || j.code === "NumpadEnter") && (j.shiftKey ? i(t + `
@@ -20403,10 +20403,10 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
20403
20403
  /* @__PURE__ */ M.jsxDEV(
20404
20404
  "textarea",
20405
20405
  {
20406
- ...S,
20406
+ ..._,
20407
20407
  ref: h,
20408
20408
  className: `${e.classNameTextarea} p-3`,
20409
- onChange: _,
20409
+ onChange: S,
20410
20410
  value: t,
20411
20411
  rows: 1,
20412
20412
  style: {
@@ -20742,7 +20742,7 @@ AT.reduce(
20742
20742
  },
20743
20743
  []
20744
20744
  );
20745
- const ST = "languageSettings", hl = Ye.createContext({
20745
+ const ST = "languageSettings", hl = $e.createContext({
20746
20746
  appCurrentLang: sa[xt.ENGLISH],
20747
20747
  setAppCurrentLang: () => {
20748
20748
  }
@@ -20998,7 +20998,7 @@ const pl = () => {
20998
20998
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
20999
20999
  lineNumber: 10,
21000
21000
  columnNumber: 5
21001
- }, void 0), bl = Ye.createContext({
21001
+ }, void 0), bl = $e.createContext({
21002
21002
  conversation: [],
21003
21003
  setConversation: () => {
21004
21004
  },
@@ -21006,12 +21006,12 @@ const pl = () => {
21006
21006
  setDiscussionId: () => {
21007
21007
  }
21008
21008
  }), DT = (e) => {
21009
- const t = Ve(null), [n, r] = Oe(!1), a = Ve(!0), i = Ve(!1), s = Ve(0), u = () => {
21009
+ const t = Fe(null), [n, r] = Oe(!1), a = Fe(!0), i = Fe(!1), s = Fe(0), u = () => {
21010
21010
  const d = t.current, f = 4;
21011
21011
  if (d) {
21012
21012
  d.scrollTop < s.current - 1 && (i.current = !1);
21013
- const m = d.scrollHeight > d.clientHeight, S = d.scrollHeight - d.scrollTop <= d.clientHeight + f;
21014
- r(m && !S), a.current = S, s.current = d.scrollTop;
21013
+ const m = d.scrollHeight > d.clientHeight, _ = d.scrollHeight - d.scrollTop <= d.clientHeight + f;
21014
+ r(m && !_), a.current = _, s.current = d.scrollTop;
21015
21015
  }
21016
21016
  }, c = ({
21017
21017
  smooth: d = !1,
@@ -21026,9 +21026,9 @@ const pl = () => {
21026
21026
  behavior: d ? "smooth" : "auto"
21027
21027
  });
21028
21028
  };
21029
- return $e(() => {
21029
+ return Ye(() => {
21030
21030
  u();
21031
- }, [e]), $e(() => {
21031
+ }, [e]), Ye(() => {
21032
21032
  const d = t.current;
21033
21033
  if (d)
21034
21034
  return d.addEventListener("scroll", u), u(), () => {
@@ -21206,12 +21206,12 @@ const gl = ({
21206
21206
  containerClassName: t
21207
21207
  }) => {
21208
21208
  e || console.log("Dev - Admin settings");
21209
- const n = Ve(null), {
21209
+ const n = Fe(null), {
21210
21210
  placeholderTranslation: r,
21211
21211
  genericErrorTranslation: a,
21212
21212
  tooManyRequestsTranslation: i,
21213
21213
  conflictErrorTranslation: s
21214
- } = vi(), { conversation: u, setConversation: c, discussionId: l, setDiscussionId: d } = yt(bl), [f, h] = Oe("notLoading"), { defaultStartingStep: m } = pl(), [S, _] = Oe(
21214
+ } = vi(), { conversation: u, setConversation: c, discussionId: l, setDiscussionId: d } = yt(bl), [f, h] = Oe("notLoading"), { defaultStartingStep: m } = pl(), [_, S] = Oe(
21215
21215
  null
21216
21216
  ), [O, v] = Oe(
21217
21217
  m
@@ -21230,10 +21230,10 @@ const gl = ({
21230
21230
  showScrollButton: q,
21231
21231
  messagesContainerRef: Te,
21232
21232
  removeStickyNess: ee
21233
- } = DT(u), B = (le, ye, Fe) => {
21233
+ } = DT(u), B = (le, ye, He) => {
21234
21234
  c((g) => [
21235
21235
  ...g,
21236
- { content: le, userType: ye, metaData: Fe }
21236
+ { content: le, userType: ye, metaData: He }
21237
21237
  ]);
21238
21238
  }, F = () => {
21239
21239
  Ir.abort("cancelling"), console.log("Stream request aborted"), h("notLoading"), c(
@@ -21247,7 +21247,7 @@ const gl = ({
21247
21247
  setDiscussionId: d
21248
21248
  }), fe = async (le) => {
21249
21249
  h("loadingIntermediaryStates");
21250
- const ye = rr.getApiUrl(), Fe = {
21250
+ const ye = rr.getApiUrl(), He = {
21251
21251
  query: le,
21252
21252
  language: R.locale
21253
21253
  };
@@ -21259,10 +21259,10 @@ const gl = ({
21259
21259
  }
21260
21260
  ]), requestAnimationFrame(
21261
21261
  () => oe({ smooth: !1, sticky: !1 })
21262
- ), l && (Fe.discussionId = l);
21262
+ ), l && (He.discussionId = l);
21263
21263
  const g = Ir.signal, Y = rr.getFetchConfig({
21264
21264
  httpVerb: "POST",
21265
- body: Fe,
21265
+ body: He,
21266
21266
  contentType: "application/json",
21267
21267
  options: {
21268
21268
  signal: g
@@ -21274,8 +21274,8 @@ const gl = ({
21274
21274
  const ue = W.headers.get("discussionId");
21275
21275
  d(parseInt(ue, 10)), await new ReadableStream({
21276
21276
  start($) {
21277
- return He();
21278
- async function He() {
21277
+ return Ue();
21278
+ async function Ue() {
21279
21279
  if (!W.ok) {
21280
21280
  h("notLoading");
21281
21281
  let We = a;
@@ -21295,15 +21295,15 @@ const gl = ({
21295
21295
  content: Ee,
21296
21296
  isLastAnswer: Ne,
21297
21297
  streamSourceUuid: Ie,
21298
- shouldStopStream: Ue
21298
+ shouldStopStream: je
21299
21299
  } = he;
21300
- ce && ce !== Ie && (ae += '<span style="display:block;height:1rem;"></span>'), ce = Ie, (Ne || Ue) && (Q = !0), $.enqueue(Ee), vT(Ee) ? (se += Ee, ae += se, se = "", ie = !1) : ie || _T(Ee) ? (se += Ee, ie = !0) : ae += Ee, c((I) => {
21300
+ ce && ce !== Ie && (ae += '<span style="display:block;height:1rem;"></span>'), ce = Ie, (Ne || je) && (Q = !0), $.enqueue(Ee), vT(Ee) ? (se += Ee, ae += se, se = "", ie = !1) : ie || _T(Ee) ? (se += Ee, ie = !0) : ae += Ee, c((I) => {
21301
21301
  const w = [...I], G = w.length - 1, me = w[G];
21302
21302
  return w[G] = {
21303
21303
  ...me,
21304
21304
  content: me.content = ae,
21305
21305
  metaData: {
21306
- isErrorMessage: Ue
21306
+ isErrorMessage: je
21307
21307
  }
21308
21308
  }, [...w];
21309
21309
  });
@@ -21321,14 +21321,14 @@ const gl = ({
21321
21321
  he
21322
21322
  )) {
21323
21323
  const { content: Ee } = he;
21324
- $.enqueue(Ee), _(Ee);
21324
+ $.enqueue(Ee), S(Ee);
21325
21325
  } else
21326
21326
  console.warn(`Object not handled - ${he}`);
21327
21327
  if (Je && Q) {
21328
21328
  $.close(), h("notLoading"), v(m), P(null);
21329
21329
  return;
21330
21330
  }
21331
- return He();
21331
+ return Ue();
21332
21332
  });
21333
21333
  }
21334
21334
  }
@@ -21385,7 +21385,7 @@ const gl = ({
21385
21385
  currentStepName: O,
21386
21386
  currentStepNumber: L,
21387
21387
  loadingStatus: f,
21388
- numberOfSteps: S
21388
+ numberOfSteps: _
21389
21389
  },
21390
21390
  void 0,
21391
21391
  !1,
@@ -21638,8 +21638,8 @@ function FT() {
21638
21638
  throw h.name = "Invariant Violation", h;
21639
21639
  }
21640
21640
  f = i[d](s, d, c, u, null, t);
21641
- } catch (S) {
21642
- f = S;
21641
+ } catch (_) {
21642
+ f = _;
21643
21643
  }
21644
21644
  if (f && !(f instanceof Error) && e(
21645
21645
  (c || "React class") + ": type specification of " + u + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
@@ -21702,13 +21702,13 @@ function HT() {
21702
21702
  shape: ee,
21703
21703
  exact: B
21704
21704
  };
21705
- function S(g, Y) {
21705
+ function _(g, Y) {
21706
21706
  return g === Y ? g !== 0 || 1 / g === 1 / Y : g !== g && Y !== Y;
21707
21707
  }
21708
- function _(g, Y) {
21708
+ function S(g, Y) {
21709
21709
  this.message = g, this.data = Y && typeof Y == "object" ? Y : {}, this.stack = "";
21710
21710
  }
21711
- _.prototype = Error.prototype;
21711
+ S.prototype = Error.prototype;
21712
21712
  function O(g) {
21713
21713
  if (process.env.NODE_ENV !== "production")
21714
21714
  var Y = {}, W = 0;
@@ -21720,14 +21720,14 @@ function HT() {
21720
21720
  );
21721
21721
  throw $.name = "Invariant Violation", $;
21722
21722
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
21723
- var He = Q + ":" + ie;
21724
- !Y[He] && // Avoid spamming the console because they are often not actionable except for lib authors
21723
+ var Ue = Q + ":" + ie;
21724
+ !Y[Ue] && // Avoid spamming the console because they are often not actionable except for lib authors
21725
21725
  W < 3 && (i(
21726
21726
  "You are manually calling a React.PropTypes validation function for the `" + ue + "` prop on `" + Q + "`. 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."
21727
- ), Y[He] = !0, W++);
21727
+ ), Y[Ue] = !0, W++);
21728
21728
  }
21729
21729
  }
21730
- return se[ie] == null ? ae ? se[ie] === null ? new _("The " + ce + " `" + ue + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new _("The " + ce + " `" + ue + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : g(se, ie, Q, ce, ue);
21730
+ return se[ie] == null ? ae ? se[ie] === null ? new S("The " + ce + " `" + ue + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new S("The " + ce + " `" + ue + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : g(se, ie, Q, ce, ue);
21731
21731
  }
21732
21732
  var Z = x.bind(null, !1);
21733
21733
  return Z.isRequired = x.bind(null, !0), Z;
@@ -21737,7 +21737,7 @@ function HT() {
21737
21737
  var Q = W[x], ce = fe(Q);
21738
21738
  if (ce !== g) {
21739
21739
  var ue = le(Q);
21740
- return new _(
21740
+ return new S(
21741
21741
  "Invalid " + ae + " `" + se + "` of type " + ("`" + ue + "` supplied to `" + Z + "`, expected ") + ("`" + g + "`."),
21742
21742
  { expectedType: g }
21743
21743
  );
@@ -21752,11 +21752,11 @@ function HT() {
21752
21752
  function P(g) {
21753
21753
  function Y(W, x, Z, ae, se) {
21754
21754
  if (typeof g != "function")
21755
- return new _("Property `" + se + "` of component `" + Z + "` has invalid PropType notation inside arrayOf.");
21755
+ return new S("Property `" + se + "` of component `" + Z + "` has invalid PropType notation inside arrayOf.");
21756
21756
  var ie = W[x];
21757
21757
  if (!Array.isArray(ie)) {
21758
21758
  var Q = fe(ie);
21759
- return new _("Invalid " + ae + " `" + se + "` of type " + ("`" + Q + "` supplied to `" + Z + "`, expected an array."));
21759
+ return new S("Invalid " + ae + " `" + se + "` of type " + ("`" + Q + "` supplied to `" + Z + "`, expected an array."));
21760
21760
  }
21761
21761
  for (var ce = 0; ce < ie.length; ce++) {
21762
21762
  var ue = g(ie, ce, Z, ae, se + "[" + ce + "]", n);
@@ -21772,7 +21772,7 @@ function HT() {
21772
21772
  var se = Y[W];
21773
21773
  if (!u(se)) {
21774
21774
  var ie = fe(se);
21775
- return new _("Invalid " + Z + " `" + ae + "` of type " + ("`" + ie + "` supplied to `" + x + "`, expected a single ReactElement."));
21775
+ return new S("Invalid " + Z + " `" + ae + "` of type " + ("`" + ie + "` supplied to `" + x + "`, expected a single ReactElement."));
21776
21776
  }
21777
21777
  return null;
21778
21778
  }
@@ -21783,7 +21783,7 @@ function HT() {
21783
21783
  var se = Y[W];
21784
21784
  if (!e.isValidElementType(se)) {
21785
21785
  var ie = fe(se);
21786
- return new _("Invalid " + Z + " `" + ae + "` of type " + ("`" + ie + "` supplied to `" + x + "`, expected a single ReactElement type."));
21786
+ return new S("Invalid " + Z + " `" + ae + "` of type " + ("`" + ie + "` supplied to `" + x + "`, expected a single ReactElement type."));
21787
21787
  }
21788
21788
  return null;
21789
21789
  }
@@ -21792,8 +21792,8 @@ function HT() {
21792
21792
  function D(g) {
21793
21793
  function Y(W, x, Z, ae, se) {
21794
21794
  if (!(W[x] instanceof g)) {
21795
- var ie = g.name || h, Q = Fe(W[x]);
21796
- return new _("Invalid " + ae + " `" + se + "` of type " + ("`" + Q + "` supplied to `" + Z + "`, expected ") + ("instance of `" + ie + "`."));
21795
+ var ie = g.name || h, Q = He(W[x]);
21796
+ return new S("Invalid " + ae + " `" + se + "` of type " + ("`" + Q + "` supplied to `" + Z + "`, expected ") + ("instance of `" + ie + "`."));
21797
21797
  }
21798
21798
  return null;
21799
21799
  }
@@ -21806,23 +21806,23 @@ function HT() {
21806
21806
  ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
21807
21807
  function Y(W, x, Z, ae, se) {
21808
21808
  for (var ie = W[x], Q = 0; Q < g.length; Q++)
21809
- if (S(ie, g[Q]))
21809
+ if (_(ie, g[Q]))
21810
21810
  return null;
21811
21811
  var ce = JSON.stringify(g, function(ke, $) {
21812
- var He = le($);
21813
- return He === "symbol" ? String($) : $;
21812
+ var Ue = le($);
21813
+ return Ue === "symbol" ? String($) : $;
21814
21814
  });
21815
- return new _("Invalid " + ae + " `" + se + "` of value `" + String(ie) + "` " + ("supplied to `" + Z + "`, expected one of " + ce + "."));
21815
+ return new S("Invalid " + ae + " `" + se + "` of value `" + String(ie) + "` " + ("supplied to `" + Z + "`, expected one of " + ce + "."));
21816
21816
  }
21817
21817
  return O(Y);
21818
21818
  }
21819
21819
  function be(g) {
21820
21820
  function Y(W, x, Z, ae, se) {
21821
21821
  if (typeof g != "function")
21822
- return new _("Property `" + se + "` of component `" + Z + "` has invalid PropType notation inside objectOf.");
21822
+ return new S("Property `" + se + "` of component `" + Z + "` has invalid PropType notation inside objectOf.");
21823
21823
  var ie = W[x], Q = fe(ie);
21824
21824
  if (Q !== "object")
21825
- return new _("Invalid " + ae + " `" + se + "` of type " + ("`" + Q + "` supplied to `" + Z + "`, expected an object."));
21825
+ return new S("Invalid " + ae + " `" + se + "` of type " + ("`" + Q + "` supplied to `" + Z + "`, expected an object."));
21826
21826
  for (var ce in ie)
21827
21827
  if (r(ie, ce)) {
21828
21828
  var ue = g(ie, ce, Z, ae, se + "." + ce, n);
@@ -21850,19 +21850,19 @@ function HT() {
21850
21850
  return null;
21851
21851
  $.data && r($.data, "expectedType") && ce.push($.data.expectedType);
21852
21852
  }
21853
- var He = ce.length > 0 ? ", expected one of type [" + ce.join(", ") + "]" : "";
21854
- return new _("Invalid " + ie + " `" + Q + "` supplied to " + ("`" + se + "`" + He + "."));
21853
+ var Ue = ce.length > 0 ? ", expected one of type [" + ce.join(", ") + "]" : "";
21854
+ return new S("Invalid " + ie + " `" + Q + "` supplied to " + ("`" + se + "`" + Ue + "."));
21855
21855
  }
21856
21856
  return O(x);
21857
21857
  }
21858
21858
  function q() {
21859
21859
  function g(Y, W, x, Z, ae) {
21860
- return F(Y[W]) ? null : new _("Invalid " + Z + " `" + ae + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
21860
+ return F(Y[W]) ? null : new S("Invalid " + Z + " `" + ae + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
21861
21861
  }
21862
21862
  return O(g);
21863
21863
  }
21864
21864
  function Te(g, Y, W, x, Z) {
21865
- return new _(
21865
+ return new S(
21866
21866
  (g || "React class") + ": " + Y + " type `" + W + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Z + "`."
21867
21867
  );
21868
21868
  }
@@ -21870,7 +21870,7 @@ function HT() {
21870
21870
  function Y(W, x, Z, ae, se) {
21871
21871
  var ie = W[x], Q = fe(ie);
21872
21872
  if (Q !== "object")
21873
- return new _("Invalid " + ae + " `" + se + "` of type `" + Q + "` " + ("supplied to `" + Z + "`, expected `object`."));
21873
+ return new S("Invalid " + ae + " `" + se + "` of type `" + Q + "` " + ("supplied to `" + Z + "`, expected `object`."));
21874
21874
  for (var ce in g) {
21875
21875
  var ue = g[ce];
21876
21876
  if (typeof ue != "function")
@@ -21887,14 +21887,14 @@ function HT() {
21887
21887
  function Y(W, x, Z, ae, se) {
21888
21888
  var ie = W[x], Q = fe(ie);
21889
21889
  if (Q !== "object")
21890
- return new _("Invalid " + ae + " `" + se + "` of type `" + Q + "` " + ("supplied to `" + Z + "`, expected `object`."));
21890
+ return new S("Invalid " + ae + " `" + se + "` of type `" + Q + "` " + ("supplied to `" + Z + "`, expected `object`."));
21891
21891
  var ce = t({}, W[x], g);
21892
21892
  for (var ue in ce) {
21893
21893
  var ke = g[ue];
21894
21894
  if (r(g, ue) && typeof ke != "function")
21895
21895
  return Te(Z, ae, se, ue, le(ke));
21896
21896
  if (!ke)
21897
- return new _(
21897
+ return new S(
21898
21898
  "Invalid " + ae + " `" + se + "` key `" + ue + "` supplied to `" + Z + "`.\nBad object: " + JSON.stringify(W[x], null, " ") + `
21899
21899
  Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
21900
21900
  );
@@ -21972,7 +21972,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
21972
21972
  return Y;
21973
21973
  }
21974
21974
  }
21975
- function Fe(g) {
21975
+ function He(g) {
21976
21976
  return !g.constructor || !g.constructor.name ? h : g.constructor.name;
21977
21977
  }
21978
21978
  return m.checkPropTypes = a, m.resetWarningCache = a.resetWarningCache, m.PropTypes = m, m;
@@ -22069,7 +22069,7 @@ var GT = process.env.NODE_ENV !== "production" ? pe.oneOfType([pe.number, pe.sha
22069
22069
  exitDone: pe.string,
22070
22070
  exitActive: pe.string
22071
22071
  })]) : null;
22072
- const yl = Ye.createContext(null);
22072
+ const yl = $e.createContext(null);
22073
22073
  var Cl = function(t) {
22074
22074
  return t.scrollTop;
22075
22075
  }, Yn = "unmounted", an = "exited", sn = "entering", An = "entered", xi = "exiting", Ut = /* @__PURE__ */ (function(e) {
@@ -22194,12 +22194,12 @@ var Cl = function(t) {
22194
22194
  var u = El(i, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
22195
22195
  return (
22196
22196
  // allows for nested Transitions
22197
- /* @__PURE__ */ Ye.createElement(yl.Provider, {
22197
+ /* @__PURE__ */ $e.createElement(yl.Provider, {
22198
22198
  value: null
22199
- }, typeof s == "function" ? s(a, u) : Ye.cloneElement(Ye.Children.only(s), u))
22199
+ }, typeof s == "function" ? s(a, u) : $e.cloneElement($e.Children.only(s), u))
22200
22200
  );
22201
22201
  }, t;
22202
- })(Ye.Component);
22202
+ })($e.Component);
22203
22203
  Ut.contextType = yl;
22204
22204
  Ut.propTypes = process.env.NODE_ENV !== "production" ? {
22205
22205
  /**
@@ -22448,7 +22448,7 @@ var WT = function(t, n) {
22448
22448
  var a = this.props;
22449
22449
  a.classNames;
22450
22450
  var i = El(a, ["classNames"]);
22451
- return /* @__PURE__ */ Ye.createElement(Ut, Yr({}, i, {
22451
+ return /* @__PURE__ */ $e.createElement(Ut, Yr({}, i, {
22452
22452
  onEnter: this.onEnter,
22453
22453
  onEntered: this.onEntered,
22454
22454
  onEntering: this.onEntering,
@@ -22457,7 +22457,7 @@ var WT = function(t, n) {
22457
22457
  onExited: this.onExited
22458
22458
  }));
22459
22459
  }, t;
22460
- })(Ye.Component);
22460
+ })($e.Component);
22461
22461
  Wi.defaultProps = {
22462
22462
  classNames: ""
22463
22463
  };
@@ -22644,7 +22644,7 @@ const XT = Jo(
22644
22644
  void 0
22645
22645
  )
22646
22646
  ), QT = ({ isWidgetOpen: e, appToken: t }) => {
22647
- const n = Ve(null);
22647
+ const n = Fe(null);
22648
22648
  return /* @__PURE__ */ M.jsxDEV("div", { children: /* @__PURE__ */ M.jsxDEV(
22649
22649
  Wi,
22650
22650
  {
@@ -22693,7 +22693,7 @@ const XT = Jo(
22693
22693
  }));
22694
22694
  }
22695
22695
  };
22696
- }, Sl = Ye.createContext({
22696
+ }, Sl = $e.createContext({
22697
22697
  appInternalContext: Al(),
22698
22698
  setAppInternalContext: () => {
22699
22699
  },
@@ -22753,7 +22753,7 @@ const XT = Jo(
22753
22753
  const [n, r] = Oe(e[t]), a = (i) => {
22754
22754
  Object.keys(e).includes(i?.locale) ? r(i) : r(e[xt.ENGLISH]);
22755
22755
  };
22756
- return $e(() => {
22756
+ return Ye(() => {
22757
22757
  let i = t2(e, t);
22758
22758
  i.locale !== t && r(e[i.locale]);
22759
22759
  }, []), {
@@ -22778,25 +22778,25 @@ const XT = Jo(
22778
22778
  discussionId: c,
22779
22779
  setDiscussionId: l
22780
22780
  };
22781
- return $e(() => {
22781
+ return Ye(() => {
22782
22782
  const f = rr.getApiUrl(), h = rr.getFetchConfig({
22783
22783
  httpVerb: "GET",
22784
22784
  contentType: "application/json"
22785
22785
  });
22786
22786
  fetch(`${f}/company/settings/${t}/${e}`, h).then(async (m) => {
22787
- const S = await m.json();
22788
- a(S), u([
22787
+ const _ = await m.json();
22788
+ a(_), u([
22789
22789
  {
22790
22790
  userType: "assistant",
22791
- content: S.agent.text.initialText
22791
+ content: _.agent.text.initialText
22792
22792
  }
22793
22793
  ]), n?.();
22794
22794
  }).catch((m) => console.log("error in settings fetch", m));
22795
22795
  }, [t, e]), { contextCompanySettings: i, contextInitialChatbotStartingText: d };
22796
22796
  };
22797
22797
  function s2(e, t = {}, n, r) {
22798
- const { id: a, nonce: i, target: s, disableConstructable: u } = t, c = s ?? document.head, l = Ve(null), d = Ve(null);
22799
- $e(() => {
22798
+ const { id: a, nonce: i, target: s, disableConstructable: u } = t, c = s ?? document.head, l = Fe(null), d = Fe(null);
22799
+ Ye(() => {
22800
22800
  if (!e) {
22801
22801
  n && (console.log("No custom css found."), r?.());
22802
22802
  return;
@@ -22808,8 +22808,8 @@ function s2(e, t = {}, n, r) {
22808
22808
  ]), l.current.replaceSync(e), console.log("Loading custom css via stylesheet."), r?.(), () => {
22809
22809
  const h = c.adoptedStyleSheets || [], m = h.indexOf(l.current);
22810
22810
  if (m >= 0) {
22811
- const S = h.slice();
22812
- S.splice(m, 1), c.adoptedStyleSheets = S;
22811
+ const _ = h.slice();
22812
+ _.splice(m, 1), c.adoptedStyleSheets = _;
22813
22813
  }
22814
22814
  l.current = null;
22815
22815
  };
@@ -24501,57 +24501,69 @@ function C2({
24501
24501
  displayMode: r,
24502
24502
  ...a
24503
24503
  }) {
24504
- const i = Ve(null), [s, u] = Oe(null);
24504
+ const i = r === "launcher" ? "body" : "inline", s = Fe(null), u = Fe(null), [c, l] = Oe(null);
24505
24505
  return Zo(() => {
24506
24506
  if (typeof document > "u") return;
24507
- const c = document.createElement("div");
24508
- document.body.appendChild(c), i.current = c;
24509
- const l = c.attachShadow({ mode: "open", delegatesFocus: !0 });
24510
- let d = !1;
24507
+ const d = i === "inline" ? s.current : document.body;
24508
+ if (!d) return;
24509
+ const f = document.createElement("div");
24510
+ d.appendChild(f), u.current = f;
24511
+ const h = f.attachShadow({ mode: "open", delegatesFocus: !0 });
24512
+ let m = !1;
24511
24513
  try {
24512
24514
  if ("adoptedStyleSheets" in Document.prototype && !e) {
24513
- const h = new CSSStyleSheet();
24514
- h.replaceSync(Ko), l.adoptedStyleSheets = [
24515
- ...l.adoptedStyleSheets ?? [],
24516
- h
24517
- ], d = !0;
24515
+ const S = new CSSStyleSheet();
24516
+ S.replaceSync(Ko), h.adoptedStyleSheets = [
24517
+ ...h.adoptedStyleSheets ?? [],
24518
+ S
24519
+ ], m = !0;
24518
24520
  }
24519
24521
  } catch {
24520
24522
  }
24521
- if (!d)
24523
+ if (!m)
24522
24524
  if (e) {
24523
- const h = document.createElement("link");
24524
- h.rel = "stylesheet", h.href = e, l.appendChild(h);
24525
+ const S = document.createElement("link");
24526
+ S.rel = "stylesheet", S.href = e, h.appendChild(S);
24525
24527
  } else {
24526
- const h = document.createElement("style");
24527
- h.textContent = Ko, l.appendChild(h);
24528
+ const S = document.createElement("style");
24529
+ S.textContent = Ko, h.appendChild(S);
24528
24530
  }
24529
- const f = document.createElement("div");
24530
- return l.appendChild(f), u(f), () => {
24531
- c.remove(), i.current = null, u(null);
24531
+ const _ = document.createElement("div");
24532
+ return h.appendChild(_), l(_), () => {
24533
+ l(null), f.remove(), u.current = null;
24532
24534
  };
24533
- }, []), $e(() => {
24534
- i.current;
24535
- }, []), s ? kl(
24536
- /* @__PURE__ */ M.jsxDEV(
24537
- h2,
24538
- {
24539
- ...a,
24540
- appToken: t,
24541
- agentId: n,
24542
- displayMode: r
24543
- },
24544
- void 0,
24545
- !1,
24546
- {
24547
- fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/App.tsx",
24548
- lineNumber: 85,
24549
- columnNumber: 5
24550
- },
24551
- this
24552
- ),
24553
- s
24554
- ) : null;
24535
+ }, [i, e]), /* @__PURE__ */ M.jsxDEV(M.Fragment, { children: [
24536
+ i === "inline" && /* @__PURE__ */ M.jsxDEV("div", { ref: s }, void 0, !1, {
24537
+ fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/App.tsx",
24538
+ lineNumber: 87,
24539
+ columnNumber: 30
24540
+ }, this),
24541
+ " ",
24542
+ c && kl(
24543
+ /* @__PURE__ */ M.jsxDEV(
24544
+ h2,
24545
+ {
24546
+ ...a,
24547
+ appToken: t,
24548
+ agentId: n,
24549
+ displayMode: r
24550
+ },
24551
+ void 0,
24552
+ !1,
24553
+ {
24554
+ fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/App.tsx",
24555
+ lineNumber: 90,
24556
+ columnNumber: 11
24557
+ },
24558
+ this
24559
+ ),
24560
+ c
24561
+ )
24562
+ ] }, void 0, !0, {
24563
+ fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/App.tsx",
24564
+ lineNumber: 86,
24565
+ columnNumber: 5
24566
+ }, this);
24555
24567
  }
24556
24568
  export {
24557
24569
  C2 as App