@snf/access-qa-bot 3.1.1 → 3.2.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/README.md +2 -0
- package/dist/access-qa-bot.js +856 -854
- package/dist/access-qa-bot.js.map +1 -1
- package/dist/access-qa-bot.standalone.js +11 -11
- package/dist/access-qa-bot.standalone.js.map +1 -1
- package/dist/access-qa-bot.umd.cjs +26 -26
- package/dist/access-qa-bot.umd.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/access-qa-bot.js
CHANGED
|
@@ -155,7 +155,7 @@ function Df() {
|
|
|
155
155
|
}
|
|
156
156
|
return m;
|
|
157
157
|
}
|
|
158
|
-
var
|
|
158
|
+
var M = /([A-Z])/g, k = /^ms-/, I = Array.isArray;
|
|
159
159
|
function Q(m, x) {
|
|
160
160
|
return { insertionMode: m, selectedValue: x };
|
|
161
161
|
}
|
|
@@ -195,7 +195,7 @@ function Df() {
|
|
|
195
195
|
} else {
|
|
196
196
|
Y = O;
|
|
197
197
|
var ee = N.get(Y);
|
|
198
|
-
ee !== void 0 || (ee = T(Y.replace(
|
|
198
|
+
ee !== void 0 || (ee = T(Y.replace(M, "-$1").toLowerCase().replace(k, "-ms-")), N.set(Y, ee)), Y = ee, J = typeof J == "number" ? J === 0 || a.call(g, O) ? "" + J : J + "px" : T(("" + J).trim());
|
|
199
199
|
}
|
|
200
200
|
x ? (x = !1, m.push(' style="', Y, ":", J)) : m.push(";", Y, ":", J);
|
|
201
201
|
}
|
|
@@ -251,7 +251,7 @@ function Df() {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function z(m, x, D) {
|
|
255
255
|
if (x != null) {
|
|
256
256
|
if (D != null) throw Error(n(60));
|
|
257
257
|
if (typeof x != "object" || !("__html" in x)) throw Error(n(61));
|
|
@@ -265,7 +265,7 @@ function Df() {
|
|
|
265
265
|
}), x;
|
|
266
266
|
}
|
|
267
267
|
function W(m, x, D, O) {
|
|
268
|
-
m.push(
|
|
268
|
+
m.push($(D));
|
|
269
269
|
var J = D = null, Y;
|
|
270
270
|
for (Y in x) if (a.call(x, Y)) {
|
|
271
271
|
var ee = x[Y];
|
|
@@ -280,21 +280,21 @@ function Df() {
|
|
|
280
280
|
H(m, O, Y, ee);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
return m.push(">"),
|
|
283
|
+
return m.push(">"), z(m, J, D), typeof D == "string" ? (m.push(T(D)), null) : D;
|
|
284
284
|
}
|
|
285
|
-
var
|
|
286
|
-
function
|
|
287
|
-
var x =
|
|
285
|
+
var j = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, q = /* @__PURE__ */ new Map();
|
|
286
|
+
function $(m) {
|
|
287
|
+
var x = q.get(m);
|
|
288
288
|
if (x === void 0) {
|
|
289
|
-
if (!
|
|
290
|
-
x = "<" + m,
|
|
289
|
+
if (!j.test(m)) throw Error(n(65, m));
|
|
290
|
+
x = "<" + m, q.set(m, x);
|
|
291
291
|
}
|
|
292
292
|
return x;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function ie(m, x, D, O, J) {
|
|
295
295
|
switch (x) {
|
|
296
296
|
case "select":
|
|
297
|
-
m.push(
|
|
297
|
+
m.push($("select"));
|
|
298
298
|
var Y = null, ee = null;
|
|
299
299
|
for (ke in D) if (a.call(D, ke)) {
|
|
300
300
|
var ce = D[ke];
|
|
@@ -312,9 +312,9 @@ function Df() {
|
|
|
312
312
|
H(m, O, ke, ce);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
return m.push(">"),
|
|
315
|
+
return m.push(">"), z(m, ee, Y), Y;
|
|
316
316
|
case "option":
|
|
317
|
-
ee = J.selectedValue, m.push(
|
|
317
|
+
ee = J.selectedValue, m.push($("option"));
|
|
318
318
|
var Se = ce = null, Pe = null, ke = null;
|
|
319
319
|
for (Y in D) if (a.call(D, Y)) {
|
|
320
320
|
var Ye = D[Y];
|
|
@@ -342,9 +342,9 @@ function Df() {
|
|
|
342
342
|
}
|
|
343
343
|
} else "" + ee === D && m.push(' selected=""');
|
|
344
344
|
else Pe && m.push(' selected=""');
|
|
345
|
-
return m.push(">"),
|
|
345
|
+
return m.push(">"), z(m, ke, ce), ce;
|
|
346
346
|
case "textarea":
|
|
347
|
-
m.push(
|
|
347
|
+
m.push($("textarea")), ke = ee = Y = null;
|
|
348
348
|
for (ce in D) if (a.call(D, ce) && (Se = D[ce], Se != null)) switch (ce) {
|
|
349
349
|
case "children":
|
|
350
350
|
ke = Se;
|
|
@@ -374,7 +374,7 @@ function Df() {
|
|
|
374
374
|
` && m.push(`
|
|
375
375
|
`), Y !== null && m.push(T("" + Y)), null;
|
|
376
376
|
case "input":
|
|
377
|
-
m.push(
|
|
377
|
+
m.push($("input")), Se = ke = ce = Y = null;
|
|
378
378
|
for (ee in D) if (a.call(D, ee) && (Pe = D[ee], Pe != null)) switch (ee) {
|
|
379
379
|
case "children":
|
|
380
380
|
case "dangerouslySetInnerHTML":
|
|
@@ -396,7 +396,7 @@ function Df() {
|
|
|
396
396
|
}
|
|
397
397
|
return ke !== null ? H(m, O, "checked", ke) : Se !== null && H(m, O, "checked", Se), Y !== null ? H(m, O, "value", Y) : ce !== null && H(m, O, "value", ce), m.push("/>"), null;
|
|
398
398
|
case "menuitem":
|
|
399
|
-
m.push(
|
|
399
|
+
m.push($("menuitem"));
|
|
400
400
|
for (var Ht in D) if (a.call(D, Ht) && (Y = D[Ht], Y != null)) switch (Ht) {
|
|
401
401
|
case "children":
|
|
402
402
|
case "dangerouslySetInnerHTML":
|
|
@@ -406,7 +406,7 @@ function Df() {
|
|
|
406
406
|
}
|
|
407
407
|
return m.push(">"), null;
|
|
408
408
|
case "title":
|
|
409
|
-
m.push(
|
|
409
|
+
m.push($("title")), Y = null;
|
|
410
410
|
for (Ye in D) if (a.call(D, Ye) && (ee = D[Ye], ee != null)) switch (Ye) {
|
|
411
411
|
case "children":
|
|
412
412
|
Y = ee;
|
|
@@ -419,7 +419,7 @@ function Df() {
|
|
|
419
419
|
return m.push(">"), Y;
|
|
420
420
|
case "listing":
|
|
421
421
|
case "pre":
|
|
422
|
-
m.push(
|
|
422
|
+
m.push($(x)), ee = Y = null;
|
|
423
423
|
for (Se in D) if (a.call(D, Se) && (ce = D[Se], ce != null)) switch (Se) {
|
|
424
424
|
case "children":
|
|
425
425
|
Y = ce;
|
|
@@ -454,7 +454,7 @@ function Df() {
|
|
|
454
454
|
case "source":
|
|
455
455
|
case "track":
|
|
456
456
|
case "wbr":
|
|
457
|
-
m.push(
|
|
457
|
+
m.push($(x));
|
|
458
458
|
for (var Nt in D) if (a.call(D, Nt) && (Y = D[Nt], Y != null)) switch (Nt) {
|
|
459
459
|
case "children":
|
|
460
460
|
case "dangerouslySetInnerHTML":
|
|
@@ -481,7 +481,7 @@ function Df() {
|
|
|
481
481
|
return J.insertionMode === 0 && m.push("<!DOCTYPE html>"), W(m, D, x, O);
|
|
482
482
|
default:
|
|
483
483
|
if (x.indexOf("-") === -1 && typeof D.is != "string") return W(m, D, x, O);
|
|
484
|
-
m.push(
|
|
484
|
+
m.push($(x)), ee = Y = null;
|
|
485
485
|
for (Pe in D) if (a.call(D, Pe) && (ce = D[Pe], ce != null)) switch (Pe) {
|
|
486
486
|
case "children":
|
|
487
487
|
Y = ce;
|
|
@@ -498,7 +498,7 @@ function Df() {
|
|
|
498
498
|
default:
|
|
499
499
|
f(Pe) && typeof ce != "function" && typeof ce != "symbol" && m.push(" ", Pe, '="', T(ce), '"');
|
|
500
500
|
}
|
|
501
|
-
return m.push(">"),
|
|
501
|
+
return m.push(">"), z(m, ee, Y), Y;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
function se(m, x, D) {
|
|
@@ -568,13 +568,13 @@ function Df() {
|
|
|
568
568
|
function Be(m, x, D, O) {
|
|
569
569
|
return D.generateStaticMarkup ? (m.push(T(x)), !1) : (x === "" ? m = O : (O && m.push("<!-- -->"), m.push(T(x)), m = !0), m);
|
|
570
570
|
}
|
|
571
|
-
var L = Object.assign, ve = Symbol.for("react.element"), fe = Symbol.for("react.portal"),
|
|
571
|
+
var L = Object.assign, ve = Symbol.for("react.element"), fe = Symbol.for("react.portal"), ae = Symbol.for("react.fragment"), he = Symbol.for("react.strict_mode"), ye = Symbol.for("react.profiler"), Ie = Symbol.for("react.provider"), Qe = Symbol.for("react.context"), Oe = Symbol.for("react.forward_ref"), We = Symbol.for("react.suspense"), qe = Symbol.for("react.suspense_list"), _t = Symbol.for("react.memo"), Ze = Symbol.for("react.lazy"), et = Symbol.for("react.scope"), mt = Symbol.for("react.debug_trace_mode"), St = Symbol.for("react.legacy_hidden"), Pn = Symbol.for("react.default_value"), vt = Symbol.iterator;
|
|
572
572
|
function Et(m) {
|
|
573
573
|
if (m == null) return null;
|
|
574
574
|
if (typeof m == "function") return m.displayName || m.name || null;
|
|
575
575
|
if (typeof m == "string") return m;
|
|
576
576
|
switch (m) {
|
|
577
|
-
case
|
|
577
|
+
case ae:
|
|
578
578
|
return "Fragment";
|
|
579
579
|
case fe:
|
|
580
580
|
return "Portal";
|
|
@@ -860,7 +860,7 @@ function Df() {
|
|
|
860
860
|
} else wt(m, x, J);
|
|
861
861
|
}
|
|
862
862
|
else if (typeof D == "string") {
|
|
863
|
-
switch (J = x.blockedSegment, Y =
|
|
863
|
+
switch (J = x.blockedSegment, Y = ie(J.chunks, D, O, m.responseState, J.formatContext), J.lastPushedText = !1, ee = J.formatContext, J.formatContext = B(ee, D, O), yn(m, x, Y), J.formatContext = ee, D) {
|
|
864
864
|
case "area":
|
|
865
865
|
case "base":
|
|
866
866
|
case "br":
|
|
@@ -887,7 +887,7 @@ function Df() {
|
|
|
887
887
|
case mt:
|
|
888
888
|
case he:
|
|
889
889
|
case ye:
|
|
890
|
-
case
|
|
890
|
+
case ae:
|
|
891
891
|
wt(m, x, O.children);
|
|
892
892
|
return;
|
|
893
893
|
case qe:
|
|
@@ -1278,11 +1278,11 @@ function If() {
|
|
|
1278
1278
|
typeof v.error == "function" ? v.error(w) : v.close();
|
|
1279
1279
|
}
|
|
1280
1280
|
var g = Object.prototype.hasOwnProperty, y = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, E = {}, T = {};
|
|
1281
|
-
function
|
|
1281
|
+
function M(v) {
|
|
1282
1282
|
return g.call(T, v) ? !0 : g.call(E, v) ? !1 : y.test(v) ? T[v] = !0 : (E[v] = !0, !1);
|
|
1283
1283
|
}
|
|
1284
|
-
function k(v, w, C,
|
|
1285
|
-
this.acceptsBooleans = w === 2 || w === 3 || w === 4, this.attributeName =
|
|
1284
|
+
function k(v, w, C, R, K, V, ne) {
|
|
1285
|
+
this.acceptsBooleans = w === 2 || w === 3 || w === 4, this.attributeName = R, this.attributeNamespace = K, this.mustUseProperty = C, this.propertyName = v, this.type = w, this.sanitizeURL = V, this.removeEmptyString = ne;
|
|
1286
1286
|
}
|
|
1287
1287
|
var I = {};
|
|
1288
1288
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(v) {
|
|
@@ -1377,14 +1377,14 @@ function If() {
|
|
|
1377
1377
|
});
|
|
1378
1378
|
});
|
|
1379
1379
|
var H = /["'&<>]/;
|
|
1380
|
-
function
|
|
1380
|
+
function z(v) {
|
|
1381
1381
|
if (typeof v == "boolean" || typeof v == "number") return "" + v;
|
|
1382
1382
|
v = "" + v;
|
|
1383
1383
|
var w = H.exec(v);
|
|
1384
1384
|
if (w) {
|
|
1385
|
-
var C = "",
|
|
1386
|
-
for (
|
|
1387
|
-
switch (v.charCodeAt(
|
|
1385
|
+
var C = "", R, K = 0;
|
|
1386
|
+
for (R = w.index; R < v.length; R++) {
|
|
1387
|
+
switch (v.charCodeAt(R)) {
|
|
1388
1388
|
case 34:
|
|
1389
1389
|
w = """;
|
|
1390
1390
|
break;
|
|
@@ -1403,21 +1403,21 @@ function If() {
|
|
|
1403
1403
|
default:
|
|
1404
1404
|
continue;
|
|
1405
1405
|
}
|
|
1406
|
-
K !==
|
|
1406
|
+
K !== R && (C += v.substring(K, R)), K = R + 1, C += w;
|
|
1407
1407
|
}
|
|
1408
|
-
v = K !==
|
|
1408
|
+
v = K !== R ? C + v.substring(K, R) : C;
|
|
1409
1409
|
}
|
|
1410
1410
|
return v;
|
|
1411
1411
|
}
|
|
1412
|
-
var Z = /([A-Z])/g, W = /^ms-/,
|
|
1413
|
-
function ge(v, w, C,
|
|
1414
|
-
return "" + w + (C === "s" ? "\\u0073" : "\\u0053") +
|
|
1412
|
+
var Z = /([A-Z])/g, W = /^ms-/, j = Array.isArray, q = d("<script>"), $ = d("<\/script>"), ie = d('<script src="'), se = d('<script type="module" src="'), le = d('" async=""><\/script>'), be = /(<\/|<)(s)(cript)/gi;
|
|
1413
|
+
function ge(v, w, C, R) {
|
|
1414
|
+
return "" + w + (C === "s" ? "\\u0073" : "\\u0053") + R;
|
|
1415
1415
|
}
|
|
1416
|
-
function me(v, w, C,
|
|
1417
|
-
v = v === void 0 ? "" : v, w = w === void 0 ?
|
|
1416
|
+
function me(v, w, C, R, K) {
|
|
1417
|
+
v = v === void 0 ? "" : v, w = w === void 0 ? q : d('<script nonce="' + z(w) + '">');
|
|
1418
1418
|
var V = [];
|
|
1419
|
-
if (C !== void 0 && V.push(w, u(("" + C).replace(be, ge)),
|
|
1420
|
-
if (K !== void 0) for (
|
|
1419
|
+
if (C !== void 0 && V.push(w, u(("" + C).replace(be, ge)), $), R !== void 0) for (C = 0; C < R.length; C++) V.push(ie, u(z(R[C])), le);
|
|
1420
|
+
if (K !== void 0) for (R = 0; R < K.length; R++) V.push(se, u(z(K[R])), le);
|
|
1421
1421
|
return { bootstrapChunks: V, startInlineScript: w, placeholderPrefix: d(v + "P:"), segmentPrefix: d(v + "S:"), boundaryPrefix: v + "B:", idPrefix: v, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1 };
|
|
1422
1422
|
}
|
|
1423
1423
|
function _(v, w) {
|
|
@@ -1450,23 +1450,23 @@ function If() {
|
|
|
1450
1450
|
return 4 <= v.insertionMode || v.insertionMode === 0 ? _(1, null) : v;
|
|
1451
1451
|
}
|
|
1452
1452
|
var ve = d("<!-- -->");
|
|
1453
|
-
function fe(v, w, C,
|
|
1454
|
-
return w === "" ?
|
|
1453
|
+
function fe(v, w, C, R) {
|
|
1454
|
+
return w === "" ? R : (R && v.push(ve), v.push(u(z(w))), !0);
|
|
1455
1455
|
}
|
|
1456
|
-
var
|
|
1456
|
+
var ae = /* @__PURE__ */ new Map(), he = d(' style="'), ye = d(":"), Ie = d(";");
|
|
1457
1457
|
function Qe(v, w, C) {
|
|
1458
1458
|
if (typeof C != "object") throw Error(n(62));
|
|
1459
1459
|
w = !0;
|
|
1460
|
-
for (var
|
|
1461
|
-
var K = C[
|
|
1460
|
+
for (var R in C) if (g.call(C, R)) {
|
|
1461
|
+
var K = C[R];
|
|
1462
1462
|
if (K != null && typeof K != "boolean" && K !== "") {
|
|
1463
|
-
if (
|
|
1464
|
-
var V = u(
|
|
1465
|
-
K = u(
|
|
1463
|
+
if (R.indexOf("--") === 0) {
|
|
1464
|
+
var V = u(z(R));
|
|
1465
|
+
K = u(z(("" + K).trim()));
|
|
1466
1466
|
} else {
|
|
1467
|
-
V =
|
|
1468
|
-
var ne =
|
|
1469
|
-
ne !== void 0 || (ne = d(
|
|
1467
|
+
V = R;
|
|
1468
|
+
var ne = ae.get(V);
|
|
1469
|
+
ne !== void 0 || (ne = d(z(V.replace(Z, "-$1").toLowerCase().replace(W, "-ms-"))), ae.set(V, ne)), V = ne, K = typeof K == "number" ? K === 0 || g.call(N, R) ? u("" + K) : u(K + "px") : u(z(("" + K).trim()));
|
|
1470
1470
|
}
|
|
1471
1471
|
w ? (w = !1, v.push(he, V, ye, K)) : v.push(Ie, V, ye, K);
|
|
1472
1472
|
}
|
|
@@ -1474,10 +1474,10 @@ function If() {
|
|
|
1474
1474
|
w || v.push(qe);
|
|
1475
1475
|
}
|
|
1476
1476
|
var Oe = d(" "), We = d('="'), qe = d('"'), _t = d('=""');
|
|
1477
|
-
function Ze(v, w, C,
|
|
1477
|
+
function Ze(v, w, C, R) {
|
|
1478
1478
|
switch (C) {
|
|
1479
1479
|
case "style":
|
|
1480
|
-
Qe(v, w,
|
|
1480
|
+
Qe(v, w, R);
|
|
1481
1481
|
return;
|
|
1482
1482
|
case "defaultValue":
|
|
1483
1483
|
case "defaultChecked":
|
|
@@ -1488,7 +1488,7 @@ function If() {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
if (!(2 < C.length) || C[0] !== "o" && C[0] !== "O" || C[1] !== "n" && C[1] !== "N") {
|
|
1490
1490
|
if (w = I.hasOwnProperty(C) ? I[C] : null, w !== null) {
|
|
1491
|
-
switch (typeof
|
|
1491
|
+
switch (typeof R) {
|
|
1492
1492
|
case "function":
|
|
1493
1493
|
case "symbol":
|
|
1494
1494
|
return;
|
|
@@ -1497,29 +1497,29 @@ function If() {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
switch (C = u(w.attributeName), w.type) {
|
|
1499
1499
|
case 3:
|
|
1500
|
-
|
|
1500
|
+
R && v.push(Oe, C, _t);
|
|
1501
1501
|
break;
|
|
1502
1502
|
case 4:
|
|
1503
|
-
|
|
1503
|
+
R === !0 ? v.push(Oe, C, _t) : R !== !1 && v.push(Oe, C, We, u(z(R)), qe);
|
|
1504
1504
|
break;
|
|
1505
1505
|
case 5:
|
|
1506
|
-
isNaN(
|
|
1506
|
+
isNaN(R) || v.push(Oe, C, We, u(z(R)), qe);
|
|
1507
1507
|
break;
|
|
1508
1508
|
case 6:
|
|
1509
|
-
!isNaN(
|
|
1509
|
+
!isNaN(R) && 1 <= R && v.push(Oe, C, We, u(z(R)), qe);
|
|
1510
1510
|
break;
|
|
1511
1511
|
default:
|
|
1512
|
-
w.sanitizeURL && (
|
|
1512
|
+
w.sanitizeURL && (R = "" + R), v.push(Oe, C, We, u(z(R)), qe);
|
|
1513
1513
|
}
|
|
1514
|
-
} else if (
|
|
1515
|
-
switch (typeof
|
|
1514
|
+
} else if (M(C)) {
|
|
1515
|
+
switch (typeof R) {
|
|
1516
1516
|
case "function":
|
|
1517
1517
|
case "symbol":
|
|
1518
1518
|
return;
|
|
1519
1519
|
case "boolean":
|
|
1520
1520
|
if (w = C.toLowerCase().slice(0, 5), w !== "data-" && w !== "aria-") return;
|
|
1521
1521
|
}
|
|
1522
|
-
v.push(Oe, u(C), We, u(
|
|
1522
|
+
v.push(Oe, u(C), We, u(z(R)), qe);
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
@@ -1538,7 +1538,7 @@ function If() {
|
|
|
1538
1538
|
}), w;
|
|
1539
1539
|
}
|
|
1540
1540
|
var vt = d(' selected=""');
|
|
1541
|
-
function Et(v, w, C,
|
|
1541
|
+
function Et(v, w, C, R) {
|
|
1542
1542
|
v.push(ft(C));
|
|
1543
1543
|
var K = C = null, V;
|
|
1544
1544
|
for (V in w) if (g.call(w, V)) {
|
|
@@ -1551,10 +1551,10 @@ function If() {
|
|
|
1551
1551
|
K = ne;
|
|
1552
1552
|
break;
|
|
1553
1553
|
default:
|
|
1554
|
-
Ze(v,
|
|
1554
|
+
Ze(v, R, V, ne);
|
|
1555
1555
|
}
|
|
1556
1556
|
}
|
|
1557
|
-
return v.push(et), St(v, K, C), typeof C == "string" ? (v.push(u(
|
|
1557
|
+
return v.push(et), St(v, K, C), typeof C == "string" ? (v.push(u(z(C))), null) : C;
|
|
1558
1558
|
}
|
|
1559
1559
|
var tt = d(`
|
|
1560
1560
|
`), Tt = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, lt = /* @__PURE__ */ new Map();
|
|
@@ -1567,7 +1567,7 @@ function If() {
|
|
|
1567
1567
|
return w;
|
|
1568
1568
|
}
|
|
1569
1569
|
var ct = d("<!DOCTYPE html>");
|
|
1570
|
-
function rn(v, w, C,
|
|
1570
|
+
function rn(v, w, C, R, K) {
|
|
1571
1571
|
switch (w) {
|
|
1572
1572
|
case "select":
|
|
1573
1573
|
v.push(ft("select"));
|
|
@@ -1585,7 +1585,7 @@ function If() {
|
|
|
1585
1585
|
case "value":
|
|
1586
1586
|
break;
|
|
1587
1587
|
default:
|
|
1588
|
-
Ze(v,
|
|
1588
|
+
Ze(v, R, Le, ue);
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
1591
|
return v.push(et), St(v, ne, V), V;
|
|
@@ -1607,12 +1607,12 @@ function If() {
|
|
|
1607
1607
|
case "value":
|
|
1608
1608
|
Te = it;
|
|
1609
1609
|
default:
|
|
1610
|
-
Ze(v,
|
|
1610
|
+
Ze(v, R, V, it);
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
|
-
if (ne != null) if (C = Te !== null ? "" + Te : Pn(ue),
|
|
1614
|
-
for (
|
|
1615
|
-
if ("" + ne[
|
|
1613
|
+
if (ne != null) if (C = Te !== null ? "" + Te : Pn(ue), j(ne)) {
|
|
1614
|
+
for (R = 0; R < ne.length; R++)
|
|
1615
|
+
if ("" + ne[R] === C) {
|
|
1616
1616
|
v.push(vt);
|
|
1617
1617
|
break;
|
|
1618
1618
|
}
|
|
@@ -1634,15 +1634,15 @@ function If() {
|
|
|
1634
1634
|
case "dangerouslySetInnerHTML":
|
|
1635
1635
|
throw Error(n(91));
|
|
1636
1636
|
default:
|
|
1637
|
-
Ze(v,
|
|
1637
|
+
Ze(v, R, ue, Te);
|
|
1638
1638
|
}
|
|
1639
1639
|
if (V === null && ne !== null && (V = ne), v.push(et), Le != null) {
|
|
1640
1640
|
if (V != null) throw Error(n(92));
|
|
1641
|
-
if (
|
|
1641
|
+
if (j(Le) && 1 < Le.length) throw Error(n(93));
|
|
1642
1642
|
V = "" + Le;
|
|
1643
1643
|
}
|
|
1644
1644
|
return typeof V == "string" && V[0] === `
|
|
1645
|
-
` && v.push(tt), V !== null && v.push(u(
|
|
1645
|
+
` && v.push(tt), V !== null && v.push(u(z("" + V))), null;
|
|
1646
1646
|
case "input":
|
|
1647
1647
|
v.push(ft("input")), Te = Le = ue = V = null;
|
|
1648
1648
|
for (ne in C) if (g.call(C, ne) && (He = C[ne], He != null)) switch (ne) {
|
|
@@ -1662,14 +1662,14 @@ function If() {
|
|
|
1662
1662
|
V = He;
|
|
1663
1663
|
break;
|
|
1664
1664
|
default:
|
|
1665
|
-
Ze(v,
|
|
1665
|
+
Ze(v, R, ne, He);
|
|
1666
1666
|
}
|
|
1667
1667
|
return Le !== null ? Ze(
|
|
1668
1668
|
v,
|
|
1669
|
-
|
|
1669
|
+
R,
|
|
1670
1670
|
"checked",
|
|
1671
1671
|
Le
|
|
1672
|
-
) : Te !== null && Ze(v,
|
|
1672
|
+
) : Te !== null && Ze(v, R, "checked", Te), V !== null ? Ze(v, R, "value", V) : ue !== null && Ze(v, R, "value", ue), v.push(mt), null;
|
|
1673
1673
|
case "menuitem":
|
|
1674
1674
|
v.push(ft("menuitem"));
|
|
1675
1675
|
for (var Vt in C) if (g.call(C, Vt) && (V = C[Vt], V != null)) switch (Vt) {
|
|
@@ -1677,7 +1677,7 @@ function If() {
|
|
|
1677
1677
|
case "dangerouslySetInnerHTML":
|
|
1678
1678
|
throw Error(n(400));
|
|
1679
1679
|
default:
|
|
1680
|
-
Ze(v,
|
|
1680
|
+
Ze(v, R, Vt, V);
|
|
1681
1681
|
}
|
|
1682
1682
|
return v.push(et), null;
|
|
1683
1683
|
case "title":
|
|
@@ -1689,7 +1689,7 @@ function If() {
|
|
|
1689
1689
|
case "dangerouslySetInnerHTML":
|
|
1690
1690
|
throw Error(n(434));
|
|
1691
1691
|
default:
|
|
1692
|
-
Ze(v,
|
|
1692
|
+
Ze(v, R, it, ne);
|
|
1693
1693
|
}
|
|
1694
1694
|
return v.push(et), V;
|
|
1695
1695
|
case "listing":
|
|
@@ -1703,7 +1703,7 @@ function If() {
|
|
|
1703
1703
|
ne = ue;
|
|
1704
1704
|
break;
|
|
1705
1705
|
default:
|
|
1706
|
-
Ze(v,
|
|
1706
|
+
Ze(v, R, Te, ue);
|
|
1707
1707
|
}
|
|
1708
1708
|
if (v.push(et), ne != null) {
|
|
1709
1709
|
if (V != null) throw Error(n(60));
|
|
@@ -1733,7 +1733,7 @@ function If() {
|
|
|
1733
1733
|
case "dangerouslySetInnerHTML":
|
|
1734
1734
|
throw Error(n(399, w));
|
|
1735
1735
|
default:
|
|
1736
|
-
Ze(v,
|
|
1736
|
+
Ze(v, R, sn, V);
|
|
1737
1737
|
}
|
|
1738
1738
|
return v.push(mt), null;
|
|
1739
1739
|
case "annotation-xml":
|
|
@@ -1744,11 +1744,11 @@ function If() {
|
|
|
1744
1744
|
case "font-face-format":
|
|
1745
1745
|
case "font-face-name":
|
|
1746
1746
|
case "missing-glyph":
|
|
1747
|
-
return Et(v, C, w,
|
|
1747
|
+
return Et(v, C, w, R);
|
|
1748
1748
|
case "html":
|
|
1749
|
-
return K.insertionMode === 0 && v.push(ct), Et(v, C, w,
|
|
1749
|
+
return K.insertionMode === 0 && v.push(ct), Et(v, C, w, R);
|
|
1750
1750
|
default:
|
|
1751
|
-
if (w.indexOf("-") === -1 && typeof C.is != "string") return Et(v, C, w,
|
|
1751
|
+
if (w.indexOf("-") === -1 && typeof C.is != "string") return Et(v, C, w, R);
|
|
1752
1752
|
v.push(ft(w)), ne = V = null;
|
|
1753
1753
|
for (He in C) if (g.call(C, He) && (ue = C[He], ue != null)) switch (He) {
|
|
1754
1754
|
case "children":
|
|
@@ -1758,13 +1758,13 @@ function If() {
|
|
|
1758
1758
|
ne = ue;
|
|
1759
1759
|
break;
|
|
1760
1760
|
case "style":
|
|
1761
|
-
Qe(v,
|
|
1761
|
+
Qe(v, R, ue);
|
|
1762
1762
|
break;
|
|
1763
1763
|
case "suppressContentEditableWarning":
|
|
1764
1764
|
case "suppressHydrationWarning":
|
|
1765
1765
|
break;
|
|
1766
1766
|
default:
|
|
1767
|
-
|
|
1767
|
+
M(He) && typeof ue != "function" && typeof ue != "symbol" && v.push(Oe, u(He), We, u(z(ue)), qe);
|
|
1768
1768
|
}
|
|
1769
1769
|
return v.push(et), St(v, ne, V), V;
|
|
1770
1770
|
}
|
|
@@ -1777,26 +1777,26 @@ function If() {
|
|
|
1777
1777
|
return o(v, C), s(v, Fe);
|
|
1778
1778
|
}
|
|
1779
1779
|
var Dt = d('<div hidden id="'), Ct = d('">'), Xe = d("</div>"), Hn = d('<svg aria-hidden="true" style="display:none" id="'), pr = d('">'), nr = d("</svg>"), pn = d('<math aria-hidden="true" style="display:none" id="'), hr = d('">'), Dn = d("</math>"), Pt = d('<table hidden id="'), Fr = d('">'), Hr = d("</table>"), oo = d('<table hidden><tbody id="'), bt = d('">'), Nr = d("</tbody></table>"), Ho = d('<table hidden><tr id="'), No = d('">'), hn = d("</tr></table>"), Ur = d('<table hidden><colgroup id="'), gr = d('">'), Nn = d("</colgroup></table>");
|
|
1780
|
-
function jt(v, w, C,
|
|
1780
|
+
function jt(v, w, C, R) {
|
|
1781
1781
|
switch (C.insertionMode) {
|
|
1782
1782
|
case 0:
|
|
1783
1783
|
case 1:
|
|
1784
|
-
return o(v, Dt), o(v, w.segmentPrefix), o(v, u(
|
|
1784
|
+
return o(v, Dt), o(v, w.segmentPrefix), o(v, u(R.toString(16))), s(v, Ct);
|
|
1785
1785
|
case 2:
|
|
1786
|
-
return o(v, Hn), o(v, w.segmentPrefix), o(v, u(
|
|
1786
|
+
return o(v, Hn), o(v, w.segmentPrefix), o(v, u(R.toString(16))), s(v, pr);
|
|
1787
1787
|
case 3:
|
|
1788
|
-
return o(v, pn), o(v, w.segmentPrefix), o(v, u(
|
|
1788
|
+
return o(v, pn), o(v, w.segmentPrefix), o(v, u(R.toString(16))), s(v, hr);
|
|
1789
1789
|
case 4:
|
|
1790
|
-
return o(v, Pt), o(v, w.segmentPrefix), o(v, u(
|
|
1790
|
+
return o(v, Pt), o(v, w.segmentPrefix), o(v, u(R.toString(16))), s(v, Fr);
|
|
1791
1791
|
case 5:
|
|
1792
|
-
return o(v, oo), o(v, w.segmentPrefix), o(v, u(
|
|
1792
|
+
return o(v, oo), o(v, w.segmentPrefix), o(v, u(R.toString(16))), s(v, bt);
|
|
1793
1793
|
case 6:
|
|
1794
|
-
return o(v, Ho), o(v, w.segmentPrefix), o(v, u(
|
|
1794
|
+
return o(v, Ho), o(v, w.segmentPrefix), o(v, u(R.toString(16))), s(v, No);
|
|
1795
1795
|
case 7:
|
|
1796
1796
|
return o(
|
|
1797
1797
|
v,
|
|
1798
1798
|
Ur
|
|
1799
|
-
), o(v, w.segmentPrefix), o(v, u(
|
|
1799
|
+
), o(v, w.segmentPrefix), o(v, u(R.toString(16))), s(v, gr);
|
|
1800
1800
|
default:
|
|
1801
1801
|
throw Error(n(397));
|
|
1802
1802
|
}
|
|
@@ -1878,8 +1878,8 @@ function If() {
|
|
|
1878
1878
|
var Se = {};
|
|
1879
1879
|
function Pe(v, w) {
|
|
1880
1880
|
if (v = v.contextTypes, !v) return Se;
|
|
1881
|
-
var C = {},
|
|
1882
|
-
for (
|
|
1881
|
+
var C = {}, R;
|
|
1882
|
+
for (R in v) C[R] = w[R];
|
|
1883
1883
|
return C;
|
|
1884
1884
|
}
|
|
1885
1885
|
var ke = null;
|
|
@@ -1924,17 +1924,17 @@ function If() {
|
|
|
1924
1924
|
v = v._reactInternals, v.replace = !0, v.queue = [w];
|
|
1925
1925
|
}, enqueueForceUpdate: function() {
|
|
1926
1926
|
} };
|
|
1927
|
-
function Vn(v, w, C,
|
|
1927
|
+
function Vn(v, w, C, R) {
|
|
1928
1928
|
var K = v.state !== void 0 ? v.state : null;
|
|
1929
1929
|
v.updater = wr, v.props = C, v.state = K;
|
|
1930
1930
|
var V = { queue: [], replace: !1 };
|
|
1931
1931
|
v._reactInternals = V;
|
|
1932
1932
|
var ne = w.contextType;
|
|
1933
|
-
if (v.context = typeof ne == "object" && ne !== null ? ne._currentValue :
|
|
1933
|
+
if (v.context = typeof ne == "object" && ne !== null ? ne._currentValue : R, ne = w.getDerivedStateFromProps, typeof ne == "function" && (ne = ne(C, K), K = ne == null ? K : bn({}, K, ne), v.state = K), typeof w.getDerivedStateFromProps != "function" && typeof v.getSnapshotBeforeUpdate != "function" && (typeof v.UNSAFE_componentWillMount == "function" || typeof v.componentWillMount == "function")) if (w = v.state, typeof v.componentWillMount == "function" && v.componentWillMount(), typeof v.UNSAFE_componentWillMount == "function" && v.UNSAFE_componentWillMount(), w !== v.state && wr.enqueueReplaceState(v, v.state, null), V.queue !== null && 0 < V.queue.length) if (w = V.queue, ne = V.replace, V.queue = null, V.replace = !1, ne && w.length === 1) v.state = w[0];
|
|
1934
1934
|
else {
|
|
1935
1935
|
for (V = ne ? w[0] : v.state, K = !0, ne = ne ? 1 : 0; ne < w.length; ne++) {
|
|
1936
1936
|
var ue = w[ne];
|
|
1937
|
-
ue = typeof ue == "function" ? ue.call(v, V, C,
|
|
1937
|
+
ue = typeof ue == "function" ? ue.call(v, V, C, R) : ue, ue != null && (K ? (K = !1, V = bn({}, V, ue)) : bn(V, ue));
|
|
1938
1938
|
}
|
|
1939
1939
|
v.state = V;
|
|
1940
1940
|
}
|
|
@@ -1942,16 +1942,16 @@ function If() {
|
|
|
1942
1942
|
}
|
|
1943
1943
|
var or = { id: 1, overflow: "" };
|
|
1944
1944
|
function Bn(v, w, C) {
|
|
1945
|
-
var
|
|
1945
|
+
var R = v.id;
|
|
1946
1946
|
v = v.overflow;
|
|
1947
|
-
var K = 32 - ir(
|
|
1948
|
-
|
|
1947
|
+
var K = 32 - ir(R) - 1;
|
|
1948
|
+
R &= ~(1 << K), C += 1;
|
|
1949
1949
|
var V = 32 - ir(w) + K;
|
|
1950
1950
|
if (30 < V) {
|
|
1951
1951
|
var ne = K - K % 5;
|
|
1952
|
-
return V = (
|
|
1952
|
+
return V = (R & (1 << ne) - 1).toString(32), R >>= ne, K -= ne, { id: 1 << 32 - ir(w) + K | C << K | R, overflow: V + v };
|
|
1953
1953
|
}
|
|
1954
|
-
return { id: 1 << V | C << K |
|
|
1954
|
+
return { id: 1 << V | C << K | R, overflow: v };
|
|
1955
1955
|
}
|
|
1956
1956
|
var ir = Math.clz32 ? Math.clz32 : so, Qa = Math.log, Fa = Math.LN2;
|
|
1957
1957
|
function so(v) {
|
|
@@ -1980,13 +1980,13 @@ function If() {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
function Ao(v, w, C) {
|
|
1982
1982
|
if (Rn = Jn(), ot = zo(), ar) {
|
|
1983
|
-
var
|
|
1984
|
-
if (w =
|
|
1985
|
-
Xn.delete(
|
|
1983
|
+
var R = ot.queue;
|
|
1984
|
+
if (w = R.dispatch, Xn !== null && (C = Xn.get(R), C !== void 0)) {
|
|
1985
|
+
Xn.delete(R), R = ot.memoizedState;
|
|
1986
1986
|
do
|
|
1987
|
-
|
|
1987
|
+
R = v(R, C.action), C = C.next;
|
|
1988
1988
|
while (C !== null);
|
|
1989
|
-
return ot.memoizedState =
|
|
1989
|
+
return ot.memoizedState = R, [R, w];
|
|
1990
1990
|
}
|
|
1991
1991
|
return [ot.memoizedState, w];
|
|
1992
1992
|
}
|
|
@@ -1996,16 +1996,16 @@ function If() {
|
|
|
1996
1996
|
if (Rn = Jn(), ot = zo(), w = w === void 0 ? null : w, ot !== null) {
|
|
1997
1997
|
var C = ot.memoizedState;
|
|
1998
1998
|
if (C !== null && w !== null) {
|
|
1999
|
-
var
|
|
2000
|
-
e: if (
|
|
1999
|
+
var R = C[1];
|
|
2000
|
+
e: if (R === null) R = !1;
|
|
2001
2001
|
else {
|
|
2002
|
-
for (var K = 0; K <
|
|
2003
|
-
|
|
2002
|
+
for (var K = 0; K < R.length && K < w.length; K++) if (!Ha(w[K], R[K])) {
|
|
2003
|
+
R = !1;
|
|
2004
2004
|
break e;
|
|
2005
2005
|
}
|
|
2006
|
-
|
|
2006
|
+
R = !0;
|
|
2007
2007
|
}
|
|
2008
|
-
if (
|
|
2008
|
+
if (R) return C[0];
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
2011
2011
|
return v = v(), ot.memoizedState = [v, w], v;
|
|
@@ -2059,20 +2059,20 @@ function If() {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
function xr() {
|
|
2061
2061
|
}
|
|
2062
|
-
function Wo(v, w, C,
|
|
2062
|
+
function Wo(v, w, C, R, K, V, ne, ue, Te) {
|
|
2063
2063
|
var He = [], Le = /* @__PURE__ */ new Set();
|
|
2064
|
-
return w = { destination: null, responseState: w, progressiveChunkSize:
|
|
2064
|
+
return w = { destination: null, responseState: w, progressiveChunkSize: R === void 0 ? 12800 : R, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: Le, pingedTasks: He, clientRenderedBoundaries: [], completedBoundaries: [], partialBoundaries: [], onError: K === void 0 ? za : K, onAllReady: V === void 0 ? xr : V, onShellReady: ne === void 0 ? xr : ne, onShellError: ue === void 0 ? xr : ue, onFatalError: Te === void 0 ? xr : Te }, C = Sr(w, 0, null, C, !1, !1), C.parentFlushed = !0, v = Yo(w, v, null, C, Le, Se, null, or), He.push(v), w;
|
|
2065
2065
|
}
|
|
2066
|
-
function Yo(v, w, C,
|
|
2066
|
+
function Yo(v, w, C, R, K, V, ne, ue) {
|
|
2067
2067
|
v.allPendingTasks++, C === null ? v.pendingRootTasks++ : C.pendingTasks++;
|
|
2068
2068
|
var Te = { node: w, ping: function() {
|
|
2069
2069
|
var He = v.pingedTasks;
|
|
2070
2070
|
He.push(Te), He.length === 1 && Hi(v);
|
|
2071
|
-
}, blockedBoundary: C, blockedSegment:
|
|
2071
|
+
}, blockedBoundary: C, blockedSegment: R, abortSet: K, legacyContext: V, context: ne, treeContext: ue };
|
|
2072
2072
|
return K.add(Te), Te;
|
|
2073
2073
|
}
|
|
2074
|
-
function Sr(v, w, C,
|
|
2075
|
-
return { status: 0, id: -1, index: w, parentFlushed: !1, chunks: [], children: [], formatContext:
|
|
2074
|
+
function Sr(v, w, C, R, K, V) {
|
|
2075
|
+
return { status: 0, id: -1, index: w, parentFlushed: !1, chunks: [], children: [], formatContext: R, boundary: C, lastPushedText: K, textEmbedded: V };
|
|
2076
2076
|
}
|
|
2077
2077
|
function Wr(v, w) {
|
|
2078
2078
|
if (v = v.onError(w), v != null && typeof v != "string") throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "' + typeof v + '" instead');
|
|
@@ -2082,21 +2082,21 @@ function If() {
|
|
|
2082
2082
|
var C = v.onShellError;
|
|
2083
2083
|
C(w), C = v.onFatalError, C(w), v.destination !== null ? (v.status = 2, h(v.destination, w)) : (v.status = 1, v.fatalError = w);
|
|
2084
2084
|
}
|
|
2085
|
-
function Mi(v, w, C,
|
|
2086
|
-
for (Rn = {}, Uo = w, sr = 0, v = C(
|
|
2085
|
+
function Mi(v, w, C, R, K) {
|
|
2086
|
+
for (Rn = {}, Uo = w, sr = 0, v = C(R, K); co; ) co = !1, sr = 0, uo += 1, ot = null, v = C(R, K);
|
|
2087
2087
|
return zr(), v;
|
|
2088
2088
|
}
|
|
2089
|
-
function Oi(v, w, C,
|
|
2090
|
-
var K = C.render(), V =
|
|
2089
|
+
function Oi(v, w, C, R) {
|
|
2090
|
+
var K = C.render(), V = R.childContextTypes;
|
|
2091
2091
|
if (V != null) {
|
|
2092
2092
|
var ne = w.legacyContext;
|
|
2093
|
-
if (typeof C.getChildContext != "function")
|
|
2093
|
+
if (typeof C.getChildContext != "function") R = ne;
|
|
2094
2094
|
else {
|
|
2095
2095
|
C = C.getChildContext();
|
|
2096
|
-
for (var ue in C) if (!(ue in V)) throw Error(n(108, ce(
|
|
2097
|
-
|
|
2096
|
+
for (var ue in C) if (!(ue in V)) throw Error(n(108, ce(R) || "Unknown", ue));
|
|
2097
|
+
R = bn({}, ne, C);
|
|
2098
2098
|
}
|
|
2099
|
-
w.legacyContext =
|
|
2099
|
+
w.legacyContext = R, Gt(v, w, K), w.legacyContext = ne;
|
|
2100
2100
|
} else Gt(v, w, K);
|
|
2101
2101
|
}
|
|
2102
2102
|
function _i(v, w) {
|
|
@@ -2107,26 +2107,26 @@ function If() {
|
|
|
2107
2107
|
}
|
|
2108
2108
|
return w;
|
|
2109
2109
|
}
|
|
2110
|
-
function ho(v, w, C,
|
|
2110
|
+
function ho(v, w, C, R, K) {
|
|
2111
2111
|
if (typeof C == "function") if (C.prototype && C.prototype.isReactComponent) {
|
|
2112
2112
|
K = Pe(C, w.legacyContext);
|
|
2113
2113
|
var V = C.contextType;
|
|
2114
|
-
V = new C(
|
|
2114
|
+
V = new C(R, typeof V == "object" && V !== null ? V._currentValue : K), Vn(V, C, R, K), Oi(v, w, V, C);
|
|
2115
2115
|
} else {
|
|
2116
|
-
V = Pe(C, w.legacyContext), K = Mi(v, w, C,
|
|
2116
|
+
V = Pe(C, w.legacyContext), K = Mi(v, w, C, R, V);
|
|
2117
2117
|
var ne = sr !== 0;
|
|
2118
|
-
if (typeof K == "object" && K !== null && typeof K.render == "function" && K.$$typeof === void 0) Vn(K, C,
|
|
2118
|
+
if (typeof K == "object" && K !== null && typeof K.render == "function" && K.$$typeof === void 0) Vn(K, C, R, V), Oi(v, w, K, C);
|
|
2119
2119
|
else if (ne) {
|
|
2120
|
-
|
|
2120
|
+
R = w.treeContext, w.treeContext = Bn(R, 1, 0);
|
|
2121
2121
|
try {
|
|
2122
2122
|
Gt(v, w, K);
|
|
2123
2123
|
} finally {
|
|
2124
|
-
w.treeContext =
|
|
2124
|
+
w.treeContext = R;
|
|
2125
2125
|
}
|
|
2126
2126
|
} else Gt(v, w, K);
|
|
2127
2127
|
}
|
|
2128
2128
|
else if (typeof C == "string") {
|
|
2129
|
-
switch (K = w.blockedSegment, V = rn(K.chunks, C,
|
|
2129
|
+
switch (K = w.blockedSegment, V = rn(K.chunks, C, R, v.responseState, K.formatContext), K.lastPushedText = !1, ne = K.formatContext, K.formatContext = L(ne, C, R), go(v, w, V), K.formatContext = ne, C) {
|
|
2130
2130
|
case "area":
|
|
2131
2131
|
case "base":
|
|
2132
2132
|
case "br":
|
|
@@ -2154,16 +2154,16 @@ function If() {
|
|
|
2154
2154
|
case yr:
|
|
2155
2155
|
case Zt:
|
|
2156
2156
|
case rr:
|
|
2157
|
-
Gt(v, w,
|
|
2157
|
+
Gt(v, w, R.children);
|
|
2158
2158
|
return;
|
|
2159
2159
|
case Yt:
|
|
2160
|
-
Gt(v, w,
|
|
2160
|
+
Gt(v, w, R.children);
|
|
2161
2161
|
return;
|
|
2162
2162
|
case D:
|
|
2163
2163
|
throw Error(n(343));
|
|
2164
2164
|
case It:
|
|
2165
2165
|
e: {
|
|
2166
|
-
C = w.blockedBoundary, K = w.blockedSegment, V =
|
|
2166
|
+
C = w.blockedBoundary, K = w.blockedSegment, V = R.fallback, R = R.children, ne = /* @__PURE__ */ new Set();
|
|
2167
2167
|
var ue = { id: null, rootSegmentID: -1, parentFlushed: !1, pendingTasks: 0, forceClientRender: !1, completedSegments: [], byteSize: 0, fallbackAbortableTasks: ne, errorDigest: null }, Te = Sr(v, K.chunks.length, ue, K.formatContext, !1, !1);
|
|
2168
2168
|
K.children.push(Te), K.lastPushedText = !1;
|
|
2169
2169
|
var He = Sr(v, 0, null, K.formatContext, !1, !1);
|
|
@@ -2172,7 +2172,7 @@ function If() {
|
|
|
2172
2172
|
if (go(
|
|
2173
2173
|
v,
|
|
2174
2174
|
w,
|
|
2175
|
-
|
|
2175
|
+
R
|
|
2176
2176
|
), He.lastPushedText && He.textEmbedded && He.chunks.push(ve), He.status = 1, mo(ue, He), ue.pendingTasks === 0) break e;
|
|
2177
2177
|
} catch (Le) {
|
|
2178
2178
|
He.status = 4, ue.forceClientRender = !0, ue.errorDigest = Wr(v, Le);
|
|
@@ -2185,27 +2185,27 @@ function If() {
|
|
|
2185
2185
|
}
|
|
2186
2186
|
if (typeof C == "object" && C !== null) switch (C.$$typeof) {
|
|
2187
2187
|
case br:
|
|
2188
|
-
if (
|
|
2188
|
+
if (R = Mi(v, w, C.render, R, K), sr !== 0) {
|
|
2189
2189
|
C = w.treeContext, w.treeContext = Bn(C, 1, 0);
|
|
2190
2190
|
try {
|
|
2191
|
-
Gt(v, w,
|
|
2191
|
+
Gt(v, w, R);
|
|
2192
2192
|
} finally {
|
|
2193
2193
|
w.treeContext = C;
|
|
2194
2194
|
}
|
|
2195
|
-
} else Gt(v, w,
|
|
2195
|
+
} else Gt(v, w, R);
|
|
2196
2196
|
return;
|
|
2197
2197
|
case m:
|
|
2198
|
-
C = C.type,
|
|
2198
|
+
C = C.type, R = _i(C, R), ho(v, w, C, R, K);
|
|
2199
2199
|
return;
|
|
2200
2200
|
case wn:
|
|
2201
|
-
if (K =
|
|
2202
|
-
|
|
2201
|
+
if (K = R.children, C = C._context, R = R.value, V = C._currentValue, C._currentValue = R, ne = ke, ke = R = { parent: ne, depth: ne === null ? 0 : ne.depth + 1, context: C, parentValue: V, value: R }, w.context = R, Gt(v, w, K), v = ke, v === null) throw Error(n(403));
|
|
2202
|
+
R = v.parentValue, v.context._currentValue = R === Y ? v.context._defaultValue : R, v = ke = v.parent, w.context = v;
|
|
2203
2203
|
return;
|
|
2204
2204
|
case Ft:
|
|
2205
|
-
|
|
2205
|
+
R = R.children, R = R(C._currentValue), Gt(v, w, R);
|
|
2206
2206
|
return;
|
|
2207
2207
|
case x:
|
|
2208
|
-
K = C._init, C = K(C._payload),
|
|
2208
|
+
K = C._init, C = K(C._payload), R = _i(C, R), ho(v, w, C, R, void 0);
|
|
2209
2209
|
return;
|
|
2210
2210
|
}
|
|
2211
2211
|
throw Error(n(
|
|
@@ -2224,19 +2224,19 @@ function If() {
|
|
|
2224
2224
|
case Yn:
|
|
2225
2225
|
throw Error(n(257));
|
|
2226
2226
|
case x:
|
|
2227
|
-
var
|
|
2228
|
-
C =
|
|
2227
|
+
var R = C._init;
|
|
2228
|
+
C = R(C._payload), Gt(v, w, C);
|
|
2229
2229
|
return;
|
|
2230
2230
|
}
|
|
2231
|
-
if (
|
|
2231
|
+
if (j(C)) {
|
|
2232
2232
|
Li(v, w, C);
|
|
2233
2233
|
return;
|
|
2234
2234
|
}
|
|
2235
|
-
if (C === null || typeof C != "object" ?
|
|
2236
|
-
if (C =
|
|
2235
|
+
if (C === null || typeof C != "object" ? R = null : (R = ee && C[ee] || C["@@iterator"], R = typeof R == "function" ? R : null), R && (R = R.call(C))) {
|
|
2236
|
+
if (C = R.next(), !C.done) {
|
|
2237
2237
|
var K = [];
|
|
2238
2238
|
do
|
|
2239
|
-
K.push(C.value), C =
|
|
2239
|
+
K.push(C.value), C = R.next();
|
|
2240
2240
|
while (!C.done);
|
|
2241
2241
|
Li(v, w, K);
|
|
2242
2242
|
}
|
|
@@ -2244,12 +2244,12 @@ function If() {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
throw v = Object.prototype.toString.call(C), Error(n(31, v === "[object Object]" ? "object with keys {" + Object.keys(C).join(", ") + "}" : v));
|
|
2246
2246
|
}
|
|
2247
|
-
typeof C == "string" ? (
|
|
2247
|
+
typeof C == "string" ? (R = w.blockedSegment, R.lastPushedText = fe(w.blockedSegment.chunks, C, v.responseState, R.lastPushedText)) : typeof C == "number" && (R = w.blockedSegment, R.lastPushedText = fe(w.blockedSegment.chunks, "" + C, v.responseState, R.lastPushedText));
|
|
2248
2248
|
}
|
|
2249
2249
|
function Li(v, w, C) {
|
|
2250
|
-
for (var
|
|
2250
|
+
for (var R = C.length, K = 0; K < R; K++) {
|
|
2251
2251
|
var V = w.treeContext;
|
|
2252
|
-
w.treeContext = Bn(V,
|
|
2252
|
+
w.treeContext = Bn(V, R, K);
|
|
2253
2253
|
try {
|
|
2254
2254
|
go(v, w, C[K]);
|
|
2255
2255
|
} finally {
|
|
@@ -2258,15 +2258,15 @@ function If() {
|
|
|
2258
2258
|
}
|
|
2259
2259
|
}
|
|
2260
2260
|
function go(v, w, C) {
|
|
2261
|
-
var
|
|
2261
|
+
var R = w.blockedSegment.formatContext, K = w.legacyContext, V = w.context;
|
|
2262
2262
|
try {
|
|
2263
2263
|
return Gt(v, w, C);
|
|
2264
2264
|
} catch (Te) {
|
|
2265
2265
|
if (zr(), typeof Te == "object" && Te !== null && typeof Te.then == "function") {
|
|
2266
2266
|
C = Te;
|
|
2267
2267
|
var ne = w.blockedSegment, ue = Sr(v, ne.chunks.length, null, ne.formatContext, ne.lastPushedText, !0);
|
|
2268
|
-
ne.children.push(ue), ne.lastPushedText = !1, v = Yo(v, w.node, w.blockedBoundary, ue, w.abortSet, w.legacyContext, w.context, w.treeContext).ping, C.then(v, v), w.blockedSegment.formatContext =
|
|
2269
|
-
} else throw w.blockedSegment.formatContext =
|
|
2268
|
+
ne.children.push(ue), ne.lastPushedText = !1, v = Yo(v, w.node, w.blockedBoundary, ue, w.abortSet, w.legacyContext, w.context, w.treeContext).ping, C.then(v, v), w.blockedSegment.formatContext = R, w.legacyContext = K, w.context = V, xn(V);
|
|
2269
|
+
} else throw w.blockedSegment.formatContext = R, w.legacyContext = K, w.context = V, xn(V), Te;
|
|
2270
2270
|
}
|
|
2271
2271
|
}
|
|
2272
2272
|
function ja(v) {
|
|
@@ -2274,10 +2274,10 @@ function If() {
|
|
|
2274
2274
|
v = v.blockedSegment, v.status = 3, Fi(this, w, v);
|
|
2275
2275
|
}
|
|
2276
2276
|
function Qi(v, w, C) {
|
|
2277
|
-
var
|
|
2278
|
-
v.blockedSegment.status = 3,
|
|
2277
|
+
var R = v.blockedBoundary;
|
|
2278
|
+
v.blockedSegment.status = 3, R === null ? (w.allPendingTasks--, w.status !== 2 && (w.status = 2, w.destination !== null && w.destination.close())) : (R.pendingTasks--, R.forceClientRender || (R.forceClientRender = !0, v = C === void 0 ? Error(n(432)) : C, R.errorDigest = w.onError(v), R.parentFlushed && w.clientRenderedBoundaries.push(R)), R.fallbackAbortableTasks.forEach(function(K) {
|
|
2279
2279
|
return Qi(K, w, C);
|
|
2280
|
-
}),
|
|
2280
|
+
}), R.fallbackAbortableTasks.clear(), w.allPendingTasks--, w.allPendingTasks === 0 && (R = w.onAllReady, R()));
|
|
2281
2281
|
}
|
|
2282
2282
|
function mo(v, w) {
|
|
2283
2283
|
if (w.chunks.length === 0 && w.children.length === 1 && w.children[0].boundary === null) {
|
|
@@ -2299,7 +2299,7 @@ function If() {
|
|
|
2299
2299
|
if (v.status !== 2) {
|
|
2300
2300
|
var w = ke, C = jo.current;
|
|
2301
2301
|
jo.current = Ri;
|
|
2302
|
-
var
|
|
2302
|
+
var R = jr;
|
|
2303
2303
|
jr = v.responseState;
|
|
2304
2304
|
try {
|
|
2305
2305
|
var K = v.pingedTasks, V;
|
|
@@ -2329,42 +2329,42 @@ function If() {
|
|
|
2329
2329
|
} catch (ln) {
|
|
2330
2330
|
Wr(v, ln), po(v, ln);
|
|
2331
2331
|
} finally {
|
|
2332
|
-
jr =
|
|
2332
|
+
jr = R, jo.current = C, C === Ri && xn(w);
|
|
2333
2333
|
}
|
|
2334
2334
|
}
|
|
2335
2335
|
}
|
|
2336
2336
|
function vo(v, w, C) {
|
|
2337
2337
|
switch (C.parentFlushed = !0, C.status) {
|
|
2338
2338
|
case 0:
|
|
2339
|
-
var
|
|
2340
|
-
return C.lastPushedText = !1, C.textEmbedded = !1, v = v.responseState, o(w, nt), o(w, v.placeholderPrefix), v = u(
|
|
2339
|
+
var R = C.id = v.nextSegmentId++;
|
|
2340
|
+
return C.lastPushedText = !1, C.textEmbedded = !1, v = v.responseState, o(w, nt), o(w, v.placeholderPrefix), v = u(R.toString(16)), o(w, v), s(w, te);
|
|
2341
2341
|
case 1:
|
|
2342
2342
|
C.status = 2;
|
|
2343
2343
|
var K = !0;
|
|
2344
|
-
|
|
2344
|
+
R = C.chunks;
|
|
2345
2345
|
var V = 0;
|
|
2346
2346
|
C = C.children;
|
|
2347
2347
|
for (var ne = 0; ne < C.length; ne++) {
|
|
2348
|
-
for (K = C[ne]; V < K.index; V++) o(w,
|
|
2348
|
+
for (K = C[ne]; V < K.index; V++) o(w, R[V]);
|
|
2349
2349
|
K = yo(v, w, K);
|
|
2350
2350
|
}
|
|
2351
|
-
for (; V <
|
|
2352
|
-
return V <
|
|
2351
|
+
for (; V < R.length - 1; V++) o(w, R[V]);
|
|
2352
|
+
return V < R.length && (K = s(w, R[V])), K;
|
|
2353
2353
|
default:
|
|
2354
2354
|
throw Error(n(390));
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
2357
2357
|
function yo(v, w, C) {
|
|
2358
|
-
var
|
|
2359
|
-
if (
|
|
2360
|
-
if (
|
|
2361
|
-
else if (0 <
|
|
2362
|
-
|
|
2358
|
+
var R = C.boundary;
|
|
2359
|
+
if (R === null) return vo(v, w, C);
|
|
2360
|
+
if (R.parentFlushed = !0, R.forceClientRender) R = R.errorDigest, s(w, _e), o(w, yt), R && (o(w, Lt), o(w, u(z(R))), o(w, rt)), s(w, tr), vo(v, w, C);
|
|
2361
|
+
else if (0 < R.pendingTasks) {
|
|
2362
|
+
R.rootSegmentID = v.nextSegmentId++, 0 < R.completedSegments.length && v.partialBoundaries.push(R);
|
|
2363
2363
|
var K = v.responseState, V = K.nextSuspenseID++;
|
|
2364
|
-
K = d(K.boundaryPrefix + V.toString(16)),
|
|
2365
|
-
} else if (
|
|
2364
|
+
K = d(K.boundaryPrefix + V.toString(16)), R = R.id = K, Ke(w, v.responseState, R), vo(v, w, C);
|
|
2365
|
+
} else if (R.byteSize > v.progressiveChunkSize) R.rootSegmentID = v.nextSegmentId++, v.completedBoundaries.push(R), Ke(w, v.responseState, R.id), vo(v, w, C);
|
|
2366
2366
|
else {
|
|
2367
|
-
if (s(w, we), C =
|
|
2367
|
+
if (s(w, we), C = R.completedSegments, C.length !== 1) throw Error(n(391));
|
|
2368
2368
|
yo(v, w, C[0]);
|
|
2369
2369
|
}
|
|
2370
2370
|
return s(w, ut);
|
|
@@ -2373,18 +2373,18 @@ function If() {
|
|
|
2373
2373
|
return jt(w, v.responseState, C.formatContext, C.id), yo(v, w, C), gn(w, C.formatContext);
|
|
2374
2374
|
}
|
|
2375
2375
|
function Ui(v, w, C) {
|
|
2376
|
-
for (var
|
|
2377
|
-
if (
|
|
2378
|
-
return C = u(C.toString(16)), o(w,
|
|
2376
|
+
for (var R = C.completedSegments, K = 0; K < R.length; K++) zi(v, w, C, R[K]);
|
|
2377
|
+
if (R.length = 0, v = v.responseState, R = C.id, C = C.rootSegmentID, o(w, v.startInlineScript), v.sentCompleteBoundaryFunction ? o(w, Wt) : (v.sentCompleteBoundaryFunction = !0, o(w, jn)), R === null) throw Error(n(395));
|
|
2378
|
+
return C = u(C.toString(16)), o(w, R), o(w, io), o(w, v.segmentPrefix), o(w, C), s(w, ao);
|
|
2379
2379
|
}
|
|
2380
|
-
function zi(v, w, C,
|
|
2381
|
-
if (
|
|
2382
|
-
var K =
|
|
2380
|
+
function zi(v, w, C, R) {
|
|
2381
|
+
if (R.status === 2) return !0;
|
|
2382
|
+
var K = R.id;
|
|
2383
2383
|
if (K === -1) {
|
|
2384
|
-
if ((
|
|
2385
|
-
return Ni(v, w,
|
|
2384
|
+
if ((R.id = C.rootSegmentID) === -1) throw Error(n(392));
|
|
2385
|
+
return Ni(v, w, R);
|
|
2386
2386
|
}
|
|
2387
|
-
return Ni(v, w,
|
|
2387
|
+
return Ni(v, w, R), v = v.responseState, o(w, v.startInlineScript), v.sentCompleteSegmentFunction ? o(w, Un) : (v.sentCompleteSegmentFunction = !0, o(w, mr)), o(w, v.segmentPrefix), K = u(K.toString(16)), o(w, K), o(w, zn), o(w, v.placeholderPrefix), o(w, K), s(w, mn);
|
|
2388
2388
|
}
|
|
2389
2389
|
function Go(v, w) {
|
|
2390
2390
|
a = new Uint8Array(512), i = 0;
|
|
@@ -2392,20 +2392,20 @@ function If() {
|
|
|
2392
2392
|
var C = v.completedRootSegment;
|
|
2393
2393
|
if (C !== null && v.pendingRootTasks === 0) {
|
|
2394
2394
|
yo(v, w, C), v.completedRootSegment = null;
|
|
2395
|
-
var
|
|
2396
|
-
for (C = 0; C <
|
|
2397
|
-
C <
|
|
2395
|
+
var R = v.responseState.bootstrapChunks;
|
|
2396
|
+
for (C = 0; C < R.length - 1; C++) o(w, R[C]);
|
|
2397
|
+
C < R.length && s(w, R[C]);
|
|
2398
2398
|
}
|
|
2399
2399
|
var K = v.clientRenderedBoundaries, V;
|
|
2400
2400
|
for (V = 0; V < K.length; V++) {
|
|
2401
2401
|
var ne = K[V];
|
|
2402
|
-
|
|
2402
|
+
R = w;
|
|
2403
2403
|
var ue = v.responseState, Te = ne.id, He = ne.errorDigest, Le = ne.errorMessage, it = ne.errorComponentStack;
|
|
2404
|
-
if (o(
|
|
2405
|
-
|
|
2404
|
+
if (o(R, ue.startInlineScript), ue.sentClientRenderFunction ? o(R, wt) : (ue.sentClientRenderFunction = !0, o(
|
|
2405
|
+
R,
|
|
2406
2406
|
In
|
|
2407
2407
|
)), Te === null) throw Error(n(395));
|
|
2408
|
-
o(
|
|
2408
|
+
o(R, Te), o(R, vn), (He || Le || it) && (o(R, Wn), o(R, u(on(He || "")))), (Le || it) && (o(R, Wn), o(R, u(on(Le || "")))), it && (o(R, Wn), o(R, u(on(it)))), s(R, yn);
|
|
2409
2409
|
}
|
|
2410
2410
|
K.splice(0, V);
|
|
2411
2411
|
var Vt = v.completedBoundaries;
|
|
@@ -2445,15 +2445,15 @@ function If() {
|
|
|
2445
2445
|
function ji(v, w) {
|
|
2446
2446
|
try {
|
|
2447
2447
|
var C = v.abortableTasks;
|
|
2448
|
-
C.forEach(function(
|
|
2449
|
-
return Qi(
|
|
2448
|
+
C.forEach(function(R) {
|
|
2449
|
+
return Qi(R, v, w);
|
|
2450
2450
|
}), C.clear(), v.destination !== null && Go(v, v.destination);
|
|
2451
|
-
} catch (
|
|
2452
|
-
Wr(v,
|
|
2451
|
+
} catch (R) {
|
|
2452
|
+
Wr(v, R), po(v, R);
|
|
2453
2453
|
}
|
|
2454
2454
|
}
|
|
2455
2455
|
return Pl.renderToReadableStream = function(v, w) {
|
|
2456
|
-
return new Promise(function(C,
|
|
2456
|
+
return new Promise(function(C, R) {
|
|
2457
2457
|
var K, V, ne = new Promise(function(Le, it) {
|
|
2458
2458
|
V = Le, K = it;
|
|
2459
2459
|
}), ue = Wo(v, me(w ? w.identifierPrefix : void 0, w ? w.nonce : void 0, w ? w.bootstrapScriptContent : void 0, w ? w.bootstrapScripts : void 0, w ? w.bootstrapModules : void 0), Be(w ? w.namespaceURI : void 0), w ? w.progressiveChunkSize : void 0, w ? w.onError : void 0, V, function() {
|
|
@@ -2473,7 +2473,7 @@ function If() {
|
|
|
2473
2473
|
Le.allReady = ne, C(Le);
|
|
2474
2474
|
}, function(Le) {
|
|
2475
2475
|
ne.catch(function() {
|
|
2476
|
-
}),
|
|
2476
|
+
}), R(Le);
|
|
2477
2477
|
}, K);
|
|
2478
2478
|
if (w && w.signal) {
|
|
2479
2479
|
var Te = w.signal, He = function() {
|
|
@@ -2548,7 +2548,7 @@ function Bf() {
|
|
|
2548
2548
|
function T(t, r) {
|
|
2549
2549
|
t.destroy(r);
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2551
|
+
function M(t) {
|
|
2552
2552
|
{
|
|
2553
2553
|
var r = typeof Symbol == "function" && Symbol.toStringTag, l = r && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
2554
2554
|
return l;
|
|
@@ -2566,17 +2566,17 @@ function Bf() {
|
|
|
2566
2566
|
}
|
|
2567
2567
|
function Q(t, r) {
|
|
2568
2568
|
if (k(t))
|
|
2569
|
-
return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", r,
|
|
2569
|
+
return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", r, M(t)), I(t);
|
|
2570
2570
|
}
|
|
2571
2571
|
function B(t, r) {
|
|
2572
2572
|
if (k(t))
|
|
2573
|
-
return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", r,
|
|
2573
|
+
return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", r, M(t)), I(t);
|
|
2574
2574
|
}
|
|
2575
2575
|
function N(t) {
|
|
2576
2576
|
if (k(t))
|
|
2577
|
-
return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
2577
|
+
return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.", M(t)), I(t);
|
|
2578
2578
|
}
|
|
2579
|
-
var U = Object.prototype.hasOwnProperty, H = 0,
|
|
2579
|
+
var U = Object.prototype.hasOwnProperty, H = 0, z = 1, Z = 2, W = 3, j = 4, q = 5, $ = 6, ie = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", se = ie + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", le = new RegExp("^[" + ie + "][" + se + "]*$"), be = {}, ge = {};
|
|
2580
2580
|
function me(t) {
|
|
2581
2581
|
return U.call(ge, t) ? !0 : U.call(be, t) ? !1 : le.test(t) ? (ge[t] = !0, !0) : (be[t] = !0, o("Invalid attribute name: `%s`", t), !1);
|
|
2582
2582
|
}
|
|
@@ -2601,7 +2601,7 @@ function Bf() {
|
|
|
2601
2601
|
return ve.hasOwnProperty(t) ? ve[t] : null;
|
|
2602
2602
|
}
|
|
2603
2603
|
function L(t, r, l, p, b, S, P) {
|
|
2604
|
-
this.acceptsBooleans = r === Z || r === W || r ===
|
|
2604
|
+
this.acceptsBooleans = r === Z || r === W || r === j, this.attributeName = p, this.attributeNamespace = b, this.mustUseProperty = l, this.propertyName = t, this.type = r, this.sanitizeURL = S, this.removeEmptyString = P;
|
|
2605
2605
|
}
|
|
2606
2606
|
var ve = {}, fe = [
|
|
2607
2607
|
"children",
|
|
@@ -2634,7 +2634,7 @@ function Bf() {
|
|
|
2634
2634
|
var r = t[0], l = t[1];
|
|
2635
2635
|
ve[r] = new L(
|
|
2636
2636
|
r,
|
|
2637
|
-
|
|
2637
|
+
z,
|
|
2638
2638
|
!1,
|
|
2639
2639
|
// mustUseProperty
|
|
2640
2640
|
l,
|
|
@@ -2747,7 +2747,7 @@ function Bf() {
|
|
|
2747
2747
|
].forEach(function(t) {
|
|
2748
2748
|
ve[t] = new L(
|
|
2749
2749
|
t,
|
|
2750
|
-
|
|
2750
|
+
j,
|
|
2751
2751
|
!1,
|
|
2752
2752
|
// mustUseProperty
|
|
2753
2753
|
t,
|
|
@@ -2769,7 +2769,7 @@ function Bf() {
|
|
|
2769
2769
|
].forEach(function(t) {
|
|
2770
2770
|
ve[t] = new L(
|
|
2771
2771
|
t,
|
|
2772
|
-
|
|
2772
|
+
$,
|
|
2773
2773
|
!1,
|
|
2774
2774
|
// mustUseProperty
|
|
2775
2775
|
t,
|
|
@@ -2783,7 +2783,7 @@ function Bf() {
|
|
|
2783
2783
|
}), ["rowSpan", "start"].forEach(function(t) {
|
|
2784
2784
|
ve[t] = new L(
|
|
2785
2785
|
t,
|
|
2786
|
-
|
|
2786
|
+
q,
|
|
2787
2787
|
!1,
|
|
2788
2788
|
// mustUseProperty
|
|
2789
2789
|
t.toLowerCase(),
|
|
@@ -2795,7 +2795,7 @@ function Bf() {
|
|
|
2795
2795
|
!1
|
|
2796
2796
|
);
|
|
2797
2797
|
});
|
|
2798
|
-
var
|
|
2798
|
+
var ae = /[\-\:]([a-z])/g, he = function(t) {
|
|
2799
2799
|
return t[1].toUpperCase();
|
|
2800
2800
|
};
|
|
2801
2801
|
[
|
|
@@ -2876,10 +2876,10 @@ function Bf() {
|
|
|
2876
2876
|
// you'll need to set attributeName to name.toLowerCase()
|
|
2877
2877
|
// instead in the assignment below.
|
|
2878
2878
|
].forEach(function(t) {
|
|
2879
|
-
var r = t.replace(
|
|
2879
|
+
var r = t.replace(ae, he);
|
|
2880
2880
|
ve[r] = new L(
|
|
2881
2881
|
r,
|
|
2882
|
-
|
|
2882
|
+
z,
|
|
2883
2883
|
!1,
|
|
2884
2884
|
// mustUseProperty
|
|
2885
2885
|
t,
|
|
@@ -2900,10 +2900,10 @@ function Bf() {
|
|
|
2900
2900
|
// you'll need to set attributeName to name.toLowerCase()
|
|
2901
2901
|
// instead in the assignment below.
|
|
2902
2902
|
].forEach(function(t) {
|
|
2903
|
-
var r = t.replace(
|
|
2903
|
+
var r = t.replace(ae, he);
|
|
2904
2904
|
ve[r] = new L(
|
|
2905
2905
|
r,
|
|
2906
|
-
|
|
2906
|
+
z,
|
|
2907
2907
|
!1,
|
|
2908
2908
|
// mustUseProperty
|
|
2909
2909
|
t,
|
|
@@ -2920,10 +2920,10 @@ function Bf() {
|
|
|
2920
2920
|
// you'll need to set attributeName to name.toLowerCase()
|
|
2921
2921
|
// instead in the assignment below.
|
|
2922
2922
|
].forEach(function(t) {
|
|
2923
|
-
var r = t.replace(
|
|
2923
|
+
var r = t.replace(ae, he);
|
|
2924
2924
|
ve[r] = new L(
|
|
2925
2925
|
r,
|
|
2926
|
-
|
|
2926
|
+
z,
|
|
2927
2927
|
!1,
|
|
2928
2928
|
// mustUseProperty
|
|
2929
2929
|
t,
|
|
@@ -2935,7 +2935,7 @@ function Bf() {
|
|
|
2935
2935
|
}), ["tabIndex", "crossOrigin"].forEach(function(t) {
|
|
2936
2936
|
ve[t] = new L(
|
|
2937
2937
|
t,
|
|
2938
|
-
|
|
2938
|
+
z,
|
|
2939
2939
|
!1,
|
|
2940
2940
|
// mustUseProperty
|
|
2941
2941
|
t.toLowerCase(),
|
|
@@ -2950,7 +2950,7 @@ function Bf() {
|
|
|
2950
2950
|
var ye = "xlinkHref";
|
|
2951
2951
|
ve[ye] = new L(
|
|
2952
2952
|
"xlinkHref",
|
|
2953
|
-
|
|
2953
|
+
z,
|
|
2954
2954
|
!1,
|
|
2955
2955
|
// mustUseProperty
|
|
2956
2956
|
"xlink:href",
|
|
@@ -2961,7 +2961,7 @@ function Bf() {
|
|
|
2961
2961
|
), ["src", "href", "action", "formAction"].forEach(function(t) {
|
|
2962
2962
|
ve[t] = new L(
|
|
2963
2963
|
t,
|
|
2964
|
-
|
|
2964
|
+
z,
|
|
2965
2965
|
!1,
|
|
2966
2966
|
// mustUseProperty
|
|
2967
2967
|
t.toLowerCase(),
|
|
@@ -3903,13 +3903,13 @@ function Bf() {
|
|
|
3903
3903
|
case W:
|
|
3904
3904
|
p && t.push(Zt, P, br);
|
|
3905
3905
|
return;
|
|
3906
|
-
case
|
|
3906
|
+
case j:
|
|
3907
3907
|
p === !0 ? t.push(Zt, P, br) : p === !1 || t.push(Zt, P, wn, Pt(p), Ft);
|
|
3908
3908
|
return;
|
|
3909
|
-
case
|
|
3909
|
+
case q:
|
|
3910
3910
|
isNaN(p) || t.push(Zt, P, wn, Pt(p), Ft);
|
|
3911
3911
|
break;
|
|
3912
|
-
case
|
|
3912
|
+
case $:
|
|
3913
3913
|
!isNaN(p) && p >= 1 && t.push(Zt, P, wn, Pt(p), Ft);
|
|
3914
3914
|
break;
|
|
3915
3915
|
default:
|
|
@@ -4397,9 +4397,9 @@ function Bf() {
|
|
|
4397
4397
|
throw new Error("Unknown insertion mode. This is a bug in React.");
|
|
4398
4398
|
}
|
|
4399
4399
|
}
|
|
4400
|
-
var v = "function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}", w = 'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}', C = 'function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',
|
|
4400
|
+
var v = "function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}", w = 'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}', C = 'function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}', R = v + ';$RS("', K = '$RS("', V = '","', ne = '")<\/script>';
|
|
4401
4401
|
function ue(t, r, l) {
|
|
4402
|
-
u(t, r.startInlineScript), r.sentCompleteSegmentFunction ? u(t, K) : (r.sentCompleteSegmentFunction = !0, u(t,
|
|
4402
|
+
u(t, r.startInlineScript), r.sentCompleteSegmentFunction ? u(t, K) : (r.sentCompleteSegmentFunction = !0, u(t, R)), u(t, r.segmentPrefix);
|
|
4403
4403
|
var p = l.toString(16);
|
|
4404
4404
|
return u(t, p), u(t, V), u(t, r.placeholderPrefix), u(t, p), d(t, ne);
|
|
4405
4405
|
}
|
|
@@ -6124,12 +6124,12 @@ function Rf() {
|
|
|
6124
6124
|
function T(c) {
|
|
6125
6125
|
c.close();
|
|
6126
6126
|
}
|
|
6127
|
-
var
|
|
6127
|
+
var M = new TextEncoder();
|
|
6128
6128
|
function k(c) {
|
|
6129
|
-
return
|
|
6129
|
+
return M.encode(c);
|
|
6130
6130
|
}
|
|
6131
6131
|
function I(c) {
|
|
6132
|
-
return
|
|
6132
|
+
return M.encode(c);
|
|
6133
6133
|
}
|
|
6134
6134
|
function Q(c, t) {
|
|
6135
6135
|
typeof c.error == "function" ? c.error(t) : c.close();
|
|
@@ -6154,7 +6154,7 @@ function Rf() {
|
|
|
6154
6154
|
if (N(c))
|
|
6155
6155
|
return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", t, B(c)), U(c);
|
|
6156
6156
|
}
|
|
6157
|
-
function
|
|
6157
|
+
function z(c, t) {
|
|
6158
6158
|
if (N(c))
|
|
6159
6159
|
return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", t, B(c)), U(c);
|
|
6160
6160
|
}
|
|
@@ -6162,12 +6162,12 @@ function Rf() {
|
|
|
6162
6162
|
if (N(c))
|
|
6163
6163
|
return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.", B(c)), U(c);
|
|
6164
6164
|
}
|
|
6165
|
-
var W = Object.prototype.hasOwnProperty,
|
|
6165
|
+
var W = Object.prototype.hasOwnProperty, j = 0, q = 1, $ = 2, ie = 3, se = 4, le = 5, be = 6, ge = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", me = ge + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", _ = new RegExp("^[" + ge + "][" + me + "]*$"), Be = {}, L = {};
|
|
6166
6166
|
function ve(c) {
|
|
6167
6167
|
return W.call(L, c) ? !0 : W.call(Be, c) ? !1 : _.test(c) ? (L[c] = !0, !0) : (Be[c] = !0, o("Invalid attribute name: `%s`", c), !1);
|
|
6168
6168
|
}
|
|
6169
6169
|
function fe(c, t, r, l) {
|
|
6170
|
-
if (r !== null && r.type ===
|
|
6170
|
+
if (r !== null && r.type === j)
|
|
6171
6171
|
return !1;
|
|
6172
6172
|
switch (typeof t) {
|
|
6173
6173
|
case "function":
|
|
@@ -6183,11 +6183,11 @@ function Rf() {
|
|
|
6183
6183
|
return !1;
|
|
6184
6184
|
}
|
|
6185
6185
|
}
|
|
6186
|
-
function
|
|
6186
|
+
function ae(c) {
|
|
6187
6187
|
return ye.hasOwnProperty(c) ? ye[c] : null;
|
|
6188
6188
|
}
|
|
6189
6189
|
function he(c, t, r, l, p, b, S) {
|
|
6190
|
-
this.acceptsBooleans = t ===
|
|
6190
|
+
this.acceptsBooleans = t === $ || t === ie || t === se, this.attributeName = l, this.attributeNamespace = p, this.mustUseProperty = r, this.propertyName = c, this.type = t, this.sanitizeURL = b, this.removeEmptyString = S;
|
|
6191
6191
|
}
|
|
6192
6192
|
var ye = {}, Ie = [
|
|
6193
6193
|
"children",
|
|
@@ -6205,7 +6205,7 @@ function Rf() {
|
|
|
6205
6205
|
Ie.forEach(function(c) {
|
|
6206
6206
|
ye[c] = new he(
|
|
6207
6207
|
c,
|
|
6208
|
-
|
|
6208
|
+
j,
|
|
6209
6209
|
!1,
|
|
6210
6210
|
// mustUseProperty
|
|
6211
6211
|
c,
|
|
@@ -6220,7 +6220,7 @@ function Rf() {
|
|
|
6220
6220
|
var t = c[0], r = c[1];
|
|
6221
6221
|
ye[t] = new he(
|
|
6222
6222
|
t,
|
|
6223
|
-
|
|
6223
|
+
q,
|
|
6224
6224
|
!1,
|
|
6225
6225
|
// mustUseProperty
|
|
6226
6226
|
r,
|
|
@@ -6234,7 +6234,7 @@ function Rf() {
|
|
|
6234
6234
|
}), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(c) {
|
|
6235
6235
|
ye[c] = new he(
|
|
6236
6236
|
c,
|
|
6237
|
-
|
|
6237
|
+
$,
|
|
6238
6238
|
!1,
|
|
6239
6239
|
// mustUseProperty
|
|
6240
6240
|
c.toLowerCase(),
|
|
@@ -6248,7 +6248,7 @@ function Rf() {
|
|
|
6248
6248
|
}), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(c) {
|
|
6249
6249
|
ye[c] = new he(
|
|
6250
6250
|
c,
|
|
6251
|
-
|
|
6251
|
+
$,
|
|
6252
6252
|
!1,
|
|
6253
6253
|
// mustUseProperty
|
|
6254
6254
|
c,
|
|
@@ -6289,7 +6289,7 @@ function Rf() {
|
|
|
6289
6289
|
].forEach(function(c) {
|
|
6290
6290
|
ye[c] = new he(
|
|
6291
6291
|
c,
|
|
6292
|
-
|
|
6292
|
+
ie,
|
|
6293
6293
|
!1,
|
|
6294
6294
|
// mustUseProperty
|
|
6295
6295
|
c.toLowerCase(),
|
|
@@ -6313,7 +6313,7 @@ function Rf() {
|
|
|
6313
6313
|
].forEach(function(c) {
|
|
6314
6314
|
ye[c] = new he(
|
|
6315
6315
|
c,
|
|
6316
|
-
|
|
6316
|
+
ie,
|
|
6317
6317
|
!0,
|
|
6318
6318
|
// mustUseProperty
|
|
6319
6319
|
c,
|
|
@@ -6465,7 +6465,7 @@ function Rf() {
|
|
|
6465
6465
|
var t = c.replace(Qe, Oe);
|
|
6466
6466
|
ye[t] = new he(
|
|
6467
6467
|
t,
|
|
6468
|
-
|
|
6468
|
+
q,
|
|
6469
6469
|
!1,
|
|
6470
6470
|
// mustUseProperty
|
|
6471
6471
|
c,
|
|
@@ -6489,7 +6489,7 @@ function Rf() {
|
|
|
6489
6489
|
var t = c.replace(Qe, Oe);
|
|
6490
6490
|
ye[t] = new he(
|
|
6491
6491
|
t,
|
|
6492
|
-
|
|
6492
|
+
q,
|
|
6493
6493
|
!1,
|
|
6494
6494
|
// mustUseProperty
|
|
6495
6495
|
c,
|
|
@@ -6509,7 +6509,7 @@ function Rf() {
|
|
|
6509
6509
|
var t = c.replace(Qe, Oe);
|
|
6510
6510
|
ye[t] = new he(
|
|
6511
6511
|
t,
|
|
6512
|
-
|
|
6512
|
+
q,
|
|
6513
6513
|
!1,
|
|
6514
6514
|
// mustUseProperty
|
|
6515
6515
|
c,
|
|
@@ -6521,7 +6521,7 @@ function Rf() {
|
|
|
6521
6521
|
}), ["tabIndex", "crossOrigin"].forEach(function(c) {
|
|
6522
6522
|
ye[c] = new he(
|
|
6523
6523
|
c,
|
|
6524
|
-
|
|
6524
|
+
q,
|
|
6525
6525
|
!1,
|
|
6526
6526
|
// mustUseProperty
|
|
6527
6527
|
c.toLowerCase(),
|
|
@@ -6536,7 +6536,7 @@ function Rf() {
|
|
|
6536
6536
|
var We = "xlinkHref";
|
|
6537
6537
|
ye[We] = new he(
|
|
6538
6538
|
"xlinkHref",
|
|
6539
|
-
|
|
6539
|
+
q,
|
|
6540
6540
|
!1,
|
|
6541
6541
|
// mustUseProperty
|
|
6542
6542
|
"xlink:href",
|
|
@@ -6547,7 +6547,7 @@ function Rf() {
|
|
|
6547
6547
|
), ["src", "href", "action", "formAction"].forEach(function(c) {
|
|
6548
6548
|
ye[c] = new he(
|
|
6549
6549
|
c,
|
|
6550
|
-
|
|
6550
|
+
q,
|
|
6551
6551
|
!1,
|
|
6552
6552
|
// mustUseProperty
|
|
6553
6553
|
c.toLowerCase(),
|
|
@@ -7266,14 +7266,14 @@ function Rf() {
|
|
|
7266
7266
|
return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.", typeof r), nt[t] = !0, !0;
|
|
7267
7267
|
if (typeof r == "number" && isNaN(r))
|
|
7268
7268
|
return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", t), nt[t] = !0, !0;
|
|
7269
|
-
var F =
|
|
7269
|
+
var F = ae(t), G = F !== null && F.type === j;
|
|
7270
7270
|
if (Tn.hasOwnProperty(p)) {
|
|
7271
7271
|
var re = Tn[p];
|
|
7272
7272
|
if (re !== t)
|
|
7273
7273
|
return o("Invalid DOM property `%s`. Did you mean `%s`?", t, re), nt[t] = !0, !0;
|
|
7274
7274
|
} else if (!G && t !== p)
|
|
7275
7275
|
return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", t, p), nt[t] = !0, !0;
|
|
7276
|
-
return typeof r == "boolean" && fe(t, r, F) ? (r ? o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', r, t, t, r, t) : o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', r, t, t, r, t, t, t), nt[t] = !0, !0) : G ? !0 : fe(t, r, F) ? (nt[t] = !0, !1) : ((r === "false" || r === "true") && F !== null && F.type ===
|
|
7276
|
+
return typeof r == "boolean" && fe(t, r, F) ? (r ? o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', r, t, t, r, t) : o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', r, t, t, r, t, t, t), nt[t] = !0, !0) : G ? !0 : fe(t, r, F) ? (nt[t] = !0, !1) : ((r === "false" || r === "true") && F !== null && F.type === ie && (o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", r, t, r === "false" ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', t, r), nt[t] = !0), !0);
|
|
7277
7277
|
};
|
|
7278
7278
|
}
|
|
7279
7279
|
var _e = function(c, t, r) {
|
|
@@ -7466,7 +7466,7 @@ function Rf() {
|
|
|
7466
7466
|
var b = r[p];
|
|
7467
7467
|
if (!(b == null || typeof b == "boolean" || b === "")) {
|
|
7468
7468
|
var S = void 0, P = void 0, F = p.indexOf("--") === 0;
|
|
7469
|
-
F ? (S = k(bt(p)),
|
|
7469
|
+
F ? (S = k(bt(p)), z(b, p), P = k(bt(("" + b).trim()))) : (Fr(p, b), S = x(p), typeof b == "number" ? b !== 0 && !W.call(qe, p) ? P = k(b + "px") : P = k("" + b) : (z(b, p), P = k(bt(("" + b).trim())))), l ? (l = !1, c.push(D, S, O, P)) : c.push(J, S, O, P);
|
|
7470
7470
|
}
|
|
7471
7471
|
}
|
|
7472
7472
|
l || c.push(Se);
|
|
@@ -7490,7 +7490,7 @@ function Rf() {
|
|
|
7490
7490
|
// We have already filtered out null/undefined and reserved words.
|
|
7491
7491
|
!(r.length > 2 && (r[0] === "o" || r[0] === "O") && (r[1] === "n" || r[1] === "N"))
|
|
7492
7492
|
) {
|
|
7493
|
-
var p =
|
|
7493
|
+
var p = ae(r);
|
|
7494
7494
|
if (p !== null) {
|
|
7495
7495
|
switch (typeof l) {
|
|
7496
7496
|
case "function":
|
|
@@ -7502,7 +7502,7 @@ function Rf() {
|
|
|
7502
7502
|
}
|
|
7503
7503
|
var b = p.attributeName, S = k(b);
|
|
7504
7504
|
switch (p.type) {
|
|
7505
|
-
case
|
|
7505
|
+
case ie:
|
|
7506
7506
|
l && c.push(ee, S, Pe);
|
|
7507
7507
|
return;
|
|
7508
7508
|
case se:
|
|
@@ -7956,7 +7956,7 @@ function Rf() {
|
|
|
7956
7956
|
function ja(c, t) {
|
|
7957
7957
|
return y(c, Wo);
|
|
7958
7958
|
}
|
|
7959
|
-
var Qi = I('<div hidden id="'), mo = I('">'), Fi = I("</div>"), Hi = I('<svg aria-hidden="true" style="display:none" id="'), vo = I('">'), yo = I("</svg>"), Ni = I('<math aria-hidden="true" style="display:none" id="'), Ui = I('">'), zi = I("</math>"), Go = I('<table hidden id="'), ji = I('">'), v = I("</table>"), w = I('<table hidden><tbody id="'), C = I('">'),
|
|
7959
|
+
var Qi = I('<div hidden id="'), mo = I('">'), Fi = I("</div>"), Hi = I('<svg aria-hidden="true" style="display:none" id="'), vo = I('">'), yo = I("</svg>"), Ni = I('<math aria-hidden="true" style="display:none" id="'), Ui = I('">'), zi = I("</math>"), Go = I('<table hidden id="'), ji = I('">'), v = I("</table>"), w = I('<table hidden><tbody id="'), C = I('">'), R = I("</tbody></table>"), K = I('<table hidden><tr id="'), V = I('">'), ne = I("</tr></table>"), ue = I('<table hidden><colgroup id="'), Te = I('">'), He = I("</colgroup></table>");
|
|
7960
7960
|
function Le(c, t, r, l) {
|
|
7961
7961
|
switch (r.insertionMode) {
|
|
7962
7962
|
case In:
|
|
@@ -7990,7 +7990,7 @@ function Rf() {
|
|
|
7990
7990
|
case Wn:
|
|
7991
7991
|
return y(c, v);
|
|
7992
7992
|
case vr:
|
|
7993
|
-
return y(c,
|
|
7993
|
+
return y(c, R);
|
|
7994
7994
|
case on:
|
|
7995
7995
|
return y(c, ne);
|
|
7996
7996
|
case bn:
|
|
@@ -9647,8 +9647,8 @@ const kt = { AUDIO_BUTTON: "audio-button", NOTIFICATION_BUTTON: "notification-bu
|
|
|
9647
9647
|
}, i];
|
|
9648
9648
|
}, bd = Lr({}), Ot = () => Qr(bd), Yf = ({ children: e, settings: n }) => {
|
|
9649
9649
|
var a, i, o, s, f, A;
|
|
9650
|
-
const [u, d, h] = Ln(!1), [g, y, E] = Ln(((a = n == null ? void 0 : n.chatWindow) == null ? void 0 : a.defaultOpen) ?? !1), [T,
|
|
9651
|
-
return X(bd.Provider, { value: { isBotTyping: u, setSyncedIsBotTyping: d, syncedIsBotTypingRef: h, isChatWindowOpen: g, setSyncedIsChatWindowOpen: y, syncedIsChatWindowOpenRef: E, audioToggledOn: T, setSyncedAudioToggledOn:
|
|
9650
|
+
const [u, d, h] = Ln(!1), [g, y, E] = Ln(((a = n == null ? void 0 : n.chatWindow) == null ? void 0 : a.defaultOpen) ?? !1), [T, M, k] = Ln(((i = n == null ? void 0 : n.audio) == null ? void 0 : i.defaultToggledOn) ?? !1), [I, Q, B] = Ln(((o = n == null ? void 0 : n.voice) == null ? void 0 : o.defaultToggledOn) ?? !1), [N, U, H] = Ln(((s = n == null ? void 0 : n.notification) == null ? void 0 : s.defaultToggledOn) ?? !0), [z, Z] = Ue(!1), [W, j] = Ue(!1), [q, $, ie] = Ln(!1), [se, le, be] = Ln(!0), [ge, me, _] = Ln(!1), [Be, L] = Ue(!1), [ve, fe] = Ue(!1), [ae, he] = Ue(0), [ye, Ie] = Ue(0), [Qe, Oe] = Ue(!1), [We, qe] = Ue(((f = window.visualViewport) == null ? void 0 : f.height) ?? window.innerHeight), [_t, Ze] = Ue(((A = window.visualViewport) == null ? void 0 : A.width) ?? window.innerWidth);
|
|
9651
|
+
return X(bd.Provider, { value: { isBotTyping: u, setSyncedIsBotTyping: d, syncedIsBotTypingRef: h, isChatWindowOpen: g, setSyncedIsChatWindowOpen: y, syncedIsChatWindowOpenRef: E, audioToggledOn: T, setSyncedAudioToggledOn: M, syncedAudioToggledOnRef: k, voiceToggledOn: I, setSyncedVoiceToggledOn: Q, syncedVoiceToggledOnRef: B, notificationsToggledOn: N, setSyncedNotificationsToggledOn: U, syncedNotificationsToggledOnRef: H, isLoadingChatHistory: z, setIsLoadingChatHistory: Z, hasChatHistoryLoaded: W, setHasChatHistoryLoaded: j, isScrolling: q, setSyncedIsScrolling: $, syncedIsScrollingRef: ie, textAreaDisabled: se, setSyncedTextAreaDisabled: le, syncedTextAreaDisabledRef: be, textAreaSensitiveMode: ge, setSyncedTextAreaSensitiveMode: me, syncedTextAreaSensitiveModeRef: _, hasInteractedPage: Be, setHasInteractedPage: L, hasFlowStarted: ve, setHasFlowStarted: fe, unreadCount: ae, setUnreadCount: he, inputLength: ye, setInputLength: Ie, blockAllowsAttachment: Qe, setBlockAllowsAttachment: Oe, viewportHeight: We, setViewportHeight: qe, viewportWidth: _t, setViewportWidth: Ze }, children: e });
|
|
9652
9652
|
};
|
|
9653
9653
|
var xe = ((e) => (e.START_SPEAK_AUDIO = "rcb-start-speak-audio", e.TOGGLE_AUDIO = "rcb-toggle-audio", e.TOGGLE_NOTIFICATIONS = "rcb-toggle-notifications", e.TOGGLE_VOICE = "rcb-toggle-voice", e.TOGGLE_CHAT_WINDOW = "rcb-toggle-chat-window", e.PRE_INJECT_MESSAGE = "rcb-pre-inject-message", e.POST_INJECT_MESSAGE = "rcb-post-inject-message", e.START_SIMULATE_STREAM_MESSAGE = "rcb-start-simulate-stream-message", e.STOP_SIMULATE_STREAM_MESSAGE = "rcb-stop-simulate-stream-message", e.START_STREAM_MESSAGE = "rcb-start-stream-message", e.CHUNK_STREAM_MESSAGE = "rcb-chunk-stream-message", e.STOP_STREAM_MESSAGE = "rcb-stop-stream-message", e.REMOVE_MESSAGE = "rcb-remove-message", e.LOAD_CHAT_HISTORY = "rcb-load-chat-history", e.CHANGE_PATH = "rcb-change-path", e.SHOW_TOAST = "rcb-show-toast", e.DISMISS_TOAST = "rcb-dismiss-toast", e.USER_SUBMIT_TEXT = "rcb-user-submit-text", e.USER_UPLOAD_FILE = "rcb-user-upload-file", e.TEXT_AREA_CHANGE_VALUE = "rcb-text-area-change-value", e.PRE_LOAD_CHATBOT = "rcb-pre-load-chatbot", e.POST_LOAD_CHATBOT = "rcb-post-load-chatbot", e.PRE_PROCESS_BLOCK = "rcb-pre-process-block", e.POST_PROCESS_BLOCK = "rcb-post-process-block", e))(xe || {});
|
|
9654
9654
|
const Gf = { [xe.START_SPEAK_AUDIO]: !0, [xe.TOGGLE_AUDIO]: !0, [xe.TOGGLE_VOICE]: !0, [xe.TOGGLE_NOTIFICATIONS]: !0, [xe.TOGGLE_CHAT_WINDOW]: !0, [xe.PRE_INJECT_MESSAGE]: !0, [xe.POST_INJECT_MESSAGE]: !1, [xe.PRE_LOAD_CHATBOT]: !0, [xe.POST_LOAD_CHATBOT]: !1, [xe.START_SIMULATE_STREAM_MESSAGE]: !0, [xe.STOP_SIMULATE_STREAM_MESSAGE]: !1, [xe.START_STREAM_MESSAGE]: !0, [xe.CHUNK_STREAM_MESSAGE]: !0, [xe.STOP_STREAM_MESSAGE]: !0, [xe.REMOVE_MESSAGE]: !0, [xe.LOAD_CHAT_HISTORY]: !0, [xe.CHANGE_PATH]: !0, [xe.SHOW_TOAST]: !0, [xe.DISMISS_TOAST]: !0, [xe.USER_SUBMIT_TEXT]: !0, [xe.USER_UPLOAD_FILE]: !0, [xe.TEXT_AREA_CHANGE_VALUE]: !0, [xe.PRE_PROCESS_BLOCK]: !0, [xe.POST_PROCESS_BLOCK]: !0 }, vu = async (e, n, a) => {
|
|
@@ -9669,7 +9669,7 @@ const Gf = { [xe.START_SPEAK_AUDIO]: !0, [xe.TOGGLE_AUDIO]: !0, [xe.TOGGLE_VOICE
|
|
|
9669
9669
|
if (!y.current) return !1;
|
|
9670
9670
|
const B = y.current.getBoundingClientRect(), N = window.innerHeight ?? document.documentElement.clientHeight, U = window.innerWidth ?? document.documentElement.clientWidth;
|
|
9671
9671
|
return B.top >= 0 && B.left >= 0 && B.bottom <= N && B.right <= U;
|
|
9672
|
-
}, [y]),
|
|
9672
|
+
}, [y]), M = Ce(async (B) => {
|
|
9673
9673
|
var N;
|
|
9674
9674
|
B !== g.current && ((N = e.event) != null && N.rcbToggleChatWindow && (await E(xe.TOGGLE_CHAT_WINDOW, { currState: g.current, newState: !g.current })).defaultPrevented || a((U) => (U || A(0), !U)));
|
|
9675
9675
|
}, [g]), k = Ce(async (B) => {
|
|
@@ -9679,16 +9679,16 @@ const Gf = { [xe.START_SPEAK_AUDIO]: !0, [xe.TOGGLE_AUDIO]: !0, [xe.TOGGLE_VOICE
|
|
|
9679
9679
|
const N = y.current.scrollHeight - y.current.clientHeight;
|
|
9680
9680
|
if (B <= 0) return y.current.scrollTop = N, void d(!1);
|
|
9681
9681
|
const U = y.current.scrollTop, H = N - U;
|
|
9682
|
-
let
|
|
9682
|
+
let z = 0;
|
|
9683
9683
|
const Z = () => {
|
|
9684
9684
|
if (!y.current) return;
|
|
9685
|
-
|
|
9686
|
-
const W = I(
|
|
9687
|
-
y.current.scrollTop = W,
|
|
9685
|
+
z += 20;
|
|
9686
|
+
const W = I(z, U, H, B);
|
|
9687
|
+
y.current.scrollTop = W, z < B ? requestAnimationFrame(Z) : d(!1);
|
|
9688
9688
|
};
|
|
9689
9689
|
Z();
|
|
9690
9690
|
}, [y]);
|
|
9691
|
-
return { isChatWindowOpen: n, setSyncedIsChatWindowOpen: a, toggleChatWindow:
|
|
9691
|
+
return { isChatWindowOpen: n, setSyncedIsChatWindowOpen: a, toggleChatWindow: M, viewportHeight: i, setViewportHeight: o, viewportWidth: s, setViewportWidth: f, toggleIsBotTyping: k, scrollToBottom: Q, getIsChatBotVisible: T };
|
|
9692
9692
|
}, Xf = () => {
|
|
9693
9693
|
var e, n, a;
|
|
9694
9694
|
const { settings: i } = ze(), { styles: o } = st(), { unreadCount: s, isScrolling: f } = Ot(), { chatBodyRef: A } = Rt(), { scrollToBottom: u } = Fn(), [d, h] = Ue(!1), g = { color: (e = i.general) == null ? void 0 : e.primaryColor, borderColor: (n = i.general) == null ? void 0 : n.primaryColor, ...o.chatMessagePromptHoveredStyle };
|
|
@@ -9706,12 +9706,12 @@ const Gf = { [xe.START_SPEAK_AUDIO]: !0, [xe.TOGGLE_AUDIO]: !0, [xe.TOGGLE_VOICE
|
|
|
9706
9706
|
return X(xd.Provider, { value: { messages: n, setSyncedMessages: a, syncedMessagesRef: i }, children: e });
|
|
9707
9707
|
}, Kf = ({ message: e, isNewSender: n }) => {
|
|
9708
9708
|
var a, i, o, s, f, A;
|
|
9709
|
-
const { settings: u } = ze(), { styles: d } = st(), h = typeof e.content == "string", g = e.content, y = e.contentWrapper ? X(e.contentWrapper, { children: g }) : g, E = { backgroundColor: (a = u.general) == null ? void 0 : a.primaryColor, color: "#fff", maxWidth: (i = u.userBubble) != null && i.showAvatar ? "65%" : "70%", ...d.userBubbleStyle }, T = (o = u.userBubble) != null && o.animate ? "rcb-user-message-entry" : "",
|
|
9710
|
-
return dt("div", { className: "rcb-user-message-container", children: [h ? X("div", { style: E, className: `${k} ${T}`, children: y }) : X($t, { children: y }),
|
|
9709
|
+
const { settings: u } = ze(), { styles: d } = st(), h = typeof e.content == "string", g = e.content, y = e.contentWrapper ? X(e.contentWrapper, { children: g }) : g, E = { backgroundColor: (a = u.general) == null ? void 0 : a.primaryColor, color: "#fff", maxWidth: (i = u.userBubble) != null && i.showAvatar ? "65%" : "70%", ...d.userBubbleStyle }, T = (o = u.userBubble) != null && o.animate ? "rcb-user-message-entry" : "", M = ((s = u.userBubble) == null ? void 0 : s.showAvatar) && n, k = "rcb-user-message" + (!n && (f = u.userBubble) != null && f.showAvatar ? " rcb-user-message-offset" : "");
|
|
9710
|
+
return dt("div", { className: "rcb-user-message-container", children: [h ? X("div", { style: E, className: `${k} ${T}`, children: y }) : X($t, { children: y }), M && X("div", { style: { backgroundImage: `url("${(A = u.userBubble) == null ? void 0 : A.avatar}")` }, className: "rcb-message-user-avatar" })] });
|
|
9711
9711
|
}, qf = ({ message: e, isNewSender: n }) => {
|
|
9712
9712
|
var a, i, o, s, f, A;
|
|
9713
|
-
const { settings: u } = ze(), { styles: d } = st(), h = typeof e.content == "string", g = e.content, y = e.contentWrapper ? X(e.contentWrapper, { children: g }) : g, E = { backgroundColor: (a = u.general) == null ? void 0 : a.secondaryColor, color: "#fff", maxWidth: (i = u.botBubble) != null && i.showAvatar ? "65%" : "70%", ...d.botBubbleStyle }, T = (o = u.botBubble) != null && o.animate ? "rcb-bot-message-entry" : "",
|
|
9714
|
-
return dt("div", { className: "rcb-bot-message-container", children: [
|
|
9713
|
+
const { settings: u } = ze(), { styles: d } = st(), h = typeof e.content == "string", g = e.content, y = e.contentWrapper ? X(e.contentWrapper, { children: g }) : g, E = { backgroundColor: (a = u.general) == null ? void 0 : a.secondaryColor, color: "#fff", maxWidth: (i = u.botBubble) != null && i.showAvatar ? "65%" : "70%", ...d.botBubbleStyle }, T = (o = u.botBubble) != null && o.animate ? "rcb-bot-message-entry" : "", M = ((s = u.botBubble) == null ? void 0 : s.showAvatar) && n, k = "rcb-bot-message" + (!n && (f = u.botBubble) != null && f.showAvatar ? " rcb-bot-message-offset" : "");
|
|
9714
|
+
return dt("div", { className: "rcb-bot-message-container", children: [M && X("div", { style: { backgroundImage: `url("${(A = u.botBubble) == null ? void 0 : A.avatar}")` }, className: "rcb-message-bot-avatar" }), h ? X("div", { style: E, className: `${k} ${T}`, children: y }) : X($t, { children: y })] });
|
|
9715
9715
|
}, $f = () => {
|
|
9716
9716
|
var e, n, a;
|
|
9717
9717
|
const { settings: i } = ze(), { styles: o } = st(), s = (e = i.botBubble) != null && e.animate ? "rcb-bot-message-entry" : "";
|
|
@@ -9729,27 +9729,27 @@ const Gf = { [xe.START_SPEAK_AUDIO]: !0, [xe.TOGGLE_AUDIO]: !0, [xe.TOGGLE_VOICE
|
|
|
9729
9729
|
}), A && ((a = i.chatWindow) == null ? void 0 : a.showTypingIndicator) && X($f, {}), X(Xf, {})] });
|
|
9730
9730
|
}, ep = ({ checkboxes: e, checkedItems: n, path: a }) => {
|
|
9731
9731
|
var i, o, s, f, A, u, d, h, g, y, E;
|
|
9732
|
-
const { settings: T } = ze(), { styles:
|
|
9732
|
+
const { settings: T } = ze(), { styles: M } = st(), { paths: k } = Hs(), { handleSubmitText: I } = _a(), [Q, B] = Ue(/* @__PURE__ */ new Set()), [N, U] = Ue(!1), H = { cursor: N ? `url("${(i = T.general) == null ? void 0 : i.actionDisabledIcon}"), auto` : "pointer", color: (o = T.general) == null ? void 0 : o.primaryColor, borderColor: (s = T.general) == null ? void 0 : s.primaryColor, ...M.botCheckboxRowStyle }, z = { cursor: N || Q.size < e.min ? `url("${(f = T.general) == null ? void 0 : f.actionDisabledIcon}"), auto` : "pointer", color: (A = T.general) == null ? void 0 : A.primaryColor, borderColor: (u = T.general) == null ? void 0 : u.primaryColor, ...M.botCheckboxNextStyle }, Z = { cursor: N ? `url("${(d = T.general) == null ? void 0 : d.actionDisabledIcon}"), auto` : "pointer", color: "transparent", ...M.botCheckMarkStyle }, W = { cursor: N ? `url("${(h = T.general) == null ? void 0 : h.actionDisabledIcon}"), auto` : "pointer", color: "#fff", borderColor: (g = T.general) == null ? void 0 : g.primaryColor, backgroundColor: (y = T.general) == null ? void 0 : y.primaryColor, ...M.botCheckMarkSelectedStyle };
|
|
9733
9733
|
return je(() => {
|
|
9734
9734
|
k.length > 0 && k[k.length - 1] !== a && U(!e.reusable);
|
|
9735
|
-
}, [k]), dt("div", { className: "rcb-checkbox-container " + ((E = T.botBubble) != null && E.showAvatar ? "rcb-checkbox-offset" : ""), children: [e.items.map((
|
|
9736
|
-
|
|
9737
|
-
N || B((
|
|
9738
|
-
const se = new Set(
|
|
9739
|
-
if (se.has(
|
|
9735
|
+
}, [k]), dt("div", { className: "rcb-checkbox-container " + ((E = T.botBubble) != null && E.showAvatar ? "rcb-checkbox-offset" : ""), children: [e.items.map((j) => X("div", { onMouseDown: (q) => {
|
|
9736
|
+
q.preventDefault(), (($) => {
|
|
9737
|
+
N || B((ie) => {
|
|
9738
|
+
const se = new Set(ie);
|
|
9739
|
+
if (se.has($)) n.delete($), se.delete($);
|
|
9740
9740
|
else {
|
|
9741
|
-
if (Q.size == e.max) return
|
|
9742
|
-
n.add(
|
|
9741
|
+
if (Q.size == e.max) return ie;
|
|
9742
|
+
n.add($), se.add($);
|
|
9743
9743
|
}
|
|
9744
9744
|
return se;
|
|
9745
9745
|
});
|
|
9746
|
-
})(
|
|
9747
|
-
}, style: H, className: "rcb-checkbox-row-container", children: dt("div", { className: "rcb-checkbox-row", children: [X("div", { style: Q.has(
|
|
9748
|
-
var
|
|
9749
|
-
if (
|
|
9750
|
-
const
|
|
9751
|
-
let
|
|
9752
|
-
U(!e.reusable),
|
|
9746
|
+
})(j);
|
|
9747
|
+
}, style: H, className: "rcb-checkbox-row-container", children: dt("div", { className: "rcb-checkbox-row", children: [X("div", { style: Q.has(j) ? W : Z, className: "rcb-checkbox-mark" }), X("div", { className: "rcb-checkbox-label", children: j })] }) }, j)), X("div", { style: z, className: "rcb-checkbox-next-button", onMouseDown: (j) => {
|
|
9748
|
+
var q;
|
|
9749
|
+
if (j.preventDefault(), N || Q.size < e.min) return;
|
|
9750
|
+
const $ = Array.from(n).join(", ");
|
|
9751
|
+
let ie;
|
|
9752
|
+
U(!e.reusable), ie = e.sendOutput != null ? e.sendOutput : ((q = T.chatInput) == null ? void 0 : q.sendCheckboxOutput) ?? !0, I($, ie);
|
|
9753
9753
|
} })] });
|
|
9754
9754
|
}, tp = async (e, n) => {
|
|
9755
9755
|
const a = e.checkboxes;
|
|
@@ -9772,26 +9772,26 @@ const Gf = { [xe.START_SPEAK_AUDIO]: !0, [xe.TOGGLE_AUDIO]: !0, [xe.TOGGLE_VOICE
|
|
|
9772
9772
|
o instanceof Promise && (o = await o), typeof o == "string" && o.trim() !== "" && (a ? await n.simulateStreamMessage(o) : await n.injectMessage(o));
|
|
9773
9773
|
}, op = ({ options: e, path: n }) => {
|
|
9774
9774
|
var a, i, o, s, f, A;
|
|
9775
|
-
const { settings: u } = ze(), { styles: d } = st(), { paths: h } = Hs(), { handleSubmitText: g } = _a(), [y, E] = Ue([]), [T,
|
|
9775
|
+
const { settings: u } = ze(), { styles: d } = st(), { paths: h } = Hs(), { handleSubmitText: g } = _a(), [y, E] = Ue([]), [T, M] = Ue(!1), k = { cursor: T ? `url("${(a = u.general) == null ? void 0 : a.actionDisabledIcon}"), auto` : "pointer", color: (i = u.general) == null ? void 0 : i.primaryColor, borderColor: (o = u.general) == null ? void 0 : o.primaryColor, backgroundColor: "#fff", ...d.botOptionStyle }, I = { color: "#fff", borderColor: (s = u.general) == null ? void 0 : s.primaryColor, backgroundColor: (f = u.general) == null ? void 0 : f.primaryColor, ...d.botOptionHoveredStyle };
|
|
9776
9776
|
return je(() => {
|
|
9777
|
-
h.length > 0 && h[h.length - 1] !== n &&
|
|
9777
|
+
h.length > 0 && h[h.length - 1] !== n && M(!e.reusable);
|
|
9778
9778
|
}, [h]), X("div", { className: "rcb-options-container " + ((A = u.botBubble) != null && A.showAvatar ? "rcb-options-offset" : ""), children: e.items.map((Q, B) => {
|
|
9779
9779
|
const N = y[B] && !T;
|
|
9780
9780
|
return X("div", { className: "rcb-options", style: N ? I : k, onMouseEnter: () => ((U) => {
|
|
9781
9781
|
E((H) => {
|
|
9782
|
-
const
|
|
9783
|
-
return
|
|
9782
|
+
const z = [...H];
|
|
9783
|
+
return z[U] = !0, z;
|
|
9784
9784
|
});
|
|
9785
9785
|
})(B), onMouseLeave: () => ((U) => {
|
|
9786
9786
|
E((H) => {
|
|
9787
|
-
const
|
|
9788
|
-
return
|
|
9787
|
+
const z = [...H];
|
|
9788
|
+
return z[U] = !1, z;
|
|
9789
9789
|
});
|
|
9790
9790
|
})(B), onMouseDown: (U) => {
|
|
9791
9791
|
var H;
|
|
9792
9792
|
if (U.preventDefault(), T) return;
|
|
9793
|
-
let
|
|
9794
|
-
|
|
9793
|
+
let z;
|
|
9794
|
+
M(!e.reusable), z = e.sendOutput != null ? e.sendOutput : ((H = u.chatInput) == null ? void 0 : H.sendOptionOutput) ?? !0, g(Q, z);
|
|
9795
9795
|
}, children: Q }, Q);
|
|
9796
9796
|
}) });
|
|
9797
9797
|
}, ip = async (e, n) => {
|
|
@@ -9904,7 +9904,7 @@ const Kc = async (e) => {
|
|
|
9904
9904
|
if (g === "style") {
|
|
9905
9905
|
const y = h.value.split(";").filter((T) => T.trim() !== ""), E = {};
|
|
9906
9906
|
y.forEach((T) => {
|
|
9907
|
-
const [
|
|
9907
|
+
const [M, k] = T.split(":").map((Q) => Q.trim()), I = M.replace(/-([a-z])/g, (Q, B) => B.toUpperCase());
|
|
9908
9908
|
E[I] = k;
|
|
9909
9909
|
}), d[g] = E;
|
|
9910
9910
|
} else A !== "audio" && A !== "video" || g !== "controls" || h.value !== "" ? d[g] = h.value : d[g] = "true";
|
|
@@ -9936,15 +9936,15 @@ const Kc = async (e) => {
|
|
|
9936
9936
|
}, Nu = () => {
|
|
9937
9937
|
const { settings: e } = ze(), { notificationsToggledOn: n, setSyncedNotificationsToggledOn: a, hasInteractedPage: i, unreadCount: o, setUnreadCount: s, syncedNotificationsToggledOnRef: f } = Ot(), { audioBufferRef: A, audioContextRef: u, gainNodeRef: d } = Rt(), { dispatchRcbEvent: h } = fr(), g = Ce(async () => {
|
|
9938
9938
|
var E, T;
|
|
9939
|
-
const
|
|
9939
|
+
const M = (E = e.notification) == null ? void 0 : E.sound;
|
|
9940
9940
|
u.current = new AudioContext();
|
|
9941
9941
|
const k = u.current.createGain();
|
|
9942
9942
|
let I;
|
|
9943
|
-
if (k.gain.value = ((T = e.notification) == null ? void 0 : T.volume) ?? 0.2, d.current = k,
|
|
9944
|
-
const Q = atob(
|
|
9943
|
+
if (k.gain.value = ((T = e.notification) == null ? void 0 : T.volume) ?? 0.2, d.current = k, M != null && M.startsWith("data:audio")) {
|
|
9944
|
+
const Q = atob(M.split(",")[1]), B = new ArrayBuffer(Q.length), N = new Uint8Array(B);
|
|
9945
9945
|
for (let U = 0; U < Q.length; U++) N[U] = Q.charCodeAt(U);
|
|
9946
9946
|
I = B;
|
|
9947
|
-
} else I = await (await fetch(
|
|
9947
|
+
} else I = await (await fetch(M)).arrayBuffer();
|
|
9948
9948
|
A.current = await u.current.decodeAudioData(I);
|
|
9949
9949
|
}, [e.notification]), y = Ce(() => {
|
|
9950
9950
|
var E;
|
|
@@ -9954,7 +9954,7 @@ const Kc = async (e) => {
|
|
|
9954
9954
|
}, [e.notification, f, i, u, A, d]);
|
|
9955
9955
|
return { unreadCount: o, setUnreadCount: s, notificationsToggledOn: n, toggleNotifications: Ce(async (E) => {
|
|
9956
9956
|
var T;
|
|
9957
|
-
E !== f.current && ((T = e.event) != null && T.rcbToggleNotifications && (await h(xe.TOGGLE_NOTIFICATIONS, { currState: f.current, newState: !f.current })).defaultPrevented || a((
|
|
9957
|
+
E !== f.current && ((T = e.event) != null && T.rcbToggleNotifications && (await h(xe.TOGGLE_NOTIFICATIONS, { currState: f.current, newState: !f.current })).defaultPrevented || a((M) => !M));
|
|
9958
9958
|
}, [f]), playNotificationSound: y, setUpNotifications: g };
|
|
9959
9959
|
}, vp = (e, n) => {
|
|
9960
9960
|
var a, i, o, s;
|
|
@@ -9986,37 +9986,37 @@ const Kc = async (e) => {
|
|
|
9986
9986
|
return { audioToggledOn: n, speakAudio: f, toggleAudio: s };
|
|
9987
9987
|
}, Pi = () => {
|
|
9988
9988
|
var e, n;
|
|
9989
|
-
const { settings: a } = ze(), { messages: i, setSyncedMessages: o, syncedMessagesRef: s } = Fu(), { setSyncedIsBotTyping: f, setUnreadCount: A, syncedIsScrollingRef: u, syncedIsChatWindowOpenRef: d } = Ot(), { streamMessageMap: h, chatBodyRef: g, paramsInputRef: y } = Rt(), { scrollToBottom: E, getIsChatBotVisible: T } = Fn(), { dispatchRcbEvent:
|
|
9990
|
-
var
|
|
9989
|
+
const { settings: a } = ze(), { messages: i, setSyncedMessages: o, syncedMessagesRef: s } = Fu(), { setSyncedIsBotTyping: f, setUnreadCount: A, syncedIsScrollingRef: u, syncedIsChatWindowOpenRef: d } = Ot(), { streamMessageMap: h, chatBodyRef: g, paramsInputRef: y } = Rt(), { scrollToBottom: E, getIsChatBotVisible: T } = Fn(), { dispatchRcbEvent: M } = fr(), { speakAudio: k } = Dd(), { playNotificationSound: I } = Nu(), Q = Ce((W, j = !1) => {
|
|
9990
|
+
var q, $;
|
|
9991
9991
|
Kc(W);
|
|
9992
|
-
let
|
|
9992
|
+
let ie = !0;
|
|
9993
9993
|
const se = W[W.length - 1];
|
|
9994
9994
|
if (!se) return;
|
|
9995
9995
|
const le = se.sender.toUpperCase();
|
|
9996
|
-
le === "USER" && (
|
|
9997
|
-
}, [a, g, d, u, I, E, T]), B = Ce(async (W,
|
|
9998
|
-
var
|
|
9996
|
+
le === "USER" && (ie = !1), (q = a.general) != null && q.embedded && T() && (ie = !1), (d.current && !u.current || j) && (ie = !1), ie && I(), !j && (le !== "USER" && ($ = a.chatWindow) != null && $.autoJumpToBottom || le === "USER" || !u.current) && setTimeout(() => E(), 1);
|
|
9997
|
+
}, [a, g, d, u, I, E, T]), B = Ce(async (W, j = "BOT", q = null) => {
|
|
9998
|
+
var $, ie, se, le, be;
|
|
9999
9999
|
if (typeof W != "string") throw new Error("Content must be of type string to simulate stream.");
|
|
10000
|
-
|
|
10001
|
-
let ge = _o(W,
|
|
10002
|
-
if ((
|
|
10003
|
-
const
|
|
10004
|
-
if (
|
|
10005
|
-
|
|
10000
|
+
j = j.toUpperCase();
|
|
10001
|
+
let ge = _o(W, j);
|
|
10002
|
+
if (($ = a.event) != null && $.rcbStartSimulateStreamMessage) {
|
|
10003
|
+
const ae = await M(xe.START_SIMULATE_STREAM_MESSAGE, { message: ge });
|
|
10004
|
+
if (ae.defaultPrevented) return null;
|
|
10005
|
+
q = ae.data.simulateStreamChunker || q, ge = ae.data.message;
|
|
10006
10006
|
}
|
|
10007
10007
|
f(!1);
|
|
10008
10008
|
let me = 30;
|
|
10009
|
-
me =
|
|
10009
|
+
me = j === "BOT" ? (ie = a.botBubble) == null ? void 0 : ie.streamSpeed : (se = a.userBubble) == null ? void 0 : se.streamSpeed;
|
|
10010
10010
|
const _ = { ...ge, content: "" };
|
|
10011
|
-
o((
|
|
10011
|
+
o((ae) => [...ae, _]), Q(s.current);
|
|
10012
10012
|
let Be = ge.content;
|
|
10013
|
-
|
|
10013
|
+
q && (Be = q(Be));
|
|
10014
10014
|
let L = 0;
|
|
10015
10015
|
const ve = Be.length;
|
|
10016
10016
|
ge.sender.toUpperCase() === "BOT" && (d.current || (le = a.general) != null && le.embedded) && typeof ge.content == "string" && ge.content.trim() !== "" && k(ge.content);
|
|
10017
|
-
const fe = new Promise((
|
|
10017
|
+
const fe = new Promise((ae) => {
|
|
10018
10018
|
const he = setInterval(() => {
|
|
10019
|
-
if (L >= ve) return clearInterval(he), void
|
|
10019
|
+
if (L >= ve) return clearInterval(he), void ae();
|
|
10020
10020
|
o((ye) => {
|
|
10021
10021
|
const Ie = [...ye];
|
|
10022
10022
|
for (let Qe = Ie.length - 1; Qe >= 0; Qe--) if (Ie[Qe].id === _.id) {
|
|
@@ -10028,44 +10028,44 @@ const Kc = async (e) => {
|
|
|
10028
10028
|
});
|
|
10029
10029
|
}, me);
|
|
10030
10030
|
});
|
|
10031
|
-
return (u.current || !d.current) && A((
|
|
10032
|
-
}, [a,
|
|
10033
|
-
var
|
|
10034
|
-
|
|
10035
|
-
let se = _o(W,
|
|
10036
|
-
if ((
|
|
10037
|
-
const le = await
|
|
10031
|
+
return (u.current || !d.current) && A((ae) => ae + 1), await fe, Kc(s.current), (be = a.event) != null && be.rcbStopSimulateStreamMessage && await M(xe.STOP_SIMULATE_STREAM_MESSAGE, { message: ge }), j === "USER" && (y.current = W), ge;
|
|
10032
|
+
}, [a, M, Q, s, y, f, A, d, k]), N = Ce(async (W, j = "BOT") => {
|
|
10033
|
+
var q, $, ie;
|
|
10034
|
+
j = j.toUpperCase();
|
|
10035
|
+
let se = _o(W, j);
|
|
10036
|
+
if ((q = a.event) != null && q.rcbPreInjectMessage) {
|
|
10037
|
+
const le = await M(xe.PRE_INJECT_MESSAGE, { message: se });
|
|
10038
10038
|
if (le.defaultPrevented) return null;
|
|
10039
10039
|
se = le.data.message;
|
|
10040
10040
|
}
|
|
10041
|
-
return se.sender.toUpperCase() === "BOT" && (d.current || (
|
|
10042
|
-
}, [a,
|
|
10043
|
-
var
|
|
10044
|
-
const
|
|
10045
|
-
return
|
|
10046
|
-
}, [
|
|
10047
|
-
var
|
|
10048
|
-
if (
|
|
10049
|
-
const se = _o(W,
|
|
10050
|
-
return (
|
|
10051
|
-
}
|
|
10052
|
-
const
|
|
10053
|
-
return (
|
|
10054
|
-
}, [
|
|
10055
|
-
var
|
|
10041
|
+
return se.sender.toUpperCase() === "BOT" && (d.current || ($ = a.general) != null && $.embedded) && typeof se.content == "string" && se.content.trim() !== "" && k(se.content), (u.current || !d.current) && A((le) => le + 1), (ie = a.event) != null && ie.rcbPostInjectMessage && await M(xe.POST_INJECT_MESSAGE, { message: se }), o((le) => [...le, se]), Q(s.current), j === "USER" && typeof W == "string" && (y.current = W), se;
|
|
10042
|
+
}, [a, M, Q, y, s, d, k, A]), U = Ce(async (W) => {
|
|
10043
|
+
var j;
|
|
10044
|
+
const q = s.current.find(($) => $.id === W);
|
|
10045
|
+
return !q || (j = a.event) != null && j.rcbRemoveMessage && (await M(xe.REMOVE_MESSAGE, { message: q })).defaultPrevented ? null : (o(($) => $.filter((ie) => ie.id !== W)), Q(s.current), A(($) => Math.max($ - 1, 0)), q);
|
|
10046
|
+
}, [M, (e = a.event) == null ? void 0 : e.rcbRemoveMessage, Q, s, A]), H = Ce(async (W, j = "BOT") => {
|
|
10047
|
+
var q, $;
|
|
10048
|
+
if (j = j.toUpperCase(), !h.current.has(j)) {
|
|
10049
|
+
const se = _o(W, j);
|
|
10050
|
+
return (q = a.event) != null && q.rcbStartStreamMessage && (await M(xe.START_STREAM_MESSAGE, { message: se })).defaultPrevented ? null : (f(!1), o((le) => [...le, se]), Q(s.current), h.current.set(j, se.id), (u.current || !d.current) && A((le) => le + 1), se);
|
|
10051
|
+
}
|
|
10052
|
+
const ie = { ..._o(W, j), id: h.current.get(j) };
|
|
10053
|
+
return ($ = a.event) != null && $.rcbChunkStreamMessage && (await M(xe.CHUNK_STREAM_MESSAGE, { message: ie })).defaultPrevented ? null : (o((se) => se.map((le) => le.id === ie.id ? ie : le)), Q(s.current, !0), ie);
|
|
10054
|
+
}, [M, a.event, Q, s, f, A, h]), z = Ce(async (W = "BOT") => {
|
|
10055
|
+
var j;
|
|
10056
10056
|
if (W = W.toUpperCase(), !h.current.has(W)) return !0;
|
|
10057
|
-
const
|
|
10058
|
-
let
|
|
10059
|
-
for (let
|
|
10060
|
-
const se = s.current.find((le) => le.id ===
|
|
10061
|
-
se && (
|
|
10062
|
-
}
|
|
10063
|
-
return ((
|
|
10064
|
-
}, [
|
|
10065
|
-
const
|
|
10066
|
-
o(
|
|
10057
|
+
const q = h.current.get(W);
|
|
10058
|
+
let $;
|
|
10059
|
+
for (let ie = 0; ie < 3; ie++) {
|
|
10060
|
+
const se = s.current.find((le) => le.id === q);
|
|
10061
|
+
se && ($ = se), await new Promise((le) => setTimeout(le, 20));
|
|
10062
|
+
}
|
|
10063
|
+
return ((j = a.event) == null || !j.rcbStopStreamMessage || !(await M(xe.STOP_STREAM_MESSAGE, { message: $ })).defaultPrevented) && (h.current.delete(W), Kc(s.current), W === "USER" && typeof ($ == null ? void 0 : $.content) == "string" && (y.current = $.content), !0);
|
|
10064
|
+
}, [M, (n = a.event) == null ? void 0 : n.rcbStopStreamMessage, h, y]), Z = Ce((W) => {
|
|
10065
|
+
const j = typeof W == "function" ? W(s.current) : W;
|
|
10066
|
+
o(j), Q(j);
|
|
10067
10067
|
}, [Q, s]);
|
|
10068
|
-
return { simulateStreamMessage: B, injectMessage: N, removeMessage: U, streamMessage: H, endStreamMessage:
|
|
10068
|
+
return { simulateStreamMessage: B, injectMessage: N, removeMessage: U, streamMessage: H, endStreamMessage: z, replaceMessages: Z, messages: i };
|
|
10069
10069
|
};
|
|
10070
10070
|
let qc, Dr, Ql, Lo = !1, Or = null;
|
|
10071
10071
|
const Uu = () => {
|
|
@@ -10086,9 +10086,9 @@ const Uu = () => {
|
|
|
10086
10086
|
d.onresult = (y) => {
|
|
10087
10087
|
var E, T;
|
|
10088
10088
|
clearTimeout(Dr), Dr = null, clearTimeout(Ql);
|
|
10089
|
-
const
|
|
10089
|
+
const M = y.results[y.results.length - 1][0].transcript;
|
|
10090
10090
|
if (s.current) {
|
|
10091
|
-
const k = (E = e.chatInput) == null ? void 0 : E.characterLimit, I = s.current.value +
|
|
10091
|
+
const k = (E = e.chatInput) == null ? void 0 : E.characterLimit, I = s.current.value + M;
|
|
10092
10092
|
k != null && k >= 0 && I.length > k ? i(I.slice(0, k)) : i(I), o(s.current.value.length);
|
|
10093
10093
|
}
|
|
10094
10094
|
h && (Dr = setTimeout(async () => await $c(n, s), h)), (T = e.voice) != null && T.autoSendDisabled || (Ql = setTimeout(a, g));
|
|
@@ -10129,30 +10129,30 @@ const Uu = () => {
|
|
|
10129
10129
|
return { voiceToggledOn: n, toggleVoice: s, syncVoice: f };
|
|
10130
10130
|
}, Ti = () => {
|
|
10131
10131
|
var e;
|
|
10132
|
-
const { settings: n } = ze(), { inputLength: a, setInputLength: i, textAreaDisabled: o, setSyncedTextAreaDisabled: s, textAreaSensitiveMode: f, setSyncedTextAreaSensitiveMode: A, syncedTextAreaDisabledRef: u, syncedTextAreaSensitiveModeRef: d } = Ot(), { inputRef: h, chatBodyRef: g, prevInputRef: y } = Rt(), { dispatchRcbEvent: E } = fr(), { getIsChatBotVisible: T } = Fn(),
|
|
10133
|
-
var
|
|
10132
|
+
const { settings: n } = ze(), { inputLength: a, setInputLength: i, textAreaDisabled: o, setSyncedTextAreaDisabled: s, textAreaSensitiveMode: f, setSyncedTextAreaSensitiveMode: A, syncedTextAreaDisabledRef: u, syncedTextAreaSensitiveModeRef: d } = Ot(), { inputRef: h, chatBodyRef: g, prevInputRef: y } = Rt(), { dispatchRcbEvent: E } = fr(), { getIsChatBotVisible: T } = Fn(), M = Ce(async (H) => {
|
|
10133
|
+
var z, Z, W;
|
|
10134
10134
|
if (u.current && h.current) h.current.value = "";
|
|
10135
10135
|
else if (h.current && y.current !== null) {
|
|
10136
|
-
const
|
|
10137
|
-
if (
|
|
10136
|
+
const j = (z = n.chatInput) == null ? void 0 : z.characterLimit, q = (Z = n.chatInput) != null && Z.allowNewline ? H : H.replace(/\n/g, " ");
|
|
10137
|
+
if (j != null && j >= 0 && q.length > j ? h.current.value = q.slice(0, j) : h.current.value = q, (W = n.event) != null && W.rcbTextAreaChangeValue && (await E(xe.TEXT_AREA_CHANGE_VALUE, { currValue: h.current.value, prevValue: y.current })).defaultPrevented) return void (h.current.value = y.current);
|
|
10138
10138
|
y.current = h.current.value;
|
|
10139
10139
|
}
|
|
10140
10140
|
}, [u, h, y, n, E]), k = Ce((H) => {
|
|
10141
|
-
var
|
|
10142
|
-
(
|
|
10143
|
-
var Z, W,
|
|
10144
|
-
(Z = n.general) != null && Z.embedded ? T() && ((W = h.current) == null || W.focus()) : H !== "start" && ((
|
|
10141
|
+
var z;
|
|
10142
|
+
(z = h.current) != null && z.disabled || setTimeout(() => {
|
|
10143
|
+
var Z, W, j;
|
|
10144
|
+
(Z = n.general) != null && Z.embedded ? T() && ((W = h.current) == null || W.focus()) : H !== "start" && ((j = h.current) == null || j.focus());
|
|
10145
10145
|
}, 100);
|
|
10146
10146
|
}, [h, (e = n.general) == null ? void 0 : e.embedded, g, T]), I = Ce(() => {
|
|
10147
10147
|
h.current && h.current.focus();
|
|
10148
10148
|
}, []), Q = Ce(() => {
|
|
10149
10149
|
h.current && h.current.blur();
|
|
10150
10150
|
}, []), B = Ce(() => h && h.current ? h.current.value : "", []), N = Ce((H) => {
|
|
10151
|
-
H !== u.current && s((
|
|
10151
|
+
H !== u.current && s((z) => !z);
|
|
10152
10152
|
}, [u]), U = Ce((H) => {
|
|
10153
|
-
H !== d.current && A((
|
|
10153
|
+
H !== d.current && A((z) => !z);
|
|
10154
10154
|
}, [d]);
|
|
10155
|
-
return { textAreaDisabled: o, setSyncedTextAreaDisabled: s, textAreaSensitiveMode: f, setSyncedTextAreaSensitiveMode: A, inputLength: a, setInputLength: i, getTextAreaValue: B, setTextAreaValue:
|
|
10155
|
+
return { textAreaDisabled: o, setSyncedTextAreaDisabled: s, textAreaSensitiveMode: f, setSyncedTextAreaSensitiveMode: A, inputLength: a, setInputLength: i, getTextAreaValue: B, setTextAreaValue: M, updateTextAreaFocus: k, focusTextArea: I, blurTextArea: Q, toggleTextAreaDisabled: N, toggleTextAreaSensitiveMode: U };
|
|
10156
10156
|
}, Id = Lr({ toasts: [], setSyncedToasts: () => {
|
|
10157
10157
|
}, syncedToastsRef: { current: [] } }), Bd = () => Qr(Id), wp = ({ children: e }) => {
|
|
10158
10158
|
const [n, a, i] = Ln([]);
|
|
@@ -10173,13 +10173,13 @@ const Uu = () => {
|
|
|
10173
10173
|
return a((I) => [...I.slice(1), k]), T;
|
|
10174
10174
|
}
|
|
10175
10175
|
T = Hl();
|
|
10176
|
-
let
|
|
10176
|
+
let M = { id: T, content: u, timeout: d };
|
|
10177
10177
|
if ((E = e.event) != null && E.rcbShowToast) {
|
|
10178
|
-
const k = await o(xe.SHOW_TOAST, { toast:
|
|
10178
|
+
const k = await o(xe.SHOW_TOAST, { toast: M });
|
|
10179
10179
|
if (k.defaultPrevented) return null;
|
|
10180
|
-
|
|
10180
|
+
M = k.data.toast;
|
|
10181
10181
|
}
|
|
10182
|
-
return a((k) => [...k,
|
|
10182
|
+
return a((k) => [...k, M]), T;
|
|
10183
10183
|
}, [e, o]), f = Ce(async (u) => {
|
|
10184
10184
|
var d;
|
|
10185
10185
|
const h = i.current.find((g) => g.id === u);
|
|
@@ -10191,7 +10191,7 @@ const Uu = () => {
|
|
|
10191
10191
|
return { showToast: s, dismissToast: f, toasts: n, replaceToasts: A };
|
|
10192
10192
|
}, Yl = () => {
|
|
10193
10193
|
var e, n, a, i, o;
|
|
10194
|
-
const { settings: s } = ze(), { paths: f, setSyncedPaths: A, syncedPathsRef: u } = Hs(), { flowRef: d, streamMessageMap: h, paramsInputRef: g, keepVoiceOnRef: y, timeoutIdRef: E } = Rt(), { setSyncedIsBotTyping: T, setSyncedTextAreaDisabled:
|
|
10194
|
+
const { settings: s } = ze(), { paths: f, setSyncedPaths: A, syncedPathsRef: u } = Hs(), { flowRef: d, streamMessageMap: h, paramsInputRef: g, keepVoiceOnRef: y, timeoutIdRef: E } = Rt(), { setSyncedIsBotTyping: T, setSyncedTextAreaDisabled: M, setSyncedTextAreaSensitiveMode: k, blockAllowsAttachment: I, setBlockAllowsAttachment: Q } = Ot(), { dispatchRcbEvent: B } = fr(), { endStreamMessage: N, injectMessage: U, removeMessage: H, simulateStreamMessage: z, streamMessage: Z } = Pi(), { showToast: W, dismissToast: j } = Oa(), { toggleChatWindow: q } = Fn(), { updateTextAreaFocus: $, setTextAreaValue: ie } = Ti(), { syncVoice: se } = ju(), le = Ce(async (L) => {
|
|
10195
10195
|
var ve;
|
|
10196
10196
|
if ((ve = s.event) != null && ve.rcbPostProcessBlock) {
|
|
10197
10197
|
const fe = await B(xe.POST_PROCESS_BLOCK, { block: L });
|
|
@@ -10200,7 +10200,7 @@ const Uu = () => {
|
|
|
10200
10200
|
}
|
|
10201
10201
|
return L;
|
|
10202
10202
|
}, [(e = s.event) == null ? void 0 : e.rcbPostProcessBlock, B]), be = Ce(async (L, ve) => {
|
|
10203
|
-
var fe,
|
|
10203
|
+
var fe, ae, he, ye;
|
|
10204
10204
|
if (!L) return;
|
|
10205
10205
|
let Ie = d.current[L];
|
|
10206
10206
|
if (!Ie) return void T(!1);
|
|
@@ -10209,8 +10209,8 @@ const Uu = () => {
|
|
|
10209
10209
|
if (Oe.defaultPrevented) return;
|
|
10210
10210
|
Ie = Oe.data.block;
|
|
10211
10211
|
}
|
|
10212
|
-
T(!0), (
|
|
10213
|
-
const Qe = { prevPath: ve, currPath: L, goToPath: _, setTextAreaValue:
|
|
10212
|
+
T(!0), (ae = s.chatInput) != null && ae.blockSpam && M(!0), k(!1);
|
|
10213
|
+
const Qe = { prevPath: ve, currPath: L, goToPath: _, setTextAreaValue: ie, userInput: g.current, endStreamMessage: N, injectMessage: U, removeMessage: H, simulateStreamMessage: z, streamMessage: Z, toggleChatWindow: q, showToast: W, dismissToast: j };
|
|
10214
10214
|
await (async (Oe, We, qe, _t, Ze, et, mt) => {
|
|
10215
10215
|
if (!Oe) throw new Error("Block is not valid.");
|
|
10216
10216
|
for (const St of Object.keys(Oe)) switch (St) {
|
|
@@ -10235,11 +10235,11 @@ const Uu = () => {
|
|
|
10235
10235
|
case "transition":
|
|
10236
10236
|
await sp(Oe, We, _t, mt);
|
|
10237
10237
|
}
|
|
10238
|
-
})(Ie, Qe, ((he = s.botBubble) == null ? void 0 : he.simulateStream) ?? !1, E,
|
|
10239
|
-
}, [d,
|
|
10238
|
+
})(Ie, Qe, ((he = s.botBubble) == null ? void 0 : he.simulateStream) ?? !1, E, M, k, le), T(!1), "chatDisabled" in Ie || M((ye = s.chatInput) == null ? void 0 : ye.disabled), "isSensitive" in Ie || k(!1), Q(typeof Ie.file == "function"), $(L), se(y.current && !Ie.chatDisabled), L !== ve && h.current.clear();
|
|
10239
|
+
}, [d, $, se, (n = s.botBubble) == null ? void 0 : n.simulateStream, (a = s.chatInput) == null ? void 0 : a.disabled, g, N, U, H, z, Z, q, W, j, y, h]), ge = Ce(() => u.current.length > 0 ? u.current.at(-1) ?? null : null, []), me = Ce(() => u.current.length > 1 ? u.current.at(-2) ?? null : null, []), _ = Ce(async (L) => {
|
|
10240
10240
|
var ve;
|
|
10241
|
-
const fe = ge(),
|
|
10242
|
-
return ((ve = s.event) == null || !ve.rcbChangePath || !(await B(xe.CHANGE_PATH, { currPath: fe, prevPath:
|
|
10241
|
+
const fe = ge(), ae = me();
|
|
10242
|
+
return ((ve = s.event) == null || !ve.rcbChangePath || !(await B(xe.CHANGE_PATH, { currPath: fe, prevPath: ae, nextPath: L })).defaultPrevented) && (A((he) => [...he, L]), await be(L, fe), !0);
|
|
10243
10243
|
}, [(i = s.chatInput) == null ? void 0 : i.blockSpam, (o = s.event) == null ? void 0 : o.rcbChangePath, be, B]), Be = Ce((L) => {
|
|
10244
10244
|
const ve = typeof L == "function" ? L(u.current) : L;
|
|
10245
10245
|
A(ve);
|
|
@@ -10247,36 +10247,36 @@ const Uu = () => {
|
|
|
10247
10247
|
return { getCurrPath: ge, getPrevPath: me, goToPath: _, blockAllowsAttachment: I, setBlockAllowsAttachment: Q, paths: f, replacePaths: Be, firePostProcessBlockEvent: le };
|
|
10248
10248
|
}, _a = () => {
|
|
10249
10249
|
var e, n, a, i;
|
|
10250
|
-
const { settings: o } = ze(), { endStreamMessage: s, injectMessage: f, removeMessage: A, simulateStreamMessage: u, streamMessage: d } = Pi(), { syncedPathsRef: h } = Hs(), { getCurrPath: g, getPrevPath: y, goToPath: E, firePostProcessBlockEvent: T } = Yl(), { setSyncedTextAreaSensitiveMode:
|
|
10251
|
-
var Be, L, ve, fe,
|
|
10250
|
+
const { settings: o } = ze(), { endStreamMessage: s, injectMessage: f, removeMessage: A, simulateStreamMessage: u, streamMessage: d } = Pi(), { syncedPathsRef: h } = Hs(), { getCurrPath: g, getPrevPath: y, goToPath: E, firePostProcessBlockEvent: T } = Yl(), { setSyncedTextAreaSensitiveMode: M, setSyncedTextAreaDisabled: k, setSyncedIsBotTyping: I, setBlockAllowsAttachment: Q, setInputLength: B, syncedVoiceToggledOnRef: N, syncedTextAreaSensitiveModeRef: U } = Ot(), { flowRef: H, inputRef: z, keepVoiceOnRef: Z, paramsInputRef: W, timeoutIdRef: j } = Rt(), { showToast: q, dismissToast: $ } = Oa(), { dispatchRcbEvent: ie } = fr(), { syncVoice: se } = ju(), { setTextAreaValue: le } = Ti(), { toggleChatWindow: be } = Fn(), ge = Ce(async (_) => {
|
|
10251
|
+
var Be, L, ve, fe, ae, he;
|
|
10252
10252
|
const ye = g();
|
|
10253
10253
|
if (ye && H.current[ye]) {
|
|
10254
10254
|
if (U.current) {
|
|
10255
10255
|
if ((Be = o == null ? void 0 : o.sensitiveInput) != null && Be.hideInUserBubble) return;
|
|
10256
|
-
if ((L = o == null ? void 0 : o.sensitiveInput) != null && L.maskInUserBubble) return void ((ve = o.userBubble) != null && ve.simulateStream ? await u("*".repeat(((fe = o.sensitiveInput) == null ? void 0 : fe.asterisksCount) ?? 10), "USER") : await f("*".repeat(((
|
|
10256
|
+
if ((L = o == null ? void 0 : o.sensitiveInput) != null && L.maskInUserBubble) return void ((ve = o.userBubble) != null && ve.simulateStream ? await u("*".repeat(((fe = o.sensitiveInput) == null ? void 0 : fe.asterisksCount) ?? 10), "USER") : await f("*".repeat(((ae = o.sensitiveInput) == null ? void 0 : ae.asterisksCount) ?? 10), "USER"));
|
|
10257
10257
|
}
|
|
10258
10258
|
(he = o.userBubble) != null && he.simulateStream ? await u(_, "USER") : await f(_, "USER");
|
|
10259
10259
|
}
|
|
10260
10260
|
}, [H, g, o, f, u, U]), me = Ce(async (_, Be = !0) => {
|
|
10261
10261
|
var L, ve;
|
|
10262
10262
|
if ((_ = _.trim()) === "") return;
|
|
10263
|
-
Be && await ge(_),
|
|
10263
|
+
Be && await ge(_), j.current && clearTimeout(j.current), z.current && (le(""), B(0));
|
|
10264
10264
|
const fe = g();
|
|
10265
10265
|
if (!fe) return;
|
|
10266
|
-
let
|
|
10267
|
-
const he = await T(
|
|
10266
|
+
let ae = H.current[fe];
|
|
10267
|
+
const he = await T(ae);
|
|
10268
10268
|
he && ((L = o.chatInput) != null && L.blockSpam && k(!0), Z.current = N.current, se(!1), setTimeout(() => {
|
|
10269
10269
|
I(!0);
|
|
10270
|
-
}, 400),
|
|
10270
|
+
}, 400), M(!1), setTimeout(async () => {
|
|
10271
10271
|
var ye;
|
|
10272
|
-
const Ie = { prevPath: y(), currPath: g(), goToPath: E, setTextAreaValue: le, userInput: W.current, injectMessage: f, simulateStreamMessage: u, streamMessage: d, removeMessage: A, endStreamMessage: s, toggleChatWindow: be, showToast:
|
|
10273
|
-
await kd(he, Ie), h.current.length === Qe && (k("chatDisabled" in
|
|
10272
|
+
const Ie = { prevPath: y(), currPath: g(), goToPath: E, setTextAreaValue: le, userInput: W.current, injectMessage: f, simulateStreamMessage: u, streamMessage: d, removeMessage: A, endStreamMessage: s, toggleChatWindow: be, showToast: q, dismissToast: $ }, Qe = h.current.length;
|
|
10273
|
+
await kd(he, Ie), h.current.length === Qe && (k("chatDisabled" in ae ? !!ae.chatDisabled : !((ye = o.chatInput) == null || !ye.disabled)), Sd(ae, Ie, M), Q(typeof ae.file == "function"), se(Z.current), I(!1));
|
|
10274
10274
|
}, (ve = o.chatInput) == null ? void 0 : ve.botDelay));
|
|
10275
|
-
}, [
|
|
10275
|
+
}, [j, (e = o.chatInput) == null ? void 0 : e.blockSpam, (n = o.chatInput) == null ? void 0 : n.botDelay, (a = o.chatInput) == null ? void 0 : a.disabled, Z, N, se, ge, y, g, E, f, u, d, A, s, be, q, $, H]);
|
|
10276
10276
|
return { handleSubmitText: Ce(async (_, Be = !0) => {
|
|
10277
10277
|
var L, ve;
|
|
10278
|
-
_ = _ ?? ((L =
|
|
10279
|
-
}, [
|
|
10278
|
+
_ = _ ?? ((L = z.current) == null ? void 0 : L.value), !((ve = o.event) != null && ve.rcbUserSubmitText && (await ie(xe.USER_SUBMIT_TEXT, { inputText: _, sendInChat: Be })).defaultPrevented || !g()) && me(_, Be);
|
|
10279
|
+
}, [ie, g, me, z, (i = o.event) == null ? void 0 : i.rcbUserSubmitText]) };
|
|
10280
10280
|
}, Gl = () => {
|
|
10281
10281
|
var e;
|
|
10282
10282
|
const { settings: n } = ze();
|
|
@@ -10289,27 +10289,27 @@ const Uu = () => {
|
|
|
10289
10289
|
}, [(e = n.device) == null ? void 0 : e.applyMobileOptimizations]);
|
|
10290
10290
|
}, xp = ({ buttons: e }) => {
|
|
10291
10291
|
var n, a, i, o, s, f, A, u, d, h, g;
|
|
10292
|
-
const y = Gl(), { settings: E } = ze(), { styles: T } = st(), { textAreaDisabled:
|
|
10293
|
-
|
|
10292
|
+
const y = Gl(), { settings: E } = ze(), { styles: T } = st(), { textAreaDisabled: M, textAreaSensitiveMode: k, inputLength: I, hasFlowStarted: Q, setHasFlowStarted: B, setInputLength: N } = Ot(), { inputRef: U } = Rt(), [H, z] = Ue(!1), [Z, W] = Ue(!1), { handleSubmitText: j } = _a(), { setTextAreaValue: q } = Ti(), $ = { boxSizing: y ? "content-box" : "border-box", ...T.chatInputAreaStyle }, ie = { outline: M ? "" : "none", boxShadow: M ? "" : `0 0 5px ${(n = E.general) == null ? void 0 : n.primaryColor}`, boxSizing: y ? "content-box" : "border-box", ...T.chatInputAreaStyle, ...T.chatInputAreaFocusedStyle }, se = { cursor: `url("${(a = E.general) == null ? void 0 : a.actionDisabledIcon}"), auto`, caretColor: "transparent", boxSizing: y ? "content-box" : "border-box", ...T.chatInputAreaStyle, ...T.chatInputAreaDisabledStyle }, le = { color: "#989898", ...T.characterLimitStyle }, be = { color: "#ff0000", ...T.characterLimitReachedStyle }, ge = M ? (i = E.chatInput) == null ? void 0 : i.disabledPlaceholderText : (o = E.chatInput) == null ? void 0 : o.enabledPlaceholderText, me = () => {
|
|
10293
|
+
M || z(!0);
|
|
10294
10294
|
}, _ = () => {
|
|
10295
|
-
|
|
10295
|
+
z(!1);
|
|
10296
10296
|
}, Be = () => {
|
|
10297
10297
|
W(!0);
|
|
10298
10298
|
}, L = () => {
|
|
10299
10299
|
W(!1);
|
|
10300
|
-
}, ve = async (
|
|
10300
|
+
}, ve = async (ae) => {
|
|
10301
10301
|
var he;
|
|
10302
|
-
if (!Z &&
|
|
10303
|
-
if (
|
|
10304
|
-
|
|
10302
|
+
if (!Z && ae.key === "Enter") {
|
|
10303
|
+
if (ae.shiftKey) return void ((he = E.chatInput) != null && he.allowNewline || ae.preventDefault());
|
|
10304
|
+
ae.preventDefault(), await j();
|
|
10305
10305
|
}
|
|
10306
|
-
}, fe = (
|
|
10307
|
-
U.current && (
|
|
10306
|
+
}, fe = (ae) => {
|
|
10307
|
+
U.current && (q(ae.target.value), N(U.current.value.length));
|
|
10308
10308
|
};
|
|
10309
|
-
return dt("div", { "aria-label": ((s = E.ariaLabel) == null ? void 0 : s.inputTextArea) ?? "input text area", role: "textbox", onMouseDown: (
|
|
10309
|
+
return dt("div", { "aria-label": ((s = E.ariaLabel) == null ? void 0 : s.inputTextArea) ?? "input text area", role: "textbox", onMouseDown: (ae) => {
|
|
10310
10310
|
var he;
|
|
10311
|
-
|
|
10312
|
-
}, style: { ...T.chatInputContainerStyle }, className: "rcb-chat-input", children: [k && (f = E.sensitiveInput) != null && f.maskInTextArea ? X("input", { ref: U, type: "password", className: "rcb-chat-input-textarea", style:
|
|
10311
|
+
ae.stopPropagation(), !Q && ((he = E.general) == null ? void 0 : he.flowStartTrigger) === "ON_CHATBOT_INTERACT" && B(!0);
|
|
10312
|
+
}, style: { ...T.chatInputContainerStyle }, className: "rcb-chat-input", children: [k && (f = E.sensitiveInput) != null && f.maskInTextArea ? X("input", { ref: U, type: "password", className: "rcb-chat-input-textarea", style: M ? se : H ? ie : $, placeholder: ge, onChange: fe, onKeyDown: ve, onFocus: me, onBlur: _, onCompositionStart: Be, onCompositionEnd: L }) : X("textarea", { ref: U, style: M ? se : H ? ie : $, rows: 1, className: "rcb-chat-input-textarea", placeholder: ge, onChange: fe, onKeyDown: ve, onFocus: me, onBlur: _, onCompositionStart: Be, onCompositionEnd: L }), dt($t, { children: [e == null ? void 0 : e.map((ae, he) => X(Qu, { children: ae }, he)), ((A = E.chatInput) == null ? void 0 : A.showCharacterCount) && ((u = E.chatInput) == null ? void 0 : u.characterLimit) != null && ((d = E.chatInput) == null ? void 0 : d.characterLimit) > 0 && dt("div", { className: "rcb-chat-input-char-counter", style: I >= ((h = E.chatInput) == null ? void 0 : h.characterLimit) ? be : le, children: [I, "/", (g = E.chatInput) == null ? void 0 : g.characterLimit] })] })] });
|
|
10313
10313
|
}, Sp = ({ buttons: e }) => {
|
|
10314
10314
|
var n;
|
|
10315
10315
|
const { settings: a } = ze(), { styles: i } = st();
|
|
@@ -10317,8 +10317,8 @@ const Uu = () => {
|
|
|
10317
10317
|
}, kp = () => {
|
|
10318
10318
|
var e, n, a, i, o, s, f;
|
|
10319
10319
|
const { settings: A } = ze(), { styles: u } = st(), { unreadCount: d } = Ot(), { isChatWindowOpen: h, toggleChatWindow: g } = Fn(), [y, E] = Ue(!1), T = { backgroundImage: `linear-gradient(to right, ${(e = A.general) == null ? void 0 : e.secondaryColor},
|
|
10320
|
-
${(n = A.general) == null ? void 0 : n.primaryColor})`, ...u.chatButtonStyle },
|
|
10321
|
-
return X($t, { children: !((i = A.general) != null && i.embedded) && dt("div", { "aria-label": ((o = A.ariaLabel) == null ? void 0 : o.chatButton) ?? "open chat", role: "button", style: y ?
|
|
10320
|
+
${(n = A.general) == null ? void 0 : n.primaryColor})`, ...u.chatButtonStyle }, M = { transform: "scale(1.05)", ...u.chatButtonStyle, ...u.chatButtonHoveredStyle }, k = { backgroundImage: `url(${(a = A.chatButton) == null ? void 0 : a.icon})`, fill: "#fff", width: 75, height: 75, ...u.chatIconStyle };
|
|
10321
|
+
return X($t, { children: !((i = A.general) != null && i.embedded) && dt("div", { "aria-label": ((o = A.ariaLabel) == null ? void 0 : o.chatButton) ?? "open chat", role: "button", style: y ? M : T, className: "rcb-toggle-button " + (h ? "rcb-button-hide" : "rcb-button-show"), onMouseEnter: () => {
|
|
10322
10322
|
E(!0);
|
|
10323
10323
|
}, onMouseLeave: () => {
|
|
10324
10324
|
E(!1);
|
|
@@ -10329,13 +10329,13 @@ const Uu = () => {
|
|
|
10329
10329
|
})(), !((s = A.notification) != null && s.disabled) && ((f = A.notification) == null ? void 0 : f.showCount) && X("span", { style: { ...u.notificationBadgeStyle }, className: "rcb-badge", children: d })] }) });
|
|
10330
10330
|
}, Ep = () => {
|
|
10331
10331
|
var e, n, a, i;
|
|
10332
|
-
const o = Gl(), { settings: s } = ze(), { styles: f } = st(), { chatBodyRef: A } = Rt(), { isChatWindowOpen: u, toggleChatWindow: d } = Fn(), [h, g] = Ue(!1), [y, E] = Ue(!1), [T,
|
|
10332
|
+
const o = Gl(), { settings: s } = ze(), { styles: f } = st(), { chatBodyRef: A } = Rt(), { isChatWindowOpen: u, toggleChatWindow: d } = Fn(), [h, g] = Ue(!1), [y, E] = Ue(!1), [T, M] = Ue(0);
|
|
10333
10333
|
je(() => {
|
|
10334
10334
|
var Q, B, N;
|
|
10335
10335
|
const U = (Q = s.tooltip) == null ? void 0 : Q.mode;
|
|
10336
10336
|
if (U === "ALWAYS") if (o) {
|
|
10337
10337
|
let H;
|
|
10338
|
-
H = u ? (((B = A.current) == null ? void 0 : B.offsetWidth) ?? 375) - (typeof ((N = f.chatButtonStyle) == null ? void 0 : N.width) == "number" ? f.chatButtonStyle.width : 75) : 0,
|
|
10338
|
+
H = u ? (((B = A.current) == null ? void 0 : B.offsetWidth) ?? 375) - (typeof ((N = f.chatButtonStyle) == null ? void 0 : N.width) == "number" ? f.chatButtonStyle.width : 75) : 0, M(H), g(!0);
|
|
10339
10339
|
} else g(!u);
|
|
10340
10340
|
else U === "NEVER" ? g(!1) : U === "START" ? y ? g(!1) : (E(!0), g(!0)) : U === "CLOSE" && g(!u);
|
|
10341
10341
|
}, [u]);
|
|
@@ -10362,7 +10362,7 @@ const Uu = () => {
|
|
|
10362
10362
|
}, Pp = () => {
|
|
10363
10363
|
var e, n, a, i, o, s, f, A, u, d, h, g;
|
|
10364
10364
|
const { styles: y } = st(), { toasts: E } = Bd(), T = { bottom: `calc(${typeof ((e = y.footerStyle) == null ? void 0 : e.height) == "number" ? `${(n = y.footerStyle) == null ? void 0 : n.height}px` : ((a = y.footerStyle) == null ? void 0 : a.height) ?? "50px"} + ${typeof ((i = y.chatInputContainerStyle) == null ? void 0 : i.height) == "number" ? `${(o = y.chatInputContainerStyle) == null ? void 0 : o.height}px` : ((s = y.chatInputContainerStyle) == null ? void 0 : s.height) ?? "70px"} + 20px)`, width: 300, minWidth: `calc(${typeof ((f = y.chatWindowStyle) == null ? void 0 : f.width) == "number" ? `${(A = y.chatWindowStyle) == null ? void 0 : A.width}px` : ((u = y.chatWindowStyle) == null ? void 0 : u.width) ?? "375px"} / 2)`, maxWidth: `calc(${typeof ((d = y.chatWindowStyle) == null ? void 0 : d.width) == "number" ? `${(h = y.chatWindowStyle) == null ? void 0 : h.width}px` : ((g = y.chatWindowStyle) == null ? void 0 : g.width) ?? "375px"} - 50px)`, ...y.toastPromptContainerStyle };
|
|
10365
|
-
return X("div", { className: "rcb-toast-prompt-container", style: T, children: E.map((
|
|
10365
|
+
return X("div", { className: "rcb-toast-prompt-container", style: T, children: E.map((M) => X(Cp, { id: M.id, content: M.content, timeout: M.timeout }, M.id)) });
|
|
10366
10366
|
}, Rd = ({ file: e, fileType: n, fileUrl: a }) => {
|
|
10367
10367
|
var i, o, s;
|
|
10368
10368
|
const { settings: f } = ze(), { styles: A } = st(), u = { backgroundColor: (i = f.general) == null ? void 0 : i.primaryColor, maxWidth: (o = f.userBubble) != null && o.showAvatar ? "65%" : "70%", ...A.mediaDisplayContainerStyle };
|
|
@@ -10381,13 +10381,13 @@ const Uu = () => {
|
|
|
10381
10381
|
}
|
|
10382
10382
|
}, Tp = () => {
|
|
10383
10383
|
var e, n, a, i, o, s;
|
|
10384
|
-
const { settings: f } = ze(), { styles: A } = st(), { injectMessage: u, simulateStreamMessage: d, streamMessage: h, removeMessage: g, endStreamMessage: y } = Pi(), { getCurrPath: E, getPrevPath: T, goToPath:
|
|
10385
|
-
return dt("label", { "aria-label": ((i = f.ariaLabel) == null ? void 0 : i.fileAttachmentButton) ?? "upload file", role: "button", className: k ? "rcb-attach-button-enabled" : "rcb-attach-button-disabled", style: k ? { ...A.fileAttachmentButtonStyle } :
|
|
10384
|
+
const { settings: f } = ze(), { styles: A } = st(), { injectMessage: u, simulateStreamMessage: d, streamMessage: h, removeMessage: g, endStreamMessage: y } = Pi(), { getCurrPath: E, getPrevPath: T, goToPath: M, blockAllowsAttachment: k } = Yl(), { flowRef: I, inputRef: Q } = Rt(), B = I.current, { showToast: N, dismissToast: U } = Oa(), { dispatchRcbEvent: H } = fr(), { toggleChatWindow: z } = Fn(), { setTextAreaValue: Z } = Ti(), { handleSubmitText: W } = _a(), j = { cursor: `url("${(e = f.general) == null ? void 0 : e.actionDisabledIcon}"), auto`, ...A.fileAttachmentButtonStyle, ...A.fileAttachmentButtonDisabledStyle }, q = { backgroundImage: `url(${(n = f.fileAttachment) == null ? void 0 : n.icon})`, fill: "#a6a6a6", ...A.fileAttachmentIconStyle }, $ = { backgroundImage: `url(${(a = f.fileAttachment) == null ? void 0 : a.icon})`, fill: "#a6a6a6", ...A.fileAttachmentIconStyle, ...A.fileAttachmentIconDisabledStyle };
|
|
10385
|
+
return dt("label", { "aria-label": ((i = f.ariaLabel) == null ? void 0 : i.fileAttachmentButton) ?? "upload file", role: "button", className: k ? "rcb-attach-button-enabled" : "rcb-attach-button-disabled", style: k ? { ...A.fileAttachmentButtonStyle } : j, children: [X("input", { className: "rcb-attach-input", role: "file", type: "file", onChange: async (ie) => {
|
|
10386
10386
|
var se, le, be, ge;
|
|
10387
|
-
const me =
|
|
10387
|
+
const me = ie.target.files;
|
|
10388
10388
|
if (!me) return;
|
|
10389
10389
|
const _ = Array.from(me);
|
|
10390
|
-
if (
|
|
10390
|
+
if (ie.target.value = "", (se = f.event) != null && se.rcbUserUploadFile && (await H(xe.USER_UPLOAD_FILE, { files: _ })).defaultPrevented) return;
|
|
10391
10391
|
const Be = E();
|
|
10392
10392
|
if (!Be) return;
|
|
10393
10393
|
const L = B[Be];
|
|
@@ -10395,30 +10395,30 @@ const Uu = () => {
|
|
|
10395
10395
|
const ve = L.file;
|
|
10396
10396
|
if (ve != null) {
|
|
10397
10397
|
const fe = [];
|
|
10398
|
-
for (let
|
|
10399
|
-
if (fe.push(_[
|
|
10400
|
-
const he = await Md(_[
|
|
10401
|
-
!he.fileType || !he.fileUrl || await u(X(Rd, { file: _[
|
|
10398
|
+
for (let ae = 0; ae < _.length; ae++) {
|
|
10399
|
+
if (fe.push(_[ae].name), (le = f.fileAttachment) == null || !le.showMediaDisplay) continue;
|
|
10400
|
+
const he = await Md(_[ae]);
|
|
10401
|
+
!he.fileType || !he.fileUrl || await u(X(Rd, { file: _[ae], fileType: he.fileType, fileUrl: he.fileUrl }), "USER");
|
|
10402
10402
|
}
|
|
10403
|
-
await W("📄 " + fe.join(", "), (be = f.fileAttachment) == null ? void 0 : be.sendFileName), await ve({ userInput: (ge = Q.current) == null ? void 0 : ge.value, prevPath: T(), currPath: E(), goToPath:
|
|
10403
|
+
await W("📄 " + fe.join(", "), (be = f.fileAttachment) == null ? void 0 : be.sendFileName), await ve({ userInput: (ge = Q.current) == null ? void 0 : ge.value, prevPath: T(), currPath: E(), goToPath: M, setTextAreaValue: Z, injectMessage: u, simulateStreamMessage: d, streamMessage: h, removeMessage: g, endStreamMessage: y, toggleChatWindow: z, showToast: N, dismissToast: U, files: _ });
|
|
10404
10404
|
}
|
|
10405
10405
|
}, multiple: (o = f.fileAttachment) == null ? void 0 : o.multiple, accept: (s = f.fileAttachment) == null ? void 0 : s.accept, disabled: !k }), (() => {
|
|
10406
|
-
var
|
|
10407
|
-
const le = k ? (
|
|
10408
|
-
return le && typeof le != "string" ? le && X("span", { className: k ? "rcb-attach-icon-enabled" : "rcb-attach-icon-disabled", children: X(le, { style: k ?
|
|
10406
|
+
var ie, se;
|
|
10407
|
+
const le = k ? (ie = f.fileAttachment) == null ? void 0 : ie.icon : (se = f.fileAttachment) == null ? void 0 : se.iconDisabled;
|
|
10408
|
+
return le && typeof le != "string" ? le && X("span", { className: k ? "rcb-attach-icon-enabled" : "rcb-attach-icon-disabled", children: X(le, { style: k ? q : $ }) }) : X("span", { className: k ? "rcb-attach-icon-enabled" : "rcb-attach-icon-disabled", style: k ? q : $ });
|
|
10409
10409
|
})()] });
|
|
10410
10410
|
}, Dp = () => {
|
|
10411
10411
|
var e, n, a, i, o, s;
|
|
10412
|
-
const { settings: f } = ze(), { styles: A } = st(), { syncedTextAreaDisabledRef: u } = Ot(), { inputRef: d } = Rt(), { textAreaDisabled: h, setTextAreaValue: g } = Ti(), y = Je(null), E = Je(null), [T,
|
|
10412
|
+
const { settings: f } = ze(), { styles: A } = st(), { syncedTextAreaDisabledRef: u } = Ot(), { inputRef: d } = Rt(), { textAreaDisabled: h, setTextAreaValue: g } = Ti(), y = Je(null), E = Je(null), [T, M] = Ue(!1), k = { cursor: `url("${(e = f.general) == null ? void 0 : e.actionDisabledIcon}"), auto`, ...A.emojiButtonStyle, ...A.emojiButtonDisabledStyle }, I = { backgroundImage: `url(${(n = f.emoji) == null ? void 0 : n.icon})`, fill: "#a6a6a6", ...A.emojiIconStyle }, Q = { backgroundImage: `url(${(a = f.emoji) == null ? void 0 : a.icon})`, fill: "#a6a6a6", ...A.emojiIconStyle, ...A.emojiIconDisabledStyle };
|
|
10413
10413
|
return je(() => {
|
|
10414
10414
|
const B = (U) => {
|
|
10415
10415
|
const H = U.composedPath();
|
|
10416
|
-
y.current && !H.includes(y.current) && E.current && !H.includes(E.current) &&
|
|
10416
|
+
y.current && !H.includes(y.current) && E.current && !H.includes(E.current) && M(!1);
|
|
10417
10417
|
}, N = () => {
|
|
10418
10418
|
(() => {
|
|
10419
10419
|
if (y.current && E.current) {
|
|
10420
|
-
const U = E.current.getBoundingClientRect(), H = y.current.offsetHeight,
|
|
10421
|
-
y.current.style.left = `${U.left}px`, y.current.style.top = `${
|
|
10420
|
+
const U = E.current.getBoundingClientRect(), H = y.current.offsetHeight, z = U.top - H - 8;
|
|
10421
|
+
y.current.style.left = `${U.left}px`, y.current.style.top = `${z}px`;
|
|
10422
10422
|
}
|
|
10423
10423
|
})();
|
|
10424
10424
|
};
|
|
@@ -10426,20 +10426,20 @@ const Uu = () => {
|
|
|
10426
10426
|
document.removeEventListener("mousedown", B), window.removeEventListener("resize", N);
|
|
10427
10427
|
};
|
|
10428
10428
|
}, []), dt($t, { children: [X("div", { "aria-label": ((i = f.ariaLabel) == null ? void 0 : i.emojiButton) ?? "emoji picker", role: "button", ref: E, className: h ? "rcb-emoji-button-disabled" : "rcb-emoji-button-enabled", style: h ? k : { ...A.emojiButtonStyle }, onMouseDown: (B) => {
|
|
10429
|
-
B.preventDefault(), u.current ?
|
|
10429
|
+
B.preventDefault(), u.current ? M(!1) : M((N) => !N);
|
|
10430
10430
|
}, children: (() => {
|
|
10431
10431
|
var B, N;
|
|
10432
10432
|
const U = h ? (B = f.emoji) == null ? void 0 : B.iconDisabled : (N = f.emoji) == null ? void 0 : N.icon;
|
|
10433
10433
|
return U && typeof U != "string" ? U && X("span", { className: h ? "rcb-emoji-icon-disabled" : "rcb-emoji-icon-enabled", children: X(U, { style: h ? Q : I }) }) : X("span", { className: h ? "rcb-emoji-icon-disabled" : "rcb-emoji-icon-enabled", style: h ? Q : I });
|
|
10434
|
-
})() }), T && X("div", { className: "rcb-emoji-button-popup", ref: y, children: (s = (o = f.emoji) == null ? void 0 : o.list) == null ? void 0 : s.map((B, N) => X("span", { className: "rcb-emoji", onMouseDown: (U) => ((H,
|
|
10435
|
-
H.preventDefault(), d.current && (g(d.current.value +
|
|
10434
|
+
})() }), T && X("div", { className: "rcb-emoji-button-popup", ref: y, children: (s = (o = f.emoji) == null ? void 0 : o.list) == null ? void 0 : s.map((B, N) => X("span", { className: "rcb-emoji", onMouseDown: (U) => ((H, z) => {
|
|
10435
|
+
H.preventDefault(), d.current && (g(d.current.value + z), setTimeout(() => {
|
|
10436
10436
|
const Z = d.current;
|
|
10437
10437
|
if (Z) {
|
|
10438
10438
|
Z.focus();
|
|
10439
10439
|
const W = Z.value.length;
|
|
10440
10440
|
Z.setSelectionRange(W, W);
|
|
10441
10441
|
}
|
|
10442
|
-
}, 50)),
|
|
10442
|
+
}, 50)), M(!1);
|
|
10443
10443
|
})(U, B), children: B }, N)) })] });
|
|
10444
10444
|
}, Ip = () => {
|
|
10445
10445
|
var e, n, a;
|
|
@@ -10476,18 +10476,18 @@ const Uu = () => {
|
|
|
10476
10476
|
})() });
|
|
10477
10477
|
}, Mp = () => {
|
|
10478
10478
|
var e, n, a;
|
|
10479
|
-
const { settings: i } = ze(), { styles: o } = st(), { injectMessage: s } = Pi(), { inputRef: f } = Rt(), { voiceToggledOn: A, toggleVoice: u } = ju(), { setInputLength: d, setTextAreaValue: h, textAreaDisabled: g } = Ti(), { handleSubmitText: y } = _a(), E = Je([]), [T,
|
|
10479
|
+
const { settings: i } = ze(), { styles: o } = st(), { injectMessage: s } = Pi(), { inputRef: f } = Rt(), { voiceToggledOn: A, toggleVoice: u } = ju(), { setInputLength: d, setTextAreaValue: h, textAreaDisabled: g } = Ti(), { handleSubmitText: y } = _a(), E = Je([]), [T, M] = Ue(!1);
|
|
10480
10480
|
je(() => {
|
|
10481
10481
|
var N;
|
|
10482
10482
|
(N = i.voice) != null && N.sendAsAudio ? (B(), E.current = []) : y();
|
|
10483
10483
|
}, [T]), je(() => {
|
|
10484
|
-
A ? ((N, U, H,
|
|
10485
|
-
var
|
|
10486
|
-
(
|
|
10484
|
+
A ? ((N, U, H, z, Z, W, j) => {
|
|
10485
|
+
var q;
|
|
10486
|
+
(q = N.voice) != null && q.sendAsAudio ? bp(H, W) : yp(N, U, H, z, Z, j);
|
|
10487
10487
|
})(i, u, Q, h, d, E, f) : zu();
|
|
10488
10488
|
}, [A]);
|
|
10489
10489
|
const k = { backgroundImage: `url(${(e = i.voice) == null ? void 0 : e.icon})`, fill: "#9aa0a6", ...o.voiceIconStyle }, I = { backgroundImage: `url(${(n = i.voice) == null ? void 0 : n.iconDisabled})`, fill: "#9aa0a6", ...o.voiceIconStyle, ...o.voiceIconDisabledStyle }, Q = () => {
|
|
10490
|
-
|
|
10490
|
+
M((N) => !N);
|
|
10491
10491
|
}, B = async () => {
|
|
10492
10492
|
const N = new Blob(E.current, { type: "audio/wav" }), U = new File([N], "voice-input.wav", { type: "audio/wav" }), H = await Md(U);
|
|
10493
10493
|
!H.fileType || !H.fileUrl || await s(X(Rd, { file: U, fileType: H.fileType, fileUrl: H.fileUrl }), "USER");
|
|
@@ -10501,35 +10501,35 @@ const Uu = () => {
|
|
|
10501
10501
|
})() });
|
|
10502
10502
|
}, Op = () => {
|
|
10503
10503
|
var e, n, a, i, o, s, f, A;
|
|
10504
|
-
const { settings: u } = ze(), { styles: d } = st(), { textAreaDisabled: h } = Ot(), [g, y] = Ue(!1), { handleSubmitText: E } = _a(), T = { backgroundColor: (e = u.general) == null ? void 0 : e.primaryColor, ...d.sendButtonStyle },
|
|
10504
|
+
const { settings: u } = ze(), { styles: d } = st(), { textAreaDisabled: h } = Ot(), [g, y] = Ue(!1), { handleSubmitText: E } = _a(), T = { backgroundColor: (e = u.general) == null ? void 0 : e.primaryColor, ...d.sendButtonStyle }, M = { cursor: `url("${(n = u.general) == null ? void 0 : n.actionDisabledIcon}"), auto`, backgroundColor: (a = u.general) == null ? void 0 : a.primaryColor, ...d.sendButtonStyle, ...d.sendButtonDisabledStyle }, k = { backgroundColor: (i = u.general) == null ? void 0 : i.secondaryColor, ...d.sendButtonStyle, ...d.sendButtonHoveredStyle }, I = { backgroundImage: `url(${(o = u.chatInput) == null ? void 0 : o.sendButtonIcon})`, fill: "#fff", ...d.sendIconStyle }, Q = { backgroundImage: `url(${(s = u.chatInput) == null ? void 0 : s.sendButtonIcon})`, fill: "#fff", ...d.sendIconStyle, ...d.sendIconDisabledStyle }, B = { backgroundImage: `url(${(f = u.chatInput) == null ? void 0 : f.sendButtonIcon})`, fill: "#fff", ...d.sendIconStyle, ...d.sendIconHoveredStyle };
|
|
10505
10505
|
return X("div", { "aria-label": ((A = u.ariaLabel) == null ? void 0 : A.sendButton) ?? "send message", role: "button", onMouseEnter: () => {
|
|
10506
10506
|
y(!0);
|
|
10507
10507
|
}, onMouseLeave: () => {
|
|
10508
10508
|
y(!1);
|
|
10509
10509
|
}, onMouseDown: async (N) => {
|
|
10510
10510
|
N == null || N.preventDefault(), !h && await E();
|
|
10511
|
-
}, style: h ?
|
|
10511
|
+
}, style: h ? M : g ? k : T, className: "rcb-send-button", children: (() => {
|
|
10512
10512
|
var N;
|
|
10513
10513
|
const U = (N = u.chatInput) == null ? void 0 : N.sendButtonIcon;
|
|
10514
10514
|
return U && typeof U != "string" ? U && X("span", { className: "rcb-send-icon", "data-testid": "rcb-send-icon", children: X(U, { style: h ? Q : g ? B : I }) }) : X("span", { className: "rcb-send-icon", "data-testid": "rcb-send-icon", style: h ? Q : g ? B : I });
|
|
10515
10515
|
})() });
|
|
10516
10516
|
}, _p = (e, n) => {
|
|
10517
10517
|
var a, i, o, s, f, A, u, d, h;
|
|
10518
|
-
const g = { [kt.AUDIO_BUTTON]: (a = e.audio) == null ? void 0 : a.disabled, [kt.CLOSE_CHAT_BUTTON]: (i = e.general) == null ? void 0 : i.embedded, [kt.EMOJI_PICKER_BUTTON]: (o = e.emoji) == null ? void 0 : o.disabled, [kt.FILE_ATTACHMENT_BUTTON]: (s = e.fileAttachment) == null ? void 0 : s.disabled, [kt.NOTIFICATION_BUTTON]: (f = e.notification) == null ? void 0 : f.disabled, [kt.SEND_MESSAGE_BUTTON]: !1, [kt.VOICE_MESSAGE_BUTTON]: (A = e.voice) == null ? void 0 : A.disabled }, y = {}, E = (T) => T ? T.map((
|
|
10519
|
-
if (typeof
|
|
10520
|
-
if (((k) => Object.values(kt).includes(k))(
|
|
10521
|
-
if (y[
|
|
10522
|
-
const k = n[
|
|
10518
|
+
const g = { [kt.AUDIO_BUTTON]: (a = e.audio) == null ? void 0 : a.disabled, [kt.CLOSE_CHAT_BUTTON]: (i = e.general) == null ? void 0 : i.embedded, [kt.EMOJI_PICKER_BUTTON]: (o = e.emoji) == null ? void 0 : o.disabled, [kt.FILE_ATTACHMENT_BUTTON]: (s = e.fileAttachment) == null ? void 0 : s.disabled, [kt.NOTIFICATION_BUTTON]: (f = e.notification) == null ? void 0 : f.disabled, [kt.SEND_MESSAGE_BUTTON]: !1, [kt.VOICE_MESSAGE_BUTTON]: (A = e.voice) == null ? void 0 : A.disabled }, y = {}, E = (T) => T ? T.map((M) => {
|
|
10519
|
+
if (typeof M == "string") {
|
|
10520
|
+
if (((k) => Object.values(kt).includes(k))(M) && !g[M]) {
|
|
10521
|
+
if (y[M]) return y[M];
|
|
10522
|
+
const k = n[M];
|
|
10523
10523
|
if (typeof k == "function") {
|
|
10524
10524
|
const I = k();
|
|
10525
|
-
return y[
|
|
10525
|
+
return y[M] = I, I;
|
|
10526
10526
|
}
|
|
10527
10527
|
return null;
|
|
10528
10528
|
}
|
|
10529
10529
|
return null;
|
|
10530
10530
|
}
|
|
10531
|
-
return
|
|
10532
|
-
}).filter((
|
|
10531
|
+
return M;
|
|
10532
|
+
}).filter((M) => M !== null) : [];
|
|
10533
10533
|
return { header: E((u = e.header) == null ? void 0 : u.buttons), chatInput: E((d = e.chatInput) == null ? void 0 : d.buttons), footer: E((h = e.footer) == null ? void 0 : h.buttons) };
|
|
10534
10534
|
}, Lp = () => {
|
|
10535
10535
|
const { settings: e } = ze(), n = nn(() => ({ [kt.CLOSE_CHAT_BUTTON]: () => X(Bp, {}), [kt.AUDIO_BUTTON]: () => X(Ip, {}), [kt.NOTIFICATION_BUTTON]: () => X(Rp, {}), [kt.EMOJI_PICKER_BUTTON]: () => X(Dp, {}), [kt.FILE_ATTACHMENT_BUTTON]: () => X(Tp, {}), [kt.SEND_MESSAGE_BUTTON]: () => X(Op, {}), [kt.VOICE_MESSAGE_BUTTON]: () => X(Mp, {}) }), []), { header: a, chatInput: i, footer: o } = nn(() => _p(e, n), [e, n]);
|
|
@@ -10541,30 +10541,30 @@ const Uu = () => {
|
|
|
10541
10541
|
if (!E || (g = e.event) != null && g.rcbLoadChatHistory && (await d(xe.LOAD_CHAT_HISTORY, {})).defaultPrevented) return;
|
|
10542
10542
|
s(!0);
|
|
10543
10543
|
const T = ((y = u.current) == null ? void 0 : y.scrollHeight) ?? 0;
|
|
10544
|
-
((
|
|
10544
|
+
((M, k, I, Q, B, N, U, H, z) => {
|
|
10545
10545
|
var Z;
|
|
10546
10546
|
if (Ed = !0, I != null) try {
|
|
10547
|
-
const W = _o(X(up, {}), "SYSTEM"),
|
|
10548
|
-
Q([W, ...
|
|
10549
|
-
const
|
|
10550
|
-
if (
|
|
10551
|
-
const
|
|
10552
|
-
return {
|
|
10547
|
+
const W = _o(X(up, {}), "SYSTEM"), j = B.current.slice(1);
|
|
10548
|
+
Q([W, ...j]);
|
|
10549
|
+
const q = I.map(($) => {
|
|
10550
|
+
if ($.type === "object") {
|
|
10551
|
+
const ie = Td($.content, M, k);
|
|
10552
|
+
return { ...$, content: ie };
|
|
10553
10553
|
}
|
|
10554
|
-
return
|
|
10554
|
+
return $;
|
|
10555
10555
|
});
|
|
10556
10556
|
setTimeout(() => {
|
|
10557
|
-
var
|
|
10558
|
-
const
|
|
10559
|
-
let se = (
|
|
10560
|
-
Q([
|
|
10557
|
+
var $;
|
|
10558
|
+
const ie = B.current.slice(1);
|
|
10559
|
+
let se = ($ = M.chatHistory) != null && $.autoLoad ? _o(X($t, {}), "SYSTEM") : _o(X(cp, {}), "SYSTEM");
|
|
10560
|
+
Q([...q, se, ...ie]), z(!0);
|
|
10561
10561
|
}, 500), setTimeout(() => {
|
|
10562
10562
|
if (!N.current) return;
|
|
10563
|
-
const { scrollHeight:
|
|
10564
|
-
N.current.scrollTop +=
|
|
10563
|
+
const { scrollHeight: $ } = N.current, ie = $ - U;
|
|
10564
|
+
N.current.scrollTop += ie, H(!1);
|
|
10565
10565
|
}, 510);
|
|
10566
10566
|
} catch {
|
|
10567
|
-
Qo.removeItem((Z =
|
|
10567
|
+
Qo.removeItem((Z = M.chatHistory) == null ? void 0 : Z.storageKey);
|
|
10568
10568
|
}
|
|
10569
10569
|
})(e, n, E, a, i, u, T, s, A);
|
|
10570
10570
|
}, [e, n, d, i, u, s, A]);
|
|
@@ -10581,58 +10581,58 @@ const Uu = () => {
|
|
|
10581
10581
|
}, className: "rcb-view-history-button", role: "button", tabIndex: 0, children: X("p", { children: (a = i.chatHistory) == null ? void 0 : a.viewChatHistoryButtonText }) }) });
|
|
10582
10582
|
}, Fp = () => {
|
|
10583
10583
|
var e, n, a, i;
|
|
10584
|
-
const o = Gl(), { settings: s } = ze(), { replaceMessages: f } = Pi(), { isBotTyping: A, isChatWindowOpen: u, setUnreadCount: d, setSyncedIsChatWindowOpen: h, setSyncedTextAreaDisabled: g, setSyncedAudioToggledOn: y, setSyncedVoiceToggledOn: E, setSyncedIsScrolling: T, syncedIsScrollingRef:
|
|
10585
|
-
var
|
|
10586
|
-
const { settings:
|
|
10584
|
+
const o = Gl(), { settings: s } = ze(), { replaceMessages: f } = Pi(), { isBotTyping: A, isChatWindowOpen: u, setUnreadCount: d, setSyncedIsChatWindowOpen: h, setSyncedTextAreaDisabled: g, setSyncedAudioToggledOn: y, setSyncedVoiceToggledOn: E, setSyncedIsScrolling: T, syncedIsScrollingRef: M, syncedIsChatWindowOpenRef: k } = Ot(), { chatBodyRef: I } = Rt(), { viewportHeight: Q, setViewportHeight: B, setViewportWidth: N, scrollToBottom: U } = Fn(), { setUpNotifications: H } = Nu(), { handleFirstInteraction: z } = (() => {
|
|
10585
|
+
var q;
|
|
10586
|
+
const { settings: $ } = ze(), { hasInteractedPage: ie, setHasInteractedPage: se, hasFlowStarted: le, setHasFlowStarted: be } = Ot(), ge = Ce(() => {
|
|
10587
10587
|
var me;
|
|
10588
|
-
if (se(!0), !le && ((me =
|
|
10588
|
+
if (se(!0), !le && ((me = $.general) == null ? void 0 : me.flowStartTrigger) === "ON_PAGE_INTERACT" && be(!0), !window.SpeechSynthesisUtterance) return void console.info("Speech Synthesis API is not supported in this environment.");
|
|
10589
10589
|
const _ = new window.SpeechSynthesisUtterance();
|
|
10590
10590
|
_.text = "", _.onend = () => {
|
|
10591
10591
|
window.removeEventListener("click", ge), window.removeEventListener("keydown", ge), window.removeEventListener("touchstart", ge);
|
|
10592
10592
|
}, window.speechSynthesis.speak(_);
|
|
10593
|
-
}, [le, (
|
|
10594
|
-
return { hasInteractedPage:
|
|
10595
|
-
})(), { showChatHistory: Z } = Wu(), W = Je(0),
|
|
10596
|
-
je(() => (window.addEventListener("click",
|
|
10597
|
-
window.removeEventListener("click",
|
|
10593
|
+
}, [le, (q = $.general) == null ? void 0 : q.flowStartTrigger]);
|
|
10594
|
+
return { hasInteractedPage: ie, handleFirstInteraction: ge };
|
|
10595
|
+
})(), { showChatHistory: Z } = Wu(), W = Je(0), j = Je(!1);
|
|
10596
|
+
je(() => (window.addEventListener("click", z), window.addEventListener("keydown", z), window.addEventListener("touchstart", z), () => {
|
|
10597
|
+
window.removeEventListener("click", z), window.removeEventListener("keydown", z), window.removeEventListener("touchstart", z);
|
|
10598
10598
|
}), []), je(() => {
|
|
10599
|
-
const
|
|
10600
|
-
if (
|
|
10601
|
-
const
|
|
10602
|
-
|
|
10603
|
-
var
|
|
10604
|
-
if (
|
|
10605
|
-
const { scrollTop: le, clientHeight: be, scrollHeight: ge } =
|
|
10606
|
-
T(me),
|
|
10599
|
+
const q = I.current;
|
|
10600
|
+
if (!q) return;
|
|
10601
|
+
const $ = () => {
|
|
10602
|
+
j.current || (j.current = !0, requestAnimationFrame(() => {
|
|
10603
|
+
var ie, se;
|
|
10604
|
+
if (!q) return;
|
|
10605
|
+
const { scrollTop: le, clientHeight: be, scrollHeight: ge } = q, me = le + be < ge - (((ie = s.chatWindow) == null ? void 0 : ie.messagePromptOffset) ?? 30);
|
|
10606
|
+
T(me), M.current = me, me || (le + be >= ge - 1 && (q.scrollTop = ge - be - 1), (k.current || (se = s.general) != null && se.embedded) && d(0)), j.current = !1;
|
|
10607
10607
|
}));
|
|
10608
10608
|
};
|
|
10609
|
-
return
|
|
10610
|
-
|
|
10609
|
+
return q.addEventListener("wheel", $, { passive: !0 }), q.addEventListener("touchmove", $, { passive: !0 }), () => {
|
|
10610
|
+
q.removeEventListener("wheel", $), q.removeEventListener("touchmove", $);
|
|
10611
10611
|
};
|
|
10612
10612
|
}, []), je(() => {
|
|
10613
|
-
var
|
|
10614
|
-
g((
|
|
10613
|
+
var q, $, ie;
|
|
10614
|
+
g((q = s.chatInput) == null ? void 0 : q.disabled), h(($ = s.chatWindow) == null ? void 0 : $.defaultOpen), y((ie = s.audio) == null ? void 0 : ie.defaultToggledOn), setTimeout(() => {
|
|
10615
10615
|
var se;
|
|
10616
10616
|
E((se = s.voice) == null ? void 0 : se.defaultToggledOn);
|
|
10617
10617
|
}, 1);
|
|
10618
10618
|
}, []), je(() => {
|
|
10619
|
-
var
|
|
10620
|
-
(
|
|
10619
|
+
var q;
|
|
10620
|
+
(q = s.notification) != null && q.disabled || H();
|
|
10621
10621
|
}, [(e = s.notification) == null ? void 0 : e.disabled]), je(() => {
|
|
10622
|
-
!
|
|
10622
|
+
!M.current && I != null && I.current && U();
|
|
10623
10623
|
}, [A]), je(() => {
|
|
10624
|
-
var
|
|
10625
|
-
if ((
|
|
10624
|
+
var q, $;
|
|
10625
|
+
if ((q = s.chatHistory) != null && q.disabled) Qo && Qo.removeItem(Nl);
|
|
10626
10626
|
else if (yu(s), Hu().length > 0) {
|
|
10627
|
-
const
|
|
10628
|
-
f([
|
|
10627
|
+
const ie = _o(X(Qp, {}), "SYSTEM");
|
|
10628
|
+
f([ie]), ($ = s.chatHistory) != null && $.autoLoad && Z();
|
|
10629
10629
|
}
|
|
10630
10630
|
}, [(n = s.chatHistory) == null ? void 0 : n.storageKey, (a = s.chatHistory) == null ? void 0 : a.maxEntries, (i = s.chatHistory) == null ? void 0 : i.disabled]), je(() => {
|
|
10631
|
-
var
|
|
10632
|
-
o || (
|
|
10633
|
-
if (
|
|
10634
|
-
const { x:
|
|
10635
|
-
|
|
10631
|
+
var q;
|
|
10632
|
+
o || (q = s.general) != null && q.embedded || !navigator.virtualKeyboard || (navigator.virtualKeyboard.overlaysContent = !0, navigator.virtualKeyboard.addEventListener("geometrychange", ($) => {
|
|
10633
|
+
if (!$.target) return;
|
|
10634
|
+
const { x: ie, y: se, width: le, height: be } = $.target.boundingRect;
|
|
10635
|
+
ie == 0 && se == 0 && le == 0 && be == 0 ? (setTimeout(() => {
|
|
10636
10636
|
var ge;
|
|
10637
10637
|
B((ge = window.visualViewport) == null ? void 0 : ge.height);
|
|
10638
10638
|
}, 101), setTimeout(() => {
|
|
@@ -10644,9 +10644,9 @@ const Uu = () => {
|
|
|
10644
10644
|
}, 101);
|
|
10645
10645
|
}));
|
|
10646
10646
|
}, [o]), je(() => {
|
|
10647
|
-
var
|
|
10647
|
+
var q, $, ie, se;
|
|
10648
10648
|
if (o) return;
|
|
10649
|
-
u && (B((
|
|
10649
|
+
u && (B((q = window.visualViewport) == null ? void 0 : q.height), N(($ = window.visualViewport) == null ? void 0 : $.width));
|
|
10650
10650
|
const le = () => window.scrollTo({ top: 0, left: 0, behavior: "auto" }), be = () => W.current = window.scrollY, ge = () => {
|
|
10651
10651
|
var _, Be;
|
|
10652
10652
|
B((_ = window.visualViewport) == null ? void 0 : _.height), N((Be = window.visualViewport) == null ? void 0 : Be.width);
|
|
@@ -10654,7 +10654,7 @@ const Uu = () => {
|
|
|
10654
10654
|
var _;
|
|
10655
10655
|
window.removeEventListener("scroll", le), window.removeEventListener("scroll", be), (_ = window.visualViewport) == null || _.removeEventListener("resize", ge);
|
|
10656
10656
|
};
|
|
10657
|
-
return u ? (me(), document.body.style.position = "fixed", window.addEventListener("scroll", le), (
|
|
10657
|
+
return u ? (me(), document.body.style.position = "fixed", window.addEventListener("scroll", le), (ie = window.visualViewport) == null || ie.addEventListener("resize", ge)) : (document.body.style.position = "static", me(), window.scrollTo({ top: W.current, left: 0, behavior: "auto" }), window.addEventListener("scroll", be), (se = window.visualViewport) == null || se.removeEventListener("resize", ge)), me;
|
|
10658
10658
|
}, [u, o]);
|
|
10659
10659
|
}, Hp = "https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes", Np = "2592000", AA = "RCB_THEME_CACHE_DATA", dA = async (e, n) => {
|
|
10660
10660
|
const { id: a, version: i, baseUrl: o = Hp, cacheDuration: s = Np } = n, f = i || await (async (I, Q) => {
|
|
@@ -10671,8 +10671,8 @@ const Uu = () => {
|
|
|
10671
10671
|
const N = localStorage.getItem(`${AA}_${I}_${Q}`);
|
|
10672
10672
|
if (!N) return null;
|
|
10673
10673
|
try {
|
|
10674
|
-
const U = JSON.parse(N), H = (/* @__PURE__ */ new Date()).getTime(),
|
|
10675
|
-
return U.cacheDate + B >=
|
|
10674
|
+
const U = JSON.parse(N), H = (/* @__PURE__ */ new Date()).getTime(), z = Math.floor(H / 1e3);
|
|
10675
|
+
return U.cacheDate + B >= z ? U : null;
|
|
10676
10676
|
} catch (U) {
|
|
10677
10677
|
return console.error(`Unable to fetch cache for ${I}`, U), null;
|
|
10678
10678
|
}
|
|
@@ -10688,11 +10688,11 @@ const Uu = () => {
|
|
|
10688
10688
|
const E = await fetch(d);
|
|
10689
10689
|
let T = {};
|
|
10690
10690
|
E.ok ? T = await E.json() : console.info(`Could not fetch settings.json from ${d}`);
|
|
10691
|
-
const
|
|
10691
|
+
const M = await fetch(h);
|
|
10692
10692
|
let k = {};
|
|
10693
|
-
return
|
|
10694
|
-
const H = (/* @__PURE__ */ new Date()).getTime(),
|
|
10695
|
-
localStorage.setItem(`${AA}_${I}_${Q}`, JSON.stringify(
|
|
10693
|
+
return M.ok ? k = await M.json() : console.info(`Could not fetch styles.json from ${h}`), ((I, Q, B, N, U) => {
|
|
10694
|
+
const H = (/* @__PURE__ */ new Date()).getTime(), z = { settings: B, inlineStyles: N, cssStylesText: U, cacheDate: Math.floor(H / 1e3) };
|
|
10695
|
+
localStorage.setItem(`${AA}_${I}_${Q}`, JSON.stringify(z));
|
|
10696
10696
|
})(a, f, T, k, g), { settings: T, inlineStyles: k, cssStylesText: fA(e, g) };
|
|
10697
10697
|
}, fA = (e, n) => n.split(new RegExp("(?<=})")).map((a) => {
|
|
10698
10698
|
const i = a.trim();
|
|
@@ -10763,14 +10763,14 @@ const Uu = () => {
|
|
|
10763
10763
|
return { styles: e, replaceStyles: o, updateStyles: i };
|
|
10764
10764
|
}, zp = ({ plugins: e, slots: n }) => {
|
|
10765
10765
|
var a, i;
|
|
10766
|
-
const o = Gl(), { settings: s } = ze(), { styles: f } = st(), { hasFlowStarted: A, setHasFlowStarted: u } = Ot(), { inputRef: d } = Rt(), { viewportHeight: h, viewportWidth: g, isChatWindowOpen: y } = Fn(), { goToPath: E } = Yl(), { headerButtons: T, chatInputButtons:
|
|
10766
|
+
const o = Gl(), { settings: s } = ze(), { styles: f } = st(), { hasFlowStarted: A, setHasFlowStarted: u } = Ot(), { inputRef: d } = Rt(), { viewportHeight: h, viewportWidth: g, isChatWindowOpen: y } = Fn(), { goToPath: E } = Yl(), { headerButtons: T, chatInputButtons: M, footerButtons: k } = Lp();
|
|
10767
10767
|
Fp(), ((Q) => {
|
|
10768
10768
|
const { updateSettings: B } = Od(), { updateStyles: N } = _d(), U = Q == null ? void 0 : Q.map((H) => H());
|
|
10769
10769
|
je(() => {
|
|
10770
|
-
let H = {},
|
|
10770
|
+
let H = {}, z = {};
|
|
10771
10771
|
U == null || U.forEach((Z) => {
|
|
10772
|
-
Z != null && Z.settings && Object.keys(Z == null ? void 0 : Z.settings).length !== 0 && (H = Br(Z.settings, H)), Z != null && Z.styles && Object.keys(Z == null ? void 0 : Z.styles).length !== 0 && (
|
|
10773
|
-
}), B(H), N(
|
|
10772
|
+
Z != null && Z.settings && Object.keys(Z == null ? void 0 : Z.settings).length !== 0 && (H = Br(Z.settings, H)), Z != null && Z.styles && Object.keys(Z == null ? void 0 : Z.styles).length !== 0 && (z = Br(Z.styles, z));
|
|
10773
|
+
}), B(H), N(z);
|
|
10774
10774
|
}, []);
|
|
10775
10775
|
})(e), je(() => {
|
|
10776
10776
|
var Q;
|
|
@@ -10798,17 +10798,17 @@ const Uu = () => {
|
|
|
10798
10798
|
return o || (Q = s.general) != null && Q.embedded ? (B = s.general) != null && B.embedded ? { ...f.chatWindowStyle } : { ...f.chatWindowStyle, zIndex: 1e4 } : { ...f.chatWindowStyle, borderRadius: "0px", left: "0px", right: "auto", top: "0px", bottom: "auto", width: `${g}px`, height: `${h}px`, zIndex: 1e4 };
|
|
10799
10799
|
})(), className: "rcb-chat-window", children: (() => {
|
|
10800
10800
|
var Q, B, N;
|
|
10801
|
-
const U = (n == null ? void 0 : n.chatBotHeader) || jf, H = (n == null ? void 0 : n.chatBotBody) || Zf,
|
|
10802
|
-
return dt($t, { children: [((Q = s.general) == null ? void 0 : Q.showHeader) && X(U, { buttons: T }), X(H, {}), X(Pp, {}), ((B = s.general) == null ? void 0 : B.showInputRow) && X(
|
|
10801
|
+
const U = (n == null ? void 0 : n.chatBotHeader) || jf, H = (n == null ? void 0 : n.chatBotBody) || Zf, z = (n == null ? void 0 : n.chatBotInput) || xp, Z = (n == null ? void 0 : n.chatBotFooter) || Sp;
|
|
10802
|
+
return dt($t, { children: [((Q = s.general) == null ? void 0 : Q.showHeader) && X(U, { buttons: T }), X(H, {}), X(Pp, {}), ((B = s.general) == null ? void 0 : B.showInputRow) && X(z, { buttons: M }), ((N = s.general) == null ? void 0 : N.showFooter) && X(Z, { buttons: k })] });
|
|
10803
10803
|
})() })] }) });
|
|
10804
10804
|
}, Ld = Lr(void 0), Qd = () => Qr(Ld), Fd = ({ children: e }) => {
|
|
10805
10805
|
var n;
|
|
10806
10806
|
const a = Je(""), i = Je({}), [o, s, f] = Ln({}), [A, u, d] = Ln({}), [h, g] = Ue(!1);
|
|
10807
10807
|
return je(() => {
|
|
10808
10808
|
g(!0);
|
|
10809
|
-
}, []), h ? X("div", { style: { fontFamily: (n = o.general) == null ? void 0 : n.fontFamily }, children: X(Ld.Provider, { value: { loadConfig: async (y, E, T,
|
|
10809
|
+
}, []), h ? X("div", { style: { fontFamily: (n = o.general) == null ? void 0 : n.fontFamily }, children: X(Ld.Provider, { value: { loadConfig: async (y, E, T, M, k, I) => {
|
|
10810
10810
|
a.current = y, i.current = E;
|
|
10811
|
-
const Q = await Up(y, T,
|
|
10811
|
+
const Q = await Up(y, T, M, k);
|
|
10812
10812
|
I.current && (I.current.textContent = Q.cssStylesText), s(Q.settings), u(Q.inlineStyles);
|
|
10813
10813
|
} }, children: X(Uf, { settings: o, setSyncedSettings: s, syncedSettingsRef: f, children: X(zf, { styles: A, setSyncedStyles: u, syncedStylesRef: d, children: X(wp, { children: X(Wf, { botIdRef: a, flowRef: i, children: X(Vf, { children: X(Yf, { settings: o, children: X(Jf, { children: e }) }) }) }) }) }) }) }) }) : null;
|
|
10814
10814
|
}, jp = ({ id: e, flow: n, settings: a, styles: i, themes: o, plugins: s, setConfigLoaded: f, styleRootRef: A }) => {
|
|
@@ -10844,12 +10844,12 @@ const Uu = () => {
|
|
|
10844
10844
|
window.open(n);
|
|
10845
10845
|
}, 1e3), "repeat";
|
|
10846
10846
|
} }, repeat: { transition: { duration: 3e3 }, path: "prompt_again" } }, Yp = ({ id: e, flow: n, settings: a, styles: i, themes: o, plugins: s, slots: f }) => {
|
|
10847
|
-
const A = nn(() => e || "rcb-" + Hl(), []), u = n && Object.keys(n).length !== 0 ? n : Wp, d = a || {}, h = i || {}, g = s || [], [y, E] = Ue(!1), T = Qd(),
|
|
10847
|
+
const A = nn(() => e || "rcb-" + Hl(), []), u = n && Object.keys(n).length !== 0 ? n : Wp, d = a || {}, h = i || {}, g = s || [], [y, E] = Ue(!1), T = Qd(), M = Je(null), [k, I] = Ue(o || []);
|
|
10848
10848
|
je(() => {
|
|
10849
10849
|
o && I(o);
|
|
10850
10850
|
}, [o]);
|
|
10851
|
-
const Q = () => dt($t, { children: [X(jp, { styleRootRef:
|
|
10852
|
-
return dt(T == null ? Fd : $t, { children: [X("style", { ref:
|
|
10851
|
+
const Q = () => dt($t, { children: [X(jp, { styleRootRef: M, id: A, flow: u, settings: d, styles: h, themes: k, plugins: g, setConfigLoaded: E }), y && X(zp, { plugins: s, slots: f })] });
|
|
10852
|
+
return dt(T == null ? Fd : $t, { children: [X("style", { ref: M }), X("div", { id: A, children: Q() })] });
|
|
10853
10853
|
}, Gp = () => {
|
|
10854
10854
|
const { getBotId: e } = (() => {
|
|
10855
10855
|
const { botIdRef: n } = Rt();
|
|
@@ -10994,8 +10994,8 @@ let jd = class {
|
|
|
10994
10994
|
if (i[A.inverseName] || !this.isTagAllowed(u) || !this.canRenderChild(n, d)) return;
|
|
10995
10995
|
let h = "";
|
|
10996
10996
|
for (; o && (f = A.match(o)); ) {
|
|
10997
|
-
const { index: g, length: y, match: E, valid: T, void:
|
|
10998
|
-
g > 0 && (h += o.slice(0, g)), T ? (h +=
|
|
10997
|
+
const { index: g, length: y, match: E, valid: T, void: M, ...k } = f, I = A.propName + String(s);
|
|
10998
|
+
g > 0 && (h += o.slice(0, g)), T ? (h += M ? `{{{${I}/}}}` : `{{{${I}}}}${E}{{{/${I}}}}`, this.keyIndex += 1, s += 1, a[I] = { children: E, matcher: A, props: { ...i, ...k, key: this.keyIndex } }) : h += E, A.greedy ? (o = h + o.slice(g + y), h = "") : o = o.slice(g + (y || E.length));
|
|
10999
10999
|
}
|
|
11000
11000
|
A.greedy || (o = h + o);
|
|
11001
11001
|
}), s === 0 ? e : this.replaceTokens(o, a);
|
|
@@ -11071,20 +11071,20 @@ let jd = class {
|
|
|
11071
11071
|
let T;
|
|
11072
11072
|
if (s && (!f || this.isTagAllowed(g))) {
|
|
11073
11073
|
this.keyIndex += 1;
|
|
11074
|
-
const
|
|
11074
|
+
const M = this.keyIndex;
|
|
11075
11075
|
T = this.parseNode(E, y);
|
|
11076
11076
|
const k = s(E, T, y);
|
|
11077
11077
|
if (k === null) return;
|
|
11078
|
-
if (typeof k < "u") return void A.push(Ae.cloneElement(k, { key:
|
|
11079
|
-
this.keyIndex =
|
|
11078
|
+
if (typeof k < "u") return void A.push(Ae.cloneElement(k, { key: M }));
|
|
11079
|
+
this.keyIndex = M - 1;
|
|
11080
11080
|
}
|
|
11081
11081
|
if (this.banned.has(g)) return;
|
|
11082
11082
|
if (a || i && g !== "br" || !this.isTagAllowed(g) || !o && !this.canRenderChild(n, y)) A = [...A, ...this.parseNode(E, y.tagName ? y : n)];
|
|
11083
11083
|
else {
|
|
11084
11084
|
var h;
|
|
11085
11085
|
this.keyIndex += 1;
|
|
11086
|
-
const
|
|
11087
|
-
|
|
11086
|
+
const M = this.extractAttributes(E), k = { tagName: g };
|
|
11087
|
+
M && (k.attributes = M), y.void && (k.selfClose = y.void), A.push(Ae.createElement(zd, { ...k, key: this.keyIndex }, (h = T) !== null && h !== void 0 ? h : this.parseNode(E, y)));
|
|
11088
11088
|
}
|
|
11089
11089
|
} else if (d.nodeType === 3) {
|
|
11090
11090
|
const g = a && !i ? d.textContent : this.applyMatchers(d.textContent || "", n);
|
|
@@ -11125,18 +11125,18 @@ function ih(e) {
|
|
|
11125
11125
|
return y || (y = f), g ? Ae.createElement(Ae.Fragment, null, y) : Ae.createElement(zd, { attributes: a, className: i, tagName: h }, y);
|
|
11126
11126
|
}
|
|
11127
11127
|
function ah(e) {
|
|
11128
|
-
const { attributes: n, className: a, content: i = "", disableFilters: o = !1, disableMatchers: s = !1, emptyContent: f = null, filters: A = [], matchers: u = [], onAfterParse: d = null, onBeforeParse: h = null, tagName: g = "span", noWrap: y = !1, ...E } = e, T = s ? [] : u,
|
|
11128
|
+
const { attributes: n, className: a, content: i = "", disableFilters: o = !1, disableMatchers: s = !1, emptyContent: f = null, filters: A = [], matchers: u = [], onAfterParse: d = null, onBeforeParse: h = null, tagName: g = "span", noWrap: y = !1, ...E } = e, T = s ? [] : u, M = o ? [] : A, k = h ? [h] : [], I = d ? [d] : [];
|
|
11129
11129
|
T.forEach((U) => {
|
|
11130
11130
|
U.onBeforeParse && k.push(U.onBeforeParse.bind(U)), U.onAfterParse && I.push(U.onAfterParse.bind(U));
|
|
11131
11131
|
});
|
|
11132
11132
|
const Q = k.reduce((U, H) => {
|
|
11133
|
-
const
|
|
11134
|
-
if (process.env.NODE_ENV !== "production" && typeof
|
|
11135
|
-
return
|
|
11136
|
-
}, i ?? ""), B = new jd(Q, E, T,
|
|
11137
|
-
const
|
|
11138
|
-
if (process.env.NODE_ENV !== "production" && !Array.isArray(
|
|
11139
|
-
return
|
|
11133
|
+
const z = H(U, e);
|
|
11134
|
+
if (process.env.NODE_ENV !== "production" && typeof z != "string") throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");
|
|
11135
|
+
return z;
|
|
11136
|
+
}, i ?? ""), B = new jd(Q, E, T, M), N = I.reduce((U, H) => {
|
|
11137
|
+
const z = H(U, e);
|
|
11138
|
+
if (process.env.NODE_ENV !== "production" && !Array.isArray(z)) throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");
|
|
11139
|
+
return z;
|
|
11140
11140
|
}, B.parse());
|
|
11141
11141
|
return Ae.createElement(ih, { attributes: n, className: a, containerTagName: e.containerTagName, emptyContent: f, noWrap: y, parsedContent: N.length === 0 ? void 0 : N, tagName: g });
|
|
11142
11142
|
}
|
|
@@ -11280,63 +11280,63 @@ var tu, xA, SA, Ta = {}, Eh = function() {
|
|
|
11280
11280
|
if (typeof y != "string") throw new TypeError("First argument must be a string");
|
|
11281
11281
|
if (!y) return [];
|
|
11282
11282
|
E = E || {};
|
|
11283
|
-
var T = 1,
|
|
11283
|
+
var T = 1, M = 1;
|
|
11284
11284
|
function k(W) {
|
|
11285
|
-
var
|
|
11286
|
-
|
|
11287
|
-
var
|
|
11285
|
+
var j = W.match(i);
|
|
11286
|
+
j && (T += j.length);
|
|
11287
|
+
var q = W.lastIndexOf(`
|
|
11288
11288
|
`);
|
|
11289
|
-
|
|
11289
|
+
M = ~q ? W.length - q : M + W.length;
|
|
11290
11290
|
}
|
|
11291
11291
|
function I() {
|
|
11292
|
-
var W = { line: T, column:
|
|
11293
|
-
return function(
|
|
11294
|
-
return
|
|
11292
|
+
var W = { line: T, column: M };
|
|
11293
|
+
return function(j) {
|
|
11294
|
+
return j.position = new Q(W), U(), j;
|
|
11295
11295
|
};
|
|
11296
11296
|
}
|
|
11297
11297
|
function Q(W) {
|
|
11298
|
-
this.start = W, this.end = { line: T, column:
|
|
11298
|
+
this.start = W, this.end = { line: T, column: M }, this.source = E.source;
|
|
11299
11299
|
}
|
|
11300
11300
|
function B(W) {
|
|
11301
|
-
var
|
|
11302
|
-
if (
|
|
11301
|
+
var j = new Error(E.source + ":" + T + ":" + M + ": " + W);
|
|
11302
|
+
if (j.reason = W, j.filename = E.source, j.line = T, j.column = M, j.source = y, !E.silent) throw j;
|
|
11303
11303
|
}
|
|
11304
11304
|
function N(W) {
|
|
11305
|
-
var
|
|
11306
|
-
if (
|
|
11307
|
-
var
|
|
11308
|
-
return k(
|
|
11305
|
+
var j = W.exec(y);
|
|
11306
|
+
if (j) {
|
|
11307
|
+
var q = j[0];
|
|
11308
|
+
return k(q), y = y.slice(q.length), j;
|
|
11309
11309
|
}
|
|
11310
11310
|
}
|
|
11311
11311
|
function U() {
|
|
11312
11312
|
N(o);
|
|
11313
11313
|
}
|
|
11314
11314
|
function H(W) {
|
|
11315
|
-
var
|
|
11316
|
-
for (W = W || [];
|
|
11315
|
+
var j;
|
|
11316
|
+
for (W = W || []; j = z(); ) j !== !1 && W.push(j);
|
|
11317
11317
|
return W;
|
|
11318
11318
|
}
|
|
11319
|
-
function
|
|
11319
|
+
function z() {
|
|
11320
11320
|
var W = I();
|
|
11321
11321
|
if (y.charAt(0) == "/" && y.charAt(1) == "*") {
|
|
11322
|
-
for (var
|
|
11323
|
-
if (
|
|
11324
|
-
var
|
|
11325
|
-
return
|
|
11322
|
+
for (var j = 2; h != y.charAt(j) && (y.charAt(j) != "*" || y.charAt(j + 1) != "/"); ) ++j;
|
|
11323
|
+
if (j += 2, h === y.charAt(j - 1)) return B("End of comment missing");
|
|
11324
|
+
var q = y.slice(2, j - 2);
|
|
11325
|
+
return M += 2, k(q), y = y.slice(j), M += 2, W({ type: "comment", comment: q });
|
|
11326
11326
|
}
|
|
11327
11327
|
}
|
|
11328
11328
|
function Z() {
|
|
11329
|
-
var W = I(),
|
|
11330
|
-
if (
|
|
11331
|
-
if (
|
|
11332
|
-
var
|
|
11333
|
-
return N(u),
|
|
11329
|
+
var W = I(), j = N(s);
|
|
11330
|
+
if (j) {
|
|
11331
|
+
if (z(), !N(f)) return B("property missing ':'");
|
|
11332
|
+
var q = N(A), $ = W({ type: "declaration", property: g(j[0].replace(a, h)), value: q ? g(q[0].replace(a, h)) : h });
|
|
11333
|
+
return N(u), $;
|
|
11334
11334
|
}
|
|
11335
11335
|
}
|
|
11336
11336
|
return Q.prototype.content = y, U(), function() {
|
|
11337
|
-
var W,
|
|
11338
|
-
for (H(
|
|
11339
|
-
return
|
|
11337
|
+
var W, j = [];
|
|
11338
|
+
for (H(j); W = Z(); ) W !== !1 && (j.push(W), H(j));
|
|
11339
|
+
return j;
|
|
11340
11340
|
}();
|
|
11341
11341
|
}, tu;
|
|
11342
11342
|
}());
|
|
@@ -11413,9 +11413,9 @@ function nf(e, n, a) {
|
|
|
11413
11413
|
o.tagName.toLowerCase() === "svg" && f.space === "html" && (A = ku, i.schema = A), i.ancestors.push(o);
|
|
11414
11414
|
const u = TA(i, o.tagName, !1), d = function(g, y) {
|
|
11415
11415
|
const E = {};
|
|
11416
|
-
let T,
|
|
11417
|
-
for (
|
|
11418
|
-
const k = Mh(g,
|
|
11416
|
+
let T, M;
|
|
11417
|
+
for (M in y.properties) if (M !== "children" && Vu.call(y.properties, M)) {
|
|
11418
|
+
const k = Mh(g, M, y.properties[M]);
|
|
11419
11419
|
if (k) {
|
|
11420
11420
|
const [I, Q] = k;
|
|
11421
11421
|
g.tableCellAlignToStyle && I === "align" && typeof Q == "string" && Bh.has(y.tagName) ? T = Q : E[I] = Q;
|
|
@@ -11442,22 +11442,22 @@ function nf(e, n, a) {
|
|
|
11442
11442
|
const u = o.name === null ? i.Fragment : TA(i, o.name, !0), d = function(g, y) {
|
|
11443
11443
|
const E = {};
|
|
11444
11444
|
for (const T of y.attributes) if (T.type === "mdxJsxExpressionAttribute") if (T.data && T.data.estree && g.evaluater) {
|
|
11445
|
-
const
|
|
11446
|
-
|
|
11447
|
-
const k =
|
|
11445
|
+
const M = T.data.estree.body[0];
|
|
11446
|
+
M.type;
|
|
11447
|
+
const k = M.expression;
|
|
11448
11448
|
k.type;
|
|
11449
11449
|
const I = k.properties[0];
|
|
11450
11450
|
I.type, Object.assign(E, g.evaluater.evaluateExpression(I.argument));
|
|
11451
11451
|
} else Bs(g, y.position);
|
|
11452
11452
|
else {
|
|
11453
|
-
const
|
|
11453
|
+
const M = T.name;
|
|
11454
11454
|
let k;
|
|
11455
11455
|
if (T.value && typeof T.value == "object") if (T.value.data && T.value.data.estree && g.evaluater) {
|
|
11456
11456
|
const I = T.value.data.estree.body[0];
|
|
11457
11457
|
I.type, k = g.evaluater.evaluateExpression(I.expression);
|
|
11458
11458
|
} else Bs(g, y.position);
|
|
11459
11459
|
else k = T.value === null || T.value;
|
|
11460
|
-
E[
|
|
11460
|
+
E[M] = k;
|
|
11461
11461
|
}
|
|
11462
11462
|
return E;
|
|
11463
11463
|
}(i, o), h = ru(i, o);
|
|
@@ -11733,9 +11733,9 @@ const Yh = { tokenize: function(e) {
|
|
|
11733
11733
|
break;
|
|
11734
11734
|
}
|
|
11735
11735
|
I(f);
|
|
11736
|
-
let
|
|
11737
|
-
for (;
|
|
11738
|
-
return _r(n.events, H + 1, 0, n.events.slice(N)), n.events.length =
|
|
11736
|
+
let z = N;
|
|
11737
|
+
for (; z < n.events.length; ) n.events[z][1].end = { ...U }, z++;
|
|
11738
|
+
return _r(n.events, H + 1, 0, n.events.slice(N)), n.events.length = z, d(B);
|
|
11739
11739
|
}
|
|
11740
11740
|
return A(B);
|
|
11741
11741
|
}
|
|
@@ -11760,27 +11760,27 @@ const Yh = { tokenize: function(e) {
|
|
|
11760
11760
|
return f++, a.push([n.currentConstruct, n.containerState]), y(B);
|
|
11761
11761
|
}
|
|
11762
11762
|
function T(B) {
|
|
11763
|
-
return B === null ? (i && Q(), I(0), void e.consume(B)) : (i = i || n.parser.flow(n.now()), e.enter("chunkFlow", { _tokenizer: i, contentType: "flow", previous: o }),
|
|
11763
|
+
return B === null ? (i && Q(), I(0), void e.consume(B)) : (i = i || n.parser.flow(n.now()), e.enter("chunkFlow", { _tokenizer: i, contentType: "flow", previous: o }), M(B));
|
|
11764
11764
|
}
|
|
11765
|
-
function
|
|
11766
|
-
return B === null ? (k(e.exit("chunkFlow"), !0), I(0), void e.consume(B)) : Me(B) ? (e.consume(B), k(e.exit("chunkFlow")), f = 0, n.interrupt = void 0, A) : (e.consume(B),
|
|
11765
|
+
function M(B) {
|
|
11766
|
+
return B === null ? (k(e.exit("chunkFlow"), !0), I(0), void e.consume(B)) : Me(B) ? (e.consume(B), k(e.exit("chunkFlow")), f = 0, n.interrupt = void 0, A) : (e.consume(B), M);
|
|
11767
11767
|
}
|
|
11768
11768
|
function k(B, N) {
|
|
11769
11769
|
const U = n.sliceStream(B);
|
|
11770
11770
|
if (N && U.push(null), B.previous = o, o && (o.next = B), o = B, i.defineSkip(B.start), i.write(U), n.parser.lazy[B.start.line]) {
|
|
11771
11771
|
let H = i.events.length;
|
|
11772
11772
|
for (; H--; ) if (i.events[H][1].start.offset < s && (!i.events[H][1].end || i.events[H][1].end.offset > s)) return;
|
|
11773
|
-
const
|
|
11774
|
-
let Z, W,
|
|
11775
|
-
for (;
|
|
11773
|
+
const z = n.events.length;
|
|
11774
|
+
let Z, W, j = z;
|
|
11775
|
+
for (; j--; ) if (n.events[j][0] === "exit" && n.events[j][1].type === "chunkFlow") {
|
|
11776
11776
|
if (Z) {
|
|
11777
|
-
W = n.events[
|
|
11777
|
+
W = n.events[j][1].end;
|
|
11778
11778
|
break;
|
|
11779
11779
|
}
|
|
11780
11780
|
Z = !0;
|
|
11781
11781
|
}
|
|
11782
|
-
for (I(f), H =
|
|
11783
|
-
_r(n.events,
|
|
11782
|
+
for (I(f), H = z; H < n.events.length; ) n.events[H][1].end = { ...W }, H++;
|
|
11783
|
+
_r(n.events, j + 1, 0, n.events.slice(z)), n.events.length = H;
|
|
11784
11784
|
}
|
|
11785
11785
|
}
|
|
11786
11786
|
function I(B) {
|
|
@@ -11936,21 +11936,21 @@ const Vh = { name: "autolink", tokenize: function(e, n, a) {
|
|
|
11936
11936
|
} }, LA = { concrete: !0, name: "codeFenced", tokenize: function(e, n, a) {
|
|
11937
11937
|
const i = this, o = { partial: !0, tokenize: function(B, N, U) {
|
|
11938
11938
|
let H = 0;
|
|
11939
|
-
return
|
|
11940
|
-
function
|
|
11941
|
-
return B.enter("lineEnding"), B.consume(
|
|
11939
|
+
return z;
|
|
11940
|
+
function z($) {
|
|
11941
|
+
return B.enter("lineEnding"), B.consume($), B.exit("lineEnding"), Z;
|
|
11942
11942
|
}
|
|
11943
|
-
function Z(
|
|
11944
|
-
return B.enter("codeFencedFence"), $e(
|
|
11943
|
+
function Z($) {
|
|
11944
|
+
return B.enter("codeFencedFence"), $e($) ? gt(B, W, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)($) : W($);
|
|
11945
11945
|
}
|
|
11946
|
-
function W(
|
|
11947
|
-
return
|
|
11946
|
+
function W($) {
|
|
11947
|
+
return $ === s ? (B.enter("codeFencedFenceSequence"), j($)) : U($);
|
|
11948
11948
|
}
|
|
11949
|
-
function
|
|
11950
|
-
return
|
|
11949
|
+
function j($) {
|
|
11950
|
+
return $ === s ? (H++, B.consume($), j) : H >= A ? (B.exit("codeFencedFenceSequence"), $e($) ? gt(B, q, "whitespace")($) : q($)) : U($);
|
|
11951
11951
|
}
|
|
11952
|
-
function $
|
|
11953
|
-
return
|
|
11952
|
+
function q($) {
|
|
11953
|
+
return $ === null || Me($) ? (B.exit("codeFencedFence"), N($)) : U($);
|
|
11954
11954
|
}
|
|
11955
11955
|
} };
|
|
11956
11956
|
let s, f = 0, A = 0;
|
|
@@ -11979,9 +11979,9 @@ const Vh = { name: "autolink", tokenize: function(e, n, a) {
|
|
|
11979
11979
|
return e.attempt(o, Q, T)(B);
|
|
11980
11980
|
}
|
|
11981
11981
|
function T(B) {
|
|
11982
|
-
return e.enter("lineEnding"), e.consume(B), e.exit("lineEnding"),
|
|
11982
|
+
return e.enter("lineEnding"), e.consume(B), e.exit("lineEnding"), M;
|
|
11983
11983
|
}
|
|
11984
|
-
function
|
|
11984
|
+
function M(B) {
|
|
11985
11985
|
return f > 0 && $e(B) ? gt(e, k, "linePrefix", f + 1)(B) : k(B);
|
|
11986
11986
|
}
|
|
11987
11987
|
function k(B) {
|
|
@@ -12125,13 +12125,13 @@ function qh(e, n) {
|
|
|
12125
12125
|
const a = e.get(n)[1], i = e.get(n)[2];
|
|
12126
12126
|
let o = n - 1;
|
|
12127
12127
|
const s = [], f = a._tokenizer || i.parser[a.contentType](a.start), A = f.events, u = [], d = {};
|
|
12128
|
-
let h, g, y = -1, E = a, T = 0,
|
|
12129
|
-
const k = [
|
|
12128
|
+
let h, g, y = -1, E = a, T = 0, M = 0;
|
|
12129
|
+
const k = [M];
|
|
12130
12130
|
for (; E; ) {
|
|
12131
12131
|
for (; e.get(++o)[1] !== E; ) ;
|
|
12132
12132
|
s.push(o), E._tokenizer || (h = i.sliceStream(E), E.next || h.push(null), g && f.defineSkip(E.start), E._isInFirstContentOfListItem && (f._gfmTasklistFirstContentOfListItem = !0), f.write(h), E._isInFirstContentOfListItem && (f._gfmTasklistFirstContentOfListItem = void 0)), g = E, E = E.next;
|
|
12133
12133
|
}
|
|
12134
|
-
for (E = a; ++y < A.length; ) A[y][0] === "exit" && A[y - 1][0] === "enter" && A[y][1].type === A[y - 1][1].type && A[y][1].start.line !== A[y][1].end.line && (
|
|
12134
|
+
for (E = a; ++y < A.length; ) A[y][0] === "exit" && A[y - 1][0] === "enter" && A[y][1].type === A[y - 1][1].type && A[y][1].start.line !== A[y][1].end.line && (M = y + 1, k.push(M), E._tokenizer = void 0, E.previous = void 0, E = E.next);
|
|
12135
12135
|
for (f.events = [], E ? (E._tokenizer = void 0, E.previous = void 0) : k.pop(), y = k.length; y--; ) {
|
|
12136
12136
|
const I = A.slice(k[y], k[y + 1]), Q = s.pop();
|
|
12137
12137
|
u.push([Q, Q + I.length - 1]), e.splice(Q, 2, I);
|
|
@@ -12182,9 +12182,9 @@ function uf(e, n, a, i, o, s, f, A, u) {
|
|
|
12182
12182
|
return k === 60 || k === 62 || k === 92 ? (e.consume(k), y) : y(k);
|
|
12183
12183
|
}
|
|
12184
12184
|
function T(k) {
|
|
12185
|
-
return h || k !== null && k !== 41 && !En(k) ? h < d && k === 40 ? (e.consume(k), h++, T) : k === 41 ? (e.consume(k), h--, T) : k === null || k === 32 || k === 40 || Cu(k) ? a(k) : (e.consume(k), k === 92 ?
|
|
12185
|
+
return h || k !== null && k !== 41 && !En(k) ? h < d && k === 40 ? (e.consume(k), h++, T) : k === 41 ? (e.consume(k), h--, T) : k === null || k === 32 || k === 40 || Cu(k) ? a(k) : (e.consume(k), k === 92 ? M : T) : (e.exit("chunkString"), e.exit(A), e.exit(f), e.exit(i), n(k));
|
|
12186
12186
|
}
|
|
12187
|
-
function
|
|
12187
|
+
function M(k) {
|
|
12188
12188
|
return k === 40 || k === 41 || k === 92 ? (e.consume(k), T) : T(k);
|
|
12189
12189
|
}
|
|
12190
12190
|
}
|
|
@@ -12318,7 +12318,7 @@ const eg = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12318
12318
|
return L === 45 ? (e.consume(L), i.interrupt ? n : me) : a(L);
|
|
12319
12319
|
}
|
|
12320
12320
|
function y(L) {
|
|
12321
|
-
return L === "CDATA[".charCodeAt(A++) ? (e.consume(L), A === 6 ? i.interrupt ? n :
|
|
12321
|
+
return L === "CDATA[".charCodeAt(A++) ? (e.consume(L), A === 6 ? i.interrupt ? n : j : y) : a(L);
|
|
12322
12322
|
}
|
|
12323
12323
|
function E(L) {
|
|
12324
12324
|
return Mr(L) ? (e.consume(L), f = String.fromCharCode(L), T) : a(L);
|
|
@@ -12326,12 +12326,12 @@ const eg = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12326
12326
|
function T(L) {
|
|
12327
12327
|
if (L === null || L === 47 || L === 62 || En(L)) {
|
|
12328
12328
|
const ve = L === 47, fe = f.toLowerCase();
|
|
12329
|
-
return ve || s || !QA.includes(fe) ? og.includes(f.toLowerCase()) ? (o = 6, ve ? (e.consume(L),
|
|
12329
|
+
return ve || s || !QA.includes(fe) ? og.includes(f.toLowerCase()) ? (o = 6, ve ? (e.consume(L), M) : i.interrupt ? n(L) : j(L)) : (o = 7, i.interrupt && !i.parser.lazy[i.now().line] ? a(L) : s ? k(L) : I(L)) : (o = 1, i.interrupt ? n(L) : j(L));
|
|
12330
12330
|
}
|
|
12331
12331
|
return L === 45 || Qn(L) ? (e.consume(L), f += String.fromCharCode(L), T) : a(L);
|
|
12332
12332
|
}
|
|
12333
|
-
function
|
|
12334
|
-
return L === 62 ? (e.consume(L), i.interrupt ? n :
|
|
12333
|
+
function M(L) {
|
|
12334
|
+
return L === 62 ? (e.consume(L), i.interrupt ? n : j) : a(L);
|
|
12335
12335
|
}
|
|
12336
12336
|
function k(L) {
|
|
12337
12337
|
return $e(L) ? (e.consume(L), k) : Z(L);
|
|
@@ -12349,50 +12349,50 @@ const eg = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12349
12349
|
return L === null || L === 60 || L === 61 || L === 62 || L === 96 ? a(L) : L === 34 || L === 39 ? (e.consume(L), u = L, U) : $e(L) ? (e.consume(L), N) : H(L);
|
|
12350
12350
|
}
|
|
12351
12351
|
function U(L) {
|
|
12352
|
-
return L === u ? (e.consume(L), u = null,
|
|
12352
|
+
return L === u ? (e.consume(L), u = null, z) : L === null || Me(L) ? a(L) : (e.consume(L), U);
|
|
12353
12353
|
}
|
|
12354
12354
|
function H(L) {
|
|
12355
12355
|
return L === null || L === 34 || L === 39 || L === 47 || L === 60 || L === 61 || L === 62 || L === 96 || En(L) ? B(L) : (e.consume(L), H);
|
|
12356
12356
|
}
|
|
12357
|
-
function
|
|
12357
|
+
function z(L) {
|
|
12358
12358
|
return L === 47 || L === 62 || $e(L) ? I(L) : a(L);
|
|
12359
12359
|
}
|
|
12360
12360
|
function Z(L) {
|
|
12361
12361
|
return L === 62 ? (e.consume(L), W) : a(L);
|
|
12362
12362
|
}
|
|
12363
12363
|
function W(L) {
|
|
12364
|
-
return L === null || Me(L) ?
|
|
12364
|
+
return L === null || Me(L) ? j(L) : $e(L) ? (e.consume(L), W) : a(L);
|
|
12365
12365
|
}
|
|
12366
|
-
function
|
|
12367
|
-
return L === 45 && o === 2 ? (e.consume(L), se) : L === 60 && o === 1 ? (e.consume(L), le) : L === 62 && o === 4 ? (e.consume(L), _) : L === 63 && o === 3 ? (e.consume(L), me) : L === 93 && o === 5 ? (e.consume(L), ge) : !Me(L) || o !== 6 && o !== 7 ? L === null || Me(L) ? (e.exit("htmlFlowData"),
|
|
12368
|
-
}
|
|
12369
|
-
function $(L) {
|
|
12370
|
-
return e.check(sg, q, Be)(L);
|
|
12366
|
+
function j(L) {
|
|
12367
|
+
return L === 45 && o === 2 ? (e.consume(L), se) : L === 60 && o === 1 ? (e.consume(L), le) : L === 62 && o === 4 ? (e.consume(L), _) : L === 63 && o === 3 ? (e.consume(L), me) : L === 93 && o === 5 ? (e.consume(L), ge) : !Me(L) || o !== 6 && o !== 7 ? L === null || Me(L) ? (e.exit("htmlFlowData"), q(L)) : (e.consume(L), j) : (e.exit("htmlFlowData"), e.check(ag, Be, q)(L));
|
|
12371
12368
|
}
|
|
12372
12369
|
function q(L) {
|
|
12373
|
-
return e.
|
|
12370
|
+
return e.check(sg, $, Be)(L);
|
|
12371
|
+
}
|
|
12372
|
+
function $(L) {
|
|
12373
|
+
return e.enter("lineEnding"), e.consume(L), e.exit("lineEnding"), ie;
|
|
12374
12374
|
}
|
|
12375
|
-
function
|
|
12376
|
-
return L === null || Me(L) ?
|
|
12375
|
+
function ie(L) {
|
|
12376
|
+
return L === null || Me(L) ? q(L) : (e.enter("htmlFlowData"), j(L));
|
|
12377
12377
|
}
|
|
12378
12378
|
function se(L) {
|
|
12379
|
-
return L === 45 ? (e.consume(L), me) :
|
|
12379
|
+
return L === 45 ? (e.consume(L), me) : j(L);
|
|
12380
12380
|
}
|
|
12381
12381
|
function le(L) {
|
|
12382
|
-
return L === 47 ? (e.consume(L), f = "", be) :
|
|
12382
|
+
return L === 47 ? (e.consume(L), f = "", be) : j(L);
|
|
12383
12383
|
}
|
|
12384
12384
|
function be(L) {
|
|
12385
12385
|
if (L === 62) {
|
|
12386
12386
|
const ve = f.toLowerCase();
|
|
12387
|
-
return QA.includes(ve) ? (e.consume(L), _) :
|
|
12387
|
+
return QA.includes(ve) ? (e.consume(L), _) : j(L);
|
|
12388
12388
|
}
|
|
12389
|
-
return Mr(L) && f.length < 8 ? (e.consume(L), f += String.fromCharCode(L), be) :
|
|
12389
|
+
return Mr(L) && f.length < 8 ? (e.consume(L), f += String.fromCharCode(L), be) : j(L);
|
|
12390
12390
|
}
|
|
12391
12391
|
function ge(L) {
|
|
12392
|
-
return L === 93 ? (e.consume(L), me) :
|
|
12392
|
+
return L === 93 ? (e.consume(L), me) : j(L);
|
|
12393
12393
|
}
|
|
12394
12394
|
function me(L) {
|
|
12395
|
-
return L === 62 ? (e.consume(L), _) : L === 45 && o === 2 ? (e.consume(L), me) :
|
|
12395
|
+
return L === 62 ? (e.consume(L), _) : L === 45 && o === 2 ? (e.consume(L), me) : j(L);
|
|
12396
12396
|
}
|
|
12397
12397
|
function _(L) {
|
|
12398
12398
|
return L === null || Me(L) ? (e.exit("htmlFlowData"), Be(L)) : (e.consume(L), _);
|
|
@@ -12419,7 +12419,7 @@ const eg = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12419
12419
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(_), A;
|
|
12420
12420
|
};
|
|
12421
12421
|
function A(_) {
|
|
12422
|
-
return _ === 33 ? (e.consume(_), u) : _ === 47 ? (e.consume(_), N) : _ === 63 ? (e.consume(_), Q) : Mr(_) ? (e.consume(_),
|
|
12422
|
+
return _ === 33 ? (e.consume(_), u) : _ === 47 ? (e.consume(_), N) : _ === 63 ? (e.consume(_), Q) : Mr(_) ? (e.consume(_), z) : a(_);
|
|
12423
12423
|
}
|
|
12424
12424
|
function u(_) {
|
|
12425
12425
|
return _ === 45 ? (e.consume(_), d) : _ === 91 ? (e.consume(_), s = 0, E) : Mr(_) ? (e.consume(_), I) : a(_);
|
|
@@ -12440,9 +12440,9 @@ const eg = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12440
12440
|
return _ === "CDATA[".charCodeAt(s++) ? (e.consume(_), s === 6 ? T : E) : a(_);
|
|
12441
12441
|
}
|
|
12442
12442
|
function T(_) {
|
|
12443
|
-
return _ === null ? a(_) : _ === 93 ? (e.consume(_),
|
|
12443
|
+
return _ === null ? a(_) : _ === 93 ? (e.consume(_), M) : Me(_) ? (f = T, be(_)) : (e.consume(_), T);
|
|
12444
12444
|
}
|
|
12445
|
-
function
|
|
12445
|
+
function M(_) {
|
|
12446
12446
|
return _ === 93 ? (e.consume(_), k) : T(_);
|
|
12447
12447
|
}
|
|
12448
12448
|
function k(_) {
|
|
@@ -12466,26 +12466,26 @@ const eg = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12466
12466
|
function H(_) {
|
|
12467
12467
|
return Me(_) ? (f = H, be(_)) : $e(_) ? (e.consume(_), H) : le(_);
|
|
12468
12468
|
}
|
|
12469
|
-
function
|
|
12470
|
-
return _ === 45 || Qn(_) ? (e.consume(_),
|
|
12469
|
+
function z(_) {
|
|
12470
|
+
return _ === 45 || Qn(_) ? (e.consume(_), z) : _ === 47 || _ === 62 || En(_) ? Z(_) : a(_);
|
|
12471
12471
|
}
|
|
12472
12472
|
function Z(_) {
|
|
12473
12473
|
return _ === 47 ? (e.consume(_), le) : _ === 58 || _ === 95 || Mr(_) ? (e.consume(_), W) : Me(_) ? (f = Z, be(_)) : $e(_) ? (e.consume(_), Z) : le(_);
|
|
12474
12474
|
}
|
|
12475
12475
|
function W(_) {
|
|
12476
|
-
return _ === 45 || _ === 46 || _ === 58 || _ === 95 || Qn(_) ? (e.consume(_), W) :
|
|
12477
|
-
}
|
|
12478
|
-
function z(_) {
|
|
12479
|
-
return _ === 61 ? (e.consume(_), $) : Me(_) ? (f = z, be(_)) : $e(_) ? (e.consume(_), z) : Z(_);
|
|
12476
|
+
return _ === 45 || _ === 46 || _ === 58 || _ === 95 || Qn(_) ? (e.consume(_), W) : j(_);
|
|
12480
12477
|
}
|
|
12481
|
-
function
|
|
12482
|
-
return _ ===
|
|
12478
|
+
function j(_) {
|
|
12479
|
+
return _ === 61 ? (e.consume(_), q) : Me(_) ? (f = j, be(_)) : $e(_) ? (e.consume(_), j) : Z(_);
|
|
12483
12480
|
}
|
|
12484
12481
|
function q(_) {
|
|
12485
|
-
return _ ===
|
|
12482
|
+
return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? a(_) : _ === 34 || _ === 39 ? (e.consume(_), o = _, $) : Me(_) ? (f = q, be(_)) : $e(_) ? (e.consume(_), q) : (e.consume(_), ie);
|
|
12486
12483
|
}
|
|
12487
|
-
function
|
|
12488
|
-
return _ ===
|
|
12484
|
+
function $(_) {
|
|
12485
|
+
return _ === o ? (e.consume(_), o = void 0, se) : _ === null ? a(_) : Me(_) ? (f = $, be(_)) : (e.consume(_), $);
|
|
12486
|
+
}
|
|
12487
|
+
function ie(_) {
|
|
12488
|
+
return _ === null || _ === 34 || _ === 39 || _ === 60 || _ === 61 || _ === 96 ? a(_) : _ === 47 || _ === 62 || En(_) ? Z(_) : (e.consume(_), ie);
|
|
12489
12489
|
}
|
|
12490
12490
|
function se(_) {
|
|
12491
12491
|
return _ === 47 || _ === 62 || En(_) ? Z(_) : a(_);
|
|
@@ -12780,9 +12780,9 @@ function Dg(e, n, a) {
|
|
|
12780
12780
|
let i = { _bufferIndex: -1, _index: 0, line: a && a.line || 1, column: a && a.column || 1, offset: a && a.offset || 0 };
|
|
12781
12781
|
const o = {}, s = [];
|
|
12782
12782
|
let f = [], A = [];
|
|
12783
|
-
const u = { attempt:
|
|
12783
|
+
const u = { attempt: M(function(Q, B) {
|
|
12784
12784
|
k(Q, B.from);
|
|
12785
|
-
}), check:
|
|
12785
|
+
}), check: M(T), consume: function(Q) {
|
|
12786
12786
|
Me(Q) ? (i.line++, i.column = 1, i.offset += Q === -3 ? 2 : 1, I()) : Q !== -1 && (i.column++, i.offset++), i._bufferIndex < 0 ? i._index++ : (i._bufferIndex++, i._bufferIndex === f[i._index].length && (i._bufferIndex = -1, i._index++)), d.previous = Q;
|
|
12787
12787
|
}, enter: function(Q, B) {
|
|
12788
12788
|
const N = B || {};
|
|
@@ -12790,42 +12790,42 @@ function Dg(e, n, a) {
|
|
|
12790
12790
|
}, exit: function(Q) {
|
|
12791
12791
|
const B = A.pop();
|
|
12792
12792
|
return B.end = y(), d.events.push(["exit", B, d]), B;
|
|
12793
|
-
}, interrupt:
|
|
12793
|
+
}, interrupt: M(T, { interrupt: !0 }) }, d = { code: null, containerState: {}, defineSkip: function(Q) {
|
|
12794
12794
|
o[Q.line] = Q.column, I();
|
|
12795
12795
|
}, events: [], now: y, parser: e, previous: null, sliceSerialize: function(Q, B) {
|
|
12796
12796
|
return function(N, U) {
|
|
12797
12797
|
let H = -1;
|
|
12798
|
-
const
|
|
12798
|
+
const z = [];
|
|
12799
12799
|
let Z;
|
|
12800
12800
|
for (; ++H < N.length; ) {
|
|
12801
12801
|
const W = N[H];
|
|
12802
|
-
let
|
|
12803
|
-
if (typeof W == "string")
|
|
12802
|
+
let j;
|
|
12803
|
+
if (typeof W == "string") j = W;
|
|
12804
12804
|
else switch (W) {
|
|
12805
12805
|
case -5:
|
|
12806
|
-
|
|
12806
|
+
j = "\r";
|
|
12807
12807
|
break;
|
|
12808
12808
|
case -4:
|
|
12809
|
-
|
|
12809
|
+
j = `
|
|
12810
12810
|
`;
|
|
12811
12811
|
break;
|
|
12812
12812
|
case -3:
|
|
12813
|
-
|
|
12813
|
+
j = `\r
|
|
12814
12814
|
`;
|
|
12815
12815
|
break;
|
|
12816
12816
|
case -2:
|
|
12817
|
-
|
|
12817
|
+
j = U ? " " : " ";
|
|
12818
12818
|
break;
|
|
12819
12819
|
case -1:
|
|
12820
12820
|
if (!U && Z) continue;
|
|
12821
|
-
|
|
12821
|
+
j = " ";
|
|
12822
12822
|
break;
|
|
12823
12823
|
default:
|
|
12824
|
-
|
|
12824
|
+
j = String.fromCharCode(W);
|
|
12825
12825
|
}
|
|
12826
|
-
Z = W === -2,
|
|
12826
|
+
Z = W === -2, z.push(j);
|
|
12827
12827
|
}
|
|
12828
|
-
return
|
|
12828
|
+
return z.join("");
|
|
12829
12829
|
}(g(Q), B);
|
|
12830
12830
|
}, sliceStream: g, write: function(Q) {
|
|
12831
12831
|
return f = Zn(f, Q), function() {
|
|
@@ -12841,15 +12841,15 @@ function Dg(e, n, a) {
|
|
|
12841
12841
|
return n.resolveAll && s.push(n), d;
|
|
12842
12842
|
function g(Q) {
|
|
12843
12843
|
return function(B, N) {
|
|
12844
|
-
const U = N.start._index, H = N.start._bufferIndex,
|
|
12844
|
+
const U = N.start._index, H = N.start._bufferIndex, z = N.end._index, Z = N.end._bufferIndex;
|
|
12845
12845
|
let W;
|
|
12846
|
-
if (U ===
|
|
12846
|
+
if (U === z) W = [B[U].slice(H, Z)];
|
|
12847
12847
|
else {
|
|
12848
|
-
if (W = B.slice(U,
|
|
12849
|
-
const
|
|
12850
|
-
typeof
|
|
12848
|
+
if (W = B.slice(U, z), H > -1) {
|
|
12849
|
+
const j = W[0];
|
|
12850
|
+
typeof j == "string" ? W[0] = j.slice(H) : W.shift();
|
|
12851
12851
|
}
|
|
12852
|
-
Z > 0 && W.push(B[
|
|
12852
|
+
Z > 0 && W.push(B[z].slice(0, Z));
|
|
12853
12853
|
}
|
|
12854
12854
|
return W;
|
|
12855
12855
|
}(f, Q);
|
|
@@ -12864,35 +12864,35 @@ function Dg(e, n, a) {
|
|
|
12864
12864
|
function T(Q, B) {
|
|
12865
12865
|
B.restore();
|
|
12866
12866
|
}
|
|
12867
|
-
function
|
|
12867
|
+
function M(Q, B) {
|
|
12868
12868
|
return function(N, U, H) {
|
|
12869
|
-
let
|
|
12870
|
-
return Array.isArray(N) ?
|
|
12869
|
+
let z, Z, W, j;
|
|
12870
|
+
return Array.isArray(N) ? q(N) : "tokenize" in N ? q([N]) : /* @__PURE__ */ function(le) {
|
|
12871
12871
|
return be;
|
|
12872
12872
|
function be(ge) {
|
|
12873
12873
|
const me = ge !== null && le[ge], _ = ge !== null && le.null;
|
|
12874
|
-
return
|
|
12874
|
+
return q([...Array.isArray(me) ? me : me ? [me] : [], ...Array.isArray(_) ? _ : _ ? [_] : []])(ge);
|
|
12875
12875
|
}
|
|
12876
12876
|
}(N);
|
|
12877
|
-
function $(le) {
|
|
12878
|
-
return j = le, Z = 0, le.length === 0 ? H : q(le[Z]);
|
|
12879
|
-
}
|
|
12880
12877
|
function q(le) {
|
|
12878
|
+
return z = le, Z = 0, le.length === 0 ? H : $(le[Z]);
|
|
12879
|
+
}
|
|
12880
|
+
function $(le) {
|
|
12881
12881
|
return function(be) {
|
|
12882
|
-
return
|
|
12882
|
+
return j = function() {
|
|
12883
12883
|
const ge = y(), me = d.previous, _ = d.currentConstruct, Be = d.events.length, L = Array.from(A);
|
|
12884
12884
|
return { from: Be, restore: ve };
|
|
12885
12885
|
function ve() {
|
|
12886
12886
|
i = ge, d.previous = me, d.currentConstruct = _, d.events.length = Be, A = L, I();
|
|
12887
12887
|
}
|
|
12888
|
-
}(), W = le, le.partial || (d.currentConstruct = le), le.name && d.parser.constructs.disable.null.includes(le.name) ? se() : le.tokenize.call(B ? Object.assign(Object.create(d), B) : d, u,
|
|
12888
|
+
}(), W = le, le.partial || (d.currentConstruct = le), le.name && d.parser.constructs.disable.null.includes(le.name) ? se() : le.tokenize.call(B ? Object.assign(Object.create(d), B) : d, u, ie, se)(be);
|
|
12889
12889
|
};
|
|
12890
12890
|
}
|
|
12891
|
-
function
|
|
12892
|
-
return Q(W,
|
|
12891
|
+
function ie(le) {
|
|
12892
|
+
return Q(W, j), U;
|
|
12893
12893
|
}
|
|
12894
12894
|
function se(le) {
|
|
12895
|
-
return
|
|
12895
|
+
return j.restore(), ++Z < z.length ? $(z[Z]) : H;
|
|
12896
12896
|
}
|
|
12897
12897
|
};
|
|
12898
12898
|
}
|
|
@@ -12915,7 +12915,7 @@ function Bg(e, n, a) {
|
|
|
12915
12915
|
const hf = {}.hasOwnProperty;
|
|
12916
12916
|
function Rg(e, n, a) {
|
|
12917
12917
|
return typeof n != "string" && (a = n, n = void 0), function(i) {
|
|
12918
|
-
const o = { transforms: [], canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"], enter: { autolink: u(lt), autolinkProtocol:
|
|
12918
|
+
const o = { transforms: [], canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"], enter: { autolink: u(lt), autolinkProtocol: $, autolinkEmail: $, atxHeading: u(vt), blockQuote: u(Ze), characterEscape: $, characterReference: $, codeFenced: u(et), codeFencedFenceInfo: d, codeFencedFenceMeta: d, codeIndented: u(et, d), codeText: u(mt, d), codeTextData: $, data: $, codeFlowValue: $, definition: u(St), definitionDestinationString: d, definitionLabelString: d, definitionTitleString: d, emphasis: u(Pn), hardBreakEscape: u(Et), hardBreakTrailing: u(Et), htmlFlow: u(tt, d), htmlFlowData: $, htmlText: u(tt, d), htmlTextData: $, image: u(Tt), label: d, link: u(lt), listItem: u(ct), listItemValue: M, listOrdered: u(ft, T), listUnordered: u(ft), paragraph: u(rn), reference: ye, referenceString: d, resourceDestinationString: d, resourceTitleString: d, setextHeading: u(vt), strong: u(Tn), thematicBreak: u(nt) }, exit: { atxHeading: g(), atxHeadingSequence: Z, autolink: g(), autolinkEmail: _t, autolinkProtocol: qe, blockQuote: g(), characterEscapeValue: ie, characterReferenceMarkerHexadecimal: Qe, characterReferenceMarkerNumeric: Qe, characterReferenceValue: Oe, characterReference: We, codeFenced: g(B), codeFencedFence: Q, codeFencedFenceInfo: k, codeFencedFenceMeta: I, codeFlowValue: ie, codeIndented: g(N), codeText: g(me), codeTextData: ie, data: ie, definition: g(), definitionDestinationString: z, definitionLabelString: U, definitionTitleString: H, emphasis: g(), hardBreakEscape: g(le), hardBreakTrailing: g(le), htmlFlow: g(be), htmlFlowData: ie, htmlText: g(ge), htmlTextData: ie, image: g(Be), label: ve, labelText: L, lineEnding: se, link: g(_), listItem: g(), listOrdered: g(), listUnordered: g(), paragraph: g(), referenceString: Ie, resourceDestinationString: fe, resourceTitleString: ae, resource: he, setextHeading: g(q), setextHeadingLineSequence: j, setextHeadingText: W, strong: g(), thematicBreak: g() } };
|
|
12919
12919
|
gf(o, (i || {}).mdastExtensions || []);
|
|
12920
12920
|
const s = {};
|
|
12921
12921
|
return f;
|
|
@@ -13008,7 +13008,7 @@ function Rg(e, n, a) {
|
|
|
13008
13008
|
function T() {
|
|
13009
13009
|
this.data.expectingFirstListItemValue = !0;
|
|
13010
13010
|
}
|
|
13011
|
-
function
|
|
13011
|
+
function M(te) {
|
|
13012
13012
|
this.data.expectingFirstListItemValue && (this.stack[this.stack.length - 2].start = Number.parseInt(this.sliceSerialize(te), 10), this.data.expectingFirstListItemValue = void 0);
|
|
13013
13013
|
}
|
|
13014
13014
|
function k() {
|
|
@@ -13038,7 +13038,7 @@ function Rg(e, n, a) {
|
|
|
13038
13038
|
const te = this.resume();
|
|
13039
13039
|
this.stack[this.stack.length - 1].title = te;
|
|
13040
13040
|
}
|
|
13041
|
-
function
|
|
13041
|
+
function z() {
|
|
13042
13042
|
const te = this.resume();
|
|
13043
13043
|
this.stack[this.stack.length - 1].url = te;
|
|
13044
13044
|
}
|
|
@@ -13052,18 +13052,18 @@ function Rg(e, n, a) {
|
|
|
13052
13052
|
function W() {
|
|
13053
13053
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
13054
13054
|
}
|
|
13055
|
-
function
|
|
13055
|
+
function j(te) {
|
|
13056
13056
|
this.stack[this.stack.length - 1].depth = this.sliceSerialize(te).codePointAt(0) === 61 ? 1 : 2;
|
|
13057
13057
|
}
|
|
13058
|
-
function
|
|
13058
|
+
function q() {
|
|
13059
13059
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
13060
13060
|
}
|
|
13061
|
-
function
|
|
13061
|
+
function $(te) {
|
|
13062
13062
|
const we = this.stack[this.stack.length - 1].children;
|
|
13063
13063
|
let Ee = we[we.length - 1];
|
|
13064
13064
|
(!Ee || Ee.type !== "text") && (Ee = zt(), Ee.position = { start: Mo(te.start), end: void 0 }, we.push(Ee)), this.stack.push(Ee);
|
|
13065
13065
|
}
|
|
13066
|
-
function
|
|
13066
|
+
function ie(te) {
|
|
13067
13067
|
const we = this.stack.pop();
|
|
13068
13068
|
we.value += this.sliceSerialize(te), we.position.end = Mo(te.end);
|
|
13069
13069
|
}
|
|
@@ -13071,7 +13071,7 @@ function Rg(e, n, a) {
|
|
|
13071
13071
|
const we = this.stack[this.stack.length - 1];
|
|
13072
13072
|
if (this.data.atHardBreak)
|
|
13073
13073
|
return we.children[we.children.length - 1].position.end = Mo(te.end), void (this.data.atHardBreak = void 0);
|
|
13074
|
-
!this.data.setextHeadingSlurpLineEnding && o.canContainEols.includes(we.type) && (
|
|
13074
|
+
!this.data.setextHeadingSlurpLineEnding && o.canContainEols.includes(we.type) && ($.call(this, te), ie.call(this, te));
|
|
13075
13075
|
}
|
|
13076
13076
|
function le() {
|
|
13077
13077
|
this.data.atHardBreak = !0;
|
|
@@ -13121,7 +13121,7 @@ function Rg(e, n, a) {
|
|
|
13121
13121
|
const te = this.resume();
|
|
13122
13122
|
this.stack[this.stack.length - 1].url = te;
|
|
13123
13123
|
}
|
|
13124
|
-
function
|
|
13124
|
+
function ae() {
|
|
13125
13125
|
const te = this.resume();
|
|
13126
13126
|
this.stack[this.stack.length - 1].title = te;
|
|
13127
13127
|
}
|
|
@@ -13147,10 +13147,10 @@ function Rg(e, n, a) {
|
|
|
13147
13147
|
this.stack.pop().position.end = Mo(te.end);
|
|
13148
13148
|
}
|
|
13149
13149
|
function qe(te) {
|
|
13150
|
-
|
|
13150
|
+
ie.call(this, te), this.stack[this.stack.length - 1].url = this.sliceSerialize(te);
|
|
13151
13151
|
}
|
|
13152
13152
|
function _t(te) {
|
|
13153
|
-
|
|
13153
|
+
ie.call(this, te), this.stack[this.stack.length - 1].url = "mailto:" + this.sliceSerialize(te);
|
|
13154
13154
|
}
|
|
13155
13155
|
function Ze() {
|
|
13156
13156
|
return { type: "blockquote", children: [] };
|
|
@@ -13215,14 +13215,14 @@ function Rg(e, n, a) {
|
|
|
13215
13215
|
let i, o = 1, s = "", f = !0;
|
|
13216
13216
|
return function(A, u, d) {
|
|
13217
13217
|
const h = [];
|
|
13218
|
-
let g, y, E, T,
|
|
13218
|
+
let g, y, E, T, M;
|
|
13219
13219
|
for (A = s + (typeof A == "string" ? A.toString() : new TextDecoder(u || void 0).decode(A)), E = 0, s = "", f && (A.charCodeAt(0) === 65279 && E++, f = void 0); E < A.length; ) {
|
|
13220
|
-
if (HA.lastIndex = E, g = HA.exec(A), T = g && g.index !== void 0 ? g.index : A.length,
|
|
13220
|
+
if (HA.lastIndex = E, g = HA.exec(A), T = g && g.index !== void 0 ? g.index : A.length, M = A.charCodeAt(T), !g) {
|
|
13221
13221
|
s = A.slice(E);
|
|
13222
13222
|
break;
|
|
13223
13223
|
}
|
|
13224
|
-
if (
|
|
13225
|
-
else switch (i && (h.push(-5), i = void 0), E < T && (h.push(A.slice(E, T)), o += T - E),
|
|
13224
|
+
if (M === 10 && E === T && i) h.push(-3), i = void 0;
|
|
13225
|
+
else switch (i && (h.push(-5), i = void 0), E < T && (h.push(A.slice(E, T)), o += T - E), M) {
|
|
13226
13226
|
case 0:
|
|
13227
13227
|
h.push(65533), o++;
|
|
13228
13228
|
break;
|
|
@@ -13564,9 +13564,9 @@ const WA = typeof self == "object" ? self : globalThis, YA = (e) => (/* @__PURE_
|
|
|
13564
13564
|
let k = h;
|
|
13565
13565
|
return y === "DataView" ? k = new Uint8Array(h.buffer) : y === "ArrayBuffer" && (k = new Uint8Array(h)), u([y, [...k]], h);
|
|
13566
13566
|
}
|
|
13567
|
-
const T = [],
|
|
13567
|
+
const T = [], M = u([g, T], h);
|
|
13568
13568
|
for (const k of h) T.push(d(k));
|
|
13569
|
-
return
|
|
13569
|
+
return M;
|
|
13570
13570
|
}
|
|
13571
13571
|
case 2: {
|
|
13572
13572
|
if (y) switch (y) {
|
|
@@ -13578,25 +13578,25 @@ const WA = typeof self == "object" ? self : globalThis, YA = (e) => (/* @__PURE_
|
|
|
13578
13578
|
return u([y, h.valueOf()], h);
|
|
13579
13579
|
}
|
|
13580
13580
|
if (s && "toJSON" in h) return d(h.toJSON());
|
|
13581
|
-
const T = [],
|
|
13581
|
+
const T = [], M = u([g, T], h);
|
|
13582
13582
|
for (const k of Fg(h)) (o || !Bl(Ds(h[k]))) && T.push([d(k), d(h[k])]);
|
|
13583
|
-
return
|
|
13583
|
+
return M;
|
|
13584
13584
|
}
|
|
13585
13585
|
case 3:
|
|
13586
13586
|
return u([g, h.toISOString()], h);
|
|
13587
13587
|
case 4: {
|
|
13588
|
-
const { source: T, flags:
|
|
13589
|
-
return u([g, { source: T, flags:
|
|
13588
|
+
const { source: T, flags: M } = h;
|
|
13589
|
+
return u([g, { source: T, flags: M }], h);
|
|
13590
13590
|
}
|
|
13591
13591
|
case 5: {
|
|
13592
|
-
const T = [],
|
|
13592
|
+
const T = [], M = u([g, T], h);
|
|
13593
13593
|
for (const [k, I] of h) (o || !Bl(Ds(k)) && !Bl(Ds(I))) && T.push([d(k), d(I)]);
|
|
13594
|
-
return
|
|
13594
|
+
return M;
|
|
13595
13595
|
}
|
|
13596
13596
|
case 6: {
|
|
13597
|
-
const T = [],
|
|
13597
|
+
const T = [], M = u([g, T], h);
|
|
13598
13598
|
for (const k of h) (o || !Bl(Ds(k))) && T.push(d(k));
|
|
13599
|
-
return
|
|
13599
|
+
return M;
|
|
13600
13600
|
}
|
|
13601
13601
|
}
|
|
13602
13602
|
const { message: E } = h;
|
|
@@ -13666,15 +13666,15 @@ function jg(e, n, a, i) {
|
|
|
13666
13666
|
}
|
|
13667
13667
|
return y;
|
|
13668
13668
|
function y() {
|
|
13669
|
-
let E, T,
|
|
13669
|
+
let E, T, M, k = VA;
|
|
13670
13670
|
if ((!n || s(u, d, h[h.length - 1] || void 0)) && (k = function(I) {
|
|
13671
13671
|
return Array.isArray(I) ? I : typeof I == "number" ? [zg, I] : I == null ? VA : [I];
|
|
13672
13672
|
}(a(u, h)), k[0] === XA)) return k;
|
|
13673
13673
|
if ("children" in u && u.children) {
|
|
13674
13674
|
const I = u;
|
|
13675
|
-
if (I.children && k[0] !== "skip") for (T = (i ? I.children.length : -1) + f,
|
|
13675
|
+
if (I.children && k[0] !== "skip") for (T = (i ? I.children.length : -1) + f, M = h.concat(I); T > -1 && T < I.children.length; ) {
|
|
13676
13676
|
const Q = I.children[T];
|
|
13677
|
-
if (E = A(Q, T,
|
|
13677
|
+
if (E = A(Q, T, M)(), E[0] === XA) return E;
|
|
13678
13678
|
T = typeof E[1] == "number" ? E[1] : T + f;
|
|
13679
13679
|
}
|
|
13680
13680
|
}
|
|
@@ -13764,9 +13764,9 @@ function KA(e, n) {
|
|
|
13764
13764
|
const A = typeof f.options.clobberPrefix == "string" ? f.options.clobberPrefix : "user-content-", u = f.options.footnoteBackContent || Hg, d = f.options.footnoteBackLabel || Ng, h = f.options.footnoteLabel || "Footnotes", g = f.options.footnoteLabelTagName || "h2", y = f.options.footnoteLabelProperties || { className: ["sr-only"] }, E = [];
|
|
13765
13765
|
let T = -1;
|
|
13766
13766
|
for (; ++T < f.footnoteOrder.length; ) {
|
|
13767
|
-
const
|
|
13768
|
-
if (!
|
|
13769
|
-
const k = f.all(
|
|
13767
|
+
const M = f.footnoteById.get(f.footnoteOrder[T]);
|
|
13768
|
+
if (!M) continue;
|
|
13769
|
+
const k = f.all(M), I = String(M.identifier).toUpperCase(), Q = Ba(I.toLowerCase());
|
|
13770
13770
|
let B = 0;
|
|
13771
13771
|
const N = [], U = f.footnoteCounts.get(I);
|
|
13772
13772
|
for (; U !== void 0 && ++B <= U; ) {
|
|
@@ -13779,8 +13779,8 @@ function KA(e, n) {
|
|
|
13779
13779
|
const Z = H.children[H.children.length - 1];
|
|
13780
13780
|
Z && Z.type === "text" ? Z.value += " " : H.children.push({ type: "text", value: " " }), H.children.push(...N);
|
|
13781
13781
|
} else k.push(...N);
|
|
13782
|
-
const
|
|
13783
|
-
f.patch(
|
|
13782
|
+
const z = { type: "element", tagName: "li", properties: { id: A + "fn-" + Q }, children: f.wrap(k, !0) };
|
|
13783
|
+
f.patch(M, z), E.push(z);
|
|
13784
13784
|
}
|
|
13785
13785
|
if (E.length !== 0) return { type: "element", tagName: "section", properties: { dataFootnotes: !0, className: ["footnotes"] }, children: [{ type: "element", tagName: g, properties: { ...Wl(y), id: "footnote-label" }, children: [{ type: "text", value: h }] }, { type: "text", value: `
|
|
13786
13786
|
` }, { type: "element", tagName: "ol", properties: {}, children: f.wrap(E, !0) }, { type: "text", value: `
|
|
@@ -13821,9 +13821,9 @@ var su, $A, qg = function() {
|
|
|
13821
13821
|
return u[d];
|
|
13822
13822
|
};
|
|
13823
13823
|
return su = function u() {
|
|
13824
|
-
var d, h, g, y, E, T,
|
|
13825
|
-
for (typeof
|
|
13826
|
-
return
|
|
13824
|
+
var d, h, g, y, E, T, M = arguments[0], k = 1, I = arguments.length, Q = !1;
|
|
13825
|
+
for (typeof M == "boolean" && (Q = M, M = arguments[1] || {}, k = 2), (M == null || typeof M != "object" && typeof M != "function") && (M = {}); k < I; ++k) if ((d = arguments[k]) != null) for (h in d) g = A(M, h), M !== (y = A(d, h)) && (Q && y && (s(y) || (E = o(y))) ? (E ? (E = !1, T = g && o(g) ? g : []) : T = g && s(g) ? g : {}, f(M, { name: h, newValue: u(Q, T, y) })) : typeof y < "u" && f(M, { name: h, newValue: y }));
|
|
13826
|
+
return M;
|
|
13827
13827
|
}, su;
|
|
13828
13828
|
}();
|
|
13829
13829
|
const lu = $d(qg);
|
|
@@ -13856,12 +13856,12 @@ function $g() {
|
|
|
13856
13856
|
if (I && y) throw B;
|
|
13857
13857
|
return T(B);
|
|
13858
13858
|
}
|
|
13859
|
-
I || (Q && Q.then && typeof Q.then == "function" ? Q.then(
|
|
13859
|
+
I || (Q && Q.then && typeof Q.then == "function" ? Q.then(M, T) : Q instanceof Error ? T(Q) : M(Q));
|
|
13860
13860
|
}
|
|
13861
13861
|
function T(k, ...I) {
|
|
13862
13862
|
y || (y = !0, g(k, ...I));
|
|
13863
13863
|
}
|
|
13864
|
-
function
|
|
13864
|
+
function M(k) {
|
|
13865
13865
|
T(null, k);
|
|
13866
13866
|
}
|
|
13867
13867
|
}(u, s))(...A) : o(null, ...A);
|
|
@@ -14112,10 +14112,10 @@ class qu extends tm {
|
|
|
14112
14112
|
i.run(u, A, function(h, g, y) {
|
|
14113
14113
|
if (h || !g || !y) return d(h);
|
|
14114
14114
|
const E = g, T = i.stringify(E, y);
|
|
14115
|
-
var
|
|
14116
|
-
typeof (
|
|
14115
|
+
var M;
|
|
14116
|
+
typeof (M = T) == "string" || function(k) {
|
|
14117
14117
|
return !!(k && typeof k == "object" && "byteLength" in k && "byteOffset" in k);
|
|
14118
|
-
}(
|
|
14118
|
+
}(M) ? y.value = T : y.result = T, d(h, y);
|
|
14119
14119
|
});
|
|
14120
14120
|
}
|
|
14121
14121
|
}
|
|
@@ -14187,8 +14187,8 @@ class qu extends tm {
|
|
|
14187
14187
|
if (y === -1) i.push([d, ...h]);
|
|
14188
14188
|
else if (h.length > 0) {
|
|
14189
14189
|
let [E, ...T] = h;
|
|
14190
|
-
const
|
|
14191
|
-
Iu(
|
|
14190
|
+
const M = i[y][1];
|
|
14191
|
+
Iu(M) && Iu(E) && (E = lu(!0, M, E)), i[y] = [d, E, ...T];
|
|
14192
14192
|
}
|
|
14193
14193
|
}
|
|
14194
14194
|
}
|
|
@@ -14219,8 +14219,8 @@ function am(e) {
|
|
|
14219
14219
|
const n = e.allowedElements, a = e.allowElement, i = e.children || "", o = e.className, s = e.components, f = e.disallowedElements, A = e.rehypePlugins || nd, u = e.remarkPlugins || nd, d = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...rd } : rd, h = e.skipHtml, g = e.unwrapDisallowed, y = e.urlTransform || sm, E = rm().use(Og).use(u).use(Kg, d).use(A), T = new yf();
|
|
14220
14220
|
typeof i == "string" && (T.value = i);
|
|
14221
14221
|
for (const I of im) Object.hasOwn(e, I.from) && (I.from, I.to && I.to, I.id);
|
|
14222
|
-
const
|
|
14223
|
-
let k = E.runSync(
|
|
14222
|
+
const M = E.parse(T);
|
|
14223
|
+
let k = E.runSync(M, T);
|
|
14224
14224
|
return o && (k = { type: "element", tagName: "div", properties: { className: o }, children: k.type === "root" ? k.children : [k] }), vf(k, function(I, Q, B) {
|
|
14225
14225
|
if (I.type === "raw" && B && typeof Q == "number") return h ? B.children.splice(Q, 1) : B.children[Q] = { type: "text", value: I.value }, Q;
|
|
14226
14226
|
if (I.type === "element") {
|
|
@@ -14247,8 +14247,8 @@ const lm = ({ children: e }) => X("div", { style: { whiteSpace: "normal" }, chil
|
|
|
14247
14247
|
if (f) {
|
|
14248
14248
|
const E = [...i];
|
|
14249
14249
|
for (let T = 0; T < E.length && T < (((g = s.chatHistory) == null ? void 0 : g.maxEntries) ?? 30); T++) {
|
|
14250
|
-
const
|
|
14251
|
-
(y =
|
|
14250
|
+
const M = E[T];
|
|
14251
|
+
(y = M.tags) != null && y.includes("rcb-markdown-renderer-plugin:parsed") && (M.contentWrapper = u);
|
|
14252
14252
|
}
|
|
14253
14253
|
o(E);
|
|
14254
14254
|
}
|
|
@@ -14256,10 +14256,10 @@ const lm = ({ children: e }) => X("div", { style: { whiteSpace: "normal" }, chil
|
|
|
14256
14256
|
const d = async (g) => {
|
|
14257
14257
|
var y;
|
|
14258
14258
|
const E = (y = g.data.message) == null ? void 0 : y.sender.toUpperCase();
|
|
14259
|
-
((T,
|
|
14259
|
+
((T, M, k) => {
|
|
14260
14260
|
var I;
|
|
14261
14261
|
if (typeof T.data.message.content != "string" || !T.detail.currPath) return !1;
|
|
14262
|
-
const Q =
|
|
14262
|
+
const Q = M[T.detail.currPath];
|
|
14263
14263
|
return !!Q && (((I = Q.renderMarkdown) == null ? void 0 : I.map((B) => B.toUpperCase()).includes(k)) ?? !1);
|
|
14264
14264
|
})(g, a(), E) && (g.data.message.contentWrapper = u, g.data.message.tags || (g.data.message.tags = []), g.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"));
|
|
14265
14265
|
};
|
|
@@ -14287,19 +14287,19 @@ const lm = ({ children: e }) => X("div", { style: { whiteSpace: "normal" }, chil
|
|
|
14287
14287
|
const T = E(y.data.inputText);
|
|
14288
14288
|
if (T != null && T.success || g.preventDefault(), !T.promptContent) return;
|
|
14289
14289
|
A === 0 && (d.current = structuredClone(i));
|
|
14290
|
-
const
|
|
14290
|
+
const M = ((k, I) => {
|
|
14291
14291
|
const Q = k.promptType ?? "info";
|
|
14292
14292
|
let B = {};
|
|
14293
14293
|
return I.advancedStyles && (B = I.advancedStyles[Q]), I.promptBaseColors && (B.toastPromptStyle = { color: I.promptBaseColors[Q], borderColor: I.promptBaseColors[Q] }), I.promptHoveredColors && (B.toastPromptHoveredStyle = { color: I.promptHoveredColors[Q], borderColor: I.promptHoveredColors[Q] }), I.textAreaHighlightColors && (k.highlightTextArea ?? !0) && (B.chatInputAreaStyle = { boxShadow: `${I.textAreaHighlightColors[Q]} 0px 0px 5px` }), B;
|
|
14294
14294
|
})(T, f);
|
|
14295
|
-
o(
|
|
14295
|
+
o(M), n(T.promptContent, T.promptDuration ?? 3e3), u((k) => k + 1);
|
|
14296
14296
|
}), er(xe.USER_UPLOAD_FILE, (g) => {
|
|
14297
14297
|
var y, E;
|
|
14298
|
-
const T = g,
|
|
14299
|
-
if (!
|
|
14298
|
+
const T = g, M = (E = (y = T.data) == null ? void 0 : y.files) == null ? void 0 : E[0];
|
|
14299
|
+
if (!M) return console.error("No file uploaded."), void g.preventDefault();
|
|
14300
14300
|
const k = od(T, a(), "validateFileInput");
|
|
14301
14301
|
if (!k) return void console.error("Validator not found for file input.");
|
|
14302
|
-
const I = k(
|
|
14302
|
+
const I = k(M);
|
|
14303
14303
|
if (!I.success) return console.error("Validation failed:", I), I.promptContent && n(I.promptContent, I.promptDuration ?? 3e3), void g.preventDefault();
|
|
14304
14304
|
console.log("Validation successful:", I);
|
|
14305
14305
|
}), er(xe.DISMISS_TOAST, () => {
|
|
@@ -14372,7 +14372,7 @@ function Xl() {
|
|
|
14372
14372
|
return typeof localStorage < "u" && localStorage.getItem("QA_BOT_DEBUG") === "true";
|
|
14373
14373
|
}
|
|
14374
14374
|
const pm = "background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;", hm = "background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;", gm = "background: #059669; color: white; padding: 2px 6px; border-radius: 3px;", mm = "background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;", vm = "background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;", ym = () => {
|
|
14375
|
-
Xl() && console.log("%c QA Bot Core %c v".concat("0.2.
|
|
14375
|
+
Xl() && console.log("%c QA Bot Core %c v".concat("0.2.19", " "), mm, vm);
|
|
14376
14376
|
}, _l = function(e) {
|
|
14377
14377
|
if (Xl()) {
|
|
14378
14378
|
for (var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++) a[i - 1] = arguments[i];
|
|
@@ -14423,8 +14423,8 @@ const pm = "background: #1a5b6e; color: white; padding: 2px 6px; border-radius:
|
|
|
14423
14423
|
const g = () => Object.values(d).reduce((y, E) => y + E.messages.length, 0);
|
|
14424
14424
|
for (; g() > 100 && Object.keys(d).length > 1; ) {
|
|
14425
14425
|
const y = (h = Object.entries(d).sort((E, T) => {
|
|
14426
|
-
let [,
|
|
14427
|
-
return new Date(
|
|
14426
|
+
let [, M] = E, [, k] = T;
|
|
14427
|
+
return new Date(M.startedAt).getTime() - new Date(k.startedAt).getTime();
|
|
14428
14428
|
})[0]) === null || h === void 0 ? void 0 : h[0];
|
|
14429
14429
|
if (!y) break;
|
|
14430
14430
|
delete d[y];
|
|
@@ -14447,22 +14447,22 @@ const pm = "background: #1a5b6e; color: white; padding: 2px 6px; border-radius:
|
|
|
14447
14447
|
}, Em = () => {
|
|
14448
14448
|
const [e, n] = Ue(!1), [a, i] = Ue([]), [o, s] = Ue(null), [f, A] = Ue(0), u = Je(null), d = Je(null), { replaceMessages: h } = Ns(), { toggleTextAreaDisabled: g } = Nd(), { setSessionId: y, getSessionId: E } = $u();
|
|
14449
14449
|
je(() => {
|
|
14450
|
-
var
|
|
14450
|
+
var M, k;
|
|
14451
14451
|
const I = (B) => {
|
|
14452
14452
|
u.current && !u.current.contains(B.target) && d.current && !d.current.contains(B.target) && n(!1);
|
|
14453
|
-
}, Q = (k = (
|
|
14453
|
+
}, Q = (k = (M = u.current) === null || M === void 0 ? void 0 : M.getRootNode()) !== null && k !== void 0 ? k : document;
|
|
14454
14454
|
return e && Q.addEventListener("mousedown", I), () => {
|
|
14455
14455
|
Q.removeEventListener("mousedown", I);
|
|
14456
14456
|
};
|
|
14457
14457
|
}, [e]);
|
|
14458
|
-
const T = (
|
|
14458
|
+
const T = (M) => {
|
|
14459
14459
|
var k;
|
|
14460
14460
|
const I = E();
|
|
14461
|
-
if (Rr("RESTORE requested", { targetSession:
|
|
14461
|
+
if (Rr("RESTORE requested", { targetSession: M.slice(-12), currentSession: I == null ? void 0 : I.slice(-12) }), M === I) return Rr("RESTORE skipped - already on this session"), void n(!1);
|
|
14462
14462
|
const Q = ((U) => {
|
|
14463
14463
|
var H;
|
|
14464
14464
|
return ((H = Ls()[U]) === null || H === void 0 ? void 0 : H.messages) || [];
|
|
14465
|
-
})(
|
|
14465
|
+
})(M).filter((U) => {
|
|
14466
14466
|
var H;
|
|
14467
14467
|
return (H = U.content) === null || H === void 0 ? void 0 : H.trim();
|
|
14468
14468
|
});
|
|
@@ -14472,35 +14472,35 @@ const pm = "background: #1a5b6e; color: white; padding: 2px 6px; border-radius:
|
|
|
14472
14472
|
h(B), Rr("replaceMessages called", { count: B.length }), N = (k = d.current) === null || k === void 0 ? void 0 : k.getRootNode(), setTimeout(() => {
|
|
14473
14473
|
const U = (N || document).querySelector(".rcb-chat-body-container");
|
|
14474
14474
|
U && U.querySelectorAll(".rcb-bot-message").forEach((H) => {
|
|
14475
|
-
var
|
|
14475
|
+
var z;
|
|
14476
14476
|
let Z = H.innerHTML, W = !1;
|
|
14477
|
-
Z.includes("](") && (Z = Z.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'), W = !0), Z.includes("<a href=") && (Z = Z.replace(/<a\s+href=["']([^"']+)["'][^&]*>([^&]+)<\/a>/gi, '<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'), W = !0), (Z.includes("<a ") || !((
|
|
14477
|
+
Z.includes("](") && (Z = Z.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'), W = !0), Z.includes("<a href=") && (Z = Z.replace(/<a\s+href=["']([^"']+)["'][^&]*>([^&]+)<\/a>/gi, '<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'), W = !0), (Z.includes("<a ") || !((z = H.textContent) === null || z === void 0) && z.includes("<a href=")) && (H.textContent || "").includes("<a href=") && (Z = Z.replace(/<a\s+href="([^"]+)"[^&]*>([^&]+)<\/a>/gi, '<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'), W = !0), W && (H.innerHTML = Z);
|
|
14478
14478
|
});
|
|
14479
|
-
}, 50), y(
|
|
14479
|
+
}, 50), y(M), Rr("Session ID updated", { newSession: M.slice(-12) }), g(!1), Rr("Chat input enabled after restore"), n(!1);
|
|
14480
14480
|
};
|
|
14481
14481
|
return Ae.createElement("div", { style: { position: "relative" } }, Ae.createElement("button", { ref: d, className: "history-button", onClick: () => {
|
|
14482
14482
|
if (!e && (i((() => {
|
|
14483
|
-
const
|
|
14484
|
-
return Object.entries(
|
|
14483
|
+
const M = Ls();
|
|
14484
|
+
return Object.entries(M).map((k) => {
|
|
14485
14485
|
let [I, Q] = k;
|
|
14486
14486
|
return Object.assign({ sessionId: I }, Q);
|
|
14487
14487
|
}).sort((k, I) => new Date(I.startedAt).getTime() - new Date(k.startedAt).getTime());
|
|
14488
14488
|
})()), d.current)) {
|
|
14489
|
-
const
|
|
14490
|
-
if (
|
|
14491
|
-
const k =
|
|
14489
|
+
const M = d.current.closest(".rcb-chat-window");
|
|
14490
|
+
if (M) {
|
|
14491
|
+
const k = M.getBoundingClientRect(), I = d.current.getBoundingClientRect();
|
|
14492
14492
|
s(k.width + 3), A(k.right - I.right - 18 + 4);
|
|
14493
14493
|
}
|
|
14494
14494
|
}
|
|
14495
14495
|
n(!e);
|
|
14496
|
-
}, style: { alignItems: "center", justifyContent: "center", width: "30px", height: "30px", borderRadius: "50%", backgroundColor: "var(--primaryColor, #1a5b6e)", marginRight: "18px", display: "flex", border: "none", cursor: "pointer", padding: 0 }, "aria-label": "View chat history", title: "View chat history", "aria-expanded": e, "aria-haspopup": "menu" }, Ae.createElement("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false" }, Ae.createElement("circle", { cx: "12", cy: "12", r: "10" }), Ae.createElement("polyline", { points: "12 6 12 12 16 14" }))), e && Ae.createElement("div", { ref: u, role: "menu", style: { position: "absolute", right: f ? "-".concat(f, "px") : "-18px", top: "100%", marginTop: "8px", width: o ? "".concat(o, "px") : "550px", backgroundColor: "white", borderRadius: 0, borderBottom: "3px solid var(--primaryColor, #1a5b6e)", boxShadow: "0 2px 8px rgba(0, 0, 0, 0.1)", maxHeight: "250px", overflowY: "auto", zIndex: 1e3 } }, a.length === 0 ? Ae.createElement("div", { style: { padding: "12px 16px", color: "#666", fontSize: "14px", textAlign: "center" } }, "No chat history") : a.map((
|
|
14496
|
+
}, style: { alignItems: "center", justifyContent: "center", width: "30px", height: "30px", borderRadius: "50%", backgroundColor: "var(--primaryColor, #1a5b6e)", marginRight: "18px", display: "flex", border: "none", cursor: "pointer", padding: 0 }, "aria-label": "View chat history", title: "View chat history", "aria-expanded": e, "aria-haspopup": "menu" }, Ae.createElement("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false" }, Ae.createElement("circle", { cx: "12", cy: "12", r: "10" }), Ae.createElement("polyline", { points: "12 6 12 12 16 14" }))), e && Ae.createElement("div", { ref: u, role: "menu", style: { position: "absolute", right: f ? "-".concat(f, "px") : "-18px", top: "100%", marginTop: "8px", width: o ? "".concat(o, "px") : "550px", backgroundColor: "white", borderRadius: 0, borderBottom: "3px solid var(--primaryColor, #1a5b6e)", boxShadow: "0 2px 8px rgba(0, 0, 0, 0.1)", maxHeight: "250px", overflowY: "auto", zIndex: 1e3 } }, a.length === 0 ? Ae.createElement("div", { style: { padding: "12px 16px", color: "#666", fontSize: "14px", textAlign: "center" } }, "No chat history") : a.map((M) => Ae.createElement("button", { key: M.sessionId, role: "menuitem", onClick: () => T(M.sessionId), style: { width: "100%", padding: "10px 14px", border: "none", backgroundColor: "transparent", cursor: "pointer", textAlign: "left", display: "flex", flexDirection: "column", gap: "2px", borderBottom: "1px solid #eee" }, onMouseEnter: (k) => {
|
|
14497
14497
|
k.currentTarget.style.backgroundColor = "#f5f5f5";
|
|
14498
14498
|
}, onMouseLeave: (k) => {
|
|
14499
14499
|
k.currentTarget.style.backgroundColor = "transparent";
|
|
14500
|
-
} }, Ae.createElement("span", { style: { fontSize: "14px", color: "#333", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } },
|
|
14500
|
+
} }, Ae.createElement("span", { style: { fontSize: "14px", color: "#333", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } }, M.preview || "New conversation"), Ae.createElement("span", { style: { fontSize: "12px", color: "#888" } }, ((k) => {
|
|
14501
14501
|
const I = new Date(k), Q = (/* @__PURE__ */ new Date()).getTime() - I.getTime(), B = Math.floor(Q / 864e5);
|
|
14502
14502
|
return B === 0 ? I.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) : B === 1 ? "Yesterday" : B < 7 ? I.toLocaleDateString([], { weekday: "short" }) : I.toLocaleDateString([], { month: "short", day: "numeric" });
|
|
14503
|
-
})(
|
|
14503
|
+
})(M.startedAt))))));
|
|
14504
14504
|
};
|
|
14505
14505
|
function Ru() {
|
|
14506
14506
|
return Ru = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -14568,8 +14568,8 @@ const Dm = () => {
|
|
|
14568
14568
|
const y = Array.from(g.querySelectorAll(".rcb-checkbox-row-container")), E = g.querySelector(".rcb-checkbox-next-button");
|
|
14569
14569
|
if (y.length > 0) {
|
|
14570
14570
|
const T = [...y];
|
|
14571
|
-
return E && T.push(E), void ((
|
|
14572
|
-
|
|
14571
|
+
return E && T.push(E), void ((M, k) => {
|
|
14572
|
+
M.preventDefault();
|
|
14573
14573
|
let I = -1;
|
|
14574
14574
|
for (let B = 0; B < k.length; B++) if (k[B] === document.activeElement || k[B].contains(document.activeElement)) {
|
|
14575
14575
|
I = B;
|
|
@@ -14577,7 +14577,7 @@ const Dm = () => {
|
|
|
14577
14577
|
}
|
|
14578
14578
|
I === -1 && (I = 0);
|
|
14579
14579
|
let Q = I;
|
|
14580
|
-
switch (
|
|
14580
|
+
switch (M.key) {
|
|
14581
14581
|
case "ArrowDown":
|
|
14582
14582
|
case "ArrowRight":
|
|
14583
14583
|
Q = I < k.length - 1 ? I + 1 : 0;
|
|
@@ -14641,7 +14641,7 @@ const Dm = () => {
|
|
|
14641
14641
|
if (g.classList.contains("rcb-checkbox-row-container") || g.closest(".rcb-checkbox-row-container")) {
|
|
14642
14642
|
const y = new MouseEvent("mousedown", { bubbles: !0, cancelable: !0, view: window });
|
|
14643
14643
|
g.dispatchEvent(y);
|
|
14644
|
-
const E = g.querySelector(".rcb-checkbox-label"), T = E ? E.textContent : g.textContent || "checkbox",
|
|
14644
|
+
const E = g.querySelector(".rcb-checkbox-label"), T = E ? E.textContent : g.textContent || "checkbox", M = g.querySelector(".rcb-checkbox-mark"), k = M && M.style.backgroundColor ? "checked" : "unchecked";
|
|
14645
14645
|
n(`${T} ${k}`);
|
|
14646
14646
|
} else {
|
|
14647
14647
|
const y = new MouseEvent("mousedown", { bubbles: !0, cancelable: !0, view: window });
|
|
@@ -14685,8 +14685,8 @@ const Dm = () => {
|
|
|
14685
14685
|
if (!y && f && (y = f.querySelector(".rcb-checkbox-container")), y && y.offsetParent !== null) {
|
|
14686
14686
|
const E = Array.from(y.querySelectorAll(".rcb-checkbox-row-container")).filter((T) => T.offsetParent !== null && T.style.display !== "none");
|
|
14687
14687
|
if (E.length > 0) {
|
|
14688
|
-
const T = y.querySelector(".rcb-checkbox-next-button"),
|
|
14689
|
-
if (T && T.offsetParent !== null &&
|
|
14688
|
+
const T = y.querySelector(".rcb-checkbox-next-button"), M = [...E];
|
|
14689
|
+
if (T && T.offsetParent !== null && M.push(T), M.forEach((k, I) => {
|
|
14690
14690
|
k.setAttribute("tabindex", I === 0 ? "0" : "-1"), I === 0 ? k.classList.add("keyboard-focused") : k.classList.remove("keyboard-focused");
|
|
14691
14691
|
}), E.length > 1) {
|
|
14692
14692
|
y.querySelectorAll(".keyboard-nav-hint").forEach((I) => I.remove());
|
|
@@ -14694,7 +14694,7 @@ const Dm = () => {
|
|
|
14694
14694
|
k.className = "keyboard-nav-hint", k.textContent = "Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option", k.style.cssText = "font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;", y.insertBefore(k, y.firstChild);
|
|
14695
14695
|
}
|
|
14696
14696
|
return void setTimeout(() => {
|
|
14697
|
-
|
|
14697
|
+
M[0] && M[0].offsetParent !== null && !A && M[0].focus();
|
|
14698
14698
|
}, 150);
|
|
14699
14699
|
}
|
|
14700
14700
|
}
|
|
@@ -14723,8 +14723,8 @@ const Dm = () => {
|
|
|
14723
14723
|
var A, u;
|
|
14724
14724
|
if (f.type === "childList") {
|
|
14725
14725
|
const d = Array.from(f.addedNodes), h = d.some((y) => {
|
|
14726
|
-
var E, T,
|
|
14727
|
-
return y.nodeType === Node.ELEMENT_NODE && (((E = y.classList) == null ? void 0 : E.contains("rcb-options-container")) || ((T = y.classList) == null ? void 0 : T.contains("rcb-options")) || ((
|
|
14726
|
+
var E, T, M, k;
|
|
14727
|
+
return y.nodeType === Node.ELEMENT_NODE && (((E = y.classList) == null ? void 0 : E.contains("rcb-options-container")) || ((T = y.classList) == null ? void 0 : T.contains("rcb-options")) || ((M = y.querySelector) == null ? void 0 : M.call(y, ".rcb-options-container")) || ((k = y.querySelector) == null ? void 0 : k.call(y, ".rcb-options")));
|
|
14728
14728
|
}), g = d.some((y) => {
|
|
14729
14729
|
var E, T;
|
|
14730
14730
|
return y.nodeType === Node.ELEMENT_NODE && (((E = y.classList) == null ? void 0 : E.contains("rcb-checkbox-container")) || ((T = y.querySelector) == null ? void 0 : T.call(y, ".rcb-checkbox-container")));
|
|
@@ -14758,28 +14758,28 @@ const Dm = () => {
|
|
|
14758
14758
|
};
|
|
14759
14759
|
}, []), null), Bm = "#1a5b6e", Rm = "#107180", Mm = "Arial, sans-serif", ld = "Q&A Bot", Om = "/chat-icon.svg", _m = "Type your question here...", Lm = "Select an option to continue", Qm = !1, Fm = "Ask me a question!", cd = "/login", Hm = { general: { showHeader: !0, showFooter: !0 }, tooltip: { mode: "CLOSE" }, chatInput: { disabled: !1, characterLimit: 1e3, showCharacterCount: !1, allowNewline: !0, blockSpam: !1 }, chatWindow: { defaultOpen: !1, showScrollbar: !1 }, botBubble: { simulateStream: !0, streamSpeed: 10, showAvatar: !1 }, userBubble: { showAvatar: !1 }, notification: { disabled: !0, showCount: !1 }, audio: { disabled: !0 }, emoji: { disabled: !0 }, fileAttachment: { disabled: !0 } }, Zu = Cn((e, n) => {
|
|
14760
14760
|
var a, i;
|
|
14761
|
-
const { apiKey: o, qaEndpoint: s, ratingEndpoint: f, welcomeMessage: A, open: u, onOpenChange: d, isLoggedIn: h, allowAnonAccess: g = !1, actingUser: y, primaryColor: E, secondaryColor: T, botName:
|
|
14761
|
+
const { apiKey: o, qaEndpoint: s, ratingEndpoint: f, welcomeMessage: A, open: u, onOpenChange: d, isLoggedIn: h, allowAnonAccess: g = !1, actingUser: y, primaryColor: E, secondaryColor: T, botName: M, logo: k, placeholder: I, errorMessage: Q, embedded: B, footerText: N, footerLink: U, tooltipText: H, loginUrl: z, customFlow: Z, onAnalyticsEvent: W } = e, j = Je("bot_".concat(Math.random().toString(36).substr(2, 9)));
|
|
14762
14762
|
je(() => {
|
|
14763
14763
|
ym();
|
|
14764
14764
|
}, []);
|
|
14765
|
-
const
|
|
14766
|
-
|
|
14767
|
-
const
|
|
14765
|
+
const q = Je(null);
|
|
14766
|
+
q.current === null && (q.current = sd(), _l("CREATED", q.current));
|
|
14767
|
+
const $ = Je(!1), ie = Je({ getSessionId: () => q.current, isResetting: () => $.current }), [se, le] = Ue(h);
|
|
14768
14768
|
je(() => {
|
|
14769
14769
|
le(h);
|
|
14770
14770
|
}, [h]);
|
|
14771
14771
|
const be = B !== void 0 ? B : Qm, ge = Ce((fe) => {
|
|
14772
|
-
var
|
|
14773
|
-
W && W(Object.assign(Object.assign({}, fe), { timestamp: Date.now(), sessionId: (
|
|
14772
|
+
var ae;
|
|
14773
|
+
W && W(Object.assign(Object.assign({}, fe), { timestamp: Date.now(), sessionId: (ae = q.current) !== null && ae !== void 0 ? ae : void 0, pageUrl: typeof window < "u" ? window.location.href : void 0, isEmbedded: be }));
|
|
14774
14774
|
}, [W, be]), me = nn(() => {
|
|
14775
14775
|
const fe = Object.assign({}, Hm);
|
|
14776
14776
|
fe.general = Object.assign(Object.assign({}, fe.general), { primaryColor: E || Bm, secondaryColor: T || Rm, fontFamily: Mm, embedded: be });
|
|
14777
|
-
const
|
|
14778
|
-
fe.header = { title: Ae.createElement("span", { style: { fontSize: 14, fontWeight: 500 } },
|
|
14777
|
+
const ae = se === !1 ? [Ae.createElement(id, { key: "login-button", loginUrl: z || cd, isHeaderButton: !0 })] : [Ae.createElement(Em, { key: "history-button" }), Ae.createElement(dm, { key: "user-icon" })];
|
|
14778
|
+
fe.header = { title: Ae.createElement("span", { style: { fontSize: 14, fontWeight: 500 } }, M || ld), showAvatar: !0, avatar: k || Om, buttons: [...ae, kt.CLOSE_CHAT_BUTTON] }, fe.chatInput = Object.assign(Object.assign({}, fe.chatInput), { disabled: !1, enabledPlaceholderText: I || _m, disabledPlaceholderText: Q || Lm }), fe.tooltip = Object.assign(Object.assign({}, fe.tooltip), { text: H || Fm });
|
|
14779
14779
|
const he = N ? U ? Ae.createElement("a", { href: U, target: "_blank", rel: "noopener noreferrer", key: "footer-link" }, N) : Ae.createElement("span", { key: "footer-text" }, N) : null;
|
|
14780
14780
|
return fe.footer = { text: he, buttons: [Ae.createElement(Tm, { key: "new-chat-button" })] }, fe.event = { rcbPreInjectMessage: !0, rcbPostInjectMessage: !0, rcbUserSubmitText: !0, rcbChangePath: !0, rcbToggleChatWindow: !0 }, fe;
|
|
14781
|
-
}, [E, T,
|
|
14782
|
-
let
|
|
14781
|
+
}, [E, T, M, k, I, Q, be, H, se, z, N, U]), _ = Je(null), Be = function(fe) {
|
|
14782
|
+
let ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
14783
14783
|
return nn(() => {
|
|
14784
14784
|
const he = (ye, Ie) => {
|
|
14785
14785
|
if (fe.current) {
|
|
@@ -14792,15 +14792,15 @@ const Dm = () => {
|
|
|
14792
14792
|
}
|
|
14793
14793
|
return Ie;
|
|
14794
14794
|
};
|
|
14795
|
-
return { primaryColor: he("--primaryColor",
|
|
14796
|
-
}, [fe,
|
|
14795
|
+
return { primaryColor: he("--primaryColor", ae.primaryColor), secondaryColor: he("--secondaryColor", ae.secondaryColor), fontFamily: he("--fontFamily", ae.fontFamily) };
|
|
14796
|
+
}, [fe, ae]);
|
|
14797
14797
|
}(_, me.general);
|
|
14798
|
-
((fe,
|
|
14798
|
+
((fe, ae) => {
|
|
14799
14799
|
je(() => {
|
|
14800
|
-
|
|
14801
|
-
}, [fe,
|
|
14800
|
+
ae.current && (fe ? ae.current.classList.add("bot-logged-in") : ae.current.classList.remove("bot-logged-in"));
|
|
14801
|
+
}, [fe, ae]);
|
|
14802
14802
|
})(se !== !1, _), ((fe) => {
|
|
14803
|
-
let { settings:
|
|
14803
|
+
let { settings: ae, themeColors: he } = fe;
|
|
14804
14804
|
je(() => {
|
|
14805
14805
|
he && (Object.entries(he).forEach((ye) => {
|
|
14806
14806
|
let [Ie, Qe] = ye;
|
|
@@ -14808,8 +14808,8 @@ const Dm = () => {
|
|
|
14808
14808
|
}), he.primaryColor && document.documentElement.style.setProperty("--rcb-header-background", he.primaryColor), he.secondaryColor && document.documentElement.style.setProperty("--rcb-header-background-hover", he.secondaryColor));
|
|
14809
14809
|
}, [he]), je(() => {
|
|
14810
14810
|
var ye, Ie, Qe;
|
|
14811
|
-
!((ye =
|
|
14812
|
-
}, [
|
|
14811
|
+
!((ye = ae.header) === null || ye === void 0) && ye.title && typeof ae.header.title == "string" && (ae.header.title = Ae.createElement("div", { key: "header-title" }, Ae.createElement("h1", { className: "sr-only" }, ae.header.title), Ae.createElement("span", { "aria-hidden": "true" }, ae.header.title))), !((Ie = ae.general) === null || Ie === void 0) && Ie.embedded && ae.chatWindow && (ae.chatWindow.defaultOpen = !0), ae.device = { desktopEnabled: !0, mobileEnabled: !0, applyMobileOptimizations: !1 }, ae.chatHistory = { disabled: !1 }, ae.chatButton = Object.assign(Object.assign({}, ae.chatButton), { icon: (Qe = ae.header) === null || Qe === void 0 ? void 0 : Qe.avatar }), ae.event = { rcbToggleChatWindow: !0 };
|
|
14812
|
+
}, [ae]);
|
|
14813
14813
|
})({ settings: me, themeColors: Be });
|
|
14814
14814
|
const L = nn(() => {
|
|
14815
14815
|
const fe = ((he) => {
|
|
@@ -14869,11 +14869,11 @@ const Dm = () => {
|
|
|
14869
14869
|
return Si("Error in Q&A flow:", tt), mt == null || mt({ type: "chatbot_answer_error", queryId: St ?? void 0, errorType: tt instanceof Error ? tt.message : "unknown" }), "I apologize, but I'm having trouble processing your question. Please try again later.";
|
|
14870
14870
|
}
|
|
14871
14871
|
}, options: (vt) => We && We() || vt.userInput === "👍 Helpful" || vt.userInput === "👎 Not helpful" ? [] : Ie && Pn ? ["👍 Helpful", "👎 Not helpful"] : [], renderMarkdown: ["BOT"], chatDisabled: !1, path: "qa_loop" } };
|
|
14872
|
-
})({ endpoint: s, ratingEndpoint: f, apiKey: o, sessionId:
|
|
14872
|
+
})({ endpoint: s, ratingEndpoint: f, apiKey: o, sessionId: ie.current.getSessionId, isResetting: ie.current.isResetting, isLoggedIn: se, allowAnonAccess: g, loginUrl: z || cd, actingUser: y, trackEvent: ge });
|
|
14873
14873
|
return Object.assign(Object.assign({ start: { message: A, transition: { duration: 0 }, path: "qa_loop" } }, fe), Z || {});
|
|
14874
|
-
}, [o, s, f, A, se, g,
|
|
14875
|
-
return [() => uh(
|
|
14876
|
-
var fe,
|
|
14874
|
+
}, [o, s, f, A, se, g, z, Z, y, ge]), ve = nn(() => {
|
|
14875
|
+
return [() => uh(ae), um(), () => Am(fe)];
|
|
14876
|
+
var fe, ae;
|
|
14877
14877
|
}, []);
|
|
14878
14878
|
return je(() => {
|
|
14879
14879
|
const fe = () => {
|
|
@@ -14892,29 +14892,29 @@ const Dm = () => {
|
|
|
14892
14892
|
ye.dispatchEvent(Oe);
|
|
14893
14893
|
}
|
|
14894
14894
|
})));
|
|
14895
|
-
},
|
|
14896
|
-
return fe(), () => clearInterval(
|
|
14895
|
+
}, ae = setInterval(fe, 1e3);
|
|
14896
|
+
return fe(), () => clearInterval(ae);
|
|
14897
14897
|
}, []), Im(), je(() => {
|
|
14898
14898
|
if (!be) {
|
|
14899
|
-
const fe = (
|
|
14900
|
-
const he =
|
|
14899
|
+
const fe = (ae) => {
|
|
14900
|
+
const he = ae.data.newState;
|
|
14901
14901
|
d == null || d(he);
|
|
14902
|
-
const ye =
|
|
14902
|
+
const ye = q.current;
|
|
14903
14903
|
ge(he ? { type: "chatbot_open" } : { type: "chatbot_close", messageCount: ye ? Sf(ye) : 0, durationMs: ye ? Sm(ye) : 0 });
|
|
14904
14904
|
};
|
|
14905
14905
|
return window.addEventListener("rcb-toggle-chat-window", fe), () => {
|
|
14906
14906
|
window.removeEventListener("rcb-toggle-chat-window", fe);
|
|
14907
14907
|
};
|
|
14908
14908
|
}
|
|
14909
|
-
}, [be, d, ge]), Ae.createElement("div", { className: "qa-bot ".concat(!((a = me.general) === null || a === void 0) && a.embedded ? "embedded-qa-bot" : ""), ref: _, role: "region", "aria-label":
|
|
14910
|
-
const
|
|
14911
|
-
|
|
14909
|
+
}, [be, d, ge]), Ae.createElement("div", { className: "qa-bot ".concat(!((a = me.general) === null || a === void 0) && a.embedded ? "embedded-qa-bot" : ""), ref: _, role: "region", "aria-label": M || ld }, Ae.createElement(km, { getSessionId: () => q.current, setSessionId: (fe) => {
|
|
14910
|
+
const ae = q.current;
|
|
14911
|
+
q.current = fe, _l("RESTORED", "".concat(ae == null ? void 0 : ae.slice(-12), " -> ").concat(fe.slice(-12)));
|
|
14912
14912
|
}, resetSession: () => {
|
|
14913
|
-
const fe =
|
|
14914
|
-
|
|
14913
|
+
const fe = q.current;
|
|
14914
|
+
$.current = !0, q.current = sd(), _l("RESET", "".concat(fe == null ? void 0 : fe.slice(-12), " -> ").concat(q.current.slice(-12)));
|
|
14915
14915
|
}, clearResettingFlag: () => {
|
|
14916
|
-
|
|
14917
|
-
} }, Ae.createElement(Pm, { trackEvent: ge }, Ae.createElement(Fd, null, Ae.createElement("div", null, Ae.createElement(Dm, null), Ae.createElement(bf, { ref: n, embedded: ((i = me.general) === null || i === void 0 ? void 0 : i.embedded) || !1, currentOpen: u || !1, enabled: se !== !1, onSetEnabled: (fe) => le(!!fe && void 0) }), Ae.createElement(Yp, { key: "chatbot-".concat(
|
|
14916
|
+
$.current = !1;
|
|
14917
|
+
} }, Ae.createElement(Pm, { trackEvent: ge }, Ae.createElement(Fd, null, Ae.createElement("div", null, Ae.createElement(Dm, null), Ae.createElement(bf, { ref: n, embedded: ((i = me.general) === null || i === void 0 ? void 0 : i.embedded) || !1, currentOpen: u || !1, enabled: se !== !1, onSetEnabled: (fe) => le(!!fe && void 0) }), Ae.createElement(Yp, { key: "chatbot-".concat(j.current, "-").concat(se), settings: me, flow: L, plugins: ve }), Ae.createElement("div", { role: "status", "aria-live": "polite", "aria-label": "Bot response updates", className: "sr-only", id: "bot-live-region" }), Ae.createElement("div", { id: "chat-input-help", className: "sr-only" }, "Type your message and press Enter to send. Use arrow keys to navigate through response options."))))));
|
|
14918
14918
|
});
|
|
14919
14919
|
Zu.displayName = "QABot";
|
|
14920
14920
|
pd('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a{color:#fff;text-decoration:none}.rcb-chat-window .rcb-bot-message a:hover{text-decoration:underline}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .history-button,.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .history-button,.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.qa-bot.bot-logged-in .history-button:hover{opacity:.8}.qa-bot.bot-logged-in .history-button:focus{outline:2px solid #fff;outline-offset:2px}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}', { insertAt: "top" });
|
|
@@ -14952,23 +14952,23 @@ const Nm = () => {
|
|
|
14952
14952
|
}, i.onerror = () => a(new Error("Failed to read file ".concat(e.name))), i.readAsDataURL(e);
|
|
14953
14953
|
}), jm = (e) => Promise.all(e.map(zm)), Wm = (e) => e < 1024 ? "".concat(e, " B") : e < 1048576 ? "".concat((e / 1024).toFixed(1), " KB") : "".concat((e / 1048576).toFixed(1), " MB"), Jl = (e) => {
|
|
14954
14954
|
let { onFileUpload: n, maxSizeMB: a = 10, acceptedTypes: i = "image/*,application/pdf,text/*,.doc,.docx", enableScreenshot: o = !1, className: s } = e;
|
|
14955
|
-
const [f, A] = Ue(!1), [u, d] = Ue([]), [h, g] = Ue(null), y = Je(null), { captureScreenshot: E, isCapturing: T, isScreenCaptureAvailable:
|
|
14956
|
-
const
|
|
14957
|
-
|
|
14955
|
+
const [f, A] = Ue(!1), [u, d] = Ue([]), [h, g] = Ue(null), y = Je(null), { captureScreenshot: E, isCapturing: T, isScreenCaptureAvailable: M } = Nm(), k = (H) => {
|
|
14956
|
+
const z = document.createElement("div");
|
|
14957
|
+
z.setAttribute("aria-live", "assertive"), z.setAttribute("aria-atomic", "true"), z.className = "sr-only", z.textContent = H, document.body.appendChild(z), setTimeout(() => document.body.removeChild(z), 1e3);
|
|
14958
14958
|
}, I = (H) => {
|
|
14959
14959
|
if (!H || H.length === 0) return void wm("FileUploadComponent: No valid files provided to handleFiles");
|
|
14960
|
-
let
|
|
14960
|
+
let z;
|
|
14961
14961
|
try {
|
|
14962
|
-
|
|
14963
|
-
} catch (
|
|
14964
|
-
return Si("FileUploadComponent: Error converting files to array:",
|
|
14962
|
+
z = Array.from(H);
|
|
14963
|
+
} catch (q) {
|
|
14964
|
+
return Si("FileUploadComponent: Error converting files to array:", q), void k("Error processing selected files. Please try again.");
|
|
14965
14965
|
}
|
|
14966
|
-
const Z = [...u, ...
|
|
14966
|
+
const Z = [...u, ...z];
|
|
14967
14967
|
d(Z);
|
|
14968
|
-
const W =
|
|
14969
|
-
k("".concat(W, " file").concat(W > 1 ? "s" : "", " selected: ").concat(
|
|
14970
|
-
const
|
|
14971
|
-
|
|
14968
|
+
const W = z.length, j = z.map((q) => q.name).join(", ");
|
|
14969
|
+
k("".concat(W, " file").concat(W > 1 ? "s" : "", " selected: ").concat(j)), setTimeout(() => {
|
|
14970
|
+
const q = document.querySelector(".rcb-chat-content");
|
|
14971
|
+
q && (q.scrollTop = q.scrollHeight);
|
|
14972
14972
|
}, 100), n && n(Z);
|
|
14973
14973
|
}, Q = (H) => {
|
|
14974
14974
|
H.preventDefault(), H.stopPropagation(), H.type === "dragenter" || H.type === "dragover" ? A(!0) : H.type === "dragleave" && A(!1);
|
|
@@ -14980,46 +14980,46 @@ const Nm = () => {
|
|
|
14980
14980
|
}
|
|
14981
14981
|
}, N = () => {
|
|
14982
14982
|
g(null);
|
|
14983
|
-
}, U = o &&
|
|
14983
|
+
}, U = o && M;
|
|
14984
14984
|
return Ae.createElement("div", { className: "file-upload-container ".concat(s || ""), style: { padding: "16px", margin: "8px 0" } }, U && Ae.createElement("div", { style: { display: "flex", justifyContent: "center", marginBottom: "10px" } }, Ae.createElement("button", { onClick: (H) => {
|
|
14985
14985
|
H.preventDefault(), (async () => {
|
|
14986
14986
|
try {
|
|
14987
|
-
const
|
|
14988
|
-
I([
|
|
14987
|
+
const z = await E();
|
|
14988
|
+
I([z]), k("Screenshot captured successfully");
|
|
14989
14989
|
} catch {
|
|
14990
14990
|
k("Error capturing screenshot. Please try again.");
|
|
14991
14991
|
}
|
|
14992
14992
|
})();
|
|
14993
14993
|
}, disabled: T, "aria-describedby": "screenshot-help", "aria-label": T ? "Taking screenshot, please wait" : "Take a screenshot to attach", style: { display: "flex", alignItems: "center", gap: "8px", backgroundColor: "#107180", color: "white", border: "none", borderRadius: "5px", padding: "8px 12px", cursor: T ? "not-allowed" : "pointer", fontSize: "14px", fontWeight: "500", boxShadow: "0 1px 3px rgba(0,0,0,0.2)" } }, Ae.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, Ae.createElement("path", { d: "M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z" }), Ae.createElement("circle", { cx: "12", cy: "13", r: "4" })), T ? "Taking screenshot..." : "Take screenshot..."), Ae.createElement("span", { id: "screenshot-help", className: "sr-only" }, "Captures the current screen and adds it as an attachment")), Ae.createElement("div", { className: "file-upload-dropzone ".concat(f ? "active" : ""), onDragEnter: Q, onDragLeave: Q, onDragOver: Q, onDrop: (H) => {
|
|
14994
|
-
var
|
|
14994
|
+
var z;
|
|
14995
14995
|
H.preventDefault(), H.stopPropagation(), A(!1);
|
|
14996
14996
|
try {
|
|
14997
|
-
!((
|
|
14997
|
+
!((z = H.dataTransfer) === null || z === void 0) && z.files && H.dataTransfer.files.length > 0 && I(H.dataTransfer.files);
|
|
14998
14998
|
} catch (Z) {
|
|
14999
14999
|
Si("FileUploadComponent: Error in handleDrop:", Z), k("Error processing dropped files. Please try again.");
|
|
15000
15000
|
}
|
|
15001
15001
|
}, role: "button", tabIndex: 0, "aria-label": "File upload area. Click to select files or drag and drop files here.", "aria-describedby": "upload-instructions", onKeyDown: (H) => {
|
|
15002
15002
|
H.key !== "Enter" && H.key !== " " || (H.preventDefault(), B());
|
|
15003
15003
|
}, style: { padding: "20px", border: "2px dashed #ccc", borderRadius: "8px", backgroundColor: f ? "#f0f8ff" : "#fafafa", transition: "all 0.3s ease" } }, Ae.createElement("input", { ref: y, type: "file", className: "file-input", onChange: (H) => {
|
|
15004
|
-
var
|
|
15004
|
+
var z;
|
|
15005
15005
|
try {
|
|
15006
|
-
!((
|
|
15006
|
+
!((z = H.target) === null || z === void 0) && z.files && H.target.files.length > 0 && I(H.target.files);
|
|
15007
15007
|
} catch (Z) {
|
|
15008
15008
|
Si("FileUploadComponent: Error in handleFileSelect:", Z), k("Error processing selected files. Please try again.");
|
|
15009
15009
|
}
|
|
15010
|
-
}, multiple: !0, style: { display: "none" }, "aria-label": "Select files to upload", accept: i }), Ae.createElement("div", { className: "upload-content", onClick: B, style: { cursor: "pointer", flexDirection: "column", alignItems: "center", display: "flex", textAlign: "center", padding: "12px" } }, Ae.createElement("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: "8px" } }, Ae.createElement("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "10px" } }, Ae.createElement(Um, null), Ae.createElement("p", { style: { margin: 0, fontWeight: "bold" } }, "Upload Files")), Ae.createElement("p", { id: "upload-instructions", style: { margin: 0, fontSize: "14px", color: "#666" } }, "Drag and drop files here or click to select. (Max ", a, "MB each)")), u.length > 0 && Ae.createElement("div", { className: "selected-files", style: { display: "flex", flexWrap: "wrap", gap: "8px", marginTop: "12px", alignItems: "center" } }, Ae.createElement("span", { style: { fontWeight: 400, color: "#888", fontSize: "13px", marginRight: "8px", alignSelf: "center" } }, "Selected files:"), u.map((H,
|
|
15010
|
+
}, multiple: !0, style: { display: "none" }, "aria-label": "Select files to upload", accept: i }), Ae.createElement("div", { className: "upload-content", onClick: B, style: { cursor: "pointer", flexDirection: "column", alignItems: "center", display: "flex", textAlign: "center", padding: "12px" } }, Ae.createElement("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: "8px" } }, Ae.createElement("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "10px" } }, Ae.createElement(Um, null), Ae.createElement("p", { style: { margin: 0, fontWeight: "bold" } }, "Upload Files")), Ae.createElement("p", { id: "upload-instructions", style: { margin: 0, fontSize: "14px", color: "#666" } }, "Drag and drop files here or click to select. (Max ", a, "MB each)")), u.length > 0 && Ae.createElement("div", { className: "selected-files", style: { display: "flex", flexWrap: "wrap", gap: "8px", marginTop: "12px", alignItems: "center" } }, Ae.createElement("span", { style: { fontWeight: 400, color: "#888", fontSize: "13px", marginRight: "8px", alignSelf: "center" } }, "Selected files:"), u.map((H, z) => Ae.createElement("span", { key: z, style: { background: "#fff", color: "#107180", borderRadius: "5px", padding: "4px 12px", fontSize: "14px", marginRight: "4px", marginBottom: "4px", border: "1px solid #ccc", display: "flex", alignItems: "center", gap: "6px", cursor: "pointer" }, onClick: (Z) => {
|
|
15011
15011
|
Z.stopPropagation(), ((W) => {
|
|
15012
15012
|
g(W);
|
|
15013
15013
|
})(H);
|
|
15014
15014
|
} }, Ae.createElement("span", { onClick: (Z) => {
|
|
15015
15015
|
Z.stopPropagation(), ((W) => {
|
|
15016
|
-
const
|
|
15017
|
-
d(
|
|
15018
|
-
})(
|
|
15016
|
+
const j = u.filter((q, $) => $ !== W);
|
|
15017
|
+
d(j), n && n(j);
|
|
15018
|
+
})(z);
|
|
15019
15019
|
}, style: { cursor: "pointer", color: "#888", fontWeight: "bold", fontSize: "15px", marginRight: "4px", userSelect: "none", lineHeight: 1 }, title: "Remove file", "aria-label": "Remove ".concat(H.name) }, "×"), H.name, " (", Wm(H.size), ")"))))), (() => {
|
|
15020
15020
|
if (!h) return null;
|
|
15021
|
-
const H = h.type.startsWith("image/"),
|
|
15022
|
-
return Ae.createElement("div", { style: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, backgroundColor: "rgba(0, 0, 0, 0.7)", display: "flex", justifyContent: "center", alignItems: "center", zIndex: 1e3 }, onClick: N }, Ae.createElement("div", { style: { backgroundColor: "white", padding: "20px", borderRadius: "8px", maxWidth: "90%", maxHeight: "90%", overflow: "auto", position: "relative" }, onClick: (W) => W.stopPropagation() }, Ae.createElement("button", { onClick: N, style: { position: "absolute", top: "10px", right: "10px", background: "none", border: "none", fontSize: "24px", cursor: "pointer", color: "#666" } }, "×"), Ae.createElement("h3", { style: { marginTop: 0, marginBottom: "16px" } }, h.name), H && Ae.createElement("img", { src: URL.createObjectURL(h), alt: h.name, style: { maxWidth: "100%", maxHeight: "70vh" } }),
|
|
15021
|
+
const H = h.type.startsWith("image/"), z = h.type.startsWith("text/"), Z = h.type === "application/pdf";
|
|
15022
|
+
return Ae.createElement("div", { style: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, backgroundColor: "rgba(0, 0, 0, 0.7)", display: "flex", justifyContent: "center", alignItems: "center", zIndex: 1e3 }, onClick: N }, Ae.createElement("div", { style: { backgroundColor: "white", padding: "20px", borderRadius: "8px", maxWidth: "90%", maxHeight: "90%", overflow: "auto", position: "relative" }, onClick: (W) => W.stopPropagation() }, Ae.createElement("button", { onClick: N, style: { position: "absolute", top: "10px", right: "10px", background: "none", border: "none", fontSize: "24px", cursor: "pointer", color: "#666" } }, "×"), Ae.createElement("h3", { style: { marginTop: 0, marginBottom: "16px" } }, h.name), H && Ae.createElement("img", { src: URL.createObjectURL(h), alt: h.name, style: { maxWidth: "100%", maxHeight: "70vh" } }), z && Ae.createElement("pre", { style: { whiteSpace: "pre-wrap", wordWrap: "break-word", maxHeight: "70vh", overflow: "auto", padding: "16px", backgroundColor: "#f5f5f5", borderRadius: "4px" } }, URL.createObjectURL(h)), Z && Ae.createElement("iframe", { src: URL.createObjectURL(h), style: { width: "100%", height: "70vh", border: "none" }, title: h.name }), !H && !z && !Z && Ae.createElement("div", { style: { padding: "20px", textAlign: "center" } }, "Preview not available for this file type")));
|
|
15023
15023
|
})());
|
|
15024
15024
|
};
|
|
15025
15025
|
function Ym(e, n) {
|
|
@@ -16874,83 +16874,85 @@ const pv = Cn(
|
|
|
16874
16874
|
userEmail: s,
|
|
16875
16875
|
userName: f,
|
|
16876
16876
|
accessId: A,
|
|
16877
|
+
actingUser: u,
|
|
16877
16878
|
// Unused props (accepted for API compatibility)
|
|
16878
|
-
ringEffect:
|
|
16879
|
-
defaultOpen:
|
|
16880
|
-
onClose:
|
|
16879
|
+
ringEffect: d,
|
|
16880
|
+
defaultOpen: h,
|
|
16881
|
+
onClose: g,
|
|
16881
16882
|
// Active props
|
|
16882
|
-
open:
|
|
16883
|
-
onOpenChange:
|
|
16884
|
-
embedded:
|
|
16885
|
-
welcome:
|
|
16883
|
+
open: y,
|
|
16884
|
+
onOpenChange: E,
|
|
16885
|
+
embedded: T = !1,
|
|
16886
|
+
welcome: M,
|
|
16886
16887
|
// Analytics
|
|
16887
|
-
onAnalyticsEvent:
|
|
16888
|
-
} = e,
|
|
16888
|
+
onAnalyticsEvent: k
|
|
16889
|
+
} = e, I = Je(null), Q = Je(null), [B, N] = Ue({}), U = nn(() => ({
|
|
16889
16890
|
email: s,
|
|
16890
16891
|
name: f,
|
|
16891
16892
|
accessId: A
|
|
16892
16893
|
}), [s, f, A]);
|
|
16893
16894
|
je(() => {
|
|
16894
|
-
fv(
|
|
16895
|
+
fv(Q.current);
|
|
16895
16896
|
}, []), je(() => {
|
|
16896
16897
|
Xm({
|
|
16897
|
-
ticketForm:
|
|
16898
|
-
setTicketForm:
|
|
16898
|
+
ticketForm: B,
|
|
16899
|
+
setTicketForm: N
|
|
16899
16900
|
});
|
|
16900
|
-
}, [
|
|
16901
|
-
addMessage: (
|
|
16902
|
-
var $,
|
|
16903
|
-
(
|
|
16901
|
+
}, [B]), fd(n, () => ({
|
|
16902
|
+
addMessage: (q) => {
|
|
16903
|
+
var $, ie;
|
|
16904
|
+
(ie = ($ = I.current) == null ? void 0 : $.addMessage) == null || ie.call($, q);
|
|
16904
16905
|
}
|
|
16905
16906
|
}));
|
|
16906
|
-
const
|
|
16907
|
-
|
|
16908
|
-
...
|
|
16909
|
-
type:
|
|
16910
|
-
timestamp:
|
|
16911
|
-
sessionId:
|
|
16907
|
+
const H = M || (i ? Oo.WELCOME_MESSAGE : Oo.WELCOME_MESSAGE_LOGGED_OUT), z = nn(() => Av(), []), Z = Ce((q) => {
|
|
16908
|
+
k && k({
|
|
16909
|
+
...q,
|
|
16910
|
+
type: q.type,
|
|
16911
|
+
timestamp: q.timestamp ?? Date.now(),
|
|
16912
|
+
sessionId: q.sessionId ?? z
|
|
16912
16913
|
});
|
|
16913
|
-
}, [
|
|
16914
|
-
|
|
16915
|
-
...
|
|
16916
|
-
type:
|
|
16917
|
-
timestamp: typeof
|
|
16918
|
-
sessionId: typeof
|
|
16914
|
+
}, [k, z]), W = Ce((q) => {
|
|
16915
|
+
k && k({
|
|
16916
|
+
...q,
|
|
16917
|
+
type: q.type,
|
|
16918
|
+
timestamp: typeof q.timestamp == "number" ? q.timestamp : Date.now(),
|
|
16919
|
+
sessionId: typeof q.sessionId == "string" ? q.sessionId : z
|
|
16919
16920
|
});
|
|
16920
|
-
}, [
|
|
16921
|
-
const
|
|
16922
|
-
welcome:
|
|
16923
|
-
setTicketForm:
|
|
16921
|
+
}, [k, z]), j = nn(() => {
|
|
16922
|
+
const q = Vm({
|
|
16923
|
+
welcome: H,
|
|
16924
|
+
setTicketForm: N,
|
|
16924
16925
|
isLoggedIn: i,
|
|
16925
|
-
trackEvent:
|
|
16926
|
+
trackEvent: Z
|
|
16926
16927
|
}), $ = rv({
|
|
16927
|
-
ticketForm:
|
|
16928
|
-
setTicketForm:
|
|
16929
|
-
userInfo:
|
|
16930
|
-
trackEvent:
|
|
16931
|
-
}),
|
|
16932
|
-
ticketForm:
|
|
16933
|
-
setTicketForm:
|
|
16934
|
-
userInfo:
|
|
16935
|
-
trackEvent:
|
|
16936
|
-
}),
|
|
16937
|
-
sessionId:
|
|
16928
|
+
ticketForm: B,
|
|
16929
|
+
setTicketForm: N,
|
|
16930
|
+
userInfo: U,
|
|
16931
|
+
trackEvent: Z
|
|
16932
|
+
}), ie = iv({
|
|
16933
|
+
ticketForm: B,
|
|
16934
|
+
setTicketForm: N,
|
|
16935
|
+
userInfo: U,
|
|
16936
|
+
trackEvent: Z
|
|
16937
|
+
}), se = uv({
|
|
16938
|
+
sessionId: z,
|
|
16938
16939
|
apiKey: a,
|
|
16939
|
-
trackEvent:
|
|
16940
|
-
}),
|
|
16941
|
-
...z,
|
|
16942
|
-
...$,
|
|
16940
|
+
trackEvent: Z
|
|
16941
|
+
}), le = {
|
|
16943
16942
|
...q,
|
|
16944
|
-
|
|
16943
|
+
...$,
|
|
16944
|
+
...ie,
|
|
16945
|
+
...se
|
|
16945
16946
|
};
|
|
16946
|
-
return Ym(
|
|
16947
|
-
}, [
|
|
16948
|
-
return /* @__PURE__ */ X("div", { ref:
|
|
16947
|
+
return Ym(le, { disableOnOptions: !0 });
|
|
16948
|
+
}, [H, B, U, z, a, i, Z]);
|
|
16949
|
+
return /* @__PURE__ */ X("div", { ref: Q, children: /* @__PURE__ */ X(
|
|
16949
16950
|
Zu,
|
|
16950
16951
|
{
|
|
16951
|
-
ref:
|
|
16952
|
+
ref: I,
|
|
16952
16953
|
isLoggedIn: i,
|
|
16953
|
-
|
|
16954
|
+
actingUser: u,
|
|
16955
|
+
onAnalyticsEvent: W,
|
|
16954
16956
|
apiKey: a,
|
|
16955
16957
|
qaEndpoint: ki.QA_ENDPOINT,
|
|
16956
16958
|
ratingEndpoint: ki.RATING_ENDPOINT,
|
|
@@ -16958,15 +16960,15 @@ const pv = Cn(
|
|
|
16958
16960
|
logo: Oo.LOGO,
|
|
16959
16961
|
primaryColor: Oo.PRIMARY_COLOR,
|
|
16960
16962
|
secondaryColor: Oo.SECONDARY_COLOR,
|
|
16961
|
-
welcomeMessage:
|
|
16963
|
+
welcomeMessage: H,
|
|
16962
16964
|
tooltipText: Oo.TOOLTIP,
|
|
16963
16965
|
loginUrl: o,
|
|
16964
|
-
open:
|
|
16965
|
-
onOpenChange:
|
|
16966
|
-
embedded:
|
|
16966
|
+
open: y,
|
|
16967
|
+
onOpenChange: E,
|
|
16968
|
+
embedded: T,
|
|
16967
16969
|
footerText: "Need more help?",
|
|
16968
16970
|
footerLink: "https://support.access-ci.org",
|
|
16969
|
-
customFlow:
|
|
16971
|
+
customFlow: j
|
|
16970
16972
|
}
|
|
16971
16973
|
) });
|
|
16972
16974
|
}
|