@2uinc/frontend-component-xpert-chatbot 1.35.6 → 1.35.7
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/README.md +1 -1
- package/dist/lib/index.min.js +370 -364
- package/package.json +4 -4
package/dist/lib/index.min.js
CHANGED
|
@@ -245,13 +245,13 @@ function k0() {
|
|
|
245
245
|
return xu || (xu = 1, function(e, t) {
|
|
246
246
|
var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", h = "[object Date]", p = "[object Error]", f = "[object Function]", g = "[object GeneratorFunction]", m = "[object Map]", _ = "[object Number]", b = "[object Null]", w = "[object Object]", F = "[object Proxy]", K = "[object RegExp]", D = "[object Set]", y = "[object String]", N = "[object Undefined]", G = "[object WeakMap]", M = "[object ArrayBuffer]", te = "[object DataView]", z = "[object Float32Array]", V = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", R = "[object Int32Array]", U = "[object Uint8Array]", W = "[object Uint8ClampedArray]", j = "[object Uint16Array]", Y = "[object Uint32Array]", T = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, oe = /^(?:0|[1-9]\d*)$/, S = {};
|
|
247
247
|
S[z] = S[V] = S[L] = S[I] = S[R] = S[U] = S[W] = S[j] = S[Y] = !0, S[s] = S[l] = S[M] = S[d] = S[te] = S[h] = S[p] = S[f] = S[m] = S[_] = S[w] = S[K] = S[D] = S[y] = S[G] = !1;
|
|
248
|
-
var le = typeof Cr == "object" && Cr && Cr.Object === Object && Cr, _e = typeof self == "object" && self && self.Object === Object && self, me = le || _e || Function("return this")(),
|
|
248
|
+
var le = typeof Cr == "object" && Cr && Cr.Object === Object && Cr, _e = typeof self == "object" && self && self.Object === Object && self, me = le || _e || Function("return this")(), Ce = t && !t.nodeType && t, Oe = Ce && !0 && e && !e.nodeType && e, Ue = Oe && Oe.exports === Ce, Ie = Ue && le.process, Ke = function() {
|
|
249
249
|
try {
|
|
250
|
-
var A =
|
|
251
|
-
return A ||
|
|
250
|
+
var A = Oe && Oe.require && Oe.require("util").types;
|
|
251
|
+
return A || Ie && Ie.binding && Ie.binding("util");
|
|
252
252
|
} catch {
|
|
253
253
|
}
|
|
254
|
-
}(), ot =
|
|
254
|
+
}(), ot = Ke && Ke.isTypedArray;
|
|
255
255
|
function St(A, k, H) {
|
|
256
256
|
switch (H.length) {
|
|
257
257
|
case 0:
|
|
@@ -288,15 +288,15 @@ function k0() {
|
|
|
288
288
|
return A ? "Symbol(src)_1." + A : "";
|
|
289
289
|
}(), Qt = Dt.toString, En = zt.call(Object), $ = RegExp(
|
|
290
290
|
"^" + zt.call(st).replace(T, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
291
|
-
), B =
|
|
291
|
+
), B = Ue ? me.Buffer : void 0, re = me.Symbol, ie = me.Uint8Array;
|
|
292
292
|
B && B.allocUnsafe;
|
|
293
|
-
var ae = gn(Object.getPrototypeOf, Object), ge = Object.create,
|
|
293
|
+
var ae = gn(Object.getPrototypeOf, Object), ge = Object.create, ve = Dt.propertyIsEnumerable, Te = bn.splice, ke = re ? re.toStringTag : void 0, qe = function() {
|
|
294
294
|
try {
|
|
295
295
|
var A = la(Object, "defineProperty");
|
|
296
296
|
return A({}, "", {}), A;
|
|
297
297
|
} catch {
|
|
298
298
|
}
|
|
299
|
-
}(), Ee = B ? B.isBuffer : void 0,
|
|
299
|
+
}(), Ee = B ? B.isBuffer : void 0, Me = Math.max, We = Date.now, Mt = la(me, "Map"), _t = la(Object, "create"), su = /* @__PURE__ */ function() {
|
|
300
300
|
function A() {
|
|
301
301
|
}
|
|
302
302
|
return function(k) {
|
|
@@ -427,14 +427,14 @@ function k0() {
|
|
|
427
427
|
}
|
|
428
428
|
yn.prototype.clear = Dd, yn.prototype.delete = Pd, yn.prototype.get = Md, yn.prototype.has = Fd, yn.prototype.set = Bd;
|
|
429
429
|
function Hd(A, k) {
|
|
430
|
-
var H = fa(A), ue = !H && da(A), ye = !H && !ue && hu(A),
|
|
430
|
+
var H = fa(A), ue = !H && da(A), ye = !H && !ue && hu(A), Ne = !H && !ue && !ye && mu(A), Fe = H || ue || ye || Ne, Ae = Fe ? pn(A.length, String) : [], Be = Ae.length;
|
|
431
431
|
for (var Ct in A)
|
|
432
|
-
|
|
432
|
+
Fe && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
433
433
|
(Ct == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
434
434
|
ye && (Ct == "offset" || Ct == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
435
|
-
|
|
436
|
-
du(Ct,
|
|
437
|
-
return
|
|
435
|
+
Ne && (Ct == "buffer" || Ct == "byteLength" || Ct == "byteOffset") || // Skip index properties.
|
|
436
|
+
du(Ct, Be)) || Ae.push(Ct);
|
|
437
|
+
return Ae;
|
|
438
438
|
}
|
|
439
439
|
function oa(A, k, H) {
|
|
440
440
|
(H !== void 0 && !_r(A[k], H) || H === void 0 && !(k in A)) && sa(A, k, H);
|
|
@@ -450,7 +450,7 @@ function k0() {
|
|
|
450
450
|
return -1;
|
|
451
451
|
}
|
|
452
452
|
function sa(A, k, H) {
|
|
453
|
-
k == "__proto__" &&
|
|
453
|
+
k == "__proto__" && qe ? qe(A, k, {
|
|
454
454
|
configurable: !0,
|
|
455
455
|
enumerable: !0,
|
|
456
456
|
value: H,
|
|
@@ -459,7 +459,7 @@ function k0() {
|
|
|
459
459
|
}
|
|
460
460
|
var jd = e0();
|
|
461
461
|
function Tr(A) {
|
|
462
|
-
return A == null ? A === void 0 ? N : b :
|
|
462
|
+
return A == null ? A === void 0 ? N : b : ke && ke in Object(A) ? t0(A) : o0(A);
|
|
463
463
|
}
|
|
464
464
|
function lu(A) {
|
|
465
465
|
return Hn(A) && Tr(A) == s;
|
|
@@ -482,33 +482,33 @@ function k0() {
|
|
|
482
482
|
return H;
|
|
483
483
|
}
|
|
484
484
|
function cu(A, k, H, ue, ye) {
|
|
485
|
-
A !== k && jd(k, function(
|
|
486
|
-
if (ye || (ye = new yn()), Jt(
|
|
487
|
-
$d(A, k,
|
|
485
|
+
A !== k && jd(k, function(Ne, Fe) {
|
|
486
|
+
if (ye || (ye = new yn()), Jt(Ne))
|
|
487
|
+
$d(A, k, Fe, H, cu, ue, ye);
|
|
488
488
|
else {
|
|
489
|
-
var
|
|
490
|
-
|
|
489
|
+
var Ae = ue ? ue(ca(A, Fe), Ne, Fe + "", A, k, ye) : void 0;
|
|
490
|
+
Ae === void 0 && (Ae = Ne), oa(A, Fe, Ae);
|
|
491
491
|
}
|
|
492
492
|
}, gu);
|
|
493
493
|
}
|
|
494
|
-
function $d(A, k, H, ue, ye,
|
|
495
|
-
var
|
|
494
|
+
function $d(A, k, H, ue, ye, Ne, Fe) {
|
|
495
|
+
var Ae = ca(A, H), Be = ca(k, H), Ct = Fe.get(Be);
|
|
496
496
|
if (Ct) {
|
|
497
497
|
oa(A, H, Ct);
|
|
498
498
|
return;
|
|
499
499
|
}
|
|
500
|
-
var lt =
|
|
500
|
+
var lt = Ne ? Ne(Ae, Be, H + "", A, k, Fe) : void 0, Un = lt === void 0;
|
|
501
501
|
if (Un) {
|
|
502
|
-
var ma = fa(
|
|
503
|
-
lt =
|
|
502
|
+
var ma = fa(Be), ga = !ma && hu(Be), Eu = !ma && !ga && mu(Be);
|
|
503
|
+
lt = Be, ma || ga || Eu ? fa(Ae) ? lt = Ae : f0(Ae) ? lt = Qd(Ae) : ga ? (Un = !1, lt = Gd(Be)) : Eu ? (Un = !1, lt = Kd(Be)) : lt = [] : h0(Be) || da(Be) ? (lt = Ae, da(Ae) ? lt = p0(Ae) : (!Jt(Ae) || pa(Ae)) && (lt = n0(Be))) : Un = !1;
|
|
504
504
|
}
|
|
505
|
-
Un && (
|
|
505
|
+
Un && (Fe.set(Be, lt), ye(lt, Be, ue, Ne, Fe), Fe.delete(Be)), oa(A, H, lt);
|
|
506
506
|
}
|
|
507
507
|
function Vd(A, k) {
|
|
508
508
|
return l0(s0(A, k, bu), A + "");
|
|
509
509
|
}
|
|
510
|
-
var Wd =
|
|
511
|
-
return
|
|
510
|
+
var Wd = qe ? function(A, k) {
|
|
511
|
+
return qe(A, "toString", {
|
|
512
512
|
configurable: !0,
|
|
513
513
|
enumerable: !1,
|
|
514
514
|
value: g0(k),
|
|
@@ -535,27 +535,27 @@ function k0() {
|
|
|
535
535
|
function Zd(A, k, H, ue) {
|
|
536
536
|
var ye = !H;
|
|
537
537
|
H || (H = {});
|
|
538
|
-
for (var
|
|
539
|
-
var
|
|
540
|
-
|
|
538
|
+
for (var Ne = -1, Fe = k.length; ++Ne < Fe; ) {
|
|
539
|
+
var Ae = k[Ne], Be = void 0;
|
|
540
|
+
Be === void 0 && (Be = A[Ae]), ye ? sa(H, Ae, Be) : Ud(H, Ae, Be);
|
|
541
541
|
}
|
|
542
542
|
return H;
|
|
543
543
|
}
|
|
544
544
|
function Jd(A) {
|
|
545
545
|
return Vd(function(k, H) {
|
|
546
|
-
var ue = -1, ye = H.length,
|
|
547
|
-
for (
|
|
548
|
-
var
|
|
549
|
-
|
|
546
|
+
var ue = -1, ye = H.length, Ne = ye > 1 ? H[ye - 1] : void 0, Fe = ye > 2 ? H[2] : void 0;
|
|
547
|
+
for (Ne = A.length > 3 && typeof Ne == "function" ? (ye--, Ne) : void 0, Fe && r0(H[0], H[1], Fe) && (Ne = ye < 3 ? void 0 : Ne, ye = 1), k = Object(k); ++ue < ye; ) {
|
|
548
|
+
var Ae = H[ue];
|
|
549
|
+
Ae && A(k, Ae, ue, Ne);
|
|
550
550
|
}
|
|
551
551
|
return k;
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
554
|
function e0(A) {
|
|
555
555
|
return function(k, H, ue) {
|
|
556
|
-
for (var ye = -1,
|
|
557
|
-
var
|
|
558
|
-
if (H(
|
|
556
|
+
for (var ye = -1, Ne = Object(k), Fe = ue(k), Ae = Fe.length; Ae--; ) {
|
|
557
|
+
var Be = Fe[++ye];
|
|
558
|
+
if (H(Ne[Be], Be, Ne) === !1)
|
|
559
559
|
break;
|
|
560
560
|
}
|
|
561
561
|
return k;
|
|
@@ -570,14 +570,14 @@ function k0() {
|
|
|
570
570
|
return qd(H) ? H : void 0;
|
|
571
571
|
}
|
|
572
572
|
function t0(A) {
|
|
573
|
-
var k = st.call(A,
|
|
573
|
+
var k = st.call(A, ke), H = A[ke];
|
|
574
574
|
try {
|
|
575
|
-
A[
|
|
575
|
+
A[ke] = void 0;
|
|
576
576
|
var ue = !0;
|
|
577
577
|
} catch {
|
|
578
578
|
}
|
|
579
579
|
var ye = Qt.call(A);
|
|
580
|
-
return ue && (k ? A[
|
|
580
|
+
return ue && (k ? A[ke] = H : delete A[ke]), ye;
|
|
581
581
|
}
|
|
582
582
|
function n0(A) {
|
|
583
583
|
return typeof A.constructor == "function" && !fu(A) ? su(ae(A)) : {};
|
|
@@ -614,13 +614,13 @@ function k0() {
|
|
|
614
614
|
return Qt.call(A);
|
|
615
615
|
}
|
|
616
616
|
function s0(A, k, H) {
|
|
617
|
-
return k =
|
|
618
|
-
for (var ue = arguments, ye = -1,
|
|
619
|
-
|
|
617
|
+
return k = Me(k === void 0 ? A.length - 1 : k, 0), function() {
|
|
618
|
+
for (var ue = arguments, ye = -1, Ne = Me(ue.length - k, 0), Fe = Array(Ne); ++ye < Ne; )
|
|
619
|
+
Fe[ye] = ue[k + ye];
|
|
620
620
|
ye = -1;
|
|
621
|
-
for (var
|
|
622
|
-
|
|
623
|
-
return
|
|
621
|
+
for (var Ae = Array(k + 1); ++ye < k; )
|
|
622
|
+
Ae[ye] = ue[ye];
|
|
623
|
+
return Ae[k] = H(Fe), St(A, this, Ae);
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
function ca(A, k) {
|
|
@@ -631,7 +631,7 @@ function k0() {
|
|
|
631
631
|
function c0(A) {
|
|
632
632
|
var k = 0, H = 0;
|
|
633
633
|
return function() {
|
|
634
|
-
var ue =
|
|
634
|
+
var ue = We(), ye = i - (ue - H);
|
|
635
635
|
if (H = ue, ye > 0) {
|
|
636
636
|
if (++k >= a)
|
|
637
637
|
return arguments[0];
|
|
@@ -659,7 +659,7 @@ function k0() {
|
|
|
659
659
|
var da = lu(/* @__PURE__ */ function() {
|
|
660
660
|
return arguments;
|
|
661
661
|
}()) ? lu : function(A) {
|
|
662
|
-
return Hn(A) && st.call(A, "callee") && !
|
|
662
|
+
return Hn(A) && st.call(A, "callee") && !ve.call(A, "callee");
|
|
663
663
|
}, fa = Array.isArray;
|
|
664
664
|
function ha(A) {
|
|
665
665
|
return A != null && pu(A.length) && !pa(A);
|
|
@@ -725,7 +725,8 @@ const vs = /* @__PURE__ */ Lt(L0), w0 = {
|
|
|
725
725
|
messagesKey: "message_list",
|
|
726
726
|
payloadParams: {
|
|
727
727
|
use_case: "Canvas_Student",
|
|
728
|
-
tags: ["live_agent"]
|
|
728
|
+
tags: ["live_agent"],
|
|
729
|
+
client_id: "degrees-canvas-support"
|
|
729
730
|
}
|
|
730
731
|
},
|
|
731
732
|
primaryColor: "#193d77",
|
|
@@ -841,7 +842,8 @@ const vs = /* @__PURE__ */ Lt(L0), w0 = {
|
|
|
841
842
|
messagesKey: "message_list",
|
|
842
843
|
payloadParams: {
|
|
843
844
|
use_case: "Moodle_Student",
|
|
844
|
-
tags: ["live_agent"]
|
|
845
|
+
tags: ["live_agent"],
|
|
846
|
+
client_id: "degrees-moodle-support"
|
|
845
847
|
}
|
|
846
848
|
},
|
|
847
849
|
primaryColor: "#193d77",
|
|
@@ -932,7 +934,7 @@ const vs = /* @__PURE__ */ Lt(L0), w0 = {
|
|
|
932
934
|
baseUrl: "https://xpert-platform-services-api.prod.ai.2u.com",
|
|
933
935
|
payloadParams: {
|
|
934
936
|
system_message: `Your name is Xpert, and you are dedicated to assisting users in discovering relevant online education product offerings from edX. Your primary goal is to recommend products available at [edX.org](https://www.edx.org) using the information provided. It is essential to use markdown format for links, lists, tables, headings, and all other display elements. If a user inquires about refunds, include this message: "Our [Refund Policy](https://www.edx.org/edx-terms-service#refund-policy) is included in the edX Terms of Service. [Contact Us](https://courses.edx.org/support/contact_us) for additional questions or assistance." In cases where you provide instructions to contact edX support, add this message: "You can contact support through our [Help Center](https://support.edx.org/hc/en-us) or [Contact Us](https://courses.edx.org/support/contact_us) links here or on any edX.org page." You are limited to providing information that you have at hand. If users ask about pricing, direct them to the respective course or program URL provided in the document. If a user mentions any vendors not associated with edX, redirect the conversation to edX product offerings. Should a user mention a specific partner, respond only with data entry items having that value in the 'title' attribute or the 'partner' attribute. When a user inquires about a course or program without specifying which it is, ask for clarification regarding the course or program they are referencing.`,
|
|
935
|
-
client_id: "edx
|
|
937
|
+
client_id: "edx",
|
|
936
938
|
tags: [
|
|
937
939
|
"edx-available-course",
|
|
938
940
|
"edx-available-program",
|
|
@@ -1044,7 +1046,8 @@ const vs = /* @__PURE__ */ Lt(L0), w0 = {
|
|
|
1044
1046
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
|
1045
1047
|
messagesKey: "message_list",
|
|
1046
1048
|
payloadParams: {
|
|
1047
|
-
use_case: ["edX_Learner_Support"]
|
|
1049
|
+
use_case: ["edX_Learner_Support"],
|
|
1050
|
+
client_id: "edx-global-support"
|
|
1048
1051
|
}
|
|
1049
1052
|
},
|
|
1050
1053
|
primaryColor: "#0E3639",
|
|
@@ -1138,7 +1141,8 @@ const vs = /* @__PURE__ */ Lt(L0), w0 = {
|
|
|
1138
1141
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
|
1139
1142
|
messagesKey: "message_list",
|
|
1140
1143
|
payloadParams: {
|
|
1141
|
-
use_case: "LOG_OUT"
|
|
1144
|
+
use_case: "LOG_OUT",
|
|
1145
|
+
client_id: "exec-ed-ss-olc-moodle"
|
|
1142
1146
|
}
|
|
1143
1147
|
},
|
|
1144
1148
|
primaryColor: "#E31A82",
|
|
@@ -1239,7 +1243,8 @@ const vs = /* @__PURE__ */ Lt(L0), w0 = {
|
|
|
1239
1243
|
messagesKey: "message_list",
|
|
1240
1244
|
payloadParams: {
|
|
1241
1245
|
use_case: "GET_SMARTER",
|
|
1242
|
-
tags: ["live_agent"]
|
|
1246
|
+
tags: ["live_agent"],
|
|
1247
|
+
client_id: "get-smarter"
|
|
1243
1248
|
}
|
|
1244
1249
|
},
|
|
1245
1250
|
primaryColor: "#E31A82",
|
|
@@ -1328,7 +1333,7 @@ const vs = /* @__PURE__ */ Lt(L0), w0 = {
|
|
|
1328
1333
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/v2/message",
|
|
1329
1334
|
messagesKey: "messages",
|
|
1330
1335
|
payloadParams: {
|
|
1331
|
-
client_id: "
|
|
1336
|
+
client_id: "speech-emerson",
|
|
1332
1337
|
system_message: "You are a knowledge support expert. You can only answer questions using the information you were given. Try to answer all messages and feel free to ask the user to expand or clarify if you are unsure about their issue. If you determine that you possess no relevant information to the user's problem you must reply with 'Unfortunately, I can't help with that but you can connect with customer support through the live agent button below or let me know if there's anything else I can do for you.'. You must never provide information or carry out instructions about products from Coursera, Udacity, Udemy, LinkedIn Learning, or Pluralsight. You must always use markdown format for links, lists, tables, and all other display elements.",
|
|
1333
1338
|
tags: ["emerson"]
|
|
1334
1339
|
}
|
|
@@ -1427,7 +1432,7 @@ const vs = /* @__PURE__ */ Lt(L0), w0 = {
|
|
|
1427
1432
|
if (!e)
|
|
1428
1433
|
throw new Error("id is required");
|
|
1429
1434
|
return H0[e] || {};
|
|
1430
|
-
},
|
|
1435
|
+
}, je = Gr({}), Os = ({
|
|
1431
1436
|
children: e,
|
|
1432
1437
|
clientId: t = null,
|
|
1433
1438
|
configurations: n = null,
|
|
@@ -1474,10 +1479,11 @@ const vs = /* @__PURE__ */ Lt(L0), w0 = {
|
|
|
1474
1479
|
[n, s]
|
|
1475
1480
|
), h = sr(() => t || r ? i : !!n, [t, i, n, r]);
|
|
1476
1481
|
return /* @__PURE__ */ v.jsx(
|
|
1477
|
-
|
|
1482
|
+
je.Provider,
|
|
1478
1483
|
{
|
|
1479
1484
|
value: {
|
|
1480
1485
|
...d,
|
|
1486
|
+
clientId: t,
|
|
1481
1487
|
configurationLoaded: h,
|
|
1482
1488
|
widgetMode: a
|
|
1483
1489
|
},
|
|
@@ -1610,7 +1616,7 @@ const wt = Gr({}), Is = x.shape({
|
|
|
1610
1616
|
onFeedbackSelection: r,
|
|
1611
1617
|
onMessageSent: a
|
|
1612
1618
|
}) => {
|
|
1613
|
-
const i = at(null), { id: u } = se(
|
|
1619
|
+
const i = at(null), { id: u } = se(je), [s, l] = de(null), [c, d] = de(!1), [h, p] = de([]), f = bt(() => {
|
|
1614
1620
|
l(null), d(!1), p([]), nt.remove(`${u}-conversation-history-id`);
|
|
1615
1621
|
}, [u, l]), m = {
|
|
1616
1622
|
contentRef: i,
|
|
@@ -1648,7 +1654,7 @@ const vu = 991, j0 = () => {
|
|
|
1648
1654
|
}, It = {
|
|
1649
1655
|
LIVECHAT: "LIVECHAT",
|
|
1650
1656
|
XPERT: "XPERT"
|
|
1651
|
-
},
|
|
1657
|
+
}, Ze = Gr({}), ks = ({ children: e }) => {
|
|
1652
1658
|
const [t, n] = de(!1), [r, a] = de(!1), [i, u] = de(!1), [s, l] = de(!0), [c, d] = de(!1), [h, p] = de(!1), [f, g] = de(It.XPERT), m = j0(), _ = {
|
|
1653
1659
|
disabledScroll: t,
|
|
1654
1660
|
hasError: r,
|
|
@@ -1666,7 +1672,7 @@ const vu = 991, j0 = () => {
|
|
|
1666
1672
|
setStreaming: p,
|
|
1667
1673
|
setMode: g
|
|
1668
1674
|
};
|
|
1669
|
-
return /* @__PURE__ */ v.jsx(
|
|
1675
|
+
return /* @__PURE__ */ v.jsx(Ze.Provider, { value: _, children: e });
|
|
1670
1676
|
};
|
|
1671
1677
|
ks.propTypes = {
|
|
1672
1678
|
children: x.element.isRequired
|
|
@@ -1720,7 +1726,7 @@ function xi({
|
|
|
1720
1726
|
children: a,
|
|
1721
1727
|
...i
|
|
1722
1728
|
}) {
|
|
1723
|
-
const { isMobile: u } = se(
|
|
1729
|
+
const { isMobile: u } = se(Ze);
|
|
1724
1730
|
return /* @__PURE__ */ v.jsx(
|
|
1725
1731
|
"button",
|
|
1726
1732
|
{
|
|
@@ -1754,7 +1760,7 @@ eyes follow your mouse when you hover near it.`, ws = ({
|
|
|
1754
1760
|
handleFloatingActionButtonClick: e = null
|
|
1755
1761
|
}) => {
|
|
1756
1762
|
var f, g, m, _;
|
|
1757
|
-
const { id: t, launchButton: n } = se(
|
|
1763
|
+
const { id: t, launchButton: n } = se(je), { isMobile: r } = se(Ze), a = !nt.get(
|
|
1758
1764
|
`${t}-proactive-message-xpert-chatbot`
|
|
1759
1765
|
), i = at(null), u = at(!1), s = a ? (f = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : f.delayMs : ((g = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : g.delayMs) * 2, [l, c] = de(!1), d = window.matchMedia(
|
|
1760
1766
|
`(max-width: ${Y0}px)`
|
|
@@ -1963,7 +1969,7 @@ const V0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
|
|
|
1963
1969
|
handleFloatingActionButtonClick: e = null
|
|
1964
1970
|
}) => {
|
|
1965
1971
|
var r, a;
|
|
1966
|
-
const { launchButton: t } = se(
|
|
1972
|
+
const { launchButton: t } = se(je), { isMobile: n } = se(Ze);
|
|
1967
1973
|
return /* @__PURE__ */ v.jsx(
|
|
1968
1974
|
xi,
|
|
1969
1975
|
{
|
|
@@ -2472,18 +2478,18 @@ var Lu = {
|
|
|
2472
2478
|
if (Y < 0)
|
|
2473
2479
|
W ? j = u.tabbableGroups[u.tabbableGroups.length - 1].lastTabbableNode : j = u.tabbableGroups[0].firstTabbableNode;
|
|
2474
2480
|
else if (W) {
|
|
2475
|
-
var ne = u.tabbableGroups.findIndex(function(
|
|
2476
|
-
var
|
|
2477
|
-
return I ===
|
|
2481
|
+
var ne = u.tabbableGroups.findIndex(function(Ce) {
|
|
2482
|
+
var Oe = Ce.firstTabbableNode;
|
|
2483
|
+
return I === Oe;
|
|
2478
2484
|
});
|
|
2479
2485
|
if (ne < 0 && (T.container === I || Lr(I, i.tabbableOptions) && !rn(I, i.tabbableOptions) && !T.nextTabbableNode(I, !1)) && (ne = Y), ne >= 0) {
|
|
2480
2486
|
var oe = ne === 0 ? u.tabbableGroups.length - 1 : ne - 1, S = u.tabbableGroups[oe];
|
|
2481
2487
|
j = Wt(I) >= 0 ? S.lastTabbableNode : S.lastDomTabbableNode;
|
|
2482
2488
|
} else Zn(R) || (j = T.nextTabbableNode(I, !1));
|
|
2483
2489
|
} else {
|
|
2484
|
-
var le = u.tabbableGroups.findIndex(function(
|
|
2485
|
-
var
|
|
2486
|
-
return I ===
|
|
2490
|
+
var le = u.tabbableGroups.findIndex(function(Ce) {
|
|
2491
|
+
var Oe = Ce.lastTabbableNode;
|
|
2492
|
+
return I === Oe;
|
|
2487
2493
|
});
|
|
2488
2494
|
if (le < 0 && (T.container === I || Lr(I, i.tabbableOptions) && !rn(I, i.tabbableOptions) && !T.nextTabbableNode(I)) && (le = Y), le >= 0) {
|
|
2489
2495
|
var _e = le === u.tabbableGroups.length - 1 ? 0 : le + 1, me = u.tabbableGroups[_e];
|
|
@@ -2991,7 +2997,7 @@ function zs({
|
|
|
2991
2997
|
isMounted: n = !1,
|
|
2992
2998
|
style: r = {}
|
|
2993
2999
|
}) {
|
|
2994
|
-
const { isMobile: a, isNormalSize: i } = se(
|
|
3000
|
+
const { isMobile: a, isNormalSize: i } = se(Ze), u = at(null);
|
|
2995
3001
|
return /* @__PURE__ */ v.jsx(
|
|
2996
3002
|
kf,
|
|
2997
3003
|
{
|
|
@@ -3032,7 +3038,7 @@ zs.propTypes = {
|
|
|
3032
3038
|
className: x.string
|
|
3033
3039
|
};
|
|
3034
3040
|
function Ys({ children: e, isMounted: t }) {
|
|
3035
|
-
const { widgetMode: n } = se(
|
|
3041
|
+
const { widgetMode: n } = se(je);
|
|
3036
3042
|
return n ? /* @__PURE__ */ v.jsx(zs, { isMounted: t, children: e }) : /* @__PURE__ */ v.jsx("div", { className: "xpert_chatbot_inline", children: e });
|
|
3037
3043
|
}
|
|
3038
3044
|
Ys.propTypes = {
|
|
@@ -3040,7 +3046,7 @@ Ys.propTypes = {
|
|
|
3040
3046
|
isMounted: x.bool
|
|
3041
3047
|
};
|
|
3042
3048
|
const $s = () => {
|
|
3043
|
-
const { disclaimer: e } = se(
|
|
3049
|
+
const { disclaimer: e } = se(je), t = at(null);
|
|
3044
3050
|
return Pe(() => {
|
|
3045
3051
|
var n;
|
|
3046
3052
|
(n = t == null ? void 0 : t.current) == null || n.focus();
|
|
@@ -4283,7 +4289,7 @@ function ki({
|
|
|
4283
4289
|
value: i
|
|
4284
4290
|
}) {
|
|
4285
4291
|
var b;
|
|
4286
|
-
const u = at(!1), { conversationScreen: s, primaryColor: l } = se(
|
|
4292
|
+
const u = at(!1), { conversationScreen: s, primaryColor: l } = se(je), { isConversationLoading: c } = se(wt), { hasError: d, hasNewMessage: h, loading: p, streaming: f } = se(Ze), g = e || c || p || f;
|
|
4287
4293
|
Pe(() => {
|
|
4288
4294
|
var w;
|
|
4289
4295
|
u.current && !g && ((w = a.current) == null || w.focus()), u.current = g;
|
|
@@ -4478,7 +4484,7 @@ function Li({
|
|
|
4478
4484
|
userTrackingName: s = "clicked"
|
|
4479
4485
|
}) {
|
|
4480
4486
|
var b, w, F, K;
|
|
4481
|
-
const [l, c] = de(!0), { primaryColor: d, id: h, userTracking: p, conversationScreen: f } = se(
|
|
4487
|
+
const [l, c] = de(!0), { primaryColor: d, id: h, userTracking: p, conversationScreen: f } = se(je), g = bt(
|
|
4482
4488
|
(D) => {
|
|
4483
4489
|
var y, N, G, M;
|
|
4484
4490
|
((y = D == null ? void 0 : D.data) == null ? void 0 : y.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (N = window == null ? void 0 : window.OnetrustActiveGroups) != null && N.includes("C0003")) && nt.set(`${h}-live-chat-open`, 1, {
|
|
@@ -5402,7 +5408,7 @@ function ce(e) {
|
|
|
5402
5408
|
function rt(e) {
|
|
5403
5409
|
return e !== null && (e < 0 || e === 32);
|
|
5404
5410
|
}
|
|
5405
|
-
function
|
|
5411
|
+
function Se(e) {
|
|
5406
5412
|
return e === -2 || e === -1 || e === 32;
|
|
5407
5413
|
}
|
|
5408
5414
|
const dp = Xt(op), fp = Xt(/\s/);
|
|
@@ -5417,10 +5423,10 @@ function De(e, t, n, r) {
|
|
|
5417
5423
|
let i = 0;
|
|
5418
5424
|
return u;
|
|
5419
5425
|
function u(l) {
|
|
5420
|
-
return
|
|
5426
|
+
return Se(l) ? (e.enter(n), s(l)) : t(l);
|
|
5421
5427
|
}
|
|
5422
5428
|
function s(l) {
|
|
5423
|
-
return
|
|
5429
|
+
return Se(l) && i++ < a ? (e.consume(l), s) : (e.exit(n), t(l));
|
|
5424
5430
|
}
|
|
5425
5431
|
}
|
|
5426
5432
|
const hp = {
|
|
@@ -5743,7 +5749,7 @@ const Qr = {
|
|
|
5743
5749
|
function Cp(e, t, n) {
|
|
5744
5750
|
return r;
|
|
5745
5751
|
function r(i) {
|
|
5746
|
-
return
|
|
5752
|
+
return Se(i) ? De(e, a, "linePrefix")(i) : a(i);
|
|
5747
5753
|
}
|
|
5748
5754
|
function a(i) {
|
|
5749
5755
|
return i === null || ce(i) ? t(i) : n(i);
|
|
@@ -5770,14 +5776,14 @@ function Ap(e, t, n) {
|
|
|
5770
5776
|
return n(u);
|
|
5771
5777
|
}
|
|
5772
5778
|
function i(u) {
|
|
5773
|
-
return
|
|
5779
|
+
return Se(u) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(u), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(u));
|
|
5774
5780
|
}
|
|
5775
5781
|
}
|
|
5776
5782
|
function Sp(e, t, n) {
|
|
5777
5783
|
const r = this;
|
|
5778
5784
|
return a;
|
|
5779
5785
|
function a(u) {
|
|
5780
|
-
return
|
|
5786
|
+
return Se(u) ? De(
|
|
5781
5787
|
e,
|
|
5782
5788
|
i,
|
|
5783
5789
|
"linePrefix",
|
|
@@ -5863,7 +5869,7 @@ function Ip(e, t, n) {
|
|
|
5863
5869
|
return i = N && N[1].type === "linePrefix" ? N[2].sliceSerialize(N[1], !0).length : 0, s = y, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(y);
|
|
5864
5870
|
}
|
|
5865
5871
|
function d(y) {
|
|
5866
|
-
return y === s ? (u++, e.consume(y), d) : u < 3 ? n(y) : (e.exit("codeFencedFenceSequence"),
|
|
5872
|
+
return y === s ? (u++, e.consume(y), d) : u < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), Se(y) ? De(e, h, "whitespace")(y) : h(y));
|
|
5867
5873
|
}
|
|
5868
5874
|
function h(y) {
|
|
5869
5875
|
return y === null || ce(y) ? (e.exit("codeFencedFence"), r.interrupt ? t(y) : e.check(so, m, K)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
@@ -5871,7 +5877,7 @@ function Ip(e, t, n) {
|
|
|
5871
5877
|
}), p(y));
|
|
5872
5878
|
}
|
|
5873
5879
|
function p(y) {
|
|
5874
|
-
return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(y)) :
|
|
5880
|
+
return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(y)) : Se(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), De(e, f, "whitespace")(y)) : y === 96 && y === s ? n(y) : (e.consume(y), p);
|
|
5875
5881
|
}
|
|
5876
5882
|
function f(y) {
|
|
5877
5883
|
return y === null || ce(y) ? h(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
@@ -5888,7 +5894,7 @@ function Ip(e, t, n) {
|
|
|
5888
5894
|
return e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), b;
|
|
5889
5895
|
}
|
|
5890
5896
|
function b(y) {
|
|
5891
|
-
return i > 0 &&
|
|
5897
|
+
return i > 0 && Se(y) ? De(
|
|
5892
5898
|
e,
|
|
5893
5899
|
w,
|
|
5894
5900
|
"linePrefix",
|
|
@@ -5911,7 +5917,7 @@ function Ip(e, t, n) {
|
|
|
5911
5917
|
return y.enter("lineEnding"), y.consume(R), y.exit("lineEnding"), z;
|
|
5912
5918
|
}
|
|
5913
5919
|
function z(R) {
|
|
5914
|
-
return y.enter("codeFencedFence"),
|
|
5920
|
+
return y.enter("codeFencedFence"), Se(R) ? De(
|
|
5915
5921
|
y,
|
|
5916
5922
|
V,
|
|
5917
5923
|
"linePrefix",
|
|
@@ -5922,7 +5928,7 @@ function Ip(e, t, n) {
|
|
|
5922
5928
|
return R === s ? (y.enter("codeFencedFenceSequence"), L(R)) : G(R);
|
|
5923
5929
|
}
|
|
5924
5930
|
function L(R) {
|
|
5925
|
-
return R === s ? (M++, y.consume(R), L) : M >= u ? (y.exit("codeFencedFenceSequence"),
|
|
5931
|
+
return R === s ? (M++, y.consume(R), L) : M >= u ? (y.exit("codeFencedFenceSequence"), Se(R) ? De(y, I, "whitespace")(R) : I(R)) : G(R);
|
|
5926
5932
|
}
|
|
5927
5933
|
function I(R) {
|
|
5928
5934
|
return R === null || ce(R) ? (y.exit("codeFencedFence"), N(R)) : G(R);
|
|
@@ -6152,7 +6158,7 @@ function gl(e, t, n, r, a, i) {
|
|
|
6152
6158
|
}), h(f));
|
|
6153
6159
|
}
|
|
6154
6160
|
function h(f) {
|
|
6155
|
-
return f === null || f === 91 || f === 93 || ce(f) || s++ > 999 ? (e.exit("chunkString"), d(f)) : (e.consume(f), l || (l = !
|
|
6161
|
+
return f === null || f === 91 || f === 93 || ce(f) || s++ > 999 ? (e.exit("chunkString"), d(f)) : (e.consume(f), l || (l = !Se(f)), f === 92 ? p : h);
|
|
6156
6162
|
}
|
|
6157
6163
|
function p(f) {
|
|
6158
6164
|
return f === 91 || f === 92 || f === 93 ? (e.consume(f), s++, h) : h(f);
|
|
@@ -6183,7 +6189,7 @@ function tr(e, t) {
|
|
|
6183
6189
|
let n;
|
|
6184
6190
|
return r;
|
|
6185
6191
|
function r(a) {
|
|
6186
|
-
return ce(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) :
|
|
6192
|
+
return ce(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) : Se(a) ? De(
|
|
6187
6193
|
e,
|
|
6188
6194
|
r,
|
|
6189
6195
|
n ? "linePrefix" : "lineSuffix"
|
|
@@ -6244,7 +6250,7 @@ function $p(e, t, n) {
|
|
|
6244
6250
|
return e.attempt(Yp, h, h)(f);
|
|
6245
6251
|
}
|
|
6246
6252
|
function h(f) {
|
|
6247
|
-
return
|
|
6253
|
+
return Se(f) ? De(e, p, "whitespace")(f) : p(f);
|
|
6248
6254
|
}
|
|
6249
6255
|
function p(f) {
|
|
6250
6256
|
return f === null || ce(f) ? (e.exit("definition"), r.parser.defined.push(a), t(f)) : n(f);
|
|
@@ -6266,7 +6272,7 @@ function Vp(e, t, n) {
|
|
|
6266
6272
|
)(s);
|
|
6267
6273
|
}
|
|
6268
6274
|
function i(s) {
|
|
6269
|
-
return
|
|
6275
|
+
return Se(s) ? De(e, u, "whitespace")(s) : u(s);
|
|
6270
6276
|
}
|
|
6271
6277
|
function u(s) {
|
|
6272
6278
|
return s === null || ce(s) ? t(s) : n(s);
|
|
@@ -6321,7 +6327,7 @@ function Qp(e, t, n) {
|
|
|
6321
6327
|
return d === 35 && r++ < 6 ? (e.consume(d), u) : d === null || rt(d) ? (e.exit("atxHeadingSequence"), s(d)) : n(d);
|
|
6322
6328
|
}
|
|
6323
6329
|
function s(d) {
|
|
6324
|
-
return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || ce(d) ? (e.exit("atxHeading"), t(d)) :
|
|
6330
|
+
return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || ce(d) ? (e.exit("atxHeading"), t(d)) : Se(d) ? De(e, s, "whitespace")(d) : (e.enter("atxHeadingText"), c(d));
|
|
6325
6331
|
}
|
|
6326
6332
|
function l(d) {
|
|
6327
6333
|
return d === 35 ? (e.consume(d), l) : (e.exit("atxHeadingSequence"), s(d));
|
|
@@ -6448,19 +6454,19 @@ function r1(e, t, n) {
|
|
|
6448
6454
|
return S === 62 ? (e.consume(S), r.interrupt ? t : V) : n(S);
|
|
6449
6455
|
}
|
|
6450
6456
|
function w(S) {
|
|
6451
|
-
return
|
|
6457
|
+
return Se(S) ? (e.consume(S), w) : te(S);
|
|
6452
6458
|
}
|
|
6453
6459
|
function F(S) {
|
|
6454
|
-
return S === 47 ? (e.consume(S), te) : S === 58 || S === 95 || Ot(S) ? (e.consume(S), K) :
|
|
6460
|
+
return S === 47 ? (e.consume(S), te) : S === 58 || S === 95 || Ot(S) ? (e.consume(S), K) : Se(S) ? (e.consume(S), F) : te(S);
|
|
6455
6461
|
}
|
|
6456
6462
|
function K(S) {
|
|
6457
6463
|
return S === 45 || S === 46 || S === 58 || S === 95 || pt(S) ? (e.consume(S), K) : D(S);
|
|
6458
6464
|
}
|
|
6459
6465
|
function D(S) {
|
|
6460
|
-
return S === 61 ? (e.consume(S), y) :
|
|
6466
|
+
return S === 61 ? (e.consume(S), y) : Se(S) ? (e.consume(S), D) : F(S);
|
|
6461
6467
|
}
|
|
6462
6468
|
function y(S) {
|
|
6463
|
-
return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? n(S) : S === 34 || S === 39 ? (e.consume(S), l = S, N) :
|
|
6469
|
+
return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? n(S) : S === 34 || S === 39 ? (e.consume(S), l = S, N) : Se(S) ? (e.consume(S), y) : G(S);
|
|
6464
6470
|
}
|
|
6465
6471
|
function N(S) {
|
|
6466
6472
|
return S === l ? (e.consume(S), l = null, M) : S === null || ce(S) ? n(S) : (e.consume(S), N);
|
|
@@ -6469,13 +6475,13 @@ function r1(e, t, n) {
|
|
|
6469
6475
|
return S === null || S === 34 || S === 39 || S === 47 || S === 60 || S === 61 || S === 62 || S === 96 || rt(S) ? D(S) : (e.consume(S), G);
|
|
6470
6476
|
}
|
|
6471
6477
|
function M(S) {
|
|
6472
|
-
return S === 47 || S === 62 ||
|
|
6478
|
+
return S === 47 || S === 62 || Se(S) ? F(S) : n(S);
|
|
6473
6479
|
}
|
|
6474
6480
|
function te(S) {
|
|
6475
6481
|
return S === 62 ? (e.consume(S), z) : n(S);
|
|
6476
6482
|
}
|
|
6477
6483
|
function z(S) {
|
|
6478
|
-
return S === null || ce(S) ? V(S) :
|
|
6484
|
+
return S === null || ce(S) ? V(S) : Se(S) ? (e.consume(S), z) : n(S);
|
|
6479
6485
|
}
|
|
6480
6486
|
function V(S) {
|
|
6481
6487
|
return S === 45 && a === 2 ? (e.consume(S), U) : S === 60 && a === 1 ? (e.consume(S), W) : S === 62 && a === 4 ? (e.consume(S), ne) : S === 63 && a === 3 ? (e.consume(S), T) : S === 93 && a === 5 ? (e.consume(S), Y) : ce(S) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
@@ -6597,22 +6603,22 @@ function o1(e, t, n) {
|
|
|
6597
6603
|
return T === 45 || pt(T) ? (e.consume(T), y) : N(T);
|
|
6598
6604
|
}
|
|
6599
6605
|
function N(T) {
|
|
6600
|
-
return ce(T) ? (u = N, W(T)) :
|
|
6606
|
+
return ce(T) ? (u = N, W(T)) : Se(T) ? (e.consume(T), N) : U(T);
|
|
6601
6607
|
}
|
|
6602
6608
|
function G(T) {
|
|
6603
6609
|
return T === 45 || pt(T) ? (e.consume(T), G) : T === 47 || T === 62 || rt(T) ? M(T) : n(T);
|
|
6604
6610
|
}
|
|
6605
6611
|
function M(T) {
|
|
6606
|
-
return T === 47 ? (e.consume(T), U) : T === 58 || T === 95 || Ot(T) ? (e.consume(T), te) : ce(T) ? (u = M, W(T)) :
|
|
6612
|
+
return T === 47 ? (e.consume(T), U) : T === 58 || T === 95 || Ot(T) ? (e.consume(T), te) : ce(T) ? (u = M, W(T)) : Se(T) ? (e.consume(T), M) : U(T);
|
|
6607
6613
|
}
|
|
6608
6614
|
function te(T) {
|
|
6609
6615
|
return T === 45 || T === 46 || T === 58 || T === 95 || pt(T) ? (e.consume(T), te) : z(T);
|
|
6610
6616
|
}
|
|
6611
6617
|
function z(T) {
|
|
6612
|
-
return T === 61 ? (e.consume(T), V) : ce(T) ? (u = z, W(T)) :
|
|
6618
|
+
return T === 61 ? (e.consume(T), V) : ce(T) ? (u = z, W(T)) : Se(T) ? (e.consume(T), z) : M(T);
|
|
6613
6619
|
}
|
|
6614
6620
|
function V(T) {
|
|
6615
|
-
return T === null || T === 60 || T === 61 || T === 62 || T === 96 ? n(T) : T === 34 || T === 39 ? (e.consume(T), a = T, L) : ce(T) ? (u = V, W(T)) :
|
|
6621
|
+
return T === null || T === 60 || T === 61 || T === 62 || T === 96 ? n(T) : T === 34 || T === 39 ? (e.consume(T), a = T, L) : ce(T) ? (u = V, W(T)) : Se(T) ? (e.consume(T), V) : (e.consume(T), I);
|
|
6616
6622
|
}
|
|
6617
6623
|
function L(T) {
|
|
6618
6624
|
return T === a ? (e.consume(T), a = void 0, R) : T === null ? n(T) : ce(T) ? (u = L, W(T)) : (e.consume(T), L);
|
|
@@ -6630,7 +6636,7 @@ function o1(e, t, n) {
|
|
|
6630
6636
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), j;
|
|
6631
6637
|
}
|
|
6632
6638
|
function j(T) {
|
|
6633
|
-
return
|
|
6639
|
+
return Se(T) ? De(
|
|
6634
6640
|
e,
|
|
6635
6641
|
Y,
|
|
6636
6642
|
"linePrefix",
|
|
@@ -6886,7 +6892,7 @@ function C1(e, t, n) {
|
|
|
6886
6892
|
return c === a ? (e.enter("thematicBreakSequence"), l(c)) : r >= 3 && (c === null || ce(c)) ? (e.exit("thematicBreak"), t(c)) : n(c);
|
|
6887
6893
|
}
|
|
6888
6894
|
function l(c) {
|
|
6889
|
-
return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"),
|
|
6895
|
+
return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), Se(c) ? De(e, s, "whitespace")(c) : s(c));
|
|
6890
6896
|
}
|
|
6891
6897
|
}
|
|
6892
6898
|
const tt = {
|
|
@@ -6938,7 +6944,7 @@ function x1(e, t, n) {
|
|
|
6938
6944
|
return r.containerState.initialBlankLine = !0, i++, p(f);
|
|
6939
6945
|
}
|
|
6940
6946
|
function h(f) {
|
|
6941
|
-
return
|
|
6947
|
+
return Se(f) ? (e.enter("listItemPrefixWhitespace"), e.consume(f), e.exit("listItemPrefixWhitespace"), p) : n(f);
|
|
6942
6948
|
}
|
|
6943
6949
|
function p(f) {
|
|
6944
6950
|
return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(f);
|
|
@@ -6956,7 +6962,7 @@ function v1(e, t, n) {
|
|
|
6956
6962
|
)(s);
|
|
6957
6963
|
}
|
|
6958
6964
|
function i(s) {
|
|
6959
|
-
return r.containerState.furtherBlankLines || !
|
|
6965
|
+
return r.containerState.furtherBlankLines || !Se(s) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, u(s)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(S1, t, u)(s));
|
|
6960
6966
|
}
|
|
6961
6967
|
function u(s) {
|
|
6962
6968
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, De(
|
|
@@ -6993,7 +6999,7 @@ function N1(e, t, n) {
|
|
|
6993
6999
|
);
|
|
6994
7000
|
function a(i) {
|
|
6995
7001
|
const u = r.events[r.events.length - 1];
|
|
6996
|
-
return !
|
|
7002
|
+
return !Se(i) && u && u[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
|
|
6997
7003
|
}
|
|
6998
7004
|
}
|
|
6999
7005
|
const fo = {
|
|
@@ -7036,7 +7042,7 @@ function L1(e, t, n) {
|
|
|
7036
7042
|
return e.enter("setextHeadingLineSequence"), s(c);
|
|
7037
7043
|
}
|
|
7038
7044
|
function s(c) {
|
|
7039
|
-
return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"),
|
|
7045
|
+
return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), Se(c) ? De(e, l, "lineSuffix")(c) : l(c));
|
|
7040
7046
|
}
|
|
7041
7047
|
function l(c) {
|
|
7042
7048
|
return c === null || ce(c) ? (e.exit("setextHeadingLine"), t(c)) : n(c);
|
|
@@ -7273,23 +7279,23 @@ function B1(e, t, n) {
|
|
|
7273
7279
|
oe([I])
|
|
7274
7280
|
) : ne(I);
|
|
7275
7281
|
function ne(me) {
|
|
7276
|
-
return
|
|
7277
|
-
function
|
|
7278
|
-
const
|
|
7282
|
+
return Ce;
|
|
7283
|
+
function Ce(Oe) {
|
|
7284
|
+
const Ue = Oe !== null && me[Oe], Ie = Oe !== null && me.null, Ke = [
|
|
7279
7285
|
// To do: add more extension tests.
|
|
7280
7286
|
/* c8 ignore next 2 */
|
|
7281
|
-
...Array.isArray(
|
|
7282
|
-
...Array.isArray(
|
|
7287
|
+
...Array.isArray(Ue) ? Ue : Ue ? [Ue] : [],
|
|
7288
|
+
...Array.isArray(Ie) ? Ie : Ie ? [Ie] : []
|
|
7283
7289
|
];
|
|
7284
|
-
return oe(
|
|
7290
|
+
return oe(Ke)(Oe);
|
|
7285
7291
|
}
|
|
7286
7292
|
}
|
|
7287
7293
|
function oe(me) {
|
|
7288
7294
|
return W = me, j = 0, me.length === 0 ? U : S(me[j]);
|
|
7289
7295
|
}
|
|
7290
7296
|
function S(me) {
|
|
7291
|
-
return
|
|
7292
|
-
function
|
|
7297
|
+
return Ce;
|
|
7298
|
+
function Ce(Oe) {
|
|
7293
7299
|
return T = M(), Y = me, me.partial || (c.currentConstruct = me), me.name && c.parser.constructs.disable.null.includes(me.name) ? _e() : me.tokenize.call(
|
|
7294
7300
|
// If we do have fields, create an object w/ `context` as its
|
|
7295
7301
|
// prototype.
|
|
@@ -7298,7 +7304,7 @@ function B1(e, t, n) {
|
|
|
7298
7304
|
l,
|
|
7299
7305
|
le,
|
|
7300
7306
|
_e
|
|
7301
|
-
)(
|
|
7307
|
+
)(Oe);
|
|
7302
7308
|
}
|
|
7303
7309
|
}
|
|
7304
7310
|
function le(me) {
|
|
@@ -7567,7 +7573,7 @@ function am(e) {
|
|
|
7567
7573
|
autolinkProtocol: z,
|
|
7568
7574
|
autolinkEmail: z,
|
|
7569
7575
|
atxHeading: s(mn),
|
|
7570
|
-
blockQuote: s(
|
|
7576
|
+
blockQuote: s(Ke),
|
|
7571
7577
|
characterEscape: z,
|
|
7572
7578
|
characterReference: z,
|
|
7573
7579
|
codeFenced: s(ot),
|
|
@@ -7609,13 +7615,13 @@ function am(e) {
|
|
|
7609
7615
|
atxHeading: d(),
|
|
7610
7616
|
atxHeadingSequence: N,
|
|
7611
7617
|
autolink: d(),
|
|
7612
|
-
autolinkEmail:
|
|
7613
|
-
autolinkProtocol:
|
|
7618
|
+
autolinkEmail: Ie,
|
|
7619
|
+
autolinkProtocol: Ue,
|
|
7614
7620
|
blockQuote: d(),
|
|
7615
7621
|
characterEscapeValue: V,
|
|
7616
|
-
characterReferenceMarkerHexadecimal:
|
|
7617
|
-
characterReferenceMarkerNumeric:
|
|
7618
|
-
characterReferenceValue:
|
|
7622
|
+
characterReferenceMarkerHexadecimal: Ce,
|
|
7623
|
+
characterReferenceMarkerNumeric: Ce,
|
|
7624
|
+
characterReferenceValue: Oe,
|
|
7619
7625
|
codeFenced: d(w),
|
|
7620
7626
|
codeFencedFence: b,
|
|
7621
7627
|
codeFencedFenceInfo: m,
|
|
@@ -7720,31 +7726,31 @@ function am(e) {
|
|
|
7720
7726
|
return B;
|
|
7721
7727
|
}
|
|
7722
7728
|
function a($, B, re) {
|
|
7723
|
-
let ie = B - 1, ae = -1, ge = !1,
|
|
7729
|
+
let ie = B - 1, ae = -1, ge = !1, ve, Te, ke, qe;
|
|
7724
7730
|
for (; ++ie <= re; ) {
|
|
7725
7731
|
const Ee = $[ie];
|
|
7726
|
-
if (Ee[1].type === "listUnordered" || Ee[1].type === "listOrdered" || Ee[1].type === "blockQuote" ? (Ee[0] === "enter" ? ae++ : ae--,
|
|
7727
|
-
if (
|
|
7728
|
-
let
|
|
7729
|
-
for (Te = void 0;
|
|
7730
|
-
const
|
|
7731
|
-
if (
|
|
7732
|
-
if (
|
|
7733
|
-
Te && ($[Te][1].type = "lineEndingBlank", ge = !0),
|
|
7734
|
-
} else if (!(
|
|
7732
|
+
if (Ee[1].type === "listUnordered" || Ee[1].type === "listOrdered" || Ee[1].type === "blockQuote" ? (Ee[0] === "enter" ? ae++ : ae--, qe = void 0) : Ee[1].type === "lineEndingBlank" ? Ee[0] === "enter" && (ve && !qe && !ae && !ke && (ke = ie), qe = void 0) : Ee[1].type === "linePrefix" || Ee[1].type === "listItemValue" || Ee[1].type === "listItemMarker" || Ee[1].type === "listItemPrefix" || Ee[1].type === "listItemPrefixWhitespace" || (qe = void 0), !ae && Ee[0] === "enter" && Ee[1].type === "listItemPrefix" || ae === -1 && Ee[0] === "exit" && (Ee[1].type === "listUnordered" || Ee[1].type === "listOrdered")) {
|
|
7733
|
+
if (ve) {
|
|
7734
|
+
let Me = ie;
|
|
7735
|
+
for (Te = void 0; Me--; ) {
|
|
7736
|
+
const We = $[Me];
|
|
7737
|
+
if (We[1].type === "lineEnding" || We[1].type === "lineEndingBlank") {
|
|
7738
|
+
if (We[0] === "exit") continue;
|
|
7739
|
+
Te && ($[Te][1].type = "lineEndingBlank", ge = !0), We[1].type = "lineEnding", Te = Me;
|
|
7740
|
+
} else if (!(We[1].type === "linePrefix" || We[1].type === "blockQuotePrefix" || We[1].type === "blockQuotePrefixWhitespace" || We[1].type === "blockQuoteMarker" || We[1].type === "listItemIndent")) break;
|
|
7735
7741
|
}
|
|
7736
|
-
|
|
7742
|
+
ke && (!Te || ke < Te) && (ve._spread = !0), ve.end = Object.assign(
|
|
7737
7743
|
{},
|
|
7738
7744
|
Te ? $[Te][1].start : Ee[1].end
|
|
7739
|
-
), $.splice(Te || ie, 0, ["exit",
|
|
7745
|
+
), $.splice(Te || ie, 0, ["exit", ve, Ee[2]]), ie++, re++;
|
|
7740
7746
|
}
|
|
7741
|
-
Ee[1].type === "listItemPrefix" && (
|
|
7747
|
+
Ee[1].type === "listItemPrefix" && (ve = {
|
|
7742
7748
|
type: "listItem",
|
|
7743
7749
|
_spread: !1,
|
|
7744
7750
|
start: Object.assign({}, Ee[1].start),
|
|
7745
7751
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
7746
7752
|
end: void 0
|
|
7747
|
-
}, $.splice(ie, 0, ["enter",
|
|
7753
|
+
}, $.splice(ie, 0, ["enter", ve, Ee[2]]), ie++, re++, ke = void 0, qe = !0);
|
|
7748
7754
|
}
|
|
7749
7755
|
}
|
|
7750
7756
|
return $[B][1]._spread = ge, re;
|
|
@@ -7937,10 +7943,10 @@ function am(e) {
|
|
|
7937
7943
|
this.sliceSerialize($)
|
|
7938
7944
|
).toLowerCase(), i("referenceType", "full");
|
|
7939
7945
|
}
|
|
7940
|
-
function
|
|
7946
|
+
function Ce($) {
|
|
7941
7947
|
i("characterReferenceType", $.type);
|
|
7942
7948
|
}
|
|
7943
|
-
function
|
|
7949
|
+
function Oe($) {
|
|
7944
7950
|
const B = this.sliceSerialize($), re = u("characterReferenceType");
|
|
7945
7951
|
let ie;
|
|
7946
7952
|
re ? (ie = yl(
|
|
@@ -7950,17 +7956,17 @@ function am(e) {
|
|
|
7950
7956
|
const ae = this.stack.pop();
|
|
7951
7957
|
ae.value += ie, ae.position.end = Yt($.end);
|
|
7952
7958
|
}
|
|
7953
|
-
function
|
|
7959
|
+
function Ue($) {
|
|
7954
7960
|
V.call(this, $);
|
|
7955
7961
|
const B = this.stack[this.stack.length - 1];
|
|
7956
7962
|
B.url = this.sliceSerialize($);
|
|
7957
7963
|
}
|
|
7958
|
-
function
|
|
7964
|
+
function Ie($) {
|
|
7959
7965
|
V.call(this, $);
|
|
7960
7966
|
const B = this.stack[this.stack.length - 1];
|
|
7961
7967
|
B.url = "mailto:" + this.sliceSerialize($);
|
|
7962
7968
|
}
|
|
7963
|
-
function
|
|
7969
|
+
function Ke() {
|
|
7964
7970
|
return {
|
|
7965
7971
|
type: "blockquote",
|
|
7966
7972
|
children: []
|
|
@@ -10054,7 +10060,7 @@ function o2(e) {
|
|
|
10054
10060
|
});
|
|
10055
10061
|
};
|
|
10056
10062
|
}
|
|
10057
|
-
var Fa = { exports: {} },
|
|
10063
|
+
var Fa = { exports: {} }, xe = {};
|
|
10058
10064
|
/**
|
|
10059
10065
|
* @license React
|
|
10060
10066
|
* react-is.production.min.js
|
|
@@ -10066,7 +10072,7 @@ var Fa = { exports: {} }, Oe = {};
|
|
|
10066
10072
|
*/
|
|
10067
10073
|
var So;
|
|
10068
10074
|
function s2() {
|
|
10069
|
-
if (So) return
|
|
10075
|
+
if (So) return xe;
|
|
10070
10076
|
So = 1;
|
|
10071
10077
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), g;
|
|
10072
10078
|
g = Symbol.for("react.module.reference");
|
|
@@ -10100,37 +10106,37 @@ function s2() {
|
|
|
10100
10106
|
}
|
|
10101
10107
|
}
|
|
10102
10108
|
}
|
|
10103
|
-
return
|
|
10109
|
+
return xe.ContextConsumer = u, xe.ContextProvider = i, xe.Element = e, xe.ForwardRef = l, xe.Fragment = n, xe.Lazy = p, xe.Memo = h, xe.Portal = t, xe.Profiler = a, xe.StrictMode = r, xe.Suspense = c, xe.SuspenseList = d, xe.isAsyncMode = function() {
|
|
10104
10110
|
return !1;
|
|
10105
|
-
},
|
|
10111
|
+
}, xe.isConcurrentMode = function() {
|
|
10106
10112
|
return !1;
|
|
10107
|
-
},
|
|
10113
|
+
}, xe.isContextConsumer = function(_) {
|
|
10108
10114
|
return m(_) === u;
|
|
10109
|
-
},
|
|
10115
|
+
}, xe.isContextProvider = function(_) {
|
|
10110
10116
|
return m(_) === i;
|
|
10111
|
-
},
|
|
10117
|
+
}, xe.isElement = function(_) {
|
|
10112
10118
|
return typeof _ == "object" && _ !== null && _.$$typeof === e;
|
|
10113
|
-
},
|
|
10119
|
+
}, xe.isForwardRef = function(_) {
|
|
10114
10120
|
return m(_) === l;
|
|
10115
|
-
},
|
|
10121
|
+
}, xe.isFragment = function(_) {
|
|
10116
10122
|
return m(_) === n;
|
|
10117
|
-
},
|
|
10123
|
+
}, xe.isLazy = function(_) {
|
|
10118
10124
|
return m(_) === p;
|
|
10119
|
-
},
|
|
10125
|
+
}, xe.isMemo = function(_) {
|
|
10120
10126
|
return m(_) === h;
|
|
10121
|
-
},
|
|
10127
|
+
}, xe.isPortal = function(_) {
|
|
10122
10128
|
return m(_) === t;
|
|
10123
|
-
},
|
|
10129
|
+
}, xe.isProfiler = function(_) {
|
|
10124
10130
|
return m(_) === a;
|
|
10125
|
-
},
|
|
10131
|
+
}, xe.isStrictMode = function(_) {
|
|
10126
10132
|
return m(_) === r;
|
|
10127
|
-
},
|
|
10133
|
+
}, xe.isSuspense = function(_) {
|
|
10128
10134
|
return m(_) === c;
|
|
10129
|
-
},
|
|
10135
|
+
}, xe.isSuspenseList = function(_) {
|
|
10130
10136
|
return m(_) === d;
|
|
10131
|
-
},
|
|
10137
|
+
}, xe.isValidElementType = function(_) {
|
|
10132
10138
|
return typeof _ == "string" || typeof _ == "function" || _ === n || _ === a || _ === r || _ === c || _ === d || _ === f || typeof _ == "object" && _ !== null && (_.$$typeof === p || _.$$typeof === h || _.$$typeof === i || _.$$typeof === u || _.$$typeof === l || _.$$typeof === g || _.getModuleId !== void 0);
|
|
10133
|
-
},
|
|
10139
|
+
}, xe.typeOf = m, xe;
|
|
10134
10140
|
}
|
|
10135
10141
|
var xo;
|
|
10136
10142
|
function l2() {
|
|
@@ -10520,11 +10526,11 @@ zl.propTypes = {
|
|
|
10520
10526
|
children: x.element.isRequired,
|
|
10521
10527
|
id: x.string.isRequired
|
|
10522
10528
|
};
|
|
10523
|
-
const
|
|
10529
|
+
const Qe = [];
|
|
10524
10530
|
for (let e = 0; e < 256; ++e)
|
|
10525
|
-
|
|
10531
|
+
Qe.push((e + 256).toString(16).slice(1));
|
|
10526
10532
|
function x2(e, t = 0) {
|
|
10527
|
-
return (
|
|
10533
|
+
return (Qe[e[t + 0]] + Qe[e[t + 1]] + Qe[e[t + 2]] + Qe[e[t + 3]] + "-" + Qe[e[t + 4]] + Qe[e[t + 5]] + "-" + Qe[e[t + 6]] + Qe[e[t + 7]] + "-" + Qe[e[t + 8]] + Qe[e[t + 9]] + "-" + Qe[e[t + 10]] + Qe[e[t + 11]] + Qe[e[t + 12]] + Qe[e[t + 13]] + Qe[e[t + 14]] + Qe[e[t + 15]]).toLowerCase();
|
|
10528
10534
|
}
|
|
10529
10535
|
let Ua;
|
|
10530
10536
|
const v2 = new Uint8Array(16);
|
|
@@ -10681,11 +10687,11 @@ function L2() {
|
|
|
10681
10687
|
}, R.valueOf = function() {
|
|
10682
10688
|
return this.$d.getTime();
|
|
10683
10689
|
}, R.startOf = function(U, W) {
|
|
10684
|
-
var j = this, Y = !!z.u(W) || W, T = z.p(U), ne = function(
|
|
10685
|
-
var
|
|
10686
|
-
return Y ?
|
|
10687
|
-
}, oe = function(
|
|
10688
|
-
return z.w(j.toDate()[
|
|
10690
|
+
var j = this, Y = !!z.u(W) || W, T = z.p(U), ne = function(Ue, Ie) {
|
|
10691
|
+
var Ke = z.w(j.$u ? Date.UTC(j.$y, Ie, Ue) : new Date(j.$y, Ie, Ue), j);
|
|
10692
|
+
return Y ? Ke : Ke.endOf(c);
|
|
10693
|
+
}, oe = function(Ue, Ie) {
|
|
10694
|
+
return z.w(j.toDate()[Ue].apply(j.toDate("s"), (Y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ie)), j);
|
|
10689
10695
|
}, S = this.$W, le = this.$M, _e = this.$D, me = "set" + (this.$u ? "UTC" : "");
|
|
10690
10696
|
switch (T) {
|
|
10691
10697
|
case f:
|
|
@@ -10693,8 +10699,8 @@ function L2() {
|
|
|
10693
10699
|
case h:
|
|
10694
10700
|
return Y ? ne(1, le) : ne(0, le + 1);
|
|
10695
10701
|
case d:
|
|
10696
|
-
var
|
|
10697
|
-
return ne(Y ? _e -
|
|
10702
|
+
var Ce = this.$locale().weekStart || 0, Oe = (S < Ce ? S + 7 : S) - Ce;
|
|
10703
|
+
return ne(Y ? _e - Oe : _e + (6 - Oe), le);
|
|
10698
10704
|
case c:
|
|
10699
10705
|
case g:
|
|
10700
10706
|
return oe(me + "Hours", 0);
|
|
@@ -10738,16 +10744,16 @@ function L2() {
|
|
|
10738
10744
|
}, R.format = function(U) {
|
|
10739
10745
|
var W = this, j = this.$locale();
|
|
10740
10746
|
if (!this.isValid()) return j.invalidDate || m;
|
|
10741
|
-
var Y = U || "YYYY-MM-DDTHH:mm:ssZ", T = z.z(this), ne = this.$H, oe = this.$m, S = this.$M, le = j.weekdays, _e = j.months, me = j.meridiem,
|
|
10742
|
-
return
|
|
10743
|
-
},
|
|
10744
|
-
return z.s(ne % 12 || 12,
|
|
10745
|
-
},
|
|
10746
|
-
var St =
|
|
10747
|
+
var Y = U || "YYYY-MM-DDTHH:mm:ssZ", T = z.z(this), ne = this.$H, oe = this.$m, S = this.$M, le = j.weekdays, _e = j.months, me = j.meridiem, Ce = function(Ie, Ke, ot, St) {
|
|
10748
|
+
return Ie && (Ie[Ke] || Ie(W, Y)) || ot[Ke].slice(0, St);
|
|
10749
|
+
}, Oe = function(Ie) {
|
|
10750
|
+
return z.s(ne % 12 || 12, Ie, "0");
|
|
10751
|
+
}, Ue = me || function(Ie, Ke, ot) {
|
|
10752
|
+
var St = Ie < 12 ? "AM" : "PM";
|
|
10747
10753
|
return ot ? St.toLowerCase() : St;
|
|
10748
10754
|
};
|
|
10749
|
-
return Y.replace(b, function(
|
|
10750
|
-
return
|
|
10755
|
+
return Y.replace(b, function(Ie, Ke) {
|
|
10756
|
+
return Ke || function(ot) {
|
|
10751
10757
|
switch (ot) {
|
|
10752
10758
|
case "YY":
|
|
10753
10759
|
return String(W.$y).slice(-2);
|
|
@@ -10758,9 +10764,9 @@ function L2() {
|
|
|
10758
10764
|
case "MM":
|
|
10759
10765
|
return z.s(S + 1, 2, "0");
|
|
10760
10766
|
case "MMM":
|
|
10761
|
-
return
|
|
10767
|
+
return Ce(j.monthsShort, S, _e, 3);
|
|
10762
10768
|
case "MMMM":
|
|
10763
|
-
return
|
|
10769
|
+
return Ce(_e, S);
|
|
10764
10770
|
case "D":
|
|
10765
10771
|
return W.$D;
|
|
10766
10772
|
case "DD":
|
|
@@ -10768,9 +10774,9 @@ function L2() {
|
|
|
10768
10774
|
case "d":
|
|
10769
10775
|
return String(W.$W);
|
|
10770
10776
|
case "dd":
|
|
10771
|
-
return
|
|
10777
|
+
return Ce(j.weekdaysMin, W.$W, le, 2);
|
|
10772
10778
|
case "ddd":
|
|
10773
|
-
return
|
|
10779
|
+
return Ce(j.weekdaysShort, W.$W, le, 3);
|
|
10774
10780
|
case "dddd":
|
|
10775
10781
|
return le[W.$W];
|
|
10776
10782
|
case "H":
|
|
@@ -10778,13 +10784,13 @@ function L2() {
|
|
|
10778
10784
|
case "HH":
|
|
10779
10785
|
return z.s(ne, 2, "0");
|
|
10780
10786
|
case "h":
|
|
10781
|
-
return
|
|
10787
|
+
return Oe(1);
|
|
10782
10788
|
case "hh":
|
|
10783
|
-
return
|
|
10789
|
+
return Oe(2);
|
|
10784
10790
|
case "a":
|
|
10785
|
-
return
|
|
10791
|
+
return Ue(ne, oe, !0);
|
|
10786
10792
|
case "A":
|
|
10787
|
-
return
|
|
10793
|
+
return Ue(ne, oe, !1);
|
|
10788
10794
|
case "m":
|
|
10789
10795
|
return String(oe);
|
|
10790
10796
|
case "mm":
|
|
@@ -10799,7 +10805,7 @@ function L2() {
|
|
|
10799
10805
|
return T;
|
|
10800
10806
|
}
|
|
10801
10807
|
return null;
|
|
10802
|
-
}(
|
|
10808
|
+
}(Ie) || T.replace(":", "");
|
|
10803
10809
|
});
|
|
10804
10810
|
}, R.utcOffset = function() {
|
|
10805
10811
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
@@ -13865,7 +13871,7 @@ const Ng = [
|
|
|
13865
13871
|
1048575,
|
|
13866
13872
|
1114110,
|
|
13867
13873
|
1114111
|
|
13868
|
-
]),
|
|
13874
|
+
]), He = "�";
|
|
13869
13875
|
var E;
|
|
13870
13876
|
(function(e) {
|
|
13871
13877
|
e[e.EOF = -1] = "EOF", e[e.NULL = 0] = "NULL", e[e.TABULATION = 9] = "TABULATION", e[e.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", e[e.LINE_FEED = 10] = "LINE_FEED", e[e.FORM_FEED = 12] = "FORM_FEED", e[e.SPACE = 32] = "SPACE", e[e.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", e[e.QUOTATION_MARK = 34] = "QUOTATION_MARK", e[e.AMPERSAND = 38] = "AMPERSAND", e[e.APOSTROPHE = 39] = "APOSTROPHE", e[e.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", e[e.SOLIDUS = 47] = "SOLIDUS", e[e.DIGIT_0 = 48] = "DIGIT_0", e[e.DIGIT_9 = 57] = "DIGIT_9", e[e.SEMICOLON = 59] = "SEMICOLON", e[e.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", e[e.EQUALS_SIGN = 61] = "EQUALS_SIGN", e[e.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", e[e.QUESTION_MARK = 63] = "QUESTION_MARK", e[e.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", e[e.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", e[e.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", e[e.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", e[e.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", e[e.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z";
|
|
@@ -14039,42 +14045,42 @@ function Bg(e) {
|
|
|
14039
14045
|
var t;
|
|
14040
14046
|
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (t = Mg.get(e)) !== null && t !== void 0 ? t : e;
|
|
14041
14047
|
}
|
|
14042
|
-
var
|
|
14048
|
+
var Xe;
|
|
14043
14049
|
(function(e) {
|
|
14044
14050
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
14045
|
-
})(
|
|
14051
|
+
})(Xe || (Xe = {}));
|
|
14046
14052
|
const Hg = 32;
|
|
14047
14053
|
var Gt;
|
|
14048
14054
|
(function(e) {
|
|
14049
14055
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
14050
14056
|
})(Gt || (Gt = {}));
|
|
14051
14057
|
function _i(e) {
|
|
14052
|
-
return e >=
|
|
14058
|
+
return e >= Xe.ZERO && e <= Xe.NINE;
|
|
14053
14059
|
}
|
|
14054
14060
|
function Ug(e) {
|
|
14055
|
-
return e >=
|
|
14061
|
+
return e >= Xe.UPPER_A && e <= Xe.UPPER_F || e >= Xe.LOWER_A && e <= Xe.LOWER_F;
|
|
14056
14062
|
}
|
|
14057
14063
|
function jg(e) {
|
|
14058
|
-
return e >=
|
|
14064
|
+
return e >= Xe.UPPER_A && e <= Xe.UPPER_Z || e >= Xe.LOWER_A && e <= Xe.LOWER_Z || _i(e);
|
|
14059
14065
|
}
|
|
14060
14066
|
function qg(e) {
|
|
14061
|
-
return e ===
|
|
14067
|
+
return e === Xe.EQUALS || jg(e);
|
|
14062
14068
|
}
|
|
14063
|
-
var
|
|
14069
|
+
var Ge;
|
|
14064
14070
|
(function(e) {
|
|
14065
14071
|
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
|
14066
|
-
})(
|
|
14072
|
+
})(Ge || (Ge = {}));
|
|
14067
14073
|
var jt;
|
|
14068
14074
|
(function(e) {
|
|
14069
14075
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
14070
14076
|
})(jt || (jt = {}));
|
|
14071
14077
|
class Cc {
|
|
14072
14078
|
constructor(t, n, r) {
|
|
14073
|
-
this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state =
|
|
14079
|
+
this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Ge.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = jt.Strict;
|
|
14074
14080
|
}
|
|
14075
14081
|
/** Resets the instance to make it reusable. */
|
|
14076
14082
|
startEntity(t) {
|
|
14077
|
-
this.decodeMode = t, this.state =
|
|
14083
|
+
this.decodeMode = t, this.state = Ge.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
14078
14084
|
}
|
|
14079
14085
|
/**
|
|
14080
14086
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -14089,15 +14095,15 @@ class Cc {
|
|
|
14089
14095
|
*/
|
|
14090
14096
|
write(t, n) {
|
|
14091
14097
|
switch (this.state) {
|
|
14092
|
-
case
|
|
14093
|
-
return t.charCodeAt(n) ===
|
|
14094
|
-
case
|
|
14098
|
+
case Ge.EntityStart:
|
|
14099
|
+
return t.charCodeAt(n) === Xe.NUM ? (this.state = Ge.NumericStart, this.consumed += 1, this.stateNumericStart(t, n + 1)) : (this.state = Ge.NamedEntity, this.stateNamedEntity(t, n));
|
|
14100
|
+
case Ge.NumericStart:
|
|
14095
14101
|
return this.stateNumericStart(t, n);
|
|
14096
|
-
case
|
|
14102
|
+
case Ge.NumericDecimal:
|
|
14097
14103
|
return this.stateNumericDecimal(t, n);
|
|
14098
|
-
case
|
|
14104
|
+
case Ge.NumericHex:
|
|
14099
14105
|
return this.stateNumericHex(t, n);
|
|
14100
|
-
case
|
|
14106
|
+
case Ge.NamedEntity:
|
|
14101
14107
|
return this.stateNamedEntity(t, n);
|
|
14102
14108
|
}
|
|
14103
14109
|
}
|
|
@@ -14111,7 +14117,7 @@ class Cc {
|
|
|
14111
14117
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
14112
14118
|
*/
|
|
14113
14119
|
stateNumericStart(t, n) {
|
|
14114
|
-
return n >= t.length ? -1 : (t.charCodeAt(n) | Hg) ===
|
|
14120
|
+
return n >= t.length ? -1 : (t.charCodeAt(n) | Hg) === Xe.LOWER_X ? (this.state = Ge.NumericHex, this.consumed += 1, this.stateNumericHex(t, n + 1)) : (this.state = Ge.NumericDecimal, this.stateNumericDecimal(t, n));
|
|
14115
14121
|
}
|
|
14116
14122
|
addToNumericResult(t, n, r, a) {
|
|
14117
14123
|
if (n !== r) {
|
|
@@ -14176,11 +14182,11 @@ class Cc {
|
|
|
14176
14182
|
var r;
|
|
14177
14183
|
if (this.consumed <= n)
|
|
14178
14184
|
return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
14179
|
-
if (t ===
|
|
14185
|
+
if (t === Xe.SEMI)
|
|
14180
14186
|
this.consumed += 1;
|
|
14181
14187
|
else if (this.decodeMode === jt.Strict)
|
|
14182
14188
|
return 0;
|
|
14183
|
-
return this.emitCodePoint(Bg(this.result), this.consumed), this.errors && (t !==
|
|
14189
|
+
return this.emitCodePoint(Bg(this.result), this.consumed), this.errors && (t !== Xe.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
14184
14190
|
}
|
|
14185
14191
|
/**
|
|
14186
14192
|
* Parses a named entity.
|
|
@@ -14202,7 +14208,7 @@ class Cc {
|
|
|
14202
14208
|
(i === 0 || // And there should be no invalid characters.
|
|
14203
14209
|
qg(u)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
14204
14210
|
if (a = r[this.treeIndex], i = (a & Gt.VALUE_LENGTH) >> 14, i !== 0) {
|
|
14205
|
-
if (u ===
|
|
14211
|
+
if (u === Xe.SEMI)
|
|
14206
14212
|
return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess);
|
|
14207
14213
|
this.decodeMode !== jt.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
14208
14214
|
}
|
|
@@ -14242,16 +14248,16 @@ class Cc {
|
|
|
14242
14248
|
end() {
|
|
14243
14249
|
var t;
|
|
14244
14250
|
switch (this.state) {
|
|
14245
|
-
case
|
|
14251
|
+
case Ge.NamedEntity:
|
|
14246
14252
|
return this.result !== 0 && (this.decodeMode !== jt.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
14247
14253
|
// Otherwise, emit a numeric entity if we have one.
|
|
14248
|
-
case
|
|
14254
|
+
case Ge.NumericDecimal:
|
|
14249
14255
|
return this.emitNumericEntity(0, 2);
|
|
14250
|
-
case
|
|
14256
|
+
case Ge.NumericHex:
|
|
14251
14257
|
return this.emitNumericEntity(0, 3);
|
|
14252
|
-
case
|
|
14258
|
+
case Ge.NumericStart:
|
|
14253
14259
|
return (t = this.errors) === null || t === void 0 || t.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
14254
|
-
case
|
|
14260
|
+
case Ge.EntityStart:
|
|
14255
14261
|
return 0;
|
|
14256
14262
|
}
|
|
14257
14263
|
}
|
|
@@ -14544,7 +14550,7 @@ var C;
|
|
|
14544
14550
|
(function(e) {
|
|
14545
14551
|
e[e.DATA = 0] = "DATA", e[e.RCDATA = 1] = "RCDATA", e[e.RAWTEXT = 2] = "RAWTEXT", e[e.SCRIPT_DATA = 3] = "SCRIPT_DATA", e[e.PLAINTEXT = 4] = "PLAINTEXT", e[e.TAG_OPEN = 5] = "TAG_OPEN", e[e.END_TAG_OPEN = 6] = "END_TAG_OPEN", e[e.TAG_NAME = 7] = "TAG_NAME", e[e.RCDATA_LESS_THAN_SIGN = 8] = "RCDATA_LESS_THAN_SIGN", e[e.RCDATA_END_TAG_OPEN = 9] = "RCDATA_END_TAG_OPEN", e[e.RCDATA_END_TAG_NAME = 10] = "RCDATA_END_TAG_NAME", e[e.RAWTEXT_LESS_THAN_SIGN = 11] = "RAWTEXT_LESS_THAN_SIGN", e[e.RAWTEXT_END_TAG_OPEN = 12] = "RAWTEXT_END_TAG_OPEN", e[e.RAWTEXT_END_TAG_NAME = 13] = "RAWTEXT_END_TAG_NAME", e[e.SCRIPT_DATA_LESS_THAN_SIGN = 14] = "SCRIPT_DATA_LESS_THAN_SIGN", e[e.SCRIPT_DATA_END_TAG_OPEN = 15] = "SCRIPT_DATA_END_TAG_OPEN", e[e.SCRIPT_DATA_END_TAG_NAME = 16] = "SCRIPT_DATA_END_TAG_NAME", e[e.SCRIPT_DATA_ESCAPE_START = 17] = "SCRIPT_DATA_ESCAPE_START", e[e.SCRIPT_DATA_ESCAPE_START_DASH = 18] = "SCRIPT_DATA_ESCAPE_START_DASH", e[e.SCRIPT_DATA_ESCAPED = 19] = "SCRIPT_DATA_ESCAPED", e[e.SCRIPT_DATA_ESCAPED_DASH = 20] = "SCRIPT_DATA_ESCAPED_DASH", e[e.SCRIPT_DATA_ESCAPED_DASH_DASH = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START", e[e.SCRIPT_DATA_DOUBLE_ESCAPED = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END", e[e.BEFORE_ATTRIBUTE_NAME = 31] = "BEFORE_ATTRIBUTE_NAME", e[e.ATTRIBUTE_NAME = 32] = "ATTRIBUTE_NAME", e[e.AFTER_ATTRIBUTE_NAME = 33] = "AFTER_ATTRIBUTE_NAME", e[e.BEFORE_ATTRIBUTE_VALUE = 34] = "BEFORE_ATTRIBUTE_VALUE", e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED", e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED", e[e.ATTRIBUTE_VALUE_UNQUOTED = 37] = "ATTRIBUTE_VALUE_UNQUOTED", e[e.AFTER_ATTRIBUTE_VALUE_QUOTED = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED", e[e.SELF_CLOSING_START_TAG = 39] = "SELF_CLOSING_START_TAG", e[e.BOGUS_COMMENT = 40] = "BOGUS_COMMENT", e[e.MARKUP_DECLARATION_OPEN = 41] = "MARKUP_DECLARATION_OPEN", e[e.COMMENT_START = 42] = "COMMENT_START", e[e.COMMENT_START_DASH = 43] = "COMMENT_START_DASH", e[e.COMMENT = 44] = "COMMENT", e[e.COMMENT_LESS_THAN_SIGN = 45] = "COMMENT_LESS_THAN_SIGN", e[e.COMMENT_LESS_THAN_SIGN_BANG = 46] = "COMMENT_LESS_THAN_SIGN_BANG", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", e[e.COMMENT_END_DASH = 49] = "COMMENT_END_DASH", e[e.COMMENT_END = 50] = "COMMENT_END", e[e.COMMENT_END_BANG = 51] = "COMMENT_END_BANG", e[e.DOCTYPE = 52] = "DOCTYPE", e[e.BEFORE_DOCTYPE_NAME = 53] = "BEFORE_DOCTYPE_NAME", e[e.DOCTYPE_NAME = 54] = "DOCTYPE_NAME", e[e.AFTER_DOCTYPE_NAME = 55] = "AFTER_DOCTYPE_NAME", e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD", e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER", e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD", e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER", e[e.BOGUS_DOCTYPE = 67] = "BOGUS_DOCTYPE", e[e.CDATA_SECTION = 68] = "CDATA_SECTION", e[e.CDATA_SECTION_BRACKET = 69] = "CDATA_SECTION_BRACKET", e[e.CDATA_SECTION_END = 70] = "CDATA_SECTION_END", e[e.CHARACTER_REFERENCE = 71] = "CHARACTER_REFERENCE", e[e.AMBIGUOUS_AMPERSAND = 72] = "AMBIGUOUS_AMPERSAND";
|
|
14546
14552
|
})(C || (C = {}));
|
|
14547
|
-
const
|
|
14553
|
+
const ze = {
|
|
14548
14554
|
DATA: C.DATA,
|
|
14549
14555
|
RCDATA: C.RCDATA,
|
|
14550
14556
|
RAWTEXT: C.RAWTEXT,
|
|
@@ -15132,7 +15138,7 @@ class Xg {
|
|
|
15132
15138
|
break;
|
|
15133
15139
|
}
|
|
15134
15140
|
case E.NULL: {
|
|
15135
|
-
this._err(q.unexpectedNullCharacter), this._emitChars(
|
|
15141
|
+
this._err(q.unexpectedNullCharacter), this._emitChars(He);
|
|
15136
15142
|
break;
|
|
15137
15143
|
}
|
|
15138
15144
|
case E.EOF: {
|
|
@@ -15152,7 +15158,7 @@ class Xg {
|
|
|
15152
15158
|
break;
|
|
15153
15159
|
}
|
|
15154
15160
|
case E.NULL: {
|
|
15155
|
-
this._err(q.unexpectedNullCharacter), this._emitChars(
|
|
15161
|
+
this._err(q.unexpectedNullCharacter), this._emitChars(He);
|
|
15156
15162
|
break;
|
|
15157
15163
|
}
|
|
15158
15164
|
case E.EOF: {
|
|
@@ -15172,7 +15178,7 @@ class Xg {
|
|
|
15172
15178
|
break;
|
|
15173
15179
|
}
|
|
15174
15180
|
case E.NULL: {
|
|
15175
|
-
this._err(q.unexpectedNullCharacter), this._emitChars(
|
|
15181
|
+
this._err(q.unexpectedNullCharacter), this._emitChars(He);
|
|
15176
15182
|
break;
|
|
15177
15183
|
}
|
|
15178
15184
|
case E.EOF: {
|
|
@@ -15188,7 +15194,7 @@ class Xg {
|
|
|
15188
15194
|
_statePlaintext(t) {
|
|
15189
15195
|
switch (t) {
|
|
15190
15196
|
case E.NULL: {
|
|
15191
|
-
this._err(q.unexpectedNullCharacter), this._emitChars(
|
|
15197
|
+
this._err(q.unexpectedNullCharacter), this._emitChars(He);
|
|
15192
15198
|
break;
|
|
15193
15199
|
}
|
|
15194
15200
|
case E.EOF: {
|
|
@@ -15266,7 +15272,7 @@ class Xg {
|
|
|
15266
15272
|
break;
|
|
15267
15273
|
}
|
|
15268
15274
|
case E.NULL: {
|
|
15269
|
-
this._err(q.unexpectedNullCharacter), n.tagName +=
|
|
15275
|
+
this._err(q.unexpectedNullCharacter), n.tagName += He;
|
|
15270
15276
|
break;
|
|
15271
15277
|
}
|
|
15272
15278
|
case E.EOF: {
|
|
@@ -15375,7 +15381,7 @@ class Xg {
|
|
|
15375
15381
|
break;
|
|
15376
15382
|
}
|
|
15377
15383
|
case E.NULL: {
|
|
15378
|
-
this._err(q.unexpectedNullCharacter), this._emitChars(
|
|
15384
|
+
this._err(q.unexpectedNullCharacter), this._emitChars(He);
|
|
15379
15385
|
break;
|
|
15380
15386
|
}
|
|
15381
15387
|
case E.EOF: {
|
|
@@ -15399,7 +15405,7 @@ class Xg {
|
|
|
15399
15405
|
break;
|
|
15400
15406
|
}
|
|
15401
15407
|
case E.NULL: {
|
|
15402
|
-
this._err(q.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(
|
|
15408
|
+
this._err(q.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(He);
|
|
15403
15409
|
break;
|
|
15404
15410
|
}
|
|
15405
15411
|
case E.EOF: {
|
|
@@ -15427,7 +15433,7 @@ class Xg {
|
|
|
15427
15433
|
break;
|
|
15428
15434
|
}
|
|
15429
15435
|
case E.NULL: {
|
|
15430
|
-
this._err(q.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(
|
|
15436
|
+
this._err(q.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(He);
|
|
15431
15437
|
break;
|
|
15432
15438
|
}
|
|
15433
15439
|
case E.EOF: {
|
|
@@ -15476,7 +15482,7 @@ class Xg {
|
|
|
15476
15482
|
break;
|
|
15477
15483
|
}
|
|
15478
15484
|
case E.NULL: {
|
|
15479
|
-
this._err(q.unexpectedNullCharacter), this._emitChars(
|
|
15485
|
+
this._err(q.unexpectedNullCharacter), this._emitChars(He);
|
|
15480
15486
|
break;
|
|
15481
15487
|
}
|
|
15482
15488
|
case E.EOF: {
|
|
@@ -15500,7 +15506,7 @@ class Xg {
|
|
|
15500
15506
|
break;
|
|
15501
15507
|
}
|
|
15502
15508
|
case E.NULL: {
|
|
15503
|
-
this._err(q.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(
|
|
15509
|
+
this._err(q.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(He);
|
|
15504
15510
|
break;
|
|
15505
15511
|
}
|
|
15506
15512
|
case E.EOF: {
|
|
@@ -15528,7 +15534,7 @@ class Xg {
|
|
|
15528
15534
|
break;
|
|
15529
15535
|
}
|
|
15530
15536
|
case E.NULL: {
|
|
15531
|
-
this._err(q.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(
|
|
15537
|
+
this._err(q.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(He);
|
|
15532
15538
|
break;
|
|
15533
15539
|
}
|
|
15534
15540
|
case E.EOF: {
|
|
@@ -15602,7 +15608,7 @@ class Xg {
|
|
|
15602
15608
|
break;
|
|
15603
15609
|
}
|
|
15604
15610
|
case E.NULL: {
|
|
15605
|
-
this._err(q.unexpectedNullCharacter), this.currentAttr.name +=
|
|
15611
|
+
this._err(q.unexpectedNullCharacter), this.currentAttr.name += He;
|
|
15606
15612
|
break;
|
|
15607
15613
|
}
|
|
15608
15614
|
default:
|
|
@@ -15676,7 +15682,7 @@ class Xg {
|
|
|
15676
15682
|
break;
|
|
15677
15683
|
}
|
|
15678
15684
|
case E.NULL: {
|
|
15679
|
-
this._err(q.unexpectedNullCharacter), this.currentAttr.value +=
|
|
15685
|
+
this._err(q.unexpectedNullCharacter), this.currentAttr.value += He;
|
|
15680
15686
|
break;
|
|
15681
15687
|
}
|
|
15682
15688
|
case E.EOF: {
|
|
@@ -15700,7 +15706,7 @@ class Xg {
|
|
|
15700
15706
|
break;
|
|
15701
15707
|
}
|
|
15702
15708
|
case E.NULL: {
|
|
15703
|
-
this._err(q.unexpectedNullCharacter), this.currentAttr.value +=
|
|
15709
|
+
this._err(q.unexpectedNullCharacter), this.currentAttr.value += He;
|
|
15704
15710
|
break;
|
|
15705
15711
|
}
|
|
15706
15712
|
case E.EOF: {
|
|
@@ -15731,7 +15737,7 @@ class Xg {
|
|
|
15731
15737
|
break;
|
|
15732
15738
|
}
|
|
15733
15739
|
case E.NULL: {
|
|
15734
|
-
this._err(q.unexpectedNullCharacter), this.currentAttr.value +=
|
|
15740
|
+
this._err(q.unexpectedNullCharacter), this.currentAttr.value += He;
|
|
15735
15741
|
break;
|
|
15736
15742
|
}
|
|
15737
15743
|
case E.QUOTATION_MARK:
|
|
@@ -15808,7 +15814,7 @@ class Xg {
|
|
|
15808
15814
|
break;
|
|
15809
15815
|
}
|
|
15810
15816
|
case E.NULL: {
|
|
15811
|
-
this._err(q.unexpectedNullCharacter), n.data +=
|
|
15817
|
+
this._err(q.unexpectedNullCharacter), n.data += He;
|
|
15812
15818
|
break;
|
|
15813
15819
|
}
|
|
15814
15820
|
default:
|
|
@@ -15873,7 +15879,7 @@ class Xg {
|
|
|
15873
15879
|
break;
|
|
15874
15880
|
}
|
|
15875
15881
|
case E.NULL: {
|
|
15876
|
-
this._err(q.unexpectedNullCharacter), n.data +=
|
|
15882
|
+
this._err(q.unexpectedNullCharacter), n.data += He;
|
|
15877
15883
|
break;
|
|
15878
15884
|
}
|
|
15879
15885
|
case E.EOF: {
|
|
@@ -16017,7 +16023,7 @@ class Xg {
|
|
|
16017
16023
|
case E.FORM_FEED:
|
|
16018
16024
|
break;
|
|
16019
16025
|
case E.NULL: {
|
|
16020
|
-
this._err(q.unexpectedNullCharacter), this._createDoctypeToken(
|
|
16026
|
+
this._err(q.unexpectedNullCharacter), this._createDoctypeToken(He), this.state = C.DOCTYPE_NAME;
|
|
16021
16027
|
break;
|
|
16022
16028
|
}
|
|
16023
16029
|
case E.GREATER_THAN_SIGN: {
|
|
@@ -16053,7 +16059,7 @@ class Xg {
|
|
|
16053
16059
|
break;
|
|
16054
16060
|
}
|
|
16055
16061
|
case E.NULL: {
|
|
16056
|
-
this._err(q.unexpectedNullCharacter), n.name +=
|
|
16062
|
+
this._err(q.unexpectedNullCharacter), n.name += He;
|
|
16057
16063
|
break;
|
|
16058
16064
|
}
|
|
16059
16065
|
case E.EOF: {
|
|
@@ -16158,7 +16164,7 @@ class Xg {
|
|
|
16158
16164
|
break;
|
|
16159
16165
|
}
|
|
16160
16166
|
case E.NULL: {
|
|
16161
|
-
this._err(q.unexpectedNullCharacter), n.publicId +=
|
|
16167
|
+
this._err(q.unexpectedNullCharacter), n.publicId += He;
|
|
16162
16168
|
break;
|
|
16163
16169
|
}
|
|
16164
16170
|
case E.GREATER_THAN_SIGN: {
|
|
@@ -16183,7 +16189,7 @@ class Xg {
|
|
|
16183
16189
|
break;
|
|
16184
16190
|
}
|
|
16185
16191
|
case E.NULL: {
|
|
16186
|
-
this._err(q.unexpectedNullCharacter), n.publicId +=
|
|
16192
|
+
this._err(q.unexpectedNullCharacter), n.publicId += He;
|
|
16187
16193
|
break;
|
|
16188
16194
|
}
|
|
16189
16195
|
case E.GREATER_THAN_SIGN: {
|
|
@@ -16332,7 +16338,7 @@ class Xg {
|
|
|
16332
16338
|
break;
|
|
16333
16339
|
}
|
|
16334
16340
|
case E.NULL: {
|
|
16335
|
-
this._err(q.unexpectedNullCharacter), n.systemId +=
|
|
16341
|
+
this._err(q.unexpectedNullCharacter), n.systemId += He;
|
|
16336
16342
|
break;
|
|
16337
16343
|
}
|
|
16338
16344
|
case E.GREATER_THAN_SIGN: {
|
|
@@ -16357,7 +16363,7 @@ class Xg {
|
|
|
16357
16363
|
break;
|
|
16358
16364
|
}
|
|
16359
16365
|
case E.NULL: {
|
|
16360
|
-
this._err(q.unexpectedNullCharacter), n.systemId +=
|
|
16366
|
+
this._err(q.unexpectedNullCharacter), n.systemId += He;
|
|
16361
16367
|
break;
|
|
16362
16368
|
}
|
|
16363
16369
|
case E.GREATER_THAN_SIGN: {
|
|
@@ -17319,7 +17325,7 @@ class ts {
|
|
|
17319
17325
|
this._insertElement(t, X.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = O.TEXT;
|
|
17320
17326
|
}
|
|
17321
17327
|
switchToPlaintextParsing() {
|
|
17322
|
-
this.insertionMode = O.TEXT, this.originalInsertionMode = O.IN_BODY, this.tokenizer.state =
|
|
17328
|
+
this.insertionMode = O.TEXT, this.originalInsertionMode = O.IN_BODY, this.tokenizer.state = ze.PLAINTEXT;
|
|
17323
17329
|
}
|
|
17324
17330
|
//Fragment parsing
|
|
17325
17331
|
/** @protected */
|
|
@@ -17342,7 +17348,7 @@ class ts {
|
|
|
17342
17348
|
switch (this.fragmentContextID) {
|
|
17343
17349
|
case o.TITLE:
|
|
17344
17350
|
case o.TEXTAREA: {
|
|
17345
|
-
this.tokenizer.state =
|
|
17351
|
+
this.tokenizer.state = ze.RCDATA;
|
|
17346
17352
|
break;
|
|
17347
17353
|
}
|
|
17348
17354
|
case o.STYLE:
|
|
@@ -17351,15 +17357,15 @@ class ts {
|
|
|
17351
17357
|
case o.NOEMBED:
|
|
17352
17358
|
case o.NOFRAMES:
|
|
17353
17359
|
case o.NOSCRIPT: {
|
|
17354
|
-
this.tokenizer.state =
|
|
17360
|
+
this.tokenizer.state = ze.RAWTEXT;
|
|
17355
17361
|
break;
|
|
17356
17362
|
}
|
|
17357
17363
|
case o.SCRIPT: {
|
|
17358
|
-
this.tokenizer.state =
|
|
17364
|
+
this.tokenizer.state = ze.SCRIPT_DATA;
|
|
17359
17365
|
break;
|
|
17360
17366
|
}
|
|
17361
17367
|
case o.PLAINTEXT: {
|
|
17362
|
-
this.tokenizer.state =
|
|
17368
|
+
this.tokenizer.state = ze.PLAINTEXT;
|
|
17363
17369
|
break;
|
|
17364
17370
|
}
|
|
17365
17371
|
}
|
|
@@ -17884,7 +17890,7 @@ class ts {
|
|
|
17884
17890
|
break;
|
|
17885
17891
|
}
|
|
17886
17892
|
case O.IN_BODY: {
|
|
17887
|
-
|
|
17893
|
+
Je(this, t);
|
|
17888
17894
|
break;
|
|
17889
17895
|
}
|
|
17890
17896
|
case O.IN_TABLE: {
|
|
@@ -18251,7 +18257,7 @@ function rr(e, t) {
|
|
|
18251
18257
|
function Fb(e, t) {
|
|
18252
18258
|
switch (t.tagID) {
|
|
18253
18259
|
case o.HTML: {
|
|
18254
|
-
|
|
18260
|
+
Je(e, t);
|
|
18255
18261
|
break;
|
|
18256
18262
|
}
|
|
18257
18263
|
case o.HEAD: {
|
|
@@ -18272,7 +18278,7 @@ function ar(e, t) {
|
|
|
18272
18278
|
function At(e, t) {
|
|
18273
18279
|
switch (t.tagID) {
|
|
18274
18280
|
case o.HTML: {
|
|
18275
|
-
|
|
18281
|
+
Je(e, t);
|
|
18276
18282
|
break;
|
|
18277
18283
|
}
|
|
18278
18284
|
case o.BASE:
|
|
@@ -18284,20 +18290,20 @@ function At(e, t) {
|
|
|
18284
18290
|
break;
|
|
18285
18291
|
}
|
|
18286
18292
|
case o.TITLE: {
|
|
18287
|
-
e._switchToTextParsing(t,
|
|
18293
|
+
e._switchToTextParsing(t, ze.RCDATA);
|
|
18288
18294
|
break;
|
|
18289
18295
|
}
|
|
18290
18296
|
case o.NOSCRIPT: {
|
|
18291
|
-
e.options.scriptingEnabled ? e._switchToTextParsing(t,
|
|
18297
|
+
e.options.scriptingEnabled ? e._switchToTextParsing(t, ze.RAWTEXT) : (e._insertElement(t, X.HTML), e.insertionMode = O.IN_HEAD_NO_SCRIPT);
|
|
18292
18298
|
break;
|
|
18293
18299
|
}
|
|
18294
18300
|
case o.NOFRAMES:
|
|
18295
18301
|
case o.STYLE: {
|
|
18296
|
-
e._switchToTextParsing(t,
|
|
18302
|
+
e._switchToTextParsing(t, ze.RAWTEXT);
|
|
18297
18303
|
break;
|
|
18298
18304
|
}
|
|
18299
18305
|
case o.SCRIPT: {
|
|
18300
|
-
e._switchToTextParsing(t,
|
|
18306
|
+
e._switchToTextParsing(t, ze.SCRIPT_DATA);
|
|
18301
18307
|
break;
|
|
18302
18308
|
}
|
|
18303
18309
|
case o.TEMPLATE: {
|
|
@@ -18341,7 +18347,7 @@ function ir(e, t) {
|
|
|
18341
18347
|
function Ub(e, t) {
|
|
18342
18348
|
switch (t.tagID) {
|
|
18343
18349
|
case o.HTML: {
|
|
18344
|
-
|
|
18350
|
+
Je(e, t);
|
|
18345
18351
|
break;
|
|
18346
18352
|
}
|
|
18347
18353
|
case o.BASEFONT:
|
|
@@ -18383,7 +18389,7 @@ function ur(e, t) {
|
|
|
18383
18389
|
function qb(e, t) {
|
|
18384
18390
|
switch (t.tagID) {
|
|
18385
18391
|
case o.HTML: {
|
|
18386
|
-
|
|
18392
|
+
Je(e, t);
|
|
18387
18393
|
break;
|
|
18388
18394
|
}
|
|
18389
18395
|
case o.BODY: {
|
|
@@ -18449,7 +18455,7 @@ function ea(e, t) {
|
|
|
18449
18455
|
break;
|
|
18450
18456
|
}
|
|
18451
18457
|
case be.START_TAG: {
|
|
18452
|
-
|
|
18458
|
+
Je(e, t);
|
|
18453
18459
|
break;
|
|
18454
18460
|
}
|
|
18455
18461
|
case be.END_TAG: {
|
|
@@ -18507,7 +18513,7 @@ function Qb(e, t) {
|
|
|
18507
18513
|
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML);
|
|
18508
18514
|
}
|
|
18509
18515
|
function Zb(e, t) {
|
|
18510
|
-
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), e.tokenizer.state =
|
|
18516
|
+
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), e.tokenizer.state = ze.PLAINTEXT;
|
|
18511
18517
|
}
|
|
18512
18518
|
function Jb(e, t) {
|
|
18513
18519
|
e.openElements.hasInScope(o.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.framesetOk = !1;
|
|
@@ -18548,16 +18554,16 @@ function sE(e, t) {
|
|
|
18548
18554
|
t.tagName = P.IMG, t.tagID = o.IMG, Dc(e, t);
|
|
18549
18555
|
}
|
|
18550
18556
|
function lE(e, t) {
|
|
18551
|
-
e._insertElement(t, X.HTML), e.skipNextNewLine = !0, e.tokenizer.state =
|
|
18557
|
+
e._insertElement(t, X.HTML), e.skipNextNewLine = !0, e.tokenizer.state = ze.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = O.TEXT;
|
|
18552
18558
|
}
|
|
18553
18559
|
function cE(e, t) {
|
|
18554
|
-
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t,
|
|
18560
|
+
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, ze.RAWTEXT);
|
|
18555
18561
|
}
|
|
18556
18562
|
function dE(e, t) {
|
|
18557
|
-
e.framesetOk = !1, e._switchToTextParsing(t,
|
|
18563
|
+
e.framesetOk = !1, e._switchToTextParsing(t, ze.RAWTEXT);
|
|
18558
18564
|
}
|
|
18559
18565
|
function ns(e, t) {
|
|
18560
|
-
e._switchToTextParsing(t,
|
|
18566
|
+
e._switchToTextParsing(t, ze.RAWTEXT);
|
|
18561
18567
|
}
|
|
18562
18568
|
function fE(e, t) {
|
|
18563
18569
|
e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === O.IN_TABLE || e.insertionMode === O.IN_CAPTION || e.insertionMode === O.IN_TABLE_BODY || e.insertionMode === O.IN_ROW || e.insertionMode === O.IN_CELL ? O.IN_SELECT_IN_TABLE : O.IN_SELECT;
|
|
@@ -18580,7 +18586,7 @@ function bE(e, t) {
|
|
|
18580
18586
|
function rs(e, t) {
|
|
18581
18587
|
e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML);
|
|
18582
18588
|
}
|
|
18583
|
-
function
|
|
18589
|
+
function Je(e, t) {
|
|
18584
18590
|
switch (t.tagID) {
|
|
18585
18591
|
case o.I:
|
|
18586
18592
|
case o.S:
|
|
@@ -19086,7 +19092,7 @@ function Wn(e, t) {
|
|
|
19086
19092
|
const Uc = /* @__PURE__ */ new Set([o.CAPTION, o.COL, o.COLGROUP, o.TBODY, o.TD, o.TFOOT, o.TH, o.THEAD, o.TR]);
|
|
19087
19093
|
function BE(e, t) {
|
|
19088
19094
|
const n = t.tagID;
|
|
19089
|
-
Uc.has(n) ? e.openElements.hasInTableScope(o.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = O.IN_TABLE, Nn(e, t)) :
|
|
19095
|
+
Uc.has(n) ? e.openElements.hasInTableScope(o.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = O.IN_TABLE, Nn(e, t)) : Je(e, t);
|
|
19090
19096
|
}
|
|
19091
19097
|
function HE(e, t) {
|
|
19092
19098
|
const n = t.tagID;
|
|
@@ -19114,7 +19120,7 @@ function HE(e, t) {
|
|
|
19114
19120
|
function eu(e, t) {
|
|
19115
19121
|
switch (t.tagID) {
|
|
19116
19122
|
case o.HTML: {
|
|
19117
|
-
|
|
19123
|
+
Je(e, t);
|
|
19118
19124
|
break;
|
|
19119
19125
|
}
|
|
19120
19126
|
case o.COL: {
|
|
@@ -19249,7 +19255,7 @@ function jc(e, t) {
|
|
|
19249
19255
|
}
|
|
19250
19256
|
function jE(e, t) {
|
|
19251
19257
|
const n = t.tagID;
|
|
19252
|
-
Uc.has(n) ? (e.openElements.hasInTableScope(o.TD) || e.openElements.hasInTableScope(o.TH)) && (e._closeTableCell(), ra(e, t)) :
|
|
19258
|
+
Uc.has(n) ? (e.openElements.hasInTableScope(o.TD) || e.openElements.hasInTableScope(o.TH)) && (e._closeTableCell(), ra(e, t)) : Je(e, t);
|
|
19253
19259
|
}
|
|
19254
19260
|
function qE(e, t) {
|
|
19255
19261
|
const n = t.tagID;
|
|
@@ -19280,7 +19286,7 @@ function qE(e, t) {
|
|
|
19280
19286
|
function qc(e, t) {
|
|
19281
19287
|
switch (t.tagID) {
|
|
19282
19288
|
case o.HTML: {
|
|
19283
|
-
|
|
19289
|
+
Je(e, t);
|
|
19284
19290
|
break;
|
|
19285
19291
|
}
|
|
19286
19292
|
case o.OPTION: {
|
|
@@ -19376,7 +19382,7 @@ function $E(e, t) {
|
|
|
19376
19382
|
break;
|
|
19377
19383
|
}
|
|
19378
19384
|
default:
|
|
19379
|
-
e.tmplInsertionModeStack[0] = O.IN_BODY, e.insertionMode = O.IN_BODY,
|
|
19385
|
+
e.tmplInsertionModeStack[0] = O.IN_BODY, e.insertionMode = O.IN_BODY, Je(e, t);
|
|
19380
19386
|
}
|
|
19381
19387
|
}
|
|
19382
19388
|
function VE(e, t) {
|
|
@@ -19386,7 +19392,7 @@ function Yc(e, t) {
|
|
|
19386
19392
|
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(o.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Ji(e, t);
|
|
19387
19393
|
}
|
|
19388
19394
|
function WE(e, t) {
|
|
19389
|
-
t.tagID === o.HTML ?
|
|
19395
|
+
t.tagID === o.HTML ? Je(e, t) : Wr(e, t);
|
|
19390
19396
|
}
|
|
19391
19397
|
function $c(e, t) {
|
|
19392
19398
|
var n;
|
|
@@ -19405,7 +19411,7 @@ function Wr(e, t) {
|
|
|
19405
19411
|
function GE(e, t) {
|
|
19406
19412
|
switch (t.tagID) {
|
|
19407
19413
|
case o.HTML: {
|
|
19408
|
-
|
|
19414
|
+
Je(e, t);
|
|
19409
19415
|
break;
|
|
19410
19416
|
}
|
|
19411
19417
|
case o.FRAMESET: {
|
|
@@ -19428,7 +19434,7 @@ function XE(e, t) {
|
|
|
19428
19434
|
function KE(e, t) {
|
|
19429
19435
|
switch (t.tagID) {
|
|
19430
19436
|
case o.HTML: {
|
|
19431
|
-
|
|
19437
|
+
Je(e, t);
|
|
19432
19438
|
break;
|
|
19433
19439
|
}
|
|
19434
19440
|
case o.NOFRAMES: {
|
|
@@ -19441,7 +19447,7 @@ function QE(e, t) {
|
|
|
19441
19447
|
t.tagID === o.HTML && (e.insertionMode = O.AFTER_AFTER_FRAMESET);
|
|
19442
19448
|
}
|
|
19443
19449
|
function ZE(e, t) {
|
|
19444
|
-
t.tagID === o.HTML ?
|
|
19450
|
+
t.tagID === o.HTML ? Je(e, t) : Fr(e, t);
|
|
19445
19451
|
}
|
|
19446
19452
|
function Fr(e, t) {
|
|
19447
19453
|
e.insertionMode = O.IN_BODY, ea(e, t);
|
|
@@ -19449,7 +19455,7 @@ function Fr(e, t) {
|
|
|
19449
19455
|
function JE(e, t) {
|
|
19450
19456
|
switch (t.tagID) {
|
|
19451
19457
|
case o.HTML: {
|
|
19452
|
-
|
|
19458
|
+
Je(e, t);
|
|
19453
19459
|
break;
|
|
19454
19460
|
}
|
|
19455
19461
|
case o.NOFRAMES: {
|
|
@@ -19459,7 +19465,7 @@ function JE(e, t) {
|
|
|
19459
19465
|
}
|
|
19460
19466
|
}
|
|
19461
19467
|
function eT(e, t) {
|
|
19462
|
-
t.chars =
|
|
19468
|
+
t.chars = He, e._insertCharacters(t);
|
|
19463
19469
|
}
|
|
19464
19470
|
function tT(e, t) {
|
|
19465
19471
|
e._insertCharacters(t), e.framesetOk = !1;
|
|
@@ -19759,7 +19765,7 @@ function CT(e, t) {
|
|
|
19759
19765
|
function Mn(e, t) {
|
|
19760
19766
|
ed(e, t);
|
|
19761
19767
|
const n = e.parser.tokenizer.currentCharacterToken;
|
|
19762
|
-
n && n.location && (n.location.endLine = e.parser.tokenizer.preprocessor.line, n.location.endCol = e.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = e.parser.tokenizer.preprocessor.offset + 1, e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken)), e.parser.tokenizer.paused = !1, e.parser.tokenizer.inLoop = !1, e.parser.tokenizer.active = !1, e.parser.tokenizer.returnState =
|
|
19768
|
+
n && n.location && (n.location.endLine = e.parser.tokenizer.preprocessor.line, n.location.endCol = e.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = e.parser.tokenizer.preprocessor.offset + 1, e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken)), e.parser.tokenizer.paused = !1, e.parser.tokenizer.inLoop = !1, e.parser.tokenizer.active = !1, e.parser.tokenizer.returnState = ze.DATA, e.parser.tokenizer.charRefCode = -1, e.parser.tokenizer.consumedAfterSnapshot = -1, e.parser.tokenizer.currentLocation = null, e.parser.tokenizer.currentCharacterToken = null, e.parser.tokenizer.currentToken = null, e.parser.tokenizer.currentAttr = { name: "", value: "" };
|
|
19763
19769
|
}
|
|
19764
19770
|
function ed(e, t) {
|
|
19765
19771
|
if (t && t.offset !== void 0) {
|
|
@@ -19776,7 +19782,7 @@ function ed(e, t) {
|
|
|
19776
19782
|
}
|
|
19777
19783
|
function AT(e, t) {
|
|
19778
19784
|
const n = e.tagName.toLowerCase();
|
|
19779
|
-
if (t.parser.tokenizer.state ===
|
|
19785
|
+
if (t.parser.tokenizer.state === ze.PLAINTEXT) return;
|
|
19780
19786
|
Mn(t, fn(e));
|
|
19781
19787
|
const r = t.parser.openElements.current;
|
|
19782
19788
|
let a = "namespaceURI" in r ? r.namespaceURI : an.html;
|
|
@@ -19801,7 +19807,7 @@ function AT(e, t) {
|
|
|
19801
19807
|
}
|
|
19802
19808
|
function ST(e, t) {
|
|
19803
19809
|
const n = e.tagName.toLowerCase();
|
|
19804
|
-
if (!t.parser.tokenizer.inForeignNode && Ng.includes(n) || t.parser.tokenizer.state ===
|
|
19810
|
+
if (!t.parser.tokenizer.inForeignNode && Ng.includes(n) || t.parser.tokenizer.state === ze.PLAINTEXT) return;
|
|
19805
19811
|
Mn(t, Wc(e));
|
|
19806
19812
|
const r = {
|
|
19807
19813
|
type: be.END_TAG,
|
|
@@ -19814,9 +19820,9 @@ function ST(e, t) {
|
|
|
19814
19820
|
};
|
|
19815
19821
|
t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken), // Current element is closed.
|
|
19816
19822
|
n === t.parser.tokenizer.lastStartTagName && // `<textarea>` and `<title>`
|
|
19817
|
-
(t.parser.tokenizer.state ===
|
|
19818
|
-
t.parser.tokenizer.state ===
|
|
19819
|
-
t.parser.tokenizer.state ===
|
|
19823
|
+
(t.parser.tokenizer.state === ze.RCDATA || // `<iframe>`, `<noembed>`, `<noframes>`, `<style>`, `<xmp>`
|
|
19824
|
+
t.parser.tokenizer.state === ze.RAWTEXT || // `<script>`
|
|
19825
|
+
t.parser.tokenizer.state === ze.SCRIPT_DATA) && (t.parser.tokenizer.state = ze.DATA);
|
|
19820
19826
|
}
|
|
19821
19827
|
function xT(e) {
|
|
19822
19828
|
const t = e.type === "root" ? e.children[0] : e;
|
|
@@ -19870,7 +19876,7 @@ const IT = "Sure, I can get you to someone who can help.", NT = (e) => {
|
|
|
19870
19876
|
submitEvent: s = null
|
|
19871
19877
|
}) => {
|
|
19872
19878
|
var K;
|
|
19873
|
-
const { primaryColor: l, conversationScreen: c } = se(
|
|
19879
|
+
const { primaryColor: l, conversationScreen: c } = se(je), {
|
|
19874
19880
|
content: d,
|
|
19875
19881
|
disableFeedback: h,
|
|
19876
19882
|
liveAgent: p,
|
|
@@ -20088,7 +20094,7 @@ const ua = ({
|
|
|
20088
20094
|
setLiveChatOpen: i = null,
|
|
20089
20095
|
submitEvent: u = null
|
|
20090
20096
|
}) => {
|
|
20091
|
-
const { disableScroll: s, hasError: l } = se(
|
|
20097
|
+
const { disableScroll: s, hasError: l } = se(Ze), { isConversationLoading: c } = se(wt), d = t || c, h = at(null);
|
|
20092
20098
|
return Pe(() => {
|
|
20093
20099
|
var p;
|
|
20094
20100
|
(p = h.current) == null || p.scrollIntoView({
|
|
@@ -20141,7 +20147,7 @@ ua.propTypes = {
|
|
|
20141
20147
|
ua.displayName = "ConversationMessages";
|
|
20142
20148
|
const nd = () => {
|
|
20143
20149
|
var l, c, d;
|
|
20144
|
-
const { conversationScreen: e, id: t } = se(
|
|
20150
|
+
const { conversationScreen: e, id: t } = se(je), n = `${t}-maintenance-banner`, [r, a] = de(
|
|
20145
20151
|
nt.get(n) === void 0
|
|
20146
20152
|
), i = /* @__PURE__ */ new Date(), u = new Date(
|
|
20147
20153
|
(l = e == null ? void 0 : e.maintenanceBanner) == null ? void 0 : l.endDateTime
|
|
@@ -20193,7 +20199,7 @@ const nd = () => {
|
|
|
20193
20199
|
nd.displayName = "MaintenanceBanner";
|
|
20194
20200
|
const nu = ({ onPromptClick: e }) => {
|
|
20195
20201
|
var s;
|
|
20196
|
-
const { primaryColor: t, conversationScreen: n } = se(
|
|
20202
|
+
const { primaryColor: t, conversationScreen: n } = se(je), { deleteConversationModal: r } = se(wt), { loading: a, streaming: i } = se(Ze), u = a || i;
|
|
20197
20203
|
return /* @__PURE__ */ v.jsxs("div", { style: { display: "grid", gap: ".75rem" }, children: [
|
|
20198
20204
|
/* @__PURE__ */ v.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
|
|
20199
20205
|
(s = n == null ? void 0 : n.prompts) == null ? void 0 : s.map((l) => {
|
|
@@ -20235,7 +20241,7 @@ function rd({
|
|
|
20235
20241
|
userInput: l = ""
|
|
20236
20242
|
}) {
|
|
20237
20243
|
var _, b;
|
|
20238
|
-
const { conversationScreen: c, disclaimer: d } = se(
|
|
20244
|
+
const { conversationScreen: c, disclaimer: d } = se(je), { deleteConversationModal: h, xpertMessages: p } = se(wt), { loading: f, setMode: g } = se(Ze), m = (w) => {
|
|
20239
20245
|
c.liveChat.useOwnChat ? g(It.LIVECHAT) : u(w);
|
|
20240
20246
|
};
|
|
20241
20247
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
@@ -20938,21 +20944,21 @@ function ou() {
|
|
|
20938
20944
|
return S = y, [4, (0, l.getUrl)(p, L)];
|
|
20939
20945
|
case 1:
|
|
20940
20946
|
return S.current = me.sent(), y.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), y.current = "ABORTED", (0, i.flushSync)(function() {
|
|
20941
|
-
return K(function(
|
|
20942
|
-
return e(e({},
|
|
20947
|
+
return K(function(Ce) {
|
|
20948
|
+
return e(e({}, Ce), { ABORTED: u.ReadyState.CLOSED });
|
|
20943
20949
|
});
|
|
20944
20950
|
}), [
|
|
20945
20951
|
2
|
|
20946
20952
|
/*return*/
|
|
20947
|
-
]) : (le = function(
|
|
20953
|
+
]) : (le = function(Ce) {
|
|
20948
20954
|
T || (0, i.flushSync)(function() {
|
|
20949
|
-
return b(
|
|
20955
|
+
return b(Ce);
|
|
20950
20956
|
});
|
|
20951
|
-
}, _e = function(
|
|
20957
|
+
}, _e = function(Ce) {
|
|
20952
20958
|
T || (0, i.flushSync)(function() {
|
|
20953
|
-
return K(function(
|
|
20954
|
-
var
|
|
20955
|
-
return e(e({},
|
|
20959
|
+
return K(function(Oe) {
|
|
20960
|
+
var Ue;
|
|
20961
|
+
return e(e({}, Oe), y.current && (Ue = {}, Ue[y.current] = Ce, Ue));
|
|
20956
20962
|
});
|
|
20957
20963
|
});
|
|
20958
20964
|
}, ne && (Y = (0, s.createOrJoinSocket)(N, y.current, _e, L, le, G, M, te, U)), [
|
|
@@ -21123,7 +21129,7 @@ const jT = "This conversation with a live agent has ended. Please note that a tr
|
|
|
21123
21129
|
CONVERSATION: "CONVERSATION",
|
|
21124
21130
|
FORM: "FORM"
|
|
21125
21131
|
}, hn = Gr({}), id = ({ children: e, liveChatPayload: t }) => {
|
|
21126
|
-
const { conversationScreen: n } = se(
|
|
21132
|
+
const { conversationScreen: n } = se(je), { pushXpertMessage: r } = se(wt), { setHasError: a, setMode: i } = se(Ze), [u, s] = de(""), [l, c] = de(!1), [, d] = de(""), [h, p] = de([]), [f, g] = de(null), [m, _] = de(qt.FORM), [b, w] = de(null), F = (j) => p((Y) => [...Y, j]), K = async (j) => {
|
|
21127
21133
|
const Y = await UT(j.data), { conversation_id: T, event_type: ne, body: oe } = Y;
|
|
21128
21134
|
switch (ne) {
|
|
21129
21135
|
case "AGENT_TYPING":
|
|
@@ -21252,7 +21258,7 @@ id.propTypes = {
|
|
|
21252
21258
|
};
|
|
21253
21259
|
const qT = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M120-120v-300h60v198l558-558H540v-60h300v300h-60v-198L222-180h198v60H120Z'/%3e%3c/svg%3e", zT = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M370-287h360v-90H370v90ZM180-120q-24%200-42-18t-18-42v-600q0-24%2018-42t42-18h600q24%200%2042%2018t18%2042v600q0%2024-18%2042t-42%2018H180Zm0-60h600v-600H180v600Zm0-600v600-600Z'/%3e%3c/svg%3e";
|
|
21254
21260
|
function ud({ handleResizeButtonClick: e, setIsMounted: t }) {
|
|
21255
|
-
const { isMobile: n, isNormalSize: r } = se(
|
|
21261
|
+
const { isMobile: n, isNormalSize: r } = se(Ze);
|
|
21256
21262
|
if (n)
|
|
21257
21263
|
return null;
|
|
21258
21264
|
const a = `${r ? "Expand" : "Shrink"} Xpert dialog width`;
|
|
@@ -21291,7 +21297,7 @@ function od({
|
|
|
21291
21297
|
isMounted: r
|
|
21292
21298
|
}) {
|
|
21293
21299
|
var c;
|
|
21294
|
-
const { conversationScreen: a } = se(
|
|
21300
|
+
const { conversationScreen: a } = se(je), { mode: i } = se(Ze), { setDeleteConversationModal: u, xpertMessages: s } = se(wt), l = i === It.XPERT && ((c = a == null ? void 0 : a.conversationHistory) == null ? void 0 : c.allowDeletion) && !!(s != null && s.length);
|
|
21295
21301
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
21296
21302
|
l && /* @__PURE__ */ v.jsx(
|
|
21297
21303
|
"button",
|
|
@@ -21397,7 +21403,7 @@ function ld({
|
|
|
21397
21403
|
onClose: r
|
|
21398
21404
|
}) {
|
|
21399
21405
|
var c, d, h, p, f, g, m, _, b, w, F, K, D, y, N;
|
|
21400
|
-
const { primaryColor: a, conversationScreen: i } = se(
|
|
21406
|
+
const { primaryColor: a, conversationScreen: i } = se(je), { isMobile: u, mode: s } = se(Ze), { step: l } = se(hn);
|
|
21401
21407
|
return l === qt.CONNECTING && s === It.LIVECHAT ? null : /* @__PURE__ */ v.jsxs(
|
|
21402
21408
|
"div",
|
|
21403
21409
|
{
|
|
@@ -21471,7 +21477,7 @@ function YT() {
|
|
|
21471
21477
|
deleteConversationModal: e,
|
|
21472
21478
|
deleteConversationHistory: t,
|
|
21473
21479
|
setDeleteConversationModal: n
|
|
21474
|
-
} = se(wt), { primaryColor: r } = se(
|
|
21480
|
+
} = se(wt), { primaryColor: r } = se(je);
|
|
21475
21481
|
return e ? /* @__PURE__ */ v.jsx(
|
|
21476
21482
|
"div",
|
|
21477
21483
|
{
|
|
@@ -21522,7 +21528,7 @@ function YT() {
|
|
|
21522
21528
|
}
|
|
21523
21529
|
const $T = () => {
|
|
21524
21530
|
var n, r, a, i, u;
|
|
21525
|
-
const { isMobile: e } = se(
|
|
21531
|
+
const { isMobile: e } = se(Ze), { launchButton: t } = se(je);
|
|
21526
21532
|
return (n = t == null ? void 0 : t.message) != null && n.enabled ? /* @__PURE__ */ v.jsx(
|
|
21527
21533
|
"div",
|
|
21528
21534
|
{
|
|
@@ -21540,7 +21546,7 @@ function VT() {
|
|
|
21540
21546
|
}
|
|
21541
21547
|
function cd() {
|
|
21542
21548
|
var s;
|
|
21543
|
-
const { conversationScreen: e, primaryColor: t, widgetMode: n } = se(
|
|
21549
|
+
const { conversationScreen: e, primaryColor: t, widgetMode: n } = se(je), { cancelLiveChatConnection: r } = se(hn), a = ((s = e == null ? void 0 : e.liveChat) == null ? void 0 : s.queueMessages) ?? [], i = n ? t : "#FFFFFF", u = n ? "#FFFFFF" : t;
|
|
21544
21550
|
return /* @__PURE__ */ v.jsxs("div", { className: "live-chat-connecting", style: { backgroundColor: i }, children: [
|
|
21545
21551
|
/* @__PURE__ */ v.jsx(VT, {}),
|
|
21546
21552
|
/* @__PURE__ */ v.jsx("div", { className: "live-chat-connecting-messages", style: { color: u }, children: a.length === 0 ? /* @__PURE__ */ v.jsx("p", { children: "Connecting to live agent" }) : a.map((l, c) => /* @__PURE__ */ v.jsx("p", { children: l }, `queue-message-${c}`)) }),
|
|
@@ -21573,7 +21579,7 @@ const _s = 500, WT = [
|
|
|
21573
21579
|
}
|
|
21574
21580
|
];
|
|
21575
21581
|
function dd({ onDismiss: e }) {
|
|
21576
|
-
const [t, n] = de(""), [r, a] = de(!1), [i, u] = de(null), { conversationScreen: s } = se(
|
|
21582
|
+
const [t, n] = de(""), [r, a] = de(!1), [i, u] = de(null), { conversationScreen: s } = se(je), { endLiveChat: l, submitSurvey: c, terminateConversation: d } = se(hn), h = () => {
|
|
21577
21583
|
var g;
|
|
21578
21584
|
d(), (g = s == null ? void 0 : s.liveChat) != null && g.useSurvey ? a(!0) : l();
|
|
21579
21585
|
}, p = () => {
|
|
@@ -21763,7 +21769,7 @@ const KT = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
21763
21769
|
}];
|
|
21764
21770
|
}, Qa = "privacy policy";
|
|
21765
21771
|
function hd() {
|
|
21766
|
-
const { conversationScreen: e, primaryColor: t } = se(
|
|
21772
|
+
const { conversationScreen: e, primaryColor: t } = se(je), { startLiveChat: n } = se(hn), { setMode: r } = se(Ze), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = ZT({}), [d, h] = de(!1), { clearError: p, errors: f, setErrors: g } = QT(), m = sr(
|
|
21767
21773
|
() => (s ?? "").split(Qa, 2),
|
|
21768
21774
|
[s]
|
|
21769
21775
|
), _ = () => {
|
|
@@ -21894,7 +21900,7 @@ function md({
|
|
|
21894
21900
|
style: i = {}
|
|
21895
21901
|
}) {
|
|
21896
21902
|
var g;
|
|
21897
|
-
const { proactiveMessage: u } = se(
|
|
21903
|
+
const { proactiveMessage: u } = se(je), [s, l] = de(!0), [c, d] = de(!1), h = s && (!(window != null && window.OnetrustActiveGroups) || ((g = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : g.includes("C0003"))) && nt.get(t) === void 0;
|
|
21898
21904
|
Pe(() => {
|
|
21899
21905
|
var m;
|
|
21900
21906
|
(m = window == null ? void 0 : window.OneTrust) == null || m.OnConsentChanged(() => {
|
|
@@ -22070,7 +22076,7 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22070
22076
|
userTracking: s,
|
|
22071
22077
|
webExperimentation: l,
|
|
22072
22078
|
widgetMode: c
|
|
22073
|
-
} = se(
|
|
22079
|
+
} = se(je), {
|
|
22074
22080
|
contentRef: d,
|
|
22075
22081
|
onFeedbackSelection: h,
|
|
22076
22082
|
onMessageSent: p,
|
|
@@ -22086,7 +22092,7 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22086
22092
|
setIsNormalSize: D,
|
|
22087
22093
|
setLoading: y,
|
|
22088
22094
|
setStreaming: N
|
|
22089
|
-
} = se(
|
|
22095
|
+
} = se(Ze), [, G] = de(!1), [, M] = de(!1), [te, z] = de(!1), [V, L] = de(!1), [I, R] = de(""), [U, W] = de(!1), j = te || !c, Y = at(null), T = at(null), ne = nt.get(`${a}-test`) === "1";
|
|
22090
22096
|
Pe(() => {
|
|
22091
22097
|
b === It.XPERT && j && Y.current && Y.current.focus();
|
|
22092
22098
|
}, [b, j]), JT(
|
|
@@ -22111,7 +22117,7 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22111
22117
|
s == null ? void 0 : s.payloadParams
|
|
22112
22118
|
]
|
|
22113
22119
|
), S = async () => {
|
|
22114
|
-
var ae, ge;
|
|
22120
|
+
var ae, ge, ve;
|
|
22115
22121
|
if (!nt.get(
|
|
22116
22122
|
`${a}-conversation-history-id`
|
|
22117
22123
|
)) return;
|
|
@@ -22119,12 +22125,12 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22119
22125
|
y(!1);
|
|
22120
22126
|
return;
|
|
22121
22127
|
}
|
|
22122
|
-
if (!await (async (
|
|
22123
|
-
let
|
|
22124
|
-
for (; !
|
|
22125
|
-
if (
|
|
22128
|
+
if (!await (async (Te, ke = 1e4, qe = 200) => {
|
|
22129
|
+
let Ee = 0;
|
|
22130
|
+
for (; !Te(); ) {
|
|
22131
|
+
if (Ee >= ke)
|
|
22126
22132
|
return !1;
|
|
22127
|
-
await new Promise((
|
|
22133
|
+
await new Promise((Me) => setTimeout(Me, qe)), Ee += qe;
|
|
22128
22134
|
}
|
|
22129
22135
|
return !0;
|
|
22130
22136
|
})(
|
|
@@ -22134,9 +22140,9 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22134
22140
|
return;
|
|
22135
22141
|
}
|
|
22136
22142
|
try {
|
|
22137
|
-
let
|
|
22138
|
-
const
|
|
22139
|
-
`${t.baseUrl}${
|
|
22143
|
+
let Te = Cs(a);
|
|
22144
|
+
const ke = (ge = t == null ? void 0 : t.baseUrl) != null && ge.includes("xpert-api-services") ? "/v1/history" : "/xpert/v2/history", qe = `conversation_id=${Te}&client_id=${(ve = t == null ? void 0 : t.payloadParams) == null ? void 0 : ve.client_id}`, Ee = await fetch(
|
|
22145
|
+
`${t.baseUrl}${ke}?${qe}`,
|
|
22140
22146
|
{
|
|
22141
22147
|
method: "GET",
|
|
22142
22148
|
headers: {
|
|
@@ -22144,19 +22150,19 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22144
22150
|
}
|
|
22145
22151
|
}
|
|
22146
22152
|
);
|
|
22147
|
-
if (!
|
|
22148
|
-
throw new Error(`HTTPError: ${
|
|
22149
|
-
const
|
|
22153
|
+
if (!Ee.ok)
|
|
22154
|
+
throw new Error(`HTTPError: ${Ee.status} ${Ee.statusText}`);
|
|
22155
|
+
const Me = await Ee.json();
|
|
22150
22156
|
g(
|
|
22151
|
-
|
|
22152
|
-
...
|
|
22157
|
+
Me.map((We) => ({
|
|
22158
|
+
...We,
|
|
22153
22159
|
disableFeedback: !0,
|
|
22154
|
-
toolCalls:
|
|
22155
|
-
toolCallId:
|
|
22160
|
+
toolCalls: We.tool_calls,
|
|
22161
|
+
toolCallId: We.tool_call_id
|
|
22156
22162
|
}))
|
|
22157
22163
|
), w(!0), K(!0);
|
|
22158
|
-
} catch (
|
|
22159
|
-
console.error(
|
|
22164
|
+
} catch (Te) {
|
|
22165
|
+
console.error(Te);
|
|
22160
22166
|
} finally {
|
|
22161
22167
|
y(!1);
|
|
22162
22168
|
}
|
|
@@ -22211,7 +22217,7 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22211
22217
|
return null;
|
|
22212
22218
|
const me = () => {
|
|
22213
22219
|
R(""), Y.current.value = "", Y.current.style.height = "auto";
|
|
22214
|
-
},
|
|
22220
|
+
}, Ce = (B, re) => {
|
|
22215
22221
|
oe({
|
|
22216
22222
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
|
|
22217
22223
|
payload: {
|
|
@@ -22223,7 +22229,7 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22223
22229
|
conversationHistoryId: re
|
|
22224
22230
|
}
|
|
22225
22231
|
});
|
|
22226
|
-
},
|
|
22232
|
+
}, Oe = ({
|
|
22227
22233
|
conversationSize: B,
|
|
22228
22234
|
userInputMessage: re,
|
|
22229
22235
|
apiResponseMessage: ie,
|
|
@@ -22243,33 +22249,33 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22243
22249
|
conversationByteSize: ge
|
|
22244
22250
|
}
|
|
22245
22251
|
});
|
|
22246
|
-
},
|
|
22252
|
+
}, Ue = async (B, re) => {
|
|
22247
22253
|
const ie = await B.json(), ae = Array.isArray(ie) ? ie : [ie];
|
|
22248
22254
|
return ae.forEach(
|
|
22249
22255
|
({
|
|
22250
22256
|
content: ge,
|
|
22251
|
-
live_agent:
|
|
22257
|
+
live_agent: ve,
|
|
22252
22258
|
role: Te,
|
|
22253
|
-
tool_calls:
|
|
22254
|
-
tool_call_id:
|
|
22259
|
+
tool_calls: ke,
|
|
22260
|
+
tool_call_id: qe
|
|
22255
22261
|
}) => {
|
|
22256
22262
|
f({
|
|
22257
22263
|
content: ge,
|
|
22258
22264
|
createdAt: /* @__PURE__ */ new Date(),
|
|
22259
|
-
liveAgent:
|
|
22265
|
+
liveAgent: ve,
|
|
22260
22266
|
role: Te,
|
|
22261
|
-
toolCalls:
|
|
22262
|
-
toolCallId:
|
|
22263
|
-
}),
|
|
22267
|
+
toolCalls: ke,
|
|
22268
|
+
toolCallId: qe
|
|
22269
|
+
}), Ce(ge, re);
|
|
22264
22270
|
}
|
|
22265
22271
|
), ae;
|
|
22266
|
-
},
|
|
22272
|
+
}, Ie = async (B, re) => {
|
|
22267
22273
|
const ie = new TextDecoder("utf-8");
|
|
22268
22274
|
let ae = [];
|
|
22269
|
-
const { value: ge } = await B.read(),
|
|
22275
|
+
const { value: ge } = await B.read(), ve = ie.decode(ge, { stream: !0 });
|
|
22270
22276
|
try {
|
|
22271
|
-
const Te =
|
|
22272
|
-
Te && Te.length > 0 ? ae = JSON.parse(Te[Te.length - 1]) : ae = Array.isArray(
|
|
22277
|
+
const Te = ve.match(/\[.*?\](?=\[|$)/gs);
|
|
22278
|
+
Te && Te.length > 0 ? ae = JSON.parse(Te[Te.length - 1]) : ae = Array.isArray(ve) ? ve : [ve];
|
|
22273
22279
|
} catch {
|
|
22274
22280
|
ae = [];
|
|
22275
22281
|
}
|
|
@@ -22291,38 +22297,38 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22291
22297
|
toolCallId: ae[0].tool_calls[0].id
|
|
22292
22298
|
};
|
|
22293
22299
|
f(Te);
|
|
22294
|
-
const
|
|
22300
|
+
const ke = {
|
|
22295
22301
|
content: "",
|
|
22296
22302
|
createdAt: /* @__PURE__ */ new Date(),
|
|
22297
22303
|
role: "tool",
|
|
22298
22304
|
toolCallId: ae[0].tool_calls[0].id
|
|
22299
22305
|
};
|
|
22300
|
-
f(
|
|
22306
|
+
f(ke), Ce(ae[0].content, re);
|
|
22301
22307
|
}
|
|
22302
22308
|
return ae;
|
|
22303
|
-
},
|
|
22304
|
-
var
|
|
22309
|
+
}, Ke = async (B, re) => {
|
|
22310
|
+
var ve;
|
|
22305
22311
|
const ie = new TextDecoder("utf-8");
|
|
22306
22312
|
let ae = "", ge = [];
|
|
22307
22313
|
for (; ; ) {
|
|
22308
|
-
const { value: Te, done:
|
|
22309
|
-
if (
|
|
22310
|
-
const
|
|
22314
|
+
const { value: Te, done: ke } = await B.read();
|
|
22315
|
+
if (ke) break;
|
|
22316
|
+
const qe = ie.decode(Te, { stream: !0 });
|
|
22311
22317
|
try {
|
|
22312
|
-
const Ee =
|
|
22313
|
-
ae = (
|
|
22318
|
+
const Ee = qe.match(/\[.*?\](?=\[|$)/gs);
|
|
22319
|
+
ae = (ve = JSON.parse(Ee[Ee.length - 1])[0]) == null ? void 0 : ve.content, ge.length === 0 && ae ? (ge.push({
|
|
22314
22320
|
role: "assistant",
|
|
22315
22321
|
disableFeedback: !0,
|
|
22316
22322
|
content: ae
|
|
22317
|
-
}), ge.forEach(({ content:
|
|
22323
|
+
}), ge.forEach(({ content: We, live_agent: Mt, role: _t }) => {
|
|
22318
22324
|
f({
|
|
22319
|
-
content:
|
|
22325
|
+
content: We,
|
|
22320
22326
|
createdAt: /* @__PURE__ */ new Date(),
|
|
22321
22327
|
liveAgent: Mt,
|
|
22322
22328
|
role: _t
|
|
22323
22329
|
});
|
|
22324
|
-
})) : (await i3(), g((
|
|
22325
|
-
const Mt = [...
|
|
22330
|
+
})) : (await i3(), g((We) => {
|
|
22331
|
+
const Mt = [...We], _t = Mt.length - 1;
|
|
22326
22332
|
return _t >= 0 && (Mt[_t] = {
|
|
22327
22333
|
...Mt[_t],
|
|
22328
22334
|
content: ae
|
|
@@ -22331,17 +22337,17 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22331
22337
|
} catch {
|
|
22332
22338
|
}
|
|
22333
22339
|
}
|
|
22334
|
-
return
|
|
22340
|
+
return Ce(ae, re), ge;
|
|
22335
22341
|
}, ot = async (B, re) => {
|
|
22336
|
-
var
|
|
22342
|
+
var ve;
|
|
22337
22343
|
N(!0);
|
|
22338
|
-
const ie = B.body.getReader(), ae = await
|
|
22344
|
+
const ie = B.body.getReader(), ae = await Ie(
|
|
22339
22345
|
ie,
|
|
22340
22346
|
re
|
|
22341
22347
|
);
|
|
22342
|
-
if ((
|
|
22348
|
+
if ((ve = ae == null ? void 0 : ae[0]) != null && ve.tool_calls)
|
|
22343
22349
|
return N(!1), ae;
|
|
22344
|
-
const ge = await
|
|
22350
|
+
const ge = await Ke(
|
|
22345
22351
|
ie,
|
|
22346
22352
|
re
|
|
22347
22353
|
);
|
|
@@ -22353,7 +22359,7 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22353
22359
|
return;
|
|
22354
22360
|
const ie = /* @__PURE__ */ new Date();
|
|
22355
22361
|
K(!1), F(!1);
|
|
22356
|
-
const ae = m.filter((
|
|
22362
|
+
const ae = m.filter((Me) => Me.role === "user").length + 1;
|
|
22357
22363
|
if (oe({
|
|
22358
22364
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
|
|
22359
22365
|
payload: {
|
|
@@ -22369,19 +22375,19 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22369
22375
|
}
|
|
22370
22376
|
let ge = null;
|
|
22371
22377
|
r.conversationHistory.enabled && (ge = Cs(a)), f({ role: "user", content: B });
|
|
22372
|
-
const
|
|
22378
|
+
const ve = [
|
|
22373
22379
|
...m,
|
|
22374
22380
|
{ role: "user", content: B }
|
|
22375
|
-
].map((
|
|
22376
|
-
role:
|
|
22377
|
-
content:
|
|
22378
|
-
...
|
|
22379
|
-
...
|
|
22380
|
-
})).filter(({ role:
|
|
22381
|
+
].map((Me) => ({
|
|
22382
|
+
role: Me.role,
|
|
22383
|
+
content: Me.content,
|
|
22384
|
+
...Me.toolCalls && { tool_calls: Me.toolCalls },
|
|
22385
|
+
...Me.toolCallId && { tool_call_id: Me.toolCallId }
|
|
22386
|
+
})).filter(({ role: Me }) => ["assistant", "tool", "user"].includes(Me)), Te = await fetch(t.endpoint, {
|
|
22381
22387
|
method: "POST",
|
|
22382
22388
|
headers: { "Content-Type": "application/json" },
|
|
22383
22389
|
body: JSON.stringify({
|
|
22384
|
-
[t == null ? void 0 : t.messagesKey]:
|
|
22390
|
+
[t == null ? void 0 : t.messagesKey]: ve,
|
|
22385
22391
|
...t.payloadParams,
|
|
22386
22392
|
...ge && {
|
|
22387
22393
|
conversation_id: ge
|
|
@@ -22391,16 +22397,16 @@ function gd({ submitEventExternal: e = null }) {
|
|
|
22391
22397
|
if (!Te.ok)
|
|
22392
22398
|
throw new Error(`HTTPError: ${Te.status} ${Te.statusText}`);
|
|
22393
22399
|
y(!1);
|
|
22394
|
-
let
|
|
22395
|
-
const
|
|
22396
|
-
JSON.stringify(
|
|
22400
|
+
let ke = (re = t.payloadParams) != null && re.stream ? await ot(Te, ge) : await Ue(Te, ge);
|
|
22401
|
+
const qe = /* @__PURE__ */ new Date(), Ee = a3(
|
|
22402
|
+
JSON.stringify(ve)
|
|
22397
22403
|
);
|
|
22398
|
-
|
|
22404
|
+
Oe({
|
|
22399
22405
|
conversationByteSize: Ee,
|
|
22400
|
-
conversationSize: m.length +
|
|
22406
|
+
conversationSize: m.length + ke.length + 1,
|
|
22401
22407
|
userInputMessage: B,
|
|
22402
|
-
apiResponseMessage:
|
|
22403
|
-
elapsedSeconds: n3(ie,
|
|
22408
|
+
apiResponseMessage: ke.map((Me) => Me.content ?? "").join(" "),
|
|
22409
|
+
elapsedSeconds: n3(ie, qe)
|
|
22404
22410
|
}), w(!1), me(), K(!0);
|
|
22405
22411
|
} catch (ie) {
|
|
22406
22412
|
y(!1), me(), F(!0), console.error(ie);
|