@2uinc/frontend-component-xpert-chatbot 1.3.15 → 1.3.16

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 +653 -647
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import pe, { useState as se, useCallback as lt, useEffect as fe, useRef as ze } from "react";
1
+ import pe, { useState as se, useCallback as at, useEffect as de, useRef as Le } from "react";
2
2
  const tl = {
3
3
  xpertKey: "edx",
4
4
  chatApiEndpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/chat",
@@ -206,7 +206,7 @@ function Ti(e) {
206
206
  });
207
207
  }), n;
208
208
  }
209
- var Ii = { exports: {} }, st = {};
209
+ var Ii = { exports: {} }, ct = {};
210
210
  /*
211
211
  object-assign
212
212
  (c) Sindre Sorhus
@@ -250,10 +250,10 @@ al();
250
250
  * LICENSE file in the root directory of this source tree.
251
251
  */
252
252
  var ul = pe, vi = 60103;
253
- st.Fragment = 60107;
253
+ ct.Fragment = 60107;
254
254
  if (typeof Symbol == "function" && Symbol.for) {
255
255
  var mr = Symbol.for;
256
- vi = mr("react.element"), st.Fragment = mr("react.fragment");
256
+ vi = mr("react.element"), ct.Fragment = mr("react.fragment");
257
257
  }
258
258
  var sl = ul.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, cl = Object.prototype.hasOwnProperty, pl = { key: !0, ref: !0, __self: !0, __source: !0 };
