@2uinc/frontend-component-xpert-chatbot 1.35.0-beta.7 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.min.js +943 -938
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import Et, { createContext as Wr, useState as de, useCallback as bt, useEffect as
|
1
|
+
import Et, { createContext as Wr, useState as de, useCallback as bt, useEffect as He, useMemo as or, useRef as pt, useContext as se, forwardRef as Cs, createElement as Za, useLayoutEffect as b0, Fragment as E0 } from "react";
|
2
2
|
import T0 from "react-dom";
|
3
3
|
var _r = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
4
4
|
function kt(e) {
|
@@ -243,9 +243,9 @@ Xn.exports;
|
|
243
243
|
var Su;
|
244
244
|
function O0() {
|
245
245
|
return Su || (Su = 1, function(e, t) {
|
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]", b = "[object GeneratorFunction]", m = "[object Map]", _ = "[object Number]", T = "[object Null]", M = "[object Object]", B = "[object Proxy]", K = "[object RegExp]", w = "[object Set]", y = "[object String]", k = "[object Undefined]", G = "[object WeakMap]", F = "[object ArrayBuffer]", Z = "[object DataView]", z = "[object Float32Array]",
|
247
|
-
S[z] = S[
|
248
|
-
var le = typeof _r == "object" && _r && _r.Object === Object && _r,
|
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]", b = "[object GeneratorFunction]", m = "[object Map]", _ = "[object Number]", T = "[object Null]", M = "[object Object]", B = "[object Proxy]", K = "[object RegExp]", w = "[object Set]", y = "[object String]", k = "[object Undefined]", G = "[object WeakMap]", F = "[object ArrayBuffer]", Z = "[object DataView]", z = "[object Float32Array]", $ = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", R = "[object Int32Array]", U = "[object Uint8Array]", W = "[object Uint8ClampedArray]", q = "[object Uint16Array]", Y = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, oe = /^(?:0|[1-9]\d*)$/, S = {};
|
247
|
+
S[z] = S[$] = S[L] = S[I] = S[R] = S[U] = S[W] = S[q] = S[Y] = !0, S[s] = S[l] = S[F] = S[d] = S[Z] = S[h] = S[p] = S[f] = S[m] = S[_] = S[M] = S[K] = S[w] = S[y] = S[G] = !1;
|
248
|
+
var le = typeof _r == "object" && _r && _r.Object === Object && _r, Te = typeof self == "object" && self && self.Object === Object && self, me = le || Te || Function("return this")(), xe = t && !t.nodeType && t, ve = xe && !0 && e && !e.nodeType && e, Be = ve && ve.exports === xe, Oe = Be && le.process, We = function() {
|
249
249
|
try {
|
250
250
|
var A = ve && ve.require && ve.require("util").types;
|
251
251
|
return A || Oe && Oe.binding && Oe.binding("util");
|
@@ -286,24 +286,24 @@ function O0() {
|
|
286
286
|
var pn = Array.prototype, Mn = Function.prototype, St = Object.prototype, jt = me["__core-js_shared__"], Dt = Mn.toString, it = St.hasOwnProperty, Gt = function() {
|
287
287
|
var A = /[^.]+$/.exec(jt && jt.keys && jt.keys.IE_PROTO || "");
|
288
288
|
return A ? "Symbol(src)_1." + A : "";
|
289
|
-
}(), Xt = St.toString, mn = Dt.call(Object),
|
289
|
+
}(), Xt = St.toString, mn = Dt.call(Object), D = RegExp(
|
290
290
|
"^" + Dt.call(it).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
291
|
-
),
|
292
|
-
|
293
|
-
var ue = hn(Object.getPrototypeOf, Object),
|
291
|
+
), V = Be ? me.Buffer : void 0, re = me.Symbol, ae = me.Uint8Array;
|
292
|
+
V && V.allocUnsafe;
|
293
|
+
var ue = hn(Object.getPrototypeOf, Object), ye = Object.create, Ee = St.propertyIsEnumerable, De = pn.splice, we = re ? re.toStringTag : void 0, Ge = function() {
|
294
294
|
try {
|
295
295
|
var A = la(Object, "defineProperty");
|
296
296
|
return A({}, "", {}), A;
|
297
297
|
} catch {
|
298
298
|
}
|
299
|
-
}(), ge =
|
299
|
+
}(), ge = V ? V.isBuffer : void 0, ut = Math.max, Xe = Date.now, ua = la(me, "Map"), Fn = la(Object, "create"), bd = /* @__PURE__ */ function() {
|
300
300
|
function A() {
|
301
301
|
}
|
302
302
|
return function(N) {
|
303
303
|
if (!Qt(N))
|
304
304
|
return {};
|
305
|
-
if (
|
306
|
-
return
|
305
|
+
if (ye)
|
306
|
+
return ye(N);
|
307
307
|
A.prototype = N;
|
308
308
|
var H = new A();
|
309
309
|
return A.prototype = void 0, H;
|
@@ -355,7 +355,7 @@ function O0() {
|
|
355
355
|
if (H < 0)
|
356
356
|
return !1;
|
357
357
|
var ie = N.length - 1;
|
358
|
-
return H == ie ? N.pop() :
|
358
|
+
return H == ie ? N.pop() : De.call(N, H, 1), --this.size, !0;
|
359
359
|
}
|
360
360
|
function xd(A) {
|
361
361
|
var N = this.__data__, H = br(N, A);
|
@@ -427,14 +427,14 @@ function O0() {
|
|
427
427
|
}
|
428
428
|
bn.prototype.clear = Dd, bn.prototype.delete = wd, bn.prototype.get = Pd, bn.prototype.has = Md, bn.prototype.set = Fd;
|
429
429
|
function Bd(A, N) {
|
430
|
-
var H = fa(A), ie = !H && da(A),
|
430
|
+
var H = fa(A), ie = !H && da(A), _e = !H && !ie && fu(A), Ie = !H && !ie && !_e && pu(A), Pe = H || ie || _e || Ie, Ce = Pe ? wn(A.length, String) : [], Me = Ce.length;
|
431
431
|
for (var Ct in A)
|
432
|
-
|
432
|
+
Pe && // 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
|
+
_e && (Ct == "offset" || Ct == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
435
435
|
Ie && (Ct == "buffer" || Ct == "byteLength" || Ct == "byteOffset") || // Skip index properties.
|
436
|
-
cu(Ct,
|
437
|
-
return
|
436
|
+
cu(Ct, Me)) || Ce.push(Ct);
|
437
|
+
return Ce;
|
438
438
|
}
|
439
439
|
function oa(A, N, H) {
|
440
440
|
(H !== void 0 && !yr(A[N], H) || H === void 0 && !(N in A)) && sa(A, N, H);
|
@@ -459,7 +459,7 @@ function O0() {
|
|
459
459
|
}
|
460
460
|
var Ud = Jd();
|
461
461
|
function Er(A) {
|
462
|
-
return A == null ? A === void 0 ? k : T :
|
462
|
+
return A == null ? A === void 0 ? k : T : we && we in Object(A) ? e0(A) : u0(A);
|
463
463
|
}
|
464
464
|
function su(A) {
|
465
465
|
return Bn(A) && Er(A) == s;
|
@@ -467,7 +467,7 @@ function O0() {
|
|
467
467
|
function jd(A) {
|
468
468
|
if (!Qt(A) || a0(A))
|
469
469
|
return !1;
|
470
|
-
var N = pa(A) ?
|
470
|
+
var N = pa(A) ? D : ne;
|
471
471
|
return N.test(c0(A));
|
472
472
|
}
|
473
473
|
function qd(A) {
|
@@ -481,28 +481,28 @@ function O0() {
|
|
481
481
|
ie == "constructor" && (N || !it.call(A, ie)) || H.push(ie);
|
482
482
|
return H;
|
483
483
|
}
|
484
|
-
function lu(A, N, H, ie,
|
485
|
-
A !== N && Ud(N, function(Ie,
|
486
|
-
if (
|
487
|
-
Yd(A, N,
|
484
|
+
function lu(A, N, H, ie, _e) {
|
485
|
+
A !== N && Ud(N, function(Ie, Pe) {
|
486
|
+
if (_e || (_e = new bn()), Qt(Ie))
|
487
|
+
Yd(A, N, Pe, H, lu, ie, _e);
|
488
488
|
else {
|
489
|
-
var
|
490
|
-
|
489
|
+
var Ce = ie ? ie(ca(A, Pe), Ie, Pe + "", A, N, _e) : void 0;
|
490
|
+
Ce === void 0 && (Ce = Ie), oa(A, Pe, Ce);
|
491
491
|
}
|
492
492
|
}, mu);
|
493
493
|
}
|
494
|
-
function Yd(A, N, H, ie,
|
495
|
-
var
|
494
|
+
function Yd(A, N, H, ie, _e, Ie, Pe) {
|
495
|
+
var Ce = ca(A, H), Me = ca(N, H), Ct = Pe.get(Me);
|
496
496
|
if (Ct) {
|
497
497
|
oa(A, H, Ct);
|
498
498
|
return;
|
499
499
|
}
|
500
|
-
var ot = Ie ? Ie(
|
500
|
+
var ot = Ie ? Ie(Ce, Me, H + "", A, N, Pe) : void 0, Hn = ot === void 0;
|
501
501
|
if (Hn) {
|
502
|
-
var ma = fa(
|
503
|
-
ot =
|
502
|
+
var ma = fa(Me), ga = !ma && fu(Me), bu = !ma && !ga && pu(Me);
|
503
|
+
ot = Me, ma || ga || bu ? fa(Ce) ? ot = Ce : d0(Ce) ? ot = Kd(Ce) : ga ? (Hn = !1, ot = Wd(Me)) : bu ? (Hn = !1, ot = Xd(Me)) : ot = [] : f0(Me) || da(Me) ? (ot = Ce, da(Ce) ? ot = h0(Ce) : (!Qt(Ce) || pa(Ce)) && (ot = t0(Me))) : Hn = !1;
|
504
504
|
}
|
505
|
-
Hn && (
|
505
|
+
Hn && (Pe.set(Me, ot), _e(ot, Me, ie, Ie, Pe), Pe.delete(Me)), oa(A, H, ot);
|
506
506
|
}
|
507
507
|
function $d(A, N) {
|
508
508
|
return s0(o0(A, N, gu), A + "");
|
@@ -533,29 +533,29 @@ function O0() {
|
|
533
533
|
return N;
|
534
534
|
}
|
535
535
|
function Qd(A, N, H, ie) {
|
536
|
-
var
|
536
|
+
var _e = !H;
|
537
537
|
H || (H = {});
|
538
|
-
for (var Ie = -1,
|
539
|
-
var
|
540
|
-
|
538
|
+
for (var Ie = -1, Pe = N.length; ++Ie < Pe; ) {
|
539
|
+
var Ce = N[Ie], Me = void 0;
|
540
|
+
Me === void 0 && (Me = A[Ce]), _e ? sa(H, Ce, Me) : Hd(H, Ce, Me);
|
541
541
|
}
|
542
542
|
return H;
|
543
543
|
}
|
544
544
|
function Zd(A) {
|
545
545
|
return $d(function(N, H) {
|
546
|
-
var ie = -1,
|
547
|
-
for (Ie = A.length > 3 && typeof Ie == "function" ? (
|
548
|
-
var
|
549
|
-
|
546
|
+
var ie = -1, _e = H.length, Ie = _e > 1 ? H[_e - 1] : void 0, Pe = _e > 2 ? H[2] : void 0;
|
547
|
+
for (Ie = A.length > 3 && typeof Ie == "function" ? (_e--, Ie) : void 0, Pe && n0(H[0], H[1], Pe) && (Ie = _e < 3 ? void 0 : Ie, _e = 1), N = Object(N); ++ie < _e; ) {
|
548
|
+
var Ce = H[ie];
|
549
|
+
Ce && A(N, Ce, ie, Ie);
|
550
550
|
}
|
551
551
|
return N;
|
552
552
|
});
|
553
553
|
}
|
554
554
|
function Jd(A) {
|
555
555
|
return function(N, H, ie) {
|
556
|
-
for (var
|
557
|
-
var
|
558
|
-
if (H(Ie[
|
556
|
+
for (var _e = -1, Ie = Object(N), Pe = ie(N), Ce = Pe.length; Ce--; ) {
|
557
|
+
var Me = Pe[++_e];
|
558
|
+
if (H(Ie[Me], Me, Ie) === !1)
|
559
559
|
break;
|
560
560
|
}
|
561
561
|
return N;
|
@@ -570,14 +570,14 @@ function O0() {
|
|
570
570
|
return jd(H) ? H : void 0;
|
571
571
|
}
|
572
572
|
function e0(A) {
|
573
|
-
var N = it.call(A,
|
573
|
+
var N = it.call(A, we), H = A[we];
|
574
574
|
try {
|
575
|
-
A[
|
575
|
+
A[we] = void 0;
|
576
576
|
var ie = !0;
|
577
577
|
} catch {
|
578
578
|
}
|
579
|
-
var
|
580
|
-
return ie && (N ? A[
|
579
|
+
var _e = Xt.call(A);
|
580
|
+
return ie && (N ? A[we] = H : delete A[we]), _e;
|
581
581
|
}
|
582
582
|
function t0(A) {
|
583
583
|
return typeof A.constructor == "function" && !du(A) ? bd(ue(A)) : {};
|
@@ -615,12 +615,12 @@ function O0() {
|
|
615
615
|
}
|
616
616
|
function o0(A, N, H) {
|
617
617
|
return N = ut(N === void 0 ? A.length - 1 : N, 0), function() {
|
618
|
-
for (var ie = arguments,
|
619
|
-
|
620
|
-
|
621
|
-
for (var
|
622
|
-
_e
|
623
|
-
return
|
618
|
+
for (var ie = arguments, _e = -1, Ie = ut(ie.length - N, 0), Pe = Array(Ie); ++_e < Ie; )
|
619
|
+
Pe[_e] = ie[N + _e];
|
620
|
+
_e = -1;
|
621
|
+
for (var Ce = Array(N + 1); ++_e < N; )
|
622
|
+
Ce[_e] = ie[_e];
|
623
|
+
return Ce[N] = H(Pe), _t(A, this, Ce);
|
624
624
|
};
|
625
625
|
}
|
626
626
|
function ca(A, N) {
|
@@ -631,8 +631,8 @@ function O0() {
|
|
631
631
|
function l0(A) {
|
632
632
|
var N = 0, H = 0;
|
633
633
|
return function() {
|
634
|
-
var ie = Xe(),
|
635
|
-
if (H = ie,
|
634
|
+
var ie = Xe(), _e = i - (ie - H);
|
635
|
+
if (H = ie, _e > 0) {
|
636
636
|
if (++N >= a)
|
637
637
|
return arguments[0];
|
638
638
|
} else
|
@@ -659,7 +659,7 @@ function O0() {
|
|
659
659
|
var da = su(/* @__PURE__ */ function() {
|
660
660
|
return arguments;
|
661
661
|
}()) ? su : function(A) {
|
662
|
-
return Bn(A) && it.call(A, "callee") && !
|
662
|
+
return Bn(A) && it.call(A, "callee") && !Ee.call(A, "callee");
|
663
663
|
}, fa = Array.isArray;
|
664
664
|
function ha(A) {
|
665
665
|
return A != null && hu(A.length) && !pa(A);
|
@@ -1427,7 +1427,7 @@ const xs = /* @__PURE__ */ kt(I0), N0 = {
|
|
1427
1427
|
if (!e)
|
1428
1428
|
throw new Error("id is required");
|
1429
1429
|
return M0[e] || {};
|
1430
|
-
},
|
1430
|
+
}, Ue = Wr({}), vs = ({
|
1431
1431
|
children: e,
|
1432
1432
|
clientId: t = null,
|
1433
1433
|
configurations: n = null,
|
@@ -1439,7 +1439,7 @@ const xs = /* @__PURE__ */ kt(I0), N0 = {
|
|
1439
1439
|
if (u(!1), t)
|
1440
1440
|
try {
|
1441
1441
|
const p = await fetch(
|
1442
|
-
`https://xpert-api-services.
|
1442
|
+
`https://xpert-api-services.prod.ai.2u.com/v1/client?client_id=${t}`,
|
1443
1443
|
{
|
1444
1444
|
method: "GET",
|
1445
1445
|
headers: {
|
@@ -1466,7 +1466,7 @@ const xs = /* @__PURE__ */ kt(I0), N0 = {
|
|
1466
1466
|
u(!0);
|
1467
1467
|
}
|
1468
1468
|
}, [t, r]);
|
1469
|
-
|
1469
|
+
He(() => {
|
1470
1470
|
c();
|
1471
1471
|
}, [c]);
|
1472
1472
|
const d = or(
|
@@ -1474,7 +1474,7 @@ const xs = /* @__PURE__ */ kt(I0), N0 = {
|
|
1474
1474
|
[n, s]
|
1475
1475
|
), h = or(() => t || r ? i : !!n, [t, i, n, r]);
|
1476
1476
|
return /* @__PURE__ */ v.jsx(
|
1477
|
-
|
1477
|
+
Ue.Provider,
|
1478
1478
|
{
|
1479
1479
|
value: {
|
1480
1480
|
...d,
|
@@ -1610,7 +1610,7 @@ const Lt = Wr({}), Os = x.shape({
|
|
1610
1610
|
onFeedbackSelection: r,
|
1611
1611
|
onMessageSent: a
|
1612
1612
|
}) => {
|
1613
|
-
const i = pt(null), { id: u } = se(
|
1613
|
+
const i = pt(null), { id: u } = se(Ue), [s, l] = de(null), [c, d] = de(!1), [h, p] = de([]), f = bt(() => {
|
1614
1614
|
l(null), d(!1), p([]), ft.remove(`${u}-conversation-history-id`);
|
1615
1615
|
}, [u, l]), m = {
|
1616
1616
|
contentRef: i,
|
@@ -1639,7 +1639,7 @@ const xu = 991, B0 = () => {
|
|
1639
1639
|
const [e, t] = de(
|
1640
1640
|
window.innerWidth < xu
|
1641
1641
|
);
|
1642
|
-
return
|
1642
|
+
return He(() => {
|
1643
1643
|
const n = () => {
|
1644
1644
|
t(window.innerWidth < xu);
|
1645
1645
|
};
|
@@ -1752,12 +1752,12 @@ eyes follow your mouse when you hover near it.`, Ls = ({
|
|
1752
1752
|
handleFloatingActionButtonClick: e = null
|
1753
1753
|
}) => {
|
1754
1754
|
var f, b, m, _;
|
1755
|
-
const { id: t, launchButton: n } = se(
|
1755
|
+
const { id: t, launchButton: n } = se(Ue), { isMobile: r } = se(Ze), a = !ft.get(
|
1756
1756
|
`${t}-proactive-message-xpert-chatbot`
|
1757
1757
|
), i = pt(null), u = pt(!1), s = a ? (f = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : f.delayMs : ((b = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : b.delayMs) * 2, [l, c] = de(!1), d = window.matchMedia(
|
1758
1758
|
`(max-width: ${j0}px)`
|
1759
1759
|
).matches;
|
1760
|
-
|
1760
|
+
He(() => {
|
1761
1761
|
const M = setTimeout(
|
1762
1762
|
() => {
|
1763
1763
|
c(!0);
|
@@ -1767,7 +1767,7 @@ eyes follow your mouse when you hover near it.`, Ls = ({
|
|
1767
1767
|
return () => {
|
1768
1768
|
clearTimeout(M);
|
1769
1769
|
};
|
1770
|
-
}, [s]),
|
1770
|
+
}, [s]), He(() => {
|
1771
1771
|
const T = (M) => {
|
1772
1772
|
const B = window.devicePixelRatio > 1.5;
|
1773
1773
|
if (!(u != null && u.current) || d || B)
|
@@ -1961,7 +1961,7 @@ const z0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
|
|
1961
1961
|
handleFloatingActionButtonClick: e = null
|
1962
1962
|
}) => {
|
1963
1963
|
var r, a;
|
1964
|
-
const { launchButton: t } = se(
|
1964
|
+
const { launchButton: t } = se(Ue), { isMobile: n } = se(Ze);
|
1965
1965
|
return /* @__PURE__ */ v.jsx(
|
1966
1966
|
xi,
|
1967
1967
|
{
|
@@ -2338,68 +2338,68 @@ var ku = {
|
|
2338
2338
|
delayInitialFocusTimer: void 0,
|
2339
2339
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
2340
2340
|
recentNavEvent: void 0
|
2341
|
-
}, s, l = function(
|
2342
|
-
return
|
2343
|
-
}, c = function(
|
2344
|
-
var
|
2341
|
+
}, s, l = function(L, I, R) {
|
2342
|
+
return L && L[I] !== void 0 ? L[I] : i[R || I];
|
2343
|
+
}, c = function(L, I) {
|
2344
|
+
var R = typeof (I == null ? void 0 : I.composedPath) == "function" ? I.composedPath() : void 0;
|
2345
2345
|
return u.containerGroups.findIndex(function(U) {
|
2346
2346
|
var W = U.container, q = U.tabbableNodes;
|
2347
|
-
return W.contains(
|
2347
|
+
return W.contains(L) || // fall back to explicit tabbable search which will take into consideration any
|
2348
2348
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
2349
2349
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
2350
2350
|
// look inside web components even if open)
|
2351
|
-
(
|
2352
|
-
return Y ===
|
2351
|
+
(R == null ? void 0 : R.includes(W)) || q.find(function(Y) {
|
2352
|
+
return Y === L;
|
2353
2353
|
});
|
2354
2354
|
});
|
2355
|
-
}, d = function(
|
2356
|
-
var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
2355
|
+
}, d = function(L) {
|
2356
|
+
var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, R = I.hasFallback, U = R === void 0 ? !1 : R, W = I.params, q = W === void 0 ? [] : W, Y = i[L];
|
2357
2357
|
if (typeof Y == "function" && (Y = Y.apply(void 0, ff(q))), Y === !0 && (Y = void 0), !Y) {
|
2358
2358
|
if (Y === void 0 || Y === !1)
|
2359
2359
|
return Y;
|
2360
|
-
throw new Error("`".concat(
|
2360
|
+
throw new Error("`".concat(L, "` was specified but was not a node, or did not return a node"));
|
2361
2361
|
}
|
2362
2362
|
var g = Y;
|
2363
2363
|
if (typeof Y == "string") {
|
2364
2364
|
try {
|
2365
2365
|
g = r.querySelector(Y);
|
2366
|
-
} catch (
|
2367
|
-
throw new Error("`".concat(
|
2366
|
+
} catch (ne) {
|
2367
|
+
throw new Error("`".concat(L, '` appears to be an invalid selector; error="').concat(ne.message, '"'));
|
2368
2368
|
}
|
2369
2369
|
if (!g && !U)
|
2370
|
-
throw new Error("`".concat(
|
2370
|
+
throw new Error("`".concat(L, "` as selector refers to no known node"));
|
2371
2371
|
}
|
2372
2372
|
return g;
|
2373
2373
|
}, h = function() {
|
2374
|
-
var
|
2374
|
+
var L = d("initialFocus", {
|
2375
2375
|
hasFallback: !0
|
2376
2376
|
});
|
2377
|
-
if (
|
2377
|
+
if (L === !1)
|
2378
2378
|
return !1;
|
2379
|
-
if (
|
2379
|
+
if (L === void 0 || L && !kr(L, i.tabbableOptions))
|
2380
2380
|
if (c(r.activeElement) >= 0)
|
2381
|
-
|
2381
|
+
L = r.activeElement;
|
2382
2382
|
else {
|
2383
|
-
var I = u.tabbableGroups[0],
|
2384
|
-
|
2383
|
+
var I = u.tabbableGroups[0], R = I && I.firstTabbableNode;
|
2384
|
+
L = R || d("fallbackFocus");
|
2385
2385
|
}
|
2386
|
-
else
|
2387
|
-
if (!
|
2386
|
+
else L === null && (L = d("fallbackFocus"));
|
2387
|
+
if (!L)
|
2388
2388
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
2389
|
-
return
|
2389
|
+
return L;
|
2390
2390
|
}, p = function() {
|
2391
|
-
if (u.containerGroups = u.containers.map(function(
|
2392
|
-
var I = Us(
|
2393
|
-
return tn(
|
2394
|
-
}), Y =
|
2395
|
-
return tn(
|
2396
|
-
}), g = !!I.find(function(
|
2397
|
-
return $t(
|
2391
|
+
if (u.containerGroups = u.containers.map(function(L) {
|
2392
|
+
var I = Us(L, i.tabbableOptions), R = js(L, i.tabbableOptions), U = I.length > 0 ? I[0] : void 0, W = I.length > 0 ? I[I.length - 1] : void 0, q = R.find(function(ne) {
|
2393
|
+
return tn(ne);
|
2394
|
+
}), Y = R.slice().reverse().find(function(ne) {
|
2395
|
+
return tn(ne);
|
2396
|
+
}), g = !!I.find(function(ne) {
|
2397
|
+
return $t(ne) > 0;
|
2398
2398
|
});
|
2399
2399
|
return {
|
2400
|
-
container:
|
2400
|
+
container: L,
|
2401
2401
|
tabbableNodes: I,
|
2402
|
-
focusableNodes:
|
2402
|
+
focusableNodes: R,
|
2403
2403
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
2404
2404
|
posTabIndexesFound: g,
|
2405
2405
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
@@ -2427,74 +2427,74 @@ var ku = {
|
|
2427
2427
|
*/
|
2428
2428
|
nextTabbableNode: function(oe) {
|
2429
2429
|
var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, le = I.indexOf(oe);
|
2430
|
-
return le < 0 ? S ?
|
2431
|
-
return tn(
|
2432
|
-
}) :
|
2433
|
-
return tn(
|
2430
|
+
return le < 0 ? S ? R.slice(R.indexOf(oe) + 1).find(function(Te) {
|
2431
|
+
return tn(Te);
|
2432
|
+
}) : R.slice(0, R.indexOf(oe)).reverse().find(function(Te) {
|
2433
|
+
return tn(Te);
|
2434
2434
|
}) : I[le + (S ? 1 : -1)];
|
2435
2435
|
}
|
2436
2436
|
};
|
2437
|
-
}), u.tabbableGroups = u.containerGroups.filter(function(
|
2438
|
-
return
|
2437
|
+
}), u.tabbableGroups = u.containerGroups.filter(function(L) {
|
2438
|
+
return L.tabbableNodes.length > 0;
|
2439
2439
|
}), u.tabbableGroups.length <= 0 && !d("fallbackFocus"))
|
2440
2440
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
2441
|
-
if (u.containerGroups.find(function(
|
2442
|
-
return
|
2441
|
+
if (u.containerGroups.find(function(L) {
|
2442
|
+
return L.posTabIndexesFound;
|
2443
2443
|
}) && u.containerGroups.length > 1)
|
2444
2444
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
2445
|
-
}, f = function(
|
2446
|
-
var I =
|
2445
|
+
}, f = function(L) {
|
2446
|
+
var I = L.activeElement;
|
2447
2447
|
if (I)
|
2448
2448
|
return I.shadowRoot && I.shadowRoot.activeElement !== null ? f(I.shadowRoot) : I;
|
2449
|
-
}, b = function(
|
2450
|
-
if (
|
2451
|
-
if (!
|
2449
|
+
}, b = function(L) {
|
2450
|
+
if (L !== !1 && L !== f(document)) {
|
2451
|
+
if (!L || !L.focus) {
|
2452
2452
|
b(h());
|
2453
2453
|
return;
|
2454
2454
|
}
|
2455
|
-
|
2455
|
+
L.focus({
|
2456
2456
|
preventScroll: !!i.preventScroll
|
2457
|
-
}), u.mostRecentlyFocusedNode =
|
2457
|
+
}), u.mostRecentlyFocusedNode = L, gf(L) && L.select();
|
2458
2458
|
}
|
2459
|
-
}, m = function(
|
2459
|
+
}, m = function(L) {
|
2460
2460
|
var I = d("setReturnFocus", {
|
2461
|
-
params: [
|
2461
|
+
params: [L]
|
2462
2462
|
});
|
2463
|
-
return I || (I === !1 ? !1 :
|
2464
|
-
}, _ = function(
|
2465
|
-
var I =
|
2466
|
-
I = I || Ar(
|
2463
|
+
return I || (I === !1 ? !1 : L);
|
2464
|
+
}, _ = function(L) {
|
2465
|
+
var I = L.target, R = L.event, U = L.isBackward, W = U === void 0 ? !1 : U;
|
2466
|
+
I = I || Ar(R), p();
|
2467
2467
|
var q = null;
|
2468
2468
|
if (u.tabbableGroups.length > 0) {
|
2469
|
-
var Y = c(I,
|
2469
|
+
var Y = c(I, R), g = Y >= 0 ? u.containerGroups[Y] : void 0;
|
2470
2470
|
if (Y < 0)
|
2471
2471
|
W ? q = u.tabbableGroups[u.tabbableGroups.length - 1].lastTabbableNode : q = u.tabbableGroups[0].firstTabbableNode;
|
2472
2472
|
else if (W) {
|
2473
|
-
var
|
2474
|
-
var ve =
|
2473
|
+
var ne = u.tabbableGroups.findIndex(function(xe) {
|
2474
|
+
var ve = xe.firstTabbableNode;
|
2475
2475
|
return I === ve;
|
2476
2476
|
});
|
2477
|
-
if (
|
2478
|
-
var oe =
|
2477
|
+
if (ne < 0 && (g.container === I || kr(I, i.tabbableOptions) && !tn(I, i.tabbableOptions) && !g.nextTabbableNode(I, !1)) && (ne = Y), ne >= 0) {
|
2478
|
+
var oe = ne === 0 ? u.tabbableGroups.length - 1 : ne - 1, S = u.tabbableGroups[oe];
|
2479
2479
|
q = $t(I) >= 0 ? S.lastTabbableNode : S.lastDomTabbableNode;
|
2480
|
-
} else Qn(
|
2480
|
+
} else Qn(R) || (q = g.nextTabbableNode(I, !1));
|
2481
2481
|
} else {
|
2482
|
-
var le = u.tabbableGroups.findIndex(function(
|
2483
|
-
var ve =
|
2482
|
+
var le = u.tabbableGroups.findIndex(function(xe) {
|
2483
|
+
var ve = xe.lastTabbableNode;
|
2484
2484
|
return I === ve;
|
2485
2485
|
});
|
2486
2486
|
if (le < 0 && (g.container === I || kr(I, i.tabbableOptions) && !tn(I, i.tabbableOptions) && !g.nextTabbableNode(I)) && (le = Y), le >= 0) {
|
2487
|
-
var
|
2487
|
+
var Te = le === u.tabbableGroups.length - 1 ? 0 : le + 1, me = u.tabbableGroups[Te];
|
2488
2488
|
q = $t(I) >= 0 ? me.firstTabbableNode : me.firstDomTabbableNode;
|
2489
|
-
} else Qn(
|
2489
|
+
} else Qn(R) || (q = g.nextTabbableNode(I));
|
2490
2490
|
}
|
2491
2491
|
} else
|
2492
2492
|
q = d("fallbackFocus");
|
2493
2493
|
return q;
|
2494
|
-
}, T = function(
|
2495
|
-
var I = Ar(
|
2496
|
-
if (!(c(I,
|
2497
|
-
if (Un(i.clickOutsideDeactivates,
|
2494
|
+
}, T = function(L) {
|
2495
|
+
var I = Ar(L);
|
2496
|
+
if (!(c(I, L) >= 0)) {
|
2497
|
+
if (Un(i.clickOutsideDeactivates, L)) {
|
2498
2498
|
s.deactivate({
|
2499
2499
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
2500
2500
|
// which will result in the outside click setting focus to the node
|
@@ -2506,27 +2506,27 @@ var ku = {
|
|
2506
2506
|
});
|
2507
2507
|
return;
|
2508
2508
|
}
|
2509
|
-
Un(i.allowOutsideClick,
|
2509
|
+
Un(i.allowOutsideClick, L) || L.preventDefault();
|
2510
2510
|
}
|
2511
|
-
}, M = function(
|
2512
|
-
var I = Ar(
|
2513
|
-
if (
|
2514
|
-
|
2511
|
+
}, M = function(L) {
|
2512
|
+
var I = Ar(L), R = c(I, L) >= 0;
|
2513
|
+
if (R || I instanceof Document)
|
2514
|
+
R && (u.mostRecentlyFocusedNode = I);
|
2515
2515
|
else {
|
2516
|
-
|
2516
|
+
L.stopImmediatePropagation();
|
2517
2517
|
var U, W = !0;
|
2518
2518
|
if (u.mostRecentlyFocusedNode)
|
2519
2519
|
if ($t(u.mostRecentlyFocusedNode) > 0) {
|
2520
2520
|
var q = c(u.mostRecentlyFocusedNode), Y = u.containerGroups[q].tabbableNodes;
|
2521
2521
|
if (Y.length > 0) {
|
2522
|
-
var g = Y.findIndex(function(
|
2523
|
-
return
|
2522
|
+
var g = Y.findIndex(function(ne) {
|
2523
|
+
return ne === u.mostRecentlyFocusedNode;
|
2524
2524
|
});
|
2525
2525
|
g >= 0 && (i.isKeyForward(u.recentNavEvent) ? g + 1 < Y.length && (U = Y[g + 1], W = !1) : g - 1 >= 0 && (U = Y[g - 1], W = !1));
|
2526
2526
|
}
|
2527
2527
|
} else
|
2528
|
-
u.containerGroups.some(function(
|
2529
|
-
return
|
2528
|
+
u.containerGroups.some(function(ne) {
|
2529
|
+
return ne.tabbableNodes.some(function(oe) {
|
2530
2530
|
return $t(oe) > 0;
|
2531
2531
|
});
|
2532
2532
|
}) || (W = !1);
|
@@ -2540,21 +2540,21 @@ var ku = {
|
|
2540
2540
|
})), b(U || u.mostRecentlyFocusedNode || h());
|
2541
2541
|
}
|
2542
2542
|
u.recentNavEvent = void 0;
|
2543
|
-
}, B = function(
|
2543
|
+
}, B = function(L) {
|
2544
2544
|
var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
2545
|
-
u.recentNavEvent =
|
2546
|
-
var
|
2547
|
-
event:
|
2545
|
+
u.recentNavEvent = L;
|
2546
|
+
var R = _({
|
2547
|
+
event: L,
|
2548
2548
|
isBackward: I
|
2549
2549
|
});
|
2550
|
-
|
2551
|
-
}, K = function(
|
2552
|
-
(i.isKeyForward(
|
2553
|
-
}, w = function(
|
2554
|
-
bf(
|
2555
|
-
}, y = function(
|
2556
|
-
var I = Ar(
|
2557
|
-
c(I,
|
2550
|
+
R && (Qn(L) && L.preventDefault(), b(R));
|
2551
|
+
}, K = function(L) {
|
2552
|
+
(i.isKeyForward(L) || i.isKeyBackward(L)) && B(L, i.isKeyBackward(L));
|
2553
|
+
}, w = function(L) {
|
2554
|
+
bf(L) && Un(i.escapeDeactivates, L) !== !1 && (L.preventDefault(), s.deactivate());
|
2555
|
+
}, y = function(L) {
|
2556
|
+
var I = Ar(L);
|
2557
|
+
c(I, L) >= 0 || Un(i.clickOutsideDeactivates, L) || Un(i.allowOutsideClick, L) || (L.preventDefault(), L.stopImmediatePropagation());
|
2558
2558
|
}, k = function() {
|
2559
2559
|
if (u.active)
|
2560
2560
|
return ku.activateTrap(a, s), u.delayInitialFocusTimer = i.delayInitialFocus ? Lu(function() {
|
@@ -2575,17 +2575,17 @@ var ku = {
|
|
2575
2575
|
}, G = function() {
|
2576
2576
|
if (u.active)
|
2577
2577
|
return r.removeEventListener("focusin", M, !0), r.removeEventListener("mousedown", T, !0), r.removeEventListener("touchstart", T, !0), r.removeEventListener("click", y, !0), r.removeEventListener("keydown", K, !0), r.removeEventListener("keydown", w), s;
|
2578
|
-
}, F = function(
|
2579
|
-
var I =
|
2580
|
-
var U = Array.from(
|
2578
|
+
}, F = function(L) {
|
2579
|
+
var I = L.some(function(R) {
|
2580
|
+
var U = Array.from(R.removedNodes);
|
2581
2581
|
return U.some(function(W) {
|
2582
2582
|
return W === u.mostRecentlyFocusedNode;
|
2583
2583
|
});
|
2584
2584
|
});
|
2585
2585
|
I && b(h());
|
2586
2586
|
}, Z = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(F) : void 0, z = function() {
|
2587
|
-
Z && (Z.disconnect(), u.active && !u.paused && u.containers.map(function(
|
2588
|
-
Z.observe(
|
2587
|
+
Z && (Z.disconnect(), u.active && !u.paused && u.containers.map(function(L) {
|
2588
|
+
Z.observe(L, {
|
2589
2589
|
subtree: !0,
|
2590
2590
|
childList: !0
|
2591
2591
|
});
|
@@ -2598,27 +2598,27 @@ var ku = {
|
|
2598
2598
|
get paused() {
|
2599
2599
|
return u.paused;
|
2600
2600
|
},
|
2601
|
-
activate: function(
|
2601
|
+
activate: function(L) {
|
2602
2602
|
if (u.active)
|
2603
2603
|
return this;
|
2604
|
-
var I = l(
|
2604
|
+
var I = l(L, "onActivate"), R = l(L, "onPostActivate"), U = l(L, "checkCanFocusTrap");
|
2605
2605
|
U || p(), u.active = !0, u.paused = !1, u.nodeFocusedBeforeActivation = r.activeElement, I == null || I();
|
2606
2606
|
var W = function() {
|
2607
|
-
U && p(), k(), z(),
|
2607
|
+
U && p(), k(), z(), R == null || R();
|
2608
2608
|
};
|
2609
2609
|
return U ? (U(u.containers.concat()).then(W, W), this) : (W(), this);
|
2610
2610
|
},
|
2611
|
-
deactivate: function(
|
2611
|
+
deactivate: function(L) {
|
2612
2612
|
if (!u.active)
|
2613
2613
|
return this;
|
2614
2614
|
var I = Nu({
|
2615
2615
|
onDeactivate: i.onDeactivate,
|
2616
2616
|
onPostDeactivate: i.onPostDeactivate,
|
2617
2617
|
checkCanReturnFocus: i.checkCanReturnFocus
|
2618
|
-
},
|
2618
|
+
}, L);
|
2619
2619
|
clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, G(), u.active = !1, u.paused = !1, z(), ku.deactivateTrap(a, s);
|
2620
|
-
var
|
2621
|
-
|
2620
|
+
var R = l(I, "onDeactivate"), U = l(I, "onPostDeactivate"), W = l(I, "checkCanReturnFocus"), q = l(I, "returnFocus", "returnFocusOnDeactivate");
|
2621
|
+
R == null || R();
|
2622
2622
|
var Y = function() {
|
2623
2623
|
Lu(function() {
|
2624
2624
|
q && b(m(u.nodeFocusedBeforeActivation)), U == null || U();
|
@@ -2626,16 +2626,16 @@ var ku = {
|
|
2626
2626
|
};
|
2627
2627
|
return q && W ? (W(m(u.nodeFocusedBeforeActivation)).then(Y, Y), this) : (Y(), this);
|
2628
2628
|
},
|
2629
|
-
pause: function(
|
2630
|
-
return u.active ? (u.manuallyPaused = !0, this._setPausedState(!0,
|
2629
|
+
pause: function(L) {
|
2630
|
+
return u.active ? (u.manuallyPaused = !0, this._setPausedState(!0, L)) : this;
|
2631
2631
|
},
|
2632
|
-
unpause: function(
|
2633
|
-
return u.active ? (u.manuallyPaused = !1, a[a.length - 1] !== this ? this : this._setPausedState(!1,
|
2632
|
+
unpause: function(L) {
|
2633
|
+
return u.active ? (u.manuallyPaused = !1, a[a.length - 1] !== this ? this : this._setPausedState(!1, L)) : this;
|
2634
2634
|
},
|
2635
|
-
updateContainerElements: function(
|
2636
|
-
var I = [].concat(
|
2637
|
-
return u.containers = I.map(function(
|
2638
|
-
return typeof
|
2635
|
+
updateContainerElements: function(L) {
|
2636
|
+
var I = [].concat(L).filter(Boolean);
|
2637
|
+
return u.containers = I.map(function(R) {
|
2638
|
+
return typeof R == "string" ? r.querySelector(R) : R;
|
2639
2639
|
}), u.active && p(), z(), this;
|
2640
2640
|
}
|
2641
2641
|
}, Object.defineProperties(s, {
|
@@ -2645,12 +2645,12 @@ var ku = {
|
|
2645
2645
|
}
|
2646
2646
|
},
|
2647
2647
|
_setPausedState: {
|
2648
|
-
value: function(
|
2649
|
-
if (u.paused ===
|
2648
|
+
value: function(L, I) {
|
2649
|
+
if (u.paused === L)
|
2650
2650
|
return this;
|
2651
|
-
if (u.paused =
|
2652
|
-
var
|
2653
|
-
|
2651
|
+
if (u.paused = L, L) {
|
2652
|
+
var R = l(I, "onPause"), U = l(I, "onPostPause");
|
2653
|
+
R == null || R(), G(), z(), U == null || U();
|
2654
2654
|
} else {
|
2655
2655
|
var W = l(I, "onUnpause"), q = l(I, "onPostUnpause");
|
2656
2656
|
W == null || W(), p(), k(), z(), q == null || q();
|
@@ -2744,23 +2744,23 @@ function xf() {
|
|
2744
2744
|
var b = Et, m = /* @__PURE__ */ Ss(), _ = Af, T = _.createFocusTrap, M = Sf, B = M.isFocusable, K = /* @__PURE__ */ function(y) {
|
2745
2745
|
function k(G) {
|
2746
2746
|
var F;
|
2747
|
-
t(this, k), F = a(this, k, [G]), h(F, "getNodeForOption", function(
|
2748
|
-
var
|
2747
|
+
t(this, k), F = a(this, k, [G]), h(F, "getNodeForOption", function($) {
|
2748
|
+
var L, I = (L = this.internalOptions[$]) !== null && L !== void 0 ? L : this.originalOptions[$];
|
2749
2749
|
if (typeof I == "function") {
|
2750
|
-
for (var
|
2750
|
+
for (var R = arguments.length, U = new Array(R > 1 ? R - 1 : 0), W = 1; W < R; W++)
|
2751
2751
|
U[W - 1] = arguments[W];
|
2752
2752
|
I = I.apply(void 0, U);
|
2753
2753
|
}
|
2754
2754
|
if (I === !0 && (I = void 0), !I) {
|
2755
2755
|
if (I === void 0 || I === !1)
|
2756
2756
|
return I;
|
2757
|
-
throw new Error("`".concat(
|
2757
|
+
throw new Error("`".concat($, "` was specified but was not a node, or did not return a node"));
|
2758
2758
|
}
|
2759
2759
|
var q = I;
|
2760
2760
|
if (typeof I == "string") {
|
2761
2761
|
var Y;
|
2762
2762
|
if (q = (Y = this.getDocument()) === null || Y === void 0 ? void 0 : Y.querySelector(I), !q)
|
2763
|
-
throw new Error("`".concat(
|
2763
|
+
throw new Error("`".concat($, "` as selector refers to no known node"));
|
2764
2764
|
}
|
2765
2765
|
return q;
|
2766
2766
|
}), F.handleDeactivate = F.handleDeactivate.bind(F), F.handlePostDeactivate = F.handlePostDeactivate.bind(F), F.handleClickOutsideDeactivates = F.handleClickOutsideDeactivates.bind(F), F.internalOptions = {
|
@@ -2860,16 +2860,16 @@ function xf() {
|
|
2860
2860
|
key: "handlePostDeactivate",
|
2861
2861
|
value: function() {
|
2862
2862
|
var F = this, Z = function() {
|
2863
|
-
var
|
2863
|
+
var $ = F.getReturnFocusNode(), L = !!// did the consumer allow it?
|
2864
2864
|
(F.originalOptions.returnFocusOnDeactivate && // can we actually focus the node?
|
2865
|
-
|
2865
|
+
$ !== null && $ !== void 0 && $.focus && // was there an outside click that allowed deactivation?
|
2866
2866
|
(!F.outsideClick || // did the consumer allow deactivation when the outside node was clicked?
|
2867
2867
|
F.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
|
2868
2868
|
// as a result of the click-through) -- in which case do NOT restore focus
|
2869
2869
|
// to `returnFocusNode` because focus should remain on the outside node
|
2870
|
-
!B(F.outsideClick.target, F.internalOptions.tabbableOptions))), I = F.internalOptions.preventScroll,
|
2871
|
-
|
2872
|
-
preventScroll:
|
2870
|
+
!B(F.outsideClick.target, F.internalOptions.tabbableOptions))), I = F.internalOptions.preventScroll, R = I === void 0 ? !1 : I;
|
2871
|
+
L && $.focus({
|
2872
|
+
preventScroll: R
|
2873
2873
|
}), F.originalOptions.onPostDeactivate && F.originalOptions.onPostDeactivate.call(null), F.outsideClick = null;
|
2874
2874
|
};
|
2875
2875
|
this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(Z, Z) : Z();
|
@@ -2894,12 +2894,12 @@ function xf() {
|
|
2894
2894
|
value: function(F) {
|
2895
2895
|
if (this.focusTrap) {
|
2896
2896
|
F.containerElements !== this.props.containerElements && this.focusTrap.updateContainerElements(this.props.containerElements);
|
2897
|
-
var Z = !F.active && this.props.active, z = F.active && !this.props.active,
|
2897
|
+
var Z = !F.active && this.props.active, z = F.active && !this.props.active, $ = !F.paused && this.props.paused, L = F.paused && !this.props.paused;
|
2898
2898
|
if (Z && (this.updatePreviousElement(), this.focusTrap.activate()), z) {
|
2899
2899
|
this.deactivateTrap();
|
2900
2900
|
return;
|
2901
2901
|
}
|
2902
|
-
|
2902
|
+
$ && this.focusTrap.pause(), L && this.focusTrap.unpause();
|
2903
2903
|
} else
|
2904
2904
|
F.containerElements !== this.props.containerElements && (this.focusTrapElements = this.props.containerElements), this.props.active && (this.updatePreviousElement(), this.setupFocusTrap());
|
2905
2905
|
}
|
@@ -2916,12 +2916,12 @@ function xf() {
|
|
2916
2916
|
if (Z.type && Z.type === b.Fragment)
|
2917
2917
|
throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
|
2918
2918
|
var z = function(I) {
|
2919
|
-
var
|
2920
|
-
Z && (typeof Z.ref == "function" ? Z.ref(I) : Z.ref && (Z.ref.current = I)), F.focusTrapElements =
|
2921
|
-
},
|
2919
|
+
var R = F.props.containerElements;
|
2920
|
+
Z && (typeof Z.ref == "function" ? Z.ref(I) : Z.ref && (Z.ref.current = I)), F.focusTrapElements = R || [I];
|
2921
|
+
}, $ = b.cloneElement(Z, {
|
2922
2922
|
ref: z
|
2923
2923
|
});
|
2924
|
-
return
|
2924
|
+
return $;
|
2925
2925
|
}
|
2926
2926
|
return null;
|
2927
2927
|
}
|
@@ -3030,7 +3030,7 @@ qs.propTypes = {
|
|
3030
3030
|
className: x.string
|
3031
3031
|
};
|
3032
3032
|
function zs({ children: e, isMounted: t }) {
|
3033
|
-
const { widgetMode: n } = se(
|
3033
|
+
const { widgetMode: n } = se(Ue);
|
3034
3034
|
return n ? /* @__PURE__ */ v.jsx(qs, { isMounted: t, children: e }) : /* @__PURE__ */ v.jsx("div", { className: "xpert_chatbot_inline", children: e });
|
3035
3035
|
}
|
3036
3036
|
zs.propTypes = {
|
@@ -3038,8 +3038,8 @@ zs.propTypes = {
|
|
3038
3038
|
isMounted: x.bool
|
3039
3039
|
};
|
3040
3040
|
const Ys = () => {
|
3041
|
-
const { disclaimer: e } = se(
|
3042
|
-
return
|
3041
|
+
const { disclaimer: e } = se(Ue), t = pt(null);
|
3042
|
+
return He(() => {
|
3043
3043
|
var n;
|
3044
3044
|
(n = t == null ? void 0 : t.current) == null || n.focus();
|
3045
3045
|
}, []), /* @__PURE__ */ v.jsxs(
|
@@ -4254,7 +4254,7 @@ function rl(e) {
|
|
4254
4254
|
});
|
4255
4255
|
} else m && ((f = e.onLoad) === null || f === void 0 || f.call(e, b));
|
4256
4256
|
}
|
4257
|
-
|
4257
|
+
He(() => (n(!0), l), []), He(() => {
|
4258
4258
|
t && d();
|
4259
4259
|
}, [e.icon, t]);
|
4260
4260
|
const { name: h, data: p } = u;
|
@@ -4281,8 +4281,8 @@ function ki({
|
|
4281
4281
|
value: i
|
4282
4282
|
}) {
|
4283
4283
|
var b;
|
4284
|
-
const { conversationScreen: u, primaryColor: s } = se(
|
4285
|
-
|
4284
|
+
const { conversationScreen: u, primaryColor: s } = se(Ue), { isConversationLoading: l } = se(Lt), { hasError: c, hasNewMessage: d } = se(Ze);
|
4285
|
+
He(() => {
|
4286
4286
|
var m;
|
4287
4287
|
(c || d) && ((m = a.current) == null || m.focus());
|
4288
4288
|
}, [d, c, a]);
|
@@ -4354,7 +4354,7 @@ ki.propTypes = {
|
|
4354
4354
|
};
|
4355
4355
|
const ui = ({ content: e = "Please try again later." }) => {
|
4356
4356
|
const t = pt(null);
|
4357
|
-
return
|
4357
|
+
return He(() => {
|
4358
4358
|
var n;
|
4359
4359
|
(n = t.current) == null || n.scrollIntoView({
|
4360
4360
|
behavior: "instant"
|
@@ -4473,7 +4473,7 @@ function Li({
|
|
4473
4473
|
userTrackingName: s = "clicked"
|
4474
4474
|
}) {
|
4475
4475
|
var T, M, B, K;
|
4476
|
-
const [l, c] = de(!0), { primaryColor: d, id: h, userTracking: p, conversationScreen: f } = se(
|
4476
|
+
const [l, c] = de(!0), { primaryColor: d, id: h, userTracking: p, conversationScreen: f } = se(Ue), b = bt(
|
4477
4477
|
(w) => {
|
4478
4478
|
var y, k, G, F;
|
4479
4479
|
((y = w == null ? void 0 : w.data) == null ? void 0 : y.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && ft.set(`${h}-live-chat-open`, 1, {
|
@@ -4489,7 +4489,7 @@ function Li({
|
|
4489
4489
|
},
|
4490
4490
|
[a]
|
4491
4491
|
);
|
4492
|
-
|
4492
|
+
He(() => {
|
4493
4493
|
var k, G, F, Z;
|
4494
4494
|
let w, y;
|
4495
4495
|
return (k = f == null ? void 0 : f.liveChat) != null && k.useOwnChat && (y = setTimeout(() => {
|
@@ -5397,7 +5397,7 @@ function ce(e) {
|
|
5397
5397
|
function tt(e) {
|
5398
5398
|
return e !== null && (e < 0 || e === 32);
|
5399
5399
|
}
|
5400
|
-
function
|
5400
|
+
function Ae(e) {
|
5401
5401
|
return e === -2 || e === -1 || e === 32;
|
5402
5402
|
}
|
5403
5403
|
const sp = Wt(ap), lp = Wt(/\s/);
|
@@ -5412,10 +5412,10 @@ function Re(e, t, n, r) {
|
|
5412
5412
|
let i = 0;
|
5413
5413
|
return u;
|
5414
5414
|
function u(l) {
|
5415
|
-
return
|
5415
|
+
return Ae(l) ? (e.enter(n), s(l)) : t(l);
|
5416
5416
|
}
|
5417
5417
|
function s(l) {
|
5418
|
-
return
|
5418
|
+
return Ae(l) && i++ < a ? (e.consume(l), s) : (e.exit(n), t(l));
|
5419
5419
|
}
|
5420
5420
|
}
|
5421
5421
|
const cp = {
|
@@ -5738,7 +5738,7 @@ const Kr = {
|
|
5738
5738
|
function Tp(e, t, n) {
|
5739
5739
|
return r;
|
5740
5740
|
function r(i) {
|
5741
|
-
return
|
5741
|
+
return Ae(i) ? Re(e, a, "linePrefix")(i) : a(i);
|
5742
5742
|
}
|
5743
5743
|
function a(i) {
|
5744
5744
|
return i === null || ce(i) ? t(i) : n(i);
|
@@ -5765,14 +5765,14 @@ function yp(e, t, n) {
|
|
5765
5765
|
return n(u);
|
5766
5766
|
}
|
5767
5767
|
function i(u) {
|
5768
|
-
return
|
5768
|
+
return Ae(u) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(u), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(u));
|
5769
5769
|
}
|
5770
5770
|
}
|
5771
5771
|
function _p(e, t, n) {
|
5772
5772
|
const r = this;
|
5773
5773
|
return a;
|
5774
5774
|
function a(u) {
|
5775
|
-
return
|
5775
|
+
return Ae(u) ? Re(
|
5776
5776
|
e,
|
5777
5777
|
i,
|
5778
5778
|
"linePrefix",
|
@@ -5858,7 +5858,7 @@ function xp(e, t, n) {
|
|
5858
5858
|
return i = k && k[1].type === "linePrefix" ? k[2].sliceSerialize(k[1], !0).length : 0, s = y, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(y);
|
5859
5859
|
}
|
5860
5860
|
function d(y) {
|
5861
|
-
return y === s ? (u++, e.consume(y), d) : u < 3 ? n(y) : (e.exit("codeFencedFenceSequence"),
|
5861
|
+
return y === s ? (u++, e.consume(y), d) : u < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), Ae(y) ? Re(e, h, "whitespace")(y) : h(y));
|
5862
5862
|
}
|
5863
5863
|
function h(y) {
|
5864
5864
|
return y === null || ce(y) ? (e.exit("codeFencedFence"), r.interrupt ? t(y) : e.check(oo, m, K)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
@@ -5866,7 +5866,7 @@ function xp(e, t, n) {
|
|
5866
5866
|
}), p(y));
|
5867
5867
|
}
|
5868
5868
|
function p(y) {
|
5869
|
-
return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(y)) :
|
5869
|
+
return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(y)) : Ae(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Re(e, f, "whitespace")(y)) : y === 96 && y === s ? n(y) : (e.consume(y), p);
|
5870
5870
|
}
|
5871
5871
|
function f(y) {
|
5872
5872
|
return y === null || ce(y) ? h(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
@@ -5883,7 +5883,7 @@ function xp(e, t, n) {
|
|
5883
5883
|
return e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), T;
|
5884
5884
|
}
|
5885
5885
|
function T(y) {
|
5886
|
-
return i > 0 &&
|
5886
|
+
return i > 0 && Ae(y) ? Re(
|
5887
5887
|
e,
|
5888
5888
|
M,
|
5889
5889
|
"linePrefix",
|
@@ -5902,25 +5902,25 @@ function xp(e, t, n) {
|
|
5902
5902
|
function w(y, k, G) {
|
5903
5903
|
let F = 0;
|
5904
5904
|
return Z;
|
5905
|
-
function Z(
|
5906
|
-
return y.enter("lineEnding"), y.consume(
|
5905
|
+
function Z(R) {
|
5906
|
+
return y.enter("lineEnding"), y.consume(R), y.exit("lineEnding"), z;
|
5907
5907
|
}
|
5908
|
-
function z(
|
5909
|
-
return y.enter("codeFencedFence"),
|
5908
|
+
function z(R) {
|
5909
|
+
return y.enter("codeFencedFence"), Ae(R) ? Re(
|
5910
5910
|
y,
|
5911
|
-
|
5911
|
+
$,
|
5912
5912
|
"linePrefix",
|
5913
5913
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
5914
|
-
)(
|
5914
|
+
)(R) : $(R);
|
5915
5915
|
}
|
5916
|
-
function
|
5917
|
-
return
|
5916
|
+
function $(R) {
|
5917
|
+
return R === s ? (y.enter("codeFencedFenceSequence"), L(R)) : G(R);
|
5918
5918
|
}
|
5919
|
-
function R
|
5920
|
-
return
|
5919
|
+
function L(R) {
|
5920
|
+
return R === s ? (F++, y.consume(R), L) : F >= u ? (y.exit("codeFencedFenceSequence"), Ae(R) ? Re(y, I, "whitespace")(R) : I(R)) : G(R);
|
5921
5921
|
}
|
5922
|
-
function I(
|
5923
|
-
return
|
5922
|
+
function I(R) {
|
5923
|
+
return R === null || ce(R) ? (y.exit("codeFencedFence"), k(R)) : G(R);
|
5924
5924
|
}
|
5925
5925
|
}
|
5926
5926
|
}
|
@@ -6147,7 +6147,7 @@ function ml(e, t, n, r, a, i) {
|
|
6147
6147
|
}), h(f));
|
6148
6148
|
}
|
6149
6149
|
function h(f) {
|
6150
|
-
return f === null || f === 91 || f === 93 || ce(f) || s++ > 999 ? (e.exit("chunkString"), d(f)) : (e.consume(f), l || (l = !
|
6150
|
+
return f === null || f === 91 || f === 93 || ce(f) || s++ > 999 ? (e.exit("chunkString"), d(f)) : (e.consume(f), l || (l = !Ae(f)), f === 92 ? p : h);
|
6151
6151
|
}
|
6152
6152
|
function p(f) {
|
6153
6153
|
return f === 91 || f === 92 || f === 93 ? (e.consume(f), s++, h) : h(f);
|
@@ -6178,7 +6178,7 @@ function er(e, t) {
|
|
6178
6178
|
let n;
|
6179
6179
|
return r;
|
6180
6180
|
function r(a) {
|
6181
|
-
return ce(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) :
|
6181
|
+
return ce(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) : Ae(a) ? Re(
|
6182
6182
|
e,
|
6183
6183
|
r,
|
6184
6184
|
n ? "linePrefix" : "lineSuffix"
|
@@ -6239,7 +6239,7 @@ function qp(e, t, n) {
|
|
6239
6239
|
return e.attempt(jp, h, h)(f);
|
6240
6240
|
}
|
6241
6241
|
function h(f) {
|
6242
|
-
return
|
6242
|
+
return Ae(f) ? Re(e, p, "whitespace")(f) : p(f);
|
6243
6243
|
}
|
6244
6244
|
function p(f) {
|
6245
6245
|
return f === null || ce(f) ? (e.exit("definition"), r.parser.defined.push(a), t(f)) : n(f);
|
@@ -6261,7 +6261,7 @@ function zp(e, t, n) {
|
|
6261
6261
|
)(s);
|
6262
6262
|
}
|
6263
6263
|
function i(s) {
|
6264
|
-
return
|
6264
|
+
return Ae(s) ? Re(e, u, "whitespace")(s) : u(s);
|
6265
6265
|
}
|
6266
6266
|
function u(s) {
|
6267
6267
|
return s === null || ce(s) ? t(s) : n(s);
|
@@ -6316,7 +6316,7 @@ function Gp(e, t, n) {
|
|
6316
6316
|
return d === 35 && r++ < 6 ? (e.consume(d), u) : d === null || tt(d) ? (e.exit("atxHeadingSequence"), s(d)) : n(d);
|
6317
6317
|
}
|
6318
6318
|
function s(d) {
|
6319
|
-
return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || ce(d) ? (e.exit("atxHeading"), t(d)) :
|
6319
|
+
return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || ce(d) ? (e.exit("atxHeading"), t(d)) : Ae(d) ? Re(e, s, "whitespace")(d) : (e.enter("atxHeadingText"), c(d));
|
6320
6320
|
}
|
6321
6321
|
function l(d) {
|
6322
6322
|
return d === 35 ? (e.consume(d), l) : (e.exit("atxHeadingSequence"), s(d));
|
@@ -6427,35 +6427,35 @@ function e1(e, t, n) {
|
|
6427
6427
|
}
|
6428
6428
|
function b(S) {
|
6429
6429
|
const le = "CDATA[";
|
6430
|
-
return S === le.charCodeAt(s++) ? (e.consume(S), s === le.length ? r.interrupt ? t :
|
6430
|
+
return S === le.charCodeAt(s++) ? (e.consume(S), s === le.length ? r.interrupt ? t : $ : b) : n(S);
|
6431
6431
|
}
|
6432
6432
|
function m(S) {
|
6433
6433
|
return Ot(S) ? (e.consume(S), u = String.fromCharCode(S), _) : n(S);
|
6434
6434
|
}
|
6435
6435
|
function _(S) {
|
6436
6436
|
if (S === null || S === 47 || S === 62 || tt(S)) {
|
6437
|
-
const le = S === 47,
|
6438
|
-
return !le && !i && lo.includes(
|
6437
|
+
const le = S === 47, Te = u.toLowerCase();
|
6438
|
+
return !le && !i && lo.includes(Te) ? (a = 1, r.interrupt ? t(S) : $(S)) : Xp.includes(u.toLowerCase()) ? (a = 6, le ? (e.consume(S), T) : r.interrupt ? t(S) : $(S)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(S) : i ? M(S) : B(S));
|
6439
6439
|
}
|
6440
6440
|
return S === 45 || ht(S) ? (e.consume(S), u += String.fromCharCode(S), _) : n(S);
|
6441
6441
|
}
|
6442
6442
|
function T(S) {
|
6443
|
-
return S === 62 ? (e.consume(S), r.interrupt ? t :
|
6443
|
+
return S === 62 ? (e.consume(S), r.interrupt ? t : $) : n(S);
|
6444
6444
|
}
|
6445
6445
|
function M(S) {
|
6446
|
-
return
|
6446
|
+
return Ae(S) ? (e.consume(S), M) : Z(S);
|
6447
6447
|
}
|
6448
6448
|
function B(S) {
|
6449
|
-
return S === 47 ? (e.consume(S), Z) : S === 58 || S === 95 || Ot(S) ? (e.consume(S), K) :
|
6449
|
+
return S === 47 ? (e.consume(S), Z) : S === 58 || S === 95 || Ot(S) ? (e.consume(S), K) : Ae(S) ? (e.consume(S), B) : Z(S);
|
6450
6450
|
}
|
6451
6451
|
function K(S) {
|
6452
6452
|
return S === 45 || S === 46 || S === 58 || S === 95 || ht(S) ? (e.consume(S), K) : w(S);
|
6453
6453
|
}
|
6454
6454
|
function w(S) {
|
6455
|
-
return S === 61 ? (e.consume(S), y) :
|
6455
|
+
return S === 61 ? (e.consume(S), y) : Ae(S) ? (e.consume(S), w) : B(S);
|
6456
6456
|
}
|
6457
6457
|
function y(S) {
|
6458
|
-
return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? n(S) : S === 34 || S === 39 ? (e.consume(S), l = S, k) :
|
6458
|
+
return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? n(S) : S === 34 || S === 39 ? (e.consume(S), l = S, k) : Ae(S) ? (e.consume(S), y) : G(S);
|
6459
6459
|
}
|
6460
6460
|
function k(S) {
|
6461
6461
|
return S === l ? (e.consume(S), l = null, F) : S === null || ce(S) ? n(S) : (e.consume(S), k);
|
@@ -6464,22 +6464,22 @@ function e1(e, t, n) {
|
|
6464
6464
|
return S === null || S === 34 || S === 39 || S === 47 || S === 60 || S === 61 || S === 62 || S === 96 || tt(S) ? w(S) : (e.consume(S), G);
|
6465
6465
|
}
|
6466
6466
|
function F(S) {
|
6467
|
-
return S === 47 || S === 62 ||
|
6467
|
+
return S === 47 || S === 62 || Ae(S) ? B(S) : n(S);
|
6468
6468
|
}
|
6469
6469
|
function Z(S) {
|
6470
6470
|
return S === 62 ? (e.consume(S), z) : n(S);
|
6471
6471
|
}
|
6472
6472
|
function z(S) {
|
6473
|
-
return S === null || ce(S) ?
|
6473
|
+
return S === null || ce(S) ? $(S) : Ae(S) ? (e.consume(S), z) : n(S);
|
6474
6474
|
}
|
6475
|
-
function
|
6476
|
-
return S === 45 && a === 2 ? (e.consume(S), U) : S === 60 && a === 1 ? (e.consume(S), W) : S === 62 && a === 4 ? (e.consume(S),
|
6475
|
+
function $(S) {
|
6476
|
+
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), g) : S === 93 && a === 5 ? (e.consume(S), Y) : ce(S) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
|
6477
6477
|
Qp,
|
6478
6478
|
oe,
|
6479
|
-
|
6480
|
-
)(S)) : S === null || ce(S) ? (e.exit("htmlFlowData"),
|
6479
|
+
L
|
6480
|
+
)(S)) : S === null || ce(S) ? (e.exit("htmlFlowData"), L(S)) : (e.consume(S), $);
|
6481
6481
|
}
|
6482
|
-
function
|
6482
|
+
function L(S) {
|
6483
6483
|
return e.check(
|
6484
6484
|
Zp,
|
6485
6485
|
I,
|
@@ -6487,32 +6487,32 @@ function e1(e, t, n) {
|
|
6487
6487
|
)(S);
|
6488
6488
|
}
|
6489
6489
|
function I(S) {
|
6490
|
-
return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"),
|
6490
|
+
return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), R;
|
6491
6491
|
}
|
6492
|
-
function
|
6493
|
-
return S === null || ce(S) ?
|
6492
|
+
function R(S) {
|
6493
|
+
return S === null || ce(S) ? L(S) : (e.enter("htmlFlowData"), $(S));
|
6494
6494
|
}
|
6495
6495
|
function U(S) {
|
6496
|
-
return S === 45 ? (e.consume(S), g) :
|
6496
|
+
return S === 45 ? (e.consume(S), g) : $(S);
|
6497
6497
|
}
|
6498
6498
|
function W(S) {
|
6499
|
-
return S === 47 ? (e.consume(S), u = "", q) :
|
6499
|
+
return S === 47 ? (e.consume(S), u = "", q) : $(S);
|
6500
6500
|
}
|
6501
6501
|
function q(S) {
|
6502
6502
|
if (S === 62) {
|
6503
6503
|
const le = u.toLowerCase();
|
6504
|
-
return lo.includes(le) ? (e.consume(S),
|
6504
|
+
return lo.includes(le) ? (e.consume(S), ne) : $(S);
|
6505
6505
|
}
|
6506
|
-
return Ot(S) && u.length < 8 ? (e.consume(S), u += String.fromCharCode(S), q) :
|
6506
|
+
return Ot(S) && u.length < 8 ? (e.consume(S), u += String.fromCharCode(S), q) : $(S);
|
6507
6507
|
}
|
6508
6508
|
function Y(S) {
|
6509
|
-
return S === 93 ? (e.consume(S), g) :
|
6509
|
+
return S === 93 ? (e.consume(S), g) : $(S);
|
6510
6510
|
}
|
6511
6511
|
function g(S) {
|
6512
|
-
return S === 62 ? (e.consume(S),
|
6512
|
+
return S === 62 ? (e.consume(S), ne) : S === 45 && a === 2 ? (e.consume(S), g) : $(S);
|
6513
6513
|
}
|
6514
|
-
function
|
6515
|
-
return S === null || ce(S) ? (e.exit("htmlFlowData"), oe(S)) : (e.consume(S),
|
6514
|
+
function ne(S) {
|
6515
|
+
return S === null || ce(S) ? (e.exit("htmlFlowData"), oe(S)) : (e.consume(S), ne);
|
6516
6516
|
}
|
6517
6517
|
function oe(S) {
|
6518
6518
|
return e.exit("htmlFlow"), t(S);
|
@@ -6564,8 +6564,8 @@ function a1(e, t, n) {
|
|
6564
6564
|
return g === 62 ? U(g) : g === 45 ? p(g) : h(g);
|
6565
6565
|
}
|
6566
6566
|
function b(g) {
|
6567
|
-
const
|
6568
|
-
return g ===
|
6567
|
+
const ne = "CDATA[";
|
6568
|
+
return g === ne.charCodeAt(i++) ? (e.consume(g), i === ne.length ? m : b) : n(g);
|
6569
6569
|
}
|
6570
6570
|
function m(g) {
|
6571
6571
|
return g === null ? n(g) : g === 93 ? (e.consume(g), _) : ce(g) ? (u = m, W(g)) : (e.consume(g), m);
|
@@ -6592,30 +6592,30 @@ function a1(e, t, n) {
|
|
6592
6592
|
return g === 45 || ht(g) ? (e.consume(g), y) : k(g);
|
6593
6593
|
}
|
6594
6594
|
function k(g) {
|
6595
|
-
return ce(g) ? (u = k, W(g)) :
|
6595
|
+
return ce(g) ? (u = k, W(g)) : Ae(g) ? (e.consume(g), k) : U(g);
|
6596
6596
|
}
|
6597
6597
|
function G(g) {
|
6598
6598
|
return g === 45 || ht(g) ? (e.consume(g), G) : g === 47 || g === 62 || tt(g) ? F(g) : n(g);
|
6599
6599
|
}
|
6600
6600
|
function F(g) {
|
6601
|
-
return g === 47 ? (e.consume(g), U) : g === 58 || g === 95 || Ot(g) ? (e.consume(g), Z) : ce(g) ? (u = F, W(g)) :
|
6601
|
+
return g === 47 ? (e.consume(g), U) : g === 58 || g === 95 || Ot(g) ? (e.consume(g), Z) : ce(g) ? (u = F, W(g)) : Ae(g) ? (e.consume(g), F) : U(g);
|
6602
6602
|
}
|
6603
6603
|
function Z(g) {
|
6604
6604
|
return g === 45 || g === 46 || g === 58 || g === 95 || ht(g) ? (e.consume(g), Z) : z(g);
|
6605
6605
|
}
|
6606
6606
|
function z(g) {
|
6607
|
-
return g === 61 ? (e.consume(g),
|
6607
|
+
return g === 61 ? (e.consume(g), $) : ce(g) ? (u = z, W(g)) : Ae(g) ? (e.consume(g), z) : F(g);
|
6608
6608
|
}
|
6609
|
-
function
|
6610
|
-
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), a = g,
|
6609
|
+
function $(g) {
|
6610
|
+
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), a = g, L) : ce(g) ? (u = $, W(g)) : Ae(g) ? (e.consume(g), $) : (e.consume(g), I);
|
6611
6611
|
}
|
6612
|
-
function
|
6613
|
-
return g === a ? (e.consume(g), a = void 0,
|
6612
|
+
function L(g) {
|
6613
|
+
return g === a ? (e.consume(g), a = void 0, R) : g === null ? n(g) : ce(g) ? (u = L, W(g)) : (e.consume(g), L);
|
6614
6614
|
}
|
6615
6615
|
function I(g) {
|
6616
6616
|
return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || tt(g) ? F(g) : (e.consume(g), I);
|
6617
6617
|
}
|
6618
|
-
function
|
6618
|
+
function R(g) {
|
6619
6619
|
return g === 47 || g === 62 || tt(g) ? F(g) : n(g);
|
6620
6620
|
}
|
6621
6621
|
function U(g) {
|
@@ -6625,7 +6625,7 @@ function a1(e, t, n) {
|
|
6625
6625
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), q;
|
6626
6626
|
}
|
6627
6627
|
function q(g) {
|
6628
|
-
return
|
6628
|
+
return Ae(g) ? Re(
|
6629
6629
|
e,
|
6630
6630
|
Y,
|
6631
6631
|
"linePrefix",
|
@@ -6881,7 +6881,7 @@ function T1(e, t, n) {
|
|
6881
6881
|
return c === a ? (e.enter("thematicBreakSequence"), l(c)) : r >= 3 && (c === null || ce(c)) ? (e.exit("thematicBreak"), t(c)) : n(c);
|
6882
6882
|
}
|
6883
6883
|
function l(c) {
|
6884
|
-
return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"),
|
6884
|
+
return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), Ae(c) ? Re(e, s, "whitespace")(c) : s(c));
|
6885
6885
|
}
|
6886
6886
|
}
|
6887
6887
|
const et = {
|
@@ -6933,7 +6933,7 @@ function C1(e, t, n) {
|
|
6933
6933
|
return r.containerState.initialBlankLine = !0, i++, p(f);
|
6934
6934
|
}
|
6935
6935
|
function h(f) {
|
6936
|
-
return
|
6936
|
+
return Ae(f) ? (e.enter("listItemPrefixWhitespace"), e.consume(f), e.exit("listItemPrefixWhitespace"), p) : n(f);
|
6937
6937
|
}
|
6938
6938
|
function p(f) {
|
6939
6939
|
return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(f);
|
@@ -6951,7 +6951,7 @@ function A1(e, t, n) {
|
|
6951
6951
|
)(s);
|
6952
6952
|
}
|
6953
6953
|
function i(s) {
|
6954
|
-
return r.containerState.furtherBlankLines || !
|
6954
|
+
return r.containerState.furtherBlankLines || !Ae(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(_1, t, u)(s));
|
6955
6955
|
}
|
6956
6956
|
function u(s) {
|
6957
6957
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, Re(
|
@@ -6988,7 +6988,7 @@ function v1(e, t, n) {
|
|
6988
6988
|
);
|
6989
6989
|
function a(i) {
|
6990
6990
|
const u = r.events[r.events.length - 1];
|
6991
|
-
return !
|
6991
|
+
return !Ae(i) && u && u[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
|
6992
6992
|
}
|
6993
6993
|
}
|
6994
6994
|
const co = {
|
@@ -7031,7 +7031,7 @@ function I1(e, t, n) {
|
|
7031
7031
|
return e.enter("setextHeadingLineSequence"), s(c);
|
7032
7032
|
}
|
7033
7033
|
function s(c) {
|
7034
|
-
return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"),
|
7034
|
+
return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), Ae(c) ? Re(e, l, "lineSuffix")(c) : l(c));
|
7035
7035
|
}
|
7036
7036
|
function l(c) {
|
7037
7037
|
return c === null || ce(c) ? (e.exit("setextHeadingLine"), t(c)) : n(c);
|
@@ -7209,20 +7209,20 @@ function P1(e, t, n) {
|
|
7209
7209
|
function h(z) {
|
7210
7210
|
return u = mt(u, z), _(), u[u.length - 1] !== null ? [] : (G(t, 0), c.events = Ri(i, c.events, c), c.events);
|
7211
7211
|
}
|
7212
|
-
function p(z,
|
7213
|
-
return F1(f(z),
|
7212
|
+
function p(z, $) {
|
7213
|
+
return F1(f(z), $);
|
7214
7214
|
}
|
7215
7215
|
function f(z) {
|
7216
7216
|
return M1(u, z);
|
7217
7217
|
}
|
7218
7218
|
function b() {
|
7219
|
-
const { line: z, column:
|
7219
|
+
const { line: z, column: $, offset: L, _index: I, _bufferIndex: R } = r;
|
7220
7220
|
return {
|
7221
7221
|
line: z,
|
7222
|
-
column:
|
7223
|
-
offset:
|
7222
|
+
column: $,
|
7223
|
+
offset: L,
|
7224
7224
|
_index: I,
|
7225
|
-
_bufferIndex:
|
7225
|
+
_bufferIndex: R
|
7226
7226
|
};
|
7227
7227
|
}
|
7228
7228
|
function m(z) {
|
@@ -7231,12 +7231,12 @@ function P1(e, t, n) {
|
|
7231
7231
|
function _() {
|
7232
7232
|
let z;
|
7233
7233
|
for (; r._index < u.length; ) {
|
7234
|
-
const
|
7235
|
-
if (typeof
|
7236
|
-
for (z = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === z && r._bufferIndex <
|
7237
|
-
T(
|
7234
|
+
const $ = u[r._index];
|
7235
|
+
if (typeof $ == "string")
|
7236
|
+
for (z = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === z && r._bufferIndex < $.length; )
|
7237
|
+
T($.charCodeAt(r._bufferIndex));
|
7238
7238
|
else
|
7239
|
-
T(
|
7239
|
+
T($);
|
7240
7240
|
}
|
7241
7241
|
}
|
7242
7242
|
function T(z) {
|
@@ -7245,35 +7245,35 @@ function P1(e, t, n) {
|
|
7245
7245
|
function M(z) {
|
7246
7246
|
ce(z) ? (r.line++, r.column = 1, r.offset += z === -3 ? 2 : 1, Z()) : z !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === u[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = z;
|
7247
7247
|
}
|
7248
|
-
function B(z,
|
7249
|
-
const
|
7250
|
-
return
|
7248
|
+
function B(z, $) {
|
7249
|
+
const L = $ || {};
|
7250
|
+
return L.type = z, L.start = b(), c.events.push(["enter", L, c]), s.push(L), L;
|
7251
7251
|
}
|
7252
7252
|
function K(z) {
|
7253
|
-
const
|
7254
|
-
return
|
7253
|
+
const $ = s.pop();
|
7254
|
+
return $.end = b(), c.events.push(["exit", $, c]), $;
|
7255
7255
|
}
|
7256
|
-
function w(z,
|
7257
|
-
G(z,
|
7256
|
+
function w(z, $) {
|
7257
|
+
G(z, $.from);
|
7258
7258
|
}
|
7259
|
-
function y(z,
|
7260
|
-
|
7259
|
+
function y(z, $) {
|
7260
|
+
$.restore();
|
7261
7261
|
}
|
7262
|
-
function k(z,
|
7263
|
-
return
|
7264
|
-
function
|
7262
|
+
function k(z, $) {
|
7263
|
+
return L;
|
7264
|
+
function L(I, R, U) {
|
7265
7265
|
let W, q, Y, g;
|
7266
7266
|
return Array.isArray(I) ? oe(I) : "tokenize" in I ? (
|
7267
7267
|
// @ts-expect-error Looks like a construct.
|
7268
7268
|
oe([I])
|
7269
|
-
) :
|
7270
|
-
function
|
7271
|
-
return
|
7272
|
-
function
|
7273
|
-
const
|
7269
|
+
) : ne(I);
|
7270
|
+
function ne(me) {
|
7271
|
+
return xe;
|
7272
|
+
function xe(ve) {
|
7273
|
+
const Be = ve !== null && me[ve], Oe = ve !== null && me.null, We = [
|
7274
7274
|
// To do: add more extension tests.
|
7275
7275
|
/* c8 ignore next 2 */
|
7276
|
-
...Array.isArray(
|
7276
|
+
...Array.isArray(Be) ? Be : Be ? [Be] : [],
|
7277
7277
|
...Array.isArray(Oe) ? Oe : Oe ? [Oe] : []
|
7278
7278
|
];
|
7279
7279
|
return oe(We)(ve);
|
@@ -7283,43 +7283,43 @@ function P1(e, t, n) {
|
|
7283
7283
|
return W = me, q = 0, me.length === 0 ? U : S(me[q]);
|
7284
7284
|
}
|
7285
7285
|
function S(me) {
|
7286
|
-
return
|
7287
|
-
function
|
7288
|
-
return g = F(), Y = me, me.partial || (c.currentConstruct = me), me.name && c.parser.constructs.disable.null.includes(me.name) ?
|
7286
|
+
return xe;
|
7287
|
+
function xe(ve) {
|
7288
|
+
return g = F(), Y = me, me.partial || (c.currentConstruct = me), me.name && c.parser.constructs.disable.null.includes(me.name) ? Te() : me.tokenize.call(
|
7289
7289
|
// If we do have fields, create an object w/ `context` as its
|
7290
7290
|
// prototype.
|
7291
7291
|
// This allows a “live binding”, which is needed for `interrupt`.
|
7292
|
-
|
7292
|
+
$ ? Object.assign(Object.create(c), $) : c,
|
7293
7293
|
l,
|
7294
7294
|
le,
|
7295
|
-
|
7295
|
+
Te
|
7296
7296
|
)(ve);
|
7297
7297
|
}
|
7298
7298
|
}
|
7299
7299
|
function le(me) {
|
7300
|
-
return z(Y, g),
|
7300
|
+
return z(Y, g), R;
|
7301
7301
|
}
|
7302
|
-
function
|
7302
|
+
function Te(me) {
|
7303
7303
|
return g.restore(), ++q < W.length ? S(W[q]) : U;
|
7304
7304
|
}
|
7305
7305
|
}
|
7306
7306
|
}
|
7307
|
-
function G(z,
|
7307
|
+
function G(z, $) {
|
7308
7308
|
z.resolveAll && !i.includes(z) && i.push(z), z.resolve && Nt(
|
7309
7309
|
c.events,
|
7310
|
-
|
7311
|
-
c.events.length -
|
7312
|
-
z.resolve(c.events.slice(
|
7310
|
+
$,
|
7311
|
+
c.events.length - $,
|
7312
|
+
z.resolve(c.events.slice($), c)
|
7313
7313
|
), z.resolveTo && (c.events = z.resolveTo(c.events, c));
|
7314
7314
|
}
|
7315
7315
|
function F() {
|
7316
|
-
const z = b(),
|
7316
|
+
const z = b(), $ = c.previous, L = c.currentConstruct, I = c.events.length, R = Array.from(s);
|
7317
7317
|
return {
|
7318
7318
|
restore: U,
|
7319
7319
|
from: I
|
7320
7320
|
};
|
7321
7321
|
function U() {
|
7322
|
-
r = z, c.previous =
|
7322
|
+
r = z, c.previous = $, c.currentConstruct = L, c.events.length = I, s = R, Z();
|
7323
7323
|
}
|
7324
7324
|
}
|
7325
7325
|
function Z() {
|
@@ -7592,7 +7592,7 @@ function tm(e) {
|
|
7592
7592
|
listOrdered: s(jt, f),
|
7593
7593
|
listUnordered: s(jt),
|
7594
7594
|
paragraph: s(it),
|
7595
|
-
reference:
|
7595
|
+
reference: Te,
|
7596
7596
|
referenceString: l,
|
7597
7597
|
resourceDestinationString: l,
|
7598
7598
|
resourceTitleString: l,
|
@@ -7605,21 +7605,21 @@ function tm(e) {
|
|
7605
7605
|
atxHeadingSequence: k,
|
7606
7606
|
autolink: d(),
|
7607
7607
|
autolinkEmail: Oe,
|
7608
|
-
autolinkProtocol:
|
7608
|
+
autolinkProtocol: Be,
|
7609
7609
|
blockQuote: d(),
|
7610
|
-
characterEscapeValue:
|
7611
|
-
characterReferenceMarkerHexadecimal:
|
7612
|
-
characterReferenceMarkerNumeric:
|
7610
|
+
characterEscapeValue: $,
|
7611
|
+
characterReferenceMarkerHexadecimal: xe,
|
7612
|
+
characterReferenceMarkerNumeric: xe,
|
7613
7613
|
characterReferenceValue: ve,
|
7614
7614
|
codeFenced: d(M),
|
7615
7615
|
codeFencedFence: T,
|
7616
7616
|
codeFencedFenceInfo: m,
|
7617
7617
|
codeFencedFenceMeta: _,
|
7618
|
-
codeFlowValue:
|
7618
|
+
codeFlowValue: $,
|
7619
7619
|
codeIndented: d(B),
|
7620
7620
|
codeText: d(W),
|
7621
|
-
codeTextData:
|
7622
|
-
data:
|
7621
|
+
codeTextData: $,
|
7622
|
+
data: $,
|
7623
7623
|
definition: d(),
|
7624
7624
|
definitionDestinationString: y,
|
7625
7625
|
definitionLabelString: K,
|
@@ -7627,14 +7627,14 @@ function tm(e) {
|
|
7627
7627
|
emphasis: d(),
|
7628
7628
|
hardBreakEscape: d(I),
|
7629
7629
|
hardBreakTrailing: d(I),
|
7630
|
-
htmlFlow: d(
|
7631
|
-
htmlFlowData:
|
7630
|
+
htmlFlow: d(R),
|
7631
|
+
htmlFlowData: $,
|
7632
7632
|
htmlText: d(U),
|
7633
|
-
htmlTextData:
|
7633
|
+
htmlTextData: $,
|
7634
7634
|
image: d(Y),
|
7635
|
-
label:
|
7635
|
+
label: ne,
|
7636
7636
|
labelText: g,
|
7637
|
-
lineEnding:
|
7637
|
+
lineEnding: L,
|
7638
7638
|
link: d(q),
|
7639
7639
|
listItem: d(),
|
7640
7640
|
listOrdered: d(),
|
@@ -7654,13 +7654,13 @@ function tm(e) {
|
|
7654
7654
|
_l(t, (e || {}).mdastExtensions || []);
|
7655
7655
|
const n = {};
|
7656
7656
|
return r;
|
7657
|
-
function r(
|
7658
|
-
let
|
7657
|
+
function r(D) {
|
7658
|
+
let V = {
|
7659
7659
|
type: "root",
|
7660
7660
|
children: []
|
7661
7661
|
};
|
7662
|
-
const
|
7663
|
-
stack: [
|
7662
|
+
const re = {
|
7663
|
+
stack: [V],
|
7664
7664
|
tokenStack: [],
|
7665
7665
|
config: t,
|
7666
7666
|
enter: c,
|
@@ -7671,89 +7671,89 @@ function tm(e) {
|
|
7671
7671
|
getData: u
|
7672
7672
|
}, ae = [];
|
7673
7673
|
let ue = -1;
|
7674
|
-
for (; ++ue <
|
7675
|
-
if (
|
7676
|
-
if (
|
7674
|
+
for (; ++ue < D.length; )
|
7675
|
+
if (D[ue][1].type === "listOrdered" || D[ue][1].type === "listUnordered")
|
7676
|
+
if (D[ue][0] === "enter")
|
7677
7677
|
ae.push(ue);
|
7678
7678
|
else {
|
7679
|
-
const
|
7680
|
-
ue = a(
|
7679
|
+
const ye = ae.pop();
|
7680
|
+
ue = a(D, ye, ue);
|
7681
7681
|
}
|
7682
|
-
for (ue = -1; ++ue <
|
7683
|
-
const
|
7684
|
-
yl.call(
|
7682
|
+
for (ue = -1; ++ue < D.length; ) {
|
7683
|
+
const ye = t[D[ue][0]];
|
7684
|
+
yl.call(ye, D[ue][1].type) && ye[D[ue][1].type].call(
|
7685
7685
|
Object.assign(
|
7686
7686
|
{
|
7687
|
-
sliceSerialize:
|
7687
|
+
sliceSerialize: D[ue][2].sliceSerialize
|
7688
7688
|
},
|
7689
|
-
|
7689
|
+
re
|
7690
7690
|
),
|
7691
|
-
|
7691
|
+
D[ue][1]
|
7692
7692
|
);
|
7693
7693
|
}
|
7694
|
-
if (
|
7695
|
-
const
|
7696
|
-
(
|
7694
|
+
if (re.tokenStack.length > 0) {
|
7695
|
+
const ye = re.tokenStack[re.tokenStack.length - 1];
|
7696
|
+
(ye[1] || ho).call(re, void 0, ye[0]);
|
7697
7697
|
}
|
7698
|
-
for (
|
7698
|
+
for (V.position = {
|
7699
7699
|
start: qt(
|
7700
|
-
|
7700
|
+
D.length > 0 ? D[0][1].start : {
|
7701
7701
|
line: 1,
|
7702
7702
|
column: 1,
|
7703
7703
|
offset: 0
|
7704
7704
|
}
|
7705
7705
|
),
|
7706
7706
|
end: qt(
|
7707
|
-
|
7707
|
+
D.length > 0 ? D[D.length - 2][1].end : {
|
7708
7708
|
line: 1,
|
7709
7709
|
column: 1,
|
7710
7710
|
offset: 0
|
7711
7711
|
}
|
7712
7712
|
)
|
7713
7713
|
}, ue = -1; ++ue < t.transforms.length; )
|
7714
|
-
|
7715
|
-
return
|
7716
|
-
}
|
7717
|
-
function a(
|
7718
|
-
let ae =
|
7719
|
-
for (; ++ae <=
|
7720
|
-
const ge =
|
7721
|
-
if (ge[1].type === "listUnordered" || ge[1].type === "listOrdered" || ge[1].type === "blockQuote" ? (ge[0] === "enter" ? ue++ : ue--, Ge = void 0) : ge[1].type === "lineEndingBlank" ? ge[0] === "enter" && (
|
7722
|
-
if (
|
7714
|
+
V = t.transforms[ue](V) || V;
|
7715
|
+
return V;
|
7716
|
+
}
|
7717
|
+
function a(D, V, re) {
|
7718
|
+
let ae = V - 1, ue = -1, ye = !1, Ee, De, we, Ge;
|
7719
|
+
for (; ++ae <= re; ) {
|
7720
|
+
const ge = D[ae];
|
7721
|
+
if (ge[1].type === "listUnordered" || ge[1].type === "listOrdered" || ge[1].type === "blockQuote" ? (ge[0] === "enter" ? ue++ : ue--, Ge = void 0) : ge[1].type === "lineEndingBlank" ? ge[0] === "enter" && (Ee && !Ge && !ue && !we && (we = ae), Ge = void 0) : ge[1].type === "linePrefix" || ge[1].type === "listItemValue" || ge[1].type === "listItemMarker" || ge[1].type === "listItemPrefix" || ge[1].type === "listItemPrefixWhitespace" || (Ge = void 0), !ue && ge[0] === "enter" && ge[1].type === "listItemPrefix" || ue === -1 && ge[0] === "exit" && (ge[1].type === "listUnordered" || ge[1].type === "listOrdered")) {
|
7722
|
+
if (Ee) {
|
7723
7723
|
let ut = ae;
|
7724
|
-
for (
|
7725
|
-
const Xe =
|
7724
|
+
for (De = void 0; ut--; ) {
|
7725
|
+
const Xe = D[ut];
|
7726
7726
|
if (Xe[1].type === "lineEnding" || Xe[1].type === "lineEndingBlank") {
|
7727
7727
|
if (Xe[0] === "exit") continue;
|
7728
|
-
|
7728
|
+
De && (D[De][1].type = "lineEndingBlank", ye = !0), Xe[1].type = "lineEnding", De = ut;
|
7729
7729
|
} else if (!(Xe[1].type === "linePrefix" || Xe[1].type === "blockQuotePrefix" || Xe[1].type === "blockQuotePrefixWhitespace" || Xe[1].type === "blockQuoteMarker" || Xe[1].type === "listItemIndent")) break;
|
7730
7730
|
}
|
7731
|
-
|
7731
|
+
we && (!De || we < De) && (Ee._spread = !0), Ee.end = Object.assign(
|
7732
7732
|
{},
|
7733
|
-
|
7734
|
-
),
|
7733
|
+
De ? D[De][1].start : ge[1].end
|
7734
|
+
), D.splice(De || ae, 0, ["exit", Ee, ge[2]]), ae++, re++;
|
7735
7735
|
}
|
7736
|
-
ge[1].type === "listItemPrefix" && (
|
7736
|
+
ge[1].type === "listItemPrefix" && (Ee = {
|
7737
7737
|
type: "listItem",
|
7738
7738
|
_spread: !1,
|
7739
7739
|
start: Object.assign({}, ge[1].start),
|
7740
7740
|
// @ts-expect-error: we’ll add `end` in a second.
|
7741
7741
|
end: void 0
|
7742
|
-
},
|
7742
|
+
}, D.splice(ae, 0, ["enter", Ee, ge[2]]), ae++, re++, we = void 0, Ge = !0);
|
7743
7743
|
}
|
7744
7744
|
}
|
7745
|
-
return
|
7745
|
+
return D[V][1]._spread = ye, re;
|
7746
7746
|
}
|
7747
|
-
function i(
|
7748
|
-
n[
|
7747
|
+
function i(D, V) {
|
7748
|
+
n[D] = V;
|
7749
7749
|
}
|
7750
|
-
function u(
|
7751
|
-
return n[
|
7750
|
+
function u(D) {
|
7751
|
+
return n[D];
|
7752
7752
|
}
|
7753
|
-
function s(
|
7754
|
-
return
|
7755
|
-
function
|
7756
|
-
c.call(this,
|
7753
|
+
function s(D, V) {
|
7754
|
+
return re;
|
7755
|
+
function re(ae) {
|
7756
|
+
c.call(this, D(ae), ae), V && V.call(this, ae);
|
7757
7757
|
}
|
7758
7758
|
}
|
7759
7759
|
function l() {
|
@@ -7762,28 +7762,28 @@ function tm(e) {
|
|
7762
7762
|
children: []
|
7763
7763
|
});
|
7764
7764
|
}
|
7765
|
-
function c(
|
7766
|
-
return this.stack[this.stack.length - 1].children.push(
|
7767
|
-
start: qt(
|
7768
|
-
},
|
7765
|
+
function c(D, V, re) {
|
7766
|
+
return this.stack[this.stack.length - 1].children.push(D), this.stack.push(D), this.tokenStack.push([V, re]), D.position = {
|
7767
|
+
start: qt(V.start)
|
7768
|
+
}, D;
|
7769
7769
|
}
|
7770
|
-
function d(
|
7771
|
-
return
|
7772
|
-
function
|
7773
|
-
|
7770
|
+
function d(D) {
|
7771
|
+
return V;
|
7772
|
+
function V(re) {
|
7773
|
+
D && D.call(this, re), h.call(this, re);
|
7774
7774
|
}
|
7775
7775
|
}
|
7776
|
-
function h(
|
7777
|
-
const
|
7776
|
+
function h(D, V) {
|
7777
|
+
const re = this.stack.pop(), ae = this.tokenStack.pop();
|
7778
7778
|
if (ae)
|
7779
|
-
ae[0].type !==
|
7779
|
+
ae[0].type !== D.type && (V ? V.call(this, D, ae[0]) : (ae[1] || ho).call(this, D, ae[0]));
|
7780
7780
|
else throw new Error(
|
7781
|
-
"Cannot close `" +
|
7782
|
-
start:
|
7783
|
-
end:
|
7781
|
+
"Cannot close `" + D.type + "` (" + Jn({
|
7782
|
+
start: D.start,
|
7783
|
+
end: D.end
|
7784
7784
|
}) + "): it’s not open"
|
7785
7785
|
);
|
7786
|
-
return
|
7786
|
+
return re.position.end = qt(D.end), re;
|
7787
7787
|
}
|
7788
7788
|
function p() {
|
7789
7789
|
return Jh(this.stack.pop());
|
@@ -7791,169 +7791,169 @@ function tm(e) {
|
|
7791
7791
|
function f() {
|
7792
7792
|
i("expectingFirstListItemValue", !0);
|
7793
7793
|
}
|
7794
|
-
function b(
|
7794
|
+
function b(D) {
|
7795
7795
|
if (u("expectingFirstListItemValue")) {
|
7796
|
-
const
|
7797
|
-
|
7796
|
+
const V = this.stack[this.stack.length - 2];
|
7797
|
+
V.start = Number.parseInt(this.sliceSerialize(D), 10), i("expectingFirstListItemValue");
|
7798
7798
|
}
|
7799
7799
|
}
|
7800
7800
|
function m() {
|
7801
|
-
const
|
7802
|
-
|
7801
|
+
const D = this.resume(), V = this.stack[this.stack.length - 1];
|
7802
|
+
V.lang = D;
|
7803
7803
|
}
|
7804
7804
|
function _() {
|
7805
|
-
const
|
7806
|
-
|
7805
|
+
const D = this.resume(), V = this.stack[this.stack.length - 1];
|
7806
|
+
V.meta = D;
|
7807
7807
|
}
|
7808
7808
|
function T() {
|
7809
7809
|
u("flowCodeInside") || (this.buffer(), i("flowCodeInside", !0));
|
7810
7810
|
}
|
7811
7811
|
function M() {
|
7812
|
-
const
|
7813
|
-
|
7812
|
+
const D = this.resume(), V = this.stack[this.stack.length - 1];
|
7813
|
+
V.value = D.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), i("flowCodeInside");
|
7814
7814
|
}
|
7815
7815
|
function B() {
|
7816
|
-
const
|
7817
|
-
|
7816
|
+
const D = this.resume(), V = this.stack[this.stack.length - 1];
|
7817
|
+
V.value = D.replace(/(\r?\n|\r)$/g, "");
|
7818
7818
|
}
|
7819
|
-
function K(
|
7820
|
-
const
|
7821
|
-
|
7822
|
-
this.sliceSerialize(
|
7819
|
+
function K(D) {
|
7820
|
+
const V = this.resume(), re = this.stack[this.stack.length - 1];
|
7821
|
+
re.label = V, re.identifier = _n(
|
7822
|
+
this.sliceSerialize(D)
|
7823
7823
|
).toLowerCase();
|
7824
7824
|
}
|
7825
7825
|
function w() {
|
7826
|
-
const
|
7827
|
-
|
7826
|
+
const D = this.resume(), V = this.stack[this.stack.length - 1];
|
7827
|
+
V.title = D;
|
7828
7828
|
}
|
7829
7829
|
function y() {
|
7830
|
-
const
|
7831
|
-
|
7830
|
+
const D = this.resume(), V = this.stack[this.stack.length - 1];
|
7831
|
+
V.url = D;
|
7832
7832
|
}
|
7833
|
-
function k(
|
7834
|
-
const
|
7835
|
-
if (
|
7836
|
-
const
|
7837
|
-
|
7833
|
+
function k(D) {
|
7834
|
+
const V = this.stack[this.stack.length - 1];
|
7835
|
+
if (!V.depth) {
|
7836
|
+
const re = this.sliceSerialize(D).length;
|
7837
|
+
V.depth = re;
|
7838
7838
|
}
|
7839
7839
|
}
|
7840
7840
|
function G() {
|
7841
7841
|
i("setextHeadingSlurpLineEnding", !0);
|
7842
7842
|
}
|
7843
|
-
function F(
|
7844
|
-
const
|
7845
|
-
|
7843
|
+
function F(D) {
|
7844
|
+
const V = this.stack[this.stack.length - 1];
|
7845
|
+
V.depth = this.sliceSerialize(D).charCodeAt(0) === 61 ? 1 : 2;
|
7846
7846
|
}
|
7847
7847
|
function Z() {
|
7848
7848
|
i("setextHeadingSlurpLineEnding");
|
7849
7849
|
}
|
7850
|
-
function z(
|
7851
|
-
const
|
7852
|
-
let
|
7853
|
-
(!
|
7854
|
-
start: qt(
|
7855
|
-
},
|
7850
|
+
function z(D) {
|
7851
|
+
const V = this.stack[this.stack.length - 1];
|
7852
|
+
let re = V.children[V.children.length - 1];
|
7853
|
+
(!re || re.type !== "text") && (re = Xt(), re.position = {
|
7854
|
+
start: qt(D.start)
|
7855
|
+
}, V.children.push(re)), this.stack.push(re);
|
7856
7856
|
}
|
7857
|
-
function
|
7858
|
-
const
|
7859
|
-
|
7857
|
+
function $(D) {
|
7858
|
+
const V = this.stack.pop();
|
7859
|
+
V.value += this.sliceSerialize(D), V.position.end = qt(D.end);
|
7860
7860
|
}
|
7861
|
-
function
|
7862
|
-
const
|
7861
|
+
function L(D) {
|
7862
|
+
const V = this.stack[this.stack.length - 1];
|
7863
7863
|
if (u("atHardBreak")) {
|
7864
|
-
const
|
7865
|
-
|
7864
|
+
const re = V.children[V.children.length - 1];
|
7865
|
+
re.position.end = qt(D.end), i("atHardBreak");
|
7866
7866
|
return;
|
7867
7867
|
}
|
7868
|
-
!u("setextHeadingSlurpLineEnding") && t.canContainEols.includes(
|
7868
|
+
!u("setextHeadingSlurpLineEnding") && t.canContainEols.includes(V.type) && (z.call(this, D), $.call(this, D));
|
7869
7869
|
}
|
7870
7870
|
function I() {
|
7871
7871
|
i("atHardBreak", !0);
|
7872
7872
|
}
|
7873
|
-
function
|
7874
|
-
const
|
7875
|
-
|
7873
|
+
function R() {
|
7874
|
+
const D = this.resume(), V = this.stack[this.stack.length - 1];
|
7875
|
+
V.value = D;
|
7876
7876
|
}
|
7877
7877
|
function U() {
|
7878
|
-
const
|
7879
|
-
|
7878
|
+
const D = this.resume(), V = this.stack[this.stack.length - 1];
|
7879
|
+
V.value = D;
|
7880
7880
|
}
|
7881
7881
|
function W() {
|
7882
|
-
const
|
7883
|
-
|
7882
|
+
const D = this.resume(), V = this.stack[this.stack.length - 1];
|
7883
|
+
V.value = D;
|
7884
7884
|
}
|
7885
7885
|
function q() {
|
7886
|
-
const
|
7886
|
+
const D = this.stack[this.stack.length - 1];
|
7887
7887
|
if (u("inReference")) {
|
7888
|
-
const
|
7889
|
-
|
7888
|
+
const V = u("referenceType") || "shortcut";
|
7889
|
+
D.type += "Reference", D.referenceType = V, delete D.url, delete D.title;
|
7890
7890
|
} else
|
7891
|
-
delete
|
7891
|
+
delete D.identifier, delete D.label;
|
7892
7892
|
i("referenceType");
|
7893
7893
|
}
|
7894
7894
|
function Y() {
|
7895
|
-
const
|
7895
|
+
const D = this.stack[this.stack.length - 1];
|
7896
7896
|
if (u("inReference")) {
|
7897
|
-
const
|
7898
|
-
|
7897
|
+
const V = u("referenceType") || "shortcut";
|
7898
|
+
D.type += "Reference", D.referenceType = V, delete D.url, delete D.title;
|
7899
7899
|
} else
|
7900
|
-
delete
|
7900
|
+
delete D.identifier, delete D.label;
|
7901
7901
|
i("referenceType");
|
7902
7902
|
}
|
7903
|
-
function g(
|
7904
|
-
const
|
7905
|
-
|
7903
|
+
function g(D) {
|
7904
|
+
const V = this.sliceSerialize(D), re = this.stack[this.stack.length - 2];
|
7905
|
+
re.label = Z1(V), re.identifier = _n(V).toLowerCase();
|
7906
7906
|
}
|
7907
|
-
function
|
7908
|
-
const
|
7909
|
-
if (i("inReference", !0),
|
7910
|
-
const ae =
|
7911
|
-
|
7907
|
+
function ne() {
|
7908
|
+
const D = this.stack[this.stack.length - 1], V = this.resume(), re = this.stack[this.stack.length - 1];
|
7909
|
+
if (i("inReference", !0), re.type === "link") {
|
7910
|
+
const ae = D.children;
|
7911
|
+
re.children = ae;
|
7912
7912
|
} else
|
7913
|
-
|
7913
|
+
re.alt = V;
|
7914
7914
|
}
|
7915
7915
|
function oe() {
|
7916
|
-
const
|
7917
|
-
|
7916
|
+
const D = this.resume(), V = this.stack[this.stack.length - 1];
|
7917
|
+
V.url = D;
|
7918
7918
|
}
|
7919
7919
|
function S() {
|
7920
|
-
const
|
7921
|
-
|
7920
|
+
const D = this.resume(), V = this.stack[this.stack.length - 1];
|
7921
|
+
V.title = D;
|
7922
7922
|
}
|
7923
7923
|
function le() {
|
7924
7924
|
i("inReference");
|
7925
7925
|
}
|
7926
|
-
function
|
7926
|
+
function Te() {
|
7927
7927
|
i("referenceType", "collapsed");
|
7928
7928
|
}
|
7929
|
-
function me(
|
7930
|
-
const
|
7931
|
-
|
7932
|
-
this.sliceSerialize(
|
7929
|
+
function me(D) {
|
7930
|
+
const V = this.resume(), re = this.stack[this.stack.length - 1];
|
7931
|
+
re.label = V, re.identifier = _n(
|
7932
|
+
this.sliceSerialize(D)
|
7933
7933
|
).toLowerCase(), i("referenceType", "full");
|
7934
7934
|
}
|
7935
|
-
function
|
7936
|
-
i("characterReferenceType",
|
7935
|
+
function xe(D) {
|
7936
|
+
i("characterReferenceType", D.type);
|
7937
7937
|
}
|
7938
|
-
function ve(
|
7939
|
-
const
|
7938
|
+
function ve(D) {
|
7939
|
+
const V = this.sliceSerialize(D), re = u("characterReferenceType");
|
7940
7940
|
let ae;
|
7941
|
-
|
7942
|
-
|
7943
|
-
|
7944
|
-
), i("characterReferenceType")) : ae = Di(
|
7941
|
+
re ? (ae = Tl(
|
7942
|
+
V,
|
7943
|
+
re === "characterReferenceMarkerNumeric" ? 10 : 16
|
7944
|
+
), i("characterReferenceType")) : ae = Di(V);
|
7945
7945
|
const ue = this.stack.pop();
|
7946
|
-
ue.value += ae, ue.position.end = qt(
|
7946
|
+
ue.value += ae, ue.position.end = qt(D.end);
|
7947
7947
|
}
|
7948
|
-
function
|
7949
|
-
|
7950
|
-
const
|
7951
|
-
|
7948
|
+
function Be(D) {
|
7949
|
+
$.call(this, D);
|
7950
|
+
const V = this.stack[this.stack.length - 1];
|
7951
|
+
V.url = this.sliceSerialize(D);
|
7952
7952
|
}
|
7953
|
-
function Oe(
|
7954
|
-
|
7955
|
-
const
|
7956
|
-
|
7953
|
+
function Oe(D) {
|
7954
|
+
$.call(this, D);
|
7955
|
+
const V = this.stack[this.stack.length - 1];
|
7956
|
+
V.url = "mailto:" + this.sliceSerialize(D);
|
7957
7957
|
}
|
7958
7958
|
function We() {
|
7959
7959
|
return {
|
@@ -8024,19 +8024,19 @@ function tm(e) {
|
|
8024
8024
|
children: []
|
8025
8025
|
};
|
8026
8026
|
}
|
8027
|
-
function jt(
|
8027
|
+
function jt(D) {
|
8028
8028
|
return {
|
8029
8029
|
type: "list",
|
8030
|
-
ordered:
|
8030
|
+
ordered: D.type === "listOrdered",
|
8031
8031
|
start: null,
|
8032
|
-
spread:
|
8032
|
+
spread: D._spread,
|
8033
8033
|
children: []
|
8034
8034
|
};
|
8035
8035
|
}
|
8036
|
-
function Dt(
|
8036
|
+
function Dt(D) {
|
8037
8037
|
return {
|
8038
8038
|
type: "listItem",
|
8039
|
-
spread:
|
8039
|
+
spread: D._spread,
|
8040
8040
|
checked: null,
|
8041
8041
|
children: []
|
8042
8042
|
};
|
@@ -8927,14 +8927,14 @@ yt.prototype.commaOrSpaceSeparated = !1;
|
|
8927
8927
|
yt.prototype.mustUseProperty = !1;
|
8928
8928
|
yt.prototype.defined = !1;
|
8929
8929
|
let Km = 0;
|
8930
|
-
const fe = un(),
|
8930
|
+
const fe = un(), qe = un(), kl = un(), J = un(), Ne = un(), Cn = un(), lt = un();
|
8931
8931
|
function un() {
|
8932
8932
|
return 2 ** ++Km;
|
8933
8933
|
}
|
8934
8934
|
const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8935
8935
|
__proto__: null,
|
8936
8936
|
boolean: fe,
|
8937
|
-
booleanish:
|
8937
|
+
booleanish: qe,
|
8938
8938
|
commaOrSpaceSeparated: lt,
|
8939
8939
|
commaSeparated: Cn,
|
8940
8940
|
number: J,
|
@@ -9016,10 +9016,10 @@ const Pl = In({
|
|
9016
9016
|
},
|
9017
9017
|
properties: {
|
9018
9018
|
ariaActiveDescendant: null,
|
9019
|
-
ariaAtomic:
|
9019
|
+
ariaAtomic: qe,
|
9020
9020
|
ariaAutoComplete: null,
|
9021
|
-
ariaBusy:
|
9022
|
-
ariaChecked:
|
9021
|
+
ariaBusy: qe,
|
9022
|
+
ariaChecked: qe,
|
9023
9023
|
ariaColCount: J,
|
9024
9024
|
ariaColIndex: J,
|
9025
9025
|
ariaColSpan: J,
|
@@ -9027,36 +9027,36 @@ const Pl = In({
|
|
9027
9027
|
ariaCurrent: null,
|
9028
9028
|
ariaDescribedBy: Ne,
|
9029
9029
|
ariaDetails: null,
|
9030
|
-
ariaDisabled:
|
9030
|
+
ariaDisabled: qe,
|
9031
9031
|
ariaDropEffect: Ne,
|
9032
9032
|
ariaErrorMessage: null,
|
9033
|
-
ariaExpanded:
|
9033
|
+
ariaExpanded: qe,
|
9034
9034
|
ariaFlowTo: Ne,
|
9035
|
-
ariaGrabbed:
|
9035
|
+
ariaGrabbed: qe,
|
9036
9036
|
ariaHasPopup: null,
|
9037
|
-
ariaHidden:
|
9037
|
+
ariaHidden: qe,
|
9038
9038
|
ariaInvalid: null,
|
9039
9039
|
ariaKeyShortcuts: null,
|
9040
9040
|
ariaLabel: null,
|
9041
9041
|
ariaLabelledBy: Ne,
|
9042
9042
|
ariaLevel: J,
|
9043
9043
|
ariaLive: null,
|
9044
|
-
ariaModal:
|
9045
|
-
ariaMultiLine:
|
9046
|
-
ariaMultiSelectable:
|
9044
|
+
ariaModal: qe,
|
9045
|
+
ariaMultiLine: qe,
|
9046
|
+
ariaMultiSelectable: qe,
|
9047
9047
|
ariaOrientation: null,
|
9048
9048
|
ariaOwns: Ne,
|
9049
9049
|
ariaPlaceholder: null,
|
9050
9050
|
ariaPosInSet: J,
|
9051
|
-
ariaPressed:
|
9052
|
-
ariaReadOnly:
|
9051
|
+
ariaPressed: qe,
|
9052
|
+
ariaReadOnly: qe,
|
9053
9053
|
ariaRelevant: null,
|
9054
|
-
ariaRequired:
|
9054
|
+
ariaRequired: qe,
|
9055
9055
|
ariaRoleDescription: Ne,
|
9056
9056
|
ariaRowCount: J,
|
9057
9057
|
ariaRowIndex: J,
|
9058
9058
|
ariaRowSpan: J,
|
9059
|
-
ariaSelected:
|
9059
|
+
ariaSelected: qe,
|
9060
9060
|
ariaSetSize: J,
|
9061
9061
|
ariaSort: null,
|
9062
9062
|
ariaValueMax: J,
|
@@ -9102,7 +9102,7 @@ const Pl = In({
|
|
9102
9102
|
cols: J,
|
9103
9103
|
colSpan: null,
|
9104
9104
|
content: null,
|
9105
|
-
contentEditable:
|
9105
|
+
contentEditable: qe,
|
9106
9106
|
controls: fe,
|
9107
9107
|
controlsList: Ne,
|
9108
9108
|
coords: J | Cn,
|
@@ -9116,7 +9116,7 @@ const Pl = In({
|
|
9116
9116
|
dirName: null,
|
9117
9117
|
disabled: fe,
|
9118
9118
|
download: kl,
|
9119
|
-
draggable:
|
9119
|
+
draggable: qe,
|
9120
9120
|
encType: null,
|
9121
9121
|
enterKeyHint: null,
|
9122
9122
|
fetchPriority: null,
|
@@ -9287,7 +9287,7 @@ const Pl = In({
|
|
9287
9287
|
sizes: null,
|
9288
9288
|
slot: null,
|
9289
9289
|
span: J,
|
9290
|
-
spellCheck:
|
9290
|
+
spellCheck: qe,
|
9291
9291
|
src: null,
|
9292
9292
|
srcDoc: null,
|
9293
9293
|
srcLang: null,
|
@@ -9302,7 +9302,7 @@ const Pl = In({
|
|
9302
9302
|
type: null,
|
9303
9303
|
typeMustMatch: fe,
|
9304
9304
|
useMap: null,
|
9305
|
-
value:
|
9305
|
+
value: qe,
|
9306
9306
|
width: J,
|
9307
9307
|
wrap: null,
|
9308
9308
|
writingSuggestions: null,
|
@@ -9394,7 +9394,7 @@ const Pl = In({
|
|
9394
9394
|
// `<table>`
|
9395
9395
|
scheme: null,
|
9396
9396
|
// `<meta>`
|
9397
|
-
scrolling:
|
9397
|
+
scrolling: qe,
|
9398
9398
|
// `<frame>`. Use overflow in the child context
|
9399
9399
|
standby: null,
|
9400
9400
|
// `<object>`
|
@@ -10049,7 +10049,7 @@ function a2(e) {
|
|
10049
10049
|
});
|
10050
10050
|
};
|
10051
10051
|
}
|
10052
|
-
var Fa = { exports: {} },
|
10052
|
+
var Fa = { exports: {} }, Se = {};
|
10053
10053
|
/**
|
10054
10054
|
* @license React
|
10055
10055
|
* react-is.production.min.js
|
@@ -10061,7 +10061,7 @@ var Fa = { exports: {} }, Ae = {};
|
|
10061
10061
|
*/
|
10062
10062
|
var Ao;
|
10063
10063
|
function i2() {
|
10064
|
-
if (Ao) return
|
10064
|
+
if (Ao) return Se;
|
10065
10065
|
Ao = 1;
|
10066
10066
|
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"), b;
|
10067
10067
|
b = Symbol.for("react.module.reference");
|
@@ -10095,37 +10095,37 @@ function i2() {
|
|
10095
10095
|
}
|
10096
10096
|
}
|
10097
10097
|
}
|
10098
|
-
return
|
10098
|
+
return Se.ContextConsumer = u, Se.ContextProvider = i, Se.Element = e, Se.ForwardRef = l, Se.Fragment = n, Se.Lazy = p, Se.Memo = h, Se.Portal = t, Se.Profiler = a, Se.StrictMode = r, Se.Suspense = c, Se.SuspenseList = d, Se.isAsyncMode = function() {
|
10099
10099
|
return !1;
|
10100
|
-
},
|
10100
|
+
}, Se.isConcurrentMode = function() {
|
10101
10101
|
return !1;
|
10102
|
-
},
|
10102
|
+
}, Se.isContextConsumer = function(_) {
|
10103
10103
|
return m(_) === u;
|
10104
|
-
},
|
10104
|
+
}, Se.isContextProvider = function(_) {
|
10105
10105
|
return m(_) === i;
|
10106
|
-
},
|
10106
|
+
}, Se.isElement = function(_) {
|
10107
10107
|
return typeof _ == "object" && _ !== null && _.$$typeof === e;
|
10108
|
-
},
|
10108
|
+
}, Se.isForwardRef = function(_) {
|
10109
10109
|
return m(_) === l;
|
10110
|
-
},
|
10110
|
+
}, Se.isFragment = function(_) {
|
10111
10111
|
return m(_) === n;
|
10112
|
-
},
|
10112
|
+
}, Se.isLazy = function(_) {
|
10113
10113
|
return m(_) === p;
|
10114
|
-
},
|
10114
|
+
}, Se.isMemo = function(_) {
|
10115
10115
|
return m(_) === h;
|
10116
|
-
},
|
10116
|
+
}, Se.isPortal = function(_) {
|
10117
10117
|
return m(_) === t;
|
10118
|
-
},
|
10118
|
+
}, Se.isProfiler = function(_) {
|
10119
10119
|
return m(_) === a;
|
10120
|
-
},
|
10120
|
+
}, Se.isStrictMode = function(_) {
|
10121
10121
|
return m(_) === r;
|
10122
|
-
},
|
10122
|
+
}, Se.isSuspense = function(_) {
|
10123
10123
|
return m(_) === c;
|
10124
|
-
},
|
10124
|
+
}, Se.isSuspenseList = function(_) {
|
10125
10125
|
return m(_) === d;
|
10126
|
-
},
|
10126
|
+
}, Se.isValidElementType = function(_) {
|
10127
10127
|
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 === b || _.getModuleId !== void 0);
|
10128
|
-
},
|
10128
|
+
}, Se.typeOf = m, Se;
|
10129
10129
|
}
|
10130
10130
|
var So;
|
10131
10131
|
function u2() {
|
@@ -10178,78 +10178,78 @@ function c2() {
|
|
10178
10178
|
if (!m) return [];
|
10179
10179
|
_ = _ || {};
|
10180
10180
|
var T = 1, M = 1;
|
10181
|
-
function B(
|
10182
|
-
var I =
|
10181
|
+
function B(L) {
|
10182
|
+
var I = L.match(t);
|
10183
10183
|
I && (T += I.length);
|
10184
|
-
var
|
10185
|
-
M = ~
|
10184
|
+
var R = L.lastIndexOf(l);
|
10185
|
+
M = ~R ? L.length - R : M + L.length;
|
10186
10186
|
}
|
10187
10187
|
function K() {
|
10188
|
-
var
|
10188
|
+
var L = { line: T, column: M };
|
10189
10189
|
return function(I) {
|
10190
|
-
return I.position = new w(
|
10190
|
+
return I.position = new w(L), G(), I;
|
10191
10191
|
};
|
10192
10192
|
}
|
10193
|
-
function w(
|
10194
|
-
this.start =
|
10193
|
+
function w(L) {
|
10194
|
+
this.start = L, this.end = { line: T, column: M }, this.source = _.source;
|
10195
10195
|
}
|
10196
10196
|
w.prototype.content = m;
|
10197
|
-
function y(
|
10197
|
+
function y(L) {
|
10198
10198
|
var I = new Error(
|
10199
|
-
_.source + ":" + T + ":" + M + ": " +
|
10199
|
+
_.source + ":" + T + ":" + M + ": " + L
|
10200
10200
|
);
|
10201
|
-
if (I.reason =
|
10201
|
+
if (I.reason = L, I.filename = _.source, I.line = T, I.column = M, I.source = m, !_.silent) throw I;
|
10202
10202
|
}
|
10203
|
-
function k(
|
10204
|
-
var I =
|
10203
|
+
function k(L) {
|
10204
|
+
var I = L.exec(m);
|
10205
10205
|
if (I) {
|
10206
|
-
var
|
10207
|
-
return B(
|
10206
|
+
var R = I[0];
|
10207
|
+
return B(R), m = m.slice(R.length), I;
|
10208
10208
|
}
|
10209
10209
|
}
|
10210
10210
|
function G() {
|
10211
10211
|
k(n);
|
10212
10212
|
}
|
10213
|
-
function F(
|
10213
|
+
function F(L) {
|
10214
10214
|
var I;
|
10215
|
-
for (
|
10216
|
-
I !== !1 &&
|
10217
|
-
return
|
10215
|
+
for (L = L || []; I = Z(); )
|
10216
|
+
I !== !1 && L.push(I);
|
10217
|
+
return L;
|
10218
10218
|
}
|
10219
10219
|
function Z() {
|
10220
|
-
var
|
10220
|
+
var L = K();
|
10221
10221
|
if (!(c != m.charAt(0) || d != m.charAt(1))) {
|
10222
10222
|
for (var I = 2; h != m.charAt(I) && (d != m.charAt(I) || c != m.charAt(I + 1)); )
|
10223
10223
|
++I;
|
10224
10224
|
if (I += 2, h === m.charAt(I - 1))
|
10225
10225
|
return y("End of comment missing");
|
10226
|
-
var
|
10227
|
-
return M += 2, B(
|
10226
|
+
var R = m.slice(2, I - 2);
|
10227
|
+
return M += 2, B(R), m = m.slice(I), M += 2, L({
|
10228
10228
|
type: p,
|
10229
|
-
comment:
|
10229
|
+
comment: R
|
10230
10230
|
});
|
10231
10231
|
}
|
10232
10232
|
}
|
10233
10233
|
function z() {
|
10234
|
-
var
|
10234
|
+
var L = K(), I = k(r);
|
10235
10235
|
if (I) {
|
10236
10236
|
if (Z(), !k(a)) return y("property missing ':'");
|
10237
|
-
var
|
10237
|
+
var R = k(i), U = L({
|
10238
10238
|
type: f,
|
10239
10239
|
property: b(I[0].replace(e, h)),
|
10240
|
-
value:
|
10240
|
+
value: R ? b(R[0].replace(e, h)) : h
|
10241
10241
|
});
|
10242
10242
|
return k(u), U;
|
10243
10243
|
}
|
10244
10244
|
}
|
10245
|
-
function
|
10246
|
-
var
|
10247
|
-
F(
|
10245
|
+
function $() {
|
10246
|
+
var L = [];
|
10247
|
+
F(L);
|
10248
10248
|
for (var I; I = z(); )
|
10249
|
-
I !== !1 && (
|
10250
|
-
return
|
10249
|
+
I !== !1 && (L.push(I), F(L));
|
10250
|
+
return L;
|
10251
10251
|
}
|
10252
|
-
return G(),
|
10252
|
+
return G(), $();
|
10253
10253
|
};
|
10254
10254
|
function b(m) {
|
10255
10255
|
return m ? m.replace(s, h) : h;
|
@@ -10592,17 +10592,17 @@ function I2() {
|
|
10592
10592
|
e.exports = r();
|
10593
10593
|
})(O2, function() {
|
10594
10594
|
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", h = "month", p = "quarter", f = "year", b = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
|
10595
|
-
var
|
10596
|
-
return "[" + I + (
|
10597
|
-
} }, B = function(I,
|
10595
|
+
var R = ["th", "st", "nd", "rd"], U = I % 100;
|
10596
|
+
return "[" + I + (R[(U - 20) % 10] || R[U] || R[0]) + "]";
|
10597
|
+
} }, B = function(I, R, U) {
|
10598
10598
|
var W = String(I);
|
10599
|
-
return !W || W.length >=
|
10599
|
+
return !W || W.length >= R ? I : "" + Array(R + 1 - W.length).join(U) + I;
|
10600
10600
|
}, K = { s: B, z: function(I) {
|
10601
|
-
var
|
10602
|
-
return (
|
10603
|
-
}, m: function I(
|
10604
|
-
if (
|
10605
|
-
var W = 12 * (U.year() -
|
10601
|
+
var R = -I.utcOffset(), U = Math.abs(R), W = Math.floor(U / 60), q = U % 60;
|
10602
|
+
return (R <= 0 ? "+" : "-") + B(W, 2, "0") + ":" + B(q, 2, "0");
|
10603
|
+
}, m: function I(R, U) {
|
10604
|
+
if (R.date() < U.date()) return -I(U, R);
|
10605
|
+
var W = 12 * (U.year() - R.year()) + (U.month() - R.month()), q = R.clone().add(W, h), Y = U - q < 0, g = R.clone().add(W + (Y ? -1 : 1), h);
|
10606
10606
|
return +(-(W + (U - q) / (Y ? q - g : g - q)) || 0);
|
10607
10607
|
}, a: function(I) {
|
10608
10608
|
return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
|
@@ -10613,34 +10613,34 @@ function I2() {
|
|
10613
10613
|
} }, w = "en", y = {};
|
10614
10614
|
y[w] = M;
|
10615
10615
|
var k = "$isDayjsObject", G = function(I) {
|
10616
|
-
return I instanceof
|
10617
|
-
}, F = function I(
|
10616
|
+
return I instanceof $ || !(!I || !I[k]);
|
10617
|
+
}, F = function I(R, U, W) {
|
10618
10618
|
var q;
|
10619
|
-
if (!
|
10620
|
-
if (typeof
|
10621
|
-
var Y =
|
10619
|
+
if (!R) return w;
|
10620
|
+
if (typeof R == "string") {
|
10621
|
+
var Y = R.toLowerCase();
|
10622
10622
|
y[Y] && (q = Y), U && (y[Y] = U, q = Y);
|
10623
|
-
var g =
|
10623
|
+
var g = R.split("-");
|
10624
10624
|
if (!q && g.length > 1) return I(g[0]);
|
10625
10625
|
} else {
|
10626
|
-
var
|
10627
|
-
y[
|
10626
|
+
var ne = R.name;
|
10627
|
+
y[ne] = R, q = ne;
|
10628
10628
|
}
|
10629
10629
|
return !W && q && (w = q), q || !W && w;
|
10630
|
-
}, Z = function(I,
|
10630
|
+
}, Z = function(I, R) {
|
10631
10631
|
if (G(I)) return I.clone();
|
10632
|
-
var U = typeof
|
10633
|
-
return U.date = I, U.args = arguments, new
|
10632
|
+
var U = typeof R == "object" ? R : {};
|
10633
|
+
return U.date = I, U.args = arguments, new $(U);
|
10634
10634
|
}, z = K;
|
10635
|
-
z.l = F, z.i = G, z.w = function(I,
|
10636
|
-
return Z(I, { locale:
|
10635
|
+
z.l = F, z.i = G, z.w = function(I, R) {
|
10636
|
+
return Z(I, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
|
10637
10637
|
};
|
10638
|
-
var
|
10638
|
+
var $ = function() {
|
10639
10639
|
function I(U) {
|
10640
10640
|
this.$L = F(U.locale, null, !0), this.parse(U), this.$x = this.$x || U.x || {}, this[k] = !0;
|
10641
10641
|
}
|
10642
|
-
var
|
10643
|
-
return
|
10642
|
+
var R = I.prototype;
|
10643
|
+
return R.parse = function(U) {
|
10644
10644
|
this.$d = function(W) {
|
10645
10645
|
var q = W.date, Y = W.utc;
|
10646
10646
|
if (q === null) return /* @__PURE__ */ new Date(NaN);
|
@@ -10649,47 +10649,47 @@ function I2() {
|
|
10649
10649
|
if (typeof q == "string" && !/Z$/i.test(q)) {
|
10650
10650
|
var g = q.match(_);
|
10651
10651
|
if (g) {
|
10652
|
-
var
|
10653
|
-
return Y ? new Date(Date.UTC(g[1],
|
10652
|
+
var ne = g[2] - 1 || 0, oe = (g[7] || "0").substring(0, 3);
|
10653
|
+
return Y ? new Date(Date.UTC(g[1], ne, g[3] || 1, g[4] || 0, g[5] || 0, g[6] || 0, oe)) : new Date(g[1], ne, g[3] || 1, g[4] || 0, g[5] || 0, g[6] || 0, oe);
|
10654
10654
|
}
|
10655
10655
|
}
|
10656
10656
|
return new Date(q);
|
10657
10657
|
}(U), this.init();
|
10658
|
-
},
|
10658
|
+
}, R.init = function() {
|
10659
10659
|
var U = this.$d;
|
10660
10660
|
this.$y = U.getFullYear(), this.$M = U.getMonth(), this.$D = U.getDate(), this.$W = U.getDay(), this.$H = U.getHours(), this.$m = U.getMinutes(), this.$s = U.getSeconds(), this.$ms = U.getMilliseconds();
|
10661
|
-
},
|
10661
|
+
}, R.$utils = function() {
|
10662
10662
|
return z;
|
10663
|
-
},
|
10663
|
+
}, R.isValid = function() {
|
10664
10664
|
return this.$d.toString() !== m;
|
10665
|
-
},
|
10665
|
+
}, R.isSame = function(U, W) {
|
10666
10666
|
var q = Z(U);
|
10667
10667
|
return this.startOf(W) <= q && q <= this.endOf(W);
|
10668
|
-
},
|
10668
|
+
}, R.isAfter = function(U, W) {
|
10669
10669
|
return Z(U) < this.startOf(W);
|
10670
|
-
},
|
10670
|
+
}, R.isBefore = function(U, W) {
|
10671
10671
|
return this.endOf(W) < Z(U);
|
10672
|
-
},
|
10672
|
+
}, R.$g = function(U, W, q) {
|
10673
10673
|
return z.u(U) ? this[W] : this.set(q, U);
|
10674
|
-
},
|
10674
|
+
}, R.unix = function() {
|
10675
10675
|
return Math.floor(this.valueOf() / 1e3);
|
10676
|
-
},
|
10676
|
+
}, R.valueOf = function() {
|
10677
10677
|
return this.$d.getTime();
|
10678
|
-
},
|
10679
|
-
var q = this, Y = !!z.u(W) || W, g = z.p(U),
|
10680
|
-
var We = z.w(q.$u ? Date.UTC(q.$y, Oe,
|
10678
|
+
}, R.startOf = function(U, W) {
|
10679
|
+
var q = this, Y = !!z.u(W) || W, g = z.p(U), ne = function(Be, Oe) {
|
10680
|
+
var We = z.w(q.$u ? Date.UTC(q.$y, Oe, Be) : new Date(q.$y, Oe, Be), q);
|
10681
10681
|
return Y ? We : We.endOf(c);
|
10682
|
-
}, oe = function(
|
10683
|
-
return z.w(q.toDate()[
|
10684
|
-
}, S = this.$W, le = this.$M,
|
10682
|
+
}, oe = function(Be, Oe) {
|
10683
|
+
return z.w(q.toDate()[Be].apply(q.toDate("s"), (Y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Oe)), q);
|
10684
|
+
}, S = this.$W, le = this.$M, Te = this.$D, me = "set" + (this.$u ? "UTC" : "");
|
10685
10685
|
switch (g) {
|
10686
10686
|
case f:
|
10687
|
-
return Y ?
|
10687
|
+
return Y ? ne(1, 0) : ne(31, 11);
|
10688
10688
|
case h:
|
10689
|
-
return Y ?
|
10689
|
+
return Y ? ne(1, le) : ne(0, le + 1);
|
10690
10690
|
case d:
|
10691
|
-
var
|
10692
|
-
return
|
10691
|
+
var xe = this.$locale().weekStart || 0, ve = (S < xe ? S + 7 : S) - xe;
|
10692
|
+
return ne(Y ? Te - ve : Te + (6 - ve), le);
|
10693
10693
|
case c:
|
10694
10694
|
case b:
|
10695
10695
|
return oe(me + "Hours", 0);
|
@@ -10702,42 +10702,42 @@ function I2() {
|
|
10702
10702
|
default:
|
10703
10703
|
return this.clone();
|
10704
10704
|
}
|
10705
|
-
},
|
10705
|
+
}, R.endOf = function(U) {
|
10706
10706
|
return this.startOf(U, !1);
|
10707
|
-
},
|
10708
|
-
var q, Y = z.p(U), g = "set" + (this.$u ? "UTC" : ""),
|
10707
|
+
}, R.$set = function(U, W) {
|
10708
|
+
var q, Y = z.p(U), g = "set" + (this.$u ? "UTC" : ""), ne = (q = {}, q[c] = g + "Date", q[b] = g + "Date", q[h] = g + "Month", q[f] = g + "FullYear", q[l] = g + "Hours", q[s] = g + "Minutes", q[u] = g + "Seconds", q[i] = g + "Milliseconds", q)[Y], oe = Y === c ? this.$D + (W - this.$W) : W;
|
10709
10709
|
if (Y === h || Y === f) {
|
10710
10710
|
var S = this.clone().set(b, 1);
|
10711
|
-
S.$d[
|
10712
|
-
} else
|
10711
|
+
S.$d[ne](oe), S.init(), this.$d = S.set(b, Math.min(this.$D, S.daysInMonth())).$d;
|
10712
|
+
} else ne && this.$d[ne](oe);
|
10713
10713
|
return this.init(), this;
|
10714
|
-
},
|
10714
|
+
}, R.set = function(U, W) {
|
10715
10715
|
return this.clone().$set(U, W);
|
10716
|
-
},
|
10716
|
+
}, R.get = function(U) {
|
10717
10717
|
return this[z.p(U)]();
|
10718
|
-
},
|
10718
|
+
}, R.add = function(U, W) {
|
10719
10719
|
var q, Y = this;
|
10720
10720
|
U = Number(U);
|
10721
|
-
var g = z.p(W),
|
10722
|
-
var
|
10723
|
-
return z.w(
|
10721
|
+
var g = z.p(W), ne = function(le) {
|
10722
|
+
var Te = Z(Y);
|
10723
|
+
return z.w(Te.date(Te.date() + Math.round(le * U)), Y);
|
10724
10724
|
};
|
10725
10725
|
if (g === h) return this.set(h, this.$M + U);
|
10726
10726
|
if (g === f) return this.set(f, this.$y + U);
|
10727
|
-
if (g === c) return
|
10728
|
-
if (g === d) return
|
10727
|
+
if (g === c) return ne(1);
|
10728
|
+
if (g === d) return ne(7);
|
10729
10729
|
var oe = (q = {}, q[s] = r, q[l] = a, q[u] = n, q)[g] || 1, S = this.$d.getTime() + U * oe;
|
10730
10730
|
return z.w(S, this);
|
10731
|
-
},
|
10731
|
+
}, R.subtract = function(U, W) {
|
10732
10732
|
return this.add(-1 * U, W);
|
10733
|
-
},
|
10733
|
+
}, R.format = function(U) {
|
10734
10734
|
var W = this, q = this.$locale();
|
10735
10735
|
if (!this.isValid()) return q.invalidDate || m;
|
10736
|
-
var Y = U || "YYYY-MM-DDTHH:mm:ssZ", g = z.z(this),
|
10736
|
+
var Y = U || "YYYY-MM-DDTHH:mm:ssZ", g = z.z(this), ne = this.$H, oe = this.$m, S = this.$M, le = q.weekdays, Te = q.months, me = q.meridiem, xe = function(Oe, We, at, _t) {
|
10737
10737
|
return Oe && (Oe[We] || Oe(W, Y)) || at[We].slice(0, _t);
|
10738
10738
|
}, ve = function(Oe) {
|
10739
|
-
return z.s(
|
10740
|
-
},
|
10739
|
+
return z.s(ne % 12 || 12, Oe, "0");
|
10740
|
+
}, Be = me || function(Oe, We, at) {
|
10741
10741
|
var _t = Oe < 12 ? "AM" : "PM";
|
10742
10742
|
return at ? _t.toLowerCase() : _t;
|
10743
10743
|
};
|
@@ -10753,9 +10753,9 @@ function I2() {
|
|
10753
10753
|
case "MM":
|
10754
10754
|
return z.s(S + 1, 2, "0");
|
10755
10755
|
case "MMM":
|
10756
|
-
return
|
10756
|
+
return xe(q.monthsShort, S, Te, 3);
|
10757
10757
|
case "MMMM":
|
10758
|
-
return
|
10758
|
+
return xe(Te, S);
|
10759
10759
|
case "D":
|
10760
10760
|
return W.$D;
|
10761
10761
|
case "DD":
|
@@ -10763,23 +10763,23 @@ function I2() {
|
|
10763
10763
|
case "d":
|
10764
10764
|
return String(W.$W);
|
10765
10765
|
case "dd":
|
10766
|
-
return
|
10766
|
+
return xe(q.weekdaysMin, W.$W, le, 2);
|
10767
10767
|
case "ddd":
|
10768
|
-
return
|
10768
|
+
return xe(q.weekdaysShort, W.$W, le, 3);
|
10769
10769
|
case "dddd":
|
10770
10770
|
return le[W.$W];
|
10771
10771
|
case "H":
|
10772
|
-
return String(
|
10772
|
+
return String(ne);
|
10773
10773
|
case "HH":
|
10774
|
-
return z.s(
|
10774
|
+
return z.s(ne, 2, "0");
|
10775
10775
|
case "h":
|
10776
10776
|
return ve(1);
|
10777
10777
|
case "hh":
|
10778
10778
|
return ve(2);
|
10779
10779
|
case "a":
|
10780
|
-
return
|
10780
|
+
return Be(ne, oe, !0);
|
10781
10781
|
case "A":
|
10782
|
-
return
|
10782
|
+
return Be(ne, oe, !1);
|
10783
10783
|
case "m":
|
10784
10784
|
return String(oe);
|
10785
10785
|
case "mm":
|
@@ -10796,21 +10796,21 @@ function I2() {
|
|
10796
10796
|
return null;
|
10797
10797
|
}(Oe) || g.replace(":", "");
|
10798
10798
|
});
|
10799
|
-
},
|
10799
|
+
}, R.utcOffset = function() {
|
10800
10800
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
10801
|
-
},
|
10802
|
-
var Y, g = this,
|
10801
|
+
}, R.diff = function(U, W, q) {
|
10802
|
+
var Y, g = this, ne = z.p(W), oe = Z(U), S = (oe.utcOffset() - this.utcOffset()) * r, le = this - oe, Te = function() {
|
10803
10803
|
return z.m(g, oe);
|
10804
10804
|
};
|
10805
|
-
switch (
|
10805
|
+
switch (ne) {
|
10806
10806
|
case f:
|
10807
|
-
Y =
|
10807
|
+
Y = Te() / 12;
|
10808
10808
|
break;
|
10809
10809
|
case h:
|
10810
|
-
Y =
|
10810
|
+
Y = Te();
|
10811
10811
|
break;
|
10812
10812
|
case p:
|
10813
|
-
Y =
|
10813
|
+
Y = Te() / 3;
|
10814
10814
|
break;
|
10815
10815
|
case d:
|
10816
10816
|
Y = (le - S) / 6048e5;
|
@@ -10831,32 +10831,32 @@ function I2() {
|
|
10831
10831
|
Y = le;
|
10832
10832
|
}
|
10833
10833
|
return q ? Y : z.a(Y);
|
10834
|
-
},
|
10834
|
+
}, R.daysInMonth = function() {
|
10835
10835
|
return this.endOf(h).$D;
|
10836
|
-
},
|
10836
|
+
}, R.$locale = function() {
|
10837
10837
|
return y[this.$L];
|
10838
|
-
},
|
10838
|
+
}, R.locale = function(U, W) {
|
10839
10839
|
if (!U) return this.$L;
|
10840
10840
|
var q = this.clone(), Y = F(U, W, !0);
|
10841
10841
|
return Y && (q.$L = Y), q;
|
10842
|
-
},
|
10842
|
+
}, R.clone = function() {
|
10843
10843
|
return z.w(this.$d, this);
|
10844
|
-
},
|
10844
|
+
}, R.toDate = function() {
|
10845
10845
|
return new Date(this.valueOf());
|
10846
|
-
},
|
10846
|
+
}, R.toJSON = function() {
|
10847
10847
|
return this.isValid() ? this.toISOString() : null;
|
10848
|
-
},
|
10848
|
+
}, R.toISOString = function() {
|
10849
10849
|
return this.$d.toISOString();
|
10850
|
-
},
|
10850
|
+
}, R.toString = function() {
|
10851
10851
|
return this.$d.toUTCString();
|
10852
10852
|
}, I;
|
10853
|
-
}(),
|
10854
|
-
return Z.prototype =
|
10855
|
-
|
10856
|
-
return this.$g(
|
10853
|
+
}(), L = $.prototype;
|
10854
|
+
return Z.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", h], ["$y", f], ["$D", b]].forEach(function(I) {
|
10855
|
+
L[I[1]] = function(R) {
|
10856
|
+
return this.$g(R, I[0], I[1]);
|
10857
10857
|
};
|
10858
|
-
}), Z.extend = function(I,
|
10859
|
-
return I.$i || (I(
|
10858
|
+
}), Z.extend = function(I, R) {
|
10859
|
+
return I.$i || (I(R, $, Z), I.$i = !0), Z;
|
10860
10860
|
}, Z.locale = F, Z.isDayjs = G, Z.unix = function(I) {
|
10861
10861
|
return Z(1e3 * I);
|
10862
10862
|
}, Z.en = y[w], Z.Ls = y, Z.p = {}, Z;
|
@@ -11101,14 +11101,14 @@ nt.prototype.property = "";
|
|
11101
11101
|
nt.prototype.spaceSeparated = !1;
|
11102
11102
|
nt.prototype.space = void 0;
|
11103
11103
|
let H2 = 0;
|
11104
|
-
const he = on(),
|
11104
|
+
const he = on(), ze = on(), Gl = on(), ee = on(), ke = on(), An = on(), ct = on();
|
11105
11105
|
function on() {
|
11106
11106
|
return 2 ** ++H2;
|
11107
11107
|
}
|
11108
11108
|
const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
11109
11109
|
__proto__: null,
|
11110
11110
|
boolean: he,
|
11111
|
-
booleanish:
|
11111
|
+
booleanish: ze,
|
11112
11112
|
commaOrSpaceSeparated: ct,
|
11113
11113
|
commaSeparated: An,
|
11114
11114
|
number: ee,
|
@@ -11161,10 +11161,10 @@ function Nn(e) {
|
|
11161
11161
|
const Xl = Nn({
|
11162
11162
|
properties: {
|
11163
11163
|
ariaActiveDescendant: null,
|
11164
|
-
ariaAtomic:
|
11164
|
+
ariaAtomic: ze,
|
11165
11165
|
ariaAutoComplete: null,
|
11166
|
-
ariaBusy:
|
11167
|
-
ariaChecked:
|
11166
|
+
ariaBusy: ze,
|
11167
|
+
ariaChecked: ze,
|
11168
11168
|
ariaColCount: ee,
|
11169
11169
|
ariaColIndex: ee,
|
11170
11170
|
ariaColSpan: ee,
|
@@ -11172,36 +11172,36 @@ const Xl = Nn({
|
|
11172
11172
|
ariaCurrent: null,
|
11173
11173
|
ariaDescribedBy: ke,
|
11174
11174
|
ariaDetails: null,
|
11175
|
-
ariaDisabled:
|
11175
|
+
ariaDisabled: ze,
|
11176
11176
|
ariaDropEffect: ke,
|
11177
11177
|
ariaErrorMessage: null,
|
11178
|
-
ariaExpanded:
|
11178
|
+
ariaExpanded: ze,
|
11179
11179
|
ariaFlowTo: ke,
|
11180
|
-
ariaGrabbed:
|
11180
|
+
ariaGrabbed: ze,
|
11181
11181
|
ariaHasPopup: null,
|
11182
|
-
ariaHidden:
|
11182
|
+
ariaHidden: ze,
|
11183
11183
|
ariaInvalid: null,
|
11184
11184
|
ariaKeyShortcuts: null,
|
11185
11185
|
ariaLabel: null,
|
11186
11186
|
ariaLabelledBy: ke,
|
11187
11187
|
ariaLevel: ee,
|
11188
11188
|
ariaLive: null,
|
11189
|
-
ariaModal:
|
11190
|
-
ariaMultiLine:
|
11191
|
-
ariaMultiSelectable:
|
11189
|
+
ariaModal: ze,
|
11190
|
+
ariaMultiLine: ze,
|
11191
|
+
ariaMultiSelectable: ze,
|
11192
11192
|
ariaOrientation: null,
|
11193
11193
|
ariaOwns: ke,
|
11194
11194
|
ariaPlaceholder: null,
|
11195
11195
|
ariaPosInSet: ee,
|
11196
|
-
ariaPressed:
|
11197
|
-
ariaReadOnly:
|
11196
|
+
ariaPressed: ze,
|
11197
|
+
ariaReadOnly: ze,
|
11198
11198
|
ariaRelevant: null,
|
11199
|
-
ariaRequired:
|
11199
|
+
ariaRequired: ze,
|
11200
11200
|
ariaRoleDescription: ke,
|
11201
11201
|
ariaRowCount: ee,
|
11202
11202
|
ariaRowIndex: ee,
|
11203
11203
|
ariaRowSpan: ee,
|
11204
|
-
ariaSelected:
|
11204
|
+
ariaSelected: ze,
|
11205
11205
|
ariaSetSize: ee,
|
11206
11206
|
ariaSort: null,
|
11207
11207
|
ariaValueMax: ee,
|
@@ -11255,7 +11255,7 @@ const U2 = Nn({
|
|
11255
11255
|
cols: ee,
|
11256
11256
|
colSpan: null,
|
11257
11257
|
content: null,
|
11258
|
-
contentEditable:
|
11258
|
+
contentEditable: ze,
|
11259
11259
|
controls: he,
|
11260
11260
|
controlsList: ke,
|
11261
11261
|
coords: ee | An,
|
@@ -11269,7 +11269,7 @@ const U2 = Nn({
|
|
11269
11269
|
dirName: null,
|
11270
11270
|
disabled: he,
|
11271
11271
|
download: Gl,
|
11272
|
-
draggable:
|
11272
|
+
draggable: ze,
|
11273
11273
|
encType: null,
|
11274
11274
|
enterKeyHint: null,
|
11275
11275
|
fetchPriority: null,
|
@@ -11440,7 +11440,7 @@ const U2 = Nn({
|
|
11440
11440
|
sizes: null,
|
11441
11441
|
slot: null,
|
11442
11442
|
span: ee,
|
11443
|
-
spellCheck:
|
11443
|
+
spellCheck: ze,
|
11444
11444
|
src: null,
|
11445
11445
|
srcDoc: null,
|
11446
11446
|
srcLang: null,
|
@@ -11455,7 +11455,7 @@ const U2 = Nn({
|
|
11455
11455
|
type: null,
|
11456
11456
|
typeMustMatch: he,
|
11457
11457
|
useMap: null,
|
11458
|
-
value:
|
11458
|
+
value: ze,
|
11459
11459
|
width: ee,
|
11460
11460
|
wrap: null,
|
11461
11461
|
writingSuggestions: null,
|
@@ -11547,7 +11547,7 @@ const U2 = Nn({
|
|
11547
11547
|
// `<table>`
|
11548
11548
|
scheme: null,
|
11549
11549
|
// `<meta>`
|
11550
|
-
scrolling:
|
11550
|
+
scrolling: ze,
|
11551
11551
|
// `<frame>`. Use overflow in the child context
|
11552
11552
|
standby: null,
|
11553
11553
|
// `<object>`
|
@@ -12407,14 +12407,14 @@ rt.prototype.property = "";
|
|
12407
12407
|
rt.prototype.spaceSeparated = !1;
|
12408
12408
|
rt.prototype.space = void 0;
|
12409
12409
|
let rg = 0;
|
12410
|
-
const pe = sn(),
|
12410
|
+
const pe = sn(), Ye = sn(), rc = sn(), te = sn(), Le = sn(), Sn = sn(), dt = sn();
|
12411
12411
|
function sn() {
|
12412
12412
|
return 2 ** ++rg;
|
12413
12413
|
}
|
12414
12414
|
const yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
12415
12415
|
__proto__: null,
|
12416
12416
|
boolean: pe,
|
12417
|
-
booleanish:
|
12417
|
+
booleanish: Ye,
|
12418
12418
|
commaOrSpaceSeparated: dt,
|
12419
12419
|
commaSeparated: Sn,
|
12420
12420
|
number: te,
|
@@ -12467,10 +12467,10 @@ function kn(e) {
|
|
12467
12467
|
const ac = kn({
|
12468
12468
|
properties: {
|
12469
12469
|
ariaActiveDescendant: null,
|
12470
|
-
ariaAtomic:
|
12470
|
+
ariaAtomic: Ye,
|
12471
12471
|
ariaAutoComplete: null,
|
12472
|
-
ariaBusy:
|
12473
|
-
ariaChecked:
|
12472
|
+
ariaBusy: Ye,
|
12473
|
+
ariaChecked: Ye,
|
12474
12474
|
ariaColCount: te,
|
12475
12475
|
ariaColIndex: te,
|
12476
12476
|
ariaColSpan: te,
|
@@ -12478,36 +12478,36 @@ const ac = kn({
|
|
12478
12478
|
ariaCurrent: null,
|
12479
12479
|
ariaDescribedBy: Le,
|
12480
12480
|
ariaDetails: null,
|
12481
|
-
ariaDisabled:
|
12481
|
+
ariaDisabled: Ye,
|
12482
12482
|
ariaDropEffect: Le,
|
12483
12483
|
ariaErrorMessage: null,
|
12484
|
-
ariaExpanded:
|
12484
|
+
ariaExpanded: Ye,
|
12485
12485
|
ariaFlowTo: Le,
|
12486
|
-
ariaGrabbed:
|
12486
|
+
ariaGrabbed: Ye,
|
12487
12487
|
ariaHasPopup: null,
|
12488
|
-
ariaHidden:
|
12488
|
+
ariaHidden: Ye,
|
12489
12489
|
ariaInvalid: null,
|
12490
12490
|
ariaKeyShortcuts: null,
|
12491
12491
|
ariaLabel: null,
|
12492
12492
|
ariaLabelledBy: Le,
|
12493
12493
|
ariaLevel: te,
|
12494
12494
|
ariaLive: null,
|
12495
|
-
ariaModal:
|
12496
|
-
ariaMultiLine:
|
12497
|
-
ariaMultiSelectable:
|
12495
|
+
ariaModal: Ye,
|
12496
|
+
ariaMultiLine: Ye,
|
12497
|
+
ariaMultiSelectable: Ye,
|
12498
12498
|
ariaOrientation: null,
|
12499
12499
|
ariaOwns: Le,
|
12500
12500
|
ariaPlaceholder: null,
|
12501
12501
|
ariaPosInSet: te,
|
12502
|
-
ariaPressed:
|
12503
|
-
ariaReadOnly:
|
12502
|
+
ariaPressed: Ye,
|
12503
|
+
ariaReadOnly: Ye,
|
12504
12504
|
ariaRelevant: null,
|
12505
|
-
ariaRequired:
|
12505
|
+
ariaRequired: Ye,
|
12506
12506
|
ariaRoleDescription: Le,
|
12507
12507
|
ariaRowCount: te,
|
12508
12508
|
ariaRowIndex: te,
|
12509
12509
|
ariaRowSpan: te,
|
12510
|
-
ariaSelected:
|
12510
|
+
ariaSelected: Ye,
|
12511
12511
|
ariaSetSize: te,
|
12512
12512
|
ariaSort: null,
|
12513
12513
|
ariaValueMax: te,
|
@@ -12561,7 +12561,7 @@ const ag = kn({
|
|
12561
12561
|
cols: te,
|
12562
12562
|
colSpan: null,
|
12563
12563
|
content: null,
|
12564
|
-
contentEditable:
|
12564
|
+
contentEditable: Ye,
|
12565
12565
|
controls: pe,
|
12566
12566
|
controlsList: Le,
|
12567
12567
|
coords: te | Sn,
|
@@ -12575,7 +12575,7 @@ const ag = kn({
|
|
12575
12575
|
dirName: null,
|
12576
12576
|
disabled: pe,
|
12577
12577
|
download: rc,
|
12578
|
-
draggable:
|
12578
|
+
draggable: Ye,
|
12579
12579
|
encType: null,
|
12580
12580
|
enterKeyHint: null,
|
12581
12581
|
fetchPriority: null,
|
@@ -12746,7 +12746,7 @@ const ag = kn({
|
|
12746
12746
|
sizes: null,
|
12747
12747
|
slot: null,
|
12748
12748
|
span: te,
|
12749
|
-
spellCheck:
|
12749
|
+
spellCheck: Ye,
|
12750
12750
|
src: null,
|
12751
12751
|
srcDoc: null,
|
12752
12752
|
srcLang: null,
|
@@ -12761,7 +12761,7 @@ const ag = kn({
|
|
12761
12761
|
type: null,
|
12762
12762
|
typeMustMatch: pe,
|
12763
12763
|
useMap: null,
|
12764
|
-
value:
|
12764
|
+
value: Ye,
|
12765
12765
|
width: te,
|
12766
12766
|
wrap: null,
|
12767
12767
|
writingSuggestions: null,
|
@@ -12853,7 +12853,7 @@ const ag = kn({
|
|
12853
12853
|
// `<table>`
|
12854
12854
|
scheme: null,
|
12855
12855
|
// `<meta>`
|
12856
|
-
scrolling:
|
12856
|
+
scrolling: Ye,
|
12857
12857
|
// `<frame>`. Use overflow in the child context
|
12858
12858
|
standby: null,
|
12859
12859
|
// `<object>`
|
@@ -13860,7 +13860,7 @@ const vg = [
|
|
13860
13860
|
1048575,
|
13861
13861
|
1114110,
|
13862
13862
|
1114111
|
13863
|
-
]),
|
13863
|
+
]), Fe = "�";
|
13864
13864
|
var E;
|
13865
13865
|
(function(e) {
|
13866
13866
|
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";
|
@@ -14539,7 +14539,7 @@ var C;
|
|
14539
14539
|
(function(e) {
|
14540
14540
|
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";
|
14541
14541
|
})(C || (C = {}));
|
14542
|
-
const
|
14542
|
+
const je = {
|
14543
14543
|
DATA: C.DATA,
|
14544
14544
|
RCDATA: C.RCDATA,
|
14545
14545
|
RAWTEXT: C.RAWTEXT,
|
@@ -15127,7 +15127,7 @@ class Vg {
|
|
15127
15127
|
break;
|
15128
15128
|
}
|
15129
15129
|
case E.NULL: {
|
15130
|
-
this._err(j.unexpectedNullCharacter), this._emitChars(
|
15130
|
+
this._err(j.unexpectedNullCharacter), this._emitChars(Fe);
|
15131
15131
|
break;
|
15132
15132
|
}
|
15133
15133
|
case E.EOF: {
|
@@ -15147,7 +15147,7 @@ class Vg {
|
|
15147
15147
|
break;
|
15148
15148
|
}
|
15149
15149
|
case E.NULL: {
|
15150
|
-
this._err(j.unexpectedNullCharacter), this._emitChars(
|
15150
|
+
this._err(j.unexpectedNullCharacter), this._emitChars(Fe);
|
15151
15151
|
break;
|
15152
15152
|
}
|
15153
15153
|
case E.EOF: {
|
@@ -15167,7 +15167,7 @@ class Vg {
|
|
15167
15167
|
break;
|
15168
15168
|
}
|
15169
15169
|
case E.NULL: {
|
15170
|
-
this._err(j.unexpectedNullCharacter), this._emitChars(
|
15170
|
+
this._err(j.unexpectedNullCharacter), this._emitChars(Fe);
|
15171
15171
|
break;
|
15172
15172
|
}
|
15173
15173
|
case E.EOF: {
|
@@ -15183,7 +15183,7 @@ class Vg {
|
|
15183
15183
|
_statePlaintext(t) {
|
15184
15184
|
switch (t) {
|
15185
15185
|
case E.NULL: {
|
15186
|
-
this._err(j.unexpectedNullCharacter), this._emitChars(
|
15186
|
+
this._err(j.unexpectedNullCharacter), this._emitChars(Fe);
|
15187
15187
|
break;
|
15188
15188
|
}
|
15189
15189
|
case E.EOF: {
|
@@ -15261,7 +15261,7 @@ class Vg {
|
|
15261
15261
|
break;
|
15262
15262
|
}
|
15263
15263
|
case E.NULL: {
|
15264
|
-
this._err(j.unexpectedNullCharacter), n.tagName +=
|
15264
|
+
this._err(j.unexpectedNullCharacter), n.tagName += Fe;
|
15265
15265
|
break;
|
15266
15266
|
}
|
15267
15267
|
case E.EOF: {
|
@@ -15370,7 +15370,7 @@ class Vg {
|
|
15370
15370
|
break;
|
15371
15371
|
}
|
15372
15372
|
case E.NULL: {
|
15373
|
-
this._err(j.unexpectedNullCharacter), this._emitChars(
|
15373
|
+
this._err(j.unexpectedNullCharacter), this._emitChars(Fe);
|
15374
15374
|
break;
|
15375
15375
|
}
|
15376
15376
|
case E.EOF: {
|
@@ -15394,7 +15394,7 @@ class Vg {
|
|
15394
15394
|
break;
|
15395
15395
|
}
|
15396
15396
|
case E.NULL: {
|
15397
|
-
this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(
|
15397
|
+
this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(Fe);
|
15398
15398
|
break;
|
15399
15399
|
}
|
15400
15400
|
case E.EOF: {
|
@@ -15422,7 +15422,7 @@ class Vg {
|
|
15422
15422
|
break;
|
15423
15423
|
}
|
15424
15424
|
case E.NULL: {
|
15425
|
-
this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(
|
15425
|
+
this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(Fe);
|
15426
15426
|
break;
|
15427
15427
|
}
|
15428
15428
|
case E.EOF: {
|
@@ -15471,7 +15471,7 @@ class Vg {
|
|
15471
15471
|
break;
|
15472
15472
|
}
|
15473
15473
|
case E.NULL: {
|
15474
|
-
this._err(j.unexpectedNullCharacter), this._emitChars(
|
15474
|
+
this._err(j.unexpectedNullCharacter), this._emitChars(Fe);
|
15475
15475
|
break;
|
15476
15476
|
}
|
15477
15477
|
case E.EOF: {
|
@@ -15495,7 +15495,7 @@ class Vg {
|
|
15495
15495
|
break;
|
15496
15496
|
}
|
15497
15497
|
case E.NULL: {
|
15498
|
-
this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(
|
15498
|
+
this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(Fe);
|
15499
15499
|
break;
|
15500
15500
|
}
|
15501
15501
|
case E.EOF: {
|
@@ -15523,7 +15523,7 @@ class Vg {
|
|
15523
15523
|
break;
|
15524
15524
|
}
|
15525
15525
|
case E.NULL: {
|
15526
|
-
this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(
|
15526
|
+
this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(Fe);
|
15527
15527
|
break;
|
15528
15528
|
}
|
15529
15529
|
case E.EOF: {
|
@@ -15597,7 +15597,7 @@ class Vg {
|
|
15597
15597
|
break;
|
15598
15598
|
}
|
15599
15599
|
case E.NULL: {
|
15600
|
-
this._err(j.unexpectedNullCharacter), this.currentAttr.name +=
|
15600
|
+
this._err(j.unexpectedNullCharacter), this.currentAttr.name += Fe;
|
15601
15601
|
break;
|
15602
15602
|
}
|
15603
15603
|
default:
|
@@ -15671,7 +15671,7 @@ class Vg {
|
|
15671
15671
|
break;
|
15672
15672
|
}
|
15673
15673
|
case E.NULL: {
|
15674
|
-
this._err(j.unexpectedNullCharacter), this.currentAttr.value +=
|
15674
|
+
this._err(j.unexpectedNullCharacter), this.currentAttr.value += Fe;
|
15675
15675
|
break;
|
15676
15676
|
}
|
15677
15677
|
case E.EOF: {
|
@@ -15695,7 +15695,7 @@ class Vg {
|
|
15695
15695
|
break;
|
15696
15696
|
}
|
15697
15697
|
case E.NULL: {
|
15698
|
-
this._err(j.unexpectedNullCharacter), this.currentAttr.value +=
|
15698
|
+
this._err(j.unexpectedNullCharacter), this.currentAttr.value += Fe;
|
15699
15699
|
break;
|
15700
15700
|
}
|
15701
15701
|
case E.EOF: {
|
@@ -15726,7 +15726,7 @@ class Vg {
|
|
15726
15726
|
break;
|
15727
15727
|
}
|
15728
15728
|
case E.NULL: {
|
15729
|
-
this._err(j.unexpectedNullCharacter), this.currentAttr.value +=
|
15729
|
+
this._err(j.unexpectedNullCharacter), this.currentAttr.value += Fe;
|
15730
15730
|
break;
|
15731
15731
|
}
|
15732
15732
|
case E.QUOTATION_MARK:
|
@@ -15803,7 +15803,7 @@ class Vg {
|
|
15803
15803
|
break;
|
15804
15804
|
}
|
15805
15805
|
case E.NULL: {
|
15806
|
-
this._err(j.unexpectedNullCharacter), n.data +=
|
15806
|
+
this._err(j.unexpectedNullCharacter), n.data += Fe;
|
15807
15807
|
break;
|
15808
15808
|
}
|
15809
15809
|
default:
|
@@ -15868,7 +15868,7 @@ class Vg {
|
|
15868
15868
|
break;
|
15869
15869
|
}
|
15870
15870
|
case E.NULL: {
|
15871
|
-
this._err(j.unexpectedNullCharacter), n.data +=
|
15871
|
+
this._err(j.unexpectedNullCharacter), n.data += Fe;
|
15872
15872
|
break;
|
15873
15873
|
}
|
15874
15874
|
case E.EOF: {
|
@@ -16012,7 +16012,7 @@ class Vg {
|
|
16012
16012
|
case E.FORM_FEED:
|
16013
16013
|
break;
|
16014
16014
|
case E.NULL: {
|
16015
|
-
this._err(j.unexpectedNullCharacter), this._createDoctypeToken(
|
16015
|
+
this._err(j.unexpectedNullCharacter), this._createDoctypeToken(Fe), this.state = C.DOCTYPE_NAME;
|
16016
16016
|
break;
|
16017
16017
|
}
|
16018
16018
|
case E.GREATER_THAN_SIGN: {
|
@@ -16048,7 +16048,7 @@ class Vg {
|
|
16048
16048
|
break;
|
16049
16049
|
}
|
16050
16050
|
case E.NULL: {
|
16051
|
-
this._err(j.unexpectedNullCharacter), n.name +=
|
16051
|
+
this._err(j.unexpectedNullCharacter), n.name += Fe;
|
16052
16052
|
break;
|
16053
16053
|
}
|
16054
16054
|
case E.EOF: {
|
@@ -16153,7 +16153,7 @@ class Vg {
|
|
16153
16153
|
break;
|
16154
16154
|
}
|
16155
16155
|
case E.NULL: {
|
16156
|
-
this._err(j.unexpectedNullCharacter), n.publicId +=
|
16156
|
+
this._err(j.unexpectedNullCharacter), n.publicId += Fe;
|
16157
16157
|
break;
|
16158
16158
|
}
|
16159
16159
|
case E.GREATER_THAN_SIGN: {
|
@@ -16178,7 +16178,7 @@ class Vg {
|
|
16178
16178
|
break;
|
16179
16179
|
}
|
16180
16180
|
case E.NULL: {
|
16181
|
-
this._err(j.unexpectedNullCharacter), n.publicId +=
|
16181
|
+
this._err(j.unexpectedNullCharacter), n.publicId += Fe;
|
16182
16182
|
break;
|
16183
16183
|
}
|
16184
16184
|
case E.GREATER_THAN_SIGN: {
|
@@ -16327,7 +16327,7 @@ class Vg {
|
|
16327
16327
|
break;
|
16328
16328
|
}
|
16329
16329
|
case E.NULL: {
|
16330
|
-
this._err(j.unexpectedNullCharacter), n.systemId +=
|
16330
|
+
this._err(j.unexpectedNullCharacter), n.systemId += Fe;
|
16331
16331
|
break;
|
16332
16332
|
}
|
16333
16333
|
case E.GREATER_THAN_SIGN: {
|
@@ -16352,7 +16352,7 @@ class Vg {
|
|
16352
16352
|
break;
|
16353
16353
|
}
|
16354
16354
|
case E.NULL: {
|
16355
|
-
this._err(j.unexpectedNullCharacter), n.systemId +=
|
16355
|
+
this._err(j.unexpectedNullCharacter), n.systemId += Fe;
|
16356
16356
|
break;
|
16357
16357
|
}
|
16358
16358
|
case E.GREATER_THAN_SIGN: {
|
@@ -17314,7 +17314,7 @@ class es {
|
|
17314
17314
|
this._insertElement(t, X.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = O.TEXT;
|
17315
17315
|
}
|
17316
17316
|
switchToPlaintextParsing() {
|
17317
|
-
this.insertionMode = O.TEXT, this.originalInsertionMode = O.IN_BODY, this.tokenizer.state =
|
17317
|
+
this.insertionMode = O.TEXT, this.originalInsertionMode = O.IN_BODY, this.tokenizer.state = je.PLAINTEXT;
|
17318
17318
|
}
|
17319
17319
|
//Fragment parsing
|
17320
17320
|
/** @protected */
|
@@ -17337,7 +17337,7 @@ class es {
|
|
17337
17337
|
switch (this.fragmentContextID) {
|
17338
17338
|
case o.TITLE:
|
17339
17339
|
case o.TEXTAREA: {
|
17340
|
-
this.tokenizer.state =
|
17340
|
+
this.tokenizer.state = je.RCDATA;
|
17341
17341
|
break;
|
17342
17342
|
}
|
17343
17343
|
case o.STYLE:
|
@@ -17346,15 +17346,15 @@ class es {
|
|
17346
17346
|
case o.NOEMBED:
|
17347
17347
|
case o.NOFRAMES:
|
17348
17348
|
case o.NOSCRIPT: {
|
17349
|
-
this.tokenizer.state =
|
17349
|
+
this.tokenizer.state = je.RAWTEXT;
|
17350
17350
|
break;
|
17351
17351
|
}
|
17352
17352
|
case o.SCRIPT: {
|
17353
|
-
this.tokenizer.state =
|
17353
|
+
this.tokenizer.state = je.SCRIPT_DATA;
|
17354
17354
|
break;
|
17355
17355
|
}
|
17356
17356
|
case o.PLAINTEXT: {
|
17357
|
-
this.tokenizer.state =
|
17357
|
+
this.tokenizer.state = je.PLAINTEXT;
|
17358
17358
|
break;
|
17359
17359
|
}
|
17360
17360
|
}
|
@@ -18279,20 +18279,20 @@ function At(e, t) {
|
|
18279
18279
|
break;
|
18280
18280
|
}
|
18281
18281
|
case o.TITLE: {
|
18282
|
-
e._switchToTextParsing(t,
|
18282
|
+
e._switchToTextParsing(t, je.RCDATA);
|
18283
18283
|
break;
|
18284
18284
|
}
|
18285
18285
|
case o.NOSCRIPT: {
|
18286
|
-
e.options.scriptingEnabled ? e._switchToTextParsing(t,
|
18286
|
+
e.options.scriptingEnabled ? e._switchToTextParsing(t, je.RAWTEXT) : (e._insertElement(t, X.HTML), e.insertionMode = O.IN_HEAD_NO_SCRIPT);
|
18287
18287
|
break;
|
18288
18288
|
}
|
18289
18289
|
case o.NOFRAMES:
|
18290
18290
|
case o.STYLE: {
|
18291
|
-
e._switchToTextParsing(t,
|
18291
|
+
e._switchToTextParsing(t, je.RAWTEXT);
|
18292
18292
|
break;
|
18293
18293
|
}
|
18294
18294
|
case o.SCRIPT: {
|
18295
|
-
e._switchToTextParsing(t,
|
18295
|
+
e._switchToTextParsing(t, je.SCRIPT_DATA);
|
18296
18296
|
break;
|
18297
18297
|
}
|
18298
18298
|
case o.TEMPLATE: {
|
@@ -18502,7 +18502,7 @@ function Gb(e, t) {
|
|
18502
18502
|
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML);
|
18503
18503
|
}
|
18504
18504
|
function Xb(e, t) {
|
18505
|
-
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), e.tokenizer.state =
|
18505
|
+
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), e.tokenizer.state = je.PLAINTEXT;
|
18506
18506
|
}
|
18507
18507
|
function Kb(e, t) {
|
18508
18508
|
e.openElements.hasInScope(o.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.framesetOk = !1;
|
@@ -18543,16 +18543,16 @@ function iE(e, t) {
|
|
18543
18543
|
t.tagName = P.IMG, t.tagID = o.IMG, Dc(e, t);
|
18544
18544
|
}
|
18545
18545
|
function uE(e, t) {
|
18546
|
-
e._insertElement(t, X.HTML), e.skipNextNewLine = !0, e.tokenizer.state =
|
18546
|
+
e._insertElement(t, X.HTML), e.skipNextNewLine = !0, e.tokenizer.state = je.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = O.TEXT;
|
18547
18547
|
}
|
18548
18548
|
function oE(e, t) {
|
18549
|
-
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t,
|
18549
|
+
e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, je.RAWTEXT);
|
18550
18550
|
}
|
18551
18551
|
function sE(e, t) {
|
18552
|
-
e.framesetOk = !1, e._switchToTextParsing(t,
|
18552
|
+
e.framesetOk = !1, e._switchToTextParsing(t, je.RAWTEXT);
|
18553
18553
|
}
|
18554
18554
|
function ts(e, t) {
|
18555
|
-
e._switchToTextParsing(t,
|
18555
|
+
e._switchToTextParsing(t, je.RAWTEXT);
|
18556
18556
|
}
|
18557
18557
|
function lE(e, t) {
|
18558
18558
|
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;
|
@@ -19454,7 +19454,7 @@ function KE(e, t) {
|
|
19454
19454
|
}
|
19455
19455
|
}
|
19456
19456
|
function QE(e, t) {
|
19457
|
-
t.chars =
|
19457
|
+
t.chars = Fe, e._insertCharacters(t);
|
19458
19458
|
}
|
19459
19459
|
function ZE(e, t) {
|
19460
19460
|
e._insertCharacters(t), e.framesetOk = !1;
|
@@ -19754,7 +19754,7 @@ function TT(e, t) {
|
|
19754
19754
|
function Dn(e, t) {
|
19755
19755
|
Jc(e, t);
|
19756
19756
|
const n = e.parser.tokenizer.currentCharacterToken;
|
19757
|
-
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 =
|
19757
|
+
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 = je.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: "" };
|
19758
19758
|
}
|
19759
19759
|
function Jc(e, t) {
|
19760
19760
|
if (t && t.offset !== void 0) {
|
@@ -19771,7 +19771,7 @@ function Jc(e, t) {
|
|
19771
19771
|
}
|
19772
19772
|
function yT(e, t) {
|
19773
19773
|
const n = e.tagName.toLowerCase();
|
19774
|
-
if (t.parser.tokenizer.state ===
|
19774
|
+
if (t.parser.tokenizer.state === je.PLAINTEXT) return;
|
19775
19775
|
Dn(t, cn(e));
|
19776
19776
|
const r = t.parser.openElements.current;
|
19777
19777
|
let a = "namespaceURI" in r ? r.namespaceURI : nn.html;
|
@@ -19796,7 +19796,7 @@ function yT(e, t) {
|
|
19796
19796
|
}
|
19797
19797
|
function _T(e, t) {
|
19798
19798
|
const n = e.tagName.toLowerCase();
|
19799
|
-
if (!t.parser.tokenizer.inForeignNode && vg.includes(n) || t.parser.tokenizer.state ===
|
19799
|
+
if (!t.parser.tokenizer.inForeignNode && vg.includes(n) || t.parser.tokenizer.state === je.PLAINTEXT) return;
|
19800
19800
|
Dn(t, Vc(e));
|
19801
19801
|
const r = {
|
19802
19802
|
type: be.END_TAG,
|
@@ -19809,9 +19809,9 @@ function _T(e, t) {
|
|
19809
19809
|
};
|
19810
19810
|
t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken), // Current element is closed.
|
19811
19811
|
n === t.parser.tokenizer.lastStartTagName && // `<textarea>` and `<title>`
|
19812
|
-
(t.parser.tokenizer.state ===
|
19813
|
-
t.parser.tokenizer.state ===
|
19814
|
-
t.parser.tokenizer.state ===
|
19812
|
+
(t.parser.tokenizer.state === je.RCDATA || // `<iframe>`, `<noembed>`, `<noframes>`, `<style>`, `<xmp>`
|
19813
|
+
t.parser.tokenizer.state === je.RAWTEXT || // `<script>`
|
19814
|
+
t.parser.tokenizer.state === je.SCRIPT_DATA) && (t.parser.tokenizer.state = je.DATA);
|
19815
19815
|
}
|
19816
19816
|
function CT(e) {
|
19817
19817
|
const t = e.type === "root" ? e.children[0] : e;
|
@@ -19865,7 +19865,7 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
|
|
19865
19865
|
submitEvent: s = null
|
19866
19866
|
}) => {
|
19867
19867
|
var K;
|
19868
|
-
const { primaryColor: l, conversationScreen: c } = se(
|
19868
|
+
const { primaryColor: l, conversationScreen: c } = se(Ue), {
|
19869
19869
|
content: d,
|
19870
19870
|
disableFeedback: h,
|
19871
19871
|
liveAgent: p,
|
@@ -20049,7 +20049,7 @@ tu.propTypes = {
|
|
20049
20049
|
tu.displayName = "NotificationMessage";
|
20050
20050
|
function ed({ disableScroll: e }) {
|
20051
20051
|
const t = pt(null);
|
20052
|
-
return
|
20052
|
+
return He(() => {
|
20053
20053
|
var n;
|
20054
20054
|
e || (n = t.current) == null || n.scrollIntoView({
|
20055
20055
|
behavior: "smooth",
|
@@ -20084,7 +20084,7 @@ const ia = ({
|
|
20084
20084
|
submitEvent: u = null
|
20085
20085
|
}) => {
|
20086
20086
|
const { disableScroll: s, hasError: l } = se(Ze), { isConversationLoading: c } = se(Lt), d = t || c, h = pt(null);
|
20087
|
-
return
|
20087
|
+
return He(() => {
|
20088
20088
|
var p;
|
20089
20089
|
(p = h.current) == null || p.scrollIntoView({
|
20090
20090
|
behavior: "instant",
|
@@ -20136,7 +20136,7 @@ ia.propTypes = {
|
|
20136
20136
|
ia.displayName = "ConversationMessages";
|
20137
20137
|
const td = () => {
|
20138
20138
|
var l, c, d;
|
20139
|
-
const { conversationScreen: e, id: t } = se(
|
20139
|
+
const { conversationScreen: e, id: t } = se(Ue), n = `${t}-maintenance-banner`, [r, a] = de(
|
20140
20140
|
ft.get(n) === void 0
|
20141
20141
|
), i = /* @__PURE__ */ new Date(), u = new Date(
|
20142
20142
|
(l = e == null ? void 0 : e.maintenanceBanner) == null ? void 0 : l.endDateTime
|
@@ -20188,7 +20188,7 @@ const td = () => {
|
|
20188
20188
|
td.displayName = "MaintenanceBanner";
|
20189
20189
|
const nu = ({ loading: e, onPromptClick: t }) => {
|
20190
20190
|
var i;
|
20191
|
-
const { primaryColor: n, conversationScreen: r } = se(
|
20191
|
+
const { primaryColor: n, conversationScreen: r } = se(Ue), { deleteConversationModal: a } = se(Lt);
|
20192
20192
|
return /* @__PURE__ */ v.jsxs("div", { style: { display: "grid", gap: ".75rem" }, children: [
|
20193
20193
|
/* @__PURE__ */ v.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
|
20194
20194
|
(i = r == null ? void 0 : r.prompts) == null ? void 0 : i.map((u) => {
|
@@ -20230,7 +20230,7 @@ function nd({
|
|
20230
20230
|
userInput: l = ""
|
20231
20231
|
}) {
|
20232
20232
|
var _, T;
|
20233
|
-
const { conversationScreen: c, disclaimer: d } = se(
|
20233
|
+
const { conversationScreen: c, disclaimer: d } = se(Ue), { deleteConversationModal: h, xpertMessages: p } = se(Lt), { loading: f, setMode: b } = se(Ze), m = (M) => {
|
20234
20234
|
c.liveChat.useOwnChat ? b(Ut.LIVECHAT) : u(M);
|
20235
20235
|
};
|
20236
20236
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
@@ -20908,49 +20908,49 @@ function ou() {
|
|
20908
20908
|
}
|
20909
20909
|
return null;
|
20910
20910
|
}, [_, f.disableJson]), y = (0, a.useRef)(null), k = (0, a.useRef)(null), G = (0, a.useRef)(function() {
|
20911
|
-
}), F = (0, a.useRef)(0), Z = (0, a.useRef)(Date.now()), z = (0, a.useRef)([]),
|
20912
|
-
|
20913
|
-
var I = y.current && B[y.current] !== void 0 ? B[y.current] : p !== null && b === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED,
|
20914
|
-
var
|
20911
|
+
}), F = (0, a.useRef)(0), Z = (0, a.useRef)(Date.now()), z = (0, a.useRef)([]), $ = (0, a.useRef)(null), L = (0, a.useRef)(f);
|
20912
|
+
L.current = f;
|
20913
|
+
var I = y.current && B[y.current] !== void 0 ? B[y.current] : p !== null && b === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, R = f.queryParams ? JSON.stringify(f.queryParams) : null, U = (0, a.useCallback)(function(Y, g) {
|
20914
|
+
var ne;
|
20915
20915
|
if (g === void 0 && (g = !0), u.isEventSourceSupported && k.current instanceof EventSource) {
|
20916
20916
|
console.warn("Unable to send a message from an eventSource");
|
20917
20917
|
return;
|
20918
20918
|
}
|
20919
|
-
((
|
20919
|
+
((ne = k.current) === null || ne === void 0 ? void 0 : ne.readyState) === u.ReadyState.OPEN ? ((0, d.assertIsWebSocket)(k.current, L.current.skipAssert), k.current.send(Y)) : g && z.current.push(Y);
|
20920
20920
|
}, []), W = (0, a.useCallback)(function(Y, g) {
|
20921
20921
|
g === void 0 && (g = !0), U(JSON.stringify(Y), g);
|
20922
20922
|
}, [U]), q = (0, a.useCallback)(function() {
|
20923
|
-
return
|
20923
|
+
return L.current.share !== !0 || u.isEventSourceSupported && k.current instanceof EventSource ? k.current : ($.current === null && k.current && ((0, d.assertIsWebSocket)(k.current, L.current.skipAssert), $.current = (0, c.default)(k.current, G)), $.current);
|
20924
20924
|
}, []);
|
20925
20925
|
return (0, a.useEffect)(function() {
|
20926
20926
|
if (p !== null && b === !0) {
|
20927
|
-
var Y, g = !1,
|
20927
|
+
var Y, g = !1, ne = !0, oe = function() {
|
20928
20928
|
return t(void 0, void 0, void 0, function() {
|
20929
|
-
var S, le,
|
20929
|
+
var S, le, Te;
|
20930
20930
|
return n(this, function(me) {
|
20931
20931
|
switch (me.label) {
|
20932
20932
|
case 0:
|
20933
|
-
return S = y, [4, (0, l.getUrl)(p,
|
20933
|
+
return S = y, [4, (0, l.getUrl)(p, L)];
|
20934
20934
|
case 1:
|
20935
20935
|
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() {
|
20936
|
-
return K(function(
|
20937
|
-
return e(e({},
|
20936
|
+
return K(function(xe) {
|
20937
|
+
return e(e({}, xe), { ABORTED: u.ReadyState.CLOSED });
|
20938
20938
|
});
|
20939
20939
|
}), [
|
20940
20940
|
2
|
20941
20941
|
/*return*/
|
20942
|
-
]) : (le = function(
|
20942
|
+
]) : (le = function(xe) {
|
20943
20943
|
g || (0, i.flushSync)(function() {
|
20944
|
-
return T(
|
20944
|
+
return T(xe);
|
20945
20945
|
});
|
20946
|
-
},
|
20946
|
+
}, Te = function(xe) {
|
20947
20947
|
g || (0, i.flushSync)(function() {
|
20948
20948
|
return K(function(ve) {
|
20949
|
-
var
|
20950
|
-
return e(e({}, ve), y.current && (
|
20949
|
+
var Be;
|
20950
|
+
return e(e({}, ve), y.current && (Be = {}, Be[y.current] = xe, Be));
|
20951
20951
|
});
|
20952
20952
|
});
|
20953
|
-
},
|
20953
|
+
}, ne && (Y = (0, s.createOrJoinSocket)(k, y.current, Te, L, le, G, F, Z, U)), [
|
20954
20954
|
2
|
20955
20955
|
/*return*/
|
20956
20956
|
]);
|
@@ -20959,15 +20959,15 @@ function ou() {
|
|
20959
20959
|
});
|
20960
20960
|
};
|
20961
20961
|
return G.current = function() {
|
20962
|
-
g || (
|
20962
|
+
g || ($.current && ($.current = null), Y == null || Y(), oe());
|
20963
20963
|
}, oe(), function() {
|
20964
|
-
g = !0,
|
20964
|
+
g = !0, ne = !1, $.current && ($.current = null), Y == null || Y(), T(null);
|
20965
20965
|
};
|
20966
20966
|
} else (p === null || b === !1) && (F.current = 0, K(function(S) {
|
20967
20967
|
var le;
|
20968
20968
|
return e(e({}, S), y.current && (le = {}, le[y.current] = u.ReadyState.CLOSED, le));
|
20969
20969
|
}));
|
20970
|
-
}, [p, b,
|
20970
|
+
}, [p, b, R, U]), (0, a.useEffect)(function() {
|
20971
20971
|
I === u.ReadyState.OPEN && z.current.splice(0).forEach(function(Y) {
|
20972
20972
|
U(Y);
|
20973
20973
|
});
|
@@ -21118,9 +21118,9 @@ const BT = "This conversation with a live agent has ended. Please note that a tr
|
|
21118
21118
|
CONVERSATION: "CONVERSATION",
|
21119
21119
|
FORM: "FORM"
|
21120
21120
|
}, dn = Wr({}), ad = ({ children: e, liveChatPayload: t }) => {
|
21121
|
-
const { conversationScreen: n } = se(
|
21122
|
-
const Y = await FT(q.data), { conversation_id: g, event_type:
|
21123
|
-
switch (
|
21121
|
+
const { conversationScreen: n } = se(Ue), { pushXpertMessage: r } = se(Lt), { setHasError: a, setMode: i } = se(Ze), [u, s] = de(""), [l, c] = de(!1), [, d] = de(""), [h, p] = de([]), [f, b] = de(null), [m, _] = de(Ht.FORM), [T, M] = de(null), B = (q) => p((Y) => [...Y, q]), K = async (q) => {
|
21122
|
+
const Y = await FT(q.data), { conversation_id: g, event_type: ne, body: oe } = Y;
|
21123
|
+
switch (ne) {
|
21124
21124
|
case "AGENT_TYPING":
|
21125
21125
|
return Z();
|
21126
21126
|
case "CONVERSATION_ACCEPTED":
|
@@ -21136,7 +21136,7 @@ const BT = "This conversation with a live agent has ended. Please note that a tr
|
|
21136
21136
|
case "CONVERSATION_TRANSFERRED_TO_AGENT":
|
21137
21137
|
return;
|
21138
21138
|
case "MESSAGE_ADDED":
|
21139
|
-
return
|
21139
|
+
return $(oe);
|
21140
21140
|
case "PARTICIPANT_JOINED":
|
21141
21141
|
return;
|
21142
21142
|
case "PARTICIPANT_LEFT":
|
@@ -21172,13 +21172,13 @@ const BT = "This conversation with a live agent has ended. Please note that a tr
|
|
21172
21172
|
}, z = (q) => {
|
21173
21173
|
const { displayName: Y } = q;
|
21174
21174
|
p([]), s(Y ?? "An agent"), _(Ht.CONVERSATION);
|
21175
|
-
},
|
21176
|
-
const { messageId: Y, text: g, timestamp:
|
21175
|
+
}, $ = (q) => {
|
21176
|
+
const { messageId: Y, text: g, timestamp: ne } = q;
|
21177
21177
|
B({
|
21178
21178
|
content: g ?? "",
|
21179
21179
|
id: Y ?? "",
|
21180
21180
|
role: "agent",
|
21181
|
-
timestamp:
|
21181
|
+
timestamp: ne ? new Date(ne) : void 0
|
21182
21182
|
}), w({
|
21183
21183
|
action: "sendmessage",
|
21184
21184
|
messages: [
|
@@ -21286,7 +21286,7 @@ function ud({
|
|
21286
21286
|
isMounted: r
|
21287
21287
|
}) {
|
21288
21288
|
var c;
|
21289
|
-
const { conversationScreen: a } = se(
|
21289
|
+
const { conversationScreen: a } = se(Ue), { mode: i } = se(Ze), { setDeleteConversationModal: u, xpertMessages: s } = se(Lt), l = i === Ut.XPERT && ((c = a == null ? void 0 : a.conversationHistory) == null ? void 0 : c.allowDeletion) && !!(s != null && s.length);
|
21290
21290
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
21291
21291
|
l && /* @__PURE__ */ v.jsx(
|
21292
21292
|
"button",
|
@@ -21392,7 +21392,7 @@ function sd({
|
|
21392
21392
|
onClose: r
|
21393
21393
|
}) {
|
21394
21394
|
var c, d, h, p, f, b, m, _, T, M, B, K, w, y, k;
|
21395
|
-
const { primaryColor: a, conversationScreen: i } = se(
|
21395
|
+
const { primaryColor: a, conversationScreen: i } = se(Ue), { isMobile: u, mode: s } = se(Ze), { step: l } = se(dn);
|
21396
21396
|
return l === Ht.CONNECTING && s === Ut.LIVECHAT ? null : /* @__PURE__ */ v.jsxs(
|
21397
21397
|
"div",
|
21398
21398
|
{
|
@@ -21466,7 +21466,7 @@ function jT() {
|
|
21466
21466
|
deleteConversationModal: e,
|
21467
21467
|
deleteConversationHistory: t,
|
21468
21468
|
setDeleteConversationModal: n
|
21469
|
-
} = se(Lt), { primaryColor: r } = se(
|
21469
|
+
} = se(Lt), { primaryColor: r } = se(Ue);
|
21470
21470
|
return e ? /* @__PURE__ */ v.jsx(
|
21471
21471
|
"div",
|
21472
21472
|
{
|
@@ -21517,7 +21517,7 @@ function jT() {
|
|
21517
21517
|
}
|
21518
21518
|
const qT = () => {
|
21519
21519
|
var n, r, a, i, u;
|
21520
|
-
const { isMobile: e } = se(Ze), { launchButton: t } = se(
|
21520
|
+
const { isMobile: e } = se(Ze), { launchButton: t } = se(Ue);
|
21521
21521
|
return (n = t == null ? void 0 : t.message) != null && n.enabled ? /* @__PURE__ */ v.jsx(
|
21522
21522
|
"div",
|
21523
21523
|
{
|
@@ -21535,7 +21535,7 @@ function zT() {
|
|
21535
21535
|
}
|
21536
21536
|
function ld() {
|
21537
21537
|
var s;
|
21538
|
-
const { conversationScreen: e, primaryColor: t, widgetMode: n } = se(
|
21538
|
+
const { conversationScreen: e, primaryColor: t, widgetMode: n } = se(Ue), { cancelLiveChatConnection: r } = se(dn), a = ((s = e == null ? void 0 : e.liveChat) == null ? void 0 : s.queueMessages) ?? [], i = n ? t : "#FFFFFF", u = n ? "#FFFFFF" : t;
|
21539
21539
|
return /* @__PURE__ */ v.jsxs("div", { className: "live-chat-connecting", style: { backgroundColor: i }, children: [
|
21540
21540
|
/* @__PURE__ */ v.jsx(zT, {}),
|
21541
21541
|
/* @__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}`)) }),
|
@@ -21568,7 +21568,7 @@ const ys = 500, YT = [
|
|
21568
21568
|
}
|
21569
21569
|
];
|
21570
21570
|
function cd({ onDismiss: e }) {
|
21571
|
-
const [t, n] = de(""), [r, a] = de(!1), [i, u] = de(null), { conversationScreen: s } = se(
|
21571
|
+
const [t, n] = de(""), [r, a] = de(!1), [i, u] = de(null), { conversationScreen: s } = se(Ue), { endLiveChat: l, submitSurvey: c, terminateConversation: d } = se(dn), h = () => {
|
21572
21572
|
var b;
|
21573
21573
|
d(), (b = s == null ? void 0 : s.liveChat) != null && b.useSurvey ? a(!0) : l();
|
21574
21574
|
}, p = () => {
|
@@ -21649,7 +21649,7 @@ function $T(e, t) {
|
|
21649
21649
|
},
|
21650
21650
|
[n, e, t]
|
21651
21651
|
);
|
21652
|
-
return
|
21652
|
+
return He(() => () => {
|
21653
21653
|
clearTimeout(a.current);
|
21654
21654
|
}, []), i;
|
21655
21655
|
}
|
@@ -21758,7 +21758,7 @@ const WT = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
21758
21758
|
}];
|
21759
21759
|
}, Qa = "privacy policy";
|
21760
21760
|
function fd() {
|
21761
|
-
const { conversationScreen: e, primaryColor: t } = se(
|
21761
|
+
const { conversationScreen: e, primaryColor: t } = se(Ue), { startLiveChat: n } = se(dn), { setMode: r } = se(Ze), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = XT({}), [d, h] = de(!1), { clearError: p, errors: f, setErrors: b } = GT(), m = or(
|
21762
21762
|
() => (s ?? "").split(Qa, 2),
|
21763
21763
|
[s]
|
21764
21764
|
), _ = () => {
|
@@ -21771,7 +21771,7 @@ function fd() {
|
|
21771
21771
|
}, B = () => {
|
21772
21772
|
K() && n(l);
|
21773
21773
|
};
|
21774
|
-
|
21774
|
+
He(() => {
|
21775
21775
|
(!a || a.length === 0) && n();
|
21776
21776
|
}, [a, n]);
|
21777
21777
|
const K = () => {
|
@@ -21889,17 +21889,17 @@ function pd({
|
|
21889
21889
|
style: i = {}
|
21890
21890
|
}) {
|
21891
21891
|
var b;
|
21892
|
-
const { proactiveMessage: u } = se(
|
21893
|
-
|
21892
|
+
const { proactiveMessage: u } = se(Ue), [s, l] = de(!0), [c, d] = de(!1), h = s && (!(window != null && window.OnetrustActiveGroups) || ((b = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : b.includes("C0003"))) && ft.get(t) === void 0;
|
21893
|
+
He(() => {
|
21894
21894
|
var m;
|
21895
21895
|
(m = window == null ? void 0 : window.OneTrust) == null || m.OnConsentChanged(() => {
|
21896
21896
|
var _;
|
21897
21897
|
!((_ = window == null ? void 0 : window.OnetrustActiveGroups) != null && _.includes("C0003")) && ft.get(t) !== void 0 && ft.remove(t);
|
21898
21898
|
});
|
21899
|
-
}, [t]),
|
21899
|
+
}, [t]), He(() => {
|
21900
21900
|
var m;
|
21901
21901
|
a || (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && f(t, 1, 1);
|
21902
|
-
}, [t, a]),
|
21902
|
+
}, [t, a]), He(() => {
|
21903
21903
|
if (u != null && u.enabled && (u == null ? void 0 : u.delayMs) > 0) {
|
21904
21904
|
const m = setTimeout(() => {
|
21905
21905
|
d(!0);
|
@@ -21976,9 +21976,9 @@ function KT(e, t, n) {
|
|
21976
21976
|
},
|
21977
21977
|
[n]
|
21978
21978
|
);
|
21979
|
-
|
21979
|
+
He(() => (e && window.addEventListener("message", r), () => {
|
21980
21980
|
window.removeEventListener("message", r);
|
21981
|
-
}), [e, r]),
|
21981
|
+
}), [e, r]), He(() => {
|
21982
21982
|
let a;
|
21983
21983
|
return e && (a = document.createElement("style"), document.head.appendChild(a), ((u) => {
|
21984
21984
|
a.innerHTML = `
|
@@ -22000,7 +22000,7 @@ function KT(e, t, n) {
|
|
22000
22000
|
}
|
22001
22001
|
function QT(e) {
|
22002
22002
|
const [t, n] = de(null);
|
22003
|
-
return
|
22003
|
+
return He(() => {
|
22004
22004
|
try {
|
22005
22005
|
(() => {
|
22006
22006
|
var a, i, u;
|
@@ -22025,7 +22025,7 @@ function QT(e) {
|
|
22025
22025
|
}, [e]), t;
|
22026
22026
|
}
|
22027
22027
|
function ZT(e) {
|
22028
|
-
|
22028
|
+
He(() => {
|
22029
22029
|
const t = () => document.visibilityState === "visible" && e();
|
22030
22030
|
return document.addEventListener("visibilitychange", t), () => {
|
22031
22031
|
document.removeEventListener("visibilitychange", t);
|
@@ -22065,7 +22065,7 @@ function md({ submitEventExternal: e = null }) {
|
|
22065
22065
|
userTracking: s,
|
22066
22066
|
webExperimentation: l,
|
22067
22067
|
widgetMode: c
|
22068
|
-
} = se(
|
22068
|
+
} = se(Ue), {
|
22069
22069
|
contentRef: d,
|
22070
22070
|
onFeedbackSelection: h,
|
22071
22071
|
onMessageSent: p,
|
@@ -22080,20 +22080,20 @@ function md({ submitEventExternal: e = null }) {
|
|
22080
22080
|
setHasNewMessage: K,
|
22081
22081
|
setIsNormalSize: w,
|
22082
22082
|
setLoading: y
|
22083
|
-
} = se(Ze), [, k] = de(!1), [, G] = de(!1), [F, Z] = de(!1), [z,
|
22083
|
+
} = se(Ze), [, k] = de(!1), [, G] = de(!1), [F, Z] = de(!1), [z, $] = de(!1), [L, I] = de(""), [R, U] = de(!1), W = F || !c, q = pt(null), Y = pt(null), g = ft.get(`${a}-test`) === "1";
|
22084
22084
|
KT(
|
22085
22085
|
(Dt = r == null ? void 0 : r.liveChat) == null ? void 0 : Dt.enabled,
|
22086
22086
|
z,
|
22087
|
-
|
22087
|
+
$
|
22088
22088
|
);
|
22089
|
-
const
|
22090
|
-
({ name:
|
22089
|
+
const ne = bt(
|
22090
|
+
({ name: D, payload: V }) => {
|
22091
22091
|
if (!n || !(s != null && s.enabled)) return;
|
22092
|
-
const
|
22093
|
-
e ? e({ name:
|
22092
|
+
const re = xs(s == null ? void 0 : s.payloadParams, V);
|
22093
|
+
e ? e({ name: D, payload: re }) : Y.current.track(
|
22094
22094
|
// TODO: this is untestable - create a custom hook to get submit event function.
|
22095
|
-
|
22096
|
-
|
22095
|
+
D,
|
22096
|
+
re
|
22097
22097
|
);
|
22098
22098
|
},
|
22099
22099
|
[
|
@@ -22103,24 +22103,29 @@ function md({ submitEventExternal: e = null }) {
|
|
22103
22103
|
s == null ? void 0 : s.payloadParams
|
22104
22104
|
]
|
22105
22105
|
), oe = async () => {
|
22106
|
-
var
|
22107
|
-
y(!0)
|
22108
|
-
|
22109
|
-
|
22110
|
-
if (L >= 1e4) {
|
22111
|
-
y(!1);
|
22112
|
-
return;
|
22113
|
-
}
|
22114
|
-
await new Promise((ne) => setTimeout(ne, 200)), L += 200;
|
22106
|
+
var re, ae;
|
22107
|
+
if (y(!0), !((re = r == null ? void 0 : r.conversationHistory) != null && re.enabled)) {
|
22108
|
+
y(!1);
|
22109
|
+
return;
|
22115
22110
|
}
|
22116
|
-
if (!((
|
22111
|
+
if (!await (async (ue, ye = 1e4, Ee = 200) => {
|
22112
|
+
let De = 0;
|
22113
|
+
for (; !ue(); ) {
|
22114
|
+
if (De >= ye)
|
22115
|
+
return !1;
|
22116
|
+
await new Promise((we) => setTimeout(we, Ee)), De += Ee;
|
22117
|
+
}
|
22118
|
+
return !0;
|
22119
|
+
})(
|
22120
|
+
() => (window == null ? void 0 : window.OnetrustActiveGroups) && window.OnetrustActiveGroups.split(",").includes("C0003")
|
22121
|
+
)) {
|
22117
22122
|
y(!1);
|
22118
22123
|
return;
|
22119
22124
|
}
|
22120
22125
|
try {
|
22121
|
-
let
|
22122
|
-
const ae = await fetch(
|
22123
|
-
`${t.baseUrl}
|
22126
|
+
let ue = _s(a);
|
22127
|
+
const ye = (ae = t == null ? void 0 : t.baseUrl) != null && ae.includes("xpert-api-services") ? "/v1/history" : "/xpert/v2/history", Ee = await fetch(
|
22128
|
+
`${t.baseUrl}${ye}?conversation_id=${ue}`,
|
22124
22129
|
{
|
22125
22130
|
method: "GET",
|
22126
22131
|
headers: {
|
@@ -22128,137 +22133,137 @@ function md({ submitEventExternal: e = null }) {
|
|
22128
22133
|
}
|
22129
22134
|
}
|
22130
22135
|
);
|
22131
|
-
if (!
|
22132
|
-
throw new Error(`HTTPError: ${
|
22133
|
-
const
|
22136
|
+
if (!Ee.ok)
|
22137
|
+
throw new Error(`HTTPError: ${Ee.status} ${Ee.statusText}`);
|
22138
|
+
const De = await Ee.json();
|
22134
22139
|
b(
|
22135
|
-
|
22136
|
-
...
|
22140
|
+
De.map((we) => ({
|
22141
|
+
...we,
|
22137
22142
|
disableFeedback: !0,
|
22138
|
-
toolCalls:
|
22139
|
-
toolCallId:
|
22143
|
+
toolCalls: we.tool_calls,
|
22144
|
+
toolCallId: we.tool_call_id
|
22140
22145
|
}))
|
22141
22146
|
), M(!0), K(!0);
|
22142
|
-
} catch (
|
22143
|
-
console.error(
|
22147
|
+
} catch (ue) {
|
22148
|
+
console.error(ue);
|
22144
22149
|
} finally {
|
22145
22150
|
y(!1);
|
22146
22151
|
}
|
22147
22152
|
}, S = ((it = r == null ? void 0 : r.conversationHistory) == null ? void 0 : it.enabled) && W && !z;
|
22148
22153
|
ZT(
|
22149
22154
|
() => S && oe()
|
22150
|
-
),
|
22151
|
-
let
|
22155
|
+
), He(() => {
|
22156
|
+
let D, V;
|
22152
22157
|
if (n)
|
22153
|
-
return s != null && s.enabled && (
|
22158
|
+
return s != null && s.enabled && (D = setInterval(() => {
|
22154
22159
|
var ae;
|
22155
|
-
((ae = window.analytics) != null && ae.track || e) && (Y.current = window.analytics, clearInterval(
|
22156
|
-
}, 1e3),
|
22157
|
-
clearInterval(
|
22160
|
+
((ae = window.analytics) != null && ae.track || e) && (Y.current = window.analytics, clearInterval(D), clearTimeout(V), k(!0));
|
22161
|
+
}, 1e3), V = setTimeout(() => {
|
22162
|
+
clearInterval(D);
|
22158
22163
|
}, 6e4)), () => {
|
22159
|
-
clearInterval(
|
22164
|
+
clearInterval(D), clearTimeout(V);
|
22160
22165
|
};
|
22161
22166
|
}, [
|
22162
22167
|
n,
|
22163
22168
|
e,
|
22164
22169
|
s == null ? void 0 : s.enabled,
|
22165
22170
|
s == null ? void 0 : s.prefix
|
22166
|
-
]),
|
22167
|
-
let
|
22168
|
-
const
|
22169
|
-
l != null && l.enabled && window.optimizely && window.experiments && (clearInterval(
|
22171
|
+
]), He(() => {
|
22172
|
+
let D, V;
|
22173
|
+
const re = () => {
|
22174
|
+
l != null && l.enabled && window.optimizely && window.experiments && (clearInterval(D), clearTimeout(V), G(!0));
|
22170
22175
|
};
|
22171
22176
|
if (n)
|
22172
|
-
return
|
22173
|
-
clearInterval(
|
22177
|
+
return D = setInterval(re, 1e3), V = setTimeout(() => {
|
22178
|
+
clearInterval(D);
|
22174
22179
|
}, 6e4), () => {
|
22175
|
-
clearInterval(
|
22180
|
+
clearInterval(D), clearTimeout(V);
|
22176
22181
|
};
|
22177
22182
|
}, [
|
22178
22183
|
n,
|
22179
22184
|
l == null ? void 0 : l.enabled,
|
22180
22185
|
l == null ? void 0 : l.experimentName
|
22181
22186
|
]);
|
22182
|
-
const le = (
|
22183
|
-
var
|
22184
|
-
(
|
22187
|
+
const le = (D) => {
|
22188
|
+
var V, re;
|
22189
|
+
(V = D == null ? void 0 : D.target) != null && V.href && ne({
|
22185
22190
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
|
22186
22191
|
payload: {
|
22187
22192
|
category: "2u",
|
22188
22193
|
label: "xpert-chatbot",
|
22189
|
-
link: (
|
22194
|
+
link: (re = D == null ? void 0 : D.target) == null ? void 0 : re.href,
|
22190
22195
|
isTestUser: g
|
22191
22196
|
}
|
22192
22197
|
});
|
22193
22198
|
};
|
22194
22199
|
if (QT(l == null ? void 0 : l.experimentName), !n || l != null && l.enabled && !(l != null && l.experimentName) && !g || s != null && s.enabled && (s != null && s.prefix) && !((Gt = Y == null ? void 0 : Y.current) != null && Gt.track) && !e)
|
22195
22200
|
return null;
|
22196
|
-
const
|
22201
|
+
const Te = () => {
|
22197
22202
|
I(""), q.current.value = "", q.current.style.height = "auto";
|
22198
|
-
}, me = (
|
22199
|
-
|
22203
|
+
}, me = (D, V) => {
|
22204
|
+
ne({
|
22200
22205
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
|
22201
22206
|
payload: {
|
22202
22207
|
category: "2u",
|
22203
22208
|
label: "xpert-chatbot",
|
22204
|
-
linkCount: e3(
|
22205
|
-
apiResponseMessage:
|
22209
|
+
linkCount: e3(D),
|
22210
|
+
apiResponseMessage: D,
|
22206
22211
|
isTestUser: g,
|
22207
|
-
conversationHistoryId:
|
22212
|
+
conversationHistoryId: V
|
22208
22213
|
}
|
22209
22214
|
});
|
22210
|
-
},
|
22211
|
-
conversationSize:
|
22212
|
-
userInputMessage:
|
22213
|
-
apiResponseMessage:
|
22215
|
+
}, xe = ({
|
22216
|
+
conversationSize: D,
|
22217
|
+
userInputMessage: V,
|
22218
|
+
apiResponseMessage: re,
|
22214
22219
|
elapsedSeconds: ae,
|
22215
22220
|
conversationByteSize: ue
|
22216
22221
|
}) => {
|
22217
|
-
|
22222
|
+
ne({
|
22218
22223
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
|
22219
22224
|
payload: {
|
22220
22225
|
category: "2u",
|
22221
22226
|
label: "xpert-chatbot",
|
22222
22227
|
isTestUser: g,
|
22223
|
-
conversationSize:
|
22224
|
-
userInputMessage:
|
22225
|
-
apiResponseMessage:
|
22228
|
+
conversationSize: D,
|
22229
|
+
userInputMessage: V,
|
22230
|
+
apiResponseMessage: re,
|
22226
22231
|
elapsedSeconds: ae,
|
22227
22232
|
conversationByteSize: ue
|
22228
22233
|
}
|
22229
22234
|
});
|
22230
|
-
}, ve = async (
|
22231
|
-
const
|
22235
|
+
}, ve = async (D, V) => {
|
22236
|
+
const re = await D.json(), ae = Array.isArray(re) ? re : [re];
|
22232
22237
|
return ae.forEach(
|
22233
22238
|
({
|
22234
22239
|
content: ue,
|
22235
|
-
live_agent:
|
22236
|
-
role:
|
22237
|
-
tool_calls:
|
22238
|
-
tool_call_id:
|
22240
|
+
live_agent: ye,
|
22241
|
+
role: Ee,
|
22242
|
+
tool_calls: De,
|
22243
|
+
tool_call_id: we
|
22239
22244
|
}) => {
|
22240
22245
|
f({
|
22241
22246
|
content: ue,
|
22242
22247
|
createdAt: /* @__PURE__ */ new Date(),
|
22243
|
-
liveAgent:
|
22244
|
-
role:
|
22245
|
-
toolCalls:
|
22246
|
-
toolCallId:
|
22247
|
-
}), me(ue,
|
22248
|
+
liveAgent: ye,
|
22249
|
+
role: Ee,
|
22250
|
+
toolCalls: De,
|
22251
|
+
toolCallId: we
|
22252
|
+
}), me(ue, V);
|
22248
22253
|
}
|
22249
22254
|
), ae;
|
22250
|
-
},
|
22251
|
-
const
|
22255
|
+
}, Be = async (D, V) => {
|
22256
|
+
const re = new TextDecoder("utf-8");
|
22252
22257
|
let ae = [];
|
22253
|
-
const { value: ue } = await
|
22258
|
+
const { value: ue } = await D.read(), ye = re.decode(ue, { stream: !0 });
|
22254
22259
|
try {
|
22255
|
-
const
|
22256
|
-
|
22260
|
+
const Ee = ye.match(/\[.*?\](?=\[|$)/gs);
|
22261
|
+
Ee && Ee.length > 0 ? ae = JSON.parse(Ee[Ee.length - 1]) : ae = Array.isArray(ye) ? ye : [ye];
|
22257
22262
|
} catch {
|
22258
22263
|
ae = [];
|
22259
22264
|
}
|
22260
|
-
if (ae != null && ae.find((
|
22261
|
-
const
|
22265
|
+
if (ae != null && ae.find((Ee) => Ee.tool_calls)) {
|
22266
|
+
const Ee = {
|
22262
22267
|
content: ae[0].content,
|
22263
22268
|
createdAt: /* @__PURE__ */ new Date(),
|
22264
22269
|
liveAgent: ae[0].live_agent,
|
@@ -22272,29 +22277,29 @@ function md({ submitEventExternal: e = null }) {
|
|
22272
22277
|
}
|
22273
22278
|
}
|
22274
22279
|
],
|
22275
|
-
toolCallId: ae[0].
|
22280
|
+
toolCallId: ae[0].tool_calls[0].id
|
22276
22281
|
};
|
22277
|
-
f(
|
22278
|
-
const
|
22282
|
+
f(Ee);
|
22283
|
+
const De = {
|
22279
22284
|
content: "",
|
22280
22285
|
createdAt: /* @__PURE__ */ new Date(),
|
22281
22286
|
role: "tool",
|
22282
22287
|
toolCallId: ae[0].tool_calls[0].id
|
22283
22288
|
};
|
22284
|
-
f(
|
22289
|
+
f(De), me(ae[0].content, V);
|
22285
22290
|
}
|
22286
22291
|
return ae;
|
22287
|
-
}, Oe = async (
|
22288
|
-
var
|
22289
|
-
const
|
22292
|
+
}, Oe = async (D, V) => {
|
22293
|
+
var ye;
|
22294
|
+
const re = new TextDecoder("utf-8");
|
22290
22295
|
let ae = "", ue = [];
|
22291
22296
|
for (; ; ) {
|
22292
|
-
const { value:
|
22293
|
-
if (
|
22294
|
-
const
|
22297
|
+
const { value: Ee, done: De } = await D.read();
|
22298
|
+
if (De) break;
|
22299
|
+
const we = re.decode(Ee, { stream: !0 });
|
22295
22300
|
try {
|
22296
|
-
const Ge = JSON.parse(
|
22297
|
-
Array.isArray(Ge) && ((
|
22301
|
+
const Ge = JSON.parse(we);
|
22302
|
+
Array.isArray(Ge) && ((ye = Ge[0]) == null ? void 0 : ye.content) !== void 0 && (ae = Ge[0].content, ue.length === 0 ? (ue.push({
|
22298
22303
|
role: "assistant",
|
22299
22304
|
disableFeedback: !0,
|
22300
22305
|
content: ae
|
@@ -22317,78 +22322,78 @@ function md({ submitEventExternal: e = null }) {
|
|
22317
22322
|
} catch {
|
22318
22323
|
}
|
22319
22324
|
}
|
22320
|
-
return me(ae,
|
22321
|
-
}, We = async (
|
22322
|
-
var
|
22323
|
-
const
|
22324
|
-
|
22325
|
-
|
22325
|
+
return me(ae, V), ue;
|
22326
|
+
}, We = async (D, V) => {
|
22327
|
+
var ye;
|
22328
|
+
const re = D.body.getReader(), ae = await Be(
|
22329
|
+
re,
|
22330
|
+
V
|
22326
22331
|
);
|
22327
|
-
return (
|
22328
|
-
|
22329
|
-
|
22332
|
+
return (ye = ae == null ? void 0 : ae[0]) != null && ye.tool_calls ? ae : await Oe(
|
22333
|
+
re,
|
22334
|
+
V
|
22330
22335
|
);
|
22331
|
-
}, at = async (
|
22332
|
-
var
|
22336
|
+
}, at = async (D) => {
|
22337
|
+
var V;
|
22333
22338
|
try {
|
22334
|
-
if (
|
22339
|
+
if (D.trim().length === 0)
|
22335
22340
|
return;
|
22336
|
-
const
|
22341
|
+
const re = /* @__PURE__ */ new Date();
|
22337
22342
|
K(!1), B(!1);
|
22338
22343
|
const ae = m.filter((ge) => ge.role === "user").length + 1;
|
22339
|
-
if (
|
22344
|
+
if (ne({
|
22340
22345
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
|
22341
22346
|
payload: {
|
22342
22347
|
category: "2u",
|
22343
22348
|
label: "xpert-chatbot",
|
22344
22349
|
totalUserInputMessagesSent: ae,
|
22345
|
-
userInputMessage:
|
22350
|
+
userInputMessage: D,
|
22346
22351
|
isTestUser: g
|
22347
22352
|
}
|
22348
|
-
}),
|
22349
|
-
await p(
|
22353
|
+
}), Te(), y(!0), p) {
|
22354
|
+
await p(D), y(!1);
|
22350
22355
|
return;
|
22351
22356
|
}
|
22352
22357
|
let ue = null;
|
22353
|
-
r.conversationHistory.enabled && (ue = _s(a)), f({ role: "user", content:
|
22354
|
-
const
|
22358
|
+
r.conversationHistory.enabled && (ue = _s(a)), f({ role: "user", content: D });
|
22359
|
+
const ye = [
|
22355
22360
|
...m,
|
22356
|
-
{ role: "user", content:
|
22361
|
+
{ role: "user", content: D }
|
22357
22362
|
].map((ge) => ({
|
22358
22363
|
role: ge.role,
|
22359
22364
|
content: ge.content,
|
22360
22365
|
...ge.toolCalls && { tool_calls: ge.toolCalls },
|
22361
22366
|
...ge.toolCallId && { tool_call_id: ge.toolCallId }
|
22362
|
-
})).filter(({ role: ge }) => ["assistant", "tool", "user"].includes(ge)),
|
22367
|
+
})).filter(({ role: ge }) => ["assistant", "tool", "user"].includes(ge)), Ee = await fetch(t.endpoint, {
|
22363
22368
|
method: "POST",
|
22364
22369
|
headers: { "Content-Type": "application/json" },
|
22365
22370
|
body: JSON.stringify({
|
22366
|
-
[t == null ? void 0 : t.messagesKey]:
|
22371
|
+
[t == null ? void 0 : t.messagesKey]: ye,
|
22367
22372
|
...t.payloadParams,
|
22368
22373
|
...ue && {
|
22369
22374
|
conversation_id: ue
|
22370
22375
|
}
|
22371
22376
|
})
|
22372
22377
|
});
|
22373
|
-
if (!
|
22374
|
-
throw new Error(`HTTPError: ${
|
22378
|
+
if (!Ee.ok)
|
22379
|
+
throw new Error(`HTTPError: ${Ee.status} ${Ee.statusText}`);
|
22375
22380
|
y(!1);
|
22376
|
-
let
|
22377
|
-
const
|
22378
|
-
JSON.stringify(
|
22381
|
+
let De = (V = t.payloadParams) != null && V.stream ? await We(Ee, ue) : await ve(Ee, ue);
|
22382
|
+
const we = /* @__PURE__ */ new Date(), Ge = t3(
|
22383
|
+
JSON.stringify(ye)
|
22379
22384
|
);
|
22380
|
-
|
22385
|
+
xe({
|
22381
22386
|
conversationByteSize: Ge,
|
22382
|
-
conversationSize: m.length +
|
22383
|
-
userInputMessage:
|
22384
|
-
apiResponseMessage:
|
22385
|
-
elapsedSeconds: JT(
|
22386
|
-
}), M(!1),
|
22387
|
-
} catch (
|
22388
|
-
y(!1),
|
22387
|
+
conversationSize: m.length + De.length + 1,
|
22388
|
+
userInputMessage: D,
|
22389
|
+
apiResponseMessage: De.map((ge) => ge.content ?? "").join(" "),
|
22390
|
+
elapsedSeconds: JT(re, we)
|
22391
|
+
}), M(!1), Te(), K(!0);
|
22392
|
+
} catch (re) {
|
22393
|
+
y(!1), Te(), B(!0), console.error(re);
|
22389
22394
|
}
|
22390
22395
|
}, _t = () => {
|
22391
|
-
|
22396
|
+
$(!1), Z(!0), w(!0), oe(), ne({
|
22392
22397
|
name: `${s.prefix}.bi.xpert.chatbot.action.button.clicked`,
|
22393
22398
|
payload: {
|
22394
22399
|
category: "2u",
|
@@ -22396,17 +22401,17 @@ function md({ submitEventExternal: e = null }) {
|
|
22396
22401
|
isTestUser: g
|
22397
22402
|
}
|
22398
22403
|
});
|
22399
|
-
}, wn = (
|
22400
|
-
|
22401
|
-
name: `${s.prefix}.bi.xpert.chatbot.${
|
22404
|
+
}, wn = (D) => {
|
22405
|
+
ne({
|
22406
|
+
name: `${s.prefix}.bi.xpert.chatbot.${D ? "normal" : "expand"}.size.button.clicked`,
|
22402
22407
|
payload: {
|
22403
22408
|
category: "2u",
|
22404
22409
|
label: "xpert-chatbot",
|
22405
22410
|
isTestUser: g
|
22406
22411
|
}
|
22407
|
-
}), w(
|
22412
|
+
}), w(D);
|
22408
22413
|
}, Pn = () => {
|
22409
|
-
Z(!0), w(!0), oe(),
|
22414
|
+
Z(!0), w(!0), oe(), ne({
|
22410
22415
|
name: `${s.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
|
22411
22416
|
payload: {
|
22412
22417
|
category: "2u",
|
@@ -22415,7 +22420,7 @@ function md({ submitEventExternal: e = null }) {
|
|
22415
22420
|
}
|
22416
22421
|
});
|
22417
22422
|
}, fn = () => {
|
22418
|
-
|
22423
|
+
ne({
|
22419
22424
|
name: `${s.prefix}.bi.xpert.chatbot.proactive.message.closed`,
|
22420
22425
|
payload: {
|
22421
22426
|
category: "2u",
|
@@ -22424,7 +22429,7 @@ function md({ submitEventExternal: e = null }) {
|
|
22424
22429
|
}
|
22425
22430
|
});
|
22426
22431
|
}, hn = () => {
|
22427
|
-
Z(!1), U(!1),
|
22432
|
+
Z(!1), U(!1), ne({
|
22428
22433
|
name: `${s.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
|
22429
22434
|
payload: {
|
22430
22435
|
category: "2u",
|
@@ -22432,28 +22437,28 @@ function md({ submitEventExternal: e = null }) {
|
|
22432
22437
|
isTestUser: g
|
22433
22438
|
}
|
22434
22439
|
});
|
22435
|
-
}, pn = (
|
22436
|
-
I(
|
22437
|
-
}, Mn = async (
|
22440
|
+
}, pn = (D) => {
|
22441
|
+
I(D.target.value);
|
22442
|
+
}, Mn = async (D, V = "") => {
|
22438
22443
|
if (h) {
|
22439
|
-
await h({ index:
|
22444
|
+
await h({ index: D, type: V }), M(!1);
|
22440
22445
|
return;
|
22441
22446
|
}
|
22442
|
-
const
|
22443
|
-
name: `${s.prefix}.bi.xpert.chatbot.feedback.thumbs.${
|
22447
|
+
const re = m.map((ae, ue) => D === ue ? (ne({
|
22448
|
+
name: `${s.prefix}.bi.xpert.chatbot.feedback.thumbs.${V.toLowerCase()}.clicked`,
|
22444
22449
|
payload: {
|
22445
22450
|
category: "2u",
|
22446
22451
|
label: "xpert-chatbot",
|
22447
|
-
userInputMessage: m[
|
22448
|
-
apiResponseMessageIndex:
|
22449
|
-
apiResponseMessage: m[
|
22452
|
+
userInputMessage: m[D - 1],
|
22453
|
+
apiResponseMessageIndex: D,
|
22454
|
+
apiResponseMessage: m[D],
|
22450
22455
|
isTestUser: g
|
22451
22456
|
}
|
22452
22457
|
}), {
|
22453
22458
|
...ae,
|
22454
|
-
feedbackThumbType:
|
22459
|
+
feedbackThumbType: V
|
22455
22460
|
}) : ae);
|
22456
|
-
b(
|
22461
|
+
b(re), M(!1);
|
22457
22462
|
}, St = (Xt = i == null ? void 0 : i.animatedGraduate) == null ? void 0 : Xt.enabled, jt = u != null && u.enabled ? _ ? (mn = u == null ? void 0 : u.style) == null ? void 0 : mn.mobile : u == null ? void 0 : u.style : null;
|
22458
22463
|
return (
|
22459
22464
|
// do not remove this class as it's needed to turn off chatbot
|
@@ -22505,7 +22510,7 @@ function md({ submitEventExternal: e = null }) {
|
|
22505
22510
|
}
|
22506
22511
|
),
|
22507
22512
|
c && /* @__PURE__ */ v.jsx(qT, {}),
|
22508
|
-
W && !z && /* @__PURE__ */ v.jsx(zs, { isMounted:
|
22513
|
+
W && !z && /* @__PURE__ */ v.jsx(zs, { isMounted: R, children: /* @__PURE__ */ v.jsx(
|
22509
22514
|
"div",
|
22510
22515
|
{
|
22511
22516
|
ref: d,
|
@@ -22516,7 +22521,7 @@ function md({ submitEventExternal: e = null }) {
|
|
22516
22521
|
{
|
22517
22522
|
onClose: hn,
|
22518
22523
|
handleResizeButtonClick: wn,
|
22519
|
-
isMounted:
|
22524
|
+
isMounted: R,
|
22520
22525
|
setIsMounted: U
|
22521
22526
|
}
|
22522
22527
|
),
|
@@ -22530,9 +22535,9 @@ function md({ submitEventExternal: e = null }) {
|
|
22530
22535
|
handleSend: at,
|
22531
22536
|
inputRef: q,
|
22532
22537
|
isTestUser: g,
|
22533
|
-
setLiveChatOpen:
|
22534
|
-
submitEvent:
|
22535
|
-
userInput:
|
22538
|
+
setLiveChatOpen: $,
|
22539
|
+
submitEvent: ne,
|
22540
|
+
userInput: L
|
22536
22541
|
}
|
22537
22542
|
),
|
22538
22543
|
T === Ut.LIVECHAT && /* @__PURE__ */ v.jsx(hd, {})
|