@2uinc/frontend-component-xpert-chatbot 1.3.11-beta.3 → 1.3.11-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.min.js +498 -488
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import ue, { useState as pe, useEffect as
|
1
|
+
import ue, { useState as pe, useEffect as de, useCallback as at, useRef as Fe } from "react";
|
2
2
|
const tl = {
|
3
3
|
xpertKey: "edx",
|
4
4
|
chatApiEndpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/chat",
|
@@ -246,14 +246,14 @@ al();
|
|
246
246
|
* This source code is licensed under the MIT license found in the
|
247
247
|
* LICENSE file in the root directory of this source tree.
|
248
248
|
*/
|
249
|
-
var ul = ue,
|
249
|
+
var ul = ue, vi = 60103;
|
250
250
|
ct.Fragment = 60107;
|
251
251
|
if (typeof Symbol == "function" && Symbol.for) {
|
252
252
|
var gr = Symbol.for;
|
253
|
-
|
253
|
+
vi = gr("react.element"), ct.Fragment = gr("react.fragment");
|
254
254
|
}
|
255
255
|
var sl = ul.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, cl = Object.prototype.hasOwnProperty, pl = { key: !0, ref: !0, __self: !0, __source: !0 };
|
256
|
-
function
|
256
|
+
function ki(e, t, n) {
|
257
257
|
var r, i = {}, o = null, l = null;
|
258
258
|
n !== void 0 && (o = "" + n), t.key !== void 0 && (o = "" + t.key), t.ref !== void 0 && (l = t.ref);
|
259
259
|
for (r in t)
|
@@ -261,17 +261,17 @@ function vi(e, t, n) {
|
|
261
261
|
if (e && e.defaultProps)
|
262
262
|
for (r in t = e.defaultProps, t)
|
263
263
|
i[r] === void 0 && (i[r] = t[r]);
|
264
|
-
return { $$typeof:
|
264
|
+
return { $$typeof: vi, type: e, key: o, ref: l, props: i, _owner: sl.current };
|
265
265
|
}
|
266
|
-
ct.jsx =
|
267
|
-
ct.jsxs =
|
266
|
+
ct.jsx = ki;
|
267
|
+
ct.jsxs = ki;
|
268
268
|
Ti.exports = ct;
|
269
|
-
var D = Ti.exports,
|
270
|
-
function
|
269
|
+
var D = Ti.exports, Ei = { exports: {} }, fl = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", dl = fl, hl = dl;
|
270
|
+
function ji() {
|
271
271
|
}
|
272
272
|
function Si() {
|
273
273
|
}
|
274
|
-
Si.resetWarningCache =
|
274
|
+
Si.resetWarningCache = ji;
|
275
275
|
var gl = function() {
|
276
276
|
function e(r, i, o, l, a, s) {
|
277
277
|
if (s !== hl) {
|
@@ -306,12 +306,12 @@ var gl = function() {
|
|
306
306
|
shape: t,
|
307
307
|
exact: t,
|
308
308
|
checkPropTypes: Si,
|
309
|
-
resetWarningCache:
|
309
|
+
resetWarningCache: ji
|
310
310
|
};
|
311
311
|
return n.PropTypes = n, n;
|
312
312
|
};
|
313
|
-
|
314
|
-
var Ci =
|
313
|
+
Ei.exports = gl();
|
314
|
+
var Ci = Ei.exports;
|
315
315
|
const g = /* @__PURE__ */ Ue(Ci);
|
316
316
|
/*! js-cookie v3.0.5 | MIT */
|
317
317
|
function wt(e) {
|
@@ -386,7 +386,7 @@ function wn(e, t) {
|
|
386
386
|
var De = wn(ml, { path: "/" });
|
387
387
|
function yl(e) {
|
388
388
|
const [t, n] = pe(null);
|
389
|
-
return
|
389
|
+
return de(() => {
|
390
390
|
console.log("Chatbot - optimizely mount");
|
391
391
|
try {
|
392
392
|
(() => {
|
@@ -423,7 +423,7 @@ const Ml = 576, xl = (e) => {
|
|
423
423
|
).matches
|
424
424
|
);
|
425
425
|
}, [e]);
|
426
|
-
return
|
426
|
+
return de(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
|
427
427
|
}, pt = xl, nt = /^[a-z0-9]+(-[a-z0-9]+)*$/, _t = (e, t, n, r = "") => {
|
428
428
|
const i = e.split(":");
|
429
429
|
if (e.slice(0, 1) === "@") {
|
@@ -440,7 +440,7 @@ const Ml = 576, xl = (e) => {
|
|
440
440
|
prefix: s,
|
441
441
|
name: a
|
442
442
|
};
|
443
|
-
return t && !
|
443
|
+
return t && !kt(u) ? null : u;
|
444
444
|
}
|
445
445
|
const o = i[0], l = o.split("-");
|
446
446
|
if (l.length > 1) {
|
@@ -449,7 +449,7 @@ const Ml = 576, xl = (e) => {
|
|
449
449
|
prefix: l.shift(),
|
450
450
|
name: l.join("-")
|
451
451
|
};
|
452
|
-
return t && !
|
452
|
+
return t && !kt(a) ? null : a;
|
453
453
|
}
|
454
454
|
if (n && r === "") {
|
455
455
|
const a = {
|
@@ -457,10 +457,10 @@ const Ml = 576, xl = (e) => {
|
|
457
457
|
prefix: "",
|
458
458
|
name: o
|
459
459
|
};
|
460
|
-
return t && !
|
460
|
+
return t && !kt(a, n) ? null : a;
|
461
461
|
}
|
462
462
|
return null;
|
463
|
-
},
|
463
|
+
}, kt = (e, t) => e ? !!((e.provider === "" || e.provider.match(nt)) && (t && e.prefix === "" || e.prefix.match(nt)) && e.name.match(nt)) : !1, Ai = Object.freeze(
|
464
464
|
{
|
465
465
|
left: 0,
|
466
466
|
top: 0,
|
@@ -598,31 +598,31 @@ let ut = !1;
|
|
598
598
|
function Li(e) {
|
599
599
|
return typeof e == "boolean" && (ut = e), ut;
|
600
600
|
}
|
601
|
-
function
|
601
|
+
function vl(e) {
|
602
602
|
const t = typeof e == "string" ? _t(e, !0, ut) : e;
|
603
603
|
if (t) {
|
604
604
|
const n = Re(t.provider, t.prefix), r = t.name;
|
605
605
|
return n.icons[r] || (n.missing.has(r) ? null : void 0);
|
606
606
|
}
|
607
607
|
}
|
608
|
-
function
|
608
|
+
function kl(e, t) {
|
609
609
|
const n = _t(e, !0, ut);
|
610
610
|
if (!n)
|
611
611
|
return !1;
|
612
612
|
const r = Re(n.provider, n.prefix);
|
613
613
|
return Tl(r, n.name, t);
|
614
614
|
}
|
615
|
-
function
|
615
|
+
function El(e, t) {
|
616
616
|
if (typeof e != "object")
|
617
617
|
return !1;
|
618
618
|
if (typeof t != "string" && (t = e.provider || ""), ut && !t && !e.prefix) {
|
619
619
|
let i = !1;
|
620
620
|
return zi(e) && (e.prefix = "", Oi(e, (o, l) => {
|
621
|
-
l &&
|
621
|
+
l && kl(o, l) && (i = !0);
|
622
622
|
})), i;
|
623
623
|
}
|
624
624
|
const n = e.prefix;
|
625
|
-
if (!
|
625
|
+
if (!kt({
|
626
626
|
provider: t,
|
627
627
|
prefix: n,
|
628
628
|
name: "a"
|
@@ -639,7 +639,7 @@ const Pi = Object.freeze({
|
|
639
639
|
...Pi,
|
640
640
|
// Transformations
|
641
641
|
...At
|
642
|
-
}),
|
642
|
+
}), jl = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Sl = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
643
643
|
function Mr(e, t, n) {
|
644
644
|
if (t === 1)
|
645
645
|
return e;
|
@@ -647,7 +647,7 @@ function Mr(e, t, n) {
|
|
647
647
|
return Math.ceil(e * t * n) / n;
|
648
648
|
if (typeof e != "string")
|
649
649
|
return e;
|
650
|
-
const r = e.split(
|
650
|
+
const r = e.split(jl);
|
651
651
|
if (r === null || !r.length)
|
652
652
|
return e;
|
653
653
|
const i = [];
|
@@ -680,17 +680,17 @@ function Al(e, t) {
|
|
680
680
|
let o = n.body;
|
681
681
|
[n, r].forEach((I) => {
|
682
682
|
const b = [], S = I.hFlip, w = I.vFlip;
|
683
|
-
let
|
684
|
-
S ? w ?
|
683
|
+
let k = I.rotate;
|
684
|
+
S ? w ? k += 2 : (b.push(
|
685
685
|
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
686
686
|
), b.push("scale(-1 1)"), i.top = i.left = 0) : w && (b.push(
|
687
687
|
"translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
|
688
688
|
), b.push("scale(1 -1)"), i.top = i.left = 0);
|
689
|
-
let
|
690
|
-
switch (
|
689
|
+
let E;
|
690
|
+
switch (k < 0 && (k -= Math.floor(k / 4) * 4), k = k % 4, k) {
|
691
691
|
case 1:
|
692
|
-
|
693
|
-
"rotate(90 " +
|
692
|
+
E = i.height / 2 + i.top, b.unshift(
|
693
|
+
"rotate(90 " + E.toString() + " " + E.toString() + ")"
|
694
694
|
);
|
695
695
|
break;
|
696
696
|
case 2:
|
@@ -699,12 +699,12 @@ function Al(e, t) {
|
|
699
699
|
);
|
700
700
|
break;
|
701
701
|
case 3:
|
702
|
-
|
703
|
-
"rotate(-90 " +
|
702
|
+
E = i.width / 2 + i.left, b.unshift(
|
703
|
+
"rotate(-90 " + E.toString() + " " + E.toString() + ")"
|
704
704
|
);
|
705
705
|
break;
|
706
706
|
}
|
707
|
-
|
707
|
+
k % 2 === 1 && (i.left !== i.top && (E = i.left, i.left = i.top, i.top = E), i.width !== i.height && (E = i.width, i.width = i.height, i.height = E)), b.length && (o = '<g transform="' + b.join(" ") + '">' + o + "</g>");
|
708
708
|
});
|
709
709
|
const l = r.width, a = r.height, s = i.width, u = i.height;
|
710
710
|
let c, p;
|
@@ -772,11 +772,11 @@ function Qn(e) {
|
|
772
772
|
const Yn = /* @__PURE__ */ Object.create(null), Xe = [
|
773
773
|
"https://api.simplesvg.com",
|
774
774
|
"https://api.unisvg.com"
|
775
|
-
],
|
775
|
+
], Et = [];
|
776
776
|
for (; Xe.length > 0; )
|
777
|
-
Xe.length === 1 || Math.random() > 0.5 ?
|
777
|
+
Xe.length === 1 || Math.random() > 0.5 ? Et.push(Xe.shift()) : Et.push(Xe.pop());
|
778
778
|
Yn[""] = Qn({
|
779
|
-
resources: ["https://api.iconify.design"].concat(
|
779
|
+
resources: ["https://api.iconify.design"].concat(Et)
|
780
780
|
});
|
781
781
|
function Rl(e, t) {
|
782
782
|
const n = Qn(t);
|
@@ -1027,12 +1027,12 @@ function Kl(e, t, n, r) {
|
|
1027
1027
|
abort: b
|
1028
1028
|
};
|
1029
1029
|
}
|
1030
|
-
function
|
1030
|
+
function k() {
|
1031
1031
|
s = "failed", f.forEach((y) => {
|
1032
1032
|
y(void 0, c);
|
1033
1033
|
});
|
1034
1034
|
}
|
1035
|
-
function
|
1035
|
+
function E() {
|
1036
1036
|
m.forEach((y) => {
|
1037
1037
|
y.status === "pending" && (y.status = "aborted");
|
1038
1038
|
}), m = [];
|
@@ -1050,14 +1050,14 @@ function Kl(e, t, n, r) {
|
|
1050
1050
|
return;
|
1051
1051
|
}
|
1052
1052
|
if (A === "abort") {
|
1053
|
-
c = U,
|
1053
|
+
c = U, k();
|
1054
1054
|
return;
|
1055
1055
|
}
|
1056
1056
|
if (Q) {
|
1057
|
-
c = U, m.length || (l.length ? _() :
|
1057
|
+
c = U, m.length || (l.length ? _() : k());
|
1058
1058
|
return;
|
1059
1059
|
}
|
1060
|
-
if (I(),
|
1060
|
+
if (I(), E(), !e.random) {
|
1061
1061
|
const q = e.resources.indexOf(y.resource);
|
1062
1062
|
q !== -1 && q !== e.index && (e.index = q);
|
1063
1063
|
}
|
@@ -1073,11 +1073,11 @@ function Kl(e, t, n, r) {
|
|
1073
1073
|
if (y === void 0) {
|
1074
1074
|
if (m.length) {
|
1075
1075
|
p = setTimeout(() => {
|
1076
|
-
I(), s === "pending" && (
|
1076
|
+
I(), s === "pending" && (E(), k());
|
1077
1077
|
}, e.timeout);
|
1078
1078
|
return;
|
1079
1079
|
}
|
1080
|
-
|
1080
|
+
k();
|
1081
1081
|
return;
|
1082
1082
|
}
|
1083
1083
|
const A = {
|
@@ -1178,10 +1178,10 @@ function Nr(e, t) {
|
|
1178
1178
|
} catch {
|
1179
1179
|
}
|
1180
1180
|
}
|
1181
|
-
function
|
1181
|
+
function vn(e, t) {
|
1182
1182
|
return qn(e, Ui, t.toString());
|
1183
1183
|
}
|
1184
|
-
function
|
1184
|
+
function kn(e) {
|
1185
1185
|
return parseInt(Tn(e, Ui)) || 0;
|
1186
1186
|
}
|
1187
1187
|
const Ut = {
|
@@ -1212,11 +1212,11 @@ function Hi(e, t) {
|
|
1212
1212
|
const r = Tn(n, Dr);
|
1213
1213
|
if (r !== wr) {
|
1214
1214
|
if (r) {
|
1215
|
-
const a =
|
1215
|
+
const a = kn(n);
|
1216
1216
|
for (let s = 0; s < a; s++)
|
1217
1217
|
Nr(n, st + s.toString());
|
1218
1218
|
}
|
1219
|
-
qn(n, Dr, wr),
|
1219
|
+
qn(n, Dr, wr), vn(n, 0);
|
1220
1220
|
return;
|
1221
1221
|
}
|
1222
1222
|
const i = Math.floor(Date.now() / Bi) - ta, o = (a) => {
|
@@ -1232,9 +1232,9 @@ function Hi(e, t) {
|
|
1232
1232
|
Nr(n, s);
|
1233
1233
|
}
|
1234
1234
|
};
|
1235
|
-
let l =
|
1235
|
+
let l = kn(n);
|
1236
1236
|
for (let a = l - 1; a >= 0; a--)
|
1237
|
-
o(a) || (a === l - 1 ? (l--,
|
1237
|
+
o(a) || (a === l - 1 ? (l--, vn(n, l)) : Qi[e].add(a));
|
1238
1238
|
}
|
1239
1239
|
function qi() {
|
1240
1240
|
if (!$n) {
|
@@ -1277,7 +1277,7 @@ function ia(e, t) {
|
|
1277
1277
|
let l;
|
1278
1278
|
if (o.size)
|
1279
1279
|
o.delete(l = Array.from(o).shift());
|
1280
|
-
else if (l =
|
1280
|
+
else if (l = kn(i), !vn(i, l + 1))
|
1281
1281
|
return;
|
1282
1282
|
const a = {
|
1283
1283
|
cached: Math.floor(Date.now() / Bi),
|
@@ -1453,7 +1453,7 @@ const $i = {
|
|
1453
1453
|
role: "img"
|
1454
1454
|
}, xa = {
|
1455
1455
|
display: "inline-block"
|
1456
|
-
},
|
1456
|
+
}, En = {
|
1457
1457
|
backgroundColor: "currentColor"
|
1458
1458
|
}, Vi = {
|
1459
1459
|
backgroundColor: "transparent"
|
@@ -1461,13 +1461,13 @@ const $i = {
|
|
1461
1461
|
Image: "var(--svg)",
|
1462
1462
|
Repeat: "no-repeat",
|
1463
1463
|
Size: "100% 100%"
|
1464
|
-
},
|
1465
|
-
WebkitMask:
|
1466
|
-
mask:
|
1464
|
+
}, vr = {
|
1465
|
+
WebkitMask: En,
|
1466
|
+
mask: En,
|
1467
1467
|
background: Vi
|
1468
1468
|
};
|
1469
|
-
for (const e in
|
1470
|
-
const t =
|
1469
|
+
for (const e in vr) {
|
1470
|
+
const t = vr[e];
|
1471
1471
|
for (const n in Tr)
|
1472
1472
|
t[e + n] = Tr[n];
|
1473
1473
|
}
|
@@ -1475,7 +1475,7 @@ const ba = {
|
|
1475
1475
|
...$i,
|
1476
1476
|
inline: !0
|
1477
1477
|
};
|
1478
|
-
function
|
1478
|
+
function kr(e) {
|
1479
1479
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
1480
1480
|
}
|
1481
1481
|
const wa = (e, t, n, r) => {
|
@@ -1484,8 +1484,8 @@ const wa = (e, t, n, r) => {
|
|
1484
1484
|
ref: r
|
1485
1485
|
};
|
1486
1486
|
for (let w in t) {
|
1487
|
-
const
|
1488
|
-
if (
|
1487
|
+
const k = t[w];
|
1488
|
+
if (k !== void 0)
|
1489
1489
|
switch (w) {
|
1490
1490
|
case "icon":
|
1491
1491
|
case "style":
|
@@ -1498,23 +1498,23 @@ const wa = (e, t, n, r) => {
|
|
1498
1498
|
case "inline":
|
1499
1499
|
case "hFlip":
|
1500
1500
|
case "vFlip":
|
1501
|
-
o[w] =
|
1501
|
+
o[w] = k === !0 || k === "true" || k === 1;
|
1502
1502
|
break;
|
1503
1503
|
case "flip":
|
1504
|
-
typeof
|
1504
|
+
typeof k == "string" && ca(o, k);
|
1505
1505
|
break;
|
1506
1506
|
case "color":
|
1507
|
-
a.color =
|
1507
|
+
a.color = k;
|
1508
1508
|
break;
|
1509
1509
|
case "rotate":
|
1510
|
-
typeof
|
1510
|
+
typeof k == "string" ? o[w] = pa(k) : typeof k == "number" && (o[w] = k);
|
1511
1511
|
break;
|
1512
1512
|
case "ariaHidden":
|
1513
1513
|
case "aria-hidden":
|
1514
|
-
|
1514
|
+
k !== !0 && k !== "true" && delete u["aria-hidden"];
|
1515
1515
|
break;
|
1516
1516
|
default:
|
1517
|
-
i[w] === void 0 && (u[w] =
|
1517
|
+
i[w] === void 0 && (u[w] = k);
|
1518
1518
|
}
|
1519
1519
|
}
|
1520
1520
|
const c = Al(e, o), p = c.attributes;
|
@@ -1523,9 +1523,9 @@ const wa = (e, t, n, r) => {
|
|
1523
1523
|
...a,
|
1524
1524
|
...s
|
1525
1525
|
}, Object.assign(u, p);
|
1526
|
-
let w = 0,
|
1527
|
-
return typeof
|
1528
|
-
__html: ya(Pl(c.body,
|
1526
|
+
let w = 0, k = t.id;
|
1527
|
+
return typeof k == "string" && (k = k.replace(/-/g, "_")), u.dangerouslySetInnerHTML = {
|
1528
|
+
__html: ya(Pl(c.body, k ? () => k + "ID" + w++ : "iconifyReact"))
|
1529
1529
|
}, ue.createElement("svg", u);
|
1530
1530
|
}
|
1531
1531
|
const { body: m, width: f, height: I } = e, b = l === "mask" || (l === "bg" ? !1 : m.indexOf("currentColor") !== -1), S = fa(m, {
|
@@ -1536,10 +1536,10 @@ const wa = (e, t, n, r) => {
|
|
1536
1536
|
return u.style = {
|
1537
1537
|
...a,
|
1538
1538
|
"--svg": ga(S),
|
1539
|
-
width:
|
1540
|
-
height:
|
1539
|
+
width: kr(p.width),
|
1540
|
+
height: kr(p.height),
|
1541
1541
|
...xa,
|
1542
|
-
...b ?
|
1542
|
+
...b ? En : Vi,
|
1543
1543
|
...s
|
1544
1544
|
}, ue.createElement("span", u);
|
1545
1545
|
};
|
@@ -1555,7 +1555,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
1555
1555
|
// Check if item is an object and not null/array
|
1556
1556
|
(typeof r != "object" || r === null || r instanceof Array || // Check for 'icons' and 'prefix'
|
1557
1557
|
typeof r.icons != "object" || typeof r.prefix != "string" || // Add icon set
|
1558
|
-
!
|
1558
|
+
!El(r)) && console.error(n);
|
1559
1559
|
} catch {
|
1560
1560
|
console.error(n);
|
1561
1561
|
}
|
@@ -1614,7 +1614,7 @@ class Wi extends ue.Component {
|
|
1614
1614
|
this._abortLoading(), this._setData(null);
|
1615
1615
|
return;
|
1616
1616
|
}
|
1617
|
-
const o =
|
1617
|
+
const o = vl(i);
|
1618
1618
|
if (!o) {
|
1619
1619
|
(!this._loading || this._loading.name !== r) && (this._abortLoading(), this._icon = "", this._setData(null), o !== null && (this._loading = {
|
1620
1620
|
name: r,
|
@@ -1682,7 +1682,7 @@ ue.forwardRef(function(t, n) {
|
|
1682
1682
|
};
|
1683
1683
|
return ue.createElement(Wi, r);
|
1684
1684
|
});
|
1685
|
-
const
|
1685
|
+
const Er = {
|
1686
1686
|
"proactive-message.message": "Can I answer any questions for you?",
|
1687
1687
|
"popup.buttons.minimize": "Minimize",
|
1688
1688
|
"popup.buttons.close": "Close"
|
@@ -1690,13 +1690,13 @@ const jr = {
|
|
1690
1690
|
function Vn(e) {
|
1691
1691
|
var l;
|
1692
1692
|
const [t, n] = pe(!0), r = t && (!(window != null && window.OnetrustActiveGroups) || ((l = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : l.includes("C0003"))) && De.get(e.cookieName) === void 0;
|
1693
|
-
|
1693
|
+
de(() => {
|
1694
1694
|
var a;
|
1695
1695
|
(a = window == null ? void 0 : window.OneTrust) == null || a.OnConsentChanged(() => {
|
1696
1696
|
var s;
|
1697
1697
|
!((s = window == null ? void 0 : window.OnetrustActiveGroups) != null && s.includes("C0003")) && De.get(e.cookieName) !== void 0 && De.remove(e.cookieName);
|
1698
1698
|
});
|
1699
|
-
}, [e.cookieName]),
|
1699
|
+
}, [e.cookieName]), de(() => {
|
1700
1700
|
var a;
|
1701
1701
|
e.showMessage || (!(window != null && window.OnetrustActiveGroups) || (a = window == null ? void 0 : window.OnetrustActiveGroups) != null && a.includes("C0003")) && o(e.cookieName, 1, 1);
|
1702
1702
|
}, [e.showMessage, e.cookieName]);
|
@@ -1727,7 +1727,7 @@ function Vn(e) {
|
|
1727
1727
|
cursor: "pointer"
|
1728
1728
|
},
|
1729
1729
|
onClick: i,
|
1730
|
-
"aria-label":
|
1730
|
+
"aria-label": Er["popup.buttons.close"],
|
1731
1731
|
type: "button",
|
1732
1732
|
children: /* @__PURE__ */ D.jsx(
|
1733
1733
|
Ae,
|
@@ -1749,7 +1749,7 @@ function Vn(e) {
|
|
1749
1749
|
{
|
1750
1750
|
className: "xpert_chatbot__proactive-message__body-container",
|
1751
1751
|
onClick: e.onClick,
|
1752
|
-
"aria-label":
|
1752
|
+
"aria-label": Er["proactive-message.message"],
|
1753
1753
|
type: "button",
|
1754
1754
|
children: /* @__PURE__ */ D.jsx("div", { className: "xpert_chatbot__proactive-message__body", children: e.children })
|
1755
1755
|
}
|
@@ -1910,18 +1910,18 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1910
1910
|
}, Ta = function(t, n) {
|
1911
1911
|
var r = Ce(t);
|
1912
1912
|
return r < 0 && n && !to(t) ? 0 : r;
|
1913
|
-
},
|
1913
|
+
}, va = function(t, n) {
|
1914
1914
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
1915
1915
|
}, no = function(t) {
|
1916
1916
|
return t.tagName === "INPUT";
|
1917
|
-
},
|
1917
|
+
}, ka = function(t) {
|
1918
1918
|
return no(t) && t.type === "hidden";
|
1919
|
-
},
|
1919
|
+
}, Ea = function(t) {
|
1920
1920
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
1921
1921
|
return r.tagName === "SUMMARY";
|
1922
1922
|
});
|
1923
1923
|
return n;
|
1924
|
-
},
|
1924
|
+
}, ja = function(t, n) {
|
1925
1925
|
for (var r = 0; r < t.length; r++)
|
1926
1926
|
if (t[r].checked && t[r].form === n)
|
1927
1927
|
return t[r];
|
@@ -1939,7 +1939,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1939
1939
|
} catch (l) {
|
1940
1940
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", l.message), !1;
|
1941
1941
|
}
|
1942
|
-
var o =
|
1942
|
+
var o = ja(i, t.form);
|
1943
1943
|
return !o || o === t;
|
1944
1944
|
}, Ca = function(t) {
|
1945
1945
|
return no(t) && t.type === "radio";
|
@@ -1955,7 +1955,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1955
1955
|
}
|
1956
1956
|
}
|
1957
1957
|
return o;
|
1958
|
-
},
|
1958
|
+
}, jr = function(t) {
|
1959
1959
|
var n = t.getBoundingClientRect(), r = n.width, i = n.height;
|
1960
1960
|
return r === 0 && i === 0;
|
1961
1961
|
}, za = function(t, n) {
|
@@ -1970,7 +1970,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1970
1970
|
for (var a = t; t; ) {
|
1971
1971
|
var s = t.parentElement, u = zt(t);
|
1972
1972
|
if (s && !s.shadowRoot && i(s) === !0)
|
1973
|
-
return
|
1973
|
+
return jr(t);
|
1974
1974
|
t.assignedSlot ? t = t.assignedSlot : !s && u !== t.ownerDocument ? t = u.host : t = s;
|
1975
1975
|
}
|
1976
1976
|
t = a;
|
@@ -1980,7 +1980,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1980
1980
|
if (r !== "legacy-full")
|
1981
1981
|
return !0;
|
1982
1982
|
} else if (r === "non-zero-area")
|
1983
|
-
return
|
1983
|
+
return jr(t);
|
1984
1984
|
return !1;
|
1985
1985
|
}, La = function(t) {
|
1986
1986
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
@@ -2000,9 +2000,9 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2000
2000
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
2001
2001
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
2002
2002
|
// note related to `candidateSelectors`)
|
2003
|
-
Lt(n) ||
|
2004
|
-
|
2005
|
-
},
|
2003
|
+
Lt(n) || ka(n) || za(n, t) || // For a details element with a summary, the summary element gets the focus
|
2004
|
+
Ea(n) || La(n));
|
2005
|
+
}, jn = function(t, n) {
|
2006
2006
|
return !(Aa(n) || Ce(n) < 0 || !Pt(t, n));
|
2007
2007
|
}, Pa = function(t) {
|
2008
2008
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
@@ -2018,18 +2018,18 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2018
2018
|
isScope: l,
|
2019
2019
|
content: u
|
2020
2020
|
});
|
2021
|
-
}), r.sort(
|
2021
|
+
}), r.sort(va).reduce(function(i, o) {
|
2022
2022
|
return o.isScope ? i.push.apply(i, o.content) : i.push(o.content), i;
|
2023
2023
|
}, []).concat(n);
|
2024
2024
|
}, ro = function(t, n) {
|
2025
2025
|
n = n || {};
|
2026
2026
|
var r;
|
2027
2027
|
return n.getShadowRoot ? r = eo([t], n.includeContainer, {
|
2028
|
-
filter:
|
2028
|
+
filter: jn.bind(null, n),
|
2029
2029
|
flatten: !1,
|
2030
2030
|
getShadowRoot: n.getShadowRoot,
|
2031
2031
|
shadowRootFilter: Pa
|
2032
|
-
}) : r = Ji(t, n.includeContainer,
|
2032
|
+
}) : r = Ji(t, n.includeContainer, jn.bind(null, n)), Fa(r);
|
2033
2033
|
}, io = function(t, n) {
|
2034
2034
|
n = n || {};
|
2035
2035
|
var r;
|
@@ -2041,8 +2041,8 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2041
2041
|
}, Le = function(t, n) {
|
2042
2042
|
if (n = n || {}, !t)
|
2043
2043
|
throw new Error("No node provided");
|
2044
|
-
return _e.call(t, Ot) === !1 ? !1 :
|
2045
|
-
}, Ra = /* @__PURE__ */ Xi.concat("iframe").join(","),
|
2044
|
+
return _e.call(t, Ot) === !1 ? !1 : jn(n, t);
|
2045
|
+
}, Ra = /* @__PURE__ */ Xi.concat("iframe").join(","), jt = function(t, n) {
|
2046
2046
|
if (n = n || {}, !t)
|
2047
2047
|
throw new Error("No node provided");
|
2048
2048
|
return _e.call(t, Ra) === !1 ? !1 : Pt(n, t);
|
@@ -2051,7 +2051,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2051
2051
|
__proto__: null,
|
2052
2052
|
focusable: io,
|
2053
2053
|
getTabIndex: Ce,
|
2054
|
-
isFocusable:
|
2054
|
+
isFocusable: jt,
|
2055
2055
|
isTabbable: Le,
|
2056
2056
|
tabbable: ro
|
2057
2057
|
}, Symbol.toStringTag, { value: "Module" }));
|
@@ -2217,7 +2217,7 @@ var Ar = {
|
|
2217
2217
|
var M = c("initialFocus");
|
2218
2218
|
if (M === !1)
|
2219
2219
|
return !1;
|
2220
|
-
if (M === void 0 || !
|
2220
|
+
if (M === void 0 || !jt(M, o.tabbableOptions))
|
2221
2221
|
if (u(r.activeElement) >= 0)
|
2222
2222
|
M = r.activeElement;
|
2223
2223
|
else {
|
@@ -2282,14 +2282,14 @@ var Ar = {
|
|
2282
2282
|
return M.posTabIndexesFound;
|
2283
2283
|
}) && l.containerGroups.length > 1)
|
2284
2284
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
2285
|
-
}, f = function
|
2285
|
+
}, f = function j(M) {
|
2286
2286
|
var N = M.activeElement;
|
2287
2287
|
if (N)
|
2288
|
-
return N.shadowRoot && N.shadowRoot.activeElement !== null ?
|
2289
|
-
}, I = function
|
2288
|
+
return N.shadowRoot && N.shadowRoot.activeElement !== null ? j(N.shadowRoot) : N;
|
2289
|
+
}, I = function j(M) {
|
2290
2290
|
if (M !== !1 && M !== f(document)) {
|
2291
2291
|
if (!M || !M.focus) {
|
2292
|
-
|
2292
|
+
j(p());
|
2293
2293
|
return;
|
2294
2294
|
}
|
2295
2295
|
M.focus({
|
@@ -2312,7 +2312,7 @@ var Ar = {
|
|
2312
2312
|
var se = W.firstTabbableNode;
|
2313
2313
|
return N === se;
|
2314
2314
|
});
|
2315
|
-
if (d < 0 && (X.container === N ||
|
2315
|
+
if (d < 0 && (X.container === N || jt(N, o.tabbableOptions) && !Le(N, o.tabbableOptions) && !X.nextTabbableNode(N, !1)) && (d = V), d >= 0) {
|
2316
2316
|
var ne = d === 0 ? l.tabbableGroups.length - 1 : d - 1, le = l.tabbableGroups[ne];
|
2317
2317
|
Y = Ce(N) >= 0 ? le.lastTabbableNode : le.lastDomTabbableNode;
|
2318
2318
|
} else
|
@@ -2322,7 +2322,7 @@ var Ar = {
|
|
2322
2322
|
var se = W.lastTabbableNode;
|
2323
2323
|
return N === se;
|
2324
2324
|
});
|
2325
|
-
if (h < 0 && (X.container === N ||
|
2325
|
+
if (h < 0 && (X.container === N || jt(N, o.tabbableOptions) && !Le(N, o.tabbableOptions) && !X.nextTabbableNode(N)) && (h = V), h >= 0) {
|
2326
2326
|
var re = h === l.tabbableGroups.length - 1 ? 0 : h + 1, te = l.tabbableGroups[re];
|
2327
2327
|
Y = Ce(N) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
|
2328
2328
|
} else
|
@@ -2348,7 +2348,7 @@ var Ar = {
|
|
2348
2348
|
}
|
2349
2349
|
Ke(o.allowOutsideClick, M) || M.preventDefault();
|
2350
2350
|
}
|
2351
|
-
},
|
2351
|
+
}, k = function(M) {
|
2352
2352
|
var N = Nt(M), C = u(N, M) >= 0;
|
2353
2353
|
if (C || N instanceof Document)
|
2354
2354
|
C && (l.mostRecentlyFocusedNode = N);
|
@@ -2380,7 +2380,7 @@ var Ar = {
|
|
2380
2380
|
})), I(z || l.mostRecentlyFocusedNode || p());
|
2381
2381
|
}
|
2382
2382
|
l.recentNavEvent = void 0;
|
2383
|
-
},
|
2383
|
+
}, E = function(M) {
|
2384
2384
|
var N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
2385
2385
|
l.recentNavEvent = M;
|
2386
2386
|
var C = S({
|
@@ -2393,7 +2393,7 @@ var Ar = {
|
|
2393
2393
|
M.preventDefault(), a.deactivate();
|
2394
2394
|
return;
|
2395
2395
|
}
|
2396
|
-
(o.isKeyForward(M) || o.isKeyBackward(M)) &&
|
2396
|
+
(o.isKeyForward(M) || o.isKeyBackward(M)) && E(M, o.isKeyBackward(M));
|
2397
2397
|
}, _ = function(M) {
|
2398
2398
|
var N = Nt(M);
|
2399
2399
|
u(N, M) >= 0 || Ke(o.clickOutsideDeactivates, M) || Ke(o.allowOutsideClick, M) || (M.preventDefault(), M.stopImmediatePropagation());
|
@@ -2401,7 +2401,7 @@ var Ar = {
|
|
2401
2401
|
if (l.active)
|
2402
2402
|
return Ar.activateTrap(i, a), l.delayInitialFocusTimer = o.delayInitialFocus ? Or(function() {
|
2403
2403
|
I(p());
|
2404
|
-
}) : I(p()), r.addEventListener("focusin",
|
2404
|
+
}) : I(p()), r.addEventListener("focusin", k, !0), r.addEventListener("mousedown", w, {
|
2405
2405
|
capture: !0,
|
2406
2406
|
passive: !1
|
2407
2407
|
}), r.addEventListener("touchstart", w, {
|
@@ -2416,7 +2416,7 @@ var Ar = {
|
|
2416
2416
|
}), a;
|
2417
2417
|
}, A = function() {
|
2418
2418
|
if (l.active)
|
2419
|
-
return r.removeEventListener("focusin",
|
2419
|
+
return r.removeEventListener("focusin", k, !0), r.removeEventListener("mousedown", w, !0), r.removeEventListener("touchstart", w, !0), r.removeEventListener("click", _, !0), r.removeEventListener("keydown", B, !0), a;
|
2420
2420
|
}, U = function(M) {
|
2421
2421
|
var N = M.some(function(C) {
|
2422
2422
|
var z = Array.from(C.removedNodes);
|
@@ -2832,7 +2832,7 @@ const pu = /* @__PURE__ */ Ue(cu), fu = (e) => {
|
|
2832
2832
|
}, n = () => {
|
2833
2833
|
document.body.style.overflow = "unset";
|
2834
2834
|
};
|
2835
|
-
|
2835
|
+
de(() => {
|
2836
2836
|
const r = e == null ? void 0 : e.current;
|
2837
2837
|
return r == null || r.addEventListener("mouseover", t), r == null || r.addEventListener("mouseout", n), () => {
|
2838
2838
|
n(), r == null || r.removeEventListener("mouseover", t), r == null || r.removeEventListener("mouseout", n);
|
@@ -2982,13 +2982,23 @@ function Qt({
|
|
2982
2982
|
containerStyle: s,
|
2983
2983
|
configurations: u
|
2984
2984
|
}) {
|
2985
|
-
return
|
2985
|
+
return de(() => {
|
2986
|
+
const c = t == null ? void 0 : t.current, p = () => {
|
2987
|
+
c.removeAttribute("readOnly");
|
2988
|
+
}, m = () => {
|
2989
|
+
c.setAttribute("readOnly", "true");
|
2990
|
+
};
|
2991
|
+
return c.addEventListener("focus", p), c.addEventListener("blur", m), () => {
|
2992
|
+
c.removeEventListener("focus", p), c.removeEventListener("blur", m);
|
2993
|
+
};
|
2994
|
+
}, [t]), de(() => {
|
2986
2995
|
var c;
|
2987
2996
|
(c = t == null ? void 0 : t.current) == null || c.focus();
|
2988
2997
|
}, [e, n, t]), /* @__PURE__ */ D.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: s, children: [
|
2989
2998
|
/* @__PURE__ */ D.jsx(
|
2990
2999
|
"textarea",
|
2991
3000
|
{
|
3001
|
+
readOnly: !0,
|
2992
3002
|
disabled: e,
|
2993
3003
|
value: r,
|
2994
3004
|
ref: t,
|
@@ -3165,7 +3175,7 @@ ao.propTypes = {
|
|
3165
3175
|
};
|
3166
3176
|
function uo({ disableScroll: e }) {
|
3167
3177
|
const t = Fe(null);
|
3168
|
-
return
|
3178
|
+
return de(() => {
|
3169
3179
|
var n;
|
3170
3180
|
e || (n = t.current) == null || n.scrollIntoView({
|
3171
3181
|
behavior: "smooth",
|
@@ -3190,7 +3200,7 @@ uo.propTypes = {
|
|
3190
3200
|
};
|
3191
3201
|
const so = () => {
|
3192
3202
|
const e = Fe(null);
|
3193
|
-
return
|
3203
|
+
return de(() => {
|
3194
3204
|
var t;
|
3195
3205
|
(t = e.current) == null || t.scrollIntoView({
|
3196
3206
|
behavior: "instant"
|
@@ -3404,15 +3414,15 @@ function Tu(...e) {
|
|
3404
3414
|
let t = -1, n;
|
3405
3415
|
for (; ++t < e.length; )
|
3406
3416
|
ft(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
3407
|
-
return n === void 0 ? "." :
|
3417
|
+
return n === void 0 ? "." : vu(n);
|
3408
3418
|
}
|
3409
|
-
function
|
3419
|
+
function vu(e) {
|
3410
3420
|
ft(e);
|
3411
3421
|
const t = e.charCodeAt(0) === 47;
|
3412
|
-
let n =
|
3422
|
+
let n = ku(e, !t);
|
3413
3423
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.charCodeAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
3414
3424
|
}
|
3415
|
-
function
|
3425
|
+
function ku(e, t) {
|
3416
3426
|
let n = "", r = 0, i = -1, o = 0, l = -1, a, s;
|
3417
3427
|
for (; ++l <= e.length; ) {
|
3418
3428
|
if (l < e.length)
|
@@ -3451,8 +3461,8 @@ function ft(e) {
|
|
3451
3461
|
"Path must be a string. Received " + JSON.stringify(e)
|
3452
3462
|
);
|
3453
3463
|
}
|
3454
|
-
const
|
3455
|
-
function
|
3464
|
+
const Eu = { cwd: ju };
|
3465
|
+
function ju() {
|
3456
3466
|
return "/";
|
3457
3467
|
}
|
3458
3468
|
function An(e) {
|
@@ -3522,7 +3532,7 @@ class po {
|
|
3522
3532
|
*/
|
3523
3533
|
constructor(t) {
|
3524
3534
|
let n;
|
3525
|
-
t ? typeof t == "string" || Au(t) ? n = { value: t } : An(t) ? n = { path: t } : n = t : n = {}, this.data = {}, this.messages = [], this.history = [], this.cwd =
|
3535
|
+
t ? typeof t == "string" || Au(t) ? n = { value: t } : An(t) ? n = { path: t } : n = t : n = {}, this.data = {}, this.messages = [], this.history = [], this.cwd = Eu.cwd(), this.value, this.stored, this.result, this.map;
|
3526
3536
|
let r = -1;
|
3527
3537
|
for (; ++r < pn.length; ) {
|
3528
3538
|
const o = pn[r];
|
@@ -3850,11 +3860,11 @@ function go() {
|
|
3850
3860
|
if (typeof b == "function")
|
3851
3861
|
_(b, ...S);
|
3852
3862
|
else if (typeof b == "object")
|
3853
|
-
Array.isArray(b) ? B(b) :
|
3863
|
+
Array.isArray(b) ? B(b) : E(b);
|
3854
3864
|
else
|
3855
3865
|
throw new TypeError("Expected usable value, not `" + b + "`");
|
3856
3866
|
return w && (n.settings = Object.assign(n.settings || {}, w)), o;
|
3857
|
-
function
|
3867
|
+
function k(y) {
|
3858
3868
|
if (typeof y == "function")
|
3859
3869
|
_(y);
|
3860
3870
|
else if (typeof y == "object")
|
@@ -3862,11 +3872,11 @@ function go() {
|
|
3862
3872
|
const [A, ...U] = y;
|
3863
3873
|
_(A, ...U);
|
3864
3874
|
} else
|
3865
|
-
|
3875
|
+
E(y);
|
3866
3876
|
else
|
3867
3877
|
throw new TypeError("Expected usable value, not `" + y + "`");
|
3868
3878
|
}
|
3869
|
-
function
|
3879
|
+
function E(y) {
|
3870
3880
|
B(y.plugins), y.settings && (w = Object.assign(w || {}, y.settings));
|
3871
3881
|
}
|
3872
3882
|
function B(y) {
|
@@ -3875,7 +3885,7 @@ function go() {
|
|
3875
3885
|
if (Array.isArray(y))
|
3876
3886
|
for (; ++A < y.length; ) {
|
3877
3887
|
const U = y[A];
|
3878
|
-
|
3888
|
+
k(U);
|
3879
3889
|
}
|
3880
3890
|
else
|
3881
3891
|
throw new TypeError("Expected a list of plugins, not `" + y + "`");
|
@@ -3897,32 +3907,32 @@ function go() {
|
|
3897
3907
|
}
|
3898
3908
|
function c(b, S) {
|
3899
3909
|
o.freeze();
|
3900
|
-
const w = et(S),
|
3901
|
-
return gn("stringify",
|
3910
|
+
const w = et(S), k = o.Compiler;
|
3911
|
+
return gn("stringify", k), Zr(b), Wr(k, "compile") ? new k(b, w).compile() : k(b, w);
|
3902
3912
|
}
|
3903
3913
|
function p(b, S, w) {
|
3904
3914
|
if (Zr(b), o.freeze(), !w && typeof S == "function" && (w = S, S = void 0), !w)
|
3905
|
-
return new Promise(
|
3906
|
-
|
3907
|
-
function
|
3915
|
+
return new Promise(k);
|
3916
|
+
k(null, w);
|
3917
|
+
function k(E, B) {
|
3908
3918
|
e.run(b, et(S), _);
|
3909
3919
|
function _(y, A, U) {
|
3910
|
-
A = A || b, y ? B(y) :
|
3920
|
+
A = A || b, y ? B(y) : E ? E(A) : w(null, A, U);
|
3911
3921
|
}
|
3912
3922
|
}
|
3913
3923
|
}
|
3914
3924
|
function m(b, S) {
|
3915
|
-
let w,
|
3916
|
-
return o.run(b, S,
|
3917
|
-
function
|
3918
|
-
Ur(B), w = _,
|
3925
|
+
let w, k;
|
3926
|
+
return o.run(b, S, E), Gr("runSync", "run", k), w;
|
3927
|
+
function E(B, _) {
|
3928
|
+
Ur(B), w = _, k = !0;
|
3919
3929
|
}
|
3920
3930
|
}
|
3921
3931
|
function f(b, S) {
|
3922
3932
|
if (o.freeze(), hn("process", o.Parser), gn("process", o.Compiler), !S)
|
3923
3933
|
return new Promise(w);
|
3924
3934
|
w(null, S);
|
3925
|
-
function w(
|
3935
|
+
function w(k, E) {
|
3926
3936
|
const B = et(b);
|
3927
3937
|
o.run(o.parse(B), B, (y, A, U) => {
|
3928
3938
|
if (y || !A || !U)
|
@@ -3933,7 +3943,7 @@ function go() {
|
|
3933
3943
|
}
|
3934
3944
|
});
|
3935
3945
|
function _(y, A) {
|
3936
|
-
y || !A ?
|
3946
|
+
y || !A ? E(y) : k ? k(A) : S(null, A);
|
3937
3947
|
}
|
3938
3948
|
}
|
3939
3949
|
}
|
@@ -3941,9 +3951,9 @@ function go() {
|
|
3941
3951
|
let S;
|
3942
3952
|
o.freeze(), hn("processSync", o.Parser), gn("processSync", o.Compiler);
|
3943
3953
|
const w = et(b);
|
3944
|
-
return o.process(w,
|
3945
|
-
function
|
3946
|
-
S = !0, Ur(
|
3954
|
+
return o.process(w, k), Gr("processSync", "process", S), w;
|
3955
|
+
function k(E) {
|
3956
|
+
S = !0, Ur(E);
|
3947
3957
|
}
|
3948
3958
|
}
|
3949
3959
|
}
|
@@ -4022,7 +4032,7 @@ function Xr(e, t, n) {
|
|
4022
4032
|
function Qu(e) {
|
4023
4033
|
return !!(e && typeof e == "object");
|
4024
4034
|
}
|
4025
|
-
function
|
4035
|
+
function ve(e, t, n, r) {
|
4026
4036
|
const i = e.length;
|
4027
4037
|
let o = 0, l;
|
4028
4038
|
if (t < 0 ? t = -t > i ? 0 : i + t : t = t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4)
|
@@ -4032,7 +4042,7 @@ function ke(e, t, n, r) {
|
|
4032
4042
|
l = r.slice(o, o + 1e4), l.unshift(t, 0), e.splice(...l), o += 1e4, t += 1e4;
|
4033
4043
|
}
|
4034
4044
|
function Me(e, t) {
|
4035
|
-
return e.length > 0 ? (
|
4045
|
+
return e.length > 0 ? (ve(e, e.length, 0, t), e) : t;
|
4036
4046
|
}
|
4037
4047
|
const Kr = {}.hasOwnProperty;
|
4038
4048
|
function Yu(e) {
|
@@ -4064,9 +4074,9 @@ function qu(e, t) {
|
|
4064
4074
|
const r = [];
|
4065
4075
|
for (; ++n < t.length; )
|
4066
4076
|
(t[n].add === "after" ? e : r).push(t[n]);
|
4067
|
-
|
4077
|
+
ve(e, 0, 0, r);
|
4068
4078
|
}
|
4069
|
-
const $u = /[!-\/:-@\[-`\{-~\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]/, Te = Oe(/[A-Za-z]/),
|
4079
|
+
const $u = /[!-\/:-@\[-`\{-~\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]/, Te = Oe(/[A-Za-z]/), ye = Oe(/[\dA-Za-z]/), Vu = Oe(/[#-'*+\--9=?A-Z^-~]/);
|
4070
4080
|
function zn(e) {
|
4071
4081
|
return (
|
4072
4082
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -4078,7 +4088,7 @@ const Ln = Oe(/\d/), Wu = Oe(/[\dA-Fa-f]/), Zu = Oe(/[!-/:-@[-`{-~]/);
|
|
4078
4088
|
function R(e) {
|
4079
4089
|
return e !== null && e < -2;
|
4080
4090
|
}
|
4081
|
-
function
|
4091
|
+
function he(e) {
|
4082
4092
|
return e !== null && (e < 0 || e === 32);
|
4083
4093
|
}
|
4084
4094
|
function Z(e) {
|
@@ -4147,20 +4157,20 @@ function ts(e) {
|
|
4147
4157
|
const t = this, n = [];
|
4148
4158
|
let r = 0, i, o, l;
|
4149
4159
|
return a;
|
4150
|
-
function a(
|
4160
|
+
function a(E) {
|
4151
4161
|
if (r < n.length) {
|
4152
4162
|
const B = n[r];
|
4153
4163
|
return t.containerState = B[1], e.attempt(
|
4154
4164
|
B[0].continuation,
|
4155
4165
|
s,
|
4156
4166
|
u
|
4157
|
-
)(
|
4167
|
+
)(E);
|
4158
4168
|
}
|
4159
|
-
return u(
|
4169
|
+
return u(E);
|
4160
4170
|
}
|
4161
|
-
function s(
|
4171
|
+
function s(E) {
|
4162
4172
|
if (r++, t.containerState._closeFlow) {
|
4163
|
-
t.containerState._closeFlow = void 0, i &&
|
4173
|
+
t.containerState._closeFlow = void 0, i && k();
|
4164
4174
|
const B = t.events.length;
|
4165
4175
|
let _ = B, y;
|
4166
4176
|
for (; _--; )
|
@@ -4172,66 +4182,66 @@ function ts(e) {
|
|
4172
4182
|
let A = B;
|
4173
4183
|
for (; A < t.events.length; )
|
4174
4184
|
t.events[A][1].end = Object.assign({}, y), A++;
|
4175
|
-
return
|
4185
|
+
return ve(
|
4176
4186
|
t.events,
|
4177
4187
|
_ + 1,
|
4178
4188
|
0,
|
4179
4189
|
t.events.slice(B)
|
4180
|
-
), t.events.length = A, u(
|
4190
|
+
), t.events.length = A, u(E);
|
4181
4191
|
}
|
4182
|
-
return a(
|
4192
|
+
return a(E);
|
4183
4193
|
}
|
4184
|
-
function u(
|
4194
|
+
function u(E) {
|
4185
4195
|
if (r === n.length) {
|
4186
4196
|
if (!i)
|
4187
|
-
return m(
|
4197
|
+
return m(E);
|
4188
4198
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
4189
|
-
return I(
|
4199
|
+
return I(E);
|
4190
4200
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
4191
4201
|
}
|
4192
4202
|
return t.containerState = {}, e.check(
|
4193
4203
|
Jr,
|
4194
4204
|
c,
|
4195
4205
|
p
|
4196
|
-
)(
|
4206
|
+
)(E);
|
4197
4207
|
}
|
4198
|
-
function c(
|
4199
|
-
return i &&
|
4208
|
+
function c(E) {
|
4209
|
+
return i && k(), w(r), m(E);
|
4200
4210
|
}
|
4201
|
-
function p(
|
4202
|
-
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, I(
|
4211
|
+
function p(E) {
|
4212
|
+
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, I(E);
|
4203
4213
|
}
|
4204
|
-
function m(
|
4214
|
+
function m(E) {
|
4205
4215
|
return t.containerState = {}, e.attempt(
|
4206
4216
|
Jr,
|
4207
4217
|
f,
|
4208
4218
|
I
|
4209
|
-
)(
|
4219
|
+
)(E);
|
4210
4220
|
}
|
4211
|
-
function f(
|
4212
|
-
return r++, n.push([t.currentConstruct, t.containerState]), m(
|
4221
|
+
function f(E) {
|
4222
|
+
return r++, n.push([t.currentConstruct, t.containerState]), m(E);
|
4213
4223
|
}
|
4214
|
-
function I(
|
4215
|
-
if (
|
4216
|
-
i &&
|
4224
|
+
function I(E) {
|
4225
|
+
if (E === null) {
|
4226
|
+
i && k(), w(0), e.consume(E);
|
4217
4227
|
return;
|
4218
4228
|
}
|
4219
4229
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
4220
4230
|
contentType: "flow",
|
4221
4231
|
previous: o,
|
4222
4232
|
_tokenizer: i
|
4223
|
-
}), b(
|
4233
|
+
}), b(E);
|
4224
4234
|
}
|
4225
|
-
function b(
|
4226
|
-
if (
|
4227
|
-
S(e.exit("chunkFlow"), !0), w(0), e.consume(
|
4235
|
+
function b(E) {
|
4236
|
+
if (E === null) {
|
4237
|
+
S(e.exit("chunkFlow"), !0), w(0), e.consume(E);
|
4228
4238
|
return;
|
4229
4239
|
}
|
4230
|
-
return R(
|
4240
|
+
return R(E) ? (e.consume(E), S(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(E), b);
|
4231
4241
|
}
|
4232
|
-
function S(
|
4233
|
-
const _ = t.sliceStream(
|
4234
|
-
if (B && _.push(null),
|
4242
|
+
function S(E, B) {
|
4243
|
+
const _ = t.sliceStream(E);
|
4244
|
+
if (B && _.push(null), E.previous = o, o && (o.next = E), o = E, i.defineSkip(E.start), i.write(_), t.parser.lazy[E.start.line]) {
|
4235
4245
|
let y = i.events.length;
|
4236
4246
|
for (; y--; )
|
4237
4247
|
if (
|
@@ -4253,7 +4263,7 @@ function ts(e) {
|
|
4253
4263
|
}
|
4254
4264
|
for (w(r), y = A; y < t.events.length; )
|
4255
4265
|
t.events[y][1].end = Object.assign({}, q), y++;
|
4256
|
-
|
4266
|
+
ve(
|
4257
4267
|
t.events,
|
4258
4268
|
U + 1,
|
4259
4269
|
0,
|
@@ -4261,15 +4271,15 @@ function ts(e) {
|
|
4261
4271
|
), t.events.length = y;
|
4262
4272
|
}
|
4263
4273
|
}
|
4264
|
-
function w(
|
4274
|
+
function w(E) {
|
4265
4275
|
let B = n.length;
|
4266
|
-
for (; B-- >
|
4276
|
+
for (; B-- > E; ) {
|
4267
4277
|
const _ = n[B];
|
4268
4278
|
t.containerState = _[1], _[0].exit.call(t, e);
|
4269
4279
|
}
|
4270
|
-
n.length =
|
4280
|
+
n.length = E;
|
4271
4281
|
}
|
4272
|
-
function
|
4282
|
+
function k() {
|
4273
4283
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
4274
4284
|
}
|
4275
4285
|
}
|
@@ -4282,7 +4292,7 @@ function ns(e, t, n) {
|
|
4282
4292
|
);
|
4283
4293
|
}
|
4284
4294
|
function ei(e) {
|
4285
|
-
if (e === null ||
|
4295
|
+
if (e === null || he(e) || Xu(e))
|
4286
4296
|
return 1;
|
4287
4297
|
if (Gu(e))
|
4288
4298
|
return 2;
|
@@ -4351,7 +4361,7 @@ function rs(e, t) {
|
|
4351
4361
|
]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Me(u, [
|
4352
4362
|
["enter", e[n][1], t],
|
4353
4363
|
["exit", e[n][1], t]
|
4354
|
-
])) : c = 0,
|
4364
|
+
])) : c = 0, ve(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
|
4355
4365
|
break;
|
4356
4366
|
}
|
4357
4367
|
}
|
@@ -4390,10 +4400,10 @@ function ls(e, t, n) {
|
|
4390
4400
|
return Te(f) ? (e.consume(f), l) : u(f);
|
4391
4401
|
}
|
4392
4402
|
function l(f) {
|
4393
|
-
return f === 43 || f === 45 || f === 46 ||
|
4403
|
+
return f === 43 || f === 45 || f === 46 || ye(f) ? (r = 1, a(f)) : u(f);
|
4394
4404
|
}
|
4395
4405
|
function a(f) {
|
4396
|
-
return f === 58 ? (e.consume(f), r = 0, s) : (f === 43 || f === 45 || f === 46 ||
|
4406
|
+
return f === 58 ? (e.consume(f), r = 0, s) : (f === 43 || f === 45 || f === 46 || ye(f)) && r++ < 32 ? (e.consume(f), a) : (r = 0, u(f));
|
4397
4407
|
}
|
4398
4408
|
function s(f) {
|
4399
4409
|
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 || zn(f) ? n(f) : (e.consume(f), s);
|
@@ -4402,13 +4412,13 @@ function ls(e, t, n) {
|
|
4402
4412
|
return f === 64 ? (e.consume(f), c) : Vu(f) ? (e.consume(f), u) : n(f);
|
4403
4413
|
}
|
4404
4414
|
function c(f) {
|
4405
|
-
return
|
4415
|
+
return ye(f) ? p(f) : n(f);
|
4406
4416
|
}
|
4407
4417
|
function p(f) {
|
4408
4418
|
return f === 46 ? (e.consume(f), r = 0, c) : f === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : m(f);
|
4409
4419
|
}
|
4410
4420
|
function m(f) {
|
4411
|
-
if ((f === 45 ||
|
4421
|
+
if ((f === 45 || ye(f)) && r++ < 63) {
|
4412
4422
|
const I = f === 45 ? m : p;
|
4413
4423
|
return e.consume(f), I;
|
4414
4424
|
}
|
@@ -4502,7 +4512,7 @@ function fs(e, t, n) {
|
|
4502
4512
|
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), s;
|
4503
4513
|
}
|
4504
4514
|
function s(p) {
|
4505
|
-
return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, l =
|
4515
|
+
return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, l = ye, c(p));
|
4506
4516
|
}
|
4507
4517
|
function u(p) {
|
4508
4518
|
return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = Wu, c) : (e.enter("characterReferenceValue"), o = 7, l = Ln, c(p));
|
@@ -4510,7 +4520,7 @@ function fs(e, t, n) {
|
|
4510
4520
|
function c(p) {
|
4511
4521
|
if (p === 59 && i) {
|
4512
4522
|
const m = e.exit("characterReferenceValue");
|
4513
|
-
return l ===
|
4523
|
+
return l === ye && !Xn(r.sliceSerialize(m)) ? n(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
4514
4524
|
}
|
4515
4525
|
return l(p) && i++ < o ? (e.consume(p), c) : n(p);
|
4516
4526
|
}
|
@@ -4565,16 +4575,16 @@ function ds(e, t, n) {
|
|
4565
4575
|
function w(y) {
|
4566
4576
|
return o > 0 && Z(y) ? ee(
|
4567
4577
|
e,
|
4568
|
-
|
4578
|
+
k,
|
4569
4579
|
"linePrefix",
|
4570
4580
|
o + 1
|
4571
|
-
)(y) :
|
4581
|
+
)(y) : k(y);
|
4572
4582
|
}
|
4573
|
-
function
|
4574
|
-
return y === null || R(y) ? e.check(ri, b, B)(y) : (e.enter("codeFlowValue"),
|
4583
|
+
function k(y) {
|
4584
|
+
return y === null || R(y) ? e.check(ri, b, B)(y) : (e.enter("codeFlowValue"), E(y));
|
4575
4585
|
}
|
4576
|
-
function
|
4577
|
-
return y === null || R(y) ? (e.exit("codeFlowValue"),
|
4586
|
+
function E(y) {
|
4587
|
+
return y === null || R(y) ? (e.exit("codeFlowValue"), k(y)) : (e.consume(y), E);
|
4578
4588
|
}
|
4579
4589
|
function B(y) {
|
4580
4590
|
return e.exit("codeFenced"), t(y);
|
@@ -4583,9 +4593,9 @@ function ds(e, t, n) {
|
|
4583
4593
|
let Q = 0;
|
4584
4594
|
return q;
|
4585
4595
|
function q(z) {
|
4586
|
-
return y.enter("lineEnding"), y.consume(z), y.exit("lineEnding"),
|
4596
|
+
return y.enter("lineEnding"), y.consume(z), y.exit("lineEnding"), j;
|
4587
4597
|
}
|
4588
|
-
function
|
4598
|
+
function j(z) {
|
4589
4599
|
return y.enter("codeFencedFence"), Z(z) ? ee(
|
4590
4600
|
y,
|
4591
4601
|
M,
|
@@ -4707,7 +4717,7 @@ function bo(e) {
|
|
4707
4717
|
else if (r[1]._container) {
|
4708
4718
|
for (o = n, i = void 0; o-- && (l = e[o], l[1].type === "lineEnding" || l[1].type === "lineEndingBlank"); )
|
4709
4719
|
l[0] === "enter" && (i && (e[i][1].type = "lineEndingBlank"), l[1].type = "lineEnding", i = o);
|
4710
|
-
i && (r[1].end = Object.assign({}, e[i][1].start), a = e.slice(i, n), a.unshift(r),
|
4720
|
+
i && (r[1].end = Object.assign({}, e[i][1].start), a = e.slice(i, n), a.unshift(r), ve(e, i, n - i + 1, a));
|
4711
4721
|
}
|
4712
4722
|
}
|
4713
4723
|
return !u;
|
@@ -4727,24 +4737,24 @@ function Ds(e, t) {
|
|
4727
4737
|
// Find a void token that includes a break.
|
4728
4738
|
a[m][0] === "exit" && a[m - 1][0] === "enter" && a[m][1].type === a[m - 1][1].type && a[m][1].start.line !== a[m][1].end.line && (b = m + 1, S.push(b), f._tokenizer = void 0, f.previous = void 0, f = f.next);
|
4729
4739
|
for (l.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : S.pop(), m = S.length; m--; ) {
|
4730
|
-
const w = a.slice(S[m], S[m + 1]),
|
4731
|
-
s.unshift([
|
4740
|
+
const w = a.slice(S[m], S[m + 1]), k = o.pop();
|
4741
|
+
s.unshift([k, k + w.length - 1]), ve(e, k, 2, w);
|
4732
4742
|
}
|
4733
4743
|
for (m = -1; ++m < s.length; )
|
4734
4744
|
u[I + s[m][0]] = I + s[m][1], I += s[m][1] - s[m][0] - 1;
|
4735
4745
|
return u;
|
4736
4746
|
}
|
4737
4747
|
const Ns = {
|
4738
|
-
tokenize:
|
4748
|
+
tokenize: vs,
|
4739
4749
|
resolve: Ts
|
4740
4750
|
}, Is = {
|
4741
|
-
tokenize:
|
4751
|
+
tokenize: ks,
|
4742
4752
|
partial: !0
|
4743
4753
|
};
|
4744
4754
|
function Ts(e) {
|
4745
4755
|
return bo(e), e;
|
4746
4756
|
}
|
4747
|
-
function
|
4757
|
+
function vs(e, t) {
|
4748
4758
|
let n;
|
4749
4759
|
return r;
|
4750
4760
|
function r(a) {
|
@@ -4769,7 +4779,7 @@ function ks(e, t) {
|
|
4769
4779
|
}), n = n.next, i;
|
4770
4780
|
}
|
4771
4781
|
}
|
4772
|
-
function
|
4782
|
+
function ks(e, t, n) {
|
4773
4783
|
const r = this;
|
4774
4784
|
return i;
|
4775
4785
|
function i(l) {
|
@@ -4803,7 +4813,7 @@ function wo(e, t, n, r, i, o, l, a, s) {
|
|
4803
4813
|
return w === 60 || w === 62 || w === 92 ? (e.consume(w), f) : f(w);
|
4804
4814
|
}
|
4805
4815
|
function b(w) {
|
4806
|
-
return !c && (w === null || w === 41 ||
|
4816
|
+
return !c && (w === null || w === 41 || he(w)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(w)) : c < u && w === 40 ? (e.consume(w), c++, b) : w === 41 ? (e.consume(w), c--, b) : w === null || w === 32 || w === 40 || zn(w) ? n(w) : (e.consume(w), w === 92 ? S : b);
|
4807
4817
|
}
|
4808
4818
|
function S(w) {
|
4809
4819
|
return w === 40 || w === 41 || w === 92 ? (e.consume(w), b) : b(w);
|
@@ -4868,10 +4878,10 @@ function lt(e, t) {
|
|
4868
4878
|
function Qe(e) {
|
4869
4879
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
4870
4880
|
}
|
4871
|
-
const
|
4881
|
+
const Es = {
|
4872
4882
|
name: "definition",
|
4873
4883
|
tokenize: Ss
|
4874
|
-
},
|
4884
|
+
}, js = {
|
4875
4885
|
tokenize: Cs,
|
4876
4886
|
partial: !0
|
4877
4887
|
};
|
@@ -4900,7 +4910,7 @@ function Ss(e, t, n) {
|
|
4900
4910
|
), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), s) : n(f);
|
4901
4911
|
}
|
4902
4912
|
function s(f) {
|
4903
|
-
return
|
4913
|
+
return he(f) ? lt(e, u)(f) : u(f);
|
4904
4914
|
}
|
4905
4915
|
function u(f) {
|
4906
4916
|
return wo(
|
@@ -4916,7 +4926,7 @@ function Ss(e, t, n) {
|
|
4916
4926
|
)(f);
|
4917
4927
|
}
|
4918
4928
|
function c(f) {
|
4919
|
-
return e.attempt(
|
4929
|
+
return e.attempt(js, p, p)(f);
|
4920
4930
|
}
|
4921
4931
|
function p(f) {
|
4922
4932
|
return Z(f) ? ee(e, m, "whitespace")(f) : m(f);
|
@@ -4928,7 +4938,7 @@ function Ss(e, t, n) {
|
|
4928
4938
|
function Cs(e, t, n) {
|
4929
4939
|
return r;
|
4930
4940
|
function r(a) {
|
4931
|
-
return
|
4941
|
+
return he(a) ? lt(e, i)(a) : n(a);
|
4932
4942
|
}
|
4933
4943
|
function i(a) {
|
4934
4944
|
return No(
|
@@ -4976,7 +4986,7 @@ function Ls(e, t) {
|
|
4976
4986
|
start: e[r][1].start,
|
4977
4987
|
end: e[n][1].end,
|
4978
4988
|
contentType: "text"
|
4979
|
-
},
|
4989
|
+
}, ve(e, r, n - r + 1, [
|
4980
4990
|
["enter", i, t],
|
4981
4991
|
["enter", o, t],
|
4982
4992
|
["exit", o, t],
|
@@ -4993,7 +5003,7 @@ function Ps(e, t, n) {
|
|
4993
5003
|
return e.enter("atxHeadingSequence"), l(c);
|
4994
5004
|
}
|
4995
5005
|
function l(c) {
|
4996
|
-
return c === 35 && r++ < 6 ? (e.consume(c), l) : c === null ||
|
5006
|
+
return c === 35 && r++ < 6 ? (e.consume(c), l) : c === null || he(c) ? (e.exit("atxHeadingSequence"), a(c)) : n(c);
|
4997
5007
|
}
|
4998
5008
|
function a(c) {
|
4999
5009
|
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || R(c) ? (e.exit("atxHeading"), t(c)) : Z(c) ? ee(e, a, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
|
@@ -5002,7 +5012,7 @@ function Ps(e, t, n) {
|
|
5002
5012
|
return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), a(c));
|
5003
5013
|
}
|
5004
5014
|
function u(c) {
|
5005
|
-
return c === null || c === 35 ||
|
5015
|
+
return c === null || c === 35 || he(c) ? (e.exit("atxHeadingText"), a(c)) : (e.consume(c), u);
|
5006
5016
|
}
|
5007
5017
|
}
|
5008
5018
|
const Fs = [
|
@@ -5113,26 +5123,26 @@ function Qs(e, t, n) {
|
|
5113
5123
|
return Te(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
|
5114
5124
|
}
|
5115
5125
|
function S(h) {
|
5116
|
-
if (h === null || h === 47 || h === 62 ||
|
5126
|
+
if (h === null || h === 47 || h === 62 || he(h)) {
|
5117
5127
|
const re = h === 47, te = l.toLowerCase();
|
5118
|
-
return !re && !o && oi.includes(te) ? (i = 1, r.interrupt ? t(h) : M(h)) : Fs.includes(l.toLowerCase()) ? (i = 6, re ? (e.consume(h), w) : r.interrupt ? t(h) : M(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ?
|
5128
|
+
return !re && !o && oi.includes(te) ? (i = 1, r.interrupt ? t(h) : M(h)) : Fs.includes(l.toLowerCase()) ? (i = 6, re ? (e.consume(h), w) : r.interrupt ? t(h) : M(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? k(h) : E(h));
|
5119
5129
|
}
|
5120
|
-
return h === 45 ||
|
5130
|
+
return h === 45 || ye(h) ? (e.consume(h), l += String.fromCharCode(h), S) : n(h);
|
5121
5131
|
}
|
5122
5132
|
function w(h) {
|
5123
5133
|
return h === 62 ? (e.consume(h), r.interrupt ? t : M) : n(h);
|
5124
5134
|
}
|
5125
|
-
function
|
5126
|
-
return Z(h) ? (e.consume(h),
|
5135
|
+
function k(h) {
|
5136
|
+
return Z(h) ? (e.consume(h), k) : q(h);
|
5127
5137
|
}
|
5128
|
-
function
|
5129
|
-
return h === 47 ? (e.consume(h), q) : h === 58 || h === 95 || Te(h) ? (e.consume(h), B) : Z(h) ? (e.consume(h),
|
5138
|
+
function E(h) {
|
5139
|
+
return h === 47 ? (e.consume(h), q) : h === 58 || h === 95 || Te(h) ? (e.consume(h), B) : Z(h) ? (e.consume(h), E) : q(h);
|
5130
5140
|
}
|
5131
5141
|
function B(h) {
|
5132
|
-
return h === 45 || h === 46 || h === 58 || h === 95 ||
|
5142
|
+
return h === 45 || h === 46 || h === 58 || h === 95 || ye(h) ? (e.consume(h), B) : _(h);
|
5133
5143
|
}
|
5134
5144
|
function _(h) {
|
5135
|
-
return h === 61 ? (e.consume(h), y) : Z(h) ? (e.consume(h), _) :
|
5145
|
+
return h === 61 ? (e.consume(h), y) : Z(h) ? (e.consume(h), _) : E(h);
|
5136
5146
|
}
|
5137
5147
|
function y(h) {
|
5138
5148
|
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), s = h, A) : Z(h) ? (e.consume(h), y) : U(h);
|
@@ -5141,16 +5151,16 @@ function Qs(e, t, n) {
|
|
5141
5151
|
return h === s ? (e.consume(h), s = null, Q) : h === null || R(h) ? n(h) : (e.consume(h), A);
|
5142
5152
|
}
|
5143
5153
|
function U(h) {
|
5144
|
-
return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 ||
|
5154
|
+
return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || he(h) ? _(h) : (e.consume(h), U);
|
5145
5155
|
}
|
5146
5156
|
function Q(h) {
|
5147
|
-
return h === 47 || h === 62 || Z(h) ?
|
5157
|
+
return h === 47 || h === 62 || Z(h) ? E(h) : n(h);
|
5148
5158
|
}
|
5149
5159
|
function q(h) {
|
5150
|
-
return h === 62 ? (e.consume(h),
|
5160
|
+
return h === 62 ? (e.consume(h), j) : n(h);
|
5151
5161
|
}
|
5152
|
-
function
|
5153
|
-
return h === null || R(h) ? M(h) : Z(h) ? (e.consume(h),
|
5162
|
+
function j(h) {
|
5163
|
+
return h === null || R(h) ? M(h) : Z(h) ? (e.consume(h), j) : n(h);
|
5154
5164
|
}
|
5155
5165
|
function M(h) {
|
5156
5166
|
return h === 45 && i === 2 ? (e.consume(h), F) : h === 60 && i === 1 ? (e.consume(h), Y) : h === 62 && i === 4 ? (e.consume(h), ne) : h === 63 && i === 3 ? (e.consume(h), d) : h === 93 && i === 5 ? (e.consume(h), X) : R(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
@@ -5226,10 +5236,10 @@ function $s(e, t, n) {
|
|
5226
5236
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(d), s;
|
5227
5237
|
}
|
5228
5238
|
function s(d) {
|
5229
|
-
return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), _) : d === 63 ? (e.consume(d),
|
5239
|
+
return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), _) : d === 63 ? (e.consume(d), E) : Te(d) ? (e.consume(d), U) : n(d);
|
5230
5240
|
}
|
5231
5241
|
function u(d) {
|
5232
|
-
return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0, I) : Te(d) ? (e.consume(d),
|
5242
|
+
return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0, I) : Te(d) ? (e.consume(d), k) : n(d);
|
5233
5243
|
}
|
5234
5244
|
function c(d) {
|
5235
5245
|
return d === 45 ? (e.consume(d), f) : n(d);
|
@@ -5256,35 +5266,35 @@ function $s(e, t, n) {
|
|
5256
5266
|
function w(d) {
|
5257
5267
|
return d === 62 ? F(d) : d === 93 ? (e.consume(d), w) : b(d);
|
5258
5268
|
}
|
5259
|
-
function
|
5260
|
-
return d === null || d === 62 ? F(d) : R(d) ? (l =
|
5269
|
+
function k(d) {
|
5270
|
+
return d === null || d === 62 ? F(d) : R(d) ? (l = k, Y(d)) : (e.consume(d), k);
|
5261
5271
|
}
|
5262
|
-
function
|
5263
|
-
return d === null ? n(d) : d === 63 ? (e.consume(d), B) : R(d) ? (l =
|
5272
|
+
function E(d) {
|
5273
|
+
return d === null ? n(d) : d === 63 ? (e.consume(d), B) : R(d) ? (l = E, Y(d)) : (e.consume(d), E);
|
5264
5274
|
}
|
5265
5275
|
function B(d) {
|
5266
|
-
return d === 62 ? F(d) :
|
5276
|
+
return d === 62 ? F(d) : E(d);
|
5267
5277
|
}
|
5268
5278
|
function _(d) {
|
5269
5279
|
return Te(d) ? (e.consume(d), y) : n(d);
|
5270
5280
|
}
|
5271
5281
|
function y(d) {
|
5272
|
-
return d === 45 ||
|
5282
|
+
return d === 45 || ye(d) ? (e.consume(d), y) : A(d);
|
5273
5283
|
}
|
5274
5284
|
function A(d) {
|
5275
5285
|
return R(d) ? (l = A, Y(d)) : Z(d) ? (e.consume(d), A) : F(d);
|
5276
5286
|
}
|
5277
5287
|
function U(d) {
|
5278
|
-
return d === 45 ||
|
5288
|
+
return d === 45 || ye(d) ? (e.consume(d), U) : d === 47 || d === 62 || he(d) ? Q(d) : n(d);
|
5279
5289
|
}
|
5280
5290
|
function Q(d) {
|
5281
5291
|
return d === 47 ? (e.consume(d), F) : d === 58 || d === 95 || Te(d) ? (e.consume(d), q) : R(d) ? (l = Q, Y(d)) : Z(d) ? (e.consume(d), Q) : F(d);
|
5282
5292
|
}
|
5283
5293
|
function q(d) {
|
5284
|
-
return d === 45 || d === 46 || d === 58 || d === 95 ||
|
5294
|
+
return d === 45 || d === 46 || d === 58 || d === 95 || ye(d) ? (e.consume(d), q) : j(d);
|
5285
5295
|
}
|
5286
|
-
function
|
5287
|
-
return d === 61 ? (e.consume(d), M) : R(d) ? (l =
|
5296
|
+
function j(d) {
|
5297
|
+
return d === 61 ? (e.consume(d), M) : R(d) ? (l = j, Y(d)) : Z(d) ? (e.consume(d), j) : Q(d);
|
5288
5298
|
}
|
5289
5299
|
function M(d) {
|
5290
5300
|
return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? n(d) : d === 34 || d === 39 ? (e.consume(d), i = d, N) : R(d) ? (l = M, Y(d)) : Z(d) ? (e.consume(d), M) : (e.consume(d), C);
|
@@ -5293,10 +5303,10 @@ function $s(e, t, n) {
|
|
5293
5303
|
return d === i ? (e.consume(d), i = void 0, z) : d === null ? n(d) : R(d) ? (l = N, Y(d)) : (e.consume(d), N);
|
5294
5304
|
}
|
5295
5305
|
function C(d) {
|
5296
|
-
return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? n(d) : d === 47 || d === 62 ||
|
5306
|
+
return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? n(d) : d === 47 || d === 62 || he(d) ? Q(d) : (e.consume(d), C);
|
5297
5307
|
}
|
5298
5308
|
function z(d) {
|
5299
|
-
return d === 47 || d === 62 ||
|
5309
|
+
return d === 47 || d === 62 || he(d) ? Q(d) : n(d);
|
5300
5310
|
}
|
5301
5311
|
function F(d) {
|
5302
5312
|
return d === 62 ? (e.consume(d), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(d);
|
@@ -5378,7 +5388,7 @@ function Xs(e, t) {
|
|
5378
5388
|
e[l - 2],
|
5379
5389
|
e[l - 1],
|
5380
5390
|
["exit", u, t]
|
5381
|
-
]), a = Me(a, e.slice(l + 1)), a = Me(a, [["exit", s, t]]),
|
5391
|
+
]), a = Me(a, e.slice(l + 1)), a = Me(a, [["exit", s, t]]), ve(e, o, e.length, a), e;
|
5382
5392
|
}
|
5383
5393
|
function Ks(e, t, n) {
|
5384
5394
|
const r = this;
|
@@ -5430,7 +5440,7 @@ function Js(e, t, n) {
|
|
5430
5440
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
|
5431
5441
|
}
|
5432
5442
|
function i(p) {
|
5433
|
-
return
|
5443
|
+
return he(p) ? lt(e, o)(p) : o(p);
|
5434
5444
|
}
|
5435
5445
|
function o(p) {
|
5436
5446
|
return p === 41 ? c(p) : wo(
|
@@ -5446,7 +5456,7 @@ function Js(e, t, n) {
|
|
5446
5456
|
)(p);
|
5447
5457
|
}
|
5448
5458
|
function l(p) {
|
5449
|
-
return
|
5459
|
+
return he(p) ? lt(e, s)(p) : c(p);
|
5450
5460
|
}
|
5451
5461
|
function a(p) {
|
5452
5462
|
return n(p);
|
@@ -5462,7 +5472,7 @@ function Js(e, t, n) {
|
|
5462
5472
|
)(p) : c(p);
|
5463
5473
|
}
|
5464
5474
|
function u(p) {
|
5465
|
-
return
|
5475
|
+
return he(p) ? lt(e, c)(p) : c(p);
|
5466
5476
|
}
|
5467
5477
|
function c(p) {
|
5468
5478
|
return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), t) : n(p);
|
@@ -5866,8 +5876,8 @@ function Nc(e, t, n) {
|
|
5866
5876
|
const i = {}, o = [];
|
5867
5877
|
let l = [], a = [];
|
5868
5878
|
const s = {
|
5869
|
-
consume:
|
5870
|
-
enter:
|
5879
|
+
consume: k,
|
5880
|
+
enter: E,
|
5871
5881
|
exit: B,
|
5872
5882
|
attempt: A(_),
|
5873
5883
|
check: A(y),
|
@@ -5888,60 +5898,60 @@ function Nc(e, t, n) {
|
|
5888
5898
|
};
|
5889
5899
|
let c = t.tokenize.call(u, s);
|
5890
5900
|
return t.resolveAll && o.push(t), u;
|
5891
|
-
function p(
|
5892
|
-
return l = Me(l,
|
5901
|
+
function p(j) {
|
5902
|
+
return l = Me(l, j), S(), l[l.length - 1] !== null ? [] : (U(t, 0), u.events = Gn(o, u.events, u), u.events);
|
5893
5903
|
}
|
5894
|
-
function m(
|
5895
|
-
return Tc(f(
|
5904
|
+
function m(j, M) {
|
5905
|
+
return Tc(f(j), M);
|
5896
5906
|
}
|
5897
|
-
function f(
|
5898
|
-
return Ic(l,
|
5907
|
+
function f(j) {
|
5908
|
+
return Ic(l, j);
|
5899
5909
|
}
|
5900
5910
|
function I() {
|
5901
|
-
const { line:
|
5911
|
+
const { line: j, column: M, offset: N, _index: C, _bufferIndex: z } = r;
|
5902
5912
|
return {
|
5903
|
-
line:
|
5913
|
+
line: j,
|
5904
5914
|
column: M,
|
5905
5915
|
offset: N,
|
5906
5916
|
_index: C,
|
5907
5917
|
_bufferIndex: z
|
5908
5918
|
};
|
5909
5919
|
}
|
5910
|
-
function b(
|
5911
|
-
i[
|
5920
|
+
function b(j) {
|
5921
|
+
i[j.line] = j.column, q();
|
5912
5922
|
}
|
5913
5923
|
function S() {
|
5914
|
-
let
|
5924
|
+
let j;
|
5915
5925
|
for (; r._index < l.length; ) {
|
5916
5926
|
const M = l[r._index];
|
5917
5927
|
if (typeof M == "string")
|
5918
|
-
for (
|
5928
|
+
for (j = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === j && r._bufferIndex < M.length; )
|
5919
5929
|
w(M.charCodeAt(r._bufferIndex));
|
5920
5930
|
else
|
5921
5931
|
w(M);
|
5922
5932
|
}
|
5923
5933
|
}
|
5924
|
-
function w(
|
5925
|
-
c = c(
|
5934
|
+
function w(j) {
|
5935
|
+
c = c(j);
|
5926
5936
|
}
|
5927
|
-
function
|
5928
|
-
R(
|
5937
|
+
function k(j) {
|
5938
|
+
R(j) ? (r.line++, r.column = 1, r.offset += j === -3 ? 2 : 1, q()) : j !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === l[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = j;
|
5929
5939
|
}
|
5930
|
-
function j
|
5940
|
+
function E(j, M) {
|
5931
5941
|
const N = M || {};
|
5932
|
-
return N.type =
|
5942
|
+
return N.type = j, N.start = I(), u.events.push(["enter", N, u]), a.push(N), N;
|
5933
5943
|
}
|
5934
|
-
function B(
|
5944
|
+
function B(j) {
|
5935
5945
|
const M = a.pop();
|
5936
5946
|
return M.end = I(), u.events.push(["exit", M, u]), M;
|
5937
5947
|
}
|
5938
|
-
function _(
|
5939
|
-
U(
|
5948
|
+
function _(j, M) {
|
5949
|
+
U(j, M.from);
|
5940
5950
|
}
|
5941
|
-
function y(
|
5951
|
+
function y(j, M) {
|
5942
5952
|
M.restore();
|
5943
5953
|
}
|
5944
|
-
function A(
|
5954
|
+
function A(j, M) {
|
5945
5955
|
return N;
|
5946
5956
|
function N(C, z, F) {
|
5947
5957
|
let Y, V, X, d;
|
@@ -5951,14 +5961,14 @@ function Nc(e, t, n) {
|
|
5951
5961
|
) : ne(C);
|
5952
5962
|
function ne(W) {
|
5953
5963
|
return se;
|
5954
|
-
function se(
|
5955
|
-
const
|
5964
|
+
function se(ge) {
|
5965
|
+
const ke = ge !== null && W[ge], je = ge !== null && W.null, Ve = [
|
5956
5966
|
// To do: add more extension tests.
|
5957
5967
|
/* c8 ignore next 2 */
|
5958
|
-
...Array.isArray(
|
5959
|
-
...Array.isArray(
|
5968
|
+
...Array.isArray(ke) ? ke : ke ? [ke] : [],
|
5969
|
+
...Array.isArray(je) ? je : je ? [je] : []
|
5960
5970
|
];
|
5961
|
-
return le(Ve)(
|
5971
|
+
return le(Ve)(ge);
|
5962
5972
|
}
|
5963
5973
|
}
|
5964
5974
|
function le(W) {
|
@@ -5966,7 +5976,7 @@ function Nc(e, t, n) {
|
|
5966
5976
|
}
|
5967
5977
|
function h(W) {
|
5968
5978
|
return se;
|
5969
|
-
function se(
|
5979
|
+
function se(ge) {
|
5970
5980
|
return d = Q(), X = W, W.partial || (u.currentConstruct = W), W.name && u.parser.constructs.disable.null.includes(W.name) ? te() : W.tokenize.call(
|
5971
5981
|
// If we do have fields, create an object w/ `context` as its
|
5972
5982
|
// prototype.
|
@@ -5975,33 +5985,33 @@ function Nc(e, t, n) {
|
|
5975
5985
|
s,
|
5976
5986
|
re,
|
5977
5987
|
te
|
5978
|
-
)(
|
5988
|
+
)(ge);
|
5979
5989
|
}
|
5980
5990
|
}
|
5981
5991
|
function re(W) {
|
5982
|
-
return
|
5992
|
+
return j(X, d), z;
|
5983
5993
|
}
|
5984
5994
|
function te(W) {
|
5985
5995
|
return d.restore(), ++V < Y.length ? h(Y[V]) : F;
|
5986
5996
|
}
|
5987
5997
|
}
|
5988
5998
|
}
|
5989
|
-
function U(
|
5990
|
-
|
5999
|
+
function U(j, M) {
|
6000
|
+
j.resolveAll && !o.includes(j) && o.push(j), j.resolve && ve(
|
5991
6001
|
u.events,
|
5992
6002
|
M,
|
5993
6003
|
u.events.length - M,
|
5994
|
-
|
5995
|
-
),
|
6004
|
+
j.resolve(u.events.slice(M), u)
|
6005
|
+
), j.resolveTo && (u.events = j.resolveTo(u.events, u));
|
5996
6006
|
}
|
5997
6007
|
function Q() {
|
5998
|
-
const
|
6008
|
+
const j = I(), M = u.previous, N = u.currentConstruct, C = u.events.length, z = Array.from(a);
|
5999
6009
|
return {
|
6000
6010
|
restore: F,
|
6001
6011
|
from: C
|
6002
6012
|
};
|
6003
6013
|
function F() {
|
6004
|
-
r =
|
6014
|
+
r = j, u.previous = M, u.currentConstruct = N, u.events.length = C, a = z, q();
|
6005
6015
|
}
|
6006
6016
|
}
|
6007
6017
|
function q() {
|
@@ -6064,7 +6074,7 @@ function Tc(e, t) {
|
|
6064
6074
|
}
|
6065
6075
|
return r.join("");
|
6066
6076
|
}
|
6067
|
-
const
|
6077
|
+
const vc = {
|
6068
6078
|
42: fe,
|
6069
6079
|
43: fe,
|
6070
6080
|
45: fe,
|
@@ -6079,13 +6089,13 @@ const kc = {
|
|
6079
6089
|
56: fe,
|
6080
6090
|
57: fe,
|
6081
6091
|
62: yo
|
6082
|
-
},
|
6083
|
-
91:
|
6084
|
-
},
|
6092
|
+
}, kc = {
|
6093
|
+
91: Es
|
6094
|
+
}, Ec = {
|
6085
6095
|
[-2]: yn,
|
6086
6096
|
[-1]: yn,
|
6087
6097
|
32: yn
|
6088
|
-
},
|
6098
|
+
}, jc = {
|
6089
6099
|
35: zs,
|
6090
6100
|
42: Ct,
|
6091
6101
|
45: [li, Ct],
|
@@ -6119,11 +6129,11 @@ const kc = {
|
|
6119
6129
|
}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6120
6130
|
__proto__: null,
|
6121
6131
|
attentionMarkers: Oc,
|
6122
|
-
contentInitial:
|
6132
|
+
contentInitial: kc,
|
6123
6133
|
disable: zc,
|
6124
|
-
document:
|
6125
|
-
flow:
|
6126
|
-
flowInitial:
|
6134
|
+
document: vc,
|
6135
|
+
flow: jc,
|
6136
|
+
flowInitial: Ec,
|
6127
6137
|
insideSpan: Ac,
|
6128
6138
|
string: Sc,
|
6129
6139
|
text: Cc
|
@@ -6192,7 +6202,7 @@ function Rc(e) {
|
|
6192
6202
|
;
|
6193
6203
|
return e;
|
6194
6204
|
}
|
6195
|
-
function
|
6205
|
+
function vo(e, t) {
|
6196
6206
|
const n = Number.parseInt(e, t);
|
6197
6207
|
return (
|
6198
6208
|
// C0 except for HT, LF, FF, CR, space.
|
@@ -6212,11 +6222,11 @@ function Bc(e, t, n) {
|
|
6212
6222
|
return t;
|
6213
6223
|
if (n.charCodeAt(0) === 35) {
|
6214
6224
|
const i = n.charCodeAt(1), o = i === 120 || i === 88;
|
6215
|
-
return
|
6225
|
+
return vo(n.slice(o ? 2 : 1), o ? 16 : 10);
|
6216
6226
|
}
|
6217
6227
|
return Xn(n) || e;
|
6218
6228
|
}
|
6219
|
-
const
|
6229
|
+
const ko = {}.hasOwnProperty, Qc = (
|
6220
6230
|
/**
|
6221
6231
|
* @type {(
|
6222
6232
|
* ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) &
|
@@ -6243,20 +6253,20 @@ function Yc(e) {
|
|
6243
6253
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
6244
6254
|
enter: {
|
6245
6255
|
autolink: a(Mt),
|
6246
|
-
autolinkProtocol:
|
6247
|
-
autolinkEmail:
|
6256
|
+
autolinkProtocol: j,
|
6257
|
+
autolinkEmail: j,
|
6248
6258
|
atxHeading: a(gt),
|
6249
6259
|
blockQuote: a(Ve),
|
6250
|
-
characterEscape:
|
6251
|
-
characterReference:
|
6260
|
+
characterEscape: j,
|
6261
|
+
characterReference: j,
|
6252
6262
|
codeFenced: a(ht),
|
6253
6263
|
codeFencedFenceInfo: s,
|
6254
6264
|
codeFencedFenceMeta: s,
|
6255
6265
|
codeIndented: a(ht, s),
|
6256
6266
|
codeText: a(nn, s),
|
6257
|
-
codeTextData:
|
6258
|
-
data:
|
6259
|
-
codeFlowValue:
|
6267
|
+
codeTextData: j,
|
6268
|
+
data: j,
|
6269
|
+
codeFlowValue: j,
|
6260
6270
|
definition: a(ze),
|
6261
6271
|
definitionDestinationString: s,
|
6262
6272
|
definitionLabelString: s,
|
@@ -6265,9 +6275,9 @@ function Yc(e) {
|
|
6265
6275
|
hardBreakEscape: a(mt),
|
6266
6276
|
hardBreakTrailing: a(mt),
|
6267
6277
|
htmlFlow: a(yt, s),
|
6268
|
-
htmlFlowData:
|
6278
|
+
htmlFlowData: j,
|
6269
6279
|
htmlText: a(yt, s),
|
6270
|
-
htmlTextData:
|
6280
|
+
htmlTextData: j,
|
6271
6281
|
image: a(on),
|
6272
6282
|
label: s,
|
6273
6283
|
link: a(Mt),
|
@@ -6288,19 +6298,19 @@ function Yc(e) {
|
|
6288
6298
|
atxHeading: c(),
|
6289
6299
|
atxHeadingSequence: A,
|
6290
6300
|
autolink: c(),
|
6291
|
-
autolinkEmail:
|
6292
|
-
autolinkProtocol:
|
6301
|
+
autolinkEmail: je,
|
6302
|
+
autolinkProtocol: ke,
|
6293
6303
|
blockQuote: c(),
|
6294
6304
|
characterEscapeValue: M,
|
6295
6305
|
characterReferenceMarkerHexadecimal: se,
|
6296
6306
|
characterReferenceMarkerNumeric: se,
|
6297
|
-
characterReferenceValue:
|
6298
|
-
codeFenced: c(
|
6307
|
+
characterReferenceValue: ge,
|
6308
|
+
codeFenced: c(k),
|
6299
6309
|
codeFencedFence: w,
|
6300
6310
|
codeFencedFenceInfo: b,
|
6301
6311
|
codeFencedFenceMeta: S,
|
6302
6312
|
codeFlowValue: M,
|
6303
|
-
codeIndented: c(
|
6313
|
+
codeIndented: c(E),
|
6304
6314
|
codeText: c(Y),
|
6305
6315
|
codeTextData: M,
|
6306
6316
|
data: M,
|
@@ -6335,7 +6345,7 @@ function Yc(e) {
|
|
6335
6345
|
thematicBreak: c()
|
6336
6346
|
}
|
6337
6347
|
};
|
6338
|
-
|
6348
|
+
Eo(t, (e || {}).mdastExtensions || []);
|
6339
6349
|
const n = {};
|
6340
6350
|
return r;
|
6341
6351
|
function r(x) {
|
@@ -6365,7 +6375,7 @@ function Yc(e) {
|
|
6365
6375
|
}
|
6366
6376
|
for (K = -1; ++K < x.length; ) {
|
6367
6377
|
const ce = t[x[K][0]];
|
6368
|
-
|
6378
|
+
ko.call(ce, x[K][1].type) && ce[x[K][1].type].call(
|
6369
6379
|
Object.assign(
|
6370
6380
|
{
|
6371
6381
|
sliceSerialize: x[K][2].sliceSerialize
|
@@ -6406,12 +6416,12 @@ function Yc(e) {
|
|
6406
6416
|
if (Ne) {
|
6407
6417
|
let un = $;
|
6408
6418
|
for (ae = void 0; un--; ) {
|
6409
|
-
const
|
6410
|
-
if (
|
6411
|
-
if (
|
6419
|
+
const Ee = x[un];
|
6420
|
+
if (Ee[1].type === "lineEnding" || Ee[1].type === "lineEndingBlank") {
|
6421
|
+
if (Ee[0] === "exit")
|
6412
6422
|
continue;
|
6413
|
-
ae && (x[ae][1].type = "lineEndingBlank", ce = !0),
|
6414
|
-
} else if (!(
|
6423
|
+
ae && (x[ae][1].type = "lineEndingBlank", ce = !0), Ee[1].type = "lineEnding", ae = un;
|
6424
|
+
} else if (!(Ee[1].type === "linePrefix" || Ee[1].type === "blockQuotePrefix" || Ee[1].type === "blockQuotePrefixWhitespace" || Ee[1].type === "blockQuoteMarker" || Ee[1].type === "listItemIndent"))
|
6415
6425
|
break;
|
6416
6426
|
}
|
6417
6427
|
Ze && (!ae || Ze < ae) && (Ne._spread = !0), Ne.end = Object.assign(
|
@@ -6495,11 +6505,11 @@ function Yc(e) {
|
|
6495
6505
|
function w() {
|
6496
6506
|
l("flowCodeInside") || (this.buffer(), o("flowCodeInside", !0));
|
6497
6507
|
}
|
6498
|
-
function
|
6508
|
+
function k() {
|
6499
6509
|
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6500
6510
|
T.value = x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
|
6501
6511
|
}
|
6502
|
-
function
|
6512
|
+
function E() {
|
6503
6513
|
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6504
6514
|
T.value = x.replace(/(\r?\n|\r)$/g, "");
|
6505
6515
|
}
|
@@ -6534,7 +6544,7 @@ function Yc(e) {
|
|
6534
6544
|
function q() {
|
6535
6545
|
o("setextHeadingSlurpLineEnding");
|
6536
6546
|
}
|
6537
|
-
function
|
6547
|
+
function j(x) {
|
6538
6548
|
const T = this.stack[this.stack.length - 1];
|
6539
6549
|
let O = T.children[T.children.length - 1];
|
6540
6550
|
(!O || O.type !== "text") && (O = bt(), O.position = {
|
@@ -6552,7 +6562,7 @@ function Yc(e) {
|
|
6552
6562
|
O.position.end = Se(x.end), o("atHardBreak");
|
6553
6563
|
return;
|
6554
6564
|
}
|
6555
|
-
!l("setextHeadingSlurpLineEnding") && t.canContainEols.includes(T.type) && (
|
6565
|
+
!l("setextHeadingSlurpLineEnding") && t.canContainEols.includes(T.type) && (j.call(this, x), M.call(this, x));
|
6556
6566
|
}
|
6557
6567
|
function C() {
|
6558
6568
|
o("atHardBreak", !0);
|
@@ -6622,22 +6632,22 @@ function Yc(e) {
|
|
6622
6632
|
function se(x) {
|
6623
6633
|
o("characterReferenceType", x.type);
|
6624
6634
|
}
|
6625
|
-
function
|
6635
|
+
function ge(x) {
|
6626
6636
|
const T = this.sliceSerialize(x), O = l("characterReferenceType");
|
6627
6637
|
let $;
|
6628
|
-
O ? ($ =
|
6638
|
+
O ? ($ = vo(
|
6629
6639
|
T,
|
6630
6640
|
O === "characterReferenceMarkerNumeric" ? 10 : 16
|
6631
6641
|
), o("characterReferenceType")) : $ = Xn(T);
|
6632
6642
|
const K = this.stack.pop();
|
6633
6643
|
K.value += $, K.position.end = Se(x.end);
|
6634
6644
|
}
|
6635
|
-
function
|
6645
|
+
function ke(x) {
|
6636
6646
|
M.call(this, x);
|
6637
6647
|
const T = this.stack[this.stack.length - 1];
|
6638
6648
|
T.url = this.sliceSerialize(x);
|
6639
6649
|
}
|
6640
|
-
function
|
6650
|
+
function je(x) {
|
6641
6651
|
M.call(this, x);
|
6642
6652
|
const T = this.stack[this.stack.length - 1];
|
6643
6653
|
T.url = "mailto:" + this.sliceSerialize(x);
|
@@ -6759,17 +6769,17 @@ function Se(e) {
|
|
6759
6769
|
offset: e.offset
|
6760
6770
|
};
|
6761
6771
|
}
|
6762
|
-
function
|
6772
|
+
function Eo(e, t) {
|
6763
6773
|
let n = -1;
|
6764
6774
|
for (; ++n < t.length; ) {
|
6765
6775
|
const r = t[n];
|
6766
|
-
Array.isArray(r) ?
|
6776
|
+
Array.isArray(r) ? Eo(e, r) : Hc(e, r);
|
6767
6777
|
}
|
6768
6778
|
}
|
6769
6779
|
function Hc(e, t) {
|
6770
6780
|
let n;
|
6771
6781
|
for (n in t)
|
6772
|
-
if (
|
6782
|
+
if (ko.call(t, n)) {
|
6773
6783
|
if (n === "canContainEols") {
|
6774
6784
|
const r = t[n];
|
6775
6785
|
r && e[n].push(...r);
|
@@ -6866,7 +6876,7 @@ function qe(e) {
|
|
6866
6876
|
for (; ++n < e.length; ) {
|
6867
6877
|
const o = e.charCodeAt(n);
|
6868
6878
|
let l = "";
|
6869
|
-
if (o === 37 &&
|
6879
|
+
if (o === 37 && ye(e.charCodeAt(n + 1)) && ye(e.charCodeAt(n + 2)))
|
6870
6880
|
i = 2;
|
6871
6881
|
else if (o < 128)
|
6872
6882
|
/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (l = String.fromCharCode(o));
|
@@ -6879,7 +6889,7 @@ function qe(e) {
|
|
6879
6889
|
}
|
6880
6890
|
return t.join("") + e.slice(r);
|
6881
6891
|
}
|
6882
|
-
function
|
6892
|
+
function jo(e, t) {
|
6883
6893
|
const n = String(t.identifier).toUpperCase(), r = qe(n.toLowerCase()), i = e.footnoteOrder.indexOf(n);
|
6884
6894
|
let o;
|
6885
6895
|
i === -1 ? (e.footnoteOrder.push(n), e.footnoteCounts[n] = 1, o = e.footnoteOrder.length) : (e.footnoteCounts[n]++, o = i + 1);
|
@@ -6914,7 +6924,7 @@ function Xc(e, t) {
|
|
6914
6924
|
identifier: i,
|
6915
6925
|
children: [{ type: "paragraph", children: t.children }],
|
6916
6926
|
position: t.position
|
6917
|
-
},
|
6927
|
+
}, jo(e, {
|
6918
6928
|
type: "footnoteReference",
|
6919
6929
|
identifier: i,
|
6920
6930
|
position: t.position
|
@@ -7195,7 +7205,7 @@ const Mp = {
|
|
7195
7205
|
code: Wc,
|
7196
7206
|
delete: Zc,
|
7197
7207
|
emphasis: Gc,
|
7198
|
-
footnoteReference:
|
7208
|
+
footnoteReference: jo,
|
7199
7209
|
footnote: Xc,
|
7200
7210
|
heading: Kc,
|
7201
7211
|
html: Jc,
|
@@ -7319,7 +7329,7 @@ const Np = !0, fi = !1, Ip = "skip", Tp = (
|
|
7319
7329
|
return p;
|
7320
7330
|
function p() {
|
7321
7331
|
let m = [], f, I, b;
|
7322
|
-
if ((!t || i(a, s, u[u.length - 1] || null)) && (m =
|
7332
|
+
if ((!t || i(a, s, u[u.length - 1] || null)) && (m = vp(n(a, u)), m[0] === fi))
|
7323
7333
|
return m;
|
7324
7334
|
if (a.children && m[0] !== Ip)
|
7325
7335
|
for (I = (r ? a.children.length : -1) + o, b = u.concat(a); I > -1 && I < a.children.length; ) {
|
@@ -7332,7 +7342,7 @@ const Np = !0, fi = !1, Ip = "skip", Tp = (
|
|
7332
7342
|
}
|
7333
7343
|
}
|
7334
7344
|
);
|
7335
|
-
function
|
7345
|
+
function vp(e) {
|
7336
7346
|
return Array.isArray(e) ? e : typeof e == "number" ? [Np, e] : [e];
|
7337
7347
|
}
|
7338
7348
|
const tr = (
|
@@ -7361,11 +7371,11 @@ const tr = (
|
|
7361
7371
|
}
|
7362
7372
|
}
|
7363
7373
|
);
|
7364
|
-
function
|
7374
|
+
function kp(e) {
|
7365
7375
|
return !e || !e.position || !e.position.start || !e.position.start.line || !e.position.start.column || !e.position.end || !e.position.end.line || !e.position.end.column;
|
7366
7376
|
}
|
7367
7377
|
const di = {}.hasOwnProperty;
|
7368
|
-
function
|
7378
|
+
function Ep(e) {
|
7369
7379
|
const t = /* @__PURE__ */ Object.create(null);
|
7370
7380
|
if (!e || !e.type)
|
7371
7381
|
throw new Error("mdast-util-definitions expected node");
|
@@ -7382,11 +7392,11 @@ function hi(e) {
|
|
7382
7392
|
return String(e || "").toUpperCase();
|
7383
7393
|
}
|
7384
7394
|
const Rt = {}.hasOwnProperty;
|
7385
|
-
function
|
7395
|
+
function jp(e, t) {
|
7386
7396
|
const n = t || {}, r = n.allowDangerousHtml || !1, i = {};
|
7387
7397
|
return l.dangerous = r, l.clobberPrefix = n.clobberPrefix === void 0 || n.clobberPrefix === null ? "user-content-" : n.clobberPrefix, l.footnoteLabel = n.footnoteLabel || "Footnotes", l.footnoteLabelTagName = n.footnoteLabelTagName || "h2", l.footnoteLabelProperties = n.footnoteLabelProperties || {
|
7388
7398
|
className: ["sr-only"]
|
7389
|
-
}, l.footnoteBackLabel = n.footnoteBackLabel || "Back to content", l.unknownHandler = n.unknownHandler, l.passThrough = n.passThrough, l.handlers = { ...Mp, ...n.handlers }, l.definition =
|
7399
|
+
}, l.footnoteBackLabel = n.footnoteBackLabel || "Back to content", l.unknownHandler = n.unknownHandler, l.passThrough = n.passThrough, l.handlers = { ...Mp, ...n.handlers }, l.definition = Ep(e), l.footnoteById = i, l.footnoteOrder = [], l.footnoteCounts = {}, l.patch = Sp, l.applyData = Cp, l.one = a, l.all = s, l.wrap = Op, l.augment = o, tr(e, "footnoteDefinition", (u) => {
|
7390
7400
|
const c = String(u.identifier).toUpperCase();
|
7391
7401
|
Rt.call(i, c) || (i[c] = u);
|
7392
7402
|
}), l;
|
@@ -7402,7 +7412,7 @@ function Ep(e, t) {
|
|
7402
7412
|
}
|
7403
7413
|
if (u) {
|
7404
7414
|
const p = "type" in u ? u : { position: u };
|
7405
|
-
|
7415
|
+
kp(p) || (c.position = { start: Jn(p), end: er(p) });
|
7406
7416
|
}
|
7407
7417
|
return c;
|
7408
7418
|
}
|
@@ -7552,7 +7562,7 @@ function zp(e) {
|
|
7552
7562
|
};
|
7553
7563
|
}
|
7554
7564
|
function Lo(e, t) {
|
7555
|
-
const n =
|
7565
|
+
const n = jp(e, t), r = n.one(e, null), i = zp(n);
|
7556
7566
|
return i && r.children.push({ type: "text", value: `
|
7557
7567
|
` }, i), Array.isArray(r) ? { type: "root", children: r } : r;
|
7558
7568
|
}
|
@@ -7617,7 +7627,7 @@ be.prototype.commaOrSpaceSeparated = !1;
|
|
7617
7627
|
be.prototype.mustUseProperty = !1;
|
7618
7628
|
be.prototype.defined = !1;
|
7619
7629
|
let _p = 0;
|
7620
|
-
const H = Be(), oe = Be(), Fo = Be(),
|
7630
|
+
const H = Be(), oe = Be(), Fo = Be(), v = Be(), J = Be(), Ye = Be(), me = Be();
|
7621
7631
|
function Be() {
|
7622
7632
|
return 2 ** ++_p;
|
7623
7633
|
}
|
@@ -7625,9 +7635,9 @@ const Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7625
7635
|
__proto__: null,
|
7626
7636
|
boolean: H,
|
7627
7637
|
booleanish: oe,
|
7628
|
-
commaOrSpaceSeparated:
|
7638
|
+
commaOrSpaceSeparated: me,
|
7629
7639
|
commaSeparated: Ye,
|
7630
|
-
number:
|
7640
|
+
number: v,
|
7631
7641
|
overloadedBoolean: Fo,
|
7632
7642
|
spaceSeparated: J
|
7633
7643
|
}, Symbol.toStringTag, { value: "Module" })), xn = Object.keys(Rn);
|
@@ -7710,9 +7720,9 @@ const Qo = $e({
|
|
7710
7720
|
ariaAutoComplete: null,
|
7711
7721
|
ariaBusy: oe,
|
7712
7722
|
ariaChecked: oe,
|
7713
|
-
ariaColCount:
|
7714
|
-
ariaColIndex:
|
7715
|
-
ariaColSpan:
|
7723
|
+
ariaColCount: v,
|
7724
|
+
ariaColIndex: v,
|
7725
|
+
ariaColSpan: v,
|
7716
7726
|
ariaControls: J,
|
7717
7727
|
ariaCurrent: null,
|
7718
7728
|
ariaDescribedBy: J,
|
@@ -7729,7 +7739,7 @@ const Qo = $e({
|
|
7729
7739
|
ariaKeyShortcuts: null,
|
7730
7740
|
ariaLabel: null,
|
7731
7741
|
ariaLabelledBy: J,
|
7732
|
-
ariaLevel:
|
7742
|
+
ariaLevel: v,
|
7733
7743
|
ariaLive: null,
|
7734
7744
|
ariaModal: oe,
|
7735
7745
|
ariaMultiLine: oe,
|
@@ -7737,21 +7747,21 @@ const Qo = $e({
|
|
7737
7747
|
ariaOrientation: null,
|
7738
7748
|
ariaOwns: J,
|
7739
7749
|
ariaPlaceholder: null,
|
7740
|
-
ariaPosInSet:
|
7750
|
+
ariaPosInSet: v,
|
7741
7751
|
ariaPressed: oe,
|
7742
7752
|
ariaReadOnly: oe,
|
7743
7753
|
ariaRelevant: null,
|
7744
7754
|
ariaRequired: oe,
|
7745
7755
|
ariaRoleDescription: J,
|
7746
|
-
ariaRowCount:
|
7747
|
-
ariaRowIndex:
|
7748
|
-
ariaRowSpan:
|
7756
|
+
ariaRowCount: v,
|
7757
|
+
ariaRowIndex: v,
|
7758
|
+
ariaRowSpan: v,
|
7749
7759
|
ariaSelected: oe,
|
7750
|
-
ariaSetSize:
|
7760
|
+
ariaSetSize: v,
|
7751
7761
|
ariaSort: null,
|
7752
|
-
ariaValueMax:
|
7753
|
-
ariaValueMin:
|
7754
|
-
ariaValueNow:
|
7762
|
+
ariaValueMax: v,
|
7763
|
+
ariaValueMin: v,
|
7764
|
+
ariaValueNow: v,
|
7755
7765
|
ariaValueText: null,
|
7756
7766
|
role: null
|
7757
7767
|
}
|
@@ -7789,13 +7799,13 @@ const Qo = $e({
|
|
7789
7799
|
checked: H,
|
7790
7800
|
cite: null,
|
7791
7801
|
className: J,
|
7792
|
-
cols:
|
7802
|
+
cols: v,
|
7793
7803
|
colSpan: null,
|
7794
7804
|
content: null,
|
7795
7805
|
contentEditable: oe,
|
7796
7806
|
controls: H,
|
7797
7807
|
controlsList: J,
|
7798
|
-
coords:
|
7808
|
+
coords: v | Ye,
|
7799
7809
|
crossOrigin: null,
|
7800
7810
|
data: null,
|
7801
7811
|
dateTime: null,
|
@@ -7817,9 +7827,9 @@ const Qo = $e({
|
|
7817
7827
|
formNoValidate: H,
|
7818
7828
|
formTarget: null,
|
7819
7829
|
headers: J,
|
7820
|
-
height:
|
7830
|
+
height: v,
|
7821
7831
|
hidden: H,
|
7822
|
-
high:
|
7832
|
+
high: v,
|
7823
7833
|
href: null,
|
7824
7834
|
hrefLang: null,
|
7825
7835
|
htmlFor: J,
|
@@ -7844,14 +7854,14 @@ const Qo = $e({
|
|
7844
7854
|
list: null,
|
7845
7855
|
loading: null,
|
7846
7856
|
loop: H,
|
7847
|
-
low:
|
7857
|
+
low: v,
|
7848
7858
|
manifest: null,
|
7849
7859
|
max: null,
|
7850
|
-
maxLength:
|
7860
|
+
maxLength: v,
|
7851
7861
|
media: null,
|
7852
7862
|
method: null,
|
7853
7863
|
min: null,
|
7854
|
-
minLength:
|
7864
|
+
minLength: v,
|
7855
7865
|
multiple: H,
|
7856
7866
|
muted: H,
|
7857
7867
|
name: null,
|
@@ -7947,7 +7957,7 @@ const Qo = $e({
|
|
7947
7957
|
onWaiting: null,
|
7948
7958
|
onWheel: null,
|
7949
7959
|
open: H,
|
7950
|
-
optimum:
|
7960
|
+
optimum: v,
|
7951
7961
|
pattern: null,
|
7952
7962
|
ping: J,
|
7953
7963
|
placeholder: null,
|
@@ -7962,8 +7972,8 @@ const Qo = $e({
|
|
7962
7972
|
rel: J,
|
7963
7973
|
required: H,
|
7964
7974
|
reversed: H,
|
7965
|
-
rows:
|
7966
|
-
rowSpan:
|
7975
|
+
rows: v,
|
7976
|
+
rowSpan: v,
|
7967
7977
|
sandbox: J,
|
7968
7978
|
scope: null,
|
7969
7979
|
scoped: H,
|
@@ -7972,19 +7982,19 @@ const Qo = $e({
|
|
7972
7982
|
shadowRootDelegatesFocus: H,
|
7973
7983
|
shadowRootMode: null,
|
7974
7984
|
shape: null,
|
7975
|
-
size:
|
7985
|
+
size: v,
|
7976
7986
|
sizes: null,
|
7977
7987
|
slot: null,
|
7978
|
-
span:
|
7988
|
+
span: v,
|
7979
7989
|
spellCheck: oe,
|
7980
7990
|
src: null,
|
7981
7991
|
srcDoc: null,
|
7982
7992
|
srcLang: null,
|
7983
7993
|
srcSet: null,
|
7984
|
-
start:
|
7994
|
+
start: v,
|
7985
7995
|
step: null,
|
7986
7996
|
style: null,
|
7987
|
-
tabIndex:
|
7997
|
+
tabIndex: v,
|
7988
7998
|
target: null,
|
7989
7999
|
title: null,
|
7990
8000
|
translate: null,
|
@@ -7992,7 +8002,7 @@ const Qo = $e({
|
|
7992
8002
|
typeMustMatch: H,
|
7993
8003
|
useMap: null,
|
7994
8004
|
value: oe,
|
7995
|
-
width:
|
8005
|
+
width: v,
|
7996
8006
|
wrap: null,
|
7997
8007
|
// Legacy.
|
7998
8008
|
// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
|
@@ -8008,11 +8018,11 @@ const Qo = $e({
|
|
8008
8018
|
// `<body>`. Use CSS `background-image` instead
|
8009
8019
|
bgColor: null,
|
8010
8020
|
// `<body>` and table elements. Use CSS `background-color` instead
|
8011
|
-
border:
|
8021
|
+
border: v,
|
8012
8022
|
// `<table>`. Use CSS `border-width` instead,
|
8013
8023
|
borderColor: null,
|
8014
8024
|
// `<table>`. Use CSS `border-color` instead,
|
8015
|
-
bottomMargin:
|
8025
|
+
bottomMargin: v,
|
8016
8026
|
// `<body>`
|
8017
8027
|
cellPadding: null,
|
8018
8028
|
// `<table>`
|
@@ -8046,9 +8056,9 @@ const Qo = $e({
|
|
8046
8056
|
// `<table>`
|
8047
8057
|
frameBorder: null,
|
8048
8058
|
// `<iframe>`. Use CSS `border` instead
|
8049
|
-
hSpace:
|
8059
|
+
hSpace: v,
|
8050
8060
|
// `<img>` and `<object>`
|
8051
|
-
leftMargin:
|
8061
|
+
leftMargin: v,
|
8052
8062
|
// `<body>`
|
8053
8063
|
link: null,
|
8054
8064
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
@@ -8056,9 +8066,9 @@ const Qo = $e({
|
|
8056
8066
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
8057
8067
|
lowSrc: null,
|
8058
8068
|
// `<img>`. Use a `<picture>`
|
8059
|
-
marginHeight:
|
8069
|
+
marginHeight: v,
|
8060
8070
|
// `<body>`
|
8061
|
-
marginWidth:
|
8071
|
+
marginWidth: v,
|
8062
8072
|
// `<body>`
|
8063
8073
|
noResize: H,
|
8064
8074
|
// `<frame>`
|
@@ -8076,7 +8086,7 @@ const Qo = $e({
|
|
8076
8086
|
// `<isindex>`
|
8077
8087
|
rev: null,
|
8078
8088
|
// `<link>`
|
8079
|
-
rightMargin:
|
8089
|
+
rightMargin: v,
|
8080
8090
|
// `<body>`
|
8081
8091
|
rules: null,
|
8082
8092
|
// `<table>`
|
@@ -8090,7 +8100,7 @@ const Qo = $e({
|
|
8090
8100
|
// `<table>`
|
8091
8101
|
text: null,
|
8092
8102
|
// `<body>`. Use CSS `color` instead
|
8093
|
-
topMargin:
|
8103
|
+
topMargin: v,
|
8094
8104
|
// `<body>`
|
8095
8105
|
valueType: null,
|
8096
8106
|
// `<param>`
|
@@ -8100,7 +8110,7 @@ const Qo = $e({
|
|
8100
8110
|
// Several. Use CSS `vertical-align` instead
|
8101
8111
|
vLink: null,
|
8102
8112
|
// `<body>`. Use CSS `a:visited {color}` instead
|
8103
|
-
vSpace:
|
8113
|
+
vSpace: v,
|
8104
8114
|
// `<img>` and `<object>`
|
8105
8115
|
// Non-standard Properties.
|
8106
8116
|
allowTransparency: null,
|
@@ -8110,7 +8120,7 @@ const Qo = $e({
|
|
8110
8120
|
disableRemotePlayback: H,
|
8111
8121
|
prefix: null,
|
8112
8122
|
property: null,
|
8113
|
-
results:
|
8123
|
+
results: v,
|
8114
8124
|
security: null,
|
8115
8125
|
unselectable: null
|
8116
8126
|
}
|
@@ -8293,28 +8303,28 @@ const Qo = $e({
|
|
8293
8303
|
},
|
8294
8304
|
transform: Uo,
|
8295
8305
|
properties: {
|
8296
|
-
about:
|
8297
|
-
accentHeight:
|
8306
|
+
about: me,
|
8307
|
+
accentHeight: v,
|
8298
8308
|
accumulate: null,
|
8299
8309
|
additive: null,
|
8300
8310
|
alignmentBaseline: null,
|
8301
|
-
alphabetic:
|
8302
|
-
amplitude:
|
8311
|
+
alphabetic: v,
|
8312
|
+
amplitude: v,
|
8303
8313
|
arabicForm: null,
|
8304
|
-
ascent:
|
8314
|
+
ascent: v,
|
8305
8315
|
attributeName: null,
|
8306
8316
|
attributeType: null,
|
8307
|
-
azimuth:
|
8317
|
+
azimuth: v,
|
8308
8318
|
bandwidth: null,
|
8309
8319
|
baselineShift: null,
|
8310
8320
|
baseFrequency: null,
|
8311
8321
|
baseProfile: null,
|
8312
8322
|
bbox: null,
|
8313
8323
|
begin: null,
|
8314
|
-
bias:
|
8324
|
+
bias: v,
|
8315
8325
|
by: null,
|
8316
8326
|
calcMode: null,
|
8317
|
-
capHeight:
|
8327
|
+
capHeight: v,
|
8318
8328
|
className: J,
|
8319
8329
|
clip: null,
|
8320
8330
|
clipPath: null,
|
@@ -8335,26 +8345,26 @@ const Qo = $e({
|
|
8335
8345
|
d: null,
|
8336
8346
|
dataType: null,
|
8337
8347
|
defaultAction: null,
|
8338
|
-
descent:
|
8339
|
-
diffuseConstant:
|
8348
|
+
descent: v,
|
8349
|
+
diffuseConstant: v,
|
8340
8350
|
direction: null,
|
8341
8351
|
display: null,
|
8342
8352
|
dur: null,
|
8343
|
-
divisor:
|
8353
|
+
divisor: v,
|
8344
8354
|
dominantBaseline: null,
|
8345
8355
|
download: H,
|
8346
8356
|
dx: null,
|
8347
8357
|
dy: null,
|
8348
8358
|
edgeMode: null,
|
8349
8359
|
editable: null,
|
8350
|
-
elevation:
|
8360
|
+
elevation: v,
|
8351
8361
|
enableBackground: null,
|
8352
8362
|
end: null,
|
8353
8363
|
event: null,
|
8354
|
-
exponent:
|
8364
|
+
exponent: v,
|
8355
8365
|
externalResourcesRequired: null,
|
8356
8366
|
fill: null,
|
8357
|
-
fillOpacity:
|
8367
|
+
fillOpacity: v,
|
8358
8368
|
fillRule: null,
|
8359
8369
|
filter: null,
|
8360
8370
|
filterRes: null,
|
@@ -8384,28 +8394,28 @@ const Qo = $e({
|
|
8384
8394
|
gradientTransform: null,
|
8385
8395
|
gradientUnits: null,
|
8386
8396
|
handler: null,
|
8387
|
-
hanging:
|
8397
|
+
hanging: v,
|
8388
8398
|
hatchContentUnits: null,
|
8389
8399
|
hatchUnits: null,
|
8390
8400
|
height: null,
|
8391
8401
|
href: null,
|
8392
8402
|
hrefLang: null,
|
8393
|
-
horizAdvX:
|
8394
|
-
horizOriginX:
|
8395
|
-
horizOriginY:
|
8403
|
+
horizAdvX: v,
|
8404
|
+
horizOriginX: v,
|
8405
|
+
horizOriginY: v,
|
8396
8406
|
id: null,
|
8397
|
-
ideographic:
|
8407
|
+
ideographic: v,
|
8398
8408
|
imageRendering: null,
|
8399
8409
|
initialVisibility: null,
|
8400
8410
|
in: null,
|
8401
8411
|
in2: null,
|
8402
|
-
intercept:
|
8403
|
-
k,
|
8404
|
-
k1:
|
8405
|
-
k2:
|
8406
|
-
k3:
|
8407
|
-
k4:
|
8408
|
-
kernelMatrix:
|
8412
|
+
intercept: v,
|
8413
|
+
k: v,
|
8414
|
+
k1: v,
|
8415
|
+
k2: v,
|
8416
|
+
k3: v,
|
8417
|
+
k4: v,
|
8418
|
+
kernelMatrix: me,
|
8409
8419
|
kernelUnitLength: null,
|
8410
8420
|
keyPoints: null,
|
8411
8421
|
// SEMI_COLON_SEPARATED
|
@@ -8418,7 +8428,7 @@ const Qo = $e({
|
|
8418
8428
|
lengthAdjust: null,
|
8419
8429
|
letterSpacing: null,
|
8420
8430
|
lightingColor: null,
|
8421
|
-
limitingConeAngle:
|
8431
|
+
limitingConeAngle: v,
|
8422
8432
|
local: null,
|
8423
8433
|
markerEnd: null,
|
8424
8434
|
markerMid: null,
|
@@ -8434,7 +8444,7 @@ const Qo = $e({
|
|
8434
8444
|
media: null,
|
8435
8445
|
mediaCharacterEncoding: null,
|
8436
8446
|
mediaContentEncodings: null,
|
8437
|
-
mediaSize:
|
8447
|
+
mediaSize: v,
|
8438
8448
|
mediaTime: null,
|
8439
8449
|
method: null,
|
8440
8450
|
min: null,
|
@@ -8540,12 +8550,12 @@ const Qo = $e({
|
|
8540
8550
|
origin: null,
|
8541
8551
|
overflow: null,
|
8542
8552
|
overlay: null,
|
8543
|
-
overlinePosition:
|
8544
|
-
overlineThickness:
|
8553
|
+
overlinePosition: v,
|
8554
|
+
overlineThickness: v,
|
8545
8555
|
paintOrder: null,
|
8546
8556
|
panose1: null,
|
8547
8557
|
path: null,
|
8548
|
-
pathLength:
|
8558
|
+
pathLength: v,
|
8549
8559
|
patternContentUnits: null,
|
8550
8560
|
patternTransform: null,
|
8551
8561
|
patternUnits: null,
|
@@ -8555,28 +8565,28 @@ const Qo = $e({
|
|
8555
8565
|
playbackOrder: null,
|
8556
8566
|
pointerEvents: null,
|
8557
8567
|
points: null,
|
8558
|
-
pointsAtX:
|
8559
|
-
pointsAtY:
|
8560
|
-
pointsAtZ:
|
8568
|
+
pointsAtX: v,
|
8569
|
+
pointsAtY: v,
|
8570
|
+
pointsAtZ: v,
|
8561
8571
|
preserveAlpha: null,
|
8562
8572
|
preserveAspectRatio: null,
|
8563
8573
|
primitiveUnits: null,
|
8564
8574
|
propagate: null,
|
8565
|
-
property:
|
8575
|
+
property: me,
|
8566
8576
|
r: null,
|
8567
8577
|
radius: null,
|
8568
8578
|
referrerPolicy: null,
|
8569
8579
|
refX: null,
|
8570
8580
|
refY: null,
|
8571
|
-
rel:
|
8572
|
-
rev:
|
8581
|
+
rel: me,
|
8582
|
+
rev: me,
|
8573
8583
|
renderingIntent: null,
|
8574
8584
|
repeatCount: null,
|
8575
8585
|
repeatDur: null,
|
8576
|
-
requiredExtensions:
|
8577
|
-
requiredFeatures:
|
8578
|
-
requiredFonts:
|
8579
|
-
requiredFormats:
|
8586
|
+
requiredExtensions: me,
|
8587
|
+
requiredFeatures: me,
|
8588
|
+
requiredFonts: me,
|
8589
|
+
requiredFormats: me,
|
8580
8590
|
resource: null,
|
8581
8591
|
restart: null,
|
8582
8592
|
result: null,
|
@@ -8589,8 +8599,8 @@ const Qo = $e({
|
|
8589
8599
|
side: null,
|
8590
8600
|
slope: null,
|
8591
8601
|
snapshotTime: null,
|
8592
|
-
specularConstant:
|
8593
|
-
specularExponent:
|
8602
|
+
specularConstant: v,
|
8603
|
+
specularExponent: v,
|
8594
8604
|
spreadMethod: null,
|
8595
8605
|
spacing: null,
|
8596
8606
|
startOffset: null,
|
@@ -8600,30 +8610,30 @@ const Qo = $e({
|
|
8600
8610
|
stitchTiles: null,
|
8601
8611
|
stopColor: null,
|
8602
8612
|
stopOpacity: null,
|
8603
|
-
strikethroughPosition:
|
8604
|
-
strikethroughThickness:
|
8613
|
+
strikethroughPosition: v,
|
8614
|
+
strikethroughThickness: v,
|
8605
8615
|
string: null,
|
8606
8616
|
stroke: null,
|
8607
|
-
strokeDashArray:
|
8617
|
+
strokeDashArray: me,
|
8608
8618
|
strokeDashOffset: null,
|
8609
8619
|
strokeLineCap: null,
|
8610
8620
|
strokeLineJoin: null,
|
8611
|
-
strokeMiterLimit:
|
8612
|
-
strokeOpacity:
|
8621
|
+
strokeMiterLimit: v,
|
8622
|
+
strokeOpacity: v,
|
8613
8623
|
strokeWidth: null,
|
8614
8624
|
style: null,
|
8615
|
-
surfaceScale:
|
8625
|
+
surfaceScale: v,
|
8616
8626
|
syncBehavior: null,
|
8617
8627
|
syncBehaviorDefault: null,
|
8618
8628
|
syncMaster: null,
|
8619
8629
|
syncTolerance: null,
|
8620
8630
|
syncToleranceDefault: null,
|
8621
|
-
systemLanguage:
|
8622
|
-
tabIndex:
|
8631
|
+
systemLanguage: me,
|
8632
|
+
tabIndex: v,
|
8623
8633
|
tableValues: null,
|
8624
8634
|
target: null,
|
8625
|
-
targetX:
|
8626
|
-
targetY:
|
8635
|
+
targetX: v,
|
8636
|
+
targetY: v,
|
8627
8637
|
textAnchor: null,
|
8628
8638
|
textDecoration: null,
|
8629
8639
|
textRendering: null,
|
@@ -8632,28 +8642,28 @@ const Qo = $e({
|
|
8632
8642
|
title: null,
|
8633
8643
|
transformBehavior: null,
|
8634
8644
|
type: null,
|
8635
|
-
typeOf:
|
8645
|
+
typeOf: me,
|
8636
8646
|
to: null,
|
8637
8647
|
transform: null,
|
8638
8648
|
transformOrigin: null,
|
8639
8649
|
u1: null,
|
8640
8650
|
u2: null,
|
8641
|
-
underlinePosition:
|
8642
|
-
underlineThickness:
|
8651
|
+
underlinePosition: v,
|
8652
|
+
underlineThickness: v,
|
8643
8653
|
unicode: null,
|
8644
8654
|
unicodeBidi: null,
|
8645
8655
|
unicodeRange: null,
|
8646
|
-
unitsPerEm:
|
8656
|
+
unitsPerEm: v,
|
8647
8657
|
values: null,
|
8648
|
-
vAlphabetic:
|
8649
|
-
vMathematical:
|
8658
|
+
vAlphabetic: v,
|
8659
|
+
vMathematical: v,
|
8650
8660
|
vectorEffect: null,
|
8651
|
-
vHanging:
|
8652
|
-
vIdeographic:
|
8661
|
+
vHanging: v,
|
8662
|
+
vIdeographic: v,
|
8653
8663
|
version: null,
|
8654
|
-
vertAdvY:
|
8655
|
-
vertOriginX:
|
8656
|
-
vertOriginY:
|
8664
|
+
vertAdvY: v,
|
8665
|
+
vertOriginX: v,
|
8666
|
+
vertOriginY: v,
|
8657
8667
|
viewBox: null,
|
8658
8668
|
viewTarget: null,
|
8659
8669
|
visibility: null,
|
@@ -8665,7 +8675,7 @@ const Qo = $e({
|
|
8665
8675
|
x1: null,
|
8666
8676
|
x2: null,
|
8667
8677
|
xChannelSelector: null,
|
8668
|
-
xHeight:
|
8678
|
+
xHeight: v,
|
8669
8679
|
y: null,
|
8670
8680
|
y1: null,
|
8671
8681
|
y2: null,
|
@@ -9046,7 +9056,7 @@ function Tf(e) {
|
|
9046
9056
|
e.end.column
|
9047
9057
|
].map(String).join("");
|
9048
9058
|
}
|
9049
|
-
const Di = {}.hasOwnProperty,
|
9059
|
+
const Di = {}.hasOwnProperty, vf = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", vt = {
|
9050
9060
|
plugins: { to: "remarkPlugins", id: "change-plugins-to-remarkplugins" },
|
9051
9061
|
renderers: { to: "components", id: "change-renderers-to-components" },
|
9052
9062
|
astPlugins: { id: "remove-buggy-html-in-markdown-parser" },
|
@@ -9071,12 +9081,12 @@ const Di = {}.hasOwnProperty, kf = "https://github.com/remarkjs/react-markdown/b
|
|
9071
9081
|
}
|
9072
9082
|
};
|
9073
9083
|
function Wo(e) {
|
9074
|
-
for (const o in
|
9075
|
-
if (Di.call(
|
9076
|
-
const l =
|
9084
|
+
for (const o in vt)
|
9085
|
+
if (Di.call(vt, o) && Di.call(e, o)) {
|
9086
|
+
const l = vt[o];
|
9077
9087
|
console.warn(
|
9078
|
-
`[react-markdown] Warning: please ${l.to ? `use \`${l.to}\` instead of` : "remove"} \`${o}\` (see <${
|
9079
|
-
), delete
|
9088
|
+
`[react-markdown] Warning: please ${l.to ? `use \`${l.to}\` instead of` : "remove"} \`${o}\` (see <${vf}#${l.id}> for more info)`
|
9089
|
+
), delete vt[o];
|
9080
9090
|
}
|
9081
9091
|
const t = Pu().use(qc).use(e.remarkPlugins || []).use(Pp, {
|
9082
9092
|
...e.remarkRehypeOptions,
|
@@ -9154,19 +9164,19 @@ Wo.propTypes = {
|
|
9154
9164
|
transformImageUri: g.func,
|
9155
9165
|
components: g.object
|
9156
9166
|
};
|
9157
|
-
const
|
9167
|
+
const kf = (e) => {
|
9158
9168
|
Array.from(e.entries()).forEach((n) => {
|
9159
9169
|
const r = n[0], i = n[1];
|
9160
9170
|
r.toLocaleLowerCase().startsWith("utm_") && e.delete(r, i);
|
9161
9171
|
});
|
9162
|
-
},
|
9172
|
+
}, Ef = (e) => {
|
9163
9173
|
e.delete("linked_from", "xpert_chat"), e.append("linked_from", "xpert_chat");
|
9164
9174
|
};
|
9165
|
-
function
|
9175
|
+
function jf(e) {
|
9166
9176
|
const t = new URL(e), n = t.host;
|
9167
9177
|
if (n == null ? void 0 : n.includes("edx.org")) {
|
9168
9178
|
const i = t.searchParams;
|
9169
|
-
|
9179
|
+
kf(i), Ef(i), t.search = i;
|
9170
9180
|
}
|
9171
9181
|
return t.toString();
|
9172
9182
|
}
|
@@ -9231,7 +9241,7 @@ const ar = ({
|
|
9231
9241
|
"data-testid": "message-container",
|
9232
9242
|
className: "xpert-chatbot-popup__bubble--assistant",
|
9233
9243
|
style: { maxWidth: n ? "85%" : "67%" },
|
9234
|
-
children: /* @__PURE__ */ D.jsx(Wo, { linkTarget: "_blank", transformLinkUri:
|
9244
|
+
children: /* @__PURE__ */ D.jsx(Wo, { linkTarget: "_blank", transformLinkUri: jf, children: t.content })
|
9235
9245
|
}
|
9236
9246
|
),
|
9237
9247
|
t.disableFeedback ? null : /* @__PURE__ */ D.jsx(
|
@@ -9365,7 +9375,7 @@ const zf = pr, tn = ({
|
|
9365
9375
|
}) => {
|
9366
9376
|
var s;
|
9367
9377
|
const a = Fe(null);
|
9368
|
-
return
|
9378
|
+
return de(() => {
|
9369
9379
|
var u;
|
9370
9380
|
(u = a.current) == null || u.scrollIntoView({
|
9371
9381
|
behavior: "instant",
|
@@ -9708,7 +9718,7 @@ function dr({
|
|
9708
9718
|
},
|
9709
9719
|
[n]
|
9710
9720
|
);
|
9711
|
-
|
9721
|
+
de(() => {
|
9712
9722
|
const u = document.createElement("script");
|
9713
9723
|
u.type = "text/javascript", u.src = e.liveChatUrl, u.async = !0, u.onload = () => {
|
9714
9724
|
window.Five9ChatPlugin(e.liveChatOptions);
|
@@ -9825,7 +9835,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9825
9835
|
proactiveMessage: f,
|
9826
9836
|
disableDisclaimerPage: I,
|
9827
9837
|
conversationHistory: b
|
9828
|
-
} = i, S = pt(Yf), [, w] = pe(!1), [
|
9838
|
+
} = i, S = pt(Yf), [, w] = pe(!1), [k, E] = pe(Hf), [B, _] = pe(!1), [y, A] = pe(!1), [U, Q] = pe(!1), [q, j] = pe(""), [M, N] = pe(!1), [C, z] = pe(!1), [F, Y] = pe(!0), [V, X] = pe(!1), [d, ne] = pe(!1), le = Fe(null), h = Fe(null), re = Fe(null), te = De.get(`${p}-test`) === "1", W = at(
|
9829
9839
|
({ name: L, payload: x }) => {
|
9830
9840
|
t ? t({ name: L, payload: x }) : re.current.track(
|
9831
9841
|
// TODO: this is untestable - create a custom hook to get submit event function.
|
@@ -9859,7 +9869,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9859
9869
|
if (!x.ok)
|
9860
9870
|
throw new Error(`HTTPError: ${x.status} ${x.statusText}`);
|
9861
9871
|
const T = await x.json();
|
9862
|
-
|
9872
|
+
E(
|
9863
9873
|
T.map((O) => ({
|
9864
9874
|
...O,
|
9865
9875
|
disableFeedback: !0
|
@@ -9871,12 +9881,12 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9871
9881
|
_(!1);
|
9872
9882
|
}
|
9873
9883
|
}, [p, o]);
|
9874
|
-
|
9884
|
+
de(() => (se(), document.addEventListener("visibilitychange", se), () => {
|
9875
9885
|
document.removeEventListener(
|
9876
9886
|
"visibilitychange",
|
9877
9887
|
se
|
9878
9888
|
);
|
9879
|
-
}), [se]),
|
9889
|
+
}), [se]), de(() => {
|
9880
9890
|
console.log("Chatbot - mount");
|
9881
9891
|
let L, x;
|
9882
9892
|
return s && (L = setInterval(() => {
|
@@ -9887,7 +9897,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9887
9897
|
}, 6e4)), () => {
|
9888
9898
|
console.log("Chatbot - unmount"), clearInterval(L), clearTimeout(x);
|
9889
9899
|
};
|
9890
|
-
}, [u, s]),
|
9900
|
+
}, [u, s]), de(() => {
|
9891
9901
|
const L = (T) => {
|
9892
9902
|
var O, $;
|
9893
9903
|
(O = T == null ? void 0 : T.target) != null && O.href && W({
|
@@ -9904,14 +9914,14 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9904
9914
|
x == null || x.removeEventListener("click", L);
|
9905
9915
|
};
|
9906
9916
|
});
|
9907
|
-
const
|
9917
|
+
const ge = yl(u);
|
9908
9918
|
if (!e && !i)
|
9909
9919
|
return console.log("Chatbot - xpertKey or configuration is required"), null;
|
9910
9920
|
if (!(i != null && i.xpertKey))
|
9911
9921
|
return console.log(`Chatbot - configuration not found for xpertkey: ${e}`), null;
|
9912
|
-
if (u &&
|
9913
|
-
return u &&
|
9914
|
-
`Chatbot - Experiment not setup: ${i.xpertKey}, ${
|
9922
|
+
if (u && ge !== "A" && !te)
|
9923
|
+
return u && ge !== "A" && console.log(
|
9924
|
+
`Chatbot - Experiment not setup: ${i.xpertKey}, ${ge}, ${window.optimizely}`
|
9915
9925
|
), te || console.log(
|
9916
9926
|
`Chatbot - Test user not setup: ${i.xpertKey}, ${te}`
|
9917
9927
|
), null;
|
@@ -9924,11 +9934,11 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9924
9934
|
`Chatbot - Segment not setup: ${i.xpertKey}`
|
9925
9935
|
), null;
|
9926
9936
|
console.log(
|
9927
|
-
`Chatbot - All things setup: ${i.xpertKey}, ${typeof window.analytics}, ${
|
9937
|
+
`Chatbot - All things setup: ${i.xpertKey}, ${typeof window.analytics}, ${ge}, ${typeof window.optimizely}, ${typeof window.experiments}`
|
9928
9938
|
);
|
9929
|
-
const
|
9930
|
-
|
9931
|
-
},
|
9939
|
+
const ke = () => {
|
9940
|
+
j(""), h.current.value = "", h.current.style.height = "auto";
|
9941
|
+
}, je = (L) => {
|
9932
9942
|
W({
|
9933
9943
|
name: `${s}.bi.xpert.chatbot.popup.chat.message.response`,
|
9934
9944
|
payload: {
|
@@ -9967,7 +9977,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9967
9977
|
return;
|
9968
9978
|
const x = /* @__PURE__ */ new Date();
|
9969
9979
|
z(!1);
|
9970
|
-
const T =
|
9980
|
+
const T = k.filter((ae) => ae.role === "user").length + 1;
|
9971
9981
|
W({
|
9972
9982
|
name: `${s}.bi.xpert.chatbot.popup.chat.message.sent`,
|
9973
9983
|
payload: {
|
@@ -9977,15 +9987,15 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9977
9987
|
userInputMessage: L,
|
9978
9988
|
isTestUser: te
|
9979
9989
|
}
|
9980
|
-
}),
|
9990
|
+
}), ke();
|
9981
9991
|
let O = De.get(`${p}-conversation-history-id`) || "";
|
9982
|
-
!O && (b != null && b.enabled) ?
|
9992
|
+
!O && (b != null && b.enabled) ? E([
|
9983
9993
|
{
|
9984
9994
|
role: "user",
|
9985
9995
|
content: L
|
9986
9996
|
}
|
9987
|
-
]) :
|
9988
|
-
...
|
9997
|
+
]) : E([
|
9998
|
+
...k,
|
9989
9999
|
{
|
9990
10000
|
role: "user",
|
9991
10001
|
content: L
|
@@ -9999,7 +10009,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9999
10009
|
},
|
10000
10010
|
body: JSON.stringify({
|
10001
10011
|
message_list: [
|
10002
|
-
...
|
10012
|
+
...k,
|
10003
10013
|
{
|
10004
10014
|
role: "user",
|
10005
10015
|
content: L
|
@@ -10021,14 +10031,14 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10021
10031
|
{ expires: 1 }
|
10022
10032
|
);
|
10023
10033
|
const ce = (await $.json()).content;
|
10024
|
-
|
10034
|
+
je(ce);
|
10025
10035
|
const Ne = /* @__PURE__ */ new Date();
|
10026
10036
|
Ve({
|
10027
|
-
conversationSize:
|
10037
|
+
conversationSize: k.length + 2,
|
10028
10038
|
userInputMessage: L,
|
10029
10039
|
apiResponseMessage: ce,
|
10030
10040
|
elapsedSeconds: mu(x, Ne)
|
10031
|
-
}),
|
10041
|
+
}), E((ae) => [
|
10032
10042
|
...ae,
|
10033
10043
|
{
|
10034
10044
|
role: "assistant",
|
@@ -10039,7 +10049,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10039
10049
|
} catch (x) {
|
10040
10050
|
z(!0), console.error(x);
|
10041
10051
|
} finally {
|
10042
|
-
_(!1),
|
10052
|
+
_(!1), ke();
|
10043
10053
|
}
|
10044
10054
|
}, rn = () => {
|
10045
10055
|
Q(!1), A(!0), W({
|
@@ -10103,25 +10113,25 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10103
10113
|
120
|
10104
10114
|
)}px`);
|
10105
10115
|
}, xt = (L) => {
|
10106
|
-
|
10116
|
+
j(L.target.value);
|
10107
10117
|
}, ln = (L) => {
|
10108
10118
|
L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(), ze(q));
|
10109
10119
|
}, an = (L, x = "") => {
|
10110
|
-
const T =
|
10120
|
+
const T = k.map((O, $) => L === $ ? (W({
|
10111
10121
|
name: `${s}.bi.xpert.chatbot.feedback.thumbs.${x.toLowerCase()}.clicked`,
|
10112
10122
|
payload: {
|
10113
10123
|
category: "2u",
|
10114
10124
|
label: "xpert-chatbot",
|
10115
|
-
userInputMessage:
|
10125
|
+
userInputMessage: k[L - 1],
|
10116
10126
|
apiResponseMessageIndex: L,
|
10117
|
-
apiResponseMessage:
|
10127
|
+
apiResponseMessage: k[L],
|
10118
10128
|
isTestUser: te
|
10119
10129
|
}
|
10120
10130
|
}), {
|
10121
10131
|
...O,
|
10122
10132
|
feedbackThumbType: x
|
10123
10133
|
}) : O);
|
10124
|
-
|
10134
|
+
E(T), ne(!1);
|
10125
10135
|
};
|
10126
10136
|
return (
|
10127
10137
|
// do not remove this class as it's needed to turn off chatbot
|
@@ -10180,7 +10190,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10180
10190
|
style: { display: "flex", flexDirection: "column", height: "100%" },
|
10181
10191
|
"aria-label": "XPERT Chatbot Popup",
|
10182
10192
|
role: "dialog",
|
10183
|
-
children: M || I ||
|
10193
|
+
children: M || I || k.length > 0 ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
|
10184
10194
|
/* @__PURE__ */ D.jsx(
|
10185
10195
|
Jo,
|
10186
10196
|
{
|
@@ -10196,7 +10206,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10196
10206
|
/* @__PURE__ */ D.jsx(
|
10197
10207
|
Lf,
|
10198
10208
|
{
|
10199
|
-
messages:
|
10209
|
+
messages: k,
|
10200
10210
|
loading: B,
|
10201
10211
|
isNormalSize: S || F,
|
10202
10212
|
onFeedbackThumbSelection: an,
|