@2uinc/frontend-component-xpert-chatbot 1.13.6-beta.1 → 1.13.6-beta.2
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 +341 -339
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import tt, { createContext as ns, useMemo as rs, useState as ye, useCallback as vt, useEffect as
|
1
|
+
import tt, { createContext as ns, useMemo as rs, useState as ye, useCallback as vt, useEffect as xe, useContext as _e, useRef as We, forwardRef as To, createElement as sr } from "react";
|
2
2
|
const is = {
|
3
3
|
xpertKey: "edx",
|
4
4
|
chatApi: {
|
@@ -621,7 +621,7 @@ function ur(e, t) {
|
|
621
621
|
}
|
622
622
|
);
|
623
623
|
}
|
624
|
-
var Le = ur(ys, { path: "/" }), jo = { exports: {} }, Ms = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",
|
624
|
+
var Le = ur(ys, { path: "/" }), jo = { exports: {} }, Ms = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", bs = Ms, xs = bs;
|
625
625
|
function Eo() {
|
626
626
|
}
|
627
627
|
function Co() {
|
@@ -629,7 +629,7 @@ function Co() {
|
|
629
629
|
Co.resetWarningCache = Eo;
|
630
630
|
var ws = function() {
|
631
631
|
function e(r, i, o, a, l, s) {
|
632
|
-
if (s !==
|
632
|
+
if (s !== xs) {
|
633
633
|
var u = new Error(
|
634
634
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
635
635
|
);
|
@@ -671,8 +671,8 @@ const I = /* @__PURE__ */ nt(Q);
|
|
671
671
|
var dn = { exports: {} };
|
672
672
|
dn.exports;
|
673
673
|
(function(e, t) {
|
674
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", f = "[object Function]", v = "[object GeneratorFunction]",
|
675
|
-
h[A] = h[w] = h[j] = h[O] = h[F] = h[B] = h[V] = h[q] = h[K] = !0, h[l] = h[s] = h[W] = h[c] = h[X] = h[p] = h[m] = h[f] = h[
|
674
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", f = "[object Function]", v = "[object GeneratorFunction]", x = "[object Map]", k = "[object Number]", M = "[object Null]", z = "[object Object]", E = "[object Proxy]", _ = "[object RegExp]", U = "[object Set]", b = "[object String]", L = "[object Undefined]", $ = "[object WeakMap]", W = "[object ArrayBuffer]", X = "[object DataView]", A = "[object Float32Array]", w = "[object Float64Array]", j = "[object Int8Array]", O = "[object Int16Array]", F = "[object Int32Array]", B = "[object Uint8Array]", V = "[object Uint8ClampedArray]", q = "[object Uint16Array]", K = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, he = /^\[object .+?Constructor\]$/, Me = /^(?:0|[1-9]\d*)$/, h = {};
|
675
|
+
h[A] = h[w] = h[j] = h[O] = h[F] = h[B] = h[V] = h[q] = h[K] = !0, h[l] = h[s] = h[W] = h[c] = h[X] = h[p] = h[m] = h[f] = h[x] = h[k] = h[z] = h[_] = h[U] = h[b] = h[$] = !1;
|
676
676
|
var ge = typeof en == "object" && en && en.Object === Object && en, De = typeof self == "object" && self && self.Object === Object && self, re = ge || De || Function("return this")(), we = t && !t.nodeType && t, ve = we && !0 && e && !e.nodeType && e, Be = ve && ve.exports === we, Ae = Be && ge.process, Ke = function() {
|
677
677
|
try {
|
678
678
|
var d = ve && ve.require && ve.require("util").types;
|
@@ -824,18 +824,18 @@ dn.exports;
|
|
824
824
|
return T.set(d, y), this.size += T.size == P ? 0 : 1, this;
|
825
825
|
}
|
826
826
|
Mt.prototype.clear = dl, Mt.prototype.delete = hl, Mt.prototype.get = gl, Mt.prototype.has = ml, Mt.prototype.set = yl;
|
827
|
-
function
|
827
|
+
function bt(d) {
|
828
828
|
var y = this.__data__ = new Ze(d);
|
829
829
|
this.size = y.size;
|
830
830
|
}
|
831
831
|
function Ml() {
|
832
832
|
this.__data__ = new Ze(), this.size = 0;
|
833
833
|
}
|
834
|
-
function
|
834
|
+
function bl(d) {
|
835
835
|
var y = this.__data__, T = y.delete(d);
|
836
836
|
return this.size = y.size, T;
|
837
837
|
}
|
838
|
-
function
|
838
|
+
function xl(d) {
|
839
839
|
return this.__data__.get(d);
|
840
840
|
}
|
841
841
|
function wl(d) {
|
@@ -851,7 +851,7 @@ dn.exports;
|
|
851
851
|
}
|
852
852
|
return T.set(d, y), this.size = T.size, this;
|
853
853
|
}
|
854
|
-
|
854
|
+
bt.prototype.clear = Ml, bt.prototype.delete = bl, bt.prototype.get = xl, bt.prototype.has = wl, bt.prototype.set = vl;
|
855
855
|
function Tl(d, y) {
|
856
856
|
var T = Hn(d), P = !T && Yn(d), ne = !T && !P && li(d), se = !T && !P && !ne && ui(d), fe = T || P || ne || se, te = fe ? jt(d.length, String) : [], de = te.length;
|
857
857
|
for (var Oe in d)
|
@@ -909,7 +909,7 @@ dn.exports;
|
|
909
909
|
}
|
910
910
|
function ii(d, y, T, P, ne) {
|
911
911
|
d !== y && Il(y, function(se, fe) {
|
912
|
-
if (ne || (ne = new
|
912
|
+
if (ne || (ne = new bt()), ut(se))
|
913
913
|
El(d, y, fe, T, ii, P, ne);
|
914
914
|
else {
|
915
915
|
var te = P ? P(Qn(d, fe), se, fe + "", d, y, ne) : void 0;
|
@@ -1393,7 +1393,7 @@ const Lo = /* @__PURE__ */ nt(ks), js = 576, Es = (e) => {
|
|
1393
1393
|
).matches
|
1394
1394
|
);
|
1395
1395
|
}, [e]);
|
1396
|
-
return
|
1396
|
+
return xe(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
|
1397
1397
|
}, rt = Es, Cs = 991;
|
1398
1398
|
function wn({
|
1399
1399
|
label: e,
|
@@ -1407,6 +1407,8 @@ function wn({
|
|
1407
1407
|
return /* @__PURE__ */ N.jsx(
|
1408
1408
|
"button",
|
1409
1409
|
{
|
1410
|
+
id: "xpert_chatbot__floating-action-btn",
|
1411
|
+
tabIndex: -1,
|
1410
1412
|
type: "button",
|
1411
1413
|
"aria-label": e,
|
1412
1414
|
className: Lo(
|
@@ -1478,11 +1480,11 @@ const zs = 991, Ls = 1500, _s = `The parent container is wider than the chatbot
|
|
1478
1480
|
eyes follow your mouse when you hover near it.`, Er = ({
|
1479
1481
|
handleFloatingActionButtonClick: e
|
1480
1482
|
}) => {
|
1481
|
-
var m, f, v,
|
1483
|
+
var m, f, v, x, k, M, z;
|
1482
1484
|
const { xpertKey: t, launchButton: n } = _e(Fe), r = !Le.get(
|
1483
1485
|
`${t}-proactive-message-xpert-chatbot`
|
1484
1486
|
), i = We(null), o = We(!1), a = r ? (m = n.animatedGraduate) == null ? void 0 : m.delayMs : ((f = n.animatedGraduate) == null ? void 0 : f.delayMs) * 2, [l, s] = ye(!1), u = rt(zs);
|
1485
|
-
|
1487
|
+
xe(() => {
|
1486
1488
|
const _ = setTimeout(
|
1487
1489
|
() => {
|
1488
1490
|
s(!0);
|
@@ -1492,12 +1494,12 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1492
1494
|
return () => {
|
1493
1495
|
clearTimeout(_);
|
1494
1496
|
};
|
1495
|
-
}, [a]),
|
1497
|
+
}, [a]), xe(() => {
|
1496
1498
|
const E = (_) => {
|
1497
1499
|
const U = window.matchMedia(
|
1498
1500
|
`(max-width: ${Ls}px)`
|
1499
|
-
).matches,
|
1500
|
-
if (!(o != null && o.current) || U ||
|
1501
|
+
).matches, b = window.devicePixelRatio > 1.5;
|
1502
|
+
if (!(o != null && o.current) || U || b)
|
1501
1503
|
return;
|
1502
1504
|
i.current.querySelectorAll(
|
1503
1505
|
".xpert_chatbot__animated_graduate__pupil"
|
@@ -1531,7 +1533,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1531
1533
|
onClick: e,
|
1532
1534
|
label: "Open XPERT Chatbot",
|
1533
1535
|
className: "xpert-chatbot-button__animated_graduate__launch-button",
|
1534
|
-
style: u ? { ...(
|
1536
|
+
style: u ? { ...(x = (v = n.style) == null ? void 0 : v.mobile) == null ? void 0 : x.animatedGraduateExperiment } : { ...(k = n.style) == null ? void 0 : k.animatedGraduateExperiment },
|
1535
1537
|
"aria-haspopup": "dialog",
|
1536
1538
|
"aria-expanded": open,
|
1537
1539
|
children: /* @__PURE__ */ N.jsx("div", { ref: i, children: /* @__PURE__ */ N.jsxs(
|
@@ -1975,9 +1977,9 @@ var Mi = {
|
|
1975
1977
|
return Ut(t) && !t.shiftKey;
|
1976
1978
|
}, uu = function(t) {
|
1977
1979
|
return Ut(t) && t.shiftKey;
|
1978
|
-
},
|
1980
|
+
}, bi = function(t) {
|
1979
1981
|
return setTimeout(t, 0);
|
1980
|
-
},
|
1982
|
+
}, xi = function(t, n) {
|
1981
1983
|
var r = -1;
|
1982
1984
|
return t.every(function(i, o) {
|
1983
1985
|
return n(i) ? (r = o, !1) : !0;
|
@@ -2144,7 +2146,7 @@ var Mi = {
|
|
2144
2146
|
preventScroll: !!o.preventScroll
|
2145
2147
|
}), a.mostRecentlyFocusedNode = w, au(w) && w.select();
|
2146
2148
|
}
|
2147
|
-
},
|
2149
|
+
}, x = function(w) {
|
2148
2150
|
var j = c("setReturnFocus", w);
|
2149
2151
|
return j || (j === !1 ? !1 : w);
|
2150
2152
|
}, k = function(w) {
|
@@ -2156,7 +2158,7 @@ var Mi = {
|
|
2156
2158
|
if (q < 0)
|
2157
2159
|
B ? V = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : V = a.tabbableGroups[0].firstTabbableNode;
|
2158
2160
|
else if (B) {
|
2159
|
-
var g =
|
2161
|
+
var g = xi(a.tabbableGroups, function(re) {
|
2160
2162
|
var we = re.firstTabbableNode;
|
2161
2163
|
return j === we;
|
2162
2164
|
});
|
@@ -2166,7 +2168,7 @@ var Mi = {
|
|
2166
2168
|
} else
|
2167
2169
|
Ut(O) || (V = K.nextTabbableNode(j, !1));
|
2168
2170
|
} else {
|
2169
|
-
var h =
|
2171
|
+
var h = xi(a.tabbableGroups, function(re) {
|
2170
2172
|
var we = re.lastTabbableNode;
|
2171
2173
|
return j === we;
|
2172
2174
|
});
|
@@ -2245,9 +2247,9 @@ var Mi = {
|
|
2245
2247
|
}, U = function(w) {
|
2246
2248
|
var j = nn(w);
|
2247
2249
|
u(j, w) >= 0 || Lt(o.clickOutsideDeactivates, w) || Lt(o.allowOutsideClick, w) || (w.preventDefault(), w.stopImmediatePropagation());
|
2248
|
-
},
|
2250
|
+
}, b = function() {
|
2249
2251
|
if (a.active)
|
2250
|
-
return Mi.activateTrap(i, l), a.delayInitialFocusTimer = o.delayInitialFocus ?
|
2252
|
+
return Mi.activateTrap(i, l), a.delayInitialFocusTimer = o.delayInitialFocus ? bi(function() {
|
2251
2253
|
v(p());
|
2252
2254
|
}) : v(p()), r.addEventListener("focusin", z, !0), r.addEventListener("mousedown", M, {
|
2253
2255
|
capture: !0,
|
@@ -2294,7 +2296,7 @@ var Mi = {
|
|
2294
2296
|
var j = s(w, "onActivate"), O = s(w, "onPostActivate"), F = s(w, "checkCanFocusTrap");
|
2295
2297
|
F || m(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = r.activeElement, j == null || j();
|
2296
2298
|
var B = function() {
|
2297
|
-
F && m(),
|
2299
|
+
F && m(), b(), X(), O == null || O();
|
2298
2300
|
};
|
2299
2301
|
return F ? (F(a.containers.concat()).then(B, B), this) : (B(), this);
|
2300
2302
|
},
|
@@ -2310,11 +2312,11 @@ var Mi = {
|
|
2310
2312
|
var O = s(j, "onDeactivate"), F = s(j, "onPostDeactivate"), B = s(j, "checkCanReturnFocus"), V = s(j, "returnFocus", "returnFocusOnDeactivate");
|
2311
2313
|
O == null || O();
|
2312
2314
|
var q = function() {
|
2313
|
-
|
2314
|
-
V && v(
|
2315
|
+
bi(function() {
|
2316
|
+
V && v(x(a.nodeFocusedBeforeActivation)), F == null || F();
|
2315
2317
|
});
|
2316
2318
|
};
|
2317
|
-
return V && B ? (B(
|
2319
|
+
return V && B ? (B(x(a.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
|
2318
2320
|
},
|
2319
2321
|
pause: function(w) {
|
2320
2322
|
if (a.paused || !a.active)
|
@@ -2326,7 +2328,7 @@ var Mi = {
|
|
2326
2328
|
if (!a.paused || !a.active)
|
2327
2329
|
return this;
|
2328
2330
|
var j = s(w, "onUnpause"), O = s(w, "onPostUnpause");
|
2329
|
-
return a.paused = !1, j == null || j(), m(),
|
2331
|
+
return a.paused = !1, j == null || j(), m(), b(), X(), O == null || O(), this;
|
2330
2332
|
},
|
2331
2333
|
updateContainerElements: function(w) {
|
2332
2334
|
var j = [].concat(w).filter(Boolean);
|
@@ -2372,7 +2374,7 @@ function pr(e, t) {
|
|
2372
2374
|
}, pr(e, t);
|
2373
2375
|
}
|
2374
2376
|
function Mu(e) {
|
2375
|
-
var t =
|
2377
|
+
var t = xu();
|
2376
2378
|
return function() {
|
2377
2379
|
var r = Mn(e), i;
|
2378
2380
|
if (t) {
|
@@ -2380,10 +2382,10 @@ function Mu(e) {
|
|
2380
2382
|
i = Reflect.construct(r, arguments, o);
|
2381
2383
|
} else
|
2382
2384
|
i = r.apply(this, arguments);
|
2383
|
-
return
|
2385
|
+
return bu(this, i);
|
2384
2386
|
};
|
2385
2387
|
}
|
2386
|
-
function
|
2388
|
+
function bu(e, t) {
|
2387
2389
|
if (t && (Tt(t) === "object" || typeof t == "function"))
|
2388
2390
|
return t;
|
2389
2391
|
if (t !== void 0)
|
@@ -2395,7 +2397,7 @@ function Rt(e) {
|
|
2395
2397
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
2396
2398
|
return e;
|
2397
2399
|
}
|
2398
|
-
function
|
2400
|
+
function xu() {
|
2399
2401
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
2400
2402
|
return !1;
|
2401
2403
|
if (typeof Proxy == "function")
|
@@ -2736,13 +2738,13 @@ const qo = Object.freeze(
|
|
2736
2738
|
width: 16,
|
2737
2739
|
height: 16
|
2738
2740
|
}
|
2739
|
-
),
|
2741
|
+
), bn = Object.freeze({
|
2740
2742
|
rotate: 0,
|
2741
2743
|
vFlip: !1,
|
2742
2744
|
hFlip: !1
|
2743
2745
|
}), Sr = Object.freeze({
|
2744
2746
|
...qo,
|
2745
|
-
...
|
2747
|
+
...bn
|
2746
2748
|
}), fr = Object.freeze({
|
2747
2749
|
...Sr,
|
2748
2750
|
body: "",
|
@@ -2757,7 +2759,7 @@ function Cu(e, t) {
|
|
2757
2759
|
function vi(e, t) {
|
2758
2760
|
const n = Cu(e, t);
|
2759
2761
|
for (const r in fr)
|
2760
|
-
r in
|
2762
|
+
r in bn ? r in e && !(r in n) && (n[r] = bn[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
2761
2763
|
return n;
|
2762
2764
|
}
|
2763
2765
|
function Au(e, t) {
|
@@ -2943,7 +2945,7 @@ const Zo = Object.freeze({
|
|
2943
2945
|
// Dimensions
|
2944
2946
|
...Zo,
|
2945
2947
|
// Transformations
|
2946
|
-
...
|
2948
|
+
...bn
|
2947
2949
|
}), Pu = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Ru = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
2948
2950
|
function Ii(e, t, n) {
|
2949
2951
|
if (t === 1)
|
@@ -3007,9 +3009,9 @@ function Hu(e, t) {
|
|
3007
3009
|
height: n.height
|
3008
3010
|
};
|
3009
3011
|
let o = n.body;
|
3010
|
-
[n, r].forEach((
|
3011
|
-
const k = [], M =
|
3012
|
-
let E =
|
3012
|
+
[n, r].forEach((x) => {
|
3013
|
+
const k = [], M = x.hFlip, z = x.vFlip;
|
3014
|
+
let E = x.rotate;
|
3013
3015
|
M ? z ? E += 2 : (k.push(
|
3014
3016
|
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
3015
3017
|
), k.push("scale(-1 1)"), i.top = i.left = 0) : z && (k.push(
|
@@ -3042,8 +3044,8 @@ function Hu(e, t) {
|
|
3042
3044
|
const a = r.width, l = r.height, s = i.width, u = i.height;
|
3043
3045
|
let c, p;
|
3044
3046
|
a === null ? (p = l === null ? "1em" : l === "auto" ? u : l, c = Ii(p, s / u)) : (c = a === "auto" ? s : a, p = l === null ? Ii(c, u / s) : l === "auto" ? u : l);
|
3045
|
-
const m = {}, f = (
|
3046
|
-
Yu(k) || (m[
|
3047
|
+
const m = {}, f = (x, k) => {
|
3048
|
+
Yu(k) || (m[x] = k.toString());
|
3047
3049
|
};
|
3048
3050
|
f("width", c), f("height", p);
|
3049
3051
|
const v = [i.left, i.top, s, u];
|
@@ -3330,12 +3332,12 @@ function cc(e, t, n, r) {
|
|
3330
3332
|
const i = e.resources.length, o = e.random ? Math.floor(Math.random() * i) : e.index;
|
3331
3333
|
let a;
|
3332
3334
|
if (e.random) {
|
3333
|
-
let
|
3334
|
-
for (a = [];
|
3335
|
-
const L = Math.floor(Math.random() *
|
3336
|
-
a.push(
|
3335
|
+
let b = e.resources.slice(0);
|
3336
|
+
for (a = []; b.length > 1; ) {
|
3337
|
+
const L = Math.floor(Math.random() * b.length);
|
3338
|
+
a.push(b[L]), b = b.slice(0, L).concat(b.slice(L + 1));
|
3337
3339
|
}
|
3338
|
-
a = a.concat(
|
3340
|
+
a = a.concat(b);
|
3339
3341
|
} else
|
3340
3342
|
a = e.resources.slice(o).concat(e.resources.slice(0, o));
|
3341
3343
|
const l = Date.now();
|
@@ -3344,13 +3346,13 @@ function cc(e, t, n, r) {
|
|
3344
3346
|
function v() {
|
3345
3347
|
p && (clearTimeout(p), p = null);
|
3346
3348
|
}
|
3347
|
-
function
|
3348
|
-
s === "pending" && (s = "aborted"), v(), m.forEach((
|
3349
|
-
|
3349
|
+
function x() {
|
3350
|
+
s === "pending" && (s = "aborted"), v(), m.forEach((b) => {
|
3351
|
+
b.status === "pending" && (b.status = "aborted");
|
3350
3352
|
}), m = [];
|
3351
3353
|
}
|
3352
|
-
function k(
|
3353
|
-
L && (f = []), typeof
|
3354
|
+
function k(b, L) {
|
3355
|
+
L && (f = []), typeof b == "function" && f.push(b);
|
3354
3356
|
}
|
3355
3357
|
function M() {
|
3356
3358
|
return {
|
@@ -3360,22 +3362,22 @@ function cc(e, t, n, r) {
|
|
3360
3362
|
queriesSent: u,
|
3361
3363
|
queriesPending: m.length,
|
3362
3364
|
subscribe: k,
|
3363
|
-
abort:
|
3365
|
+
abort: x
|
3364
3366
|
};
|
3365
3367
|
}
|
3366
3368
|
function z() {
|
3367
|
-
s = "failed", f.forEach((
|
3368
|
-
|
3369
|
+
s = "failed", f.forEach((b) => {
|
3370
|
+
b(void 0, c);
|
3369
3371
|
});
|
3370
3372
|
}
|
3371
3373
|
function E() {
|
3372
|
-
m.forEach((
|
3373
|
-
|
3374
|
+
m.forEach((b) => {
|
3375
|
+
b.status === "pending" && (b.status = "aborted");
|
3374
3376
|
}), m = [];
|
3375
3377
|
}
|
3376
|
-
function _(
|
3378
|
+
function _(b, L, $) {
|
3377
3379
|
const W = L !== "success";
|
3378
|
-
switch (m = m.filter((X) => X !==
|
3380
|
+
switch (m = m.filter((X) => X !== b), s) {
|
3379
3381
|
case "pending":
|
3380
3382
|
break;
|
3381
3383
|
case "failed":
|
@@ -3394,7 +3396,7 @@ function cc(e, t, n, r) {
|
|
3394
3396
|
return;
|
3395
3397
|
}
|
3396
3398
|
if (v(), E(), !e.random) {
|
3397
|
-
const X = e.resources.indexOf(
|
3399
|
+
const X = e.resources.indexOf(b.resource);
|
3398
3400
|
X !== -1 && X !== e.index && (e.index = X);
|
3399
3401
|
}
|
3400
3402
|
s = "completed", f.forEach((X) => {
|
@@ -3405,8 +3407,8 @@ function cc(e, t, n, r) {
|
|
3405
3407
|
if (s !== "pending")
|
3406
3408
|
return;
|
3407
3409
|
v();
|
3408
|
-
const
|
3409
|
-
if (
|
3410
|
+
const b = a.shift();
|
3411
|
+
if (b === void 0) {
|
3410
3412
|
if (m.length) {
|
3411
3413
|
p = setTimeout(() => {
|
3412
3414
|
v(), s === "pending" && (E(), z());
|
@@ -3418,12 +3420,12 @@ function cc(e, t, n, r) {
|
|
3418
3420
|
}
|
3419
3421
|
const L = {
|
3420
3422
|
status: "pending",
|
3421
|
-
resource:
|
3423
|
+
resource: b,
|
3422
3424
|
callback: ($, W) => {
|
3423
3425
|
_(L, $, W);
|
3424
3426
|
}
|
3425
3427
|
};
|
3426
|
-
m.push(L), u++, p = setTimeout(U, e.rotate), n(
|
3428
|
+
m.push(L), u++, p = setTimeout(U, e.rotate), n(b, t, L.callback);
|
3427
3429
|
}
|
3428
3430
|
return setTimeout(U), M;
|
3429
3431
|
}
|
@@ -3635,7 +3637,7 @@ function Mc(e) {
|
|
3635
3637
|
e.iconsLoaderFlag = !1, oc(e);
|
3636
3638
|
}));
|
3637
3639
|
}
|
3638
|
-
function
|
3640
|
+
function bc(e, t) {
|
3639
3641
|
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
3640
3642
|
e.iconsQueueFlag = !1;
|
3641
3643
|
const { provider: n, prefix: r } = e, i = e.iconsToLoad;
|
@@ -3669,7 +3671,7 @@ function xc(e, t) {
|
|
3669
3671
|
});
|
3670
3672
|
}));
|
3671
3673
|
}
|
3672
|
-
const
|
3674
|
+
const xc = (e, t) => {
|
3673
3675
|
const n = sc(e, !0, Go()), r = ic(n);
|
3674
3676
|
if (!r.pending.length) {
|
3675
3677
|
let s = !0;
|
@@ -3698,7 +3700,7 @@ const bc = (e, t) => {
|
|
3698
3700
|
f.has(p) || (f.add(p), i[u][c].push(p));
|
3699
3701
|
}), o.forEach((s) => {
|
3700
3702
|
const { provider: u, prefix: c } = s;
|
3701
|
-
i[u][c].length &&
|
3703
|
+
i[u][c].length && bc(s, i[u][c]);
|
3702
3704
|
}), t ? lc(t, r, o) : Ai;
|
3703
3705
|
};
|
3704
3706
|
function wc(e, t) {
|
@@ -3880,14 +3882,14 @@ const zc = (e, t, n) => {
|
|
3880
3882
|
__html: Cc(Wu(u.body, M ? () => M + "ID" + k++ : "iconifyReact"))
|
3881
3883
|
}, sr("svg", s);
|
3882
3884
|
}
|
3883
|
-
const { body: p, width: m, height: f } = e, v = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1),
|
3885
|
+
const { body: p, width: m, height: f } = e, v = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1), x = Ic(p, {
|
3884
3886
|
...c,
|
3885
3887
|
width: m + "",
|
3886
3888
|
height: f + ""
|
3887
3889
|
});
|
3888
3890
|
return s.style = {
|
3889
3891
|
...a,
|
3890
|
-
"--svg": jc(
|
3892
|
+
"--svg": jc(x),
|
3891
3893
|
width: zi(c.width),
|
3892
3894
|
height: zi(c.height),
|
3893
3895
|
...Sc,
|
@@ -3939,11 +3941,11 @@ function sa(e) {
|
|
3939
3941
|
name: "",
|
3940
3942
|
data: v
|
3941
3943
|
};
|
3942
|
-
const
|
3943
|
-
if (
|
3944
|
+
const x = Ni(v);
|
3945
|
+
if (x)
|
3944
3946
|
return {
|
3945
3947
|
name: v,
|
3946
|
-
data:
|
3948
|
+
data: x
|
3947
3949
|
};
|
3948
3950
|
}
|
3949
3951
|
return {
|
@@ -3969,20 +3971,20 @@ function sa(e) {
|
|
3969
3971
|
});
|
3970
3972
|
return;
|
3971
3973
|
}
|
3972
|
-
const
|
3974
|
+
const x = Ni(v);
|
3973
3975
|
if (u({
|
3974
3976
|
name: v,
|
3975
|
-
data:
|
3977
|
+
data: x
|
3976
3978
|
}))
|
3977
|
-
if (
|
3978
|
-
const k =
|
3979
|
+
if (x === void 0) {
|
3980
|
+
const k = xc([v], c);
|
3979
3981
|
i({
|
3980
3982
|
callback: k
|
3981
3983
|
});
|
3982
3984
|
} else
|
3983
|
-
|
3985
|
+
x && ((f = e.onLoad) === null || f === void 0 || f.call(e, v));
|
3984
3986
|
}
|
3985
|
-
|
3987
|
+
xe(() => (n(!0), s), []), xe(() => {
|
3986
3988
|
t && c();
|
3987
3989
|
}, [e.icon, t]);
|
3988
3990
|
const { name: p, data: m } = a;
|
@@ -4165,7 +4167,7 @@ function pa({
|
|
4165
4167
|
setIsMounted: r,
|
4166
4168
|
onClose: i
|
4167
4169
|
}) {
|
4168
|
-
var s, u, c, p, m, f, v,
|
4170
|
+
var s, u, c, p, m, f, v, x, k;
|
4169
4171
|
const { primaryColor: o, conversationScreen: a } = _e(Fe), l = rt(Rc);
|
4170
4172
|
return /* @__PURE__ */ N.jsxs(
|
4171
4173
|
"div",
|
@@ -4222,7 +4224,7 @@ function pa({
|
|
4222
4224
|
className: "xpert-chatbot-popup__header_container",
|
4223
4225
|
style: {
|
4224
4226
|
right: 0,
|
4225
|
-
background: ((k = (
|
4227
|
+
background: ((k = (x = a.header.container) == null ? void 0 : x.style) == null ? void 0 : k.backgroun) || o
|
4226
4228
|
}
|
4227
4229
|
}
|
4228
4230
|
)
|
@@ -4250,7 +4252,7 @@ function Ur({
|
|
4250
4252
|
userInput: u
|
4251
4253
|
}) {
|
4252
4254
|
const { primaryColor: c } = _e(Fe);
|
4253
|
-
return
|
4255
|
+
return xe(() => {
|
4254
4256
|
var p;
|
4255
4257
|
(o || a) && ((p = l.current) == null || p.focus());
|
4256
4258
|
}, [a, o, l]), /* @__PURE__ */ N.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
|
@@ -4341,13 +4343,13 @@ var Bc = function(t) {
|
|
4341
4343
|
};
|
4342
4344
|
const fa = /* @__PURE__ */ nt(Bc);
|
4343
4345
|
function Yt(e) {
|
4344
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? _i(e.position) : "start" in e || "end" in e ? _i(e) : "line" in e || "column" in e ?
|
4346
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? _i(e.position) : "start" in e || "end" in e ? _i(e) : "line" in e || "column" in e ? br(e) : "";
|
4345
4347
|
}
|
4346
|
-
function
|
4348
|
+
function br(e) {
|
4347
4349
|
return Fi(e && e.line) + ":" + Fi(e && e.column);
|
4348
4350
|
}
|
4349
4351
|
function _i(e) {
|
4350
|
-
return
|
4352
|
+
return br(e && e.start) + "-" + br(e && e.end);
|
4351
4353
|
}
|
4352
4354
|
function Fi(e) {
|
4353
4355
|
return e && typeof e == "number" ? e : 1;
|
@@ -4514,7 +4516,7 @@ const Wc = { cwd: Gc };
|
|
4514
4516
|
function Gc() {
|
4515
4517
|
return "/";
|
4516
4518
|
}
|
4517
|
-
function
|
4519
|
+
function xr(e) {
|
4518
4520
|
return e !== null && typeof e == "object" && // @ts-expect-error: indexable.
|
4519
4521
|
e.href && // @ts-expect-error: indexable.
|
4520
4522
|
e.origin;
|
@@ -4522,7 +4524,7 @@ function br(e) {
|
|
4522
4524
|
function Zc(e) {
|
4523
4525
|
if (typeof e == "string")
|
4524
4526
|
e = new URL(e);
|
4525
|
-
else if (!
|
4527
|
+
else if (!xr(e)) {
|
4526
4528
|
const t = new TypeError(
|
4527
4529
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
4528
4530
|
);
|
@@ -4581,7 +4583,7 @@ class da {
|
|
4581
4583
|
*/
|
4582
4584
|
constructor(t) {
|
4583
4585
|
let n;
|
4584
|
-
t ? typeof t == "string" || Xc(t) ? n = { value: t } :
|
4586
|
+
t ? typeof t == "string" || Xc(t) ? n = { value: t } : xr(t) ? n = { path: t } : n = t : n = {}, this.data = {}, this.messages = [], this.history = [], this.cwd = Wc.cwd(), this.value, this.stored, this.result, this.map;
|
4585
4587
|
let r = -1;
|
4586
4588
|
for (; ++r < Kn.length; ) {
|
4587
4589
|
const o = Kn[r];
|
@@ -4609,7 +4611,7 @@ class da {
|
|
4609
4611
|
* @param {string | URL} path
|
4610
4612
|
*/
|
4611
4613
|
set path(t) {
|
4612
|
-
|
4614
|
+
xr(t) && (t = Zc(t)), Jn(t, "path"), this.path !== t && this.history.push(t);
|
4613
4615
|
}
|
4614
4616
|
/**
|
4615
4617
|
* Get the parent path (example: `'~'`).
|
@@ -4881,125 +4883,125 @@ function ma() {
|
|
4881
4883
|
let n = {}, r, i = -1;
|
4882
4884
|
return o.data = a, o.Parser = void 0, o.Compiler = void 0, o.freeze = l, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = p, o.runSync = m, o.process = f, o.processSync = v, o;
|
4883
4885
|
function o() {
|
4884
|
-
const
|
4886
|
+
const x = ma();
|
4885
4887
|
let k = -1;
|
4886
4888
|
for (; ++k < t.length; )
|
4887
|
-
|
4888
|
-
return
|
4889
|
+
x.use(...t[k]);
|
4890
|
+
return x.data(qi(!0, {}, n)), x;
|
4889
4891
|
}
|
4890
|
-
function a(
|
4891
|
-
return typeof
|
4892
|
+
function a(x, k) {
|
4893
|
+
return typeof x == "string" ? arguments.length === 2 ? (nr("data", r), n[x] = k, o) : ga.call(n, x) && n[x] || null : x ? (nr("data", r), n = x, o) : n;
|
4892
4894
|
}
|
4893
4895
|
function l() {
|
4894
4896
|
if (r)
|
4895
4897
|
return o;
|
4896
4898
|
for (; ++i < t.length; ) {
|
4897
|
-
const [
|
4899
|
+
const [x, ...k] = t[i];
|
4898
4900
|
if (k[0] === !1)
|
4899
4901
|
continue;
|
4900
4902
|
k[0] === !0 && (k[0] = void 0);
|
4901
|
-
const M =
|
4903
|
+
const M = x.call(o, ...k);
|
4902
4904
|
typeof M == "function" && e.use(M);
|
4903
4905
|
}
|
4904
4906
|
return r = !0, i = Number.POSITIVE_INFINITY, o;
|
4905
4907
|
}
|
4906
|
-
function s(
|
4908
|
+
function s(x, ...k) {
|
4907
4909
|
let M;
|
4908
|
-
if (nr("use", r),
|
4909
|
-
if (typeof b == "function")
|
4910
|
-
U(b, ...k);
|
4911
|
-
else if (typeof b == "object")
|
4912
|
-
Array.isArray(b) ? _(b) : E(b);
|
4913
|
-
else
|
4914
|
-
throw new TypeError("Expected usable value, not `" + b + "`");
|
4915
|
-
return M && (n.settings = Object.assign(n.settings || {}, M)), o;
|
4916
|
-
function z(x) {
|
4910
|
+
if (nr("use", r), x != null)
|
4917
4911
|
if (typeof x == "function")
|
4918
|
-
U(x);
|
4912
|
+
U(x, ...k);
|
4919
4913
|
else if (typeof x == "object")
|
4920
|
-
|
4921
|
-
|
4914
|
+
Array.isArray(x) ? _(x) : E(x);
|
4915
|
+
else
|
4916
|
+
throw new TypeError("Expected usable value, not `" + x + "`");
|
4917
|
+
return M && (n.settings = Object.assign(n.settings || {}, M)), o;
|
4918
|
+
function z(b) {
|
4919
|
+
if (typeof b == "function")
|
4920
|
+
U(b);
|
4921
|
+
else if (typeof b == "object")
|
4922
|
+
if (Array.isArray(b)) {
|
4923
|
+
const [L, ...$] = b;
|
4922
4924
|
U(L, ...$);
|
4923
4925
|
} else
|
4924
|
-
E(
|
4926
|
+
E(b);
|
4925
4927
|
else
|
4926
|
-
throw new TypeError("Expected usable value, not `" +
|
4928
|
+
throw new TypeError("Expected usable value, not `" + b + "`");
|
4927
4929
|
}
|
4928
|
-
function E(
|
4929
|
-
_(
|
4930
|
+
function E(b) {
|
4931
|
+
_(b.plugins), b.settings && (M = Object.assign(M || {}, b.settings));
|
4930
4932
|
}
|
4931
|
-
function _(
|
4933
|
+
function _(b) {
|
4932
4934
|
let L = -1;
|
4933
|
-
if (
|
4934
|
-
if (Array.isArray(
|
4935
|
-
for (; ++L <
|
4936
|
-
const $ =
|
4935
|
+
if (b != null)
|
4936
|
+
if (Array.isArray(b))
|
4937
|
+
for (; ++L < b.length; ) {
|
4938
|
+
const $ = b[L];
|
4937
4939
|
z($);
|
4938
4940
|
}
|
4939
4941
|
else
|
4940
|
-
throw new TypeError("Expected a list of plugins, not `" +
|
4942
|
+
throw new TypeError("Expected a list of plugins, not `" + b + "`");
|
4941
4943
|
}
|
4942
|
-
function U(
|
4944
|
+
function U(b, L) {
|
4943
4945
|
let $ = -1, W;
|
4944
4946
|
for (; ++$ < t.length; )
|
4945
|
-
if (t[$][0] ===
|
4947
|
+
if (t[$][0] === b) {
|
4946
4948
|
W = t[$];
|
4947
4949
|
break;
|
4948
4950
|
}
|
4949
4951
|
W ? (wr(W[1]) && wr(L) && (L = qi(!0, W[1], L)), W[1] = L) : t.push([...arguments]);
|
4950
4952
|
}
|
4951
4953
|
}
|
4952
|
-
function u(
|
4954
|
+
function u(x) {
|
4953
4955
|
o.freeze();
|
4954
|
-
const k = Pt(
|
4956
|
+
const k = Pt(x), M = o.Parser;
|
4955
4957
|
return er("parse", M), Vi(M, "parse") ? new M(String(k), k).parse() : M(String(k), k);
|
4956
4958
|
}
|
4957
|
-
function c(
|
4959
|
+
function c(x, k) {
|
4958
4960
|
o.freeze();
|
4959
4961
|
const M = Pt(k), z = o.Compiler;
|
4960
|
-
return tr("stringify", z), Wi(
|
4962
|
+
return tr("stringify", z), Wi(x), Vi(z, "compile") ? new z(x, M).compile() : z(x, M);
|
4961
4963
|
}
|
4962
|
-
function p(
|
4963
|
-
if (Wi(
|
4964
|
+
function p(x, k, M) {
|
4965
|
+
if (Wi(x), o.freeze(), !M && typeof k == "function" && (M = k, k = void 0), !M)
|
4964
4966
|
return new Promise(z);
|
4965
4967
|
z(null, M);
|
4966
4968
|
function z(E, _) {
|
4967
|
-
e.run(
|
4968
|
-
function U(
|
4969
|
-
L = L ||
|
4969
|
+
e.run(x, Pt(k), U);
|
4970
|
+
function U(b, L, $) {
|
4971
|
+
L = L || x, b ? _(b) : E ? E(L) : M(null, L, $);
|
4970
4972
|
}
|
4971
4973
|
}
|
4972
4974
|
}
|
4973
|
-
function m(
|
4975
|
+
function m(x, k) {
|
4974
4976
|
let M, z;
|
4975
|
-
return o.run(
|
4977
|
+
return o.run(x, k, E), Gi("runSync", "run", z), M;
|
4976
4978
|
function E(_, U) {
|
4977
4979
|
Ri(_), M = U, z = !0;
|
4978
4980
|
}
|
4979
4981
|
}
|
4980
|
-
function f(
|
4982
|
+
function f(x, k) {
|
4981
4983
|
if (o.freeze(), er("process", o.Parser), tr("process", o.Compiler), !k)
|
4982
4984
|
return new Promise(M);
|
4983
4985
|
M(null, k);
|
4984
4986
|
function M(z, E) {
|
4985
|
-
const _ = Pt(
|
4986
|
-
o.run(o.parse(_), _, (
|
4987
|
-
if (
|
4988
|
-
U(
|
4987
|
+
const _ = Pt(x);
|
4988
|
+
o.run(o.parse(_), _, (b, L, $) => {
|
4989
|
+
if (b || !L || !$)
|
4990
|
+
U(b);
|
4989
4991
|
else {
|
4990
4992
|
const W = o.stringify(L, $);
|
4991
|
-
W == null || (op(W) ? $.value = W : $.result = W), U(
|
4993
|
+
W == null || (op(W) ? $.value = W : $.result = W), U(b, $);
|
4992
4994
|
}
|
4993
4995
|
});
|
4994
|
-
function U(
|
4995
|
-
|
4996
|
+
function U(b, L) {
|
4997
|
+
b || !L ? E(b) : z ? z(L) : k(null, L);
|
4996
4998
|
}
|
4997
4999
|
}
|
4998
5000
|
}
|
4999
|
-
function v(
|
5001
|
+
function v(x) {
|
5000
5002
|
let k;
|
5001
5003
|
o.freeze(), er("processSync", o.Parser), tr("processSync", o.Compiler);
|
5002
|
-
const M = Pt(
|
5004
|
+
const M = Pt(x);
|
5003
5005
|
return o.process(M, z), Gi("processSync", "process", k), M;
|
5004
5006
|
function z(E) {
|
5005
5007
|
k = !0, Ri(E);
|
@@ -5162,9 +5164,9 @@ function pe(e, t, n, r) {
|
|
5162
5164
|
}
|
5163
5165
|
}
|
5164
5166
|
const Mp = {
|
5165
|
-
tokenize:
|
5167
|
+
tokenize: bp
|
5166
5168
|
};
|
5167
|
-
function
|
5169
|
+
function bp(e) {
|
5168
5170
|
const t = e.attempt(
|
5169
5171
|
this.parser.constructs.contentInitial,
|
5170
5172
|
r,
|
@@ -5197,7 +5199,7 @@ function xp(e) {
|
|
5197
5199
|
return G(l) ? (e.consume(l), e.exit("chunkText"), o) : (e.consume(l), a);
|
5198
5200
|
}
|
5199
5201
|
}
|
5200
|
-
const
|
5202
|
+
const xp = {
|
5201
5203
|
tokenize: wp
|
5202
5204
|
}, Xi = {
|
5203
5205
|
tokenize: vp
|
@@ -5221,16 +5223,16 @@ function wp(e) {
|
|
5221
5223
|
if (r++, t.containerState._closeFlow) {
|
5222
5224
|
t.containerState._closeFlow = void 0, i && z();
|
5223
5225
|
const _ = t.events.length;
|
5224
|
-
let U = _,
|
5226
|
+
let U = _, b;
|
5225
5227
|
for (; U--; )
|
5226
5228
|
if (t.events[U][0] === "exit" && t.events[U][1].type === "chunkFlow") {
|
5227
|
-
|
5229
|
+
b = t.events[U][1].end;
|
5228
5230
|
break;
|
5229
5231
|
}
|
5230
5232
|
M(r);
|
5231
5233
|
let L = _;
|
5232
5234
|
for (; L < t.events.length; )
|
5233
|
-
t.events[L][1].end = Object.assign({},
|
5235
|
+
t.events[L][1].end = Object.assign({}, b), L++;
|
5234
5236
|
return Ge(
|
5235
5237
|
t.events,
|
5236
5238
|
U + 1,
|
@@ -5279,25 +5281,25 @@ function wp(e) {
|
|
5279
5281
|
contentType: "flow",
|
5280
5282
|
previous: o,
|
5281
5283
|
_tokenizer: i
|
5282
|
-
}),
|
5284
|
+
}), x(E);
|
5283
5285
|
}
|
5284
|
-
function
|
5286
|
+
function x(E) {
|
5285
5287
|
if (E === null) {
|
5286
5288
|
k(e.exit("chunkFlow"), !0), M(0), e.consume(E);
|
5287
5289
|
return;
|
5288
5290
|
}
|
5289
|
-
return G(E) ? (e.consume(E), k(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(E),
|
5291
|
+
return G(E) ? (e.consume(E), k(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(E), x);
|
5290
5292
|
}
|
5291
5293
|
function k(E, _) {
|
5292
5294
|
const U = t.sliceStream(E);
|
5293
5295
|
if (_ && U.push(null), E.previous = o, o && (o.next = E), o = E, i.defineSkip(E.start), i.write(U), t.parser.lazy[E.start.line]) {
|
5294
|
-
let
|
5295
|
-
for (;
|
5296
|
+
let b = i.events.length;
|
5297
|
+
for (; b--; )
|
5296
5298
|
if (
|
5297
5299
|
// The token starts before the line ending…
|
5298
|
-
i.events[
|
5299
|
-
(!i.events[
|
5300
|
-
i.events[
|
5300
|
+
i.events[b][1].start.offset < a && // …and either is not ended yet…
|
5301
|
+
(!i.events[b][1].end || // …or ends after it.
|
5302
|
+
i.events[b][1].end.offset > a)
|
5301
5303
|
)
|
5302
5304
|
return;
|
5303
5305
|
const L = t.events.length;
|
@@ -5310,14 +5312,14 @@ function wp(e) {
|
|
5310
5312
|
}
|
5311
5313
|
W = !0;
|
5312
5314
|
}
|
5313
|
-
for (M(r),
|
5314
|
-
t.events[
|
5315
|
+
for (M(r), b = L; b < t.events.length; )
|
5316
|
+
t.events[b][1].end = Object.assign({}, X), b++;
|
5315
5317
|
Ge(
|
5316
5318
|
t.events,
|
5317
5319
|
$ + 1,
|
5318
5320
|
0,
|
5319
5321
|
t.events.slice(L)
|
5320
|
-
), t.events.length =
|
5322
|
+
), t.events.length = b;
|
5321
5323
|
}
|
5322
5324
|
}
|
5323
5325
|
function M(E) {
|
@@ -5529,7 +5531,7 @@ function Ep(e, t, n) {
|
|
5529
5531
|
function Cp(e) {
|
5530
5532
|
e.exit("blockQuote");
|
5531
5533
|
}
|
5532
|
-
const
|
5534
|
+
const ba = {
|
5533
5535
|
name: "characterEscape",
|
5534
5536
|
tokenize: Ap
|
5535
5537
|
};
|
@@ -5549,7 +5551,7 @@ function Qr(e) {
|
|
5549
5551
|
const n = to.textContent;
|
5550
5552
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
5551
5553
|
}
|
5552
|
-
const
|
5554
|
+
const xa = {
|
5553
5555
|
name: "characterReference",
|
5554
5556
|
tokenize: Sp
|
5555
5557
|
};
|
@@ -5589,77 +5591,77 @@ function Op(e, t, n) {
|
|
5589
5591
|
};
|
5590
5592
|
let o = 0, a = 0, l;
|
5591
5593
|
return s;
|
5592
|
-
function s(
|
5593
|
-
return u(
|
5594
|
+
function s(b) {
|
5595
|
+
return u(b);
|
5594
5596
|
}
|
5595
|
-
function u(
|
5597
|
+
function u(b) {
|
5596
5598
|
const L = r.events[r.events.length - 1];
|
5597
|
-
return o = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, l =
|
5599
|
+
return o = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, l = b, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(b);
|
5598
5600
|
}
|
5599
|
-
function c(
|
5600
|
-
return
|
5601
|
+
function c(b) {
|
5602
|
+
return b === l ? (a++, e.consume(b), c) : a < 3 ? n(b) : (e.exit("codeFencedFenceSequence"), ie(b) ? pe(e, p, "whitespace")(b) : p(b));
|
5601
5603
|
}
|
5602
|
-
function p(
|
5603
|
-
return
|
5604
|
+
function p(b) {
|
5605
|
+
return b === null || G(b) ? (e.exit("codeFencedFence"), r.interrupt ? t(b) : e.check(no, x, _)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
5604
5606
|
contentType: "string"
|
5605
|
-
}), m(
|
5607
|
+
}), m(b));
|
5606
5608
|
}
|
5607
|
-
function m(
|
5608
|
-
return
|
5609
|
+
function m(b) {
|
5610
|
+
return b === null || G(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(b)) : ie(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), pe(e, f, "whitespace")(b)) : b === 96 && b === l ? n(b) : (e.consume(b), m);
|
5609
5611
|
}
|
5610
|
-
function f(
|
5611
|
-
return
|
5612
|
+
function f(b) {
|
5613
|
+
return b === null || G(b) ? p(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
5612
5614
|
contentType: "string"
|
5613
|
-
}), v(
|
5615
|
+
}), v(b));
|
5614
5616
|
}
|
5615
|
-
function v(
|
5616
|
-
return
|
5617
|
+
function v(b) {
|
5618
|
+
return b === null || G(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(b)) : b === 96 && b === l ? n(b) : (e.consume(b), v);
|
5617
5619
|
}
|
5618
|
-
function b
|
5619
|
-
return e.attempt(i, _, k)(
|
5620
|
+
function x(b) {
|
5621
|
+
return e.attempt(i, _, k)(b);
|
5620
5622
|
}
|
5621
|
-
function k(
|
5622
|
-
return e.enter("lineEnding"), e.consume(
|
5623
|
+
function k(b) {
|
5624
|
+
return e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), M;
|
5623
5625
|
}
|
5624
|
-
function M(
|
5625
|
-
return o > 0 && ie(
|
5626
|
+
function M(b) {
|
5627
|
+
return o > 0 && ie(b) ? pe(
|
5626
5628
|
e,
|
5627
5629
|
z,
|
5628
5630
|
"linePrefix",
|
5629
5631
|
o + 1
|
5630
|
-
)(
|
5632
|
+
)(b) : z(b);
|
5631
5633
|
}
|
5632
|
-
function z(
|
5633
|
-
return
|
5634
|
+
function z(b) {
|
5635
|
+
return b === null || G(b) ? e.check(no, x, _)(b) : (e.enter("codeFlowValue"), E(b));
|
5634
5636
|
}
|
5635
|
-
function E(
|
5636
|
-
return
|
5637
|
+
function E(b) {
|
5638
|
+
return b === null || G(b) ? (e.exit("codeFlowValue"), z(b)) : (e.consume(b), E);
|
5637
5639
|
}
|
5638
|
-
function _(
|
5639
|
-
return e.exit("codeFenced"), t(
|
5640
|
+
function _(b) {
|
5641
|
+
return e.exit("codeFenced"), t(b);
|
5640
5642
|
}
|
5641
|
-
function U(
|
5643
|
+
function U(b, L, $) {
|
5642
5644
|
let W = 0;
|
5643
5645
|
return X;
|
5644
5646
|
function X(F) {
|
5645
|
-
return
|
5647
|
+
return b.enter("lineEnding"), b.consume(F), b.exit("lineEnding"), A;
|
5646
5648
|
}
|
5647
5649
|
function A(F) {
|
5648
|
-
return
|
5649
|
-
|
5650
|
+
return b.enter("codeFencedFence"), ie(F) ? pe(
|
5651
|
+
b,
|
5650
5652
|
w,
|
5651
5653
|
"linePrefix",
|
5652
5654
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
5653
5655
|
)(F) : w(F);
|
5654
5656
|
}
|
5655
5657
|
function w(F) {
|
5656
|
-
return F === l ? (
|
5658
|
+
return F === l ? (b.enter("codeFencedFenceSequence"), j(F)) : $(F);
|
5657
5659
|
}
|
5658
5660
|
function j(F) {
|
5659
|
-
return F === l ? (W++,
|
5661
|
+
return F === l ? (W++, b.consume(F), j) : W >= a ? (b.exit("codeFencedFenceSequence"), ie(F) ? pe(b, O, "whitespace")(F) : O(F)) : $(F);
|
5660
5662
|
}
|
5661
5663
|
function O(F) {
|
5662
|
-
return F === null || G(F) ? (
|
5664
|
+
return F === null || G(F) ? (b.exit("codeFencedFence"), L(F)) : $(F);
|
5663
5665
|
}
|
5664
5666
|
}
|
5665
5667
|
}
|
@@ -5775,8 +5777,8 @@ function Qp(e, t) {
|
|
5775
5777
|
const n = e[t][1], r = e[t][2];
|
5776
5778
|
let i = t - 1;
|
5777
5779
|
const o = [], a = n._tokenizer || r.parser[n.contentType](n.start), l = a.events, s = [], u = {};
|
5778
|
-
let c, p, m = -1, f = n, v = 0,
|
5779
|
-
const k = [
|
5780
|
+
let c, p, m = -1, f = n, v = 0, x = 0;
|
5781
|
+
const k = [x];
|
5780
5782
|
for (; f; ) {
|
5781
5783
|
for (; e[++i][1] !== f; )
|
5782
5784
|
;
|
@@ -5784,7 +5786,7 @@ function Qp(e, t) {
|
|
5784
5786
|
}
|
5785
5787
|
for (f = n; ++m < l.length; )
|
5786
5788
|
// Find a void token that includes a break.
|
5787
|
-
l[m][0] === "exit" && l[m - 1][0] === "enter" && l[m][1].type === l[m - 1][1].type && l[m][1].start.line !== l[m][1].end.line && (
|
5789
|
+
l[m][0] === "exit" && l[m - 1][0] === "enter" && l[m][1].type === l[m - 1][1].type && l[m][1].start.line !== l[m][1].end.line && (x = m + 1, k.push(x), f._tokenizer = void 0, f.previous = void 0, f = f.next);
|
5788
5790
|
for (a.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : k.pop(), m = k.length; m--; ) {
|
5789
5791
|
const M = l.slice(k[m], k[m + 1]), z = o.pop();
|
5790
5792
|
s.unshift([z, z + M.length - 1]), Ge(e, z, 2, M);
|
@@ -5848,7 +5850,7 @@ function va(e, t, n, r, i, o, a, l, s) {
|
|
5848
5850
|
function p(M) {
|
5849
5851
|
return M === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(M), e.exit(o), m) : M === null || M === 32 || M === 41 || vr(M) ? n(M) : (e.enter(r), e.enter(a), e.enter(l), e.enter("chunkString", {
|
5850
5852
|
contentType: "string"
|
5851
|
-
}),
|
5853
|
+
}), x(M));
|
5852
5854
|
}
|
5853
5855
|
function m(M) {
|
5854
5856
|
return M === 62 ? (e.enter(o), e.consume(M), e.exit(o), e.exit(i), e.exit(r), t) : (e.enter(l), e.enter("chunkString", {
|
@@ -5861,11 +5863,11 @@ function va(e, t, n, r, i, o, a, l, s) {
|
|
5861
5863
|
function v(M) {
|
5862
5864
|
return M === 60 || M === 62 || M === 92 ? (e.consume(M), f) : f(M);
|
5863
5865
|
}
|
5864
|
-
function
|
5865
|
-
return !c && (M === null || M === 41 || Ie(M)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(M)) : c < u && M === 40 ? (e.consume(M), c++,
|
5866
|
+
function x(M) {
|
5867
|
+
return !c && (M === null || M === 41 || Ie(M)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(M)) : c < u && M === 40 ? (e.consume(M), c++, x) : M === 41 ? (e.consume(M), c--, x) : M === null || M === 32 || M === 40 || vr(M) ? n(M) : (e.consume(M), M === 92 ? k : x);
|
5866
5868
|
}
|
5867
5869
|
function k(M) {
|
5868
|
-
return M === 40 || M === 41 || M === 92 ? (e.consume(M),
|
5870
|
+
return M === 40 || M === 41 || M === 92 ? (e.consume(M), x) : x(M);
|
5869
5871
|
}
|
5870
5872
|
}
|
5871
5873
|
function Ta(e, t, n, r, i, o) {
|
@@ -5924,7 +5926,7 @@ function Ht(e, t) {
|
|
5924
5926
|
)(i) : t(i);
|
5925
5927
|
}
|
5926
5928
|
}
|
5927
|
-
function
|
5929
|
+
function xt(e) {
|
5928
5930
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
5929
5931
|
}
|
5930
5932
|
const Wp = {
|
@@ -5954,7 +5956,7 @@ function Zp(e, t, n) {
|
|
5954
5956
|
)(f);
|
5955
5957
|
}
|
5956
5958
|
function l(f) {
|
5957
|
-
return i =
|
5959
|
+
return i = xt(
|
5958
5960
|
r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
|
5959
5961
|
), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), s) : n(f);
|
5960
5962
|
}
|
@@ -6156,7 +6158,7 @@ function uf(e, t, n) {
|
|
6156
6158
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(h), p;
|
6157
6159
|
}
|
6158
6160
|
function p(h) {
|
6159
|
-
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0,
|
6161
|
+
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, x) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : g) : Ve(h) ? (e.consume(h), a = String.fromCharCode(h), k) : n(h);
|
6160
6162
|
}
|
6161
6163
|
function m(h) {
|
6162
6164
|
return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, l = 0, v) : Ve(h) ? (e.consume(h), i = 4, r.interrupt ? t : g) : n(h);
|
@@ -6168,7 +6170,7 @@ function uf(e, t, n) {
|
|
6168
6170
|
const ge = "CDATA[";
|
6169
6171
|
return h === ge.charCodeAt(l++) ? (e.consume(h), l === ge.length ? r.interrupt ? t : w : v) : n(h);
|
6170
6172
|
}
|
6171
|
-
function
|
6173
|
+
function x(h) {
|
6172
6174
|
return Ve(h) ? (e.consume(h), a = String.fromCharCode(h), k) : n(h);
|
6173
6175
|
}
|
6174
6176
|
function k(h) {
|
@@ -6191,10 +6193,10 @@ function uf(e, t, n) {
|
|
6191
6193
|
return h === 45 || h === 46 || h === 58 || h === 95 || Ce(h) ? (e.consume(h), _) : U(h);
|
6192
6194
|
}
|
6193
6195
|
function U(h) {
|
6194
|
-
return h === 61 ? (e.consume(h),
|
6196
|
+
return h === 61 ? (e.consume(h), b) : ie(h) ? (e.consume(h), U) : E(h);
|
6195
6197
|
}
|
6196
|
-
function
|
6197
|
-
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), s = h, L) : ie(h) ? (e.consume(h),
|
6198
|
+
function b(h) {
|
6199
|
+
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), s = h, L) : ie(h) ? (e.consume(h), b) : $(h);
|
6198
6200
|
}
|
6199
6201
|
function L(h) {
|
6200
6202
|
return h === s ? (e.consume(h), s = null, W) : h === null || G(h) ? n(h) : (e.consume(h), L);
|
@@ -6304,16 +6306,16 @@ function df(e, t, n) {
|
|
6304
6306
|
}
|
6305
6307
|
function v(g) {
|
6306
6308
|
const he = "CDATA[";
|
6307
|
-
return g === he.charCodeAt(o++) ? (e.consume(g), o === he.length ?
|
6309
|
+
return g === he.charCodeAt(o++) ? (e.consume(g), o === he.length ? x : v) : n(g);
|
6308
6310
|
}
|
6309
|
-
function
|
6310
|
-
return g === null ? n(g) : g === 93 ? (e.consume(g), k) : G(g) ? (a =
|
6311
|
+
function x(g) {
|
6312
|
+
return g === null ? n(g) : g === 93 ? (e.consume(g), k) : G(g) ? (a = x, V(g)) : (e.consume(g), x);
|
6311
6313
|
}
|
6312
6314
|
function k(g) {
|
6313
|
-
return g === 93 ? (e.consume(g), M) :
|
6315
|
+
return g === 93 ? (e.consume(g), M) : x(g);
|
6314
6316
|
}
|
6315
6317
|
function M(g) {
|
6316
|
-
return g === 62 ? B(g) : g === 93 ? (e.consume(g), M) :
|
6318
|
+
return g === 62 ? B(g) : g === 93 ? (e.consume(g), M) : x(g);
|
6317
6319
|
}
|
6318
6320
|
function z(g) {
|
6319
6321
|
return g === null || g === 62 ? B(g) : G(g) ? (a = z, V(g)) : (e.consume(g), z);
|
@@ -6325,10 +6327,10 @@ function df(e, t, n) {
|
|
6325
6327
|
return g === 62 ? B(g) : E(g);
|
6326
6328
|
}
|
6327
6329
|
function U(g) {
|
6328
|
-
return Ve(g) ? (e.consume(g),
|
6330
|
+
return Ve(g) ? (e.consume(g), b) : n(g);
|
6329
6331
|
}
|
6330
|
-
function
|
6331
|
-
return g === 45 || Ce(g) ? (e.consume(g),
|
6332
|
+
function b(g) {
|
6333
|
+
return g === 45 || Ce(g) ? (e.consume(g), b) : L(g);
|
6332
6334
|
}
|
6333
6335
|
function L(g) {
|
6334
6336
|
return G(g) ? (a = L, V(g)) : ie(g) ? (e.consume(g), L) : B(g);
|
@@ -6377,11 +6379,11 @@ function df(e, t, n) {
|
|
6377
6379
|
}
|
6378
6380
|
const Yr = {
|
6379
6381
|
name: "labelEnd",
|
6380
|
-
tokenize:
|
6382
|
+
tokenize: bf,
|
6381
6383
|
resolveTo: Mf,
|
6382
6384
|
resolveAll: yf
|
6383
6385
|
}, hf = {
|
6384
|
-
tokenize:
|
6386
|
+
tokenize: xf
|
6385
6387
|
}, gf = {
|
6386
6388
|
tokenize: wf
|
6387
6389
|
}, mf = {
|
@@ -6439,7 +6441,7 @@ function Mf(e, t) {
|
|
6439
6441
|
["exit", u, t]
|
6440
6442
|
]), l = ze(l, e.slice(a + 1)), l = ze(l, [["exit", s, t]]), Ge(e, o, e.length, l), e;
|
6441
6443
|
}
|
6442
|
-
function
|
6444
|
+
function bf(e, t, n) {
|
6443
6445
|
const r = this;
|
6444
6446
|
let i = r.events.length, o, a;
|
6445
6447
|
for (; i--; )
|
@@ -6450,7 +6452,7 @@ function xf(e, t, n) {
|
|
6450
6452
|
return l;
|
6451
6453
|
function l(m) {
|
6452
6454
|
return o ? o._inactive ? p(m) : (a = r.parser.defined.includes(
|
6453
|
-
|
6455
|
+
xt(
|
6454
6456
|
r.sliceSerialize({
|
6455
6457
|
start: o.end,
|
6456
6458
|
end: r.now()
|
@@ -6483,7 +6485,7 @@ function xf(e, t, n) {
|
|
6483
6485
|
return o._balanced = !0, n(m);
|
6484
6486
|
}
|
6485
6487
|
}
|
6486
|
-
function
|
6488
|
+
function xf(e, t, n) {
|
6487
6489
|
return r;
|
6488
6490
|
function r(p) {
|
6489
6491
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
|
@@ -6543,7 +6545,7 @@ function wf(e, t, n) {
|
|
6543
6545
|
}
|
6544
6546
|
function o(l) {
|
6545
6547
|
return r.parser.defined.includes(
|
6546
|
-
|
6548
|
+
xt(
|
6547
6549
|
r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
|
6548
6550
|
)
|
6549
6551
|
) ? t(l) : n(l);
|
@@ -6929,8 +6931,8 @@ function Hf(e, t, n) {
|
|
6929
6931
|
enter: E,
|
6930
6932
|
exit: _,
|
6931
6933
|
attempt: L(U),
|
6932
|
-
check: L(
|
6933
|
-
interrupt: L(
|
6934
|
+
check: L(b),
|
6935
|
+
interrupt: L(b, {
|
6934
6936
|
interrupt: !0
|
6935
6937
|
})
|
6936
6938
|
}, u = {
|
@@ -6942,7 +6944,7 @@ function Hf(e, t, n) {
|
|
6942
6944
|
sliceStream: f,
|
6943
6945
|
sliceSerialize: m,
|
6944
6946
|
now: v,
|
6945
|
-
defineSkip:
|
6947
|
+
defineSkip: x,
|
6946
6948
|
write: p
|
6947
6949
|
};
|
6948
6950
|
let c = t.tokenize.call(u, s);
|
@@ -6966,7 +6968,7 @@ function Hf(e, t, n) {
|
|
6966
6968
|
_bufferIndex: F
|
6967
6969
|
};
|
6968
6970
|
}
|
6969
|
-
function
|
6971
|
+
function x(A) {
|
6970
6972
|
i[A.line] = A.column, X();
|
6971
6973
|
}
|
6972
6974
|
function k() {
|
@@ -6997,7 +6999,7 @@ function Hf(e, t, n) {
|
|
6997
6999
|
function U(A, w) {
|
6998
7000
|
$(A, w.from);
|
6999
7001
|
}
|
7000
|
-
function
|
7002
|
+
function b(A, w) {
|
7001
7003
|
w.restore();
|
7002
7004
|
}
|
7003
7005
|
function L(A, w) {
|
@@ -7154,18 +7156,18 @@ const Vf = {
|
|
7154
7156
|
96: ro,
|
7155
7157
|
126: ro
|
7156
7158
|
}, Kf = {
|
7157
|
-
38:
|
7158
|
-
92:
|
7159
|
+
38: xa,
|
7160
|
+
92: ba
|
7159
7161
|
}, Xf = {
|
7160
7162
|
[-5]: ir,
|
7161
7163
|
[-4]: ir,
|
7162
7164
|
[-3]: ir,
|
7163
7165
|
33: Tf,
|
7164
|
-
38:
|
7166
|
+
38: xa,
|
7165
7167
|
42: Nr,
|
7166
7168
|
60: [Ip, ff],
|
7167
7169
|
91: If,
|
7168
|
-
92: [Xp,
|
7170
|
+
92: [Xp, ba],
|
7169
7171
|
93: Yr,
|
7170
7172
|
95: Nr,
|
7171
7173
|
96: Pp
|
@@ -7196,7 +7198,7 @@ function rd(e) {
|
|
7196
7198
|
lazy: {},
|
7197
7199
|
constructs: n,
|
7198
7200
|
content: i(Mp),
|
7199
|
-
document: i(
|
7201
|
+
document: i(xp),
|
7200
7202
|
flow: i(Pf),
|
7201
7203
|
string: i(Bf),
|
7202
7204
|
text: i(Qf)
|
@@ -7356,7 +7358,7 @@ function cd(e) {
|
|
7356
7358
|
characterReferenceValue: ve,
|
7357
7359
|
codeFenced: c(z),
|
7358
7360
|
codeFencedFence: M,
|
7359
|
-
codeFencedFenceInfo:
|
7361
|
+
codeFencedFenceInfo: x,
|
7360
7362
|
codeFencedFenceMeta: k,
|
7361
7363
|
codeFlowValue: w,
|
7362
7364
|
codeIndented: c(E),
|
@@ -7364,7 +7366,7 @@ function cd(e) {
|
|
7364
7366
|
codeTextData: w,
|
7365
7367
|
data: w,
|
7366
7368
|
definition: c(),
|
7367
|
-
definitionDestinationString:
|
7369
|
+
definitionDestinationString: b,
|
7368
7370
|
definitionLabelString: _,
|
7369
7371
|
definitionTitleString: U,
|
7370
7372
|
emphasis: c(),
|
@@ -7543,7 +7545,7 @@ function cd(e) {
|
|
7543
7545
|
S.start = Number.parseInt(this.sliceSerialize(D), 10), o("expectingFirstListItemValue");
|
7544
7546
|
}
|
7545
7547
|
}
|
7546
|
-
function
|
7548
|
+
function x() {
|
7547
7549
|
const D = this.resume(), S = this.stack[this.stack.length - 1];
|
7548
7550
|
S.lang = D;
|
7549
7551
|
}
|
@@ -7564,7 +7566,7 @@ function cd(e) {
|
|
7564
7566
|
}
|
7565
7567
|
function _(D) {
|
7566
7568
|
const S = this.resume(), Y = this.stack[this.stack.length - 1];
|
7567
|
-
Y.label = S, Y.identifier =
|
7569
|
+
Y.label = S, Y.identifier = xt(
|
7568
7570
|
this.sliceSerialize(D)
|
7569
7571
|
).toLowerCase();
|
7570
7572
|
}
|
@@ -7572,7 +7574,7 @@ function cd(e) {
|
|
7572
7574
|
const D = this.resume(), S = this.stack[this.stack.length - 1];
|
7573
7575
|
S.title = D;
|
7574
7576
|
}
|
7575
|
-
function
|
7577
|
+
function b() {
|
7576
7578
|
const D = this.resume(), S = this.stack[this.stack.length - 1];
|
7577
7579
|
S.url = D;
|
7578
7580
|
}
|
@@ -7648,7 +7650,7 @@ function cd(e) {
|
|
7648
7650
|
}
|
7649
7651
|
function g(D) {
|
7650
7652
|
const S = this.sliceSerialize(D), Y = this.stack[this.stack.length - 2];
|
7651
|
-
Y.label = ld(S), Y.identifier =
|
7653
|
+
Y.label = ld(S), Y.identifier = xt(S).toLowerCase();
|
7652
7654
|
}
|
7653
7655
|
function he() {
|
7654
7656
|
const D = this.stack[this.stack.length - 1], S = this.resume(), Y = this.stack[this.stack.length - 1];
|
@@ -7674,7 +7676,7 @@ function cd(e) {
|
|
7674
7676
|
}
|
7675
7677
|
function re(D) {
|
7676
7678
|
const S = this.resume(), Y = this.stack[this.stack.length - 1];
|
7677
|
-
Y.label = S, Y.identifier =
|
7679
|
+
Y.label = S, Y.identifier = xt(
|
7678
7680
|
this.sliceSerialize(D)
|
7679
7681
|
).toLowerCase(), o("referenceType", "full");
|
7680
7682
|
}
|
@@ -7979,7 +7981,7 @@ function Md(e, t) {
|
|
7979
7981
|
position: t.position
|
7980
7982
|
});
|
7981
7983
|
}
|
7982
|
-
function
|
7984
|
+
function bd(e, t) {
|
7983
7985
|
const n = {
|
7984
7986
|
type: "element",
|
7985
7987
|
tagName: "h" + t.depth,
|
@@ -7988,7 +7990,7 @@ function xd(e, t) {
|
|
7988
7990
|
};
|
7989
7991
|
return e.patch(t, n), e.applyData(t, n);
|
7990
7992
|
}
|
7991
|
-
function
|
7993
|
+
function xd(e, t) {
|
7992
7994
|
if (e.dangerous) {
|
7993
7995
|
const n = { type: "raw", value: t.value };
|
7994
7996
|
return e.patch(t, n), e.applyData(t, n);
|
@@ -8256,8 +8258,8 @@ const Rd = {
|
|
8256
8258
|
emphasis: yd,
|
8257
8259
|
footnoteReference: Ca,
|
8258
8260
|
footnote: Md,
|
8259
|
-
heading:
|
8260
|
-
html:
|
8261
|
+
heading: bd,
|
8262
|
+
html: xd,
|
8261
8263
|
imageReference: wd,
|
8262
8264
|
image: vd,
|
8263
8265
|
inlineCode: Td,
|
@@ -8377,12 +8379,12 @@ const Hd = !0, po = !1, $d = "skip", qd = (
|
|
8377
8379
|
}
|
8378
8380
|
return p;
|
8379
8381
|
function p() {
|
8380
|
-
let m = [], f, v,
|
8382
|
+
let m = [], f, v, x;
|
8381
8383
|
if ((!t || i(l, s, u[u.length - 1] || null)) && (m = Vd(n(l, u)), m[0] === po))
|
8382
8384
|
return m;
|
8383
8385
|
if (l.children && m[0] !== $d)
|
8384
|
-
for (v = (r ? l.children.length : -1) + o,
|
8385
|
-
if (f = a(l.children[v], v,
|
8386
|
+
for (v = (r ? l.children.length : -1) + o, x = u.concat(l); v > -1 && v < l.children.length; ) {
|
8387
|
+
if (f = a(l.children[v], v, x)(), f[0] === po)
|
8386
8388
|
return f;
|
8387
8389
|
v = typeof f[1] == "number" ? f[1] : v + o;
|
8388
8390
|
}
|
@@ -8440,14 +8442,14 @@ function Gd(e) {
|
|
8440
8442
|
function ho(e) {
|
8441
8443
|
return String(e || "").toUpperCase();
|
8442
8444
|
}
|
8443
|
-
const
|
8445
|
+
const xn = {}.hasOwnProperty;
|
8444
8446
|
function Zd(e, t) {
|
8445
8447
|
const n = t || {}, r = n.allowDangerousHtml || !1, i = {};
|
8446
8448
|
return a.dangerous = r, a.clobberPrefix = n.clobberPrefix === void 0 || n.clobberPrefix === null ? "user-content-" : n.clobberPrefix, a.footnoteLabel = n.footnoteLabel || "Footnotes", a.footnoteLabelTagName = n.footnoteLabelTagName || "h2", a.footnoteLabelProperties = n.footnoteLabelProperties || {
|
8447
8449
|
className: ["sr-only"]
|
8448
8450
|
}, a.footnoteBackLabel = n.footnoteBackLabel || "Back to content", a.unknownHandler = n.unknownHandler, a.passThrough = n.passThrough, a.handlers = { ...Rd, ...n.handlers }, a.definition = Gd(e), a.footnoteById = i, a.footnoteOrder = [], a.footnoteCounts = {}, a.patch = Kd, a.applyData = Xd, a.one = l, a.all = s, a.wrap = eh, a.augment = o, qr(e, "footnoteDefinition", (u) => {
|
8449
8451
|
const c = String(u.identifier).toUpperCase();
|
8450
|
-
|
8452
|
+
xn.call(i, c) || (i[c] = u);
|
8451
8453
|
}), a;
|
8452
8454
|
function o(u, c) {
|
8453
8455
|
if (u && "data" in u && u.data) {
|
@@ -8500,7 +8502,7 @@ function La(e, t, n) {
|
|
8500
8502
|
const r = t && t.type;
|
8501
8503
|
if (!r)
|
8502
8504
|
throw new Error("Expected node, got `" + t + "`");
|
8503
|
-
return
|
8505
|
+
return xn.call(e.handlers, r) ? e.handlers[r](e, t, n) : e.passThrough && e.passThrough.includes(r) ? "children" in t ? { ...t, children: Vr(e, t) } : t : e.unknownHandler ? e.unknownHandler(e, t, n) : Jd(e, t);
|
8504
8506
|
}
|
8505
8507
|
function Vr(e, t) {
|
8506
8508
|
const n = [];
|
@@ -8521,7 +8523,7 @@ function Vr(e, t) {
|
|
8521
8523
|
return n;
|
8522
8524
|
}
|
8523
8525
|
function Jd(e, t) {
|
8524
|
-
const n = t.data || {}, r = "value" in t && !(
|
8526
|
+
const n = t.data || {}, r = "value" in t && !(xn.call(n, "hProperties") || xn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
8525
8527
|
type: "element",
|
8526
8528
|
tagName: "div",
|
8527
8529
|
properties: {},
|
@@ -8676,14 +8678,14 @@ Re.prototype.commaOrSpaceSeparated = !1;
|
|
8676
8678
|
Re.prototype.mustUseProperty = !1;
|
8677
8679
|
Re.prototype.defined = !1;
|
8678
8680
|
let ah = 0;
|
8679
|
-
const Z = ht(),
|
8681
|
+
const Z = ht(), be = ht(), Pa = ht(), C = ht(), ce = ht(), wt = ht(), Ee = ht();
|
8680
8682
|
function ht() {
|
8681
8683
|
return 2 ** ++ah;
|
8682
8684
|
}
|
8683
8685
|
const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8684
8686
|
__proto__: null,
|
8685
8687
|
boolean: Z,
|
8686
|
-
booleanish:
|
8688
|
+
booleanish: be,
|
8687
8689
|
commaOrSpaceSeparated: Ee,
|
8688
8690
|
commaSeparated: wt,
|
8689
8691
|
number: C,
|
@@ -8765,10 +8767,10 @@ const Ya = Dt({
|
|
8765
8767
|
},
|
8766
8768
|
properties: {
|
8767
8769
|
ariaActiveDescendant: null,
|
8768
|
-
ariaAtomic:
|
8770
|
+
ariaAtomic: be,
|
8769
8771
|
ariaAutoComplete: null,
|
8770
|
-
ariaBusy:
|
8771
|
-
ariaChecked:
|
8772
|
+
ariaBusy: be,
|
8773
|
+
ariaChecked: be,
|
8772
8774
|
ariaColCount: C,
|
8773
8775
|
ariaColIndex: C,
|
8774
8776
|
ariaColSpan: C,
|
@@ -8776,36 +8778,36 @@ const Ya = Dt({
|
|
8776
8778
|
ariaCurrent: null,
|
8777
8779
|
ariaDescribedBy: ce,
|
8778
8780
|
ariaDetails: null,
|
8779
|
-
ariaDisabled:
|
8781
|
+
ariaDisabled: be,
|
8780
8782
|
ariaDropEffect: ce,
|
8781
8783
|
ariaErrorMessage: null,
|
8782
|
-
ariaExpanded:
|
8784
|
+
ariaExpanded: be,
|
8783
8785
|
ariaFlowTo: ce,
|
8784
|
-
ariaGrabbed:
|
8786
|
+
ariaGrabbed: be,
|
8785
8787
|
ariaHasPopup: null,
|
8786
|
-
ariaHidden:
|
8788
|
+
ariaHidden: be,
|
8787
8789
|
ariaInvalid: null,
|
8788
8790
|
ariaKeyShortcuts: null,
|
8789
8791
|
ariaLabel: null,
|
8790
8792
|
ariaLabelledBy: ce,
|
8791
8793
|
ariaLevel: C,
|
8792
8794
|
ariaLive: null,
|
8793
|
-
ariaModal:
|
8794
|
-
ariaMultiLine:
|
8795
|
-
ariaMultiSelectable:
|
8795
|
+
ariaModal: be,
|
8796
|
+
ariaMultiLine: be,
|
8797
|
+
ariaMultiSelectable: be,
|
8796
8798
|
ariaOrientation: null,
|
8797
8799
|
ariaOwns: ce,
|
8798
8800
|
ariaPlaceholder: null,
|
8799
8801
|
ariaPosInSet: C,
|
8800
|
-
ariaPressed:
|
8801
|
-
ariaReadOnly:
|
8802
|
+
ariaPressed: be,
|
8803
|
+
ariaReadOnly: be,
|
8802
8804
|
ariaRelevant: null,
|
8803
|
-
ariaRequired:
|
8805
|
+
ariaRequired: be,
|
8804
8806
|
ariaRoleDescription: ce,
|
8805
8807
|
ariaRowCount: C,
|
8806
8808
|
ariaRowIndex: C,
|
8807
8809
|
ariaRowSpan: C,
|
8808
|
-
ariaSelected:
|
8810
|
+
ariaSelected: be,
|
8809
8811
|
ariaSetSize: C,
|
8810
8812
|
ariaSort: null,
|
8811
8813
|
ariaValueMax: C,
|
@@ -8851,7 +8853,7 @@ const Ya = Dt({
|
|
8851
8853
|
cols: C,
|
8852
8854
|
colSpan: null,
|
8853
8855
|
content: null,
|
8854
|
-
contentEditable:
|
8856
|
+
contentEditable: be,
|
8855
8857
|
controls: Z,
|
8856
8858
|
controlsList: ce,
|
8857
8859
|
coords: C | wt,
|
@@ -8865,7 +8867,7 @@ const Ya = Dt({
|
|
8865
8867
|
dirName: null,
|
8866
8868
|
disabled: Z,
|
8867
8869
|
download: Pa,
|
8868
|
-
draggable:
|
8870
|
+
draggable: be,
|
8869
8871
|
encType: null,
|
8870
8872
|
enterKeyHint: null,
|
8871
8873
|
fetchPriority: null,
|
@@ -9035,7 +9037,7 @@ const Ya = Dt({
|
|
9035
9037
|
sizes: null,
|
9036
9038
|
slot: null,
|
9037
9039
|
span: C,
|
9038
|
-
spellCheck:
|
9040
|
+
spellCheck: be,
|
9039
9041
|
src: null,
|
9040
9042
|
srcDoc: null,
|
9041
9043
|
srcLang: null,
|
@@ -9050,7 +9052,7 @@ const Ya = Dt({
|
|
9050
9052
|
type: null,
|
9051
9053
|
typeMustMatch: Z,
|
9052
9054
|
useMap: null,
|
9053
|
-
value:
|
9055
|
+
value: be,
|
9054
9056
|
width: C,
|
9055
9057
|
wrap: null,
|
9056
9058
|
// Legacy.
|
@@ -9141,7 +9143,7 @@ const Ya = Dt({
|
|
9141
9143
|
// `<table>`
|
9142
9144
|
scheme: null,
|
9143
9145
|
// `<meta>`
|
9144
|
-
scrolling:
|
9146
|
+
scrolling: be,
|
9145
9147
|
// `<frame>`. Use overflow in the child context
|
9146
9148
|
standby: null,
|
9147
9149
|
// `<object>`
|
@@ -9806,7 +9808,7 @@ var $a = { exports: {} }, ae = {};
|
|
9806
9808
|
* This source code is licensed under the MIT license found in the
|
9807
9809
|
* LICENSE file in the root directory of this source tree.
|
9808
9810
|
*/
|
9809
|
-
var Gr = Symbol.for("react.element"), Zr = Symbol.for("react.portal"), Dn = Symbol.for("react.fragment"), kn = Symbol.for("react.strict_mode"), jn = Symbol.for("react.profiler"), En = Symbol.for("react.provider"), Cn = Symbol.for("react.context"), Mh = Symbol.for("react.server_context"), An = Symbol.for("react.forward_ref"), Sn = Symbol.for("react.suspense"), On = Symbol.for("react.suspense_list"), zn = Symbol.for("react.memo"), Ln = Symbol.for("react.lazy"),
|
9811
|
+
var Gr = Symbol.for("react.element"), Zr = Symbol.for("react.portal"), Dn = Symbol.for("react.fragment"), kn = Symbol.for("react.strict_mode"), jn = Symbol.for("react.profiler"), En = Symbol.for("react.provider"), Cn = Symbol.for("react.context"), Mh = Symbol.for("react.server_context"), An = Symbol.for("react.forward_ref"), Sn = Symbol.for("react.suspense"), On = Symbol.for("react.suspense_list"), zn = Symbol.for("react.memo"), Ln = Symbol.for("react.lazy"), bh = Symbol.for("react.offscreen"), qa;
|
9810
9812
|
qa = Symbol.for("react.module.reference");
|
9811
9813
|
function Ue(e) {
|
9812
9814
|
if (typeof e == "object" && e !== null) {
|
@@ -9893,12 +9895,12 @@ ae.isSuspenseList = function(e) {
|
|
9893
9895
|
return Ue(e) === On;
|
9894
9896
|
};
|
9895
9897
|
ae.isValidElementType = function(e) {
|
9896
|
-
return typeof e == "string" || typeof e == "function" || e === Dn || e === jn || e === kn || e === Sn || e === On || e ===
|
9898
|
+
return typeof e == "string" || typeof e == "function" || e === Dn || e === jn || e === kn || e === Sn || e === On || e === bh || typeof e == "object" && e !== null && (e.$$typeof === Ln || e.$$typeof === zn || e.$$typeof === En || e.$$typeof === Cn || e.$$typeof === An || e.$$typeof === qa || e.getModuleId !== void 0);
|
9897
9899
|
};
|
9898
9900
|
ae.typeOf = Ue;
|
9899
9901
|
$a.exports = ae;
|
9900
|
-
var
|
9901
|
-
const wh = /* @__PURE__ */ nt(
|
9902
|
+
var xh = $a.exports;
|
9903
|
+
const wh = /* @__PURE__ */ nt(xh);
|
9902
9904
|
function vh(e) {
|
9903
9905
|
const t = (
|
9904
9906
|
// @ts-expect-error looks like a node.
|
@@ -9919,7 +9921,7 @@ function Nh(e, t) {
|
|
9919
9921
|
).trim();
|
9920
9922
|
}
|
9921
9923
|
var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ih = /\n/g, Dh = /^\s*/, kh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, jh = /^:\s*/, Eh = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Ch = /^[;\s]*/, Ah = /^\s+|\s+$/g, Sh = `
|
9922
|
-
`,
|
9924
|
+
`, bo = "/", xo = "*", pt = "", Oh = "comment", zh = "declaration", Lh = function(e, t) {
|
9923
9925
|
if (typeof e != "string")
|
9924
9926
|
throw new TypeError("First argument must be a string");
|
9925
9927
|
if (!e)
|
@@ -9927,15 +9929,15 @@ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ih = /\n/g, Dh
|
|
9927
9929
|
t = t || {};
|
9928
9930
|
var n = 1, r = 1;
|
9929
9931
|
function i(v) {
|
9930
|
-
var
|
9931
|
-
|
9932
|
+
var x = v.match(Ih);
|
9933
|
+
x && (n += x.length);
|
9932
9934
|
var k = v.lastIndexOf(Sh);
|
9933
9935
|
r = ~k ? v.length - k : r + v.length;
|
9934
9936
|
}
|
9935
9937
|
function o() {
|
9936
9938
|
var v = { line: n, column: r };
|
9937
|
-
return function(
|
9938
|
-
return
|
9939
|
+
return function(x) {
|
9940
|
+
return x.position = new a(v), u(), x;
|
9939
9941
|
};
|
9940
9942
|
}
|
9941
9943
|
function a(v) {
|
@@ -9943,50 +9945,50 @@ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ih = /\n/g, Dh
|
|
9943
9945
|
}
|
9944
9946
|
a.prototype.content = e;
|
9945
9947
|
function l(v) {
|
9946
|
-
var
|
9948
|
+
var x = new Error(
|
9947
9949
|
t.source + ":" + n + ":" + r + ": " + v
|
9948
9950
|
);
|
9949
|
-
if (
|
9950
|
-
throw
|
9951
|
+
if (x.reason = v, x.filename = t.source, x.line = n, x.column = r, x.source = e, !t.silent)
|
9952
|
+
throw x;
|
9951
9953
|
}
|
9952
9954
|
function s(v) {
|
9953
|
-
var
|
9954
|
-
if (
|
9955
|
-
var k =
|
9956
|
-
return i(k), e = e.slice(k.length),
|
9955
|
+
var x = v.exec(e);
|
9956
|
+
if (x) {
|
9957
|
+
var k = x[0];
|
9958
|
+
return i(k), e = e.slice(k.length), x;
|
9957
9959
|
}
|
9958
9960
|
}
|
9959
9961
|
function u() {
|
9960
9962
|
s(Dh);
|
9961
9963
|
}
|
9962
9964
|
function c(v) {
|
9963
|
-
var
|
9964
|
-
for (v = v || [];
|
9965
|
-
|
9965
|
+
var x;
|
9966
|
+
for (v = v || []; x = p(); )
|
9967
|
+
x !== !1 && v.push(x);
|
9966
9968
|
return v;
|
9967
9969
|
}
|
9968
9970
|
function p() {
|
9969
9971
|
var v = o();
|
9970
|
-
if (!(
|
9971
|
-
for (var
|
9972
|
-
++
|
9973
|
-
if (
|
9972
|
+
if (!(bo != e.charAt(0) || xo != e.charAt(1))) {
|
9973
|
+
for (var x = 2; pt != e.charAt(x) && (xo != e.charAt(x) || bo != e.charAt(x + 1)); )
|
9974
|
+
++x;
|
9975
|
+
if (x += 2, pt === e.charAt(x - 1))
|
9974
9976
|
return l("End of comment missing");
|
9975
|
-
var k = e.slice(2,
|
9976
|
-
return r += 2, i(k), e = e.slice(
|
9977
|
+
var k = e.slice(2, x - 2);
|
9978
|
+
return r += 2, i(k), e = e.slice(x), r += 2, v({
|
9977
9979
|
type: Oh,
|
9978
9980
|
comment: k
|
9979
9981
|
});
|
9980
9982
|
}
|
9981
9983
|
}
|
9982
9984
|
function m() {
|
9983
|
-
var v = o(),
|
9984
|
-
if (
|
9985
|
+
var v = o(), x = s(kh);
|
9986
|
+
if (x) {
|
9985
9987
|
if (p(), !s(jh))
|
9986
9988
|
return l("property missing ':'");
|
9987
9989
|
var k = s(Eh), M = v({
|
9988
9990
|
type: zh,
|
9989
|
-
property: wo(
|
9991
|
+
property: wo(x[0].replace(Mo, pt)),
|
9990
9992
|
value: k ? wo(k[0].replace(Mo, pt)) : pt
|
9991
9993
|
});
|
9992
9994
|
return s(Ch), M;
|
@@ -9995,8 +9997,8 @@ var Kr = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ih = /\n/g, Dh
|
|
9995
9997
|
function f() {
|
9996
9998
|
var v = [];
|
9997
9999
|
c(v);
|
9998
|
-
for (var
|
9999
|
-
|
10000
|
+
for (var x; x = m(); )
|
10001
|
+
x !== !1 && (v.push(x), c(v));
|
10000
10002
|
return v;
|
10001
10003
|
}
|
10002
10004
|
return u(), f();
|
@@ -10054,8 +10056,8 @@ function Uh(e, t, n, r) {
|
|
10054
10056
|
String(s.alt || ""),
|
10055
10057
|
typeof s.title == "string" ? s.title : null
|
10056
10058
|
)), !v && l === "li" && r.type === "element") {
|
10057
|
-
const
|
10058
|
-
s.checked =
|
10059
|
+
const x = Bh(t);
|
10060
|
+
s.checked = x && x.properties ? !!x.properties.checked : null, s.index = ar(r, t), s.ordered = r.tagName === "ol";
|
10059
10061
|
}
|
10060
10062
|
return !v && (l === "ol" || l === "ul") && (s.ordered = l === "ol", s.depth = e.listDepth), (l === "td" || l === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), v || (s.isHeader = l === "th")), !v && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = $h(m)), !v && i.rawSourcePos && (s.sourcePosition = t.position), !v && i.includeElementIndex && (s.index = ar(r, t), s.siblingCount = ar(r)), v || (s.node = t), p.length > 0 ? tt.createElement(f, s, p) : tt.createElement(f, s);
|
10061
10063
|
}
|
@@ -10291,28 +10293,28 @@ function _n({
|
|
10291
10293
|
}), ((_ = M == null ? void 0 : M.data) == null ? void 0 : _.type) === "connection" && ((U = M == null ? void 0 : M.data) == null ? void 0 : U.state) === "disconnected" && Le.remove(`${p}-live-chat-open`);
|
10292
10294
|
},
|
10293
10295
|
[p]
|
10294
|
-
),
|
10296
|
+
), x = vt(
|
10295
10297
|
(M) => {
|
10296
10298
|
var z, E, _, U;
|
10297
10299
|
((z = M == null ? void 0 : M.data) == null ? void 0 : z.type) === "unhide" && ((E = M == null ? void 0 : M.data) == null ? void 0 : E.reason) === "pop-out" && t(!0), ((_ = M == null ? void 0 : M.data) == null ? void 0 : _.type) === "open" && ((U = M == null ? void 0 : M.data) == null ? void 0 : U.chatState) === !0 && t(!0);
|
10298
10300
|
},
|
10299
10301
|
[t]
|
10300
10302
|
);
|
10301
|
-
|
10303
|
+
xe(() => {
|
10302
10304
|
let M, z;
|
10303
10305
|
return f.liveChat.enabled && (window.Five9ChatPlugin || (M = document.createElement("script"), M.type = "text/javascript", M.src = f.liveChat.sourceCode, M.async = !0, M.onload = () => {
|
10304
10306
|
window.Five9ChatPlugin(f.liveChat.options);
|
10305
|
-
}, document.body.appendChild(M)), window.addEventListener("message", v), window.addEventListener("message",
|
10307
|
+
}, document.body.appendChild(M)), window.addEventListener("message", v), window.addEventListener("message", x), z = setTimeout(() => {
|
10306
10308
|
u(!1);
|
10307
10309
|
}, 3e3)), () => {
|
10308
|
-
f.liveChat.enabled && (window.removeEventListener("message", v), window.removeEventListener("message",
|
10310
|
+
f.liveChat.enabled && (window.removeEventListener("message", v), window.removeEventListener("message", x), clearTimeout(z));
|
10309
10311
|
};
|
10310
10312
|
}, [
|
10311
10313
|
f.liveChat.enabled,
|
10312
10314
|
f.liveChat.options,
|
10313
10315
|
f.liveChat.sourceCode,
|
10314
10316
|
v,
|
10315
|
-
|
10317
|
+
x
|
10316
10318
|
]);
|
10317
10319
|
const k = () => {
|
10318
10320
|
e({
|
@@ -10471,7 +10473,7 @@ Fn.defaultProps = {
|
|
10471
10473
|
Fn.displayName = "AssistantMessageBubble";
|
10472
10474
|
const Kh = Fn, Ka = () => {
|
10473
10475
|
const { disclaimer: e } = _e(Fe), t = We(null);
|
10474
|
-
return
|
10476
|
+
return xe(() => {
|
10475
10477
|
var n;
|
10476
10478
|
(n = t == null ? void 0 : t.current) == null || n.focus();
|
10477
10479
|
}, []), /* @__PURE__ */ N.jsxs(
|
@@ -10581,7 +10583,7 @@ const tg = ei, Pn = ({
|
|
10581
10583
|
isTestUser: s
|
10582
10584
|
}) => {
|
10583
10585
|
const { conversationScreen: u } = _e(Fe), { prompts: c, systemMessage: p } = u, m = We(null);
|
10584
|
-
return
|
10586
|
+
return xe(() => {
|
10585
10587
|
var f;
|
10586
10588
|
(f = m.current) == null || f.scrollIntoView({
|
10587
10589
|
behavior: "instant",
|
@@ -10665,7 +10667,7 @@ Pn.displayName = "ConversationsMessages";
|
|
10665
10667
|
const ng = Pn;
|
10666
10668
|
function Xa({ disableScroll: e }) {
|
10667
10669
|
const t = We(null);
|
10668
|
-
return
|
10670
|
+
return xe(() => {
|
10669
10671
|
var n;
|
10670
10672
|
e || (n = t.current) == null || n.scrollIntoView({
|
10671
10673
|
behavior: "smooth",
|
@@ -10691,7 +10693,7 @@ Xa.propTypes = {
|
|
10691
10693
|
};
|
10692
10694
|
const rg = () => {
|
10693
10695
|
const e = We(null);
|
10694
|
-
return
|
10696
|
+
return xe(() => {
|
10695
10697
|
var t;
|
10696
10698
|
(t = e.current) == null || t.scrollIntoView({
|
10697
10699
|
behavior: "instant"
|
@@ -10763,33 +10765,33 @@ function Ja({
|
|
10763
10765
|
}) {
|
10764
10766
|
var v;
|
10765
10767
|
const { proactiveMessage: a } = _e(Fe), [l, s] = ye(!0), [u, c] = ye(!1), p = l && (!(window != null && window.OnetrustActiveGroups) || ((v = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : v.includes("C0003"))) && Le.get(t) === void 0;
|
10766
|
-
|
10767
|
-
var
|
10768
|
-
(
|
10768
|
+
xe(() => {
|
10769
|
+
var x;
|
10770
|
+
(x = window == null ? void 0 : window.OneTrust) == null || x.OnConsentChanged(() => {
|
10769
10771
|
var k;
|
10770
10772
|
!((k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && Le.get(t) !== void 0 && Le.remove(t);
|
10771
10773
|
});
|
10772
|
-
}, [t]),
|
10773
|
-
var
|
10774
|
-
i || (!(window != null && window.OnetrustActiveGroups) || (
|
10775
|
-
}, [t, i]),
|
10774
|
+
}, [t]), xe(() => {
|
10775
|
+
var x;
|
10776
|
+
i || (!(window != null && window.OnetrustActiveGroups) || (x = window == null ? void 0 : window.OnetrustActiveGroups) != null && x.includes("C0003")) && f(t, 1, 1);
|
10777
|
+
}, [t, i]), xe(() => {
|
10776
10778
|
if (a.enabled && a.delayMs > 0) {
|
10777
|
-
const
|
10779
|
+
const x = setTimeout(() => {
|
10778
10780
|
c(!0);
|
10779
10781
|
}, a.delayMs);
|
10780
|
-
return () => clearTimeout(
|
10782
|
+
return () => clearTimeout(x);
|
10781
10783
|
} else
|
10782
10784
|
c(!0);
|
10783
10785
|
}, [a.delayMs, a.enabled]);
|
10784
10786
|
const m = () => {
|
10785
|
-
var
|
10786
|
-
s(!1), (!(window != null && window.OnetrustActiveGroups) || (
|
10787
|
-
}, f = (
|
10787
|
+
var x;
|
10788
|
+
s(!1), (!(window != null && window.OnetrustActiveGroups) || (x = window == null ? void 0 : window.OnetrustActiveGroups) != null && x.includes("C0003")) && f(t, 1, 1), r();
|
10789
|
+
}, f = (x, k, M) => {
|
10788
10790
|
const z = {
|
10789
10791
|
expires: M,
|
10790
10792
|
path: "/"
|
10791
10793
|
};
|
10792
|
-
Le.set(
|
10794
|
+
Le.set(x, k, z);
|
10793
10795
|
};
|
10794
10796
|
return !u || !p ? null : /* @__PURE__ */ N.jsx("div", { children: /* @__PURE__ */ N.jsxs(
|
10795
10797
|
"div",
|
@@ -10855,9 +10857,9 @@ function ig(e, t, n) {
|
|
10855
10857
|
},
|
10856
10858
|
[n]
|
10857
10859
|
);
|
10858
|
-
|
10860
|
+
xe(() => (e && window.addEventListener("message", r), () => {
|
10859
10861
|
window.removeEventListener("message", r);
|
10860
|
-
}), [e, r]),
|
10862
|
+
}), [e, r]), xe(() => {
|
10861
10863
|
let i;
|
10862
10864
|
return e && (i = document.createElement("style"), document.head.appendChild(i), ((a) => {
|
10863
10865
|
i.innerHTML = `
|
@@ -10879,7 +10881,7 @@ function ig(e, t, n) {
|
|
10879
10881
|
}
|
10880
10882
|
function og(e) {
|
10881
10883
|
const [t, n] = ye(null);
|
10882
|
-
return
|
10884
|
+
return xe(() => {
|
10883
10885
|
try {
|
10884
10886
|
(() => {
|
10885
10887
|
var i, o, a;
|
@@ -10908,7 +10910,7 @@ function og(e) {
|
|
10908
10910
|
), t;
|
10909
10911
|
}
|
10910
10912
|
function ag(e) {
|
10911
|
-
|
10913
|
+
xe(() => {
|
10912
10914
|
e();
|
10913
10915
|
const t = () => document.visibilityState === "visible" && e();
|
10914
10916
|
return document.addEventListener("visibilitychange", t), () => {
|
@@ -10941,7 +10943,7 @@ function ti({ submitEventExternal: e }) {
|
|
10941
10943
|
userTracking: o,
|
10942
10944
|
webExperimentation: a,
|
10943
10945
|
xpertKey: l
|
10944
|
-
} = _e(Fe), s = rt(cg), [, u] = ye(!1), [, c] = ye(!1), [p, m] = ye(pg), [f, v] = ye(!1), [
|
10946
|
+
} = _e(Fe), s = rt(cg), [, u] = ye(!1), [, c] = ye(!1), [p, m] = ye(pg), [f, v] = ye(!1), [x, k] = ye(!1), [M, z] = ye(!1), [E, _] = ye(""), [U, b] = ye(!1), [L, $] = ye(!0), [W, X] = ye(!1), [A, w] = ye(!1), [j, O] = ye(!1), F = We(null), B = We(null), V = We(null), q = Le.get(`${l}-test`) === "1";
|
10945
10947
|
ig(
|
10946
10948
|
n.liveChat.enabled,
|
10947
10949
|
M,
|
@@ -10994,7 +10996,7 @@ function ti({ submitEventExternal: e }) {
|
|
10994
10996
|
v(!1);
|
10995
10997
|
}
|
10996
10998
|
}, [l, t.endpoint]);
|
10997
|
-
ag(g),
|
10999
|
+
ag(g), xe(() => {
|
10998
11000
|
let R, ee;
|
10999
11001
|
return o.enabled && (R = setInterval(() => {
|
11000
11002
|
var le;
|
@@ -11004,7 +11006,7 @@ function ti({ submitEventExternal: e }) {
|
|
11004
11006
|
}, 6e4)), () => {
|
11005
11007
|
clearInterval(R), clearTimeout(ee);
|
11006
11008
|
};
|
11007
|
-
}, [o.enabled, o.prefix]),
|
11009
|
+
}, [o.enabled, o.prefix]), xe(() => {
|
11008
11010
|
let R, ee;
|
11009
11011
|
return R = setInterval(() => {
|
11010
11012
|
a.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(R), clearTimeout(ee), c(!0)));
|
@@ -11073,7 +11075,7 @@ function ti({ submitEventExternal: e }) {
|
|
11073
11075
|
if (R.trim().length === 0)
|
11074
11076
|
return;
|
11075
11077
|
const ee = /* @__PURE__ */ new Date();
|
11076
|
-
O(!1),
|
11078
|
+
O(!1), b(!1);
|
11077
11079
|
const me = p.filter((J) => J.role === "user").length + 1;
|
11078
11080
|
K({
|
11079
11081
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
|
@@ -11144,7 +11146,7 @@ function ti({ submitEventExternal: e }) {
|
|
11144
11146
|
}
|
11145
11147
|
]), w(!1), v(!1), h(), O(!0);
|
11146
11148
|
} catch (ee) {
|
11147
|
-
v(!1), h(),
|
11149
|
+
v(!1), h(), b(!0), console.error(ee);
|
11148
11150
|
}
|
11149
11151
|
}, we = () => {
|
11150
11152
|
z(!1), k(!0), K({
|
@@ -11221,11 +11223,11 @@ function ti({ submitEventExternal: e }) {
|
|
11221
11223
|
}, Xe = ((mt = r.animatedGraduate) == null ? void 0 : mt.enabled) && a.enabled && Me === "A", gt = i.enabled ? Xe ? s ? i.style.mobile.animatedGraduateExperiment : i.style.animatedGraduateExperiment : s ? i.style.mobile : i.style : null;
|
11222
11224
|
return (
|
11223
11225
|
// do not remove this class as it's needed to turn off chatbot
|
11224
|
-
/* @__PURE__ */ N.jsxs("div", { className: "xpert_chatbot",
|
11226
|
+
/* @__PURE__ */ N.jsxs("div", { className: "xpert_chatbot", children: [
|
11225
11227
|
i.enabled && /* @__PURE__ */ N.jsx(
|
11226
11228
|
Ja,
|
11227
11229
|
{
|
11228
|
-
showMessage: !
|
11230
|
+
showMessage: !x,
|
11229
11231
|
style: gt,
|
11230
11232
|
onClose: Ae,
|
11231
11233
|
onClick: Be,
|
@@ -11261,7 +11263,7 @@ function ti({ submitEventExternal: e }) {
|
|
11261
11263
|
}
|
11262
11264
|
),
|
11263
11265
|
/* @__PURE__ */ N.jsx(Us, {}),
|
11264
|
-
|
11266
|
+
x && !M && /* @__PURE__ */ N.jsx(Ar, { isNormalSize: L, isMounted: W, children: /* @__PURE__ */ N.jsx(
|
11265
11267
|
"div",
|
11266
11268
|
{
|
11267
11269
|
ref: F,
|