@2uinc/frontend-component-xpert-chatbot 1.15.4-beta.3 → 1.15.4-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/lib/index.min.js +564 -553
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import nt, { createContext as is, useMemo as os, useState as ye, useEffect as Me, useContext as Le, useRef as We, forwardRef as Io, createElement as sr, useCallback as Ht } from "react";
1
+ import nt, { createContext as is, useMemo as os, useState as ye, useEffect as Me, useContext as Oe, useRef as We, forwardRef as Io, createElement as sr, useCallback as Ht } from "react";
2
2
  const as = {
3
3
  xpertKey: "edx",
4
4
  chatApi: {
@@ -580,7 +580,7 @@ function Eo(e, t, n) {
580
580
  Vt.jsx = Eo;
581
581
  Vt.jsxs = Eo;
582
582
  ko.exports = Vt;
583
- var v = ko.exports;
583
+ var T = ko.exports;
584
584
  /*! js-cookie v3.0.5 | MIT */
585
585
  function tn(e) {
586
586
  for (var t = 1; t < arguments.length; t++) {
@@ -651,7 +651,7 @@ function ur(e, t) {
651
651
  }
652
652
  );
653
653
  }
654
- var Ee = ur(Ms, { path: "/" }), Co = { exports: {} }, xs = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", ws = xs, vs = ws;
654
+ var ke = ur(Ms, { path: "/" }), Co = { exports: {} }, xs = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", ws = xs, vs = ws;
655
655
  function Ao() {
656
656
  }
657
657
  function So() {
@@ -703,10 +703,10 @@ dn.exports;
703
703
  (function(e, t) {
704
704
  var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", m = "[object Error]", p = "[object Function]", D = "[object GeneratorFunction]", x = "[object Map]", k = "[object Number]", b = "[object Null]", z = "[object Object]", E = "[object Proxy]", _ = "[object RegExp]", Q = "[object Set]", M = "[object String]", L = "[object Undefined]", Y = "[object WeakMap]", q = "[object ArrayBuffer]", ee = "[object DataView]", S = "[object Float32Array]", w = "[object Float64Array]", j = "[object Int8Array]", O = "[object Int16Array]", P = "[object Int32Array]", $ = "[object Uint8Array]", G = "[object Uint8ClampedArray]", Z = "[object Uint16Array]", ie = "[object Uint32Array]", h = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, we = /^(?:0|[1-9]\d*)$/, g = {};
705
705
  g[S] = g[w] = g[j] = g[O] = g[P] = g[$] = g[G] = g[Z] = g[ie] = !0, g[l] = g[s] = g[q] = g[c] = g[ee] = g[f] = g[m] = g[p] = g[x] = g[k] = g[z] = g[_] = g[Q] = g[M] = g[Y] = !1;
706
- var me = typeof en == "object" && en && en.Object === Object && en, Ne = typeof self == "object" && self && self.Object === Object && self, ae = me || Ne || Function("return this")(), ke = t && !t.nodeType && t, ve = ke && !0 && e && !e.nodeType && e, Fe = ve && ve.exports === ke, Pe = Fe && me.process, Ke = function() {
706
+ var me = typeof en == "object" && en && en.Object === Object && en, De = typeof self == "object" && self && self.Object === Object && self, ae = me || De || Function("return this")(), Ie = t && !t.nodeType && t, ve = Ie && !0 && e && !e.nodeType && e, Le = ve && ve.exports === Ie, _e = Le && me.process, Ke = function() {
707
707
  try {
708
708
  var d = ve && ve.require && ve.require("util").types;
709
- return d || Pe && Pe.binding && Pe.binding("util");
709
+ return d || _e && _e.binding && _e.binding("util");
710
710
  } catch {
711
711
  }
712
712
  }(), lt = Ke && Ke.isTypedArray;
@@ -744,22 +744,22 @@ dn.exports;
744
744
  var Je = Array.prototype, jt = Function.prototype, $e = Object.prototype, Ze = ae["__core-js_shared__"], F = jt.toString, W = $e.hasOwnProperty, be = function() {
745
745
  var d = /[^.]+$/.exec(Ze && Ze.keys && Ze.keys.IE_PROTO || "");
746
746
  return d ? "Symbol(src)_1." + d : "";
747
- }(), se = $e.toString, Ie = F.call(Object), T = RegExp(
747
+ }(), se = $e.toString, Te = F.call(Object), v = RegExp(
748
748
  "^" + F.call(W).replace(h, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
749
- ), C = Fe ? ae.Buffer : void 0, U = ae.Symbol, K = ae.Uint8Array, J = C ? C.allocUnsafe : void 0, ue = yt(Object.getPrototypeOf, Object), Te = Object.create, De = $e.propertyIsEnumerable, st = Je.splice, Ae = U ? U.toStringTag : void 0, pe = function() {
749
+ ), C = Le ? ae.Buffer : void 0, U = ae.Symbol, K = ae.Uint8Array, J = C ? C.allocUnsafe : void 0, de = yt(Object.getPrototypeOf, Object), Ye = Object.create, He = $e.propertyIsEnumerable, st = Je.splice, Ee = U ? U.toStringTag : void 0, ce = function() {
750
750
  try {
751
751
  var d = Bn(Object, "defineProperty");
752
752
  return d({}, "", {}), d;
753
753
  } catch {
754
754
  }
755
- }(), Et = C ? C.isBuffer : void 0, Re = Math.max, rl = Date.now, ri = Bn(ae, "Map"), Ct = Bn(Object, "create"), il = function() {
755
+ }(), Et = C ? C.isBuffer : void 0, Fe = Math.max, rl = Date.now, ri = Bn(ae, "Map"), Ct = Bn(Object, "create"), il = function() {
756
756
  function d() {
757
757
  }
758
758
  return function(y) {
759
759
  if (!ct(y))
760
760
  return {};
761
- if (Te)
762
- return Te(y);
761
+ if (Ye)
762
+ return Ye(y);
763
763
  d.prototype = y;
764
764
  var I = new d();
765
765
  return d.prototype = void 0, I;
@@ -883,13 +883,13 @@ dn.exports;
883
883
  }
884
884
  Mt.prototype.clear = xl, Mt.prototype.delete = wl, Mt.prototype.get = vl, Mt.prototype.has = Tl, Mt.prototype.set = Dl;
885
885
  function Il(d, y) {
886
- var I = Hn(d), R = !I && Yn(d), re = !I && !R && si(d), ce = !I && !R && !re && ci(d), he = I || R || re || ce, te = he ? Nt(d.length, String) : [], ge = te.length;
887
- for (var Ue in d)
888
- (y || W.call(d, Ue)) && !(he && // Safari 9 has enumerable `arguments.length` in strict mode.
889
- (Ue == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
890
- re && (Ue == "offset" || Ue == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
891
- ce && (Ue == "buffer" || Ue == "byteLength" || Ue == "byteOffset") || // Skip index properties.
892
- ai(Ue, ge))) && te.push(Ue);
886
+ var I = Hn(d), R = !I && Yn(d), re = !I && !R && si(d), ue = !I && !R && !re && ci(d), he = I || R || re || ue, te = he ? Nt(d.length, String) : [], ge = te.length;
887
+ for (var Pe in d)
888
+ (y || W.call(d, Pe)) && !(he && // Safari 9 has enumerable `arguments.length` in strict mode.
889
+ (Pe == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
890
+ re && (Pe == "offset" || Pe == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
891
+ ue && (Pe == "buffer" || Pe == "byteLength" || Pe == "byteOffset") || // Skip index properties.
892
+ ai(Pe, ge))) && te.push(Pe);
893
893
  return te;
894
894
  }
895
895
  function Rn(d, y, I) {
@@ -906,7 +906,7 @@ dn.exports;
906
906
  return -1;
907
907
  }
908
908
  function Un(d, y, I) {
909
- y == "__proto__" && pe ? pe(d, y, {
909
+ y == "__proto__" && ce ? ce(d, y, {
910
910
  configurable: !0,
911
911
  enumerable: !0,
912
912
  value: I,
@@ -915,7 +915,7 @@ dn.exports;
915
915
  }
916
916
  var kl = Ul();
917
917
  function Xt(d) {
918
- return d == null ? d === void 0 ? L : b : Ae && Ae in Object(d) ? Bl(d) : Vl(d);
918
+ return d == null ? d === void 0 ? L : b : Ee && Ee in Object(d) ? Bl(d) : Vl(d);
919
919
  }
920
920
  function ii(d) {
921
921
  return At(d) && Xt(d) == l;
@@ -923,7 +923,7 @@ dn.exports;
923
923
  function jl(d) {
924
924
  if (!ct(d) || $l(d))
925
925
  return !1;
926
- var y = qn(d) ? T : ne;
926
+ var y = qn(d) ? v : ne;
927
927
  return y.test(Xl(d));
928
928
  }
929
929
  function El(d) {
@@ -938,33 +938,33 @@ dn.exports;
938
938
  return I;
939
939
  }
940
940
  function oi(d, y, I, R, re) {
941
- d !== y && kl(y, function(ce, he) {
942
- if (re || (re = new Mt()), ct(ce))
941
+ d !== y && kl(y, function(ue, he) {
942
+ if (re || (re = new Mt()), ct(ue))
943
943
  Al(d, y, he, I, oi, R, re);
944
944
  else {
945
- var te = R ? R(Qn(d, he), ce, he + "", d, y, re) : void 0;
946
- te === void 0 && (te = ce), Rn(d, he, te);
945
+ var te = R ? R(Qn(d, he), ue, he + "", d, y, re) : void 0;
946
+ te === void 0 && (te = ue), Rn(d, he, te);
947
947
  }
948
948
  }, pi);
949
949
  }
950
- function Al(d, y, I, R, re, ce, he) {
951
- var te = Qn(d, I), ge = Qn(y, I), Ue = he.get(ge);
952
- if (Ue) {
953
- Rn(d, I, Ue);
950
+ function Al(d, y, I, R, re, ue, he) {
951
+ var te = Qn(d, I), ge = Qn(y, I), Pe = he.get(ge);
952
+ if (Pe) {
953
+ Rn(d, I, Pe);
954
954
  return;
955
955
  }
956
- var Se = ce ? ce(te, ge, I + "", d, y, he) : void 0, St = Se === void 0;
956
+ var Ce = ue ? ue(te, ge, I + "", d, y, he) : void 0, St = Ce === void 0;
957
957
  if (St) {
958
958
  var Vn = Hn(ge), Wn = !Vn && si(ge), di = !Vn && !Wn && ci(ge);
959
- Se = ge, Vn || Wn || di ? Hn(te) ? Se = te : Kl(te) ? Se = Fl(te) : Wn ? (St = !1, Se = zl(ge, !0)) : di ? (St = !1, Se = _l(ge, !0)) : Se = [] : Jl(ge) || Yn(ge) ? (Se = te, Yn(te) ? Se = es(te) : (!ct(te) || qn(te)) && (Se = Ql(ge))) : St = !1;
959
+ Ce = ge, Vn || Wn || di ? Hn(te) ? Ce = te : Kl(te) ? Ce = Fl(te) : Wn ? (St = !1, Ce = zl(ge, !0)) : di ? (St = !1, Ce = _l(ge, !0)) : Ce = [] : Jl(ge) || Yn(ge) ? (Ce = te, Yn(te) ? Ce = es(te) : (!ct(te) || qn(te)) && (Ce = Ql(ge))) : St = !1;
960
960
  }
961
- St && (he.set(ge, Se), re(Se, ge, R, ce, he), he.delete(ge)), Rn(d, I, Se);
961
+ St && (he.set(ge, Ce), re(Ce, ge, R, ue, he), he.delete(ge)), Rn(d, I, Ce);
962
962
  }
963
963
  function Sl(d, y) {
964
964
  return Gl(Wl(d, y, fi), d + "");
965
965
  }
966
- var Ol = pe ? function(d, y) {
967
- return pe(d, "toString", {
966
+ var Ol = ce ? function(d, y) {
967
+ return ce(d, "toString", {
968
968
  configurable: !0,
969
969
  enumerable: !1,
970
970
  value: ns(y),
@@ -994,27 +994,27 @@ dn.exports;
994
994
  function Pl(d, y, I, R) {
995
995
  var re = !I;
996
996
  I || (I = {});
997
- for (var ce = -1, he = y.length; ++ce < he; ) {
998
- var te = y[ce], ge = R ? R(I[te], d[te], te, I, d) : void 0;
997
+ for (var ue = -1, he = y.length; ++ue < he; ) {
998
+ var te = y[ue], ge = R ? R(I[te], d[te], te, I, d) : void 0;
999
999
  ge === void 0 && (ge = d[te]), re ? Un(I, te, ge) : Nl(I, te, ge);
1000
1000
  }
1001
1001
  return I;
1002
1002
  }
1003
1003
  function Rl(d) {
1004
1004
  return Sl(function(y, I) {
1005
- var R = -1, re = I.length, ce = re > 1 ? I[re - 1] : void 0, he = re > 2 ? I[2] : void 0;
1006
- for (ce = d.length > 3 && typeof ce == "function" ? (re--, ce) : void 0, he && Yl(I[0], I[1], he) && (ce = re < 3 ? void 0 : ce, re = 1), y = Object(y); ++R < re; ) {
1005
+ var R = -1, re = I.length, ue = re > 1 ? I[re - 1] : void 0, he = re > 2 ? I[2] : void 0;
1006
+ for (ue = d.length > 3 && typeof ue == "function" ? (re--, ue) : void 0, he && Yl(I[0], I[1], he) && (ue = re < 3 ? void 0 : ue, re = 1), y = Object(y); ++R < re; ) {
1007
1007
  var te = I[R];
1008
- te && d(y, te, R, ce);
1008
+ te && d(y, te, R, ue);
1009
1009
  }
1010
1010
  return y;
1011
1011
  });
1012
1012
  }
1013
1013
  function Ul(d) {
1014
1014
  return function(y, I, R) {
1015
- for (var re = -1, ce = Object(y), he = R(y), te = he.length; te--; ) {
1015
+ for (var re = -1, ue = Object(y), he = R(y), te = he.length; te--; ) {
1016
1016
  var ge = he[d ? te : ++re];
1017
- if (I(ce[ge], ge, ce) === !1)
1017
+ if (I(ue[ge], ge, ue) === !1)
1018
1018
  break;
1019
1019
  }
1020
1020
  return y;
@@ -1029,17 +1029,17 @@ dn.exports;
1029
1029
  return jl(I) ? I : void 0;
1030
1030
  }
1031
1031
  function Bl(d) {
1032
- var y = W.call(d, Ae), I = d[Ae];
1032
+ var y = W.call(d, Ee), I = d[Ee];
1033
1033
  try {
1034
- d[Ae] = void 0;
1034
+ d[Ee] = void 0;
1035
1035
  var R = !0;
1036
1036
  } catch {
1037
1037
  }
1038
1038
  var re = se.call(d);
1039
- return R && (y ? d[Ae] = I : delete d[Ae]), re;
1039
+ return R && (y ? d[Ee] = I : delete d[Ee]), re;
1040
1040
  }
1041
1041
  function Ql(d) {
1042
- return typeof d.constructor == "function" && !li(d) ? il(ue(d)) : {};
1042
+ return typeof d.constructor == "function" && !li(d) ? il(de(d)) : {};
1043
1043
  }
1044
1044
  function ai(d, y) {
1045
1045
  var I = typeof d;
@@ -1073,8 +1073,8 @@ dn.exports;
1073
1073
  return se.call(d);
1074
1074
  }
1075
1075
  function Wl(d, y, I) {
1076
- return y = Re(y === void 0 ? d.length - 1 : y, 0), function() {
1077
- for (var R = arguments, re = -1, ce = Re(R.length - y, 0), he = Array(ce); ++re < ce; )
1076
+ return y = Fe(y === void 0 ? d.length - 1 : y, 0), function() {
1077
+ for (var R = arguments, re = -1, ue = Fe(R.length - y, 0), he = Array(ue); ++re < ue; )
1078
1078
  he[re] = R[y + re];
1079
1079
  re = -1;
1080
1080
  for (var te = Array(y + 1); ++re < y; )
@@ -1118,7 +1118,7 @@ dn.exports;
1118
1118
  var Yn = ii(function() {
1119
1119
  return arguments;
1120
1120
  }()) ? ii : function(d) {
1121
- return At(d) && W.call(d, "callee") && !De.call(d, "callee");
1121
+ return At(d) && W.call(d, "callee") && !He.call(d, "callee");
1122
1122
  }, Hn = Array.isArray;
1123
1123
  function $n(d) {
1124
1124
  return d != null && ui(d.length) && !qn(d);
@@ -1146,11 +1146,11 @@ dn.exports;
1146
1146
  function Jl(d) {
1147
1147
  if (!At(d) || Xt(d) != z)
1148
1148
  return !1;
1149
- var y = ue(d);
1149
+ var y = de(d);
1150
1150
  if (y === null)
1151
1151
  return !0;
1152
1152
  var I = W.call(y, "constructor") && y.constructor;
1153
- return typeof I == "function" && I instanceof I && F.call(I) == Ie;
1153
+ return typeof I == "function" && I instanceof I && F.call(I) == Te;
1154
1154
  }
1155
1155
  var ci = lt ? kt(lt) : El;
1156
1156
  function es(d) {
@@ -1309,7 +1309,7 @@ const Oo = /* @__PURE__ */ it(Ds), Is = {
1309
1309
  () => js(n, t),
1310
1310
  [t, n]
1311
1311
  );
1312
- return /* @__PURE__ */ v.jsx(zo.Provider, { value: { ...r }, children: e });
1312
+ return /* @__PURE__ */ T.jsx(zo.Provider, { value: { ...r }, children: e });
1313
1313
  };
1314
1314
  Lo.propTypes = {
1315
1315
  children: B.element.isRequired,
@@ -1388,7 +1388,7 @@ Lo.propTypes = {
1388
1388
  }).isRequired
1389
1389
  })
1390
1390
  };
1391
- const _e = zo;
1391
+ const ze = zo;
1392
1392
  var _o = { exports: {} };
1393
1393
  /*!
1394
1394
  Copyright (c) 2018 Jed Watson.
@@ -1446,7 +1446,7 @@ function wn({
1446
1446
  ...o
1447
1447
  }) {
1448
1448
  const a = ot();
1449
- return /* @__PURE__ */ v.jsx(
1449
+ return /* @__PURE__ */ T.jsx(
1450
1450
  "button",
1451
1451
  {
1452
1452
  id: "xpert_chatbot__floating-action-btn",
@@ -1487,8 +1487,8 @@ const Ot = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
1487
1487
  "degrees-moodle-support": Ot
1488
1488
  }, jr = ({ handleFloatingActionButtonClick: e }) => {
1489
1489
  var i, o;
1490
- const { xpertKey: t, launchButton: n } = Le(_e), r = ot();
1491
- return /* @__PURE__ */ v.jsx(
1490
+ const { xpertKey: t, launchButton: n } = Oe(ze), r = ot();
1491
+ return /* @__PURE__ */ T.jsx(
1492
1492
  wn,
1493
1493
  {
1494
1494
  onClick: e,
@@ -1497,7 +1497,7 @@ const Ot = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
1497
1497
  "aria-haspopup": "dialog",
1498
1498
  "aria-expanded": open,
1499
1499
  className: "xpert-chatbot-button",
1500
- children: /* @__PURE__ */ v.jsx(
1500
+ children: /* @__PURE__ */ T.jsx(
1501
1501
  "img",
1502
1502
  {
1503
1503
  "data-ot-ignore": "",
@@ -1523,7 +1523,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1523
1523
  handleFloatingActionButtonClick: e
1524
1524
  }) => {
1525
1525
  var m, p, D, x, k, b, z;
1526
- const { xpertKey: t, launchButton: n } = Le(_e), r = !Ee.get(
1526
+ const { xpertKey: t, launchButton: n } = Oe(ze), r = !ke.get(
1527
1527
  `${t}-proactive-message-xpert-chatbot`
1528
1528
  ), i = We(null), o = We(!1), a = r ? (m = n.animatedGraduate) == null ? void 0 : m.delayMs : ((p = n.animatedGraduate) == null ? void 0 : p.delayMs) * 2, [l, s] = ye(!1), u = ot();
1529
1529
  Me(() => {
@@ -1559,7 +1559,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1559
1559
  }, f = () => {
1560
1560
  o.current = !1;
1561
1561
  };
1562
- return /* @__PURE__ */ v.jsxs(
1562
+ return /* @__PURE__ */ T.jsxs(
1563
1563
  "div",
1564
1564
  {
1565
1565
  role: "region",
@@ -1568,8 +1568,8 @@ eyes follow your mouse when you hover near it.`, Er = ({
1568
1568
  onMouseEnter: c,
1569
1569
  onMouseLeave: f,
1570
1570
  children: [
1571
- /* @__PURE__ */ v.jsx("div", { className: "xpert_chatbot__a11y-sr-only", children: zs }),
1572
- /* @__PURE__ */ v.jsx(
1571
+ /* @__PURE__ */ T.jsx("div", { className: "xpert_chatbot__a11y-sr-only", children: zs }),
1572
+ /* @__PURE__ */ T.jsx(
1573
1573
  wn,
1574
1574
  {
1575
1575
  onClick: e,
@@ -1578,7 +1578,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1578
1578
  style: u ? { ...(x = (D = n.style) == null ? void 0 : D.mobile) == null ? void 0 : x.animatedGraduateExperiment } : { ...(k = n.style) == null ? void 0 : k.animatedGraduateExperiment },
1579
1579
  "aria-haspopup": "dialog",
1580
1580
  "aria-expanded": open,
1581
- children: /* @__PURE__ */ v.jsx("div", { ref: i, children: /* @__PURE__ */ v.jsxs(
1581
+ children: /* @__PURE__ */ T.jsx("div", { ref: i, children: /* @__PURE__ */ T.jsxs(
1582
1582
  "svg",
1583
1583
  {
1584
1584
  style: {
@@ -1589,7 +1589,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1589
1589
  xmlns: "http://www.w3.org/2000/svg",
1590
1590
  className: "xpert_chatbot__animated_graduate",
1591
1591
  children: [
1592
- /* @__PURE__ */ v.jsx(
1592
+ /* @__PURE__ */ T.jsx(
1593
1593
  "path",
1594
1594
  {
1595
1595
  d: "M28.7098 11.9636C29.3493 11.5582 30.1637 11.5523 30.8091 11.9482L57.7788 28.4938C59.0325 29.2629 59.0425 31.081 57.7974 31.8639L29.379 49.733C28.6963 50.1623 27.8215 50.1355 27.1663 49.6652L2.38715 31.8772C1.24528 31.0575 1.29468 29.343 2.48186 28.5904L28.7098 11.9636Z",
@@ -1597,7 +1597,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1597
1597
  className: "xpert_chatbot__animated_graduate__cap"
1598
1598
  }
1599
1599
  ),
1600
- /* @__PURE__ */ v.jsx(
1600
+ /* @__PURE__ */ T.jsx(
1601
1601
  "path",
1602
1602
  {
1603
1603
  fillRule: "evenodd",
@@ -1607,7 +1607,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1607
1607
  className: "xpert_chatbot__animated_graduate__face"
1608
1608
  }
1609
1609
  ),
1610
- /* @__PURE__ */ v.jsx(
1610
+ /* @__PURE__ */ T.jsx(
1611
1611
  "circle",
1612
1612
  {
1613
1613
  className: `xpert_chatbot__animated_graduate__eyeball ${l ? "xpert_chatbot__animated_graduate__eyeball_blink" : ""}`,
@@ -1617,7 +1617,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1617
1617
  fill: "white"
1618
1618
  }
1619
1619
  ),
1620
- /* @__PURE__ */ v.jsx(
1620
+ /* @__PURE__ */ T.jsx(
1621
1621
  "mask",
1622
1622
  {
1623
1623
  id: "mask0_2271_69",
@@ -1626,10 +1626,10 @@ eyes follow your mouse when you hover near it.`, Er = ({
1626
1626
  y: "37",
1627
1627
  width: "15",
1628
1628
  height: "14",
1629
- children: /* @__PURE__ */ v.jsx("circle", { cx: "34.7137", cy: "44.0494", r: "6.94275", fill: "white" })
1629
+ children: /* @__PURE__ */ T.jsx("circle", { cx: "34.7137", cy: "44.0494", r: "6.94275", fill: "white" })
1630
1630
  }
1631
1631
  ),
1632
- /* @__PURE__ */ v.jsx("g", { mask: "url(#mask0_2271_69)", children: /* @__PURE__ */ v.jsx(
1632
+ /* @__PURE__ */ T.jsx("g", { mask: "url(#mask0_2271_69)", children: /* @__PURE__ */ T.jsx(
1633
1633
  "circle",
1634
1634
  {
1635
1635
  role: "img",
@@ -1641,7 +1641,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1641
1641
  fill: "black"
1642
1642
  }
1643
1643
  ) }),
1644
- /* @__PURE__ */ v.jsx(
1644
+ /* @__PURE__ */ T.jsx(
1645
1645
  "circle",
1646
1646
  {
1647
1647
  className: `xpert_chatbot__animated_graduate__eyeball ${l ? "xpert_chatbot__animated_graduate__eyeball_blink" : ""}`,
@@ -1651,7 +1651,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1651
1651
  fill: "white"
1652
1652
  }
1653
1653
  ),
1654
- /* @__PURE__ */ v.jsx(
1654
+ /* @__PURE__ */ T.jsx(
1655
1655
  "mask",
1656
1656
  {
1657
1657
  id: "mask1_2271_69",
@@ -1660,10 +1660,10 @@ eyes follow your mouse when you hover near it.`, Er = ({
1660
1660
  y: "37",
1661
1661
  width: "15",
1662
1662
  height: "14",
1663
- children: /* @__PURE__ */ v.jsx("circle", { cx: "18.8446", cy: "44.0494", r: "6.94275", fill: "white" })
1663
+ children: /* @__PURE__ */ T.jsx("circle", { cx: "18.8446", cy: "44.0494", r: "6.94275", fill: "white" })
1664
1664
  }
1665
1665
  ),
1666
- /* @__PURE__ */ v.jsx("g", { mask: "url(#mask1_2271_69)", children: /* @__PURE__ */ v.jsx(
1666
+ /* @__PURE__ */ T.jsx("g", { mask: "url(#mask1_2271_69)", children: /* @__PURE__ */ T.jsx(
1667
1667
  "circle",
1668
1668
  {
1669
1669
  role: "img",
@@ -1675,7 +1675,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1675
1675
  fill: "black"
1676
1676
  }
1677
1677
  ) }),
1678
- /* @__PURE__ */ v.jsx(
1678
+ /* @__PURE__ */ T.jsx(
1679
1679
  "circle",
1680
1680
  {
1681
1681
  className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
@@ -1685,7 +1685,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1685
1685
  fill: "#5DE3C0"
1686
1686
  }
1687
1687
  ),
1688
- /* @__PURE__ */ v.jsx(
1688
+ /* @__PURE__ */ T.jsx(
1689
1689
  "circle",
1690
1690
  {
1691
1691
  className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
@@ -1695,7 +1695,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1695
1695
  fill: "#5DE3C0"
1696
1696
  }
1697
1697
  ),
1698
- /* @__PURE__ */ v.jsx(
1698
+ /* @__PURE__ */ T.jsx(
1699
1699
  "circle",
1700
1700
  {
1701
1701
  className: `xpert_chatbot__animated_graduate__mouth ${l ? "xpert_chatbot__animated_graduate__mouth_move" : ""}`,
@@ -1705,7 +1705,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
1705
1705
  fill: "#5DE3C0"
1706
1706
  }
1707
1707
  ),
1708
- /* @__PURE__ */ v.jsx(
1708
+ /* @__PURE__ */ T.jsx(
1709
1709
  "path",
1710
1710
  {
1711
1711
  className: "xpert_chatbot__animated_graduate__cap_tassel",
@@ -1731,8 +1731,8 @@ Er.defaultProps = {
1731
1731
  const Ls = Er;
1732
1732
  const _s = () => {
1733
1733
  var n;
1734
- const e = ot(), { launchButton: t } = Le(_e);
1735
- return (n = t.message) != null && n.enabled ? /* @__PURE__ */ v.jsx(
1734
+ const e = ot(), { launchButton: t } = Oe(ze);
1735
+ return (n = t.message) != null && n.enabled ? /* @__PURE__ */ T.jsx(
1736
1736
  "div",
1737
1737
  {
1738
1738
  role: "alert",
@@ -2201,8 +2201,8 @@ var xi = {
2201
2201
  $ ? G = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : G = a.tabbableGroups[0].firstTabbableNode;
2202
2202
  else if ($) {
2203
2203
  var h = vi(a.tabbableGroups, function(ae) {
2204
- var ke = ae.firstTabbableNode;
2205
- return j === ke;
2204
+ var Ie = ae.firstTabbableNode;
2205
+ return j === Ie;
2206
2206
  });
2207
2207
  if (h < 0 && (ie.container === j || sn(j, o.tabbableOptions) && !pt(j, o.tabbableOptions) && !ie.nextTabbableNode(j, !1)) && (h = Z), h >= 0) {
2208
2208
  var ne = h === 0 ? a.tabbableGroups.length - 1 : h - 1, we = a.tabbableGroups[ne];
@@ -2211,12 +2211,12 @@ var xi = {
2211
2211
  Rt(O) || (G = ie.nextTabbableNode(j, !1));
2212
2212
  } else {
2213
2213
  var g = vi(a.tabbableGroups, function(ae) {
2214
- var ke = ae.lastTabbableNode;
2215
- return j === ke;
2214
+ var Ie = ae.lastTabbableNode;
2215
+ return j === Ie;
2216
2216
  });
2217
2217
  if (g < 0 && (ie.container === j || sn(j, o.tabbableOptions) && !pt(j, o.tabbableOptions) && !ie.nextTabbableNode(j)) && (g = Z), g >= 0) {
2218
- var me = g === a.tabbableGroups.length - 1 ? 0 : g + 1, Ne = a.tabbableGroups[me];
2219
- G = tt(j) >= 0 ? Ne.firstTabbableNode : Ne.firstDomTabbableNode;
2218
+ var me = g === a.tabbableGroups.length - 1 ? 0 : g + 1, De = a.tabbableGroups[me];
2219
+ G = tt(j) >= 0 ? De.firstTabbableNode : De.firstDomTabbableNode;
2220
2220
  } else
2221
2221
  Rt(O) || (G = ie.nextTabbableNode(j));
2222
2222
  }
@@ -2727,7 +2727,7 @@ function Ar({
2727
2727
  isMounted: i
2728
2728
  }) {
2729
2729
  const o = ot(), a = We(null);
2730
- return /* @__PURE__ */ v.jsx(
2730
+ return /* @__PURE__ */ T.jsx(
2731
2731
  Iu,
2732
2732
  {
2733
2733
  focusTrapOptions: {
@@ -2736,7 +2736,7 @@ function Ar({
2736
2736
  displayCheck: void 0
2737
2737
  }
2738
2738
  },
2739
- children: /* @__PURE__ */ v.jsx(
2739
+ children: /* @__PURE__ */ T.jsx(
2740
2740
  "div",
2741
2741
  {
2742
2742
  ref: a,
@@ -4045,7 +4045,7 @@ Io((e, t) => ca({
4045
4045
  }));
4046
4046
  const Ac = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0xMjAtMTIwdi0zMDBoNjB2MTk4bDU1OC01NThINTQwdi02MGgzMDB2MzAwaC02MHYtMTk4TDIyMi0xODBoMTk4djYwSDEyMFoiLz48L3N2Zz4=", Sc = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0zNzAtMjg3aDM2MHYtOTBIMzcwdjkwWk0xODAtMTIwcS0yNCAwLTQyLTE4dC0xOC00MnYtNjAwcTAtMjQgMTgtNDJ0NDItMThoNjAwcTI0IDAgNDIgMTh0MTggNDJ2NjAwcTAgMjQtMTggNDJ0LTQyIDE4SDE4MFptMC02MGg2MDB2LTYwMEgxODB2NjAwWm0wLTYwMHY2MDAtNjAwWiIvPjwvc3ZnPg==";
4047
4047
  function pa({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
4048
- return ot() ? null : e ? /* @__PURE__ */ v.jsx(
4048
+ return ot() ? null : e ? /* @__PURE__ */ T.jsx(
4049
4049
  "button",
4050
4050
  {
4051
4051
  onClick: () => {
@@ -4060,7 +4060,7 @@ function pa({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
4060
4060
  },
4061
4061
  className: "xpert-chatbot-popup__header--btn-outline",
4062
4062
  "aria-expanded": !e,
4063
- children: /* @__PURE__ */ v.jsx(
4063
+ children: /* @__PURE__ */ T.jsx(
4064
4064
  "img",
4065
4065
  {
4066
4066
  "aria-hidden": !0,
@@ -4071,7 +4071,7 @@ function pa({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
4071
4071
  }
4072
4072
  )
4073
4073
  }
4074
- ) : /* @__PURE__ */ v.jsx(
4074
+ ) : /* @__PURE__ */ T.jsx(
4075
4075
  "button",
4076
4076
  {
4077
4077
  onClick: () => {
@@ -4085,7 +4085,7 @@ function pa({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
4085
4085
  cursor: "pointer"
4086
4086
  },
4087
4087
  "aria-expanded": !e,
4088
- children: /* @__PURE__ */ v.jsx(
4088
+ children: /* @__PURE__ */ T.jsx(
4089
4089
  "img",
4090
4090
  {
4091
4091
  "aria-hidden": !0,
@@ -4110,8 +4110,8 @@ function fa({
4110
4110
  onClose: r,
4111
4111
  isMounted: i
4112
4112
  }) {
4113
- return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
4114
- /* @__PURE__ */ v.jsx(
4113
+ return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
4114
+ /* @__PURE__ */ T.jsx(
4115
4115
  "div",
4116
4116
  {
4117
4117
  style: {
@@ -4122,7 +4122,7 @@ function fa({
4122
4122
  paddingTop: "1.25rem",
4123
4123
  paddingBottom: "1.25rem"
4124
4124
  },
4125
- children: /* @__PURE__ */ v.jsx(
4125
+ children: /* @__PURE__ */ T.jsx(
4126
4126
  pa,
4127
4127
  {
4128
4128
  isMounted: i,
@@ -4133,7 +4133,7 @@ function fa({
4133
4133
  )
4134
4134
  }
4135
4135
  ),
4136
- /* @__PURE__ */ v.jsx(
4136
+ /* @__PURE__ */ T.jsx(
4137
4137
  "button",
4138
4138
  {
4139
4139
  style: {
@@ -4148,7 +4148,7 @@ function fa({
4148
4148
  onClick: r,
4149
4149
  "aria-label": "Close Xpert dialog",
4150
4150
  type: "button",
4151
- children: /* @__PURE__ */ v.jsx(
4151
+ children: /* @__PURE__ */ T.jsx(
4152
4152
  rt,
4153
4153
  {
4154
4154
  icon: "material-symbols:close",
@@ -4167,7 +4167,7 @@ fa.propTypes = {
4167
4167
  onClose: N.func.isRequired,
4168
4168
  isMounted: N.bool.isRequired
4169
4169
  };
4170
- const Rr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ v.jsxs(
4170
+ const Rr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ T.jsxs(
4171
4171
  "svg",
4172
4172
  {
4173
4173
  role: "banner",
@@ -4177,8 +4177,8 @@ const Rr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ v.jsxs(
4177
4177
  fill: "#none",
4178
4178
  xmlns: "http://www.w3.org/2000/svg",
4179
4179
  children: [
4180
- /* @__PURE__ */ v.jsx("path", { d: "M0 5 L0 20 L70 20 L70 5 Z", fill: t }),
4181
- /* @__PURE__ */ v.jsx(
4180
+ /* @__PURE__ */ T.jsx("path", { d: "M0 5 L0 20 L70 20 L70 5 Z", fill: t }),
4181
+ /* @__PURE__ */ T.jsx(
4182
4182
  "path",
4183
4183
  {
4184
4184
  fill: e,
@@ -4187,7 +4187,7 @@ const Rr = ({ backgroundColor: e, textColor: t }) => /* @__PURE__ */ v.jsxs(
4187
4187
  d: "M77 0H0V22H71.5L77 0ZM24.5938 10.2472L23.3324 7.27273H21.2997L23.2642 11.6364L19.7997 16H21.9517L24.2358 13.0213H24.304L25.5994 16H27.6832L25.6932 11.6364L29.0724 7.27273H26.929L24.6619 10.2472H24.5938ZM33.6832 7.27273H30.2401L28.7912 16H30.6364L31.1091 13.1705H32.6562C33.3295 13.1705 33.9233 13.0469 34.4375 12.7997C34.9517 12.5526 35.3693 12.2088 35.6903 11.7685C36.0142 11.3253 36.2244 10.8125 36.321 10.2301C36.4148 9.65057 36.375 9.1392 36.2017 8.69602C36.0312 8.25 35.733 7.90199 35.3068 7.65199C34.8835 7.39915 34.3423 7.27273 33.6832 7.27273ZM31.3561 11.6918H32.6009C32.9588 11.6918 33.2642 11.6307 33.517 11.5085C33.7727 11.3835 33.9759 11.2116 34.1264 10.9929C34.277 10.7713 34.375 10.517 34.4205 10.2301C34.4688 9.9375 34.4531 9.68324 34.3736 9.46733C34.294 9.25142 34.1477 9.08381 33.9347 8.96449C33.7244 8.84233 33.4418 8.78125 33.0866 8.78125H31.8423L31.3561 11.6918ZM43.8903 7.27273H38.0096L36.5607 16H42.4585L42.7141 14.4787H38.6616L39.0025 12.3949H42.7354L42.9911 10.8736H39.2582L39.5991 8.79403H43.6346L43.8903 7.27273ZM48.8004 7.27273H45.3572L43.9084 16H45.7536L46.2704 12.9062H47.6117L48.7536 16H50.7905L49.4991 12.6097C49.5278 12.5981 49.5563 12.5862 49.5845 12.5739C50.0959 12.3494 50.5107 12.0298 50.8288 11.6151C51.1499 11.2003 51.3587 10.7031 51.4553 10.1236C51.549 9.54403 51.5078 9.04119 51.3317 8.61506C51.1584 8.18608 50.8572 7.85511 50.4283 7.62216C50.0021 7.3892 49.4595 7.27273 48.8004 7.27273ZM46.5181 11.4233H47.7692C48.1214 11.4233 48.4226 11.375 48.6726 11.2784C48.9226 11.1818 49.12 11.0369 49.2649 10.8438C49.4126 10.6506 49.5092 10.4105 49.5547 10.1236C49.603 9.83097 49.5859 9.58665 49.5036 9.39062C49.4212 9.19176 49.272 9.04119 49.0561 8.93892C48.8402 8.83381 48.5561 8.78125 48.2038 8.78125H46.9595L46.5181 11.4233ZM52.9702 7.27273L52.7145 8.79403H55.3864L54.1932 16H56.017L57.2102 8.79403H59.8821L60.1378 7.27273H52.9702Z"
4188
4188
  }
4189
4189
  ),
4190
- /* @__PURE__ */ v.jsx("path", {})
4190
+ /* @__PURE__ */ T.jsx("path", {})
4191
4191
  ]
4192
4192
  }
4193
4193
  );
@@ -4208,8 +4208,8 @@ function da({
4208
4208
  onClose: i
4209
4209
  }) {
4210
4210
  var s, u, c, f, m, p, D, x, k;
4211
- const { primaryColor: o, conversationScreen: a } = Le(_e), l = ot();
4212
- return /* @__PURE__ */ v.jsxs(
4211
+ const { primaryColor: o, conversationScreen: a } = Oe(ze), l = ot();
4212
+ return /* @__PURE__ */ T.jsxs(
4213
4213
  "div",
4214
4214
  {
4215
4215
  "data-testid": "xpert-conversations-header",
@@ -4221,7 +4221,7 @@ function da({
4221
4221
  ...(s = a.header.container) == null ? void 0 : s.style
4222
4222
  },
4223
4223
  children: [
4224
- /* @__PURE__ */ v.jsx(
4224
+ /* @__PURE__ */ T.jsx(
4225
4225
  "span",
4226
4226
  {
4227
4227
  className: "xpert-chatbot-popup__header_container",
@@ -4231,7 +4231,7 @@ function da({
4231
4231
  }
4232
4232
  }
4233
4233
  ),
4234
- ((m = (f = a == null ? void 0 : a.header) == null ? void 0 : f.logo) == null ? void 0 : m.type) === "edx" ? /* @__PURE__ */ v.jsx(
4234
+ ((m = (f = a == null ? void 0 : a.header) == null ? void 0 : f.logo) == null ? void 0 : m.type) === "edx" ? /* @__PURE__ */ T.jsx(
4235
4235
  "img",
4236
4236
  {
4237
4237
  "data-ot-ignore": "",
@@ -4241,14 +4241,14 @@ function da({
4241
4241
  "aria-hidden": !0,
4242
4242
  style: a.header.logo.style
4243
4243
  }
4244
- ) : /* @__PURE__ */ v.jsx(
4244
+ ) : /* @__PURE__ */ T.jsx(
4245
4245
  Oc,
4246
4246
  {
4247
4247
  backgroundColor: (p = a.header.logo.style) == null ? void 0 : p.backgroundColor,
4248
4248
  textColor: (D = a.header.logo.style) == null ? void 0 : D.color
4249
4249
  }
4250
4250
  ),
4251
- /* @__PURE__ */ v.jsx(
4251
+ /* @__PURE__ */ T.jsx(
4252
4252
  fa,
4253
4253
  {
4254
4254
  isMounted: n,
@@ -4258,7 +4258,7 @@ function da({
4258
4258
  onClose: i
4259
4259
  }
4260
4260
  ),
4261
- /* @__PURE__ */ v.jsx(
4261
+ /* @__PURE__ */ T.jsx(
4262
4262
  "span",
4263
4263
  {
4264
4264
  className: "xpert-chatbot-popup__header_container",
@@ -4317,7 +4317,7 @@ function Pi(e) {
4317
4317
  function Ri(e) {
4318
4318
  return e && typeof e == "number" ? e : 1;
4319
4319
  }
4320
- class Qe extends Error {
4320
+ class Ue extends Error {
4321
4321
  /**
4322
4322
  * Create a message for `reason` at `place` from `origin`.
4323
4323
  *
@@ -4351,17 +4351,17 @@ class Qe extends Error {
4351
4351
  n && ("type" in n || "position" in n ? n.position && (o = n.position) : "start" in n || "end" in n ? o = n : ("line" in n || "column" in n) && (o.start = n)), this.name = Qt(n) || "1:1", this.message = typeof t == "object" ? t.message : t, this.stack = "", typeof t == "object" && t.stack && (this.stack = t.stack), this.reason = this.message, this.fatal, this.line = o.start.line, this.column = o.start.column, this.position = o, this.source = i[0], this.ruleId = i[1], this.file, this.actual, this.expected, this.url, this.note;
4352
4352
  }
4353
4353
  }
4354
- Qe.prototype.file = "";
4355
- Qe.prototype.name = "";
4356
- Qe.prototype.reason = "";
4357
- Qe.prototype.message = "";
4358
- Qe.prototype.stack = "";
4359
- Qe.prototype.fatal = null;
4360
- Qe.prototype.column = null;
4361
- Qe.prototype.line = null;
4362
- Qe.prototype.source = null;
4363
- Qe.prototype.ruleId = null;
4364
- Qe.prototype.position = null;
4354
+ Ue.prototype.file = "";
4355
+ Ue.prototype.name = "";
4356
+ Ue.prototype.reason = "";
4357
+ Ue.prototype.message = "";
4358
+ Ue.prototype.stack = "";
4359
+ Ue.prototype.fatal = null;
4360
+ Ue.prototype.column = null;
4361
+ Ue.prototype.line = null;
4362
+ Ue.prototype.source = null;
4363
+ Ue.prototype.ruleId = null;
4364
+ Ue.prototype.position = null;
4365
4365
  const qe = { basename: _c, dirname: Fc, extname: Pc, join: Rc, sep: "/" };
4366
4366
  function _c(e, t) {
4367
4367
  if (t !== void 0 && typeof t != "string")
@@ -4673,7 +4673,7 @@ class ga {
4673
4673
  * Message.
4674
4674
  */
4675
4675
  message(t, n, r) {
4676
- const i = new Qe(t, n, r);
4676
+ const i = new Ue(t, n, r);
4677
4677
  return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
4678
4678
  }
4679
4679
  /**
@@ -5055,7 +5055,7 @@ function Ge(e, t, n, r) {
5055
5055
  for (n && e.splice(t, n); o < r.length; )
5056
5056
  a = r.slice(o, o + 1e4), a.unshift(t, 0), e.splice(...a), o += 1e4, t += 1e4;
5057
5057
  }
5058
- function Be(e, t) {
5058
+ function Re(e, t) {
5059
5059
  return e.length > 0 ? (Ge(e, e.length, 0, t), e) : t;
5060
5060
  }
5061
5061
  const Ji = {}.hasOwnProperty;
@@ -5090,7 +5090,7 @@ function op(e, t) {
5090
5090
  (t[n].add === "after" ? e : r).push(t[n]);
5091
5091
  Ge(e, 0, 0, r);
5092
5092
  }
5093
- const ap = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Ve = at(/[A-Za-z]/), ze = at(/[\dA-Za-z]/), lp = at(/[#-'*+\--9=?A-Z^-~]/);
5093
+ const ap = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Ve = at(/[A-Za-z]/), Se = at(/[\dA-Za-z]/), lp = at(/[#-'*+\--9=?A-Z^-~]/);
5094
5094
  function vr(e) {
5095
5095
  return (
5096
5096
  // Special whitespace codes (which have negative values), C0 and Control
@@ -5102,7 +5102,7 @@ const Tr = at(/\d/), sp = at(/[\dA-Fa-f]/), up = at(/[!-/:-@[-`{-~]/);
5102
5102
  function V(e) {
5103
5103
  return e !== null && e < -2;
5104
5104
  }
5105
- function Ce(e) {
5105
+ function je(e) {
5106
5106
  return e !== null && (e < 0 || e === 32);
5107
5107
  }
5108
5108
  function oe(e) {
@@ -5115,7 +5115,7 @@ function at(e) {
5115
5115
  return n !== null && e.test(String.fromCharCode(n));
5116
5116
  }
5117
5117
  }
5118
- function de(e, t, n, r) {
5118
+ function fe(e, t, n, r) {
5119
5119
  const i = r ? r - 1 : Number.POSITIVE_INFINITY;
5120
5120
  let o = 0;
5121
5121
  return a;
@@ -5142,7 +5142,7 @@ function dp(e) {
5142
5142
  e.consume(l);
5143
5143
  return;
5144
5144
  }
5145
- return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), de(e, t, "linePrefix");
5145
+ return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), fe(e, t, "linePrefix");
5146
5146
  }
5147
5147
  function i(l) {
5148
5148
  return e.enter("paragraph"), o(l);
@@ -5298,7 +5298,7 @@ function gp(e) {
5298
5298
  }
5299
5299
  }
5300
5300
  function mp(e, t, n) {
5301
- return de(
5301
+ return fe(
5302
5302
  e,
5303
5303
  e.attempt(this.parser.constructs.document, t, n),
5304
5304
  "linePrefix",
@@ -5306,7 +5306,7 @@ function mp(e, t, n) {
5306
5306
  );
5307
5307
  }
5308
5308
  function to(e) {
5309
- if (e === null || Ce(e) || pp(e))
5309
+ if (e === null || je(e) || pp(e))
5310
5310
  return 1;
5311
5311
  if (cp(e))
5312
5312
  return 2;
@@ -5352,27 +5352,27 @@ function yp(e, t) {
5352
5352
  type: s > 1 ? "strong" : "emphasis",
5353
5353
  start: Object.assign({}, a.start),
5354
5354
  end: Object.assign({}, l.end)
5355
- }, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Be(u, [
5355
+ }, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Re(u, [
5356
5356
  ["enter", e[r][1], t],
5357
5357
  ["exit", e[r][1], t]
5358
- ])), u = Be(u, [
5358
+ ])), u = Re(u, [
5359
5359
  ["enter", i, t],
5360
5360
  ["enter", a, t],
5361
5361
  ["exit", a, t],
5362
5362
  ["enter", o, t]
5363
- ]), u = Be(
5363
+ ]), u = Re(
5364
5364
  u,
5365
5365
  Ur(
5366
5366
  t.parser.constructs.insideSpan.null,
5367
5367
  e.slice(r + 1, n),
5368
5368
  t
5369
5369
  )
5370
- ), u = Be(u, [
5370
+ ), u = Re(u, [
5371
5371
  ["exit", o, t],
5372
5372
  ["enter", l, t],
5373
5373
  ["exit", l, t],
5374
5374
  ["exit", i, t]
5375
- ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Be(u, [
5375
+ ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Re(u, [
5376
5376
  ["enter", e[n][1], t],
5377
5377
  ["exit", e[n][1], t]
5378
5378
  ])) : c = 0, Ge(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
@@ -5414,10 +5414,10 @@ function xp(e, t, n) {
5414
5414
  return Ve(p) ? (e.consume(p), a) : u(p);
5415
5415
  }
5416
5416
  function a(p) {
5417
- return p === 43 || p === 45 || p === 46 || ze(p) ? (r = 1, l(p)) : u(p);
5417
+ return p === 43 || p === 45 || p === 46 || Se(p) ? (r = 1, l(p)) : u(p);
5418
5418
  }
5419
5419
  function l(p) {
5420
- return p === 58 ? (e.consume(p), r = 0, s) : (p === 43 || p === 45 || p === 46 || ze(p)) && r++ < 32 ? (e.consume(p), l) : (r = 0, u(p));
5420
+ return p === 58 ? (e.consume(p), r = 0, s) : (p === 43 || p === 45 || p === 46 || Se(p)) && r++ < 32 ? (e.consume(p), l) : (r = 0, u(p));
5421
5421
  }
5422
5422
  function s(p) {
5423
5423
  return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : p === null || p === 32 || p === 60 || vr(p) ? n(p) : (e.consume(p), s);
@@ -5426,13 +5426,13 @@ function xp(e, t, n) {
5426
5426
  return p === 64 ? (e.consume(p), c) : lp(p) ? (e.consume(p), u) : n(p);
5427
5427
  }
5428
5428
  function c(p) {
5429
- return ze(p) ? f(p) : n(p);
5429
+ return Se(p) ? f(p) : n(p);
5430
5430
  }
5431
5431
  function f(p) {
5432
5432
  return p === 46 ? (e.consume(p), r = 0, c) : p === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : m(p);
5433
5433
  }
5434
5434
  function m(p) {
5435
- if ((p === 45 || ze(p)) && r++ < 63) {
5435
+ if ((p === 45 || Se(p)) && r++ < 63) {
5436
5436
  const D = p === 45 ? m : f;
5437
5437
  return e.consume(p), D;
5438
5438
  }
@@ -5446,7 +5446,7 @@ const Dn = {
5446
5446
  function wp(e, t, n) {
5447
5447
  return r;
5448
5448
  function r(o) {
5449
- return oe(o) ? de(e, i, "linePrefix")(o) : i(o);
5449
+ return oe(o) ? fe(e, i, "linePrefix")(o) : i(o);
5450
5450
  }
5451
5451
  function i(o) {
5452
5452
  return o === null || V(o) ? t(o) : n(o);
@@ -5480,7 +5480,7 @@ function Tp(e, t, n) {
5480
5480
  const r = this;
5481
5481
  return i;
5482
5482
  function i(a) {
5483
- return oe(a) ? de(
5483
+ return oe(a) ? fe(
5484
5484
  e,
5485
5485
  o,
5486
5486
  "linePrefix",
@@ -5526,7 +5526,7 @@ function Np(e, t, n) {
5526
5526
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), s;
5527
5527
  }
5528
5528
  function s(f) {
5529
- return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a = ze, c(f));
5529
+ return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a = Se, c(f));
5530
5530
  }
5531
5531
  function u(f) {
5532
5532
  return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, a = sp, c) : (e.enter("characterReferenceValue"), o = 7, a = Tr, c(f));
@@ -5534,7 +5534,7 @@ function Np(e, t, n) {
5534
5534
  function c(f) {
5535
5535
  if (f === 59 && i) {
5536
5536
  const m = e.exit("characterReferenceValue");
5537
- return a === ze && !Br(r.sliceSerialize(m)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5537
+ return a === Se && !Br(r.sliceSerialize(m)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5538
5538
  }
5539
5539
  return a(f) && i++ < o ? (e.consume(f), c) : n(f);
5540
5540
  }
@@ -5562,7 +5562,7 @@ function kp(e, t, n) {
5562
5562
  return o = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, l = M, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(M);
5563
5563
  }
5564
5564
  function c(M) {
5565
- return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), oe(M) ? de(e, f, "whitespace")(M) : f(M));
5565
+ return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), oe(M) ? fe(e, f, "whitespace")(M) : f(M));
5566
5566
  }
5567
5567
  function f(M) {
5568
5568
  return M === null || V(M) ? (e.exit("codeFencedFence"), r.interrupt ? t(M) : e.check(io, x, _)(M)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
@@ -5570,7 +5570,7 @@ function kp(e, t, n) {
5570
5570
  }), m(M));
5571
5571
  }
5572
5572
  function m(M) {
5573
- return M === null || V(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(M)) : oe(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), de(e, p, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), m);
5573
+ return M === null || V(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(M)) : oe(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), fe(e, p, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), m);
5574
5574
  }
5575
5575
  function p(M) {
5576
5576
  return M === null || V(M) ? f(M) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -5587,7 +5587,7 @@ function kp(e, t, n) {
5587
5587
  return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), b;
5588
5588
  }
5589
5589
  function b(M) {
5590
- return o > 0 && oe(M) ? de(
5590
+ return o > 0 && oe(M) ? fe(
5591
5591
  e,
5592
5592
  z,
5593
5593
  "linePrefix",
@@ -5610,7 +5610,7 @@ function kp(e, t, n) {
5610
5610
  return M.enter("lineEnding"), M.consume(P), M.exit("lineEnding"), S;
5611
5611
  }
5612
5612
  function S(P) {
5613
- return M.enter("codeFencedFence"), oe(P) ? de(
5613
+ return M.enter("codeFencedFence"), oe(P) ? fe(
5614
5614
  M,
5615
5615
  w,
5616
5616
  "linePrefix",
@@ -5621,7 +5621,7 @@ function kp(e, t, n) {
5621
5621
  return P === l ? (M.enter("codeFencedFenceSequence"), j(P)) : Y(P);
5622
5622
  }
5623
5623
  function j(P) {
5624
- return P === l ? (q++, M.consume(P), j) : q >= a ? (M.exit("codeFencedFenceSequence"), oe(P) ? de(M, O, "whitespace")(P) : O(P)) : Y(P);
5624
+ return P === l ? (q++, M.consume(P), j) : q >= a ? (M.exit("codeFencedFenceSequence"), oe(P) ? fe(M, O, "whitespace")(P) : O(P)) : Y(P);
5625
5625
  }
5626
5626
  function O(P) {
5627
5627
  return P === null || V(P) ? (M.exit("codeFencedFence"), L(P)) : Y(P);
@@ -5649,7 +5649,7 @@ function Cp(e, t, n) {
5649
5649
  const r = this;
5650
5650
  return i;
5651
5651
  function i(u) {
5652
- return e.enter("codeIndented"), de(e, o, "linePrefix", 4 + 1)(u);
5652
+ return e.enter("codeIndented"), fe(e, o, "linePrefix", 4 + 1)(u);
5653
5653
  }
5654
5654
  function o(u) {
5655
5655
  const c = r.events[r.events.length - 1];
@@ -5669,7 +5669,7 @@ function Ap(e, t, n) {
5669
5669
  const r = this;
5670
5670
  return i;
5671
5671
  function i(a) {
5672
- return r.parser.lazy[r.now().line] ? n(a) : V(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : de(e, o, "linePrefix", 4 + 1)(a);
5672
+ return r.parser.lazy[r.now().line] ? n(a) : V(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : fe(e, o, "linePrefix", 4 + 1)(a);
5673
5673
  }
5674
5674
  function o(a) {
5675
5675
  const l = r.events[r.events.length - 1];
@@ -5797,7 +5797,7 @@ function Bp(e, t, n) {
5797
5797
  const r = this;
5798
5798
  return i;
5799
5799
  function i(a) {
5800
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), de(e, o, "linePrefix");
5800
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), fe(e, o, "linePrefix");
5801
5801
  }
5802
5802
  function o(a) {
5803
5803
  if (a === null || V(a))
@@ -5827,7 +5827,7 @@ function Da(e, t, n, r, i, o, a, l, s) {
5827
5827
  return b === 60 || b === 62 || b === 92 ? (e.consume(b), p) : p(b);
5828
5828
  }
5829
5829
  function x(b) {
5830
- return !c && (b === null || b === 41 || Ce(b)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(b)) : c < u && b === 40 ? (e.consume(b), c++, x) : b === 41 ? (e.consume(b), c--, x) : b === null || b === 32 || b === 40 || vr(b) ? n(b) : (e.consume(b), b === 92 ? k : x);
5830
+ return !c && (b === null || b === 41 || je(b)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(b)) : c < u && b === 40 ? (e.consume(b), c++, x) : b === 41 ? (e.consume(b), c--, x) : b === null || b === 32 || b === 40 || vr(b) ? n(b) : (e.consume(b), b === 92 ? k : x);
5831
5831
  }
5832
5832
  function k(b) {
5833
5833
  return b === 40 || b === 41 || b === 92 ? (e.consume(b), x) : x(b);
@@ -5867,7 +5867,7 @@ function Na(e, t, n, r, i, o) {
5867
5867
  return m === a ? (e.enter(i), e.consume(m), e.exit(i), e.exit(r), t) : (e.enter(o), u(m));
5868
5868
  }
5869
5869
  function u(m) {
5870
- return m === a ? (e.exit(o), s(a)) : m === null ? n(m) : V(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), de(e, u, "linePrefix")) : (e.enter("chunkString", {
5870
+ return m === a ? (e.exit(o), s(a)) : m === null ? n(m) : V(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), fe(e, u, "linePrefix")) : (e.enter("chunkString", {
5871
5871
  contentType: "string"
5872
5872
  }), c(m));
5873
5873
  }
@@ -5882,7 +5882,7 @@ function Yt(e, t) {
5882
5882
  let n;
5883
5883
  return r;
5884
5884
  function r(i) {
5885
- return V(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : oe(i) ? de(
5885
+ return V(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : oe(i) ? fe(
5886
5886
  e,
5887
5887
  r,
5888
5888
  n ? "linePrefix" : "lineSuffix"
@@ -5924,7 +5924,7 @@ function Hp(e, t, n) {
5924
5924
  ), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), s) : n(p);
5925
5925
  }
5926
5926
  function s(p) {
5927
- return Ce(p) ? Yt(e, u)(p) : u(p);
5927
+ return je(p) ? Yt(e, u)(p) : u(p);
5928
5928
  }
5929
5929
  function u(p) {
5930
5930
  return Da(
@@ -5943,7 +5943,7 @@ function Hp(e, t, n) {
5943
5943
  return e.attempt(Yp, f, f)(p);
5944
5944
  }
5945
5945
  function f(p) {
5946
- return oe(p) ? de(e, m, "whitespace")(p) : m(p);
5946
+ return oe(p) ? fe(e, m, "whitespace")(p) : m(p);
5947
5947
  }
5948
5948
  function m(p) {
5949
5949
  return p === null || V(p) ? (e.exit("definition"), r.parser.defined.push(i), t(p)) : n(p);
@@ -5952,7 +5952,7 @@ function Hp(e, t, n) {
5952
5952
  function $p(e, t, n) {
5953
5953
  return r;
5954
5954
  function r(l) {
5955
- return Ce(l) ? Yt(e, i)(l) : n(l);
5955
+ return je(l) ? Yt(e, i)(l) : n(l);
5956
5956
  }
5957
5957
  function i(l) {
5958
5958
  return Na(
@@ -5965,7 +5965,7 @@ function $p(e, t, n) {
5965
5965
  )(l);
5966
5966
  }
5967
5967
  function o(l) {
5968
- return oe(l) ? de(e, a, "whitespace")(l) : a(l);
5968
+ return oe(l) ? fe(e, a, "whitespace")(l) : a(l);
5969
5969
  }
5970
5970
  function a(l) {
5971
5971
  return l === null || V(l) ? t(l) : n(l);
@@ -6017,16 +6017,16 @@ function Zp(e, t, n) {
6017
6017
  return e.enter("atxHeadingSequence"), a(c);
6018
6018
  }
6019
6019
  function a(c) {
6020
- return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || Ce(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
6020
+ return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || je(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
6021
6021
  }
6022
6022
  function l(c) {
6023
- return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || V(c) ? (e.exit("atxHeading"), t(c)) : oe(c) ? de(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
6023
+ return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || V(c) ? (e.exit("atxHeading"), t(c)) : oe(c) ? fe(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
6024
6024
  }
6025
6025
  function s(c) {
6026
6026
  return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
6027
6027
  }
6028
6028
  function u(c) {
6029
- return c === null || c === 35 || Ce(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
6029
+ return c === null || c === 35 || je(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
6030
6030
  }
6031
6031
  }
6032
6032
  const Xp = [
@@ -6137,11 +6137,11 @@ function nf(e, t, n) {
6137
6137
  return Ve(g) ? (e.consume(g), a = String.fromCharCode(g), k) : n(g);
6138
6138
  }
6139
6139
  function k(g) {
6140
- if (g === null || g === 47 || g === 62 || Ce(g)) {
6141
- const me = g === 47, Ne = a.toLowerCase();
6142
- return !me && !o && ao.includes(Ne) ? (i = 1, r.interrupt ? t(g) : w(g)) : Xp.includes(a.toLowerCase()) ? (i = 6, me ? (e.consume(g), b) : r.interrupt ? t(g) : w(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? z(g) : E(g));
6140
+ if (g === null || g === 47 || g === 62 || je(g)) {
6141
+ const me = g === 47, De = a.toLowerCase();
6142
+ return !me && !o && ao.includes(De) ? (i = 1, r.interrupt ? t(g) : w(g)) : Xp.includes(a.toLowerCase()) ? (i = 6, me ? (e.consume(g), b) : r.interrupt ? t(g) : w(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? z(g) : E(g));
6143
6143
  }
6144
- return g === 45 || ze(g) ? (e.consume(g), a += String.fromCharCode(g), k) : n(g);
6144
+ return g === 45 || Se(g) ? (e.consume(g), a += String.fromCharCode(g), k) : n(g);
6145
6145
  }
6146
6146
  function b(g) {
6147
6147
  return g === 62 ? (e.consume(g), r.interrupt ? t : w) : n(g);
@@ -6153,7 +6153,7 @@ function nf(e, t, n) {
6153
6153
  return g === 47 ? (e.consume(g), ee) : g === 58 || g === 95 || Ve(g) ? (e.consume(g), _) : oe(g) ? (e.consume(g), E) : ee(g);
6154
6154
  }
6155
6155
  function _(g) {
6156
- return g === 45 || g === 46 || g === 58 || g === 95 || ze(g) ? (e.consume(g), _) : Q(g);
6156
+ return g === 45 || g === 46 || g === 58 || g === 95 || Se(g) ? (e.consume(g), _) : Q(g);
6157
6157
  }
6158
6158
  function Q(g) {
6159
6159
  return g === 61 ? (e.consume(g), M) : oe(g) ? (e.consume(g), Q) : E(g);
@@ -6165,7 +6165,7 @@ function nf(e, t, n) {
6165
6165
  return g === s ? (e.consume(g), s = null, q) : g === null || V(g) ? n(g) : (e.consume(g), L);
6166
6166
  }
6167
6167
  function Y(g) {
6168
- return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || Ce(g) ? Q(g) : (e.consume(g), Y);
6168
+ return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || je(g) ? Q(g) : (e.consume(g), Y);
6169
6169
  }
6170
6170
  function q(g) {
6171
6171
  return g === 47 || g === 62 || oe(g) ? E(g) : n(g);
@@ -6293,19 +6293,19 @@ function lf(e, t, n) {
6293
6293
  return Ve(h) ? (e.consume(h), M) : n(h);
6294
6294
  }
6295
6295
  function M(h) {
6296
- return h === 45 || ze(h) ? (e.consume(h), M) : L(h);
6296
+ return h === 45 || Se(h) ? (e.consume(h), M) : L(h);
6297
6297
  }
6298
6298
  function L(h) {
6299
6299
  return V(h) ? (a = L, G(h)) : oe(h) ? (e.consume(h), L) : $(h);
6300
6300
  }
6301
6301
  function Y(h) {
6302
- return h === 45 || ze(h) ? (e.consume(h), Y) : h === 47 || h === 62 || Ce(h) ? q(h) : n(h);
6302
+ return h === 45 || Se(h) ? (e.consume(h), Y) : h === 47 || h === 62 || je(h) ? q(h) : n(h);
6303
6303
  }
6304
6304
  function q(h) {
6305
6305
  return h === 47 ? (e.consume(h), $) : h === 58 || h === 95 || Ve(h) ? (e.consume(h), ee) : V(h) ? (a = q, G(h)) : oe(h) ? (e.consume(h), q) : $(h);
6306
6306
  }
6307
6307
  function ee(h) {
6308
- return h === 45 || h === 46 || h === 58 || h === 95 || ze(h) ? (e.consume(h), ee) : S(h);
6308
+ return h === 45 || h === 46 || h === 58 || h === 95 || Se(h) ? (e.consume(h), ee) : S(h);
6309
6309
  }
6310
6310
  function S(h) {
6311
6311
  return h === 61 ? (e.consume(h), w) : V(h) ? (a = S, G(h)) : oe(h) ? (e.consume(h), S) : q(h);
@@ -6317,10 +6317,10 @@ function lf(e, t, n) {
6317
6317
  return h === i ? (e.consume(h), i = void 0, P) : h === null ? n(h) : V(h) ? (a = j, G(h)) : (e.consume(h), j);
6318
6318
  }
6319
6319
  function O(h) {
6320
- return h === null || h === 34 || h === 39 || h === 60 || h === 61 || h === 96 ? n(h) : h === 47 || h === 62 || Ce(h) ? q(h) : (e.consume(h), O);
6320
+ return h === null || h === 34 || h === 39 || h === 60 || h === 61 || h === 96 ? n(h) : h === 47 || h === 62 || je(h) ? q(h) : (e.consume(h), O);
6321
6321
  }
6322
6322
  function P(h) {
6323
- return h === 47 || h === 62 || Ce(h) ? q(h) : n(h);
6323
+ return h === 47 || h === 62 || je(h) ? q(h) : n(h);
6324
6324
  }
6325
6325
  function $(h) {
6326
6326
  return h === 62 ? (e.consume(h), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(h);
@@ -6329,7 +6329,7 @@ function lf(e, t, n) {
6329
6329
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), Z;
6330
6330
  }
6331
6331
  function Z(h) {
6332
- return oe(h) ? de(
6332
+ return oe(h) ? fe(
6333
6333
  e,
6334
6334
  ie,
6335
6335
  "linePrefix",
@@ -6390,19 +6390,19 @@ function ff(e, t) {
6390
6390
  return l = [
6391
6391
  ["enter", s, t],
6392
6392
  ["enter", u, t]
6393
- ], l = Be(l, e.slice(o + 1, o + r + 3)), l = Be(l, [["enter", c, t]]), l = Be(
6393
+ ], l = Re(l, e.slice(o + 1, o + r + 3)), l = Re(l, [["enter", c, t]]), l = Re(
6394
6394
  l,
6395
6395
  Ur(
6396
6396
  t.parser.constructs.insideSpan.null,
6397
6397
  e.slice(o + r + 4, a - 3),
6398
6398
  t
6399
6399
  )
6400
- ), l = Be(l, [
6400
+ ), l = Re(l, [
6401
6401
  ["exit", c, t],
6402
6402
  e[a - 2],
6403
6403
  e[a - 1],
6404
6404
  ["exit", u, t]
6405
- ]), l = Be(l, e.slice(a + 1)), l = Be(l, [["exit", s, t]]), Ge(e, o, e.length, l), e;
6405
+ ]), l = Re(l, e.slice(a + 1)), l = Re(l, [["exit", s, t]]), Ge(e, o, e.length, l), e;
6406
6406
  }
6407
6407
  function df(e, t, n) {
6408
6408
  const r = this;
@@ -6454,7 +6454,7 @@ function hf(e, t, n) {
6454
6454
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), i;
6455
6455
  }
6456
6456
  function i(f) {
6457
- return Ce(f) ? Yt(e, o)(f) : o(f);
6457
+ return je(f) ? Yt(e, o)(f) : o(f);
6458
6458
  }
6459
6459
  function o(f) {
6460
6460
  return f === 41 ? c(f) : Da(
@@ -6470,7 +6470,7 @@ function hf(e, t, n) {
6470
6470
  )(f);
6471
6471
  }
6472
6472
  function a(f) {
6473
- return Ce(f) ? Yt(e, s)(f) : c(f);
6473
+ return je(f) ? Yt(e, s)(f) : c(f);
6474
6474
  }
6475
6475
  function l(f) {
6476
6476
  return n(f);
@@ -6486,7 +6486,7 @@ function hf(e, t, n) {
6486
6486
  )(f) : c(f);
6487
6487
  }
6488
6488
  function u(f) {
6489
- return Ce(f) ? Yt(e, c)(f) : c(f);
6489
+ return je(f) ? Yt(e, c)(f) : c(f);
6490
6490
  }
6491
6491
  function c(f) {
6492
6492
  return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
@@ -6566,7 +6566,7 @@ const ir = {
6566
6566
  function wf(e, t) {
6567
6567
  return n;
6568
6568
  function n(r) {
6569
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), de(e, t, "linePrefix");
6569
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), fe(e, t, "linePrefix");
6570
6570
  }
6571
6571
  }
6572
6572
  const fn = {
@@ -6586,10 +6586,10 @@ function vf(e, t, n) {
6586
6586
  return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || V(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
6587
6587
  }
6588
6588
  function s(u) {
6589
- return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), oe(u) ? de(e, l, "whitespace")(u) : l(u));
6589
+ return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), oe(u) ? fe(e, l, "whitespace")(u) : l(u));
6590
6590
  }
6591
6591
  }
6592
- const je = {
6592
+ const Ne = {
6593
6593
  name: "list",
6594
6594
  tokenize: If,
6595
6595
  continuation: {
@@ -6648,7 +6648,7 @@ function Nf(e, t, n) {
6648
6648
  const r = this;
6649
6649
  return r.containerState._closeFlow = void 0, e.check(Dn, i, o);
6650
6650
  function i(l) {
6651
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, de(
6651
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, fe(
6652
6652
  e,
6653
6653
  t,
6654
6654
  "listItemIndent",
@@ -6659,9 +6659,9 @@ function Nf(e, t, n) {
6659
6659
  return r.containerState.furtherBlankLines || !oe(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Df, t, a)(l));
6660
6660
  }
6661
6661
  function a(l) {
6662
- return r.containerState._closeFlow = !0, r.interrupt = void 0, de(
6662
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, fe(
6663
6663
  e,
6664
- e.attempt(je, t, n),
6664
+ e.attempt(Ne, t, n),
6665
6665
  "linePrefix",
6666
6666
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
6667
6667
  )(l);
@@ -6669,7 +6669,7 @@ function Nf(e, t, n) {
6669
6669
  }
6670
6670
  function kf(e, t, n) {
6671
6671
  const r = this;
6672
- return de(
6672
+ return fe(
6673
6673
  e,
6674
6674
  i,
6675
6675
  "listItemIndent",
@@ -6685,7 +6685,7 @@ function jf(e) {
6685
6685
  }
6686
6686
  function Ef(e, t, n) {
6687
6687
  const r = this;
6688
- return de(
6688
+ return fe(
6689
6689
  e,
6690
6690
  i,
6691
6691
  "listItemPrefixWhitespace",
@@ -6736,7 +6736,7 @@ function Af(e, t, n) {
6736
6736
  return e.enter("setextHeadingLineSequence"), l(u);
6737
6737
  }
6738
6738
  function l(u) {
6739
- return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), oe(u) ? de(e, s, "lineSuffix")(u) : s(u));
6739
+ return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), oe(u) ? fe(e, s, "lineSuffix")(u) : s(u));
6740
6740
  }
6741
6741
  function s(u) {
6742
6742
  return u === null || V(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
@@ -6754,7 +6754,7 @@ function Of(e) {
6754
6754
  e.attempt(
6755
6755
  this.parser.constructs.flowInitial,
6756
6756
  i,
6757
- de(
6757
+ fe(
6758
6758
  e,
6759
6759
  e.attempt(
6760
6760
  this.parser.constructs.flow,
@@ -6913,7 +6913,7 @@ function Pf(e, t, n) {
6913
6913
  let c = t.tokenize.call(u, s);
6914
6914
  return t.resolveAll && o.push(t), u;
6915
6915
  function f(S) {
6916
- return a = Be(a, S), k(), a[a.length - 1] !== null ? [] : (Y(t, 0), u.events = Ur(o, u.events, u), u.events);
6916
+ return a = Re(a, S), k(), a[a.length - 1] !== null ? [] : (Y(t, 0), u.events = Ur(o, u.events, u), u.events);
6917
6917
  }
6918
6918
  function m(S, w) {
6919
6919
  return Uf(p(S), w);
@@ -6974,13 +6974,13 @@ function Pf(e, t, n) {
6974
6974
  we([O])
6975
6975
  ) : ne(O);
6976
6976
  function ne(ae) {
6977
- return ke;
6978
- function ke(ve) {
6979
- const Fe = ve !== null && ae[ve], Pe = ve !== null && ae.null, Ke = [
6977
+ return Ie;
6978
+ function Ie(ve) {
6979
+ const Le = ve !== null && ae[ve], _e = ve !== null && ae.null, Ke = [
6980
6980
  // To do: add more extension tests.
6981
6981
  /* c8 ignore next 2 */
6982
- ...Array.isArray(Fe) ? Fe : Fe ? [Fe] : [],
6983
- ...Array.isArray(Pe) ? Pe : Pe ? [Pe] : []
6982
+ ...Array.isArray(Le) ? Le : Le ? [Le] : [],
6983
+ ...Array.isArray(_e) ? _e : _e ? [_e] : []
6984
6984
  ];
6985
6985
  return we(Ke)(ve);
6986
6986
  }
@@ -6989,23 +6989,23 @@ function Pf(e, t, n) {
6989
6989
  return G = ae, Z = 0, ae.length === 0 ? $ : g(ae[Z]);
6990
6990
  }
6991
6991
  function g(ae) {
6992
- return ke;
6993
- function ke(ve) {
6994
- return h = q(), ie = ae, ae.partial || (u.currentConstruct = ae), ae.name && u.parser.constructs.disable.null.includes(ae.name) ? Ne() : ae.tokenize.call(
6992
+ return Ie;
6993
+ function Ie(ve) {
6994
+ return h = q(), ie = ae, ae.partial || (u.currentConstruct = ae), ae.name && u.parser.constructs.disable.null.includes(ae.name) ? De() : ae.tokenize.call(
6995
6995
  // If we do have fields, create an object w/ `context` as its
6996
6996
  // prototype.
6997
6997
  // This allows a “live binding”, which is needed for `interrupt`.
6998
6998
  w ? Object.assign(Object.create(u), w) : u,
6999
6999
  s,
7000
7000
  me,
7001
- Ne
7001
+ De
7002
7002
  )(ve);
7003
7003
  }
7004
7004
  }
7005
7005
  function me(ae) {
7006
7006
  return S(ie, h), P;
7007
7007
  }
7008
- function Ne(ae) {
7008
+ function De(ae) {
7009
7009
  return h.restore(), ++Z < G.length ? g(G[Z]) : $;
7010
7010
  }
7011
7011
  }
@@ -7089,19 +7089,19 @@ function Uf(e, t) {
7089
7089
  return r.join("");
7090
7090
  }
7091
7091
  const Bf = {
7092
- 42: je,
7093
- 43: je,
7094
- 45: je,
7095
- 48: je,
7096
- 49: je,
7097
- 50: je,
7098
- 51: je,
7099
- 52: je,
7100
- 53: je,
7101
- 54: je,
7102
- 55: je,
7103
- 56: je,
7104
- 57: je,
7092
+ 42: Ne,
7093
+ 43: Ne,
7094
+ 45: Ne,
7095
+ 48: Ne,
7096
+ 49: Ne,
7097
+ 50: Ne,
7098
+ 51: Ne,
7099
+ 52: Ne,
7100
+ 53: Ne,
7101
+ 54: Ne,
7102
+ 55: Ne,
7103
+ 56: Ne,
7104
+ 57: Ne,
7105
7105
  62: xa
7106
7106
  }, Qf = {
7107
7107
  91: Qp
@@ -7300,24 +7300,24 @@ function id(e) {
7300
7300
  listOrdered: l(Ze, p),
7301
7301
  listUnordered: l(Ze),
7302
7302
  paragraph: l(W),
7303
- reference: Ne,
7303
+ reference: De,
7304
7304
  referenceString: s,
7305
7305
  resourceDestinationString: s,
7306
7306
  resourceTitleString: s,
7307
7307
  setextHeading: l(mt),
7308
7308
  strong: l(be),
7309
- thematicBreak: l(Ie)
7309
+ thematicBreak: l(Te)
7310
7310
  },
7311
7311
  exit: {
7312
7312
  atxHeading: c(),
7313
7313
  atxHeadingSequence: L,
7314
7314
  autolink: c(),
7315
- autolinkEmail: Pe,
7316
- autolinkProtocol: Fe,
7315
+ autolinkEmail: _e,
7316
+ autolinkProtocol: Le,
7317
7317
  blockQuote: c(),
7318
7318
  characterEscapeValue: w,
7319
- characterReferenceMarkerHexadecimal: ke,
7320
- characterReferenceMarkerNumeric: ke,
7319
+ characterReferenceMarkerHexadecimal: Ie,
7320
+ characterReferenceMarkerNumeric: Ie,
7321
7321
  characterReferenceValue: ve,
7322
7322
  codeFenced: c(z),
7323
7323
  codeFencedFence: b,
@@ -7362,7 +7362,7 @@ function id(e) {
7362
7362
  Aa(t, (e || {}).mdastExtensions || []);
7363
7363
  const n = {};
7364
7364
  return r;
7365
- function r(T) {
7365
+ function r(v) {
7366
7366
  let C = {
7367
7367
  type: "root",
7368
7368
  children: []
@@ -7379,40 +7379,40 @@ function id(e) {
7379
7379
  getData: a
7380
7380
  }, K = [];
7381
7381
  let J = -1;
7382
- for (; ++J < T.length; )
7383
- if (T[J][1].type === "listOrdered" || T[J][1].type === "listUnordered")
7384
- if (T[J][0] === "enter")
7382
+ for (; ++J < v.length; )
7383
+ if (v[J][1].type === "listOrdered" || v[J][1].type === "listUnordered")
7384
+ if (v[J][0] === "enter")
7385
7385
  K.push(J);
7386
7386
  else {
7387
- const ue = K.pop();
7388
- J = i(T, ue, J);
7387
+ const de = K.pop();
7388
+ J = i(v, de, J);
7389
7389
  }
7390
- for (J = -1; ++J < T.length; ) {
7391
- const ue = t[T[J][0]];
7392
- Ca.call(ue, T[J][1].type) && ue[T[J][1].type].call(
7390
+ for (J = -1; ++J < v.length; ) {
7391
+ const de = t[v[J][0]];
7392
+ Ca.call(de, v[J][1].type) && de[v[J][1].type].call(
7393
7393
  Object.assign(
7394
7394
  {
7395
- sliceSerialize: T[J][2].sliceSerialize
7395
+ sliceSerialize: v[J][2].sliceSerialize
7396
7396
  },
7397
7397
  U
7398
7398
  ),
7399
- T[J][1]
7399
+ v[J][1]
7400
7400
  );
7401
7401
  }
7402
7402
  if (U.tokenStack.length > 0) {
7403
- const ue = U.tokenStack[U.tokenStack.length - 1];
7404
- (ue[1] || uo).call(U, void 0, ue[0]);
7403
+ const de = U.tokenStack[U.tokenStack.length - 1];
7404
+ (de[1] || uo).call(U, void 0, de[0]);
7405
7405
  }
7406
7406
  for (C.position = {
7407
7407
  start: et(
7408
- T.length > 0 ? T[0][1].start : {
7408
+ v.length > 0 ? v[0][1].start : {
7409
7409
  line: 1,
7410
7410
  column: 1,
7411
7411
  offset: 0
7412
7412
  }
7413
7413
  ),
7414
7414
  end: et(
7415
- T.length > 0 ? T[T.length - 2][1].end : {
7415
+ v.length > 0 ? v[v.length - 2][1].end : {
7416
7416
  line: 1,
7417
7417
  column: 1,
7418
7418
  offset: 0
@@ -7422,48 +7422,48 @@ function id(e) {
7422
7422
  C = t.transforms[J](C) || C;
7423
7423
  return C;
7424
7424
  }
7425
- function i(T, C, U) {
7426
- let K = C - 1, J = -1, ue = !1, Te, De, st, Ae;
7425
+ function i(v, C, U) {
7426
+ let K = C - 1, J = -1, de = !1, Ye, He, st, Ee;
7427
7427
  for (; ++K <= U; ) {
7428
- const pe = T[K];
7429
- if (pe[1].type === "listUnordered" || pe[1].type === "listOrdered" || pe[1].type === "blockQuote" ? (pe[0] === "enter" ? J++ : J--, Ae = void 0) : pe[1].type === "lineEndingBlank" ? pe[0] === "enter" && (Te && !Ae && !J && !st && (st = K), Ae = void 0) : pe[1].type === "linePrefix" || pe[1].type === "listItemValue" || pe[1].type === "listItemMarker" || pe[1].type === "listItemPrefix" || pe[1].type === "listItemPrefixWhitespace" || (Ae = void 0), !J && pe[0] === "enter" && pe[1].type === "listItemPrefix" || J === -1 && pe[0] === "exit" && (pe[1].type === "listUnordered" || pe[1].type === "listOrdered")) {
7430
- if (Te) {
7428
+ const ce = v[K];
7429
+ if (ce[1].type === "listUnordered" || ce[1].type === "listOrdered" || ce[1].type === "blockQuote" ? (ce[0] === "enter" ? J++ : J--, Ee = void 0) : ce[1].type === "lineEndingBlank" ? ce[0] === "enter" && (Ye && !Ee && !J && !st && (st = K), Ee = void 0) : ce[1].type === "linePrefix" || ce[1].type === "listItemValue" || ce[1].type === "listItemMarker" || ce[1].type === "listItemPrefix" || ce[1].type === "listItemPrefixWhitespace" || (Ee = void 0), !J && ce[0] === "enter" && ce[1].type === "listItemPrefix" || J === -1 && ce[0] === "exit" && (ce[1].type === "listUnordered" || ce[1].type === "listOrdered")) {
7430
+ if (Ye) {
7431
7431
  let Et = K;
7432
- for (De = void 0; Et--; ) {
7433
- const Re = T[Et];
7434
- if (Re[1].type === "lineEnding" || Re[1].type === "lineEndingBlank") {
7435
- if (Re[0] === "exit")
7432
+ for (He = void 0; Et--; ) {
7433
+ const Fe = v[Et];
7434
+ if (Fe[1].type === "lineEnding" || Fe[1].type === "lineEndingBlank") {
7435
+ if (Fe[0] === "exit")
7436
7436
  continue;
7437
- De && (T[De][1].type = "lineEndingBlank", ue = !0), Re[1].type = "lineEnding", De = Et;
7438
- } else if (!(Re[1].type === "linePrefix" || Re[1].type === "blockQuotePrefix" || Re[1].type === "blockQuotePrefixWhitespace" || Re[1].type === "blockQuoteMarker" || Re[1].type === "listItemIndent"))
7437
+ He && (v[He][1].type = "lineEndingBlank", de = !0), Fe[1].type = "lineEnding", He = Et;
7438
+ } else if (!(Fe[1].type === "linePrefix" || Fe[1].type === "blockQuotePrefix" || Fe[1].type === "blockQuotePrefixWhitespace" || Fe[1].type === "blockQuoteMarker" || Fe[1].type === "listItemIndent"))
7439
7439
  break;
7440
7440
  }
7441
- st && (!De || st < De) && (Te._spread = !0), Te.end = Object.assign(
7441
+ st && (!He || st < He) && (Ye._spread = !0), Ye.end = Object.assign(
7442
7442
  {},
7443
- De ? T[De][1].start : pe[1].end
7444
- ), T.splice(De || K, 0, ["exit", Te, pe[2]]), K++, U++;
7443
+ He ? v[He][1].start : ce[1].end
7444
+ ), v.splice(He || K, 0, ["exit", Ye, ce[2]]), K++, U++;
7445
7445
  }
7446
- pe[1].type === "listItemPrefix" && (Te = {
7446
+ ce[1].type === "listItemPrefix" && (Ye = {
7447
7447
  type: "listItem",
7448
7448
  _spread: !1,
7449
- start: Object.assign({}, pe[1].start),
7449
+ start: Object.assign({}, ce[1].start),
7450
7450
  // @ts-expect-error: we’ll add `end` in a second.
7451
7451
  end: void 0
7452
- }, T.splice(K, 0, ["enter", Te, pe[2]]), K++, U++, st = void 0, Ae = !0);
7452
+ }, v.splice(K, 0, ["enter", Ye, ce[2]]), K++, U++, st = void 0, Ee = !0);
7453
7453
  }
7454
7454
  }
7455
- return T[C][1]._spread = ue, U;
7455
+ return v[C][1]._spread = de, U;
7456
7456
  }
7457
- function o(T, C) {
7458
- n[T] = C;
7457
+ function o(v, C) {
7458
+ n[v] = C;
7459
7459
  }
7460
- function a(T) {
7461
- return n[T];
7460
+ function a(v) {
7461
+ return n[v];
7462
7462
  }
7463
- function l(T, C) {
7463
+ function l(v, C) {
7464
7464
  return U;
7465
7465
  function U(K) {
7466
- u.call(this, T(K), K), C && C.call(this, K);
7466
+ u.call(this, v(K), K), C && C.call(this, K);
7467
7467
  }
7468
7468
  }
7469
7469
  function s() {
@@ -7472,29 +7472,29 @@ function id(e) {
7472
7472
  children: []
7473
7473
  });
7474
7474
  }
7475
- function u(T, C, U) {
7476
- return this.stack[this.stack.length - 1].children.push(T), this.stack.push(T), this.tokenStack.push([C, U]), T.position = {
7475
+ function u(v, C, U) {
7476
+ return this.stack[this.stack.length - 1].children.push(v), this.stack.push(v), this.tokenStack.push([C, U]), v.position = {
7477
7477
  start: et(C.start)
7478
- }, T;
7478
+ }, v;
7479
7479
  }
7480
- function c(T) {
7480
+ function c(v) {
7481
7481
  return C;
7482
7482
  function C(U) {
7483
- T && T.call(this, U), f.call(this, U);
7483
+ v && v.call(this, U), f.call(this, U);
7484
7484
  }
7485
7485
  }
7486
- function f(T, C) {
7486
+ function f(v, C) {
7487
7487
  const U = this.stack.pop(), K = this.tokenStack.pop();
7488
7488
  if (K)
7489
- K[0].type !== T.type && (C ? C.call(this, T, K[0]) : (K[1] || uo).call(this, T, K[0]));
7489
+ K[0].type !== v.type && (C ? C.call(this, v, K[0]) : (K[1] || uo).call(this, v, K[0]));
7490
7490
  else
7491
7491
  throw new Error(
7492
- "Cannot close `" + T.type + "` (" + Qt({
7493
- start: T.start,
7494
- end: T.end
7492
+ "Cannot close `" + v.type + "` (" + Qt({
7493
+ start: v.start,
7494
+ end: v.end
7495
7495
  }) + "): it’s not open"
7496
7496
  );
7497
- return U.position.end = et(T.end), U;
7497
+ return U.position.end = et(v.end), U;
7498
7498
  }
7499
7499
  function m() {
7500
7500
  return tp(this.stack.pop());
@@ -7502,169 +7502,169 @@ function id(e) {
7502
7502
  function p() {
7503
7503
  o("expectingFirstListItemValue", !0);
7504
7504
  }
7505
- function D(T) {
7505
+ function D(v) {
7506
7506
  if (a("expectingFirstListItemValue")) {
7507
7507
  const C = this.stack[this.stack.length - 2];
7508
- C.start = Number.parseInt(this.sliceSerialize(T), 10), o("expectingFirstListItemValue");
7508
+ C.start = Number.parseInt(this.sliceSerialize(v), 10), o("expectingFirstListItemValue");
7509
7509
  }
7510
7510
  }
7511
7511
  function x() {
7512
- const T = this.resume(), C = this.stack[this.stack.length - 1];
7513
- C.lang = T;
7512
+ const v = this.resume(), C = this.stack[this.stack.length - 1];
7513
+ C.lang = v;
7514
7514
  }
7515
7515
  function k() {
7516
- const T = this.resume(), C = this.stack[this.stack.length - 1];
7517
- C.meta = T;
7516
+ const v = this.resume(), C = this.stack[this.stack.length - 1];
7517
+ C.meta = v;
7518
7518
  }
7519
7519
  function b() {
7520
7520
  a("flowCodeInside") || (this.buffer(), o("flowCodeInside", !0));
7521
7521
  }
7522
7522
  function z() {
7523
- const T = this.resume(), C = this.stack[this.stack.length - 1];
7524
- C.value = T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
7523
+ const v = this.resume(), C = this.stack[this.stack.length - 1];
7524
+ C.value = v.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
7525
7525
  }
7526
7526
  function E() {
7527
- const T = this.resume(), C = this.stack[this.stack.length - 1];
7528
- C.value = T.replace(/(\r?\n|\r)$/g, "");
7527
+ const v = this.resume(), C = this.stack[this.stack.length - 1];
7528
+ C.value = v.replace(/(\r?\n|\r)$/g, "");
7529
7529
  }
7530
- function _(T) {
7530
+ function _(v) {
7531
7531
  const C = this.resume(), U = this.stack[this.stack.length - 1];
7532
7532
  U.label = C, U.identifier = xt(
7533
- this.sliceSerialize(T)
7533
+ this.sliceSerialize(v)
7534
7534
  ).toLowerCase();
7535
7535
  }
7536
7536
  function Q() {
7537
- const T = this.resume(), C = this.stack[this.stack.length - 1];
7538
- C.title = T;
7537
+ const v = this.resume(), C = this.stack[this.stack.length - 1];
7538
+ C.title = v;
7539
7539
  }
7540
7540
  function M() {
7541
- const T = this.resume(), C = this.stack[this.stack.length - 1];
7542
- C.url = T;
7541
+ const v = this.resume(), C = this.stack[this.stack.length - 1];
7542
+ C.url = v;
7543
7543
  }
7544
- function L(T) {
7544
+ function L(v) {
7545
7545
  const C = this.stack[this.stack.length - 1];
7546
7546
  if (!C.depth) {
7547
- const U = this.sliceSerialize(T).length;
7547
+ const U = this.sliceSerialize(v).length;
7548
7548
  C.depth = U;
7549
7549
  }
7550
7550
  }
7551
7551
  function Y() {
7552
7552
  o("setextHeadingSlurpLineEnding", !0);
7553
7553
  }
7554
- function q(T) {
7554
+ function q(v) {
7555
7555
  const C = this.stack[this.stack.length - 1];
7556
- C.depth = this.sliceSerialize(T).charCodeAt(0) === 61 ? 1 : 2;
7556
+ C.depth = this.sliceSerialize(v).charCodeAt(0) === 61 ? 1 : 2;
7557
7557
  }
7558
7558
  function ee() {
7559
7559
  o("setextHeadingSlurpLineEnding");
7560
7560
  }
7561
- function S(T) {
7561
+ function S(v) {
7562
7562
  const C = this.stack[this.stack.length - 1];
7563
7563
  let U = C.children[C.children.length - 1];
7564
7564
  (!U || U.type !== "text") && (U = se(), U.position = {
7565
- start: et(T.start)
7565
+ start: et(v.start)
7566
7566
  }, C.children.push(U)), this.stack.push(U);
7567
7567
  }
7568
- function w(T) {
7568
+ function w(v) {
7569
7569
  const C = this.stack.pop();
7570
- C.value += this.sliceSerialize(T), C.position.end = et(T.end);
7570
+ C.value += this.sliceSerialize(v), C.position.end = et(v.end);
7571
7571
  }
7572
- function j(T) {
7572
+ function j(v) {
7573
7573
  const C = this.stack[this.stack.length - 1];
7574
7574
  if (a("atHardBreak")) {
7575
7575
  const U = C.children[C.children.length - 1];
7576
- U.position.end = et(T.end), o("atHardBreak");
7576
+ U.position.end = et(v.end), o("atHardBreak");
7577
7577
  return;
7578
7578
  }
7579
- !a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(C.type) && (S.call(this, T), w.call(this, T));
7579
+ !a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(C.type) && (S.call(this, v), w.call(this, v));
7580
7580
  }
7581
7581
  function O() {
7582
7582
  o("atHardBreak", !0);
7583
7583
  }
7584
7584
  function P() {
7585
- const T = this.resume(), C = this.stack[this.stack.length - 1];
7586
- C.value = T;
7585
+ const v = this.resume(), C = this.stack[this.stack.length - 1];
7586
+ C.value = v;
7587
7587
  }
7588
7588
  function $() {
7589
- const T = this.resume(), C = this.stack[this.stack.length - 1];
7590
- C.value = T;
7589
+ const v = this.resume(), C = this.stack[this.stack.length - 1];
7590
+ C.value = v;
7591
7591
  }
7592
7592
  function G() {
7593
- const T = this.resume(), C = this.stack[this.stack.length - 1];
7594
- C.value = T;
7593
+ const v = this.resume(), C = this.stack[this.stack.length - 1];
7594
+ C.value = v;
7595
7595
  }
7596
7596
  function Z() {
7597
- const T = this.stack[this.stack.length - 1];
7597
+ const v = this.stack[this.stack.length - 1];
7598
7598
  if (a("inReference")) {
7599
7599
  const C = a("referenceType") || "shortcut";
7600
- T.type += "Reference", T.referenceType = C, delete T.url, delete T.title;
7600
+ v.type += "Reference", v.referenceType = C, delete v.url, delete v.title;
7601
7601
  } else
7602
- delete T.identifier, delete T.label;
7602
+ delete v.identifier, delete v.label;
7603
7603
  o("referenceType");
7604
7604
  }
7605
7605
  function ie() {
7606
- const T = this.stack[this.stack.length - 1];
7606
+ const v = this.stack[this.stack.length - 1];
7607
7607
  if (a("inReference")) {
7608
7608
  const C = a("referenceType") || "shortcut";
7609
- T.type += "Reference", T.referenceType = C, delete T.url, delete T.title;
7609
+ v.type += "Reference", v.referenceType = C, delete v.url, delete v.title;
7610
7610
  } else
7611
- delete T.identifier, delete T.label;
7611
+ delete v.identifier, delete v.label;
7612
7612
  o("referenceType");
7613
7613
  }
7614
- function h(T) {
7615
- const C = this.sliceSerialize(T), U = this.stack[this.stack.length - 2];
7614
+ function h(v) {
7615
+ const C = this.sliceSerialize(v), U = this.stack[this.stack.length - 2];
7616
7616
  U.label = td(C), U.identifier = xt(C).toLowerCase();
7617
7617
  }
7618
7618
  function ne() {
7619
- const T = this.stack[this.stack.length - 1], C = this.resume(), U = this.stack[this.stack.length - 1];
7619
+ const v = this.stack[this.stack.length - 1], C = this.resume(), U = this.stack[this.stack.length - 1];
7620
7620
  if (o("inReference", !0), U.type === "link") {
7621
- const K = T.children;
7621
+ const K = v.children;
7622
7622
  U.children = K;
7623
7623
  } else
7624
7624
  U.alt = C;
7625
7625
  }
7626
7626
  function we() {
7627
- const T = this.resume(), C = this.stack[this.stack.length - 1];
7628
- C.url = T;
7627
+ const v = this.resume(), C = this.stack[this.stack.length - 1];
7628
+ C.url = v;
7629
7629
  }
7630
7630
  function g() {
7631
- const T = this.resume(), C = this.stack[this.stack.length - 1];
7632
- C.title = T;
7631
+ const v = this.resume(), C = this.stack[this.stack.length - 1];
7632
+ C.title = v;
7633
7633
  }
7634
7634
  function me() {
7635
7635
  o("inReference");
7636
7636
  }
7637
- function Ne() {
7637
+ function De() {
7638
7638
  o("referenceType", "collapsed");
7639
7639
  }
7640
- function ae(T) {
7640
+ function ae(v) {
7641
7641
  const C = this.resume(), U = this.stack[this.stack.length - 1];
7642
7642
  U.label = C, U.identifier = xt(
7643
- this.sliceSerialize(T)
7643
+ this.sliceSerialize(v)
7644
7644
  ).toLowerCase(), o("referenceType", "full");
7645
7645
  }
7646
- function ke(T) {
7647
- o("characterReferenceType", T.type);
7646
+ function Ie(v) {
7647
+ o("characterReferenceType", v.type);
7648
7648
  }
7649
- function ve(T) {
7650
- const C = this.sliceSerialize(T), U = a("characterReferenceType");
7649
+ function ve(v) {
7650
+ const C = this.sliceSerialize(v), U = a("characterReferenceType");
7651
7651
  let K;
7652
7652
  U ? (K = Ea(
7653
7653
  C,
7654
7654
  U === "characterReferenceMarkerNumeric" ? 10 : 16
7655
7655
  ), o("characterReferenceType")) : K = Br(C);
7656
7656
  const J = this.stack.pop();
7657
- J.value += K, J.position.end = et(T.end);
7657
+ J.value += K, J.position.end = et(v.end);
7658
7658
  }
7659
- function Fe(T) {
7660
- w.call(this, T);
7659
+ function Le(v) {
7660
+ w.call(this, v);
7661
7661
  const C = this.stack[this.stack.length - 1];
7662
- C.url = this.sliceSerialize(T);
7662
+ C.url = this.sliceSerialize(v);
7663
7663
  }
7664
- function Pe(T) {
7665
- w.call(this, T);
7664
+ function _e(v) {
7665
+ w.call(this, v);
7666
7666
  const C = this.stack[this.stack.length - 1];
7667
- C.url = "mailto:" + this.sliceSerialize(T);
7667
+ C.url = "mailto:" + this.sliceSerialize(v);
7668
7668
  }
7669
7669
  function Ke() {
7670
7670
  return {
@@ -7735,19 +7735,19 @@ function id(e) {
7735
7735
  children: []
7736
7736
  };
7737
7737
  }
7738
- function Ze(T) {
7738
+ function Ze(v) {
7739
7739
  return {
7740
7740
  type: "list",
7741
- ordered: T.type === "listOrdered",
7741
+ ordered: v.type === "listOrdered",
7742
7742
  start: null,
7743
- spread: T._spread,
7743
+ spread: v._spread,
7744
7744
  children: []
7745
7745
  };
7746
7746
  }
7747
- function F(T) {
7747
+ function F(v) {
7748
7748
  return {
7749
7749
  type: "listItem",
7750
- spread: T._spread,
7750
+ spread: v._spread,
7751
7751
  checked: null,
7752
7752
  children: []
7753
7753
  };
@@ -7770,7 +7770,7 @@ function id(e) {
7770
7770
  value: ""
7771
7771
  };
7772
7772
  }
7773
- function Ie() {
7773
+ function Te() {
7774
7774
  return {
7775
7775
  type: "thematicBreak"
7776
7776
  };
@@ -7890,7 +7890,7 @@ function Tt(e) {
7890
7890
  for (; ++n < e.length; ) {
7891
7891
  const o = e.charCodeAt(n);
7892
7892
  let a = "";
7893
- if (o === 37 && ze(e.charCodeAt(n + 1)) && ze(e.charCodeAt(n + 2)))
7893
+ if (o === 37 && Se(e.charCodeAt(n + 1)) && Se(e.charCodeAt(n + 2)))
7894
7894
  i = 2;
7895
7895
  else if (o < 128)
7896
7896
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (a = String.fromCharCode(o));
@@ -8620,7 +8620,7 @@ function Ra(e, t) {
8620
8620
  function Ir(e) {
8621
8621
  return e.toLowerCase();
8622
8622
  }
8623
- class Ye {
8623
+ class Be {
8624
8624
  /**
8625
8625
  * @constructor
8626
8626
  * @param {string} property
@@ -8630,18 +8630,18 @@ class Ye {
8630
8630
  this.property = t, this.attribute = n;
8631
8631
  }
8632
8632
  }
8633
- Ye.prototype.space = null;
8634
- Ye.prototype.boolean = !1;
8635
- Ye.prototype.booleanish = !1;
8636
- Ye.prototype.overloadedBoolean = !1;
8637
- Ye.prototype.number = !1;
8638
- Ye.prototype.commaSeparated = !1;
8639
- Ye.prototype.spaceSeparated = !1;
8640
- Ye.prototype.commaOrSpaceSeparated = !1;
8641
- Ye.prototype.mustUseProperty = !1;
8642
- Ye.prototype.defined = !1;
8633
+ Be.prototype.space = null;
8634
+ Be.prototype.boolean = !1;
8635
+ Be.prototype.booleanish = !1;
8636
+ Be.prototype.overloadedBoolean = !1;
8637
+ Be.prototype.number = !1;
8638
+ Be.prototype.commaSeparated = !1;
8639
+ Be.prototype.spaceSeparated = !1;
8640
+ Be.prototype.commaOrSpaceSeparated = !1;
8641
+ Be.prototype.mustUseProperty = !1;
8642
+ Be.prototype.defined = !1;
8643
8643
  let eh = 0;
8644
- const X = gt(), xe = gt(), Ua = gt(), A = gt(), fe = gt(), wt = gt(), Oe = gt();
8644
+ const X = gt(), xe = gt(), Ua = gt(), A = gt(), pe = gt(), wt = gt(), Ae = gt();
8645
8645
  function gt() {
8646
8646
  return 2 ** ++eh;
8647
8647
  }
@@ -8649,13 +8649,13 @@ const Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8649
8649
  __proto__: null,
8650
8650
  boolean: X,
8651
8651
  booleanish: xe,
8652
- commaOrSpaceSeparated: Oe,
8652
+ commaOrSpaceSeparated: Ae,
8653
8653
  commaSeparated: wt,
8654
8654
  number: A,
8655
8655
  overloadedBoolean: Ua,
8656
- spaceSeparated: fe
8656
+ spaceSeparated: pe
8657
8657
  }, Symbol.toStringTag, { value: "Module" })), or = Object.keys(Nr);
8658
- class Vr extends Ye {
8658
+ class Vr extends Be {
8659
8659
  /**
8660
8660
  * @constructor
8661
8661
  * @param {string} property
@@ -8737,36 +8737,36 @@ const $a = Dt({
8737
8737
  ariaColCount: A,
8738
8738
  ariaColIndex: A,
8739
8739
  ariaColSpan: A,
8740
- ariaControls: fe,
8740
+ ariaControls: pe,
8741
8741
  ariaCurrent: null,
8742
- ariaDescribedBy: fe,
8742
+ ariaDescribedBy: pe,
8743
8743
  ariaDetails: null,
8744
8744
  ariaDisabled: xe,
8745
- ariaDropEffect: fe,
8745
+ ariaDropEffect: pe,
8746
8746
  ariaErrorMessage: null,
8747
8747
  ariaExpanded: xe,
8748
- ariaFlowTo: fe,
8748
+ ariaFlowTo: pe,
8749
8749
  ariaGrabbed: xe,
8750
8750
  ariaHasPopup: null,
8751
8751
  ariaHidden: xe,
8752
8752
  ariaInvalid: null,
8753
8753
  ariaKeyShortcuts: null,
8754
8754
  ariaLabel: null,
8755
- ariaLabelledBy: fe,
8755
+ ariaLabelledBy: pe,
8756
8756
  ariaLevel: A,
8757
8757
  ariaLive: null,
8758
8758
  ariaModal: xe,
8759
8759
  ariaMultiLine: xe,
8760
8760
  ariaMultiSelectable: xe,
8761
8761
  ariaOrientation: null,
8762
- ariaOwns: fe,
8762
+ ariaOwns: pe,
8763
8763
  ariaPlaceholder: null,
8764
8764
  ariaPosInSet: A,
8765
8765
  ariaPressed: xe,
8766
8766
  ariaReadOnly: xe,
8767
8767
  ariaRelevant: null,
8768
8768
  ariaRequired: xe,
8769
- ariaRoleDescription: fe,
8769
+ ariaRoleDescription: pe,
8770
8770
  ariaRowCount: A,
8771
8771
  ariaRowIndex: A,
8772
8772
  ariaRowSpan: A,
@@ -8793,8 +8793,8 @@ const $a = Dt({
8793
8793
  // Standard Properties.
8794
8794
  abbr: null,
8795
8795
  accept: wt,
8796
- acceptCharset: fe,
8797
- accessKey: fe,
8796
+ acceptCharset: pe,
8797
+ accessKey: pe,
8798
8798
  action: null,
8799
8799
  allow: null,
8800
8800
  allowFullScreen: X,
@@ -8804,21 +8804,21 @@ const $a = Dt({
8804
8804
  as: null,
8805
8805
  async: X,
8806
8806
  autoCapitalize: null,
8807
- autoComplete: fe,
8807
+ autoComplete: pe,
8808
8808
  autoFocus: X,
8809
8809
  autoPlay: X,
8810
- blocking: fe,
8810
+ blocking: pe,
8811
8811
  capture: null,
8812
8812
  charSet: null,
8813
8813
  checked: X,
8814
8814
  cite: null,
8815
- className: fe,
8815
+ className: pe,
8816
8816
  cols: A,
8817
8817
  colSpan: null,
8818
8818
  content: null,
8819
8819
  contentEditable: xe,
8820
8820
  controls: X,
8821
- controlsList: fe,
8821
+ controlsList: pe,
8822
8822
  coords: A | wt,
8823
8823
  crossOrigin: null,
8824
8824
  data: null,
@@ -8840,14 +8840,14 @@ const $a = Dt({
8840
8840
  formMethod: null,
8841
8841
  formNoValidate: X,
8842
8842
  formTarget: null,
8843
- headers: fe,
8843
+ headers: pe,
8844
8844
  height: A,
8845
8845
  hidden: X,
8846
8846
  high: A,
8847
8847
  href: null,
8848
8848
  hrefLang: null,
8849
- htmlFor: fe,
8850
- httpEquiv: fe,
8849
+ htmlFor: pe,
8850
+ httpEquiv: pe,
8851
8851
  id: null,
8852
8852
  imageSizes: null,
8853
8853
  imageSrcSet: null,
@@ -8857,10 +8857,10 @@ const $a = Dt({
8857
8857
  is: null,
8858
8858
  isMap: X,
8859
8859
  itemId: null,
8860
- itemProp: fe,
8861
- itemRef: fe,
8860
+ itemProp: pe,
8861
+ itemRef: pe,
8862
8862
  itemScope: X,
8863
- itemType: fe,
8863
+ itemType: pe,
8864
8864
  kind: null,
8865
8865
  label: null,
8866
8866
  lang: null,
@@ -8973,7 +8973,7 @@ const $a = Dt({
8973
8973
  open: X,
8974
8974
  optimum: A,
8975
8975
  pattern: null,
8976
- ping: fe,
8976
+ ping: pe,
8977
8977
  placeholder: null,
8978
8978
  playsInline: X,
8979
8979
  popover: null,
@@ -8983,12 +8983,12 @@ const $a = Dt({
8983
8983
  preload: null,
8984
8984
  readOnly: X,
8985
8985
  referrerPolicy: null,
8986
- rel: fe,
8986
+ rel: pe,
8987
8987
  required: X,
8988
8988
  reversed: X,
8989
8989
  rows: A,
8990
8990
  rowSpan: A,
8991
- sandbox: fe,
8991
+ sandbox: pe,
8992
8992
  scope: null,
8993
8993
  scoped: X,
8994
8994
  seamless: X,
@@ -9024,7 +9024,7 @@ const $a = Dt({
9024
9024
  // Several. Use CSS `text-align` instead,
9025
9025
  aLink: null,
9026
9026
  // `<body>`. Use CSS `a:active {color}` instead
9027
- archive: fe,
9027
+ archive: pe,
9028
9028
  // `<object>`. List of URIs to archives
9029
9029
  axis: null,
9030
9030
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -9317,7 +9317,7 @@ const $a = Dt({
9317
9317
  },
9318
9318
  transform: Ya,
9319
9319
  properties: {
9320
- about: Oe,
9320
+ about: Ae,
9321
9321
  accentHeight: A,
9322
9322
  accumulate: null,
9323
9323
  additive: null,
@@ -9339,7 +9339,7 @@ const $a = Dt({
9339
9339
  by: null,
9340
9340
  calcMode: null,
9341
9341
  capHeight: A,
9342
- className: fe,
9342
+ className: pe,
9343
9343
  clip: null,
9344
9344
  clipPath: null,
9345
9345
  clipPathUnits: null,
@@ -9429,7 +9429,7 @@ const $a = Dt({
9429
9429
  k2: A,
9430
9430
  k3: A,
9431
9431
  k4: A,
9432
- kernelMatrix: Oe,
9432
+ kernelMatrix: Ae,
9433
9433
  kernelUnitLength: null,
9434
9434
  keyPoints: null,
9435
9435
  // SEMI_COLON_SEPARATED
@@ -9574,7 +9574,7 @@ const $a = Dt({
9574
9574
  patternTransform: null,
9575
9575
  patternUnits: null,
9576
9576
  phase: null,
9577
- ping: fe,
9577
+ ping: pe,
9578
9578
  pitch: null,
9579
9579
  playbackOrder: null,
9580
9580
  pointerEvents: null,
@@ -9586,21 +9586,21 @@ const $a = Dt({
9586
9586
  preserveAspectRatio: null,
9587
9587
  primitiveUnits: null,
9588
9588
  propagate: null,
9589
- property: Oe,
9589
+ property: Ae,
9590
9590
  r: null,
9591
9591
  radius: null,
9592
9592
  referrerPolicy: null,
9593
9593
  refX: null,
9594
9594
  refY: null,
9595
- rel: Oe,
9596
- rev: Oe,
9595
+ rel: Ae,
9596
+ rev: Ae,
9597
9597
  renderingIntent: null,
9598
9598
  repeatCount: null,
9599
9599
  repeatDur: null,
9600
- requiredExtensions: Oe,
9601
- requiredFeatures: Oe,
9602
- requiredFonts: Oe,
9603
- requiredFormats: Oe,
9600
+ requiredExtensions: Ae,
9601
+ requiredFeatures: Ae,
9602
+ requiredFonts: Ae,
9603
+ requiredFormats: Ae,
9604
9604
  resource: null,
9605
9605
  restart: null,
9606
9606
  result: null,
@@ -9628,7 +9628,7 @@ const $a = Dt({
9628
9628
  strikethroughThickness: A,
9629
9629
  string: null,
9630
9630
  stroke: null,
9631
- strokeDashArray: Oe,
9631
+ strokeDashArray: Ae,
9632
9632
  strokeDashOffset: null,
9633
9633
  strokeLineCap: null,
9634
9634
  strokeLineJoin: null,
@@ -9642,7 +9642,7 @@ const $a = Dt({
9642
9642
  syncMaster: null,
9643
9643
  syncTolerance: null,
9644
9644
  syncToleranceDefault: null,
9645
- systemLanguage: Oe,
9645
+ systemLanguage: Ae,
9646
9646
  tabIndex: A,
9647
9647
  tableValues: null,
9648
9648
  target: null,
@@ -9656,7 +9656,7 @@ const $a = Dt({
9656
9656
  title: null,
9657
9657
  transformBehavior: null,
9658
9658
  type: null,
9659
- typeOf: Oe,
9659
+ typeOf: Ae,
9660
9660
  to: null,
9661
9661
  transform: null,
9662
9662
  transformOrigin: null,
@@ -9700,7 +9700,7 @@ const $a = Dt({
9700
9700
  }), ih = /^data[-\w.:]+$/i, bo = /-[a-z]/g, oh = /[A-Z]/g;
9701
9701
  function ah(e, t) {
9702
9702
  const n = Ir(t);
9703
- let r = t, i = Ye;
9703
+ let r = t, i = Be;
9704
9704
  if (n in e.normal)
9705
9705
  return e.property[e.normal[n]];
9706
9706
  if (n.length > 4 && n.slice(0, 4) === "data" && ih.test(t)) {
@@ -9773,7 +9773,7 @@ var Va = { exports: {} }, le = {};
9773
9773
  */
9774
9774
  var Wr = Symbol.for("react.element"), Gr = Symbol.for("react.portal"), Nn = Symbol.for("react.fragment"), kn = Symbol.for("react.strict_mode"), jn = Symbol.for("react.profiler"), En = Symbol.for("react.provider"), Cn = Symbol.for("react.context"), fh = Symbol.for("react.server_context"), An = Symbol.for("react.forward_ref"), Sn = Symbol.for("react.suspense"), On = Symbol.for("react.suspense_list"), zn = Symbol.for("react.memo"), Ln = Symbol.for("react.lazy"), dh = Symbol.for("react.offscreen"), Wa;
9775
9775
  Wa = Symbol.for("react.module.reference");
9776
- function He(e) {
9776
+ function Qe(e) {
9777
9777
  if (typeof e == "object" && e !== null) {
9778
9778
  var t = e.$$typeof;
9779
9779
  switch (t) {
@@ -9822,45 +9822,45 @@ le.isConcurrentMode = function() {
9822
9822
  return !1;
9823
9823
  };
9824
9824
  le.isContextConsumer = function(e) {
9825
- return He(e) === Cn;
9825
+ return Qe(e) === Cn;
9826
9826
  };
9827
9827
  le.isContextProvider = function(e) {
9828
- return He(e) === En;
9828
+ return Qe(e) === En;
9829
9829
  };
9830
9830
  le.isElement = function(e) {
9831
9831
  return typeof e == "object" && e !== null && e.$$typeof === Wr;
9832
9832
  };
9833
9833
  le.isForwardRef = function(e) {
9834
- return He(e) === An;
9834
+ return Qe(e) === An;
9835
9835
  };
9836
9836
  le.isFragment = function(e) {
9837
- return He(e) === Nn;
9837
+ return Qe(e) === Nn;
9838
9838
  };
9839
9839
  le.isLazy = function(e) {
9840
- return He(e) === Ln;
9840
+ return Qe(e) === Ln;
9841
9841
  };
9842
9842
  le.isMemo = function(e) {
9843
- return He(e) === zn;
9843
+ return Qe(e) === zn;
9844
9844
  };
9845
9845
  le.isPortal = function(e) {
9846
- return He(e) === Gr;
9846
+ return Qe(e) === Gr;
9847
9847
  };
9848
9848
  le.isProfiler = function(e) {
9849
- return He(e) === jn;
9849
+ return Qe(e) === jn;
9850
9850
  };
9851
9851
  le.isStrictMode = function(e) {
9852
- return He(e) === kn;
9852
+ return Qe(e) === kn;
9853
9853
  };
9854
9854
  le.isSuspense = function(e) {
9855
- return He(e) === Sn;
9855
+ return Qe(e) === Sn;
9856
9856
  };
9857
9857
  le.isSuspenseList = function(e) {
9858
- return He(e) === On;
9858
+ return Qe(e) === On;
9859
9859
  };
9860
9860
  le.isValidElementType = function(e) {
9861
9861
  return typeof e == "string" || typeof e == "function" || e === Nn || e === jn || e === kn || e === Sn || e === On || e === dh || typeof e == "object" && e !== null && (e.$$typeof === Ln || e.$$typeof === zn || e.$$typeof === En || e.$$typeof === Cn || e.$$typeof === An || e.$$typeof === Wa || e.getModuleId !== void 0);
9862
9862
  };
9863
- le.typeOf = He;
9863
+ le.typeOf = Qe;
9864
9864
  Va.exports = le;
9865
9865
  var hh = Va.exports;
9866
9866
  const gh = /* @__PURE__ */ it(hh);
@@ -10180,17 +10180,17 @@ Xr.propTypes = {
10180
10180
  };
10181
10181
  const Xa = () => {
10182
10182
  var s, u, c;
10183
- const { conversationScreen: e, xpertKey: t } = Le(_e), n = `${t}-maintenance-banner`, [r, i] = ye(
10184
- Ee.get(n) === void 0
10183
+ const { conversationScreen: e, xpertKey: t } = Oe(ze), n = `${t}-maintenance-banner`, [r, i] = ye(
10184
+ ke.get(n) === void 0
10185
10185
  ), o = /* @__PURE__ */ new Date(), a = new Date(
10186
10186
  (s = e == null ? void 0 : e.maintenanceBanner) == null ? void 0 : s.endDateTime
10187
10187
  );
10188
10188
  if (!((u = e == null ? void 0 : e.maintenanceBanner) != null && u.enabled) || !((c = e == null ? void 0 : e.maintenanceBanner) != null && c.text) || o > a || !r)
10189
10189
  return null;
10190
10190
  const l = () => {
10191
- Ee.set(n, "1", { expires: 1 }), i(!1);
10191
+ ke.set(n, "1", { expires: 1 }), i(!1);
10192
10192
  };
10193
- return /* @__PURE__ */ v.jsxs(
10193
+ return /* @__PURE__ */ T.jsxs(
10194
10194
  "div",
10195
10195
  {
10196
10196
  role: "alert",
@@ -10198,8 +10198,8 @@ const Xa = () => {
10198
10198
  className: "xpert-chatbot-popup__chatbot-maintenance-banner",
10199
10199
  "data-testid": "maintenance-banner",
10200
10200
  children: [
10201
- /* @__PURE__ */ v.jsxs("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__header", children: [
10202
- /* @__PURE__ */ v.jsx(
10201
+ /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__header", children: [
10202
+ /* @__PURE__ */ T.jsx(
10203
10203
  rt,
10204
10204
  {
10205
10205
  icon: "material-symbols:warning",
@@ -10207,14 +10207,14 @@ const Xa = () => {
10207
10207
  color: "#eed202"
10208
10208
  }
10209
10209
  ),
10210
- /* @__PURE__ */ v.jsx("strong", { children: e.maintenanceBanner.header }),
10211
- /* @__PURE__ */ v.jsx(
10210
+ /* @__PURE__ */ T.jsx("strong", { children: e.maintenanceBanner.header }),
10211
+ /* @__PURE__ */ T.jsx(
10212
10212
  "button",
10213
10213
  {
10214
10214
  className: "xpert-chatbot-popup__chatbot-maintenance-banner__close-btn",
10215
10215
  "aria-label": "Close maintenance banner",
10216
10216
  onClick: l,
10217
- children: /* @__PURE__ */ v.jsx(
10217
+ children: /* @__PURE__ */ T.jsx(
10218
10218
  rt,
10219
10219
  {
10220
10220
  icon: "material-symbols:close",
@@ -10225,7 +10225,7 @@ const Xa = () => {
10225
10225
  }
10226
10226
  )
10227
10227
  ] }),
10228
- /* @__PURE__ */ v.jsx("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__body", children: /* @__PURE__ */ v.jsx("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__text", children: /* @__PURE__ */ v.jsx(Xr, { linkTarget: "_blank", children: e.maintenanceBanner.text }) }) })
10228
+ /* @__PURE__ */ T.jsx("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__body", children: /* @__PURE__ */ T.jsx("div", { className: "xpert-chatbot-popup__chatbot-maintenance-banner__text", children: /* @__PURE__ */ T.jsx(Xr, { linkTarget: "_blank", children: e.maintenanceBanner.text }) }) })
10229
10229
  ]
10230
10230
  }
10231
10231
  );
@@ -10244,12 +10244,12 @@ function Kr({
10244
10244
  loading: s,
10245
10245
  userInput: u
10246
10246
  }) {
10247
- const { primaryColor: c } = Le(_e);
10247
+ const { primaryColor: c } = Oe(ze);
10248
10248
  return Me(() => {
10249
10249
  var f;
10250
10250
  (o || a) && ((f = l.current) == null || f.focus());
10251
- }, [a, o, l]), /* @__PURE__ */ v.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
10252
- /* @__PURE__ */ v.jsx(
10251
+ }, [a, o, l]), /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
10252
+ /* @__PURE__ */ T.jsx(
10253
10253
  "textarea",
10254
10254
  {
10255
10255
  disabled: s,
@@ -10278,7 +10278,7 @@ function Kr({
10278
10278
  }
10279
10279
  }
10280
10280
  ),
10281
- /* @__PURE__ */ v.jsx(
10281
+ /* @__PURE__ */ T.jsx(
10282
10282
  "button",
10283
10283
  {
10284
10284
  disabled: s,
@@ -10287,7 +10287,7 @@ function Kr({
10287
10287
  f.preventDefault(), i(u);
10288
10288
  },
10289
10289
  "aria-label": "Send message",
10290
- children: /* @__PURE__ */ v.jsx(rt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
10290
+ children: /* @__PURE__ */ T.jsx(rt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
10291
10291
  }
10292
10292
  )
10293
10293
  ] });
@@ -10310,15 +10310,15 @@ Kr.defaultProps = {
10310
10310
  hasXpertMessages: !1
10311
10311
  };
10312
10312
  function Ka({ message: e, id: t, onFeedbackThumbSelection: n }) {
10313
- return /* @__PURE__ */ v.jsxs("div", { className: "xpert-chatbot-popup__feedback", children: [
10314
- /* @__PURE__ */ v.jsx(
10313
+ return /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-popup__feedback", children: [
10314
+ /* @__PURE__ */ T.jsx(
10315
10315
  "button",
10316
10316
  {
10317
10317
  className: `xpert-chatbot-popup__feedback--btn-up
10318
10318
  ${e.feedbackThumbType === "UP" ? "xpert-chatbot-popup__feedback--btn-up-selected" : ""}`,
10319
10319
  onClick: () => n(t, "UP"),
10320
10320
  "aria-label": "I like this response",
10321
- children: /* @__PURE__ */ v.jsx(
10321
+ children: /* @__PURE__ */ T.jsx(
10322
10322
  rt,
10323
10323
  {
10324
10324
  className: "xpert-chatbot-popup__feedback--btn-up-icon",
@@ -10327,7 +10327,7 @@ function Ka({ message: e, id: t, onFeedbackThumbSelection: n }) {
10327
10327
  )
10328
10328
  }
10329
10329
  ),
10330
- /* @__PURE__ */ v.jsx(
10330
+ /* @__PURE__ */ T.jsx(
10331
10331
  "button",
10332
10332
  {
10333
10333
  style: { marginLeft: "-0.7rem" },
@@ -10335,7 +10335,7 @@ function Ka({ message: e, id: t, onFeedbackThumbSelection: n }) {
10335
10335
  ${e.feedbackThumbType === "DOWN" ? "xpert-chatbot-popup__feedback--btn-down-selected" : ""}`,
10336
10336
  onClick: () => n(t, "DOWN"),
10337
10337
  "aria-label": "I do not like this response",
10338
- children: /* @__PURE__ */ v.jsx(
10338
+ children: /* @__PURE__ */ T.jsx(
10339
10339
  rt,
10340
10340
  {
10341
10341
  className: "xpert-chatbot-popup__feedback--btn-down-icon",
@@ -10378,13 +10378,13 @@ function _n({
10378
10378
  text: a,
10379
10379
  userTrackingName: l
10380
10380
  }) {
10381
- const [s, u] = ye(!0), { primaryColor: c, xpertKey: f, userTracking: m, conversationScreen: p } = Le(_e), D = Ht(
10381
+ const [s, u] = ye(!0), { primaryColor: c, xpertKey: f, userTracking: m, conversationScreen: p } = Oe(ze), D = Ht(
10382
10382
  (b) => {
10383
10383
  var z, E, _, Q;
10384
- ((z = b == null ? void 0 : b.data) == null ? void 0 : z.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (E = window == null ? void 0 : window.OnetrustActiveGroups) != null && E.includes("C0003")) && Ee.set(`${f}-live-chat-open`, 1, {
10384
+ ((z = b == null ? void 0 : b.data) == null ? void 0 : z.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (E = window == null ? void 0 : window.OnetrustActiveGroups) != null && E.includes("C0003")) && ke.set(`${f}-live-chat-open`, 1, {
10385
10385
  expires: 1,
10386
10386
  path: "/"
10387
- }), ((_ = b == null ? void 0 : b.data) == null ? void 0 : _.type) === "connection" && ((Q = b == null ? void 0 : b.data) == null ? void 0 : Q.state) === "disconnected" && Ee.remove(`${f}-live-chat-open`);
10387
+ }), ((_ = b == null ? void 0 : b.data) == null ? void 0 : _.type) === "connection" && ((Q = b == null ? void 0 : b.data) == null ? void 0 : Q.state) === "disconnected" && ke.remove(`${f}-live-chat-open`);
10388
10388
  },
10389
10389
  [f]
10390
10390
  ), x = Ht(
@@ -10420,18 +10420,18 @@ function _n({
10420
10420
  }
10421
10421
  }), t(!0), window.f9_postMessage({ type: "toggle" });
10422
10422
  };
10423
- return /* @__PURE__ */ v.jsxs("div", { title: "Talk to a live agent at anytime.", style: i, children: [
10424
- s && r && /* @__PURE__ */ v.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
10425
- /* @__PURE__ */ v.jsx(
10423
+ return /* @__PURE__ */ T.jsxs("div", { title: "Talk to a live agent at anytime.", style: i, children: [
10424
+ s && r && /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
10425
+ /* @__PURE__ */ T.jsx(
10426
10426
  "div",
10427
10427
  {
10428
10428
  style: { backgroundColor: c },
10429
10429
  className: "xpert-chatbot-popup__live-chat--message-border"
10430
10430
  }
10431
10431
  ),
10432
- /* @__PURE__ */ v.jsx("div", { children: "Talk to a live agent at anytime." })
10432
+ /* @__PURE__ */ T.jsx("div", { children: "Talk to a live agent at anytime." })
10433
10433
  ] }),
10434
- /* @__PURE__ */ v.jsxs(
10434
+ /* @__PURE__ */ T.jsxs(
10435
10435
  "button",
10436
10436
  {
10437
10437
  type: "button",
@@ -10440,7 +10440,7 @@ function _n({
10440
10440
  style: { position: "relative" },
10441
10441
  className: o,
10442
10442
  children: [
10443
- /* @__PURE__ */ v.jsx(
10443
+ /* @__PURE__ */ T.jsx(
10444
10444
  "img",
10445
10445
  {
10446
10446
  height: "24px",
@@ -10449,7 +10449,7 @@ function _n({
10449
10449
  alt: "Open live chat window icon"
10450
10450
  }
10451
10451
  ),
10452
- a && /* @__PURE__ */ v.jsx("span", { style: { marginLeft: "0.675rem" }, children: a })
10452
+ a && /* @__PURE__ */ T.jsx("span", { style: { marginLeft: "0.675rem" }, children: a })
10453
10453
  ]
10454
10454
  }
10455
10455
  )
@@ -10485,22 +10485,22 @@ const qh = "Sure, I can get you to someone who can help.", Fn = ({
10485
10485
  submitEvent: a,
10486
10486
  setLiveChatOpen: l,
10487
10487
  isTestUser: s
10488
- }) => /* @__PURE__ */ v.jsx(
10488
+ }) => /* @__PURE__ */ T.jsx(
10489
10489
  "section",
10490
10490
  {
10491
10491
  "aria-label": "The bot said",
10492
10492
  className: "xpert-chatbot-popup__bubble--group",
10493
10493
  ref: i,
10494
- children: /* @__PURE__ */ v.jsxs("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: [
10495
- /* @__PURE__ */ v.jsx(
10494
+ children: /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: [
10495
+ /* @__PURE__ */ T.jsx(
10496
10496
  "div",
10497
10497
  {
10498
10498
  "data-testid": "message-container",
10499
10499
  className: "xpert-chatbot-popup__bubble--assistant",
10500
10500
  style: { maxWidth: n ? "85%" : "67%" },
10501
- children: t.liveAgent ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
10502
- /* @__PURE__ */ v.jsx("div", { children: qh }),
10503
- /* @__PURE__ */ v.jsx(
10501
+ children: t.liveAgent ? /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
10502
+ /* @__PURE__ */ T.jsx("div", { children: qh }),
10503
+ /* @__PURE__ */ T.jsx(
10504
10504
  _n,
10505
10505
  {
10506
10506
  submitEvent: a,
@@ -10512,13 +10512,13 @@ const qh = "Sure, I can get you to someone who can help.", Fn = ({
10512
10512
  userTrackingName: "assistant.response.clicked"
10513
10513
  }
10514
10514
  )
10515
- ] }) : /* @__PURE__ */ v.jsx(
10515
+ ] }) : /* @__PURE__ */ T.jsx(
10516
10516
  Xr,
10517
10517
  {
10518
10518
  components: {
10519
10519
  a: (u) => (
10520
10520
  // eslint-disable-next-line jsx-a11y/interactive-supports-focus
10521
- /* @__PURE__ */ v.jsx(
10521
+ /* @__PURE__ */ T.jsx(
10522
10522
  "a",
10523
10523
  {
10524
10524
  ...u,
@@ -10537,7 +10537,7 @@ const qh = "Sure, I can get you to someone who can help.", Fn = ({
10537
10537
  )
10538
10538
  }
10539
10539
  ),
10540
- t.disableFeedback ? null : /* @__PURE__ */ v.jsx(
10540
+ t.disableFeedback ? null : /* @__PURE__ */ T.jsx(
10541
10541
  Ka,
10542
10542
  {
10543
10543
  id: e,
@@ -10566,11 +10566,11 @@ Fn.defaultProps = {
10566
10566
  };
10567
10567
  Fn.displayName = "AssistantMessageBubble";
10568
10568
  const Vh = Fn, Ja = () => {
10569
- const { disclaimer: e } = Le(_e), t = We(null);
10569
+ const { disclaimer: e } = Oe(ze), t = We(null);
10570
10570
  return Me(() => {
10571
10571
  var n;
10572
10572
  (n = t == null ? void 0 : t.current) == null || n.focus();
10573
- }, []), /* @__PURE__ */ v.jsxs(
10573
+ }, []), /* @__PURE__ */ T.jsxs(
10574
10574
  "div",
10575
10575
  {
10576
10576
  ref: t,
@@ -10579,9 +10579,9 @@ const Vh = Fn, Ja = () => {
10579
10579
  "aria-live": "assertive",
10580
10580
  className: "xpert-chatbot-popup__conversations_disclaimer--text",
10581
10581
  children: [
10582
- /* @__PURE__ */ v.jsx("span", { children: e.text }),
10583
- /* @__PURE__ */ v.jsxs("span", { style: { marginLeft: "0.1875rem" }, children: [
10584
- /* @__PURE__ */ v.jsx(
10582
+ /* @__PURE__ */ T.jsx("span", { children: e.text }),
10583
+ /* @__PURE__ */ T.jsxs("span", { style: { marginLeft: "0.1875rem" }, children: [
10584
+ /* @__PURE__ */ T.jsx(
10585
10585
  "a",
10586
10586
  {
10587
10587
  href: e.privacyPolicyLink,
@@ -10600,12 +10600,12 @@ const Vh = Fn, Ja = () => {
10600
10600
  Ja.displayName = "ConversationScreenDisclaimer";
10601
10601
  const Wh = Ja, Jr = ({ loading: e, onPromptClick: t }) => {
10602
10602
  var i;
10603
- const { primaryColor: n, conversationScreen: r } = Le(_e);
10604
- return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
10605
- /* @__PURE__ */ v.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
10603
+ const { primaryColor: n, conversationScreen: r } = Oe(ze);
10604
+ return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
10605
+ /* @__PURE__ */ T.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
10606
10606
  (i = r.prompts) == null ? void 0 : i.map((o) => {
10607
10607
  var a;
10608
- return /* @__PURE__ */ v.jsx(
10608
+ return /* @__PURE__ */ T.jsx(
10609
10609
  "button",
10610
10610
  {
10611
10611
  className: "xpert-chatbot-popup__bubble--prompt",
@@ -10629,7 +10629,7 @@ Jr.propTypes = {
10629
10629
  onPromptClick: N.func.isRequired
10630
10630
  };
10631
10631
  Jr.displayName = "PromptList";
10632
- const Gh = Jr, ei = ({ message: e, isNormalSize: t }) => /* @__PURE__ */ v.jsx("div", { role: "status", className: "xpert-chatbot-popup__bubble--group", children: /* @__PURE__ */ v.jsx("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: /* @__PURE__ */ v.jsx(
10632
+ const Gh = Jr, ei = ({ message: e, isNormalSize: t }) => /* @__PURE__ */ T.jsx("div", { role: "status", className: "xpert-chatbot-popup__bubble--group", children: /* @__PURE__ */ T.jsx("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: /* @__PURE__ */ T.jsx(
10633
10633
  "div",
10634
10634
  {
10635
10635
  "data-testid": "message-container",
@@ -10645,8 +10645,8 @@ ei.propTypes = {
10645
10645
  ei.displayName = "SystemMessageBubble";
10646
10646
  const Zh = ei, ti = ({ content: e, isNormalSize: t }) => {
10647
10647
  var i;
10648
- const { primaryColor: n, conversationScreen: r } = Le(_e);
10649
- return /* @__PURE__ */ v.jsx(
10648
+ const { primaryColor: n, conversationScreen: r } = Oe(ze);
10649
+ return /* @__PURE__ */ T.jsx(
10650
10650
  "section",
10651
10651
  {
10652
10652
  "aria-label": "The user said",
@@ -10676,24 +10676,24 @@ const Xh = ti, Pn = ({
10676
10676
  setLiveChatOpen: l,
10677
10677
  isTestUser: s
10678
10678
  }) => {
10679
- const { conversationScreen: u } = Le(_e), { prompts: c, systemMessage: f } = u, m = We(null);
10679
+ const { conversationScreen: u } = Oe(ze), { prompts: c, systemMessage: f } = u, m = We(null);
10680
10680
  return Me(() => {
10681
10681
  var p;
10682
10682
  (p = m.current) == null || p.scrollIntoView({
10683
10683
  behavior: "instant",
10684
10684
  block: "start"
10685
10685
  });
10686
- }, [e.length]), /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
10687
- /* @__PURE__ */ v.jsx(Wh, {}),
10688
- (c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ v.jsx(Gh, { loading: t, onPromptClick: i }),
10689
- f && /* @__PURE__ */ v.jsx(
10686
+ }, [e.length]), /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
10687
+ /* @__PURE__ */ T.jsx(Wh, {}),
10688
+ (c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ T.jsx(Gh, { loading: t, onPromptClick: i }),
10689
+ f && /* @__PURE__ */ T.jsx(
10690
10690
  Zh,
10691
10691
  {
10692
10692
  message: f,
10693
10693
  isNormalSize: n
10694
10694
  }
10695
10695
  ),
10696
- /* @__PURE__ */ v.jsx(
10696
+ /* @__PURE__ */ T.jsx(
10697
10697
  "section",
10698
10698
  {
10699
10699
  id: "chat-content",
@@ -10704,7 +10704,7 @@ const Xh = ti, Pn = ({
10704
10704
  "aria-busy": t,
10705
10705
  style: { display: "flex", flexDirection: "column" },
10706
10706
  children: e.map(
10707
- (p, D) => p.role === "assistant" ? /* @__PURE__ */ v.jsx(
10707
+ (p, D) => p.role === "assistant" ? /* @__PURE__ */ T.jsx(
10708
10708
  Vh,
10709
10709
  {
10710
10710
  index: D,
@@ -10718,7 +10718,7 @@ const Xh = ti, Pn = ({
10718
10718
  isTestUser: s
10719
10719
  },
10720
10720
  `${p.role}-${D}`
10721
- ) : /* @__PURE__ */ v.jsx(
10721
+ ) : /* @__PURE__ */ T.jsx(
10722
10722
  Xh,
10723
10723
  {
10724
10724
  content: p.content,
@@ -10765,17 +10765,17 @@ function el({ disableScroll: e }) {
10765
10765
  behavior: "smooth",
10766
10766
  block: "end"
10767
10767
  });
10768
- }, [e]), /* @__PURE__ */ v.jsx(
10768
+ }, [e]), /* @__PURE__ */ T.jsx(
10769
10769
  "div",
10770
10770
  {
10771
10771
  "aria-label": "Loading messages",
10772
10772
  ref: t,
10773
10773
  role: "alert",
10774
10774
  className: "xpert_chatbot__loader__wrapper",
10775
- children: /* @__PURE__ */ v.jsxs("div", { className: "xpert_chatbot__loader__ellipsis", children: [
10776
- /* @__PURE__ */ v.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--first" }),
10777
- /* @__PURE__ */ v.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--second" }),
10778
- /* @__PURE__ */ v.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--third" })
10775
+ children: /* @__PURE__ */ T.jsxs("div", { className: "xpert_chatbot__loader__ellipsis", children: [
10776
+ /* @__PURE__ */ T.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--first" }),
10777
+ /* @__PURE__ */ T.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--second" }),
10778
+ /* @__PURE__ */ T.jsx("div", { className: "xpert_chatbot__loader__ellipsis-bullets--third" })
10779
10779
  ] })
10780
10780
  }
10781
10781
  );
@@ -10790,7 +10790,7 @@ const Jh = () => {
10790
10790
  (t = e.current) == null || t.scrollIntoView({
10791
10791
  behavior: "instant"
10792
10792
  });
10793
- }, []), /* @__PURE__ */ v.jsxs(
10793
+ }, []), /* @__PURE__ */ T.jsxs(
10794
10794
  "div",
10795
10795
  {
10796
10796
  role: "alert",
@@ -10807,7 +10807,7 @@ const Jh = () => {
10807
10807
  "aria-describedby": "Oops! Something went wrong. Try again later.",
10808
10808
  ref: e,
10809
10809
  children: [
10810
- /* @__PURE__ */ v.jsx(
10810
+ /* @__PURE__ */ T.jsx(
10811
10811
  rt,
10812
10812
  {
10813
10813
  icon: "material-symbols:thunderstorm",
@@ -10821,7 +10821,7 @@ const Jh = () => {
10821
10821
  }
10822
10822
  }
10823
10823
  ),
10824
- /* @__PURE__ */ v.jsxs(
10824
+ /* @__PURE__ */ T.jsxs(
10825
10825
  "div",
10826
10826
  {
10827
10827
  style: {
@@ -10832,14 +10832,14 @@ const Jh = () => {
10832
10832
  textAlign: "center"
10833
10833
  },
10834
10834
  children: [
10835
- /* @__PURE__ */ v.jsx(
10835
+ /* @__PURE__ */ T.jsx(
10836
10836
  "span",
10837
10837
  {
10838
10838
  style: { margin: "1.5rem 0", fontWeight: "bold", fontSize: "18px" },
10839
10839
  children: "Oops! Something went wrong"
10840
10840
  }
10841
10841
  ),
10842
- /* @__PURE__ */ v.jsx("span", { style: { marginBottom: "1.5rem", color: "red" }, children: "Please try again later." })
10842
+ /* @__PURE__ */ T.jsx("span", { style: { marginBottom: "1.5rem", color: "red" }, children: "Please try again later." })
10843
10843
  ]
10844
10844
  }
10845
10845
  )
@@ -10856,12 +10856,12 @@ function tl({
10856
10856
  style: o = {}
10857
10857
  }) {
10858
10858
  var D;
10859
- const { proactiveMessage: a } = Le(_e), [l, s] = ye(!0), [u, c] = ye(!1), f = l && (!(window != null && window.OnetrustActiveGroups) || ((D = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : D.includes("C0003"))) && Ee.get(t) === void 0;
10859
+ const { proactiveMessage: a } = Oe(ze), [l, s] = ye(!0), [u, c] = ye(!1), f = l && (!(window != null && window.OnetrustActiveGroups) || ((D = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : D.includes("C0003"))) && ke.get(t) === void 0;
10860
10860
  Me(() => {
10861
10861
  var x;
10862
10862
  (x = window == null ? void 0 : window.OneTrust) == null || x.OnConsentChanged(() => {
10863
10863
  var k;
10864
- !((k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && Ee.get(t) !== void 0 && Ee.remove(t);
10864
+ !((k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && ke.get(t) !== void 0 && ke.remove(t);
10865
10865
  });
10866
10866
  }, [t]), Me(() => {
10867
10867
  var x;
@@ -10883,9 +10883,9 @@ function tl({
10883
10883
  expires: b,
10884
10884
  path: "/"
10885
10885
  };
10886
- Ee.set(x, k, z);
10886
+ ke.set(x, k, z);
10887
10887
  };
10888
- return !u || !f ? null : /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsxs(
10888
+ return !u || !f ? null : /* @__PURE__ */ T.jsx("div", { children: /* @__PURE__ */ T.jsxs(
10889
10889
  "div",
10890
10890
  {
10891
10891
  id: "xpert_chatbot__proactive-message",
@@ -10893,24 +10893,24 @@ function tl({
10893
10893
  className: "xpert_chatbot__proactive-message",
10894
10894
  style: o,
10895
10895
  children: [
10896
- /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsx(
10896
+ /* @__PURE__ */ T.jsx("div", { children: /* @__PURE__ */ T.jsx(
10897
10897
  "button",
10898
10898
  {
10899
10899
  className: "xpert_chatbot__proactive-message__container",
10900
10900
  onClick: n,
10901
10901
  "aria-label": a.text,
10902
10902
  type: "button",
10903
- children: /* @__PURE__ */ v.jsx("div", { className: "xpert_chatbot__proactive-message__text", children: e })
10903
+ children: /* @__PURE__ */ T.jsx("div", { className: "xpert_chatbot__proactive-message__text", children: e })
10904
10904
  }
10905
10905
  ) }),
10906
- /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsx(
10906
+ /* @__PURE__ */ T.jsx("div", { children: /* @__PURE__ */ T.jsx(
10907
10907
  "button",
10908
10908
  {
10909
10909
  className: "xpert_chatbot__proactive-message__close",
10910
10910
  onClick: m,
10911
10911
  "aria-label": "Close proactive message",
10912
10912
  type: "button",
10913
- children: /* @__PURE__ */ v.jsx(
10913
+ children: /* @__PURE__ */ T.jsx(
10914
10914
  rt,
10915
10915
  {
10916
10916
  style: {
@@ -11030,7 +11030,7 @@ function ni({ submitEventExternal: e }) {
11030
11030
  userTracking: o,
11031
11031
  webExperimentation: a,
11032
11032
  xpertKey: l
11033
- } = Le(_e), s = ot(), [, u] = ye(!1), [, c] = ye(!1), [f, m] = ye(!1), [p, D] = ye(ag), [x, k] = ye(!1), [b, z] = ye(!1), [E, _] = ye(!1), [Q, M] = ye(""), [L, Y] = ye(!1), [q, ee] = ye(!0), [S, w] = ye(!1), [j, O] = ye(!1), [P, $] = ye(!1), G = We(null), Z = We(null), ie = We(null), h = Ee.get(`${l}-test`) === "1";
11033
+ } = Oe(ze), s = ot(), [, u] = ye(!1), [, c] = ye(!1), [f, m] = ye(!1), [p, D] = ye(ag), [x, k] = ye(!1), [b, z] = ye(!1), [E, _] = ye(!1), [Q, M] = ye(""), [L, Y] = ye(!1), [q, ee] = ye(!0), [S, w] = ye(!1), [j, O] = ye(!1), [P, $] = ye(!1), G = We(null), Z = We(null), ie = We(null), h = ke.get(`${l}-test`) === "1";
11034
11034
  eg(
11035
11035
  n.liveChat.enabled,
11036
11036
  E,
@@ -11049,7 +11049,7 @@ function ni({ submitEventExternal: e }) {
11049
11049
  ), we = Ht(async () => {
11050
11050
  if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
11051
11051
  try {
11052
- const F = Ee.get(
11052
+ const F = ke.get(
11053
11053
  `${l}-conversation-history-id`
11054
11054
  );
11055
11055
  if (!F)
@@ -11065,7 +11065,7 @@ function ni({ submitEventExternal: e }) {
11065
11065
  }
11066
11066
  );
11067
11067
  if (W.status === 404) {
11068
- Ee.remove(`${l}-conversation-history-id`);
11068
+ ke.remove(`${l}-conversation-history-id`);
11069
11069
  return;
11070
11070
  }
11071
11071
  if (!W.ok)
@@ -11105,48 +11105,59 @@ function ni({ submitEventExternal: e }) {
11105
11105
  }, [a.enabled, a.experimentName]), Me(() => {
11106
11106
  let F, W;
11107
11107
  return F = setInterval(() => {
11108
- var C, U, K, J, ue;
11109
- console.log(
11110
- "Chatbot - Finding Mobile banners",
11111
- s,
11112
- f
11113
- );
11114
- const se = (C = document.querySelectorAll(".branch-banner-ios")) == null ? void 0 : C[0], Ie = (U = document.querySelectorAll(
11108
+ var C, U, K;
11109
+ const se = !!document.querySelector(".branch-banner-ios"), Te = !!document.querySelector(
11115
11110
  ".branch-banner-android"
11116
- )) == null ? void 0 : U[0], T = (K = document.querySelectorAll(
11111
+ ), v = !!document.querySelector(
11117
11112
  ".onetrust-banner-sdk"
11118
- )) == null ? void 0 : K[0];
11119
- if ((se || Ie || T && ((J = T == null ? void 0 : T.style) == null ? void 0 : J.display) !== "none") && s && !f && (console.log("Chatbot - Mobile banners found"), m(!0)), !se && !Ie && (!T || ((ue = T == null ? void 0 : T.style) == null ? void 0 : ue.display) === "none") && s && f) {
11113
+ );
11114
+ if (console.log(
11115
+ "Chatbot - Finding Mobile banners 1",
11116
+ s,
11117
+ f,
11118
+ se,
11119
+ Te,
11120
+ v,
11121
+ ((C = v == null ? void 0 : v.style) == null ? void 0 : C.display) !== "none"
11122
+ ), (se || Te || v && ((U = v == null ? void 0 : v.style) == null ? void 0 : U.display) !== "none") && s && !f && (console.log("Chatbot - Mobile banners found"), m(!0)), !se && !Te && (!v || ((K = v == null ? void 0 : v.style) == null ? void 0 : K.display) === "none") && s && f) {
11120
11123
  console.log("Chatbot - Mobile banners not found");
11121
- const Te = document.getElementById(
11124
+ const J = document.getElementById(
11122
11125
  "xpert_chatbot__proactive-message"
11123
11126
  );
11124
- Te && (Te.style.bottom = "6rem");
11125
- const De = document.getElementById(
11127
+ J && (J.style.bottom = "6rem");
11128
+ const de = document.getElementById(
11126
11129
  "xpert_chatbot__floating-action-btn"
11127
11130
  );
11128
- De && (De.style.bottom = "0rem"), clearInterval(F), clearTimeout(W);
11131
+ de && (de.style.bottom = "0rem"), clearInterval(F), clearTimeout(W);
11129
11132
  }
11130
11133
  }, 1e3), W = setTimeout(() => {
11131
- var C, U, K, J, ue;
11134
+ var C, U;
11132
11135
  console.log("Chatbot - Mobile banner search time out"), clearInterval(F);
11133
- const se = (C = document.querySelectorAll(".branch-banner-ios")) == null ? void 0 : C[0], Ie = (U = document.querySelectorAll(
11136
+ const se = !!document.querySelector(".branch-banner-ios"), Te = !!document.querySelector(
11134
11137
  ".branch-banner-android"
11135
- )) == null ? void 0 : U[0], T = (K = document.querySelectorAll(
11138
+ ), v = !!document.querySelector(
11136
11139
  ".onetrust-banner-sdk"
11137
- )) == null ? void 0 : K[0];
11138
- if ((se || Ie || T && ((J = T == null ? void 0 : T.style) == null ? void 0 : J.display) !== "none") && s && !f && (console.log("Chatbot - Mobile banners found"), m(!0)), !se && !Ie && (!T || ((ue = T == null ? void 0 : T.style) == null ? void 0 : ue.display) === "none") && s && f) {
11140
+ );
11141
+ if (console.log(
11142
+ "Chatbot - Finding Mobile banners 2",
11143
+ s,
11144
+ f,
11145
+ se,
11146
+ Te,
11147
+ v,
11148
+ ((C = v == null ? void 0 : v.style) == null ? void 0 : C.display) !== "none"
11149
+ ), !se && !Te && (!v || ((U = v == null ? void 0 : v.style) == null ? void 0 : U.display) === "none") && s) {
11139
11150
  console.log("Chatbot - Mobile banners not found");
11140
- const Te = document.getElementById(
11151
+ const K = document.getElementById(
11141
11152
  "xpert_chatbot__proactive-message"
11142
11153
  );
11143
- Te && (Te.style.bottom = "6rem");
11144
- const De = document.getElementById(
11154
+ K && (K.style.bottom = "6rem");
11155
+ const J = document.getElementById(
11145
11156
  "xpert_chatbot__floating-action-btn"
11146
11157
  );
11147
- De && (De.style.bottom = "0rem");
11158
+ J && (J.style.bottom = "0rem");
11148
11159
  }
11149
- }, 6e4), () => {
11160
+ }, 5e3), () => {
11150
11161
  clearInterval(F), clearTimeout(W);
11151
11162
  };
11152
11163
  }, [s, f]);
@@ -11170,7 +11181,7 @@ function ni({ submitEventExternal: e }) {
11170
11181
  ), h || console.log(`Chatbot - Test user not setup: ${l}, ${h}`), null;
11171
11182
  if (o.prefix && !(($e = ie == null ? void 0 : ie.current) != null && $e.track) && !e)
11172
11183
  return console.log(`Chatbot - Segment not setup: ${l}`), null;
11173
- const Ne = () => {
11184
+ const De = () => {
11174
11185
  M(""), Z.current.value = "", Z.current.style.height = "auto";
11175
11186
  }, ae = (F, W) => {
11176
11187
  ne({
@@ -11184,12 +11195,12 @@ function ni({ submitEventExternal: e }) {
11184
11195
  conversationHistoryId: W
11185
11196
  }
11186
11197
  });
11187
- }, ke = ({
11198
+ }, Ie = ({
11188
11199
  conversationSize: F,
11189
11200
  userInputMessage: W,
11190
11201
  apiResponseMessage: be,
11191
11202
  elapsedSeconds: se,
11192
- conversationByteSize: Ie
11203
+ conversationByteSize: Te
11193
11204
  }) => {
11194
11205
  ne({
11195
11206
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
@@ -11201,7 +11212,7 @@ function ni({ submitEventExternal: e }) {
11201
11212
  userInputMessage: W,
11202
11213
  apiResponseMessage: be,
11203
11214
  elapsedSeconds: se,
11204
- conversationByteSize: Ie
11215
+ conversationByteSize: Te
11205
11216
  }
11206
11217
  });
11207
11218
  }, ve = async (F) => {
@@ -11210,7 +11221,7 @@ function ni({ submitEventExternal: e }) {
11210
11221
  return;
11211
11222
  const W = /* @__PURE__ */ new Date();
11212
11223
  $(!1), Y(!1);
11213
- const be = p.filter((ue) => ue.role === "user").length + 1;
11224
+ const be = p.filter((de) => de.role === "user").length + 1;
11214
11225
  ne({
11215
11226
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
11216
11227
  payload: {
@@ -11220,8 +11231,8 @@ function ni({ submitEventExternal: e }) {
11220
11231
  userInputMessage: F,
11221
11232
  isTestUser: h
11222
11233
  }
11223
- }), Ne();
11224
- let se = Ee.get(`${l}-conversation-history-id`) || "";
11234
+ }), De();
11235
+ let se = ke.get(`${l}-conversation-history-id`) || "";
11225
11236
  !se && n.conversationHistory.enabled ? D([
11226
11237
  {
11227
11238
  role: "user",
@@ -11234,55 +11245,55 @@ function ni({ submitEventExternal: e }) {
11234
11245
  content: F
11235
11246
  }
11236
11247
  ]), k(!0);
11237
- const Ie = [
11248
+ const Te = [
11238
11249
  ...p,
11239
11250
  {
11240
11251
  role: "user",
11241
11252
  content: F
11242
11253
  }
11243
- ].map((ue) => ({
11244
- role: ue.role,
11245
- content: ue.content
11246
- })), T = await fetch(t.endpoint, {
11254
+ ].map((de) => ({
11255
+ role: de.role,
11256
+ content: de.content
11257
+ })), v = await fetch(t.endpoint, {
11247
11258
  method: "POST",
11248
11259
  headers: {
11249
11260
  "Content-Type": "application/json",
11250
11261
  "Conversation-History-Id": se
11251
11262
  },
11252
11263
  body: JSON.stringify({
11253
- message_list: Ie,
11264
+ message_list: Te,
11254
11265
  ...t.payloadParams
11255
11266
  })
11256
11267
  });
11257
- if (!T.ok)
11258
- throw new lr(`HTTPError: ${T.status} ${T.statusText}`);
11259
- se = T.headers.get("Conversation-History-Id"), se && Ee.set(
11268
+ if (!v.ok)
11269
+ throw new lr(`HTTPError: ${v.status} ${v.statusText}`);
11270
+ se = v.headers.get("Conversation-History-Id"), se && ke.set(
11260
11271
  `${l}-conversation-history-id`,
11261
11272
  se,
11262
11273
  { expires: 1 }
11263
11274
  );
11264
- const C = await T.json(), U = C.content, K = C.live_agent;
11275
+ const C = await v.json(), U = C.content, K = C.live_agent;
11265
11276
  ae(U, se);
11266
11277
  const J = /* @__PURE__ */ new Date();
11267
- ke({
11268
- conversationByteSize: og(JSON.stringify(Ie)),
11278
+ Ie({
11279
+ conversationByteSize: og(JSON.stringify(Te)),
11269
11280
  conversationSize: p.length + 2,
11270
11281
  userInputMessage: F,
11271
11282
  apiResponseMessage: U,
11272
11283
  elapsedSeconds: rg(W, J)
11273
- }), D((ue) => [
11274
- ...ue,
11284
+ }), D((de) => [
11285
+ ...de,
11275
11286
  {
11276
11287
  role: "assistant",
11277
11288
  content: U,
11278
11289
  liveAgent: K,
11279
11290
  createdAt: /* @__PURE__ */ new Date()
11280
11291
  }
11281
- ]), O(!1), k(!1), Ne(), $(!0);
11292
+ ]), O(!1), k(!1), De(), $(!0);
11282
11293
  } catch (W) {
11283
- k(!1), Ne(), Y(!0), console.error(W);
11294
+ k(!1), De(), Y(!0), console.error(W);
11284
11295
  }
11285
- }, Fe = () => {
11296
+ }, Le = () => {
11286
11297
  _(!1), z(!0), ne({
11287
11298
  name: `${o.prefix}.bi.xpert.chatbot.action.button.clicked`,
11288
11299
  payload: {
@@ -11291,7 +11302,7 @@ function ni({ submitEventExternal: e }) {
11291
11302
  isTestUser: h
11292
11303
  }
11293
11304
  });
11294
- }, Pe = (F) => {
11305
+ }, _e = (F) => {
11295
11306
  ne({
11296
11307
  name: `${o.prefix}.bi.xpert.chatbot.${F ? "normal" : "expand"}.size.button.clicked`,
11297
11308
  payload: {
@@ -11339,7 +11350,7 @@ function ni({ submitEventExternal: e }) {
11339
11350
  }, mt = (F) => {
11340
11351
  F.key === "Enter" && Q.trim() === "" || F.key === "Enter" && !F.shiftKey && (F.preventDefault(), ve(Q));
11341
11352
  }, yt = (F, W = "") => {
11342
- const be = p.map((se, Ie) => F === Ie ? (ne({
11353
+ const be = p.map((se, Te) => F === Te ? (ne({
11343
11354
  name: `${o.prefix}.bi.xpert.chatbot.feedback.thumbs.${W.toLowerCase()}.clicked`,
11344
11355
  payload: {
11345
11356
  category: "2u",
@@ -11357,8 +11368,8 @@ function ni({ submitEventExternal: e }) {
11357
11368
  }, Je = ((Ze = r.animatedGraduate) == null ? void 0 : Ze.enabled) && a.enabled && me === "A", jt = i.enabled ? Je ? s ? i.style.mobile.animatedGraduateExperiment : i.style.animatedGraduateExperiment : s ? i.style.mobile : i.style : null;
11358
11369
  return (
11359
11370
  // do not remove this class as it's needed to turn off chatbot
11360
- /* @__PURE__ */ v.jsxs("div", { className: "xpert_chatbot", children: [
11361
- i.enabled && /* @__PURE__ */ v.jsx(
11371
+ /* @__PURE__ */ T.jsxs("div", { className: "xpert_chatbot", children: [
11372
+ i.enabled && /* @__PURE__ */ T.jsx(
11362
11373
  tl,
11363
11374
  {
11364
11375
  showMessage: !b,
@@ -11366,8 +11377,8 @@ function ni({ submitEventExternal: e }) {
11366
11377
  onClose: lt,
11367
11378
  onClick: Ke,
11368
11379
  cookieName: `${l}-proactive-message-xpert-chatbot`,
11369
- children: /* @__PURE__ */ v.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ v.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
11370
- i.textPrefix && /* @__PURE__ */ v.jsx(
11380
+ children: /* @__PURE__ */ T.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
11381
+ i.textPrefix && /* @__PURE__ */ T.jsx(
11371
11382
  "span",
11372
11383
  {
11373
11384
  style: {
@@ -11376,7 +11387,7 @@ function ni({ submitEventExternal: e }) {
11376
11387
  children: i.textPrefix
11377
11388
  }
11378
11389
  ),
11379
- i.showEmoji && /* @__PURE__ */ v.jsx(
11390
+ i.showEmoji && /* @__PURE__ */ T.jsx(
11380
11391
  "span",
11381
11392
  {
11382
11393
  role: "img",
@@ -11388,42 +11399,42 @@ function ni({ submitEventExternal: e }) {
11388
11399
  children: "👋"
11389
11400
  }
11390
11401
  ),
11391
- /* @__PURE__ */ v.jsx("span", { children: i.text })
11402
+ /* @__PURE__ */ T.jsx("span", { children: i.text })
11392
11403
  ] }) })
11393
11404
  }
11394
11405
  ),
11395
- Je && /* @__PURE__ */ v.jsx(
11406
+ Je && /* @__PURE__ */ T.jsx(
11396
11407
  Ls,
11397
11408
  {
11398
- handleFloatingActionButtonClick: Fe
11409
+ handleFloatingActionButtonClick: Le
11399
11410
  }
11400
11411
  ),
11401
- !Je && /* @__PURE__ */ v.jsx(
11412
+ !Je && /* @__PURE__ */ T.jsx(
11402
11413
  Ss,
11403
11414
  {
11404
- handleFloatingActionButtonClick: Fe
11415
+ handleFloatingActionButtonClick: Le
11405
11416
  }
11406
11417
  ),
11407
- /* @__PURE__ */ v.jsx(Fs, {}),
11408
- b && !E && /* @__PURE__ */ v.jsx(Ar, { isNormalSize: q, isMounted: S, children: /* @__PURE__ */ v.jsx(
11418
+ /* @__PURE__ */ T.jsx(Fs, {}),
11419
+ b && !E && /* @__PURE__ */ T.jsx(Ar, { isNormalSize: q, isMounted: S, children: /* @__PURE__ */ T.jsx(
11409
11420
  "div",
11410
11421
  {
11411
11422
  ref: G,
11412
11423
  style: { display: "flex", flexDirection: "column", height: "100%" },
11413
11424
  "aria-label": "XPERT Chatbot Popup",
11414
11425
  role: "dialog",
11415
- children: /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
11416
- /* @__PURE__ */ v.jsx(
11426
+ children: /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
11427
+ /* @__PURE__ */ T.jsx(
11417
11428
  da,
11418
11429
  {
11419
11430
  onClose: It,
11420
11431
  isMounted: S,
11421
11432
  isNormalSize: q,
11422
11433
  setIsMounted: w,
11423
- setIsNormalSize: Pe
11434
+ setIsNormalSize: _e
11424
11435
  }
11425
11436
  ),
11426
- /* @__PURE__ */ v.jsxs(
11437
+ /* @__PURE__ */ T.jsxs(
11427
11438
  "div",
11428
11439
  {
11429
11440
  style: {
@@ -11433,7 +11444,7 @@ function ni({ submitEventExternal: e }) {
11433
11444
  position: "relative"
11434
11445
  },
11435
11446
  children: [
11436
- /* @__PURE__ */ v.jsx(
11447
+ /* @__PURE__ */ T.jsx(
11437
11448
  Kh,
11438
11449
  {
11439
11450
  messages: p,
@@ -11447,14 +11458,14 @@ function ni({ submitEventExternal: e }) {
11447
11458
  isTestUser: h
11448
11459
  }
11449
11460
  ),
11450
- x && /* @__PURE__ */ v.jsx(el, { disableScroll: j }),
11451
- L && /* @__PURE__ */ v.jsx(lr, {})
11461
+ x && /* @__PURE__ */ T.jsx(el, { disableScroll: j }),
11462
+ L && /* @__PURE__ */ T.jsx(lr, {})
11452
11463
  ]
11453
11464
  }
11454
11465
  ),
11455
- /* @__PURE__ */ v.jsx(Bh, {}),
11456
- /* @__PURE__ */ v.jsxs("div", { style: { marginTop: "auto", display: "flex" }, children: [
11457
- n.liveChat.enabled && /* @__PURE__ */ v.jsx(
11466
+ /* @__PURE__ */ T.jsx(Bh, {}),
11467
+ /* @__PURE__ */ T.jsxs("div", { style: { marginTop: "auto", display: "flex" }, children: [
11468
+ n.liveChat.enabled && /* @__PURE__ */ T.jsx(
11458
11469
  _n,
11459
11470
  {
11460
11471
  submitEvent: ne,
@@ -11464,7 +11475,7 @@ function ni({ submitEventExternal: e }) {
11464
11475
  buttonClassName: "xpert-chatbot-popup__live-chat--btn-outline"
11465
11476
  }
11466
11477
  ),
11467
- /* @__PURE__ */ v.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ v.jsx(
11478
+ /* @__PURE__ */ T.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ T.jsx(
11468
11479
  Kr,
11469
11480
  {
11470
11481
  inputRef: Z,
@@ -11496,7 +11507,7 @@ const nl = ({ children: e, configurations: t = {}, xpertKey: n = null }) => {
11496
11507
  configurations: t,
11497
11508
  xpertKey: n
11498
11509
  };
11499
- return /* @__PURE__ */ v.jsx(Lo, { ...r, children: e });
11510
+ return /* @__PURE__ */ T.jsx(Lo, { ...r, children: e });
11500
11511
  };
11501
11512
  nl.propTypes = {
11502
11513
  children: N.element,
@@ -11504,12 +11515,12 @@ nl.propTypes = {
11504
11515
  xpertKey: N.string
11505
11516
  };
11506
11517
  function lg({ configurations: e = {}, key: t, submitEventExternal: n, xpertKey: r }) {
11507
- return /* @__PURE__ */ v.jsx(
11518
+ return /* @__PURE__ */ T.jsx(
11508
11519
  nl,
11509
11520
  {
11510
11521
  xpertKey: r,
11511
11522
  configurations: e,
11512
- children: /* @__PURE__ */ v.jsx(ni, { submitEventExternal: n })
11523
+ children: /* @__PURE__ */ T.jsx(ni, { submitEventExternal: n })
11513
11524
  },
11514
11525
  t
11515
11526
  );