@2uinc/frontend-component-xpert-chatbot 1.19.4 → 1.19.6-alpha.1

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 +236 -204
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import Je, { createContext as $n, useMemo as fo, useState as te, useEffect as Ce, useContext as ne, useRef as qe, forwardRef as po, createElement as Br, useCallback as Rt, Fragment as Ks } from "react";
1
+ import Je, { createContext as $n, useMemo as fo, useState as te, useEffect as Ce, useContext as ne, useRef as qe, forwardRef as po, createElement as Br, useCallback as Rt, Fragment as Ys } from "react";
2
2
  var pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
3
  function st(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -28,7 +28,7 @@ object-assign
28
28
  (c) Sindre Sorhus
29
29
  @license MIT
30
30
  */
31
- var Yi = Object.getOwnPropertySymbols, Js = Object.prototype.hasOwnProperty, Qs = Object.prototype.propertyIsEnumerable;
31
+ var Ki = Object.getOwnPropertySymbols, Js = Object.prototype.hasOwnProperty, Qs = Object.prototype.propertyIsEnumerable;
32
32
  function eu(e) {
33
33
  if (e == null)
34
34
  throw new TypeError("Object.assign cannot be called with null or undefined");
@@ -68,8 +68,8 @@ tu();
68
68
  var nu = Je, go = 60103;
69
69
  sn.Fragment = 60107;
70
70
  if (typeof Symbol == "function" && Symbol.for) {
71
- var Ki = Symbol.for;
72
- go = Ki("react.element"), sn.Fragment = Ki("react.fragment");
71
+ var Yi = Symbol.for;
72
+ go = Yi("react.element"), sn.Fragment = Yi("react.fragment");
73
73
  }
74
74
  var ru = nu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, iu = Object.prototype.hasOwnProperty, au = { key: !0, ref: !0, __self: !0, __source: !0 };
75
75
  function yo(e, t, n) {
@@ -248,15 +248,15 @@ On.exports;
248
248
  return h ? "Symbol(src)_1." + h : "";
249
249
  }(), Ut = Ie.toString, et = Qe.call(Object), F = RegExp(
250
250
  "^" + Qe.call($e).replace(p, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
251
- ), B = Ee ? re.Buffer : void 0, Y = re.Symbol, oe = re.Uint8Array;
251
+ ), B = Ee ? re.Buffer : void 0, K = re.Symbol, oe = re.Uint8Array;
252
252
  B && B.allocUnsafe;
253
- var ue = ie(Object.getPrototypeOf, Object), Ae = Object.create, tt = Ie.propertyIsEnumerable, Ze = ke.splice, De = Y ? Y.toStringTag : void 0, nt = function() {
253
+ var ue = ie(Object.getPrototypeOf, Object), Ae = Object.create, tt = Ie.propertyIsEnumerable, Ze = ke.splice, De = K ? K.toStringTag : void 0, nt = function() {
254
254
  try {
255
255
  var h = yr(Object, "defineProperty");
256
256
  return h({}, "", {}), h;
257
257
  } catch {
258
258
  }
259
- }(), xe = B ? B.isBuffer : void 0, Ft = Math.max, Ye = Date.now, Bi = yr(re, "Map"), qt = yr(Object, "create"), Kl = /* @__PURE__ */ function() {
259
+ }(), xe = B ? B.isBuffer : void 0, Ft = Math.max, Ke = Date.now, Bi = yr(re, "Map"), qt = yr(Object, "create"), Yl = /* @__PURE__ */ function() {
260
260
  function h() {
261
261
  }
262
262
  return function(w) {
@@ -388,12 +388,12 @@ On.exports;
388
388
  Mt.prototype.clear = ps, Mt.prototype.delete = hs, Mt.prototype.get = ms, Mt.prototype.has = gs, Mt.prototype.set = ys;
389
389
  function bs(h, w) {
390
390
  var T = xr(h), W = !T && vr(h), ae = !T && !W && qi(h), de = !T && !W && !ae && Wi(h), ye = T || W || ae || de, le = ye ? Pt(h.length, String) : [], be = le.length;
391
- for (var Ke in h)
391
+ for (var Ye in h)
392
392
  ye && // Safari 9 has enumerable `arguments.length` in strict mode.
393
- (Ke == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
394
- ae && (Ke == "offset" || Ke == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
395
- de && (Ke == "buffer" || Ke == "byteLength" || Ke == "byteOffset") || // Skip index properties.
396
- $i(Ke, be)) || le.push(Ke);
393
+ (Ye == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
394
+ ae && (Ye == "offset" || Ye == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
395
+ de && (Ye == "buffer" || Ye == "byteLength" || Ye == "byteOffset") || // Skip index properties.
396
+ $i(Ye, be)) || le.push(Ye);
397
397
  return le;
398
398
  }
399
399
  function mr(h, w, T) {
@@ -452,9 +452,9 @@ On.exports;
452
452
  }, Gi);
453
453
  }
454
454
  function Ss(h, w, T, W, ae, de, ye) {
455
- var le = br(h, T), be = br(w, T), Ke = ye.get(be);
456
- if (Ke) {
457
- mr(h, T, Ke);
455
+ var le = br(h, T), be = br(w, T), Ye = ye.get(be);
456
+ if (Ye) {
457
+ mr(h, T, Ye);
458
458
  return;
459
459
  }
460
460
  var Re = de ? de(le, be, T + "", h, w, ye) : void 0, Wt = Re === void 0;
@@ -540,7 +540,7 @@ On.exports;
540
540
  return W && (w ? h[De] = T : delete h[De]), ae;
541
541
  }
542
542
  function Ls(h) {
543
- return typeof h.constructor == "function" && !Ui(h) ? Kl(ue(h)) : {};
543
+ return typeof h.constructor == "function" && !Ui(h) ? Yl(ue(h)) : {};
544
544
  }
545
545
  function $i(h, w) {
546
546
  var T = typeof h;
@@ -591,7 +591,7 @@ On.exports;
591
591
  function Us(h) {
592
592
  var w = 0, T = 0;
593
593
  return function() {
594
- var W = Ye(), ae = a - (W - T);
594
+ var W = Ke(), ae = a - (W - T);
595
595
  if (T = W, ae > 0) {
596
596
  if (++w >= i)
597
597
  return arguments[0];
@@ -627,7 +627,7 @@ On.exports;
627
627
  function Vs(h) {
628
628
  return Vt(h) && wr(h);
629
629
  }
630
- var qi = xe || Ys;
630
+ var qi = xe || Ks;
631
631
  function Cr(h) {
632
632
  if (!xt(h))
633
633
  return !1;
@@ -671,7 +671,7 @@ On.exports;
671
671
  function Xi(h) {
672
672
  return h;
673
673
  }
674
- function Ys() {
674
+ function Ks() {
675
675
  return !1;
676
676
  }
677
677
  e.exports = Xs;
@@ -681,6 +681,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
681
681
  id: "degrees-canvas-support",
682
682
  chatApi: {
683
683
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
684
+ messagesKey: "message_list",
684
685
  payloadParams: {
685
686
  use_case: "Canvas_Student",
686
687
  tags: ["live_agent"]
@@ -760,38 +761,38 @@ const Co = /* @__PURE__ */ st(fu), du = {
760
761
  },
761
762
  {
762
763
  key: "email",
763
- name: "Email",
764
+ name: "University Email or Email Address on Record",
764
765
  validations: ["email"]
765
766
  },
766
- {
767
- key: "phone",
768
- name: "Phone",
769
- validations: null
770
- },
771
767
  {
772
768
  key: "question",
773
- name: "Question",
769
+ name: "Question/Describe your Issue",
774
770
  validations: null
775
771
  }
776
772
  ],
777
- formHeader: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
778
- privacyPolicyLink: "https://www.google.com",
779
- privacyPolicyText: "Please note that GetSmarter will process your personal information in accordance with its privacy policy. You may receive transactional emails containing your chat conversation with GetSmarter.",
773
+ formHeader: "Digital Campus Support",
774
+ privacyPolicyLink: null,
775
+ privacyPolicyText: "",
776
+ queueMessages: [
777
+ "Thank you for contact us!",
778
+ "You are in queue.",
779
+ "Please wait while we connect you to the next available representative."
780
+ ],
780
781
  socketUrl: "wss://4rqof1by76.execute-api.us-west-2.amazonaws.com/stg",
781
782
  sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
782
783
  options: {
783
784
  appId: "2U Inc",
784
785
  configId: "Degree | Support_Main_Flow_Xpert"
785
786
  },
786
- queueMessages: [],
787
- useSurvey: !1,
788
- useOwnChat: !1
787
+ useOwnChat: !0,
788
+ useSurvey: !1
789
789
  }
790
790
  }
791
791
  }, pu = {
792
792
  id: "degrees-moodle-support",
793
793
  chatApi: {
794
794
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
795
+ messagesKey: "message_list",
795
796
  payloadParams: {
796
797
  use_case: "Moodle_Student",
797
798
  tags: ["live_agent"]
@@ -858,25 +859,51 @@ const Co = /* @__PURE__ */ st(fu), du = {
858
859
  },
859
860
  liveChat: {
860
861
  enabled: !0,
861
- form: null,
862
- formHeader: null,
862
+ form: [
863
+ {
864
+ key: "first_name",
865
+ name: "First name",
866
+ validations: null
867
+ },
868
+ {
869
+ key: "last_name",
870
+ name: "Last name",
871
+ validations: null
872
+ },
873
+ {
874
+ key: "email",
875
+ name: "University Email or Email Address on Record",
876
+ validations: ["email"]
877
+ },
878
+ {
879
+ key: "question",
880
+ name: "Question/Describe your Issue",
881
+ validations: null
882
+ }
883
+ ],
884
+ formHeader: "Digital Campus Support",
885
+ privacyPolicyLink: null,
886
+ privacyPolicyText: "",
887
+ queueMessages: [
888
+ "Thank you for contact us!",
889
+ "You are in queue.",
890
+ "Please wait while we connect you to the next available representative."
891
+ ],
892
+ socketUrl: "wss://4rqof1by76.execute-api.us-west-2.amazonaws.com/stg",
893
+ sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
863
894
  options: {
864
895
  appId: "2U Inc",
865
896
  configId: "Degree | Support_Main_Flow_Xpert"
866
897
  },
867
- privacyPolicyLink: null,
868
- privacyPolicyText: null,
869
- queueMessages: [],
870
- socketUrl: null,
871
- sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
872
- useOwnChat: !1,
873
- useSurvey: null
898
+ useOwnChat: !0,
899
+ useSurvey: !1
874
900
  }
875
901
  }
876
902
  }, hu = {
877
903
  id: "edx",
878
904
  chatApi: {
879
905
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/chat",
906
+ messagesKey: "message_list",
880
907
  payloadParams: null
881
908
  },
882
909
  primaryColor: "#0E3639",
@@ -967,6 +994,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
967
994
  id: "edx-global-support",
968
995
  chatApi: {
969
996
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
997
+ messagesKey: "message_list",
970
998
  payloadParams: {
971
999
  use_case: ["edX_Learner_Support"]
972
1000
  }
@@ -1056,6 +1084,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
1056
1084
  id: "exec-ed-ss-olc-moodle",
1057
1085
  chatApi: {
1058
1086
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
1087
+ messagesKey: "message_list",
1059
1088
  payloadParams: {
1060
1089
  use_case: "LOG_OUT"
1061
1090
  }
@@ -1151,6 +1180,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
1151
1180
  id: "get-smarter",
1152
1181
  chatApi: {
1153
1182
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
1183
+ messagesKey: "message_list",
1154
1184
  payloadParams: {
1155
1185
  use_case: "GET_SMARTER",
1156
1186
  tags: ["live_agent"]
@@ -1236,6 +1266,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
1236
1266
  id: "speech-emerson",
1237
1267
  chatApi: {
1238
1268
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/admissions",
1269
+ messagesKey: "message_list",
1239
1270
  payloadParams: null
1240
1271
  },
1241
1272
  primaryColor: "#542291",
@@ -1347,6 +1378,7 @@ ko.propTypes = {
1347
1378
  id: g.string,
1348
1379
  chatApi: g.shape({
1349
1380
  endpoint: g.string.isRequired,
1381
+ messageList: g.string.isRequired,
1350
1382
  payloadParams: g.string
1351
1383
  }).isRequired,
1352
1384
  primaryColor: g.string.isRequired,
@@ -2252,10 +2284,10 @@ function Zu(e, t) {
2252
2284
  }
2253
2285
  return r;
2254
2286
  }
2255
- function Yu(e) {
2287
+ function Ku(e) {
2256
2288
  return e === 404;
2257
2289
  }
2258
- const Ku = (e, t, n) => {
2290
+ const Yu = (e, t, n) => {
2259
2291
  const r = [], i = Zu(e, t), a = "icons";
2260
2292
  let o = {
2261
2293
  type: a,
@@ -2308,7 +2340,7 @@ const Qu = (e, t, n) => {
2308
2340
  const o = a.status;
2309
2341
  if (o !== 200) {
2310
2342
  setTimeout(() => {
2311
- n(Yu(o) ? "abort" : "next", o);
2343
+ n(Ku(o) ? "abort" : "next", o);
2312
2344
  });
2313
2345
  return;
2314
2346
  }
@@ -2327,7 +2359,7 @@ const Qu = (e, t, n) => {
2327
2359
  n("next", i);
2328
2360
  });
2329
2361
  }, ec = {
2330
- prepare: Ku,
2362
+ prepare: Yu,
2331
2363
  send: Qu
2332
2364
  };
2333
2365
  function tc(e) {
@@ -3800,10 +3832,10 @@ function ga(e) {
3800
3832
  if (e)
3801
3833
  throw e;
3802
3834
  }
3803
- var _n = Object.prototype.hasOwnProperty, Yo = Object.prototype.toString, ya = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, va = function(t) {
3804
- return typeof Array.isArray == "function" ? Array.isArray(t) : Yo.call(t) === "[object Array]";
3835
+ var _n = Object.prototype.hasOwnProperty, Ko = Object.prototype.toString, ya = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, va = function(t) {
3836
+ return typeof Array.isArray == "function" ? Array.isArray(t) : Ko.call(t) === "[object Array]";
3805
3837
  }, xa = function(t) {
3806
- if (!t || Yo.call(t) !== "[object Object]")
3838
+ if (!t || Ko.call(t) !== "[object Object]")
3807
3839
  return !1;
3808
3840
  var n = _n.call(t, "constructor"), r = t.constructor && t.constructor.prototype && _n.call(t.constructor.prototype, "isPrototypeOf");
3809
3841
  if (t.constructor && !n && !r)
@@ -3835,7 +3867,7 @@ var _n = Object.prototype.hasOwnProperty, Yo = Object.prototype.toString, ya = O
3835
3867
  return l;
3836
3868
  };
3837
3869
  const ka = /* @__PURE__ */ st(Wc);
3838
- function Yr(e) {
3870
+ function Kr(e) {
3839
3871
  if (typeof e != "object" || e === null)
3840
3872
  return !1;
3841
3873
  const t = Object.getPrototypeOf(e);
@@ -3897,7 +3929,7 @@ function Xc(e, t) {
3897
3929
  i(null, o);
3898
3930
  }
3899
3931
  }
3900
- const Zc = Jo().freeze(), Ko = {}.hasOwnProperty;
3932
+ const Zc = Jo().freeze(), Yo = {}.hasOwnProperty;
3901
3933
  function Jo() {
3902
3934
  const e = Gc(), t = [];
3903
3935
  let n = {}, r, i = -1;
@@ -3910,7 +3942,7 @@ function Jo() {
3910
3942
  return x.data(ka(!0, {}, n)), x;
3911
3943
  }
3912
3944
  function o(x, E) {
3913
- return typeof x == "string" ? arguments.length === 2 ? (Fr("data", r), n[x] = E, a) : Ko.call(n, x) && n[x] || null : x ? (Fr("data", r), n = x, a) : n;
3945
+ return typeof x == "string" ? arguments.length === 2 ? (Fr("data", r), n[x] = E, a) : Yo.call(n, x) && n[x] || null : x ? (Fr("data", r), n = x, a) : n;
3914
3946
  }
3915
3947
  function l() {
3916
3948
  if (r)
@@ -3966,7 +3998,7 @@ function Jo() {
3966
3998
  q = t[H];
3967
3999
  break;
3968
4000
  }
3969
- q ? (Yr(q[1]) && Yr(D) && (D = ka(!0, q[1], D)), q[1] = D) : t.push([...arguments]);
4001
+ q ? (Kr(q[1]) && Kr(D) && (D = ka(!0, q[1], D)), q[1] = D) : t.push([...arguments]);
3970
4002
  }
3971
4003
  }
3972
4004
  function s(x) {
@@ -4033,12 +4065,12 @@ function Sa(e, t) {
4033
4065
  // Classes’ prototype methods are not enumerable, so we check if some value
4034
4066
  // exists in the prototype.
4035
4067
  // type-coverage:ignore-next-line
4036
- (Yc(e.prototype) || t in e.prototype);
4068
+ (Kc(e.prototype) || t in e.prototype);
4037
4069
  }
4038
- function Yc(e) {
4070
+ function Kc(e) {
4039
4071
  let t;
4040
4072
  for (t in e)
4041
- if (Ko.call(e, t))
4073
+ if (Yo.call(e, t))
4042
4074
  return !0;
4043
4075
  return !1;
4044
4076
  }
@@ -4057,7 +4089,7 @@ function Fr(e, t) {
4057
4089
  );
4058
4090
  }
4059
4091
  function _a(e) {
4060
- if (!Yr(e) || typeof e.type != "string")
4092
+ if (!Kr(e) || typeof e.type != "string")
4061
4093
  throw new TypeError("Expected node, got `" + e + "`");
4062
4094
  }
4063
4095
  function Ea(e, t, n) {
@@ -4067,9 +4099,9 @@ function Ea(e, t, n) {
4067
4099
  );
4068
4100
  }
4069
4101
  function Xt(e) {
4070
- return Kc(e) ? e : new Zo(e);
4102
+ return Yc(e) ? e : new Zo(e);
4071
4103
  }
4072
- function Kc(e) {
4104
+ function Yc(e) {
4073
4105
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
4074
4106
  }
4075
4107
  function Jc(e) {
@@ -4146,7 +4178,7 @@ function af(e, t) {
4146
4178
  lt(e, 0, 0, r);
4147
4179
  }
4148
4180
  const of = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, it = bt(/[A-Za-z]/), ze = bt(/[\dA-Za-z]/), lf = bt(/[#-'*+\--9=?A-Z^-~]/);
4149
- function Kr(e) {
4181
+ function Yr(e) {
4150
4182
  return (
4151
4183
  // Special whitespace codes (which have negative values), C0 and Control
4152
4184
  // character DEL
@@ -4154,7 +4186,7 @@ function Kr(e) {
4154
4186
  );
4155
4187
  }
4156
4188
  const Jr = bt(/\d/), sf = bt(/[\dA-Fa-f]/), uf = bt(/[!-/:-@[-`{-~]/);
4157
- function K(e) {
4189
+ function Y(e) {
4158
4190
  return e !== null && e < -2;
4159
4191
  }
4160
4192
  function Me(e) {
@@ -4214,7 +4246,7 @@ function pf(e) {
4214
4246
  e.exit("chunkText"), e.exit("paragraph"), e.consume(l);
4215
4247
  return;
4216
4248
  }
4217
- return K(l) ? (e.consume(l), e.exit("chunkText"), a) : (e.consume(l), o);
4249
+ return Y(l) ? (e.consume(l), e.exit("chunkText"), a) : (e.consume(l), o);
4218
4250
  }
4219
4251
  }
4220
4252
  const hf = {
@@ -4306,7 +4338,7 @@ function mf(e) {
4306
4338
  E(e.exit("chunkFlow"), !0), C(0), e.consume(L);
4307
4339
  return;
4308
4340
  }
4309
- return K(L) ? (e.consume(L), E(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(L), x);
4341
+ return Y(L) ? (e.consume(L), E(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(L), x);
4310
4342
  }
4311
4343
  function E(L, U) {
4312
4344
  const j = t.sliceStream(L);
@@ -4475,7 +4507,7 @@ function xf(e, t, n) {
4475
4507
  return f === 58 ? (e.consume(f), r = 0, u) : (f === 43 || f === 45 || f === 46 || ze(f)) && r++ < 32 ? (e.consume(f), l) : (r = 0, s(f));
4476
4508
  }
4477
4509
  function u(f) {
4478
- return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : f === null || f === 32 || f === 60 || Kr(f) ? n(f) : (e.consume(f), u);
4510
+ return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : f === null || f === 32 || f === 60 || Yr(f) ? n(f) : (e.consume(f), u);
4479
4511
  }
4480
4512
  function s(f) {
4481
4513
  return f === 64 ? (e.consume(f), c) : lf(f) ? (e.consume(f), s) : n(f);
@@ -4504,7 +4536,7 @@ function wf(e, t, n) {
4504
4536
  return se(a) ? ge(e, i, "linePrefix")(a) : i(a);
4505
4537
  }
4506
4538
  function i(a) {
4507
- return a === null || K(a) ? t(a) : n(a);
4539
+ return a === null || Y(a) ? t(a) : n(a);
4508
4540
  }
4509
4541
  }
4510
4542
  const el = {
@@ -4620,20 +4652,20 @@ function Tf(e, t, n) {
4620
4652
  return v === l ? (o++, e.consume(v), c) : o < 3 ? n(v) : (e.exit("codeFencedFenceSequence"), se(v) ? ge(e, d, "whitespace")(v) : d(v));
4621
4653
  }
4622
4654
  function d(v) {
4623
- return v === null || K(v) ? (e.exit("codeFencedFence"), r.interrupt ? t(v) : e.check(Na, x, U)(v)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
4655
+ return v === null || Y(v) ? (e.exit("codeFencedFence"), r.interrupt ? t(v) : e.check(Na, x, U)(v)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
4624
4656
  contentType: "string"
4625
4657
  }), b(v));
4626
4658
  }
4627
4659
  function b(v) {
4628
- return v === null || K(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(v)) : se(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ge(e, f, "whitespace")(v)) : v === 96 && v === l ? n(v) : (e.consume(v), b);
4660
+ return v === null || Y(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(v)) : se(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ge(e, f, "whitespace")(v)) : v === 96 && v === l ? n(v) : (e.consume(v), b);
4629
4661
  }
4630
4662
  function f(v) {
4631
- return v === null || K(v) ? d(v) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
4663
+ return v === null || Y(v) ? d(v) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
4632
4664
  contentType: "string"
4633
4665
  }), k(v));
4634
4666
  }
4635
4667
  function k(v) {
4636
- return v === null || K(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(v)) : v === 96 && v === l ? n(v) : (e.consume(v), k);
4668
+ return v === null || Y(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(v)) : v === 96 && v === l ? n(v) : (e.consume(v), k);
4637
4669
  }
4638
4670
  function x(v) {
4639
4671
  return e.attempt(i, U, E)(v);
@@ -4650,10 +4682,10 @@ function Tf(e, t, n) {
4650
4682
  )(v) : z(v);
4651
4683
  }
4652
4684
  function z(v) {
4653
- return v === null || K(v) ? e.check(Na, x, U)(v) : (e.enter("codeFlowValue"), L(v));
4685
+ return v === null || Y(v) ? e.check(Na, x, U)(v) : (e.enter("codeFlowValue"), L(v));
4654
4686
  }
4655
4687
  function L(v) {
4656
- return v === null || K(v) ? (e.exit("codeFlowValue"), z(v)) : (e.consume(v), L);
4688
+ return v === null || Y(v) ? (e.exit("codeFlowValue"), z(v)) : (e.consume(v), L);
4657
4689
  }
4658
4690
  function U(v) {
4659
4691
  return e.exit("codeFenced"), t(v);
@@ -4679,7 +4711,7 @@ function Tf(e, t, n) {
4679
4711
  return _ === l ? (q++, v.consume(_), O) : q >= o ? (v.exit("codeFencedFenceSequence"), se(_) ? ge(v, A, "whitespace")(_) : A(_)) : H(_);
4680
4712
  }
4681
4713
  function A(_) {
4682
- return _ === null || K(_) ? (v.exit("codeFencedFence"), D(_)) : H(_);
4714
+ return _ === null || Y(_) ? (v.exit("codeFencedFence"), D(_)) : H(_);
4683
4715
  }
4684
4716
  }
4685
4717
  }
@@ -4711,10 +4743,10 @@ function If(e, t, n) {
4711
4743
  return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(s) : n(s);
4712
4744
  }
4713
4745
  function o(s) {
4714
- return s === null ? u(s) : K(s) ? e.attempt(Pf, o, u)(s) : (e.enter("codeFlowValue"), l(s));
4746
+ return s === null ? u(s) : Y(s) ? e.attempt(Pf, o, u)(s) : (e.enter("codeFlowValue"), l(s));
4715
4747
  }
4716
4748
  function l(s) {
4717
- return s === null || K(s) ? (e.exit("codeFlowValue"), o(s)) : (e.consume(s), l);
4749
+ return s === null || Y(s) ? (e.exit("codeFlowValue"), o(s)) : (e.consume(s), l);
4718
4750
  }
4719
4751
  function u(s) {
4720
4752
  return e.exit("codeIndented"), t(s);
@@ -4724,11 +4756,11 @@ function Af(e, t, n) {
4724
4756
  const r = this;
4725
4757
  return i;
4726
4758
  function i(o) {
4727
- return r.parser.lazy[r.now().line] ? n(o) : K(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i) : ge(e, a, "linePrefix", 5)(o);
4759
+ return r.parser.lazy[r.now().line] ? n(o) : Y(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i) : ge(e, a, "linePrefix", 5)(o);
4728
4760
  }
4729
4761
  function a(o) {
4730
4762
  const l = r.events[r.events.length - 1];
4731
- return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : K(o) ? i(o) : n(o);
4763
+ return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : Y(o) ? i(o) : n(o);
4732
4764
  }
4733
4765
  }
4734
4766
  const Ff = {
@@ -4763,10 +4795,10 @@ function Lf(e, t, n) {
4763
4795
  return d === 96 ? (e.consume(d), r++, l) : (e.exit("codeTextSequence"), u(d));
4764
4796
  }
4765
4797
  function u(d) {
4766
- return d === null ? n(d) : d === 32 ? (e.enter("space"), e.consume(d), e.exit("space"), u) : d === 96 ? (a = e.enter("codeTextSequence"), i = 0, c(d)) : K(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), u) : (e.enter("codeTextData"), s(d));
4798
+ return d === null ? n(d) : d === 32 ? (e.enter("space"), e.consume(d), e.exit("space"), u) : d === 96 ? (a = e.enter("codeTextSequence"), i = 0, c(d)) : Y(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), u) : (e.enter("codeTextData"), s(d));
4767
4799
  }
4768
4800
  function s(d) {
4769
- return d === null || d === 32 || d === 96 || K(d) ? (e.exit("codeTextData"), u(d)) : (e.consume(d), s);
4801
+ return d === null || d === 32 || d === 96 || Y(d) ? (e.exit("codeTextData"), u(d)) : (e.consume(d), s);
4770
4802
  }
4771
4803
  function c(d) {
4772
4804
  return d === 96 ? (e.consume(d), i++, c) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(d)) : (a.type = "codeTextData", s(d));
@@ -4832,7 +4864,7 @@ function zf(e, t) {
4832
4864
  }), i(l);
4833
4865
  }
4834
4866
  function i(l) {
4835
- return l === null ? a(l) : K(l) ? e.check(
4867
+ return l === null ? a(l) : Y(l) ? e.check(
4836
4868
  Rf,
4837
4869
  o,
4838
4870
  a
@@ -4855,7 +4887,7 @@ function Hf(e, t, n) {
4855
4887
  return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), ge(e, a, "linePrefix");
4856
4888
  }
4857
4889
  function a(o) {
4858
- if (o === null || K(o))
4890
+ if (o === null || Y(o))
4859
4891
  return n(o);
4860
4892
  const l = r.events[r.events.length - 1];
4861
4893
  return !r.parser.constructs.disable.null.includes("codeIndented") && l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : e.interrupt(r.parser.constructs.flow, n, t)(o);
@@ -4866,7 +4898,7 @@ function il(e, t, n, r, i, a, o, l, u) {
4866
4898
  let c = 0;
4867
4899
  return d;
4868
4900
  function d(C) {
4869
- return C === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(C), e.exit(a), b) : C === null || C === 32 || C === 41 || Kr(C) ? n(C) : (e.enter(r), e.enter(o), e.enter(l), e.enter("chunkString", {
4901
+ return C === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(C), e.exit(a), b) : C === null || C === 32 || C === 41 || Yr(C) ? n(C) : (e.enter(r), e.enter(o), e.enter(l), e.enter("chunkString", {
4870
4902
  contentType: "string"
4871
4903
  }), x(C));
4872
4904
  }
@@ -4876,13 +4908,13 @@ function il(e, t, n, r, i, a, o, l, u) {
4876
4908
  }), f(C));
4877
4909
  }
4878
4910
  function f(C) {
4879
- return C === 62 ? (e.exit("chunkString"), e.exit(l), b(C)) : C === null || C === 60 || K(C) ? n(C) : (e.consume(C), C === 92 ? k : f);
4911
+ return C === 62 ? (e.exit("chunkString"), e.exit(l), b(C)) : C === null || C === 60 || Y(C) ? n(C) : (e.consume(C), C === 92 ? k : f);
4880
4912
  }
4881
4913
  function k(C) {
4882
4914
  return C === 60 || C === 62 || C === 92 ? (e.consume(C), f) : f(C);
4883
4915
  }
4884
4916
  function x(C) {
4885
- return !c && (C === null || C === 41 || Me(C)) ? (e.exit("chunkString"), e.exit(l), e.exit(o), e.exit(r), t(C)) : c < s && C === 40 ? (e.consume(C), c++, x) : C === 41 ? (e.consume(C), c--, x) : C === null || C === 32 || C === 40 || Kr(C) ? n(C) : (e.consume(C), C === 92 ? E : x);
4917
+ return !c && (C === null || C === 41 || Me(C)) ? (e.exit("chunkString"), e.exit(l), e.exit(o), e.exit(r), t(C)) : c < s && C === 40 ? (e.consume(C), c++, x) : C === 41 ? (e.consume(C), c--, x) : C === null || C === 32 || C === 40 || Yr(C) ? n(C) : (e.consume(C), C === 92 ? E : x);
4886
4918
  }
4887
4919
  function E(C) {
4888
4920
  return C === 40 || C === 41 || C === 92 ? (e.consume(C), x) : x(C);
@@ -4901,12 +4933,12 @@ function al(e, t, n, r, i, a) {
4901
4933
  // which doesn’t need this.
4902
4934
  // Hidden footnotes hook.
4903
4935
  /* c8 ignore next 3 */
4904
- f === 94 && !l && "_hiddenFootnoteSupport" in o.parser.constructs ? n(f) : f === 93 ? (e.exit(a), e.enter(i), e.consume(f), e.exit(i), e.exit(r), t) : K(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), c) : (e.enter("chunkString", {
4936
+ f === 94 && !l && "_hiddenFootnoteSupport" in o.parser.constructs ? n(f) : f === 93 ? (e.exit(a), e.enter(i), e.consume(f), e.exit(i), e.exit(r), t) : Y(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), c) : (e.enter("chunkString", {
4905
4937
  contentType: "string"
4906
4938
  }), d(f));
4907
4939
  }
4908
4940
  function d(f) {
4909
- return f === null || f === 91 || f === 93 || K(f) || l++ > 999 ? (e.exit("chunkString"), c(f)) : (e.consume(f), u || (u = !se(f)), f === 92 ? b : d);
4941
+ return f === null || f === 91 || f === 93 || Y(f) || l++ > 999 ? (e.exit("chunkString"), c(f)) : (e.consume(f), u || (u = !se(f)), f === 92 ? b : d);
4910
4942
  }
4911
4943
  function b(f) {
4912
4944
  return f === 91 || f === 92 || f === 93 ? (e.consume(f), l++, d) : d(f);
@@ -4922,12 +4954,12 @@ function ol(e, t, n, r, i, a) {
4922
4954
  return b === o ? (e.enter(i), e.consume(b), e.exit(i), e.exit(r), t) : (e.enter(a), s(b));
4923
4955
  }
4924
4956
  function s(b) {
4925
- return b === o ? (e.exit(a), u(o)) : b === null ? n(b) : K(b) ? (e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), ge(e, s, "linePrefix")) : (e.enter("chunkString", {
4957
+ return b === o ? (e.exit(a), u(o)) : b === null ? n(b) : Y(b) ? (e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), ge(e, s, "linePrefix")) : (e.enter("chunkString", {
4926
4958
  contentType: "string"
4927
4959
  }), c(b));
4928
4960
  }
4929
4961
  function c(b) {
4930
- return b === o || b === null || K(b) ? (e.exit("chunkString"), s(b)) : (e.consume(b), b === 92 ? d : c);
4962
+ return b === o || b === null || Y(b) ? (e.exit("chunkString"), s(b)) : (e.consume(b), b === 92 ? d : c);
4931
4963
  }
4932
4964
  function d(b) {
4933
4965
  return b === o || b === 92 ? (e.consume(b), c) : c(b);
@@ -4937,7 +4969,7 @@ function nn(e, t) {
4937
4969
  let n;
4938
4970
  return r;
4939
4971
  function r(i) {
4940
- return K(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : se(i) ? ge(
4972
+ return Y(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : se(i) ? ge(
4941
4973
  e,
4942
4974
  r,
4943
4975
  n ? "linePrefix" : "lineSuffix"
@@ -5001,7 +5033,7 @@ function qf(e, t, n) {
5001
5033
  return se(f) ? ge(e, b, "whitespace")(f) : b(f);
5002
5034
  }
5003
5035
  function b(f) {
5004
- return f === null || K(f) ? (e.exit("definition"), r.parser.defined.push(i), t(f)) : n(f);
5036
+ return f === null || Y(f) ? (e.exit("definition"), r.parser.defined.push(i), t(f)) : n(f);
5005
5037
  }
5006
5038
  }
5007
5039
  function Vf(e, t, n) {
@@ -5023,7 +5055,7 @@ function Vf(e, t, n) {
5023
5055
  return se(l) ? ge(e, o, "whitespace")(l) : o(l);
5024
5056
  }
5025
5057
  function o(l) {
5026
- return l === null || K(l) ? t(l) : n(l);
5058
+ return l === null || Y(l) ? t(l) : n(l);
5027
5059
  }
5028
5060
  }
5029
5061
  const Wf = {
@@ -5036,12 +5068,12 @@ function Gf(e, t, n) {
5036
5068
  return e.enter("hardBreakEscape"), e.consume(a), i;
5037
5069
  }
5038
5070
  function i(a) {
5039
- return K(a) ? (e.exit("hardBreakEscape"), t(a)) : n(a);
5071
+ return Y(a) ? (e.exit("hardBreakEscape"), t(a)) : n(a);
5040
5072
  }
5041
5073
  }
5042
5074
  const Xf = {
5043
5075
  name: "headingAtx",
5044
- tokenize: Yf,
5076
+ tokenize: Kf,
5045
5077
  resolve: Zf
5046
5078
  };
5047
5079
  function Zf(e, t) {
@@ -5062,7 +5094,7 @@ function Zf(e, t) {
5062
5094
  ["exit", i, t]
5063
5095
  ])), e;
5064
5096
  }
5065
- function Yf(e, t, n) {
5097
+ function Kf(e, t, n) {
5066
5098
  let r = 0;
5067
5099
  return i;
5068
5100
  function i(c) {
@@ -5075,7 +5107,7 @@ function Yf(e, t, n) {
5075
5107
  return c === 35 && r++ < 6 ? (e.consume(c), o) : c === null || Me(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
5076
5108
  }
5077
5109
  function l(c) {
5078
- return c === 35 ? (e.enter("atxHeadingSequence"), u(c)) : c === null || K(c) ? (e.exit("atxHeading"), t(c)) : se(c) ? ge(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), s(c));
5110
+ return c === 35 ? (e.enter("atxHeadingSequence"), u(c)) : c === null || Y(c) ? (e.exit("atxHeading"), t(c)) : se(c) ? ge(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), s(c));
5079
5111
  }
5080
5112
  function u(c) {
5081
5113
  return c === 35 ? (e.consume(c), u) : (e.exit("atxHeadingSequence"), l(c));
@@ -5084,7 +5116,7 @@ function Yf(e, t, n) {
5084
5116
  return c === null || c === 35 || Me(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), s);
5085
5117
  }
5086
5118
  }
5087
- const Kf = [
5119
+ const Yf = [
5088
5120
  "address",
5089
5121
  "article",
5090
5122
  "aside",
@@ -5194,7 +5226,7 @@ function nd(e, t, n) {
5194
5226
  function E(m) {
5195
5227
  if (m === null || m === 47 || m === 62 || Me(m)) {
5196
5228
  const ee = m === 47, he = o.toLowerCase();
5197
- return !ee && !a && La.includes(he) ? (i = 1, r.interrupt ? t(m) : S(m)) : Kf.includes(o.toLowerCase()) ? (i = 6, ee ? (e.consume(m), C) : r.interrupt ? t(m) : S(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(m) : a ? z(m) : L(m));
5229
+ return !ee && !a && La.includes(he) ? (i = 1, r.interrupt ? t(m) : S(m)) : Yf.includes(o.toLowerCase()) ? (i = 6, ee ? (e.consume(m), C) : r.interrupt ? t(m) : S(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(m) : a ? z(m) : L(m));
5198
5230
  }
5199
5231
  return m === 45 || ze(m) ? (e.consume(m), o += String.fromCharCode(m), E) : n(m);
5200
5232
  }
@@ -5217,7 +5249,7 @@ function nd(e, t, n) {
5217
5249
  return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), u = m, D) : se(m) ? (e.consume(m), v) : H(m);
5218
5250
  }
5219
5251
  function D(m) {
5220
- return m === u ? (e.consume(m), u = null, q) : m === null || K(m) ? n(m) : (e.consume(m), D);
5252
+ return m === u ? (e.consume(m), u = null, q) : m === null || Y(m) ? n(m) : (e.consume(m), D);
5221
5253
  }
5222
5254
  function H(m) {
5223
5255
  return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || Me(m) ? j(m) : (e.consume(m), H);
@@ -5229,14 +5261,14 @@ function nd(e, t, n) {
5229
5261
  return m === 62 ? (e.consume(m), I) : n(m);
5230
5262
  }
5231
5263
  function I(m) {
5232
- return m === null || K(m) ? S(m) : se(m) ? (e.consume(m), I) : n(m);
5264
+ return m === null || Y(m) ? S(m) : se(m) ? (e.consume(m), I) : n(m);
5233
5265
  }
5234
5266
  function S(m) {
5235
- return m === 45 && i === 2 ? (e.consume(m), P) : m === 60 && i === 1 ? (e.consume(m), M) : m === 62 && i === 4 ? (e.consume(m), G) : m === 63 && i === 3 ? (e.consume(m), p) : m === 93 && i === 5 ? (e.consume(m), $) : K(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
5267
+ return m === 45 && i === 2 ? (e.consume(m), P) : m === 60 && i === 1 ? (e.consume(m), M) : m === 62 && i === 4 ? (e.consume(m), G) : m === 63 && i === 3 ? (e.consume(m), p) : m === 93 && i === 5 ? (e.consume(m), $) : Y(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
5236
5268
  Qf,
5237
5269
  J,
5238
5270
  O
5239
- )(m)) : m === null || K(m) ? (e.exit("htmlFlowData"), O(m)) : (e.consume(m), S);
5271
+ )(m)) : m === null || Y(m) ? (e.exit("htmlFlowData"), O(m)) : (e.consume(m), S);
5240
5272
  }
5241
5273
  function O(m) {
5242
5274
  return e.check(
@@ -5249,7 +5281,7 @@ function nd(e, t, n) {
5249
5281
  return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), _;
5250
5282
  }
5251
5283
  function _(m) {
5252
- return m === null || K(m) ? O(m) : (e.enter("htmlFlowData"), S(m));
5284
+ return m === null || Y(m) ? O(m) : (e.enter("htmlFlowData"), S(m));
5253
5285
  }
5254
5286
  function P(m) {
5255
5287
  return m === 45 ? (e.consume(m), p) : S(m);
@@ -5271,7 +5303,7 @@ function nd(e, t, n) {
5271
5303
  return m === 62 ? (e.consume(m), G) : m === 45 && i === 2 ? (e.consume(m), p) : S(m);
5272
5304
  }
5273
5305
  function G(m) {
5274
- return m === null || K(m) ? (e.exit("htmlFlowData"), J(m)) : (e.consume(m), G);
5306
+ return m === null || Y(m) ? (e.exit("htmlFlowData"), J(m)) : (e.consume(m), G);
5275
5307
  }
5276
5308
  function J(m) {
5277
5309
  return e.exit("htmlFlow"), t(m);
@@ -5281,7 +5313,7 @@ function rd(e, t, n) {
5281
5313
  const r = this;
5282
5314
  return i;
5283
5315
  function i(o) {
5284
- return K(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), a) : n(o);
5316
+ return Y(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), a) : n(o);
5285
5317
  }
5286
5318
  function a(o) {
5287
5319
  return r.parser.lazy[r.now().line] ? n(o) : t(o);
@@ -5314,7 +5346,7 @@ function od(e, t, n) {
5314
5346
  return p === 45 ? (e.consume(p), f) : n(p);
5315
5347
  }
5316
5348
  function d(p) {
5317
- return p === null ? n(p) : p === 45 ? (e.consume(p), b) : K(p) ? (o = d, M(p)) : (e.consume(p), d);
5349
+ return p === null ? n(p) : p === 45 ? (e.consume(p), b) : Y(p) ? (o = d, M(p)) : (e.consume(p), d);
5318
5350
  }
5319
5351
  function b(p) {
5320
5352
  return p === 45 ? (e.consume(p), f) : d(p);
@@ -5327,7 +5359,7 @@ function od(e, t, n) {
5327
5359
  return p === G.charCodeAt(a++) ? (e.consume(p), a === G.length ? x : k) : n(p);
5328
5360
  }
5329
5361
  function x(p) {
5330
- return p === null ? n(p) : p === 93 ? (e.consume(p), E) : K(p) ? (o = x, M(p)) : (e.consume(p), x);
5362
+ return p === null ? n(p) : p === 93 ? (e.consume(p), E) : Y(p) ? (o = x, M(p)) : (e.consume(p), x);
5331
5363
  }
5332
5364
  function E(p) {
5333
5365
  return p === 93 ? (e.consume(p), C) : x(p);
@@ -5336,10 +5368,10 @@ function od(e, t, n) {
5336
5368
  return p === 62 ? P(p) : p === 93 ? (e.consume(p), C) : x(p);
5337
5369
  }
5338
5370
  function z(p) {
5339
- return p === null || p === 62 ? P(p) : K(p) ? (o = z, M(p)) : (e.consume(p), z);
5371
+ return p === null || p === 62 ? P(p) : Y(p) ? (o = z, M(p)) : (e.consume(p), z);
5340
5372
  }
5341
5373
  function L(p) {
5342
- return p === null ? n(p) : p === 63 ? (e.consume(p), U) : K(p) ? (o = L, M(p)) : (e.consume(p), L);
5374
+ return p === null ? n(p) : p === 63 ? (e.consume(p), U) : Y(p) ? (o = L, M(p)) : (e.consume(p), L);
5343
5375
  }
5344
5376
  function U(p) {
5345
5377
  return p === 62 ? P(p) : L(p);
@@ -5351,25 +5383,25 @@ function od(e, t, n) {
5351
5383
  return p === 45 || ze(p) ? (e.consume(p), v) : D(p);
5352
5384
  }
5353
5385
  function D(p) {
5354
- return K(p) ? (o = D, M(p)) : se(p) ? (e.consume(p), D) : P(p);
5386
+ return Y(p) ? (o = D, M(p)) : se(p) ? (e.consume(p), D) : P(p);
5355
5387
  }
5356
5388
  function H(p) {
5357
5389
  return p === 45 || ze(p) ? (e.consume(p), H) : p === 47 || p === 62 || Me(p) ? q(p) : n(p);
5358
5390
  }
5359
5391
  function q(p) {
5360
- return p === 47 ? (e.consume(p), P) : p === 58 || p === 95 || it(p) ? (e.consume(p), V) : K(p) ? (o = q, M(p)) : se(p) ? (e.consume(p), q) : P(p);
5392
+ return p === 47 ? (e.consume(p), P) : p === 58 || p === 95 || it(p) ? (e.consume(p), V) : Y(p) ? (o = q, M(p)) : se(p) ? (e.consume(p), q) : P(p);
5361
5393
  }
5362
5394
  function V(p) {
5363
5395
  return p === 45 || p === 46 || p === 58 || p === 95 || ze(p) ? (e.consume(p), V) : I(p);
5364
5396
  }
5365
5397
  function I(p) {
5366
- return p === 61 ? (e.consume(p), S) : K(p) ? (o = I, M(p)) : se(p) ? (e.consume(p), I) : q(p);
5398
+ return p === 61 ? (e.consume(p), S) : Y(p) ? (o = I, M(p)) : se(p) ? (e.consume(p), I) : q(p);
5367
5399
  }
5368
5400
  function S(p) {
5369
- return p === null || p === 60 || p === 61 || p === 62 || p === 96 ? n(p) : p === 34 || p === 39 ? (e.consume(p), i = p, O) : K(p) ? (o = S, M(p)) : se(p) ? (e.consume(p), S) : (e.consume(p), A);
5401
+ return p === null || p === 60 || p === 61 || p === 62 || p === 96 ? n(p) : p === 34 || p === 39 ? (e.consume(p), i = p, O) : Y(p) ? (o = S, M(p)) : se(p) ? (e.consume(p), S) : (e.consume(p), A);
5370
5402
  }
5371
5403
  function O(p) {
5372
- return p === i ? (e.consume(p), i = void 0, _) : p === null ? n(p) : K(p) ? (o = O, M(p)) : (e.consume(p), O);
5404
+ return p === i ? (e.consume(p), i = void 0, _) : p === null ? n(p) : Y(p) ? (o = O, M(p)) : (e.consume(p), O);
5373
5405
  }
5374
5406
  function A(p) {
5375
5407
  return p === null || p === 34 || p === 39 || p === 60 || p === 61 || p === 96 ? n(p) : p === 47 || p === 62 || Me(p) ? q(p) : (e.consume(p), A);
@@ -5637,7 +5669,7 @@ function wd(e, t, n) {
5637
5669
  return i = s, l(s);
5638
5670
  }
5639
5671
  function l(s) {
5640
- return s === i ? (e.enter("thematicBreakSequence"), u(s)) : r >= 3 && (s === null || K(s)) ? (e.exit("thematicBreak"), t(s)) : n(s);
5672
+ return s === i ? (e.enter("thematicBreakSequence"), u(s)) : r >= 3 && (s === null || Y(s)) ? (e.exit("thematicBreak"), t(s)) : n(s);
5641
5673
  }
5642
5674
  function u(s) {
5643
5675
  return s === i ? (e.consume(s), r++, u) : (e.exit("thematicBreakSequence"), se(s) ? ge(e, l, "whitespace")(s) : l(s));
@@ -5793,7 +5825,7 @@ function Id(e, t, n) {
5793
5825
  return s === i ? (e.consume(s), l) : (e.exit("setextHeadingLineSequence"), se(s) ? ge(e, u, "lineSuffix")(s) : u(s));
5794
5826
  }
5795
5827
  function u(s) {
5796
- return s === null || K(s) ? (e.exit("setextHeadingLine"), t(s)) : n(s);
5828
+ return s === null || Y(s) ? (e.exit("setextHeadingLine"), t(s)) : n(s);
5797
5829
  }
5798
5830
  }
5799
5831
  const Ad = {
@@ -6002,7 +6034,7 @@ function Dd(e, t, n) {
6002
6034
  c = c(I);
6003
6035
  }
6004
6036
  function z(I) {
6005
- K(I) ? (r.line++, r.column = 1, r.offset += I === -3 ? 2 : 1, V()) : I !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === o[r._index].length && (r._bufferIndex = -1, r._index++)), s.previous = I;
6037
+ Y(I) ? (r.line++, r.column = 1, r.offset += I === -3 ? 2 : 1, V()) : I !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === o[r._index].length && (r._bufferIndex = -1, r._index++)), s.previous = I;
6006
6038
  }
6007
6039
  function L(I, S) {
6008
6040
  const O = S || {};
@@ -6204,7 +6236,7 @@ const zd = {
6204
6236
  string: qd,
6205
6237
  text: Vd
6206
6238
  }, Symbol.toStringTag, { value: "Module" }));
6207
- function Yd(e) {
6239
+ function Kd(e) {
6208
6240
  const n = (
6209
6241
  /** @type {FullNormalizedExtension} */
6210
6242
  nf([Zd, ...(e || {}).extensions || []])
@@ -6227,7 +6259,7 @@ function Yd(e) {
6227
6259
  }
6228
6260
  }
6229
6261
  const Da = /[\0\t\n\r]/g;
6230
- function Kd() {
6262
+ function Yd() {
6231
6263
  let e = 1, t = "", n = !0, r;
6232
6264
  return i;
6233
6265
  function i(a, o, l) {
@@ -6307,7 +6339,7 @@ const cl = {}.hasOwnProperty, np = (
6307
6339
  function(e, t, n) {
6308
6340
  return typeof t != "string" && (n = t, t = void 0), rp(n)(
6309
6341
  Jd(
6310
- Yd(n).document().write(Kd()(e, t, !0))
6342
+ Kd(n).document().write(Yd()(e, t, !0))
6311
6343
  )
6312
6344
  );
6313
6345
  }
@@ -6418,7 +6450,7 @@ function rp(e) {
6418
6450
  type: "root",
6419
6451
  children: []
6420
6452
  };
6421
- const Y = {
6453
+ const K = {
6422
6454
  stack: [B],
6423
6455
  tokenStack: [],
6424
6456
  config: t,
@@ -6445,14 +6477,14 @@ function rp(e) {
6445
6477
  {
6446
6478
  sliceSerialize: F[ue][2].sliceSerialize
6447
6479
  },
6448
- Y
6480
+ K
6449
6481
  ),
6450
6482
  F[ue][1]
6451
6483
  );
6452
6484
  }
6453
- if (Y.tokenStack.length > 0) {
6454
- const Ae = Y.tokenStack[Y.tokenStack.length - 1];
6455
- (Ae[1] || Ra).call(Y, void 0, Ae[0]);
6485
+ if (K.tokenStack.length > 0) {
6486
+ const Ae = K.tokenStack[K.tokenStack.length - 1];
6487
+ (Ae[1] || Ra).call(K, void 0, Ae[0]);
6456
6488
  }
6457
6489
  for (B.position = {
6458
6490
  start: ht(
@@ -6473,24 +6505,24 @@ function rp(e) {
6473
6505
  B = t.transforms[ue](B) || B;
6474
6506
  return B;
6475
6507
  }
6476
- function i(F, B, Y) {
6508
+ function i(F, B, K) {
6477
6509
  let oe = B - 1, ue = -1, Ae = !1, tt, Ze, De, nt;
6478
- for (; ++oe <= Y; ) {
6510
+ for (; ++oe <= K; ) {
6479
6511
  const xe = F[oe];
6480
6512
  if (xe[1].type === "listUnordered" || xe[1].type === "listOrdered" || xe[1].type === "blockQuote" ? (xe[0] === "enter" ? ue++ : ue--, nt = void 0) : xe[1].type === "lineEndingBlank" ? xe[0] === "enter" && (tt && !nt && !ue && !De && (De = oe), nt = void 0) : xe[1].type === "linePrefix" || xe[1].type === "listItemValue" || xe[1].type === "listItemMarker" || xe[1].type === "listItemPrefix" || xe[1].type === "listItemPrefixWhitespace" || (nt = void 0), !ue && xe[0] === "enter" && xe[1].type === "listItemPrefix" || ue === -1 && xe[0] === "exit" && (xe[1].type === "listUnordered" || xe[1].type === "listOrdered")) {
6481
6513
  if (tt) {
6482
6514
  let Ft = oe;
6483
6515
  for (Ze = void 0; Ft--; ) {
6484
- const Ye = F[Ft];
6485
- if (Ye[1].type === "lineEnding" || Ye[1].type === "lineEndingBlank") {
6486
- if (Ye[0] === "exit") continue;
6487
- Ze && (F[Ze][1].type = "lineEndingBlank", Ae = !0), Ye[1].type = "lineEnding", Ze = Ft;
6488
- } else if (!(Ye[1].type === "linePrefix" || Ye[1].type === "blockQuotePrefix" || Ye[1].type === "blockQuotePrefixWhitespace" || Ye[1].type === "blockQuoteMarker" || Ye[1].type === "listItemIndent")) break;
6516
+ const Ke = F[Ft];
6517
+ if (Ke[1].type === "lineEnding" || Ke[1].type === "lineEndingBlank") {
6518
+ if (Ke[0] === "exit") continue;
6519
+ Ze && (F[Ze][1].type = "lineEndingBlank", Ae = !0), Ke[1].type = "lineEnding", Ze = Ft;
6520
+ } else if (!(Ke[1].type === "linePrefix" || Ke[1].type === "blockQuotePrefix" || Ke[1].type === "blockQuotePrefixWhitespace" || Ke[1].type === "blockQuoteMarker" || Ke[1].type === "listItemIndent")) break;
6489
6521
  }
6490
6522
  De && (!Ze || De < Ze) && (tt._spread = !0), tt.end = Object.assign(
6491
6523
  {},
6492
6524
  Ze ? F[Ze][1].start : xe[1].end
6493
- ), F.splice(Ze || oe, 0, ["exit", tt, xe[2]]), oe++, Y++;
6525
+ ), F.splice(Ze || oe, 0, ["exit", tt, xe[2]]), oe++, K++;
6494
6526
  }
6495
6527
  xe[1].type === "listItemPrefix" && (tt = {
6496
6528
  type: "listItem",
@@ -6498,10 +6530,10 @@ function rp(e) {
6498
6530
  start: Object.assign({}, xe[1].start),
6499
6531
  // @ts-expect-error: we’ll add `end` in a second.
6500
6532
  end: void 0
6501
- }, F.splice(oe, 0, ["enter", tt, xe[2]]), oe++, Y++, De = void 0, nt = !0);
6533
+ }, F.splice(oe, 0, ["enter", tt, xe[2]]), oe++, K++, De = void 0, nt = !0);
6502
6534
  }
6503
6535
  }
6504
- return F[B][1]._spread = Ae, Y;
6536
+ return F[B][1]._spread = Ae, K;
6505
6537
  }
6506
6538
  function a(F, B) {
6507
6539
  n[F] = B;
@@ -6510,8 +6542,8 @@ function rp(e) {
6510
6542
  return n[F];
6511
6543
  }
6512
6544
  function l(F, B) {
6513
- return Y;
6514
- function Y(oe) {
6545
+ return K;
6546
+ function K(oe) {
6515
6547
  s.call(this, F(oe), oe), B && B.call(this, oe);
6516
6548
  }
6517
6549
  }
@@ -6521,19 +6553,19 @@ function rp(e) {
6521
6553
  children: []
6522
6554
  });
6523
6555
  }
6524
- function s(F, B, Y) {
6525
- return this.stack[this.stack.length - 1].children.push(F), this.stack.push(F), this.tokenStack.push([B, Y]), F.position = {
6556
+ function s(F, B, K) {
6557
+ return this.stack[this.stack.length - 1].children.push(F), this.stack.push(F), this.tokenStack.push([B, K]), F.position = {
6526
6558
  start: ht(B.start)
6527
6559
  }, F;
6528
6560
  }
6529
6561
  function c(F) {
6530
6562
  return B;
6531
- function B(Y) {
6532
- F && F.call(this, Y), d.call(this, Y);
6563
+ function B(K) {
6564
+ F && F.call(this, K), d.call(this, K);
6533
6565
  }
6534
6566
  }
6535
6567
  function d(F, B) {
6536
- const Y = this.stack.pop(), oe = this.tokenStack.pop();
6568
+ const K = this.stack.pop(), oe = this.tokenStack.pop();
6537
6569
  if (oe)
6538
6570
  oe[0].type !== F.type && (B ? B.call(this, F, oe[0]) : (oe[1] || Ra).call(this, F, oe[0]));
6539
6571
  else throw new Error(
@@ -6542,7 +6574,7 @@ function rp(e) {
6542
6574
  end: F.end
6543
6575
  }) + "): it’s not open"
6544
6576
  );
6545
- return Y.position.end = ht(F.end), Y;
6577
+ return K.position.end = ht(F.end), K;
6546
6578
  }
6547
6579
  function b() {
6548
6580
  return ef(this.stack.pop());
@@ -6576,8 +6608,8 @@ function rp(e) {
6576
6608
  B.value = F.replace(/(\r?\n|\r)$/g, "");
6577
6609
  }
6578
6610
  function U(F) {
6579
- const B = this.resume(), Y = this.stack[this.stack.length - 1];
6580
- Y.label = B, Y.identifier = jt(
6611
+ const B = this.resume(), K = this.stack[this.stack.length - 1];
6612
+ K.label = B, K.identifier = jt(
6581
6613
  this.sliceSerialize(F)
6582
6614
  ).toLowerCase();
6583
6615
  }
@@ -6592,8 +6624,8 @@ function rp(e) {
6592
6624
  function D(F) {
6593
6625
  const B = this.stack[this.stack.length - 1];
6594
6626
  if (!B.depth) {
6595
- const Y = this.sliceSerialize(F).length;
6596
- B.depth = Y;
6627
+ const K = this.sliceSerialize(F).length;
6628
+ B.depth = K;
6597
6629
  }
6598
6630
  }
6599
6631
  function H() {
@@ -6608,10 +6640,10 @@ function rp(e) {
6608
6640
  }
6609
6641
  function I(F) {
6610
6642
  const B = this.stack[this.stack.length - 1];
6611
- let Y = B.children[B.children.length - 1];
6612
- (!Y || Y.type !== "text") && (Y = Ut(), Y.position = {
6643
+ let K = B.children[B.children.length - 1];
6644
+ (!K || K.type !== "text") && (K = Ut(), K.position = {
6613
6645
  start: ht(F.start)
6614
- }, B.children.push(Y)), this.stack.push(Y);
6646
+ }, B.children.push(K)), this.stack.push(K);
6615
6647
  }
6616
6648
  function S(F) {
6617
6649
  const B = this.stack.pop();
@@ -6620,8 +6652,8 @@ function rp(e) {
6620
6652
  function O(F) {
6621
6653
  const B = this.stack[this.stack.length - 1];
6622
6654
  if (o("atHardBreak")) {
6623
- const Y = B.children[B.children.length - 1];
6624
- Y.position.end = ht(F.end), a("atHardBreak");
6655
+ const K = B.children[B.children.length - 1];
6656
+ K.position.end = ht(F.end), a("atHardBreak");
6625
6657
  return;
6626
6658
  }
6627
6659
  !o("setextHeadingSlurpLineEnding") && t.canContainEols.includes(B.type) && (I.call(this, F), S.call(this, F));
@@ -6660,16 +6692,16 @@ function rp(e) {
6660
6692
  a("referenceType");
6661
6693
  }
6662
6694
  function p(F) {
6663
- const B = this.sliceSerialize(F), Y = this.stack[this.stack.length - 2];
6664
- Y.label = ep(B), Y.identifier = jt(B).toLowerCase();
6695
+ const B = this.sliceSerialize(F), K = this.stack[this.stack.length - 2];
6696
+ K.label = ep(B), K.identifier = jt(B).toLowerCase();
6665
6697
  }
6666
6698
  function G() {
6667
- const F = this.stack[this.stack.length - 1], B = this.resume(), Y = this.stack[this.stack.length - 1];
6668
- if (a("inReference", !0), Y.type === "link") {
6699
+ const F = this.stack[this.stack.length - 1], B = this.resume(), K = this.stack[this.stack.length - 1];
6700
+ if (a("inReference", !0), K.type === "link") {
6669
6701
  const oe = F.children;
6670
- Y.children = oe;
6702
+ K.children = oe;
6671
6703
  } else
6672
- Y.alt = B;
6704
+ K.alt = B;
6673
6705
  }
6674
6706
  function J() {
6675
6707
  const F = this.resume(), B = this.stack[this.stack.length - 1];
@@ -6686,8 +6718,8 @@ function rp(e) {
6686
6718
  a("referenceType", "collapsed");
6687
6719
  }
6688
6720
  function re(F) {
6689
- const B = this.resume(), Y = this.stack[this.stack.length - 1];
6690
- Y.label = B, Y.identifier = jt(
6721
+ const B = this.resume(), K = this.stack[this.stack.length - 1];
6722
+ K.label = B, K.identifier = jt(
6691
6723
  this.sliceSerialize(F)
6692
6724
  ).toLowerCase(), a("referenceType", "full");
6693
6725
  }
@@ -6695,11 +6727,11 @@ function rp(e) {
6695
6727
  a("characterReferenceType", F.type);
6696
6728
  }
6697
6729
  function we(F) {
6698
- const B = this.sliceSerialize(F), Y = o("characterReferenceType");
6730
+ const B = this.sliceSerialize(F), K = o("characterReferenceType");
6699
6731
  let oe;
6700
- Y ? (oe = ul(
6732
+ K ? (oe = ul(
6701
6733
  B,
6702
- Y === "characterReferenceMarkerNumeric" ? 10 : 16
6734
+ K === "characterReferenceMarkerNumeric" ? 10 : 16
6703
6735
  ), a("characterReferenceType")) : oe = gi(B);
6704
6736
  const ue = this.stack.pop();
6705
6737
  ue.value += oe, ue.position.end = ht(F.end);
@@ -7312,7 +7344,7 @@ const gl = (
7312
7344
  if (typeof e == "object")
7313
7345
  return Array.isArray(e) ? Np(e) : Mp(e);
7314
7346
  if (typeof e == "function")
7315
- return Yn(e);
7347
+ return Kn(e);
7316
7348
  throw new Error("Expected function, string, or object as test");
7317
7349
  }
7318
7350
  );
@@ -7321,7 +7353,7 @@ function Np(e) {
7321
7353
  let n = -1;
7322
7354
  for (; ++n < e.length; )
7323
7355
  t[n] = gl(e[n]);
7324
- return Yn(r);
7356
+ return Kn(r);
7325
7357
  function r(...i) {
7326
7358
  let a = -1;
7327
7359
  for (; ++a < t.length; )
@@ -7330,7 +7362,7 @@ function Np(e) {
7330
7362
  }
7331
7363
  }
7332
7364
  function Mp(e) {
7333
- return Yn(t);
7365
+ return Kn(t);
7334
7366
  function t(n) {
7335
7367
  let r;
7336
7368
  for (r in e)
@@ -7339,12 +7371,12 @@ function Mp(e) {
7339
7371
  }
7340
7372
  }
7341
7373
  function Lp(e) {
7342
- return Yn(t);
7374
+ return Kn(t);
7343
7375
  function t(n) {
7344
7376
  return n && n.type === e;
7345
7377
  }
7346
7378
  }
7347
- function Yn(e) {
7379
+ function Kn(e) {
7348
7380
  return t;
7349
7381
  function t(n, ...r) {
7350
7382
  return !!(n && typeof n == "object" && "type" in n && e.call(this, n, ...r));
@@ -7628,17 +7660,17 @@ function bl(e, t) {
7628
7660
  const Zp = (
7629
7661
  /** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */
7630
7662
  function(e, t) {
7631
- return e && "run" in e ? Yp(e, t) : Kp(e || t);
7663
+ return e && "run" in e ? Kp(e, t) : Yp(e || t);
7632
7664
  }
7633
7665
  );
7634
- function Yp(e, t) {
7666
+ function Kp(e, t) {
7635
7667
  return (n, r, i) => {
7636
7668
  e.run(bl(n, t), r, (a) => {
7637
7669
  i(a);
7638
7670
  });
7639
7671
  };
7640
7672
  }
7641
- function Kp(e) {
7673
+ function Yp(e) {
7642
7674
  return (t) => bl(t, e);
7643
7675
  }
7644
7676
  class cn {
@@ -8816,7 +8848,7 @@ var Tl = { exports: {} }, ce = {};
8816
8848
  * This source code is licensed under the MIT license found in the
8817
8849
  * LICENSE file in the root directory of this source tree.
8818
8850
  */
8819
- var ki = Symbol.for("react.element"), Si = Symbol.for("react.portal"), Kn = Symbol.for("react.fragment"), Jn = Symbol.for("react.strict_mode"), Qn = Symbol.for("react.profiler"), er = Symbol.for("react.provider"), tr = Symbol.for("react.context"), ch = Symbol.for("react.server_context"), nr = Symbol.for("react.forward_ref"), rr = Symbol.for("react.suspense"), ir = Symbol.for("react.suspense_list"), ar = Symbol.for("react.memo"), or = Symbol.for("react.lazy"), fh = Symbol.for("react.offscreen"), Ol;
8851
+ var ki = Symbol.for("react.element"), Si = Symbol.for("react.portal"), Yn = Symbol.for("react.fragment"), Jn = Symbol.for("react.strict_mode"), Qn = Symbol.for("react.profiler"), er = Symbol.for("react.provider"), tr = Symbol.for("react.context"), ch = Symbol.for("react.server_context"), nr = Symbol.for("react.forward_ref"), rr = Symbol.for("react.suspense"), ir = Symbol.for("react.suspense_list"), ar = Symbol.for("react.memo"), or = Symbol.for("react.lazy"), fh = Symbol.for("react.offscreen"), Ol;
8820
8852
  Ol = Symbol.for("react.module.reference");
8821
8853
  function Ge(e) {
8822
8854
  if (typeof e == "object" && e !== null) {
@@ -8824,7 +8856,7 @@ function Ge(e) {
8824
8856
  switch (t) {
8825
8857
  case ki:
8826
8858
  switch (e = e.type, e) {
8827
- case Kn:
8859
+ case Yn:
8828
8860
  case Qn:
8829
8861
  case Jn:
8830
8862
  case rr:
@@ -8852,7 +8884,7 @@ ce.ContextConsumer = tr;
8852
8884
  ce.ContextProvider = er;
8853
8885
  ce.Element = ki;
8854
8886
  ce.ForwardRef = nr;
8855
- ce.Fragment = Kn;
8887
+ ce.Fragment = Yn;
8856
8888
  ce.Lazy = or;
8857
8889
  ce.Memo = ar;
8858
8890
  ce.Portal = Si;
@@ -8879,7 +8911,7 @@ ce.isForwardRef = function(e) {
8879
8911
  return Ge(e) === nr;
8880
8912
  };
8881
8913
  ce.isFragment = function(e) {
8882
- return Ge(e) === Kn;
8914
+ return Ge(e) === Yn;
8883
8915
  };
8884
8916
  ce.isLazy = function(e) {
8885
8917
  return Ge(e) === or;
@@ -8903,7 +8935,7 @@ ce.isSuspenseList = function(e) {
8903
8935
  return Ge(e) === ir;
8904
8936
  };
8905
8937
  ce.isValidElementType = function(e) {
8906
- return typeof e == "string" || typeof e == "function" || e === Kn || e === Qn || e === Jn || e === rr || e === ir || e === fh || typeof e == "object" && e !== null && (e.$$typeof === or || e.$$typeof === ar || e.$$typeof === er || e.$$typeof === tr || e.$$typeof === nr || e.$$typeof === Ol || e.getModuleId !== void 0);
8938
+ return typeof e == "string" || typeof e == "function" || e === Yn || e === Qn || e === Jn || e === rr || e === ir || e === fh || typeof e == "object" && e !== null && (e.$$typeof === or || e.$$typeof === ar || e.$$typeof === er || e.$$typeof === tr || e.$$typeof === nr || e.$$typeof === Ol || e.getModuleId !== void 0);
8907
8939
  };
8908
8940
  ce.typeOf = Ge;
8909
8941
  Tl.exports = ce;
@@ -8929,7 +8961,7 @@ function gh(e, t) {
8929
8961
  ).trim();
8930
8962
  }
8931
8963
  var _i = { exports: {} }, Xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, yh = /\n/g, bh = /^\s*/, vh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, xh = /^:\s*/, wh = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Ch = /^[;\s]*/, kh = /^\s+|\s+$/g, Sh = `
8932
- `, Za = "/", Ya = "*", Ct = "", _h = "comment", Eh = "declaration", Th = function(e, t) {
8964
+ `, Za = "/", Ka = "*", Ct = "", _h = "comment", Eh = "declaration", Th = function(e, t) {
8933
8965
  if (typeof e != "string")
8934
8966
  throw new TypeError("First argument must be a string");
8935
8967
  if (!e) return [];
@@ -8975,8 +9007,8 @@ var _i = { exports: {} }, Xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, yh = /\n/g, bh
8975
9007
  }
8976
9008
  function d() {
8977
9009
  var k = a();
8978
- if (!(Za != e.charAt(0) || Ya != e.charAt(1))) {
8979
- for (var x = 2; Ct != e.charAt(x) && (Ya != e.charAt(x) || Za != e.charAt(x + 1)); )
9010
+ if (!(Za != e.charAt(0) || Ka != e.charAt(1))) {
9011
+ for (var x = 2; Ct != e.charAt(x) && (Ka != e.charAt(x) || Za != e.charAt(x + 1)); )
8980
9012
  ++x;
8981
9013
  if (x += 2, Ct === e.charAt(x - 1))
8982
9014
  return l("End of comment missing");
@@ -8993,8 +9025,8 @@ var _i = { exports: {} }, Xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, yh = /\n/g, bh
8993
9025
  if (d(), !u(xh)) return l("property missing ':'");
8994
9026
  var E = u(wh), C = k({
8995
9027
  type: Eh,
8996
- property: Ka(x[0].replace(Xa, Ct)),
8997
- value: E ? Ka(E[0].replace(Xa, Ct)) : Ct
9028
+ property: Ya(x[0].replace(Xa, Ct)),
9029
+ value: E ? Ya(E[0].replace(Xa, Ct)) : Ct
8998
9030
  });
8999
9031
  return u(Ch), C;
9000
9032
  }
@@ -9008,7 +9040,7 @@ var _i = { exports: {} }, Xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, yh = /\n/g, bh
9008
9040
  }
9009
9041
  return s(), f();
9010
9042
  };
9011
- function Ka(e) {
9043
+ function Ya(e) {
9012
9044
  return e ? e.replace(kh, Ct) : Ct;
9013
9045
  }
9014
9046
  var Oh = Th;
@@ -10173,10 +10205,10 @@ function Zh(e) {
10173
10205
  throw new Error("");
10174
10206
  }
10175
10207
  yt.assertIsWebSocket = Zh;
10176
- function Yh(e) {
10208
+ function Kh(e) {
10177
10209
  Xh.resetSubscribers(e), Gh.resetWebSockets(e);
10178
10210
  }
10179
- yt.resetGlobalState = Yh;
10211
+ yt.resetGlobalState = Kh;
10180
10212
  var Nn = pe && pe.__assign || function() {
10181
10213
  return Nn = Object.assign || function(e) {
10182
10214
  for (var t, n = 1, r = arguments.length; n < r; n++) {
@@ -10188,7 +10220,7 @@ var Nn = pe && pe.__assign || function() {
10188
10220
  };
10189
10221
  Object.defineProperty(ur, "__esModule", { value: !0 });
10190
10222
  ur.attachListeners = void 0;
10191
- var Kh = ot, at = pt, Jh = yt, Qh = function(e, t, n) {
10223
+ var Yh = ot, at = pt, Jh = yt, Qh = function(e, t, n) {
10192
10224
  e.onmessage = function(r) {
10193
10225
  t.current.onMessage && t.current.onMessage(r), !(typeof t.current.filter == "function" && t.current.filter(r) !== !0) && n(r);
10194
10226
  };
@@ -10226,7 +10258,7 @@ var Kh = ot, at = pt, Jh = yt, Qh = function(e, t, n) {
10226
10258
  };
10227
10259
  ur.attachListeners = function(e, t, n, r, i, a) {
10228
10260
  var o = t.setLastMessage, l = t.setReadyState, u, s, c;
10229
- return n.current.fromSocketIO && (u = Kh.setUpSocketIOPing(a)), Qh(e, n, o), e0(e, n, l, i), s = t0(e, n, l, r, i), c = n0(e, n, l, r, i), function() {
10261
+ return n.current.fromSocketIO && (u = Yh.setUpSocketIOPing(a)), Qh(e, n, o), e0(e, n, l, i), s = t0(e, n, l, r, i), c = n0(e, n, l, r, i), function() {
10230
10262
  l(at.ReadyState.CLOSING), s(), c(), e.close(), u && clearInterval(u);
10231
10263
  };
10232
10264
  };
@@ -10282,13 +10314,13 @@ fr.attachSharedListeners = function(e, t, n, r) {
10282
10314
  };
10283
10315
  Object.defineProperty(lr, "__esModule", { value: !0 });
10284
10316
  lr.createOrJoinSocket = void 0;
10285
- var mt = sr, Kt = pt, u0 = ur, c0 = fr, ri = cr, f0 = function(e, t, n, r, i) {
10317
+ var mt = sr, Yt = pt, u0 = ur, c0 = fr, ri = cr, f0 = function(e, t, n, r, i) {
10286
10318
  return function() {
10287
10319
  if (ri.removeSubscriber(e, t), !ri.hasSubscribers(e)) {
10288
10320
  try {
10289
10321
  var a = mt.sharedWebSockets[e];
10290
10322
  a instanceof WebSocket && (a.onclose = function(o) {
10291
- n.current.onClose && n.current.onClose(o), r(Kt.ReadyState.CLOSED);
10323
+ n.current.onClose && n.current.onClose(o), r(Yt.ReadyState.CLOSED);
10292
10324
  }), a.close();
10293
10325
  } catch {
10294
10326
  }
@@ -10297,11 +10329,11 @@ var mt = sr, Kt = pt, u0 = ur, c0 = fr, ri = cr, f0 = function(e, t, n, r, i) {
10297
10329
  };
10298
10330
  };
10299
10331
  lr.createOrJoinSocket = function(e, t, n, r, i, a, o, l) {
10300
- if (!Kt.isEventSourceSupported && r.current.eventSourceOptions)
10301
- throw Kt.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
10332
+ if (!Yt.isEventSourceSupported && r.current.eventSourceOptions)
10333
+ throw Yt.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
10302
10334
  if (r.current.share) {
10303
10335
  var u = null;
10304
- mt.sharedWebSockets[t] === void 0 ? (mt.sharedWebSockets[t] = r.current.eventSourceOptions ? new EventSource(t, r.current.eventSourceOptions) : new WebSocket(t, r.current.protocols), e.current = mt.sharedWebSockets[t], n(Kt.ReadyState.CONNECTING), u = c0.attachSharedListeners(mt.sharedWebSockets[t], t, r, l)) : (e.current = mt.sharedWebSockets[t], n(mt.sharedWebSockets[t].readyState));
10336
+ mt.sharedWebSockets[t] === void 0 ? (mt.sharedWebSockets[t] = r.current.eventSourceOptions ? new EventSource(t, r.current.eventSourceOptions) : new WebSocket(t, r.current.protocols), e.current = mt.sharedWebSockets[t], n(Yt.ReadyState.CONNECTING), u = c0.attachSharedListeners(mt.sharedWebSockets[t], t, r, l)) : (e.current = mt.sharedWebSockets[t], n(mt.sharedWebSockets[t].readyState));
10305
10337
  var s = {
10306
10338
  setLastMessage: i,
10307
10339
  setReadyState: n,
@@ -10311,7 +10343,7 @@ lr.createOrJoinSocket = function(e, t, n, r, i, a, o, l) {
10311
10343
  };
10312
10344
  return ri.addSubscriber(t, s), f0(t, s, r, n, u);
10313
10345
  } else {
10314
- if (e.current = r.current.eventSourceOptions ? new EventSource(t, r.current.eventSourceOptions) : new WebSocket(t, r.current.protocols), n(Kt.ReadyState.CONNECTING), !e.current)
10346
+ if (e.current = r.current.eventSourceOptions ? new EventSource(t, r.current.eventSourceOptions) : new WebSocket(t, r.current.protocols), n(Yt.ReadyState.CONNECTING), !e.current)
10315
10347
  throw new Error("WebSocket failed to be created");
10316
10348
  return u0.attachListeners(e.current, {
10317
10349
  setLastMessage: i,
@@ -11351,11 +11383,11 @@ var lo = {
11351
11383
  }
11352
11384
  }, Z0 = function(t) {
11353
11385
  return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
11354
- }, Y0 = function(t) {
11386
+ }, K0 = function(t) {
11355
11387
  return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
11356
11388
  }, rn = function(t) {
11357
11389
  return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
11358
- }, K0 = function(t) {
11390
+ }, Y0 = function(t) {
11359
11391
  return rn(t) && !t.shiftKey;
11360
11392
  }, J0 = function(t) {
11361
11393
  return rn(t) && t.shiftKey;
@@ -11377,7 +11409,7 @@ var lo = {
11377
11409
  returnFocusOnDeactivate: !0,
11378
11410
  escapeDeactivates: !0,
11379
11411
  delayInitialFocus: !0,
11380
- isKeyForward: K0,
11412
+ isKeyForward: Y0,
11381
11413
  isKeyBackward: J0
11382
11414
  }, n), o = {
11383
11415
  // containers given to createFocusTrap()
@@ -11619,7 +11651,7 @@ var lo = {
11619
11651
  });
11620
11652
  A && (rn(S) && S.preventDefault(), k(A));
11621
11653
  }, U = function(S) {
11622
- if (Y0(S) && Zt(a.escapeDeactivates, S) !== !1) {
11654
+ if (K0(S) && Zt(a.escapeDeactivates, S) !== !1) {
11623
11655
  S.preventDefault(), l.deactivate();
11624
11656
  return;
11625
11657
  }
@@ -11996,7 +12028,7 @@ var Cn = Je, X = wo, pm = nm, hm = pm.createFocusTrap, mm = rm, gm = mm.isFocusa
11996
12028
  return null;
11997
12029
  }
11998
12030
  }]), n;
11999
- }(Cn.Component), Yt = typeof Element > "u" ? Function : Element;
12031
+ }(Cn.Component), Kt = typeof Element > "u" ? Function : Element;
12000
12032
  Ai.propTypes = {
12001
12033
  active: X.bool,
12002
12034
  paused: X.bool,
@@ -12012,9 +12044,9 @@ Ai.propTypes = {
12012
12044
  onDeactivate: X.func,
12013
12045
  onPostDeactivate: X.func,
12014
12046
  checkCanReturnFocus: X.func,
12015
- initialFocus: X.oneOfType([X.instanceOf(Yt), X.string, X.bool, X.func]),
12047
+ initialFocus: X.oneOfType([X.instanceOf(Kt), X.string, X.bool, X.func]),
12016
12048
  fallbackFocus: X.oneOfType([
12017
- X.instanceOf(Yt),
12049
+ X.instanceOf(Kt),
12018
12050
  X.string,
12019
12051
  // NOTE: does not support `false` as value (or return value from function)
12020
12052
  X.func
@@ -12022,7 +12054,7 @@ Ai.propTypes = {
12022
12054
  escapeDeactivates: X.oneOfType([X.bool, X.func]),
12023
12055
  clickOutsideDeactivates: X.oneOfType([X.bool, X.func]),
12024
12056
  returnFocusOnDeactivate: X.bool,
12025
- setReturnFocus: X.oneOfType([X.instanceOf(Yt), X.string, X.bool, X.func]),
12057
+ setReturnFocus: X.oneOfType([X.instanceOf(Kt), X.string, X.bool, X.func]),
12026
12058
  allowOutsideClick: X.oneOfType([X.bool, X.func]),
12027
12059
  preventScroll: X.bool,
12028
12060
  tabbableOptions: X.shape({
@@ -12033,12 +12065,12 @@ Ai.propTypes = {
12033
12065
  isKeyForward: X.func,
12034
12066
  isKeyBackward: X.func
12035
12067
  }),
12036
- containerElements: X.arrayOf(X.instanceOf(Yt)),
12068
+ containerElements: X.arrayOf(X.instanceOf(Kt)),
12037
12069
  // DOM element ONLY
12038
12070
  children: X.oneOfType([
12039
12071
  X.element,
12040
12072
  // React element
12041
- X.instanceOf(Yt)
12073
+ X.instanceOf(Kt)
12042
12074
  // DOM element
12043
12075
  ])
12044
12076
  // NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
@@ -12375,7 +12407,7 @@ function ji() {
12375
12407
  };
12376
12408
  return /* @__PURE__ */ y.jsxs("div", { className: "live-chat-form", children: [
12377
12409
  a && /* @__PURE__ */ y.jsx("p", { children: a }),
12378
- (i ?? []).map(({ key: j, name: v }) => /* @__PURE__ */ y.jsxs(Ks, { children: [
12410
+ (i ?? []).map(({ key: j, name: v }) => /* @__PURE__ */ y.jsxs(Ys, { children: [
12379
12411
  /* @__PURE__ */ y.jsx(
12380
12412
  "input",
12381
12413
  {
@@ -12831,7 +12863,7 @@ function Ri({ submitEventExternal: e }) {
12831
12863
  "Conversation-History-Id": Se
12832
12864
  },
12833
12865
  body: JSON.stringify({
12834
- message_list: Ie,
12866
+ [t == null ? void 0 : t.messagesKey]: Ie,
12835
12867
  ...t.payloadParams
12836
12868
  })
12837
12869
  });
@@ -13016,20 +13048,20 @@ Ri.propTypes = {
13016
13048
  Ri.defaultProps = {
13017
13049
  submitEventExternal: null
13018
13050
  };
13019
- const Yl = ({ children: e, id: t = null, configurations: n = {} }) => {
13051
+ const Kl = ({ children: e, id: t = null, configurations: n = {} }) => {
13020
13052
  const r = {
13021
13053
  id: t,
13022
13054
  configurations: n
13023
13055
  };
13024
13056
  return /* @__PURE__ */ y.jsx(ko, { ...r, children: /* @__PURE__ */ y.jsx(_o, { children: /* @__PURE__ */ y.jsx(So, { children: /* @__PURE__ */ y.jsx(jl, { children: e }) }) }) });
13025
13057
  };
13026
- Yl.propTypes = {
13058
+ Kl.propTypes = {
13027
13059
  children: g.element,
13028
13060
  configurations: g.object,
13029
13061
  id: g.string
13030
13062
  };
13031
13063
  function Nm({ configurations: e = {}, key: t, id: n, submitEventExternal: r }) {
13032
- return /* @__PURE__ */ y.jsx(Yl, { id: n, configurations: e, children: /* @__PURE__ */ y.jsx(Ri, { submitEventExternal: r }) }, t);
13064
+ return /* @__PURE__ */ y.jsx(Kl, { id: n, configurations: e, children: /* @__PURE__ */ y.jsx(Ri, { submitEventExternal: r }) }, t);
13033
13065
  }
13034
13066
  Nm.propTypes = {
13035
13067
  configurations: g.object,