@2uinc/frontend-component-xpert-chatbot 1.19.3 → 1.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.min.js +193 -185
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -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
|
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
|
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
|
72
|
-
go =
|
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,
|
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 =
|
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,
|
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
|
391
|
+
for (var Ye in h)
|
392
392
|
ye && // Safari 9 has enumerable `arguments.length` in strict mode.
|
393
|
-
(
|
394
|
-
ae && (
|
395
|
-
de && (
|
396
|
-
$i(
|
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),
|
456
|
-
if (
|
457
|
-
mr(h, T,
|
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) ?
|
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 =
|
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 ||
|
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
|
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"]
|
@@ -792,6 +793,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
|
|
792
793
|
id: "degrees-moodle-support",
|
793
794
|
chatApi: {
|
794
795
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
796
|
+
messagesKey: "message_list",
|
795
797
|
payloadParams: {
|
796
798
|
use_case: "Moodle_Student",
|
797
799
|
tags: ["live_agent"]
|
@@ -877,6 +879,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
|
|
877
879
|
id: "edx",
|
878
880
|
chatApi: {
|
879
881
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/chat",
|
882
|
+
messagesKey: "message_list",
|
880
883
|
payloadParams: null
|
881
884
|
},
|
882
885
|
primaryColor: "#0E3639",
|
@@ -967,6 +970,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
|
|
967
970
|
id: "edx-global-support",
|
968
971
|
chatApi: {
|
969
972
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
973
|
+
messagesKey: "message_list",
|
970
974
|
payloadParams: {
|
971
975
|
use_case: ["edX_Learner_Support"]
|
972
976
|
}
|
@@ -999,11 +1003,11 @@ const Co = /* @__PURE__ */ st(fu), du = {
|
|
999
1003
|
}
|
1000
1004
|
},
|
1001
1005
|
proactiveMessage: {
|
1002
|
-
enabled: !
|
1006
|
+
enabled: !0,
|
1003
1007
|
textPrefix: "Hi!",
|
1004
1008
|
showEmoji: !0,
|
1005
|
-
text: "I'm Xpert, an AI assistant to help you
|
1006
|
-
delayMs:
|
1009
|
+
text: "I'm Xpert, an AI assistant to help you answer questions and provide support.",
|
1010
|
+
delayMs: 0,
|
1007
1011
|
style: {}
|
1008
1012
|
},
|
1009
1013
|
conversationScreen: {
|
@@ -1056,6 +1060,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
|
|
1056
1060
|
id: "exec-ed-ss-olc-moodle",
|
1057
1061
|
chatApi: {
|
1058
1062
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
1063
|
+
messagesKey: "message_list",
|
1059
1064
|
payloadParams: {
|
1060
1065
|
use_case: "LOG_OUT"
|
1061
1066
|
}
|
@@ -1151,6 +1156,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
|
|
1151
1156
|
id: "get-smarter",
|
1152
1157
|
chatApi: {
|
1153
1158
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
1159
|
+
messagesKey: "message_list",
|
1154
1160
|
payloadParams: {
|
1155
1161
|
use_case: "GET_SMARTER",
|
1156
1162
|
tags: ["live_agent"]
|
@@ -1236,6 +1242,7 @@ const Co = /* @__PURE__ */ st(fu), du = {
|
|
1236
1242
|
id: "speech-emerson",
|
1237
1243
|
chatApi: {
|
1238
1244
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/admissions",
|
1245
|
+
messagesKey: "message_list",
|
1239
1246
|
payloadParams: null
|
1240
1247
|
},
|
1241
1248
|
primaryColor: "#542291",
|
@@ -1347,6 +1354,7 @@ ko.propTypes = {
|
|
1347
1354
|
id: g.string,
|
1348
1355
|
chatApi: g.shape({
|
1349
1356
|
endpoint: g.string.isRequired,
|
1357
|
+
messageList: g.string.isRequired,
|
1350
1358
|
payloadParams: g.string
|
1351
1359
|
}).isRequired,
|
1352
1360
|
primaryColor: g.string.isRequired,
|
@@ -2252,10 +2260,10 @@ function Zu(e, t) {
|
|
2252
2260
|
}
|
2253
2261
|
return r;
|
2254
2262
|
}
|
2255
|
-
function
|
2263
|
+
function Ku(e) {
|
2256
2264
|
return e === 404;
|
2257
2265
|
}
|
2258
|
-
const
|
2266
|
+
const Yu = (e, t, n) => {
|
2259
2267
|
const r = [], i = Zu(e, t), a = "icons";
|
2260
2268
|
let o = {
|
2261
2269
|
type: a,
|
@@ -2308,7 +2316,7 @@ const Qu = (e, t, n) => {
|
|
2308
2316
|
const o = a.status;
|
2309
2317
|
if (o !== 200) {
|
2310
2318
|
setTimeout(() => {
|
2311
|
-
n(
|
2319
|
+
n(Ku(o) ? "abort" : "next", o);
|
2312
2320
|
});
|
2313
2321
|
return;
|
2314
2322
|
}
|
@@ -2327,7 +2335,7 @@ const Qu = (e, t, n) => {
|
|
2327
2335
|
n("next", i);
|
2328
2336
|
});
|
2329
2337
|
}, ec = {
|
2330
|
-
prepare:
|
2338
|
+
prepare: Yu,
|
2331
2339
|
send: Qu
|
2332
2340
|
};
|
2333
2341
|
function tc(e) {
|
@@ -3800,10 +3808,10 @@ function ga(e) {
|
|
3800
3808
|
if (e)
|
3801
3809
|
throw e;
|
3802
3810
|
}
|
3803
|
-
var _n = Object.prototype.hasOwnProperty,
|
3804
|
-
return typeof Array.isArray == "function" ? Array.isArray(t) :
|
3811
|
+
var _n = Object.prototype.hasOwnProperty, Ko = Object.prototype.toString, ya = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, va = function(t) {
|
3812
|
+
return typeof Array.isArray == "function" ? Array.isArray(t) : Ko.call(t) === "[object Array]";
|
3805
3813
|
}, xa = function(t) {
|
3806
|
-
if (!t ||
|
3814
|
+
if (!t || Ko.call(t) !== "[object Object]")
|
3807
3815
|
return !1;
|
3808
3816
|
var n = _n.call(t, "constructor"), r = t.constructor && t.constructor.prototype && _n.call(t.constructor.prototype, "isPrototypeOf");
|
3809
3817
|
if (t.constructor && !n && !r)
|
@@ -3835,7 +3843,7 @@ var _n = Object.prototype.hasOwnProperty, Yo = Object.prototype.toString, ya = O
|
|
3835
3843
|
return l;
|
3836
3844
|
};
|
3837
3845
|
const ka = /* @__PURE__ */ st(Wc);
|
3838
|
-
function
|
3846
|
+
function Kr(e) {
|
3839
3847
|
if (typeof e != "object" || e === null)
|
3840
3848
|
return !1;
|
3841
3849
|
const t = Object.getPrototypeOf(e);
|
@@ -3897,7 +3905,7 @@ function Xc(e, t) {
|
|
3897
3905
|
i(null, o);
|
3898
3906
|
}
|
3899
3907
|
}
|
3900
|
-
const Zc = Jo().freeze(),
|
3908
|
+
const Zc = Jo().freeze(), Yo = {}.hasOwnProperty;
|
3901
3909
|
function Jo() {
|
3902
3910
|
const e = Gc(), t = [];
|
3903
3911
|
let n = {}, r, i = -1;
|
@@ -3910,7 +3918,7 @@ function Jo() {
|
|
3910
3918
|
return x.data(ka(!0, {}, n)), x;
|
3911
3919
|
}
|
3912
3920
|
function o(x, E) {
|
3913
|
-
return typeof x == "string" ? arguments.length === 2 ? (Fr("data", r), n[x] = E, a) :
|
3921
|
+
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
3922
|
}
|
3915
3923
|
function l() {
|
3916
3924
|
if (r)
|
@@ -3966,7 +3974,7 @@ function Jo() {
|
|
3966
3974
|
q = t[H];
|
3967
3975
|
break;
|
3968
3976
|
}
|
3969
|
-
q ? (
|
3977
|
+
q ? (Kr(q[1]) && Kr(D) && (D = ka(!0, q[1], D)), q[1] = D) : t.push([...arguments]);
|
3970
3978
|
}
|
3971
3979
|
}
|
3972
3980
|
function s(x) {
|
@@ -4033,12 +4041,12 @@ function Sa(e, t) {
|
|
4033
4041
|
// Classes’ prototype methods are not enumerable, so we check if some value
|
4034
4042
|
// exists in the prototype.
|
4035
4043
|
// type-coverage:ignore-next-line
|
4036
|
-
(
|
4044
|
+
(Kc(e.prototype) || t in e.prototype);
|
4037
4045
|
}
|
4038
|
-
function
|
4046
|
+
function Kc(e) {
|
4039
4047
|
let t;
|
4040
4048
|
for (t in e)
|
4041
|
-
if (
|
4049
|
+
if (Yo.call(e, t))
|
4042
4050
|
return !0;
|
4043
4051
|
return !1;
|
4044
4052
|
}
|
@@ -4057,7 +4065,7 @@ function Fr(e, t) {
|
|
4057
4065
|
);
|
4058
4066
|
}
|
4059
4067
|
function _a(e) {
|
4060
|
-
if (!
|
4068
|
+
if (!Kr(e) || typeof e.type != "string")
|
4061
4069
|
throw new TypeError("Expected node, got `" + e + "`");
|
4062
4070
|
}
|
4063
4071
|
function Ea(e, t, n) {
|
@@ -4067,9 +4075,9 @@ function Ea(e, t, n) {
|
|
4067
4075
|
);
|
4068
4076
|
}
|
4069
4077
|
function Xt(e) {
|
4070
|
-
return
|
4078
|
+
return Yc(e) ? e : new Zo(e);
|
4071
4079
|
}
|
4072
|
-
function
|
4080
|
+
function Yc(e) {
|
4073
4081
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
4074
4082
|
}
|
4075
4083
|
function Jc(e) {
|
@@ -4146,7 +4154,7 @@ function af(e, t) {
|
|
4146
4154
|
lt(e, 0, 0, r);
|
4147
4155
|
}
|
4148
4156
|
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
|
4157
|
+
function Yr(e) {
|
4150
4158
|
return (
|
4151
4159
|
// Special whitespace codes (which have negative values), C0 and Control
|
4152
4160
|
// character DEL
|
@@ -4154,7 +4162,7 @@ function Kr(e) {
|
|
4154
4162
|
);
|
4155
4163
|
}
|
4156
4164
|
const Jr = bt(/\d/), sf = bt(/[\dA-Fa-f]/), uf = bt(/[!-/:-@[-`{-~]/);
|
4157
|
-
function
|
4165
|
+
function Y(e) {
|
4158
4166
|
return e !== null && e < -2;
|
4159
4167
|
}
|
4160
4168
|
function Me(e) {
|
@@ -4214,7 +4222,7 @@ function pf(e) {
|
|
4214
4222
|
e.exit("chunkText"), e.exit("paragraph"), e.consume(l);
|
4215
4223
|
return;
|
4216
4224
|
}
|
4217
|
-
return
|
4225
|
+
return Y(l) ? (e.consume(l), e.exit("chunkText"), a) : (e.consume(l), o);
|
4218
4226
|
}
|
4219
4227
|
}
|
4220
4228
|
const hf = {
|
@@ -4306,7 +4314,7 @@ function mf(e) {
|
|
4306
4314
|
E(e.exit("chunkFlow"), !0), C(0), e.consume(L);
|
4307
4315
|
return;
|
4308
4316
|
}
|
4309
|
-
return
|
4317
|
+
return Y(L) ? (e.consume(L), E(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(L), x);
|
4310
4318
|
}
|
4311
4319
|
function E(L, U) {
|
4312
4320
|
const j = t.sliceStream(L);
|
@@ -4475,7 +4483,7 @@ function xf(e, t, n) {
|
|
4475
4483
|
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
4484
|
}
|
4477
4485
|
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 ||
|
4486
|
+
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
4487
|
}
|
4480
4488
|
function s(f) {
|
4481
4489
|
return f === 64 ? (e.consume(f), c) : lf(f) ? (e.consume(f), s) : n(f);
|
@@ -4504,7 +4512,7 @@ function wf(e, t, n) {
|
|
4504
4512
|
return se(a) ? ge(e, i, "linePrefix")(a) : i(a);
|
4505
4513
|
}
|
4506
4514
|
function i(a) {
|
4507
|
-
return a === null ||
|
4515
|
+
return a === null || Y(a) ? t(a) : n(a);
|
4508
4516
|
}
|
4509
4517
|
}
|
4510
4518
|
const el = {
|
@@ -4620,20 +4628,20 @@ function Tf(e, t, n) {
|
|
4620
4628
|
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
4629
|
}
|
4622
4630
|
function d(v) {
|
4623
|
-
return v === null ||
|
4631
|
+
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
4632
|
contentType: "string"
|
4625
4633
|
}), b(v));
|
4626
4634
|
}
|
4627
4635
|
function b(v) {
|
4628
|
-
return v === null ||
|
4636
|
+
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
4637
|
}
|
4630
4638
|
function f(v) {
|
4631
|
-
return v === null ||
|
4639
|
+
return v === null || Y(v) ? d(v) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
4632
4640
|
contentType: "string"
|
4633
4641
|
}), k(v));
|
4634
4642
|
}
|
4635
4643
|
function k(v) {
|
4636
|
-
return v === null ||
|
4644
|
+
return v === null || Y(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(v)) : v === 96 && v === l ? n(v) : (e.consume(v), k);
|
4637
4645
|
}
|
4638
4646
|
function x(v) {
|
4639
4647
|
return e.attempt(i, U, E)(v);
|
@@ -4650,10 +4658,10 @@ function Tf(e, t, n) {
|
|
4650
4658
|
)(v) : z(v);
|
4651
4659
|
}
|
4652
4660
|
function z(v) {
|
4653
|
-
return v === null ||
|
4661
|
+
return v === null || Y(v) ? e.check(Na, x, U)(v) : (e.enter("codeFlowValue"), L(v));
|
4654
4662
|
}
|
4655
4663
|
function L(v) {
|
4656
|
-
return v === null ||
|
4664
|
+
return v === null || Y(v) ? (e.exit("codeFlowValue"), z(v)) : (e.consume(v), L);
|
4657
4665
|
}
|
4658
4666
|
function U(v) {
|
4659
4667
|
return e.exit("codeFenced"), t(v);
|
@@ -4679,7 +4687,7 @@ function Tf(e, t, n) {
|
|
4679
4687
|
return _ === l ? (q++, v.consume(_), O) : q >= o ? (v.exit("codeFencedFenceSequence"), se(_) ? ge(v, A, "whitespace")(_) : A(_)) : H(_);
|
4680
4688
|
}
|
4681
4689
|
function A(_) {
|
4682
|
-
return _ === null ||
|
4690
|
+
return _ === null || Y(_) ? (v.exit("codeFencedFence"), D(_)) : H(_);
|
4683
4691
|
}
|
4684
4692
|
}
|
4685
4693
|
}
|
@@ -4711,10 +4719,10 @@ function If(e, t, n) {
|
|
4711
4719
|
return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(s) : n(s);
|
4712
4720
|
}
|
4713
4721
|
function o(s) {
|
4714
|
-
return s === null ? u(s) :
|
4722
|
+
return s === null ? u(s) : Y(s) ? e.attempt(Pf, o, u)(s) : (e.enter("codeFlowValue"), l(s));
|
4715
4723
|
}
|
4716
4724
|
function l(s) {
|
4717
|
-
return s === null ||
|
4725
|
+
return s === null || Y(s) ? (e.exit("codeFlowValue"), o(s)) : (e.consume(s), l);
|
4718
4726
|
}
|
4719
4727
|
function u(s) {
|
4720
4728
|
return e.exit("codeIndented"), t(s);
|
@@ -4724,11 +4732,11 @@ function Af(e, t, n) {
|
|
4724
4732
|
const r = this;
|
4725
4733
|
return i;
|
4726
4734
|
function i(o) {
|
4727
|
-
return r.parser.lazy[r.now().line] ? n(o) :
|
4735
|
+
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
4736
|
}
|
4729
4737
|
function a(o) {
|
4730
4738
|
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) :
|
4739
|
+
return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : Y(o) ? i(o) : n(o);
|
4732
4740
|
}
|
4733
4741
|
}
|
4734
4742
|
const Ff = {
|
@@ -4763,10 +4771,10 @@ function Lf(e, t, n) {
|
|
4763
4771
|
return d === 96 ? (e.consume(d), r++, l) : (e.exit("codeTextSequence"), u(d));
|
4764
4772
|
}
|
4765
4773
|
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)) :
|
4774
|
+
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
4775
|
}
|
4768
4776
|
function s(d) {
|
4769
|
-
return d === null || d === 32 || d === 96 ||
|
4777
|
+
return d === null || d === 32 || d === 96 || Y(d) ? (e.exit("codeTextData"), u(d)) : (e.consume(d), s);
|
4770
4778
|
}
|
4771
4779
|
function c(d) {
|
4772
4780
|
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 +4840,7 @@ function zf(e, t) {
|
|
4832
4840
|
}), i(l);
|
4833
4841
|
}
|
4834
4842
|
function i(l) {
|
4835
|
-
return l === null ? a(l) :
|
4843
|
+
return l === null ? a(l) : Y(l) ? e.check(
|
4836
4844
|
Rf,
|
4837
4845
|
o,
|
4838
4846
|
a
|
@@ -4855,7 +4863,7 @@ function Hf(e, t, n) {
|
|
4855
4863
|
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), ge(e, a, "linePrefix");
|
4856
4864
|
}
|
4857
4865
|
function a(o) {
|
4858
|
-
if (o === null ||
|
4866
|
+
if (o === null || Y(o))
|
4859
4867
|
return n(o);
|
4860
4868
|
const l = r.events[r.events.length - 1];
|
4861
4869
|
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 +4874,7 @@ function il(e, t, n, r, i, a, o, l, u) {
|
|
4866
4874
|
let c = 0;
|
4867
4875
|
return d;
|
4868
4876
|
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 ||
|
4877
|
+
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
4878
|
contentType: "string"
|
4871
4879
|
}), x(C));
|
4872
4880
|
}
|
@@ -4876,13 +4884,13 @@ function il(e, t, n, r, i, a, o, l, u) {
|
|
4876
4884
|
}), f(C));
|
4877
4885
|
}
|
4878
4886
|
function f(C) {
|
4879
|
-
return C === 62 ? (e.exit("chunkString"), e.exit(l), b(C)) : C === null || C === 60 ||
|
4887
|
+
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
4888
|
}
|
4881
4889
|
function k(C) {
|
4882
4890
|
return C === 60 || C === 62 || C === 92 ? (e.consume(C), f) : f(C);
|
4883
4891
|
}
|
4884
4892
|
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 ||
|
4893
|
+
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
4894
|
}
|
4887
4895
|
function E(C) {
|
4888
4896
|
return C === 40 || C === 41 || C === 92 ? (e.consume(C), x) : x(C);
|
@@ -4901,12 +4909,12 @@ function al(e, t, n, r, i, a) {
|
|
4901
4909
|
// which doesn’t need this.
|
4902
4910
|
// Hidden footnotes hook.
|
4903
4911
|
/* 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) :
|
4912
|
+
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
4913
|
contentType: "string"
|
4906
4914
|
}), d(f));
|
4907
4915
|
}
|
4908
4916
|
function d(f) {
|
4909
|
-
return f === null || f === 91 || f === 93 ||
|
4917
|
+
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
4918
|
}
|
4911
4919
|
function b(f) {
|
4912
4920
|
return f === 91 || f === 92 || f === 93 ? (e.consume(f), l++, d) : d(f);
|
@@ -4922,12 +4930,12 @@ function ol(e, t, n, r, i, a) {
|
|
4922
4930
|
return b === o ? (e.enter(i), e.consume(b), e.exit(i), e.exit(r), t) : (e.enter(a), s(b));
|
4923
4931
|
}
|
4924
4932
|
function s(b) {
|
4925
|
-
return b === o ? (e.exit(a), u(o)) : b === null ? n(b) :
|
4933
|
+
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
4934
|
contentType: "string"
|
4927
4935
|
}), c(b));
|
4928
4936
|
}
|
4929
4937
|
function c(b) {
|
4930
|
-
return b === o || b === null ||
|
4938
|
+
return b === o || b === null || Y(b) ? (e.exit("chunkString"), s(b)) : (e.consume(b), b === 92 ? d : c);
|
4931
4939
|
}
|
4932
4940
|
function d(b) {
|
4933
4941
|
return b === o || b === 92 ? (e.consume(b), c) : c(b);
|
@@ -4937,7 +4945,7 @@ function nn(e, t) {
|
|
4937
4945
|
let n;
|
4938
4946
|
return r;
|
4939
4947
|
function r(i) {
|
4940
|
-
return
|
4948
|
+
return Y(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : se(i) ? ge(
|
4941
4949
|
e,
|
4942
4950
|
r,
|
4943
4951
|
n ? "linePrefix" : "lineSuffix"
|
@@ -5001,7 +5009,7 @@ function qf(e, t, n) {
|
|
5001
5009
|
return se(f) ? ge(e, b, "whitespace")(f) : b(f);
|
5002
5010
|
}
|
5003
5011
|
function b(f) {
|
5004
|
-
return f === null ||
|
5012
|
+
return f === null || Y(f) ? (e.exit("definition"), r.parser.defined.push(i), t(f)) : n(f);
|
5005
5013
|
}
|
5006
5014
|
}
|
5007
5015
|
function Vf(e, t, n) {
|
@@ -5023,7 +5031,7 @@ function Vf(e, t, n) {
|
|
5023
5031
|
return se(l) ? ge(e, o, "whitespace")(l) : o(l);
|
5024
5032
|
}
|
5025
5033
|
function o(l) {
|
5026
|
-
return l === null ||
|
5034
|
+
return l === null || Y(l) ? t(l) : n(l);
|
5027
5035
|
}
|
5028
5036
|
}
|
5029
5037
|
const Wf = {
|
@@ -5036,12 +5044,12 @@ function Gf(e, t, n) {
|
|
5036
5044
|
return e.enter("hardBreakEscape"), e.consume(a), i;
|
5037
5045
|
}
|
5038
5046
|
function i(a) {
|
5039
|
-
return
|
5047
|
+
return Y(a) ? (e.exit("hardBreakEscape"), t(a)) : n(a);
|
5040
5048
|
}
|
5041
5049
|
}
|
5042
5050
|
const Xf = {
|
5043
5051
|
name: "headingAtx",
|
5044
|
-
tokenize:
|
5052
|
+
tokenize: Kf,
|
5045
5053
|
resolve: Zf
|
5046
5054
|
};
|
5047
5055
|
function Zf(e, t) {
|
@@ -5062,7 +5070,7 @@ function Zf(e, t) {
|
|
5062
5070
|
["exit", i, t]
|
5063
5071
|
])), e;
|
5064
5072
|
}
|
5065
|
-
function
|
5073
|
+
function Kf(e, t, n) {
|
5066
5074
|
let r = 0;
|
5067
5075
|
return i;
|
5068
5076
|
function i(c) {
|
@@ -5075,7 +5083,7 @@ function Yf(e, t, n) {
|
|
5075
5083
|
return c === 35 && r++ < 6 ? (e.consume(c), o) : c === null || Me(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
|
5076
5084
|
}
|
5077
5085
|
function l(c) {
|
5078
|
-
return c === 35 ? (e.enter("atxHeadingSequence"), u(c)) : c === null ||
|
5086
|
+
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
5087
|
}
|
5080
5088
|
function u(c) {
|
5081
5089
|
return c === 35 ? (e.consume(c), u) : (e.exit("atxHeadingSequence"), l(c));
|
@@ -5084,7 +5092,7 @@ function Yf(e, t, n) {
|
|
5084
5092
|
return c === null || c === 35 || Me(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), s);
|
5085
5093
|
}
|
5086
5094
|
}
|
5087
|
-
const
|
5095
|
+
const Yf = [
|
5088
5096
|
"address",
|
5089
5097
|
"article",
|
5090
5098
|
"aside",
|
@@ -5194,7 +5202,7 @@ function nd(e, t, n) {
|
|
5194
5202
|
function E(m) {
|
5195
5203
|
if (m === null || m === 47 || m === 62 || Me(m)) {
|
5196
5204
|
const ee = m === 47, he = o.toLowerCase();
|
5197
|
-
return !ee && !a && La.includes(he) ? (i = 1, r.interrupt ? t(m) : S(m)) :
|
5205
|
+
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
5206
|
}
|
5199
5207
|
return m === 45 || ze(m) ? (e.consume(m), o += String.fromCharCode(m), E) : n(m);
|
5200
5208
|
}
|
@@ -5217,7 +5225,7 @@ function nd(e, t, n) {
|
|
5217
5225
|
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
5226
|
}
|
5219
5227
|
function D(m) {
|
5220
|
-
return m === u ? (e.consume(m), u = null, q) : m === null ||
|
5228
|
+
return m === u ? (e.consume(m), u = null, q) : m === null || Y(m) ? n(m) : (e.consume(m), D);
|
5221
5229
|
}
|
5222
5230
|
function H(m) {
|
5223
5231
|
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 +5237,14 @@ function nd(e, t, n) {
|
|
5229
5237
|
return m === 62 ? (e.consume(m), I) : n(m);
|
5230
5238
|
}
|
5231
5239
|
function I(m) {
|
5232
|
-
return m === null ||
|
5240
|
+
return m === null || Y(m) ? S(m) : se(m) ? (e.consume(m), I) : n(m);
|
5233
5241
|
}
|
5234
5242
|
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), $) :
|
5243
|
+
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
5244
|
Qf,
|
5237
5245
|
J,
|
5238
5246
|
O
|
5239
|
-
)(m)) : m === null ||
|
5247
|
+
)(m)) : m === null || Y(m) ? (e.exit("htmlFlowData"), O(m)) : (e.consume(m), S);
|
5240
5248
|
}
|
5241
5249
|
function O(m) {
|
5242
5250
|
return e.check(
|
@@ -5249,7 +5257,7 @@ function nd(e, t, n) {
|
|
5249
5257
|
return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), _;
|
5250
5258
|
}
|
5251
5259
|
function _(m) {
|
5252
|
-
return m === null ||
|
5260
|
+
return m === null || Y(m) ? O(m) : (e.enter("htmlFlowData"), S(m));
|
5253
5261
|
}
|
5254
5262
|
function P(m) {
|
5255
5263
|
return m === 45 ? (e.consume(m), p) : S(m);
|
@@ -5271,7 +5279,7 @@ function nd(e, t, n) {
|
|
5271
5279
|
return m === 62 ? (e.consume(m), G) : m === 45 && i === 2 ? (e.consume(m), p) : S(m);
|
5272
5280
|
}
|
5273
5281
|
function G(m) {
|
5274
|
-
return m === null ||
|
5282
|
+
return m === null || Y(m) ? (e.exit("htmlFlowData"), J(m)) : (e.consume(m), G);
|
5275
5283
|
}
|
5276
5284
|
function J(m) {
|
5277
5285
|
return e.exit("htmlFlow"), t(m);
|
@@ -5281,7 +5289,7 @@ function rd(e, t, n) {
|
|
5281
5289
|
const r = this;
|
5282
5290
|
return i;
|
5283
5291
|
function i(o) {
|
5284
|
-
return
|
5292
|
+
return Y(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), a) : n(o);
|
5285
5293
|
}
|
5286
5294
|
function a(o) {
|
5287
5295
|
return r.parser.lazy[r.now().line] ? n(o) : t(o);
|
@@ -5314,7 +5322,7 @@ function od(e, t, n) {
|
|
5314
5322
|
return p === 45 ? (e.consume(p), f) : n(p);
|
5315
5323
|
}
|
5316
5324
|
function d(p) {
|
5317
|
-
return p === null ? n(p) : p === 45 ? (e.consume(p), b) :
|
5325
|
+
return p === null ? n(p) : p === 45 ? (e.consume(p), b) : Y(p) ? (o = d, M(p)) : (e.consume(p), d);
|
5318
5326
|
}
|
5319
5327
|
function b(p) {
|
5320
5328
|
return p === 45 ? (e.consume(p), f) : d(p);
|
@@ -5327,7 +5335,7 @@ function od(e, t, n) {
|
|
5327
5335
|
return p === G.charCodeAt(a++) ? (e.consume(p), a === G.length ? x : k) : n(p);
|
5328
5336
|
}
|
5329
5337
|
function x(p) {
|
5330
|
-
return p === null ? n(p) : p === 93 ? (e.consume(p), E) :
|
5338
|
+
return p === null ? n(p) : p === 93 ? (e.consume(p), E) : Y(p) ? (o = x, M(p)) : (e.consume(p), x);
|
5331
5339
|
}
|
5332
5340
|
function E(p) {
|
5333
5341
|
return p === 93 ? (e.consume(p), C) : x(p);
|
@@ -5336,10 +5344,10 @@ function od(e, t, n) {
|
|
5336
5344
|
return p === 62 ? P(p) : p === 93 ? (e.consume(p), C) : x(p);
|
5337
5345
|
}
|
5338
5346
|
function z(p) {
|
5339
|
-
return p === null || p === 62 ? P(p) :
|
5347
|
+
return p === null || p === 62 ? P(p) : Y(p) ? (o = z, M(p)) : (e.consume(p), z);
|
5340
5348
|
}
|
5341
5349
|
function L(p) {
|
5342
|
-
return p === null ? n(p) : p === 63 ? (e.consume(p), U) :
|
5350
|
+
return p === null ? n(p) : p === 63 ? (e.consume(p), U) : Y(p) ? (o = L, M(p)) : (e.consume(p), L);
|
5343
5351
|
}
|
5344
5352
|
function U(p) {
|
5345
5353
|
return p === 62 ? P(p) : L(p);
|
@@ -5351,25 +5359,25 @@ function od(e, t, n) {
|
|
5351
5359
|
return p === 45 || ze(p) ? (e.consume(p), v) : D(p);
|
5352
5360
|
}
|
5353
5361
|
function D(p) {
|
5354
|
-
return
|
5362
|
+
return Y(p) ? (o = D, M(p)) : se(p) ? (e.consume(p), D) : P(p);
|
5355
5363
|
}
|
5356
5364
|
function H(p) {
|
5357
5365
|
return p === 45 || ze(p) ? (e.consume(p), H) : p === 47 || p === 62 || Me(p) ? q(p) : n(p);
|
5358
5366
|
}
|
5359
5367
|
function q(p) {
|
5360
|
-
return p === 47 ? (e.consume(p), P) : p === 58 || p === 95 || it(p) ? (e.consume(p), V) :
|
5368
|
+
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
5369
|
}
|
5362
5370
|
function V(p) {
|
5363
5371
|
return p === 45 || p === 46 || p === 58 || p === 95 || ze(p) ? (e.consume(p), V) : I(p);
|
5364
5372
|
}
|
5365
5373
|
function I(p) {
|
5366
|
-
return p === 61 ? (e.consume(p), S) :
|
5374
|
+
return p === 61 ? (e.consume(p), S) : Y(p) ? (o = I, M(p)) : se(p) ? (e.consume(p), I) : q(p);
|
5367
5375
|
}
|
5368
5376
|
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) :
|
5377
|
+
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
5378
|
}
|
5371
5379
|
function O(p) {
|
5372
|
-
return p === i ? (e.consume(p), i = void 0, _) : p === null ? n(p) :
|
5380
|
+
return p === i ? (e.consume(p), i = void 0, _) : p === null ? n(p) : Y(p) ? (o = O, M(p)) : (e.consume(p), O);
|
5373
5381
|
}
|
5374
5382
|
function A(p) {
|
5375
5383
|
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 +5645,7 @@ function wd(e, t, n) {
|
|
5637
5645
|
return i = s, l(s);
|
5638
5646
|
}
|
5639
5647
|
function l(s) {
|
5640
|
-
return s === i ? (e.enter("thematicBreakSequence"), u(s)) : r >= 3 && (s === null ||
|
5648
|
+
return s === i ? (e.enter("thematicBreakSequence"), u(s)) : r >= 3 && (s === null || Y(s)) ? (e.exit("thematicBreak"), t(s)) : n(s);
|
5641
5649
|
}
|
5642
5650
|
function u(s) {
|
5643
5651
|
return s === i ? (e.consume(s), r++, u) : (e.exit("thematicBreakSequence"), se(s) ? ge(e, l, "whitespace")(s) : l(s));
|
@@ -5793,7 +5801,7 @@ function Id(e, t, n) {
|
|
5793
5801
|
return s === i ? (e.consume(s), l) : (e.exit("setextHeadingLineSequence"), se(s) ? ge(e, u, "lineSuffix")(s) : u(s));
|
5794
5802
|
}
|
5795
5803
|
function u(s) {
|
5796
|
-
return s === null ||
|
5804
|
+
return s === null || Y(s) ? (e.exit("setextHeadingLine"), t(s)) : n(s);
|
5797
5805
|
}
|
5798
5806
|
}
|
5799
5807
|
const Ad = {
|
@@ -6002,7 +6010,7 @@ function Dd(e, t, n) {
|
|
6002
6010
|
c = c(I);
|
6003
6011
|
}
|
6004
6012
|
function z(I) {
|
6005
|
-
|
6013
|
+
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
6014
|
}
|
6007
6015
|
function L(I, S) {
|
6008
6016
|
const O = S || {};
|
@@ -6204,7 +6212,7 @@ const zd = {
|
|
6204
6212
|
string: qd,
|
6205
6213
|
text: Vd
|
6206
6214
|
}, Symbol.toStringTag, { value: "Module" }));
|
6207
|
-
function
|
6215
|
+
function Kd(e) {
|
6208
6216
|
const n = (
|
6209
6217
|
/** @type {FullNormalizedExtension} */
|
6210
6218
|
nf([Zd, ...(e || {}).extensions || []])
|
@@ -6227,7 +6235,7 @@ function Yd(e) {
|
|
6227
6235
|
}
|
6228
6236
|
}
|
6229
6237
|
const Da = /[\0\t\n\r]/g;
|
6230
|
-
function
|
6238
|
+
function Yd() {
|
6231
6239
|
let e = 1, t = "", n = !0, r;
|
6232
6240
|
return i;
|
6233
6241
|
function i(a, o, l) {
|
@@ -6307,7 +6315,7 @@ const cl = {}.hasOwnProperty, np = (
|
|
6307
6315
|
function(e, t, n) {
|
6308
6316
|
return typeof t != "string" && (n = t, t = void 0), rp(n)(
|
6309
6317
|
Jd(
|
6310
|
-
|
6318
|
+
Kd(n).document().write(Yd()(e, t, !0))
|
6311
6319
|
)
|
6312
6320
|
);
|
6313
6321
|
}
|
@@ -6418,7 +6426,7 @@ function rp(e) {
|
|
6418
6426
|
type: "root",
|
6419
6427
|
children: []
|
6420
6428
|
};
|
6421
|
-
const
|
6429
|
+
const K = {
|
6422
6430
|
stack: [B],
|
6423
6431
|
tokenStack: [],
|
6424
6432
|
config: t,
|
@@ -6445,14 +6453,14 @@ function rp(e) {
|
|
6445
6453
|
{
|
6446
6454
|
sliceSerialize: F[ue][2].sliceSerialize
|
6447
6455
|
},
|
6448
|
-
|
6456
|
+
K
|
6449
6457
|
),
|
6450
6458
|
F[ue][1]
|
6451
6459
|
);
|
6452
6460
|
}
|
6453
|
-
if (
|
6454
|
-
const Ae =
|
6455
|
-
(Ae[1] || Ra).call(
|
6461
|
+
if (K.tokenStack.length > 0) {
|
6462
|
+
const Ae = K.tokenStack[K.tokenStack.length - 1];
|
6463
|
+
(Ae[1] || Ra).call(K, void 0, Ae[0]);
|
6456
6464
|
}
|
6457
6465
|
for (B.position = {
|
6458
6466
|
start: ht(
|
@@ -6473,24 +6481,24 @@ function rp(e) {
|
|
6473
6481
|
B = t.transforms[ue](B) || B;
|
6474
6482
|
return B;
|
6475
6483
|
}
|
6476
|
-
function i(F, B,
|
6484
|
+
function i(F, B, K) {
|
6477
6485
|
let oe = B - 1, ue = -1, Ae = !1, tt, Ze, De, nt;
|
6478
|
-
for (; ++oe <=
|
6486
|
+
for (; ++oe <= K; ) {
|
6479
6487
|
const xe = F[oe];
|
6480
6488
|
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
6489
|
if (tt) {
|
6482
6490
|
let Ft = oe;
|
6483
6491
|
for (Ze = void 0; Ft--; ) {
|
6484
|
-
const
|
6485
|
-
if (
|
6486
|
-
if (
|
6487
|
-
Ze && (F[Ze][1].type = "lineEndingBlank", Ae = !0),
|
6488
|
-
} else if (!(
|
6492
|
+
const Ke = F[Ft];
|
6493
|
+
if (Ke[1].type === "lineEnding" || Ke[1].type === "lineEndingBlank") {
|
6494
|
+
if (Ke[0] === "exit") continue;
|
6495
|
+
Ze && (F[Ze][1].type = "lineEndingBlank", Ae = !0), Ke[1].type = "lineEnding", Ze = Ft;
|
6496
|
+
} else if (!(Ke[1].type === "linePrefix" || Ke[1].type === "blockQuotePrefix" || Ke[1].type === "blockQuotePrefixWhitespace" || Ke[1].type === "blockQuoteMarker" || Ke[1].type === "listItemIndent")) break;
|
6489
6497
|
}
|
6490
6498
|
De && (!Ze || De < Ze) && (tt._spread = !0), tt.end = Object.assign(
|
6491
6499
|
{},
|
6492
6500
|
Ze ? F[Ze][1].start : xe[1].end
|
6493
|
-
), F.splice(Ze || oe, 0, ["exit", tt, xe[2]]), oe++,
|
6501
|
+
), F.splice(Ze || oe, 0, ["exit", tt, xe[2]]), oe++, K++;
|
6494
6502
|
}
|
6495
6503
|
xe[1].type === "listItemPrefix" && (tt = {
|
6496
6504
|
type: "listItem",
|
@@ -6498,10 +6506,10 @@ function rp(e) {
|
|
6498
6506
|
start: Object.assign({}, xe[1].start),
|
6499
6507
|
// @ts-expect-error: we’ll add `end` in a second.
|
6500
6508
|
end: void 0
|
6501
|
-
}, F.splice(oe, 0, ["enter", tt, xe[2]]), oe++,
|
6509
|
+
}, F.splice(oe, 0, ["enter", tt, xe[2]]), oe++, K++, De = void 0, nt = !0);
|
6502
6510
|
}
|
6503
6511
|
}
|
6504
|
-
return F[B][1]._spread = Ae,
|
6512
|
+
return F[B][1]._spread = Ae, K;
|
6505
6513
|
}
|
6506
6514
|
function a(F, B) {
|
6507
6515
|
n[F] = B;
|
@@ -6510,8 +6518,8 @@ function rp(e) {
|
|
6510
6518
|
return n[F];
|
6511
6519
|
}
|
6512
6520
|
function l(F, B) {
|
6513
|
-
return
|
6514
|
-
function
|
6521
|
+
return K;
|
6522
|
+
function K(oe) {
|
6515
6523
|
s.call(this, F(oe), oe), B && B.call(this, oe);
|
6516
6524
|
}
|
6517
6525
|
}
|
@@ -6521,19 +6529,19 @@ function rp(e) {
|
|
6521
6529
|
children: []
|
6522
6530
|
});
|
6523
6531
|
}
|
6524
|
-
function s(F, B,
|
6525
|
-
return this.stack[this.stack.length - 1].children.push(F), this.stack.push(F), this.tokenStack.push([B,
|
6532
|
+
function s(F, B, K) {
|
6533
|
+
return this.stack[this.stack.length - 1].children.push(F), this.stack.push(F), this.tokenStack.push([B, K]), F.position = {
|
6526
6534
|
start: ht(B.start)
|
6527
6535
|
}, F;
|
6528
6536
|
}
|
6529
6537
|
function c(F) {
|
6530
6538
|
return B;
|
6531
|
-
function B(
|
6532
|
-
F && F.call(this,
|
6539
|
+
function B(K) {
|
6540
|
+
F && F.call(this, K), d.call(this, K);
|
6533
6541
|
}
|
6534
6542
|
}
|
6535
6543
|
function d(F, B) {
|
6536
|
-
const
|
6544
|
+
const K = this.stack.pop(), oe = this.tokenStack.pop();
|
6537
6545
|
if (oe)
|
6538
6546
|
oe[0].type !== F.type && (B ? B.call(this, F, oe[0]) : (oe[1] || Ra).call(this, F, oe[0]));
|
6539
6547
|
else throw new Error(
|
@@ -6542,7 +6550,7 @@ function rp(e) {
|
|
6542
6550
|
end: F.end
|
6543
6551
|
}) + "): it’s not open"
|
6544
6552
|
);
|
6545
|
-
return
|
6553
|
+
return K.position.end = ht(F.end), K;
|
6546
6554
|
}
|
6547
6555
|
function b() {
|
6548
6556
|
return ef(this.stack.pop());
|
@@ -6576,8 +6584,8 @@ function rp(e) {
|
|
6576
6584
|
B.value = F.replace(/(\r?\n|\r)$/g, "");
|
6577
6585
|
}
|
6578
6586
|
function U(F) {
|
6579
|
-
const B = this.resume(),
|
6580
|
-
|
6587
|
+
const B = this.resume(), K = this.stack[this.stack.length - 1];
|
6588
|
+
K.label = B, K.identifier = jt(
|
6581
6589
|
this.sliceSerialize(F)
|
6582
6590
|
).toLowerCase();
|
6583
6591
|
}
|
@@ -6592,8 +6600,8 @@ function rp(e) {
|
|
6592
6600
|
function D(F) {
|
6593
6601
|
const B = this.stack[this.stack.length - 1];
|
6594
6602
|
if (!B.depth) {
|
6595
|
-
const
|
6596
|
-
B.depth =
|
6603
|
+
const K = this.sliceSerialize(F).length;
|
6604
|
+
B.depth = K;
|
6597
6605
|
}
|
6598
6606
|
}
|
6599
6607
|
function H() {
|
@@ -6608,10 +6616,10 @@ function rp(e) {
|
|
6608
6616
|
}
|
6609
6617
|
function I(F) {
|
6610
6618
|
const B = this.stack[this.stack.length - 1];
|
6611
|
-
let
|
6612
|
-
(!
|
6619
|
+
let K = B.children[B.children.length - 1];
|
6620
|
+
(!K || K.type !== "text") && (K = Ut(), K.position = {
|
6613
6621
|
start: ht(F.start)
|
6614
|
-
}, B.children.push(
|
6622
|
+
}, B.children.push(K)), this.stack.push(K);
|
6615
6623
|
}
|
6616
6624
|
function S(F) {
|
6617
6625
|
const B = this.stack.pop();
|
@@ -6620,8 +6628,8 @@ function rp(e) {
|
|
6620
6628
|
function O(F) {
|
6621
6629
|
const B = this.stack[this.stack.length - 1];
|
6622
6630
|
if (o("atHardBreak")) {
|
6623
|
-
const
|
6624
|
-
|
6631
|
+
const K = B.children[B.children.length - 1];
|
6632
|
+
K.position.end = ht(F.end), a("atHardBreak");
|
6625
6633
|
return;
|
6626
6634
|
}
|
6627
6635
|
!o("setextHeadingSlurpLineEnding") && t.canContainEols.includes(B.type) && (I.call(this, F), S.call(this, F));
|
@@ -6660,16 +6668,16 @@ function rp(e) {
|
|
6660
6668
|
a("referenceType");
|
6661
6669
|
}
|
6662
6670
|
function p(F) {
|
6663
|
-
const B = this.sliceSerialize(F),
|
6664
|
-
|
6671
|
+
const B = this.sliceSerialize(F), K = this.stack[this.stack.length - 2];
|
6672
|
+
K.label = ep(B), K.identifier = jt(B).toLowerCase();
|
6665
6673
|
}
|
6666
6674
|
function G() {
|
6667
|
-
const F = this.stack[this.stack.length - 1], B = this.resume(),
|
6668
|
-
if (a("inReference", !0),
|
6675
|
+
const F = this.stack[this.stack.length - 1], B = this.resume(), K = this.stack[this.stack.length - 1];
|
6676
|
+
if (a("inReference", !0), K.type === "link") {
|
6669
6677
|
const oe = F.children;
|
6670
|
-
|
6678
|
+
K.children = oe;
|
6671
6679
|
} else
|
6672
|
-
|
6680
|
+
K.alt = B;
|
6673
6681
|
}
|
6674
6682
|
function J() {
|
6675
6683
|
const F = this.resume(), B = this.stack[this.stack.length - 1];
|
@@ -6686,8 +6694,8 @@ function rp(e) {
|
|
6686
6694
|
a("referenceType", "collapsed");
|
6687
6695
|
}
|
6688
6696
|
function re(F) {
|
6689
|
-
const B = this.resume(),
|
6690
|
-
|
6697
|
+
const B = this.resume(), K = this.stack[this.stack.length - 1];
|
6698
|
+
K.label = B, K.identifier = jt(
|
6691
6699
|
this.sliceSerialize(F)
|
6692
6700
|
).toLowerCase(), a("referenceType", "full");
|
6693
6701
|
}
|
@@ -6695,11 +6703,11 @@ function rp(e) {
|
|
6695
6703
|
a("characterReferenceType", F.type);
|
6696
6704
|
}
|
6697
6705
|
function we(F) {
|
6698
|
-
const B = this.sliceSerialize(F),
|
6706
|
+
const B = this.sliceSerialize(F), K = o("characterReferenceType");
|
6699
6707
|
let oe;
|
6700
|
-
|
6708
|
+
K ? (oe = ul(
|
6701
6709
|
B,
|
6702
|
-
|
6710
|
+
K === "characterReferenceMarkerNumeric" ? 10 : 16
|
6703
6711
|
), a("characterReferenceType")) : oe = gi(B);
|
6704
6712
|
const ue = this.stack.pop();
|
6705
6713
|
ue.value += oe, ue.position.end = ht(F.end);
|
@@ -7312,7 +7320,7 @@ const gl = (
|
|
7312
7320
|
if (typeof e == "object")
|
7313
7321
|
return Array.isArray(e) ? Np(e) : Mp(e);
|
7314
7322
|
if (typeof e == "function")
|
7315
|
-
return
|
7323
|
+
return Kn(e);
|
7316
7324
|
throw new Error("Expected function, string, or object as test");
|
7317
7325
|
}
|
7318
7326
|
);
|
@@ -7321,7 +7329,7 @@ function Np(e) {
|
|
7321
7329
|
let n = -1;
|
7322
7330
|
for (; ++n < e.length; )
|
7323
7331
|
t[n] = gl(e[n]);
|
7324
|
-
return
|
7332
|
+
return Kn(r);
|
7325
7333
|
function r(...i) {
|
7326
7334
|
let a = -1;
|
7327
7335
|
for (; ++a < t.length; )
|
@@ -7330,7 +7338,7 @@ function Np(e) {
|
|
7330
7338
|
}
|
7331
7339
|
}
|
7332
7340
|
function Mp(e) {
|
7333
|
-
return
|
7341
|
+
return Kn(t);
|
7334
7342
|
function t(n) {
|
7335
7343
|
let r;
|
7336
7344
|
for (r in e)
|
@@ -7339,12 +7347,12 @@ function Mp(e) {
|
|
7339
7347
|
}
|
7340
7348
|
}
|
7341
7349
|
function Lp(e) {
|
7342
|
-
return
|
7350
|
+
return Kn(t);
|
7343
7351
|
function t(n) {
|
7344
7352
|
return n && n.type === e;
|
7345
7353
|
}
|
7346
7354
|
}
|
7347
|
-
function
|
7355
|
+
function Kn(e) {
|
7348
7356
|
return t;
|
7349
7357
|
function t(n, ...r) {
|
7350
7358
|
return !!(n && typeof n == "object" && "type" in n && e.call(this, n, ...r));
|
@@ -7628,17 +7636,17 @@ function bl(e, t) {
|
|
7628
7636
|
const Zp = (
|
7629
7637
|
/** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */
|
7630
7638
|
function(e, t) {
|
7631
|
-
return e && "run" in e ?
|
7639
|
+
return e && "run" in e ? Kp(e, t) : Yp(e || t);
|
7632
7640
|
}
|
7633
7641
|
);
|
7634
|
-
function
|
7642
|
+
function Kp(e, t) {
|
7635
7643
|
return (n, r, i) => {
|
7636
7644
|
e.run(bl(n, t), r, (a) => {
|
7637
7645
|
i(a);
|
7638
7646
|
});
|
7639
7647
|
};
|
7640
7648
|
}
|
7641
|
-
function
|
7649
|
+
function Yp(e) {
|
7642
7650
|
return (t) => bl(t, e);
|
7643
7651
|
}
|
7644
7652
|
class cn {
|
@@ -8816,7 +8824,7 @@ var Tl = { exports: {} }, ce = {};
|
|
8816
8824
|
* This source code is licensed under the MIT license found in the
|
8817
8825
|
* LICENSE file in the root directory of this source tree.
|
8818
8826
|
*/
|
8819
|
-
var ki = Symbol.for("react.element"), Si = Symbol.for("react.portal"),
|
8827
|
+
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
8828
|
Ol = Symbol.for("react.module.reference");
|
8821
8829
|
function Ge(e) {
|
8822
8830
|
if (typeof e == "object" && e !== null) {
|
@@ -8824,7 +8832,7 @@ function Ge(e) {
|
|
8824
8832
|
switch (t) {
|
8825
8833
|
case ki:
|
8826
8834
|
switch (e = e.type, e) {
|
8827
|
-
case
|
8835
|
+
case Yn:
|
8828
8836
|
case Qn:
|
8829
8837
|
case Jn:
|
8830
8838
|
case rr:
|
@@ -8852,7 +8860,7 @@ ce.ContextConsumer = tr;
|
|
8852
8860
|
ce.ContextProvider = er;
|
8853
8861
|
ce.Element = ki;
|
8854
8862
|
ce.ForwardRef = nr;
|
8855
|
-
ce.Fragment =
|
8863
|
+
ce.Fragment = Yn;
|
8856
8864
|
ce.Lazy = or;
|
8857
8865
|
ce.Memo = ar;
|
8858
8866
|
ce.Portal = Si;
|
@@ -8879,7 +8887,7 @@ ce.isForwardRef = function(e) {
|
|
8879
8887
|
return Ge(e) === nr;
|
8880
8888
|
};
|
8881
8889
|
ce.isFragment = function(e) {
|
8882
|
-
return Ge(e) ===
|
8890
|
+
return Ge(e) === Yn;
|
8883
8891
|
};
|
8884
8892
|
ce.isLazy = function(e) {
|
8885
8893
|
return Ge(e) === or;
|
@@ -8903,7 +8911,7 @@ ce.isSuspenseList = function(e) {
|
|
8903
8911
|
return Ge(e) === ir;
|
8904
8912
|
};
|
8905
8913
|
ce.isValidElementType = function(e) {
|
8906
|
-
return typeof e == "string" || typeof e == "function" || e ===
|
8914
|
+
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
8915
|
};
|
8908
8916
|
ce.typeOf = Ge;
|
8909
8917
|
Tl.exports = ce;
|
@@ -8929,7 +8937,7 @@ function gh(e, t) {
|
|
8929
8937
|
).trim();
|
8930
8938
|
}
|
8931
8939
|
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 = "/",
|
8940
|
+
`, Za = "/", Ka = "*", Ct = "", _h = "comment", Eh = "declaration", Th = function(e, t) {
|
8933
8941
|
if (typeof e != "string")
|
8934
8942
|
throw new TypeError("First argument must be a string");
|
8935
8943
|
if (!e) return [];
|
@@ -8975,8 +8983,8 @@ var _i = { exports: {} }, Xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, yh = /\n/g, bh
|
|
8975
8983
|
}
|
8976
8984
|
function d() {
|
8977
8985
|
var k = a();
|
8978
|
-
if (!(Za != e.charAt(0) ||
|
8979
|
-
for (var x = 2; Ct != e.charAt(x) && (
|
8986
|
+
if (!(Za != e.charAt(0) || Ka != e.charAt(1))) {
|
8987
|
+
for (var x = 2; Ct != e.charAt(x) && (Ka != e.charAt(x) || Za != e.charAt(x + 1)); )
|
8980
8988
|
++x;
|
8981
8989
|
if (x += 2, Ct === e.charAt(x - 1))
|
8982
8990
|
return l("End of comment missing");
|
@@ -8993,8 +9001,8 @@ var _i = { exports: {} }, Xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, yh = /\n/g, bh
|
|
8993
9001
|
if (d(), !u(xh)) return l("property missing ':'");
|
8994
9002
|
var E = u(wh), C = k({
|
8995
9003
|
type: Eh,
|
8996
|
-
property:
|
8997
|
-
value: E ?
|
9004
|
+
property: Ya(x[0].replace(Xa, Ct)),
|
9005
|
+
value: E ? Ya(E[0].replace(Xa, Ct)) : Ct
|
8998
9006
|
});
|
8999
9007
|
return u(Ch), C;
|
9000
9008
|
}
|
@@ -9008,7 +9016,7 @@ var _i = { exports: {} }, Xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, yh = /\n/g, bh
|
|
9008
9016
|
}
|
9009
9017
|
return s(), f();
|
9010
9018
|
};
|
9011
|
-
function
|
9019
|
+
function Ya(e) {
|
9012
9020
|
return e ? e.replace(kh, Ct) : Ct;
|
9013
9021
|
}
|
9014
9022
|
var Oh = Th;
|
@@ -10173,10 +10181,10 @@ function Zh(e) {
|
|
10173
10181
|
throw new Error("");
|
10174
10182
|
}
|
10175
10183
|
yt.assertIsWebSocket = Zh;
|
10176
|
-
function
|
10184
|
+
function Kh(e) {
|
10177
10185
|
Xh.resetSubscribers(e), Gh.resetWebSockets(e);
|
10178
10186
|
}
|
10179
|
-
yt.resetGlobalState =
|
10187
|
+
yt.resetGlobalState = Kh;
|
10180
10188
|
var Nn = pe && pe.__assign || function() {
|
10181
10189
|
return Nn = Object.assign || function(e) {
|
10182
10190
|
for (var t, n = 1, r = arguments.length; n < r; n++) {
|
@@ -10188,7 +10196,7 @@ var Nn = pe && pe.__assign || function() {
|
|
10188
10196
|
};
|
10189
10197
|
Object.defineProperty(ur, "__esModule", { value: !0 });
|
10190
10198
|
ur.attachListeners = void 0;
|
10191
|
-
var
|
10199
|
+
var Yh = ot, at = pt, Jh = yt, Qh = function(e, t, n) {
|
10192
10200
|
e.onmessage = function(r) {
|
10193
10201
|
t.current.onMessage && t.current.onMessage(r), !(typeof t.current.filter == "function" && t.current.filter(r) !== !0) && n(r);
|
10194
10202
|
};
|
@@ -10226,7 +10234,7 @@ var Kh = ot, at = pt, Jh = yt, Qh = function(e, t, n) {
|
|
10226
10234
|
};
|
10227
10235
|
ur.attachListeners = function(e, t, n, r, i, a) {
|
10228
10236
|
var o = t.setLastMessage, l = t.setReadyState, u, s, c;
|
10229
|
-
return n.current.fromSocketIO && (u =
|
10237
|
+
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
10238
|
l(at.ReadyState.CLOSING), s(), c(), e.close(), u && clearInterval(u);
|
10231
10239
|
};
|
10232
10240
|
};
|
@@ -10282,13 +10290,13 @@ fr.attachSharedListeners = function(e, t, n, r) {
|
|
10282
10290
|
};
|
10283
10291
|
Object.defineProperty(lr, "__esModule", { value: !0 });
|
10284
10292
|
lr.createOrJoinSocket = void 0;
|
10285
|
-
var mt = sr,
|
10293
|
+
var mt = sr, Yt = pt, u0 = ur, c0 = fr, ri = cr, f0 = function(e, t, n, r, i) {
|
10286
10294
|
return function() {
|
10287
10295
|
if (ri.removeSubscriber(e, t), !ri.hasSubscribers(e)) {
|
10288
10296
|
try {
|
10289
10297
|
var a = mt.sharedWebSockets[e];
|
10290
10298
|
a instanceof WebSocket && (a.onclose = function(o) {
|
10291
|
-
n.current.onClose && n.current.onClose(o), r(
|
10299
|
+
n.current.onClose && n.current.onClose(o), r(Yt.ReadyState.CLOSED);
|
10292
10300
|
}), a.close();
|
10293
10301
|
} catch {
|
10294
10302
|
}
|
@@ -10297,11 +10305,11 @@ var mt = sr, Kt = pt, u0 = ur, c0 = fr, ri = cr, f0 = function(e, t, n, r, i) {
|
|
10297
10305
|
};
|
10298
10306
|
};
|
10299
10307
|
lr.createOrJoinSocket = function(e, t, n, r, i, a, o, l) {
|
10300
|
-
if (!
|
10301
|
-
throw
|
10308
|
+
if (!Yt.isEventSourceSupported && r.current.eventSourceOptions)
|
10309
|
+
throw Yt.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
10302
10310
|
if (r.current.share) {
|
10303
10311
|
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(
|
10312
|
+
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
10313
|
var s = {
|
10306
10314
|
setLastMessage: i,
|
10307
10315
|
setReadyState: n,
|
@@ -10311,7 +10319,7 @@ lr.createOrJoinSocket = function(e, t, n, r, i, a, o, l) {
|
|
10311
10319
|
};
|
10312
10320
|
return ri.addSubscriber(t, s), f0(t, s, r, n, u);
|
10313
10321
|
} else {
|
10314
|
-
if (e.current = r.current.eventSourceOptions ? new EventSource(t, r.current.eventSourceOptions) : new WebSocket(t, r.current.protocols), n(
|
10322
|
+
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
10323
|
throw new Error("WebSocket failed to be created");
|
10316
10324
|
return u0.attachListeners(e.current, {
|
10317
10325
|
setLastMessage: i,
|
@@ -11351,11 +11359,11 @@ var lo = {
|
|
11351
11359
|
}
|
11352
11360
|
}, Z0 = function(t) {
|
11353
11361
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
11354
|
-
},
|
11362
|
+
}, K0 = function(t) {
|
11355
11363
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
11356
11364
|
}, rn = function(t) {
|
11357
11365
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
11358
|
-
},
|
11366
|
+
}, Y0 = function(t) {
|
11359
11367
|
return rn(t) && !t.shiftKey;
|
11360
11368
|
}, J0 = function(t) {
|
11361
11369
|
return rn(t) && t.shiftKey;
|
@@ -11377,7 +11385,7 @@ var lo = {
|
|
11377
11385
|
returnFocusOnDeactivate: !0,
|
11378
11386
|
escapeDeactivates: !0,
|
11379
11387
|
delayInitialFocus: !0,
|
11380
|
-
isKeyForward:
|
11388
|
+
isKeyForward: Y0,
|
11381
11389
|
isKeyBackward: J0
|
11382
11390
|
}, n), o = {
|
11383
11391
|
// containers given to createFocusTrap()
|
@@ -11619,7 +11627,7 @@ var lo = {
|
|
11619
11627
|
});
|
11620
11628
|
A && (rn(S) && S.preventDefault(), k(A));
|
11621
11629
|
}, U = function(S) {
|
11622
|
-
if (
|
11630
|
+
if (K0(S) && Zt(a.escapeDeactivates, S) !== !1) {
|
11623
11631
|
S.preventDefault(), l.deactivate();
|
11624
11632
|
return;
|
11625
11633
|
}
|
@@ -11996,7 +12004,7 @@ var Cn = Je, X = wo, pm = nm, hm = pm.createFocusTrap, mm = rm, gm = mm.isFocusa
|
|
11996
12004
|
return null;
|
11997
12005
|
}
|
11998
12006
|
}]), n;
|
11999
|
-
}(Cn.Component),
|
12007
|
+
}(Cn.Component), Kt = typeof Element > "u" ? Function : Element;
|
12000
12008
|
Ai.propTypes = {
|
12001
12009
|
active: X.bool,
|
12002
12010
|
paused: X.bool,
|
@@ -12012,9 +12020,9 @@ Ai.propTypes = {
|
|
12012
12020
|
onDeactivate: X.func,
|
12013
12021
|
onPostDeactivate: X.func,
|
12014
12022
|
checkCanReturnFocus: X.func,
|
12015
|
-
initialFocus: X.oneOfType([X.instanceOf(
|
12023
|
+
initialFocus: X.oneOfType([X.instanceOf(Kt), X.string, X.bool, X.func]),
|
12016
12024
|
fallbackFocus: X.oneOfType([
|
12017
|
-
X.instanceOf(
|
12025
|
+
X.instanceOf(Kt),
|
12018
12026
|
X.string,
|
12019
12027
|
// NOTE: does not support `false` as value (or return value from function)
|
12020
12028
|
X.func
|
@@ -12022,7 +12030,7 @@ Ai.propTypes = {
|
|
12022
12030
|
escapeDeactivates: X.oneOfType([X.bool, X.func]),
|
12023
12031
|
clickOutsideDeactivates: X.oneOfType([X.bool, X.func]),
|
12024
12032
|
returnFocusOnDeactivate: X.bool,
|
12025
|
-
setReturnFocus: X.oneOfType([X.instanceOf(
|
12033
|
+
setReturnFocus: X.oneOfType([X.instanceOf(Kt), X.string, X.bool, X.func]),
|
12026
12034
|
allowOutsideClick: X.oneOfType([X.bool, X.func]),
|
12027
12035
|
preventScroll: X.bool,
|
12028
12036
|
tabbableOptions: X.shape({
|
@@ -12033,12 +12041,12 @@ Ai.propTypes = {
|
|
12033
12041
|
isKeyForward: X.func,
|
12034
12042
|
isKeyBackward: X.func
|
12035
12043
|
}),
|
12036
|
-
containerElements: X.arrayOf(X.instanceOf(
|
12044
|
+
containerElements: X.arrayOf(X.instanceOf(Kt)),
|
12037
12045
|
// DOM element ONLY
|
12038
12046
|
children: X.oneOfType([
|
12039
12047
|
X.element,
|
12040
12048
|
// React element
|
12041
|
-
X.instanceOf(
|
12049
|
+
X.instanceOf(Kt)
|
12042
12050
|
// DOM element
|
12043
12051
|
])
|
12044
12052
|
// NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
|
@@ -12375,7 +12383,7 @@ function ji() {
|
|
12375
12383
|
};
|
12376
12384
|
return /* @__PURE__ */ y.jsxs("div", { className: "live-chat-form", children: [
|
12377
12385
|
a && /* @__PURE__ */ y.jsx("p", { children: a }),
|
12378
|
-
(i ?? []).map(({ key: j, name: v }) => /* @__PURE__ */ y.jsxs(
|
12386
|
+
(i ?? []).map(({ key: j, name: v }) => /* @__PURE__ */ y.jsxs(Ys, { children: [
|
12379
12387
|
/* @__PURE__ */ y.jsx(
|
12380
12388
|
"input",
|
12381
12389
|
{
|
@@ -12831,7 +12839,7 @@ function Ri({ submitEventExternal: e }) {
|
|
12831
12839
|
"Conversation-History-Id": Se
|
12832
12840
|
},
|
12833
12841
|
body: JSON.stringify({
|
12834
|
-
|
12842
|
+
[t == null ? void 0 : t.messagesKey]: Ie,
|
12835
12843
|
...t.payloadParams
|
12836
12844
|
})
|
12837
12845
|
});
|
@@ -13016,20 +13024,20 @@ Ri.propTypes = {
|
|
13016
13024
|
Ri.defaultProps = {
|
13017
13025
|
submitEventExternal: null
|
13018
13026
|
};
|
13019
|
-
const
|
13027
|
+
const Kl = ({ children: e, id: t = null, configurations: n = {} }) => {
|
13020
13028
|
const r = {
|
13021
13029
|
id: t,
|
13022
13030
|
configurations: n
|
13023
13031
|
};
|
13024
13032
|
return /* @__PURE__ */ y.jsx(ko, { ...r, children: /* @__PURE__ */ y.jsx(_o, { children: /* @__PURE__ */ y.jsx(So, { children: /* @__PURE__ */ y.jsx(jl, { children: e }) }) }) });
|
13025
13033
|
};
|
13026
|
-
|
13034
|
+
Kl.propTypes = {
|
13027
13035
|
children: g.element,
|
13028
13036
|
configurations: g.object,
|
13029
13037
|
id: g.string
|
13030
13038
|
};
|
13031
13039
|
function Nm({ configurations: e = {}, key: t, id: n, submitEventExternal: r }) {
|
13032
|
-
return /* @__PURE__ */ y.jsx(
|
13040
|
+
return /* @__PURE__ */ y.jsx(Kl, { id: n, configurations: e, children: /* @__PURE__ */ y.jsx(Ri, { submitEventExternal: r }) }, t);
|
13033
13041
|
}
|
13034
13042
|
Nm.propTypes = {
|
13035
13043
|
configurations: g.object,
|