259
259
  function ki(e, t, n) {
@@ -266,12 +266,12 @@ function ki(e, t, n) {
266
266
  i[r] === void 0 && (i[r] = t[r]);
267
267
  return { $$typeof: vi, type: e, key: o, ref: l, props: i, _owner: sl.current };
268
268
  }
269
- st.jsx = ki;
270
- st.jsxs = ki;
271
- Ii.exports = st;
269
+ ct.jsx = ki;
270
+ ct.jsxs = ki;
271
+ Ii.exports = ct;
272
272
  var D = Ii.exports;
273
273
  /*! js-cookie v3.0.5 | MIT */
274
- function xt(e) {
274
+ function bt(e) {
275
275
  for (var t = 1; t < arguments.length; t++) {
276
276
  var n = arguments[t];
277
277
  for (var r in n)
@@ -293,7 +293,7 @@ var fl = {
293
293
  function Dn(e, t) {
294
294
  function n(i, o, l) {
295
295
  if (!(typeof document > "u")) {
296
- l = xt({}, t, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
296
+ l = bt({}, t, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
297
297
  var a = "";
298
298
  for (var s in l)
299
299
  l[s] && (a += "; " + s, l[s] !== !0 && (a += "=" + l[s].split(";")[0]));
@@ -322,16 +322,16 @@ function Dn(e, t) {
322
322
  n(
323
323
  i,
324
324
  "",
325
- xt({}, o, {
325
+ bt({}, o, {
326
326
  expires: -1
327
327
  })
328
328
  );
329
329
  },
330
330
  withAttributes: function(i) {
331
- return Dn(this.converter, xt({}, this.attributes, i));
331
+ return Dn(this.converter, bt({}, this.attributes, i));
332
332
  },
333
333
  withConverter: function(i) {
334
- return Dn(xt({}, this.converter, i), this.attributes);
334
+ return Dn(bt({}, this.converter, i), this.attributes);
335
335
  }
336
336
  },
337
337
  {
@@ -340,7 +340,7 @@ function Dn(e, t) {
340
340
  }
341
341
  );
342
342
  }
343
- var Ne = Dn(fl, { path: "/" }), ji = { exports: {} }, dl = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", hl = dl, gl = hl;
343
+ var Te = Dn(fl, { path: "/" }), ji = { exports: {} }, dl = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", hl = dl, gl = hl;
344
344
  function Ei() {
345
345
  }
346
346
  function Si() {
@@ -386,7 +386,7 @@ var ml = function() {
386
386
  };
387
387
  ji.exports = ml();
388
388
  var Ci = ji.exports;
389
- const g = /* @__PURE__ */ Qe(Ci), tt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Ft = (e, t, n, r = "") => {
389
+ const g = /* @__PURE__ */ Qe(Ci), nt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Rt = (e, t, n, r = "") => {
390
390
  const i = e.split(":");
391
391
  if (e.slice(0, 1) === "@") {
392
392
  if (i.length < 2 || i.length > 3)
@@ -402,7 +402,7 @@ const g = /* @__PURE__ */ Qe(Ci), tt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Ft = (e, t, n
402
402
  prefix: s,
403
403
  name: a
404
404
  };
405
- return t && !It(u) ? null : u;
405
+ return t && !vt(u) ? null : u;
406
406
  }
407
407
  const o = i[0], l = o.split("-");
408
408
  if (l.length > 1) {
@@ -411,7 +411,7 @@ const g = /* @__PURE__ */ Qe(Ci), tt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Ft = (e, t, n
411
411
  prefix: l.shift(),
412
412
  name: l.join("-")
413
413
  };
414
- return t && !It(a) ? null : a;
414
+ return t && !vt(a) ? null : a;
415
415
  }
416
416
  if (n && r === "") {
417
417
  const a = {
@@ -419,23 +419,23 @@ const g = /* @__PURE__ */ Qe(Ci), tt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Ft = (e, t, n
419
419
  prefix: "",
420
420
  name: o
421
421
  };
422
- return t && !It(a, n) ? null : a;
422
+ return t && !vt(a, n) ? null : a;
423
423
  }
424
424
  return null;
425
- }, It = (e, t) => e ? !!((e.provider === "" || e.provider.match(tt)) && (t && e.prefix === "" || e.prefix.match(tt)) && e.name.match(tt)) : !1, Ai = Object.freeze(
425
+ }, vt = (e, t) => e ? !!((e.provider === "" || e.provider.match(nt)) && (t && e.prefix === "" || e.prefix.match(nt)) && e.name.match(nt)) : !1, Ai = Object.freeze(
426
426
  {
427
427
  left: 0,
428
428
  top: 0,
429
429
  width: 16,
430
430
  height: 16
431
431
  }
432
- ), St = Object.freeze({
432
+ ), Ct = Object.freeze({
433
433
  rotate: 0,
434
434
  vFlip: !1,
435
435
  hFlip: !1
436
436
  }), Bn = Object.freeze({
437
437
  ...Ai,
438
- ...St
438
+ ...Ct
439
439
  }), Nn = Object.freeze({
440
440
  ...Bn,
441
441
  body: "",
@@ -450,7 +450,7 @@ function yl(e, t) {
450
450
  function yr(e, t) {
451
451
  const n = yl(e, t);
452
452
  for (const r in Nn)
453
- r in St ? r in e && !(r in n) && (n[r] = St[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
453
+ r in Ct ? r in e && !(r in n) && (n[r] = Ct[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
454
454
  return n;
455
455
  }
456
456
  function Ml(e, t) {
@@ -513,7 +513,7 @@ function zi(e) {
513
513
  const n = t.icons;
514
514
  for (const i in n) {
515
515
  const o = n[i];
516
- if (!i.match(tt) || typeof o.body != "string" || !sn(
516
+ if (!i.match(nt) || typeof o.body != "string" || !sn(
517
517
  o,
518
518
  Nn
519
519
  ))
@@ -522,7 +522,7 @@ function zi(e) {
522
522
  const r = t.aliases || /* @__PURE__ */ Object.create(null);
523
523
  for (const i in r) {
524
524
  const o = r[i], l = o.parent;
525
- if (!i.match(tt) || typeof l != "string" || !n[l] && !r[l] || !sn(
525
+ if (!i.match(nt) || typeof l != "string" || !n[l] && !r[l] || !sn(
526
526
  o,
527
527
  Nn
528
528
  ))
@@ -556,19 +556,19 @@ function Dl(e, t, n) {
556
556
  }
557
557
  return !1;
558
558
  }
559
- let at = !1;
559
+ let ut = !1;
560
560
  function Li(e) {
561
- return typeof e == "boolean" && (at = e), at;
561
+ return typeof e == "boolean" && (ut = e), ut;
562
562
  }
563
563
  function Nl(e) {
564
- const t = typeof e == "string" ? Ft(e, !0, at) : e;
564
+ const t = typeof e == "string" ? Rt(e, !0, ut) : e;
565
565
  if (t) {
566
566
  const n = Ue(t.provider, t.prefix), r = t.name;
567
567
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
568
568
  }
569
569
  }
570
570
  function Tl(e, t) {
571
- const n = Ft(e, !0, at);
571
+ const n = Rt(e, !0, ut);
572
572
  if (!n)
573
573
  return !1;
574
574
  const r = Ue(n.provider, n.prefix);
@@ -577,14 +577,14 @@ function Tl(e, t) {
577
577
  function Il(e, t) {
578
578
  if (typeof e != "object")
579
579
  return !1;
580
- if (typeof t != "string" && (t = e.provider || ""), at && !t && !e.prefix) {
580
+ if (typeof t != "string" && (t = e.provider || ""), ut && !t && !e.prefix) {
581
581
  let i = !1;
582
582
  return zi(e) && (e.prefix = "", Oi(e, (o, l) => {
583
583
  l && Tl(o, l) && (i = !0);
584
584
  })), i;
585
585
  }
586
586
  const n = e.prefix;
587
- if (!It({
587
+ if (!vt({
588
588
  provider: t,
589
589
  prefix: n,
590
590
  name: "a"
@@ -600,7 +600,7 @@ const Pi = Object.freeze({
600
600
  // Dimensions
601
601
  ...Pi,
602
602
  // Transformations
603
- ...St
603
+ ...Ct
604
604
  }), vl = /(-?[0-9.]*[0-9]+[0-9.]*)/g, kl = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
605
605
  function xr(e, t, n) {
606
606
  if (t === 1)
@@ -731,14 +731,14 @@ function Yn(e) {
731
731
  dataAfterTimeout: e.dataAfterTimeout !== !1
732
732
  };
733
733
  }
734
- const Hn = /* @__PURE__ */ Object.create(null), Ge = [
734
+ const Hn = /* @__PURE__ */ Object.create(null), Ke = [
735
735
  "https://api.simplesvg.com",
736
736
  "https://api.unisvg.com"
737
- ], vt = [];
738
- for (; Ge.length > 0; )
739
- Ge.length === 1 || Math.random() > 0.5 ? vt.push(Ge.shift()) : vt.push(Ge.pop());
737
+ ], kt = [];
738
+ for (; Ke.length > 0; )
739
+ Ke.length === 1 || Math.random() > 0.5 ? kt.push(Ke.shift()) : kt.push(Ke.pop());
740
740
  Hn[""] = Yn({
741
- resources: ["https://api.iconify.design"].concat(vt)
741
+ resources: ["https://api.iconify.design"].concat(kt)
742
742
  });
743
743
  function Ll(e, t) {
744
744
  const n = Yn(t);
@@ -940,7 +940,7 @@ function $l(e, t, n) {
940
940
  function Vl(e, t = !0, n = !1) {
941
941
  const r = [];
942
942
  return e.forEach((i) => {
943
- const o = typeof i == "string" ? Ft(i, t, n) : i;
943
+ const o = typeof i == "string" ? Rt(i, t, n) : i;
944
944
  o && r.push(o);
945
945
  }), r;
946
946
  }
@@ -1121,7 +1121,7 @@ function Kl(e, t, n) {
1121
1121
  }
1122
1122
  return !r || !i ? (n(void 0, 424), wr) : r.query(t, i, n)().abort;
1123
1123
  }
1124
- const Dr = "iconify2", ut = "iconify", Ui = ut + "-count", Nr = ut + "-version", Bi = 36e5, Xl = 168;
1124
+ const Dr = "iconify2", st = "iconify", Ui = st + "-count", Nr = st + "-version", Bi = 36e5, Xl = 168;
1125
1125
  function vn(e, t) {
1126
1126
  try {
1127
1127
  return e.getItem(t);
@@ -1146,7 +1146,7 @@ function kn(e, t) {
1146
1146
  function jn(e) {
1147
1147
  return parseInt(vn(e, Ui)) || 0;
1148
1148
  }
1149
- const Rt = {
1149
+ const _t = {
1150
1150
  local: !0,
1151
1151
  session: !0
1152
1152
  }, Qi = {
@@ -1157,15 +1157,15 @@ let Vn = !1;
1157
1157
  function Jl(e) {
1158
1158
  Vn = e;
1159
1159
  }
1160
- let bt = typeof window > "u" ? {} : window;
1160
+ let wt = typeof window > "u" ? {} : window;
1161
1161
  function Yi(e) {
1162
1162
  const t = e + "Storage";
1163
1163
  try {
1164
- if (bt && bt[t] && typeof bt[t].length == "number")
1165
- return bt[t];
1164
+ if (wt && wt[t] && typeof wt[t].length == "number")
1165
+ return wt[t];
1166
1166
  } catch {
1167
1167
  }
1168
- Rt[e] = !1;
1168
+ _t[e] = !1;
1169
1169
  }
1170
1170
  function Hi(e, t) {
1171
1171
  const n = Yi(e);
@@ -1176,13 +1176,13 @@ function Hi(e, t) {
1176
1176
  if (r) {
1177
1177
  const a = jn(n);
1178
1178
  for (let s = 0; s < a; s++)
1179
- Tr(n, ut + s.toString());
1179
+ Tr(n, st + s.toString());
1180
1180
  }
1181
1181
  $n(n, Nr, Dr), kn(n, 0);
1182
1182
  return;
1183
1183
  }
1184
1184
  const i = Math.floor(Date.now() / Bi) - Xl, o = (a) => {
1185
- const s = ut + a.toString(), u = vn(n, s);
1185
+ const s = st + a.toString(), u = vn(n, s);
1186
1186
  if (typeof u == "string") {
1187
1187
  try {
1188
1188
  const c = JSON.parse(u);
@@ -1201,7 +1201,7 @@ function Hi(e, t) {
1201
1201
  function qi() {
1202
1202
  if (!Vn) {
1203
1203
  Jl(!0);
1204
- for (const e in Rt)
1204
+ for (const e in _t)
1205
1205
  Hi(e, (t) => {
1206
1206
  const n = t.data, r = t.provider, i = n.prefix, o = Ue(
1207
1207
  r,
@@ -1222,7 +1222,7 @@ function ea(e, t) {
1222
1222
  )
1223
1223
  return n === t;
1224
1224
  if (e.lastModifiedCached = t, n)
1225
- for (const r in Rt)
1225
+ for (const r in _t)
1226
1226
  Hi(r, (i) => {
1227
1227
  const o = i.data;
1228
1228
  return i.provider !== e.provider || o.prefix !== e.prefix || o.lastModified === t;
@@ -1233,7 +1233,7 @@ function ta(e, t) {
1233
1233
  Vn || qi();
1234
1234
  function n(r) {
1235
1235
  let i;
1236
- if (!Rt[r] || !(i = Yi(r)))
1236
+ if (!_t[r] || !(i = Yi(r)))
1237
1237
  return;
1238
1238
  const o = Qi[r];
1239
1239
  let l;
@@ -1248,7 +1248,7 @@ function ta(e, t) {
1248
1248
  };
1249
1249
  return $n(
1250
1250
  i,
1251
- ut + l.toString(),
1251
+ st + l.toString(),
1252
1252
  JSON.stringify(a)
1253
1253
  );
1254
1254
  }
@@ -1391,19 +1391,19 @@ function pa(e) {
1391
1391
  function fa(e) {
1392
1392
  return 'url("' + pa(e) + '")';
1393
1393
  }
1394
- let nt;
1394
+ let rt;
1395
1395
  function da() {
1396
1396
  try {
1397
- nt = window.trustedTypes.createPolicy("iconify", {
1397
+ rt = window.trustedTypes.createPolicy("iconify", {
1398
1398
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return
1399
1399
  createHTML: (e) => e
1400
1400
  });
1401
1401
  } catch {
1402
- nt = null;
1402
+ rt = null;
1403
1403
  }
1404
1404
  }
1405
1405
  function ha(e) {
1406
- return nt === void 0 && da(), nt ? nt.createHTML(e) : e;
1406
+ return rt === void 0 && da(), rt ? rt.createHTML(e) : e;
1407
1407
  }
1408
1408
  const $i = {
1409
1409
  ...Fi,
@@ -1572,7 +1572,7 @@ class Wi extends pe.Component {
1572
1572
  return;
1573
1573
  }
1574
1574
  let i;
1575
- if (typeof r != "string" || (i = Ft(r, !1, !0)) === null) {
1575
+ if (typeof r != "string" || (i = Rt(r, !1, !0)) === null) {
1576
1576
  this._abortLoading(), this._setData(null);
1577
1577
  return;
1578
1578
  }
@@ -1628,7 +1628,7 @@ class Wi extends pe.Component {
1628
1628
  }, r, t._inline, t._ref);
1629
1629
  }
1630
1630
  }
1631
- const Le = pe.forwardRef(function(t, n) {
1631
+ const Pe = pe.forwardRef(function(t, n) {
1632
1632
  const r = {
1633
1633
  ...t,
1634
1634
  _ref: n,
@@ -1645,17 +1645,17 @@ pe.forwardRef(function(t, n) {
1645
1645
  return pe.createElement(Wi, r);
1646
1646
  });
1647
1647
  const xa = 576, ba = (e) => {
1648
- const [t, n] = se(), r = lt(() => {
1648
+ const [t, n] = se(), r = at(() => {
1649
1649
  n(
1650
1650
  window.matchMedia(
1651
1651
  `(max-width: ${e || xa}px)`
1652
1652
  ).matches
1653
1653
  );
1654
1654
  }, [e]);
1655
- return fe(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
1656
- }, ct = ba, wa = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0xMjAtMTIwdi0zMDBoNjB2MTk4bDU1OC01NThINTQwdi02MGgzMDB2MzAwaC02MHYtMTk4TDIyMi0xODBoMTk4djYwSDEyMFoiLz48L3N2Zz4=", Da = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0zNzAtMjg3aDM2MHYtOTBIMzcwdjkwWk0xODAtMTIwcS0yNCAwLTQyLTE4dC0xOC00MnYtNjAwcTAtMjQgMTgtNDJ0NDItMThoNjAwcTI0IDAgNDIgMTh0MTggNDJ2NjAwcTAgMjQtMTggNDJ0LTQyIDE4SDE4MFptMC02MGg2MDB2LTYwMEgxODB2NjAwWm0wLTYwMHY2MDAtNjAwWiIvPjwvc3ZnPg==", Na = 991;
1655
+ return de(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
1656
+ }, pt = ba, wa = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0xMjAtMTIwdi0zMDBoNjB2MTk4bDU1OC01NThINTQwdi02MGgzMDB2MzAwaC02MHYtMTk4TDIyMi0xODBoMTk4djYwSDEyMFoiLz48L3N2Zz4=", Da = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0zNzAtMjg3aDM2MHYtOTBIMzcwdjkwWk0xODAtMTIwcS0yNCAwLTQyLTE4dC0xOC00MnYtNjAwcTAtMjQgMTgtNDJ0NDItMThoNjAwcTI0IDAgNDIgMTh0MTggNDJ2NjAwcTAgMjQtMTggNDJ0LTQyIDE4SDE4MFptMC02MGg2MDB2LTYwMEgxODB2NjAwWm0wLTYwMHY2MDAtNjAwWiIvPjwvc3ZnPg==", Na = 991;
1657
1657
  function Zi({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
1658
- return ct(Na) ? null : e ? /* @__PURE__ */ D.jsx(
1658
+ return pt(Na) ? null : e ? /* @__PURE__ */ D.jsx(
1659
1659
  "button",
1660
1660
  {
1661
1661
  onClick: () => {
@@ -1759,7 +1759,7 @@ function Gi({
1759
1759
  "aria-label": "Close Xpert dialog",
1760
1760
  type: "button",
1761
1761
  children: /* @__PURE__ */ D.jsx(
1762
- Le,
1762
+ Pe,
1763
1763
  {
1764
1764
  icon: "material-symbols:close",
1765
1765
  alt: "Close",
@@ -1819,7 +1819,7 @@ function Xi({
1819
1819
  configurations: o
1820
1820
  }) {
1821
1821
  var a, s;
1822
- const l = ct(Ia);
1822
+ const l = pt(Ia);
1823
1823
  return /* @__PURE__ */ D.jsxs(
1824
1824
  "div",
1825
1825
  {
@@ -1877,7 +1877,7 @@ Xi.propTypes = {
1877
1877
  useDefaultLogo: g.bool
1878
1878
  })
1879
1879
  };
1880
- function _t({
1880
+ function Ut({
1881
1881
  loading: e,
1882
1882
  inputRef: t,
1883
1883
  userInput: n,
@@ -1890,7 +1890,7 @@ function _t({
1890
1890
  containerStyle: u,
1891
1891
  configurations: c
1892
1892
  }) {
1893
- return fe(() => {
1893
+ return de(() => {
1894
1894
  var p;
1895
1895
  (i || r) && ((p = t.current) == null || p.focus());
1896
1896
  }, [r, i, t]), /* @__PURE__ */ D.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: u, children: [
@@ -1932,12 +1932,12 @@ function _t({
1932
1932
  p.preventDefault(), o(n);
1933
1933
  },
1934
1934
  "aria-label": "Send message",
1935
- children: /* @__PURE__ */ D.jsx(Le, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
1935
+ children: /* @__PURE__ */ D.jsx(Pe, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
1936
1936
  }
1937
1937
  )
1938
1938
  ] });
1939
1939
  }
1940
- _t.propTypes = {
1940
+ Ut.propTypes = {
1941
1941
  loading: g.bool.isRequired,
1942
1942
  inputRef: g.shape({ current: g.instanceOf(Object) }).isRequired,
1943
1943
  hasError: g.bool,
@@ -1952,7 +1952,7 @@ _t.propTypes = {
1952
1952
  primaryColor: g.string.isRequired
1953
1953
  }).isRequired
1954
1954
  };
1955
- _t.defaultProps = {
1955
+ Ut.defaultProps = {
1956
1956
  containerStyle: void 0,
1957
1957
  hasError: !1,
1958
1958
  hasXpertMessages: !1
@@ -1983,7 +1983,7 @@ var ka = function(t) {
1983
1983
  return t != null && t.constructor != null && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
1984
1984
  };
1985
1985
  const Ji = /* @__PURE__ */ Qe(ka);
1986
- function rt(e) {
1986
+ function it(e) {
1987
1987
  return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Sr(e.position) : "start" in e || "end" in e ? Sr(e) : "line" in e || "column" in e ? Sn(e) : "";
1988
1988
  }
1989
1989
  function Sn(e) {
@@ -1995,7 +1995,7 @@ function Sr(e) {
1995
1995
  function Cr(e) {
1996
1996
  return e && typeof e == "number" ? e : 1;
1997
1997
  }
1998
- class xe extends Error {
1998
+ class be extends Error {
1999
1999
  /**
2000
2000
  * Create a message for `reason` at `place` from `origin`.
2001
2001
  *
@@ -2026,25 +2026,25 @@ class xe extends Error {
2026
2026
  const l = r.indexOf(":");
2027
2027
  l === -1 ? i[1] = r : (i[0] = r.slice(0, l), i[1] = r.slice(l + 1));
2028
2028
  }
2029
- 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 = rt(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;
2030
- }
2031
- }
2032
- xe.prototype.file = "";
2033
- xe.prototype.name = "";
2034
- xe.prototype.reason = "";
2035
- xe.prototype.message = "";
2036
- xe.prototype.stack = "";
2037
- xe.prototype.fatal = null;
2038
- xe.prototype.column = null;
2039
- xe.prototype.line = null;
2040
- xe.prototype.source = null;
2041
- xe.prototype.ruleId = null;
2042
- xe.prototype.position = null;
2043
- const Ie = { basename: ja, dirname: Ea, extname: Sa, join: Ca, sep: "/" };
2029
+ 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 = it(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;
2030
+ }
2031
+ }
2032
+ be.prototype.file = "";
2033
+ be.prototype.name = "";
2034
+ be.prototype.reason = "";
2035
+ be.prototype.message = "";
2036
+ be.prototype.stack = "";
2037
+ be.prototype.fatal = null;
2038
+ be.prototype.column = null;
2039
+ be.prototype.line = null;
2040
+ be.prototype.source = null;
2041
+ be.prototype.ruleId = null;
2042
+ be.prototype.position = null;
2043
+ const ve = { basename: ja, dirname: Ea, extname: Sa, join: Ca, sep: "/" };
2044
2044
  function ja(e, t) {
2045
2045
  if (t !== void 0 && typeof t != "string")
2046
2046
  throw new TypeError('"ext" argument must be a string');
2047
- pt(e);
2047
+ ft(e);
2048
2048
  let n = 0, r = -1, i = e.length, o;
2049
2049
  if (t === void 0 || t.length === 0 || t.length > e.length) {
2050
2050
  for (; i--; )
@@ -2071,7 +2071,7 @@ function ja(e, t) {
2071
2071
  return n === r ? r = l : r < 0 && (r = e.length), e.slice(n, r);
2072
2072
  }
2073
2073
  function Ea(e) {
2074
- if (pt(e), e.length === 0)
2074
+ if (ft(e), e.length === 0)
2075
2075
  return ".";
2076
2076
  let t = -1, n = e.length, r;
2077
2077
  for (; --n; )
@@ -2085,7 +2085,7 @@ function Ea(e) {
2085
2085
  return t < 0 ? e.charCodeAt(0) === 47 ? "/" : "." : t === 1 && e.charCodeAt(0) === 47 ? "//" : e.slice(0, t);
2086
2086
  }
2087
2087
  function Sa(e) {
2088
- pt(e);
2088
+ ft(e);
2089
2089
  let t = e.length, n = -1, r = 0, i = -1, o = 0, l;
2090
2090
  for (; t--; ) {
2091
2091
  const a = e.charCodeAt(t);
@@ -2105,11 +2105,11 @@ function Sa(e) {
2105
2105
  function Ca(...e) {
2106
2106
  let t = -1, n;
2107
2107
  for (; ++t < e.length; )
2108
- pt(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
2108
+ ft(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
2109
2109
  return n === void 0 ? "." : Aa(n);
2110
2110
  }
2111
2111
  function Aa(e) {
2112
- pt(e);
2112
+ ft(e);
2113
2113
  const t = e.charCodeAt(0) === 47;
2114
2114
  let n = Oa(e, !t);
2115
2115
  return n.length === 0 && !t && (n = "."), n.length > 0 && e.charCodeAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
@@ -2147,7 +2147,7 @@ function Oa(e, t) {
2147
2147
  }
2148
2148
  return n;
2149
2149
  }
2150
- function pt(e) {
2150
+ function ft(e) {
2151
2151
  if (typeof e != "string")
2152
2152
  throw new TypeError(
2153
2153
  "Path must be a string. Received " + JSON.stringify(e)
@@ -2258,7 +2258,7 @@ class eo {
2258
2258
  * Get the parent path (example: `'~'`).
2259
2259
  */
2260
2260
  get dirname() {
2261
- return typeof this.path == "string" ? Ie.dirname(this.path) : void 0;
2261
+ return typeof this.path == "string" ? ve.dirname(this.path) : void 0;
2262
2262
  }
2263
2263
  /**
2264
2264
  * Set the parent path (example: `'~'`).
@@ -2266,13 +2266,13 @@ class eo {
2266
2266
  * Cannot be set if there’s no `path` yet.
2267
2267
  */
2268
2268
  set dirname(t) {
2269
- Ar(this.basename, "dirname"), this.path = Ie.join(t || "", this.basename);
2269
+ Ar(this.basename, "dirname"), this.path = ve.join(t || "", this.basename);
2270
2270
  }
2271
2271
  /**
2272
2272
  * Get the basename (including extname) (example: `'index.min.js'`).
2273
2273
  */
2274
2274
  get basename() {
2275
- return typeof this.path == "string" ? Ie.basename(this.path) : void 0;
2275
+ return typeof this.path == "string" ? ve.basename(this.path) : void 0;
2276
2276
  }
2277
2277
  /**
2278
2278
  * Set basename (including extname) (`'index.min.js'`).
@@ -2282,13 +2282,13 @@ class eo {
2282
2282
  * Cannot be nullified (use `file.path = file.dirname` instead).
2283
2283
  */
2284
2284
  set basename(t) {
2285
- dn(t, "basename"), fn(t, "basename"), this.path = Ie.join(this.dirname || "", t);
2285
+ dn(t, "basename"), fn(t, "basename"), this.path = ve.join(this.dirname || "", t);
2286
2286
  }
2287
2287
  /**
2288
2288
  * Get the extname (including dot) (example: `'.js'`).
2289
2289
  */
2290
2290
  get extname() {
2291
- return typeof this.path == "string" ? Ie.extname(this.path) : void 0;
2291
+ return typeof this.path == "string" ? ve.extname(this.path) : void 0;
2292
2292
  }
2293
2293
  /**
2294
2294
  * Set the extname (including dot) (example: `'.js'`).
@@ -2304,13 +2304,13 @@ class eo {
2304
2304
  if (t.includes(".", 1))
2305
2305
  throw new Error("`extname` cannot contain multiple dots");
2306
2306
  }
2307
- this.path = Ie.join(this.dirname, this.stem + (t || ""));
2307
+ this.path = ve.join(this.dirname, this.stem + (t || ""));
2308
2308
  }
2309
2309
  /**
2310
2310
  * Get the stem (basename w/o extname) (example: `'index.min'`).
2311
2311
  */
2312
2312
  get stem() {
2313
- return typeof this.path == "string" ? Ie.basename(this.path, this.extname) : void 0;
2313
+ return typeof this.path == "string" ? ve.basename(this.path, this.extname) : void 0;
2314
2314
  }
2315
2315
  /**
2316
2316
  * Set the stem (basename w/o extname) (example: `'index.min'`).
@@ -2320,7 +2320,7 @@ class eo {
2320
2320
  * Cannot be nullified (use `file.path = file.dirname` instead).
2321
2321
  */
2322
2322
  set stem(t) {
2323
- dn(t, "stem"), fn(t, "stem"), this.path = Ie.join(this.dirname || "", t + (this.extname || ""));
2323
+ dn(t, "stem"), fn(t, "stem"), this.path = ve.join(this.dirname || "", t + (this.extname || ""));
2324
2324
  }
2325
2325
  /**
2326
2326
  * Serialize the file.
@@ -2351,7 +2351,7 @@ class eo {
2351
2351
  * Message.
2352
2352
  */
2353
2353
  message(t, n, r) {
2354
- const i = new xe(t, n, r);
2354
+ const i = new be(t, n, r);
2355
2355
  return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
2356
2356
  }
2357
2357
  /**
@@ -2400,9 +2400,9 @@ class eo {
2400
2400
  }
2401
2401
  }
2402
2402
  function fn(e, t) {
2403
- if (e && e.includes(Ie.sep))
2403
+ if (e && e.includes(ve.sep))
2404
2404
  throw new Error(
2405
- "`" + t + "` cannot be a path: did not expect `" + Ie.sep + "`"
2405
+ "`" + t + "` cannot be a path: did not expect `" + ve.sep + "`"
2406
2406
  );
2407
2407
  }
2408
2408
  function dn(e, t) {
@@ -2420,18 +2420,18 @@ function Or(e) {
2420
2420
  if (e)
2421
2421
  throw e;
2422
2422
  }
2423
- var kt = Object.prototype.hasOwnProperty, to = Object.prototype.toString, zr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, Pr = function(t) {
2423
+ var jt = Object.prototype.hasOwnProperty, to = Object.prototype.toString, zr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, Pr = function(t) {
2424
2424
  return typeof Array.isArray == "function" ? Array.isArray(t) : to.call(t) === "[object Array]";
2425
2425
  }, Fr = function(t) {
2426
2426
  if (!t || to.call(t) !== "[object Object]")
2427
2427
  return !1;
2428
- var n = kt.call(t, "constructor"), r = t.constructor && t.constructor.prototype && kt.call(t.constructor.prototype, "isPrototypeOf");
2428
+ var n = jt.call(t, "constructor"), r = t.constructor && t.constructor.prototype && jt.call(t.constructor.prototype, "isPrototypeOf");
2429
2429
  if (t.constructor && !n && !r)
2430
2430
  return !1;
2431
2431
  var i;
2432
2432
  for (i in t)
2433
2433
  ;
2434
- return typeof i > "u" || kt.call(t, i);
2434
+ return typeof i > "u" || jt.call(t, i);
2435
2435
  }, Rr = function(t, n) {
2436
2436
  zr && n.name === "__proto__" ? zr(t, n.name, {
2437
2437
  enumerable: !0,
@@ -2441,7 +2441,7 @@ var kt = Object.prototype.hasOwnProperty, to = Object.prototype.toString, zr = O
2441
2441
  }) : t[n.name] = n.newValue;
2442
2442
  }, _r = function(t, n) {
2443
2443
  if (n === "__proto__")
2444
- if (kt.call(t, n)) {
2444
+ if (jt.call(t, n)) {
2445
2445
  if (Lr)
2446
2446
  return Lr(t, n).value;
2447
2447
  } else
@@ -2594,12 +2594,12 @@ function ro() {
2594
2594
  }
2595
2595
  function u(x) {
2596
2596
  o.freeze();
2597
- const S = Ke(x), b = o.Parser;
2597
+ const S = Xe(x), b = o.Parser;
2598
2598
  return hn("parse", b), Br(b, "parse") ? new b(String(S), S).parse() : b(String(S), S);
2599
2599
  }
2600
2600
  function c(x, S) {
2601
2601
  o.freeze();
2602
- const b = Ke(S), C = o.Compiler;
2602
+ const b = Xe(S), C = o.Compiler;
2603
2603
  return gn("stringify", C), Qr(x), Br(C, "compile") ? new C(x, b).compile() : C(x, b);
2604
2604
  }
2605
2605
  function p(x, S, b) {
@@ -2607,7 +2607,7 @@ function ro() {
2607
2607
  return new Promise(C);
2608
2608
  C(null, b);
2609
2609
  function C(v, B) {
2610
- e.run(x, Ke(S), U);
2610
+ e.run(x, Xe(S), U);
2611
2611
  function U(y, O, F) {
2612
2612
  O = O || x, y ? B(y) : v ? v(O) : b(null, O, F);
2613
2613
  }
@@ -2625,7 +2625,7 @@ function ro() {
2625
2625
  return new Promise(b);
2626
2626
  b(null, S);
2627
2627
  function b(C, v) {
2628
- const B = Ke(x);
2628
+ const B = Xe(x);
2629
2629
  o.run(o.parse(B), B, (y, O, F) => {
2630
2630
  if (y || !O || !F)
2631
2631
  U(y);
@@ -2642,7 +2642,7 @@ function ro() {
2642
2642
  function T(x) {
2643
2643
  let S;
2644
2644
  o.freeze(), hn("processSync", o.Parser), gn("processSync", o.Compiler);
2645
- const b = Ke(x);
2645
+ const b = Xe(x);
2646
2646
  return o.process(b, C), Yr("processSync", "process", S), b;
2647
2647
  function C(v) {
2648
2648
  S = !0, Or(v);
@@ -2689,7 +2689,7 @@ function Yr(e, t, n) {
2689
2689
  "`" + e + "` finished async. Use `" + t + "` instead"
2690
2690
  );
2691
2691
  }
2692
- function Ke(e) {
2692
+ function Xe(e) {
2693
2693
  return Ha(e) ? e : new eo(e);
2694
2694
  }
2695
2695
  function Ha(e) {
@@ -2724,7 +2724,7 @@ function Hr(e, t, n) {
2724
2724
  function Wa(e) {
2725
2725
  return !!(e && typeof e == "object");
2726
2726
  }
2727
- function ke(e, t, n, r) {
2727
+ function je(e, t, n, r) {
2728
2728
  const i = e.length;
2729
2729
  let o = 0, l;
2730
2730
  if (t < 0 ? t = -t > i ? 0 : i + t : t = t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4)
@@ -2733,8 +2733,8 @@ function ke(e, t, n, r) {
2733
2733
  for (n && e.splice(t, n); o < r.length; )
2734
2734
  l = r.slice(o, o + 1e4), l.unshift(t, 0), e.splice(...l), o += 1e4, t += 1e4;
2735
2735
  }
2736
- function Me(e, t) {
2737
- return e.length > 0 ? (ke(e, e.length, 0, t), e) : t;
2736
+ function xe(e, t) {
2737
+ return e.length > 0 ? (je(e, e.length, 0, t), e) : t;
2738
2738
  }
2739
2739
  const qr = {}.hasOwnProperty;
2740
2740
  function Za(e) {
@@ -2766,9 +2766,9 @@ function Ka(e, t) {
2766
2766
  const r = [];
2767
2767
  for (; ++n < t.length; )
2768
2768
  (t[n].add === "after" ? e : r).push(t[n]);
2769
- ke(e, 0, 0, r);
2769
+ je(e, 0, 0, r);
2770
2770
  }
2771
- const Xa = /[!-\/:-@\[-`\{-~\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 = Pe(/[A-Za-z]/), me = Pe(/[\dA-Za-z]/), Ja = Pe(/[#-'*+\--9=?A-Z^-~]/);
2771
+ const Xa = /[!-\/:-@\[-`\{-~\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]/, ke = Fe(/[A-Za-z]/), ye = Fe(/[\dA-Za-z]/), Ja = Fe(/[#-'*+\--9=?A-Z^-~]/);
2772
2772
  function On(e) {
2773
2773
  return (
2774
2774
  // Special whitespace codes (which have negative values), C0 and Control
@@ -2776,24 +2776,24 @@ function On(e) {
2776
2776
  e !== null && (e < 32 || e === 127)
2777
2777
  );
2778
2778
  }
2779
- const zn = Pe(/\d/), eu = Pe(/[\dA-Fa-f]/), tu = Pe(/[!-/:-@[-`{-~]/);
2779
+ const zn = Fe(/\d/), eu = Fe(/[\dA-Fa-f]/), tu = Fe(/[!-/:-@[-`{-~]/);
2780
2780
  function _(e) {
2781
2781
  return e !== null && e < -2;
2782
2782
  }
2783
- function he(e) {
2783
+ function ge(e) {
2784
2784
  return e !== null && (e < 0 || e === 32);
2785
2785
  }
2786
2786
  function Z(e) {
2787
2787
  return e === -2 || e === -1 || e === 32;
2788
2788
  }
2789
- const nu = Pe(Xa), ru = Pe(/\s/);
2790
- function Pe(e) {
2789
+ const nu = Fe(Xa), ru = Fe(/\s/);
2790
+ function Fe(e) {
2791
2791
  return t;
2792
2792
  function t(n) {
2793
2793
  return n !== null && e.test(String.fromCharCode(n));
2794
2794
  }
2795
2795
  }
2796
- function te(e, t, n, r) {
2796
+ function ee(e, t, n, r) {
2797
2797
  const i = r ? r - 1 : Number.POSITIVE_INFINITY;
2798
2798
  let o = 0;
2799
2799
  return l;
@@ -2820,7 +2820,7 @@ function ou(e) {
2820
2820
  e.consume(a);
2821
2821
  return;
2822
2822
  }
2823
- return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), te(e, t, "linePrefix");
2823
+ return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), ee(e, t, "linePrefix");
2824
2824
  }
2825
2825
  function i(a) {
2826
2826
  return e.enter("paragraph"), o(a);
@@ -2874,7 +2874,7 @@ function au(e) {
2874
2874
  let O = B;
2875
2875
  for (; O < t.events.length; )
2876
2876
  t.events[O][1].end = Object.assign({}, y), O++;
2877
- return ke(
2877
+ return je(
2878
2878
  t.events,
2879
2879
  U + 1,
2880
2880
  0,
@@ -2955,7 +2955,7 @@ function au(e) {
2955
2955
  }
2956
2956
  for (b(r), y = O; y < t.events.length; )
2957
2957
  t.events[y][1].end = Object.assign({}, $), y++;
2958
- ke(
2958
+ je(
2959
2959
  t.events,
2960
2960
  F + 1,
2961
2961
  0,
@@ -2976,7 +2976,7 @@ function au(e) {
2976
2976
  }
2977
2977
  }
2978
2978
  function uu(e, t, n) {
2979
- return te(
2979
+ return ee(
2980
2980
  e,
2981
2981
  e.attempt(this.parser.constructs.document, t, n),
2982
2982
  "linePrefix",
@@ -2984,7 +2984,7 @@ function uu(e, t, n) {
2984
2984
  );
2985
2985
  }
2986
2986
  function Vr(e) {
2987
- if (e === null || he(e) || ru(e))
2987
+ if (e === null || ge(e) || ru(e))
2988
2988
  return 1;
2989
2989
  if (nu(e))
2990
2990
  return 2;
@@ -3030,30 +3030,30 @@ function su(e, t) {
3030
3030
  type: s > 1 ? "strong" : "emphasis",
3031
3031
  start: Object.assign({}, l.start),
3032
3032
  end: Object.assign({}, a.end)
3033
- }, e[r][1].end = Object.assign({}, l.start), e[n][1].start = Object.assign({}, a.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Me(u, [
3033
+ }, e[r][1].end = Object.assign({}, l.start), e[n][1].start = Object.assign({}, a.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = xe(u, [
3034
3034
  ["enter", e[r][1], t],
3035
3035
  ["exit", e[r][1], t]
3036
- ])), u = Me(u, [
3036
+ ])), u = xe(u, [
3037
3037
  ["enter", i, t],
3038
3038
  ["enter", l, t],
3039
3039
  ["exit", l, t],
3040
3040
  ["enter", o, t]
3041
- ]), u = Me(
3041
+ ]), u = xe(
3042
3042
  u,
3043
3043
  Zn(
3044
3044
  t.parser.constructs.insideSpan.null,
3045
3045
  e.slice(r + 1, n),
3046
3046
  t
3047
3047
  )
3048
- ), u = Me(u, [
3048
+ ), u = xe(u, [
3049
3049
  ["exit", o, t],
3050
3050
  ["enter", a, t],
3051
3051
  ["exit", a, t],
3052
3052
  ["exit", i, t]
3053
- ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Me(u, [
3053
+ ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = xe(u, [
3054
3054
  ["enter", e[n][1], t],
3055
3055
  ["exit", e[n][1], t]
3056
- ])) : c = 0, ke(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
3056
+ ])) : c = 0, je(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
3057
3057
  break;
3058
3058
  }
3059
3059
  }
@@ -3089,13 +3089,13 @@ function fu(e, t, n) {
3089
3089
  return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), o;
3090
3090
  }
3091
3091
  function o(f) {
3092
- return ve(f) ? (e.consume(f), l) : u(f);
3092
+ return ke(f) ? (e.consume(f), l) : u(f);
3093
3093
  }
3094
3094
  function l(f) {
3095
- return f === 43 || f === 45 || f === 46 || me(f) ? (r = 1, a(f)) : u(f);
3095
+ return f === 43 || f === 45 || f === 46 || ye(f) ? (r = 1, a(f)) : u(f);
3096
3096
  }
3097
3097
  function a(f) {
3098
- return f === 58 ? (e.consume(f), r = 0, s) : (f === 43 || f === 45 || f === 46 || me(f)) && r++ < 32 ? (e.consume(f), a) : (r = 0, u(f));
3098
+ return f === 58 ? (e.consume(f), r = 0, s) : (f === 43 || f === 45 || f === 46 || ye(f)) && r++ < 32 ? (e.consume(f), a) : (r = 0, u(f));
3099
3099
  }
3100
3100
  function s(f) {
3101
3101
  return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : f === null || f === 32 || f === 60 || On(f) ? n(f) : (e.consume(f), s);
@@ -3104,27 +3104,27 @@ function fu(e, t, n) {
3104
3104
  return f === 64 ? (e.consume(f), c) : Ja(f) ? (e.consume(f), u) : n(f);
3105
3105
  }
3106
3106
  function c(f) {
3107
- return me(f) ? p(f) : n(f);
3107
+ return ye(f) ? p(f) : n(f);
3108
3108
  }
3109
3109
  function p(f) {
3110
3110
  return f === 46 ? (e.consume(f), r = 0, c) : f === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : m(f);
3111
3111
  }
3112
3112
  function m(f) {
3113
- if ((f === 45 || me(f)) && r++ < 63) {
3113
+ if ((f === 45 || ye(f)) && r++ < 63) {
3114
3114
  const T = f === 45 ? m : p;
3115
3115
  return e.consume(f), T;
3116
3116
  }
3117
3117
  return n(f);
3118
3118
  }
3119
3119
  }
3120
- const Ut = {
3120
+ const Bt = {
3121
3121
  tokenize: du,
3122
3122
  partial: !0
3123
3123
  };
3124
3124
  function du(e, t, n) {
3125
3125
  return r;
3126
3126
  function r(o) {
3127
- return Z(o) ? te(e, i, "linePrefix")(o) : i(o);
3127
+ return Z(o) ? ee(e, i, "linePrefix")(o) : i(o);
3128
3128
  }
3129
3129
  function i(o) {
3130
3130
  return o === null || _(o) ? t(o) : n(o);
@@ -3158,7 +3158,7 @@ function gu(e, t, n) {
3158
3158
  const r = this;
3159
3159
  return i;
3160
3160
  function i(l) {
3161
- return Z(l) ? te(
3161
+ return Z(l) ? ee(
3162
3162
  e,
3163
3163
  o,
3164
3164
  "linePrefix",
@@ -3204,7 +3204,7 @@ function Mu(e, t, n) {
3204
3204
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), s;
3205
3205
  }
3206
3206
  function s(p) {
3207
- return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, l = me, c(p));
3207
+ return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, l = ye, c(p));
3208
3208
  }
3209
3209
  function u(p) {
3210
3210
  return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = eu, c) : (e.enter("characterReferenceValue"), o = 7, l = zn, c(p));
@@ -3212,7 +3212,7 @@ function Mu(e, t, n) {
3212
3212
  function c(p) {
3213
3213
  if (p === 59 && i) {
3214
3214
  const m = e.exit("characterReferenceValue");
3215
- return l === me && !Gn(r.sliceSerialize(m)) ? n(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
3215
+ return l === ye && !Gn(r.sliceSerialize(m)) ? n(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
3216
3216
  }
3217
3217
  return l(p) && i++ < o ? (e.consume(p), c) : n(p);
3218
3218
  }
@@ -3240,7 +3240,7 @@ function xu(e, t, n) {
3240
3240
  return o = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, a = y, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(y);
3241
3241
  }
3242
3242
  function c(y) {
3243
- return y === a ? (l++, e.consume(y), c) : l < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), Z(y) ? te(e, p, "whitespace")(y) : p(y));
3243
+ return y === a ? (l++, e.consume(y), c) : l < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), Z(y) ? ee(e, p, "whitespace")(y) : p(y));
3244
3244
  }
3245
3245
  function p(y) {
3246
3246
  return y === null || _(y) ? (e.exit("codeFencedFence"), r.interrupt ? t(y) : e.check(Gr, x, B)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
@@ -3248,7 +3248,7 @@ function xu(e, t, n) {
3248
3248
  }), m(y));
3249
3249
  }
3250
3250
  function m(y) {
3251
- return y === null || _(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(y)) : Z(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), te(e, f, "whitespace")(y)) : y === 96 && y === a ? n(y) : (e.consume(y), m);
3251
+ return y === null || _(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(y)) : Z(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ee(e, f, "whitespace")(y)) : y === 96 && y === a ? n(y) : (e.consume(y), m);
3252
3252
  }
3253
3253
  function f(y) {
3254
3254
  return y === null || _(y) ? p(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -3265,7 +3265,7 @@ function xu(e, t, n) {
3265
3265
  return e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), b;
3266
3266
  }
3267
3267
  function b(y) {
3268
- return o > 0 && Z(y) ? te(
3268
+ return o > 0 && Z(y) ? ee(
3269
3269
  e,
3270
3270
  C,
3271
3271
  "linePrefix",
@@ -3288,7 +3288,7 @@ function xu(e, t, n) {
3288
3288
  return y.enter("lineEnding"), y.consume(z), y.exit("lineEnding"), k;
3289
3289
  }
3290
3290
  function k(z) {
3291
- return y.enter("codeFencedFence"), Z(z) ? te(
3291
+ return y.enter("codeFencedFence"), Z(z) ? ee(
3292
3292
  y,
3293
3293
  M,
3294
3294
  "linePrefix",
@@ -3299,7 +3299,7 @@ function xu(e, t, n) {
3299
3299
  return z === a ? (y.enter("codeFencedFenceSequence"), N(z)) : F(z);
3300
3300
  }
3301
3301
  function N(z) {
3302
- return z === a ? (q++, y.consume(z), N) : q >= l ? (y.exit("codeFencedFenceSequence"), Z(z) ? te(y, A, "whitespace")(z) : A(z)) : F(z);
3302
+ return z === a ? (q++, y.consume(z), N) : q >= l ? (y.exit("codeFencedFenceSequence"), Z(z) ? ee(y, A, "whitespace")(z) : A(z)) : F(z);
3303
3303
  }
3304
3304
  function A(z) {
3305
3305
  return z === null || _(z) ? (y.exit("codeFencedFence"), O(z)) : F(z);
@@ -3327,7 +3327,7 @@ function Du(e, t, n) {
3327
3327
  const r = this;
3328
3328
  return i;
3329
3329
  function i(u) {
3330
- return e.enter("codeIndented"), te(e, o, "linePrefix", 4 + 1)(u);
3330
+ return e.enter("codeIndented"), ee(e, o, "linePrefix", 4 + 1)(u);
3331
3331
  }
3332
3332
  function o(u) {
3333
3333
  const c = r.events[r.events.length - 1];
@@ -3347,7 +3347,7 @@ function Nu(e, t, n) {
3347
3347
  const r = this;
3348
3348
  return i;
3349
3349
  function i(l) {
3350
- return r.parser.lazy[r.now().line] ? n(l) : _(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), i) : te(e, o, "linePrefix", 4 + 1)(l);
3350
+ return r.parser.lazy[r.now().line] ? n(l) : _(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), i) : ee(e, o, "linePrefix", 4 + 1)(l);
3351
3351
  }
3352
3352
  function o(l) {
3353
3353
  const a = r.events[r.events.length - 1];
@@ -3409,7 +3409,7 @@ function uo(e) {
3409
3409
  else if (r[1]._container) {
3410
3410
  for (o = n, i = void 0; o-- && (l = e[o], l[1].type === "lineEnding" || l[1].type === "lineEndingBlank"); )
3411
3411
  l[0] === "enter" && (i && (e[i][1].type = "lineEndingBlank"), l[1].type = "lineEnding", i = o);
3412
- i && (r[1].end = Object.assign({}, e[i][1].start), a = e.slice(i, n), a.unshift(r), ke(e, i, n - i + 1, a));
3412
+ i && (r[1].end = Object.assign({}, e[i][1].start), a = e.slice(i, n), a.unshift(r), je(e, i, n - i + 1, a));
3413
3413
  }
3414
3414
  }
3415
3415
  return !u;
@@ -3430,7 +3430,7 @@ function ju(e, t) {
3430
3430
  a[m][0] === "exit" && a[m - 1][0] === "enter" && a[m][1].type === a[m - 1][1].type && a[m][1].start.line !== a[m][1].end.line && (x = m + 1, S.push(x), f._tokenizer = void 0, f.previous = void 0, f = f.next);
3431
3431
  for (l.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : S.pop(), m = S.length; m--; ) {
3432
3432
  const b = a.slice(S[m], S[m + 1]), C = o.pop();
3433
- s.unshift([C, C + b.length - 1]), ke(e, C, 2, b);
3433
+ s.unshift([C, C + b.length - 1]), je(e, C, 2, b);
3434
3434
  }
3435
3435
  for (m = -1; ++m < s.length; )
3436
3436
  u[T + s[m][0]] = T + s[m][1], T += s[m][1] - s[m][0] - 1;
@@ -3475,7 +3475,7 @@ function Ou(e, t, n) {
3475
3475
  const r = this;
3476
3476
  return i;
3477
3477
  function i(l) {
3478
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), te(e, o, "linePrefix");
3478
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), ee(e, o, "linePrefix");
3479
3479
  }
3480
3480
  function o(l) {
3481
3481
  if (l === null || _(l))
@@ -3505,7 +3505,7 @@ function so(e, t, n, r, i, o, l, a, s) {
3505
3505
  return b === 60 || b === 62 || b === 92 ? (e.consume(b), f) : f(b);
3506
3506
  }
3507
3507
  function x(b) {
3508
- return !c && (b === null || b === 41 || he(b)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), 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 || On(b) ? n(b) : (e.consume(b), b === 92 ? S : x);
3508
+ return !c && (b === null || b === 41 || ge(b)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), 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 || On(b) ? n(b) : (e.consume(b), b === 92 ? S : x);
3509
3509
  }
3510
3510
  function S(b) {
3511
3511
  return b === 40 || b === 41 || b === 92 ? (e.consume(b), x) : x(b);
@@ -3545,7 +3545,7 @@ function po(e, t, n, r, i, o) {
3545
3545
  return m === l ? (e.enter(i), e.consume(m), e.exit(i), e.exit(r), t) : (e.enter(o), u(m));
3546
3546
  }
3547
3547
  function u(m) {
3548
- return m === l ? (e.exit(o), s(l)) : m === null ? n(m) : _(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), te(e, u, "linePrefix")) : (e.enter("chunkString", {
3548
+ return m === l ? (e.exit(o), s(l)) : m === null ? n(m) : _(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), ee(e, u, "linePrefix")) : (e.enter("chunkString", {
3549
3549
  contentType: "string"
3550
3550
  }), c(m));
3551
3551
  }
@@ -3556,18 +3556,18 @@ function po(e, t, n, r, i, o) {
3556
3556
  return m === l || m === 92 ? (e.consume(m), c) : c(m);
3557
3557
  }
3558
3558
  }
3559
- function it(e, t) {
3559
+ function ot(e, t) {
3560
3560
  let n;
3561
3561
  return r;
3562
3562
  function r(i) {
3563
- return _(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : Z(i) ? te(
3563
+ return _(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : Z(i) ? ee(
3564
3564
  e,
3565
3565
  r,
3566
3566
  n ? "linePrefix" : "lineSuffix"
3567
3567
  )(i) : t(i);
3568
3568
  }
3569
3569
  }
3570
- function qe(e) {
3570
+ function $e(e) {
3571
3571
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
3572
3572
  }
3573
3573
  const zu = {
@@ -3597,12 +3597,12 @@ function Pu(e, t, n) {
3597
3597
  )(f);
3598
3598
  }
3599
3599
  function a(f) {
3600
- return i = qe(
3600
+ return i = $e(
3601
3601
  r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
3602
3602
  ), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), s) : n(f);
3603
3603
  }
3604
3604
  function s(f) {
3605
- return he(f) ? it(e, u)(f) : u(f);
3605
+ return ge(f) ? ot(e, u)(f) : u(f);
3606
3606
  }
3607
3607
  function u(f) {
3608
3608
  return so(
@@ -3621,7 +3621,7 @@ function Pu(e, t, n) {
3621
3621
  return e.attempt(Lu, p, p)(f);
3622
3622
  }
3623
3623
  function p(f) {
3624
- return Z(f) ? te(e, m, "whitespace")(f) : m(f);
3624
+ return Z(f) ? ee(e, m, "whitespace")(f) : m(f);
3625
3625
  }
3626
3626
  function m(f) {
3627
3627
  return f === null || _(f) ? (e.exit("definition"), r.parser.defined.push(i), t(f)) : n(f);
@@ -3630,7 +3630,7 @@ function Pu(e, t, n) {
3630
3630
  function Fu(e, t, n) {
3631
3631
  return r;
3632
3632
  function r(a) {
3633
- return he(a) ? it(e, i)(a) : n(a);
3633
+ return ge(a) ? ot(e, i)(a) : n(a);
3634
3634
  }
3635
3635
  function i(a) {
3636
3636
  return po(
@@ -3643,7 +3643,7 @@ function Fu(e, t, n) {
3643
3643
  )(a);
3644
3644
  }
3645
3645
  function o(a) {
3646
- return Z(a) ? te(e, l, "whitespace")(a) : l(a);
3646
+ return Z(a) ? ee(e, l, "whitespace")(a) : l(a);
3647
3647
  }
3648
3648
  function l(a) {
3649
3649
  return a === null || _(a) ? t(a) : n(a);
@@ -3678,7 +3678,7 @@ function Bu(e, t) {
3678
3678
  start: e[r][1].start,
3679
3679
  end: e[n][1].end,
3680
3680
  contentType: "text"
3681
- }, ke(e, r, n - r + 1, [
3681
+ }, je(e, r, n - r + 1, [
3682
3682
  ["enter", i, t],
3683
3683
  ["enter", o, t],
3684
3684
  ["exit", o, t],
@@ -3695,16 +3695,16 @@ function Qu(e, t, n) {
3695
3695
  return e.enter("atxHeadingSequence"), l(c);
3696
3696
  }
3697
3697
  function l(c) {
3698
- return c === 35 && r++ < 6 ? (e.consume(c), l) : c === null || he(c) ? (e.exit("atxHeadingSequence"), a(c)) : n(c);
3698
+ return c === 35 && r++ < 6 ? (e.consume(c), l) : c === null || ge(c) ? (e.exit("atxHeadingSequence"), a(c)) : n(c);
3699
3699
  }
3700
3700
  function a(c) {
3701
- return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || _(c) ? (e.exit("atxHeading"), t(c)) : Z(c) ? te(e, a, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
3701
+ return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || _(c) ? (e.exit("atxHeading"), t(c)) : Z(c) ? ee(e, a, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
3702
3702
  }
3703
3703
  function s(c) {
3704
3704
  return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), a(c));
3705
3705
  }
3706
3706
  function u(c) {
3707
- return c === null || c === 35 || he(c) ? (e.exit("atxHeadingText"), a(c)) : (e.consume(c), u);
3707
+ return c === null || c === 35 || ge(c) ? (e.exit("atxHeadingText"), a(c)) : (e.consume(c), u);
3708
3708
  }
3709
3709
  }
3710
3710
  const Yu = [
@@ -3799,10 +3799,10 @@ function Wu(e, t, n) {
3799
3799
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(h), p;
3800
3800
  }
3801
3801
  function p(h) {
3802
- return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, x) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : d) : ve(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
3802
+ return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, x) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : d) : ke(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
3803
3803
  }
3804
3804
  function m(h) {
3805
- return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, a = 0, T) : ve(h) ? (e.consume(h), i = 4, r.interrupt ? t : d) : n(h);
3805
+ return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, a = 0, T) : ke(h) ? (e.consume(h), i = 4, r.interrupt ? t : d) : n(h);
3806
3806
  }
3807
3807
  function f(h) {
3808
3808
  return h === 45 ? (e.consume(h), r.interrupt ? t : d) : n(h);
@@ -3812,14 +3812,14 @@ function Wu(e, t, n) {
3812
3812
  return h === ie.charCodeAt(a++) ? (e.consume(h), a === ie.length ? r.interrupt ? t : M : T) : n(h);
3813
3813
  }
3814
3814
  function x(h) {
3815
- return ve(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
3815
+ return ke(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
3816
3816
  }
3817
3817
  function S(h) {
3818
- if (h === null || h === 47 || h === 62 || he(h)) {
3819
- const ie = h === 47, ye = l.toLowerCase();
3820
- return !ie && !o && Xr.includes(ye) ? (i = 1, r.interrupt ? t(h) : M(h)) : Yu.includes(l.toLowerCase()) ? (i = 6, ie ? (e.consume(h), b) : r.interrupt ? t(h) : M(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? C(h) : v(h));
3818
+ if (h === null || h === 47 || h === 62 || ge(h)) {
3819
+ const ie = h === 47, Me = l.toLowerCase();
3820
+ return !ie && !o && Xr.includes(Me) ? (i = 1, r.interrupt ? t(h) : M(h)) : Yu.includes(l.toLowerCase()) ? (i = 6, ie ? (e.consume(h), b) : r.interrupt ? t(h) : M(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? C(h) : v(h));
3821
3821
  }
3822
- return h === 45 || me(h) ? (e.consume(h), l += String.fromCharCode(h), S) : n(h);
3822
+ return h === 45 || ye(h) ? (e.consume(h), l += String.fromCharCode(h), S) : n(h);
3823
3823
  }
3824
3824
  function b(h) {
3825
3825
  return h === 62 ? (e.consume(h), r.interrupt ? t : M) : n(h);
@@ -3828,10 +3828,10 @@ function Wu(e, t, n) {
3828
3828
  return Z(h) ? (e.consume(h), C) : $(h);
3829
3829
  }
3830
3830
  function v(h) {
3831
- return h === 47 ? (e.consume(h), $) : h === 58 || h === 95 || ve(h) ? (e.consume(h), B) : Z(h) ? (e.consume(h), v) : $(h);
3831
+ return h === 47 ? (e.consume(h), $) : h === 58 || h === 95 || ke(h) ? (e.consume(h), B) : Z(h) ? (e.consume(h), v) : $(h);
3832
3832
  }
3833
3833
  function B(h) {
3834
- return h === 45 || h === 46 || h === 58 || h === 95 || me(h) ? (e.consume(h), B) : U(h);
3834
+ return h === 45 || h === 46 || h === 58 || h === 95 || ye(h) ? (e.consume(h), B) : U(h);
3835
3835
  }
3836
3836
  function U(h) {
3837
3837
  return h === 61 ? (e.consume(h), y) : Z(h) ? (e.consume(h), U) : v(h);
@@ -3843,7 +3843,7 @@ function Wu(e, t, n) {
3843
3843
  return h === s ? (e.consume(h), s = null, q) : h === null || _(h) ? n(h) : (e.consume(h), O);
3844
3844
  }
3845
3845
  function F(h) {
3846
- return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || he(h) ? U(h) : (e.consume(h), F);
3846
+ return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || ge(h) ? U(h) : (e.consume(h), F);
3847
3847
  }
3848
3848
  function q(h) {
3849
3849
  return h === 47 || h === 62 || Z(h) ? v(h) : n(h);
@@ -3885,7 +3885,7 @@ function Wu(e, t, n) {
3885
3885
  const ie = l.toLowerCase();
3886
3886
  return Xr.includes(ie) ? (e.consume(h), re) : M(h);
3887
3887
  }
3888
- return ve(h) && l.length < 8 ? (e.consume(h), l += String.fromCharCode(h), V) : M(h);
3888
+ return ke(h) && l.length < 8 ? (e.consume(h), l += String.fromCharCode(h), V) : M(h);
3889
3889
  }
3890
3890
  function X(h) {
3891
3891
  return h === 93 ? (e.consume(h), d) : M(h);
@@ -3913,7 +3913,7 @@ function Zu(e, t, n) {
3913
3913
  function Gu(e, t, n) {
3914
3914
  return r;
3915
3915
  function r(i) {
3916
- return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Ut, t, n);
3916
+ return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Bt, t, n);
3917
3917
  }
3918
3918
  }
3919
3919
  const Ku = {
@@ -3928,10 +3928,10 @@ function Xu(e, t, n) {
3928
3928
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(d), s;
3929
3929
  }
3930
3930
  function s(d) {
3931
- return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), U) : d === 63 ? (e.consume(d), v) : ve(d) ? (e.consume(d), F) : n(d);
3931
+ return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), U) : d === 63 ? (e.consume(d), v) : ke(d) ? (e.consume(d), F) : n(d);
3932
3932
  }
3933
3933
  function u(d) {
3934
- return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0, T) : ve(d) ? (e.consume(d), C) : n(d);
3934
+ return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0, T) : ke(d) ? (e.consume(d), C) : n(d);
3935
3935
  }
3936
3936
  function c(d) {
3937
3937
  return d === 45 ? (e.consume(d), f) : n(d);
@@ -3968,22 +3968,22 @@ function Xu(e, t, n) {
3968
3968
  return d === 62 ? R(d) : v(d);
3969
3969
  }
3970
3970
  function U(d) {
3971
- return ve(d) ? (e.consume(d), y) : n(d);
3971
+ return ke(d) ? (e.consume(d), y) : n(d);
3972
3972
  }
3973
3973
  function y(d) {
3974
- return d === 45 || me(d) ? (e.consume(d), y) : O(d);
3974
+ return d === 45 || ye(d) ? (e.consume(d), y) : O(d);
3975
3975
  }
3976
3976
  function O(d) {
3977
3977
  return _(d) ? (l = O, Q(d)) : Z(d) ? (e.consume(d), O) : R(d);
3978
3978
  }
3979
3979
  function F(d) {
3980
- return d === 45 || me(d) ? (e.consume(d), F) : d === 47 || d === 62 || he(d) ? q(d) : n(d);
3980
+ return d === 45 || ye(d) ? (e.consume(d), F) : d === 47 || d === 62 || ge(d) ? q(d) : n(d);
3981
3981
  }
3982
3982
  function q(d) {
3983
- return d === 47 ? (e.consume(d), R) : d === 58 || d === 95 || ve(d) ? (e.consume(d), $) : _(d) ? (l = q, Q(d)) : Z(d) ? (e.consume(d), q) : R(d);
3983
+ return d === 47 ? (e.consume(d), R) : d === 58 || d === 95 || ke(d) ? (e.consume(d), $) : _(d) ? (l = q, Q(d)) : Z(d) ? (e.consume(d), q) : R(d);
3984
3984
  }
3985
3985
  function $(d) {
3986
- return d === 45 || d === 46 || d === 58 || d === 95 || me(d) ? (e.consume(d), $) : k(d);
3986
+ return d === 45 || d === 46 || d === 58 || d === 95 || ye(d) ? (e.consume(d), $) : k(d);
3987
3987
  }
3988
3988
  function k(d) {
3989
3989
  return d === 61 ? (e.consume(d), M) : _(d) ? (l = k, Q(d)) : Z(d) ? (e.consume(d), k) : q(d);
@@ -3995,10 +3995,10 @@ function Xu(e, t, n) {
3995
3995
  return d === i ? (e.consume(d), i = void 0, z) : d === null ? n(d) : _(d) ? (l = N, Q(d)) : (e.consume(d), N);
3996
3996
  }
3997
3997
  function A(d) {
3998
- return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? n(d) : d === 47 || d === 62 || he(d) ? q(d) : (e.consume(d), A);
3998
+ return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? n(d) : d === 47 || d === 62 || ge(d) ? q(d) : (e.consume(d), A);
3999
3999
  }
4000
4000
  function z(d) {
4001
- return d === 47 || d === 62 || he(d) ? q(d) : n(d);
4001
+ return d === 47 || d === 62 || ge(d) ? q(d) : n(d);
4002
4002
  }
4003
4003
  function R(d) {
4004
4004
  return d === 62 ? (e.consume(d), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(d);
@@ -4007,7 +4007,7 @@ function Xu(e, t, n) {
4007
4007
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), V;
4008
4008
  }
4009
4009
  function V(d) {
4010
- return Z(d) ? te(
4010
+ return Z(d) ? ee(
4011
4011
  e,
4012
4012
  X,
4013
4013
  "linePrefix",
@@ -4068,19 +4068,19 @@ function rs(e, t) {
4068
4068
  return a = [
4069
4069
  ["enter", s, t],
4070
4070
  ["enter", u, t]
4071
- ], a = Me(a, e.slice(o + 1, o + r + 3)), a = Me(a, [["enter", c, t]]), a = Me(
4071
+ ], a = xe(a, e.slice(o + 1, o + r + 3)), a = xe(a, [["enter", c, t]]), a = xe(
4072
4072
  a,
4073
4073
  Zn(
4074
4074
  t.parser.constructs.insideSpan.null,
4075
4075
  e.slice(o + r + 4, l - 3),
4076
4076
  t
4077
4077
  )
4078
- ), a = Me(a, [
4078
+ ), a = xe(a, [
4079
4079
  ["exit", c, t],
4080
4080
  e[l - 2],
4081
4081
  e[l - 1],
4082
4082
  ["exit", u, t]
4083
- ]), a = Me(a, e.slice(l + 1)), a = Me(a, [["exit", s, t]]), ke(e, o, e.length, a), e;
4083
+ ]), a = xe(a, e.slice(l + 1)), a = xe(a, [["exit", s, t]]), je(e, o, e.length, a), e;
4084
4084
  }
4085
4085
  function is(e, t, n) {
4086
4086
  const r = this;
@@ -4093,7 +4093,7 @@ function is(e, t, n) {
4093
4093
  return a;
4094
4094
  function a(m) {
4095
4095
  return o ? o._inactive ? p(m) : (l = r.parser.defined.includes(
4096
- qe(
4096
+ $e(
4097
4097
  r.sliceSerialize({
4098
4098
  start: o.end,
4099
4099
  end: r.now()
@@ -4132,7 +4132,7 @@ function os(e, t, n) {
4132
4132
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
4133
4133
  }
4134
4134
  function i(p) {
4135
- return he(p) ? it(e, o)(p) : o(p);
4135
+ return ge(p) ? ot(e, o)(p) : o(p);
4136
4136
  }
4137
4137
  function o(p) {
4138
4138
  return p === 41 ? c(p) : so(
@@ -4148,7 +4148,7 @@ function os(e, t, n) {
4148
4148
  )(p);
4149
4149
  }
4150
4150
  function l(p) {
4151
- return he(p) ? it(e, s)(p) : c(p);
4151
+ return ge(p) ? ot(e, s)(p) : c(p);
4152
4152
  }
4153
4153
  function a(p) {
4154
4154
  return n(p);
@@ -4164,7 +4164,7 @@ function os(e, t, n) {
4164
4164
  )(p) : c(p);
4165
4165
  }
4166
4166
  function u(p) {
4167
- return he(p) ? it(e, c)(p) : c(p);
4167
+ return ge(p) ? ot(e, c)(p) : c(p);
4168
4168
  }
4169
4169
  function c(p) {
4170
4170
  return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), t) : n(p);
@@ -4186,7 +4186,7 @@ function ls(e, t, n) {
4186
4186
  }
4187
4187
  function o(a) {
4188
4188
  return r.parser.defined.includes(
4189
- qe(
4189
+ $e(
4190
4190
  r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
4191
4191
  )
4192
4192
  ) ? t(a) : n(a);
@@ -4244,10 +4244,10 @@ const Mn = {
4244
4244
  function fs(e, t) {
4245
4245
  return n;
4246
4246
  function n(r) {
4247
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), te(e, t, "linePrefix");
4247
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ee(e, t, "linePrefix");
4248
4248
  }
4249
4249
  }
4250
- const jt = {
4250
+ const Et = {
4251
4251
  name: "thematicBreak",
4252
4252
  tokenize: ds
4253
4253
  };
@@ -4264,10 +4264,10 @@ function ds(e, t, n) {
4264
4264
  return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || _(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
4265
4265
  }
4266
4266
  function s(u) {
4267
- return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), Z(u) ? te(e, a, "whitespace")(u) : a(u));
4267
+ return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), Z(u) ? ee(e, a, "whitespace")(u) : a(u));
4268
4268
  }
4269
4269
  }
4270
- const de = {
4270
+ const he = {
4271
4271
  name: "list",
4272
4272
  tokenize: ms,
4273
4273
  continuation: {
@@ -4291,7 +4291,7 @@ function ms(e, t, n) {
4291
4291
  if (r.containerState.type || (r.containerState.type = T, e.enter(T, {
4292
4292
  _container: !0
4293
4293
  })), T === "listUnordered")
4294
- return e.enter("listItemPrefix"), f === 42 || f === 45 ? e.check(jt, n, u)(f) : u(f);
4294
+ return e.enter("listItemPrefix"), f === 42 || f === 45 ? e.check(Et, n, u)(f) : u(f);
4295
4295
  if (!r.interrupt || f === 49)
4296
4296
  return e.enter("listItemPrefix"), e.enter("listItemValue"), s(f);
4297
4297
  }
@@ -4302,7 +4302,7 @@ function ms(e, t, n) {
4302
4302
  }
4303
4303
  function u(f) {
4304
4304
  return e.enter("listItemMarker"), e.consume(f), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || f, e.check(
4305
- Ut,
4305
+ Bt,
4306
4306
  // Can’t be empty when interrupting.
4307
4307
  r.interrupt ? n : c,
4308
4308
  e.attempt(
@@ -4324,9 +4324,9 @@ function ms(e, t, n) {
4324
4324
  }
4325
4325
  function ys(e, t, n) {
4326
4326
  const r = this;
4327
- return r.containerState._closeFlow = void 0, e.check(Ut, i, o);
4327
+ return r.containerState._closeFlow = void 0, e.check(Bt, i, o);
4328
4328
  function i(a) {
4329
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, te(
4329
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, ee(
4330
4330
  e,
4331
4331
  t,
4332
4332
  "listItemIndent",
@@ -4337,9 +4337,9 @@ function ys(e, t, n) {
4337
4337
  return r.containerState.furtherBlankLines || !Z(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(gs, t, l)(a));
4338
4338
  }
4339
4339
  function l(a) {
4340
- return r.containerState._closeFlow = !0, r.interrupt = void 0, te(
4340
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, ee(
4341
4341
  e,
4342
- e.attempt(de, t, n),
4342
+ e.attempt(he, t, n),
4343
4343
  "linePrefix",
4344
4344
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
4345
4345
  )(a);
@@ -4347,7 +4347,7 @@ function ys(e, t, n) {
4347
4347
  }
4348
4348
  function Ms(e, t, n) {
4349
4349
  const r = this;
4350
- return te(
4350
+ return ee(
4351
4351
  e,
4352
4352
  i,
4353
4353
  "listItemIndent",
@@ -4363,7 +4363,7 @@ function xs(e) {
4363
4363
  }
4364
4364
  function bs(e, t, n) {
4365
4365
  const r = this;
4366
- return te(
4366
+ return ee(
4367
4367
  e,
4368
4368
  i,
4369
4369
  "listItemPrefixWhitespace",
@@ -4414,7 +4414,7 @@ function Ds(e, t, n) {
4414
4414
  return e.enter("setextHeadingLineSequence"), a(u);
4415
4415
  }
4416
4416
  function a(u) {
4417
- return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), Z(u) ? te(e, s, "lineSuffix")(u) : s(u));
4417
+ return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), Z(u) ? ee(e, s, "lineSuffix")(u) : s(u));
4418
4418
  }
4419
4419
  function s(u) {
4420
4420
  return u === null || _(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
@@ -4426,13 +4426,13 @@ const Ns = {
4426
4426
  function Ts(e) {
4427
4427
  const t = this, n = e.attempt(
4428
4428
  // Try to parse a blank line.
4429
- Ut,
4429
+ Bt,
4430
4430
  r,
4431
4431
  // Try to parse initial flow (essentially, only code).
4432
4432
  e.attempt(
4433
4433
  this.parser.constructs.flowInitial,
4434
4434
  i,
4435
- te(
4435
+ ee(
4436
4436
  e,
4437
4437
  e.attempt(
4438
4438
  this.parser.constructs.flow,
@@ -4591,7 +4591,7 @@ function Es(e, t, n) {
4591
4591
  let c = t.tokenize.call(u, s);
4592
4592
  return t.resolveAll && o.push(t), u;
4593
4593
  function p(k) {
4594
- return l = Me(l, k), S(), l[l.length - 1] !== null ? [] : (F(t, 0), u.events = Zn(o, u.events, u), u.events);
4594
+ return l = xe(l, k), S(), l[l.length - 1] !== null ? [] : (F(t, 0), u.events = Zn(o, u.events, u), u.events);
4595
4595
  }
4596
4596
  function m(k, M) {
4597
4597
  return Cs(f(k), M);
@@ -4653,14 +4653,14 @@ function Es(e, t, n) {
4653
4653
  ) : re(A);
4654
4654
  function re(G) {
4655
4655
  return ce;
4656
- function ce(ne) {
4657
- const ae = ne !== null && G[ne], De = ne !== null && G.null, Se = [
4656
+ function ce(te) {
4657
+ const ae = te !== null && G[te], Ne = te !== null && G.null, Ce = [
4658
4658
  // To do: add more extension tests.
4659
4659
  /* c8 ignore next 2 */
4660
4660
  ...Array.isArray(ae) ? ae : ae ? [ae] : [],
4661
- ...Array.isArray(De) ? De : De ? [De] : []
4661
+ ...Array.isArray(Ne) ? Ne : Ne ? [Ne] : []
4662
4662
  ];
4663
- return le(Se)(ne);
4663
+ return le(Ce)(te);
4664
4664
  }
4665
4665
  }
4666
4666
  function le(G) {
@@ -4668,28 +4668,28 @@ function Es(e, t, n) {
4668
4668
  }
4669
4669
  function h(G) {
4670
4670
  return ce;
4671
- function ce(ne) {
4672
- return d = q(), X = G, G.partial || (u.currentConstruct = G), G.name && u.parser.constructs.disable.null.includes(G.name) ? ye() : G.tokenize.call(
4671
+ function ce(te) {
4672
+ return d = q(), X = G, G.partial || (u.currentConstruct = G), G.name && u.parser.constructs.disable.null.includes(G.name) ? Me() : G.tokenize.call(
4673
4673
  // If we do have fields, create an object w/ `context` as its
4674
4674
  // prototype.
4675
4675
  // This allows a “live binding”, which is needed for `interrupt`.
4676
4676
  M ? Object.assign(Object.create(u), M) : u,
4677
4677
  s,
4678
4678
  ie,
4679
- ye
4680
- )(ne);
4679
+ Me
4680
+ )(te);
4681
4681
  }
4682
4682
  }
4683
4683
  function ie(G) {
4684
4684
  return k(X, d), z;
4685
4685
  }
4686
- function ye(G) {
4686
+ function Me(G) {
4687
4687
  return d.restore(), ++V < Q.length ? h(Q[V]) : R;
4688
4688
  }
4689
4689
  }
4690
4690
  }
4691
4691
  function F(k, M) {
4692
- k.resolveAll && !o.includes(k) && o.push(k), k.resolve && ke(
4692
+ k.resolveAll && !o.includes(k) && o.push(k), k.resolve && je(
4693
4693
  u.events,
4694
4694
  M,
4695
4695
  u.events.length - M,
@@ -4767,19 +4767,19 @@ function Cs(e, t) {
4767
4767
  return r.join("");
4768
4768
  }
4769
4769
  const As = {
4770
- 42: de,
4771
- 43: de,
4772
- 45: de,
4773
- 48: de,
4774
- 49: de,
4775
- 50: de,
4776
- 51: de,
4777
- 52: de,
4778
- 53: de,
4779
- 54: de,
4780
- 55: de,
4781
- 56: de,
4782
- 57: de,
4770
+ 42: he,
4771
+ 43: he,
4772
+ 45: he,
4773
+ 48: he,
4774
+ 49: he,
4775
+ 50: he,
4776
+ 51: he,
4777
+ 52: he,
4778
+ 53: he,
4779
+ 54: he,
4780
+ 55: he,
4781
+ 56: he,
4782
+ 57: he,
4783
4783
  62: oo
4784
4784
  }, Os = {
4785
4785
  91: zu
@@ -4789,11 +4789,11 @@ const As = {
4789
4789
  32: yn
4790
4790
  }, Ls = {
4791
4791
  35: Uu,
4792
- 42: jt,
4793
- 45: [Jr, jt],
4792
+ 42: Et,
4793
+ 45: [Jr, Et],
4794
4794
  60: Hu,
4795
4795
  61: Jr,
4796
- 95: jt,
4796
+ 95: Et,
4797
4797
  96: Kr,
4798
4798
  126: Kr
4799
4799
  }, Ps = {
@@ -4944,59 +4944,59 @@ function Zs(e) {
4944
4944
  transforms: [],
4945
4945
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
4946
4946
  enter: {
4947
- autolink: a(gt),
4947
+ autolink: a(mt),
4948
4948
  autolinkProtocol: k,
4949
4949
  autolinkEmail: k,
4950
- atxHeading: a(dt),
4951
- blockQuote: a(Se),
4950
+ atxHeading: a(ht),
4951
+ blockQuote: a(Ce),
4952
4952
  characterEscape: k,
4953
4953
  characterReference: k,
4954
4954
  codeFenced: a(He),
4955
4955
  codeFencedFenceInfo: s,
4956
4956
  codeFencedFenceMeta: s,
4957
4957
  codeIndented: a(He, s),
4958
- codeText: a(en, s),
4958
+ codeText: a(tn, s),
4959
4959
  codeTextData: k,
4960
4960
  data: k,
4961
4961
  codeFlowValue: k,
4962
- definition: a(tn),
4962
+ definition: a(nn),
4963
4963
  definitionDestinationString: s,
4964
4964
  definitionLabelString: s,
4965
4965
  definitionTitleString: s,
4966
- emphasis: a(nn),
4967
- hardBreakEscape: a(Ce),
4968
- hardBreakTrailing: a(Ce),
4969
- htmlFlow: a(ht, s),
4966
+ emphasis: a(rn),
4967
+ hardBreakEscape: a(Ae),
4968
+ hardBreakTrailing: a(Ae),
4969
+ htmlFlow: a(gt, s),
4970
4970
  htmlFlowData: k,
4971
- htmlText: a(ht, s),
4971
+ htmlText: a(gt, s),
4972
4972
  htmlTextData: k,
4973
- image: a(rn),
4973
+ image: a(on),
4974
4974
  label: s,
4975
- link: a(gt),
4976
- listItem: a(on),
4975
+ link: a(mt),
4976
+ listItem: a(ln),
4977
4977
  listItemValue: T,
4978
- listOrdered: a(mt, f),
4979
- listUnordered: a(mt),
4980
- paragraph: a(ln),
4981
- reference: ye,
4978
+ listOrdered: a(yt, f),
4979
+ listUnordered: a(yt),
4980
+ paragraph: a(an),
4981
+ reference: Me,
4982
4982
  referenceString: s,
4983
4983
  resourceDestinationString: s,
4984
4984
  resourceTitleString: s,
4985
- setextHeading: a(dt),
4986
- strong: a(yt),
4987
- thematicBreak: a(an)
4985
+ setextHeading: a(ht),
4986
+ strong: a(Mt),
4987
+ thematicBreak: a(un)
4988
4988
  },
4989
4989
  exit: {
4990
4990
  atxHeading: c(),
4991
4991
  atxHeadingSequence: O,
4992
4992
  autolink: c(),
4993
- autolinkEmail: De,
4993
+ autolinkEmail: Ne,
4994
4994
  autolinkProtocol: ae,
4995
4995
  blockQuote: c(),
4996
4996
  characterEscapeValue: M,
4997
4997
  characterReferenceMarkerHexadecimal: ce,
4998
4998
  characterReferenceMarkerNumeric: ce,
4999
- characterReferenceValue: ne,
4999
+ characterReferenceValue: te,
5000
5000
  codeFenced: c(C),
5001
5001
  codeFencedFence: b,
5002
5002
  codeFencedFenceInfo: x,
@@ -5082,14 +5082,14 @@ function Zs(e) {
5082
5082
  (W[1] || ti).call(I, void 0, W[0]);
5083
5083
  }
5084
5084
  for (E.position = {
5085
- start: Ae(
5085
+ start: Oe(
5086
5086
  w.length > 0 ? w[0][1].start : {
5087
5087
  line: 1,
5088
5088
  column: 1,
5089
5089
  offset: 0
5090
5090
  }
5091
5091
  ),
5092
- end: Ae(
5092
+ end: Oe(
5093
5093
  w.length > 0 ? w[w.length - 2][1].end : {
5094
5094
  line: 1,
5095
5095
  column: 1,
@@ -5101,33 +5101,33 @@ function Zs(e) {
5101
5101
  return E;
5102
5102
  }
5103
5103
  function i(w, E, I) {
5104
- let L = E - 1, Y = -1, W = !1, ue, Te, je, Fe;
5104
+ let L = E - 1, Y = -1, W = !1, ue, fe, qe, Ee;
5105
5105
  for (; ++L <= I; ) {
5106
- const J = w[L];
5107
- if (J[1].type === "listUnordered" || J[1].type === "listOrdered" || J[1].type === "blockQuote" ? (J[0] === "enter" ? Y++ : Y--, Fe = void 0) : J[1].type === "lineEndingBlank" ? J[0] === "enter" && (ue && !Fe && !Y && !je && (je = L), Fe = void 0) : J[1].type === "linePrefix" || J[1].type === "listItemValue" || J[1].type === "listItemMarker" || J[1].type === "listItemPrefix" || J[1].type === "listItemPrefixWhitespace" || (Fe = void 0), !Y && J[0] === "enter" && J[1].type === "listItemPrefix" || Y === -1 && J[0] === "exit" && (J[1].type === "listUnordered" || J[1].type === "listOrdered")) {
5106
+ const ne = w[L];
5107
+ if (ne[1].type === "listUnordered" || ne[1].type === "listOrdered" || ne[1].type === "blockQuote" ? (ne[0] === "enter" ? Y++ : Y--, Ee = void 0) : ne[1].type === "lineEndingBlank" ? ne[0] === "enter" && (ue && !Ee && !Y && !qe && (qe = L), Ee = void 0) : ne[1].type === "linePrefix" || ne[1].type === "listItemValue" || ne[1].type === "listItemMarker" || ne[1].type === "listItemPrefix" || ne[1].type === "listItemPrefixWhitespace" || (Ee = void 0), !Y && ne[0] === "enter" && ne[1].type === "listItemPrefix" || Y === -1 && ne[0] === "exit" && (ne[1].type === "listUnordered" || ne[1].type === "listOrdered")) {
5108
5108
  if (ue) {
5109
- let un = L;
5110
- for (Te = void 0; un--; ) {
5111
- const Ee = w[un];
5112
- if (Ee[1].type === "lineEnding" || Ee[1].type === "lineEndingBlank") {
5113
- if (Ee[0] === "exit")
5109
+ let Ie = L;
5110
+ for (fe = void 0; Ie--; ) {
5111
+ const Se = w[Ie];
5112
+ if (Se[1].type === "lineEnding" || Se[1].type === "lineEndingBlank") {
5113
+ if (Se[0] === "exit")
5114
5114
  continue;
5115
- Te && (w[Te][1].type = "lineEndingBlank", W = !0), Ee[1].type = "lineEnding", Te = un;
5116
- } else if (!(Ee[1].type === "linePrefix" || Ee[1].type === "blockQuotePrefix" || Ee[1].type === "blockQuotePrefixWhitespace" || Ee[1].type === "blockQuoteMarker" || Ee[1].type === "listItemIndent"))
5115
+ fe && (w[fe][1].type = "lineEndingBlank", W = !0), Se[1].type = "lineEnding", fe = Ie;
5116
+ } else if (!(Se[1].type === "linePrefix" || Se[1].type === "blockQuotePrefix" || Se[1].type === "blockQuotePrefixWhitespace" || Se[1].type === "blockQuoteMarker" || Se[1].type === "listItemIndent"))
5117
5117
  break;
5118
5118
  }
5119
- je && (!Te || je < Te) && (ue._spread = !0), ue.end = Object.assign(
5119
+ qe && (!fe || qe < fe) && (ue._spread = !0), ue.end = Object.assign(
5120
5120
  {},
5121
- Te ? w[Te][1].start : J[1].end
5122
- ), w.splice(Te || L, 0, ["exit", ue, J[2]]), L++, I++;
5121
+ fe ? w[fe][1].start : ne[1].end
5122
+ ), w.splice(fe || L, 0, ["exit", ue, ne[2]]), L++, I++;
5123
5123
  }
5124
- J[1].type === "listItemPrefix" && (ue = {
5124
+ ne[1].type === "listItemPrefix" && (ue = {
5125
5125
  type: "listItem",
5126
5126
  _spread: !1,
5127
- start: Object.assign({}, J[1].start),
5127
+ start: Object.assign({}, ne[1].start),
5128
5128
  // @ts-expect-error: we’ll add `end` in a second.
5129
5129
  end: void 0
5130
- }, w.splice(L, 0, ["enter", ue, J[2]]), L++, I++, je = void 0, Fe = !0);
5130
+ }, w.splice(L, 0, ["enter", ue, ne[2]]), L++, I++, qe = void 0, Ee = !0);
5131
5131
  }
5132
5132
  }
5133
5133
  return w[E][1]._spread = W, I;
@@ -5152,7 +5152,7 @@ function Zs(e) {
5152
5152
  }
5153
5153
  function u(w, E, I) {
5154
5154
  return this.stack[this.stack.length - 1].children.push(w), this.stack.push(w), this.tokenStack.push([E, I]), w.position = {
5155
- start: Ae(E.start)
5155
+ start: Oe(E.start)
5156
5156
  }, w;
5157
5157
  }
5158
5158
  function c(w) {
@@ -5167,12 +5167,12 @@ function Zs(e) {
5167
5167
  L[0].type !== w.type && (E ? E.call(this, w, L[0]) : (L[1] || ti).call(this, w, L[0]));
5168
5168
  else
5169
5169
  throw new Error(
5170
- "Cannot close `" + w.type + "` (" + rt({
5170
+ "Cannot close `" + w.type + "` (" + it({
5171
5171
  start: w.start,
5172
5172
  end: w.end
5173
5173
  }) + "): it’s not open"
5174
5174
  );
5175
- return I.position.end = Ae(w.end), I;
5175
+ return I.position.end = Oe(w.end), I;
5176
5176
  }
5177
5177
  function m() {
5178
5178
  return Va(this.stack.pop());
@@ -5207,7 +5207,7 @@ function Zs(e) {
5207
5207
  }
5208
5208
  function B(w) {
5209
5209
  const E = this.resume(), I = this.stack[this.stack.length - 1];
5210
- I.label = E, I.identifier = qe(
5210
+ I.label = E, I.identifier = $e(
5211
5211
  this.sliceSerialize(w)
5212
5212
  ).toLowerCase();
5213
5213
  }
@@ -5239,19 +5239,19 @@ function Zs(e) {
5239
5239
  function k(w) {
5240
5240
  const E = this.stack[this.stack.length - 1];
5241
5241
  let I = E.children[E.children.length - 1];
5242
- (!I || I.type !== "text") && (I = Mt(), I.position = {
5243
- start: Ae(w.start)
5242
+ (!I || I.type !== "text") && (I = xt(), I.position = {
5243
+ start: Oe(w.start)
5244
5244
  }, E.children.push(I)), this.stack.push(I);
5245
5245
  }
5246
5246
  function M(w) {
5247
5247
  const E = this.stack.pop();
5248
- E.value += this.sliceSerialize(w), E.position.end = Ae(w.end);
5248
+ E.value += this.sliceSerialize(w), E.position.end = Oe(w.end);
5249
5249
  }
5250
5250
  function N(w) {
5251
5251
  const E = this.stack[this.stack.length - 1];
5252
5252
  if (l("atHardBreak")) {
5253
5253
  const I = E.children[E.children.length - 1];
5254
- I.position.end = Ae(w.end), o("atHardBreak");
5254
+ I.position.end = Oe(w.end), o("atHardBreak");
5255
5255
  return;
5256
5256
  }
5257
5257
  !l("setextHeadingSlurpLineEnding") && t.canContainEols.includes(E.type) && (k.call(this, w), M.call(this, w));
@@ -5291,7 +5291,7 @@ function Zs(e) {
5291
5291
  }
5292
5292
  function d(w) {
5293
5293
  const E = this.sliceSerialize(w), I = this.stack[this.stack.length - 2];
5294
- I.label = $s(E), I.identifier = qe(E).toLowerCase();
5294
+ I.label = $s(E), I.identifier = $e(E).toLowerCase();
5295
5295
  }
5296
5296
  function re() {
5297
5297
  const w = this.stack[this.stack.length - 1], E = this.resume(), I = this.stack[this.stack.length - 1];
@@ -5312,19 +5312,19 @@ function Zs(e) {
5312
5312
  function ie() {
5313
5313
  o("inReference");
5314
5314
  }
5315
- function ye() {
5315
+ function Me() {
5316
5316
  o("referenceType", "collapsed");
5317
5317
  }
5318
5318
  function G(w) {
5319
5319
  const E = this.resume(), I = this.stack[this.stack.length - 1];
5320
- I.label = E, I.identifier = qe(
5320
+ I.label = E, I.identifier = $e(
5321
5321
  this.sliceSerialize(w)
5322
5322
  ).toLowerCase(), o("referenceType", "full");
5323
5323
  }
5324
5324
  function ce(w) {
5325
5325
  o("characterReferenceType", w.type);
5326
5326
  }
5327
- function ne(w) {
5327
+ function te(w) {
5328
5328
  const E = this.sliceSerialize(w), I = l("characterReferenceType");
5329
5329
  let L;
5330
5330
  I ? (L = go(
@@ -5332,19 +5332,19 @@ function Zs(e) {
5332
5332
  I === "characterReferenceMarkerNumeric" ? 10 : 16
5333
5333
  ), o("characterReferenceType")) : L = Gn(E);
5334
5334
  const Y = this.stack.pop();
5335
- Y.value += L, Y.position.end = Ae(w.end);
5335
+ Y.value += L, Y.position.end = Oe(w.end);
5336
5336
  }
5337
5337
  function ae(w) {
5338
5338
  M.call(this, w);
5339
5339
  const E = this.stack[this.stack.length - 1];
5340
5340
  E.url = this.sliceSerialize(w);
5341
5341
  }
5342
- function De(w) {
5342
+ function Ne(w) {
5343
5343
  M.call(this, w);
5344
5344
  const E = this.stack[this.stack.length - 1];
5345
5345
  E.url = "mailto:" + this.sliceSerialize(w);
5346
5346
  }
5347
- function Se() {
5347
+ function Ce() {
5348
5348
  return {
5349
5349
  type: "blockquote",
5350
5350
  children: []
@@ -5358,13 +5358,13 @@ function Zs(e) {
5358
5358
  value: ""
5359
5359
  };
5360
5360
  }
5361
- function en() {
5361
+ function tn() {
5362
5362
  return {
5363
5363
  type: "inlineCode",
5364
5364
  value: ""
5365
5365
  };
5366
5366
  }
5367
- function tn() {
5367
+ function nn() {
5368
5368
  return {
5369
5369
  type: "definition",
5370
5370
  identifier: "",
@@ -5373,31 +5373,31 @@ function Zs(e) {
5373
5373
  url: ""
5374
5374
  };
5375
5375
  }
5376
- function nn() {
5376
+ function rn() {
5377
5377
  return {
5378
5378
  type: "emphasis",
5379
5379
  children: []
5380
5380
  };
5381
5381
  }
5382
- function dt() {
5382
+ function ht() {
5383
5383
  return {
5384
5384
  type: "heading",
5385
5385
  depth: void 0,
5386
5386
  children: []
5387
5387
  };
5388
5388
  }
5389
- function Ce() {
5389
+ function Ae() {
5390
5390
  return {
5391
5391
  type: "break"
5392
5392
  };
5393
5393
  }
5394
- function ht() {
5394
+ function gt() {
5395
5395
  return {
5396
5396
  type: "html",
5397
5397
  value: ""
5398
5398
  };
5399
5399
  }
5400
- function rn() {
5400
+ function on() {
5401
5401
  return {
5402
5402
  type: "image",
5403
5403
  title: null,
@@ -5405,7 +5405,7 @@ function Zs(e) {
5405
5405
  alt: null
5406
5406
  };
5407
5407
  }
5408
- function gt() {
5408
+ function mt() {
5409
5409
  return {
5410
5410
  type: "link",
5411
5411
  title: null,
@@ -5413,7 +5413,7 @@ function Zs(e) {
5413
5413
  children: []
5414
5414
  };
5415
5415
  }
5416
- function mt(w) {
5416
+ function yt(w) {
5417
5417
  return {
5418
5418
  type: "list",
5419
5419
  ordered: w.type === "listOrdered",
@@ -5422,7 +5422,7 @@ function Zs(e) {
5422
5422
  children: []
5423
5423
  };
5424
5424
  }
5425
- function on(w) {
5425
+ function ln(w) {
5426
5426
  return {
5427
5427
  type: "listItem",
5428
5428
  spread: w._spread,
@@ -5430,31 +5430,31 @@ function Zs(e) {
5430
5430
  children: []
5431
5431
  };
5432
5432
  }
5433
- function ln() {
5433
+ function an() {
5434
5434
  return {
5435
5435
  type: "paragraph",
5436
5436
  children: []
5437
5437
  };
5438
5438
  }
5439
- function yt() {
5439
+ function Mt() {
5440
5440
  return {
5441
5441
  type: "strong",
5442
5442
  children: []
5443
5443
  };
5444
5444
  }
5445
- function Mt() {
5445
+ function xt() {
5446
5446
  return {
5447
5447
  type: "text",
5448
5448
  value: ""
5449
5449
  };
5450
5450
  }
5451
- function an() {
5451
+ function un() {
5452
5452
  return {
5453
5453
  type: "thematicBreak"
5454
5454
  };
5455
5455
  }
5456
5456
  }
5457
- function Ae(e) {
5457
+ function Oe(e) {
5458
5458
  return {
5459
5459
  line: e.line,
5460
5460
  column: e.column,
@@ -5486,15 +5486,15 @@ function Gs(e, t) {
5486
5486
  }
5487
5487
  function ti(e, t) {
5488
5488
  throw e ? new Error(
5489
- "Cannot close `" + e.type + "` (" + rt({
5489
+ "Cannot close `" + e.type + "` (" + it({
5490
5490
  start: e.start,
5491
5491
  end: e.end
5492
- }) + "): a different token (`" + t.type + "`, " + rt({
5492
+ }) + "): a different token (`" + t.type + "`, " + it({
5493
5493
  start: t.start,
5494
5494
  end: t.end
5495
5495
  }) + ") is open"
5496
5496
  ) : new Error(
5497
- "Cannot close document, a token (`" + t.type + "`, " + rt({
5497
+ "Cannot close document, a token (`" + t.type + "`, " + it({
5498
5498
  start: t.start,
5499
5499
  end: t.end
5500
5500
  }) + ") is still open"
@@ -5562,13 +5562,13 @@ function nc(e, t) {
5562
5562
  };
5563
5563
  return e.patch(t, n), e.applyData(t, n);
5564
5564
  }
5565
- function We(e) {
5565
+ function Ze(e) {
5566
5566
  const t = [];
5567
5567
  let n = -1, r = 0, i = 0;
5568
5568
  for (; ++n < e.length; ) {
5569
5569
  const o = e.charCodeAt(n);
5570
5570
  let l = "";
5571
- if (o === 37 && me(e.charCodeAt(n + 1)) && me(e.charCodeAt(n + 2)))
5571
+ if (o === 37 && ye(e.charCodeAt(n + 1)) && ye(e.charCodeAt(n + 2)))
5572
5572
  i = 2;
5573
5573
  else if (o < 128)
5574
5574
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (l = String.fromCharCode(o));
@@ -5582,7 +5582,7 @@ function We(e) {
5582
5582
  return t.join("") + e.slice(r);
5583
5583
  }
5584
5584
  function Mo(e, t) {
5585
- const n = String(t.identifier).toUpperCase(), r = We(n.toLowerCase()), i = e.footnoteOrder.indexOf(n);
5585
+ const n = String(t.identifier).toUpperCase(), r = Ze(n.toLowerCase()), i = e.footnoteOrder.indexOf(n);
5586
5586
  let o;
5587
5587
  i === -1 ? (e.footnoteOrder.push(n), e.footnoteCounts[n] = 1, o = e.footnoteOrder.length) : (e.footnoteCounts[n]++, o = i + 1);
5588
5588
  const l = e.footnoteCounts[n], a = {
@@ -5652,13 +5652,13 @@ function lc(e, t) {
5652
5652
  const n = e.definition(t.identifier);
5653
5653
  if (!n)
5654
5654
  return xo(e, t);
5655
- const r = { src: We(n.url || ""), alt: t.alt };
5655
+ const r = { src: Ze(n.url || ""), alt: t.alt };
5656
5656
  n.title !== null && n.title !== void 0 && (r.title = n.title);
5657
5657
  const i = { type: "element", tagName: "img", properties: r, children: [] };
5658
5658
  return e.patch(t, i), e.applyData(t, i);
5659
5659
  }
5660
5660
  function ac(e, t) {
5661
- const n = { src: We(t.url) };
5661
+ const n = { src: Ze(t.url) };
5662
5662
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
5663
5663
  const r = { type: "element", tagName: "img", properties: n, children: [] };
5664
5664
  return e.patch(t, r), e.applyData(t, r);
@@ -5678,7 +5678,7 @@ function sc(e, t) {
5678
5678
  const n = e.definition(t.identifier);
5679
5679
  if (!n)
5680
5680
  return xo(e, t);
5681
- const r = { href: We(n.url || "") };
5681
+ const r = { href: Ze(n.url || "") };
5682
5682
  n.title !== null && n.title !== void 0 && (r.title = n.title);
5683
5683
  const i = {
5684
5684
  type: "element",
@@ -5689,7 +5689,7 @@ function sc(e, t) {
5689
5689
  return e.patch(t, i), e.applyData(t, i);
5690
5690
  }
5691
5691
  function cc(e, t) {
5692
- const n = { href: We(t.url) };
5692
+ const n = { href: Ze(t.url) };
5693
5693
  t.title !== null && t.title !== void 0 && (n.title = t.title);
5694
5694
  const r = {
5695
5695
  type: "element",
@@ -5916,12 +5916,12 @@ const Tc = {
5916
5916
  tableRow: xc,
5917
5917
  text: Dc,
5918
5918
  thematicBreak: Nc,
5919
- toml: wt,
5920
- yaml: wt,
5921
- definition: wt,
5922
- footnoteDefinition: wt
5919
+ toml: Dt,
5920
+ yaml: Dt,
5921
+ definition: Dt,
5922
+ footnoteDefinition: Dt
5923
5923
  };
5924
- function wt() {
5924
+ function Dt() {
5925
5925
  return null;
5926
5926
  }
5927
5927
  const Do = (
@@ -5943,7 +5943,7 @@ const Do = (
5943
5943
  if (typeof e == "object")
5944
5944
  return Array.isArray(e) ? Ic(e) : vc(e);
5945
5945
  if (typeof e == "function")
5946
- return Bt(e);
5946
+ return Qt(e);
5947
5947
  throw new Error("Expected function, string, or object as test");
5948
5948
  }
5949
5949
  );
@@ -5952,7 +5952,7 @@ function Ic(e) {
5952
5952
  let n = -1;
5953
5953
  for (; ++n < e.length; )
5954
5954
  t[n] = Do(e[n]);
5955
- return Bt(r);
5955
+ return Qt(r);
5956
5956
  function r(...i) {
5957
5957
  let o = -1;
5958
5958
  for (; ++o < t.length; )
@@ -5962,7 +5962,7 @@ function Ic(e) {
5962
5962
  }
5963
5963
  }
5964
5964
  function vc(e) {
5965
- return Bt(t);
5965
+ return Qt(t);
5966
5966
  function t(n) {
5967
5967
  let r;
5968
5968
  for (r in e)
@@ -5972,12 +5972,12 @@ function vc(e) {
5972
5972
  }
5973
5973
  }
5974
5974
  function kc(e) {
5975
- return Bt(t);
5975
+ return Qt(t);
5976
5976
  function t(n) {
5977
5977
  return n && n.type === e;
5978
5978
  }
5979
5979
  }
5980
- function Bt(e) {
5980
+ function Qt(e) {
5981
5981
  return t;
5982
5982
  function t(n, ...r) {
5983
5983
  return !!(n && typeof n == "object" && "type" in n && e.call(this, n, ...r));
@@ -6083,14 +6083,14 @@ function zc(e) {
6083
6083
  function ai(e) {
6084
6084
  return String(e || "").toUpperCase();
6085
6085
  }
6086
- const Ct = {}.hasOwnProperty;
6086
+ const At = {}.hasOwnProperty;
6087
6087
  function Lc(e, t) {
6088
6088
  const n = t || {}, r = n.allowDangerousHtml || !1, i = {};
6089
6089
  return l.dangerous = r, l.clobberPrefix = n.clobberPrefix === void 0 || n.clobberPrefix === null ? "user-content-" : n.clobberPrefix, l.footnoteLabel = n.footnoteLabel || "Footnotes", l.footnoteLabelTagName = n.footnoteLabelTagName || "h2", l.footnoteLabelProperties = n.footnoteLabelProperties || {
6090
6090
  className: ["sr-only"]
6091
6091
  }, l.footnoteBackLabel = n.footnoteBackLabel || "Back to content", l.unknownHandler = n.unknownHandler, l.passThrough = n.passThrough, l.handlers = { ...Tc, ...n.handlers }, l.definition = zc(e), l.footnoteById = i, l.footnoteOrder = [], l.footnoteCounts = {}, l.patch = Pc, l.applyData = Fc, l.one = a, l.all = s, l.wrap = _c, l.augment = o, er(e, "footnoteDefinition", (u) => {
6092
6092
  const c = String(u.identifier).toUpperCase();
6093
- Ct.call(i, c) || (i[c] = u);
6093
+ At.call(i, c) || (i[c] = u);
6094
6094
  }), l;
6095
6095
  function o(u, c) {
6096
6096
  if (u && "data" in u && u.data) {
@@ -6143,7 +6143,7 @@ function No(e, t, n) {
6143
6143
  const r = t && t.type;
6144
6144
  if (!r)
6145
6145
  throw new Error("Expected node, got `" + t + "`");
6146
- return Ct.call(e.handlers, r) ? e.handlers[r](e, t, n) : e.passThrough && e.passThrough.includes(r) ? "children" in t ? { ...t, children: tr(e, t) } : t : e.unknownHandler ? e.unknownHandler(e, t, n) : Rc(e, t);
6146
+ return At.call(e.handlers, r) ? e.handlers[r](e, t, n) : e.passThrough && e.passThrough.includes(r) ? "children" in t ? { ...t, children: tr(e, t) } : t : e.unknownHandler ? e.unknownHandler(e, t, n) : Rc(e, t);
6147
6147
  }
6148
6148
  function tr(e, t) {
6149
6149
  const n = [];
@@ -6164,7 +6164,7 @@ function tr(e, t) {
6164
6164
  return n;
6165
6165
  }
6166
6166
  function Rc(e, t) {
6167
- const n = t.data || {}, r = "value" in t && !(Ct.call(n, "hProperties") || Ct.call(n, "hChildren")) ? { type: "text", value: t.value } : {
6167
+ const n = t.data || {}, r = "value" in t && !(At.call(n, "hProperties") || At.call(n, "hChildren")) ? { type: "text", value: t.value } : {
6168
6168
  type: "element",
6169
6169
  tagName: "div",
6170
6170
  properties: {},
@@ -6189,7 +6189,7 @@ function Uc(e) {
6189
6189
  const r = e.footnoteById[e.footnoteOrder[n]];
6190
6190
  if (!r)
6191
6191
  continue;
6192
- const i = e.all(r), o = String(r.identifier).toUpperCase(), l = We(o.toLowerCase());
6192
+ const i = e.all(r), o = String(r.identifier).toUpperCase(), l = Ze(o.toLowerCase());
6193
6193
  let a = 0;
6194
6194
  const s = [];
6195
6195
  for (; ++a <= e.footnoteCounts[o]; ) {
@@ -6274,7 +6274,7 @@ function Yc(e, t) {
6274
6274
  function Hc(e) {
6275
6275
  return (t) => To(t, e);
6276
6276
  }
6277
- class ft {
6277
+ class dt {
6278
6278
  /**
6279
6279
  * @constructor
6280
6280
  * @param {Properties} property
@@ -6285,20 +6285,20 @@ class ft {
6285
6285
  this.property = t, this.normal = n, r && (this.space = r);
6286
6286
  }
6287
6287
  }
6288
- ft.prototype.property = {};
6289
- ft.prototype.normal = {};
6290
- ft.prototype.space = null;
6288
+ dt.prototype.property = {};
6289
+ dt.prototype.normal = {};
6290
+ dt.prototype.space = null;
6291
6291
  function Io(e, t) {
6292
6292
  const n = {}, r = {};
6293
6293
  let i = -1;
6294
6294
  for (; ++i < e.length; )
6295
6295
  Object.assign(n, e[i].property), Object.assign(r, e[i].normal);
6296
- return new ft(n, r, t);
6296
+ return new dt(n, r, t);
6297
6297
  }
6298
6298
  function Pn(e) {
6299
6299
  return e.toLowerCase();
6300
6300
  }
6301
- class be {
6301
+ class we {
6302
6302
  /**
6303
6303
  * @constructor
6304
6304
  * @param {string} property
@@ -6308,18 +6308,18 @@ class be {
6308
6308
  this.property = t, this.attribute = n;
6309
6309
  }
6310
6310
  }
6311
- be.prototype.space = null;
6312
- be.prototype.boolean = !1;
6313
- be.prototype.booleanish = !1;
6314
- be.prototype.overloadedBoolean = !1;
6315
- be.prototype.number = !1;
6316
- be.prototype.commaSeparated = !1;
6317
- be.prototype.spaceSeparated = !1;
6318
- be.prototype.commaOrSpaceSeparated = !1;
6319
- be.prototype.mustUseProperty = !1;
6320
- be.prototype.defined = !1;
6311
+ we.prototype.space = null;
6312
+ we.prototype.boolean = !1;
6313
+ we.prototype.booleanish = !1;
6314
+ we.prototype.overloadedBoolean = !1;
6315
+ we.prototype.number = !1;
6316
+ we.prototype.commaSeparated = !1;
6317
+ we.prototype.spaceSeparated = !1;
6318
+ we.prototype.commaOrSpaceSeparated = !1;
6319
+ we.prototype.mustUseProperty = !1;
6320
+ we.prototype.defined = !1;
6321
6321
  let qc = 0;
6322
- const H = Ye(), oe = Ye(), vo = Ye(), j = Ye(), ee = Ye(), $e = Ye(), ge = Ye();
6322
+ const H = Ye(), oe = Ye(), vo = Ye(), j = Ye(), J = Ye(), Ve = Ye(), me = Ye();
6323
6323
  function Ye() {
6324
6324
  return 2 ** ++qc;
6325
6325
  }
@@ -6327,13 +6327,13 @@ const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6327
6327
  __proto__: null,
6328
6328
  boolean: H,
6329
6329
  booleanish: oe,
6330
- commaOrSpaceSeparated: ge,
6331
- commaSeparated: $e,
6330
+ commaOrSpaceSeparated: me,
6331
+ commaSeparated: Ve,
6332
6332
  number: j,
6333
6333
  overloadedBoolean: vo,
6334
- spaceSeparated: ee
6334
+ spaceSeparated: J
6335
6335
  }, Symbol.toStringTag, { value: "Module" })), xn = Object.keys(Fn);
6336
- class nr extends be {
6336
+ class nr extends we {
6337
6337
  /**
6338
6338
  * @constructor
6339
6339
  * @param {string} property
@@ -6355,7 +6355,7 @@ function ui(e, t, n) {
6355
6355
  n && (e[t] = n);
6356
6356
  }
6357
6357
  const $c = {}.hasOwnProperty;
6358
- function Ze(e) {
6358
+ function Ge(e) {
6359
6359
  const t = {}, n = {};
6360
6360
  let r;
6361
6361
  for (r in e.properties)
@@ -6368,9 +6368,9 @@ function Ze(e) {
6368
6368
  );
6369
6369
  e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Pn(r)] = r, n[Pn(o.attribute)] = r;
6370
6370
  }
6371
- return new ft(t, n, e.space);
6371
+ return new dt(t, n, e.space);
6372
6372
  }
6373
- const ko = Ze({
6373
+ const ko = Ge({
6374
6374
  space: "xlink",
6375
6375
  transform(e, t) {
6376
6376
  return "xlink:" + t.slice(5).toLowerCase();
@@ -6384,7 +6384,7 @@ const ko = Ze({
6384
6384
  xLinkTitle: null,
6385
6385
  xLinkType: null
6386
6386
  }
6387
- }), jo = Ze({
6387
+ }), jo = Ge({
6388
6388
  space: "xml",
6389
6389
  transform(e, t) {
6390
6390
  return "xml:" + t.slice(3).toLowerCase();
@@ -6397,12 +6397,12 @@ function Eo(e, t) {
6397
6397
  function So(e, t) {
6398
6398
  return Eo(e, t.toLowerCase());
6399
6399
  }
6400
- const Co = Ze({
6400
+ const Co = Ge({
6401
6401
  space: "xmlns",
6402
6402
  attributes: { xmlnsxlink: "xmlns:xlink" },
6403
6403
  transform: So,
6404
6404
  properties: { xmlns: null, xmlnsXLink: null }
6405
- }), Ao = Ze({
6405
+ }), Ao = Ge({
6406
6406
  transform(e, t) {
6407
6407
  return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
6408
6408
  },
@@ -6415,36 +6415,36 @@ const Co = Ze({
6415
6415
  ariaColCount: j,
6416
6416
  ariaColIndex: j,
6417
6417
  ariaColSpan: j,
6418
- ariaControls: ee,
6418
+ ariaControls: J,
6419
6419
  ariaCurrent: null,
6420
- ariaDescribedBy: ee,
6420
+ ariaDescribedBy: J,
6421
6421
  ariaDetails: null,
6422
6422
  ariaDisabled: oe,
6423
- ariaDropEffect: ee,
6423
+ ariaDropEffect: J,
6424
6424
  ariaErrorMessage: null,
6425
6425
  ariaExpanded: oe,
6426
- ariaFlowTo: ee,
6426
+ ariaFlowTo: J,
6427
6427
  ariaGrabbed: oe,
6428
6428
  ariaHasPopup: null,
6429
6429
  ariaHidden: oe,
6430
6430
  ariaInvalid: null,
6431
6431
  ariaKeyShortcuts: null,
6432
6432
  ariaLabel: null,
6433
- ariaLabelledBy: ee,
6433
+ ariaLabelledBy: J,
6434
6434
  ariaLevel: j,
6435
6435
  ariaLive: null,
6436
6436
  ariaModal: oe,
6437
6437
  ariaMultiLine: oe,
6438
6438
  ariaMultiSelectable: oe,
6439
6439
  ariaOrientation: null,
6440
- ariaOwns: ee,
6440
+ ariaOwns: J,
6441
6441
  ariaPlaceholder: null,
6442
6442
  ariaPosInSet: j,
6443
6443
  ariaPressed: oe,
6444
6444
  ariaReadOnly: oe,
6445
6445
  ariaRelevant: null,
6446
6446
  ariaRequired: oe,
6447
- ariaRoleDescription: ee,
6447
+ ariaRoleDescription: J,
6448
6448
  ariaRowCount: j,
6449
6449
  ariaRowIndex: j,
6450
6450
  ariaRowSpan: j,
@@ -6457,7 +6457,7 @@ const Co = Ze({
6457
6457
  ariaValueText: null,
6458
6458
  role: null
6459
6459
  }
6460
- }), Vc = Ze({
6460
+ }), Vc = Ge({
6461
6461
  space: "html",
6462
6462
  attributes: {
6463
6463
  acceptcharset: "accept-charset",
@@ -6470,9 +6470,9 @@ const Co = Ze({
6470
6470
  properties: {
6471
6471
  // Standard Properties.
6472
6472
  abbr: null,
6473
- accept: $e,
6474
- acceptCharset: ee,
6475
- accessKey: ee,
6473
+ accept: Ve,
6474
+ acceptCharset: J,
6475
+ accessKey: J,
6476
6476
  action: null,
6477
6477
  allow: null,
6478
6478
  allowFullScreen: H,
@@ -6482,22 +6482,22 @@ const Co = Ze({
6482
6482
  as: null,
6483
6483
  async: H,
6484
6484
  autoCapitalize: null,
6485
- autoComplete: ee,
6485
+ autoComplete: J,
6486
6486
  autoFocus: H,
6487
6487
  autoPlay: H,
6488
- blocking: ee,
6488
+ blocking: J,
6489
6489
  capture: H,
6490
6490
  charSet: null,
6491
6491
  checked: H,
6492
6492
  cite: null,
6493
- className: ee,
6493
+ className: J,
6494
6494
  cols: j,
6495
6495
  colSpan: null,
6496
6496
  content: null,
6497
6497
  contentEditable: oe,
6498
6498
  controls: H,
6499
- controlsList: ee,
6500
- coords: j | $e,
6499
+ controlsList: J,
6500
+ coords: j | Ve,
6501
6501
  crossOrigin: null,
6502
6502
  data: null,
6503
6503
  dateTime: null,
@@ -6518,14 +6518,14 @@ const Co = Ze({
6518
6518
  formMethod: null,
6519
6519
  formNoValidate: H,
6520
6520
  formTarget: null,
6521
- headers: ee,
6521
+ headers: J,
6522
6522
  height: j,
6523
6523
  hidden: H,
6524
6524
  high: j,
6525
6525
  href: null,
6526
6526
  hrefLang: null,
6527
- htmlFor: ee,
6528
- httpEquiv: ee,
6527
+ htmlFor: J,
6528
+ httpEquiv: J,
6529
6529
  id: null,
6530
6530
  imageSizes: null,
6531
6531
  imageSrcSet: null,
@@ -6535,10 +6535,10 @@ const Co = Ze({
6535
6535
  is: null,
6536
6536
  isMap: H,
6537
6537
  itemId: null,
6538
- itemProp: ee,
6539
- itemRef: ee,
6538
+ itemProp: J,
6539
+ itemRef: J,
6540
6540
  itemScope: H,
6541
- itemType: ee,
6541
+ itemType: J,
6542
6542
  kind: null,
6543
6543
  label: null,
6544
6544
  lang: null,
@@ -6651,7 +6651,7 @@ const Co = Ze({
6651
6651
  open: H,
6652
6652
  optimum: j,
6653
6653
  pattern: null,
6654
- ping: ee,
6654
+ ping: J,
6655
6655
  placeholder: null,
6656
6656
  playsInline: H,
6657
6657
  popover: null,
@@ -6661,12 +6661,12 @@ const Co = Ze({
6661
6661
  preload: null,
6662
6662
  readOnly: H,
6663
6663
  referrerPolicy: null,
6664
- rel: ee,
6664
+ rel: J,
6665
6665
  required: H,
6666
6666
  reversed: H,
6667
6667
  rows: j,
6668
6668
  rowSpan: j,
6669
- sandbox: ee,
6669
+ sandbox: J,
6670
6670
  scope: null,
6671
6671
  scoped: H,
6672
6672
  seamless: H,
@@ -6702,7 +6702,7 @@ const Co = Ze({
6702
6702
  // Several. Use CSS `text-align` instead,
6703
6703
  aLink: null,
6704
6704
  // `<body>`. Use CSS `a:active {color}` instead
6705
- archive: ee,
6705
+ archive: J,
6706
6706
  // `<object>`. List of URIs to archives
6707
6707
  axis: null,
6708
6708
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -6816,7 +6816,7 @@ const Co = Ze({
6816
6816
  security: null,
6817
6817
  unselectable: null
6818
6818
  }
6819
- }), Wc = Ze({
6819
+ }), Wc = Ge({
6820
6820
  space: "svg",
6821
6821
  attributes: {
6822
6822
  accentHeight: "accent-height",
@@ -6995,7 +6995,7 @@ const Co = Ze({
6995
6995
  },
6996
6996
  transform: Eo,
6997
6997
  properties: {
6998
- about: ge,
6998
+ about: me,
6999
6999
  accentHeight: j,
7000
7000
  accumulate: null,
7001
7001
  additive: null,
@@ -7017,7 +7017,7 @@ const Co = Ze({
7017
7017
  by: null,
7018
7018
  calcMode: null,
7019
7019
  capHeight: j,
7020
- className: ee,
7020
+ className: J,
7021
7021
  clip: null,
7022
7022
  clipPath: null,
7023
7023
  clipPathUnits: null,
@@ -7077,9 +7077,9 @@ const Co = Ze({
7077
7077
  from: null,
7078
7078
  fx: null,
7079
7079
  fy: null,
7080
- g1: $e,
7081
- g2: $e,
7082
- glyphName: $e,
7080
+ g1: Ve,
7081
+ g2: Ve,
7082
+ glyphName: Ve,
7083
7083
  glyphOrientationHorizontal: null,
7084
7084
  glyphOrientationVertical: null,
7085
7085
  glyphRef: null,
@@ -7107,7 +7107,7 @@ const Co = Ze({
7107
7107
  k2: j,
7108
7108
  k3: j,
7109
7109
  k4: j,
7110
- kernelMatrix: ge,
7110
+ kernelMatrix: me,
7111
7111
  kernelUnitLength: null,
7112
7112
  keyPoints: null,
7113
7113
  // SEMI_COLON_SEPARATED
@@ -7252,7 +7252,7 @@ const Co = Ze({
7252
7252
  patternTransform: null,
7253
7253
  patternUnits: null,
7254
7254
  phase: null,
7255
- ping: ee,
7255
+ ping: J,
7256
7256
  pitch: null,
7257
7257
  playbackOrder: null,
7258
7258
  pointerEvents: null,
@@ -7264,21 +7264,21 @@ const Co = Ze({
7264
7264
  preserveAspectRatio: null,
7265
7265
  primitiveUnits: null,
7266
7266
  propagate: null,
7267
- property: ge,
7267
+ property: me,
7268
7268
  r: null,
7269
7269
  radius: null,
7270
7270
  referrerPolicy: null,
7271
7271
  refX: null,
7272
7272
  refY: null,
7273
- rel: ge,
7274
- rev: ge,
7273
+ rel: me,
7274
+ rev: me,
7275
7275
  renderingIntent: null,
7276
7276
  repeatCount: null,
7277
7277
  repeatDur: null,
7278
- requiredExtensions: ge,
7279
- requiredFeatures: ge,
7280
- requiredFonts: ge,
7281
- requiredFormats: ge,
7278
+ requiredExtensions: me,
7279
+ requiredFeatures: me,
7280
+ requiredFonts: me,
7281
+ requiredFormats: me,
7282
7282
  resource: null,
7283
7283
  restart: null,
7284
7284
  result: null,
@@ -7306,7 +7306,7 @@ const Co = Ze({
7306
7306
  strikethroughThickness: j,
7307
7307
  string: null,
7308
7308
  stroke: null,
7309
- strokeDashArray: ge,
7309
+ strokeDashArray: me,
7310
7310
  strokeDashOffset: null,
7311
7311
  strokeLineCap: null,
7312
7312
  strokeLineJoin: null,
@@ -7320,7 +7320,7 @@ const Co = Ze({
7320
7320
  syncMaster: null,
7321
7321
  syncTolerance: null,
7322
7322
  syncToleranceDefault: null,
7323
- systemLanguage: ge,
7323
+ systemLanguage: me,
7324
7324
  tabIndex: j,
7325
7325
  tableValues: null,
7326
7326
  target: null,
@@ -7334,7 +7334,7 @@ const Co = Ze({
7334
7334
  title: null,
7335
7335
  transformBehavior: null,
7336
7336
  type: null,
7337
- typeOf: ge,
7337
+ typeOf: me,
7338
7338
  to: null,
7339
7339
  transform: null,
7340
7340
  transformOrigin: null,
@@ -7378,7 +7378,7 @@ const Co = Ze({
7378
7378
  }), Zc = /^data[-\w.:]+$/i, si = /-[a-z]/g, Gc = /[A-Z]/g;
7379
7379
  function Kc(e, t) {
7380
7380
  const n = Pn(t);
7381
- let r = t, i = be;
7381
+ let r = t, i = we;
7382
7382
  if (n in e.normal)
7383
7383
  return e.property[e.normal[n]];
7384
7384
  if (n.length > 4 && n.slice(0, 4) === "data" && Zc.test(t)) {
@@ -7449,28 +7449,28 @@ var Oo = { exports: {} }, K = {};
7449
7449
  * This source code is licensed under the MIT license found in the
7450
7450
  * LICENSE file in the root directory of this source tree.
7451
7451
  */
7452
- var rr = Symbol.for("react.element"), ir = Symbol.for("react.portal"), Qt = Symbol.for("react.fragment"), Yt = Symbol.for("react.strict_mode"), Ht = Symbol.for("react.profiler"), qt = Symbol.for("react.provider"), $t = Symbol.for("react.context"), rp = Symbol.for("react.server_context"), Vt = Symbol.for("react.forward_ref"), Wt = Symbol.for("react.suspense"), Zt = Symbol.for("react.suspense_list"), Gt = Symbol.for("react.memo"), Kt = Symbol.for("react.lazy"), ip = Symbol.for("react.offscreen"), zo;
7452
+ var rr = Symbol.for("react.element"), ir = Symbol.for("react.portal"), Yt = Symbol.for("react.fragment"), Ht = Symbol.for("react.strict_mode"), qt = Symbol.for("react.profiler"), $t = Symbol.for("react.provider"), Vt = Symbol.for("react.context"), rp = Symbol.for("react.server_context"), Wt = Symbol.for("react.forward_ref"), Zt = Symbol.for("react.suspense"), Gt = Symbol.for("react.suspense_list"), Kt = Symbol.for("react.memo"), Xt = Symbol.for("react.lazy"), ip = Symbol.for("react.offscreen"), zo;
7453
7453
  zo = Symbol.for("react.module.reference");
7454
- function we(e) {
7454
+ function De(e) {
7455
7455
  if (typeof e == "object" && e !== null) {
7456
7456
  var t = e.$$typeof;
7457
7457
  switch (t) {
7458
7458
  case rr:
7459
7459
  switch (e = e.type, e) {
7460
- case Qt:
7461
- case Ht:
7462
7460
  case Yt:
7463
- case Wt:
7461
+ case qt:
7462
+ case Ht:
7464
7463
  case Zt:
7464
+ case Gt:
7465
7465
  return e;
7466
7466
  default:
7467
7467
  switch (e = e && e.$$typeof, e) {
7468
7468
  case rp:
7469
- case $t:
7470
7469
  case Vt:
7470
+ case Wt:
7471
+ case Xt:
7471
7472
  case Kt:
7472
- case Gt:
7473
- case qt:
7473
+ case $t:
7474
7474
  return e;
7475
7475
  default:
7476
7476
  return t;
@@ -7481,18 +7481,18 @@ function we(e) {
7481
7481
  }
7482
7482
  }
7483
7483
  }
7484
- K.ContextConsumer = $t;
7485
- K.ContextProvider = qt;
7484
+ K.ContextConsumer = Vt;
7485
+ K.ContextProvider = $t;
7486
7486
  K.Element = rr;
7487
- K.ForwardRef = Vt;
7488
- K.Fragment = Qt;
7489
- K.Lazy = Kt;
7490
- K.Memo = Gt;
7487
+ K.ForwardRef = Wt;
7488
+ K.Fragment = Yt;
7489
+ K.Lazy = Xt;
7490
+ K.Memo = Kt;
7491
7491
  K.Portal = ir;
7492
- K.Profiler = Ht;
7493
- K.StrictMode = Yt;
7494
- K.Suspense = Wt;
7495
- K.SuspenseList = Zt;
7492
+ K.Profiler = qt;
7493
+ K.StrictMode = Ht;
7494
+ K.Suspense = Zt;
7495
+ K.SuspenseList = Gt;
7496
7496
  K.isAsyncMode = function() {
7497
7497
  return !1;
7498
7498
  };
@@ -7500,45 +7500,45 @@ K.isConcurrentMode = function() {
7500
7500
  return !1;
7501
7501
  };
7502
7502
  K.isContextConsumer = function(e) {
7503
- return we(e) === $t;
7503
+ return De(e) === Vt;
7504
7504
  };
7505
7505
  K.isContextProvider = function(e) {
7506
- return we(e) === qt;
7506
+ return De(e) === $t;
7507
7507
  };
7508
7508
  K.isElement = function(e) {
7509
7509
  return typeof e == "object" && e !== null && e.$$typeof === rr;
7510
7510
  };
7511
7511
  K.isForwardRef = function(e) {
7512
- return we(e) === Vt;
7512
+ return De(e) === Wt;
7513
7513
  };
7514
7514
  K.isFragment = function(e) {
7515
- return we(e) === Qt;
7515
+ return De(e) === Yt;
7516
7516
  };
7517
7517
  K.isLazy = function(e) {
7518
- return we(e) === Kt;
7518
+ return De(e) === Xt;
7519
7519
  };
7520
7520
  K.isMemo = function(e) {
7521
- return we(e) === Gt;
7521
+ return De(e) === Kt;
7522
7522
  };
7523
7523
  K.isPortal = function(e) {
7524
- return we(e) === ir;
7524
+ return De(e) === ir;
7525
7525
  };
7526
7526
  K.isProfiler = function(e) {
7527
- return we(e) === Ht;
7527
+ return De(e) === qt;
7528
7528
  };
7529
7529
  K.isStrictMode = function(e) {
7530
- return we(e) === Yt;
7530
+ return De(e) === Ht;
7531
7531
  };
7532
7532
  K.isSuspense = function(e) {
7533
- return we(e) === Wt;
7533
+ return De(e) === Zt;
7534
7534
  };
7535
7535
  K.isSuspenseList = function(e) {
7536
- return we(e) === Zt;
7536
+ return De(e) === Gt;
7537
7537
  };
7538
7538
  K.isValidElementType = function(e) {
7539
- return typeof e == "string" || typeof e == "function" || e === Qt || e === Ht || e === Yt || e === Wt || e === Zt || e === ip || typeof e == "object" && e !== null && (e.$$typeof === Kt || e.$$typeof === Gt || e.$$typeof === qt || e.$$typeof === $t || e.$$typeof === Vt || e.$$typeof === zo || e.getModuleId !== void 0);
7539
+ return typeof e == "string" || typeof e == "function" || e === Yt || e === qt || e === Ht || e === Zt || e === Gt || e === ip || typeof e == "object" && e !== null && (e.$$typeof === Xt || e.$$typeof === Kt || e.$$typeof === $t || e.$$typeof === Vt || e.$$typeof === Wt || e.$$typeof === zo || e.getModuleId !== void 0);
7540
7540
  };
7541
- K.typeOf = we;
7541
+ K.typeOf = De;
7542
7542
  Oo.exports = K;
7543
7543
  var op = Oo.exports;
7544
7544
  const lp = /* @__PURE__ */ Qe(op);
@@ -7748,7 +7748,7 @@ function Sp(e) {
7748
7748
  e.end.column
7749
7749
  ].map(String).join("");
7750
7750
  }
7751
- const gi = {}.hasOwnProperty, Cp = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Dt = {
7751
+ const gi = {}.hasOwnProperty, Cp = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Nt = {
7752
7752
  plugins: { to: "remarkPlugins", id: "change-plugins-to-remarkplugins" },
7753
7753
  renderers: { to: "components", id: "change-renderers-to-components" },
7754
7754
  astPlugins: { id: "remove-buggy-html-in-markdown-parser" },
@@ -7773,12 +7773,12 @@ const gi = {}.hasOwnProperty, Cp = "https://github.com/remarkjs/react-markdown/b
7773
7773
  }
7774
7774
  };
7775
7775
  function Fo(e) {
7776
- for (const o in Dt)
7777
- if (gi.call(Dt, o) && gi.call(e, o)) {
7778
- const l = Dt[o];
7776
+ for (const o in Nt)
7777
+ if (gi.call(Nt, o) && gi.call(e, o)) {
7778
+ const l = Nt[o];
7779
7779
  console.warn(
7780
7780
  `[react-markdown] Warning: please ${l.to ? `use \`${l.to}\` instead of` : "remove"} \`${o}\` (see <${Cp}#${l.id}> for more info)`
7781
- ), delete Dt[o];
7781
+ ), delete Nt[o];
7782
7782
  }
7783
7783
  const t = Qa().use(Ks).use(e.remarkPlugins || []).use(Qc, {
7784
7784
  ...e.remarkRehypeOptions,
@@ -7866,7 +7866,7 @@ function Ro({ message: e, id: t, onFeedbackThumbSelection: n }) {
7866
7866
  onClick: () => n(t, "UP"),
7867
7867
  "aria-label": "I like this response",
7868
7868
  children: /* @__PURE__ */ D.jsx(
7869
- Le,
7869
+ Pe,
7870
7870
  {
7871
7871
  className: "xpert-chatbot-popup__feedback--btn-up-icon",
7872
7872
  icon: e.feedbackThumbType === "UP" ? "material-symbols:thumb-up" : "material-symbols:thumb-up-outline"
@@ -7883,7 +7883,7 @@ function Ro({ message: e, id: t, onFeedbackThumbSelection: n }) {
7883
7883
  onClick: () => n(t, "DOWN"),
7884
7884
  "aria-label": "I do not like this response",
7885
7885
  children: /* @__PURE__ */ D.jsx(
7886
- Le,
7886
+ Pe,
7887
7887
  {
7888
7888
  className: "xpert-chatbot-popup__feedback--btn-down-icon",
7889
7889
  icon: e.feedbackThumbType === "DOWN" ? "material-symbols:thumb-down" : "material-symbols:thumb-down-outline"
@@ -7956,8 +7956,8 @@ lr.propTypes = {
7956
7956
  };
7957
7957
  lr.displayName = "AssistantMessageBubble";
7958
7958
  const Lp = lr, ar = ({ configurations: e }) => {
7959
- const t = ze(null);
7960
- return fe(() => {
7959
+ const t = Le(null);
7960
+ return de(() => {
7961
7961
  var n;
7962
7962
  (n = t == null ? void 0 : t.current) == null || n.focus();
7963
7963
  }, []), /* @__PURE__ */ D.jsxs(
@@ -8064,7 +8064,7 @@ cr.propTypes = {
8064
8064
  })
8065
8065
  };
8066
8066
  cr.displayName = "UserMessageBubble";
8067
- const _p = cr, Xt = ({
8067
+ const _p = cr, Jt = ({
8068
8068
  messages: e,
8069
8069
  loading: t,
8070
8070
  isNormalSize: n,
@@ -8074,8 +8074,8 @@ const _p = cr, Xt = ({
8074
8074
  configurations: l
8075
8075
  }) => {
8076
8076
  var s;
8077
- const a = ze(null);
8078
- return fe(() => {
8077
+ const a = Le(null);
8078
+ return de(() => {
8079
8079
  var u;
8080
8080
  (u = a.current) == null || u.scrollIntoView({
8081
8081
  behavior: "instant",
@@ -8135,7 +8135,7 @@ const _p = cr, Xt = ({
8135
8135
  )
8136
8136
  ] });
8137
8137
  };
8138
- Xt.propTypes = {
8138
+ Jt.propTypes = {
8139
8139
  messages: g.arrayOf(
8140
8140
  g.shape({
8141
8141
  role: g.oneOf(["assistant", "user"]).isRequired,
@@ -8161,13 +8161,13 @@ Xt.propTypes = {
8161
8161
  )
8162
8162
  })
8163
8163
  };
8164
- Xt.defaultProps = {
8164
+ Jt.defaultProps = {
8165
8165
  messages: [],
8166
8166
  isNormalSize: !0,
8167
8167
  showDisclaimerText: !1
8168
8168
  };
8169
- Xt.displayName = "ConversationsMessages";
8170
- const Up = Xt;
8169
+ Jt.displayName = "ConversationsMessages";
8170
+ const Up = Jt;
8171
8171
  function _o({ onClose: e, configurations: t }) {
8172
8172
  return /* @__PURE__ */ D.jsxs(
8173
8173
  "div",
@@ -8209,7 +8209,7 @@ function _o({ onClose: e, configurations: t }) {
8209
8209
  },
8210
8210
  onClick: e,
8211
8211
  children: /* @__PURE__ */ D.jsx(
8212
- Le,
8212
+ Pe,
8213
8213
  {
8214
8214
  icon: "material-symbols:close",
8215
8215
  alt: "Close",
@@ -8270,13 +8270,13 @@ const Bo = /* @__PURE__ */ Qe(Bp);
8270
8270
  * tabbable 6.2.0
8271
8271
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
8272
8272
  */
8273
- var Qo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], At = /* @__PURE__ */ Qo.join(","), Yo = typeof Element > "u", Be = Yo ? function() {
8274
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ot = !Yo && Element.prototype.getRootNode ? function(e) {
8273
+ var Qo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Ot = /* @__PURE__ */ Qo.join(","), Yo = typeof Element > "u", Be = Yo ? function() {
8274
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, zt = !Yo && Element.prototype.getRootNode ? function(e) {
8275
8275
  var t;
8276
8276
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
8277
8277
  } : function(e) {
8278
8278
  return e == null ? void 0 : e.ownerDocument;
8279
- }, zt = function e(t, n) {
8279
+ }, Lt = function e(t, n) {
8280
8280
  var r;
8281
8281
  n === void 0 && (n = !0);
8282
8282
  var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), o = i === "" || i === "true", l = o || n && t && e(t.parentNode);
@@ -8285,14 +8285,14 @@ var Qo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
8285
8285
  var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
8286
8286
  return r === "" || r === "true";
8287
8287
  }, Ho = function(t, n, r) {
8288
- if (zt(t))
8288
+ if (Lt(t))
8289
8289
  return [];
8290
- var i = Array.prototype.slice.apply(t.querySelectorAll(At));
8291
- return n && Be.call(t, At) && i.unshift(t), i = i.filter(r), i;
8290
+ var i = Array.prototype.slice.apply(t.querySelectorAll(Ot));
8291
+ return n && Be.call(t, Ot) && i.unshift(t), i = i.filter(r), i;
8292
8292
  }, qo = function e(t, n, r) {
8293
8293
  for (var i = [], o = Array.from(t); o.length; ) {
8294
8294
  var l = o.shift();
8295
- if (!zt(l, !1))
8295
+ if (!Lt(l, !1))
8296
8296
  if (l.tagName === "SLOT") {
8297
8297
  var a = l.assignedElements(), s = a.length ? a : l.children, u = e(s, !0, r);
8298
8298
  r.flatten ? i.push.apply(i, u) : i.push({
@@ -8300,10 +8300,10 @@ var Qo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
8300
8300
  candidates: u
8301
8301
  });
8302
8302
  } else {
8303
- var c = Be.call(l, At);
8303
+ var c = Be.call(l, Ot);
8304
8304
  c && r.filter(l) && (n || !t.includes(l)) && i.push(l);
8305
8305
  var p = l.shadowRoot || // check for an undisclosed shadow
8306
- typeof r.getShadowRoot == "function" && r.getShadowRoot(l), m = !zt(p, !1) && (!r.shadowRootFilter || r.shadowRootFilter(l));
8306
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(l), m = !Lt(p, !1) && (!r.shadowRootFilter || r.shadowRootFilter(l));
8307
8307
  if (p && m) {
8308
8308
  var f = e(p === !0 ? l.children : p.children, !0, r);
8309
8309
  r.flatten ? i.push.apply(i, f) : i.push({
@@ -8317,12 +8317,12 @@ var Qo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
8317
8317
  return i;
8318
8318
  }, $o = function(t) {
8319
8319
  return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
8320
- }, Oe = function(t) {
8320
+ }, ze = function(t) {
8321
8321
  if (!t)
8322
8322
  throw new Error("No node provided");
8323
8323
  return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Qp(t)) && !$o(t) ? 0 : t.tabIndex;
8324
8324
  }, Yp = function(t, n) {
8325
- var r = Oe(t);
8325
+ var r = ze(t);
8326
8326
  return r < 0 && n && !$o(t) ? 0 : r;
8327
8327
  }, Hp = function(t, n) {
8328
8328
  return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
@@ -8342,7 +8342,7 @@ var Qo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
8342
8342
  }, Wp = function(t) {
8343
8343
  if (!t.name)
8344
8344
  return !0;
8345
- var n = t.form || Ot(t), r = function(a) {
8345
+ var n = t.form || zt(t), r = function(a) {
8346
8346
  return n.querySelectorAll('input[type="radio"][name="' + a + '"]');
8347
8347
  }, i;
8348
8348
  if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
@@ -8360,12 +8360,12 @@ var Qo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
8360
8360
  }, Gp = function(t) {
8361
8361
  return Zp(t) && !Wp(t);
8362
8362
  }, Kp = function(t) {
8363
- var n, r = t && Ot(t), i = (n = r) === null || n === void 0 ? void 0 : n.host, o = !1;
8363
+ var n, r = t && zt(t), i = (n = r) === null || n === void 0 ? void 0 : n.host, o = !1;
8364
8364
  if (r && r !== t) {
8365
8365
  var l, a, s;
8366
8366
  for (o = !!((l = i) !== null && l !== void 0 && (a = l.ownerDocument) !== null && a !== void 0 && a.contains(i) || t != null && (s = t.ownerDocument) !== null && s !== void 0 && s.contains(t)); !o && i; ) {
8367
8367
  var u, c, p;
8368
- r = Ot(i), i = (u = r) === null || u === void 0 ? void 0 : u.host, o = !!((c = i) !== null && c !== void 0 && (p = c.ownerDocument) !== null && p !== void 0 && p.contains(i));
8368
+ r = zt(i), i = (u = r) === null || u === void 0 ? void 0 : u.host, o = !!((c = i) !== null && c !== void 0 && (p = c.ownerDocument) !== null && p !== void 0 && p.contains(i));
8369
8369
  }
8370
8370
  }
8371
8371
  return o;
@@ -8382,7 +8382,7 @@ var Qo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
8382
8382
  if (!r || r === "full" || r === "legacy-full") {
8383
8383
  if (typeof i == "function") {
8384
8384
  for (var a = t; t; ) {
8385
- var s = t.parentElement, u = Ot(t);
8385
+ var s = t.parentElement, u = zt(t);
8386
8386
  if (s && !s.shadowRoot && i(s) === !0)
8387
8387
  return mi(t);
8388
8388
  t.assignedSlot ? t = t.assignedSlot : !s && u !== t.ownerDocument ? t = u.host : t = s;
@@ -8410,14 +8410,14 @@ var Qo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
8410
8410
  n = n.parentElement;
8411
8411
  }
8412
8412
  return !1;
8413
- }, Lt = function(t, n) {
8413
+ }, Pt = function(t, n) {
8414
8414
  return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
8415
8415
  // because we're limited in the type of selectors we can use in JSDom (see related
8416
8416
  // note related to `candidateSelectors`)
8417
- zt(n) || qp(n) || Xp(n, t) || // For a details element with a summary, the summary element gets the focus
8417
+ Lt(n) || qp(n) || Xp(n, t) || // For a details element with a summary, the summary element gets the focus
8418
8418
  $p(n) || Jp(n));
8419
8419
  }, _n = function(t, n) {
8420
- return !(Gp(n) || Oe(n) < 0 || !Lt(t, n));
8420
+ return !(Gp(n) || ze(n) < 0 || !Pt(t, n));
8421
8421
  }, ef = function(t) {
8422
8422
  var n = parseInt(t.getAttribute("tabindex"), 10);
8423
8423
  return !!(isNaN(n) || n >= 0);
@@ -8448,24 +8448,24 @@ var Qo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
8448
8448
  n = n || {};
8449
8449
  var r;
8450
8450
  return n.getShadowRoot ? r = qo([t], n.includeContainer, {
8451
- filter: Lt.bind(null, n),
8451
+ filter: Pt.bind(null, n),
8452
8452
  flatten: !0,
8453
8453
  getShadowRoot: n.getShadowRoot
8454
- }) : r = Ho(t, n.includeContainer, Lt.bind(null, n)), r;
8454
+ }) : r = Ho(t, n.includeContainer, Pt.bind(null, n)), r;
8455
8455
  }, Re = function(t, n) {
8456
8456
  if (n = n || {}, !t)
8457
8457
  throw new Error("No node provided");
8458
- return Be.call(t, At) === !1 ? !1 : _n(n, t);
8459
- }, nf = /* @__PURE__ */ Qo.concat("iframe").join(","), Et = function(t, n) {
8458
+ return Be.call(t, Ot) === !1 ? !1 : _n(n, t);
8459
+ }, nf = /* @__PURE__ */ Qo.concat("iframe").join(","), St = function(t, n) {
8460
8460
  if (n = n || {}, !t)
8461
8461
  throw new Error("No node provided");
8462
- return Be.call(t, nf) === !1 ? !1 : Lt(n, t);
8462
+ return Be.call(t, nf) === !1 ? !1 : Pt(n, t);
8463
8463
  };
8464
8464
  const rf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8465
8465
  __proto__: null,
8466
8466
  focusable: Zo,
8467
- getTabIndex: Oe,
8468
- isFocusable: Et,
8467
+ getTabIndex: ze,
8468
+ isFocusable: St,
8469
8469
  isTabbable: Re,
8470
8470
  tabbable: Wo
8471
8471
  }, Symbol.toStringTag, { value: "Module" }));
@@ -8535,12 +8535,12 @@ var xi = {
8535
8535
  return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
8536
8536
  }, sf = function(t) {
8537
8537
  return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
8538
- }, ot = function(t) {
8538
+ }, lt = function(t) {
8539
8539
  return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
8540
8540
  }, cf = function(t) {
8541
- return ot(t) && !t.shiftKey;
8541
+ return lt(t) && !t.shiftKey;
8542
8542
  }, pf = function(t) {
8543
- return ot(t) && t.shiftKey;
8543
+ return lt(t) && t.shiftKey;
8544
8544
  }, bi = function(t) {
8545
8545
  return setTimeout(t, 0);
8546
8546
  }, wi = function(t, n) {
@@ -8548,11 +8548,11 @@ var xi = {
8548
8548
  return t.every(function(i, o) {
8549
8549
  return n(i) ? (r = o, !1) : !0;
8550
8550
  }), r;
8551
- }, Xe = function(t) {
8551
+ }, Je = function(t) {
8552
8552
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
8553
8553
  r[i - 1] = arguments[i];
8554
8554
  return typeof t == "function" ? t.apply(void 0, r) : t;
8555
- }, Nt = function(t) {
8555
+ }, Tt = function(t) {
8556
8556
  return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
8557
8557
  }, ff = [], df = function(t, n) {
8558
8558
  var r = (n == null ? void 0 : n.document) || document, i = (n == null ? void 0 : n.trapStack) || ff, o = Mi({
@@ -8631,7 +8631,7 @@ var xi = {
8631
8631
  var M = c("initialFocus");
8632
8632
  if (M === !1)
8633
8633
  return !1;
8634
- if (M === void 0 || !Et(M, o.tabbableOptions))
8634
+ if (M === void 0 || !St(M, o.tabbableOptions))
8635
8635
  if (u(r.activeElement) >= 0)
8636
8636
  M = r.activeElement;
8637
8637
  else {
@@ -8648,7 +8648,7 @@ var xi = {
8648
8648
  }), V = A.slice().reverse().find(function(d) {
8649
8649
  return Re(d);
8650
8650
  }), X = !!N.find(function(d) {
8651
- return Oe(d) > 0;
8651
+ return ze(d) > 0;
8652
8652
  });
8653
8653
  return {
8654
8654
  container: M,
@@ -8715,7 +8715,7 @@ var xi = {
8715
8715
  return N || (N === !1 ? !1 : M);
8716
8716
  }, S = function(M) {
8717
8717
  var N = M.target, A = M.event, z = M.isBackward, R = z === void 0 ? !1 : z;
8718
- N = N || Nt(A), m();
8718
+ N = N || Tt(A), m();
8719
8719
  var Q = null;
8720
8720
  if (l.tabbableGroups.length > 0) {
8721
8721
  var V = u(N, A), X = V >= 0 ? l.containerGroups[V] : void 0;
@@ -8726,29 +8726,29 @@ var xi = {
8726
8726
  var ce = G.firstTabbableNode;
8727
8727
  return N === ce;
8728
8728
  });
8729
- if (d < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Re(N, o.tabbableOptions) && !X.nextTabbableNode(N, !1)) && (d = V), d >= 0) {
8729
+ if (d < 0 && (X.container === N || St(N, o.tabbableOptions) && !Re(N, o.tabbableOptions) && !X.nextTabbableNode(N, !1)) && (d = V), d >= 0) {
8730
8730
  var re = d === 0 ? l.tabbableGroups.length - 1 : d - 1, le = l.tabbableGroups[re];
8731
- Q = Oe(N) >= 0 ? le.lastTabbableNode : le.lastDomTabbableNode;
8731
+ Q = ze(N) >= 0 ? le.lastTabbableNode : le.lastDomTabbableNode;
8732
8732
  } else
8733
- ot(A) || (Q = X.nextTabbableNode(N, !1));
8733
+ lt(A) || (Q = X.nextTabbableNode(N, !1));
8734
8734
  } else {
8735
8735
  var h = wi(l.tabbableGroups, function(G) {
8736
8736
  var ce = G.lastTabbableNode;
8737
8737
  return N === ce;
8738
8738
  });
8739
- if (h < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Re(N, o.tabbableOptions) && !X.nextTabbableNode(N)) && (h = V), h >= 0) {
8740
- var ie = h === l.tabbableGroups.length - 1 ? 0 : h + 1, ye = l.tabbableGroups[ie];
8741
- Q = Oe(N) >= 0 ? ye.firstTabbableNode : ye.firstDomTabbableNode;
8739
+ if (h < 0 && (X.container === N || St(N, o.tabbableOptions) && !Re(N, o.tabbableOptions) && !X.nextTabbableNode(N)) && (h = V), h >= 0) {
8740
+ var ie = h === l.tabbableGroups.length - 1 ? 0 : h + 1, Me = l.tabbableGroups[ie];
8741
+ Q = ze(N) >= 0 ? Me.firstTabbableNode : Me.firstDomTabbableNode;
8742
8742
  } else
8743
- ot(A) || (Q = X.nextTabbableNode(N));
8743
+ lt(A) || (Q = X.nextTabbableNode(N));
8744
8744
  }
8745
8745
  } else
8746
8746
  Q = c("fallbackFocus");
8747
8747
  return Q;
8748
8748
  }, b = function(M) {
8749
- var N = Nt(M);
8749
+ var N = Tt(M);
8750
8750
  if (!(u(N, M) >= 0)) {
8751
- if (Xe(o.clickOutsideDeactivates, M)) {
8751
+ if (Je(o.clickOutsideDeactivates, M)) {
8752
8752
  a.deactivate({
8753
8753
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
8754
8754
  // which will result in the outside click setting focus to the node
@@ -8760,17 +8760,17 @@ var xi = {
8760
8760
  });
8761
8761
  return;
8762
8762
  }
8763
- Xe(o.allowOutsideClick, M) || M.preventDefault();
8763
+ Je(o.allowOutsideClick, M) || M.preventDefault();
8764
8764
  }
8765
8765
  }, C = function(M) {
8766
- var N = Nt(M), A = u(N, M) >= 0;
8766
+ var N = Tt(M), A = u(N, M) >= 0;
8767
8767
  if (A || N instanceof Document)
8768
8768
  A && (l.mostRecentlyFocusedNode = N);
8769
8769
  else {
8770
8770
  M.stopImmediatePropagation();
8771
8771
  var z, R = !0;
8772
8772
  if (l.mostRecentlyFocusedNode)
8773
- if (Oe(l.mostRecentlyFocusedNode) > 0) {
8773
+ if (ze(l.mostRecentlyFocusedNode) > 0) {
8774
8774
  var Q = u(l.mostRecentlyFocusedNode), V = l.containerGroups[Q].tabbableNodes;
8775
8775
  if (V.length > 0) {
8776
8776
  var X = V.findIndex(function(d) {
@@ -8781,7 +8781,7 @@ var xi = {
8781
8781
  } else
8782
8782
  l.containerGroups.some(function(d) {
8783
8783
  return d.tabbableNodes.some(function(re) {
8784
- return Oe(re) > 0;
8784
+ return ze(re) > 0;
8785
8785
  });
8786
8786
  }) || (R = !1);
8787
8787
  else
@@ -8801,16 +8801,16 @@ var xi = {
8801
8801
  event: M,
8802
8802
  isBackward: N
8803
8803
  });
8804
- A && (ot(M) && M.preventDefault(), T(A));
8804
+ A && (lt(M) && M.preventDefault(), T(A));
8805
8805
  }, B = function(M) {
8806
- if (sf(M) && Xe(o.escapeDeactivates, M) !== !1) {
8806
+ if (sf(M) && Je(o.escapeDeactivates, M) !== !1) {
8807
8807
  M.preventDefault(), a.deactivate();
8808
8808
  return;
8809
8809
  }
8810
8810
  (o.isKeyForward(M) || o.isKeyBackward(M)) && v(M, o.isKeyBackward(M));
8811
8811
  }, U = function(M) {
8812
- var N = Nt(M);
8813
- u(N, M) >= 0 || Xe(o.clickOutsideDeactivates, M) || Xe(o.allowOutsideClick, M) || (M.preventDefault(), M.stopImmediatePropagation());
8812
+ var N = Tt(M);
8813
+ u(N, M) >= 0 || Je(o.clickOutsideDeactivates, M) || Je(o.allowOutsideClick, M) || (M.preventDefault(), M.stopImmediatePropagation());
8814
8814
  }, y = function() {
8815
8815
  if (l.active)
8816
8816
  return xi.activateTrap(i, a), l.delayInitialFocusTimer = o.delayInitialFocus ? bi(function() {
@@ -8906,13 +8906,13 @@ const hf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8906
8906
  __proto__: null,
8907
8907
  createFocusTrap: df
8908
8908
  }, Symbol.toStringTag, { value: "Module" })), gf = /* @__PURE__ */ Ti(hf), mf = /* @__PURE__ */ Ti(rf);
8909
- function Ve(e) {
8909
+ function We(e) {
8910
8910
  "@babel/helpers - typeof";
8911
- return Ve = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
8911
+ return We = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
8912
8912
  return typeof t;
8913
8913
  } : function(t) {
8914
8914
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
8915
- }, Ve(e);
8915
+ }, We(e);
8916
8916
  }
8917
8917
  function yf(e, t) {
8918
8918
  if (!(e instanceof t))
@@ -8940,9 +8940,9 @@ function Un(e, t) {
8940
8940
  function bf(e) {
8941
8941
  var t = Df();
8942
8942
  return function() {
8943
- var r = Pt(e), i;
8943
+ var r = Ft(e), i;
8944
8944
  if (t) {
8945
- var o = Pt(this).constructor;
8945
+ var o = Ft(this).constructor;
8946
8946
  i = Reflect.construct(r, arguments, o);
8947
8947
  } else
8948
8948
  i = r.apply(this, arguments);
@@ -8950,13 +8950,13 @@ function bf(e) {
8950
8950
  };
8951
8951
  }
8952
8952
  function wf(e, t) {
8953
- if (t && (Ve(t) === "object" || typeof t == "function"))
8953
+ if (t && (We(t) === "object" || typeof t == "function"))
8954
8954
  return t;
8955
8955
  if (t !== void 0)
8956
8956
  throw new TypeError("Derived constructors may only return object or undefined");
8957
- return et(e);
8957
+ return tt(e);
8958
8958
  }
8959
- function et(e) {
8959
+ function tt(e) {
8960
8960
  if (e === void 0)
8961
8961
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8962
8962
  return e;
@@ -8973,36 +8973,36 @@ function Df() {
8973
8973
  return !1;
8974
8974
  }
8975
8975
  }
8976
- function Pt(e) {
8977
- return Pt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
8976
+ function Ft(e) {
8977
+ return Ft = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
8978
8978
  return n.__proto__ || Object.getPrototypeOf(n);
8979
- }, Pt(e);
8979
+ }, Ft(e);
8980
8980
  }
8981
8981
  function Nf(e, t, n) {
8982
8982
  return t = Go(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
8983
8983
  }
8984
8984
  function Go(e) {
8985
8985
  var t = Tf(e, "string");
8986
- return Ve(t) === "symbol" ? t : String(t);
8986
+ return We(t) === "symbol" ? t : String(t);
8987
8987
  }
8988
8988
  function Tf(e, t) {
8989
- if (Ve(e) !== "object" || e === null)
8989
+ if (We(e) !== "object" || e === null)
8990
8990
  return e;
8991
8991
  var n = e[Symbol.toPrimitive];
8992
8992
  if (n !== void 0) {
8993
8993
  var r = n.call(e, t || "default");
8994
- if (Ve(r) !== "object")
8994
+ if (We(r) !== "object")
8995
8995
  return r;
8996
8996
  throw new TypeError("@@toPrimitive must return a primitive value.");
8997
8997
  }
8998
8998
  return (t === "string" ? String : Number)(e);
8999
8999
  }
9000
- var Tt = pe, P = Ci, If = gf, vf = If.createFocusTrap, kf = mf, jf = kf.isFocusable, pr = /* @__PURE__ */ function(e) {
9000
+ var It = pe, P = Ci, If = gf, vf = If.createFocusTrap, kf = mf, jf = kf.isFocusable, pr = /* @__PURE__ */ function(e) {
9001
9001
  xf(n, e);
9002
9002
  var t = bf(n);
9003
9003
  function n(r) {
9004
9004
  var i;
9005
- yf(this, n), i = t.call(this, r), Nf(et(i), "getNodeForOption", function(a) {
9005
+ yf(this, n), i = t.call(this, r), Nf(tt(i), "getNodeForOption", function(a) {
9006
9006
  var s, u = (s = this.internalOptions[a]) !== null && s !== void 0 ? s : this.originalOptions[a];
9007
9007
  if (typeof u == "function") {
9008
9008
  for (var c = arguments.length, p = new Array(c > 1 ? c - 1 : 0), m = 1; m < c; m++)
@@ -9021,7 +9021,7 @@ var Tt = pe, P = Ci, If = gf, vf = If.createFocusTrap, kf = mf, jf = kf.isFocusa
9021
9021
  throw new Error("`".concat(a, "` as selector refers to no known node"));
9022
9022
  }
9023
9023
  return f;
9024
- }), i.handleDeactivate = i.handleDeactivate.bind(et(i)), i.handlePostDeactivate = i.handlePostDeactivate.bind(et(i)), i.handleClickOutsideDeactivates = i.handleClickOutsideDeactivates.bind(et(i)), i.internalOptions = {
9024
+ }), i.handleDeactivate = i.handleDeactivate.bind(tt(i)), i.handlePostDeactivate = i.handlePostDeactivate.bind(tt(i)), i.handleClickOutsideDeactivates = i.handleClickOutsideDeactivates.bind(tt(i)), i.internalOptions = {
9025
9025
  // We need to hijack the returnFocusOnDeactivate option,
9026
9026
  // because React can move focus into the element before we arrived at
9027
9027
  // this lifecycle hook (e.g. with autoFocus inputs). So the component
@@ -9169,14 +9169,14 @@ var Tt = pe, P = Ci, If = gf, vf = If.createFocusTrap, kf = mf, jf = kf.isFocusa
9169
9169
  }, {
9170
9170
  key: "render",
9171
9171
  value: function() {
9172
- var i = this, o = this.props.children ? Tt.Children.only(this.props.children) : void 0;
9172
+ var i = this, o = this.props.children ? It.Children.only(this.props.children) : void 0;
9173
9173
  if (o) {
9174
- if (o.type && o.type === Tt.Fragment)
9174
+ if (o.type && o.type === It.Fragment)
9175
9175
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
9176
9176
  var l = function(u) {
9177
9177
  var c = i.props.containerElements;
9178
9178
  o && (typeof o.ref == "function" ? o.ref(u) : o.ref && (o.ref.current = u)), i.focusTrapElements = c || [u];
9179
- }, a = Tt.cloneElement(o, {
9179
+ }, a = It.cloneElement(o, {
9180
9180
  ref: l
9181
9181
  });
9182
9182
  return a;
@@ -9184,7 +9184,7 @@ var Tt = pe, P = Ci, If = gf, vf = If.createFocusTrap, kf = mf, jf = kf.isFocusa
9184
9184
  return null;
9185
9185
  }
9186
9186
  }]), n;
9187
- }(Tt.Component), Je = typeof Element > "u" ? Function : Element;
9187
+ }(It.Component), et = typeof Element > "u" ? Function : Element;
9188
9188
  pr.propTypes = {
9189
9189
  active: P.bool,
9190
9190
  paused: P.bool,
@@ -9200,9 +9200,9 @@ pr.propTypes = {
9200
9200
  onDeactivate: P.func,
9201
9201
  onPostDeactivate: P.func,
9202
9202
  checkCanReturnFocus: P.func,
9203
- initialFocus: P.oneOfType([P.instanceOf(Je), P.string, P.bool, P.func]),
9203
+ initialFocus: P.oneOfType([P.instanceOf(et), P.string, P.bool, P.func]),
9204
9204
  fallbackFocus: P.oneOfType([
9205
- P.instanceOf(Je),
9205
+ P.instanceOf(et),
9206
9206
  P.string,
9207
9207
  // NOTE: does not support `false` as value (or return value from function)
9208
9208
  P.func
@@ -9210,7 +9210,7 @@ pr.propTypes = {
9210
9210
  escapeDeactivates: P.oneOfType([P.bool, P.func]),
9211
9211
  clickOutsideDeactivates: P.oneOfType([P.bool, P.func]),
9212
9212
  returnFocusOnDeactivate: P.bool,
9213
- setReturnFocus: P.oneOfType([P.instanceOf(Je), P.string, P.bool, P.func]),
9213
+ setReturnFocus: P.oneOfType([P.instanceOf(et), P.string, P.bool, P.func]),
9214
9214
  allowOutsideClick: P.oneOfType([P.bool, P.func]),
9215
9215
  preventScroll: P.bool,
9216
9216
  tabbableOptions: P.shape({
@@ -9221,12 +9221,12 @@ pr.propTypes = {
9221
9221
  isKeyForward: P.func,
9222
9222
  isKeyBackward: P.func
9223
9223
  }),
9224
- containerElements: P.arrayOf(P.instanceOf(Je)),
9224
+ containerElements: P.arrayOf(P.instanceOf(et)),
9225
9225
  // DOM element ONLY
9226
9226
  children: P.oneOfType([
9227
9227
  P.element,
9228
9228
  // React element
9229
- P.instanceOf(Je)
9229
+ P.instanceOf(et)
9230
9230
  // DOM element
9231
9231
  ])
9232
9232
  // NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
@@ -9246,7 +9246,7 @@ const Sf = /* @__PURE__ */ Qe(Ef), Cf = (e) => {
9246
9246
  }, n = () => {
9247
9247
  document.body.style.overflow = "unset";
9248
9248
  };
9249
- fe(() => {
9249
+ de(() => {
9250
9250
  const r = e == null ? void 0 : e.current;
9251
9251
  return r == null || r.addEventListener("mouseover", t), r == null || r.addEventListener("mouseout", n), () => {
9252
9252
  n(), r == null || r.removeEventListener("mouseover", t), r == null || r.removeEventListener("mouseout", n);
@@ -9254,14 +9254,14 @@ const Sf = /* @__PURE__ */ Qe(Ef), Cf = (e) => {
9254
9254
  }, [e]);
9255
9255
  }, Af = Cf;
9256
9256
  const Of = 991;
9257
- function Jt({
9257
+ function en({
9258
9258
  style: e,
9259
9259
  className: t,
9260
9260
  children: n,
9261
9261
  isNormalSize: r,
9262
9262
  isMounted: i
9263
9263
  }) {
9264
- const o = ct(Of), l = ze(null);
9264
+ const o = pt(Of), l = Le(null);
9265
9265
  return Af(l), /* @__PURE__ */ D.jsx(
9266
9266
  Sf,
9267
9267
  {
@@ -9294,14 +9294,14 @@ function Jt({
9294
9294
  }
9295
9295
  );
9296
9296
  }
9297
- Jt.propTypes = {
9297
+ en.propTypes = {
9298
9298
  children: g.node.isRequired,
9299
9299
  style: g.shape(),
9300
9300
  isMounted: g.bool,
9301
9301
  className: g.string,
9302
9302
  isNormalSize: g.bool
9303
9303
  };
9304
- Jt.defaultProps = {
9304
+ en.defaultProps = {
9305
9305
  style: {},
9306
9306
  className: "",
9307
9307
  isNormalSize: !0,
@@ -9324,7 +9324,7 @@ function Ko({
9324
9324
  handleKeyDown: s,
9325
9325
  configurations: u
9326
9326
  }) {
9327
- return /* @__PURE__ */ D.jsxs(Jt, { children: [
9327
+ return /* @__PURE__ */ D.jsxs(en, { children: [
9328
9328
  /* @__PURE__ */ D.jsx(_o, { onClose: e, configurations: u }),
9329
9329
  /* @__PURE__ */ D.jsxs(
9330
9330
  "div",
@@ -9341,7 +9341,7 @@ function Ko({
9341
9341
  className: "xpert-chatbot-popup__disclaimer--instruction",
9342
9342
  children: [
9343
9343
  /* @__PURE__ */ D.jsx("div", { className: "xpert-chatbot-popup__disclaimer__compass-icon", children: /* @__PURE__ */ D.jsx(
9344
- Le,
9344
+ Pe,
9345
9345
  {
9346
9346
  icon: zf[c.icon],
9347
9347
  style: { fontSize: "1.75rem" }
@@ -9376,7 +9376,7 @@ function Ko({
9376
9376
  ] })
9377
9377
  ] }),
9378
9378
  /* @__PURE__ */ D.jsx(
9379
- _t,
9379
+ Ut,
9380
9380
  {
9381
9381
  loading: t,
9382
9382
  inputRef: n,
@@ -9420,8 +9420,8 @@ Ko.propTypes = {
9420
9420
  }).isRequired
9421
9421
  };
9422
9422
  const Xo = () => {
9423
- const e = ze(null);
9424
- return fe(() => {
9423
+ const e = Le(null);
9424
+ return de(() => {
9425
9425
  var t;
9426
9426
  (t = e.current) == null || t.scrollIntoView({
9427
9427
  behavior: "instant"
@@ -9444,7 +9444,7 @@ const Xo = () => {
9444
9444
  ref: e,
9445
9445
  children: [
9446
9446
  /* @__PURE__ */ D.jsx(
9447
- Le,
9447
+ Pe,
9448
9448
  {
9449
9449
  icon: "material-symbols:thunderstorm",
9450
9450
  style: {
@@ -9495,7 +9495,7 @@ function fr({
9495
9495
  children: i,
9496
9496
  ...o
9497
9497
  }) {
9498
- const l = ct(Lf);
9498
+ const l = pt(Lf);
9499
9499
  return /* @__PURE__ */ D.jsx(
9500
9500
  "button",
9501
9501
  {
@@ -9533,23 +9533,23 @@ function dr({
9533
9533
  setLiveChatOpen: n,
9534
9534
  isTestUser: r
9535
9535
  }) {
9536
- const [i, o] = se(!0), l = lt(
9536
+ const [i, o] = se(!0), l = at(
9537
9537
  (u) => {
9538
9538
  var c, p, m, f;
9539
- ((c = u == null ? void 0 : u.data) == null ? void 0 : c.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (p = window == null ? void 0 : window.OnetrustActiveGroups) != null && p.includes("C0003")) && Ne.set(`${e.cookieNamePrefix}-live-chat-open`, 1, {
9539
+ ((c = u == null ? void 0 : u.data) == null ? void 0 : c.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (p = window == null ? void 0 : window.OnetrustActiveGroups) != null && p.includes("C0003")) && Te.set(`${e.cookieNamePrefix}-live-chat-open`, 1, {
9540
9540
  expires: 1,
9541
9541
  path: "/"
9542
- }), ((m = u == null ? void 0 : u.data) == null ? void 0 : m.type) === "connection" && ((f = u == null ? void 0 : u.data) == null ? void 0 : f.state) === "disconnected" && Ne.remove(`${e.cookieNamePrefix}-live-chat-open`);
9542
+ }), ((m = u == null ? void 0 : u.data) == null ? void 0 : m.type) === "connection" && ((f = u == null ? void 0 : u.data) == null ? void 0 : f.state) === "disconnected" && Te.remove(`${e.cookieNamePrefix}-live-chat-open`);
9543
9543
  },
9544
9544
  [e.cookieNamePrefix]
9545
- ), a = lt(
9545
+ ), a = at(
9546
9546
  (u) => {
9547
9547
  var c, p, m;
9548
9548
  ((c = u == null ? void 0 : u.data) == null ? void 0 : c.type) === "unhide" && ((p = u == null ? void 0 : u.data) == null ? void 0 : p.reason) === "pop-out" && n(!0), ((m = u == null ? void 0 : u.data) == null ? void 0 : m.type) === "open" && n(!0);
9549
9549
  },
9550
9550
  [n]
9551
9551
  );
9552
- fe(() => {
9552
+ de(() => {
9553
9553
  const u = document.createElement("script");
9554
9554
  u.type = "text/javascript", u.src = e.liveChatUrl, u.async = !0, u.onload = () => {
9555
9555
  window.Five9ChatPlugin(e.liveChatOptions);
@@ -9633,8 +9633,8 @@ dr.defaultProps = {
9633
9633
  isTestUser: !1
9634
9634
  };
9635
9635
  function Jo({ disableScroll: e }) {
9636
- const t = ze(null);
9637
- return fe(() => {
9636
+ const t = Le(null);
9637
+ return de(() => {
9638
9638
  var n;
9639
9639
  e || (n = t.current) == null || n.scrollIntoView({
9640
9640
  behavior: "smooth",
@@ -9659,17 +9659,17 @@ Jo.propTypes = {
9659
9659
  };
9660
9660
  function hr(e) {
9661
9661
  var s;
9662
- const [t, n] = se(!0), [r, i] = se(!1), o = t && (!(window != null && window.OnetrustActiveGroups) || ((s = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : s.includes("C0003"))) && Ne.get(e.cookieName) === void 0;
9663
- fe(() => {
9662
+ const [t, n] = se(!0), [r, i] = se(!1), o = t && (!(window != null && window.OnetrustActiveGroups) || ((s = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : s.includes("C0003"))) && Te.get(e.cookieName) === void 0;
9663
+ de(() => {
9664
9664
  var u;
9665
9665
  (u = window == null ? void 0 : window.OneTrust) == null || u.OnConsentChanged(() => {
9666
9666
  var c;
9667
- !((c = window == null ? void 0 : window.OnetrustActiveGroups) != null && c.includes("C0003")) && Ne.get(e.cookieName) !== void 0 && Ne.remove(e.cookieName);
9667
+ !((c = window == null ? void 0 : window.OnetrustActiveGroups) != null && c.includes("C0003")) && Te.get(e.cookieName) !== void 0 && Te.remove(e.cookieName);
9668
9668
  });
9669
- }, [e.cookieName]), fe(() => {
9669
+ }, [e.cookieName]), de(() => {
9670
9670
  var u;
9671
9671
  e.showMessage || (!(window != null && window.OnetrustActiveGroups) || (u = window == null ? void 0 : window.OnetrustActiveGroups) != null && u.includes("C0003")) && a(e.cookieName, 1, 1);
9672
- }, [e.showMessage, e.cookieName]), fe(() => {
9672
+ }, [e.showMessage, e.cookieName]), de(() => {
9673
9673
  if (e.proactiveMessageDelay > 0) {
9674
9674
  const u = setTimeout(() => {
9675
9675
  i(!0);
@@ -9686,7 +9686,7 @@ function hr(e) {
9686
9686
  expires: p,
9687
9687
  path: "/"
9688
9688
  };
9689
- Ne.set(u, c, m);
9689
+ Te.set(u, c, m);
9690
9690
  };
9691
9691
  return r ? /* @__PURE__ */ D.jsx("div", { children: o && /* @__PURE__ */ D.jsxs(
9692
9692
  "div",
@@ -9708,7 +9708,7 @@ function hr(e) {
9708
9708
  "aria-label": "Close",
9709
9709
  type: "button",
9710
9710
  children: /* @__PURE__ */ D.jsx(
9711
- Le,
9711
+ Pe,
9712
9712
  {
9713
9713
  style: {
9714
9714
  color: "#707070",
@@ -9756,7 +9756,7 @@ hr.defaultProps = {
9756
9756
  };
9757
9757
  function Ff(e) {
9758
9758
  const [t, n] = se(null);
9759
- return fe(() => {
9759
+ return de(() => {
9760
9760
  console.log("Chatbot - optimizely mount");
9761
9761
  try {
9762
9762
  (() => {
@@ -9796,12 +9796,15 @@ function _f(e) {
9796
9796
  const t = /\[(.+)\]\(([^ ]+)( "(.+)")?\)/gm, n = e.match(t);
9797
9797
  return (n == null ? void 0 : n.length) || 0;
9798
9798
  }
9799
+ function Uf(e) {
9800
+ return new TextEncoder().encode(e).length;
9801
+ }
9799
9802
  const Ni = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0yODEtMjQwcS0xNCAwLTI3LjUtMTRUMjQwLTI4MnYtOThoNTAwdi0zNDBoMTAwcTE0IDAgMjcgMTR0MTMgMjl2NTk2TDcyMS0yNDBIMjgxWk04MC0yODB2LTU1OHEwLTE0IDEzLTI4dDI3LTE0aDUxOXExNSAwIDI4IDEzLjV0MTMgMjguNXYzNTZxMCAxNC0xMyAyOHQtMjggMTRIMjQwTDgwLTI4MFptNTQwLTIyMHYtMzIwSDE0MHYzMjBoNDgwWm0tNDgwIDB2LTMyMCAzMjBaIiBmaWxsPSIjRkZGRkZGIi8+PC9zdmc+";
9800
- const Uf = {
9803
+ const Bf = {
9801
9804
  edx: Ki,
9802
9805
  "speech-emerson": Ni,
9803
9806
  "get-smarter": Ni
9804
- }, Bf = 991, Qf = [];
9807
+ }, Qf = 991, Yf = [];
9805
9808
  console.log("Chatbot - load");
9806
9809
  function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9807
9810
  var E;
@@ -9832,7 +9835,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9832
9835
  proactiveMessage: T,
9833
9836
  disableDisclaimerPage: x,
9834
9837
  conversationHistory: S
9835
- } = i, b = ct(Bf), [, C] = se(!1), [v, B] = se(Qf), [U, y] = se(!1), [O, F] = se(!1), [q, $] = se(!1), [k, M] = se(""), [N, A] = se(!1), [z, R] = se(!1), [Q, V] = se(!0), [X, d] = se(!1), [re, le] = se(!1), [h, ie] = se(!1), ye = ze(null), G = ze(null), ce = ze(null), ne = Ne.get(`${m}-test`) === "1", ae = lt(
9838
+ } = i, b = pt(Qf), [, C] = se(!1), [v, B] = se(Yf), [U, y] = se(!1), [O, F] = se(!1), [q, $] = se(!1), [k, M] = se(""), [N, A] = se(!1), [z, R] = se(!1), [Q, V] = se(!0), [X, d] = se(!1), [re, le] = se(!1), [h, ie] = se(!1), Me = Le(null), G = Le(null), ce = Le(null), te = Te.get(`${m}-test`) === "1", ae = at(
9836
9839
  ({ name: I, payload: L }) => {
9837
9840
  t ? t({ name: I, payload: L }) : ce.current.track(
9838
9841
  // TODO: this is untestable - create a custom hook to get submit event function.
@@ -9841,10 +9844,10 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9841
9844
  );
9842
9845
  },
9843
9846
  [t]
9844
- ), De = lt(async () => {
9847
+ ), Ne = at(async () => {
9845
9848
  if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
9846
9849
  try {
9847
- const I = Ne.get(
9850
+ const I = Te.get(
9848
9851
  `${m}-conversation-history-id`
9849
9852
  );
9850
9853
  if (!I)
@@ -9860,7 +9863,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9860
9863
  }
9861
9864
  );
9862
9865
  if (L.status === 404) {
9863
- Ne.remove(`${m}-conversation-history-id`);
9866
+ Te.remove(`${m}-conversation-history-id`);
9864
9867
  return;
9865
9868
  }
9866
9869
  if (!L.ok)
@@ -9878,12 +9881,12 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9878
9881
  y(!1);
9879
9882
  }
9880
9883
  }, [m, o]);
9881
- fe(() => (De(), document.addEventListener("visibilitychange", De), () => {
9884
+ de(() => (Ne(), document.addEventListener("visibilitychange", Ne), () => {
9882
9885
  document.removeEventListener(
9883
9886
  "visibilitychange",
9884
- De
9887
+ Ne
9885
9888
  );
9886
- }), [De]), fe(() => {
9889
+ }), [Ne]), de(() => {
9887
9890
  console.log("Chatbot - mount");
9888
9891
  let I, L;
9889
9892
  return u && (I = setInterval(() => {
@@ -9894,7 +9897,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9894
9897
  }, 6e4)), () => {
9895
9898
  console.log("Chatbot - unmount"), clearInterval(I), clearTimeout(L);
9896
9899
  };
9897
- }, [c, u]), fe(() => {
9900
+ }, [c, u]), de(() => {
9898
9901
  const I = (Y) => {
9899
9902
  var W, ue;
9900
9903
  (W = Y == null ? void 0 : Y.target) != null && W.href && ae({
@@ -9903,24 +9906,24 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9903
9906
  category: "2u",
9904
9907
  label: "xpert-chatbot",
9905
9908
  link: (ue = Y == null ? void 0 : Y.target) == null ? void 0 : ue.href,
9906
- isTestUser: ne
9909
+ isTestUser: te
9907
9910
  }
9908
9911
  });
9909
- }, L = ye.current;
9912
+ }, L = Me.current;
9910
9913
  return L && L.addEventListener("click", I), () => {
9911
9914
  L == null || L.removeEventListener("click", I);
9912
9915
  };
9913
9916
  });
9914
- const Se = Ff(c);
9917
+ const Ce = Ff(c);
9915
9918
  if (!e && !i)
9916
9919
  return console.log("Chatbot - xpertKey or configuration is required"), null;
9917
9920
  if (!(i != null && i.xpertKey))
9918
9921
  return console.log(`Chatbot - configuration not found for xpertkey: ${e}`), null;
9919
- if (c && Se !== "A" && !ne)
9920
- return c && Se !== "A" && console.log(
9921
- `Chatbot - Experiment not setup: ${i.xpertKey}, ${Se}, ${window.optimizely}`
9922
- ), ne || console.log(
9923
- `Chatbot - Test user not setup: ${i.xpertKey}, ${ne}`
9922
+ if (c && Ce !== "A" && !te)
9923
+ return c && Ce !== "A" && console.log(
9924
+ `Chatbot - Experiment not setup: ${i.xpertKey}, ${Ce}, ${window.optimizely}`
9925
+ ), te || console.log(
9926
+ `Chatbot - Test user not setup: ${i.xpertKey}, ${te}`
9924
9927
  ), null;
9925
9928
  if (!m)
9926
9929
  return console.log(
@@ -9931,11 +9934,11 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9931
9934
  `Chatbot - Segment not setup: ${i.xpertKey}`
9932
9935
  ), null;
9933
9936
  console.log(
9934
- `Chatbot - All things setup: ${i.xpertKey}, ${typeof window.analytics}, ${Se}, ${typeof window.optimizely}, ${typeof window.experiments}`
9937
+ `Chatbot - All things setup: ${i.xpertKey}, ${typeof window.analytics}, ${Ce}, ${typeof window.optimizely}, ${typeof window.experiments}`
9935
9938
  );
9936
9939
  const He = () => {
9937
9940
  M(""), G.current.value = "", G.current.style.height = "auto";
9938
- }, en = (I, L) => {
9941
+ }, tn = (I, L) => {
9939
9942
  ae({
9940
9943
  name: `${u}.bi.xpert.chatbot.popup.chat.message.response`,
9941
9944
  payload: {
@@ -9943,39 +9946,41 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9943
9946
  label: "xpert-chatbot",
9944
9947
  linkCount: _f(I),
9945
9948
  apiResponseMessage: I,
9946
- isTestUser: ne,
9949
+ isTestUser: te,
9947
9950
  conversationHistoryId: L
9948
9951
  }
9949
9952
  });
9950
- }, tn = ({
9953
+ }, nn = ({
9951
9954
  conversationSize: I,
9952
9955
  userInputMessage: L,
9953
9956
  apiResponseMessage: Y,
9954
- elapsedSeconds: W
9957
+ elapsedSeconds: W,
9958
+ conversationByteSize: ue
9955
9959
  }) => {
9956
9960
  ae({
9957
9961
  name: `${u}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
9958
9962
  payload: {
9959
9963
  category: "2u",
9960
9964
  label: "xpert-chatbot",
9961
- isTestUser: ne,
9965
+ isTestUser: te,
9962
9966
  conversationSize: I,
9963
9967
  userInputMessage: L,
9964
9968
  apiResponseMessage: Y,
9965
- elapsedSeconds: W
9969
+ elapsedSeconds: W,
9970
+ conversationByteSize: ue
9966
9971
  }
9967
9972
  });
9968
- }, nn = (I) => {
9969
- I.key === "Enter" && k.trim() === "" || I.key === "Enter" && !I.shiftKey && (I.preventDefault(), Ce(k), A(!0));
9970
- }, dt = () => {
9971
- Ce(k), A(!0);
9972
- }, Ce = async (I) => {
9973
+ }, rn = (I) => {
9974
+ I.key === "Enter" && k.trim() === "" || I.key === "Enter" && !I.shiftKey && (I.preventDefault(), Ae(k), A(!0));
9975
+ }, ht = () => {
9976
+ Ae(k), A(!0);
9977
+ }, Ae = async (I) => {
9973
9978
  try {
9974
9979
  if (I.trim().length === 0)
9975
9980
  return;
9976
9981
  const L = /* @__PURE__ */ new Date();
9977
9982
  ie(!1), R(!1);
9978
- const Y = v.filter((J) => J.role === "user").length + 1;
9983
+ const Y = v.filter((Ie) => Ie.role === "user").length + 1;
9979
9984
  ae({
9980
9985
  name: `${u}.bi.xpert.chatbot.popup.chat.message.sent`,
9981
9986
  payload: {
@@ -9983,10 +9988,10 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9983
9988
  label: "xpert-chatbot",
9984
9989
  totalUserInputMessagesSent: Y,
9985
9990
  userInputMessage: I,
9986
- isTestUser: ne
9991
+ isTestUser: te
9987
9992
  }
9988
9993
  }), He();
9989
- let W = Ne.get(`${m}-conversation-history-id`) || "";
9994
+ let W = Te.get(`${m}-conversation-history-id`) || "";
9990
9995
  !W && (S != null && S.enabled) ? B([
9991
9996
  {
9992
9997
  role: "user",
@@ -9999,119 +10004,120 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9999
10004
  content: I
10000
10005
  }
10001
10006
  ]), y(!0);
10002
- const ue = await fetch(o, {
10007
+ const ue = [
10008
+ ...v,
10009
+ {
10010
+ role: "user",
10011
+ content: I
10012
+ }
10013
+ ].map((Ie) => ({
10014
+ role: Ie.role,
10015
+ content: Ie.content
10016
+ })), fe = await fetch(o, {
10003
10017
  method: "POST",
10004
10018
  headers: {
10005
10019
  "Content-Type": "application/json",
10006
10020
  "Conversation-History-Id": W
10007
10021
  },
10008
10022
  body: JSON.stringify({
10009
- message_list: [
10010
- ...v,
10011
- {
10012
- role: "user",
10013
- content: I
10014
- }
10015
- ].map((J) => ({
10016
- role: J.role,
10017
- content: J.content
10018
- })),
10023
+ message_list: ue,
10019
10024
  context: {
10020
10025
  uri: i.isLiveChatEnabled ? "five9_faq" : void 0
10021
10026
  }
10022
10027
  })
10023
10028
  });
10024
- if (!ue.ok)
10025
- throw new wn(`HTTPError: ${ue.status} ${ue.statusText}`);
10026
- W = ue.headers.get("Conversation-History-Id"), W && Ne.set(
10029
+ if (!fe.ok)
10030
+ throw new wn(`HTTPError: ${fe.status} ${fe.statusText}`);
10031
+ W = fe.headers.get("Conversation-History-Id"), W && Te.set(
10027
10032
  `${m}-conversation-history-id`,
10028
10033
  W,
10029
10034
  { expires: 1 }
10030
10035
  );
10031
- const je = (await ue.json()).content;
10032
- en(je, W);
10033
- const Fe = /* @__PURE__ */ new Date();
10034
- tn({
10036
+ const Ee = (await fe.json()).content;
10037
+ tn(Ee, W);
10038
+ const ne = /* @__PURE__ */ new Date();
10039
+ nn({
10040
+ conversationByteSize: Uf(JSON.stringify(ue)),
10035
10041
  conversationSize: v.length + 2,
10036
10042
  userInputMessage: I,
10037
- apiResponseMessage: je,
10038
- elapsedSeconds: Rf(L, Fe)
10039
- }), B((J) => [
10040
- ...J,
10043
+ apiResponseMessage: Ee,
10044
+ elapsedSeconds: Rf(L, ne)
10045
+ }), B((Ie) => [
10046
+ ...Ie,
10041
10047
  {
10042
10048
  role: "assistant",
10043
- content: je,
10049
+ content: Ee,
10044
10050
  createdAt: /* @__PURE__ */ new Date()
10045
10051
  }
10046
10052
  ]), le(!1), y(!1), He(), ie(!0);
10047
10053
  } catch (L) {
10048
10054
  y(!1), He(), R(!0), console.error(L);
10049
10055
  }
10050
- }, ht = () => {
10056
+ }, gt = () => {
10051
10057
  $(!1), F(!0), ae({
10052
10058
  name: `${u}.bi.xpert.chatbot.action.button.clicked`,
10053
10059
  payload: {
10054
10060
  category: "2u",
10055
10061
  label: "xpert-chatbot",
10056
- isTestUser: ne
10062
+ isTestUser: te
10057
10063
  }
10058
10064
  });
10059
- }, rn = (I) => {
10065
+ }, on = (I) => {
10060
10066
  ae({
10061
10067
  name: `${u}.bi.xpert.chatbot.${I ? "normal" : "expand"}.size.button.clicked`,
10062
10068
  payload: {
10063
10069
  category: "2u",
10064
10070
  label: "xpert-chatbot",
10065
- isTestUser: ne
10071
+ isTestUser: te
10066
10072
  }
10067
10073
  }), V(I);
10068
- }, gt = () => {
10074
+ }, mt = () => {
10069
10075
  F(!0), ae({
10070
10076
  name: `${u}.bi.xpert.chatbot.proactive.message.clicked`,
10071
10077
  payload: {
10072
10078
  category: "2u",
10073
10079
  label: "xpert-chatbot",
10074
- isTestUser: ne
10080
+ isTestUser: te
10075
10081
  }
10076
10082
  });
10077
- }, mt = () => {
10083
+ }, yt = () => {
10078
10084
  ae({
10079
10085
  name: `${u}.bi.xpert.chatbot.proactive.message.closed`,
10080
10086
  payload: {
10081
10087
  category: "2u",
10082
10088
  label: "xpert-chatbot",
10083
- isTestUser: ne
10089
+ isTestUser: te
10084
10090
  }
10085
10091
  });
10086
- }, on = () => {
10092
+ }, ln = () => {
10087
10093
  F(!1), ae({
10088
10094
  name: `${u}.bi.xpert.chatbot.popup.disclaimer.closed`,
10089
10095
  payload: {
10090
10096
  category: "2u",
10091
10097
  label: "xpert-chatbot",
10092
- isTestUser: ne
10098
+ isTestUser: te
10093
10099
  }
10094
10100
  });
10095
- }, ln = () => {
10101
+ }, an = () => {
10096
10102
  F(!1), d(!1), ae({
10097
10103
  name: `${u}.bi.xpert.chatbot.popup.chat.minimized`,
10098
10104
  payload: {
10099
10105
  category: "2u",
10100
10106
  label: "xpert-chatbot",
10101
- isTestUser: ne
10107
+ isTestUser: te
10102
10108
  }
10103
10109
  });
10104
- }, yt = () => {
10110
+ }, Mt = () => {
10105
10111
  var I;
10106
10112
  /* istanbul ignore next @preserve */
10107
10113
  G.current && (G.current.style.height = "auto", G.current.style.height = `${Math.min(
10108
10114
  (I = G.current) == null ? void 0 : I.scrollHeight,
10109
10115
  120
10110
10116
  )}px`);
10111
- }, Mt = (I) => {
10117
+ }, xt = (I) => {
10112
10118
  M(I.target.value);
10113
- }, an = (I) => {
10114
- I.key === "Enter" && k.trim() === "" || I.key === "Enter" && !I.shiftKey && (I.preventDefault(), Ce(k));
10119
+ }, un = (I) => {
10120
+ I.key === "Enter" && k.trim() === "" || I.key === "Enter" && !I.shiftKey && (I.preventDefault(), Ae(k));
10115
10121
  }, w = (I, L = "") => {
10116
10122
  const Y = v.map((W, ue) => I === ue ? (ae({
10117
10123
  name: `${u}.bi.xpert.chatbot.feedback.thumbs.${L.toLowerCase()}.clicked`,
@@ -10121,7 +10127,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10121
10127
  userInputMessage: v[I - 1],
10122
10128
  apiResponseMessageIndex: I,
10123
10129
  apiResponseMessage: v[I],
10124
- isTestUser: ne
10130
+ isTestUser: te
10125
10131
  }
10126
10132
  }), {
10127
10133
  ...W,
@@ -10137,8 +10143,8 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10137
10143
  {
10138
10144
  showMessage: !O,
10139
10145
  style: b ? { ...l.mobile } : { ...l },
10140
- onClose: mt,
10141
- onClick: gt,
10146
+ onClose: yt,
10147
+ onClick: mt,
10142
10148
  cookieName: `${m}-proactive-message-xpert-chatbot`,
10143
10149
  cookieDomainName: p,
10144
10150
  proactiveMessageDelay: a,
@@ -10161,7 +10167,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10161
10167
  /* @__PURE__ */ D.jsx(
10162
10168
  fr,
10163
10169
  {
10164
- onClick: ht,
10170
+ onClick: gt,
10165
10171
  label: "Open XPERT Chatbot",
10166
10172
  style: b ? { ...s == null ? void 0 : s.mobile } : { ...s },
10167
10173
  "aria-haspopup": "dialog",
@@ -10172,7 +10178,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10172
10178
  {
10173
10179
  "data-ot-ignore": "",
10174
10180
  className: "xpert-chatbot-button__logo optanon-category-C0001",
10175
- src: Uf[i.xpertKey],
10181
+ src: Bf[i.xpertKey],
10176
10182
  alt: "xpert logo",
10177
10183
  "aria-hidden": !0,
10178
10184
  style: { width: s == null ? void 0 : s.iconWidth }
@@ -10180,10 +10186,10 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10180
10186
  )
10181
10187
  }
10182
10188
  ),
10183
- O && !q && /* @__PURE__ */ D.jsx(Jt, { isNormalSize: Q, isMounted: X, children: /* @__PURE__ */ D.jsx(
10189
+ O && !q && /* @__PURE__ */ D.jsx(en, { isNormalSize: Q, isMounted: X, children: /* @__PURE__ */ D.jsx(
10184
10190
  "div",
10185
10191
  {
10186
- ref: ye,
10192
+ ref: Me,
10187
10193
  style: { display: "flex", flexDirection: "column", height: "100%" },
10188
10194
  "aria-label": "XPERT Chatbot Popup",
10189
10195
  role: "dialog",
@@ -10191,11 +10197,11 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10191
10197
  /* @__PURE__ */ D.jsx(
10192
10198
  Xi,
10193
10199
  {
10194
- onClose: ln,
10200
+ onClose: an,
10195
10201
  isMounted: X,
10196
10202
  isNormalSize: Q,
10197
10203
  setIsMounted: d,
10198
- setIsNormalSize: rn,
10204
+ setIsNormalSize: on,
10199
10205
  configurations: i
10200
10206
  }
10201
10207
  ),
@@ -10207,7 +10213,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10207
10213
  loading: U,
10208
10214
  isNormalSize: b || Q,
10209
10215
  onFeedbackThumbSelection: w,
10210
- onPromptClick: Ce,
10216
+ onPromptClick: Ae,
10211
10217
  showDisclaimerText: x,
10212
10218
  configurations: i
10213
10219
  }
@@ -10222,21 +10228,21 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10222
10228
  configurations: i,
10223
10229
  submitEvent: ae,
10224
10230
  setLiveChatOpen: $,
10225
- isTestUser: ne
10231
+ isTestUser: te
10226
10232
  }
10227
10233
  ),
10228
10234
  /* @__PURE__ */ D.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ D.jsx(
10229
- _t,
10235
+ Ut,
10230
10236
  {
10231
10237
  inputRef: G,
10232
10238
  loading: U,
10233
10239
  hasXpertMessages: h,
10234
10240
  hasError: z,
10235
10241
  userInput: k,
10236
- handleSend: Ce,
10237
- handleInput: yt,
10238
- handleChange: Mt,
10239
- handleKeyDown: an,
10242
+ handleSend: Ae,
10243
+ handleInput: Mt,
10244
+ handleChange: xt,
10245
+ handleKeyDown: un,
10240
10246
  configurations: i
10241
10247
  }
10242
10248
  ) })
@@ -10244,15 +10250,15 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10244
10250
  ] }) : /* @__PURE__ */ D.jsx(
10245
10251
  Ko,
10246
10252
  {
10247
- onClose: on,
10253
+ onClose: ln,
10248
10254
  loading: U,
10249
10255
  inputRef: G,
10250
10256
  hasError: z,
10251
10257
  userInput: k,
10252
- handleSend: dt,
10253
- handleInput: yt,
10254
- handleChange: Mt,
10255
- handleKeyDown: nn,
10258
+ handleSend: ht,
10259
+ handleInput: Mt,
10260
+ handleChange: xt,
10261
+ handleKeyDown: rn,
10256
10262
  configurations: i
10257
10263
  }
10258
10264
  )