@botpress/webchat 4.4.7 → 4.4.8
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/.turbo/turbo-build.log +5 -5
- package/dist/index.js +809 -809
- package/dist/index.umd.cjs +31 -31
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -13,14 +13,14 @@ function Cv(e, t = []) {
|
|
|
13
13
|
n = [...n, s];
|
|
14
14
|
const u = (c) => {
|
|
15
15
|
var v;
|
|
16
|
-
const { scope: h, children: d, ...
|
|
17
|
-
return /* @__PURE__ */ T(
|
|
16
|
+
const { scope: h, children: d, ...p } = c, m = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[l]) || a, g = C.useMemo(() => p, Object.values(p));
|
|
17
|
+
return /* @__PURE__ */ T(m.Provider, { value: g, children: d });
|
|
18
18
|
};
|
|
19
19
|
u.displayName = o + "Provider";
|
|
20
20
|
function f(c, h) {
|
|
21
|
-
var
|
|
22
|
-
const d = ((
|
|
23
|
-
if (
|
|
21
|
+
var m;
|
|
22
|
+
const d = ((m = h == null ? void 0 : h[e]) == null ? void 0 : m[l]) || a, p = C.useContext(d);
|
|
23
|
+
if (p) return p;
|
|
24
24
|
if (s !== void 0) return s;
|
|
25
25
|
throw new Error(`\`${c}\` must be used within \`${o}\``);
|
|
26
26
|
}
|
|
@@ -192,16 +192,16 @@ function _v() {
|
|
|
192
192
|
}
|
|
193
193
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, i = e.useEffect, o = e.useLayoutEffect, s = e.useDebugValue;
|
|
194
194
|
function a(c, h) {
|
|
195
|
-
var d = h(),
|
|
195
|
+
var d = h(), p = r({ inst: { value: d, getSnapshot: h } }), m = p[0].inst, g = p[1];
|
|
196
196
|
return o(
|
|
197
197
|
function() {
|
|
198
|
-
|
|
198
|
+
m.value = d, m.getSnapshot = h, l(m) && g({ inst: m });
|
|
199
199
|
},
|
|
200
200
|
[c, d, h]
|
|
201
201
|
), i(
|
|
202
202
|
function() {
|
|
203
|
-
return l(
|
|
204
|
-
l(
|
|
203
|
+
return l(m) && g({ inst: m }), c(function() {
|
|
204
|
+
l(m) && g({ inst: m });
|
|
205
205
|
});
|
|
206
206
|
},
|
|
207
207
|
[c]
|
|
@@ -236,29 +236,29 @@ var fs = {};
|
|
|
236
236
|
var Vu;
|
|
237
237
|
function Fv() {
|
|
238
238
|
return Vu || (Vu = 1, process.env.NODE_ENV !== "production" && function() {
|
|
239
|
-
function e(d,
|
|
240
|
-
return d ===
|
|
239
|
+
function e(d, p) {
|
|
240
|
+
return d === p && (d !== 0 || 1 / d === 1 / p) || d !== d && p !== p;
|
|
241
241
|
}
|
|
242
|
-
function t(d,
|
|
242
|
+
function t(d, p) {
|
|
243
243
|
f || i.startTransition === void 0 || (f = !0, console.error(
|
|
244
244
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
245
245
|
));
|
|
246
|
-
var
|
|
246
|
+
var m = p();
|
|
247
247
|
if (!c) {
|
|
248
|
-
var g =
|
|
249
|
-
o(
|
|
248
|
+
var g = p();
|
|
249
|
+
o(m, g) || (console.error(
|
|
250
250
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
251
251
|
), c = !0);
|
|
252
252
|
}
|
|
253
253
|
g = s({
|
|
254
|
-
inst: { value:
|
|
254
|
+
inst: { value: m, getSnapshot: p }
|
|
255
255
|
});
|
|
256
256
|
var v = g[0].inst, y = g[1];
|
|
257
257
|
return l(
|
|
258
258
|
function() {
|
|
259
|
-
v.value =
|
|
259
|
+
v.value = m, v.getSnapshot = p, n(v) && y({ inst: v });
|
|
260
260
|
},
|
|
261
|
-
[d,
|
|
261
|
+
[d, m, p]
|
|
262
262
|
), a(
|
|
263
263
|
function() {
|
|
264
264
|
return n(v) && y({ inst: v }), d(function() {
|
|
@@ -266,20 +266,20 @@ function Fv() {
|
|
|
266
266
|
});
|
|
267
267
|
},
|
|
268
268
|
[d]
|
|
269
|
-
), u(
|
|
269
|
+
), u(m), m;
|
|
270
270
|
}
|
|
271
271
|
function n(d) {
|
|
272
|
-
var
|
|
272
|
+
var p = d.getSnapshot;
|
|
273
273
|
d = d.value;
|
|
274
274
|
try {
|
|
275
|
-
var
|
|
276
|
-
return !o(d,
|
|
275
|
+
var m = p();
|
|
276
|
+
return !o(d, m);
|
|
277
277
|
} catch {
|
|
278
278
|
return !0;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
|
-
function r(d,
|
|
282
|
-
return
|
|
281
|
+
function r(d, p) {
|
|
282
|
+
return p();
|
|
283
283
|
}
|
|
284
284
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
285
285
|
var i = yt, o = typeof Object.is == "function" ? Object.is : e, s = i.useState, a = i.useEffect, l = i.useLayoutEffect, u = i.useDebugValue, f = !1, c = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
@@ -392,7 +392,7 @@ var dh = { exports: {} };
|
|
|
392
392
|
(function(n, r) {
|
|
393
393
|
e.exports = r();
|
|
394
394
|
})(Mn, function() {
|
|
395
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", a = "minute", l = "hour", u = "day", f = "week", c = "month", h = "quarter", d = "year",
|
|
395
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", a = "minute", l = "hour", u = "day", f = "week", c = "month", h = "quarter", d = "year", p = "date", m = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
|
|
396
396
|
var _ = ["th", "st", "nd", "rd"], D = L % 100;
|
|
397
397
|
return "[" + L + (_[(D - 20) % 10] || _[D] || _[0]) + "]";
|
|
398
398
|
} }, w = function(L, _, D) {
|
|
@@ -408,7 +408,7 @@ var dh = { exports: {} };
|
|
|
408
408
|
}, a: function(L) {
|
|
409
409
|
return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
|
|
410
410
|
}, p: function(L) {
|
|
411
|
-
return { M: c, y: d, w: f, d: u, D:
|
|
411
|
+
return { M: c, y: d, w: f, d: u, D: p, h: l, m: a, s, ms: o, Q: h }[L] || String(L || "").toLowerCase().replace(/s$/, "");
|
|
412
412
|
}, u: function(L) {
|
|
413
413
|
return L === void 0;
|
|
414
414
|
} }, S = "en", k = {};
|
|
@@ -462,7 +462,7 @@ var dh = { exports: {} };
|
|
|
462
462
|
}, _.$utils = function() {
|
|
463
463
|
return O;
|
|
464
464
|
}, _.isValid = function() {
|
|
465
|
-
return this.$d.toString() !==
|
|
465
|
+
return this.$d.toString() !== m;
|
|
466
466
|
}, _.isSame = function(D, U) {
|
|
467
467
|
var B = A(D);
|
|
468
468
|
return this.startOf(U) <= B && B <= this.endOf(U);
|
|
@@ -492,7 +492,7 @@ var dh = { exports: {} };
|
|
|
492
492
|
var K = this.$locale().weekStart || 0, J = (x < K ? x + 7 : x) - K;
|
|
493
493
|
return M(j ? Z - J : Z + (6 - J), V);
|
|
494
494
|
case u:
|
|
495
|
-
case
|
|
495
|
+
case p:
|
|
496
496
|
return $(q + "Hours", 0);
|
|
497
497
|
case l:
|
|
498
498
|
return $(q + "Minutes", 1);
|
|
@@ -506,10 +506,10 @@ var dh = { exports: {} };
|
|
|
506
506
|
}, _.endOf = function(D) {
|
|
507
507
|
return this.startOf(D, !1);
|
|
508
508
|
}, _.$set = function(D, U) {
|
|
509
|
-
var B, j = O.p(D), b = "set" + (this.$u ? "UTC" : ""), M = (B = {}, B[u] = b + "Date", B[
|
|
509
|
+
var B, j = O.p(D), b = "set" + (this.$u ? "UTC" : ""), M = (B = {}, B[u] = b + "Date", B[p] = b + "Date", B[c] = b + "Month", B[d] = b + "FullYear", B[l] = b + "Hours", B[a] = b + "Minutes", B[s] = b + "Seconds", B[o] = b + "Milliseconds", B)[j], $ = j === u ? this.$D + (U - this.$W) : U;
|
|
510
510
|
if (j === c || j === d) {
|
|
511
|
-
var x = this.clone().set(
|
|
512
|
-
x.$d[M]($), x.init(), this.$d = x.set(
|
|
511
|
+
var x = this.clone().set(p, 1);
|
|
512
|
+
x.$d[M]($), x.init(), this.$d = x.set(p, Math.min(this.$D, x.daysInMonth())).$d;
|
|
513
513
|
} else M && this.$d[M]($);
|
|
514
514
|
return this.init(), this;
|
|
515
515
|
}, _.set = function(D, U) {
|
|
@@ -533,7 +533,7 @@ var dh = { exports: {} };
|
|
|
533
533
|
return this.add(-1 * D, U);
|
|
534
534
|
}, _.format = function(D) {
|
|
535
535
|
var U = this, B = this.$locale();
|
|
536
|
-
if (!this.isValid()) return B.invalidDate ||
|
|
536
|
+
if (!this.isValid()) return B.invalidDate || m;
|
|
537
537
|
var j = D || "YYYY-MM-DDTHH:mm:ssZ", b = O.z(this), M = this.$H, $ = this.$m, x = this.$M, V = B.weekdays, Z = B.months, q = B.meridiem, K = function(Y, ee, F, te) {
|
|
538
538
|
return Y && (Y[ee] || Y(U, j)) || F[ee].slice(0, te);
|
|
539
539
|
}, J = function(Y) {
|
|
@@ -652,7 +652,7 @@ var dh = { exports: {} };
|
|
|
652
652
|
return this.$d.toUTCString();
|
|
653
653
|
}, L;
|
|
654
654
|
}(), P = z.prototype;
|
|
655
|
-
return A.prototype = P, [["$ms", o], ["$s", s], ["$m", a], ["$H", l], ["$W", u], ["$M", c], ["$y", d], ["$D",
|
|
655
|
+
return A.prototype = P, [["$ms", o], ["$s", s], ["$m", a], ["$H", l], ["$W", u], ["$M", c], ["$y", d], ["$D", p]].forEach(function(L) {
|
|
656
656
|
P[L[1]] = function(_) {
|
|
657
657
|
return this.$g(_, L[0], L[1]);
|
|
658
658
|
};
|
|
@@ -1291,12 +1291,12 @@ class gt {
|
|
|
1291
1291
|
return n > 0 && (r.padTo = n), this.loc.numberFormatter(r).format(t);
|
|
1292
1292
|
}
|
|
1293
1293
|
formatDateTimeFromString(t, n) {
|
|
1294
|
-
const r = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", o = (d,
|
|
1295
|
-
|
|
1294
|
+
const r = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", o = (d, p) => this.loc.extract(t, d, p), s = (d) => t.isOffsetFixed && t.offset === 0 && d.allowZ ? "Z" : t.isValid ? t.zone.formatOffset(t.ts, d.format) : "", a = () => r ? vb(t) : o({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), l = (d, p) => r ? wb(t, d) : o(p ? { month: d } : { month: d, day: "numeric" }, "month"), u = (d, p) => r ? bb(t, d) : o(
|
|
1295
|
+
p ? { weekday: d } : { weekday: d, month: "long", day: "numeric" },
|
|
1296
1296
|
"weekday"
|
|
1297
1297
|
), f = (d) => {
|
|
1298
|
-
const
|
|
1299
|
-
return
|
|
1298
|
+
const p = gt.macroTokenToFormatOpts(d);
|
|
1299
|
+
return p ? this.formatWithSystemDefault(t, p) : d;
|
|
1300
1300
|
}, c = (d) => r ? xb(t, d) : o({ era: d }, "era"), h = (d) => {
|
|
1301
1301
|
switch (d) {
|
|
1302
1302
|
case "S":
|
|
@@ -1697,8 +1697,8 @@ class sn extends fi {
|
|
|
1697
1697
|
millisecond: 0
|
|
1698
1698
|
});
|
|
1699
1699
|
let d = +n;
|
|
1700
|
-
const
|
|
1701
|
-
return d -=
|
|
1700
|
+
const p = d % 1e3;
|
|
1701
|
+
return d -= p >= 0 ? p : 1e3 + p, (h - d) / (60 * 1e3);
|
|
1702
1702
|
}
|
|
1703
1703
|
/** @override **/
|
|
1704
1704
|
equals(t) {
|
|
@@ -2213,7 +2213,7 @@ function hi(e, t) {
|
|
|
2213
2213
|
}
|
|
2214
2214
|
const Qb = RegExp(`^T?${Bl.source}$`), Zb = /^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
|
2215
2215
|
function Jb(e) {
|
|
2216
|
-
const [t, n, r, i, o, s, a, l, u] = e, f = t[0] === "-", c = l && l[0] === "-", h = (d,
|
|
2216
|
+
const [t, n, r, i, o, s, a, l, u] = e, f = t[0] === "-", c = l && l[0] === "-", h = (d, p = !1) => d !== void 0 && (p || d && f) ? -d : d;
|
|
2217
2217
|
return [
|
|
2218
2218
|
{
|
|
2219
2219
|
years: h(En(n)),
|
|
@@ -3665,7 +3665,7 @@ function $0(e) {
|
|
|
3665
3665
|
return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
3666
3666
|
}
|
|
3667
3667
|
function B0(e, t) {
|
|
3668
|
-
const n = Pt(t), r = Pt(t, "{2}"), i = Pt(t, "{3}"), o = Pt(t, "{4}"), s = Pt(t, "{6}"), a = Pt(t, "{1,2}"), l = Pt(t, "{1,3}"), u = Pt(t, "{1,6}"), f = Pt(t, "{1,9}"), c = Pt(t, "{2,4}"), h = Pt(t, "{4,6}"), d = (g) => ({ regex: RegExp($0(g.val)), deser: ([v]) => v, literal: !0 }),
|
|
3668
|
+
const n = Pt(t), r = Pt(t, "{2}"), i = Pt(t, "{3}"), o = Pt(t, "{4}"), s = Pt(t, "{6}"), a = Pt(t, "{1,2}"), l = Pt(t, "{1,3}"), u = Pt(t, "{1,6}"), f = Pt(t, "{1,9}"), c = Pt(t, "{2,4}"), h = Pt(t, "{4,6}"), d = (g) => ({ regex: RegExp($0(g.val)), deser: ([v]) => v, literal: !0 }), m = ((g) => {
|
|
3669
3669
|
if (e.literal)
|
|
3670
3670
|
return d(g);
|
|
3671
3671
|
switch (g.val) {
|
|
@@ -3771,7 +3771,7 @@ function B0(e, t) {
|
|
|
3771
3771
|
})(e) || {
|
|
3772
3772
|
invalidReason: L0
|
|
3773
3773
|
};
|
|
3774
|
-
return
|
|
3774
|
+
return m.token = e, m;
|
|
3775
3775
|
}
|
|
3776
3776
|
const z0 = {
|
|
3777
3777
|
year: {
|
|
@@ -4331,12 +4331,12 @@ class he {
|
|
|
4331
4331
|
if (u && a)
|
|
4332
4332
|
throw new _r("Can't mix ordinal dates with month/day");
|
|
4333
4333
|
const d = c || s.weekday && !f;
|
|
4334
|
-
let
|
|
4335
|
-
d ? (
|
|
4334
|
+
let p, m, g = hc(i, o);
|
|
4335
|
+
d ? (p = X0, m = Z0, g = Na(g)) : a ? (p = ew, m = J0, g = gs(g)) : (p = dp, m = fp);
|
|
4336
4336
|
let v = !1;
|
|
4337
|
-
for (const R of
|
|
4337
|
+
for (const R of p) {
|
|
4338
4338
|
const N = s[R];
|
|
4339
|
-
xe(N) ? v ? s[R] =
|
|
4339
|
+
xe(N) ? v ? s[R] = m[R] : s[R] = g[R] : v = !0;
|
|
4340
4340
|
}
|
|
4341
4341
|
const y = d ? G0(s) : a ? Q0(s) : lp(s), w = y || up(s);
|
|
4342
4342
|
if (w)
|
|
@@ -5594,12 +5594,12 @@ function ww(e) {
|
|
|
5594
5594
|
const { radius: t, themeMode: n, color: r, variant: i, headerVariant: o } = e;
|
|
5595
5595
|
let s = {}, a = {};
|
|
5596
5596
|
if (r) {
|
|
5597
|
-
const h = Gu(r), d = n === "dark" ? wc(h) : h,
|
|
5597
|
+
const h = Gu(r), d = n === "dark" ? wc(h) : h, p = Gu(nw(rw(Pa(r)))), m = n === "dark" ? wc(p) : p, g = n === "dark" ? "#101010" : "#fdfdfd";
|
|
5598
5598
|
a = Object.entries({ ...d, 1: g }).reduce(
|
|
5599
5599
|
(y, [w, E]) => ({ ...y, [`--bpPrimary-${w}`]: E }),
|
|
5600
5600
|
{}
|
|
5601
5601
|
);
|
|
5602
|
-
const v = Object.entries({ ...
|
|
5602
|
+
const v = Object.entries({ ...m, 1: g }).reduce(
|
|
5603
5603
|
(y, [w, E]) => ({ ...y, [`--bpGray-${w}`]: E }),
|
|
5604
5604
|
{}
|
|
5605
5605
|
);
|
|
@@ -7015,76 +7015,76 @@ function p1(e, t) {
|
|
|
7015
7015
|
if (!e) return [];
|
|
7016
7016
|
t = t || {};
|
|
7017
7017
|
var n = 1, r = 1;
|
|
7018
|
-
function i(
|
|
7019
|
-
var
|
|
7020
|
-
|
|
7021
|
-
var g =
|
|
7022
|
-
r = ~g ?
|
|
7018
|
+
function i(p) {
|
|
7019
|
+
var m = p.match(i1);
|
|
7020
|
+
m && (n += m.length);
|
|
7021
|
+
var g = p.lastIndexOf(f1);
|
|
7022
|
+
r = ~g ? p.length - g : r + p.length;
|
|
7023
7023
|
}
|
|
7024
7024
|
function o() {
|
|
7025
|
-
var
|
|
7026
|
-
return function(
|
|
7027
|
-
return
|
|
7025
|
+
var p = { line: n, column: r };
|
|
7026
|
+
return function(m) {
|
|
7027
|
+
return m.position = new s(p), u(), m;
|
|
7028
7028
|
};
|
|
7029
7029
|
}
|
|
7030
|
-
function s(
|
|
7031
|
-
this.start =
|
|
7030
|
+
function s(p) {
|
|
7031
|
+
this.start = p, this.end = { line: n, column: r }, this.source = t.source;
|
|
7032
7032
|
}
|
|
7033
7033
|
s.prototype.content = e;
|
|
7034
|
-
function a(
|
|
7035
|
-
var
|
|
7036
|
-
t.source + ":" + n + ":" + r + ": " +
|
|
7034
|
+
function a(p) {
|
|
7035
|
+
var m = new Error(
|
|
7036
|
+
t.source + ":" + n + ":" + r + ": " + p
|
|
7037
7037
|
);
|
|
7038
|
-
if (
|
|
7038
|
+
if (m.reason = p, m.filename = t.source, m.line = n, m.column = r, m.source = e, !t.silent) throw m;
|
|
7039
7039
|
}
|
|
7040
|
-
function l(
|
|
7041
|
-
var
|
|
7042
|
-
if (
|
|
7043
|
-
var g =
|
|
7044
|
-
return i(g), e = e.slice(g.length),
|
|
7040
|
+
function l(p) {
|
|
7041
|
+
var m = p.exec(e);
|
|
7042
|
+
if (m) {
|
|
7043
|
+
var g = m[0];
|
|
7044
|
+
return i(g), e = e.slice(g.length), m;
|
|
7045
7045
|
}
|
|
7046
7046
|
}
|
|
7047
7047
|
function u() {
|
|
7048
7048
|
l(o1);
|
|
7049
7049
|
}
|
|
7050
|
-
function f(
|
|
7051
|
-
var
|
|
7052
|
-
for (
|
|
7053
|
-
|
|
7054
|
-
return
|
|
7050
|
+
function f(p) {
|
|
7051
|
+
var m;
|
|
7052
|
+
for (p = p || []; m = c(); )
|
|
7053
|
+
m !== !1 && p.push(m);
|
|
7054
|
+
return p;
|
|
7055
7055
|
}
|
|
7056
7056
|
function c() {
|
|
7057
|
-
var
|
|
7057
|
+
var p = o();
|
|
7058
7058
|
if (!(Nc != e.charAt(0) || Pc != e.charAt(1))) {
|
|
7059
|
-
for (var
|
|
7060
|
-
++
|
|
7061
|
-
if (
|
|
7059
|
+
for (var m = 2; In != e.charAt(m) && (Pc != e.charAt(m) || Nc != e.charAt(m + 1)); )
|
|
7060
|
+
++m;
|
|
7061
|
+
if (m += 2, In === e.charAt(m - 1))
|
|
7062
7062
|
return a("End of comment missing");
|
|
7063
|
-
var g = e.slice(2,
|
|
7064
|
-
return r += 2, i(g), e = e.slice(
|
|
7063
|
+
var g = e.slice(2, m - 2);
|
|
7064
|
+
return r += 2, i(g), e = e.slice(m), r += 2, p({
|
|
7065
7065
|
type: d1,
|
|
7066
7066
|
comment: g
|
|
7067
7067
|
});
|
|
7068
7068
|
}
|
|
7069
7069
|
}
|
|
7070
7070
|
function h() {
|
|
7071
|
-
var
|
|
7072
|
-
if (
|
|
7071
|
+
var p = o(), m = l(s1);
|
|
7072
|
+
if (m) {
|
|
7073
7073
|
if (c(), !l(a1)) return a("property missing ':'");
|
|
7074
|
-
var g = l(l1), v =
|
|
7074
|
+
var g = l(l1), v = p({
|
|
7075
7075
|
type: h1,
|
|
7076
|
-
property: Lc(
|
|
7076
|
+
property: Lc(m[0].replace(Mc, In)),
|
|
7077
7077
|
value: g ? Lc(g[0].replace(Mc, In)) : In
|
|
7078
7078
|
});
|
|
7079
7079
|
return l(u1), v;
|
|
7080
7080
|
}
|
|
7081
7081
|
}
|
|
7082
7082
|
function d() {
|
|
7083
|
-
var
|
|
7084
|
-
f(
|
|
7085
|
-
for (var
|
|
7086
|
-
|
|
7087
|
-
return
|
|
7083
|
+
var p = [];
|
|
7084
|
+
f(p);
|
|
7085
|
+
for (var m; m = h(); )
|
|
7086
|
+
m !== !1 && (p.push(m), f(p));
|
|
7087
|
+
return p;
|
|
7088
7088
|
}
|
|
7089
7089
|
return u(), d();
|
|
7090
7090
|
}
|
|
@@ -7785,7 +7785,7 @@ function ux(e) {
|
|
|
7785
7785
|
if (!i)
|
|
7786
7786
|
return h(w);
|
|
7787
7787
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
|
7788
|
-
return
|
|
7788
|
+
return p(w);
|
|
7789
7789
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
7790
7790
|
}
|
|
7791
7791
|
return t.containerState = {}, e.check(Uc, f, c)(w);
|
|
@@ -7794,15 +7794,15 @@ function ux(e) {
|
|
|
7794
7794
|
return i && y(), v(r), h(w);
|
|
7795
7795
|
}
|
|
7796
7796
|
function c(w) {
|
|
7797
|
-
return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset,
|
|
7797
|
+
return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, p(w);
|
|
7798
7798
|
}
|
|
7799
7799
|
function h(w) {
|
|
7800
|
-
return t.containerState = {}, e.attempt(Uc, d,
|
|
7800
|
+
return t.containerState = {}, e.attempt(Uc, d, p)(w);
|
|
7801
7801
|
}
|
|
7802
7802
|
function d(w) {
|
|
7803
7803
|
return r++, n.push([t.currentConstruct, t.containerState]), h(w);
|
|
7804
7804
|
}
|
|
7805
|
-
function
|
|
7805
|
+
function p(w) {
|
|
7806
7806
|
if (w === null) {
|
|
7807
7807
|
i && y(), v(0), e.consume(w);
|
|
7808
7808
|
return;
|
|
@@ -7811,14 +7811,14 @@ function ux(e) {
|
|
|
7811
7811
|
_tokenizer: i,
|
|
7812
7812
|
contentType: "flow",
|
|
7813
7813
|
previous: o
|
|
7814
|
-
}),
|
|
7814
|
+
}), m(w);
|
|
7815
7815
|
}
|
|
7816
|
-
function
|
|
7816
|
+
function m(w) {
|
|
7817
7817
|
if (w === null) {
|
|
7818
7818
|
g(e.exit("chunkFlow"), !0), v(0), e.consume(w);
|
|
7819
7819
|
return;
|
|
7820
7820
|
}
|
|
7821
|
-
return ue(w) ? (e.consume(w), g(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(w),
|
|
7821
|
+
return ue(w) ? (e.consume(w), g(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(w), m);
|
|
7822
7822
|
}
|
|
7823
7823
|
function g(w, E) {
|
|
7824
7824
|
const S = t.sliceStream(w);
|
|
@@ -7989,8 +7989,8 @@ function px(e, t, n) {
|
|
|
7989
7989
|
}
|
|
7990
7990
|
function h(d) {
|
|
7991
7991
|
if ((d === 45 || st(d)) && r++ < 63) {
|
|
7992
|
-
const
|
|
7993
|
-
return e.consume(d),
|
|
7992
|
+
const p = d === 45 ? h : c;
|
|
7993
|
+
return e.consume(d), p;
|
|
7994
7994
|
}
|
|
7995
7995
|
return n(d);
|
|
7996
7996
|
}
|
|
@@ -8109,7 +8109,7 @@ function xx(e, t, n) {
|
|
|
8109
8109
|
return k === a ? (s++, e.consume(k), f) : s < 3 ? n(k) : (e.exit("codeFencedFenceSequence"), ve(k) ? ke(e, c, "whitespace")(k) : c(k));
|
|
8110
8110
|
}
|
|
8111
8111
|
function c(k) {
|
|
8112
|
-
return k === null || ue(k) ? (e.exit("codeFencedFence"), r.interrupt ? t(k) : e.check(Vc,
|
|
8112
|
+
return k === null || ue(k) ? (e.exit("codeFencedFence"), r.interrupt ? t(k) : e.check(Vc, m, E)(k)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
8113
8113
|
contentType: "string"
|
|
8114
8114
|
}), h(k));
|
|
8115
8115
|
}
|
|
@@ -8119,12 +8119,12 @@ function xx(e, t, n) {
|
|
|
8119
8119
|
function d(k) {
|
|
8120
8120
|
return k === null || ue(k) ? c(k) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
8121
8121
|
contentType: "string"
|
|
8122
|
-
}),
|
|
8123
|
-
}
|
|
8124
|
-
function m(k) {
|
|
8125
|
-
return k === null || ue(k) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), c(k)) : k === 96 && k === a ? n(k) : (e.consume(k), m);
|
|
8122
|
+
}), p(k));
|
|
8126
8123
|
}
|
|
8127
8124
|
function p(k) {
|
|
8125
|
+
return k === null || ue(k) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), c(k)) : k === 96 && k === a ? n(k) : (e.consume(k), p);
|
|
8126
|
+
}
|
|
8127
|
+
function m(k) {
|
|
8128
8128
|
return e.attempt(i, E, g)(k);
|
|
8129
8129
|
}
|
|
8130
8130
|
function g(k) {
|
|
@@ -8134,7 +8134,7 @@ function xx(e, t, n) {
|
|
|
8134
8134
|
return o > 0 && ve(k) ? ke(e, y, "linePrefix", o + 1)(k) : y(k);
|
|
8135
8135
|
}
|
|
8136
8136
|
function y(k) {
|
|
8137
|
-
return k === null || ue(k) ? e.check(Vc,
|
|
8137
|
+
return k === null || ue(k) ? e.check(Vc, m, E)(k) : (e.enter("codeFlowValue"), w(k));
|
|
8138
8138
|
}
|
|
8139
8139
|
function w(k) {
|
|
8140
8140
|
return k === null || ue(k) ? (e.exit("codeFlowValue"), y(k)) : (e.consume(k), w);
|
|
@@ -8454,8 +8454,8 @@ function Dx(e, t) {
|
|
|
8454
8454
|
let s = n._tokenizer;
|
|
8455
8455
|
s || (s = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (s._contentTypeTextTrailing = !0));
|
|
8456
8456
|
const a = s.events, l = [], u = {};
|
|
8457
|
-
let f, c, h = -1, d = n,
|
|
8458
|
-
const g = [
|
|
8457
|
+
let f, c, h = -1, d = n, p = 0, m = 0;
|
|
8458
|
+
const g = [m];
|
|
8459
8459
|
for (; d; ) {
|
|
8460
8460
|
for (; e.get(++i)[1] !== d; )
|
|
8461
8461
|
;
|
|
@@ -8463,13 +8463,13 @@ function Dx(e, t) {
|
|
|
8463
8463
|
}
|
|
8464
8464
|
for (d = n; ++h < a.length; )
|
|
8465
8465
|
// Find a void token that includes a break.
|
|
8466
|
-
a[h][0] === "exit" && a[h - 1][0] === "enter" && a[h][1].type === a[h - 1][1].type && a[h][1].start.line !== a[h][1].end.line && (
|
|
8466
|
+
a[h][0] === "exit" && a[h - 1][0] === "enter" && a[h][1].type === a[h - 1][1].type && a[h][1].start.line !== a[h][1].end.line && (m = h + 1, g.push(m), d._tokenizer = void 0, d.previous = void 0, d = d.next);
|
|
8467
8467
|
for (s.events = [], d ? (d._tokenizer = void 0, d.previous = void 0) : g.pop(), h = g.length; h--; ) {
|
|
8468
8468
|
const v = a.slice(g[h], g[h + 1]), y = o.pop();
|
|
8469
8469
|
l.push([y, y + v.length - 1]), e.splice(y, 2, v);
|
|
8470
8470
|
}
|
|
8471
8471
|
for (l.reverse(), h = -1; ++h < l.length; )
|
|
8472
|
-
u[
|
|
8472
|
+
u[p + l[h][0]] = p + l[h][1], p += l[h][1] - l[h][0] - 1;
|
|
8473
8473
|
return u;
|
|
8474
8474
|
}
|
|
8475
8475
|
const Mx = {
|
|
@@ -8523,7 +8523,7 @@ function Fp(e, t, n, r, i, o, s, a, l) {
|
|
|
8523
8523
|
function c(v) {
|
|
8524
8524
|
return v === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(v), e.exit(o), h) : v === null || v === 32 || v === 41 || vo(v) ? n(v) : (e.enter(r), e.enter(s), e.enter(a), e.enter("chunkString", {
|
|
8525
8525
|
contentType: "string"
|
|
8526
|
-
}),
|
|
8526
|
+
}), m(v));
|
|
8527
8527
|
}
|
|
8528
8528
|
function h(v) {
|
|
8529
8529
|
return v === 62 ? (e.enter(o), e.consume(v), e.exit(o), e.exit(i), e.exit(r), t) : (e.enter(a), e.enter("chunkString", {
|
|
@@ -8531,16 +8531,16 @@ function Fp(e, t, n, r, i, o, s, a, l) {
|
|
|
8531
8531
|
}), d(v));
|
|
8532
8532
|
}
|
|
8533
8533
|
function d(v) {
|
|
8534
|
-
return v === 62 ? (e.exit("chunkString"), e.exit(a), h(v)) : v === null || v === 60 || ue(v) ? n(v) : (e.consume(v), v === 92 ?
|
|
8534
|
+
return v === 62 ? (e.exit("chunkString"), e.exit(a), h(v)) : v === null || v === 60 || ue(v) ? n(v) : (e.consume(v), v === 92 ? p : d);
|
|
8535
8535
|
}
|
|
8536
|
-
function
|
|
8536
|
+
function p(v) {
|
|
8537
8537
|
return v === 60 || v === 62 || v === 92 ? (e.consume(v), d) : d(v);
|
|
8538
8538
|
}
|
|
8539
|
-
function
|
|
8540
|
-
return !f && (v === null || v === 41 || Pe(v)) ? (e.exit("chunkString"), e.exit(a), e.exit(s), e.exit(r), t(v)) : f < u && v === 40 ? (e.consume(v), f++,
|
|
8539
|
+
function m(v) {
|
|
8540
|
+
return !f && (v === null || v === 41 || Pe(v)) ? (e.exit("chunkString"), e.exit(a), e.exit(s), e.exit(r), t(v)) : f < u && v === 40 ? (e.consume(v), f++, m) : v === 41 ? (e.consume(v), f--, m) : v === null || v === 32 || v === 40 || vo(v) ? n(v) : (e.consume(v), v === 92 ? g : m);
|
|
8541
8541
|
}
|
|
8542
8542
|
function g(v) {
|
|
8543
|
-
return v === 40 || v === 41 || v === 92 ? (e.consume(v),
|
|
8543
|
+
return v === 40 || v === 41 || v === 92 ? (e.consume(v), m) : m(v);
|
|
8544
8544
|
}
|
|
8545
8545
|
}
|
|
8546
8546
|
function $p(e, t, n, r, i, o) {
|
|
@@ -8810,19 +8810,19 @@ function Zx(e, t, n) {
|
|
|
8810
8810
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(x), c;
|
|
8811
8811
|
}
|
|
8812
8812
|
function c(x) {
|
|
8813
|
-
return x === 33 ? (e.consume(x), h) : x === 47 ? (e.consume(x), o = !0,
|
|
8813
|
+
return x === 33 ? (e.consume(x), h) : x === 47 ? (e.consume(x), o = !0, m) : x === 63 ? (e.consume(x), i = 3, r.interrupt ? t : b) : ft(x) ? (e.consume(x), s = String.fromCharCode(x), g) : n(x);
|
|
8814
8814
|
}
|
|
8815
8815
|
function h(x) {
|
|
8816
|
-
return x === 45 ? (e.consume(x), i = 2, d) : x === 91 ? (e.consume(x), i = 5, a = 0,
|
|
8816
|
+
return x === 45 ? (e.consume(x), i = 2, d) : x === 91 ? (e.consume(x), i = 5, a = 0, p) : ft(x) ? (e.consume(x), i = 4, r.interrupt ? t : b) : n(x);
|
|
8817
8817
|
}
|
|
8818
8818
|
function d(x) {
|
|
8819
8819
|
return x === 45 ? (e.consume(x), r.interrupt ? t : b) : n(x);
|
|
8820
8820
|
}
|
|
8821
|
-
function
|
|
8821
|
+
function p(x) {
|
|
8822
8822
|
const V = "CDATA[";
|
|
8823
|
-
return x === V.charCodeAt(a++) ? (e.consume(x), a === V.length ? r.interrupt ? t : z :
|
|
8823
|
+
return x === V.charCodeAt(a++) ? (e.consume(x), a === V.length ? r.interrupt ? t : z : p) : n(x);
|
|
8824
8824
|
}
|
|
8825
|
-
function
|
|
8825
|
+
function m(x) {
|
|
8826
8826
|
return ft(x) ? (e.consume(x), s = String.fromCharCode(x), g) : n(x);
|
|
8827
8827
|
}
|
|
8828
8828
|
function g(x) {
|
|
@@ -8934,7 +8934,7 @@ function tS(e, t, n) {
|
|
|
8934
8934
|
return b === 33 ? (e.consume(b), u) : b === 47 ? (e.consume(b), S) : b === 63 ? (e.consume(b), w) : ft(b) ? (e.consume(b), R) : n(b);
|
|
8935
8935
|
}
|
|
8936
8936
|
function u(b) {
|
|
8937
|
-
return b === 45 ? (e.consume(b), f) : b === 91 ? (e.consume(b), o = 0,
|
|
8937
|
+
return b === 45 ? (e.consume(b), f) : b === 91 ? (e.consume(b), o = 0, p) : ft(b) ? (e.consume(b), y) : n(b);
|
|
8938
8938
|
}
|
|
8939
8939
|
function f(b) {
|
|
8940
8940
|
return b === 45 ? (e.consume(b), d) : n(b);
|
|
@@ -8948,18 +8948,18 @@ function tS(e, t, n) {
|
|
|
8948
8948
|
function d(b) {
|
|
8949
8949
|
return b === 62 ? D(b) : b === 45 ? h(b) : c(b);
|
|
8950
8950
|
}
|
|
8951
|
-
function
|
|
8951
|
+
function p(b) {
|
|
8952
8952
|
const M = "CDATA[";
|
|
8953
|
-
return b === M.charCodeAt(o++) ? (e.consume(b), o === M.length ?
|
|
8953
|
+
return b === M.charCodeAt(o++) ? (e.consume(b), o === M.length ? m : p) : n(b);
|
|
8954
8954
|
}
|
|
8955
|
-
function
|
|
8956
|
-
return b === null ? n(b) : b === 93 ? (e.consume(b), g) : ue(b) ? (s =
|
|
8955
|
+
function m(b) {
|
|
8956
|
+
return b === null ? n(b) : b === 93 ? (e.consume(b), g) : ue(b) ? (s = m, U(b)) : (e.consume(b), m);
|
|
8957
8957
|
}
|
|
8958
8958
|
function g(b) {
|
|
8959
|
-
return b === 93 ? (e.consume(b), v) :
|
|
8959
|
+
return b === 93 ? (e.consume(b), v) : m(b);
|
|
8960
8960
|
}
|
|
8961
8961
|
function v(b) {
|
|
8962
|
-
return b === 62 ? D(b) : b === 93 ? (e.consume(b), v) :
|
|
8962
|
+
return b === 62 ? D(b) : b === 93 ? (e.consume(b), v) : m(b);
|
|
8963
8963
|
}
|
|
8964
8964
|
function y(b) {
|
|
8965
8965
|
return b === null || b === 62 ? D(b) : ue(b) ? (s = y, U(b)) : (e.consume(b), y);
|
|
@@ -9239,11 +9239,11 @@ function bS(e, t, n) {
|
|
|
9239
9239
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, s = 0;
|
|
9240
9240
|
return a;
|
|
9241
9241
|
function a(d) {
|
|
9242
|
-
const
|
|
9243
|
-
if (
|
|
9244
|
-
if (r.containerState.type || (r.containerState.type =
|
|
9242
|
+
const p = r.containerState.type || (d === 42 || d === 43 || d === 45 ? "listUnordered" : "listOrdered");
|
|
9243
|
+
if (p === "listUnordered" ? !r.containerState.marker || d === r.containerState.marker : za(d)) {
|
|
9244
|
+
if (r.containerState.type || (r.containerState.type = p, e.enter(p, {
|
|
9245
9245
|
_container: !0
|
|
9246
|
-
})),
|
|
9246
|
+
})), p === "listUnordered")
|
|
9247
9247
|
return e.enter("listItemPrefix"), d === 42 || d === 45 ? e.check(io, n, u)(d) : u(d);
|
|
9248
9248
|
if (!r.interrupt || d === 49)
|
|
9249
9249
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), l(d);
|
|
@@ -9558,9 +9558,9 @@ function US(e, t, n) {
|
|
|
9558
9558
|
}, u = {
|
|
9559
9559
|
code: null,
|
|
9560
9560
|
containerState: {},
|
|
9561
|
-
defineSkip:
|
|
9561
|
+
defineSkip: m,
|
|
9562
9562
|
events: [],
|
|
9563
|
-
now:
|
|
9563
|
+
now: p,
|
|
9564
9564
|
parser: e,
|
|
9565
9565
|
previous: null,
|
|
9566
9566
|
sliceSerialize: h,
|
|
@@ -9578,7 +9578,7 @@ function US(e, t, n) {
|
|
|
9578
9578
|
function d(O) {
|
|
9579
9579
|
return jS(s, O);
|
|
9580
9580
|
}
|
|
9581
|
-
function
|
|
9581
|
+
function p() {
|
|
9582
9582
|
const {
|
|
9583
9583
|
_bufferIndex: O,
|
|
9584
9584
|
_index: z,
|
|
@@ -9594,7 +9594,7 @@ function US(e, t, n) {
|
|
|
9594
9594
|
offset: _
|
|
9595
9595
|
};
|
|
9596
9596
|
}
|
|
9597
|
-
function
|
|
9597
|
+
function m(O) {
|
|
9598
9598
|
i[O.line] = O.column, A();
|
|
9599
9599
|
}
|
|
9600
9600
|
function g() {
|
|
@@ -9619,11 +9619,11 @@ function US(e, t, n) {
|
|
|
9619
9619
|
}
|
|
9620
9620
|
function w(O, z) {
|
|
9621
9621
|
const P = z || {};
|
|
9622
|
-
return P.type = O, P.start =
|
|
9622
|
+
return P.type = O, P.start = p(), u.events.push(["enter", P, u]), a.push(P), P;
|
|
9623
9623
|
}
|
|
9624
9624
|
function E(O) {
|
|
9625
9625
|
const z = a.pop();
|
|
9626
|
-
return z.end =
|
|
9626
|
+
return z.end = p(), u.events.push(["exit", z, u]), z;
|
|
9627
9627
|
}
|
|
9628
9628
|
function S(O, z) {
|
|
9629
9629
|
R(O, z.from);
|
|
@@ -9686,7 +9686,7 @@ function US(e, t, n) {
|
|
|
9686
9686
|
O.resolveAll && !o.includes(O) && o.push(O), O.resolve && St(u.events, z, u.events.length - z, O.resolve(u.events.slice(z), u)), O.resolveTo && (u.events = O.resolveTo(u.events, u));
|
|
9687
9687
|
}
|
|
9688
9688
|
function N() {
|
|
9689
|
-
const O =
|
|
9689
|
+
const O = p(), z = u.previous, P = u.currentConstruct, L = u.events.length, _ = Array.from(a);
|
|
9690
9690
|
return {
|
|
9691
9691
|
from: L,
|
|
9692
9692
|
restore: D
|
|
@@ -9893,9 +9893,9 @@ function JS(e) {
|
|
|
9893
9893
|
characterReferenceValue: q,
|
|
9894
9894
|
characterReference: K,
|
|
9895
9895
|
codeFenced: l(g),
|
|
9896
|
-
codeFencedFence:
|
|
9896
|
+
codeFencedFence: m,
|
|
9897
9897
|
codeFencedFenceInfo: d,
|
|
9898
|
-
codeFencedFenceMeta:
|
|
9898
|
+
codeFencedFenceMeta: p,
|
|
9899
9899
|
codeFlowValue: A,
|
|
9900
9900
|
codeIndented: l(v),
|
|
9901
9901
|
codeText: l(_),
|
|
@@ -10085,11 +10085,11 @@ function JS(e) {
|
|
|
10085
10085
|
const H = this.resume(), W = this.stack[this.stack.length - 1];
|
|
10086
10086
|
W.lang = H;
|
|
10087
10087
|
}
|
|
10088
|
-
function
|
|
10088
|
+
function p() {
|
|
10089
10089
|
const H = this.resume(), W = this.stack[this.stack.length - 1];
|
|
10090
10090
|
W.meta = H;
|
|
10091
10091
|
}
|
|
10092
|
-
function
|
|
10092
|
+
function m() {
|
|
10093
10093
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
10094
10094
|
}
|
|
10095
10095
|
function g() {
|
|
@@ -10671,8 +10671,8 @@ function xk(e, t, n) {
|
|
|
10671
10671
|
for (; ++l < a; ) {
|
|
10672
10672
|
const c = t.children[l], h = {}, d = s ? s[l] : void 0;
|
|
10673
10673
|
d && (h.align = d);
|
|
10674
|
-
let
|
|
10675
|
-
c && (
|
|
10674
|
+
let p = { type: "element", tagName: o, properties: h, children: [] };
|
|
10675
|
+
c && (p.children = e.all(c), e.patch(c, p), p = e.applyData(c, p)), u.push(p);
|
|
10676
10676
|
}
|
|
10677
10677
|
const f = {
|
|
10678
10678
|
type: "element",
|
|
@@ -10950,11 +10950,11 @@ function Nk(e) {
|
|
|
10950
10950
|
continue;
|
|
10951
10951
|
const f = e.all(u), c = String(u.identifier).toUpperCase(), h = br(c.toLowerCase());
|
|
10952
10952
|
let d = 0;
|
|
10953
|
-
const
|
|
10954
|
-
for (;
|
|
10955
|
-
|
|
10953
|
+
const p = [], m = e.footnoteCounts.get(c);
|
|
10954
|
+
for (; m !== void 0 && ++d <= m; ) {
|
|
10955
|
+
p.length > 0 && p.push({ type: "text", value: " " });
|
|
10956
10956
|
let y = typeof n == "string" ? n : n(l, d);
|
|
10957
|
-
typeof y == "string" && (y = { type: "text", value: y }),
|
|
10957
|
+
typeof y == "string" && (y = { type: "text", value: y }), p.push({
|
|
10958
10958
|
type: "element",
|
|
10959
10959
|
tagName: "a",
|
|
10960
10960
|
properties: {
|
|
@@ -10969,9 +10969,9 @@ function Nk(e) {
|
|
|
10969
10969
|
const g = f[f.length - 1];
|
|
10970
10970
|
if (g && g.type === "element" && g.tagName === "p") {
|
|
10971
10971
|
const y = g.children[g.children.length - 1];
|
|
10972
|
-
y && y.type === "text" ? y.value += " " : g.children.push({ type: "text", value: " " }), g.children.push(...
|
|
10972
|
+
y && y.type === "text" ? y.value += " " : g.children.push({ type: "text", value: " " }), g.children.push(...p);
|
|
10973
10973
|
} else
|
|
10974
|
-
f.push(...
|
|
10974
|
+
f.push(...p);
|
|
10975
10975
|
const v = {
|
|
10976
10976
|
type: "element",
|
|
10977
10977
|
tagName: "li",
|
|
@@ -11121,7 +11121,7 @@ function Qp(e, t, n, r) {
|
|
|
11121
11121
|
}
|
|
11122
11122
|
return h;
|
|
11123
11123
|
function h() {
|
|
11124
|
-
let d = Gp,
|
|
11124
|
+
let d = Gp, p, m, g;
|
|
11125
11125
|
if ((!t || o(l, u, f[f.length - 1] || void 0)) && (d = Hk(n(l, f)), d[0] === Ua))
|
|
11126
11126
|
return d;
|
|
11127
11127
|
if ("children" in l && l.children) {
|
|
@@ -11130,11 +11130,11 @@ function Qp(e, t, n, r) {
|
|
|
11130
11130
|
l
|
|
11131
11131
|
);
|
|
11132
11132
|
if (v.children && d[0] !== zk)
|
|
11133
|
-
for (
|
|
11134
|
-
const y = v.children[
|
|
11135
|
-
if (
|
|
11136
|
-
return
|
|
11137
|
-
|
|
11133
|
+
for (m = (r ? v.children.length : -1) + s, g = f.concat(v); m > -1 && m < v.children.length; ) {
|
|
11134
|
+
const y = v.children[m];
|
|
11135
|
+
if (p = a(y, m, g)(), p[0] === Ua)
|
|
11136
|
+
return p;
|
|
11137
|
+
m = typeof p[1] == "number" ? p[1] : m + s;
|
|
11138
11138
|
}
|
|
11139
11139
|
}
|
|
11140
11140
|
return d;
|
|
@@ -11179,7 +11179,7 @@ function jk(e, t) {
|
|
|
11179
11179
|
return d(a, f, c);
|
|
11180
11180
|
if (a.options.passThrough && a.options.passThrough.includes(h)) {
|
|
11181
11181
|
if ("children" in f) {
|
|
11182
|
-
const { children:
|
|
11182
|
+
const { children: m, ...g } = f, v = wo(g);
|
|
11183
11183
|
return v.children = a.all(f), v;
|
|
11184
11184
|
}
|
|
11185
11185
|
return wo(f);
|
|
@@ -11192,13 +11192,13 @@ function jk(e, t) {
|
|
|
11192
11192
|
const h = f.children;
|
|
11193
11193
|
let d = -1;
|
|
11194
11194
|
for (; ++d < h.length; ) {
|
|
11195
|
-
const
|
|
11196
|
-
if (
|
|
11197
|
-
if (d && h[d - 1].type === "break" && (!Array.isArray(
|
|
11198
|
-
const
|
|
11199
|
-
|
|
11195
|
+
const p = a.one(h[d], f);
|
|
11196
|
+
if (p) {
|
|
11197
|
+
if (d && h[d - 1].type === "break" && (!Array.isArray(p) && p.type === "text" && (p.value = nf(p.value)), !Array.isArray(p) && p.type === "element")) {
|
|
11198
|
+
const m = p.children[0];
|
|
11199
|
+
m && m.type === "text" && (m.value = nf(m.value));
|
|
11200
11200
|
}
|
|
11201
|
-
Array.isArray(
|
|
11201
|
+
Array.isArray(p) ? c.push(...p) : c.push(p);
|
|
11202
11202
|
}
|
|
11203
11203
|
}
|
|
11204
11204
|
}
|
|
@@ -12145,8 +12145,8 @@ class iu extends uE {
|
|
|
12145
12145
|
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
12146
12146
|
/** @type {unknown} */
|
|
12147
12147
|
c
|
|
12148
|
-
),
|
|
12149
|
-
hE(
|
|
12148
|
+
), p = r.stringify(d, h);
|
|
12149
|
+
hE(p) ? h.value = p : h.result = p, u(
|
|
12150
12150
|
f,
|
|
12151
12151
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
12152
12152
|
h
|
|
@@ -12415,9 +12415,9 @@ class iu extends uE {
|
|
|
12415
12415
|
if (h === -1)
|
|
12416
12416
|
r.push([u, ...f]);
|
|
12417
12417
|
else if (f.length > 0) {
|
|
12418
|
-
let [d, ...
|
|
12419
|
-
const
|
|
12420
|
-
Va(
|
|
12418
|
+
let [d, ...p] = f;
|
|
12419
|
+
const m = r[h][1];
|
|
12420
|
+
Va(m) && Va(d) && (d = Cs(!0, m, d)), r[h] = [u, d, ...p];
|
|
12421
12421
|
}
|
|
12422
12422
|
}
|
|
12423
12423
|
}
|
|
@@ -12493,12 +12493,12 @@ const mE = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
12493
12493
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
12494
12494
|
];
|
|
12495
12495
|
function Xp(e) {
|
|
12496
|
-
const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, s = e.disallowedElements, a = e.rehypePlugins || mf, l = e.remarkPlugins || mf, u = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...gf } : gf, f = e.skipHtml, c = e.unwrapDisallowed, h = e.urlTransform || em, d = fE().use(ek).use(l).use(Kk, u).use(a),
|
|
12497
|
-
typeof r == "string" && (
|
|
12496
|
+
const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, s = e.disallowedElements, a = e.rehypePlugins || mf, l = e.remarkPlugins || mf, u = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...gf } : gf, f = e.skipHtml, c = e.unwrapDisallowed, h = e.urlTransform || em, d = fE().use(ek).use(l).use(Kk, u).use(a), p = new Jp();
|
|
12497
|
+
typeof r == "string" && (p.value = r);
|
|
12498
12498
|
for (const y of yE)
|
|
12499
12499
|
Object.hasOwn(e, y.from) && ("" + y.from + (y.to ? "use `" + y.to + "` instead" : "remove it") + mE + y.id, void 0);
|
|
12500
|
-
const
|
|
12501
|
-
let g = d.runSync(
|
|
12500
|
+
const m = d.parse(p);
|
|
12501
|
+
let g = d.runSync(m, p);
|
|
12502
12502
|
return i && (g = {
|
|
12503
12503
|
type: "element",
|
|
12504
12504
|
tagName: "div",
|
|
@@ -12557,10 +12557,10 @@ function tm(e, t, n) {
|
|
|
12557
12557
|
function a(u, f) {
|
|
12558
12558
|
let c = -1, h;
|
|
12559
12559
|
for (; ++c < f.length; ) {
|
|
12560
|
-
const d = f[c],
|
|
12560
|
+
const d = f[c], p = h ? h.children : void 0;
|
|
12561
12561
|
if (i(
|
|
12562
12562
|
d,
|
|
12563
|
-
|
|
12563
|
+
p ? p.indexOf(d) : void 0,
|
|
12564
12564
|
h
|
|
12565
12565
|
))
|
|
12566
12566
|
return;
|
|
@@ -12571,7 +12571,7 @@ function tm(e, t, n) {
|
|
|
12571
12571
|
}
|
|
12572
12572
|
function l(u, f) {
|
|
12573
12573
|
const c = f[f.length - 1], h = o[s][0], d = o[s][1];
|
|
12574
|
-
let
|
|
12574
|
+
let p = 0;
|
|
12575
12575
|
const g = c.children.indexOf(u);
|
|
12576
12576
|
let v = !1, y = [];
|
|
12577
12577
|
h.lastIndex = 0;
|
|
@@ -12583,14 +12583,14 @@ function tm(e, t, n) {
|
|
|
12583
12583
|
stack: [...f, u]
|
|
12584
12584
|
};
|
|
12585
12585
|
let k = d(...w, S);
|
|
12586
|
-
if (typeof k == "string" && (k = k.length > 0 ? { type: "text", value: k } : void 0), k === !1 ? h.lastIndex = E + 1 : (
|
|
12586
|
+
if (typeof k == "string" && (k = k.length > 0 ? { type: "text", value: k } : void 0), k === !1 ? h.lastIndex = E + 1 : (p !== E && y.push({
|
|
12587
12587
|
type: "text",
|
|
12588
|
-
value: u.value.slice(
|
|
12589
|
-
}), Array.isArray(k) ? y.push(...k) : k && y.push(k),
|
|
12588
|
+
value: u.value.slice(p, E)
|
|
12589
|
+
}), Array.isArray(k) ? y.push(...k) : k && y.push(k), p = E + w[0].length, v = !0), !h.global)
|
|
12590
12590
|
break;
|
|
12591
12591
|
w = h.exec(u.value);
|
|
12592
12592
|
}
|
|
12593
|
-
return v ? (
|
|
12593
|
+
return v ? (p < u.value.length && y.push({ type: "text", value: u.value.slice(p) }), c.children.splice(g, 1, ...y)) : y = [u], g + y.length;
|
|
12594
12594
|
}
|
|
12595
12595
|
}
|
|
12596
12596
|
function bE(e) {
|
|
@@ -12897,7 +12897,7 @@ function nC(e, t) {
|
|
|
12897
12897
|
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || tC, o = [], s = [], a = [], l = [];
|
|
12898
12898
|
let u = 0, f = -1;
|
|
12899
12899
|
for (; ++f < e.length; ) {
|
|
12900
|
-
const
|
|
12900
|
+
const m = [], g = [];
|
|
12901
12901
|
let v = -1;
|
|
12902
12902
|
for (e[f].length > u && (u = e[f].length); ++v < e[f].length; ) {
|
|
12903
12903
|
const y = rC(e[f][v]);
|
|
@@ -12905,25 +12905,25 @@ function nC(e, t) {
|
|
|
12905
12905
|
const w = i(y);
|
|
12906
12906
|
g[v] = w, (l[v] === void 0 || w > l[v]) && (l[v] = w);
|
|
12907
12907
|
}
|
|
12908
|
-
|
|
12908
|
+
m.push(y);
|
|
12909
12909
|
}
|
|
12910
|
-
s[f] =
|
|
12910
|
+
s[f] = m, a[f] = g;
|
|
12911
12911
|
}
|
|
12912
12912
|
let c = -1;
|
|
12913
12913
|
if (typeof r == "object" && "length" in r)
|
|
12914
12914
|
for (; ++c < u; )
|
|
12915
12915
|
o[c] = vf(r[c]);
|
|
12916
12916
|
else {
|
|
12917
|
-
const
|
|
12917
|
+
const m = vf(r);
|
|
12918
12918
|
for (; ++c < u; )
|
|
12919
|
-
o[c] =
|
|
12919
|
+
o[c] = m;
|
|
12920
12920
|
}
|
|
12921
12921
|
c = -1;
|
|
12922
12922
|
const h = [], d = [];
|
|
12923
12923
|
for (; ++c < u; ) {
|
|
12924
|
-
const
|
|
12924
|
+
const m = o[c];
|
|
12925
12925
|
let g = "", v = "";
|
|
12926
|
-
|
|
12926
|
+
m === 99 ? (g = ":", v = ":") : m === 108 ? g = ":" : m === 114 && (v = ":");
|
|
12927
12927
|
let y = n.alignDelimiters === !1 ? 1 : Math.max(
|
|
12928
12928
|
1,
|
|
12929
12929
|
l[c] - g.length - v.length
|
|
@@ -12932,13 +12932,13 @@ function nC(e, t) {
|
|
|
12932
12932
|
n.alignDelimiters !== !1 && (y = g.length + y + v.length, y > l[c] && (l[c] = y), d[c] = y), h[c] = w;
|
|
12933
12933
|
}
|
|
12934
12934
|
s.splice(1, 0, h), a.splice(1, 0, d), f = -1;
|
|
12935
|
-
const
|
|
12935
|
+
const p = [];
|
|
12936
12936
|
for (; ++f < s.length; ) {
|
|
12937
|
-
const
|
|
12937
|
+
const m = s[f], g = a[f];
|
|
12938
12938
|
c = -1;
|
|
12939
12939
|
const v = [];
|
|
12940
12940
|
for (; ++c < u; ) {
|
|
12941
|
-
const y =
|
|
12941
|
+
const y = m[c] || "";
|
|
12942
12942
|
let w = "", E = "";
|
|
12943
12943
|
if (n.alignDelimiters !== !1) {
|
|
12944
12944
|
const S = l[c] - (g[c] || 0), k = o[c];
|
|
@@ -12948,11 +12948,11 @@ function nC(e, t) {
|
|
|
12948
12948
|
// empty: there will be a closing space.
|
|
12949
12949
|
!(n.alignDelimiters === !1 && y === "") && (n.delimiterStart !== !1 || c) && v.push(" "), n.alignDelimiters !== !1 && v.push(w), v.push(y), n.alignDelimiters !== !1 && v.push(E), n.padding !== !1 && v.push(" "), (n.delimiterEnd !== !1 || c !== u - 1) && v.push("|");
|
|
12950
12950
|
}
|
|
12951
|
-
|
|
12951
|
+
p.push(
|
|
12952
12952
|
n.delimiterEnd === !1 ? v.join("").replace(/ +$/, "") : v.join("")
|
|
12953
12953
|
);
|
|
12954
12954
|
}
|
|
12955
|
-
return
|
|
12955
|
+
return p.join(`
|
|
12956
12956
|
`);
|
|
12957
12957
|
}
|
|
12958
12958
|
function rC(e) {
|
|
@@ -13638,25 +13638,25 @@ function UC(e) {
|
|
|
13638
13638
|
tableRow: a
|
|
13639
13639
|
}
|
|
13640
13640
|
};
|
|
13641
|
-
function s(d,
|
|
13642
|
-
return u(f(d,
|
|
13641
|
+
function s(d, p, m, g) {
|
|
13642
|
+
return u(f(d, m, g), d.align);
|
|
13643
13643
|
}
|
|
13644
|
-
function a(d,
|
|
13645
|
-
const v = c(d,
|
|
13644
|
+
function a(d, p, m, g) {
|
|
13645
|
+
const v = c(d, m, g), y = u([v]);
|
|
13646
13646
|
return y.slice(0, y.indexOf(`
|
|
13647
13647
|
`));
|
|
13648
13648
|
}
|
|
13649
|
-
function l(d,
|
|
13650
|
-
const v =
|
|
13649
|
+
function l(d, p, m, g) {
|
|
13650
|
+
const v = m.enter("tableCell"), y = m.enter("phrasing"), w = m.containerPhrasing(d, {
|
|
13651
13651
|
...g,
|
|
13652
13652
|
before: o,
|
|
13653
13653
|
after: o
|
|
13654
13654
|
});
|
|
13655
13655
|
return y(), v(), w;
|
|
13656
13656
|
}
|
|
13657
|
-
function u(d,
|
|
13657
|
+
function u(d, p) {
|
|
13658
13658
|
return nC(d, {
|
|
13659
|
-
align:
|
|
13659
|
+
align: p,
|
|
13660
13660
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
13661
13661
|
alignDelimiters: r,
|
|
13662
13662
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
@@ -13665,25 +13665,25 @@ function UC(e) {
|
|
|
13665
13665
|
stringLength: i
|
|
13666
13666
|
});
|
|
13667
13667
|
}
|
|
13668
|
-
function f(d,
|
|
13668
|
+
function f(d, p, m) {
|
|
13669
13669
|
const g = d.children;
|
|
13670
13670
|
let v = -1;
|
|
13671
|
-
const y = [], w =
|
|
13671
|
+
const y = [], w = p.enter("table");
|
|
13672
13672
|
for (; ++v < g.length; )
|
|
13673
|
-
y[v] = c(g[v],
|
|
13673
|
+
y[v] = c(g[v], p, m);
|
|
13674
13674
|
return w(), y;
|
|
13675
13675
|
}
|
|
13676
|
-
function c(d,
|
|
13676
|
+
function c(d, p, m) {
|
|
13677
13677
|
const g = d.children;
|
|
13678
13678
|
let v = -1;
|
|
13679
|
-
const y = [], w =
|
|
13679
|
+
const y = [], w = p.enter("tableRow");
|
|
13680
13680
|
for (; ++v < g.length; )
|
|
13681
|
-
y[v] = l(g[v], d,
|
|
13681
|
+
y[v] = l(g[v], d, p, m);
|
|
13682
13682
|
return w(), y;
|
|
13683
13683
|
}
|
|
13684
|
-
function h(d,
|
|
13685
|
-
let g = gm.inlineCode(d,
|
|
13686
|
-
return
|
|
13684
|
+
function h(d, p, m) {
|
|
13685
|
+
let g = gm.inlineCode(d, p, m);
|
|
13686
|
+
return m.stack.includes("tableCell") && (g = g.replace(/\|/g, "\\$&")), g;
|
|
13687
13687
|
}
|
|
13688
13688
|
}
|
|
13689
13689
|
function jC() {
|
|
@@ -14086,36 +14086,36 @@ function fA(e, t, n) {
|
|
|
14086
14086
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
14087
14087
|
let o, s = 0, a;
|
|
14088
14088
|
return l;
|
|
14089
|
-
function l(
|
|
14090
|
-
return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(
|
|
14089
|
+
function l(p) {
|
|
14090
|
+
return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(p), e.exit("gfmFootnoteDefinitionLabelMarker"), u;
|
|
14091
14091
|
}
|
|
14092
|
-
function u(
|
|
14093
|
-
return
|
|
14092
|
+
function u(p) {
|
|
14093
|
+
return p === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(p), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", f) : n(p);
|
|
14094
14094
|
}
|
|
14095
|
-
function f(
|
|
14095
|
+
function f(p) {
|
|
14096
14096
|
if (
|
|
14097
14097
|
// Too long.
|
|
14098
14098
|
s > 999 || // Closing brace with nothing.
|
|
14099
|
-
|
|
14099
|
+
p === 93 && !a || // Space or tab is not supported by GFM for some reason.
|
|
14100
14100
|
// `\n` and `[` not being supported makes sense.
|
|
14101
|
-
|
|
14101
|
+
p === null || p === 91 || Pe(p)
|
|
14102
14102
|
)
|
|
14103
|
-
return n(
|
|
14104
|
-
if (
|
|
14103
|
+
return n(p);
|
|
14104
|
+
if (p === 93) {
|
|
14105
14105
|
e.exit("chunkString");
|
|
14106
|
-
const
|
|
14107
|
-
return o = Bt(r.sliceSerialize(
|
|
14106
|
+
const m = e.exit("gfmFootnoteDefinitionLabelString");
|
|
14107
|
+
return o = Bt(r.sliceSerialize(m)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(p), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), h;
|
|
14108
14108
|
}
|
|
14109
|
-
return Pe(
|
|
14109
|
+
return Pe(p) || (a = !0), s++, e.consume(p), p === 92 ? c : f;
|
|
14110
14110
|
}
|
|
14111
|
-
function c(
|
|
14112
|
-
return
|
|
14111
|
+
function c(p) {
|
|
14112
|
+
return p === 91 || p === 92 || p === 93 ? (e.consume(p), s++, f) : f(p);
|
|
14113
14113
|
}
|
|
14114
|
-
function h(
|
|
14115
|
-
return
|
|
14114
|
+
function h(p) {
|
|
14115
|
+
return p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), i.includes(o) || i.push(o), ke(e, d, "gfmFootnoteDefinitionWhitespace")) : n(p);
|
|
14116
14116
|
}
|
|
14117
|
-
function d(
|
|
14118
|
-
return t(
|
|
14117
|
+
function d(p) {
|
|
14118
|
+
return t(p);
|
|
14119
14119
|
}
|
|
14120
14120
|
}
|
|
14121
14121
|
function dA(e, t, n) {
|
|
@@ -14180,16 +14180,16 @@ function mA(e) {
|
|
|
14180
14180
|
const u = this.previous, f = this.events;
|
|
14181
14181
|
let c = 0;
|
|
14182
14182
|
return h;
|
|
14183
|
-
function h(
|
|
14184
|
-
return u === 126 && f[f.length - 1][1].type !== "characterEscape" ? l(
|
|
14183
|
+
function h(p) {
|
|
14184
|
+
return u === 126 && f[f.length - 1][1].type !== "characterEscape" ? l(p) : (s.enter("strikethroughSequenceTemporary"), d(p));
|
|
14185
14185
|
}
|
|
14186
|
-
function d(
|
|
14187
|
-
const
|
|
14188
|
-
if (
|
|
14189
|
-
return c > 1 ? l(
|
|
14190
|
-
if (c < 2 && !n) return l(
|
|
14191
|
-
const g = s.exit("strikethroughSequenceTemporary"), v = ar(
|
|
14192
|
-
return g._open = !v || v === 2 && !!
|
|
14186
|
+
function d(p) {
|
|
14187
|
+
const m = ar(u);
|
|
14188
|
+
if (p === 126)
|
|
14189
|
+
return c > 1 ? l(p) : (s.consume(p), c++, d);
|
|
14190
|
+
if (c < 2 && !n) return l(p);
|
|
14191
|
+
const g = s.exit("strikethroughSequenceTemporary"), v = ar(p);
|
|
14192
|
+
return g._open = !v || v === 2 && !!m, g._close = !m || m === 2 && !!v, a(p);
|
|
14193
14193
|
}
|
|
14194
14194
|
}
|
|
14195
14195
|
}
|
|
@@ -14323,12 +14323,12 @@ function wA(e, t, n) {
|
|
|
14323
14323
|
return A === 92 || A === 124 ? (e.consume(A), c) : c(A);
|
|
14324
14324
|
}
|
|
14325
14325
|
function d(A) {
|
|
14326
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(A) : (e.enter("tableDelimiterRow"), s = !1, ve(A) ? ke(e,
|
|
14327
|
-
}
|
|
14328
|
-
function m(A) {
|
|
14329
|
-
return A === 45 || A === 58 ? g(A) : A === 124 ? (s = !0, e.enter("tableCellDivider"), e.consume(A), e.exit("tableCellDivider"), p) : S(A);
|
|
14326
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(A) : (e.enter("tableDelimiterRow"), s = !1, ve(A) ? ke(e, p, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(A) : p(A));
|
|
14330
14327
|
}
|
|
14331
14328
|
function p(A) {
|
|
14329
|
+
return A === 45 || A === 58 ? g(A) : A === 124 ? (s = !0, e.enter("tableCellDivider"), e.consume(A), e.exit("tableCellDivider"), m) : S(A);
|
|
14330
|
+
}
|
|
14331
|
+
function m(A) {
|
|
14332
14332
|
return ve(A) ? ke(e, g, "whitespace")(A) : g(A);
|
|
14333
14333
|
}
|
|
14334
14334
|
function g(A) {
|
|
@@ -14344,7 +14344,7 @@ function wA(e, t, n) {
|
|
|
14344
14344
|
return ve(A) ? ke(e, E, "whitespace")(A) : E(A);
|
|
14345
14345
|
}
|
|
14346
14346
|
function E(A) {
|
|
14347
|
-
return A === 124 ?
|
|
14347
|
+
return A === 124 ? p(A) : A === null || ue(A) ? !s || i !== o ? S(A) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(A)) : S(A);
|
|
14348
14348
|
}
|
|
14349
14349
|
function S(A) {
|
|
14350
14350
|
return n(A);
|
|
@@ -14366,18 +14366,18 @@ function xA(e, t) {
|
|
|
14366
14366
|
let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], s = [0, 0, 0, 0], a = !1, l = 0, u, f, c;
|
|
14367
14367
|
const h = new gA();
|
|
14368
14368
|
for (; ++n < e.length; ) {
|
|
14369
|
-
const d = e[n],
|
|
14370
|
-
d[0] === "enter" ?
|
|
14369
|
+
const d = e[n], p = d[1];
|
|
14370
|
+
d[0] === "enter" ? p.type === "tableHead" ? (a = !1, l !== 0 && (kf(h, t, l, u, f), f = void 0, l = 0), u = {
|
|
14371
14371
|
type: "table",
|
|
14372
|
-
start: Object.assign({},
|
|
14372
|
+
start: Object.assign({}, p.start),
|
|
14373
14373
|
// Note: correct end is set later.
|
|
14374
|
-
end: Object.assign({},
|
|
14375
|
-
}, h.add(n, 0, [["enter", u, t]])) :
|
|
14374
|
+
end: Object.assign({}, p.end)
|
|
14375
|
+
}, h.add(n, 0, [["enter", u, t]])) : p.type === "tableRow" || p.type === "tableDelimiterRow" ? (r = !0, c = void 0, o = [0, 0, 0, 0], s = [0, n + 1, 0, 0], a && (a = !1, f = {
|
|
14376
14376
|
type: "tableBody",
|
|
14377
|
-
start: Object.assign({},
|
|
14377
|
+
start: Object.assign({}, p.start),
|
|
14378
14378
|
// Note: correct end is set later.
|
|
14379
|
-
end: Object.assign({},
|
|
14380
|
-
}, h.add(n, 0, [["enter", f, t]])), i =
|
|
14379
|
+
end: Object.assign({}, p.end)
|
|
14380
|
+
}, h.add(n, 0, [["enter", f, t]])), i = p.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (p.type === "data" || p.type === "tableDelimiterMarker" || p.type === "tableDelimiterFiller") ? (r = !1, s[2] === 0 && (o[1] !== 0 && (s[0] = s[1], c = _i(h, t, o, i, void 0, c), o = [0, 0, 0, 0]), s[2] = n)) : p.type === "tableCellDivider" && (r ? r = !1 : (o[1] !== 0 && (s[0] = s[1], c = _i(h, t, o, i, void 0, c)), o = s, s = [o[1], n, 0, 0])) : p.type === "tableHead" ? (a = !0, l = n) : p.type === "tableRow" || p.type === "tableDelimiterRow" ? (l = n, o[1] !== 0 ? (s[0] = s[1], c = _i(h, t, o, i, n, c)) : s[1] !== 0 && (c = _i(h, t, s, i, n, c)), i = 0) : i && (p.type === "data" || p.type === "tableDelimiterMarker" || p.type === "tableDelimiterFiller") && (s[3] = n);
|
|
14381
14381
|
}
|
|
14382
14382
|
for (l !== 0 && kf(h, t, l, u, f), h.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
14383
14383
|
const d = t.events[n];
|
|
@@ -14403,8 +14403,8 @@ function _i(e, t, n, r, i, o) {
|
|
|
14403
14403
|
if (e.add(n[2], 0, [["enter", c, t]]), r !== 2) {
|
|
14404
14404
|
const h = t.events[n[2]], d = t.events[n[3]];
|
|
14405
14405
|
if (h[1].end = Object.assign({}, d[1].end), h[1].type = "chunkText", h[1].contentType = "text", n[3] > n[2] + 1) {
|
|
14406
|
-
const
|
|
14407
|
-
e.add(
|
|
14406
|
+
const p = n[2] + 1, m = n[3] - n[2] - 1;
|
|
14407
|
+
e.add(p, m, []);
|
|
14408
14408
|
}
|
|
14409
14409
|
}
|
|
14410
14410
|
e.add(n[3] + 1, 0, [["exit", c, t]]);
|
|
@@ -15681,8 +15681,8 @@ const jT = ({ text: e }) => {
|
|
|
15681
15681
|
li: ({ node: s, ...a }) => /* @__PURE__ */ T("li", { ...a, ...t.listItem }),
|
|
15682
15682
|
br: ({ node: s, ...a }) => /* @__PURE__ */ T("br", { ...a, ...t.lineBreak }),
|
|
15683
15683
|
pre: ({ node: s, ...a }) => {
|
|
15684
|
-
var
|
|
15685
|
-
const l = s == null ? void 0 : s.children[0], u = VT(((
|
|
15684
|
+
var p, m;
|
|
15685
|
+
const l = s == null ? void 0 : s.children[0], u = VT(((m = (p = l == null ? void 0 : l.properties) == null ? void 0 : p.className) == null ? void 0 : m[0]) || ""), [f, c] = Te(!1), h = Se(null), d = () => {
|
|
15686
15686
|
if (!h.current) return;
|
|
15687
15687
|
const g = h.current.textContent || "";
|
|
15688
15688
|
navigator.clipboard.writeText(g).then(() => {
|
|
@@ -15751,12 +15751,12 @@ function YT() {
|
|
|
15751
15751
|
}
|
|
15752
15752
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, i = e.useEffect, o = e.useLayoutEffect, s = e.useDebugValue;
|
|
15753
15753
|
function a(c, h) {
|
|
15754
|
-
var d = h(),
|
|
15754
|
+
var d = h(), p = r({ inst: { value: d, getSnapshot: h } }), m = p[0].inst, g = p[1];
|
|
15755
15755
|
return o(function() {
|
|
15756
|
-
|
|
15756
|
+
m.value = d, m.getSnapshot = h, l(m) && g({ inst: m });
|
|
15757
15757
|
}, [c, d, h]), i(function() {
|
|
15758
|
-
return l(
|
|
15759
|
-
l(
|
|
15758
|
+
return l(m) && g({ inst: m }), c(function() {
|
|
15759
|
+
l(m) && g({ inst: m });
|
|
15760
15760
|
});
|
|
15761
15761
|
}, [c]), s(d), d;
|
|
15762
15762
|
}
|
|
@@ -15850,10 +15850,10 @@ function KT() {
|
|
|
15850
15850
|
return !0;
|
|
15851
15851
|
}
|
|
15852
15852
|
}
|
|
15853
|
-
function
|
|
15853
|
+
function p(w, E, S) {
|
|
15854
15854
|
return E();
|
|
15855
15855
|
}
|
|
15856
|
-
var
|
|
15856
|
+
var m = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !m, v = g ? p : h, y = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v;
|
|
15857
15857
|
$s.useSyncExternalStore = y, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
15858
15858
|
}()), $s;
|
|
15859
15859
|
}
|
|
@@ -15880,16 +15880,16 @@ function GT() {
|
|
|
15880
15880
|
}
|
|
15881
15881
|
var r = typeof Object.is == "function" ? Object.is : n, i = t.useSyncExternalStore, o = e.useRef, s = e.useEffect, a = e.useMemo, l = e.useDebugValue;
|
|
15882
15882
|
return _s.useSyncExternalStoreWithSelector = function(u, f, c, h, d) {
|
|
15883
|
-
var
|
|
15884
|
-
if (
|
|
15885
|
-
var
|
|
15886
|
-
|
|
15887
|
-
} else
|
|
15888
|
-
|
|
15883
|
+
var p = o(null);
|
|
15884
|
+
if (p.current === null) {
|
|
15885
|
+
var m = { hasValue: !1, value: null };
|
|
15886
|
+
p.current = m;
|
|
15887
|
+
} else m = p.current;
|
|
15888
|
+
p = a(function() {
|
|
15889
15889
|
function v(k) {
|
|
15890
15890
|
if (!y) {
|
|
15891
|
-
if (y = !0, w = k, k = h(k), d !== void 0 &&
|
|
15892
|
-
var I =
|
|
15891
|
+
if (y = !0, w = k, k = h(k), d !== void 0 && m.hasValue) {
|
|
15892
|
+
var I = m.value;
|
|
15893
15893
|
if (d(I, k)) return E = I;
|
|
15894
15894
|
}
|
|
15895
15895
|
return E = k;
|
|
@@ -15905,9 +15905,9 @@ function GT() {
|
|
|
15905
15905
|
return v(S());
|
|
15906
15906
|
}];
|
|
15907
15907
|
}, [f, c, h, d]);
|
|
15908
|
-
var g = i(u,
|
|
15908
|
+
var g = i(u, p[0], p[1]);
|
|
15909
15909
|
return s(function() {
|
|
15910
|
-
|
|
15910
|
+
m.hasValue = !0, m.value = g;
|
|
15911
15911
|
}, [g]), l(g), g;
|
|
15912
15912
|
}, _s;
|
|
15913
15913
|
}
|
|
@@ -15930,20 +15930,20 @@ function QT() {
|
|
|
15930
15930
|
return f === c && (f !== 0 || 1 / f === 1 / c) || f !== f && c !== c;
|
|
15931
15931
|
}
|
|
15932
15932
|
var r = typeof Object.is == "function" ? Object.is : n, i = t.useSyncExternalStore, o = e.useRef, s = e.useEffect, a = e.useMemo, l = e.useDebugValue;
|
|
15933
|
-
function u(f, c, h, d,
|
|
15934
|
-
var
|
|
15935
|
-
|
|
15933
|
+
function u(f, c, h, d, p) {
|
|
15934
|
+
var m = o(null), g;
|
|
15935
|
+
m.current === null ? (g = {
|
|
15936
15936
|
hasValue: !1,
|
|
15937
15937
|
value: null
|
|
15938
|
-
},
|
|
15938
|
+
}, m.current = g) : g = m.current;
|
|
15939
15939
|
var v = a(function() {
|
|
15940
15940
|
var S = !1, k, I, R = function(z) {
|
|
15941
15941
|
if (!S) {
|
|
15942
15942
|
S = !0, k = z;
|
|
15943
15943
|
var P = d(z);
|
|
15944
|
-
if (
|
|
15944
|
+
if (p !== void 0 && g.hasValue) {
|
|
15945
15945
|
var L = g.value;
|
|
15946
|
-
if (
|
|
15946
|
+
if (p(L, P))
|
|
15947
15947
|
return I = L, L;
|
|
15948
15948
|
}
|
|
15949
15949
|
return I = P, P;
|
|
@@ -15952,14 +15952,14 @@ function QT() {
|
|
|
15952
15952
|
if (r(_, z))
|
|
15953
15953
|
return D;
|
|
15954
15954
|
var U = d(z);
|
|
15955
|
-
return
|
|
15955
|
+
return p !== void 0 && p(D, U) ? D : (k = z, I = U, U);
|
|
15956
15956
|
}, N = h === void 0 ? null : h, A = function() {
|
|
15957
15957
|
return R(c());
|
|
15958
15958
|
}, O = N === null ? void 0 : function() {
|
|
15959
15959
|
return R(N());
|
|
15960
15960
|
};
|
|
15961
15961
|
return [A, O];
|
|
15962
|
-
}, [c, h, d,
|
|
15962
|
+
}, [c, h, d, p]), y = v[0], w = v[1], E = i(f, y, w);
|
|
15963
15963
|
return s(function() {
|
|
15964
15964
|
g.hasValue = !0, g.value = E;
|
|
15965
15965
|
}, [E]), l(E), E;
|
|
@@ -16022,8 +16022,8 @@ const tI = (e) => {
|
|
|
16022
16022
|
), e(n, r, i);
|
|
16023
16023
|
const { connection: f, ...c } = nI(a, u, l);
|
|
16024
16024
|
let h = !0;
|
|
16025
|
-
i.setState = (
|
|
16026
|
-
const y = n(
|
|
16025
|
+
i.setState = (m, g, v) => {
|
|
16026
|
+
const y = n(m, g);
|
|
16027
16027
|
if (!h)
|
|
16028
16028
|
return y;
|
|
16029
16029
|
const w = v === void 0 ? { type: s || "anonymous" } : typeof v == "string" ? { type: v } : v;
|
|
@@ -16038,38 +16038,38 @@ const tI = (e) => {
|
|
|
16038
16038
|
}
|
|
16039
16039
|
), y);
|
|
16040
16040
|
};
|
|
16041
|
-
const d = (...
|
|
16041
|
+
const d = (...m) => {
|
|
16042
16042
|
const g = h;
|
|
16043
|
-
h = !1, n(...
|
|
16044
|
-
},
|
|
16045
|
-
if (c.type === "untracked" ? f == null || f.init(
|
|
16043
|
+
h = !1, n(...m), h = g;
|
|
16044
|
+
}, p = e(i.setState, r, i);
|
|
16045
|
+
if (c.type === "untracked" ? f == null || f.init(p) : (c.stores[c.store] = i, f == null || f.init(
|
|
16046
16046
|
Object.fromEntries(
|
|
16047
|
-
Object.entries(c.stores).map(([
|
|
16048
|
-
|
|
16049
|
-
|
|
16047
|
+
Object.entries(c.stores).map(([m, g]) => [
|
|
16048
|
+
m,
|
|
16049
|
+
m === c.store ? p : g.getState()
|
|
16050
16050
|
])
|
|
16051
16051
|
)
|
|
16052
16052
|
)), i.dispatchFromDevtools && typeof i.dispatch == "function") {
|
|
16053
|
-
let
|
|
16053
|
+
let m = !1;
|
|
16054
16054
|
const g = i.dispatch;
|
|
16055
16055
|
i.dispatch = (...v) => {
|
|
16056
|
-
(so ? "production" : void 0) !== "production" && v[0].type === "__setState" && !
|
|
16056
|
+
(so ? "production" : void 0) !== "production" && v[0].type === "__setState" && !m && (console.warn(
|
|
16057
16057
|
'[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'
|
|
16058
|
-
),
|
|
16058
|
+
), m = !0), g(...v);
|
|
16059
16059
|
};
|
|
16060
16060
|
}
|
|
16061
|
-
return f.subscribe((
|
|
16061
|
+
return f.subscribe((m) => {
|
|
16062
16062
|
var g;
|
|
16063
|
-
switch (
|
|
16063
|
+
switch (m.type) {
|
|
16064
16064
|
case "ACTION":
|
|
16065
|
-
if (typeof
|
|
16065
|
+
if (typeof m.payload != "string") {
|
|
16066
16066
|
console.error(
|
|
16067
16067
|
"[zustand devtools middleware] Unsupported action format"
|
|
16068
16068
|
);
|
|
16069
16069
|
return;
|
|
16070
16070
|
}
|
|
16071
16071
|
return zs(
|
|
16072
|
-
|
|
16072
|
+
m.payload,
|
|
16073
16073
|
(v) => {
|
|
16074
16074
|
if (v.type === "__setState") {
|
|
16075
16075
|
if (a === void 0) {
|
|
@@ -16093,9 +16093,9 @@ const tI = (e) => {
|
|
|
16093
16093
|
}
|
|
16094
16094
|
);
|
|
16095
16095
|
case "DISPATCH":
|
|
16096
|
-
switch (
|
|
16096
|
+
switch (m.payload.type) {
|
|
16097
16097
|
case "RESET":
|
|
16098
|
-
return d(
|
|
16098
|
+
return d(p), a === void 0 ? f == null ? void 0 : f.init(i.getState()) : f == null ? void 0 : f.init($i(l.name));
|
|
16099
16099
|
case "COMMIT":
|
|
16100
16100
|
if (a === void 0) {
|
|
16101
16101
|
f == null || f.init(i.getState());
|
|
@@ -16103,7 +16103,7 @@ const tI = (e) => {
|
|
|
16103
16103
|
}
|
|
16104
16104
|
return f == null ? void 0 : f.init($i(l.name));
|
|
16105
16105
|
case "ROLLBACK":
|
|
16106
|
-
return zs(
|
|
16106
|
+
return zs(m.state, (v) => {
|
|
16107
16107
|
if (a === void 0) {
|
|
16108
16108
|
d(v), f == null || f.init(i.getState());
|
|
16109
16109
|
return;
|
|
@@ -16112,7 +16112,7 @@ const tI = (e) => {
|
|
|
16112
16112
|
});
|
|
16113
16113
|
case "JUMP_TO_STATE":
|
|
16114
16114
|
case "JUMP_TO_ACTION":
|
|
16115
|
-
return zs(
|
|
16115
|
+
return zs(m.state, (v) => {
|
|
16116
16116
|
if (a === void 0) {
|
|
16117
16117
|
d(v);
|
|
16118
16118
|
return;
|
|
@@ -16120,7 +16120,7 @@ const tI = (e) => {
|
|
|
16120
16120
|
JSON.stringify(i.getState()) !== JSON.stringify(v[a]) && d(v[a]);
|
|
16121
16121
|
});
|
|
16122
16122
|
case "IMPORT_STATE": {
|
|
16123
|
-
const { nextLiftedState: v } =
|
|
16123
|
+
const { nextLiftedState: v } = m.payload, y = (g = v.computedStates.slice(-1)[0]) == null ? void 0 : g.state;
|
|
16124
16124
|
if (!y)
|
|
16125
16125
|
return;
|
|
16126
16126
|
d(a === void 0 ? y : y[a]), f == null || f.send(
|
|
@@ -16135,7 +16135,7 @@ const tI = (e) => {
|
|
|
16135
16135
|
}
|
|
16136
16136
|
return;
|
|
16137
16137
|
}
|
|
16138
|
-
}),
|
|
16138
|
+
}), p;
|
|
16139
16139
|
}, wr = rI, zs = (e, t) => {
|
|
16140
16140
|
let n;
|
|
16141
16141
|
try {
|
|
@@ -16240,8 +16240,8 @@ const Xr = (e) => (t) => {
|
|
|
16240
16240
|
r,
|
|
16241
16241
|
i
|
|
16242
16242
|
);
|
|
16243
|
-
let
|
|
16244
|
-
const
|
|
16243
|
+
let p;
|
|
16244
|
+
const m = () => {
|
|
16245
16245
|
var g;
|
|
16246
16246
|
if (!u)
|
|
16247
16247
|
return;
|
|
@@ -16265,12 +16265,12 @@ const Xr = (e) => (t) => {
|
|
|
16265
16265
|
return y.state;
|
|
16266
16266
|
}).then((y) => {
|
|
16267
16267
|
var w;
|
|
16268
|
-
return
|
|
16268
|
+
return p = o.merge(
|
|
16269
16269
|
y,
|
|
16270
16270
|
(w = r()) != null ? w : d
|
|
16271
|
-
), n(
|
|
16271
|
+
), n(p, !0), c();
|
|
16272
16272
|
}).then(() => {
|
|
16273
|
-
v == null || v(
|
|
16273
|
+
v == null || v(p, void 0), s = !0, l.forEach((y) => y(p));
|
|
16274
16274
|
}).catch((y) => {
|
|
16275
16275
|
v == null || v(void 0, y);
|
|
16276
16276
|
});
|
|
@@ -16286,7 +16286,7 @@ const Xr = (e) => (t) => {
|
|
|
16286
16286
|
u == null || u.removeItem(o.name);
|
|
16287
16287
|
},
|
|
16288
16288
|
getOptions: () => o,
|
|
16289
|
-
rehydrate: () =>
|
|
16289
|
+
rehydrate: () => m(),
|
|
16290
16290
|
hasHydrated: () => s,
|
|
16291
16291
|
onHydrate: (g) => (a.add(g), () => {
|
|
16292
16292
|
a.delete(g);
|
|
@@ -16294,15 +16294,15 @@ const Xr = (e) => (t) => {
|
|
|
16294
16294
|
onFinishHydration: (g) => (l.add(g), () => {
|
|
16295
16295
|
l.delete(g);
|
|
16296
16296
|
})
|
|
16297
|
-
},
|
|
16297
|
+
}, m(), p || d;
|
|
16298
16298
|
}, oI = (e, t) => (n, r, i) => {
|
|
16299
16299
|
let o = {
|
|
16300
16300
|
storage: Ko(() => localStorage),
|
|
16301
|
-
partialize: (
|
|
16301
|
+
partialize: (m) => m,
|
|
16302
16302
|
version: 0,
|
|
16303
|
-
merge: (
|
|
16303
|
+
merge: (m, g) => ({
|
|
16304
16304
|
...g,
|
|
16305
|
-
...
|
|
16305
|
+
...m
|
|
16306
16306
|
}),
|
|
16307
16307
|
...t
|
|
16308
16308
|
}, s = !1;
|
|
@@ -16310,41 +16310,41 @@ const Xr = (e) => (t) => {
|
|
|
16310
16310
|
let u = o.storage;
|
|
16311
16311
|
if (!u)
|
|
16312
16312
|
return e(
|
|
16313
|
-
(...
|
|
16313
|
+
(...m) => {
|
|
16314
16314
|
console.warn(
|
|
16315
16315
|
`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`
|
|
16316
|
-
), n(...
|
|
16316
|
+
), n(...m);
|
|
16317
16317
|
},
|
|
16318
16318
|
r,
|
|
16319
16319
|
i
|
|
16320
16320
|
);
|
|
16321
16321
|
const f = () => {
|
|
16322
|
-
const
|
|
16322
|
+
const m = o.partialize({ ...r() });
|
|
16323
16323
|
return u.setItem(o.name, {
|
|
16324
|
-
state:
|
|
16324
|
+
state: m,
|
|
16325
16325
|
version: o.version
|
|
16326
16326
|
});
|
|
16327
16327
|
}, c = i.setState;
|
|
16328
|
-
i.setState = (
|
|
16329
|
-
c(
|
|
16328
|
+
i.setState = (m, g) => {
|
|
16329
|
+
c(m, g), f();
|
|
16330
16330
|
};
|
|
16331
16331
|
const h = e(
|
|
16332
|
-
(...
|
|
16333
|
-
n(...
|
|
16332
|
+
(...m) => {
|
|
16333
|
+
n(...m), f();
|
|
16334
16334
|
},
|
|
16335
16335
|
r,
|
|
16336
16336
|
i
|
|
16337
16337
|
);
|
|
16338
16338
|
let d;
|
|
16339
|
-
const
|
|
16340
|
-
var
|
|
16339
|
+
const p = () => {
|
|
16340
|
+
var m, g;
|
|
16341
16341
|
if (!u)
|
|
16342
16342
|
return;
|
|
16343
16343
|
s = !1, a.forEach((y) => {
|
|
16344
16344
|
var w;
|
|
16345
16345
|
return y((w = r()) != null ? w : h);
|
|
16346
16346
|
});
|
|
16347
|
-
const v = ((g = o.onRehydrateStorage) == null ? void 0 : g.call(o, (
|
|
16347
|
+
const v = ((g = o.onRehydrateStorage) == null ? void 0 : g.call(o, (m = r()) != null ? m : h)) || void 0;
|
|
16348
16348
|
return Xr(u.getItem.bind(u))(o.name).then((y) => {
|
|
16349
16349
|
if (y)
|
|
16350
16350
|
if (typeof y.version == "number" && y.version !== o.version) {
|
|
@@ -16371,25 +16371,25 @@ const Xr = (e) => (t) => {
|
|
|
16371
16371
|
});
|
|
16372
16372
|
};
|
|
16373
16373
|
return i.persist = {
|
|
16374
|
-
setOptions: (
|
|
16374
|
+
setOptions: (m) => {
|
|
16375
16375
|
o = {
|
|
16376
16376
|
...o,
|
|
16377
|
-
...
|
|
16378
|
-
},
|
|
16377
|
+
...m
|
|
16378
|
+
}, m.storage && (u = m.storage);
|
|
16379
16379
|
},
|
|
16380
16380
|
clearStorage: () => {
|
|
16381
16381
|
u == null || u.removeItem(o.name);
|
|
16382
16382
|
},
|
|
16383
16383
|
getOptions: () => o,
|
|
16384
|
-
rehydrate: () =>
|
|
16384
|
+
rehydrate: () => p(),
|
|
16385
16385
|
hasHydrated: () => s,
|
|
16386
|
-
onHydrate: (
|
|
16387
|
-
a.delete(
|
|
16386
|
+
onHydrate: (m) => (a.add(m), () => {
|
|
16387
|
+
a.delete(m);
|
|
16388
16388
|
}),
|
|
16389
|
-
onFinishHydration: (
|
|
16390
|
-
l.delete(
|
|
16389
|
+
onFinishHydration: (m) => (l.add(m), () => {
|
|
16390
|
+
l.delete(m);
|
|
16391
16391
|
})
|
|
16392
|
-
}, o.skipHydration ||
|
|
16392
|
+
}, o.skipHydration || p(), d || h;
|
|
16393
16393
|
}, sI = (e, t) => "getStorage" in t || "serialize" in t || "deserialize" in t ? ((so ? "production" : void 0) !== "production" && console.warn(
|
|
16394
16394
|
"[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."
|
|
16395
16395
|
), iI(e, t)) : oI(e, t), Go = sI, aI = (e, t) => kn()(
|
|
@@ -16508,9 +16508,9 @@ const Us = {}, lu = (e) => {
|
|
|
16508
16508
|
status: "loading"
|
|
16509
16509
|
});
|
|
16510
16510
|
try {
|
|
16511
|
-
const { fileUrl: h, type: d, fileId:
|
|
16511
|
+
const { fileUrl: h, type: d, fileId: p } = await i(c);
|
|
16512
16512
|
n().upsertFile({
|
|
16513
|
-
fileId:
|
|
16513
|
+
fileId: p,
|
|
16514
16514
|
name: u,
|
|
16515
16515
|
type: d,
|
|
16516
16516
|
url: h,
|
|
@@ -16565,15 +16565,15 @@ const Us = {}, lu = (e) => {
|
|
|
16565
16565
|
const t = `${e}-sound`;
|
|
16566
16566
|
return qs[t] || (qs[t] = pI(t)), qs[t];
|
|
16567
16567
|
}, gI = ({ text: e, buttonValue: t, variant: n, groupId: r, reusable: i, sendMessage: o, isReadOnly: s, ...a }) => {
|
|
16568
|
-
const l = ei((w) => w.eventEmitter), [u, f] = Te(!1), [c, h] = Te(!1), [d,
|
|
16568
|
+
const l = ei((w) => w.eventEmitter), [u, f] = Te(!1), [c, h] = Te(!1), [d, p] = Te(!1), {
|
|
16569
16569
|
message: {
|
|
16570
|
-
blocks: { button:
|
|
16570
|
+
blocks: { button: m }
|
|
16571
16571
|
}
|
|
16572
16572
|
} = ge;
|
|
16573
16573
|
_e(() => {
|
|
16574
16574
|
if (r)
|
|
16575
16575
|
return l.on(`button-group-${r}-click`, () => {
|
|
16576
|
-
h(!0), i ||
|
|
16576
|
+
h(!0), i || p(!0);
|
|
16577
16577
|
});
|
|
16578
16578
|
}, [l, r, i]);
|
|
16579
16579
|
const v = {
|
|
@@ -16583,12 +16583,12 @@ const Us = {}, lu = (e) => {
|
|
|
16583
16583
|
w.preventDefault();
|
|
16584
16584
|
return;
|
|
16585
16585
|
}
|
|
16586
|
-
f(!0), i ||
|
|
16586
|
+
f(!0), i || p(!0), r && l.emit(`button-group-${r}-click`), n !== "link" && o && (o == null || o({ type: "text", text: e, value: t }));
|
|
16587
16587
|
},
|
|
16588
16588
|
"data-activated": u ? "" : void 0,
|
|
16589
16589
|
"data-group-activated": c ? "" : void 0,
|
|
16590
16590
|
"data-type": n,
|
|
16591
|
-
...
|
|
16591
|
+
...m
|
|
16592
16592
|
}, y = d || s;
|
|
16593
16593
|
return n === "link" ? /* @__PURE__ */ T(
|
|
16594
16594
|
"a",
|
|
@@ -16631,7 +16631,7 @@ const zm = rt(
|
|
|
16631
16631
|
const { showInputModal: h } = Bm(), {
|
|
16632
16632
|
message: {
|
|
16633
16633
|
blocks: {
|
|
16634
|
-
bubble: { container: d, feedbackContainer:
|
|
16634
|
+
bubble: { container: d, feedbackContainer: p, feedbackIcon: m }
|
|
16635
16635
|
}
|
|
16636
16636
|
}
|
|
16637
16637
|
} = ge;
|
|
@@ -16651,11 +16651,11 @@ const zm = rt(
|
|
|
16651
16651
|
}
|
|
16652
16652
|
}
|
|
16653
16653
|
),
|
|
16654
|
-
u && h && e.type === "text" && /* @__PURE__ */ ae("div", { ...
|
|
16654
|
+
u && h && e.type === "text" && /* @__PURE__ */ ae("div", { ...p, children: [
|
|
16655
16655
|
/* @__PURE__ */ T(
|
|
16656
16656
|
OT,
|
|
16657
16657
|
{
|
|
16658
|
-
...
|
|
16658
|
+
...m,
|
|
16659
16659
|
"data-selected": o === "positive",
|
|
16660
16660
|
onClick: () => u(i, { value: "positive" })
|
|
16661
16661
|
}
|
|
@@ -16663,7 +16663,7 @@ const zm = rt(
|
|
|
16663
16663
|
/* @__PURE__ */ T(
|
|
16664
16664
|
TT,
|
|
16665
16665
|
{
|
|
16666
|
-
...
|
|
16666
|
+
...m,
|
|
16667
16667
|
"data-selected": o === "negative",
|
|
16668
16668
|
onClick: async () => {
|
|
16669
16669
|
const g = await h({
|
|
@@ -16887,14 +16887,14 @@ const jm = rt(
|
|
|
16887
16887
|
if (!e) return;
|
|
16888
16888
|
const h = new Image();
|
|
16889
16889
|
try {
|
|
16890
|
-
const { width: d, height:
|
|
16891
|
-
n === "auto" && l(SI(d,
|
|
16892
|
-
f("loaded"), s((
|
|
16890
|
+
const { width: d, height: p } = await jv(e);
|
|
16891
|
+
n === "auto" && l(SI(d, p)), h.onload = () => {
|
|
16892
|
+
f("loaded"), s((m) => m.filter((g) => g !== o));
|
|
16893
16893
|
}, h.onerror = () => {
|
|
16894
|
-
f("error"), l("square"), s((
|
|
16895
|
-
}, h.src = e, h.complete && (h.naturalWidth > 0 ? (f("loaded"), s((
|
|
16894
|
+
f("error"), l("square"), s((m) => m.filter((g) => g !== o));
|
|
16895
|
+
}, h.src = e, h.complete && (h.naturalWidth > 0 ? (f("loaded"), s((m) => m.filter((g) => g !== o))) : (f("error"), l("square"), s((m) => m.filter((g) => g !== o))));
|
|
16896
16896
|
} catch (d) {
|
|
16897
|
-
console.error(d), f("error"), s((
|
|
16897
|
+
console.error(d), f("error"), s((p) => p.filter((m) => m !== o));
|
|
16898
16898
|
}
|
|
16899
16899
|
return () => {
|
|
16900
16900
|
h.onload = null, h.onerror = null;
|
|
@@ -17042,7 +17042,7 @@ const Km = rt(
|
|
|
17042
17042
|
blocks: { row: h }
|
|
17043
17043
|
}
|
|
17044
17044
|
} = ge;
|
|
17045
|
-
return /* @__PURE__ */ T("div", { "data-horizontal": t, "data-vertical": n, ...f, ...h, ref: c, children: e.map((d,
|
|
17045
|
+
return /* @__PURE__ */ T("div", { "data-horizontal": t, "data-vertical": n, ...f, ...h, ref: c, children: e.map((d, p) => /* @__PURE__ */ T(dr, { block: { ...d, direction: r, timestamp: o, sender: i, messageId: a, isReadOnly: l, sendMessage: u } }, p)) });
|
|
17046
17046
|
}
|
|
17047
17047
|
);
|
|
17048
17048
|
Km.displayName = "Row";
|
|
@@ -17181,7 +17181,7 @@ function OI(e, t, n, r) {
|
|
|
17181
17181
|
let s = null, a = 0, l = 0;
|
|
17182
17182
|
function u() {
|
|
17183
17183
|
i.add(e, "visibilitychange", () => {
|
|
17184
|
-
e.hidden &&
|
|
17184
|
+
e.hidden && p();
|
|
17185
17185
|
});
|
|
17186
17186
|
}
|
|
17187
17187
|
function f() {
|
|
@@ -17202,7 +17202,7 @@ function OI(e, t, n, r) {
|
|
|
17202
17202
|
function d() {
|
|
17203
17203
|
t.cancelAnimationFrame(l), s = null, a = 0, l = 0;
|
|
17204
17204
|
}
|
|
17205
|
-
function
|
|
17205
|
+
function p() {
|
|
17206
17206
|
s = null, a = 0;
|
|
17207
17207
|
}
|
|
17208
17208
|
return {
|
|
@@ -17216,12 +17216,12 @@ function OI(e, t, n, r) {
|
|
|
17216
17216
|
}
|
|
17217
17217
|
function RI(e, t) {
|
|
17218
17218
|
const n = t === "rtl", r = e === "y", i = r ? "y" : "x", o = r ? "x" : "y", s = !r && n ? -1 : 1, a = f(), l = c();
|
|
17219
|
-
function u(
|
|
17219
|
+
function u(p) {
|
|
17220
17220
|
const {
|
|
17221
|
-
height:
|
|
17221
|
+
height: m,
|
|
17222
17222
|
width: g
|
|
17223
|
-
} =
|
|
17224
|
-
return r ?
|
|
17223
|
+
} = p;
|
|
17224
|
+
return r ? m : g;
|
|
17225
17225
|
}
|
|
17226
17226
|
function f() {
|
|
17227
17227
|
return r ? "top" : n ? "right" : "left";
|
|
@@ -17229,8 +17229,8 @@ function RI(e, t) {
|
|
|
17229
17229
|
function c() {
|
|
17230
17230
|
return r ? "bottom" : n ? "left" : "right";
|
|
17231
17231
|
}
|
|
17232
|
-
function h(
|
|
17233
|
-
return
|
|
17232
|
+
function h(p) {
|
|
17233
|
+
return p * s;
|
|
17234
17234
|
}
|
|
17235
17235
|
return {
|
|
17236
17236
|
scroll: i,
|
|
@@ -17297,7 +17297,7 @@ function Qm(e, t, n) {
|
|
|
17297
17297
|
};
|
|
17298
17298
|
return c;
|
|
17299
17299
|
}
|
|
17300
|
-
function DI(e, t, n, r, i, o, s, a, l, u, f, c, h, d,
|
|
17300
|
+
function DI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, p, m, g, v, y) {
|
|
17301
17301
|
const {
|
|
17302
17302
|
cross: w,
|
|
17303
17303
|
direction: E
|
|
@@ -17309,7 +17309,7 @@ function DI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, m, p, g, v, y) {
|
|
|
17309
17309
|
}, O = {
|
|
17310
17310
|
mouse: 500,
|
|
17311
17311
|
touch: 600
|
|
17312
|
-
}, z =
|
|
17312
|
+
}, z = p ? 43 : 25;
|
|
17313
17313
|
let P = !1, L = 0, _ = 0, D = !1, U = !1, B = !1, j = !1;
|
|
17314
17314
|
function b(F) {
|
|
17315
17315
|
if (!y) return;
|
|
@@ -17333,15 +17333,15 @@ function DI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, m, p, g, v, y) {
|
|
|
17333
17333
|
return S.includes(te);
|
|
17334
17334
|
}
|
|
17335
17335
|
function V() {
|
|
17336
|
-
return (
|
|
17336
|
+
return (p ? O : A)[j ? "mouse" : "touch"];
|
|
17337
17337
|
}
|
|
17338
17338
|
function Z(F, te) {
|
|
17339
|
-
const pe = c.add(du(F) * -1), Ie = f.byDistance(F, !
|
|
17340
|
-
return
|
|
17339
|
+
const pe = c.add(du(F) * -1), Ie = f.byDistance(F, !p).distance;
|
|
17340
|
+
return p || Ue(F) < N ? Ie : g && te ? Ie * 0.5 : f.byIndex(pe.get(), 0).distance;
|
|
17341
17341
|
}
|
|
17342
17342
|
function q(F) {
|
|
17343
17343
|
const te = Za(F, r);
|
|
17344
|
-
j = te, B =
|
|
17344
|
+
j = te, B = p && te && !F.buttons && P, P = qr(i.get(), s.get()) >= 2, !(te && F.button !== 0) && (x(F.target) || (D = !0, o.pointerDown(F), u.useFriction(0).useDuration(0), i.set(s), $(), L = o.readPoint(F), _ = o.readPoint(F, w), h.emit("pointerDown")));
|
|
17345
17345
|
}
|
|
17346
17346
|
function K(F) {
|
|
17347
17347
|
if (!Za(F, r) && F.touches.length >= 2) return J(F);
|
|
@@ -17349,11 +17349,11 @@ function DI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, m, p, g, v, y) {
|
|
|
17349
17349
|
if (!U && !j && (!F.cancelable || (U = Q > le, !U)))
|
|
17350
17350
|
return J(F);
|
|
17351
17351
|
const fe = o.pointerMove(F);
|
|
17352
|
-
Q >
|
|
17352
|
+
Q > m && (B = !0), u.useFriction(0.3).useDuration(0.75), a.start(), i.add(E(fe)), F.preventDefault();
|
|
17353
17353
|
}
|
|
17354
17354
|
function J(F) {
|
|
17355
17355
|
const pe = f.byDistance(0, !1).index !== c.get(), Ie = o.pointerUp(F) * V(), Q = Z(E(Ie), pe), le = AI(Ie, Q), fe = z - 10 * le, ce = v + le / 50;
|
|
17356
|
-
U = !1, D = !1, R.clear(), u.useDuration(fe).useFriction(ce), l.distance(Q, !
|
|
17356
|
+
U = !1, D = !1, R.clear(), u.useDuration(fe).useFriction(ce), l.distance(Q, !p), j = !1, h.emit("pointerUp");
|
|
17357
17357
|
}
|
|
17358
17358
|
function ie(F) {
|
|
17359
17359
|
B && (F.stopPropagation(), F.preventDefault(), B = !1);
|
|
@@ -17373,8 +17373,8 @@ function MI(e, t) {
|
|
|
17373
17373
|
return c.timeStamp;
|
|
17374
17374
|
}
|
|
17375
17375
|
function s(c, h) {
|
|
17376
|
-
const
|
|
17377
|
-
return (Za(c, t) ? c : c.touches[0])[
|
|
17376
|
+
const p = `client${(h || e.scroll) === "x" ? "X" : "Y"}`;
|
|
17377
|
+
return (Za(c, t) ? c : c.touches[0])[p];
|
|
17378
17378
|
}
|
|
17379
17379
|
function a(c) {
|
|
17380
17380
|
return r = c, i = c, s(c);
|
|
@@ -17385,8 +17385,8 @@ function MI(e, t) {
|
|
|
17385
17385
|
}
|
|
17386
17386
|
function u(c) {
|
|
17387
17387
|
if (!r || !i) return 0;
|
|
17388
|
-
const h = s(i) - s(r), d = o(c) - o(r),
|
|
17389
|
-
return d && !
|
|
17388
|
+
const h = s(i) - s(r), d = o(c) - o(r), p = o(c) - o(i) > 170, m = h / d;
|
|
17389
|
+
return d && !p && Ue(m) > 0.1 ? m : 0;
|
|
17390
17390
|
}
|
|
17391
17391
|
return {
|
|
17392
17392
|
pointerDown: a,
|
|
@@ -17449,12 +17449,12 @@ function LI(e, t, n, r, i, o, s) {
|
|
|
17449
17449
|
a.forEach((y) => l.observe(y));
|
|
17450
17450
|
});
|
|
17451
17451
|
}
|
|
17452
|
-
function
|
|
17452
|
+
function p() {
|
|
17453
17453
|
c = !0, l && l.disconnect();
|
|
17454
17454
|
}
|
|
17455
17455
|
return {
|
|
17456
17456
|
init: d,
|
|
17457
|
-
destroy:
|
|
17457
|
+
destroy: p
|
|
17458
17458
|
};
|
|
17459
17459
|
}
|
|
17460
17460
|
function _I(e, t, n, r, i, o) {
|
|
@@ -17468,10 +17468,10 @@ function _I(e, t, n, r, i, o) {
|
|
|
17468
17468
|
const k = r.get() - t.get();
|
|
17469
17469
|
return Ue(k) < 1e-3;
|
|
17470
17470
|
}
|
|
17471
|
-
function
|
|
17471
|
+
function p() {
|
|
17472
17472
|
return l;
|
|
17473
17473
|
}
|
|
17474
|
-
function
|
|
17474
|
+
function m() {
|
|
17475
17475
|
return a;
|
|
17476
17476
|
}
|
|
17477
17477
|
function g() {
|
|
@@ -17490,8 +17490,8 @@ function _I(e, t, n, r, i, o) {
|
|
|
17490
17490
|
return u = k, S;
|
|
17491
17491
|
}
|
|
17492
17492
|
const S = {
|
|
17493
|
-
direction:
|
|
17494
|
-
duration:
|
|
17493
|
+
direction: m,
|
|
17494
|
+
duration: p,
|
|
17495
17495
|
velocity: g,
|
|
17496
17496
|
seek: h,
|
|
17497
17497
|
settled: d,
|
|
@@ -17510,7 +17510,7 @@ function FI(e, t, n, r, i) {
|
|
|
17510
17510
|
}
|
|
17511
17511
|
function f(d) {
|
|
17512
17512
|
if (!u()) return;
|
|
17513
|
-
const
|
|
17513
|
+
const p = e.reachedMin(t.get()) ? "min" : "max", m = Ue(e[p] - t.get()), g = n.get() - t.get(), v = a.constrain(m / s);
|
|
17514
17514
|
n.subtract(g * v), !d && Ue(g) < o && (n.set(e.constrain(n.get())), r.useDuration(25).useBaseFriction());
|
|
17515
17515
|
}
|
|
17516
17516
|
function c(d) {
|
|
@@ -17524,30 +17524,30 @@ function FI(e, t, n, r, i) {
|
|
|
17524
17524
|
}
|
|
17525
17525
|
function $I(e, t, n, r, i) {
|
|
17526
17526
|
const o = Pn(-t + e, 0), s = c(), a = f(), l = h();
|
|
17527
|
-
function u(
|
|
17528
|
-
return qr(
|
|
17527
|
+
function u(p, m) {
|
|
17528
|
+
return qr(p, m) <= 1;
|
|
17529
17529
|
}
|
|
17530
17530
|
function f() {
|
|
17531
|
-
const
|
|
17531
|
+
const p = s[0], m = zt(s), g = s.lastIndexOf(p), v = s.indexOf(m) + 1;
|
|
17532
17532
|
return Pn(g, v);
|
|
17533
17533
|
}
|
|
17534
17534
|
function c() {
|
|
17535
|
-
return n.map((
|
|
17535
|
+
return n.map((p, m) => {
|
|
17536
17536
|
const {
|
|
17537
17537
|
min: g,
|
|
17538
17538
|
max: v
|
|
17539
|
-
} = o, y = o.constrain(
|
|
17539
|
+
} = o, y = o.constrain(p), w = !m, E = hu(n, m);
|
|
17540
17540
|
return w ? v : E || u(g, y) ? g : u(v, y) ? v : y;
|
|
17541
|
-
}).map((
|
|
17541
|
+
}).map((p) => parseFloat(p.toFixed(3)));
|
|
17542
17542
|
}
|
|
17543
17543
|
function h() {
|
|
17544
17544
|
if (t <= e + i) return [o.max];
|
|
17545
17545
|
if (r === "keepSnaps") return s;
|
|
17546
17546
|
const {
|
|
17547
|
-
min:
|
|
17548
|
-
max:
|
|
17547
|
+
min: p,
|
|
17548
|
+
max: m
|
|
17549
17549
|
} = a;
|
|
17550
|
-
return s.slice(
|
|
17550
|
+
return s.slice(p, m);
|
|
17551
17551
|
}
|
|
17552
17552
|
return {
|
|
17553
17553
|
snapsContained: l,
|
|
@@ -17571,7 +17571,7 @@ function zI(e, t, n, r) {
|
|
|
17571
17571
|
function f(h) {
|
|
17572
17572
|
if (!u(h)) return;
|
|
17573
17573
|
const d = e * (h * -1);
|
|
17574
|
-
r.forEach((
|
|
17574
|
+
r.forEach((p) => p.add(d));
|
|
17575
17575
|
}
|
|
17576
17576
|
return {
|
|
17577
17577
|
loop: f
|
|
@@ -17598,13 +17598,13 @@ function UI(e, t, n, r, i) {
|
|
|
17598
17598
|
groupSlides: a
|
|
17599
17599
|
} = i, l = c().map(t.measure), u = h(), f = d();
|
|
17600
17600
|
function c() {
|
|
17601
|
-
return a(r).map((
|
|
17601
|
+
return a(r).map((m) => zt(m)[s] - m[0][o]).map(Ue);
|
|
17602
17602
|
}
|
|
17603
17603
|
function h() {
|
|
17604
|
-
return r.map((
|
|
17604
|
+
return r.map((m) => n[o] - m[o]).map((m) => -Ue(m));
|
|
17605
17605
|
}
|
|
17606
17606
|
function d() {
|
|
17607
|
-
return a(u).map((
|
|
17607
|
+
return a(u).map((m) => m[0]).map((m, g) => m + l[g]);
|
|
17608
17608
|
}
|
|
17609
17609
|
return {
|
|
17610
17610
|
snaps: u,
|
|
@@ -17620,8 +17620,8 @@ function jI(e, t, n, r, i, o) {
|
|
|
17620
17620
|
} = r, u = f();
|
|
17621
17621
|
function f() {
|
|
17622
17622
|
const h = s(o), d = !e || t === "keepSnaps";
|
|
17623
|
-
return n.length === 1 ? [o] : d ? h : h.slice(a, l).map((
|
|
17624
|
-
const v = !
|
|
17623
|
+
return n.length === 1 ? [o] : d ? h : h.slice(a, l).map((p, m, g) => {
|
|
17624
|
+
const v = !m, y = hu(g, m);
|
|
17625
17625
|
if (v) {
|
|
17626
17626
|
const w = zt(g[0]) + 1;
|
|
17627
17627
|
return $f(w);
|
|
@@ -17630,7 +17630,7 @@ function jI(e, t, n, r, i, o) {
|
|
|
17630
17630
|
const w = yi(o) - zt(g)[0] + 1;
|
|
17631
17631
|
return $f(w, zt(g)[0]);
|
|
17632
17632
|
}
|
|
17633
|
-
return
|
|
17633
|
+
return p;
|
|
17634
17634
|
});
|
|
17635
17635
|
}
|
|
17636
17636
|
return {
|
|
@@ -17643,45 +17643,45 @@ function VI(e, t, n, r, i) {
|
|
|
17643
17643
|
removeOffset: s,
|
|
17644
17644
|
constrain: a
|
|
17645
17645
|
} = r;
|
|
17646
|
-
function l(
|
|
17647
|
-
return
|
|
17646
|
+
function l(p) {
|
|
17647
|
+
return p.concat().sort((m, g) => Ue(m) - Ue(g))[0];
|
|
17648
17648
|
}
|
|
17649
|
-
function u(
|
|
17650
|
-
const
|
|
17651
|
-
diff: f(y -
|
|
17649
|
+
function u(p) {
|
|
17650
|
+
const m = e ? s(p) : a(p), g = t.map((y, w) => ({
|
|
17651
|
+
diff: f(y - m, 0),
|
|
17652
17652
|
index: w
|
|
17653
17653
|
})).sort((y, w) => Ue(y.diff) - Ue(w.diff)), {
|
|
17654
17654
|
index: v
|
|
17655
17655
|
} = g[0];
|
|
17656
17656
|
return {
|
|
17657
17657
|
index: v,
|
|
17658
|
-
distance:
|
|
17658
|
+
distance: m
|
|
17659
17659
|
};
|
|
17660
17660
|
}
|
|
17661
|
-
function f(
|
|
17662
|
-
const g = [
|
|
17663
|
-
if (!e) return
|
|
17664
|
-
if (!
|
|
17665
|
-
const v = g.filter((y) => du(y) ===
|
|
17661
|
+
function f(p, m) {
|
|
17662
|
+
const g = [p, p + n, p - n];
|
|
17663
|
+
if (!e) return p;
|
|
17664
|
+
if (!m) return l(g);
|
|
17665
|
+
const v = g.filter((y) => du(y) === m);
|
|
17666
17666
|
return v.length ? l(v) : zt(g) - n;
|
|
17667
17667
|
}
|
|
17668
|
-
function c(
|
|
17669
|
-
const g = t[
|
|
17668
|
+
function c(p, m) {
|
|
17669
|
+
const g = t[p] - i.get(), v = f(g, m);
|
|
17670
17670
|
return {
|
|
17671
|
-
index:
|
|
17671
|
+
index: p,
|
|
17672
17672
|
distance: v
|
|
17673
17673
|
};
|
|
17674
17674
|
}
|
|
17675
|
-
function h(
|
|
17676
|
-
const g = i.get() +
|
|
17675
|
+
function h(p, m) {
|
|
17676
|
+
const g = i.get() + p, {
|
|
17677
17677
|
index: v,
|
|
17678
17678
|
distance: y
|
|
17679
17679
|
} = u(g), w = !e && o(g);
|
|
17680
|
-
if (!
|
|
17680
|
+
if (!m || w) return {
|
|
17681
17681
|
index: v,
|
|
17682
|
-
distance:
|
|
17682
|
+
distance: p
|
|
17683
17683
|
};
|
|
17684
|
-
const E = t[v] - y, S =
|
|
17684
|
+
const E = t[v] - y, S = p + f(E, 0);
|
|
17685
17685
|
return {
|
|
17686
17686
|
index: v,
|
|
17687
17687
|
distance: S
|
|
@@ -17703,8 +17703,8 @@ function WI(e, t, n, r, i, o, s) {
|
|
|
17703
17703
|
a(d);
|
|
17704
17704
|
}
|
|
17705
17705
|
function u(c, h) {
|
|
17706
|
-
const d = t.clone().set(c),
|
|
17707
|
-
a(
|
|
17706
|
+
const d = t.clone().set(c), p = i.byIndex(d.get(), h);
|
|
17707
|
+
a(p);
|
|
17708
17708
|
}
|
|
17709
17709
|
return {
|
|
17710
17710
|
distance: l,
|
|
@@ -17719,15 +17719,15 @@ function qI(e, t, n, r, i, o, s, a) {
|
|
|
17719
17719
|
let u = 0;
|
|
17720
17720
|
function f(d) {
|
|
17721
17721
|
if (!a) return;
|
|
17722
|
-
function m
|
|
17722
|
+
function p(m) {
|
|
17723
17723
|
if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
|
|
17724
17724
|
s.emit("slideFocusStart"), e.scrollLeft = 0;
|
|
17725
|
-
const y = n.findIndex((w) => w.includes(
|
|
17725
|
+
const y = n.findIndex((w) => w.includes(m));
|
|
17726
17726
|
fu(y) && (i.useDuration(0), r.index(y, 0), s.emit("slideFocus"));
|
|
17727
17727
|
}
|
|
17728
|
-
o.add(document, "keydown", c, !1), t.forEach((
|
|
17729
|
-
o.add(
|
|
17730
|
-
(Qo(a) || a(d, v)) &&
|
|
17728
|
+
o.add(document, "keydown", c, !1), t.forEach((m, g) => {
|
|
17729
|
+
o.add(m, "focus", (v) => {
|
|
17730
|
+
(Qo(a) || a(d, v)) && p(g);
|
|
17731
17731
|
}, l);
|
|
17732
17732
|
});
|
|
17733
17733
|
}
|
|
@@ -17793,17 +17793,17 @@ function YI(e, t, n, r, i, o, s, a, l) {
|
|
|
17793
17793
|
function d(I, R) {
|
|
17794
17794
|
return I.reduce((N, A) => N - i[A], R);
|
|
17795
17795
|
}
|
|
17796
|
-
function
|
|
17796
|
+
function p(I, R) {
|
|
17797
17797
|
return I.reduce((N, A) => d(N, R) > 0 ? N.concat([A]) : N, []);
|
|
17798
17798
|
}
|
|
17799
|
-
function
|
|
17799
|
+
function m(I) {
|
|
17800
17800
|
return o.map((R, N) => ({
|
|
17801
17801
|
start: R - r[N] + 0.5 + I,
|
|
17802
17802
|
end: R + t - 0.5 + I
|
|
17803
17803
|
}));
|
|
17804
17804
|
}
|
|
17805
17805
|
function g(I, R, N) {
|
|
17806
|
-
const A =
|
|
17806
|
+
const A = m(R);
|
|
17807
17807
|
return I.map((O) => {
|
|
17808
17808
|
const z = N ? 0 : -n, P = N ? n : 0, L = N ? "end" : "start", _ = A[O][L];
|
|
17809
17809
|
return {
|
|
@@ -17816,11 +17816,11 @@ function YI(e, t, n, r, i, o, s, a, l) {
|
|
|
17816
17816
|
});
|
|
17817
17817
|
}
|
|
17818
17818
|
function v() {
|
|
17819
|
-
const I = s[0], R =
|
|
17819
|
+
const I = s[0], R = p(c, I);
|
|
17820
17820
|
return g(R, n, !1);
|
|
17821
17821
|
}
|
|
17822
17822
|
function y() {
|
|
17823
|
-
const I = t - s[0] - 1, R =
|
|
17823
|
+
const I = t - s[0] - 1, R = p(f, I);
|
|
17824
17824
|
return g(R, -n, !0);
|
|
17825
17825
|
}
|
|
17826
17826
|
function w() {
|
|
@@ -17880,32 +17880,32 @@ function GI(e, t, n, r) {
|
|
|
17880
17880
|
const i = {};
|
|
17881
17881
|
let o = null, s = null, a, l = !1;
|
|
17882
17882
|
function u() {
|
|
17883
|
-
a = new IntersectionObserver((
|
|
17884
|
-
l || (
|
|
17885
|
-
const g = t.indexOf(
|
|
17886
|
-
i[g] =
|
|
17883
|
+
a = new IntersectionObserver((p) => {
|
|
17884
|
+
l || (p.forEach((m) => {
|
|
17885
|
+
const g = t.indexOf(m.target);
|
|
17886
|
+
i[g] = m;
|
|
17887
17887
|
}), o = null, s = null, n.emit("slidesInView"));
|
|
17888
17888
|
}, {
|
|
17889
17889
|
root: e.parentElement,
|
|
17890
17890
|
threshold: r
|
|
17891
|
-
}), t.forEach((
|
|
17891
|
+
}), t.forEach((p) => a.observe(p));
|
|
17892
17892
|
}
|
|
17893
17893
|
function f() {
|
|
17894
17894
|
a && a.disconnect(), l = !0;
|
|
17895
17895
|
}
|
|
17896
|
-
function c(
|
|
17897
|
-
return ni(i).reduce((
|
|
17896
|
+
function c(p) {
|
|
17897
|
+
return ni(i).reduce((m, g) => {
|
|
17898
17898
|
const v = parseInt(g), {
|
|
17899
17899
|
isIntersecting: y
|
|
17900
17900
|
} = i[v];
|
|
17901
|
-
return (
|
|
17901
|
+
return (p && y || !p && !y) && m.push(v), m;
|
|
17902
17902
|
}, []);
|
|
17903
17903
|
}
|
|
17904
|
-
function h(
|
|
17905
|
-
if (
|
|
17906
|
-
if (!
|
|
17907
|
-
const
|
|
17908
|
-
return
|
|
17904
|
+
function h(p = !0) {
|
|
17905
|
+
if (p && o) return o;
|
|
17906
|
+
if (!p && s) return s;
|
|
17907
|
+
const m = c(p);
|
|
17908
|
+
return p && (o = m), p || (s = m), m;
|
|
17909
17909
|
}
|
|
17910
17910
|
return {
|
|
17911
17911
|
init: u,
|
|
@@ -17918,13 +17918,13 @@ function QI(e, t, n, r, i, o) {
|
|
|
17918
17918
|
measureSize: s,
|
|
17919
17919
|
startEdge: a,
|
|
17920
17920
|
endEdge: l
|
|
17921
|
-
} = e, u = n[0] && i, f =
|
|
17922
|
-
function
|
|
17921
|
+
} = e, u = n[0] && i, f = p(), c = m(), h = n.map(s), d = g();
|
|
17922
|
+
function p() {
|
|
17923
17923
|
if (!u) return 0;
|
|
17924
17924
|
const y = n[0];
|
|
17925
17925
|
return Ue(t[a] - y[a]);
|
|
17926
17926
|
}
|
|
17927
|
-
function
|
|
17927
|
+
function m() {
|
|
17928
17928
|
if (!u) return 0;
|
|
17929
17929
|
const y = o.getComputedStyle(zt(r));
|
|
17930
17930
|
return parseFloat(y.getPropertyValue(`margin-${l}`));
|
|
@@ -17951,7 +17951,7 @@ function ZI(e, t, n, r, i, o, s, a, l) {
|
|
|
17951
17951
|
function d(v, y) {
|
|
17952
17952
|
return ti(v).filter((w) => w % y === 0).map((w) => v.slice(w, w + y));
|
|
17953
17953
|
}
|
|
17954
|
-
function
|
|
17954
|
+
function p(v) {
|
|
17955
17955
|
return v.length ? ti(v).reduce((y, w, E) => {
|
|
17956
17956
|
const S = zt(y) || 0, k = S === 0, I = w === yi(v), R = i[u] - o[S][u], N = i[u] - o[w][f], A = !r && k ? c(s) : 0, O = !r && I ? c(a) : 0, z = Ue(N - O - (R + A));
|
|
17957
17957
|
return E && z > t + l && y.push(w), I && y.push(v.length), y;
|
|
@@ -17960,11 +17960,11 @@ function ZI(e, t, n, r, i, o, s, a, l) {
|
|
|
17960
17960
|
return v.slice(S, y);
|
|
17961
17961
|
}) : [];
|
|
17962
17962
|
}
|
|
17963
|
-
function
|
|
17964
|
-
return h ? d(v, n) :
|
|
17963
|
+
function m(v) {
|
|
17964
|
+
return h ? d(v, n) : p(v);
|
|
17965
17965
|
}
|
|
17966
17966
|
return {
|
|
17967
|
-
groupSlides:
|
|
17967
|
+
groupSlides: m
|
|
17968
17968
|
};
|
|
17969
17969
|
}
|
|
17970
17970
|
function JI(e, t, n, r, i, o, s) {
|
|
@@ -17976,8 +17976,8 @@ function JI(e, t, n, r, i, o, s) {
|
|
|
17976
17976
|
loop: c,
|
|
17977
17977
|
duration: h,
|
|
17978
17978
|
dragFree: d,
|
|
17979
|
-
dragThreshold:
|
|
17980
|
-
inViewThreshold:
|
|
17979
|
+
dragThreshold: p,
|
|
17980
|
+
inViewThreshold: m,
|
|
17981
17981
|
slidesToScroll: g,
|
|
17982
17982
|
skipSnaps: v,
|
|
17983
17983
|
containScroll: y,
|
|
@@ -18027,7 +18027,7 @@ function JI(e, t, n, r, i, o, s) {
|
|
|
18027
18027
|
Hu && lt.stop();
|
|
18028
18028
|
const vv = Ge.get() * $u + Et.get() * (1 - $u);
|
|
18029
18029
|
et.set(vv), Fu && (Nt.loop(de.direction()), Qe.loop()), qe.to(et.get()), Hu && Ai.emit("settle"), zu || Ai.emit("scroll");
|
|
18030
|
-
}, pe = OI(r, i, () => F(se), (de) => te(se, de)), Ie = 0.68, Q = K[ie.get()], le = $r(Q), fe = $r(Q), ce = $r(Q), Ce = $r(Q), $e = _I(le, ce, fe, Ce, h, Ie), Oe = VI(c, K, V, J, Ce), je = WI(pe, ie, Y, $e, Oe, Ce, s), X = HI(J), oe = ri(), H = GI(t, n, s,
|
|
18030
|
+
}, pe = OI(r, i, () => F(se), (de) => te(se, de)), Ie = 0.68, Q = K[ie.get()], le = $r(Q), fe = $r(Q), ce = $r(Q), Ce = $r(Q), $e = _I(le, ce, fe, Ce, h, Ie), Oe = VI(c, K, V, J, Ce), je = WI(pe, ie, Y, $e, Oe, Ce, s), X = HI(J), oe = ri(), H = GI(t, n, s, m), {
|
|
18031
18031
|
slideRegistry: W
|
|
18032
18032
|
} = jI(_, y, K, q, M, ee), re = qI(e, n, W, je, $e, oe, s, k), se = {
|
|
18033
18033
|
ownerDocument: r,
|
|
@@ -18037,7 +18037,7 @@ function JI(e, t, n, r, i, o, s) {
|
|
|
18037
18037
|
slideRects: A,
|
|
18038
18038
|
animation: pe,
|
|
18039
18039
|
axis: O,
|
|
18040
|
-
dragHandler: DI(O, e, r, i, Ce, MI(O, i), le, pe, je, $e, Oe, ie, s, P, d,
|
|
18040
|
+
dragHandler: DI(O, e, r, i, Ce, MI(O, i), le, pe, je, $e, Oe, ie, s, P, d, p, v, Ie, S),
|
|
18041
18041
|
eventStore: oe,
|
|
18042
18042
|
percentOfView: P,
|
|
18043
18043
|
index: ie,
|
|
@@ -18161,8 +18161,8 @@ function So(e, t, n) {
|
|
|
18161
18161
|
} = o, {
|
|
18162
18162
|
on: h,
|
|
18163
18163
|
off: d,
|
|
18164
|
-
emit:
|
|
18165
|
-
} = l,
|
|
18164
|
+
emit: p
|
|
18165
|
+
} = l, m = O;
|
|
18166
18166
|
let g = !1, v, y = u(eO, So.globalOptions), w = u(y), E = [], S, k, I;
|
|
18167
18167
|
function R() {
|
|
18168
18168
|
const {
|
|
@@ -18258,10 +18258,10 @@ function So(e, t, n) {
|
|
|
18258
18258
|
destroy: P,
|
|
18259
18259
|
off: d,
|
|
18260
18260
|
on: h,
|
|
18261
|
-
emit:
|
|
18261
|
+
emit: p,
|
|
18262
18262
|
plugins: Z,
|
|
18263
18263
|
previousScrollSnap: $,
|
|
18264
|
-
reInit:
|
|
18264
|
+
reInit: m,
|
|
18265
18265
|
rootNode: K,
|
|
18266
18266
|
scrollNext: _,
|
|
18267
18267
|
scrollPrev: D,
|
|
@@ -18296,7 +18296,7 @@ function pu(e = {}, t = []) {
|
|
|
18296
18296
|
pu.globalOptions = void 0;
|
|
18297
18297
|
const Jm = rt(
|
|
18298
18298
|
({ blocks: e, direction: t, sender: n, timestamp: r, messageId: i, isReadOnly: o, sendMessage: s }, a) => {
|
|
18299
|
-
const [l, u] = pu({ skipSnaps: !0, loop: !0 }), [f, c] = Te(!0), [h, d] = Te(!0),
|
|
18299
|
+
const [l, u] = pu({ skipSnaps: !0, loop: !0 }), [f, c] = Te(!0), [h, d] = Te(!0), p = Me(() => u == null ? void 0 : u.scrollPrev(), [u]), m = Me(() => u == null ? void 0 : u.scrollNext(), [u]), {
|
|
18300
18300
|
message: {
|
|
18301
18301
|
blocks: { carousel: g }
|
|
18302
18302
|
}
|
|
@@ -18313,7 +18313,7 @@ const Jm = rt(
|
|
|
18313
18313
|
{
|
|
18314
18314
|
...g == null ? void 0 : g.backButton,
|
|
18315
18315
|
"data-disabled": f ? "" : void 0,
|
|
18316
|
-
onClick:
|
|
18316
|
+
onClick: p
|
|
18317
18317
|
}
|
|
18318
18318
|
),
|
|
18319
18319
|
/* @__PURE__ */ T(
|
|
@@ -18321,7 +18321,7 @@ const Jm = rt(
|
|
|
18321
18321
|
{
|
|
18322
18322
|
...g == null ? void 0 : g.nextButton,
|
|
18323
18323
|
"data-disabled": h ? "" : void 0,
|
|
18324
|
-
onClick:
|
|
18324
|
+
onClick: m
|
|
18325
18325
|
}
|
|
18326
18326
|
)
|
|
18327
18327
|
] })
|
|
@@ -18581,12 +18581,12 @@ const yO = async (e, t, n) => {
|
|
|
18581
18581
|
}), {
|
|
18582
18582
|
x: f,
|
|
18583
18583
|
y: c
|
|
18584
|
-
} = Uf(u, r, l), h = r, d = {},
|
|
18585
|
-
for (let
|
|
18584
|
+
} = Uf(u, r, l), h = r, d = {}, p = 0;
|
|
18585
|
+
for (let m = 0; m < a.length; m++) {
|
|
18586
18586
|
const {
|
|
18587
18587
|
name: g,
|
|
18588
18588
|
fn: v
|
|
18589
|
-
} = a[
|
|
18589
|
+
} = a[m], {
|
|
18590
18590
|
x: y,
|
|
18591
18591
|
y: w,
|
|
18592
18592
|
data: E,
|
|
@@ -18611,14 +18611,14 @@ const yO = async (e, t, n) => {
|
|
|
18611
18611
|
...d[g],
|
|
18612
18612
|
...E
|
|
18613
18613
|
}
|
|
18614
|
-
}, S &&
|
|
18614
|
+
}, S && p <= 50 && (p++, typeof S == "object" && (S.placement && (h = S.placement), S.rects && (u = S.rects === !0 ? await s.getElementRects({
|
|
18615
18615
|
reference: e,
|
|
18616
18616
|
floating: t,
|
|
18617
18617
|
strategy: i
|
|
18618
18618
|
}) : S.rects), {
|
|
18619
18619
|
x: f,
|
|
18620
18620
|
y: c
|
|
18621
|
-
} = Uf(u, h, l)),
|
|
18621
|
+
} = Uf(u, h, l)), m = -1);
|
|
18622
18622
|
}
|
|
18623
18623
|
return {
|
|
18624
18624
|
x: f,
|
|
@@ -18644,7 +18644,7 @@ async function lg(e, t) {
|
|
|
18644
18644
|
elementContext: c = "floating",
|
|
18645
18645
|
altBoundary: h = !1,
|
|
18646
18646
|
padding: d = 0
|
|
18647
|
-
} = Zo(t, e),
|
|
18647
|
+
} = Zo(t, e), p = gO(d), g = a[h ? c === "floating" ? "reference" : "floating" : c], v = Eo(await o.getClippingRect({
|
|
18648
18648
|
element: (n = await (o.isElement == null ? void 0 : o.isElement(g))) == null || n ? g : g.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
|
|
18649
18649
|
boundary: u,
|
|
18650
18650
|
rootBoundary: f,
|
|
@@ -18667,10 +18667,10 @@ async function lg(e, t) {
|
|
|
18667
18667
|
strategy: l
|
|
18668
18668
|
}) : y);
|
|
18669
18669
|
return {
|
|
18670
|
-
top: (v.top - S.top +
|
|
18671
|
-
bottom: (S.bottom - v.bottom +
|
|
18672
|
-
left: (v.left - S.left +
|
|
18673
|
-
right: (S.right - v.right +
|
|
18670
|
+
top: (v.top - S.top + p.top) / E.y,
|
|
18671
|
+
bottom: (S.bottom - v.bottom + p.bottom) / E.y,
|
|
18672
|
+
left: (v.left - S.left + p.left) / E.x,
|
|
18673
|
+
right: (S.right - v.right + p.right) / E.x
|
|
18674
18674
|
};
|
|
18675
18675
|
}
|
|
18676
18676
|
const vO = /* @__PURE__ */ new Set(["left", "top"]);
|
|
@@ -18683,7 +18683,7 @@ async function bO(e, t) {
|
|
|
18683
18683
|
let {
|
|
18684
18684
|
mainAxis: h,
|
|
18685
18685
|
crossAxis: d,
|
|
18686
|
-
alignmentAxis:
|
|
18686
|
+
alignmentAxis: p
|
|
18687
18687
|
} = typeof c == "number" ? {
|
|
18688
18688
|
mainAxis: c,
|
|
18689
18689
|
crossAxis: 0,
|
|
@@ -18693,7 +18693,7 @@ async function bO(e, t) {
|
|
|
18693
18693
|
crossAxis: c.crossAxis || 0,
|
|
18694
18694
|
alignmentAxis: c.alignmentAxis
|
|
18695
18695
|
};
|
|
18696
|
-
return a && typeof
|
|
18696
|
+
return a && typeof p == "number" && (d = a === "end" ? p * -1 : p), l ? {
|
|
18697
18697
|
x: d * f,
|
|
18698
18698
|
y: h * u
|
|
18699
18699
|
} : {
|
|
@@ -18752,25 +18752,25 @@ const wO = function(e) {
|
|
|
18752
18752
|
x: n,
|
|
18753
18753
|
y: r
|
|
18754
18754
|
}, f = await lg(t, l), c = wi(bi(i)), h = ag(c);
|
|
18755
|
-
let d = u[h],
|
|
18755
|
+
let d = u[h], p = u[c];
|
|
18756
18756
|
if (o) {
|
|
18757
18757
|
const g = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", y = d + f[g], w = d - f[v];
|
|
18758
18758
|
d = Hf(y, d, w);
|
|
18759
18759
|
}
|
|
18760
18760
|
if (s) {
|
|
18761
|
-
const g = c === "y" ? "top" : "left", v = c === "y" ? "bottom" : "right", y =
|
|
18762
|
-
|
|
18761
|
+
const g = c === "y" ? "top" : "left", v = c === "y" ? "bottom" : "right", y = p + f[g], w = p - f[v];
|
|
18762
|
+
p = Hf(y, p, w);
|
|
18763
18763
|
}
|
|
18764
|
-
const
|
|
18764
|
+
const m = a.fn({
|
|
18765
18765
|
...t,
|
|
18766
18766
|
[h]: d,
|
|
18767
|
-
[c]:
|
|
18767
|
+
[c]: p
|
|
18768
18768
|
});
|
|
18769
18769
|
return {
|
|
18770
|
-
...
|
|
18770
|
+
...m,
|
|
18771
18771
|
data: {
|
|
18772
|
-
x:
|
|
18773
|
-
y:
|
|
18772
|
+
x: m.x - n,
|
|
18773
|
+
y: m.y - r,
|
|
18774
18774
|
enabled: {
|
|
18775
18775
|
[h]: o,
|
|
18776
18776
|
[c]: s
|
|
@@ -18795,16 +18795,16 @@ const wO = function(e) {
|
|
|
18795
18795
|
},
|
|
18796
18796
|
...u
|
|
18797
18797
|
} = Zo(e, t), f = await lg(t, u), c = bi(i), h = mu(i), d = wi(i) === "y", {
|
|
18798
|
-
width:
|
|
18799
|
-
height:
|
|
18798
|
+
width: p,
|
|
18799
|
+
height: m
|
|
18800
18800
|
} = o.floating;
|
|
18801
18801
|
let g, v;
|
|
18802
18802
|
c === "top" || c === "bottom" ? (g = c, v = h === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (v = c, g = h === "end" ? "top" : "bottom");
|
|
18803
|
-
const y =
|
|
18803
|
+
const y = m - f.top - f.bottom, w = p - f.left - f.right, E = ur(m - f[g], y), S = ur(p - f[v], w), k = !t.middlewareData.shift;
|
|
18804
18804
|
let I = E, R = S;
|
|
18805
18805
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = w), (r = t.middlewareData.shift) != null && r.enabled.y && (I = y), k && !h) {
|
|
18806
18806
|
const A = wt(f.left, 0), O = wt(f.right, 0), z = wt(f.top, 0), P = wt(f.bottom, 0);
|
|
18807
|
-
d ? R =
|
|
18807
|
+
d ? R = p - 2 * (A !== 0 || O !== 0 ? A + O : wt(f.left, f.right)) : I = m - 2 * (z !== 0 || P !== 0 ? z + P : wt(f.top, f.bottom));
|
|
18808
18808
|
}
|
|
18809
18809
|
await l({
|
|
18810
18810
|
...t,
|
|
@@ -18812,7 +18812,7 @@ const wO = function(e) {
|
|
|
18812
18812
|
availableHeight: I
|
|
18813
18813
|
});
|
|
18814
18814
|
const N = await s.getDimensions(a.floating);
|
|
18815
|
-
return
|
|
18815
|
+
return p !== N.width || m !== N.height ? {
|
|
18816
18816
|
reset: {
|
|
18817
18817
|
rects: !0
|
|
18818
18818
|
}
|
|
@@ -18982,10 +18982,10 @@ function Ln(e, t, n, r) {
|
|
|
18982
18982
|
let l = (i.left + a.x) / s.x, u = (i.top + a.y) / s.y, f = i.width / s.x, c = i.height / s.y;
|
|
18983
18983
|
if (o) {
|
|
18984
18984
|
const h = kt(o), d = r && Ut(r) ? kt(r) : r;
|
|
18985
|
-
let
|
|
18986
|
-
for (;
|
|
18987
|
-
const g = Xn(
|
|
18988
|
-
l *= g.x, u *= g.y, f *= g.x, c *= g.y, l += w, u += E,
|
|
18985
|
+
let p = h, m = Xa(p);
|
|
18986
|
+
for (; m && r && d !== p; ) {
|
|
18987
|
+
const g = Xn(m), v = m.getBoundingClientRect(), y = jt(m), w = v.left + (m.clientLeft + parseFloat(y.paddingLeft)) * g.x, E = v.top + (m.clientTop + parseFloat(y.paddingTop)) * g.y;
|
|
18988
|
+
l *= g.x, u *= g.y, f *= g.x, c *= g.y, l += w, u += E, p = kt(m), m = Xa(p);
|
|
18989
18989
|
}
|
|
18990
18990
|
}
|
|
18991
18991
|
return Eo({
|
|
@@ -19058,8 +19058,8 @@ function FO(e, t) {
|
|
|
19058
19058
|
}
|
|
19059
19059
|
const u = ts(r);
|
|
19060
19060
|
if (u <= 0) {
|
|
19061
|
-
const f = r.ownerDocument, c = f.body, h = getComputedStyle(c), d = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0,
|
|
19062
|
-
|
|
19061
|
+
const f = r.ownerDocument, c = f.body, h = getComputedStyle(c), d = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, p = Math.abs(r.clientWidth - c.clientWidth - d);
|
|
19062
|
+
p <= Vf && (o -= p);
|
|
19063
19063
|
} else u <= Vf && (o += u);
|
|
19064
19064
|
return {
|
|
19065
19065
|
width: o,
|
|
@@ -19242,8 +19242,8 @@ function YO(e, t) {
|
|
|
19242
19242
|
} = u;
|
|
19243
19243
|
if (a || t(), !h || !d)
|
|
19244
19244
|
return;
|
|
19245
|
-
const
|
|
19246
|
-
rootMargin: -
|
|
19245
|
+
const p = Bi(c), m = Bi(i.clientWidth - (f + h)), g = Bi(i.clientHeight - (c + d)), v = Bi(f), w = {
|
|
19246
|
+
rootMargin: -p + "px " + -m + "px " + -g + "px " + -v + "px",
|
|
19247
19247
|
threshold: wt(0, ur(1, l)) || 1
|
|
19248
19248
|
};
|
|
19249
19249
|
let E = !0;
|
|
@@ -19294,17 +19294,17 @@ function KO(e, t, n, r) {
|
|
|
19294
19294
|
(w = d) == null || w.observe(t);
|
|
19295
19295
|
})), n();
|
|
19296
19296
|
}), u && !l && d.observe(u), d.observe(t));
|
|
19297
|
-
let
|
|
19297
|
+
let p, m = l ? Ln(e) : null;
|
|
19298
19298
|
l && g();
|
|
19299
19299
|
function g() {
|
|
19300
19300
|
const v = Ln(e);
|
|
19301
|
-
|
|
19301
|
+
m && !gg(m, v) && n(), m = v, p = requestAnimationFrame(g);
|
|
19302
19302
|
}
|
|
19303
19303
|
return n(), () => {
|
|
19304
19304
|
var v;
|
|
19305
19305
|
f.forEach((y) => {
|
|
19306
19306
|
i && y.removeEventListener("scroll", n), o && y.removeEventListener("resize", n);
|
|
19307
|
-
}), c == null || c(), (v = d) == null || v.disconnect(), d = null, l && cancelAnimationFrame(
|
|
19307
|
+
}), c == null || c(), (v = d) == null || v.disconnect(), d = null, l && cancelAnimationFrame(p);
|
|
19308
19308
|
};
|
|
19309
19309
|
}
|
|
19310
19310
|
const GO = wO, QO = xO, ZO = SO, JO = (e, t, n) => {
|
|
@@ -19388,11 +19388,11 @@ function tR(e) {
|
|
|
19388
19388
|
isPositioned: !1
|
|
19389
19389
|
}), [h, d] = C.useState(r);
|
|
19390
19390
|
Co(h, r) || d(r);
|
|
19391
|
-
const [
|
|
19392
|
-
B !== k.current && (k.current = B,
|
|
19391
|
+
const [p, m] = C.useState(null), [g, v] = C.useState(null), y = C.useCallback((B) => {
|
|
19392
|
+
B !== k.current && (k.current = B, m(B));
|
|
19393
19393
|
}, []), w = C.useCallback((B) => {
|
|
19394
19394
|
B !== I.current && (I.current = B, v(B));
|
|
19395
|
-
}, []), E = o ||
|
|
19395
|
+
}, []), E = o || p, S = s || g, k = C.useRef(null), I = C.useRef(null), R = C.useRef(f), N = l != null, A = Gs(l), O = Gs(i), z = Gs(u), P = C.useCallback(() => {
|
|
19396
19396
|
if (!k.current || !I.current)
|
|
19397
19397
|
return;
|
|
19398
19398
|
const B = {
|
|
@@ -19729,8 +19729,8 @@ function xR(e, t) {
|
|
|
19729
19729
|
decrement: !0,
|
|
19730
19730
|
disabledIndices: s
|
|
19731
19731
|
}), i && (u - o < a || c < 0)) {
|
|
19732
|
-
const h = u % o, d = l % o,
|
|
19733
|
-
d === h ? c = l : c = d > h ?
|
|
19732
|
+
const h = u % o, d = l % o, p = l - (d - h);
|
|
19733
|
+
d === h ? c = l : c = d > h ? p : p - o;
|
|
19734
19734
|
}
|
|
19735
19735
|
Yr(e, c) && (c = u);
|
|
19736
19736
|
}
|
|
@@ -19888,19 +19888,19 @@ function MR(e, t, n, r) {
|
|
|
19888
19888
|
!d || a.has(d) || (a.add(d), d.parentNode && c(d.parentNode));
|
|
19889
19889
|
}
|
|
19890
19890
|
function h(d) {
|
|
19891
|
-
!d || l.has(d) || Array.prototype.forEach.call(d.children, (
|
|
19892
|
-
if (a.has(
|
|
19893
|
-
h(
|
|
19891
|
+
!d || l.has(d) || Array.prototype.forEach.call(d.children, (p) => {
|
|
19892
|
+
if (a.has(p))
|
|
19893
|
+
h(p);
|
|
19894
19894
|
else {
|
|
19895
|
-
const
|
|
19896
|
-
Un.set(
|
|
19895
|
+
const m = o ? p.getAttribute(o) : null, g = m !== null && m !== "false", v = (Un.get(p) || 0) + 1, y = (f.get(p) || 0) + 1;
|
|
19896
|
+
Un.set(p, v), f.set(p, y), u.push(p), v === 1 && g && Hi.add(p), y === 1 && p.setAttribute(i, ""), !g && o && p.setAttribute(o, "true");
|
|
19897
19897
|
}
|
|
19898
19898
|
});
|
|
19899
19899
|
}
|
|
19900
19900
|
return Js++, () => {
|
|
19901
19901
|
u.forEach((d) => {
|
|
19902
|
-
const
|
|
19903
|
-
Un.set(d,
|
|
19902
|
+
const p = (Un.get(d) || 0) - 1, m = (f.get(d) || 0) - 1;
|
|
19903
|
+
Un.set(d, p), f.set(d, m), p || (!Hi.has(d) && o && d.removeAttribute(o), Hi.delete(d)), m || d.removeAttribute(i);
|
|
19904
19904
|
}), Js--, Js || (Un = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakSet(), Ui = {});
|
|
19905
19905
|
};
|
|
19906
19906
|
}
|
|
@@ -19999,17 +19999,17 @@ function _R(e) {
|
|
|
19999
19999
|
root: f,
|
|
20000
20000
|
portalContext: c,
|
|
20001
20001
|
uniqueId: h
|
|
20002
|
-
} = a, d = u ? document.getElementById(u) : null,
|
|
20002
|
+
} = a, d = u ? document.getElementById(u) : null, p = si("portal");
|
|
20003
20003
|
if (d) {
|
|
20004
|
-
const
|
|
20005
|
-
|
|
20004
|
+
const m = document.createElement("div");
|
|
20005
|
+
m.id = h, m.setAttribute(p, ""), d.appendChild(m), i(m);
|
|
20006
20006
|
} else {
|
|
20007
|
-
let
|
|
20008
|
-
|
|
20007
|
+
let m = f || (c == null ? void 0 : c.portalNode);
|
|
20008
|
+
m && !Ot(m) && (m = m.current), m = m || document.body;
|
|
20009
20009
|
let g = null;
|
|
20010
|
-
u && (g = document.createElement("div"), g.id = u,
|
|
20010
|
+
u && (g = document.createElement("div"), g.id = u, m.appendChild(g));
|
|
20011
20011
|
const v = document.createElement("div");
|
|
20012
|
-
v.id = h, v.setAttribute(
|
|
20012
|
+
v.id = h, v.setAttribute(p, ""), m = g || m, m.appendChild(v), i(v);
|
|
20013
20013
|
}
|
|
20014
20014
|
}, [a]), r;
|
|
20015
20015
|
}
|
|
@@ -20033,8 +20033,8 @@ function FR(e) {
|
|
|
20033
20033
|
return C.useEffect(() => {
|
|
20034
20034
|
if (!o || !i || s != null && s.modal)
|
|
20035
20035
|
return;
|
|
20036
|
-
function d(
|
|
20037
|
-
o && Kr(
|
|
20036
|
+
function d(p) {
|
|
20037
|
+
o && Kr(p) && (p.type === "focusin" ? PR : NR)(o);
|
|
20038
20038
|
}
|
|
20039
20039
|
return o.addEventListener("focusin", d, !0), o.addEventListener("focusout", d, !0), () => {
|
|
20040
20040
|
o.removeEventListener("focusin", d, !0), o.removeEventListener("focusout", d, !0);
|
|
@@ -20054,11 +20054,11 @@ function FR(e) {
|
|
|
20054
20054
|
ref: l,
|
|
20055
20055
|
onFocus: (d) => {
|
|
20056
20056
|
if (Kr(d, o)) {
|
|
20057
|
-
var
|
|
20058
|
-
(
|
|
20057
|
+
var p;
|
|
20058
|
+
(p = f.current) == null || p.focus();
|
|
20059
20059
|
} else {
|
|
20060
|
-
const
|
|
20061
|
-
|
|
20060
|
+
const m = Tg() || (s == null ? void 0 : s.refs.domReference.current);
|
|
20061
|
+
m == null || m.focus();
|
|
20062
20062
|
}
|
|
20063
20063
|
}
|
|
20064
20064
|
}), h && o && /* @__PURE__ */ C.createElement("span", {
|
|
@@ -20069,11 +20069,11 @@ function FR(e) {
|
|
|
20069
20069
|
ref: u,
|
|
20070
20070
|
onFocus: (d) => {
|
|
20071
20071
|
if (Kr(d, o)) {
|
|
20072
|
-
var
|
|
20073
|
-
(
|
|
20072
|
+
var p;
|
|
20073
|
+
(p = c.current) == null || p.focus();
|
|
20074
20074
|
} else {
|
|
20075
|
-
const
|
|
20076
|
-
|
|
20075
|
+
const m = Ag() || (s == null ? void 0 : s.refs.domReference.current);
|
|
20076
|
+
m == null || m.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, d.nativeEvent));
|
|
20077
20077
|
}
|
|
20078
20078
|
}
|
|
20079
20079
|
}));
|
|
@@ -20102,8 +20102,8 @@ function BR(e) {
|
|
|
20102
20102
|
open: c,
|
|
20103
20103
|
refs: h,
|
|
20104
20104
|
nodeId: d,
|
|
20105
|
-
onOpenChange:
|
|
20106
|
-
events:
|
|
20105
|
+
onOpenChange: p,
|
|
20106
|
+
events: m,
|
|
20107
20107
|
dataRef: g,
|
|
20108
20108
|
elements: {
|
|
20109
20109
|
domReference: v,
|
|
@@ -20146,14 +20146,14 @@ function BR(e) {
|
|
|
20146
20146
|
return ((K = q.context) == null ? void 0 : K.elements.floating) === V || ((J = q.context) == null ? void 0 : J.elements.domReference) === V;
|
|
20147
20147
|
})));
|
|
20148
20148
|
V && Z && !L.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
|
20149
|
-
V !== P.current && (z.current = !0,
|
|
20149
|
+
V !== P.current && (z.current = !0, p(!1, x));
|
|
20150
20150
|
});
|
|
20151
20151
|
}
|
|
20152
20152
|
if (y && lr(v))
|
|
20153
20153
|
return v.addEventListener("focusout", $), v.addEventListener("pointerdown", M), !l && y.addEventListener("focusout", $), () => {
|
|
20154
20154
|
v.removeEventListener("focusout", $), v.removeEventListener("pointerdown", M), !l && y.removeEventListener("focusout", $);
|
|
20155
20155
|
};
|
|
20156
|
-
}, [r, v, y, l, d, I, R,
|
|
20156
|
+
}, [r, v, y, l, d, I, R, p, f]), C.useEffect(() => {
|
|
20157
20157
|
var M;
|
|
20158
20158
|
if (r) return;
|
|
20159
20159
|
const $ = Array.from((R == null || (M = R.portalNode) == null ? void 0 : M.querySelectorAll("[" + si("portal") + "]")) || []);
|
|
@@ -20183,8 +20183,8 @@ function BR(e) {
|
|
|
20183
20183
|
const K = q.data.returnFocus;
|
|
20184
20184
|
typeof K == "object" ? (z.current = !1, M = K.preventScroll) : z.current = !K;
|
|
20185
20185
|
}
|
|
20186
|
-
return
|
|
20187
|
-
|
|
20186
|
+
return m.on("dismiss", Z), () => {
|
|
20187
|
+
m.off("dismiss", Z);
|
|
20188
20188
|
const q = hn($);
|
|
20189
20189
|
(pt(y, q) || I && er(I.nodesRef.current, d).some((J) => {
|
|
20190
20190
|
var ie;
|
|
@@ -20199,18 +20199,18 @@ function BR(e) {
|
|
|
20199
20199
|
preventScroll: M
|
|
20200
20200
|
});
|
|
20201
20201
|
};
|
|
20202
|
-
}, [r, y, k, g, h,
|
|
20202
|
+
}, [r, y, k, g, h, m, I, d]), Xe(() => {
|
|
20203
20203
|
if (!(r || !R))
|
|
20204
20204
|
return R.setFocusManagerState({
|
|
20205
20205
|
modal: l,
|
|
20206
20206
|
closeOnFocusOut: f,
|
|
20207
20207
|
open: c,
|
|
20208
|
-
onOpenChange:
|
|
20208
|
+
onOpenChange: p,
|
|
20209
20209
|
refs: h
|
|
20210
20210
|
}), () => {
|
|
20211
20211
|
R.setFocusManagerState(null);
|
|
20212
20212
|
};
|
|
20213
|
-
}, [r, R, l, c,
|
|
20213
|
+
}, [r, R, l, c, p, h, f]), Xe(() => {
|
|
20214
20214
|
if (!r && y && typeof MutationObserver == "function" && !N) {
|
|
20215
20215
|
const M = () => {
|
|
20216
20216
|
const x = y.getAttribute("tabindex");
|
|
@@ -20230,7 +20230,7 @@ function BR(e) {
|
|
|
20230
20230
|
function j(M) {
|
|
20231
20231
|
return r || !u || !l ? null : /* @__PURE__ */ C.createElement($R, {
|
|
20232
20232
|
ref: M === "start" ? A : O,
|
|
20233
|
-
onClick: ($) =>
|
|
20233
|
+
onClick: ($) => p(!1, $.nativeEvent)
|
|
20234
20234
|
}, typeof u == "string" ? u : "Dismiss");
|
|
20235
20235
|
}
|
|
20236
20236
|
const b = !r && w && !D && (_ || l);
|
|
@@ -20360,8 +20360,8 @@ function qR(e, t) {
|
|
|
20360
20360
|
escapeKey: c = !0,
|
|
20361
20361
|
outsidePress: h = !0,
|
|
20362
20362
|
outsidePressEvent: d = "pointerdown",
|
|
20363
|
-
referencePress:
|
|
20364
|
-
referencePressEvent:
|
|
20363
|
+
referencePress: p = !1,
|
|
20364
|
+
referencePressEvent: m = "pointerdown",
|
|
20365
20365
|
ancestorScroll: g = !1,
|
|
20366
20366
|
bubbles: v
|
|
20367
20367
|
} = t, y = rs(), w = kg() != null, E = yn(typeof h == "function" ? h : () => !1), S = typeof h == "function" ? E : h, k = C.useRef(!1), {
|
|
@@ -20467,8 +20467,8 @@ function qR(e, t) {
|
|
|
20467
20467
|
}, [S, d]), C.useMemo(() => f ? {
|
|
20468
20468
|
reference: {
|
|
20469
20469
|
onKeyDown: N,
|
|
20470
|
-
[jR[
|
|
20471
|
-
|
|
20470
|
+
[jR[m]]: (O) => {
|
|
20471
|
+
p && (i.emit("dismiss", {
|
|
20472
20472
|
type: "referencePress",
|
|
20473
20473
|
data: {
|
|
20474
20474
|
returnFocus: !1
|
|
@@ -20482,7 +20482,7 @@ function qR(e, t) {
|
|
|
20482
20482
|
k.current = !0;
|
|
20483
20483
|
}
|
|
20484
20484
|
}
|
|
20485
|
-
} : {}, [f, i,
|
|
20485
|
+
} : {}, [f, i, p, d, m, r, N]);
|
|
20486
20486
|
}
|
|
20487
20487
|
let nl;
|
|
20488
20488
|
process.env.NODE_ENV !== "production" && (nl = /* @__PURE__ */ new Set());
|
|
@@ -20506,15 +20506,15 @@ function YR(e) {
|
|
|
20506
20506
|
}
|
|
20507
20507
|
}
|
|
20508
20508
|
const [l, u] = C.useState(null), f = ((t = e.elements) == null ? void 0 : t.reference) || l, c = tR(e), h = rs(), d = yn((I, R) => {
|
|
20509
|
-
I && (
|
|
20510
|
-
}),
|
|
20509
|
+
I && (m.current.openEvent = R), r == null || r(I, R);
|
|
20510
|
+
}), p = C.useRef(null), m = C.useRef({}), g = C.useState(() => CR())[0], v = xu(), y = C.useCallback((I) => {
|
|
20511
20511
|
const R = Ot(I) ? {
|
|
20512
20512
|
getBoundingClientRect: () => I.getBoundingClientRect(),
|
|
20513
20513
|
contextElement: I
|
|
20514
20514
|
} : I;
|
|
20515
20515
|
c.refs.setReference(R);
|
|
20516
20516
|
}, [c.refs]), w = C.useCallback((I) => {
|
|
20517
|
-
(Ot(I) || I === null) && (
|
|
20517
|
+
(Ot(I) || I === null) && (p.current = I, u(I)), (Ot(c.refs.reference.current) || c.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
20518
20518
|
// `null` to support `positionReference` + an unstable `reference`
|
|
20519
20519
|
// callback ref.
|
|
20520
20520
|
I !== null && !Ot(I)) && c.refs.setReference(I);
|
|
@@ -20522,7 +20522,7 @@ function YR(e) {
|
|
|
20522
20522
|
...c.refs,
|
|
20523
20523
|
setReference: w,
|
|
20524
20524
|
setPositionReference: y,
|
|
20525
|
-
domReference:
|
|
20525
|
+
domReference: p
|
|
20526
20526
|
}), [c.refs, w, y]), S = C.useMemo(() => ({
|
|
20527
20527
|
...c.elements,
|
|
20528
20528
|
domReference: f
|
|
@@ -20530,7 +20530,7 @@ function YR(e) {
|
|
|
20530
20530
|
...c,
|
|
20531
20531
|
refs: E,
|
|
20532
20532
|
elements: S,
|
|
20533
|
-
dataRef:
|
|
20533
|
+
dataRef: m,
|
|
20534
20534
|
nodeId: i,
|
|
20535
20535
|
floatingId: v,
|
|
20536
20536
|
events: g,
|
|
@@ -20562,7 +20562,7 @@ function Xs(e, t, n) {
|
|
|
20562
20562
|
(u = r.get(a)) == null || u.push(l), i[a] = function() {
|
|
20563
20563
|
for (var f, c = arguments.length, h = new Array(c), d = 0; d < c; d++)
|
|
20564
20564
|
h[d] = arguments[d];
|
|
20565
|
-
return (f = r.get(a)) == null ? void 0 : f.map((
|
|
20565
|
+
return (f = r.get(a)) == null ? void 0 : f.map((p) => p(...h)).find((p) => p !== void 0);
|
|
20566
20566
|
};
|
|
20567
20567
|
}
|
|
20568
20568
|
} else
|
|
@@ -20636,8 +20636,8 @@ function QR(e, t) {
|
|
|
20636
20636
|
selectedIndex: c = null,
|
|
20637
20637
|
allowEscape: h = !1,
|
|
20638
20638
|
loop: d = !1,
|
|
20639
|
-
nested:
|
|
20640
|
-
rtl:
|
|
20639
|
+
nested: p = !1,
|
|
20640
|
+
rtl: m = !1,
|
|
20641
20641
|
virtual: g = !1,
|
|
20642
20642
|
focusItemOnOpen: v = "auto",
|
|
20643
20643
|
focusItemOnHover: y = !0,
|
|
@@ -20687,12 +20687,12 @@ function QR(e, t) {
|
|
|
20687
20687
|
if (U.current && (P.current = -1, K(a, P)), !U.current && z.current && (L.current != null || z.current === !0 && L.current == null)) {
|
|
20688
20688
|
let Y = 0;
|
|
20689
20689
|
const ee = () => {
|
|
20690
|
-
a.current[0] == null ? (Y < 2 && (Y ? requestAnimationFrame : queueMicrotask)(ee), Y++) : (P.current = L.current == null || ea(L.current, S,
|
|
20690
|
+
a.current[0] == null ? (Y < 2 && (Y ? requestAnimationFrame : queueMicrotask)(ee), Y++) : (P.current = L.current == null || ea(L.current, S, m) || p ? Qs(a, b.current) : Qf(a, b.current), L.current = null, O(P.current));
|
|
20691
20691
|
};
|
|
20692
20692
|
ee();
|
|
20693
20693
|
}
|
|
20694
20694
|
} else Yr(a, l) || (P.current = l, K(a, P, j.current), j.current = !1);
|
|
20695
|
-
}, [f, n, s, l, c,
|
|
20695
|
+
}, [f, n, s, l, c, p, a, S, m, O, K, b]), Xe(() => {
|
|
20696
20696
|
var Y, ee;
|
|
20697
20697
|
if (!f || s || !A || g || !U.current)
|
|
20698
20698
|
return;
|
|
@@ -20760,7 +20760,7 @@ function QR(e, t) {
|
|
|
20760
20760
|
function ee(Q) {
|
|
20761
20761
|
if (_.current = !1, B.current = !0, !M.current && Q.currentTarget === i.floating.current)
|
|
20762
20762
|
return;
|
|
20763
|
-
if (
|
|
20763
|
+
if (p && od(Q.key, S, m)) {
|
|
20764
20764
|
nt(Q), r(!1, Q.nativeEvent), lr(o) && !g && o.focus();
|
|
20765
20765
|
return;
|
|
20766
20766
|
}
|
|
@@ -20777,10 +20777,10 @@ function QR(e, t) {
|
|
|
20777
20777
|
stopEvent: !0
|
|
20778
20778
|
}), O(P.current), S === "both")) && id(Q.key, S)) {
|
|
20779
20779
|
if (nt(Q), n && !g && hn(Q.currentTarget.ownerDocument) === Q.currentTarget) {
|
|
20780
|
-
P.current = ea(Q.key, S,
|
|
20780
|
+
P.current = ea(Q.key, S, m) ? fe : ce, O(P.current);
|
|
20781
20781
|
return;
|
|
20782
20782
|
}
|
|
20783
|
-
ea(Q.key, S,
|
|
20783
|
+
ea(Q.key, S, m) ? d ? P.current = le >= ce ? h && le !== a.current.length ? -1 : fe : it(a, {
|
|
20784
20784
|
startingIndex: le,
|
|
20785
20785
|
disabledIndices: Y
|
|
20786
20786
|
}) : P.current = Math.min(ce, it(a, {
|
|
@@ -20811,7 +20811,7 @@ function QR(e, t) {
|
|
|
20811
20811
|
...pe,
|
|
20812
20812
|
onKeyDown(Q) {
|
|
20813
20813
|
_.current = !1;
|
|
20814
|
-
const le = Q.key.indexOf("Arrow") === 0, fe = GR(Q.key, S,
|
|
20814
|
+
const le = Q.key.indexOf("Arrow") === 0, fe = GR(Q.key, S, m), ce = od(Q.key, S, m), Ce = id(Q.key, S), $e = (p ? fe : Ce) || Q.key === "Enter" || Q.key.trim() === "";
|
|
20815
20815
|
if (g && n) {
|
|
20816
20816
|
const oe = A == null ? void 0 : A.nodesRef.current.find((W) => W.parentId == null), H = A && oe ? OR(A.nodesRef.current, oe.id) : null;
|
|
20817
20817
|
if (le && H && R) {
|
|
@@ -20833,7 +20833,7 @@ function QR(e, t) {
|
|
|
20833
20833
|
return ee(Q);
|
|
20834
20834
|
}
|
|
20835
20835
|
if (!(!n && !w && le)) {
|
|
20836
|
-
if ($e && (L.current =
|
|
20836
|
+
if ($e && (L.current = p && Ce ? null : Q.key), p) {
|
|
20837
20837
|
fe && (nt(Q), n ? (P.current = Qs(a, Y), O(P.current)) : r(!0, Q.nativeEvent));
|
|
20838
20838
|
return;
|
|
20839
20839
|
}
|
|
@@ -20857,7 +20857,7 @@ function QR(e, t) {
|
|
|
20857
20857
|
},
|
|
20858
20858
|
item: ie
|
|
20859
20859
|
};
|
|
20860
|
-
}, [o, i, x, Z, b, M, a, f, S,
|
|
20860
|
+
}, [o, i, x, Z, b, M, a, f, S, m, g, n, J, p, c, w, h, k, d, v, O, r, ie, A, R]);
|
|
20861
20861
|
}
|
|
20862
20862
|
function ZR(e, t) {
|
|
20863
20863
|
t === void 0 && (t = {});
|
|
@@ -20914,11 +20914,11 @@ function JR(e, t) {
|
|
|
20914
20914
|
resetMs: c = 750,
|
|
20915
20915
|
ignoreKeys: h = [],
|
|
20916
20916
|
selectedIndex: d = null
|
|
20917
|
-
} = t,
|
|
20917
|
+
} = t, p = C.useRef(), m = C.useRef(""), g = C.useRef((n = d ?? s) != null ? n : -1), v = C.useRef(null), y = yn(a), w = yn(l), E = gn(f), S = gn(h);
|
|
20918
20918
|
return Xe(() => {
|
|
20919
|
-
r && (clearTimeout(
|
|
20919
|
+
r && (clearTimeout(p.current), v.current = null, m.current = "");
|
|
20920
20920
|
}, [r]), Xe(() => {
|
|
20921
|
-
if (r &&
|
|
20921
|
+
if (r && m.current === "") {
|
|
20922
20922
|
var k;
|
|
20923
20923
|
g.current = (k = d ?? s) != null ? k : -1;
|
|
20924
20924
|
}
|
|
@@ -20934,18 +20934,18 @@ function JR(e, t) {
|
|
|
20934
20934
|
}
|
|
20935
20935
|
function R(N) {
|
|
20936
20936
|
const A = o.current;
|
|
20937
|
-
if (
|
|
20937
|
+
if (m.current.length > 0 && m.current[0] !== " " && (I(A, A, m.current) === -1 ? k(!1) : N.key === " " && nt(N)), A == null || S.current.includes(N.key) || // Character key.
|
|
20938
20938
|
N.key.length !== 1 || // Modifier key.
|
|
20939
20939
|
N.ctrlKey || N.metaKey || N.altKey)
|
|
20940
20940
|
return;
|
|
20941
20941
|
r && N.key !== " " && (nt(N), k(!0)), A.every((L) => {
|
|
20942
20942
|
var _, D;
|
|
20943
20943
|
return L ? ((_ = L[0]) == null ? void 0 : _.toLocaleLowerCase()) !== ((D = L[1]) == null ? void 0 : D.toLocaleLowerCase()) : !0;
|
|
20944
|
-
}) &&
|
|
20945
|
-
|
|
20944
|
+
}) && m.current === N.key && (m.current = "", g.current = v.current), m.current += N.key, clearTimeout(p.current), p.current = setTimeout(() => {
|
|
20945
|
+
m.current = "", g.current = v.current, k(!1);
|
|
20946
20946
|
}, c);
|
|
20947
|
-
const z = g.current, P = I(A, [...A.slice((z || 0) + 1), ...A.slice(0, (z || 0) + 1)],
|
|
20948
|
-
P !== -1 ? (y(P), v.current = P) : N.key !== " " && (
|
|
20947
|
+
const z = g.current, P = I(A, [...A.slice((z || 0) + 1), ...A.slice(0, (z || 0) + 1)], m.current);
|
|
20948
|
+
P !== -1 ? (y(P), v.current = P) : N.key !== " " && (m.current = "", k(!1));
|
|
20949
20949
|
}
|
|
20950
20950
|
return {
|
|
20951
20951
|
reference: {
|
|
@@ -20969,12 +20969,12 @@ const XR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
|
20969
20969
|
} = ge, d = e.reduce(
|
|
20970
20970
|
(b, M) => (b[M.label] = M.value, b),
|
|
20971
20971
|
{}
|
|
20972
|
-
),
|
|
20972
|
+
), p = d ? Object.keys(d) : [], m = (b) => {
|
|
20973
20973
|
a(f !== null && !t ? !1 : b);
|
|
20974
20974
|
}, { refs: g, floatingStyles: v, context: y } = YR({
|
|
20975
20975
|
placement: "bottom-start",
|
|
20976
20976
|
open: s,
|
|
20977
|
-
onOpenChange:
|
|
20977
|
+
onOpenChange: m,
|
|
20978
20978
|
whileElementsMounted: KO,
|
|
20979
20979
|
middleware: [
|
|
20980
20980
|
nR(5),
|
|
@@ -20993,7 +20993,7 @@ const XR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
|
20993
20993
|
padding: 10
|
|
20994
20994
|
})
|
|
20995
20995
|
]
|
|
20996
|
-
}), w = C.useRef([]), E = C.useRef(
|
|
20996
|
+
}), w = C.useRef([]), E = C.useRef(p), S = C.useRef(!1), k = zR(y, { event: "mousedown" }), I = qR(y), R = ZR(y, { role: "listbox" }), N = QR(y, {
|
|
20997
20997
|
listRef: w,
|
|
20998
20998
|
activeIndex: l,
|
|
20999
20999
|
selectedIndex: f,
|
|
@@ -21015,10 +21015,10 @@ const XR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
|
21015
21015
|
A,
|
|
21016
21016
|
k
|
|
21017
21017
|
]), L = (b) => {
|
|
21018
|
-
c(b),
|
|
21018
|
+
c(b), p[b] !== void 0 && (n == null || n({
|
|
21019
21019
|
type: "text",
|
|
21020
|
-
text:
|
|
21021
|
-
value: d[
|
|
21020
|
+
text: p[b] ?? "",
|
|
21021
|
+
value: d[p[b]] ?? ""
|
|
21022
21022
|
})), a(!1);
|
|
21023
21023
|
};
|
|
21024
21024
|
return /* @__PURE__ */ ae(Mt, { children: [
|
|
@@ -21034,7 +21034,7 @@ const XR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
|
21034
21034
|
...(_ = h.button) == null ? void 0 : _.container,
|
|
21035
21035
|
...O(),
|
|
21036
21036
|
children: [
|
|
21037
|
-
/* @__PURE__ */ T("span", { ...(D = h.button) == null ? void 0 : D.text, children: f ?
|
|
21037
|
+
/* @__PURE__ */ T("span", { ...(D = h.button) == null ? void 0 : D.text, children: f ? p[f] : "Select..." }),
|
|
21038
21038
|
/* @__PURE__ */ T(zA, { ...(U = h.button) == null ? void 0 : U.icon })
|
|
21039
21039
|
]
|
|
21040
21040
|
}
|
|
@@ -21046,7 +21046,7 @@ const XR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
|
21046
21046
|
className: (j = (B = h.content) == null ? void 0 : B.container) == null ? void 0 : j.className,
|
|
21047
21047
|
style: { ...v, pointerEvents: "auto" },
|
|
21048
21048
|
...z(),
|
|
21049
|
-
children:
|
|
21049
|
+
children: p.map((b, M) => {
|
|
21050
21050
|
var $;
|
|
21051
21051
|
return /* @__PURE__ */ T(
|
|
21052
21052
|
"div",
|
|
@@ -21364,12 +21364,12 @@ var gD = function(t) {
|
|
|
21364
21364
|
}, yD = function(t) {
|
|
21365
21365
|
Mg(document.fonts, "loadingdone", t);
|
|
21366
21366
|
}, vD = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], bD = function(t, n) {
|
|
21367
|
-
var r = t.cacheMeasurements, i = t.maxRows, o = t.minRows, s = t.onChange, a = s === void 0 ? fd : s, l = t.onHeightChange, u = l === void 0 ? fd : l, f = oD(t, vD), c = f.value !== void 0, h = C.useRef(null), d = lD(h, n),
|
|
21368
|
-
var w = h.current, E = r &&
|
|
21367
|
+
var r = t.cacheMeasurements, i = t.maxRows, o = t.minRows, s = t.onChange, a = s === void 0 ? fd : s, l = t.onHeightChange, u = l === void 0 ? fd : l, f = oD(t, vD), c = f.value !== void 0, h = C.useRef(null), d = lD(h, n), p = C.useRef(0), m = C.useRef(), g = function() {
|
|
21368
|
+
var w = h.current, E = r && m.current ? m.current : mD(w);
|
|
21369
21369
|
if (E) {
|
|
21370
|
-
|
|
21370
|
+
m.current = E;
|
|
21371
21371
|
var S = cD(E, w.value || w.placeholder || "x", o, i), k = S[0], I = S[1];
|
|
21372
|
-
|
|
21372
|
+
p.current !== k && (p.current = k, w.style.setProperty("height", k + "px", "important"), u(k, {
|
|
21373
21373
|
rowHeight: I
|
|
21374
21374
|
}));
|
|
21375
21375
|
}
|
|
@@ -21395,7 +21395,7 @@ const xD = ({
|
|
|
21395
21395
|
conversationId: f,
|
|
21396
21396
|
storageKey: c
|
|
21397
21397
|
}) => {
|
|
21398
|
-
const d = Lm(f || "default", c)((E) => E.messageHistory), [
|
|
21398
|
+
const d = Lm(f || "default", c)((E) => E.messageHistory), [p, m] = Te(""), [g, v] = Te(!1), { input: y } = ge.composer;
|
|
21399
21399
|
return /* @__PURE__ */ T(
|
|
21400
21400
|
wD,
|
|
21401
21401
|
{
|
|
@@ -21425,14 +21425,14 @@ const xD = ({
|
|
|
21425
21425
|
if (!(S.isComposing || S.keyCode === 229) && (r.length === 0 && v(!1), E.key !== "ArrowUp" && E.key !== "ArrowDown" && E.key !== "ArrowLeft" && E.key !== "ArrowRight" && v(!0), E.key === "Enter" && E.shiftKey ? (E.preventDefault(), o(`${r}
|
|
21426
21426
|
`)) : E.key === "Enter" && (E.preventDefault(), a()), !(r.length > 0 && g))) {
|
|
21427
21427
|
if (E.key === "ArrowUp") {
|
|
21428
|
-
E.preventDefault(), i === -1 && r.trim() !== "" &&
|
|
21428
|
+
E.preventDefault(), i === -1 && r.trim() !== "" && m(r);
|
|
21429
21429
|
const k = Math.min(i + 1, d.length - 1);
|
|
21430
21430
|
s(k), o(d[k] ?? "");
|
|
21431
21431
|
}
|
|
21432
21432
|
if (E.key === "ArrowDown") {
|
|
21433
21433
|
E.preventDefault();
|
|
21434
21434
|
const k = Math.max(i - 1, -1);
|
|
21435
|
-
o(i === -1 ? r.trim() : k === -1 ?
|
|
21435
|
+
o(i === -1 ? r.trim() : k === -1 ? p : d[k] ?? ""), s(k);
|
|
21436
21436
|
}
|
|
21437
21437
|
}
|
|
21438
21438
|
}
|
|
@@ -21478,8 +21478,8 @@ const xD = ({
|
|
|
21478
21478
|
storageKey: c,
|
|
21479
21479
|
conversationId: h,
|
|
21480
21480
|
children: d,
|
|
21481
|
-
...
|
|
21482
|
-
},
|
|
21481
|
+
...p
|
|
21482
|
+
}, m) => {
|
|
21483
21483
|
const { composer: g } = ge, v = n || r || !s, [y, w] = Te(""), [E, S] = Te(-1), k = _m(h || "default"), I = Lm(h || "default", c), R = k((D) => D.files), N = k((D) => D.setFiles), A = k((D) => D.deleteFile), O = k((D) => D.uploadFile), z = I((D) => D.addMessageToHistory), P = R.filter((D) => D.status === "uploaded"), L = !!y.trim() || P.length > 0, _ = () => {
|
|
21484
21484
|
if (o || !L) return;
|
|
21485
21485
|
const D = P.map((B) => {
|
|
@@ -21510,8 +21510,8 @@ const xD = ({
|
|
|
21510
21510
|
"data-disabled": v,
|
|
21511
21511
|
"data-waiting": o,
|
|
21512
21512
|
className: Er(g.container.className, e),
|
|
21513
|
-
ref:
|
|
21514
|
-
...
|
|
21513
|
+
ref: m,
|
|
21514
|
+
...p,
|
|
21515
21515
|
children: [
|
|
21516
21516
|
d,
|
|
21517
21517
|
R.length > 0 && /* @__PURE__ */ T("div", { ...g == null ? void 0 : g.fileContainer, children: R.map((D) => /* @__PURE__ */ T(iD, { ...D, removeFile: A }, D.name)) }),
|
|
@@ -21600,7 +21600,7 @@ var dd;
|
|
|
21600
21600
|
function ED() {
|
|
21601
21601
|
if (dd) return Re;
|
|
21602
21602
|
dd = 1;
|
|
21603
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115,
|
|
21603
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
21604
21604
|
function w(S) {
|
|
21605
21605
|
if (typeof S == "object" && S !== null) {
|
|
21606
21606
|
var k = S.$$typeof;
|
|
@@ -21618,7 +21618,7 @@ function ED() {
|
|
|
21618
21618
|
switch (S = S && S.$$typeof, S) {
|
|
21619
21619
|
case a:
|
|
21620
21620
|
case f:
|
|
21621
|
-
case
|
|
21621
|
+
case p:
|
|
21622
21622
|
case d:
|
|
21623
21623
|
case s:
|
|
21624
21624
|
return S;
|
|
@@ -21634,7 +21634,7 @@ function ED() {
|
|
|
21634
21634
|
function E(S) {
|
|
21635
21635
|
return w(S) === u;
|
|
21636
21636
|
}
|
|
21637
|
-
return Re.AsyncMode = l, Re.ConcurrentMode = u, Re.ContextConsumer = a, Re.ContextProvider = s, Re.Element = t, Re.ForwardRef = f, Re.Fragment = r, Re.Lazy =
|
|
21637
|
+
return Re.AsyncMode = l, Re.ConcurrentMode = u, Re.ContextConsumer = a, Re.ContextProvider = s, Re.Element = t, Re.ForwardRef = f, Re.Fragment = r, Re.Lazy = p, Re.Memo = d, Re.Portal = n, Re.Profiler = o, Re.StrictMode = i, Re.Suspense = c, Re.isAsyncMode = function(S) {
|
|
21638
21638
|
return E(S) || w(S) === l;
|
|
21639
21639
|
}, Re.isConcurrentMode = E, Re.isContextConsumer = function(S) {
|
|
21640
21640
|
return w(S) === a;
|
|
@@ -21647,7 +21647,7 @@ function ED() {
|
|
|
21647
21647
|
}, Re.isFragment = function(S) {
|
|
21648
21648
|
return w(S) === r;
|
|
21649
21649
|
}, Re.isLazy = function(S) {
|
|
21650
|
-
return w(S) ===
|
|
21650
|
+
return w(S) === p;
|
|
21651
21651
|
}, Re.isMemo = function(S) {
|
|
21652
21652
|
return w(S) === d;
|
|
21653
21653
|
}, Re.isPortal = function(S) {
|
|
@@ -21659,7 +21659,7 @@ function ED() {
|
|
|
21659
21659
|
}, Re.isSuspense = function(S) {
|
|
21660
21660
|
return w(S) === c;
|
|
21661
21661
|
}, Re.isValidElementType = function(S) {
|
|
21662
|
-
return typeof S == "string" || typeof S == "function" || S === r || S === u || S === o || S === i || S === c || S === h || typeof S == "object" && S !== null && (S.$$typeof ===
|
|
21662
|
+
return typeof S == "string" || typeof S == "function" || S === r || S === u || S === o || S === i || S === c || S === h || typeof S == "object" && S !== null && (S.$$typeof === p || S.$$typeof === d || S.$$typeof === s || S.$$typeof === a || S.$$typeof === f || S.$$typeof === g || S.$$typeof === v || S.$$typeof === y || S.$$typeof === m);
|
|
21663
21663
|
}, Re.typeOf = w, Re;
|
|
21664
21664
|
}
|
|
21665
21665
|
var De = {};
|
|
@@ -21674,10 +21674,10 @@ var De = {};
|
|
|
21674
21674
|
var hd;
|
|
21675
21675
|
function CD() {
|
|
21676
21676
|
return hd || (hd = 1, process.env.NODE_ENV !== "production" && function() {
|
|
21677
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115,
|
|
21677
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
21678
21678
|
function w(F) {
|
|
21679
21679
|
return typeof F == "string" || typeof F == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
21680
|
-
F === r || F === u || F === o || F === i || F === c || F === h || typeof F == "object" && F !== null && (F.$$typeof ===
|
|
21680
|
+
F === r || F === u || F === o || F === i || F === c || F === h || typeof F == "object" && F !== null && (F.$$typeof === p || F.$$typeof === d || F.$$typeof === s || F.$$typeof === a || F.$$typeof === f || F.$$typeof === g || F.$$typeof === v || F.$$typeof === y || F.$$typeof === m);
|
|
21681
21681
|
}
|
|
21682
21682
|
function E(F) {
|
|
21683
21683
|
if (typeof F == "object" && F !== null) {
|
|
@@ -21698,7 +21698,7 @@ function CD() {
|
|
|
21698
21698
|
switch (Ie) {
|
|
21699
21699
|
case a:
|
|
21700
21700
|
case f:
|
|
21701
|
-
case
|
|
21701
|
+
case p:
|
|
21702
21702
|
case d:
|
|
21703
21703
|
case s:
|
|
21704
21704
|
return Ie;
|
|
@@ -21711,7 +21711,7 @@ function CD() {
|
|
|
21711
21711
|
}
|
|
21712
21712
|
}
|
|
21713
21713
|
}
|
|
21714
|
-
var S = l, k = u, I = a, R = s, N = t, A = f, O = r, z =
|
|
21714
|
+
var S = l, k = u, I = a, R = s, N = t, A = f, O = r, z = p, P = d, L = n, _ = o, D = i, U = c, B = !1;
|
|
21715
21715
|
function j(F) {
|
|
21716
21716
|
return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), b(F) || E(F) === l;
|
|
21717
21717
|
}
|
|
@@ -21734,7 +21734,7 @@ function CD() {
|
|
|
21734
21734
|
return E(F) === r;
|
|
21735
21735
|
}
|
|
21736
21736
|
function q(F) {
|
|
21737
|
-
return E(F) ===
|
|
21737
|
+
return E(F) === p;
|
|
21738
21738
|
}
|
|
21739
21739
|
function K(F) {
|
|
21740
21740
|
return E(F) === d;
|
|
@@ -21850,8 +21850,8 @@ function TD() {
|
|
|
21850
21850
|
throw h.name = "Invariant Violation", h;
|
|
21851
21851
|
}
|
|
21852
21852
|
c = o[f](s, f, l, a, null, t);
|
|
21853
|
-
} catch (
|
|
21854
|
-
c =
|
|
21853
|
+
} catch (p) {
|
|
21854
|
+
c = p;
|
|
21855
21855
|
}
|
|
21856
21856
|
if (c && !(c instanceof Error) && e(
|
|
21857
21857
|
(l || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -21914,13 +21914,13 @@ function ID() {
|
|
|
21914
21914
|
shape: z,
|
|
21915
21915
|
exact: P
|
|
21916
21916
|
};
|
|
21917
|
-
function
|
|
21917
|
+
function p(b, M) {
|
|
21918
21918
|
return b === M ? b !== 0 || 1 / b === 1 / M : b !== b && M !== M;
|
|
21919
21919
|
}
|
|
21920
|
-
function
|
|
21920
|
+
function m(b, M) {
|
|
21921
21921
|
this.message = b, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
|
|
21922
21922
|
}
|
|
21923
|
-
|
|
21923
|
+
m.prototype = Error.prototype;
|
|
21924
21924
|
function g(b) {
|
|
21925
21925
|
if (process.env.NODE_ENV !== "production")
|
|
21926
21926
|
var M = {}, $ = 0;
|
|
@@ -21939,7 +21939,7 @@ function ID() {
|
|
|
21939
21939
|
), M[te] = !0, $++);
|
|
21940
21940
|
}
|
|
21941
21941
|
}
|
|
21942
|
-
return q[K] == null ? Z ? q[K] === null ? new
|
|
21942
|
+
return q[K] == null ? Z ? q[K] === null ? new m("The " + ie + " `" + Y + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new m("The " + ie + " `" + Y + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : b(q, K, J, ie, Y);
|
|
21943
21943
|
}
|
|
21944
21944
|
var V = x.bind(null, !1);
|
|
21945
21945
|
return V.isRequired = x.bind(null, !0), V;
|
|
@@ -21949,7 +21949,7 @@ function ID() {
|
|
|
21949
21949
|
var J = $[x], ie = D(J);
|
|
21950
21950
|
if (ie !== b) {
|
|
21951
21951
|
var Y = U(J);
|
|
21952
|
-
return new
|
|
21952
|
+
return new m(
|
|
21953
21953
|
"Invalid " + Z + " `" + q + "` of type " + ("`" + Y + "` supplied to `" + V + "`, expected ") + ("`" + b + "`."),
|
|
21954
21954
|
{ expectedType: b }
|
|
21955
21955
|
);
|
|
@@ -21964,11 +21964,11 @@ function ID() {
|
|
|
21964
21964
|
function w(b) {
|
|
21965
21965
|
function M($, x, V, Z, q) {
|
|
21966
21966
|
if (typeof b != "function")
|
|
21967
|
-
return new
|
|
21967
|
+
return new m("Property `" + q + "` of component `" + V + "` has invalid PropType notation inside arrayOf.");
|
|
21968
21968
|
var K = $[x];
|
|
21969
21969
|
if (!Array.isArray(K)) {
|
|
21970
21970
|
var J = D(K);
|
|
21971
|
-
return new
|
|
21971
|
+
return new m("Invalid " + Z + " `" + q + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected an array."));
|
|
21972
21972
|
}
|
|
21973
21973
|
for (var ie = 0; ie < K.length; ie++) {
|
|
21974
21974
|
var Y = b(K, ie, V, Z, q + "[" + ie + "]", n);
|
|
@@ -21984,7 +21984,7 @@ function ID() {
|
|
|
21984
21984
|
var q = M[$];
|
|
21985
21985
|
if (!a(q)) {
|
|
21986
21986
|
var K = D(q);
|
|
21987
|
-
return new
|
|
21987
|
+
return new m("Invalid " + V + " `" + Z + "` of type " + ("`" + K + "` supplied to `" + x + "`, expected a single ReactElement."));
|
|
21988
21988
|
}
|
|
21989
21989
|
return null;
|
|
21990
21990
|
}
|
|
@@ -21995,7 +21995,7 @@ function ID() {
|
|
|
21995
21995
|
var q = M[$];
|
|
21996
21996
|
if (!e.isValidElementType(q)) {
|
|
21997
21997
|
var K = D(q);
|
|
21998
|
-
return new
|
|
21998
|
+
return new m("Invalid " + V + " `" + Z + "` of type " + ("`" + K + "` supplied to `" + x + "`, expected a single ReactElement type."));
|
|
21999
21999
|
}
|
|
22000
22000
|
return null;
|
|
22001
22001
|
}
|
|
@@ -22005,7 +22005,7 @@ function ID() {
|
|
|
22005
22005
|
function M($, x, V, Z, q) {
|
|
22006
22006
|
if (!($[x] instanceof b)) {
|
|
22007
22007
|
var K = b.name || h, J = j($[x]);
|
|
22008
|
-
return new
|
|
22008
|
+
return new m("Invalid " + Z + " `" + q + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected ") + ("instance of `" + K + "`."));
|
|
22009
22009
|
}
|
|
22010
22010
|
return null;
|
|
22011
22011
|
}
|
|
@@ -22018,23 +22018,23 @@ function ID() {
|
|
|
22018
22018
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
22019
22019
|
function M($, x, V, Z, q) {
|
|
22020
22020
|
for (var K = $[x], J = 0; J < b.length; J++)
|
|
22021
|
-
if (
|
|
22021
|
+
if (p(K, b[J]))
|
|
22022
22022
|
return null;
|
|
22023
22023
|
var ie = JSON.stringify(b, function(ee, F) {
|
|
22024
22024
|
var te = U(F);
|
|
22025
22025
|
return te === "symbol" ? String(F) : F;
|
|
22026
22026
|
});
|
|
22027
|
-
return new
|
|
22027
|
+
return new m("Invalid " + Z + " `" + q + "` of value `" + String(K) + "` " + ("supplied to `" + V + "`, expected one of " + ie + "."));
|
|
22028
22028
|
}
|
|
22029
22029
|
return g(M);
|
|
22030
22030
|
}
|
|
22031
22031
|
function R(b) {
|
|
22032
22032
|
function M($, x, V, Z, q) {
|
|
22033
22033
|
if (typeof b != "function")
|
|
22034
|
-
return new
|
|
22034
|
+
return new m("Property `" + q + "` of component `" + V + "` has invalid PropType notation inside objectOf.");
|
|
22035
22035
|
var K = $[x], J = D(K);
|
|
22036
22036
|
if (J !== "object")
|
|
22037
|
-
return new
|
|
22037
|
+
return new m("Invalid " + Z + " `" + q + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected an object."));
|
|
22038
22038
|
for (var ie in K)
|
|
22039
22039
|
if (r(K, ie)) {
|
|
22040
22040
|
var Y = b(K, ie, V, Z, q + "." + ie, n);
|
|
@@ -22063,18 +22063,18 @@ function ID() {
|
|
|
22063
22063
|
F.data && r(F.data, "expectedType") && ie.push(F.data.expectedType);
|
|
22064
22064
|
}
|
|
22065
22065
|
var te = ie.length > 0 ? ", expected one of type [" + ie.join(", ") + "]" : "";
|
|
22066
|
-
return new
|
|
22066
|
+
return new m("Invalid " + K + " `" + J + "` supplied to " + ("`" + q + "`" + te + "."));
|
|
22067
22067
|
}
|
|
22068
22068
|
return g(x);
|
|
22069
22069
|
}
|
|
22070
22070
|
function A() {
|
|
22071
22071
|
function b(M, $, x, V, Z) {
|
|
22072
|
-
return L(M[$]) ? null : new
|
|
22072
|
+
return L(M[$]) ? null : new m("Invalid " + V + " `" + Z + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
|
|
22073
22073
|
}
|
|
22074
22074
|
return g(b);
|
|
22075
22075
|
}
|
|
22076
22076
|
function O(b, M, $, x, V) {
|
|
22077
|
-
return new
|
|
22077
|
+
return new m(
|
|
22078
22078
|
(b || "React class") + ": " + M + " type `" + $ + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + V + "`."
|
|
22079
22079
|
);
|
|
22080
22080
|
}
|
|
@@ -22082,7 +22082,7 @@ function ID() {
|
|
|
22082
22082
|
function M($, x, V, Z, q) {
|
|
22083
22083
|
var K = $[x], J = D(K);
|
|
22084
22084
|
if (J !== "object")
|
|
22085
|
-
return new
|
|
22085
|
+
return new m("Invalid " + Z + " `" + q + "` of type `" + J + "` " + ("supplied to `" + V + "`, expected `object`."));
|
|
22086
22086
|
for (var ie in b) {
|
|
22087
22087
|
var Y = b[ie];
|
|
22088
22088
|
if (typeof Y != "function")
|
|
@@ -22099,14 +22099,14 @@ function ID() {
|
|
|
22099
22099
|
function M($, x, V, Z, q) {
|
|
22100
22100
|
var K = $[x], J = D(K);
|
|
22101
22101
|
if (J !== "object")
|
|
22102
|
-
return new
|
|
22102
|
+
return new m("Invalid " + Z + " `" + q + "` of type `" + J + "` " + ("supplied to `" + V + "`, expected `object`."));
|
|
22103
22103
|
var ie = t({}, $[x], b);
|
|
22104
22104
|
for (var Y in ie) {
|
|
22105
22105
|
var ee = b[Y];
|
|
22106
22106
|
if (r(b, Y) && typeof ee != "function")
|
|
22107
22107
|
return O(V, Z, q, Y, U(ee));
|
|
22108
22108
|
if (!ee)
|
|
22109
|
-
return new
|
|
22109
|
+
return new m(
|
|
22110
22110
|
"Invalid " + Z + " `" + q + "` key `" + Y + "` supplied to `" + V + "`.\nBad object: " + JSON.stringify($[x], null, " ") + `
|
|
22111
22111
|
Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
22112
22112
|
);
|
|
@@ -22647,8 +22647,8 @@ function On(e) {
|
|
|
22647
22647
|
function iM(e) {
|
|
22648
22648
|
var t = e.files, n = e.accept, r = e.minSize, i = e.maxSize, o = e.multiple, s = e.maxFiles, a = e.validator;
|
|
22649
22649
|
return !o && t.length > 1 || o && s >= 1 && t.length > s ? !1 : t.every(function(l) {
|
|
22650
|
-
var u = Bg(l, n), f = ai(u, 1), c = f[0], h = zg(l, r, i), d = ai(h, 1),
|
|
22651
|
-
return c &&
|
|
22650
|
+
var u = Bg(l, n), f = ai(u, 1), c = f[0], h = zg(l, r, i), d = ai(h, 1), p = d[0], m = a ? a(l) : null;
|
|
22651
|
+
return c && p && !m;
|
|
22652
22652
|
});
|
|
22653
22653
|
}
|
|
22654
22654
|
function Ro(e) {
|
|
@@ -23028,15 +23028,15 @@ var ul = {
|
|
|
23028
23028
|
fileRejections: []
|
|
23029
23029
|
};
|
|
23030
23030
|
function Wg() {
|
|
23031
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = ze(ze({}, Vg), e), n = t.accept, r = t.disabled, i = t.getFilesFromEvent, o = t.maxSize, s = t.minSize, a = t.multiple, l = t.maxFiles, u = t.onDragEnter, f = t.onDragLeave, c = t.onDragOver, h = t.onDrop, d = t.onDropAccepted,
|
|
23031
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = ze(ze({}, Vg), e), n = t.accept, r = t.disabled, i = t.getFilesFromEvent, o = t.maxSize, s = t.minSize, a = t.multiple, l = t.maxFiles, u = t.onDragEnter, f = t.onDragLeave, c = t.onDragOver, h = t.onDrop, d = t.onDropAccepted, p = t.onDropRejected, m = t.onFileDialogCancel, g = t.onFileDialogOpen, v = t.useFsAccessApi, y = t.autoFocus, w = t.preventDropOnDocument, E = t.noClick, S = t.noKeyboard, k = t.noDrag, I = t.noDragEventsBubbling, R = t.onError, N = t.validator, A = ct(function() {
|
|
23032
23032
|
return cM(n);
|
|
23033
23033
|
}, [n]), O = ct(function() {
|
|
23034
23034
|
return uM(n);
|
|
23035
23035
|
}, [n]), z = ct(function() {
|
|
23036
23036
|
return typeof g == "function" ? g : Rd;
|
|
23037
23037
|
}, [g]), P = ct(function() {
|
|
23038
|
-
return typeof
|
|
23039
|
-
}, [
|
|
23038
|
+
return typeof m == "function" ? m : Rd;
|
|
23039
|
+
}, [m]), L = Se(null), _ = Se(null), D = xv(CM, ul), U = la(D, 2), B = U[0], j = U[1], b = B.isFocused, M = B.isFileDialogActive, $ = Se(typeof window < "u" && window.isSecureContext && v && lM()), x = function() {
|
|
23040
23040
|
!$.current && M && setTimeout(function() {
|
|
23041
23041
|
if (_.current) {
|
|
23042
23042
|
var oe = _.current.files;
|
|
@@ -23130,8 +23130,8 @@ function Wg() {
|
|
|
23130
23130
|
acceptedFiles: H,
|
|
23131
23131
|
fileRejections: W,
|
|
23132
23132
|
type: "setFiles"
|
|
23133
|
-
}), h && h(H, W, oe), W.length > 0 &&
|
|
23134
|
-
}, [j, a, A, s, o, l, h, d,
|
|
23133
|
+
}), h && h(H, W, oe), W.length > 0 && p && p(W, oe), H.length > 0 && d && d(H, oe);
|
|
23134
|
+
}, [j, a, A, s, o, l, h, d, p, N]), ee = Me(function(X) {
|
|
23135
23135
|
X.preventDefault(), X.persist(), Ce(X), V.current = [], qi(X) && Promise.resolve(i(X)).then(function(oe) {
|
|
23136
23136
|
Ro(X) && !I || Y(oe, X);
|
|
23137
23137
|
}).catch(function(oe) {
|
|
@@ -23275,7 +23275,7 @@ const AM = ({ children: e }) => {
|
|
|
23275
23275
|
onCancel: c,
|
|
23276
23276
|
initialValue: h,
|
|
23277
23277
|
Content: d
|
|
23278
|
-
}) => new Promise((
|
|
23278
|
+
}) => new Promise((p, m) => {
|
|
23279
23279
|
t.current = h, r({
|
|
23280
23280
|
open: !0,
|
|
23281
23281
|
title: s,
|
|
@@ -23292,10 +23292,10 @@ const AM = ({ children: e }) => {
|
|
|
23292
23292
|
}
|
|
23293
23293
|
) : null,
|
|
23294
23294
|
onConfirm: () => {
|
|
23295
|
-
f == null || f(),
|
|
23295
|
+
f == null || f(), p(t.current), o();
|
|
23296
23296
|
},
|
|
23297
23297
|
onCancel: () => {
|
|
23298
|
-
c == null || c(),
|
|
23298
|
+
c == null || c(), m(), o();
|
|
23299
23299
|
}
|
|
23300
23300
|
});
|
|
23301
23301
|
}), o = () => {
|
|
@@ -23779,15 +23779,15 @@ var zM = Object.defineProperty, HM = (e, t, n) => t in e ? zM(e, t, { enumerable
|
|
|
23779
23779
|
let v = await h[g]();
|
|
23780
23780
|
return g === "json" && (a.responseValidator && await a.responseValidator(v), a.responseTransformer && (v = await a.responseTransformer(v))), { data: v, ...d };
|
|
23781
23781
|
}
|
|
23782
|
-
let
|
|
23782
|
+
let p = await h.text();
|
|
23783
23783
|
try {
|
|
23784
|
-
|
|
23784
|
+
p = JSON.parse(p);
|
|
23785
23785
|
} catch {
|
|
23786
23786
|
}
|
|
23787
|
-
let
|
|
23788
|
-
for (let g of i.error._fns)
|
|
23789
|
-
if (
|
|
23790
|
-
return { error:
|
|
23787
|
+
let m = p;
|
|
23788
|
+
for (let g of i.error._fns) m = await g(p, h, f, a);
|
|
23789
|
+
if (m = m || {}, a.throwOnError) throw m;
|
|
23790
|
+
return { error: m, ...d };
|
|
23791
23791
|
};
|
|
23792
23792
|
return { buildUrl: Md, connect: (s) => o({ ...s, method: "CONNECT" }), delete: (s) => o({ ...s, method: "DELETE" }), get: (s) => o({ ...s, method: "GET" }), getConfig: n, head: (s) => o({ ...s, method: "HEAD" }), interceptors: i, options: (s) => o({ ...s, method: "OPTIONS" }), patch: (s) => o({ ...s, method: "PATCH" }), post: (s) => o({ ...s, method: "POST" }), put: (s) => o({ ...s, method: "PUT" }), request: o, setConfig: r, trace: (s) => o({ ...s, method: "TRACE" }) };
|
|
23793
23793
|
}, rN = nN, iN = iy;
|
|
@@ -23919,31 +23919,31 @@ function IN(e) {
|
|
|
23919
23919
|
);
|
|
23920
23920
|
const { onEvent: t = ca, onError: n = ca, onRetry: r = ca, onComment: i } = e;
|
|
23921
23921
|
let o = "", s = !0, a, l = "", u = "";
|
|
23922
|
-
function f(
|
|
23923
|
-
const g = s ?
|
|
23922
|
+
function f(m) {
|
|
23923
|
+
const g = s ? m.replace(/^\xEF\xBB\xBF/, "") : m, [v, y] = ON(`${o}${g}`);
|
|
23924
23924
|
for (const w of v)
|
|
23925
23925
|
c(w);
|
|
23926
23926
|
o = y, s = !1;
|
|
23927
23927
|
}
|
|
23928
|
-
function c(
|
|
23929
|
-
if (
|
|
23928
|
+
function c(m) {
|
|
23929
|
+
if (m === "") {
|
|
23930
23930
|
d();
|
|
23931
23931
|
return;
|
|
23932
23932
|
}
|
|
23933
|
-
if (
|
|
23934
|
-
i && i(
|
|
23933
|
+
if (m.startsWith(":")) {
|
|
23934
|
+
i && i(m.slice(m.startsWith(": ") ? 2 : 1));
|
|
23935
23935
|
return;
|
|
23936
23936
|
}
|
|
23937
|
-
const g =
|
|
23937
|
+
const g = m.indexOf(":");
|
|
23938
23938
|
if (g !== -1) {
|
|
23939
|
-
const v =
|
|
23940
|
-
h(v, w,
|
|
23939
|
+
const v = m.slice(0, g), y = m[g + 1] === " " ? 2 : 1, w = m.slice(g + y);
|
|
23940
|
+
h(v, w, m);
|
|
23941
23941
|
return;
|
|
23942
23942
|
}
|
|
23943
|
-
h(
|
|
23943
|
+
h(m, "", m);
|
|
23944
23944
|
}
|
|
23945
|
-
function h(
|
|
23946
|
-
switch (
|
|
23945
|
+
function h(m, g, v) {
|
|
23946
|
+
switch (m) {
|
|
23947
23947
|
case "event":
|
|
23948
23948
|
u = g;
|
|
23949
23949
|
break;
|
|
@@ -23966,8 +23966,8 @@ function IN(e) {
|
|
|
23966
23966
|
default:
|
|
23967
23967
|
n(
|
|
23968
23968
|
new Pd(
|
|
23969
|
-
`Unknown field "${
|
|
23970
|
-
{ type: "unknown-field", field:
|
|
23969
|
+
`Unknown field "${m.length > 20 ? `${m.slice(0, 20)}…` : m}"`,
|
|
23970
|
+
{ type: "unknown-field", field: m, value: g, line: v }
|
|
23971
23971
|
)
|
|
23972
23972
|
);
|
|
23973
23973
|
break;
|
|
@@ -23983,10 +23983,10 @@ function IN(e) {
|
|
|
23983
23983
|
`) ? l.slice(0, -1) : l
|
|
23984
23984
|
}), a = void 0, l = "", u = "";
|
|
23985
23985
|
}
|
|
23986
|
-
function m
|
|
23987
|
-
o &&
|
|
23986
|
+
function p(m = {}) {
|
|
23987
|
+
o && m.consume && c(o), s = !0, a = void 0, l = "", u = "", o = "";
|
|
23988
23988
|
}
|
|
23989
|
-
return { feed: f, reset:
|
|
23989
|
+
return { feed: f, reset: p };
|
|
23990
23990
|
}
|
|
23991
23991
|
function ON(e) {
|
|
23992
23992
|
const t = [];
|
|
@@ -24096,11 +24096,11 @@ class uo extends EventTarget {
|
|
|
24096
24096
|
return;
|
|
24097
24097
|
}
|
|
24098
24098
|
const h = new TextDecoder(), d = a.getReader();
|
|
24099
|
-
let
|
|
24099
|
+
let p = !0;
|
|
24100
24100
|
do {
|
|
24101
|
-
const { done:
|
|
24102
|
-
g && ye(this, Kn).feed(h.decode(g, { stream: !
|
|
24103
|
-
} while (
|
|
24101
|
+
const { done: m, value: g } = await d.read();
|
|
24102
|
+
g && ye(this, Kn).feed(h.decode(g, { stream: !m })), m && (p = !1, ye(this, Kn).reset(), Xt(this, _t, gl).call(this));
|
|
24103
|
+
} while (p);
|
|
24104
24104
|
}), Ze(this, hl, (o) => {
|
|
24105
24105
|
Be(this, pn, void 0), !(o.name === "AbortError" || o.type === "aborted") && Xt(this, _t, gl).call(this, cl(o));
|
|
24106
24106
|
}), Ze(this, pl, (o) => {
|
|
@@ -24305,21 +24305,21 @@ const sy = () => {
|
|
|
24305
24305
|
}) => {
|
|
24306
24306
|
let o = 0, s = null;
|
|
24307
24307
|
const a = sy();
|
|
24308
|
-
let l = e;
|
|
24309
|
-
const
|
|
24308
|
+
let l = e, u = t;
|
|
24309
|
+
const f = () => {
|
|
24310
24310
|
s && s.close();
|
|
24311
|
-
const
|
|
24311
|
+
const c = `${`${r || Fe.getConfig().baseUrl}/${n}`}/initialize${l ? `?conversationId=${l}` : ""}`, h = {
|
|
24312
24312
|
...i ? { "x-admin-secret": i } : {},
|
|
24313
|
-
...
|
|
24313
|
+
...u ? { "x-user-key": u } : {}
|
|
24314
24314
|
};
|
|
24315
|
-
s = cy(
|
|
24316
|
-
o < ay ? (o++, setTimeout(() =>
|
|
24317
|
-
}), s.addEventListener("message", (
|
|
24318
|
-
const
|
|
24319
|
-
|
|
24315
|
+
s = cy(c, h), s.addEventListener("open", () => a.emit("open")), s.addEventListener("error", (d) => {
|
|
24316
|
+
o < ay ? (o++, setTimeout(() => f(), ly)) : a.emit("error", d);
|
|
24317
|
+
}), s.addEventListener("message", (d) => {
|
|
24318
|
+
const p = uy(d.data);
|
|
24319
|
+
p.type === "init" && (l = p.data.conversation.id ?? l, u = p.data.user.userKey ?? u), a.emit(p.type, p.data);
|
|
24320
24320
|
});
|
|
24321
24321
|
};
|
|
24322
|
-
return
|
|
24322
|
+
return f(), a.on;
|
|
24323
24323
|
}, _N = ({
|
|
24324
24324
|
userKey: e,
|
|
24325
24325
|
clientId: t,
|
|
@@ -24366,11 +24366,11 @@ const sy = () => {
|
|
|
24366
24366
|
let u = 0, f = null;
|
|
24367
24367
|
const c = sy(), h = () => {
|
|
24368
24368
|
f && f.close();
|
|
24369
|
-
const d = `${s}/conversations/${l}/listen`,
|
|
24370
|
-
f =
|
|
24371
|
-
u < ay ? (u++, setTimeout(() => h(), ly)) : c.emit("error",
|
|
24372
|
-
}), f.addEventListener("message", (
|
|
24373
|
-
const g = uy(
|
|
24369
|
+
const d = `${s}/conversations/${l}/listen`, p = i == null ? void 0 : i.eventSource;
|
|
24370
|
+
f = p ? p({ url: d, headers: o }) : cy(d, o), f.addEventListener("open", () => c.emit("open")), f.addEventListener("error", (m) => {
|
|
24371
|
+
u < ay ? (u++, setTimeout(() => h(), ly)) : c.emit("error", m);
|
|
24372
|
+
}), f.addEventListener("message", (m) => {
|
|
24373
|
+
const g = uy(m.data);
|
|
24374
24374
|
c.emit(g.type, g.data);
|
|
24375
24375
|
});
|
|
24376
24376
|
};
|
|
@@ -24408,8 +24408,8 @@ const sy = () => {
|
|
|
24408
24408
|
conversationId: o,
|
|
24409
24409
|
adminSecret: n
|
|
24410
24410
|
}), u = l("init", ({ conversation: f, messages: c, participants: h, user: d }) => {
|
|
24411
|
-
const
|
|
24412
|
-
|
|
24411
|
+
const p = lu(f.id), m = c.reverse().map(li).filter(Boolean);
|
|
24412
|
+
p.getState().setMessages(m), uu(f.id).getState().setParticipants(h);
|
|
24413
24413
|
const v = _N({
|
|
24414
24414
|
clientId: t,
|
|
24415
24415
|
apiUrl: e,
|
|
@@ -24515,7 +24515,7 @@ function py({
|
|
|
24515
24515
|
playNotificationSound: s,
|
|
24516
24516
|
...a
|
|
24517
24517
|
}) {
|
|
24518
|
-
const l = cI(n, r), u = l((O) => O.conversationId), f = l((O) => O.user), c = l((O) => O.setConversationId), h = l((O) => O.setUser), { state: d, setState:
|
|
24518
|
+
const l = cI(n, r), u = l((O) => O.conversationId), f = l((O) => O.user), c = l((O) => O.setConversationId), h = l((O) => O.setUser), { state: d, setState: p } = $d(), { state: m, setState: g } = $d(), v = ct(() => mh(), []), [y, w] = Te("connecting"), [E, S] = Te(void 0), [k, I] = Te(void 0), R = Se(null), N = zw(
|
|
24519
24519
|
a.conversationId,
|
|
24520
24520
|
a.userToken,
|
|
24521
24521
|
u,
|
|
@@ -24538,7 +24538,7 @@ function py({
|
|
|
24538
24538
|
}, [a.conversationId, a.userToken, t, e]);
|
|
24539
24539
|
const A = async ({ conversationId: O, userToken: z }) => {
|
|
24540
24540
|
var M;
|
|
24541
|
-
(M = R.current) == null || M.call(R), I(void 0),
|
|
24541
|
+
(M = R.current) == null || M.call(R), I(void 0), p(!1), g(!1), w("connecting");
|
|
24542
24542
|
const { on: P, conversation: L, user: _, client: D, onCleanup: U } = await FN({
|
|
24543
24543
|
apiUrl: e,
|
|
24544
24544
|
clientId: t,
|
|
@@ -24559,7 +24559,7 @@ function py({
|
|
|
24559
24559
|
}),
|
|
24560
24560
|
P("message_created", ($) => {
|
|
24561
24561
|
const x = li($);
|
|
24562
|
-
B.getState().saveMessage(x), _.id !== x.authorId && (s == null || s(),
|
|
24562
|
+
B.getState().saveMessage(x), _.id !== x.authorId && (s == null || s(), p(!1), g(!1), v.emit("isTyping", { isTyping: !1, timeout: 0 })), v.emit("message", x);
|
|
24563
24563
|
}),
|
|
24564
24564
|
P("message_updated", ($) => {
|
|
24565
24565
|
const x = li($);
|
|
@@ -24572,10 +24572,10 @@ function py({
|
|
|
24572
24572
|
});
|
|
24573
24573
|
}),
|
|
24574
24574
|
P("typing_stopped", () => {
|
|
24575
|
-
|
|
24575
|
+
p(!1), g(!1);
|
|
24576
24576
|
}),
|
|
24577
24577
|
P("typing_started", () => {
|
|
24578
|
-
|
|
24578
|
+
p(!0, 5e3), g(!0, 5e3), v.emit("isTyping", { isTyping: !0, timeout: 5e3 });
|
|
24579
24579
|
}),
|
|
24580
24580
|
P("participant_added", ($) => {
|
|
24581
24581
|
j.getState().addParticipant($.participant), v.emit("participantAdded", $.participant);
|
|
@@ -24598,7 +24598,7 @@ function py({
|
|
|
24598
24598
|
activeConversationId: u,
|
|
24599
24599
|
userCredentials: f,
|
|
24600
24600
|
isTyping: d,
|
|
24601
|
-
isAwaitingResponse:
|
|
24601
|
+
isAwaitingResponse: m,
|
|
24602
24602
|
openConversation: A,
|
|
24603
24603
|
setAwaitingResponse: g,
|
|
24604
24604
|
emitter: v,
|
|
@@ -24631,8 +24631,8 @@ function UN({
|
|
|
24631
24631
|
activeConversationId: c,
|
|
24632
24632
|
userCredentials: h,
|
|
24633
24633
|
isTyping: d,
|
|
24634
|
-
isAwaitingResponse:
|
|
24635
|
-
openConversation:
|
|
24634
|
+
isAwaitingResponse: p,
|
|
24635
|
+
openConversation: m,
|
|
24636
24636
|
setClientState: g,
|
|
24637
24637
|
setError: v,
|
|
24638
24638
|
setAwaitingResponse: y,
|
|
@@ -24655,8 +24655,8 @@ function UN({
|
|
|
24655
24655
|
error: f,
|
|
24656
24656
|
setError: v,
|
|
24657
24657
|
isTyping: d,
|
|
24658
|
-
isAwaitingResponse:
|
|
24659
|
-
openConversation:
|
|
24658
|
+
isAwaitingResponse: p,
|
|
24659
|
+
openConversation: m,
|
|
24660
24660
|
setAwaitingResponse: y,
|
|
24661
24661
|
emitter: w
|
|
24662
24662
|
};
|
|
@@ -24675,20 +24675,20 @@ const gy = ({
|
|
|
24675
24675
|
_e(() => {
|
|
24676
24676
|
l(d);
|
|
24677
24677
|
}, [d, l]);
|
|
24678
|
-
const
|
|
24678
|
+
const p = Me(
|
|
24679
24679
|
(g) => {
|
|
24680
24680
|
n && (g.forEach((v) => f(v, n)), h(0));
|
|
24681
24681
|
},
|
|
24682
24682
|
[f, n]
|
|
24683
|
-
), { getRootProps:
|
|
24683
|
+
), { getRootProps: m } = Wg({
|
|
24684
24684
|
noClick: !0,
|
|
24685
24685
|
noKeyboard: !0,
|
|
24686
|
-
onDrop:
|
|
24686
|
+
onDrop: p,
|
|
24687
24687
|
disabled: !(r && n),
|
|
24688
24688
|
onDragEnter: () => h((g) => g + 1),
|
|
24689
24689
|
onDragLeave: () => h((g) => g - 1)
|
|
24690
24690
|
});
|
|
24691
|
-
return /* @__PURE__ */ ae("div", { ...s, className: Er(a.className, t), ...
|
|
24691
|
+
return /* @__PURE__ */ ae("div", { ...s, className: Er(a.className, t), ...m(), ref: d, children: [
|
|
24692
24692
|
/* @__PURE__ */ ae("div", { "data-hover": c > 0, ...a.dropzone.overlay, children: [
|
|
24693
24693
|
"Drop files to upload",
|
|
24694
24694
|
/* @__PURE__ */ T(YA, { style: { width: "50px" } })
|
|
@@ -24731,14 +24731,14 @@ function yy(e, t = []) {
|
|
|
24731
24731
|
n = [...n, s];
|
|
24732
24732
|
const u = (c) => {
|
|
24733
24733
|
var v;
|
|
24734
|
-
const { scope: h, children: d, ...
|
|
24735
|
-
return /* @__PURE__ */ T(
|
|
24734
|
+
const { scope: h, children: d, ...p } = c, m = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[l]) || a, g = C.useMemo(() => p, Object.values(p));
|
|
24735
|
+
return /* @__PURE__ */ T(m.Provider, { value: g, children: d });
|
|
24736
24736
|
};
|
|
24737
24737
|
u.displayName = o + "Provider";
|
|
24738
24738
|
function f(c, h) {
|
|
24739
|
-
var
|
|
24740
|
-
const d = ((
|
|
24741
|
-
if (
|
|
24739
|
+
var m;
|
|
24740
|
+
const d = ((m = h == null ? void 0 : h[e]) == null ? void 0 : m[l]) || a, p = C.useContext(d);
|
|
24741
|
+
if (p) return p;
|
|
24742
24742
|
if (s !== void 0) return s;
|
|
24743
24743
|
throw new Error(`\`${c}\` must be used within \`${o}\``);
|
|
24744
24744
|
}
|
|
@@ -24930,8 +24930,8 @@ function r2(e) {
|
|
|
24930
24930
|
if (t) {
|
|
24931
24931
|
let u;
|
|
24932
24932
|
const f = t.ownerDocument.defaultView ?? window, c = (d) => {
|
|
24933
|
-
const
|
|
24934
|
-
if (d.target === t &&
|
|
24933
|
+
const m = Gi(r.current).includes(CSS.escape(d.animationName));
|
|
24934
|
+
if (d.target === t && m && (l("ANIMATION_END"), !i.current)) {
|
|
24935
24935
|
const g = t.style.animationFillMode;
|
|
24936
24936
|
t.style.animationFillMode = "forwards", u = f.setTimeout(() => {
|
|
24937
24937
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
|
|
@@ -25033,7 +25033,7 @@ var Ou = "CollapsibleContent", ky = C.forwardRef(
|
|
|
25033
25033
|
);
|
|
25034
25034
|
ky.displayName = Ou;
|
|
25035
25035
|
var u2 = C.forwardRef((e, t) => {
|
|
25036
|
-
const { __scopeCollapsible: n, present: r, children: i, ...o } = e, s = Iu(Ou, n), [a, l] = C.useState(r), u = C.useRef(null), f = xn(t, u), c = C.useRef(0), h = c.current, d = C.useRef(0),
|
|
25036
|
+
const { __scopeCollapsible: n, present: r, children: i, ...o } = e, s = Iu(Ou, n), [a, l] = C.useState(r), u = C.useRef(null), f = xn(t, u), c = C.useRef(0), h = c.current, d = C.useRef(0), p = d.current, m = s.open || a, g = C.useRef(m), v = C.useRef(void 0);
|
|
25037
25037
|
return C.useEffect(() => {
|
|
25038
25038
|
const y = requestAnimationFrame(() => g.current = !1);
|
|
25039
25039
|
return () => cancelAnimationFrame(y);
|
|
@@ -25053,15 +25053,15 @@ var u2 = C.forwardRef((e, t) => {
|
|
|
25053
25053
|
"data-state": Ru(s.open),
|
|
25054
25054
|
"data-disabled": s.disabled ? "" : void 0,
|
|
25055
25055
|
id: s.contentId,
|
|
25056
|
-
hidden: !
|
|
25056
|
+
hidden: !m,
|
|
25057
25057
|
...o,
|
|
25058
25058
|
ref: f,
|
|
25059
25059
|
style: {
|
|
25060
25060
|
"--radix-collapsible-content-height": h ? `${h}px` : void 0,
|
|
25061
|
-
"--radix-collapsible-content-width":
|
|
25061
|
+
"--radix-collapsible-content-width": p ? `${p}px` : void 0,
|
|
25062
25062
|
...e.style
|
|
25063
25063
|
},
|
|
25064
|
-
children:
|
|
25064
|
+
children: m && i
|
|
25065
25065
|
}
|
|
25066
25066
|
);
|
|
25067
25067
|
});
|
|
@@ -25127,7 +25127,7 @@ const Ey = ({ restartConversation: e, ...t }) => {
|
|
|
25127
25127
|
}
|
|
25128
25128
|
);
|
|
25129
25129
|
}, Pr = ({ icon: e, title: t, link: n, ...r }) => {
|
|
25130
|
-
var s, a, l, u, f, c, h, d,
|
|
25130
|
+
var s, a, l, u, f, c, h, d, p, m, g, v;
|
|
25131
25131
|
const { header: i } = ge, o = e ?? GA;
|
|
25132
25132
|
return t ? n ? /* @__PURE__ */ ae(
|
|
25133
25133
|
"a",
|
|
@@ -25143,7 +25143,7 @@ const Ey = ({ restartConversation: e, ...t }) => {
|
|
|
25143
25143
|
]
|
|
25144
25144
|
}
|
|
25145
25145
|
) : /* @__PURE__ */ ae("div", { ...r, ...(d = (h = i.expandedContent) == null ? void 0 : h.descriptionItems) == null ? void 0 : d.container, children: [
|
|
25146
|
-
/* @__PURE__ */ T(o, { ...(
|
|
25146
|
+
/* @__PURE__ */ T(o, { ...(m = (p = i.expandedContent) == null ? void 0 : p.descriptionItems) == null ? void 0 : m.icon }),
|
|
25147
25147
|
/* @__PURE__ */ T("p", { ...(v = (g = i.expandedContent) == null ? void 0 : g.descriptionItems) == null ? void 0 : v.text, children: t })
|
|
25148
25148
|
] }) : null;
|
|
25149
25149
|
}, h2 = ({ soundOn: e, toggleSound: t }) => {
|
|
@@ -25176,14 +25176,14 @@ const Ey = ({ restartConversation: e, ...t }) => {
|
|
|
25176
25176
|
clientId: l,
|
|
25177
25177
|
...u
|
|
25178
25178
|
}) => {
|
|
25179
|
-
var
|
|
25180
|
-
const { header: f } = ge, [c, h] = Te(e), d = !!((
|
|
25179
|
+
var m, g, v, y, w, E, S, k, I, R, N, A, O, z, P, L, _, D, U, B, j, b, M, $;
|
|
25180
|
+
const { header: f } = ge, [c, h] = Te(e), d = !!((m = n.email) != null && m.title) || !!((g = n.phone) != null && g.title) || !!((v = n.website) != null && v.title) || !!((y = n.termsOfService) != null && y.link) || !!((w = n.privacyPolicy) != null && w.link), p = d && !o;
|
|
25181
25181
|
return /* @__PURE__ */ ae(
|
|
25182
25182
|
c2,
|
|
25183
25183
|
{
|
|
25184
|
-
open:
|
|
25185
|
-
onOpenChange:
|
|
25186
|
-
"data-disabled":
|
|
25184
|
+
open: p ? c : !1,
|
|
25185
|
+
onOpenChange: p ? h : void 0,
|
|
25186
|
+
"data-disabled": p ? void 0 : "",
|
|
25187
25187
|
...f.container,
|
|
25188
25188
|
...u,
|
|
25189
25189
|
children: [
|
|
@@ -25274,8 +25274,8 @@ const Bd = _o(
|
|
|
25274
25274
|
feedback: c,
|
|
25275
25275
|
timestamp: h,
|
|
25276
25276
|
metadata: d,
|
|
25277
|
-
sendMessage:
|
|
25278
|
-
addMessageFeedback:
|
|
25277
|
+
sendMessage: p,
|
|
25278
|
+
addMessageFeedback: m,
|
|
25279
25279
|
showAvatar: g
|
|
25280
25280
|
}, v) => {
|
|
25281
25281
|
const [y, w] = Te([]), {
|
|
@@ -25306,8 +25306,8 @@ const Bd = _o(
|
|
|
25306
25306
|
messageId: o,
|
|
25307
25307
|
status: a,
|
|
25308
25308
|
metadata: d,
|
|
25309
|
-
sendMessage:
|
|
25310
|
-
addMessageFeedback:
|
|
25309
|
+
sendMessage: p,
|
|
25310
|
+
addMessageFeedback: m
|
|
25311
25311
|
},
|
|
25312
25312
|
renderers: l
|
|
25313
25313
|
}
|
|
@@ -25359,7 +25359,7 @@ function v2(e, t = {}) {
|
|
|
25359
25359
|
}, []), d = Me(() => {
|
|
25360
25360
|
const y = o.current;
|
|
25361
25361
|
y && (a.current = !0, i(!0), h(y));
|
|
25362
|
-
}, [h]),
|
|
25362
|
+
}, [h]), p = Me(() => {
|
|
25363
25363
|
const y = o.current;
|
|
25364
25364
|
if (!y) return;
|
|
25365
25365
|
if (l.current) {
|
|
@@ -25373,16 +25373,16 @@ function v2(e, t = {}) {
|
|
|
25373
25373
|
s.current = y.scrollTop;
|
|
25374
25374
|
const w = c(y);
|
|
25375
25375
|
a.current = w, i(w);
|
|
25376
|
-
}, [c]),
|
|
25376
|
+
}, [c]), m = Me((y) => {
|
|
25377
25377
|
y.deltaY < 0 && (cancelAnimationFrame(f.current), u.current = !1, a.current = !1, i(!1));
|
|
25378
25378
|
}, []), g = Me(() => {
|
|
25379
25379
|
u.current && (cancelAnimationFrame(f.current), u.current = !1);
|
|
25380
25380
|
}, []), v = Me(
|
|
25381
25381
|
(y) => {
|
|
25382
25382
|
const w = o.current;
|
|
25383
|
-
w && (w.removeEventListener("scroll",
|
|
25383
|
+
w && (w.removeEventListener("scroll", p), w.removeEventListener("wheel", m), w.removeEventListener("touchstart", g)), o.current = y, y && (y.addEventListener("scroll", p, { passive: !0 }), y.addEventListener("wheel", m, { passive: !0 }), y.addEventListener("touchstart", g, { passive: !0 }), s.current = y.scrollTop);
|
|
25384
25384
|
},
|
|
25385
|
-
[
|
|
25385
|
+
[p, m, g]
|
|
25386
25386
|
);
|
|
25387
25387
|
return hr(() => {
|
|
25388
25388
|
const y = o.current;
|
|
@@ -25444,8 +25444,8 @@ const b2 = {
|
|
|
25444
25444
|
showDateSystemMessage: c = !0,
|
|
25445
25445
|
showMessageStatus: h = !0,
|
|
25446
25446
|
showIncomingMessageAvatar: d = !0,
|
|
25447
|
-
showOutgoingMessageAvatar:
|
|
25448
|
-
...
|
|
25447
|
+
showOutgoingMessageAvatar: p = !1,
|
|
25448
|
+
...m
|
|
25449
25449
|
}) => {
|
|
25450
25450
|
var A;
|
|
25451
25451
|
const { messageList: g } = ge, v = ct(() => c ? Qv(t) : t, [t]), y = ct(() => {
|
|
@@ -25460,9 +25460,9 @@ const b2 = {
|
|
|
25460
25460
|
if (O.direction === "incoming")
|
|
25461
25461
|
return d;
|
|
25462
25462
|
if (O.direction === "outgoing")
|
|
25463
|
-
return
|
|
25463
|
+
return p;
|
|
25464
25464
|
};
|
|
25465
|
-
return /* @__PURE__ */ ae("div", { ...
|
|
25465
|
+
return /* @__PURE__ */ ae("div", { ...m, className: Er(g.container.className, e), children: [
|
|
25466
25466
|
/* @__PURE__ */ T("div", { ref: k, style: b2, children: /* @__PURE__ */ ae("div", { className: g.viewPort.className, children: [
|
|
25467
25467
|
r && /* @__PURE__ */ T("span", { ...g.headerMessage, children: r }),
|
|
25468
25468
|
f && /* @__PURE__ */ T(m2, { botAvatar: o, botDescription: s, botName: a }),
|
|
@@ -25648,8 +25648,8 @@ function Ry({ client: e, conversationId: t, user: n }) {
|
|
|
25648
25648
|
},
|
|
25649
25649
|
body: a
|
|
25650
25650
|
});
|
|
25651
|
-
const d = f.split("/").shift() ?? "",
|
|
25652
|
-
return { fileUrl: c, name: s, type:
|
|
25651
|
+
const d = f.split("/").shift() ?? "", p = kw(d) ? d : "file";
|
|
25652
|
+
return { fileUrl: c, name: s, type: p, fileId: h };
|
|
25653
25653
|
}
|
|
25654
25654
|
};
|
|
25655
25655
|
}
|
|
@@ -25671,32 +25671,32 @@ function Dy({
|
|
|
25671
25671
|
n
|
|
25672
25672
|
), new Error("Cannot send message: client, conversationId, or userId not available");
|
|
25673
25673
|
r == null || r(!0);
|
|
25674
|
-
const
|
|
25675
|
-
id:
|
|
25674
|
+
const p = Mu(), m = {
|
|
25675
|
+
id: p,
|
|
25676
25676
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
25677
25677
|
userId: n,
|
|
25678
25678
|
conversationId: t,
|
|
25679
25679
|
payload: d,
|
|
25680
25680
|
metadata: {
|
|
25681
|
-
clientMessageId:
|
|
25681
|
+
clientMessageId: p,
|
|
25682
25682
|
delivered: !1
|
|
25683
25683
|
}
|
|
25684
|
-
}, g = li(
|
|
25684
|
+
}, g = li(m);
|
|
25685
25685
|
g.status = "pending", s(g), await e.createMessage({
|
|
25686
25686
|
conversationId: t,
|
|
25687
25687
|
payload: d,
|
|
25688
|
-
metadata: { clientMessageId:
|
|
25688
|
+
metadata: { clientMessageId: p }
|
|
25689
25689
|
});
|
|
25690
25690
|
},
|
|
25691
25691
|
setMessages: (d) => {
|
|
25692
|
-
const
|
|
25693
|
-
l(
|
|
25692
|
+
const p = d.map((m) => li(m)).filter(Boolean);
|
|
25693
|
+
l(p);
|
|
25694
25694
|
},
|
|
25695
25695
|
clearMessages: u,
|
|
25696
|
-
saveMessageFeedback: async (d,
|
|
25696
|
+
saveMessageFeedback: async (d, p) => {
|
|
25697
25697
|
if (!e)
|
|
25698
25698
|
throw new Error("Cannot update feedback: client not available");
|
|
25699
|
-
a(d, { feedback:
|
|
25699
|
+
a(d, { feedback: p.value }), await e.addMessageFeedback({ messageId: d, ...p });
|
|
25700
25700
|
}
|
|
25701
25701
|
};
|
|
25702
25702
|
}
|
|
@@ -25760,8 +25760,8 @@ function jL({
|
|
|
25760
25760
|
clientState: c,
|
|
25761
25761
|
httpClient: h,
|
|
25762
25762
|
error: d,
|
|
25763
|
-
activeConversationId:
|
|
25764
|
-
userCredentials:
|
|
25763
|
+
activeConversationId: p,
|
|
25764
|
+
userCredentials: m,
|
|
25765
25765
|
isTyping: g,
|
|
25766
25766
|
isAwaitingResponse: v,
|
|
25767
25767
|
openConversation: y,
|
|
@@ -25781,21 +25781,21 @@ function jL({
|
|
|
25781
25781
|
playNotificationSound: f
|
|
25782
25782
|
}), { messages: I, sendMessage: R, saveMessageFeedback: N } = Dy({
|
|
25783
25783
|
client: h,
|
|
25784
|
-
conversationId:
|
|
25785
|
-
userId:
|
|
25784
|
+
conversationId: p,
|
|
25785
|
+
userId: m == null ? void 0 : m.userId,
|
|
25786
25786
|
setAwaitingResponse: w
|
|
25787
25787
|
}), { participants: A } = My({
|
|
25788
25788
|
client: h,
|
|
25789
|
-
conversationId:
|
|
25789
|
+
conversationId: p
|
|
25790
25790
|
}), { uploadFile: O } = Ry({
|
|
25791
25791
|
client: h,
|
|
25792
|
-
conversationId:
|
|
25793
|
-
user:
|
|
25792
|
+
conversationId: p,
|
|
25793
|
+
user: m
|
|
25794
25794
|
}), { sendEvent: z } = Oy({
|
|
25795
25795
|
client: h,
|
|
25796
|
-
conversationId:
|
|
25796
|
+
conversationId: p
|
|
25797
25797
|
});
|
|
25798
|
-
if (c !== "connected" || !
|
|
25798
|
+
if (c !== "connected" || !m || !p || !h)
|
|
25799
25799
|
return {
|
|
25800
25800
|
clientState: c,
|
|
25801
25801
|
on: E.on,
|
|
@@ -25803,7 +25803,7 @@ function jL({
|
|
|
25803
25803
|
messages: [],
|
|
25804
25804
|
conversationId: void 0,
|
|
25805
25805
|
newConversation: (U) => {
|
|
25806
|
-
y({ conversationId: U, userToken:
|
|
25806
|
+
y({ conversationId: U, userToken: m == null ? void 0 : m.userToken }).catch((B) => {
|
|
25807
25807
|
E.emit("error", B);
|
|
25808
25808
|
});
|
|
25809
25809
|
},
|
|
@@ -25816,9 +25816,9 @@ function jL({
|
|
|
25816
25816
|
disableSendButton: v
|
|
25817
25817
|
};
|
|
25818
25818
|
const P = {
|
|
25819
|
-
userId:
|
|
25820
|
-
conversationId:
|
|
25821
|
-
userToken:
|
|
25819
|
+
userId: m == null ? void 0 : m.userId,
|
|
25820
|
+
conversationId: p,
|
|
25821
|
+
userToken: m == null ? void 0 : m.userToken,
|
|
25822
25822
|
openConversation: y,
|
|
25823
25823
|
setClientState: k,
|
|
25824
25824
|
setError: S,
|
|
@@ -25852,13 +25852,13 @@ function jL({
|
|
|
25852
25852
|
on: E.on,
|
|
25853
25853
|
client: _,
|
|
25854
25854
|
messages: I,
|
|
25855
|
-
conversationId:
|
|
25855
|
+
conversationId: p,
|
|
25856
25856
|
newConversation: (U) => {
|
|
25857
|
-
y({ conversationId: U, userToken:
|
|
25857
|
+
y({ conversationId: U, userToken: m.userToken }).catch((B) => {
|
|
25858
25858
|
E.emit("error", B);
|
|
25859
25859
|
});
|
|
25860
25860
|
},
|
|
25861
|
-
user:
|
|
25861
|
+
user: m,
|
|
25862
25862
|
isTyping: g,
|
|
25863
25863
|
participants: A,
|
|
25864
25864
|
error: d,
|
|
@@ -25893,12 +25893,12 @@ function A2() {
|
|
|
25893
25893
|
error: u,
|
|
25894
25894
|
isAwaitingResponse: f,
|
|
25895
25895
|
isTyping: c
|
|
25896
|
-
} = Tu(), { messages: h, sendMessage: d, saveMessageFeedback:
|
|
25896
|
+
} = Tu(), { messages: h, sendMessage: d, saveMessageFeedback: p } = Dy({
|
|
25897
25897
|
client: e,
|
|
25898
25898
|
conversationId: t,
|
|
25899
25899
|
userId: n == null ? void 0 : n.userId,
|
|
25900
25900
|
setAwaitingResponse: r
|
|
25901
|
-
}), { participants:
|
|
25901
|
+
}), { participants: m } = My({
|
|
25902
25902
|
client: e,
|
|
25903
25903
|
conversationId: t
|
|
25904
25904
|
}), { sendEvent: g } = Oy({
|
|
@@ -25919,7 +25919,7 @@ function A2() {
|
|
|
25919
25919
|
}, w = Iy(
|
|
25920
25920
|
{
|
|
25921
25921
|
sendMessage: d,
|
|
25922
|
-
saveMessageFeedback:
|
|
25922
|
+
saveMessageFeedback: p,
|
|
25923
25923
|
sendEvent: g,
|
|
25924
25924
|
uploadFile: v
|
|
25925
25925
|
},
|
|
@@ -25928,7 +25928,7 @@ function A2() {
|
|
|
25928
25928
|
return {
|
|
25929
25929
|
conversationId: t,
|
|
25930
25930
|
messages: h,
|
|
25931
|
-
participants:
|
|
25931
|
+
participants: m,
|
|
25932
25932
|
sendMessage: w.sendMessage,
|
|
25933
25933
|
saveMessageFeedback: w.saveMessageFeedback,
|
|
25934
25934
|
sendEvent: w.sendEvent,
|
|
@@ -26076,19 +26076,19 @@ async function By(...e) {
|
|
|
26076
26076
|
let l = o.optimisticData;
|
|
26077
26077
|
const u = (h) => typeof a == "function" ? a(h) : a !== !1, f = o.throwOnError;
|
|
26078
26078
|
if (Yt(n)) {
|
|
26079
|
-
const h = n, d = [],
|
|
26080
|
-
for (const
|
|
26079
|
+
const h = n, d = [], p = t.keys();
|
|
26080
|
+
for (const m of p)
|
|
26081
26081
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
|
26082
|
-
!/^\$(inf|sub)\$/.test(
|
|
26082
|
+
!/^\$(inf|sub)\$/.test(m) && h(t.get(m)._k) && d.push(m);
|
|
26083
26083
|
return Promise.all(d.map(c));
|
|
26084
26084
|
}
|
|
26085
26085
|
return c(n);
|
|
26086
26086
|
async function c(h) {
|
|
26087
26087
|
const [d] = Pu(h);
|
|
26088
26088
|
if (!d) return;
|
|
26089
|
-
const [
|
|
26089
|
+
const [p, m] = $y(t, d), [g, v, y, w] = tn.get(t), E = () => {
|
|
26090
26090
|
const L = g[d];
|
|
26091
|
-
return (Yt(o.revalidate) ? o.revalidate(
|
|
26091
|
+
return (Yt(o.revalidate) ? o.revalidate(p().data, h) : o.revalidate !== !1) && (delete y[d], delete w[d], L && L[0]) ? L[0](_y).then(() => p().data) : p().data;
|
|
26092
26092
|
};
|
|
26093
26093
|
if (e.length < 3)
|
|
26094
26094
|
return E();
|
|
@@ -26098,8 +26098,8 @@ async function By(...e) {
|
|
|
26098
26098
|
R,
|
|
26099
26099
|
0
|
|
26100
26100
|
];
|
|
26101
|
-
const N = !be(l), A =
|
|
26102
|
-
if (N && (l = Yt(l) ? l(P, O) : l,
|
|
26101
|
+
const N = !be(l), A = p(), O = A.data, z = A._c, P = be(z) ? O : z;
|
|
26102
|
+
if (N && (l = Yt(l) ? l(P, O) : l, m({
|
|
26103
26103
|
data: l,
|
|
26104
26104
|
_c: P
|
|
26105
26105
|
})), Yt(S))
|
|
@@ -26114,26 +26114,26 @@ async function By(...e) {
|
|
|
26114
26114
|
}), R !== v[d][0]) {
|
|
26115
26115
|
if (I) throw k;
|
|
26116
26116
|
return S;
|
|
26117
|
-
} else I && N && u(k) && (s = !0,
|
|
26117
|
+
} else I && N && u(k) && (s = !0, m({
|
|
26118
26118
|
data: P,
|
|
26119
26119
|
_c: ot
|
|
26120
26120
|
}));
|
|
26121
26121
|
if (s && !I)
|
|
26122
26122
|
if (Yt(s)) {
|
|
26123
26123
|
const L = s(S, P);
|
|
26124
|
-
|
|
26124
|
+
m({
|
|
26125
26125
|
data: L,
|
|
26126
26126
|
error: ot,
|
|
26127
26127
|
_c: ot
|
|
26128
26128
|
});
|
|
26129
26129
|
} else
|
|
26130
|
-
|
|
26130
|
+
m({
|
|
26131
26131
|
data: S,
|
|
26132
26132
|
error: ot,
|
|
26133
26133
|
_c: ot
|
|
26134
26134
|
});
|
|
26135
26135
|
if (v[d][1] = Al(), Promise.resolve(E()).then(() => {
|
|
26136
|
-
|
|
26136
|
+
m({
|
|
26137
26137
|
_c: ot
|
|
26138
26138
|
});
|
|
26139
26139
|
}), I) {
|
|
@@ -26157,8 +26157,8 @@ const Wd = (e, t) => {
|
|
|
26157
26157
|
e.set(f, c);
|
|
26158
26158
|
const d = s[f];
|
|
26159
26159
|
if (d)
|
|
26160
|
-
for (const
|
|
26161
|
-
|
|
26160
|
+
for (const p of d)
|
|
26161
|
+
p(c, h);
|
|
26162
26162
|
}, u = () => {
|
|
26163
26163
|
if (!tn.has(e) && (tn.set(e, [
|
|
26164
26164
|
r,
|
|
@@ -26281,7 +26281,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
26281
26281
|
}), ga = {
|
|
26282
26282
|
dedupe: !0
|
|
26283
26283
|
}, qd = Promise.resolve(ot), nP = () => rn, rP = (e, t, n) => {
|
|
26284
|
-
const { cache: r, compare: i, suspense: o, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: f, refreshWhenOffline: c, keepPreviousData: h, strictServerPrefetchWarning: d } = n, [
|
|
26284
|
+
const { cache: r, compare: i, suspense: o, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: f, refreshWhenOffline: c, keepPreviousData: h, strictServerPrefetchWarning: d } = n, [p, m, g, v] = tn.get(r), [y, w] = Pu(e), E = Se(!1), S = Se(!1), k = Se(y), I = Se(t), R = Se(n), N = () => R.current, A = () => N().isVisible() && N().isOnline(), [O, z, P, L] = $y(r, y), _ = Se({}).current, D = be(s) ? be(n.fallback) ? ot : n.fallback[y] : s, U = (Q, le) => {
|
|
26285
26285
|
for (const fe in _) {
|
|
26286
26286
|
const ce = fe;
|
|
26287
26287
|
if (ce === "data") {
|
|
@@ -26325,7 +26325,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
26325
26325
|
r,
|
|
26326
26326
|
y
|
|
26327
26327
|
]
|
|
26328
|
-
), j[0], j[1]), M =
|
|
26328
|
+
), j[0], j[1]), M = p[y] && p[y].length > 0, $ = b.data, x = be($) ? D && Fy(D) ? ma(D) : D : $, V = b.error, Z = Se(x), q = h ? be($) ? be(Z.current) ? x : Z.current : $ : x, K = y && be(x), J = Se(null);
|
|
26329
26329
|
!nr && // getServerSnapshot is only called during hydration
|
|
26330
26330
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
26331
26331
|
Aa.useSyncExternalStore(nP, () => (J.current = !1, J), () => (J.current = !0, J));
|
|
@@ -26358,7 +26358,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
26358
26358
|
]), [fe, ce] = g[y], fe = await fe, Oe && setTimeout(H, n.dedupingInterval), !g[y] || g[y][1] !== ce)
|
|
26359
26359
|
return Oe && je() && N().onDiscarded(y), !1;
|
|
26360
26360
|
X.error = ot;
|
|
26361
|
-
const re =
|
|
26361
|
+
const re = m[y];
|
|
26362
26362
|
if (!be(re) && // case 1
|
|
26363
26363
|
(ce <= re[0] || // case 2
|
|
26364
26364
|
ce <= re[1] || // case 3
|
|
@@ -26370,7 +26370,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
26370
26370
|
H();
|
|
26371
26371
|
const se = N(), { shouldRetryOnError: de } = se;
|
|
26372
26372
|
se.isPaused() || (X.error = re, Oe && je() && (se.onError(re, y, se), (de === !0 || Yt(de) && de(re)) && (!N().revalidateOnFocus || !N().revalidateOnReconnect || A()) && se.onErrorRetry(re, y, se, (qe) => {
|
|
26373
|
-
const Ge =
|
|
26373
|
+
const Ge = p[y];
|
|
26374
26374
|
Ge && Ge[0] && Ge[0](Hd, qe);
|
|
26375
26375
|
}, {
|
|
26376
26376
|
retryCount: ($e.retryCount || 0) + 1,
|
|
@@ -26407,7 +26407,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
26407
26407
|
const Q = te.bind(ot, ga);
|
|
26408
26408
|
let le = 0;
|
|
26409
26409
|
N().revalidateOnFocus && (le = Date.now() + N().focusThrottleInterval);
|
|
26410
|
-
const ce = tP(y,
|
|
26410
|
+
const ce = tP(y, p, (Ce, $e = {}) => {
|
|
26411
26411
|
if (Ce == Py) {
|
|
26412
26412
|
const Oe = Date.now();
|
|
26413
26413
|
N().revalidateOnFocus && Oe > le && A() && (le = Oe + N().focusThrottleInterval, Q());
|
|
@@ -26532,9 +26532,9 @@ const sP = (e) => !!e.lastMessage, aP = (e) => e == null || e.length === 0 ? ""
|
|
|
26532
26532
|
let d = "";
|
|
26533
26533
|
if (h.payload.type === "text")
|
|
26534
26534
|
d = h.payload.text;
|
|
26535
|
-
else if (h.payload.type === "bloc" && h.payload.items.some((
|
|
26536
|
-
const
|
|
26537
|
-
d = (
|
|
26535
|
+
else if (h.payload.type === "bloc" && h.payload.items.some((p) => p.type === "text")) {
|
|
26536
|
+
const p = h.payload.items.find((m) => m.type === "text");
|
|
26537
|
+
d = (p == null ? void 0 : p.payload.text) ?? "";
|
|
26538
26538
|
} else
|
|
26539
26539
|
d = "Sent an attachment";
|
|
26540
26540
|
return /* @__PURE__ */ ae(
|
|
@@ -26587,8 +26587,8 @@ const lP = ({
|
|
|
26587
26587
|
closeWindow: c,
|
|
26588
26588
|
sendMessage: h,
|
|
26589
26589
|
uploadFile: d,
|
|
26590
|
-
addMessageFeedback:
|
|
26591
|
-
listConversations:
|
|
26590
|
+
addMessageFeedback: p,
|
|
26591
|
+
listConversations: m,
|
|
26592
26592
|
restartConversation: g,
|
|
26593
26593
|
clientId: v,
|
|
26594
26594
|
storageKey: y,
|
|
@@ -26624,12 +26624,12 @@ const lP = ({
|
|
|
26624
26624
|
additionalStylesheetUrl: b
|
|
26625
26625
|
}, [V, Z] = Te("chat"), q = oP({
|
|
26626
26626
|
clientId: v,
|
|
26627
|
-
listConversations:
|
|
26627
|
+
listConversations: m,
|
|
26628
26628
|
userCredentials: i
|
|
26629
26629
|
});
|
|
26630
26630
|
_e(() => {
|
|
26631
26631
|
V === "conversations" && q.refresh();
|
|
26632
|
-
}, [V]), j || (
|
|
26632
|
+
}, [V]), j || (p = void 0);
|
|
26633
26633
|
const K = ct(() => i ? Gv(r, f, i.userId, D, L) : [], [L, D, r, i, f]), J = ct(() => {
|
|
26634
26634
|
var ee, F;
|
|
26635
26635
|
return ((F = (ee = r.at(-1)) == null ? void 0 : ee.metadata) == null ? void 0 : F.conversationStatus) === "closed";
|
|
@@ -26706,7 +26706,7 @@ const lP = ({
|
|
|
26706
26706
|
renderers: s,
|
|
26707
26707
|
isTyping: n,
|
|
26708
26708
|
sendMessage: h,
|
|
26709
|
-
addMessageFeedback:
|
|
26709
|
+
addMessageFeedback: p,
|
|
26710
26710
|
messages: K
|
|
26711
26711
|
},
|
|
26712
26712
|
k
|
|
@@ -26748,8 +26748,8 @@ function uP({
|
|
|
26748
26748
|
status: c,
|
|
26749
26749
|
error: h,
|
|
26750
26750
|
isTyping: d,
|
|
26751
|
-
isAwaitingResponse:
|
|
26752
|
-
} = A2(), { openConversation:
|
|
26751
|
+
isAwaitingResponse: p
|
|
26752
|
+
} = A2(), { openConversation: m, listConversations: g } = T2(), { userCredentials: v } = C2(), { soundOn: y, toggleSound: w } = Ny({
|
|
26753
26753
|
storageKey: i,
|
|
26754
26754
|
soundEnabled: e == null ? void 0 : e.soundEnabled
|
|
26755
26755
|
});
|
|
@@ -26766,13 +26766,13 @@ function uP({
|
|
|
26766
26766
|
uploadFile: l,
|
|
26767
26767
|
addMessageFeedback: u,
|
|
26768
26768
|
listConversations: g,
|
|
26769
|
-
restartConversation:
|
|
26769
|
+
restartConversation: m,
|
|
26770
26770
|
participants: s,
|
|
26771
26771
|
error: h,
|
|
26772
26772
|
clientId: n,
|
|
26773
26773
|
soundOn: y,
|
|
26774
26774
|
toggleSound: w,
|
|
26775
|
-
disableSendButton:
|
|
26775
|
+
disableSendButton: p,
|
|
26776
26776
|
conversationId: f,
|
|
26777
26777
|
storageKey: i,
|
|
26778
26778
|
...r
|
|
@@ -26826,7 +26826,7 @@ var fP = "DismissableLayer", Tl = "dismissableLayer.update", dP = "dismissableLa
|
|
|
26826
26826
|
onInteractOutside: s,
|
|
26827
26827
|
onDismiss: a,
|
|
26828
26828
|
...l
|
|
26829
|
-
} = e, u = C.useContext(jy), [f, c] = C.useState(null), h = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = C.useState({}),
|
|
26829
|
+
} = e, u = C.useContext(jy), [f, c] = C.useState(null), h = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = C.useState({}), p = xn(t, (I) => c(I)), m = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), v = m.indexOf(g), y = f ? m.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, E = y >= v, S = gP((I) => {
|
|
26830
26830
|
const R = I.target, N = [...u.branches].some((A) => A.contains(R));
|
|
26831
26831
|
!E || N || (i == null || i(I), s == null || s(I), I.defaultPrevented || a == null || a());
|
|
26832
26832
|
}, h), k = yP((I) => {
|
|
@@ -26849,7 +26849,7 @@ var fP = "DismissableLayer", Tl = "dismissableLayer.update", dP = "dismissableLa
|
|
|
26849
26849
|
Vt.div,
|
|
26850
26850
|
{
|
|
26851
26851
|
...l,
|
|
26852
|
-
ref:
|
|
26852
|
+
ref: p,
|
|
26853
26853
|
style: {
|
|
26854
26854
|
pointerEvents: w ? E ? "auto" : "none" : void 0,
|
|
26855
26855
|
...e.style
|
|
@@ -26935,7 +26935,7 @@ var ya = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount", Gd
|
|
|
26935
26935
|
onMountAutoFocus: i,
|
|
26936
26936
|
onUnmountAutoFocus: o,
|
|
26937
26937
|
...s
|
|
26938
|
-
} = e, [a, l] = C.useState(null), u = ir(i), f = ir(o), c = C.useRef(null), h = xn(t, (
|
|
26938
|
+
} = e, [a, l] = C.useState(null), u = ir(i), f = ir(o), c = C.useRef(null), h = xn(t, (m) => l(m)), d = C.useRef({
|
|
26939
26939
|
paused: !1,
|
|
26940
26940
|
pause() {
|
|
26941
26941
|
this.paused = !0;
|
|
@@ -26946,7 +26946,7 @@ var ya = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount", Gd
|
|
|
26946
26946
|
}).current;
|
|
26947
26947
|
C.useEffect(() => {
|
|
26948
26948
|
if (r) {
|
|
26949
|
-
let
|
|
26949
|
+
let m = function(w) {
|
|
26950
26950
|
if (d.paused || !a) return;
|
|
26951
26951
|
const E = w.target;
|
|
26952
26952
|
a.contains(E) ? c.current = E : cn(c.current, { select: !0 });
|
|
@@ -26959,40 +26959,40 @@ var ya = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount", Gd
|
|
|
26959
26959
|
for (const S of w)
|
|
26960
26960
|
S.removedNodes.length > 0 && cn(a);
|
|
26961
26961
|
};
|
|
26962
|
-
document.addEventListener("focusin",
|
|
26962
|
+
document.addEventListener("focusin", m), document.addEventListener("focusout", g);
|
|
26963
26963
|
const y = new MutationObserver(v);
|
|
26964
26964
|
return a && y.observe(a, { childList: !0, subtree: !0 }), () => {
|
|
26965
|
-
document.removeEventListener("focusin",
|
|
26965
|
+
document.removeEventListener("focusin", m), document.removeEventListener("focusout", g), y.disconnect();
|
|
26966
26966
|
};
|
|
26967
26967
|
}
|
|
26968
26968
|
}, [r, a, d.paused]), C.useEffect(() => {
|
|
26969
26969
|
if (a) {
|
|
26970
26970
|
Zd.add(d);
|
|
26971
|
-
const
|
|
26972
|
-
if (!a.contains(
|
|
26971
|
+
const m = document.activeElement;
|
|
26972
|
+
if (!a.contains(m)) {
|
|
26973
26973
|
const v = new CustomEvent(ya, Gd);
|
|
26974
|
-
a.addEventListener(ya, u), a.dispatchEvent(v), v.defaultPrevented || (bP(EP(Yy(a)), { select: !0 }), document.activeElement ===
|
|
26974
|
+
a.addEventListener(ya, u), a.dispatchEvent(v), v.defaultPrevented || (bP(EP(Yy(a)), { select: !0 }), document.activeElement === m && cn(a));
|
|
26975
26975
|
}
|
|
26976
26976
|
return () => {
|
|
26977
26977
|
a.removeEventListener(ya, u), setTimeout(() => {
|
|
26978
26978
|
const v = new CustomEvent(va, Gd);
|
|
26979
|
-
a.addEventListener(va, f), a.dispatchEvent(v), v.defaultPrevented || cn(
|
|
26979
|
+
a.addEventListener(va, f), a.dispatchEvent(v), v.defaultPrevented || cn(m ?? document.body, { select: !0 }), a.removeEventListener(va, f), Zd.remove(d);
|
|
26980
26980
|
}, 0);
|
|
26981
26981
|
};
|
|
26982
26982
|
}
|
|
26983
26983
|
}, [a, u, f, d]);
|
|
26984
|
-
const
|
|
26985
|
-
(
|
|
26984
|
+
const p = C.useCallback(
|
|
26985
|
+
(m) => {
|
|
26986
26986
|
if (!n && !r || d.paused) return;
|
|
26987
|
-
const g =
|
|
26987
|
+
const g = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, v = document.activeElement;
|
|
26988
26988
|
if (g && v) {
|
|
26989
|
-
const y =
|
|
26990
|
-
w && E ? !
|
|
26989
|
+
const y = m.currentTarget, [w, E] = wP(y);
|
|
26990
|
+
w && E ? !m.shiftKey && v === E ? (m.preventDefault(), n && cn(w, { select: !0 })) : m.shiftKey && v === w && (m.preventDefault(), n && cn(E, { select: !0 })) : v === y && m.preventDefault();
|
|
26991
26991
|
}
|
|
26992
26992
|
},
|
|
26993
26993
|
[n, r, d.paused]
|
|
26994
26994
|
);
|
|
26995
|
-
return /* @__PURE__ */ T(Vt.div, { tabIndex: -1, ...s, ref: h, onKeyDown:
|
|
26995
|
+
return /* @__PURE__ */ T(Vt.div, { tabIndex: -1, ...s, ref: h, onKeyDown: p });
|
|
26996
26996
|
});
|
|
26997
26997
|
qy.displayName = vP;
|
|
26998
26998
|
function bP(e, { select: t = !1 } = {}) {
|
|
@@ -27197,11 +27197,11 @@ var Gy = NP(), xa = function() {
|
|
|
27197
27197
|
onScrollCapture: xa,
|
|
27198
27198
|
onWheelCapture: xa,
|
|
27199
27199
|
onTouchMoveCapture: xa
|
|
27200
|
-
}), i = r[0], o = r[1], s = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, c = e.shards, h = e.sideCar, d = e.noRelative,
|
|
27200
|
+
}), i = r[0], o = r[1], s = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, c = e.shards, h = e.sideCar, d = e.noRelative, p = e.noIsolation, m = e.inert, g = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, E = Um(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, k = RP([n, t]), I = Rt(Rt({}, E), i);
|
|
27201
27201
|
return C.createElement(
|
|
27202
27202
|
C.Fragment,
|
|
27203
27203
|
null,
|
|
27204
|
-
f && C.createElement(S, { sideCar: Gy, removeScrollBar: u, shards: c, noRelative: d, noIsolation:
|
|
27204
|
+
f && C.createElement(S, { sideCar: Gy, removeScrollBar: u, shards: c, noRelative: d, noIsolation: p, inert: m, setCallbacks: o, allowPinchZoom: !!g, lockRef: n, gapMode: w }),
|
|
27205
27205
|
s ? C.cloneElement(C.Children.only(a), Rt(Rt({}, I), { ref: k })) : C.createElement(y, Rt({}, I, { className: l, ref: k }), a)
|
|
27206
27206
|
);
|
|
27207
27207
|
});
|
|
@@ -27404,8 +27404,8 @@ var jn = Il ? { passive: !1 } : !1, KP = function(e) {
|
|
|
27404
27404
|
do {
|
|
27405
27405
|
if (!a)
|
|
27406
27406
|
break;
|
|
27407
|
-
var d = Xy(e, a),
|
|
27408
|
-
(
|
|
27407
|
+
var d = Xy(e, a), p = d[0], m = d[1], g = d[2], v = m - g - o * p;
|
|
27408
|
+
(p || v) && Jy(e, a) && (c += v, h += p);
|
|
27409
27409
|
var y = a.parentNode;
|
|
27410
27410
|
a = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
|
|
27411
27411
|
} while (
|
|
@@ -27435,33 +27435,33 @@ function iL(e) {
|
|
|
27435
27435
|
}, [e]), C.useEffect(function() {
|
|
27436
27436
|
if (e.inert) {
|
|
27437
27437
|
document.body.classList.add("block-interactivity-".concat(i));
|
|
27438
|
-
var
|
|
27439
|
-
return
|
|
27438
|
+
var m = Ga([e.lockRef.current], (e.shards || []).map(ih), !0).filter(Boolean);
|
|
27439
|
+
return m.forEach(function(g) {
|
|
27440
27440
|
return g.classList.add("allow-interactivity-".concat(i));
|
|
27441
27441
|
}), function() {
|
|
27442
|
-
document.body.classList.remove("block-interactivity-".concat(i)),
|
|
27442
|
+
document.body.classList.remove("block-interactivity-".concat(i)), m.forEach(function(g) {
|
|
27443
27443
|
return g.classList.remove("allow-interactivity-".concat(i));
|
|
27444
27444
|
});
|
|
27445
27445
|
};
|
|
27446
27446
|
}
|
|
27447
27447
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
27448
|
-
var a = C.useCallback(function(
|
|
27449
|
-
if ("touches" in
|
|
27448
|
+
var a = C.useCallback(function(m, g) {
|
|
27449
|
+
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
27450
27450
|
return !s.current.allowPinchZoom;
|
|
27451
|
-
var v = Xi(
|
|
27452
|
-
if ("touches" in
|
|
27451
|
+
var v = Xi(m), y = n.current, w = "deltaX" in m ? m.deltaX : y[0] - v[0], E = "deltaY" in m ? m.deltaY : y[1] - v[1], S, k = m.target, I = Math.abs(w) > Math.abs(E) ? "h" : "v";
|
|
27452
|
+
if ("touches" in m && I === "h" && k.type === "range")
|
|
27453
27453
|
return !1;
|
|
27454
27454
|
var R = nh(I, k);
|
|
27455
27455
|
if (!R)
|
|
27456
27456
|
return !0;
|
|
27457
27457
|
if (R ? S = I : (S = I === "v" ? "h" : "v", R = nh(I, k)), !R)
|
|
27458
27458
|
return !1;
|
|
27459
|
-
if (!r.current && "changedTouches" in
|
|
27459
|
+
if (!r.current && "changedTouches" in m && (w || E) && (r.current = S), !S)
|
|
27460
27460
|
return !0;
|
|
27461
27461
|
var N = r.current || S;
|
|
27462
|
-
return eL(N, g,
|
|
27463
|
-
}, []), l = C.useCallback(function(
|
|
27464
|
-
var g =
|
|
27462
|
+
return eL(N, g, m, N === "h" ? w : E);
|
|
27463
|
+
}, []), l = C.useCallback(function(m) {
|
|
27464
|
+
var g = m;
|
|
27465
27465
|
if (!(!Vn.length || Vn[Vn.length - 1] !== o)) {
|
|
27466
27466
|
var v = "deltaY" in g ? rh(g) : Xi(g), y = t.current.filter(function(S) {
|
|
27467
27467
|
return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && tL(S.delta, v);
|
|
@@ -27477,19 +27477,19 @@ function iL(e) {
|
|
|
27477
27477
|
E && g.cancelable && g.preventDefault();
|
|
27478
27478
|
}
|
|
27479
27479
|
}
|
|
27480
|
-
}, []), u = C.useCallback(function(
|
|
27481
|
-
var w = { name:
|
|
27480
|
+
}, []), u = C.useCallback(function(m, g, v, y) {
|
|
27481
|
+
var w = { name: m, delta: g, target: v, should: y, shadowParent: oL(v) };
|
|
27482
27482
|
t.current.push(w), setTimeout(function() {
|
|
27483
27483
|
t.current = t.current.filter(function(E) {
|
|
27484
27484
|
return E !== w;
|
|
27485
27485
|
});
|
|
27486
27486
|
}, 1);
|
|
27487
|
-
}, []), f = C.useCallback(function(
|
|
27488
|
-
n.current = Xi(
|
|
27489
|
-
}, []), c = C.useCallback(function(
|
|
27490
|
-
u(
|
|
27491
|
-
}, []), h = C.useCallback(function(
|
|
27492
|
-
u(
|
|
27487
|
+
}, []), f = C.useCallback(function(m) {
|
|
27488
|
+
n.current = Xi(m), r.current = void 0;
|
|
27489
|
+
}, []), c = C.useCallback(function(m) {
|
|
27490
|
+
u(m.type, rh(m), m.target, a(m, e.lockRef.current));
|
|
27491
|
+
}, []), h = C.useCallback(function(m) {
|
|
27492
|
+
u(m.type, Xi(m), m.target, a(m, e.lockRef.current));
|
|
27493
27493
|
}, []);
|
|
27494
27494
|
C.useEffect(function() {
|
|
27495
27495
|
return Vn.push(o), e.setCallbacks({
|
|
@@ -27497,16 +27497,16 @@ function iL(e) {
|
|
|
27497
27497
|
onWheelCapture: c,
|
|
27498
27498
|
onTouchMoveCapture: h
|
|
27499
27499
|
}), document.addEventListener("wheel", l, jn), document.addEventListener("touchmove", l, jn), document.addEventListener("touchstart", f, jn), function() {
|
|
27500
|
-
Vn = Vn.filter(function(
|
|
27501
|
-
return
|
|
27500
|
+
Vn = Vn.filter(function(m) {
|
|
27501
|
+
return m !== o;
|
|
27502
27502
|
}), document.removeEventListener("wheel", l, jn), document.removeEventListener("touchmove", l, jn), document.removeEventListener("touchstart", f, jn);
|
|
27503
27503
|
};
|
|
27504
27504
|
}, []);
|
|
27505
|
-
var d = e.removeScrollBar,
|
|
27505
|
+
var d = e.removeScrollBar, p = e.inert;
|
|
27506
27506
|
return C.createElement(
|
|
27507
27507
|
C.Fragment,
|
|
27508
27508
|
null,
|
|
27509
|
-
|
|
27509
|
+
p ? C.createElement(o, { styles: nL(i) }) : null,
|
|
27510
27510
|
d ? C.createElement(YP, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
27511
27511
|
);
|
|
27512
27512
|
}
|
|
@@ -27549,8 +27549,8 @@ var aL = function(e) {
|
|
|
27549
27549
|
f(h);
|
|
27550
27550
|
else
|
|
27551
27551
|
try {
|
|
27552
|
-
var d = h.getAttribute(r),
|
|
27553
|
-
Wn.set(h,
|
|
27552
|
+
var d = h.getAttribute(r), p = d !== null && d !== "false", m = (Wn.get(h) || 0) + 1, g = (o.get(h) || 0) + 1;
|
|
27553
|
+
Wn.set(h, m), o.set(h, g), s.push(h), m === 1 && p && eo.set(h, !0), g === 1 && h.setAttribute(n, "true"), p || h.setAttribute(r, "true");
|
|
27554
27554
|
} catch (v) {
|
|
27555
27555
|
console.error("aria-hidden: cannot operate on ", h, v);
|
|
27556
27556
|
}
|
|
@@ -27833,8 +27833,8 @@ const IL = rt(({ children: e, onClick: t, avatarUrl: n, botName: r, description:
|
|
|
27833
27833
|
Mm,
|
|
27834
27834
|
{
|
|
27835
27835
|
...f,
|
|
27836
|
-
onClick: (
|
|
27837
|
-
|
|
27836
|
+
onClick: (p) => {
|
|
27837
|
+
p.stopPropagation(), o == null || o();
|
|
27838
27838
|
}
|
|
27839
27839
|
}
|
|
27840
27840
|
)
|