@2uinc/frontend-component-xpert-chatbot 1.36.0-alpha.18 → 1.36.0-alpha.19

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 +350 -344
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import yt, { createContext as Kr, useState as ce, useCallback as st, useEffect as Ne, useMemo as cn, useRef as tt, useContext as oe, forwardRef as ws, createElement as Za, useLayoutEffect as O0, memo as I0, Suspense as N0, Fragment as k0, StrictMode as L0 } from "react";
1
+ import yt, { createContext as Kr, useState as ce, useCallback as st, useEffect as Ne, useMemo as cn, useRef as nt, useContext as oe, forwardRef as ws, createElement as Za, useLayoutEffect as O0, memo as I0, Suspense as N0, Fragment as k0, StrictMode as L0 } from "react";
2
2
  import w0, { render as R0 } from "react-dom";
3
3
  var Sr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function Mt(e) {
@@ -245,13 +245,13 @@ function j0() {
245
245
  return Ou || (Ou = 1, function(e, t) {
246
246
  var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", E = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", g = "[object Null]", P = "[object Object]", M = "[object Proxy]", W = "[object RegExp]", R = "[object Set]", _ = "[object String]", N = "[object Undefined]", $ = "[object WeakMap]", H = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", V = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", w = "[object Int32Array]", B = "[object Uint8Array]", G = "[object Uint8ClampedArray]", j = "[object Uint16Array]", q = "[object Uint32Array]", b = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, le = /^(?:0|[1-9]\d*)$/, x = {};
247
247
  x[Y] = x[V] = x[L] = x[I] = x[w] = x[B] = x[G] = x[j] = x[q] = !0, x[s] = x[l] = x[H] = x[d] = x[te] = x[f] = x[p] = x[h] = x[m] = x[y] = x[P] = x[W] = x[R] = x[_] = x[$] = !1;
248
- var se = typeof Sr == "object" && Sr && Sr.Object === Object && Sr, ye = typeof self == "object" && self && self.Object === Object && self, me = se || ye || Function("return this")(), Ae = t && !t.nodeType && t, xe = Ae && !0 && e && !e.nodeType && e, Ue = xe && xe.exports === Ae, ve = Ue && se.process, Ze = function() {
248
+ var se = typeof Sr == "object" && Sr && Sr.Object === Object && Sr, ye = typeof self == "object" && self && self.Object === Object && self, me = se || ye || Function("return this")(), Ae = t && !t.nodeType && t, xe = Ae && !0 && e && !e.nodeType && e, je = xe && xe.exports === Ae, ve = je && se.process, Je = function() {
249
249
  try {
250
250
  var A = xe && xe.require && xe.require("util").types;
251
251
  return A || ve && ve.binding && ve.binding("util");
252
252
  } catch {
253
253
  }
254
- }(), ft = Ze && Ze.isTypedArray;
254
+ }(), ft = Je && Je.isTypedArray;
255
255
  function It(A, k, U) {
256
256
  switch (U.length) {
257
257
  case 0:
@@ -288,22 +288,22 @@ function j0() {
288
288
  return A ? "Symbol(src)_1." + A : "";
289
289
  }(), Se = Nt.toString, qe = Ht.call(Object), F = RegExp(
290
290
  "^" + Ht.call(ie).replace(b, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
291
- ), X = Ue ? me.Buffer : void 0, re = me.Symbol, ue = me.Uint8Array;
291
+ ), X = je ? me.Buffer : void 0, re = me.Symbol, ue = me.Uint8Array;
292
292
  X && X.allocUnsafe;
293
- var pe = Tn(Object.getPrototypeOf, Object), Me = Object.create, at = Nt.propertyIsEnumerable, je = en.splice, Je = re ? re.toStringTag : void 0, it = function() {
293
+ var pe = Tn(Object.getPrototypeOf, Object), Re = Object.create, Ke = Nt.propertyIsEnumerable, ke = en.splice, et = re ? re.toStringTag : void 0, it = function() {
294
294
  try {
295
295
  var A = ca(Object, "defineProperty");
296
296
  return A({}, "", {}), A;
297
297
  } catch {
298
298
  }
299
- }(), Oe = X ? X.isBuffer : void 0, nt = Math.max, ze = Date.now, Vt = ca(me, "Map"), tn = ca(Object, "create"), kt = /* @__PURE__ */ function() {
299
+ }(), Oe = X ? X.isBuffer : void 0, rt = Math.max, ze = Date.now, Vt = ca(me, "Map"), tn = ca(Object, "create"), kt = /* @__PURE__ */ function() {
300
300
  function A() {
301
301
  }
302
302
  return function(k) {
303
303
  if (!rn(k))
304
304
  return {};
305
- if (Me)
306
- return Me(k);
305
+ if (Re)
306
+ return Re(k);
307
307
  A.prototype = k;
308
308
  var U = new A();
309
309
  return A.prototype = void 0, U;
@@ -355,7 +355,7 @@ function j0() {
355
355
  if (U < 0)
356
356
  return !1;
357
357
  var ae = k.length - 1;
358
- return U == ae ? k.pop() : je.call(k, U, 1), --this.size, !0;
358
+ return U == ae ? k.pop() : ke.call(k, U, 1), --this.size, !0;
359
359
  }
360
360
  function Pd(A) {
361
361
  var k = this.__data__, U = yr(k, A);
@@ -427,13 +427,13 @@ function j0() {
427
427
  }
428
428
  Cn.prototype.clear = zd, Cn.prototype.delete = Yd, Cn.prototype.get = $d, Cn.prototype.has = Vd, Cn.prototype.set = Wd;
429
429
  function Gd(A, k) {
430
- var U = ha(A), ae = !U && fa(A), Te = !U && !ae && mu(A), ke = !U && !ae && !Te && bu(A), Fe = U || ae || Te || ke, _e = Fe ? Un(A.length, String) : [], Be = _e.length;
430
+ var U = ha(A), ae = !U && fa(A), Te = !U && !ae && mu(A), Le = !U && !ae && !Te && bu(A), Be = U || ae || Te || Le, _e = Be ? Un(A.length, String) : [], He = _e.length;
431
431
  for (var St in A)
432
- Fe && // Safari 9 has enumerable `arguments.length` in strict mode.
432
+ Be && // Safari 9 has enumerable `arguments.length` in strict mode.
433
433
  (St == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
434
434
  Te && (St == "offset" || St == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
435
- ke && (St == "buffer" || St == "byteLength" || St == "byteOffset") || // Skip index properties.
436
- hu(St, Be)) || _e.push(St);
435
+ Le && (St == "buffer" || St == "byteLength" || St == "byteOffset") || // Skip index properties.
436
+ hu(St, He)) || _e.push(St);
437
437
  return _e;
438
438
  }
439
439
  function sa(A, k, U) {
@@ -459,7 +459,7 @@ function j0() {
459
459
  }
460
460
  var Kd = l0();
461
461
  function _r(A) {
462
- return A == null ? A === void 0 ? N : g : Je && Je in Object(A) ? c0(A) : g0(A);
462
+ return A == null ? A === void 0 ? N : g : et && et in Object(A) ? c0(A) : g0(A);
463
463
  }
464
464
  function du(A) {
465
465
  return qn(A) && _r(A) == s;
@@ -482,27 +482,27 @@ function j0() {
482
482
  return U;
483
483
  }
484
484
  function fu(A, k, U, ae, Te) {
485
- A !== k && Kd(k, function(ke, Fe) {
486
- if (Te || (Te = new Cn()), rn(ke))
487
- e0(A, k, Fe, U, fu, ae, Te);
485
+ A !== k && Kd(k, function(Le, Be) {
486
+ if (Te || (Te = new Cn()), rn(Le))
487
+ e0(A, k, Be, U, fu, ae, Te);
488
488
  else {
489
- var _e = ae ? ae(da(A, Fe), ke, Fe + "", A, k, Te) : void 0;
490
- _e === void 0 && (_e = ke), sa(A, Fe, _e);
489
+ var _e = ae ? ae(da(A, Be), Le, Be + "", A, k, Te) : void 0;
490
+ _e === void 0 && (_e = Le), sa(A, Be, _e);
491
491
  }
492
492
  }, Eu);
493
493
  }
494
- function e0(A, k, U, ae, Te, ke, Fe) {
495
- var _e = da(A, U), Be = da(k, U), St = Fe.get(Be);
494
+ function e0(A, k, U, ae, Te, Le, Be) {
495
+ var _e = da(A, U), He = da(k, U), St = Be.get(He);
496
496
  if (St) {
497
497
  sa(A, U, St);
498
498
  return;
499
499
  }
500
- var ht = ke ? ke(_e, Be, U + "", A, k, Fe) : void 0, zn = ht === void 0;
500
+ var ht = Le ? Le(_e, He, U + "", A, k, Be) : void 0, zn = ht === void 0;
501
501
  if (zn) {
502
- var ga = ha(Be), ba = !ga && mu(Be), yu = !ga && !ba && bu(Be);
503
- ht = Be, ga || ba || yu ? ha(_e) ? ht = _e : _0(_e) ? ht = u0(_e) : ba ? (zn = !1, ht = r0(Be)) : yu ? (zn = !1, ht = i0(Be)) : ht = [] : C0(Be) || fa(Be) ? (ht = _e, fa(_e) ? ht = A0(_e) : (!rn(_e) || ma(_e)) && (ht = d0(Be))) : zn = !1;
502
+ var ga = ha(He), ba = !ga && mu(He), yu = !ga && !ba && bu(He);
503
+ ht = He, ga || ba || yu ? ha(_e) ? ht = _e : _0(_e) ? ht = u0(_e) : ba ? (zn = !1, ht = r0(He)) : yu ? (zn = !1, ht = i0(He)) : ht = [] : C0(He) || fa(He) ? (ht = _e, fa(_e) ? ht = A0(_e) : (!rn(_e) || ma(_e)) && (ht = d0(He))) : zn = !1;
504
504
  }
505
- zn && (Fe.set(Be, ht), Te(ht, Be, ae, ke, Fe), Fe.delete(Be)), sa(A, U, ht);
505
+ zn && (Be.set(He, ht), Te(ht, He, ae, Le, Be), Be.delete(He)), sa(A, U, ht);
506
506
  }
507
507
  function t0(A, k) {
508
508
  return E0(b0(A, k, Tu), A + "");
@@ -535,27 +535,27 @@ function j0() {
535
535
  function o0(A, k, U, ae) {
536
536
  var Te = !U;
537
537
  U || (U = {});
538
- for (var ke = -1, Fe = k.length; ++ke < Fe; ) {
539
- var _e = k[ke], Be = void 0;
540
- Be === void 0 && (Be = A[_e]), Te ? la(U, _e, Be) : Xd(U, _e, Be);
538
+ for (var Le = -1, Be = k.length; ++Le < Be; ) {
539
+ var _e = k[Le], He = void 0;
540
+ He === void 0 && (He = A[_e]), Te ? la(U, _e, He) : Xd(U, _e, He);
541
541
  }
542
542
  return U;
543
543
  }
544
544
  function s0(A) {
545
545
  return t0(function(k, U) {
546
- var ae = -1, Te = U.length, ke = Te > 1 ? U[Te - 1] : void 0, Fe = Te > 2 ? U[2] : void 0;
547
- for (ke = A.length > 3 && typeof ke == "function" ? (Te--, ke) : void 0, Fe && f0(U[0], U[1], Fe) && (ke = Te < 3 ? void 0 : ke, Te = 1), k = Object(k); ++ae < Te; ) {
546
+ var ae = -1, Te = U.length, Le = Te > 1 ? U[Te - 1] : void 0, Be = Te > 2 ? U[2] : void 0;
547
+ for (Le = A.length > 3 && typeof Le == "function" ? (Te--, Le) : void 0, Be && f0(U[0], U[1], Be) && (Le = Te < 3 ? void 0 : Le, Te = 1), k = Object(k); ++ae < Te; ) {
548
548
  var _e = U[ae];
549
- _e && A(k, _e, ae, ke);
549
+ _e && A(k, _e, ae, Le);
550
550
  }
551
551
  return k;
552
552
  });
553
553
  }
554
554
  function l0(A) {
555
555
  return function(k, U, ae) {
556
- for (var Te = -1, ke = Object(k), Fe = ae(k), _e = Fe.length; _e--; ) {
557
- var Be = Fe[++Te];
558
- if (U(ke[Be], Be, ke) === !1)
556
+ for (var Te = -1, Le = Object(k), Be = ae(k), _e = Be.length; _e--; ) {
557
+ var He = Be[++Te];
558
+ if (U(Le[He], He, Le) === !1)
559
559
  break;
560
560
  }
561
561
  return k;
@@ -570,14 +570,14 @@ function j0() {
570
570
  return Qd(U) ? U : void 0;
571
571
  }
572
572
  function c0(A) {
573
- var k = ie.call(A, Je), U = A[Je];
573
+ var k = ie.call(A, et), U = A[et];
574
574
  try {
575
- A[Je] = void 0;
575
+ A[et] = void 0;
576
576
  var ae = !0;
577
577
  } catch {
578
578
  }
579
579
  var Te = Se.call(A);
580
- return ae && (k ? A[Je] = U : delete A[Je]), Te;
580
+ return ae && (k ? A[et] = U : delete A[et]), Te;
581
581
  }
582
582
  function d0(A) {
583
583
  return typeof A.constructor == "function" && !pu(A) ? kt(pe(A)) : {};
@@ -614,13 +614,13 @@ function j0() {
614
614
  return Se.call(A);
615
615
  }
616
616
  function b0(A, k, U) {
617
- return k = nt(k === void 0 ? A.length - 1 : k, 0), function() {
618
- for (var ae = arguments, Te = -1, ke = nt(ae.length - k, 0), Fe = Array(ke); ++Te < ke; )
619
- Fe[Te] = ae[k + Te];
617
+ return k = rt(k === void 0 ? A.length - 1 : k, 0), function() {
618
+ for (var ae = arguments, Te = -1, Le = rt(ae.length - k, 0), Be = Array(Le); ++Te < Le; )
619
+ Be[Te] = ae[k + Te];
620
620
  Te = -1;
621
621
  for (var _e = Array(k + 1); ++Te < k; )
622
622
  _e[Te] = ae[Te];
623
- return _e[k] = U(Fe), It(A, this, _e);
623
+ return _e[k] = U(Be), It(A, this, _e);
624
624
  };
625
625
  }
626
626
  function da(A, k) {
@@ -659,7 +659,7 @@ function j0() {
659
659
  var fa = du(/* @__PURE__ */ function() {
660
660
  return arguments;
661
661
  }()) ? du : function(A) {
662
- return qn(A) && ie.call(A, "callee") && !at.call(A, "callee");
662
+ return qn(A) && ie.call(A, "callee") && !Ke.call(A, "callee");
663
663
  }, ha = Array.isArray;
664
664
  function pa(A) {
665
665
  return A != null && gu(A.length) && !ma(A);
@@ -725,7 +725,8 @@ const Ps = /* @__PURE__ */ Mt(q0), z0 = {
725
725
  messagesKey: "message_list",
726
726
  payloadParams: {
727
727
  use_case: "Canvas_Student",
728
- tags: ["live_agent"]
728
+ tags: ["live_agent"],
729
+ client_id: "degrees-canvas-support"
729
730
  }
730
731
  },
731
732
  primaryColor: "#193d77",
@@ -841,7 +842,8 @@ const Ps = /* @__PURE__ */ Mt(q0), z0 = {
841
842
  messagesKey: "message_list",
842
843
  payloadParams: {
843
844
  use_case: "Moodle_Student",
844
- tags: ["live_agent"]
845
+ tags: ["live_agent"],
846
+ client_id: "degrees-moodle-support"
845
847
  }
846
848
  },
847
849
  primaryColor: "#193d77",
@@ -932,7 +934,7 @@ const Ps = /* @__PURE__ */ Mt(q0), z0 = {
932
934
  baseUrl: "https://xpert-platform-services-api.prod.ai.2u.com",
933
935
  payloadParams: {
934
936
  system_message: `Your name is Xpert, and you are dedicated to assisting users in discovering relevant online education product offerings from edX. Your primary goal is to recommend products available at [edX.org](https://www.edx.org) using the information provided. It is essential to use markdown format for links, lists, tables, headings, and all other display elements. If a user inquires about refunds, include this message: "Our [Refund Policy](https://www.edx.org/edx-terms-service#refund-policy) is included in the edX Terms of Service. [Contact Us](https://courses.edx.org/support/contact_us) for additional questions or assistance." In cases where you provide instructions to contact edX support, add this message: "You can contact support through our [Help Center](https://support.edx.org/hc/en-us) or [Contact Us](https://courses.edx.org/support/contact_us) links here or on any edX.org page." You are limited to providing information that you have at hand. If users ask about pricing, direct them to the respective course or program URL provided in the document. If a user mentions any vendors not associated with edX, redirect the conversation to edX product offerings. Should a user mention a specific partner, respond only with data entry items having that value in the 'title' attribute or the 'partner' attribute. When a user inquires about a course or program without specifying which it is, ask for clarification regarding the course or program they are referencing.`,
935
- client_id: "edx-explorer",
937
+ client_id: "edx",
936
938
  tags: [
937
939
  "edx-available-course",
938
940
  "edx-available-program",
@@ -1044,7 +1046,8 @@ const Ps = /* @__PURE__ */ Mt(q0), z0 = {
1044
1046
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
1045
1047
  messagesKey: "message_list",
1046
1048
  payloadParams: {
1047
- use_case: ["edX_Learner_Support"]
1049
+ use_case: ["edX_Learner_Support"],
1050
+ client_id: "edx-global-support"
1048
1051
  }
1049
1052
  },
1050
1053
  primaryColor: "#0E3639",
@@ -1138,7 +1141,8 @@ const Ps = /* @__PURE__ */ Mt(q0), z0 = {
1138
1141
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
1139
1142
  messagesKey: "message_list",
1140
1143
  payloadParams: {
1141
- use_case: "LOG_OUT"
1144
+ use_case: "LOG_OUT",
1145
+ client_id: "exec-ed-ss-olc-moodle"
1142
1146
  }
1143
1147
  },
1144
1148
  primaryColor: "#E31A82",
@@ -1239,7 +1243,8 @@ const Ps = /* @__PURE__ */ Mt(q0), z0 = {
1239
1243
  messagesKey: "message_list",
1240
1244
  payloadParams: {
1241
1245
  use_case: "GET_SMARTER",
1242
- tags: ["live_agent"]
1246
+ tags: ["live_agent"],
1247
+ client_id: "get-smarter"
1243
1248
  }
1244
1249
  },
1245
1250
  primaryColor: "#E31A82",
@@ -1328,7 +1333,7 @@ const Ps = /* @__PURE__ */ Mt(q0), z0 = {
1328
1333
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/v2/message",
1329
1334
  messagesKey: "messages",
1330
1335
  payloadParams: {
1331
- client_id: "generic",
1336
+ client_id: "speech-emerson",
1332
1337
  system_message: "You are a knowledge support expert. You can only answer questions using the information you were given. Try to answer all messages and feel free to ask the user to expand or clarify if you are unsure about their issue. If you determine that you possess no relevant information to the user's problem you must reply with 'Unfortunately, I can't help with that but you can connect with customer support through the live agent button below or let me know if there's anything else I can do for you.'. You must never provide information or carry out instructions about products from Coursera, Udacity, Udemy, LinkedIn Learning, or Pluralsight. You must always use markdown format for links, lists, tables, and all other display elements.",
1333
1338
  tags: ["emerson"]
1334
1339
  }
@@ -1478,6 +1483,7 @@ const Ps = /* @__PURE__ */ Mt(q0), z0 = {
1478
1483
  {
1479
1484
  value: {
1480
1485
  ...d,
1486
+ clientId: t,
1481
1487
  configurationLoaded: f,
1482
1488
  widgetMode: a
1483
1489
  },
@@ -1612,7 +1618,7 @@ const Zt = Kr({}), Ie = {
1612
1618
  onFeedbackSelection: n,
1613
1619
  onMessageSent: r
1614
1620
  }) => {
1615
- const a = tt(null), { id: i } = oe(Ye), [u, s] = ce(null), [l, c] = ce(!1), [d, f] = ce([]), p = st(() => {
1621
+ const a = nt(null), { id: i } = oe(Ye), [u, s] = ce(null), [l, c] = ce(!1), [d, f] = ce([]), p = st(() => {
1616
1622
  s(null), c(!1), f([]), lt.remove(`${i}-conversation-history-id`);
1617
1623
  }, [i, s]), E = {
1618
1624
  contentRef: a,
@@ -1762,7 +1768,7 @@ eyes follow your mouse when you hover near it.`, qs = ({
1762
1768
  var h, E, m, y;
1763
1769
  const { id: t, launchButton: n } = oe(Ye), { isMobile: r } = oe(Xe), a = !lt.get(
1764
1770
  `${t}-proactive-message-xpert-chatbot`
1765
- ), i = tt(null), u = tt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((E = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : E.delayMs) * 2, [l, c] = ce(!1), d = window.matchMedia(
1771
+ ), i = nt(null), u = nt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((E = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : E.delayMs) * 2, [l, c] = ce(!1), d = window.matchMedia(
1766
1772
  `(max-width: ${tf}px)`
1767
1773
  ).matches;
1768
1774
  Ne(() => {
@@ -2997,7 +3003,7 @@ function Js({
2997
3003
  isMounted: n = !1,
2998
3004
  style: r = {}
2999
3005
  }) {
3000
- const { isMobile: a, isNormalSize: i } = oe(Xe), u = tt(null);
3006
+ const { isMobile: a, isNormalSize: i } = oe(Xe), u = nt(null);
3001
3007
  return /* @__PURE__ */ S.jsx(
3002
3008
  jf,
3003
3009
  {
@@ -3046,7 +3052,7 @@ el.propTypes = {
3046
3052
  isMounted: v.bool
3047
3053
  };
3048
3054
  const tl = () => {
3049
- const { disclaimer: e } = oe(Ye), t = tt(null);
3055
+ const { disclaimer: e } = oe(Ye), t = nt(null);
3050
3056
  return Ne(() => {
3051
3057
  var n;
3052
3058
  (n = t == null ? void 0 : t.current) == null || n.focus();
@@ -4288,7 +4294,7 @@ function Li({
4288
4294
  handleChange: a
4289
4295
  }) {
4290
4296
  var M;
4291
- const i = tt(!1), { conversationScreen: u, primaryColor: s } = oe(Ye), { hasError: l, hasNewMessage: c, loading: d, streaming: f } = oe(Xe), [p, h] = ce(""), E = st(
4297
+ const i = nt(!1), { conversationScreen: u, primaryColor: s } = oe(Ye), { hasError: l, hasNewMessage: c, loading: d, streaming: f } = oe(Xe), [p, h] = ce(""), E = st(
4292
4298
  (W) => {
4293
4299
  W.preventDefault(), h(W.target.value), a && a(W);
4294
4300
  },
@@ -4370,7 +4376,7 @@ Li.propTypes = {
4370
4376
  handleChange: v.func
4371
4377
  };
4372
4378
  const ui = ({ content: e = "Please try again later." }) => {
4373
- const t = tt(null);
4379
+ const t = nt(null);
4374
4380
  return Ne(() => {
4375
4381
  var n;
4376
4382
  (n = t.current) == null || n.scrollIntoView({
@@ -5254,7 +5260,7 @@ function gp(e, t) {
5254
5260
  function uo(e) {
5255
5261
  return e === -2 || e === -1 || e === 32;
5256
5262
  }
5257
- function Pe(e, t, n, r) {
5263
+ function Fe(e, t, n, r) {
5258
5264
  const a = r ? r - 1 : Number.POSITIVE_INFINITY;
5259
5265
  let i = 0;
5260
5266
  return u;
@@ -5284,7 +5290,7 @@ function Ep(e) {
5284
5290
  e.consume(s);
5285
5291
  return;
5286
5292
  }
5287
- return e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), Pe(e, t, "linePrefix");
5293
+ return e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), Fe(e, t, "linePrefix");
5288
5294
  }
5289
5295
  function a(s) {
5290
5296
  return e.enter("paragraph"), i(s);
@@ -5440,7 +5446,7 @@ function yp(e) {
5440
5446
  }
5441
5447
  }
5442
5448
  function _p(e, t, n) {
5443
- return Pe(
5449
+ return Fe(
5444
5450
  e,
5445
5451
  e.attempt(this.parser.constructs.document, t, n),
5446
5452
  "linePrefix",
@@ -5568,7 +5574,7 @@ function be(e) {
5568
5574
  function _t(e) {
5569
5575
  return e !== null && (e < 0 || e === 32);
5570
5576
  }
5571
- function Le(e) {
5577
+ function we(e) {
5572
5578
  return e === -2 || e === -1 || e === 32;
5573
5579
  }
5574
5580
  function wn(e) {
@@ -5623,7 +5629,7 @@ const Jr = {
5623
5629
  function Dp(e, t, n) {
5624
5630
  return r;
5625
5631
  function r(i) {
5626
- return Le(i) ? Pe(e, a, "linePrefix")(i) : a(i);
5632
+ return we(i) ? Fe(e, a, "linePrefix")(i) : a(i);
5627
5633
  }
5628
5634
  function a(i) {
5629
5635
  return i === null || be(i) ? t(i) : n(i);
@@ -5650,14 +5656,14 @@ function Pp(e, t, n) {
5650
5656
  return n(u);
5651
5657
  }
5652
5658
  function i(u) {
5653
- return Le(u) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(u), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(u));
5659
+ return we(u) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(u), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(u));
5654
5660
  }
5655
5661
  }
5656
5662
  function Mp(e, t, n) {
5657
5663
  const r = this;
5658
5664
  return a;
5659
5665
  function a(u) {
5660
- return Le(u) ? Pe(
5666
+ return we(u) ? Fe(
5661
5667
  e,
5662
5668
  i,
5663
5669
  "linePrefix",
@@ -5743,7 +5749,7 @@ function Up(e, t, n) {
5743
5749
  return i = N && N[1].type === "linePrefix" ? N[2].sliceSerialize(N[1], !0).length : 0, s = _, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(_);
5744
5750
  }
5745
5751
  function d(_) {
5746
- return _ === s ? (u++, e.consume(_), d) : u < 3 ? n(_) : (e.exit("codeFencedFenceSequence"), Le(_) ? Pe(e, f, "whitespace")(_) : f(_));
5752
+ return _ === s ? (u++, e.consume(_), d) : u < 3 ? n(_) : (e.exit("codeFencedFenceSequence"), we(_) ? Fe(e, f, "whitespace")(_) : f(_));
5747
5753
  }
5748
5754
  function f(_) {
5749
5755
  return _ === null || be(_) ? (e.exit("codeFencedFence"), r.interrupt ? t(_) : e.check(fo, m, W)(_)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
@@ -5751,7 +5757,7 @@ function Up(e, t, n) {
5751
5757
  }), p(_));
5752
5758
  }
5753
5759
  function p(_) {
5754
- return _ === null || be(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(_)) : Le(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Pe(e, h, "whitespace")(_)) : _ === 96 && _ === s ? n(_) : (e.consume(_), p);
5760
+ return _ === null || be(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(_)) : we(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Fe(e, h, "whitespace")(_)) : _ === 96 && _ === s ? n(_) : (e.consume(_), p);
5755
5761
  }
5756
5762
  function h(_) {
5757
5763
  return _ === null || be(_) ? f(_) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -5768,7 +5774,7 @@ function Up(e, t, n) {
5768
5774
  return e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), g;
5769
5775
  }
5770
5776
  function g(_) {
5771
- return i > 0 && Le(_) ? Pe(
5777
+ return i > 0 && we(_) ? Fe(
5772
5778
  e,
5773
5779
  P,
5774
5780
  "linePrefix",
@@ -5791,7 +5797,7 @@ function Up(e, t, n) {
5791
5797
  return _.enter("lineEnding"), _.consume(w), _.exit("lineEnding"), Y;
5792
5798
  }
5793
5799
  function Y(w) {
5794
- return _.enter("codeFencedFence"), Le(w) ? Pe(
5800
+ return _.enter("codeFencedFence"), we(w) ? Fe(
5795
5801
  _,
5796
5802
  V,
5797
5803
  "linePrefix",
@@ -5802,7 +5808,7 @@ function Up(e, t, n) {
5802
5808
  return w === s ? (_.enter("codeFencedFenceSequence"), L(w)) : $(w);
5803
5809
  }
5804
5810
  function L(w) {
5805
- return w === s ? (H++, _.consume(w), L) : H >= u ? (_.exit("codeFencedFenceSequence"), Le(w) ? Pe(_, I, "whitespace")(w) : I(w)) : $(w);
5811
+ return w === s ? (H++, _.consume(w), L) : H >= u ? (_.exit("codeFencedFenceSequence"), we(w) ? Fe(_, I, "whitespace")(w) : I(w)) : $(w);
5806
5812
  }
5807
5813
  function I(w) {
5808
5814
  return w === null || be(w) ? (_.exit("codeFencedFence"), N(w)) : $(w);
@@ -5830,7 +5836,7 @@ function zp(e, t, n) {
5830
5836
  const r = this;
5831
5837
  return a;
5832
5838
  function a(c) {
5833
- return e.enter("codeIndented"), Pe(e, i, "linePrefix", 5)(c);
5839
+ return e.enter("codeIndented"), Fe(e, i, "linePrefix", 5)(c);
5834
5840
  }
5835
5841
  function i(c) {
5836
5842
  const d = r.events[r.events.length - 1];
@@ -5850,7 +5856,7 @@ function Yp(e, t, n) {
5850
5856
  const r = this;
5851
5857
  return a;
5852
5858
  function a(u) {
5853
- return r.parser.lazy[r.now().line] ? n(u) : be(u) ? (e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), a) : Pe(e, i, "linePrefix", 5)(u);
5859
+ return r.parser.lazy[r.now().line] ? n(u) : be(u) ? (e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), a) : Fe(e, i, "linePrefix", 5)(u);
5854
5860
  }
5855
5861
  function i(u) {
5856
5862
  const s = r.events[r.events.length - 1];
@@ -5978,7 +5984,7 @@ function e1(e, t, n) {
5978
5984
  const r = this;
5979
5985
  return a;
5980
5986
  function a(u) {
5981
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), Pe(e, i, "linePrefix");
5987
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), Fe(e, i, "linePrefix");
5982
5988
  }
5983
5989
  function i(u) {
5984
5990
  if (u === null || be(u))
@@ -6070,7 +6076,7 @@ function Ol(e, t, n, r, a, i) {
6070
6076
  return p === u ? (e.enter(a), e.consume(p), e.exit(a), e.exit(r), t) : (e.enter(i), c(p));
6071
6077
  }
6072
6078
  function c(p) {
6073
- return p === u ? (e.exit(i), l(u)) : p === null ? n(p) : go(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), Pe(e, c, "linePrefix")) : (e.enter("chunkString", {
6079
+ return p === u ? (e.exit(i), l(u)) : p === null ? n(p) : go(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), Fe(e, c, "linePrefix")) : (e.enter("chunkString", {
6074
6080
  contentType: "string"
6075
6081
  }), d(p));
6076
6082
  }
@@ -6091,7 +6097,7 @@ function ar(e, t) {
6091
6097
  let n;
6092
6098
  return r;
6093
6099
  function r(a) {
6094
- return a1(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) : i1(a) ? Pe(
6100
+ return a1(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) : i1(a) ? Fe(
6095
6101
  e,
6096
6102
  r,
6097
6103
  n ? "linePrefix" : "lineSuffix"
@@ -6152,7 +6158,7 @@ function s1(e, t, n) {
6152
6158
  return e.attempt(o1, f, f)(h);
6153
6159
  }
6154
6160
  function f(h) {
6155
- return Le(h) ? Pe(e, p, "whitespace")(h) : p(h);
6161
+ return we(h) ? Fe(e, p, "whitespace")(h) : p(h);
6156
6162
  }
6157
6163
  function p(h) {
6158
6164
  return h === null || be(h) ? (e.exit("definition"), r.parser.defined.push(a), t(h)) : n(h);
@@ -6174,7 +6180,7 @@ function l1(e, t, n) {
6174
6180
  )(s);
6175
6181
  }
6176
6182
  function i(s) {
6177
- return Le(s) ? Pe(e, u, "whitespace")(s) : u(s);
6183
+ return we(s) ? Fe(e, u, "whitespace")(s) : u(s);
6178
6184
  }
6179
6185
  function u(s) {
6180
6186
  return s === null || be(s) ? t(s) : n(s);
@@ -6229,7 +6235,7 @@ function p1(e, t, n) {
6229
6235
  return d === 35 && r++ < 6 ? (e.consume(d), u) : d === null || _t(d) ? (e.exit("atxHeadingSequence"), s(d)) : n(d);
6230
6236
  }
6231
6237
  function s(d) {
6232
- return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || be(d) ? (e.exit("atxHeading"), t(d)) : Le(d) ? Pe(e, s, "whitespace")(d) : (e.enter("atxHeadingText"), c(d));
6238
+ return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || be(d) ? (e.exit("atxHeading"), t(d)) : we(d) ? Fe(e, s, "whitespace")(d) : (e.enter("atxHeadingText"), c(d));
6233
6239
  }
6234
6240
  function l(d) {
6235
6241
  return d === 35 ? (e.consume(d), l) : (e.exit("atxHeadingSequence"), s(d));
@@ -6356,19 +6362,19 @@ function y1(e, t, n) {
6356
6362
  return x === 62 ? (e.consume(x), r.interrupt ? t : V) : n(x);
6357
6363
  }
6358
6364
  function P(x) {
6359
- return Le(x) ? (e.consume(x), P) : te(x);
6365
+ return we(x) ? (e.consume(x), P) : te(x);
6360
6366
  }
6361
6367
  function M(x) {
6362
- return x === 47 ? (e.consume(x), te) : x === 58 || x === 95 || Rt(x) ? (e.consume(x), W) : Le(x) ? (e.consume(x), M) : te(x);
6368
+ return x === 47 ? (e.consume(x), te) : x === 58 || x === 95 || Rt(x) ? (e.consume(x), W) : we(x) ? (e.consume(x), M) : te(x);
6363
6369
  }
6364
6370
  function W(x) {
6365
6371
  return x === 45 || x === 46 || x === 58 || x === 95 || xt(x) ? (e.consume(x), W) : R(x);
6366
6372
  }
6367
6373
  function R(x) {
6368
- return x === 61 ? (e.consume(x), _) : Le(x) ? (e.consume(x), R) : M(x);
6374
+ return x === 61 ? (e.consume(x), _) : we(x) ? (e.consume(x), R) : M(x);
6369
6375
  }
6370
6376
  function _(x) {
6371
- return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), l = x, N) : Le(x) ? (e.consume(x), _) : $(x);
6377
+ return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), l = x, N) : we(x) ? (e.consume(x), _) : $(x);
6372
6378
  }
6373
6379
  function N(x) {
6374
6380
  return x === l ? (e.consume(x), l = null, H) : x === null || be(x) ? n(x) : (e.consume(x), N);
@@ -6377,13 +6383,13 @@ function y1(e, t, n) {
6377
6383
  return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || _t(x) ? R(x) : (e.consume(x), $);
6378
6384
  }
6379
6385
  function H(x) {
6380
- return x === 47 || x === 62 || Le(x) ? M(x) : n(x);
6386
+ return x === 47 || x === 62 || we(x) ? M(x) : n(x);
6381
6387
  }
6382
6388
  function te(x) {
6383
6389
  return x === 62 ? (e.consume(x), Y) : n(x);
6384
6390
  }
6385
6391
  function Y(x) {
6386
- return x === null || be(x) ? V(x) : Le(x) ? (e.consume(x), Y) : n(x);
6392
+ return x === null || be(x) ? V(x) : we(x) ? (e.consume(x), Y) : n(x);
6387
6393
  }
6388
6394
  function V(x) {
6389
6395
  return x === 45 && a === 2 ? (e.consume(x), B) : x === 60 && a === 1 ? (e.consume(x), G) : x === 62 && a === 4 ? (e.consume(x), ne) : x === 63 && a === 3 ? (e.consume(x), b) : x === 93 && a === 5 ? (e.consume(x), q) : be(x) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
@@ -6505,22 +6511,22 @@ function S1(e, t, n) {
6505
6511
  return b === 45 || xt(b) ? (e.consume(b), _) : N(b);
6506
6512
  }
6507
6513
  function N(b) {
6508
- return be(b) ? (u = N, G(b)) : Le(b) ? (e.consume(b), N) : B(b);
6514
+ return be(b) ? (u = N, G(b)) : we(b) ? (e.consume(b), N) : B(b);
6509
6515
  }
6510
6516
  function $(b) {
6511
6517
  return b === 45 || xt(b) ? (e.consume(b), $) : b === 47 || b === 62 || _t(b) ? H(b) : n(b);
6512
6518
  }
6513
6519
  function H(b) {
6514
- return b === 47 ? (e.consume(b), B) : b === 58 || b === 95 || Rt(b) ? (e.consume(b), te) : be(b) ? (u = H, G(b)) : Le(b) ? (e.consume(b), H) : B(b);
6520
+ return b === 47 ? (e.consume(b), B) : b === 58 || b === 95 || Rt(b) ? (e.consume(b), te) : be(b) ? (u = H, G(b)) : we(b) ? (e.consume(b), H) : B(b);
6515
6521
  }
6516
6522
  function te(b) {
6517
6523
  return b === 45 || b === 46 || b === 58 || b === 95 || xt(b) ? (e.consume(b), te) : Y(b);
6518
6524
  }
6519
6525
  function Y(b) {
6520
- return b === 61 ? (e.consume(b), V) : be(b) ? (u = Y, G(b)) : Le(b) ? (e.consume(b), Y) : H(b);
6526
+ return b === 61 ? (e.consume(b), V) : be(b) ? (u = Y, G(b)) : we(b) ? (e.consume(b), Y) : H(b);
6521
6527
  }
6522
6528
  function V(b) {
6523
- return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), a = b, L) : be(b) ? (u = V, G(b)) : Le(b) ? (e.consume(b), V) : (e.consume(b), I);
6529
+ return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), a = b, L) : be(b) ? (u = V, G(b)) : we(b) ? (e.consume(b), V) : (e.consume(b), I);
6524
6530
  }
6525
6531
  function L(b) {
6526
6532
  return b === a ? (e.consume(b), a = void 0, w) : b === null ? n(b) : be(b) ? (u = L, G(b)) : (e.consume(b), L);
@@ -6538,7 +6544,7 @@ function S1(e, t, n) {
6538
6544
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), j;
6539
6545
  }
6540
6546
  function j(b) {
6541
- return Le(b) ? Pe(
6547
+ return we(b) ? Fe(
6542
6548
  e,
6543
6549
  q,
6544
6550
  "linePrefix",
@@ -6774,7 +6780,7 @@ const Ma = {
6774
6780
  function B1(e, t) {
6775
6781
  return n;
6776
6782
  function n(r) {
6777
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), Pe(e, t, "linePrefix");
6783
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), Fe(e, t, "linePrefix");
6778
6784
  }
6779
6785
  }
6780
6786
  const Mr = {
@@ -6794,7 +6800,7 @@ function H1(e, t, n) {
6794
6800
  return c === a ? (e.enter("thematicBreakSequence"), l(c)) : r >= 3 && (c === null || be(c)) ? (e.exit("thematicBreak"), t(c)) : n(c);
6795
6801
  }
6796
6802
  function l(c) {
6797
- return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), Le(c) ? Pe(e, s, "whitespace")(c) : s(c));
6803
+ return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), we(c) ? Fe(e, s, "whitespace")(c) : s(c));
6798
6804
  }
6799
6805
  }
6800
6806
  const ot = {
@@ -6846,7 +6852,7 @@ function q1(e, t, n) {
6846
6852
  return r.containerState.initialBlankLine = !0, i++, p(h);
6847
6853
  }
6848
6854
  function f(h) {
6849
- return Le(h) ? (e.enter("listItemPrefixWhitespace"), e.consume(h), e.exit("listItemPrefixWhitespace"), p) : n(h);
6855
+ return we(h) ? (e.enter("listItemPrefixWhitespace"), e.consume(h), e.exit("listItemPrefixWhitespace"), p) : n(h);
6850
6856
  }
6851
6857
  function p(h) {
6852
6858
  return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
@@ -6856,7 +6862,7 @@ function z1(e, t, n) {
6856
6862
  const r = this;
6857
6863
  return r.containerState._closeFlow = void 0, e.check(Jr, a, i);
6858
6864
  function a(s) {
6859
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, Pe(
6865
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, Fe(
6860
6866
  e,
6861
6867
  t,
6862
6868
  "listItemIndent",
@@ -6864,10 +6870,10 @@ function z1(e, t, n) {
6864
6870
  )(s);
6865
6871
  }
6866
6872
  function i(s) {
6867
- return r.containerState.furtherBlankLines || !Le(s) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, u(s)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(j1, t, u)(s));
6873
+ return r.containerState.furtherBlankLines || !we(s) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, u(s)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(j1, t, u)(s));
6868
6874
  }
6869
6875
  function u(s) {
6870
- return r.containerState._closeFlow = !0, r.interrupt = void 0, Pe(
6876
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, Fe(
6871
6877
  e,
6872
6878
  e.attempt(ot, t, n),
6873
6879
  "linePrefix",
@@ -6877,7 +6883,7 @@ function z1(e, t, n) {
6877
6883
  }
6878
6884
  function Y1(e, t, n) {
6879
6885
  const r = this;
6880
- return Pe(
6886
+ return Fe(
6881
6887
  e,
6882
6888
  a,
6883
6889
  "listItemIndent",
@@ -6893,7 +6899,7 @@ function $1(e) {
6893
6899
  }
6894
6900
  function V1(e, t, n) {
6895
6901
  const r = this;
6896
- return Pe(
6902
+ return Fe(
6897
6903
  e,
6898
6904
  a,
6899
6905
  "listItemPrefixWhitespace",
@@ -6901,7 +6907,7 @@ function V1(e, t, n) {
6901
6907
  );
6902
6908
  function a(i) {
6903
6909
  const u = r.events[r.events.length - 1];
6904
- return !Le(i) && u && u[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
6910
+ return !we(i) && u && u[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
6905
6911
  }
6906
6912
  }
6907
6913
  const Eo = {
@@ -6944,7 +6950,7 @@ function G1(e, t, n) {
6944
6950
  return e.enter("setextHeadingLineSequence"), s(c);
6945
6951
  }
6946
6952
  function s(c) {
6947
- return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), Le(c) ? Pe(e, l, "lineSuffix")(c) : l(c));
6953
+ return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), we(c) ? Fe(e, l, "lineSuffix")(c) : l(c));
6948
6954
  }
6949
6955
  function l(c) {
6950
6956
  return c === null || be(c) ? (e.exit("setextHeadingLine"), t(c)) : n(c);
@@ -6962,7 +6968,7 @@ function K1(e) {
6962
6968
  e.attempt(
6963
6969
  this.parser.constructs.flowInitial,
6964
6970
  a,
6965
- Pe(
6971
+ Fe(
6966
6972
  e,
6967
6973
  e.attempt(
6968
6974
  this.parser.constructs.flow,
@@ -7183,13 +7189,13 @@ function tm(e, t, n) {
7183
7189
  function ne(me) {
7184
7190
  return Ae;
7185
7191
  function Ae(xe) {
7186
- const Ue = xe !== null && me[xe], ve = xe !== null && me.null, Ze = [
7192
+ const je = xe !== null && me[xe], ve = xe !== null && me.null, Je = [
7187
7193
  // To do: add more extension tests.
7188
7194
  /* c8 ignore next 2 */
7189
- ...Array.isArray(Ue) ? Ue : Ue ? [Ue] : [],
7195
+ ...Array.isArray(je) ? je : je ? [je] : [],
7190
7196
  ...Array.isArray(ve) ? ve : ve ? [ve] : []
7191
7197
  ];
7192
- return le(Ze)(xe);
7198
+ return le(Je)(xe);
7193
7199
  }
7194
7200
  }
7195
7201
  function le(me) {
@@ -7475,7 +7481,7 @@ function _m(e) {
7475
7481
  autolinkProtocol: Y,
7476
7482
  autolinkEmail: Y,
7477
7483
  atxHeading: s(Jt),
7478
- blockQuote: s(Ze),
7484
+ blockQuote: s(Je),
7479
7485
  characterEscape: Y,
7480
7486
  characterReference: Y,
7481
7487
  codeFenced: s(ft),
@@ -7518,7 +7524,7 @@ function _m(e) {
7518
7524
  atxHeadingSequence: N,
7519
7525
  autolink: d(),
7520
7526
  autolinkEmail: ve,
7521
- autolinkProtocol: Ue,
7527
+ autolinkProtocol: je,
7522
7528
  blockQuote: d(),
7523
7529
  characterEscapeValue: V,
7524
7530
  characterReferenceMarkerHexadecimal: Ae,
@@ -7589,12 +7595,12 @@ function _m(e) {
7589
7595
  if (F[pe][0] === "enter")
7590
7596
  ue.push(pe);
7591
7597
  else {
7592
- const Me = ue.pop();
7593
- pe = a(F, Me, pe);
7598
+ const Re = ue.pop();
7599
+ pe = a(F, Re, pe);
7594
7600
  }
7595
7601
  for (pe = -1; ++pe < F.length; ) {
7596
- const Me = t[F[pe][0]];
7597
- Ll.call(Me, F[pe][1].type) && Me[F[pe][1].type].call(
7602
+ const Re = t[F[pe][0]];
7603
+ Ll.call(Re, F[pe][1].type) && Re[F[pe][1].type].call(
7598
7604
  Object.assign(
7599
7605
  {
7600
7606
  sliceSerialize: F[pe][2].sliceSerialize
@@ -7605,8 +7611,8 @@ function _m(e) {
7605
7611
  );
7606
7612
  }
7607
7613
  if (re.tokenStack.length > 0) {
7608
- const Me = re.tokenStack[re.tokenStack.length - 1];
7609
- (Me[1] || yo).call(re, void 0, Me[0]);
7614
+ const Re = re.tokenStack[re.tokenStack.length - 1];
7615
+ (Re[1] || yo).call(re, void 0, Re[0]);
7610
7616
  }
7611
7617
  for (X.position = {
7612
7618
  start: Wt(
@@ -7628,34 +7634,34 @@ function _m(e) {
7628
7634
  return X;
7629
7635
  }
7630
7636
  function a(F, X, re) {
7631
- let ue = X - 1, pe = -1, Me = !1, at, je, Je, it;
7637
+ let ue = X - 1, pe = -1, Re = !1, Ke, ke, et, it;
7632
7638
  for (; ++ue <= re; ) {
7633
7639
  const Oe = F[ue];
7634
- if (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered" || Oe[1].type === "blockQuote" ? (Oe[0] === "enter" ? pe++ : pe--, it = void 0) : Oe[1].type === "lineEndingBlank" ? Oe[0] === "enter" && (at && !it && !pe && !Je && (Je = ue), it = void 0) : Oe[1].type === "linePrefix" || Oe[1].type === "listItemValue" || Oe[1].type === "listItemMarker" || Oe[1].type === "listItemPrefix" || Oe[1].type === "listItemPrefixWhitespace" || (it = void 0), !pe && Oe[0] === "enter" && Oe[1].type === "listItemPrefix" || pe === -1 && Oe[0] === "exit" && (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered")) {
7635
- if (at) {
7636
- let nt = ue;
7637
- for (je = void 0; nt--; ) {
7638
- const ze = F[nt];
7640
+ if (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered" || Oe[1].type === "blockQuote" ? (Oe[0] === "enter" ? pe++ : pe--, it = void 0) : Oe[1].type === "lineEndingBlank" ? Oe[0] === "enter" && (Ke && !it && !pe && !et && (et = ue), it = void 0) : Oe[1].type === "linePrefix" || Oe[1].type === "listItemValue" || Oe[1].type === "listItemMarker" || Oe[1].type === "listItemPrefix" || Oe[1].type === "listItemPrefixWhitespace" || (it = void 0), !pe && Oe[0] === "enter" && Oe[1].type === "listItemPrefix" || pe === -1 && Oe[0] === "exit" && (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered")) {
7641
+ if (Ke) {
7642
+ let rt = ue;
7643
+ for (ke = void 0; rt--; ) {
7644
+ const ze = F[rt];
7639
7645
  if (ze[1].type === "lineEnding" || ze[1].type === "lineEndingBlank") {
7640
7646
  if (ze[0] === "exit") continue;
7641
- je && (F[je][1].type = "lineEndingBlank", Me = !0), ze[1].type = "lineEnding", je = nt;
7647
+ ke && (F[ke][1].type = "lineEndingBlank", Re = !0), ze[1].type = "lineEnding", ke = rt;
7642
7648
  } else if (!(ze[1].type === "linePrefix" || ze[1].type === "blockQuotePrefix" || ze[1].type === "blockQuotePrefixWhitespace" || ze[1].type === "blockQuoteMarker" || ze[1].type === "listItemIndent")) break;
7643
7649
  }
7644
- Je && (!je || Je < je) && (at._spread = !0), at.end = Object.assign(
7650
+ et && (!ke || et < ke) && (Ke._spread = !0), Ke.end = Object.assign(
7645
7651
  {},
7646
- je ? F[je][1].start : Oe[1].end
7647
- ), F.splice(je || ue, 0, ["exit", at, Oe[2]]), ue++, re++;
7652
+ ke ? F[ke][1].start : Oe[1].end
7653
+ ), F.splice(ke || ue, 0, ["exit", Ke, Oe[2]]), ue++, re++;
7648
7654
  }
7649
- Oe[1].type === "listItemPrefix" && (at = {
7655
+ Oe[1].type === "listItemPrefix" && (Ke = {
7650
7656
  type: "listItem",
7651
7657
  _spread: !1,
7652
7658
  start: Object.assign({}, Oe[1].start),
7653
7659
  // @ts-expect-error: we’ll add `end` in a second.
7654
7660
  end: void 0
7655
- }, F.splice(ue, 0, ["enter", at, Oe[2]]), ue++, re++, Je = void 0, it = !0);
7661
+ }, F.splice(ue, 0, ["enter", Ke, Oe[2]]), ue++, re++, et = void 0, it = !0);
7656
7662
  }
7657
7663
  }
7658
- return F[X][1]._spread = Me, re;
7664
+ return F[X][1]._spread = Re, re;
7659
7665
  }
7660
7666
  function i(F, X) {
7661
7667
  n[F] = X;
@@ -7858,7 +7864,7 @@ function _m(e) {
7858
7864
  const pe = this.stack.pop();
7859
7865
  pe.value += ue, pe.position.end = Wt(F.end);
7860
7866
  }
7861
- function Ue(F) {
7867
+ function je(F) {
7862
7868
  V.call(this, F);
7863
7869
  const X = this.stack[this.stack.length - 1];
7864
7870
  X.url = this.sliceSerialize(F);
@@ -7868,7 +7874,7 @@ function _m(e) {
7868
7874
  const X = this.stack[this.stack.length - 1];
7869
7875
  X.url = "mailto:" + this.sliceSerialize(F);
7870
7876
  }
7871
- function Ze() {
7877
+ function Je() {
7872
7878
  return {
7873
7879
  type: "blockquote",
7874
7880
  children: []
@@ -8847,7 +8853,7 @@ At.prototype.commaOrSpaceSeparated = !1;
8847
8853
  At.prototype.mustUseProperty = !1;
8848
8854
  At.prototype.defined = !1;
8849
8855
  let b2 = 0;
8850
- const de = hn(), Ve = hn(), jl = hn(), Z = hn(), we = hn(), On = hn(), mt = hn();
8856
+ const de = hn(), Ve = hn(), jl = hn(), Z = hn(), De = hn(), On = hn(), mt = hn();
8851
8857
  function hn() {
8852
8858
  return 2 ** ++b2;
8853
8859
  }
@@ -8859,7 +8865,7 @@ const hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8859
8865
  commaSeparated: On,
8860
8866
  number: Z,
8861
8867
  overloadedBoolean: jl,
8862
- spaceSeparated: we
8868
+ spaceSeparated: De
8863
8869
  }, Symbol.toStringTag, { value: "Module" })), Fa = Object.keys(hi);
8864
8870
  let Ui = class extends At {
8865
8871
  /**
@@ -8943,36 +8949,36 @@ const Vl = Dn({
8943
8949
  ariaColCount: Z,
8944
8950
  ariaColIndex: Z,
8945
8951
  ariaColSpan: Z,
8946
- ariaControls: we,
8952
+ ariaControls: De,
8947
8953
  ariaCurrent: null,
8948
- ariaDescribedBy: we,
8954
+ ariaDescribedBy: De,
8949
8955
  ariaDetails: null,
8950
8956
  ariaDisabled: Ve,
8951
- ariaDropEffect: we,
8957
+ ariaDropEffect: De,
8952
8958
  ariaErrorMessage: null,
8953
8959
  ariaExpanded: Ve,
8954
- ariaFlowTo: we,
8960
+ ariaFlowTo: De,
8955
8961
  ariaGrabbed: Ve,
8956
8962
  ariaHasPopup: null,
8957
8963
  ariaHidden: Ve,
8958
8964
  ariaInvalid: null,
8959
8965
  ariaKeyShortcuts: null,
8960
8966
  ariaLabel: null,
8961
- ariaLabelledBy: we,
8967
+ ariaLabelledBy: De,
8962
8968
  ariaLevel: Z,
8963
8969
  ariaLive: null,
8964
8970
  ariaModal: Ve,
8965
8971
  ariaMultiLine: Ve,
8966
8972
  ariaMultiSelectable: Ve,
8967
8973
  ariaOrientation: null,
8968
- ariaOwns: we,
8974
+ ariaOwns: De,
8969
8975
  ariaPlaceholder: null,
8970
8976
  ariaPosInSet: Z,
8971
8977
  ariaPressed: Ve,
8972
8978
  ariaReadOnly: Ve,
8973
8979
  ariaRelevant: null,
8974
8980
  ariaRequired: Ve,
8975
- ariaRoleDescription: we,
8981
+ ariaRoleDescription: De,
8976
8982
  ariaRowCount: Z,
8977
8983
  ariaRowIndex: Z,
8978
8984
  ariaRowSpan: Z,
@@ -8999,8 +9005,8 @@ const Vl = Dn({
8999
9005
  // Standard Properties.
9000
9006
  abbr: null,
9001
9007
  accept: On,
9002
- acceptCharset: we,
9003
- accessKey: we,
9008
+ acceptCharset: De,
9009
+ accessKey: De,
9004
9010
  action: null,
9005
9011
  allow: null,
9006
9012
  allowFullScreen: de,
@@ -9010,21 +9016,21 @@ const Vl = Dn({
9010
9016
  as: null,
9011
9017
  async: de,
9012
9018
  autoCapitalize: null,
9013
- autoComplete: we,
9019
+ autoComplete: De,
9014
9020
  autoFocus: de,
9015
9021
  autoPlay: de,
9016
- blocking: we,
9022
+ blocking: De,
9017
9023
  capture: null,
9018
9024
  charSet: null,
9019
9025
  checked: de,
9020
9026
  cite: null,
9021
- className: we,
9027
+ className: De,
9022
9028
  cols: Z,
9023
9029
  colSpan: null,
9024
9030
  content: null,
9025
9031
  contentEditable: Ve,
9026
9032
  controls: de,
9027
- controlsList: we,
9033
+ controlsList: De,
9028
9034
  coords: Z | On,
9029
9035
  crossOrigin: null,
9030
9036
  data: null,
@@ -9046,14 +9052,14 @@ const Vl = Dn({
9046
9052
  formMethod: null,
9047
9053
  formNoValidate: de,
9048
9054
  formTarget: null,
9049
- headers: we,
9055
+ headers: De,
9050
9056
  height: Z,
9051
9057
  hidden: de,
9052
9058
  high: Z,
9053
9059
  href: null,
9054
9060
  hrefLang: null,
9055
- htmlFor: we,
9056
- httpEquiv: we,
9061
+ htmlFor: De,
9062
+ httpEquiv: De,
9057
9063
  id: null,
9058
9064
  imageSizes: null,
9059
9065
  imageSrcSet: null,
@@ -9063,10 +9069,10 @@ const Vl = Dn({
9063
9069
  is: null,
9064
9070
  isMap: de,
9065
9071
  itemId: null,
9066
- itemProp: we,
9067
- itemRef: we,
9072
+ itemProp: De,
9073
+ itemRef: De,
9068
9074
  itemScope: de,
9069
- itemType: we,
9075
+ itemType: De,
9070
9076
  kind: null,
9071
9077
  label: null,
9072
9078
  lang: null,
@@ -9179,7 +9185,7 @@ const Vl = Dn({
9179
9185
  open: de,
9180
9186
  optimum: Z,
9181
9187
  pattern: null,
9182
- ping: we,
9188
+ ping: De,
9183
9189
  placeholder: null,
9184
9190
  playsInline: de,
9185
9191
  popover: null,
@@ -9189,12 +9195,12 @@ const Vl = Dn({
9189
9195
  preload: null,
9190
9196
  readOnly: de,
9191
9197
  referrerPolicy: null,
9192
- rel: we,
9198
+ rel: De,
9193
9199
  required: de,
9194
9200
  reversed: de,
9195
9201
  rows: Z,
9196
9202
  rowSpan: Z,
9197
- sandbox: we,
9203
+ sandbox: De,
9198
9204
  scope: null,
9199
9205
  scoped: de,
9200
9206
  seamless: de,
@@ -9232,7 +9238,7 @@ const Vl = Dn({
9232
9238
  // Several. Use CSS `text-align` instead,
9233
9239
  aLink: null,
9234
9240
  // `<body>`. Use CSS `a:active {color}` instead
9235
- archive: we,
9241
+ archive: De,
9236
9242
  // `<object>`. List of URIs to archives
9237
9243
  axis: null,
9238
9244
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -9547,7 +9553,7 @@ const Vl = Dn({
9547
9553
  by: null,
9548
9554
  calcMode: null,
9549
9555
  capHeight: Z,
9550
- className: we,
9556
+ className: De,
9551
9557
  clip: null,
9552
9558
  clipPath: null,
9553
9559
  clipPathUnits: null,
@@ -9782,7 +9788,7 @@ const Vl = Dn({
9782
9788
  patternTransform: null,
9783
9789
  patternUnits: null,
9784
9790
  phase: null,
9785
- ping: we,
9791
+ ping: De,
9786
9792
  pitch: null,
9787
9793
  playbackOrder: null,
9788
9794
  pointerEvents: null,
@@ -10604,7 +10610,7 @@ ct.prototype.property = "";
10604
10610
  ct.prototype.spaceSeparated = !1;
10605
10611
  ct.prototype.space = void 0;
10606
10612
  let W2 = 0;
10607
- const fe = pn(), We = pn(), mi = pn(), J = pn(), Re = pn(), In = pn(), gt = pn();
10613
+ const fe = pn(), We = pn(), mi = pn(), J = pn(), Pe = pn(), In = pn(), gt = pn();
10608
10614
  function pn() {
10609
10615
  return 2 ** ++W2;
10610
10616
  }
@@ -10616,7 +10622,7 @@ const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10616
10622
  commaSeparated: In,
10617
10623
  number: J,
10618
10624
  overloadedBoolean: mi,
10619
- spaceSeparated: Re
10625
+ spaceSeparated: Pe
10620
10626
  }, Symbol.toStringTag, { value: "Module" })), ja = (
10621
10627
  /** @type {ReadonlyArray<keyof typeof types>} */
10622
10628
  Object.keys(gi)
@@ -10671,36 +10677,36 @@ const rc = Pn({
10671
10677
  ariaColCount: J,
10672
10678
  ariaColIndex: J,
10673
10679
  ariaColSpan: J,
10674
- ariaControls: Re,
10680
+ ariaControls: Pe,
10675
10681
  ariaCurrent: null,
10676
- ariaDescribedBy: Re,
10682
+ ariaDescribedBy: Pe,
10677
10683
  ariaDetails: null,
10678
10684
  ariaDisabled: We,
10679
- ariaDropEffect: Re,
10685
+ ariaDropEffect: Pe,
10680
10686
  ariaErrorMessage: null,
10681
10687
  ariaExpanded: We,
10682
- ariaFlowTo: Re,
10688
+ ariaFlowTo: Pe,
10683
10689
  ariaGrabbed: We,
10684
10690
  ariaHasPopup: null,
10685
10691
  ariaHidden: We,
10686
10692
  ariaInvalid: null,
10687
10693
  ariaKeyShortcuts: null,
10688
10694
  ariaLabel: null,
10689
- ariaLabelledBy: Re,
10695
+ ariaLabelledBy: Pe,
10690
10696
  ariaLevel: J,
10691
10697
  ariaLive: null,
10692
10698
  ariaModal: We,
10693
10699
  ariaMultiLine: We,
10694
10700
  ariaMultiSelectable: We,
10695
10701
  ariaOrientation: null,
10696
- ariaOwns: Re,
10702
+ ariaOwns: Pe,
10697
10703
  ariaPlaceholder: null,
10698
10704
  ariaPosInSet: J,
10699
10705
  ariaPressed: We,
10700
10706
  ariaReadOnly: We,
10701
10707
  ariaRelevant: null,
10702
10708
  ariaRequired: We,
10703
- ariaRoleDescription: Re,
10709
+ ariaRoleDescription: Pe,
10704
10710
  ariaRowCount: J,
10705
10711
  ariaRowIndex: J,
10706
10712
  ariaRowSpan: J,
@@ -10735,8 +10741,8 @@ const G2 = Pn({
10735
10741
  // Standard Properties.
10736
10742
  abbr: null,
10737
10743
  accept: In,
10738
- acceptCharset: Re,
10739
- accessKey: Re,
10744
+ acceptCharset: Pe,
10745
+ accessKey: Pe,
10740
10746
  action: null,
10741
10747
  allow: null,
10742
10748
  allowFullScreen: fe,
@@ -10746,21 +10752,21 @@ const G2 = Pn({
10746
10752
  as: null,
10747
10753
  async: fe,
10748
10754
  autoCapitalize: null,
10749
- autoComplete: Re,
10755
+ autoComplete: Pe,
10750
10756
  autoFocus: fe,
10751
10757
  autoPlay: fe,
10752
- blocking: Re,
10758
+ blocking: Pe,
10753
10759
  capture: null,
10754
10760
  charSet: null,
10755
10761
  checked: fe,
10756
10762
  cite: null,
10757
- className: Re,
10763
+ className: Pe,
10758
10764
  cols: J,
10759
10765
  colSpan: null,
10760
10766
  content: null,
10761
10767
  contentEditable: We,
10762
10768
  controls: fe,
10763
- controlsList: Re,
10769
+ controlsList: Pe,
10764
10770
  coords: J | In,
10765
10771
  crossOrigin: null,
10766
10772
  data: null,
@@ -10782,14 +10788,14 @@ const G2 = Pn({
10782
10788
  formMethod: null,
10783
10789
  formNoValidate: fe,
10784
10790
  formTarget: null,
10785
- headers: Re,
10791
+ headers: Pe,
10786
10792
  height: J,
10787
10793
  hidden: mi,
10788
10794
  high: J,
10789
10795
  href: null,
10790
10796
  hrefLang: null,
10791
- htmlFor: Re,
10792
- httpEquiv: Re,
10797
+ htmlFor: Pe,
10798
+ httpEquiv: Pe,
10793
10799
  id: null,
10794
10800
  imageSizes: null,
10795
10801
  imageSrcSet: null,
@@ -10799,10 +10805,10 @@ const G2 = Pn({
10799
10805
  is: null,
10800
10806
  isMap: fe,
10801
10807
  itemId: null,
10802
- itemProp: Re,
10803
- itemRef: Re,
10808
+ itemProp: Pe,
10809
+ itemRef: Pe,
10804
10810
  itemScope: fe,
10805
- itemType: Re,
10811
+ itemType: Pe,
10806
10812
  kind: null,
10807
10813
  label: null,
10808
10814
  lang: null,
@@ -10915,7 +10921,7 @@ const G2 = Pn({
10915
10921
  open: fe,
10916
10922
  optimum: J,
10917
10923
  pattern: null,
10918
- ping: Re,
10924
+ ping: Pe,
10919
10925
  placeholder: null,
10920
10926
  playsInline: fe,
10921
10927
  popover: null,
@@ -10925,12 +10931,12 @@ const G2 = Pn({
10925
10931
  preload: null,
10926
10932
  readOnly: fe,
10927
10933
  referrerPolicy: null,
10928
- rel: Re,
10934
+ rel: Pe,
10929
10935
  required: fe,
10930
10936
  reversed: fe,
10931
10937
  rows: J,
10932
10938
  rowSpan: J,
10933
- sandbox: Re,
10939
+ sandbox: Pe,
10934
10940
  scope: null,
10935
10941
  scoped: fe,
10936
10942
  seamless: fe,
@@ -10968,7 +10974,7 @@ const G2 = Pn({
10968
10974
  // Several. Use CSS `text-align` instead,
10969
10975
  aLink: null,
10970
10976
  // `<body>`. Use CSS `a:active {color}` instead
10971
- archive: Re,
10977
+ archive: Pe,
10972
10978
  // `<object>`. List of URIs to archives
10973
10979
  axis: null,
10974
10980
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -11283,7 +11289,7 @@ const G2 = Pn({
11283
11289
  by: null,
11284
11290
  calcMode: null,
11285
11291
  capHeight: J,
11286
- className: Re,
11292
+ className: Pe,
11287
11293
  clip: null,
11288
11294
  clipPath: null,
11289
11295
  clipPathUnits: null,
@@ -11518,7 +11524,7 @@ const G2 = Pn({
11518
11524
  patternTransform: null,
11519
11525
  patternUnits: null,
11520
11526
  phase: null,
11521
- ping: Re,
11527
+ ping: Pe,
11522
11528
  pitch: null,
11523
11529
  playbackOrder: null,
11524
11530
  pointerEvents: null,
@@ -11910,7 +11916,7 @@ dt.prototype.property = "";
11910
11916
  dt.prototype.spaceSeparated = !1;
11911
11917
  dt.prototype.space = void 0;
11912
11918
  let dg = 0;
11913
- const he = mn(), Ge = mn(), Ti = mn(), ee = mn(), De = mn(), Nn = mn(), bt = mn();
11919
+ const he = mn(), Ge = mn(), Ti = mn(), ee = mn(), Me = mn(), Nn = mn(), bt = mn();
11914
11920
  function mn() {
11915
11921
  return 2 ** ++dg;
11916
11922
  }
@@ -11922,7 +11928,7 @@ const yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11922
11928
  commaSeparated: Nn,
11923
11929
  number: ee,
11924
11930
  overloadedBoolean: Ti,
11925
- spaceSeparated: De
11931
+ spaceSeparated: Me
11926
11932
  }, Symbol.toStringTag, { value: "Module" })), qa = (
11927
11933
  /** @type {ReadonlyArray<keyof typeof types>} */
11928
11934
  Object.keys(yi)
@@ -11977,36 +11983,36 @@ const dc = Mn({
11977
11983
  ariaColCount: ee,
11978
11984
  ariaColIndex: ee,
11979
11985
  ariaColSpan: ee,
11980
- ariaControls: De,
11986
+ ariaControls: Me,
11981
11987
  ariaCurrent: null,
11982
- ariaDescribedBy: De,
11988
+ ariaDescribedBy: Me,
11983
11989
  ariaDetails: null,
11984
11990
  ariaDisabled: Ge,
11985
- ariaDropEffect: De,
11991
+ ariaDropEffect: Me,
11986
11992
  ariaErrorMessage: null,
11987
11993
  ariaExpanded: Ge,
11988
- ariaFlowTo: De,
11994
+ ariaFlowTo: Me,
11989
11995
  ariaGrabbed: Ge,
11990
11996
  ariaHasPopup: null,
11991
11997
  ariaHidden: Ge,
11992
11998
  ariaInvalid: null,
11993
11999
  ariaKeyShortcuts: null,
11994
12000
  ariaLabel: null,
11995
- ariaLabelledBy: De,
12001
+ ariaLabelledBy: Me,
11996
12002
  ariaLevel: ee,
11997
12003
  ariaLive: null,
11998
12004
  ariaModal: Ge,
11999
12005
  ariaMultiLine: Ge,
12000
12006
  ariaMultiSelectable: Ge,
12001
12007
  ariaOrientation: null,
12002
- ariaOwns: De,
12008
+ ariaOwns: Me,
12003
12009
  ariaPlaceholder: null,
12004
12010
  ariaPosInSet: ee,
12005
12011
  ariaPressed: Ge,
12006
12012
  ariaReadOnly: Ge,
12007
12013
  ariaRelevant: null,
12008
12014
  ariaRequired: Ge,
12009
- ariaRoleDescription: De,
12015
+ ariaRoleDescription: Me,
12010
12016
  ariaRowCount: ee,
12011
12017
  ariaRowIndex: ee,
12012
12018
  ariaRowSpan: ee,
@@ -12041,8 +12047,8 @@ const fg = Mn({
12041
12047
  // Standard Properties.
12042
12048
  abbr: null,
12043
12049
  accept: Nn,
12044
- acceptCharset: De,
12045
- accessKey: De,
12050
+ acceptCharset: Me,
12051
+ accessKey: Me,
12046
12052
  action: null,
12047
12053
  allow: null,
12048
12054
  allowFullScreen: he,
@@ -12052,21 +12058,21 @@ const fg = Mn({
12052
12058
  as: null,
12053
12059
  async: he,
12054
12060
  autoCapitalize: null,
12055
- autoComplete: De,
12061
+ autoComplete: Me,
12056
12062
  autoFocus: he,
12057
12063
  autoPlay: he,
12058
- blocking: De,
12064
+ blocking: Me,
12059
12065
  capture: null,
12060
12066
  charSet: null,
12061
12067
  checked: he,
12062
12068
  cite: null,
12063
- className: De,
12069
+ className: Me,
12064
12070
  cols: ee,
12065
12071
  colSpan: null,
12066
12072
  content: null,
12067
12073
  contentEditable: Ge,
12068
12074
  controls: he,
12069
- controlsList: De,
12075
+ controlsList: Me,
12070
12076
  coords: ee | Nn,
12071
12077
  crossOrigin: null,
12072
12078
  data: null,
@@ -12088,14 +12094,14 @@ const fg = Mn({
12088
12094
  formMethod: null,
12089
12095
  formNoValidate: he,
12090
12096
  formTarget: null,
12091
- headers: De,
12097
+ headers: Me,
12092
12098
  height: ee,
12093
12099
  hidden: Ti,
12094
12100
  high: ee,
12095
12101
  href: null,
12096
12102
  hrefLang: null,
12097
- htmlFor: De,
12098
- httpEquiv: De,
12103
+ htmlFor: Me,
12104
+ httpEquiv: Me,
12099
12105
  id: null,
12100
12106
  imageSizes: null,
12101
12107
  imageSrcSet: null,
@@ -12105,10 +12111,10 @@ const fg = Mn({
12105
12111
  is: null,
12106
12112
  isMap: he,
12107
12113
  itemId: null,
12108
- itemProp: De,
12109
- itemRef: De,
12114
+ itemProp: Me,
12115
+ itemRef: Me,
12110
12116
  itemScope: he,
12111
- itemType: De,
12117
+ itemType: Me,
12112
12118
  kind: null,
12113
12119
  label: null,
12114
12120
  lang: null,
@@ -12221,7 +12227,7 @@ const fg = Mn({
12221
12227
  open: he,
12222
12228
  optimum: ee,
12223
12229
  pattern: null,
12224
- ping: De,
12230
+ ping: Me,
12225
12231
  placeholder: null,
12226
12232
  playsInline: he,
12227
12233
  popover: null,
@@ -12231,12 +12237,12 @@ const fg = Mn({
12231
12237
  preload: null,
12232
12238
  readOnly: he,
12233
12239
  referrerPolicy: null,
12234
- rel: De,
12240
+ rel: Me,
12235
12241
  required: he,
12236
12242
  reversed: he,
12237
12243
  rows: ee,
12238
12244
  rowSpan: ee,
12239
- sandbox: De,
12245
+ sandbox: Me,
12240
12246
  scope: null,
12241
12247
  scoped: he,
12242
12248
  seamless: he,
@@ -12274,7 +12280,7 @@ const fg = Mn({
12274
12280
  // Several. Use CSS `text-align` instead,
12275
12281
  aLink: null,
12276
12282
  // `<body>`. Use CSS `a:active {color}` instead
12277
- archive: De,
12283
+ archive: Me,
12278
12284
  // `<object>`. List of URIs to archives
12279
12285
  axis: null,
12280
12286
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -12589,7 +12595,7 @@ const fg = Mn({
12589
12595
  by: null,
12590
12596
  calcMode: null,
12591
12597
  capHeight: ee,
12592
- className: De,
12598
+ className: Me,
12593
12599
  clip: null,
12594
12600
  clipPath: null,
12595
12601
  clipPathUnits: null,
@@ -12824,7 +12830,7 @@ const fg = Mn({
12824
12830
  patternTransform: null,
12825
12831
  patternUnits: null,
12826
12832
  phase: null,
12827
- ping: De,
12833
+ ping: Me,
12828
12834
  pitch: null,
12829
12835
  playbackOrder: null,
12830
12836
  pointerEvents: null,
@@ -13363,7 +13369,7 @@ const Dg = [
13363
13369
  1048575,
13364
13370
  1114110,
13365
13371
  1114111
13366
- ]), He = "�";
13372
+ ]), Ue = "�";
13367
13373
  var T;
13368
13374
  (function(e) {
13369
13375
  e[e.EOF = -1] = "EOF", e[e.NULL = 0] = "NULL", e[e.TABULATION = 9] = "TABULATION", e[e.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", e[e.LINE_FEED = 10] = "LINE_FEED", e[e.FORM_FEED = 12] = "FORM_FEED", e[e.SPACE = 32] = "SPACE", e[e.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", e[e.QUOTATION_MARK = 34] = "QUOTATION_MARK", e[e.AMPERSAND = 38] = "AMPERSAND", e[e.APOSTROPHE = 39] = "APOSTROPHE", e[e.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", e[e.SOLIDUS = 47] = "SOLIDUS", e[e.DIGIT_0 = 48] = "DIGIT_0", e[e.DIGIT_9 = 57] = "DIGIT_9", e[e.SEMICOLON = 59] = "SEMICOLON", e[e.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", e[e.EQUALS_SIGN = 61] = "EQUALS_SIGN", e[e.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", e[e.QUESTION_MARK = 63] = "QUESTION_MARK", e[e.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", e[e.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", e[e.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", e[e.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", e[e.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", e[e.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z";
@@ -13526,42 +13532,42 @@ function qg(e) {
13526
13532
  var t;
13527
13533
  return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (t = jg.get(e)) !== null && t !== void 0 ? t : e;
13528
13534
  }
13529
- var Qe;
13535
+ var Ze;
13530
13536
  (function(e) {
13531
13537
  e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
13532
- })(Qe || (Qe = {}));
13538
+ })(Ze || (Ze = {}));
13533
13539
  const zg = 32;
13534
13540
  var Qt;
13535
13541
  (function(e) {
13536
13542
  e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
13537
13543
  })(Qt || (Qt = {}));
13538
13544
  function _i(e) {
13539
- return e >= Qe.ZERO && e <= Qe.NINE;
13545
+ return e >= Ze.ZERO && e <= Ze.NINE;
13540
13546
  }
13541
13547
  function Yg(e) {
13542
- return e >= Qe.UPPER_A && e <= Qe.UPPER_F || e >= Qe.LOWER_A && e <= Qe.LOWER_F;
13548
+ return e >= Ze.UPPER_A && e <= Ze.UPPER_F || e >= Ze.LOWER_A && e <= Ze.LOWER_F;
13543
13549
  }
13544
13550
  function $g(e) {
13545
- return e >= Qe.UPPER_A && e <= Qe.UPPER_Z || e >= Qe.LOWER_A && e <= Qe.LOWER_Z || _i(e);
13551
+ return e >= Ze.UPPER_A && e <= Ze.UPPER_Z || e >= Ze.LOWER_A && e <= Ze.LOWER_Z || _i(e);
13546
13552
  }
13547
13553
  function Vg(e) {
13548
- return e === Qe.EQUALS || $g(e);
13554
+ return e === Ze.EQUALS || $g(e);
13549
13555
  }
13550
- var Ke;
13556
+ var Qe;
13551
13557
  (function(e) {
13552
13558
  e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
13553
- })(Ke || (Ke = {}));
13559
+ })(Qe || (Qe = {}));
13554
13560
  var Yt;
13555
13561
  (function(e) {
13556
13562
  e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
13557
13563
  })(Yt || (Yt = {}));
13558
13564
  class Wg {
13559
13565
  constructor(t, n, r) {
13560
- this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Ke.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Yt.Strict;
13566
+ this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Qe.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Yt.Strict;
13561
13567
  }
13562
13568
  /** Resets the instance to make it reusable. */
13563
13569
  startEntity(t) {
13564
- this.decodeMode = t, this.state = Ke.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
13570
+ this.decodeMode = t, this.state = Qe.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
13565
13571
  }
13566
13572
  /**
13567
13573
  * Write an entity to the decoder. This can be called multiple times with partial entities.
@@ -13576,15 +13582,15 @@ class Wg {
13576
13582
  */
13577
13583
  write(t, n) {
13578
13584
  switch (this.state) {
13579
- case Ke.EntityStart:
13580
- return t.charCodeAt(n) === Qe.NUM ? (this.state = Ke.NumericStart, this.consumed += 1, this.stateNumericStart(t, n + 1)) : (this.state = Ke.NamedEntity, this.stateNamedEntity(t, n));
13581
- case Ke.NumericStart:
13585
+ case Qe.EntityStart:
13586
+ return t.charCodeAt(n) === Ze.NUM ? (this.state = Qe.NumericStart, this.consumed += 1, this.stateNumericStart(t, n + 1)) : (this.state = Qe.NamedEntity, this.stateNamedEntity(t, n));
13587
+ case Qe.NumericStart:
13582
13588
  return this.stateNumericStart(t, n);
13583
- case Ke.NumericDecimal:
13589
+ case Qe.NumericDecimal:
13584
13590
  return this.stateNumericDecimal(t, n);
13585
- case Ke.NumericHex:
13591
+ case Qe.NumericHex:
13586
13592
  return this.stateNumericHex(t, n);
13587
- case Ke.NamedEntity:
13593
+ case Qe.NamedEntity:
13588
13594
  return this.stateNamedEntity(t, n);
13589
13595
  }
13590
13596
  }
@@ -13598,7 +13604,7 @@ class Wg {
13598
13604
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
13599
13605
  */
13600
13606
  stateNumericStart(t, n) {
13601
- return n >= t.length ? -1 : (t.charCodeAt(n) | zg) === Qe.LOWER_X ? (this.state = Ke.NumericHex, this.consumed += 1, this.stateNumericHex(t, n + 1)) : (this.state = Ke.NumericDecimal, this.stateNumericDecimal(t, n));
13607
+ return n >= t.length ? -1 : (t.charCodeAt(n) | zg) === Ze.LOWER_X ? (this.state = Qe.NumericHex, this.consumed += 1, this.stateNumericHex(t, n + 1)) : (this.state = Qe.NumericDecimal, this.stateNumericDecimal(t, n));
13602
13608
  }
13603
13609
  addToNumericResult(t, n, r, a) {
13604
13610
  if (n !== r) {
@@ -13663,11 +13669,11 @@ class Wg {
13663
13669
  var r;
13664
13670
  if (this.consumed <= n)
13665
13671
  return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
13666
- if (t === Qe.SEMI)
13672
+ if (t === Ze.SEMI)
13667
13673
  this.consumed += 1;
13668
13674
  else if (this.decodeMode === Yt.Strict)
13669
13675
  return 0;
13670
- return this.emitCodePoint(qg(this.result), this.consumed), this.errors && (t !== Qe.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
13676
+ return this.emitCodePoint(qg(this.result), this.consumed), this.errors && (t !== Ze.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
13671
13677
  }
13672
13678
  /**
13673
13679
  * Parses a named entity.
@@ -13689,7 +13695,7 @@ class Wg {
13689
13695
  (i === 0 || // And there should be no invalid characters.
13690
13696
  Vg(u)) ? 0 : this.emitNotTerminatedNamedEntity();
13691
13697
  if (a = r[this.treeIndex], i = (a & Qt.VALUE_LENGTH) >> 14, i !== 0) {
13692
- if (u === Qe.SEMI)
13698
+ if (u === Ze.SEMI)
13693
13699
  return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess);
13694
13700
  this.decodeMode !== Yt.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
13695
13701
  }
@@ -13729,16 +13735,16 @@ class Wg {
13729
13735
  end() {
13730
13736
  var t;
13731
13737
  switch (this.state) {
13732
- case Ke.NamedEntity:
13738
+ case Qe.NamedEntity:
13733
13739
  return this.result !== 0 && (this.decodeMode !== Yt.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
13734
13740
  // Otherwise, emit a numeric entity if we have one.
13735
- case Ke.NumericDecimal:
13741
+ case Qe.NumericDecimal:
13736
13742
  return this.emitNumericEntity(0, 2);
13737
- case Ke.NumericHex:
13743
+ case Qe.NumericHex:
13738
13744
  return this.emitNumericEntity(0, 3);
13739
- case Ke.NumericStart:
13745
+ case Qe.NumericStart:
13740
13746
  return (t = this.errors) === null || t === void 0 || t.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
13741
- case Ke.EntityStart:
13747
+ case Qe.EntityStart:
13742
13748
  return 0;
13743
13749
  }
13744
13750
  }
@@ -14595,7 +14601,7 @@ class eb {
14595
14601
  break;
14596
14602
  }
14597
14603
  case T.NULL: {
14598
- this._err(z.unexpectedNullCharacter), this._emitChars(He);
14604
+ this._err(z.unexpectedNullCharacter), this._emitChars(Ue);
14599
14605
  break;
14600
14606
  }
14601
14607
  case T.EOF: {
@@ -14615,7 +14621,7 @@ class eb {
14615
14621
  break;
14616
14622
  }
14617
14623
  case T.NULL: {
14618
- this._err(z.unexpectedNullCharacter), this._emitChars(He);
14624
+ this._err(z.unexpectedNullCharacter), this._emitChars(Ue);
14619
14625
  break;
14620
14626
  }
14621
14627
  case T.EOF: {
@@ -14635,7 +14641,7 @@ class eb {
14635
14641
  break;
14636
14642
  }
14637
14643
  case T.NULL: {
14638
- this._err(z.unexpectedNullCharacter), this._emitChars(He);
14644
+ this._err(z.unexpectedNullCharacter), this._emitChars(Ue);
14639
14645
  break;
14640
14646
  }
14641
14647
  case T.EOF: {
@@ -14651,7 +14657,7 @@ class eb {
14651
14657
  _statePlaintext(t) {
14652
14658
  switch (t) {
14653
14659
  case T.NULL: {
14654
- this._err(z.unexpectedNullCharacter), this._emitChars(He);
14660
+ this._err(z.unexpectedNullCharacter), this._emitChars(Ue);
14655
14661
  break;
14656
14662
  }
14657
14663
  case T.EOF: {
@@ -14729,7 +14735,7 @@ class eb {
14729
14735
  break;
14730
14736
  }
14731
14737
  case T.NULL: {
14732
- this._err(z.unexpectedNullCharacter), n.tagName += He;
14738
+ this._err(z.unexpectedNullCharacter), n.tagName += Ue;
14733
14739
  break;
14734
14740
  }
14735
14741
  case T.EOF: {
@@ -14838,7 +14844,7 @@ class eb {
14838
14844
  break;
14839
14845
  }
14840
14846
  case T.NULL: {
14841
- this._err(z.unexpectedNullCharacter), this._emitChars(He);
14847
+ this._err(z.unexpectedNullCharacter), this._emitChars(Ue);
14842
14848
  break;
14843
14849
  }
14844
14850
  case T.EOF: {
@@ -14862,7 +14868,7 @@ class eb {
14862
14868
  break;
14863
14869
  }
14864
14870
  case T.NULL: {
14865
- this._err(z.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(He);
14871
+ this._err(z.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(Ue);
14866
14872
  break;
14867
14873
  }
14868
14874
  case T.EOF: {
@@ -14890,7 +14896,7 @@ class eb {
14890
14896
  break;
14891
14897
  }
14892
14898
  case T.NULL: {
14893
- this._err(z.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(He);
14899
+ this._err(z.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(Ue);
14894
14900
  break;
14895
14901
  }
14896
14902
  case T.EOF: {
@@ -14939,7 +14945,7 @@ class eb {
14939
14945
  break;
14940
14946
  }
14941
14947
  case T.NULL: {
14942
- this._err(z.unexpectedNullCharacter), this._emitChars(He);
14948
+ this._err(z.unexpectedNullCharacter), this._emitChars(Ue);
14943
14949
  break;
14944
14950
  }
14945
14951
  case T.EOF: {
@@ -14963,7 +14969,7 @@ class eb {
14963
14969
  break;
14964
14970
  }
14965
14971
  case T.NULL: {
14966
- this._err(z.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(He);
14972
+ this._err(z.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(Ue);
14967
14973
  break;
14968
14974
  }
14969
14975
  case T.EOF: {
@@ -14991,7 +14997,7 @@ class eb {
14991
14997
  break;
14992
14998
  }
14993
14999
  case T.NULL: {
14994
- this._err(z.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(He);
15000
+ this._err(z.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(Ue);
14995
15001
  break;
14996
15002
  }
14997
15003
  case T.EOF: {
@@ -15065,7 +15071,7 @@ class eb {
15065
15071
  break;
15066
15072
  }
15067
15073
  case T.NULL: {
15068
- this._err(z.unexpectedNullCharacter), this.currentAttr.name += He;
15074
+ this._err(z.unexpectedNullCharacter), this.currentAttr.name += Ue;
15069
15075
  break;
15070
15076
  }
15071
15077
  default:
@@ -15139,7 +15145,7 @@ class eb {
15139
15145
  break;
15140
15146
  }
15141
15147
  case T.NULL: {
15142
- this._err(z.unexpectedNullCharacter), this.currentAttr.value += He;
15148
+ this._err(z.unexpectedNullCharacter), this.currentAttr.value += Ue;
15143
15149
  break;
15144
15150
  }
15145
15151
  case T.EOF: {
@@ -15163,7 +15169,7 @@ class eb {
15163
15169
  break;
15164
15170
  }
15165
15171
  case T.NULL: {
15166
- this._err(z.unexpectedNullCharacter), this.currentAttr.value += He;
15172
+ this._err(z.unexpectedNullCharacter), this.currentAttr.value += Ue;
15167
15173
  break;
15168
15174
  }
15169
15175
  case T.EOF: {
@@ -15194,7 +15200,7 @@ class eb {
15194
15200
  break;
15195
15201
  }
15196
15202
  case T.NULL: {
15197
- this._err(z.unexpectedNullCharacter), this.currentAttr.value += He;
15203
+ this._err(z.unexpectedNullCharacter), this.currentAttr.value += Ue;
15198
15204
  break;
15199
15205
  }
15200
15206
  case T.QUOTATION_MARK:
@@ -15271,7 +15277,7 @@ class eb {
15271
15277
  break;
15272
15278
  }
15273
15279
  case T.NULL: {
15274
- this._err(z.unexpectedNullCharacter), n.data += He;
15280
+ this._err(z.unexpectedNullCharacter), n.data += Ue;
15275
15281
  break;
15276
15282
  }
15277
15283
  default:
@@ -15336,7 +15342,7 @@ class eb {
15336
15342
  break;
15337
15343
  }
15338
15344
  case T.NULL: {
15339
- this._err(z.unexpectedNullCharacter), n.data += He;
15345
+ this._err(z.unexpectedNullCharacter), n.data += Ue;
15340
15346
  break;
15341
15347
  }
15342
15348
  case T.EOF: {
@@ -15480,7 +15486,7 @@ class eb {
15480
15486
  case T.FORM_FEED:
15481
15487
  break;
15482
15488
  case T.NULL: {
15483
- this._err(z.unexpectedNullCharacter), this._createDoctypeToken(He), this.state = C.DOCTYPE_NAME;
15489
+ this._err(z.unexpectedNullCharacter), this._createDoctypeToken(Ue), this.state = C.DOCTYPE_NAME;
15484
15490
  break;
15485
15491
  }
15486
15492
  case T.GREATER_THAN_SIGN: {
@@ -15516,7 +15522,7 @@ class eb {
15516
15522
  break;
15517
15523
  }
15518
15524
  case T.NULL: {
15519
- this._err(z.unexpectedNullCharacter), n.name += He;
15525
+ this._err(z.unexpectedNullCharacter), n.name += Ue;
15520
15526
  break;
15521
15527
  }
15522
15528
  case T.EOF: {
@@ -15621,7 +15627,7 @@ class eb {
15621
15627
  break;
15622
15628
  }
15623
15629
  case T.NULL: {
15624
- this._err(z.unexpectedNullCharacter), n.publicId += He;
15630
+ this._err(z.unexpectedNullCharacter), n.publicId += Ue;
15625
15631
  break;
15626
15632
  }
15627
15633
  case T.GREATER_THAN_SIGN: {
@@ -15646,7 +15652,7 @@ class eb {
15646
15652
  break;
15647
15653
  }
15648
15654
  case T.NULL: {
15649
- this._err(z.unexpectedNullCharacter), n.publicId += He;
15655
+ this._err(z.unexpectedNullCharacter), n.publicId += Ue;
15650
15656
  break;
15651
15657
  }
15652
15658
  case T.GREATER_THAN_SIGN: {
@@ -15795,7 +15801,7 @@ class eb {
15795
15801
  break;
15796
15802
  }
15797
15803
  case T.NULL: {
15798
- this._err(z.unexpectedNullCharacter), n.systemId += He;
15804
+ this._err(z.unexpectedNullCharacter), n.systemId += Ue;
15799
15805
  break;
15800
15806
  }
15801
15807
  case T.GREATER_THAN_SIGN: {
@@ -15820,7 +15826,7 @@ class eb {
15820
15826
  break;
15821
15827
  }
15822
15828
  case T.NULL: {
15823
- this._err(z.unexpectedNullCharacter), n.systemId += He;
15829
+ this._err(z.unexpectedNullCharacter), n.systemId += Ue;
15824
15830
  break;
15825
15831
  }
15826
15832
  case T.GREATER_THAN_SIGN: {
@@ -17347,7 +17353,7 @@ class us {
17347
17353
  break;
17348
17354
  }
17349
17355
  case O.IN_BODY: {
17350
- rt(this, t);
17356
+ at(this, t);
17351
17357
  break;
17352
17358
  }
17353
17359
  case O.IN_TABLE: {
@@ -17714,7 +17720,7 @@ function ur(e, t) {
17714
17720
  function qb(e, t) {
17715
17721
  switch (t.tagID) {
17716
17722
  case o.HTML: {
17717
- rt(e, t);
17723
+ at(e, t);
17718
17724
  break;
17719
17725
  }
17720
17726
  case o.HEAD: {
@@ -17735,7 +17741,7 @@ function or(e, t) {
17735
17741
  function Ot(e, t) {
17736
17742
  switch (t.tagID) {
17737
17743
  case o.HTML: {
17738
- rt(e, t);
17744
+ at(e, t);
17739
17745
  break;
17740
17746
  }
17741
17747
  case o.BASE:
@@ -17804,7 +17810,7 @@ function sr(e, t) {
17804
17810
  function $b(e, t) {
17805
17811
  switch (t.tagID) {
17806
17812
  case o.HTML: {
17807
- rt(e, t);
17813
+ at(e, t);
17808
17814
  break;
17809
17815
  }
17810
17816
  case o.BASEFONT:
@@ -17846,7 +17852,7 @@ function lr(e, t) {
17846
17852
  function Wb(e, t) {
17847
17853
  switch (t.tagID) {
17848
17854
  case o.HTML: {
17849
- rt(e, t);
17855
+ at(e, t);
17850
17856
  break;
17851
17857
  }
17852
17858
  case o.BODY: {
@@ -17912,7 +17918,7 @@ function na(e, t) {
17912
17918
  break;
17913
17919
  }
17914
17920
  case ge.START_TAG: {
17915
- rt(e, t);
17921
+ at(e, t);
17916
17922
  break;
17917
17923
  }
17918
17924
  case ge.END_TAG: {
@@ -18043,7 +18049,7 @@ function CE(e, t) {
18043
18049
  function ss(e, t) {
18044
18050
  e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML);
18045
18051
  }
18046
- function rt(e, t) {
18052
+ function at(e, t) {
18047
18053
  switch (t.tagID) {
18048
18054
  case o.I:
18049
18055
  case o.S:
@@ -18549,7 +18555,7 @@ function Kn(e, t) {
18549
18555
  const zc = /* @__PURE__ */ new Set([o.CAPTION, o.COL, o.COLGROUP, o.TBODY, o.TD, o.TFOOT, o.TH, o.THEAD, o.TR]);
18550
18556
  function zE(e, t) {
18551
18557
  const n = t.tagID;
18552
- zc.has(n) ? e.openElements.hasInTableScope(o.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = O.IN_TABLE, Ln(e, t)) : rt(e, t);
18558
+ zc.has(n) ? e.openElements.hasInTableScope(o.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = O.IN_TABLE, Ln(e, t)) : at(e, t);
18553
18559
  }
18554
18560
  function YE(e, t) {
18555
18561
  const n = t.tagID;
@@ -18577,7 +18583,7 @@ function YE(e, t) {
18577
18583
  function eu(e, t) {
18578
18584
  switch (t.tagID) {
18579
18585
  case o.HTML: {
18580
- rt(e, t);
18586
+ at(e, t);
18581
18587
  break;
18582
18588
  }
18583
18589
  case o.COL: {
@@ -18712,7 +18718,7 @@ function Yc(e, t) {
18712
18718
  }
18713
18719
  function VE(e, t) {
18714
18720
  const n = t.tagID;
18715
- zc.has(n) ? (e.openElements.hasInTableScope(o.TD) || e.openElements.hasInTableScope(o.TH)) && (e._closeTableCell(), ia(e, t)) : rt(e, t);
18721
+ zc.has(n) ? (e.openElements.hasInTableScope(o.TD) || e.openElements.hasInTableScope(o.TH)) && (e._closeTableCell(), ia(e, t)) : at(e, t);
18716
18722
  }
18717
18723
  function WE(e, t) {
18718
18724
  const n = t.tagID;
@@ -18743,7 +18749,7 @@ function WE(e, t) {
18743
18749
  function $c(e, t) {
18744
18750
  switch (t.tagID) {
18745
18751
  case o.HTML: {
18746
- rt(e, t);
18752
+ at(e, t);
18747
18753
  break;
18748
18754
  }
18749
18755
  case o.OPTION: {
@@ -18839,7 +18845,7 @@ function KE(e, t) {
18839
18845
  break;
18840
18846
  }
18841
18847
  default:
18842
- e.tmplInsertionModeStack[0] = O.IN_BODY, e.insertionMode = O.IN_BODY, rt(e, t);
18848
+ e.tmplInsertionModeStack[0] = O.IN_BODY, e.insertionMode = O.IN_BODY, at(e, t);
18843
18849
  }
18844
18850
  }
18845
18851
  function QE(e, t) {
@@ -18849,7 +18855,7 @@ function Wc(e, t) {
18849
18855
  e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(o.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Ji(e, t);
18850
18856
  }
18851
18857
  function ZE(e, t) {
18852
- t.tagID === o.HTML ? rt(e, t) : Xr(e, t);
18858
+ t.tagID === o.HTML ? at(e, t) : Xr(e, t);
18853
18859
  }
18854
18860
  function Gc(e, t) {
18855
18861
  var n;
@@ -18868,7 +18874,7 @@ function Xr(e, t) {
18868
18874
  function JE(e, t) {
18869
18875
  switch (t.tagID) {
18870
18876
  case o.HTML: {
18871
- rt(e, t);
18877
+ at(e, t);
18872
18878
  break;
18873
18879
  }
18874
18880
  case o.FRAMESET: {
@@ -18891,7 +18897,7 @@ function eT(e, t) {
18891
18897
  function tT(e, t) {
18892
18898
  switch (t.tagID) {
18893
18899
  case o.HTML: {
18894
- rt(e, t);
18900
+ at(e, t);
18895
18901
  break;
18896
18902
  }
18897
18903
  case o.NOFRAMES: {
@@ -18904,7 +18910,7 @@ function nT(e, t) {
18904
18910
  t.tagID === o.HTML && (e.insertionMode = O.AFTER_AFTER_FRAMESET);
18905
18911
  }
18906
18912
  function rT(e, t) {
18907
- t.tagID === o.HTML ? rt(e, t) : Br(e, t);
18913
+ t.tagID === o.HTML ? at(e, t) : Br(e, t);
18908
18914
  }
18909
18915
  function Br(e, t) {
18910
18916
  e.insertionMode = O.IN_BODY, na(e, t);
@@ -18912,7 +18918,7 @@ function Br(e, t) {
18912
18918
  function aT(e, t) {
18913
18919
  switch (t.tagID) {
18914
18920
  case o.HTML: {
18915
- rt(e, t);
18921
+ at(e, t);
18916
18922
  break;
18917
18923
  }
18918
18924
  case o.NOFRAMES: {
@@ -18922,7 +18928,7 @@ function aT(e, t) {
18922
18928
  }
18923
18929
  }
18924
18930
  function iT(e, t) {
18925
- t.chars = He, e._insertCharacters(t);
18931
+ t.chars = Ue, e._insertCharacters(t);
18926
18932
  }
18927
18933
  function uT(e, t) {
18928
18934
  e._insertCharacters(t), e.framesetOk = !1;
@@ -19406,11 +19412,11 @@ function DT() {
19406
19412
  }, w.valueOf = function() {
19407
19413
  return this.$d.getTime();
19408
19414
  }, w.startOf = function(B, G) {
19409
- var j = this, q = !!Y.u(G) || G, b = Y.p(B), ne = function(Ue, ve) {
19410
- var Ze = Y.w(j.$u ? Date.UTC(j.$y, ve, Ue) : new Date(j.$y, ve, Ue), j);
19411
- return q ? Ze : Ze.endOf(c);
19412
- }, le = function(Ue, ve) {
19413
- return Y.w(j.toDate()[Ue].apply(j.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ve)), j);
19415
+ var j = this, q = !!Y.u(G) || G, b = Y.p(B), ne = function(je, ve) {
19416
+ var Je = Y.w(j.$u ? Date.UTC(j.$y, ve, je) : new Date(j.$y, ve, je), j);
19417
+ return q ? Je : Je.endOf(c);
19418
+ }, le = function(je, ve) {
19419
+ return Y.w(j.toDate()[je].apply(j.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ve)), j);
19414
19420
  }, x = this.$W, se = this.$M, ye = this.$D, me = "set" + (this.$u ? "UTC" : "");
19415
19421
  switch (b) {
19416
19422
  case h:
@@ -19463,16 +19469,16 @@ function DT() {
19463
19469
  }, w.format = function(B) {
19464
19470
  var G = this, j = this.$locale();
19465
19471
  if (!this.isValid()) return j.invalidDate || m;
19466
- var q = B || "YYYY-MM-DDTHH:mm:ssZ", b = Y.z(this), ne = this.$H, le = this.$m, x = this.$M, se = j.weekdays, ye = j.months, me = j.meridiem, Ae = function(ve, Ze, ft, It) {
19467
- return ve && (ve[Ze] || ve(G, q)) || ft[Ze].slice(0, It);
19472
+ var q = B || "YYYY-MM-DDTHH:mm:ssZ", b = Y.z(this), ne = this.$H, le = this.$m, x = this.$M, se = j.weekdays, ye = j.months, me = j.meridiem, Ae = function(ve, Je, ft, It) {
19473
+ return ve && (ve[Je] || ve(G, q)) || ft[Je].slice(0, It);
19468
19474
  }, xe = function(ve) {
19469
19475
  return Y.s(ne % 12 || 12, ve, "0");
19470
- }, Ue = me || function(ve, Ze, ft) {
19476
+ }, je = me || function(ve, Je, ft) {
19471
19477
  var It = ve < 12 ? "AM" : "PM";
19472
19478
  return ft ? It.toLowerCase() : It;
19473
19479
  };
19474
- return q.replace(g, function(ve, Ze) {
19475
- return Ze || function(ft) {
19480
+ return q.replace(g, function(ve, Je) {
19481
+ return Je || function(ft) {
19476
19482
  switch (ft) {
19477
19483
  case "YY":
19478
19484
  return String(G.$y).slice(-2);
@@ -19507,9 +19513,9 @@ function DT() {
19507
19513
  case "hh":
19508
19514
  return xe(2);
19509
19515
  case "a":
19510
- return Ue(ne, le, !0);
19516
+ return je(ne, le, !0);
19511
19517
  case "A":
19512
- return Ue(ne, le, !1);
19518
+ return je(ne, le, !1);
19513
19519
  case "m":
19514
19520
  return String(le);
19515
19521
  case "mm":
@@ -19744,7 +19750,7 @@ tu.propTypes = {
19744
19750
  userTrackingName: v.string
19745
19751
  };
19746
19752
  const id = ({ children: e, id: t, link: n }) => {
19747
- const { contentRef: r } = oe(Zt), [a, i] = ce(!1), u = tt(null), s = st(() => i(!0), []), l = st(() => i(!1), []), c = st(() => i(!0), []), d = st(() => i(!1), []), f = st(
19753
+ const { contentRef: r } = oe(Zt), [a, i] = ce(!1), u = nt(null), s = st(() => i(!0), []), l = st(() => i(!1), []), c = st(() => i(!0), []), d = st(() => i(!1), []), f = st(
19748
19754
  (p) => {
19749
19755
  p.key === "Enter" ? window.open(n, "_blank") : p.key === "Escape" && i(!1);
19750
19756
  },
@@ -19789,11 +19795,11 @@ id.propTypes = {
19789
19795
  children: v.element.isRequired,
19790
19796
  id: v.string.isRequired
19791
19797
  };
19792
- const et = [];
19798
+ const tt = [];
19793
19799
  for (let e = 0; e < 256; ++e)
19794
- et.push((e + 256).toString(16).slice(1));
19800
+ tt.push((e + 256).toString(16).slice(1));
19795
19801
  function BT(e, t = 0) {
19796
- return (et[e[t + 0]] + et[e[t + 1]] + et[e[t + 2]] + et[e[t + 3]] + "-" + et[e[t + 4]] + et[e[t + 5]] + "-" + et[e[t + 6]] + et[e[t + 7]] + "-" + et[e[t + 8]] + et[e[t + 9]] + "-" + et[e[t + 10]] + et[e[t + 11]] + et[e[t + 12]] + et[e[t + 13]] + et[e[t + 14]] + et[e[t + 15]]).toLowerCase();
19802
+ return (tt[e[t + 0]] + tt[e[t + 1]] + tt[e[t + 2]] + tt[e[t + 3]] + "-" + tt[e[t + 4]] + tt[e[t + 5]] + "-" + tt[e[t + 6]] + tt[e[t + 7]] + "-" + tt[e[t + 8]] + tt[e[t + 9]] + "-" + tt[e[t + 10]] + tt[e[t + 11]] + tt[e[t + 12]] + tt[e[t + 13]] + tt[e[t + 14]] + tt[e[t + 15]]).toLowerCase();
19797
19803
  }
19798
19804
  let $a;
19799
19805
  const HT = new Uint8Array(16);
@@ -19916,7 +19922,7 @@ const zT = () => /* @__PURE__ */ S.jsx(
19916
19922
  )
19917
19923
  }
19918
19924
  ), od = ({ src: e, alt: t, ...n }) => {
19919
- const { streaming: r } = oe(Xe), a = tt(null), [i, u] = ce(!1), [s, l] = ce(!1);
19925
+ const { streaming: r } = oe(Xe), a = nt(null), [i, u] = ce(!1), [s, l] = ce(!1);
19920
19926
  return Ne(() => {
19921
19927
  const c = a.current;
19922
19928
  if (!c) return;
@@ -20220,7 +20226,7 @@ au.propTypes = {
20220
20226
  };
20221
20227
  au.displayName = "NotificationMessage";
20222
20228
  function ld({ disableScroll: e }) {
20223
- const t = tt(null), { streaming: n } = oe(Xe);
20229
+ const t = nt(null), { streaming: n } = oe(Xe);
20224
20230
  return Ne(() => {
20225
20231
  var r;
20226
20232
  e || (r = t.current) == null || r.scrollIntoView({
@@ -20255,7 +20261,7 @@ const oa = ({
20255
20261
  setLiveChatOpen: i = null,
20256
20262
  submitEvent: u = null
20257
20263
  }) => {
20258
- const { disableScroll: s, hasError: l } = oe(Xe), c = tt(null), d = cn(
20264
+ const { disableScroll: s, hasError: l } = oe(Xe), c = nt(null), d = cn(
20259
20265
  () => n.reduce((f, p) => (p.toolCalls && p.toolCalls.forEach(({ function: h, id: E }) => {
20260
20266
  f[E] = h == null ? void 0 : h.name;
20261
20267
  }), f), {}),
@@ -20403,7 +20409,7 @@ iu.propTypes = {
20403
20409
  };
20404
20410
  iu.displayName = "PromptList";
20405
20411
  const dd = ({ chatContentRef: e, messages: t }) => {
20406
- const { loading: n, streaming: r } = oe(Xe), [a, i] = ce(!1), u = tt(null), s = st(() => {
20412
+ const { loading: n, streaming: r } = oe(Xe), [a, i] = ce(!1), u = nt(null), s = st(() => {
20407
20413
  if (!e.current) return;
20408
20414
  const { scrollTop: c, scrollHeight: d, clientHeight: f } = e.current, p = c + f >= d - 10;
20409
20415
  i(!p);
@@ -20448,7 +20454,7 @@ function fd({
20448
20454
  submitEvent: u = null
20449
20455
  }) {
20450
20456
  var y, g;
20451
- const { conversationScreen: s, disclaimer: l } = oe(Ye), { deleteConversationModal: c, xpertMessages: d } = oe(Zt), { loading: f, setMode: p, mode: h } = oe(Xe), E = tt(null), m = (P) => {
20457
+ const { conversationScreen: s, disclaimer: l } = oe(Ye), { deleteConversationModal: c, xpertMessages: d } = oe(Zt), { loading: f, setMode: p, mode: h } = oe(Xe), E = nt(null), m = (P) => {
20452
20458
  s.liveChat.useOwnChat ? p(vt.LIVECHAT) : i(P);
20453
20459
  };
20454
20460
  return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
@@ -21168,8 +21174,8 @@ function cu() {
21168
21174
  }, ye = function(Ae) {
21169
21175
  b || (0, i.flushSync)(function() {
21170
21176
  return W(function(xe) {
21171
- var Ue;
21172
- return e(e({}, xe), _.current && (Ue = {}, Ue[_.current] = Ae, Ue));
21177
+ var je;
21178
+ return e(e({}, xe), _.current && (je = {}, je[_.current] = Ae, je));
21173
21179
  });
21174
21180
  });
21175
21181
  }, ne && (q = (0, s.createOrJoinSocket)(N, _.current, ye, L, se, $, H, te, B)), [
@@ -21868,7 +21874,7 @@ yd.propTypes = {
21868
21874
  onDismiss: v.func
21869
21875
  };
21870
21876
  function g3(e, t) {
21871
- const [n, r] = ce(!1), a = tt(), i = st(
21877
+ const [n, r] = ce(!1), a = nt(), i = st(
21872
21878
  (...u) => {
21873
21879
  n || (e(...u), r(!0), clearTimeout(a.current), a.current = setTimeout(() => {
21874
21880
  r(!1);
@@ -21887,7 +21893,7 @@ function _d() {
21887
21893
  liveChatMessages: n,
21888
21894
  sendMessage: r,
21889
21895
  sendTypingEvent: a
21890
- } = oe(En), i = tt(null), [u, s] = ce(!1), l = g3(a, 5e3), c = () => {
21896
+ } = oe(En), i = nt(null), [u, s] = ce(!1), l = g3(a, 5e3), c = () => {
21891
21897
  l();
21892
21898
  }, d = (f) => {
21893
21899
  f.trim() !== "" && r(f);
@@ -22305,7 +22311,7 @@ function xd({ submitEventExternal: e = null }) {
22305
22311
  setIsNormalSize: R,
22306
22312
  setLoading: _,
22307
22313
  setStreaming: N
22308
- } = oe(Xe), [, $] = ce(!1), [, H] = ce(!1), [te, Y] = ce(!1), [V, L] = ce(!1), [I, w] = ce(!1), B = te || !c, G = tt(null), j = tt(null), q = lt.get(`${a}-test`) === "1";
22314
+ } = oe(Xe), [, $] = ce(!1), [, H] = ce(!1), [te, Y] = ce(!1), [V, L] = ce(!1), [I, w] = ce(!1), B = te || !c, G = nt(null), j = nt(null), q = lt.get(`${a}-test`) === "1";
22309
22315
  Ne(() => {
22310
22316
  g === vt.XPERT && B && G.current && G.current.focus();
22311
22317
  }, [g, B]), _3(
@@ -22330,7 +22336,7 @@ function xd({ submitEventExternal: e = null }) {
22330
22336
  s == null ? void 0 : s.payloadParams
22331
22337
  ]
22332
22338
  ), ne = async () => {
22333
- var qe, F;
22339
+ var qe, F, X;
22334
22340
  if (!lt.get(
22335
22341
  `${a}-conversation-history-id`
22336
22342
  )) return;
@@ -22338,12 +22344,12 @@ function xd({ submitEventExternal: e = null }) {
22338
22344
  _(!1);
22339
22345
  return;
22340
22346
  }
22341
- if (!await (async (X, re = 1e4, ue = 200) => {
22342
- let pe = 0;
22343
- for (; !X(); ) {
22344
- if (pe >= re)
22347
+ if (!await (async (re, ue = 1e4, pe = 200) => {
22348
+ let Re = 0;
22349
+ for (; !re(); ) {
22350
+ if (Re >= ue)
22345
22351
  return !1;
22346
- await new Promise((Me) => setTimeout(Me, ue)), pe += ue;
22352
+ await new Promise((Ke) => setTimeout(Ke, pe)), Re += pe;
22347
22353
  }
22348
22354
  return !0;
22349
22355
  })(
@@ -22353,9 +22359,9 @@ function xd({ submitEventExternal: e = null }) {
22353
22359
  return;
22354
22360
  }
22355
22361
  try {
22356
- let X = Ls(a);
22357
- const re = (F = t == null ? void 0 : t.baseUrl) != null && F.includes("xpert-api-services") ? "/v1/history" : "/xpert/v2/history", ue = await fetch(
22358
- `${t.baseUrl}${re}?conversation_id=${X}`,
22362
+ let re = Ls(a);
22363
+ const ue = (F = t == null ? void 0 : t.baseUrl) != null && F.includes("xpert-api-services") ? "/v1/history" : "/xpert/v2/history", pe = `conversation_id=${re}&client_id=${(X = t == null ? void 0 : t.payloadParams) == null ? void 0 : X.client_id}`, Re = await fetch(
22364
+ `${t.baseUrl}${ue}?${pe}`,
22359
22365
  {
22360
22366
  method: "GET",
22361
22367
  headers: {
@@ -22363,19 +22369,19 @@ function xd({ submitEventExternal: e = null }) {
22363
22369
  }
22364
22370
  }
22365
22371
  );
22366
- if (!ue.ok)
22367
- throw new Error(`HTTPError: ${ue.status} ${ue.statusText}`);
22368
- const pe = await ue.json();
22372
+ if (!Re.ok)
22373
+ throw new Error(`HTTPError: ${Re.status} ${Re.statusText}`);
22374
+ const Ke = await Re.json();
22369
22375
  E(
22370
- pe.map((Me) => ({
22371
- ...Me,
22376
+ Ke.map((ke) => ({
22377
+ ...ke,
22372
22378
  disableFeedback: !0,
22373
- toolCalls: Me.tool_calls,
22374
- toolCallId: Me.tool_call_id
22379
+ toolCalls: ke.tool_calls,
22380
+ toolCallId: ke.tool_call_id
22375
22381
  }))
22376
22382
  ), P(!0), W(!0);
22377
- } catch (X) {
22378
- console.error(X);
22383
+ } catch (re) {
22384
+ console.error(re);
22379
22385
  } finally {
22380
22386
  _(!1);
22381
22387
  }
@@ -22466,44 +22472,44 @@ function xd({ submitEventExternal: e = null }) {
22466
22472
  const X = await ie.json(), re = Array.isArray(X) ? X : [X];
22467
22473
  re.forEach(
22468
22474
  ({
22469
- content: je,
22470
- live_agent: Je,
22475
+ content: ke,
22476
+ live_agent: et,
22471
22477
  role: it,
22472
22478
  tool_calls: Oe,
22473
- tool_call_id: nt
22479
+ tool_call_id: rt
22474
22480
  }) => {
22475
22481
  h({
22476
- content: je,
22482
+ content: ke,
22477
22483
  createdAt: /* @__PURE__ */ new Date(),
22478
- liveAgent: Je,
22484
+ liveAgent: et,
22479
22485
  role: it,
22480
22486
  toolCalls: Oe,
22481
- toolCallId: nt
22487
+ toolCallId: rt
22482
22488
  });
22483
22489
  }
22484
22490
  );
22485
- const ue = re.filter(({ content: je }) => !!je), pe = ue.map((je) => je.content ?? "").join("");
22491
+ const ue = re.filter(({ content: ke }) => !!ke), pe = ue.map((ke) => ke.content ?? "").join("");
22486
22492
  se(pe, Ee);
22487
- const Me = /* @__PURE__ */ new Date(), at = ks(JSON.stringify(qe));
22493
+ const Re = /* @__PURE__ */ new Date(), Ke = ks(JSON.stringify(qe));
22488
22494
  return ye({
22489
- conversationByteSize: at,
22490
- conversationSize: ue.length + m.filter(({ content: je }) => !!je).length + 1,
22495
+ conversationByteSize: Ke,
22496
+ conversationSize: ue.length + m.filter(({ content: ke }) => !!ke).length + 1,
22491
22497
  userInputMessage: Se,
22492
22498
  apiResponseMessage: pe,
22493
- elapsedSeconds: Ns(F, Me),
22499
+ elapsedSeconds: Ns(F, Re),
22494
22500
  isStreaming: !1
22495
22501
  }), re;
22496
22502
  }, Ae = async (ie, Ee, Se, qe, F) => {
22497
- var at;
22503
+ var Ke;
22498
22504
  const X = new TextDecoder("utf-8");
22499
22505
  let re = [], ue = 0;
22500
22506
  const pe = /* @__PURE__ */ new Date();
22501
22507
  for (; ; ) {
22502
- const { value: je, done: Je } = await ie.read();
22503
- if (Je) break;
22504
- const it = X.decode(je, { stream: !0 });
22508
+ const { value: ke, done: et } = await ie.read();
22509
+ if (et) break;
22510
+ const it = X.decode(ke, { stream: !0 });
22505
22511
  try {
22506
- const Oe = it.match(/\[.*?\](?=\[|$)/gs), nt = JSON.parse(Oe[Oe.length - 1]).map(
22512
+ const Oe = it.match(/\[.*?\](?=\[|$)/gs), rt = JSON.parse(Oe[Oe.length - 1]).map(
22507
22513
  (ze) => ({
22508
22514
  content: ze.content,
22509
22515
  createdAt: pe,
@@ -22513,15 +22519,15 @@ function xd({ submitEventExternal: e = null }) {
22513
22519
  toolCallId: ze.tool_call_id
22514
22520
  })
22515
22521
  );
22516
- if (nt.length > ue) {
22517
- for (let kt = ue; kt < nt.length; kt++)
22522
+ if (rt.length > ue) {
22523
+ for (let kt = ue; kt < rt.length; kt++)
22518
22524
  h({
22519
22525
  content: "",
22520
22526
  disableFeedback: !0
22521
22527
  }), ue++;
22522
22528
  const ze = /* @__PURE__ */ new Date(), Vt = ks(
22523
22529
  JSON.stringify(qe)
22524
- ), tn = nt.filter(({ content: kt }) => !!kt);
22530
+ ), tn = rt.filter(({ content: kt }) => !!kt);
22525
22531
  ye({
22526
22532
  conversationByteSize: Vt,
22527
22533
  conversationSize: m.filter(({ content: kt }) => !!kt).length + 2,
@@ -22534,16 +22540,16 @@ function xd({ submitEventExternal: e = null }) {
22534
22540
  await v3(), E((ze) => {
22535
22541
  const Vt = [...ze];
22536
22542
  return Vt.splice(
22537
- Vt.length - nt.length,
22538
- nt.length,
22539
- ...nt
22543
+ Vt.length - rt.length,
22544
+ rt.length,
22545
+ ...rt
22540
22546
  ), Vt;
22541
- }), re = nt;
22547
+ }), re = rt;
22542
22548
  } catch {
22543
22549
  }
22544
22550
  }
22545
- const Me = ((at = re.find((je) => je.content)) == null ? void 0 : at.content) || "";
22546
- return se(Me, Ee), re;
22551
+ const Re = ((Ke = re.find((ke) => ke.content)) == null ? void 0 : Ke.content) || "";
22552
+ return se(Re, Ee), re;
22547
22553
  }, xe = async (ie, Ee, Se, qe, F) => {
22548
22554
  N(!0);
22549
22555
  const X = ie.body.getReader(), re = await Ae(
@@ -22554,7 +22560,7 @@ function xd({ submitEventExternal: e = null }) {
22554
22560
  F
22555
22561
  );
22556
22562
  return N(!1), re;
22557
- }, Ue = async (ie) => {
22563
+ }, je = async (ie) => {
22558
22564
  var Ee;
22559
22565
  try {
22560
22566
  if (ie.trim().length === 0)
@@ -22629,7 +22635,7 @@ function xd({ submitEventExternal: e = null }) {
22629
22635
  isTestUser: q
22630
22636
  }
22631
22637
  });
22632
- }, Ze = (ie) => {
22638
+ }, Je = (ie) => {
22633
22639
  b({
22634
22640
  name: `${s.prefix}.bi.xpert.chatbot.${ie ? "normal" : "expand"}.size.button.clicked`,
22635
22641
  payload: {
@@ -22746,7 +22752,7 @@ function xd({ submitEventExternal: e = null }) {
22746
22752
  Ed,
22747
22753
  {
22748
22754
  onClose: Un,
22749
- handleResizeButtonClick: Ze,
22755
+ handleResizeButtonClick: Je,
22750
22756
  isMounted: I,
22751
22757
  setIsMounted: w
22752
22758
  }
@@ -22757,7 +22763,7 @@ function xd({ submitEventExternal: e = null }) {
22757
22763
  {
22758
22764
  handleFeedbackThumbSelection: jn,
22759
22765
  handleMessageLinkClicked: x,
22760
- handleSend: Ue,
22766
+ handleSend: je,
22761
22767
  inputRef: G,
22762
22768
  isTestUser: q,
22763
22769
  setLiveChatOpen: L,