@2uinc/frontend-component-xpert-chatbot 1.3.8-beta.1 → 1.3.9
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 +1017 -1008
- 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 ye, 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",
|
@@ -176,10 +176,10 @@ const tl = {
|
|
176
176
|
liveChatUrl: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
|
177
177
|
liveChatOptions: {
|
178
178
|
appId: "2U Inc",
|
179
|
-
configId: "Exec-Ed |
|
179
|
+
configId: "Exec-Ed | Titan Main Flow_Xpert"
|
180
180
|
}
|
181
181
|
};
|
182
|
-
function
|
182
|
+
function Ue(e) {
|
183
183
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
184
184
|
}
|
185
185
|
function Ti(e) {
|
@@ -203,7 +203,7 @@ function Ti(e) {
|
|
203
203
|
});
|
204
204
|
}), n;
|
205
205
|
}
|
206
|
-
var Ii = { exports: {} },
|
206
|
+
var Ii = { exports: {} }, ct = {};
|
207
207
|
/*
|
208
208
|
object-assign
|
209
209
|
(c) Sindre Sorhus
|
@@ -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,
|
250
|
-
|
249
|
+
var ul = ue, ki = 60103;
|
250
|
+
ct.Fragment = 60107;
|
251
251
|
if (typeof Symbol == "function" && Symbol.for) {
|
252
252
|
var gr = Symbol.for;
|
253
|
-
|
253
|
+
ki = 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 vi(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,11 +261,11 @@ function ki(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: ki, type: e, key: o, ref: l, props: i, _owner: sl.current };
|
265
265
|
}
|
266
|
-
|
267
|
-
|
268
|
-
Ii.exports =
|
266
|
+
ct.jsx = vi;
|
267
|
+
ct.jsxs = vi;
|
268
|
+
Ii.exports = ct;
|
269
269
|
var D = Ii.exports, ji = { exports: {} }, fl = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", dl = fl, hl = dl;
|
270
270
|
function Ei() {
|
271
271
|
}
|
@@ -312,7 +312,7 @@ var gl = function() {
|
|
312
312
|
};
|
313
313
|
ji.exports = gl();
|
314
314
|
var Ci = ji.exports;
|
315
|
-
const g = /* @__PURE__ */
|
315
|
+
const g = /* @__PURE__ */ Ue(Ci);
|
316
316
|
/*! js-cookie v3.0.5 | MIT */
|
317
317
|
function wt(e) {
|
318
318
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -383,10 +383,10 @@ function wn(e, t) {
|
|
383
383
|
}
|
384
384
|
);
|
385
385
|
}
|
386
|
-
var
|
386
|
+
var De = wn(ml, { path: "/" });
|
387
387
|
function yl(e) {
|
388
388
|
const [t, n] = pe(null);
|
389
|
-
return
|
389
|
+
return ye(() => {
|
390
390
|
console.log("Chatbot - optimizely mount");
|
391
391
|
try {
|
392
392
|
(() => {
|
@@ -416,15 +416,15 @@ function yl(e) {
|
|
416
416
|
), t;
|
417
417
|
}
|
418
418
|
const Ml = 576, xl = (e) => {
|
419
|
-
const [t, n] = pe(), r =
|
419
|
+
const [t, n] = pe(), r = at(() => {
|
420
420
|
n(
|
421
421
|
window.matchMedia(
|
422
422
|
`(max-width: ${e || Ml}px)`
|
423
423
|
).matches
|
424
424
|
);
|
425
425
|
}, [e]);
|
426
|
-
return
|
427
|
-
},
|
426
|
+
return ye(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
|
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) === "@") {
|
430
430
|
if (i.length < 2 || i.length > 3)
|
@@ -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 && !vt(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 && !vt(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 && !vt(a, n) ? null : a;
|
461
461
|
}
|
462
462
|
return null;
|
463
|
-
},
|
463
|
+
}, vt = (e, t) => e ? !!((e.provider === "" || e.provider.match(nt)) && (t && e.prefix === "" || e.prefix.match(nt)) && e.name.match(nt)) : !1, Ai = Object.freeze(
|
464
464
|
{
|
465
465
|
left: 0,
|
466
466
|
top: 0,
|
@@ -551,7 +551,7 @@ function zi(e) {
|
|
551
551
|
const n = t.icons;
|
552
552
|
for (const i in n) {
|
553
553
|
const o = n[i];
|
554
|
-
if (!i.match(
|
554
|
+
if (!i.match(nt) || typeof o.body != "string" || !sn(
|
555
555
|
o,
|
556
556
|
Dn
|
557
557
|
))
|
@@ -560,7 +560,7 @@ function zi(e) {
|
|
560
560
|
const r = t.aliases || /* @__PURE__ */ Object.create(null);
|
561
561
|
for (const i in r) {
|
562
562
|
const o = r[i], l = o.parent;
|
563
|
-
if (!i.match(
|
563
|
+
if (!i.match(nt) || typeof l != "string" || !n[l] && !r[l] || !sn(
|
564
564
|
o,
|
565
565
|
Dn
|
566
566
|
))
|
@@ -577,7 +577,7 @@ function Tl(e, t) {
|
|
577
577
|
missing: /* @__PURE__ */ new Set()
|
578
578
|
};
|
579
579
|
}
|
580
|
-
function
|
580
|
+
function Re(e, t) {
|
581
581
|
const n = yr[e] || (yr[e] = /* @__PURE__ */ Object.create(null));
|
582
582
|
return n[t] || (n[t] = Tl(e, t));
|
583
583
|
}
|
@@ -594,41 +594,41 @@ function Il(e, t, n) {
|
|
594
594
|
}
|
595
595
|
return !1;
|
596
596
|
}
|
597
|
-
let
|
597
|
+
let ut = !1;
|
598
598
|
function Li(e) {
|
599
|
-
return typeof e == "boolean" && (
|
599
|
+
return typeof e == "boolean" && (ut = e), ut;
|
600
600
|
}
|
601
|
-
function
|
602
|
-
const t = typeof e == "string" ? _t(e, !0,
|
601
|
+
function kl(e) {
|
602
|
+
const t = typeof e == "string" ? _t(e, !0, ut) : e;
|
603
603
|
if (t) {
|
604
|
-
const n =
|
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
|
609
|
-
const n = _t(e, !0,
|
608
|
+
function vl(e, t) {
|
609
|
+
const n = _t(e, !0, ut);
|
610
610
|
if (!n)
|
611
611
|
return !1;
|
612
|
-
const r =
|
612
|
+
const r = Re(n.provider, n.prefix);
|
613
613
|
return Il(r, n.name, t);
|
614
614
|
}
|
615
615
|
function jl(e, t) {
|
616
616
|
if (typeof e != "object")
|
617
617
|
return !1;
|
618
|
-
if (typeof t != "string" && (t = e.provider || ""),
|
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 && vl(o, l) && (i = !0);
|
622
622
|
})), i;
|
623
623
|
}
|
624
624
|
const n = e.prefix;
|
625
|
-
if (!
|
625
|
+
if (!vt({
|
626
626
|
provider: t,
|
627
627
|
prefix: n,
|
628
628
|
name: "a"
|
629
629
|
}))
|
630
630
|
return !1;
|
631
|
-
const r =
|
631
|
+
const r = Re(t, n);
|
632
632
|
return !!Bn(r, e);
|
633
633
|
}
|
634
634
|
const Pi = Object.freeze({
|
@@ -680,14 +680,14 @@ function Al(e, t) {
|
|
680
680
|
let o = n.body;
|
681
681
|
[n, r].forEach((T) => {
|
682
682
|
const b = [], S = T.hFlip, w = T.vFlip;
|
683
|
-
let
|
684
|
-
S ? w ?
|
683
|
+
let v = T.rotate;
|
684
|
+
S ? w ? v += 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
689
|
let j;
|
690
|
-
switch (
|
690
|
+
switch (v < 0 && (v -= Math.floor(v / 4) * 4), v = v % 4, v) {
|
691
691
|
case 1:
|
692
692
|
j = i.height / 2 + i.top, b.unshift(
|
693
693
|
"rotate(90 " + j.toString() + " " + j.toString() + ")"
|
@@ -704,7 +704,7 @@ function Al(e, t) {
|
|
704
704
|
);
|
705
705
|
break;
|
706
706
|
}
|
707
|
-
|
707
|
+
v % 2 === 1 && (i.left !== i.top && (j = i.left, i.left = i.top, i.top = j), i.width !== i.height && (j = i.width, i.width = i.height, i.height = j)), 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;
|
@@ -769,12 +769,12 @@ function Qn(e) {
|
|
769
769
|
dataAfterTimeout: e.dataAfterTimeout !== !1
|
770
770
|
};
|
771
771
|
}
|
772
|
-
const Yn = /* @__PURE__ */ Object.create(null),
|
772
|
+
const Yn = /* @__PURE__ */ Object.create(null), Xe = [
|
773
773
|
"https://api.simplesvg.com",
|
774
774
|
"https://api.unisvg.com"
|
775
775
|
], jt = [];
|
776
|
-
for (;
|
777
|
-
|
776
|
+
for (; Xe.length > 0; )
|
777
|
+
Xe.length === 1 || Math.random() > 0.5 ? jt.push(Xe.shift()) : jt.push(Xe.pop());
|
778
778
|
Yn[""] = Qn({
|
779
779
|
resources: ["https://api.iconify.design"].concat(jt)
|
780
780
|
});
|
@@ -905,7 +905,7 @@ function $l(e) {
|
|
905
905
|
if (r.name === i.name && r.prefix === i.prefix && r.provider === i.provider)
|
906
906
|
return;
|
907
907
|
r = i;
|
908
|
-
const o = i.provider, l = i.prefix, a = i.name, s = n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), u = s[l] || (s[l] =
|
908
|
+
const o = i.provider, l = i.prefix, a = i.name, s = n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), u = s[l] || (s[l] = Re(o, l));
|
909
909
|
let c;
|
910
910
|
a in u.icons ? c = t.loaded : l === "" || u.missing.has(a) ? c = t.missing : c = t.pending;
|
911
911
|
const p = {
|
@@ -1027,7 +1027,7 @@ function Kl(e, t, n, r) {
|
|
1027
1027
|
abort: b
|
1028
1028
|
};
|
1029
1029
|
}
|
1030
|
-
function
|
1030
|
+
function v() {
|
1031
1031
|
s = "failed", f.forEach((y) => {
|
1032
1032
|
y(void 0, c);
|
1033
1033
|
});
|
@@ -1050,11 +1050,11 @@ function Kl(e, t, n, r) {
|
|
1050
1050
|
return;
|
1051
1051
|
}
|
1052
1052
|
if (A === "abort") {
|
1053
|
-
c = U,
|
1053
|
+
c = U, v();
|
1054
1054
|
return;
|
1055
1055
|
}
|
1056
1056
|
if (Q) {
|
1057
|
-
c = U, m.length || (l.length ? _() :
|
1057
|
+
c = U, m.length || (l.length ? _() : v());
|
1058
1058
|
return;
|
1059
1059
|
}
|
1060
1060
|
if (T(), j(), !e.random) {
|
@@ -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
|
-
T(), s === "pending" && (j(),
|
1076
|
+
T(), s === "pending" && (j(), v());
|
1077
1077
|
}, e.timeout);
|
1078
1078
|
return;
|
1079
1079
|
}
|
1080
|
-
|
1080
|
+
v();
|
1081
1081
|
return;
|
1082
1082
|
}
|
1083
1083
|
const A = {
|
@@ -1159,7 +1159,7 @@ function ea(e, t, n) {
|
|
1159
1159
|
}
|
1160
1160
|
return !r || !i ? (n(void 0, 424), br) : r.query(t, i, n)().abort;
|
1161
1161
|
}
|
1162
|
-
const wr = "iconify2",
|
1162
|
+
const wr = "iconify2", st = "iconify", Ui = st + "-count", Dr = st + "-version", Bi = 36e5, ta = 168;
|
1163
1163
|
function In(e, t) {
|
1164
1164
|
try {
|
1165
1165
|
return e.getItem(t);
|
@@ -1178,10 +1178,10 @@ function Nr(e, t) {
|
|
1178
1178
|
} catch {
|
1179
1179
|
}
|
1180
1180
|
}
|
1181
|
-
function
|
1181
|
+
function kn(e, t) {
|
1182
1182
|
return qn(e, Ui, t.toString());
|
1183
1183
|
}
|
1184
|
-
function
|
1184
|
+
function vn(e) {
|
1185
1185
|
return parseInt(In(e, Ui)) || 0;
|
1186
1186
|
}
|
1187
1187
|
const Ut = {
|
@@ -1212,15 +1212,15 @@ function Hi(e, t) {
|
|
1212
1212
|
const r = In(n, Dr);
|
1213
1213
|
if (r !== wr) {
|
1214
1214
|
if (r) {
|
1215
|
-
const a =
|
1215
|
+
const a = vn(n);
|
1216
1216
|
for (let s = 0; s < a; s++)
|
1217
|
-
Nr(n,
|
1217
|
+
Nr(n, st + s.toString());
|
1218
1218
|
}
|
1219
|
-
qn(n, Dr, wr),
|
1219
|
+
qn(n, Dr, wr), kn(n, 0);
|
1220
1220
|
return;
|
1221
1221
|
}
|
1222
1222
|
const i = Math.floor(Date.now() / Bi) - ta, o = (a) => {
|
1223
|
-
const s =
|
1223
|
+
const s = st + a.toString(), u = In(n, s);
|
1224
1224
|
if (typeof u == "string") {
|
1225
1225
|
try {
|
1226
1226
|
const c = JSON.parse(u);
|
@@ -1232,16 +1232,16 @@ function Hi(e, t) {
|
|
1232
1232
|
Nr(n, s);
|
1233
1233
|
}
|
1234
1234
|
};
|
1235
|
-
let l =
|
1235
|
+
let l = vn(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--, kn(n, l)) : Qi[e].add(a));
|
1238
1238
|
}
|
1239
1239
|
function qi() {
|
1240
1240
|
if (!$n) {
|
1241
1241
|
na(!0);
|
1242
1242
|
for (const e in Ut)
|
1243
1243
|
Hi(e, (t) => {
|
1244
|
-
const n = t.data, r = t.provider, i = n.prefix, o =
|
1244
|
+
const n = t.data, r = t.provider, i = n.prefix, o = Re(
|
1245
1245
|
r,
|
1246
1246
|
i
|
1247
1247
|
);
|
@@ -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 = vn(i), !kn(i, l + 1))
|
1281
1281
|
return;
|
1282
1282
|
const a = {
|
1283
1283
|
cached: Math.floor(Date.now() / Bi),
|
@@ -1286,7 +1286,7 @@ function ia(e, t) {
|
|
1286
1286
|
};
|
1287
1287
|
return qn(
|
1288
1288
|
i,
|
1289
|
-
|
1289
|
+
st + l.toString(),
|
1290
1290
|
JSON.stringify(a)
|
1291
1291
|
);
|
1292
1292
|
}
|
@@ -1354,11 +1354,11 @@ const aa = (e, t) => {
|
|
1354
1354
|
const { provider: u, prefix: c } = s;
|
1355
1355
|
if (c === a && u === l)
|
1356
1356
|
return;
|
1357
|
-
l = u, a = c, o.push(
|
1357
|
+
l = u, a = c, o.push(Re(u, c));
|
1358
1358
|
const p = i[u] || (i[u] = /* @__PURE__ */ Object.create(null));
|
1359
1359
|
p[c] || (p[c] = []);
|
1360
1360
|
}), r.pending.forEach((s) => {
|
1361
|
-
const { provider: u, prefix: c, name: p } = s, m =
|
1361
|
+
const { provider: u, prefix: c, name: p } = s, m = Re(u, c), f = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
|
1362
1362
|
f.has(p) || (f.add(p), i[u][c].push(p));
|
1363
1363
|
}), o.forEach((s) => {
|
1364
1364
|
const { provider: u, prefix: c } = s;
|
@@ -1429,19 +1429,19 @@ function ha(e) {
|
|
1429
1429
|
function ga(e) {
|
1430
1430
|
return 'url("' + ha(e) + '")';
|
1431
1431
|
}
|
1432
|
-
let
|
1432
|
+
let rt;
|
1433
1433
|
function ma() {
|
1434
1434
|
try {
|
1435
|
-
|
1435
|
+
rt = window.trustedTypes.createPolicy("iconify", {
|
1436
1436
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
1437
1437
|
createHTML: (e) => e
|
1438
1438
|
});
|
1439
1439
|
} catch {
|
1440
|
-
|
1440
|
+
rt = null;
|
1441
1441
|
}
|
1442
1442
|
}
|
1443
1443
|
function ya(e) {
|
1444
|
-
return
|
1444
|
+
return rt === void 0 && ma(), rt ? rt.createHTML(e) : e;
|
1445
1445
|
}
|
1446
1446
|
const $i = {
|
1447
1447
|
...Fi,
|
@@ -1461,13 +1461,13 @@ const $i = {
|
|
1461
1461
|
Image: "var(--svg)",
|
1462
1462
|
Repeat: "no-repeat",
|
1463
1463
|
Size: "100% 100%"
|
1464
|
-
},
|
1464
|
+
}, kr = {
|
1465
1465
|
WebkitMask: jn,
|
1466
1466
|
mask: jn,
|
1467
1467
|
background: Vi
|
1468
1468
|
};
|
1469
|
-
for (const e in
|
1470
|
-
const t =
|
1469
|
+
for (const e in kr) {
|
1470
|
+
const t = kr[e];
|
1471
1471
|
for (const n in Ir)
|
1472
1472
|
t[e + n] = Ir[n];
|
1473
1473
|
}
|
@@ -1475,7 +1475,7 @@ const ba = {
|
|
1475
1475
|
...$i,
|
1476
1476
|
inline: !0
|
1477
1477
|
};
|
1478
|
-
function
|
1478
|
+
function vr(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 v = t[w];
|
1488
|
+
if (v !== 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] = v === !0 || v === "true" || v === 1;
|
1502
1502
|
break;
|
1503
1503
|
case "flip":
|
1504
|
-
typeof
|
1504
|
+
typeof v == "string" && ca(o, v);
|
1505
1505
|
break;
|
1506
1506
|
case "color":
|
1507
|
-
a.color =
|
1507
|
+
a.color = v;
|
1508
1508
|
break;
|
1509
1509
|
case "rotate":
|
1510
|
-
typeof
|
1510
|
+
typeof v == "string" ? o[w] = pa(v) : typeof v == "number" && (o[w] = v);
|
1511
1511
|
break;
|
1512
1512
|
case "ariaHidden":
|
1513
1513
|
case "aria-hidden":
|
1514
|
-
|
1514
|
+
v !== !0 && v !== "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] = v);
|
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, v = t.id;
|
1527
|
+
return typeof v == "string" && (v = v.replace(/-/g, "_")), u.dangerouslySetInnerHTML = {
|
1528
|
+
__html: ya(Pl(c.body, v ? () => v + "ID" + w++ : "iconifyReact"))
|
1529
1529
|
}, ue.createElement("svg", u);
|
1530
1530
|
}
|
1531
1531
|
const { body: m, width: f, height: T } = e, b = l === "mask" || (l === "bg" ? !1 : m.indexOf("currentColor") !== -1), S = fa(m, {
|
@@ -1536,8 +1536,8 @@ 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: vr(p.width),
|
1540
|
+
height: vr(p.height),
|
1541
1541
|
...xa,
|
1542
1542
|
...b ? jn : Vi,
|
1543
1543
|
...s
|
@@ -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 = kl(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,
|
@@ -1666,7 +1666,7 @@ class Wi extends ue.Component {
|
|
1666
1666
|
}, r, t._inline, t._ref);
|
1667
1667
|
}
|
1668
1668
|
}
|
1669
|
-
const
|
1669
|
+
const Ae = ue.forwardRef(function(t, n) {
|
1670
1670
|
const r = {
|
1671
1671
|
...t,
|
1672
1672
|
_ref: n,
|
@@ -1689,14 +1689,14 @@ const jr = {
|
|
1689
1689
|
};
|
1690
1690
|
function Vn(e) {
|
1691
1691
|
var l;
|
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"))) &&
|
1693
|
-
|
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
|
+
ye(() => {
|
1694
1694
|
var a;
|
1695
1695
|
(a = window == null ? void 0 : window.OneTrust) == null || a.OnConsentChanged(() => {
|
1696
1696
|
var s;
|
1697
|
-
!((s = window == null ? void 0 : window.OnetrustActiveGroups) != null && s.includes("C0003")) &&
|
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]), ye(() => {
|
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]);
|
@@ -1708,7 +1708,7 @@ function Vn(e) {
|
|
1708
1708
|
expires: u,
|
1709
1709
|
path: "/"
|
1710
1710
|
};
|
1711
|
-
|
1711
|
+
De.set(a, s, c);
|
1712
1712
|
};
|
1713
1713
|
return /* @__PURE__ */ D.jsx("div", { children: r && /* @__PURE__ */ D.jsxs(
|
1714
1714
|
"div",
|
@@ -1730,7 +1730,7 @@ function Vn(e) {
|
|
1730
1730
|
"aria-label": jr["popup.buttons.close"],
|
1731
1731
|
type: "button",
|
1732
1732
|
children: /* @__PURE__ */ D.jsx(
|
1733
|
-
|
1733
|
+
Ae,
|
1734
1734
|
{
|
1735
1735
|
style: {
|
1736
1736
|
color: "#707070",
|
@@ -1812,7 +1812,7 @@ var Zi = { exports: {} };
|
|
1812
1812
|
})();
|
1813
1813
|
})(Zi);
|
1814
1814
|
var Da = Zi.exports;
|
1815
|
-
const Gi = /* @__PURE__ */
|
1815
|
+
const Gi = /* @__PURE__ */ Ue(Da), Na = 991;
|
1816
1816
|
function Wn({
|
1817
1817
|
label: e,
|
1818
1818
|
className: t,
|
@@ -1821,7 +1821,7 @@ function Wn({
|
|
1821
1821
|
children: i,
|
1822
1822
|
...o
|
1823
1823
|
}) {
|
1824
|
-
const l =
|
1824
|
+
const l = pt(Na);
|
1825
1825
|
return /* @__PURE__ */ D.jsx(
|
1826
1826
|
"button",
|
1827
1827
|
{
|
@@ -1856,7 +1856,7 @@ Wn.defaultProps = {
|
|
1856
1856
|
* tabbable 6.2.0
|
1857
1857
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
1858
1858
|
*/
|
1859
|
-
var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Ot = /* @__PURE__ */ Xi.join(","), Ki = typeof Element > "u",
|
1859
|
+
var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Ot = /* @__PURE__ */ Xi.join(","), Ki = typeof Element > "u", _e = Ki ? function() {
|
1860
1860
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, zt = !Ki && Element.prototype.getRootNode ? function(e) {
|
1861
1861
|
var t;
|
1862
1862
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
@@ -1874,7 +1874,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1874
1874
|
if (Lt(t))
|
1875
1875
|
return [];
|
1876
1876
|
var i = Array.prototype.slice.apply(t.querySelectorAll(Ot));
|
1877
|
-
return n &&
|
1877
|
+
return n && _e.call(t, Ot) && i.unshift(t), i = i.filter(r), i;
|
1878
1878
|
}, eo = function e(t, n, r) {
|
1879
1879
|
for (var i = [], o = Array.from(t); o.length; ) {
|
1880
1880
|
var l = o.shift();
|
@@ -1886,7 +1886,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1886
1886
|
candidates: u
|
1887
1887
|
});
|
1888
1888
|
} else {
|
1889
|
-
var c =
|
1889
|
+
var c = _e.call(l, Ot);
|
1890
1890
|
c && r.filter(l) && (n || !t.includes(l)) && i.push(l);
|
1891
1891
|
var p = l.shadowRoot || // check for an undisclosed shadow
|
1892
1892
|
typeof r.getShadowRoot == "function" && r.getShadowRoot(l), m = !Lt(p, !1) && (!r.shadowRootFilter || r.shadowRootFilter(l));
|
@@ -1903,18 +1903,18 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1903
1903
|
return i;
|
1904
1904
|
}, to = function(t) {
|
1905
1905
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
1906
|
-
},
|
1906
|
+
}, Ce = function(t) {
|
1907
1907
|
if (!t)
|
1908
1908
|
throw new Error("No node provided");
|
1909
1909
|
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Ta(t)) && !to(t) ? 0 : t.tabIndex;
|
1910
1910
|
}, Ia = function(t, n) {
|
1911
|
-
var r =
|
1911
|
+
var r = Ce(t);
|
1912
1912
|
return r < 0 && n && !to(t) ? 0 : r;
|
1913
|
-
},
|
1913
|
+
}, ka = 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
|
+
}, va = function(t) {
|
1918
1918
|
return no(t) && t.type === "hidden";
|
1919
1919
|
}, ja = function(t) {
|
1920
1920
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
@@ -1962,8 +1962,8 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1962
1962
|
var r = n.displayCheck, i = n.getShadowRoot;
|
1963
1963
|
if (getComputedStyle(t).visibility === "hidden")
|
1964
1964
|
return !0;
|
1965
|
-
var o =
|
1966
|
-
if (
|
1965
|
+
var o = _e.call(t, "details>summary:first-of-type"), l = o ? t.parentElement : t;
|
1966
|
+
if (_e.call(l, "details:not([open]) *"))
|
1967
1967
|
return !0;
|
1968
1968
|
if (!r || r === "full" || r === "legacy-full") {
|
1969
1969
|
if (typeof i == "function") {
|
@@ -1989,7 +1989,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1989
1989
|
for (var r = 0; r < n.children.length; r++) {
|
1990
1990
|
var i = n.children.item(r);
|
1991
1991
|
if (i.tagName === "LEGEND")
|
1992
|
-
return
|
1992
|
+
return _e.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
|
1993
1993
|
}
|
1994
1994
|
return !0;
|
1995
1995
|
}
|
@@ -2000,10 +2000,10 @@ 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) ||
|
2003
|
+
Lt(n) || va(n) || za(n, t) || // For a details element with a summary, the summary element gets the focus
|
2004
2004
|
ja(n) || La(n));
|
2005
2005
|
}, En = function(t, n) {
|
2006
|
-
return !(Aa(n) ||
|
2006
|
+
return !(Aa(n) || Ce(n) < 0 || !Pt(t, n));
|
2007
2007
|
}, Pa = function(t) {
|
2008
2008
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
2009
2009
|
return !!(isNaN(n) || n >= 0);
|
@@ -2018,7 +2018,7 @@ 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(ka).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) {
|
@@ -2038,21 +2038,21 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2038
2038
|
flatten: !0,
|
2039
2039
|
getShadowRoot: n.getShadowRoot
|
2040
2040
|
}) : r = Ji(t, n.includeContainer, Pt.bind(null, n)), r;
|
2041
|
-
},
|
2041
|
+
}, Le = function(t, n) {
|
2042
2042
|
if (n = n || {}, !t)
|
2043
2043
|
throw new Error("No node provided");
|
2044
|
-
return
|
2044
|
+
return _e.call(t, Ot) === !1 ? !1 : En(n, t);
|
2045
2045
|
}, Ra = /* @__PURE__ */ Xi.concat("iframe").join(","), Et = function(t, n) {
|
2046
2046
|
if (n = n || {}, !t)
|
2047
2047
|
throw new Error("No node provided");
|
2048
|
-
return
|
2048
|
+
return _e.call(t, Ra) === !1 ? !1 : Pt(n, t);
|
2049
2049
|
};
|
2050
2050
|
const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2051
2051
|
__proto__: null,
|
2052
2052
|
focusable: io,
|
2053
|
-
getTabIndex:
|
2053
|
+
getTabIndex: Ce,
|
2054
2054
|
isFocusable: Et,
|
2055
|
-
isTabbable:
|
2055
|
+
isTabbable: Le,
|
2056
2056
|
tabbable: ro
|
2057
2057
|
}, Symbol.toStringTag, { value: "Module" }));
|
2058
2058
|
/*!
|
@@ -2121,12 +2121,12 @@ var Ar = {
|
|
2121
2121
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
2122
2122
|
}, Ha = function(t) {
|
2123
2123
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
2124
|
-
},
|
2124
|
+
}, it = function(t) {
|
2125
2125
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
2126
2126
|
}, qa = function(t) {
|
2127
|
-
return
|
2127
|
+
return it(t) && !t.shiftKey;
|
2128
2128
|
}, $a = function(t) {
|
2129
|
-
return
|
2129
|
+
return it(t) && t.shiftKey;
|
2130
2130
|
}, Or = function(t) {
|
2131
2131
|
return setTimeout(t, 0);
|
2132
2132
|
}, zr = function(t, n) {
|
@@ -2134,7 +2134,7 @@ var Ar = {
|
|
2134
2134
|
return t.every(function(i, o) {
|
2135
2135
|
return n(i) ? (r = o, !1) : !0;
|
2136
2136
|
}), r;
|
2137
|
-
},
|
2137
|
+
}, Ke = function(t) {
|
2138
2138
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
2139
2139
|
r[i - 1] = arguments[i];
|
2140
2140
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
@@ -2187,22 +2187,22 @@ var Ar = {
|
|
2187
2187
|
return M && M[N] !== void 0 ? M[N] : o[C || N];
|
2188
2188
|
}, u = function(M, N) {
|
2189
2189
|
var C = typeof (N == null ? void 0 : N.composedPath) == "function" ? N.composedPath() : void 0;
|
2190
|
-
return l.containerGroups.findIndex(function(
|
2191
|
-
var F =
|
2190
|
+
return l.containerGroups.findIndex(function(z) {
|
2191
|
+
var F = z.container, Y = z.tabbableNodes;
|
2192
2192
|
return F.contains(M) || // fall back to explicit tabbable search which will take into consideration any
|
2193
2193
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
2194
2194
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
2195
2195
|
// look inside web components even if open)
|
2196
|
-
(C == null ? void 0 : C.includes(F)) || Y.find(function(
|
2197
|
-
return
|
2196
|
+
(C == null ? void 0 : C.includes(F)) || Y.find(function(V) {
|
2197
|
+
return V === M;
|
2198
2198
|
});
|
2199
2199
|
});
|
2200
2200
|
}, c = function(M) {
|
2201
2201
|
var N = o[M];
|
2202
2202
|
if (typeof N == "function") {
|
2203
|
-
for (var C = arguments.length,
|
2204
|
-
|
2205
|
-
N = N.apply(void 0,
|
2203
|
+
for (var C = arguments.length, z = new Array(C > 1 ? C - 1 : 0), F = 1; F < C; F++)
|
2204
|
+
z[F - 1] = arguments[F];
|
2205
|
+
N = N.apply(void 0, z);
|
2206
2206
|
}
|
2207
2207
|
if (N === !0 && (N = void 0), !N) {
|
2208
2208
|
if (N === void 0 || N === !1)
|
@@ -2229,21 +2229,21 @@ var Ar = {
|
|
2229
2229
|
return M;
|
2230
2230
|
}, m = function() {
|
2231
2231
|
if (l.containerGroups = l.containers.map(function(M) {
|
2232
|
-
var N = ro(M, o.tabbableOptions), C = io(M, o.tabbableOptions),
|
2233
|
-
return
|
2234
|
-
}),
|
2235
|
-
return
|
2236
|
-
}),
|
2237
|
-
return
|
2232
|
+
var N = ro(M, o.tabbableOptions), C = io(M, o.tabbableOptions), z = N.length > 0 ? N[0] : void 0, F = N.length > 0 ? N[N.length - 1] : void 0, Y = C.find(function(d) {
|
2233
|
+
return Le(d);
|
2234
|
+
}), V = C.slice().reverse().find(function(d) {
|
2235
|
+
return Le(d);
|
2236
|
+
}), X = !!N.find(function(d) {
|
2237
|
+
return Ce(d) > 0;
|
2238
2238
|
});
|
2239
2239
|
return {
|
2240
2240
|
container: M,
|
2241
2241
|
tabbableNodes: N,
|
2242
2242
|
focusableNodes: C,
|
2243
2243
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
2244
|
-
posTabIndexesFound:
|
2244
|
+
posTabIndexesFound: X,
|
2245
2245
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
2246
|
-
firstTabbableNode:
|
2246
|
+
firstTabbableNode: z,
|
2247
2247
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
2248
2248
|
lastTabbableNode: F,
|
2249
2249
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
@@ -2256,7 +2256,7 @@ var Ar = {
|
|
2256
2256
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
2257
2257
|
firstDomTabbableNode: Y,
|
2258
2258
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
2259
|
-
lastDomTabbableNode:
|
2259
|
+
lastDomTabbableNode: V,
|
2260
2260
|
/**
|
2261
2261
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
2262
2262
|
* in this container, if any.
|
@@ -2265,13 +2265,13 @@ var Ar = {
|
|
2265
2265
|
* in reverse.
|
2266
2266
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
2267
2267
|
*/
|
2268
|
-
nextTabbableNode: function(
|
2269
|
-
var
|
2270
|
-
return h < 0 ?
|
2271
|
-
return
|
2272
|
-
}) : C.slice(0, C.indexOf(
|
2273
|
-
return
|
2274
|
-
}) : N[h + (
|
2268
|
+
nextTabbableNode: function(ne) {
|
2269
|
+
var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = N.indexOf(ne);
|
2270
|
+
return h < 0 ? le ? C.slice(C.indexOf(ne) + 1).find(function(re) {
|
2271
|
+
return Le(re);
|
2272
|
+
}) : C.slice(0, C.indexOf(ne)).reverse().find(function(re) {
|
2273
|
+
return Le(re);
|
2274
|
+
}) : N[h + (le ? 1 : -1)];
|
2275
2275
|
}
|
2276
2276
|
};
|
2277
2277
|
}), l.tabbableGroups = l.containerGroups.filter(function(M) {
|
@@ -2300,33 +2300,33 @@ var Ar = {
|
|
2300
2300
|
var N = c("setReturnFocus", M);
|
2301
2301
|
return N || (N === !1 ? !1 : M);
|
2302
2302
|
}, S = function(M) {
|
2303
|
-
var N = M.target, C = M.event,
|
2303
|
+
var N = M.target, C = M.event, z = M.isBackward, F = z === void 0 ? !1 : z;
|
2304
2304
|
N = N || Nt(C), m();
|
2305
2305
|
var Y = null;
|
2306
2306
|
if (l.tabbableGroups.length > 0) {
|
2307
|
-
var
|
2308
|
-
if (
|
2307
|
+
var V = u(N, C), X = V >= 0 ? l.containerGroups[V] : void 0;
|
2308
|
+
if (V < 0)
|
2309
2309
|
F ? Y = l.tabbableGroups[l.tabbableGroups.length - 1].lastTabbableNode : Y = l.tabbableGroups[0].firstTabbableNode;
|
2310
2310
|
else if (F) {
|
2311
|
-
var d = zr(l.tabbableGroups, function(
|
2312
|
-
var se =
|
2311
|
+
var d = zr(l.tabbableGroups, function(W) {
|
2312
|
+
var se = W.firstTabbableNode;
|
2313
2313
|
return N === se;
|
2314
2314
|
});
|
2315
|
-
if (d < 0 && (
|
2316
|
-
var
|
2317
|
-
Y =
|
2315
|
+
if (d < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Le(N, o.tabbableOptions) && !X.nextTabbableNode(N, !1)) && (d = V), d >= 0) {
|
2316
|
+
var ne = d === 0 ? l.tabbableGroups.length - 1 : d - 1, le = l.tabbableGroups[ne];
|
2317
|
+
Y = Ce(N) >= 0 ? le.lastTabbableNode : le.lastDomTabbableNode;
|
2318
2318
|
} else
|
2319
|
-
|
2319
|
+
it(C) || (Y = X.nextTabbableNode(N, !1));
|
2320
2320
|
} else {
|
2321
|
-
var h = zr(l.tabbableGroups, function(
|
2322
|
-
var se =
|
2321
|
+
var h = zr(l.tabbableGroups, function(W) {
|
2322
|
+
var se = W.lastTabbableNode;
|
2323
2323
|
return N === se;
|
2324
2324
|
});
|
2325
|
-
if (h < 0 && (
|
2326
|
-
var
|
2327
|
-
Y =
|
2325
|
+
if (h < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Le(N, o.tabbableOptions) && !X.nextTabbableNode(N)) && (h = V), h >= 0) {
|
2326
|
+
var re = h === l.tabbableGroups.length - 1 ? 0 : h + 1, te = l.tabbableGroups[re];
|
2327
|
+
Y = Ce(N) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
|
2328
2328
|
} else
|
2329
|
-
|
2329
|
+
it(C) || (Y = X.nextTabbableNode(N));
|
2330
2330
|
}
|
2331
2331
|
} else
|
2332
2332
|
Y = c("fallbackFocus");
|
@@ -2334,7 +2334,7 @@ var Ar = {
|
|
2334
2334
|
}, w = function(M) {
|
2335
2335
|
var N = Nt(M);
|
2336
2336
|
if (!(u(N, M) >= 0)) {
|
2337
|
-
if (
|
2337
|
+
if (Ke(o.clickOutsideDeactivates, M)) {
|
2338
2338
|
a.deactivate({
|
2339
2339
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
2340
2340
|
// which will result in the outside click setting focus to the node
|
@@ -2346,38 +2346,38 @@ var Ar = {
|
|
2346
2346
|
});
|
2347
2347
|
return;
|
2348
2348
|
}
|
2349
|
-
|
2349
|
+
Ke(o.allowOutsideClick, M) || M.preventDefault();
|
2350
2350
|
}
|
2351
|
-
},
|
2351
|
+
}, v = 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);
|
2355
2355
|
else {
|
2356
2356
|
M.stopImmediatePropagation();
|
2357
|
-
var
|
2357
|
+
var z, F = !0;
|
2358
2358
|
if (l.mostRecentlyFocusedNode)
|
2359
|
-
if (
|
2360
|
-
var Y = u(l.mostRecentlyFocusedNode),
|
2361
|
-
if (
|
2362
|
-
var
|
2359
|
+
if (Ce(l.mostRecentlyFocusedNode) > 0) {
|
2360
|
+
var Y = u(l.mostRecentlyFocusedNode), V = l.containerGroups[Y].tabbableNodes;
|
2361
|
+
if (V.length > 0) {
|
2362
|
+
var X = V.findIndex(function(d) {
|
2363
2363
|
return d === l.mostRecentlyFocusedNode;
|
2364
2364
|
});
|
2365
|
-
|
2365
|
+
X >= 0 && (o.isKeyForward(l.recentNavEvent) ? X + 1 < V.length && (z = V[X + 1], F = !1) : X - 1 >= 0 && (z = V[X - 1], F = !1));
|
2366
2366
|
}
|
2367
2367
|
} else
|
2368
2368
|
l.containerGroups.some(function(d) {
|
2369
|
-
return d.tabbableNodes.some(function(
|
2370
|
-
return
|
2369
|
+
return d.tabbableNodes.some(function(ne) {
|
2370
|
+
return Ce(ne) > 0;
|
2371
2371
|
});
|
2372
2372
|
}) || (F = !1);
|
2373
2373
|
else
|
2374
2374
|
F = !1;
|
2375
|
-
F && (
|
2375
|
+
F && (z = S({
|
2376
2376
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
2377
2377
|
// outside the trap causing the focus escape we're trying to fix)
|
2378
2378
|
target: l.mostRecentlyFocusedNode,
|
2379
2379
|
isBackward: o.isKeyBackward(l.recentNavEvent)
|
2380
|
-
})), T(
|
2380
|
+
})), T(z || l.mostRecentlyFocusedNode || p());
|
2381
2381
|
}
|
2382
2382
|
l.recentNavEvent = void 0;
|
2383
2383
|
}, j = function(M) {
|
@@ -2387,21 +2387,21 @@ var Ar = {
|
|
2387
2387
|
event: M,
|
2388
2388
|
isBackward: N
|
2389
2389
|
});
|
2390
|
-
C && (
|
2390
|
+
C && (it(M) && M.preventDefault(), T(C));
|
2391
2391
|
}, B = function(M) {
|
2392
|
-
if (Ha(M) &&
|
2392
|
+
if (Ha(M) && Ke(o.escapeDeactivates, M) !== !1) {
|
2393
2393
|
M.preventDefault(), a.deactivate();
|
2394
2394
|
return;
|
2395
2395
|
}
|
2396
2396
|
(o.isKeyForward(M) || o.isKeyBackward(M)) && j(M, o.isKeyBackward(M));
|
2397
2397
|
}, _ = function(M) {
|
2398
2398
|
var N = Nt(M);
|
2399
|
-
u(N, M) >= 0 ||
|
2399
|
+
u(N, M) >= 0 || Ke(o.clickOutsideDeactivates, M) || Ke(o.allowOutsideClick, M) || (M.preventDefault(), M.stopImmediatePropagation());
|
2400
2400
|
}, y = function() {
|
2401
2401
|
if (l.active)
|
2402
2402
|
return Ar.activateTrap(i, a), l.delayInitialFocusTimer = o.delayInitialFocus ? Or(function() {
|
2403
2403
|
T(p());
|
2404
|
-
}) : T(p()), r.addEventListener("focusin",
|
2404
|
+
}) : T(p()), r.addEventListener("focusin", v, !0), r.addEventListener("mousedown", w, {
|
2405
2405
|
capture: !0,
|
2406
2406
|
passive: !1
|
2407
2407
|
}), r.addEventListener("touchstart", w, {
|
@@ -2416,11 +2416,11 @@ var Ar = {
|
|
2416
2416
|
}), a;
|
2417
2417
|
}, A = function() {
|
2418
2418
|
if (l.active)
|
2419
|
-
return r.removeEventListener("focusin",
|
2419
|
+
return r.removeEventListener("focusin", v, !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
|
-
var
|
2423
|
-
return
|
2422
|
+
var z = Array.from(C.removedNodes);
|
2423
|
+
return z.some(function(F) {
|
2424
2424
|
return F === l.mostRecentlyFocusedNode;
|
2425
2425
|
});
|
2426
2426
|
});
|
@@ -2443,12 +2443,12 @@ var Ar = {
|
|
2443
2443
|
activate: function(M) {
|
2444
2444
|
if (l.active)
|
2445
2445
|
return this;
|
2446
|
-
var N = s(M, "onActivate"), C = s(M, "onPostActivate"),
|
2447
|
-
|
2446
|
+
var N = s(M, "onActivate"), C = s(M, "onPostActivate"), z = s(M, "checkCanFocusTrap");
|
2447
|
+
z || m(), l.active = !0, l.paused = !1, l.nodeFocusedBeforeActivation = r.activeElement, N == null || N();
|
2448
2448
|
var F = function() {
|
2449
|
-
|
2449
|
+
z && m(), y(), q(), C == null || C();
|
2450
2450
|
};
|
2451
|
-
return
|
2451
|
+
return z ? (z(l.containers.concat()).then(F, F), this) : (F(), this);
|
2452
2452
|
},
|
2453
2453
|
deactivate: function(M) {
|
2454
2454
|
if (!l.active)
|
@@ -2459,14 +2459,14 @@ var Ar = {
|
|
2459
2459
|
checkCanReturnFocus: o.checkCanReturnFocus
|
2460
2460
|
}, M);
|
2461
2461
|
clearTimeout(l.delayInitialFocusTimer), l.delayInitialFocusTimer = void 0, A(), l.active = !1, l.paused = !1, q(), Ar.deactivateTrap(i, a);
|
2462
|
-
var C = s(N, "onDeactivate"),
|
2462
|
+
var C = s(N, "onDeactivate"), z = s(N, "onPostDeactivate"), F = s(N, "checkCanReturnFocus"), Y = s(N, "returnFocus", "returnFocusOnDeactivate");
|
2463
2463
|
C == null || C();
|
2464
|
-
var
|
2464
|
+
var V = function() {
|
2465
2465
|
Or(function() {
|
2466
|
-
Y && T(b(l.nodeFocusedBeforeActivation)),
|
2466
|
+
Y && T(b(l.nodeFocusedBeforeActivation)), z == null || z();
|
2467
2467
|
});
|
2468
2468
|
};
|
2469
|
-
return Y && F ? (F(b(l.nodeFocusedBeforeActivation)).then(
|
2469
|
+
return Y && F ? (F(b(l.nodeFocusedBeforeActivation)).then(V, V), this) : (V(), this);
|
2470
2470
|
},
|
2471
2471
|
pause: function(M) {
|
2472
2472
|
if (l.paused || !l.active)
|
@@ -2492,13 +2492,13 @@ const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2492
2492
|
__proto__: null,
|
2493
2493
|
createFocusTrap: Wa
|
2494
2494
|
}, Symbol.toStringTag, { value: "Module" })), Ga = /* @__PURE__ */ Ti(Za), Xa = /* @__PURE__ */ Ti(_a);
|
2495
|
-
function
|
2495
|
+
function He(e) {
|
2496
2496
|
"@babel/helpers - typeof";
|
2497
|
-
return
|
2497
|
+
return He = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
2498
2498
|
return typeof t;
|
2499
2499
|
} : function(t) {
|
2500
2500
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
2501
|
-
},
|
2501
|
+
}, He(e);
|
2502
2502
|
}
|
2503
2503
|
function Ka(e, t) {
|
2504
2504
|
if (!(e instanceof t))
|
@@ -2536,13 +2536,13 @@ function tu(e) {
|
|
2536
2536
|
};
|
2537
2537
|
}
|
2538
2538
|
function nu(e, t) {
|
2539
|
-
if (t && (
|
2539
|
+
if (t && (He(t) === "object" || typeof t == "function"))
|
2540
2540
|
return t;
|
2541
2541
|
if (t !== void 0)
|
2542
2542
|
throw new TypeError("Derived constructors may only return object or undefined");
|
2543
|
-
return
|
2543
|
+
return tt(e);
|
2544
2544
|
}
|
2545
|
-
function
|
2545
|
+
function tt(e) {
|
2546
2546
|
if (e === void 0)
|
2547
2547
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
2548
2548
|
return e;
|
@@ -2569,26 +2569,26 @@ function iu(e, t, n) {
|
|
2569
2569
|
}
|
2570
2570
|
function oo(e) {
|
2571
2571
|
var t = ou(e, "string");
|
2572
|
-
return
|
2572
|
+
return He(t) === "symbol" ? t : String(t);
|
2573
2573
|
}
|
2574
2574
|
function ou(e, t) {
|
2575
|
-
if (
|
2575
|
+
if (He(e) !== "object" || e === null)
|
2576
2576
|
return e;
|
2577
2577
|
var n = e[Symbol.toPrimitive];
|
2578
2578
|
if (n !== void 0) {
|
2579
2579
|
var r = n.call(e, t || "default");
|
2580
|
-
if (
|
2580
|
+
if (He(r) !== "object")
|
2581
2581
|
return r;
|
2582
2582
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
2583
2583
|
}
|
2584
2584
|
return (t === "string" ? String : Number)(e);
|
2585
2585
|
}
|
2586
|
-
var Tt = ue,
|
2586
|
+
var Tt = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusable, Zn = /* @__PURE__ */ function(e) {
|
2587
2587
|
eu(n, e);
|
2588
2588
|
var t = tu(n);
|
2589
2589
|
function n(r) {
|
2590
2590
|
var i;
|
2591
|
-
Ka(this, n), i = t.call(this, r), iu(
|
2591
|
+
Ka(this, n), i = t.call(this, r), iu(tt(i), "getNodeForOption", function(a) {
|
2592
2592
|
var s, u = (s = this.internalOptions[a]) !== null && s !== void 0 ? s : this.originalOptions[a];
|
2593
2593
|
if (typeof u == "function") {
|
2594
2594
|
for (var c = arguments.length, p = new Array(c > 1 ? c - 1 : 0), m = 1; m < c; m++)
|
@@ -2607,7 +2607,7 @@ var Tt = ue, L = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusa
|
|
2607
2607
|
throw new Error("`".concat(a, "` as selector refers to no known node"));
|
2608
2608
|
}
|
2609
2609
|
return f;
|
2610
|
-
}), i.handleDeactivate = i.handleDeactivate.bind(
|
2610
|
+
}), i.handleDeactivate = i.handleDeactivate.bind(tt(i)), i.handlePostDeactivate = i.handlePostDeactivate.bind(tt(i)), i.handleClickOutsideDeactivates = i.handleClickOutsideDeactivates.bind(tt(i)), i.internalOptions = {
|
2611
2611
|
// We need to hijack the returnFocusOnDeactivate option,
|
2612
2612
|
// because React can move focus into the element before we arrived at
|
2613
2613
|
// this lifecycle hook (e.g. with autoFocus inputs). So the component
|
@@ -2770,49 +2770,49 @@ var Tt = ue, L = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusa
|
|
2770
2770
|
return null;
|
2771
2771
|
}
|
2772
2772
|
}]), n;
|
2773
|
-
}(Tt.Component),
|
2773
|
+
}(Tt.Component), Je = typeof Element > "u" ? Function : Element;
|
2774
2774
|
Zn.propTypes = {
|
2775
|
-
active:
|
2776
|
-
paused:
|
2777
|
-
focusTrapOptions:
|
2778
|
-
document:
|
2779
|
-
onActivate:
|
2780
|
-
onPostActivate:
|
2781
|
-
checkCanFocusTrap:
|
2782
|
-
onPause:
|
2783
|
-
onPostPause:
|
2784
|
-
onUnpause:
|
2785
|
-
onPostUnpause:
|
2786
|
-
onDeactivate:
|
2787
|
-
onPostDeactivate:
|
2788
|
-
checkCanReturnFocus:
|
2789
|
-
initialFocus:
|
2790
|
-
fallbackFocus:
|
2791
|
-
|
2792
|
-
|
2775
|
+
active: P.bool,
|
2776
|
+
paused: P.bool,
|
2777
|
+
focusTrapOptions: P.shape({
|
2778
|
+
document: P.object,
|
2779
|
+
onActivate: P.func,
|
2780
|
+
onPostActivate: P.func,
|
2781
|
+
checkCanFocusTrap: P.func,
|
2782
|
+
onPause: P.func,
|
2783
|
+
onPostPause: P.func,
|
2784
|
+
onUnpause: P.func,
|
2785
|
+
onPostUnpause: P.func,
|
2786
|
+
onDeactivate: P.func,
|
2787
|
+
onPostDeactivate: P.func,
|
2788
|
+
checkCanReturnFocus: P.func,
|
2789
|
+
initialFocus: P.oneOfType([P.instanceOf(Je), P.string, P.bool, P.func]),
|
2790
|
+
fallbackFocus: P.oneOfType([
|
2791
|
+
P.instanceOf(Je),
|
2792
|
+
P.string,
|
2793
2793
|
// NOTE: does not support `false` as value (or return value from function)
|
2794
|
-
|
2794
|
+
P.func
|
2795
2795
|
]),
|
2796
|
-
escapeDeactivates:
|
2797
|
-
clickOutsideDeactivates:
|
2798
|
-
returnFocusOnDeactivate:
|
2799
|
-
setReturnFocus:
|
2800
|
-
allowOutsideClick:
|
2801
|
-
preventScroll:
|
2802
|
-
tabbableOptions:
|
2803
|
-
displayCheck:
|
2804
|
-
getShadowRoot:
|
2796
|
+
escapeDeactivates: P.oneOfType([P.bool, P.func]),
|
2797
|
+
clickOutsideDeactivates: P.oneOfType([P.bool, P.func]),
|
2798
|
+
returnFocusOnDeactivate: P.bool,
|
2799
|
+
setReturnFocus: P.oneOfType([P.instanceOf(Je), P.string, P.bool, P.func]),
|
2800
|
+
allowOutsideClick: P.oneOfType([P.bool, P.func]),
|
2801
|
+
preventScroll: P.bool,
|
2802
|
+
tabbableOptions: P.shape({
|
2803
|
+
displayCheck: P.oneOf(["full", "legacy-full", "non-zero-area", "none"]),
|
2804
|
+
getShadowRoot: P.oneOfType([P.bool, P.func])
|
2805
2805
|
}),
|
2806
|
-
trapStack:
|
2807
|
-
isKeyForward:
|
2808
|
-
isKeyBackward:
|
2806
|
+
trapStack: P.array,
|
2807
|
+
isKeyForward: P.func,
|
2808
|
+
isKeyBackward: P.func
|
2809
2809
|
}),
|
2810
|
-
containerElements:
|
2810
|
+
containerElements: P.arrayOf(P.instanceOf(Je)),
|
2811
2811
|
// DOM element ONLY
|
2812
|
-
children:
|
2813
|
-
|
2812
|
+
children: P.oneOfType([
|
2813
|
+
P.element,
|
2814
2814
|
// React element
|
2815
|
-
|
2815
|
+
P.instanceOf(Je)
|
2816
2816
|
// DOM element
|
2817
2817
|
])
|
2818
2818
|
// NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
|
@@ -2826,13 +2826,13 @@ Zn.defaultProps = {
|
|
2826
2826
|
_createFocusTrap: au
|
2827
2827
|
};
|
2828
2828
|
var cu = Zn;
|
2829
|
-
const pu = /* @__PURE__ */
|
2829
|
+
const pu = /* @__PURE__ */ Ue(cu), fu = (e) => {
|
2830
2830
|
const t = () => {
|
2831
2831
|
document.body.style.overflow = "hidden";
|
2832
2832
|
}, n = () => {
|
2833
2833
|
document.body.style.overflow = "unset";
|
2834
2834
|
};
|
2835
|
-
|
2835
|
+
ye(() => {
|
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);
|
@@ -2847,7 +2847,7 @@ function Bt({
|
|
2847
2847
|
isNormalSize: r,
|
2848
2848
|
isMounted: i
|
2849
2849
|
}) {
|
2850
|
-
const o =
|
2850
|
+
const o = pt(hu), l = Fe(null);
|
2851
2851
|
return du(l), /* @__PURE__ */ D.jsx(
|
2852
2852
|
pu,
|
2853
2853
|
{
|
@@ -2945,7 +2945,7 @@ function lo({ onClose: e, configurations: t }) {
|
|
2945
2945
|
},
|
2946
2946
|
onClick: e,
|
2947
2947
|
children: /* @__PURE__ */ D.jsx(
|
2948
|
-
|
2948
|
+
Ae,
|
2949
2949
|
{
|
2950
2950
|
icon: "material-symbols:close",
|
2951
2951
|
alt: "Close",
|
@@ -2976,7 +2976,7 @@ function Qt({
|
|
2976
2976
|
containerStyle: s,
|
2977
2977
|
configurations: u
|
2978
2978
|
}) {
|
2979
|
-
return
|
2979
|
+
return ye(() => {
|
2980
2980
|
var c;
|
2981
2981
|
(c = t == null ? void 0 : t.current) == null || c.focus();
|
2982
2982
|
}, [e, n, t]), /* @__PURE__ */ D.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: s, children: [
|
@@ -3017,7 +3017,7 @@ function Qt({
|
|
3017
3017
|
c.preventDefault(), i(r);
|
3018
3018
|
},
|
3019
3019
|
"aria-label": "Send message",
|
3020
|
-
children: /* @__PURE__ */ D.jsx(
|
3020
|
+
children: /* @__PURE__ */ D.jsx(Ae, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
|
3021
3021
|
}
|
3022
3022
|
)
|
3023
3023
|
] });
|
@@ -3079,7 +3079,7 @@ function ao({
|
|
3079
3079
|
className: "xpert-chatbot-popup__disclaimer--instruction",
|
3080
3080
|
children: [
|
3081
3081
|
/* @__PURE__ */ D.jsx("div", { className: "xpert-chatbot-popup__disclaimer__compass-icon", children: /* @__PURE__ */ D.jsx(
|
3082
|
-
|
3082
|
+
Ae,
|
3083
3083
|
{
|
3084
3084
|
icon: yu[c.icon],
|
3085
3085
|
style: { fontSize: "1.75rem" }
|
@@ -3158,8 +3158,8 @@ ao.propTypes = {
|
|
3158
3158
|
}).isRequired
|
3159
3159
|
};
|
3160
3160
|
function uo({ disableScroll: e }) {
|
3161
|
-
const t =
|
3162
|
-
return
|
3161
|
+
const t = Fe(null);
|
3162
|
+
return ye(() => {
|
3163
3163
|
var n;
|
3164
3164
|
e || (n = t.current) == null || n.scrollIntoView({
|
3165
3165
|
behavior: "smooth",
|
@@ -3183,8 +3183,8 @@ uo.propTypes = {
|
|
3183
3183
|
disableScroll: g.bool
|
3184
3184
|
};
|
3185
3185
|
const so = () => {
|
3186
|
-
const e =
|
3187
|
-
return
|
3186
|
+
const e = Fe(null);
|
3187
|
+
return ye(() => {
|
3188
3188
|
var t;
|
3189
3189
|
(t = e.current) == null || t.scrollIntoView({
|
3190
3190
|
behavior: "instant"
|
@@ -3207,7 +3207,7 @@ const so = () => {
|
|
3207
3207
|
ref: e,
|
3208
3208
|
children: [
|
3209
3209
|
/* @__PURE__ */ D.jsx(
|
3210
|
-
|
3210
|
+
Ae,
|
3211
3211
|
{
|
3212
3212
|
icon: "material-symbols:thunderstorm",
|
3213
3213
|
style: {
|
@@ -3274,8 +3274,8 @@ function xu(e) {
|
|
3274
3274
|
var bu = function(t) {
|
3275
3275
|
return t != null && t.constructor != null && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
|
3276
3276
|
};
|
3277
|
-
const co = /* @__PURE__ */
|
3278
|
-
function
|
3277
|
+
const co = /* @__PURE__ */ Ue(bu);
|
3278
|
+
function ot(e) {
|
3279
3279
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Fr(e.position) : "start" in e || "end" in e ? Fr(e) : "line" in e || "column" in e ? Cn(e) : "";
|
3280
3280
|
}
|
3281
3281
|
function Cn(e) {
|
@@ -3287,7 +3287,7 @@ function Fr(e) {
|
|
3287
3287
|
function Rr(e) {
|
3288
3288
|
return e && typeof e == "number" ? e : 1;
|
3289
3289
|
}
|
3290
|
-
class
|
3290
|
+
class xe extends Error {
|
3291
3291
|
/**
|
3292
3292
|
* Create a message for `reason` at `place` from `origin`.
|
3293
3293
|
*
|
@@ -3318,25 +3318,25 @@ class be extends Error {
|
|
3318
3318
|
const l = r.indexOf(":");
|
3319
3319
|
l === -1 ? i[1] = r : (i[0] = r.slice(0, l), i[1] = r.slice(l + 1));
|
3320
3320
|
}
|
3321
|
-
n && ("type" in n || "position" in n ? n.position && (o = n.position) : "start" in n || "end" in n ? o = n : ("line" in n || "column" in n) && (o.start = n)), this.name =
|
3321
|
+
n && ("type" in n || "position" in n ? n.position && (o = n.position) : "start" in n || "end" in n ? o = n : ("line" in n || "column" in n) && (o.start = n)), this.name = ot(n) || "1:1", this.message = typeof t == "object" ? t.message : t, this.stack = "", typeof t == "object" && t.stack && (this.stack = t.stack), this.reason = this.message, this.fatal, this.line = o.start.line, this.column = o.start.column, this.position = o, this.source = i[0], this.ruleId = i[1], this.file, this.actual, this.expected, this.url, this.note;
|
3322
3322
|
}
|
3323
3323
|
}
|
3324
|
-
|
3325
|
-
|
3326
|
-
|
3327
|
-
|
3328
|
-
|
3329
|
-
|
3330
|
-
|
3331
|
-
|
3332
|
-
|
3333
|
-
|
3334
|
-
|
3324
|
+
xe.prototype.file = "";
|
3325
|
+
xe.prototype.name = "";
|
3326
|
+
xe.prototype.reason = "";
|
3327
|
+
xe.prototype.message = "";
|
3328
|
+
xe.prototype.stack = "";
|
3329
|
+
xe.prototype.fatal = null;
|
3330
|
+
xe.prototype.column = null;
|
3331
|
+
xe.prototype.line = null;
|
3332
|
+
xe.prototype.source = null;
|
3333
|
+
xe.prototype.ruleId = null;
|
3334
|
+
xe.prototype.position = null;
|
3335
3335
|
const Te = { basename: wu, dirname: Du, extname: Nu, join: Tu, sep: "/" };
|
3336
3336
|
function wu(e, t) {
|
3337
3337
|
if (t !== void 0 && typeof t != "string")
|
3338
3338
|
throw new TypeError('"ext" argument must be a string');
|
3339
|
-
|
3339
|
+
ft(e);
|
3340
3340
|
let n = 0, r = -1, i = e.length, o;
|
3341
3341
|
if (t === void 0 || t.length === 0 || t.length > e.length) {
|
3342
3342
|
for (; i--; )
|
@@ -3363,7 +3363,7 @@ function wu(e, t) {
|
|
3363
3363
|
return n === r ? r = l : r < 0 && (r = e.length), e.slice(n, r);
|
3364
3364
|
}
|
3365
3365
|
function Du(e) {
|
3366
|
-
if (
|
3366
|
+
if (ft(e), e.length === 0)
|
3367
3367
|
return ".";
|
3368
3368
|
let t = -1, n = e.length, r;
|
3369
3369
|
for (; --n; )
|
@@ -3377,7 +3377,7 @@ function Du(e) {
|
|
3377
3377
|
return t < 0 ? e.charCodeAt(0) === 47 ? "/" : "." : t === 1 && e.charCodeAt(0) === 47 ? "//" : e.slice(0, t);
|
3378
3378
|
}
|
3379
3379
|
function Nu(e) {
|
3380
|
-
|
3380
|
+
ft(e);
|
3381
3381
|
let t = e.length, n = -1, r = 0, i = -1, o = 0, l;
|
3382
3382
|
for (; t--; ) {
|
3383
3383
|
const a = e.charCodeAt(t);
|
@@ -3397,16 +3397,16 @@ function Nu(e) {
|
|
3397
3397
|
function Tu(...e) {
|
3398
3398
|
let t = -1, n;
|
3399
3399
|
for (; ++t < e.length; )
|
3400
|
-
|
3400
|
+
ft(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
3401
3401
|
return n === void 0 ? "." : Iu(n);
|
3402
3402
|
}
|
3403
3403
|
function Iu(e) {
|
3404
|
-
|
3404
|
+
ft(e);
|
3405
3405
|
const t = e.charCodeAt(0) === 47;
|
3406
|
-
let n =
|
3406
|
+
let n = ku(e, !t);
|
3407
3407
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.charCodeAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
3408
3408
|
}
|
3409
|
-
function
|
3409
|
+
function ku(e, t) {
|
3410
3410
|
let n = "", r = 0, i = -1, o = 0, l = -1, a, s;
|
3411
3411
|
for (; ++l <= e.length; ) {
|
3412
3412
|
if (l < e.length)
|
@@ -3439,13 +3439,13 @@ function vu(e, t) {
|
|
3439
3439
|
}
|
3440
3440
|
return n;
|
3441
3441
|
}
|
3442
|
-
function
|
3442
|
+
function ft(e) {
|
3443
3443
|
if (typeof e != "string")
|
3444
3444
|
throw new TypeError(
|
3445
3445
|
"Path must be a string. Received " + JSON.stringify(e)
|
3446
3446
|
);
|
3447
3447
|
}
|
3448
|
-
const
|
3448
|
+
const vu = { cwd: ju };
|
3449
3449
|
function ju() {
|
3450
3450
|
return "/";
|
3451
3451
|
}
|
@@ -3516,7 +3516,7 @@ class po {
|
|
3516
3516
|
*/
|
3517
3517
|
constructor(t) {
|
3518
3518
|
let n;
|
3519
|
-
t ? typeof t == "string" || Cu(t) ? n = { value: t } : An(t) ? n = { path: t } : n = t : n = {}, this.data = {}, this.messages = [], this.history = [], this.cwd =
|
3519
|
+
t ? typeof t == "string" || Cu(t) ? n = { value: t } : An(t) ? n = { path: t } : n = t : n = {}, this.data = {}, this.messages = [], this.history = [], this.cwd = vu.cwd(), this.value, this.stored, this.result, this.map;
|
3520
3520
|
let r = -1;
|
3521
3521
|
for (; ++r < pn.length; ) {
|
3522
3522
|
const o = pn[r];
|
@@ -3643,7 +3643,7 @@ class po {
|
|
3643
3643
|
* Message.
|
3644
3644
|
*/
|
3645
3645
|
message(t, n, r) {
|
3646
|
-
const i = new
|
3646
|
+
const i = new xe(t, n, r);
|
3647
3647
|
return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
|
3648
3648
|
}
|
3649
3649
|
/**
|
@@ -3747,7 +3747,7 @@ var St = Object.prototype.hasOwnProperty, fo = Object.prototype.toString, Br = O
|
|
3747
3747
|
r = $r(a, n), i = $r(t, n), a !== i && (c && i && (Hr(i) || (o = Yr(i))) ? (o ? (o = !1, l = r && Yr(r) ? r : []) : l = r && Hr(r) ? r : {}, qr(a, { name: n, newValue: e(c, l, i) })) : typeof i < "u" && qr(a, { name: n, newValue: i }));
|
3748
3748
|
return a;
|
3749
3749
|
};
|
3750
|
-
const Vr = /* @__PURE__ */
|
3750
|
+
const Vr = /* @__PURE__ */ Ue(Au);
|
3751
3751
|
function On(e) {
|
3752
3752
|
if (typeof e != "object" || e === null)
|
3753
3753
|
return !1;
|
@@ -3848,7 +3848,7 @@ function go() {
|
|
3848
3848
|
else
|
3849
3849
|
throw new TypeError("Expected usable value, not `" + b + "`");
|
3850
3850
|
return w && (n.settings = Object.assign(n.settings || {}, w)), o;
|
3851
|
-
function
|
3851
|
+
function v(y) {
|
3852
3852
|
if (typeof y == "function")
|
3853
3853
|
_(y);
|
3854
3854
|
else if (typeof y == "object")
|
@@ -3869,7 +3869,7 @@ function go() {
|
|
3869
3869
|
if (Array.isArray(y))
|
3870
3870
|
for (; ++A < y.length; ) {
|
3871
3871
|
const U = y[A];
|
3872
|
-
|
3872
|
+
v(U);
|
3873
3873
|
}
|
3874
3874
|
else
|
3875
3875
|
throw new TypeError("Expected a list of plugins, not `" + y + "`");
|
@@ -3886,38 +3886,38 @@ function go() {
|
|
3886
3886
|
}
|
3887
3887
|
function u(b) {
|
3888
3888
|
o.freeze();
|
3889
|
-
const S =
|
3889
|
+
const S = et(b), w = o.Parser;
|
3890
3890
|
return hn("parse", w), Wr(w, "parse") ? new w(String(S), S).parse() : w(String(S), S);
|
3891
3891
|
}
|
3892
3892
|
function c(b, S) {
|
3893
3893
|
o.freeze();
|
3894
|
-
const w =
|
3895
|
-
return gn("stringify",
|
3894
|
+
const w = et(S), v = o.Compiler;
|
3895
|
+
return gn("stringify", v), Zr(b), Wr(v, "compile") ? new v(b, w).compile() : v(b, w);
|
3896
3896
|
}
|
3897
3897
|
function p(b, S, w) {
|
3898
3898
|
if (Zr(b), o.freeze(), !w && typeof S == "function" && (w = S, S = void 0), !w)
|
3899
|
-
return new Promise(
|
3900
|
-
|
3901
|
-
function
|
3902
|
-
e.run(b,
|
3899
|
+
return new Promise(v);
|
3900
|
+
v(null, w);
|
3901
|
+
function v(j, B) {
|
3902
|
+
e.run(b, et(S), _);
|
3903
3903
|
function _(y, A, U) {
|
3904
3904
|
A = A || b, y ? B(y) : j ? j(A) : w(null, A, U);
|
3905
3905
|
}
|
3906
3906
|
}
|
3907
3907
|
}
|
3908
3908
|
function m(b, S) {
|
3909
|
-
let w,
|
3910
|
-
return o.run(b, S, j), Gr("runSync", "run",
|
3909
|
+
let w, v;
|
3910
|
+
return o.run(b, S, j), Gr("runSync", "run", v), w;
|
3911
3911
|
function j(B, _) {
|
3912
|
-
Ur(B), w = _,
|
3912
|
+
Ur(B), w = _, v = !0;
|
3913
3913
|
}
|
3914
3914
|
}
|
3915
3915
|
function f(b, S) {
|
3916
3916
|
if (o.freeze(), hn("process", o.Parser), gn("process", o.Compiler), !S)
|
3917
3917
|
return new Promise(w);
|
3918
3918
|
w(null, S);
|
3919
|
-
function w(
|
3920
|
-
const B =
|
3919
|
+
function w(v, j) {
|
3920
|
+
const B = et(b);
|
3921
3921
|
o.run(o.parse(B), B, (y, A, U) => {
|
3922
3922
|
if (y || !A || !U)
|
3923
3923
|
_(y);
|
@@ -3927,16 +3927,16 @@ function go() {
|
|
3927
3927
|
}
|
3928
3928
|
});
|
3929
3929
|
function _(y, A) {
|
3930
|
-
y || !A ? j(y) :
|
3930
|
+
y || !A ? j(y) : v ? v(A) : S(null, A);
|
3931
3931
|
}
|
3932
3932
|
}
|
3933
3933
|
}
|
3934
3934
|
function T(b) {
|
3935
3935
|
let S;
|
3936
3936
|
o.freeze(), hn("processSync", o.Parser), gn("processSync", o.Compiler);
|
3937
|
-
const w =
|
3938
|
-
return o.process(w,
|
3939
|
-
function
|
3937
|
+
const w = et(b);
|
3938
|
+
return o.process(w, v), Gr("processSync", "process", S), w;
|
3939
|
+
function v(j) {
|
3940
3940
|
S = !0, Ur(j);
|
3941
3941
|
}
|
3942
3942
|
}
|
@@ -3981,7 +3981,7 @@ function Gr(e, t, n) {
|
|
3981
3981
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
3982
3982
|
);
|
3983
3983
|
}
|
3984
|
-
function
|
3984
|
+
function et(e) {
|
3985
3985
|
return Fu(e) ? e : new po(e);
|
3986
3986
|
}
|
3987
3987
|
function Fu(e) {
|
@@ -4016,7 +4016,7 @@ function Xr(e, t, n) {
|
|
4016
4016
|
function Bu(e) {
|
4017
4017
|
return !!(e && typeof e == "object");
|
4018
4018
|
}
|
4019
|
-
function
|
4019
|
+
function ke(e, t, n, r) {
|
4020
4020
|
const i = e.length;
|
4021
4021
|
let o = 0, l;
|
4022
4022
|
if (t < 0 ? t = -t > i ? 0 : i + t : t = t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4)
|
@@ -4025,8 +4025,8 @@ function ve(e, t, n, r) {
|
|
4025
4025
|
for (n && e.splice(t, n); o < r.length; )
|
4026
4026
|
l = r.slice(o, o + 1e4), l.unshift(t, 0), e.splice(...l), o += 1e4, t += 1e4;
|
4027
4027
|
}
|
4028
|
-
function
|
4029
|
-
return e.length > 0 ? (
|
4028
|
+
function Me(e, t) {
|
4029
|
+
return e.length > 0 ? (ke(e, e.length, 0, t), e) : t;
|
4030
4030
|
}
|
4031
4031
|
const Kr = {}.hasOwnProperty;
|
4032
4032
|
function Qu(e) {
|
@@ -4058,9 +4058,9 @@ function Hu(e, t) {
|
|
4058
4058
|
const r = [];
|
4059
4059
|
for (; ++n < t.length; )
|
4060
4060
|
(t[n].add === "after" ? e : r).push(t[n]);
|
4061
|
-
|
4061
|
+
ke(e, 0, 0, r);
|
4062
4062
|
}
|
4063
|
-
const qu = /[!-\/:-@\[-`\{-~\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]/, Ie =
|
4063
|
+
const qu = /[!-\/:-@\[-`\{-~\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]/, Ie = Oe(/[A-Za-z]/), me = Oe(/[\dA-Za-z]/), $u = Oe(/[#-'*+\--9=?A-Z^-~]/);
|
4064
4064
|
function zn(e) {
|
4065
4065
|
return (
|
4066
4066
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -4068,7 +4068,7 @@ function zn(e) {
|
|
4068
4068
|
e !== null && (e < 32 || e === 127)
|
4069
4069
|
);
|
4070
4070
|
}
|
4071
|
-
const Ln =
|
4071
|
+
const Ln = Oe(/\d/), Vu = Oe(/[\dA-Fa-f]/), Wu = Oe(/[!-/:-@[-`{-~]/);
|
4072
4072
|
function R(e) {
|
4073
4073
|
return e !== null && e < -2;
|
4074
4074
|
}
|
@@ -4078,14 +4078,14 @@ function de(e) {
|
|
4078
4078
|
function Z(e) {
|
4079
4079
|
return e === -2 || e === -1 || e === 32;
|
4080
4080
|
}
|
4081
|
-
const Zu =
|
4082
|
-
function
|
4081
|
+
const Zu = Oe(qu), Gu = Oe(/\s/);
|
4082
|
+
function Oe(e) {
|
4083
4083
|
return t;
|
4084
4084
|
function t(n) {
|
4085
4085
|
return n !== null && e.test(String.fromCharCode(n));
|
4086
4086
|
}
|
4087
4087
|
}
|
4088
|
-
function
|
4088
|
+
function ee(e, t, n, r) {
|
4089
4089
|
const i = r ? r - 1 : Number.POSITIVE_INFINITY;
|
4090
4090
|
let o = 0;
|
4091
4091
|
return l;
|
@@ -4112,7 +4112,7 @@ function Ku(e) {
|
|
4112
4112
|
e.consume(a);
|
4113
4113
|
return;
|
4114
4114
|
}
|
4115
|
-
return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"),
|
4115
|
+
return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), ee(e, t, "linePrefix");
|
4116
4116
|
}
|
4117
4117
|
function i(a) {
|
4118
4118
|
return e.enter("paragraph"), o(a);
|
@@ -4154,7 +4154,7 @@ function es(e) {
|
|
4154
4154
|
}
|
4155
4155
|
function s(j) {
|
4156
4156
|
if (r++, t.containerState._closeFlow) {
|
4157
|
-
t.containerState._closeFlow = void 0, i &&
|
4157
|
+
t.containerState._closeFlow = void 0, i && v();
|
4158
4158
|
const B = t.events.length;
|
4159
4159
|
let _ = B, y;
|
4160
4160
|
for (; _--; )
|
@@ -4166,7 +4166,7 @@ function es(e) {
|
|
4166
4166
|
let A = B;
|
4167
4167
|
for (; A < t.events.length; )
|
4168
4168
|
t.events[A][1].end = Object.assign({}, y), A++;
|
4169
|
-
return
|
4169
|
+
return ke(
|
4170
4170
|
t.events,
|
4171
4171
|
_ + 1,
|
4172
4172
|
0,
|
@@ -4190,7 +4190,7 @@ function es(e) {
|
|
4190
4190
|
)(j);
|
4191
4191
|
}
|
4192
4192
|
function c(j) {
|
4193
|
-
return i &&
|
4193
|
+
return i && v(), w(r), m(j);
|
4194
4194
|
}
|
4195
4195
|
function p(j) {
|
4196
4196
|
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, T(j);
|
@@ -4207,7 +4207,7 @@ function es(e) {
|
|
4207
4207
|
}
|
4208
4208
|
function T(j) {
|
4209
4209
|
if (j === null) {
|
4210
|
-
i &&
|
4210
|
+
i && v(), w(0), e.consume(j);
|
4211
4211
|
return;
|
4212
4212
|
}
|
4213
4213
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
@@ -4247,7 +4247,7 @@ function es(e) {
|
|
4247
4247
|
}
|
4248
4248
|
for (w(r), y = A; y < t.events.length; )
|
4249
4249
|
t.events[y][1].end = Object.assign({}, q), y++;
|
4250
|
-
|
4250
|
+
ke(
|
4251
4251
|
t.events,
|
4252
4252
|
U + 1,
|
4253
4253
|
0,
|
@@ -4263,12 +4263,12 @@ function es(e) {
|
|
4263
4263
|
}
|
4264
4264
|
n.length = j;
|
4265
4265
|
}
|
4266
|
-
function
|
4266
|
+
function v() {
|
4267
4267
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
4268
4268
|
}
|
4269
4269
|
}
|
4270
4270
|
function ts(e, t, n) {
|
4271
|
-
return
|
4271
|
+
return ee(
|
4272
4272
|
e,
|
4273
4273
|
e.attempt(this.parser.constructs.document, t, n),
|
4274
4274
|
"linePrefix",
|
@@ -4322,30 +4322,30 @@ function ns(e, t) {
|
|
4322
4322
|
type: s > 1 ? "strong" : "emphasis",
|
4323
4323
|
start: Object.assign({}, l.start),
|
4324
4324
|
end: Object.assign({}, a.end)
|
4325
|
-
}, e[r][1].end = Object.assign({}, l.start), e[n][1].start = Object.assign({}, a.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u =
|
4325
|
+
}, e[r][1].end = Object.assign({}, l.start), e[n][1].start = Object.assign({}, a.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Me(u, [
|
4326
4326
|
["enter", e[r][1], t],
|
4327
4327
|
["exit", e[r][1], t]
|
4328
|
-
])), u =
|
4328
|
+
])), u = Me(u, [
|
4329
4329
|
["enter", i, t],
|
4330
4330
|
["enter", l, t],
|
4331
4331
|
["exit", l, t],
|
4332
4332
|
["enter", o, t]
|
4333
|
-
]), u =
|
4333
|
+
]), u = Me(
|
4334
4334
|
u,
|
4335
4335
|
Gn(
|
4336
4336
|
t.parser.constructs.insideSpan.null,
|
4337
4337
|
e.slice(r + 1, n),
|
4338
4338
|
t
|
4339
4339
|
)
|
4340
|
-
), u =
|
4340
|
+
), u = Me(u, [
|
4341
4341
|
["exit", o, t],
|
4342
4342
|
["enter", a, t],
|
4343
4343
|
["exit", a, t],
|
4344
4344
|
["exit", i, t]
|
4345
|
-
]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u =
|
4345
|
+
]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Me(u, [
|
4346
4346
|
["enter", e[n][1], t],
|
4347
4347
|
["exit", e[n][1], t]
|
4348
|
-
])) : c = 0,
|
4348
|
+
])) : c = 0, ke(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
|
4349
4349
|
break;
|
4350
4350
|
}
|
4351
4351
|
}
|
@@ -4384,10 +4384,10 @@ function os(e, t, n) {
|
|
4384
4384
|
return Ie(f) ? (e.consume(f), l) : u(f);
|
4385
4385
|
}
|
4386
4386
|
function l(f) {
|
4387
|
-
return f === 43 || f === 45 || f === 46 ||
|
4387
|
+
return f === 43 || f === 45 || f === 46 || me(f) ? (r = 1, a(f)) : u(f);
|
4388
4388
|
}
|
4389
4389
|
function a(f) {
|
4390
|
-
return f === 58 ? (e.consume(f), r = 0, s) : (f === 43 || f === 45 || f === 46 ||
|
4390
|
+
return f === 58 ? (e.consume(f), r = 0, s) : (f === 43 || f === 45 || f === 46 || me(f)) && r++ < 32 ? (e.consume(f), a) : (r = 0, u(f));
|
4391
4391
|
}
|
4392
4392
|
function s(f) {
|
4393
4393
|
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);
|
@@ -4396,13 +4396,13 @@ function os(e, t, n) {
|
|
4396
4396
|
return f === 64 ? (e.consume(f), c) : $u(f) ? (e.consume(f), u) : n(f);
|
4397
4397
|
}
|
4398
4398
|
function c(f) {
|
4399
|
-
return
|
4399
|
+
return me(f) ? p(f) : n(f);
|
4400
4400
|
}
|
4401
4401
|
function p(f) {
|
4402
4402
|
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);
|
4403
4403
|
}
|
4404
4404
|
function m(f) {
|
4405
|
-
if ((f === 45 ||
|
4405
|
+
if ((f === 45 || me(f)) && r++ < 63) {
|
4406
4406
|
const T = f === 45 ? m : p;
|
4407
4407
|
return e.consume(f), T;
|
4408
4408
|
}
|
@@ -4416,7 +4416,7 @@ const Yt = {
|
|
4416
4416
|
function ls(e, t, n) {
|
4417
4417
|
return r;
|
4418
4418
|
function r(o) {
|
4419
|
-
return Z(o) ?
|
4419
|
+
return Z(o) ? ee(e, i, "linePrefix")(o) : i(o);
|
4420
4420
|
}
|
4421
4421
|
function i(o) {
|
4422
4422
|
return o === null || R(o) ? t(o) : n(o);
|
@@ -4450,7 +4450,7 @@ function us(e, t, n) {
|
|
4450
4450
|
const r = this;
|
4451
4451
|
return i;
|
4452
4452
|
function i(l) {
|
4453
|
-
return Z(l) ?
|
4453
|
+
return Z(l) ? ee(
|
4454
4454
|
e,
|
4455
4455
|
o,
|
4456
4456
|
"linePrefix",
|
@@ -4496,7 +4496,7 @@ function ps(e, t, n) {
|
|
4496
4496
|
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), s;
|
4497
4497
|
}
|
4498
4498
|
function s(p) {
|
4499
|
-
return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, l =
|
4499
|
+
return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, l = me, c(p));
|
4500
4500
|
}
|
4501
4501
|
function u(p) {
|
4502
4502
|
return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = Vu, c) : (e.enter("characterReferenceValue"), o = 7, l = Ln, c(p));
|
@@ -4504,7 +4504,7 @@ function ps(e, t, n) {
|
|
4504
4504
|
function c(p) {
|
4505
4505
|
if (p === 59 && i) {
|
4506
4506
|
const m = e.exit("characterReferenceValue");
|
4507
|
-
return l ===
|
4507
|
+
return l === me && !Xn(r.sliceSerialize(m)) ? n(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
4508
4508
|
}
|
4509
4509
|
return l(p) && i++ < o ? (e.consume(p), c) : n(p);
|
4510
4510
|
}
|
@@ -4532,7 +4532,7 @@ function fs(e, t, n) {
|
|
4532
4532
|
return o = A && A[1].type === "linePrefix" ? A[2].sliceSerialize(A[1], !0).length : 0, a = y, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(y);
|
4533
4533
|
}
|
4534
4534
|
function c(y) {
|
4535
|
-
return y === a ? (l++, e.consume(y), c) : l < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), Z(y) ?
|
4535
|
+
return y === a ? (l++, e.consume(y), c) : l < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), Z(y) ? ee(e, p, "whitespace")(y) : p(y));
|
4536
4536
|
}
|
4537
4537
|
function p(y) {
|
4538
4538
|
return y === null || R(y) ? (e.exit("codeFencedFence"), r.interrupt ? t(y) : e.check(ri, b, B)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
@@ -4540,7 +4540,7 @@ function fs(e, t, n) {
|
|
4540
4540
|
}), m(y));
|
4541
4541
|
}
|
4542
4542
|
function m(y) {
|
4543
|
-
return y === null || R(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(y)) : Z(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"),
|
4543
|
+
return y === null || R(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(y)) : Z(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ee(e, f, "whitespace")(y)) : y === 96 && y === a ? n(y) : (e.consume(y), m);
|
4544
4544
|
}
|
4545
4545
|
function f(y) {
|
4546
4546
|
return y === null || R(y) ? p(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
@@ -4557,18 +4557,18 @@ function fs(e, t, n) {
|
|
4557
4557
|
return e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), w;
|
4558
4558
|
}
|
4559
4559
|
function w(y) {
|
4560
|
-
return o > 0 && Z(y) ?
|
4560
|
+
return o > 0 && Z(y) ? ee(
|
4561
4561
|
e,
|
4562
|
-
|
4562
|
+
v,
|
4563
4563
|
"linePrefix",
|
4564
4564
|
o + 1
|
4565
|
-
)(y) :
|
4565
|
+
)(y) : v(y);
|
4566
4566
|
}
|
4567
|
-
function
|
4567
|
+
function v(y) {
|
4568
4568
|
return y === null || R(y) ? e.check(ri, b, B)(y) : (e.enter("codeFlowValue"), j(y));
|
4569
4569
|
}
|
4570
4570
|
function j(y) {
|
4571
|
-
return y === null || R(y) ? (e.exit("codeFlowValue"),
|
4571
|
+
return y === null || R(y) ? (e.exit("codeFlowValue"), v(y)) : (e.consume(y), j);
|
4572
4572
|
}
|
4573
4573
|
function B(y) {
|
4574
4574
|
return e.exit("codeFenced"), t(y);
|
@@ -4576,25 +4576,25 @@ function fs(e, t, n) {
|
|
4576
4576
|
function _(y, A, U) {
|
4577
4577
|
let Q = 0;
|
4578
4578
|
return q;
|
4579
|
-
function q(
|
4580
|
-
return y.enter("lineEnding"), y.consume(
|
4579
|
+
function q(z) {
|
4580
|
+
return y.enter("lineEnding"), y.consume(z), y.exit("lineEnding"), E;
|
4581
4581
|
}
|
4582
|
-
function E(
|
4583
|
-
return y.enter("codeFencedFence"), Z(
|
4582
|
+
function E(z) {
|
4583
|
+
return y.enter("codeFencedFence"), Z(z) ? ee(
|
4584
4584
|
y,
|
4585
4585
|
M,
|
4586
4586
|
"linePrefix",
|
4587
4587
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
4588
|
-
)(
|
4588
|
+
)(z) : M(z);
|
4589
4589
|
}
|
4590
|
-
function M(
|
4591
|
-
return
|
4590
|
+
function M(z) {
|
4591
|
+
return z === a ? (y.enter("codeFencedFenceSequence"), N(z)) : U(z);
|
4592
4592
|
}
|
4593
|
-
function N(
|
4594
|
-
return
|
4593
|
+
function N(z) {
|
4594
|
+
return z === a ? (Q++, y.consume(z), N) : Q >= l ? (y.exit("codeFencedFenceSequence"), Z(z) ? ee(y, C, "whitespace")(z) : C(z)) : U(z);
|
4595
4595
|
}
|
4596
|
-
function C(
|
4597
|
-
return
|
4596
|
+
function C(z) {
|
4597
|
+
return z === null || R(z) ? (y.exit("codeFencedFence"), A(z)) : U(z);
|
4598
4598
|
}
|
4599
4599
|
}
|
4600
4600
|
}
|
@@ -4619,7 +4619,7 @@ function gs(e, t, n) {
|
|
4619
4619
|
const r = this;
|
4620
4620
|
return i;
|
4621
4621
|
function i(u) {
|
4622
|
-
return e.enter("codeIndented"),
|
4622
|
+
return e.enter("codeIndented"), ee(e, o, "linePrefix", 4 + 1)(u);
|
4623
4623
|
}
|
4624
4624
|
function o(u) {
|
4625
4625
|
const c = r.events[r.events.length - 1];
|
@@ -4639,7 +4639,7 @@ function ms(e, t, n) {
|
|
4639
4639
|
const r = this;
|
4640
4640
|
return i;
|
4641
4641
|
function i(l) {
|
4642
|
-
return r.parser.lazy[r.now().line] ? n(l) : R(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), i) :
|
4642
|
+
return r.parser.lazy[r.now().line] ? n(l) : R(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), i) : ee(e, o, "linePrefix", 4 + 1)(l);
|
4643
4643
|
}
|
4644
4644
|
function o(l) {
|
4645
4645
|
const a = r.events[r.events.length - 1];
|
@@ -4701,7 +4701,7 @@ function bo(e) {
|
|
4701
4701
|
else if (r[1]._container) {
|
4702
4702
|
for (o = n, i = void 0; o-- && (l = e[o], l[1].type === "lineEnding" || l[1].type === "lineEndingBlank"); )
|
4703
4703
|
l[0] === "enter" && (i && (e[i][1].type = "lineEndingBlank"), l[1].type = "lineEnding", i = o);
|
4704
|
-
i && (r[1].end = Object.assign({}, e[i][1].start), a = e.slice(i, n), a.unshift(r),
|
4704
|
+
i && (r[1].end = Object.assign({}, e[i][1].start), a = e.slice(i, n), a.unshift(r), ke(e, i, n - i + 1, a));
|
4705
4705
|
}
|
4706
4706
|
}
|
4707
4707
|
return !u;
|
@@ -4721,8 +4721,8 @@ function ws(e, t) {
|
|
4721
4721
|
// Find a void token that includes a break.
|
4722
4722
|
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);
|
4723
4723
|
for (l.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : S.pop(), m = S.length; m--; ) {
|
4724
|
-
const w = a.slice(S[m], S[m + 1]),
|
4725
|
-
s.unshift([
|
4724
|
+
const w = a.slice(S[m], S[m + 1]), v = o.pop();
|
4725
|
+
s.unshift([v, v + w.length - 1]), ke(e, v, 2, w);
|
4726
4726
|
}
|
4727
4727
|
for (m = -1; ++m < s.length; )
|
4728
4728
|
u[T + s[m][0]] = T + s[m][1], T += s[m][1] - s[m][0] - 1;
|
@@ -4732,7 +4732,7 @@ const Ds = {
|
|
4732
4732
|
tokenize: Is,
|
4733
4733
|
resolve: Ts
|
4734
4734
|
}, Ns = {
|
4735
|
-
tokenize:
|
4735
|
+
tokenize: ks,
|
4736
4736
|
partial: !0
|
4737
4737
|
};
|
4738
4738
|
function Ts(e) {
|
@@ -4763,11 +4763,11 @@ function Is(e, t) {
|
|
4763
4763
|
}), n = n.next, i;
|
4764
4764
|
}
|
4765
4765
|
}
|
4766
|
-
function
|
4766
|
+
function ks(e, t, n) {
|
4767
4767
|
const r = this;
|
4768
4768
|
return i;
|
4769
4769
|
function i(l) {
|
4770
|
-
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"),
|
4770
|
+
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), ee(e, o, "linePrefix");
|
4771
4771
|
}
|
4772
4772
|
function o(l) {
|
4773
4773
|
if (l === null || R(l))
|
@@ -4837,7 +4837,7 @@ function No(e, t, n, r, i, o) {
|
|
4837
4837
|
return m === l ? (e.enter(i), e.consume(m), e.exit(i), e.exit(r), t) : (e.enter(o), u(m));
|
4838
4838
|
}
|
4839
4839
|
function u(m) {
|
4840
|
-
return m === l ? (e.exit(o), s(l)) : m === null ? n(m) : R(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"),
|
4840
|
+
return m === l ? (e.exit(o), s(l)) : m === null ? n(m) : R(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), ee(e, u, "linePrefix")) : (e.enter("chunkString", {
|
4841
4841
|
contentType: "string"
|
4842
4842
|
}), c(m));
|
4843
4843
|
}
|
@@ -4848,21 +4848,21 @@ function No(e, t, n, r, i, o) {
|
|
4848
4848
|
return m === l || m === 92 ? (e.consume(m), c) : c(m);
|
4849
4849
|
}
|
4850
4850
|
}
|
4851
|
-
function
|
4851
|
+
function lt(e, t) {
|
4852
4852
|
let n;
|
4853
4853
|
return r;
|
4854
4854
|
function r(i) {
|
4855
|
-
return R(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : Z(i) ?
|
4855
|
+
return R(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : Z(i) ? ee(
|
4856
4856
|
e,
|
4857
4857
|
r,
|
4858
4858
|
n ? "linePrefix" : "lineSuffix"
|
4859
4859
|
)(i) : t(i);
|
4860
4860
|
}
|
4861
4861
|
}
|
4862
|
-
function
|
4862
|
+
function Qe(e) {
|
4863
4863
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
4864
4864
|
}
|
4865
|
-
const
|
4865
|
+
const vs = {
|
4866
4866
|
name: "definition",
|
4867
4867
|
tokenize: Es
|
4868
4868
|
}, js = {
|
@@ -4889,12 +4889,12 @@ function Es(e, t, n) {
|
|
4889
4889
|
)(f);
|
4890
4890
|
}
|
4891
4891
|
function a(f) {
|
4892
|
-
return i =
|
4892
|
+
return i = Qe(
|
4893
4893
|
r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
|
4894
4894
|
), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), s) : n(f);
|
4895
4895
|
}
|
4896
4896
|
function s(f) {
|
4897
|
-
return de(f) ?
|
4897
|
+
return de(f) ? lt(e, u)(f) : u(f);
|
4898
4898
|
}
|
4899
4899
|
function u(f) {
|
4900
4900
|
return wo(
|
@@ -4913,7 +4913,7 @@ function Es(e, t, n) {
|
|
4913
4913
|
return e.attempt(js, p, p)(f);
|
4914
4914
|
}
|
4915
4915
|
function p(f) {
|
4916
|
-
return Z(f) ?
|
4916
|
+
return Z(f) ? ee(e, m, "whitespace")(f) : m(f);
|
4917
4917
|
}
|
4918
4918
|
function m(f) {
|
4919
4919
|
return f === null || R(f) ? (e.exit("definition"), r.parser.defined.push(i), t(f)) : n(f);
|
@@ -4922,7 +4922,7 @@ function Es(e, t, n) {
|
|
4922
4922
|
function Ss(e, t, n) {
|
4923
4923
|
return r;
|
4924
4924
|
function r(a) {
|
4925
|
-
return de(a) ?
|
4925
|
+
return de(a) ? lt(e, i)(a) : n(a);
|
4926
4926
|
}
|
4927
4927
|
function i(a) {
|
4928
4928
|
return No(
|
@@ -4935,7 +4935,7 @@ function Ss(e, t, n) {
|
|
4935
4935
|
)(a);
|
4936
4936
|
}
|
4937
4937
|
function o(a) {
|
4938
|
-
return Z(a) ?
|
4938
|
+
return Z(a) ? ee(e, l, "whitespace")(a) : l(a);
|
4939
4939
|
}
|
4940
4940
|
function l(a) {
|
4941
4941
|
return a === null || R(a) ? t(a) : n(a);
|
@@ -4970,7 +4970,7 @@ function zs(e, t) {
|
|
4970
4970
|
start: e[r][1].start,
|
4971
4971
|
end: e[n][1].end,
|
4972
4972
|
contentType: "text"
|
4973
|
-
},
|
4973
|
+
}, ke(e, r, n - r + 1, [
|
4974
4974
|
["enter", i, t],
|
4975
4975
|
["enter", o, t],
|
4976
4976
|
["exit", o, t],
|
@@ -4990,7 +4990,7 @@ function Ls(e, t, n) {
|
|
4990
4990
|
return c === 35 && r++ < 6 ? (e.consume(c), l) : c === null || de(c) ? (e.exit("atxHeadingSequence"), a(c)) : n(c);
|
4991
4991
|
}
|
4992
4992
|
function a(c) {
|
4993
|
-
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || R(c) ? (e.exit("atxHeading"), t(c)) : Z(c) ?
|
4993
|
+
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));
|
4994
4994
|
}
|
4995
4995
|
function s(c) {
|
4996
4996
|
return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), a(c));
|
@@ -5100,30 +5100,30 @@ function Bs(e, t, n) {
|
|
5100
5100
|
return h === 45 ? (e.consume(h), r.interrupt ? t : d) : n(h);
|
5101
5101
|
}
|
5102
5102
|
function T(h) {
|
5103
|
-
const
|
5104
|
-
return h ===
|
5103
|
+
const re = "CDATA[";
|
5104
|
+
return h === re.charCodeAt(a++) ? (e.consume(h), a === re.length ? r.interrupt ? t : M : T) : n(h);
|
5105
5105
|
}
|
5106
5106
|
function b(h) {
|
5107
5107
|
return Ie(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
|
5108
5108
|
}
|
5109
5109
|
function S(h) {
|
5110
5110
|
if (h === null || h === 47 || h === 62 || de(h)) {
|
5111
|
-
const
|
5112
|
-
return !
|
5111
|
+
const re = h === 47, te = l.toLowerCase();
|
5112
|
+
return !re && !o && oi.includes(te) ? (i = 1, r.interrupt ? t(h) : M(h)) : Ps.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 ? v(h) : j(h));
|
5113
5113
|
}
|
5114
|
-
return h === 45 ||
|
5114
|
+
return h === 45 || me(h) ? (e.consume(h), l += String.fromCharCode(h), S) : n(h);
|
5115
5115
|
}
|
5116
5116
|
function w(h) {
|
5117
5117
|
return h === 62 ? (e.consume(h), r.interrupt ? t : M) : n(h);
|
5118
5118
|
}
|
5119
|
-
function
|
5120
|
-
return Z(h) ? (e.consume(h),
|
5119
|
+
function v(h) {
|
5120
|
+
return Z(h) ? (e.consume(h), v) : q(h);
|
5121
5121
|
}
|
5122
5122
|
function j(h) {
|
5123
5123
|
return h === 47 ? (e.consume(h), q) : h === 58 || h === 95 || Ie(h) ? (e.consume(h), B) : Z(h) ? (e.consume(h), j) : q(h);
|
5124
5124
|
}
|
5125
5125
|
function B(h) {
|
5126
|
-
return h === 45 || h === 46 || h === 58 || h === 95 ||
|
5126
|
+
return h === 45 || h === 46 || h === 58 || h === 95 || me(h) ? (e.consume(h), B) : _(h);
|
5127
5127
|
}
|
5128
5128
|
function _(h) {
|
5129
5129
|
return h === 61 ? (e.consume(h), y) : Z(h) ? (e.consume(h), _) : j(h);
|
@@ -5147,9 +5147,9 @@ function Bs(e, t, n) {
|
|
5147
5147
|
return h === null || R(h) ? M(h) : Z(h) ? (e.consume(h), E) : n(h);
|
5148
5148
|
}
|
5149
5149
|
function M(h) {
|
5150
|
-
return h === 45 && i === 2 ? (e.consume(h), F) : h === 60 && i === 1 ? (e.consume(h), Y) : h === 62 && i === 4 ? (e.consume(h),
|
5150
|
+
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(
|
5151
5151
|
Rs,
|
5152
|
-
|
5152
|
+
le,
|
5153
5153
|
N
|
5154
5154
|
)(h)) : h === null || R(h) ? (e.exit("htmlFlowData"), N(h)) : (e.consume(h), M);
|
5155
5155
|
}
|
@@ -5157,38 +5157,38 @@ function Bs(e, t, n) {
|
|
5157
5157
|
return e.check(
|
5158
5158
|
_s,
|
5159
5159
|
C,
|
5160
|
-
|
5160
|
+
le
|
5161
5161
|
)(h);
|
5162
5162
|
}
|
5163
5163
|
function C(h) {
|
5164
|
-
return e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"),
|
5164
|
+
return e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), z;
|
5165
5165
|
}
|
5166
|
-
function
|
5166
|
+
function z(h) {
|
5167
5167
|
return h === null || R(h) ? N(h) : (e.enter("htmlFlowData"), M(h));
|
5168
5168
|
}
|
5169
5169
|
function F(h) {
|
5170
5170
|
return h === 45 ? (e.consume(h), d) : M(h);
|
5171
5171
|
}
|
5172
5172
|
function Y(h) {
|
5173
|
-
return h === 47 ? (e.consume(h), l = "",
|
5173
|
+
return h === 47 ? (e.consume(h), l = "", V) : M(h);
|
5174
5174
|
}
|
5175
|
-
function
|
5175
|
+
function V(h) {
|
5176
5176
|
if (h === 62) {
|
5177
|
-
const
|
5178
|
-
return oi.includes(
|
5177
|
+
const re = l.toLowerCase();
|
5178
|
+
return oi.includes(re) ? (e.consume(h), ne) : M(h);
|
5179
5179
|
}
|
5180
|
-
return Ie(h) && l.length < 8 ? (e.consume(h), l += String.fromCharCode(h),
|
5180
|
+
return Ie(h) && l.length < 8 ? (e.consume(h), l += String.fromCharCode(h), V) : M(h);
|
5181
5181
|
}
|
5182
|
-
function
|
5182
|
+
function X(h) {
|
5183
5183
|
return h === 93 ? (e.consume(h), d) : M(h);
|
5184
5184
|
}
|
5185
5185
|
function d(h) {
|
5186
|
-
return h === 62 ? (e.consume(h),
|
5186
|
+
return h === 62 ? (e.consume(h), ne) : h === 45 && i === 2 ? (e.consume(h), d) : M(h);
|
5187
5187
|
}
|
5188
|
-
function
|
5189
|
-
return h === null || R(h) ? (e.exit("htmlFlowData"),
|
5188
|
+
function ne(h) {
|
5189
|
+
return h === null || R(h) ? (e.exit("htmlFlowData"), le(h)) : (e.consume(h), ne);
|
5190
5190
|
}
|
5191
|
-
function
|
5191
|
+
function le(h) {
|
5192
5192
|
return e.exit("htmlFlow"), t(h);
|
5193
5193
|
}
|
5194
5194
|
}
|
@@ -5223,7 +5223,7 @@ function qs(e, t, n) {
|
|
5223
5223
|
return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), _) : d === 63 ? (e.consume(d), j) : Ie(d) ? (e.consume(d), U) : n(d);
|
5224
5224
|
}
|
5225
5225
|
function u(d) {
|
5226
|
-
return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0, T) : Ie(d) ? (e.consume(d),
|
5226
|
+
return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0, T) : Ie(d) ? (e.consume(d), v) : n(d);
|
5227
5227
|
}
|
5228
5228
|
function c(d) {
|
5229
5229
|
return d === 45 ? (e.consume(d), f) : n(d);
|
@@ -5238,8 +5238,8 @@ function qs(e, t, n) {
|
|
5238
5238
|
return d === 62 ? F(d) : d === 45 ? m(d) : p(d);
|
5239
5239
|
}
|
5240
5240
|
function T(d) {
|
5241
|
-
const
|
5242
|
-
return d ===
|
5241
|
+
const ne = "CDATA[";
|
5242
|
+
return d === ne.charCodeAt(o++) ? (e.consume(d), o === ne.length ? b : T) : n(d);
|
5243
5243
|
}
|
5244
5244
|
function b(d) {
|
5245
5245
|
return d === null ? n(d) : d === 93 ? (e.consume(d), S) : R(d) ? (l = b, Y(d)) : (e.consume(d), b);
|
@@ -5250,8 +5250,8 @@ function qs(e, t, n) {
|
|
5250
5250
|
function w(d) {
|
5251
5251
|
return d === 62 ? F(d) : d === 93 ? (e.consume(d), w) : b(d);
|
5252
5252
|
}
|
5253
|
-
function
|
5254
|
-
return d === null || d === 62 ? F(d) : R(d) ? (l =
|
5253
|
+
function v(d) {
|
5254
|
+
return d === null || d === 62 ? F(d) : R(d) ? (l = v, Y(d)) : (e.consume(d), v);
|
5255
5255
|
}
|
5256
5256
|
function j(d) {
|
5257
5257
|
return d === null ? n(d) : d === 63 ? (e.consume(d), B) : R(d) ? (l = j, Y(d)) : (e.consume(d), j);
|
@@ -5263,19 +5263,19 @@ function qs(e, t, n) {
|
|
5263
5263
|
return Ie(d) ? (e.consume(d), y) : n(d);
|
5264
5264
|
}
|
5265
5265
|
function y(d) {
|
5266
|
-
return d === 45 ||
|
5266
|
+
return d === 45 || me(d) ? (e.consume(d), y) : A(d);
|
5267
5267
|
}
|
5268
5268
|
function A(d) {
|
5269
5269
|
return R(d) ? (l = A, Y(d)) : Z(d) ? (e.consume(d), A) : F(d);
|
5270
5270
|
}
|
5271
5271
|
function U(d) {
|
5272
|
-
return d === 45 ||
|
5272
|
+
return d === 45 || me(d) ? (e.consume(d), U) : d === 47 || d === 62 || de(d) ? Q(d) : n(d);
|
5273
5273
|
}
|
5274
5274
|
function Q(d) {
|
5275
5275
|
return d === 47 ? (e.consume(d), F) : d === 58 || d === 95 || Ie(d) ? (e.consume(d), q) : R(d) ? (l = Q, Y(d)) : Z(d) ? (e.consume(d), Q) : F(d);
|
5276
5276
|
}
|
5277
5277
|
function q(d) {
|
5278
|
-
return d === 45 || d === 46 || d === 58 || d === 95 ||
|
5278
|
+
return d === 45 || d === 46 || d === 58 || d === 95 || me(d) ? (e.consume(d), q) : E(d);
|
5279
5279
|
}
|
5280
5280
|
function E(d) {
|
5281
5281
|
return d === 61 ? (e.consume(d), M) : R(d) ? (l = E, Y(d)) : Z(d) ? (e.consume(d), E) : Q(d);
|
@@ -5284,29 +5284,29 @@ function qs(e, t, n) {
|
|
5284
5284
|
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);
|
5285
5285
|
}
|
5286
5286
|
function N(d) {
|
5287
|
-
return d === i ? (e.consume(d), i = void 0,
|
5287
|
+
return d === i ? (e.consume(d), i = void 0, z) : d === null ? n(d) : R(d) ? (l = N, Y(d)) : (e.consume(d), N);
|
5288
5288
|
}
|
5289
5289
|
function C(d) {
|
5290
5290
|
return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? n(d) : d === 47 || d === 62 || de(d) ? Q(d) : (e.consume(d), C);
|
5291
5291
|
}
|
5292
|
-
function
|
5292
|
+
function z(d) {
|
5293
5293
|
return d === 47 || d === 62 || de(d) ? Q(d) : n(d);
|
5294
5294
|
}
|
5295
5295
|
function F(d) {
|
5296
5296
|
return d === 62 ? (e.consume(d), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(d);
|
5297
5297
|
}
|
5298
5298
|
function Y(d) {
|
5299
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"),
|
5299
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), V;
|
5300
5300
|
}
|
5301
|
-
function
|
5302
|
-
return Z(d) ?
|
5301
|
+
function V(d) {
|
5302
|
+
return Z(d) ? ee(
|
5303
5303
|
e,
|
5304
|
-
|
5304
|
+
X,
|
5305
5305
|
"linePrefix",
|
5306
5306
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
5307
|
-
)(d) :
|
5307
|
+
)(d) : X(d);
|
5308
5308
|
}
|
5309
|
-
function
|
5309
|
+
function X(d) {
|
5310
5310
|
return e.enter("htmlTextData"), l(d);
|
5311
5311
|
}
|
5312
5312
|
}
|
@@ -5360,19 +5360,19 @@ function Gs(e, t) {
|
|
5360
5360
|
return a = [
|
5361
5361
|
["enter", s, t],
|
5362
5362
|
["enter", u, t]
|
5363
|
-
], a =
|
5363
|
+
], a = Me(a, e.slice(o + 1, o + r + 3)), a = Me(a, [["enter", c, t]]), a = Me(
|
5364
5364
|
a,
|
5365
5365
|
Gn(
|
5366
5366
|
t.parser.constructs.insideSpan.null,
|
5367
5367
|
e.slice(o + r + 4, l - 3),
|
5368
5368
|
t
|
5369
5369
|
)
|
5370
|
-
), a =
|
5370
|
+
), a = Me(a, [
|
5371
5371
|
["exit", c, t],
|
5372
5372
|
e[l - 2],
|
5373
5373
|
e[l - 1],
|
5374
5374
|
["exit", u, t]
|
5375
|
-
]), a =
|
5375
|
+
]), a = Me(a, e.slice(l + 1)), a = Me(a, [["exit", s, t]]), ke(e, o, e.length, a), e;
|
5376
5376
|
}
|
5377
5377
|
function Xs(e, t, n) {
|
5378
5378
|
const r = this;
|
@@ -5385,7 +5385,7 @@ function Xs(e, t, n) {
|
|
5385
5385
|
return a;
|
5386
5386
|
function a(m) {
|
5387
5387
|
return o ? o._inactive ? p(m) : (l = r.parser.defined.includes(
|
5388
|
-
|
5388
|
+
Qe(
|
5389
5389
|
r.sliceSerialize({
|
5390
5390
|
start: o.end,
|
5391
5391
|
end: r.now()
|
@@ -5424,7 +5424,7 @@ function Ks(e, t, n) {
|
|
5424
5424
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
|
5425
5425
|
}
|
5426
5426
|
function i(p) {
|
5427
|
-
return de(p) ?
|
5427
|
+
return de(p) ? lt(e, o)(p) : o(p);
|
5428
5428
|
}
|
5429
5429
|
function o(p) {
|
5430
5430
|
return p === 41 ? c(p) : wo(
|
@@ -5440,7 +5440,7 @@ function Ks(e, t, n) {
|
|
5440
5440
|
)(p);
|
5441
5441
|
}
|
5442
5442
|
function l(p) {
|
5443
|
-
return de(p) ?
|
5443
|
+
return de(p) ? lt(e, s)(p) : c(p);
|
5444
5444
|
}
|
5445
5445
|
function a(p) {
|
5446
5446
|
return n(p);
|
@@ -5456,7 +5456,7 @@ function Ks(e, t, n) {
|
|
5456
5456
|
)(p) : c(p);
|
5457
5457
|
}
|
5458
5458
|
function u(p) {
|
5459
|
-
return de(p) ?
|
5459
|
+
return de(p) ? lt(e, c)(p) : c(p);
|
5460
5460
|
}
|
5461
5461
|
function c(p) {
|
5462
5462
|
return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), t) : n(p);
|
@@ -5478,7 +5478,7 @@ function Js(e, t, n) {
|
|
5478
5478
|
}
|
5479
5479
|
function o(a) {
|
5480
5480
|
return r.parser.defined.includes(
|
5481
|
-
|
5481
|
+
Qe(
|
5482
5482
|
r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
|
5483
5483
|
)
|
5484
5484
|
) ? t(a) : n(a);
|
@@ -5536,7 +5536,7 @@ const Mn = {
|
|
5536
5536
|
function oc(e, t) {
|
5537
5537
|
return n;
|
5538
5538
|
function n(r) {
|
5539
|
-
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"),
|
5539
|
+
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ee(e, t, "linePrefix");
|
5540
5540
|
}
|
5541
5541
|
}
|
5542
5542
|
const Ct = {
|
@@ -5556,7 +5556,7 @@ function lc(e, t, n) {
|
|
5556
5556
|
return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || R(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
|
5557
5557
|
}
|
5558
5558
|
function s(u) {
|
5559
|
-
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), Z(u) ?
|
5559
|
+
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), Z(u) ? ee(e, a, "whitespace")(u) : a(u));
|
5560
5560
|
}
|
5561
5561
|
}
|
5562
5562
|
const fe = {
|
@@ -5618,7 +5618,7 @@ function cc(e, t, n) {
|
|
5618
5618
|
const r = this;
|
5619
5619
|
return r.containerState._closeFlow = void 0, e.check(Yt, i, o);
|
5620
5620
|
function i(a) {
|
5621
|
-
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine,
|
5621
|
+
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, ee(
|
5622
5622
|
e,
|
5623
5623
|
t,
|
5624
5624
|
"listItemIndent",
|
@@ -5629,7 +5629,7 @@ function cc(e, t, n) {
|
|
5629
5629
|
return r.containerState.furtherBlankLines || !Z(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(uc, t, l)(a));
|
5630
5630
|
}
|
5631
5631
|
function l(a) {
|
5632
|
-
return r.containerState._closeFlow = !0, r.interrupt = void 0,
|
5632
|
+
return r.containerState._closeFlow = !0, r.interrupt = void 0, ee(
|
5633
5633
|
e,
|
5634
5634
|
e.attempt(fe, t, n),
|
5635
5635
|
"linePrefix",
|
@@ -5639,7 +5639,7 @@ function cc(e, t, n) {
|
|
5639
5639
|
}
|
5640
5640
|
function pc(e, t, n) {
|
5641
5641
|
const r = this;
|
5642
|
-
return
|
5642
|
+
return ee(
|
5643
5643
|
e,
|
5644
5644
|
i,
|
5645
5645
|
"listItemIndent",
|
@@ -5655,7 +5655,7 @@ function fc(e) {
|
|
5655
5655
|
}
|
5656
5656
|
function dc(e, t, n) {
|
5657
5657
|
const r = this;
|
5658
|
-
return
|
5658
|
+
return ee(
|
5659
5659
|
e,
|
5660
5660
|
i,
|
5661
5661
|
"listItemPrefixWhitespace",
|
@@ -5706,7 +5706,7 @@ function gc(e, t, n) {
|
|
5706
5706
|
return e.enter("setextHeadingLineSequence"), a(u);
|
5707
5707
|
}
|
5708
5708
|
function a(u) {
|
5709
|
-
return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), Z(u) ?
|
5709
|
+
return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), Z(u) ? ee(e, s, "lineSuffix")(u) : s(u));
|
5710
5710
|
}
|
5711
5711
|
function s(u) {
|
5712
5712
|
return u === null || R(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
|
@@ -5724,7 +5724,7 @@ function yc(e) {
|
|
5724
5724
|
e.attempt(
|
5725
5725
|
this.parser.constructs.flowInitial,
|
5726
5726
|
i,
|
5727
|
-
|
5727
|
+
ee(
|
5728
5728
|
e,
|
5729
5729
|
e.attempt(
|
5730
5730
|
this.parser.constructs.flow,
|
@@ -5860,7 +5860,7 @@ function Dc(e, t, n) {
|
|
5860
5860
|
const i = {}, o = [];
|
5861
5861
|
let l = [], a = [];
|
5862
5862
|
const s = {
|
5863
|
-
consume:
|
5863
|
+
consume: v,
|
5864
5864
|
enter: j,
|
5865
5865
|
exit: B,
|
5866
5866
|
attempt: A(_),
|
@@ -5883,7 +5883,7 @@ function Dc(e, t, n) {
|
|
5883
5883
|
let c = t.tokenize.call(u, s);
|
5884
5884
|
return t.resolveAll && o.push(t), u;
|
5885
5885
|
function p(E) {
|
5886
|
-
return l =
|
5886
|
+
return l = Me(l, E), S(), l[l.length - 1] !== null ? [] : (U(t, 0), u.events = Gn(o, u.events, u), u.events);
|
5887
5887
|
}
|
5888
5888
|
function m(E, M) {
|
5889
5889
|
return Tc(f(E), M);
|
@@ -5892,13 +5892,13 @@ function Dc(e, t, n) {
|
|
5892
5892
|
return Nc(l, E);
|
5893
5893
|
}
|
5894
5894
|
function T() {
|
5895
|
-
const { line: E, column: M, offset: N, _index: C, _bufferIndex:
|
5895
|
+
const { line: E, column: M, offset: N, _index: C, _bufferIndex: z } = r;
|
5896
5896
|
return {
|
5897
5897
|
line: E,
|
5898
5898
|
column: M,
|
5899
5899
|
offset: N,
|
5900
5900
|
_index: C,
|
5901
|
-
_bufferIndex:
|
5901
|
+
_bufferIndex: z
|
5902
5902
|
};
|
5903
5903
|
}
|
5904
5904
|
function b(E) {
|
@@ -5918,7 +5918,7 @@ function Dc(e, t, n) {
|
|
5918
5918
|
function w(E) {
|
5919
5919
|
c = c(E);
|
5920
5920
|
}
|
5921
|
-
function
|
5921
|
+
function v(E) {
|
5922
5922
|
R(E) ? (r.line++, r.column = 1, r.offset += E === -3 ? 2 : 1, q()) : E !== -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 = E;
|
5923
5923
|
}
|
5924
5924
|
function j(E, M) {
|
@@ -5937,51 +5937,51 @@ function Dc(e, t, n) {
|
|
5937
5937
|
}
|
5938
5938
|
function A(E, M) {
|
5939
5939
|
return N;
|
5940
|
-
function N(C,
|
5941
|
-
let Y,
|
5942
|
-
return Array.isArray(C) ?
|
5940
|
+
function N(C, z, F) {
|
5941
|
+
let Y, V, X, d;
|
5942
|
+
return Array.isArray(C) ? le(C) : "tokenize" in C ? (
|
5943
5943
|
// @ts-expect-error Looks like a construct.
|
5944
|
-
|
5945
|
-
) :
|
5946
|
-
function
|
5944
|
+
le([C])
|
5945
|
+
) : ne(C);
|
5946
|
+
function ne(W) {
|
5947
5947
|
return se;
|
5948
5948
|
function se(he) {
|
5949
|
-
const
|
5949
|
+
const ve = he !== null && W[he], Ee = he !== null && W.null, Ve = [
|
5950
5950
|
// To do: add more extension tests.
|
5951
5951
|
/* c8 ignore next 2 */
|
5952
|
-
...Array.isArray(
|
5953
|
-
...Array.isArray(
|
5952
|
+
...Array.isArray(ve) ? ve : ve ? [ve] : [],
|
5953
|
+
...Array.isArray(Ee) ? Ee : Ee ? [Ee] : []
|
5954
5954
|
];
|
5955
|
-
return
|
5955
|
+
return le(Ve)(he);
|
5956
5956
|
}
|
5957
5957
|
}
|
5958
|
-
function
|
5959
|
-
return Y =
|
5958
|
+
function le(W) {
|
5959
|
+
return Y = W, V = 0, W.length === 0 ? F : h(W[V]);
|
5960
5960
|
}
|
5961
|
-
function h(
|
5961
|
+
function h(W) {
|
5962
5962
|
return se;
|
5963
5963
|
function se(he) {
|
5964
|
-
return d = Q(),
|
5964
|
+
return d = Q(), X = W, W.partial || (u.currentConstruct = W), W.name && u.parser.constructs.disable.null.includes(W.name) ? te() : W.tokenize.call(
|
5965
5965
|
// If we do have fields, create an object w/ `context` as its
|
5966
5966
|
// prototype.
|
5967
5967
|
// This allows a “live binding”, which is needed for `interrupt`.
|
5968
5968
|
M ? Object.assign(Object.create(u), M) : u,
|
5969
5969
|
s,
|
5970
|
-
|
5971
|
-
|
5970
|
+
re,
|
5971
|
+
te
|
5972
5972
|
)(he);
|
5973
5973
|
}
|
5974
5974
|
}
|
5975
|
-
function
|
5976
|
-
return E(
|
5975
|
+
function re(W) {
|
5976
|
+
return E(X, d), z;
|
5977
5977
|
}
|
5978
|
-
function
|
5979
|
-
return d.restore(),
|
5978
|
+
function te(W) {
|
5979
|
+
return d.restore(), ++V < Y.length ? h(Y[V]) : F;
|
5980
5980
|
}
|
5981
5981
|
}
|
5982
5982
|
}
|
5983
5983
|
function U(E, M) {
|
5984
|
-
E.resolveAll && !o.includes(E) && o.push(E), E.resolve &&
|
5984
|
+
E.resolveAll && !o.includes(E) && o.push(E), E.resolve && ke(
|
5985
5985
|
u.events,
|
5986
5986
|
M,
|
5987
5987
|
u.events.length - M,
|
@@ -5989,13 +5989,13 @@ function Dc(e, t, n) {
|
|
5989
5989
|
), E.resolveTo && (u.events = E.resolveTo(u.events, u));
|
5990
5990
|
}
|
5991
5991
|
function Q() {
|
5992
|
-
const E = T(), M = u.previous, N = u.currentConstruct, C = u.events.length,
|
5992
|
+
const E = T(), M = u.previous, N = u.currentConstruct, C = u.events.length, z = Array.from(a);
|
5993
5993
|
return {
|
5994
5994
|
restore: F,
|
5995
5995
|
from: C
|
5996
5996
|
};
|
5997
5997
|
function F() {
|
5998
|
-
r = E, u.previous = M, u.currentConstruct = N, u.events.length = C, a =
|
5998
|
+
r = E, u.previous = M, u.currentConstruct = N, u.events.length = C, a = z, q();
|
5999
5999
|
}
|
6000
6000
|
}
|
6001
6001
|
function q() {
|
@@ -6073,9 +6073,9 @@ const Ic = {
|
|
6073
6073
|
56: fe,
|
6074
6074
|
57: fe,
|
6075
6075
|
62: yo
|
6076
|
-
}, vc = {
|
6077
|
-
91: ks
|
6078
6076
|
}, kc = {
|
6077
|
+
91: vs
|
6078
|
+
}, vc = {
|
6079
6079
|
[-2]: yn,
|
6080
6080
|
[-1]: yn,
|
6081
6081
|
32: yn
|
@@ -6113,11 +6113,11 @@ const Ic = {
|
|
6113
6113
|
}, zc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6114
6114
|
__proto__: null,
|
6115
6115
|
attentionMarkers: Ac,
|
6116
|
-
contentInitial:
|
6116
|
+
contentInitial: kc,
|
6117
6117
|
disable: Oc,
|
6118
6118
|
document: Ic,
|
6119
6119
|
flow: jc,
|
6120
|
-
flowInitial:
|
6120
|
+
flowInitial: vc,
|
6121
6121
|
insideSpan: Cc,
|
6122
6122
|
string: Ec,
|
6123
6123
|
text: Sc
|
@@ -6186,7 +6186,7 @@ function Fc(e) {
|
|
6186
6186
|
;
|
6187
6187
|
return e;
|
6188
6188
|
}
|
6189
|
-
function
|
6189
|
+
function ko(e, t) {
|
6190
6190
|
const n = Number.parseInt(e, t);
|
6191
6191
|
return (
|
6192
6192
|
// C0 except for HT, LF, FF, CR, space.
|
@@ -6206,11 +6206,11 @@ function Uc(e, t, n) {
|
|
6206
6206
|
return t;
|
6207
6207
|
if (n.charCodeAt(0) === 35) {
|
6208
6208
|
const i = n.charCodeAt(1), o = i === 120 || i === 88;
|
6209
|
-
return
|
6209
|
+
return ko(n.slice(o ? 2 : 1), o ? 16 : 10);
|
6210
6210
|
}
|
6211
6211
|
return Xn(n) || e;
|
6212
6212
|
}
|
6213
|
-
const
|
6213
|
+
const vo = {}.hasOwnProperty, Bc = (
|
6214
6214
|
/**
|
6215
6215
|
* @type {(
|
6216
6216
|
* ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) &
|
@@ -6236,60 +6236,60 @@ function Qc(e) {
|
|
6236
6236
|
transforms: [],
|
6237
6237
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
6238
6238
|
enter: {
|
6239
|
-
autolink: a(
|
6239
|
+
autolink: a(Mt),
|
6240
6240
|
autolinkProtocol: E,
|
6241
6241
|
autolinkEmail: E,
|
6242
|
-
atxHeading: a(
|
6243
|
-
blockQuote: a(
|
6242
|
+
atxHeading: a(gt),
|
6243
|
+
blockQuote: a(Ve),
|
6244
6244
|
characterEscape: E,
|
6245
6245
|
characterReference: E,
|
6246
|
-
codeFenced: a(
|
6246
|
+
codeFenced: a(ht),
|
6247
6247
|
codeFencedFenceInfo: s,
|
6248
6248
|
codeFencedFenceMeta: s,
|
6249
|
-
codeIndented: a(
|
6249
|
+
codeIndented: a(ht, s),
|
6250
6250
|
codeText: a(nn, s),
|
6251
6251
|
codeTextData: E,
|
6252
6252
|
data: E,
|
6253
6253
|
codeFlowValue: E,
|
6254
|
-
definition: a(
|
6254
|
+
definition: a(ze),
|
6255
6255
|
definitionDestinationString: s,
|
6256
6256
|
definitionLabelString: s,
|
6257
6257
|
definitionTitleString: s,
|
6258
6258
|
emphasis: a(rn),
|
6259
|
-
hardBreakEscape: a(
|
6260
|
-
hardBreakTrailing: a(
|
6261
|
-
htmlFlow: a(
|
6259
|
+
hardBreakEscape: a(mt),
|
6260
|
+
hardBreakTrailing: a(mt),
|
6261
|
+
htmlFlow: a(yt, s),
|
6262
6262
|
htmlFlowData: E,
|
6263
|
-
htmlText: a(
|
6263
|
+
htmlText: a(yt, s),
|
6264
6264
|
htmlTextData: E,
|
6265
6265
|
image: a(on),
|
6266
6266
|
label: s,
|
6267
|
-
link: a(
|
6268
|
-
listItem: a(
|
6267
|
+
link: a(Mt),
|
6268
|
+
listItem: a(xt),
|
6269
6269
|
listItemValue: T,
|
6270
|
-
listOrdered: a(
|
6271
|
-
listUnordered: a(
|
6272
|
-
paragraph: a(
|
6273
|
-
reference:
|
6270
|
+
listOrdered: a(We, f),
|
6271
|
+
listUnordered: a(We),
|
6272
|
+
paragraph: a(ln),
|
6273
|
+
reference: te,
|
6274
6274
|
referenceString: s,
|
6275
6275
|
resourceDestinationString: s,
|
6276
6276
|
resourceTitleString: s,
|
6277
|
-
setextHeading: a(
|
6278
|
-
strong: a(
|
6279
|
-
thematicBreak: a(
|
6277
|
+
setextHeading: a(gt),
|
6278
|
+
strong: a(an),
|
6279
|
+
thematicBreak: a(L)
|
6280
6280
|
},
|
6281
6281
|
exit: {
|
6282
6282
|
atxHeading: c(),
|
6283
6283
|
atxHeadingSequence: A,
|
6284
6284
|
autolink: c(),
|
6285
|
-
autolinkEmail:
|
6286
|
-
autolinkProtocol:
|
6285
|
+
autolinkEmail: Ee,
|
6286
|
+
autolinkProtocol: ve,
|
6287
6287
|
blockQuote: c(),
|
6288
6288
|
characterEscapeValue: M,
|
6289
6289
|
characterReferenceMarkerHexadecimal: se,
|
6290
6290
|
characterReferenceMarkerNumeric: se,
|
6291
6291
|
characterReferenceValue: he,
|
6292
|
-
codeFenced: c(
|
6292
|
+
codeFenced: c(v),
|
6293
6293
|
codeFencedFence: w,
|
6294
6294
|
codeFencedFenceInfo: b,
|
6295
6295
|
codeFencedFenceMeta: S,
|
@@ -6305,23 +6305,23 @@ function Qc(e) {
|
|
6305
6305
|
emphasis: c(),
|
6306
6306
|
hardBreakEscape: c(C),
|
6307
6307
|
hardBreakTrailing: c(C),
|
6308
|
-
htmlFlow: c(
|
6308
|
+
htmlFlow: c(z),
|
6309
6309
|
htmlFlowData: M,
|
6310
6310
|
htmlText: c(F),
|
6311
6311
|
htmlTextData: M,
|
6312
|
-
image: c(
|
6313
|
-
label:
|
6312
|
+
image: c(X),
|
6313
|
+
label: ne,
|
6314
6314
|
labelText: d,
|
6315
6315
|
lineEnding: N,
|
6316
|
-
link: c(
|
6316
|
+
link: c(V),
|
6317
6317
|
listItem: c(),
|
6318
6318
|
listOrdered: c(),
|
6319
6319
|
listUnordered: c(),
|
6320
6320
|
paragraph: c(),
|
6321
|
-
referenceString:
|
6322
|
-
resourceDestinationString:
|
6321
|
+
referenceString: W,
|
6322
|
+
resourceDestinationString: le,
|
6323
6323
|
resourceTitleString: h,
|
6324
|
-
resource:
|
6324
|
+
resource: re,
|
6325
6325
|
setextHeading: c(q),
|
6326
6326
|
setextHeadingLineSequence: Q,
|
6327
6327
|
setextHeadingText: U,
|
@@ -6337,7 +6337,7 @@ function Qc(e) {
|
|
6337
6337
|
type: "root",
|
6338
6338
|
children: []
|
6339
6339
|
};
|
6340
|
-
const
|
6340
|
+
const O = {
|
6341
6341
|
stack: [I],
|
6342
6342
|
tokenStack: [],
|
6343
6343
|
config: t,
|
@@ -6347,82 +6347,82 @@ function Qc(e) {
|
|
6347
6347
|
resume: m,
|
6348
6348
|
setData: o,
|
6349
6349
|
getData: l
|
6350
|
-
},
|
6351
|
-
let
|
6352
|
-
for (; ++
|
6353
|
-
if (x[
|
6354
|
-
if (x[
|
6355
|
-
|
6350
|
+
}, $ = [];
|
6351
|
+
let K = -1;
|
6352
|
+
for (; ++K < x.length; )
|
6353
|
+
if (x[K][1].type === "listOrdered" || x[K][1].type === "listUnordered")
|
6354
|
+
if (x[K][0] === "enter")
|
6355
|
+
$.push(K);
|
6356
6356
|
else {
|
6357
|
-
const
|
6358
|
-
|
6357
|
+
const ce = $.pop();
|
6358
|
+
K = i(x, ce, K);
|
6359
6359
|
}
|
6360
|
-
for (
|
6361
|
-
const
|
6362
|
-
|
6360
|
+
for (K = -1; ++K < x.length; ) {
|
6361
|
+
const ce = t[x[K][0]];
|
6362
|
+
vo.call(ce, x[K][1].type) && ce[x[K][1].type].call(
|
6363
6363
|
Object.assign(
|
6364
6364
|
{
|
6365
|
-
sliceSerialize: x[
|
6365
|
+
sliceSerialize: x[K][2].sliceSerialize
|
6366
6366
|
},
|
6367
|
-
|
6367
|
+
O
|
6368
6368
|
),
|
6369
|
-
x[
|
6369
|
+
x[K][1]
|
6370
6370
|
);
|
6371
6371
|
}
|
6372
|
-
if (
|
6373
|
-
const
|
6374
|
-
(
|
6372
|
+
if (O.tokenStack.length > 0) {
|
6373
|
+
const ce = O.tokenStack[O.tokenStack.length - 1];
|
6374
|
+
(ce[1] || ui).call(O, void 0, ce[0]);
|
6375
6375
|
}
|
6376
6376
|
for (I.position = {
|
6377
|
-
start:
|
6377
|
+
start: Se(
|
6378
6378
|
x.length > 0 ? x[0][1].start : {
|
6379
6379
|
line: 1,
|
6380
6380
|
column: 1,
|
6381
6381
|
offset: 0
|
6382
6382
|
}
|
6383
6383
|
),
|
6384
|
-
end:
|
6384
|
+
end: Se(
|
6385
6385
|
x.length > 0 ? x[x.length - 2][1].end : {
|
6386
6386
|
line: 1,
|
6387
6387
|
column: 1,
|
6388
6388
|
offset: 0
|
6389
6389
|
}
|
6390
6390
|
)
|
6391
|
-
},
|
6392
|
-
I = t.transforms[
|
6391
|
+
}, K = -1; ++K < t.transforms.length; )
|
6392
|
+
I = t.transforms[K](I) || I;
|
6393
6393
|
return I;
|
6394
6394
|
}
|
6395
|
-
function i(x, I,
|
6396
|
-
let
|
6397
|
-
for (;
|
6398
|
-
const
|
6399
|
-
if (
|
6400
|
-
if (
|
6401
|
-
let un =
|
6402
|
-
for (
|
6403
|
-
const
|
6404
|
-
if (
|
6405
|
-
if (
|
6395
|
+
function i(x, I, O) {
|
6396
|
+
let $ = I - 1, K = -1, ce = !1, Ne, ae, Ze, Ge;
|
6397
|
+
for (; ++$ <= O; ) {
|
6398
|
+
const ie = x[$];
|
6399
|
+
if (ie[1].type === "listUnordered" || ie[1].type === "listOrdered" || ie[1].type === "blockQuote" ? (ie[0] === "enter" ? K++ : K--, Ge = void 0) : ie[1].type === "lineEndingBlank" ? ie[0] === "enter" && (Ne && !Ge && !K && !Ze && (Ze = $), Ge = void 0) : ie[1].type === "linePrefix" || ie[1].type === "listItemValue" || ie[1].type === "listItemMarker" || ie[1].type === "listItemPrefix" || ie[1].type === "listItemPrefixWhitespace" || (Ge = void 0), !K && ie[0] === "enter" && ie[1].type === "listItemPrefix" || K === -1 && ie[0] === "exit" && (ie[1].type === "listUnordered" || ie[1].type === "listOrdered")) {
|
6400
|
+
if (Ne) {
|
6401
|
+
let un = $;
|
6402
|
+
for (ae = void 0; un--; ) {
|
6403
|
+
const je = x[un];
|
6404
|
+
if (je[1].type === "lineEnding" || je[1].type === "lineEndingBlank") {
|
6405
|
+
if (je[0] === "exit")
|
6406
6406
|
continue;
|
6407
|
-
|
6408
|
-
} else if (!(
|
6407
|
+
ae && (x[ae][1].type = "lineEndingBlank", ce = !0), je[1].type = "lineEnding", ae = un;
|
6408
|
+
} else if (!(je[1].type === "linePrefix" || je[1].type === "blockQuotePrefix" || je[1].type === "blockQuotePrefixWhitespace" || je[1].type === "blockQuoteMarker" || je[1].type === "listItemIndent"))
|
6409
6409
|
break;
|
6410
6410
|
}
|
6411
|
-
|
6411
|
+
Ze && (!ae || Ze < ae) && (Ne._spread = !0), Ne.end = Object.assign(
|
6412
6412
|
{},
|
6413
|
-
|
6414
|
-
), x.splice(
|
6413
|
+
ae ? x[ae][1].start : ie[1].end
|
6414
|
+
), x.splice(ae || $, 0, ["exit", Ne, ie[2]]), $++, O++;
|
6415
6415
|
}
|
6416
|
-
|
6416
|
+
ie[1].type === "listItemPrefix" && (Ne = {
|
6417
6417
|
type: "listItem",
|
6418
6418
|
_spread: !1,
|
6419
|
-
start: Object.assign({},
|
6419
|
+
start: Object.assign({}, ie[1].start),
|
6420
6420
|
// @ts-expect-error: we’ll add `end` in a second.
|
6421
6421
|
end: void 0
|
6422
|
-
}, x.splice(
|
6422
|
+
}, x.splice($, 0, ["enter", Ne, ie[2]]), $++, O++, Ze = void 0, Ge = !0);
|
6423
6423
|
}
|
6424
6424
|
}
|
6425
|
-
return x[I][1]._spread =
|
6425
|
+
return x[I][1]._spread = ce, O;
|
6426
6426
|
}
|
6427
6427
|
function o(x, I) {
|
6428
6428
|
n[x] = I;
|
@@ -6431,9 +6431,9 @@ function Qc(e) {
|
|
6431
6431
|
return n[x];
|
6432
6432
|
}
|
6433
6433
|
function a(x, I) {
|
6434
|
-
return
|
6435
|
-
function
|
6436
|
-
u.call(this, x(
|
6434
|
+
return O;
|
6435
|
+
function O($) {
|
6436
|
+
u.call(this, x($), $), I && I.call(this, $);
|
6437
6437
|
}
|
6438
6438
|
}
|
6439
6439
|
function s() {
|
@@ -6442,29 +6442,29 @@ function Qc(e) {
|
|
6442
6442
|
children: []
|
6443
6443
|
});
|
6444
6444
|
}
|
6445
|
-
function u(x, I,
|
6446
|
-
return this.stack[this.stack.length - 1].children.push(x), this.stack.push(x), this.tokenStack.push([I,
|
6447
|
-
start:
|
6445
|
+
function u(x, I, O) {
|
6446
|
+
return this.stack[this.stack.length - 1].children.push(x), this.stack.push(x), this.tokenStack.push([I, O]), x.position = {
|
6447
|
+
start: Se(I.start)
|
6448
6448
|
}, x;
|
6449
6449
|
}
|
6450
6450
|
function c(x) {
|
6451
6451
|
return I;
|
6452
|
-
function I(
|
6453
|
-
x && x.call(this,
|
6452
|
+
function I(O) {
|
6453
|
+
x && x.call(this, O), p.call(this, O);
|
6454
6454
|
}
|
6455
6455
|
}
|
6456
6456
|
function p(x, I) {
|
6457
|
-
const
|
6458
|
-
if (
|
6459
|
-
|
6457
|
+
const O = this.stack.pop(), $ = this.tokenStack.pop();
|
6458
|
+
if ($)
|
6459
|
+
$[0].type !== x.type && (I ? I.call(this, x, $[0]) : ($[1] || ui).call(this, x, $[0]));
|
6460
6460
|
else
|
6461
6461
|
throw new Error(
|
6462
|
-
"Cannot close `" + x.type + "` (" +
|
6462
|
+
"Cannot close `" + x.type + "` (" + ot({
|
6463
6463
|
start: x.start,
|
6464
6464
|
end: x.end
|
6465
6465
|
}) + "): it’s not open"
|
6466
6466
|
);
|
6467
|
-
return
|
6467
|
+
return O.position.end = Se(x.end), O;
|
6468
6468
|
}
|
6469
6469
|
function m() {
|
6470
6470
|
return Uu(this.stack.pop());
|
@@ -6489,7 +6489,7 @@ function Qc(e) {
|
|
6489
6489
|
function w() {
|
6490
6490
|
l("flowCodeInside") || (this.buffer(), o("flowCodeInside", !0));
|
6491
6491
|
}
|
6492
|
-
function
|
6492
|
+
function v() {
|
6493
6493
|
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6494
6494
|
I.value = x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
|
6495
6495
|
}
|
@@ -6498,8 +6498,8 @@ function Qc(e) {
|
|
6498
6498
|
I.value = x.replace(/(\r?\n|\r)$/g, "");
|
6499
6499
|
}
|
6500
6500
|
function B(x) {
|
6501
|
-
const I = this.resume(),
|
6502
|
-
|
6501
|
+
const I = this.resume(), O = this.stack[this.stack.length - 1];
|
6502
|
+
O.label = I, O.identifier = Qe(
|
6503
6503
|
this.sliceSerialize(x)
|
6504
6504
|
).toLowerCase();
|
6505
6505
|
}
|
@@ -6514,8 +6514,8 @@ function Qc(e) {
|
|
6514
6514
|
function A(x) {
|
6515
6515
|
const I = this.stack[this.stack.length - 1];
|
6516
6516
|
if (!I.depth) {
|
6517
|
-
const
|
6518
|
-
I.depth =
|
6517
|
+
const O = this.sliceSerialize(x).length;
|
6518
|
+
I.depth = O;
|
6519
6519
|
}
|
6520
6520
|
}
|
6521
6521
|
function U() {
|
@@ -6530,20 +6530,20 @@ function Qc(e) {
|
|
6530
6530
|
}
|
6531
6531
|
function E(x) {
|
6532
6532
|
const I = this.stack[this.stack.length - 1];
|
6533
|
-
let
|
6534
|
-
(!
|
6535
|
-
start:
|
6536
|
-
}, I.children.push(
|
6533
|
+
let O = I.children[I.children.length - 1];
|
6534
|
+
(!O || O.type !== "text") && (O = bt(), O.position = {
|
6535
|
+
start: Se(x.start)
|
6536
|
+
}, I.children.push(O)), this.stack.push(O);
|
6537
6537
|
}
|
6538
6538
|
function M(x) {
|
6539
6539
|
const I = this.stack.pop();
|
6540
|
-
I.value += this.sliceSerialize(x), I.position.end =
|
6540
|
+
I.value += this.sliceSerialize(x), I.position.end = Se(x.end);
|
6541
6541
|
}
|
6542
6542
|
function N(x) {
|
6543
6543
|
const I = this.stack[this.stack.length - 1];
|
6544
6544
|
if (l("atHardBreak")) {
|
6545
|
-
const
|
6546
|
-
|
6545
|
+
const O = I.children[I.children.length - 1];
|
6546
|
+
O.position.end = Se(x.end), o("atHardBreak");
|
6547
6547
|
return;
|
6548
6548
|
}
|
6549
6549
|
!l("setextHeadingSlurpLineEnding") && t.canContainEols.includes(I.type) && (E.call(this, x), M.call(this, x));
|
@@ -6551,7 +6551,7 @@ function Qc(e) {
|
|
6551
6551
|
function C() {
|
6552
6552
|
o("atHardBreak", !0);
|
6553
6553
|
}
|
6554
|
-
function
|
6554
|
+
function z() {
|
6555
6555
|
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6556
6556
|
I.value = x;
|
6557
6557
|
}
|
@@ -6563,7 +6563,7 @@ function Qc(e) {
|
|
6563
6563
|
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6564
6564
|
I.value = x;
|
6565
6565
|
}
|
6566
|
-
function
|
6566
|
+
function V() {
|
6567
6567
|
const x = this.stack[this.stack.length - 1];
|
6568
6568
|
if (l("inReference")) {
|
6569
6569
|
const I = l("referenceType") || "shortcut";
|
@@ -6572,7 +6572,7 @@ function Qc(e) {
|
|
6572
6572
|
delete x.identifier, delete x.label;
|
6573
6573
|
o("referenceType");
|
6574
6574
|
}
|
6575
|
-
function
|
6575
|
+
function X() {
|
6576
6576
|
const x = this.stack[this.stack.length - 1];
|
6577
6577
|
if (l("inReference")) {
|
6578
6578
|
const I = l("referenceType") || "shortcut";
|
@@ -6582,18 +6582,18 @@ function Qc(e) {
|
|
6582
6582
|
o("referenceType");
|
6583
6583
|
}
|
6584
6584
|
function d(x) {
|
6585
|
-
const I = this.sliceSerialize(x),
|
6586
|
-
|
6585
|
+
const I = this.sliceSerialize(x), O = this.stack[this.stack.length - 2];
|
6586
|
+
O.label = _c(I), O.identifier = Qe(I).toLowerCase();
|
6587
6587
|
}
|
6588
|
-
function
|
6589
|
-
const x = this.stack[this.stack.length - 1], I = this.resume(),
|
6590
|
-
if (o("inReference", !0),
|
6591
|
-
const
|
6592
|
-
|
6588
|
+
function ne() {
|
6589
|
+
const x = this.stack[this.stack.length - 1], I = this.resume(), O = this.stack[this.stack.length - 1];
|
6590
|
+
if (o("inReference", !0), O.type === "link") {
|
6591
|
+
const $ = x.children;
|
6592
|
+
O.children = $;
|
6593
6593
|
} else
|
6594
|
-
|
6594
|
+
O.alt = I;
|
6595
6595
|
}
|
6596
|
-
function
|
6596
|
+
function le() {
|
6597
6597
|
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6598
6598
|
I.url = x;
|
6599
6599
|
}
|
@@ -6601,15 +6601,15 @@ function Qc(e) {
|
|
6601
6601
|
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6602
6602
|
I.title = x;
|
6603
6603
|
}
|
6604
|
-
function
|
6604
|
+
function re() {
|
6605
6605
|
o("inReference");
|
6606
6606
|
}
|
6607
|
-
function
|
6607
|
+
function te() {
|
6608
6608
|
o("referenceType", "collapsed");
|
6609
6609
|
}
|
6610
|
-
function
|
6611
|
-
const I = this.resume(),
|
6612
|
-
|
6610
|
+
function W(x) {
|
6611
|
+
const I = this.resume(), O = this.stack[this.stack.length - 1];
|
6612
|
+
O.label = I, O.identifier = Qe(
|
6613
6613
|
this.sliceSerialize(x)
|
6614
6614
|
).toLowerCase(), o("referenceType", "full");
|
6615
6615
|
}
|
@@ -6617,32 +6617,32 @@ function Qc(e) {
|
|
6617
6617
|
o("characterReferenceType", x.type);
|
6618
6618
|
}
|
6619
6619
|
function he(x) {
|
6620
|
-
const I = this.sliceSerialize(x),
|
6621
|
-
let
|
6622
|
-
|
6620
|
+
const I = this.sliceSerialize(x), O = l("characterReferenceType");
|
6621
|
+
let $;
|
6622
|
+
O ? ($ = ko(
|
6623
6623
|
I,
|
6624
|
-
|
6625
|
-
), o("characterReferenceType")) :
|
6626
|
-
const
|
6627
|
-
|
6624
|
+
O === "characterReferenceMarkerNumeric" ? 10 : 16
|
6625
|
+
), o("characterReferenceType")) : $ = Xn(I);
|
6626
|
+
const K = this.stack.pop();
|
6627
|
+
K.value += $, K.position.end = Se(x.end);
|
6628
6628
|
}
|
6629
|
-
function
|
6629
|
+
function ve(x) {
|
6630
6630
|
M.call(this, x);
|
6631
6631
|
const I = this.stack[this.stack.length - 1];
|
6632
6632
|
I.url = this.sliceSerialize(x);
|
6633
6633
|
}
|
6634
|
-
function
|
6634
|
+
function Ee(x) {
|
6635
6635
|
M.call(this, x);
|
6636
6636
|
const I = this.stack[this.stack.length - 1];
|
6637
6637
|
I.url = "mailto:" + this.sliceSerialize(x);
|
6638
6638
|
}
|
6639
|
-
function
|
6639
|
+
function Ve() {
|
6640
6640
|
return {
|
6641
6641
|
type: "blockquote",
|
6642
6642
|
children: []
|
6643
6643
|
};
|
6644
6644
|
}
|
6645
|
-
function
|
6645
|
+
function ht() {
|
6646
6646
|
return {
|
6647
6647
|
type: "code",
|
6648
6648
|
lang: null,
|
@@ -6656,7 +6656,7 @@ function Qc(e) {
|
|
6656
6656
|
value: ""
|
6657
6657
|
};
|
6658
6658
|
}
|
6659
|
-
function
|
6659
|
+
function ze() {
|
6660
6660
|
return {
|
6661
6661
|
type: "definition",
|
6662
6662
|
identifier: "",
|
@@ -6671,19 +6671,19 @@ function Qc(e) {
|
|
6671
6671
|
children: []
|
6672
6672
|
};
|
6673
6673
|
}
|
6674
|
-
function
|
6674
|
+
function gt() {
|
6675
6675
|
return {
|
6676
6676
|
type: "heading",
|
6677
6677
|
depth: void 0,
|
6678
6678
|
children: []
|
6679
6679
|
};
|
6680
6680
|
}
|
6681
|
-
function
|
6681
|
+
function mt() {
|
6682
6682
|
return {
|
6683
6683
|
type: "break"
|
6684
6684
|
};
|
6685
6685
|
}
|
6686
|
-
function
|
6686
|
+
function yt() {
|
6687
6687
|
return {
|
6688
6688
|
type: "html",
|
6689
6689
|
value: ""
|
@@ -6697,7 +6697,7 @@ function Qc(e) {
|
|
6697
6697
|
alt: null
|
6698
6698
|
};
|
6699
6699
|
}
|
6700
|
-
function
|
6700
|
+
function Mt() {
|
6701
6701
|
return {
|
6702
6702
|
type: "link",
|
6703
6703
|
title: null,
|
@@ -6705,7 +6705,7 @@ function Qc(e) {
|
|
6705
6705
|
children: []
|
6706
6706
|
};
|
6707
6707
|
}
|
6708
|
-
function
|
6708
|
+
function We(x) {
|
6709
6709
|
return {
|
6710
6710
|
type: "list",
|
6711
6711
|
ordered: x.type === "listOrdered",
|
@@ -6714,7 +6714,7 @@ function Qc(e) {
|
|
6714
6714
|
children: []
|
6715
6715
|
};
|
6716
6716
|
}
|
6717
|
-
function
|
6717
|
+
function xt(x) {
|
6718
6718
|
return {
|
6719
6719
|
type: "listItem",
|
6720
6720
|
spread: x._spread,
|
@@ -6722,31 +6722,31 @@ function Qc(e) {
|
|
6722
6722
|
children: []
|
6723
6723
|
};
|
6724
6724
|
}
|
6725
|
-
function
|
6725
|
+
function ln() {
|
6726
6726
|
return {
|
6727
6727
|
type: "paragraph",
|
6728
6728
|
children: []
|
6729
6729
|
};
|
6730
6730
|
}
|
6731
|
-
function
|
6731
|
+
function an() {
|
6732
6732
|
return {
|
6733
6733
|
type: "strong",
|
6734
6734
|
children: []
|
6735
6735
|
};
|
6736
6736
|
}
|
6737
|
-
function
|
6737
|
+
function bt() {
|
6738
6738
|
return {
|
6739
6739
|
type: "text",
|
6740
6740
|
value: ""
|
6741
6741
|
};
|
6742
6742
|
}
|
6743
|
-
function
|
6743
|
+
function L() {
|
6744
6744
|
return {
|
6745
6745
|
type: "thematicBreak"
|
6746
6746
|
};
|
6747
6747
|
}
|
6748
6748
|
}
|
6749
|
-
function
|
6749
|
+
function Se(e) {
|
6750
6750
|
return {
|
6751
6751
|
line: e.line,
|
6752
6752
|
column: e.column,
|
@@ -6763,7 +6763,7 @@ function jo(e, t) {
|
|
6763
6763
|
function Yc(e, t) {
|
6764
6764
|
let n;
|
6765
6765
|
for (n in t)
|
6766
|
-
if (
|
6766
|
+
if (vo.call(t, n)) {
|
6767
6767
|
if (n === "canContainEols") {
|
6768
6768
|
const r = t[n];
|
6769
6769
|
r && e[n].push(...r);
|
@@ -6778,15 +6778,15 @@ function Yc(e, t) {
|
|
6778
6778
|
}
|
6779
6779
|
function ui(e, t) {
|
6780
6780
|
throw e ? new Error(
|
6781
|
-
"Cannot close `" + e.type + "` (" +
|
6781
|
+
"Cannot close `" + e.type + "` (" + ot({
|
6782
6782
|
start: e.start,
|
6783
6783
|
end: e.end
|
6784
|
-
}) + "): a different token (`" + t.type + "`, " +
|
6784
|
+
}) + "): a different token (`" + t.type + "`, " + ot({
|
6785
6785
|
start: t.start,
|
6786
6786
|
end: t.end
|
6787
6787
|
}) + ") is open"
|
6788
6788
|
) : new Error(
|
6789
|
-
"Cannot close document, a token (`" + t.type + "`, " +
|
6789
|
+
"Cannot close document, a token (`" + t.type + "`, " + ot({
|
6790
6790
|
start: t.start,
|
6791
6791
|
end: t.end
|
6792
6792
|
}) + ") is still open"
|
@@ -6854,13 +6854,13 @@ function Zc(e, t) {
|
|
6854
6854
|
};
|
6855
6855
|
return e.patch(t, n), e.applyData(t, n);
|
6856
6856
|
}
|
6857
|
-
function
|
6857
|
+
function qe(e) {
|
6858
6858
|
const t = [];
|
6859
6859
|
let n = -1, r = 0, i = 0;
|
6860
6860
|
for (; ++n < e.length; ) {
|
6861
6861
|
const o = e.charCodeAt(n);
|
6862
6862
|
let l = "";
|
6863
|
-
if (o === 37 &&
|
6863
|
+
if (o === 37 && me(e.charCodeAt(n + 1)) && me(e.charCodeAt(n + 2)))
|
6864
6864
|
i = 2;
|
6865
6865
|
else if (o < 128)
|
6866
6866
|
/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (l = String.fromCharCode(o));
|
@@ -6874,7 +6874,7 @@ function $e(e) {
|
|
6874
6874
|
return t.join("") + e.slice(r);
|
6875
6875
|
}
|
6876
6876
|
function Eo(e, t) {
|
6877
|
-
const n = String(t.identifier).toUpperCase(), r =
|
6877
|
+
const n = String(t.identifier).toUpperCase(), r = qe(n.toLowerCase()), i = e.footnoteOrder.indexOf(n);
|
6878
6878
|
let o;
|
6879
6879
|
i === -1 ? (e.footnoteOrder.push(n), e.footnoteCounts[n] = 1, o = e.footnoteOrder.length) : (e.footnoteCounts[n]++, o = i + 1);
|
6880
6880
|
const l = e.footnoteCounts[n], a = {
|
@@ -6944,13 +6944,13 @@ function Jc(e, t) {
|
|
6944
6944
|
const n = e.definition(t.identifier);
|
6945
6945
|
if (!n)
|
6946
6946
|
return So(e, t);
|
6947
|
-
const r = { src:
|
6947
|
+
const r = { src: qe(n.url || ""), alt: t.alt };
|
6948
6948
|
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
6949
6949
|
const i = { type: "element", tagName: "img", properties: r, children: [] };
|
6950
6950
|
return e.patch(t, i), e.applyData(t, i);
|
6951
6951
|
}
|
6952
6952
|
function ep(e, t) {
|
6953
|
-
const n = { src:
|
6953
|
+
const n = { src: qe(t.url) };
|
6954
6954
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
6955
6955
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
6956
6956
|
return e.patch(t, r), e.applyData(t, r);
|
@@ -6970,7 +6970,7 @@ function np(e, t) {
|
|
6970
6970
|
const n = e.definition(t.identifier);
|
6971
6971
|
if (!n)
|
6972
6972
|
return So(e, t);
|
6973
|
-
const r = { href:
|
6973
|
+
const r = { href: qe(n.url || "") };
|
6974
6974
|
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
6975
6975
|
const i = {
|
6976
6976
|
type: "element",
|
@@ -6981,7 +6981,7 @@ function np(e, t) {
|
|
6981
6981
|
return e.patch(t, i), e.applyData(t, i);
|
6982
6982
|
}
|
6983
6983
|
function rp(e, t) {
|
6984
|
-
const n = { href:
|
6984
|
+
const n = { href: qe(t.url) };
|
6985
6985
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
6986
6986
|
const r = {
|
6987
6987
|
type: "element",
|
@@ -7355,11 +7355,11 @@ const tr = (
|
|
7355
7355
|
}
|
7356
7356
|
}
|
7357
7357
|
);
|
7358
|
-
function
|
7358
|
+
function kp(e) {
|
7359
7359
|
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;
|
7360
7360
|
}
|
7361
7361
|
const di = {}.hasOwnProperty;
|
7362
|
-
function
|
7362
|
+
function vp(e) {
|
7363
7363
|
const t = /* @__PURE__ */ Object.create(null);
|
7364
7364
|
if (!e || !e.type)
|
7365
7365
|
throw new Error("mdast-util-definitions expected node");
|
@@ -7380,7 +7380,7 @@ function jp(e, t) {
|
|
7380
7380
|
const n = t || {}, r = n.allowDangerousHtml || !1, i = {};
|
7381
7381
|
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 || {
|
7382
7382
|
className: ["sr-only"]
|
7383
|
-
}, l.footnoteBackLabel = n.footnoteBackLabel || "Back to content", l.unknownHandler = n.unknownHandler, l.passThrough = n.passThrough, l.handlers = { ...yp, ...n.handlers }, l.definition =
|
7383
|
+
}, l.footnoteBackLabel = n.footnoteBackLabel || "Back to content", l.unknownHandler = n.unknownHandler, l.passThrough = n.passThrough, l.handlers = { ...yp, ...n.handlers }, l.definition = vp(e), l.footnoteById = i, l.footnoteOrder = [], l.footnoteCounts = {}, l.patch = Ep, l.applyData = Sp, l.one = a, l.all = s, l.wrap = Ap, l.augment = o, tr(e, "footnoteDefinition", (u) => {
|
7384
7384
|
const c = String(u.identifier).toUpperCase();
|
7385
7385
|
Rt.call(i, c) || (i[c] = u);
|
7386
7386
|
}), l;
|
@@ -7396,7 +7396,7 @@ function jp(e, t) {
|
|
7396
7396
|
}
|
7397
7397
|
if (u) {
|
7398
7398
|
const p = "type" in u ? u : { position: u };
|
7399
|
-
|
7399
|
+
kp(p) || (c.position = { start: Jn(p), end: er(p) });
|
7400
7400
|
}
|
7401
7401
|
return c;
|
7402
7402
|
}
|
@@ -7481,7 +7481,7 @@ function Op(e) {
|
|
7481
7481
|
const r = e.footnoteById[e.footnoteOrder[n]];
|
7482
7482
|
if (!r)
|
7483
7483
|
continue;
|
7484
|
-
const i = e.all(r), o = String(r.identifier).toUpperCase(), l =
|
7484
|
+
const i = e.all(r), o = String(r.identifier).toUpperCase(), l = qe(o.toLowerCase());
|
7485
7485
|
let a = 0;
|
7486
7486
|
const s = [];
|
7487
7487
|
for (; ++a <= e.footnoteCounts[o]; ) {
|
@@ -7566,7 +7566,7 @@ function Pp(e, t) {
|
|
7566
7566
|
function Fp(e) {
|
7567
7567
|
return (t) => Lo(t, e);
|
7568
7568
|
}
|
7569
|
-
class
|
7569
|
+
class dt {
|
7570
7570
|
/**
|
7571
7571
|
* @constructor
|
7572
7572
|
* @param {Properties} property
|
@@ -7577,20 +7577,20 @@ class gt {
|
|
7577
7577
|
this.property = t, this.normal = n, r && (this.space = r);
|
7578
7578
|
}
|
7579
7579
|
}
|
7580
|
-
|
7581
|
-
|
7582
|
-
|
7580
|
+
dt.prototype.property = {};
|
7581
|
+
dt.prototype.normal = {};
|
7582
|
+
dt.prototype.space = null;
|
7583
7583
|
function Po(e, t) {
|
7584
7584
|
const n = {}, r = {};
|
7585
7585
|
let i = -1;
|
7586
7586
|
for (; ++i < e.length; )
|
7587
7587
|
Object.assign(n, e[i].property), Object.assign(r, e[i].normal);
|
7588
|
-
return new
|
7588
|
+
return new dt(n, r, t);
|
7589
7589
|
}
|
7590
7590
|
function Fn(e) {
|
7591
7591
|
return e.toLowerCase();
|
7592
7592
|
}
|
7593
|
-
class
|
7593
|
+
class be {
|
7594
7594
|
/**
|
7595
7595
|
* @constructor
|
7596
7596
|
* @param {string} property
|
@@ -7600,32 +7600,32 @@ class we {
|
|
7600
7600
|
this.property = t, this.attribute = n;
|
7601
7601
|
}
|
7602
7602
|
}
|
7603
|
-
|
7604
|
-
|
7605
|
-
|
7606
|
-
|
7607
|
-
|
7608
|
-
|
7609
|
-
|
7610
|
-
|
7611
|
-
|
7612
|
-
|
7603
|
+
be.prototype.space = null;
|
7604
|
+
be.prototype.boolean = !1;
|
7605
|
+
be.prototype.booleanish = !1;
|
7606
|
+
be.prototype.overloadedBoolean = !1;
|
7607
|
+
be.prototype.number = !1;
|
7608
|
+
be.prototype.commaSeparated = !1;
|
7609
|
+
be.prototype.spaceSeparated = !1;
|
7610
|
+
be.prototype.commaOrSpaceSeparated = !1;
|
7611
|
+
be.prototype.mustUseProperty = !1;
|
7612
|
+
be.prototype.defined = !1;
|
7613
7613
|
let Rp = 0;
|
7614
|
-
const H =
|
7615
|
-
function
|
7614
|
+
const H = Be(), oe = Be(), Fo = Be(), k = Be(), J = Be(), Ye = Be(), ge = Be();
|
7615
|
+
function Be() {
|
7616
7616
|
return 2 ** ++Rp;
|
7617
7617
|
}
|
7618
7618
|
const Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
7619
7619
|
__proto__: null,
|
7620
7620
|
boolean: H,
|
7621
|
-
booleanish:
|
7622
|
-
commaOrSpaceSeparated:
|
7623
|
-
commaSeparated:
|
7624
|
-
number:
|
7621
|
+
booleanish: oe,
|
7622
|
+
commaOrSpaceSeparated: ge,
|
7623
|
+
commaSeparated: Ye,
|
7624
|
+
number: k,
|
7625
7625
|
overloadedBoolean: Fo,
|
7626
|
-
spaceSeparated:
|
7626
|
+
spaceSeparated: J
|
7627
7627
|
}, Symbol.toStringTag, { value: "Module" })), xn = Object.keys(Rn);
|
7628
|
-
class rr extends
|
7628
|
+
class rr extends be {
|
7629
7629
|
/**
|
7630
7630
|
* @constructor
|
7631
7631
|
* @param {string} property
|
@@ -7647,7 +7647,7 @@ function gi(e, t, n) {
|
|
7647
7647
|
n && (e[t] = n);
|
7648
7648
|
}
|
7649
7649
|
const _p = {}.hasOwnProperty;
|
7650
|
-
function
|
7650
|
+
function $e(e) {
|
7651
7651
|
const t = {}, n = {};
|
7652
7652
|
let r;
|
7653
7653
|
for (r in e.properties)
|
@@ -7660,9 +7660,9 @@ function Ve(e) {
|
|
7660
7660
|
);
|
7661
7661
|
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Fn(r)] = r, n[Fn(o.attribute)] = r;
|
7662
7662
|
}
|
7663
|
-
return new
|
7663
|
+
return new dt(t, n, e.space);
|
7664
7664
|
}
|
7665
|
-
const Ro =
|
7665
|
+
const Ro = $e({
|
7666
7666
|
space: "xlink",
|
7667
7667
|
transform(e, t) {
|
7668
7668
|
return "xlink:" + t.slice(5).toLowerCase();
|
@@ -7676,7 +7676,7 @@ const Ro = Ve({
|
|
7676
7676
|
xLinkTitle: null,
|
7677
7677
|
xLinkType: null
|
7678
7678
|
}
|
7679
|
-
}), _o =
|
7679
|
+
}), _o = $e({
|
7680
7680
|
space: "xml",
|
7681
7681
|
transform(e, t) {
|
7682
7682
|
return "xml:" + t.slice(3).toLowerCase();
|
@@ -7689,67 +7689,67 @@ function Uo(e, t) {
|
|
7689
7689
|
function Bo(e, t) {
|
7690
7690
|
return Uo(e, t.toLowerCase());
|
7691
7691
|
}
|
7692
|
-
const Qo =
|
7692
|
+
const Qo = $e({
|
7693
7693
|
space: "xmlns",
|
7694
7694
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
7695
7695
|
transform: Bo,
|
7696
7696
|
properties: { xmlns: null, xmlnsXLink: null }
|
7697
|
-
}), Yo =
|
7697
|
+
}), Yo = $e({
|
7698
7698
|
transform(e, t) {
|
7699
7699
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
7700
7700
|
},
|
7701
7701
|
properties: {
|
7702
7702
|
ariaActiveDescendant: null,
|
7703
|
-
ariaAtomic:
|
7703
|
+
ariaAtomic: oe,
|
7704
7704
|
ariaAutoComplete: null,
|
7705
|
-
ariaBusy:
|
7706
|
-
ariaChecked:
|
7707
|
-
ariaColCount:
|
7708
|
-
ariaColIndex:
|
7709
|
-
ariaColSpan:
|
7710
|
-
ariaControls:
|
7705
|
+
ariaBusy: oe,
|
7706
|
+
ariaChecked: oe,
|
7707
|
+
ariaColCount: k,
|
7708
|
+
ariaColIndex: k,
|
7709
|
+
ariaColSpan: k,
|
7710
|
+
ariaControls: J,
|
7711
7711
|
ariaCurrent: null,
|
7712
|
-
ariaDescribedBy:
|
7712
|
+
ariaDescribedBy: J,
|
7713
7713
|
ariaDetails: null,
|
7714
|
-
ariaDisabled:
|
7715
|
-
ariaDropEffect:
|
7714
|
+
ariaDisabled: oe,
|
7715
|
+
ariaDropEffect: J,
|
7716
7716
|
ariaErrorMessage: null,
|
7717
|
-
ariaExpanded:
|
7718
|
-
ariaFlowTo:
|
7719
|
-
ariaGrabbed:
|
7717
|
+
ariaExpanded: oe,
|
7718
|
+
ariaFlowTo: J,
|
7719
|
+
ariaGrabbed: oe,
|
7720
7720
|
ariaHasPopup: null,
|
7721
|
-
ariaHidden:
|
7721
|
+
ariaHidden: oe,
|
7722
7722
|
ariaInvalid: null,
|
7723
7723
|
ariaKeyShortcuts: null,
|
7724
7724
|
ariaLabel: null,
|
7725
|
-
ariaLabelledBy:
|
7726
|
-
ariaLevel:
|
7725
|
+
ariaLabelledBy: J,
|
7726
|
+
ariaLevel: k,
|
7727
7727
|
ariaLive: null,
|
7728
|
-
ariaModal:
|
7729
|
-
ariaMultiLine:
|
7730
|
-
ariaMultiSelectable:
|
7728
|
+
ariaModal: oe,
|
7729
|
+
ariaMultiLine: oe,
|
7730
|
+
ariaMultiSelectable: oe,
|
7731
7731
|
ariaOrientation: null,
|
7732
|
-
ariaOwns:
|
7732
|
+
ariaOwns: J,
|
7733
7733
|
ariaPlaceholder: null,
|
7734
|
-
ariaPosInSet:
|
7735
|
-
ariaPressed:
|
7736
|
-
ariaReadOnly:
|
7734
|
+
ariaPosInSet: k,
|
7735
|
+
ariaPressed: oe,
|
7736
|
+
ariaReadOnly: oe,
|
7737
7737
|
ariaRelevant: null,
|
7738
|
-
ariaRequired:
|
7739
|
-
ariaRoleDescription:
|
7740
|
-
ariaRowCount:
|
7741
|
-
ariaRowIndex:
|
7742
|
-
ariaRowSpan:
|
7743
|
-
ariaSelected:
|
7744
|
-
ariaSetSize:
|
7738
|
+
ariaRequired: oe,
|
7739
|
+
ariaRoleDescription: J,
|
7740
|
+
ariaRowCount: k,
|
7741
|
+
ariaRowIndex: k,
|
7742
|
+
ariaRowSpan: k,
|
7743
|
+
ariaSelected: oe,
|
7744
|
+
ariaSetSize: k,
|
7745
7745
|
ariaSort: null,
|
7746
|
-
ariaValueMax:
|
7747
|
-
ariaValueMin:
|
7748
|
-
ariaValueNow:
|
7746
|
+
ariaValueMax: k,
|
7747
|
+
ariaValueMin: k,
|
7748
|
+
ariaValueNow: k,
|
7749
7749
|
ariaValueText: null,
|
7750
7750
|
role: null
|
7751
7751
|
}
|
7752
|
-
}), Up =
|
7752
|
+
}), Up = $e({
|
7753
7753
|
space: "html",
|
7754
7754
|
attributes: {
|
7755
7755
|
acceptcharset: "accept-charset",
|
@@ -7762,9 +7762,9 @@ const Qo = Ve({
|
|
7762
7762
|
properties: {
|
7763
7763
|
// Standard Properties.
|
7764
7764
|
abbr: null,
|
7765
|
-
accept:
|
7766
|
-
acceptCharset:
|
7767
|
-
accessKey:
|
7765
|
+
accept: Ye,
|
7766
|
+
acceptCharset: J,
|
7767
|
+
accessKey: J,
|
7768
7768
|
action: null,
|
7769
7769
|
allow: null,
|
7770
7770
|
allowFullScreen: H,
|
@@ -7774,22 +7774,22 @@ const Qo = Ve({
|
|
7774
7774
|
as: null,
|
7775
7775
|
async: H,
|
7776
7776
|
autoCapitalize: null,
|
7777
|
-
autoComplete:
|
7777
|
+
autoComplete: J,
|
7778
7778
|
autoFocus: H,
|
7779
7779
|
autoPlay: H,
|
7780
|
-
blocking:
|
7780
|
+
blocking: J,
|
7781
7781
|
capture: H,
|
7782
7782
|
charSet: null,
|
7783
7783
|
checked: H,
|
7784
7784
|
cite: null,
|
7785
|
-
className:
|
7786
|
-
cols:
|
7785
|
+
className: J,
|
7786
|
+
cols: k,
|
7787
7787
|
colSpan: null,
|
7788
7788
|
content: null,
|
7789
|
-
contentEditable:
|
7789
|
+
contentEditable: oe,
|
7790
7790
|
controls: H,
|
7791
|
-
controlsList:
|
7792
|
-
coords:
|
7791
|
+
controlsList: J,
|
7792
|
+
coords: k | Ye,
|
7793
7793
|
crossOrigin: null,
|
7794
7794
|
data: null,
|
7795
7795
|
dateTime: null,
|
@@ -7800,7 +7800,7 @@ const Qo = Ve({
|
|
7800
7800
|
dirName: null,
|
7801
7801
|
disabled: H,
|
7802
7802
|
download: Fo,
|
7803
|
-
draggable:
|
7803
|
+
draggable: oe,
|
7804
7804
|
encType: null,
|
7805
7805
|
enterKeyHint: null,
|
7806
7806
|
fetchPriority: null,
|
@@ -7810,14 +7810,14 @@ const Qo = Ve({
|
|
7810
7810
|
formMethod: null,
|
7811
7811
|
formNoValidate: H,
|
7812
7812
|
formTarget: null,
|
7813
|
-
headers:
|
7814
|
-
height:
|
7813
|
+
headers: J,
|
7814
|
+
height: k,
|
7815
7815
|
hidden: H,
|
7816
|
-
high:
|
7816
|
+
high: k,
|
7817
7817
|
href: null,
|
7818
7818
|
hrefLang: null,
|
7819
|
-
htmlFor:
|
7820
|
-
httpEquiv:
|
7819
|
+
htmlFor: J,
|
7820
|
+
httpEquiv: J,
|
7821
7821
|
id: null,
|
7822
7822
|
imageSizes: null,
|
7823
7823
|
imageSrcSet: null,
|
@@ -7827,10 +7827,10 @@ const Qo = Ve({
|
|
7827
7827
|
is: null,
|
7828
7828
|
isMap: H,
|
7829
7829
|
itemId: null,
|
7830
|
-
itemProp:
|
7831
|
-
itemRef:
|
7830
|
+
itemProp: J,
|
7831
|
+
itemRef: J,
|
7832
7832
|
itemScope: H,
|
7833
|
-
itemType:
|
7833
|
+
itemType: J,
|
7834
7834
|
kind: null,
|
7835
7835
|
label: null,
|
7836
7836
|
lang: null,
|
@@ -7838,14 +7838,14 @@ const Qo = Ve({
|
|
7838
7838
|
list: null,
|
7839
7839
|
loading: null,
|
7840
7840
|
loop: H,
|
7841
|
-
low:
|
7841
|
+
low: k,
|
7842
7842
|
manifest: null,
|
7843
7843
|
max: null,
|
7844
|
-
maxLength:
|
7844
|
+
maxLength: k,
|
7845
7845
|
media: null,
|
7846
7846
|
method: null,
|
7847
7847
|
min: null,
|
7848
|
-
minLength:
|
7848
|
+
minLength: k,
|
7849
7849
|
multiple: H,
|
7850
7850
|
muted: H,
|
7851
7851
|
name: null,
|
@@ -7941,9 +7941,9 @@ const Qo = Ve({
|
|
7941
7941
|
onWaiting: null,
|
7942
7942
|
onWheel: null,
|
7943
7943
|
open: H,
|
7944
|
-
optimum:
|
7944
|
+
optimum: k,
|
7945
7945
|
pattern: null,
|
7946
|
-
ping:
|
7946
|
+
ping: J,
|
7947
7947
|
placeholder: null,
|
7948
7948
|
playsInline: H,
|
7949
7949
|
popover: null,
|
@@ -7953,12 +7953,12 @@ const Qo = Ve({
|
|
7953
7953
|
preload: null,
|
7954
7954
|
readOnly: H,
|
7955
7955
|
referrerPolicy: null,
|
7956
|
-
rel:
|
7956
|
+
rel: J,
|
7957
7957
|
required: H,
|
7958
7958
|
reversed: H,
|
7959
|
-
rows:
|
7960
|
-
rowSpan:
|
7961
|
-
sandbox:
|
7959
|
+
rows: k,
|
7960
|
+
rowSpan: k,
|
7961
|
+
sandbox: J,
|
7962
7962
|
scope: null,
|
7963
7963
|
scoped: H,
|
7964
7964
|
seamless: H,
|
@@ -7966,27 +7966,27 @@ const Qo = Ve({
|
|
7966
7966
|
shadowRootDelegatesFocus: H,
|
7967
7967
|
shadowRootMode: null,
|
7968
7968
|
shape: null,
|
7969
|
-
size:
|
7969
|
+
size: k,
|
7970
7970
|
sizes: null,
|
7971
7971
|
slot: null,
|
7972
|
-
span:
|
7973
|
-
spellCheck:
|
7972
|
+
span: k,
|
7973
|
+
spellCheck: oe,
|
7974
7974
|
src: null,
|
7975
7975
|
srcDoc: null,
|
7976
7976
|
srcLang: null,
|
7977
7977
|
srcSet: null,
|
7978
|
-
start:
|
7978
|
+
start: k,
|
7979
7979
|
step: null,
|
7980
7980
|
style: null,
|
7981
|
-
tabIndex:
|
7981
|
+
tabIndex: k,
|
7982
7982
|
target: null,
|
7983
7983
|
title: null,
|
7984
7984
|
translate: null,
|
7985
7985
|
type: null,
|
7986
7986
|
typeMustMatch: H,
|
7987
7987
|
useMap: null,
|
7988
|
-
value:
|
7989
|
-
width:
|
7988
|
+
value: oe,
|
7989
|
+
width: k,
|
7990
7990
|
wrap: null,
|
7991
7991
|
// Legacy.
|
7992
7992
|
// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
|
@@ -7994,7 +7994,7 @@ const Qo = Ve({
|
|
7994
7994
|
// Several. Use CSS `text-align` instead,
|
7995
7995
|
aLink: null,
|
7996
7996
|
// `<body>`. Use CSS `a:active {color}` instead
|
7997
|
-
archive:
|
7997
|
+
archive: J,
|
7998
7998
|
// `<object>`. List of URIs to archives
|
7999
7999
|
axis: null,
|
8000
8000
|
// `<td>` and `<th>`. Use `scope` on `<th>`
|
@@ -8002,11 +8002,11 @@ const Qo = Ve({
|
|
8002
8002
|
// `<body>`. Use CSS `background-image` instead
|
8003
8003
|
bgColor: null,
|
8004
8004
|
// `<body>` and table elements. Use CSS `background-color` instead
|
8005
|
-
border:
|
8005
|
+
border: k,
|
8006
8006
|
// `<table>`. Use CSS `border-width` instead,
|
8007
8007
|
borderColor: null,
|
8008
8008
|
// `<table>`. Use CSS `border-color` instead,
|
8009
|
-
bottomMargin:
|
8009
|
+
bottomMargin: k,
|
8010
8010
|
// `<body>`
|
8011
8011
|
cellPadding: null,
|
8012
8012
|
// `<table>`
|
@@ -8040,9 +8040,9 @@ const Qo = Ve({
|
|
8040
8040
|
// `<table>`
|
8041
8041
|
frameBorder: null,
|
8042
8042
|
// `<iframe>`. Use CSS `border` instead
|
8043
|
-
hSpace:
|
8043
|
+
hSpace: k,
|
8044
8044
|
// `<img>` and `<object>`
|
8045
|
-
leftMargin:
|
8045
|
+
leftMargin: k,
|
8046
8046
|
// `<body>`
|
8047
8047
|
link: null,
|
8048
8048
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
@@ -8050,9 +8050,9 @@ const Qo = Ve({
|
|
8050
8050
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
8051
8051
|
lowSrc: null,
|
8052
8052
|
// `<img>`. Use a `<picture>`
|
8053
|
-
marginHeight:
|
8053
|
+
marginHeight: k,
|
8054
8054
|
// `<body>`
|
8055
|
-
marginWidth:
|
8055
|
+
marginWidth: k,
|
8056
8056
|
// `<body>`
|
8057
8057
|
noResize: H,
|
8058
8058
|
// `<frame>`
|
@@ -8070,13 +8070,13 @@ const Qo = Ve({
|
|
8070
8070
|
// `<isindex>`
|
8071
8071
|
rev: null,
|
8072
8072
|
// `<link>`
|
8073
|
-
rightMargin:
|
8073
|
+
rightMargin: k,
|
8074
8074
|
// `<body>`
|
8075
8075
|
rules: null,
|
8076
8076
|
// `<table>`
|
8077
8077
|
scheme: null,
|
8078
8078
|
// `<meta>`
|
8079
|
-
scrolling:
|
8079
|
+
scrolling: oe,
|
8080
8080
|
// `<frame>`. Use overflow in the child context
|
8081
8081
|
standby: null,
|
8082
8082
|
// `<object>`
|
@@ -8084,7 +8084,7 @@ const Qo = Ve({
|
|
8084
8084
|
// `<table>`
|
8085
8085
|
text: null,
|
8086
8086
|
// `<body>`. Use CSS `color` instead
|
8087
|
-
topMargin:
|
8087
|
+
topMargin: k,
|
8088
8088
|
// `<body>`
|
8089
8089
|
valueType: null,
|
8090
8090
|
// `<param>`
|
@@ -8094,7 +8094,7 @@ const Qo = Ve({
|
|
8094
8094
|
// Several. Use CSS `vertical-align` instead
|
8095
8095
|
vLink: null,
|
8096
8096
|
// `<body>`. Use CSS `a:visited {color}` instead
|
8097
|
-
vSpace:
|
8097
|
+
vSpace: k,
|
8098
8098
|
// `<img>` and `<object>`
|
8099
8099
|
// Non-standard Properties.
|
8100
8100
|
allowTransparency: null,
|
@@ -8104,11 +8104,11 @@ const Qo = Ve({
|
|
8104
8104
|
disableRemotePlayback: H,
|
8105
8105
|
prefix: null,
|
8106
8106
|
property: null,
|
8107
|
-
results:
|
8107
|
+
results: k,
|
8108
8108
|
security: null,
|
8109
8109
|
unselectable: null
|
8110
8110
|
}
|
8111
|
-
}), Bp =
|
8111
|
+
}), Bp = $e({
|
8112
8112
|
space: "svg",
|
8113
8113
|
attributes: {
|
8114
8114
|
accentHeight: "accent-height",
|
@@ -8287,29 +8287,29 @@ const Qo = Ve({
|
|
8287
8287
|
},
|
8288
8288
|
transform: Uo,
|
8289
8289
|
properties: {
|
8290
|
-
about:
|
8291
|
-
accentHeight:
|
8290
|
+
about: ge,
|
8291
|
+
accentHeight: k,
|
8292
8292
|
accumulate: null,
|
8293
8293
|
additive: null,
|
8294
8294
|
alignmentBaseline: null,
|
8295
|
-
alphabetic:
|
8296
|
-
amplitude:
|
8295
|
+
alphabetic: k,
|
8296
|
+
amplitude: k,
|
8297
8297
|
arabicForm: null,
|
8298
|
-
ascent:
|
8298
|
+
ascent: k,
|
8299
8299
|
attributeName: null,
|
8300
8300
|
attributeType: null,
|
8301
|
-
azimuth:
|
8301
|
+
azimuth: k,
|
8302
8302
|
bandwidth: null,
|
8303
8303
|
baselineShift: null,
|
8304
8304
|
baseFrequency: null,
|
8305
8305
|
baseProfile: null,
|
8306
8306
|
bbox: null,
|
8307
8307
|
begin: null,
|
8308
|
-
bias:
|
8308
|
+
bias: k,
|
8309
8309
|
by: null,
|
8310
8310
|
calcMode: null,
|
8311
|
-
capHeight:
|
8312
|
-
className:
|
8311
|
+
capHeight: k,
|
8312
|
+
className: J,
|
8313
8313
|
clip: null,
|
8314
8314
|
clipPath: null,
|
8315
8315
|
clipPathUnits: null,
|
@@ -8329,26 +8329,26 @@ const Qo = Ve({
|
|
8329
8329
|
d: null,
|
8330
8330
|
dataType: null,
|
8331
8331
|
defaultAction: null,
|
8332
|
-
descent:
|
8333
|
-
diffuseConstant:
|
8332
|
+
descent: k,
|
8333
|
+
diffuseConstant: k,
|
8334
8334
|
direction: null,
|
8335
8335
|
display: null,
|
8336
8336
|
dur: null,
|
8337
|
-
divisor:
|
8337
|
+
divisor: k,
|
8338
8338
|
dominantBaseline: null,
|
8339
8339
|
download: H,
|
8340
8340
|
dx: null,
|
8341
8341
|
dy: null,
|
8342
8342
|
edgeMode: null,
|
8343
8343
|
editable: null,
|
8344
|
-
elevation:
|
8344
|
+
elevation: k,
|
8345
8345
|
enableBackground: null,
|
8346
8346
|
end: null,
|
8347
8347
|
event: null,
|
8348
|
-
exponent:
|
8348
|
+
exponent: k,
|
8349
8349
|
externalResourcesRequired: null,
|
8350
8350
|
fill: null,
|
8351
|
-
fillOpacity:
|
8351
|
+
fillOpacity: k,
|
8352
8352
|
fillRule: null,
|
8353
8353
|
filter: null,
|
8354
8354
|
filterRes: null,
|
@@ -8369,37 +8369,37 @@ const Qo = Ve({
|
|
8369
8369
|
from: null,
|
8370
8370
|
fx: null,
|
8371
8371
|
fy: null,
|
8372
|
-
g1:
|
8373
|
-
g2:
|
8374
|
-
glyphName:
|
8372
|
+
g1: Ye,
|
8373
|
+
g2: Ye,
|
8374
|
+
glyphName: Ye,
|
8375
8375
|
glyphOrientationHorizontal: null,
|
8376
8376
|
glyphOrientationVertical: null,
|
8377
8377
|
glyphRef: null,
|
8378
8378
|
gradientTransform: null,
|
8379
8379
|
gradientUnits: null,
|
8380
8380
|
handler: null,
|
8381
|
-
hanging:
|
8381
|
+
hanging: k,
|
8382
8382
|
hatchContentUnits: null,
|
8383
8383
|
hatchUnits: null,
|
8384
8384
|
height: null,
|
8385
8385
|
href: null,
|
8386
8386
|
hrefLang: null,
|
8387
|
-
horizAdvX:
|
8388
|
-
horizOriginX:
|
8389
|
-
horizOriginY:
|
8387
|
+
horizAdvX: k,
|
8388
|
+
horizOriginX: k,
|
8389
|
+
horizOriginY: k,
|
8390
8390
|
id: null,
|
8391
|
-
ideographic:
|
8391
|
+
ideographic: k,
|
8392
8392
|
imageRendering: null,
|
8393
8393
|
initialVisibility: null,
|
8394
8394
|
in: null,
|
8395
8395
|
in2: null,
|
8396
|
-
intercept:
|
8397
|
-
k
|
8398
|
-
k1:
|
8399
|
-
k2:
|
8400
|
-
k3:
|
8401
|
-
k4:
|
8402
|
-
kernelMatrix:
|
8396
|
+
intercept: k,
|
8397
|
+
k,
|
8398
|
+
k1: k,
|
8399
|
+
k2: k,
|
8400
|
+
k3: k,
|
8401
|
+
k4: k,
|
8402
|
+
kernelMatrix: ge,
|
8403
8403
|
kernelUnitLength: null,
|
8404
8404
|
keyPoints: null,
|
8405
8405
|
// SEMI_COLON_SEPARATED
|
@@ -8412,7 +8412,7 @@ const Qo = Ve({
|
|
8412
8412
|
lengthAdjust: null,
|
8413
8413
|
letterSpacing: null,
|
8414
8414
|
lightingColor: null,
|
8415
|
-
limitingConeAngle:
|
8415
|
+
limitingConeAngle: k,
|
8416
8416
|
local: null,
|
8417
8417
|
markerEnd: null,
|
8418
8418
|
markerMid: null,
|
@@ -8428,7 +8428,7 @@ const Qo = Ve({
|
|
8428
8428
|
media: null,
|
8429
8429
|
mediaCharacterEncoding: null,
|
8430
8430
|
mediaContentEncodings: null,
|
8431
|
-
mediaSize:
|
8431
|
+
mediaSize: k,
|
8432
8432
|
mediaTime: null,
|
8433
8433
|
method: null,
|
8434
8434
|
min: null,
|
@@ -8534,43 +8534,43 @@ const Qo = Ve({
|
|
8534
8534
|
origin: null,
|
8535
8535
|
overflow: null,
|
8536
8536
|
overlay: null,
|
8537
|
-
overlinePosition:
|
8538
|
-
overlineThickness:
|
8537
|
+
overlinePosition: k,
|
8538
|
+
overlineThickness: k,
|
8539
8539
|
paintOrder: null,
|
8540
8540
|
panose1: null,
|
8541
8541
|
path: null,
|
8542
|
-
pathLength:
|
8542
|
+
pathLength: k,
|
8543
8543
|
patternContentUnits: null,
|
8544
8544
|
patternTransform: null,
|
8545
8545
|
patternUnits: null,
|
8546
8546
|
phase: null,
|
8547
|
-
ping:
|
8547
|
+
ping: J,
|
8548
8548
|
pitch: null,
|
8549
8549
|
playbackOrder: null,
|
8550
8550
|
pointerEvents: null,
|
8551
8551
|
points: null,
|
8552
|
-
pointsAtX:
|
8553
|
-
pointsAtY:
|
8554
|
-
pointsAtZ:
|
8552
|
+
pointsAtX: k,
|
8553
|
+
pointsAtY: k,
|
8554
|
+
pointsAtZ: k,
|
8555
8555
|
preserveAlpha: null,
|
8556
8556
|
preserveAspectRatio: null,
|
8557
8557
|
primitiveUnits: null,
|
8558
8558
|
propagate: null,
|
8559
|
-
property:
|
8559
|
+
property: ge,
|
8560
8560
|
r: null,
|
8561
8561
|
radius: null,
|
8562
8562
|
referrerPolicy: null,
|
8563
8563
|
refX: null,
|
8564
8564
|
refY: null,
|
8565
|
-
rel:
|
8566
|
-
rev:
|
8565
|
+
rel: ge,
|
8566
|
+
rev: ge,
|
8567
8567
|
renderingIntent: null,
|
8568
8568
|
repeatCount: null,
|
8569
8569
|
repeatDur: null,
|
8570
|
-
requiredExtensions:
|
8571
|
-
requiredFeatures:
|
8572
|
-
requiredFonts:
|
8573
|
-
requiredFormats:
|
8570
|
+
requiredExtensions: ge,
|
8571
|
+
requiredFeatures: ge,
|
8572
|
+
requiredFonts: ge,
|
8573
|
+
requiredFormats: ge,
|
8574
8574
|
resource: null,
|
8575
8575
|
restart: null,
|
8576
8576
|
result: null,
|
@@ -8583,8 +8583,8 @@ const Qo = Ve({
|
|
8583
8583
|
side: null,
|
8584
8584
|
slope: null,
|
8585
8585
|
snapshotTime: null,
|
8586
|
-
specularConstant:
|
8587
|
-
specularExponent:
|
8586
|
+
specularConstant: k,
|
8587
|
+
specularExponent: k,
|
8588
8588
|
spreadMethod: null,
|
8589
8589
|
spacing: null,
|
8590
8590
|
startOffset: null,
|
@@ -8594,30 +8594,30 @@ const Qo = Ve({
|
|
8594
8594
|
stitchTiles: null,
|
8595
8595
|
stopColor: null,
|
8596
8596
|
stopOpacity: null,
|
8597
|
-
strikethroughPosition:
|
8598
|
-
strikethroughThickness:
|
8597
|
+
strikethroughPosition: k,
|
8598
|
+
strikethroughThickness: k,
|
8599
8599
|
string: null,
|
8600
8600
|
stroke: null,
|
8601
|
-
strokeDashArray:
|
8601
|
+
strokeDashArray: ge,
|
8602
8602
|
strokeDashOffset: null,
|
8603
8603
|
strokeLineCap: null,
|
8604
8604
|
strokeLineJoin: null,
|
8605
|
-
strokeMiterLimit:
|
8606
|
-
strokeOpacity:
|
8605
|
+
strokeMiterLimit: k,
|
8606
|
+
strokeOpacity: k,
|
8607
8607
|
strokeWidth: null,
|
8608
8608
|
style: null,
|
8609
|
-
surfaceScale:
|
8609
|
+
surfaceScale: k,
|
8610
8610
|
syncBehavior: null,
|
8611
8611
|
syncBehaviorDefault: null,
|
8612
8612
|
syncMaster: null,
|
8613
8613
|
syncTolerance: null,
|
8614
8614
|
syncToleranceDefault: null,
|
8615
|
-
systemLanguage:
|
8616
|
-
tabIndex:
|
8615
|
+
systemLanguage: ge,
|
8616
|
+
tabIndex: k,
|
8617
8617
|
tableValues: null,
|
8618
8618
|
target: null,
|
8619
|
-
targetX:
|
8620
|
-
targetY:
|
8619
|
+
targetX: k,
|
8620
|
+
targetY: k,
|
8621
8621
|
textAnchor: null,
|
8622
8622
|
textDecoration: null,
|
8623
8623
|
textRendering: null,
|
@@ -8626,28 +8626,28 @@ const Qo = Ve({
|
|
8626
8626
|
title: null,
|
8627
8627
|
transformBehavior: null,
|
8628
8628
|
type: null,
|
8629
|
-
typeOf:
|
8629
|
+
typeOf: ge,
|
8630
8630
|
to: null,
|
8631
8631
|
transform: null,
|
8632
8632
|
transformOrigin: null,
|
8633
8633
|
u1: null,
|
8634
8634
|
u2: null,
|
8635
|
-
underlinePosition:
|
8636
|
-
underlineThickness:
|
8635
|
+
underlinePosition: k,
|
8636
|
+
underlineThickness: k,
|
8637
8637
|
unicode: null,
|
8638
8638
|
unicodeBidi: null,
|
8639
8639
|
unicodeRange: null,
|
8640
|
-
unitsPerEm:
|
8640
|
+
unitsPerEm: k,
|
8641
8641
|
values: null,
|
8642
|
-
vAlphabetic:
|
8643
|
-
vMathematical:
|
8642
|
+
vAlphabetic: k,
|
8643
|
+
vMathematical: k,
|
8644
8644
|
vectorEffect: null,
|
8645
|
-
vHanging:
|
8646
|
-
vIdeographic:
|
8645
|
+
vHanging: k,
|
8646
|
+
vIdeographic: k,
|
8647
8647
|
version: null,
|
8648
|
-
vertAdvY:
|
8649
|
-
vertOriginX:
|
8650
|
-
vertOriginY:
|
8648
|
+
vertAdvY: k,
|
8649
|
+
vertOriginX: k,
|
8650
|
+
vertOriginY: k,
|
8651
8651
|
viewBox: null,
|
8652
8652
|
viewTarget: null,
|
8653
8653
|
visibility: null,
|
@@ -8659,7 +8659,7 @@ const Qo = Ve({
|
|
8659
8659
|
x1: null,
|
8660
8660
|
x2: null,
|
8661
8661
|
xChannelSelector: null,
|
8662
|
-
xHeight:
|
8662
|
+
xHeight: k,
|
8663
8663
|
y: null,
|
8664
8664
|
y1: null,
|
8665
8665
|
y2: null,
|
@@ -8670,7 +8670,7 @@ const Qo = Ve({
|
|
8670
8670
|
}), Qp = /^data[-\w.:]+$/i, mi = /-[a-z]/g, Yp = /[A-Z]/g;
|
8671
8671
|
function Hp(e, t) {
|
8672
8672
|
const n = Fn(t);
|
8673
|
-
let r = t, i =
|
8673
|
+
let r = t, i = be;
|
8674
8674
|
if (n in e.normal)
|
8675
8675
|
return e.property[e.normal[n]];
|
8676
8676
|
if (n.length > 4 && n.slice(0, 4) === "data" && Qp.test(t)) {
|
@@ -8731,7 +8731,7 @@ function Zp(e) {
|
|
8731
8731
|
});
|
8732
8732
|
};
|
8733
8733
|
}
|
8734
|
-
var Ho = { exports: {} },
|
8734
|
+
var Ho = { exports: {} }, G = {};
|
8735
8735
|
/**
|
8736
8736
|
* @license React
|
8737
8737
|
* react-is.production.min.js
|
@@ -8743,7 +8743,7 @@ var Ho = { exports: {} }, K = {};
|
|
8743
8743
|
*/
|
8744
8744
|
var ir = Symbol.for("react.element"), or = Symbol.for("react.portal"), qt = Symbol.for("react.fragment"), $t = Symbol.for("react.strict_mode"), Vt = Symbol.for("react.profiler"), Wt = Symbol.for("react.provider"), Zt = Symbol.for("react.context"), Gp = Symbol.for("react.server_context"), Gt = Symbol.for("react.forward_ref"), Xt = Symbol.for("react.suspense"), Kt = Symbol.for("react.suspense_list"), Jt = Symbol.for("react.memo"), en = Symbol.for("react.lazy"), Xp = Symbol.for("react.offscreen"), qo;
|
8745
8745
|
qo = Symbol.for("react.module.reference");
|
8746
|
-
function
|
8746
|
+
function we(e) {
|
8747
8747
|
if (typeof e == "object" && e !== null) {
|
8748
8748
|
var t = e.$$typeof;
|
8749
8749
|
switch (t) {
|
@@ -8773,67 +8773,67 @@ function De(e) {
|
|
8773
8773
|
}
|
8774
8774
|
}
|
8775
8775
|
}
|
8776
|
-
|
8777
|
-
|
8778
|
-
|
8779
|
-
|
8780
|
-
|
8781
|
-
|
8782
|
-
|
8783
|
-
|
8784
|
-
|
8785
|
-
|
8786
|
-
|
8787
|
-
|
8788
|
-
|
8776
|
+
G.ContextConsumer = Zt;
|
8777
|
+
G.ContextProvider = Wt;
|
8778
|
+
G.Element = ir;
|
8779
|
+
G.ForwardRef = Gt;
|
8780
|
+
G.Fragment = qt;
|
8781
|
+
G.Lazy = en;
|
8782
|
+
G.Memo = Jt;
|
8783
|
+
G.Portal = or;
|
8784
|
+
G.Profiler = Vt;
|
8785
|
+
G.StrictMode = $t;
|
8786
|
+
G.Suspense = Xt;
|
8787
|
+
G.SuspenseList = Kt;
|
8788
|
+
G.isAsyncMode = function() {
|
8789
8789
|
return !1;
|
8790
8790
|
};
|
8791
|
-
|
8791
|
+
G.isConcurrentMode = function() {
|
8792
8792
|
return !1;
|
8793
8793
|
};
|
8794
|
-
|
8795
|
-
return
|
8794
|
+
G.isContextConsumer = function(e) {
|
8795
|
+
return we(e) === Zt;
|
8796
8796
|
};
|
8797
|
-
|
8798
|
-
return
|
8797
|
+
G.isContextProvider = function(e) {
|
8798
|
+
return we(e) === Wt;
|
8799
8799
|
};
|
8800
|
-
|
8800
|
+
G.isElement = function(e) {
|
8801
8801
|
return typeof e == "object" && e !== null && e.$$typeof === ir;
|
8802
8802
|
};
|
8803
|
-
|
8804
|
-
return
|
8803
|
+
G.isForwardRef = function(e) {
|
8804
|
+
return we(e) === Gt;
|
8805
8805
|
};
|
8806
|
-
|
8807
|
-
return
|
8806
|
+
G.isFragment = function(e) {
|
8807
|
+
return we(e) === qt;
|
8808
8808
|
};
|
8809
|
-
|
8810
|
-
return
|
8809
|
+
G.isLazy = function(e) {
|
8810
|
+
return we(e) === en;
|
8811
8811
|
};
|
8812
|
-
|
8813
|
-
return
|
8812
|
+
G.isMemo = function(e) {
|
8813
|
+
return we(e) === Jt;
|
8814
8814
|
};
|
8815
|
-
|
8816
|
-
return
|
8815
|
+
G.isPortal = function(e) {
|
8816
|
+
return we(e) === or;
|
8817
8817
|
};
|
8818
|
-
|
8819
|
-
return
|
8818
|
+
G.isProfiler = function(e) {
|
8819
|
+
return we(e) === Vt;
|
8820
8820
|
};
|
8821
|
-
|
8822
|
-
return
|
8821
|
+
G.isStrictMode = function(e) {
|
8822
|
+
return we(e) === $t;
|
8823
8823
|
};
|
8824
|
-
|
8825
|
-
return
|
8824
|
+
G.isSuspense = function(e) {
|
8825
|
+
return we(e) === Xt;
|
8826
8826
|
};
|
8827
|
-
|
8828
|
-
return
|
8827
|
+
G.isSuspenseList = function(e) {
|
8828
|
+
return we(e) === Kt;
|
8829
8829
|
};
|
8830
|
-
|
8830
|
+
G.isValidElementType = function(e) {
|
8831
8831
|
return typeof e == "string" || typeof e == "function" || e === qt || e === Vt || e === $t || e === Xt || e === Kt || e === Xp || typeof e == "object" && e !== null && (e.$$typeof === en || e.$$typeof === Jt || e.$$typeof === Wt || e.$$typeof === Zt || e.$$typeof === Gt || e.$$typeof === qo || e.getModuleId !== void 0);
|
8832
8832
|
};
|
8833
|
-
|
8834
|
-
Ho.exports =
|
8833
|
+
G.typeOf = we;
|
8834
|
+
Ho.exports = G;
|
8835
8835
|
var Kp = Ho.exports;
|
8836
|
-
const Jp = /* @__PURE__ */
|
8836
|
+
const Jp = /* @__PURE__ */ Ue(Kp);
|
8837
8837
|
function ef(e) {
|
8838
8838
|
const t = (
|
8839
8839
|
// @ts-expect-error looks like a node.
|
@@ -8854,7 +8854,7 @@ function nf(e, t) {
|
|
8854
8854
|
).trim();
|
8855
8855
|
}
|
8856
8856
|
var lr = { exports: {} }, Mi = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, rf = /\n/g, of = /^\s*/, lf = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, af = /^:\s*/, uf = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, sf = /^[;\s]*/, cf = /^\s+|\s+$/g, pf = `
|
8857
|
-
`, xi = "/", bi = "*",
|
8857
|
+
`, xi = "/", bi = "*", Pe = "", ff = "comment", df = "declaration", hf = function(e, t) {
|
8858
8858
|
if (typeof e != "string")
|
8859
8859
|
throw new TypeError("First argument must be a string");
|
8860
8860
|
if (!e)
|
@@ -8903,9 +8903,9 @@ var lr = { exports: {} }, Mi = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, rf = /\n/g, of
|
|
8903
8903
|
function p() {
|
8904
8904
|
var T = o();
|
8905
8905
|
if (!(xi != e.charAt(0) || bi != e.charAt(1))) {
|
8906
|
-
for (var b = 2;
|
8906
|
+
for (var b = 2; Pe != e.charAt(b) && (bi != e.charAt(b) || xi != e.charAt(b + 1)); )
|
8907
8907
|
++b;
|
8908
|
-
if (b += 2,
|
8908
|
+
if (b += 2, Pe === e.charAt(b - 1))
|
8909
8909
|
return a("End of comment missing");
|
8910
8910
|
var S = e.slice(2, b - 2);
|
8911
8911
|
return r += 2, i(S), e = e.slice(b), r += 2, T({
|
@@ -8921,8 +8921,8 @@ var lr = { exports: {} }, Mi = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, rf = /\n/g, of
|
|
8921
8921
|
return a("property missing ':'");
|
8922
8922
|
var S = s(uf), w = T({
|
8923
8923
|
type: df,
|
8924
|
-
property: wi(b[0].replace(Mi,
|
8925
|
-
value: S ? wi(S[0].replace(Mi,
|
8924
|
+
property: wi(b[0].replace(Mi, Pe)),
|
8925
|
+
value: S ? wi(S[0].replace(Mi, Pe)) : Pe
|
8926
8926
|
});
|
8927
8927
|
return s(sf), w;
|
8928
8928
|
}
|
@@ -8937,7 +8937,7 @@ var lr = { exports: {} }, Mi = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, rf = /\n/g, of
|
|
8937
8937
|
return u(), f();
|
8938
8938
|
};
|
8939
8939
|
function wi(e) {
|
8940
|
-
return e ? e.replace(cf,
|
8940
|
+
return e ? e.replace(cf, Pe) : Pe;
|
8941
8941
|
}
|
8942
8942
|
var gf = hf;
|
8943
8943
|
function $o(e, t) {
|
@@ -8951,7 +8951,7 @@ function $o(e, t) {
|
|
8951
8951
|
lr.exports = $o;
|
8952
8952
|
lr.exports.default = $o;
|
8953
8953
|
var mf = lr.exports;
|
8954
|
-
const yf = /* @__PURE__ */
|
8954
|
+
const yf = /* @__PURE__ */ Ue(mf), _n = {}.hasOwnProperty, Mf = /* @__PURE__ */ new Set(["table", "thead", "tbody", "tfoot", "tr"]);
|
8955
8955
|
function Vo(e, t) {
|
8956
8956
|
const n = [];
|
8957
8957
|
let r = -1, i;
|
@@ -9040,7 +9040,7 @@ function Tf(e) {
|
|
9040
9040
|
e.end.column
|
9041
9041
|
].map(String).join("");
|
9042
9042
|
}
|
9043
|
-
const Di = {}.hasOwnProperty, If = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
9043
|
+
const Di = {}.hasOwnProperty, If = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", kt = {
|
9044
9044
|
plugins: { to: "remarkPlugins", id: "change-plugins-to-remarkplugins" },
|
9045
9045
|
renderers: { to: "components", id: "change-renderers-to-components" },
|
9046
9046
|
astPlugins: { id: "remove-buggy-html-in-markdown-parser" },
|
@@ -9065,12 +9065,12 @@ const Di = {}.hasOwnProperty, If = "https://github.com/remarkjs/react-markdown/b
|
|
9065
9065
|
}
|
9066
9066
|
};
|
9067
9067
|
function Wo(e) {
|
9068
|
-
for (const o in
|
9069
|
-
if (Di.call(
|
9070
|
-
const l =
|
9068
|
+
for (const o in kt)
|
9069
|
+
if (Di.call(kt, o) && Di.call(e, o)) {
|
9070
|
+
const l = kt[o];
|
9071
9071
|
console.warn(
|
9072
9072
|
`[react-markdown] Warning: please ${l.to ? `use \`${l.to}\` instead of` : "remove"} \`${o}\` (see <${If}#${l.id}> for more info)`
|
9073
|
-
), delete
|
9073
|
+
), delete kt[o];
|
9074
9074
|
}
|
9075
9075
|
const t = Lu().use(Hc).use(e.remarkPlugins || []).use(Lp, {
|
9076
9076
|
...e.remarkRehypeOptions,
|
@@ -9148,19 +9148,19 @@ Wo.propTypes = {
|
|
9148
9148
|
transformImageUri: g.func,
|
9149
9149
|
components: g.object
|
9150
9150
|
};
|
9151
|
-
const
|
9151
|
+
const kf = (e) => {
|
9152
9152
|
Array.from(e.entries()).forEach((n) => {
|
9153
9153
|
const r = n[0], i = n[1];
|
9154
9154
|
r.toLocaleLowerCase().startsWith("utm_") && e.delete(r, i);
|
9155
9155
|
});
|
9156
|
-
},
|
9156
|
+
}, vf = (e) => {
|
9157
9157
|
e.delete("linked_from", "xpert_chat"), e.append("linked_from", "xpert_chat");
|
9158
9158
|
};
|
9159
9159
|
function jf(e) {
|
9160
9160
|
const t = new URL(e), n = t.host;
|
9161
9161
|
if (n == null ? void 0 : n.includes("edx.org")) {
|
9162
9162
|
const i = t.searchParams;
|
9163
|
-
|
9163
|
+
kf(i), vf(i), t.search = i;
|
9164
9164
|
}
|
9165
9165
|
return t.toString();
|
9166
9166
|
}
|
@@ -9174,7 +9174,7 @@ function Zo({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
9174
9174
|
onClick: () => n(t, "UP"),
|
9175
9175
|
"aria-label": "I like this response",
|
9176
9176
|
children: /* @__PURE__ */ D.jsx(
|
9177
|
-
|
9177
|
+
Ae,
|
9178
9178
|
{
|
9179
9179
|
className: "xpert-chatbot-popup__feedback--btn-up-icon",
|
9180
9180
|
icon: e.feedbackThumbType === "UP" ? "material-symbols:thumb-up" : "material-symbols:thumb-up-outline"
|
@@ -9191,7 +9191,7 @@ function Zo({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
9191
9191
|
onClick: () => n(t, "DOWN"),
|
9192
9192
|
"aria-label": "I do not like this response",
|
9193
9193
|
children: /* @__PURE__ */ D.jsx(
|
9194
|
-
|
9194
|
+
Ae,
|
9195
9195
|
{
|
9196
9196
|
className: "xpert-chatbot-popup__feedback--btn-down-icon",
|
9197
9197
|
icon: e.feedbackThumbType === "DOWN" ? "material-symbols:thumb-down" : "material-symbols:thumb-down-outline"
|
@@ -9358,8 +9358,8 @@ const Of = pr, tn = ({
|
|
9358
9358
|
configurations: l
|
9359
9359
|
}) => {
|
9360
9360
|
var s;
|
9361
|
-
const a =
|
9362
|
-
return
|
9361
|
+
const a = Fe(null);
|
9362
|
+
return ye(() => {
|
9363
9363
|
var u;
|
9364
9364
|
(u = a.current) == null || u.scrollIntoView({
|
9365
9365
|
behavior: "instant",
|
@@ -9457,7 +9457,7 @@ function Xo({
|
|
9457
9457
|
setIsMounted: t,
|
9458
9458
|
setIsNormalSize: n
|
9459
9459
|
}) {
|
9460
|
-
return
|
9460
|
+
return pt(Ff) ? null : e ? /* @__PURE__ */ D.jsx(
|
9461
9461
|
"button",
|
9462
9462
|
{
|
9463
9463
|
onClick: () => {
|
@@ -9561,7 +9561,7 @@ function Ko({
|
|
9561
9561
|
"aria-label": "Close Xpert dialog",
|
9562
9562
|
type: "button",
|
9563
9563
|
children: /* @__PURE__ */ D.jsx(
|
9564
|
-
|
9564
|
+
Ae,
|
9565
9565
|
{
|
9566
9566
|
icon: "material-symbols:close",
|
9567
9567
|
alt: "Close",
|
@@ -9621,7 +9621,7 @@ function Jo({
|
|
9621
9621
|
configurations: o
|
9622
9622
|
}) {
|
9623
9623
|
var a, s;
|
9624
|
-
const l =
|
9624
|
+
const l = pt(_f);
|
9625
9625
|
return /* @__PURE__ */ D.jsxs(
|
9626
9626
|
"div",
|
9627
9627
|
{
|
@@ -9686,23 +9686,23 @@ function dr({
|
|
9686
9686
|
setLiveChatOpen: n,
|
9687
9687
|
isTestUser: r
|
9688
9688
|
}) {
|
9689
|
-
const [i, o] = pe(!0), l =
|
9689
|
+
const [i, o] = pe(!0), l = at(
|
9690
9690
|
(u) => {
|
9691
9691
|
var c, p, m, f;
|
9692
|
-
((c = u == null ? void 0 : u.data) == null ? void 0 : c.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (p = window == null ? void 0 : window.OnetrustActiveGroups) != null && p.includes("C0003")) &&
|
9692
|
+
((c = u == null ? void 0 : u.data) == null ? void 0 : c.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (p = window == null ? void 0 : window.OnetrustActiveGroups) != null && p.includes("C0003")) && De.set(`${e.cookieNamePrefix}-live-chat-open`, 1, {
|
9693
9693
|
expires: 1,
|
9694
9694
|
path: "/"
|
9695
|
-
}), ((m = u == null ? void 0 : u.data) == null ? void 0 : m.type) === "connection" && ((f = u == null ? void 0 : u.data) == null ? void 0 : f.state) === "disconnected" &&
|
9695
|
+
}), ((m = u == null ? void 0 : u.data) == null ? void 0 : m.type) === "connection" && ((f = u == null ? void 0 : u.data) == null ? void 0 : f.state) === "disconnected" && De.remove(`${e.cookieNamePrefix}-live-chat-open`);
|
9696
9696
|
},
|
9697
9697
|
[e.cookieNamePrefix]
|
9698
|
-
), a =
|
9698
|
+
), a = at(
|
9699
9699
|
(u) => {
|
9700
9700
|
var c, p, m;
|
9701
9701
|
((c = u == null ? void 0 : u.data) == null ? void 0 : c.type) === "unhide" && ((p = u == null ? void 0 : u.data) == null ? void 0 : p.reason) === "pop-out" && n(!0), ((m = u == null ? void 0 : u.data) == null ? void 0 : m.type) === "open" && n(!0);
|
9702
9702
|
},
|
9703
9703
|
[n]
|
9704
9704
|
);
|
9705
|
-
|
9705
|
+
ye(() => {
|
9706
9706
|
const u = document.createElement("script");
|
9707
9707
|
u.type = "text/javascript", u.src = e.liveChatUrl, u.async = !0, u.onload = () => {
|
9708
9708
|
window.Five9ChatPlugin(e.liveChatOptions);
|
@@ -9819,26 +9819,26 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9819
9819
|
proactiveMessage: f,
|
9820
9820
|
disableDisclaimerPage: T,
|
9821
9821
|
conversationHistory: b
|
9822
|
-
} = i, S =
|
9823
|
-
({ name:
|
9824
|
-
t ? t({ name:
|
9822
|
+
} = i, S = pt(Qf), [, w] = pe(!1), [v, j] = pe(Yf), [B, _] = pe(!1), [y, A] = pe(!1), [U, Q] = pe(!1), [q, E] = 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(
|
9823
|
+
({ name: L, payload: x }) => {
|
9824
|
+
t ? t({ name: L, payload: x }) : re.current.track(
|
9825
9825
|
// TODO: this is untestable - create a custom hook to get submit event function.
|
9826
|
-
|
9827
|
-
|
9826
|
+
L,
|
9827
|
+
x
|
9828
9828
|
);
|
9829
9829
|
},
|
9830
9830
|
[t]
|
9831
|
-
), se =
|
9831
|
+
), se = at(async () => {
|
9832
9832
|
if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
|
9833
9833
|
try {
|
9834
|
-
const
|
9834
|
+
const L = De.get(
|
9835
9835
|
`${p}-conversation-history-id`
|
9836
9836
|
);
|
9837
|
-
if (!
|
9837
|
+
if (!L)
|
9838
9838
|
return;
|
9839
9839
|
_(!0);
|
9840
|
-
const
|
9841
|
-
`${o}/xpert-chat/${
|
9840
|
+
const x = await fetch(
|
9841
|
+
`${o}/xpert-chat/${L}`,
|
9842
9842
|
{
|
9843
9843
|
method: "GET",
|
9844
9844
|
headers: {
|
@@ -9846,56 +9846,56 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9846
9846
|
}
|
9847
9847
|
}
|
9848
9848
|
);
|
9849
|
-
if (
|
9850
|
-
|
9849
|
+
if (x.status === 404) {
|
9850
|
+
De.remove(`${p}-conversation-history-id`);
|
9851
9851
|
return;
|
9852
9852
|
}
|
9853
|
-
if (!
|
9854
|
-
throw new Error(`HTTPError: ${
|
9855
|
-
const
|
9853
|
+
if (!x.ok)
|
9854
|
+
throw new Error(`HTTPError: ${x.status} ${x.statusText}`);
|
9855
|
+
const I = await x.json();
|
9856
9856
|
j(
|
9857
|
-
|
9858
|
-
...
|
9857
|
+
I.map((O) => ({
|
9858
|
+
...O,
|
9859
9859
|
disableFeedback: !0
|
9860
9860
|
}))
|
9861
|
-
),
|
9862
|
-
} catch (
|
9863
|
-
console.error(
|
9861
|
+
), ne(!0);
|
9862
|
+
} catch (L) {
|
9863
|
+
console.error(L);
|
9864
9864
|
} finally {
|
9865
9865
|
_(!1);
|
9866
9866
|
}
|
9867
9867
|
}, [p, o]);
|
9868
|
-
|
9868
|
+
ye(() => (se(), document.addEventListener("visibilitychange", se), () => {
|
9869
9869
|
document.removeEventListener(
|
9870
9870
|
"visibilitychange",
|
9871
9871
|
se
|
9872
9872
|
);
|
9873
|
-
}), [se]),
|
9873
|
+
}), [se]), ye(() => {
|
9874
9874
|
console.log("Chatbot - mount");
|
9875
|
-
let
|
9876
|
-
return s && (
|
9877
|
-
var
|
9878
|
-
console.log("Chatbot - intervalCheckForScripts"), (
|
9879
|
-
}, 1e3),
|
9880
|
-
clearInterval(
|
9875
|
+
let L, x;
|
9876
|
+
return s && (L = setInterval(() => {
|
9877
|
+
var O;
|
9878
|
+
console.log("Chatbot - intervalCheckForScripts"), (O = window.analytics) != null && O.track && (!u || u && window.optimizely && window.experiments) && (console.log("Chatbot - intervalCheckForScripts all found"), re.current = window.analytics, clearInterval(L), clearTimeout(x), w(!0));
|
9879
|
+
}, 1e3), x = setTimeout(() => {
|
9880
|
+
clearInterval(L);
|
9881
9881
|
}, 6e4)), () => {
|
9882
|
-
console.log("Chatbot - unmount"), clearInterval(
|
9882
|
+
console.log("Chatbot - unmount"), clearInterval(L), clearTimeout(x);
|
9883
9883
|
};
|
9884
|
-
}, [u, s]),
|
9885
|
-
const
|
9886
|
-
var
|
9887
|
-
(
|
9884
|
+
}, [u, s]), ye(() => {
|
9885
|
+
const L = (I) => {
|
9886
|
+
var O, $;
|
9887
|
+
(O = I == null ? void 0 : I.target) != null && O.href && W({
|
9888
9888
|
name: `${s}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
|
9889
9889
|
payload: {
|
9890
9890
|
category: "2u",
|
9891
9891
|
label: "xpert-chatbot",
|
9892
|
-
link: (
|
9893
|
-
isTestUser:
|
9892
|
+
link: ($ = I == null ? void 0 : I.target) == null ? void 0 : $.href,
|
9893
|
+
isTestUser: te
|
9894
9894
|
}
|
9895
9895
|
});
|
9896
|
-
},
|
9897
|
-
return
|
9898
|
-
|
9896
|
+
}, x = le.current;
|
9897
|
+
return x && x.addEventListener("click", L), () => {
|
9898
|
+
x == null || x.removeEventListener("click", L);
|
9899
9899
|
};
|
9900
9900
|
});
|
9901
9901
|
const he = yl(u);
|
@@ -9903,210 +9903,219 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9903
9903
|
return console.log("Chatbot - xpertKey or configuration is required"), null;
|
9904
9904
|
if (!(i != null && i.xpertKey))
|
9905
9905
|
return console.log(`Chatbot - configuration not found for xpertkey: ${e}`), null;
|
9906
|
-
if (u && he !== "A" && !
|
9906
|
+
if (u && he !== "A" && !te)
|
9907
9907
|
return u && he !== "A" && console.log(
|
9908
9908
|
`Chatbot - Experiment not setup: ${i.xpertKey}, ${he}, ${window.optimizely}`
|
9909
|
-
),
|
9910
|
-
`Chatbot - Test user not setup: ${i.xpertKey}, ${
|
9909
|
+
), te || console.log(
|
9910
|
+
`Chatbot - Test user not setup: ${i.xpertKey}, ${te}`
|
9911
9911
|
), null;
|
9912
9912
|
if (!p)
|
9913
9913
|
return console.log(
|
9914
9914
|
`Chatbot - Cookie name prefix not setup: ${i.xpertKey}, ${i.cookieNamePrefix}`
|
9915
9915
|
), null;
|
9916
|
-
if (s && !((bt =
|
9916
|
+
if (s && !((bt = re == null ? void 0 : re.current) != null && bt.track) && !t)
|
9917
9917
|
return console.log(
|
9918
9918
|
`Chatbot - Segment not setup: ${i.xpertKey}`
|
9919
9919
|
), null;
|
9920
9920
|
console.log(
|
9921
9921
|
`Chatbot - All things setup: ${i.xpertKey}, ${typeof window.analytics}, ${he}, ${typeof window.optimizely}, ${typeof window.experiments}`
|
9922
9922
|
);
|
9923
|
-
const
|
9923
|
+
const ve = () => {
|
9924
9924
|
E(""), h.current.value = "", h.current.style.height = "auto";
|
9925
|
-
},
|
9926
|
-
|
9925
|
+
}, Ee = (L) => {
|
9926
|
+
W({
|
9927
9927
|
name: `${s}.bi.xpert.chatbot.popup.chat.message.response`,
|
9928
9928
|
payload: {
|
9929
9929
|
category: "2u",
|
9930
9930
|
label: "xpert-chatbot",
|
9931
|
-
linkCount: gu(
|
9932
|
-
apiResponseMessage:
|
9933
|
-
isTestUser:
|
9931
|
+
linkCount: gu(L),
|
9932
|
+
apiResponseMessage: L,
|
9933
|
+
isTestUser: te
|
9934
9934
|
}
|
9935
9935
|
});
|
9936
|
-
},
|
9937
|
-
conversationSize:
|
9938
|
-
userInputMessage:
|
9939
|
-
apiResponseMessage:
|
9940
|
-
elapsedSeconds:
|
9936
|
+
}, Ve = ({
|
9937
|
+
conversationSize: L,
|
9938
|
+
userInputMessage: x,
|
9939
|
+
apiResponseMessage: I,
|
9940
|
+
elapsedSeconds: O
|
9941
9941
|
}) => {
|
9942
|
-
|
9942
|
+
W({
|
9943
9943
|
name: `${s}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
|
9944
9944
|
payload: {
|
9945
9945
|
category: "2u",
|
9946
9946
|
label: "xpert-chatbot",
|
9947
|
-
isTestUser:
|
9948
|
-
conversationSize:
|
9949
|
-
userInputMessage:
|
9950
|
-
apiResponseMessage:
|
9951
|
-
elapsedSeconds:
|
9947
|
+
isTestUser: te,
|
9948
|
+
conversationSize: L,
|
9949
|
+
userInputMessage: x,
|
9950
|
+
apiResponseMessage: I,
|
9951
|
+
elapsedSeconds: O
|
9952
9952
|
}
|
9953
9953
|
});
|
9954
|
-
},
|
9955
|
-
|
9954
|
+
}, ht = (L) => {
|
9955
|
+
L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(), ze(q), N(!0));
|
9956
9956
|
}, nn = () => {
|
9957
|
-
|
9958
|
-
},
|
9957
|
+
ze(q), N(!0);
|
9958
|
+
}, ze = async (L) => {
|
9959
9959
|
try {
|
9960
|
-
if (
|
9960
|
+
if (L.trim().length === 0)
|
9961
9961
|
return;
|
9962
|
-
const
|
9963
|
-
|
9964
|
-
const
|
9965
|
-
|
9962
|
+
const x = /* @__PURE__ */ new Date();
|
9963
|
+
z(!1);
|
9964
|
+
const I = v.filter((ae) => ae.role === "user").length + 1;
|
9965
|
+
W({
|
9966
9966
|
name: `${s}.bi.xpert.chatbot.popup.chat.message.sent`,
|
9967
9967
|
payload: {
|
9968
9968
|
category: "2u",
|
9969
9969
|
label: "xpert-chatbot",
|
9970
|
-
totalUserInputMessagesSent:
|
9971
|
-
userInputMessage:
|
9972
|
-
isTestUser:
|
9970
|
+
totalUserInputMessagesSent: I,
|
9971
|
+
userInputMessage: L,
|
9972
|
+
isTestUser: te
|
9973
9973
|
}
|
9974
|
-
}),
|
9975
|
-
let
|
9976
|
-
!
|
9974
|
+
}), ve();
|
9975
|
+
let O = De.get(`${p}-conversation-history-id`) || "";
|
9976
|
+
!O && (b != null && b.enabled) ? j([
|
9977
9977
|
{
|
9978
9978
|
role: "user",
|
9979
|
-
content:
|
9979
|
+
content: L
|
9980
9980
|
}
|
9981
9981
|
]) : j([
|
9982
|
-
...
|
9982
|
+
...v,
|
9983
9983
|
{
|
9984
9984
|
role: "user",
|
9985
|
-
content:
|
9985
|
+
content: L
|
9986
9986
|
}
|
9987
9987
|
]), _(!0);
|
9988
|
-
const
|
9988
|
+
const $ = await fetch(o, {
|
9989
9989
|
method: "POST",
|
9990
9990
|
headers: {
|
9991
9991
|
"Content-Type": "application/json",
|
9992
|
-
"Conversation-History-Id":
|
9992
|
+
"Conversation-History-Id": O
|
9993
9993
|
},
|
9994
9994
|
body: JSON.stringify({
|
9995
9995
|
message_list: [
|
9996
|
-
...
|
9996
|
+
...v,
|
9997
9997
|
{
|
9998
9998
|
role: "user",
|
9999
|
-
content:
|
9999
|
+
content: L
|
10000
10000
|
}
|
10001
|
-
].map((
|
10002
|
-
role:
|
10003
|
-
content:
|
10001
|
+
].map((ae) => ({
|
10002
|
+
role: ae.role,
|
10003
|
+
content: ae.content
|
10004
10004
|
})),
|
10005
10005
|
context: {
|
10006
10006
|
uri: i.isLiveChatEnabled ? "five9_faq" : void 0
|
10007
10007
|
}
|
10008
10008
|
})
|
10009
10009
|
});
|
10010
|
-
if (
|
10011
|
-
throw new Error(`HTTPError: ${
|
10012
|
-
|
10010
|
+
if (!$.ok)
|
10011
|
+
throw new Error(`HTTPError: ${$.status} ${$.statusText}`);
|
10012
|
+
O = $.headers.get("Conversation-History-Id"), O && De.set(
|
10013
10013
|
`${p}-conversation-history-id`,
|
10014
|
-
|
10014
|
+
O,
|
10015
10015
|
{ expires: 1 }
|
10016
10016
|
);
|
10017
|
-
const
|
10018
|
-
|
10019
|
-
const
|
10020
|
-
|
10021
|
-
conversationSize:
|
10022
|
-
userInputMessage:
|
10023
|
-
apiResponseMessage:
|
10024
|
-
elapsedSeconds: mu(
|
10025
|
-
}), j((
|
10026
|
-
...
|
10017
|
+
const ce = (await $.json()).content;
|
10018
|
+
Ee(ce);
|
10019
|
+
const Ne = /* @__PURE__ */ new Date();
|
10020
|
+
Ve({
|
10021
|
+
conversationSize: v.length + 2,
|
10022
|
+
userInputMessage: L,
|
10023
|
+
apiResponseMessage: ce,
|
10024
|
+
elapsedSeconds: mu(x, Ne)
|
10025
|
+
}), j((ae) => [
|
10026
|
+
...ae,
|
10027
10027
|
{
|
10028
10028
|
role: "assistant",
|
10029
|
-
content:
|
10029
|
+
content: ce,
|
10030
10030
|
createdAt: /* @__PURE__ */ new Date()
|
10031
10031
|
}
|
10032
|
-
]),
|
10033
|
-
} catch (
|
10034
|
-
|
10032
|
+
]), ne(!1);
|
10033
|
+
} catch (x) {
|
10034
|
+
z(!0), console.error(x);
|
10035
10035
|
} finally {
|
10036
|
-
_(!1),
|
10036
|
+
_(!1), ve();
|
10037
10037
|
}
|
10038
10038
|
}, rn = () => {
|
10039
|
-
Q(!1), A(!0),
|
10039
|
+
Q(!1), A(!0), W({
|
10040
10040
|
name: `${s}.bi.xpert.chatbot.action.button.clicked`,
|
10041
10041
|
payload: {
|
10042
10042
|
category: "2u",
|
10043
10043
|
label: "xpert-chatbot",
|
10044
|
-
isTestUser:
|
10044
|
+
isTestUser: te
|
10045
10045
|
}
|
10046
10046
|
});
|
10047
|
-
},
|
10048
|
-
|
10047
|
+
}, gt = (L) => {
|
10048
|
+
W({
|
10049
|
+
name: `${s}.bi.xpert.chatbot.${L ? "normal" : "expand"}.size.button.clicked`,
|
10050
|
+
payload: {
|
10051
|
+
category: "2u",
|
10052
|
+
label: "xpert-chatbot",
|
10053
|
+
isTestUser: te
|
10054
|
+
}
|
10055
|
+
}), Y(L);
|
10056
|
+
}, mt = () => {
|
10057
|
+
A(!0), W({
|
10049
10058
|
name: `${s}.bi.xpert.chatbot.proactive.message.clicked`,
|
10050
10059
|
payload: {
|
10051
10060
|
category: "2u",
|
10052
10061
|
label: "xpert-chatbot",
|
10053
|
-
isTestUser:
|
10062
|
+
isTestUser: te
|
10054
10063
|
}
|
10055
10064
|
});
|
10056
|
-
},
|
10057
|
-
|
10065
|
+
}, yt = () => {
|
10066
|
+
W({
|
10058
10067
|
name: `${s}.bi.xpert.chatbot.proactive.message.closed`,
|
10059
10068
|
payload: {
|
10060
10069
|
category: "2u",
|
10061
10070
|
label: "xpert-chatbot",
|
10062
|
-
isTestUser:
|
10071
|
+
isTestUser: te
|
10063
10072
|
}
|
10064
10073
|
});
|
10065
|
-
},
|
10066
|
-
A(!1),
|
10074
|
+
}, on = () => {
|
10075
|
+
A(!1), W({
|
10067
10076
|
name: `${s}.bi.xpert.chatbot.popup.disclaimer.closed`,
|
10068
10077
|
payload: {
|
10069
10078
|
category: "2u",
|
10070
10079
|
label: "xpert-chatbot",
|
10071
|
-
isTestUser:
|
10080
|
+
isTestUser: te
|
10072
10081
|
}
|
10073
10082
|
});
|
10074
|
-
},
|
10075
|
-
A(!1),
|
10083
|
+
}, Mt = () => {
|
10084
|
+
A(!1), X(!1), W({
|
10076
10085
|
name: `${s}.bi.xpert.chatbot.popup.chat.minimized`,
|
10077
10086
|
payload: {
|
10078
10087
|
category: "2u",
|
10079
10088
|
label: "xpert-chatbot",
|
10080
|
-
isTestUser:
|
10089
|
+
isTestUser: te
|
10081
10090
|
}
|
10082
10091
|
});
|
10083
|
-
},
|
10084
|
-
var
|
10092
|
+
}, We = () => {
|
10093
|
+
var L;
|
10085
10094
|
/* istanbul ignore next @preserve */
|
10086
10095
|
h.current && (h.current.style.height = "auto", h.current.style.height = `${Math.min(
|
10087
|
-
(
|
10096
|
+
(L = h.current) == null ? void 0 : L.scrollHeight,
|
10088
10097
|
120
|
10089
10098
|
)}px`);
|
10090
|
-
},
|
10091
|
-
E(
|
10092
|
-
}, ln = (
|
10093
|
-
|
10094
|
-
}, an = (
|
10095
|
-
const
|
10096
|
-
name: `${s}.bi.xpert.chatbot.feedback.thumbs.${
|
10099
|
+
}, xt = (L) => {
|
10100
|
+
E(L.target.value);
|
10101
|
+
}, ln = (L) => {
|
10102
|
+
L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(), ze(q));
|
10103
|
+
}, an = (L, x = "") => {
|
10104
|
+
const I = v.map((O, $) => L === $ ? (W({
|
10105
|
+
name: `${s}.bi.xpert.chatbot.feedback.thumbs.${x.toLowerCase()}.clicked`,
|
10097
10106
|
payload: {
|
10098
10107
|
category: "2u",
|
10099
10108
|
label: "xpert-chatbot",
|
10100
|
-
userInputMessage:
|
10101
|
-
apiResponseMessageIndex:
|
10102
|
-
apiResponseMessage:
|
10103
|
-
isTestUser:
|
10109
|
+
userInputMessage: v[L - 1],
|
10110
|
+
apiResponseMessageIndex: L,
|
10111
|
+
apiResponseMessage: v[L],
|
10112
|
+
isTestUser: te
|
10104
10113
|
}
|
10105
10114
|
}), {
|
10106
|
-
...
|
10107
|
-
feedbackThumbType:
|
10108
|
-
}) :
|
10109
|
-
j(
|
10115
|
+
...O,
|
10116
|
+
feedbackThumbType: x
|
10117
|
+
}) : O);
|
10118
|
+
j(I), ne(!1);
|
10110
10119
|
};
|
10111
10120
|
return (
|
10112
10121
|
// do not remove this class as it's needed to turn off chatbot
|
@@ -10116,8 +10125,8 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10116
10125
|
{
|
10117
10126
|
showMessage: !y,
|
10118
10127
|
style: S ? { ...l.mobile } : { ...l },
|
10119
|
-
onClose:
|
10120
|
-
onClick:
|
10128
|
+
onClose: yt,
|
10129
|
+
onClick: mt,
|
10121
10130
|
cookieName: `${p}-proactive-message-xpert-chatbot`,
|
10122
10131
|
cookieDomainName: c,
|
10123
10132
|
children: /* @__PURE__ */ D.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ D.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
|
@@ -10158,22 +10167,22 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10158
10167
|
)
|
10159
10168
|
}
|
10160
10169
|
),
|
10161
|
-
y && !U && /* @__PURE__ */ D.jsx(Bt, { isNormalSize: F, isMounted:
|
10170
|
+
y && !U && /* @__PURE__ */ D.jsx(Bt, { isNormalSize: F, isMounted: V, children: /* @__PURE__ */ D.jsx(
|
10162
10171
|
"div",
|
10163
10172
|
{
|
10164
|
-
ref:
|
10173
|
+
ref: le,
|
10165
10174
|
style: { display: "flex", flexDirection: "column", height: "100%" },
|
10166
10175
|
"aria-label": "XPERT Chatbot Popup",
|
10167
10176
|
role: "dialog",
|
10168
|
-
children: M || T ||
|
10177
|
+
children: M || T || v.length > 0 ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
|
10169
10178
|
/* @__PURE__ */ D.jsx(
|
10170
10179
|
Jo,
|
10171
10180
|
{
|
10172
|
-
onClose:
|
10173
|
-
isMounted:
|
10181
|
+
onClose: Mt,
|
10182
|
+
isMounted: V,
|
10174
10183
|
isNormalSize: F,
|
10175
|
-
setIsMounted:
|
10176
|
-
setIsNormalSize:
|
10184
|
+
setIsMounted: X,
|
10185
|
+
setIsNormalSize: gt,
|
10177
10186
|
configurations: i
|
10178
10187
|
}
|
10179
10188
|
),
|
@@ -10181,11 +10190,11 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10181
10190
|
/* @__PURE__ */ D.jsx(
|
10182
10191
|
zf,
|
10183
10192
|
{
|
10184
|
-
messages:
|
10193
|
+
messages: v,
|
10185
10194
|
loading: B,
|
10186
10195
|
isNormalSize: S || F,
|
10187
10196
|
onFeedbackThumbSelection: an,
|
10188
|
-
onPromptClick:
|
10197
|
+
onPromptClick: ze,
|
10189
10198
|
showDisclaimerText: T,
|
10190
10199
|
configurations: i
|
10191
10200
|
}
|
@@ -10198,9 +10207,9 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10198
10207
|
dr,
|
10199
10208
|
{
|
10200
10209
|
configurations: i,
|
10201
|
-
submitEvent:
|
10210
|
+
submitEvent: W,
|
10202
10211
|
setLiveChatOpen: Q,
|
10203
|
-
isTestUser:
|
10212
|
+
isTestUser: te
|
10204
10213
|
}
|
10205
10214
|
),
|
10206
10215
|
/* @__PURE__ */ D.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ D.jsx(
|
@@ -10210,9 +10219,9 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10210
10219
|
inputRef: h,
|
10211
10220
|
hasError: C,
|
10212
10221
|
userInput: q,
|
10213
|
-
handleSend:
|
10214
|
-
handleInput:
|
10215
|
-
handleChange:
|
10222
|
+
handleSend: ze,
|
10223
|
+
handleInput: We,
|
10224
|
+
handleChange: xt,
|
10216
10225
|
handleKeyDown: ln,
|
10217
10226
|
configurations: i
|
10218
10227
|
}
|
@@ -10221,15 +10230,15 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10221
10230
|
] }) : /* @__PURE__ */ D.jsx(
|
10222
10231
|
ao,
|
10223
10232
|
{
|
10224
|
-
onClose:
|
10233
|
+
onClose: on,
|
10225
10234
|
loading: B,
|
10226
10235
|
inputRef: h,
|
10227
10236
|
hasError: C,
|
10228
10237
|
userInput: q,
|
10229
10238
|
handleSend: nn,
|
10230
|
-
handleInput:
|
10231
|
-
handleChange:
|
10232
|
-
handleKeyDown:
|
10239
|
+
handleInput: We,
|
10240
|
+
handleChange: xt,
|
10241
|
+
handleKeyDown: ht,
|
10233
10242
|
configurations: i
|
10234
10243
|
}
|
10235
10244
|
)
|